"use strict";this.default_b=this.default_b||{};(function(__){var window=this;
try{
__._F_toggles_initialize=function(a){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles_default_b=a||[]};(0,__._F_toggles_initialize)([0x30000, ]);
/*

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

 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.dev/license
*/
/*

 Copyright Google LLC All Rights Reserved.

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

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

 The MIT License

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

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

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

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


 Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
/*

 Copyright 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald
 SPDX-License-Identifier: MIT
*/
/*
 @license
 Copyright Google LLC All Rights Reserved.

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

 Copyright Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
/*

 Copyright 2017 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*

 Copyright 2019 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*

 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
*/
/*

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
/*
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var h,aaa=function(a,b,c,d,e){var f=Zone.__symbol__(d);if(!b[f]){var g=b[f]=b[d];b[d]=function(k,l,r){l&&l.prototype&&e.forEach(function(w){var x=c+"."+d+"::"+w,C=l.prototype;try{if(C.hasOwnProperty(w)){var H=a.ObjectGetOwnPropertyDescriptor(C,w);H&&H.value?(H.value=a.wrapWithCurrentZone(H.value,x),a._redefineProperty(l.prototype,w,H)):C[w]&&(C[w]=a.wrapWithCurrentZone(C[w],x))}else C[w]&&(C[w]=a.wrapWithCurrentZone(C[w],x))}catch(J){}});return g.call(b,k,l,r)};a.attachOriginToPatched(b[d],g)}},ba=
function(a){return(aa.__Zone_symbol_prefix||"__zone_symbol__")+a},baa=function(){function a(ha){g&&g.mark&&g.mark(ha)}function b(ha,sa){g&&g.measure&&g.measure(ha,sa)}function c(ha){R||aa[C]&&(R=aa[C].resolve(0));if(R){var sa=R[H];sa||(sa=R.then);sa.call(R,ha)}else aa[x](ha,0)}function d(ha){Ga===0&&J.length===0&&c(e);ha&&J.push(ha)}function e(){if(!O){for(O=!0;J.length;){var ha=J;J=[];for(var sa=0;sa<ha.length;sa++){var xa=ha[sa];try{xa.zone.runTask(xa,null,null)}catch(Qa){na.onUnhandledError(Qa)}}}na.microtaskDrainDone();
O=!1}}function f(){}var g=aa.performance;a("Zone");var k=function(ha,sa){this._parent=ha;this._name=sa?sa.name||"unnamed":"<root>";this._properties=sa&&sa.properties||{};this._zoneDelegate=new r(this,this._parent&&this._parent._zoneDelegate,sa)};k.assertZonePatched=function(){if(aa.Promise!==ca.ZoneAwarePromise)throw Error("C");};k.__load_patch=function(ha,sa,xa){xa=xa===void 0?!1:xa;if(ca.hasOwnProperty(ha)){if(sa=aa[ba("forceDuplicateZoneCheck")]===!0,!xa&&sa)throw Error("D`"+ha);}else aa["__Zone_disable_"+
ha]||(xa="Zone:"+ha,a(xa),ca[ha]=sa(aa,k,na),b(xa,xa))};k.prototype.get=function(ha){var sa=this.getZoneWith(ha);if(sa)return sa._properties[ha]};k.prototype.getZoneWith=function(ha){for(var sa=this;sa;){if(sa._properties.hasOwnProperty(ha))return sa;sa=sa._parent}return null};k.prototype.fork=function(ha){if(!ha)throw Error("E");return this._zoneDelegate.fork(this,ha)};k.prototype.wrap=function(ha,sa){if(typeof ha!=="function")throw Error("F`"+ha);var xa=this._zoneDelegate.intercept(this,ha,sa),
Qa=this;return function(){return Qa.runGuarded(xa,this,arguments,sa)}};k.prototype.run=function(ha,sa,xa,Qa){ua={parent:ua,zone:this};try{return this._zoneDelegate.invoke(this,ha,sa,xa,Qa)}finally{ua=ua.parent}};k.prototype.runGuarded=function(ha,sa,xa,Qa){ua={parent:ua,zone:this};try{try{return this._zoneDelegate.invoke(this,ha,sa===void 0?null:sa,xa,Qa)}catch(bb){if(this._zoneDelegate.handleError(this,bb))throw bb;}}finally{ua=ua.parent}};k.prototype.runTask=function(ha,sa,xa){if(ha.zone!=this)throw Error("G`"+
(ha.zone||V).name+"`"+this.name);var Qa=ha.type,bb=ha.data===void 0?{}:ha.data,ub=bb.isPeriodic===void 0?!1:bb.isPeriodic;bb=bb.isRefreshable===void 0?!1:bb.isRefreshable;if(ha.state!=="notScheduled"||Qa!=="eventTask"&&Qa!=="macroTask"){var Wb=ha.state!="running";Wb&&ha._transitionTo("running","scheduled");var lc=ia;ia=ha;ua={parent:ua,zone:this};try{Qa!="macroTask"||!ha.data||ub||bb||(ha.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,ha,sa,xa)}catch(fc){if(this._zoneDelegate.handleError(this,
fc))throw fc;}}finally{sa=ha.state,sa!=="notScheduled"&&sa!=="unknown"&&(Qa=="eventTask"||ub||bb&&sa==="scheduling"?Wb&&ha._transitionTo("scheduled","running","scheduling"):(Qa=ha._zoneDelegates,this._updateTaskCount(ha,-1),Wb&&ha._transitionTo("notScheduled","running","notScheduled"),bb&&(ha._zoneDelegates=Qa))),ua=ua.parent,ia=lc}}};k.prototype.scheduleTask=function(ha){if(ha.zone&&ha.zone!==this)for(var sa=this;sa;){if(sa===ha.zone)throw Error("H`"+this.name+"`"+ha.zone.name);sa=sa.parent}ha._transitionTo("scheduling",
"notScheduled");sa=[];ha._zoneDelegates=sa;ha._zone=this;try{ha=this._zoneDelegate.scheduleTask(this,ha)}catch(xa){throw ha._transitionTo("unknown","scheduling","notScheduled"),this._zoneDelegate.handleError(this,xa),xa;}ha._zoneDelegates===sa&&this._updateTaskCount(ha,1);ha.state=="scheduling"&&ha._transitionTo("scheduled","scheduling");return ha};k.prototype.scheduleMicroTask=function(ha,sa,xa,Qa){return this.scheduleTask(new w("microTask",ha,sa,xa,Qa,void 0))};k.prototype.scheduleMacroTask=function(ha,
sa,xa,Qa,bb){return this.scheduleTask(new w("macroTask",ha,sa,xa,Qa,bb))};k.prototype.scheduleEventTask=function(ha,sa,xa,Qa,bb){return this.scheduleTask(new w("eventTask",ha,sa,xa,Qa,bb))};k.prototype.cancelTask=function(ha){if(ha.zone!=this)throw Error("I`"+(ha.zone||V).name+"`"+this.name);if(ha.state==="scheduled"||ha.state==="running"){ha._transitionTo("canceling","scheduled","running");try{this._zoneDelegate.cancelTask(this,ha)}catch(sa){throw ha._transitionTo("unknown","canceling"),this._zoneDelegate.handleError(this,
sa),sa;}this._updateTaskCount(ha,-1);ha._transitionTo("notScheduled","canceling");ha.runCount=-1;return ha}};k.prototype._updateTaskCount=function(ha,sa){var xa=ha._zoneDelegates;sa==-1&&(ha._zoneDelegates=null);for(var Qa=0;Qa<xa.length;Qa++)xa[Qa]._updateTaskCount(ha.type,sa)};da.Object.defineProperties(k.prototype,{parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},name:{configurable:!0,enumerable:!0,get:function(){return this._name}}});da.Object.defineProperties(k,{root:{configurable:!0,
enumerable:!0,get:function(){for(var ha=k.current;ha.parent;)ha=ha.parent;return ha}},current:{configurable:!0,enumerable:!0,get:function(){return ua.zone}},currentTask:{configurable:!0,enumerable:!0,get:function(){return ia}}});k.__symbol__=ba;var l={name:"",onHasTask:function(ha,sa,xa,Qa){return ha.hasTask(xa,Qa)},onScheduleTask:function(ha,sa,xa,Qa){return ha.scheduleTask(xa,Qa)},onInvokeTask:function(ha,sa,xa,Qa,bb,ub){return ha.invokeTask(xa,Qa,bb,ub)},onCancelTask:function(ha,sa,xa,Qa){return ha.cancelTask(xa,
Qa)}},r=function(ha,sa,xa){this._taskCounts={microTask:0,macroTask:0,eventTask:0};this._zone=ha;this._parentDelegate=sa;this._forkZS=xa&&(xa&&xa.onFork?xa:sa._forkZS);this._forkDlgt=xa&&(xa.onFork?sa:sa._forkDlgt);this._forkCurrZone=xa&&(xa.onFork?this._zone:sa._forkCurrZone);this._interceptZS=xa&&(xa.onIntercept?xa:sa._interceptZS);this._interceptDlgt=xa&&(xa.onIntercept?sa:sa._interceptDlgt);this._interceptCurrZone=xa&&(xa.onIntercept?this._zone:sa._interceptCurrZone);this._invokeZS=xa&&(xa.onInvoke?
xa:sa._invokeZS);this._invokeDlgt=xa&&(xa.onInvoke?sa:sa._invokeDlgt);this._invokeCurrZone=xa&&(xa.onInvoke?this._zone:sa._invokeCurrZone);this._handleErrorZS=xa&&(xa.onHandleError?xa:sa._handleErrorZS);this._handleErrorDlgt=xa&&(xa.onHandleError?sa:sa._handleErrorDlgt);this._handleErrorCurrZone=xa&&(xa.onHandleError?this._zone:sa._handleErrorCurrZone);this._scheduleTaskZS=xa&&(xa.onScheduleTask?xa:sa._scheduleTaskZS);this._scheduleTaskDlgt=xa&&(xa.onScheduleTask?sa:sa._scheduleTaskDlgt);this._scheduleTaskCurrZone=
xa&&(xa.onScheduleTask?this._zone:sa._scheduleTaskCurrZone);this._invokeTaskZS=xa&&(xa.onInvokeTask?xa:sa._invokeTaskZS);this._invokeTaskDlgt=xa&&(xa.onInvokeTask?sa:sa._invokeTaskDlgt);this._invokeTaskCurrZone=xa&&(xa.onInvokeTask?this._zone:sa._invokeTaskCurrZone);this._cancelTaskZS=xa&&(xa.onCancelTask?xa:sa._cancelTaskZS);this._cancelTaskDlgt=xa&&(xa.onCancelTask?sa:sa._cancelTaskDlgt);this._cancelTaskCurrZone=xa&&(xa.onCancelTask?this._zone:sa._cancelTaskCurrZone);this._hasTaskCurrZone=this._hasTaskDlgtOwner=
this._hasTaskDlgt=this._hasTaskZS=null;ha=xa&&xa.onHasTask;var Qa=sa&&sa._hasTaskZS;if(ha||Qa)this._hasTaskZS=ha?xa:l,this._hasTaskDlgt=sa,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,xa.onScheduleTask||(this._scheduleTaskZS=l,this._scheduleTaskDlgt=sa,this._scheduleTaskCurrZone=this._zone),xa.onInvokeTask||(this._invokeTaskZS=l,this._invokeTaskDlgt=sa,this._invokeTaskCurrZone=this._zone),xa.onCancelTask||(this._cancelTaskZS=l,this._cancelTaskDlgt=sa,this._cancelTaskCurrZone=this._zone)};
r.prototype.fork=function(ha,sa){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,ha,sa):new k(ha,sa)};r.prototype.intercept=function(ha,sa,xa){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,ha,sa,xa):sa};r.prototype.invoke=function(ha,sa,xa,Qa,bb){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,ha,sa,xa,Qa,bb):sa.apply(xa,Qa)};r.prototype.handleError=function(ha,sa){return this._handleErrorZS?
this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,ha,sa):!0};r.prototype.scheduleTask=function(ha,sa){var xa=sa;if(this._scheduleTaskZS)this._hasTaskZS&&xa._zoneDelegates.push(this._hasTaskDlgtOwner),(xa=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,ha,sa))||(xa=sa);else if(sa.scheduleFn)sa.scheduleFn(sa);else if(sa.type=="microTask")d(sa);else throw Error("J");return xa};r.prototype.invokeTask=function(ha,sa,xa,Qa){return this._invokeTaskZS?
this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,ha,sa,xa,Qa):sa.callback.apply(xa,Qa)};r.prototype.cancelTask=function(ha,sa){if(this._cancelTaskZS)ha=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,ha,sa);else{if(!sa.cancelFn)throw Error("K");ha=sa.cancelFn(sa)}return ha};r.prototype.hasTask=function(ha,sa){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,ha,sa)}catch(xa){this.handleError(ha,xa)}};r.prototype._updateTaskCount=
function(ha,sa){var xa=this._taskCounts,Qa=xa[ha];sa=xa[ha]=Qa+sa;if(sa<0)throw Error("L");Qa!=0&&sa!=0||this.hasTask(this._zone,{microTask:xa.microTask>0,macroTask:xa.macroTask>0,eventTask:xa.eventTask>0,change:ha})};da.Object.defineProperties(r.prototype,{zone:{configurable:!0,enumerable:!0,get:function(){return this._zone}}});var w=function(ha,sa,xa,Qa,bb,ub){this._zone=null;this.runCount=0;this._zoneDelegates=null;this._state="notScheduled";this.type=ha;this.source=sa;this.data=Qa;this.scheduleFn=
bb;this.cancelFn=ub;if(!xa)throw Error("M");this.callback=xa;var Wb=this;this.invoke=ha==="eventTask"&&Qa&&Qa.useG?w.invokeTask:function(){return w.invokeTask.call(aa,Wb,this,arguments)}};w.invokeTask=function(ha,sa,xa){ha||(ha=this);Ga++;try{return ha.runCount++,ha.zone.runTask(ha,sa,xa)}finally{Ga==1&&e(),Ga--}};w.prototype.cancelScheduleRequest=function(){this._transitionTo("notScheduled","scheduling")};w.prototype._transitionTo=function(ha,sa,xa){if(this._state===sa||this._state===xa)this._state=
ha,ha=="notScheduled"&&(this._zoneDelegates=null);else throw Error("N`"+this.type+"`"+this.source+"`"+ha+"`"+sa+"`"+(xa?" or '"+xa+"'":"")+"`"+this._state);};w.prototype.toString=function(){return this.data&&typeof this.data.handleId!=="undefined"?this.data.handleId.toString():Object.prototype.toString.call(this)};w.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}};da.Object.defineProperties(w.prototype,{zone:{configurable:!0,
enumerable:!0,get:function(){return this._zone}},state:{configurable:!0,enumerable:!0,get:function(){return this._state}}});var x=ba("setTimeout"),C=ba("Promise"),H=ba("then"),J=[],O=!1,R,V={name:"NO ZONE"},ca={},na={symbol:ba,currentZoneFrame:function(){return ua},onUnhandledError:f,microtaskDrainDone:f,scheduleMicroTask:d,showUncaughtError:function(){return!k[ba("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:f,patchMethod:function(){return f},bindArguments:function(){return[]},
patchThen:function(){return f},patchMacroTask:function(){return f},patchEventPrototype:function(){return f},getGlobalObjects:function(){},ObjectDefineProperty:function(){return f},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return f},wrapWithCurrentZone:function(){return f},filterProperties:function(){return[]},attachOriginToPatched:function(){return f},_redefineProperty:function(){return f},patchCallbacks:function(){return f},
nativeScheduleMicroTask:c},ua={parent:null,zone:new k(null,null)},ia=null,Ga=0;b("Zone","Zone");return k},caa=function(a,b){return Zone.current.wrap(a,b)},daa=function(a,b){for(var c=a.length-1;c>=0;c--)typeof a[c]==="function"&&(a[c]=caa(a[c],b+"_"+c));return a},gaa=function(a){for(var b=["getCurrentPosition","watchPosition"],c=a.constructor.name,d={},e=0;e<b.length;d={name$jscomp$127:void 0},e++){d.name$jscomp$127=b[e];var f=a[d.name$jscomp$127];if(f){var g=eaa(a,d.name$jscomp$127);faa(g)&&(a[d.name$jscomp$127]=
function(k){return function(l){var r=function(){return l.apply(this,daa(arguments,c+"."+k.name$jscomp$127))};ea(r,l);return r}}(d)(f))}}},faa=function(a){return a?a.writable===!1?!1:!(typeof a.get==="function"&&typeof a.set==="undefined"):!0},kaa=function(a,b,c){var d=eaa(a,b);!d&&c&&eaa(c,b)&&(d={enumerable:!0,configurable:!0});if(d&&d.configurable&&(c=ba("on"+b+"patched"),!a.hasOwnProperty(c)||!a[c])){delete d.writable;delete d.value;var e=d.get,f=d.set,g=b.slice(2),k=haa[g];k||(k=haa[g]=ba("ON_PROPERTY"+
g));d.set=function(l){var r=this;r||a!==fa||(r=fa);r&&(typeof r[k]==="function"&&r.removeEventListener(g,iaa),f==null||f.call(r,null),r[k]=l,typeof l==="function"&&r.addEventListener(g,iaa,!1))};d.get=function(){var l=this;l||a!==fa||(l=fa);if(!l)return null;var r=l[k];return r?r:e&&(r=e.call(this))?(d.set.call(this,r),typeof l.removeAttribute==="function"&&l.removeAttribute(b),r):null};jaa(a,b,d);a[c]=!0}},laa=function(a,b,c){if(b)for(var d=0;d<b.length;d++)kaa(a,"on"+b[d],c);else{b=[];for(d in a)d.slice(0,
2)=="on"&&b.push(d);for(d=0;d<b.length;d++)kaa(a,b[d],c)}},maa=function(a){var b=fa[a];if(b){fa[ba(a)]=b;fa[a]=function(){var e=daa(arguments,a);switch(e.length){case 0:this[ja]=new b;break;case 1:this[ja]=new b(e[0]);break;case 2:this[ja]=new b(e[0],e[1]);break;case 3:this[ja]=new b(e[0],e[1],e[2]);break;case 4:this[ja]=new b(e[0],e[1],e[2],e[3]);break;default:throw Error("O");}};ea(fa[a],b);var c=new b(function(){}),d;for(d in c)a==="XMLHttpRequest"&&d==="responseBlob"||function(e){typeof c[e]===
"function"?fa[a].prototype[e]=function(){return this[ja][e].apply(this[ja],arguments)}:jaa(fa[a].prototype,e,{set:function(f){typeof f==="function"?(this[ja][e]=caa(f,a+"."+e),ea(this[ja][e],f)):this[ja][e]=f},get:function(){return this[ja][e]}})}(d);for(d in b)d!=="prototype"&&b.hasOwnProperty(d)&&(fa[a][d]=b[d])}},ka=function(a,b,c){for(var d=a;d&&!d.hasOwnProperty(b);)d=naa(d);!d&&a[b]&&(d=a);a=ba(b);var e=null;if(d&&(!(e=d[a])||!d.hasOwnProperty(a))){e=d[a]=d[b];var f=d&&eaa(d,b);if(faa(f)){var g=
c(e,a,b);d[b]=function(){return g(this,arguments)};ea(d[b],e)}}return e},oaa=function(a,b,c){function d(f){var g=f.data;g.args[g.cbIdx]=function(){f.invoke.apply(this,arguments)};e.apply(g.target,g.args);return f}var e=null;e=ka(a,b,function(f){return function(g,k){var l=c(g,k);return l.cbIdx>=0&&typeof k[l.cbIdx]==="function"?Zone.current.scheduleMacroTask(l.name,k[l.cbIdx],l,d,void 0):f.apply(g,k)}})},ea=function(a,b){a[ba("OriginalDelegate")]=b},paa=function(a,b,c){if(!c||c.length===0)return b;
c=c.filter(function(e){return e.target===a});if(c.length===0)return b;var d=c[0].ignoreProperties;return b.filter(function(e){return d.indexOf(e)===-1})},qaa=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return b.startsWith("on")&&b.length>2}).map(function(b){return b.substring(2)})},saa=function(a,b){var c=(b?b(a):a)+"false";b=(b?b(a):a)+"true";c=raa+c;b=raa+b;la[a]={};la[a]["false"]=c;la[a]["true"]=b},zaa=function(a,b,c,d){function e(V,ca,na){if(ca=ca||a.event){V=V||ca.target||
a;var ua=V[la[ca.type][na?"true":"false"]];if(ua){na=[];if(ua.length===1)(ca=C(ua[0],V,ca))&&na.push(ca);else{ua=ua.slice();for(var ia=0;ia<ua.length&&(!ca||ca[taa]!==!0);ia++){var Ga=C(ua[ia],V,ca);Ga&&na.push(Ga)}}if(na.length===1)throw na[0];ca={};for(V=0;V<na.length;ca={err$jscomp$16:void 0},V++)ca.err$jscomp$16=na[V],b.nativeScheduleMicroTask(function(ha){return function(){throw ha.err$jscomp$16;}}(ca))}}}function f(V,ca){function na(Rb,Bc){return Bc?typeof Rb==="boolean"?{capture:Rb,passive:!0}:
Rb?typeof Rb==="object"&&Rb.passive!==!1?Object.assign({},Rb,{passive:!0}):Rb:{passive:!0}:Rb}function ua(Rb){if(typeof Rb==="object"&&Rb!==null){var Bc=Object.assign({},Rb);Rb.signal&&(Bc.signal=Rb.signal);return Bc}return Rb}if(!V)return!1;var ia=!0;ca&&ca.useG!==void 0&&(ia=ca.useG);var Ga=ca&&ca.vh,ha=!0;ca&&ca.chkDup!==void 0&&(ha=ca.chkDup);var sa=!1;ca&&ca.rt!==void 0&&(sa=ca.rt);for(var xa=V;xa&&!xa.hasOwnProperty(g);)xa=naa(xa);!xa&&V[g]&&(xa=V);if(!xa||xa[w])return!1;var Qa=ca&&ca.eventNameToString,
bb={},ub=xa[w]=xa[g],Wb=xa[ba(k)]=xa[k];V=xa[ba(l)]=xa[l];var lc=xa[ba(r)]=xa[r],fc;ca&&ca.prepend&&(fc=xa[ba(ca.prepend)]=xa[ca.prepend]);var pc=function(Rb){if(!Rb.isRemoved){var Bc=la[Rb.eventName],Rc;Bc&&(Rc=Bc[Rb.capture?"true":"false"]);if(Bc=Rc&&Rb.target[Rc])for(var Cd=0;Cd<Bc.length;Cd++)if(Bc[Cd]===Rb){Bc.splice(Cd,1);Rb.isRemoved=!0;Rb.removeAbortListener&&(Rb.removeAbortListener(),Rb.removeAbortListener=null);Bc.length===0&&(Rb.allRemoved=!0,Rb.target[Rc]=null);break}}if(Rb.allRemoved)return Wb.call(Rb.target,
Rb.eventName,Rb.capture?J:H,Rb.options)},rb=function(Rb){return ub.call(bb.target,bb.eventName,Rb.invoke,bb.options)},Ob=function(Rb){return fc.call(bb.target,bb.eventName,Rb.invoke,bb.options)},ib=function(Rb){return Wb.call(Rb.target,Rb.eventName,Rb.invoke,Rb.options)};pc=ia?pc:ib;ib=function(Rb,Bc){var Rc=typeof Bc;return Rc==="function"&&Rb.callback===Bc||Rc==="object"&&Rb.originalDelegate===Bc};var $b=(ca==null?void 0:ca.diff)||ib,rc=Zone[ba("UNPATCHED_EVENTS")],Ec=a[ba("PASSIVE_EVENTS")];ib=
function(Rb,Bc,Rc,Cd,Yc,je){Yc=Yc===void 0?!1:Yc;je=je===void 0?!1:je;return function(){var bf=this||a,Ue=arguments[0];ca&&ca.transferEventName&&(Ue=ca.transferEventName(Ue));var fg=arguments[1];if(!fg||uaa&&Ue==="uncaughtException")return Rb.apply(this,arguments);var Nw=!1;if(typeof fg!=="function"){if(!fg.handleEvent)return Rb.apply(this,arguments);Nw=!0}if(!Ga||Ga(Rb,fg,bf,arguments)){var cp=!!Ec&&Ec.indexOf(Ue)!==-1,Dj=ua(na(arguments[2],cp)),Rm=Dj==null?void 0:Dj.signal;if(Rm==null||!Rm.aborted){if(rc)for(var Hq=
0;Hq<rc.length;Hq++)if(Ue===rc[Hq])return cp?Rb.call(bf,Ue,fg,Dj):Rb.apply(this,arguments);cp=Dj?typeof Dj==="boolean"?!0:Dj.capture:!1;Hq=Dj&&typeof Dj==="object"?Dj.once:!1;var Ow=Zone.current,fk=la[Ue];fk||(saa(Ue,Qa),fk=la[Ue]);var Sm=fk[cp?"true":"false"];fk=bf[Sm];var dp=!1;if(fk){if(dp=!0,ha)for(Sm=0;Sm<fk.length;Sm++)if($b(fk[Sm],fg))return}else fk=bf[Sm]=[];var Pw;Sm=bf.constructor.name;var bF=vaa[Sm];bF&&(Pw=bF[Ue]);Pw||(Pw=Sm+Bc+(Qa?Qa(Ue):Ue));bb.options=Dj;Hq&&(bb.options.once=!1);bb.target=
bf;bb.capture=cp;bb.eventName=Ue;bb.isExisting=dp;if(dp=ia?waa:void 0)dp.taskData=bb;Rm&&(bb.options.signal=void 0);var Dl=Ow.scheduleEventTask(Pw,fg,dp,Rc,Cd);if(Rm){bb.options.signal=Rm;var cF=function(){return Dl.zone.cancelTask(Dl)};Rb.call(Rm,"abort",cF,{once:!0});Dl.removeAbortListener=function(){return Rm.removeEventListener("abort",cF)}}bb.target=null;dp&&(dp.taskData=null);Hq&&(bb.options.once=!0);typeof Dl.options!=="boolean"&&(Dl.options=Dj);Dl.target=bf;Dl.capture=cp;Dl.eventName=Ue;Nw&&
(Dl.originalDelegate=fg);je?fk.unshift(Dl):fk.push(Dl);if(Yc)return bf}}}};xa[g]=ib(ub,x,ia?function(){if(!bb.isExisting)return ub.call(bb.target,bb.eventName,bb.capture?J:H,bb.options)}:rb,pc,sa);fc&&(xa.prependListener=ib(fc,".prependListener:",Ob,pc,sa,!0));xa[k]=function(){var Rb=this||a,Bc=arguments[0];ca&&ca.transferEventName&&(Bc=ca.transferEventName(Bc));var Rc=arguments[2];Rc=Rc?typeof Rc==="boolean"?!0:Rc.capture:!1;var Cd=arguments[1];if(!Cd)return Wb.apply(this,arguments);if(!Ga||Ga(Wb,
Cd,Rb,arguments)){var Yc=la[Bc],je;Yc&&(je=Yc[Rc?"true":"false"]);if(Yc=je&&Rb[je])for(var bf=0;bf<Yc.length;bf++){var Ue=Yc[bf];if($b(Ue,Cd)){Yc.splice(bf,1);Ue.isRemoved=!0;Yc.length===0&&(Ue.allRemoved=!0,Rb[je]=null,Rc||typeof Bc!=="string"||(Rb[raa+"ON_PROPERTY"+Bc]=null));Ue.zone.cancelTask(Ue);if(sa)return Rb;return}}return Wb.apply(this,arguments)}};xa[l]=function(){var Rb=this||a,Bc=arguments[0];ca&&ca.transferEventName&&(Bc=ca.transferEventName(Bc));var Rc=[];Rb=xaa(Rb,Qa?Qa(Bc):Bc);for(Bc=
0;Bc<Rb.length;Bc++){var Cd=Rb[Bc];Rc.push(Cd.originalDelegate?Cd.originalDelegate:Cd.callback)}return Rc};xa[r]=function(){var Rb=this||a,Bc=arguments[0];if(Bc){ca&&ca.transferEventName&&(Bc=ca.transferEventName(Bc));var Rc=la[Bc];if(Rc){var Cd=Rb[Rc["false"]];Rb=Rb[Rc["true"]];if(Cd)for(Cd=Cd.slice(),Rc=0;Rc<Cd.length;Rc++){var Yc=Cd[Rc];this[k].call(this,Bc,Yc.originalDelegate?Yc.originalDelegate:Yc.callback,Yc.options)}if(Rb)for(Rb=Rb.slice(),Cd=0;Cd<Rb.length;Cd++)Rc=Rb[Cd],this[k].call(this,
Bc,Rc.originalDelegate?Rc.originalDelegate:Rc.callback,Rc.options)}}else{Bc=Object.keys(Rb);for(Rb=0;Rb<Bc.length;Rb++)(Cd=(Cd=yaa.exec(Bc[Rb]))&&Cd[1])&&Cd!=="removeListener"&&this[r].call(this,Cd);this[r].call(this,"removeListener")}if(sa)return this};ea(xa[g],ub);ea(xa[k],Wb);lc&&ea(xa[r],lc);V&&ea(xa[l],V);return!0}for(var g=d&&d.add||"addEventListener",k=d&&d.rm||"removeEventListener",l=d&&d.listeners||"eventListeners",r=d&&d.rmAll||"removeAllListeners",w=ba(g),x="."+g+":",C=function(V,ca,na){if(!V.isRemoved){var ua=
V.callback;typeof ua==="object"&&ua.handleEvent&&(V.callback=function(ha){return ua.handleEvent(ha)},V.originalDelegate=ua);try{V.invoke(V,ca,[na])}catch(ha){var ia=ha}var Ga=V.options;Ga&&typeof Ga==="object"&&Ga.once&&ca[k].call(ca,na.type,V.originalDelegate?V.originalDelegate:V.callback,Ga);return ia}},H=function(V){return e(this,V,!1)},J=function(V){return e(this,V,!0)},O=[],R=0;R<c.length;R++)O[R]=f(c[R],d);return O},xaa=function(a,b){if(!b){var c=[],d;for(d in a){var e=yaa.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=la[b];c||(saa(b),c=la[b]);b=a[c["false"]];a=a[c["true"]];return b?a?b.concat(a):b.slice():a?a.slice():[]},Aaa=function(a,b){(a=a.Event)&&a.prototype&&b.patchMethod(a.prototype,"stopImmediatePropagation",function(c){return function(d,e){d[taa]=!0;c&&c.apply(d,e)}})},Faa=function(){ma.__load_patch("util",function(a,b,c){var d=qaa(a);c.patchOnProperties=laa;c.patchMethod=ka;c.bindArguments=daa;c.patchMacroTask=oaa;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=Aaa;c.patchEventTarget=zaa;c.ObjectDefineProperty=jaa;c.ObjectGetOwnPropertyDescriptor=eaa;c.ObjectCreate=Baa;c.ArraySlice=Caa;c.patchClass=maa;c.wrapWithCurrentZone=caa;c.filterProperties=paa;c.attachOriginToPatched=ea;c._redefineProperty=Object.defineProperty;c.patchCallbacks=aaa;c.getGlobalObjects=function(){return{globalSources:vaa,zoneSymbolEventNames:la,eventNames:d,
isBrowser:Daa,isMix:Eaa,isNode:uaa,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:raa,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}})},Gaa=function(a,b){b.patchMethod(a,"queueMicrotask",function(){return function(c,d){Zone.current.scheduleMicroTask("queueMicrotask",d[0])}})},oa=function(a,b,c,d){function e(r){var w=r.data;w.args[0]=function(){return r.invoke.apply(this,arguments)};var x=g.apply(a,w.args);typeof x==="number"?w.handleId=x:(w.handle=
x,w.isRefreshable=typeof x.refresh==="function");return r}function f(r){r=r.data;var w=r.handleId,x;return k.call(a,(x=r.handle)!=null?x:w)}var g=null,k=null;b+=d;c+=d;var l={};g=ka(a,b,function(r){return function(w,x){if(typeof x[0]==="function"){var C={isRefreshable:!1,isPeriodic:d==="Interval",delay:d==="Timeout"||d==="Interval"?x[1]||0:void 0,args:x},H=x[0];x[0]=function(){try{return H.apply(this,arguments)}finally{var na=C.handle,ua=C.handleId,ia=C.isRefreshable;C.isPeriodic||ia||(ua?delete l[ua]:
na&&(na[Haa]=null))}};var J=Zone.current.scheduleMacroTask(b,x[0],C,e,f);if(!J)return J;var O=J.data;w=O.handleId;x=O.handle;var R=O.isRefreshable;O=O.isPeriodic;if(w)l[w]=J;else if(x&&(x[Haa]=J,R&&!O)){var V=x.refresh;x.refresh=function(){var na=J.zone,ua=J.state;ua==="notScheduled"?(J._state="scheduled",na._updateTaskCount(J,1)):ua==="running"&&(J._state="scheduling");return V.call(this)}}var ca;return(ca=x!=null?x:w)!=null?ca:J}return r.apply(a,x)}});k=ka(a,c,function(r){return function(w,x){w=
x[0];if(typeof w==="number"){var C=l[w];delete l[w]}else(C=w==null?void 0:w[Haa])?w[Haa]=null:C=w;var H;((H=C)==null?0:H.type)?C.cancelFn&&C.zone.cancelTask(C):r.apply(a,x)}})},Kaa=function(){var a=ma;a.__load_patch("timers",function(b){oa(b,"set","clear","Timeout");oa(b,"set","clear","Interval");oa(b,"set","clear","Immediate")});a.__load_patch("requestAnimationFrame",function(b){oa(b,"request","cancel","AnimationFrame");oa(b,"mozRequest","mozCancel","AnimationFrame");oa(b,"webkitRequest","webkitCancel",
"AnimationFrame")});a.__load_patch("blocking",function(b,c){for(var d=["alert","prompt","confirm"],e=0;e<d.length;e++)ka(b,d[e],function(f,g,k){return function(l,r){return c.current.run(f,b,r,k)}})});a.__load_patch("EventTarget",function(b,c,d){d.patchEventPrototype(b,d);if(!Zone[d.symbol("patchEventTarget")]){var e=d.getGlobalObjects();c=e.eventNames;var f=e.zoneSymbolEventNames,g=e.TRUE_STR,k=e.FALSE_STR;e=e.ZONE_SYMBOL_PREFIX;for(var l=0;l<c.length;l++){var r=c[l],w=e+(r+k),x=e+(r+g);f[r]={};f[r][k]=
w;f[r][g]=x}(c=b.EventTarget)&&c.prototype&&d.patchEventTarget(b,d,[c&&c.prototype])}(c=b.XMLHttpRequestEventTarget)&&c.prototype&&d.patchEventTarget(b,d,[c.prototype])});a.__load_patch("MutationObserver",function(){maa("MutationObserver");maa("WebKitMutationObserver")});a.__load_patch("IntersectionObserver",function(){maa("IntersectionObserver")});a.__load_patch("FileReader",function(){maa("FileReader")});a.__load_patch("on_property",function(b,c,d){if((!uaa||Eaa)&&!Zone[d.symbol("patchEvents")]){c=
b.__Zone_ignore_on_properties;d=[];if(Daa){var e=window;d=d.concat("Document SVGElement Element HTMLElement HTMLBodyElement HTMLMediaElement HTMLFrameSetElement HTMLFrameElement HTMLIFrameElement HTMLMarqueeElement Worker".split(" "));var f=qaa(e),g=naa(e);e&&(f=paa(e,f,c),laa(e,f,g))}d=d.concat("XMLHttpRequest XMLHttpRequestEventTarget IDBIndex IDBRequest IDBOpenDBRequest IDBDatabase IDBTransaction IDBCursor WebSocket".split(" "));for(e=0;e<d.length;e++)if(f=b[d[e]],g=void 0,(g=f)==null?0:g.prototype)g=
f.prototype,f=qaa(f.prototype),g&&(f=paa(g,f,c),laa(g,f,void 0))}});a.__load_patch("customElements",function(b,c,d){c=d.getGlobalObjects();var e=c.isMix;(c.isBrowser||e)&&b.customElements&&"customElements"in b&&d.patchCallbacks(d,b.customElements,"customElements","define","connectedCallback disconnectedCallback adoptedCallback attributeChangedCallback formAssociatedCallback formDisabledCallback formResetCallback formStateRestoreCallback".split(" "))});a.__load_patch("XHR",function(b,c){(function(r){function w(ia){var Ga=
ia.data,ha=Ga.target;ha[g]=!1;ha[l]=!1;var sa=ha[f];J||(J=ha[Iaa],O=ha[Jaa]);sa&&O.call(ha,"readystatechange",sa);sa=ha[f]=function(){if(ha.readyState===ha.DONE)if(!Ga.aborted&&ha[g]&&ia.state==="scheduled"){var xa=ha[c.__symbol__("loadfalse")];if(ha.status!==0&&xa&&xa.length>0){var Qa=ia.invoke;ia.invoke=function(){for(var bb=ha[c.__symbol__("loadfalse")],ub=0;ub<bb.length;ub++)bb[ub]===ia&&bb.splice(ub,1);Ga.aborted||ia.state!=="scheduled"||Qa.call(ia)};xa.push(ia)}else ia.invoke()}else Ga.aborted||
ha[g]!==!1||(ha[l]=!0)};J.call(ha,"readystatechange",sa);ha[d]||(ha[d]=ia);na.apply(ha,Ga.args);ha[g]=!0;return ia}function x(){}function C(ia){ia=ia.data;ia.aborted=!0;return ua.apply(ia.target,ia.args)}var H=r.XMLHttpRequest;if(H){H=H.prototype;var J=H[Iaa],O=H[Jaa];!J&&(r=r.XMLHttpRequestEventTarget)&&(r=r.prototype,J=r[Iaa],O=r[Jaa]);var R=ka(H,"open",function(){return function(ia,Ga){ia[e]=Ga[2]==0;ia[k]=Ga[1];return R.apply(ia,Ga)}}),V=ba("fetchTaskAborting"),ca=ba("fetchTaskScheduling"),na=
ka(H,"send",function(){return function(ia,Ga){if(c.current[ca]===!0||ia[e])return na.apply(ia,Ga);Ga={target:ia,url:ia[k],isPeriodic:!1,args:Ga,aborted:!1};var ha=Zone.current.scheduleMacroTask("XMLHttpRequest.send",x,Ga,w,C);ia&&ia[l]===!0&&!Ga.aborted&&ha.state==="scheduled"&&ha.invoke()}}),ua=ka(H,"abort",function(){return function(ia,Ga){var ha=ia[d];if(ha&&typeof ha.type=="string")ha.cancelFn==null||ha.data&&ha.data.aborted||ha.zone.cancelTask(ha);else if(c.current[V]===!0)return ua.apply(ia,
Ga)}})}})(b);var d=ba("xhrTask"),e=ba("xhrSync"),f=ba("xhrListener"),g=ba("xhrScheduled"),k=ba("xhrURL"),l=ba("xhrErrorBeforeScheduled")});a.__load_patch("geolocation",function(b){b.navigator&&b.navigator.geolocation&&gaa(b.navigator.geolocation)});a.__load_patch("PromiseRejectionEvent",function(b,c){function d(e){return function(f){xaa(b,e).forEach(function(g){var k=b.PromiseRejectionEvent;k&&(k=new k(e,{promise:f.promise,reason:f.rejection}),g.invoke(k))})}}b.PromiseRejectionEvent&&(c[ba("unhandledPromiseRejectionHandler")]=
d("unhandledrejection"),c[ba("rejectionHandledHandler")]=d("rejectionhandled"))});a.__load_patch("queueMicrotask",function(b,c,d){Gaa(b,d)})},Laa=function(){ma.__load_patch("canvas",function(a,b,c){a=a.HTMLCanvasElement;typeof a!=="undefined"&&a.prototype&&a.prototype.toBlob&&c.patchMacroTask(a.prototype,"toBlob",function(d,e){return{name:"HTMLCanvasElement.toBlob",target:d,cbIdx:0,args:e}})})},pa=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,pa);else{var c=Error().stack;c&&
(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b);this.reportErrorToServer=!0},Maa=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");pa.call(this,c+a[d])},qa=function(a,b){if(a)throw Error("P");b.push(65533)},Naa=function(a,b){b=String.fromCharCode.apply(null,b);return a==null?b:a+b},Oaa=function(a,b,c,d){c=b+c;for(var e=[],f=null,g,k,l,r;b<c;)g=a[b++],g<128?e.push(g):g<224?b>=c?qa(d,e):(k=a[b++],g<194||(k&192)!==128?(b--,qa(d,e)):
e.push((g&31)<<6|k&63)):g<240?b>=c-1?qa(d,e):(k=a[b++],(k&192)!==128||g===224&&k<160||g===237&&k>=160||((l=a[b++])&192)!==128?(b--,qa(d,e)):e.push((g&15)<<12|(k&63)<<6|l&63)):g<=244?b>=c-2?qa(d,e):(k=a[b++],(k&192)!==128||(g<<28)+(k-144)>>30!==0||((l=a[b++])&192)!==128||((r=a[b++])&192)!==128?(b--,qa(d,e)):(g=(g&7)<<18|(k&63)<<12|(l&63)<<6|r&63,g-=65536,e.push((g>>10&1023)+55296,(g&1023)+56320))):qa(d,e),e.length>=8192&&(f=Naa(f,e),e.length=0);return Naa(f,e)},Saa=function(a,b,c,d){var e;d?(e=Paa)||
(e=Paa=new TextDecoder("utf-8",{fatal:!0})):(e=Qaa)||(e=Qaa=new TextDecoder("utf-8",{fatal:!1}));c=b+c;a=b===0&&c===a.length?a:a.subarray(b,c);try{return e.decode(a)}catch(f){if(b=d){if(Raa===void 0){try{e.decode(new Uint8Array([128]))}catch(g){}try{e.decode(new Uint8Array([97])),Raa=!0}catch(g){Raa=!1}}b=!Raa}b&&(Paa=void 0);throw f;}},Waa=function(a,b){b=b===void 0?!1:b;if(Taa){if(b&&(Uaa?!a.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("Q");
a=(Vaa||(Vaa=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(f<128)d[c++]=f;else{if(f<2048)d[c++]=f>>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&e<a.length){var g=a.charCodeAt(++e);if(g>=56320&&g<=57343){f=(f-55296)*1024+g-56320+65536;d[c++]=f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Q");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,
c)}return a},ta=function(a){ra.setTimeout(function(){throw a;},0)},va=function(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},Xaa=function(a){return wa("@ldap.google.com",a.slice(a.length-16))==0},ya=function(a){return/^[\s\xa0]*$/.test(a)},wa=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1},za=function(a,b){return a.indexOf(b)!=-1},Yaa=function(a,b){return za(a.toLowerCase(),b.toLowerCase())},$aa=function(a,b){var c=0;a=Aa(String(a)).split(".");
b=Aa(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(f[0].length==0&&g[0].length==0)break;c=Zaa(f[1].length==0?0:parseInt(f[1],10),g[1].length==0?0:parseInt(g[1],10))||Zaa(f[2].length==0,g[2].length==0)||Zaa(f[2],g[2]);f=f[3];g=g[3]}while(c==0)}return c},Zaa=function(a,b){return a<b?-1:a>b?1:0},Ba=function(){var a=ra.navigator;return a&&(a=a.userAgent)?
a:""},bba=function(a){if(!aba||!Ca)return!1;for(var b=0;b<Ca.brands.length;b++){var c=Ca.brands[b].brand;if(c&&za(c,a))return!0}return!1},Da=function(a){return za(Ba(),a)},Ea=function(){return aba?!!Ca&&Ca.brands.length>0:!1},cba=function(){return Ea()?!1:Da("Opera")},dba=function(){return Ea()?!1:Da("Trident")||Da("MSIE")},eba=function(){return Da("Firefox")||Da("FxiOS")},gba=function(){return Da("Safari")&&!(fba()||(Ea()?0:Da("Coast"))||cba()||(Ea()?0:Da("Edge"))||(Ea()?bba("Microsoft Edge"):Da("Edg/"))||
(Ea()?bba("Opera"):Da("OPR"))||eba()||Da("Silk")||Da("Android"))},fba=function(){return Ea()?bba("Chromium"):(Da("Chrome")||Da("CriOS"))&&!(Ea()?0:Da("Edge"))||Da("Silk")},hba=function(){return Da("Android")&&!(fba()||eba()||cba()||Da("Silk"))},iba=function(){var a=Ba();if(dba()){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])a=b[1];else{b="";var c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),c[1]=="7.0")if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;
case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];a=b}}else a="";return a},jba=function(){if(Ea()){var a=Ca.brands.find(function(b){return b.brand==="Internet Explorer"});if(!a||!a.version)return NaN;a=a.version.split(".")}else{a=iba();if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])},kba=function(){return aba?!!Ca&&!!Ca.platform:!1},lba=function(){return kba()?Ca.platform==="Android":Da("Android")},mba=function(){return Da("iPhone")&&!Da("iPod")&&!Da("iPad")},
Fa=function(){return mba()||Da("iPad")||Da("iPod")},Ha=function(){return kba()?Ca.platform==="macOS":Da("Macintosh")},nba=function(){return kba()?Ca.platform==="Windows":Da("Windows")},oba=function(){return kba()?Ca.platform==="Chrome OS":Da("CrOS")},pba=function(){var a=Ba(),b="";nba()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):Fa()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):Ha()?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,
"."):"10"):Yaa(Ba(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):lba()?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):oba()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b||""},Ia=function(a){return a[a.length-1]},qba=function(a,b){var c=0;Ja(a,function(d,e,f){b.call(void 0,d,e,f)&&++c});return c},sba=function(a,b){b=rba(a,b);return b<0?null:typeof a==="string"?a.charAt(b):a[b]},rba=function(a,b){for(var c=typeof a==="string"?a.split(""):a,d=a.length-
1;d>=0;d--)if(d in c&&b.call(void 0,c[d],d,a))return d;return-1},Ka=function(a,b){return tba(a,b)>=0},uba=function(a){if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0},La=function(a,b){b=tba(a,b);var c;(c=b>=0)&&vba(a,b);return c},vba=function(a,b){Array.prototype.splice.call(a,b,1)},wba=function(a,b){a:{for(var c=a.length,d=typeof a==="string"?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}b>=0&&vba(a,b)},Ma=function(a){var b=a.length;if(b>
0){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},xba=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Na(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}},zba=function(a,b,c,d){return Array.prototype.splice.apply(a,yba(arguments,1))},yba=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Bba=function(a,b,c){b=b||a;var d=function(l){return Oa(l)?"o"+Aba(l):
(typeof l).charAt(0)+l};c=c||d;for(var e=d=0,f={};e<a.length;){var g=a[e++],k=c(g);Object.prototype.hasOwnProperty.call(f,k)||(f[k]=!0,b[d++]=g)}b.length=d},Dba=function(a,b){a.sort(b||Cba)},Eba=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||Cba;Dba(c,function(f,g){return e(f.value,g.value)||f.index-g.index});for(b=0;b<a.length;b++)a[b]=c[b].value},Gba=function(a,b){if(!Na(a)||!Na(b)||a.length!=b.length)return!1;for(var c=a.length,d=Fba,e=0;e<c;e++)if(!d(a[e],
b[e]))return!1;return!0},Cba=function(a,b){return a>b?1:a<b?-1:0},Fba=function(a,b){return a===b},Hba=function(a,b){for(var c=new Map,d=0;d<a.length;d++){var e=a[d],f=b(e,d,a);if(f!==void 0){var g=c.get(f);g||(g=[],c.set(f,g));g.push(e)}}return c},Iba=function(){for(var a=[],b=0;b<5;b+=1)a.push(b);return a},Jba=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])},Lba=function(a){return Kba[a]||""},Pba=function(a){if(!Mba)return Nba(a);a=Oba.test(a)?a.replace(Oba,
Lba):a;a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b},Pa=function(a){return Qba&&a!=null&&a instanceof Uint8Array},Rba=function(a,b){var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0},Ra=function(a,b,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():b},Ua=function(a,b){Sa||Ta in a||Sba(a,Tba);a[Ta]|=b},Va=function(a,b){Sa||
Ta in a||Sba(a,Tba);a[Ta]=b},Uba=function(a){if(4&a)return 512&a?512:1024&a?1024:0},Wa=function(a){Ua(a,34);return a},Vba=function(a){Ua(a,8192);return a},Wba=function(a){Ua(a,32);return a},Xa=function(){return typeof BigInt==="function"},Xba=function(a){return a.length==0?Ya():new Za(a,$a)},db=function(a){return a!=null&&a[ab]===cb},fb=function(a,b){return b===void 0?a.copyOnWrite!==eb&&!!(2&(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[Ta]|0)):!!(2&b)&&a.copyOnWrite!==eb},gb=function(a,
b,c){if(a==null){if(!c)throw Error();}else if(typeof a==="string")a=Yba(a);else if(a.constructor!==Za)if(Pa(a))a=a.length?new Za(new Uint8Array(a),$a):Ya();else{if(!b)throw Error();a=void 0}return a},Zba=function(a){return!Array.isArray(a)||a.length?!1:(a[Ta]|0)&1?!0:!1},hb=function(a,b){if(typeof b!=="number"||b<0||b>=a.length)throw Error();},$ba=function(a,b){if(typeof b!=="number"||b<0||b>a.length)throw Error();},aca=function(a,b,c){var d=b&128?0:-1,e=a.length,f;if(f=!!e)f=a[e-1],f=f!=null&&typeof f===
"object"&&f.constructor===Object;var g=e+(f?-1:0);for(b=b&128?1:0;b<g;b++)c(b-d,a[b]);if(f){a=a[e-1];for(var k in a)!isNaN(k)&&c(+k,a[k])}},kb=function(a){return a&128?jb:void 0},bca=function(a){return a},lb=function(a){a.isGuard_doNotManuallySetPrettyPlease=!0;return a},dca=function(){var a=cca;return lb(function(b){for(var c in a)if(b===a[c]&&!/^[0-9]+$/.test(c))return!0;return!1})},fca=function(a){return lb(function(b){return eca(b)?b.every(function(c){return a(c)}):!1})},mb=function(a){var b=
a;if(gca(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(hca(b)&&!Number.isSafeInteger(b))throw Error(String(b));return ica?BigInt(a):a=jca(a)?a?"1":"0":gca(a)?a.trim()||"0":String(a)},kca=function(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(var c=0;c<a.length;c++){var d=a[c],e=b[c];if(d>e)return!1;if(d<e)return!0}},lca=function(a){var b=a>>>0;nb=b;ob=(a-b)/4294967296>>>0},pb=function(a){if(a<0){lca(-a);var b=m(mca(nb,ob));a=b.next().value;
b=b.next().value;nb=a>>>0;ob=b>>>0}else lca(a)},nca=function(a,b){var c=b*4294967296+(a>>>0);return Number.isSafeInteger(c)?c:qb(a,b)},oca=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=nca(a,b);return typeof a==="number"?c?-a:a:c?"-"+a:a},qca=function(a,b){return Xa()?mb(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(b))<<BigInt(32))+BigInt.asUintN(32,BigInt(a)))):mb(pca(a,b))},qb=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Xa()?c=""+(BigInt(b)<<
BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+rca(c)+rca(a));return c},rca=function(a){a=String(a);return"0000000".slice(a.length)+a},pca=function(a,b){b&2147483648?Xa()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=m(mca(a,b)),a=b.next().value,b=b.next().value,a="-"+qb(a,b)):a=qb(a,b);return a},sca=function(a){if(a.length<16)pb(Number(a));else if(Xa())a=BigInt(a),
nb=Number(a&BigInt(4294967295))>>>0,ob=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");ob=nb=0;for(var c=a.length,d=b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),ob*=1E6,nb=nb*1E6+d,nb>=4294967296&&(ob+=Math.trunc(nb/4294967296),ob>>>=0,nb>>>=0);b&&(b=m(mca(nb,ob)),a=b.next().value,b=b.next().value,nb=a,ob=b)}},mca=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]},tca=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=
b},uca=function(){var a=Error();tca(a,"incident");ta(a)},sb=function(a){a=Error(a);tca(a,"warning");return a},tb=function(a,b){if(a!=null){var c;var d=(c=vca)!=null?c:vca={};c=d[a]||0;c>=b||(d[a]=c+1,uca())}},vb=function(a){return Array.prototype.slice.call(a)},wb=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);},wca=function(a){if(typeof a!=="number")throw Error("V`"+typeof a+"`"+a);return a},xb=function(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||
a==="-Infinity")return Number(a)},yb=function(a){if(typeof a!=="boolean")throw Error("W`"+xca(a)+"`"+a);return a},zb=function(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a},Bb=function(a){switch(typeof a){case "bigint":return!0;case "number":return Ab(a);case "string":return yca.test(a);default:return!1}},Cb=function(a){if(!Ab(a))throw sb("enum");return a|0},zca=function(a){return a==null?a:Cb(a)},Db=function(a){return a==null?a:Ab(a)?a|0:void 0},Eb=function(a){if(typeof a!==
"number")throw sb("int32");if(!Ab(a))throw sb("int32");return a|0},Fb=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Ab(a)?a|0:void 0},Aca=function(){if(!Ab(0))throw sb("uint32");return 0},Bca=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Ab(a)?a>>>0:void 0},Hb=function(a,b){b=b===void 0?0:b;if(!Bb(a))throw sb("int64");var c=typeof a;switch(b){case 512:switch(c){case "string":return Cca(a);
case "bigint":return String(Gb(64,a));default:return Dca(a)}case 1024:switch(c){case "string":return Eca(a);case "bigint":return mb(Gb(64,a));default:return Fca(a)}case 0:switch(c){case "string":return Cca(a);case "bigint":return mb(Gb(64,a));default:return Gca(a)}default:return wb(b,"Unknown format requested type for int64")}},Ib=function(a,b){return a==null?a:Hb(a,b===void 0?0:b)},Hca=function(a){var b=a.length;if(a[0]==="-"?b<20||b===20&&a<="-9223372036854775808":b<19||b===19&&a<="9223372036854775807")return a;
sca(a);return pca(nb,ob)},Ica=function(a){if(a[0]==="-")var b=!1;else b=a.length,b=b<20?!0:b===20&&a<="18446744073709551615";if(b)return a;sca(a);return qb(nb,ob)},Gca=function(a){a=Jb(a);Kb(a)||(pb(a),a=oca(nb,ob));return a},Jca=function(a){a=Jb(a);a>=0&&Kb(a)||(pb(a),a=nca(nb,ob));return a},Dca=function(a){a=Jb(a);Kb(a)?a=String(a):(pb(a),a=pca(nb,ob));return a},Kca=function(a){a=Jb(a);a>=0&&Kb(a)?a=String(a):(pb(a),a=qb(nb,ob));return a},Cca=function(a){var b=Jb(Number(a));if(Kb(b))return String(b);
b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Hca(a)},Eca=function(a){var b=Jb(Number(a));if(Kb(b))return mb(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Xa()?mb(Gb(64,BigInt(a))):mb(Hca(a))},Fca=function(a){return Kb(a)?mb(Gca(a)):mb(Dca(a))},Lca=function(a){return Kb(a)?mb(Jca(a)):mb(Kca(a))},Mca=function(a){var b=Jb(Number(a));if(Kb(b)&&b>=0)return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Ica(a)},Nca=function(a){var b=Jb(Number(a));if(Kb(b)&&b>=0)return mb(b);
b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Xa()?mb(Lb(64,BigInt(a))):mb(Ica(a))},Nb=function(a){if(a==null)return a;if(typeof a==="bigint")return Mb(a)?a=Number(a):(a=Gb(64,a),a=Mb(a)?Number(a):String(a)),a;if(Bb(a))return typeof a==="number"?Gca(a):Cca(a)},Pb=function(a,b){b=b===void 0?!1:b;var c=typeof a;if(a==null)return a;if(c==="bigint")return String(Gb(64,a));if(Bb(a))return c==="string"?Cca(a):b?Dca(a):Gca(a)},Qb=function(a){var b=typeof a;if(a==null)return a;if(b==="bigint")return mb(Gb(64,
a));if(Bb(a))return b==="string"?Eca(a):Fca(a)},Oca=function(a){var b=0;b=b===void 0?0:b;if(!Bb(a))throw sb("uint64");var c=typeof a;switch(b){case 512:switch(c){case "string":return Mca(a);case "bigint":return String(Lb(64,a));default:return Kca(a)}case 1024:switch(c){case "string":return Nca(a);case "bigint":return mb(Lb(64,a));default:return Lca(a)}case 0:switch(c){case "string":return Mca(a);case "bigint":return mb(Lb(64,a));default:return Jca(a)}default:return wb(b,"Unknown format requested type for int64")}},
Pca=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(Gb(64,a));if(Bb(a)){if(b==="string")return Cca(a);if(b==="number")return Gca(a)}},Qca=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(Lb(64,a));if(Bb(a)){if(b==="string")return Mca(a);if(b==="number")return Jca(a)}},Sb=function(a){if(typeof a!=="string")throw Error();return a},Rca=function(a){if(a!=null&&typeof a!=="string")throw Error();return a},Tb=function(a){return a==null||typeof a===
"string"?a:void 0},Uca=function(a,b,c,d){if(db(a))return a;if(!Array.isArray(a))return c?d&2?b[Sca]||(b[Sca]=Tca(b)):new b:void 0;c=a[Ta]|0;d=c|d&32|d&2;d!==c&&Va(a,d);return new b(a)},Tca=function(a){a=new a;Wa(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},Vca=function(a,b,c){if(b)return yb(a);var d;return(d=zb(a))!=null?d:c?!1:void 0},Ub=function(a,b,c){a=b?Hb(a,1024):Qb(a);return a==null?c?Wca:void 0:a},Vb=function(a,b,c){if(b)return Sb(a);var d;return(d=Tb(a))!=null?d:c?
"":void 0},Xca=function(a,b,c){a=b?Cb(a):Db(a);return a==null?c?0:void 0:a},Yca=function(a,b){if(typeof b==="string")try{b=Pba(b)}catch(c){return!1}return Pa(b)&&Rba(a,b)},Zca=function(a){switch(a){case "bigint":case "string":case "number":return!0;default:return!1}},ada=function(a,b){if(a[ab]===cb)a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;else if(!Array.isArray(a))return!1;if(b[ab]===cb)b=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;else if(!Array.isArray(b))return!1;
return $ca(a,b,void 0,2)},Xb=function(a,b,c){return $ca(a,b,c,0)},$ca=function(a,b,c,d){if(a===b||a==null&&b==null)return!0;if(a instanceof Map)return bda(a,b,c);if(b instanceof Map)return bda(b,a,c);if(a==null||b==null)return!1;if(a instanceof Za)return cda(a,b);if(b instanceof Za)return cda(b,a);if(Pa(a))return Yca(a,b);if(Pa(b))return Yca(b,a);var e=typeof a,f=typeof b;if(e!=="object"||f!=="object")return Number.isNaN(a)||Number.isNaN(b)?String(a)===String(b):Zca(e)&&Zca(f)?""+a===""+b:e==="boolean"&&
f==="number"||e==="number"&&f==="boolean"?!a===!b:!1;if(a[ab]===cb||b[ab]===cb)return ada(a,b);if(a.constructor!=b.constructor)return!1;if(a.constructor===Array){f=a[Ta]|0;var g=b[Ta]|0,k=a.length,l=b.length,r=Math.max(k,l);e=(f|g|64)&128?0:-1;if(d===1||(f|g)&1)d=1;else if((f|g)&8192)return dda(a,b);f=k&&a[k-1];g=l&&b[l-1];f!=null&&typeof f==="object"&&f.constructor===Object||(f=null);g!=null&&typeof g==="object"&&g.constructor===Object||(g=null);k=k-e-+!!f;l=l-e-+!!g;for(var w=0;w<r;w++)if(!eda(w-
e,a,f,k,b,g,l,e,c,d))return!1;if(f)for(var x in f){d=a;r=f;w=k;var C=b,H=g,J=l,O=e,R=c,V=+x;if(!(!Number.isFinite(V)||V<w||V<J||eda(V,d,r,w,C,H,J,O,R,2)))return!1}if(g)for(var ca in g)if((x=f&&ca in f)||(x=a,d=f,r=k,w=b,C=g,H=l,J=e,O=c,R=+ca,x=!Number.isFinite(R)||R<r||R<H?!0:eda(R,x,d,r,w,C,H,J,O,2)),!x)return!1;return!0}if(a.constructor===Object)return Xb([a],[b]);throw Error();},eda=function(a,b,c,d,e,f,g,k,l,r){b=fda(a,b,c,d,k);e=fda(a,e,f,g,k);r=r===1;if(e==null&&Zba(b)||b==null&&Zba(e))return!0;
a=r?l:l==null?void 0:l.getFieldComparisonTypeInfo(a);return $ca(b,e,a,0)},fda=function(a,b,c,d,e){var f;return(f=a<d?b[a+e]:void 0)!=null?f:c==null?void 0:c[a]},gda=function(a){return a},hda=function(a,b,c,d,e,f){a=Uca(a,d,c,f);e&&(a=Yb(a));return a},ida=function(a,b,c){if(a.size!=b.size)return!1;var d=!0;a.forEach(function(e,f){Xb(e,b.get(f),c==null?void 0:c.getFieldComparisonTypeInfo(2))||(d=!1)});return d},jda=function(a,b){if(!Array.isArray(a)||!Array.isArray(b))return 0;a=""+a[0];b=""+b[0];return a===
b?0:a<b?-1:1},kda=function(a,b,c){if(b==null)return a.size===0;if(!Array.isArray(b)||a.size>b.length)return!1;b=vb(b);Array.prototype.sort.call(b,jda);for(var d=0,e=void 0,f=b.length-1;f>=0;f--){var g=b[f];if(!g||!Array.isArray(g)||g.length!==2)return!1;var k=g[0];if(k!==e){e=void 0;if(!Xb(a.get(k),g[1],(e=c)==null?void 0:e.getFieldComparisonTypeInfo(2)))return!1;e=k;d++}}return d===a.size},dda=function(a,b){if(!Array.isArray(a)||!Array.isArray(b))return!1;a=vb(a);b=vb(b);Array.prototype.sort.call(a,
jda);Array.prototype.sort.call(b,jda);var c=a.length,d=b.length;if(c===0&&d===0)return!0;for(var e=0,f=0;e<c&&f<d;){var g=void 0,k=a[e];if(!Array.isArray(k))return!1;for(var l=k[0];e<c-1&&Xb((g=a[e+1])[0],l);)e++,k=g;var r=void 0;g=b[f];if(!Array.isArray(g))return!1;for(var w=g[0];f<d-1&&Xb((r=b[f+1])[0],w);)f++,g=r;if(!Xb(l,w))return!1;l=void 0;if(!Xb(k[1],g[1],(l=void 0)==null?void 0:l.getFieldComparisonTypeInfo(2)))return!1;e++;f++}return e>=c&&f>=d},lda=function(a){return[a,this.get(a)]},oda=
function(){return mda||(mda=new Zb(Wa([]),void 0,void 0,void 0,nda))},pda=function(a){var b=ac(bc);return b?a[b]:void 0},qda=function(a,b){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var c=ac(bc);c&&c in a&&(a=a[c])&&delete a[b]},tda=function(a,b){var c=c===void 0?!1:c;if(ac(rda)&&ac(bc)&&void 0===rda){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=d[bc];if(!e)return;if(e=e.reviveUnknownFields)try{e(d,b,sda);return}catch(f){ta(f)}}c&&qda(a,b)},vda=function(a,b){var c=
ac(bc),d;Sa&&c&&((d=a[c])==null?void 0:d[b])!=null&&tb(uda,3)},xda=function(a,b){b<100||tb(wda,1)},Cda=function(a,b,c,d){var e=d!==void 0;d=!!d;var f=ac(bc),g;!e&&Sa&&f&&(g=a[f])&&yda(g,xda);f=[];var k=a.length;g=4294967295;var l=!1,r=!!(b&64),w=r?b&128?0:-1:void 0;if(!(b&1)){var x=k&&a[k-1];x!=null&&typeof x==="object"&&x.constructor===Object?(k--,g=k):x=void 0;if(r&&!(b&128)&&!e){l=!0;var C;g=((C=zda)!=null?C:bca)(g-w,w,a,x,void 0)+w}}b=void 0;for(C=0;C<k;C++){var H=a[C];if(H!=null&&(H=c(H,d))!=
null)if(r&&C>=g){var J=C-w,O=void 0;((O=b)!=null?O:b={})[J]=H}else f[C]=H}if(x)for(var R in x)k=x[R],k!=null&&(k=c(k,d))!=null&&(C=+R,H=void 0,r&&!Number.isNaN(C)&&(H=C+w)<g?f[H]=k:(C=void 0,((C=b)!=null?C:b={})[R]=k));b&&(l?f.push(b):f[g]=b);e&&ac(bc)&&(a=pda(a))&&a instanceof Ada&&(f[bc]=Bda(a));return f},Dda=function(a){a[0]=cc(a[0]);a[1]=cc(a[1]);return a},cc=function(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return Mb(a)?Number(a):""+a;case "boolean":return a?
1:0;case "object":if(Array.isArray(a)){var b=a[Ta]|0;return a.length===0&&b&1?void 0:Cda(a,b,cc)}if(db(a))return Eda(a);if(a instanceof Za)return Fda(a);if(a instanceof Zb)return a=a.size!==0?Gda(a,Dda):void 0,a;return}return a},Jda=function(a,b){if(b){zda=b==null||b===bca||b[Hda]!==Ida?bca:b;try{return Eda(a)}finally{zda=void 0}}return Eda(a)},Eda=function(a){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Cda(a,a[Ta]|0,cc)},Mda=function(a){switch(typeof a){case "boolean":return Kda||
(Kda=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Lda||(Lda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}},Oda=function(a,b){return Nda(a,b[0],b[1])},n=function(a,b,c){return Nda(a,b,c,2048)},Nda=function(a,b,c,d){d=d===void 0?0:d;if(a==null){var e=32;c?(a=[c],e|=128):a=[];b&&(e=e&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("Y");e=a[Ta]|0;if(Pda&&1&e)throw Error("Z");2048&e&&!(2&e)&&Qda();if(e&256)throw Error("$");if(e&64)return(e|d)!==e&&Va(a,
e|d),a;if(c&&(e|=128,c!==a[0]))throw Error("aa");a:{c=a;e|=64;var f=c.length;if(f){var g=f-1,k=c[g];if(k!=null&&typeof k==="object"&&k.constructor===Object){b=e&128?0:-1;g-=b;if(g>=1024)throw Error("ca");for(var l in k)f=+l,f<g&&(c[f+b]=k[l],delete k[l]);e=e&-16760833|(g&1023)<<14;break a}}if(b){l=Math.max(b,f-(e&128?0:-1));if(l>1024)throw Error("da");e=e&-16760833|(l&1023)<<14}}}Va(a,e|64|d);return a},Qda=function(){if(Pda)throw Error("ba");tb(Rda,5)},Sda=function(a,b){if(typeof a==="string")return new dc(Pba(a),
b);if(Array.isArray(a))return new dc(new Uint8Array(a),b);if(a.constructor===Uint8Array)return new dc(a,!1);if(a.constructor===ArrayBuffer)return a=new Uint8Array(a),new dc(a,!1);if(a.constructor===Za)return b=ec(a)||new Uint8Array(0),new dc(b,!0,a);if(a instanceof Uint8Array)return a=a.constructor===Uint8Array?a:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),new dc(a,!1);throw Error();},Vda=function(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[Ta]|0;return a.length===0&&
c&1?void 0:Tda(a,c,b)}if(db(a))return Uda(a);if(a instanceof Zb){b=a.arrayState;if(b&2)return a;if(!a.size)return;c=Wa(Gda(a));if(a.valueCtor)for(a=0;a<c.length;a++){var d=c[a],e=d[1];e==null||typeof e!=="object"?e=void 0:db(e)?e=Uda(e):Array.isArray(e)?e=Tda(e,e[Ta]|0,!!(b&32)):e=void 0;d[1]=e}return c}if(a instanceof Za)return a},Tda=function(a,b,c){if(b&2)return a;!c||4096&b||16&b?a=hc(a,b,!1,c&&!(b&16)):(Ua(a,34),b&4&&Object.freeze(a));return a},Wda=function(a,b,c){a=new a.constructor(b);c&&(a.copyOnWrite=
eb);a.noLegacyNull=eb;return a},Uda=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ta]|0;return fb(a,c)?a:Xda(a,b,c)?Wda(a,b):hc(b,c)},hc=function(a,b,c,d){d!=null||(d=!!(34&b));a=Cda(a,b,Vda,d);d=32;c&&(d|=2);b=b&16769217|d;Va(a,b);return a},Yb=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ta]|0;return fb(a,c)?Xda(a,b,c)?Wda(a,b,!0):new a.constructor(hc(b,c,!1)):a},Yda=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,
c=b[Ta]|0;return fb(a,c)?a:Xda(a,b,c)?Wda(a,b):new a.constructor(hc(b,c,!0))},ic=function(a){if(a.copyOnWrite!==eb)return!1;var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=hc(b,b[Ta]|0);Ua(b,2048);a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=b;a.copyOnWrite=void 0;a.noLegacyNull=void 0;return!0},jc=function(a){if(!ic(a)&&fb(a,a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[Ta]|0))throw Error();},kc=function(a,b){b===void 0&&(b=a[Ta]|0);b&32&&!(b&4096)&&Va(a,b|
4096)},Xda=function(a,b,c){return c&2?!0:c&32&&!(c&4096)?(Va(b,c|2),a.copyOnWrite=eb,!0):!1},mc=function(a,b,c,d,e){var f=c+(e?0:-1),g=a.length-1;if(g>=1+(e?0:-1)&&f>=g){var k=a[g];if(k!=null&&typeof k==="object"&&k.constructor===Object)return k[c]=d,b}if(f<=g)return a[f]=d,b;if(d!==void 0){var l;g=((l=b)!=null?l:b=a[Ta]|0)>>14&1023||536870912;c>=g?d!=null&&(f={},a[g+(e?0:-1)]=(f[c]=d,f)):a[f]=d}return b},qc=function(a,b,c,d,e,f,g){var k=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=
k[Ta]|0;d=fb(a,l)?1:d;e=!!e||d===3;d===2&&ic(a)&&(k=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=k[Ta]|0);var r=Zda(k,b,g),w=r===nc?7:r[Ta]|0,x=$da(w,l);var C=x;4&C?f==null?a=!1:(!e&&f===0&&(512&C||1024&C)&&(a.constructor[aea]=(a.constructor[aea]|0)+1)<5&&uca(),a=f===0?!1:!(f&C)):a=!0;if(a){4&x&&(r=vb(r),w=0,x=oc(x,l),l=mc(k,l,b,r,g));for(var H=C=0;C<r.length;C++){var J=c(r[C]);J!=null&&(r[H++]=J)}H<C&&(r.length=H);c=(x|4)&-513;x=c&=-1025;f&&(x|=f);x&=-4097}x!==w&&(Va(r,x),2&x&&Object.freeze(r));
return r=bea(r,x,k,l,b,g,d,a,e)},bea=function(a,b,c,d,e,f,g,k,l){var r=b;g===1||(g!==4?0:2&b||!(16&b)&&32&d)?sc(b)||(b|=!a.length||k&&!(4096&b)||32&d&&!(4096&b||16&b)?2:256,b!==r&&Va(a,b),Object.freeze(a)):(g===2&&sc(b)&&(a=vb(a),r=0,b=oc(b,d),d=mc(c,d,e,a,f)),sc(b)||(l||(b|=16),b!==r&&Va(a,b)));2&b||!(4096&b||16&b)||kc(c,d);return a},Zda=function(a,b,c){a=tc(a,b,c);return Array.isArray(a)?a:nc},$da=function(a,b){2&b&&(a|=2);return a|1},sc=function(a){return!!(2&a)&&!!(4&a)||!!(256&a)},uc=function(a){return gb(a,
!0,!0)},cea=function(a,b,c,d,e,f){var g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[Ta]|0;var l=fb(a,k);a:{!l&&ic(a)&&(g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[Ta]|0);var r=tc(g,b,f);a=!1;if(r==null){if(l){b=oda();break a}r=[]}else if(r.constructor===Zb)if(r.arrayState&2&&!l)r=Gda(r);else{b=r;break a}else Array.isArray(r)?a=!!((r[Ta]|0)&2):r=[];if(l){if(!r.length){b=oda();break a}a||(a=!0,Wa(r))}else if(a){a=!1;Vba(r);r=vb(r);for(var w=0;w<r.length;w++){var x=
r[w]=vb(r[w]);Array.isArray(x[1])&&(x[1]=Wa(x[1]))}r=Vba(r)}!a&&k&32&&Wba(r);d=new Zb(r,c,d,e);k=mc(g,k,b,d,f);a||kc(g,k);b=d}!l&&c&&(b.callToMutableOnAccess=!0);return b},vc=function(a,b,c,d){return cea(a,b,void 0,Vb,c,d)},wc=function(a,b,c,d,e){return cea(a,b,c,d,void 0,e)},xc=function(a,b,c,d,e){jc(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=f[Ta]|0;if(c==null)return mc(f,g,b,void 0,e),a;var k=c===nc?7:c[Ta]|0,l=k,r=sc(k),w=r||Object.isFrozen(c);r||(k=0);w||(c=vb(c),l=0,
k=oc(k,g),w=!1);k|=5;var x;r=(x=Uba(k))!=null?x:0;for(x=0;x<c.length;x++){var C=c[x],H=d(C,r);Object.is(C,H)||(w&&(c=vb(c),l=0,k=oc(k,g),w=!1),c[x]=H)}k!==l&&(w&&(c=vb(c),k=oc(k,g)),Va(c,k));mc(f,g,b,c,e);return a},yc=function(a,b,c,d,e){jc(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;mc(f,f[Ta]|0,b,(d==="0"?Number(c)===0:c===d)?void 0:c,e);return a},dea=function(a,b,c){if(b&2)throw Error();var d=kb(b),e=Zda(a,c,d),f=e===nc?7:e[Ta]|0,g=$da(f,b);if(2&g||sc(g)||16&g)g===f||sc(g)||
Va(e,g),e=vb(e),f=0,g=oc(g,b),mc(a,b,c,e,d);g&=-13;g!==f&&Va(e,g);return e},fea=function(a){if(Sa){var b;return(b=a[eea])!=null?b:a[eea]=new Map}if(eea in a)return a[eea];b=new Map;Object.defineProperty(a,eea,{value:b});return b},hea=function(a,b,c,d,e){var f=fea(a),g=gea(f,a,b,c,e);g!==d&&(g&&(b=mc(a,b,g,void 0,e)),f.set(c,d));return b},gea=function(a,b,c,d,e){var f=a.get(d);if(f!=null)return f;for(var g=f=0;g<d.length;g++){var k=d[g];tc(b,k,e)!=null&&(f!==0&&(c=mc(b,c,f,void 0,e)),f=k)}a.set(d,
f);return f},iea=function(a,b,c,d,e){var f=!1;d=tc(a,d,e,function(g){var k=Uca(g,c,!1,b);f=k!==g&&k!=null;return k});if(d!=null)return f&&!fb(d)&&kc(a,b),d},jea=function(a,b,c,d,e,f,g,k,l){var r=fb(a,c);f=r?1:f;k=!!k||f===3;r=l&&!r;(f===2||r)&&ic(a)&&(b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ta]|0);a=Zda(b,e,g);var w=a===nc?7:a[Ta]|0,x=$da(w,c);if(l=!(4&x)){var C=a,H=c,J=!!(2&x);J&&(H|=2);for(var O=!J,R=!0,V=0,ca=0;V<C.length;V++){var na=Uca(C[V],d,!1,H);if(na instanceof d){if(!J){var ua=
fb(na);O&&(O=!ua);R&&(R=ua)}C[ca++]=na}}ca<V&&(C.length=ca);x|=4;x=R?x&-4097:x|4096;x=O?x|8:x&-9}x!==w&&(Va(a,x),2&x&&Object.freeze(a));if(r&&!(8&x||!a.length&&(f===1||(f!==4?0:2&x||!(16&x)&&32&c)))){sc(x)&&(a=vb(a),x=oc(x,c),c=mc(b,c,e,a,g));d=a;r=x;for(w=0;w<d.length;w++)C=d[w],x=Yb(C),C!==x&&(d[w]=x);r|=8;x=r=d.length?r|4096:r&-4097;Va(a,x)}return a=bea(a,x,b,c,e,g,f,l,k)},kea=function(a){a==null&&(a=void 0);return a},oc=function(a,b){return a=(2&b?a|2:a&-3)&-273},zc=function(a,b,c,d,e,f,g,k,l,
r){jc(a);b=qc(a,b,f,2,!0,void 0,g);var w;f=(w=Uba(b===nc?7:b[Ta]|0))!=null?w:0;if(l)if(Array.isArray(d))for(e=d.length,k=0;k<e;k++)b.push(c(d[k],f));else for(d=m(d),e=d.next();!e.done;e=d.next())b.push(c(e.value,f));else k&&r?(e!=null||(e=b.length-1),hb(b,e),b.splice(e,k)):(k&&$ba(b,e),e!=void 0?b.splice(e,k,c(d,f)):b.push(c(d,f)));return a},Ac=function(a,b,c,d,e,f,g,k){jc(a);var l=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=jea(a,l,l[Ta]|0,c,b,2,d,!0);if(g&&k)f!=null||(f=a.length-
1),hb(a,f),a.splice(f,g),a.length||(a[Ta]&=-4097);else return g?$ba(a,f):e=e!=null?e:new c,f!=void 0?a.splice(f,g,e):a.push(e),f=c=a===nc?7:a[Ta]|0,(g=fb(e))?(c&=-9,a.length===1&&(c&=-4097)):c|=4096,c!==f&&Va(a,c),g||kc(l),e},lea=function(a){return Pb(a,!0)},mea=function(a){return gb(a,!1,!1)},nea=function(a,b){if(b==null)return new a;if(!Array.isArray(b))throw Error();if(Object.isFrozen(b)||Object.isSealed(b)||!Object.isExtensible(b))throw Error();return new a(Wba(b))},oea=function(a,b){b=b===void 0?
window:b;b=b===void 0?window:b;return(b=b.WIZ_global_data)&&a in b?b[a]:null},pea=function(){ma.__load_patch("Error",function(a,b,c){function d(na){for(var ua={zoneName:na.zone.name},ia=ua;na.parent;){na=na.parent;var Ga={zoneName:na.zone.name};ua=ua.parent=Ga}return ia}function e(na,ua,ia){ia=ia===void 0?!0:ia;na=na.split("\n");for(var Ga=0;na[Ga]!==w&&na[Ga]!==x&&na[Ga]!==C&&na[Ga]!==H&&na[Ga]!==J&&Ga<na.length;)Ga++;for(;Ga<na.length&&ua;Ga++){var ha=na[Ga];if(ha.trim())switch(r[ha]){case g.zoneJsInternal:na.splice(Ga,
1);Ga--;break;case g.transition:ua.parent?ua=ua.parent:ua=null;na.splice(Ga,1);Ga--;break;default:na[Ga]+=ia?" ["+ua.zone.name+"]":" ["+ua.zoneName+"]"}}return na.join("\n")}function f(){var na=this,ua=l.apply(this,arguments),ia=ua.originalStack=ua.stack;if(f.stackRewrite&&ia){var Ga=c.currentZoneFrame();if(O==="lazy")ua[c.symbol("zoneFrameNames")]=d(Ga);else if(O==="default")try{ua.stack=ua.zoneAwareStack=e(ia,Ga)}catch(ha){}}return this instanceof l&&this.constructor!=l?(Object.keys(ua).concat("stack",
"message","cause").forEach(function(ha){var sa=ua[ha];if(sa!==void 0)try{na[ha]=sa}catch(xa){}}),this):ua}var g={zoneJsInternal:0,transition:1},k=c.symbol("zoneJsInternalStackFrames"),l=a[c.symbol("Error")]=a.Error,r={},w,x,C,H,J;a.Error=f;var O=a.__Zone_Error_BlacklistedStackFrames_policy||a.__Zone_Error_ZoneJsInternalStackFrames_policy||"default";f.prototype=l.prototype;f[k]=r;f.stackRewrite=!1;var R=c.symbol("zoneAwareStack");O==="lazy"&&Object.defineProperty(f.prototype,"zoneAwareStack",{configurable:!0,
enumerable:!0,get:function(){this[R]||(this[R]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1));return this[R]},set:function(na){this.originalStack=na;this[R]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1)}});var V=["stackTraceLimit","captureStackTrace","prepareStackTrace"];(a=Object.keys(l))&&a.forEach(function(na){V.filter(function(ua){return ua===na}).length===0&&Object.defineProperty(f,na,{get:function(){return l[na]},set:function(ua){l[na]=ua}})});l.hasOwnProperty("stackTraceLimit")&&
(l.stackTraceLimit=Math.max(l.stackTraceLimit,15),Object.defineProperty(f,"stackTraceLimit",{get:function(){return l.stackTraceLimit},set:function(na){return l.stackTraceLimit=na}}));l.hasOwnProperty("captureStackTrace")&&Object.defineProperty(f,"captureStackTrace",{value:function(na,ua){l.captureStackTrace(na,ua)}});Object.defineProperty(f,"prepareStackTrace",{get:function(){return l.prepareStackTrace},set:function(na){return na&&typeof na==="function"?l.prepareStackTrace=function(ua,ia){if(ia)for(var Ga=
0;Ga<ia.length;Ga++)if(ia[Ga].getFunctionName()==="zoneCaptureStackTrace"){ia.splice(Ga,1);break}return na.call(this,ua,ia)}:l.prepareStackTrace=na}});if(O!=="disable"){var ca=b.current.fork({name:"detect",onHandleError:function(na,ua,ia,Ga){if(Ga.originalStack&&Error===f)for(na=Ga.originalStack.split(/\n/),Ga=ia=ua=!1;na.length;){var ha=na.shift();if(/:\d+:\d+/.test(ha)||ha==="ZoneAwareError"){var sa=ha.split("(")[0].split("@")[0],xa=g.transition;sa.indexOf("ZoneAwareError")!==-1&&(sa.indexOf("new ZoneAwareError")!==
-1?(w=ha,x=ha.replace("new ZoneAwareError","new Error.ZoneAwareError")):(C=ha,H=ha.replace("Error.",""),ha.indexOf("Error.ZoneAwareError")===-1&&(J=ha.replace("ZoneAwareError","Error.ZoneAwareError"))),r[x]=g.zoneJsInternal);sa.indexOf("runGuarded")!==-1?ia=!0:sa.indexOf("runTask")!==-1?Ga=!0:sa.indexOf("run")!==-1?ua=!0:xa=g.zoneJsInternal;r[ha]=xa;if(ua&&ia&&Ga){f.stackRewrite=!0;break}}}return!1}}).fork({name:"child",onScheduleTask:function(na,ua,ia,Ga){return na.scheduleTask(ia,Ga)},onInvokeTask:function(na,
ua,ia,Ga,ha,sa){return na.invokeTask(ia,Ga,ha,sa)},onCancelTask:function(na,ua,ia,Ga){return na.cancelTask(ia,Ga)},onInvoke:function(na,ua,ia,Ga,ha,sa,xa){return na.invoke(ia,Ga,ha,sa,xa)}});b=Error.stackTraceLimit;Error.stackTraceLimit=100;ca.run(function(){ca.runGuarded(function(){var na=function(){};ca.scheduleEventTask(k,function(){ca.scheduleMacroTask(k,function(){ca.scheduleMicroTask(k,function(){throw Error();},void 0,function(ua){ua._transitionTo=na;ua.invoke()});ca.scheduleMicroTask(k,function(){throw Error();
},void 0,function(ua){ua._transitionTo=na;ua.invoke()})},void 0,function(ua){ua._transitionTo=na;ua.invoke()},function(){})},void 0,function(ua){ua._transitionTo=na;ua.invoke()},function(){})})});Error.stackTraceLimit=b}})},qea=function(){ma.__load_patch("ZoneAwarePromise",function(a,b,c){function d(rb){if(rb&&rb.toString===Object.prototype.toString){var Ob=rb.constructor&&rb.constructor.name;return(Ob?Ob:"")+": "+JSON.stringify(rb)}return rb?rb.toString():Object.prototype.toString.call(rb)}function e(rb){c.onUnhandledError(rb);
try{var Ob=b[ua];typeof Ob==="function"&&Ob.call(this,rb)}catch(ib){}}function f(rb){return rb}function g(rb){return fc.reject(rb)}function k(rb,Ob){return function(ib){try{l(rb,Ob,ib)}catch($b){l(rb,!1,$b)}}}function l(rb,Ob,ib){var $b=Qa();if(rb===ib)throw new TypeError("ja");if(rb[ia]===null){var rc=null;try{if(typeof ib==="object"||typeof ib==="function")rc=ib&&ib.then}catch(Ec){return $b(function(){l(rb,!1,Ec)})(),rb}if(Ob!==!1&&ib instanceof fc&&ib.hasOwnProperty(ia)&&ib.hasOwnProperty(Ga)&&
ib[ia]!==null)r(ib),l(rb,ib[ia],ib[Ga]);else if(Ob!==!1&&typeof rc==="function")try{rc.call(ib,$b(k(rb,Ob)),$b(k(rb,!1)))}catch(Ec){$b(function(){l(rb,!1,Ec)})()}else{rb[ia]=Ob;$b=rb[Ga];rb[Ga]=ib;rb[ha]===ha&&Ob===!0&&(rb[ia]=rb[xa],rb[Ga]=rb[sa]);Ob===!1&&ib instanceof Error&&(rc=b.currentTask&&b.currentTask.data&&b.currentTask.data.__creationTrace__)&&J(ib,bb,{configurable:!0,enumerable:!1,writable:!0,value:rc});for(rc=0;rc<$b.length;)w(rb,$b[rc++],$b[rc++],$b[rc++],$b[rc++]);if($b.length==0&&
Ob==0){rb[ia]=0;Ob=ib;try{throw Error("ka`"+d(ib)+"`"+(ib&&ib.stack?"\n"+ib.stack:""));}catch(Ec){Ob=Ec}V&&(Ob.throwOriginal=!0);Ob.rejection=ib;Ob.promise=rb;Ob.zone=b.current;Ob.task=b.currentTask;R.push(Ob);c.scheduleMicroTask()}}}return rb}function r(rb){if(rb[ia]===0){try{var Ob=b[ub];Ob&&typeof Ob==="function"&&Ob.call(this,{rejection:rb[Ga],promise:rb})}catch(ib){}rb[ia]=!1;for(Ob=0;Ob<R.length;Ob++)rb===R[Ob].promise&&R.splice(Ob,1)}}function w(rb,Ob,ib,$b,rc){r(rb);var Ec=rb[ia],Rb=Ec?typeof $b===
"function"?$b:f:typeof rc==="function"?rc:g;Ob.scheduleMicroTask("Promise.then",function(){try{var Bc=rb[Ga],Rc=!!ib&&ha===ib[ha];Rc&&(ib[sa]=Bc,ib[xa]=Ec);var Cd=Ob.run(Rb,void 0,Rc&&Rb!==g&&Rb!==f?[]:[Bc]);l(ib,!0,Cd)}catch(Yc){l(ib,!1,Yc)}},ib)}function x(rb){var Ob=rb.prototype,ib=H(Ob,"then");if(!ib||ib.writable!==!1&&ib.configurable){var $b=Ob.then;Ob[na]=$b;rb.prototype.then=function(rc,Ec){var Rb=this;return(new fc(function(Bc,Rc){$b.call(Rb,Bc,Rc)})).then(rc,Ec)};rb[pc]=!0}}function C(rb){return function(Ob,
ib){Ob=rb.apply(Ob,ib);if(Ob instanceof fc)return Ob;ib=Ob.constructor;ib[pc]||x(ib);return Ob}}var H=Object.getOwnPropertyDescriptor,J=Object.defineProperty,O=c.symbol,R=[],V=a[O("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,ca=O("Promise"),na=O("then");c.onUnhandledError=function(rb){if(c.showUncaughtError()){var Ob=rb&&rb.rejection;Ob?console.error("Unhandled Promise rejection:",Ob instanceof Error?Ob.message:Ob,"; Zone:",rb.zone.name,"; Task:",rb.task&&rb.task.source,"; Value:",Ob,Ob instanceof
Error?Ob.stack:void 0):console.error(rb)}};c.microtaskDrainDone=function(){for(var rb={};R.length;rb={uncaughtPromiseError$jscomp$1:void 0}){rb.uncaughtPromiseError$jscomp$1=R.shift();try{rb.uncaughtPromiseError$jscomp$1.zone.runGuarded(function(Ob){return function(){if(Ob.uncaughtPromiseError$jscomp$1.throwOriginal)throw Ob.uncaughtPromiseError$jscomp$1.rejection;throw Ob.uncaughtPromiseError$jscomp$1;}}(rb))}catch(Ob){e(Ob)}}};var ua=O("unhandledPromiseRejectionHandler"),ia=O("state"),Ga=O("value"),
ha=O("finally"),sa=O("parentPromiseValue"),xa=O("parentPromiseState"),Qa=function(){var rb=!1;return function(Ob){return function(){rb||(rb=!0,Ob.apply(null,arguments))}}},bb=O("currentTaskTrace"),ub=O("rejectionHandledHandler"),Wb=function(){},lc=a.AggregateError,fc=function(rb){if(!(this instanceof fc))throw Error("la");this[ia]=null;this[Ga]=[];try{var Ob=Qa();rb&&rb(Ob(k(this,!0)),Ob(k(this,!1)))}catch(ib){l(this,!1,ib)}};fc.toString=function(){return"function ZoneAwarePromise() { [native code] }"};
fc.resolve=function(rb){return rb instanceof fc?rb:l(new this(null),!0,rb)};fc.reject=function(rb){return l(new this(null),!1,rb)};fc.withResolvers=function(){var rb={};rb.promise=new fc(function(Ob,ib){rb.resolve=Ob;rb.reject=ib});return rb};fc.any=function(rb){if(!rb||typeof rb[Symbol.iterator]!=="function")return Promise.reject(new lc([],"All promises were rejected"));var Ob=[],ib=0;try{for(var $b=m(rb),rc=$b.next();!rc.done;rc=$b.next()){var Ec=rc.value;ib++;Ob.push(fc.resolve(Ec))}}catch(Rc){return Promise.reject(new lc([],
"All promises were rejected"))}if(ib===0)return Promise.reject(new lc([],"All promises were rejected"));var Rb=!1,Bc=[];return new fc(function(Rc,Cd){for(var Yc=0;Yc<Ob.length;Yc++)Ob[Yc].then(function(je){Rb||(Rb=!0,Rc(je))},function(je){Bc.push(je);ib--;ib===0&&(Rb=!0,Cd(new lc(Bc,"All promises were rejected")))})})};fc.race=function(rb){function Ob(Bc){$b(Bc)}function ib(Bc){rc(Bc)}var $b,rc,Ec=new this(function(Bc,Rc){$b=Bc;rc=Rc});rb=m(rb);for(var Rb=rb.next();!Rb.done;Rb=rb.next())(Rb=Rb.value)&&
typeof Rb.then==="function"||(Rb=this.resolve(Rb)),Rb.then(Ob,ib);return Ec};fc.all=function(rb){return fc.allWithCallback(rb)};fc.allSettled=function(rb){return(this&&this.prototype instanceof fc?this:fc).allWithCallback(rb,{thenCallback:function(Ob){return{status:"fulfilled",value:Ob}},errorCallback:function(Ob){return{status:"rejected",reason:Ob}}})};fc.allWithCallback=function(rb,Ob){var ib,$b,rc=new this(function(Yc,je){ib=Yc;$b=je}),Ec=2,Rb=0,Bc=[];rb=m(rb);for(var Rc=rb.next(),Cd={};!Rc.done;Cd=
{curValueIndex:void 0},Rc=rb.next()){(Rc=Rc.value)&&typeof Rc.then==="function"||(Rc=this.resolve(Rc));Cd.curValueIndex=Rb;try{Rc.then(function(Yc){return function(je){Bc[Yc.curValueIndex]=Ob?Ob.thenCallback(je):je;Ec--;Ec===0&&ib(Bc)}}(Cd),function(Yc){return function(je){Ob?(Bc[Yc.curValueIndex]=Ob.errorCallback(je),Ec--,Ec===0&&ib(Bc)):$b(je)}}(Cd))}catch(Yc){$b(Yc)}Ec++;Rb++}Ec-=2;Ec===0&&ib(Bc);return rc};da.Object.defineProperty(fc.prototype,Symbol.toStringTag,{configurable:!0,enumerable:!0,
get:function(){return"Promise"}});da.Object.defineProperty(fc.prototype,Symbol.species,{configurable:!0,enumerable:!0,get:function(){return fc}});fc.prototype.then=function(rb,Ob){var ib,$b=(ib=this.constructor)==null?void 0:ib[Symbol.species];$b&&typeof $b==="function"||($b=this.constructor||fc);ib=new $b(Wb);$b=b.current;this[ia]==null?this[Ga].push($b,ib,rb,Ob):w(this,$b,ib,rb,Ob);return ib};fc.prototype.catch=function(rb){return this.then(null,rb)};fc.prototype.finally=function(rb){var Ob,ib=
(Ob=this.constructor)==null?void 0:Ob[Symbol.species];ib&&typeof ib==="function"||(ib=fc);Ob=new ib(Wb);Ob[ha]=ha;ib=b.current;this[ia]==null?this[Ga].push(ib,Ob,rb,rb):w(this,ib,Ob,rb,rb);return Ob};fc.resolve=fc.resolve;fc.reject=fc.reject;fc.race=fc.race;fc.all=fc.all;ca=a[ca]=a.Promise;a.Promise=fc;var pc=O("thenPatched");c.patchThen=x;ca&&(x(ca),ka(a,"fetch",function(rb){return C(rb)}));Promise[b.__symbol__("uncaughtPromiseErrors")]=R;return fc})},rea=function(){ma.__load_patch("toString",function(a){var b=
Function.prototype.toString,c=ba("OriginalDelegate"),d=ba("Promise"),e=ba("Error"),f=function(){if(typeof this==="function"){var k=this[c];if(k)return typeof k==="function"?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 g=Object.prototype.toString;Object.prototype.toString=function(){return typeof Promise==="function"&&this instanceof Promise?"[object Promise]":g.call(this)}})},
Cc=function(a){for(var b in a)if(a[b]===Cc)return b;throw Error("na");},Dc=function(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}},Fc=function(a){return{providers:a.providers||[],imports:a.imports||[]}},tea=function(a){var b=sea;return a.hasOwnProperty(b)&&a[b]||null},uea=function(a){var b;return(a=(b=a==null?void 0:a[sea])!=null?b:null)?a:null},wea=function(a){return a&&a.hasOwnProperty(vea)?a[vea]:null},xea=function(a,b){return Object.is(a,b)},Hc=function(a){var b=
Gc;Gc=a;return b},Jc=function(a){if(yea)throw Error("na");if(Gc!==null){Gc.consumerOnSignalRead(a);var b=Gc.producersTail;if(b===void 0||b.producer!==a){var c=void 0,d=Gc.recomputing;if(d&&(c=b!==void 0?b.nextProducer:Gc.producers,c!==void 0&&c.producer===a)){Gc.producersTail=c;c.lastReadVersion=a.version;return}var e=a.consumersTail,f;if(!(f=e===void 0||e.consumer!==Gc)){if(d){a:{f=Gc;d=f.producersTail;if(d!==void 0){f=f.producers;do{if(f===e){d=!0;break a}if(f===d)break;f=f.nextProducer}while(f!==
void 0)}d=!1}d=!d}f=d}f&&(d=Ic(Gc),c={producer:a,consumer:Gc,nextProducer:c,prevConsumer:e,lastReadVersion:a.version,nextConsumer:void 0},Gc.producersTail=c,b!==void 0?b.nextProducer=c:Gc.producers=c,d&&zea(a,c))}}},Cea=function(a){if(!Ic(a)||a.dirty)if(a.dirty||a.lastCleanEpoch!==Aea)(a.producerMustRecompute(a)||Bea(a))&&a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=Aea},Dea=function(a){if(a.consumers!==void 0){var b=yea;yea=!0;try{for(var c=a.consumers;c!==void 0;c=c.nextConsumer){var d=
c.consumer;d.dirty||(a=void 0,d.dirty=!0,Dea(d),(a=d.consumerMarkedDirty)==null||a.call(d,d))}}finally{yea=b}}},Eea=function(){var a;return((a=Gc)==null?void 0:a.consumerAllowSignalWrites)!==!1},Kc=function(a){a&&(a.producersTail=void 0,a.recomputing=!0);return Hc(a)},Gea=function(a,b){Hc(b);if(a){a.recomputing=!1;b=a.producersTail;var c=b!==void 0?b.nextProducer:a.producers;if(c!==void 0){if(Ic(a)){do c=Fea(c);while(c!==void 0)}b!==void 0?b.nextProducer=void 0:a.producers=void 0}}},Bea=function(a){for(a=
a.producers;a!==void 0;a=a.nextProducer){var b=a.producer,c=a.lastReadVersion;if(c!==b.version)return!0;Cea(b);if(c!==b.version)return!0}return!1},Hea=function(a){if(Ic(a))for(var b=a.producers;b!==void 0;)b=Fea(b);a.producers=void 0;a.producersTail=void 0;a.consumers=void 0;a.consumersTail=void 0},zea=function(a,b){var c=a.consumersTail,d=Ic(a);c!==void 0?(b.nextConsumer=c.nextConsumer,c.nextConsumer=b):(b.nextConsumer=void 0,a.consumers=b);b.prevConsumer=c;a.consumersTail=b;if(!d)for(a=a.producers;a!==
void 0;a=a.nextProducer)zea(a.producer,a)},Fea=function(a){var b=a.producer,c=a.nextProducer,d=a.nextConsumer,e=a.prevConsumer;a.nextConsumer=void 0;a.prevConsumer=void 0;d!==void 0?d.prevConsumer=e:b.consumersTail=e;if(e!==void 0)e.nextConsumer=d;else if(b.consumers=d,!Ic(b))for(a=b.producers;a!==void 0;)a=Fea(a);return c},Ic=function(a){return a.consumerIsAlwaysLive||a.consumers!==void 0},Jea=function(a,b){var c=Object.create(Iea);c.computation=a;b!==void 0&&(c.equal=b);a=function(){Cea(c);Jc(c);
if(c.value===Lc)throw c.error;return c.value};a[Mc]=c;return a},Mea=function(a,b){var c=Object.create(Kea);c.value=a;b!==void 0&&(c.equal=b);a=function(){Jc(c);return c.value};a[Mc]=c;return[a,function(d){return Nc(c,d)},function(d){Eea()||Lea();Nc(c,d(c.value))}]},Nc=function(a,b){Eea()||Lea();a.equal(a.value,b)||(a.value=b,a.version++,Aea++,Dea(a))},Oea=function(a,b,c){var d=Object.create(Nea);d.source=a;d.computation=b;c!=void 0&&(d.equal=c);a=function(){Cea(d);Jc(d);if(d.value===Lc)throw d.error;
return d.value};a[Mc]=d;return a},Oc=function(a){var b=Hc(null);try{return a()}finally{Hc(b)}},Pc=function(a){if(typeof a==="string")return a;if(Array.isArray(a))return"["+a.map(Pc).join(", ")+"]";if(a==null)return""+a;var b=a.overriddenName||a.name;if(b)return""+b;a=a.toString();if(a==null)return""+a;b=a.indexOf("\n");return b>=0?a.slice(0,b):a},Pea=function(a,b){return a?b?a+" "+b:a:b||""},Qea=function(a,b){return"NG0"+Math.abs(a)+(b?": "+b:"")},Qc=function(a){return typeof a==="string"?a:a==null?
"":String(a)},Rea=function(){throw new Sc(-201,!1);},Uea=function(a){var b=new Sc(a,"");b[Sea]=a;b[Tea]="";return b},Tc=function(a){var b=Vea;Vea=a;return b},Wea=function(a,b,c){if((a=tea(a))&&a.providedIn=="root")return a.value===void 0?a.value=a.factory():a.value;if(c&8)return null;if(b!==void 0)return b;Rea()},Uc=function(a){var b=Xea;Xea=a;return b},Zea=function(a){return a===Yea||(a==null?void 0:a.name)==="\u0275NotFound"},Vc=function(a){a.__forward_ref__=Vc;a.toString=function(){return Pc(this())};
return a},Wc=function(a){return $ea(a)?a():a},$ea=function(a){return typeof a==="function"&&a.hasOwnProperty(afa)&&a.__forward_ref__===Vc},bfa=function(a,b){b=b===void 0?0:b;var c=Xea;if(c===void 0)throw new Sc(-203,!1);if(c===null)return Wea(a,void 0,b);b={optional:!!(b&8),host:!!(b&1),self:!!(b&2),skipSelf:!!(b&4)};a=c.retrieve(a,b);if(Zea(a)){if(b.optional)return null;throw a;}return a},Xc=function(a,b){b=b===void 0?0:b;return(Vea||bfa)(Wc(a),b)},p=function(a,b){return Xc(a,cfa(b))},cfa=function(a){return typeof a===
"undefined"||typeof a==="number"?a:0|(a.optional&&8)|(a.host&&1)|(a.self&&2)|(a.skipSelf&&4)},dfa=function(a){for(var b=[],c=0;c<a.length;c++){var d=Wc(a[c]);if(Array.isArray(d)){if(d.length===0)throw new Sc(900,!1);for(var e=void 0,f=0,g=0;g<d.length;g++){var k=d[g],l=k.__NG_DI_FLAG__;typeof l==="number"?l===-1?e=k.token:f|=l:e=k}b.push(Xc(e,f))}else b.push(Xc(d))}return b},efa=function(a,b){a.__NG_DI_FLAG__=b;a.prototype.__NG_DI_FLAG__=b;return a},gfa=function(a){return a[ffa]||null},Zc=function(a){return a.hasOwnProperty(hfa)?
a[hfa]:null},ifa=function(a,b){a.forEach(function(c){return Array.isArray(c)?ifa(c,b):b(c)})},jfa=function(a,b){return b>=a.length-1?a.pop():a.splice(b,1)[0]},lfa=function(a,b,c){var d=kfa(a,b);if(d>=0)a[d|1]=c;else{d=~d;var e=a.length;if(e==d)a.push(b,c);else if(e===1)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}}},mfa=function(a,b){b=kfa(a,b);if(b>=0)return a[b|1]},kfa=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)},ofa=function(){return{"\u0275providers":nfa(!0,$c.apply(0,arguments)),"\u0275fromNgModule":!0}},nfa=function(a){var b=[],c=new Set,d,e=function(f){b.push(f)};ifa($c.apply(1,arguments),function(f){pfa(f,e,[],c)&&(d||(d=[]),d.push(f))});d!==void 0&&qfa(d,e);return b},qfa=function(a,b){for(var c={},d=0;d<a.length;c={providers$jscomp$2:void 0,ngModule:void 0},d++){var e=a[d];c.ngModule=e.ngModule;c.providers$jscomp$2=e.providers;rfa(c.providers$jscomp$2,function(f){return function(g){b(g,
f.ngModule)}}(c))}},pfa=function(a,b,c,d){a=Wc(a);if(!a)return!1;var e=null,f=wea(a),g=!f&&(a[ad]||null);if(f||g){if(g&&!g.standalone)return!1;e=a}else{var k=a.ngModule;if(f=wea(k))e=k;else return!1}k=d.has(e);if(g){if(k)return!1;d.add(e);if(g.dependencies)for(f=typeof g.dependencies==="function"?g.dependencies():g.dependencies,f=m(f),k=f.next();!k.done;k=f.next())pfa(k.value,b,c,d)}else if(f){if(f.imports!=null&&!k){d.add(e);var l;ifa(f.imports,function(w){pfa(w,b,c,d)&&(l||(l=[]),l.push(w))});l!==
void 0&&qfa(l,b)}k||(g=Zc(e)||function(){return new e},b({provide:e,useFactory:g,deps:bd},e),b({provide:sfa,useValue:e,multi:!0},e),b({provide:tfa,useValue:function(){return Xc(e)},multi:!0},e));f=f.providers;if(f!=null&&!k){var r=a;rfa(f,function(w){b(w,r)})}}else return!1;return e!==a&&a.providers!==void 0},rfa=function(a,b){a=m(a);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&c.\u0275providers&&(c=c.\u0275providers),Array.isArray(c)?rfa(c,b):b(c)},vfa=function(a){return a!==null&&typeof a==
"object"&&ufa in a},cd=function(a){return typeof a==="function"},yfa=function(){wfa===void 0&&(wfa=new xfa);return wfa},Afa=function(a){var b=tea(a);b=b!==null?b.factory:Zc(a);if(b!==null)return b;if(a instanceof dd)throw new Sc(204,!1);if(a instanceof Function)return zfa(a);throw new Sc(204,!1);},zfa=function(a){if(a.length>0)throw new Sc(204,!1);var b=uea(a);return b!==null?function(){return b.factory(a)}:function(){return new a}},Dfa=function(a){if(vfa(a))return ed(void 0,a.useValue);a=Bfa(a);
return ed(a,Cfa)},Bfa=function(a){var b=void 0;if(cd(a))return b=Wc(a),Zc(b)||Afa(b);if(vfa(a))b=function(){return Wc(a.useValue)};else if(a&&a.useFactory)b=function(){return a.useFactory.apply(a,q(dfa(a.deps||[])))};else if(a&&a.useExisting)b=function(d,e){return Xc(Wc(a.useExisting),e!==void 0&&e&8?8:void 0)};else{var c=Wc(a&&(a.useClass||a.provide));if(a.deps)b=function(){return new (Function.prototype.bind.apply(c,[null].concat(q(dfa(a.deps)))))};else return Zc(c)||Afa(c)}return b},Efa=function(a){if(a.destroyed)throw new Sc(205,
!1);},ed=function(a,b,c){return{factory:a,value:b,multi:(c===void 0?0:c)?[]:void 0}},Ffa=function(a,b){a=m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Array.isArray(c)?Ffa(c,b):c&&c&&c.\u0275providers?Ffa(c.\u0275providers,b):b(c)},gd=function(a,b){a instanceof fd?Efa(a):a=new Gfa(a);a=Uc(a);var c=Tc();try{return b()}finally{Uc(a),Tc(c)}},hd=function(a){return Array.isArray(a)&&typeof a[1]==="object"},id=function(a){return Array.isArray(a)&&a[1]===!0},Jfa=function(a){a.type.prototype.ngOnChanges&&
(a.setInput=Hfa);return Ifa},Ifa=function(){var a=this.__ngSimpleChanges__||null,b=a==null?void 0:a.current;if(b){var c=a.previous;if(c===jd)a.previous=b;else for(var d in b)c[d]=b[d];a.current=null;this.ngOnChanges(b)}},Hfa=function(a,b,c,d,e){d=this.declaredInputs[d];var f;(f=a.__ngSimpleChanges__||null)||(f=a.__ngSimpleChanges__={previous:jd,current:null});var g=f;f=g.current||(g.current={});g=g.previous;var k=g[d];f[d]=new Kfa(k&&k.currentValue,c,g===jd);b!==null?b.applyValueToInputSignal(b,c):
a[e]=c},kd=function(a){for(;Array.isArray(a);)a=a[0];return a},ld=function(a,b){return kd(b[a.index])},Lfa=function(a,b,c,d){c>=a.data.length&&(a.data[c]=null,a.blueprint[c]=null);b[c]=d},md=function(a,b){a=b[a];return hd(a)?a:a[0]},nd=function(a,b){return b===null||b===void 0?null:a[b]},Mfa=function(a){a[2]&1024||(a[2]|=1024,(a[2]&128)===128&&od(a))},Nfa=function(a){var b;return!!(a[2]&9216||((b=a[24])==null?0:b.dirty))},Ofa=function(a){var b;(b=a[10].changeDetectionScheduler)==null||b.notify(8);
a[2]&64&&(a[2]|=1024);Nfa(a)&&od(a)},od=function(a){var b;(b=a[10].changeDetectionScheduler)==null||b.notify(0);for(a=pd(a);a!==null&&!(a[2]&8192);){a[2]|=8192;if((a[2]&128)!==128)break;a=pd(a)}},Pfa=function(a,b){if((a[2]&256)===256)throw new Sc(911,!1);a[21]===null&&(a[21]=[]);a[21].push(b)},pd=function(a){a=a[3];return id(a)?a[3]:a},Qfa=function(a){var b;return(b=a[7])!=null?b:a[7]=[]},Rfa=function(a){var b;return(b=a.cleanup)!=null?b:a.cleanup=[]},t=function(){return qd.lView},rd=function(){return qd.tView},
u=function(a){qd.contextLView=a;return a[8]},v=function(a){qd.contextLView=null;return a},td=function(){for(var a=qd.currentTNode;a!==null&&a.type===64;)a=a.parent;return a},Sfa=function(){var a=qd,b=a.currentTNode;return a.isParent?b:b.parent},ud=function(a,b){var c=qd;c.currentTNode=a;c.isParent=b},Ufa=function(a){var b=Tfa;Tfa=a;return b},vd=function(){var a=qd,b=a.bindingRootIndex;b===-1&&(b=a.bindingRootIndex=a.tView.bindingStartIndex);return b},wd=function(){return qd.bindingIndex++},Vfa=function(a){var b=
qd,c=b.bindingIndex;b.bindingIndex+=a;return c},Wfa=function(a){var b=qd.currentDirectiveIndex;return b===-1?null:a[b]},Yfa=function(a,b,c){if(c&4){for(;!(b=b.parent,b!==null||c&1);){b=a[1];b=b.type===2?b.declTNode:b.type===1?a[5]:null;if(b===null)break;a=a[14];if(b.type&10)break}if(b===null)return!1}c=qd=Xfa();c.currentTNode=b;c.lView=a;return!0},Zfa=function(a){var b=Xfa(),c=a[1];qd=b;b.currentTNode=c.firstChild;b.lView=a;b.tView=c;b.contextLView=a;b.bindingIndex=c.bindingStartIndex;b.inI18n=!1},
Xfa=function(){var a=qd,b=a===null?null:a.child;return b===null?$fa(a):b},$fa=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};a!==null&&(a.child=b);return b},aga=function(){var a=qd;qd=a.parent;a.currentTNode=null;a.lView=null;return a},bga=function(){var a=aga();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},xd=function(){var a=qd;return a.tView.data[a.selectedIndex]},yd=function(){qd.currentNamespace="svg"},zd=function(){qd.currentNamespace=null},cga=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,g=d.ngAfterViewInit,k=d.ngAfterViewChecked;
d=d.ngOnDestroy;if(e){var l=void 0,r=void 0;((r=(l=a).contentHooks)!=null?r:l.contentHooks=[]).push(-c,e)}f&&(l=e=void 0,((l=(e=a).contentHooks)!=null?l:e.contentHooks=[]).push(c,f),l=e=void 0,((l=(e=a).contentCheckHooks)!=null?l:e.contentCheckHooks=[]).push(c,f));g&&(e=f=void 0,((e=(f=a).viewHooks)!=null?e:f.viewHooks=[]).push(-c,g));k&&(f=g=void 0,((f=(g=a).viewHooks)!=null?f:g.viewHooks=[]).push(c,k),f=g=void 0,((f=(g=a).viewCheckHooks)!=null?f:g.viewCheckHooks=[]).push(c,k));d!=null&&(g=k=void 0,
((g=(k=a).destroyHooks)!=null?g:k.destroyHooks=[]).push(c,d))}},ega=function(a,b,c,d){(a[2]&3)===c&&dga(a,b,c,d)},fga=function(a,b){var c=a[2];(c&3)===b&&(a[2]=(c&16383)+1)},dga=function(a,b,c,d){for(var e=d!=null?d:-1,f=b.length-1,g=0,k=d!==void 0?a[17]&65535:0;k<f;k++)if(typeof b[k+1]==="number"){if(g=b[k],d!=null&&g>=d)break}else{b[k]<0&&(a[17]+=65536);if(g<e||e==-1){var l=b[k]<0,r=b[k+1],w=a[l?-b[k]:b[k]];l?a[2]>>14<a[17]>>16&&(a[2]&3)===c&&(a[2]+=16384,gga(w,r)):gga(w,r);a[17]=(a[17]&4294901760)+
k+2}k++}},gga=function(a,b){Ad(4,a,b);var c=Hc(null);try{b.call(a)}finally{Hc(c),Ad(5,a,b)}},hga=function(a){return a===3||a===4||a===6},Bd=function(a,b){if(b!==null&&b.length!==0)if(a===null||a.length===0)a=b.slice();else for(var c=-1,d=0;d<b.length;d++){var e=b[d];typeof e==="number"?c=e:c!==0&&(c===-1||c===2?iga(a,c,e,b[++d]):iga(a,c,e,null))}return a},iga=function(a,b,c,d){var e=0,f=a.length;if(b===-1)f=-1;else for(;e<a.length;){var g=a[e++];if(typeof g==="number")if(g===b){f=-1;break}else if(g>
b){f=e-1;break}}for(;e<a.length;){g=a[e];if(typeof g==="number")break;else if(g===c){d!==null&&(a[e+1]=d);return}e++;d!==null&&e++}f!==-1&&(a.splice(f,0,b),e=f+1);a.splice(e++,0,c);d!==null&&a.splice(e++,0,d)},jga=function(a,b){for(a>>=16;a>0;)b=b[14],a--;return b},kga=function(a){return{toString:a}.toString()},mga=function(a){var b=lga;lga=a;return b},pga=function(a,b,c){var d;typeof c==="string"?d=c.charCodeAt(0)||0:c.hasOwnProperty(nga)&&(d=c[nga]);d==null&&(d=c[nga]=oga++);c=d&255;b.data[a+(c>>
5)]|=1<<c},tga=function(a,b){var c=qga(a,b);if(c!==-1)return c;c=b[1];c.firstCreatePass&&(a.injectorIndex=b.length,rga(c.data,a),rga(b,null),rga(c.blueprint,null));c=sga(a,b);a=a.injectorIndex;if(c!==-1)for(var d=c&32767,e=jga(c,b),f=e[1].data,g=0;g<8;g++)b[a+g]=e[d+g]|f[d+g];b[a+8]=c;return a},rga=function(a,b){a.push(0,0,0,0,0,0,0,0,b)},qga=function(a,b){return a.injectorIndex===-1||a.parent&&a.parent.injectorIndex===a.injectorIndex||b[a.injectorIndex+8]===null?-1:a.injectorIndex},sga=function(a,
b){if(a.parent&&a.parent.injectorIndex!==-1)return a.parent.injectorIndex;a=0;for(var c=b;c!==null;){b=uga(c);if(b===null)break;a++;c=c[14];if(b.injectorIndex!==-1)return b.injectorIndex|a<<16}return-1},vga=function(a){var b=td();if(a==="class")return b.classes;if(a==="style")return b.styles;if(b=b.attrs)for(var c=b.length,d=0;d<c;){var e=b[d];if(hga(e))break;if(e===0)d+=2;else if(typeof e==="number")for(d++;d<c&&typeof b[d]==="string";)d++;else{if(e===a)return b[d+1];d+=2}}return null},wga=function(a,
b,c,d){c&8&&d===void 0&&(d=null);if((c&3)===0){a=a[9];var e=Tc();try{return a?a.get(b,d,c&8):Wea(b,d,c&8)}finally{Tc(e)}}c&8||d!==void 0?b=d:(Rea(),b=void 0);return b},yga=function(a,b,c,d,e){d=d===void 0?0:d;if(a!==null){if(b[2]&2048&&!(d&2)){a:{var f=d;for(var g=Dd,k=a,l=b;k!==null&&l!==null&&l[2]&2048&&(l[2]&512)===0;){var r=xga(k,l,c,f|2);if(r!==Dd){f=r;break a}k=k.parent;if(!k){if(k=l[20])if(k=k.get(c,Dd,f),k!==Dd){f=k;break a}k=uga(l);l=l[14]}}f=g}if(f!==Dd)return f}a=xga(a,b,c,d);if(a!==Dd)return a}return wga(b,
c,d,e)},xga=function(a,b,c,d){var e=Dd;if(typeof c==="string")var f=c.charCodeAt(0)||0;else f=c.hasOwnProperty(nga)?c[nga]:void 0,f=typeof f==="number"?f>=0?f&255:zga:f;if(typeof f==="function"){if(!Yfa(b,a,d))return d&1?d&8||e!==void 0?b=e:(Rea(),b=void 0):b=wga(b,c,d,e),b;try{var g=f(d);if(g!=null||d&8)return g;Rea()}finally{aga()}}else if(typeof f==="number"){g=null;var k=qga(a,b),l=d&1?b[15][5]:null;if(k===-1||d&4){var r=k===-1?sga(a,b):b[k+8];r===-1||d&2?k=-1:(g=b[1],k=r&32767,b=jga(r,b))}for(;k!==
-1;){a=b[1];if(a.data[k+(f>>5)]&1<<f){r=b[1];var w=r.data[k+8],x=Aga(w,r,c,g==null?w.componentOffset>-1&&lga:g!=r&&(w.type&3)!==0,d&1&&l===w);r=x!==null?Bga(b,r,x,w,d):Dd;if(r!==Dd)return r}r=b[k+8];r!==-1&&!(d&2||d&1&&b[1].data[k+8]===l)&&b[k+(f>>5)]&1<<f?(g=a,k=r&32767,b=jga(r,b)):k=-1}}return e},Aga=function(a,b,c,d,e){var f=a.providerIndexes,g=b.data,k=f&1048575;b=a.directiveStart;a=a.directiveEnd;var l=f>>20;f=e?k+l:a;for(d=d?k:k+l;d<f;d++)if(k=g[d],d<b&&c===k||d>=b&&k.type===c)return d;return e&&
(e=g[b])&&e.template&&e.type===c?b:null},Bga=function(a,b,c,d,e){var f=a[c],g=b.data;if(f instanceof Cga){var k=f;if(k.resolving)throw Uea(-200);var l=mga(k.canSeeViewProviders);k.resolving=!0;var r=k.injectImpl?Tc(k.injectImpl):null;Yfa(a,d,0);try{if(f=a[c]=k.factory(void 0,e,g,a,d),b.firstCreatePass&&c>=d.directiveStart){var w=g[c],x=w.type.prototype,C=x.ngOnInit,H=x.ngDoCheck;if(x.ngOnChanges){var J=Jfa(w),O;((O=b.preOrderHooks)!=null?O:b.preOrderHooks=[]).push(c,J);var R;((R=b.preOrderCheckHooks)!=
null?R:b.preOrderCheckHooks=[]).push(c,J)}if(C){var V;((V=b.preOrderHooks)!=null?V:b.preOrderHooks=[]).push(-c,C)}if(H){var ca;((ca=b.preOrderHooks)!=null?ca:b.preOrderHooks=[]).push(c,H);var na;((na=b.preOrderCheckHooks)!=null?na:b.preOrderCheckHooks=[]).push(c,H)}}}finally{r!==null&&Tc(r),mga(l),k.resolving=!1,aga()}}return f},zga=function(){return new Ed(td(),t())},Fd=function(a){return kga(function(){var b=a.prototype.constructor;b=b[hfa]||Dga(b);for(var c=Object.prototype,d=Object.getPrototypeOf(a.prototype).constructor;d&&
d!==c;){var e=d[hfa]||Dga(d);if(e&&e!==b)return e;d=Object.getPrototypeOf(d)}return function(f){return new f}})},Dga=function(a){return $ea(a)?function(){var b=Dga(Wc(a));return b&&b()}:Zc(a)},uga=function(a){var b=a[1],c=b.type;return c===2?b.declTNode:c===1?a[5]:null},Ega=function(a){return function(){var b=$c.apply(0,arguments);if(a){b=a.apply(null,q(b));for(var c in b)this[c]=b[c]}}},Fga=function(a,b){return kga(function(){function c(){function e(k,l,r){for(l=k.hasOwnProperty("__parameters__")?
k.__parameters__:Object.defineProperty(k,"__parameters__",{value:[]}).__parameters__;l.length<=r;)l.push(null);(l[r]=l[r]||[]).push(g);return k}var f=$c.apply(0,arguments);if(this instanceof c)return d.apply(this,f),this;var g=new (Function.prototype.bind.apply(c,[null].concat(q(f))));e.annotation=g;return e}var d=Ega(b);c.prototype.ngMetadataName=a;return c})},Hga=function(a,b,c,d){a=Gga(a,b===void 0?null:b,c===void 0?null:c,d);a.resolveInjectorInitializers();return a},Gga=function(a,b,c,d,e){b=
b===void 0?null:b;e=e===void 0?new Set:e;c=[(c===void 0?null:c)||bd,ofa(a)];d=d||(typeof a==="object"?void 0:Pc(a));return new fd(c,b||yfa(),d||null,e)},Iga=function(a){return a.type===4&&a.value!=="ng-template"},Jga=function(a,b,c){var d=4,e=a.attrs,f;if(e!==null)a:{for(f=0;f<e.length;f++)if(hga(e[f]))break a;f=e.length}else f=0;for(var g=!1,k=0;k<b.length;k++){var l=b[k];if(typeof l==="number"){if(!g&&(d&1)!==0&&(l&1)!==0)return!1;g&&(l&1)===0||(g=!1,d=l|d&1)}else if(!g)if(d&4){if(d=2|d&1,l!==""&&
l!==(a.type!==4||c?a.value:"ng-template")||l===""&&b.length===1){if((d&1)===0)return!1;g=!0}}else if(d&8){var r;if(!(r=e===null)){a:{r=void 0;var w=a,x=0;if(c)for(;x<e.length&&typeof e[x]==="string";x+=2){if(w=e[x]==="class"){b:{w=e[x+1].toLowerCase();for(var C=0,H=w.length;;){C=w.indexOf(l,C);if(C===-1){w=C;break b}if(C===0||w.charCodeAt(C-1)<=32){var J=l.length;if(C+J===H||w.charCodeAt(C+J)<=32){w=C;break b}}C+=1}w=void 0}w=w!==-1}if(w){l=!0;break a}}else if(Iga(w)){l=!1;break a}x=e.indexOf(1,x);
if(x>-1)for(;++x<e.length&&typeof(r=e[x])==="string";)if(r.toLowerCase()===l){l=!0;break a}l=!1}r=!l}if(r){if((d&1)===0)return!1;g=!0}}else{r=b[++k];a:if(e===null)l=-1;else if(x=0,c||!Iga(a)){for(w=!1;x<e.length;){H=e[x];if(H===l){l=x;break a}if(H===3||H===6)w=!0;else if(H===1||H===2){for(H=e[++x];typeof H==="string";)H=e[++x];continue}else if(H===4)break;else if(H===0){x+=4;continue}x+=w?1:2}l=-1}else b:{x=e.indexOf(4);if(x>-1)for(x++;x<e.length;){w=e[x];if(typeof w==="number")break;if(w===l){l=
x;break b}x++}l=-1}if(l===-1){if((d&1)===0)return!1;g=!0}else if(r!==""&&(l=l>f?"":e[l+1].toLowerCase(),d&2&&r!==l)){if((d&1)===0)return!1;g=!0}}}return(d&1)===0||g},Kga=function(a,b,c){c=c===void 0?!1:c;for(var d=0;d<b.length;d++)if(Jga(a,b[d],c))return!0;return!1},Lga=function(a){for(var b=a[0],c=1,d=2,e="",f=!1;c<a.length;){var g=a[c];if(typeof g==="string")if(d&2){var k=a[++c];e+="["+g+(k.length>0?'="'+k+'"':"")+"]"}else d&8?e+="."+g:d&4&&(e+=" "+g);else e!==""&&(g&1)!==0&&(b+=f?":not("+e.trim()+
")":e,e=""),d=g,f=f||(d&1)!==0;c++}e!==""&&(b+=f?":not("+e.trim()+")":e);return b},Nga=function(){if(Mga!==void 0)return Mga;if(typeof document!=="undefined")return document;throw new Sc(210,!1);},Gd=function(a,b){hd(b)?(a.__ngContext__=b[19],Oga.set(b[19],b)):a.__ngContext__=b},Pga=function(a){for(;a!==null&&!id(a);)a=a[4];return a},Id=function(a,b){return new Hd(ld(a,b))},Qga=function(a){return a instanceof Hd?a.nativeElement:a},Jd=function(a){return a.ownerDocument.defaultView},Rga=function(a){return a.ownerDocument},
Uga=function(a){return a.replace(Sga,function(b){return b.replace(Tga,"\u200b$1\u200b")})},Vga=function(a,b,c){var d=c.mergedAttrs,e=c.classes;c=c.styles;if(d!==null)for(var f=0;f<d.length;){var g=d[f];if(typeof g==="number"){if(g!==0)break;f++;g=d[f++];var k=d[f++],l=d[f++];a.setAttribute(b,k,l,g)}else k=d[++f],g.charCodeAt(0)===64?a.setProperty(b,g,k):a.setAttribute(b,g,k),f++}e!==null&&(e===""?a.removeAttribute(b,"class"):a.setAttribute(b,"class",e));c!==null&&a.setAttribute(b,"style",c)},Xga=
function(a){return Wga(a)?Array.isArray(a)||!(a instanceof Map)&&Symbol.iterator in a:!1},Yga=function(a,b){if(Array.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(a=a[Symbol.iterator]();!(c=a.next()).done;)b(c.value)},Wga=function(a){return a!==null&&(typeof a==="function"||typeof a==="object")},Zga=function(a,b,c){return a[b]=c},Ld=function(a,b,c){if(c===Kd||Object.is(a[b],c))return!1;a[b]=c;return!0},Md=function(a,b,c,d){c=Ld(a,b,c);return Ld(a,b+1,d)||c},$ga=function(a,b){var c=Tfa?64:
1088,d;for((d=a[10].changeDetectionScheduler)==null||d.notify(b);a;){a[2]|=c;b=pd(a);if((a[2]&512)!==0&&!b)break;a=b}},aha=function(){return new Nd(t())},bha=function(a,b){a&&(b=a.indexOf(b),0<=b&&a.splice(b,1))},Od=function(a){return typeof a==="function"},cha=function(a){return a instanceof Pd||a&&"closed"in a&&Od(a.remove)&&Od(a.add)&&Od(a.unsubscribe)},Qd=function(){},eha=function(a){dha(function(){throw a;})},Rd=function(a){return a},Sd=function(){return fha($c.apply(0,arguments))},fha=function(a){return a.length===
0?Rd:a.length===1?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}},gha=function(a){var b;return(b=a!=null?a:void 0)!=null?b:Promise},hha=function(a,b){return new Td(function(c){var d=0;return b.schedule(function(){d===a.length?c.complete():(c.next(a[d++]),c.closed||this.schedule())})})},iha=function(a,b){if(!a)throw Error("ua");return new Td(function(c){var d=new Pd;d.add(b.schedule(function(){var e=a[Symbol.asyncIterator]();d.add(b.schedule(function(){var f=this;e.next().then(function(g){g.done?
c.complete():(c.next(g.value),f.schedule())})}))}));return d})},jha=function(a,b,c,d){b=b.schedule(function(){try{c.call(this)}catch(e){a.error(e)}},d===void 0?0:d);a.add(b);return b},lha=function(a,b){return new Td(function(c){var d;c.add(b.schedule(function(){d=a[kha]();jha(c,b,function(){var e=d.next(),f=e.value;e.done?c.complete():(c.next(f),this.schedule())})}));return function(){var e;return Od((e=d)==null?void 0:e.return)&&d.return()}})},nha=function(a,b){return new Td(function(c){var d=new Pd;
d.add(b.schedule(function(){var e=a[mha]();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})},oha=function(a,b){return new Td(function(c){return b.schedule(function(){return a.then(function(d){c.add(b.schedule(function(){c.next(d);c.add(b.schedule(function(){return c.complete()}))}))},function(d){c.add(b.schedule(function(){return c.error(d)}))})})})},
pha=function(a){return new TypeError("va`"+(a!==null&&typeof a==="object"?"an invalid object":"'"+a+"'"))},rha=function(a,b){if(a!=null){if(Od(a[mha]))return nha(a,b);if(qha(a))return hha(a,b);if(Od(a==null?void 0:a.then))return oha(a,b);if(Symbol.asyncIterator&&Od(a==null?void 0:a[Symbol.asyncIterator]))return iha(a,b);if(Od(a==null?void 0:a[kha]))return lha(a,b)}throw pha(a);},Vd=function(a,b){return b?rha(a,b):Ud(a)},Ud=function(a){if(a instanceof Td)return a;if(a!=null){if(Od(a[mha]))return sha(a);
if(qha(a))return tha(a);if(Od(a==null?void 0:a.then))return uha(a);if(Symbol.asyncIterator&&Od(a==null?void 0:a[Symbol.asyncIterator]))return vha(a);if(Od(a==null?void 0:a[kha]))return wha(a)}throw pha(a);},sha=function(a){return new Td(function(b){var c=a[mha]();if(Od(c.subscribe))return c.subscribe(b);throw new TypeError("wa");})},tha=function(a){return new Td(function(b){for(var c=0;c<a.length&&!b.closed;c++)b.next(a[c]);b.complete()})},uha=function(a){return new Td(function(b){a.then(function(c){b.closed||
(b.next(c),b.complete())},function(c){return b.error(c)}).then(null,eha)})},wha=function(a){return new Td(function(b){for(var c=a[kha]();!b.closed;){var d=c.next(),e=d.value;d.done?b.complete():b.next(e)}return function(){return Od(c==null?void 0:c.return)&&c.return()}})},vha=function(a){return new Td(function(b){xha(a,b).catch(function(c){return b.error(c)})})},xha=function(a,b){var c,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:Wd(l,2,3);var r=a[Symbol.asyncIterator];f=r!==void 0?
r.call(a):new yha(m(a));case 5:return z(l,f.next(),8);case 8:d=l.yieldResult;if(d.done){l.jumpTo(3);break}g=d.value;b.next(g);l.jumpTo(5);break;case 3:Xd(l);Yd(l,9);if(!d||d.done||!(e=f.return)){l.jumpTo(9);break}return z(l,e.call(f),9);case 9:Xd(l,0,0,1);if(c)throw c.error;Zd(l,10,1);break;case 10:Zd(l,4);break;case 2:k=$d(l);c={error:k};l.jumpTo(3);break;case 4:b.complete(),ae(l)}})},zha=function(a,b){return b?hha(a,b):tha(a)},Aha=function(a){return Od(a[a.length-1])?a.pop():void 0},be=function(a){var b=
a[a.length-1];return b&&Od(b.schedule)?a.pop():void 0},ce=function(){var a=$c.apply(0,arguments),b=be(a);return b?hha(a,b):zha(a)},de=function(a){var b=Od(a)?a:function(){return a};return new Td(function(c){return c.error(b())})},Bha=function(a,b){var c=a.kind,d=a.value;a=a.error;if(typeof c!=="string")throw new TypeError("xa");var e,f,g;c==="N"?(e=b.next)==null||e.call(b,d):c==="E"?(f=b.error)==null||f.call(b,a):(g=b.complete)==null||g.call(b)},fe=function(a){return new Promise(function(b,c){var d=
new ee({next:function(e){b(e);d.unsubscribe()},error:c,complete:function(){c(new Cha)}});a.subscribe(d)})},ge=function(a){return function(b){if(Od(b==null?void 0:b.lift))return b.lift(function(c){try{return a(c,this)}catch(d){this.error(d)}});throw new TypeError("ya");}},Dha=function(){return ge(function(a,b){var c=null;a._refCount++;var d=new he(b,void 0,void 0,void 0,function(){if(!a||a._refCount<=0||0<--a._refCount)c=null;else{var e=a._connection,f=c;c=null;!e||f&&e!==f||e.unsubscribe();b.unsubscribe()}});
a.subscribe(d);d.closed||(c=a.connect())})},Fha=function(){function a(d,e){var f={sync:!1,subscription:null};f.subscription=b.schedule(function(g){e();var k=g.subscription;g.subscription=null;k?(k.unsubscribe(),d.remove(k)):g.sync=!0},c,f);f.sync?f.subscription.unsubscribe():d.add(f.subscription)}var b=Eha;var c=c===void 0?0:c;return ge(function(d,e){d.subscribe(new he(e,function(f){return a(e,function(){return e.next(f)})},function(f){return a(e,function(){return e.error(f)})},function(){return a(e,
function(){return e.complete()})}))})},A=function(a){return ge(function(b,c){var d=0;b.subscribe(new he(c,function(e){c.next(a.call(void 0,e,d++))}))})},Hha=function(a){return A(function(b){return Gha(b)?a.apply(null,q(b)):a(b)})},Mha=function(a){if(a.length===1){var b=a[0];if(Iha(b))return{args:b,keys:null};if(b&&typeof b==="object"&&Jha(b)===Kha)return a=Lha(b),{args:a.map(function(c){return b[c]}),keys:a}}return{args:a,keys:null}},ie=function(){var a=$c.apply(0,arguments),b=be(a),c=Aha(a);a=Mha(a);
var d=a.args,e=a.keys;if(d.length===0)return Vd([],b);b=new Td(Nha(d,b,e?function(f){for(var g={},k=0;k<f.length;k++)g[e[k]]=f[k];return g}:Rd));return c?b.pipe(Hha(c)):b},Nha=function(a,b,c){c=c===void 0?Rd:c;return function(d){Oha(b,function(){for(var e=a.length,f=Array(e),g=e,k=a.map(function(){return!1}),l=!0,r={i$jscomp$210:0};r.i$jscomp$210<e;r={i$jscomp$210:r.i$jscomp$210},r.i$jscomp$210++)Oha(b,function(w){return function(){Vd(a[w.i$jscomp$210],b).subscribe(new Pha(d,function(x){f[w.i$jscomp$210]=
x;l&&(k[w.i$jscomp$210]=!0,l=!k.every(Rd));l||d.next(c(f.slice()))},function(){return--g===0}))}}(r),d)},d)}},Oha=function(a,b,c){a?c.add(a.schedule(b)):b()},Qha=function(a,b,c,d,e,f){var g=[],k=0,l=0,r=!1,w=function(C){return k<d?x(C):g.push(C)},x=function(C){f&&b.next(C);k++;Ud(c(C,l++)).subscribe(new he(b,function(H){e==null||e(H);f?w(H):b.next(H)},void 0,function(){k--;for(var H={};g.length&&k<d;H={bufferedValue:void 0})H.bufferedValue=g.shift(),x(H.bufferedValue);!r||g.length||k||b.complete()}))};
a.subscribe(new he(b,w,void 0,function(){r=!0;!r||g.length||k||b.complete()}));return function(){g=null}},ke=function(a,b,c){c=c===void 0?Infinity:c;if(Od(b))return ke(function(d,e){return A(function(f,g){return b(d,f,e,g)})(Ud(a(d,e)))},c);typeof b==="number"&&(c=b);return ge(function(d,e){return Qha(d,e,a,c)})},le=function(a){a=a===void 0?Infinity:a;return ke(Rd,a)},me=function(){var a=$c.apply(0,arguments);return le(1)(zha(a,be(a)))},ne=function(a){return new Td(function(b){Ud(a()).subscribe(b)})},
oe=function(){var a=$c.apply(0,arguments),b=Aha(a),c=Mha(a);a=c.args;c=c.keys;return b?Rha(a,c).pipe(A(function(d){return b.apply(null,q(d))})):Rha(a,c)},Rha=function(a,b){return new Td(function(c){var d=a.length;if(d===0)c.complete();else for(var e=Array(d),f=0,g=0,k={sourceIndex:0};k.sourceIndex<d;k={hasValue$jscomp$2:void 0,sourceIndex:k.sourceIndex},k.sourceIndex++){var l=Ud(a[k.sourceIndex]);k.hasValue$jscomp$2=!1;c.add(l.subscribe({next:function(r){return function(w){r.hasValue$jscomp$2||(r.hasValue$jscomp$2=
!0,g++);e[r.sourceIndex]=w}}(k),error:function(r){return c.error(r)},complete:function(r){return function(){f++;f!==d&&r.hasValue$jscomp$2||(g===d&&c.next(b?b.reduce(function(w,x,C){return w[x]=e[C],w},{}):e),c.complete())}}(k)}))}})},pe=function(a,b,c){if(Od(c)){var d=c;c=void 0}if(d)return pe(a,b,c).pipe(Hha(d));d=m(Od(a.addEventListener)&&Od(a.removeEventListener)?Sha.map(function(g){return function(k){return a[g](b,k,c)}}):Od(a.addListener)&&Od(a.removeListener)?Tha.map(Uha(a,b)):Od(a.on)&&Od(a.off)?
Vha.map(Uha(a,b)):[]);var e=d.next().value,f=d.next().value;return!e&&qha(a)?ke(function(g){return pe(g,b,c)})(zha(a)):new Td(function(g){if(!e)throw new TypeError("za");var k=function(){var l=$c.apply(0,arguments);return g.next(1<l.length?l:l[0])};e(k);return function(){return f(k)}})},Uha=function(a,b){return function(c){return function(d){return a[c](b,d)}}},Wha=function(a,b){return new Td(function(c){var d=function(){var f=$c.apply(0,arguments);return c.next(f.length===1?f[0]:f)},e=a(d);return Od(b)?
function(){return b(d,e)}:void 0})},Xha=function(a,b,c){return ne(function(){return a()?b:c})},re=function(a,b,c){a=a===void 0?0:a;c=c===void 0?qe:c;var d=-1;b!=null&&(b&&Od(b.schedule)?c=b:d=b);return new Td(function(e){var f=a instanceof Date&&!isNaN(a)?+a-c.now():a;f<0&&(f=0);var g=0;return c.schedule(function(){e.closed||(e.next(g++),0<=d?this.schedule(void 0,d):e.complete())},f)})},Yha=function(a,b){a=a===void 0?0:a;b=b===void 0?qe:b;a<0&&(a=0);return re(a,a,b)},te=function(){var a=$c.apply(0,
arguments),b=be(a);var c=typeof a[a.length-1]==="number"?a.pop():Infinity;return a.length?a.length===1?Ud(a[0]):le(c)(zha(a,b)):se},ue=function(a){return ge(function(b,c){var d=0;b.subscribe(new he(c,function(e){return a.call(void 0,e,d++)&&c.next(e)}))})},aia=function(){var a=$c.apply(0,arguments);a=a.length===1&&Zha(a[0])?a[0]:a;return a.length===1?Ud(a[0]):new Td($ha(a))},$ha=function(a){return function(b){for(var c=[],d={i$jscomp$213:0};c&&!b.closed&&d.i$jscomp$213<a.length;d={i$jscomp$213:d.i$jscomp$213},
d.i$jscomp$213++)c.push(Ud(a[d.i$jscomp$213]).subscribe(new he(b,function(e){return function(f){if(c){for(var g=0;g<c.length;g++)g!==e.i$jscomp$213&&c[g].unsubscribe();c=null}b.next(f)}}(d))))}},bia=function(a,b){return new Td(function(c){var d=a(),e=b(d);(e?Ud(e):se).subscribe(c);return function(){d&&d.unsubscribe()}})},ve=function(a){a=a instanceof Date&&!isNaN(a)?{first:a}:typeof a==="number"?{each:a}:a;var b=a.first,c=a.each,d=a.with===void 0?cia:a.with,e=a.scheduler===void 0?qe:a.scheduler,f=
a.meta===void 0?null:a.meta;if(b==null&&c==null)throw new TypeError("Ba");return ge(function(g,k){var l,r=null,w=0,x=function(H){l=jha(k,e,function(){C.unsubscribe();Ud(d({meta:f,lastValue:r,seen:w})).subscribe(k)},H)};var C=g.subscribe(new he(k,function(H){var J;(J=l)==null||J.unsubscribe();w++;k.next(r=H);c>0&&x(c)},void 0,void 0,function(){var H;if((H=l)==null||!H.closed){var J;(J=l)==null||J.unsubscribe()}r=null}));x(b!=null?typeof b==="number"?b:+b-e.now():c)})},cia=function(a){throw new dia(a);
},fia=function(a){return a in eia?(delete eia[a],!0):!1},we=function(a){return!!a&&(a instanceof Td||Od(a.lift)&&Od(a.subscribe))},gia=function(){},hia=function(a){function b(){a=gia;try{c!==void 0&&typeof cancelAnimationFrame==="function"&&cancelAnimationFrame(c),d!==void 0&&clearTimeout(d)}catch(e){}}var c;var d=setTimeout(function(){a();b()});typeof requestAnimationFrame==="function"&&(c=requestAnimationFrame(function(){a();b()}));return function(){return b()}},iia=function(a){queueMicrotask(function(){return a()});
return function(){a=gia}},jia=function(a){if(a._nesting==0&&!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}}},lia=function(a){function b(){hia(function(){a.callbackScheduled=!1;kia(a);a.isCheckStableRunning=!0;jia(a);a.isCheckStableRunning=!1})}a.isCheckStableRunning||a.callbackScheduled||(a.callbackScheduled=!0,a.scheduleInRootZone?
Zone.root.run(function(){b()}):a._outer.run(function(){b()}),kia(a))},pia=function(a){var b=mia++,c={};a._inner=a._inner.fork({name:"angular",properties:(c.isAngularZone=!0,c.isAngularZone_ID=b,c["isAngularZone_ID"+b]=!0,c),onInvokeTask:function(d,e,f,g,k,l){if(nia(l,"__ignore_ng_zone__"))return d.invokeTask(f,g,k,l);try{return oia(a),d.invokeTask(f,g,k,l)}finally{(a.shouldCoalesceEventChangeDetection&&g.type==="eventTask"||a.shouldCoalesceRunChangeDetection)&&lia(a),a._nesting--,jia(a)}},onInvoke:function(d,
e,f,g,k,l,r){try{return oia(a),d.invoke(f,g,k,l,r)}finally{!a.shouldCoalesceRunChangeDetection||a.callbackScheduled||nia(l,"__scheduler_tick__")||lia(a),a._nesting--,jia(a)}},onHasTask:function(d,e,f,g){d.hasTask(f,g);e===f&&(g.change=="microTask"?(a._hasPendingMicrotasks=g.microTask,kia(a),jia(a)):g.change=="macroTask"&&(a.hasPendingMacrotasks=g.macroTask))},onHandleError:function(d,e,f,g){d.handleError(f,g);a.runOutsideAngular(function(){return a.onError.emit(g)});return!1}})},kia=function(a){a.hasPendingMicrotasks=
a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&a.callbackScheduled===!0?!0:!1},oia=function(a){a._nesting++;a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))},nia=function(a,b){if(!Array.isArray(a)||a.length!==1)return!1;var c,d;return((c=a[0])==null?void 0:(d=c.data)==null?void 0:d[b])===!0},B=function(a){qia(rd(),t(),qd.selectedIndex+(a===void 0?1:a))},qia=function(a,b,c){(b[2]&3)===3?(a=a.preOrderCheckHooks,a!==null&&dga(b,a,3,c)):(a=a.preOrderHooks,
a!==null&&ega(b,a,0,c));qd.selectedIndex=c},ria=function(a,b,c,d){var e=Hc(null);try{var f=m(a.inputs[c]),g=f.next().value,k=f.next().value,l=f.next().value;f=null;(k&1)!==0&&(f=b[g][Mc]);f!==null&&f.transformFn!==void 0?d=f.transformFn(d):l!==null&&(d=l.call(b,d));a.setInput!==null?a.setInput(b,f,d,c,g):(a=f,a!==null?a.applyValueToInputSignal(a,d):b[g]=d)}finally{Hc(e)}},tia=function(){return new sia(t(),td())},xe=function(a){if(!uia.has(a)){uia.add(a);var b,c;(b=performance)==null||(c=b.mark)==
null||c.call(b,"mark_feature_usage",{detail:{feature:a}})}},Ee=function(a,b){var c,d=(c=b==null?void 0:b.injector)!=null?c:p(ye);xe("NgAfterNextRender");c=d.get(ze);c.impl!=null||(c.impl=d.get(Ae));var e=d.get(Be,null,{optional:!0});b=(b==null?void 0:b.manualCleanup)!==!0?d.get(Ce):null;d=d.get(sia,null,{optional:!0});a=new De(c.impl,a instanceof Function?[void 0,void 0,a,void 0]:[a.earlyRead,a.write,a.mixedReadWrite,a.read],d==null?void 0:d.view,!0,b,e==null?void 0:e.snapshot(null));c.impl.register(a);
return a},wia=function(a,b){var c=a.get(via);if(Array.isArray(b)){b=m(b);for(var d=b.next();!d.done;d=b.next())c.queue.add(d.value)}else c.queue.add(b);c.scheduler&&c.scheduler(a)},xia=function(a,b,c,d){var e;a=a==null?void 0:(e=a[26])==null?void 0:e.enter;if(b!==null&&a&&a.has(c.index))for(b=m(a),c=b.next();!c.done;c=b.next())c=m(c.value),c.next(),c=c.next().value,wia(d,c.animateFns)},Fe=function(a,b,c,d,e,f,g,k){if(e!=null){var l=!1;if(id(e))var r=e;else hd(e)&&(l=!0,e=e[0]);var w=kd(e);a===0&&
d!==null?(xia(k,d,f,c),g==null?b.appendChild(d,w):b.insertBefore(d,w,g||null,!0)):a===1&&d!==null?(xia(k,d,f,c),b.insertBefore(d,w,g||null,!0)):a===2?yia(k,f,c,function(x){b.removeChild(null,w,l,x)}):a===3&&yia(k,f,c,function(){b.destroyNode(w)});r!=null&&zia(b,a,c,r,f,d,g)}},Aia=function(a,b){var c;(c=b[10].changeDetectionScheduler)==null||c.notify(9);Ge(b[11],2,a.firstChild,b,null,null,!1)},Bia=function(a,b){a=a[9];b=a.indexOf(b);a.splice(b,1)},Dia=function(a,b){if((b[2]&256)!==256){var c=b[11];
c.destroyNode&&Ge(c,3,a.firstChild,b,null,null,!1);if(a=b[12])for(;a;){c=null;if(hd(a))c=a[12];else{var d=a[10];d&&(c=d)}if(!c){for(;a&&!a[4]&&a!==b;)hd(a)&&Cia(a[1],a),a=a[3];a===null&&(a=b);hd(a)&&Cia(a[1],a);c=a&&a[4]}a=c}else Cia(b[1],b)}},Cia=function(a,b){if((b[2]&256)!==256){var c=Hc(null);try{b[2]&=-129;b[2]|=256;b[24]&&Hea(b[24]);var d;if(a!=null&&(d=a.destroyHooks)!=null)for(var e=0;e<d.length;e+=2){var f=b[d[e]];if(!(f instanceof Cga)){var g=d[e+1];if(Array.isArray(g))for(var k=0;k<g.length;k+=
2){var l=f[g[k]],r=g[k+1];Ad(4,l,r);try{r.call(l)}finally{Ad(5,l,r)}}else{Ad(4,f,g);try{g.call(f)}finally{Ad(5,f,g)}}}}var w=a.cleanup,x=b[7];if(w!==null)for(d=0;d<w.length-1;d+=2)if(typeof w[d]==="string"){var C=w[d+3];if(C>=0)x[C]();else x[-C].unsubscribe();d+=2}else w[d].call(x[w[d+1]]);x!==null&&(b[7]=null);var H=b[21];if(H!==null)for(b[21]=null,w=0;w<H.length;w++)(0,H[w])();var J=b[23];if(J!==null){b[23]=null;for(var O=m(J),R=O.next();!R.done;R=O.next())R.value.destroy()}b[1].type===1&&b[11].destroy();
var V=b[16];if(V!==null&&id(b[3])){V!==b[3]&&Bia(V,b);var ca=b[18];ca!==null&&ca.detachView(a)}Oga.delete(b[19])}finally{Hc(c)}}},yia=function(a,b,c,d){var e=a==null?void 0:a[26];e!=null&&e.leave!=void 0&&e.leave.has(b.index)?e.skipLeaveAnimations?(e.skipLeaveAnimations=!1,d(!1)):(a&&Eia.add(a),wia(c,function(){if(e.leave&&e.leave.has(b.index)){var f=e.leave.get(b.index),g=[];if(f)for(var k=0;k<f.animateFns.length;k++){var l=(0,f.animateFns[k])().promise;g.push(l)}e.running=Promise.allSettled(g);
Fia(a,d)}else a&&Eia.delete(a),d(!1)})):d(!1)},Fia=function(a,b){var c,d=(c=a[26])==null?void 0:c.running;d?d.then(function(){a[26].running=void 0;Eia.delete(a);b(!0)}):b(!1)},Gia=function(a,b,c){for(;b!==null&&b.type&168;)b=b.parent;return b===null?c[0]:b.componentOffset>-1&&(a=a.data[b.directiveStart+b.componentOffset].encapsulation,a===2||a===0)?null:ld(b,c)},Hia=function(a,b,c){return a.type&40?ld(a,c):null},Kia=function(a,b,c,d){a=Gia(a,d.parent,b);var e=b[11],f=Iia(d.parent||b[5],d,b);if(a!=
null)if(Array.isArray(c))for(var g=0;g<c.length;g++){var k=e,l=a,r=c[g];f!==null?k.insertBefore(l,r,f,!1):k.appendChild(l,r)}else f!==null?e.insertBefore(a,c,f,!1):e.appendChild(a,c);Jia!==void 0&&Jia(e,d,b,c,a)},Mia=function(a,b){if(b!==null){var c=b.type;if(c&3)return ld(b,a);if(c&4)return Lia(-1,a[b.index]);if(c&8){c=b.child;if(c!==null)return Mia(a,c);a=a[b.index];return id(a)?Lia(-1,a):kd(a)}if(c&128)return Mia(a,b.next);if(c&32)return Nia(b,a)()||kd(a[b.index]);c=b!==null?a[15][5].projection[b.projection]:
null;if(c!==null){if(Array.isArray(c))return c[0];a=pd(a[15]);return Mia(a,c)}return Mia(a,b.next)}return null},Lia=function(a,b){a=10+a+1;if(a<b.length){a=b[a];var c=a[1].firstChild;if(c!==null)return Mia(a,c)}return b[7]},Ge=function(a,b,c,d,e,f,g){for(;c!=null;){var k=d[9];if(c.type===128)c=c.next;else{var l=d[c.index],r=c.type;g&&b===0&&(l&&Gd(kd(l),d),c.flags|=2);if((c.flags&32)!==32)if(r&8)Ge(a,b,c.child,d,e,f,!1),Fe(b,a,k,e,l,c,f,d);else if(r&32){r=Nia(c,d);for(var w;w=r();)Fe(b,a,k,e,w,c,
f,d);Fe(b,a,k,e,l,c,f,d)}else r&16?Oia(a,b,d,c,e,f):Fe(b,a,k,e,l,c,f,d);c=g?c.projectionNext:c.next}}},Oia=function(a,b,c,d,e,f){var g=c[15],k=g[5].projection[d.projection];if(Array.isArray(k))for(g=0;g<k.length;g++)Fe(b,a,c[9],e,k[g],d,f,c);else c=g[3],(d.flags&128)===128&&(k.flags|=128),Ge(a,b,k,c,e,f,!0)},zia=function(a,b,c,d,e,f,g){var k=d[7];k!==kd(d)&&Fe(b,a,c,f,k,e,g);for(c=10;c<d.length;c++)e=d[c],Ge(a,b,e[1].firstChild,e,f,k,!1)},Pia=function(a,b,c,d,e,f,g,k,l,r,w){d=27+d;e=d+e;for(var x=
[],C=0;C<e;C++)x.push(C<d?null:Kd);r=typeof r==="function"?r():r;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:typeof f==="function"?f():f,pipeRegistry:typeof g==="function"?g():g,firstChild:null,schemas:l,consts:r,incompleteFirstPass:!1,ssrId:w}},Ria=function(a,b,c,d,e,f,g,k,l,r,w){var x=b.blueprint.slice();x[0]=e;x[2]=d|1228;if(r!==null||a&&a[2]&2048)x[2]|=2048;x[17]=0;x[3]=x[14]=a;x[8]=c;x[10]=g||a&&a[10];x[11]=k||a&&a[11];x[9]=l||a&&a[9]||null;x[5]=f;x[19]=Qia++;x[6]=w;x[20]=r;x[15]=b.type==2?a[15]:x;return x},Sia=function(a){var b=16;a.signals?b=4096:a.onPush&&(b=64);return b},Tia=function(a,
b,c,d){if(c===0)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},Uia=function(a,b){a[12]?a[13][4]=b:a[12]=b;return a[13]=b},Ie=function(a){return a instanceof He?a.changingThisBreaksApplicationSecurity:a},Je=function(a,b){a=a instanceof He&&a.getTypeName()||null;if(a!=null&&a!==b){if(a==="ResourceURL"&&b==="URL")return!0;throw Error("Ca`"+b+"`"+a);}return a===b},Wia=function(){if(Via===void 0&&(Via=null,Ke.trustedTypes))try{Via=Ke.trustedTypes.createPolicy("angular",
{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Via},Xia=function(a){var b;return((b=Wia())==null?void 0:b.createHTML(a))||a},$ia=function(a){a=new Yia(a);try{var b=!!(new window.DOMParser).parseFromString(Xia(""),"text/html")}catch(c){b=!1}return b?new Zia(a):a},bja=function(a){a=String(a);return a.match(aja)?a:"unsafe:"+a},Le=function(a){var b={};a=m(a.split(","));for(var c=a.next();!c.done;c=a.next())b[c.value]=!0;return b},
cja=function(){for(var a={},b=m($c.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},dja=function(a){a=a.nodeName;return typeof a==="string"?a:"FORM"},gja=function(a){return a.replace(/&/g,"&amp;").replace(eja,function(b){return"&#"+((b.charCodeAt(0)-55296)*1024+(b.charCodeAt(1)-56320)+65536)+";"}).replace(fja,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")},oja=function(a,b){var c=null;try{hja=
hja||$ia(a);var d=b?String(b):"";c=hja.getInertBodyElement(d);a=5;b=d;do{if(a===0)throw Error("Ea");a--;d=b;b=c.innerHTML;c=hja.getInertBodyElement(d)}while(d!==b);var e=new ija,f=(jja(c)||c).firstChild;d=!0;for(a=[];f;){if(f.nodeType===Node.ELEMENT_NODE){b=e;var g=f,k=dja(g).toLowerCase();if(kja.hasOwnProperty(k)){b.buf.push("<");b.buf.push(k);var l=g.attributes;for(g=0;g<l.length;g++){var r=l.item(g),w=r.name,x=w.toLowerCase();if(lja.hasOwnProperty(x)){var C=r.value;mja[x]&&(C=bja(C));b.buf.push(" ",
w,'="',gja(C),'"')}}b.buf.push(">");d=!0}else d=!nja.hasOwnProperty(k)}else f.nodeType===Node.TEXT_NODE&&e.buf.push(gja(f.nodeValue));if(d&&f.firstChild){a.push(f);var H=f.firstChild;if(H&&(f.compareDocumentPosition(H)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY)throw Error("Da`"+H.outerHTML);f=H}else for(;f;){f.nodeType===Node.ELEMENT_NODE&&e.endElement(f);var J,O=f.nextSibling;if(O&&f!==O.previousSibling)throw Error("Da`"+O.outerHTML);if(J=O){f=J;break}f=a.pop()}}return Xia(e.buf.join(""))}finally{if(c)for(c=
jja(c)||c;c.firstChild;)c.firstChild.remove()}},jja=function(a){return"content"in a&&a.nodeType===Node.ELEMENT_NODE&&a.nodeName==="TEMPLATE"?a.content:null},qja=function(){if(pja===void 0&&(pja=null,Ke.trustedTypes))try{pja=Ke.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return pja},rja=function(a){var b;return((b=qja())==null?void 0:b.createHTML(a))||a},sja=function(a){var b;
return((b=qja())==null?void 0:b.createScriptURL(a))||a},Me=function(a){var b=tja();return b?rja(b.sanitize(1,a)||""):Je(a,"HTML")?rja(Ie(a)):oja(Nga(),Qc(a))},uja=function(a){var b=tja();return b?b.sanitize(2,a)||"":Je(a,"Style")?Ie(a):Qc(a)},Ne=function(a){var b=tja();return b?b.sanitize(4,a)||"":Je(a,"URL")?Ie(a):bja(Qc(a))},vja=function(a){var b=tja();if(b)return sja(b.sanitize(5,a)||"");if(Je(a,"ResourceURL"))return sja(Ie(a));throw new Sc(904,!1);},wja=function(a,b,c){return(c==="src"&&(b===
"embed"||b==="frame"||b==="iframe"||b==="media"||b==="script")||c==="href"&&(b==="base"||b==="link")?vja:Ne)(a)},tja=function(){var a=t();return a&&a[10].sanitizer},xja=function(a,b,c,d,e){var f=qd.selectedIndex,g=d&2;try{qd.selectedIndex=-1,g&&b.length>27&&qia(a,b,27),Ad(g?2:0,e,c),c(d,e)}finally{qd.selectedIndex=f,Ad(g?3:1,e,c)}},yja=function(a,b,c){var d=c.directiveStart,e=c.directiveEnd;if(c.componentOffset>-1){var f=a.data[d+c.componentOffset],g=ld(c,b);var k=f.tView;k=k===null||k.incompleteFirstPass?
f.tView=Pia(1,null,f.template,f.decls,f.vars,f.directiveDefs,f.pipeDefs,f.viewQuery,f.schemas,f.consts,f.id):k;f=Uia(b,Ria(b,k,null,Sia(f),g,c,null,b[10].rendererFactory.createRenderer(g,f),null,null,null));b[c.index]=f}a.firstCreatePass||tga(c,b);f=c.initialInputs;for(g=d;g<e;g++){k=a.data[g];var l=Bga(b,a,g,c);Gd(l,b);if(f!==null){var r=f[g-d];if(r!==null)for(var w=0;w<r.length;w+=2)ria(k,l,r[w],r[w+1])}k.template&&(md(c.index,b)[8]=Bga(b,a,g,c))}if((c.flags&64)===64){e=c.directiveStart;d=c.directiveEnd;
f=c.index;c=qd.currentDirectiveIndex;try{for(qd.selectedIndex=f;e<d;e++){var x=a.data[e],C=b[e];qd.currentDirectiveIndex=e;x.hostBindings===null&&x.hostVars===0&&x.hostAttrs===null||x.hostBindings===null||x.hostBindings(1,C)}}finally{qd.selectedIndex=-1,qd.currentDirectiveIndex=c}}},zja=function(a,b,c){c=c===void 0?ld:c;var d=b.localNames;if(d!==null)for(var e=b.index+1,f=0;f<d.length;f+=2){var g=d[f+1];g=g===-1?c(b,a):a[g];a[e++]=g}},Bja=function(a,b,c,d){c=d.get(Aja,!1)||c===3||c===4;return a.selectRootElement(b,
c)},Eja=function(a,b,c,d,e,f){Oe(a,b[1],b,c,d)?a.componentOffset>-1&&Cja(b,a.index):(a.type&3&&(c=c==="class"?"className":c==="for"?"htmlFor":c==="formaction"?"formAction":c==="innerHtml"?"innerHTML":c==="readonly"?"readOnly":c==="tabindex"?"tabIndex":c),Dja(a,b,c,d,e,f))},Dja=function(a,b,c,d,e,f){a.type&3&&(b=ld(a,b),d=f!=null?f(d,a.value||"",c):d,e.setProperty(b,c,d))},Cja=function(a,b){a=md(b,a);a[2]&16||(a[2]|=64)},Fja=function(a,b){a=a.directiveRegistry;var c=null;if(a)for(var d=0;d<a.length;d++){var e=
a[d];Kga(b,e.selectors,!1)&&(c!=null||(c=[]),e.template?c.unshift(e):c.push(e))}return c},Gja=function(a,b,c,d,e,f,g){f==null?a.removeAttribute(b,e,c):(d=g==null?Qc(f):g(f,d||"",e),a.setAttribute(b,e,d,c))},Hja=function(a,b,c,d,e){var f=27+c,g=b[1];c=e(g,b,a,d,c);b[f]=c;ud(a,!0);(f=a.type===2)?(Vga(b[11],c,a),qd.elementDepthCount!==0&&(a.flags&1)!==1||Gd(c,b),qd.elementDepthCount++):Gd(c,b);!Pe||f&&(a.flags&32)===32||Kia(g,b,c,a)},Ija=function(){var a=td();qd.isParent?qd.isParent=!1:(a=a.parent,ud(a,
!1));return a},Jja=function(a,b,c){if(a===null||a.template)a:{for(a=c[b.index];Array.isArray(a);){if(typeof a[1]==="object"){c=a;break a}a=a[0]}c=null}return c[11]},Oe=function(a,b,c,d,e){var f,g=(f=a.inputs)==null?void 0:f[d],k;a=(k=a.hostDirectiveInputs)==null?void 0:k[d];k=!1;if(a)for(f=0;f<a.length;f+=2)k=a[f],ria(b.data[k],c[k],a[f+1],e),k=!0;if(g)for(g=m(g),a=g.next();!a.done;a=g.next())a=a.value,ria(b.data[a],c[a],d,e),k=!0;return k},Qe=function(a,b,c){return function f(e){var g=a.componentOffset>
-1?md(a.index,b):b;$ga(g,5);g=b[8];for(var k=Kja(b,g,c,e),l=f.__ngNextListenerFn__;l;)k=Kja(b,g,l,e)&&k,l=l.__ngNextListenerFn__;return k}},Kja=function(a,b,c,d){var e=Hc(null);try{return Ad(6,b,c),c(d)!==!1}catch(l){d=l;var f=a[9];if(f){try{var g=f.get(Re,null)}catch(r){g=null}var k;(k=g)==null||k(d)}return!1}finally{Ad(7,b,c),Hc(e)}},Nja=function(a,b,c,d,e,f,g,k){var l=(a.flags&1)===1,r=!1,w=null;!d&&l&&(w=Lja(b,c,f,a.index));w!==null?((w.__ngLastListenerFn__||w).__ngNextListenerFn__=g,w.__ngLastListenerFn__=
g,r=!0):(g=ld(a,c),g=d?d(g):g,e=e.listen(g,f,k),f.startsWith("animation")||f.startsWith("transition")||Mja(d?function(x){return d(kd(x[a.index]))}:a.index,b,c,f,k,e,!1));return r},Lja=function(a,b,c,d){a=a.cleanup;if(a!=null)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&&b.length>c?b[c]:null;typeof f==="string"&&(e+=2)}return null},Mja=function(a,b,c,d,e,f,g){b=b.firstCreatePass?Rfa(b):null;c=Qfa(c);var k=c.length;c.push(e,f);b&&b.push(d,a,k,(k+1)*(g?-1:1))},
Oja=function(a,b,c,d,e,f){var g=b[1];c=b[c][g.data[c].outputs[d]].subscribe(f);Mja(a.index,g,b,e,f,c,!0)},Pja=function(a,b){var c=a.contentQueries;if(c!==null){var d=Hc(null);try{for(var e=0;e<c.length;e+=2){var f=c[e],g=c[e+1];if(g!==-1){var k=a.data[g];qd.currentQueryIndex=f;k.contentQueries(2,b[g],g)}}}finally{Hc(d)}}},Qja=function(a,b,c){qd.currentQueryIndex=0;var d=Hc(null);try{b(a,c)}finally{Hc(d)}},Rja=function(a,b,c){if((b.flags&4)!==0){var d=Hc(null);try{for(var e=b.directiveEnd,f=b.directiveStart;f<
e;f++){var g=a.data[f];g.contentQueries&&g.contentQueries(1,c[f],f)}}finally{Hc(d)}}},Tja=function(a,b,c){Zfa(b);try{var d=a.viewQuery;d!==null&&Qja(1,d,c);var e=a.template;e!==null&&xja(a,b,e,1,c);a.firstCreatePass&&(a.firstCreatePass=!1);var f;(f=b[18])!=null&&Sja(f,a);a.staticContentQueries&&Pja(a,b);a.staticViewQueries&&Qja(2,a.viewQuery,c);var g=a.components;if(g!==null)for(c=0;c<g.length;c++){var k=md(g[c],b),l=k[1];d=l;e=k;for(var r=e.length;r<d.blueprint.length;r++)e.push(d.blueprint[r]);
k[0]!==null&&k[6]===null&&(k[6]=null);Ad(18);Tja(l,k,k[8]);Ad(19,k[8])}}catch(w){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),w;}finally{b[2]&=-5,bga()}},Uja=function(a,b,c){var d=c?a.styles:null,e=c?a.classes:null,f=0;if(b!==null)for(var g=0;g<b.length;g++){var k=b[g];if(typeof k==="number")f=k;else if(f==1)e=Pea(e,k);else if(f==2){var l=b[++g];d=Pea(d,k+": "+l+";")}}c?a.styles=d:a.stylesWithoutHost=d;c?a.classes=e:a.classesWithoutHost=e},Se=function(a,b,c,d,e){var f=
a.data[b];f===null?(f=Vja(a,b,c,d,e),qd.inI18n&&(f.flags|=32)):f.type&64&&(f.type=c,f.value=d,f.attrs=e,a=Sfa(),f.injectorIndex=a===null?-1:a.injectorIndex);ud(f,!0);return f},Vja=function(a,b,c,d,e){var f=qd.currentTNode,g=qd.isParent,k=a.data,l=g?f:f&&f.parent,r=l?l.injectorIndex:-1,w=0;Te!==null&&(w|=128);b=k[b]={type:c,index:b,insertBeforeIndex:null,injectorIndex:r,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:w,providerIndexes:0,value:d,
attrs:e,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:l,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};a.firstChild===null&&(a.firstChild=b);f!==null&&(g?f.child==null&&b.parent!==null&&(f.child=b):f.next===null&&
(f.next=b,b.prev=f));return b},Ve=function(a,b){b=b===void 0?0:b;var c=t();return c===null?Xc(a,b):yga(td(),c,Wc(a),b)},We=function(){throw Error("Ga");},Zja=function(a,b,c,d,e){var f=d===null?null:{"":-1},g=e(a,c);if(g!==null){for(var k=g,l=e=null,r=m(g),w=r.next();!w.done;w=r.next())if(w=w.value,w.resolveHostDirectives!==null){l=m(w.resolveHostDirectives(g));k=l.next().value;e=l.next().value;l=l.next().value;break}g=k.length;r=!1;for(w=0;w<g;w++){var x=k[w];if(!r&&x.template){r=!0;var C=void 0,
H=a,J=c;J.componentOffset=w;((C=H.components)!=null?C:H.components=[]).push(J.index)}C=tga(c,b);pga(C,a,x.type)}r=a.data.length;c.flags|=1;c.directiveStart=r;c.directiveEnd=r+g;c.providerIndexes=r;for(r=0;r<g;r++)w=k[r],w.providersResolver&&w.providersResolver(w);C=x=!1;r=Tia(a,b,g,null);g>0&&(c.directiveToIndex=new Map);for(w=0;w<g;w++){H=k[w];c.mergedAttrs=Bd(c.mergedAttrs,H.hostAttrs);var O=a,R=c,V=b;J=r;O.data[J]=H;var ca=H.factory||(H.factory=Zc(H.type));ca=new Cga(ca,!!H.template);O.blueprint[J]=
ca;V[J]=ca;V=Tia(O,V,H.hostVars,Kd);if(ca=H.hostBindings){var na=O.hostBindingOpCodes;na===null&&(na=O.hostBindingOpCodes=[]);O=~R.index;a:{for(R=na.length;R>0;){var ua=na[--R];if(typeof ua==="number"&&ua<0){R=ua;break a}}R=0}R!=O&&na.push(O);na.push(J,V,ca)}J=r;if(f){if(H.exportAs)for(V=0;V<H.exportAs.length;V++)f[H.exportAs[V]]=J;H.template&&(f[""]=J)}l!==null&&l.has(H)?(V=m(l.get(H)),J=V.next().value,V=V.next().value,c.directiveToIndex.set(H.type,[r,J+c.directiveStart,V+c.directiveStart])):e!==
null&&e.has(H)||c.directiveToIndex.set(H.type,r);H.contentQueries!==null&&(c.flags|=4);if(H.hostBindings!==null||H.hostAttrs!==null||H.hostVars!==0)c.flags|=64;H=H.type.prototype;!x&&(H.ngOnChanges||H.ngOnInit||H.ngDoCheck)&&(J=x=void 0,((J=(x=a).preOrderHooks)!=null?J:x.preOrderHooks=[]).push(c.index),x=!0);C||!H.ngOnChanges&&!H.ngDoCheck||(H=C=void 0,((H=(C=a).preOrderCheckHooks)!=null?H:C.preOrderCheckHooks=[]).push(c.index),C=!0);r++}for(b=c.directiveStart;b<c.directiveEnd;b++)k=a.data[b],e!==
null&&e.has(k)?(k=e.get(k),Wja(0,c,k,b),Wja(1,c,k,b),Xja(c,b,!0)):(Yja(0,c,k,b),Yja(1,c,k,b),Xja(c,b,!1))}if(f!==null&&d!==null)for(a=c.localNames=[],c=0;c<d.length;c+=2){b=f[d[c+1]];if(b==null)throw new Sc(-301,!1);a.push(d[c],b)}},Yja=function(a,b,c,d){c=a===0?c.inputs:c.outputs;for(var e in c)if(c.hasOwnProperty(e)){if(a===0){var f=void 0,g=void 0;var k=(g=(f=b).inputs)!=null?g:f.inputs={}}else g=f=void 0,k=(g=(f=b).outputs)!=null?g:f.outputs={};g=f=void 0;(f=k)[g=e]!=null||(f[g]=[]);k[e].push(d);
$ja(b,e)}},Wja=function(a,b,c,d){c=a===0?c.inputs:c.outputs;for(var e in c)if(c.hasOwnProperty(e)){var f=c[e];if(a===0){var g=void 0,k=void 0;var l=(k=(g=b).hostDirectiveInputs)!=null?k:g.hostDirectiveInputs={}}else k=g=void 0,l=(k=(g=b).hostDirectiveOutputs)!=null?k:g.hostDirectiveOutputs={};k=g=void 0;(g=l)[k=f]!=null||(g[k]=[]);l[f].push(d,e);$ja(b,f)}},$ja=function(a,b){b==="class"?a.flags|=8:b==="style"&&(a.flags|=16)},Xja=function(a,b,c){var d=a.attrs,e=a.inputs,f=a.hostDirectiveInputs;if(d===
null||!c&&e===null||c&&f===null||Iga(a))a.initialInputs!=null||(a.initialInputs=[]),a.initialInputs.push(null);else{for(var g=null,k=0;k<d.length;){var l=d[k];if(l===0)k+=4;else{if(l!==5){if(typeof l==="number")break;if(!c&&e.hasOwnProperty(l))for(var r=m(e[l]),w=r.next();!w.done;w=r.next()){if(w.value===b){g!=null||(g=[]);g.push(l,d[k+1]);break}}else if(c&&f.hasOwnProperty(l))for(l=f[l],r=0;r<l.length;r+=2)if(l[r]===b){g!=null||(g=[]);g.push(l[r+1],d[k+1]);break}}k+=2}}a.initialInputs!=null||(a.initialInputs=
[]);a.initialInputs.push(g)}},aka=function(a,b,c,d,e,f,g){var k=b[1],l=k.consts;f=nd(l,f);a=Se(k,a,c,d,f);Zja(k,b,a,nd(l,g),e);a.mergedAttrs=Bd(a.mergedAttrs,a.attrs);a.attrs!==null&&Uja(a,a.attrs,!1);a.mergedAttrs!==null&&Uja(a,a.mergedAttrs,!0);k.queries!==null&&k.queries.elementStart(k,a);return a},bka=function(a,b){cga(a,b);(b.flags&4)!==0&&a.queries.elementEnd(b)},cka=function(a,b,c,d,e){for(e=e===void 0?!1:e;c!==null;){if(c.type!==128){var f=b[c.index];f!==null&&d.push(kd(f));if(id(f)){for(var g=
d,k=10;k<f.length;k++){var l=f[k],r=l[1].firstChild;r!==null&&cka(l[1],l,r,g)}f[7]!==f[0]&&g.push(f[7])}f=c.type;if(f&8)cka(a,b,c.child,d);else if(f&32)for(f=Nia(c,b);g=f();)d.push(g);else f&16&&(f=c!==null?b[15][5].projection[c.projection]:null,Array.isArray(f)?d.push.apply(d,q(f)):(g=pd(b[15]),cka(g[1],g,f,d,!0)))}c=e?c.projectionNext:c.next}return d},dka=function(a){if(a[25]!==null){for(var b=m(a[25]),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.impl;d.sequences.add(c);d.scheduler.notify(7)}a[25].length=
0}},eka=function(a){if(a[23]!==null)for(var b=!0;b;){b=!1;for(var c=m(a[23]),d=c.next(),e={};!d.done;e={effect$jscomp$4:void 0},d=c.next())e.effect$jscomp$4=d.value,e.effect$jscomp$4.dirty&&(b=!0,e.effect$jscomp$4.zone===null||Zone.current===e.effect$jscomp$4.zone?e.effect$jscomp$4.run():e.effect$jscomp$4.zone.run(function(f){return function(){return f.effect$jscomp$4.run()}}(e)));b=b&&!!(a[2]&8192)}},gka=function(a,b){b=b===void 0?0:b;var c=a[10].rendererFactory,d;(d=c.begin)==null||d.call(c);try{d=
b;b=Tfa;try{for(Ufa(!0),fka(a,d),d=0;Nfa(a);){if(d===100)throw new Sc(103,!1);d++;fka(a,1)}}finally{Ufa(b)}}finally{var e;(e=c.end)==null||e.call(c)}},hka=function(a,b){for(a=Pga(a[12]);a!==null;a=Pga(a[4]))for(var c=10;c<a.length;c++){var d=a[c];(d[2]&128)===128&&fka(d,b)}},fka=function(a,b){var c=a[1],d=a[2],e=a[24],f=!!(b===0&&d&16);f||(f=!!(d&64&&b===0));f||(f=!!(d&1024));f||(f=!!((e==null?0:e.dirty)&&Bea(e)));f||(f=!1);e&&(e.dirty=!1);a[2]&=-9217;if(f){f=c.template;var g=a[8];if((a[2]&256)!==
256){var k=a[2];Zfa(a);b=!0;e=d=null;if(c.type!==2){var l;if((l=a[24])!=null)var r=l;else l=(r=ika.pop())!=null?r:Object.create(jka),l.lView=a,r=l;e=r;d=Kc(e)}else Gc===null?(b=!1,r=(l=a[24])!=null?l:Object.create(kka),r.lView=a,e=r,d=Kc(e)):a[24]&&(Hea(a[24]),a[24]=null);try{a[17]=0;qd.bindingIndex=c.bindingStartIndex;f!==null&&xja(c,a,f,2,g);if(r=(k&3)===3){var w=c.preOrderCheckHooks;w!==null&&dga(a,w,3,null)}else{var x=c.preOrderHooks;x!==null&&ega(a,x,0,null);fga(a,0)}for(var C=Pga(a[12]);C!==
null;C=Pga(C[4]))if(C[2]&2){var H=C[9];for(w=0;w<H.length;w++)Mfa(H[w])}eka(a);hka(a,0);c.contentQueries!==null&&Pja(c,a);if(r){var J=c.contentCheckHooks;J!==null&&dga(a,J,3)}else{var O=c.contentHooks;O!==null&&ega(a,O,1);fga(a,1)}var R=c.hostBindingOpCodes;if(R!==null)try{for(C=0;C<R.length;C++){var V=R[C];if(V<0)qd.selectedIndex=~V;else{H=V;var ca=R[++C],na=R[++C];J=qd;J.bindingIndex=J.bindingRootIndex=ca;qd.currentDirectiveIndex=H;var ua=a[H];Ad(24,ua);na(2,ua);Ad(25,ua)}}}finally{qd.selectedIndex=
-1}var ia=c.components;ia!==null&&lka(a,ia,0);var Ga=c.viewQuery;Ga!==null&&Qja(2,Ga,g);if(r){var ha=c.viewCheckHooks;ha!==null&&dga(a,ha,3)}else{var sa=c.viewHooks;sa!==null&&ega(a,sa,2);fga(a,2)}c.firstUpdatePass===!0&&(c.firstUpdatePass=!1);if(a[22]){for(var xa=m(a[22]),Qa=xa.next();!Qa.done;Qa=xa.next()){var bb=Qa.value;bb()}a[22]=null}dka(a);a[2]&=-73}catch(ub){throw od(a),ub;}finally{e!==null&&(Gea(e,d),b&&(a=e,a.lView[24]!==a&&(a.lView=null,ika.push(a)))),bga()}}}else if(d&8192){R=Hc(null);
try{eka(a),hka(a,1),g=c.components,g!==null&&lka(a,g,1),dka(a)}finally{Hc(R)}}},lka=function(a,b,c){for(var d=0;d<b.length;d++){var e=a,f=b[d],g=c;Ad(18);e=md(f,e);(e[2]&128)===128&&fka(e,g);Ad(19,e[8])}},mka=function(a,b){b=10+b;if(b<a.length)return a[b]},oka=function(a,b,c,d){d=d===void 0?!0:d;var e=b[1],f=10+c,g=a.length;c>0&&(a[f-1][4]=b);c<g-10?(b[4]=a[f],f=10+c,f>=a.length?a.push(b):a.splice(f,0,b)):(a.push(b),b[4]=null);b[3]=a;f=b[16];f!==null&&a!==f&&nka(f,b);f=b[18];f!==null&&Sja(f,e);Ofa(b);
b[2]|=128;d&&(c=Lia(c,a),d=b[11],f=d.parentNode(a[7]),f!==null&&(a=a[5],b[0]=f,b[5]=a,Ge(d,1,e.firstChild,b,f,c,!1)));b=b[6];b!==null&&b.firstChild!==null&&(b.firstChild=null)},qka=function(a){a=pka(a,0);a!==void 0&&Dia(a[1],a)},pka=function(a,b){if(!(a.length<=10)){var c=10+b,d=a[c];if(d){var e=d[16];e!==null&&e!==a&&Bia(e,d);b>0&&(a[c-1][4]=d[4]);a=jfa(a,10+b);Aia(d[1],d);d[0]=null;d[5]=null;b=a[18];b!==null&&b.detachView(a[1]);d[3]=null;d[4]=null;d[2]&=-129}return d}},nka=function(a,b){var c=a[9],
d=b[3];hd(d)?a[2]|=2:b[15]!==d[3][15]&&(a[2]|=2);c===null?a[9]=[b]:c.push(b)},rka=function(a){return Object.keys(a).map(function(b){var c=m(a[b]),d=c.next().value,e=c.next().value;c=c.next().value;b={propName:d,templateName:b,isSignal:(e&1)!==0};c&&(b.transform=c);return b})},ska=function(a){return Object.keys(a).map(function(b){return{propName:a[b],templateName:b}})},uka=function(a,b,c){(b=b instanceof Xe?b:b==null?void 0:b.injector)&&a.getStandaloneInjector!==null&&(b=a.getStandaloneInjector(b)||
b);return b?new tka(c,b):c},wka=function(a){var b=a.get(Ye,null);if(b===null)throw new Sc(407,!1);var c=a.get(vka,null);a=a.get(Ze,null);return{rendererFactory:b,sanitizer:c,changeDetectionScheduler:a,ngReflect:!1}},xka=function(a,b){a=(a.selectors[0][0]||"div").toLowerCase();return b.createElement(a,a==="svg"?"svg":a==="math"?"math":null)},Bka=function(a,b,c,d){if(a)a=["ng-version","0.0.0-PLACEHOLDER"];else{a=b.selectors[0];for(var e=[],f=[],g=1,k=2;g<a.length;){var l=a[g];if(typeof l==="string")k===
2?l!==""&&e.push(l,a[++g]):k===8&&f.push(l);else{if((k&1)!==0)break;k=l}g++}f.length&&e.push.apply(e,[1].concat(q(f)));a=e}f=e=null;g=0;if(c)for(c=m(c),k=c.next();!k.done;k=c.next())k=k.value,g+=k[yka].requiredVars,k.create&&(k.targetIdx=0,l=void 0,((l=e)!=null?l:e=[]).push(k)),k.update&&(k.targetIdx=0,l=void 0,((l=f)!=null?l:f=[]).push(k));if(d)for(c=0;c<d.length;c++)if(k=d[c],typeof k!=="function")for(k=m(k.bindings),l=k.next();!l.done;l=k.next()){l=l.value;g+=l[yka].requiredVars;var r=c+1;if(l.create){l.targetIdx=
r;var w=void 0;((w=e)!=null?w:e=[]).push(l)}l.update&&(l.targetIdx=r,r=void 0,((r=f)!=null?r:f=[]).push(l))}b=[b];if(d)for(d=m(d),c=d.next();!c.done;c=d.next())c=c.value,b.push((typeof c==="function"?c:c.type)[zka]||null);return Pia(0,null,Aka(e,f),1,g,b,null,null,null,[a],null)},Aka=function(a,b){return a||b?function(c){if(c&1&&a)for(var d=m(a),e=d.next();!e.done;e=d.next())e.value.create();if(c&2&&b)for(c=m(b),d=c.next();!d.done;d=c.next())d.value.update()}:null},Cka=function(a){a=a[yka].kind;return a===
"input"||a==="twoWay"},Dka=function(a,b,c){a=a.projection=[];for(var d=0;d<b.length;d++){var e=c[d];a.push(e!=null&&e.length?Array.from(e):null)}},Fka=function(a,b,c){return(new Eka({providers:a,parent:b,debugName:c===void 0?null:c,runEnvironmentInitializers:!0})).injector},D=function(a){return kga(function(){var b=Gka(a),c,d=Object.assign({},b,{decls:a.decls,vars:a.vars,template:a.template,consts:a.consts||null,ngContentSelectors:a.ngContentSelectors,onPush:a.changeDetection===0,directiveDefs:null,
pipeDefs:null,dependencies:b.standalone&&a.dependencies||null,getStandaloneInjector:b.standalone?function(e){e=e.get(Hka);if(d.standalone){if(!e.cachedInjectors.has(d)){var f=nfa(!1,d.type);f=f.length>0?Fka([f],e._injector,"Standalone["+d.type.name+"]"):null;e.cachedInjectors.set(d,f)}e=e.cachedInjectors.get(d)}else e=null;return e}:null,getExternalStyles:null,signals:(c=a.signals)!=null?c:!1,data:a.data||{},encapsulation:a.encapsulation||0,styles:a.styles||bd,_:null,schemas:a.schemas||null,tView:null,
id:""});b.standalone&&xe("NgStandalone");Ika(d);b=a.dependencies;d.directiveDefs=Jka(b,Kka);d.pipeDefs=Jka(b,gfa);d.id=Lka(d);return d})},Kka=function(a){return a[ad]||a[zka]||null},$e=function(a){return kga(function(){return{type:a.type,bootstrap:a.bootstrap||bd,declarations:a.declarations||bd,imports:a.imports||bd,exports:a.exports||bd,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}})},af=function(a){return kga(function(){var b=Gka(a);Ika(b);return b})},cf=function(a){var b;
return{type:a.type,name:a.name,factory:null,pure:a.pure!==!1,standalone:(b=a.standalone)!=null?b:!0,onDestroy:a.type.prototype.ngOnDestroy||null}},Gka=function(a){var b={},c,d=a.type,e=a.hostBindings||null,f=a.hostVars||0,g=a.hostAttrs||null,k=a.contentQueries||null,l=a.inputs||jd,r=a.exportAs||null,w=(c=a.standalone)!=null?c:!0;c=a.signals===!0;var x=a.selectors||bd,C=a.viewQuery||null,H=a.features||null;var J=a.inputs;if(J==null)var O=jd;else{var R={};for(O in J)if(J.hasOwnProperty(O)){var V=J[O];
if(Array.isArray(V)){var ca=V[0];var na=V[1];var ua=void 0;var ia=(ua=V[2])!=null?ua:na;V=V[3]||null}else ia=na=V,ca=0,V=null;R[na]=[O,ca,V];b[na]=ia}O=R}a=a.outputs;if(a==null)var Ga=jd;else{J={};for(Ga in a)a.hasOwnProperty(Ga)&&(J[a[Ga]]=Ga);Ga=J}return{type:d,providersResolver:null,factory:null,hostBindings:e,hostVars:f,hostAttrs:g,contentQueries:k,declaredInputs:b,inputConfig:l,exportAs:r,standalone:w,signals:c,selectors:x,viewQuery:C,features:H,setInput:null,resolveHostDirectives:null,hostDirectives:null,
inputs:O,outputs:Ga,debugInfo:null}},Ika=function(a){var b;(b=a.features)==null||b.forEach(function(c){return c(a)})},Jka=function(a,b){return a?function(){var c=typeof a==="function"?a():a,d=[];c=m(c);for(var e=c.next();!e.done;e=c.next())e=b(e.value),e!==null&&d.push(e);return d}:null},Lka=function(a){var b=0;a=[a.selectors,a.ngContentSelectors,a.hostVars,a.hostAttrs,typeof a.consts==="function"?"":a.consts,a.vars,a.decls,a.encapsulation,a.standalone,a.signals,a.exportAs,JSON.stringify(a.inputs),
JSON.stringify(a.outputs),Object.getOwnPropertyNames(a.type.prototype),!!a.contentQueries,!!a.viewQuery];a=m(a.join("|"));for(var c=a.next();!c.done;c=a.next())b=Math.imul(31,b)+c.value.charCodeAt(0)<<0;return"c"+(b+2147483648)},Mka=function(a){return!!a&&typeof a.then==="function"},Nka=function(a){return!!a&&typeof a.subscribe==="function"},Pka=function(a){return{"\u0275providers":[{provide:Oka,multi:!0,useValue:a}]}},df=function(a){return typeof a==="function"&&a[Mc]!==void 0},ef=function(a,b){var c,
d=(c=b==null?void 0:b.injector)!=null?c:p(ye);b=(b==null?void 0:b.manualCleanup)!==!0?d.get(Ce):null;c=d.get(sia,null,{optional:!0});var e=d.get(Ze);if(c!==null){var f=Qka(c.view,e,a);b instanceof Nd&&b._lView===c.view&&(b=null)}else f=Rka(a,d.get(Ska),e);f.injector=d;b!==null&&(f.onDestroyFn=b.onDestroy(function(){return f.destroy()}));return new Tka(f)},Qka=function(a,b,c){var d=Object.create(Uka);d.view=a;d.zone=typeof Zone!=="undefined"?Zone.current:null;d.notifier=b;d.fn=Vka(d,c);a[23]!=null||
(a[23]=new Set);a[23].add(d);d.consumerMarkedDirty(d);return d},Rka=function(a,b,c){var d=Object.create(Wka);d.fn=Vka(d,a);d.scheduler=b;d.notifier=c;d.zone=typeof Zone!=="undefined"?Zone.current:null;d.scheduler.add(d);d.notifier.notify(12);return d},Vka=function(a,b){return function(){var c;b(function(d){var e;return((e=(c=a).cleanupFns)!=null?e:c.cleanupFns=[]).push(d)})}},Xka=function(a){return ge(function(b,c){var d=!1,e=null,f=null,g=!1,k=function(){var r;(r=f)==null||r.unsubscribe();f=null;
d&&(d=!1,r=e,e=null,c.next(r));g&&c.complete()},l=function(){f=null;g&&c.complete()};b.subscribe(new he(c,function(r){d=!0;e=r;f||Ud(a(r)).subscribe(f=new he(c,k,void 0,l))},void 0,function(){g=!0;d&&f&&!f.closed||c.complete()}))})},ff=function(a,b){b=b===void 0?qe:b;return Xka(function(){return re(a,b)})},Yka=function(a){return ge(function(b,c){var d=[];b.subscribe(new he(c,function(e){return d.push(e)},void 0,function(){c.next(d);c.complete()}));a.subscribe(new he(c,function(){var e=d;d=[];c.next(e)},
void 0,Qd));return function(){d=null}})},gf=function(a){return ge(function(b,c){var d=null,e=!1,f;d=b.subscribe(new he(c,void 0,function(g){f=Ud(a(g,gf(a)(b)));d?(d.unsubscribe(),d=null,f.subscribe(c)):e=!0}));e&&(d.unsubscribe(),d=null,f.subscribe(c))})},Zka=function(a,b,c){return function(d,e){var f=c,g=b,k=0;d.subscribe(new he(e,function(l){var r=k++;g=f?a(g,l,r):(f=!0,l);e.next(g)},void 0,void 0))}},$ka=function(){var a=$c.apply(0,arguments),b=Aha(a);return b?Sd($ka.apply(null,q(a)),Hha(b)):ge(function(c,
d){Nha([c].concat(q(a.length===1&&Zha(a[0])?a[0]:a)))(d)})},hf=function(){return $ka.apply(null,q($c.apply(0,arguments)))},ala=function(a){return Od()?ke(a,void 0,1):ke(a,1)},cla=function(){return bla.apply(null,q($c.apply(0,arguments)))},bla=function(){var a=$c.apply(0,arguments),b=be(a);return ge(function(c,d){le(1)(zha([c].concat(q(a)),b)).subscribe(d)})},dla=function(a){return ge(function(b,c){var d=!1,e=null,f=null,g=function(){var k;(k=f)==null||k.unsubscribe();f=null;d&&(d=!1,k=e,e=null,c.next(k))};
b.subscribe(new he(c,function(k){var l;(l=f)==null||l.unsubscribe();d=!0;e=k;f=new he(c,g,void 0,Qd);Ud(a(k)).subscribe(f)},void 0,function(){g();c.complete()},function(){e=f=null}))})},jf=function(a,b){b=b===void 0?qe:b;var c=re(a,b);return dla(function(){return c})},ela=function(a){a=a===void 0?null:a;return ge(function(b,c){var d=!1;b.subscribe(new he(c,function(e){d=!0;c.next(e)},void 0,function(){d||c.next(a);c.complete()}))})},fla=function(){return ge(function(a,b){a.subscribe(new he(b,Qd))})},
kf=function(a){return ge(function(b,c){b.subscribe(new he(c,function(){return c.next(a)}))})},lf=function(a){return a<=0?function(){return se}:ge(function(b,c){var d=0;b.subscribe(new he(c,function(e){++d<=a&&(c.next(e),a<=d&&c.complete())}))})},gla=function(a){return ke(function(b,c){return a(b,c).pipe(lf(1),kf(b))})},mf=function(a,b){b=b===void 0?qe:b;var c=re(a,b);return gla(function(){return c})},hla=function(){return ge(function(a,b){a.subscribe(new he(b,function(c){return Bha(c,b)}))})},nf=
function(a){var b=b===void 0?Rd:b;var c;a=(c=a)!=null?c:ila;return ge(function(d,e){var f,g=!0;d.subscribe(new he(e,function(k){var l=b(k);if(g||!a(f,l))g=!1,f=l,e.next(k)}))})},ila=function(a,b){return a===b},kla=function(a){a=a===void 0?jla:a;return ge(function(b,c){var d=!1;b.subscribe(new he(c,function(e){d=!0;c.next(e)},void 0,function(){return d?c.complete():c.error(a())}))})},jla=function(){return new Cha},lla=function(a){return ge(function(b,c){var d=0,e=null,f=!1;b.subscribe(new he(c,function(g){e||
(e=new he(c,void 0,void 0,function(){e=null;f&&c.complete()}),Ud(a(g,d++)).subscribe(e))},void 0,function(){f=!0;!e&&c.complete()}))})},mla=function(a){var b=b===void 0?Infinity:b;b=(b||0)<1?Infinity:b;return ge(function(c,d){return Qha(c,d,a,b,void 0,!0)})},of=function(a){return ge(function(b,c){b.subscribe(c);c.add(a)})},pf=function(a,b){var c=arguments.length>=2;return function(d){return d.pipe(a?ue(function(e,f){return a(e,f,d)}):Rd,lf(1),c?ela(b):kla(function(){return new Cha}))}},ola=function(a){return ge(function(b,
c){function d(l,r){var w=new Td(function(x){k.activeGroups++;var C=r.subscribe(x);return function(){C.unsubscribe();--k.activeGroups===0&&k.teardownAttempted&&k.unsubscribe()}});w.key=l;return w}var e=new Map,f=function(l){e.forEach(l);l(c)},g=function(l){return f(function(r){return r.error(l)})},k=new nla(c,function(l){try{var r=a(l),w=e.get(r);if(!w){e.set(r,w=new qf);var x=d(r,w);c.next(x)}w.next(l)}catch(C){g(C)}},g,function(){return f(function(l){return l.complete()})},function(){return e.clear()});
b.subscribe(k)})},pla=function(){return ge(function(a,b){var c=[];a.subscribe(new he(b,function(d){c.push(d);1<c.length&&c.shift()},void 0,function(){for(var d=m(c),e=d.next();!e.done;e=d.next())b.next(e.value);b.complete()},function(){c=null}))})},rla=function(){return ge(function(a,b){a.subscribe(new he(b,function(c){b.next(new rf("N",c))},function(c){b.next(rf.createError(c));b.complete()},function(){b.next(qla);b.complete()}))})},sla=function(a){var b=Od(a)?a:function(){return a};return Od()?
ge(function(c,d){var e=b();(void 0)(e).subscribe(d).add(c.subscribe(e))}):function(c){var d=new sf(c,b);Od(c==null?void 0:c.lift)&&(d.lift=c.lift);d.source=c;d.subjectFactory=b;return d}},tf=function(){return ge(function(a,b){var c,d=!1;a.subscribe(new he(b,function(e){var f=c;c=e;d&&b.next([f,e]);d=!0}))})},tla=function(){var a=$c.apply(0,arguments),b=a.length;if(b===0)throw Error("Ia");return A(function(c){var d=c;for(c=0;c<b;c++){var e=void 0;d=(e=d)==null?void 0:e[a[c]];if(typeof d==="undefined")return}return d})},
ula=function(){var a=new uf(1,void 0,void 0);return function(b){return sla(function(){return a})(b)}},vla=function(){var a=$c.apply(0,arguments);return a.length?ge(function(b,c){$ha([b].concat(q(a)))(c)}):Rd},wla=function(a){return ge(function(b,c){var d,e=!1,f,g=function(){d=b.subscribe(new he(c,void 0,function(k){f||(f=new qf,a(f).subscribe(new he(c,function(){return d?g():e=!0})));f&&f.next(k)}));e&&(d.unsubscribe(),d=null,e=!1,g())};g()})},xla=function(a,b){return ge(Zka(a,b,arguments.length>=
2))},yla=function(){var a=a||{};var b=a.connector===void 0?function(){return new qf}:a.connector,c=a.resetOnComplete===void 0?!0:a.resetOnComplete,d=a.resetOnError===void 0?!0:a.resetOnError,e=a.resetOnRefCountZero===void 0?!0:a.resetOnRefCountZero;return function(f){var g=null,k=null,l=0,r=!1,w=!1,x=function(){g=k=null;r=w=!1};return ge(function(C,H){l++;var J;k=(J=k)!=null?J:b();H.add(function(){l--;if(e&&!l&&!w&&!r){var O=g;x();O==null||O.unsubscribe()}});k.subscribe(H);!g&&l>0&&(g=new ee({next:function(O){return k.next(O)},
error:function(O){w=!0;var R=k;d&&x();R.error(O)},complete:function(){r=!0;var O=k;c&&x();O.complete()}}),Vd(C).subscribe(g))})(f)}},vf=function(a){var b;a&&typeof a==="object"?b=a:b={bufferSize:a,windowTime:void 0,refCount:!1,scheduler:void 0};return function(c){return ge(zla(b))(c)}},zla=function(a){var b=a.bufferSize===void 0?Infinity:a.bufferSize;var c=a.windowTime===void 0?Infinity:a.windowTime;var d=a.refCount;var e=a.scheduler;var f,g=0,k;return function(l,r){g++;if(f)var w=f.subscribe(r);
else f=new uf(b,c,e),w=f.subscribe(r),k=l.subscribe({next:function(x){f.next(x)},error:function(x){var C=f;f=k=void 0;C.error(x)},complete:function(){k=void 0;f.complete()}}),k.closed&&(k=void 0);r.add(function(){g--;w.unsubscribe();d&&g===0&&k&&(k.unsubscribe(),f=k=void 0)})}},wf=function(a){return ue(function(b,c){return a<=c})},xf=function(){var a=$c.apply(0,arguments),b=be(a);return ge(function(c,d){(b?me(a,c,b):me(a,c)).subscribe(d)})},yf=function(a){return ge(function(b,c){var d=null,e=0,f=
!1;b.subscribe(new he(c,function(g){var k;(k=d)==null||k.unsubscribe();k=e++;Ud(a(g,k)).subscribe(d=new he(c,function(l){return c.next(l)},void 0,function(){d=null;f&&!d&&c.complete()}))},void 0,function(){(f=!0,!d)&&c.complete()}))})},Ala=function(a){return yf(function(){return a})},zf=function(a){return ge(function(b,c){Ud(a).subscribe(new he(c,function(){return c.complete()},void 0,Qd));!c.closed&&b.subscribe(c)})},Bla=function(a){var b=b===void 0?!1:b;return ge(function(c,d){var e=0;c.subscribe(new he(d,
function(f){var g=a(f,e++);(g||b)&&d.next(f);!g&&d.complete()}))})},Af=function(a,b){var c=Od(a)||b?{next:a,error:b,complete:void 0}:a;return c?ge(function(d,e){d.subscribe(new he(e,function(f){var g;(g=c.next)==null||g.call(c,f);e.next(f)},function(f){var g;(g=c.error)==null||g.call(c,f);e.error(f)},function(){var f;(f=c.complete)==null||f.call(c);e.complete()}))}):Rd},Dla=function(a,b){b=b===void 0?Cla:b;var c=b.leading;var d=b.trailing;return ge(function(e,f){var g=!1,k=null,l=null,r=!1,w=function(){var J;
(J=l)==null||J.unsubscribe();l=null;d&&(H(),r&&f.complete())},x=function(){l=null;r&&f.complete()},C=function(J){return l=Ud(a(J)).subscribe(new he(f,w,void 0,x))},H=function(){g&&(f.next(k),!r&&C(k));g=!1;k=null};e.subscribe(new he(f,function(J){g=!0;k=J;(!l||l.closed)&&(c?H():C(J))},void 0,function(){r=!0;d&&g&&l&&!l.closed||f.complete()}))})},Bf=function(a){var b=qe,c={leading:!0,trailing:!0};b=b===void 0?qe:b;c=c===void 0?Cla:c;var d=re(a,b);return Dla(function(){return d},c)},Cf=function(){var a=
$c.apply(0,arguments),b=Aha(a);return ge(function(c,d){for(var e=a.length,f=Array(e),g=a.map(function(){return!1}),k=!1,l={i$jscomp$265:0};l.i$jscomp$265<e;l={i$jscomp$265:l.i$jscomp$265},l.i$jscomp$265++)Ud(a[l.i$jscomp$265]).subscribe(new he(d,function(r){return function(w){f[r.i$jscomp$265]=w;k||g[r.i$jscomp$265]||(g[r.i$jscomp$265]=!0,(k=g.every(Rd))&&(g=null))}}(l),void 0,Qd));c.subscribe(new he(d,function(r){k&&(r=[r].concat(q(f)),d.next(b?b.apply(null,q(r)):r))}))})},Ela=function(){Lea=function(){throw new Sc(600,
"");}},Fla=function(a,b){return Array.isArray(b)?b.reduce(Fla,a):Object.assign({},a,b)},Gla=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)},Hla=function(a,b,c,d){var e=Hc(null);try{var f=b.tView,g,k,l,r=Ria(a,f,c,a[2]&4096?4096:16,null,b,null,null,(g=d==null?void 0:d.injector)!=null?g:null,(k=d==null?void 0:d.embeddedViewInjector)!=null?k:null,(l=d==null?void 0:d.dehydratedView)!=null?l:null);r[16]=a[b.index];var w=a[18];w!==null&&(r[18]=w.createEmbeddedView(f));Tja(f,r,c);return r}finally{Hc(e)}},
Df=function(a,b){return!b||b.firstChild===null||(a.flags&128)===128},Ef=function(a){for(var b=Object.getPrototypeOf(a.type.prototype).constructor,c=!0,d=[a];b;){if(a.template)var e=b.\u0275cmp||b.\u0275dir;else{if(b.\u0275cmp)throw new Sc(903,!1);e=b.\u0275dir}if(e){if(c){d.push(e);var f=a;f.inputs=Ila(a.inputs);f.declaredInputs=Ila(a.declaredInputs);f.outputs=Ila(a.outputs);(f=e.hostBindings)&&Jla(a,f);f=e.viewQuery;var g=e.contentQueries;f&&Kla(a,f);g&&Lla(a,g);f=void 0;g=a;var k=e;for(f in k.inputs)if(k.inputs.hasOwnProperty(f)&&
!g.inputs.hasOwnProperty(f)){var l=k.inputs[f];l!==void 0&&(g.inputs[f]=l,g.declaredInputs[f]=k.declaredInputs[f])}f=void 0;g=a.outputs;k=e.outputs;for(f in k)k.hasOwnProperty(f)&&!g.hasOwnProperty(f)&&(g[f]=k[f]);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++)(g=e[f])&&g.ngInherit&&g(a),g===Ef&&(c=!1)}b=Object.getPrototypeOf(b)}a=0;b=null;for(c=d.length-1;c>=0;c--)e=d[c],e.hostVars=a+=e.hostVars,e.hostAttrs=Bd(e.hostAttrs,
b=Bd(b,e.hostAttrs))},Ila=function(a){return a===jd?{}:a===bd?[]:a},Kla=function(a,b){var c=a.viewQuery;a.viewQuery=c?function(d,e){b(d,e);c(d,e)}:b},Lla=function(a,b){var c=a.contentQueries;a.contentQueries=c?function(d,e,f){b(d,e,f);c(d,e,f)}:b},Jla=function(a,b){var c=a.hostBindings;a.hostBindings=c?function(d,e){b(d,e);c(d,e)}:b},Nla=function(a){for(var b=[],c=!1,d=null,e=null,f=0;f<a.length;f++){var g=a[f];if(g.hostDirectives!==null){var k=b.length;d!=null||(d=new Map);e!=null||(e=new Map);Mla(g,
b,d);e.set(g,[k,b.length-1])}f===0&&g.template&&(c=!0,b.push(g))}for(c=c?1:0;c<a.length;c++)b.push(a[c]);return[b,d,e]},Mla=function(a,b,c){if(a.hostDirectives!==null){a=m(a.hostDirectives);for(var d=a.next();!d.done;d=a.next())if(d=d.value,typeof d==="function"){d=d();d=m(d);for(var e=d.next();!e.done;e=d.next())Ola(Pla(e.value),b,c)}else Ola(d,b,c)}},Ola=function(a,b,c){var d=a.directive[zka]||null,e=d.declaredInputs,f=a.inputs,g;for(g in f)f.hasOwnProperty(g)&&(e[f[g]]=e[g]);Mla(d,b,c);c.set(d,
a);b.push(d)},Pla=function(a){return typeof a==="function"?{directive:Wc(a),inputs:jd,outputs:jd}:{directive:Wc(a.directive),inputs:Qla(a.inputs),outputs:Qla(a.outputs)}},Qla=function(a){if(a===void 0||a.length===0)return jd;for(var b={},c=0;c<a.length;c+=2)b[a[c]]=a[c+1];return b},Rla=function(a,b,c){var d=b.insertBeforeIndex;d=Array.isArray(d)?d[0]:d;return d===null?Hia(a,b,c):kd(c[d])},Sla=function(a,b,c,d,e){var f=b.insertBeforeIndex;if(Array.isArray(f)){var g=null;b.type&3||(g=d,d=e);if(d!==
null&&b.componentOffset===-1)for(b=1;b<f.length;b++)a.insertBefore(d,c[f[b]],g,!1)}},Tla=function(a,b){a.push(b);if(a.length>1)for(var c=a.length-2;c>=0;c--){var d=a[c];if(d.type&64){var e;if(e=!(b.type&64)||d.index>b.index)e=d.insertBeforeIndex,e=(Array.isArray(e)?e[0]:e)===null;if(e){e=b.index;var f=d.insertBeforeIndex;Array.isArray(f)?f[0]=e:(f=Sla,Iia=Rla,Jia=f,d.insertBeforeIndex=e)}}}},Ula=function(a,b){a=a.data[b];return a===null||typeof a==="string"?null:a.hasOwnProperty("currentCaseLViewIndex")?
a:a.value},Vla=function(a,b){a=b[a.currentCaseLViewIndex];return a===null?a:a<0?~a:a},Wla=function(a,b,c){a.index=0;c=Vla(b,c);c!==null?a.removes=b.remove[c]:a.removes=bd},Xla=function(a){if(a.index<a.removes.length){var b=a.removes[a.index++];if(b>0)return a.lView[b];a.stack.push(a.index,a.removes);Wla(a,a.lView[1].data[~b],a.lView);return Xla(a)}if(a.stack.length===0)return a.lView=void 0,null;a.removes=a.stack.pop();a.index=a.stack.pop();return Xla(a)},Yla=function(){var a={stack:[],index:-1};
return function(b,c){for(a.lView=c;a.stack.length;)a.stack.pop();Wla(a,b.value,c);return Xla.bind(null,a)}},$la=function(){return Zla(td(),t())},ama=function(a){return a[8]||(a[8]=[])},Zla=function(a,b){var c=b[a.index];if(id(c))var d=c;else d=[c,!0,0,b,null,a,null,null,null,null],b[a.index]=d,Uia(b,d);bma(d,b,a,c);return new Ff(d,a,b)},cma=function(a,b,c,d){if(!a[7]){if(c.type&8)d=kd(d);else{d=b[11];var e=d.createComment("");c=ld(c,b);b=d.parentNode(c);c=d.nextSibling(c);d.insertBefore(b,e,c,!1);
d=e}a[7]=d}},ema=function(a,b,c,d,e,f,g,k){c.firstCreatePass&&(a.mergedAttrs=Bd(a.mergedAttrs,a.attrs),e=a.tView=Pia(2,a,e,f,g,c.directiveRegistry,c.pipeRegistry,null,c.schemas,c.consts,null),c.queries!==null&&(c.queries.template(c,a),e.queries=c.queries.embeddedTView(a)));k&&(a.flags|=k);ud(a,!1);k=dma(c,b,a,d);Pe&&Kia(c,b,k,a);Gd(k,b);a=[k,!0,0,b,null,a,null,k,null,null];b[d+27]=a;Uia(b,a)},fma=function(a,b,c,d,e,f,g,k,l,r,w){var x=c+27;if(b.firstCreatePass){if(g=Se(b,x,4,g||null,k||null),r!=null)for(k=
nd(b.consts,r),g.localNames=[],x=0;x<k.length;x+=2)g.localNames.push(k[x],-1)}else g=b.data[x];ema(g,a,b,c,d,e,f,l);r!=null&&zja(a,g,w)},E=function(a,b,c,d,e,f,g,k){var l=t(),r=rd();f=nd(r.consts,f);var w=a+27;r.firstCreatePass?(e=Se(r,w,4,e||null,f||null),Zja(r,l,e,nd(r.consts,g),Fja),cga(r,e)):e=r.data[w];ema(e,l,r,a,b,c,d);(e.flags&1)===1&&yja(r,l,e);g!=null&&zja(l,e,k);return E},Gf=function(a,b,c,d,e,f,g,k){var l=t(),r=rd();f=nd(r.consts,f);fma(l,r,a,b,c,d,e,f,void 0,g,k);return Gf},gma=function(a,
b){Pe=!0;return b[11].createComment("")},Hf=function(a,b){var c=t(),d=wd();if(Ld(c,d,b)){var e=rd();d=xd();Oe(d,e,c,a,b)?d.componentOffset>-1&&Cja(c,d.index):(e=ld(d,c),Gja(c[11],e,null,d.value,a,b,null))}return Hf},If=function(a,b,c,d){var e=t(),f=wd();if(Ld(e,f,b)){f=xd();var g=ld(f,e);Gja(e[11],g,d,f.value,a,b,c)}return If},lma=function(){var a=t(),b=rd(),c=td();if(b=b.firstCreatePass?hma(b,c,a):c.flags&1024?ima(a,c.inputs.field):void 0)c.flags&2048?jma(a,c,b,"value"):c.flags&4096?jma(a,c,b,"checked"):
c.flags&8192?b.\u0275interopControlCreate():kma(a,c,b),b.\u0275register()},pma=function(a){var b=t(),c=xd(),d=wd();Ld(b,d,a)&&Eja(c,b,"field",a,b[11]);if(d=c.flags&1024?ima(b,c.inputs.field):void 0)c.flags&2048?mma(c,b,d,"value"):c.flags&4096?mma(c,b,d,"checked"):c.flags&8192?d.\u0275interopControlUpdate():(a=ld(c,b),b=b[11],d=d.state(),nma(a,d.value()),b.setAttribute(a,"name",d.name()),d.disabled()?b.setAttribute(a,"disabled",""):b.removeAttribute(a,"disabled"),d.readonly()?b.setAttribute(a,"readonly",
""):b.removeAttribute(a,"readonly"),d.required&&(d.required()?b.setAttribute(a,"required",""):b.removeAttribute(a,"required")),c.flags&16384&&(d.max&&oma(b,a,"max",d.max()),d.min&&oma(b,a,"min",d.min())),c.flags&32768&&(d.maxLength&&oma(b,a,"maxLength",d.maxLength()),d.minLength&&oma(b,a,"minLength",d.minLength())))},hma=function(a,b,c){var d,e=(d=b.inputs)==null?void 0:d.field;if(e){if(b.componentOffset>-1){var f=b.directiveStart+b.componentOffset;if(e.includes(f))return}if(c=ima(c,e)){b.flags|=
1024;if(b.componentOffset>-1){a=a.data[f];if(qma(a,"value"))return b.flags|=2048,c;if(qma(a,"checked"))return b.flags|=4096,c}if(c.\u0275hasInteropControl)return b.flags|=8192,c;b.type!==2?a=!1:(a=b.value,a=a==="input"||a==="textarea"||a==="select");if(a){a:{if(b.attrs&&b.value==="input")for(a=0;a<b.attrs.length;a+=2){f=b.attrs[a];if(hga(f))break;if(f==="type"){a=b.attrs[a+1];a=a==="date"||a==="datetime-local"||a==="month"||a==="number"||a==="range"||a==="time"||a==="week";break a}}a=!1}a&&(b.flags|=
16384);b.value!=="select"&&(b.flags|=32768);return c}throw new Sc(318,"'<"+b.value+">' is an invalid [field] directive host. The host must be a native form control (such as <input>', '<select>', or '<textarea>') or a custom form control component with a 'value' or 'checked' model.");}}},ima=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next())if(c=a[c.value],rma in c)return c},qma=function(a,b){var c=a.inputs[b];return c&&(c[1]&1)!==0&&b+"Change"in a.outputs},jma=function(a,b,c,d){var e=b.directiveStart+
b.componentOffset;d+="Change";Oja(b,a,e,d,d,Qe(b,a,function(f){var g=c.state();g.value.set(f);sma(g)}));"touchedChange"in rd().data[e].outputs&&Oja(b,a,e,"touchedChange","touchedChange",Qe(b,a,function(){tma(c.state())}))},kma=function(a,b,c){var d=rd(),e=a[11],f=function(){var g=ld(b,a),k=c.state();k.value.set(uma(g,k.value));sma(k)};Nja(b,d,a,void 0,e,"input",f,Qe(b,a,f));f=function(){tma(c.state())};Nja(b,d,a,void 0,e,"blur",f,Qe(b,a,f))},mma=function(a,b,c,d){a=a.directiveStart+a.componentOffset;
b=b[a];a=rd().data[a];c=c.state();ria(a,b,d,c.value());Jf(a,b,"errors",c.errors);Jf(a,b,"invalid",c.invalid);Jf(a,b,"disabled",c.disabled);Jf(a,b,"disabledReasons",c.disabledReasons);Jf(a,b,"name",c.name);Jf(a,b,"readonly",c.readonly);Jf(a,b,"touched",c.touched);Jf(a,b,"max",c.max);Jf(a,b,"maxLength",c.maxLength);Jf(a,b,"min",c.min);Jf(a,b,"minLength",c.minLength);Jf(a,b,"pattern",c.pattern);Jf(a,b,"required",c.required)},Jf=function(a,b,c,d){d&&c in a.inputs&&ria(a,b,c,d())},uma=function(a,b){switch(a.type){case "checkbox":return a.checked;
case "number":case "range":case "datetime-local":if(typeof b()==="number")return a.valueAsNumber;break;case "date":case "month":case "time":case "week":b=b();if(b===null||b instanceof Date)return a.valueAsDate;if(typeof b==="number")return a.valueAsNumber}return a.value},nma=function(a,b){switch(a.type){case "checkbox":a.checked=b;return;case "radio":a.checked=b===a.value;return;case "number":case "range":case "datetime-local":if(typeof b==="number"){a.valueAsNumber=b;return}break;case "date":case "month":case "time":case "week":if(b===
null||b instanceof Date){a.valueAsDate=b;return}if(typeof b==="number"){a.valueAsNumber=b;return}}a.value=b},oma=function(a,b,c,d){d!==void 0?a.setAttribute(b,c,d.toString()):a.removeAttribute(b,c)},vma=function(a,b,c,d,e){return a===c&&Object.is(b,d)?1:Object.is(e(a,b),e(c,d))?-1:0},Bma=function(a,b,c,d){var e=void 0,f=void 0,g=0,k=a.length-1;if(Array.isArray(b)){Hc(d);d=b.length-1;for(Hc(null);g<=k&&g<=d;){var l=a.at(g),r=b[g],w=vma(g,l,g,r,c);if(w!==0)w<0&&a.updateValue(g,r),g++;else{var x=a.at(k);
w=b[d];var C=vma(k,x,d,w,c);C!==0?(C<0&&a.updateValue(k,w),k--,d--):(l=c(g,l),x=c(k,x),C=c(g,r),Object.is(C,x)?(x=c(d,w),Object.is(x,l)?(wma(a,g,k),a.updateValue(k,w),d--,k--):a.move(k,g),a.updateValue(g,r),g++):(e!=null||(e=new xma),f!=null||(f=yma(a,g,k,c)),zma(a,e,g,C)?(a.updateValue(g,r),g++,k++):f.has(C)?(e.set(l,a.detach(g)),k--):(r=a.create(g,b[g]),a.attach(g,r),g++,k++)))}}for(;g<=d;)Ama(a,e,c,g,b[g]),g++}else if(b!=null){Hc(d);b=b[Symbol.iterator]();Hc(null);for(d=b.next();!d.done&&g<=k;)r=
a.at(g),w=d.value,l=vma(g,r,g,w,c),l!==0?(l<0&&a.updateValue(g,w),g++,d=b.next()):(e!=null||(e=new xma),f!=null||(f=yma(a,g,k,c)),l=c(g,w),zma(a,e,g,l)?(a.updateValue(g,w),g++,k++,d=b.next()):f.has(l)?(r=c(g,r),e.set(r,a.detach(g)),k--):(a.attach(g,a.create(g,w)),g++,k++,d=b.next()));for(;!d.done;)Ama(a,e,c,a.length,d.value),d=b.next()}for(;g<=k;)a.destroy(a.detach(k--));var H;(H=e)==null||H.forEach(function(J){a.destroy(J)})},zma=function(a,b,c,d){return b!==void 0&&b.has(d)?(a.attach(c,b.get(d)),
b.delete(d),!0):!1},Ama=function(a,b,c,d,e){zma(a,b,d,c(d,e))?a.updateValue(d,e):(b=a.create(d,e),a.attach(d,b))},yma=function(a,b,c,d){for(var e=new Set;b<=c;b++)e.add(d(b,a.at(b)));return e},F=function(a,b,c,d,e,f){xe("NgControlFlow");var g=t(),k=rd();f=nd(k.consts,f);fma(g,k,a,b,c,d,e,f,256);return Kf},Kf=function(a,b,c,d,e,f,g,k){xe("NgControlFlow");var l=t(),r=rd();f=nd(r.consts,f);fma(l,r,a,b,c,d,e,f,512,g,k);return Kf},G=function(a,b){xe("NgControlFlow");var c=t(),d=wd(),e=c[d]!==Kd?c[d]:-1;
e=e!==-1?c[27+e]:void 0;if(Ld(c,d,a)){d=Hc(null);try{if(e!==void 0&&qka(e),a!==-1){a=27+a;var f=c[a],g=c[1].data[a],k=Hla(c,g,b,{dehydratedView:null});oka(f,k,0,Df(g,null))}}finally{Hc(d)}}else e!==void 0&&(c=mka(e,0),c!==void 0&&(c[8]=b))},Lf=function(a){return a},Mf=function(a,b){return b},Nf=function(a,b,c,d,e,f,g,k){xe("NgControlFlow");var l=t(),r=rd(),w=t();g=k?g.bind(w[15][8]):g;w[27+a]=new Cma(g);fma(l,r,a+1,b,c,d,e,nd(r.consts,f),256)},Of=function(a){var b=Hc(null),c=qd.selectedIndex;try{var d=
t(),e=d[1],f=d[c],g=c+1,k=d[g];f.liveCollection===void 0?f.liveCollection=new Dma(k,d,e.data[g]):f.liveCollection.reset();var l=f.liveCollection;Bma(l,a,f.trackByFn,b);if(l.needsIndexUpdate)for(a=0;a<l.length;a++)mka(l.lContainer,a)[8].$index=a;if(f.hasEmptyBlock){var r=wd(),w=l.length===0;if(Ld(d,r,w)){c+=2;var x=d[c];if(w){var C=e.data[c],H=Hla(d,C,void 0,{dehydratedView:null});oka(x,H,0,Df(C,null))}else{if(e.firstUpdatePass){var J,O=(J=x[6])!=null?J:[],R=x[3][11];d=[];for(var V=m(O),ca=V.next();!ca.done;ca=
V.next()){var na=ca.value;if(na.data.di!==void 0)d.push(na);else{O=0;var ua=na.firstChild;if(ua)for(var ia=na.data.r;O<ia;){var Ga=ua.nextSibling;R.removeChild(null,ua,!1,void 0);ua=Ga;O++}}}x[6]=d}qka(x)}}}}finally{Hc(b)}},Pf=function(a,b,c){var d=t(),e=wd();Ld(d,e,b)&&(e=xd(),Dja(e,d,a,b,d[11],c));return Pf},Ema=function(a,b,c){var d=t(),e=wd();if(Ld(d,e,b)){e=rd();var f=xd();Dja(f,d,a,b,Jja(Wfa(e.data),f,d),c)}return Ema},I=function(a,b,c){var d=t(),e=wd();Ld(d,e,b)&&(e=xd(),Eja(e,d,a,b,d[11],
c));return I},K=function(a,b,c,d){var e=t(),f=e[1],g=a+27;c=f.firstCreatePass?aka(g,e,2,b,Fja,c,d):f.data[g];Hja(c,e,a,b,Fma);(c.flags&1)===1&&(a=e[1],yja(a,e,c),Rja(a,c,e));d!=null&&zja(e,c);return K},L=function(){var a=rd(),b=Ija();a.firstCreatePass&&bka(a,b);Te===b&&(Te=null);qd.elementDepthCount--;b.classesWithoutHost!=null&&(b.flags&8)!==0&&Oe(b,a,t(),"class",b.classesWithoutHost);b.stylesWithoutHost!=null&&(b.flags&16)!==0&&Oe(b,a,t(),"style",b.stylesWithoutHost);return L},M=function(a,b,c,
d){K(a,b,c,d);L();return M},Qf=function(a,b,c,d){var e=t(),f=e[1],g=a+27;if(f.firstCreatePass){var k=f.consts;c=nd(k,c);g=Se(f,g,2,b,c);g.mergedAttrs=Bd(g.mergedAttrs,g.attrs);if(d!=null)for(k=nd(k,d),g.localNames=[],c=0;c<k.length;c+=2)g.localNames.push(k[c],-1);g.attrs!==null&&Uja(g,g.attrs,!1);g.mergedAttrs!==null&&Uja(g,g.mergedAttrs,!0);f.queries!==null&&f.queries.elementStart(f,g);f=g}else f=f.data[g];Hja(f,e,a,b,Fma);d!=null&&zja(e,f);return Qf},Rf=function(){var a=Ija();Te===a&&(Te=null);
qd.elementDepthCount--;return Rf},Sf=function(a,b,c,d){Qf(a,b,c,d);Rf();return Sf},Tf=function(a,b,c){var d=t(),e=d[1],f=a+27;b=e.firstCreatePass?aka(f,d,8,"ng-container",Fja,b,c):e.data[f];Hja(b,d,a,"ng-container",Gma);(b.flags&1)===1&&(a=d[1],yja(a,d,b),Rja(a,b,d));c!=null&&zja(d,b);return Tf},Uf=function(){var a=rd(),b=Ija();a.firstCreatePass&&bka(a,b);return Uf},Vf=function(a,b,c){Tf(a,b,c);Uf();return Vf},Wf=function(a){var b=a.toLowerCase().replace(/_/g,"-");if(a=Hma(b))return a;b=b.split("-")[0];
if(a=Hma(b))return a;if(b==="en")return Ima;throw new Sc(701,!1);},Hma=function(a){a in Jma||(Jma[a]=Ke.ng&&Ke.ng.common&&Ke.ng.common.locales&&Ke.ng.common.locales[a]);return Jma[a]},Nma=function(a){var b=rd(),c=t();Kma>0&&(a=b.data[a],Lma(b,c,Array.isArray(a)?a:a.update,qd.bindingIndex-Kma-1,Mma));Kma=Mma=0},Pma=function(a,b,c,d){for(var e=c[11],f=null,g,k=0;k<b.length;k++){var l=b[k];if(typeof l=="string"){var r=b[++k];c[r]===null&&(c[r]=Oma(c,l,Node.TEXT_NODE))}else if(typeof l=="number")switch(l&
1){case 0:var w=l>>>17;f===null&&(f=w,g=e.parentNode(d));w===f?(r=d,w=g):(r=null,w=kd(c[w]));w!==null&&(l=(l&131070)>>>1,e.insertBefore(w,c[l],r,!1),l=Ula(a,l),l!==null&&typeof l==="object"&&(r=Vla(l,c),r!==null&&Pma(a,l.create[r],c,c[l.anchorIdx])));break;case 1:l>>>=1,r=b[++k],w=b[++k],Gja(e,kd(c[l]),null,null,r,w,null)}else switch(l){case Qma:l=b[++k];r=b[++k];c[r]===null&&(l=c[r]=Oma(c,l,Node.COMMENT_NODE),Gd(l,c));break;case Rma:l=b[++k],r=b[++k],c[r]===null&&(l=c[r]=Oma(c,l,Node.ELEMENT_NODE),
Gd(l,c))}}},Lma=function(a,b,c,d,e){for(var f=0;f<c.length;f++){var g=c[f],k=c[++f];if(g&e){g="";for(var l=f+1;l<=f+k;l++){var r=c[l];if(typeof r=="string")g+=r;else if(typeof r=="number")if(r<0)g+=Qc(b[d-r]);else{var w=r>>>2;switch(r&3){case 1:r=c[++l];var x=c[++l],C=a.data[w];typeof C==="string"?Gja(b[11],b[w],null,C,r,g,x):Eja(C,b,r,g,b[11],x);break;case 0:r=b[w];r!==null&&b[11].setValue(r,g);break;case 2:r=a;w=Ula(a,w);x=b;C=w;var H=g;var J=C.cases.indexOf(H);if(J===-1)switch(C.type){case 1:J=
(0,Wf(Sma)[20])(parseInt(H,10));J=Tma[J];H=J!==void 0?J:"other";J=C.cases.indexOf(H);J===-1&&H!=="other"&&(J=C.cases.indexOf("other"));break;case 0:J=C.cases.indexOf("other")}C=J===-1?null:J;Vla(w,x)!==C&&(Uma(r,w,x),x[w.currentCaseLViewIndex]=C===null?null:~C,C!==null&&(J=x[w.anchorIdx])&&Pma(r,w.create[C],x,J));break;case 3:Vma(a,Ula(a,w),d,b)}}}}else g=c[f+1],g>0&&(g&3)===3&&(g=Ula(a,g>>>2),b[g.currentCaseLViewIndex]<0&&Vma(a,g,d,b));f+=k}},Vma=function(a,b,c,d){var e=d[b.currentCaseLViewIndex];
if(e!==null){var f=Mma;e<0&&(e=d[b.currentCaseLViewIndex]=~e,f=-1);Lma(a,d,b.update[e],c,f)}},Uma=function(a,b,c){var d=Vla(b,c);if(d!==null)for(b=b.remove[d],d=0;d<b.length;d++){var e=b[d];e>0?(e=kd(c[e]),e!==null&&c[11].removeChild(null,e,void 0,void 0)):Uma(a,Ula(a,~e),c)}},Wma=function(a,b,c,d,e,f,g){var k=Tia(a,d,1,null),l=k<<2;d=Sfa();b===d&&(d=null);d===null&&(l|=1);g&&(l|=2,Nia===void 0&&(Nia=Yla()));e.push(l,f===null?"":f);a=Vja(a,k,g?32:1,f===null?"":f,null);Tla(c,a);c=a.index;ud(a,!1);
if(d!==null&&b!==d)if(b=d.insertBeforeIndex,b===null)Iia=Rla,Jia=Sla,d.insertBeforeIndex=[null,c];else{d=Array.isArray(b);if(d!=1)throw Error("sa`Expecting array here` [Expected=> true == "+(d+" <=Actual]"));b.push(c)}return a},Yma=function(a,b,c,d,e){var f=a.length,g=f+1;a.push(null,null);var k=f+2;b=b.split(Xma);for(var l=0,r=0;r<b.length;r++){var w=b[r];r&1?(w=parseInt(w,10),a.push(-1-w),l|=1<<Math.min(w,31)):w!==""&&a.push(w)}a.push(c<<2|(d?1:0));d&&a.push(d,e);a[f]=l;a[g]=a.length-k;return l},
$ma=function(a){for(var b,c="",d=0,e=!1,f;(b=Zma.exec(a))!==null;)e?b[0]==="\ufffd/*"+f+"\ufffd"&&(d=b.index,e=!1):(c+=a.substring(d,b.index+b[0].length),f=b[1],e=!0);return c+=a.slice(d)},bna=function(a,b,c,d,e,f,g){var k=0,l={type:f.type,currentCaseLViewIndex:Tia(b,c,1,null),anchorIdx:g,cases:[],create:[],remove:[],update:[]};d.push(1<<Math.min(f.mainBinding,31),2,-1-f.mainBinding,g<<2|2);var r=b.data[g];r===null?b.data[g]=l:r.value=l;r=f.values;for(var w=[],x=0;x<r.length;x++){for(var C=r[x],H=
[],J=0;J<C.length;J++){var O=C[J];typeof O!=="string"&&(O=H.push(O)-1,C[J]="\x3c!--\ufffd"+O+"\ufffd--\x3e")}J=[];w.push(J);O=b;var R=l,V=c,ca=d,na=e,ua=C.join("");C=[];var ia=[],Ga=[];R.cases.push(f.cases[x]);R.create.push(C);R.remove.push(ia);R.update.push(Ga);ua=$ia(Nga()).getInertBodyElement(ua);ua=jja(ua)||ua;k|=ua?ana(J,O,R,V,ca,C,ia,Ga,ua,na,H,0):0}k&&d.push(k,1,g<<2|3);a.push({kind:3,index:g,cases:w,currentCaseLViewIndex:l.currentCaseLViewIndex})},ena=function(a){var b=[],c=[],d=1,e=0;a=a.replace(cna,
function(k,l,r){d=r==="select"?0:1;e=parseInt(l.slice(1),10);return""});a=dna(a);for(var f=0;f<a.length;){var g=a[f++].trim();d===1&&(g=g.replace(/\s*(?:=)?(\w+)\s*/,"$1"));g.length&&b.push(g);g=dna(a[f++]);b.length>c.length&&c.push(g)}return{type:d,mainBinding:e,cases:b,values:c}},dna=function(a){if(!a)return[];var b=0,c=[],d=[],e=/[{}]/g;e.lastIndex=0;for(var f;f=e.exec(a);){var g=f.index;f[0]=="}"?(c.pop(),c.length==0&&(b=a.substring(b,g),cna.test(b)?d.push(ena(b)):d.push(b),b=g+1)):(c.length==
0&&(d.push(a.substring(b,g)),b=g+1),c.push("{"))}d.push(a.substring(b));return d},ana=function(a,b,c,d,e,f,g,k,l,r,w,x){var C=0;for(l=l.firstChild;l;){var H=Tia(b,d,1,null);switch(l.nodeType){case Node.ELEMENT_NODE:var J=l,O=J.tagName.toLowerCase();if(kja.hasOwnProperty(O)){var R=f,V=Rma,ca=O,na=r;V!==null&&R.push(V);R.push(ca,H,0|na<<17|H<<1);b.data[H]=O;J=J.attributes;for(O=0;O<J.length;O++)R=J.item(O),V=R.name.toLowerCase(),R.value.match(Xma)?lja.hasOwnProperty(V)&&(mja[V]?Yma(k,R.value,H,R.name,
bja):Yma(k,R.value,H,R.name,null)):f.push(H<<1|1,R.name,R.value);J={kind:1,index:H,children:[]};a.push(J);C|=ana(J.children,b,c,d,e,f,g,k,l,H,w,x+1);x===0&&g.push(H)}break;case Node.TEXT_NODE:J=l.textContent||"";O=J.match(Xma);f.push(O?"":J,H,0|r<<17|H<<1);x===0&&g.push(H);O&&(C|=Yma(k,J,H,null,null));a.push({kind:0,index:H});break;case Node.COMMENT_NODE:if(J=fna.exec(l.textContent||""))J=w[parseInt(J[1],10)],O=f,R=Qma,V=r,R!==null&&O.push(R),O.push("",H,0|V<<17|H<<1),bna(a,b,d,e,r,J,H),J=g,x===0&&
(J.push(~H),J.push(H))}l=l.nextSibling}return C},ina=function(a,b){var c=c===void 0?-1:c;var d=rd(),e=t();a=27+a;var f=nd(d.consts,b);b=Sfa();if(d.firstCreatePass){var g=b===null?0:b.index,k=Sfa(),l=[],r=[],w=[[]],x=[[]];if(c===-1)c=$ma(f);else{var C=f.indexOf(":"+c+"\ufffd")+2+c.toString().length;c=f.search(new RegExp("\ufffd\\/\\*\\d+:"+c+"\ufffd"));c=$ma(f.substring(C,c))}f=c.replace(gna," ").split(hna);for(C=0;C<f.length;C++){var H=f[C];if((C&1)===0){var J=dna(H);for(H=0;H<J.length;H++){var O=
J[H];if((H&1)===0){if(O!==""){var R=x[0],V=d,ca=k,na=w[0],ua=O.match(Xma);V=Wma(V,ca,na,e,l,ua?null:O,!1).index;ua&&Yma(r,O,V,null,null);R.push({kind:0,index:V})}}else{if(typeof O!=="object")throw Error("La`"+c);R=Wma(d,k,w[0],e,l,"",!0).index;bna(x[0],d,e,r,g,O,R)}}}else O=H.charCodeAt(0)===47,J=H.charCodeAt(O?1:0),H=27+Number.parseInt(H.substring(O?2:1)),O?(w.shift(),x.shift(),ud(Sfa(),!1)):(O=w[0],R=Vja(d,H,64,null,null),Tla(O,R),O=R,w.unshift([]),ud(O,!0),J={kind:2,index:H,children:[],type:J===
35?0:1},x[0].push(J),x.unshift(J.children))}d.data[a]={create:l,update:r,ast:x[0],parentTNodeIndex:g}}d.type===2?e[15][2]|=32:e[2]|=32;a=d.data[a];d=Gia(d,b===e[5]?null:b,e);a=a.create;b=b&&b.type&8?e[b.index]:null;g=e[11];for(k=0;k<a.length;k++)x=a[k++],l=a[k],r=(x&2)===2,w=(x&1)===1,x>>>=2,c=e[x],f=!1,c===null&&(c=e[x]=Oma(e,l,r?Node.COMMENT_NODE:Node.TEXT_NODE),f=Pe),w&&d!==null&&f&&g.insertBefore(d,c,b,!1);qd.inI18n=!0},Xf=function(a,b){ina(a,b);qd.inI18n=!1},Yf=function(a){Ld(t(),wd(),a)&&(Mma|=
1<<Math.min(Kma,31));Kma++;return Yf},Zf=function(a){var b=rd(),c=t();a+=27;var d=Se(b,a,128,null,null);ud(d,!1);Lfa(b,c,a,jna);return Zf},$f=function(a){xe("NgLet");Lfa(rd(),t(),qd.selectedIndex,a);return a},ag=function(a){a=qd.contextLView[27+a];if(a===jna)throw new Sc(314,!1);return a},N=function(a,b,c){var d=t();kna(rd(),d,d[11],td(),a,b,c);return N},lna=function(a,b){var c=td(),d=t(),e=rd();kna(e,d,Jja(Wfa(e.data),c,d),c,a,b);return lna},mna=function(a,b,c){var d=t(),e=rd(),f=td();(f.type&3||
c)&&Nja(f,e,d,c,d[11],a,b,Qe(f,d,b));return mna},kna=function(a,b,c,d,e,f,g){var k=!0,l=null;if(d.type&3||g)l!=null||(l=Qe(d,b,f)),Nja(d,a,b,g,c,e,f,l)&&(k=!1);if(k){var r;a=(r=d.outputs)==null?void 0:r[e];var w;if((r=(w=d.hostDirectiveOutputs)==null?void 0:w[e])&&r.length)for(w=0;w<r.length;w+=2)c=r[w],g=r[w+1],l!=null||(l=Qe(d,b,f)),Oja(d,b,c,g,e,l);if(a&&a.length)for(w=m(a),r=w.next();!r.done;r=w.next())r=r.value,l!=null||(l=Qe(d,b,f)),Oja(d,b,r,e,e,l)}},P=function(a){a=a===void 0?1:a;for(var b=
qd.contextLView;a>0;)b=b[14],a--;return(qd.contextLView=b)[8]},bg=function(a){var b=t()[15][5];if(!b.projection){for(var c=a?a.length:1,d=[],e=0;e<c;e++)d.push(null);c=b.projection=d;d=c.slice();for(b=b.child;b!==null;){if(b.type!==128){if(a)a:{e=b;var f=a,g=null;b:{var k=e.attrs;if(k!=null){var l=k.indexOf(5);if((l&1)===0){k=k[l+1];break b}}k=null}for(l=0;l<f.length;l++){var r=f[l];if(r==="*")g=l;else{if(k===null)r=Kga(e,r,!0);else b:{var w=0;c:for(;w<r.length;w++){var x=r[w];if(k.length===x.length){for(var C=
0;C<k.length;C++)if(k[C]!==x[C])continue c;r=!0;break b}}r=!1}if(r){e=l;break a}}}e=g}else e=0;e!==null&&(d[e]?d[e].projectionNext=b:c[e]=b,d[e]=b)}b=b.next}}},cg=function(a,b,c,d,e,f){b=b===void 0?0:b;var g=t(),k=rd(),l=d?a+1:null;l!==null&&fma(g,k,l,d,e,f,null,c);a=Se(k,27+a,16,null,c||null);a.projection===null&&(a.projection=b);qd.isParent=!1;b=!g[6]||Te!==null;g[15][5].projection[a.projection]===null&&l!==null?(l=27+l,k=k.data[l],l=g[l],g=Hla(g,k,void 0,{dehydratedView:null}),oka(l,g,0,Df(k,null))):
b&&(a.flags&32)!==32&&(l=g[11],k=Gia(k,a.parent,g),b=Iia(a.parent||g[5],a,g),Oia(l,0,g,a,k,b))},nna=function(){return this._results[Symbol.iterator]()},pna=function(){return ona(td(),t())},ona=function(a,b){return a.type&4?new dg(b,a,Id(a,b)):null},qna=function(a,b,c,d){d=b[18].queries[d];if(d.matches===null){a=a.data;for(var e=c.matches,f=[],g=0;e!==null&&g<e.length;g+=2){var k=e[g];if(k<0)f.push(null);else{var l=f,r=l.push,w=b,x=a[k],C=e[g+1];k=c.metadata.read;C===-1?(k=x,w=k.type&11?Id(k,w):k.type&
4?ona(k,w):null):C===-2?w=k===Hd?Id(x,w):k===dg?ona(x,w):k===eg?Zla(x,w):void 0:w=Bga(w,w[1],C,x);r.call(l,w)}}d.matches=f}return d.matches},rna=function(a,b,c,d){var e=a.queries.queries[c],f=e.matches;if(f!==null)for(a=qna(a,b,e,c),c=0;c<f.length;c+=2){var g=f[c];if(g>0)d.push(a[c/2]);else{e=f[c+1];g=b[-g];for(var k=10;k<g.length;k++){var l=g[k];l[16]===l[3]&&rna(l[1],l,e,d)}if(g[9]!==null)for(g=g[9],k=0;k<g.length;k++)l=g[k],rna(l[1],l,e,d)}}return d},una=function(a,b){var c=t();b=new gg((b&4)===
4);var d=b.destroy,e=Qfa(c);e.push(b);a.firstCreatePass&&Rfa(a).push(d,e.length-1);var f;return((f=c[18])!=null?f:c[18]=new sna).queries.push(new tna(b))-1},hg=function(a,b,c){var d=rd();d.firstCreatePass&&(vna(d,new wna(a,b,c),-1),(b&2)===2&&(d.staticViewQueries=!0));return una(d,b)},ig=function(a,b,c,d){var e=rd();if(e.firstCreatePass){var f=td();vna(e,new wna(b,c,d),f.index);b=e.contentQueries||(e.contentQueries=[]);a!==(b.length?b[b.length-1]:-1)&&b.push(e.queries.length-1,a);(c&2)===2&&(e.staticContentQueries=
!0)}return una(e,c)},xna=function(a){return a.split(",").map(function(b){return b.trim()})},vna=function(a,b,c){a.queries===null&&(a.queries=new yna);a.queries.track(new jg(b,c))},zna=function(a,b){var c=a[1],d=c.queries.queries[b];return d.crossesNgTemplate?rna(c,a,b,[]):qna(c,a,d,b)},lg=function(a){var b=t(),c=rd(),d=qd.currentQueryIndex;qd.currentQueryIndex=d+1;c=c.queries.queries[d];return a.dirty&&(b[2]&4)===4===((c.metadata.flags&2)===2)?(c.matches===null?a.reset([]):(b=zna(b,d),a.reset(b,Qga),
kg(a)),!0):!1},mg=function(){return t()[18].queries[qd.currentQueryIndex].queryList},ng=function(a,b){var c=m(Mea(a,b==null?void 0:b.equal));a=c.next().value;b=c.next().value;c=c.next().value;a.set=b;a.update=c;a.asReadonly=Ana.bind(a);return a},Ana=function(){var a=this,b=this[Mc];if(b.readonlyFn===void 0){var c=function(){return a()};c[Mc]=b;b.readonlyFn=c}return b.readonlyFn},Bna=function(a,b){var c=Jea(function(){d._dirtyCounter();var e=d;var f=e._lView,g=e._queryIndex;if(f===void 0||g===void 0||
f[2]&4)e=a?void 0:bd;else{var k=f[18].queries[g].queryList;f=zna(f,g);k.reset(f,Qga);e=a?k.first:k._changesDetected||e._flatValue===void 0?e._flatValue=k.toArray():e._flatValue}if(b&&e===void 0)throw new Sc(-951,!1);return e});var d=c[Mc];d._dirtyCounter=ng(0);d._flatValue=void 0;return c},Dna=function(a,b){var c=a[Mc];c._lView=t();c._queryIndex=b;c._queryList=c._lView[18].queries[b].queryList;Cna(c._queryList,function(){return c._dirtyCounter.update(function(d){return d+1})})},og=function(a,b,c){Dna(a,
hg(b,5,c))},pg=function(a){qd.currentQueryIndex+=a===void 0?1:a},qg=function(a){return qd.contextLView[27+a]},Ena=function(a,b,c,d){for(var e=a[c+1],f=b===null,g=d?e>>17&32767:(e&131068)>>2,k=!1;g!==0&&(k===!1||f);){var l=a[g+1],r=a[g];if(r===null||b==null||(Array.isArray(r)?r[1]:r)===b||Array.isArray(r)&&typeof b==="string"&&kfa(r,b)>=0)k=!0,a[g+1]=d?l|1:l|2;g=d?l>>17&32767:(l&131068)>>2}k&&(a[c+1]=d?e|2:e|1)},Fna=function(a,b){var c=rg;if(c===b)return-1;for(b=sg=b;b<c&&a.charCodeAt(b)>32;)b++;b=
tg=b;return ug(a,b,c)},Kna=function(a,b){var c=rg;b=sg=ug(a,b,c);if(c===b)return-1;for(var d;b<c&&((d=a.charCodeAt(b))===45||d===95||(d&-33)>=65&&(d&-33)<=90||d>=48&&d<=57);)b++;b=tg=b;b=Gna(a,b,c);d=b=Hna=ug(a,b,c);for(var e=b=-1,f=-1,g=d,k=g;g<c;){var l=a.charCodeAt(g++);if(l===59)break;else l===34||l===39?k=g=Ina(a,l,g,c):d===g-4&&f===85&&e===82&&b===76&&l===40?k=g=Ina(a,41,g,c):l>32&&(k=g);f=e;e=b;b=l&-33}b=Jna=k;return Gna(a,b,c)},ug=function(a,b,c){for(;b<c&&a.charCodeAt(b)<=32;)b++;return b},
Gna=function(a,b,c){b=ug(a,b,c);b<c&&b++;return b},Ina=function(a,b,c,d){for(var e=-1;c<d;){var f=a.charCodeAt(c++);if(f==b&&e!==92)return c;e=f==92&&e===92?0:f}throw Error();},vg=function(a,b,c){Lna(a,b,c,!1);return vg},wg=function(a,b){Lna(a,b,null,!0);return wg},Nna=function(a,b){var c;Jna=Hna=tg=sg=0;rg=b.length;for(c=Kna(b,ug(b,0,rg));c>=0;c=Kna(b,c))Mna(a,b.substring(sg,tg),b.substring(Hna,Jna))},xg=function(a){Ona(Pna,Qna,a,!0)},Qna=function(a,b){var c;Jna=Hna=tg=sg=0;rg=b.length;for(c=Fna(b,
ug(b,0,rg));c>=0;c=Fna(b,c))lfa(a,b.substring(sg,tg),!0)},Lna=function(a,b,c,d){var e=t(),f=rd(),g=Vfa(2);f.firstUpdatePass&&Rna(f,a,g,d);if(b!==Kd&&Ld(e,g,b)){var k=f.data[qd.selectedIndex],l=e[11];b!=null&&b!==""&&(typeof c==="string"?b+=c:typeof b==="object"&&(b=Pc(Ie(b))));Sna(f,k,e,l,a,e[g+1]=b,d,g)}},Ona=function(a,b,c,d){var e=rd(),f=Vfa(2);e.firstUpdatePass&&Rna(e,null,f,d);var g=t();if(c!==Kd&&Ld(g,f,c)){var k=e.data[qd.selectedIndex];if((k.flags&(d?8:16))===0||f>=e.expandoStartIndex){var l=
g[11],r=g[f+1];if(c==null||c==="")a=bd;else{var w=[];c=Ie(c);if(Array.isArray(c))for(b=0;b<c.length;b++)a(w,c[b],!0);else if(typeof c==="object")for(var x in c)c.hasOwnProperty(x)&&a(w,x,c[x]);else typeof c==="string"&&b(w,c);a=w}a=g[f+1]=a;r===Kd&&(r=bd);b=w=0;c=0<r.length?r[0]:null;for(x=0<a.length?a[0]:null;c!==null||x!==null;){var C=w<r.length?r[w+1]:void 0,H=b<a.length?a[b+1]:void 0,J=null,O=void 0;c===x?(w+=2,b+=2,C!==H&&(J=x,O=H)):x===null||c!==null&&c<x?(w+=2,J=c):(b+=2,J=x,O=H);J!==null&&
Sna(e,k,g,l,J,O,d,f);c=w<r.length?r[w]:null;x=b<a.length?a[b]:null}}else f=d?k.classesWithoutHost:k.stylesWithoutHost,f!==null&&(c=Pea(f,c?c:"")),Oe(k,e,g,d?"class":"style",c)}},Rna=function(a,b,c,d){var e=a.data;if(e[c+1]===null){var f=e[qd.selectedIndex];a=c>=a.expandoStartIndex;(f.flags&(d?8:16))!==0&&b===null&&!a&&(b=!1);var g=Wfa(e),k=d?f.residualClasses:f.residualStyles;if(g===null)(d?f.classBindings:f.styleBindings)===0&&(b=Tna(null,e,f,b,d),b=Una(b,f.attrs,d),k=null);else{var l=f.directiveStylingLast;
if(l===-1||e[l]!==g)if(b=Tna(g,e,f,b,d),k===null)g=d?f.classBindings:f.styleBindings,g=(g&131068)>>2!==0?e[g>>17&32767]:void 0,g!==void 0&&Array.isArray(g)&&(g=Tna(null,e,f,g[1],d),g=Una(g,f.attrs,d),e[(d?f.classBindings:f.styleBindings)>>17&32767]=g);else{k=void 0;g=f.directiveEnd;for(l=1+f.directiveStylingLast;l<g;l++)k=Una(k,e[l].hostAttrs,d);k=Una(k,f.attrs,d)}}k!==void 0&&(d?f.residualClasses=k:f.residualStyles=k);g=b;k=d?f.classBindings:f.styleBindings;b=k>>17&32767;k=(k&131068)>>2;e[c]=g;l=
!1;if(Array.isArray(g)){var r=g[1];if(r===null||kfa(g,r)>0)l=!0}else r=g;a?k!==0?(a=e[b+1]>>17&32767,e[c+1]=a<<17|b<<2,a!==0&&(e[a+1]=e[a+1]&-131069|c<<2),e[b+1]=e[b+1]&131071|c<<17):(e[c+1]=b<<17|0,b!==0&&(e[b+1]=e[b+1]&-131069|c<<2),b=c):(e[c+1]=k<<17|0,b===0?b=c:e[k+1]=e[k+1]&-131069|c<<2,k=c);l&&(e[c+1]|=2);Ena(e,r,c,!0);Ena(e,r,c,!1);a=r;g=d?f.residualClasses:f.residualStyles;g!=null&&typeof a=="string"&&kfa(g,a)>=0&&(e[c+1]|=1);k=b<<17|k<<2;d?f.classBindings=k:f.styleBindings=k}},Tna=function(a,
b,c,d,e){var f=c.directiveEnd,g=c.directiveStylingLast;for(g===-1?g=c.directiveStart:g++;g<f;){var k=b[g];d=Una(d,k.hostAttrs,e);if(k===a)break;g++}a!==null&&(c.directiveStylingLast=g);return d},Una=function(a,b,c){var d=c?1:2,e=-1;if(b!==null)for(var f=0;f<b.length;f++){var g=b[f];typeof g==="number"?e=g:e===d&&(Array.isArray(a)||(a=a===void 0?[]:["",a]),lfa(a,g,c?!0:b[++f]))}return a===void 0?null:a},Mna=function(a,b,c){lfa(a,b,Ie(c))},Pna=function(a,b,c){b=String(b);b===""||b.includes(" ")||lfa(a,
b,c)},Sna=function(a,b,c,d,e,f,g,k){if(b.type&3){a=a.data;var l=a[k+1];((l&1)===1?Vna(a,b,c,e,(l&131068)>>2,g):void 0)===void 0&&(f!==void 0||(l&2)==2&&(f=Vna(a,null,c,e,k,g)),b=kd(c[qd.selectedIndex]),g?f?d.addClass(b,e):d.removeClass(b,e):(g=e.indexOf("-")===-1?void 0:2,f==null?d.removeStyle(b,e,g):(typeof f==="string"&&f.endsWith("!important")&&(f=f.slice(0,-10),g|=1),d.setStyle(b,e,f,g))))}},Vna=function(a,b,c,d,e,f){for(var g=b===null,k=void 0;e>0;){var l=a[e],r=Array.isArray(l),w=r?l[1]:l,x=
w===null,C=c[e+1];C===Kd&&(C=x?bd:void 0);w=x?mfa(C,d):w===d?C:void 0;r&&w===void 0&&(w=mfa(l,d));if(w!==void 0&&(k=w,g))return k;e=a[e+1];e=g?e>>17&32767:(e&131068)>>2}b!==null&&(a=f?b.residualClasses:b.residualStyles,a!=null&&(k=mfa(a,d)));return k},Q=function(a,b){b=b===void 0?"":b;var c=t(),d=rd();a+=27;var e=d.firstCreatePass?Se(d,a,1,b,null):d.data[a];Pe=!0;b=c[11].createText(b);c[a]=b;Pe&&Kia(d,c,b,e);ud(e,!1)},Wna=function(a,b,c,d){d=d===void 0?"":d;return Ld(a,wd(),c)?b+Qc(c)+d:Kd},Xna=function(a,
b,c,d,e,f){f=f===void 0?"":f;a=Md(a,qd.bindingIndex,c,e);Vfa(2);return a?b+Qc(c)+d+Qc(e)+f:Kd},yg=function(a){S("",a);return yg},S=function(a,b,c){var d=t();a=Wna(d,a,b,c);a!==Kd&&Yna(d,a);return S},zg=function(a,b,c,d,e){var f=t();a=Xna(f,a,b,c,d,e);a!==Kd&&Yna(f,a);return zg},Zna=function(a,b,c,d,e,f,g,k,l){var r=t();l=l===void 0?"":l;var w=qd.bindingIndex;var x=Md(r,w,b,d);w=Md(r,w+2,f,k)||x;Vfa(4);a=w?a+Qc(b)+c+Qc(d)+e+Qc(f)+g+Qc(k)+l:Kd;a!==Kd&&Yna(r,a);return Zna},Yna=function(a,b){a[11].setValue(kd(a[qd.selectedIndex]),
b)},Ag=function(a,b,c){df(b)&&typeof b.set==="function"&&(b=b());var d=t(),e=wd();Ld(d,e,b)&&(e=xd(),Eja(e,d,a,b,d[11],c));return Ag},Bg=function(a,b){var c=df(a)&&typeof a.set==="function";c&&a.set(b);return c},Cg=function(a,b){var c=t();kna(rd(),c,c[11],td(),a,b);return Cg},Dg=function(a){return Ld(t(),wd(),a)?Qc(a):Kd},Eg=function(a,b,c){return Wna(t(),a,b,c===void 0?"":c)},Fg=function(a,b,c,d,e){return Xna(t(),a,b,c,d,e===void 0?"":e)},$na=function(a,b,c,d,e,f){var g="",k=t();g=g===void 0?"":
g;var l=qd.bindingIndex,r=Md(k,l,b,d);k=Ld(k,l+2,f)||r;Vfa(3);return k?a+Qc(b)+c+Qc(d)+e+Qc(f)+g:Kd},aoa=function(a,b,c,d,e){a=Wc(a);if(Array.isArray(a))for(var f=0;f<a.length;f++)aoa(a[f],b,c,d,e);else{f=rd();var g=t(),k=td(),l=cd(a)?a:Wc(a.provide),r=Bfa(a),w=k.providerIndexes&1048575,x=k.directiveStart,C=k.providerIndexes>>20;if(cd(a)||!a.multi)d=new Cga(r,e),r=boa(l,b,e?w:w+C,x),r===-1?(r=tga(k,g),pga(r,f,l),coa(f,a,b.length),b.push(l),k.directiveStart++,k.directiveEnd++,e&&(k.providerIndexes+=
1048576),c.push(d),g.push(d)):(c[r]=d,g[r]=d);else{x=boa(l,b,w+C,x);w=boa(l,b,w,w+C);var H=x>=0&&c[x];C=w>=0&&c[w];e&&!C||!e&&!H?(x=tga(k,g),pga(x,f,l),x=c.length,H=new Cga(e?doa:eoa,e),H.multi=[],H.index=x,H.componentProviders=0,d&&!e&&H.componentProviders++,H.multi.push(r),!e&&C&&(c[w].providerFactory=H),coa(f,a,b.length,0),b.push(l),k.directiveStart++,k.directiveEnd++,e&&(k.providerIndexes+=1048576),c.push(H),g.push(H)):(b=c[e?w:x],!e&&d&&b.componentProviders++,b=b.multi.push(r)-1,coa(f,a,x>-1?
x:w,b));!e&&d&&C&&c[w].componentProviders++}}},coa=function(a,b,c,d){var e=cd(b),f=!!b.useClass;if(e||f)if(f=(f?Wc(b.useClass):b).prototype.ngOnDestroy)a=a.destroyHooks||(a.destroyHooks=[]),!e&&b.multi?(b=a.indexOf(c),b===-1?a.push(c,[d,f]):a[b+1].push(d,f)):a.push(c,f)},boa=function(a,b,c,d){for(;c<d;c++)if(b[c]===a)return c;return-1},eoa=function(){return foa(this.multi,[])},doa=function(a,b,c,d,e){var f=this.multi;if(this.providerFactory){var g=this.providerFactory.componentProviders;e=Bga(d,d[1],
this.providerFactory.index,e);d=e.slice(0,g);foa(f,d);for(f=g;f<e.length;f++)d.push(e[f])}else d=[],foa(f,d);return d},foa=function(a,b){for(var c=0;c<a.length;c++)b.push((0,a[c])());return b},Gg=function(a){var b=b===void 0?[]:b;return function(c){c.providersResolver=function(d,e){e=e?e(a):a;var f=rd();f.firstCreatePass&&(d=!!d.template,aoa(b,f.data,f.blueprint,d,!0),aoa(e,f.data,f.blueprint,d,!1))}}},Hg=function(a,b){a=vd()+a;var c=t();return c[a]===Kd?Zga(c,a,b()):c[a]},Ig=function(a,b,c){return goa(t(),
vd(),a,b,c)},Jg=function(a,b,c,d){return hoa(t(),vd(),a,b,c,d)},Kg=function(a,b,c,d,e){return ioa(t(),vd(),a,b,c,d,e)},loa=function(a,b,c,d){var e=joa,f=t(),g=vd()+6,k=Md(f,g,a,b);return Md(f,g+2,c,d)||k?Zga(f,g+4,e(a,b,c,d)):koa(f,g+4)},koa=function(a,b){a=a[b];return a===Kd?void 0:a},goa=function(a,b,c,d,e,f){b+=c;return Ld(a,b,e)?Zga(a,b+1,f?d.call(f,e):d(e)):koa(a,b+1)},hoa=function(a,b,c,d,e,f,g){b+=c;return Md(a,b,e,f)?Zga(a,b+2,g?d.call(g,e,f):d(e,f)):koa(a,b+2)},ioa=function(a,b,c,d,e,f,g,
k){b+=c;c=Md(a,b,e,f);return Ld(a,b+2,g)||c?Zga(a,b+3,k?d.call(k,e,f,g):d(e,f,g)):koa(a,b+3)},T=function(a,b){var c=rd();a+=27;if(c.firstCreatePass){a:{var d=c.pipeRegistry;if(d)for(var e=d.length-1;e>=0;e--){var f=d[e];if(b===f.name){b=f;break a}}b=void 0}c.data[a]=b;if(b.onDestroy){var g;((g=c.destroyHooks)!=null?g:c.destroyHooks=[]).push(a,b.onDestroy)}}else b=c.data[a];g=b.factory||(b.factory=Zc(b.type));b=Tc(Ve);try{var k=mga(!1),l=g();mga(k);Lfa(c,t(),a,l)}finally{Tc(b)}},U=function(a,b,c){a+=
27;var d=t(),e=d[a];return d[1].data[a].pure?goa(d,vd(),b,e.transform,c,e):e.transform(c)},Lg=function(a,b,c,d){a+=27;var e=t(),f=e[a];return e[1].data[a].pure?hoa(e,vd(),b,f.transform,c,d,f):f.transform(c,d)},moa=function(a,b,c,d){a+=27;var e=t(),f=e[a];return e[1].data[a].pure?ioa(e,vd(),b,f.transform,c,0,d,f):f.transform(c,0,d)},noa=function(a,b,c){a=a.\u0275cmp;a.directiveDefs=Jka(b,Kka);a.pipeDefs=Jka(c,gfa)},Mg=function(a,b){return ona(a,b)},qoa=function(a,b){function c(){Jc(d);if(d.value===
ooa)throw new Sc(-950,null);return d.value}var d=Object.create(poa);d.value=a;d.transformFn=b==null?void 0:b.transform;c[Mc]=d;return c},Ng=function(){return new roa},Og=function(a,b){return qoa(a,b)},soa=function(a){function b(){Jc(c);if(c.value===ooa)throw new Sc(952,!1);return c.value}var c=Object.create(poa),d=new roa;c.value=a;b[Mc]=c;b.asReadonly=Ana.bind(b);b.set=function(e){c.equal(c.value,e)||(Nc(c,e),d.emit(e))};b.update=function(e){if(c.value===ooa)throw new Sc(952,!1);b.set(e(c.value))};
b.subscribe=d.subscribe.bind(d);b.destroyRef=d.destroyRef;return b},toa=function(a){return soa(a)},Pg=function(){return Bna(!0,!1)},uoa=function(){return Bna(!1,!1)},voa=function(){return Bna(!0,!1)},woa=function(a){var b=td(),c=t();b.componentOffset>-1&&(a&16)!==16?(a=md(b.index,c),a=new Qg(a,a)):a=b.type&175?new Qg(c[15],c):null;return a},xoa=function(a,b,c){a=a.previousIndex;if(a===null)return a;var d=0;c&&a<c.length&&(d=c[a]);return a+b+d},Boa=function(a){var b=a.ngZoneFactory;var c=a.scheduleInRootZone;
b!=null||(b=function(){return new Rg(Object.assign({},yoa(),{scheduleInRootZone:c}))});return[{provide:zoa,useValue:!1},{provide:Rg,useFactory:b},{provide:tfa,multi:!0,useFactory:function(){var d=p(Sg,{optional:!0});return function(){return d.initialize()}}},{provide:tfa,multi:!0,useFactory:function(){var d=p(Tg);return function(){d.initialize()}}},{provide:Aoa,useValue:c!=null?c:!1}]},Doa=function(){return{"\u0275providers":[{provide:Coa,useValue:!0},Boa({ngZoneFactory:function(){var a=yoa();a.scheduleInRootZone=
void 0;a.shouldCoalesceEventChangeDetection&&xe("NgZone_CoalesceEvent");return new Rg(a)},scheduleInRootZone:void 0})]}},yoa=function(a){var b,c;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:(b=a==null?void 0:a.eventCoalescing)!=null?b:!1,shouldCoalesceRunChangeDetection:(c=a==null?void 0:a.runCoalescing)!=null?c:!1}},Koa=function(a){var b=a.moduleRef?a.moduleRef.injector:a.r3Injector,c=b.get(Rg);return c.run(function(){a.moduleRef?a.moduleRef.resolveInjectorInitializers():a.r3Injector.resolveInjectorInitializers();
var d=b.get(Re),e;c.runOutsideAngular(function(){e=c.onError.subscribe({next:d})});if(a.moduleRef){var f=function(){return a.moduleRef.destroy()},g=a.platformInjector.get(Eoa);g.add(f);a.moduleRef.onDestroy(function(){Gla(a.allPlatformModules,a.moduleRef);e.unsubscribe();g.delete(f)})}else{var k=function(){return b.destroy()},l=a.platformInjector.get(Eoa);l.add(k);b.onDestroy(function(){e.unsubscribe();l.delete(k)})}return Foa(d,c,function(){var r=b.get(Ug),w=r.add(),x=b.get(Vg);Goa(x);return x.donePromise.then(function(){var C=
b.get(Hoa,"en-US")||"en-US";typeof C==="string"&&(Sma=C.toLowerCase().replace(/_/g,"-"));if(!b.get(Ioa,!0)){if(!a.moduleRef)return b.get(Wg);a.allPlatformModules.push(a.moduleRef);return a.moduleRef}if(!a.moduleRef)return C=b.get(Wg),a.rootComponent!==void 0&&C.bootstrap(a.rootComponent),C;var H;(H=Joa)==null||H(a.moduleRef,a.allPlatformModules);return a.moduleRef}).finally(function(){return void r.remove(w)})})})},Loa=function(a,b){var c=a.injector.get(Wg);if(a._bootstrapComponents.length>0)a._bootstrapComponents.forEach(function(d){return c.bootstrap(d)});
else if(a.instance.ngDoBootstrap)a.instance.ngDoBootstrap(c);else throw new Sc(-403,!1);b.push(a)},Foa=function(a,b,c){try{var d=c();return Mka(d)?d.catch(function(e){b.runOutsideAngular(function(){return a(e)});throw e;}):d}catch(e){throw b.runOutsideAngular(function(){return a(e)}),e;}},Qoa=function(a,b,c){c=c===void 0?[]:c;var d="Platform: "+b,e=new dd(d);return function(f){f=f===void 0?[]:f;if(!Moa()&&(f=[].concat(q(c),q(f),[{provide:e,useValue:!0}]),(a==null?void 0:a(f))==null)){f=Noa(f,d);if(Moa())throw new Sc(400,
!1);Ela();Ooa=f;f.get(Xg);Poa(f)}f=Moa();if(!f)throw new Sc(-401,!1);return f}},Noa=function(a,b){a=a===void 0?[]:a;return Yg({name:b,providers:[{provide:Roa,useValue:"platform"},{provide:Eoa,useValue:new Set([function(){return Ooa=null}])}].concat(q(a))})},Moa=function(){var a,b;return(b=(a=Ooa)==null?void 0:a.get(Xg))!=null?b:null},Poa=function(a){var b=a.get(Soa,null);gd(a,function(){b==null||b.forEach(function(c){return c()})})},Zg=function(a,b){return Jea(a,b==null?void 0:b.equal)},Voa=function(a,
b){if(typeof a==="function")return a=Oea(a,Toa,b==null?void 0:b.equal),Uoa(a);a=Oea(a.source,a.computation,a.equal);return Uoa(a)},Uoa=function(a){var b=a[Mc];a.set=function(c){Cea(b);Nc(b,c);b.dirty=!1;b.lastCleanEpoch=Aea};a.update=function(c){Cea(b);Eea()||Lea();Nc(b,c(b.value));b.dirty=!1;b.lastCleanEpoch=Aea};a.asReadonly=Ana.bind(a);return a},Woa=function(a){switch(a.status){case "loading":return a.extRequest.reload===0?"loading":"reloading";case "resolved":return a.stream().error===void 0?
"resolved":"error";default:return a.status}},$g=function(a){return typeof a==="boolean"?a:a!=null&&a!=="false"},ah=function(a,b){b=b===void 0?NaN:b;return isNaN(parseFloat(a))||isNaN(Number(a))?b:Number(a)},Yoa=function(a){var b=p(ye),c=b.get(Ze),d=b.get(ze),e=b.get(Be,null,{optional:!0});d.impl!=null||(d.impl=b.get(Ae));var f=a;typeof f==="function"&&(f={mixedReadWrite:a});a=b.get(sia,null,{optional:!0});b=new Xoa(d.impl,[f.earlyRead,f.write,f.mixedReadWrite,f.read],a==null?void 0:a.view,c,b,e==
null?void 0:e.snapshot(null));d.impl.register(b)},Zoa=function(a,b){a=a[ad]||null;var c=b.elementInjector||yfa();return(new bh(a)).create(c,b.projectableNodes,b.hostElement,b.environmentInjector,b.directives,b.bindings)},$oa=function(a){var b=a[ad]||null;if(!b)return null;var c=new bh(b);return{get selector(){return c.selector},get type(){return c.componentType},get inputs(){return c.inputs},get outputs(){return c.outputs},get ngContentSelectors(){return c.ngContentSelectors},get isStandalone(){return b.standalone},
get isSignal(){return b.signals}}},apa=function(a){if(a&&!a.createEmbeddedView)throw new Sc(2020,!1);},bpa=function(a,b,c){a=Wf(a);b=ch([a[1],a[2]],b);return ch(b,c)},cpa=function(a,b,c){a=Wf(a);b=ch([a[3],a[4]],b);return ch(b,c)},dpa=function(a,b,c){a=Wf(a);b=ch([a[5],a[6]],b);return ch(b,c)},epa=function(a,b){a=Wf(a)[7];return ch(a,b)},fpa=function(a,b){a=Wf(a);return ch(a[10],b)},gpa=function(a,b){a=Wf(a);return ch(a[11],b)},hpa=function(a,b){a=Wf(a)[12];return ch(a,b)},eh=function(a,b){a=Wf(a);
var c=a[13][b];if(typeof c==="undefined"){if(b===12)return a[13][0];if(b===13)return a[13][1]}return c},jpa=function(a){a=Wf(a);if(!a[21])throw new Sc(2303,!1);return(a[21][2]||[]).map(function(b){return typeof b==="string"?ipa(b):[ipa(b[0]),ipa(b[1])]})},kpa=function(a,b,c){a=Wf(a);if(!a[21])throw new Sc(2303,!1);b=ch([a[21][0],a[21][1]],b)||[];return ch(b,c)||[]},ch=function(a,b){for(;b>-1;b--)if(typeof a[b]!=="undefined")return a[b];throw new Sc(2304,!1);},ipa=function(a){var b=m(a.split(":"));
a=b.next().value;b=b.next().value;return{hours:+a,minutes:+b}},fh=function(){return new Sc(2100,!1)},tpa=function(a,b,c,d){var e=lpa(a);b=gh(c,b)||b;a=[];for(var f;b;)if(f=mpa.exec(b)){if(a=a.concat(f.slice(1)),b=a.pop(),!b)break}else{a.push(b);break}var g=e.getTimezoneOffset();d&&(g=npa(d,g),e=opa(e,d));var k="";a.forEach(function(l){a:if(ppa[l])var r=ppa[l];else{switch(l){case "G":case "GG":case "GGG":r=hh(3,1);break;case "GGGG":r=hh(3,2);break;case "GGGGG":r=hh(3,0);break;case "y":r=ih(0,1,0,!1,
!0);break;case "yy":r=ih(0,2,0,!0,!0);break;case "yyy":r=ih(0,3,0,!1,!0);break;case "yyyy":r=ih(0,4,0,!1,!0);break;case "Y":r=qpa(1);break;case "YY":r=qpa(2,!0);break;case "YYY":r=qpa(3);break;case "YYYY":r=qpa(4);break;case "M":case "L":r=ih(1,1,1);break;case "MM":case "LL":r=ih(1,2,1);break;case "MMM":r=hh(2,1);break;case "MMMM":r=hh(2,2);break;case "MMMMM":r=hh(2,0);break;case "LLL":r=hh(2,1,1);break;case "LLLL":r=hh(2,2,1);break;case "LLLLL":r=hh(2,0,1);break;case "w":r=rpa(1);break;case "ww":r=
rpa(2);break;case "W":r=rpa(1,!0);break;case "d":r=ih(2,1);break;case "dd":r=ih(2,2);break;case "c":case "cc":r=ih(7,1);break;case "ccc":r=hh(1,1,1);break;case "cccc":r=hh(1,2,1);break;case "ccccc":r=hh(1,0,1);break;case "cccccc":r=hh(1,3,1);break;case "E":case "EE":case "EEE":r=hh(1,1);break;case "EEEE":r=hh(1,2);break;case "EEEEE":r=hh(1,0);break;case "EEEEEE":r=hh(1,3);break;case "a":case "aa":case "aaa":r=hh(0,1);break;case "aaaa":r=hh(0,2);break;case "aaaaa":r=hh(0,0);break;case "b":case "bb":case "bbb":r=
hh(0,1,1,!0);break;case "bbbb":r=hh(0,2,1,!0);break;case "bbbbb":r=hh(0,0,1,!0);break;case "B":case "BB":case "BBB":r=hh(0,1,0,!0);break;case "BBBB":r=hh(0,2,0,!0);break;case "BBBBB":r=hh(0,0,0,!0);break;case "h":r=ih(3,1,-12);break;case "hh":r=ih(3,2,-12);break;case "H":r=ih(3,1);break;case "HH":r=ih(3,2);break;case "m":r=ih(4,1);break;case "mm":r=ih(4,2);break;case "s":r=ih(5,1);break;case "ss":r=ih(5,2);break;case "S":r=ih(6,1);break;case "SS":r=ih(6,2);break;case "SSS":r=ih(6,3);break;case "Z":case "ZZ":case "ZZZ":r=
spa(0);break;case "ZZZZZ":r=spa(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":r=spa(1);break;case "OOOO":case "ZZZZ":case "zzzz":r=spa(2);break;default:r=null;break a}ppa[l]=r}k+=r?r(e,c,g):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return k},upa=function(a,b,c){var d=new Date(0);d.setFullYear(a,b,c);d.setHours(0,0,0);return d},gh=function(a,b){var c=Wf(a)[0];vpa[c]!=null||(vpa[c]={});if(vpa[c][b])return vpa[c][b];var d="";switch(b){case "shortDate":d=fpa(a,
0);break;case "mediumDate":d=fpa(a,1);break;case "longDate":d=fpa(a,2);break;case "fullDate":d=fpa(a,3);break;case "shortTime":d=gpa(a,0);break;case "mediumTime":d=gpa(a,1);break;case "longTime":d=gpa(a,2);break;case "fullTime":d=gpa(a,3);break;case "short":d=gh(a,"shortTime");var e=gh(a,"shortDate");d=wpa(hpa(a,0),[d,e]);break;case "medium":d=gh(a,"mediumTime");e=gh(a,"mediumDate");d=wpa(hpa(a,1),[d,e]);break;case "long":d=gh(a,"longTime");e=gh(a,"longDate");d=wpa(hpa(a,2),[d,e]);break;case "full":d=
gh(a,"fullTime"),e=gh(a,"fullDate"),d=wpa(hpa(a,3),[d,e])}d&&(vpa[c][b]=d);return d},wpa=function(a,b){b&&(a=a.replace(/\{([^}]+)}/g,function(c,d){return b!=null&&d in b?b[d]:c}));return a},jh=function(a,b,c,d,e){var f="";if(a<0||e&&a<=0)e?a=-a+1:(a=-a,f=c===void 0?"-":c);for(a=String(a);a.length<b;)a="0"+a;d&&(a=a.slice(a.length-b));return f+a},ih=function(a,b,c,d,e){c=c===void 0?0:c;d=d===void 0?!1:d;e=e===void 0?!1:e;return function(f,g){f=xpa(a,f);if(c>0||f>-c)f+=c;if(a===3)f===0&&c===-12&&(f=
12);else if(a===6)return jh(f,3).substring(0,b);g=eh(g,5);return jh(f,b,g,d,e)}},xpa=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 new Sc(2301,!1);}},hh=function(a,b,c,d){c=c===void 0?0:c;d=d===void 0?!1:d;return function(e,f){return ypa(e,f,a,b,c,d)}},ypa=function(a,b,c,d,e,f){switch(c){case 2:return dpa(b,
e,d)[a.getMonth()];case 1:return cpa(b,e,d)[a.getDay()];case 0:var g=a.getHours(),k=a.getMinutes();return f&&(c=jpa(b),a=kpa(b,e,d),c=c.findIndex(function(l){if(Array.isArray(l)){var r=m(l);l=r.next().value;r=r.next().value;var w=g>=l.hours&&k>=l.minutes,x=g<r.hours||g===r.hours&&k<r.minutes;if(l.hours<r.hours){if(w&&x)return!0}else if(w||x)return!0}else if(l.hours===g&&l.minutes===k)return!0;return!1}),c!==-1)?a[c]:bpa(b,e,d)[g<12?0:1];case 3:return epa(b,d)[a.getFullYear()<=0?0:1];default:throw new Sc(2302,
!1);}},spa=function(a){return function(b,c,d){b=-1*d;c=eh(c,5);var e=b>0?Math.floor(b/60):Math.ceil(b/60);switch(a){case 0:return(b>=0?"+":"")+jh(e,2,c)+jh(Math.abs(b%60),2,c);case 1:return"GMT"+(b>=0?"+":"")+jh(e,1,c);case 2:return"GMT"+(b>=0?"+":"")+jh(e,2,c)+":"+jh(Math.abs(b%60),2,c);case 3:return d===0?"Z":(b>=0?"+":"")+jh(e,2,c)+":"+jh(Math.abs(b%60),2,c);default:throw new Sc(2310,!1);}}},zpa=function(a){var b=a.getDay();b=b===0?-3:4-b;return upa(a.getFullYear(),a.getMonth(),a.getDate()+b)},
rpa=function(a,b){b=b===void 0?!1:b;return function(c,d){if(b){var e=(new Date(c.getFullYear(),c.getMonth(),1)).getDay()-1;c=1+Math.floor((c.getDate()+e)/7)}else{c=zpa(c);e=c.getFullYear();var f=upa(e,0,1).getDay();e=upa(e,0,1+(f<=4?4:11)-f);c=1+Math.round((c.getTime()-e.getTime())/6048E5)}return jh(c,a,eh(d,5))}},qpa=function(a,b){b=b===void 0?!1:b;return function(c,d){c=zpa(c).getFullYear();return jh(c,a,eh(d,5),b)}},npa=function(a,b){a=a.replace(/:/g,"");a=Date.parse("Jan 01, 1970 00:00:00 "+a)/
6E4;return isNaN(a)?b:a},opa=function(a,b){var c=a.getTimezoneOffset();b=npa(b,c);a=new Date(a.getTime());a.setMinutes(a.getMinutes()+-1*(b-c));return a},lpa=function(a){if(a instanceof Date&&!isNaN(a.valueOf()))return a;if(typeof a==="number"&&!isNaN(a))return new Date(a);if(typeof a==="string"){a=a.trim();if(/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(a)){var b=m(a.split("-").map(function(d){return+d}));a=b.next().value;var c=b.next().value;c=c===void 0?1:c;b=b.next().value;return upa(a,c-1,b===void 0?
1:b)}b=parseFloat(a);if(!isNaN(a-b))return new Date(b);if(b=a.match(Apa))return Bpa(b)}a=new Date(a);if(!(a instanceof Date)||isNaN(a.valueOf()))throw new Sc(2311,!1);return a},Bpa=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(parseFloat("0."+(a[7]||0))*1E3));return b},
Cpa=function(a,b){a=a.key;b=b.key;if(a===b)return 0;if(a==null)return 1;if(b==null)return-1;if(typeof a=="string"&&typeof b=="string")return a<b?-1:1;if(typeof a=="number"&&typeof b=="number")return a-b;if(typeof a=="boolean"&&typeof b=="boolean")return a<b?-1:1;a=String(a);b=String(b);return a==b?0:a<b?-1:1},Ipa=function(a,b,c,d){var e=e===void 0?!1:e;var f="",g=!1;if(isFinite(a)){g=Dpa(a);e&&(g=Epa(g));f=b.minInt;e=b.minFrac;var k=b.maxFrac;if(d){var l=d.match(Fpa);if(l===null)throw new Sc(2306,
!1);d=l[1];var r=l[3];l=l[5];d!=null&&(f=Gpa(d));r!=null&&(e=Gpa(r));l!=null?k=Gpa(l):r!=null&&e>k&&(k=e)}Hpa(g,e,k);e=g.digits;r=g.integerLen;k=g.exponent;d=[];for(g=e.every(function(w){return!w});r<f;r++)e.unshift(0);for(;r<0;r++)e.unshift(0);r>0?d=e.splice(r,e.length):(d=e,e=[0]);f=[];for(e.length>=b.lgSize&&f.unshift(e.splice(-b.lgSize,e.length).join(""));e.length>b.gSize;)f.unshift(e.splice(-b.gSize,e.length).join(""));e.length&&f.unshift(e.join(""));f=f.join(eh(c,1));d.length&&(f+=eh(c,0)+d.join(""));
k&&(f+=eh(c,6)+"+"+k)}else f=eh(c,9);return f=a<0&&!g?b.negPre+f+b.negSuf:b.posPre+f+b.posSuf},Epa=function(a){if(a.digits[0]===0)return a;var b=a.digits.length-a.integerLen;a.exponent?a.exponent+=2:(b===0?a.digits.push(0,0):b===1&&a.digits.push(0),a.integerLen+=2);return a},Dpa=function(a){a=Math.abs(a)+"";var b=0,c,d,e,f;(c=a.indexOf("."))>-1&&(a=a.replace(".",""));(d=a.search(/e/i))>0?(c<0&&(c=d),c+=+a.slice(d+1),a=a.substring(0,d)):c<0&&(c=a.length);for(d=0;a.charAt(d)==="0";d++);if(d===(f=a.length)){var g=
[0];c=1}else{for(f--;a.charAt(f)==="0";)f--;c-=d;g=[];for(e=0;d<=f;d++,e++)g[e]=Number(a.charAt(d))}c>22&&(g=g.splice(0,21),b=c-1,c=1);return{digits:g,exponent:b,integerLen:c}},Hpa=function(a,b,c){if(b>c)throw new Sc(2307,!1);var d=a.digits,e=d.length-a.integerLen;c=Math.min(Math.max(b,e),c);var f=c+a.integerLen,g=d[f];if(f>0){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(g>=5)if(f-
1<0){for(g=0;g>f;g--)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 l=c!==0,r=b+a.integerLen;if(b=d.reduceRight(function(w,x,C,H){x+=w;H[C]=x<10?x:x-10;l&&(H[C]===0&&C>=r?H.pop():l=!1);return x>=10?1:0},0))d.unshift(b),a.integerLen++},Gpa=function(a){a=parseInt(a);if(isNaN(a))throw new Sc(2305,!1);return a},Jpa=function(a,b){return a?b?a.endsWith("/")?b.startsWith("/")?a+b.slice(1):a+b:b.startsWith("/")?a+b:a+"/"+b:a:b},Kpa=function(a){var b=
a.search(/#|\?|$/);return a[b-1]==="/"?a.slice(0,b-1)+a.slice(b):a},kh=function(a){return a&&a[0]!=="?"?"?"+a:a},Lpa=function(a){return RegExp("^(https?:)?//").test(a)?(a=m(a.split(/\/\/[^\/]+/)),a.next(),a.next().value):a},Mpa=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next())b.value.remove()},Npa=function(a,b){b=b.createElement("style");b.textContent=a;return b},Opa=function(a,b){b=b.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("href",a);return b},Qpa=function(a,
b){return b.map(function(c){return c.replace(Ppa,a)})},Rpa=function(a){var b=new Map;a.length>0&&a.replace(/^\?/,"").split("&").forEach(function(c){var d=c.indexOf("=");d=m(d==-1?[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},Upa=function(a){return encodeURIComponent(a).replace(Spa,function(b,c){var d;return(d=Tpa[c])!=null?d:b})},Vpa=function(a){return""+a},Wpa=function(a){return typeof ArrayBuffer!==
"undefined"&&a instanceof ArrayBuffer},Xpa=function(a){return typeof Blob!=="undefined"&&a instanceof Blob},Ypa=function(a){return typeof FormData!=="undefined"&&a instanceof FormData},Zpa=function(a,b){return b(a)},$pa=function(a,b){return function(c,d){return b.intercept(c,{handle:function(e){return a(e,d)}})}},aqa=function(a,b,c){return function(d,e){return gd(c,function(){return b(d,function(f){return a(f,e)})})}},bqa=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,credentials:a.credentials,transferCache:a.transferCache,timeout:a.timeout,keepalive:a.keepalive,priority:a.priority,cache:a.cache,mode:a.mode,redirect:a.redirect,integrity:a.integrity,referrer:a.referrer,referrerPolicy:a.referrerPolicy}},eqa=function(a,b){var c=a.url.toLowerCase();if(!p(cqa)||a.method==="GET"||a.method==="HEAD"||c.startsWith("http://")||c.startsWith("https://"))return b(a);
c=p(lh).getToken();var d=p(dqa);c==null||a.headers.has(d)||(a=a.clone({headers:a.headers.set(d,c)}));return b(a)},gqa=function(a){return function(b,c){var d,e=(d=c==null?void 0:c.injector)!=null?d:p(ye);return new fqa(e,function(){var f=typeof b==="function"?b():b;if(f!==void 0){typeof f==="string"&&(f={url:f});var g=f.headers instanceof mh?f.headers:new mh(f.headers),k=f.params instanceof nh?f.params:new nh({fromObject:f.params}),l,r;var w=new oh((l=f.method)!=null?l:"GET",f.url,(r=f.body)!=null?
r:null,{headers:g,params:k,reportProgress:f.reportProgress,withCredentials:f.withCredentials,keepalive:f.keepalive,cache:f.cache,priority:f.priority,mode:f.mode,redirect:f.redirect,responseType:a,context:f.context,transferCache:f.transferCache,credentials:f.credentials,referrer:f.referrer,referrerPolicy:f.referrerPolicy,integrity:f.integrity,timeout:f.timeout})}else w=void 0;return w},c==null?void 0:c.defaultValue,c==null?void 0:c.parse,c==null?void 0:c.equal)}},hqa=function(a){return Object.isFrozen(a)&&
Object.isFrozen(a.raw)},iqa=function(a){return a.toString().indexOf("`")===-1},kqa=function(){var a=null;if(!jqa)return a;try{var b=function(c){return c};a=jqa.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a},mqa=function(){lqa===void 0&&(lqa=kqa());return lqa},qh=function(a){var b=mqa();a=b?b.createHTML(a):a;return new ph(a)},rh=function(a){return a instanceof ph},sh=function(a){if(rh(a))return a.privateDoNotAccessOrElseWrappedHtml;throw Error("na");},
th=function(a){return document.createRange().createContextualFragment(sh(qh(a[0])))},vh=function(a){var b=mqa();a=b?b.createScriptURL(a):a;return new uh(a)},wh=function(a){if(a instanceof uh)return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("na");},yh=function(a){return a instanceof xh},nqa=function(a){if(yh(a))return a.privateDoNotAccessOrElseWrappedUrl;throw Error("na");},pqa=function(a){return new oqa(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})},rqa=function(a,
b){b=b===void 0?qqa:b;if(yh(a))return a;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof oqa&&d.isValid(a))return new xh(a)}},zh=function(a){var b=b===void 0?qqa:b;return rqa(a,b)||sqa},uqa=function(a){if(tqa.test(a))return a},Ah=function(a){return a instanceof xh?nqa(a):uqa(a)},Bh=function(a,b){if(rh(a))return a;a=String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");if(b==null?0:b.preserveSpaces)a=a.replace(/(^|[\r\n\t ]) /g,
"$1&#160;");if(b==null?0:b.preserveNewlines)a=a.replace(/(\r\n|\n|\r)/g,"<br>");if(b==null?0:b.preserveTabs)a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>');return qh(a)},Dh=function(a){return Ch(a)},Ch=function(a){var b=Bh("");return qh(a.map(function(c){return sh(Bh(c))}).join(sh(b).toString()))},xqa=function(a){if(!vqa.test(a))throw Error("na");if(wqa.indexOf(a.toUpperCase())!==-1)throw Error("na");},Eh=function(a,b,c){xqa(a);var d="<"+a;b&&(d+=Dqa(b));Array.isArray(c)||(c=c===void 0?
[]:[c]);Eqa.indexOf(a.toUpperCase())!==-1?d+=">":(b=Dh(c.map(function(e){return rh(e)?e:Bh(String(e))})),d+=">"+b.toString()+"</"+a+">");return qh(d)},Dqa=function(a){for(var b="",c=Object.keys(a),d=0;d<c.length;d++){var e=c[d],f=a[e];if(!vqa.test(e))throw Error("na");if(f!==void 0&&f!==null){if(/^on./i.test(e))throw Error("na");Fqa.indexOf(e.toLowerCase())!==-1&&(f=yh(f)?f.toString():uqa(String(f))||"about:invalid#zClosurez");f=e+'="'+Bh(String(f))+'"';b+=" "+f}}return b},Fh=function(a){var b=$c.apply(1,
arguments);if(b.length===0)return vh(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return vh(c)},Gqa=function(a,b,c,d){function e(g,k){g!=null&&(Array.isArray(g)?g.forEach(function(l){return e(l,k)}):(b+=f+encodeURIComponent(k)+"="+encodeURIComponent(g),f="&"))}var f=b.length?"&":"?";d.constructor===Object&&(d=Object.entries(d));Array.isArray(d)?d.forEach(function(g){return e(g[1],g[0])}):d.forEach(e);return vh(a+b+c)},Iqa=function(){if(Hqa===void 0&&(Hqa=null,typeof window!==
"undefined")){var a=window;a.trustedTypes!==void 0&&(Hqa=a.trustedTypes.createPolicy("angular#components",{createHTML:function(b){return b}}))}return Hqa},Jqa=function(a){var b;return((b=Iqa())==null?void 0:b.createHTML(a))||a},Kqa=function(a){return a.buttons===0||a.detail===0},Lqa=function(a){a=a.touches&&a.touches[0]||a.changedTouches&&a.changedTouches[0];return!!a&&a.identifier===-1&&(a.radiusX==null||a.radiusX===1)&&(a.radiusY==null||a.radiusY===1)},Gh=function(a){var b=$c.apply(1,arguments);
return b.length?b.some(function(c){return a[c]}):a.altKey||a.shiftKey||a.ctrlKey||a.metaKey},Oqa=function(){if(Mqa)return Mqa;if(typeof document!=="object"||!document)return Mqa=new Set(Nqa);var a=document.createElement("input");return Mqa=new Set(Nqa.filter(function(b){a.setAttribute("type",b);return a.type===b}))},Qqa=function(){if(Pqa==null&&typeof window!=="undefined")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Pqa=!0}}))}finally{Pqa=Pqa||
!1}return Pqa},Hh=function(a){return Qqa()?a:!!a.capture},Sqa=function(){if(Rqa==null){if(typeof document!=="object"||!document||typeof Element!=="function"||!Element)return Rqa=!1;var a;Rqa=((a=document.documentElement)==null?0:a.style)&&"scrollBehavior"in document.documentElement.style?!0:(a=Element.prototype.scrollTo)?!/\{\s*\[native code\]\s*\}/.test(a.toString()):!1}return Rqa},Uqa=function(){if(typeof document!=="object"||!document)return 0;if(Tqa==null){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);Tqa=0;a.scrollLeft===0&&(a.scrollLeft=1,Tqa=a.scrollLeft===0?1:2);a.remove()}return Tqa},Wqa=function(a){if(Vqa==null){var b=typeof document!=="undefined"?document.head:null;Vqa=!(!b||!b.createShadowRoot&&!b.attachShadow)}return Vqa&&(a=a.getRootNode?a.getRootNode():
null,typeof ShadowRoot!=="undefined"&&ShadowRoot&&a instanceof ShadowRoot)?a:null},Ih=function(){for(var a=typeof document!=="undefined"&&document?document.activeElement:null;a&&a.shadowRoot;){var b=a.shadowRoot.activeElement;if(b===a)break;else a=b}return a},Jh=function(a){return a.composedPath?a.composedPath()[0]:a.target},Xqa=function(){return typeof __karma__!=="undefined"&&!!__karma__||typeof jasmine!=="undefined"&&!!jasmine||typeof jest!=="undefined"&&!!jest||typeof Mocha!=="undefined"&&!!Mocha},
Kh=function(a){return Array.isArray(a)?a:[a]},Lh=function(a){return a!=null&&""+a!=="false"},Mh=function(a){return a==null?"":typeof a==="string"?a:a+"px"},Nh=function(a){return a instanceof Hd?a.nativeElement:a},Oh=function(a,b){return isNaN(parseFloat(a))||isNaN(Number(a))?arguments.length===2?b===void 0?0:b:0:Number(a)},Yqa=function(a){if(!a.hasAttribute("tabindex")||a.tabIndex===void 0)return!1;a=a.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))},Zqa=function(a){if(!Yqa(a))return null;
a=parseInt(a.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a},$qa=function(a){return{matches:a==="all"||a==="",media:a,addListener:function(){},removeListener:function(){}}},ara=function(a){return a.map(function(b){return b.split(",")}).reduce(function(b,c){return b.concat(c)}).map(function(b){return b.trim()})},bra=function(a){if(a.type==="characterData"&&a.target instanceof Comment)return!0;if(a.type==="childList"){for(var b=0;b<a.addedNodes.length;b++)if(!(a.addedNodes[b]instanceof Comment))return!1;
for(b=0;b<a.removedNodes.length;b++)if(!(a.removedNodes[b]instanceof Comment))return!1;return!0}return!1},dra=function(a,b,c){var d=cra(a,b);c=c.trim();d.some(function(e){return e.trim()===c})||(d.push(c),a.setAttribute(b,d.join(" ")))},Ph=function(a,b,c){var d=cra(a,b);c=c.trim();d=d.filter(function(e){return e!==c});d.length?a.setAttribute(b,d.join(" ")):a.removeAttribute(b)},cra=function(a,b){var c,d;return(d=(c=a.getAttribute(b))==null?void 0:c.match(/\S+/g))!=null?d:[]},era=function(a,b){return typeof a===
"string"?(b||"")+"/"+a:a},gra=function(a,b){a.id||(a.id="cdk-describedby-message-"+b+"-"+fra++)},hra=function(a){return we(a)?a:ce(a)},ira=function(a,b){for(var c=typeof ShadowRoot!=="undefined"&&ShadowRoot;b;){if(b===a)return!0;b=c&&b instanceof ShadowRoot?b.host:b.parentNode}return!1},jra=function(a){return a&&typeof a.connect==="function"&&!(a instanceof sf)},kra=function(a,b){return a.start==b.start&&a.end==b.end},mra=function(a){return new lra(a.get(Qh),a.get(Rh))},nra=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})},ora=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})},Th=function(a,b){return new pra(a.get(Sh),a.get(Qh),a.get(Rg),b)},Xh=function(a,b){return new Uh(b,a.get(Qh),a.get(Rh),a.get(Vh),a.get(Wh))},Yh=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},rra=function(a){if(typeof a!=="number"&&a!=null){var b=m(a.split(qra));a=b.next().value;
return(b=b.next().value)&&b!=="px"?null:parseFloat(a)}return a||null},sra=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){a.get(Zh).load($h);var c=a.get(Wh),d=a.get(Rh),e=a.get(ai),f=a.get(Wg),g=a.get(bi),k=a.get(ci,null,{optional:!0})||a.get(Ye).createRenderer(null,null),l=new di(b);l.direction=l.direction||g.value;l.usePopover=!(l==null||!l.usePopover)&&
"showPopover"in d.body;g=d.createElement("div");var r=d.createElement("div");g.id=e.getId("cdk-overlay-");g.classList.add("cdk-overlay-pane");r.appendChild(g);l.usePopover&&(r.setAttribute("popover","manual"),r.classList.add("cdk-overlay-popover"));var w;l.usePopover&&((w=l.positionStrategy)==null?0:w.getPopoverInsertionPoint)?l.positionStrategy.getPopoverInsertionPoint().after(r):tra(c).appendChild(r);var x;return new ei(new fi(g,f,a),r,g,l,a.get(Rg),a.get(gi),d,a.get(hi),a.get(ii),(x=b==null?void 0:
b.disableAnimations)!=null?x:a.get(ji,null,{optional:!0})==="NoopAnimations",a.get(Xe),k)},wra=function(){var a;if(((a=p(ura,{optional:!0}))==null?0:a.animationsDisabled)||p(ji,{optional:!0})==="NoopAnimations")return"di-disabled";vra!=null||(vra=p(li).matchMedia("(prefers-reduced-motion)").matches);return vra?"reduced-motion":"enabled"},mi=function(){return wra()!=="enabled"},xra=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)},yra=function(a){a&1&&M(0,"mat-pseudo-checkbox",1);a&2&&(a=P(),I("disabled",a.disabled)("state",a.selected?"checked":"unchecked"))},zra=function(a){a&1&&M(0,"mat-pseudo-checkbox",3);a&2&&(a=P(),I("disabled",a.disabled))},Ara=function(a){a&1&&(K(0,"span",4),Q(1),L());a&2&&(a=P(),B(),S("(",a.group.label,")"))},Bra=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},Cra=function(a,b,c,d){return a<
c?a:a+b>c+d?Math.max(0,a-d+b):c},Dra=function(a,b){b=Ah(b);b!==void 0&&(a.href=b)},Era=function(a,b){a.src=wh(b).toString()},ni=function(a,b,c,d){b=Ah(b);return b!==void 0?a.open(b,c,d):null},Fra=function(a){a=a===void 0?document:a;var b,c;a=(c=(b=a).querySelector)==null?void 0:c.call(b,"script[nonce]");return a==null?"":a.nonce||a.getAttribute("nonce")||""},oi=function(a,b){a.src=wh(b);(b=Fra(a.ownerDocument))&&a.setAttribute("nonce",b)},Gra=function(a,b){if(a.nodeType===1&&/^(script|style)$/i.test(a.tagName))throw Error("na");
a.innerHTML=sh(b)},Ira=function(a,b,c,d){if(a.length===0)throw Error("na");a=a.map(function(f){if(f instanceof Hra)f=f.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("na");return f});var e=c.toLowerCase();if(a.every(function(f){return e.indexOf(f)!==0}))throw Error("Za`"+c);b.setAttribute(c,d)},Jra=function(a){a&1&&M(0,"img",3);a&2&&(a=P(),I("src",a.iconUrl(),Ne))},Kra=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();c.removeContextSource.emit(c.linkUrl());
return v()});K(1,"mat-icon",7);Q(2,"close");L()()}},pi=function(){var a=function(){throw Error();};Object.setPrototypeOf(a,a.prototype);return a},Mra=function(a,b){var c=c===void 0?Lra:c;return new qi(a,b,c)},Qra=function(a,b,c,d,e){b=Nra(b,d);b!=null&&(c=Ora(a,c),e(b,a),Pra(a,c))},Ura=function(a,b,c,d){var e=d[a];if(e)return e;e={};e.binaryFields=d;e.messageMetadata=Mda(d[0]);var f=d[1],g=1;f&&f.constructor===Object&&(e.extensions=f,f=d[++g],typeof f==="function"&&(e.isMessageSet=!0,Rra!=null||(Rra=
f),Sra!=null||(Sra=d[g+1]),f=d[g+=2]));for(var k={};f&&Array.isArray(f)&&f.length&&typeof f[0]==="number"&&f[0]>0;){for(var l=0;l<f.length;l++)k[f[l]]=f;f=d[++g]}for(l=1;f!==void 0;){typeof f==="number"&&(l+=f,f=d[++g]);var r=void 0;if(f instanceof qi)var w=f;else w=Tra,g--;f=void 0;if((f=w)==null?0:f.$$isMsg){f=d[++g];r=d;var x=g;typeof f==="function"&&(f=f(),r[x]=f);r=f}f=d[++g];x=l+1;typeof f==="number"&&f<0&&(x-=f,f=d[++g]);for(;l<x;l++){var C=k[l];r?c(e,l,w,r,C):b(e,l,w,C)}}return d[a]=e},Wra=
function(a){return Array.isArray(a)?a[0]instanceof qi?a:[Vra,a]:[a,void 0]},Nra=function(a,b){if(a instanceof W)return a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(a))return Oda(a,b)},Xra=function(a,b,c,d){var e=c.$$binaryReaderFn;a[b]=d?function(f,g,k){return e(f,g,k,d)}:e},Zra=function(a,b,c,d,e){var f=c.$$binaryReaderFn,g,k;a[b]=function(l,r,w){return f(l,r,w,k||(k=Ura(Yra,Xra,Zra,d).messageMetadata),g||(g=$ra(d)),e)}},$ra=function(a){var b=a[asa];if(b!=null)return b;
var c=Ura(Yra,Xra,Zra,a);b=c.isMessageSet?function(d,e){return Rra(d,e,c)}:function(d,e){for(;bsa(e)&&e.nextWireType_!=4;){var f=e.nextField_,g=c[f];if(g==null){var k=c.extensions;k&&(k=k[f])&&(k=csa(k),k!=null&&(g=c[f]=k))}if(g==null||!g(e,d,f)){k=e;g=k.fieldCursor_;dsa(k);if(k.discardUnknownFields)var l=void 0;else{var r=k.decoder_.getCursor()-g;k.decoder_.cursor_=g;l=k.decoder_.readByteString(r)}r=k=g=void 0;var w=d;l&&((g=(k=(r=w[bc])!=null?r:w[bc]=new Ada)[f])!=null?g:k[f]=[]).push(l)}}if(d=
pda(d))d.reviveUnknownFields=c.binaryFields[esa];return!0};a[asa]=b;a[esa]=fsa.bind(a);return b},fsa=function(a,b,c,d){var e=this[Yra],f=this[asa],g=Oda(void 0,e.messageMetadata),k=pda(a);if(k){var l=!1,r=e.extensions;if(r){e=function(J,O,R){if(R.length!==0)if(r[O])for(J=m(R),O=J.next();!O.done;O=J.next()){O=gsa(O.value);try{l=!0,f(g,O)}finally{O.free()}}else d==null||d(a,O,R)};if(b==null)yda(k,e);else if(k!=null){var w=k[b];w&&e(k,b,w)}if(l){var x=a[Ta]|0;if(x&2&&x&2048&&(c==null||!c.reviveIntoImmutable))throw Error();
var C=kb(x),H=function(J,O){if(tc(a,J,C)!=null)switch(c==null?void 0:c.resolutionBehavior){case 1:return;default:throw Error();}O!=null&&(x=mc(a,x,J,O,C));delete k[J]};b==null?aca(g,g[Ta]|0,function(J,O){H(J,O)}):H(b,tc(g,b,C))}}}},csa=function(a){a=Wra(a);var b=a[0].$$binaryReaderFn;if(a=a[1]){var c=$ra(a),d=Ura(Yra,Xra,Zra,a).messageMetadata;return function(e,f,g){return b(e,f,g,d,c)}}return b},ksa=function(a){return Ura(hsa,isa,jsa,a)},isa=function(a,b,c){a[b]=c.$$binaryWriterFn},jsa=function(a,
b,c,d){var e,f,g=c.$$binaryWriterFn;a[b]=function(k,l,r){return g(k,l,r,f||(f=ksa(d).messageMetadata),e||(e=lsa(d)))}},lsa=function(a){var b=a[msa];if(!b){var c=ksa(a);b=function(d,e){return nsa(d,e,c)};a[msa]=b}return b},nsa=function(a,b,c){aca(a,a[Ta]|0,function(d,e){if(e!=null){var f=osa(c,d);f?f(b,e,d):d<500||tb(psa,3)}});(a=pda(a))&&yda(a,function(d,e,f){ri(b,b.encoder_.end());for(d=0;d<f.length;d++)ri(b,ec(f[d])||new Uint8Array(0))})},osa=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=
c[b]){c=Wra(c);var d=c[0].$$binaryWriterFn;if(c=c[1]){var e=lsa(c),f=ksa(c).messageMetadata;c=a.isMessageSet?Sra(f,e):function(g,k,l){return d(g,k,l,f,e)}}else c=d;return a[b]=c}},si=function(a,b,c){return new qi(a,b,c)},ti=function(a,b,c){mc(a,a[Ta]|0,b,c,kb(a[Ta]|0))},qsa=function(a,b,c){a.writeInt64(c,Pca(b))},rsa=function(a,b,c){a.writeBool(c,zb(b))},tsa=function(a,b,c){b=Tb(b);b!=null&&ssa(a,c,Waa(b,!1))},usa=function(a,b,c,d,e){b=Nra(b,d);b!=null&&(c=Ora(a,c),e(b,a),Pra(a,c))},vsa=function(a,
b,c){b=b==null||typeof b=="string"||b instanceof Za?b:void 0;a.writeBytes(c,b)},wsa=function(a,b,c){if(a.nextWireType_!==2)return!1;a=a.readByteString();ti(b,c,a===Ya()?void 0:a);return!0},xsa=function(a){a!=null&&(a=a.value_||"",a=typeof a==="string"?a:new Uint8Array(a));return a},zsa=function(a,b,c,d){c==null||b==null&&(b=c.internalDoNotUse_ctor);if(ui(a,1).split("/").pop()!=d)return null;d=typeof b==="function"?b:b.constructor;var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|
0;b=tc(e,2);if(!c||b==null||Array.isArray(b)||db(b)){ic(a)&&(e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0);a=e;c=f;if(b!=null&&!Array.isArray(b)&&!db(b))throw Error("bb`"+xca(b));f=Uca(b,d,!0,c);if(!(f instanceof d))throw Error("cb`"+f.constructor.displayName+"`"+d.displayName);(d=!!(2&c))||(f=Yb(f));b!==f&&(mc(a,c,2,f),d||kc(a));b=f}else b=b==null||b instanceof Za?b:typeof b==="string"?Yba(b):void 0,b=c(ysa(b!=null?b:Ya())),fb(a)?fb(b)||(b=Yda(b)):fb(b)&&(b=Yb(b));return b},
Asa=function(a,b){var c=function(d,e){var f={treatNewDataAsImmutable:!0};e&&Object.assign(f,e);d=gsa(d,void 0,void 0,f);try{var g=new a,k=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;$ra(b)(k,d);var l=g}finally{d.free()}return l};c.internalDoNotUse_ctor=a;return c},Bsa=function(a){return function(b){b=JSON.parse(b);if(!Array.isArray(b))throw Error("ea`"+xca(b)+"`"+b);Wa(b);return new a(b)}},vi=function(a){return function(b){return Csa(a,b)}},Dsa=function(){return Math.random().toString(36).substring(2,
10).padEnd(8,"0")},Fsa=function(a){var b=(new Esa).setDuckieClient(a.getDuckieClient());a.hasSessionId()&&b.setSessionId(a.getSessionId());a.hasText()&&b.setText(a.getText());a.hasDisallowRestrictedContent()&&b.setDisallowRestrictedContent(a.getDisallowRestrictedContent());a.getUserProvidedContextList().length>0&&b.addAllUserProvidedContext(a.getUserProvidedContextList().slice());a.hasConversationHistory()&&b.setConversationHistory(a.getConversationHistory());a.hasConversationAgent()&&b.setConversationAgent(a.getConversationAgent());
a.hasAppProvidedContext()&&b.setAppProvidedContext(a.getAppProvidedContext());return b},Ki=function(a){var b={id:a.getMessageId(),sessionId:a.getSessionId(),client:a.getClient(),text:a.getText(),sender:wi(a,5),isUser:wi(a,5)===1?!0:!1,createdTimestamp:a.getCreationTimestamp()};a.hasFeedback()&&(b.feedback=a.getFeedback());xi(a,yi,10)&&(b.rewrite=X(a,yi,10));xi(a,Gsa,14)&&(b.responseMetadata=X(a,Gsa,14));zi(a,Ai,13)>0&&(b.relatedResources=Bi(a,Ai,13,Ci()));xi(a,Di,17)&&(b.executionMetadata=X(a,Di,
17));Ei(a,20)&&(b.hasPrivateContent=Fi(a,20));Ei(a,19)&&(b.hasRedactions=Fi(a,19));a.getUserProvidedContextCount()>0&&(b.userProvidedContext=a.getUserProvidedContextList().map(function(c){a:{var d=Gi;jc(c);if(void 0===Hsa){if(Hi(c,d,2)!==2){c=void 0;break a}}else hea(c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,void 0,d,2);c=Ii(c,Ji,2)}return c}));Ei(a,18)&&(b.isFallback=Fi(a,18));zi(a,Isa,27)>0&&(b.interactiveElements=Bi(a,Isa,27,Ci()));return b},Msa=function(a){var b=Jsa((new Li).setMessageId(a.id).setSessionId(a.sessionId).setClient(a.client).setText(a.text),
a.sender).setCreationTimestamp(a.createdTimestamp);a.feedback&&b.setFeedback(a.feedback);a.rewrite&&Mi(b,yi,10,a.rewrite);a.responseMetadata&&Mi(b,Gsa,14,a.responseMetadata);a.relatedResources&&Ni(b,13,a.relatedResources);a.executionMetadata&&Mi(b,Di,17,a.executionMetadata);a.hasPrivateContent!==void 0&&Ksa(b,a.hasPrivateContent);a.hasRedactions!==void 0&&Oi(b,19,a.hasRedactions);a.userProvidedContext&&b.setUserProvidedContextList(a.userProvidedContext.map(function(c){return Lsa(new Pi,c)}));a.isFallback!==
void 0&&Oi(b,18,a.isFallback);a.interactiveElements&&Ni(b,27,a.interactiveElements);return b},Psa=function(a){var b=a.some(function(c){return Qi(c,Nsa,4,Ri)});a=a.some(function(c){return Qi(c,Osa,3,Ri)});if(b)return"MOMA";if(a)return"YAQS"},Rsa=function(a){var b=a.getMessagesList(),c,d={serverId:a.getSessionId(),lastUsedTimestamp:X(a,Si,4),messages:b.map(Ki),title:(c=a.getTitle())!=null?c:"",modelId:Qsa(b),agentId:a.getAgentId(),agentVersion:a.getAgentVersion(),conversationAgentId:a.getConversationAgentId(),
conversationAgentModelId:a.getConversationAgentModelId(),sessionState:a.getSessionState()};a.hasPrivacyMode()&&(d.privacyMode=a.getPrivacyMode());if(a=Psa(b.flatMap(function(e){return Bi(e,Ai,13,Ci())})))d.threadSource=a;return d},Qsa=function(a){return a.find(function(b){return b.getModelId()==="duckie_on_gemini_flash_32k"})?"duckie_on_gemini_flash_32k":""},Ssa=function(){return dla(function(){return Vd(Promise.resolve(void 0))})},Tsa=function(){},Usa=function(a){var b=ng.apply(null,[a].concat(q([]))),
c=new Ti;return{valueSignal:b,get value(){return b()},change:c,ngOnDestroy:function(){c.complete()}}},Vsa=function(a,b){for(var c=a.length;c--;)b(a[c])},Wsa=function(){},Xsa=function(a){return a==null?null:typeof a==="number"?a:a.endsWith("ms")?Oh(a.substring(0,a.length-2)):a.endsWith("s")?Oh(a.substring(0,a.length-1))*1E3:a==="0"?0:null},Ysa=function(a,b){for(var c=a.nativeElement.parentElement;c&&!c.classList.contains("mat-mdc-dialog-container");)c=c.parentElement;return c?b.find(function(d){return d.id===
c.id}):null},Zsa=function(a,b){return{type:7,name:a,definitions:b,options:{}}},Ui=function(a,b){return{type:4,styles:b===void 0?null:b,timings:a}},Vi=function(a){return{type:6,styles:a,offset:null}},Xi=function(a,b){return{type:0,name:a,styles:b,options:void 0}},Yi=function(a,b){return{type:1,expr:a,animation:b,options:null}},$sa=function(a){a&1&&M(0,"a",1)},ata=function(a){return a==null?void 0:ah(a)},bta=function(a){if(a&1){var b=t();K(0,"div",1)(1,"button",2);N("click",function(){u(b);var c=P();
return v(c.action())});Q(2);L()()}a&2&&(a=P(),B(2),S(" ",a.data.action," "))},cta=function(){},dta=function(a){a&1&&(K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"p",5),Q(3),L()()());a&2&&(a=P(),B(3),yg(a.error))},eta=function(){var a=(new URLSearchParams(window.location.search)).get("api_url");if(a)return a;a=window.location.hostname;switch(a.includes("-autopush")||a.includes("-nightly")?1:a.includes("-staging")?2:a.includes("localhost")||a.includes("sslproxy")||a.includes("proxy")?
0:3){case 1:case 0:return"https://autopush-ml4answers-googleapis.corp.google.com";case 2:return"https://staging-ml4answers-googleapis.corp.google.com";case 3:return"https://ml4answers-googleapis.corp.google.com";default:return"https://autopush-ml4answers-googleapis.corp.google.com"}},fta=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}},gta=function(a){switch(a){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";
case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";default:return""}},Zi=function(a){a&&typeof a.dispose=="function"&&a.dispose()},$i=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},aj=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},hta=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},ita=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},jta=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},kta=function(a,
b){return a!==null&&b in a},lta=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c},mta=function(a,b){return(b=lta(a,b))&&a[b]},nta=function(a){for(var b in a)return!1;return!0},ota=function(a){for(var b in a)delete a[b]},pta=function(a,b){b in a&&delete a[b]},qta=function(a,b,c){if(a!==null&&b in a)throw Error("eb`"+b);a[b]=c},rta=function(a,b){return a!==null&&b in a?a[b]:void 0},bj=function(a){var b={},c;for(c in a)b[c]=a[c];return b},tta=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<sta.length;f++)c=sta[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},cj=function(a){this.src=a;this.listeners={};this.typeCount_=0},uta=function(){},vta=function(a){return qh(a)},wta=function(a,b){b.stack&&(a.stack+="\n"+b.stack);return a},Bta=function(a){var b=xta(a,"Content-Type");if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new yta:new zta;if(b.startsWith("application/x-protobuf")){a=
xta(a,"Content-Transfer-Encoding");if(!a)return new dj;if(a.toLowerCase()=="base64")return new Ata}return null},Cta=function(a){var b={sessionId:a.getSessionId(),title:a.getTitle(),client:a.getClient(),sessionState:a.getSessionState()};a.hasAgentId()&&(b.agentId=a.getAgentId());a.hasAgentVersion()&&(b.agentVersion=a.getAgentVersion());a.hasPrivacyMode()&&(b.privacyMode=a.getPrivacyMode());a.hasConversationAgentModelId()&&(b.conversationAgentModelId=a.getConversationAgentModelId());a.hasConversationAgentId()&&
(b.conversationAgentId=a.getConversationAgentId());return b},Dta=function(){return"https://static.corp.google.com/devtools/codereview/new_logo_only.svg"},Eta=function(){return"https://www.gstatic.com/images/branding/productlogos/code_search/v2/192px.svg"},Fta=function(){return"https://static.corp.google.com/devtools/codereview/g3doc_icon.svg"},Gta=function(){return"https://www.gstatic.com/images/branding/productlogos/buganizer/v1/192px.svg"},Hta=function(){return"https://www.gstatic.com/devnotify/snipit.svg"},
Ita=function(){return"https://static.corp.google.com/yaqs/static/img/logo/yaqs_32x32.svg"},Jta=function(){return"https://moma.corp.google.com/images/go_links_logo_192px.svg"},Kta=function(){return"https://www.gstatic.com/devopsconsole/images/home/gerrit_2.svg"},Ota=function(){for(var a;a=Lta.remove();){try{a.fn.call(a.scope)}catch(b){ta(b)}Mta.put(a)}Nta=!1},Qta=function(a){return a?a.__owner?a.__owner:a.parentNode&&a.parentNode.nodeType===11?a.parentNode.host:Pta(a):null},Rta=function(a,b,c){for(c||
(a=Qta(a));a&&!b(a);)a=Qta(a)},Tta=function(a){if(Sta.has(a))return Sta.get(a);throw Error("yb`"+a);},Vta=function(a){if(Uta.has(a))return Uta.get(a);throw Error("zb`"+a);},Wta=function(a){for(var b=new Map,c=m(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(a[d].string,a[d].xid);return b},Xta=function(){return ej?"Webkit":fj?"Moz":null},Yta=function(a,b){if(b&&a in b)return a;var c=Xta();return c?(c=c.toLowerCase(),a=c+gj(a),b===void 0||a in b?a:null):null},ij=function(a){var b=b===
void 0?Zta:b;var c=Aba(a),d=function(e){e=m(e);e.next();e=hj(e);return b(c,e)};return function(){var e=$c.apply(0,arguments),f=this||ra,g=$ta.get(f);g||(g={},$ta.set(f,g));f=g;g=[this].concat(q(e));e=d?d(g):g;if(Object.prototype.hasOwnProperty.call(f,e))f=f[e];else{var k=m(g);g=k.next().value;k=hj(k);g=a.apply(g,k);f=f[e]=g}return f}},aua=function(a){jj.call(this);this.domHelper_=a||kj();if(this.eventType_=this.getBrowserEventType_())this.eventKey_=lj(this.domHelper_.document_,this.eventType_,mj(this.handleChange_,
this))},nj=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d},bua=function(){this.nextPtr_=0;this.maxSize_=50;this.buff_=[]},cua=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;w=r=0}function b(x){for(var C=g,H=0;H<64;H+=4)C[H/4]=x[H]<<24|x[H+1]<<16|x[H+2]<<8|x[H+3];for(H=16;H<80;H++)x=C[H-3]^C[H-8]^C[H-14]^C[H-16],C[H]=(x<<1|x>>>31)&4294967295;x=e[0];var J=e[1],O=e[2],R=e[3],V=e[4];for(H=0;H<80;H++){if(H<40)if(H<20){var ca=
R^J&(O^R);var na=1518500249}else ca=J^O^R,na=1859775393;else H<60?(ca=J&O|R&(J|O),na=2400959708):(ca=J^O^R,na=3395469782);ca=((x<<5|x>>>27)&4294967295)+ca+V+na+C[H]&4294967295;V=R;R=O;O=(J<<30|J>>>2)&4294967295;J=x;x=ca}e[0]=e[0]+x&4294967295;e[1]=e[1]+J&4294967295;e[2]=e[2]+O&4294967295;e[3]=e[3]+R&4294967295;e[4]=e[4]+V&4294967295}function c(x,C){if(typeof x==="string"){x=unescape(encodeURIComponent(x));for(var H=[],J=0,O=x.length;J<O;++J)H.push(x.charCodeAt(J));x=H}C||(C=x.length);H=0;if(r==0)for(;H+
64<C;)b(x.slice(H,H+64)),H+=64,w+=64;for(;H<C;)if(f[r++]=x[H++],w++,r==64)for(r=0,b(f);H+64<C;)b(x.slice(H,H+64)),H+=64,w+=64}function d(){var x=[],C=w*8;r<56?c(k,56-r):c(k,64-(r-56));for(var H=63;H>=56;H--)f[H]=C&255,C>>>=8;b(f);for(H=C=0;H<5;H++)for(var J=24;J>=0;J-=8)x[C++]=e[H]>>J&255;return x}for(var e=[],f=[],g=[],k=[128],l=1;l<64;++l)k[l]=0;var r,w;a();return{reset:a,update:c,digest:d,digestString:function(){for(var x=d(),C="",H=0;H<x.length;H++)C+="0123456789ABCDEF".charAt(Math.floor(x[H]/
16))+"0123456789ABCDEF".charAt(x[H]%16);return C}}},iua=function(a,b){b=b===void 0?dua:b;if(!eua){var c;a=(c=a.navigator)==null?void 0:c.userAgentData;if(!a||typeof a.getHighEntropyValues!=="function"||a.brands&&typeof a.brands.map!=="function")return Promise.reject(Error("Jb"));fua((a.brands||[]).map(function(e){var f=new gua;return oj(f,1,e.brand).setVersion(e.version)}));typeof a.mobile==="boolean"&&Oi(hua,2,a.mobile);eua=a.getHighEntropyValues(b)}var d=new Set(b);return eua.then(function(e){var f=
hua.clone();d.has("platform")&&f.setPlatform(e.platform);d.has("platformVersion")&&oj(f,4,e.platformVersion);d.has("architecture")&&oj(f,5,e.architecture);d.has("model")&&f.setModel(e.model);d.has("uaFullVersion")&&oj(f,7,e.uaFullVersion);return f.serialize()}).catch(function(){return hua.serialize()})},jua=function(a){this.currBaseValue_=this.currValue_=this.initialValue_=a},kua=function(a){for(var b=pj.lastWindowEvent.target;b;){if(b===a)return!0;b=b.parentElement}return!1},lua=function(a){if(a)return typeof a===
"function"?a():a},mua=function(a,b){if(a==null)return null;a=a.getRequestHook(b);return a==null?null:a},nua=function(a){return Object.assign({},{arrays:{},descriptions:{},keys:[],objectMaps:{},objects:{},enums:{},emptyArrayIsUnset:!1},a)},oua=function(a,b){return qj(b,a)},pua=function(a,b,c){b[a]=c},qua=function(){return{}},vua=function(a,b){var c=new a;return b==null?c:rua(b,sua,tua,uua,a)},sua=function(a,b){return b[a]},tua=function(a,b,c){b.Serializable$values[a]=c},uua=function(a){if(a==null)throw Error("Mb");
return new a},rua=function(a,b,c,d,e){e=d(e);for(var f=wua(a,e),g=f.arrays||{},k=f.objects||{},l=f.objectMaps||{},r=m(f.keys||[]),w=r.next(),x={};!w.done;x={mapMetadata:void 0},w=r.next()){w=w.value;var C=b(w,a);if(C!=null){var H=void 0;if(g.hasOwnProperty(w)){if(f.emptyArrayIsUnset&&C.length===0)continue;H=xua(C,b,c,d,!0,!0,g[w])}else if(k.hasOwnProperty(w))H=xua(C,b,c,d,!1,!0,k[w]);else if(l.hasOwnProperty(w))x.mapMetadata=l[w],H=x.mapMetadata.isPropertyArray?C.map(function(J){return function(O){return yua(O,
J.mapMetadata,b,c,d)}}(x)):yua(C,x.mapMetadata,b,c,d);else if(Array.isArray(C)){if(f.emptyArrayIsUnset&&C.length===0)continue;H=xua(C,b,c,d,!0,!1)}else H=C;c(w,e,H)}}return e},yua=function(a,b,c,d,e){for(var f={},g=m(Object.keys(a)),k=g.next();!k.done;k=g.next()){k=k.value;var l=a[k];l!=null&&(f[k]=xua(l,c,d,e,b.isValueArray,b.isSerializable,b.ctor))}return f},xua=function(a,b,c,d,e,f,g){if(f&&g==null)throw Error("Nb");if(a==null)return a;var k;e&&f?k=a.map(function(l){return rua(l,b,c,d,g)}):e&&
!f?k=a.map(function(l){return l}):!e&&f?k=rua(a,b,c,d,g):typeof a==="object"?k=JSON.parse(JSON.stringify(a)):k=a;return k},wua=function(a,b){if(b instanceof rj)a=nua(b.getPartialClassMetadata());else if(a instanceof rj)a=nua(a.getPartialClassMetadata());else throw Error("Ob");return a},zua=function(a){if(a.queryParams!=null){var b={},c;for(c in a.queryParams)a.queryParams[c]!==void 0&&(b[c]=a.queryParams[c]);a.queryParams=b}},Aua=function(a,b,c){c=c===void 0?{}:c;b=m(Object.entries(b));for(var d=
b.next();!d.done;d=b.next()){var e=m(d.value);d=e.next().value;e=e.next().value;d in a&&(c[e]=a[d])}return c},Bua=function(a){if(!a.ok)throw Error(a.statusText);return a.json()},Cua=function(a,b){return(window.injected||new Map).get(a)||b},Eua=function(a){return function(b,c){if(typeof c==="object")b=Dua(a,b,c);else{var d=b.hasOwnProperty(c);b.constructor.createProperty(c,a);b=d?Object.getOwnPropertyDescriptor(b,c):void 0}return b}},Hua=function(a,b,c){if(a.nodeType!==1)return Fua;b=b.toLowerCase();
if(b==="innerhtml"||b==="innertext"||b==="textcontent"||b==="outerhtml")return function(){return sh(sj)};var d=Gua.get(a.tagName+" "+b);return d!==void 0?d:/^on/.test(b)&&c==="attribute"&&(a=a.tagName.includes("-")?HTMLElement.prototype:a,b in a)?function(){throw Error("Ub");}:Fua},Kua=function(a,b){if(!Iua(a)||!a.hasOwnProperty("raw"))throw Error("Xb");return Jua!==void 0?Jua.createHTML(b):b},uj=function(a,b,c,d){c=c===void 0?a:c;if(b===tj)return b;var e,f=d!==void 0?(e=c.__directives)==null?void 0:
e[d]:c.__directive;e=Lua(b)?void 0:b._$litDirective$;var g;if(((g=f)==null?void 0:g.constructor)!==e){var k,l;(k=f)==null||(l=k._$notifyDirectiveConnectionChanged)==null||l.call(k,!1);e===void 0?f=void 0:(f=new e(a),f._$initialize(a,c,d));if(d!==void 0){var r,w;((w=(r=c).__directives)!=null?w:r.__directives=[])[d]=f}else c.__directive=f}f!==void 0&&(b=uj(a,f._$resolve(a,b.values),f,d));return b},Oua=function(a){this._$disconnectableChildren!==void 0?(Mua(this),this._$parent=a,Nua(this)):this._$parent=
a},Qua=function(a,b,c){c=c===void 0?0:c;var d=this._$committedValue,e=this._$disconnectableChildren;if(e!==void 0&&e.size!==0)if(b===void 0?0:b)if(Array.isArray(d))for(a=c;a<d.length;a++)Pua(d[a],!1),Mua(d[a]);else d!=null&&(Pua(d,!1),Mua(d));else Pua(this,a)},Rua=function(a){a&1&&M(0,"span",21)},Sua=function(a){a&1&&(K(0,"label",20),cg(1,1),F(2,Rua,1,0,"span",21),L());a&2&&(a=P(2),I("floating",a._shouldLabelFloat())("monitorResize",a._hasOutline())("id",a._labelId),If("for",a._control.disableAutomaticLabeling?
null:a._control.id),B(2),G(!a.hideRequiredMarker&&a._control.required?2:-1))},Tua=function(a){a&1&&F(0,Sua,3,5,"label",20);a&2&&(a=P(),G(a._hasFloatingLabel()?0:-1))},Uua=function(a){a&1&&M(0,"div",7)},Vua=function(){},Wua=function(a){a&1&&E(0,Vua,0,0,"ng-template",13);a&2&&(P(2),a=qg(1),I("ngTemplateOutlet",a))},Xua=function(a){a&1&&(K(0,"div",9),F(1,Wua,1,1,null,13),L());a&2&&(a=P(),I("matFormFieldNotchedOutlineOpen",a._shouldLabelFloat()),B(),G(a._forceDisplayInfixLabel()?-1:1))},Yua=function(a){a&
1&&(K(0,"div",10,2),cg(2,2),L())},Zua=function(a){a&1&&(K(0,"div",11,3),cg(2,3),L())},$ua=function(){},ava=function(a){a&1&&E(0,$ua,0,0,"ng-template",13);a&2&&(P(),a=qg(1),I("ngTemplateOutlet",a))},bva=function(a){a&1&&(K(0,"div",14,4),cg(2,4),L())},cva=function(a){a&1&&(K(0,"div",15,5),cg(2,5),L())},dva=function(a){a&1&&M(0,"div",16)},eva=function(a){a&1&&(K(0,"div",18),cg(1,6),L())},fva=function(a){a&1&&(K(0,"mat-hint",22),Q(1),L());a&2&&(a=P(2),I("id",a._hintLabelId),B(),yg(a.hintLabel))},gva=
function(a){a&1&&(K(0,"div",19),F(1,fva,2,2,"mat-hint",22),cg(2,7),M(3,"div",23),cg(4,8),L());a&2&&(a=P(),B(),G(a.hintLabel?1:-1))},iva=function(a){return a==null||hva(a)===0},hva=function(a){if(a!=null){if(Array.isArray(a)||typeof a==="string")return a.length;if(a instanceof Set)return a.size}return null},jva=function(a){return function(b){if(b.value==null||a==null)return null;var c=parseFloat(b.value);return!isNaN(c)&&c<a?{min:{min:a,actual:b.value}}:null}},kva=function(a){return function(b){if(b.value==
null||a==null)return null;var c=parseFloat(b.value);return!isNaN(c)&&c>a?{max:{max:a,actual:b.value}}:null}},lva=function(a){return iva(a.value)?{required:!0}:null},mva=function(a){return function(b){var c,d,e=(d=(c=b.value)==null?void 0:c.length)!=null?d:hva(b.value);return e!==null&&e>a?{maxlength:{requiredLength:a,actualLength:e}}:null}},ova=function(a){if(!a)return nva;if(typeof a==="string"){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(iva(d.value))return null;d=d.value;return c.test(d)?null:{pattern:{requiredPattern:b,actualValue:d}}}},nva=function(){return null},pva=function(a){return a!=null},qva=function(a){return Mka(a)?Vd(a):a},rva=function(a){var b={};a.forEach(function(c){b=c!=null?Object.assign({},b,c):b});return Object.keys(b).length===0?null:b},sva=function(a,b){return b.map(function(c){return c(a)})},tva=function(a){return a.map(function(b){return b.validate?function(c){return b.validate(c)}:
b})},uva=function(a){if(!a)return null;var b=a.filter(pva);return b.length==0?null:function(c){return rva(sva(c,b))}},vva=function(a){return a!=null?uva(tva(a)):null},wva=function(a){if(!a)return null;var b=a.filter(pva);return b.length==0?null:function(c){c=sva(c,b).map(qva);return oe(c).pipe(A(rva))}},xva=function(a){return a!=null?wva(tva(a)):null},yva=function(a,b){return a===null?[b]:Array.isArray(a)?[].concat(q(a),[b]):[a,b]},zva=function(a,b){return Array.isArray(a)?a.includes(b):a===b},Ava=
function(a){var b=[vj],c=a?Array.isArray(a)?a:[a]:[];(b?Array.isArray(b)?b:[b]:[]).forEach(function(d){zva(c,d)||c.push(d)});return c},Bva=function(a,b){return[].concat(q(b.path),[a])},Hva=function(a,b,c){c=c===void 0?"whenDisabledForLegacyCode":c;Cva(a,b);b.valueAccessor.writeValue(a.value);if(a.disabled||c==="always"){var d,e;(e=(d=b.valueAccessor).setDisabledState)==null||e.call(d,a.disabled)}Dva(a,b);Eva(a,b);Fva(a,b);Gva(a,b)},Jva=function(a,b){var c=function(){};b.valueAccessor&&(b.valueAccessor.registerOnChange(c),
b.valueAccessor.registerOnTouched(c));Iva(a,b);a&&(b._invokeOnDestroyCallbacks(),a._registerOnCollectionChange(function(){}))},Kva=function(a,b){a.forEach(function(c){c.registerOnValidatorChange&&c.registerOnValidatorChange(b)})},Gva=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)})}},Cva=function(a,b){var c=a._rawValidators;b.validator!==null?Lva(a,
yva(c,b.validator)):typeof c==="function"&&Lva(a,[c]);c=a._rawAsyncValidators;b.asyncValidator!==null?Mva(a,yva(c,b.asyncValidator)):typeof c==="function"&&Mva(a,[c]);c=function(){return wj(a)};Kva(b._rawValidators,c);Kva(b._rawAsyncValidators,c)},Iva=function(a,b){var c=!1;if(a!==null){if(b.validator!==null){var d=a._rawValidators;if(Array.isArray(d)&&d.length>0){var e=d.filter(function(f){return f!==b.validator});e.length!==d.length&&(c=!0,a._assignValidators(e))}}b.asyncValidator!==null&&(d=a._rawAsyncValidators,
Array.isArray(d)&&d.length>0&&(e=d.filter(function(f){return f!==b.asyncValidator}),e.length!==d.length&&(c=!0,a._assignAsyncValidators(e))))}a=function(){};Kva(b._rawValidators,a);Kva(b._rawAsyncValidators,a);return c},Dva=function(a,b){b.valueAccessor.registerOnChange(function(c){a._pendingValue=c;a._pendingChange=!0;a._pendingDirty=!0;a.updateOn==="change"&&Nva(a,b)})},Fva=function(a,b){b.valueAccessor.registerOnTouched(function(){a._pendingTouched=!0;a.updateOn==="blur"&&a._pendingChange&&Nva(a,
b);a.updateOn!=="submit"&&tma(a)})},Nva=function(a,b){a._pendingDirty&&sma(a);a.setValue(a._pendingValue,{emitModelToViewChange:!1});b.viewToModelUpdate(a._pendingValue);a._pendingChange=!1},Eva=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)})},Ova=function(a,b){if(!a.hasOwnProperty("model"))return!1;a=a.model;return a.firstChange?!0:!Object.is(b,a.currentValue)},Pva=function(a,
b){a._syncPendingControls();b.forEach(function(c){var d=c.control;d.updateOn==="submit"&&d._pendingChange&&(c.viewToModelUpdate(d._pendingValue),d._pendingChange=!1)})},Qva=function(a){if(!a)return null;var b=void 0,c=void 0,d=void 0;a.forEach(function(e){e.constructor===xj?b=e:Object.getPrototypeOf(e.constructor)===yj?c=e:d=e});return d?d:c?c:b?b:null},zj=function(a){return a!=null&&!Array.isArray(a)&&typeof a==="object"},Rva=function(a,b,c){a=a.controls;if(!(b?Object.keys(a):a).length)throw new Sc(1E3,
"");if(!a[c])throw new Sc(1001,"");},Sva=function(a,b){a._forEachChild(function(c,d){if(b[d]===void 0)throw new Sc(1002,"");})},Tva=function(a){return typeof a==="object"&&a!==null&&Object.keys(a).length===2&&"value"in a&&"disabled"in a},Uva=function(a){return!!a&&(a.asyncValidators!==void 0||a.validators!==void 0||a.updateOn!==void 0)},Vva=function(a,b,c){for(var d=0;d<a.length;d++){var e=a[d],f=b[d];if(e[0]===":")c[e.substring(1)]=f;else if(e!==f.path)return!1}return!0},Wva=function(a,b,c){var d=
c.path.split("/"),e=d.indexOf("**");if(e===-1){if(d.length>a.length||c.pathMatch==="full"&&(b.hasChildren()||d.length<a.length))return null;var f={};a=a.slice(0,d.length);return Vva(d,a,f)?{consumed:a,posParams:f}:null}if(e!==d.lastIndexOf("**"))return null;f=d.slice(0,e);d=d.slice(e+1);if(f.length+d.length>a.length||e>-1&&f.length>0&&d.length>0&&f.length+d.length===a.length||c.pathMatch==="full"&&b.hasChildren()&&c.path!=="**")return null;b={};return Vva(f,a.slice(0,f.length),b)&&Vva(d,a.slice(a.length-
d.length),b)?{consumed:a,posParams:b}:null},Xva=function(a){return new Promise(function(b,c){a.pipe(pf()).subscribe({next:function(d){return b(d)},error:function(d){return c(d)}})})},Aj=function(a,b){var c=a?Yva(a):void 0,d=b?Yva(b):void 0;if(!c||!d||c.length!=d.length)return!1;for(var e=0;e<c.length;e++)if(d=c[e],!Zva(a[d],b[d]))return!1;return!0},Yva=function(a){return[].concat(q(Object.keys(a)),q(Object.getOwnPropertySymbols(a)))},Zva=function(a,b){if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==
b.length)return!1;a=[].concat(q(a)).sort();var c=[].concat(q(b)).sort();return a.every(function(d,e){return c[e]===d})}return a===b},Bj=function(a){return we(a)?a:Mka(a)?Vd(Promise.resolve(a)):ce(a)},$va=function(a){return we(a)?Xva(a):Promise.resolve(a)},cwa=function(a,b,c){return awa[c.paths](a.root,b.root,c.matrixParams)&&bwa[c.queryParams](a.queryParams,b.queryParams)&&!(c.fragment==="exact"&&a.fragment!==b.fragment)},dwa=function(a,b){return Aj(a,b)},fwa=function(a,b,c){if(!Cj(a.segments,b.segments)||
!ewa(a.segments,b.segments,c)||a.numberOfChildren!==b.numberOfChildren)return!1;for(var d in b.children)if(!a.children[d]||!fwa(a.children[d],b.children[d],c))return!1;return!0},gwa=function(a,b){return Object.keys(b).length<=Object.keys(a).length&&Object.keys(b).every(function(c){return Zva(a[c],b[c])})},iwa=function(a,b,c){return hwa(a,b,b.segments,c)},hwa=function(a,b,c,d){if(a.segments.length>c.length)return a=a.segments.slice(0,c.length),Cj(a,c)&&!b.hasChildren()&&ewa(a,c,d)?!0:!1;if(a.segments.length===
c.length){if(!Cj(a.segments,c)||!ewa(a.segments,c,d))return!1;for(var e in b.children)if(!a.children[e]||!iwa(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 Cj(a.segments,e)&&ewa(a.segments,e,d)&&a.children.primary?hwa(a.children.primary,b,c,d):!1},ewa=function(a,b,c){return b.every(function(d,e){return bwa[c](a[e].parameters,d.parameters)})},jwa=function(a,b){return Cj(a,b)&&a.every(function(c,d){return Aj(c.parameters,b[d].parameters)})},
Cj=function(a,b){return a.length!==b.length?!1:a.every(function(c,d){return c.path===b[d].path})},kwa=function(a,b){var c=[];Object.entries(a.children).forEach(function(d){var e=m(d);d=e.next().value;e=e.next().value;d==="primary"&&(c=c.concat(b(e,d)))});Object.entries(a.children).forEach(function(d){var e=m(d);d=e.next().value;e=e.next().value;d!=="primary"&&(c=c.concat(b(e,d)))});return c},nwa=function(a){return a.segments.map(function(b){return lwa(b.path)+mwa(b.parameters)}).join("/")},owa=function(a,
b){if(!a.hasChildren())return nwa(a);if(b){b=a.children.primary?owa(a.children.primary,!1):"";var c=[];Object.entries(a.children).forEach(function(d){var e=m(d);d=e.next().value;e=e.next().value;d!=="primary"&&c.push(d+":"+owa(e,!1))});return c.length>0?b+"("+c.join("//")+")":b}b=kwa(a,function(d,e){return e==="primary"?[owa(a.children.primary,!1)]:[e+":"+owa(d,!1)]});return Object.keys(a.children).length===1&&a.children.primary!=null?nwa(a)+"/"+b[0]:nwa(a)+"/("+b.join("//")+")"},pwa=function(a){return encodeURIComponent(a).replace(/%40/g,
"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")},qwa=function(a){return pwa(a).replace(/%3B/gi,";")},lwa=function(a){return pwa(a).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")},mwa=function(a){return Object.entries(a).map(function(b){var c=m(b);b=c.next().value;c=c.next().value;return";"+lwa(b)+"="+lwa(c)}).join("")},rwa=function(a){a=Object.entries(a).map(function(b){b=m(b);var c=b.next().value;b=b.next().value;return Array.isArray(b)?b.map(function(d){return qwa(c)+
"="+qwa(d)}).join("&"):qwa(c)+"="+qwa(b)}).filter(function(b){return b});return a.length?"?"+a.join("&"):""},twa=function(a){return(a=a.match(swa))?a[0]:""},uwa=function(a){var b={};return a.segments.length>0?new Ej([],(b.primary=a,b)):a},vwa=function(a){for(var b={},c=m(Object.entries(a.children)),d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;e=vwa(e);if(d==="primary"&&e.segments.length===0&&e.hasChildren())for(d=m(Object.entries(e.children)),e=d.next();!e.done;e=
d.next()){var f=m(e.value);e=f.next().value;f=f.next().value;b[e]=f}else if(e.segments.length>0||e.hasChildren())b[d]=e}a=new Ej(a.segments,b);a.numberOfChildren===1&&a.children.primary&&(b=a.children.primary,a=new Ej(a.segments.concat(b.segments),b.children));return a},Gj=function(a){return a instanceof Fj},wwa=function(a){function b(f){for(var g={},k=m(f.children),l=k.next();!l.done;l=k.next()){l=l.value;var r=b(l);g[l.outlet]=r}g=new Ej(f.url,g);f===a&&(c=g);return g}var c,d=b(a.root);d=uwa(d);
var e;return(e=c)!=null?e:d},Dwa=function(a,b,c,d,e){for(var f=a;f.parent;)f=f.parent;if(b.length===0)return xwa(f,f,f,c,d,e);b=ywa(b);if(b.isAbsolute&&b.commands.length===1&&b.commands[0]=="/")return xwa(f,f,new Ej([],{}),c,d,e);var g=f;if(b.isAbsolute)a=new zwa(g,!0,0);else if(a)if(a.parent===null)a=new zwa(a,!0,0);else{g=a;a=a.segments.length-1+(Awa(b.commands[0])?0:1);for(var k=b.numberOfDoubleDots;k>a;){k-=a;g=g.parent;if(!g)throw new Sc(4005,!1);a=g.segments.length}a=new zwa(g,!1,a-k)}else a=
new zwa(g,!1,NaN);b=a.processChildren?Bwa(a.segmentGroup,a.index,b.commands):Cwa(a.segmentGroup,a.index,b.commands);return xwa(f,a.segmentGroup,b,c,d,e)},Awa=function(a){return typeof a==="object"&&a!=null&&!a.outlets&&!a.segmentPath},Ewa=function(a){return typeof a==="object"&&a!=null&&a.outlets},Fwa=function(a,b,c){a||(a="\u0275");var d=new Fj,e={};d.queryParams=(e[a]=b,e);return c.parse(c.serialize(d)).queryParams[a]},xwa=function(a,b,c,d,e,f){var g={};d=m(Object.entries(d!=null?d:{}));for(var k=
d.next(),l={};!k.done;l={key$jscomp$562:void 0},k=d.next()){var r=m(k.value);k=r.next().value;r=r.next().value;l.key$jscomp$562=k;k=r;g[l.key$jscomp$562]=Array.isArray(k)?k.map(function(w){return function(x){return Fwa(w.key$jscomp$562,x,f)}}(l)):Fwa(l.key$jscomp$562,k,f)}a=a===b?c:Gwa(a,b,c);a=uwa(vwa(a));return new Fj(a,g,e)},Gwa=function(a,b,c){var d={};Object.entries(a.children).forEach(function(e){var f=m(e);e=f.next().value;f=f.next().value;d[e]=f===b?c:Gwa(f,b,c)});return new Ej(a.segments,
d)},ywa=function(a){if(typeof a[0]==="string"&&a.length===1&&a[0]==="/")return new Hwa(!0,0,a);var b=0,c=!1;a=a.reduce(function(d,e,f){if(typeof e==="object"&&e!=null){if(e.outlets){var g={};Object.entries(e.outlets).forEach(function(k){var l=m(k);k=l.next().value;l=l.next().value;g[k]=typeof l==="string"?l.split("/"):l});return[].concat(q(d),[{outlets:g}])}if(e.segmentPath)return[].concat(q(d),[e.segmentPath])}return typeof e!=="string"?[].concat(q(d),[e]):f===0?(e.split("/").forEach(function(k,
l){if(l!=0||k!==".")l==0&&k===""?c=!0:k===".."?b++:k!=""&&d.push(k)}),d):[].concat(q(d),[e])},[]);return new Hwa(c,b,a)},Iwa=function(a){if(Ewa(a[0]))return a[0].outlets;var b={};return b.primary=a,b},Cwa=function(a,b,c){a!=null||(a=new Ej([],{}));if(a.segments.length===0&&a.hasChildren())return Bwa(a,b,c);a:{var d=a;for(var e=0,f=b,g={match:!1,pathIndex:0,commandIndex:0};f<d.segments.length;){if(e>=c.length){d=g;break a}var k=d.segments[f],l=c[e];if(Ewa(l))break;l=""+l;var r=e<c.length-1?c[e+1]:
null;if(f>0&&l===void 0)break;if(l&&r&&typeof r==="object"&&r.outlets===void 0){if(l!=k.path||!Aj(r,k.parameters)){d=g;break a}e+=2}else{r={};if(l!=k.path||!Aj(r,k.parameters)){d=g;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 Ej(a.segments.slice(0,d.pathIndex),{}),b.children.primary=new Ej(a.segments.slice(d.pathIndex),a.children),Bwa(b,0,e)):d.match&&e.length===0?new Ej(a.segments,{}):d.match&&!a.hasChildren()?
Jwa(a,b,c):d.match?Bwa(a,0,e):Jwa(a,b,c)},Bwa=function(a,b,c){if(c.length===0)return new Ej(a.segments,{});var d=Iwa(c),e={};if(Object.keys(d).some(function(f){return f!=="primary"})&&a.children.primary&&a.numberOfChildren===1&&a.children.primary.segments.length===0)return c=Bwa(a.children.primary,b,c),new Ej(a.segments,c.children);Object.entries(d).forEach(function(f){var g=m(f);f=g.next().value;g=g.next().value;typeof g==="string"&&(g=[g]);g!==null&&(e[f]=Cwa(a.children[f],b,g))});Object.entries(a.children).forEach(function(f){var g=
m(f);f=g.next().value;g=g.next().value;d[f]===void 0&&(e[f]=g)});return new Ej(a.segments,e)},Jwa=function(a,b,c){for(var d=a.segments.slice(0,b),e=0;e<c.length;){var f=c[e];if(Ewa(f))return a=Kwa(f.outlets),new Ej(d,a);if(e===0&&Awa(c[0]))d.push(new Hj(a.segments[b].path,Lwa(c[0]))),e++;else{f=Ewa(f)?f.outlets.primary:""+f;var g=e<c.length-1?c[e+1]:null;f&&g&&Awa(g)?(d.push(new Hj(f,Lwa(g))),e+=2):(d.push(new Hj(f,{})),e++)}}return new Ej(d,{})},Kwa=function(a){var b={};Object.entries(a).forEach(function(c){var d=
m(c);c=d.next().value;d=d.next().value;typeof d==="string"&&(d=[d]);d!==null&&(b[c]=Jwa(new Ej([],{}),0,d))});return b},Lwa=function(a){var b={};Object.entries(a).forEach(function(c){var d=m(c);c=d.next().value;d=d.next().value;return b[c]=""+d});return b},Mwa=function(a,b){a.providers&&!a._injector&&(a._injector=Fka(a.providers,b,"Route: "+a.path));var c;return(c=a._injector)!=null?c:b},Ij=function(a){return a.outlet||"primary"},Nwa=function(a,b){var c=a.filter(function(d){return Ij(d)===b});c.push.apply(c,
q(a.filter(function(d){return Ij(d)!==b})));return c},Jj=function(a){if(!a)return null;var b;if((b=a.routeConfig)==null?0:b._injector)return a.routeConfig._injector;for(a=a.parent;a;a=a.parent){b=a.routeConfig;var c=void 0;if((c=b)==null?0:c._loadedInjector)return b._loadedInjector;c=void 0;if((c=b)==null?0:c._injector)return b._injector}return null},Owa=function(a,b){if(a===b.value)return b;b=m(b.children);for(var c=b.next();!c.done;c=b.next())if(c=Owa(a,c.value))return c;return null},Pwa=function(a,
b){if(a===b.value)return[b];for(var c=m(b.children),d=c.next();!d.done;d=c.next())if(d=Pwa(a,d.value),d.length)return d.unshift(b),d;return[]},Qwa=function(a){var b={};a&&a.children.forEach(function(c){return b[c.value.outlet]=c});return b},Swa=function(a,b,c){var d=a.routeConfig,e;if(b===null||(c===void 0?"emptyOnly":c)!=="always"&&(d==null?void 0:d.path)!==""&&(b.component||((e=b.routeConfig)==null?0:e.loadComponent))){var f;a={params:Object.assign({},a.params),data:Object.assign({},a.data),resolve:Object.assign({},
a.data,(f=a._resolvedData)!=null?f:{})}}else a={params:Object.assign({},b.params,a.params),data:Object.assign({},b.data,a.data),resolve:Object.assign({},a.data,b.data,d==null?void 0:d.data,a._resolvedData)};!d||typeof d.title!=="string"&&d.title!==null||(a.resolve[Rwa]=d.title);return a},Twa=function(a,b){b.value._routerState=a;b.children.forEach(function(c){return Twa(a,c)})},Uwa=function(a){var b=a.children.length>0?" { "+a.children.map(Uwa).join(", ")+" } ":"";return""+a.value+b},Vwa=function(a){if(a.snapshot){var b=
a.snapshot,c=a._futureSnapshot;a.snapshot=c;Aj(b.queryParams,c.queryParams)||a.queryParamsSubject.next(c.queryParams);b.fragment!==c.fragment&&a.fragmentSubject.next(c.fragment);Aj(b.params,c.params)||a.paramsSubject.next(c.params);a:{var d=b.url;var e=c.url;if(d.length!==e.length)d=!1;else{for(var f=0;f<d.length;++f)if(!Aj(d[f],e[f])){d=!1;break a}d=!0}}d||a.urlSubject.next(c.url);Aj(b.data,c.data)||a.dataSubject.next(c.data)}else a.snapshot=a._futureSnapshot,a.dataSubject.next(a._futureSnapshot.data)},
Wwa=function(a,b){var c=Aj(a.params,b.params)&&jwa(a.url,b.url),d=!a.parent!==!b.parent;return c&&!d&&(!a.parent||Wwa(a.parent,b.parent))},Xwa=function(a){var b=a.children&&a.children.map(Xwa);a=b?Object.assign({},a,{children:b}):Object.assign({},a);a.component||a.loadComponent||!b&&!a.loadChildren||!a.outlet||a.outlet==="primary"||(a.component=Ywa);return a},axa=function(a,b,c){a=Zwa(a,b._root,c?c._root:void 0);return new $wa(a,b)},Zwa=function(a,b,c){if(c&&a.shouldReuseRoute(b.value,c.value.snapshot)){var d=
c.value;d._futureSnapshot=b.value;b=bxa(a,b,c);return new Kj(d,b)}d=cxa(b.value);b=b.children.map(function(e){return Zwa(a,e)});return new Kj(d,b)},bxa=function(a,b,c){return b.children.map(function(d){for(var e=m(c.children),f=e.next();!f.done;f=e.next())if(f=f.value,a.shouldReuseRoute(d.value,f.value.snapshot))return Zwa(a,d,f);return Zwa(a,d)})},cxa=function(a){return new Lj(new Mj(a.url),new Mj(a.params),new Mj(a.queryParams),new Mj(a.fragment),new Mj(a.data),a.outlet,a.component,a)},exa=function(a){var b=
Gj(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a;a=b.redirectTo;b=b.navigationBehaviorOptions;var c=dxa(0);c.url=a;c.navigationBehaviorOptions=b;return c},dxa=function(a){var b=Error("ac`");b.ngNavigationCancelingError=!0;b.cancellationCode=a;return b},fxa=function(a){return!!a&&a.ngNavigationCancelingError},Nj=function(){return yf(function(a){return ie(a.map(function(b){return b.pipe(lf(1),xf(gxa))})).pipe(A(function(b){b=m(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c!==!0){if(c===
gxa)return gxa;if(c===!1||Gj(c))return c}return!0}),ue(function(b){return b!==gxa}),lf(1))})},hxa=function(a){return a.aborted?ce(void 0).pipe(lf(1)):new Td(function(b){var c=function(){b.next();b.complete()};a.addEventListener("abort",c);return function(){return a.removeEventListener("abort",c)}})},Oj=function(a,b){var c=Symbol(),d=b.get(a,c);return d===c?typeof a!=="function"||tea(a)!==null?b.get(a):a:d},kxa=function(a,b,c,d,e){e=e===void 0?{canDeactivateChecks:[],canActivateChecks:[]}:e;var f=
Qwa(b);a.children.forEach(function(g){var k=f[g.value.outlet],l=d.concat([g.value]),r=e;r=r===void 0?{canDeactivateChecks:[],canActivateChecks:[]}:r;var w=g.value,x=k?k.value:null,C=c?c.getContext(g.value.outlet):null;if(x&&w.routeConfig===x.routeConfig){var H=ixa(x,w,w.routeConfig.runGuardsAndResolvers);H?r.canActivateChecks.push(new jxa(l)):(w.data=x.data,w._resolvedData=x._resolvedData);w.component?kxa(g,k,C?C.children:null,l,r):kxa(g,k,c,l,r);H&&C&&C.outlet&&C.outlet.isActivated&&r.canDeactivateChecks.push(new lxa(C.outlet.component,
x))}else x&&mxa(k,C,r),r.canActivateChecks.push(new jxa(l)),w.component?kxa(g,null,C?C.children:null,l,r):kxa(g,null,c,l,r);delete f[g.value.outlet]});Object.entries(f).forEach(function(g){var k=m(g);g=k.next().value;k=k.next().value;return mxa(k,c.getContext(g),e)});return e},ixa=function(a,b,c){if(typeof c==="function")return c(a,b);switch(c){case "pathParamsChange":return!Cj(a.url,b.url);case "pathParamsOrQueryParamsChange":return!Cj(a.url,b.url)||!Aj(a.queryParams,b.queryParams);case "always":return!0;
case "paramsOrQueryParamsChange":return!Wwa(a,b)||!Aj(a.queryParams,b.queryParams);default:return!Wwa(a,b)}},mxa=function(a,b,c){var d=Qwa(a),e=a.value;Object.entries(d).forEach(function(f){var g=m(f);f=g.next().value;g=g.next().value;e.component?b?mxa(g,b.children.getContext(f),c):mxa(g,null,c):mxa(g,b,c)});e.component?b&&b.outlet&&b.outlet.isActivated?c.canDeactivateChecks.push(new lxa(b.outlet.component,e)):c.canDeactivateChecks.push(new lxa(null,e)):c.canDeactivateChecks.push(new lxa(null,e))},
nxa=function(a){return typeof a==="function"},oxa=function(a){return a instanceof Cha||(a==null?void 0:a.name)==="EmptyError"},rxa=function(a,b){return ke(function(c){var d=c.targetSnapshot,e=c.currentSnapshot,f=c.guards,g=f.canActivateChecks;f=f.canDeactivateChecks;return f.length===0&&g.length===0?ce(Object.assign({},c,{guardsResult:!0})):pxa(f,d,e,a).pipe(ke(function(k){return k&&typeof k==="boolean"?qxa(d,g,a,b):ce(k)}),A(function(k){return Object.assign({},c,{guardsResult:k})}))})},pxa=function(a,
b,c,d){return Vd(a).pipe(ke(function(e){return sxa(e.component,e.route,c,b,d)}),pf(function(e){return e!==!0},!0))},qxa=function(a,b,c,d){return Vd(b).pipe(ala(function(e){var f=e.route.parent;f!==null&&d&&d(new txa(f));f=ce(!0);var g=e.route;g!==null&&d&&d(new uxa(g));g=ce(!0);return me(f,g,vxa(a,e.path,c),wxa(a,e.route,c))}),pf(function(e){return e!==!0},!0))},wxa=function(a,b,c){var d=b.routeConfig?b.routeConfig.canActivate:null;if(!d||d.length===0)return ce(!0);d=d.map(function(e){return ne(function(){var f,
g=(f=Jj(b))!=null?f:c,k=Oj(e,g);f=k&&nxa(k.canActivate)?k.canActivate(b,a):gd(g,function(){return k(b,a)});return Bj(f).pipe(pf())})});return ce(d).pipe(Nj())},vxa=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&&f.length!==0?{node:e,guards:f}:null}).filter(function(e){return e!==null}).map(function(e){return ne(function(){var f=e.guards.map(function(g){var k,l=(k=Jj(e.node))!=null?k:c,r=Oj(g,l);
g=r&&nxa(r.canActivateChild)?r.canActivateChild(d,a):gd(l,function(){return r(d,a)});return Bj(g).pipe(pf())});return ce(f).pipe(Nj())})});return ce(b).pipe(Nj())},sxa=function(a,b,c,d,e){var f=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!f||f.length===0)return ce(!0);f=f.map(function(g){var k,l=(k=Jj(b))!=null?k:e,r=Oj(g,l);g=r&&nxa(r.canDeactivate)?r.canDeactivate(a,b,c,d):gd(l,function(){return r(a,b,c,d)});return Bj(g).pipe(pf())});return ce(f).pipe(Nj())},yxa=function(a,b,c,d){var e=
b.canLoad;if(e===void 0||e.length===0)return ce(!0);e=e.map(function(f){var g=Oj(f,a);f=g&&nxa(g.canLoad)?g.canLoad(b,c):gd(a,function(){return g(b,c)});f=Bj(f);return d?f.pipe(zf(hxa(d))):f});return ce(e).pipe(Nj(),xxa())},xxa=function(){return Sd(Af(function(a){if(typeof a!=="boolean")throw exa(a);}),A(function(a){return a===!0}))},zxa=function(a,b,c,d){var e=b.canMatch;if(!e||e.length===0)return ce(!0);e=e.map(function(f){var g=Oj(f,a);f=g&&nxa(g.canMatch)?g.canMatch(b,c):gd(a,function(){return g(b,
c)});f=Bj(f);return d?f.pipe(zf(hxa(d))):f});return ce(e).pipe(Nj(),xxa())},Axa=function(a,b,c){if(typeof a==="string")return Promise.resolve(a);var d=b.queryParams,e=b.fragment,f=b.routeConfig,g=b.url,k=b.outlet,l=b.params,r=b.data,w=b.title;return Xva(Bj(gd(c,function(){return a({params:l,data:r,queryParams:d,fragment:e,routeConfig:f,url:g,outlet:k,title:w})})))},Dxa=function(a,b,c,d,e){var f=Bxa(a,b,c);if(!f.matched)return ce(f);d=Mwa(b,d);return zxa(d,b,c,e).pipe(A(function(g){return g===!0?f:
Object.assign({},Cxa)}))},Bxa=function(a,b,c){if(b.path==="")return b.pathMatch==="full"&&(a.hasChildren()||c.length>0)?Object.assign({},Cxa):{matched:!0,consumedSegments:[],remainingSegments:c,parameters:{},positionalParamSegments:{}};a=(b.matcher||Wva)(c,a,b);if(!a)return Object.assign({},Cxa);var d={},e;Object.entries((e=a.posParams)!=null?e:{}).forEach(function(g){var k=m(g);g=k.next().value;k=k.next().value;d[g]=k.path});e=a.consumed.length>0?Object.assign({},d,a.consumed[a.consumed.length-1].parameters):
d;var f;return{matched:!0,consumedSegments:a.consumed,remainingSegments:c.slice(a.consumed.length),parameters:e,positionalParamSegments:(f=a.posParams)!=null?f:{}}},Hxa=function(a,b,c,d){if(c.length>0&&Exa(a,c,d)){var e=Ej;a=new Ej(c,a.children);c={};c.primary=a;a=m(d);for(d=a.next();!d.done;d=a.next())if(d=d.value,d.path===""&&Ij(d)!=="primary"){var f=new Ej([],{});c[Ij(d)]=f}c={segmentGroup:new e(b,c),slicedSegments:[]}}else if(c.length===0&&Fxa(a,c,d)){b=Ej;e=a.segments;f=a.children;var g={};d=
m(d);for(var k=d.next();!k.done;k=d.next())if(k=k.value,Gxa(a,c,k)&&!f[Ij(k)]){var l=new Ej([],{});g[Ij(k)]=l}a=Object.assign({},f,g);c={segmentGroup:new b(e,a),slicedSegments:c}}else c={segmentGroup:new Ej(a.segments,a.children),slicedSegments:c};return c},Exa=function(a,b,c){return c.some(function(d){return Gxa(a,b,d)&&Ij(d)!=="primary"})},Fxa=function(a,b,c){return c.some(function(d){return Gxa(a,b,d)})},Gxa=function(a,b,c){return(a.hasChildren()||b.length>0)&&c.pathMatch==="full"?!1:c.path===
""},Jxa=function(a,b,c,d,e,f,g,k){g=g===void 0?"emptyOnly":g;return y(function(l){return l.return((new Ixa(a,b,c,d,e,g,f,k)).recognize())})},Kxa=function(a){a.sort(function(b,c){return b.value.outlet==="primary"?-1:c.value.outlet==="primary"?1:b.value.outlet.localeCompare(c.value.outlet)})},Lxa=function(a){return(a=a.value.routeConfig)&&a.path===""},Mxa=function(a){var b=[],c=new Set;a=m(a);for(var d=a.next(),e={};!d.done;e={node$jscomp$209:void 0},d=a.next())e.node$jscomp$209=d.value,Lxa(e.node$jscomp$209)?
(d=b.find(function(f){return function(g){return f.node$jscomp$209.value.routeConfig===g.value.routeConfig}}(e)),d!==void 0?(d.children.push.apply(d.children,q(e.node$jscomp$209.children)),c.add(d)):b.push(e.node$jscomp$209)):b.push(e.node$jscomp$209);a=m(c);for(e=a.next();!e.done;e=a.next())e=e.value,d=Mxa(e.children),b.push(new Kj(e.value,d));return b.filter(function(f){return!c.has(f)})},Oxa=function(a,b,c,d,e,f,g){var k=a.get(Nxa);return ke(function(l){return ce(l).pipe(yf(function(r){return k(a,
b,c,d,r.extractedUrl,e,f,g)}),A(function(r){return Object.assign({},l,{targetSnapshot:r.state,urlAfterRedirects:r.tree})}))})},Rxa=function(a,b){return ke(function(c){var d=c.targetSnapshot,e=c.guards.canActivateChecks;if(!e.length)return ce(c);var f=new Set(e.map(function(w){return w.route})),g=new Set;e=m(f);for(var k=e.next();!k.done;k=e.next())if(k=k.value,!g.has(k)){k=m(Pxa(k));for(var l=k.next();!l.done;l=k.next())g.add(l.value)}var r=0;return Vd(g).pipe(ala(function(w){if(f.has(w))return Qxa(w,
d,a,b);w.data=Swa(w,w.parent,a).resolve;return ce(void 0)}),Af(function(){return r++}),pla(),ke(function(){return r===g.size?ce(c):se}))})},Pxa=function(a){var b=a.children.map(function(c){return Pxa(c)}).flat();return[a].concat(q(b))},Qxa=function(a,b,c,d){var e=a.routeConfig,f=a._resolve;(e==null?void 0:e.title)!==void 0&&typeof e.title!=="string"&&e.title!==null&&(f[Rwa]=e.title);return ne(function(){a.data=Swa(a,a.parent,c).resolve;return Sxa(f,a,b,d).pipe(A(function(g){a._resolvedData=g;a.data=
Object.assign({},a.data,g);return null}))})},Sxa=function(a,b,c,d){var e=Yva(a);if(e.length===0)return ce({});var f={};return Vd(e).pipe(ke(function(g){return Txa(a[g],b,c,d).pipe(pf(),Af(function(k){f[g]=k}))}),pla(),A(function(){return f}),gf(function(g){return oxa(g)?se:de(g)}))},Txa=function(a,b,c,d){var e,f=(e=Jj(b))!=null?e:d,g=Oj(a,f);a=g.resolve?g.resolve(b,c):gd(f,function(){return g(b,c)});return Bj(a)},Uxa=function(a){return yf(function(b){var c=a(b);return c?Vd(c).pipe(A(function(){return b})):
ce(b)})},Zxa=function(a,b,c){var d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:return z(r,$va(gd(b,function(){return a.loadChildren()})),2);case 2:return d=r.yieldResult,z(r,Promise.resolve(Vxa(d)?d["default"]:d),3);case 3:e=r.yieldResult;if(e instanceof Wxa||Array.isArray(e)){f=e;r.jumpTo(4);break}return z(r,Promise.resolve(new Xxa(e)),5);case 5:f=r.yieldResult;case 4:return c&&c(a),Array.isArray(f)?k=f:(g=f.create(b).injector,k=g.get(Yxa,[],{optional:!0,self:!0}).flat()),l=k.map(Xwa),
r.return({routes:l,injector:g})}})},Vxa=function(a){return a&&typeof a==="object"&&"default"in a},bya=function(a,b,c){var d=a.get($xa),e=a.get(Rh);if(!e.startViewTransition||d.skipNextTransition)return d.skipNextTransition=!1,new Promise(function(r){return setTimeout(r)});var f,g=new Promise(function(r){f=r}),k=e.startViewTransition(function(){f();return aya(a)});k.ready.catch(function(){});var l=d.onViewTransitionCreated;l&&gd(a,function(){return l({transition:k,from:b,to:c})});return g},aya=function(a){return new Promise(function(b){Ee({read:function(){return setTimeout(b)}},
{injector:a})})},cya=function(a,b){a.events.pipe(ue(function(c){return c instanceof Pj||c instanceof Qj||c instanceof Rj||c instanceof Sj}),A(function(c){return c instanceof Pj||c instanceof Sj?0:c instanceof Qj&&(c.code===0||c.code===1)?2:1}),ue(function(c){return c!==2}),lf(1)).subscribe(function(){b()})},dya=function(a,b){return{"\u0275kind":a,"\u0275providers":b}},eya=function(a,b){if(a&1){var c=t();K(0,"link-chip",13);N("removeContextSource",function(d){u(c);var e=P(3);return v(e.removeContextSource(d))});
L()}a&2&&(a=b.$implicit,I("label",Dg(a.label))("iconUrl",Dg(a.imgSrc))("linkUrl",Dg(a.fullUrl))("showRemoveButton",!0))},fya=function(a){a&1&&(K(0,"span",11),Q(1,"Links:"),L(),Nf(2,eya,1,7,"link-chip",12,Mf));a&2&&(P(2),a=ag(0),B(2),Of(a))},gya=function(a){a&1&&(K(0,"span",9)(1,"mat-icon",14),Q(2,"error"),L(),K(3,"span"),Q(4),L()());a&2&&(P(2),a=ag(2),B(4),S(" ",a," "))},hya=function(a){a&1&&(K(0,"span",10)(1,"span",15),Q(2,"Links:"),L(),K(3,"a",16),Q(4),K(5,"mat-icon",17),Q(6,"open_in_new"),L()()());
a&2&&(a="Learn more about links "+P(2).agentName+" can use",B(4),S(" ",a," "))},iya=function(a){a&1&&(K(0,"div",1),F(1,fya,4,0)(2,gya,5,1,"span",9)(3,hya,7,1,"span",10),L());if(a&2){P();a=ag(0);var b=ag(2);B();G(a&&a.length>0?1:b?2:3)}},jya=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P();return v(c.cancelDuckieStream())});K(1,"mat-icon",19);Q(2," stop_circle ");L()()}},kya=function(a){if(a&1){var b=t();K(0,"button",20);T(1,"async");T(2,"async");N("click",function(){u(b);
var c=P();return v(c.sendMessage())});K(3,"mat-icon",19);Q(4," send ");L()()}a&2&&(a=P(),I("disabled",U(1,2,a.isDuckieThinking$)||!(a.inputText()&&(a.inputText()||"").trim().length>0)),If("aria-label",U(2,4,a.isDuckieThinking$)?"Stop Duckie's response":"Send message"))},lya=function(a){a&1&&Vf(0,null,0)},mya=function(a){if(a&1){var b=t();K(0,"message-input",2);N("submitMessage",function(c){u(b);var d=P();return v(d.submitMessage.emit(c))});L()}a&2&&(a=P(),I("inputText",a.inputText()))},nya=function(a){a&
1&&(Qf(0,"span"),Q(1),Rf());a&2&&(a=P(),B(),yg(a.overrideAgentName))},oya=function(a){a&1&&(Qf(0,"a",2),Q(1,"Duckie"),Rf())},pya=function(a){a&1&&Vf(0,null,0)},qya=function(a){a&1&&M(0,"reminder-blurb")},Tj=function(a){a||(a=p(Ce));var b=new Td(function(c){if(a.destroyed)c.next();else return a.onDestroy(c.next.bind(c))});return function(c){return c.pipe(zf(b))}},rya=function(a){var b=p(ye),c=new uf(1),d=ef(function(){try{var e=a()}catch(f){Oc(function(){return c.error(f)});return}Oc(function(){return c.next(e)})},
{injector:b,manualCleanup:!0});b.get(Ce).onDestroy(function(){d.destroy();c.complete()});return c.asObservable()},tya=function(a,b){var c,d,e=(b==null?0:b.manualCleanup)?null:(d=b==null?void 0:(c=b.injector)==null?void 0:c.get(Ce))!=null?d:p(Ce);c=sya(b==null?void 0:b.equal);var f=(b==null?0:b.requireSync)?ng({kind:0},{equal:c}):ng({kind:1,value:b==null?void 0:b.initialValue},{equal:c});a=a.subscribe({next:function(k){return f.set({kind:1,value:k})},error:function(k){f.set({kind:2,error:k});var l;
(l=g)==null||l()},complete:function(){var k;(k=g)==null||k()}});if((b==null?0:b.requireSync)&&f().kind===0)throw new Sc(601,!1);var g=e==null?void 0:e.onDestroy(a.unsubscribe.bind(a));return Zg(function(){var k=f();switch(k.kind){case 1:return k.value;case 2:throw k.error;case 0:throw new Sc(601,!1);}},{equal:b==null?void 0:b.equal})},sya=function(a){a=a===void 0?Object.is:a;return function(b,c){return b.kind===1&&c.kind===1&&a(b.value,c.value)}},uya=function(a){a&1&&(K(0,"div",1),M(1,"div",4)(2,
"div",5)(3,"div",6),L())},vya=function(a,b){if(a&1){var c=t();K(0,"button",10);N("click",function(){var d=u(c).$implicit,e=P(2);d=d.prompt;e.draftQuery.set(d);e.sendQuestion(d);return v()});Q(1);L()}a&2&&(a=b.$implicit,b=P(2),I("ve",b.ve.ProductionAgentZeroStateSuggestionChip)("veClick",!0),Hf("aria-label",a.label),B(),S(" ",a.label," "))},xya=function(a,b){a&1&&(K(0,"div",7)(1,"div",8),Q(2),L(),Nf(3,vya,2,4,"button",9,wya),L());a&2&&(a=b.$implicit,b=P(),wg("hidden",b.isLoading()),B(2),yg(a.title),
B(),Of(a.examples))},Uj=function(a,b){yya[a]=(yya[a]||0)+1;if(typeof b==="function")return zya(a,function(){return Object.assign({},b.apply(null,q($c.apply(0,arguments))),{type:a})});switch(b?b._as:"empty"){case "empty":return zya(a,function(){return{type:a}});case "props":return zya(a,function(c){return Object.assign({},c,{type:a})});default:throw Error("cc");}},Wj=function(){return{_as:"props",_p:void 0}},zya=function(a,b){return Object.defineProperty(b,"type",{value:a,writable:!1})},Aya=function(a){if(a===
null||a===void 0)throw Error("dc`Store Injector");},Bya=function(a){return typeof a==="function"},Cya=function(a,b){return a===b},Xj=function(a,b,c){b=b===void 0?Cya:b;c=c===void 0?Cya:c;var d=null,e=null,f;return{memoized:function(){if(f!==void 0)return f.result;if(!d)return e=a.apply(null,arguments),d=arguments,e;a:{var g=arguments;for(var k=d,l=b,r=0;r<g.length;r++)if(!l(g[r],k[r])){g=!0;break a}g=!1}if(!g)return e;g=a.apply(null,arguments);d=arguments;return c(e,g)?e:e=g},reset:function(){e=d=
null},setResult:function(g){f={result:g}},clearResult:function(){f=void 0}}},Zj=function(){return Yj(Xj).apply(null,q($c.apply(0,arguments)))},Dya=function(a,b,c,d){if(c===void 0)return b=b.map(function(e){return e(a)}),d.memoized.apply(null,b);b=b.map(function(e){return e(a,c)});return d.memoized.apply(null,[].concat(q(b),[c]))},Yj=function(a){var b=b===void 0?{stateFn:Dya}:b;return function(){var c=$c.apply(0,arguments);if(Array.isArray(c[0])){var d=m(c);c=d.next().value;d=hj(d);c=[].concat(q(c),
q(d))}else c.length===1&&Eya(c[0])&&(c=Fya(c[0]));var e=c.slice(0,c.length-1),f=c[c.length-1],g=e.filter(function(r){return r.release&&typeof r.release==="function"}),k=a(function(){return f.apply(null,$c.apply(0,arguments))}),l=Xj(function(r,w){return b.stateFn.apply(null,[r,e,w,k])});return Object.assign(l.memoized,{release:function(){l.reset();k.reset();g.forEach(function(r){return r.release()})},projector:k.memoized,setResult:l.setResult,clearResult:l.clearResult})}},Eya=function(a){return!!a&&
typeof a==="object"&&Object.values(a).every(function(b){return typeof b==="function"})},Fya=function(a){var b=Object.values(a),c=Object.keys(a);return[].concat(q(b),[function(){var d=$c.apply(0,arguments);return c.reduce(function(e,f,g){var k={};return Object.assign({},e,(k[f]=d[g],k))},{})}])},Gya=function(a,b){b=b===void 0?{}:b;for(var c=Object.keys(a),d={},e=0;e<c.length;e++){var f=c[e];typeof a[f]==="function"&&(d[f]=a[f])}var g=Object.keys(d);return function(k,l){k=k===void 0?b:k;for(var r=!1,
w={},x=0;x<g.length;x++){var C=g[x],H=k[C],J=(0,d[C])(H,l);w[C]=J;r=r||J!==H}return r?w:k}},Hya=function(a,b){return Object.keys(a).filter(function(c){return c!==b}).reduce(function(c,d){var e={};return Object.assign(c,(e[d]=a[d],e))},{})},Iya=function(){var a=$c.apply(0,arguments);return function(b){return a.length===0?b:a.slice(0,-1).reduceRight(function(c,d){return d(c)},(0,a[a.length-1])(b))}},Jya=function(a,b){Array.isArray(b)&&b.length>0&&(a=Iya.apply(null,[].concat(q(b),[a])));return function(c,
d){var e=a(c);return function(f,g){f=f===void 0?d:f;return e(f,g)}}},Kya=function(a){var b=Array.isArray(a)&&a.length>0?Iya.apply(null,q(a)):function(c){return c};return function(c,d){c=b(c);return function(e,f){e=e===void 0?d:e;return c(e,f)}}},Mya=function(a,b){return function(c,d){d=b.action(d)?Lya(d):d;c=a(c,d);return b.state()?Lya(c):c}},Lya=function(a){Object.freeze(a);var b=Bya(a);Object.getOwnPropertyNames(a).forEach(function(c){if(!c.startsWith("\u0275")&&Object.prototype.hasOwnProperty.call(a,
c)&&(b?c!=="caller"&&c!=="callee"&&c!=="arguments":1)){c=a[c];if(c instanceof W){if(c.isImmutable())return;throw Error();}(typeof c!=="object"||c===null)&&!Bya(c)||Object.isFrozen(c)||Lya(c)}});return a},Oya=function(a,b){return function(c,d){if(b.action(d)&&!Nya())throw Error("hc`"+d.type);return a(c,d)}},Rya=function(a,b){return function(c,d){if(b.action(d)){var e=Pya(d);Qya(e,"action")}c=a(c,d);b.state()&&(d=Pya(c),Qya(d,"state"));return c}},Pya=function(a,b){b=b===void 0?[]:b;return a!==void 0&&
a!==null||b.length!==0?Object.keys(a).reduce(function(c,d){if(c)return c;var e=a[d];Bya(e)&&e.hasOwnProperty("\u0275cmp")?d=c:e===void 0||e===null||typeof e==="number"||typeof e==="boolean"||typeof e==="string"||Array.isArray(e)?d=!1:(typeof e!=="object"||e===null||Array.isArray(e)?c=!1:(c=Object.getPrototypeOf(e),c=c===Object.prototype||c===null),d=c?Pya(e,[].concat(q(b),[d])):{path:[].concat(q(b),[d]),value:e});return d},!1):{path:["root"],value:a}},Qya=function(a,b){if(a!==!1){var c=a.path.join(".");
b=Error("ic`"+b+"`"+c+"`"+b);b.value=a.value;b.unserializablePath=c;throw b;}},Vya=function(){return[{provide:Sya,multi:!0,deps:[Tya],useFactory:Uya}]},Uya=function(a){if(a.strictActionTypeUniqueness&&(a=Object.entries(yya).filter(function(b){b=m(b);b.next();return b.next().value>1}).map(function(b){return m(b).next().value}),a.length))throw Error("jc`"+a.map(function(b){return'"'+b+'"'}).join(", "));},Wya=function(a,b){a=a===void 0?{state:void 0}:a;var c=m(b);b=c.next().value;c=c.next().value;return{state:c(a.state,
b),action:b}},ak=function(a,b){var c=$c.apply(2,arguments);return function(d){if(typeof a==="string"){var e=[b].concat(q(c)).filter(Boolean);d=d.pipe(tla.apply(null,[a].concat(q(e))))}else if(typeof a==="function")d=d.pipe(A(function(f){return a(f,b)}));else throw new TypeError("kc`"+typeof a);return d.pipe(nf())}},Xya=function(a){return typeof a==="function"?a():a},bk=function(){var a=$c.apply(0,arguments),b=a.pop();a=a.map(function(c){return c.type});return{reducer:b,types:a}},ck=function(a){for(var b=
new Map,c=m($c.apply(1,arguments)),d=c.next(),e={};!d.done;e={on:void 0},d=c.next()){e.on=d.value;d=m(e.on.types);for(var f=d.next(),g={};!f.done;g={existingReducer:void 0},f=d.next())f=f.value,g.existingReducer=b.get(f),g.existingReducer?b.set(f,function(k,l){return function(r,w){return k.on.reducer((0,l.existingReducer)(r,w),w)}}(e,g)):b.set(f,e.on.reducer)}return function(k,l){k=k===void 0?a:k;var r=b.get(l.type);return r?r(k,l):k}},dk=function(a){var b=a.actions;return b.length===1?b[0]:Yya(a)},
ek=function(a){return function(b,c){if(c.type===Yya.type&&c.actions.length>0){var d=m(c.actions);c=d.next().value;d=hj(d);b=a(b,c);c=m(d);for(d=c.next();!d.done;d=c.next())b=a(b,d.value);return b}return a(b,c)}},$ya=function(a,b){var c=Zya.get(a);c||(c={timer:0,actions:[]},Zya.set(a,c));c.actions.push(b);c.timer||(c.timer=setTimeout(function(){c.timer=0;a.dispatch(dk({actions:c.actions}));c.actions=[]}))},gk=function(a){var b=m(a);a=b.next().value;b=b.next().value;return{previousValue:a,currentValue:b}},
hk=function(a,b){return{previousValue:a.previousValue&&b(a.previousValue)||null,currentValue:a.currentValue&&b(a.currentValue)||null}},kk=function(a,b,c,d,e,f,g,k){return new ik({getKey:a,getSelector:function(l,r){var w=r.getSelector(c,l),x=d?r.getSelector(d,l):void 0,C=e?r.getSelector(e,l):void 0,H=f?r.getSelector(f,l):void 0,J=g?r.getSelector(g,l):void 0;l=k?r.getSelector(k,l):void 0;return x&&C&&H&&J&&l?ie([w,x,C,H,J,l]).pipe(A(function(O){var R=m(O);O=R.next().value;var V=R.next().value;var ca=
R.next().value;var na=R.next().value;var ua=R.next().value;R=R.next().value;return jk(O,V,ca,na,ua,R,b)})):x&&C&&H&&J?ie([w,x,C,H,J]).pipe(A(function(O){var R=m(O);O=R.next().value;var V=R.next().value;var ca=R.next().value;var na=R.next().value;R=R.next().value;return jk(O,V,ca,na,R,b)})):x&&C&&H?ie([w,x,C,H]).pipe(A(function(O){var R=m(O);O=R.next().value;var V=R.next().value;var ca=R.next().value;R=R.next().value;return jk(O,V,ca,R,b)})):x&&C?ie([w,x,C]).pipe(A(function(O){var R=m(O);O=R.next().value;
var V=R.next().value;R=R.next().value;return jk(O,V,R,b)})):x?ie([w,x]).pipe(A(function(O){var R=m(O);O=R.next().value;R=R.next().value;return jk(O,R,b)})):w.pipe(A(function(O){return jk(O,b)}))}})},aza=function(a,b){return a===b},bza=function(a,b){if(a!=null&&Object.getPrototypeOf(a)===Object.prototype&&b!=null&&Object.getPrototypeOf(b)===Object.prototype)a:{for(var c in a)if(!(c in b)||a[c]!==b[c]){a=!1;break a}for(var d in b)if(!(d in a)){a=!1;break a}a=!0}else a=Array.isArray(a)&&Array.isArray(b)?
Gba(a,b):a===b;return a},lk=function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId+",xAxisId:"+a.xAxisId},cza=function(a){return"chartId:"+a.chartId+",layerId:"+a.layerId},mk=function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId+",xAxisId:"+a.xAxisId+",layerId:"+a.layerId},nk=function(a){return"chartId:"+a.chartId},ok=function(a){return"chartGroupId:"+a.chartGroupId},dza=function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId},eza=function(){return Zj(pk,
function(a){return a.focus})},fza=function(){return Zj(pk,function(a){return a.hoverDisabled})},qk=function(a){var b=a.previousValue;a=a.currentValue;return!a||b&&a.height===b.height&&a.width===b.width&&a.margins.top===b.margins.top&&a.margins.right===b.margins.right&&a.margins.bottom===b.margins.bottom&&a.margins.left===b.margins.left?!1:!0},rk=function(a){var b=a.previousValue,c=a.currentValue;if(!b||!c)return!b&&c||b&&!c?!0:!1;a=b.width-b.margins.left-b.margins.right;b=b.height-b.margins.top-b.margins.bottom;
var d=c.width-c.margins.left-c.margins.right;c=c.height-c.margins.top-c.margins.bottom;return!a||!d||Math.abs(d/a-1)>=.4||!b||!c||Math.abs(c/b-1)>=.4},gza=function(a){var b=a.previousValue;if(a=a.currentValue){if(!b)return!1;if(a.height===b.height&&a.width===b.width&&(a.margins.top!==b.margins.top||a.margins.right!==b.margins.right||a.margins.bottom!==b.margins.bottom||a.margins.left!==b.margins.left))return!0}return!1},sk=function(a){var b=a.chartId;return Zj(hza,function(c){return c.entities[b]})},
jza=function(a){var b=function(d){return!(typeof d==="string"&&/^\s*$/.test(d))},c=a.findIndex(b);b=iza(a,b);return c>=0&&b>=0?a.slice(c,b+1):[]},kza=function(a){for(var b=[],c=0;c<a.subtokens_.length;++c)b.push(a.subtoken(c));b=jza(b);return b=b.map(function(d){return d instanceof tk?new tk(d.toString().trim()):d.trim()})},lza=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next())a.append(c.value)},mza=function(a){if(a instanceof tk)return new tk(a.toString().trim());if(a instanceof uk){a=kza(a);
if(a.length>0){var b=new uk(a.shift());lza(b,a);return b}return new uk("")}return a instanceof vk?(a=kza(a),a.length>0?(b=new vk(a.shift()),lza(b,a),b):new vk("")):typeof a==="string"?a.trim():a},oza=function(a){var b=a.chartId;return Zj(nza,function(c){return c.entities[b]})},pza=function(a){var b=a.chartId;var c=[];return Zj(nza,function(d){var e=[];if(d=d.entities[b]){d=m(Object.values(d.byLayer.entities));for(var f=d.next();!f.done;f=d.next())if(f=f.value){f=m(Object.values(f.bySeries.entities));
for(var g=f.next();!g.done;g=f.next())(g=g.value)&&g.dataSeriesMetadata&&e.push(g.dataSeriesMetadata)}}return e.length===c.length&&c.every(function(k,l){return k===e[l]})?c:c=e})},sza=function(a){return Zj(pza({chartId:a.chartId}),function(b){var c={metric:new Set,shortMetric:new Set,aligner:new Set,primaryReducer:new Set,secondaryReducer:new Set,filter:{}};b=m(b);for(var d=b.next();!d.done;d=b.next()){var e=c,f=d.value,g=null;f&&f.metric&&f.metric.type&&(g=f.metric.type);g&&e.metric.add(g);f&&f.shortMetric&&
e.shortMetric.add(f.shortMetric);if(f.requestParams&&(f.requestParams["aggregation.perSeriesAligner"]&&e.aligner.add(f.requestParams["aggregation.perSeriesAligner"]),f.requestParams["aggregation.crossSeriesReducer"]&&e.primaryReducer.add(f.requestParams["aggregation.crossSeriesReducer"]),f.requestParams["secondaryAggregation.crossSeriesReducer"]&&e.secondaryReducer.add(f.requestParams["secondaryAggregation.crossSeriesReducer"]),g&&f.requestParams.filter))for(e.filter[g]||(e.filter[g]={count:0,entries:{}}),
d=e.filter[g].entries,e.filter[g].count++,e=qza(new wk(f.requestParams.filter)),f=0;e&&f<e.length;){var k=e[f++],l=e[f++];g=e[f++];k=k&&k.toString();l=l&&l.toString();g=g&&g.toString();k&&l&&g&&(k=k.replace(/\./g,"").replace(/"/g,"")+(rza[l]||""),d[k]||(d[k]={count:0,set:new Set}),d[k].count++,d[k].set.add(l+g))}}return{metric:c.metric.size,shortMetric:c.shortMetric.size,aligner:c.aligner.size,primaryReducer:c.primaryReducer.size,secondaryReducer:c.secondaryReducer.size,filter:c.filter}})},uza=function(a){var b=
a.chartGroupId;return Zj(tza,function(c){return c.entities[b]})},vza=function(){var a=$c.apply(0,arguments);return function(b){return b.pipe(Cf.apply(null,q(a)),A(function(c){c=m(c);c.next();return hj(c)}))}},xk=function(a){var b=a.run.bind(a);return function(c){return new Td(function(d){return c.subscribe({next:function(e){b(function(){d.next(e)})},error:function(e){b(function(){d.error(e)})},complete:function(){b(function(){d.complete()})}})})}},wza=function(a){return a.viewHandler&&a.viewHandlerUsingContext===
void 0},xza=function(a){return a.viewHandlerUsingContext&&a.viewHandler===void 0},yza=function(a){return a.componentHandler&&a.componentHandlerUsingContext===void 0},zza=function(a){return a.componentHandlerUsingContext&&a.componentHandler===void 0},yk=function(a){return a.chartId},zk=function(a,b){return function(c,d){d=d.chartId;return c.entities[d]?c:a.addOne(Object.assign({},b,{chartId:d}),c)}},Ak=function(a){return function(b,c){return a.removeOne(c.chartId,b)}},Bk=function(a,b){return function(c,
d){var e=d.previousChartId;var f=d.currentChartId;return e&&f&&c.entities[e]?a.mapOne({id:e,map:function(g){return Object.assign({},g,{chartId:f})}},c):e&&c.entities[e]||c.entities[f]?c:a.addOne(Object.assign({},b,{chartId:f}),c)}},Aza=function(a,b){return function(c,d){var e=d.chartId;var f=d.previousLayerId;var g=d.currentLayerId;d=c.entities[e];if(!d||!f||!d.byLayer.entities[f])return c;f=b.mapOne({id:f,map:function(k){return Object.assign({},k,{layerId:g})}},d.byLayer);return a.upsertOne(Object.assign({},
d,{byLayer:f}),c)}},Bza=function(a){return a.chartGroupId},Cza=function(a,b){return function(c,d){d=d.chartGroupId;return c.entities[d]?c:a.addOne(Object.assign({},b,{chartGroupId:d}),c)}},Dza=function(a){return function(b,c){return a.removeOne(c.chartGroupId,b)}},Ck=function(a){return a.layerId},Fza=function(){var a=Dk,b=Eza;return function(c,d){var e=d.chartId;d=d.yAxisId;return c.entities[e+","+d]?c:a.addOne(Object.assign({},b,{chartId:e,yAxisId:d}),c)}},Ek=function(a,b,c){return c&&b&&c!=="chart_group"?
"chartId:"+b+",xAxisId:"+c:"chartGroupId:"+a},Gza=function(a){return Ek(a.chartGroupId,a.chartId,a.xAxisId)},Hza=function(a){if(a.length===3)return a.toUpperCase();a=a.replace(/\//g,"").replace(/_/g,"").replace(/-/g,"");return a=a.charAt(0).toLowerCase()+a.substring(1)},Gk=function(a,b){if(b)a:{a="TimeZoneConstants"in Iza?Iza.TimeZoneConstants["en-US"]:void 0;a=a!=null?a:Jza;if(b){var c,d=(c=a[b])!=null?c:a[Hza(b)];if(d){b=Fk(d);break a}}b=Intl.DateTimeFormat().resolvedOptions().timeZone;b=(b=a[Hza(b)])?
Fk(b):Fk(Kza)}else b=Fk(a!=null?a:Kza);return b},Mza=function(a,b){return typeof a==="object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?(a==null?void 0:a.scaleType)===(b==null?void 0:b.scaleType)&&(a==null?void 0:a.min)===(b==null?void 0:b.min)&&(a==null?void 0:a.max)===(b==null?void 0:b.max)&&(a==null?void 0:a.unit)===(b==null?void 0:b.unit)&&(a==null?void 0:a.tickIncrement)===(b==null?void 0:b.tickIncrement)&&(a==null?void 0:a.absoluteMin)===(b==null?void 0:b.absoluteMin)&&
Lza(a==null?void 0:a.ticks,b==null?void 0:b.ticks):a===b},Lza=function(a,b){if(a&&b&&Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++){var d=a[c],e=b[c];if(!d||!e||d.label!==e.label||d.value!==e.value)return!1}return!0}return a===b},Nza=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},Oza=function(a){return{key:a,coef:1,suffix:a,base:0,scale:0}},Pza=function(a){return{key:a,coef:1,suffix:a,compatibilityKeys:["0"],operators:[],components:[Oza(a)]}},
Tza=function(a){var b=a.match(Qza);if(!b)return Oza(a);var c=b[1]||"";b=b[2]||"";if(!c&&!b)return Oza(a);c&&!b&&(b="1");a=Rza[b];if(c){var d=Sza[c];return Object.assign({},a,{key:b==="1"?c:c+a.key,coef:a.coef*d.coef,suffix:c+(a.suffix||""),scale:d.scale})}return a},Hk=function(a){a=a.trim();a=a.replace(/\s/g,"");a=a.replace("(rate)","/s");a=a.replace(/([^\.\/\{\}]+)(\{[^\{\}]+\})/g,"$1");a=a.replace(/\{[^\{\}]+\}/g,"1");return Uza(a)},Uza=function(a){var b=/^(.*?)(\.|\/)?([^\/\.]*)$/,c=m(a.match(b)||
[]);c.next();var d=c.next().value,e=c.next().value;c=c.next().value;var f=e;if(c){a=Vza[c]||c;c=m(a.match(b)||[]);c.next();b=c.next().value;e=c.next().value;c=c.next().value;b&&(d=(d||"").concat(f||"",b),f=e,a=c);b=Tza(a);if(d&&f){d=Uza(d);var g=Tza(a);a=f==="/"?d.coef/g.coef:d.coef*g.coef;b=f==="/"&&g.base===5;e=d.components.length===1&&d.components[0].base===g.base;if(!b&&e&&(c=Wza(g.scale,g.base,a)))return{key:c.key,coef:c.coef,prefix:c.prefix,suffix:c.suffix,compatibilityKeys:a===1&&f==="/"?[String(c.base),
"1"]:[String(c.base)],operators:[],components:[c]};c=d.compatibilityKeys.map(function(k){return k+f+g.base});return{key:d.key+f+g.key,coef:a,prefix:d.prefix||"",suffix:(d.suffix||"")+f+((g.prefix||"")+(g.suffix||"")),compatibilityKeys:e&&b?c.concat(["1"]):c,operators:d.operators.concat([f]),components:d.components.concat([g])}}return{key:b.key,coef:b.coef,prefix:b.prefix,suffix:b.suffix,compatibilityKeys:[String(b.base)],operators:[],components:[b]}}return Pza(a)},Wza=function(a,b,c){var d;a=(d=Xza[(a===
void 0?1:a)+","+b])!=null?d:[];d=null;a=m(a);for(b=a.next();!b.done;b=a.next())b=Tza(b.value),b.coef===c&&(d=b);return d},Yza=function(a,b,c){c=c===void 0?{}:c;a=Hk(a);if(a.components.length===0)return null;for(var d=null,e=0;e<a.components.length;e++){var f=a.operators[e-1],g=a.components[e];if(!(c.neverScaleRates&&e>0&&f==="/"&&g.base===5)){f=f!=="."&&f?!b:b;var k=Xza[(g.scale||1)+","+g.base];k?(g=k.indexOf(g.key),g=g<0?null:(g=k[g+(f?1:-1)])?Tza(g):null):g=null;if(g){b=a.components.slice(0,e).concat([g]).concat(a.components.slice(e+
1));c="";for(d=0;d<b.length;d++)c+=(a.operators[d-1]||"")+b[d].key;d=Hk(c);break}}}var l,r;return(r=(l=d)==null?void 0:l.key)!=null?r:null},Ik=function(a){return a!==null&&a!=="{not_a_unit}"},Jk=function(a,b){a=Number(a);if(Number.isNaN(a))return NaN;if(a===0)return 0;var c=Infinity;if(b)for(c=0;Math.abs(b)<1;)c++,b*=10;for(b=0;Math.abs(a)<1&&b<c;)b++,a*=10;c=Number(a.toFixed(4));if(b){a=b+4;try{return Number((c/Math.pow(10,b)).toFixed(a))}catch(d){if(d instanceof RangeError){if(a<0)throw Error("Cc");
return 0}throw d;}}return c},Zza=function(a){return/^((.*)[/]\2)|1$/.test(a)},$za=function(a,b){return a.compatibilityKeys.some(function(c){return b.compatibilityKeys.includes(c)})||Zza(a.key)&&Zza(b.key)},aAa=function(a){a=Hk(a);return Zza(a.key)},bAa=function(a){return(a=a.match(/(\{[^}]*\})/))?a[1]:null},cAa=function(a,b){a=Hk(a);b=Hk(b);return $za(a,b)?a.components.length<b.components.length:!1},dAa=function(a,b){if(a===b)return!0;if(!Ik(a)||!Ik(b))return!1;a=Hk(a);b=Hk(b);return $za(a,b)},Kk=
function(a,b){if(a===b)return 1;if(!Ik(a)||!Ik(b))return null;a=Hk(a);b=Hk(b);return $za(a,b)?a.coef/b.coef:null},Lk=function(a,b,c,d){d=d===void 0?!1:d;return c===null||c===void 0?null:a===b?d?c:Jk(c):Ik(a)&&Ik(b)?(a=Kk(a,b))?d?c*a:Jk(c*a):null:null},eAa=function(a,b){b=b===void 0?{}:b;return Yza(a,!0,b)},fAa=function(a,b){b=b===void 0?{}:b;return Yza(a,!1,b)},lAa=function(a,b,c){gAa(hAa,3);iAa(hAa,0);hAa.showTrailingZeros_=!1;b=Ik(b)&&Hk(b)||Pza("");var d=a<0?"-":"";a=(c==null?0:c.ignoreFloatImprecision)?
Math.abs(a):Jk(Math.abs(a));if(a===0&&(c==null||!c.forceUnitZero))return{negativeSign:"",unitPrefix:"",integerDigits:"0",decimalSeparator:"",fractionDigits:"",unitSuffix:""};var e=hAa;(c==null?0:c.maximumFractionDigits)&&gAa(e,c.maximumFractionDigits);(c==null?0:c.significantDigits)&&iAa(e,c.significantDigits);if(c==null?0:c.showTrailingZeros)e.showTrailingZeros_=c.showTrailingZeros!=0;if(a!==0&&(a<1E-9||a>1E12)&&(e=jAa,b.coef!==1)){c=b;for(var f=c.coef>1;c!==null&&c.coef!==1&&(f&&c.coef>1||!f&&c.coef<
1);){var g=f?fAa(c.key):eAa(c.key);if(!g)break;c=Hk(g)}f=Kk(b.key,c.key);f!==null&&c&&(a*=f,b=c)}b.components.length>0&&b.components[0].base===3&&b.components[0].coef===1&&a%1!==0&&(e=kAa);a=e.format(a).split(Mk.DECIMAL_SEP);return{negativeSign:d,unitPrefix:b.prefix||"",integerDigits:a[0]||"",decimalSeparator:a.length===2?Mk.DECIMAL_SEP:"",fractionDigits:a[1]||"",unitSuffix:b.suffix||""}},mAa=function(a){return a.negativeSign+a.unitPrefix+a.integerDigits+a.decimalSeparator+a.fractionDigits},Nk=function(a,
b,c){a=lAa(a,b,c);return mAa(a)+a.unitSuffix},pAa=function(a,b){var c=Jk(Math.abs(a.min)),d=Jk(Math.abs(a.max)),e=Math.min(c,d);d=Math.max(c,d);var f=b.idealMaxMagnitude-b.idealMinMagnitude;c=a.unit;if(dAa(a.unit,"%"))c="%";else{if(e===0&&d===0)return a;f=Math.log10(d)-Math.log10(e)>f;e=e===0||f?d:e;var g=Math.log10(e);d=a.unit;f=g>b.idealMaxMagnitude?2:g<b.idealMinMagnitude?1:0;if(f===0)return a;for(;nAa(f,g,b,a.unit);){c=d;d=oAa(f,d,b);if(!d)break;g=Lk(a.unit,d,e);if(g===null)break;g=Math.log10(g)}}b=
Lk(a.unit,c,a.min);e=Lk(a.unit,c,a.max);return b===null||e===null?a:{min:b,max:e,unit:c}},nAa=function(a,b,c,d){if((b>c.countPrefixMaxMagnitude||b<c.countPrefixMinMagnitude)&&dAa(d,"1"))return!1;switch(a){case 2:return b>c.idealMinMagnitude;case 1:return b<c.idealMaxMagnitude;default:return!1}},oAa=function(a,b,c){c=c===void 0?{}:c;if(!b)return null;switch(a){case 2:return eAa(b,c);case 1:return fAa(b,c);default:return null}},rAa=function(a,b){return qAa.format(a,b)},sAa=function(a){return a.includes("%")||
a==="ratio"||a==="percent"},uAa=function(a,b){var c="",d="";if(a===null)return{value:c,unit:d};b!==null&&aAa(b)&&(b=bAa(b)||b);if(b===""||b==="{not_a_unit}")b="1";var e=pAa({min:0,max:a,unit:b},tAa).unit;a=Lk(b,e,a);if(a===null)return{value:c,unit:d};d=lAa(a,e);c=mAa(d);d=d.unitSuffix;return{value:c,unit:d}},vAa=function(a,b,c){if(!a)return null;for(var d=-Infinity,e=Infinity,f=Infinity,g=m(a.series),k=g.next();!k.done;k=g.next()){k=m(k.value.data);for(var l=k.next();!l.done;l=k.next()){l=l.value;
var r=void 0;if(!(b!==null&&((r=l.x0)!=null?r:l.x).valueOf()<b||c!==null&&l.x.valueOf()>c)){var w=r=void 0;d=Math.max(d,l.y,(r=l.y0)!=null?r:d,(w=l.y1)!=null?w:d);w=r=void 0;e=Math.min(e,l.y,(r=l.y0)!=null?r:e,(w=l.y1)!=null?w:e);f=Math.min(f,Math.abs(l.y||f),Math.abs(l.y0||f),Math.abs(l.y1||f))}}}return d===-Infinity||e===Infinity?null:{priority:1,absoluteMin:f,min:e,max:d,unit:a.unit}},wAa=function(a,b){return{x0:b,x1:a,max:-Infinity,min:Infinity,absoluteMin:Infinity}},xAa=function(a){return a.filter(function(b){return!isNaN(b.y)&&
isFinite(b.y)})},yAa=function(a){if(a==null||!a.series)return null;var b=new Map;a=m(a.series);for(var c=a.next();!c.done;c=a.next()){c=xAa(c.value.data);c=m(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.x.valueOf(),f=void 0,g=void 0,k=b.get(e)||wAa(e,(g=(f=d.x0)==null?void 0:f.valueOf())!=null?g:void 0),l=g=f=void 0;k.max=Math.max(k.max,d.y,(f=d.y0)!=null?f:-Infinity,(g=d.y1)!=null?g:-Infinity,(l=d.max)!=null?l:-Infinity);l=g=f=void 0;k.min=Math.min(k.min,d.y,(f=d.y0)!=null?f:Infinity,
(g=d.y1)!=null?g:Infinity,(l=d.min)!=null?l:Infinity);k.absoluteMin=Math.min(k.absoluteMin,Math.abs(d.y||Infinity),Math.abs(d.y0||Infinity),Math.abs(d.y1||Infinity),Math.abs(d.min||Infinity));b.set(e,k)}}return b.size===0?null:Array.from(b.values()).sort(function(r,w){return r.x1-w.x1})},Ok=function(a,b,c,d,e,f){if(!a)return null;e&&f&&(c=Lk(f,e,c),d=Lk(f,e,d));e={max:-Infinity,min:Infinity,absoluteMin:Infinity};if(c)a:{f=0;for(var g=a.length-1,k=Math.floor((f+g)/2);f<g;){if(c<a[k].x1)g=k;else if(c>
a[k].x1)f=k+1;else{c=k;break a}k=Math.floor((f+g)/2)}var l;c=(l=k)!=null?l:0}else c=0;if(d)a:{g=0;l=a.length-1;for(f=Math.ceil((g+l)/2);g<l;){k=void 0;if(d<((k=a[f].x0)!=null?k:a[f].x1))l=f-1;else if(g=void 0,d>((g=a[f].x0)!=null?g:a[f].x1))g=f;else{d=f;break a}f=Math.ceil((g+l)/2)}var r;d=(r=f)!=null?r:a.length-1}else d=a.length;a=m(a.slice(c,d+1));for(r=a.next();!r.done;r=a.next())r=r.value,e.max=Math.max(e.max,r.max),e.min=Math.min(e.min,r.min),e.absoluteMin=Math.min(e.absoluteMin,r.absoluteMin||
Infinity);return Object.assign({},{priority:1},e,{unit:b})},Pk=function(a,b){return!!(!a&&b||a&&!b||a&&b&&(a.min!==b.min||a.max!==b.max||a.absoluteMin!==b.absoluteMin||a.unit!==b.unit||a.priority!==b.priority))},zAa=function(a){if(!a)return null;var b=a.xAxisUnit||"ms_since_epoch",c=-Infinity,d=Infinity;a=m(a.series);for(var e=a.next();!e.done;e=a.next()){e=m(e.value.data);for(var f=e.next();!f.done;f=e.next()){var g=f.value;f=g.x.valueOf();var k=void 0;g=(k=g.x0)==null?void 0:k.valueOf();f>c&&(c=
f);f<d&&(d=f);g!==void 0&&(g>c&&(c=g),g<d&&(d=g))}}return c===-Infinity||d===Infinity?null:{priority:1,min:d,max:c,unit:b}},AAa=function(a,b,c,d,e,f){return isFinite(a)?f===void 0&&b>d?[b,a]:b===d||f!==void 0&&f.includes(b)?[b,e(c,a)]:[d,c]:[d,c]},BAa=function(a){return!a.min||a.min>0?Object.assign({},a,{min:0}):!a.max||a.max<0?Object.assign({},a,{max:0}):a},CAa=function(a){if(!a)return null;var b=new Set;a=m(a.series);for(var c=a.next();!c.done;c=a.next()){c=m(c.value.data);for(var d=c.next();!d.done;d=
c.next())b.add(d.value.x)}return{categories:[].concat(q(b.values()))}},DAa=function(a){if(!a)return null;for(var b=Infinity,c=-Infinity,d=m(a.series),e=d.next();!e.done;e=d.next()){e=m(e.value.data);for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=void 0;b=Math.min(b,f.y,(g=f.y1)!=null?g:Infinity);g=void 0;c=Math.max(c,f.y,(g=f.y1)!=null?g:-Infinity)}}b=Math.min(0,b);c=Math.max(0,c);return{priority:1,min:b,max:c,unit:a.unit}},EAa=function(a,b){if(a.length===0)return null;var c=0,d=0,e=Infinity,
f=-Infinity;a=m(a);for(var g=a.next();!g.done;g=a.next()){var k=g.value;g=k.priority;var l=k.min,r=k.max;k.unit!=="ms_since_epoch"||b!==void 0&&!b.includes(g)||(k=void 0,l=(k=l)!=null?k:e,k=void 0,r=(k=r)!=null?k:f,e=m(AAa(l,g,e,c,Math.min)),c=e.next().value,e=e.next().value,f=m(AAa(r,g,f,d,Math.max)),d=f.next().value,f=f.next().value)}return e===Infinity||f===-Infinity?null:{min:e,max:f}},GAa=function(a,b,c){var d=EAa(a),e=EAa(a,[0,1]);if(!d)return{max:null,min:null,ticks:[],tickIncrement:null,scaleType:0,
unit:"ms_since_epoch"};a=d.max-d.min;a===0&&(--d.min,d.max+=1,a=2);e&&(e=.01*(e.max-e.min),b.lastUpdateCausedBy===4&&a<e&&(e=Jk((e-(d.max-d.min))/2),d.min-=e,d.max+=e));if(!b.axisWidth||b.axisWidth<0)return Object.assign({},d,{ticks:[],tickIncrement:null,scaleType:0,unit:"ms_since_epoch"});e=Math.max(1,b.axisWidth/75);for(var f=Qk.FIVE_MINUTES,g=Infinity,k=m(FAa),l=k.next();!l.done;l=k.next()){l=l.value;var r=Math.abs(e-a/l)/e;r>g||(f=l,g=r)}a=f;e=Gk(b.timezoneOffset,b.timeZoneId);b.shift&&(d.min+=
b.shift,d.max+=b.shift);b=c(d,a,e);return Object.assign({},d,{ticks:b,tickIncrement:a,scaleType:0,unit:"ms_since_epoch"})},JAa=function(a,b){return GAa(a,b,function(c,d,e){var f=[],g=Rk(e,new Date(c.min))*6E4;var k=c.min-g;k=k+(d-k%d)%d+g;var l;g=(l=HAa[d])==null?void 0:l.format(new Date(k-d),e);for(l=Rk(e,new Date(k));k<=c.max;k+=d){var r=Rk(e,new Date(k));r!==l&&(l=(r-l)*6E4,l%d!==0&&(k+=l));l=r;r=IAa[d].format(new Date(k),e);var w=void 0,x=(w=HAa[d])==null?void 0:w.format(new Date(k),e);g&&x&&
x!==g?f.push({label:x,value:k}):f.push({label:r,value:k});g=x}return f})},KAa=function(a){return[].concat(q(new Set(a.map(function(b){return b.categories}).flat())))},LAa=function(a){return{categories:KAa(a)}},MAa=function(a,b,c){if(a.length===0)return null;for(var d=0,e=0,f=Infinity,g=-Infinity,k=null,l=m(a),r=l.next();!r.done;r=l.next()){var w=r.value;r=w.unit;w=w.constraints;var x=void 0;!r||k&&!cAa(r,k)||((x=w)==null?0:x.onlyApplyIfUnitCompatible)||(k=r)}k&&aAa(k)&&(k=bAa(k)||k);l=m(a);for(r=
l.next();!r.done;r=l.next()){var C=r.value;r=C.priority;x=C.min;w=C.max;var H=void 0;C=(H=C.unit)!=null?H:k;x=x!==void 0&&x!==null?Lk(C,k,x):null;w=w!==void 0&&w!==null?Lk(C,k,w):null;x!==null&&(f=m(AAa(x,r,f,d,Math.min,b)),d=f.next().value,f=f.next().value);w!==null&&(g=m(AAa(w,r,g,e,Math.max,b)),e=g.next().value,g=g.next().value)}b=Math.max(Math.abs(f),Math.abs(g));if(f===Infinity||g===-Infinity)return null;f=Jk(f,b);g=Jk(g,b);f>g&&(g=f=d=e>d?g:f);d=k;c&&a.filter(function(J){var O;return!((O=J.constraints)==
null?0:O.onlyApplyIfUnitCompatible)}).map(function(J){return J.unit}).filter(function(J){return J!==null}).filter(function(J){return J!=="1"}).some(function(J){return!dAa(J,k)})&&(d=null);return{min:f,max:g,unit:d}},NAa=function(a){var b=a.min,c=a.max,d=Math.abs(c-b),e=c+d*.5;d=b-d*.5;return{min:b>=0&&d<=0?0:d,max:c<=0&&e>=0?0:e,unit:a.unit}},RAa=function(a,b,c){c=c===void 0?40:c;var d=Jk(a.max-a.min);if(d===0)return Jk(a.max)===0?1:Math.pow(10,Math.floor(Math.log10(a.max)));a=Math.max(2,Math.min(10,
Math.floor(b/c)));b=Infinity;c=d;for(var e=1;e<a;e++){var f=d/e,g=f;var k=e===a-1?1:3;var l=Math.floor(Math.log(g)/Math.LN10);g/=Math.pow(10,l);switch(k===void 0?3:k){case 1:k=g>5?10:g>2?5:g>1?2:1;break;case 2:k=g<2?1:g<5?2:g<10?5:10;break;default:k=g>=OAa?10:g>=PAa?5:g>=QAa?2:1}l=k*Math.pow(10,l);f=Math.abs(l-f);f<=b&&(b=f,c=l)}return c},SAa=function(a,b){var c=a.min-(a.min<0?(b-Math.abs(a.min)%b)%b:a.min%b),d=a.max+(a.max<0?Math.abs(a.max)%b:(b-Math.abs(a.max)%b)%b);if(Jk(c)===Jk(d)){var e=c-b;
c=c>=0&&e<0?0:e;d+=b}return{min:Jk(c),max:Jk(d),unit:a.unit}},TAa=function(a){return a},UAa=function(a,b,c,d){d=d===void 0?TAa:d;for(var e=[],f=a.min,g={maximumFractionDigits:9},k={domain:a};f<=a.max;){e.push({label:c(f,a.unit||"1",g,k),value:f});var l=Jk(f+b);if(l===f||l<a.min){e.push({label:c(a.max,a.unit||"1",g,k),value:a.max});break}f=l}return d(e,a.unit)},VAa=function(a){return a.reduce(function(b,c){c=String(c.value).split(".")[1];return Math.max(b,c?c.length:0)},0)+2},YAa=function(a,b,c,d,
e){var f=b===void 0?{}:b;var g=f.axisLength===void 0?500:f.axisLength;b=f.lastUpdateCausedBy===void 0?0:f.lastUpdateCausedBy;f=f.valueFormatter===void 0?Nk:f.valueFormatter;var k=c===void 0?{}:c;c=k.neverScaleRates;var l=k.neverScaleUnits;var r=k.ignoreAllUnitsIfIncompatible;k=k.minYRangePercent;d=d===void 0?TAa:d;e=e===void 0?40:e;var w=MAa(a,[0,1],r),x=w?NAa(w):null;a=MAa(a,void 0,r);if(!a)return{min:null,max:null,unit:null,tickIncrement:null,absoluteMin:void 0,ticks:[],scaleType:0,maximumFractionDigits:void 0};
b===4&&x&&x.unit===a.unit&&(x.min>a.min&&(a.min=x.min),x.max<a.max&&(a.max=x.max));var C;l?C={min:a.min,max:a.max,unit:a.unit}:C=pAa(a,{neverScaleRates:c,idealMaxMagnitude:1,idealMinMagnitude:0,countPrefixMaxMagnitude:WAa,countPrefixMinMagnitude:XAa});w&&(a=Kk(w.unit,C.unit)||1,a=(k!=null?k:.01)*(a*w.max-a*w.min),b===4&&C.max-C.min<a&&(a=Jk((a-(C.max-C.min))/2),C={min:C.min-a,max:C.max+a,unit:C.unit}));a=RAa(C,g,e);g=SAa(C,a);e=UAa(g,a,f,d);c=C.max-C.min;(b===4||b===2)&&c>0&&(b=e.filter(function(H){return H.value>=
C.min&&H.value<=C.max}),d=UAa(C,a,f,d),b.length>=2?(g=C,e=b):d.length>=2&&(g=C,e=d));d=VAa(e);return Object.assign({},g,{ticks:e,scaleType:0,maximumFractionDigits:d})},Sk=function(a,b,c,d,e){return(e-a)/(b-a)*(d-c)+c},Tk=function(a,b,c,d,e){return a===c?b:(b*(c-e)+d*(e-a))/(c-a)},ZAa=function(a,b,c,d,e){return c.map(function(f,g){return Sk(a,b,c[g],d[g],e)})},$Aa=function(a,b,c,d){d=d===void 0?1:d;a*=d;b*=d;c=(c===void 0?.001:c)*d/2;var e=Math.log;d=-e(-(a<0?a:-c));var f=-e(-(b<0?b:-c));a=e(a>0?a:
c);b=e(b>0?b:c);return{fakeZero:c,negMin:d,negMax:f,posMin:a,posMax:b,difference:a-f}},aBa=function(a,b,c,d,e,f,g){var k=$Aa(a,b,f===void 0?.001:f,g===void 0?1:g);a=k.negMin;b=k.posMax;f=k.difference;g=Math.log;k=k.posMin;e<0?k=-g(-e)+f:e>0&&(k=g(e));return Sk(a+f,b,c,d,k)},Uk=function(a){var b=a.previousValue;a=a.currentValue;return!(!a||a.min===null||a.max===null||b&&a.min===b.min&&a.max===b.max)},bBa=function(a){var b=a.previousValue;a=a.currentValue;return!((!b||a)&&(!a||b&&(a==null?void 0:a.ticks)===
(b==null?void 0:b.ticks)))},Vk=function(a){var b=a.previousValue;a=a.currentValue;return!(!a||(b==null?void 0:b.timezoneOffset)===a.timezoneOffset)},Wk=function(a){var b=a.previousValue;a=a.currentValue;return!(!a||(b==null?void 0:b.timeZoneId)===a.timeZoneId)},Xk=function(a,b,c,d){var e=a.min,f=a.max;a=a.unit;if(e!==null&&f!==null){var g=d?Kk(a,d)||1:1;return function(k){return Sk(e*g,f*g,b,c,k)}}return null},Yk=function(a,b,c,d){var e=a.min,f=a.max;a=a.unit;if(e!==null&&f!==null){var g=d?Kk(a,d)||
1:1;return function(k){return Sk(b,c,e*g,f*g,k.valueOf())}}return null},dBa=function(a){if(!a||!a.trim())return"";a=a.startsWith("#")?a.substring(1):a;if(a.length>8)return"#"+a.slice(0,8);switch(a.length){case 8:return"#"+a;case 7:return"#"+a.slice(0,6);case 6:return"#"+a;case 4:return"#"+cBa(a);case 3:return"#"+cBa(a);case 2:return"#"+a.repeat(3);case 1:return"#"+a.repeat(6);default:return""}},cBa=function(a){return a.split("").map(function(b){return b+b}).join("")},Zk=function(a,b){if(typeof a!==
"string")return a;if(!a.startsWith("var(--"))return a;var c=a.match(eBa);if(!c)return a;var d=m(c);d.next();c=d.next().value;d=d.next().value;b=getComputedStyle(b);return b?(a=b.getPropertyValue(c))?a.match(fBa)?dBa(a):a:d===void 0?"":d.match(fBa)?dBa(d):d:a},gBa=function(a,b){var c=a.getTransform&&a.getTransform();c&&c.a===b&&c.b===0&&c.c===0&&c.d===b&&c.e===0&&c.f===0||a.setTransform(b,0,0,b,0,0)},$k=function(a,b,c){var d;b=b===void 0?{}:b;d||(d=hBa.scaleFactor);b.globalAlpha&&a.globalAlpha!==b.globalAlpha&&
(a.globalAlpha=b.globalAlpha);b.font&&a.font!==b.font&&(a.font=b.font);b.fillStyle&&a.fillStyle!==b.fillStyle&&(a.fillStyle=Zk(b.fillStyle,c));b.textAlign&&a.textAlign!==b.textAlign&&(a.textAlign=b.textAlign);b.textBaseline&&a.textBaseline!==b.textBaseline&&(a.textBaseline=b.textBaseline);b.strokeStyle&&a.strokeStyle!==b.strokeStyle&&(a.strokeStyle=Zk(b.strokeStyle,c));b.lineWidth&&a.lineWidth!==b.lineWidth&&(a.lineWidth=b.lineWidth);b.lineCap&&a.lineCap!==b.lineCap&&(a.lineCap=b.lineCap);var e=a.getLineDash();
!b.lineDash||(e==null?0:e.length)&&!b.lineDash.some(function(f,g){return e[g]!==f})||a.setLineDash(b.lineDash);b.globalCompositeOperation&&a.globalCompositeOperation!==b.globalCompositeOperation&&(a.globalCompositeOperation=b.globalCompositeOperation);b.filter&&a.filter!==b.filter&&(a.filter=b.filter);gBa(a,d)},bl=function(a,b,c,d,e,f){e=e===void 0?"transparent":e;var g=a.getContext("2d");if(!g)throw Error("Dc");f||(f=hBa.scaleFactor);var k=Math.floor(d*f),l=Math.floor(c*f);if(a.width!==k||a.height!==
l)a.style.width=d+"px",a.style.height=c+"px",a.width=k,a.height=l;gBa(g,f);al(a,e,b,f)},al=function(a,b,c,d,e){b=b===void 0?"transparent":b;var f=a.getContext("2d");if(!f)throw Error("Dc");d||(d=hBa.scaleFactor);f.save();b==="transparent"?f.clearRect(0,0,a.width/d,a.height/d):(f.fillStyle=Zk(b,c),f.globalAlpha=e!=null?e:1,f.fillRect(0,0,a.width/d,a.height/d),f.fill());f.restore()},cl=function(a,b){return(b===void 0?1:b)%2?a.map(function(c){return Math.round(c+.5)-.5}):a.map(function(c){return Math.round(c)})},
dl=function(a,b,c,d){var e=e===void 0?0:e;if(e>0){b=b.split(" ");for(var f="",g=0;g<b.length;g++){var k=f+(f.length>0?" ":"")+b[g];a.measureText(k).width>e&&f.length>0?(a.fillText(f,c,d),f=b[g],d+=10):f=k}a.fillText(f,c,d);return e}a.fillText(b,c,d);return a.measureText(b).width},iBa=function(a,b,c,d,e,f){e=e===void 0?0:e;f=f===void 0?0:f;a.save();for(var g=b,k=b.length;k>=0;k--){var l=k===b.length?b.slice(0,k):b.slice(0,k)+"...";if(a.measureText(l).width<=e){g=l;break}}a.translate(c,d);f&&a.rotate(f);
a.textAlign="center";a.fillText(g,0,0);a.restore()},jBa=function(a,b,c,d){d=d===void 0?.6:d;c=new Path2D(c);var e=new Path2D;e.addPath(c,{a:d,b:0,c:0,d:d,e:a,f:b});return e},el=function(a,b,c,d,e){if(!d)return a;b=d.x<b?{x0:d.x,y0:d.y,x1:b,y1:c}:{x0:b,y0:c,x1:d.x,y1:d.y};return b.x0>=e.left-1&&b.x0<=e.right+1&&b.y0>=e.top-1&&b.y0<=e.bottom+1&&(!a||Math.max(a.x0,a.x1)<=b.x0)?b:a},kBa=function(a){var b=a.chartGroupId;return Zj(fl,function(c){return c.entities[b]})},mBa=function(a,b){return typeof a===
"object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?lBa(a==null?void 0:a.categories,b==null?void 0:b.categories):a===b},lBa=function(a,b){if(a&&a&&Array.isArray(b)&&Array.isArray(b)){if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0}return a===b},nBa=function(a){return Ek(a.chartGroupId,a.chartId,a.xAxisId)},oBa=function(a){var b=a.chartGroupId;var c=a.chartId;return"chartGroupId:"+b+",chartId:"+c+",xAxisKey:"+Ek(b,c,a.xAxisId)},gl=function(a){return a.filter(function(b){return!b.ignoreSeriesForHighlighting})},
pBa=function(a){var b=a.previousValue;if(a=a.currentValue){if(!b)return!0;b=b.byLayer.entities;a=Object.values(a.byLayer.entities).filter(function(c){return!!c});b=Object.values(b).filter(function(c){return!!c});if(a.length){if(!b.length)return!0;a=Array.from(new Set(a.reduce(function(c,d){return c.concat(gl(d.selectedSeries)).concat(gl(d.hoveredSeries))},[])));b=Array.from(new Set(b.reduce(function(c,d){return c.concat(gl(d.selectedSeries)).concat(gl(d.hoveredSeries))},[])));return a.length===0&&
b.length>0||b.length===0&&a.length>0}}return!1},qBa=function(a,b){return a.some(function(c){var d=b.find(function(g){return g.seriesId===c.seriesId}),e,f;return d&&((e=c.datumIndices)==null?void 0:e.length)===((f=d.datumIndices)==null?void 0:f.length)?c.datumIndices&&d.datumIndices?c.datumIndices.some(function(g){return!d.datumIndices.find(function(k){return g.index===k.index&&g.bucketIndex===k.bucketIndex})}):!1:!0})},hl=function(a,b){return a.length!==b.length||qBa(a,b)||qBa(b,a)},il=function(a,
b){var c=a.previousValue,d=a.currentValue;if(d){if(!c)return!0;a=[];var e=[];if(b)a=d.byLayer.entities[b],a=((a==null?void 0:a.selectedSeries)||[]).concat((a==null?void 0:a.hoveredSeries)||[]),e=c.byLayer.entities[b],e=((e==null?void 0:e.selectedSeries)||[]).concat((e==null?void 0:e.hoveredSeries)||[]);else{b=m(Object.values(d.byLayer.entities));for(d=b.next();!d.done;d=b.next())(d=d.value)&&(a=a.concat(d.selectedSeries).concat(d.hoveredSeries));c=m(Object.values(c.byLayer.entities));for(b=c.next();!b.done;b=
c.next())(b=b.value)&&(e=e.concat(b.selectedSeries).concat(b.hoveredSeries))}return hl(gl(a),gl(e))}return!1},rBa=function(a,b){var c=a.previousValue,d=a.currentValue;if(!d||!c)return[];a=[];var e=[];if(b){e=c.byLayer.entities[b];var f;a=((f=d.byLayer.entities[b])==null?void 0:f.selectedSeries)||[];e=(e==null?void 0:e.selectedSeries)||[]}else{b=m(Object.values(d.byLayer.entities));for(f=b.next();!f.done;f=b.next())(f=f.value)&&(a=a.concat(f.selectedSeries));c=m(Object.values(c.byLayer.entities));
for(b=c.next();!b.done;b=c.next())(b=b.value)&&(e=e.concat(b.selectedSeries))}a=a.map(function(k){return k.seriesId});var g=e.map(function(k){return k.seriesId});return a.filter(function(k){return!g.includes(k)})},sBa=function(a,b){return typeof a==="object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?Mza(a,b)&&(a==null?void 0:a.maximumFractionDigits)===(b==null?void 0:b.maximumFractionDigits)&&(a==null?void 0:a.bucketWidth)===(b==null?void 0:b.bucketWidth):a===b},tBa=function(a,
b){return typeof a==="object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?Mza(a,b)&&(a==null?void 0:a.maximumFractionDigits)===(b==null?void 0:b.maximumFractionDigits):a===b},ml=function(a,b){var c=!1,d=b.pipe(lf(1)).subscribe(function(){c=!0});return function(e,f){if(!c)return d.unsubscribe(),a(e,f)}},nl=function(a){var b=a.timeZone;var c=a.position===void 0?null:a.position;var d=a.tickIncrement===void 0?null:a.tickIncrement;if(a.trackingNow===void 0?0:a.trackingNow)return"Now";
if(!c||d===null)return"";a=new Date(c);b=b!=null?b:Gk();if(!(c=uBa[d])){for(var e=c=Infinity,f=m(FAa),g=f.next();!g.done;g=f.next()){g=g.value;var k=Math.abs(d/g);k<e&&(e=k,c=g)}c=(d=uBa[c])?d:vBa}return c(a,b)},CBa=function(a){var b=Math.abs(a),c=7,d=a/1E3;b/6E4>=1&&(c=6,d=a/6E4);b/36E5>=1&&(c=5,d=a/36E5);b/864E5>=1&&b%864E5===0&&(c=4,d=a/864E5);b/6048E5>=1&&(b%6048E5===0||b/6048E5>3||b/6048E5>1&&b%864E5!==0)&&(c=3,d=a/6048E5);if(b>=wBa[0]){var e=wBa.map(function(f){return a/f}).find(function(f){return Math.abs(f-
Math.round(f))<.05});e!==void 0&&(d=Math.round(e),c=2)}b>=xBa[0]&&(e=xBa.map(function(f){return a/f}).find(function(f){return Math.abs(f-Math.round(f))<yBa}),e!==void 0&&(d=Math.round(e),c=1));b>=zBa[0]&&(b=zBa.map(function(f){return a/f}),c=b.find(function(f){return Math.abs(f-Math.round(f))<ABa}),d=c!==void 0?Math.round(c):b[0],c=0);return(new BBa).format(d,c)},DBa=function(){return Zj(pk,function(a){return a.dashboard})},GBa=function(a,b){if(a&1){var c=t();K(0,"div",7);N("mouseenter",function(){u(c);
P(2).isActionButtonBeingHovered$.next(!0);return v()})("mouseleave",function(){u(c);P(2).isActionButtonBeingHovered$.next(!1);return v()});K(1,"button",8);N("click",function(){u(c);var d=P(2);return v(EBa(d))});yd();K(2,"svg",9);M(3,"path");L()()()}a&2&&(a=b.ngIf,b=P(2),I("ngStyle",Jg(3,FBa,a.left+"px",a.top+"px")),B(2),If("fill",b.AC_SYS_COLOR_EXTENSIONS_ON_SURFACE),B(),If("d",b.topButtonIconPath))},HBa=function(a){a&1&&(Tf(0),E(1,GBa,4,6,"div",6),T(2,"async"),Uf());a&2&&(a=P(),B(),I("ngIf",U(2,
1,a.actionButtonPosition$)))},JBa=function(a){if(a&1){var b=t();K(0,"button",15);T(1,"async");N("click",function(c){u(b);var d=P(2);return v(IBa(d,c))});M(2,"mat-icon",16);L()}a&2&&(a=P(2),If("aria-label",U(1,2,a.xAxisUnpinAriaLabelObservable))("aria-describedby",a.xAxisCursorDescribedById))},KBa=function(a){a&1&&M(0,"mat-icon",17)},PBa=function(a,b){a&1&&(K(0,"div",10,0)(2,"div",11),Q(3),L(),K(4,"div",12),E(5,JBa,3,4,"button",13)(6,KBa,1,0,"mat-icon",14),L()());a&2&&(a=b.ngIf,I("ngClass",Kg(10,LBa,
a.locked,a.draggable,a.dragging))("ngStyle",Kg(14,MBa,a.top+"px",a.height+"px",a.height/2+"px")),If("tabindex",a.locked?-1:0),B(2),I("ngStyle",Jg(18,NBa,a.height/2+"px",a.height/4+"px")),If("aria-label","Pin at "+a.label)("tabindex",a.locked?0:-1),B(),S(" ",a.label," "),B(),I("ngStyle",Kg(21,OBa,a.height+"px",a.height+"px",a.height*.1+"px")),B(),I("ngIf",a.locked),B(),I("ngIf",!a.locked))},QBa=function(a){return a.button===0&&!(ol&&a.ctrlKey)},pl=function(a,b){a=b==null?void 0:b.byYAxis.entities[a.yAxisId];
var c=b==null?void 0:b.domain;b=b==null?void 0:b.category;var d,e,f,g={x:(e=(d=c==null?void 0:c.hover)!=null?d:(b==null?0:b.hover)?0:null)!=null?e:null,y:(f=a==null?void 0:a.hover)!=null?f:null},k,l,r;d={x:(l=(k=c==null?void 0:c.click)!=null?k:(b==null?0:b.click)?0:null)!=null?l:null,y:(r=a==null?void 0:a.click)!=null?r:null};var w,x,C;k={x:(x=(w=c==null?void 0:c.focus)!=null?w:(b==null?0:b.focus)?0:null)!=null?x:null,y:(C=a==null?void 0:a.focus)!=null?C:null};var H,J,O;w={x:(J=(H=c==null?void 0:
c.multiselectAnchor)!=null?H:(b==null?0:b.multiselectAnchor)?0:null)!=null?J:null,y:(O=a==null?void 0:a.multiselectAnchor)!=null?O:null};return{hover:g.x===null&&g.y===null?null:g,click:d.x===null&&d.y===null?null:d,focus:k.x===null&&k.y===null?null:k,multiselectAnchor:w.x===null&&w.y===null?null:w}},RBa=function(a,b,c,d){if(b&&c){var e=b.getTimezoneOffset()-Rk(d,b);a=new Date(b);a.setMinutes(b.getMinutes()+e);e=c.getTimezoneOffset()-Rk(d,c);var f=new Date(c);f.setMinutes(c.getMinutes()+e);a=a.getFullYear()===
f.getFullYear()&&a.getMonth()===f.getMonth()&&a.getDate()===f.getDate();e=m(a?[10,6]:[10,10]);a=e.next().value;e=e.next().value;return(new ql(a)).format(b,d)+" - "+(new ql(e)).format(c,d)}return c?(new ql(10)).format(c,d):a?(new ql(10)).format(a,d):""},SBa=function(a,b,c){return b&&c?b+" - "+c:c?""+c:a?""+a:""},TBa=function(a,b){a&1&&(Qf(0,"div",0),cg(1),Q(2),cg(3,1),Rf());a&2&&(B(2),S(" ",b," "))},rl=function(a){var b=a.previousValue;a=a.currentValue;return!a||a.min===null||a.max===null||b&&a.min===
b.min&&a.max===b.max&&a.absoluteMin===b.absoluteMin&&a.scaleType===b.scaleType?!1:!0},sl=function(a,b,c,d){d==="{not_a_unit}"&&(d="1");var e=a.unit,f=a.min,g=a.max,k=a.absoluteMin;a=a.scaleType;if(f!==null&&g!==null&&b!==c){var l=Kk(e,d)||1;return a===1&&k!==null?function(r){return aBa(f,g,c,b,r,k,l)}:function(r){return Sk(f*l,g*l,c,b,r)}}return null},UBa=function(a,b,c,d){d==="{not_a_unit}"&&(d="1");var e=a.unit,f=a.min,g=a.max,k=a.absoluteMin;a=a.scaleType;if(f!==null&&g!==null){var l=Kk(e,d)||
1;return a===1&&k!==null?function(r){var w=$Aa(f,g,k===void 0?.001:k,l===void 0?1:l),x=w.fakeZero,C=w.difference;r=Sk(c,b,w.negMin+C,w.posMax,r);return Math.log(x)-r>1E-12?-Math.exp(-(r-C)):r-Math.log(x)>1E-12?Math.exp(r):0}:function(r){return Sk(c,b,f*l,g*l,r)}}return null},VBa=function(a){a&1&&(yd(),K(0,"g",14),M(1,"path",15)(2,"path"),L());a&2&&(a=P(3),B(),If("d",a.shape),B(),If("d",a.shape))},WBa=function(a){a&1&&(yd(),K(0,"svg",11),M(1,"path",12),E(2,VBa,3,2,"g",13),L());a&2&&(a=P(2),B(),If("stroke-dasharray",
a.lineDash?a.lineDash:null),B(),I("ngIf",a.shape))},XBa=function(a){a&1&&(yd(),K(0,"g",14),M(1,"path",15)(2,"path"),L());a&2&&(a=P(3),B(),If("d",a.shape),B(),If("d",a.shape))},YBa=function(a){a&1&&(yd(),K(0,"svg",16),M(1,"path",17)(2,"path",12),E(3,XBa,3,2,"g",13),L());a&2&&(a=P(2),B(3),I("ngIf",a.shape))},ZBa=function(a){a&1&&(yd(),K(0,"svg",18),M(1,"path",19)(2,"path",20),L())},$Ba=function(a){a&1&&(yd(),K(0,"svg",21),M(1,"path",22)(2,"path",23),L())},aCa=function(a){a&1&&(yd(),K(0,"svg",24),M(1,
"path",25),L())},bCa=function(a){a&1&&(yd(),M(0,"path",29))},cCa=function(a){a&1&&(yd(),K(0,"g",30),M(1,"path",15)(2,"path"),L());a&2&&(a=P(3),B(),If("d",a.shape),B(),If("d",a.shape))},dCa=function(a){a&1&&(yd(),K(0,"svg",26),E(1,bCa,1,0,"path",27)(2,cCa,3,2,"g",28),L());a&2&&(a=P(2),B(),I("ngIf",!a.shape),B(),I("ngIf",a.shape))},eCa=function(a){a&1&&(yd(),K(0,"svg",31),M(1,"circle",32),L())},gCa=function(a){a&1&&(K(0,"i",3),E(1,WBa,3,2,"svg",4)(2,YBa,4,1,"svg",5)(3,ZBa,3,0,"svg",6)(4,$Ba,3,0,"svg",
7)(5,aCa,2,0,"svg",8)(6,dCa,3,2,"svg",9)(7,eCa,2,0,"svg",10),L());a&2&&(a=P(),I("ngSwitch",a.keyShape)("ngStyle",Jg(8,fCa,a.color||"#000",a.color||"#000")),B(),I("ngSwitchCase","line"),B(),I("ngSwitchCase","line-with-area"),B(),I("ngSwitchCase","band-max"),B(),I("ngSwitchCase","band-min"),B(),I("ngSwitchCase","threshold"),B(),I("ngSwitchCase","square"))},hCa=function(a){a&1&&(yd(),K(0,"svg",35)(1,"clipPath"),M(2,"path"),L(),K(3,"g",36),M(4,"path",15)(5,"path",37),L()());a&2&&(a=P(2),B(),If("id",a.clipPathId),
B(),If("d",a.shape),B(2),If("d",a.shape),B(),If("d",a.shape)("clip-path","url(#"+a.clipPathId+")"))},iCa=function(a){a&1&&(yd(),K(0,"svg",35)(1,"clipPath"),M(2,"path"),L(),K(3,"g",36),M(4,"path",15)(5,"path",37),L()());a&2&&(a=P(2),B(),If("id",a.clipPathId),B(),If("d",a.defaultCircleShape),B(2),If("d",a.defaultCircleShape),B(),If("d",a.defaultCircleShape)("clip-path","url(#"+a.clipPathId+")"))},jCa=function(a){a&1&&(K(0,"i",33),E(1,hCa,6,5,"svg",34)(2,iCa,6,5,"ng-template",null,1,Mg),L());if(a&2){a=
qg(3);var b=P();I("ngStyle",Jg(3,fCa,b.hollow?"#fff":b.color||"#000",b.color||"#000"));B();I("ngIf",b.shape)("ngIfElse",a)}},kCa=function(a){a&1&&(yd(),K(0,"svg",2),M(1,"polygon",3),L())},lCa=function(a){if(a&1){var b=t();Qf(0,"div",0);mna("click",function(){u(b);var c=P();return v(c.closed.emit("click"))})("animationstart",function(c){u(b);var d=P();return v(d._onAnimationStart(c.animationName))})("animationend",function(c){u(b);var d=P();return v(d._onAnimationDone(c.animationName))})("animationcancel",
function(c){u(b);var d=P();return v(d._onAnimationDone(c.animationName))});Qf(1,"div",1);cg(2);Rf()()}a&2&&(a=P(),xg(a._classList),wg("mat-menu-panel-animations-disabled",a._animationsDisabled)("mat-menu-panel-exit-animation",a._panelAnimationState==="void")("mat-menu-panel-animating",a._isAnimating()),Pf("id",a.panelId),If("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null)("aria-describedby",a.ariaDescribedby||null))},mCa=function(a){a&1&&(K(0,"button",3)(1,"mat-icon"),Q(2,
"more_vert"),L()());a&2&&(P(),a=qg(2),I("matMenuTriggerFor",a))},tl=function(a,b){if((a=a.bucketOptions)&&a.exponentialBuckets&&a.exponentialBuckets.growthFactor){var c=a.exponentialBuckets.scale||1;a=a.exponentialBuckets.growthFactor;return[c*Math.pow(a,b-1),c*Math.pow(a,b)]}return a&&a.linearBuckets&&a.linearBuckets.width?(c=a.linearBuckets.offset||0,a=a.linearBuckets.width,[c+a*(b-1),c+a*b]):a&&a.explicitBuckets&&a.explicitBuckets.bounds?(a=a.explicitBuckets.bounds,[b>0?a[b-1]:-Infinity,b<a.length?
a[b]:Infinity]):[null,null]},nCa=function(a,b){var c=Object.keys(a).sort();c=m(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=b.get(d);e||(e=new Set,b.set(d,e));e.add(a[d])}},oCa=function(a){var b=new Map,c=new Map,d=new Map,e=new Map;a=m(a);for(var f=a.next();!f.done;f=a.next())if(f=f.value)nCa(f.resource&&f.resource.labels||{},b),nCa(f.metric&&f.metric.labels||{},c),nCa(f.metadata||{},d),nCa(f.labels||{},e);return{resource:b,metric:c,metadata:d,uncategorized:e}},pCa=function(a){var b=
a.indexOf(".");return(b=b>=0?[a.slice(0,b),a.slice(b+1)]:null)?b[0]+"."+ul(b[1]):ul(a)},qCa=function(a){var b=[];try{var c=qza(new wk(a));for(a=0;c&&a<c.length;){var d=c[a++];a++;a++;a++;var e=d&&d.toString();e&&b.push(e)}}catch(f){}return b},rCa=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;d.size>1&&b.push([c,d.size])}return b.sort(function(e,f){return f[1]-e[1]}).map(function(e){return e[0]})},sCa=function(a){var b=[];a=m(a);
for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;d.size===1&&b.push([c,d.size])}return b.sort(function(e,f){return f[1]-e[1]}).map(function(e){return e[0]})},tCa=function(){return[[{isDefault:!0,title:"Name",template:"${getName()}",tokenizer:new vl("${getName()}")}]]},vCa=function(a){var b;return((b=a[0])==null?0:b.labels)?(b=a.filter(function(c){return!!c}).map(function(c){return c.labels}).reduce(function(c,d){if(!d)return c;d=m(Object.keys(d));for(var e=
d.next();!e.done;e=d.next())(e=e.value)&&!c.includes(e)&&c.push(e);return c},[]),b.length===0?[[{isDefault:!0,title:"Name",template:"${name}",tokenizer:new vl("${name}")}]]:[b.map(function(c){var d=uCa(c);return{isDefault:a.length===1||!a.every(function(e){var f,g,k;return(e==null?void 0:(f=e.labels)==null?void 0:f[c])===((g=a[0])==null?void 0:(k=g.labels)==null?void 0:k[c])}),title:c,template:"${labels."+d+"}",tokenizer:new vl("${labels."+d+"}")}})]):[[{isDefault:!0,title:"Name",template:"${name}",
tokenizer:new vl("${name}")}]]},wCa=function(a,b){var c=1,d=[],e=function(ia,Ga){d.push({isDefault:!0,title:ia,template:Ga,tokenizer:new vl(Ga),uniqueId:c++})},f=function(ia,Ga){d.push({isDefault:!1,title:ia,template:Ga,tokenizer:new vl(Ga),uniqueId:c++})},g=a.find(function(ia){return!!ia});if(!g)return null;g=g.requestParams;var k=oCa(a);a=k.resource;var l=k.metric,r=k.metadata;k=k.uncategorized;var w=[];if(g){var x=[],C;if((C=g["secondaryAggregation.groupByFields"])==null?0:C.length)x=g["secondaryAggregation.groupByFields"];
else{var H;if((H=g["aggregation.groupByFields"])==null?0:H.length)x=g["aggregation.groupByFields"]}x.forEach(function(ia){ia!=="resource.label.*"&&ia!=="resource.*"&&(ia==="project"&&w.push("resource.labels.project"),ia.indexOf("resource.labels.")===0?w.push(ia):ia.indexOf("resource.label.")===0?w.push("resource.labels."+ia.substring(15)):ia.indexOf("resource.")===0&&w.push("resource.labels."+ia.substring(9)),ia.indexOf("metric.labels.")===0?w.push(ia):ia.indexOf("metric.label.")===0?w.push("metric.labels."+
ia.substring(13)):ia.indexOf("metric.")===0&&w.push("metric.labels."+ia.substring(7)),ia.indexOf("metadata.")===0&&w.push("metadata."+ia.substring(9)))})}var J=rCa(a),O=rCa(l),R=rCa(r);C=rCa(k);var V=sCa(a),ca=sCa(l),na=sCa(r);H=sCa(k);var ua=function(ia,Ga){Ga=ia.indexOf(Ga);Ga!==-1&&delete ia[Ga]};w.forEach(function(ia){if(ia.indexOf("resource.labels.")===0){var Ga=ul(ia.substring(16));ua(J,Ga);ua(V,Ga);Ga==="project"&&(ua(J,"project_id"),ua(V,"project_id"))}ia.indexOf("metric.labels.")===0&&(Ga=
ul(ia.substring(14)),ua(O,Ga),ua(ca,Ga));ia.indexOf("metadata.")===0&&(ia=pCa(ia.substring(9)),ua(R,ia),ua(na,ia))});if(!b&&J.length===0&&O.length===0&&R.length===0&&C.length===0&&g&&(e("Metric","${shortMetric}"),g.filter&&(b=qCa(g.filter))))for(b=m(b),g=b.next();!g.done;g=b.next())g=g.value,g.indexOf("metric.label.")===0&&(a=ul(g.substring(13)),e(a,"${metric.labels."+a+"}"),ua(O,a),ua(ca,a),ua(w,"metric.labels."+a)),g.indexOf("resource.label.")===0&&(a=ul(g.substring(15)),e(a,"${resource.labels."+
a+"}"),ua(J,a),ua(V,a),ua(w,"resource.labels."+a),a==="project"&&(ua(J,"project_id"),ua(V,"project_id"),ua(w,"resource.labels.project_id"))),g.indexOf("metadata.")===0&&(a=pCa(g.substring(9)),e(a,"${metadata."+uCa(a)+"}"),ua(R,a),ua(na,a),ua(w,"metadata."+a)),g.indexOf("select_slo_")===0&&(e("SLO","${tssData.slo}"),g.includes("recent_loss")&&e("Lookback","${tssData.lookback}"));w.forEach(function(ia){if(ia==="resource.labels.project"||ia==='resource.labels."project"')e("project","${resource.labels.project_id}");
else if(ia==="resource.labels.instance_id"||ia==='resource.labels."instance_id"')e("Name (from instance_id)","${instanceNameOrId()}"),f("instance_id","${resource.labels.instance_id}");else if(ia==="resource.labels.credential_id"||ia==='resource.labels."credential_id"')e("Name (from credential_id)","${credentialNameOrId()}"),f("credential_id","${resource.labels.credential_id}");else{var Ga=ia;Ga.indexOf("resource.labels.")===0&&(Ga=ul(Ga.substring(16)),ia="resource.labels."+Ga);Ga.indexOf("metric.labels.")===
0&&(Ga=ul(Ga.substring(14)),ia="metric.labels."+Ga);Ga.indexOf("metadata.")===0&&(Ga=pCa(Ga.substring(9)),ia="metadata."+uCa(Ga));e(Ga,"${"+ia+"}")}});J.forEach(function(ia){ia==="instance_id"||ia==='"instance_id"'?(e("Name (from instance_id)","${instanceNameOrId()}"),ia=ul(ia),f(ia,"${resource.labels."+ia+"}")):ia==="credential_id"||ia==='"credential_id"'?(e("Name (from credential_id)","${credentialNameOrId()}"),ia=ul(ia),f(ia,"${resource.labels."+ia+"}")):(ia=ul(ia),e(ia,"${resource.labels."+ia+
"}"))});O.forEach(function(ia){ia=ul(ia);e(ia,"${metric.labels."+ia+"}")});R.forEach(function(ia){ia=pCa(ia);e(ia,"${metadata."+uCa(ia)+"}")});C.forEach(function(ia){e(ia,"${labels."+ia+"}")});V.forEach(function(ia){ia!=="instance_id"&&ia!=='"instance_id"'||f("Name (from instance_id)","${instanceNameOrId()}");ia!=="credential_id"&&ia!=='"credential_id"'||f("Name (from credential_id)","${credentialNameOrId()}");ia=ul(ia);f(ia,"${resource.labels."+ia+"}")});ca.forEach(function(ia){ia=ul(ia);f(ia,"${metric.labels."+
ia+"}")});na.forEach(function(ia){ia=pCa(ia);f(ia,"${metadata."+uCa(ia)+"}")});H.forEach(function(ia){f(ia,"${labels."+ia+"}")});return d.length===0?null:[d]},uCa=function(a){return a.replace(/\./g,"\\.").replace(/'/g,"\\'")},xCa=function(a,b){if(a.length!==b.length)return!1;for(var c=0;c<b.length;c++)if(a[c]!==b[c])return!1;return!0},yCa=function(a){var b=[],c=[],d=new Map;a.forEach(function(e){if((e==null?void 0:e.resource)!=null){var f=e.resource.labels;f!=null&&(e=f.monitored_resource_container,
f=f.project_id,e!=null&&f!=null&&e.split("/").length===2&&(e==null||b.includes(e)||b.push(e),e="projects/"+f,f==null||c.includes(e)||c.push(e)))}});if(c.length===0||b.length===0)return d;if(xCa(b,c))return d.set("project_id",!0),d.set("monitored_resource_container",!1),d;d.set("monitored_resource_container",!0);d.set("project_id",!1);return d},zCa=function(a){if(a==null)return null;var b=a.resource;return b?Object.assign({},a,{resource:Object.assign({},b,{labels:Object.assign({},b.labels,b.displayedLabels)})}):
a.displayedLabels?Object.assign({},a,{labels:Object.assign({},a.labels,a.displayedLabels)}):a},ACa=function(a){var b;return(b=a.map(function(c){var d;return(d=c==null?void 0:c.dataSeriesMetadata)!=null?d:null}))!=null?b:[]},BCa=function(a,b,c){if(b!==void 0)b={formatter:new vl(b),labelTables:null,seriesMetadata:null};else if(b=c?vCa(a):wCa(a,!1)){c=yCa(a);a=a?a.map(zCa):null;for(var d="",e=m(b),f=e.next();!f.done;f=e.next())if(f=f.value){f=m(f);for(var g=f.next();!g.done;g=f.next())if(g=g.value,g.isDefault&&
c.get(g.title)!==!1){var k=void 0;d+=((k=g.template)!=null?k:"")+'" "'}}b=d?{formatter:new vl(d),labelTables:b,seriesMetadata:a}:{formatter:null,labelTables:b,seriesMetadata:a}}else b={formatter:null,labelTables:b,seriesMetadata:a};return b},DCa=function(a,b){var c=c===void 0?CCa:c;var d=b.length-2,e=c(a)/d;return function(f){if(f<=0)return b[0];if(f>=a)return b[b.length-1];f=c(f);var g=Math.floor(f/e)+1;return ZAa(e*(g-1),e*g,b[g],b[g+1],f)}},CCa=function(a){return a},ECa=function(a){a&1&&(K(0,"span"),
Q(1,"\u2014"),L())},FCa=function(a){a&1&&(K(0,"span"),Q(1,"SELECTED"),L())},GCa=function(a,b){a&1&&(K(0,"td",3),Q(1),L(),K(2,"td",3),Q(3),L());a&2&&(a=P(4),B(),S(" ",b," "),B(2),S(" ",a.valueColumnLabel," "))},HCa=function(a){a&1&&M(0,"td",4)},ICa=function(a){a&1&&(K(0,"tr")(1,"td",3),T(2,"async"),F(3,ECa,2,0,"span")(4,FCa,2,0,"span"),L(),F(5,GCa,4,2),T(6,"async"),F(7,HCa,1,0,"td",4),L());if(a&2){var b;a=P(3);B();If("colspan",U(2,4,a.timeshiftColumnLabelObservable)?2:4);B(2);G(a.chartQuickActionsEnabled?
3:4);B(2);G((b=U(6,6,a.timeshiftColumnLabelObservable))?5:-1,b);B(2);G(a.streamActions.length?7:-1)}},JCa=function(a){a&1&&Vf(0)},LCa=function(a){a&1&&E(0,JCa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesRowTemplate)("ngTemplateOutletContext",Jg(2,KCa,a.metadata,a.name))}},MCa=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.name," "))},NCa=function(a){a&1&&(K(0,"td",9),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.timeshiftDisplayValue||"-"," "))},OCa=function(a){a&
1&&Vf(0)},QCa=function(a){a&1&&E(0,OCa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesValueTemplate)("ngTemplateOutletContext",Kg(2,PCa,a.rawValue,a.metadata,a.displayValue))}},RCa=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.displayValue," "))},SCa=function(a){a&1&&(K(0,"td",4),M(1,"ac-series-stream-actions",12),L());if(a&2){a=P().$implicit;var b=P(3);B();I("streamMetadata",a.metadata)("streamActions",b.streamActions)}},TCa=function(a,b){a&1&&(K(0,"tr")(1,
"td",5),M(2,"ac-key",6),L(),K(3,"td",7)(4,"div",8),F(5,LCa,1,5,"ng-container")(6,MCa,1,1),L()(),F(7,NCa,2,1,"td",9),T(8,"async"),K(9,"td",10),F(10,QCa,1,6,"ng-container")(11,RCa,1,1),L(),F(12,SCa,2,2,"td",4),L());if(a&2){a=b.$implicit;b=P(3);B(2);var c;I("color",(c=a.color)!=null?c:"#000000")("drawnAs",a.drawnAs)("shape",a.shape)("condensed",b.condensedShapes)("lineDash",b.showLineDash?a.lineDash:void 0);B();wg("strong",!b.onlyShowSelectedSeriesInternal||b.chartQuickActionsEnabled);B(2);G(b.seriesRowTemplate?
5:6);B(2);G(U(8,13,b.timeshiftColumnLabelObservable)?7:-1);B(2);wg("strong",!b.onlyShowSelectedSeriesInternal||b.chartQuickActionsEnabled);B();G(b.seriesValueTemplate?10:11);B(2);G(b.streamActions.length?12:-1)}},UCa=function(a,b){a&1&&(K(0,"span"),Q(1),L());a&2&&(B(),S("",b," above"))},VCa=function(a){a&1&&(K(0,"span"),Q(1,"\u2014"),L())},WCa=function(a,b){a&1&&(K(0,"td",3),Q(1),L(),K(2,"td",3),Q(3),L());a&2&&(a=P(4),B(),S(" ",b," "),B(2),S(" ",a.valueColumnLabel," "))},XCa=function(a){a&1&&(K(0,
"tr",2)(1,"td",13),T(2,"async"),F(3,UCa,2,1,"span"),T(4,"async"),T(5,"async"),Kf(6,VCa,2,0,"span"),L(),F(7,WCa,4,2),T(8,"async"),L());if(a&2){var b,c;a=P(3);B();If("colspan",U(2,3,a.timeshiftColumnLabelObservable)?2:4);B(2);G((b=U(4,5,a.streamsAboveCountObservable))?3:U(5,7,a.streamsAboveCountObservable)===0?6:-1,b);B(4);G((c=U(8,9,a.timeshiftColumnLabelObservable))?7:-1,c)}},YCa=function(a,b){a&1&&(K(0,"td",3),Q(1),L(),K(2,"td",3),Q(3),L());a&2&&(a=P(4),B(),S(" ",b," "),B(2),S(" ",a.valueColumnLabel,
" "))},ZCa=function(a){a&1&&(K(0,"tr",2)(1,"td",13),T(2,"async"),K(3,"span"),Q(4," \u2014 "),L()(),F(5,YCa,4,2),T(6,"async"),L());if(a&2){var b;a=P(3);B();If("colspan",U(2,2,a.timeshiftColumnLabelObservable)?2:4);B(4);G((b=U(6,4,a.timeshiftColumnLabelObservable))?5:-1,b)}},aDa=function(a){a&1&&(F(0,ICa,8,8,"tr"),T(1,"async"),Nf(2,TCa,13,15,"tr",null,Lf),T(4,"async"),F(5,XCa,9,11,"tr",2),T(6,"async"),T(7,"async"),T(8,"async"),T(9,"async"),F(10,ZCa,7,6,"tr",2),T(11,"async"),T(12,"async"));if(a&2){var b,
c;a=P(2);G(U(1,3,a.showSelectedSeriesHeadersObservable)?0:-1);B(2);var d;Of((d=U(4,5,a.selectedStreamsObservable))!=null?d:Hg(19,$Ca));B(3);G(a.onlyShowSelectedSeriesInternal||a.compact||!(((b=U(6,7,a.selectedStreamsObservable))==null?0:b.length)||U(7,9,a.streamsAboveCountObservable)||U(8,11,a.streamsBelowCountObservable)||U(9,13,a.timeshiftColumnLabelObservable))?-1:5);B(5);G(a.compact&&(((c=U(11,15,a.selectedStreamsObservable))==null?0:c.length)||U(12,17,a.timeshiftColumnLabelObservable))?10:-1)}},
bDa=function(a){a&1&&Vf(0)},cDa=function(a){a&1&&E(0,bDa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesRowTemplate)("ngTemplateOutletContext",Jg(2,KCa,a.metadata,a.name))}},dDa=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.name," "))},eDa=function(a){a&1&&(K(0,"td",10),Q(1),L());a&2&&(a=P().$implicit,wg("strong",a.isInteracted),B(),S(" ",a.timeshiftDisplayValue||"-"," "))},fDa=function(a){a&1&&Vf(0)},gDa=function(a){a&1&&E(0,fDa,1,0,"ng-container",11);
if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesValueTemplate)("ngTemplateOutletContext",Kg(2,PCa,a.rawValue,a.metadata,a.displayValue))}},hDa=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,S(" ",a.displayValue," "))},iDa=function(a){a&1&&(Q(0),M(1,"br"),Q(2),M(3,"br"),Q(4));a&2&&(a=P(2).$implicit,S(" max: ",a.maxDisplayValue," "),B(2),S(" mean: ",a.displayValue," "),B(2),S(" min: ",a.minDisplayValue," "))},jDa=function(a){a&1&&F(0,hDa,1,1)(1,iDa,5,3);a&2&&(a=P().$implicit,G(a.minDisplayValue===
void 0?0:1))},kDa=function(a){a&1&&(K(0,"td",4),M(1,"ac-series-stream-actions",12),L());if(a&2){a=P().$implicit;var b=P(3);B();I("streamMetadata",a.metadata)("streamActions",b.streamActions)}},mDa=function(a,b){a&1&&(K(0,"tr")(1,"td",5),M(2,"ac-key",6),L(),K(3,"td",7)(4,"div",15),F(5,cDa,1,5,"ng-container")(6,dDa,1,1),L()(),F(7,eDa,2,3,"td",16),T(8,"async"),K(9,"td",10),F(10,gDa,1,6,"ng-container")(11,jDa,2,1),L(),F(12,kDa,2,2,"td",4),L());if(a&2){a=b.$implicit;b=P(3);B(2);var c;I("color",(c=a.color)!=
null?c:"#000000")("drawnAs",a.drawnAs)("shape",a.shape)("condensed",b.condensedShapes)("lineDash",b.showLineDash?a.lineDash:void 0);B();wg("strong",a.isInteracted);B();I("ngStyle",Ig(16,lDa,b.minWidth+"px"));B();G(b.seriesRowTemplate?5:6);B(2);G(U(8,14,b.timeshiftColumnLabelObservable)?7:-1);B(2);wg("strong",a.isInteracted);B();G(b.seriesValueTemplate?10:11);B(2);G(b.streamActions.length?12:-1)}},nDa=function(a){a&1&&(K(0,"span"),Q(1),T(2,"async"),T(3,"async"),L());if(a&2){a=P(4);B();var b,c;S(" ",
((b=U(2,1,a.streamsBelowCountObservable))!=null?b:0)+((c=U(3,3,a.streamsAboveCountObservable))!=null?c:0)," additional values ")}},oDa=function(a){a&1&&(K(0,"span"),Q(1,"\u2014"),L())},pDa=function(a){a&1&&(K(0,"span"),Q(1),T(2,"async"),L());a&2&&(a=P(5),B(),S("",U(2,1,a.streamsBelowCountObservable)," below"))},qDa=function(a){a&1&&(F(0,oDa,2,0,"span"),T(1,"async"),T(2,"async"),Kf(3,pDa,3,3,"span"));a&2&&(a=P(4),G(U(1,1,a.streamsBelowCountObservable)===0?0:U(2,3,a.streamsBelowCountObservable)?3:-1))},
rDa=function(a){a&1&&(K(0,"tr",14)(1,"td",17),F(2,nDa,4,5,"span")(3,qDa,4,5),L()());a&2&&(a=P(3),B(2),G(a.compact?2:3))},sDa=function(a){a&1&&(Nf(0,mDa,13,18,"tr",null,Lf),T(2,"async"),F(3,rDa,4,1,"tr",14),T(4,"async"),T(5,"async"));if(a&2){a=P(2);var b;Of((b=U(2,1,a.streamsObservable))!=null?b:Hg(7,$Ca));B(3);G(U(4,3,a.streamsAboveCountObservable)||U(5,5,a.streamsBelowCountObservable)?3:-1)}},tDa=function(a){a&1&&(K(0,"div",0)(1,"table")(2,"tbody",1),F(3,aDa,13,20),F(4,sDa,6,8),L()()());a&2&&(a=
P(),B(2),wg("compact",a.compact),B(),G(a.hideSelectedSection?-1:3),B(),G(a.onlyShowSelectedSeriesInternal?-1:4))},uDa=function(a,b){return a.stackingIndex!==void 0&&b.stackingIndex!==void 0?b.stackingIndex-a.stackingIndex:a.pxValue!==void 0&&b.pxValue!==void 0?a.pxValue-b.pxValue:a.scaledValue?b.scaledValue?a.valueType===2||b.valueType===2?0:b.scaledValue-a.scaledValue:-1:1},vDa=function(a){a=a===void 0?1:a;return function(b,c){return(a||1)*(b.name||"").localeCompare(c.name||"")}},wDa=function(a,
b){b=(b=b===void 0?1:b)||1;return function(c,d){c=c.labels&&c.labels[a]||"";d=d.labels&&d.labels[a]||"";return(b||1)*c.localeCompare(d,void 0,{numeric:!isNaN(Number(c))&&!isNaN(Number(d))})}},xDa=function(a){var b=(a===void 0?1:a)||1;return function(c,d){var e=Infinity*b,f=Infinity*b;typeof c.rawValue==="number"&&(e=typeof c.pxValue==="number"?-c.pxValue:c.rawValue);typeof d.rawValue==="number"&&(f=typeof d.pxValue==="number"?-d.pxValue:d.rawValue);return f>e?-1*b:f<e?b:0}},yDa=function(a){var b=
(a===void 0?1:a)||1;return function(c,d){c=c.isSelected;return c===d.isSelected?0:c?b:-1*b}},zDa=function(a){a&1&&(K(0,"span"),Q(1,":"),L())},ADa=function(a){a&1&&(K(0,"span",12)(1,"span",3),Q(2),L(),Q(3),L());if(a&2){a=P().$implicit;var b=P(2);B(2);yg(b.valueLabel);B();S(" ",a.displayValue," ")}},CDa=function(a,b){if(a&1){var c=t();K(0,"div",6)(1,"div",7);N("mouseenter",function(){var d=u(c).$implicit,e=P(2);return v(e.hover(d))})("mouseleave",function(){var d=u(c).$implicit,e=P(2);return v(BDa(e,
d))})("click",function(){var d=u(c).$implicit,e=P(2);return v(e.toggleSelection(d))});K(2,"span",8);M(3,"ac-key",9);Q(4);E(5,zDa,2,0,"span",10);L();E(6,ADa,4,2,"span",11);L()()}a&2&&(a=b.$implicit,b=P(2),B(),wg("selected",a.isSelected&&b.enableSelection),B(2),I("color",a.color)("drawnAs",a.drawnAs)("shape",a.shape),B(),S(" ",a.name),B(),I("ngIf",a.displayValue&&!a.hideValue&&!b.hideAllValues),B(),I("ngIf",!a.hideValue&&!b.hideAllValues))},FDa=function(a){a&1&&(K(0,"div",4),E(1,CDa,7,8,"div",5),T(2,
"async"),L());a&2&&(a=P(),I("ve",a.ve.ChartLegendPane)("ngClass",Ig(7,DDa,a.enableScrolling)),If("aria-label",a.inlineLegendLabel)("aria-describedby",a.describedById),B(),I("ngForOf",U(2,5,a.streamsObservable)||Hg(9,EDa)))},GDa=function(a){a&1&&(K(0,"li",17),Q(1," Loading... "),L())},HDa=function(a){a&1&&(K(0,"li",17),Q(1," 0 time series "),L())},JDa=function(a,b){if(a&1){var c=t();K(0,"li",18)(1,"button",19);N("mouseenter",function(){var e=u(c).$implicit,f=P(2);return v(f.hover(e))})("focusin",function(){var e=
u(c).$implicit,f=P(2);return v(f.hover(e))})("mouseleave",function(){var e=u(c).$implicit,f=P(2);return v(BDa(f,e))})("focusout",function(){var e=u(c).$implicit,f=P(2);return v(BDa(f,e))})("click",function(){var e=u(c).$implicit,f=P(2);return v(f.toggleSelection(e))});M(2,"ac-key",20);T(3,"async");K(4,"div",8)(5,"div",21);Q(6);L();K(7,"div",22);Q(8);L()()()()}if(a&2){a=b.$implicit;b=b.index;var d=P(2);B();wg("selected",a.isSelected&&d.enableSelection);I("matTooltip",a.name)("matTooltipPosition","right")("matTooltipShowDelay",
500)("matTooltipClass","ac-inline-legend-hover-tooltip");If("tabindex",d.focusKeyManager.activeItemIndex===b?0:-1)("aria-pressed",a.isSelected&&d.enableSelection);B();I("color",a.color)("drawnAs",a.drawnAs)("shape",a.shape)("condensed",d.condensed)("hollow",IDa(d,a,U(3,15,d.anyStreamInteractedObservable)));B(4);S(" ",a.name," ");B(2);S(" ",a.name," ")}},KDa=function(a){a&1&&(K(0,"li",23),Q(1),T(2,"async"),L());a&2&&(a=P(2),B(),S(" ",U(2,1,a.additionalStreamsObservable)," more "))},LDa=function(a){if(a&
1){var b=t();K(0,"ol",13,1);T(2,"async");T(3,"async");N("keydown",function(c){u(b);var d;(d=P().focusKeyManager)==null||d.onKeydown(c);return v()});E(4,GDa,2,0,"li",14);T(5,"async");T(6,"async");E(7,HDa,2,0,"li",14);T(8,"async");T(9,"async");E(10,JDa,9,17,"li",15);T(11,"async");E(12,KDa,3,3,"li",16);T(13,"async");L()}a&2&&(a=P(),wg("scrollable",a.enableScrolling)("narrow",U(2,14,a.narrowSubject))("hidden-trivial-legend",U(3,16,a.hideSingleSeriesLegendsObservable)),I("ve",a.ve.ChartLegendPane),If("aria-label",
a.inlineLegendLabel)("aria-describedby",a.describedById),B(4),I("ngIf",U(5,18,a.isLoadingObservable)===!0&&(U(6,20,a.condensedStreamsObservable)||Hg(30,EDa)).length===0),B(3),I("ngIf",U(8,22,a.isLoadingObservable)!==!0&&(U(9,24,a.condensedStreamsObservable)||Hg(31,EDa)).length===0&&!a.hideSingleSeriesLegends),B(3),I("ngForOf",U(11,26,a.condensedStreamsObservable))("ngForTrackBy",a.trackByStreamId),B(2),I("ngIf",(U(13,28,a.additionalStreamsObservable)||0)>0))},MDa=function(a,b,c,d,e){if(c.offsets){var f=
a.clientX-c.offsets.left,g=a.clientY-c.offsets.top;if(!(g<c.margins.top-1||g>c.height-c.margins.bottom+1||f<c.margins.left-1||f>c.width-c.margins.right+1)){if(e)return{x:e.x+15,y:e.y+15};c=25+b.height;e=25+b.width;f=a.clientY+15;g=a.clientX+15;b=a.clientX-15-b.width;d===3&&b>=0&&(g=b);a.clientY+c>window.innerHeight&&(f=Math.max(10,a.clientY-c+10));a.clientX+e>window.innerWidth&&(g=Math.max(10,a.clientX-e+10));return{x:g,y:f}}}},ODa=function(a){if(a&1){var b=t();K(0,"button",9,1);N("click",function(){u(b);
var c=P(3);NDa(c);wl(c.interactionService,"click",xl.ve.HovercardCloseButton,c.el.nativeElement);return v()})("focus",function(c){u(b);P(3).onFocus(c);return v()});M(2,"mat-icon",10);L()}a&2&&(a=P(3),wg("close-button-small",a.chartQuickActionsEnabled),I("matTooltip",a.closeAriaLabel)("matTooltipClass","close-tooltip"),If("aria-label",a.closeAriaLabel),B(2),wg("close-icon-small",a.chartQuickActionsEnabled))},PDa=function(a){a&1&&(K(0,"span"),Xf(1,3),L())},QDa=function(a){a&1&&(Tf(0),M(1,"mat-icon",
13),E(2,PDa,2,0,"span",14),T(3,"async"),Uf());a&2&&(a=P(4),B(2),I("ngIf",a.hasSeriesActionType&&U(3,1,a.shouldShowSeriesActionText$)))},RDa=function(a){a&1&&(M(0,"mat-icon",15),K(1,"span"),ina(2,4),M(3,"b"),qd.inI18n=!1,L())},SDa=function(a){a&1&&(K(0,"div",11),E(1,QDa,4,3,"ng-container",12),T(2,"async"),E(3,RDa,4,0,"ng-template",null,2,Mg),L());if(a&2){a=qg(4);var b=P(3);B();I("ngIf",U(2,2,b.isPinned$))("ngIfElse",a)}},TDa=function(a){if(a&1){var b=t();K(0,"ac-hovercard-dialog",6);T(1,"async");T(2,
"async");N("focusin",function(c){u(b);var d=P(2);return v(d.onFocusIn(c))});E(3,ODa,3,7,"button",7);T(4,"async");T(5,"async");cg(6);E(7,SDa,5,4,"div",8);T(8,"async");L()}a&2&&(a=P(2),I("grabFocusAndUseAsModal",U(1,4,a.grabFocusAndUseAsModalObservable))("isPinned",U(2,6,a.isPinned$)),B(3),I("ngIf",U(4,8,a.isPinned$)||U(5,10,a.grabFocusAndUseAsModalObservable)),B(4),I("ngIf",U(8,12,a.pinningEnabled$)&&!a.hidePinPrompt))},UDa=function(a){a&1&&(E(0,TDa,9,14,"ac-hovercard-dialog",5),T(1,"async"));a&2&&
(a=P(),I("ngIf",U(1,1,a.showHovercard)&&!a.hideHovercard))},VDa=function(a){return{label:String(a),value:a}},WDa=function(a,b){for(var c=[],d=0;d<a;d++){c.push([]);for(var e=0;e<b;e++)c[d].push({position:{x:0,y:0,height:0,width:0},label:"-"})}return c},XDa=function(a,b){for(var c=[],d=new Map,e=0;e<a.length;e++){var f=a[e];d.set(f,e);var g=b(f);c.push({label:g.label,value:g.value,metadata:{timeMs:f}})}return{columns:c,xToColIndex:d}},YDa=function(a){var b=a.ticks;a=a.grid.columns;var c=a.map(function(){return!1});
c.length>=1&&(c[0]=!0);c.length>=2&&(c[a.length-1]=!0);if(!b||b.length===0)return c;b=m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=Infinity,f=0,g=0;g<a.length;g++){var k=Math.abs(a[g].metadata.timeMs-d.value);if(k<e)e=k,f=g;else break}c[f]=!0}return c},yl=function(a,b){var c=1;c=c===void 0?1:c;b=b===void 0?1:b;if(!a)return[null,null];var d=m(a);a=d.next().value;d=d.next().value;var e=null,f=null;a>=c&&(e=a-c);d>=b&&(f=d-b);return[e,f]},ZDa=function(a){var b={instanceNameOrId:function(d){var e,
f,g=d==null?void 0:(e=d.metric)==null?void 0:(f=e.labels)==null?void 0:f.instance_name,k,l;d=d==null?void 0:(k=d.resource)==null?void 0:(l=k.labels)==null?void 0:l.instance_id;var r;return(r=g!=null?g:d)!=null?r:""}};if(a){var c=new vl(a);b.getName=function(d){var e;return(e=c.format(d,ZDa()))!=null?e:""}}else b.getName=function(d){var e;return(e=d.name)!=null?e:""};return b},$Da=function(a){return{label:String(a),value:a}},aEa=function(a,b){return function(c){var d=Lk(a,b,c);return{label:d!==null?
Nk(d,b):Nk(c,a),value:d!=null?d:void 0}}},bEa=function(a){var b;return(b=a.name)!=null?b:a.id},cEa=function(a,b){a=a.map(function(e){var f;return(f=e.metadata)!=null?f:null});var c=BCa(a).formatter;if(c){var d=ZDa(b);return function(e){var f;return c.format((f=e.metadata)!=null?f:null,d)||bEa(e)}}return bEa},dEa=function(){return{x:0,y:0,height:0,width:0}},eEa=function(a,b,c,d){return function(e){var f=e.x,g=e.x0,k=e.y,l=e.y0,r=e.y1,w=0,x=0;e=Math.round(a(f.valueOf())||0);if((d==null?0:d.centerInOutputPeriod)&&
(g!==void 0||(d==null?0:d.outputPeriodMs))&&(g=g==null?void 0:g.valueOf(),g===void 0&&(d==null?0:d.outputPeriodMs)&&(g=f.valueOf()-(d==null?NaN:d.outputPeriodMs)),g!==void 0)){e=Math.round(a((f.valueOf()+g)/2)||0);x=Math.floor(a(f.valueOf())||0);f=Math.floor(a(g)||0);var C;x=Math.abs(x-f)*((C=d==null?void 0:d.widthMultiplier)!=null?C:1)}k=Math.round(b(k)||0);l!==void 0&&r!==void 0&&(k=Math.round(b((r+l)/2)||0),r=Math.floor(b(r)||0),l=Math.floor(b(l)||0),w=Math.abs(r-l));return e<c.left&&e+x/2<c.left||
e>c.right&&e-x/2>c.right||k<c.top&&k+w/2<c.top||k>c.bottom&&k-w/2>c.bottom?{x:e,y:k,height:w,width:x,outOfBounds:!0}:{x:e,y:k,height:w,width:x}}},fEa=function(a){var b=a.data;var c=a.xAxisState;var d=a.yAxisState;var e=a.rowFormatter;var f=a.columnFormatter;var g=a.valueFormatter;var k=a.positionMap;a=a.audioChartContext;e||(e=bEa);f||(f=VDa);g||(g=$Da);k||(k=dEa);for(var l=[],r=new Set,w=m(b.series),x=w.next();!x.done;x=w.next()){x=x.value;l.push({label:e(x),metadata:{seriesId:x.id}});x=m(x.data);
for(var C=x.next();!C.done;C=x.next())C=C.value,k(C).outOfBounds||r.add(C.x.valueOf())}e=Array.from(r);e.sort(function(R,V){return R-V});e=XDa(e,f);f=e.columns;e=e.xToColIndex;r=WDa(l.length,f.length);for(w=0;w<b.series.length;w++){x=r[w];C=m(b.series[w].data);for(var H=C.next();!H.done;H=C.next()){var J=H.value;H=e.get(J.x.valueOf());if(H!==void 0&&(H=x[H])){H.position=k(J);J=g(J.y);var O=J.value;H.label=J.label;H.value=O}}}return{rows:l,columns:f,values:r,xAxisState:c,yAxisState:d,audioChartContext:a}},
Bl=function(a,b,c,d){d=d===void 0?!1:d;var e=a.length>0&&a[a.length-1].x.valueOf()-a[0].x.valueOf()>0,f=zl(a,b,d?void 0:Al(c));if(f===a.length-1||a.length<2)return f;e=f+(e?1:-1);var g=a[f],k=a[e];if(!g&&!k)return 0;if(!g&&k)return e;if(!k&&g)return f;a=g.x.valueOf();var l;g=d?void 0:((l=g.x0)==null?void 0:l.valueOf())||(c?a-c:void 0);l=k.x.valueOf();var r;d=d?void 0:((r=k.x0)==null?void 0:r.valueOf())||(c?l-c:void 0);return(g&&b>=g&&b<=a?0:Math.abs(b-a))<=Math.abs(b-(d||l))?f:e},Al=function(a){return function(b){var c;
return((c=b.x0)==null?void 0:c.valueOf())||(a?b.x.valueOf()-a:void 0)}},Cl=function(a,b,c,d){b=Math.abs(c.x.valueOf()-b.x.valueOf());return a?d?{gapDetected:b>Math.max(a*2,6E5),gapWidthMs:b}:{gapDetected:b>=a*2,gapWidthMs:b}:{gapDetected:!1,gapWidthMs:b}},zl=function(a,b,c){if(a.length>0?a[a.length-1].x.valueOf()-a[0].x.valueOf()>0:1){for(var d=0,e=a.length-1,f=Math.ceil((e+d)/2);d<e;){var g=a[f],k=g.x.valueOf();g=c?c(g):void 0;if(b>k)d=f;else if(b<k&&(g===void 0||b<=g))e=f-1;else break;f=Math.ceil((e+
d)/2)}return f||0}d=a.length-1;e=0;for(f=Math.floor((e+d)/2);e<d;){g=a[f];k=g.x.valueOf();g=c?c(g):void 0;if(b>k)d=f;else if(b<k&&(g===void 0||b<=g))e=f+1;else break;f=Math.floor((e+d)/2)}return f},gEa=function(a,b,c){var d=a.data.length>0&&a.data[a.data.length-1].x.valueOf()-a.data[0].x.valueOf()>0,e=zl(a.data,b-c);a=zl(a.data,b+c);return e===a?d?[e,e+1]:[a-1,a]:[Math.min(e,a),Math.max(e,a)]},kEa=function(a){var b=a.values;b.sort(function(r,w){return r.x-w.x});var c=b.map(function(r){return r.x}),
d=b.map(function(r){return r.y}),e=a.earcons||[];e.sort(function(r,w){return r.x-w.x});var f=e.map(function(r){return r.x}),g;f=hEa([].concat(q(c),q(f)),(g=a.xAxis)!=null?g:{});var k,l;return{values:b,earcons:e,xAxis:Object.assign({},f,{density:(l=(k=a.xAxis)==null?void 0:k.density)!=null?l:iEa([c].concat(q(jEa(e).values())),f)}),yAxis:Object.assign({},hEa(d,a.yAxis||{}))}},jEa=function(a){var b=new Map;a=m(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.x;d=d.earcon;var e=b.get(d);e===
void 0?b.set(d,[c]):e.push(c)}return b},iEa=function(a,b){a=a.map(lEa).filter(function(c){return c!==null});if(a.length===0)return 1;a=Math.min.apply(Math,q(a));return 1+(b.max-b.min)/a},lEa=function(a){a=[].concat(q(new Set(a)));if(a.length<2)return null;var b=[];a.sort(function(d,e){return d-e});for(var c=0;c<a.length-1;c++)b.push(a[c+1]-a[c]);b.sort(function(d,e){return d-e});a=(b.length-1)/2;return b[Math.ceil(a)]/2+b[Math.floor(a)]/2},hEa=function(a,b){var c=b.min;b=b.max;var d=Math.min.apply(Math,
q(a));c=c===void 0?d:c;a=Math.max.apply(Math,q(a));return{min:c,max:b===void 0?a:b}},mEa=function(a,b,c,d,e){return c+(e-a)*(c-d)/(a-b)},nEa=function(a){var b=a.min,c=a.max,d=c===b?function(){return-6}:function(e){return mEa(b,c,-24,12,e)};return function(e){e=d(e);return 440*Math.pow(2,e/12)}},qEa=function(a){var b=b===void 0?.13:b;var c=oEa(a.xAxis),d=pEa(a.xAxis,b),e=nEa(a.yAxis),f=a.values.map(function(k){var l=k.x;return{frequency:e(k.y),onset:d(l),pan:c(l)}}),g=a.earcons.map(function(k){var l=
k.x;return{earcon:k.earcon,onset:d(l),pan:c(l)}});return{notes:f,earcons:g,durationSeconds:(a.xAxis.density-1)*b}},pEa=function(a,b){var c=a.min,d=a.max,e=(a.density-1)*b;return c===d?function(){return 0}:function(f){return mEa(c,d,0,e,f)}},oEa=function(a){var b=a.min,c=a.max;return b===c?function(){return 0}:function(d){return mEa(b,c,-1,1,d)}},tEa=function(a){var b=rEa,c;return y(function(d){if(d.nextAddress==1){if(b instanceof sEa)var e=b.privateDoNotAccessOrElseWrappedScript;else throw Error("na");
c=vh(URL.createObjectURL(new Blob([e.toString()],{type:"text/javascript"})));return z(d,a.audioWorklet.addModule(c.toString()),2)}URL.revokeObjectURL(c.toString());ae(d)})},uEa=function(a){a=sh(a).toString();var b=new El;oj(b,2,a);return b},vEa=function(a){if(!a)return null;a=Fl(a,2);return a===null||a===void 0?null:qh(a)},wEa=function(a){if(!a)return null;a=Fl(a,3);return a===null||a===void 0?null:new xh(a)},xEa=function(a){if(!a)return null;a=Fl(a,6);if(a===null||a===void 0)a=null;else{var b=mqa();
a=b?b.createScript(a):a;a=new sEa(a)}return a},yEa=function(a){var b,c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1){b=a.context;for(var r=b.createBuffer(1,5*b.sampleRate,b.sampleRate),w=0;w<1;w++)for(var x=r.getChannelData(w),C=0,H=0;H<x.length;H++)C=(C+.02*(Math.random()*2-1))/1.02,x[H]=C;w=b.createBufferSource();w.buffer=r;w.loop=!0;c=w;c.start(b.currentTime);d=b.createGain();d.gain.value=0;e=b.createGain();c.connect(d).connect(e);return z(l,tEa(b),2)}f=new AudioWorkletNode(b,"rectifier-worklet");
f.channelCountMode="explicit";f.channelCount=1;g=new AudioWorkletNode(b,"threshold-worklet");g.channelCountMode="explicit";g.channelCount=1;k=new AudioWorkletNode(b,"slew-worklet");k.channelCountMode="explicit";k.channelCount=1;a.connect(f).connect(g).connect(k).connect(d.gain);return l.return(e)})},AEa=function(a){if(a&1){var b=t();K(0,"th",22,2);N("focus",function(c){u(b);var d=P();return v(d.focus(c))})("blur",function(c){u(b);var d=P();return v(d.blur(c))});K(2,"span",16);Q(3);L()()}a&2&&(a=P(),
If("aria-colindex",2)("tabindex",zEa(a)?0:-1),B(3),yg(a.AUDIO_HEADER))},EEa=function(a,b){if(a&1){var c=t();Tf(0);K(1,"th",23)(2,"button",24,3);N("click",function(){var d=u(c).$implicit,e=P();return v(BEa(e,d.colIndex))})("focus",function(d){u(c);var e=P();return v(e.focus(d))})("blur",function(d){u(c);var e=P();return v(e.blur(d))});Q(4);L()();Uf()}a&2&&(a=b.$implicit,b=P(),B(),I("ngStyle",Jg(7,CEa,a.column.position.x,a.column.position.y)),If("aria-colindex",a.colIndex+b.numberOfHeaderColumns+1),
B(),If("id",a.column.id)("tabindex",a.column.tabindex)("aria-describedby",b.columnToggleDescriptionId)("aria-expanded",DEa(b,a.colIndex+1)),B(2),S(" ",a.column.label," "))},GEa=function(a){a&1&&(Tf(0),M(1,"mat-icon",31),Uf());a&2&&(a=P(3),B(),I("svgIcon",FEa(a)?"ac:music_off":"ac:music_note"))},KEa=function(a){if(a&1){var b=t();K(0,"td",28)(1,"button",29,5);N("click",function(){u(b);var d=P().$implicit,e=P();HEa(e,d.rowIndex,!0);return v()})("focus",function(d){u(b);var e=P(2);return v(e.focus(d))})("blur",
function(d){u(b);var e=P(2);return v(e.blur(d))});K(3,"span");Q(4);L();K(5,"span",30);Q(6);L();E(7,GEa,2,1,"ng-container",20);L()()}if(a&2){a=P().$implicit;var c=P();I("ngStyle",Jg(10,CEa,a.row.position.x,a.row.position.y));If("aria-colindex",2);B();I("disabled",!c.internalAudioValues[a.rowIndex].audioChartOptions);If("id",c.internalAudioValues[a.rowIndex].id)("tabindex",c.internalAudioValues[a.rowIndex].tabindex)("aria-describedby",c.audioChartButtonDescriptionId+"-"+a.rowIndex);B(3);yg(IEa(c,a.rowIndex));
B();If("id",c.audioChartButtonDescriptionId+"-"+a.rowIndex);B();S(" ",JEa(c,a.rowIndex)," ");B();I("ngIf",!!c.internalAudioValues[a.rowIndex].audioChartOptions)}},LEa=function(a,b){if(a&1){var c=t();Tf(0);K(1,"td",32)(2,"button",33,6);N("click",function(d){u(c);var e=P(2);d.target instanceof HTMLElement&&e.onGridCellActivate.emit(d.target);return v()})("focus",function(d){u(c);var e=P(2);return v(e.focus(d))})("blur",function(d){u(c);var e=P(2);return v(e.blur(d))});Q(4);L()();Uf()}a&2&&(a=b.$implicit,
b=P(2),B(),I("ngStyle",loa(a.column.position.x,a.column.position.y,a.column.position.height,a.column.position.width)),If("aria-colindex",a.colIndex+b.numberOfHeaderColumns+1),B(),If("tabindex",a.column.tabindex)("id",a.column.id)("aria-describedby",b.activateGridCellDescriptionId),B(2),S(" ",a.column.label," "))},NEa=function(a,b){if(a&1){var c=t();K(0,"tr",25)(1,"th",26)(2,"button",24,4);N("click",function(){var d=u(c).$implicit,e=P();return v(e.toggleRow(d.rowIndex))})("focus",function(d){u(c);
var e=P();return v(e.focus(d))})("blur",function(d){u(c);var e=P();return v(e.blur(d))});K(4,"span");Q(5);L()()();E(6,KEa,8,13,"td",27)(7,LEa,5,11,"ng-container",18);L()}a&2&&(a=b.$implicit,b=P(),If("aria-rowindex",a.rowIndex+2),B(),I("ngStyle",Jg(11,CEa,a.row.position.x,a.row.position.y)),If("aria-colindex",1),B(),If("id",a.row.id)("tabindex",a.row.tabindex)("aria-describedby",b.rowToggleDescriptionId)("aria-expanded",MEa(b,a.rowIndex+1)),B(3),yg(a.row.label),B(),I("ngIf",b.audioChartsEnabled),B(),
I("ngForOf",b.shownColumns(b.internalValues[a.rowIndex]))("ngForTrackBy",b.trackColumnById))},OEa=function(a){a&1&&(K(0,"tr")(1,"td",34)(2,"span",16),Xf(3,9),L()()())},QEa=function(a){a&1&&(K(0,"tr")(1,"td",34)(2,"span",16),Xf(3,10),L()()());a&2&&(a=P(),B(3),Yf(PEa(a)),Nma(30))},Gl=function(a,b,c,d,e,f,g){f=f===void 0?"default":f;if(!a)return null;var k=b!=null?b:(new Date).valueOf(),l=Infinity;a=a.series.map(function(r){var w=r.data;if(w.length===0||!b)return{seriesId:r.id,value:null};var x=w[w.length-
1].x.valueOf()-w[0].x.valueOf()>0;if(f==="default")var C=Bl(w,b,d,!0);else f==="left_only"?C=zl(w,b):(C=w.length>0&&w[w.length-1].x.valueOf()-w[0].x.valueOf()>0,C=zl(w,b)+(C?1:-1));var H=C;if(H<0||H>=w.length)return{seriesId:r.id,value:null};var J=C=w[H],O=!1;if(!g||Math.abs(C.x.valueOf()-b)>g)if(d){var R=w[H+(x?-1:1)];w=w[H+(x?1:-1)];var V,ca;if(b<=((ca=(V=C.x0)==null?void 0:V.valueOf())!=null?ca:C.x.valueOf())&&R)O=Cl(d,R,C,e).gapDetected;else if(b>=C.x.valueOf()&&w)O=Cl(d,C,w,e).gapDetected;else if(b>
C.x.valueOf()&&!w)O=Math.abs(b-C.x.valueOf())>d;else{var na,ua;if(b<((ua=(na=C.x0)==null?void 0:na.valueOf())!=null?ua:C.x.valueOf())&&!R){var ia;V=(ia=C.x0)==null?void 0:ia.valueOf();O=V===void 0?Math.abs(b-C.x.valueOf())>d*2:Math.abs(b-V)>d}}}else g&&(O=!0);O?c==="zero_fill"?J={x:new Date(k),y:0}:J=null:(k=C.x.valueOf(),Math.abs(k-b)<Math.abs(l-b)&&(l=k));return{seriesId:r.id,value:J}});d===null&&c==="gap_detection"&&(k=l);return{values:a,timeRange:{x:k}}},REa=function(a,b){return a.x>=b.margins.left&&
a.x<=b.width-b.margins.right&&a.y>=b.margins.top&&a.y<=b.height-b.margins.bottom},SEa=function(a){return a.series.length===0||a.series.some(function(b){return b.data.some(function(c){return typeof c.y==="number"})})||a.series.every(function(b){return b.data.length===0})},TEa=function(a){return a.series.length===0||a.series.some(function(b){return b.data.some(function(c){var d;return(d=c.y)==null?void 0:d.bucketOptions})})||a.series.every(function(b){return b.data.length===0})},Hl=function(a){return typeof a===
"string"?a:a.length===0?UEa[0]:a[0].color},VEa=function(a,b){a&1&&(Tf(0),K(1,"div",1),Q(2),L(),Uf());a&2&&(a=b.ngIf,B(2),S(" ",a," "))},WEa=function(a,b){a&1&&(Qf(0,"div",0),cg(1),Q(2),cg(3,1),Rf());a&2&&(B(2),S(" ",b," "))},XEa=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"div",3),Q(3),T(4,"async"),L()());a&2&&(a=P(),B(3),yg(U(4,1,a.nonblockingErrorMessageObservable)))},YEa=function(a,b){a&1&&(Tf(0),K(1,"div")(2,"span",1)(3,"span",2),Q(4),L(),M(5,"BR"),K(6,"span",3),Q(7),L()()(),Uf());if(a&
2){a=b.ngIf;b=P();B(4);var c;yg((c=a==null?null:a.label)!=null?c:"");B(3);var d,e;Zna(" ",b.aboveLabel," ",(d=a==null?null:a.lowerBound)!=null?d:"",", ",b.belowLabel," ",(e=a==null?null:a.upperBound)!=null?e:"")}},ZEa=function(a){a&1&&(K(0,"button",3)(1,"mat-icon"),Q(2,"more_vert"),L()());a&2&&(P(),a=qg(2),I("matMenuTriggerFor",a))},$Ea=function(a){a&1&&Vf(0)},bFa=function(a){a&1&&E(0,$Ea,1,0,"ng-container",10);if(a&2){a=P().$implicit;var b=P(2);I("ngTemplateOutlet",b.seriesRowTemplate)("ngTemplateOutletContext",
Jg(2,aFa,a.metadata,a.name))}},cFa=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.name," "))},dFa=function(a){a&1&&(K(0,"td",8),Q(1),L());a&2&&(a=P().$implicit,wg("strong",a.isInteracted),B(),S(" ",a.timeshiftDisplayValue||"-"," "))},eFa=function(a){a&1&&Vf(0)},gFa=function(a){a&1&&E(0,eFa,1,0,"ng-container",10);if(a&2){a=P().$implicit;var b=P(2);I("ngTemplateOutlet",b.seriesValueTemplate)("ngTemplateOutletContext",Ig(2,fFa,a.rawValue))}},hFa=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,S(" ",
a.displayValue," "))},iFa=function(a){a&1&&(Q(0),M(1,"br"),Q(2),M(3,"br"),Q(4));a&2&&(a=P(2).$implicit,S(" max: ",a.maxDisplayValue," "),B(2),S(" mean: ",a.displayValue," "),B(2),S(" min: ",a.minDisplayValue," "))},jFa=function(a){a&1&&F(0,hFa,1,1)(1,iFa,5,3);a&2&&(a=P().$implicit,G(a.minDisplayValue===void 0?0:1))},kFa=function(a){a&1&&(K(0,"td",9),M(1,"ac-streams-legend-actions",11),L());if(a&2){a=P().$implicit;var b=P(2);B();I("streamMetadata",a.metadata)("streamActions",b.streamActions)}},mFa=
function(a,b){a&1&&(K(0,"tr")(1,"td",3),M(2,"ac-key",4),L(),K(3,"td",5)(4,"div",6),F(5,bFa,1,5,"ng-container")(6,cFa,1,1),L()(),F(7,dFa,2,3,"td",7),T(8,"async"),K(9,"td",8),F(10,gFa,1,4,"ng-container")(11,jFa,2,1),L(),F(12,kFa,2,2,"td",9),L());if(a&2){a=b.$implicit;b=P(2);B(2);var c;I("color",(c=a.color)!=null?c:b.AC_SYS_COLOR_CHART_ON_SURFACE)("drawnAs",a.drawnAs)("shape",a.shape)("condensed",b.condensedShapes)("lineDash",b.showLineDash?a.lineDash:void 0);B();wg("strong",a.isInteracted);B();I("ngStyle",
Ig(16,lFa,b.minWidth+"px"));B();G(b.seriesRowTemplate?5:6);B(2);G(U(8,14,b.timeshiftColumnLabelObservable)?7:-1);B(2);wg("strong",a.isInteracted);B();G(b.seriesValueTemplate?10:11);B(2);G(b.streamActions.length?12:-1)}},oFa=function(a){a&1&&(K(0,"cdk-virtual-scroll-viewport",0)(1,"table")(2,"tbody",1),E(3,mFa,13,18,"tr",2),T(4,"async"),L()()());if(a&2){a=P();I("itemSize",20);B(3);var b;I("cdkVirtualForOf",(b=U(4,3,a.streamsObservable))!=null?b:Hg(5,nFa))("cdkVirtualForTrackBy",a.trackByIndex)}},pFa=
function(a,b){return a.stackingIndex!==void 0&&b.stackingIndex!==void 0?b.stackingIndex-a.stackingIndex:a.pxValue!==void 0&&b.pxValue!==void 0?a.pxValue-b.pxValue:a.scaledValue?b.scaledValue?a.valueType===2||b.valueType===2?0:b.scaledValue-a.scaledValue:-1:1},rFa=function(a){a&1&&M(0,"div",5);a&2&&(a=P(),I("ngStyle",Ig(1,qFa,a.childHeight+"px")))},sFa=function(a){a&1&&(K(0,"span",4),Q(1),L());a&2&&(a=P(),B(),yg(a.placeholder))},tFa=function(a){a&1&&cg(0)},uFa=function(a){a&1&&(K(0,"span",11),Q(1),
L());a&2&&(a=P(2),B(),yg(a.triggerValue))},vFa=function(a){a&1&&(K(0,"span",5),F(1,tFa,1,0)(2,uFa,2,1,"span",11),L());a&2&&(a=P(),B(),G(a.customTrigger?1:2))},wFa=function(a){if(a&1){var b=t();K(0,"div",12,1);N("keydown",function(c){u(b);var d=P();return v(d._handleKeydown(c))});cg(2,1);L()}a&2&&(a=P(),xg(Eg("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",a._getPanelTheme())),wg("mat-select-panel-animations-enabled",!a._animationsDisabled),I("ngClass",a.panelClass),If("id",a.id+"-panel")("aria-multiselectable",
a.multiple)("aria-label",a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby()))},xFa=function(a){a&1&&(K(0,"mat-option",10),Xf(1,3),L());a&2&&(a=P(),I("value",a.TIMESHIFT_COLUMN_UNIQUE_ID),B(),Yf(a.timeshiftName),Nma(28))},yFa=function(a){a&1&&(Tf(0),K(1,"mat-option",10),Xf(2,4),L(),Uf());a&2&&(a=P(),B(),I("value",a.labelsModel.selectableColumns==null?null:a.labelsModel.selectableColumns[0].uniqueId),B(),Yf(a.labelsModel.selectableColumns==null?null:a.labelsModel.selectableColumns[0].title),
Nma(29))},zFa=function(a,b){a&1&&(K(0,"mat-option",13),Q(1),L());a&2&&(a=b.$implicit,b=P(2),I("value",a.uniqueId)("ve",b.ve.ChartLegendMenuItem)("veClick",!0),B(),S(" ",a.title," "))},AFa=function(a){a&1&&E(0,zFa,2,4,"mat-option",12);a&2&&(a=P(),I("ngForOf",a.labelsModel.selectableColumns))},Il=function(a){var b=$c.apply(1,arguments);if(a==null)throw TypeError("Gc");b=m(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c!=null)for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);return a},BFa=function(){var a=
Jl.supportsDOMEvents;return typeof a==="function"?a():a},DFa=function(a,b){a=a.filter(function(e){return!CFa[e]});if(a.length>0){var c=a.join(", ");try{var d=Jl.createElement("style");d.setAttribute("type","text/css");d.styleSheet||d.appendChild(document.createTextNode("/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media "+c+" {.fx-query-test{ }}"));b.head.appendChild(d);a.forEach(function(e){return CFa[e]=d})}catch(e){console.error(e)}}},
EFa=function(a){var b={};return a.filter(function(c){return b.hasOwnProperty(c)?!1:b[c]=!0})},FFa=function(a,b){return Il(a,b?{mqAlias:b.alias,suffix:b.suffix}:{})},HFa=function(a){var b=m(GFa(a));a=b.next().value;b=b.next().value;b=b===void 0?null:b;return{display:"flex","box-sizing":"border-box","flex-direction":a,"flex-wrap":b?b:null}},GFa=function(a){a=a?a.toLowerCase():"";var b=m(a.split(" "));a=b.next().value;b=b.next().value;var c=a;IFa.find(function(d){return d===c})||(c=IFa[0]);return[c,
JFa(b)]},KFa=function(a){a=m(GFa(a));var b=a.next().value;a.next();return b.indexOf("row")>-1},JFa=function(a){if(a)switch(a.toLowerCase()){case "reverse":case "wrap-reverse":case "reverse-wrap":a="wrap-reverse";break;case "no":case "none":case "nowrap":a="nowrap";break;default:a="wrap"}return a},LFa=function(a){for(var b in a){var c=a[b]||"";switch(b){case "display":a.display=c==="flex"?["-webkit-flex","flex"]:c==="inline-flex"?["-webkit-inline-flex","inline-flex"]:c;break;case "align-items":case "align-self":case "align-content":case "flex":case "flex-basis":case "flex-flow":case "flex-grow":case "flex-shrink":case "flex-wrap":case "justify-content":a["-webkit-"+
b]=c;break;case "flex-direction":c=c||"row";a["-webkit-flex-direction"]=c;a["flex-direction"]=c;break;case "order":a.order=a["-webkit-"+b]=isNaN(c)?"0":c}}return a},MFa=function(){var a=Jl.supportsDOMEvents;return typeof a==="function"?a():a},OFa=function(a,b,c){var d=LFa(b);c.forEach(function(e){NFa(d,e,a)})},NFa=function(a,b,c){Object.keys(a).forEach(function(d){for(var e=m(Array.isArray(a[d])?a[d]:[a[d]]),f=e.next();!f.done;f=e.next())c.setStyle(b,d,f.value)})},PFa=function(a,b){var c=c===void 0?
!1:c;var d="";if(a&&MFa())try{var e=d=MFa()?a.style[b]:"";c||(d=e||getComputedStyle(a).getPropertyValue(b))}catch(f){}return d?d.trim():"block"},QFa=function(a){return a.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")},RFa=function(a){return(a.length>0?a.charAt(0):"").toUpperCase()+(a.length>1?a.slice(1):"")},UFa=function(){SFa.forEach(function(a){a.suffix&&a.suffix!==""||(a.suffix=a.alias.replace(TFa,"|").split("|").map(RFa).join(""),a.overlapping=a.overlapping||!1)});return SFa},WFa=function(a){a&
1&&M(0,"mat-icon",22);a&2&&(a=P(),I("ngClass",Ig(1,VFa,!(a.xAxisPinEnabled&&a.hoveredColumn===2&&(a.currentSortColumn.id!==2||(a.currentSortColumn.direction||0)===0)))))},XFa=function(a){a&1&&M(0,"mat-icon",23)},YFa=function(a){a&1&&M(0,"mat-icon",24)},ZFa=function(a){a&1&&M(0,"mat-icon",28)},$Fa=function(a){a&1&&M(0,"mat-icon",29)},cGa=function(a,b){if(a&1){var c=t();K(0,"span",27);N("click",function(){u(c);var d=P(2);aGa(d,"MAIN",1);bGa(d);return v()});Q(1);E(2,ZFa,1,0,"mat-icon",17)(3,$Fa,1,0,
"mat-icon",18);L()}a&2&&(a=b.$implicit,b=P(2),xg(Eg("sortable-column legend-table-cell ",a)),I("fxFlex",Dg(b.columnFlexWidth))("matTooltip",Dg(a)),If("aria-label",a),B(),S(" ",a," "),B(),I("ngIf",b.currentSortColumn.id===1&&(b.currentSortColumn.direction||0)>0),B(),I("ngIf",b.currentSortColumn.id===1&&(b.currentSortColumn.direction||0)<0))},dGa=function(a){a&1&&(K(0,"div",25),E(1,cGa,4,11,"span",26),L());a&2&&(a=P(),B(),I("ngForOf",a.columnKeys))},eGa=function(a){a&1&&M(0,"mat-icon",22);if(a&2){var b=
P().index;a=P(2);b=a.labelsModel.selectedColumns[b].uniqueId;I("ngClass",Ig(1,VFa,!(a.hoveredColumn===b&&(a.currentSortColumn.id!==10+b||(a.currentSortColumn.direction||0)===0))))}},fGa=function(a){a&1&&M(0,"mat-icon",28)},gGa=function(a){a&1&&M(0,"mat-icon",29)},lGa=function(a,b){if(a&1){var c=t();K(0,"div",31)(1,"button",32);N("mouseenter",function(){var e=u(c).index,f=P(2);f.hoveredColumn=f.labelsModel.selectedColumns[e].uniqueId;return v()})("mouseleave",function(){u(c);P(2).hoveredColumn=null;
return v()})("click",function(){var e=u(c).index,f=P(2);aGa(f,"LABEL",10+f.labelsModel.selectedColumns[e].uniqueId);bGa(f);return v()});Q(2);E(3,eGa,1,3,"mat-icon",5)(4,fGa,1,0,"mat-icon",17)(5,gGa,1,0,"mat-icon",18);L()()}if(a&2){a=b.$implicit;b=b.index;var d=P(2);xg(Eg("ac-legend-key sortable-column ",a.toLowerCase().replace(/[^\w]+/g,"-")," ac-a11y-keyboard-focusable ac-table-legend-label-header-container"));I("fxFlex",Eg("",d.labelsModel.labelPercents[b],"%"));If("aria-sort",hGa(d,d.labelsModel.selectedColumns[b].uniqueId))("aria-colindex",
2+b);B();I("matTooltip",Dg(a))("ve",d.ve.ColumnSortButton)("veClick",!0);If("title",iGa(d,d.labelsModel.selectedColumns[b].uniqueId))("aria-label",a);B();S(" ",a," ");B();I("ngIf",!(jGa(d,d.labelsModel.selectedColumns[b].uniqueId)||kGa(d,d.labelsModel.selectedColumns[b].uniqueId)));B();I("ngIf",jGa(d,d.labelsModel.selectedColumns[b].uniqueId));B();I("ngIf",kGa(d,d.labelsModel.selectedColumns[b].uniqueId))}},mGa=function(a){a&1&&(Tf(0),E(1,lGa,6,17,"div",30),Uf());a&2&&(a=P(),B(),I("ngForOf",a.labelsModel.labelHeaders))},
oGa=function(a){a&1&&(K(0,"span",33),Q(1),L());a&2&&(a=P(),I("matTooltip",Dg(a.timeshiftName))("ngStyle",Jg(7,nGa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)",a.valueColumnWidth+"px"))("ngClass",a.scale>100?"leftmost-frozen":""),If("aria-colindex",a.getColIndexOffsetForTimeshift())("aria-label",a.timeshiftName),B(),S(" ",a.timeshiftName," "))},pGa=function(a){a&1&&(K(0,"span",34),Q(1),L());a&2&&(a=P(),I("matTooltip",Dg(a.statsModeSummaryColumnLabel))("ngStyle",Jg(7,nGa,"translateX("+(-1*
a.widthDifference+a.scrollLeft)+"px)",a.valueColumnWidth+"px"))("ngClass",!a.timeshiftName&&a.scale>100?"leftmost-frozen":""),If("aria-colindex",a.getColIndexOffsetForStatsMode())("aria-label",a.statsModeSummaryColumnLabel),B(),S(" ",a.statsModeSummaryColumnLabel," "))},qGa=function(a){a&1&&M(0,"mat-icon",22);a&2&&(a=P(),I("ngClass",Ig(1,VFa,!(a.xAxisPinEnabled&&a.hoveredColumn===1E3&&(a.currentSortColumn.id!==1E3||(a.currentSortColumn.direction||0)===0)))))},rGa=function(a){a&1&&M(0,"mat-icon",28)},
sGa=function(a){a&1&&M(0,"mat-icon",29)},uGa=function(a){a&1&&M(0,"span",35);a&2&&(a=P(),I("ngStyle",Ig(1,tGa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)")))},vGa=function(a){a&1&&(K(0,"span",36)(1,"span",37),Q(2),L()());a&2&&(a=P(),I("ngStyle",Ig(2,tGa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)")),B(2),S(" ",a.streamActionsMenuTooltip," "))},wGa=function(a){a&1&&(K(0,"div",18)(1,"span",19),Q(2),L()());a&2&&(a=P(),B(),I("matTooltip",Dg(a.stream.name)),B(),S(" ",a.stream.name,
" "))},yGa=function(a,b){a&1&&(K(0,"span",20),Q(1),L());if(a&2){a=b.$implicit;b=b.index;var c=P();I("fxFlex",Eg("",c.labelPercents[b],"%"))("matTooltip",Dg(a))("ngStyle",Hg(8,xGa));If("role",b===0?"rowheader":"cell")("aria-colindex",2+b);B();S(" ",a," ")}},AGa=function(a){a&1&&(K(0,"div",21),Q(1),L());a&2&&(a=P(),I("matTooltip",Dg(a.stream.timeshiftValue))("ngStyle",Jg(6,zGa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)",a.valueColumnWidth+"px"))("ngClass",a.scale>100?"leftmost-frozen":""),
If("aria-colindex",a.getColIndexOffsetForTimeshift()),B(),S(" ",a.stream.timeshiftValue," "))},BGa=function(a){a&1&&(K(0,"div",22),Q(1),L());a&2&&(a=P(),I("matTooltip",Dg(a.stream.statsModeSummaryValue))("ngStyle",Jg(6,zGa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)",a.valueColumnWidth+"px"))("ngClass",!a.timeshift&&a.scale>100?"leftmost-frozen":""),If("aria-colindex",a.getColIndexOffsetForStatsMode()),B(),S(" ",a.stream.statsModeSummaryValue," "))},DGa=function(a){a&1&&M(0,"div",23);a&
2&&(a=P(),I("ngStyle",Ig(1,CGa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)")))},EGa=function(a){a&1&&(K(0,"div",24)(1,"button",25),M(2,"mat-icon",26),L()());if(a&2){a=P();var b=qg(17);I("ngStyle",Ig(4,CGa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)"));B();I("matTooltip",a.streamActionsMenuTooltip)("matMenuTriggerFor",b);If("aria-label",a.streamActionsMenuTooltip)}},GGa=function(a){if(a&1){var b=t();K(0,"div",8)(1,"ac-table-legend-header",9,2);T(3,"async");N("sortFunc",function(c){u(b);
var d=P();d.sortFunc=c;d.update();return v()});L();K(4,"ac-column-selector",10);N("selectedColumnsChanged",function(){u(b);var c=P();c.labelsModel=Object.assign({},c.labelsModel);c.labelsModelSubject.next(c.labelsModel);c.selectedColumnsChanged();c.update();return v()});L()()}a&2&&(a=P(),B(),I("columnKeys",a.columnKeys)("labelsModel",U(3,15,a.labelsModelSubject))("valueName",a.valueName)("columnFlexWidth",a.columnKeys&&a.columnKeys.length&&100/a.columnKeys.length||0)("scrollLeft",a.scrollLeft)("widthDifference",
a.widthDifference)("scale",a.scale)("valueColumnWidth",FGa(a))("streamActions",a.streamActions)("defaultSortingColumn",a.defaultSortingColumn)("defaultSortingDirection",a.defaultSortingDirection)("timeshiftName",a.timeshiftName)("statsModeSummaryColumnLabel",a.statsModeSummaryColumnLabel),B(3),I("labelsModel",a.labelsModel)("valueName",a.valueName))},IGa=function(a,b){if(a&1){var c=t();K(0,"ac-table-legend-row",13);N("mouseenter",function(){var d=u(c).$implicit,e=P(2);return v(e.hover(d))})("mouseleave",
function(){var d=u(c).$implicit,e=P(2);return v(BDa(e,d))});L()}a&2&&(a=b.$implicit,b=P(2),I("stream",a)("labelPercents",b.labelsModel.labelPercents)("columnFlexWidth",b.columnKeys&&b.columnKeys.length&&100/b.columnKeys.length||0)("scrollLeft",b.scrollLeft)("scale",b.scale)("valueColumnWidth",FGa(b))("streamActions",b.streamActions)("widthDifference",b.widthDifference)("timeshift",!!b.timeshiftName)("showStatsModeSummaryColumn",!!b.statsModeSummaryColumnLabel),If("aria-rowindex",HGa(b,a)))},JGa=function(a){a&
1&&(K(0,"div",11),E(1,IGa,1,11,"ac-table-legend-row",12),L());a&2&&(a=P(),B(),I("ngForOf",a.viewPortStreams)("ngForTrackBy",a.trackByStreamName))},KGa=function(){return new Sc(3008,!1)},Kl=function(a){if(typeof a=="number")return a;a=a.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:LGa(parseFloat(a[1]),a[2])},LGa=function(a,b){switch(b){case "s":return a*1E3;default:return a}},NGa=function(a,b,c){if(a.hasOwnProperty("duration"))b=a;else a:{var d=0,e="";if(typeof a==="string"){var f=a.match(MGa);
if(f===null){b.push(new Sc(3E3,!1));b={duration:0,delay:0,easing:""};break a}a=LGa(parseFloat(f[1]),f[2]);var g=f[3];g!=null&&(d=LGa(parseFloat(g),f[4]));(f=f[5])&&(e=f)}c||(c=!1,f=b.length,a<0&&(b.push(new Sc(3100,!1)),c=!0),d<0&&(b.push(new Sc(3101,!1)),c=!0),c&&b.splice(f,0,new Sc(3E3,!1)));b={duration:a,delay:d,easing:e}}return b},OGa=function(a){return a.length?a[0]instanceof Map?a:a.map(function(b){return new Map(Object.entries(b))}):[]},Ll=function(a,b,c){b.forEach(function(d,e){var f=PGa(e);
c&&!c.has(e)&&c.set(e,a.style[f]);a.style[f]=d})},Ml=function(a,b){b.forEach(function(c,d){d=PGa(d);a.style[d]=""})},QGa=function(a){if(Array.isArray(a)){var b;a.length==1?b=a[0]:b={type:2,steps:a,options:null};a=b}return a},SGa=function(a,b,c){var d=b.params||{};a=RGa(a);a.length&&a.forEach(function(e){d.hasOwnProperty(e)||c.push(new Sc(3001,!1))})},RGa=function(a){var b=[];if(typeof a==="string"){for(var c;c=TGa.exec(a);)b.push(c[1]);TGa.lastIndex=0}return b},UGa=function(a,b,c){var d=""+a,e=d.replace(TGa,
function(f,g){g=b[g];g==null&&(c.push(new Sc(3003,!1)),g="");return g.toString()});return e==d?a:e},PGa=function(a){return a.replace(VGa,function(){return $c.apply(0,arguments)[1].toUpperCase()})},XGa=function(a,b,c){if(c.size&&b.length){var d=b[0],e=[];c.forEach(function(g,k){d.has(k)||e.push(k);d.set(k,g)});if(e.length){c={};for(var f=1;f<b.length;c={kf$jscomp$1:void 0},f++)c.kf$jscomp$1=b[f],e.forEach(function(g){return function(k){return g.kf$jscomp$1.set(k,WGa(a,k))}}(c))}}return b},Nl=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 Sc(3004,!1);
}},WGa=function(a,b){return window.getComputedStyle(a)[b]},Pl=function(a){switch(a.length){case 0:return new Ol;case 1:return a[0];default:return new YGa(a)}},$Ga=function(a,b,c){b=b===void 0?new Map:b;c=c===void 0?new Map:c;var d=[],e=[],f=-1,g=null;a.forEach(function(k){var l=k.get("offset"),r=l==f,w=r&&g||new Map;k.forEach(function(x,C){var H=C;if(C!=="offset")switch(H=PGa(H),x){case "!":x=b.get(C);break;case "*":x=c.get(C);break;default:x=ZGa(H,x,d)}w.set(H,x)});r||e.push(w);g=w;f=l});if(d.length)throw new Sc(3502,
!1);return e},bHa=function(a,b,c,d){switch(b){case "start":a.onStart(function(){return d(c&&aHa(c,"start",a))});break;case "done":a.onDone(function(){return d(c&&aHa(c,"done",a))});break;case "destroy":a.onDestroy(function(){return d(c&&aHa(c,"destroy",a))})}},aHa=function(a,b,c){var d=c.totalTime;b=cHa(a.element,a.triggerName,a.fromState,a.toState,b||a.phaseName,d==void 0?a.totalTime:d,c.disabled?!0:!1);a=a._data;a!=null&&(b._data=a);return b},cHa=function(a,b,c,d,e,f,g){return{element:a,triggerName:b,
fromState:c,toState:d,phaseName:e===void 0?"":e,totalTime:f===void 0?0:f,disabled:!!g}},Ql=function(a,b,c){var d=a.get(b);d||a.set(b,d=c);return d},dHa=function(a){var b=a.indexOf(":");return[a.substring(1,b),a.slice(b+1)]},fHa=function(a){a=a.parentNode||a.host||null;return a===eHa?null:a},gHa=function(a,b){for(;b;){if(b===a)return!0;b=fHa(b)}return!1},jHa=function(a,b){var c=[];typeof a=="string"?a.split(/\s*,\s*/).forEach(function(d){a:{if(d[0]==":"&&(d=hHa(d,b),typeof d=="function")){c.push(d);
d=void 0;break a}var e=d.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(e==null||e.length<4)b.push(new Sc(3015,!1)),d=c;else{d=e[1];var f=e[2];e=e[3];c.push(iHa(d,e));f[0]!="<"||d=="*"&&e=="*"||c.push(iHa(e,d));d=void 0}}return d}):c.push(a);return c},hHa=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 Sc(3016,
!1)),"* => *"}},iHa=function(a,b){var c=kHa.has(a)||lHa.has(a),d=kHa.has(b)||lHa.has(b);return function(e,f){var g=a=="*"||a==e,k=b=="*"||b==f;!g&&c&&typeof e==="boolean"&&(g=e?kHa.has(a):lHa.has(a));!k&&d&&typeof f==="boolean"&&(k=f?kHa.has(b):lHa.has(b));return g&&k}},nHa=function(a){var b=a.split(/\s*,\s*/).find(function(c){return c==":self"})?!0:!1;b&&(a=a.replace(mHa,""));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]},oHa=function(a){if(typeof a=="string")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},pHa=function(a,b){if(a.hasOwnProperty("duration"))return a;if(typeof a=="number")return{duration:NGa(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=NGa(a,b);return{duration:a.duration,delay:a.delay,easing:a.easing}},Rl=function(a){if(a){if(a=Object.assign({},a),a.params){var b=a;var c=(c=a.params)?Object.assign({},c):null;b.params=c}}else a={};return a},qHa=function(a,b,c,d,e,f,g,k){return{type:1,element:a,keyframes:b,preStyleProps:c,postStyleProps:d,duration:e,delay:f,totalTime:e+f,easing:g===void 0?null:g,subTimeline:k===void 0?!1:k}},sHa=function(a,b,c,d,e,f,g,k,l,r){f=
f===void 0?new Map:f;g=g===void 0?new Map:g;r=r===void 0?[]:r;return(new rHa).buildKeyframes(a,b,c,d,e,f,g,k,l,r)},tHa=function(a,b){var c=new Map,d;a.forEach(function(e){if(e==="*"){d!=null||(d=b.keys());e=m(d);for(var f=e.next();!f.done;f=e.next())c.set(f.value,"*")}else for(e=m(e),f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;g=g.next().value;c.set(f,g)}});return c},uHa=function(a,b,c,d,e,f,g,k,l,r,w,x,C){return{type:0,element:a,triggerName:b,isRemovalTransition:e,fromState:c,
fromStyles:f,toState:d,toStyles:g,timelines:k,queriedElements:l,preStyleProps:r,postStyleProps:w,totalTime:x,errors:C}},vHa=function(a,b,c,d,e){return a.some(function(f){return f(b,c,d,e)})},wHa=function(a,b){var c=Object.assign({},b);Object.entries(a).forEach(function(d){var e=m(d);d=e.next().value;e=e.next().value;e!=null&&(c[d]=e)});return c},yHa=function(a,b){return new xHa(a,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(){return!0}],options:null,queryCount:0,depCount:0},
b)},zHa=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))},AHa=function(a){return a&&a.nodeType===1},BHa=function(a,b){var c=a.style.display;a.style.display=b!=null?b:"none";return c},DHa=function(a,b,c){var d=[];b.forEach(function(g){return d.push(BHa(g))});var e=[];c.forEach(function(g,k){var l=new Map;g.forEach(function(r){var w=WGa(k,r);l.set(r,w);w&&w.length!=0||(k.__ng_removed=CHa,e.push(k))});a.set(k,l)});var f=0;b.forEach(function(g){return BHa(g,d[f++])});return e},
EHa=function(a,b){function c(g){if(!g)return 1;var k=f.get(g);if(k)return k;var l=g.parentNode;d.has(l)?k=l:e.has(l)?k=1:k=c(l);f.set(g,k);return k}var d=new Map;a.forEach(function(g){return d.set(g,[])});if(b.length==0)return d;var e=new Set(b),f=new Map;b.forEach(function(g){var k=c(g);k!==1&&d.get(k).push(g)});return d},Sl=function(a,b){var c;(c=a.classList)==null||c.add(b)},Tl=function(a,b){var c;(c=a.classList)==null||c.remove(b)},GHa=function(a,b,c){Pl(c).onDone(function(){return FHa(a,b)})},
IHa=function(a){var b=[];HHa(a,b);return b},HHa=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];d instanceof YGa?HHa(d.players,b):b.push(d)}},JHa=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},KHa=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},QHa=function(a,b){var c=null,d=null;
Array.isArray(b)&&b.length?(c=LHa(b[0]),b.length>1&&(d=LHa(b[b.length-1]))):b instanceof Map&&(c=LHa(b));return c||d?new PHa(a,c,d):null},LHa=function(a){var b=null;a.forEach(function(c,d){if(d==="display"||d==="position")b=b||new Map,b.set(d,c)});return b},RHa=function(a){switch(a){case "body":return document.body;case "document":return document;case "window":return window;default:return a}},SHa=function(a){var b=a.indexOf(".");return[a.substring(0,b),a.slice(b+1)]},THa=function(a,b){var c=function(){var d=
a.apply(this,[].concat(q($c.apply(0,arguments))))||this;d.defaultColor=b;d.color=b;return d};Y(c,a);da.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},UHa=function(a){var b=function(){var c=a.apply(this,[].concat(q($c.apply(0,
arguments))))||this;c._disableRipple=!1;return c};Y(b,a);da.Object.defineProperties(b.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(c){this._disableRipple=Lh(c)}}});return b},VHa=function(a){var b=function(){var c=a.apply(this,[].concat(q($c.apply(0,arguments))))||this;c._disabled=!1;return c};Y(b,a);da.Object.defineProperties(b.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(c){this._disabled=
Lh(c)}}});return b},WHa=function(){return{diameter:100}},XHa=function(a){a&1&&(yd(),M(0,"circle",4));if(a&2){a=P();var b=qg(1);vg("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));If("r",a._getCircleRadius())}},YHa=function(a){a&1&&(yd(),M(0,"circle",4));if(a&2){a=P();
var b=qg(1);vg("stroke-dashoffset",a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));If("r",a._getCircleRadius())}},ZHa=function(a){a&1&&(Tf(0),M(1,"mat-icon",1),Uf());a&2&&(a=P(2),B(),I("svgIcon",$na("",a.iconSpec.iconset,"-",a.iconSpec.size,":",a.iconSpec.icon)))},$Ha=function(a){a&1&&(Tf(0),K(1,"mat-icon"),Q(2),L(),Uf());a&2&&(a=P(2),B(2),yg(a.iconSpec.icon))},aIa=
function(a){a&1&&(Tf(0),M(1,"mat-spinner",2),Uf());a&2&&(a=P(2),B(),I("diameter",a.iconSpec.sizePx)("strokeWidth",a.iconSpec.sizePx/10))},bIa=function(a){a&1&&(Tf(0),E(1,ZHa,2,4,"ng-container",0)(2,$Ha,3,1,"ng-container",0)(3,aIa,2,2,"ng-container",0),Uf());a&2&&(a=P(),B(),I("ngIf",a.iconSpec.kind==="mat-icon"),B(),I("ngIf",a.iconSpec.kind==="mat-icon-font"),B(),I("ngIf",a.iconSpec.kind==="mat-spinner"))},cIa=function(a){switch(a){case "large":return 32;case "medium":return 24;case "small":return 18;
default:wb(a)}},dIa=function(a){a&1&&(yd(),K(0,"svg",11),M(1,"circle",12),L());a&2&&(a=P(),If("viewBox",a._viewBox()),B(),vg("stroke-dasharray",a._strokeCircumference(),"px")("stroke-dashoffset",a._strokeCircumference()/2,"px")("stroke-width",a._circleStrokeWidth(),"%"),If("r",a._circleRadius()))},fIa=function(a){a.id||(a.id="ace-labelledby-message-goog_"+eIa++)},iIa=function(a,b){var c=gIa(a);c.some(function(d){return d.trim()===b.trim()})||(c.length===0&&(fIa(a),c.push(a.id.trim())),c.push(b.trim()),
hIa(a,"aria-labelledby",c.join(" ")))},jIa=function(a,b){var c=gIa(a).filter(function(d){return d!==b.trim()});c.length===1&&c[0]===a.id?a.removeAttribute("aria-labelledby"):hIa(a,"aria-labelledby",c.join(" "))},gIa=function(a){return(a.getAttribute("aria-labelledby")||"").match(/\S+/g)||[]},lIa=function(a){if(a&1){var b=t();K(0,"button",3);N("click",function(){u(b);var c=P();return v(kIa(c))});Q(1);L()}a&2&&(a=P(),If("aria-label",a.action.ariaLabel),B(),S(" ",a.action.label," "))},mIa=function(a){if(a&
1){var b=t();K(0,"a",3);N("click",function(){u(b);var c=P();return v(kIa(c))});Q(1);L()}a&2&&(a=P(),If("href",a.action.href,Ne)("target",a.action.target||null)("aria-label",a.action.ariaLabel),B(),S(" ",a.action.label," "))},nIa=function(a){a&1&&(K(0,"button",4),M(1,"ace-icon",5),L())},oIa=function(a){a&1&&M(0,"ace-tooltip-action",7);a&2&&(a=P(2),I("action",a.tooltipRef.aceTooltipAction))},pIa=function(a){a&1&&(Tf(0),Q(1),E(2,oIa,1,1,"ace-tooltip-action",6),Uf());a&2&&(a=P(),B(),S(" ",a.tooltipRef.content,
" "),B(),I("ngIf",a.tooltipRef.aceTooltipAction))},qIa=function(a){a&1&&M(0,"ace-tooltip-action",7);a&2&&(a=P(2),I("action",a.tooltipRef.aceTooltipAction))},rIa=function(a){a&1&&(Tf(0),M(1,"span",8),E(2,qIa,1,1,"ace-tooltip-action",6),Uf());a&2&&(a=P(),B(),I("innerHTML",a.tooltipRef.content.html,Me),B(),I("ngIf",a.tooltipRef.aceTooltipAction))},sIa=function(a){a&1&&Vf(0)},tIa=function(a){a&1&&(Tf(0),E(1,sIa,1,0,"ng-container",9),Uf());a&2&&(P(),a=qg(6),B(),I("ngTemplateOutlet",a))},uIa=function(a){a&
1&&Vf(0)},vIa=function(a){a&1&&E(0,uIa,1,0,"ng-container",10);a&2&&(a=P(),I("ngTemplateOutlet",a.tooltipRef.content)("ngTemplateOutletContext",a.tooltipRef.aceTooltipTemplateData))},wIa=function(a,b){a&&b(a)&&wIa(a.parentNode,b)},xIa=function(a){var b=void 0;wIa(a,function(c){return c.classList&&c.classList.contains("cfc-remove-from-tab-order")?(b=c,!1):!0});return b},yIa=function(a){var b;(b=!a.offsetParent||a.disabled)||(b=!!xIa(a));return b?!1:(a=a.attributes.getNamedItem("tabindex"))&&Number(a.value)===
-1?!1:!0},zIa=function(a,b,c,d){var e=d.top,f=d.top+3,g=new Path2D;g.rect(b,e,c-b,d.bottom-e);var k=new Path2D,l=Math.max(b,d.left),r=!1;b<d.left&&c-b>=4?(l=c-b>=12?d.left+8:Math.max(c-4,d.left),r=!0,k.moveTo(l,e+1.5),k.lineTo(l+1.5,e)):k.moveTo(l,e);var w=Math.min(c,d.right),x=!1;c>d.right?c>d.right&&c-b>=4&&(w=d.right-c>=12?d.right-8:Math.min(c,d.right-4),x=!0,k.lineTo(w-1.5,e),k.lineTo(w,e+1.5),k.lineTo(w-1.5,f)):(k.lineTo(w,e),k.lineTo(w,f));r?k.lineTo(l+1.5,f):k.lineTo(l,f);k.closePath();b=new Path2D;
b.rect(d.left,0,d.right-d.left,d.bottom);a.save();a.clip(b);a.globalCompositeOperation="source-over";a.globalAlpha=.1;a.fill(g);a.restore();a.save();a.globalAlpha=.25;a.fill(k);a.restore();r&&(g=new Path2D,g.moveTo(l-1,e+1.5),g.lineTo(d.left,e+1.5),a.save(),a.clip(b),a.globalAlpha=.25,a.setLineDash([1,1]),a.lineWidth=3,a.stroke(g),a.restore());x&&(l=new Path2D,l.moveTo(w+1,e+1.5),l.lineTo(d.right,e+1.5),a.save(),a.clip(b),a.globalAlpha=.25,a.setLineDash([1,1]),a.lineWidth=3,a.stroke(l),a.restore())},
AIa=function(a,b,c,d){var e=d.top,f=d.top+3,g=new Path2D;g.rect(Math.max(b,d.left),e,Math.min(2,c-b),d.bottom-e);var k=new Path2D;k.rect(Math.min(c-2,d.right-2),e,Math.min(2,c-b),d.bottom-e);var l=new Path2D;b=Math.max(b,d.left);l.rect(b,e,Math.min(c,d.right)-b,f-e);(new Path2D).rect(d.left,0,d.right-d.left,d.bottom);a.save();a.globalAlpha=1;a.fill(l);a.fill(g);a.fill(k);a.restore()},BIa=function(a,b,c,d,e){var f=e.top-7,g=e.top,k=new Path2D;k.moveTo(c+2,f);k.lineTo(d-2,f);k.arcTo(d,f,d,f+2,2);k.lineTo(d,
e.bottom);k.lineTo(c,e.bottom);k.lineTo(c,f+2);k.arcTo(c,f,c+2,f,2);k.closePath();var l=new Path2D;l.moveTo(c-1,e.bottom);l.lineTo(c-1,f+2);l.arcTo(c-1,f-1,c+2,f-1,3);l.lineTo(d-2,f-1);l.arcTo(d+1,f-1,d+1,f+2,3);l.lineTo(d+1,e.bottom);var r=new Path2D;c<e.left?r.moveTo(e.left,f):r.moveTo(c+2,f);if(d>e.right){var w=e.right;c+7+2>e.right&&(w=Math.max(e.right,c+7));r.lineTo(w,f);r.lineTo(w+3,(g+f)/2);r.lineTo(w,g)}else c+7>d?(w=c+7,r.lineTo(w-2,f),r.arcTo(w,f,w,f+2,2)):(r.lineTo(d-2,f),r.arcTo(d,f,d,
f+2,2),r.lineTo(d,g));c<e.left?(r.lineTo(e.left,g),r.lineTo(e.left-3,(g+f)/2),r.lineTo(e.left,f)):(c+7+2>e.right||c+7>d||c+7+2>d?(w=d,c+7>d&&(w=c+7),c+7+2>e.right&&(w=Math.max(e.right,c+7)),d<=w&&d>w-1?r.lineTo(w,g+7):(r.lineTo(w,g+7-4),r.arcTo(w,g+7,w-2,g+7,2))):(r.lineTo(c+7+2,g),r.arcTo(c+7,g,c+7,g+2,2),r.lineTo(c+7,g+7-4),r.arcTo(c+7,g+7,c+7-2,g+7,2)),r.lineTo(c,g+7),r.lineTo(c,f+2),r.arcTo(c,f,c+2,f,2));r.closePath();c=new Path2D;c.rect(e.left,0,e.right-e.left,e.bottom);a.save();a.clip(c);a.globalCompositeOperation=
"destination-out";a.fill(k);a.globalCompositeOperation="source-over";a.globalAlpha=.1;a.fill(k);a.restore();a.save();a.clip(c);a.strokeStyle=Zk("var(--ac-sys-color-annotation-surface, #FFF)",b);a.globalCompositeOperation="destination-out";a.lineWidth=2;a.stroke(l);a.restore();a.save();a.fill(r);a.restore()},CIa=function(a,b,c,d){a.save();var e=d.top-7,f=d.top,g=c+18,k=new Path2D;k.moveTo(c,d.bottom);k.lineTo(c,e+2);k.arcTo(c,e,c+2,e,2);if(g>d.right){var l=c+7;k.lineTo(l-2,e);k.arcTo(l,e,l,e+2,2)}else k.lineTo(g-
2,e),k.arcTo(g,e,g,e+2,2),k.lineTo(g,f-2),k.arcTo(g,f,g-2,f,2),k.lineTo(c+7+2,f),k.arcTo(c+7,f,c+7,f+2,2);k.lineTo(c+7,f+7-2);k.arcTo(c+7,f+7,c+7-2,f+7,2);k.lineTo(c+1+2,f+7);k.arcTo(c+1,f+7,c+1,f+7+2,2);k.lineTo(c+1,d.bottom);k.lineTo(c,d.bottom);k.closePath();l=new Path2D;l.moveTo(c-1,d.bottom);l.lineTo(c-1,e+2);l.arcTo(c-1,e-1,c+2,e-1,3);g>d.right?(g=c+7,l.lineTo(g-2,e-1),l.arcTo(g+1,e-1,g+1,e+2,3)):(l.lineTo(g-2,e-1),l.arcTo(g+1,e-1,g+1,e+2,3),l.lineTo(g+1,f-2),l.arcTo(g+1,f+1,g-2,f+1,3),l.lineTo(c+
7+2,f+1),l.arcTo(c+7,f+1,c+7+1,f+2,1));l.lineTo(c+7+1,f+7-2);l.arcTo(c+7+1,f+7+1,c+7-2,f+7+1,3);l.lineTo(c+1+2,f+7+1);l.arcTo(c+1+1,f+7+1,c+1+1,f+7+2,1);l.lineTo(c+1+1,d.bottom);a.strokeStyle=Zk("var(--ac-sys-color-annotation-surface, #FFF)",b);a.lineWidth=2;a.stroke(l);a.fill(k);a.restore()},DIa=function(a,b,c,d){d=d===void 0?.375:d;var e=new Path2D;e.moveTo(b,c.top);e.lineTo(b,c.bottom);b=new Path2D;b.rect(c.left,0,c.right-c.left,c.bottom);a.save();a.clip(b);a.globalCompositeOperation="source-over";
a.globalAlpha=d;a.setLineDash([4,4]);a.stroke(e);a.restore()},EIa=function(a,b,c,d,e,f){var g=e.size;e=m(e);for(var k=e.next();!k.done;k=e.next()){var l=1-Math.pow(1-f,1/g);a.strokeStyle=Zk(k.value,b);DIa(a,c,d,l)}},FIa=function(a,b,c){var d=new Path2D;d.moveTo(b,c.top);d.lineTo(b,c.bottom);b=new Path2D;b.rect(c.left,0,c.right-c.left,c.bottom);a.save();a.clip(b);a.globalCompositeOperation="source-over";a.globalAlpha=1;a.lineWidth=2;a.stroke(d);a.restore()},GIa=function(a,b){return a===null?0:8+(b===
void 0?0:b)+18+8*(a.icons.length-1)+.6*12*(Math.floor(Math.log10(a.annotationIds.length))+1)},HIa=function(a,b,c){a=a.currentValue;var d,e=a==null?void 0:(d=a.data)==null?void 0:d.sort(function(C,H){return C.start-H.start});a=a==null?void 0:a.state;if(e==null||!e.length||!a)return[];d=[];var f=null;e=m(e);for(var g=e.next(),k={};!g.done;k={style$jscomp$48:void 0},g=e.next()){g=g.value;var l=a.domainMap(g.start),r=void 0,w=(r=g.end&&a.domainMap(g.end))!=null?r:null;k.style$jscomp$48=b.getStyle(g.style);
l!==null&&l<a.bodyLeft&&(w!==null&&w>a.bodyLeft||g.isOngoing)&&(l=a.bodyLeft);if(!(l===null||l<a.bodyLeft||l>a.bodyRight)){r=GIa(f,8);var x=l+(w&&w-l<24?(w-l-24+4)/2:0);w!==null||g.isOngoing||(x=Math.max(4,l-9));if(f&&x<=f.iconLeft+r){f.icons.filter(function(C){return function(H){return H.icon===C.style$jscomp$48.icon&&H.color===C.style$jscomp$48.color}}(k)).length||f.icons.push({styleId:k.style$jscomp$48.style,icon:k.style$jscomp$48.icon,color:k.style$jscomp$48.color});f.annotationIds.push(g.annotationId);
g.annotationContent&&f.annotationContents.push(g.annotationContent);if(w!==null||g.isOngoing)f.hasDuration=!0;f.hasDuration?f.iconLeft=f.bodyLeft-4:(r=GIa(f),f.bodyCenter+=(l-f.bodyCenter)/f.annotationIds.length,f.iconLeft=Math.max(4,f.bodyCenter-r/2))}else f&&(f.estimatedButtonWidth=GIa(f,8),d.push(f)),f={icons:[{styleId:k.style$jscomp$48.style,icon:k.style$jscomp$48.icon,color:k.style$jscomp$48.color}],top:0,iconLeft:x-4,bodyLeft:l,bodyCenter:w!==null?w-l:l,estimatedButtonWidth:0,hasDuration:w!==
null,annotationIds:[g.annotationId],annotationContents:g.annotationContent?[g.annotationContent]:[]}}}f&&(f.estimatedButtonWidth=GIa(f,8),d.push(f));if(c!==void 0)for(b=m(d),a=b.next();!a.done;a=b.next())a.value.icons.sort(function(C,H){C=c.get(C.icon);H=c.get(H.icon);return C===H?0:C?H?C>H?-1:1:-1:1});return d},IIa=function(a){return a===null?0:28+8*(a.icons.length-1)+.6*12*(Math.floor(Math.log10(a.annotationIds.length))+1)},JIa=function(a,b){a=a.currentValue;var c,d=a==null?void 0:(c=a.data)==null?
void 0:c.sort(function(x,C){return x.start-C.start});c=a==null?void 0:a.state;if(d==null||!d.length||!c)return[];a=[];var e=null;d=m(d);for(var f=d.next(),g={};!f.done;g={style$jscomp$49:void 0},f=d.next()){f=f.value;var k=c.domainMap(f.start),l=void 0,r=(l=f.end&&c.domainMap(f.end))!=null?l:null;g.style$jscomp$49=b.getStyle(f.style);k!==null&&k<c.bodyLeft&&(r!==null&&r>c.bodyLeft||f.isOngoing)&&(k=c.bodyLeft);if(!(k===null||k<c.bodyLeft||k>c.bodyRight)){l=IIa(e);var w=k;e&&w<=e.iconLeft+l?(e.icons.filter(function(x){return function(C){return C.icon===
x.style$jscomp$49.icon&&C.color===x.style$jscomp$49.color}}(g)).length||e.icons.push({styleId:g.style$jscomp$49.style,icon:g.style$jscomp$49.icon,color:g.style$jscomp$49.color}),e.annotationIds.push(f.annotationId),f.annotationContent&&e.annotationContents.push(f.annotationContent)):(e&&(e.estimatedButtonWidth=IIa(e),a.push(e)),e={icons:[{styleId:g.style$jscomp$49.style,icon:g.style$jscomp$49.icon,color:g.style$jscomp$49.color}],top:0,iconLeft:w-3,bodyLeft:k,bodyCenter:k,estimatedButtonWidth:0,hasDuration:r!==
null,annotationIds:[f.annotationId],annotationContents:f.annotationContent?[f.annotationContent]:[]})}}e&&(e.estimatedButtonWidth=IIa(e),a.push(e));return a},KIa=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.annotationIds.length," "))},MIa=function(a,b){a&1&&(Tf(0),K(1,"i",10),yd(),K(2,"svg",11),M(3,"path",12)(4,"path",13),L()(),Uf());if(a&2){a=b.$implicit;b=b.index;var c=P().$implicit,d=P();B();I("ngStyle",Jg(4,LIa,a.color,(c.icons.length-1-b)*d.groupedIconOffset+"px"));
B(2);If("stroke",d.iconStrokeColor)("d",d.annotationStyleService.getIcon(a.icon));B();If("d",d.annotationStyleService.getIcon(a.icon))}},NIa=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.annotationIds.length," "))},TIa=function(a,b){if(a&1){var c=t();K(0,"button",4);N("click",function(){var e=u(c).$implicit,f=P();return v(OIa(f,e))})("mouseenter",function(){var e=u(c).$implicit,f=P();return v(PIa(f,e))})("mouseleave",function(){u(c);P().highlightedAnnotation=null;return v()});
K(1,"div",5);E(2,KIa,2,1,"span",6);K(3,"div",7);E(4,MIa,5,7,"ng-container",8);L();E(5,NIa,2,1,"span",6);L()()}if(a&2){a=b.$implicit;b=P();var d=qg(3);wg("annotation-cluster-button",!b.newVisuals)("new-annotation-cluster-button",b.newVisuals);I("ngStyle",Jg(15,QIa,a.iconLeft+"px",a.top+"px"))("aceTooltip",d)("aceTooltipTemplateData",Ig(18,RIa,a))("aceTooltipInteractive",!0)("aceTooltipPosition",b.tooltipPosition)("ve",b.ve.AnnotationButton)("veClick",!0);B(2);I("ngIf",b.newVisuals&&a.annotationIds.length>
1);B();I("ngStyle",Ig(20,SIa,b.iconSize+(a.icons.length-1)*b.groupedIconOffset+"px"));B();I("ngForOf",a.icons.slice().reverse());B();I("ngIf",!b.newVisuals&&a.annotationIds.length>1)}},UIa=function(a){a&1&&(Tf(0),K(1,"div"),Q(2),L(),Uf());a&2&&(a=P().$implicit,B(2),yg(a))},VIa=function(a){a&1&&Vf(0)},WIa=function(a){a&1&&(Tf(0),E(1,VIa,1,0,"ng-container",19),Uf());if(a&2){var b=P();a=b.$implicit;b=b.index;var c=P(2).$implicit;B();I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(2,RIa,c.annotationIds[b]))}},
XIa=function(a){a&1&&(Tf(0),M(1,"div",20),Uf());a&2&&(a=P().$implicit,B(),I("innerHTML",a.toString(),Me))},YIa=function(a){a&1&&(Tf(0),Q(1),Uf());a&2&&(a=P().$implicit,B(),S(" ",a," "))},ZIa=function(a,b){if(a&1){var c=t();Tf(0);K(1,"div",15);N("mouseover",function(){var d=u(c).index,e=P(2).$implicit,f=P();return v(PIa(f,e,d))})("mouseout",function(){u(c);P(3).highlightedAnnotation=null;return v()});Tf(2,16);E(3,UIa,3,1,"ng-container",17)(4,WIa,2,4,"ng-container",17)(5,XIa,2,1,"ng-container",17)(6,
YIa,2,1,"ng-container",18);Uf();L();Uf()}a&2&&(a=b.$implicit,P(3),B(2),I("ngSwitch",a instanceof dg?"TemplateRef":typeof a),B(),I("ngSwitchCase","string"),B(),I("ngSwitchCase","TemplateRef"),B(),I("ngSwitchCase","Object"))},$Ia=function(a){a&1&&Vf(0)},aJa=function(a){a&1&&E(0,$Ia,1,0,"ng-container",19);if(a&2){a=P(2).$implicit;var b=P();I("ngTemplateOutlet",b.clusterActionTemplate)("ngTemplateOutletContext",Ig(2,RIa,a.annotationIds))}},bJa=function(a){a&1&&(Tf(0),E(1,ZIa,7,4,"ng-container",8),F(2,
aJa,1,4,"ng-container"),Uf());if(a&2){a=P().$implicit;var b=P();B();I("ngForOf",a.annotationContents);B();G(b.clusterActionTemplate?2:-1)}},cJa=function(a){a&1&&Vf(0)},dJa=function(a){a&1&&(Tf(0),E(1,cJa,1,0,"ng-container",19),Uf());if(a&2){a=P(2).$implicit;var b=P();B();I("ngTemplateOutlet",b.tooltipContentTemplate)("ngTemplateOutletContext",Ig(2,RIa,a.annotationIds))}},eJa=function(a){a&1&&E(0,dJa,2,4,"ng-container",14);if(a&2){a=P(2);var b=qg(5);I("ngIf",a.tooltipContentTemplate)("ngIfElse",b)}},
fJa=function(a,b){a&1&&E(0,bJa,3,2,"ng-container",14)(1,eJa,1,2,"ng-template",null,2,Mg);a&2&&(a=b.$implicit,b=qg(2),I("ngIf",(a.annotationContents==null?null:a.annotationContents.length)>0)("ngIfElse",b))},gJa=function(a){a&1&&cg(0)},hJa=function(a,b){var c=0,d=0,e=a.data;b=b.data;for(var f=[],g=e.length>1&&e[e.length-1].x.valueOf()-e[0].x.valueOf()>0;c<e.length||d<b.length;){var k=e[c],l=b[d];k&&!l?(f.push(Object.assign({},k,{y0:k.y,y1:k.y})),c++):!k&&l?(f.push(Object.assign({},l,{y0:l.y,y1:l.y})),
d++):k&&l&&(k.x.valueOf()===l.x.valueOf()?(f.push(Object.assign({},k,{y0:Math.min(k.y,l.y),y1:Math.max(k.y,l.y)})),c++,d++):g&&k.x.valueOf()<l.x.valueOf()||!g&&k.x.valueOf()>l.x.valueOf()?(f.push(Object.assign({},k,{y0:k.y,y1:k.y})),c++):(f.push(Object.assign({},l,{y0:l.y,y1:l.y})),d++))}return Object.assign({},a,{data:f})},iJa=function(a){var b=a.data.map(function(c){return Object.assign({},c,{y:0})});return Object.assign({},a,{data:b})},Ul=function(a,b,c){return c===Infinity?!1:Math.abs(b.x.valueOf()-
a.x.valueOf())>c*2},jJa=function(a,b,c){return c===Infinity||!a.tileDomain||!b.tileDomain||a.tileDomain[0]===b.tileDomain[0]&&a.tileDomain[1]===b.tileDomain[1]?!1:Math.min(Math.abs(b.tileDomain[0]-a.tileDomain[1]),Math.abs(a.tileDomain[0]-b.tileDomain[1]))>c*2},kJa=function(a,b,c){b=b===void 0?Infinity:b;c=c===void 0?Ul:c;return a.reduceRight(function(d,e){var f=m(d).next().value,g=m(f).next().value;g&&c(g,e,b)?d.unshift([e]):f.unshift(e);return d},[[]])},lJa=function(a,b){var c=Math.min(16.8,a.width*
.5);return{x:a.left+a.width/2,y:a.top+a.height/2,shapeWidth:c,shapeHeight:c,scalingFactor:b?c/b.width:1}},mJa=function(a,b,c){c=c===void 0?0:c;for(var d=0,e=a.length-1,f=null;d<=e;){var g=Math.floor((e+d)/2),k=a[g],l=k.left,r=k.top,w=k.height,x=k.width;k=Math.ceil(c*x);x=l+x+k;if(b.x>=l-k)if(b.x<x)if(b.y>=r)if(b.y<r+w){f=a[g];break}else d=g+1;else e=g-1;else d=g+1;else e=g-1}return f},nJa=function(a){return Hba(a.reverse().map(function(b){b=m(b);b.next();return b.next().value}).flat(),function(b){return b.height===
0?void 0:b.metadata.point.x.valueOf()})},oJa=function(a,b){b=b===void 0?0:b;a=m(a.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=0;d<c.length;d++){var e=c[d],f=c[d-1];d===0?(f=e.height,e.height=Math.max(1,e.height-b/2),e.top+=f-e.height):(e.height=Math.max(1,e.height-b),e.top=f.top-b-e.height)}}},rJa=function(a,b){b=b===void 0?!0:b;var c=pJa(),d=[].concat(q(a.series)).reverse();b=(b?qJa(d):d).map(function(e){var f=e.data.map(c),g,k=(g=e.shiftedData)==null?void 0:g.map(c);return Object.assign({},
e,{shiftedData:k,data:f})});b.reverse();return Object.assign({},a,{series:b})},pJa=function(){var a=new Map,b=new Map;return function(c){var d=c.y,e=c.x.valueOf(),f=d>=0?a:b,g,k=(g=f.get(e))!=null?g:0;d=k+d;f.set(e,d);return Object.assign({},c,{y0:k,y1:d})}},qJa=function(a){var b=sJa(a),c=tJa(b);return a.map(function(d){var e=Object.assign({},d);var f=d.data;d=d.shiftedData;e=(delete e.data,delete e.shiftedData,e);f=f.length===0||f[0].x<f[f.length-1].x?f:[].concat(q(f)).reverse();f=uJa(f,b);d=d&&
uJa(d,b);f=f.flatMap(c);var g;d=(g=d)==null?void 0:g.flatMap(c);return Object.assign({},e,{data:f,shiftedData:d})})},uJa=function(a,b){if(!b.length)return a;var c=b[0];b=b[b.length-1];if(a.length===0)return[c,b];b=b.x.valueOf()<=a[a.length-1].x.valueOf()?[]:[b];return[].concat(q(a[0].x.valueOf()<=c.x.valueOf()?[]:[c]),q(a),q(b))},vJa=function(a,b){for(var c=0,d=a.length;c<d;){var e=Math.floor((d+c)/2),f=b(a[e]);if(f===0)return e;f<0?c=e+1:d=e}return-1},xJa=function(a,b,c){b=m([b,c].sort(function(f,
g){return wJa(f,g)}));var d=b.next().value,e=b.next().value;b=vJa(a,function(f){return wJa(f.x,d)});c=vJa(a,function(f){return wJa(f.x,e)});return b===-1||c===-1?[]:a.slice(b+1,c)},sJa=function(a){a=a.reduce(function(b,c){c=m([c.data,c.shiftedData===void 0?[]:c.shiftedData]);for(var d=c.next();!d.done;d=c.next()){d=m(d.value);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.x.valueOf();b.has(f)||b.set(f,Object.assign({},e,{y:0}))}}return b},new Map);return[].concat(q(a.entries())).sort(function(b,
c){b=m(b).next().value;c=m(c).next().value;return wJa(b,c)}).map(function(b){b=m(b);b.next();return b.next().value})},wJa=function(a,b){return typeof a==="string"&&typeof b==="string"?a.localeCompare(b):typeof a==="number"&&typeof b==="number"?a-b:a instanceof Date&&b instanceof Date?a.valueOf()-b.valueOf():0},tJa=function(a){var b=a[a.length-1];return function(c,d,e){e=e[d+1];d=c.x;e=e?e.x:b==null?void 0:b.x;d=e==null?[]:xJa(a,d,e);return[c].concat(q(d))}},yJa=function(a){var b=a.some(function(c){return c.success});
a=a.filter(function(c){return!c.success});b&&(a=a.filter(function(c){return c.error.name!=="NoDataError"}));return a.map(function(c){return c.error})},zJa=function(a){if(a&1){var b=t();Tf(0);M(1,"mat-icon",7)(2,"span",8);K(3,"button",9);N("click",function(){u(b);P(3).installAgentRequest.emit();return v()});Xf(4,1);L();Uf()}a&2&&(a=P(3),B(2),I("innerHTML",a.opsAgentInstallPrompt,Me),B(),I("ve",a.ve.InstallAgentButton)("veClick",!0))},AJa=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3).ngIf,B(),
S("",a[0].details.queryName,": "))},BJa=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(){u(b);P(4).errorDismissedSubject.next(!0);return v()});M(1,"mat-icon",14);L()}},CJa=function(a){a&1&&(M(0,"mat-icon",10),K(1,"span",11),E(2,AJa,2,1,"span",2),M(3,"span",8),L(),E(4,BJa,2,0,"button",12));if(a&2){a=P(2).ngIf;var b=P();B(2);I("ngIf",a[0].details.queryName);B();I("innerHTML",a[0].displayMessage,Me);B();I("ngIf",b.styles.useNonBlockingErrors)}},DJa=function(a){a&1&&(K(0,"div",4),T(1,
"async"),T(2,"async"),K(3,"div",5),E(4,zJa,5,3,"ng-container",6),T(5,"async"),E(6,CJa,5,3,"ng-template",null,0,Mg),L()());if(a&2){a=qg(7);var b=P(2);wg("nonblocking",U(1,5,b.useNonBlockingStylingObservable));I("ngStyle",U(2,7,b.styleObservable));B(4);I("ngIf",b.installAgentHandled&&U(5,9,b.isAgentMetricObservable))("ngIfElse",a)}},EJa=function(a,b){a&1&&(Tf(0),E(1,DJa,8,11,"div",3),T(2,"async"),Uf());a&2&&(a=b.ngIf,b=P(),B(),I("ngIf",a.length>0&&U(2,1,b.errorDismissedObservable)===!1))},FJa=function(a){a&
1&&(K(0,"span",6,1),Q(2),L());a&2&&(a=P(),B(2),yg(a.unitLabel))},GJa=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),yg(a.unitLabel))},HJa=function(a){a&1&&(K(0,"span",7,2),Q(2),E(3,GJa,2,1,"span",8),L());a&2&&(a=P(),I("title",a.currentValueLabel),B(2),S(" ",a.currentValueLabel),B(),I("ngIf",!a.showUnitAboveValue))},IJa=function(a,b){a=a.y.bucketOptions;return(a==null?0:a.exponentialBuckets)?(a=a.exponentialBuckets,a.growthFactor?[Math.round((a.scale||1)*Math.pow(a.growthFactor,b-1)*1E9)/
1E9,Math.round((a.scale||1)*Math.pow(a.growthFactor,b)*1E9)/1E9]:[void 0,void 0]):(a==null?0:a.linearBuckets)?(a=a.linearBuckets,a.width?[Math.round(((a.offset||0)+a.width*(b-1))*1E9)/1E9,Math.round(((a.offset||0)+a.width*b)*1E9)/1E9]:[void 0,void 0]):(a==null?0:a.explicitBuckets)?(a=a.explicitBuckets,a.bounds?[b>0?a.bounds[b-1]:-Infinity,b>-1?b<a.bounds.length?a.bounds[b]:Infinity:a.bounds[0]]:[void 0,void 0]):[void 0,void 0]},JJa=function(a,b){var c=a.y.bucketCounts,d=m(IJa(a,0)),e=d.next().value,
f=d=d.next().value;if(e!==void 0&&f!==void 0){if(e>=b)return-1;if(e<=b&&f>=b)return 0}for(d=1;d<c.length;d++)if(f=m(IJa(a,d)),e=f.next().value,f=f.next().value,e!==void 0&&f!==void 0&&e<=b&&f>=b)return d;if(f!==void 0&&f<=b)return c.length},KJa=function(a){return a[0]+" - "+a[1]},LJa=function(a,b,c){return function(d){var e=d[0],f;d=(f=d[1])!=null?f:null;f=m([e,d].map(function(g){if(g===null)return null;g=Lk(a,b,g)||0;return Nk(g,b,{maximumFractionDigits:c})}));e=f.next().value;f=f.next().value;if(e===
null)throw Error("Nc");return f===null?(new Vl("above {LOWER}")).format({LOWER:e}):(new Vl("between {LOWER} and {UPPER}")).format({LOWER:e,UPPER:f})}},MJa=function(){return{x:0,y:0,height:0,width:0}},NJa=function(a,b){return function(c,d){var e=c.x,f=c.x0,g=c.y,k=0,l;c=Math.floor((l=a(e.valueOf()))!=null?l:0);f=f==null?void 0:f.valueOf();if(f!==void 0){var r;c=Math.floor((r=a((e.valueOf()+f)/2))!=null?r:0);var w;k=Math.floor((w=a(e.valueOf()))!=null?w:0);var x;w=Math.floor((x=a(f))!=null?x:0);k=Math.abs(k-
w)}x=m(tl(g,d));d=x.next().value;x=x.next().value;d=Math.floor(b(d!=null?d:0));var C;x=Math.floor(b((C=x)!=null?C:0));return{x:c,y:(d+x)/2,height:Math.abs(x-d),width:k}}},OJa=function(a,b){var c;return String((c=a.bucketCounts[b])!=null?c:"-")},PJa=function(){return function(a,b){var c=a.bucketCounts[b]||0;b=c.toString();a=(c*100/a.count).toFixed();return(new Vl("{COUNT} ({PERCENT}%)")).format({COUNT:b,PERCENT:a})}},QJa=function(a){var b=a.data;var c=a.xAxisState;var d=a.yAxisState;var e=a.rowFormatter;
var f=a.columnFormatter;var g=a.valueFormatter;a=a.positionMap;e||(e=KJa);f||(f=VDa);g||(g=OJa);a||(a=MJa);b=b.series[0];if(!b)return null;var k,l=(k=b.data[0])==null?void 0:k.y;if(!l)return null;k=[];for(var r=b.data.reduce(function(O,R){return Math.max(O,R.y.bucketCounts.length)},0)-1;r>=0;r--)k.push({label:e(tl(l,r)),metadata:{seriesId:b.id,bucketIndex:r}});e=new Set;l=m(b.data);for(r=l.next();!r.done;r=l.next())r=r.value,a(r,0).x>=0&&e.add(r.x.valueOf());e=Array.from(e);e.sort(function(O,R){return O-
R});e=XDa(e,f);f=e.columns;e=e.xToColIndex;l=WDa(k.length,f.length);b=m(b.data);for(r=b.next();!r.done;r=b.next()){r=r.value;var w=e.get(r.x.valueOf());if(w!==void 0)for(var x=r.y,C=0;C<k.length;C++){var H=k[C].metadata.bucketIndex,J=l[C][w];J&&H!==void 0&&(J.position=a(r,H),J.label=g(x,H))}}return{rows:k,columns:f,values:l,xAxisState:c,yAxisState:d}},RJa=function(a,b){if(a===b)return!0;var c;a=(c=a)!=null?c:[];var d;b=(d=b)!=null?d:[];if(a.length!==b.length)return!1;for(c=0;c<a.length;c++){var e=
d=void 0;if(a[c].seriesId!==b[c].seriesId||((d=a[c].datumIndices)==null?void 0:d.length)!==((e=b[c].datumIndices)==null?void 0:e.length))return!1;for(var f=e=d=void 0,g=0;g<((f=(d=a[c])==null?void 0:(e=d.datumIndices)==null?void 0:e.length)!=null?f:0);++g)if(a[c].datumIndices[g].index!==b[c].datumIndices[g].index||a[c].datumIndices[g].bucketIndex!==b[c].datumIndices[g].bucketIndex)return!1}return!0},SJa=function(a){a&1&&Sf(0,"div",2)},TJa=function(a){a&1&&M(0,"mat-spinner",4);a&2&&(a=P(2),I("diameter",
a.spinnerDiameter)("strokeWidth",a.spinnerDiameter/10),If("aria-label",a.loadingIndicatorLabel))},UJa=function(a){a&1&&M(0,"mat-progress-bar",5);a&2&&(a=P(2),If("aria-label",a.loadingIndicatorLabel))},VJa=function(a){a&1&&(K(0,"div",1),E(1,TJa,1,3,"mat-spinner",2)(2,UJa,1,1,"mat-progress-bar",3),L());a&2&&(a=P(),vg("height",a.bodyHeight,"px")("width",a.bodyWidth,"px")("top",a.bodyTop,"px")("left",a.bodyLeft,"px"),B(),I("ngIf",!a.useProgressBar),B(),I("ngIf",a.useProgressBar))},WJa=function(a){return(a=
String(a).match(/^(-?[\d.]+)(?:([a-zA-Z%]+))?$/))?{value:Number(a[1]),unit:(a[2]||"").toLowerCase()}:null},XJa=function(a){a&1&&(K(0,"span",7),Q(1),L());a&2&&(a=P(2),B(),yg(a.summaryHeader))},YJa=function(a){a&1&&(K(0,"span",8,1),Q(2),L());a&2&&(a=P(2),I("title",a.summaryBody),B(2),S(" ",a.summaryBody," "))},ZJa=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(2),B(),yg(a.summaryFooter))},$Ja=function(a){a&1&&(K(0,"div",3,0),E(2,XJa,2,1,"span",4)(3,YJa,3,2,"span",5)(4,ZJa,2,1,"span",6),L());a&
2&&(a=P(),B(2),I("ngIf",a.summaryHeader),B(),I("ngIf",a.summaryBody),B(),I("ngIf",a.summaryFooter))},aKa=function(a){a&1&&(Qf(0,"div",1),cg(1),Rf())},bKa=function(a,b){return a.yAxisUnit===b.yAxisUnit&&a.yAxisMin===b.yAxisMin&&a.yAxisMax===b.yAxisMax&&a.yAxisAbsoluteMin===b.yAxisAbsoluteMin&&a.yAxisScaleType===b.yAxisScaleType&&a.xAxisMin===b.xAxisMin&&a.xAxisMax===b.xAxisMax&&a.xAxisUnit===b.xAxisUnit&&a.bodyTop===b.bodyTop&&a.bodyBottom===b.bodyBottom&&a.bodyLeft===b.bodyLeft&&a.bodyRight===b.bodyRight&&
a.dataUnit===b.dataUnit},cKa=function(a,b){return(a==null?void 0:a.version)!==(b==null?void 0:b.version)},dKa=function(a,b,c){c=c===void 0?!1:c;if(!a)return!0;var d=m(a);a=d.next().value;d=d.next().value;var e=m(b);b=e.next().value;e=e.next().value;return c?b<=d&&a<=e:a<=e&&b<=d},eKa=function(a,b,c){b=b===void 0?Infinity:b;c=c===void 0?!1:c;return a.reduceRight(function(d,e){var f=m(d).next().value,g=m(f).next().value;g&&Cl(b,g,e,c).gapDetected?d.unshift([e]):f.unshift(e);return d},[[]])},fKa=function(){return{getInitialState:function(a){a=
a===void 0?{}:a;return Object.assign({ids:[],entities:{}},a)}}},Wl=function(a){return function(b,c){var d={ids:[].concat(q(c.ids)),entities:Object.assign({},c.entities)};b=a(b,d);return b===1?Object.assign({},c,d):b===0?Object.assign({},c,{entities:d.entities}):c}},gKa=function(a){function b(l,r){var w=a(l);if(w in r.entities)return 2;r.ids.push(w);r.entities[w]=l;return 1}function c(l,r){var w=!1;l=m(l);for(var x=l.next();!x.done;x=l.next())w=b(x.value,r)!==2||w;return w?1:2}function d(l,r){var w=
a(l);if(w in r.entities)return r.entities[w]=l,0;r.ids.push(w);r.entities[w]=l;return 1}function e(l,r){var w=(l instanceof Array?l:r.ids.filter(function(x){return l(r.entities[x])})).filter(function(x){return x in r.entities}).map(function(x){return delete r.entities[x]}).length>0;w&&(r.ids=r.ids.filter(function(x){return x in r.entities}));return w?1:2}function f(l,r){return g([l],r)}function g(l,r){var w={};l=l.filter(function(x){return x.id in r.entities});return l.length>0?l.filter(function(x){var C=
Object.assign({},r.entities[x.id],x.changes),H=a(C),J=H!==x.id;J&&(w[x.id]=H,delete r.entities[x.id]);r.entities[H]=C;return J}).length>0?(r.ids=r.ids.map(function(x){return w[x]||x}),1):0:2}function k(l,r){var w=[],x=[];l=m(l);for(var C=l.next();!C.done;C=l.next()){C=C.value;var H=a(C);H in r.entities?x.push({id:H,changes:C}):w.push(C)}x=g(x,r);r=c(w,r);switch(!0){case r===2&&x===2:return 2;case r===1||x===1:return 1;default:return 0}}return{removeAll:function(l){return Object.assign({},l,{ids:[],
entities:{}})},addOne:Wl(b),addMany:Wl(c),setAll:Wl(function(l,r){r.ids=[];r.entities={};c(l,r);return 1}),setOne:Wl(d),setMany:Wl(function(l,r){l=l.map(function(w){return d(w,r)});switch(!0){case l.some(function(w){return w===1}):return 1;case l.some(function(w){return w===0}):return 0;default:return 2}}),updateOne:Wl(f),updateMany:Wl(g),upsertOne:Wl(function(l,r){return k([l],r)}),upsertMany:Wl(k),removeOne:Wl(function(l,r){return e([l],r)}),removeMany:Wl(e),map:Wl(function(l,r){var w=r.ids.reduce(function(x,
C){var H=l(r.entities[C]);H!==r.entities[C]&&x.push({id:C,changes:H});return x},[]).filter(function(x){return x.id in r.entities});return g(w,r)}),mapOne:Wl(function(l,r){var w=l.map;l=l.id;var x=r.entities[l];if(!x)return 2;w=w(x);return f({id:l,changes:w},r)})}},hKa=function(a,b){function c(w,x){return d([w],x)}function d(w,x){w=w.filter(function(C){return!(a(C)in x.entities)});if(w.length===0)return 2;l(w,x);return 1}function e(w,x){var C=a(w);return C in x.entities?(x.ids=x.ids.filter(function(H){return H!==
C}),l([w],x),1):c(w,x)}function f(w,x){return g([w],x)}function g(w,x){var C=[];w=w.filter(function(O){if(O.id in x.entities){var R=Object.assign({},x.entities[O.id],O.changes),V=a(R);delete x.entities[O.id];C.push(R);O=V!==O.id}else O=!1;return O}).length>0;if(C.length===0)return 2;var H=x.ids,J=[];x.ids=x.ids.filter(function(O,R){if(O in x.entities)return!0;J.push(R);return!1});l(C,x);return!w&&J.every(function(O){return x.ids[O]===H[O]})?0:1}function k(w,x){var C=[],H=[];w=m(w);for(var J=w.next();!J.done;J=
w.next()){J=J.value;var O=a(J);O in x.entities?H.push({id:O,changes:J}):C.push(J)}H=g(H,x);x=d(C,x);switch(!0){case x===2&&H===2:return 2;case x===1||H===1:return 1;default:return 0}}function l(w,x){w.sort(b);for(var C=[],H=0,J=0;H<w.length&&J<x.ids.length;){var O=w[H],R=a(O),V=x.ids[J];b(O,x.entities[V])<=0?(C.push(R),H++):(C.push(V),J++)}x.ids=H<w.length?C.concat(w.slice(H).map(a)):C.concat(x.ids.slice(J));w.forEach(function(ca){x.entities[a(ca)]=ca})}var r=gKa(a);return{removeOne:r.removeOne,removeMany:r.removeMany,
removeAll:r.removeAll,addOne:Wl(c),updateOne:Wl(f),upsertOne:Wl(function(w,x){return k([w],x)}),setAll:Wl(function(w,x){x.entities={};x.ids=[];d(w,x);return 1}),setOne:Wl(e),setMany:Wl(function(w,x){w=w.map(function(C){return e(C,x)});switch(!0){case w.some(function(C){return C===1}):return 1;case w.some(function(C){return C===0}):return 0;default:return 2}}),addMany:Wl(d),updateMany:Wl(g),upsertMany:Wl(k),map:Wl(function(w,x){var C=x.ids.reduce(function(H,J){var O=w(x.entities[J]);O!==x.entities[J]&&
H.push({id:J,changes:O});return H},[]);return g(C,x)}),mapOne:Wl(function(w,x){var C=w.map;w=w.id;var H=x.entities[w];if(!H)return 2;C=C(H);return f({id:w,changes:C},x)})}},iKa=function(){return{getSelectors:function(a){var b=function(f){return f.ids},c=function(f){return f.entities},d=Zj(b,c,function(f,g){return f.map(function(k){return g[k]})}),e=Zj(b,function(f){return f.length});return a?{selectIds:Zj(a,b),selectEntities:Zj(a,c),selectAll:Zj(a,d),selectTotal:Zj(a,e)}:{selectIds:b,selectEntities:c,
selectAll:d,selectTotal:e}}}},Xl=function(a){a=a===void 0?{}:a;var b,c,d=(b=a.selectId)!=null?b:function(e){return e.id};a=(c=a.sortComparer)!=null?c:!1;return Object.assign({},{selectId:d,sortComparer:a},fKa(),iKa(),a?hKa(d,a):gKa(d))},kKa=function(a,b){return jKa(a,b)},mKa=function(a,b){return lKa(a,b)},oKa=function(a,b){return nKa(a,b)},qKa=function(a,b){return pKa(a,b)},sKa=function(a,b){return rKa(a,b)},uKa=function(a,b){return tKa(a,b)},wKa=function(a,b){return vKa(a,b)},zKa=function(a,b,c,
d){var e=a.entities[b];e||(e=xKa(b));(b=e.byLayer.entities[c])||(b={layerId:c,selectedExemplar:null,hoveredExemplar:null});c=e;d=Object.assign({},b,d);d=Object.assign({},c,{byLayer:yKa.upsertOne(d,c.byLayer)});return Yl.upsertOne(d,a)},BKa=function(a,b){return AKa(a,b)},DKa=function(a,b){return CKa(a,b)},FKa=function(a,b){return EKa(a,b)},HKa=function(a,b){return GKa(a,b)},JKa=function(a,b){return IKa(a,b)},KKa=function(a){var b=[];a=m(Object.values(a));for(var c=a.next();!c.done;c=a.next())if(c=
c.value,Array.isArray(c))b=b.concat(c);else if(c)return!0;if(b.length===0)return!1;a=b.sort(function(f,g){return f[0].valueOf()-g[0].valueOf()});b=[];a=m(a);for(c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;var e=b[b.length-1];b.length===0||c>e[1]?b.push([c,d]):d>e[1]&&(e[1]=d)}return b},MKa=function(a,b){return LKa(a,b)},OKa=function(a,b){return NKa(a,b)},QKa=function(a,b,c){c=m(c);for(var d=c.next();!d.done;d=c.next())d=PKa(d.value.requirements).margins,d.left>
a&&(a=d.left),d.right>b&&(b=d.right);return{left:a,right:b}},SKa=function(a,b){if((a==null?0:a.useChartGroupHorizontalMargins)||b.some(function(e){return e.useChartGroupHorizontalMargins})){var c=QKa(a.margins.left,a.margins.right,b),d=c.left;c=c.right;a.useChartGroupHorizontalMargins&&(a.margins.left=d,a.margins.right=c);return RKa(b,d,c)}return[]},RKa=function(a,b,c){var d=[];a=m(a.filter(function(f){return f.useChartGroupHorizontalMargins}));for(var e=a.next();!e.done;e=a.next())e=e.value,b===
e.margins.left&&c===e.margins.right||d.push(Object.assign({},e,{margins:Object.assign({},e.margins,{left:b,right:c})}));return d},TKa=function(a,b,c){return Object.values(a.entities).filter(function(d){return!!d}).filter(function(d){return d.chartGroupId===b&&d.chartId!==c})},PKa=function(a){for(var b=Zl.getInitialState({}),c=0,d=0,e=0,f=0,g=m(a),k=g.next();!k.done;k=g.next())k=k.value,k.reservedMargins&&(k.reservedMargins.top&&(b=Zl.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,
top:c}),b),c+=k.reservedMargins.top),k.reservedMargins.right&&(b=Zl.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,right:d}),b),d+=k.reservedMargins.right),k.reservedMargins.bottom&&(b=Zl.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,bottom:e}),b),e+=k.reservedMargins.bottom),k.reservedMargins.left&&(b=Zl.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,left:f}),b),f+=k.reservedMargins.left));a=m(a);for(g=a.next();!g.done;g=a.next())g=
g.value,g.overlappingMargins&&(g.overlappingMargins.top&&(c=Math.max(c,g.overlappingMargins.top)),g.overlappingMargins.right&&(d=Math.max(d,g.overlappingMargins.right)),g.overlappingMargins.bottom&&(e=Math.max(e,g.overlappingMargins.bottom)),g.overlappingMargins.left&&(f=Math.max(f,g.overlappingMargins.left)));return{margins:{top:Math.max(0,c),right:Math.max(0,d),bottom:Math.max(0,e),left:Math.max(0,f)},reservedMarginsByLayer:b}},VKa=function(a,b){return UKa(a,b)},$l=function(a,b,c){(a=a.entities[b])||
(a=WKa(b));(b=a.byLayer.entities[c])||(b=Object.assign({},XKa,{layerId:c,selectedSeries:[],hoveredSeries:[],lastClickedSeries:[],multiselectAnchorSeries:null}));return{chartState:a,layerState:b}},ZKa=function(a,b){return YKa(a,b)},aLa=function(a,b){return $Ka(a,b)},dLa=function(a,b,c,d){b=a.entities[b]||Object.assign({},bLa,{chartId:b});var e=b.byLayer.entities[c];d=d(e);if(d===e)return a;if(d)c=cLa.upsertOne(d,b.byLayer);else if(e)c=cLa.removeOne(c,b.byLayer);else return a;return am.upsertOne(Object.assign({},
b,{byLayer:c}),a)},eLa=function(a,b,c,d){var e=a;a=a[b];if(c&&((a==null?void 0:a.alignmentRange.x)!==c.x||(a==null?void 0:a.alignmentRange.x0)!==c.x0)){var f={};e=Object.assign({},e,(f[b]={alignmentRange:Object.assign({},c)},f))}d&&(a==null?void 0:a.category)!==d&&(c={},e=Object.assign({},e,(c[b]={category:d},c)));return e},fLa=function(a,b,c){var d=new Map;b=m(b);for(var e=b.next();!e.done;e=b.next())e=e.value,d.set(e.seriesId,e.value);b=[];e=m(a);for(var f=e.next();!f.done;f=e.next())if(f=f.value){var g=
f.seriesId,k=d.get(g);if(k!==f.atTimeKey[c]){var l={};b.push(Object.assign({},f,{atTimeKey:Object.assign({},f.atTimeKey,(l[c]=k,l)),seriesId:g}))}}return b.length?b:a},hLa=function(a,b){return gLa(a,b)},jLa=function(a,b){return iLa(a,b)},lLa=function(a,b){return kLa(a,b)},nLa=function(a,b){return mLa(a,b)},rLa=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=(d=c.getLabel())!=null?d:"";d=void 0;b.push({name:e,id:e,data:((d=Bi(c,oLa,2,Ci()))!=null?d:[]).filter(function(f){return Qi(f,
pLa,1,qLa)&&bm(f,pLa,1,qLa).hasEndTime()}).map(function(f){f=bm(f,pLa,1,qLa);var g,k=f.getEndTime();return{x:new Date(Number(k.getSeconds())*1E3+Number(k.getNanos())/1E6),y:(g=f.getValue())!=null?g:0}}).sort(function(f,g){return f.x.getTime()-g.x.getTime()})})}return{series:b,unit:"1"}},sLa=function(a,b){if(a&1){var c=t();K(0,"button",2);N("click",function(){u(c);var d=P().$implicit,e=P(2);return v(e.handleButtonClick(d))});Q(1);L()}a&2&&(I("matTooltip","Prompt: "+b.getPrompt()),B(),S(" ",b.getLabel(),
" "))},tLa=function(a,b){a&1&&M(0,"interactive-element-chart",1);a&2&&I("chart",b)},uLa=function(a,b){a&1&&(F(0,sLa,2,2,"button",0),F(1,tLa,1,1,"interactive-element-chart",1));if(a&2){var c,d;a=b.$implicit;b=P(2);G((c=b.getButton(a))?0:-1,c);B();G((d=b.getChart(a))?1:-1,d)}},vLa=function(a,b){a&1&&Nf(0,uLa,2,2,null,null,Lf);a&2&&Of(b)},wLa=function(a,b){if(a&1){var c=t();K(0,"button",2);N("click",function(){u(c);var d=P().$implicit,e=P(2);return v(e.handleButtonClick(d))});Q(1);L()}a&2&&(a=P(3),I("ve",
a.ve.DuckieChatInteractiveElementButton)("veClick",!0)("veImpression",!0),B(),S(" ",b.getLabel()," "))},xLa=function(a,b){a&1&&M(0,"interactive-element-chart",1);a&2&&I("chart",b)},yLa=function(a,b){a&1&&(F(0,wLa,2,4,"button",0),F(1,xLa,1,1,"interactive-element-chart",1));if(a&2){var c,d;a=b.$implicit;b=P(2);G((c=b.getButton(a))?0:-1,c);B();G((d=b.getChart(a))?1:-1,d)}},zLa=function(a,b){a&1&&Nf(0,yLa,2,2,null,null,Lf);a&2&&Of(b)},ALa=function(a){a&1&&(K(0,"mat-icon"),Q(1),L());a&2&&(a=P(),xg(Eg("dialog-icon ",
a.iconType)),B(),yg(a.iconType))},BLa=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),B(),yg(a.data.title))},CLa=function(a){a&1&&(K(0,"div",5),Q(1),L());a&2&&(a=P(),B(),yg(a.data.message))},DLa=function(a){a&1&&Vf(0)},FLa=function(a){a&1&&(K(0,"div"),E(1,DLa,1,0,"ng-container",9),L());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.data.contentTemplate)("ngTemplateOutletContext",Ig(2,ELa,a.data.contentTemplateContext)))},GLa=function(a){if(a&1){var b=t();K(0,"button",5);N("click",function(c){u(b);var d=
P();return v(d.deleteSession(c))});Q(1," Delete thread ");L()}},HLa=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(c){u(b);var d=P();return v(d.toggleSessionArchivedState(c))});Q(1);L()}a&2&&(P(),a=ag(0),B(),S(" ",a?"Unarchive thread":"Archive thread"," "))},ILa=function(a){a&1&&Vf(0,null,0)},JLa=function(a){a&1&&M(0,"session-actions",1);a&2&&(a=P(),I("sessionSummary",a.sessionSummary()))},KLa=function(a){a&1&&cg(0,4)},LLa=function(a){a&1&&(K(0,"div",11),M(1,"input",12),K(2,"div",
13),yd(),K(3,"svg",14),M(4,"path",15),L(),zd(),M(5,"div",16),L()());a&2&&(a=P(),wg("mdc-checkbox--disabled",a.disabled),B(),I("checked",a.selected)("disabled",a.disabled))},MLa=function(a){a&1&&(K(0,"div",17),M(1,"input",18),K(2,"div",19),M(3,"div",20)(4,"div",21),L()());a&2&&(a=P(),wg("mdc-radio--disabled",a.disabled),B(),I("checked",a.selected)("disabled",a.disabled))},NLa=function(){},OLa=function(a){a&1&&(K(0,"span",4),E(1,NLa,0,0,"ng-template",6),L());a&2&&(P(),a=qg(3),B(),I("ngTemplateOutlet",
a))},PLa=function(){},QLa=function(a){a&1&&(K(0,"span",5),E(1,PLa,0,0,"ng-template",6),L());a&2&&(P(),a=qg(5),B(),I("ngTemplateOutlet",a))},RLa=function(){},SLa=function(a){a&1&&E(0,RLa,0,0,"ng-template",6);a&2&&(P(),a=qg(1),I("ngTemplateOutlet",a))},TLa=function(){},ULa=function(a){a&1&&(K(0,"span",9),E(1,TLa,0,0,"ng-template",6),L());a&2&&(P(),a=qg(3),B(),I("ngTemplateOutlet",a))},VLa=function(){},WLa=function(a){a&1&&(K(0,"span",9),E(1,VLa,0,0,"ng-template",6),L());a&2&&(P(),a=qg(5),B(),I("ngTemplateOutlet",
a))},XLa=function(){},YLa=function(a){a&1&&E(0,XLa,0,0,"ng-template",6);a&2&&(P(),a=qg(1),I("ngTemplateOutlet",a))},ZLa=function(a){var b={attributeFilter:["aria-label","aria-valuenow"]};return new Td(function(c){(new MutationObserver(function(d){var e=d[0].target,f;d=(f=e.getAttribute("aria-label"))!=null?f:"";var g;f=(g=e.getAttribute("aria-valuenow"))!=null?g:"indeterminate";c.next([d,f])})).observe(a,b)})},$La=function(a){a&1&&M(0,"mat-progress-spinner",1);a&2&&I("diameter",32)},aMa=function(a){a&
1&&(M(0,"mat-divider"),K(1,"div",10)(2,"div"),Q(3,"Incognito mode enabled. All threads will be deleted on closing this tab or window."),L(),K(4,"a",11),Q(5," Learn more "),L()())},cMa=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);var c=P(3);return v(bMa(c))});K(1,"mat-icon");Q(2,"close");L()()}},dMa=function(a){if(a&1){var b=t();K(0,"div",9)(1,"mat-form-field",12)(2,"mat-label");Q(3,"Search thread titles");L();K(4,"input",13,0);N("input",function(){u(b);var c=qg(5),d=P(2);
return v(d.searchText$.next(c.value))});L();F(6,cMa,3,0,"button",14);L()()}a&2&&(a=qg(5),B(6),G(a.value!==""?6:-1))},eMa=function(a){a&1&&M(0,"mat-divider")},fMa=function(a){a&1&&(K(0,"mat-list-item",16),Q(1,"No results found"),L())},gMa=function(a){a&1&&(K(0,"mat-icon",20),Q(1,"privacy_tip"),L())},hMa=function(a){if(a&1){var b=t();K(0,"div",21)(1,"session-actions-wrapper",22);N("click",function(c){u(b);P(4);c.stopPropagation();c.preventDefault();return v()});L()()}a&2&&(a=P().$implicit,B(),I("sessionSummary",
a))},jMa=function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(){u(b);var c=P(5);return v(iMa(c))});K(1,"mat-icon");Q(2,"keyboard_arrow_down");L();Q(3," Show more ");L()}},kMa=function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(){u(b);var c=P(5);c.isShowingMoreNavItems=!1;c.numDisplayedItems=5;return v()});K(1,"mat-icon");Q(2,"keyboard_arrow_up");L();Q(3," Show less ");L()}},lMa=function(a){a&1&&F(0,jMa,4,0,"button",23)(1,kMa,4,0,"button",23);a&2&&(a=P(4),G(a.isShowingMoreNavItems?
1:0))},qMa=function(a,b){if(a&1){var c=t();K(0,"a",17);T(1,"async");N("click",function(){var g=u(c).$implicit,k=P(3);mMa(k.duckieEventTrackerService,nMa((new cm).setSessionId(g.sessionId)),207765);oMa(k.routingService,g.sessionId);k.navItemClicked.emit();return v()});K(2,"span",18)(3,"span",19);Q(4);L();F(5,gMa,2,0,"mat-icon",20);L();F(6,hMa,2,1,"div",21);L();F(7,lMa,2,1)}if(a&2){a=b.$implicit;b=b.$index;var d=P(),e=P(2),f=ag(0);I("title",Dg(a.title))("activated",pMa(a,U(1,7,e.currentThreadId$)));
B(4);yg(a.title);B();G(e.sessionDeletionEnabled||a.privacyMode!==e.PrivacyMode.CONTENT_PRIVATE||f?-1:5);B();G(f?-1:6);B();G(b===e.initialNavItems-1&&e.initialNavItems<d.length?7:-1)}},sMa=function(a,b){a&1&&(F(0,fMa,2,0,"mat-list-item",16),Nf(1,qMa,8,9,null,null,rMa));a&2&&(a=P(2),G(a.showFilter&&b.length===0?0:-1),B(),Of(b.slice(0,a.numDisplayedItems)))},tMa=function(a){if(a&1){var b=t();K(0,"mat-nav-list",3);T(1,"async");K(2,"div",4)(3,"div",5)(4,"mat-icon",6);Q(5,"history");L();Q(6," Recent ");
L();K(7,"div",7)(8,"button",8);N("click",function(){u(b);var e=P();e.showFilter=!e.showFilter;e.showFilter?bMa(e):e.clearSearch();return v()});K(9,"mat-icon");Q(10,"filter_list");L()()()();F(11,aMa,6,0);T(12,"async");F(13,dMa,7,1,"div",9)(14,eMa,1,0,"mat-divider");F(15,sMa,3,1);T(16,"async");L()}if(a&2){var c;a=P();var d=ag(0);wg("has-top-banner",U(1,9,a.isGeminiModelSelected$));B(8);wg("selected",a.showFilter);I("ve",a.ve.DuckieFilterRecentSessionsButton)("veClick",!0);B(3);G(U(12,11,a.userStateLoaded$)&&
d?11:-1);B(2);G(a.showFilter?13:14);B(2);G((c=U(16,13,a.filteredSessionSummaries$))?15:-1,c)}},uMa=function(a){a&1&&Vf(0,null,0)},vMa=function(a){if(a&1){var b=t();K(0,"recent-sessions",1);N("navItemClicked",function(c){u(b);var d=P();return v(d.navItemClicked.emit(c))});L()}},wMa=function(a){a&1&&Vf(0,null,0)},xMa=function(a){a&1&&M(0,"new-topic-button")},yMa=function(a){a&1&&Vf(0,null,0)},zMa=function(a){a&1&&M(0,"big-bird-outage")},AMa=function(a){a&1&&Vf(0,null,0)},BMa=function(a){a&1&&M(0,"general-announcement")},
CMa=function(a){a&1&&Vf(0,null,0)},DMa=function(a){a&1&&M(0,"incognito-banner")},EMa=function(a){for(var b=new Set;b.size<3;)b.add(a[Math.floor(Math.random()*a.length)]);return Array.from(b)},FMa=function(a,b){if(a&1){var c=t();K(0,"button",5);N("click",function(){var d=u(c).$implicit,e=P(3);return v(e.setExampleQuery(d.prompt))});Q(1);L()}a&2&&(a=b.$implicit,b=P(3),I("ve",b.ve.ZeroStateSuggestionChipButton)("veClick",!0)("veImpression",!0),B(),S(" ",a.label," "))},HMa=function(a,b){a&1&&(K(0,"div",
1)(1,"div",2),Q(2),L(),K(3,"div",3),Nf(4,FMa,2,4,"button",4,GMa),L()());a&2&&(a=b.$implicit,B(2),yg(a.title),B(2),Of(a.examples))},JMa=function(a,b){a&1&&Nf(0,HMa,6,1,"div",1,IMa);a&2&&Of(b)},KMa=function(a){a&1&&Vf(0,null,0)},LMa=function(a){if(a&1){var b=t();K(0,"onboarding-examples",2);N("exampleQuery",function(c){u(b);var d=P();return v(d.exampleQuery.emit(c))});L()}a&2&&(a=P(),I("clientConfiguration",a.clientConfiguration()))},OMa=function(a){var b=Array.from(MMa.keys()).find(function(c){return a.startsWith(c)});
if(b)return b==="nexus"&&(a.includes("conversationAgentId=nexus_dynamic")||a.includes("conversationAgentId=nexus_experimental_dynamic"))?["nexus",NMa]:[b,MMa.get(b)]},PMa=function(a){var b;return(b=OMa(a))==null?void 0:b[1]},RMa=function(a){if(QMa==null){var b=typeof document!=="undefined"?document.head:null;QMa=!(!b||!b.createShadowRoot&&!b.attachShadow)}return QMa&&(a=a.getRootNode?a.getRootNode():null,typeof ShadowRoot!=="undefined"&&ShadowRoot&&a instanceof ShadowRoot)?a:null},SMa=function(a){if(a&
1){var b=t();K(0,"div",0);N("clickOutside",function(){u(b);var c=P();return v(c.closeHovercard$.next())})("mouseenter",function(){u(b);P().isOnHover$.next(!0);return v()})("mouseleave",function(){u(b);P().isOnHover$.next(!1);return v()});cg(1);L()}a&2&&(a=P(),xg(a.className),I("cdkTrapFocusAutoCapture",a.wasTriggeredByKeyboard))},dm=function(a){return{fieldType:3,fieldName:a}},TMa=function(a){a&1&&(K(0,"span",3),cg(1,1),L())},UMa=function(a){a&1&&(K(0,"span",6),cg(1,2),L())},VMa=function(a){a&1&&
(K(0,"span",3),cg(1,1),K(2,"span",7),yd(),K(3,"svg",8),M(4,"path",9),L()()())},WMa=function(a){a&1&&(K(0,"span",6),cg(1,2),L())},XMa=function(a){a&1&&M(0,"incognito-banner-wrapper")},YMa=function(a){a&1&&M(0,"general-announcement-wrapper")},ZMa=function(a){a&1&&M(0,"big-bird-outage-wrapper")},$Ma=function(a){a&1&&(M(0,"reminder-blurb-wrapper"),F(1,ZMa,1,0,"big-bird-outage-wrapper"));a&2&&(a=P(),B(),G(a.duckieBigBirdStrikeEnabled?1:-1))},aNa=function(a){a&1&&Vf(0)},cNa=function(a,b){a&1&&E(0,aNa,1,
0,"ng-container",8);a&2&&(P(2),a=qg(11),I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(2,bNa,b)))},dNa=function(a){a&1&&(K(0,"div",6),Q(1," Get assistance with "),L())},eNa=function(a){a&1&&M(0,"big-bird-outage-wrapper")},fNa=function(a){if(a&1){var b=t();F(0,cNa,1,4,"ng-container")(1,dNa,2,0,"div",6);K(2,"onboarding-examples-wrapper",7);N("exampleQuery",function(d){u(b);var e=P();return v(e.setExampleQuery(d))});L();M(3,"reminder-blurb-wrapper");F(4,eNa,1,0,"big-bird-outage-wrapper")}if(a&
2){var c;a=P();G((c=a.clientConfiguration())?0:1,c);B(2);I("clientConfiguration",a.clientConfiguration());B(2);G(a.duckieBigBirdStrikeEnabled?4:-1)}},gNa=function(a){a&1&&(K(0,"mat-icon",21),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.iconName))},hNa=function(a,b){a&1&&(K(0,"mat-chip-option",20),F(1,gNa,2,1,"mat-icon",21),Q(2),L());if(a&2){a=b.$implicit;b=P();P();var c=qg(12),d=qg(20),e=P();xg(Eg("agent-selector-chip ",a.agentId));I("onedevHovercardTrigger",a.agentId==="duckie_dynamic"?c:d)("disabled",
e.duckieBigBirdStrikeEnabled&&a.agentId===e.duckieBigBird)("selected",b.modelId===e.dynamicDuckieMModelId||b.agentId===a.agentId);B();G(a.iconName?1:-1);B();S(" ",a.agentDisplayName," ")}},jNa=function(a){a&1&&(Nf(0,hNa,3,8,"mat-chip-option",19,iNa),T(2,"async"));a&2&&(a=P(2),Of(U(2,0,a.availableConversationAgents$)))},lNa=function(a){if(a&1){var b=t();K(0,"div",9)(1,"mat-icon");Q(2,"experiment");L();K(3,"h2");Q(4,"Experimental features");L();K(5,"p",10);Q(6," Select feature(s) to enable ");L();K(7,
"div",11)(8,"mat-chip-listbox",12);N("change",function(d){u(b);var e=P();return v(kNa(e,d))});F(9,jNa,3,2);T(10,"async");L()();K(11,"onedev-hovercard",null,2)(13,"div",13)(14,"div",14)(15,"h2",15);Q(16,"Agentic Search ");L();K(17,"p");Q(18," Seamlessly combines the default Moma search capabilities with additional search sources like CodeSearch, CLs, bugs, & more.");L()()()();K(19,"onedev-hovercard",null,3)(21,"div",13)(22,"div",14)(23,"h2",15);Q(24,"Big Bird");L();K(25,"p",16);Q(26," Deeper thinking, improved reasoning capabilities.");
L();K(27,"div",17);Q(28,"Latency");L();Q(29," Slower than default \ud83d\udc22 ");L()()()();M(30,"span",18)}if(a&2){var c;a=P();B(9);G((c=U(10,1,a.conversationAgentsService.currentConversationAgent$))?9:-1,c)}},mNa=function(a){a&1&&Vf(0)},nNa=function(a){a&1&&E(0,mNa,1,0,"ng-container",8);if(a&2){a=P().configuration;P();var b=qg(13);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,bNa,a))}},oNa=function(a){a&1&&(M(0,"hr"),K(1,"div",24),Q(2),L());a&2&&(a=P().configuration,B(2),S(" ",a.onboardingDescription,
" "))},pNa=function(a,b){a&1&&(K(0,"div",22),F(1,nNa,1,4,"ng-container"),K(2,"h1",23),Q(3),L(),F(4,oNa,3,1),L());a&2&&(a=b.configuration,B(),G(a.clientLogoUrl?1:-1),B(2),S(" Duckie for ",a.clientName," "),B(),G(a.onboardingDescription?4:-1))},qNa=function(a,b){a&1&&(K(0,"div",25),M(1,"img",26),L());a&2&&(a=b.configuration,B(),I("src",a.clientLogoUrl,Ne))},rNa=function(a){a&1&&Vf(0,null,0)},sNa=function(a){a&1&&M(0,"onboarding",3);a&2&&(a=P(),I("configurationKey",a.configurationKey())("pageId",a.pageId()))},
tNa=function(a){a&1&&(K(0,"div",6),Q(1," Responses below are visible only to you and your protected results are used. "),L())},uNa=function(a){if(a&1){var b=t();K(0,"div",3)(1,"div");Q(2," Your protected results are used in this thread. You may opt-out of this feature in settings. ");L();K(3,"div",4)(4,"button",5);N("click",function(){u(b);var c=P();return v(c.openUserPrivacySettingsDialog())});Q(5,"Settings");L()()()}},vNa=function(){},wNa=function(a){a&1&&cg(0)},xNa=function(){},yNa=function(a){a&
1&&E(0,xNa,0,0,"ng-template",12);a&2&&(a=P().$implicit,I("cdkPortalOutlet",a.templateLabel))},zNa=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,yg(a.textLabel))},ANa=function(a,b){if(a&1){var c=t();K(0,"div",7,2);N("click",function(){var f=u(c),g=f.$implicit;f=f.$index;var k=P(),l=qg(1);return v(k._handleClick(g,l,f))})("cdkFocusChange",function(f){var g=u(c).$index,k=P();return v(k._tabFocusChanged(f,g))});M(2,"span",8)(3,"div",9);K(4,"span",10)(5,"span",11);F(6,yNa,1,1,null,12)(7,zNa,1,1);L()()()}if(a&
2){a=b.$implicit;b=b.$index;var d=qg(1),e=P();xg(a.labelClass);wg("mdc-tab--active",e.selectedIndex===b);I("id",e._getTabLabelId(a,b))("disabled",a.disabled)("fitInkBarToContent",e.fitInkBarToContent);If("tabIndex",e._getTabIndex(b))("aria-posinset",b+1)("aria-setsize",e._tabs.length)("aria-controls",e._getTabContentId(b))("aria-selected",e.selectedIndex===b)("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null);B(3);I("matRippleTrigger",d)("matRippleDisabled",
a.disabled||e.disableRipple);B(3);G(a.templateLabel?6:7)}},BNa=function(a){a&1&&cg(0)},CNa=function(a,b){if(a&1){var c=t();K(0,"mat-tab-body",13);N("_onCentered",function(){u(c);var e=P();return v(e._removeTabBodyWrapperHeight())})("_onCentering",function(e){u(c);var f=P();return v(f._setTabBodyWrapperHeight(e))})("_beforeCentering",function(e){u(c);var f=P();return v(f._bodyCentered(e))});L()}if(a&2){a=b.$implicit;b=b.$index;var d=P();xg(a.bodyClass);I("id",d._getTabContentId(b))("content",a.content)("position",
a.position)("animationDuration",d.animationDuration)("preserveContent",d.preserveContent);If("tabindex",d.contentTabIndex!=null&&d.selectedIndex===b?d.contentTabIndex:null)("aria-labelledby",d._getTabLabelId(a,b))("aria-hidden",d.selectedIndex!==b)}},DNa=function(){},ENa=function(a){a&1&&(Qf(0,"span",1),yd(),Qf(1,"svg",2),Sf(2,"path",3),Rf()())},FNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"googleSearchQuery: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",a.getGoogleSearchQuery()," "))},GNa=
function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"GoogleSearchResponse: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",ui(a,2)," "))},HNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"displaySnippet: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",ui(a,34)," "))},INa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"searchQueryScore: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",em(a,3)," "))},JNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"StatusWrtResponse: "),L(),Q(3),L());a&2&&(a=P().$implicit,
B(3),S(" ",wi(a,4)," "))},KNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"WorldFactSource: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",wi(a,5)," "))},LNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"WorldFactUrlSource: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",ui(a,6)," "))},NNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"EntityMentions: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",Bi(a,MNa,8,Ci())," "))},ONa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"SourceTitle: "),L(),
Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",ui(a,9)," "))},PNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"RankembedSimilarity: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",em(a,11)," "))},QNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"RelatedQuestion: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",ui(a,13)," "))},SNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"RelatedQuestionMetadata: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",X(a,RNa,23)," "))},TNa=function(a){a&1&&(K(0,"div")(1,
"strong"),Q(2,"IsCitable: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",Fi(a,14)," "))},UNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"FilteredByShield: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",Fi(a,16)," "))},VNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"DocId: "),L(),Q(3),L());if(a&2){a=P().$implicit;B(3);var b=b===void 0?"0":b;a=fm(a,17);var c=!0;c=c===void 0?!1:c;var d=typeof a;a=a==null?a:d==="bigint"?String(Lb(64,a)):Bb(a)?d==="string"?Mca(a):c?Kca(a):Jca(a):void 0;S(" ",
a!=null?a:b," ")}},WNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"Timestamp: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",a.getTimestamp()," "))},XNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"IsSupplementalFact: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",Fi(a,20)," "))},ZNa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"PeregrineSignals: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",X(a,YNa,32)," "))},$Na=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"MomaResultMetadata: "),L(),
M(3,"br"),Q(4," \u00a0\u00a0"),K(5,"strong"),Q(6,"present in docjoin: "),L(),Q(7),M(8,"br"),Q(9," \u00a0\u00a0"),K(10,"strong"),Q(11,"linkUrl: "),L(),Q(12),M(13,"br"),Q(14," \u00a0\u00a0"),K(15,"strong"),Q(16,"icon: "),L(),Q(17),M(18,"br"),Q(19," \u00a0\u00a0"),K(20,"strong"),Q(21,"lastModificationTime: "),L(),Q(22),M(23,"br"),Q(24," \u00a0\u00a0"),K(25,"strong"),Q(26,"DisplayUrl: "),L(),Q(27),M(28,"br"),L());if(a&2){var b,c,d,e,f;a=P().$implicit;B(7);yg((b=X(a,gm,27))==null?null:Fi(b,1));B(5);yg((c=
X(a,gm,27))==null?null:X(c,hm,2));B(5);yg((d=X(a,gm,27))==null?null:d.getIcon());B(5);yg((e=X(a,gm,27))==null?null:e.getLastModificationTime());B(5);yg((f=X(a,gm,27))==null?null:ui(f,5))}},bOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"ScoringSignals: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",X(a,aOa,28)," "))},dOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"locationSensitiveScores: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",X(a,cOa,29)," "))},fOa=function(a){a&1&&(K(0,"div")(1,
"strong"),Q(2,"UrlSummarizationMetadata: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",X(a,eOa,30)," "))},gOa=function(a,b){a&1&&(K(0,"li"),E(1,FNa,4,1,"div",11)(2,GNa,4,1,"div",11)(3,HNa,4,1,"div",11)(4,INa,4,1,"div",11)(5,JNa,4,1,"div",11)(6,KNa,4,1,"div",11)(7,LNa,4,1,"div",11)(8,NNa,4,1,"div",11)(9,ONa,4,1,"div",11)(10,PNa,4,1,"div",11)(11,QNa,4,1,"div",11)(12,SNa,4,1,"div",11)(13,TNa,4,1,"div",11)(14,UNa,4,1,"div",11)(15,VNa,4,1,"div",11)(16,WNa,4,1,"div",11)(17,XNa,4,1,"div",11)(18,ZNa,
4,1,"div",11)(19,$Na,29,5,"div",11)(20,bOa,4,1,"div",11)(21,dOa,4,1,"div",11)(22,fOa,4,1,"div",11),L());a&2&&(a=b.$implicit,B(),I("ngIf",a.hasGoogleSearchQuery()),B(),I("ngIf",im(a,2)),B(),I("ngIf",im(a,34)),B(),I("ngIf",fm(a,3,void 0,void 0,xb)!=null),B(),I("ngIf",jm(a,4)),B(),I("ngIf",jm(a,5)),B(),I("ngIf",im(a,6)),B(),I("ngIf",Bi(a,MNa,8,Ci()).length>0),B(),I("ngIf",im(a,9)),B(),I("ngIf",fm(a,11,void 0,void 0,xb)!=null),B(),I("ngIf",im(a,13)),B(),I("ngIf",xi(a,RNa,23)),B(),I("ngIf",Ei(a,14)),B(),
I("ngIf",Ei(a,16)),B(),b=fm(a,17),b!=null&&(typeof b==="bigint"?b>=0&&Mb(b)?b=Number(b):(b=Lb(64,b),b=Mb(b)?Number(b):String(b)):b=Bb(b)?typeof b==="number"?Jca(b):Mca(b):void 0),I("ngIf",b!=null),B(),I("ngIf",a.hasTimestamp()),B(),I("ngIf",Ei(a,20)),B(),I("ngIf",xi(a,YNa,32)),B(),I("ngIf",xi(a,gm,27)),B(),I("ngIf",xi(a,aOa,28)),B(),I("ngIf",xi(a,cOa,29)),B(),I("ngIf",xi(a,eOa,30)))},hOa=function(a,b){a&1&&(K(0,"li")(1,"div",13)(2,"strong"),Q(3,"heading title: "),L(),Q(4),M(5,"br"),K(6,"strong"),
Q(7,"heading url: "),L(),Q(8),M(9,"br"),L()());a&2&&(a=b.$implicit,B(4),S(" ",a.getTitle()," "),B(4),S(" ",a.getUrl()," "))},jOa=function(a){a&1&&(Tf(0),K(1,"mat-expansion-panel")(2,"mat-expansion-panel-header")(3,"mat-panel-title"),Q(4," Cited Headings "),L()(),E(5,hOa,10,2,"li",6),L(),Uf());a&2&&(a=P().$implicit,B(5),I("ngForOf",Bi(a,iOa,5,Ci())))},kOa=function(a,b){a&1&&(K(0,"li")(1,"div")(2,"strong"),Q(3,"title: "),L(),Q(4),M(5,"br"),K(6,"strong"),Q(7,"url: "),L(),Q(8),M(9,"br"),K(10,"strong"),
Q(11,"iconUrl: "),L(),Q(12),M(13,"br"),K(14,"strong"),Q(15,"lastModificationTime: "),L(),Q(16),M(17,"br"),K(18,"strong"),Q(19,"isExternalDocument: "),L(),Q(20),M(21,"br"),K(22,"strong"),Q(23,"isPrivateDocument: "),L(),Q(24),M(25,"br"),E(26,jOa,6,1,"ng-container",11),L()());a&2&&(a=b.$implicit,B(4),S(" ",a.getTitle()," "),B(4),S(" ",a.getUrl()," "),B(4),S(" ",a.getIconUrl()," "),B(4),S(" ",a.getLastModificationTime()," "),B(4),S(" ",Fi(a,6)," "),B(4),S(" ",a.getIsPrivateDocument()," "),B(2),I("ngIf",
Bi(a,iOa,5,Ci()).length>0))},lOa=function(a){a&1&&(Tf(0),K(1,"ul"),E(2,kOa,27,7,"li",6),L(),Uf());if(a&2){var b;a=P().$implicit;B(2);I("ngForOf",(b=km(a))==null?null:lm(b))}},mOa=function(a,b){a&1&&(Tf(0),E(1,lOa,3,1,"ng-container",11),Uf());if(a&2){var c;a=b.$implicit;B();I("ngIf",(c=km(a))==null?null:lm(c))}},nOa=function(a,b){a&1&&(K(0,"mat-tab",12)(1,"div"),E(2,mOa,2,1,"ng-container",6),L()());a&2&&(a=b.ngIf,B(2),I("ngForOf",a))},pOa=function(a,b){a&1&&(K(0,"div")(1,"p",14),Q(2,"planner_query: "),
L(),K(3,"div",15),Q(4),L(),K(5,"p",14),Q(6,"planner_status: "),L(),K(7,"div",15),Q(8),L(),K(9,"p",14),Q(10,"planner_code: "),L(),K(11,"div",16),Q(12),L()());a&2&&(a=b.ngIf,P(2),B(4),yg(a==null?null:ui(a,2)),B(4),yg(oOa(a==null?null:wi(a,3))),B(4),yg(a==null?null:ui(a,1)))},uOa=function(a,b){a&1&&(K(0,"div",1)(1,"mat-tab-group",2)(2,"mat-tab",3)(3,"div")(4,"p"),Q(5),L()()(),K(6,"mat-tab",4)(7,"div")(8,"p"),Q(9),L()()(),K(10,"mat-tab",5)(11,"div")(12,"ul"),E(13,gOa,23,22,"li",6),L()()(),K(14,"mat-tab",
7)(15,"div")(16,"p"),Q(17),L()()(),K(18,"mat-tab",8)(19,"div")(20,"p"),Q(21),L()()(),E(22,nOa,3,1,"mat-tab",9),K(23,"mat-tab",10),E(24,pOa,13,3,"div",11),L()()());if(a&2){var c;a=b.ngIf;b=P();B();I("selectedIndex",2);B(4);yg(a.getModelId());B(4);yg(ui(a,3));B(4);var d;(c=X(a,qOa,4))==null?d=null:(c=X(c,rOa,2))==null?d=null:d=Bi(c,sOa,1,Ci());I("ngForOf",d);B(4);yg(X(a,tOa,5));B(4);yg(a.getModelOverrideOptions());B();I("ngIf",b.messageData.relatedResources);B(2);I("ngIf",b.messageData.executionMetadata)}},
vOa=function(a){a&1&&(K(0,"div",5),Q(1," Additional sources URL will be used for analytic purposes only. Content from the URLs will not be used to train the model. "),L())},wOa=function(a){a&1&&(K(0,"mat-error",12),Xf(1,0),L())},zOa=function(a,b){if(a&1){var c=t();K(0,"div",6)(1,"div",8)(2,"mat-form-field",9)(3,"mat-label");Q(4,"Add source URL");L();K(5,"input",10);Cg("ngModelChange",function(d){var e=u(c).$index,f=P();Bg(f.rewriteSourcesList[e],d)||(f.rewriteSourcesList[e]=d);return v(d)});L()();
K(6,"button",11);N("click",function(){var d=u(c).$index,e=P();e.rewriteSourcesList.splice(d,1);e.rewriteSourcesList.length===0&&e.rewriteSourcesList.push("");return v()});K(7,"mat-icon");Q(8," close ");L()()();F(9,wOa,2,0,"mat-error",12);L()}a&2&&(a=b.$index,b=P(),B(5),I("name",Eg("source_",a)),Ag("ngModel",b.rewriteSourcesList[a]),B(),I("disabled",b.rewriteSourcesList.length===1&&!xOa(b.rewriteSourcesList[a])),B(3),G(yOa(b,b.rewriteSourcesList[a])?-1:9))},AOa=function(a){a&1&&Vf(0,null,0)},BOa=function(a){a&
1&&M(0,"source-urls-form",2,1);a&2&&(a=P(),I("showWarning",a.showWarning()))},DOa=function(a,b){a&1&&(K(0,"mat-chip-option",8),Q(1),L());a&2&&(a=b.$implicit,b=P(),I("value",a)("selected",b.selectedReasons.includes(a)),B(),S(" ",COa.get(a)," "))},EOa=function(a){if(a&1){var b=t();K(0,"p",5);Q(1,"Additional feedback");L();K(2,"mat-form-field",14)(3,"mat-label");Q(4,"Share what could be improved in the response");L();K(5,"textarea",15,1);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.otherReason,
c)||(d.otherReason=c);return v(c)});L()()}a&2&&(a=P(2),B(5),Ag("ngModel",a.otherReason))},FOa=function(a){a&1&&M(0,"source-urls-form-wrapper",13,2);a&2&&I("showWarning",!0)},GOa=function(a){a&1&&F(0,EOa,7,1)(1,FOa,2,1,"source-urls-form-wrapper",13);a&2&&(a=P(),G(a.sessionDeletionEnabled||!a.hasPrivateContent()?0:1))},HOa=function(a){a&1&&(K(0,"mat-error",10),Xf(1,3),L());a&2&&(B(),Yf("*Please select some reasons or provide other feedback."),Nma(28))},IOa=function(a){a&1&&Vf(0,null,0)},JOa=function(a){if(a&
1){var b=t();K(0,"feedback-reasons-form",2);N("close",function(){u(b);var c=P();return v(c.close.emit())})("submit",function(c){u(b);var d=P();return v(d.submit.emit(c))});L()}a&2&&(a=P(),I("messageData",a.messageData())("hasPrivateContent",a.hasPrivateContent()))},KOa=function(a){a&1&&(K(0,"div",2)(1,"span",4),Q(2),L()());a&2&&(a=P(),B(2),S(" ",a.confirmationMessage," "))},LOa=function(a){if(a&1){var b=t();K(0,"feedback-reasons-form-wrapper",5);T(1,"async");N("close",function(){u(b);P().showReasonsForm=
!1;return v()})("submit",function(c){u(b);var d=P();d.showReasonsForm=!1;d.provideFeedback(!1,c);return v()});L()}a&2&&(a=P(),I("messageData",a.messageData())("hasPrivateContent",U(1,2,a.hasPrivateContent$)))},MOa=function(a){a&1&&Vf(0,null,0)},NOa=function(a){a&1&&M(0,"feedback-with-rewrite",1);a&2&&(a=P(),I("messageData",a.messageData()))},OOa=function(a){a&1&&Vf(0,null,0)},POa=function(a){a&1&&M(0,"interactive-elements",1);a&2&&(a=P(),I("interactiveElements",a.interactiveElements()))},QOa=function(a){if(a&
1){var b=t();K(0,"div",2);Q(1," Your protected results are used in this response. This is visible only to you. You may opt-out of this feature in settings. ");K(2,"div",3)(3,"button",4);N("click",function(){u(b);var c=P();return v(c.openUserPrivacySettingsDialog())});Q(4,"Settings");L()()()}},ROa=function(a){a&1&&(K(0,"mat-icon",2),Q(1,"note"),L())},SOa=function(a){a&1&&M(0,"img",3);a&2&&(a=P().$implicit,I("src",Dg(a.getIconUrl()),Ne))},TOa=function(a){a&1&&(K(0,"div",5)(1,"mat-icon",6),Q(2,"public"),
L(),K(3,"span"),Q(4,"External"),L()())},UOa=function(a){a&1&&M(0,"private-citation-chip-tooltip")},WOa=function(a,b){if(a&1){var c=t();K(0,"div",1);F(1,ROa,2,0,"mat-icon",2)(2,SOa,1,2,"img",3);K(3,"a",4);N("click",function(){var d=u(c).$implicit,e=P(2);return v(VOa(e,d))});Q(4);L();F(5,TOa,5,0,"div",5);F(6,UOa,1,0,"private-citation-chip-tooltip");L()}a&2&&(a=b.$implicit,b=P(2),B(),G(Fi(a,6)?1:a.getIconUrl()?2:-1),B(2),I("href",Dg(a.getUrl()),Ne)("ve",b.ve.DuckieChatResponseCitationLink)("veClick",
!0)("veImpression",!0),B(),S("",a.getTitle()||a.getUrl()," "),B(),G(Fi(a,6)?5:-1),B(),G(a.getIsPrivateDocument()?6:-1))},XOa=function(a){a&1&&(K(0,"div",0),Q(1," Sources "),L(),Nf(2,WOa,7,9,"div",1,Mf));a&2&&(a=P(),B(2),Of(a.citedNonRecitationDocuments()))},ZOa=function(a,b){if(a&1){var c=t();K(0,"li",8)(1,"div",9)(2,"a",4);N("click",function(){var d=u(c).$implicit,e=P(2);return v(VOa(e,d))});Q(3);L()()()}a&2&&(a=b.$implicit,b=P(2),B(2),I("href",Dg(a.getUrl()),Ne)("ve",b.ve.DuckieChatResponseCitationLink)("veClick",
!0)("veImpression",!0),B(),S("",YOa(a)," "))},$Oa=function(a){a&1&&(K(0,"div",0),Q(1," Licensed Sources "),L(),K(2,"ol",7),Nf(3,ZOa,4,6,"li",8,Mf),L());a&2&&(a=P(),B(3),Of(a.recitationSources()))},aPa=function(a){a&1&&Vf(0,null,0)},bPa=function(a){a&1&&M(0,"message-citations",1);a&2&&(a=P(),I("messageData",a.messageData()))},cPa=function(a){a&1&&(M(0,"mat-progress-spinner",8),K(1,"span"),Q(2),T(3,"async"),L());a&2&&(a=P(3),I("diameter",16),B(2),yg(U(3,2,a.duckieLoadingPhrase$)))},dPa=function(a){a&
1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),S("",a.isExpanded?"Hide":"Show"," thinking"))},ePa=function(a){a&1&&Vf(0)},gPa=function(a){if(a&1){var b=t();K(0,"div",2)(1,"p",3)(2,"button",4);N("click",function(){u(b);var e=P(),f=P(),g=e.id;e.isExpanded=!e.isExpanded;var k=f.messagePartsService,l=e.id;k.expansionStates.set(l,!k.isExpanded(l));e.isExpanded=f.messagePartsService.isExpanded(e.id);var r;(r=f.messagePartsElement.querySelector("#part-"+g))==null||r.classList.toggle("hidden");e=f.messagePartsElement.querySelector("button.part-"+
g);e==null||e.classList.toggle("is-expanded");e==null||e.setAttribute("aria-expanded",(e==null?0:e.classList.contains("is-expanded"))?"true":"false");return v()});F(3,cPa,4,4);T(4,"async");Kf(5,dPa,2,1,"span");K(6,"mat-icon",5);Q(7);L()()();K(8,"div",6);E(9,ePa,1,0,"ng-container",7);L()()}if(a&2){a=P();var c=P(),d=qg(3);B(2);If("aria-expanded",a.isExpanded);B();G(c.experimentsService.duckieStreamingMvpEnabled&&U(4,10,c.isStreamingThoughts$)?3:5);B(4);yg(a.isExpanded?"expand_less":"expand_more");B();
wg("hidden",!a.isExpanded)("padded-s",a.isExpanded);If("aria-hidden",!a.isExpanded);B();I("ngTemplateOutlet",d)("ngTemplateOutletContext",Ig(12,fPa,a.hiddenMessageParts))}},hPa=function(a){a&1&&Vf(0)},iPa=function(a){a&1&&E(0,hPa,1,0,"ng-container",7);if(a&2){a=P();P();var b=qg(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,fPa,a.hiddenMessageParts))}},jPa=function(a,b){a&1&&F(0,gPa,10,14,"div",2)(1,iPa,1,4,"ng-container");a&2&&(a=P(),G(a.experimentsService.displayDuckieThoughtsEnabled?
0:b.hasAnyThought?-1:1))},kPa=function(a){a&1&&Vf(0)},mPa=function(a){a&1&&E(0,kPa,1,0,"ng-container",7);if(a&2){a=P().$implicit;P(2);var b=qg(5);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,lPa,a))}},nPa=function(a,b){a&1&&(M(0,"span",9),F(1,mPa,1,4,"ng-container"));a&2&&(a=b.$implicit,I("innerHtml",a.html,Me),B(),G(a.functionCalls.length>0?1:-1))},oPa=function(a,b){a&1&&Nf(0,nPa,2,2,null,null,Mf);a&2&&Of(b.parts)},pPa=function(a,b){a&1&&(K(0,"div",15)(1,"span",16),Q(2),L(),K(3,"span",
17),Q(4),L()());a&2&&(a=b.$implicit,B(2),S("",a[0],":"),B(2),yg(a[1]))},qPa=function(a,b){a&1&&(K(0,"div",11)(1,"p",12)(2,"span",13),Q(3),L(),Q(4," was called with:"),L(),K(5,"div",14),Nf(6,pPa,5,2,"div",15,Mf),L()());a&2&&(a=b.$implicit,B(3),yg(a.name),B(3),Of(a.args))},rPa=function(a,b){a&1&&(K(0,"div",10),Nf(1,qPa,8,1,"div",11,Mf),L());a&2&&(a=b.part,B(),Of(a.functionCalls))},sPa=function(a){a&1&&Vf(0,null,0)},tPa=function(a){a&1&&M(0,"message-parts",1);a&2&&(a=P(),I("executionMetadata",a.executionMetadata())("hasRedactions",
a.hasRedactions())("shouldExpand",a.shouldExpand())("isStreamingThoughts",a.isStreamingThoughts()))},uPa=function(a){a&1&&M(0,"img",0);a&2&&(a=P(),I("src",a.avatarUrl,Ne))},vPa=function(a){a&1&&M(0,"img",11);if(a&2){a=P();wg("custom-logo",!!a.agentIconUrl());var b;I("src",(b=a.agentIconUrl())!=null?b:"https://www.gstatic.com/devnotify/duckie256.png",Ne)}},wPa=function(a){a&1&&Q(0," You ")},xPa=function(a){a&1&&Q(0);if(a&2){a=P();var b;S(" ",(b=a.agentDisplayName())!=null?b:"Duckie"," ")}},yPa=function(a){a&
1&&(K(0,"div",5)(1,"mat-icon",12),Q(2," warning "),L(),Q(3," Contains licensed content, use with caution "),K(4,"a",13)(5,"mat-icon",14),Q(6,"open_in_new"),L(),Q(7," View usage policy "),L()())},zPa=function(a){a&1&&M(0,"interactive-elements-wrapper",8);a&2&&(a=P(2),I("interactiveElements",a.messageData().interactiveElements))},APa=function(a,b){a&1&&(M(0,"p",15),F(1,zPa,1,1,"interactive-elements-wrapper",8));a&2&&(a=P(),I("innerHtml",b,Me),B(),G(a.messageData().interactiveElements&&a.messageData().interactiveElements.length>
0?1:-1))},BPa=function(a){a&1&&(K(0,"p",6),Q(1," Responses were not retained because protected results were used in this thread. "),L())},CPa=function(a){a&1&&(K(0,"p",7),Q(1),L());a&2&&(a=P(),B(),S(" ",a.messageData().text," "))},DPa=function(a){a&1&&M(0,"interactive-elements-wrapper",8);a&2&&(a=P(),I("interactiveElements",a.messageData().interactiveElements))},EPa=function(a){a&1&&M(0,"typing-dots");a&2&&(a=P(),wg("use-compact-view",a.useCompactView()))},FPa=function(a){a&1&&M(0,"message-citations-wrapper",
16);a&2&&(a=P(2),I("messageData",a.messageData()))},GPa=function(a){a&1&&M(0,"message-metadata",16);a&2&&(a=P(2),I("messageData",a.messageData()))},HPa=function(a){a&1&&(F(0,FPa,1,1,"message-citations-wrapper",16),F(1,GPa,1,1,"message-metadata",16),T(2,"async"));a&2&&(a=P(),G(a.messageData().isFallback?-1:0),B(),G(U(2,2,a.showResponseMetadata$)?1:-1))},IPa=function(a){a&1&&M(0,"feedback-with-rewrite-wrapper",16);a&2&&(a=P(2),I("messageData",a.messageData()))},KPa=function(a){if(a&1){var b=t();K(0,
"div",10);F(1,IPa,1,1,"feedback-with-rewrite-wrapper",16);K(2,"button",17);N("click",function(){u(b);var c=P();return v(JPa(c))});K(3,"mat-icon");Q(4,"content_copy");L()()()}a&2&&(a=P(),B(),G(a.messageData().isUser?-1:1))},LPa=function(a){a&1&&Vf(0,null,0)},MPa=function(a){a&1&&M(0,"message",1);a&2&&(a=P(),I("messageData",a.messageData())("useCompactView",a.useCompactView()))},NPa=function(a){a&1&&Vf(0,null,0)},OPa=function(a){if(a&1){var b=t();K(0,"session-helpful-button",2);N("closeButton",function(c){u(b);
var d=P();return v(d.closeButton.emit(c))})("messageFeedbackUpdate",function(c){u(b);var d=P();return v(d.messageFeedbackUpdate.emit(c))});L()}a&2&&(a=P(),I("messageData",a.messageData()))},PPa=function(a){a&1&&(Qf(0,"div",0),Sf(1,"img",1),Q(2),Rf());a&2&&(a=P(),B(),Pf("src",a.config.imgSrc,Ne)("alt",a.config.imgAlt),B(),S(" ",a.config.title," "))},QPa=function(a){a&1&&Vf(0,null,0)},RPa=function(a){a&1&&M(0,"thread-source-header",1);a&2&&(a=P(),I("thread",a.thread()))},SPa=function(a){a&1&&M(0,"mat-progress-spinner",
1);a&2&&I("diameter",32)},TPa=function(a){a&1&&(K(0,"span",21)(1,"button",22)(2,"mat-icon",11),Q(3,"edit"),L()()(),M(4,"private-content-tooltip"));a&2&&(I("matTooltipDisabled",!1),If("tabIndex",0),B(),I("disabled",!0))},VPa=function(a){if(a&1){var b=t();K(0,"button",23);N("click",function(){u(b);var c=P(4);return v(UPa(c))});K(1,"mat-icon",11);Q(2,"edit");L()()}},WPa=function(a){a&1&&(F(0,TPa,5,3),T(1,"async"),Kf(2,VPa,3,0,"button",20));if(a&2){var b;a=P(3);G((b=U(1,1,a.hasPrivateContent$))?0:2,b)}},
XPa=function(a){a&1&&(K(0,"mat-chip-option",8),Q(1," Big Bird "),L())},YPa=function(a){a&1&&(K(0,"mat-chip-option",8),Q(1," Agentic Search "),L())},ZPa=function(a){a&1&&(K(0,"div",13)(1,"mat-icon",24),Q(2," warning "),L(),Q(3," This thread used a deprecated model and cannot be continued. Please start a new thread to interact with Duckie. "),L())},$Pa=function(a,b){a&1&&M(0,"link-chip",26);a&2&&(a=b.$implicit,I("label",a.label)("iconUrl",a.imgSrc)("linkUrl",a.fullUrl)("matTooltip",a.fullUrl))},aQa=
function(a){a&1&&(K(0,"div",27),Q(1),L());if(a&2){a=P(4);var b=ag(0);B();S("+",b.length-a.maxVisibleUserProvidedContextCount)}},bQa=function(a){if(a&1){var b=t();K(0,"div",14)(1,"p",25);Q(2);L();Nf(3,$Pa,1,4,"link-chip",26,Lf);F(5,aQa,2,1,"div",27);M(6,"div",28);K(7,"button",29);N("click",function(){u(b);var d=P(3);d.showExpandedContext=!d.showExpandedContext;return v()});K(8,"mat-icon",11);Q(9);L()()()}if(a&2){a=P(3);var c=ag(0);B(2);S(" Context (",c.length,") ");B();Of(c.slice(0,a.maxVisibleUserProvidedContextCount));
B(2);G(c.length>a.maxVisibleUserProvidedContextCount?5:-1);B(2);If("aria-expanded",a.showExpandedContext);B(2);S(" ",a.showExpandedContext?"expand_less":"expand_more"," ")}},cQa=function(a){a&1&&(K(0,"div",15)(1,"mat-icon",30),Q(2," warning "),L(),Q(3," This thread is using an experimental Duckie agent. "),L());a&2&&(P(2),a=ag(0),B(),I("matTooltip",Fg("",a.conversationAgentId,", ",a.conversationAgentModelId)))},dQa=function(a){a&1&&(K(0,"div",16)(1,"mat-icon",11),Q(2,"incognito"),L(),K(3,"span"),
Q(4,"Incognito mode enabled. All threads will be deleted on closing this tab or window."),L(),M(5,"span",28),K(6,"a",31),Q(7," Learn more "),L()())},eQa=function(a,b){a&1&&(K(0,"div",32),M(1,"img",33),K(2,"a",34),Q(3),L()());a&2&&(a=b.$implicit,B(),I("src",Dg(a.imgSrc),Ne),B(),I("href",Dg(a.fullUrl),Ne),B(),yg(a.fullUrl))},fQa=function(a){a&1&&(K(0,"div",17),Nf(1,eQa,4,5,"div",32,Lf),L());a&2&&(P(3),a=ag(0),B(),Of(a))},gQa=function(a){a&1&&(K(0,"div",18),M(1,"big-bird-outage-wrapper"),L())},hQa=function(a){a&
1&&M(0,"private-content-divider-tooltip")},iQa=function(a,b){a&1&&(F(0,hQa,1,0,"private-content-divider-tooltip"),T(1,"async"));if(a&2){a=P().$index;var c=P(3);G(c.sessionDeletionEnabled||a!==b||U(1,1,c.isIncognitoMode$)?-1:0)}},jQa=function(a,b){a&1&&(F(0,iQa,2,3),T(1,"async"),M(2,"message-wrapper",35));if(a&2){var c;a=b.$implicit;b=P(3);G((c=U(1,3,b.firstPrivateContentMessageIndex$))?0:-1,c);B(2);I("messageData",a)("useCompactView",b.useCompactView())}},mQa=function(a){if(a&1){var b=t();K(0,"div",
4);M(1,"thread-source-header-wrapper",5);K(2,"div",6)(3,"div",7)(4,"span");Q(5);L();F(6,WPa,3,3);T(7,"async");K(8,"mat-chip-listbox");F(9,XPa,2,0,"mat-chip-option",8);F(10,YPa,2,0,"mat-chip-option",8);L();K(11,"div",9)(12,"button",10)(13,"mat-icon",11);Q(14,"share");L()();K(15,"mat-menu",null,0)(17,"button",12);N("click",function(){u(b);var f=P(2);return v(kQa(f))});Q(18,"Copy conversation as markdown");L()()()()();F(19,ZPa,4,0,"div",13);F(20,bQa,10,4,"div",14);F(21,cQa,4,3,"div",15);F(22,dQa,8,0,
"div",16);T(23,"async");F(24,fQa,3,0,"div",17);L();F(25,gQa,2,0,"div",18);K(26,"div",19);Nf(27,jQa,3,5,null,null,lQa);L()}if(a&2){a=qg(16);P();var c=ag(0),d=P(),e=ag(0);B();I("thread",c);B(4);S(" ",c.title," ");B();G(U(7,12,d.isIncognitoMode$)?-1:6);B(3);G(c.conversationAgentModelId===d.M_DUCKIE_AGENT_INFO.modelId||c.conversationAgentModelId===d.DYNAMIC_DUCKIE_M_AGENT_INFO.modelId?9:-1);B();G(c.conversationAgentModelId===d.DYNAMIC_DUCKIE_AGENT_INFO.modelId||c.conversationAgentModelId===d.DYNAMIC_DUCKIE_M_AGENT_INFO.modelId?
10:-1);B(2);I("matMenuTriggerFor",a);B(7);G(c.sessionState===d.SESSION_STATE_DEPRECATED?19:-1);B();G(e&&e.length>0?20:-1);B();G(c.conversationAgentId&&d.showExperimentalAgentBanner?21:-1);B();G(U(23,14,d.isIncognitoMode$)?22:-1);B(2);G(d.showExpandedContext?24:-1);B();G(d.duckieBigBirdOutageEnabled&&d.showBigBirdOutageBanner?25:-1);B(2);Of(c==null?null:c.messages)}},nQa=function(a){a&1&&(Zf(0),T(1,"async"),F(2,mQa,29,16));a&2&&(a=$f(U(1,1,P().thread$)),B(2),G(a?2:-1))},pQa=function(a){if(a&1){var b=
t();K(0,"session-helpful-button-wrapper",36);T(1,"async");N("closeButton",function(){u(b);P().shouldShowSessionHelpfulButton=!1;return v()})("messageFeedbackUpdate",function(c){u(b);var d=P();return v(oQa(d,c))});L()}a&2&&(a=P(),I("messageData",U(1,1,a.lastDuckieMessage$)))},qQa=function(a){a&1&&Vf(0,null,0)},rQa=function(a){a&1&&M(0,"thread",3);a&2&&(a=P(),I("useCompactView",a.useCompactView()))},sQa=function(a){if(a&1){var b=t();K(0,"div",1);N("click",function(){u(b);var c=P();return v(c._onBackdropClicked())});
L()}a&2&&(a=P(),wg("mat-drawer-shown",a._isShowingBackdrop()))},tQa=function(a){a&1&&(K(0,"mat-drawer-content"),cg(1,2),L())},uQa=function(a){if(a&1){var b=t();K(0,"div",1);N("click",function(){u(b);var c=P();return v(c._onBackdropClicked())});L()}a&2&&(a=P(),wg("mat-drawer-shown",a._isShowingBackdrop()))},vQa=function(a){a&1&&(K(0,"mat-sidenav-content"),cg(1,2),L())},wQa=function(a){a&1&&M(0,"onboarding-wrapper",1);a&2&&(a=P(),I("configurationKey",a.configurationKey))},xQa=function(a){a&1&&M(0,"thread-wrapper",
2);a&2&&I("useCompactView",!0)},yQa=function(a){var b=a,c;return function(){if(b){var d=b;b=void 0;c=d.apply(this,arguments)}return c}},zQa=function(a){switch(a){case "P0":case "P1":case "P2":case "P3":case "P4":return a;default:return null}},AQa=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":case "PROGRAM":return a;
default:return null}},BQa=function(a){switch(a){case "S0":case "S1":case "S2":case "S3":case "S4":return a;default:return null}},CQa=function(a,b){return a.size!==b.size?!1:[].concat(q(a)).every(function(c){return b.has(c)})},DQa=function(a){var b=new Set;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=m(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b},EQa=function(a,b){if(!CQa(a,b)){var c=[].concat(q(b)).filter(function(e){return!a.has(e)}),d=[].concat(q(a)).filter(function(e){return!b.has(e)});
return{added:c,removed:d}}},FQa=function(a,b){var c=a.size>b.size?a:b;return new Set([].concat(q(a===c?b:a)).filter(function(d){return c.has(d)}))},GQa=function(a,b){return a.size>=b.size&&[].concat(q(b)).every(function(c){return a.has(c)})},mm=function(a,b){if(a===b)return!0;if(a==null||b==null)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(!mm(a[d],b[d]))return!1;return!0}if(a instanceof Date)return b instanceof Date?
a.getTime()===b.getTime():!1;if(a instanceof RegExp)return b instanceof RegExp?a.toString()===b.toString():!1;if(a instanceof Set||b instanceof Set)return a instanceof Set&&b instanceof Set?CQa(a,b):!1;if(rh(a)||rh(b))return rh(a)&&rh(b)?a===b||a.toString()===b.toString():!1;if(a instanceof W||b instanceof W)return a instanceof W&&b instanceof W?HQa(a,b):!1;if(typeof a==="object"){if(typeof b!=="object")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(!IQa.call(b,f)||!mm(a[f],b[f]))return!1}return!0}return!1},JQa=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=!1,e=m(b),f=e.next();!f.done;f=e.next())if(mm(c,f.value)){d=!0;break}d||b.push(c)}return b},KQa=function(a,b){for(var c=a.length-1;c>=0;c--)mm(a[c],b)&&a.splice(c,1)},LQa=function(a,b,c){c=c===void 0?Infinity:c;if(a===b)return!0;if((a==null||b==null)&&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]&&(typeof a[f]!=="object"||typeof b[f]!=="object"))return!1}return!0},NQa=function(a){return Object.assign.apply(Object,[{}].concat(q(MQa.map(function(b){var c={};return c[b]=a[b],c}))))},nm=function(a){if(a!==null&&a!==void 0&&!["boolean","function","number","string"].includes(typeof a))if(Array.isArray(a)){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next())b.push(nm(c.value));a=b}else if(a instanceof Date)a=new Date(a.getTime());else if(a instanceof
Map){b=new Map;a=m(a);for(c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;b.set(nm(c),nm(d))}a=b}else if(a instanceof Set){b=new Set;a=m(a);for(c=a.next();!c.done;c=a.next())b.add(nm(c.value));a=b}else if(!rh(a))if(a instanceof W)a=a.clone();else{b={};c=m(Object.entries(a));for(d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;b[d]=nm(e)}Object.setPrototypeOf(b,Object.getPrototypeOf(a));a=b}return a},OQa=function(a){return typeof a===
"number"},PQa=function(a){return typeof a==="string"},om=function(a){return Array.isArray(a)&&a.every(PQa)},QQa=function(a){return Array.isArray(a)&&a.every(OQa)},RQa=function(a){if(a==null)return!1;a=String(a).trim();if(a.length<=2)return!1;var b=Number(a);return isNaN(b)?!1:String(b).length===a.length},SQa=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},TQa=function(a){if(a){if(OQa(a)){var b=new Date(a);b.getFullYear()>47E3&&(b=new Date(a/1E3));return new pm(b)}b=
a.split("/");if(b.length===3)return a=rm(b[2]),a<50?a+=2E3:a<100&&(a+=1900),new pm(a,rm(b[0])-1,rm(b[1]));if(b.length===1)return TQa(Number(a))}return new pm},UQa=function(a){return a.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"")},VQa=function(a){return!(!a||!a.startsWith("text/")&&!a.startsWith("image/")&&a!=="application/pdf")},WQa=function(a,b){return a.map(function(c){return c[b]})},XQa=function(a,b){return a.filter(function(c){return!b.has(c)})},YQa=function(a,b){for(var c=m(a),d=c.next();!d.done;d=
c.next())if(!b.has(d.value))return!1;b=m(b);for(c=b.next();!c.done;c=b.next())if(!a.has(c.value))return!1;return!0},sm=function(a,b){return XQa(a,new Set(b))},ZQa=function(a,b){var c=/[,;]/;(b===void 0||b)&&(c=/[\s,;]/);return a.split(c).map(Aa).filter(function(d){return!!d})},$Qa=function(a,b){a=new URL(a);return a.host+a.pathname+b},aRa=function(a){return a.user!==void 0},bRa=function(a){switch(a){case "public_non_google":return"Public (non-google.com)";case "googlers_unrestricted":return"Full-time Googlers";
default:return gj(a.replace(/_/g," ").toLowerCase())}},cRa=function(a){if(!a)return!1;a=a.userGaiaStatus;return!a||a==="ACTIVE"||a==="UNSPECIFIED"},um=function(a){return a?a.map(tm):[]},vm=function(a){a=(a!=null?a:[]).map(function(b){return{sortKey:tm(b),user:b}});a.sort(function(b,c){return b.sortKey.localeCompare(c.sortKey)});return a.map(function(b){return b.user})},tm=function(a){return a?a.userGaiaStatus==="DELETED"?"[Deleted User]":a.userGaiaStatus==="UNAVAILABLE"?"[Unavailable User]":cRa(a)?
wm(a)||"[No Data]":"[No Data]":""},wm=function(a){if(a)return a.emailAddress||a.obfuscatedEmailAddress||""},xm=function(a){return a?{emailAddress:a.trim(),userGaiaStatus:"ACTIVE"}:null},dRa=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next())b.push(xm(c.value));return b},ym=function(a){switch(a){case "BUG":return"Bug";case "FEATURE_REQUEST":return"Feature Request";case "CUSTOMER_ISSUE":return"Customer Issue";case "INTERNAL_CLEANUP":return"Internal Cleanup";case "PROCESS":return"Process";
case "VULNERABILITY":return"Vulnerability";case "PRIVACY_ISSUE":return"Privacy Issue";case "PROJECT":return"Project";case "FEATURE":return"Feature";case "MILESTONE":return"Milestone";case "EPIC":return"Epic";case "STORY":return"Story";case "TASK":return"Task";case "PROGRAM":return"Program";case "TYPE_UNSPECIFIED":return"";default:return""}},Am=function(a,b,c,d){var e;return{status:a,displayValue:(e=zm.get(a))!=null?e:"",open:b,assigneeRequirement:c,sortOrder:d}},pRa=function(){return[eRa,fRa,gRa,
hRa,iRa,jRa,kRa,lRa,mRa,nRa,oRa]},qRa=function(a){var b=a.getId(),c=Bm(a,3,void 0,jb);var d=Cm(a,2,Ci(),jb);a=Dm(a,4,Ci(),jb);return Fk({id:b,std_offset:c,names:d,transitions:a||[]})},Im=function(a){var b=a.emailAddress,c=a.obfuscatedEmailAddress,d=a.aliases;a=a.userGaiaStatus;var e=new Em;b&&Fm(e,1,b);c&&Fm(e,2,c);(d==null?0:d.length)&&Gm(e,4,d);if(a)switch(a){case "UNSPECIFIED":Hm(e,3,0);break;case "ACTIVE":Hm(e,3,1);break;case "DELETED":Hm(e,3,2);break;case "UNAVAILABLE":Hm(e,3,3);break;default:wb(a)}return e},
Km=function(a){var b={},c=a.getEmailAddress();c&&(b.emailAddress=c);if(c=ui(a,2))b.obfuscatedEmailAddress=c;c=wi(a,3);switch(c){case 0:break;case 1:b.userGaiaStatus="ACTIVE";break;case 2:b.userGaiaStatus="DELETED";break;case 3:b.userGaiaStatus="UNAVAILABLE";break;default:throw Error("$c`"+c);}a=Cm(a,4,Ci(Jm));if(a==null?0:a.length)b.aliases=a;return b},Lm=function(a){if(a!=null&&(a=String(a),a.trim()!==""))return a=Number(a),isNaN(a)?void 0:a},Mm=function(a){if(a!=null)return String(a)},Nm=function(a){if(a!=
null&&a!=="0"&&(typeof a!=="number"||Number.isInteger(a)&&!(a<=0)))return String(a)},Om=function(a){return a==null?void 0:a},rRa=function(){return function(a){return a==null?"<none>":a}},Pm=function(a){return a!=null},sRa=function(a){if(a!=null)return a/1E3},vRa=function(a){var b=a.getTrackerId_asString(),c=a.getName(),d=a.getComponentId_asString(),e=Qm(a,4);var f=X(a,tRa,6);f=f!=null?{logoUrl:f.getLogoUrl(),cocUrl:ui(f,3),theme:uRa[f.getTheme()]}:void 0;return{trackerId:b,name:c,componentId:d,associatedTrackerIds:e,
branding:f!=null?f:null,internalBaseUrl:a.getInternalBaseUrl()||void 0,externalBaseUrl:a.getExternalBaseUrl()||void 0,collaboratorGroups:Bi(a,Em,10,Ci()).length>0?Bi(a,Em,10,Ci()).map(Km):void 0}},wRa=function(a){return vRa(a.getIt())},xRa=function(a){return a.getIt().getTrackersList().map(vRa)},yRa=function(a){return{trackers:a.getIt().getTrackersList().map(vRa),nextPageToken:a.getIt().getNextPageToken(),totalSize:a.getIt().getTotalSize()}},Tm=function(a){if(a==null)return"UNSPECIFIED_FORMATTING_MODE";
switch(zRa[a]){case "MARKDOWN_FORMATTING_MODE":return"MARKDOWN";case "PLAIN_FORMATTING_MODE":return"PLAIN";case "LITERAL_FORMATTING_MODE":return"LITERAL";default:return"UNSPECIFIED_FORMATTING_MODE"}},ARa=function(a){if(a==null)return"COMMENT_FORMATTING_MODE_UNSPECIFIED";switch(Um[a]){case "MARKDOWN":return"MARKDOWN_FORMATTING_MODE";case "PLAIN":return"PLAIN_FORMATTING_MODE";case "LITERAL":return"LITERAL_FORMATTING_MODE";default:return"COMMENT_FORMATTING_MODE_UNSPECIFIED"}},BRa=function(a){return console==
null?!1:typeof console[a]==="function"},Vm=function(){BRa("debug")&&console.debug.apply(console,$c.apply(0,arguments))},Wm=function(){BRa("info")&&console.info.apply(console,$c.apply(0,arguments))},CRa=function(){BRa("log")&&console.log.apply(console,$c.apply(0,arguments))},Xm=function(){BRa("warn")&&console.warn.apply(console,$c.apply(0,arguments))},DRa=function(){BRa("error")&&console.error.apply(console,$c.apply(0,arguments))},Zm=function(a){if(a!=null)return Ym(a)},Ym=function(a){return Mb(a)?
Number(a):String(a)},ERa=function(a){if(a!=null){var b=a.getYear();if(b==null)Xm("No year. dateToJs");else{var c=a.getDay();if(c==null)Xm("No day. dateToJs");else if(a=a.getMonth(),a==null)Xm("No month. dateToJs");else return{year:b,day:c,month:a}}}},FRa=function(a){var b=new $m;an(b,3,a.day);b.setMonth(a.month);b.setYear(a.year);return b},bn=function(a){if(a!=null){var b=Ym(a.getSeconds());a=a.getNanos();return{seconds:b,nanos:a}}},cn=function(a){var b=new Si;b.setSeconds(a.seconds);b.setNanos(a.nanos);
return b},GRa=function(a){var b=new dn;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},HRa=function(a){if(a!=null){var b=Ym(a.getSeconds());a=a.getNanos();return{seconds:b,nanos:a}}},IRa=function(a){if(a!=null)return Number(a.toDate())},en=function(a){var b=a*1E3;a=0;b=b===void 0?0:b;if(b<=-1E9||b>=1E9)a+=Math.trunc(b/1E9),b%=1E9;b<0&&(b+=1E9,--a);return cn({seconds:a,nanos:b})},JRa=function(a){return bn(en(a*1E3))},fn=function(a){if(!a)return 0;a=Ym(a.getSeconds())*1E9+a.getNanos();return Math.round(a/
1E3)},KRa=function(a){return a?a==="ASCENDING"?"asc":"desc":""},gn=function(a,b,c){return function(d,e){e=e===void 0?c:e;return LRa(d,a,b,e)}},LRa=function(a,b,c,d){return d?[].concat(q(a)).sort(function(e,f){var g=d==="ASCENDING"?1:-1;return c(b(e),b(f))*g}):[].concat(q(a))},hn=function(a,b){return a==null||b==null?a==null&&b==null?0:a==null?1:b==null?-1:0:isNaN(a)&&isNaN(b)?0:isNaN(a)?1:isNaN(b)?-1:a>b?1:a<b?-1:0},jn=function(a,b){return a==null||b==null?a==null&&b==null?0:a==null?1:b==null?-1:
0:a.localeCompare(b)},gSa=function(a){var b={};Ei(a,1)&&(b.showFullHistory=Fi(a,1));Ei(a,2)&&(b.useCodefont=Fi(a,2));kn(a,5)&&(b.resultsPerPage=Bm(a,5));Ei(a,26)&&(b.showRecentEventsFirst=Fi(a,26));var c=a.getDisplayColumns();c&&(b.displayColumns={column:c.getColumnList().map(MRa).filter(Pm)});if(c=a.getSortColumns())b.sortColumns={column:c.getColumnList().map(NRa).filter(Pm)};im(a,7)&&(b.bannerMessageId=ui(a,7));if(c=X(a,ORa,3)){var d={};jm(c,1)&&(d.reportedPriority=ln(wi(c,1)));jm(c,2)&&(d.assignedPriority=
ln(wi(c,2)));jm(c,3)&&(d.verifiedPriority=ln(wi(c,3)));jm(c,4)&&(d.ccdPriority=ln(wi(c,4)));jm(c,9)&&(d.collaboratorPriority=ln(wi(c,9)));jm(c,5)&&(d.starredPriority=ln(wi(c,5)));Ei(c,6)&&(d.excludeChangesByMe=Fi(c,6));Ei(c,7)&&(d.unsubscribeFromAll=Fi(c,7));Ei(c,8)&&(d.enableV2Prefs=Fi(c,8));b.notificationPreferences=d}if(d=X(a,PRa,9)){c={showHotlists:Fi(d,1),showStatusIcons:Fi(d,4),wrapComponents:Fi(d,3),wrapTitles:Fi(d,2),rtlComponentPath:Fi(d,5)};var e=vc(d,6,Vb);c.fieldStatus=Object.fromEntries(e.entries());
d=vc(d,7,Vb);c.modeForField=Object.fromEntries(d.entries());b.listViewPreferences=c}if(c=a.getLayoutPreferences())d={},kn(c,1)&&(d.leftSidebarWidth=Bm(c,1)),Ei(c,2)&&(d.expandIssueSlo=Fi(c,2)),kn(c,3)&&(d.rightSidebarWidth=Bm(c,3)),b.layoutPreferences=d;if(d=a.getDateTimePreferences())c={},im(d,1)&&(c.calendarFormat=ui(d,1)),im(d,2)&&(c.timeFormat=ui(d,2)),d.hasTimeZone()&&(c.timeZone=d.getTimeZone()),jm(d,7)&&(d=wi(d,7),c.sloEtaViewAs=QRa[d]),b.dateTimePreferences=c;if(d=X(a,mn,8))c={},jm(d,1)&&
(d=d.getDensity(),c.density=RRa[d]),b.themePreferences=c;if(c=a.getHomepagePreferences())d={},jm(c,1)&&(d.resourceType=SRa(wi(c,1,1))),Pb(fm(c,2))!=null&&(d.resourceId=nn(c,2)),b.homepagePreferences=d;if(c=X(a,TRa,17))d={},Ei(c,1)&&(d.enableAllHotkeys=Fi(c,1,!0)),b.keyboardPreferences=d;Pb(fm(a,16))!=null&&(b.newFeaturesAcknowledgedMillis=nn(a,16));Ei(a,18)&&(b.autoCcOnComment=Fi(a,18));xi(a,URa,33)&&(e=X(a,URa,33),c=wi(e,3),d=wi(e,2),e=wi(e,1),b.commentFormattingPreferences={commentCreateOverride:VRa(c),
commentDisplayOverride:VRa(d),lastPublishMode:VRa(e)});xi(a,WRa,21)&&(c=X(a,WRa,21),d={},Ei(c,2)&&(d.announcementDismissed=Fi(c,2)),Ei(c,1)&&(d.enableBugScreensaver=Fi(c,1)),b.bugScreensaverPreferences=d);xi(a,XRa,24)&&(c=X(a,XRa,24),d={},on(c,1)&&(d.announcementDismissedMillis=Ym(pn(c,1))),b.g3nPreferences=d);if(c=X(a,YRa,23))c=Bi(c,qn,1,Ci()),b.teamWarningPreferences={componentTeamWarnings:c.map(ZRa)};c=wc(a,25,Si,Vb);c.size&&(b.dismissalTimestamps=$Ra(c));c=a.getCollapsedMap();c.size&&(b.collapsed=
Object.fromEntries(c.entries()));Ei(a,29)&&(b.showInlineImages=a.getShowInlineImages());xi(a,aSa,28)&&(c=X(a,aSa,28),d={},jm(c,1)&&(d.commentFilter=bSa(wi(c,1))),b.commentFilterPreferences=d);if(c=X(a,rn,31))b.missionControlPreferences=cSa(c);xi(a,dSa,32)&&(b.scopePreferences=eSa(X(a,dSa,32)));c=wc(a,34,sn,Ub);if(c.size){a=new Map;c=m(c.entries());for(d=c.next();!d.done;d=c.next())e=m(d.value),d=e.next().value,e=e.next().value,a.set(String(d),{open:e.getOpen(),searchScope:fSa[wi(e,2,1)],componentScope:tn(e,
3),includeDescendants:Fi(e,4)});b.assistiveIssuePickerPreferences=a}return b},MRa=function(a){if(a.hasType()){var b=a.getType();b={type:hSa[b]};a.hasCustomFieldId()&&(b.customFieldId=Ym(a.getCustomFieldId()));return b}},NRa=function(a){var b=a.getColumn();if(b=b&&MRa(b)){if(jm(a,2))a:switch(a=wi(a,2,1),a){case 1:a="ASCENDING";break a;case 2:a="DESCENDING";break a;default:a=wb(a,"Unknown sortOrder: "+a)}else a=void 0;if(a)return{column:b,order:a}}},ln=function(a){return iSa[a]},VRa=function(a){if(a!==
0)return jSa[a]},SRa=function(a){switch(a){case 1:return"HOTLIST";case 2:return"SAVED_SEARCH";case 3:return"BOOKMARK_GROUP";case 5:return"MISSION_CONTROL";case 6:return"ASSIGNED_TO_ME";default:return wb(a,"Unknown resourceType: "+a)}},ZRa=function(a){var b={};a.hasComponentId()&&(b.componentId=a.getComponentId_asString());on(a,2)&&(b.dismissMillis=Ym(pn(a,2)));return b},$Ra=function(a){a=Array.from(a.entries(),function(b){var c=m(b);b=c.next().value;c=c.next().value;return[b,c.toDate()]});return Object.fromEntries(a)},
bSa=function(a){switch(a){case 0:return"FULL_HISTORY";case 1:return"ALL_COMMENTS";case 2:return"HUMAN_ONLY";case 3:return"TEAM_AND_ASSIGNEE";default:return wb(a,"Unknown resourceType: "+a)}},eSa=function(a){var b=Qm(a,1),c=bn(X(a,Si,2));a=Bi(a,un,3,Ci()).map(function(d){return{teamId:d.getTeamId_asString(),triageId:tn(d,2)}});return{starredTeams:b,lastAutomaticStarsUpdate:c,starredTriageViews:a}},nSa=function(a){var b=kSa(lSa(new dSa,a.starredTeams),a.starredTriageViews.map(function(c){var d=(new un).setTeamId(c.teamId);
return vn(d,2,c.triageId)}));a.lastAutomaticStarsUpdate&&mSa(b,cn(a.lastAutomaticStarsUpdate));return b},cSa=function(a){var b=kn(a,3)?Bm(a,3):void 0,c=kn(a,6)?Bm(a,6):void 0,d=kn(a,5)?Bm(a,5):void 0,e=kn(a,4)?Bm(a,4):void 0,f=Ei(a,10)?Fi(a,10):void 0,g=Ei(a,11)?Fi(a,11):void 0,k=Ei(a,12)?Fi(a,12):void 0,l=wn(a,7,Ci()).map(function(R){return oSa[R]}),r=wn(a,8,Ci()).map(function(R){return oSa[R]}),w=pSa(Bi(a,xn,18,Ci())),x=qSa(Bi(a,yn,19,Ci())),C=rSa(Bi(a,zn,20,Ci())),H=sSa(Bi(a,An,21,Ci())),J=tSa(Bi(a,
Bn,22,Ci())),O=uSa(Bi(a,Cn,24,Ci()));b={workAreaUrls:Cm(a,1,Ci(Jm)),myTasksTab:b,myTasksDaysOld:c,needsAttentionDaysOld:d,workAreaTab:e,needsAttentionSources:l,needsAttentionBuganizerFilteredSignals:w,needsAttentionDriveFilteredSignals:x,needsAttentionGerritFilteredSignals:C,needsAttentionChangelistFilteredSignals:H,needsAttentionGoogleTasksFilteredSignals:J,needsAttentionIrmFilteredSignals:O,myTasksSources:r,hideBadgeInNav:f,isNeedsAttentionSourcesConfigured:g,isMyTasksSourcesConfigured:k};c=vc(a,
9,Xca);c.size&&(b.workAreaQuickFilters=vSa(c));a=a.getCollapsedMap();a.size&&(b.collapsed=Object.fromEntries(a.entries()));return b},vSa=function(a){var b={};a=m(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;(d=wSa(d))&&(b[c]=d)}return b},xSa=function(a){switch(a){case "ASSIGNED_TO_ME_AND_OPEN":return 1;case "OPEN":return 2;case "FIXED":return 3;case "BROAD_IN_PROGRESS":return 4;case "NEWLY_FILED":return 5;case "RECENTLY_ACTIVE":return 6;case "HIGH_PRIORITY":return 7;
case "TRENDING":return 8;case "PROGRESS":return 9;case "ASSIGNED_TO_ME":return 0;default:return 0}},wSa=function(a){switch(a){case 1:return"ASSIGNED_TO_ME_AND_OPEN";case 2:return"OPEN";case 3:return"FIXED";case 4:return"BROAD_IN_PROGRESS";case 5:return"NEWLY_FILED";case 6:return"RECENTLY_ACTIVE";case 7:return"HIGH_PRIORITY";case 8:return"TRENDING";case 9:return"PROGRESS"}},MSa=function(a){var b=new Dn;a.showFullHistory!=null&&Oi(b,1,a.showFullHistory);a.useCodefont!=null&&Oi(b,2,a.useCodefont);a.resultsPerPage!=
null&&En(b,5,a.resultsPerPage);a.displayColumns!=null&&b.setDisplayColumns(ySa(a.displayColumns));if(a.sortColumns!=null){var c=zSa(a.sortColumns);Mi(b,Fn,6,c)}a.bannerMessageId!=null&&oj(b,7,a.bannerMessageId);if(a.notificationPreferences!=null){c=a.notificationPreferences;var d=new ORa;d=Gn(d,1,Hn[c.reportedPriority]);d=Gn(d,2,Hn[c.assignedPriority]);d=Gn(d,3,Hn[c.verifiedPriority]);d=Gn(d,4,Hn[c.ccdPriority]);d=Gn(d,9,Hn[c.collaboratorPriority]);d=Gn(d,5,Hn[c.starredPriority]);d=Oi(d,6,c.excludeChangesByMe);
d=Oi(d,7,c.unsubscribeFromAll);c=Oi(d,8,c.unsubscribeFromAll);Mi(b,ORa,3,c)}a.listViewPreferences!=null&&(c=a.listViewPreferences,d=new PRa,d=Oi(d,1,c.showHotlists),d=Oi(d,2,c.wrapTitles),d=Oi(d,3,c.wrapComponents),d=Oi(d,4,c.showStatusIcons),d=Oi(d,5,c.rtlComponentPath),c.fieldStatus!=null&&ASa(c.fieldStatus,vc(d,6,Vb)),c.modeForField!=null&&ASa(c.modeForField,vc(d,7,Vb)),Mi(b,PRa,9,d));a.layoutPreferences!=null&&(c=a.layoutPreferences,d=new BSa,c.leftSidebarWidth!=null&&En(d,1,c.leftSidebarWidth),
c.expandIssueSlo!=null&&Oi(d,2,c.expandIssueSlo),c.rightSidebarWidth!=null&&En(d,3,c.rightSidebarWidth),Mi(b,BSa,10,d));a.dateTimePreferences!=null&&(c=a.dateTimePreferences,d=new In,d=oj(d,1,c.calendarFormat),d=oj(d,2,c.timeFormat).setTimeZone(c.timeZone),c=Gn(d,7,CSa[c.sloEtaViewAs]),Mi(b,In,11,c));a.themePreferences!=null&&(c=a.themePreferences,c=(new mn).setDensity(DSa[c.density]),Mi(b,mn,8,c));if(a.homepagePreferences!=null){c=a.homepagePreferences;d=new ESa;if(c.resourceType!=null){var e=FSa(c.resourceType);
Gn(d,1,e)}c.resourceId!=null&&d.setResourceId(c.resourceId);Mi(b,ESa,13,d)}a.keyboardPreferences!=null&&(c=a.keyboardPreferences,d=new TRa,c=Oi(d,1,c.enableAllHotkeys),Mi(b,TRa,17,c));a.newFeaturesAcknowledgedMillis!=null&&Jn(b,16,a.newFeaturesAcknowledgedMillis);a.autoCcOnComment!=null&&Oi(b,18,a.autoCcOnComment);a.commentFormattingPreferences!=null&&(c=a.commentFormattingPreferences,d=new URa,c.commentCreateOverride&&Gn(d,3,GSa[c.commentCreateOverride]),c.commentDisplayOverride&&Gn(d,2,GSa[c.commentDisplayOverride]),
c.lastPublishMode&&Gn(d,1,GSa[c.lastPublishMode]),Mi(b,URa,33,d));a.bugScreensaverPreferences!=null&&(c=a.bugScreensaverPreferences,d=new WRa,c.enableBugScreensaver!=null&&Oi(d,1,c.enableBugScreensaver),c.announcementDismissed!=null&&Oi(d,2,c.announcementDismissed),Mi(b,WRa,21,d));a.g3nPreferences!=null&&(c=a.g3nPreferences,d=new XRa,c.announcementDismissedMillis!=null&&vn(d,1,c.announcementDismissedMillis),Mi(b,XRa,24,d));a.teamWarningPreferences!=null&&(c=HSa(a.teamWarningPreferences),Mi(b,YRa,
23,c));if(a.dismissalTimestamps!=null)for(d=a.dismissalTimestamps,c=wc(b,25,Si,Vb),d=m(Object.entries(d)),e=d.next();!e.done;e=d.next()){var f=m(e.value);e=f.next().value;f=f.next().value;c.set(e,ISa(f))}a.collapsed!=null&&ASa(a.collapsed,b.getCollapsedMap());a.showRecentEventsFirst!=null&&Oi(b,26,a.showRecentEventsFirst);a.showInlineImages!=null&&Oi(b,29,a.showInlineImages);a.commentFilterPreferences!=null&&(d=a.commentFilterPreferences,c=new aSa,d.commentFilter!=null&&(d=JSa(d.commentFilter),Gn(c,
1,d)),Mi(b,aSa,28,c));a.missionControlPreferences!=null&&(c=KSa(a.missionControlPreferences),Mi(b,rn,31,c));a.scopePreferences!=null&&(c=nSa(a.scopePreferences),Mi(b,dSa,32,c));if(a.assistiveIssuePickerPreferences!=null)for(c=a.assistiveIssuePickerPreferences,a=wc(b,34,sn,Ub),c=m(c.entries()),d=c.next();!d.done;d=c.next()){d=m(d.value);var g=d.next().value;f=d.next().value;d=a;e=d.set;g=mb(g);var k=(new sn).setOpen(f.open);k=Gn(k,2,LSa[f.searchScope]);k=vn(k,3,f.componentScope);f=Oi(k,4,f.includeDescendants);
e.call(d,g,f)}return b},ySa=function(a){return(new Kn).setColumnList(a.column.map(function(b){return NSa(b)}))},NSa=function(a){var b=(new Ln).setType(OSa[a.type]);a.customFieldId!=null&&b.setCustomFieldId(a.customFieldId);return b},zSa=function(a){return(new Fn).setColumnList(a.column.map(function(b){var c=(new Mn).setColumn(NSa(b.column));a:switch(b=b.order,b){case "ASCENDING":b=1;break a;case "DESCENDING":b=2;break a;default:b=wb(b,"Unknown sortOrder: "+b)}return Gn(c,2,b)}))},FSa=function(a){switch(a){case "HOTLIST":return 1;
case "SAVED_SEARCH":return 2;case "BOOKMARK_GROUP":return 3;case "MISSION_CONTROL":return 5;case "ASSIGNED_TO_ME":return 6;default:return wb(a,"Unknown resourceType: "+a)}},HSa=function(a){var b=new YRa;a.componentTeamWarnings!=null&&PSa(b,a.componentTeamWarnings.map(function(c){var d=new qn;c.componentId&&d.setComponentId(c.componentId);c.dismissMillis&&vn(d,2,c.dismissMillis);return d}));return b},JSa=function(a){switch(a){case "FULL_HISTORY":return 0;case "ALL_COMMENTS":return 1;case "HUMAN_ONLY":return 2;
case "TEAM_AND_ASSIGNEE":return 3;default:return wb(a,"Unknown commentFilterType: "+a)}},KSa=function(a){var b=new rn;a.workAreaUrls&&Gm(b,1,a.workAreaUrls);a.collapsed&&ASa(a.collapsed,b.getCollapsedMap());if(a.workAreaQuickFilters){for(var c=a.workAreaQuickFilters,d={},e=m(Object.keys(c)),f=e.next();!f.done;f=e.next())f=f.value,d[f]=xSa(c[f]);ASa(d,vc(b,9,Xca))}a.myTasksTab!=null&&En(b,3,a.myTasksTab);a.workAreaTab!=null&&En(b,4,a.workAreaTab);a.myTasksDaysOld!=null&&En(b,6,a.myTasksDaysOld);a.needsAttentionDaysOld!=
null&&En(b,5,a.needsAttentionDaysOld);a.needsAttentionSources&&QSa(b,a.needsAttentionSources.map(RSa));a.myTasksSources&&SSa(b,a.myTasksSources.map(RSa));a.hideBadgeInNav!=null&&Oi(b,10,!!a.hideBadgeInNav);a.isNeedsAttentionSourcesConfigured!=null&&Oi(b,11,!!a.isNeedsAttentionSourcesConfigured);a.isMyTasksSourcesConfigured!=null&&Oi(b,12,!!a.isMyTasksSourcesConfigured);a.needsAttentionBuganizerFilteredSignals&&TSa(b,Nn(a.needsAttentionBuganizerFilteredSignals,function(g,k){return(new xn).setSignal(USa[g]).setChecked(k)}));
a.needsAttentionDriveFilteredSignals&&VSa(b,Nn(a.needsAttentionDriveFilteredSignals,function(g,k){return(new yn).setSignal(WSa[g]).setChecked(k)}));a.needsAttentionGerritFilteredSignals&&XSa(b,Nn(a.needsAttentionGerritFilteredSignals,function(g,k){return(new zn).setSignal(YSa[g]).setChecked(k)}));a.needsAttentionChangelistFilteredSignals&&ZSa(b,Nn(a.needsAttentionChangelistFilteredSignals,function(g,k){return(new An).setSignal($Sa[g]).setChecked(k)}));a.needsAttentionGoogleTasksFilteredSignals&&aTa(b,
Nn(a.needsAttentionGoogleTasksFilteredSignals,function(g,k){return(new Bn).setSignal(bTa[g]).setChecked(k)}));a.needsAttentionIrmFilteredSignals&&cTa(b,Nn(a.needsAttentionIrmFilteredSignals,function(g,k){return(new Cn).setSignal(dTa[g]).setChecked(k)}));return b},RSa=function(a){return eTa[a]},pSa=function(a){return a.reduce(function(b,c){return b.set(fTa[c.getSignal()],c.getChecked())},new Map)},qSa=function(a){return a.reduce(function(b,c){return b.set(gTa[c.getSignal()],c.getChecked())},new Map)},
rSa=function(a){return a.reduce(function(b,c){return b.set(hTa[c.getSignal()],c.getChecked())},new Map)},sSa=function(a){return a.reduce(function(b,c){return b.set(iTa[c.getSignal()],c.getChecked())},new Map)},tSa=function(a){return a.reduce(function(b,c){return b.set(jTa[c.getSignal()],c.getChecked())},new Map)},uSa=function(a){return a.reduce(function(b,c){return b.set(kTa[c.getSignal()],c.getChecked())},new Map)},ASa=function(a,b){a=m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=
m(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}},Nn=function(a,b){var c=[];a.forEach(function(d,e){c.push(b(e,d))});return c},Wn=function(){if(lTa==null){On==null&&(On=new mTa(nTa.buganizerSessionJspb));xi(On,Pn,2)||On.setConfig(new Pn);if(!xi(On,Qn,9)){var a=On;var b=new Qn;Mi(a,Qn,9,b)}On.hasUser()||On.setUser(new Rn);xi(On,Dn,7)||(a=On,b=new Dn,Mi(a,Dn,7,b));a=On;b=a.hasUser()?a.getUser():new Rn;b=Fi(b,4)?{anonymous:!0,email:null,userTypeLabel:"ANONYMOUS",sessionIdentifier:""}:{anonymous:!1,
email:b.getEmail(),userTypeLabel:b.getUserTypeLabel(),sessionIdentifier:b.getSessionIdentifier()};var c=xi(a,Pn,2)?a.getConfig():new Pn;for(var d=new Map,e=m(vc(c,4,Vca).entries()),f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;g=g.next().value;d.set(f,g)}e=new oTa(Sn(c,29));c={appName:c.getAppName(),documentationBaseUrl:c.getDocumentationBaseUrl(),enabledFlags:d,environmentType:c.getEnvironmentType(),onePickUrl:c.getOnePickUrl(),onePickSecretToken:c.getOnePickSecretToken(),commentNumberLimit:c.getCommentNumberLimit(),
createComponentRedirectDelay:c.getCreateComponentRedirectDelay(),createRestrictedSubresourcesComponentIds:Qm(c,13).map(Nm).filter(Pm),indefiniteRetentionComponentsAllowlist:Qm(c,20).map(Nm).filter(Pm),trustedEmailDomainsAllowlist:Cm(c,22,Ci(Jm)),helpMeFixSidebarComponentAllowlist:Qm(c,23).map(Nm).filter(Pm),batchDedupeComponentAllowlist:Qm(c,28).map(Nm).filter(Pm),gppLlmChatComponentAllowlist:Qm(c,30).map(Nm).filter(Pm),internalBaseUrl:c.getInternalBaseUrl(),externalBaseUrl:c.getExternalBaseUrl(),
experimentState:e};d=gSa(xi(a,Dn,7)?a.getUserPreferences():new Dn);f=xi(a,Qn,9)?X(a,Qn,9):new Qn;e=Bi(f,Tn,1,Ci()).map(qRa);xi(f,Un,2)?(f=f.getAnnouncement(),f={message:f.getMessage(),messageId:f.getMessageId(),dismissible:Fi(f,3,void 0,jb),tags:f.getTagsList(Jm)}):f=null;e={timezones:e,announcement:f};f=a.getXsrfToken();g=a.getCspNonce();var k=a.getFrontendAccessMode(),l=a.getMustAcknowledgeTerms(),r=a.getShowNewFeaturesDialog(),w=a.getAppBaseHref(),x=xi(a,Vn,11)?wRa(a.getTracker()):null,C;xi(a,
pTa,12)?(C=a.getPassiveLoginIframeUrl())?(C=Fl(C,4),C=C===null||C===void 0?null:vh(C)):C=null:C=null;lTa={user:b,config:c,xsrfToken:f,cspNonce:g,frontendAccessMode:k,mustAcknowledgeTerms:l,showNewFeaturesDialog:r,userPreferences:d,preload:e,appBaseHref:w,tracker:x,passiveLoginIframeUrl:C,userRequiresCaptcha:Fi(a,13)}}return lTa},qTa=function(a){return a.frontendAccessMode||"INTERNAL"},rTa=function(){return qTa(Wn())==="INTERNAL"},Xn=function(a,b){if(b)Gra(a,b);else for(;a.lastChild;)a.lastChild.remove()},
sTa=function(a){for(a=a.firstChild;a;){if(a.nodeType!==Node.TEXT_NODE)return!1;a=a.nextSibling}return!0},Yn=function(a){return a.endsWith("px")?Math.floor(Number(a.substr(0,a.length-2))):Number.NaN},tTa=function(a){return a.ctrlKey||a.metaKey||a.shiftKey||a.altKey},uTa=function(a){if(a.plainFormat)return a.plainFormat.plainSection.map(function(c){var d=document.createElement("div");Xn(d,c.content);return d.innerText}).join("\n");if(a.markdownFormat){var b=document.createElement("div");Xn(b,a.markdownFormat.content);
return b.innerText}return a.literalFormat?(b=document.createElement("div"),Xn(b,a.literalFormat.content),b.innerText):""},Zn=function(a){return!!a&&vTa.test(a)&&!wTa.test(a)},zTa=function(a){a=a===void 0?"":a;return!xTa(a)||a.endsWith("-robots@google.com")||yTa(a)},yTa=function(a){return ATa.some(function(b){return a.endsWith(b)})},xTa=function(a){return!a.endsWith("@prod.google.com")&&!a.endsWith("@appspot.gserviceaccount.com")},$n=function(a){return a?a.seconds*1E3+a.nanos/1E6:0},BTa=function(a){var b=
a+" day"+(a>1?"s":"");if(a<365)return b;a=Math.round(a/365*10)/10;return b+" (~"+(a+" year"+(a>1?"s":""))+")"},CTa=function(a){if(a){var b=new ao;b.setTime(a.getTime());return b}},bo=function(a){if(a!=null)return new Date(a.year,a.month-1,a.day)},DTa=function(a){if(a)return{year:a.getFullYear(),month:a.getMonth()+1,day:a.getDate()}},ETa=function(a){var b=a.getMonth();a=a.getFullYear();b=Math.floor(b/3);return{quarterStartDate:new Date(a,b*3,1),quarterEndDate:new Date(a,b*3+3,0)}},FTa=function(a){if(a==
null)return"";var b=a.toLocaleDateString(void 0,{dateStyle:"medium"});return(new Date).getFullYear()===a.getFullYear()?b.split(", ")[0]:b},GTa=function(a){return a==null?!1:Date.now()>$n(a)},co=function(a,b){return function(c){if(a.has(c))return a.get(c);var d=b(c);a.set(c,d);return d}},HTa=function(a,b){return new Map(a.map(function(c){return[c,b(c)]}))},eo=function(a,b){var c;return new Map((c=a==null?void 0:a.map(function(d){return[b(d),d]}))!=null?c:[])},ITa=function(a,b){var c=new Map;a=m(a);
for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b(d),f=void 0,g=(f=c.get(e))!=null?f:[];g.push(d);c.set(e,g)}return c},JTa=function(a,b){return HTa([].concat(q(a.keys())),function(c){return b(a.get(c),c)})},KTa=function(a){var b=new Map;a=m(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;b.set(d,c)}return b},LTa=function(a){var b=new Map;a=m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;
b.set(c,d)}return b},MTa=function(a,b){return(a!=null?a:0)+(b!=null?b:0)},NTa=function(a){return a.length===0?0:a.reduce(MTa)/a.length},OTa=function(a,b){b=b===void 0?NTa(a):b;if(a.length===0)return 0;a=a.map(function(c){return Math.pow(c-b,2)}).reduce(MTa)/(a.length-1);return Math.sqrt(a)},fo=function(a,b){if(a<5)return!1;if(!PTa.get(b)){var c=NTa(b),d=OTa(b,c);PTa.set(b,{mean:c,stdDev:d})}b=PTa.get(b);return a-b.mean>b.stdDev*2},go=function(a){return!(a==null||!a.commentNumber)},QTa=function(a){return a.unlinkifiedComment!==
""?!0:a.formattedComment?uTa(a.formattedComment)!=="":!1},RTa=function(a){var b;return((b=a.attachments)==null?void 0:b.length)>0},STa=function(a,b){return Object.assign({},a,{commentRedacted:b.redacted,unlinkifiedComment:b.unlinkifiedComment,formattedComment:b.formattedComment})},TTa=function(a,b,c){var d=a.findIndex(function(f){return f.commentNumber===b}),e=a[d];if(e==null)return a;c=Object.assign({},e,c);return[].concat(q(a.slice(0,d)),[c],q(a.slice(d+1)))},ho=function(a){var b;return a==null?
void 0:(b=a.snapshot)==null?void 0:b[0]},UTa=function(a){var b;return tm((b=ho(a))==null?void 0:b.assigneeUser)||void 0},VTa=function(a){if(a==null)return"";var b,c,d,e,f=a.etag,g=a.piiRetention;var k=a.piiRetentionState;k=k==null?"":[JSON.stringify(k.retentionPeriod),JSON.stringify(k.scheduledDeletionTime)].join("-");return[f,g,k,(b=a.entityStatus)==null?void 0:b.reason,(c=a.entityStatus)==null?void 0:c.status,(d=a.contentVerdict)==null?void 0:(e=d.piiVerdict)==null?void 0:e.severity].join("-")},
WTa=function(a){if(a==null)return"";var b=a.attachments.map(VTa).join("-"),c=[];if(a.commentReactions&&a.commentReactions.size>0){var d,e=m((d=a.commentReactions)==null?void 0:d.entries());for(d=e.next();!d.done;d=e.next()){var f=m(d.value);d=f.next().value;f=f.next().value;c.push(d+"-"+f.count)}}c=c.join("-");var g,k;return[a.modifiedDate,a.version,"["+b+"]",a.preDiffs.length,a.postDiffs.length,a.commentVersion,(g=a.commentContentVerdict)==null?void 0:(k=g.piiVerdict)==null?void 0:k.severity,a.commentDeletionStatus,
a.commentRetention,"["+c+"]"].join("-")},XTa=function(a){return a.map(function(b){return b.commentNumber}).filter(Pm).reduce(function(b,c){return Math.max(b,c)},1)},YTa=function(a,b){if(a===b)return!0;if(a==null||b==null||a.length!==b.length)return!1;for(var c=a.length-1;c>=0;c--){var d=a[c],e=b[c];if(d!==e&&(d==null||e==null||WTa(d)!==WTa(e)))return!1}return!0},jo=function(a){if(a==null||(a==null?0:a.isArchived))return!1;var b,c;a=a==null?void 0:(b=a.snapshot)==null?void 0:(c=b[0])==null?void 0:
c.status;if(a==null)return!1;var d,e;return(e=(d=io.get(a))==null?void 0:d.open)!=null?e:!1},ZTa=function(a){if(a==null||a.isArchived)return!1;var b,c;a=a==null?void 0:(b=a.snapshot)==null?void 0:(c=b[0])==null?void 0:c.status;if(a==null)return!1;b=io.get(a);return b==null?!1:!(b==null?0:b.open)},aUa=function(a){return $Ta(a,"FIXED")},$Ta=function(a,b){if(a==null?0:a.isArchived)return!1;var c,d;return b===(a==null?void 0:(c=a.snapshot)==null?void 0:(d=c[0])==null?void 0:d.status)},bUa=function(a){return a.isArchived==
null?!1:!a.isArchived},cUa=function(a){if(!a)return!1;var b,c=(b=a.aggregatedData)==null?void 0:b.modifiedTimeMicros,d;a=(d=a.userData)==null?void 0:d.lastViewedTimeMicros;return!a||c&&a<c},eUa=function(){var a=ko;return gn(function(b){var c,d;return(d=dUa.get((c=a(b))==null?void 0:c.snapshot[0].status))!=null?d:0},hn)},fUa=function(){var a=ko;return gn(function(b){var c,d;return(c=a(b))==null?void 0:(d=c.snapshot[0].assigneeUser)==null?void 0:d.emailAddress},jn)},gUa=function(){var a=ko;return gn(function(b){var c;
return(c=a(b))==null?void 0:c.snapshot[0].type},jn)},hUa=function(){var a=ko;return gn(function(b){var c,d;return(c=a(b))==null?void 0:(d=c.snapshot[0].reporterUser)==null?void 0:d.emailAddress},jn)},iUa=function(a){return gn(function(b){var c,d,e;return(e=(c=a(b))==null?void 0:(d=c.aggregatedData)==null?void 0:d.createdTimeMicros)!=null?e:0},hn)},jUa=function(a){return gn(function(b){var c,d,e;return(e=(c=a(b))==null?void 0:(d=c.aggregatedData)==null?void 0:d.modifiedTimeMicros)!=null?e:0},hn)},
mUa=function(){var a=kUa;return gn(function(b){var c,d,e;return(e=(c=a(b))==null?void 0:(d=c.experimentalFields)==null?void 0:d.triage.triagerEmail)!=null?e:""},function(b,c){return b===lUa?1:c!==lUa&&b?c?jn(b,c):1:-1})},nUa=function(a){var b,c,d;return(d=a==null?void 0:(b=a.snapshot)==null?void 0:(c=b[0])==null?void 0:c.priority)!=null?d:"PRIORITY_UNSPECIFIED"},pUa=function(a){return gn(function(b){b=a(b);return oUa[nUa(b)]},hn)},qUa=function(){var a=ko;return gn(function(b){b=a(b);if(b==null)b=
0;else{var c=b.descendantCount;b=c===0?0:(c-b.openDescendantCount)/c}return b},hn)},lo=function(a){var b;return(a==null?void 0:(b=a.userPerformingActionUser)==null?void 0:b.emailAddress)==="piper-bugupdater@prod.google.com"},rUa=function(a){var b;return(a==null?void 0:(b=a.userPerformingActionUser)==null?void 0:b.emailAddress)==="apphosting-stubby-api--s-7egoogle-2ecom-3agitwatcher@prod.google.com"},mo=function(a){if(!rUa(a))return!1;var b;return((b=a==null?void 0:a.unlinkifiedComment)!=null?b:"").trim().split("\n").length>=
9},sUa=function(a){return function(b){var c,d;return((d=b==null?void 0:(c=b.snapshot[0])==null?void 0:c.customField)!=null?d:[]).find(function(e){return e.customFieldId===a})}},uUa=function(a,b,c){b=tUa.get(c)||new Set(c.map(function(e){return e.issueId}));tUa.set(c,b);var d;a=m((d=a.parentIssueIds)!=null?d:[]);for(d=a.next();!d.done;d=a.next())if(b.has(d.value))return!1;return!0},wUa=function(a,b){vUa.get(b)||vUa.set(b,[b.map(function(e){var f,g;return(g=e==null?void 0:(f=e.userActivityStats)==null?
void 0:f.oneDayViewCount)!=null?g:0}),b.map(function(e){var f,g;return(g=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.sevenDayViewCount)!=null?g:0}),b.map(function(e){var f,g;return(g=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.thirtyDayViewCount)!=null?g:0})]);var c=m(vUa.get(b));b=c.next().value;var d=c.next().value;c=c.next().value;return fo(b[a],b)||fo(d[a],d)||fo(c[a],c)},xUa=function(a){if(a)return{issueId:a.issueId,version:a.version,snapshot:a.snapshot,userData:a.userData,
aggregatedData:a.aggregatedData,accessLimit:a.accessLimit,customFields:a.customFields,visibleFields:a.visibleFields,majorModifiedTimeMicros:a.majorModifiedTimeMicros,parentIssueIds:a.parentIssueIds,descendantCount:a.descendantCount,openDescendantCount:a.openDescendantCount,isArchived:a.isArchived,trackerId:a.trackerId,userActivityStats:a.userActivityStats,experimentalFields:a.experimentalFields,escalationOwner:a.escalationOwner}},yUa=function(a,b){if(a&&b)return{issueId:a.issueId,version:a.version,
snapshot:a.snapshot,userData:a.userData,aggregatedData:a.aggregatedData,accessLimit:a.accessLimit,customFields:a.customFields,visibleFields:a.visibleFields,majorModifiedTimeMicros:a.majorModifiedTimeMicros,parentIssueIds:a.parentIssueIds,descendantCount:a.descendantCount,openDescendantCount:a.openDescendantCount,isArchived:a.isArchived,trackerId:a.trackerId,userActivityStats:a.userActivityStats,experimentalFields:a.experimentalFields,escalationOwner:a.escalationOwner,ancestors:b.ancestors,childIssueCount:b.childIssueCount,
relatedLinks:b.relatedLinks,statusUpdate:b.statusUpdate,description:b.description}},zUa=function(a){var b=new Map;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value.snapshot[0].componentId;var d=void 0,e=(d=b.get(c))!=null?d:0;b.set(c,e+1);if(!f||b.get(f)<b.get(c))var f=c}return f},AUa=function(a){var b=ITa(a,function(e){return e.issueId});a=[];b=m(b.entries());for(var c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;a.push(c+": "+d.map(function(e){return e.message}).join(", "))}return a.join("\n")},
no=function(a){if(a.user){var b,c;return(c=(b=a.user.user)==null?void 0:b.emailAddress)!=null?c:""}if(a.placeholder){var d;return(d=a.placeholder.role)!=null?d:""}return""},BUa=function(a){var b=new Map;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=no(c);b.has(d)?b.get(d).push(c):b.set(d,[c])}return b},CUa=function(a){var b=new Map;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=[],e=void 0;d.push((e=wm(c.user.user))!=null?e:"");e=void 0;if((e=c.allocation)==null?0:e.startDate)e=
c.allocation.startDate,d.push("S"+e.year+"-"+e.month+"-"+e.day);e=void 0;if((e=c.allocation)==null?0:e.endDate)e=c.allocation.endDate,d.push("E"+e.year+"-"+e.month+"-"+e.day);b.set(d.join(":"),c)}return b},po=function(a,b){b=b===void 0?!1:b;if(a.user){var c,d,e=(d=(c=a.user.user)==null?void 0:c.emailAddress)!=null?d:"";c=[];a.user.role&&c.push(a.user.role);a.user.isLead&&c.push("Lead");if(b)c.push("Multiple Allocations");else{var f;if((f=a.allocation)==null?0:f.involvement)c.push(oo[a.allocation.involvement]);
else{var g;((g=a.allocation)==null?void 0:g.percentage)!==void 0&&c.push(Math.round(a.allocation.percentage*100)+"%")}var k;if((k=a.allocation)==null?0:k.startDate)b=a.allocation.startDate,c.push("Start: "+b.year+"-"+b.month+"-"+b.day);var l;if((l=a.allocation)==null?0:l.endDate)a=a.allocation.endDate,c.push("End: "+a.year+"-"+a.month+"-"+a.day)}return e+(c.length?" ("+c.join(" - ")+")":"")}return a.placeholder?"Placeholder: "+a.placeholder.count+" "+a.placeholder.role:""},DUa=function(){return{assigneeUser:null,
blockedByIssueId:[],blockingIssueId:[],ccUsers:[],changelist:[],collaboratorsUsers:[],comment:null,componentId:null,customField:[],deletionReason:null,duplicateIssueId:[],duplicateOfIssueId:null,effort:void 0,foundInVersion:[],gerritChanges:[],hotlistId:[],inProd:!1,incidents:[],isArchived:!1,isDeleted:null,issueAccessLimitLevel:null,postmortems:[],priority:null,reporterUser:null,retention:null,severity:null,sloEndTime:null,sloSnoozeType:null,sloStartTime:null,staffing:null,status:null,targetedToVersion:[],
title:"",type:null,verifiedInVersion:[],verifierUser:null}},EUa=function(a){if(a.type!=="ANY_ISSUE_EDIT")return!1;var b,c,d,e,f,g,k,l;return!((b=a.content)==null?0:(c=b.issueModification)==null?0:(d=c.addMask)==null?0:d.length)&&!((e=a.content)==null?0:(f=e.issueModification)==null?0:(g=f.removeMask)==null?0:g.length)&&!((k=a.content)==null?0:(l=k.issueModification)==null?0:l.comment)},FUa=function(a,b){a=nm(a);var c,d=(c=a.content)==null?void 0:c.issueModification;b=b.snapshot[0];if(!d)return a;
var e;c=new Set((e=d.addMask)!=null?e:[]);var f;e=new Set((f=d.removeMask)!=null?f:[]);f=d.addState;d=d.removeState;c.has("status")&&(f==null?void 0:f.status)===b.status&&c.delete("status");c.has("priority")&&(f==null?void 0:f.priority)===b.priority&&c.delete("priority");c.has("severity")&&(f==null?void 0:f.severity)===b.severity&&c.delete("severity");var g,k;c.has("assignee")&&(f==null?void 0:(g=f.assigneeUser)==null?void 0:g.emailAddress)===((k=b.assigneeUser)==null?void 0:k.emailAddress)&&c.delete("assignee");
var l;!e.has("assignee")||((l=b.assigneeUser)==null?0:l.emailAddress)||e.delete("assignee");var r,w;c.has("verifier")&&(f==null?void 0:(r=f.verifierUser)==null?void 0:r.emailAddress)===((w=b.verifierUser)==null?void 0:w.emailAddress)&&c.delete("verifier");var x;!e.has("verifier")||((x=b.verifierUser)==null?0:x.emailAddress)||e.delete("verifier");var C,H,J=new Set((H=(C=b.ccUsers)==null?void 0:C.map(wm))!=null?H:[]);if(c.has("ccs")){var O;if(f==null?0:(O=f.ccUsers)==null?0:O.length){var R;f.ccUsers=
f==null?void 0:(R=f.ccUsers)==null?void 0:R.filter(function(ub){return!J.has(wm(ub))});var V;(f==null?0:(V=f.ccUsers)==null?0:V.length)||c.delete("ccs")}else c.delete("ccs")}if(e.has("ccs")){var ca;if(d==null?0:(ca=d.ccUsers)==null?0:ca.length){var na;d.ccUsers=d==null?void 0:(na=d.ccUsers)==null?void 0:na.filter(function(ub){return J.has(wm(ub))});var ua;(d==null?0:(ua=d.ccUsers)==null?0:ua.length)||e.delete("ccs")}else e.delete("ccs")}var ia,Ga=new Set((ia=b.hotlistId)!=null?ia:[]);if(c.has("hotlists")){var ha;
if(f==null?0:(ha=f.hotlistId)==null?0:ha.length){f.hotlistId=f.hotlistId.filter(function(ub){return!Ga.has(ub)});var sa;(f==null?0:(sa=f.hotlistId)==null?0:sa.length)||c.delete("hotlists")}else c.delete("hotlists")}if(e.has("hotlists")){var xa;if(d==null?0:(xa=d.hotlistId)==null?0:xa.length){d.hotlistId=d.hotlistId.filter(function(ub){return Ga.has(ub)});var Qa;(d==null?0:(Qa=d.hotlistId)==null?0:Qa.length)||e.delete("hotlists")}else e.delete("hotlists")}c.has("title")&&(f==null?void 0:f.title)===
b.title&&c.delete("title");c.has("componentId")&&(f==null?void 0:f.componentId)===b.componentId&&c.delete("componentId");var bb;if((bb=a.content)==null?0:bb.issueModification)a.content.issueModification.addMask=[].concat(q(c)),a.content.issueModification.removeMask=[].concat(q(e));return a},HUa=function(a,b){var c=a.match(/```json\n([\s\S]*?)\n```/);if(c)a=c[1];else{c=a.indexOf("{");var d=a.lastIndexOf("}");a=c!==-1&&d!==-1&&c<d?a.substring(c,d+1):a}return GUa(a,b).filter(function(e){return!EUa(e)})},
GUa=function(a,b){a:{try{var c=JSON.parse(a);break a}catch(d){console.error("Failed to parse JSON response:",d)}c=void 0}if(c=a=c)a.triage_recommendations?c=!0:(console.error("triage_recommendations is missing."),c=!1);return c?Object.values(a.triage_recommendations).map(function(d,e){var f=Date.now(),g=Math.floor(f/1E3);f=f%1E3*1E6;var k=DUa(),l=DUa(),r=[],w=[],x=void 0;d.assignee_email&&(k.assigneeUser=IUa(d.assignee_email),r.push("assignee"));d.cc_emails&&(k.ccUsers=d.cc_emails.map(IUa).filter(Pm),
r.push("ccs"));var C=Nm(d.component_id);C&&(k.componentId=C,r.push("componentId"));d.hotlist_ids_to_add&&(k.hotlistId=d.hotlist_ids_to_add.filter(Pm),r.push("hotlists"));d.hotlist_ids_to_remove&&(l.hotlistId=d.hotlist_ids_to_remove.filter(Pm),w.push("hotlists"));C=Nm(d.issue_id);d.issue_comment&&C&&(x={issueId:C,commentNumber:0,formattingMode:"MARKDOWN",version:0,unlinkifiedComment:d.issue_comment,redacted:!1,commentReactions:new Map,formattedComment:void 0,lastEditorUser:void 0,entityStatus:void 0,
piiRetention:void 0,piiRetentionState:void 0,etag:void 0,lastModified:0},r.push("comment"));if(C=Nm(d.mark_as_duplicate_of))k.duplicateOfIssueId=C,r.push("duplicateOfIssueId");d.priority&&(k.priority=d.priority,r.push("priority"));d.severity&&(k.severity=d.severity,r.push("severity"));d.status&&(k.status=d.status,r.push("status"));d.verifier_email&&(k.verifierUser=IUa(d.verifier_email),r.push("verifier"));return{name:"recommendationSources/"+b+"/recommendations/"+e,source:"recommendationSources/"+
b,resource:"issues/"+d.issue_id,type:C?"ISSUE_DEDUPLICATION":"ANY_ISSUE_EDIT",recommendation:C?"issues/"+C:"any-issue-edit",score:1,confidence:"VERY_HIGH",createTime:{seconds:g,nanos:f},content:{issueModification:{addState:k,addMask:r,removeState:l,removeMask:w,comment:x}},rationale:d.triage_decision_explanation?{text:d.triage_decision_explanation,formattingMode:"MARKDOWN",createTime:{seconds:g,nanos:f}}:void 0}}):[]},IUa=function(a){return a.includes("@")?xm(a):xm(a+"@google.com")},JUa=function(a){a&
1&&M(0,"span",1);a&2&&(a=P(),I("innerHtml",a.data.htmlMessage,Me))},KUa=function(a){a&1&&(K(0,"span",2),Q(1),L());a&2&&(a=P(),B(),yg(a.data.message))},LUa=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();return v(c.snackBarRef.dismissWithAction())});Q(1);L()}a&2&&(a=P(),B(),S(" ",a.data.actionLabel," "))},MUa=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();return v(c.snackBarRef.dismiss())});Q(1);L()}a&2&&(a=P(),B(),S(" ",a.data.dismissLabel,
" "))},NUa=function(a){if(a&1){var b=t();K(0,"button",7);N("click",function(){u(b);var c=P();return v(c.snackBarRef.dismiss())});M(1,"mat-icon",8);L()}},qo=function(){return new OUa},PUa=function(a){var b=1E3;b=b===void 0?150:b;var c,d=[];return function(e){d.push(e);c&&clearTimeout(c);c=setTimeout(function(){a(d);d=[];c=void 0},b)}},QUa=function(a){function b(){var e,f,g,k;return y(function(l){if(l.nextAddress==1){if(d||c.length===0)return l.return();d=!0;e=[].concat(q(c));c=[];f=m(e);g=f.next()}if(l.nextAddress!=
3){if(g.done)return d=!1,z(l,b(),0);k=g.value;return z(l,a.apply(null,q(k.args)).then(k.returnValue.resolve).catch(k.returnValue.reject),3)}g=f.next();return l.jumpTo(2)})}var c=[],d=!1;return function(){var e=$c.apply(0,arguments),f=new OUa;c.push({args:e,returnValue:f});b();return f.promise}},RUa=function(a){var b=!1;return function(){var c=$c.apply(0,arguments);if(!b)return b=!0,a.apply(null,q(c))}},SUa=function(a){var b=new Map;return function(){var c=$c.apply(0,arguments),d=c.map(String).join("-");
if(b.has(d))return b.get(d);c=a.apply(null,q(c));b.set(d,c);return c}},kUa=function(a){return a},so=function(a){return function(){var b=ro.getItem(a);if(b==null)return!1;try{return!!JSON.parse(b)}catch(c){return console.warn("getBooleanAt() JSON.parse("+a+") failed"),console.warn(c),!1}}},TUa=function(a){return function(b){b===!0?ro.setItem(a,"1"):ro.removeItem(a)}},UUa=function(a){return a&&typeof a==="object"&&"overrideUntilDate"in a&&"flagName"in a&&"value"in a?!0:!1},VUa=function(a){return{overrides:a.overrides.filter(function(b){return b.overrideUntilDate?
Date.parse(b.overrideUntilDate)>Date.now():!0})}},WUa=function(){console.warn("Local flag overrides only apply to the client runtime (TypeScript), and do not have an effect on any flag values on the Front End server or API.")},ZUa=function(){if(XUa("flag-overrides")()){var a=to("flag-overrides")();if(a&&typeof a==="object"&&"overrides"in a&&Array.isArray(a.overrides)&&a.overrides.every(UUa))return VUa(a);YUa();console.warn("Could not parse flag overrides.")}},YUa=function(){uo("flag-overrides")()},
$Ua=function(a,b){var c=new Date(Date.now()+864E5);c=c===void 0?null:c;WUa();var d,e=((d=ZUa())==null?void 0:d.overrides)||[];uo("flag-overrides")({overrides:[].concat(q(e.filter(function(f){return f.flagName!==a})),[{flagName:a,value:b,overrideUntilDate:c}])})},aVa=function(a,b){$Ua(a,b)},bVa=function(a){WUa();var b,c=((b=ZUa())==null?void 0:b.overrides)||[];uo("flag-overrides")({overrides:c.filter(function(d){return d.flagName!==a})})},eVa=function(a,b){b=b===void 0?Wn().config:b;var c=c===void 0?
cVa():c;if((c=c.get(a))!=null)a=c;else{var d;a=a in dVa?b.experimentState.getFlag(dVa[a]):(d=b.enabledFlags.get(a))!=null?d:!1}return a},gVa=function(){return function(a){return{response:a.getMutableResponse().getText(),citationResources:fVa(a.getMutableResponse())}}},fVa=function(a){return Bi(a,Ai,13,Ci()).filter(function(b){return Qi(b,hVa,6,Ri)}).flatMap(function(b){var c;return b==null?void 0:(c=km(b))==null?void 0:lm(c)}).map(function(b){var c,d,e,f;return{citationTitle:(c=b==null?void 0:b.getTitle())!=
null?c:"",url:(d=b==null?void 0:b.getUrl())!=null?d:"",iconUrl:(e=b==null?void 0:b.getIconUrl())!=null?e:"",isExternalDocument:(f=b==null?void 0:Fi(b,6))!=null?f:!1}})},iVa=function(a){var b;return{paths:(b=a==null?void 0:Cm(a,1,Ci(Jm)))!=null?b:[]}},kVa=function(a){if(jVa.has(a))switch(a){case "access_limit":break;case "assignee":return"assignee";case "blocked_by_issue_ids":return"blockedByIssueId";case "blocking_issue_ids":return"blockingIssueId";case "canonical_issue_id":return"duplicateOfIssueId";
case "ccs":return"ccs";case "collaborators":return"collaborators";case "child_issue_ids":break;case "code_changes":return"changelists";case "gerrit_changes":return"gerritChanges";case "component_id":return"componentId";case "custom_fields":return"customField";case "deletion_reason":return"deletionReason";case "duplicate_issue_ids":break;case "effort":return"effortEstimate";case "entity_status":break;case "found_in_versions":return"foundInVersion";case "hotlist_ids":return"hotlists";case "incidents":break;
case "in_prod":return"inProd";case "is_archived":return"isArchived";case "is_deleted":return"isDeleted";case "parent_issue_ids":return"parentId";case "staffing":return"staffing";case "staffing.planned_allocations":break;case "postmortems":break;case "priority":return"priority";case "retention":break;case "reporter":return"reporter";case "severity":return"severity";case "slo_snooze_until":return"sloStartTime";case "slo_end_time":return"sloEndTime";case "slo_snooze_type":return"sloSnoozeType";case "status":return"status";
case "targeted_to_versions":return"targetedToVersion";case "title":return"title";case "type":return"type";case "verifier":return"verifier";case "verified_in_versions":return"verifiedInVersion";default:wb(a)}},lVa=function(a){var b;return(b=a==null?void 0:Cm(a,1,Ci()).map(kVa).filter(Pm))!=null?b:[]},mVa=function(a){switch(a){case "assignee":return"assignee";case "attachments":break;case "blockedByIssueId":return"blocked_by_issue_ids";case "blockingIssueId":return"blocking_issue_ids";case "ccs":return"ccs";
case "changelists":return"code_changes";case "collaborators":return"collaborators";case "comment":break;case "componentId":return"component_id";case "customField":return"custom_fields";case "deletionReason":return"deletion_reason";case "duplicateOfIssueId":return"canonical_issue_id";case "effortEstimate":return"effort";case "foundInVersion":return"found_in_versions";case "gerritChanges":return"gerrit_changes";case "hotlists":return"hotlist_ids";case "inProd":return"in_prod";case "isArchived":return"is_archived";
case "isDeleted":return"is_deleted";case "parentId":return"parent_issue_ids";case "priority":return"priority";case "readState":break;case "reporter":return"reporter";case "severity":return"severity";case "sloEndTime":return"slo_end_time";case "sloSnoozeType":return"slo_snooze_type";case "sloStartTime":return"slo_snooze_until";case "staffing":return"staffing";case "status":return"status";case "targetedToVersion":return"targeted_to_versions";case "title":return"title";case "type":return"type";case "verifiedInVersion":return"verified_in_versions";
case "verifier":return"verifier";default:wb(a,"Unhandled IssueFieldName in fieldNameToMask")}},oVa=function(a){return a.type==="CUSTOM_FIELD"?[nVa[OSa[a.type]],a.customFieldId].join(":"):nVa[OSa[a.type]]},qVa=function(a){return a.includes(":")?(a=m(a.split(":")),a.next(),a=a.next().value,{type:"CUSTOM_FIELD",customFieldId:vo(a)}):{type:hSa[pVa[a]]}},rVa=function(a){var b;a==null?a=void 0:(a=Cm(a,1,Ci()),a=a==null?void 0:a.map(qVa));return(b=a)!=null?b:[]},sVa=function(a){var b=m(a.trim().split(" ")),
c=b.next().value;a=b.next().value;hj(b);b=qVa(c);c="DESCENDING";a==="asc"&&(c="ASCENDING");return{field:b,direction:c}},uVa=function(a){return a.map(tVa).join(",")},tVa=function(a){return oVa(a.field)+" "+(a.direction==="ASCENDING"?"asc":"desc")},vVa=function(a){return uVa(a.toLowerCase().split(",").map(function(b){return b.replace(":asc"," asc")}).map(function(b){return b.replace(":desc"," desc")}).map(function(b){return b.replace("custom_field.","custom_field:")}).map(function(b){return b.replace("collaborator_count",
"collaborators_count").replace("verified_in_version","verified_in_versions").replace("targeted_to_version","targeted_to_versions").replace("found_in_version","found_in_versions")}).map(sVa))},zo=function(a){switch(wo(a,xo)){case 0:throw Error("fd");case 1:return{user:Km(a.getUser())};case 2:return{group:Km(a.getGroup())};case 3:return{alias:yo(a,3,xo)};default:throw Error("gd");}},Co=function(a){var b=new Ao;aRa(a)&&b.setUser(Im(a.user));a.group!==void 0&&b.setGroup(Im(a.group));a.alias!==void 0&&
Bo(b,3,xo,a.alias);return b},wVa=function(a){var b=new Do;switch(a){case "ACCESS_LEVEL_UNSPECIFIED":b.setAccessLevel(0);break;case "LIMIT_NONE":b.setAccessLevel(1);break;case "LIMIT_VIEW":b.setAccessLevel(2);break;case "LIMIT_APPEND":b.setAccessLevel(3);break;case "LIMIT_VIEW_TRUSTED":b.setAccessLevel(4);break;default:throw Error("jd");}return b},xVa=function(a){switch(a.getAccessLevel()){case 0:return"ACCESS_LEVEL_UNSPECIFIED";case 1:return"LIMIT_NONE";case 2:return"LIMIT_VIEW";case 3:return"LIMIT_APPEND";
case 4:return"LIMIT_VIEW_TRUSTED";default:throw Error("jd");}},zVa=function(a){if(a)return a=a.getAccessLevel(),{accessLevel:yVa[a]}},BVa=function(a){return(new Eo).setAccessLevel(AVa[a.accessLevel])},DVa=function(a){if(a)return(a=X(a,Fo,1))?(a=a.getSeverity(),a={piiVerdict:a?{severity:CVa(a)}:{severity:"NONE_DETECTED"}}):a={piiVerdict:{severity:"NONE_DETECTED"}},a},CVa=function(a){switch(a){case 0:case 1:return"NONE_DETECTED";case 2:return"RESTRICTED";case 3:return"RESTRICTED_PLUS";default:throw Error("kd`"+
a);}},EVa=function(a){switch(a){case "RESTRICTION_SEVERITY_UNSPECIFIED":case "NONE_DETECTED":return 1;case "RESTRICTED":return 2;case "RESTRICTED_PLUS":return 3;default:throw Error("kd`"+a);}},FVa=function(a){var b=new Ho;b=Io(b,1,a.contentJudgementId).setResourcePath(a.resourcePath);var c=EVa(a.severity);b=Hm(b,3,c);b=Fm(b,4,a.judgementReason);a.judge&&(a=Im(a.judge),Mi(b,Em,9,a));return b},GVa=function(a){return{contentJudgementId:Ym(pn(a,1))?String(pn(a,1)):void 0,resourcePath:a.getResourcePath()||
void 0,severity:CVa(a.getRestrictionSeverity()),judgementReason:ui(a,4),judge:Km(X(a,Em,9))}},HVa=function(a){var b=new Ho;var c=EVa(a.severity);b=Hm(b,3,c);return Fm(b,4,a.judgementReason)},JVa=function(a){if(a){a:{var b=a.getStatus();switch(b){case 0:b="ACTIVE";break a;case 1:b="DELETED";break a;case 2:b="PURGED";break a;default:throw Error("ld`"+b);}}return{status:b,reason:IVa(a.getReason())}}},IVa=function(a){switch(a){case 0:return"UNSPECIFIED";case 1:return"USER_REQUEST";case 2:return"ABUSE";
case 3:return"RESTRICTED";case 4:return"RETENTION";case 5:return"ACCOUNT_CAPABILITIES";default:throw Error("md`"+a);}},KVa=function(a){switch(a){case "UNSPECIFIED":return 0;case "USER_REQUEST":return 1;case "ABUSE":return 2;case "RESTRICTED":return 3;case "RETENTION":return 4;case "ACCOUNT_CAPABILITIES":return 5;default:throw Error("md`"+a);}},LVa=function(a){if(a){var b=new Jo,c=b.setStatus;a:{var d=a.status;switch(d){case "ACTIVE":d=0;break a;case "DELETED":d=1;break a;case "PURGED":d=2;break a;
default:throw Error("ld`"+d);}}return c.call(b,d).setReason(KVa(a.reason))}},MVa=function(a){switch(a){case "DELETION_REASON_UNSPECIFIED":return"UNSPECIFIED";case "USER_REQUEST":return"USER_REQUEST";case "ABUSE":return"ABUSE";case "RESTRICTED":return"RESTRICTED";case "RETENTION":return"RETENTION";case "ACCOUNT_CAPABILITIES":return"ACCOUNT_CAPABILITIES";default:throw Error("md`"+a);}},NVa=function(a){if(a!=null){var b,c;return{retentionPeriod:(b=HRa(a.getRetentionPeriod()))!=null?b:null,scheduledDeletionTime:(c=
bn(X(a,Si,2)))!=null?c:null}}},OVa=function(a){var b=new Ko;if(a.retentionPeriod){var c=GRa(a.retentionPeriod);Mi(b,dn,1,c)}a.scheduledDeletionTime&&(a=cn(a.scheduledDeletionTime),Mi(b,Si,2,a));return b},QVa=function(a){var b=wi(a,1);b=PVa[b];var c=Bm(a,2),d=wi(a,3);return{retentionSelection:b,retentionPeriodDays:c,piiRetentionSelection:PVa[d],piiRetentionPeriodDays:Bm(a,4),spiiRetentionPeriodDays:Bm(a,5)}},SVa=function(a){var b=new Lo;b=Hm(b,1,RVa[a.retentionSelection]);b=an(b,2,a.retentionPeriodDays);
b=Hm(b,3,RVa[a.piiRetentionSelection]);b=an(b,4,a.piiRetentionPeriodDays);return an(b,5,a.spiiRetentionPeriodDays)},TVa=function(a){switch(a){case 0:return"RETENTION_UNSPECIFIED";case 1:return"COMPONENT_DEFAULT";case 2:return"INDEFINITE";default:throw Error("nd`"+a);}},UVa=function(a){switch(a){case "RETENTION_UNSPECIFIED":return 0;case "COMPONENT_DEFAULT":return 1;case "INDEFINITE":return 2;default:throw Error("nd`"+a);}},WVa=function(a){var b=Nm(a.getAttachmentId_asString());var c=a.getFilename();
var d=Ym(a.getLength())||void 0,e=ui(a,2);c=c&&e?{filename:c,length:d,contentType:e}:void 0;return{attachmentId:b,media:c,contentType:ui(a,2),filename:a.getFilename(),length:Ym(a.getLength()),etag:VVa(a.getEtag())||"",contentVerdict:DVa(a.getContentVerdict()),entityStatus:JVa(a.getEntityStatus()),piiRetentionState:NVa(a.getRestrictedRetentionState()),piiRetention:TVa(a.getRestrictedRetention())}},YVa=function(a){var b=new Mo;var c=new XVa;a=Yba(a);c=No(c,2,a);return Mi(b,XVa,5,c).setEntityStatus(LVa({status:"ACTIVE",
reason:"UNSPECIFIED"}))},ZVa=function(a){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(a.type)},$Va=function(a){switch(a){case "TYPE_UNSPECIFIED":return"Unknown";case "TEXT":return"Text";case "DATE":return"Date";case "ENUM":return"Enum";case "NUMERIC":return"Numeric";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"Unknown"}},
bWa=function(a){if(a!=null)return{customFieldId:Om(Lm(Ym(a.getCustomFieldId()))),standardField:aWa[wi(a,Hi(a,Oo,2))]}},dWa=function(a){var b=new Po;a.customFieldId?b.setCustomFieldId(a.customFieldId):a.standardField&&Qo(b,2,Oo,zca(cWa[a.standardField]));return b},eWa=function(a){if(a){var b=Lm(Ym(a.getCustomFieldId()));if(b==null)Xm("No customFieldId. customFieldValueToJs");else{b={customFieldId:b,displayValues:Bi(a,El,11,Ci()).map(function(C){return sh(vEa(C)).toString()})};switch(a.getValueCase()){case 2:b.textValue=
Om(yo(a,2,Ro));break;case 3:b.dateValue=ERa(a.getDateValue());break;case 4:b.enumValue=Om(yo(a,4,Ro));break;case 5:b.numericValue=Om(em(a,Hi(a,Ro,5)));break;case 6:var c,d;b.repeatedTextValue={values:(d=(c=bm(a,So,6,Ro))==null?void 0:c.getValuesList(Jm))!=null?d:[]};break;case 8:var e,f;b.repeatedEnumValue={values:(f=(e=bm(a,So,8,Ro))==null?void 0:e.getValuesList(Jm))!=null?f:[]};break;case 9:var g,k;b.repeatedNumericValue={values:(k=(g=bm(a,To,9,Ro))==null?void 0:g.getValuesList(Jm))!=null?k:[]};
break;case 7:var l,r,w,x;b.repeatedDateValue={values:(x=(l=bm(a,Uo,7,Ro))==null?void 0:(r=l.getValuesList())==null?void 0:(w=r.map(ERa))==null?void 0:w.filter(Pm))!=null?x:[]}}return b}}},gWa=function(a){var b=(new Vo).setCustomFieldId(a.customFieldId);a.textValue!=null?Bo(b,2,Ro,a.textValue):a.dateValue!=null?(a=FRa(a.dateValue),Wo(b,3,Ro,a)):a.enumValue!=null?Bo(b,4,Ro,a.enumValue):a.numericValue!=null?fWa(b,5,Ro,a.numericValue):a.repeatedTextValue!=null?(a=(new So).setValuesList(a.repeatedTextValue.values),
Wo(b,6,Ro,a)):a.repeatedEnumValue!=null?(a=(new So).setValuesList(a.repeatedEnumValue.values),Wo(b,8,Ro,a)):a.repeatedNumericValue!=null?(a=(new To).setValuesList(a.repeatedNumericValue.values),Wo(b,9,Ro,a)):a.repeatedDateValue!=null&&(a=(new Uo).setValuesList(a.repeatedDateValue.values.map(FRa)),Wo(b,7,Ro,a));return b},jWa=function(a){var b=Ym(a.getCustomFieldId()),c=hWa[a.getType()],d=!!Fi(a,4),e=a.getName(),f=a.getDescription()||"",g=eWa(X(a,Vo,10));var k=Cm(a,8,Ci(Jm));b={customFieldId:b,type:c,
required:d,name:e,description:f,typedDefaultValue:g,allowedValue:k,fieldSignificance:iWa[wi(a,9)],shared:a.getShared(),stateOnIssues:"INHERIT",enabledOnIssues:!0};Ym(a.getComponentId())&&(b.componentId=a.getComponentId_asString());return b},kWa=function(a){return jWa(a)},nWa=function(a){var b=new Xo;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));b.setComponentId(String(a.componentId));b.setType(lWa[a.type]);Yo(b,4,a.required);b.setName(a.name);b.setDescription(a.description);if(a.typedDefaultValue){var c=
gWa(a.typedDefaultValue);Mi(b,Vo,10,c)}a.allowedValue&&Gm(b,8,a.allowedValue);a.fieldSignificance&&b.setFieldSignificance(mWa[a.fieldSignificance]);b.setShared(a.shared);return b},oWa=function(a){return{specId:Ym(pn(a,1)),estimate:ui(a,2),averageDays:em(a,3),totalOpen:em(a,4),totalComplete:em(a,5)}},vWa=function(a){var b=new Zo;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&&pWa(b,qWa(new rWa,a.numericSpec.multiplier));
if(a.enumSpec){var c;sWa(b,tWa(new uWa,((c=a.enumSpec.options)!=null?c:[]).map(function(d){return(new $o).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}Hm(b,6,a)}return b},ep=function(a){var b=void 0,c=a.getContentVerdict();c&&(b=DVa(c));c=void 0;var d=a.getFormattedComment();d&&(c=ap(d));d=void 0;var e=X(a,Em,3);e&&(d=Km(e));e=void 0;var f=a.getEtag();f&&(e=VVa(f));f=void 0;var g=a.getEntityStatus();
g&&(f=JVa(g));g=void 0;var k=a.getRestrictedRetentionState();k&&(g=NVa(k));return{issueId:String(a.getIssueId()),commentNumber:a.getCommentNumber(),commentContentVerdict:b,formattingMode:wWa(a.getFormattingMode()),formattedComment:c,lastEditorUser:d,lastModified:fn(a.getModifiedTime()),version:a.getVersion(),unlinkifiedComment:a.getComment(),entityStatus:f,piiRetentionState:g,piiRetention:TVa(a.getRestrictedRetention()),redacted:Fi(a,13),etag:e,commentReactions:xWa(X(a,bp,17))}},ap=function(a){if(Qi(a,
yWa,1,fp)){var b=bm(a,yWa,1,fp);var c;b={plainSection:((c=Bi(b,gp,1,Ci()))!=null?c:[]).map(zWa)}}else b=void 0;c=b;b=Qi(a,hp,2,fp)?AWa(bm(a,hp,2,fp)):void 0;Qi(a,ip,3,fp)?(a=bm(a,ip,3,fp),a={content:vEa(a.getContent())}):a=void 0;return{plainFormat:c,markdownFormat:b,literalFormat:a}},CWa=function(a){var b=new jp;if(a.plainFormat){var c=a.plainFormat;var d=new yWa;c=c.plainSection.map(BWa);d=Ni(d,1,c);Wo(b,1,fp,d)}a.markdownFormat&&(d=a.markdownFormat,d=(new hp).setContent(uEa(d.content)),Wo(b,2,
fp,d));a.literalFormat&&(a=a.literalFormat,a=(new ip).setContent(uEa(a.content)),Wo(b,3,fp,a));return b},zWa=function(a){return{isQuoted:Fi(a,1),content:vEa(a.getContent())}},BWa=function(a){var b=new gp;return Yo(b,1,a.isQuoted).setContent(uEa(a.content))},AWa=function(a){return{content:vEa(a.getContent())}},wWa=function(a){switch(a){case 0:case 1:return"PLAIN";case 2:return"MARKDOWN";case 3:return"LITERAL";default:throw Error("od`"+a);}},kp=function(a){switch(a){case "PLAIN":return 1;case "MARKDOWN":return 2;
case "LITERAL":return 3;case void 0:case null:case "UNSPECIFIED_FORMATTING_MODE":return 1;default:throw Error("od`"+a);}},xWa=function(a){var b,c;a==null?c=void 0:c=Bi(a,lp,2,Ci());a=(b=c)!=null?b:[];b=new Map;a=m(a);for(c=a.next();!c.done;c=a.next()){c=c.value;a:{var d=c.getType();switch(d){case 0:d="REACTION_TYPE_UNSPECIFIED";break a;case 1:d="UPVOTE";break a;default:throw Error("pd`"+d);}}var e=void 0,f=void 0,g=void 0,k=void 0,l=(f=Fi(c,1))!=null?f:!1;f=(g=Ym(c.getCount()))!=null?g:0;c=Bi(c,Em,
3,Ci());c={type:d,hasReacted:l,count:f,recentResponders:(k=(e=c)==null?void 0:e.map(Km).filter(Pm))!=null?k:[]};b.set(d,c)}return b},DWa=function(a){return a.map(function(b){return X(b,Em,1)}).filter(Pm).map(Km).map(function(b){return{mentionedUser:b}})},EWa=function(a){switch(a){case 1:return"BUG";case 3:return"CUSTOMER_ISSUE";case 2:return"FEATURE_REQUEST";case 4:return"INTERNAL_CLEANUP";case 5:return"PROCESS";case 6:return"VULNERABILITY";case 7:return"PRIVACY_ISSUE";case 10:return"PROJECT";case 11:return"FEATURE";
case 12:return"MILESTONE";case 13:return"EPIC";case 14:return"STORY";case 15:return"TASK";case 8:return"TYPE_UNSPECIFIED";case 9:return"PROGRAM";case 0:return"TYPE_UNSPECIFIED";default:return"TYPE_UNSPECIFIED"}},FWa=function(a){switch(a){case "BUG":return 1;case "CUSTOMER_ISSUE":return 3;case "FEATURE_REQUEST":return 2;case "INTERNAL_CLEANUP":return 4;case "PROCESS":return 5;case "VULNERABILITY":return 6;case "PRIVACY_ISSUE":return 7;case "PROJECT":return 10;case "FEATURE":return 11;case "MILESTONE":return 12;
case "EPIC":return 13;case "STORY":return 14;case "TASK":return 15;case "PROGRAM":return 9;case "TYPE_UNSPECIFIED":return 0;default:return 0}},HWa=function(a){var b=bn(a.getStartTime()),c=bn(X(a,Si,3)),d=bn(a.getEndTime()),e=HRa(a.getObjective()),f=a.getBusinessDays();a=a.getDayType();return{startTime:b,targetTime:c,endTime:d,objective:e,businessDays:f,dayType:GWa[a]}},JWa=function(a){var b=new mp;a.startTime&&b.setStartTime(cn(a.startTime));if(a.targetTime){var c=cn(a.targetTime);Mi(b,Si,3,c)}a.endTime&&
b.setEndTime(cn(a.endTime));a.objective&&b.setObjective(GRa(a.objective));a.businessDays&&b.setBusinessDays(a.businessDays);a.dayType&&b.setDayType(IWa[a.dayType]);return b},LWa=function(a){var b=(new np).setInherit(a.inherit).setSource(KWa[a.source]).setComment(a.comment);a.id&&b.setId(a.id);a.sourceComponentId&&Io(b,6,a.sourceComponentId);a.sourceTeamId&&b.setSourceTeamId(a.sourceTeamId);return b},NWa=function(a){return{author:Km(a.getAuthor()),timestamp:bn(a.getTimestamp()),add:MWa(a.getAdd()),
remove:MWa(a.getRemove()),addMask:iVa(a.getAddMask()),removeMask:iVa(a.getRemoveMask())}},MWa=function(a){var b=a.getSloId_asString(),c=a.getName(),d=a.getDescription(),e=tn(a,2);var f=Bi(a,op,5,Ci());f=(f!=null?f:[]).map(OWa);var g=Bi(a,op,6,Ci());g=(g!=null?g:[]).map(OWa);var k=a.getIsArchived();a:switch(a=wi(a,8),a){case 0:a="OFF";break a;case 1:a="OFF";break a;case 2:a="ON";break a;default:throw Error("qd`"+a);}return{sloId:b,name:c,description:d,parentId:e,elements:f,effectiveElements:g,isArchived:k,
alertState:a}},OWa=function(a){var b=PWa(a.getMetric()),c=ui(a,2);a:{var d=a.getDayType();switch(d){case 0:d="CALENDAR";break a;case 1:d="CALENDAR";break a;case 2:d="BUSINESS";break a;default:throw Error("sd`"+d);}}return{metric:b,matcher:c,dayType:d,objective:HRa(a.getObjective()),businessDays:a.getBusinessDays()}},PWa=function(a){switch(a){case 0:return"METRIC_UNSPECIFIED";case 1:return"ASSIGNMENT";case 2:return"RESPONSE";case 3:return"CLOSURE";default:throw Error("rd`"+a);}},RWa=function(a){var b=
new op;var c=QWa(a.metric);b=Hm(b,1,c);b=Fm(b,2,a.matcher);c=b.setDayType;a:{var d=a.dayType;switch(d){case "DAY_TYPE_UNSPECIFIED":d=0;break a;case "CALENDAR":d=1;break a;case "BUSINESS":d=2;break a;default:throw Error("sd`"+d);}}return c.call(b,d).setObjective(GRa(a.objective)).setBusinessDays(a.businessDays)},QWa=function(a){switch(a){case "METRIC_UNSPECIFIED":return 0;case "ASSIGNMENT":return 1;case "RESPONSE":return 2;case "CLOSURE":return 3;default:throw Error("td`"+a);}},SWa=function(a){switch(a){case "SWE":return 1;
case "SRE":return 2;case "PM":return 3;case "TPGM":return 4;case "UX":return 5;case "UXD":return 6;case "UXR":return 7;case "DATASCI":return 8;case "LD":return 9;case "DEVREL":return 10;case "TW":return 11;case "GTM":return 12;case "CE":return 13;case "OTHER":return 14;default:return 0}},TWa=function(a){switch(a){case "HIGH":return 1;case "MEDIUM":return 2;case "LOW":return 3;default:return 4}},WWa=function(a){var b=new pp;if(a.user){var c=b.setUser,d=a.user,e=(new UWa).setUser(Im(d.user));d.isLead&&
e.setIsLead(!0);d.role&&e.setRole(SWa(d.role));c=c.call(b,e);a=a.allocation;d=new VWa;d=qp(d,3,a.aggregationValue);a.involvement&&Qo(d,1,rp,zca(TWa(a.involvement)));a.percentage!==void 0&&fWa(d,2,rp,a.percentage);a.startDate&&(e=FRa(a.startDate),Mi(d,$m,4,e));a.endDate&&(a=FRa(a.endDate),Mi(d,$m,5,a));Mi(c,VWa,3,d)}else a.placeholder&&(c=a.placeholder,c=(new sp).setRole(SWa(c.role)).setCount(c.count),Wo(b,2,tp,c));return b},XWa=function(a){var b=new up;a=a.plannedAllocations.map(WWa);return Ni(b,
1,a)},YWa=function(a){switch(a){case 1:return"HIGH";case 2:return"MEDIUM";case 3:return"LOW";default:return"ZERO"}},ZWa=function(a){switch(a){case 1:return"SWE";case 2:return"SRE";case 3:return"PM";case 4:return"TPGM";case 5:return"UX";case 6:return"UXD";case 7:return"UXR";case 8:return"DATASCI";case 9:return"LD";case 10:return"DEVREL";case 11:return"TW";case 12:return"GTM";case 13:return"CE";case 14:return"OTHER";default:return"JOB_ROLE_UNSPECIFIED"}},aXa=function(a){if(a.hasUser()){var b=a.getUser(),
c=ZWa(b.getRole());var d={user:Km(b.getUser())};b.getIsLead()&&(d.isLead=!0);c!=="JOB_ROLE_UNSPECIFIED"&&(d.role=c);a=X(a,VWa,3);b={aggregationValue:em(a,3)};c=Hi(a,rp,1);vp(a,c)!=null&&(b.involvement=YWa(wi(a,Hi(a,rp,1))));$Wa(a,rp)&&(b.percentage=em(a,Hi(a,rp,2)));xi(a,$m,4)&&(b.startDate=ERa(a.getStartDate()));xi(a,$m,5)&&(b.endDate=ERa(X(a,$m,5)));d={user:d,allocation:b}}else Qi(a,sp,2,tp)?(d=a.getPlaceholder(),d={placeholder:{role:ZWa(d.getRole()),count:d.getCount()}}):d={};return d},bXa=function(a){return{plannedAllocations:Bi(a,
pp,1,Ci()).map(aXa)}},cXa=function(a){return{issueId:String(a.getIssueId()),updateText:ui(a,2),formattedText:xi(a,jp,3)?ap(X(a,jp,3)):void 0,formattingMode:a.getFormattingMode()?wWa(a.getFormattingMode()):"PLAIN",author:a.hasAuthor()?Km(a.getAuthor()):void 0,updateTime:a.hasUpdateTime()?Om(bn(a.getUpdateTime())):void 0,version:a.getVersion()}},dXa=function(a){var b=(new wp).setFormattingMode(kp(a.formattingMode));a.issueId&&b.setIssueId(a.issueId);a.updateText&&Fm(b,2,a.updateText);if(a.formattedText){var c=
CWa(a.formattedText);Mi(b,jp,3,c)}a.author&&b.setAuthor(Im(a.author));a.updateTime&&b.setUpdateTime(cn(a.updateTime));a.version&&b.setVersion(a.version);return b},jXa=function(a){var b=a.getAccessLimit(),c=eXa[wi(a,30)],d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,na,ua,ia,Ga,ha,sa,xa,Qa;return{componentId:Nm(a.getComponentId_asString())||null,type:a.getType()?EWa(a.getType()):null,status:a.getStatus()?xp[a.getStatus()]:null,priority:a.getPriority()?yp[a.getPriority()]:null,severity:a.getSeverity()?fXa[a.getSeverity()]:
null,title:a.getTitle(),reporterUser:a.getReporter()?Km(a.getReporter()):null,assigneeUser:a.getAssignee()?Km(a.getAssignee()):null,verifierUser:a.getVerifier()?Km(a.getVerifier()):null,ccUsers:(x=(d=a.getCcsList())==null?void 0:d.map(Km))!=null?x:[],collaboratorsUsers:(C=(e=a.getCollaboratorsList())==null?void 0:e.map(Km))!=null?C:[],staffing:a.getStaffing()?bXa(a.getStaffing()):null,duplicateOfIssueId:a.getCanonicalIssueId_asString()!=="0"?a.getCanonicalIssueId_asString():null,blockedByIssueId:(H=
(f=a.getBlockedByIssueIdsList_asString())==null?void 0:f.filter(function(bb){return bb!=="0"}))!=null?H:[],blockingIssueId:(J=(g=a.getBlockingIssueIdsList_asString())==null?void 0:g.filter(function(bb){return bb!=="0"}))!=null?J:[],hotlistId:(O=(k=a.getHotlistIdsList_asString())==null?void 0:k.map(Lm).filter(Pm))!=null?O:[],customField:(R=(l=a.getCustomFieldsList())==null?void 0:l.map(eWa).filter(Pm))!=null?R:[],changelist:(V=a.getCodeChangesList(Jm))!=null?V:[],gerritChanges:(ca=a.getGerritChangesList().map(gXa))!=
null?ca:[],foundInVersion:(na=Cm(a,17,Ci(Jm)))!=null?na:[],targetedToVersion:(ua=Cm(a,18,Ci(Jm)))!=null?ua:[],verifiedInVersion:(ia=Cm(a,19,Ci(Jm)))!=null?ia:[],inProd:a.getInProd(),isArchived:a.getIsArchived(),duplicateIssueId:(Ga=(r=a.getDuplicateIssueIdsList_asString())==null?void 0:r.filter(function(bb){return bb!=="0"}))!=null?Ga:[],isDeleted:a.getIsDeleted(),deletionReason:hXa[wi(a,24)],sloStartTime:(ha=bn(a.getSloSnoozeUntil()))!=null?ha:null,sloEndTime:(sa=bn(a.getSloEndTime()))!=null?sa:
null,sloSnoozeType:c==="SLO_SNOOZE_TYPE_UNSPECIFIED"?null:c,incidents:(xa=(w=Cm(a,37,Ci()))==null?void 0:w.filter(Pm))!=null?xa:[],postmortems:(Qa=Cm(a,27,Ci(Jm)))!=null?Qa:[],retention:iXa[a.getRetention()],effort:a.hasEffort()?oWa(a.getEffort()):void 0,issueAccessLimitLevel:b!=null?xVa(b):null,comment:"",formattingMode:void 0}},qXa=function(a){var b=new zp;a.componentId&&b.setComponentId(a.componentId);a.title&&b.setTitle(a.title);a.type!=null&&b.setType(FWa(a.type));a.inProd!=null&&b.setInProd(a.inProd);
a.isArchived!=null&&b.setIsArchived(a.isArchived);a.status!=null&&b.setStatus(kXa[a.status]);a.priority!=null&&b.setPriority(lXa[a.priority]);a.severity!=null&&b.setSeverity(mXa[a.severity]);a.reporterUser&&b.setReporter(Im(a.reporterUser));a.assigneeUser&&b.setAssignee(Im(a.assigneeUser));a.verifierUser&&b.setVerifier(Im(a.verifierUser));a.ccUsers&&b.setCcsList(a.ccUsers.map(Im));a.collaboratorsUsers&&b.setCollaboratorsList(a.collaboratorsUsers.map(Im));a.staffing&&b.setStaffing(XWa(a.staffing));
a.duplicateOfIssueId&&b.setCanonicalIssueId(Number(a.duplicateOfIssueId));a.blockedByIssueId&&b.setBlockedByIssueIdsList(a.blockedByIssueId.map(Number));a.blockingIssueId&&b.setBlockingIssueIdsList(a.blockingIssueId.map(Number));a.hotlistId&&b.setHotlistIdsList(a.hotlistId);a.customField&&b.setCustomFieldsList(a.customField.map(gWa));a.changelist&&b.setCodeChangesList(a.changelist);a.gerritChanges&&b.setGerritChangesList(a.gerritChanges.map(nXa));a.foundInVersion&&Gm(b,17,a.foundInVersion);a.targetedToVersion&&
Gm(b,18,a.targetedToVersion);a.verifiedInVersion&&Gm(b,19,a.verifiedInVersion);a.duplicateIssueId&&b.setDuplicateIssueIdsList(a.duplicateIssueId.map(Number));a.isDeleted!=null&&b.setIsDeleted(a.isDeleted);a.deletionReason!=null&&b.setDeletionReason(oXa[a.deletionReason]);a.sloStartTime&&b.setSloSnoozeUntil(cn(a.sloStartTime));a.sloEndTime&&b.setSloEndTime(cn(a.sloEndTime));a.sloSnoozeType!=null&&b.setSloSnoozeType(pXa[a.sloSnoozeType]);a.retention!=null&&b.setRetention(UVa(a.retention));if(a.effort){var c=
b.setEffort,d=a.effort,e=new Ap;d.specId&&Io(e,1,d.specId);d.estimate&&Fm(e,2,d.estimate);d.averageDays&&qp(e,3,d.averageDays);d.totalOpen&&qp(e,4,d.totalOpen);d.totalComplete&&qp(e,5,d.totalComplete);c.call(b,e)}a.issueAccessLimitLevel&&b.setAccessLimit(wVa(a.issueAccessLimitLevel));return b},gXa=function(a){var b={host:ui(a,1),repo:ui(a,2),changeNumber:a.getChangeNumber_asLegacyNumberOrString(),state:rXa[a.getState()]};ui(a,5)&&(b.branch=ui(a,5));return b},nXa=function(a){var b=new Bp;b=Fm(b,1,
a.host);b=Fm(b,2,a.repo).setChangeNumber(a.changeNumber).setState(sXa[a.state]);a.branch&&Fm(b,5,a.branch);return b},tXa=function(a){return{oneDayViewCount:Cp(a,1),sevenDayViewCount:Cp(a,2),thirtyDayViewCount:Cp(a,3)}},vXa=function(a){if(a){var b=Fi(a,2);b=b==null?null:b;var c=Fi(a,1);return{voted:b,starred:c==null?null:c,notificationSubscription:uXa[wi(a,4)],lastViewedTimeMicros:fn(X(a,Si,5))}}},wXa=function(a){if(a){var b=void 0,c=a.getSloStatus();c&&(b={assignmentBounds:(c==null?0:xi(c,mp,1))?
HWa(X(c,mp,1)):void 0,responseBounds:(c==null?0:xi(c,mp,2))?HWa(X(c,mp,2)):void 0,closureBounds:(c==null?0:xi(c,mp,3))?HWa(X(c,mp,3)):void 0});c=void 0;var d=X(a,Em,14);d&&(c=Km(d));var e;return{voteCount:(e=Cp(a,10))!=null?e:0,createdTimeMicros:fn(a.getCreatedTime()),resolvedTimeMicros:fn(a.getResolvedTime()),verifiedTimeMicros:fn(a.getVerifiedTime()),modifiedTimeMicros:fn(a.getModifiedTime()),sloId:Lm(a.getSloId_asLegacyNumberOrString()),teamId:Nm(a.getTeamId_asLegacyNumberOrString()),retentionState:NVa(a.getRetentionState()),
sloStatus:b,lastModifier:c}}},AXa=function(a){switch(wo(a,xXa)){case 2:var b=bm(a,yXa,2,xXa);return b.getCommentNumber()!==0?{type:"issueReference",issueId:b.getIssueId_asString(),commentNumber:b.getCommentNumber(),sourceCommentNumber:Bm(a,3)}:{type:"issueReference",issueId:b.getIssueId_asString(),sourceCommentNumber:Bm(a,3)};case 1:return b=bm(a,zXa,1,xXa),{type:"hyperlink",href:ui(b,1),sourceCommentNumber:Bm(a,3)};case 0:throw Error("ud");default:throw Error("vd");}},Dp=function(a){var b=a.getIssueState()?
[jXa(a.getIssueState())]:[],c,d;return{issueId:a.getIssueId_asString(),version:a.getVersion(),snapshot:b,userData:vXa(a.getUserData()),aggregatedData:wXa(a),accessLimit:zVa(a.getAccessLimit()),customFields:a.getCustomFieldsList().map(jWa),visibleFields:Bi(a,Po,34,Ci()).map(bWa).filter(Pm),majorModifiedTimeMicros:fn(a.getMajorModifiedTime()),parentIssueIds:a.getParentIssueIdsList_asString().filter(function(e){return e!=="0"}),descendantCount:(c=a.getDescendantIssueCount())!=null?c:0,openDescendantCount:(d=
a.getOpenDescendantIssueCount())!=null?d:0,isArchived:a.getIsArchived(),trackerId:Nm(a.getTrackerId_asString()),userActivityStats:X(a,BXa,47)&&tXa(X(a,BXa,47)),escalationOwner:a.getEscalationOwner()?Km(a.getEscalationOwner()):void 0}},DXa=function(a){for(var b=new Map,c=m(a.getAncestorsMap().entries()),d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;b.set(String(d),{sourceIssueIds:e.getSourceIssueIdsList_asString().filter(function(f){return f!=="0"})})}c=Dp(a);return Object.assign({},
c,{description:a.hasDescription()?ep(a.getDescription()):void 0,ancestors:b,childIssueCount:a.getChildIssueCount(),relatedLinks:Bi(a,CXa,41,Ci()).map(AXa),statusUpdate:a.hasStatusUpdate()?cXa(a.getStatusUpdate()):void 0})},EXa=function(a){var b,c,d,e,f,g=(new Ep).setHotlistId(a.hotlistId).setName(a.name).setDescription(a.description).setArchived(a.archived).setDefaultOrderBy(uVa((d=a.sortOrder)!=null?d:[]));d=g.setDisplayPreferences;var k=new Fp,l=(e=(b=a.displayColumn)==null?void 0:b.map(oVa))!=
null?e:[];b=Gm(k,1,l);g=d.call(g,b).setCreatedTime(en(a.createdTimeMicros)).setModifiedTime(en(a.modifiedTimeMicros)).setOwnersList((f=(c=a.adminUsers)==null?void 0:c.map(Im))!=null?f:[]);a.etag!==void 0&&(c=g.setEtag,a=a.etag,a=a.length?new Za(Waa(a,!0),$a):Ya(),c.call(g,a));return g},FXa=function(a){if(!Ym(a.getHotlistId()))throw Error("wd");if(!a.getName())throw Error("xd");if(!a.getCreatedTime())throw Error("yd");if(!a.getModifiedTime())throw Error("zd");var b,c,d,e;return{hotlistId:Ym(a.getHotlistId()),
name:a.getName(),description:(c=a.getDescription())!=null?c:"",archived:(d=a.getArchived())!=null?d:!1,createdTimeMicros:fn(a.getCreatedTime()),modifiedTimeMicros:fn(a.getModifiedTime()),displayColumn:rVa(a.getDisplayPreferences()),sortOrder:a.getDefaultOrderBy().split(",").filter(Boolean).map(sVa),etag:VVa(a.getEtag())||void 0,adminUsers:(e=(b=a.getOwnersList())==null?void 0:b.map(Km))!=null?e:[]}},GXa=function(a){return{issueId:a.getIssueId_asString(),position:a.getPosition(),issue:Dp(a.getIssue())}},
HXa=function(a){var b=Bi(a,Gp,1,Ci()).map(GXa),c=new Map(b.map(function(d){return[d.issueId,d.position]}));return{issues:b.map(function(d){return d.issue}),numTotalResults:a.getTotalSize(),positionMap:Object.fromEntries(c),nextPageToken:a.getNextPageToken(),totalSizeAccurate:a.getTotalSizeAccurate(),maySkipResults:a.getMaySkipResults()}},JXa=function(a){return IXa[a]},OXa=function(a){var b=void 0;switch(a.getContentCase()){case 9:b={recommendedIssue:Dp(bm(a,Hp,9,Ip))};break;case 10:b={recommendedHotlist:FXa(bm(a,
Ep,10,Ip))};break;case 12:var c=a.getIssueModification();b={issueModification:{addState:c.getAdd()?jXa(c.getAdd()):void 0,addMask:lVa(c.getAddMask()),removeState:c.getRemove()?jXa(c.getRemove()):void 0,removeMask:lVa(c.getRemoveMask()),comment:c.getComment()?ep(c.getComment()):void 0}};break;case 11:var d=bm(a,KXa,11,Ip);c={name:d.getName(),entries:d.getEntriesList().map(LXa)};if(d=X(d,Hp,2))c.recommendedCanonicalIssue=Dp(d);b={issueDeduplicationBatch:c}}c=a.getName();d=a.getSource();var e=a.getResource();
var f=a.getType();f=MXa[f];var g=a.getRecommendation(),k=a.getScore();var l=a.getConfidence();l=NXa[l];var r=bn(a.getCreateTime());a.getRationale()?(a=a.getRationale(),a={text:a.getText(),formattingMode:wWa(a.getFormattingMode()),formattedText:xi(a,jp,3)?ap(X(a,jp,3)):void 0,createTime:bn(a.getCreateTime())}):a=void 0;return{name:c,source:d,resource:e,type:f,recommendation:g,score:k,confidence:l,createTime:r,content:b,rationale:a}},SXa=function(a){var b=(new Jp).setName(a.name).setSource(a.source).setResource(a.resource).setType(IXa[a.type]).setRecommendation(a.recommendation).setScore(a.score).setConfidence(PXa[a.confidence]).setCreateTime(cn(a.createTime));
if(a.rationale){var c=b.setRationale,d=a.rationale,e=(new QXa).setText(d.text).setFormattingMode(kp(d.formattingMode)).setCreateTime(cn(d.createTime));d.formattedText&&(d=CWa(d.formattedText),Mi(e,jp,3,d));c.call(b,e)}var f;((f=a.content)==null?0:f.issueModification)&&b.setIssueModification(RXa(a.content.issueModification));return b},RXa=function(a){var b=new TXa;if(a.addState!==void 0){b.setAdd(qXa(a.addState));var c=b.getMutableAddMask(),d=a.addMask.map(mVa).filter(Pm);Gm(c,1,d)}a.removeState!==
void 0&&(b.setRemove(qXa(a.removeState)),c=b.getMutableRemoveMask(),d=a.removeMask.map(mVa).filter(Pm),Gm(c,1,d));if(a.comment!==void 0){c=b.setComment;d=a.comment;a=(new Kp).setIssueId(d.issueId).setCommentNumber(d.commentNumber).setVersion(d.version).setFormattingMode(kp(d.formattingMode)).setComment(d.unlinkifiedComment).setModifiedTime(en(d.lastModified));a=Yo(a,13,d.redacted).setEtag(d.etag);if(d.commentContentVerdict){var e=a.setContentVerdict;var f=d.commentContentVerdict;if(f!=null&&f.piiVerdict){var g=
new Lp;f=(new Fo).setSeverity(EVa(f.piiVerdict.severity));g=Mi(g,Fo,1,f)}else g=void 0;e.call(a,g)}d.formattedComment&&a.setFormattedComment(CWa(d.formattedComment));d.lastEditorUser&&(e=Im(d.lastEditorUser),Mi(a,Em,3,e));d.entityStatus&&a.setEntityStatus(LVa(d.entityStatus));d.piiRetention&&a.setRestrictedRetention(UVa(d.piiRetention));d.piiRetentionState&&a.setRestrictedRetentionState(OVa(d.piiRetentionState));if(d.commentReactions){e=d.commentReactions;d=new bp;e=m(e.entries());for(g=e.next();!g.done;g=
e.next()){f=m(g.value);g=f.next().value;var k=f.next().value;f=g;g=k;k=new lp;var l=k.setType;a:switch(f){case "REACTION_TYPE_UNSPECIFIED":f=0;break a;case "UPVOTE":f=1;break a;default:throw Error("pd`"+f);}f=l.call(k,f);f=Yo(f,1,g.hasReacted).setCount(g.count);g=g.recentResponders.map(Im);g=Mp(f,3,Em,g);Np(d,2,lp,g)}Mi(a,bp,17,d)}c.call(b,a)}return b},XXa=function(a){var b=(new UXa).setParent(a.parent);a=a.userEngagement;var c=(new Op).setType(VXa[a.type]);a.rejectionReason!==void 0&&Hm(c,3,WXa[a.rejectionReason]);
a.issueModification!==void 0&&c.setIssueModification(RXa(a.issueModification));return Mi(b,Op,2,c)},YXa=function(a){return{recommendations:a.getRecommendationsList().map(OXa),nextPageToken:a.getNextPageToken(),totalSize:Ym(a.getTotalSize())}},ZXa=function(a){return{recommendations:a.getRecommendationsList().map(OXa)}},$Xa=function(a){return{recommendations:a.getRecommendationsList().map(OXa)}},bYa=function(a){var b=(new aYa).setRecommendationsList(a.recommendations.map(SXa));a.parent&&b.setParent(a.parent);
a.resource&&b.setResource(a.resource);a.type&&b.setType(IXa[a.type]);return b},LXa=function(a){return{issue:Dp(a.getIssue()),recommendation:a.getRecommendation()}},cYa=function(a){var b;return((b=a.error)==null?void 0:b.message)!==void 0},Pp=function(a){return!!a&&Oa(a)&&(!!a.data&&a.data.message!==void 0||cYa(a))},Qp=function(a){return a.data&&a.data.message!==void 0&&a.data&&a.data.message?a.data.message:cYa(a)&&a.error&&a.error.message?a.error.message:""},dYa=function(a){if(a)return{status:xp[a.getStatus()],
issueIds:a.getIssueIdsList().map(Ym).map(Mm).filter(Pm)}},eYa=function(a){if(a)return{priority:yp[a.getPriority()],issueIds:a.getIssueIdsList().map(Ym).map(Mm).filter(Pm)}},fYa=function(){},gYa=function(a){return Object.values(a).length>0},hYa=function(a,b){a.next(Object.freeze(Object.assign({},a.getValue(),b)))},iYa=function(a,b){var c=a.getValue();c=Object.assign({},c);b=(delete c[b],c);a.next(Object.freeze(b))},jYa=function(a,b){var c=a.getValue(),d={};c=m(Object.entries(c));for(var e=c.next();!e.done;e=
c.next()){var f=m(e.value);e=f.next().value;f=f.next().value;b.includes(e)||(d[e]=f)}a.next(Object.freeze(d))},kYa=function(a){var b=Object.assign({},a);a=a.ids;b=(delete b.ids,b);a&&(b.ids=[].concat(q(a)).sort());return JSON.stringify(b)},lYa=function(a,b,c){c=a.get(b)||c;a.has(b)||a.set(b,c);return c},mYa=function(a){a=a===void 0?{}:a;return NQa(a)},nYa=function(a){var b=new qf,c=a.subscribe(b);a=fe(b);a.finally(function(){c.unsubscribe()});return a},oYa=function(a){return a==null?new Promise(function(){}):
Promise.resolve(a)},pYa=function(a){switch(a){case "RESTRICTED":return 2;case "RESTRICTED_PLUS":return 3;case "NONE_DETECTED":return 1;case "RESTRICTION_SEVERITY_UNSPECIFIED":return 0;default:return wb(a,"Unexpected pii severity")}},Rp=function(a){return a&&a.piiVerdict?a.piiVerdict.severity:"NONE_DETECTED"},qYa=function(a){switch(a){case "RESTRICTED":return"Restricted";case "RESTRICTED_PLUS":return"Restricted+";default:return""}},rYa=function(a){return GVa(a.getIt())},Sp=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,"+")},sYa=function(a){return{name:a.getName(),displayName:a.getDisplayName(),description:a.getDescription()}},wYa=function(a){var b={issueId:a.getIssueId_asString(),category:a.getCategory(),author:Km(a.getAuthor()),timestamp:bn(a.getTimestamp())},c=a.getContentCase();switch(c){case 3:a=bm(a,tYa,3,uYa);b.general={content:a.getContent(),
formattedContent:ap(a.getFormattedContent())};break;case 4:a=bm(a,vYa,4,uYa);b.similarIssues={issueIds:a.getIssueIdsList_asString()};break;case 5:a=a.getSummary();b.summary={content:a.getContent(),formattedContent:ap(a.getFormattedContent())};break;default:throw Error("Md`"+c);}return b},xYa=function(a){var b={issueId:a.getIssueId_asString(),attachmentId:a.getAttachmentId_asString(),category:a.getCategory(),content:a.getContent(),formattedContent:ap(a.getFormattedContent()),author:Km(a.getAuthor()),
timestamp:bn(a.getTimestamp()),contentVerdict:DVa(a.getContentVerdict())};ui(a,9)&&(b.customDisplayName=ui(a,9));return b},zYa=function(a){var b=(new Tp).setIssueId(a.issueId).setCategory(a.category).setFeedbackType(yYa[a.feedbackType]);a.attachmentId&&b.setAttachmentId(a.attachmentId);return b},AYa=function(a){var b;return{searchId:a.getSavedSearchId_asString(),name:a.getName(),description:a.getDescription(),query:a.getQuery(),sortOrder:a.getDefaultOrderBy().split(",").filter(Boolean).map(sVa),displayColumn:rVa(a.getDisplayPreferences()),
adminUsers:((b=a.getOwnersList())!=null?b:[]).map(Km)}},BYa=function(a){var b,c,d=(new Up).setSavedSearchId(Number(a.searchId)).setName(a.name).setDescription(a.description).setQuery(a.query).setDefaultOrderBy(uVa((b=a.sortOrder)!=null?b:[]));b=d.setDisplayPreferences;var e=(c=a.displayColumn)!=null?c:[];c=new Fp;e=e.map(oVa);c=Gm(c,1,e);return b.call(d,c).setOwnersList(a.adminUsers.map(Im))},DYa=function(a){switch(wo(a,Vp)){case 1:var b=a.getHotlist(),c=(b==null?0:b.getHotlist())?FXa(b.getHotlist()):
void 0,d;b=(d=Zm(b==null?void 0:b.getHotlistId()))!=null?d:0;var e;return{hotlistId:b,hotlist:c,name:(e=c==null?void 0:c.name)!=null?e:"Hotlist "+b,resourceType:"HOTLIST"};case 2:return e=a.getSavedSearch(),d=(e==null?0:e.getSavedSearch())?AYa(e.getSavedSearch()):void 0,e=(e==null?0:e.getSavedSearchId())?e.getSavedSearchId_asString():"",{savedSearchId:e,savedSearch:d,name:(c=d==null?void 0:d.name)!=null?c:"Saved search "+e,resourceType:"SAVED_SEARCH"};case 3:d=a.getBookmarkGroup();e=(d==null?0:d.getBookmarkGroup())?
CYa(d.getBookmarkGroup()):void 0;var f;return{bookmarkGroupId:(b=d==null?void 0:d.getBookmarkGroupId_asString())!=null?b:"",bookmarkGroup:e,name:(f=e==null?void 0:e.name)!=null?f:"",resourceType:"BOOKMARK_GROUP"};default:throw Error("Nd");}},FYa=function(a){switch(a.resourceType){case "HOTLIST":var b=(new Wp).setHotlistId(a.hotlistId);a.hotlist&&b.setHotlist(EXa(a.hotlist));return(new Xp).setHotlist(b);case "SAVED_SEARCH":return b=new Yp,a.savedSearchId&&b.setSavedSearchId(Number(a.savedSearchId)),
a.savedSearch&&b.setSavedSearch(BYa(a.savedSearch)),(new Xp).setSavedSearch(b);case "BOOKMARK_GROUP":return b=(new Zp).setBookmarkGroupId(Number(a.bookmarkGroupId)),a.bookmarkGroup&&b.setBookmarkGroup(EYa(a.bookmarkGroup)),(new Xp).setBookmarkGroup(b);default:wb(a.resourceType,"Unexpected resourceType in bookmarkItemToItProto")}},CYa=function(a){var b=a.getArchived(),c=a.getBookmarkGroupId_asString(),d=a.getDescription();var e=Bi(a,Xp,5,Ci());return{archived:b,bookmarkGroupId:c,description:d,item:e.map(DYa),
name:a.getName(),adminUsers:a.getOwnersList().map(Km)}},EYa=function(a){var b,c=(new $p).setBookmarkGroupId(Number(a.bookmarkGroupId)).setName(a.name).setDescription(a.description).setArchived(a.archived),d=(b=a.item.map(FYa))!=null?b:[];return Ni(c,5,d).setOwnersList(a.adminUsers.map(Im))},GYa=function(a){switch(a.resourceType){case "HOTLIST":return(new Xp).setHotlist((new Wp).setHotlistId(a.resourceId));case "SAVED_SEARCH":var b=new Yp;a.resourceId&&b.setSavedSearchId(Number(a.resourceId));return(new Xp).setSavedSearch(b);
case "BOOKMARK_GROUP":return(new Xp).setBookmarkGroup((new Zp).setBookmarkGroupId(Number(a.resourceId)));default:wb(a.resourceType,"Unexpected resourceType in bookmarkItemForUpdateToItProto")}},HYa=function(a){a=CYa(a).item;a=ITa(a,function(k){return k.resourceType});var b,c,d,e,f,g;return{bookmarkGroups:(e=(b=a.get("BOOKMARK_GROUP"))==null?void 0:b.map(function(k){return k.bookmarkGroup}).filter(Pm))!=null?e:[],hotlists:(f=(c=a.get("HOTLIST"))==null?void 0:c.map(function(k){return k.hotlist}).filter(Pm))!=
null?f:[],savedSearches:(g=(d=a.get("SAVED_SEARCH"))==null?void 0:d.map(function(k){return k.savedSearch}).filter(Pm))!=null?g:[]}},IYa=function(a){return CYa(a.getIt())},JYa=function(a){a=Bi(a,$p,2,Ci(),jb);return(a!=null?a:[]).map(CYa)},KYa=function(a){a=Dm(a,1,Ci(Jm),jb);return{changelistNumbers:a!=null?a:[]}},NYa=function(a){return{changelists:Bi(a,LYa,1,Ci(),jb).map(MYa),nextPageToken:a.getNextPageToken()}},MYa=function(a){var b,c;return{author:a.getAuthor(),changelistNumber:a.getChangelistNumber(),
pending:a.getPending(),timestamp:bn(a.getTimestamp()),issueIds:(b=a.getIssueIdsList_asString())!=null?b:[],fixedIssueIds:(c=Qm(a,6))!=null?c:[]}},OYa=function(a){var b=a.getAuthor(),c=a.getDescription(),d=a.getPending(),e=Ym(a.getTimestamp());a=Cm(a,5,Ci(Jm),jb);return{author:b,description:c,pending:d,timestamp:e,affectedFiles:a!=null?a:[]}},PYa=function(a){if(a)return zVa(a.getIt())},QYa=function(a){var b=Cm(a,1,Ci(Jm),jb);a=Cm(a,2,Ci(Jm),jb);return{noAccessEmails:b,unknownEmails:a}},RYa=function(a){var b=
a.getIt();a=Bi(b,Ao,2,Ci()).map(zo);var c=b.getAppendersList().map(zo),d=Bi(b,Ao,4,Ci()).map(zo),e=b.getReadersList().map(zo),f=Bi(b,Ao,11,Ci()).map(zo),g=Bi(b,Ao,12,Ci()).map(zo),k=Bi(b,Ao,3,Ci()).map(zo),l=Bi(b,Ao,7,Ci()).map(zo),r=Bi(b,Ao,5,Ci()).map(zo),w=Bi(b,Ao,9,Ci()).map(zo);a:switch(wi(b,10)){case 0:b="IMPLICIT_ACCESS_UNSPECIFIED";break a;case 1:b="ALLOW";break a;case 2:b="DENY";break a;default:throw Error("hd");}return{admins:a,appenders:c,editors:d,readers:e,restrictedReaders:f,restrictedPlusReaders:g,
inheritedAdmins:k,implicitAppenders:l,implicitEditors:r,implicitReaders:w,implicitAccess:b}},TYa=function(a,b){b=b===void 0?document.documentElement:b;return me(ne(function(){return ce(b.querySelector(a))}),SYa(b,{childList:!0,subtree:!0}).pipe(ue(function(c){return c.some(function(d){return d.addedNodes.length>0})}),A(function(){return b.querySelector(a)}))).pipe(ue(Pm),lf(1),A(function(c){return c}))},SYa=function(a,b){return new Td(function(c){var d=new MutationObserver(function(e){c.next(e)});
d.observe(a,b);return function(){d.disconnect()}})},aq=function(a,b){return function(c){if(c.target instanceof HTMLElement){var d=c.target.closest(a);d&&c.currentTarget.contains(d)&&b(c,d)}}},UYa=function(a){a=a.target;for(var b=[];a.parentNode;){var c=void 0,d=a,e=[];for(c in d.dataset)d.dataset[c]==="true"&&e.push(c);c=e;b.unshift(a.tagName+(c.length>0?"["+c.join(",")+"]":""));a=a.parentNode}return b.join(" > ")},VYa=function(a){var b={};a=m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=
m(c.value);c=d.next().value;d=d.next().value;d!=null&&(b[c]=String(d))}b=new URLSearchParams(b);return String(b)},bq=function(a){return a.ctrlKey||a.metaKey||a instanceof MouseEvent&&a.button===1},dq=function(a,b){switch(a){case "HOTLIST":return"hotlists/"+b;case "BOOKMARK_GROUP":return"bookmarkGroups/"+b;case "SAVED_SEARCH":return"savedSearches/"+b;case "COMPONENT":return"components/"+b;case "COMPONENT_SLO":return"components/"+b+"/slo";case "ISSUE":return cq(b);case "ISSUE_DEFAULTS":return"components/"+
b+"/issueDefaults";case "SLO":return"slos/"+b;case "TEAM":return"teams/"+b;case "TEAM_SLO":return"teams/"+b+"/slo";default:throw Error("Pd`"+a);}},XYa=function(a){var b=bWa(a.getFieldId()),c=wi(a,4);return{fieldId:b,stateOnIssues:WYa[c],enabledOnIssues:Fi(a,5)}},$Ya=function(a){var b,c,d;return{name:a.getName(),componentId:Nm(a.getComponentId_asString()),issueTypes:new Set((d=(b=bm(a,YYa,5,ZYa))==null?void 0:(c=wn(b,1,Ci()))==null?void 0:c.map(EWa))!=null?d:[]),customFieldConfigs:new Map(Bi(a,eq,
3,Ci()).map(function(e){return[Ym(e.getFieldId().getCustomFieldId()),e.getState()===2]}))}},eZa=function(a){var b=aZa((new fq).setComponentId(a.componentId).setName(a.name),Array.from(a.customFieldConfigs,function(c){var d=m(c);c=d.next().value;d=d.next().value;return(new eq).setFieldId(dWa({customFieldId:c})).setState(d?2:1)}));a=[].concat(q(a.issueTypes));a.length>0?bZa(b,cZa(new YYa,a.map(FWa))):dZa(b);return b},hZa=function(a){var b=X(a,gq,7),c,d=(c=b==null?void 0:b.getSlo())!=null?c:new hq,e;
c=a.getId_asString();var f=(e=b==null?void 0:b.getVersion())!=null?e:0;e=a.getName();var g=a.getDescription(),k=[].concat(q(a.getPathNamesList())),l=a.getPathIdsList_asString(),r=[],w=r.concat;var x=Cm(a,5,Ci());r=w.call(r,q(x));w=a.getMembersList().map(fZa);a=Fi(a,9);d={inherit:d.getInherit(),sloId:d.getId_asString(),comment:d.getComment(),sourceTeamId:d.getSourceTeamId_asString()};if(b){x=b==null?void 0:b.getEscalationOwner();var C=b==null?void 0:b.getDefaultEscalationOwner();switch(b==null?void 0:
wo(b,gZa)){case 9:b=Km(bm(b,Em,9,gZa));break;case 10:b={emailAddress:"",obfuscatedEmailAddress:"",userGaiaStatus:"UNSPECIFIED",aliases:[]};break;default:b=void 0}b={escalationOwner:x?Km(x):void 0,defaultEscalationOwner:C?Km(C):void 0,escalationOwnerOverride:b}}else b=void 0;return{teamId:c,version:f,name:e,description:g,pathNames:k,pathIds:l,collapsedPathNames:r,members:w,deleted:a,slo:d,extra:b}},fZa=function(a){var b=a.getUser();return{user:b?Km(b):{},isLead:a.getIsLead()}},jZa=function(a){return(new iZa).setIsLead(a.isLead).setUser(Im(a.user))},
kZa=function(a){var b=new hq;b.setInherit(a.inherit).setId(Number(a.sloId)).setComment(a.comment).setSourceTeamId(Number(a.sourceTeamId));return b},lZa=function(a){return(new iq).setInherit(a.inherit).setId(a.id)},mZa=function(a){var b=a.getTeamId();b=b==null?null:String(b);return{teamId:b!=null?b:"",score:a.getScore()}},oZa=function(a){return(new nZa).setTeamId(Number(a.teamId)).setScore(a.score)},qZa=function(a){var b=Bi(a,pZa,4,Ci()).map(XYa);b=new Map(b.map(function(g){return[g.fieldId.customFieldId,
g]}));var c,d,e=(d=(c=Bi(a,Xo,5,Ci()))==null?void 0:c.map(kWa))!=null?d:[];c=m(e);for(d=c.next();!d.done;d=c.next()){d=d.value;var f=b.get(d.customFieldId);f&&(d.enabledOnIssues=f.enabledOnIssues,d.stateOnIssues=f.stateOnIssues)}d=a.getFieldConfigsV2List().map($Ya);c=new Map;d=m(d);for(f=d.next();!f.done;f=d.next())f=f.value,f.componentId&&(c.has(f.componentId)||c.set(f.componentId,[]),c.get(f.componentId).push(f));return{componentPathId:Qm(a,1).map(Nm).filter(Pm),componentPathName:Cm(a,2,Ci(Jm)),
allCustomField:e,fieldConfigsMap:b,fieldConfigsV2Map:c}},rZa=function(a){switch(a){case "ALL_PROTECTIONS":return 2;case "NO_PROTECTIONS":return 1;case "SPAM_PROTECTION_UNSPECIFIED":return 0;default:return 0}},uZa=function(a){var b=xi(a,Lo,15)?QVa(X(a,Lo,15)):void 0,c=xi(a,jq,7)?qZa(X(a,jq,7)):void 0;if(a.hasSlo()){var d=a.getSlo();var e=d.getInherit(),f=d.getSource();d={inherit:e,source:sZa[f],id:Nm(d.getId_asString()),sourceComponentId:Nm(tn(d,6)),sourceTeamId:Nm(d.getSourceTeamId_asString()),comment:d.getComment()}}else d=
void 0;var g;if(xi(a,Zo,18)){f=a.getEffortSpec();e=f.getInherit();var k=Ym(f.getId()),l=f.getName();a:switch(wi(f,6)){case 2:var r="MAX";break a;case 1:r="SUM";break a;default:r="AGGREGATION_TYPE_UNSPECIFIED"}e={inherit:e,id:k,name:l,aggregationType:r,customFieldId:Ym(f.getCustomFieldId())};if(Qi(f,rWa,4,kq)){if(g=bm(f,rWa,4,kq))e.numericSpec={multiplier:em(g,1)}}else if(Qi(f,uWa,5,kq)&&(f=bm(f,uWa,5,kq),e.enumSpec={options:[]},f&&(f==null?void 0:(g=Bi(f,$o,1,Ci()))==null?void 0:g.length)>0))for(g=
m(Bi(f,$o,1,Ci())),f=g.next();!f.done;f=g.next())f=f.value,l=k=void 0,(k=e.enumSpec)==null||(l=k.options)==null||l.push({label:f.getLabel(),value:f.getValue()});g=e}else g=void 0;a.hasTeam()?(e=a.getTeam(),e={inherit:e.getInherit(),id:e.getId_asString()}):e=void 0;f=zVa(a.getAccessLimit());k=wi(a,21);k=k===2?"ALL_PROTECTIONS":k===1?"NO_PROTECTIONS":"SPAM_PROTECTION_UNSPECIFIED";l=Ym(a.getTrackerId())?a.getTrackerId_asString():void 0;r=a.getComponentId_asString();var w,x,C=Nm(tn(a,3)),H=a.getName(),
J=a.getDescription(),O=a.getIsArchived(),R="buganizer-system+"+a.getComponentId()+"@google.com";var V=wi(a,10)===1?"ENABLED":"DISABLED";var ca=Ym(pn(a,6)),na=Lm(ca);if(na==null)throw Error("Qd`"+ca);ca=wi(a,17);return{componentId:r==="0"?"":r,parentComponentId:C,name:H,description:J,archived:O,componentPathInfo:c,accessLimit:f,emailAlias:R,commentEditState:V,defaultTemplateId:na,slo:d,retentionSettings:b,fieldOrdering:tZa[ca],effortSpec:g,team:e,teamSuggestions:(x=(w=a.getTeamSuggestionsList())==
null?void 0:w.map(mZa))!=null?x:[],trackerId:l==="0"?void 0:l,spamProtection:k}},vZa=function(a){return{author:Km(a.getAuthor()),timestamp:bn(a.getTimestamp()),add:uZa(a.getAdd()),remove:uZa(a.getRemove()),addMask:iVa(a.getAddMask()),removeMask:iVa(a.getRemoveMask())}},xZa=function(a){a=a.getIt();var b;return{updates:((b=Bi(a,wZa,1,Ci()))!=null?b:[]).map(vZa)}},lq=function(a){return uZa(a.getIt())},yZa=function(a){var b=new mq;b=Io(b,3,a.parentComponentId).setName(a.name).setDescription(a.description);
a.commentEditState&&b.setCommentEditState(a.commentEditState==="ENABLED"?1:2);a.retentionSettings&&(a=SVa(a.retentionSettings),Mi(b,Lo,15,a));return(new nq).setIt(b)},zZa=function(a){var b;return((b=a.getComponentsList())!=null?b:[]).map(lq)},AZa=function(a){return{warningHeader:ui(a,1,void 0,jb),warning:ui(a,2,void 0,jb),isAllowed:Fi(a,3,void 0,jb),isExternalMove:Fi(a,4,void 0,jb)}},CZa=function(a){a=a.getIt();var b=jXa(a.getIssueState());a.getComment()&&(b.comment=a.getComment());a.getFormattingMode()&&
(b.formattingMode=BZa[a.getFormattingMode()]);return{componentId:Nm(a.getComponentId_asString()),templateId:Ym(a.getTemplateId()),name:a.getName(),description:a.getDescription(),default:Fi(a,9),inheritable:Fi(a,10),snapshot:b}},EZa=function(a){var b=new oq,c=b.setIt;var d=(new DZa).setFormattingMode(kp(a.snapshot.formattingMode)).setComment(a.snapshot.comment).setComponentId(a.componentId).setTemplateId(a.templateId).setName(a.name).setDescription(a.description);d=Yo(d,9,a.default);a=Yo(d,10,a.inheritable).setIssueState(qXa(a.snapshot));
return c.call(b,a)},FZa=function(a){a=Bi(a,nq,1,Ci(),jb);return(a!=null?a:[]).map(lq)},GZa=function(a){var b,c;return((c=(b=a.getIt())==null?void 0:b.getComponentsList())!=null?c:[]).map(uZa)},HZa=function(a){return{componentPath:a.getComponentPath(),retentionSettings:QVa(X(a,Lo,3))}},JZa=function(a){return Bi(a,IZa,2,Ci(),jb).map(HZa)},KZa=function(a){return CZa(X(a,oq,1,jb))},LZa=function(a){return(Bi(a,oq,1,Ci(),jb)||[]).map(CZa)},MZa=function(a){return(new pq).setIt(EXa(a))},qq=function(a){return FXa(a.getIt())},
OZa=function(a){a=X(a,NZa,1,jb);return DYa(a.getIt())},PZa=function(a){return AYa(a.getIt())},QZa=function(a){return PZa(a.getSearch())},RZa=function(a){return Bi(a,rq,1,Ci(),jb).map(PZa)},tq=function(a){return sq(a,kUa)},sq=function(a,b){var c={};return a.filter(function(d){d=String(b(d));return c[d]?!1:c[d]=!0})},SZa=function(a){return function(b){return sq(b,a)}},TZa=function(a,b){return a.map(function(c,d){return[c,b[d]]})},UZa=function(a,b){var c=a===void 0?[]:a;a=b===void 0?[]:b;if(c.length===
0)return a;b=a.filter(function(d){return!c.includes(d)});return b.length===a.length?a:b},VZa=function(a,b){return a===b?!0:a.length!==b.length?!1:a.every(function(c,d){return c===b[d]})},WZa=function(a,b){a=[].concat(q(a)).sort();b=[].concat(q(b)).sort();return VZa(a,b)},XZa=function(a,b){if(a.length===0)return b;b=b.slice();b=UZa(a,b);return[].concat(q(a),q(b))},YZa=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)})}},
ZZa=function(a,b){a=ITa(a,b);return[].concat(q(a.values()))},$Za=function(a){for(var b=[],c=0;c<a.length;c+=100)b.push(a.slice(c,c+100));return b},a_a=function(a){var b=a.reduce(function(c,d){c[d]=~~c[d]+1;return c},{});return Object.keys(b).sort(function(c,d){return b[d]-b[c]})},b_a=function(a){return{id:String(a.hotlistId),name:a.name,description:a.description,adminUsers:a.adminUsers,starred:!0,resourceType:"HOTLIST"}},c_a=function(a){switch(a.resourceType){case "HOTLIST":var b,c,d,e;return{id:String(a.hotlistId),
name:a.name,description:(d=(b=a.hotlist)==null?void 0:b.description)!=null?d:"",adminUsers:(e=(c=a.hotlist)==null?void 0:c.adminUsers)!=null?e:[],starred:!0,resourceType:"HOTLIST"};case "SAVED_SEARCH":var f,g,k,l;return{id:String(a.savedSearchId),name:a.name,description:(k=(f=a.savedSearch)==null?void 0:f.description)!=null?k:"",adminUsers:(l=(g=a.savedSearch)==null?void 0:g.adminUsers)!=null?l:[],starred:!0,resourceType:"SAVED_SEARCH"};case "BOOKMARK_GROUP":throw Error("Wd");default:wb(a.resourceType,
"Unexpected type in bookmarkItemToLink")}},d_a=function(a){return{id:String(a.bookmarkGroupId),name:a.name,description:a.description,adminUsers:a.adminUsers,starred:!0,sublinks:a.item.filter(function(b){var c;return!((c=b.hotlist)==null?0:c.archived)}).map(c_a)}},h_a=function(a,b,c){var d=new Map,e=new Map,f=new Map,g=new Map,k=new Map;b=m(b);for(var l=b.next();!l.done;l=b.next())l=l.value,l.archived?e.set(l.bookmarkGroupId,l):d.set(l.bookmarkGroupId,l);b=[].concat(q(d.values())).flatMap(function(r){var w;
return(w=r.item)!=null?w:[]});b=new Set(b.filter(function(r){return r.resourceType==="HOTLIST"}).map(function(r){return r.hotlistId}));a=m(a);for(l=a.next();!l.done;l=a.next())l=l.value,b.has(l.hotlistId)||(l.archived?g.set(l.hotlistId,b_a(l)):f.set(l.hotlistId,b_a(l)));c=m(c);for(a=c.next();!a.done;a=c.next())a=a.value,k.set(a.searchId,{id:String(a.searchId),name:a.name,description:a.description,adminUsers:a.adminUsers,starred:!0,resourceType:"SAVED_SEARCH"});return{id:"current-user-bookmark-id",
bookmarkGroups:e_a([].concat(q(d.values())).map(d_a)),archivedBookmarkGroups:e_a([].concat(q(e.values())).map(d_a)),hotlists:f_a(f.values()),archivedHotlists:f_a(g.values()),savedSearches:g_a(k.values())}},i_a=function(a,b){var c=new Set(b.hotlists.map(function(k){return k.hotlistId})),d=new Set(b.bookmarkGroups.map(function(k){return k.bookmarkGroupId}));b=new Set(b.savedSearches.map(function(k){return k.searchId}));for(var e=m([].concat(q(a.hotlists),q(a.archivedHotlists))),f=e.next();!f.done;f=
e.next())f=f.value,f.starred=c.has(Number(f.id));e=m([].concat(q(a.bookmarkGroups),q(a.archivedBookmarkGroups)));for(f=e.next();!f.done;f=e.next()){f=f.value;f.starred=d.has(f.id);var g=void 0;f=m((g=f.sublinks)!=null?g:[]);for(g=f.next();!g.done;g=f.next())switch(g=g.value,g.resourceType){case "HOTLIST":g.starred=c.has(Number(g.id));break;case "SAVED_SEARCH":g.starred=b.has(g.id);break;case "BOOKMARK_GROUP":g.starred=d.has(g.id);break;default:throw Error("Xd");}}c=m(a.savedSearches);for(d=c.next();!d.done;d=
c.next())d=d.value,d.starred=b.has(d.id);return a},j_a=function(a){return jWa(a.getIt())},l_a=function(a){return(new k_a).setIt(nWa(a))},m_a=function(a){a=a.getIt();return{customFields:a.getCustomFieldsList().map(jWa),nextPageToken:a.getNextPageToken(),totalSize:a.getTotalSize()}},p_a=function(a){var b,c=(b=X(a,uq,2,jb))==null?void 0:wi(b,1),d;b=(d=X(a,uq,2,jb))==null?void 0:wi(d,4);var e,f,g,k;d=a.getId_asString();c={phase:c!=null?n_a[c]:"UNSPECIFIED",subphase:b!=null?o_a[b]:"TRIAGE_SUBPHASE_UNSPECIFIED",
triagerEmail:(g=(e=X(a,uq,2,jb))==null?void 0:ui(e,3))!=null?g:void 0,dismissed:(k=bn((f=X(a,uq,2,jb))==null?void 0:X(f,Si,5)))!=null?k:void 0};a=Cm(a,4,Ci(),jb);return{id:d,triage:c,clusterIds:a}},s_a=function(a){var b=new uq;b=Gn(b,1,q_a[a.triage.phase]);b=Gn(b,4,r_a[a.triage.subphase]);b=oj(b,3,a.triage.triagerEmail);if(a.triage.dismissed){var c=cn(a.triage.dismissed);Mi(b,Si,5,c)}b=(new vq).setId(a.id).setTriage(b);return wq(b,4,a.clusterIds,jb)},w_a=function(a){var b=a.getId_asString();if(b&&
b!=="0"){var c={id:0},d=Bi(a,xq,2,Ci(),jb).map(function(f){var g,k,l,r,w;return{scope:(k=f.getScope())!=null?k:void 0,showComponentColumn:(l=Fi(f,2))!=null?l:!1,config:Bi(f,t_a,3,Ci()).map(u_a)||[],id:(r=Ym(f.getId()))!=null?r:0,displayName:f.getDisplayName()||void 0,displayColumns:(w=(g=f.getDisplayColumns())==null?void 0:g.getColumnList().map(MRa).filter(Pm))!=null?w:[]}});d.length===0&&d.push(c);var e;return{id:b,triage:d,playbooks:(e=Bi(a,yq,3,Ci(),jb).map(v_a))!=null?e:[]}}},v_a=function(a){var b,
c,d;return{name:(b=a.getName())!=null?b:void 0,instructions:(c=ui(a,2))!=null?c:void 0,searchQuery:(d=ui(a,3))!=null?d:void 0}},x_a=function(a){var b,c,d,e=(new yq).setName((b=a.name)!=null?b:"");b=(c=a.instructions)!=null?c:"";c=oj(e,2,b);a=(d=a.searchQuery)!=null?d:"";return oj(c,3,a)},u_a=function(a){switch(wo(a,y_a)){case 1:return{type:"CUSTOM_FIELD",customFieldConfig:z_a(bm(a,zq,1,y_a))};case 2:return{type:"HOTLIST",hotlistConfig:A_a(bm(a,B_a,2,y_a))};default:throw Error("Yd");}},G_a=function(a){var b=
new t_a;if(a.type==="CUSTOM_FIELD"&&a.customFieldConfig)a=C_a(a.customFieldConfig),Wo(b,1,y_a,a);else if(a.type==="HOTLIST"&&a.hotlistConfig){a=a.hotlistConfig;var c=(new B_a).setHotlistIdsList(a.hotlistIds);a=Gn(c,2,D_a[a.operation]).setPhasesList(E_a(a.phases)).setSubphasesList(F_a(a.subphases));Wo(b,2,y_a,a)}return b},z_a=function(a){var b,c=(b=Bi(a,H_a,2,Ci()).map(function(d){return{phases:d.getPhasesList().map(function(e){return n_a[e]}),subphases:d.getSubphasesList().map(function(e){return o_a[e]}),
value:eWa(d.getValue())}}))!=null?b:[];return{customFieldId:a.getCustomFieldId_asString(),defaultValues:c}},C_a=function(a){var b=(new zq).setCustomFieldId(a.customFieldId);a=a.defaultValues.map(function(c){return(new H_a).setPhasesList(E_a(c.phases)).setSubphasesList(F_a(c.subphases)).setValue(gWa(c.value))});Ni(b,2,a);return b},A_a=function(a){return{hotlistIds:a.getHotlistIdsList_asString(),operation:I_a[wi(a,2)],phases:a.getPhasesList().map(function(b){return n_a[b]}),subphases:a.getSubphasesList().map(function(b){return o_a[b]})}},
E_a=function(a){var b;return(b=a==null?void 0:a.map(function(c){return q_a[c]}))!=null?b:[]},F_a=function(a){var b;return(b=a==null?void 0:a.map(function(c){return r_a[c]}))!=null?b:[]},J_a=function(a){var b=new xq;a.scope&&b.setScope(a.scope);var c;Oi(b,2,a.showComponentColumn).setId(a.id).setDisplayName(a.displayName).setDisplayColumns(ySa({column:(c=a.displayColumns)!=null?c:[]}));a.config&&(a=a.config.map(G_a),Mp(b,3,t_a,a));return b},K_a=function(a){a==="[Deleted User]"&&(a="nobody@google.com");
a.includes("@")||(a+="@google.com");var b=new Em;return Fm(b,1,a)},L_a=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean).map(K_a))!=null?b:[]},Aq=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean).map(Lm).filter(Pm))!=null?b:[]},Bq=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean))!=null?b:[]},N_a=function(a){var b=new Set,c=new Set,d=new zp,e=new zp;a=m(a);for(var f=a.next();!f.done;f=a.next())switch(f=f.value,f.fieldName){case "assignee":f.value?
(d.setAssignee(K_a(f.value)),b.add("assignee")):(e.setAssignee(new Em),c.add("assignee"));break;case "attachments":break;case "blockedByIssueId":f.actionType==="ADD"?(d.addAllBlockedByIssueIds(Aq(f.value)),b.add("blocked_by_issue_ids")):(e.addAllBlockedByIssueIds(Aq(f.value)),c.add("blocked_by_issue_ids"));break;case "blockingIssueId":f.actionType==="ADD"?(d.addAllBlockingIssueIds(Aq(f.value)),b.add("blocking_issue_ids")):(e.addAllBlockingIssueIds(Aq(f.value)),c.add("blocking_issue_ids"));break;case "ccs":f.actionType===
"ADD"?(d.addAllCcs(L_a(f.value)),b.add("ccs")):(e.addAllCcs(L_a(f.value)),c.add("ccs"));break;case "changelists":f.actionType==="ADD"?(d.addAllCodeChanges(Bq(f.value)),b.add("code_changes")):(e.addAllCodeChanges(Bq(f.value)),c.add("code_changes"));break;case "collaborators":f.actionType==="ADD"?(d.addAllCollaborators(L_a(f.value)),b.add("collaborators")):(e.addAllCollaborators(L_a(f.value)),c.add("collaborators"));break;case "staffing":if(!f.staffingValue)break;f.actionType==="ADD"?(d.setStaffing(XWa(f.staffingValue)),
b.add("staffing")):(e.setStaffing(XWa(f.staffingValue)),c.add("staffing"));break;case "comment":break;case "componentId":d.setComponentId(Lm(f.value));b.add("component_id");break;case "customField":if(!f.customFieldValue)break;var g=gWa(f.customFieldValue);f.actionType==="ADD"?(d.addCustomFields(g),b.add("custom_fields")):(e.addCustomFields(g),c.add("custom_fields"));break;case "deletionReason":f.value!=null?(d.setDeletionReason(oXa[f.value]),b.add("deletion_reason")):(e.setDeletionReason(2),c.add("deletion_reason"));
break;case "duplicateOfIssueId":(f=Lm(f.value))?(d.setCanonicalIssueId(f),b.add("canonical_issue_id")):c.add("canonical_issue_id");break;case "effortEstimate":f.value?(g=new Ap,f=Fm(g,2,f.value),d.setEffort(f),b.add("effort")):(e.setEffort(new Ap),c.add("effort"));break;case "foundInVersion":f.actionType==="ADD"?(g=d,f=Bq(f.value),wq(g,17,f),b.add("found_in_versions")):(g=e,f=Bq(f.value),wq(g,17,f),c.add("found_in_versions"));break;case "gerritChanges":g=(f.gerritChangeValue||[]).map(nXa);f.actionType===
"ADD"?(d.addAllGerritChanges(g),b.add("gerrit_changes")):(e.addAllGerritChanges(g),c.add("gerrit_changes"));break;case "hotlists":f.actionType==="ADD"?(d.addAllHotlistIds(Aq(f.value)),b.add("hotlist_ids")):(e.addAllHotlistIds(Aq(f.value)),c.add("hotlist_ids"));break;case "inProd":d.setInProd(f.value==="true");b.add("in_prod");break;case "type":d.setType(M_a[f.value]);b.add("type");break;case "isArchived":d.setIsArchived(f.value==="true");b.add("is_archived");break;case "isDeleted":d.setIsDeleted(f.value===
"true");b.add("is_deleted");break;case "parentId":break;case "priority":d.setPriority(lXa[f.value]);b.add("priority");break;case "readState":break;case "reporter":d.setReporter(K_a(f.value));b.add("reporter");break;case "severity":d.setSeverity(mXa[f.value]);b.add("severity");break;case "sloEndTime":(f=Lm(f.value))?(d.setSloEndTime(cn({seconds:f,nanos:0})),b.add("slo_end_time")):(e.setSloEndTime(new Si),c.add("slo_end_time"));break;case "sloSnoozeType":d.setSloSnoozeType(pXa[f.value]);b.add("slo_snooze_type");
break;case "sloStartTime":(f=Lm(f.value))?(d.setSloSnoozeUntil(cn({seconds:f,nanos:0})),b.add("slo_snooze_until")):(e.setSloSnoozeUntil(new Si),c.add("slo_snooze_until"));break;case "status":d.setStatus(kXa[f.value]);b.add("status");break;case "targetedToVersion":f.actionType==="ADD"?(g=d,f=Bq(f.value),wq(g,18,f),b.add("targeted_to_versions")):(g=e,f=Bq(f.value),wq(g,18,f),c.add("targeted_to_versions"));break;case "title":d.setTitle(f.value);b.add("title");break;case "verifiedInVersion":f.actionType===
"ADD"?(g=d,f=Bq(f.value),wq(g,19,f),b.add("verified_in_versions")):(g=e,f=Bq(f.value),wq(g,19,f),c.add("verified_in_versions"));break;case "verifier":f.value?(d.setVerifier(K_a(f.value)),b.add("verifier")):(e.setVerifier(new Em),c.add("verifier"));break;default:wb(f.fieldName,"Unhandled IssueFieldName in actionsToIssueStateChanges")}a=new Cq;b=Array.from(b);b=wq(a,1,b);a=new Cq;c=Array.from(c);c=wq(a,1,c);return{addMask:b,removeMask:c,stateAddBuilder:d,stateRemoveBuilder:e}},P_a=function(a){var b=
N_a(a.actions),c=b.addMask,d=b.removeMask,e=b.stateAddBuilder;b=b.stateRemoveBuilder;c=(new O_a).setIssueId(Number(a.issueId)).setAdd(e).setRemove(b).setAddMask(c).setRemoveMask(d);(a=Ia(a.actions.filter(function(f){return f.fieldName==="comment"})))&&a.value!=null&&c.setIssueComment((new Kp).setComment(a.value));return c},R_a=function(a,b,c,d){var e=new Dq,f=e.setIt;a=(new Q_a).setIssueId(a);b&&a.setIssueAccessLimit(wVa(b));c&&a.setAddedCollaboratorsList(c.map(Im));d&&a.setRemovedCollaboratorsList(d.map(Im));
return f.call(e,a)},S_a=function(a){return(new Eq).setIt((new Fq).setIssueId(Number(a)))},V_a=function(a){return(new T_a).setIt((new U_a).setIssueId(Number(a.issueId)).setComponentId(Number(a.componentId)))},Y_a=function(a){var b,c=new W_a,d=c.setIt,e=(new X_a).setIssueId(String(a.issueId)).setComponentId(a.componentId);a=(b=a.setLimitViewTrusted)!=null?b:!1;b=Yo(e,3,a);return d.call(c,b)},Z_a=function(a){return{issueId:Nm(a.getIssueId_asString()),status:xp[a.getStatus()],title:a.getTitle()}},b0a=
function(a){var b=(new $_a).setFieldName(a.fieldName);a.value&&b.setValue(a.value);a.actionType&&Gn(b,3,a0a[a.actionType]);if(a.customFieldValue){var c=b.setCustomFieldValue;a=a.customFieldValue;a=(new Gq).setIt(gWa(a));c.call(b,a)}return b},d0a=function(a){return(new c0a).setIt(P_a(a))},h0a=function(a){var b=new e0a;var c=a.addHotlistIds.map(String);b=xc(b,1,c,Hb);c=a.removeHotlistIds.map(String);b=xc(b,2,c,Hb);var d=a.hotlistIssue;a=(new Gp).setIssueId(Number(d.issueId));d.position&&a.setPosition(d.position);
if(d.issue){c=a.setIssue;d=d.issue;var e=(new Hp).setIssueId(d.issueId).setVersion(d.version).setCustomFieldsList(d.customFields.map(nWa)),f=d.visibleFields.map(dWa);e=Ni(e,34,f).setMajorModifiedTime(en(d.majorModifiedTimeMicros)).setParentIssueIdsList(d.parentIssueIds.map(Lm).filter(Pm)).setChildIssueCount(d.childIssueCount).setDescendantIssueCount(d.descendantCount).setOpenDescendantIssueCount(d.openDescendantCount).setIsArchived(d.isArchived);d.trackerId&&e.setTrackerId(d.trackerId);d.snapshot&&
d.snapshot[0]&&e.setIssueState(qXa(d.snapshot[0]));d.statusUpdate&&e.setStatusUpdate(dXa(d.statusUpdate));if(d.userData){var g=d.userData;f=new f0a;g.voted&&Yo(f,2,g.voted);g.starred&&Yo(f,1,g.starred);g.notificationSubscription&&f.setNotificationSubscription(g0a[g.notificationSubscription]);g.lastViewedTimeMicros!==void 0&&(g=en(g.lastViewedTimeMicros),Mi(f,Si,5,g));Mi(e,f0a,9,f)}if(d.aggregatedData){Io(e,10,d.aggregatedData.voteCount).setCreatedTime(en(d.aggregatedData.createdTimeMicros)).setResolvedTime(en(d.aggregatedData.resolvedTimeMicros)).setVerifiedTime(en(d.aggregatedData.verifiedTimeMicros)).setModifiedTime(en(d.aggregatedData.modifiedTimeMicros));
d.aggregatedData.lastModifier&&(f=Im(d.aggregatedData.lastModifier),Mi(e,Em,14,f));if(d.aggregatedData.sloStatus){f=e.setSloStatus;var k=d.aggregatedData.sloStatus;g=new Iq;if(k.assignmentBounds){var l=JWa(k.assignmentBounds);Mi(g,mp,1,l)}k.responseBounds&&(l=JWa(k.responseBounds),Mi(g,mp,2,l));k.closureBounds&&(k=JWa(k.closureBounds),Mi(g,mp,3,k));f.call(e,g)}d.aggregatedData.sloId&&e.setSloId(d.aggregatedData.sloId);d.aggregatedData.teamId&&e.setTeamId(d.aggregatedData.teamId);d.aggregatedData.retentionState&&
e.setRetentionState(OVa(d.aggregatedData.retentionState))}d.accessLimit&&e.setAccessLimit(BVa(d.accessLimit));if(d.ancestors)for(f=e.getAncestorsMap(),g=m(d.ancestors.entries()),k=g.next();!k.done;k=g.next())l=m(k.value),k=l.next().value,l=l.next().value,f.set(mb(k),(new Jq).setSourceIssueIdsList(l.sourceIssueIds.map(Lm).filter(Pm)));d.userActivityStats&&(f=d.userActivityStats,g=new BXa,g=Io(g,1,f.oneDayViewCount),g=Io(g,2,f.sevenDayViewCount),f=Io(g,3,f.thirtyDayViewCount),Mi(e,BXa,47,f));d.escalationOwner&&
e.setEscalationOwner(Im(d.escalationOwner));c.call(a,e)}a=(new Kq).setIt(a);return Mi(b,Kq,3,a)},j0a=function(a){var b=Bi(a,i0a,1,Ci(),jb);return{issueDigests:(b!=null?b:[]).map(Z_a),numTotalResults:Ym(pn(a,2,void 0,jb))}},m0a=function(a){var b=(new k0a).setIssueId(a.issueId).setRetention(UVa(a.retention));a.significanceOverride&&b.setSignificanceOverride(mWa[a.significanceOverride]);return(new l0a).setIt(b)},r0a=function(a){var b=new n0a,c=b.setIt,d=(new Hp).setIssueState(qXa(a.snapshot));a.snapshot.comment&&
d.setIssueComment((new Kp).setComment(a.snapshot.comment).setFormattingMode(kp(a.snapshot.formattingMode)));a.attachments&&d.addAllAttachments(a.attachments.map(YVa));d=(new o0a).setIssue(d);if(a.templateId!=null){var e=new p0a;e=Yo(e,1,!1).setTemplateId(a.templateId);Mi(d,p0a,3,e)}a.contentJudgement&&(e=d.setContentJudgement,a=q0a(HVa(a.contentJudgement)),a=Hm(a,6,1),e.call(d,a));return c.call(b,d)},s0a=function(a){return{issueId:Nm(a.getIssueId_asString())}},u0a=function(a,b){a=(new t0a).setQuery(a);
b.s&&a.setOrderBy(vVa(b.s));b.count&&(a.setPageSize(b.count),b.p&&a.setPageToken("start_index:"+b.count*(b.p-1)));var c;return(new Lq).setIt(a).setTrackerIdsList((c=b.trackerIds)!=null?c:[])},G0a=function(a,b,c){a=v0a(new w0a,u0a(a,b));c.queryType&&Gn(a,2,x0a[c.queryType]);c.sortSpecs&&c.sortSpecs.length&&y0a(a,c.sortSpecs.map(function(d){var e=new z0a;e=Gn(e,1,A0a[d.sortType]);return Oi(e,2,d.sortDecreasing)}));c.experimentalFields&&B0a(a,s_a(c.experimentalFields));c.concatenator&&C0a(a,D0a((new E0a).setRelation(F0a[c.concatenator.relation]),
c.concatenator.experimentalSortPrimary));return a},H0a=function(a){return cXa(a.getIt())},I0a=function(a){var b=new Mq,c=b.setIt;var d=(new Nq).setQuery(a.query);d=Hm(d,2,mWa[a.minimumSignificance]);a=an(d,4,a.maximumSize);a=Hm(a,3,2);return c.call(b,a)},J0a=function(a){var b;return{isCommentEvent:!0,version:a.version,unlinkifiedComment:a.unlinkifiedComment,commentNumber:a.commentNumber,commentVersion:a.version,commentLastModifiedAtDate:sRa(a.lastModified),commentRedacted:Om(a.redacted),commentContentVerdict:a.commentContentVerdict,
commentRetentionState:a.piiRetentionState,commentDeletionStatus:(b=a.entityStatus)==null?void 0:b.status,commentRetention:a.piiRetention,lastCommentEditorUser:a.lastEditorUser,formattingMode:a.formattingMode,formattedComment:a.formattedComment,commentEtag:a.etag,commentReactions:a.commentReactions}},K0a=function(a,b){var c,d,e;return{attachments:[],preDiffs:[],postDiffs:[],modifiedDate:IRa(en((e=(c=b.aggregatedData)==null?void 0:c.createdTimeMicros)!=null?e:0)),userPerformingActionUser:a.lastEditorUser,
userPerformingAction:rRa()(wm(a.lastEditorUser)),isCommentEvent:!0,commentVersion:a.version,version:a.version,commentLastModifiedAtDate:sRa(a.lastModified),commentRedacted:Om(a.redacted),commentContentVerdict:a.commentContentVerdict,commentRetentionState:a.piiRetentionState,commentDeletionStatus:(d=a.entityStatus)==null?void 0:d.status,commentRetention:a.piiRetention,lastCommentEditorUser:a.lastEditorUser,commentEtag:a.etag,commentNumber:a.commentNumber,unlinkifiedComment:a.unlinkifiedComment,formattingMode:a.formattingMode,
isMajorEvent:!0,statusUpdate:void 0,taggedSummary:void 0,formattedComment:a.formattedComment,commentReactions:a.commentReactions,issueId:a.issueId}},Oq=function(a){if(a!=null&&a.getIssue())return a=a.getIssue(),a=a!=null?DXa(a.getIt()):void 0,a},M0a=function(a){var b=new L0a;b.setIssueIdsList(a.issueIds.map(String));a=a.actions.map(b0a);Ni(b,1,a);return b},N0a=function(a){return{issueId:a.getIssueId_asString(),message:a.getMessage()}},P0a=function(a){for(var b={},c=m(wc(a,1,Pq,Vb,jb).entries()),d=
c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;e=e!=null?Dp(e.getIt()):void 0;b[d]=e}c={};d=m(wc(a,3,nq,Vb,jb).entries());for(e=d.next();!e.done;e=d.next()){var f=m(e.value);e=f.next().value;f=f.next().value;c[e]=lq(f)}a=Bi(a,O0a,2,Ci(),jb);a=(a!=null?a:[]).map(N0a);return{affectedIssues:b,componentMap:c,errors:a}},Q0a=function(a){var b;return((b=a.getIt().getIssueCommentsList())!=null?b:[]).map(ep).map(J0a)},R0a=function(a){var b=a.getIt();xi(b,Si,3)?(a=a.getIt(),
a=X(a,Si,3),a=fn(a)):a=0;return{readTimestamp:a}},S0a=function(a){a=a.getIt();var b=a.getIssueState(),c=b.getAccessLimit();b={type:EWa(b.getType()),status:xp[b.getStatus()],priority:yp[b.getPriority()],severity:fXa[b.getSeverity()],componentId:Nm(b.getComponentId_asString()),accessLimitLevel:c!=null?xVa(c):null};return{issueId:a.getIssueId_asString(),issueState:b,modifiedTime:bn(a.getModifiedTime()),teamId:Nm(a.getTeamId_asLegacyNumberOrString())}},T0a=function(a){return ep(a.getIt())},U0a=function(a){return a.getIt().getIssueCommentsList().map(ep)},
V0a=function(a){return xWa(a==null?void 0:a.getIt())},W0a=function(a){a=a.getIt();return{issues:a.getIssuesList().filter(Pm).map(Dp),numTotalResults:a.getTotalSize(),positionMap:void 0,nextPageToken:a.getNextPageToken(),totalSizeAccurate:a.getTotalSizeAccurate(),maySkipResults:a.getMaySkipResults()}},Y0a=function(a){return{issueId:a.getIssueId_asString(),summaryType:X0a[a.getSummaryType()],modelVersion:a.getModelVersion(),issueVersion:a.getIssueVersion(),summary:a.getSummary(),formattedSummary:xi(a,
hp,6)?AWa(X(a,hp,6)):void 0}},c1a=function(a){if(a){var b=a==null?void 0:a.getTypeName();switch(b){case "google.protobuf.Int32Value":var c;return{type:"NUMBER",value:(c=Qq(a,Z0a,b))==null?void 0:c.getValue()};case "google.protobuf.Int64Value":var d;return{type:"NUMBER",value:Zm((d=Qq(a,$0a,b))==null?void 0:d.getValue())};case "google.protobuf.StringValue":var e;return{type:"STRING",value:(e=Qq(a,a1a,b))==null?void 0:e.getValue()};case "google.protobuf.BoolValue":var f;return{type:"BOOLEAN",value:(f=
Qq(a,b1a,b))==null?void 0:f.getValue()};case "google.protobuf.Timestamp":return{type:"TIMESTAMP",value:bn(Qq(a,Si,b))};case "google.devtools.issuetracker.v1.User":return a=Qq(a,Em,b),{type:"USER",value:a&&Km(a)};case "google.devtools.issuetracker.v1.CustomFieldValue":return a=Qq(a,Vo,b),{type:"CUSTOM_FIELD_VALUE",value:a&&eWa(a)};case "google.devtools.issuetracker.v1.IssueAccessLimit":return a=Qq(a,Do,b),{type:"ISSUE_ACCESS_LIMIT",value:a&&xVa(a)};case "google.devtools.issuetracker.v1.Issue.Effort":return a=
Qq(a,Ap,b),{type:"STRING",value:a&&oWa(a).estimate};case "google.devtools.issuetracker.v1.EntityStatus":return a=Qq(a,Jo,b),{type:"ENTITY_STATUS",value:a&&JVa(a)};case "google.devtools.issuetracker.v1.GerritChange":return a=Qq(a,Bp,b),{type:"GERRIT_CHANGE",value:a&&gXa(a)};case "google.devtools.issuetracker.v1.Staffing.PlannedAllocation":return a=Qq(a,pp,b),{type:"PLANNED_ALLOCATION",value:a&&aXa(a)};default:console.error("Unhandled type in parseProtoAny: "+b)}}},e1a=function(a){var b,c;return{issueId:String(a.getIssueId()),
version:a.getVersion(),author:Km(a.getAuthor()),timestamp:bn(a.getTimestamp()),fieldUpdates:a.getFieldUpdatesList().map(d1a).filter(Pm),attachments:a.getAttachmentsList().map(WVa),comment:a.hasIssueComment()&&Zm((b=a.getIssueComment())==null?void 0:b.getIssueId())!==0?ep(a.getIssueComment()):void 0,statusUpdate:a.hasStatusUpdate()?cXa(a.getStatusUpdate()):void 0,statusUpdateEntityStatus:((c=a.getStatusUpdate())==null?0:c.getEntityStatus())?JVa(a.getStatusUpdate().getEntityStatus()):void 0}},d1a=function(a){var b=
a.getField();if(jVa.has(b)){var c=wo(a,f1a);switch(c){case 3:a:{if(c=bm(a,g1a,3,f1a)){a=c1a(X(c,Rq,1));var d=c1a(X(c,Rq,2));if(a||d){var e;c={type:(e=a==null?void 0:a.type)!=null?e:d==null?void 0:d.type,oldValue:a==null?void 0:a.value,newValue:d==null?void 0:d.value};break a}}c=void 0}return{field:b,singleValueUpdate:c};case 4:return{field:b,collectionUpdate:h1a(bm(a,i1a,4,f1a))};default:console.error("Unexpected ValueUpdate oneof in Proto for field id:"+c)}}else console.error('Unexpected IssueStateMask value: "'+
b+'"')},h1a=function(a){if(a){var b=Bi(a,Rq,1,Ci()).map(c1a).filter(Pm);a=Bi(a,Rq,2,Ci()).map(c1a).filter(Pm);var c=[].concat(q(b),q(a));if(c.length!==0)return{type:c[0].type,added:b.map(function(d){return d.value}),removed:a.map(function(d){return d.value})}}},Sq=function(a){return new pm(a.year,a.month-1,a.day)},j1a=function(a){return{month:a.getMonth()+1,day:a.getDate(),year:a.getFullYear()}},k1a=function(a){return!(!a||a.day==null||a.month==null||a.year==null)},l1a=function(a,b){if(a&&b){var c=
m(b.split(":"));b=c.next().value;c=c.next().value;return new ao(a.getFullYear(),a.getMonth(),a.getDate(),Number(b),Number(c))}},Tq=function(a){return a.numericValue===0?a.numericValue:a.textValue||a.dateValue||a.enumValue||a.numericValue||a.repeatedTextValue||a.repeatedDateValue||a.repeatedEnumValue||a.repeatedNumericValue||null},Uq=function(a){a=Tq(a);return a==null?!0:typeof a==="string"?a==="":typeof a==="number"?!1:a.values!=null?a.values.length===0:!a||!a.day||!a.month||!a.year},m1a=function(a){return a?
j1a(TQa(a)):null},n1a=function(a){return a?(a=vo(a),isNaN(a)?null:a):null},p1a=function(a){return o1a.format(Sq(a))},q1a=function(a){return a.textValue!=null?a.textValue:a.dateValue!=null?p1a(a.dateValue):a.enumValue!=null?a.enumValue:a.numericValue!=null?String(a.numericValue):a.repeatedTextValue!=null?a.repeatedTextValue.values.join(", "):a.repeatedDateValue!=null?a.repeatedDateValue.values.map(p1a).join(", "):a.repeatedEnumValue!=null?a.repeatedEnumValue.values.join(", "):a.repeatedNumericValue!=
null?a.repeatedNumericValue.values.map(String).join(", "):""},Vq=function(a,b){return(b===void 0?0:b)?"https://"+a.host+"-review.git.corp.google.com/c/"+a.repo+"/+/"+a.changeNumber:"https://"+a.host+"-review.googlesource.com/c/"+a.repo+"/+/"+a.changeNumber},Wq=function(a){var b=a.match(r1a);if(b){a=b[1];var c=b[2];b=b[3];if(a&&c&&b)return{host:a,repo:c,changeNumber:Number(b),state:"MERGED"}}},u1a=function(a,b){a=a.map(s1a)||[];b=b.map(s1a)||[];return XQa(a,new Set(b)).map(t1a)},s1a=function(a){return a.host+
","+a.repo+","+a.changeNumber+","+a.state},t1a=function(a){var b=m(a.split(","));a=b.next().value;var c=b.next().value,d=b.next().value;b=b.next().value;d=Lm(d);if(!d)throw Error("Zd");if(!Object.values(v1a).includes(b))throw Error("$d");return{host:a,repo:c,changeNumber:d,state:b}},w1a=function(a){a=a.trim();if(a.match(/^(https:\/\/|http:\/\/)?(cl)\/[\d]+/)||a.match(/^(https:\/\/|http:\/\/)?(cr)\/[\d]+/)||a.match(/^(https:\/\/|http:\/\/)?(critique\.corp\.google\.com)/)||a.match(/^(https:\/\/|http:\/\/)?(critique-ng\.corp\.google\.com)/))a=
a.replace(/^.*\//,"");return a.match(/^[1-9]\d{0,19}$/)?a:null},x1a=function(a,b){b=b===void 0?eVa("enableGerritChanges"):b;var c;return y(function(d){return b?(c=a&&(!!w1a(a)||!!Wq(a)))?d.return(""):d.return("Must be a CL number or Gerrit URL"):d.return("")})},z1a=function(a){return a==null?!1:y1a.has(a.name)},A1a=function(a){return(a==null?void 0:a.name)==="hotlist"},B1a=function(a){return a==null?!1:a.href!=null&&a.value!=null},C1a=function(a){return Array.isArray(a)?a.every(B1a):!1},Xq=function(a){return{value:String(a),
href:"issues/"+a}},D1a=function(a){return{value:a,href:"https://critique.corp.google.com/"+a}},E1a=function(a){var b=rTa();return{value:a.changeNumber,href:Vq(a,b===void 0?!1:b)}},F1a=function(a){return{value:String(a),href:"issues?q=hotlistid:"+a}},G1a=function(a){return{value:a,href:"https://irm.corp.google.com/"+a}},H1a=function(a){return{value:a,href:"https://pm.corp.google.com/"+a}},J1a=function(a,b){var c=new Map(a.filter(function(r){return r.placeholder}).map(function(r){var w;return[(w=Yq[r.placeholder.role])!=
null?w:"",r.placeholder.count]})),d=new Map(b.filter(function(r){return r.placeholder}).map(function(r){var w;return[(w=Yq[r.placeholder.role])!=null?w:"",r.placeholder.count]}));a=BUa(a.filter(function(r){return r.user}));b=BUa(b.filter(function(r){return r.user}));for(var e=[],f=[],g=m(c),k=g.next();!k.done;k=g.next()){var l=m(k.value);k=l.next().value;l=l.next().value;k.length!==0&&k!==Yq.JOB_ROLE_UNSPECIFIED&&(d.has(k)?d.get(k)!==l&&e.push(k+" ("+d.get(k)+" > "+l+")"):e.push(k+" ("+l+")"))}d=
m(d);for(g=d.next();!g.done;g=d.next())k=m(g.value),g=k.next().value,k=k.next().value,g.length!==0&&g!==Yq.JOB_ROLE_UNSPECIFIED&&(c.has(g)||f.push(g+" ("+k+")"));c=new Set([].concat(q(a.keys()),q(b.keys())));c=m(c);g=c.next();for(d={};!g.done;d={addedAllocationsByKey:void 0},g=c.next())g=g.value,g.length!==0&&(k=void 0,d.addedAllocationsByKey=CUa((k=a.get(g))!=null?k:[]),l=void 0,k=CUa((l=b.get(g))!=null?l:[]),d.addedAllocationsByKey.size>0&&(l=I1a(g,d.addedAllocationsByKey,k),l.length>0&&e.push(l)),
d=new Map([].concat(q(k.entries())).filter(function(r){return function(w){var x=m(w);w=x.next().value;x.next();return!r.addedAllocationsByKey.has(w)}}(d))),d.size>0&&(d=I1a(g,d,new Map),d.length>0&&f.push(d)));return{additions:e,removals:f}},I1a=function(a,b,c){var d=[];b=m(b);for(var e=b.next();!e.done;e=b.next()){e=m(e.value);var f=e.next().value;e=e.next().value;f=c.get(f);if(!mm(e,f)){if(d.length===0){var g=void 0;d.push(K1a(e.user,(g=f)==null?void 0:g.user));g=void 0;d.push(L1a(e.user,(g=f)==
null?void 0:g.user))}var k=void 0,l=void 0;g=M1a((k=e.allocation)==null?void 0:k.startDate,(l=e.allocation)==null?void 0:l.endDate);k=void 0;e=N1a(e.allocation,(k=f)==null?void 0:k.allocation);e.length!==0&&(g.length>0?d.push(g+": "+e):d.push(e))}}if(d.length===0)return"";c=d.filter(function(r){return r.length>0});return a+(c.length===0?"":" ("+c.join(", ")+")")},M1a=function(a,b){var c=new ql("MMM d, yyyy");if(!a&&!b)return"";var d=a?c.format(Sq(a)):"";c=b?c.format(Sq(b)):"";return a?b?d+" - "+c:
d+" - End":"Start - "+c},K1a=function(a,b){a=a==null?void 0:a.role;var c=b==null?void 0:b.role;return a===c?"":!b&&a?"Custom Role: "+Yq[a]:a?c?"Custom Role: "+Yq[c]+" > "+Yq[a]:"Custom Role: None > "+Yq[a]:"Custom Role: "+Yq[c]+" > None"},L1a=function(a,b){a=a==null?void 0:a.isLead;var c=b==null?void 0:b.isLead;return a===c?"":!b&&a?"Lead":(c?"Lead":"Not Lead")+" > "+(a?"Lead":"Not Lead")},N1a=function(a,b){if((a==null?void 0:a.involvement)===(b==null?void 0:b.involvement)&&(a==null?void 0:a.percentage)===
(b==null?void 0:b.percentage))return"";var c="";if((a==null?0:a.involvement)&&(a==null?void 0:a.involvement.length)>0&&(a==null?void 0:a.involvement)!=="INVOLVEMENT_UNSPECIFIED")c=oo[a==null?void 0:a.involvement];else if((a==null?void 0:a.percentage)!==void 0){var d;c=Math.round(((d=a==null?void 0:a.percentage)!=null?d:0)*100)+"%"}if(c.length===0)return"";a="";if((b==null?0:b.involvement)&&(b==null?void 0:b.involvement.length)>0&&(b==null?void 0:b.involvement)!=="INVOLVEMENT_UNSPECIFIED")a=oo[b==
null?void 0:b.involvement];else if((b==null?void 0:b.percentage)!==void 0){var e;a=Math.round(((e=b==null?void 0:b.percentage)!=null?e:0)*100)+"%"}return b&&a.length!==0?a+" > "+c:""+c},Q1a=function(a){var b=a.fieldUpdates.map(function(c){return O1a(c,a)}).filter(Pm);a.statusUpdate&&b.push({name:"statusUpdate",displayName:"Status Update",type:"STATUS_UPDATE",important:!1,timestamp:$n(a.timestamp),statusUpdateDiff:a.statusUpdateEntityStatus?{entityStatus:a.statusUpdateEntityStatus}:void 0});return P1a(b)},
P1a=function(a){var b=a.filter(function(g){return g.name==="status"});a=a.filter(function(g){return g.name!=="status"});var c=[].concat(q(a),q(b));b=[];a=void 0;c=m(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.name==="canonicalId"?a=d:(d.name==="status"&&a&&(d.newValue==="Duplicate"&&(d.newValue="Duplicate of "+a.newValue),d.oldValue==="Duplicate"&&(d.oldValue="Duplicate of "+a.oldValue),a=void 0),b.push(d));var e,f;((e=a)==null?0:e.oldValue)&&((f=a)==null?0:f.newValue)&&b.push({name:"status",
displayName:"Status",type:"SINGLE_VALUE",important:!0,timestamp:a.timestamp,oldValue:"Duplicate of "+a.oldValue,newValue:"Duplicate of "+a.newValue});return b},O1a=function(a,b){var c=$n(b.timestamp);b=b.version===0;var d=a.field;switch(d){case "access_limit":var e=a.singleValueUpdate;return{name:"access_limit",displayName:"Issue access level",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue||"",newValue:e.newValue||""};case "assignee":return e=a.singleValueUpdate,{name:"assignee",
displayName:"Assignee",type:"SINGLE_VALUE",important:!0,timestamp:c,isUser:!0,oldValue:Zq(e.oldValue),newValue:Zq(e.newValue)};case "blocked_by_issue_ids":return e=a.collectionUpdate,{name:"blockedById",displayName:"Blocked by",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(Xq),removed:e.removed.map(Xq)};case "blocking_issue_ids":return e=a.collectionUpdate,{name:"blockingId",displayName:"Blocking",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(Xq),removed:e.removed.map(Xq)};
case "canonical_issue_id":return e=a.singleValueUpdate,{name:"canonicalId",displayName:"Canonical",type:"SINGLE_VALUE",important:!0,timestamp:c,oldValue:Mm(e.oldValue),newValue:Mm(e.newValue)};case "ccs":return e=a.collectionUpdate,{name:"cc",displayName:"CC",type:"USER_COLLECTION",important:!1,timestamp:c,isUser:!0,added:e.added.map(Zq),removed:e.removed.map(Zq)};case "collaborators":return e=a.collectionUpdate,{name:"collaborators",displayName:"Collaborators",type:"USER_COLLECTION",important:!1,
timestamp:c,isUser:!0,added:e.added.map(Zq),removed:e.removed.map(Zq)};case "child_issue_ids":return e=a.collectionUpdate,{name:"childIssueIds",displayName:"Child Issue",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(Xq),removed:e.removed.map(Xq)};case "code_changes":return e=a.collectionUpdate,Object.assign({},{name:"changelist",displayName:"Changelist",important:!1,timestamp:c},rTa()?{type:"LINKED_COLLECTION",added:e.added.map(D1a),removed:e.removed.map(D1a)}:{type:"COLLECTION",
added:e.added,removed:e.removed});case "component_id":var f=a.singleValueUpdate,g;return{name:"component",displayName:"Component",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(e=Mm(f.oldValue))!=null?e:"",newValue:(g=Mm(f.newValue))!=null?g:""};case "custom_fields":return e=a.singleValueUpdate,g=(e.oldValue||e.newValue).customFieldId,{customFieldId:g,name:String(g),displayName:"",type:"CUSTOM_FIELD",important:!1,timestamp:c,oldValue:R1a(e.oldValue),newValue:R1a(e.newValue)};case "duplicate_issue_ids":return e=
a.collectionUpdate,{name:"duplicateId",displayName:"Duplicate issue",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(Xq),removed:e.removed.map(Xq)};case "effort":return e=a.singleValueUpdate,{name:"effort",displayName:"Estimated Effort",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue||"<none>",newValue:e.newValue||"<none>"};case "found_in_versions":return e=a.collectionUpdate,{name:"foundIn",displayName:"Found in",type:"COLLECTION",important:!1,timestamp:c,added:e.added,
removed:e.removed};case "gerrit_changes":return e=a.collectionUpdate,{name:"gerritChange",displayName:"Gerrit change",important:!1,timestamp:c,type:"LINKED_COLLECTION",added:e.added.map(function(sa){return E1a(sa)}),removed:e.removed.map(function(sa){return E1a(sa)})};case "hotlist_ids":return e=a.collectionUpdate,{name:"hotlist",displayName:"Hotlist",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(F1a),removed:e.removed.map(F1a)};case "in_prod":return e=a.singleValueUpdate,{name:"inProd",
displayName:"In prod",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue!=null?String(e.oldValue):"",newValue:e.newValue!=null?String(e.newValue):""};case "is_archived":e=a.singleValueUpdate;var k;return{name:"isArchived",displayName:"Archived",type:"SINGLE_VALUE",important:!b||e.newValue,timestamp:c,oldValue:String((f=e.oldValue)!=null?f:!1),newValue:String((k=e.newValue)!=null?k:!1)};case "parent_issue_ids":return e=a.collectionUpdate,{name:"parentIssueIds",displayName:"Parent Issue",
type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(Xq),removed:e.removed.map(Xq)};case "staffing.planned_allocations":if(!rTa())break;e=a.collectionUpdate;e=J1a(e.added,e.removed);return{name:"staffing",displayName:"Staffing",important:!1,timestamp:c,type:"COLLECTION",added:e.additions,removed:e.removals};case "incidents":return e=a.collectionUpdate,Object.assign({},{name:"incident",displayName:"Incident",timestamp:c,important:!1},rTa()?{type:"LINKED_COLLECTION",added:e.added.map(G1a),
removed:e.removed.map(G1a)}:{type:"COLLECTION",added:e.added,removed:e.removed});case "postmortems":return e=a.collectionUpdate,Object.assign({},{name:"postmortem",displayName:"Postmortem",timestamp:c,important:!1},rTa()?{type:"LINKED_COLLECTION",added:e.added.map(H1a),removed:e.removed.map(H1a)}:{type:"COLLECTION",added:e.added,removed:e.removed});case "priority":return e=a.singleValueUpdate,{name:"priority",displayName:"Priority",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue!=
null?yp[e.oldValue]:"",newValue:e.newValue!=null?yp[e.newValue]:""};case "retention":e=a.singleValueUpdate;var l,r;return{name:"retention",displayName:"Retention",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(l=S1a(e.oldValue))!=null?l:"",newValue:(r=S1a(e.newValue))!=null?r:""};case "reporter":return e=a.singleValueUpdate,{name:"reporter",displayName:"Reporter",type:"SINGLE_VALUE",important:!1,timestamp:c,isUser:!0,oldValue:Zq(e.oldValue),newValue:Zq(e.newValue)};case "severity":return e=
a.singleValueUpdate,{name:"severity",displayName:"Severity",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue!=null?fXa[e.oldValue]:"",newValue:e.newValue!=null?fXa[e.newValue]:""};case "slo_snooze_until":e=a.singleValueUpdate;var w,x,C,H;return{name:"sloStartTime",displayName:"SLO Start Date",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:String((C=(w=e.oldValue)==null?void 0:w.seconds)!=null?C:"<none>"),newValue:String((H=(x=e.newValue)==null?void 0:x.seconds)!=null?H:"<none>")};
case "slo_end_time":e=a.singleValueUpdate;var J,O,R,V;return{name:"sloEndTime",displayName:"SLO End Date",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:String((R=(J=e.oldValue)==null?void 0:J.seconds)!=null?R:"<none>"),newValue:String((V=(O=e.newValue)==null?void 0:O.seconds)!=null?V:"<none>")};case "status":e=a.singleValueUpdate;var ca,na;return{name:"status",displayName:"Status",type:"SINGLE_VALUE",important:!0,timestamp:c,oldValue:gj((ca=$q.get(e.oldValue))!=null?ca:""),newValue:gj((na=
$q.get(e.newValue))!=null?na:"")};case "targeted_to_versions":return e=a.collectionUpdate,{name:"targetedTo",displayName:"Targeted to",type:"COLLECTION",important:!1,timestamp:c,added:e.added,removed:e.removed};case "title":e=a.singleValueUpdate;var ua,ia;return{name:"title",displayName:"Title",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(ua=e.oldValue)!=null?ua:"",newValue:(ia=e.newValue)!=null?ia:""};case "type":e=a.singleValueUpdate;var Ga,ha;return{name:"type",displayName:"Type",type:"SINGLE_VALUE",
important:!1,timestamp:c,oldValue:(Ga=T1a.get(e.oldValue))!=null?Ga:"",newValue:(ha=T1a.get(e.newValue))!=null?ha:""};case "verifier":return e=a.singleValueUpdate,{name:"verifier",displayName:"Verifier",type:"SINGLE_VALUE",important:!1,timestamp:c,isUser:!0,oldValue:Zq(e.oldValue),newValue:Zq(e.newValue)};case "verified_in_versions":return e=a.collectionUpdate,{name:"verifiedIn",displayName:"Verified in",type:"COLLECTION",important:!1,timestamp:c,added:e.added,removed:e.removed};case "deletion_reason":case "entity_status":case "is_deleted":case "slo_snooze_type":case "staffing":break;
default:wb(d,"Unexpected IssueStateMask in fieldUpdateToDiff")}},Zq=function(a){return rRa()(wm(a))},R1a=function(a){return a==null?"<none>":q1a(a)},S1a=function(a){if(a!=null)switch(iXa[a]){case "COMPONENT_DEFAULT":return"Component Default";case "INDEFINITE":return"Indefinite"}},Y1a=function(a){var b=void 0,c=void 0;a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.updates.flatMap(function(w){return w.fieldUpdates}),f=void 0,g=(f=Ia(e.filter(function(w){return w.field==="assignee"})))==
null?void 0:f.singleValueUpdate;g&&(b=U1a(g));f=void 0;var k=(f=Ia(e.filter(function(w){return w.field==="verifier"})))==null?void 0:f.singleValueUpdate;k&&(c=U1a(k));f=void 0;k=(f=Ia(e.filter(function(w){return w.field==="status"})))==null?void 0:f.singleValueUpdate;var l=void 0;f=(l=Ia(e.filter(function(w){return w.field==="canonical_issue_id"})))==null?void 0:l.singleValueUpdate;l=void 0;e=(l=Ia(e.filter(function(w){return w.field==="is_archived"})))==null?void 0:l.singleValueUpdate;if(k){l=k.oldValue!=
null?xp[k.oldValue]:void 0;k=k.newValue!=null?xp[k.newValue]:void 0;var r=void 0;f=Mm((r=f)==null?void 0:r.newValue);V1a(d,W1a({oldStatus:l,newStatus:k,currentAssignee:b,currentVerifier:c,canonicalIssueId:f,assigneeChanged:!!g}))}else g&&b?V1a(d,[ar("Reassigned to "),X1a(b),ar(".")]):f&&(k=void 0,f=Mm((k=f)==null?void 0:k.newValue),V1a(d,W1a({oldStatus:"DUPLICATE",newStatus:"DUPLICATE",currentAssignee:b,currentVerifier:c,canonicalIssueId:f,assigneeChanged:!!g})));e&&V1a(d,[ar(e.newValue?"Archived.":
"Unarchived.")])}},W1a=function(a){var b=a.oldStatus;var c=a.newStatus;var d=a.currentAssignee;var e=a.currentVerifier;var f=a.canonicalIssueId;a=a.assigneeChanged;b=b&&io.get(b);var g=c&&io.get(c);if(b&&g&&!b.open&&g.open)return[ar("Status: "+g.displayValue+" (reopened)")];switch(c){case "ASSIGNED":if(d)return[ar("Assigned to "),X1a(d),ar(".")];break;case "ACCEPTED":if(d)return[ar("Accepted by "),X1a(d),ar(".")];break;case "FIXED":return a&&d?[ar("Marked as fixed, reassigned to "),X1a(d),ar(".")]:
[ar("Marked as fixed.")];case "VERIFIED":if(e)return[ar("Verified by "),X1a(e),ar(".")];break;case "DUPLICATE":if(f)return[ar("Status: Duplicate of "),{text:f,tag:"bug"}]}return[ar("Status: "+gj(g.displayValue))]},U1a=function(a){if(a)return a.newValue},ar=function(a){return{text:a,tag:""}},X1a=function(a){switch(a.userGaiaStatus){case "ACTIVE":case "UNSPECIFIED":case void 0:if(a.emailAddress)return{text:a.emailAddress,tag:"user"};if(a.obfuscatedEmailAddress)return ar(a.obfuscatedEmailAddress);break;
case "DELETED":return ar("Deleted User");case "UNAVAILABLE":return ar("Unavailable User");default:return console.warn("Unexpected User Gaia status in userToTaggedText"),{text:""}}return ar("User")},a2a=function(a){if(!a.length)return[];a=ZZa(a,function(b){return b.issueId}).flatMap(Z1a);return $1a(a,"DESCENDING")},Z1a=function(a){if(!a.length)return[];a=b2a(a);Y1a(a);return a.map(function(b){return c2a(b)}).filter(d2a)},d2a=function(a){var b;return a.postDiffs.length||a.preDiffs.length||a.commentNumber||
a.attachments.length||((b=a.taggedSummary)==null?void 0:b.length)},b2a=function(a){var b=e2a(a,"ASCENDING");a=[new f2a];b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Ia(a),e;var f=e=void 0;if(d.updates.length===0)e=!0;else{var g;if(!(g=d.hasInitialUpdate)&&!(g=!d.author||!c.author)){g=d.author;var k=c.author;g=!(g===k||(g.emailAddress||k.emailAddress?g.emailAddress===k.emailAddress:(g.obfuscatedEmailAddress||k.obfuscatedEmailAddress)&&g.obfuscatedEmailAddress===k.obfuscatedEmailAddress))}if(g||
d.comment&&c.comment)e=!1;else{if(g=(f=d.updates[0])==null?0:f.timestamp)f=(e=d.updates[0])==null?void 0:e.timestamp,g=Math.abs($n(f)-$n(c.timestamp))>36E5;e=g?!1:!0}}e?g2a(d,c):a.push(g2a(new f2a,c))}return a},h2a=function(a){var b={};if(a==null)return b;a=Bi(a,br,1,Ci(),jb);a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getResource(),e={admin:!1,writer:!1,appender:!1,reader:!1};b[d]=b[d]||e;switch(c.getRelation()){case 1:b[d].admin=!0;break;case 2:b[d].writer=!0;break;case 3:b[d].appender=
!0;break;case 4:b[d].reader=!0}}return b},i2a=function(a,b){return a.map(function(c){var d=c.resourceName;c=c.relation;return b[d]!==void 0&&b[d][c]!==void 0?b[d][c]:!1})},j2a=function(a){return a==null?{closed:0,total:0}:{closed:a.descendantCount-a.openDescendantCount,total:a.descendantCount}},k2a=function(a,b){if(a==null)return 0;var c=0;a=m(a.aggregatedStatus);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.issueIds===void 0?[]:d.issueIds;d.status===b&&(c+=e.length)}return c},l2a=function(a){var b,
c;return(c=a==null?void 0:(b=a.changelists)==null?void 0:b.length)!=null?c:0},m2a=function(a){var b;return(b=a==null?void 0:a.gerritChanges)!=null?b:[]},n2a=function(a){if(a==null)return[];a=[].concat(q(a.assignees.map(function(b){return b.emailAddress})),q(a.collaborators.map(function(b){return b.emailAddress})),q(a.verifiers.map(function(b){return b.emailAddress})),q(a.reporters.map(function(b){return b.emailAddress}))).filter(Pm);return a_a(a)},o2a=function(a,b){var c;a=(c=a.componentPathInfo)==
null?void 0:c.allCustomField;if(!a)return!0;c=m(a);var d=c.next();for(a={};!d.done;a={customField$jscomp$6:void 0},d=c.next())if(a.customField$jscomp$6=d.value,a.customField$jscomp$6.required){d=!!a.customField$jscomp$6.typedDefaultValue;var e=void 0,f=void 0,g=(e=b)==null?void 0:(f=e.snapshot.customField)==null?void 0:f.some(function(k){return function(l){return l.customFieldId===k.customField$jscomp$6.customFieldId}}(a));if(!d&&!g)return!1}return!0},p2a=function(a){var b=a.map(function(c){return c.detailedUserType});
return b.includes("PUBLIC")?3:b.includes("EXTERNAL")?0:b.includes("TVC")?4:a.map(function(c){return c.principalType}).includes("GROUP")?1:b.includes("UNRESTRICTED_GOOGLER")?5:2},q2a=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"}},r2a=function(a){var b=a.userPrincipals;var c=a.newEditors;var d=a.newImplicitUsers;var e=a.isExternalSession;var f=a.issueId;a=a.actionIssueId;
b=p2a(b);return{title:"Allow "+(b===1?"members of the group to ":q2a(b,e)+" to ")+(c.length===0?"comment?":"edit?"),content:"Adding "+d.join(", ")+" will allow "+(b===1?"all members of the group":"them")+" to "+(c.length===0?"comment on ":"edit ")+(f===a?"issue "+a:"canonical issue "+a)+"."}},s2a=function(a){a=a?a.taskResourceType==="DRIVE"?a.driveResource.fileType:a.taskResourceType:void 0;switch(a){case "DOCUMENT":return"drive-doc";case "PRESENTATION":return"drive-slide";case "SPREADSHEET":return"drive-sheet";
case "CHANGELIST":return"critique-logo";case "GERRIT":return"gerrit-logo";case "GOOGLE_TASKS":return"google-tasks-logo";case "IRM":return"irm-logo";case "ISSUE":return"bug_report_24px";case "LAUNCH":return"launch-logo";default:return"link"}},cr=function(a){return{id:a,triage:{phase:"NEW",subphase:"TRIAGE_SUBPHASE_UNSPECIFIED"},clusterIds:[]}},t2a=function(a,b){var c=new Map(b.map(function(d){return[d==null?void 0:d.id,d]}));return a.filter(Pm).map(function(d){return Object.assign({},d,{experimentalFields:c.get(d.issueId)})})},
v2a=function(){return u2a.performance&&u2a.PerformanceObserver&&typeof window.performance.getEntriesByType==="function"&&typeof window.performance.mark==="function"&&typeof window.performance.measure==="function"},w2a=function(a){var b=a.name;if(b!=null&&(a=Math.round(a.duration),!isNaN(a))){var c=m(b.split(" -> "));b=c.next().value;c=c.next().value;if(b!=null&&c!=null)return{from:b,to:c,duration:a}}},y2a=function(a){a=a.sort(function(d,e){return d.startTime-e.startTime});var b=a.find(x2a);if(b!=
null){var c=b.name.split(" -> ")[1];return a.find(function(d){return d.name===c})}},C2a=function(){var a=window.performance.getEntries(),b=y2a(a);if(b==null)return[];var c=b.startTime;return a.filter(z2a).filter(A2a).filter(B2a).filter(function(d){return d.startTime<=c})},x2a=function(a){var b=a.entryType;a=a.name;return b==="measure"&&a.startsWith("browserStart")},z2a=function(a){return!a.name.startsWith("Zone")},B2a=function(a){return a.entryType==="resource"},D2a=function(a){return a.initiatorType===
"xmlhttprequest"},A2a=function(a){return a.name.match(/\.html$/)==null},E2a=function(a,b){var c=b.transferSize||0,d=a.count+1,e=a.cacheHits+(c===0?1:0);return{count:d,duration:a.duration+b.duration,transferSize:a.transferSize+c,cacheHits:e,cacheHitRate:e/d}},G2a=function(){return typeof F2a.gtag==="function"},H2a=function(a){if(a!=null&&!(a.duration>=3E4))return{hitType:"event",eventCategory:"cf",eventAction:a.from,eventLabel:a.to,eventValue:a.duration}},K2a=function(a){a=a.getEntries().map(w2a).map(H2a);
a=m(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(c&&c.hitType){b=c.hitType;var d=c.eventAction;var e=c.eventCategory,f=c.eventLabel;c=c.eventValue;d=Object.assign({},d!==void 0?{event_action:d}:{},e!==void 0?{event_category:e}:{},f!==void 0?{event_label:f}:{},c!==void 0?{event_value:c}:{});I2a(b,d)}}setTimeout(J2a,100)},J2a=function(){if(!L2a){var a=C2a(),b=a.filter(function(c){return!D2a(c)}).reduce(E2a,M2a());dr("r-until-cf","asset","count",b.count);dr("r-until-cf","asset","transferSize",
b.transferSize);dr("r-until-cf","asset","duration",b.duration);dr("r-until-cf","asset","cacheHitRate",b.cacheHitRate);a=a.filter(D2a).reduce(E2a,M2a());dr("r-until-cf","xhr","count",a.count);dr("r-until-cf","xhr","transferSize",a.transferSize);dr("r-until-cf","xhr","duration",a.duration);L2a=!0}},dr=function(a,b,c,d){I2a(a,Object.assign({},b!==void 0?{event_action:b}:{},c!==void 0?{event_label:c}:{},d!==void 0?{event_value:d}:{}))},er=function(a,b){N2a[a]=b;O2a&&Wm("[stub gtag.ts] Event scoped dimension set {"+
a+": "+b+")}")},P2a=function(a){if(G2a()){var b={};F2a.gtag("set","user_properties",(b.dimension13=a,b))}O2a&&Wm("[stub gtag.ts] gtag('set', 'user_properties', {dimension13: "+a+")}")},I2a=function(a,b){b!=null&&(Q2a("page_location","Scrubbed Page URL"),Q2a("page_title","Scrubbed Page Title"),b=Object.assign({},N2a,b),G2a()&&F2a.gtag("event",a,b),O2a&&Wm("[stub gtag.ts] gtag('event')",a,b))},Q2a=function(a,b){if(G2a()){var c={};F2a.gtag("set",(c[a]=b,c))}O2a&&Wm("[stub gtag.ts] gtag('set', {"+a+": "+
b+")}")},V2a=function(){var a=a===void 0?dr:a;var b=Date.now(),c=fr(b);fr(R2a())!==c?a("retention","first-visit"):(c=fr(b),fr(R2a())===c&&S2a()===1&&a("retention","second-visit"));a=fr(b);fr(R2a())!==a?T2a(1):(a=S2a()||0,T2a(a+1));U2a(b)},fr=function(a){if(a!=null)return(new Date(a)).toLocaleDateString()},W2a=function(){return $c.apply(0,arguments).map(String).join("__")},Y2a=function(){for(var a={},b=m(Object.entries(X2a)),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;
d>1&&(a[c]=d)}return a},Z2a=function(){var a=Object.values(X2a),b=a.map(function(c){return c-1}).reduce(MTa,0);a=a.reduce(MTa,0);return{total:a,redundant:b,redundancyRatio:Math.round(b/a*100)/100}},$2a=function(a){for(var b=[];a;){var c=void 0,d=void 0;b.push((d=(c=a.routeConfig)==null?void 0:c.path)!=null?d:"");c=void 0;a=(c=a.children)==null?void 0:c[0]}return b.join("/")},a3a=function(a){return a instanceof Pj},b3a=function(a){return a instanceof gr},c3a=function(a){return function(b){return new Td(function(c){return b.subscribe(function(d){return void a.run(function(){return void c.next(d)})},
function(d){return void a.run(function(){return void c.error(d)})},function(){return void a.run(function(){return void c.complete()})})})}},d3a=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},g3a=function(){var a=window.defrostedResourcesJspb;if(a&&Array.isArray(a))if(a=nea(e3a,f3a(a))){if((a=Bi(a,hr,1,Ci()))&&a.length===1)return Oq(a[0])}else Xm("Defroster: found data, but it was unparseable. This is unintended but will not cause a user-visible issue.")},
h3a=function(a){if(a){var b=a?{ancestors:a.ancestors,childIssueCount:a.childIssueCount,relatedLinks:a.relatedLinks,statusUpdate:a.statusUpdate,description:a.description}:void 0;return Object.assign({},{issueId:a.issueId},b)}},j3a=function(a){var b=m(a.split("-"));a=b.next().value;b=b.next().value;return{issueId:a,recommendationType:b}},k3a=function(a){var b=new ir;b=Io(b,1,Number(a.targetIssueId));return Io(b,2,a.afterIssueId?Number(a.afterIssueId):void 0)},l3a=function(a){return{targetIssueId:String(pn(a,
1)),afterIssueId:Ym(pn(a,2))?String(pn(a,2)):void 0}},m3a=function(a){return{sourceIssueId:Ym(pn(a,3)),issueRelationships:a.getIssueRelationshipsList().map(l3a),totalSize:a.getTotalSize()}},n3a=function(a){var b=[];a=m(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;b.push({issueId:c,relatedChildren:d.issueRelationships,totalChildCount:d.totalSize})}return b},o3a=function(a){return!(a==null||!a.relatedChildren.length)},q3a=function(a,b){var c=
[].concat(q(a));a=new Set(a.map(function(g){return g.targetIssueId}));b=m(b);for(var d=b.next(),e={};!d.done;e={newItem$jscomp$6:void 0},d=b.next())if(e.newItem$jscomp$6=d.value,!a.has(e.newItem$jscomp$6.targetIssueId)){d=c.findIndex(function(g){return function(k){return k.targetIssueId===g.newItem$jscomp$6.afterIssueId}}(e));var f=void 0;f=e.newItem$jscomp$6.afterIssueId?d===-1?c.length:d+1:0;c.splice(f,0,e.newItem$jscomp$6);a.add(e.newItem$jscomp$6.targetIssueId)}return p3a(c)},r3a=function(a,b){return p3a(a.filter(function(c){return c.targetIssueId!==
b}))},p3a=function(a){for(var b=[],c=m(a.entries()),d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;var f=e.next().value;e=void 0;d=Object.assign({},f,{afterIssueId:(e=a[d-1])==null?void 0:e.targetIssueId});b.push(d)}return b},s3a=function(a){var b=new Map;a=m(a);for(var c=a.next(),d={};!c.done;d={previousOperation:void 0},c=a.next()){var e=c.value;c=e.issues.map(function(f){return f.issueId}).join(",");d.previousOperation=b.get(c);d.previousOperation?(e={newParentId:e.newParentId,
newRelations:e.newRelations,issues:d.previousOperation.issues,eventTimestamps:[].concat(q(d.previousOperation.eventTimestamps),q(e.eventTimestamps)),newParentChildrenSnapshot:e.newParentChildrenSnapshot,done:e.done},e.done.promise.then(d.previousOperation.done.resolve).catch(function(f){return function(g){f.previousOperation.done.reject(g);throw g;}}(d)),b.set(c,e)):b.set(c,e)}b=[].concat(q(b.values()));a=m(b);d=a.next();for(c={};!d.done;c={operation$jscomp$6:void 0},d=a.next())c.operation$jscomp$6=
d.value,c.operation$jscomp$6.newRelations=c.operation$jscomp$6.newRelations.map(function(f){return function(g){return f.operation$jscomp$6.newParentChildrenSnapshot.find(function(k){return k.targetIssueId===g.targetIssueId})}}(c));return b.sort(function(f,g){var k=f.newParentChildrenSnapshot,l=g.newParentChildrenSnapshot;f=Math.min.apply(Math,q(f.issues.map(function(r){return k.findIndex(function(w){return w.targetIssueId===r.issueId})})));g=Math.min.apply(Math,q(g.issues.map(function(r){return l.findIndex(function(w){return w.targetIssueId===
r.issueId})})));return f===g?0:f<g?-1:1})},y3a=function(a){return a?(a=a.getResponse())?Bi(a,t3a,1,Ci()).map(function(b){if(b&&b.getObjective()){var c,d;var e=b.getObjective(),f=(c=b.getUri())==null?void 0:c.getResourcePath();if(e&&e.getId()){var g,k;c={objectiveId:f!=null?f:e.getId(),title:e.getTitle(),url:wEa(e.getUrl()),priorityRating:u3a(e==null?void 0:(g=e.getPriority())==null?void 0:wi(g,1)),keyResults:(k=Bi(e,v3a,7,Ci()).map(w3a).filter(Pm))!=null?k:[]}}else c=void 0;b={objective:c,periodLabel:(d=
X(b,x3a,4))==null?void 0:d.getLabel()}}else b=void 0;return b}).filter(Pm):[]:[]},w3a=function(a){if(a&&a.getId()){var b;return{keyResultId:a.getId(),title:a.getTitle(),url:wEa(a.getUrl()),priorityRating:u3a(a==null?void 0:(b=a.getPriority())==null?void 0:wi(b,1))}}},u3a=function(a){if(!a)return"RATING_UNSPECIFIED";switch(a){case 1:return"P0";case 2:return"P1";case 3:return"P2";case 4:return"P3";case 5:return"P4";default:return"RATING_UNSPECIFIED"}},B3a=function(a){return a.getResponsesList().map(function(b){return Bi(b,
z3a,1,Ci()).map(A3a)}).flat().filter(function(b){return b.signals.length>0})},A3a=function(a){var b=C3a(a.getTask());a=Bi(a,D3a,2,Ci());return{task:b,signals:a.map(E3a).filter(Pm)}},G3a=function(a){return a.getResponsesList().map(function(b){return Bi(b,F3a,1,Ci()).map(C3a).filter(Pm)}).flat()},C3a=function(a){if(a){var b=a.getTaskId(),c=H3a(wi(a,2)),d=a.getTitle(),e=bn(a.getCreatedTimestamp()),f=bn(a.getLastModifiedTimestamp()),g=a.getExternalLink();var k=Bi(a,I3a,7,Ci());b={taskId:b,taskResourceType:c,
title:d,createdTimestamp:e,lastModifiedTimestamp:f,externalLink:g,resourceRelationships:k.map(J3a),isStaleTask:Fi(a,13),snoozeUntilTimestamp:bn(X(a,Si,14)),manualSignalTimestamp:bn(X(a,Si,15))};a.hasDriveResource()?(a=a.getDriveResource(),a={fileType:K3a[wi(a,1)],lastMentionTimestamp:bn(X(a,Si,2)),lastMentionLink:ui(a,4),docwrapRequestTimestamp:bn(X(a,Si,3)),docwrapRequestLink:ui(a,5)},b.driveResource=a):Qi(a,L3a,9,M3a)&&(a=bm(a,L3a,9,M3a),a={priority:yp[a.getPriority()],accessLevel:yVa[a.getAccessLevel()],
hotlistIds:a.getHotlistIdsList_asLegacyNumberOrString(Jm)},b.issueResource=a);return b}},J3a=function(a){return{category:N3a[a.getCategory()],roleName:ui(a,2)}},E3a=function(a){var b={timestamp:bn(a.getTimestamp()),url:wEa(a.getUrl()),signalStatus:Fi(a,8)?1:0};if(Qi(a,O3a,3,jr)){a=bm(a,O3a,3,jr);var c={signal:P3a[a.getSignal()]};kr.has(c.signal)?(lr(a,2,Q3a)!=null&&(c.commentId=a.getCommentId()),a=c):a=null;if(!a)return null;b.driveAlert=a}else if(Qi(a,mr,5,jr)){c=bm(a,mr,5,jr);a={signal:R3a[c.getSignal()]};
if(kr.has(a.signal)){xi(c,dn,4)&&(a.reviewEstimate=HRa(X(c,dn,4)));c=X(c,S3a,5);var d=c==null?void 0:bm(c,T3a,2,U3a);c=d?{currentAvailability:{comeBackTimestamp:bn(d.getComeBackTimestamp())}}:(c=c==null?void 0:bm(c,V3a,1,U3a))?{futureAvailability:{comeBackTimestamp:bn(c.getComeBackTimestamp()),futureOooTimestamp:bn(X(c,Si,1))}}:void 0;a.clAuthorAvailability=c}else a=null;if(!a)return null;b.changelistAlert=a}else if(Qi(a,W3a,4,jr)){c=bm(a,W3a,4,jr);a={signal:X3a[c.getSignal()]};if(kr.has(a.signal)){if(d=
c.getCommentNumbers())d=Dm(d,1,Ci(Jm)),d.length>0&&(a.commentNumbers=d);if(c=bm(c,Y3a,3,Z3a))a.configurableAlertSubscriptionId=ui(c,1)}else a=null;if(!a)return null;b.issueAlert=a}else if(Qi(a,$3a,7,jr)){a=bm(a,$3a,7,jr);a={signal:a4a[a.getSignal()]};a=kr.has(a.signal)?a:null;if(!a)return null;b.gerritAlert=a}else if(Qi(a,b4a,9,jr)){a=bm(a,b4a,9,jr);a={signal:jTa[a.getSignal()]};a=kr.has(a.signal)?a:null;if(!a)return null;b.googleTasksAlert=a}else if(Qi(a,c4a,10,jr)){a=bm(a,c4a,10,jr);a={signal:kTa[a.getSignal()]};
a=kr.has(a.signal)?a:null;if(!a)return null;b.irmAlert=a}return b},H3a=function(a){switch(a){case 1:return"CHANGELIST";case 2:return"DRIVE";case 3:return"ISSUE";case 4:return"LAUNCH";case 5:return"GERRIT";case 6:return"GOOGLE_TASKS";case 7:return"IRM";default:return"TASK_RESOURCE_TYPE_UNSPECIFIED"}},d4a=function(a){switch(a){case "CHANGELIST":return 1;case "DRIVE":return 2;case "ISSUE":return 3;case "LAUNCH":return 4;case "GERRIT":return 5;case "GOOGLE_TASKS":return 6;case "IRM":return 7;default:return 0}},
e4a=function(a){switch(a){case 0:return 0;case 1:return 5;case 2:return 2;default:return 0}},f4a=function(a){if(!a)return 0;switch(a){case "ISSUE_TYPE_GROUPS_UNSPECIFIED":return 0;case "STANDARD_TYPES":return 1;case "WTDM_TYPES":return 2;default:return 0}},h4a=function(a){return a?g4a[a]:g4a.ISSUE_SIGNAL_UNSPECIFIED},j4a=function(a){return a?i4a[a]:i4a.DRIVE_SIGNAL_UNSPECIFIED},l4a=function(a){return a?k4a[a]:k4a.CHANGELIST_SIGNAL_UNSPECIFIED},n4a=function(a){return a?m4a[a]:m4a.GERRIT_CHANGE_SIGNAL_UNSPECIFIED},
o4a=function(a){return a?bTa[a]:bTa.GOOGLE_TASKS_SIGNAL_UNSPECIFIED},p4a=function(a){return a?dTa[a]:dTa.IRM_SIGNAL_UNSPECIFIED},q4a=function(a){if(a=a.getResponse())return{commentId:a.getCommentId(),authorDisplayName:ui(a,2),content:a.getContent(),lastModifiedTimestamp:bn(X(a,Si,4))}},s4a=function(a,b){if(!b||!b.getData())return[];a=b.getContextsMap().get(a);if(!a)return[];var c=a.getIterationIdsList_asString(),d,e;return Array.from((e=(d=b.getData())==null?void 0:d.getIterationsMap())!=null?e:[],
function(f){if(c.some(function(r){return r===f[0].toString()})){var g=f[1],k,l=(k=b.getData())==null?void 0:k.getWorkspacesMap().get(g.getWorkspaceId());return r4a(g,l)}}).filter(Pm)},r4a=function(a,b){if(a&&a.getType()===3){var c=(new Date).getTime()/1E3,d=bn(a.getStartTime()),e=bn(a.getEndTime());c=c>=d.seconds&&c<e.seconds;b=b&&b.getWorkspaceId_asString()!=="0"?{workspaceId:b.getWorkspaceId_asString(),name:b.getName()}:void 0;if(c&&b)return{name:a.getName(),iterationId:a.getIterationId_asString(),
workspace:b,startTimestamp:d,endTimestamp:e}}},v4a=function(a){var b=a.getResponse();return b&&Bi(b,nr,1,Ci())&&X(b,t4a,2)?Bi(b,nr,1,Ci()).map(function(c){var d=X(b,t4a,2);if(c&&d){var e=c.getId();d=s4a(c.getId(),d);var f=c.getId(),g;c=c&&wc(c,15,u4a,Vb)?(g=wc(c,15,u4a,Vb).get(f))==null?void 0:Cm(g,1,Ci()):void 0;e={workItemId:e,iterations:d,okrIds:c}}else e=void 0;return e}).filter(Pm):[]},or=function(a){return a==="CRITIQUE"?"CHANGELIST":a==="DRIVE"?"DRIVE":a==="BUGANIZER"?"ISSUE":a==="WTDM"||a===
"NON_WTDM"?"ISSUE":a==="GERRIT"?"GERRIT":a==="GOOGLE_TASKS"?"GOOGLE_TASKS":a==="IRM"?"IRM":"TASK_RESOURCE_TYPE_UNSPECIFIED"},z4a=function(a){var b={};a=m(wc(a,1,w4a,Vb,jb).entries());for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;b[c]={principalType:x4a[wi(d,1)],detailedUserType:y4a[wi(d,2)]}}return b},A4a=function(a,b){return a.map(function(c){return b[c]||null})},B4a=function(){return{principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}},C4a=function(a){switch(a){case 1:return"daily";
case 2:return"weekly";case 3:return"monthly";case 0:break;default:wb(a)}},D4a=function(a){switch(a){case "daily":return 1;case "weekly":return 2;case "monthly":return 3;default:return wb(a)}},E4a=function(a){var b={id:a.getId()};a.getVersion()&&(b.version=a.getVersion());return b},F4a=function(a){var b=(new pr).setId(a.id);a.version&&b.setVersion(a.version);return b},G4a=function(a){return{hours:a.getHours(),minutes:a.getMinutes(),seconds:a.getSeconds(),nanos:a.getNanos()}},H4a=function(a){return(new qr).setHours(a.hours).setMinutes(a.minutes).setSeconds(a.seconds).setNanos(a.nanos)},
I4a=function(a){var b;return((b=a.getTeamSloEditPolicy())==null?void 0:wi(b,2))===1},J4a=function(a){var b;return((b=X(a,rr,1,jb))==null?void 0:b.getEffectiveSloEditPolicy())===1},L4a=function(a){var b=X(a,Em,2),c=C4a(a.getFrequency()),d=a.getTimeZone(),e=a.getTimeOfDay();if(b==null)throw Error("he");if(c==null)throw Error("ie");if(d==null)throw Error("je");if(e==null)throw Error("ke");var f=a.getId_asLegacyNumberOrString();b=Km(b);var g=a.getOrdinal();d=E4a(d);e=G4a(e);var k=em(a,7),l=a.getTypesList().map(EWa);
a=K4a(a,9,Ci(Jm));return{id:f,lead:b,frequency:c,ordinal:g,timeZone:d,timeOfDay:e,daysRemaining:k,types:l,sloIds:a}},M4a=function(a){var b=(new sr).setId(a.id),c=Im(a.lead);b=Mi(b,Em,2,c).setFrequency(D4a(a.frequency)).setOrdinal(a.ordinal).setTimeZone(F4a(a.timeZone)).setTimeOfDay(H4a(a.timeOfDay)).setDaysRemaining(a.daysRemaining).setTypesList(a.types.map(FWa));return tr(b,9,a.sloIds)},N4a=function(a){return MWa(a.getIt())},O4a=function(a){var b=new ur,c=b.setIt;var d=(new vr).setSloId(a.sloId).setName(a.name).setDescription(a.description).setParentId(a.parentId);
var e=a.elements.map(RWa);d=Ni(d,5,e);e=a.effectiveElements.map(RWa);d=Ni(d,6,e).setIsArchived(a.isArchived);a:switch(a=a.alertState,a){case "OFF":a=1;break a;case "ON":a=2;break a;default:throw Error("qd`"+a);}a=Hm(d,8,a);return c.call(b,a)},P4a=function(a){return{id:a.getId_asString(),name:a.getName(),description:a.getDescription()}},Q4a=function(a){if(a=a.getIt())return hZa(a);throw Error("le");},R4a=function(a){return{teamId:a.getId_asString(),name:a.getName(),description:a.getDescription(),pathNames:a.getPathNamesList(Jm),
pathIds:a.getPathIdsList_asString()}},S4a=function(a){return{teamId:a,version:0,name:a,description:"",pathIds:[a],pathNames:[a],collapsedPathNames:[a],members:[],deleted:!1,slo:{inherit:!1,sloId:"0",comment:"",sourceTeamId:"0"}}},T4a=function(a){return{id:a,triage:[{id:0}],playbooks:[]}},U4a=function(a){return a.endsWith("?")?a.slice(0,a.length-1):a},V4a=function(a){var b;return(b=Lm(a))!=null?b:null},W4a=function(a){var b;return(b=Mm(a))!=null?b:null},X4a=function(a,b){b=(b===void 0?{}:b).comment;
return{path:"/issues/"+a,fragment:b?"comment"+b:void 0}},zr=function(a,b){b=b===void 0?{}:b;b=b===void 0?{}: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},Y4a=function(a){var b={};a=(b.component=a||void 0,b);a=a===void 0?{}:a;return{path:"/issues/new",queryParams:a}},Z4a=function(a){return{path:"/components/"+a}},$4a=function(a){var b={};a&&(b.componentId=a);return{path:"/components",queryParams:b}},
a5a=function(a){return{path:"/slos/"+a+"/edit"}},b5a=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.starred)||!1},c5a=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.lastViewedTimeMicros)||0},d5a=function(a){var b;return(b=ho(a))==null?void 0:b.title},e5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.status)!=null?c:void 0},f5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.priority)!=null?c:void 0},g5a=function(a){var b,c;return(c=(b=ho(a))==
null?void 0:b.assigneeUser)!=null?c:void 0},h5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.reporterUser)!=null?c:void 0},i5a=function(a){var b;a=a==null?void 0:(b=a.aggregatedData)==null?void 0:b.teamId;return Mm(a)},j5a=function(a){var b;a=(b=ho(a))==null?void 0:b.componentId;return Mm(a)},k5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.ccUsers)!=null?c:[]},l5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.issueAccessLimitLevel)!=null?c:"LIMIT_NONE"},m5a=function(a){var b,
c;return(c=(b=ho(a))==null?void 0:b.collaboratorsUsers)!=null?c:[]},n5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.type)!=null?c:void 0},o5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.foundInVersion)!=null?c:[]},p5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.targetedToVersion)!=null?c:[]},q5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.changelist)!=null?c:[]},r5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.postmortems)!=null?c:[]},s5a=function(a){var b;
return((b=ho(a))==null?void 0:b.inProd)||!1},t5a=function(a){var b;return(b=ho(a))==null?void 0:b.effort},u5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.staffing)!=null?c:void 0},v5a=function(a){var b;return a==null?void 0:(b=a.aggregatedData)==null?void 0:b.voteCount},w5a=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.voted)||!1},y5a=function(a){return x5a(a)},x5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.isDeleted)!=null?c:!1},A5a=function(a){return z5a(a)},
z5a=function(a){var b;return a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel},B5a=function(a){return(a=a==null?void 0:a.aggregatedData)&&Math.round(a.modifiedTimeMicros/1E3)},D5a=function(a){return C5a(a)},C5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.retention)!=null?c:void 0},E5a=function(a){var b,c;return(c=(b=ho(a))==null?void 0:b.duplicateOfIssueId)!=null?c:void 0},G5a=function(a){return F5a(a)},F5a=function(a){var b,c;return(c=a==null?void 0:(b=a.aggregatedData)==null?
void 0:b.retentionState)!=null?c:void 0},H5a=function(a){var b;return Mm(a==null?void 0:(b=a.aggregatedData)==null?void 0:b.sloId)},I5a=function(a){var b;return a==null?void 0:(b=a.aggregatedData)==null?void 0:b.createdTimeMicros},J5a=function(a){return a==null?void 0:a.effortSpec},K5a=function(a){a=J5a(a);return!(!a||!a.name&&!a.inherit)},L5a=function(a){return a==null?void 0:a.componentPathInfo},O5a=function(a){if(!a)return{};var b,c=m((b=a.match(M5a))!=null?b:[]);c.next();b=c.next().value;var d;
a=m((d=a.match(N5a))!=null?d:[]);a.next();d=a.next().value;return{commentNumber:Lm(b),commentVersion:Lm(d)}},Ar=function(a){var b;a.subscribe(function(c){b=c}).unsubscribe();return b},Br=function(a){var b=b===void 0?"":b;var c,d=!1;a.subscribe(function(e){d=!0;c=e}).unsubscribe();if(!d)throw Error("oe`"+b);return c},P5a=function(a){return DWa(a.getIt().getMentionsList(Jm)).map(function(b){return b.mentionedUser}).map(wm).map(function(b){return b||""})},Q5a=function(a){a=a.getIt();return a.hasFormattedComment()?
ap(a.getFormattedComment()):{}},R5a=function(a){switch(a.formattingMode){case "LITERAL":return ce({literalFormat:{content:Bh(a.comment)}});case "MARKDOWN":return a={markdownFormat:{content:Bh("")}},ce(a);case void 0:case "PLAIN":case "UNSPECIFIED_FORMATTING_MODE":return a={plainFormat:{plainSection:[{isQuoted:!1,content:Bh(a.comment)}]}},ce(a);default:return wb(a.formattingMode,"Unknown formatting mode: "+a.formattingMode)}},Cr=function(){return nf(function(a,b){return mm(a,b)})},S5a=function(){return function(a){return a.pipe(A(function(b){return{event:b,
timestamp:Date.now()}}),Yka(a.pipe(jf(1E4,Dr))))}},T5a=function(a){if(a&1){var b=t();K(0,"div",5)(1,"div",6);Q(2," Relative link may be malformed:\u00a0 ");K(3,"code");Q(4);L();K(5,"button",7);N("click",function(){u(b);var c=P(2);c.copyToClipboard();return v(c.hide())});M(6,"mat-icon",8);L()();K(7,"div",6);Q(8," Force open as: \u00a0 ");K(9,"a",9);N("click",function(c){u(b);var d=P(2);tTa(c)||(c.preventDefault(),c.stopPropagation(),Er(d.domSafe,"http://"+d.originalHref));return v(d.hide())});Q(10);
L()()()}a&2&&(a=P(2),B(4),yg(a.originalHref),B(5),I("href",Eg("http://",a.originalHref),Ne),B(),S(" http://",a.originalHref," "))},U5a=function(a){a&1&&F(0,T5a,11,4,"div",5);a&2&&(a=P(),G(a.opened?0:-1))},X5a=function(a){var b=[],c=[];a=[].concat(q(a)).sort(V5a);a=W5a(a);a=m(a);for(var d=a.next(),e={};!d.done;e={name$jscomp$463:void 0,operator$jscomp$5:void 0},d=a.next())d=d.value,e.name$jscomp$463=d.name,e.operator$jscomp$5=d.operator,d=d.values,d.length!==0&&b.push(d.map(function(f){return function(g){return hca(g)||
jca(g)?f.name$jscomp$463+f.operator$jscomp$5+g:f.name$jscomp$463+f.operator$jscomp$5+'"'+g+'"'}}(e)).join(" "));c.length>0&&b.push("filters="+encodeURIComponent(c.join(",")));return b.join(" ")},W5a=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.operator;var e=d.values;if(d=d.id)if(fca(hca)(e))b.push({name:d,operator:c,values:e});else if(fca(gca)(e))b.push({name:d,operator:c,values:e});else if(fca(jca)(e))b.push({name:d,operator:c,values:e});else throw Error("ze`"+
e);}return b},Fr=function(a,b,c){if(Y5a.includes(a)||Z5a.includes(a)||$5a.includes(a))return{id:a,operator:b,values:c};throw Error("Ae`"+a);},V5a=function(a,b){return a6a.indexOf(a.id)-a6a.indexOf(b.id)},b6a=function(a){switch(a){case "user":return"borg_user";case "job":case "job_regex":return"borg_job";case "cell":return"cell";case "index":return"task_index";case "attempt":return"task_attempt_uid";case "min_time":return"start_time";case "max_time":return"end_time";case "q":return"log_text_payload";
case "q_invert":return"log_text_payload";case "min_severity":return"severity";case "remote_log_name":return"log_name";case "process_name":return"process_name";case "trace_id":return"trace_id";case "span_id":return"span_id";case "job_uid":return"job_uid";case "process_id":return"local_process_id";case "src_file":case "inverted_call_site_regex":return"site_path";default:return null}},c6a=function(a,b,c){var d=b6a(a);if(!d)return null;switch(a){case "user":case "job":case "cell":case "trace_id":case "span_id":case "job_uid":case "process_id":case "process_name":case "remote_log_name":return[Fr(d,
"=",[b])];case "job_regex":return[Fr(d,"=~",[b])];case "index":case "attempt":case "min_time":case "max_time":return[Fr(d,"=",[Number(b)])];case "q":return[Fr(d,"=",[b.startsWith("(?i)")?b.substring(4):b])];case "q_invert":return[Fr(d,"!=",[b.startsWith("(?i)")?b.substring(4):b])];case "src_file":return a=c.get("src_line"),[Fr(d,"=~",[a?b+":"+a:b])];case "inverted_call_site_regex":return[Fr(d,"!=",[].concat(q(b.split(","))))];default:return null}},d6a=function(a){switch(a){case "resource.labels.borg_user":return"borg_user";
case "resource.labels.borg_job":return"borg_job";case "resource.labels.borg_cell":return"cell";case "resource.labels.borg_task_index":return"task_index";case "resource.labels.borg_task_attempt_uid":return"task_attempt_uid";case "text_payload":return"log_text_payload";case "severity":return"severity";case "resource.labels.log_name":return"log_name";case "resource.labels.process_name":return"process_name";case "trace":return"trace_id";case "span_id":return"span_id";case "resource.labels.borg_job_uid":return"job_uid";
case "resource.labels.local_process_id":return"local_process_id";case "source_location.file":return"site_path";default:return null}},e6a=function(a,b){return this._trackRow(b)},f6a=function(a){a&1&&(K(0,"tr",0)(1,"td",3),Q(2),L()());a&2&&(a=P(),B(),vg("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),If("colspan",a.numCols),B(),S(" ",a.label," "))},g6a=function(a){a&1&&(K(0,"td",3),Q(1),L());a&2&&(a=P(2),vg("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),If("colspan",a._firstRowOffset),
B(),S(" ",a._firstRowOffset>=a.labelMinRequiredCells?a.label:""," "))},h6a=function(a,b){if(a&1){var c=t();K(0,"td",6)(1,"button",7);N("click",function(f){var g=u(c).$implicit,k=P(2);return v(k._cellClicked(g,f))})("focus",function(f){var g=u(c).$implicit,k=P(2);return v(k._emitActiveDateChange(g,f))});K(2,"span",8);Q(3);L();M(4,"span",9);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P().$index,e=P();vg("width",e._cellWidth)("padding-top",e._cellPadding)("padding-bottom",e._cellPadding);If("data-mat-row",
d)("data-mat-col",b);B();wg("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));I("ngClass",a.cssClasses)("tabindex",e._isActiveCell(d,b)?0:-1);If("aria-label",a.ariaLabel)("aria-disabled",!a.enabled||
null)("aria-pressed",e._isSelected(a.compareValue))("aria-current",e.todayValue===a.compareValue?"date":null)("aria-describedby",e._getDescribedby(a.compareValue));B();wg("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();S(" ",a.displayValue," ")}},j6a=function(a,b){a&1&&(K(0,"tr",1),F(1,g6a,2,6,"td",4),Nf(2,h6a,5,48,"td",5,i6a),L());if(a&2){a=b.$implicit;
b=b.$index;var c=P();B();G(b===0&&c._firstRowOffset?1:-1);B();Of(a)}},k6a=function(a){return(a==null?void 0:a.nodeName)==="TD"},l6a=function(a){if(k6a(a))var b=a;else if(k6a(a.parentNode))b=a.parentNode;else{var c;k6a((c=a.parentNode)==null?void 0:c.parentNode)&&(b=a.parentNode.parentNode)}var d;return((d=b)==null?void 0:d.getAttribute("data-mat-row"))!=null?b:null},m6a=function(a,b,c){return c!==null&&b!==c&&a<c&&a===b},n6a=function(a,b,c){return b!==null&&b!==c&&a>=b&&a===c},o6a=function(a,b,c,
d){return d&&b!==null&&c!==null&&b!==c&&a>=b&&a<=c},p6a=function(a){a=a.changedTouches[0];return document.elementFromPoint(a.clientX,a.clientY)},q6a=function(a,b){a&1&&(K(0,"th",2)(1,"span",6),Q(2),L(),K(3,"span",3),Q(4),L()());a&2&&(a=b.$implicit,B(2),yg(a.long),B(2),yg(a.narrow))},s6a=function(a,b,c,d,e){b=a.getYear(b);c=a.getYear(c);a=r6a(a,d,e);return Math.floor((b-a)/24)===Math.floor((c-a)/24)},t6a=function(a,b,c,d){return((a.getYear(b)-r6a(a,c,d))%24+24)%24},r6a=function(a,b,c){var d=0;c?d=
a.getYear(c)-24+1:b&&(d=a.getYear(b));return d},u6a=function(){},v6a=function(a){if(a&1){var b=t();K(0,"mat-month-view",4);Cg("activeDateChange",function(c){u(b);var d=P();Bg(d.activeDate,c)||(d.activeDate=c);return v(c)});N("_userSelection",function(c){u(b);var d=P();return v(d._dateSelected(c))})("dragStarted",function(c){u(b);var d=P();return v(d._dragStarted(c))})("dragEnded",function(c){u(b);var d=P();return v(d._dragEnded(c))});L()}a&2&&(a=P(),Ag("activeDate",a.activeDate),I("selected",a.selected)("dateFilter",
a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass)("comparisonStart",a.comparisonStart)("comparisonEnd",a.comparisonEnd)("startDateAccessibleName",a.startDateAccessibleName)("endDateAccessibleName",a.endDateAccessibleName)("activeDrag",a._activeDrag))},w6a=function(a){if(a&1){var b=t();K(0,"mat-year-view",5);Cg("activeDateChange",function(c){u(b);var d=P();Bg(d.activeDate,c)||(d.activeDate=c);return v(c)});N("monthSelected",function(c){u(b);var d=P();return v(d._monthSelectedInYearView(c))})("selectedChange",
function(c){u(b);var d=P();return v(d._goToDateInView(c,"month"))});L()}a&2&&(a=P(),Ag("activeDate",a.activeDate),I("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},x6a=function(a){if(a&1){var b=t();K(0,"mat-multi-year-view",6);Cg("activeDateChange",function(c){u(b);var d=P();Bg(d.activeDate,c)||(d.activeDate=c);return v(c)});N("yearSelected",function(c){u(b);var d=P();return v(d._yearSelectedInMultiYearView(c))})("selectedChange",
function(c){u(b);var d=P();return v(d._goToDateInView(c,"year"))});L()}a&2&&(a=P(),Ag("activeDate",a.activeDate),I("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},y6a=function(){},z6a=function(a){a&1&&(yd(),K(0,"svg",2),M(1,"path",3),L())},B6a=function(a){a=a.searchParams;var b=a.get("ota"),c=a.get("youtube_persona"),d=a.getAll("label");if(b)return{account:b,accountType:"ota"};if(c)return{account:c,accountType:"youtube_persona"};
b=m(d);for(c=b.next();!c.done;c=b.next()){c=c.value;d=m(A6a.keys());for(var e=d.next();!e.done;e=d.next())if(e=e.value,c.startsWith(e))return{account:c.replace(e,""),accountType:A6a.get(e)}}var f,g;return{account:(g=(f=a.get("account"))!=null?f:a.get("gaia"))!=null?g:"",accountType:"gaia"}},C6a=function(a){a&1&&(K(0,"b-glue"),M(1,"mat-icon",4),L())},D6a=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},E6a=function(a,b){if(a&1){var c=t();K(0,"span",6);F(1,D6a,1,1,"mat-icon",
7);K(2,"a",8);N("click",function(f){var g=u(c).$implicit,k=P(3);k.openLink(f,g.href);return v(k.hide())});Q(3);L()();K(4,"button",9);N("click",function(){var f=u(c).$implicit,g=P(3);g.copyToClipboard(f.originalHref);return v(g.hide())});M(5,"mat-icon",10);L()}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;var e=P(3);B();G(a.icon?1:-1);B();I("href",a.originalHref,Ne)("rel",e.EXTERNAL_LINK_REL);B();yg(a.label);B();wg("final",d===b-1)}},G6a=function(a){a&1&&(K(0,"div",5),Nf(1,E6a,6,6,null,null,F6a),
L());a&2&&(a=P(2),B(),Of(a.urls))},H6a=function(a){a&1&&F(0,G6a,3,0,"div",5);a&2&&(a=P(),G(a.opened?0:-1))},I6a=function(a){a&1&&(K(0,"div",4),Vf(1,5),L());a&2&&(a=P(),I("onedevIsHovercardReady",a.hovercardReady))},J6a=function(a){var b=a.filter(function(k){var l;return(l=k.experimentalFields)==null?void 0:l.clusterIds.length});a=new Map;b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=m(c.experimentalFields.clusterIds),e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,g=(f=a.get(e))!=
null?f:new Set;g.add(c.issueId);a.set(e,g)}}a=[].concat(q(a.values())).map(function(k){return[].concat(q(k))});return sq(a,function(k){return k.sort().join(",")}).filter(function(k){return k.length>=3}).sort(function(k,l){return l.length-k.length}).slice(0,3).map(function(k){return[].concat(q(k))})},Gr=function(a){if(!a)return"NEW";var b,c,d=(c=(b=a.experimentalFields)==null?void 0:b.triage.phase)!=null?c:"UNSPECIFIED",e;b=(e=a.snapshot[0])==null?void 0:e.status;if(jo(a)&&(d==="NEW"||d==="UNSPECIFIED"))return"NEW";
if(jo(a)&&d==="CONFIRMED")return"CONFIRMED";if(jo(a)&&d==="IN_PROGRESS")return"IN_PROGRESS";if(d==="FIXED"||b==="FIXED"||b==="VERIFIED")return"FIXED";if(d==="WONT_FIX"||b==="NOT_REPRODUCIBLE"||b==="INTENDED_BEHAVIOR"||b==="OBSOLETE"||b==="INFEASIBLE")return"WONT_FIX";if(b!=="DUPLICATE")return"NEW"},Hr=function(a){if(a){var b=Gr(a),c,d,e=((c=a.experimentalFields)==null?void 0:c.triage.subphase)!=="TRIAGE_SUBPHASE_UNSPECIFIED"?(d=a.experimentalFields)==null?void 0:d.triage.subphase:void 0,f;if(((f=
a.snapshot[0])==null?void 0:f.status)!=="DUPLICATE"){if(b==="NEW"||b==="UNSPECIFIED")return e==="REPORTER_RESPONDED"?"REPORTER_RESPONDED":e==="NEEDS_INFO"?"NEEDS_INFO":"PENDING_TRIAGE";if(b==="CONFIRMED"||b==="IN_PROGRESS")return e;if(b==="FIXED"||b==="WONT_FIX")return jo(a)?"REOPENED":e;throw Error("Ce");}}},L6a=function(a,b){return b.length?a.filter(function(c){return[].concat(q(b)).some(function(d){return K6a(c,d)})}):a},M6a=function(a,b){return b.length?a.filter(function(c){return[].concat(q(b)).every(function(d){return d.check(c)})}):
a},K6a=function(a,b){var c,d;return!((c=a.experimentalFields)==null?0:(d=c.triage)==null?0:d.dismissed)&&b.check(a)},Ir=function(a,b){return b!=null&&b.displayName?b.displayName:a+" triage"},N6a=function(a,b,c){return c!=null&&c.displayName?ce(c.displayName):a.pipe(A(function(d){var e;return(e=d==null?void 0:d.name)!=null?e:b}),A(function(d){return Ir(d)}))},O6a=function(a,b){return{displayAs:"Team: "+a.name,queryAtom:"teamId:"+a.teamId+(b===void 0||b?"+":""),tooltip:"Issues within this team's components"}},
P6a=function(a,b){return{displayAs:"Component: "+a.name,queryAtom:"componentId:"+a.componentId+(b===void 0||b?"+":""),tooltip:"Issues within this component"}},Jr=function(a,b,c){c=c===void 0?!1:c;if(!b)return"";Array.isArray(b)||(b=[b]);b=b.filter(Pm);return b.length===0?"":a+":("+b.join("|")+")"+(c?"+":"")},Kr=function(){return $c.apply(0,arguments).filter(Boolean).join(" AND ")},Q6a=function(a){return{filter:a,pageSize:250,sort:"created_time:desc",custom:"byExperimentalPhase"}},R6a=function(a,b){return a.filter(function(c){return Gr(c)===
b})},Lr=function(a){return typeof a==="string"?"buganizer.drafts."+a:"buganizer.drafts.labeled."+a.label},S6a=function(a){if(a&1){var b=t();K(0,"button",5);N("click",function(){u(b);var c=P();return v(c.dialogRef.close(!1))});Q(1);L()}a&2&&(a=P(),B(),S(" ",a.cancelButtonText," "))},T6a=function(a){var b=[];a=[].concat.apply([],q(a.map(function(e){return e.actions})));a=m(a);for(var c=a.next(),d={};!c.done;d={action$jscomp$146:void 0},c=a.next())d.action$jscomp$146=c.value,b.some(function(e){return function(f){return mm(e.action$jscomp$146,
f)}}(d))||b.push(d.action$jscomp$146);return b},U6a=function(a){return Array.from(new Set([].concat.apply([],q(a.map(function(b){return b.issueIds})))))},W6a=function(a){return V6a.has(a)},X6a=function(a){return{encryptedMedia:Fda(Sn(a,1,void 0,jb)),errorMessage:a.getErrorMessage()}},Z6a=function(a){var b=new Y6a;b=Mr(b,1,gb(a.attachment,!1,!0));if(a.contentJudgement!==void 0){var c=b.setContentJudgement;a=a.contentJudgement;a=(new Nr).setIt(HVa(a));c.call(b,a)}return b},a7a=function(a){var b;return{attachments:((b=
a.getAttachmentsList())!=null?b:[]).map($6a)}},$6a=function(a){if(a!=null)return WVa(a.getIt())},b7a=function(a,b){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=b.$implicit,B(),yg(a))},e7a=function(a){a=Math.abs(a);if(a<6E4)return"0 minutes";var b=Math.floor(a/864E5);a%=864E5;var c=Math.floor(a/36E5),d=Math.floor(a%36E5/6E4),e=c7a(b),f=c7a(c),g=c7a(d);a=b*(c+d)?" ":"";var k=c*d?" ":"";b=d7a("{COUNT, plural, =0 {}=1 {{TEXT} day}other {{TEXT} days}}",b,e);c=d7a("{COUNT, plural, =0 {}=1 {{TEXT} hour}other {{TEXT} hours}}",
c,f);d=d7a("{COUNT, plural, =0 {}=1 {{TEXT} minute}other {{TEXT} minutes}}",d,g);return b+a+c+k+d},d7a=function(a,b,c){return(new Vl(a)).format({COUNT:b,TEXT:c})},h7a=function(a){return a.isInternal?a.isProd?f7a:g7a:[]},i7a=function(a,b,c,d){c&&c.targetTime&&(c.endTime?b.push({sloBounds:c,sloMetric:d}):a.push({sloBounds:c,sloMetric:d}))},j7a=function(a,b){return a.sloBounds.targetTime.seconds-b.sloBounds.targetTime.seconds},k7a=function(){return{startTime:Date.now(),sessionStartTime:Date.now(),firstActionSeen:!1,
editCount:0,variations:new Set}},l7a=function(a){return typeof a==="object"?"customField:"+a.customFieldId:a},n7a=function(a,b){if(m7a[a])return m7a[a][b]},o7a=function(a){return a?za(a,"@")?a:a==="[Deleted User]"?a:a+"@google.com":""},p7a=function(a,b){a=a===void 0?"":a;b=b===void 0?48:b;var c=c===void 0?"...":c;var d=[].concat(q(a));if(d.length<=b)return a;a=b-[].concat(q(c)).length;d=d.slice(0,a).join("");String.prototype.trimEnd!=null&&(d=d.trimEnd());return d+c},q7a=function(a){a=a===void 0?
"":a;var b=new Set([].concat(q('!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n')));a=[].concat(q(a)).map(function(c){return b.has(c)?" ":c}).join("").trim();return a.length===0?[]:a.split(/[\s]+/g)},r7a=function(a){return a.split("").every(function(b){return b.length===1&&b.charCodeAt(0)>=0&&b.charCodeAt(0)<=255})},t7a=function(a){if(a!=null){a=[].concat(q(a)).slice(0,100);a=m(a);for(var b=a.next();!b.done;b=a.next())if(b=s7a[b.value])return b}},w7a=function(a){if(a.includes('"')||a.includes("'"))return[];
var b=[].concat(q(a.matchAll(u7a)));if(b.length)return b.map(function(c){c=m(c);c.next();c.next();return c.next().value});a=[].concat(q(a.matchAll(v7a)));return a.length?a.map(function(c){c=m(c);c.next();c.next();return c.next().value}):[]},x7a=function(a,b){var c;a=(c=a)!=null?c:"";var d;b=(d=b)!=null?d:"";return a.trim()===b.trim()},y7a=function(a){return a.customFieldValue?{customFieldId:String(a.customFieldValue.customFieldId)}:a.fieldName},z7a=function(a){a&1&&M(0,"img",9);a&2&&(a=P(),I("src",
a.person.imageUrl,Ne)("alt",a.person.name+"'s profile picture"))},A7a=function(a){a&1&&(K(0,"div",10),Q(1),L());a&2&&(a=P(),B(),yg(a.person.email))},B7a=function(a){a&1&&(K(0,"div",11)(1,"onedev-chip",12),M(2,"mat-icon",13),Q(3),L()());a&2&&(a=P(),B(3),S("",a.outOfOfficeDescription," "))},C7a=function(a){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=P(2),B(),yg(a.person.title))},D7a=function(a){a&1&&M(0,"li",18)},E7a=function(a){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=P(2),B(),yg(a.person.department))},F7a=function(a){a&
1&&(Tf(0),M(1,"mat-icon",14),K(2,"div",15)(3,"ul",16),E(4,C7a,2,1,"li",8)(5,D7a,1,0,"li",17)(6,E7a,2,1,"li",8),L()(),Uf());a&2&&(a=P(),B(4),I("ngIf",a.person.title),B(),I("ngIf",a.person.title&&a.person.department),B(),I("ngIf",a.person.department))},G7a=function(a){a&1&&(Tf(0),M(1,"mat-icon",19),K(2,"div",15),Q(3),L(),Uf());a&2&&(a=P(),B(3),yg(a.person.location))},H7a=function(a){a&1&&(Tf(0),M(1,"mat-icon",20),K(2,"div",15)(3,"ul",16)(4,"li")(5,"a",21),Q(6,"Teams"),L()(),M(7,"li",18),K(8,"li")(9,
"a",21),Q(10,"Calendar"),L()(),M(11,"li",18),K(12,"li")(13,"a",21),Q(14,"CLs"),L()(),M(15,"li",18),K(16,"li")(17,"a",21),Q(18,"Readability"),L()(),M(19,"li",18),K(20,"li")(21,"a",21),Q(22,"CLStats"),L()()()(),Uf());a&2&&(a=P(),B(5),I("href","https://moma.corp.google.com/person/"+a.person.ldap,Ne),B(4),I("href","https://www.google.com/calendar/embed?src="+a.person.email+"&mode=WEEK&showCalendars=0",Ne),B(4),I("href","https://critique.corp.google.com/"+a.person.ldap,Ne),B(4),I("href","https://icanread.corp.google.com/s/"+
a.person.ldap,Ne),B(4),I("href","https://clstats.corp.google.com/?user="+a.person.ldap+"#r",Ne))},J7a=function(a){return a&&I7a.test(a)?a.split("@")[0]:""},K7a=function(a){return a?a.find(function(b){var c;return((c=b.metadata)==null?void 0:c.container)==="DOMAIN_PROFILE"}):null},L7a=function(a){return a?a.find(function(b){var c;return((c=b.metadata)==null?void 0:c.container)==="DOMAIN_PROFILE"}):null},M7a=function(a,b){return a.map(function(c){var d,e,f,g=(e=b==null?void 0:(d=b.matches)==null?void 0:
d.find(function(H){return H.lookupId===c}))==null?void 0:(f=e.personId)==null?void 0:f[0];if(!g)return{ldap:J7a(c),name:"",email:c};var k;d=b==null?void 0:(k=b.people)==null?void 0:k[g];var l;g=(l=L7a(d==null?void 0:d.email))==null?void 0:l.value;var r,w;l=d==null?void 0:(r=d.name)==null?void 0:(w=r[0])==null?void 0:w.displayName;var x,C;r=d==null?void 0:(x=d.photo)==null?void 0:(C=x[0])==null?void 0:C.url;w=K7a(d==null?void 0:d.organization);x=w==null?void 0:w.title;C=w==null?void 0:w.department;
w=w==null?void 0:w.location;return{ldap:J7a(g),email:g||c||"",name:l||"",imageUrl:r,title:x,department:C,location:w}})},P7a=function(){var a={timeout:5E3};a=a===void 0?{}:a;return N7a!=null?N7a:N7a=O7a(a)},Q7a=function(){return new Promise(function(a,b){window.gapi.load("client",{callback:a,onerror:b})})},O7a=function(a){a=a===void 0?{}:a;var b;return y(function(c){if(c.nextAddress==1){if((b=window.gapi)&&b.client&&b.client.load)c=c.return(b);else{var d=vh("https://apis.google.com/js/api.js");c=z(c,
R7a(d,a),2)}return c}if(c.nextAddress!=3){b=window.gapi;if(!b)throw Error("Ee");return b.client&&b.client.load?c.jumpTo(3):z(c,Q7a(),3)}return c.return(b)})},S7a=function(a,b,c){var d=a.config.get(b);c!==d&&a.config.update(b,c)},U7a=function(a,b){b=b===void 0?0:b;var c=a.auth2.getAuthInstance().currentUser.get(),d=c.getAuthResponse(!0);if(d&&d.expires_at-Date.now()<b){if(T7a.has(a))return T7a.get(a);b=Promise.resolve(c.reloadAuthResponse()).finally(function(){T7a.delete(a)});T7a.set(a,b);return b}return Promise.resolve()},
V7a=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:(c=b.fetchBasicProfile)!=null?c:!0})},W7a=function(a,b){a&1&&(K(0,"div",1),yd(),K(1,"svg",2)(2,"g"),M(3,"path",3),L()(),zd(),K(4,"span",4),Q(5),L()());a&2&&(a=b.ngIf,If("aria-label",a)("title",a),B(5),yg(a))},X7a=function(a,b){a!=null&&this.append.apply(this,arguments)},Or=function(a){Y7a.call(this,a)},Pr=function(a,b){b=b===void 0?
!1:b;this.parsedImageUrl_=null;a instanceof Z7a||($7a==void 0&&($7a=new a8a),a=$7a.parse(a.toString(),b));this.parsedImageUrl_=a;a=this.parsedImageUrl_.getParsedOptions();Y7a.call(this,a);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;this.domain_=this.parsedImageUrl_.getDomain();this.query_=this.parsedImageUrl_.getQuery()},b8a=function(a,b){a&1&&(K(0,"onedev-person-hovercard-body",1),T(1,"async"),cg(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),cg(3,1,["ngProjectAs",
"[onedev-additional-content]",5,["","onedev-additional-content",""]]),L());a&2&&(a=b.ngIf,b=P(),I("person",a)("outOfOfficeDescription",U(1,2,b.outOfOfficeDescription$)))},c8a=function(a){a&1&&(K(0,"onedev-person-hovercard",2,0),cg(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),L());if(a&2){a=qg(1);var b=P();I("email",b.email)("enableWaldo",!0)("onedevIsHovercardReady",a.init)}},d8a=function(a){a&1&&Vf(0)},e8a=function(a){a&1&&(K(0,"span",2),E(1,d8a,1,0,"ng-container",
3),L(),K(2,"onedev-hovercard",null,1),M(4,"b-person-card",4),L());if(a&2){a=qg(3);var b=P(),c=qg(3);I("onedevHovercardTrigger",a)("onedevHovercardActive",!!b.email);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},f8a=function(a){a&1&&Vf(0)},g8a=function(a){a&1&&E(0,f8a,1,0,"ng-container",3);a&2&&(P(),a=qg(3),I("ngTemplateOutlet",a))},h8a=function(a){a&1&&cg(0)},k8a=function(a){if(a&1){var b=t();Tf(0,1);K(1,"onedev-hovercard-action",3);T(2,"async");N("onAction",function(){u(b);var e=P();return v(i8a(e))});
K(3,"span");Q(4);L()();K(5,"onedev-hovercard-action",3);T(6,"async");N("onAction",function(){u(b);var e=P();return v(j8a(e))});K(7,"span");Q(8);L()();Uf()}if(a&2){a=P();B();var c;I("disabled",(c=U(2,4,a.actionService.assigneeUpdating$))!=null?c:!1);B(3);yg(a.email!==a.currentAssignee?"Set as assignee":"Remove assignee");B();var d;I("disabled",(d=U(6,6,a.actionService.ccUpdating$))!=null?d:!1);B(3);yg(a.currentCc.includes(a.email)?"Remove from CCs":"Add to CCs")}},o8a=function(a){return!a.endsWith("/history")&&
!!a.match(l8a)||!!a.match(m8a)||!!a.match(n8a)},Qr=function(a){return a.type==="hyperlink"},p8a=function(a){return Qr(a)&&o8a(a.href)},r8a=function(a){return Qr(a)&&!!a.href.match(q8a)},s8a=function(a,b){b=b===void 0?!1:b;return!a.endsWith("/history")&&a.match(l8a)?(a=a.match(l8a)[2],b?"https://3p-screenshot.corp.google.com/"+a+".png":"https://screenshot.googleplex.com/"+a+".png"):a.match(m8a)?"https://plx-alerts.corp.google.com/chart/?"+a.match(m8a)[1]:null},t8a=function(a){return a.type==="issueReference"},
u8a=function(a){return Qr(a)&&!p8a(a)&&!(Qr(a)&&a.href.startsWith("mailto:"))},v8a=function(a){a&1&&(M(0,"img",1),T(1,"async"));if(a&2){a=P(2);I("src",U(1,2,a.srcRedirected$),Ne);var b;If("alt",(b=a.alt)!=null?b:"user provided image")}},w8a=function(a){if(a&1){var b=t();K(0,"a",3);T(1,"async");T(2,"async");N("click",function(c){u(b);var d=P(2);return v(d.trigger(c))})("keydown.enter",function(c){u(b);var d=P(2);return v(d.trigger(c))});K(3,"b-glue");M(4,"mat-icon",4);L();Tf(5);Q(6);T(7,"async");Uf();
L()}a&2&&(a=P(2),I("href",U(1,3,a.src$),Ne)("title",U(2,5,a.src$)),B(6),yg(U(7,7,a.srcTruncated$)))},x8a=function(a){a&1&&(F(0,v8a,2,4,"img",1),T(1,"async"),Kf(2,w8a,8,9,"a",2));if(a&2){var b;a=P();G((b=U(1,1,a.showImage$))?0:2,b)}},y8a=function(a){a&1&&(M(0,"mat-icon",0),T(1,"async"));a&2&&(a=P(),I("matTooltip",Eg("Unable to load image ",U(1,2,a.srcTruncated$))))},z8a=function(a){a&1&&(M(0,"br"),K(1,"a",1),M(2,"b-secure-image-widget",2),L(),M(3,"br"));if(a&2){a=P();var b=P();B();I("href",a,Ne)("rel",
b.EXTERNAL_LINK_REL);B();I("src",a)("alt",b.alt||"User provided screenshot")("showByDefault",!0)}},A8a=function(a){a&1&&M(0,"b-secure-image-widget",0);if(a&2){a=P();var b=P();I("src",a)("alt",b.alt||"User provided screenshot")("showByDefault",!1)}},B8a=function(a){a&1&&(F(0,z8a,4,5),T(1,"async"),Kf(2,A8a,1,3,"b-secure-image-widget",0));if(a&2){var b;a=P();G((b=U(1,1,a.displayMode$))===a.DisplayMode.SHOW?0:b===a.DisplayMode.COLLAPSE?2:-1)}},C8a=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},
D8a=function(a,b){a&1&&M(0,"b-plain-format-section",1);a&2&&I("section",b.$implicit)},E8a=function(a){a&1&&M(0,"b-plain-format-quoted-section",0);a&2&&(a=P(),I("section",a.section))},F8a=function(a){a&1&&M(0,"b-plain-format-unquoted-section",0);a&2&&(a=P(),I("section",a.section))},H8a=function(a){if(a&1){var b=t();K(0,"a",4);N("click",function(){u(b);var c=P();c.showQuote=!1;G8a(c);return v()});Q(1," - Hide quoted text - ");L()}a&2&&(a=P(),If("aria-controls",a.childId))},I8a=function(a){if(a&1){var b=
t();K(0,"a",5);N("click",function(){u(b);var c=P();c.showQuote=!0;G8a(c);return v()});Q(1," - Show quoted text - ");L()}a&2&&(a=P(),If("aria-controls",a.childId))},J8a=function(a,b){a&1&&M(0,"b-literal-format-presenter",0);a&2&&I("content",b)},K8a=function(a,b){if(a&1){var c=t();K(0,"b-markdown-format-presenter",2);N("checkboxChange",function(d){u(c);var e=P();return v(e.checkboxChange.emit(d))});L()}a&2&&(a=P(),I("content",b)("canEditComment",a.canEditComment))},L8a=function(a,b){a&1&&M(0,"b-plain-format-presenter",
0);a&2&&I("content",b)},M8a=function(a,b){a&1&&(K(0,"div",1),M(1,"b-formatted-comment-presenter",2),L());a&2&&(a=P(),wg("invisible",(a.comment||"").trim()==="")("error",b.isFallback),B(),I("formattedComment",b.formattedComment))},P8a=function(a){var b=a.match(/\(.*\)/);if(a.match(/'.*'/)||a.match(/".*"/)||b)return{complexSyntax:!0};a=a.split(/\s+/).filter(Boolean);b=a.filter(N8a).length;var c=a.filter(function(d){return!N8a(d)}).filter(O8a).length;return{filters:b,text:a.length-b-c,resourceIds:c}},
O8a=function(a){a=String(a);a=a.replace("http://b/","");a=a.replace("https://b/","");a=a.replace("b/","");a=a.trim();return a.length<3?!1:Q8a(a)},N8a=function(a){return!!a.match(/\w:\w/g)},R8a=function(a){a&1&&(K(0,"span",11),yd(),K(1,"svg",13),M(2,"path",14),L(),K(3,"svg",15),M(4,"path",16),L()())},S8a=function(a){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(function(b){return a.classList.contains(b)})},T8a=function(a){a&1&&cg(0,2)},U8a=function(a){a&1&&(K(0,"thead",0),Vf(1,1),L(),
K(2,"tbody",0),Vf(3,2)(4,3),L(),K(5,"tfoot",0),Vf(6,4),L())},V8a=function(a){a&1&&Vf(0,1)(1,2)(2,3)(3,4)},W8a=function(a,b){return a.concat(Array.from(b))},X8a=function(a,b){b=b.toUpperCase();for(a=a.viewContainer.element.nativeElement;a;){var c=a.nodeType===1?a.nodeName:null;if(c===b)return a;if(c==="TABLE")break;a=a.parentNode}return null},Y8a=function(a){a&1&&cg(0,2)},Z8a=function(a){a&1&&(K(0,"thead",0),Vf(1,1),L(),K(2,"tbody",2),Vf(3,3)(4,4),L(),K(5,"tfoot",0),Vf(6,5),L())},$8a=function(a){a&
1&&Vf(0,1)(1,3)(2,4)(3,5)},a9a=function(a){if(a&1){var b=t();K(0,"textarea",14,0);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.draftPlaybook.instructions,c)||(d.draftPlaybook.instructions=c);return v(c)});L()}a&2&&(a=P(),Ag("ngModel",a.draftPlaybook.instructions))},b9a=function(a){a&1&&M(0,"b-live-preview",15);a&2&&(a=P(2),I("comment",a.originalPlaybook.instructions)("formattingMode",a.FormattingMode.MARKDOWN))},c9a=function(a){if(a&1){var b=t();F(0,b9a,1,2,"b-live-preview",15);K(1,"div",16)(2,
"button",17);N("click",function(){u(b);var c=P();return v(c.isEditing=!0)});Q(3,"Edit markdown");L()()}a&2&&(a=P(),G(a.originalPlaybook?0:-1))},e9a=function(a,b){if(a&1){var c=t();K(0,"button",38);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.unimplementedPlaybookData.statsInterval=d)});M(1,"mat-icon",39);Q(2);L()}a&2&&(a=b.$implicit,b=P(2),B(),wg("invisible",a!==b.unimplementedPlaybookData.statsInterval),B(),S(" ",d9a(a)," "))},f9a=function(a){a&1&&(K(0,"th",40),Q(1,"Triage actions"),
L())},g9a=function(a,b){a&1&&(K(0,"td",41),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.triageActions," "))},h9a=function(a){a&1&&(K(0,"th",40),Q(1,"Acceptance rate"),L())},i9a=function(a,b){a&1&&(K(0,"td",41),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.acceptanceRate," "))},j9a=function(a){a&1&&(K(0,"th",40),Q(1,"Accuracy"),L())},k9a=function(a,b){a&1&&(K(0,"td",41),Q(1),L());a&2&&(a=b.$implicit,B(),yg(a.accuracy))},l9a=function(a){a&1&&M(0,"tr",42)},m9a=function(a){a&1&&M(0,"tr",43)},n9a=function(a){if(a&
1){var b=t();K(0,"div",10)(1,"h4",8);Q(2,"Settings");L();K(3,"div",18)(4,"mat-slide-toggle",19);Cg("ngModelChange",function(d){u(b);var e=P();Bg(e.unimplementedPlaybookData.enablePlaybook,d)||(e.unimplementedPlaybookData.enablePlaybook=d);return v(d)});Q(5," Enable this playbook ");L();K(6,"div",20);Q(7," Playbook scope ");M(8,"input",21);L();K(9,"div",22);Q(10," Agent mode ");K(11,"mat-radio-group",23);Cg("ngModelChange",function(d){u(b);var e=P();Bg(e.unimplementedPlaybookData.agentMode,d)||(e.unimplementedPlaybookData.agentMode=
d);return v(d)});K(12,"mat-radio-button",24);Q(13," Show suggestion chips ");L();K(14,"mat-radio-button",24);Q(15," Apply actions automatically ");L()()();K(16,"mat-slide-toggle",19);Cg("ngModelChange",function(d){u(b);var e=P();Bg(e.unimplementedPlaybookData.clusterSuggestions,d)||(e.unimplementedPlaybookData.clusterSuggestions=d);return v(d)});Q(17," Cluster suggestions ");L()();K(18,"div",25)(19,"h4",8);Q(20,"Playbook stats");L();K(21,"button",26)(22,"span",27);Q(23);L();M(24,"b-icon",28);L();
K(25,"mat-menu",null,1);Nf(27,e9a,3,3,"button",29,Mf);L()();K(29,"div",10)(30,"table",30);Tf(31,31);E(32,f9a,2,0,"th",32)(33,g9a,2,1,"td",33);Uf();Tf(34,34);E(35,h9a,2,0,"th",32)(36,i9a,2,1,"td",33);Uf();Tf(37,35);E(38,j9a,2,0,"th",32)(39,k9a,2,1,"td",33);Uf();E(40,l9a,1,0,"tr",36)(41,m9a,1,0,"tr",37);L()()()}if(a&2){a=qg(26);var c=P();B(4);Ag("ngModel",c.unimplementedPlaybookData.enablePlaybook);B(4);I("ngModel",c.draftPlaybook.searchQuery);B(3);Ag("ngModel",c.unimplementedPlaybookData.agentMode);
B();I("value",c.AgentMode.SUGGESTIONS);B(2);I("value",c.AgentMode.AUTOMATIC_ACTIONS);B(2);Ag("ngModel",c.unimplementedPlaybookData.clusterSuggestions);B(5);I("matMenuTriggerFor",a);B(2);S(" ",d9a(c.unimplementedPlaybookData.statsInterval)," ");B(4);Of(c.statsIntervalOptions);B(3);I("dataSource",c.dataSource);B(10);I("matHeaderRowDef",c.displayedColumns);B();I("matRowDefColumns",c.displayedColumns)}},o9a=function(a){for(var b={},c=m(a.keys),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.getAll(d);
b[d]=e.length>1?e:e[0]}return b},p9a=function(a){a&1&&M(0,"mat-spinner",0);a&2&&(a=P(),I("diameter",a.SIZE_LARGE),If("aria-label",a.ariaLabel))},q9a=function(a){a&1&&M(0,"mat-spinner",1);a&2&&(a=P(),I("diameter",a.SIZE_SMALL)("strokeWidth",a.DIAMETER_SMALL),If("aria-label",a.ariaLabel))},r9a=function(a){if(a&1){var b=t();K(0,"button",1);N("click",function(){u(b);var c=P();return v(c.openDialog())});M(1,"mat-icon",2);Q(2," Create playbook ");L()}},s9a=function(a){a&1&&(K(0,"div",3),M(1,"b-spinner"),
Q(2," Generating triage suggestions "),L())},u9a=function(a){if(a&1){var b=t();K(0,"button",1);N("click",function(){u(b);var c=P(2);return v(t9a(c))});M(1,"mat-icon",4);Q(2," Execute playbook ");L()}},v9a=function(a){if(a&1){var b=t();F(0,s9a,3,0,"div",3)(1,u9a,3,0,"button",0);K(2,"button",1);N("click",function(){u(b);var c=P();return v(c.openDialog())});M(3,"mat-icon",2);Q(4," Edit playbook ");L()}a&2&&(a=P(),G(a.playbookState===a.PlaybookState.RUNNING?0:1))},w9a=function(a){a&1&&(K(0,"a",1),M(1,
"mat-icon",2),L());a&2&&(a=P(),I("href",a.mdHelpLink,Ne)("disableRipple",!0))},x9a=function(a){if(a&1){var b=t();K(0,"b-formatted-comment-presenter",4);N("checkboxChange",function(c){u(b);var d=P().markdownCheckboxService,e=d.rawComment.split("\n");c=m(c.startPos.split(":")).next().value;c=Number(c)-1;var f=e[c];var g=f.search(/\[[ Xx]\]/);if(g!==-1){var k=f[g+1];k&&(k=k.toLowerCase()==="x"?"[ ]":"[x]",f=f.substring(0,g)+k+f.substring(g+k.length))}e[c]=f;d.rawComment=e.join("\n");d.rawComment$.next(d.rawComment);
d.savingState=d.editIssueService.savingState(d.issueId);d.savingState.get("commentEdit")||(Rr(d.butterBar,"Saving comment edit...",0),Sr(d.savingState,"commentEdit"));Tr(d.issueInteractionsTracking,d.issueId,{label:d.commentNumber===1?"description":"comment"});return v()});L()}a&2&&(a=P(),I("formattedComment",a.formattedComment)("canEditComment",a.canEditComment))},y9a=function(a){a&1&&M(0,"b-live-preview",3);a&2&&(a=P(),I("comment",a.rawComment)("issueId",a.issueId)("audience",a.audience)("formattingMode",
a.formattingModeOverride||a.formattingMode||a.FormattingMode.PLAIN)("idPrefix",a.idPrefix))},z9a=function(a){return a instanceof Ur?a:new Ur(a,{})},Vr=function(a){a=z9a(a);return new Ur(a.char,Object.assign({},a.modifiers,{shift:!0}))},A9a=function(a){a=z9a(a);return new Ur(a.char,Object.assign({},a.modifiers,{ctrl:!0}))},B9a=function(){var a=Vr("f");a=z9a(a);return new Ur(a.char,Object.assign({},a.modifiers,{alt:!0}))},D9a=function(a){if(a instanceof Ur){var b=C9a(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(D9a).join(" "):C9a(a)},Wr=function(){return $c.apply(0,arguments)},C9a=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 wb(a)}},E9a=function(a){return a.keys.join("-")+"-"+a.description+"-"+a.displayAs},F9a=function(a){switch(a){case "P0":return Xr.CHANGE_ISSUE_PRIORITY_TO_P0;case "P1":return Xr.CHANGE_ISSUE_PRIORITY_TO_P1;case "P2":return Xr.CHANGE_ISSUE_PRIORITY_TO_P2;case "P3":return Xr.CHANGE_ISSUE_PRIORITY_TO_P3;
case "P4":return Xr.CHANGE_ISSUE_PRIORITY_TO_P4;case "PRIORITY_UNSPECIFIED":break;default:console.error("Unsupported issue priority in issuePriorityToHotkey")}},G9a=function(a){switch(a){case "NEW":return Xr.CHANGE_ISSUE_STATUS_TO_NEW;case "ASSIGNED":return Xr.CHANGE_ISSUE_STATUS_TO_ASSIGNED;case "ACCEPTED":return Xr.CHANGE_ISSUE_STATUS_TO_ACCEPTED;case "FIXED":return Xr.CHANGE_ISSUE_STATUS_TO_FIXED;case "VERIFIED":return Xr.CHANGE_ISSUE_STATUS_TO_VERIFIED;case "NOT_REPRODUCIBLE":return Xr.CHANGE_ISSUE_STATUS_TO_NOT_REPRODUCIBLE;
case "INTENDED_BEHAVIOR":return Xr.CHANGE_ISSUE_STATUS_TO_INTENDED_BEHAVIOR;case "OBSOLETE":return Xr.CHANGE_ISSUE_STATUS_TO_OBSOLETE;case "INFEASIBLE":return Xr.CHANGE_ISSUE_STATUS_TO_INFEASIBLE;case "INACTIVE":return Xr.CHANGE_ISSUE_STATUS_TO_INACTIVE;case "DUPLICATE":return Xr.CHANGE_ISSUE_STATUS_TO_DUPLICATE;case "STATUS_UNSPECIFIED":break;default:console.error("Unsupported issue status in issueStatusToHotkey")}},H9a=function(a,b){if(a&1){var c=t();K(0,"a",7);N("click",function(){var d=u(c).$implicit,
e=P(2);return v(e.clickSegment.emit(d.name||d.path))});Q(1);L()}a&2&&(a=b.$implicit,I("href",a.path,Ne),B(),S(" ",a.name||a.path," "))},I9a=function(a){a&1&&(K(0,"button",4),M(1,"mat-icon",5),L(),K(2,"mat-menu",null,0),Nf(4,H9a,2,2,"a",6,Mf),L());if(a&2){a=qg(3);var b=P();I("matMenuTriggerFor",a);B(4);Of(b.segments)}},J9a=function(a){a&1&&M(0,"mat-icon",2);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},K9a=function(a,b){if(a&1){var c=t();K(0,"button",1);N("click",function(){var e=u(c).$implicit,f=P();
e=e.value;f.value=e;f.valueChange.next(e);return v()});F(1,J9a,1,1,"mat-icon",2);Q(2);L()}if(a&2){a=b.$implicit;b=P();var d;I("disableRipple",!0)("matTooltip",(d=a.tooltip)!=null?d:"");If("aria-checked",b.value===a.value);B();G(a.icon?1:-1);B();S(" ",a.name," ")}},L9a=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);var c=P();return v(c.toggle())})("onHotkey",function(){u(b);var c=P();return v(c.toggle())});M(1,"mat-icon",5);L()}a&2&&(a=P(),xg(a.direction),wg("isClosed",a.isClosed),
I("hotkey",a.direction==="rtl"?a.HOTKEYS.TOGGLE_RIGHT_SIDEBAR:a.HOTKEYS.TOGGLE_LEFT_SIDEBAR),B(),I("svgIcon",a.isLTR?"chevron-left":"chevron-right"))},N9a=function(a){if(a&1){var b=t();K(0,"div",6);N("onHotkey",function(){u(b);var c=P();return v(c.toggle())})("mousedown",function(c){u(b);var d=P();return v(d.startDragging(c.pageX))})("keyup.arrowleft",function(){u(b);var c=P();return v(M9a(c,-10))})("keyup.arrowright",function(){u(b);var c=P();return v(M9a(c,10))})("keyup.space",function(){u(b);var c=
P();return v(c.toggle())})("keyup.enter",function(){u(b);var c=P();return v(c.toggle())})("dblclick",function(){u(b);var c=P();return v(c.toggle())});L()}a&2&&(a=P(),I("hotkey",a.direction==="rtl"?a.HOTKEYS.TOGGLE_RIGHT_SIDEBAR:a.HOTKEYS.TOGGLE_LEFT_SIDEBAR),If("aria-valuenow",a.width)("aria-valuetext",a.width+" pixels"))},O9a=function(a){a=a.getBoundingClientRect();return a.top>=0&&a.bottom<=window.innerHeight},P9a=function(a){a=a.getBoundingClientRect();return a.bottom>0&&a.top<window.innerHeight},
Q9a=function(a,b,c,d){var e=(d=d===void 0?!1:d)?function(f){return c.partially(f)}:function(f){return c.fully(f)};return(new Td(function(f){f.next(e(a));var g=b(function(k){f.next(k[0].isIntersecting)},d?{threshold:0}:{threshold:1});g.observe(a);return function(){g.unobserve(a)}})).pipe(nf())},R9a=function(a,b,c){var d=(c===void 0?0:c)?function(e){return b.partially(e)}:function(e){return b.fully(e)};return te(ce(void 0),pe(window,"scroll").pipe(jf(500))).pipe(A(function(){return d(a)}),nf())},S9a=
function(a){if(a&1){var b=t();K(0,"button",1);N("click",function(c){u(b);var d=P();return v(d.handleClick(c))})("keydown",function(c){u(b);var d=P();return v(d.handleKeydown(c))});M(1,"mat-icon",2);K(2,"span",3);Q(3);L()()}a&2&&(a=P(),wg("hovered",a.isParentRowActive),Hf("aria-label","View "+a.getText(a.recommendation)+" recommendation"),B(3),S(" ",a.getText(a.recommendation)," "))},T9a=function(a,b){if(a&1){var c=t();K(0,"button",4);N("click",function(){var d=u(c).$implicit;P(3).onSelect.emit(d);
return v()});Q(1);L()}a&2&&(a=b.$implicit,B(),S(" ",a.displayAs," "))},V9a=function(a){a&1&&Nf(0,T9a,2,1,"button",3,U9a);a&2&&(P(),a=ag(2),Of(a))},X9a=function(a,b){if(a&1){var c=t();K(0,"button",2);N("click",function(){var d=u(c).$implicit;P().onSelect.emit(d);return v()});Q(1);L();Zf(2);F(3,V9a,2,0)}a&2&&(a=b.$implicit,B(),S(" ",a.displayAs," "),B(),a=$f(W9a(a)),B(),G(a.length?3:-1))},Y9a=function(a){a&1&&cg(0)},Z9a=function(a){a&1&&Vf(0)},$9a=function(a){if(a&1){var b=t();K(0,"button",6,1);N("click",
function(e){u(b);var f=P();return v(f.onClick(e))});E(2,Z9a,1,0,"ng-container",7);L()}if(a&2){a=P();var c=qg(1);xg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");If("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},a$a=function(a){a&1&&Vf(0)},b$a=function(a){if(a&1){var b=t();K(0,"button",8,1);N("click",function(e){u(b);var f=P();return v(f.onClick(e))});E(2,a$a,1,0,"ng-container",7);L()}if(a&2){a=P();var c=qg(1);
xg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");If("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},c$a=function(a){a&1&&Vf(0)},d$a=function(a){if(a&1){var b=t();K(0,"button",9,1);N("click",function(e){u(b);var f=P();return v(f.onClick(e))});E(2,c$a,1,0,"ng-container",7);L()}if(a&2){a=P();var c=qg(1);xg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");If("aria-label",
a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},e$a=function(a){a&1&&Vf(0)},f$a=function(a){if(a&1){var b=t();K(0,"button",10,1);N("click",function(e){u(b);var f=P();return v(f.onClick(e))});E(2,e$a,1,0,"ng-container",7);L()}if(a&2){a=P();var c=qg(1);xg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");If("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},g$a=function(a){a&1&&Vf(0)},
h$a=function(a){if(a&1){var b=t();K(0,"button",6,1);N("click",function(e){u(b);var f=P();return v(f.onClick(e))});E(2,g$a,1,0,"ng-container",7);L()}if(a&2){a=P();var c=qg(1);xg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");If("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},i$a=function(a){a&1&&M(0,"waldo-availability-chip",1);a&2&&(a=P(2),I("user",a.user.emailAddress),If("coinonly",a.coinonly))},j$a=function(a){a&
1&&F(0,i$a,1,2,"waldo-availability-chip",1);a&2&&(a=P(),G(a.user.emailAddress?0:-1))},k$a=function(a){a&1&&M(0,"b-availability-chip",2);a&2&&(a=P(2),I("user",a.user))},l$a=function(a){a&1&&(Tf(0),Q(1),Uf(),F(2,k$a,1,1,"b-availability-chip",2));if(a&2){a=P();var b=P();B();yg(a.content);B();G(b.enableWaldoAvailability&&b.availabilityChipEnabled?2:-1)}},m$a=function(a){a&1&&Vf(0)},n$a=function(a){a&1&&(K(0,"span",3),E(1,m$a,1,0,"ng-container",4),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",
5),L());if(a&2){a=qg(3);var b=P(),c=qg(1),d=P();I("onedevHovercardTrigger",a);If("tabindex",d.hovercardEnabled&&d.hovercardFocusEnabled?"0":null);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},o$a=function(a){a&1&&Vf(0)},p$a=function(a){a&1&&E(0,o$a,1,0,"ng-container",4);a&2&&(P(),a=qg(1),I("ngTemplateOutlet",a))},q$a=function(a,b){a&1&&(E(0,l$a,3,2,"ng-template",null,0,Mg),F(2,n$a,5,4)(3,p$a,1,1,"ng-container"));a&2&&(a=P(),B(2),G(a.hovercardEnabled&&a.isNonObfuscatedEmail(b.email)?2:3))},
r$a=function(a){a&1&&M(0,"b-user-display-name",0);a&2&&(a=P(),I("user",a.model)("hovercardEnabled",!1)("availabilityChipEnabled",a.availabilityChipEnabled)("hovercardFocusEnabled",a.hovercardFocusEnabled))},s$a=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),yg(a.getDisplayString()))},t$a=function(a){a&1&&Vf(0)},u$a=function(a){a&1&&(K(0,"span",2),E(1,t$a,1,0,"ng-container",3),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",4),L());if(a&2){a=qg(3);var b=P(),c=qg(3);I("onedevHovercardTrigger",
a);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},v$a=function(a){a&1&&Vf(0)},w$a=function(a){a&1&&E(0,v$a,1,0,"ng-container",3);a&2&&(P(),a=qg(3),I("ngTemplateOutlet",a))},y$a=function(a){a&1&&M(0,"img",5);a&2&&(a=P(2),P(),I("src",x$a[a.email],Ne))},z$a=function(a){a&1&&M(0,"img",8);a&2&&(a=P(3),I("src",a.src,Ne)("srcset",a.srcset))},A$a=function(a){a&1&&(K(0,"span",7),T(1,"async"),F(2,z$a,1,2,"img",8),L());if(a&2){a=P(2);var b=P();wg("team-member",U(1,5,b.isTeamMember$))("anonymous",!a.showImage);
B(2);G(a.showImage?2:-1)}},C$a=function(a){a&1&&(F(0,y$a,1,1,"img",5),F(1,A$a,3,7,"span",6));if(a&2){a=P();var b=P();G(a.email&&B$a(b,a.email)?0:-1);B();G(B$a(b,a.email)?-1:1)}},D$a=function(a,b){a&1&&(F(0,u$a,5,3)(1,w$a,1,1,"ng-container"),E(2,C$a,2,2,"ng-template",null,0,Mg));a&2&&(a=P(),G(a.isNonObfuscatedEmail(b.email)?0:1))},E$a=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}},F$a=function(a){return a?gj(a.replace(/_/g," ").toLowerCase()):""},G$a=function(a){return a?a.join(", "):""},H$a=function(a,b){if(!a)return Bh("");if(!b)return Bh(a);b=b.split(" ").map(UQa);b=b.filter(function(g){return!!g});b=b.map(Yr);if(b.length===0)return Bh(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(Eh("b",{},f));c.push(d);a=a.substring(e+f.length+d.length)}return Ch(c)},I$a=function(a){return a?"Yes":"No"},J$a=function(a){return a?a.pathNames?a.pathNames.join(" > "):"":""},K$a=function(a){if(a>=1073741824){a/=1073741824;var b="GB"}else a>=1048576?(a/=1048576,b="MB"):a>=1024?(a/=1024,b="KB"):b="B";a=a<10?Math.round(a*10)/10:Math.round(a);return a+" "+b},L$a=function(a){if(!a)return null;var b=new ao;b.setTime(a.seconds*1E3);return b},M$a=function(a){if(a&&Zn(a))return a},N$a=function(a){return a==
null?"":String(a)},O$a=function(a){var b;return(b=a==null?void 0:a.filter(function(c){return!!c.trim()}).join(", "))!=null?b:""},P$a=function(a){a&1&&M(0,"b-user-image",3);a&2&&(a=P(),I("email",a.email))},Q$a=function(a){a&1&&Vf(0)},R$a=function(a){a&1&&(K(0,"span",5),E(1,Q$a,1,0,"ng-container",6),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",7),L());if(a&2){a=qg(3);var b=P(),c=qg(5);I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},S$a=function(a){a&
1&&Vf(0)},T$a=function(a){a&1&&E(0,S$a,1,0,"ng-container",6);a&2&&(P(),a=qg(5),I("ngTemplateOutlet",a))},U$a=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),yg(a.getEmailDisplayString(a.email,a.ldapOnly)))},V$a=function(a){a&1&&(K(0,"span",4),M(1,"b-availability-chip",8),T(2,"emailToUser"),L());a&2&&(a=P(),B(),I("user",U(2,1,a.email)))},W$a=function(a,b){Zn(a)&&b&&(a=a.trim(),a=a.endsWith("@google.com")?a.split("@google.com")[0]:a.endsWith("@prod.google.com")?a.split("@prod.google.com")[0]:
a);return a},X$a=function(a){a&1&&M(0,"b-icon",5)},Y$a=function(a){a&1&&M(0,"b-user-image",6);a&2&&(a=P(2),I("email",a.email))},Z$a=function(a){a&1&&(F(0,X$a,1,0,"b-icon",5),T(1,"async"),Kf(2,Y$a,1,1,"b-user-image",6));a&2&&(a=P(),G(a.enableGroupIcon&&U(1,1,a.isGroup$)?0:2))},$$a=function(a){a&1&&(M(0,"b-user-display-name",2),T(1,"emailToUser"));a&2&&(a=P(),I("user",a.user||U(1,3,a.email))("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},aab=function(a){a&1&&Vf(0)},bab=function(a){a&1&&
(K(0,"span",7),E(1,aab,1,0,"ng-container",8),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",9),L());if(a&2){a=qg(3);P();var b=qg(3),c=P();I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",b);B(3);I("email",c.email)}},cab=function(a){a&1&&Vf(0)},dab=function(a){a&1&&E(0,cab,1,0,"ng-container",8);a&2&&(P(),a=qg(3),I("ngTemplateOutlet",a))},eab=function(a){a&1&&(Tf(0),Q(1),Uf());a&2&&(a=P(3),B(),yg(a.userToDisplayString(a.user)))},fab=function(a){a&1&&(Tf(0),Q(1),Uf());a&2&&(a=P(3),
B(),yg(a.email))},gab=function(a){a&1&&(K(0,"span",10),F(1,eab,2,1,"ng-container")(2,fab,2,1,"ng-container"),L());a&2&&(a=P(2),B(),G(a.user?1:2))},hab=function(a){a&1&&(F(0,bab,5,3)(1,dab,1,1,"ng-container"),E(2,gab,3,1,"ng-template",null,0,Mg));a&2&&(a=P(),G(a.isNonObfuscatedEmail(a.email)?0:1))},iab=function(a){a&1&&(M(0,"mat-icon",3),T(1,"async"),T(2,"async"));if(a&2){a=P();var b,c;I("svgIcon",(b=U(1,2,a.iconName$))!=null?b:"")("matTooltip",(c=U(2,4,a.iconToolTip$))!=null?c:"")}},jab=function(a){a&
1&&M(0,"b-availability-chip",4);a&2&&(a=P(),I("user",a.user))},kab=function(a){a&1&&Vf(0)},lab=function(a){a&1&&E(0,kab,1,0,"ng-container",8);a&2&&(a=P(),I("ngTemplateOutlet",a.calendarButtonRow))},mab=function(a){if(a&1){var b=t();K(0,"mat-form-field",3)(1,"input",9);N("focus",function(c){u(b);var d=P();return v(d.showPicker(c.target))});L()()}a&2&&(a=P(),B(),I("formControl",a.timeFormControl))},qab=function(a){if(a&1){var b=t();K(0,"button",12);N("click",function(){u(b);var c=P(2);nab(c,new pm);
c.includeTimePicker&&(c.dateTime=new ao,oab(c,new ao));pab(c);c.saveChanges();return v(c.saveClicked.emit())});Q(1,"Today");L()}},rab=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(){u(b);var c=P(2);nab(c);c.includeTimePicker&&(c.dateTime=void 0);c.saveChanges();return v(c.saveClicked.emit())});Q(1,"None");L()}},sab=function(a){a&1&&(K(0,"div",1),F(1,qab,2,0,"button",10),F(2,rab,2,0,"button",11),M(3,"mat-divider"),L());a&2&&(a=P(),B(),G(a.todayButtonEnabled?1:-1),B(),G(a.noneButtonEnabled&&
!a.required?2:-1))},tab=function(a){a&1&&(M(0,"div"),T(1,"lowercase"));a&2&&(a=P(3),xg(Eg("bv2-edit-icon ",U(1,3,a.type))))},uab=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),F(3,tab,2,5,"div",13),L());a&2&&(a=P(2),xg(Eg("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x")),B(2),S(" ",a.title," "),B(),G(a.readonly||a.disabled?-1:3))},vab=function(a){a&1&&Vf(0)},wab=function(a){if(a&1){var b=t();K(0,"div",17);N("menuClosed",function(){u(b);var d=P(3);return v(Zr(d,null,!1,!0))});E(1,
vab,1,0,"ng-container",18);L()}if(a&2){P(3);a=qg(6);var c=qg(9);I("matMenuTriggerFor",a);B();I("ngTemplateOutlet",c)}},yab=function(a,b){a&1&&(K(0,"a",19),Q(1),L());a&2&&(a=P(4),If("aria-label",Fg("customfield",a.customFieldId,":",b)),I("queryParams",Ig(5,xab,"customfield"+a.customFieldId+':"'+b+'"')),B(),S(" ",b," "))},zab=function(a){a&1&&Q(0," -- ")},Aab=function(a){if(a&1){var b=t();K(0,"div",16);F(1,yab,2,7,"a",19)(2,zab,1,0);M(3,"br");K(4,"button",20);N("menuClosed",function(){u(b);var e=P(3);
return v(Zr(e,null,!1,!0))});Q(5," Edit ");L()()}if(a&2){var c;a=P(3);var d=qg(6);B();G((c=a.getDisplayValue(""))?1:2,c);B(3);If("aria-label",Eg("Edit item for ",a.title));I("matMenuTriggerFor",d)}},Bab=function(a){a&1&&F(0,wab,2,2,"div",15)(1,Aab,6,4,"div",16);a&2&&(a=P(2),G(a.choices.length>50&&a.customFieldId!==0?1:0))},Cab=function(a){a&1&&Vf(0)},Dab=function(a){a&1&&(K(0,"div",14),E(1,Cab,1,0,"ng-container",18),L());a&2&&(P(2),a=qg(9),B(),I("ngTemplateOutlet",a))},Fab=function(a){if(a&1){var b=
t();K(0,"div",12,3);N("click",function(c){u(b);var d=P();return v(Zr(d,c,!0,!1))})("keydown",function(c){u(b);var d=P();return v(Eab(d,c))})("keydown.escape",function(){u(b);var c=qg(2);return v(c.hide())});F(3,uab,4,5,"div",13);F(4,Bab,2,1)(5,Dab,2,1,"div",14);L()}a&2&&(a=P(),xg(Eg("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name)),wg("bv2-disabled",a.disabled)("bv2-readonly",a.readonly),If("aria-label",Fg("",a.title," value is ",a.getDisplayValue("empty"))),I("matTooltip",a.getTooltip()),
If("tabindex",a.readonly?-1:0)("aria-disabled",!1),B(3),G(a.title?3:-1),B(),G(a.type==="ENUM"?4:5))},Gab=function(a){if(a&1){var b=t();K(0,"div",23);N("click",function(){u(b);var c=P(2);return v(c.setFieldValue(!c.value))});K(1,"label");Q(2);L()()}a&2&&(a=P(2),xg(Eg("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x")),B(2),yg(a.title))},Hab=function(a){if(a&1){var b=t();K(0,"div",21);F(1,Gab,3,4,"div",13);K(2,"b-slide-toggle",22);N("modelChange",function(){u(b);var d=P();return v(d.setFieldValue(!d.value))});
L()()}if(a&2){a=P();xg(Eg("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name));wg("bv2-disabled",a.disabled)("bv2-readonly",a.readonly);I("matTooltip",a.getTooltip());If("aria-disabled",!1);B();G(a.title?1:-1);B();I("disabled",a.disabled||a.readonly);Hf("aria-label",a.name);var c;I("model",(c=a.value)!=null?c:void 0)}},Iab=function(a){if(a&1){var b=t();K(0,"button",25);N("click",function(){u(b);var c=P(2);return v(c.clearFieldValue())});K(1,"span",26);M(2,"mat-icon",27);L();Q(3," \u00a0 ");
L()}a&2&&(a=P(2),wg("b-menu-item-checked",a.value==null),I("disabled",a.value==null))},Jab=function(a){a&1&&M(0,"mat-divider")},Kab=function(a){a&1&&M(0,"mat-icon",30);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},Lab=function(a){a&1&&(K(0,"span",31),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.hotkey.displayAs))},Mab=function(a,b){if(a&1){var c=t();F(0,Jab,1,0,"mat-divider");K(1,"button",28);N("click",function(){var e=u(c).$implicit,f=P(2);return v(f.setFieldValue(e.value))})("onHotkey",function(){var e=
u(c).$implicit,f=P(2);f.setFieldValue(e.value);return v(f.enumMenuTrigger.closeMenu())});K(2,"span",29);F(3,Kab,1,1,"mat-icon",30);K(4,"span",26);M(5,"mat-icon",27);L();Q(6);F(7,Lab,2,1,"span",31);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);G(b>0&&d.choices[b].group!=d.choices[b-1].group?0:-1);B();wg("b-menu-item-checked",d.value==a.value);I("disabled",d.value==a.value)("hotkey",a.hotkey);If("aria-label",a.displayText)("title",!d.showEnumTitle||a.altText?"":a.displayText);B(2);G(a.icon?3:-1);
B(3);S(" ",a.displayText," ");B();G(a.hotkey&&d.showHotkeyHint?7:-1)}},Nab=function(a){a&1&&(F(0,Iab,4,3,"button",24),Nf(1,Mab,8,10,null,null,Mf));a&2&&(a=P(),G(a.clearable?0:-1),B(),Of(a.choices))},Oab=function(a){a&1&&M(0,"mat-icon",33);a&2&&(a=P(2),I("svgIcon",a.displayIcon))},Pab=function(a){a&1&&M(0,"b-truncated-span",37);a&2&&(a=P(2),wg("p0",a.value===a.IssuePriority.P0)("p1",a.value===a.IssuePriority.P1),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},Qab=
function(a){a&1&&M(0,"b-truncated-span",37);a&2&&(a=P(2),xg(Eg("chippy status-",a.value)),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},Rab=function(a){a&1&&M(0,"b-truncated-span",36);a&2&&(a=P(2),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},Sab=function(a){a&1&&M(0,"b-truncated-span",37);a&2&&(a=P(2),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},Uab=function(a){a&1&&M(0,"div",38)},Vab=function(a){a&
1&&(K(0,"div",39),M(1,"mat-icon",41),L())},Wab=function(a){a&1&&(K(0,"div",40),M(1,"mat-icon",42),L())},Xab=function(a){if(a&1){var b=t();K(0,"div",32,4);N("keydown",function(c){u(b);var d=P();return v(Eab(d,c))})("click",function(c){u(b);var d=P();return v(Zr(d,c,!0,!1))});K(2,"div")(3,"span",29);F(4,Oab,1,1,"mat-icon",33);F(5,Pab,1,7,"b-truncated-span",34)(6,Qab,1,6,"b-truncated-span",35)(7,Rab,1,3,"b-truncated-span",36)(8,Sab,1,3,"b-truncated-span",37);L();F(9,Uab,1,0,"div",38);L();F(10,Vab,2,
0,"div",39)(11,Wab,2,0,"div",40);L()}a&2&&(a=P(),wg("edit-field-activated",a.isActive),B(4),G(a.displayIcon?4:-1),B(),G(a.title==="Priority"?5:a.title==="Status"?6:a.title==="Triage phase"?7:8),B(4),G(a.title||a.readonly||a.disabled?-1:9),B(),G(a.type=="ENUM"?10:11))},Yab=function(){},Zab=function(){},$ab=function(a){if(a&1){var b=t();K(0,"div",23);N("click",function(d){u(b);return v(d.stopPropagation())});K(1,"b-date-time-picker-content",45);N("dateSelectionChange",function(d){u(b);var e=P(2);return v(e.googDateValue=
d!=null?d:null)})("saveClicked",function(){u(b);var d=P(2);return v(d.setFieldValue(d.googDateValue))})("cancelClicked",function(){u(b);var d=P(2);return v(Zr(d,null,!1,!1))});L()()}if(a&2){a=P(2);B();var c;I("required",!(a.clearable&&a.type==="DATE"))("date",(c=a.googDateValue)!=null?c:void 0)}},bbb=function(a){if(a&1){var b=t();K(0,"textarea",54);Cg("ngModelChange",function(c){u(b);var d=P(3);Bg(d.textBuffer,c)||(d.textBuffer=c);return v(c)});N("keydown",function(c){u(b);var d=P(3);if(!d.autocompleteActive)switch(c.keyCode){case 13:if(c.ctrlKey||
c.metaKey)c.stopPropagation(),abb(d);break;case 27:c.stopPropagation(),Zr(d,c,!1,!0)}return v()});L()}a&2&&(a=P(3),Ag("ngModel",a.textBuffer),If("aria-label",a.title))},cbb=function(a){if(a&1){var b=t();K(0,"input",55);Cg("ngModelChange",function(c){u(b);var d=P(3);Bg(d.textBuffer,c)||(d.textBuffer=c);return v(c)});N("keydown",function(c){u(b);var d=P(3);if(!d.autocompleteActive)switch(c.keyCode){case 13:c.stopPropagation();abb(d);break;case 27:c.stopPropagation(),Zr(d,c,!1,!0)}return v()});L()}a&
2&&(a=P(3),Ag("ngModel",a.textBuffer),If("type",a.type==="NUMERIC"?"number":"text")("aria-label",a.title))},dbb=function(a){if(a&1){var b=t();K(0,"div",46);N("click",function(c){u(b);return v(c.stopPropagation())});K(1,"div");F(2,bbb,1,2,"textarea",47)(3,cbb,1,3,"input",48);L();K(4,"div",49)(5,"button",50);N("click",function(){u(b);var c=P(2);return v(abb(c))});M(6,"mat-icon",51);L();K(7,"button",52);N("click",function(c){u(b);var d=P(2);return v(Zr(d,c,!1,!0))});M(8,"mat-icon",53);L()();K(9,"div",
40);M(10,"mat-icon",42);L()()}a&2&&(a=P(2),B(2),G(a.multiline?2:3),B(3),If("aria-label",Eg("Apply change to ",a.title)),I("matTooltip",Eg("Apply change to ",a.title))("disabled",a.value==a.textBuffer),B(2),If("aria-label",Eg("Discard change to ",a.title)),I("matTooltip",Eg("Discard change to ",a.title)))},ebb=function(a){a&1&&(K(0,"div",43,5),F(2,Yab,0,0)(3,Zab,0,0)(4,$ab,2,2,"div")(5,dbb,11,10,"div",44),L());if(a&2){var b;a=P();xg(Eg("bv2-issue-metadata-field-edit bv2-issue-metadata-field-",a.name,
"-edit"));B(2);G((b=a.type)==="ENUM"?2:b==="BOOL"?3:b==="DATE"?4:5)}},fbb=function(a){switch(a==null?void 0:a.type){case "ENUM":return"ENUM";case "DATE":return"DATE";case "TEXT":return"TEXT";case "NUMERIC":return"NUMERIC";default:return null}},$r=function(a,b,c){c=c===void 0?2:c;var d=Math.floor((new Date).getTime()/1E3-a);if(d<300)return"just now";if(!(d<0)){for(var e=[],f=m(gbb),g=f.next();!g.done;g=f.next()){var k=m(g.value);g=k.next().value;k=k.next().value;if(e.length>=c)break;var l=Math.floor(d/
k);if(l>=1)b?e.push(""+l+hbb[g]):l===1?e.push(l+" "+g):e.push(l+" "+g+"s");else if(e.length)break;d-=l*k;if(l>1)break}if(e.length)return e.join(" ")+" ago";console.error("epochToDateAgo() unhandled input. Seconds:",a)}},ibb=function(a,b){a&1&&(K(0,"time",1),T(1,"async"),Q(2),L());if(a&2){a=P();var c=Eg("padding-left: ",a.paddingLeftPx,"px");Ona(Mna,Nna,c,!1);I("title",b.title);If("datetime",U(1,6,a.timestampIso$));B(2);yg(b.formatted)}},jbb=function(a,b){a&1&&(K(0,"span",4),Q(1," by "),M(2,"b-user-display-name",
7),T(3,"emailToUser"),L());a&2&&(B(2),I("user",U(3,2,b))("hovercardEnabled",!1))},kbb=function(a,b){a&1&&(K(0,"div")(1,"span"),Q(2),L(),M(3,"b-formatted-date-time",8),L());a&2&&(a=P(),B(2),yg(a.pending?"Created on: ":"Submitted on: "),B(),I("timestamp",b))},lbb=function(a,b){a&1&&(M(0,"br"),Q(1));a&2&&(a=b.$implicit,B(),S("",a," "))},mbb=function(a,b){a&1&&(K(0,"div",2)(1,"a",3),Q(2," CL "),K(3,"span"),Q(4),L()(),F(5,jbb,4,4,"span",4),M(6,"br")(7,"br"),F(8,kbb,4,2,"div"),K(9,"div",5),M(10,"div",6)(11,
"br"),K(12,"div"),Q(13," Affected files: "),Nf(14,lbb,2,1,null,null,Mf),L()()());if(a&2){var c,d;a=P();B();I("href","http://critique.corp.google.com/"+a.changelistId,Ne);B(3);yg(a.changelistId);B();G((c=b.author)?5:-1,c);B(3);G((d=b.timestamp)?8:-1,d);B(2);I("innerHTML",b.description,Me);B(4);Of(b.affectedFiles)}},nbb=function(a){a&1&&M(0,"b-changelist-card",5,1);if(a&2){a=qg(1);var b=P();I("onedevIsHovercardReady",a.init)("changelistId",b.changelistId)}},obb=function(a){a&1&&M(0,"b-changelist-chip",
0);a&2&&(a=P(),I("changelistId",a.changelist))},pbb=function(a){a&1&&M(0,"b-gerrit-change-chip",1);a&2&&(a=P(),I("gerritChange",a.gerritChange))},qbb=function(a){a&1&&M(0,"b-changelist-card",4,1);if(a&2){a=qg(1);var b=P();I("onedevIsHovercardReady",a.init)("changelistId",b.id)}},rbb=function(a,b){a&1&&(K(0,"mat-list-option",11),Q(1),L());a&2&&(a=b.$implicit,b=P(),vg("height","auto"),I("selected",b.selectedValues.has(a))("value",a),B(),S(" ",a," "))},sbb=function(a){var b,c=(b=a==null?void 0:a.added.length)!=
null?b:0,d;b=(d=a==null?void 0:a.removed.length)!=null?d:0;return a?c>0&&b===0?["Add ("+c+")","Add "+c+" value(s)"]:c===0&&b>0?["Remove ("+b+")","Remove "+b+" value(s)"]:["Save","Save all changes ("+c+" added, "+b+" removed)"]:["Save","(No changes)"]},tbb=function(a){if(a&1){var b=t();K(0,"a",16);N("click",function(){u(b);var c=P();return v(c.trackClick("viewTeamAssociationOnComponent"))});K(1,"button",11);Q(2,"View team association on component");L()()}a&2&&(a=P(),I("href",a.ROUTES.editComponent.makeHref(a.componentId),
Ne))},ubb=function(a){if(a&1){var b=t();K(0,"a",4);N("click",function(){u(b);var d=P(2);return v(d.trackClick("viewTeamInMoma"))});K(1,"span");Q(2);M(3,"mat-icon",5);L()()}if(a&2){a=P(2);var c=qg(4);I("href",Eg("https://moma.corp.google.com/team/",a.teamId),Ne)("onedevHovercardTrigger",c);If("aria-labelledby",a.linkAriaLabelledBy())("aria-label",(a.teamName?a.teamName:a.teamId)+" - link opens in a new tab");B();If("id",a.teamLinkId);B();S("",a.teamName?a.teamName:a.teamId," ")}},vbb=function(a){a&
1&&(K(0,"span",3),Q(1),L());if(a&2){a=P(2);var b=qg(4);I("onedevHovercardTrigger",b);B();yg(a.teamName?a.teamName:a.teamId)}},wbb=function(a){a&1&&(F(0,ubb,4,7,"a",2),F(1,vbb,2,2,"span",3));a&2&&(a=P(),G(a.anchorLinkEnabled?0:-1),B(),G(a.anchorLinkEnabled?-1:1))},xbb=function(a){a&1&&M(0,"span",6)},ybb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),yg(a.teamNotAssignedMessage))},zbb=function(a){a&1&&(F(0,xbb,1,0,"span",6),F(1,ybb,2,1,"span"));a&2&&(a=P(),G(a.teamId!="0"?0:-1),B(),G(a.teamId==
"0"?1:-1))},Abb=function(a){a&1&&M(0,"b-icon",2);a&2&&(a=P(),I("name",a.iconName))},Bbb=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),B(),yg(a.title))},Cbb=function(a){a&1&&(K(0,"div",4),Q(1,"\u00a0"),L())},Gbb=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");d==="canvas"?Dbb(a,b):(d==="input"||d==="select"||d==="textarea")&&Ebb(a,b);Fbb("canvas",a,b,Dbb);Fbb("input, textarea, select",
a,b,Ebb);return b},Fbb=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])},Ebb=function(a,b){b.type!=="file"&&(b.value=a.value);b.type==="radio"&&b.name&&(b.name="mat-clone-"+b.name+"-"+Hbb++)},Dbb=function(a,b){if(b=b.getContext("2d"))try{b.drawImage(a,0,0)}catch(c){}},Ibb=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}},Jbb=function(a,b,c){var d=
a.bottom,e=a.left,f=a.right;return c>=a.top&&c<=d&&b>=e&&b<=f},Kbb=function(a,b,c){a.top+=b;a.bottom=a.top+a.height;a.left+=c;a.right=a.left+a.width},Lbb=function(a,b,c){var d=a.right,e=a.bottom,f=a.left,g=a.width*.05,k=a.height*.05;return c>a.top-k&&c<e+k&&b>f-g&&b<d+g},Mbb=function(a,b){a=a.rootNodes;if(a.length===1&&a[0].nodeType===b.ELEMENT_NODE)return a[0];var c=b.createElement("div");a.forEach(function(d){return c.appendChild(d)});return c},Nbb=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,((f=c)==null?0:f.has(d))?"important":"")}else a.removeProperty(d)}},as=function(a,b){var c=b?"":"none";Nbb(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})},Pbb=function(a,b){Nbb(a.style,{position:b?"":"fixed",top:b?"":"0",opacity:b?"":"0",left:b?"":"-999em"},Obb)},Qbb=function(a,b){return b&&b!="none"?a+" "+
b:a},Sbb=function(a,b){a.style.width=b.width+"px";a.style.height=b.height+"px";a.style.transform=Rbb(b.left,b.top)},Rbb=function(a,b){return"translate3d("+Math.round(a)+"px, "+Math.round(b)+"px, 0)"},Tbb=function(a){var b=a.toLowerCase().indexOf("ms")>-1?1:1E3;return parseFloat(a)*b},Vbb=function(a){a=getComputedStyle(a);var b=Ubb(a,"transition-property"),c=b.find(function(d){return d==="transform"||d==="all"});if(!c)return 0;b=b.indexOf(c);c=Ubb(a,"transition-duration");a=Ubb(a,"transition-delay");
return Tbb(c[b])+Tbb(a[b])},Ubb=function(a,b){return a.getPropertyValue(b).split(",").map(function(c){return c.trim()})},Wbb=function(a){return a.type[0]==="t"},Xbb=function(a){a.preventDefault()},bs=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}},Ybb=function(a,b){var c=a.top,d=a.bottom;a=a.height*.05;return b>=c-a&&b<=c+a?1:b>=d-a&&b<=d+a?2:0},Zbb=function(a,b){var c=a.left,d=a.right;a=
a.width*.05;return b>=c-a&&b<=c+a?1:b>=d-a&&b<=d+a?2:0},$bb=function(a){a&1&&(K(0,"label"),Q(1),L());a&2&&(a=P(),B(),S(" ",a.title," "))},acb=function(a){a&1&&M(0,"mat-icon",13)},ccb=function(a,b){a&1&&(K(0,"div",18),Vf(1,20),L());if(a&2){a=b.$implicit;b=b.$index;P(2);var c=qg(13);B();I("ngTemplateOutletContext",Jg(2,bcb,a,b))("ngTemplateOutlet",c)}},ecb=function(a){a&1&&(K(0,"collapsible-panel",15),Nf(1,ccb,2,5,"div",18,Lf),Vf(3,19),L());if(a&2){a=P();var b=qg(15),c=I("isExpanded",a.isExpanded||
cs(a))("iconName",a.iconName)("hasCompactTitleBar",!0);var d=cs(a)?(d=a.values)?d.length===1?"1 value":d.length+" values":"":a.collapsiblePanelTitle;c("title",d);B();Of(dcb(a));B(2);I("ngTemplateOutlet",b)}},fcb=function(a,b){a&1&&(K(0,"div",18),Vf(1,20),L());if(a&2){a=b.$implicit;b=b.$index;P(2);var c=qg(13);B();I("ngTemplateOutletContext",Jg(2,bcb,a,b))("ngTemplateOutlet",c)}},gcb=function(a){a&1&&(K(0,"div",21),Q(1,"--"),L())},hcb=function(a){a&1&&(Nf(0,fcb,2,5,"div",18,Lf),Vf(2,19),F(3,gcb,2,
0,"div",21));if(a&2){a=P();var b=qg(15);Of(dcb(a));B(2);I("ngTemplateOutlet",b);B();G((a.values==null?0:a.values.length)?-1:3)}},kcb=function(a){if(a&1){var b=t();K(0,"button",26);N("menuOpened",function(){u(b);var d=P(3);icb(d);d.enumPendingValues=new Set(d.values||[]);return v()})("menuClosed",function(){u(b);var d=P(3);return v(jcb(d))});Q(1,"Edit ");L()}if(a&2){a=P(3);var c=qg(17);I("matMenuTriggerFor",c);If("aria-label","Add item to "+a.title)}},mcb=function(a){if(a&1){var b=t();K(0,"button",
27,6);N("click",function(){u(b);var c=P(3);return v(lcb(c))});Q(2,"Edit ");L()}a&2&&(a=P(3),If("aria-label","Edit items for "+a.title))},ncb=function(a){a&1&&F(0,kcb,2,2,"button",24)(1,mcb,3,1,"button",25);a&2&&(a=P(2),G(cs(a)?1:0))},ocb=function(a){a&1&&(K(0,"button",22),Q(1,"Add "),L());if(a&2){a=P(2);var b=qg(22);If("aria-label",Eg("Add item to ",a.title));I("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},pcb=function(a){if(a&1){var b=t();K(0,"button",28);N("beforeOpened",
function(){u(b);var d=P(2);return v(d.invalidMessage="")});Q(1,"Add ");L()}if(a&2){a=P(2);var c=qg(20);If("aria-label",Eg("Add item to ",a.title));I("dialogLabel",Eg("Add item to ",a.title))("matTooltip",Eg("Add item to ",a.title))("xapInlineDialogClick",c)("overlayPositions",a.OVERLAY_POSITION_LIST)}},qcb=function(a){a&1&&F(0,ncb,2,1)(1,ocb,2,4,"button",22)(2,pcb,2,8,"button",23);if(a&2){var b;a=P();G((b=a.type)==="REPEATED_ENUM"?0:b==="REPEATED_DATE"?1:2)}},rcb=function(a){a&1&&(K(0,"div"),M(1,
"b-code-change-chip",34),L());a&2&&(a=P(2).item,B(),I("codeChange",a))},scb=function(a){a&1&&(K(0,"div")(1,"a",35),Q(2),L()());if(a&2){a=P(2).item;var b=P();B();switch(b.environmentType){case "NIGHTLY":case "PROD":b="https://taskflow.corp.google.com/workspaces";break;default:b="https://taskflow-autopush.corp.google.com/workspaces"}I("href",b+"/"+a.workspaceId+"/work_item/b/"+a.issueId+"?edit=b/"+a.issueId,Ne);If("aria-label","Workspace"+a.workspaceId);B();S(" ",a.workspaceName," ")}},tcb=function(a){a&
1&&(K(0,"div"),M(1,"b-team-display",36),L());a&2&&(a=P(2).item,B(),I("teamId",a.teamId)("componentId",a.componentId))},ucb=function(a){if(a&1){var b=t();K(0,"div")(1,"a",37);N("click",function(){u(b);var c=P(3);return v(c.trackClick("postmortem"))});Q(2);L()()}a&2&&(a=P(2).item,B(),If("aria-label",Eg("Postmortem ",a)),I("href",Eg("https://pm.corp.google.com/",a),Ne),B(),S(" ",a," "))},wcb=function(a){if(a&1){var b=t();K(0,"div",31)(1,"a",38);N("click",function(){u(b);var d=P(3);return v(d.trackClick("repeated-enum"))});
Q(2);L()()}if(a&2){a=P(2).item;var c=P();I("matTooltip",a);B();If("aria-label",Fg("Search issues for customfield",c.customFieldId,":",a));I("queryParams",Ig(6,vcb,"customfield"+c.customFieldId+':"'+a+'"'));B();S(" ",a," ")}},xcb=function(a){a&1&&(K(0,"div"),M(1,"b-truncated-span",39),L());if(a&2){a=P(2).item;var b=P();B();I("maxWidth",150)("modelValue",a)("disabled",!b.truncate)}},ycb=function(a){if(a&1){var b=t();K(0,"button",40,7);N("click",function(){u(b);var d=P(2).$index,e=P();return v(e.removeItem(d))});
L()}if(a&2){a=P(2).item;var c=P();If("aria-label",Fg("Remove ",a," from ",c.title));I("disabled",c.listFieldDisabled)("matTooltip","Remove item")}},zcb=function(a){a&1&&(K(0,"div",29)(1,"div",30),F(2,rcb,2,1,"div")(3,scb,3,3,"div")(4,tcb,2,2,"div")(5,ucb,3,5,"div")(6,wcb,3,8,"div",31)(7,xcb,2,3,"div"),L(),F(8,ycb,2,5,"button",32),M(9,"div",33),L());if(a&2){a=P().item;var b=P();B(2);G(b.type==="CODE_CHANGES"?2:b.type==="WORKSPACES"?3:b.type==="TEAM"?4:b.type==="POSTMORTEMS"?5:b.type==="REPEATED_ENUM"&&
cs(b)?6:b.isString(a)?7:-1);B(6);G(b.readonly||b.type==="REPEATED_ENUM"?-1:8)}},Acb=function(a,b){a&1&&F(0,zcb,10,2,"div",29);if(a&2){a=b.item;b=b.$index;var c=P();G((c.showingAll||b<c.defaultLineCount||c.values&&c.values.length===c.defaultLineCount+1)&&(c.type!=="CODE_CHANGES"||c.showCodeChanges(a))?0:-1)}},Bcb=function(a){if(a&1){var b=t();K(0,"div",42,8);N("click",function(c){u(b);var d=P(2);return v(ds(d,!1,c))})("keydown.enter",function(c){u(b);var d=P(2);return v(ds(d,!1,c))})("keydown.space",
function(c){u(b);var d=P(2);return v(ds(d,!1,c))});Q(2," (show fewer) ");L()}a&2&&(a=P(2),If("aria-label",Fg("Show at most ",a.defaultLineCount," ",a.title," items")),I("matTooltip",Eg("Show a truncated list of at most ",a.defaultLineCount," items")))},Ccb=function(a){if(a&1){var b=t();K(0,"div")(1,"div",43);Q(2);K(3,"span",44,9);N("click",function(c){u(b);var d=P(2);return v(ds(d,!0,c))})("keydown.enter",function(c){u(b);var d=P(2);return v(ds(d,!0,c))})("keydown.space",function(c){u(b);var d=P(2);
return v(ds(d,!0,c))});Q(5," (show all) ");L()()()}a&2&&(a=P(2),B(2),S(" ... and ",a.values.length-a.defaultLineCount," more "),B(),If("aria-label",Fg("Show all ",a.values==null?null:a.values.length," ",a.title," items")),I("matTooltip",Eg("Show all ",a.values==null?null:a.values.length," items in the list")))},Ecb=function(a){a&1&&(F(0,Bcb,3,5,"div",41),F(1,Ccb,6,6,"div"));a&2&&(a=P(),G(a.showingAll&&Dcb(a)?0:-1),B(),G(!a.showingAll&&Dcb(a)?1:-1))},Gcb=function(a,b){if(a&1){var c=t();K(0,"button",
46);N("click",function(d){var e=u(c).$implicit,f=P(2),g=e.value;f.enumPendingValues.has(g)?f.enumPendingValues.delete(g):f.enumPendingValues.add(g);f.liveAnnouncer.announce(Fcb(f,e));d==null||d.stopPropagation();return v()});K(1,"span",47);M(2,"mat-icon",48);L();Q(3);L()}a&2&&(a=b.$implicit,b=P(2),wg("b-menu-item-checked",b.enumPendingValues.has(a.value)),I("disabled",b.listFieldDisabled),If("aria-label",Fcb(b,a)),B(3),S(" ",a.displayText," "))},Hcb=function(a){a&1&&Nf(0,Gcb,4,5,"button",45,Lf);a&
2&&(a=P(),Of(a.sortedEnumChoices))},Icb=function(a){a&1&&(K(0,"mat-error"),Q(1),L());a&2&&(a=P(2),If("aria-label",Fg("",a.title," error: ",a.invalidMessage)),B(),S(" ",a.invalidMessage," "))},Jcb=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"form",49,10);N("ngSubmit",function(){u(b);var d=qg(3),e=qg(4),f=P();return v(f.textPopupSubmit(d,e))});M(5,"input",50);K(6,"div",51)(7,"button",52);M(8,"mat-icon",53);L();K(9,"button",54);N("click",function(){u(b);var d=
P();return v(d.closeAddPopup(!0))});M(10,"mat-icon",55);L()();F(11,Icb,2,4,"mat-error");L()()()}if(a&2){a=qg(3);var c=P();B(5);If("aria-label",Eg("Addition to ",c.title));I("type",c.type==="REPEATED_NUMERIC"?"number":"text");B(2);If("aria-label",Eg("Apply addition to ",c.title));I("disabled",!a.valid||c.listFieldDisabled);B(2);If("aria-label",Eg("Discard addition to ",c.title));B(2);G(c.invalidMessage?11:-1)}},Kcb=function(a){if(a&1){var b=t();K(0,"b-date-time-picker-content",56);N("dateChange",function(c){u(b);
var d=P();return v(c&&d.addItems(c))})("cancelClicked",function(){u(b);var c=P();return v(c.closeAddPopup(!1))});L()}a&2&&I("required",!0)("renderPanel",!1)},Lcb=function(a,b){return{originX:a,originY:b}},Mcb=function(a,b){return{overlayX:a,overlayY:b}},Ncb=function(a){switch(a==null?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}},fs=
function(a){return(a!=null?a:[]).map(es)},gs=function(a){return(a!=null?a:[]).map(Ocb)},es=function(a){if(a==null)return"";var b=a.user,c=a.group,d=a.alias;a=void 0;b!=null?(a="USER",b=wm(b)):c!=null?(a="GROUP",b=wm(c)):d!=null?(a="ALIAS",b=d):b="";return a===void 0||b===""?"":a+":"+b},hs=function(a){return(a!=null?a:[]).map(es)},is=function(a){return(a!=null?a:[]).map(Ocb)},Ocb=function(a){var b=m(a.split(":"));a=b.next().value;b=b.next().value;if(!a||!b)throw Error("Pe`"+b);switch(a){case "USER":return{user:{emailAddress:b}};
case "GROUP":return{group:{emailAddress:b}};case "ALIAS":return{alias:b};default:throw Error("Qe`"+b);}},js=function(){return{admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null}},ks=function(a){return{admins:fs(a.admins),editors:fs(a.editors),appenders:fs(a.appenders),readers:fs(a.readers),restrictedReaders:fs(a.restrictedReaders),restrictedPlusReaders:fs(a.restrictedPlusReaders),inheritedAdmins:fs(a.inheritedAdmins),implicitAccess:a.implicitAccess||
null}},ls=function(a){return{admins:gs(a.admins),editors:gs(a.editors),appenders:gs(a.appenders),readers:gs(a.readers),restrictedReaders:gs(a.restrictedReaders),restrictedPlusReaders:gs(a.restrictedPlusReaders),implicitAccess:a.implicitAccess}},Pcb=function(a){a&1&&Vf(0)},Qcb=function(a){if(a&1){var b=t();K(0,"div",3);N("mouseenter",function(){u(b);var c=P();return v(c.toggle(!0))})("mouseleave",function(){u(b);var c=P();return v(c.toggle(!1))})("mousemove",function(){u(b);P().activity.next();return v()});
E(1,Pcb,1,0,"ng-container",4);L()}a&2&&(a=P(),I("ngClass",a.bubbleStyle)("@fade",void 0),B(),I("ngTemplateOutlet",a.panelTemplate))},Rcb=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(2),xg(a.chipClass),wg("xs",a.compactMode),B(),S(" ",a.chipText," "))},Scb=function(a){a&1&&(K(0,"div",5),Q(1),K(2,"a",6),Q(3," Learn more"),L()());a&2&&(a=P(3),B(),S(" ",a.bubbleText," "),B(),I("href",ms(a.documentationLinks),Ne))},Tcb=function(a){a&1&&(K(0,"xap-bubble",2)(1,"span",4),Q(2),L(),E(3,Scb,4,2,"ng-template",
null,0,Mg),L());if(a&2){a=qg(4);var b=P(2);I("panelTemplate",a);B();xg(b.chipClass);wg("xs",b.compactMode);B();S(" ",b.chipText," ")}},Ucb=function(a){a&1&&F(0,Rcb,2,5,"span",1)(1,Tcb,5,6,"xap-bubble",2);a&2&&(a=P(),G(a.labelOnlyMode?0:1))},Vcb=function(a){a&1&&(K(0,"li")(1,"a",3),Q(2," Create an issue in this component"),L()());a&2&&(a=P(2),B(),I("href",a.createIssueUrl,Ne))},Wcb=function(a,b){a&1&&(K(0,"h3"),Q(1),L(),K(2,"p"),Q(3),L(),M(4,"b-component-access-level-indicator",2),K(5,"p"),Q(6),L(),
K(7,"ul")(8,"li")(9,"a",3),Q(10," View recent open issues"),L()(),F(11,Vcb,3,1,"li"),K(12,"li")(13,"a",3),Q(14," View component"),L()()());a&2&&(a=P(),B(),yg(b.name),B(2),S("ID: ",a.componentId),B(),I("accessLevel",b.accessLimit==null?null:b.accessLimit.accessLevel)("labelOnlyMode",!0),B(2),yg(b.description),B(3),I("href",a.recentIssuesUrl,Ne),B(2),G(a.isAnonymous?-1:11),B(2),I("href",a.viewComponentUrl,Ne))},Xcb=function(a,b){a&1&&(K(0,"span",4)(1,"a",6),Q(2),L(),K(3,"onedev-hovercard",null,0),M(5,
"b-component-card",7),L()());a&2&&(a=b.$implicit,b=qg(4),B(),I("onedevHovercardTrigger",b)("routerLinkObj",a.route),B(),yg(a.name),B(3),I("componentId",a.id.toString()))},Ycb=function(a){a&1&&(K(0,"span",5),Q(1,"[Archived]"),L())},Zcb=function(a,b){b=b===void 0?zr:b;var c,d=(c=a==null?void 0:a.componentPathId)!=null?c:[],e,f=(e=a==null?void 0:a.componentPathName)!=null?e:[];return d.map(function(g,k){var l;k=(l=f[k])!=null?l:String(g);l=b(g);return{id:g,name:k,route:l}})},$cb=function(a){a&1&&Q(0,
" > ")},adb=function(a,b){a&1&&(K(0,"a",4),Q(1),L(),F(2,$cb,1,0));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;If("aria-label",Eg("View recent issues in ",a.name));I("routerLinkObj",a.route);B();yg(a.name);B();G(c!==b-1?2:-1)}},bdb=function(a){a&1&&(K(0,"span"),Q(1," [Archived]"),L())},cdb=function(a){a&1&&(K(0,"div",2),Nf(1,adb,3,5,null,null,Mf),T(3,"async"),F(4,bdb,2,0,"span"),T(5,"async"),L());a&2&&(a=P(),B(),Of(U(3,1,a.componentPath$)),B(3),G(U(5,3,a.isArchived$)?4:-1))},ddb=function(a,b){a&
1&&(K(0,"div",5),M(1,"mat-icon",6),K(2,"div",7),Q(3),L()(),K(4,"div",8)(5,"span",7),Q(6),L(),M(7,"b-component-access-level-indicator",9),L(),K(8,"p",7),Q(9),L());a&2&&(B(3),yg(b.name),B(3),S("Component ID: ",b.componentId),B(),I("accessLevel",b.accessLimit==null?null:b.accessLimit.accessLevel)("labelOnlyMode",!0),B(2),yg(b.description))},edb=function(a,b){a&1&&(K(0,"div",3)(1,"a",10),Q(2,"View recent open issues"),L(),K(3,"a",11),Q(4,"View component settings"),L(),K(5,"a",12),Q(6,"Create issue in this component"),
L()());a&2&&(B(),I("routerLinkObj",b.recentIssues),B(2),I("routerLinkObj",b.componentSettings),B(2),I("routerLinkObj",b.createIssue))},gdb=function(a){return fdb[a]},ns=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]]}))})},os=function(a){a=a===void 0?0:a;return new Promise(function(b){setTimeout(b,a)})},hdb=function(a){a&1&&(K(0,"span",4),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.name," "))},idb=function(a){a&
1&&Q(0," Trackers are distinct communities with their own branding. ")},jdb=function(a){a&1&&(K(0,"a",9),Q(1,"Learn More"),L());a&2&&(a=P(2),I("href",a.documentationLinks.baseDocumentationUrl+"/concepts/trackers",Ne))},kdb=function(a){a&1&&(K(0,"button",1),M(1,"img",2)(2,"img",3),F(3,hdb,2,1,"span",4),L(),K(4,"onedev-hovercard",null,0)(6,"div",5)(7,"div",6)(8,"span",7),Q(9),F(10,idb,1,0),L(),K(11,"div",8)(12,"a",9),Q(13),L(),F(14,jdb,2,1,"a",9),L()()()());if(a&2){a=qg(5);var b=P();wg("xs",b.compactMode);
I("onedevHovercardTrigger",a)("onedevHovercardActive",b.showHovercard);B();I("src",b.logoLight,Ne);B();I("src",b.logoDark,Ne);B();G(b.compactMode?-1:3);B(6);S(" This component or issue is part of ",b.extendedName,". ");B();G(b.isGlobalBuganizer?-1:10);B(2);I("href",b.redirectUrl,Ne);B();S("View ",b.extendedName);B();G(b.isGlobalBuganizer?-1:14)}},ldb=function(a){a&1&&(M(0,"b-tracker-chip",0),T(1,"async"));a&2&&(a=P(),I("tracker",U(1,4,a.tracker$)||void 0)("compactMode",a.compactMode)("showHovercard",
a.showHovercard)("isGlobalBuganizer",a.isGlobalBuganizer))},mdb=function(a){a&1&&M(0,"mat-icon",1)},ndb=function(a){if(a&1){var b=t();K(0,"button",9);N("mousedown",function(c){u(b);var d=P();return v(d.back(c))});M(1,"mat-icon",10);L()}},odb=function(a){if(a&1){var b=t();K(0,"button",11);N("mousedown",function(c){u(b);var d=P();return v(d.expand(d.componentOption,c))});M(1,"mat-icon",12);L()}a&2&&(a=P(),I("matTooltip","View child components of "+a.componentOption.name),If("aria-label","View child components of "+
a.componentOption.name),B(),I("svgIcon",a.showFolderSpecialIcon?"folder_special_24px":"folder"))},pdb=function(a){if(a&1){var b=t();K(0,"a",14);T(1,"toString");T(2,"boldPrefixMatches");N("mousedown",function(d){u(b);var e=P().$implicit;P(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return v()});L()}if(a&2){a=P().$implicit;var c=P(2);I("innerHtml",Lg(2,3,U(1,1,a.name),c.query),Me)}},qdb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.name," "))},rdb=function(a){a&1&&Q(0,
" \u00a0>\u00a0 ")},sdb=function(a,b){a&1&&(F(0,pdb,3,6,"a",13)(1,qdb,1,1),F(2,rdb,1,0));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;G(a.name!=a.id?0:1);B(2);G(c!==b-1?2:-1)}},tdb=function(a){a&1&&Nf(0,sdb,3,2,null,null,Mf);a&2&&(a=P(),Of(a.componentOption.componentPath))},udb=function(a,b){if(a&1){var c=t();K(0,"a",16);N("mousedown",function(d){var e=u(c);P(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return v()});Q(1);L()}a&2&&(B(),S(" ",b.name," "))},vdb=function(a){a&
1&&F(0,udb,2,1,"a",15);if(a&2){var b;a=P();G((b=a.componentOption.componentPath[a.componentOption.componentPath.length-1])?0:-1,b)}},wdb=function(a){a&1&&(K(0,"span",6),Q(1," [Archived] "),L())},xdb=function(a){return{type:"team",id:a.teamId,name:a.name,description:a.description,pathNames:a.pathNames,pathIds:a.pathIds,expanded:!1}},ydb=function(a){return{type:"team",id:a.id,name:a.name,description:a.description,expanded:!1}},zdb=function(a,b){var c,d=(c=b==null?void 0:b.componentPathId)!=null?c:[],
e,f=(e=b==null?void 0:b.componentPathName)!=null?e:[];b=d.map(function(g,k){return{id:g,name:f[k],pathText:f.slice(0,k+1).join(" > ")}});return{type:"component",id:a.componentId,name:a.name,description:a.description,accessLimit:a.accessLimit,archived:a.archived,componentPath:b,trackerId:a.trackerId}},Adb=function(a){return new Map([].concat(q(a.entries())).map(function(b){var c=m(b);b=c.next().value;c=c.next().value;return[b,c.map(ydb)]}))},Bdb=function(a){a&1&&M(0,"img",1);a&2&&(a=P(),If("src",a.getLogoUrl(),
Ne))},Cdb=function(a){a&1&&(K(0,"span",6),Q(1,"no components"),L())},Ddb=function(a){a&1&&(K(0,"div",3),M(1,"div",5),T(2,"boldPrefixMatches"),F(3,Cdb,2,0,"span",6),L());a&2&&(a=P(),B(),I("innerHtml",Lg(2,2,a.teamOption.name,a.query),Me),B(2),G(a.hasNoComponent?3:-1))},Edb=function(a){if(a&1){var b=t();K(0,"a",8);N("mousedown",function(c){u(b);var d=P(2).$index,e=P(2);d=e.teamOption.pathIds==null?null:e.teamOption.pathIds[d];c.preventDefault();c.stopPropagation();d&&e.selectTeamId.emit(d);return v()});
Q(1);L()}a&2&&(a=P(2).$implicit,B(),yg(a))},Fdb=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,S(" ",a," "))},Gdb=function(a){a&1&&(F(0,Edb,2,1,"a",7)(1,Fdb,1,1),Tf(2),Q(3," \u00b7 "),Uf());a&2&&(a=P(3),G(a.allowSegmentSelection?0:1))},Hdb=function(a){a&1&&(K(0,"strong",9),Q(1),L());a&2&&(a=P(2).$implicit,B(),yg(a))},Idb=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,S(" ",a," "))},Jdb=function(a){a&1&&F(0,Hdb,2,1,"strong",9)(1,Idb,1,1);a&2&&(a=P(3),G(a.compact?0:1))},Kdb=function(a,b){a&1&&F(0,Gdb,4,
1)(1,Jdb,2,1);a&2&&G(b.$index!==b.$count-1?0:1)},Ldb=function(a){a&1&&(K(0,"div",4),Nf(1,Kdb,2,1,null,null,Mf),L());a&2&&(a=P(),B(),Of(a.teamOption.pathNames))},Mdb=function(a){if(a&1){var b=t();K(0,"button",9);N("mousedown",function(c){u(b);P().clearQuery();return v(ps(c))});M(1,"mat-icon",10);L()}},Ndb=function(a){a&1&&(K(0,"div",11),Q(1," Checking for admin access... "),L())},Odb=function(a){a&1&&(K(0,"div",12),Q(1," You do not have admin access to this component. "),K(2,"a",13),Q(3,"View component admins"),
L()());a&2&&(a=P(3),B(2),I("href",qs.editComponentAccess.makeHref(a.selectedComponent.componentId),Ne))},Pdb=function(a){a&1&&F(0,Odb,4,1,"div",12);a&2&&(a=P(2),G(!a.hasAccess&&a.selectedComponent?0:-1))},Qdb=function(a){a&1&&(K(0,"div"),F(1,Ndb,2,0,"div",11)(2,Pdb,1,1),L());a&2&&(a=P(),B(),G(a.checkingAccess?1:2))},Rdb=function(a){a&1&&M(0,"mat-progress-bar",16)},Sdb=function(a){a&1&&Q(0," teams ")},Tdb=function(a){a&1&&Q(0," team ")},Wdb=function(a,b){if(a&1){var c=t();K(0,"div",21);N("mousedown",
function(e){var f=u(c).$implicit,g=P(6);Udb(g.searchState,f);return v(ps(e))});K(1,"team-row",22);N("selectTeamId",function(e){u(c);var f=P(6);return v(Vdb(f.searchState,e))});L()()}if(a&2){a=b.$implicit;b=P(6);var d=qg(3);I("data",a);B();I("teamOption",a)("query",d.value)("hasNoComponent",b.searchState.hasNoComponent(a.id))}},Xdb=function(a){a&1&&M(0,"mat-divider")},Ydb=function(a){a&1&&(K(0,"div",18)(1,"div",19),Q(2," Filter components by my teams "),K(3,"span"),Q(4),F(5,Sdb,1,0)(6,Tdb,1,0),L()(),
Nf(7,Wdb,2,4,"div",20,Mf),L(),F(9,Xdb,1,0,"mat-divider"));if(a&2){a=P();var b=P(4);B(4);S("",a.length," ");B();G(a.length>1?5:6);B(2);Of(a);B(2);G(b.searchState.recommendedComponents.length>0||b.searchState.popularComponents.length>0||b.searchState.recentComponents.length>0?9:-1)}},Zdb=function(a,b){a&1&&F(0,Ydb,10,3);a&2&&G(b.length?0:-1)},$db=function(a){a&1&&Vf(0)},aeb=function(a){a&1&&M(0,"mat-divider")},ceb=function(a){a&1&&(E(0,$db,1,0,"ng-container",23),F(1,aeb,1,0,"mat-divider"));if(a&2){a=
P(4);var b=qg(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(3,beb,a.searchState.recommendedComponents));B();G(a.searchState.popularComponents.length>0||a.searchState.recentComponents.length>0?1:-1)}},deb=function(a){a&1&&Vf(0)},eeb=function(a){a&1&&M(0,"mat-divider")},geb=function(a){a&1&&(E(0,deb,1,0,"ng-container",23),F(1,eeb,1,0,"mat-divider"));if(a&2){a=P(4);var b=qg(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(3,feb,a.searchState.popularComponents));B();G(a.searchState.recentComponents.length?
1:-1)}},heb=function(a){a&1&&Vf(0)},jeb=function(a){a&1&&E(0,heb,1,0,"ng-container",23);if(a&2){a=P(4);var b=qg(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,ieb,a.searchState.recentComponents))}},keb=function(a){a&1&&(F(0,Zdb,1,1),T(1,"async"),F(2,ceb,2,5),F(3,geb,2,5),F(4,jeb,1,4,"ng-container"),T(5,"async"));if(a&2){var b,c;a=P(3);G((b=U(1,4,a.searchState.myTeams$))?0:-1,b);B(2);G(a.searchState.recommendedComponents.length>0?2:-1);B();G(a.searchState.popularComponents.length?3:-1);
B();G(a.searchState.recentComponents.length||((c=U(5,6,a.searchState.myTeams$))==null||!c.length)&&a.searchState.recommendedComponents.length===0&&a.searchState.popularComponents.length===0?4:-1)}},leb=function(a){a&1&&Q(0," teams ")},meb=function(a){a&1&&Q(0," team ")},neb=function(a){a&1&&Vf(0)},qeb=function(a,b){a&1&&E(0,neb,1,0,"ng-container",23);if(a&2){a=b.$implicit;b=b.$index;P(6);var c=qg(10);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Jg(4,oeb,a,Ig(2,peb,b)))}},reb=function(a){if(a&
1){var b=t();K(0,"button",25);N("mousedown",function(){u(b);var c=P(6);return v(c.searchState.showAllTeams$.next(!0))});M(1,"mat-icon",26);Q(2," Show all teams ");L()}},seb=function(a,b){a&1&&(K(0,"div",18)(1,"div",19),Q(2," Filter components by teams "),K(3,"span"),Q(4),F(5,leb,1,0)(6,meb,1,0),L()(),Nf(7,qeb,1,7,"ng-container",null,Mf),T(9,"async"),F(10,reb,3,0,"button",24),T(11,"async"),M(12,"mat-divider"),L());a&2&&(a=P(5),B(4),S("",b," "),B(),G(b>1?5:6),B(2),Of(U(9,3,a.searchState.filteredTeamOptions$)),
B(3),G(U(11,5,a.searchState.hasHiddenTeams$)?10:-1))},teb=function(a,b){a&1&&F(0,seb,13,7,"div",18);if(a&2){var c;G((c=b.length)?0:-1,c)}},ueb=function(a){a&1&&Vf(0)},web=function(a){a&1&&(F(0,teb,1,1),T(1,"async"),E(2,ueb,1,0,"ng-container",23));if(a&2){var b;a=P(3);var c=qg(12);G((b=U(1,3,a.searchState.teamOptions$))?0:-1,b);B(2);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ig(5,veb,a.searchState.componentOptions))}},xeb=function(a){a&1&&Vf(0)},zeb=function(a,b){a&1&&E(0,xeb,1,0,"ng-container",
23);if(a&2){a=b.$implicit;b=b.$index;P(8);var c=qg(10);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Jg(4,oeb,a,Ig(2,yeb,b)))}},Aeb=function(a){a&1&&(K(0,"div",32),Nf(1,zeb,1,7,"ng-container",null,Mf),L());a&2&&(a=P(2),B(),Of(a))},Deb=function(a){if(a&1){var b=t();F(0,Aeb,3,0,"div",32);K(1,"button",25);N("mousedown",function(c){u(b);var d=P(6),e=d.searchState.teamScope$.value;e.expanded?Beb(d.searchState,e):Ceb(d.searchState,e);return v(ps(c))});M(2,"mat-icon",26);Q(3);L()}a&2&&(a=P(6),G(a.searchState.teamScope$.value.expanded?
0:-1),B(2),wg("expanded",a.searchState.teamScope$.value.expanded),B(),S(" ",a.searchState.teamScope$.value.expanded?"Hide":"Show"," child teams "))},Eeb=function(a,b){a&1&&F(0,Deb,4,4);a&2&&G(b.length?0:-1)},Heb=function(a){if(a&1){var b=t();K(0,"div",27)(1,"div",19);Q(2," Filtering by team: ");L();K(3,"div",28)(4,"team-row",29);N("selectTeamId",function(e){u(b);var f=P(4);return v(Vdb(f.searchState,e))});L();K(5,"button",30);N("mousedown",function(e){u(b);var f=P(4);Feb(f.searchState);return v(ps(e))});
M(6,"mat-icon",31);L()();F(7,Eeb,1,1);L()}if(a&2){var c;a=P(4);var d=qg(3);B(3);I("data",a.searchState.teamScope$.value)("listOrder",Hg(7,Geb));B();I("teamOption",a.searchState.teamScope$.value)("query",d.value)("compact",!0)("allowSegmentSelection",!0);B(3);G((c=a.searchState.getChildTeams(a.searchState.teamScope$.value.id))?7:-1,c)}},Ieb=function(a){a&1&&Vf(0)},Keb=function(a){a&1&&(F(0,Heb,8,8,"div",27),E(1,Ieb,1,0,"ng-container",23));if(a&2){a=P(3);var b=qg(12);G(a.searchState.teamScope$.value?
0:-1);B();I("ngTemplateOutlet",b)("ngTemplateOutletContext",Jg(3,Jeb,a.searchState.componentOptions,a.searchState.teamScope$.value))}},Neb=function(a){if(a&1){var b=t();K(0,"div",33)(1,"div",34);Q(2,"Component Tree Browser");L();K(3,"component-row",35);N("goBack",function(){u(b);var c=P(4);return v(Leb(c.searchState))})("selectComponentId",function(c){u(b);var d=P(4);return v(Meb(d.searchState,c))});L()()}a&2&&(a=P(4),B(3),I("componentOption",a.searchState.componentScope))},Oeb=function(a){a&1&&Vf(0)},
Qeb=function(a){a&1&&(F(0,Neb,4,1,"div",33),E(1,Oeb,1,0,"ng-container",23));if(a&2){a=P(3);var b=qg(12);G(a.searchState.componentScope?0:-1);B();I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(3,Peb,a.searchState.componentOptions))}},Reb=function(a){a&1&&(F(0,keb,6,8),T(1,"async"),Kf(2,web,3,7)(3,Keb,2,6)(4,Qeb,2,5));if(a&2){var b;a=P(2);G((b=U(1,1,a.searchState.state$))==="default"?0:b==="global"?2:b==="team_scope"?3:b==="component_scope"?4:-1)}},Seb=function(a){if(a&1){var b=t();K(0,"div",
14,5);N("mousedown",function(c){u(b);P();return v(ps(c))});K(2,"div",15);F(3,Rdb,1,0,"mat-progress-bar",16);L();K(4,"div",17);F(5,Reb,5,3);L()()}a&2&&(a=P(),B(3),G(a.isLoading()?3:-1),B(2),G(a.isLoading()?-1:5))},Teb=function(a){if(a&1){var b=t();K(0,"button",39);N("mousedown",function(c){u(b);var d=P().team,e=P();d.expanded?Beb(e.searchState,d):Ceb(e.searchState,d);return v(ps(c))});M(1,"mat-icon",40);L()}a&2&&(a=P().team,B(),wg("expanded",a.expanded))},Ueb=function(a){a&1&&Vf(0)},Web=function(a,
b){a&1&&E(0,Ueb,1,0,"ng-container",23);if(a&2){a=b.$implicit;b=b.$index;var c=P(2),d=c.level;c=c.order;P();var e=qg(10);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(2,Veb,a,d+1,c.concat(b)))}},Xeb=function(a){a&1&&Nf(0,Web,1,6,"ng-container",null,Mf);if(a&2){a=P().team;var b=P();Of(b.searchState.getChildTeams(a.id))}},Yeb=function(a,b){if(a&1){var c=t();K(0,"div",36);N("mousedown",function(g){var k=u(c).team,l=P();Udb(l.searchState,k);return v(ps(g))});K(1,"div",37);F(2,Teb,2,2,"button",38);
K(3,"team-row",22);N("selectTeamId",function(g){u(c);var k=P();return v(Vdb(k.searchState,g))});L()()();F(4,Xeb,2,0)}if(a&2){a=b.team;var d=b.level;b=b.order;var e=P(),f=qg(3);I("listOrder",b)("data",a);B();vg("margin-left",d*28,"px");B();G(e.searchState.getChildTeams(a.id).length?2:-1);B();wg("indent",!e.searchState.getChildTeams(a.id).length);I("teamOption",a)("query",f.value)("hasNoComponent",e.searchState.hasNoComponent(a.id));B();G(a.expanded?4:-1)}},Zeb=function(a){a&1&&(M(0,"mat-icon",43),
Q(1," AI Recommendation "))},$eb=function(a){a&1&&Q(0," Select a commonly used component ")},afb=function(a){a&1&&Q(0," Select recent component ")},bfb=function(a){a&1&&Q(0," Select component ")},cfb=function(a){a&1&&Q(0," components ")},dfb=function(a){a&1&&Q(0," component ")},ffb=function(a,b){if(a&1){var c=t();K(0,"div",44);N("mousedown",function(f){var g=u(c).$implicit,k=P(3);efb(k.searchState,g.id);return v(ps(f))});K(1,"component-row",45);N("selectComponentId",function(f){u(c);var g=P(3);return v(efb(g.searchState,
f))})("expandComponent",function(f){u(c);var g=P(3);return v(g.searchState.expandComponent(f))});L()()}if(a&2){a=b.$implicit;b=P(2).mode;var d=P(),e=qg(3);I("data",a);B();I("showFolderSpecialIcon",rs(d.activeSession))("componentOption",a)("query",e.value)("mode",b)}},gfb=function(a,b){a&1&&(K(0,"div",41)(1,"div",19),F(2,Zeb,2,0)(3,$eb,1,0)(4,afb,1,0)(5,bfb,1,0),K(6,"span"),Q(7),F(8,cfb,1,0)(9,dfb,1,0),L()(),Nf(10,ffb,2,5,"div",42,Mf),L());if(a&2){var c=P();a=c.$implicit;c=c.mode;B(2);G(c==="recommended"?
2:c==="popular"?3:c==="recent"?4:5);B(5);S("",b," ");B();G(b>1?8:9);B(2);Of(a)}},hfb=function(a){a&1&&Q(0," No recent components ")},ifb=function(a){a&1&&Q(0," No child components ")},jfb=function(a){a&1&&(Q(0),M(1,"mat-icon",47),Q(2," above ("),K(3,"a",48),Q(4,"learn more "),M(5,"mat-icon",49),L(),Q(6," about team associations) "));a&2&&(a=P(4).teamScope,S(" for ",a.name,". Remove the team filter by clicking on the "))},kfb=function(a){a&1&&(Q(0," No components found "),F(1,jfb,7,1));a&2&&(a=P(3).teamScope,
B(),G(a?1:-1))},lfb=function(a){a&1&&(K(0,"div",46),F(1,hfb,1,0)(2,ifb,1,0)(3,kfb,2,1),L());a&2&&(a=P(2).mode,B(),G(a==="recent"?1:a==="leaf"?2:3))},mfb=function(a){a&1&&F(0,lfb,4,1,"div",46);a&2&&(a=P(2),G(a.componentLoading||a.searchState.componentsLoading?-1:0))},nfb=function(a,b){a&1&&F(0,gfb,12,3,"div",41)(1,mfb,1,1);if(a&2){var c;G((c=b.$implicit.length)?0:1,c)}},ofb=function(a,b){b=m([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},pfb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.text))},qfb=function(a){a&1&&(K(0,"span"),M(1,"b-component-access-level-indicator",0),L());a&2&&(a=P().$implicit,B(),I("accessLevel",a.accessLevel))},rfb=function(a,b){a&1&&(K(0,"span"),F(1,pfb,2,1,"span")(2,qfb,2,1,"span"),L());a&2&&(a=b.$implicit,P(),B(),G(a.text!==void 0?1:2))},tfb=function(a,b){var c=sfb.get(b);if(!c)return null;a=a.toLowerCase().indexOf(c);return a>=0?{accessLevel:b,
startOfMatch:a,endOfMatch:a+c.length}:null},ufb=function(a){if(a&1){var b=t();K(0,"div");M(1,"br");K(2,"mat-radio-group",7);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.setLimitViewTrusted,c)||(d.setLimitViewTrusted=c);return v(c)});K(3,"mat-radio-button",8);Q(4,"Mark this issue as Limited Visibility + Google. Information will only be shared with Googlers and listed public users.");L();K(5,"mat-radio-button",9);Q(6,"Leave issue unrestricted. All information in this issue is suitable for external sharing.");
L()()()}a&2&&(a=P(2),B(2),Ag("ngModel",a.setLimitViewTrusted),B(),I("value",!0),B(2),I("value",!1))},vfb=function(a){if(a&1){var b=t();K(0,"div");M(1,"br");K(2,"mat-checkbox",10);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.acknowledged,c)||(d.acknowledged=c);return v(c)});L();K(3,"span");Q(4,"All information in this issue is suitable for external sharing.");L()()}a&2&&(a=P(2),B(2),Ag("ngModel",a.acknowledged))},wfb=function(a){a&1&&(K(0,"div"),F(1,ufb,7,3,"div")(2,vfb,5,1,"div"),L());a&2&&
(a=P(),B(),G(a.isLimitNoneIssueTrackerMove?1:2))},xfb=function(a){if(a&1){var b=t();K(0,"button",11);N("click",function(){u(b);var c=P();return v(c.allow())});Q(1," Move Issue ");L()}a&2&&(a=P(),I("disabled",!a.acknowledged))},ss=function(a,b){return yfb(qs.viewIssue.routeDeclarationPath,{id:a,params:b})},Cfb=function(a,b,c,d,e){c=zfb(c);d=Afb(d);return Bfb("action/issues/csv","q",a,"trackerIds",b,"s",c,"c",d,"h",e)},zfb=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):
null},Afb=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},yfb=function(a,b){b=b===void 0?{}:b;return b.id==null?"":ts(a,b)},ts=function(a,b){var c=b=b===void 0?{}:b;b=c.id;var d=c.params,e=c.tab;c=c.token;var f=a;b!=null&&(f=a.replace(c?c:/:\w+/,b.toString()));d&&(f=Dfb(f,d));e&&(f=f+"#"+e);return f},Efb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),S("(",a.disabledReason,")"))},Ffb=function(a,b){a&1&&(K(0,"mat-radio-button",4),Q(1),
F(2,Efb,2,1,"span"),L());a&2&&(a=b.$implicit,I("value",a)("disabled",!a.enabled),B(),S(" ",a.displayText," "),B(),G(a.enabled?-1:2))},Gfb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),S("(",a.disabledReason,")"))},Hfb=function(a,b){a&1&&(K(0,"mat-radio-button",4),Q(1),F(2,Gfb,2,1,"span"),L());a&2&&(a=b.$implicit,I("value",a)("disabled",!a.enabled),B(),S(" ",a.displayText," "),B(),G(a.enabled?-1:2))},Ifb=function(a){return a?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202"},
Jfb=function(a){return"share-email-confirmation-"+a},Lfb=function(a){var b,c=new us,d=c.setIt,e=(new Kfb).setIssueId(a.issueId).setScope(a.scope).setScopeSortOrder(a.scopeSortOrder).setMaxResults((b=a.maxResults)!=null?b:7);a=Fm(e,3,a.keyword);return d.call(c,a)},Nfb=function(a){var b,c=(new Mfb).setIssueId(a.issueId).setScope(a.scope).setScopeSortOrder(a.scopeSortOrder).setMaxResults((b=a.maxResults)!=null?b:7);a.embeddingType&&c.setEmbeddingType(a.embeddingType);return(new vs).setIt(c)},Ofb=function(a,
b){a=TZa([].concat(q(a.scores),q(b.scores)),[].concat(q(a.similarIssues),q(b.similarIssues))).sort(function(c,d){return d[0]-c[0]});a=sq(a,function(c){c=m(c);c.next();return c.next().value.issueId});return{scores:a.map(function(c){return c[0]}),similarIssues:a.map(function(c){return c[1]})}},Pfb=function(a){a&1&&cg(0)},Qfb=function(a){a&1&&M(0,"div",0)},Rfb=function(a){a&1&&M(0,"b-formatted-date-time",1);a&2&&(a=P(),I("mode",a.mode)("timestamp",a.createdTime)("paddingLeftPx",0))},Sfb=function(a){if(a&
1){var b=t();K(0,"div",0);N("keydown",function(c){u(b);var d=P();return v(d.processKeydown(c))});cg(1);L()}a&2&&(a=P(),xg(a.className),If("id",a.id))},Tfb=function(a){a&1&&M(0,"mat-icon",9)},Ufb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(3),B(),yg(a.HOTKEYS.COPY_ISSUE_ID.displayAs))},Vfb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(4),B(),yg(a.HOTKEYS.COPY_ISSUE_SHORTLINK.displayAs))},Wfb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"label",15);Q(2,"Issue shortlink");L();K(3,"input",
24,5);N("onHotkey",function(){u(b);var d=qg(4),e=P(3);return v(ws(e,d))})("focus",function(){u(b);var d=qg(4);return v(d.select())});L();F(5,Vfb,2,1,"span",17);K(6,"button",25);N("onHotkey",function(){u(b);var d=qg(4),e=P(3);return v(ws(e,d))})("click",function(){u(b);var d=qg(4),e=P(3);return v(ws(e,d))});M(7,"mat-icon",19);L()()}if(a&2){a=qg(4);var c=P(3);B();I("htmlFor",a.id);B(2);I("hotkey",c.HOTKEYS.COPY_ISSUE_SHORTLINK)("hotkeyEnabled",c.enableHotkeys);If("value",c.getAppBaseUrl().replace(/^.*?:\/\//,
""));B(2);G(c.enableHotkeys?5:-1);B();I("hotkey",c.HOTKEYS.COPY_ISSUE_SHORTLINK)("hotkeyEnabled",c.enableHotkeys)}},Xfb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(3),B(),yg(a.HOTKEYS.COPY_ISSUE_URL.displayAs))},Yfb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(3),B(),yg(a.HOTKEYS.COPY_ISSUE_TITLE.displayAs))},Zfb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(4),B(),yg(a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS.displayAs))},$fb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"label",
15);Q(2,"Issue email");L();K(3,"input",26,6);N("onHotkey",function(){u(b);var d=qg(4),e=P(3);return v(ws(e,d))})("focus",function(){u(b);var d=qg(4);return v(d.select())});L();F(5,Zfb,2,1,"span",17);K(6,"button",27);N("onHotkey",function(){u(b);var d=qg(4),e=P(3);return v(ws(e,d))})("click",function(){u(b);var d=qg(4),e=P(3);return v(ws(e,d))});M(7,"mat-icon",19);L()()}if(a&2){a=qg(4);var c=P(3);B();I("htmlFor",a.id);B(2);I("hotkey",c.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)("hotkeyEnabled",c.enableHotkeys);
If("value","buganizer-system"+(xs(c.activeSession)?"":"-qa")+("+"+c.componentId+"+"+c.issueId)+"@google.com");B(2);G(c.enableHotkeys?5:-1);B();I("hotkey",c.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)("hotkeyEnabled",c.enableHotkeys)}},agb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(4),B(),yg(a.HOTKEYS.COPY_ISSUE_TODO.displayAs))},bgb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"label",15);Q(2,"TODO comment");L();K(3,"input",28,7);N("onHotkey",function(){u(b);var d=qg(4),e=P(3);return v(ws(e,d))})("focus",
function(){u(b);var d=qg(4);return v(d.select())});L();F(5,agb,2,1,"span",17);K(6,"button",29);N("onHotkey",function(){u(b);var d=qg(4),e=P(3);return v(ws(e,d))})("click",function(){u(b);var d=qg(4),e=P(3);return v(ws(e,d))});M(7,"mat-icon",19);L()()}if(a&2){a=qg(4);var c=P(3);B();I("htmlFor",a.id);B(2);I("hotkey",c.HOTKEYS.COPY_ISSUE_TODO)("hotkeyEnabled",c.enableHotkeys);If("value","TODO: "+c.getAppBaseUrl().replace(/^.*?:\/\//,"")+" - ");B(2);G(c.enableHotkeys?5:-1);B();I("hotkey",c.HOTKEYS.COPY_ISSUE_TODO)("hotkeyEnabled",
c.enableHotkeys)}},cgb=function(a){if(a&1){var b=t();K(0,"div",13)(1,"div",14)(2,"label",15);Q(3,"Issue ID");L();K(4,"input",16,2);N("onHotkey",function(){u(b);var f=qg(5),g=P(2);return v(ws(g,f))})("focus",function(){u(b);var f=qg(5);return v(f.select())});L();F(6,Ufb,2,1,"span",17);K(7,"button",18);N("onHotkey",function(){u(b);var f=qg(5),g=P(2);return v(ws(g,f))})("click",function(){u(b);var f=qg(5),g=P(2);return v(ws(g,f))});M(8,"mat-icon",19);L()();F(9,Wfb,8,7,"div",14);K(10,"div",14)(11,"label",
15);Q(12,"Issue URL");L();K(13,"input",20,3);N("onHotkey",function(){u(b);var f=qg(14),g=P(2);return v(ws(g,f))})("focus",function(){u(b);var f=qg(14);return v(f.select())});L();F(15,Xfb,2,1,"span",17);K(16,"button",21);N("onHotkey",function(){u(b);var f=qg(14),g=P(2);return v(ws(g,f))})("click",function(){u(b);var f=qg(14),g=P(2);return v(ws(g,f))});M(17,"mat-icon",19);L()();K(18,"div",14)(19,"label",15);Q(20,"URL and title");L();K(21,"input",22,4);N("onHotkey",function(){u(b);var f=qg(22),g=P(2);
return v(ws(g,f))})("focus",function(){u(b);var f=qg(22);return v(f.select())});L();F(23,Yfb,2,1,"span",17);K(24,"button",23);N("onHotkey",function(){u(b);var f=qg(22),g=P(2);return v(ws(g,f))})("click",function(){u(b);var f=qg(22),g=P(2);return v(ws(g,f))});M(25,"mat-icon",19);L()();F(26,$fb,8,7,"div",14);F(27,bgb,8,7,"div",14);L()}if(a&2){a=qg(5);var c=qg(14),d=qg(22),e=P(2);I("cdkTrapFocusAutoCapture",!0);B(2);I("htmlFor",a.id);B(2);I("hotkey",e.HOTKEYS.COPY_ISSUE_ID)("hotkeyEnabled",e.enableHotkeys);
If("value",e.issueId);B(2);G(e.enableHotkeys?6:-1);B();I("hotkey",e.HOTKEYS.COPY_ISSUE_ID)("hotkeyEnabled",e.enableHotkeys);B(2);G(e.activeSession.isInternalSession()&&!rs(e.activeSession)?9:-1);B(2);I("htmlFor",c.id);B(2);I("hotkey",e.HOTKEYS.COPY_ISSUE_URL)("hotkeyEnabled",e.enableHotkeys);If("value",e.getIssueUrl());B(2);G(e.enableHotkeys?15:-1);B();I("hotkey",e.HOTKEYS.COPY_ISSUE_URL)("hotkeyEnabled",e.enableHotkeys);B(3);I("htmlFor",d.id);B(2);I("hotkey",e.HOTKEYS.COPY_ISSUE_TITLE)("hotkeyEnabled",
e.enableHotkeys);If("value",e.getAppBaseUrl(e.isExternalIssue)+" "+e.issueTitle);B(2);G(e.enableHotkeys?23:-1);B();I("hotkey",e.HOTKEYS.COPY_ISSUE_TITLE)("hotkeyEnabled",e.enableHotkeys);B(2);G(e.activeSession.isInternalSession()&&!rs(e.activeSession)?26:-1);B();G(e.activeSession.isInternalSession()&&!rs(e.activeSession)?27:-1)}},dgb=function(a){if(a&1){var b=t();K(0,"button",10,0);N("onHotkey",function(){u(b);var d=P();d.disabled||d.trigger.open();return v()})("onedevPopupPanelTriggerOpened",function(){u(b);
var d=P();return v(d.isOpen=!0)})("onedevPopupPanelTriggerClosed",function(){u(b);var d=P();return v(d.isOpen=!1)})("click",function(){u(b);var d=P();d.disabled||d.trigger.open();return v()});M(2,"mat-icon",11);L();K(3,"onedev-popup-panel",12,1);F(5,cgb,28,25,"div",13);L()}if(a&2){a=qg(4);var c=P();I("onedevPopupPanelTriggerFor",a)("hotkey",c.HOTKEYS.HIGHLIGHT_ISSUE_ID)("hotkeyEnabled",c.enableHotkeys);If("aria-label","Show links for the issue "+c.issueId);B(5);G(c.isOpen?5:-1)}},egb=function(a){a&
1&&M(0,"b-issue-id-picker",1);a&2&&(a=P(),I("issueId",a.id)("showCopyOptions",!1))},fgb=function(a){a&1&&M(0,"b-issue-priority-display",1);a&2&&(a=P(),I("issuePriority",a.priority))},ggb=function(a){a&1&&(K(0,"a",2),Q(1," Fix Pending "),L());a&2&&(a=P(),xg(Eg("chippy status-",a.IssueStatus.FIXED)),I("href",Eg("http://cl/",a.pendingFixCl.changelistNumber),Ne)("matTooltip",Fg("Open cl/",a.pendingFixCl.changelistNumber," from ",a.pendingFixCl.author)))},igb=function(a,b){a&1&&(K(0,"div",4),Q(1),L());
if(a&2){a=P(2);xg(Eg("chippy status-",b));var c;I("title",(c=a.STATUS_JS_FULL_TEXT.get(b))!=null?c:"");B();var d;S(" ",(d=a.STATUS_JS_TERSE.get(b))!=null?d:""," ")}},jgb=function(a){a&1&&F(0,igb,2,5,"div",3);if(a&2){var b;a=P();G((b=a.status)?0:-1,b)}},kgb=function(a,b){b=b===void 0?"":b;return a.filter(function(c){return c.fixedIssueIds.includes(b)})[0]},lgb=function(a){a&1&&(Tf(0),Q(1,"Un-CC me"),Uf())},mgb=function(a){a&1&&(Tf(0),Q(1,"CC me"),Uf())},ys=function(a){var b;return(b=a==null?void 0:
a.trim())!=null?b:""},zs=function(a){return new ngb(a)},pgb=function(a,b){var c=a.getPrimaryTarget(),d=a.getTargetList().map(function(e){return e===c?b:e});return zs(new ogb(a,d))},rgb=function(){return new qgb($c.apply(0,arguments))},tgb=function(){return new sgb($c.apply(0,arguments))},vgb=function(){var a=$c.apply(0,arguments);return a.length===1?a[0]:new ugb(a)},xgb=function(){return new wgb($c.apply(0,arguments))},ygb=function(a,b){b&&(b.autocompleteGroupingType!=null&&a.setAutocompleteGroupingType(b.autocompleteGroupingType),
b.autocompleteGroupingLabel!=null&&a.setAutocompleteGroupingLabel(b.autocompleteGroupingLabel),b.autocompleteHeader!=null&&a.setAutocompleteHeader(b.autocompleteHeader),b.autocompleteMaxResultsBeforeScroll!=null&&a.setAutocompleteMaxResultsBeforeScroll(b.autocompleteMaxResultsBeforeScroll),b.density!=null&&a.setDensity(b.density),b.theme!=null&&a.setTheme(b.theme),b.moveAutocompleteAboveAnchorIfOffscreen!=null&&a.setMoveAutocompleteAboveAnchorIfOffscreen(b.moveAutocompleteAboveAnchorIfOffscreen),
b.autoActivateFirstSuggestion!=null&&a.setAutoActivateFirstSuggestion(b.autoActivateFirstSuggestion),b.showSuggestions!=null&&a.setShowSuggestions(b.showSuggestions),b.noResultsMessage!=null&&a.setNoResultsMessage(b.noResultsMessage),b.autoActivateFirstSearchResult!=null&&a.setAutoActivateFirstSearchResult(b.autoActivateFirstSearchResult),b.clearSelectionOnSearch!=null&&a.setClearSelectionsOnSearch(b.clearSelectionOnSearch),b.resultCustomizationCallback!=null&&a.setResultCustomizationCallback(b.resultCustomizationCallback))},
Agb=function(a,b){if(a&1){var c=t();K(0,"div",3)(1,"b-contact-chip",6);N("chipSelection",function(){var d=u(c).$index,e=P();e.selectedChipIndex!==d&&As(e,d)&&(zgb(e),e.selectedChipIndex=d,e.items[d].isSelected=!0);return v()})("chipClear",function(){u(c);var d=P();return v(zgb(d))})("chipRemove",function(){var d=u(c).$index,e=P();return v(e.removeItem(d))});L()()}a&2&&(a=b.$implicit,b=P(),B(),I("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()))},Egb=function(a){if(a&1){var b=t();K(0,"input",7,0);N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P();return v(d.selectAutocomplete(c))});Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.typedText,c)||(d.typedText=c);return v(c)});N("focus",function(){u(b);var c=P();return v(Bgb(c))})("blur",function(){u(b);var c=
P();Cgb(c,c.typedText.split(",")[0].trim());c.isFocused=!1;return v()});L()}a&2&&(a=P(),I("peoplekitAutocompleteConfig",Dgb(a.autocompleteConfigService))("peoplekitSearchSessionOptions",a.sessionOptions)("peoplekitAutocompleteInputSearchDelay",0),Ag("ngModel",a.typedText),I("disabled",a.isWidgetDisabled())("placeholder",a.placeholderText))},Fgb=function(a){a&1&&(K(0,"span"),Q(1," Groups cannot be granted Restricted+ reader permission. "),K(2,"a",8),Q(3,"Learn more"),L()());a&2&&(a=P(),B(2),If("href",
ms(a.documentationLinks)+"#components",Ne))},Ggb=function(a){a&1&&(K(0,"span"),Q(1," Invalid user(s). "),L())},Hgb=function(a){a&1&&(K(0,"span"),Q(1,' "Public" or external users are not allowed for component designated as "internal access". '),L())},Igb=function(a){a&1&&(K(0,"span"),Q(1,' "Public" is not allowed for components designated as "external partner access". '),L())},Jgb=function(a){a&1&&(K(0,"span"),Q(1," Team owner cannot be a group. "),L())},Kgb=function(a){a&1&&(K(0,"span"),Q(1," Team owner can only be a full-time Googler. "),
L())},Lgb=function(a){a&1&&(K(0,"span"),Q(1," Only users in the Google domain can be selected. "),L())},Mgb=function(a){a&1&&(K(0,"span"),Q(1," User has already been selected. "),L())},Ngb=function(a){a&1&&(K(0,"span"),Q(1," Only users can be selected. Groups and aliases are not supported. "),L())},Sgb=function(a,b){if(!b||!a)return Ogb;var c;return!Pgb((c=b.readers)!=null?c:[])||Qgb(a)?Rgb:Ogb},Pgb=function(a){return a.some(function(b){return b.alias!==void 0?b.alias==="public"||b.alias==="public_non_google":
!1})},Qgb=function(a){return a==="LIMIT_VIEW"||a==="LIMIT_VIEW_TRUSTED"},Tgb=function(a,b){a&1&&(K(0,"a",6),Q(1," Learn more. "),L());a&2&&I("href",b,Ne)},Ugb=function(a,b){a&1&&M(0,"b-multi-user-input",9);a&2&&(I("users",b),If("disabled",!0))},Vgb=function(a){a&1&&(Tf(0,8),M(1,"br"),K(2,"h2"),Q(3,"Users who can view"),L(),F(4,Ugb,1,2,"b-multi-user-input",9),T(5,"async"),Uf());if(a&2){var b;a=P(2);I("onedevIsHovercardReady",a.showHovercard$);B(4);G((b=U(5,2,a.viewers$))?4:-1,b)}},Xgb=function(a){if(a&
1){var b=t();K(0,"span",2,0);T(2,"async");T(3,"async");N("focus",function(){u(b);var f=qg(1);P().loadTooltipOnce();f.disabled=!1;return v(f.show())})("blur",function(){u(b);var f=qg(1);f.disabled=!0;return v(f.hide())});Q(4);T(5,"async");L();K(6,"onedev-hovercard",null,1)(8,"div",3)(9,"div",4)(10,"div",5);Q(11);T(12,"async");F(13,Tgb,2,1,"a",6);E(14,Vgb,6,4,"ng-container",7);L()()()()}if(a&2){var c;a=qg(7);var d=P();xg(U(2,10,d.chipClass$));wg("xs",d.compactMode);var e;I("onedevHovercardTrigger",
a)("matTooltipDisabled",!0)("matTooltip",(e=U(3,12,d.tooltipText$))!=null?e:"");B(4);S(" ",U(5,14,d.chipText$)," ");B(7);S(" ",U(12,16,d.bubbleText$)," ");B(2);G((c=Wgb(d.documentationLinks))?13:-1,c)}},Ygb=function(a){return a==="visible_to_listed_partners"||a==="visible_to_listed_public_users"},Zgb=function(a){a&1&&(K(0,"span"),Q(1," Assigned to "),M(2,"b-user-display",12),L());a&2&&(a=P(2),B(2),I("model",a.assigneeUser)("hovercardEnabled",!1))},$gb=function(a){a&1&&(K(0,"span"),Q(1," Accepted by "),
M(2,"b-user-display",12),L());a&2&&(a=P(2),B(2),I("model",a.assigneeUser)("hovercardEnabled",!1))},ahb=function(a){a&1&&(K(0,"span"),Q(1," Duplicate of "),K(2,"a",2),Q(3),L()());if(a&2){a=P(2);var b=P();B(2);If("aria-label",Eg("Go to issue ",a.duplicateOfIssueId));I("href",b.ROUTES.viewIssue.makeHref(a.duplicateOfIssueId),Ne);B();S(" ",a.duplicateOfIssueId," ")}},bhb=function(a){a&1&&(K(0,"span"),Q(1),L());if(a&2){a=P();var b=P(2);B();var c;S(" ",(c=b.STATUS_JS_FULL_TEXT.get(a))!=null?c:""," ")}},
chb=function(a,b){a&1&&F(0,Zgb,3,2,"span")(1,$gb,3,2,"span")(2,ahb,4,4,"span")(3,bhb,2,1,"span");a&2&&G(b==="ASSIGNED"?0:b==="ACCEPTED"?1:b==="DUPLICATE"?2:3)},dhb=function(a,b){a&1&&M(0,"b-app-vote-button",13);if(a&2){a=P();var c=P(2),d;I("issueId",c.issueId)("voteCount",a.voteCount)("upvoted",(d=b.voted)!=null?d:!1)}},ehb=function(a){a&1&&F(0,dhb,1,3,"b-app-vote-button",13);if(a&2){var b;a=P(2);G((b=a.issue.userData)?0:-1,b)}},ghb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);
var c=P(2);return v(fhb(c,c.childContextId))});Q(1," Unlink parent ");L()}},hhb=function(a,b){a&1&&(K(0,"li"),Q(1," Last updated by "),M(2,"b-user-display",12),Q(3," on: "),M(4,"b-formatted-date-time",15),L());a&2&&(a=P(),B(2),I("model",b)("hovercardEnabled",!1),B(2),I("timestamp",a.modifiedTimeMicros/1E3))},ihb=function(a,b){a&1&&(F(0,hhb,5,3,"li"),K(1,"li"),Q(2," Reported by "),M(3,"b-user-display",12),Q(4," on: "),M(5,"b-formatted-date-time",15),L());if(a&2){var c;a=P();G((c=b.lastModifier)?0:
-1,c);B(3);I("model",a.reporterUser)("hovercardEnabled",!1);B(2);I("timestamp",b.createdTimeMicros/1E3)}},jhb=function(a){a&1&&(K(0,"li",11),M(1,"b-note-container",16),L());if(a&2){a=P(2);B();var b;I("issueId",a.issueId)("issueAccessLevel",a.issue.accessLimit==null?null:a.issue.accessLimit.accessLevel)("formattingMode",(b=a.firstEvent==null?null:a.firstEvent.formattingMode)!=null?b:a.FormattingMode.UNSPECIFIED_FORMATTING_MODE)("note",a.getNote())}},mhb=function(a,b){if(a&1){var c=t();K(0,"div",1)(1,
"h3")(2,"a",2);Q(3);L();Q(4," \u00a0 ");K(5,"span",3);Q(6);L()();K(7,"ul")(8,"li",4);M(9,"b-issue-visibility-chip",5);L();K(10,"li",6)(11,"span",7);Q(12);L();Q(13," \u00a0 ");F(14,chb,4,1);L()();K(15,"div",8)(16,"b-cc-button",9);N("onCc",function(l){u(c);var r=P();r.location&&l&&r.analytics.trackEvent(r.location+"_issueCard","add","CC");return v()});L();F(17,ehb,1,1);F(18,ghb,2,0,"button",10);L();K(19,"ul");F(20,ihb,6,4);F(21,jhb,2,4,"li",11);L()()}if(a&2){var d,e,f;a=P();B(2);If("aria-label",Eg("Go to issue ",
a.issueId));I("href",a.ROUTES.viewIssue.makeHref(a.issueId),Ne);B();yg(a.issueId);B(3);yg(b.title);B(3);I("issueId",a.issueId);B(2);xg(a.priorityClass(b.priority));B();var g;yg(a.ISSUE_PRIORITY_TEXT_JS[(g=b.priority)!=null?g:a.ISSUE_PRIORITY_ENUM.PRIORITY_UNSPECIFIED]);B(2);G((d=b.status)?14:-1,d);B(2);var k;I("issueId",a.issueId)("ccState",khb(a,(k=b.ccUsers)!=null?k:Hg(16,lhb)));B();G((e=a.issue.aggregatedData)?17:-1,e);B();G(a.childContextId?18:-1);B(2);G((f=a.issue.aggregatedData)?20:-1,f);B();
G(a.firstEvent&&QTa(a.firstEvent)?21:-1)}},nhb=function(a){a=a.getIt();return{matchedPatterns:Cm(a,1,Ci())}},phb=function(a){if(a&1){var b=t();K(0,"span",12);N("onedevHovercardShown",function(){u(b);var d=P(2);return v(ohb(d))});Q(1);L()}if(a&2){a=P(2);var c=qg(6);I("onedevHovercardTrigger",c)("onedevHovercardActive",a.enableHovercard);B();yg(a.title)}},qhb=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(2),B(),yg(a.title))},shb=function(a){if(a&1){var b=t();F(0,phb,2,3,"span",8)(1,qhb,2,1,"span",
9);K(2,"a",10);N("keydown",function(c){u(b);P();c.key==="Enter"&&c.stopPropagation();return v()})("click",function(c){u(b);var d=P();return v(rhb(d,c))});M(3,"mat-icon",11);L()}a&2&&(a=P(),G(a.enableHovercard?0:1),B(2),I("routerLink","/"+a.link)("target",a.anchorTarget))},thb=function(a){a&1&&Vf(0)},uhb=function(a){a&1&&E(0,thb,1,0,"ng-container",13);a&2&&(P(),a=qg(11),I("ngTemplateOutlet",a))},vhb=function(a,b){a&1&&(K(0,"span",14),Q(1),L());if(a&2){xg(b.cssClass);If("aria-label",Fg("",b.title," - ",
b.tooltip));var c;I("matTooltip",(c=b.tooltip)!=null?c:"");B();yg(b.title)}},whb=function(a){a&1&&M(0,"b-issue-card",6);a&2&&(a=P(),I("issueId",a.issue.issueId))},xhb=function(a){a&1&&(K(0,"p",7),Q(1),K(2,"a",15),Q(3," Learn more "),L()());a&2&&(a=P(),B(),S(" ",Bs(a.bannedWordsChecker)," is restricted. Press 'Esc' to cancel or 'Enter' to skip check and save title. "))},zhb=function(a){if(a&1){var b=t();K(0,"input",17,2);T(2,"async");N("input",function(){u(b);var c=P(2);return v(c.bannedWordsChecker.reset())});
Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.title,c)||(d.title=c);return v(c)});N("keydown",function(c){u(b);var d=P(2);c.key==="Enter"?(c.stopPropagation(),yhb(d)):c.key==="Escape"?(c.stopPropagation(),d.bannedWordsChecker.reset(),d.onCancel.emit()):c.key!=="ArrowLeft"&&c.key!=="ArrowRight"||c.stopPropagation();return v()});L();K(3,"b-button",18);N("onAction",function(){u(b);var c=P(2);return v(yhb(c))});Q(4,"Save");L();K(5,"b-button",19);N("onAction",function(c){u(b);var d=P(2);c.stopPropagation();
d.bannedWordsChecker.reset();d.onCancel.emit();return v()});Q(6,"Cancel");L()}a&2&&(a=P(2),wg("banned-words-warning",U(2,6,a.bannedWordsChecker.showWarning$)),I("bFocus",!0),Ag("ngModel",a.title),B(3),I("disabled",!a.title||a.savingTitle),B(2),I("disabled",a.savingTitle))},Ahb=function(a){if(a&1){var b=t();K(0,"a",20);N("keydown",function(d){u(b);P(2);d.key==="Enter"&&d.stopPropagation();return v()})("click",function(d){u(b);var e=P(2);return v(rhb(e,d))})("onedevHovercardShown",function(){u(b);var d=
P(2);return v(ohb(d))});Q(1);L()}if(a&2){a=P(2);var c=qg(6);I("routerLink","/"+a.link)("target",a.anchorTarget)("onedevHovercardTrigger",c)("onedevHovercardActive",a.enableHovercard);B();yg(a.title)}},Bhb=function(a){a&1&&F(0,zhb,7,8)(1,Ahb,2,5,"a",16);a&2&&(a=P(),G(a.isEditMode?0:1))},Chb=function(a,b){a&1&&(K(0,"div",19)(1,"div",20),Q(2,"CURRENT ISSUE"),L(),K(3,"div",21),Q(4),L()());a&2&&(B(4),S(" ",(b==null?null:b.snapshot)[0].title," "))},Dhb=function(a){a&1&&(F(0,Chb,5,1,"div",19),T(1,"async"));
if(a&2){var b;a=P();G((b=U(1,1,a.currentIssue$))?0:-1,b)}},Ehb=function(a){a&1&&M(0,"mat-icon",22)},Fhb=function(a){a&1&&M(0,"mat-icon",23)},Ghb=function(a,b){a&1&&F(0,Ehb,1,0,"mat-icon",22)(1,Fhb,1,0,"mat-icon",23);a&2&&(a=P(),G(b===a.SearchSource.SEMANTIC_SEARCH?0:1))},Ihb=function(a){if(a&1){var b=t();K(0,"mat-chip-listbox",38)(1,"mat-chip-option",39,4);N("keydown.enter",function(){u(b);var d=qg(2);return v(d.openMenu())})("keyup.space",function(){u(b);var d=qg(2);return v(d.openMenu())})("menuOpened",
function(){u(b);var d=P(5);return v(Hhb(d))});K(3,"span");Q(4);L();M(5,"mat-icon",37);L()()}if(a&2){P(2);a=qg(11);var c=P(3);I("selectable",!1);B();I("matMenuTriggerFor",a);B(3);yg(c.selectedScopeFilter.displayAs.replace("Component: ",""))}},Khb=function(a){if(a&1){var b=t();K(0,"mat-chip-listbox",35)(1,"mat-chip-option",36,3);N("keydown.enter",function(){u(b);var d=qg(2);return v(d.openMenu())})("keyup.space",function(){u(b);var d=qg(2);return v(d.openMenu())});K(3,"span");Q(4);L();M(5,"mat-icon",
37);L()();F(6,Ihb,6,3,"mat-chip-listbox",38)}if(a&2){P();a=qg(8);var c=P(3);I("selectable",!1);B();I("matMenuTriggerFor",a);B(3);yg(Jhb(c.selectedScopeFilter.displayAs));B(2);G(c.selectedScopeFilter.displayAs.startsWith("Component:")?6:-1)}},Mhb=function(a){if(a&1){var b=t();K(0,"button",42);N("click",function(){u(b);var c=P(5);return v(Lhb(c,c.componentFilter))});M(1,"mat-icon",43);Q(2);L()}a&2&&(a=P(5),I("matTooltip",a.componentFilter.tooltip||""),B(),wg("invisible",a.componentFilter!==a.selectedScopeFilter),
B(),S(" ",a.componentFilter.displayAs," "))},Nhb=function(a){if(a&1){var b=t();K(0,"button",44);N("click",function(){u(b);var c=P(5);return v(Lhb(c,c.teamFilter))});M(1,"mat-icon",43);Q(2);L()}a&2&&(a=P(5),I("matTooltip",a.teamFilter.tooltip||""),B(),wg("invisible",a.teamFilter!==a.selectedScopeFilter),B(),S(" ",a.teamFilter.displayAs," "))},Ohb=function(a){a&1&&(F(0,Mhb,3,4,"button",40),F(1,Nhb,3,4,"button",41));a&2&&(a=P(4),G(a.componentFilter?0:-1),B(),G(a.teamFilter?1:-1))},Qhb=function(a){if(a&
1){var b=t();K(0,"div",46)(1,"b-team-component-picker",47);N("selectedComponentChange",function(c){u(b);var d=P(5);return v(d.selectedComponent=c)});L()();K(2,"div",48)(3,"button",49);N("click",function(){u(b);var c=P(5);return v(Phb(c,c.selectedComponent))});Q(4," Choose ");L();K(5,"button",50);N("click",function(){u(b);P(5).trigger.closeMenu();return v()});Q(6," Cancel ");L()()}a&2&&(a=P(5),B(),I("selectedComponent",a.selectedComponent)("placeholder","Search for a component")("shouldFocus",!0)("isRequired",
!0),B(2),I("disabled",!a.selectedComponent))},Rhb=function(a){if(a&1){var b=t();K(0,"div",45);N("click",function(c){u(b);return v(c.stopPropagation())})("keydown.tab",function(c){u(b);return v(c.stopPropagation())})("keydown.shift.tab",function(c){u(b);return v(c.stopPropagation())});F(1,Qhb,7,5);L()}a&2&&(a=P(4),B(),G(a.componentFilter?1:-1))},Shb=function(a){if(a&1){var b=t();K(0,"button",51);N("click",function(){u(b);var c=P(4);return v(c.openLearnMore())});M(1,"mat-icon",52);L()}},Uhb=function(a){if(a&
1){var b=t();K(0,"div")(1,"div",13)(2,"mat-chip-listbox",24);N("change",function(c){u(b);var d=P(3);return v(d.openFilterChanged(c.value))});K(3,"mat-chip-option",25)(4,"span",26);Q(5);L()()();F(6,Khb,7,4);K(7,"mat-menu",27,1);E(9,Ohb,2,2,"ng-template",28);L();K(10,"mat-menu",29,2);E(12,Rhb,2,1,"ng-template",28);L();K(13,"mat-chip-listbox",30);N("change",function(){u(b);var c=P(3);return v(Thb(c))});K(14,"mat-chip-option",31);T(15,"async");K(16,"span",32);Q(17);L()()()();K(18,"div",13)(19,"button",
33);N("click",function(){u(b);var c=P(3);c.showFiltersSubject.next(!c.showFiltersSubject.value);return v()});Q(20," Remove scope filter ");L();F(21,Shb,2,0,"button",34);L()()}a&2&&(a=P(3),B(3),I("selected",a.selectedFilters$.has(a.openFilter))("value",a.openFilter),B(),I("matTooltip",a.openFilter.tooltip||""),B(),S(" ",a.openFilter.displayAs," "),B(),G(a.selectedScopeFilter?6:-1),B(8),I("selected",U(15,8,a.includeDescendants$)),B(3),S(" Include sub-",a.selectedScopeFilter===a.componentFilter?"components":
"teams"," "),B(4),G(a.isInternalSession?21:-1))},Vhb=function(a,b){a&1&&F(0,Uhb,22,10,"div");a&2&&(a=P(2),G(b===a.SearchSource.SEMANTIC_SEARCH&&a.tableDataSource!==a.TableDataSource.ISSUE_IDS?0:-1))},Whb=function(a){a&1&&(F(0,Vhb,1,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.selectedSearchSource$))?0:-1,b)}},Xhb=function(a){if(a&1){var b=t();K(0,"button",51);N("click",function(){u(b);var c=P(2);return v(c.openLearnMore())});M(1,"mat-icon",52);L()}},Yhb=function(a){if(a&1){var b=t();K(0,"div",
13)(1,"button",33);N("click",function(){u(b);var c=P();c.showFiltersSubject.next(!c.showFiltersSubject.value);return v()});Q(2," Add scope filter ");L();F(3,Xhb,2,0,"button",34);L()}a&2&&(a=P(),B(3),G(a.isInternalSession?3:-1))},Zhb=function(a){a&1&&M(0,"ai-spinner",53);a&2&&I("large",!0)},$hb=function(a){a&1&&M(0,"ai-spinner",54)},aib=function(a){a&1&&M(0,"b-spinner",55)},bib=function(a){a&1&&(K(0,"div",14),F(1,Zhb,1,1,"ai-spinner",53),T(2,"async"),Kf(3,$hb,1,0,"ai-spinner",54)(4,aib,1,0,"b-spinner",
55),L());a&2&&(a=P(),B(),G(a.searchText$.value?a.searchText$.value&&U(2,1,a.selectedSearchSource$)===a.SearchSource.SEMANTIC_SEARCH?3:4:1))},cib=function(a){a&1&&(K(0,"b-callout",56)(1,"b-callout-body"),Q(2," This issue was suggested by AI! Save time by exploring the suggestions first next time. "),K(3,"a",60),Q(4,"Learn more"),L()()())},dib=function(a){a&1&&(K(0,"h3",57),M(1,"mat-icon",61),Q(2," Possible duplicates "),L())},eib=function(a){a&1&&(K(0,"th",80)(1,"span",81),Q(2,"Selection"),L()())},
fib=function(a,b){a&1&&(K(0,"td",82),M(1,"mat-radio-button",83),T(2,"async"),L());a&2&&(a=b.$implicit,b=P(3),B(),I("checked",U(2,3,Cs(b.selectedIssues,a.issueId))),Hf("aria-label",a.snapshot[0].title),I("value",a.issueId))},gib=function(a){a&1&&(K(0,"th",80),Q(1," Title "),L())},hib=function(a,b){a&1&&(K(0,"td",82),M(1,"b-issue-title-cell",84),L());a&2&&(a=b.$implicit,b=P(3),B(),I("issue",a)("issueUrlFactory",b.issueUrlFactory)("useButtonToNavigate",!0)("enableHovercard",!0))},iib=function(a){a&1&&
(K(0,"th",80),Q(1," Id "),L())},jib=function(a,b){a&1&&(K(0,"td",82),M(1,"b-issue-id-cell",85),L());a&2&&(a=b.$implicit,B(),I("id",a.issueId))},kib=function(a){a&1&&(K(0,"th",80),Q(1," Priority "),L())},lib=function(a,b){a&1&&(K(0,"td",82),M(1,"b-issue-priority-cell",86),L());a&2&&(a=b.$implicit,B(),I("issue",a))},mib=function(a){a&1&&(K(0,"th",87),Q(1," Status "),L())},nib=function(a,b){a&1&&(K(0,"td",82),M(1,"b-issue-status-cell",86),L());a&2&&(a=b.$implicit,B(),I("issue",a))},oib=function(a){a&
1&&(K(0,"th",80),Q(1," Dupes "),L())},pib=function(a,b){a&1&&(K(0,"td",88),Q(1),L());if(a&2){a=b.$implicit;B();var c;S(" ",(c=a.snapshot[0].duplicateIssueId==null?null:a.snapshot[0].duplicateIssueId.length)!=null?c:0," ")}},qib=function(a){a&1&&(K(0,"th",89)(1,"span",81),Q(2,"Votes"),L(),M(3,"mat-icon",90),L())},rib=function(a,b){a&1&&(K(0,"td",88),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.aggregatedData.voteCount," "))},sib=function(a){a&1&&(K(0,"th",91),Q(1," Created "),L())},tib=function(a,b){a&
1&&(K(0,"td",82),M(1,"b-issue-created-time-cell",92),L());a&2&&(a=b.$implicit,B(),I("issue",a))},uib=function(a){a&1&&M(0,"tr",93)},vib=function(a,b){if(a&1){var c=t();K(0,"tr",94);N("keydown",function(d){var e=u(c),f=e.$implicit;e=e.index;var g=P(3);return v(g.onRowKeydown(e,f,d))})("keydown.enter",function(){var d=u(c).$implicit,e=P(3);return v(e.selectIssue(d.issueId))})("focusin",function(){var d=u(c).$implicit,e=P(3);return v(Ds(e.focusManager,d))})("click",function(){var d=u(c),e=d.$implicit;
d=d.index;var f=P(3);f.selectIssue(e.issueId);return v(f.focusManager.setActiveItem(d))});L()}a&2&&I("row",b.$implicit)},xib=function(a){if(a&1){var b=t();K(0,"table",62);N("contentChanged",function(){u(b);var d=P(),e=P();return v(wib(e,d))});Tf(1,63);E(2,eib,3,0,"th",64);K(3,"mat-radio-group",65);N("change",function(d){u(b);var e=P(2);return v(e.selectIssue(d.value))});E(4,fib,3,5,"td",66);L();Uf();Tf(5,67);E(6,gib,2,0,"th",64)(7,hib,2,4,"td",66);Uf();Tf(8,68);E(9,iib,2,0,"th",64)(10,jib,2,1,"td",
66);Uf();Tf(11,69);E(12,kib,2,0,"th",64)(13,lib,2,1,"td",66);Uf();Tf(14,70);E(15,mib,2,0,"th",71)(16,nib,2,1,"td",66);Uf();Tf(17,72);E(18,oib,2,0,"th",64)(19,pib,2,1,"td",73);Uf();Tf(20,74);E(21,qib,4,0,"th",75)(22,rib,2,1,"td",73);Uf();Tf(23,76);E(24,sib,2,0,"th",77)(25,tib,2,1,"td",66);Uf();E(26,uib,1,0,"tr",78)(27,vib,1,1,"tr",79);L()}if(a&2){a=P();var c=P();I("dataSource",a)("trackBy",c.trackByIssueId);B(26);I("matHeaderRowDef",c.tableColumns);B();I("matRowDefColumns",c.tableColumns)}},yib=function(a){a&
1&&(K(0,"div",59)(1,"span",95),Q(2,"No results found"),L()())},zib=function(a,b){a&1&&(K(0,"div",15),F(1,cib,5,0,"b-callout",56),F(2,dib,3,0,"h3",57),F(3,xib,28,4,"table",58),F(4,yib,3,0,"div",59),L());a&2&&(a=P(),B(),G(a.isPasteResultInSuggestion?1:-1),B(),G(a.searchText$.value||a.isLoading?-1:2),B(),G(!a.isLoading&&b&&b.length?3:-1),B(),G(a.isLoading||(b==null?null:b.length)!==0?-1:4))},Aib=function(a){a&1&&(K(0,"div")(1,"p"),Q(2),L()());a&2&&(a=P(),B(2),yg(a.description))},Bib=function(a){a&1&&
(K(0,"span"),Q(1,", "),L())},Cib=function(a,b){a&1&&(K(0,"span",1),Q(1),L(),K(2,"onedev-hovercard",null,0)(4,"div",2)(5,"div",3)(6,"h3"),Q(7),L(),F(8,Aib,3,1,"div"),L()()(),F(9,Bib,2,0,"span"));if(a&2){a=qg(3);var c=P(),d=c.$index;c=c.$count;I("onedevHovercardTrigger",a)("onedevHovercardActive",b.enableHovercard);B();yg(b.displayName);B(6);yg(b.displayName);B();G(b.description?8:-1);B();G(d!==c-1?9:-1)}},Eib=function(a,b){a&1&&(F(0,Cib,10,6),T(1,"async"));if(a&2){var c;a=b.$implicit;b=P();G((c=U(1,
1,Dib(b,a)))?0:-1,c)}},Fib=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(c){u(b);var d=P();d.expansionChange.emit();c.stopPropagation();d.issueTitleCell.bannedWordsChecker.reset();return v()});M(1,"b-icon",5);L()}a&2&&(a=P(),wg("collapsed",!a.expanded),If("aria-label",a.expanded?"Collapse children":"Expand children"))},Gib=function(a){a&1&&M(0,"div",2)},Hib=function(a){a&1&&M(0,"mat-icon",1);a&2&&(a=P(),I("svgIcon",a.icon))},Iib=function(a){if(a&1){var b=t();M(0,"b-signal-chip",
3);K(1,"button",4);N("click",function(c){u(b);var d=P();c.preventDefault();c.stopPropagation();return v(d.dismissAlert())})("mousedown",function(){u(b);var c=P();return v(c.dismissAlert())});M(2,"mat-icon",5);L()}a&2&&(P(),a=ag(1),I("chipColor",a.chipColor)("displayText",a.displayAs)("tooltip",a.tooltip))},Kib=function(a){a&1&&(K(0,"div",2),Q(1),L());if(a&2){a=P();var b=qg(5);I("xapInlineDialog",b);B();S(" +",Jib(a).slice(1).length," ")}},Lib=function(a,b){if(a&1){var c=t();K(0,"div",6);M(1,"b-signal-chip",
3);K(2,"button",4);N("click",function(d){u(c);var e=P(2);d.preventDefault();d.stopPropagation();return v(e.dismissAlert())})("mousedown",function(){u(c);var d=P(2);return v(d.dismissAlert())});M(3,"mat-icon",7);L()()}a&2&&(a=b.$implicit,B(),I("chipColor",a.chipColor)("displayText",a.displayAs)("tooltip",a.tooltip))},Mib=function(a){a&1&&(K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),Nf(2,Lib,4,3,"div",6,Lf),L()());a&2&&(a=P(),B(2),Of(Jib(a).slice(1)))},Nib=function(a){a&1&&(K(0,"b-person-hovercard",
1),Q(1),L());a&2&&(a=P(),I("email",a.assignee),B(),S(" ",a.assignee," "))},Oib=function(a){a&1&&M(0,"b-team-display",1);a&2&&(a=P(),I("teamId",a.teamId)("componentId",a.componentId)("anchorLinkEnabled",!1))},Pib=function(a,b){a&1&&M(0,"b-user-image",0);a&2&&I("email",b)},Qib=function(a){if(a&1){var b=t();K(0,"button",2);N("click",function(){u(b);var c=P();return v(c.claim())})("mousedown",function(){u(b);var c=P();return v(c.claim())});Q(1," Claim ");L()}},Rib=function(a){a&1&&(Tf(0),Q(1),T(2,"enumToHuman"),
Uf());a&2&&(a=P(),B(),yg(U(2,1,a.type)))},Sib=function(a){a&1&&Vf(0)},Tib=function(a){a&1&&(K(0,"span"),Q(1,"Details"),L())},Uib=function(a){a&1&&(K(0,"span"),Q(1,"Members"),L())},Vib=function(a){a&1&&(K(0,"div",11)(1,"a",12),F(2,Tib,2,0,"span")(3,Uib,2,0,"span"),L()());if(a&2){a=P(2);B();if(a.email===void 0)var b="";else{b=encodeURIComponent(a.getName());var c=encodeURIComponent(a.email);b=Xaa(a.email)?"https://ganpati2.corp.google.com/group/"+b+".corp":yTa(a.email)?"https://twosync.corp.google.com/rosterz/"+
c:"https://groups.google.com/a/google.com/forum/#!members/"+b}I("href",b,Ne);B();G(Xaa(a.email)?2:3)}},Wib=function(a){a&1&&(K(0,"span",2),E(1,Sib,1,0,"ng-container",3),L(),K(2,"onedev-hovercard",null,1)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"h3"),Q(10),L()(),K(11,"div",9),M(12,"mat-icon",10),K(13,"span"),Q(14),L()()(),F(15,Vib,4,2,"div",11),L()()()());if(a&2){a=qg(3);var b=P(),c=qg(3);I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",c);B(9);yg(b.getName());B(4);yg(b.email);
B();G(b.shouldShowLinks()?15:-1)}},Xib=function(a){a&1&&Vf(0)},Yib=function(a){a&1&&E(0,Xib,1,0,"ng-container",3);a&2&&(P(),a=qg(3),I("ngTemplateOutlet",a))},Zib=function(a){a&1&&cg(0)},$ib=function(a){a&1&&(K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),cg(2),L()())},ajb=function(a,b){a&1&&M(0,"mat-icon",2);a&2&&I("svgIcon",b)},bjb=function(a){a&1&&(K(0,"b-person-hovercard",4),Q(1),L());a&2&&(a=P(),I("email",a.value),B(),S(" ",a.displayText," "))},cjb=function(a){a&1&&(K(0,"b-group-email-card",
4),Q(1),L());a&2&&(a=P(),I("email",a.value),B(),S(" ",a.displayText," "))},djb=function(a,b){a&1&&(K(0,"div",8),M(1,"b-contact-chip",9),L());a&2&&(a=b.$implicit,b=P(3),B(),I("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},ejb=function(a){a&1&&(K(0,"div",7),Nf(1,djb,2,5,"div",8,Mf),L());a&2&&(a=P(2),B(),Of(a.nestedChips))},fjb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),yg(a.getTooltip()))},
gjb=function(a){a&1&&(K(0,"b-text-with-tooltip",5),F(1,ejb,3,0,"div",7)(2,fjb,2,1,"span"),L());a&2&&(a=P(),I("dialogTabIndex",a.isContainerChip()?-1:0)("displayText",a.displayText),B(),G(a.isContainerChip()?1:2))},hjb=function(a){if(a&1){var b=t();K(0,"div",10);N("click",function(){u(b);var c=P();return v(c.chipRemove.emit())})("keydown.enter",function(){u(b);var c=P();return v(c.chipRemove.emit())});M(1,"mat-icon",11);L()}a&2&&(a=P(),I("matTooltip",Eg("'Remove ",a.displayText,"'")),If("aria-label",
"Remove "+a.displayText))},ijb=function(a,b){a&1&&(K(0,"span",1),Q(1),L());a&2&&(I("matTooltip",b),B(),S(" ",b," "))},jjb=function(a){a&1&&(K(0,"b-person-hovercard",1),Q(1),L());a&2&&(a=P(),I("email",a.reporter),B(),S(" ",a.reporter," "))},kjb=function(a,b){a&1&&(Qf(0,"div",1,0),cg(2),Rf());a&2&&(a=b.id,b=P(),xg(b._classList),wg("mat-mdc-autocomplete-visible",b.showPanel)("mat-mdc-autocomplete-hidden",!b.showPanel)("mat-autocomplete-panel-animations-enabled",!b._animationsDisabled)("mat-primary",
b._color==="primary")("mat-accent",b._color==="accent")("mat-warn",b._color==="warn"),Pf("id",b.id),If("aria-label",b.ariaLabel||null)("aria-labelledby",b._getPanelAriaLabelledby(a)))},ljb=function(a){a&1&&(K(0,"div")(1,"div",10),Q(2," An issue cannot reference itself. "),L()())},mjb=function(a){a&1&&(K(0,"mat-option",7)(1,"div",11),M(2,"b-spinner",12),L()());a&2&&(B(2),I("large",!0))},njb=function(a){a&1&&(K(0,"mat-option",8),Q(1," No issues found. "),L())},ojb=function(a){a&1&&M(0,"mat-icon",14);
if(a&2){a=P().$implicit;var b=P(),c;I("svgIcon",(c=b.STATUS_ICON.get(a.status))!=null?c:"")}},pjb=function(a){a&1&&M(0,"b-issue-card",21,2);if(a&2){a=qg(1);var b=P().$implicit;I("onedevIsHovercardReady",a.init)("issueId",b.resourceId)}},rjb=function(a,b){if(a&1){var c=t();K(0,"mat-option",9)(1,"div",13);F(2,ojb,1,1,"mat-icon",14);K(3,"strong",15);Q(4);L();K(5,"onedev-hovercard",null,1);E(7,pjb,2,2,"b-issue-card",16);L();K(8,"a",17);N("click",function(e){u(c);return v(e.stopPropagation())});M(9,"mat-icon",
18);L();K(10,"span",19);Q(11);L();M(12,"div",20);T(13,"boldPrefixMatches");L()()}if(a&2){a=b.$implicit;b=qg(6);var d=P();I("value",a);B();If("aria-label",a.resourceId+", "+a.displayText+", click ALT RightArrow to open the issue in a new tab.");B();G(a.status?2:-1);B();I("title",Dg(a.resourceId));B();S(" ",a.resourceId," ");B(4);I("onedevHovercardTrigger",b)("href",d.getIssueLink(a),Ne);B(3);yg(qjb(a));B();I("title",Dg(a.displayText))("innerHTML",Lg(13,12,a.displayText,d.query),Me)}},sjb=function(a,
b){a&1&&(K(0,"a",11),Q(1),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;I("href",Eg("issues/",a.resourceId),Ne);B();zg(" ",a.resourceId,"",c===b-1?"":","," ")}},tjb=function(a){a&1&&(K(0,"div",3),Nf(1,sjb,2,4,"a",11,Mf),L());a&2&&(a=P(),B(),Of(a.selectedIssues))},ujb=function(a){a&1&&(K(0,"div",3)(1,"a",12)(2,"span",13),Q(3),L(),K(4,"span"),M(5,"mat-icon",14),L()()());a&2&&(a=P(),B(),I("href",Eg("issues/",a.selectedIssues[0].resourceId),Ne),B(2),S(" ",a.selectedIssues[0].displayText," "))},
wjb=function(a){if(a&1){var b=t();K(0,"div",6)(1,"div",15);N("click",function(){u(b);var c=P();return v(vjb(c))})("keyup.space",function(){u(b);var c=P();return v(vjb(c))});L()()}a&2&&(a=P(),B(),I("matTooltip",a.isQueryRestricted?"Searching in current component tree":"Click to search in current component tree"),If("aria-checked",a.isQueryRestricted))},xjb=function(a){switch(a){case "RESTRICTION_SEVERITY_UNSPECIFIED":return 0;case "NONE_DETECTED":return 1;case "RESTRICTED":return 2;case "RESTRICTED_PLUS":return 3;
default:throw Error("Ve`"+a);}},yjb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),S("Retain ",a.resource," as long as issue?"))},zjb=function(a){a&1&&(K(0,"span"),Q(1,"Apply component retention settings?"),L())},Ajb=function(a){a&1&&(K(0,"span")(1,"p"),Q(2),L(),K(3,"p")(4,"b"),Q(5,"Please note long retention is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored."),L(),M(6,"br"),Q(7," Before selecting this option, you should make sure that Legal and Privacy have approved this non-standard retention period."),
L()());a&2&&(a=P(),B(2),S("Are you sure you want to override any component retention settings, and retain this ",a.resource," as long as issue?"))},Bjb=function(a){a&1&&(K(0,"span")(1,"p"),Q(2),L()());a&2&&(a=P(),B(2),zg("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."))},Cjb=function(a){if(a&1){var b=t();K(0,"mat-checkbox",8);Cg("ngModelChange",function(c){u(b);
var d=P();Bg(d.acknowledgeToMatchIssueRetention,c)||(d.acknowledgeToMatchIssueRetention=c);return v(c)});Q(1," I acknowledge ");L()}a&2&&(a=P(),Ag("ngModel",a.acknowledgeToMatchIssueRetention))},Djb=function(){var a=Math.random;this.initialMaxDelayMs_=500;this.maxDelayMs_=512E3;this.random_=a;this.reset()},Ejb=function(a){return new Es(a)},Fjb=function(a){a=a instanceof Es?a:new Es(a);return a.value===null||a.value instanceof Fs?a:new Es(a.value,!0)},Gjb=function(a){return{queryParams:a.getQueryParameters(),
extraHeaders:a.getHeaders(),withCredentials:a.usesCredentialedRequests()}},Ljb=function(a){if(a.oauthTokens){var b=a.oauthTokens;return fe(b).then(function(c){c=new Mj(c);b.subscribe(c);return new Hjb(c)})}return a.apiKey?a.bearerTokens?Promise.resolve(new Ijb(a.apiKey,a.bearerTokens)):a.appAuthTokens?Promise.resolve(new Jjb(a.apiKey)):Promise.resolve(new Kjb(a.apiKey,a.authUser)):Promise.reject(Error("bf"))},Mjb=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;
case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}},Njb=function(a){return{send:function(b,c,d,e,f,g,k){var l=new Gs(a);l.listen("complete",c);l.listenOnce("ready",function(){l.dispose()});g&&(l.timeoutInterval_=Math.max(0,g));k&&(l.withCredentials_=k);l.send(b,d,e,f);return l}}},Ojb=function(a){return new Td(function(b){var c=Hs(function(){b.next({});b.complete()},a);return function(){ra.clearTimeout(c)}})},
Pjb=function(a){return(new Is).setName(a)},Ujb=function(a){var b=new Js;a=m(a.parts);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=new Qjb;if(d.value===null){d=c;var e=new Rjb;Wo(d,13,Ks,e)}else d.value instanceof Ls?d.isDecreasing?Qo(c,4,Ks,Ib(d.value.toString(),0)):Qo(c,2,Ks,Ib(d.value.toString(),0)):typeof d.value==="string"?d.isDecreasing?Bo(c,3,Ks,d.value):Bo(c,1,Ks,d.value):typeof d.value==="number"?d.isDecreasing?fWa(c,9,Ks,d.value):fWa(c,10,Ks,d.value):d.value instanceof Uint8Array?
d.isDecreasing?Qo(c,5,Ks,gb(d.value,!1,!0)):Qo(c,7,Ks,gb(d.value,!1,!0)):d.value instanceof Sjb?d.isDecreasing?(e=c,d=Tjb(d.value),Wo(e,11,Ks,d)):(e=c,d=Tjb(d.value),Wo(e,12,Ks,d)):d.value instanceof Fs&&(c=d.value.rep);b.addParts(c)}return b},Zjb=function(a,b){if(a instanceof Ms)return b.getPartsList().length>0?null:Vjb.apply(Ms,q(a.parts));a=Array.of.apply(Array,q(a.root.parts));b=m(b.getPartsList());for(var c=b.next();!c.done;c=b.next())switch(c=c.value,wo(c,Ks)){case 4:a.push(Fjb(Ns(Wjb(c,4))));
break;case 2:a.push(Ejb(Ns(Wjb(c,2))));break;case 8:case 10:case 6:case 9:a.push(new Es(new Fs(c)));break;case 3:a.push(Fjb(lr(c,3,Ks)));break;case 1:a.push(Ejb(lr(c,1,Ks)));break;case 7:var d=void 0;a.push(Ejb((d=Xjb(c,7))==null?void 0:ysa(d)));break;case 5:d=void 0;a.push(Fjb((d=Xjb(c,5))==null?void 0:ysa(d)));break;case 12:c=Yjb(bm(c,Si,12,Ks));if(c===null)return null;a.push(new Es(c));break;case 11:c=Yjb(bm(c,Si,11,Ks));if(c===null)return null;a.push(Fjb(c));break;case 13:a.push(new Es(null));
break;case 0:a.push(new Es(new Fs(c)));break;default:return null}return Vjb.apply(Ms,q(a))},Ps=function(a){return{firstPartyUri:new Os("https://"+a+"-signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new Os("https://"+a+"-signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1}},Qs=function(a,b){return{firstPartyUri:new Os("https://"+a+"-dynamite-"+b+"-signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new Os("https://"+a+"-dynamite-"+b+"-signaler-pa.googleapis.com/punctual"),addDomainPrefix:!0}},
bkb=function(a,b){var c=0,d=a.slice(0,b).matchAll($jb),e=void 0;d=m(d);for(var f=d.next();!f.done;f=d.next())e=f.value;e&&e.index!==void 0&&(c=e.index+e[0].length);e=a.slice(b).search(akb);b+=e;return{wordStart:c,wordEnd:b,word:a.slice(c,b)}},ckb=function(a){a&1&&(K(0,"div",6)(1,"div",11),M(2,"mat-icon",12),Q(3," Literal Mode "),L(),K(4,"span"),Q(5,"No formatting or linkification will be performed.\u00a0"),L(),K(6,"a",13),Q(7,"Learn more"),L()())},dkb=function(a){a&1&&(K(0,"div",7)(1,"div",14),Q(2,
" Warning: Mentions are not supported without edit access. "),L()())},fkb=function(a){if(a&1){var b=t();K(0,"input",15,2);N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P(2);if(c.length>0){var e;if((e=d.hiddenInputRef)==null?0:e.nativeElement){e=c[0].result().getPrimaryTarget().getValue();c=d.autocompleteLogic;e="@"+e;c.findWordAroundCursor();if(ekb(c,c.wordInfo.word)){var f=c.getTextarea();f.setRangeText(e,c.wordInfo.wordStart,c.wordInfo.wordEnd);f.selectionStart=c.wordInfo.wordStart+
e.length;f.selectionEnd=c.wordInfo.wordStart+e.length;f.dispatchEvent(new Event("input"))}d.autocompleteLogic.taggingInProgress.next(!1);d.focusOnComponent()}}return v()});L()}a&2&&(a=P(2),I("peoplekitAutocompleteConfig",a.getConfig())("peoplekitSearchSessionOptions",a.sessionOptions)("peoplekitAutocompleteInputSearchDelay",0))},gkb=function(a){a&1&&E(0,fkb,2,3,"ng-template",9);a&2&&(a=P(),I("refreshable",a.refresh$))},hkb=function(a){a&1&&M(0,"div",10,3)},ikb=function(a){a&1&&Vf(0)},jkb=function(a){a&
1&&Vf(0)},kkb=function(a){a&1&&(K(0,"p",2),Q(1," Editing comments will not permanently remove old ones from database history. "),M(2,"br"),Q(3," For deletion of PII or other sensitive content, please "),K(4,"a",10),Q(5," file a support request."),L()());a&2&&(a=P(),B(4),I("href",a.contentRemovalRequestLink,Ne))},lkb=function(a){a&1&&(K(0,"p",4),Q(1),K(2,"a",11),Q(3," Learn more "),L()());a&2&&(a=P(),B(),S(" Your comment contains restricted words: ",Bs(a.bannedWordsChecker),". Review your comment before posting. "))},
mkb=function(a){a&1&&M(0,"b-live-preview",6);a&2&&(a=P(),I("comment",a.dataDraft.text)("issueId",a.originalData.issueId)("audience",a.originalData.audience)("formattingMode",a.dataDraft.formattingMode))},nkb=function(a){if(a&1){var b=t();K(0,"section")(1,"div",12)(2,"b-recaptcha",13);N("onUpdate",function(c){u(b);var d=P();return v(d.recaptchaResponse=c)});L()()()}},okb=function(a){return function(b){var c,d;return{resourceId:b.issueId,displayText:(c=b.snapshot[0].title)!=null?c:"",status:(d=b.snapshot[0].status)!=
null?d:null,relations:[a]}}},pkb=function(a){var b=[],c=new Map;a=m(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(q(e.relations),q(d.relations))}else c.set(d.resourceId,d),b.push(d);return b},qkb=function(a,b){a&1&&M(0,"mat-icon",5);a&2&&(I("svgIcon",b.icon)("matTooltip",b.tooltip),If("aria-label",b.tooltip))},rkb=function(a){a&1&&(Tf(0),Q(1,"\u2026 >"),Uf())},skb=function(a){a&1&&(Tf(0),Q(1,"\u2026"),
Uf())},tkb=function(a){if(a&1){var b=t();K(0,"a",11);N("click",function(){u(b);var c=P(4);return v(c.compactMode$.next(!1))});K(1,"span",12);F(2,rkb,2,0,"ng-container");F(3,skb,2,0,"ng-container");L()()}a&2&&(a=P().$implicit,B(2),G(a.isSpliced?2:-1),B(),G(a.isTruncated?3:-1))},ukb=function(a){a&1&&Q(0);a&2&&(a=P(5),S(" ",a.displayValueOverride," "))},vkb=function(a){a&1&&(K(0,"a",14),Q(1),L());if(a&2){a=P(2).$implicit;var b=qg(5);wg("muted",a.name==a.id);I("routerLinkObj",a.route)("onedevHovercardTrigger",
b);B();yg(a.name)}},wkb=function(a){a&1&&F(0,ukb,1,1)(1,vkb,2,5,"a",13);a&2&&(a=P(4),G(a.displayValueOverride?0:1))},xkb=function(a){a&1&&Q(0);a&2&&(a=P(5),S(" ",a.displayValueOverride," "))},ykb=function(a){a&1&&(K(0,"span",16),Q(1),L());a&2&&(a=P(2).$implicit,wg("muted",a.name==a.id),B(),yg(a.name))},zkb=function(a){a&1&&F(0,xkb,1,1)(1,ykb,2,3,"span",15);a&2&&(a=P(4),G(a.displayValueOverride?0:1))},Akb=function(a){a&1&&Q(0," > ")},Bkb=function(a){a&1&&(Tf(0),M(1,"b-component-path-card",17,1),Uf());
if(a&2){a=qg(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.id)}},Ckb=function(a,b){a&1&&(F(0,tkb,4,2,"a",9),F(1,wkb,2,1)(2,zkb,2,1),F(3,Akb,1,0),K(4,"onedev-hovercard",null,0),E(6,Bkb,3,2,"ng-container",10),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(3);G(a.isSpliced||a.isTruncated?0:-1);B();G(d.linkifyComponentNames?1:2);B(2);G(c!==b-1?3:-1)}},Ekb=function(a,b){a&1&&(K(0,"span",6),Nf(1,Ckb,7,3,null,null,Dkb),L());a&2&&(B(),Of(b))},Fkb=function(a){a&
1&&(K(0,"span"),Q(1,"[Archived]"),L())},Gkb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(2);c.editing=!0;c.cdr.markForCheck();return v()});M(1,"mat-icon",19);L()}},Hkb=function(a){a&1&&(K(0,"a",8),T(1,"async"),M(2,"mat-icon",20),L());if(a&2){var b;a=P(2);I("routerLinkObj",a.popoutLink((b=U(1,1,a.component$))==null?null:b.componentId))}},Ikb=function(a){a&1&&(K(0,"b-async-data-placeholder",2),T(1,"async"),K(2,"div",4),T(3,"async"),T(4,"async"),F(5,qkb,1,3,"mat-icon",
5),T(6,"async"),F(7,Ekb,3,0,"span",6),T(8,"async"),F(9,Fkb,2,0,"span"),T(10,"async"),F(11,Gkb,2,0,"button",7),F(12,Hkb,3,3,"a",8),L()());if(a&2){var b,c;a=P();I("isReady",U(1,10,a.isReady$));B(2);wg("public",U(3,12,a.showPublicIndicator$))("partner",U(4,14,a.showPartnerIndicator$));B(3);G((b=U(6,16,a.folder$))?5:-1,b);B(2);G((c=U(8,18,a.componentPath$))?7:-1,c);B(2);G(U(10,20,a.isArchived$)?9:-1);B(2);G(a.readOnly?-1:11);B();G(a.popoutLink?12:-1)}},Kkb=function(a){if(a&1){var b=t();K(0,"b-team-component-picker",
21);T(1,"async");N("selectedComponentChange",function(c){u(b);var d=P();return v(Jkb(d,c))})("dropdownClosed",function(){u(b);var c=P();return v(Jkb(c))});L()}a&2&&(a=P(),I("selectedComponent",U(1,5,a.component$))("isRequired",!0)("shouldFocus",!0)("showOverlayAbove",a.showPickerOverlayAbove)("issueId",a.issueId))},Nkb=function(a){for(var b=m(Lkb),c=b.next();!c.done;c=b.next())if(c=c.value,c.accessLevel===a)return c.title;return Mkb.title},Okb=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(),I("matTooltip",
a.disabledDropdownTooltip))},Pkb=function(a,b){if(a&1){var c=t();K(0,"button",10);N("click",function(){var d=u(c).$implicit,e=P();e.selectedDisplay$.next(d);e.updatedAccessLimitLevel.emit(d.accessLevel);return v()});K(1,"div",11);M(2,"mat-icon",12);K(3,"span",13);Q(4);L()();K(5,"div",14);Q(6);L()()}a&2&&(a=b.$implicit,b=P(),B(2),I("svgIcon",a.icon),B(2),S(" ",a.title," "),B(2),S(" ",b.implicitAccessEnabled?a.descriptionWithExpandedAccess:a.descriptionNoExpandedAccess," "))},Rkb=function(a,b){if(a&
1){var c=t();K(0,"mat-checkbox",19);N("click",function(d){u(c);return v(d.stopPropagation())})("change",function(d){var e=u(c).$implicit,f=P(2);e=e.value.user;d=d.source.checked;var g=f.collaboratorGroupsEmailToDetailsMap.get(e.emailAddress).specifiedOnIssue;d?(g||f.addedCollaboratorGroups.add(e),f.removedCollaboratorGroups.delete(e)):(g&&f.removedCollaboratorGroups.add(e),f.addedCollaboratorGroups.delete(e));var k;Qkb(f,(k=f.updatedAccessLimitLevel$.getValue())!=null?k:f.defaultAccessLimitLevel);
return v()});Q(1);L()}a&2&&(a=b.$implicit,I("id",a.key)("name",a.key)("checked",a.value.specifiedOnIssue),B(),S(" ",a.key," "))},Skb=function(a){a&1&&(K(0,"div")(1,"span",16),Q(2,"Add collaborator groups"),L(),M(3,"mat-icon",7),L(),K(4,"div",17),Nf(5,Rkb,2,4,"mat-checkbox",18,Mf),T(7,"keyvalue"),L());a&2&&(a=P(),B(3),I("matTooltip",Dg(a.COLLABORATOR_GROUPS_TOOLTIP)),B(2),Of(U(7,2,a.collaboratorGroupsEmailToDetailsMap)))},Ukb=function(a){if(a&1){var b=t();K(0,"button",20);N("click",function(){u(b);
var c=P();return v(c.onPressCancel())});Q(1," Cancel ");L();K(2,"button",21);T(3,"async");N("click",function(){u(b);var c=P();return v(c.onPressSave())});Q(4," Save ");L()}a&2&&(a=P(),B(2),I("disabled",!Tkb(a,U(3,1,a.hasAccessLimitLevelSelectionChanged$))))},Vkb=function(a){if(a&1){var b=t();K(0,"button",22);N("click",function(){u(b);var c=P();return v(c.onPressCancel())});Q(1," Close ");L()}},Wkb=function(a){if(a&1){var b=t();K(0,"b-star-toggle",5);T(1,"async");T(2,"async");N("starClicked",function(){u(b);
var c=P(2);return v(c.starClicked.emit())});L()}a&2&&(a=P(2),I("starMessage","Star hotlist "+a.hotlist.name)("unStarMessage","Un-star hotlist "+a.hotlist.name)("acceptInput",!U(1,4,Cs(a.isSavingStar,a.hotlist.hotlistId)))("starred",U(2,6,Cs(a.starredHotlists,a.hotlist.hotlistId))))},Xkb=function(a){a&1&&M(0,"div",2)},Ykb=function(a){if(a&1){var b=t();K(0,"span",0);F(1,Wkb,3,8,"b-star-toggle",1)(2,Xkb,1,0,"div",2);K(3,"a",3);N("click",function(c){u(b);return v(c.stopPropagation())})("keydown.enter",
function(c){u(b);return v(c.stopPropagation())});M(4,"mat-icon",4);L()()}a&2&&(a=P(),B(),G(a.shouldShowStar(a.hotlist)?1:2),B(2),I("matTooltip",Eg("Open ",a.hotlist.name," in a new tab"))("routerLink",a.ROUTES.viewHotlist.makeHref(a.hotlist.hotlistId)),If("aria-label","Open "+a.hotlist.name+" in a new tab"))},Zkb=function(a){a&1&&Vf(0)},$kb=function(a){a&1&&E(0,Zkb,1,0,"ng-container",7);a&2&&(P(),a=qg(10),I("ngTemplateOutlet",a))},blb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);
var c=P(2),d=rm(c.query$.value);c.allHotlistIds.has(d)?(c.selectedHotlistIds.add(d),Rs(c)):alb(c,d);return v()});Q(1);T(2,"async");K(3,"span",16);Q(4,"(add hotlist by ID)");L()()}a&2&&(a=P(2),B(),S(" ",U(2,1,a.query$)," "))},clb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);P(2).showCreateNewPane=!0;return v()});Q(1);T(2,"async");K(3,"span",16);Q(4,"(create new)");L()()}a&2&&(a=P(2),B(),S(" ",U(2,1,a.query$)," "))},dlb=function(a){a&1&&M(0,"mat-icon",27)},elb=function(a){a&
1&&M(0,"mat-icon",28)},flb=function(a){a&1&&M(0,"mat-icon",29)},glb=function(a){a&1&&(K(0,"p",36),Q(1),L());a&2&&(a=P(2).$implicit,B(),S(" ",a.description," "))},hlb=function(a){if(a&1){var b=t();K(0,"div");F(1,dlb,1,0,"mat-icon",27)(2,elb,1,0,"mat-icon",28)(3,flb,1,0,"mat-icon",29);K(4,"mat-list-item",30);N("focus",function(){u(b);P();var e=qg(1);return v(e.show())})("blur",function(){u(b);P();var e=qg(1);return v(e.hide())});K(5,"div",31)(6,"mat-checkbox",32);T(7,"async");N("change",function(e){u(b);
var f=P().$implicit,g=P(3);return v(g.onCheckboxChange(e,f.hotlistId))});K(8,"div",33)(9,"div",34)(10,"p",35);Q(11);L()();F(12,glb,2,1,"p",36);L()()()()()}if(a&2){var c;a=P().$implicit;var d=P(3);xg(Eg("flex-kids-x align-items-center left-padding ",a.type));B();G(a.type===d.HotlistType.RECOMMENDED?1:a.type===d.HotlistType.USER?2:3);B(3);vg("height",a.description?"72px":"auto");B(2);I("value",a.hotlistId.toString())("checked",d.selectedHotlistIds.has(a.hotlistId))("disabled",((c=U(7,13,a.permissions$))==
null?null:c.appender)===!1)("indeterminate",d.partiallySelectedHotlistIds.has(a.hotlistId));If("aria-checked",d.selectedHotlistIds.has(a.hotlistId));B(5);S(" ",a.name," ");B();G(a.description?12:-1)}},ilb=function(a){a&1&&(K(0,"p",36),Q(1),L());a&2&&(a=P(2).$implicit,B(),S(" ",a.description," "))},jlb=function(a){if(a&1){var b=t();K(0,"mat-list-item",30);N("focus",function(){u(b);P();var e=qg(1);return v(e.show())})("blur",function(){u(b);P();var e=qg(1);return v(e.hide())});K(1,"div",31)(2,"mat-checkbox",
37);T(3,"async");N("click",function(e){u(b);return v(e.stopPropagation())})("change",function(e){u(b);var f=P().$implicit,g=P(3);return v(g.onCheckboxChange(e,f.hotlistId))});K(4,"div",33)(5,"div",34)(6,"label",35);Q(7);L()();F(8,ilb,2,1,"p",36);L()()()()}if(a&2){var c;a=P().$implicit;var d=P(3);vg("height",a.description?"72px":"auto");B(2);I("value",a.hotlistId.toString())("checked",d.selectedHotlistIds.has(a.hotlistId))("disabled",((c=U(3,9,a.permissions$))==null?null:c.appender)===!1)("indeterminate",
d.partiallySelectedHotlistIds.has(a.hotlistId));If("aria-checked",d.selectedHotlistIds.has(a.hotlistId));B(5);S(" ",a.name," ");B();G(a.description?8:-1)}},klb=function(a,b){a&1&&(K(0,"div",21,4),T(2,"async"),F(3,hlb,13,15,"div",25)(4,jlb,9,11,"mat-list-item",26),L());if(a&2){var c;a=b.$implicit;b=P(3);I("matTooltip",((c=U(2,2,a.permissions$))==null?null:c.appender)===!1?b.NO_ACCESS_MESSAGE:"");B(3);G(b.isInternalSession?3:4)}},llb=function(a,b){if(a&1){var c=t();K(0,"hotlist-matlist-option",38);
N("starClicked",function(){var d=u(c).$implicit,e=P(3);return v(e.toggleStar(d.hotlistId))});L()}a&2&&(a=b.$implicit,b=P(3),wg("has-description",a.description),I("hotlist",a)("isCompact",!1)("starredHotlists",b.starredHotlists)("isSavingStar",b.isSavingStar))},mlb=function(a){if(a&1){var b=t();K(0,"div",24)(1,"span",16);Q(2," The number of hotlists is too large to show at once. ");L();K(3,"button",39);N("click",function(){u(b);var c=P(3);return v(c.forceShowOverflow$.next(!0))});Q(4," Show all anyway ");
L()()}},olb=function(a,b){a&1&&(K(0,"div",18)(1,"mat-list",19)(2,"div",20),Nf(3,klb,5,4,"div",21,nlb),L()(),K(5,"div",22),Nf(6,llb,1,6,"hotlist-matlist-option",23,nlb),L()(),F(8,mlb,5,0,"div",24),T(9,"async"));a&2&&(a=P(2),B(3),Of(b),B(3),Of(b),B(2),G(U(9,1,a.isOverflowMode$)?8:-1))},plb=function(a){if(a&1){var b=t();K(0,"header",8)(1,"h2");Q(2,"Search for Hotlists from your favorites");L();K(3,"div",9);M(4,"mat-icon",10);K(5,"input",11,2);N("input",function(){u(b);var d=qg(6);P().query$.next(d.value);
return v()});L()()();K(7,"section",12,3);F(9,blb,5,3,"button",13);T(10,"async");F(11,clb,5,3,"button",14);T(12,"async");F(13,olb,10,3);T(14,"async");L()}if(a&2){var c;a=P();B(9);G(U(10,3,a.showLoadById$)?9:-1);B(2);G(U(12,5,a.showCreateNew$)?11:-1);B(2);G((c=U(14,7,a.visibleHotlists$))?13:-1,c)}},qlb=function(a){a&1&&Vf(0)},rlb=function(a){a&1&&E(0,qlb,1,0,"ng-container",7);a&2&&(P(),a=qg(8),I("ngTemplateOutlet",a))},slb=function(a){if(a&1){var b=t();K(0,"button",40);N("click",function(){u(b);var c=
P();return v(Rs(c))});Q(1);L()}a&2&&(a=P(),I("mat-dialog-close",!0)("matTooltip",a.saveBtnTooltip)("disabled",a.pristine),If("aria-label",a.saveBtnTooltip),B(),S(" ",a.saveBtnLabel," "))},vlb=function(a){if(a&1){var b=t();K(0,"button",41);N("click",function(){u(b);var c=P();return v(tlb(c))});Q(1," Create ");L()}a&2&&(a=P(),I("disabled",!(ulb(a).length>0)))},wlb=function(a){a&1&&(K(0,"header",8)(1,"h2"),Q(2,"Create new hotlist"),L()(),K(3,"section",42)(4,"div",43)(5,"form",44)(6,"label",45),Q(7,"Name"),
L(),M(8,"input",46),K(9,"label",47),Q(10,"Description"),L(),M(11,"textarea",48),K(12,"p",16),Q(13," Note: Access controls can be adjusted after the hotlist is created. "),L()()()());a&2&&(a=P(),B(5),I("formGroup",a.hotlistUnderEdit))},xlb=function(a,b){return a.name.localeCompare(b.name)},ylb=function(a,b){if(a==null||a.trim()==="")return!1;b=b.map(function(c){var d;return(d=c.name)==null?void 0:d.toLowerCase()});a=a.toLowerCase();return!b.includes(a)},zlb=function(a){var b=new Set(a.selectedHotlistIds);
if(a.selectedHotlistIdsMap){a=m(a.selectedHotlistIdsMap.values());for(var c=a.next();!c.done;c=a.next()){c=m(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}}},Alb=function(a){var b=new Map;a=m(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;d=Array.from(d);b.set(c,new Set(d))}return b},Blb=function(a){if(a&1){var b=t();K(0,"b-edit-field",21);T(1,"async");N("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setSeverity(g,
f!=null?f:k.IssueSeverity.S2))});L()}if(a&2){var c=P().$implicit,d=P();a=ag(0);var e=P(3);c=d.get(c);I("name","severity")("title","Severity")("type",e.FieldType.ENUM)("tooltip","Set severity")("value",c?null:a.severity)("choices",e.severityChoices)("readonly",!U(1,8,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},Clb=function(a){if(a&1){var b=t();K(0,"b-edit-field",22,0);T(2,"async");N("onHotkey",function(){u(b);var f=qg(1);return v(Zr(f,null,!0,!1))})("valueChange",
function(f){u(b);var g=P(3),k=P(2);return v(k.setPriority(g,f!=null?f:k.IssuePriority.P2))});L()}if(a&2){var c=P().$implicit,d=P();a=ag(0);var e=P(3);c=d.get(c);I("name","priority")("title","Priority")("type",e.FieldType.ENUM)("tooltip","Set priority")("value",c?null:a.priority)("choices",e.priorityChoices)("hotkey",e.HOTKEYS.OPEN_ISSUE_PRIORITY_MENU)("readonly",!U(2,9,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},Dlb=function(a){if(a&1){var b=t();K(0,"triage-hotlists-editor",
23);N("hotlistIdsChange",function(c){u(b);var d=P(5);return v(d.hotlistIds=c)})("hotlistIdsMapChange",function(c){u(b);var d=P(5);return v(d.hotlistIdsMap=c)});L()}a&2&&(a=P(5),I("phase",a.phase)("subphase",a.subphase))},Elb=function(a){if(a&1){var b=t();K(0,"triage-custom-fields-editor",24);N("onCustomFieldBulkEdit",function(e){u(b);P(5).customFieldBulkEditOps=e;return v()});L()}if(a&2){P(2);a=ag(0);var c=P(),d=P(2);I("editableIssue",a)("hasMultipleIssues",c.length>1)("phase",d.phase)("subphase",
d.subphase)}},Flb=function(a,b){if(a&1){var c=t();K(0,"button",30);N("click",function(){var e=u(c),f=P(6),g=P(2);return v(g.setAssignee(f,e))})("onHotkey",function(){var e=u(c),f=P(6),g=P(2);return v(g.setAssignee(f,e))});M(1,"mat-icon",31);Q(2," Assign to default ");L()}if(a&2){P(5);a=ag(0);var d=P(3);I("disabled",a.assignee===b)("hotkey",d.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip","Set "+b+" as assignee");If("aria-label","Set "+b+" as assignee");B();I("svgIcon",a.assignee===b?"done":
"add")}},Glb=function(a){a&1&&(F(0,Flb,3,5,"button",29),T(1,"async"));if(a&2){var b;a=P(7);G((b=U(1,1,a.defaultAssigneeForComponent$))?0:-1,b)}},Hlb=function(a){if(a&1){var b=t();K(0,"button",32);N("click",function(){u(b);var c=P(5),d=P(2);return v(d.setAssignee(c,d.currentUserEmail))})("onHotkey",function(){u(b);var c=P(5),d=P(2);return v(d.setAssignee(c,d.currentUserEmail))});M(1,"mat-icon",33);Q(2," Assign to me ");L()}a&2&&I("matTooltip","Assign to me")},Ilb=function(a){a&1&&(K(0,"div",27),F(1,
Glb,2,3),F(2,Hlb,3,1,"button",28),L());if(a&2){P();a=ag(0);P(2);var b=ag(0),c=P(3);B();G(c.showAssignToDefault&&!a?1:-1);B();G(c.showAssignToSelf&&b.assignee!==c.currentUserEmail||a?2:-1)}},Jlb=function(a){if(a&1){var b=t();Zf(0);K(1,"div",15)(2,"div",25)(3,"b-single-user-control",26,1);N("onHotkey",function(){u(b);var f=qg(4);return v(f.openEditor())})("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setAssignee(g,f.newEmail))})("emailChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setAssignee(g,
f))});L();F(5,Ilb,3,2,"div",27);T(6,"async");L()()}if(a&2){var c=P().$implicit,d=P();a=ag(0);var e=P(3);c=$f(d.get(c));B(3);I("name","assignee")("title","Assignee")("hotkey",e.HOTKEYS.CHANGE_ASSIGNEE)("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")("value",a.assignee);B(2);G(U(6,7,e.showAssigneeChips$)?5:-1)}},Klb=function(a){if(a&1){var b=t();K(0,"b-edit-field",34,2);T(2,"async");N("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setType(g,f!=null?f:k.IssueType.BUG))});L()}if(a&
2){var c=P().$implicit,d=P();a=ag(0);var e=P(3);c=d.get(c);I("name","type")("title","Type")("type",e.FieldType.ENUM)("value",c?null:a.type)("choices",e.typeChoices)("readonly",!U(2,7,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},Llb=function(a){if(a&1){var b=t();K(0,"b-edit-field",35,3);T(2,"async");N("onHotkey",function(){u(b);var f=qg(1);return v(Zr(f,null,!0,!1))})("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setStatus(g,f!=null?f:k.IssueStatus.NEW))});
L()}if(a&2){var c=P().$implicit,d=P();a=ag(0);var e=P(3);c=d.get(c);I("name","status")("title","Status")("type",e.FieldType.ENUM)("value",c?null:a.status)("choices",e.statusChoices)("showHotkeyHint",!0)("hotkey",e.HOTKEYS.OPEN_ISSUE_STATUS_MENU)("readonly",!U(2,9,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},Nlb=function(a){if(a&1){var b=t();K(0,"b-list-field",37);T(1,"async");N("valuesChange",function(d){u(b);var e=P(4),f=P(2);return v(f.setCodeChanges(e,d.values))});
L()}if(a&2){P(3);a=ag(0);var c=P(3);I("readonly",!U(1,6,c.hasAclToEdit$))("defaultLineCount",3)("title","Code Changes")("inputValidator",c.codeChangesValidator)("type",c.ListFieldType.CODE_CHANGES)("values",Mlb(a,c.sessionIsExternal))}},Olb=function(a){a&1&&F(0,Nlb,2,8,"b-list-field",36);a&2&&(a=P(3),G(a.length<2?0:-1))},Plb=function(a){if(a&1){var b=t();K(0,"div",18)(1,"div",38)(2,"label");Q(3,"Component");L()();K(4,"b-component-breadcrumb-chip",39);N("componentChanged",function(f){u(b);var g=P(3),
k=P(2);return v(k.setComponent(g,f))});L()()}if(a&2){var c=P().$implicit,d=P();a=ag(0);var e=P(3);c=d.get(c);B(4);I("issueId",a.issueId)("componentId",c?"":e.componentId)("compactMode",!0)("handleSave",!1)("showPickerOverlayAbove",!0)("displayValueOverride",c?e.MULTIPLE_COMPONENT_SELECTED_LABEL:"")}},Slb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"div")(2,"b-post-comment",40,4);N("commentSubmitted",function(){u(b);var d=P(5);return v(Qlb(d))});L();K(4,"button",10);N("click",function(){u(b);var d=
qg(7),e=P(5);return v(Qlb(e,d))});Q(5,"Remove comment");L()();K(6,"button",10,5);N("click",function(){u(b);var d=qg(3);P(5).showCommentInput=!0;return v(d.commentBox==null?null:Rlb(d.commentBox))});Q(8,"Add comment");L()()}if(a&2){P(2);a=ag(0);var c=P(3);B();wg("hidden",!c.showCommentInput);B();I("issueId",a.issueId)("showActionsAfterPreview",!1)("showCommentButton",!1);B(4);wg("hidden",c.showCommentInput)}},Vlb=function(a){if(a&1){var b=t();K(0,"triage-edit-user-buttons",43);T(1,"async");N("addCurrentUser",
function(){u(b);for(var c=P(4),d=P(2),e=d.activeSession.getUserEmail(),f=m(c),g=f.next();!g.done;g=f.next()){g=g.value;var k=g.collaborators;k.includes(e)||k.push(e);g.setCollaborators(k)}Ss(d,c[0]);Ts(d,c);return v()})("removeCurrentUser",function(){u(b);var c=P(4),d=P(2);return v(Tlb(d,c))})("onAddUsers",function(c){u(b);for(var d=P(4),e=P(2),f=m(d),g=f.next();!g.done;g=f.next()){g=g.value;var k=tq([].concat(q(g.collaborators),q(c)));g.setCollaborators(k)}Ss(e,d[0]);Ts(e,d);return v()})("onRemoveUsers",
function(c){u(b);var d=P(4),e=P(2);return v(Ulb(e,d,c))});L()}a&2&&(a=P(6),I("title","Collaborators")("subtitle",a.MULTIPLE_FIELD_VALUES_LABEL)("inputValidator",a.collaboratorUserPrincipalValidator)("isAllowedToEditCollection",U(1,4,a.hasAclToEdit$)))},Wlb=function(a){if(a&1){var b=t();K(0,"b-multi-user-control",44);T(1,"async");N("userInclusionToggle",function(){u(b);var d=P(4),e=P(2);return v(e.toggleCollaborators(d))})("valueChange",function(d){u(b);var e=P(4),f=P(2);return v(f.setCollaborators(e,
d))})("toggleAccessLimits",function(){u(b);P(3);var d=ag(0),e=P(3);return v(e.toggleAccessLimits(d.issueId))});L()}if(a&2){P(3);a=ag(0);var c=P(3);I("title","Collaborators")("values",a.collaborators)("users",a.collaboratorsUsers)("includeSelfActionDescription","Add me")("includeSelfActionLongDescription","Add yourself to collaborators")("overlayPosition",c.overlayPositionList)("removeSelfActionDescription","Remove me")("removeSelfActionLongDescription","Remove yourself from collaborators")("collectionHovercardDescription",
"Collaborators are people directly working on this issue.")("isCurrentUserInCollection",c.isCurrentUserCollaborator)("isAllowedToEditCollection",U(1,14,c.hasAclToEdit$))("iconName","groups_24px")("inputValidator",c.collaboratorUserPrincipalValidator)("checkAccessLimits",!0)}},Xlb=function(a){a&1&&F(0,Vlb,2,6,"triage-edit-user-buttons",41)(1,Wlb,2,16,"b-multi-user-control",42);a&2&&(a=P().$implicit,a=P().get(a),G(a?0:1))},$lb=function(a){if(a&1){var b=t();K(0,"triage-edit-user-buttons",47);T(1,"async");
N("addCurrentUser",function(){u(b);for(var c=P(4),d=P(2),e=d.activeSession.getUserEmail(),f=m(c),g=f.next();!g.done;g=f.next()){g=g.value;var k=g.cc;k.includes(e)||k.push(e);g.cc=k}Us(d,c[0]);Ts(d,c);return v()})("removeCurrentUser",function(){u(b);var c=P(4),d=P(2);return v(Ylb(d,c))})("onAddUsers",function(c){u(b);for(var d=P(4),e=P(2),f=m(d),g=f.next();!g.done;g=f.next()){g=g.value;var k=tq([].concat(q(g.cc),q(c)));g.cc=k}Us(e,d[0]);Ts(e,d);return v()})("onRemoveUsers",function(c){u(b);var d=P(4),
e=P(2);return v(Zlb(e,d,c))});L()}a&2&&(a=P(6),I("title","CC")("subtitle",a.MULTIPLE_FIELD_VALUES_LABEL)("isAllowedToEditCollection",U(1,3,a.hasAclToEdit$)))},bmb=function(a){if(a&1){var b=t();K(0,"b-multi-user-control",48);T(1,"async");N("userInclusionToggle",function(){u(b);var d=P(4),e=P(2);return v(amb(e,d))})("valueChange",function(d){u(b);var e=P(4),f=P(2);return v(f.setCcs(e,d))});L()}if(a&2){P(3);a=ag(0);var c=P(3);I("title","CC")("values",a.cc)("users",a.ccUsers)("includeSelfActionDescription",
"CC me")("includeSelfActionLongDescription","Add yourself to CC")("overlayPosition",c.overlayPositionList)("removeSelfActionDescription","Un-CC me")("removeSelfActionLongDescription","Remove yourself from CC")("collectionHovercardDescription","CC are users who want to receive updates.")("isCurrentUserInCollection",c.isCurrentUserCcd)("isAllowedToEditCollection",U(1,12,c.hasAclToEdit$))("iconName","add_alert_24px")}},cmb=function(a){a&1&&F(0,$lb,2,5,"triage-edit-user-buttons",45)(1,bmb,2,14,"b-multi-user-control",
46);a&2&&(a=P().$implicit,a=P().get(a),G(a?0:1))},dmb=function(a,b){a&1&&M(0,"automatic-change-chip",20);a&2&&(P(2),a=ag(0),I("issueId",a.issueId)("automaticChange",b))},fmb=function(a,b){a&1&&(K(0,"div",7),F(1,Blb,2,10,"b-edit-field",11)(2,Clb,3,11,"b-edit-field",12)(3,Dlb,1,2,"triage-hotlists-editor",13)(4,Elb,1,4,"triage-custom-fields-editor",14)(5,Jlb,7,9,"div",15)(6,Klb,3,9,"b-edit-field",16)(7,Llb,3,11,"b-edit-field",17)(8,Olb,1,1)(9,Plb,5,6,"div",18)(10,Slb,9,7,"div",19)(11,Xlb,2,1)(12,cmb,
2,1),F(13,dmb,1,2,"automatic-change-chip",20),L());if(a&2){var c;a=b.$implicit;b=P(4);B();G(a===b.IssueFieldKey.SEVERITY?1:a===b.IssueFieldKey.PRIORITY?2:a===b.IssueFieldKey.HOTLISTS?3:a===b.IssueFieldKey.CUSTOM_FIELDS?4:a===b.IssueFieldKey.ASSIGNEE?5:a===b.IssueFieldKey.TYPE?6:a===b.IssueFieldKey.STATUS?7:a===b.IssueFieldKey.CODE_CHANGES?8:a===b.IssueFieldKey.COMPONENT?9:a===b.IssueFieldKey.COMMENT?10:a===b.IssueFieldKey.COLLABORATORS?11:a===b.IssueFieldKey.CC_LIST?12:-1);B(12);G((c=emb(b,a))?13:
-1,c)}},gmb=function(a){if(a&1){var b=t();Zf(0);K(1,"div",6);Nf(2,fmb,14,2,"div",7,Mf);L();K(4,"div",8)(5,"button",9);T(6,"async");N("click",function(){u(b);var d=P(),e=P(2);return v(e.save(d))});Q(7);T(8,"async");L();K(9,"button",10);N("click",function(){u(b);var d=P(3);return v(d.cancelAction.emit())});Q(10,"Cancel");L()()}if(a&2){a=P();var c=P(2);$f(a[0]);B(2);Of(c.fields);B(3);I("disabled",U(6,3,c.isSaving$));B(2);yg(U(8,5,c.isSaving$)?"Saving":"Save changes")}},hmb=function(a){a&1&&(F(0,gmb,
11,7),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.fieldMultipleValueMap$))?0:-1,b)}},imb=function(a){a&1&&(F(0,hmb,2,3),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.editableIssues$))?0:-1,b)}},jmb=function(a){a&1&&Vf(0)},kmb=function(a){a&1&&E(0,jmb,1,0,"ng-container",11);a&2&&(P(),a=qg(12),I("ngTemplateOutlet",a))},lmb=function(a){a&1&&Vf(0)},mmb=function(a){a&1&&E(0,lmb,1,0,"ng-container",11);a&2&&(P(),a=qg(14),I("ngTemplateOutlet",a))},nmb=function(a){a&1&&Vf(0)},omb=function(a){a&1&&E(0,
nmb,1,0,"ng-container",11);a&2&&(P(),a=qg(16),I("ngTemplateOutlet",a))},pmb=function(a){a&1&&Vf(0)},qmb=function(a){a&1&&E(0,pmb,1,0,"ng-container",11);a&2&&(P(),a=qg(32),I("ngTemplateOutlet",a))},rmb=function(a){a&1&&Vf(0)},smb=function(a){a&1&&E(0,rmb,1,0,"ng-container",11);a&2&&(P(),a=qg(20),I("ngTemplateOutlet",a))},tmb=function(a){a&1&&Vf(0)},umb=function(a){a&1&&E(0,tmb,1,0,"ng-container",11);a&2&&(P(),a=qg(22),I("ngTemplateOutlet",a))},vmb=function(a){a&1&&Vf(0)},wmb=function(a){a&1&&E(0,vmb,
1,0,"ng-container",11);a&2&&(P(),a=qg(24),I("ngTemplateOutlet",a))},xmb=function(a){a&1&&Vf(0)},ymb=function(a){a&1&&E(0,xmb,1,0,"ng-container",11);a&2&&(P(),a=qg(26),I("ngTemplateOutlet",a))},zmb=function(a){a&1&&Vf(0)},Amb=function(a){a&1&&E(0,zmb,1,0,"ng-container",11);a&2&&(P(),a=qg(28),I("ngTemplateOutlet",a))},Bmb=function(a){a&1&&Vf(0)},Cmb=function(a){a&1&&E(0,Bmb,1,0,"ng-container",11);a&2&&(P(),a=qg(18),I("ngTemplateOutlet",a))},Dmb=function(a){a&1&&Vf(0)},Emb=function(a){a&1&&E(0,Dmb,1,
0,"ng-container",11);a&2&&(P(),a=qg(30),I("ngTemplateOutlet",a))},Fmb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Needs more info");L();K(3,"verify-fields",14);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.NEEDS_MORE_INFO.fieldsToShow)("phase",a.TriagePhase.NEW)("subphase",a.TriageSubphase.NEEDS_INFO)("automaticChanges",a.needsInfoAutomaticChanges)("expandCommentBox",
!0)("showAssignToDefault",!1)("showAssignToSelf",!1))},Gmb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Confirmed");L();K(3,"verify-fields",15);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.CONFIRM_ACTION.fieldsToShow)("phase",a.TriagePhase.CONFIRMED))},Hmb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Pending owner");
L();K(3,"verify-fields",15);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_PENDING_OWNER.fieldsToShow)("phase",a.TriagePhase.CONFIRMED))},Imb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Route");L();K(3,"verify-fields",15);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);
var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.CHANGE_COMPONENT.fieldsToShow)("phase",a.TriagePhase.NEW))},Jmb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to In progress");L();K(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_IN_PROGRESS.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",
a.SET_IN_PROGRESS.showAssignToSelf))},Kmb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Expected");L();K(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_EXPECTED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_EXPECTED.showAssignToSelf))},Lmb=function(a){if(a&1){var b=t();K(0,"div",
12)(1,"div",13);Q(2,"Move to Planned");L();K(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_PLANNED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_PLANNED.showAssignToSelf))},Mmb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Committed");L();K(3,"verify-fields",16);N("cancelAction",
function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_COMMITTED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_COMMITTED.showAssignToSelf))},Nmb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Fixed");L();K(3,"verify-fields",17);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);
var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_FIXED.fieldsToShow)("phase",a.TriagePhase.FIXED)("automaticChanges",a.SET_FIXED.automaticChanges))},Omb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to New");L();K(3,"verify-fields",17);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_NEW.fieldsToShow)("phase",
a.TriagePhase.NEW)("automaticChanges",a.SET_NEW.automaticChanges))},Pmb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Won't fix");L();K(3,"verify-fields",18);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_WONT_FIX.fieldsToShow)("automaticChanges",a.SET_WONT_FIX.automaticChanges))},Tmb=function(a){var b,c,d,e;a=Qmb(a,Rmb,1,jb);
return{output:(e=(b=Bi(a,Smb,1,Ci())[0])==null?void 0:(c=b.getContent())==null?void 0:(d=c.getPartsList()[0])==null?void 0:d.getText())!=null?e:""}},Umb=function(a,b){if(a&1){var c=t();K(0,"iframe",6);N("load",function(){u(c);var d=P();return v(d.contentLoaded=!0)});L()}a&2&&(a=P(),wg("loading",!a.contentLoaded),I("src",b,vja))},Vmb=function(a){a&1&&M(0,"mat-spinner",2)},Xmb=function(a){return Wmb.some(function(b){return b.test(a)})},anb=function(a,b){var c;var d=(c=a.formContent)==null?void 0:c.locale;
c=d==null?void 0:d.split("-")[0];d=d&&Ymb.includes(d)?d:c&&Ymb.includes(c)?c:void 0;d=(d!=null?d:"en").replaceAll("-","_").toLowerCase();var e;a=((e=a.initializationData)==null?0:e.useNightlyRelease)?"nightly":"live";var f;return(b==null?0:(f=b.getEnableAlohaBinarySplit)==null?0:f.call(b))?Fh(Zmb,a):Fh($mb,a,d)},dnb=function(a,b,c,d){if(bnb&&cnb===b)return bnb;cnb=b;var e=anb(a,d);return bnb=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,g){var k=Vs(document,
"SCRIPT");oi(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):g(Error("of"))};k.onerror=function(){g(Error("pf`"+e.toString()))};c.body.appendChild(k)})},gnb=function(a,b,c,d){if(enb&&fnb===b)return enb;fnb=b;var e=anb(a,d);return enb=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,g){var k=Vs(document,"SCRIPT");oi(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):g(Error("of"))};k.onerror=function(){g(Error("pf`"+
e.toString()))};c.body.appendChild(k)})},hnb=function(a,b,c,d,e){e=e===void 0?!0:e;var f,g,k,l,r;return y(function(w){switch(w.nextAddress){case 1:return f=Date.now(),z(w,dnb(a,c,d,b),2);case 2:g=w.yieldResult;if(!(e||((l=a.initializationData)==null?0:l.useNightlyRelease)||((r=a.initializationData)==null?0:r.isLocalServer))){k=g.initializeFeedbackClient(a,f,b);w.jumpTo(3);break}return z(w,g.initializeFeedbackClientAsync(a,f,b),4);case 4:k=w.yieldResult;case 3:return k.initiateAloha(),w.return(k)}})},
inb=function(a,b,c,d){var e,f,g;return y(function(k){if(k.nextAddress==1)return e=Date.now(),z(k,gnb(a,c,d.document,b),2);if(k.nextAddress!=3)return f=k.yieldResult,z(k,f.initializeFeedbackClientAsync(a,e,b,d),3);g=k.yieldResult;g.initiateAloha();return k.return(g)})},jnb=function(a,b,c){var d=!0;d=d===void 0?!0:d;var e,f,g,k,l,r,w,x;return y(function(C){e=c||ra;if((f=b)==null?0:(k=(g=f).getEnableAlohaBinarySplit)==null?0:k.call(g)){l=e;if(l.isFormOpened)throw new Ws;l.isFormOpened=!0;a.callbacks=
a.callbacks||{};r=a.callbacks.onClose||function(){};a.callbacks.onClose=function(H){l.isFormOpened=!1;r(H)};try{return C.return(inb(a,b,l,e))}catch(H){throw l.isFormOpened=!1,H;}}else{w=e;if(w.isFormOpened)throw new Ws;w.isFormOpened=!0;a.callbacks=a.callbacks||{};x=a.callbacks.onClose||function(){};a.callbacks.onClose=function(H){w.isFormOpened=!1;x(H)};try{return C.return(hnb(a,b,w,e.document,d))}catch(H){throw w.isFormOpened=!1,H;}}ae(C)})},onb=function(a,b){return y(function(c){return c.return(new Promise(function(d,
e){Number.isInteger(Number(a))&&Number(a)>0?(e=knb(b!=null?b:"")+"/aloha_form_properties?productId="+a,lnb(e,function(f){f=f.target;var g=null;try{g=Csa(mnb,JSON.stringify(f.getResponseJson(")]}'\n")))}catch(k){f=new mnb,g=nnb(),g=Yo(g,13,!1),g=Yo(g,14,!0),g=Yo(g,15,!0),g=Yo(g,20,!1),g=Mi(f,Xs,1,g)}d(g)},"GET","",{},2E3,!0)):e(Error("qf`"+a))}))})},knb=function(a){return Xmb(a)?a:"https://www.google.com/tools/feedback"},pnb=function(a){return a.toLocaleString("en-US",{timeZone:"America/Los_Angeles"})+
" (US Pacific time)"},qnb=function(a){a&1&&(K(0,"button",6,1),M(2,"mat-icon",7),L());if(a&2){a=P();var b=qg(2);xg(a.buttonSize);I("matTooltip",a.buttonLabel)("matMenuTriggerFor",b);If("aria-label",a.buttonLabel);B(2);I("svgIcon",a.buttonIcon)}},rnb=function(a){a&1&&(K(0,"div",5),Q(1),L());a&2&&(a=P(),B(),yg(a.header))},snb=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(2).$implicit,I("svgIcon",a.icon))},tnb=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(2).$implicit,B(),yg(a.hintText))},unb=function(a){a&
1&&M(0,"mat-icon",7);a&2&&(a=P(2).$implicit,I("svgIcon",a.icon))},vnb=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(2).$implicit,B(),yg(a.hintText))},wnb=function(a){if(a&1){var b=t();K(0,"button",12);N("click",function(d){u(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,e))})("mouseup",function(d){u(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,e))});F(1,unb,1,1,"mat-icon",7);Q(2);F(3,vnb,2,1,"span",9);L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;xg(c.className);I("disabled",
a.disabled);If("title",a.title);B();G(a.icon?1:-1);B();S(" ",a.label," ");B();G(a.hintText?3:-1)}},xnb=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(d){u(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,e))})("mouseup",function(d){u(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,e))});K(1,"span",14);M(2,"mat-icon",15);L();Q(3);L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;xg(c.className);wg("b-menu-item-checked",a.selected);I("disabled",a.disabled);If("title",a.title);
B(3);S(" ",a.label," ")}},ynb=function(a,b){a&1&&(F(0,wnb,4,7,"button",10),F(1,xnb,4,7,"button",11));a&2&&(a=b.$implicit,G(a.type==="action"?0:-1),B(),G(a.type==="select"?1:-1))},znb=function(a){a&1&&(K(0,"button",8),F(1,snb,1,1,"mat-icon",7),Q(2),F(3,tnb,2,1,"span",9),L(),K(4,"mat-menu",null,2),Nf(6,ynb,2,2,null,null,Lf),L());if(a&2){a=qg(5);var b=P().$implicit;I("matMenuTriggerFor",a);B();G(b.icon?1:-1);B();S(" ",b.label," ");B();G(b.hintText?3:-1);B(3);Of(b.items)}},Anb=function(a){a&1&&M(0,"mat-icon",
7);a&2&&(a=P(3).$implicit,I("svgIcon",a.icon))},Bnb=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(3).$implicit,B(),yg(a.hintText))},Cnb=function(a){if(a&1){var b=t();K(0,"button",12);N("click",function(c){u(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))})("mouseup",function(c){u(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))});F(1,Anb,1,1,"mat-icon",7);Q(2);F(3,Bnb,2,1,"span",9);L()}a&2&&(a=P(2).$implicit,xg(a.className),I("disabled",a.disabled),If("title",a.title),B(),G(a.icon?
1:-1),B(),S(" ",a.label," "),B(),G(a.hintText?3:-1))},Dnb=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(c){u(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))})("mouseup",function(c){u(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))});K(1,"span",14);M(2,"mat-icon",15);L();Q(3);L()}a&2&&(a=P(2).$implicit,xg(a.className),wg("b-menu-item-checked",a.selected),I("disabled",a.disabled),If("title",a.title)("aria-label",a.label+" results per page"),B(3),S(" ",a.label," "))},
Enb=function(a){a&1&&(F(0,Cnb,4,7,"button",10),F(1,Dnb,4,8,"button",11));a&2&&(a=P().$implicit,G(a.type==="action"?0:-1),B(),G(a.type==="select"?1:-1))},Fnb=function(a,b){a&1&&(F(0,znb,8,4),F(1,Enb,2,2));a&2&&(a=b.$implicit,G(a.type==="submenu"?0:-1),B(),G(a.type!=="submenu"?1:-1))},Gnb=function(a){var b=a.userIsExternal;a=a.issueIsExternal;return b&&a},Hnb=function(a){a=a.bugId+"-comment"+a.comment;var b,c,d=(b=window)==null?void 0:(c=b.location)==null?void 0:c.href;b=d?encodeURIComponent(d):"";
return"http://reportcontent.google.com/troubleshooter?product=issue_tracker&content_id="+a+"&url="+b},Inb=function(a,b){a&1&&(K(0,"div",17)(1,"h4",34),Q(2,"Summary"),L(),K(3,"p",35),Q(4),L()());a&2&&(B(4),yg(b))},Jnb=function(a){if(a&1){var b=t();K(0,"th",36)(1,"mat-checkbox",37);T(2,"async");T(3,"async");N("change",function(c){u(b);var d=P();return v(d.toggleAll(c))});L()()}a&2&&(a=P(),B(),I("checked",U(2,2,a.areAllChecked$))("indeterminate",!U(3,4,a.areAllChecked$)&&a.checkedIssueIds.size>0))},
Knb=function(a,b){if(a&1){var c=t();K(0,"td",38)(1,"mat-checkbox",39);T(2,"async");N("change",function(d){var e=u(c).$implicit,f=P(),g;((g=d==null?void 0:d.checked)!=null?g:!f.checkedIssueIds.has(e.id))?f.checkedIssueIds.add(e.id):f.checkedIssueIds.delete(e.id);return v()});L()()}a&2&&(a=b.$implicit,b=P(),B(),I("checked",U(2,1,Cs(b.checkedIssueIds,a.id))))},Lnb=function(a){a&1&&(K(0,"th",36),Q(1," Title "),L())},Mnb=function(a,b){a&1&&(K(0,"td",38),M(1,"b-issue-title-cell",40),T(2,"async"),L());a&
2&&(a=b.$implicit,B(),I("issue",U(2,2,a.issue$))("enableHovercard",!0))},Nnb=function(a){a&1&&(K(0,"th",36),Q(1," Phase "),L())},Onb=function(a){a&1&&(K(0,"span",41),Q(1),L());if(a&2){a=P();P(2);B();var b;b=((b=a.snapshot[0])==null?void 0:b.status)==="DUPLICATE"?"Duplicate":(b=Gr(a))?at.get(b):"";yg(b)}},Pnb=function(a){a&1&&F(0,Onb,2,1,"span",41);a&2&&(P(2),G(0))},Qnb=function(a,b){a&1&&(K(0,"td",38),F(1,Pnb,1,1),T(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=U(2,1,a.issue$))?1:-1,c)}},Rnb=
function(a){a&1&&(K(0,"th",42),Q(1," Modified "),L())},Snb=function(a){a&1&&M(0,"b-formatted-date-time",44);if(a&2){a=P();var b;I("timestamp",((b=a.aggregatedData==null?null:a.aggregatedData.modifiedTimeMicros)!=null?b:0)/1E3)("mode","relativepasttiny")("paddingLeftPx",4)}},Tnb=function(a){a&1&&F(0,Snb,1,3,"b-formatted-date-time",44);a&2&&(P(2),G(0))},Unb=function(a,b){a&1&&(K(0,"td",43),F(1,Tnb,1,1),T(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=U(2,1,a.issue$))?1:-1,c)}},Vnb=function(a){a&
1&&M(0,"th",36)},Wnb=function(a,b){if(a&1){var c=t();K(0,"td",38)(1,"b-actions-menu",45);N("click",function(d){u(c);return v(d.stopPropagation())});L()()}a&2&&(a=b.$implicit,b=P(),B(),I("menuItems",b.getMenuItems(a)))},Xnb=function(a){a&1&&M(0,"tr",46)},Ynb=function(a,b){a&1&&(M(0,"tr",47),T(1,"async"));a&2&&(a=b.$implicit,b=P(),wg("closed",b.isClosed(U(1,2,a.issue$))))},Znb=function(a,b){a&1&&(K(0,"a",32),Q(1," View as search results "),L());a&2&&I("routerLink",b.path)("queryParams",b.params)},$nb=
function(a){if(a&1){var b=t();K(0,"secondary-footer",49);N("cancelAction",function(){u(b);var c=P(2);return v(c.cancelAction())})("finalizeAction",function(c){u(b);var d=P(2);return v(d.finalizeSecondaryAction(c))});L()}a&2&&(a=P(2),I("selectedTriageAction",a.selectedTriageAction))},aob=function(a){if(a&1){var b=t();K(0,"triage-action-selector",50);N("onSelect",function(d){u(b);var e=P(2);return v(e.openSecondaryActionFooter(d.key))});L();K(1,"button",51);T(2,"async");T(3,"async");N("click",function(){u(b);
var d=P(2);return v(d.openDupeDialog())});Zf(4);T(5,"async");Q(6);L()}if(a&2){a=P();var c=P();I("phase",a);B();I("disabled",!U(2,3,c.hasAclToEdit$)||!U(3,5,c.checkedIssueIds.size$));a=U(5,7,c.checkedIssueIds.size$)||0;B(5);S(" Mark ",a===1?"1 issue":a>1?a+" issues":""," as duplicate ")}},bob=function(a){a&1&&F(0,$nb,1,1,"secondary-footer",48)(1,aob,7,9);a&2&&(a=P(),G(a.displaySecondaryFooter?0:1))},cob=function(a){a&1&&(K(0,"div",5),M(1,"b-spinner"),L())},dob=function(a){a&1&&M(0,"code",16);a&2&&
(a=P(2).$implicit,I("innerHtml",a.formattingModeDiff,Me))},eob=function(a){a&1&&(K(0,"code",17),Q(1),L());a&2&&(a=P(2).$implicit,B(),S(" ",a.formattingMode," "))},fob=function(a){a&1&&(K(0,"p",15),Q(1," Formatting: "),F(2,dob,1,1,"code",16)(3,eob,2,1,"code",17),L());a&2&&(a=P(3),B(2),G(a.diffView?2:3))},gob=function(a){if(a&1){var b=t();K(0,"div")(1,"span",18)(2,"b-person-hovercard",19);T(3,"omitObfuscatedEmail");Q(4);T(5,"appendDomain");L()();K(6,"a",20);N("click",function(c){u(b);var d=P().$implicit,
e=P(2);return v(e.updateUrl(c,d.version))});Q(7);L()()}a&2&&(a=P().$implicit,P(2),B(2),I("email",U(3,7,wm(a.lastEditorUser))),B(2),S(" <",U(5,9,wm(a.lastEditorUser)),"> "),B(2),If("aria-label",Eg("Comment version ",a.version)),I("id",Eg("bv2-edit-issue-comment-",a.version)),B(),S(" #",a.version))},hob=function(a){a&1&&(K(0,"div",21),Q(1),L());a&2&&(a=P(2).$implicit,B(),yg(a.preview))},iob=function(a){a&1&&(K(0,"div",22),Q(1,"Comment deleted."),L())},job=function(a){a&1&&(K(0,"div",23),Q(1,"Comment history restricted."),
L())},kob=function(a){a&1&&(F(0,hob,2,1,"div",21),F(1,iob,2,0,"div",22),F(2,job,2,0,"div",23));a&2&&(a=P().$implicit,G(a.restricted||a.deleted?-1:0),B(),G(!a.restricted&&a.deleted?1:-1),B(),G(a.restricted?2:-1))},lob=function(a){a&1&&(K(0,"div",24),Q(1,"Comment deleted."),L())},mob=function(a){a&1&&(M(0,"div",26),T(1,"async"));if(a&2){a=P(2).$implicit;var b=P(2);wg("codefont",U(1,3,b.codefont.codefont$));I("innerHtml",a.unlinkifiedComment,Me)}},nob=function(a){a&1&&(M(0,"div",26),T(1,"async"));if(a&
2){a=P(2).$implicit;var b=P(2);wg("codefont",U(1,3,b.codefont.codefont$));I("innerHtml",a.diff,Me)}},oob=function(a){a&1&&(K(0,"div",23),Q(1," This comment is not available due to present or past restrictions on the comment. "),L())},pob=function(a){a&1&&(F(0,lob,2,0,"div",24),F(1,mob,2,5,"div",25),F(2,nob,2,5,"div",25),F(3,oob,2,0,"div",23));if(a&2){a=P().$implicit;var b=P(2);G(!a.restricted&&a.deleted?0:-1);B();G(b.diffView||a.restricted||a.deleted?-1:1);B();G(!b.diffView||a.restricted||a.deleted?
-1:2);B();G(a.restricted?3:-1)}},qob=function(a,b){if(a&1){var c=t();K(0,"li",9)(1,"div",10);M(2,"b-user-image",11);L();K(3,"div",12);N("click",function(){var d=u(c).$implicit;return v(d.open=!d.open)});M(4,"b-user-display",13)(5,"b-formatted-date-time",14);F(6,fob,4,1,"p",15);F(7,gob,8,11,"div")(8,kob,3,3);L();F(9,pob,4,4);L()}a&2&&(a=b.$implicit,P(2),wg("comment-version-open",a.open),B(2),I("email",wm(a.lastEditorUser)),B(2),I("model",a.lastEditorUser),B(),I("timestamp",a.lastModified),B(),G(a.deleted?
-1:6),B(),G(a.open?7:8),B(2),G(a.open?9:-1))},rob=function(a){a&1&&(K(0,"ul",6),Nf(1,qob,10,8,"li",8,Lf),L());a&2&&(a=P(),B(),Of(a.history))},uob=function(a,b){var c=new sob;a=bt(c,a,b);tob(c,a);c=a.map(function(d){var e=d[0];d=d[1];switch(e){case -1:return Eh("span",{"class":"diff-removed"},d);case 1:return Eh("span",{"class":"diff-added"},d);case 0:return Eh("span",{"class":void 0},d);default:throw Error("sf`"+e);}});return Ch(c)},vob=function(a){var b;return((b=a.entityStatus)==null?void 0:b.status)===
"DELETED"},wob=function(a){a&1&&(K(0,"div",2),Q(1," You are about to access a file marked as restricted. Access will be logged and audited. You must delete any downloaded files from local storage when finished. "),K(2,"a",12),Q(3," Learn more "),L()());a&2&&(a=P(2),B(2),I("href",a.getRestrictedAccessHelpLink(),Ne))},yob=function(a){a&1&&(Tf(0),F(1,wob,4,1,"div",2),Uf());a&2&&(a=P(),B(),G(xob(a)?1:-1))},zob=function(a){a&1&&(K(0,"div",2)(1,"span",13),Q(2," You do not have access to view this attachment. "),
L()())},Aob=function(a){a&1&&M(0,"mat-spinner",8)},Dob=function(a,b,c,d){if(ct.REPORTING_ENABLED&&Bob(a)){if(b==="heartbeat"){var e=ct.HEARTBEAT_SAMPLE_RATE;var f="HEARTBEAT"}else if(b==="network_error")e=ct.CRASH_SAMPLE_RATE,f="CRASHED";else throw Error("xf`"+b);if(!(Math.random()>e)){var g=ct.SCF_REPORTING_PRODUCTION_ID;ct.TEST_PRODUCT_IDS.includes(a)&&(g=ct.SCF_REPORTING_TEST_ID);var k=void 0,l=void 0;if(ct.ENABLE_COLLECTING_NETWORK_INFO){var r;l=(r=navigator)==null?void 0:r.connection;var w,x;
k=(x=(w=l==null?void 0:l.type)!=null?w:l==null?void 0:l.effectiveType)!=null?x:"unknown";var C;l=(C=l==null?void 0:l.effectiveType)!=null?C:"unknown"}a={type:f,host:window.location.hostname,additionalData:JSON.stringify({productID:a,samplingRate:e,shimOrigin:c,connectionType:k,effectiveConnectionType:l,reportType:b,message:d})};g=ct.REPORTING_URL_PREFIX+g;a=JSON.stringify(a);if(Cob.sendReport)Cob.sendReport(g,a);else try{var H,J;(J=(H=navigator).sendBeacon)==null||J.call(H,g,a)}catch(O){}}}},Bob=
function(a){return ct.PRODUCT_IDS_ALLOWLIST.includes(a)||ct.TEST_PRODUCT_IDS.includes(a)},Eob=function(a,b,c,d){var e,f,g,k,l,r,w,x,C,H,J,O,R;return y(function(V){switch(V.nextAddress){case 1:if(!(a instanceof Error&&a.message===Error("yf").message)){V.jumpTo(0);break}e=[c,"https://test-h825039400.scf.usercontent.goog/test-product/shim.html","https://0test-h825039400.scf.usercontent.goog/test-product/shim.html","https://safecontentframe.static.usercontent.goog","https://translate.goog/"];f={fetch:{}};
g=[];f.additionalMessage=d;Wd(V,3);k=m(e);l=k.next();for(r={};!l.done;r={url$jscomp$298:void 0},l=k.next())r.url$jscomp$298=l.value,g.push(fetch(r.url$jscomp$298,{credentials:"omit",mode:"no-cors",signal:AbortSignal.timeout(1E4)}).then(function(ca){return function(){return{url:ca.url$jscomp$298,result:"success"}}}(r)).catch(function(ca){return function(na){return{url:ca.url$jscomp$298,result:na instanceof Error?na.message:"unknown error"}}}(r)));return z(V,Promise.all(g),5);case 5:w=V.yieldResult;
x=m(w);for(C=x.next();!C.done;C=x.next())J=H=C.value,O=J.url,R=J.result,f.fetch[O]=R;dt(V,4);break;case 3:$d(V);case 4:Dob(b,"network_error",c,JSON.stringify(f)),ae(V)}})},Fob=function(){this.blockSize=-1},et=function(a,b){this.blockSize=-1;this.blockSize=64;this.chunk_=ra.Uint8Array?new Uint8Array(this.blockSize):Array(this.blockSize);this.total_=this.inChunk_=0;this.hash_=[];this.numHashBlocks_=a;this.initHashBlocks_=b;this.w_=ra.Int32Array?new Int32Array(64):Array(64);Gob===void 0&&(ra.Int32Array?
Gob=new Int32Array(Hob):Gob=Hob);this.reset()},Job=function(){et.call(this,8,Iob)},Kob=function(a,b){b=b===void 0?!0:b;var c;return y(function(d){if(d.nextAddress==1)if(b&&((c=window.crypto)==null?0:c.subtle))d=z(d,crypto.subtle.digest("SHA-256",a),3);else{var e=d.return;var f=new Job;f.update(new Uint8Array(a));f=(new Uint8Array(f.digest())).buffer;d=e.call(d,f)}else d=d.return(d.yieldResult);return d})},Oob=function(a){var b=a.useSubtleCrypto===void 0?!0:a.useSubtleCrypto;var c=a.parts;var d,e,
f,g;return y(function(k){if(k.nextAddress==1){if(c.length===0)throw Error("Bf");d=[];for(e=0;e<c.length;e++)f=c[e],typeof f==="string"?d.push(Lob.encode(f).buffer):d.push(f),e<c.length-1&&d.push(Mob);g=Nob.apply(null,q(d));return z(k,Kob(g,b),2)}return k.return(k.yieldResult)})},Pob=function(){var a=new Uint8Array(10);crypto.getRandomValues(a);return a},Qob=function(a){return a.reduce(function(b,c){return BigInt(256)*b+BigInt(c)},BigInt(0)).toString(36)},Nob=function(){for(var a=$c.apply(0,arguments),
b=0,c=m(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=m(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(new Uint8Array(d),c),c+=d.byteLength;return b.buffer},Rob=function(a){var b=a.product;var c=a.trustedOrigin;var d=a.salt;var e=a.useSubtleCrypto===void 0?!0:a.useSubtleCrypto;var f,g,k;return y(function(l){if(l.nextAddress==1)return f=d?d:new ArrayBuffer(0),z(l,Oob({useSubtleCrypto:e,parts:[b,f,c]}),2);g=l.yieldResult;k=new Uint8Array(g);return l.return(Qob(k).padStart(50,
"0").slice(0,50))})},Sob=function(a){for(var b=a.trustedOrigin,c=a.product,d=a.fileHash+"-h"+a.version+".scf.usercontent.goog",e=m(d.split(".")),f=e.next();!f.done;f=e.next());a=a.cache?"&cache=1":"";return"https://"+d+"/"+c+"/shim.html?origin="+encodeURIComponent(b)+a},Tob=function(){var a=window.origin;return typeof a==="string"&&(a.startsWith("https://")||a.startsWith("http://")||a.startsWith("chrome-extension://"))},Uob=function(a,b){return function(c){var d=new Promise(function(e,f){setTimeout(function(){var g;
return y(function(k){if(k.nextAddress==1){if(!b())return k.jumpTo(2);g=e;return z(k,a,3)}if(k.nextAddress!=2)return g(k.yieldResult),k.return();f(Error("Cf"));ae(k)})},c)});return Promise.race([a,d])}},Vob=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),wg("muted",a.isGreyedOut),B(),S(" ",a.displayName))},Wob=function(a){if(a&1){var b=t();K(0,"a",2);N("click",function(c){u(b);var d=P();return v(d.handleClick(c))});Q(1);L()}a&2&&(a=P(),I("href",a.linkUrl,Ne)("rel",a.EXTERNAL_LINK_REL),B(),S(" ",
a.displayName))},Xob=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),If("aria-label",a.expandableTabsTitle),B(),yg(a.expandableTabsTitle))},Yob=function(a){a&1&&M(0,"mat-icon",9)},$ob=function(a){a&1&&Vf(0,10);if(a&2){a=P().$implicit;P();var b=qg(14);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,Zob,a))}},apb=function(){},bpb=function(a){a&1&&E(0,apb,0,0,"ng-template")},cpb=function(a){a&1&&E(0,bpb,1,0,null,11);a&2&&(a=P(2).$implicit,I("ngTemplateOutlet",a.tabIconTemplate))},dpb=function(a){a&
1&&(F(0,cpb,1,1),Vf(1,10));if(a&2){a=P().$implicit;var b=P(),c=qg(14);G(b.showIcons&&a.tabIconTemplate?0:-1);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ig(3,Zob,a))}},fpb=function(a,b){if(a&1){var c=t();K(0,"button",8);T(1,"async");T(2,"async");T(3,"async");N("click",function(){var d=u(c).$implicit,e=P();return v(epb(e,d.key))});F(4,Yob,1,0,"mat-icon",9);T(5,"async");F(6,$ob,1,4,"ng-container",10);T(7,"async");Kf(8,dpb,2,5);L()}a&2&&(a=b.$implicit,b=P(),wg("has-icon",!(!b.showIcons||!a.tabIconTemplate))("expanded",
!!U(1,11,Cs(b.internalExpandedTabs,a.key))),If("aria-controls",Eg("expandable-tabs-",a.key,"-content"))("aria-label",a.ariaLabel)("aria-expanded",!!U(2,13,Cs(b.internalExpandedTabs,a.key)))("aria-selected",!!U(3,15,Cs(b.internalExpandedTabs,a.key))),B(4),G(b.showIcons&&U(5,17,Cs(b.internalExpandedTabs,a.key))?4:-1),B(2),G(U(7,19,Cs(b.internalExpandedTabs,a.key))?6:8))},gpb=function(a,b){if(a&1){var c=t();K(0,"button",13);N("click",function(){u(c);var d=P(2);return v(d.toggleAll())});Q(1);L()}a&2&&
(a=P(2),wg("expandable-tabs-hide-all",b.allTabsExpanded)("expandable-tabs-show-all",!b.allTabsExpanded),If("aria-label",(b.allTabsExpanded?"Hide all":"Show all")+" "+a.ariaLabel),B(),S(" ",b.allTabsExpanded?"Hide all":"Show all"," "))},ipb=function(a){a&1&&(F(0,gpb,2,6,"button",12),T(1,"async"));if(a&2){var b;a=P();G((b=Ig(3,hpb,U(1,1,a.allTabsExpanded$)))?0:-1,b)}},jpb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(2);return v(c.hideAll())});Q(1," Hide ");L()}a&
2&&(a=P(2),If("aria-label","Hide "+a.ariaLabel))},kpb=function(a){if(a&1){var b=t();F(0,jpb,2,1,"button",14);T(1,"async");K(2,"button",15);N("click",function(){u(b);P().showAllClicked.emit(void 0);return v()});Q(3," Show all ");M(4,"mat-icon",16);L()}if(a&2){a=P();var c;G(((c=U(1,2,a.internalExpandedTabs.size$))!=null?c:0)>0?0:-1);B(2);If("aria-label","Show all "+a.ariaLabel)}},lpb=function(){},mpb=function(a){a&1&&E(0,lpb,0,0,"ng-template")},npb=function(a){a&1&&E(0,mpb,1,0,null,11);a&2&&(a=P(3).$implicit,
I("ngTemplateOutlet",a.tabIconTemplate))},opb=function(a){a&1&&(K(0,"h4"),F(1,npb,1,1),Vf(2,10),L());if(a&2){a=P(2).$implicit;var b=P(),c=qg(14);B();G(b.showIcons&&a.tabIconTemplate?1:-1);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ig(3,Zob,a))}},ppb=function(a){a&1&&M(0,"span",20)},qpb=function(a){a&1&&M(0,"span",20)},rpb=function(){},spb=function(a){a&1&&E(0,rpb,0,0,"ng-template")},tpb=function(a){a&1&&E(0,spb,1,0,null,11);a&2&&(a=P(2).$implicit,I("ngTemplateOutlet",a.tabContentTemplate))},
vpb=function(a){a&1&&(K(0,"div",19),F(1,opb,3,5,"h4"),T(2,"async"),Kf(3,ppb,1,0,"span",20),E(4,qpb,1,0,"ng-template",null,1,Mg),F(6,tpb,1,1),L());if(a&2){a=P().$implicit;var b=P();xg(Eg("expandable-tab-content ",a.key));I("id",Eg("expandable-tabs-",a.key,"-content"));B();var c;G(((c=U(2,7,b.visibleExpandedTabs$))!=null?c:Hg(9,upb)).length>1?1:3);B(5);G(a.tabContentTemplate?6:-1)}},wpb=function(a,b){a&1&&(F(0,vpb,7,10,"div",18),T(1,"async"));a&2&&(a=b.$implicit,b=P(),G(U(1,1,Cs(b.internalExpandedTabs,
a.key))?0:-1))},xpb=function(){},ypb=function(a){a&1&&E(0,xpb,0,0,"ng-template")},zpb=function(a){a&1&&E(0,ypb,1,0,null,11);a&2&&(a=P().tab,I("ngTemplateOutlet",a.tabHeaderTemplate))},Apb=function(a){a&1&&Q(0);a&2&&(a=P().tab,S(" ",a.key," "))},Bpb=function(a,b){a&1&&F(0,zpb,1,1)(1,Apb,1,1);a&2&&G(b.tab.tabHeaderTemplate?0:1)},Cpb=function(a){a&1&&(K(0,"mat-icon",9),Q(1),L());a&2&&(a=P(2),B(),yg(a.actionBtnIcon))},Dpb=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();
return v(c.action.emit())});K(1,"span",7);Q(2);E(3,Cpb,2,1,"mat-icon",8);L()()}a&2&&(a=P(),B(2),S(" ",a.actionBtnText," "),B(),I("ngIf",a.actionBtnIcon))},Epb=function(a){if(a&1){var b=t();K(0,"onedev-feature-tooltip-body",1);N("action",function(){u(b);var c=P();return v(c.action.emit())})("dismiss",function(){u(b);var c=P();c.hideFeatureTooltip();c.dismiss.emit();return v()});cg(1);L()}a&2&&(a=P(),I("actionBtnText",a.actionBtnText)("actionBtnIcon",a.actionBtnIcon)("color",a.color)("pointerPosition",
a.pointerPosition)("widthOffset",a.widthOffset))},Gpb=function(a){a&1&&(K(0,"onedev-feature-tooltip-controller")(1,"onedev-feature-tooltip",4)(2,"p",5),Q(3,"Attachment analysis"),L(),Q(4," See agent-generated attachment analysis alongside your files. "),L()());a&2&&(a=P(),B(),I("customPositions",Jg(2,Fpb,a.TOOLTIP_POSITIONS.BOTTOM_LEFT,a.TOOLTIP_POSITIONS.TOP_LEFT))("tooltipId",a.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID))},Ipb=function(a){a&1&&(Q(0),T(1,"async"));if(a&2){a=P().$implicit;var b=P(),
c;S(" ",(c=a.customDisplayName)!=null?c:U(1,1,Hpb(b,a.category))," ")}},Jpb=function(a){a&1&&(K(0,"span",25),M(1,"b-actions-menu",28),L());a&2&&(P(),a=ag(25),B(),I("menuItems",a)("buttonLabel","Enrichment actions")("matTooltip","Enrichment actions"))},Kpb=function(a){a&1&&M(0,"b-spinner")},Lpb=function(a){a&1&&M(0,"b-markdown-format-presenter",29);a&2&&(P(2),a=ag(30),I("content",a.formattedContent.markdownFormat))},Mpb=function(a){a&1&&M(0,"b-literal-format-presenter",29);a&2&&(P(2),a=ag(30),I("content",
a.formattedContent.literalFormat))},Npb=function(a){a&1&&M(0,"b-plain-format-presenter",29);a&2&&(P(2),a=ag(30),I("content",a.formattedContent.plainFormat))},Opb=function(a){a&1&&(F(0,Lpb,1,1,"b-markdown-format-presenter",29),F(1,Mpb,1,1,"b-literal-format-presenter",29),F(2,Npb,1,1,"b-plain-format-presenter",29));a&2&&(P(),a=ag(30),G(a.formattedContent.markdownFormat?0:-1),B(),G(a.formattedContent.literalFormat?1:-1),B(),G(a.formattedContent.plainFormat?2:-1))},Qpb=function(a){if(a&1){var b=t();K(0,
"table",8)(1,"tr",9)(2,"td",10);M(3,"b-user-display",11)(4,"mat-icon",12);K(5,"onedev-hovercard",null,0)(7,"div",13)(8,"div",14)(9,"span",15);Q(10);T(11,"async");M(12,"br")(13,"br");Q(14);T(15,"async");L()()()()();K(16,"td",16)(17,"span",17);M(18,"b-formatted-date-time",18);L();K(19,"button",19);N("click",function(){u(b);var e=P().$implicit,f=P();return v(f.copyContent(e))});M(20,"mat-icon",20);L();K(21,"button",21);N("click",function(){u(b);var e=P().$implicit,f=P();return v(f.trackThumbsUp(e))});
M(22,"mat-icon",22);L();K(23,"button",23);N("click",function(){u(b);var e=P().$implicit,f=P();return v(f.trackThumbsDown(e))});M(24,"mat-icon",24);L();Zf(25);F(26,Jpb,2,3,"span",25);L()();K(27,"tr",26)(28,"td",27);F(29,Kpb,1,0,"b-spinner");Zf(30);F(31,Opb,3,3);L()()()}if(a&2){var c=qg(6);a=P().$implicit;var d=P();B(3);I("model",a.author);B();I("onedevHovercardTrigger",c)("onedevHovercardActive",!0)("onedevHovercardConfig",d.CATEGORY_INFO_HOVERCARD_CONFIG);B(6);S(" ",U(11,16,Hpb(d,a.category))," ");
B(4);S(" ",U(15,18,Ppb(d,a.category))," ");B(4);I("timestamp",a.timestamp);B(3);I("disabled",d.hasReacted(a));B();wg("has-reacted-icon",d.thumbsUpClicked(a));B();I("disabled",d.hasReacted(a));B();wg("has-reacted-icon",d.thumbsDownClicked(a));B();c=$f(d.categoryToActionMenuItems.get(a.category));B();G(c&&c.length>0?26:-1);B(3);G(d.isLoading(a.category)?29:-1);B();c=$f(d.enrichmentCategoryToContent.get(a.category));B();G(c&&!d.isLoading(a.category)?31:-1)}},Rpb=function(a,b){a&1&&(K(0,"expandable-tab",
3),E(1,Ipb,2,3,"ng-template",6)(2,Qpb,32,22,"ng-template",7),L());a&2&&(a=b.$implicit,b=P(),I("key",a.category)("ariaLabel","Toggle "+a.category+" attachment enrichment category for attachment id "+b.attachmentId))},Spb=function(a){return a.issueId+"_"+a.attachmentId+"_"+a.category},Vpb=function(a){a&1&&(K(0,"span"),Q(1),K(2,"b"),Q(3),L(),Q(4," on "),K(5,"b"),Q(6),T(7,"date"),L(),Q(8,". "),L());a&2&&(a=P(4),B(),S(" Currently, the ",a.contentType," is scheduled for deletion in "),B(2),yg(Tpb(Upb(a).getTime(),
!0)),B(3),yg(Lg(7,3,Upb(a),"longDate")))},Wpb=function(a){a&1&&(Q(0," The retention has "),K(1,"b"),Q(2,"expired"),L(),Q(3),K(4,"b"),Q(5),T(6,"date"),L(),Q(7,". "));a&2&&(a=P(4),B(3),S(" and the ",a.contentType," was scheduled for deletion on "),B(2),yg(Lg(6,2,Upb(a),"longDate")))},Xpb=function(a){a&1&&(K(0,"span")(1,"b"),Q(2,"Retention:"),L(),Q(3),K(4,"b"),Q(5),L(),Q(6," from the last modification of the issue. "),F(7,Vpb,9,6,"span")(8,Wpb,8,5),L());a&2&&(a=P(3),B(3),S(" This ",a.contentType," has a retention period of "),
B(2),yg(a.getRetentionPeriod()),B(2),G(Upb(a).getTime()<(new pm).getTime()?8:7))},Ypb=function(a){a&1&&(K(0,"b"),Q(1,"Retention:"),L(),Q(2));a&2&&(a=P(3),B(2),S(" This ",a.contentType," has an indefinite retention period. "))},Zpb=function(a){a&1&&(Q(0),K(1,"b"),Q(2,"overridden"),L(),Q(3," retention period set to match the issue retention period. "));a&2&&(a=P(3),S(" The ",a.contentType," has an "))},$pb=function(a){a&1&&(K(0,"p"),F(1,Xpb,9,3,"span")(2,Ypb,3,1),F(3,Zpb,4,1),L());a&2&&(a=P(2),B(),
G(a.retentionState&&!a.retentionState.scheduledDeletionTime?2:1),B(2),G(a.retention===a.retentionModel.INDEFINITE?3:-1))},aqb=function(a){a&1&&(K(0,"div",5)(1,"p")(2,"b"),Q(3,"Restricted Access:"),L(),Q(4),K(5,"a",6),Q(6," Learn More "),L()(),F(7,$pb,4,2,"p"),L());a&2&&(a=P(),B(4),S(" This ",a.contentType," is only available to users with the appropriate permissions. "),B(),I("rel",a.EXTERNAL_LINK_REL),If("href",a.documentationLinks.getRestrictedAccessHelpLink(),Ne),B(2),G(a.retentionState?7:-1))},
bqb=function(a,b){return new Promise(function(c){var d=function(e){e.source===a.contentWindow&&e.data===b&&(window.removeEventListener("message",d),c(e))};window.addEventListener("message",d)})},dqb=function(a){var b=Vs(document,"IFRAME");if(!b.sandbox)throw Error("Kf");b.sandbox.value="allow-scripts";b.sandbox.supports&&b.sandbox.add&&b.sandbox.supports("allow-downloads")&&b.sandbox.add("allow-downloads");if(cqb==""){var c=vta('<!DOCTYPE html><body><input type="hidden" id="nonce" value="'+Bh(a)+
'" /><script nonce="'+Bh(Fra(document))+'">var g=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},h=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("Cannot find global object");},k=h(this),l=function(a,b){if(b)a:{var c=k;a=a.split(".");for(var d=0;d<a.length-\n1;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&&b!=null&&g(c,a,{configurable:!0,writable:!0,value:b})}},m=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};l("globalThis",function(a){return a||k});/*\n\n Copyright Google LLC\n SPDX-License-Identifier: Apache-2.0\n*/\nvar n=globalThis.trustedTypes,p;function q(){var a=null;if(!n)return a;try{var b=function(c){return c};a=n.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a};var r=function(a){this.g=a};r.prototype.toString=function(){return this.g+""};function t(a){var b;p===void 0&&(p=q());a=(b=p)?b.createScript(a):a;return new r(a)}function u(a){if(a instanceof r)return a.g;throw Error("");};function v(a,b){a.textContent=u(b);var c;b=a.ownerDocument;b=b===void 0?document:b;var d;b=(d=(c=b).querySelector)==null?void 0:d.call(c,"script[nonce]");(c=b==null?"":b.nonce||b.getAttribute("nonce")||"")&&a.setAttribute("nonce",c)};var w=function(a){var b=m.apply(1,arguments),c,d;"evalCspCompatiblyData"in window||(window.evalCspCompatiblyData={index:0});var e=window.evalCspCompatiblyData.index++;window.evalCspCompatiblyData[e]={args:b,callback:function(f,x){c=f;d=x}};b=document.createElement("script");b.async=!1;b.setAttribute("data-index",e);e=\'"use strict";\\v(function(){var idx=parseInt((document.currentScript||Array.prototype.slice.call(document.querySelectorAll("head script[data-index]"),-1)[0]).getAttribute("data-index"),10),curEvalData=evalCspCompatiblyData[idx];delete evalCspCompatiblyData[idx];(function(){var callback=curEvalData.callback;try{callback(true,(\'+\nString(u(a))+"\\n));}catch(ex){callback(false, ex);}}).apply(this, curEvalData.args);})()";e=t(e);v(b,e);e=function(f){c=!1;d=f.error||f};window.addEventListener("error",e);document.head.appendChild(b);window.removeEventListener("error",e);document.head.removeChild(b);if(!c)throw d;return d};var y=document.getElementById("nonce"),z=y?y.value:(new URL(location.href)).searchParams.get("nonce");function A(){if(self.origin)return self.origin=="null";if(location.host!="")return!1;try{return window.parent.escape(""),!1}catch(a){return!0}}\n(function(){if(!A())throw"sandboxing error";var a=new MessageChannel;a.port1.onmessage=function(c){try{var d=w.apply(null,[t("(function("+c.data.paramNames.join(", ")+") {\\n"+c.data.code+"\\n}).apply(null, arguments)")].concat(c.data.values));c.ports[0].postMessage({result:d})}catch(e){c.ports[0].postMessage({error:e.toString()})}};var b="*";location.protocol=="chrome-extension:"&&(b=location.origin);window.parent.postMessage(z,b,[a.port2])})();\n\x3c/script></body>');
a=vh("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=sh(c)}else{c=new Map([["nonce",a]]);var d=wh(cqb).toString();var e=d.split(/[?#]/),f=/[?]/.test(d)?"?"+e[1]:"";a=e[0];d=/[#]/.test(d)?"#"+(f?e[2]:e[1]):"";a=Gqa(a,f,d,c)}Era(b,a);b.style.cssText="border: 0; height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b},eqb=function(){return new Promise(function(a){setTimeout(a,500)})},fqb=function(a){a&1&&M(0,"b-restricted-chip",6);
a&2&&(a=P(),I("label",a.getRestrictedLabel())("retentionState",a.attachment==null?null:a.attachment.piiRetentionState)("contentType","attachment"))},gqb=function(a){a&1&&(K(0,"span",7),M(1,"b-actions-menu",13),L());a&2&&(a=P(),B(),I("menuItems",a.actionMenuItems)("buttonLabel","Attachment actions")("matTooltip","Attachment actions"))},jqb=function(a){if(a&1){var b=t();K(0,"span")(1,"b-conditional-link",14);N("customHandler",function(){u(b);var c=P();return v(c.viewAttachment())});L()()}a&2&&(a=P(),
xg(Eg("bv2-issue-attachment-link ",hqb(a))),B(),I("isGreyedOut",!a.hasViewAccess)("displayName","View")("linkUrl",iqb(a,!1))("linkEnabled",!0)("useCustomHandler",!0))},lqb=function(a){if(a&1){var b=t();K(0,"span")(1,"b-conditional-link",14);N("customHandler",function(){u(b);var c=P();return v(kqb(c))});L()();K(2,"span",15)(3,"button",16);N("click",function(){u(b);var c=P(),d;if((d=c.attachment)==null||!d.attachmentId)throw Error("Lf");d=ft(c.trackerHelpers,c.issueId)+"#attachment"+c.attachment.attachmentId;
c.clipboard.copy(d);c.snackBar.open("Link to attachment copied to clipboard","",{duration:2E3});return v()});M(4,"b-icon",17);L()()}a&2&&(a=P(),xg(Eg("bv2-issue-attachment-link ",hqb(a))),B(),I("isGreyedOut",!a.hasViewAccess)("displayName","Download")("linkUrl",iqb(a,!0))("linkEnabled",!0)("useCustomHandler",!0))},mqb=function(a){a&1&&(K(0,"span",11)(1,"a",18),M(2,"mat-icon",19),L()());a&2&&(a=P(),B(),I("href",a.documentationLinks.getRestrictedAccessHelpLink(),Ne)("disableRipple",!0),B(),I("svgIcon",
"help-outline"))},nqb=function(a){a&1&&(K(0,"div",20),Q(1," You do not have access to this restricted attachment. "),K(2,"a",21),Q(3,"Learn more"),L()());a&2&&(a=P(),B(2),I("href",a.documentationLinks.getRestrictedAccessHelpLink(),Ne))},oqb=function(a){a&1&&M(0,"attachment-preview",12);a&2&&(a=P(),I("issueId",a.issueId)("attachmentId",a.attachment==null?null:a.attachment.attachmentId.toString())("mimeType",a.attachment==null?null:a.attachment.contentType))},pqb=function(a){a&1&&M(0,"b-attachment-enrichments",
22);if(a&2){a=P();var b=P();I("issueId",b.issueId)("attachmentId",b.attachment.attachmentId.toString())("attachmentEnrichments",a)}},qqb=function(a,b){a&1&&F(0,pqb,1,3,"b-attachment-enrichments",22);a&2&&(a=P(),b=a.isActive()&&a.hasViewAccess&&b&&b.length>0,G(b?0:-1))},tqb=function(a){return{eligibilityState:rqb[wi(a,1,void 0,jb)],runMetadata:xi(a,gt,2,jb)?sqb(X(a,gt,2,jb)):void 0}},sqb=function(a){return{runId:a.getRunId(),issueId:String(a.getIssueId()),startTimestamp:bn(X(a,Si,3,jb))}},xqb=function(a){var b=
a.hasMetadata()?sqb(a.getMetadata()):void 0;if(a.hasResults()){a=a.getResults();if(a.hasSummary()){var c=a.getSummary();c={problemIdentificationSection:xi(c,ht,1,jb)?uqb(X(c,ht,1,jb)):void 0,solutionSection:xi(c,ht,2,jb)?uqb(X(c,ht,2,jb)):void 0,codeChangeSection:xi(c,ht,3,jb)?uqb(X(c,ht,3,jb)):void 0}}else c=void 0;if(xi(a,it,2,jb)){var d=X(a,it,2,jb);var e=d.getPrompt();d=Bi(d,jt,2,Ci(),jb);e={prompt:e,steps:d.map(vqb)}}else e=void 0;xi(a,wqb,3,jb)?(d=X(a,wqb,3,jb),d={buildInvocationId:ui(d,1,void 0,
jb),testSpongeInvocationId:ui(d,2,void 0,jb)}):d=void 0;a={summary:c,trajectory:e,validation:d,oclNumber:on(a,4,jb)?String(pn(a,4,void 0,jb)):void 0}}else a=void 0;return{metadata:b,results:a}},uqb=function(a){return{entries:[].concat(q(a.getEntriesList()))}},vqb=function(a){var b=a.getText();a=Bi(a,kt,2,Ci(),jb);return{text:b,functionCalls:a.map(yqb)}},yqb=function(a){return{name:a.getName(),arguments:Object.fromEntries(vc(a,2,Vb,jb).entries()),outputs:Object.fromEntries(vc(a,3,Vb,jb).entries())}},
Aqb=function(a){return{issueRunStatuses:Bi(a,lt,1,Ci(),jb).map(zqb)}},zqb=function(a){return{issueId:String(a.getIssueId()),runId:a.getRunId(),runStatus:Bqb[wi(a,3,void 0,jb)]}},Cqb=function(a,b){return Math.min(a,b)},Dqb=function(a,b){return Math.pow(2,a)*b},Eqb=function(){var a={initialInterval:6E4,maxRetries:9};a=typeof a==="number"?{initialInterval:a}:a;var b=a.initialInterval,c=a.maxRetries===void 0?Infinity:a.maxRetries,d=a.maxInterval===void 0?Infinity:a.maxInterval,e=a.shouldRetry===void 0?
function(){return!0}:a.shouldRetry,f=a.resetOnSuccess===void 0?!1:a.resetOnSuccess,g=a.backoffDelay===void 0?Dqb:a.backoffDelay;return function(k){return ne(function(){var l=0;return k.pipe(wla(function(r){return r.pipe(ala(function(w){var x=l++;return Xha(function(){return x<c&&e(w)},re(Cqb(g(x,b),d)),de(w))}))}),Af(function(){f&&(l=0)}))})}},Fqb=function(a){if(a&1){var b=t();K(0,"button",1);N("click",function(){u(b);var c=P();return v(c.openSidebar())});M(1,"mat-icon",2);Q(2," Ask Production Agent ");
L()}},Hqb=function(a){if(a&1){var b=t();K(0,"button",17,1);N("click",function(){u(b);var c=P(2);return v(Gqb(c))});Q(2," Edit ");L()}},Iqb=function(a,b){a&1&&(M(0,"b-user-display",18),K(1,"onedev-hovercard",null,2),M(3,"b-issue-person-card",19),T(4,"async"),L(),Q(5," created issue "));if(a&2){a=qg(2);var c=P(2);I("onedevHovercardTrigger",a)("model",b);B(3);var d;I("email",(d=U(4,3,c.originalAuthorEmail$))!=null?d:"")}},Jqb=function(a,b){a&1&&(Q(0," on behalf of "),M(1,"b-user-display-name",20),T(2,
"emailToUser"));a&2&&(B(),I("user",U(2,2,b))("showEmail",!1))},Kqb=function(a){a&1&&(F(0,Jqb,3,4),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.onBehalfOfEmail$))?0:-1,b)}},Lqb=function(a,b){if(a&1){var c=t();K(0,"a",21);N("click",function(d){var e=u(c);P(2).issueReferenceResolver.visit({issueId:e,elementId:"comment1",event:d});return v()});Q(1);L()}a&2&&(a=P(),P(),I("routerLinkObj",X4a(b,{comment:1})),If("aria-label","Comment number"+a.commentNumber),B(),S(" #",a.commentNumber))},Mqb=function(a,
b){a&1&&(Q(0," by "),M(1,"b-user-display",18),K(2,"onedev-hovercard",null,3),M(4,"b-issue-person-card",19),L());if(a&2){a=qg(3);B();I("onedevHovercardTrigger",a)("model",b);B(3);var c;I("email",(c=b.emailAddress)!=null?c:"")}},Nqb=function(a){a&1&&(K(0,"span",12),T(1,"async"),Q(2," \u2022 Edited "),F(3,Mqb,5,3),T(4,"async"),L());if(a&2){var b;a=P(2);I("matTooltip",U(1,2,a.editedTooltipText$));B(3);G((b=U(4,4,a.lastNonCreatorCommentEditorUser$))?3:-1,b)}},Oqb=function(a){a&1&&(K(0,"p",16),Q(1," Description has been deleted. "),
L())},Pqb=function(a){if(a&1){var b=t();K(0,"b-restricted-comment-placeholder",23);T(1,"async");N("onConfirm",function(){u(b);var c=P(),d=P(3),e=P();return v(e.loadRestrictedComment(c,d))});L()}a&2&&(a=P(5),I("disabled",!U(1,1,a.mayReadPii$)))},Qqb=function(a){a&1&&(F(0,Pqb,2,3,"b-restricted-comment-placeholder",22),T(1,"async"));a&2&&(a=P(4),G(U(1,1,a.shouldShowRestrictedPlaceholder$)?0:-1))},Rqb=function(a){a&1&&(F(0,Qqb,2,3),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.id$))?0:-1,b)}},Sqb=function(a,
b){a&1&&(M(0,"b-note-container",25),T(1,"async"),T(2,"async"),T(3,"async"));if(a&2){a=P();var c=P(4),d,e;I("issueId",a)("issueAccessLevel",U(1,5,c.accessLevel$))("note",b)("formattingMode",(d=U(2,7,c.formattingMode$))!=null?d:c.FormattingMode.PLAIN)("canEditComment",(e=U(3,9,c.canEditComment$))!=null?e:!1)}},Tqb=function(a){a&1&&(F(0,Sqb,4,11,"b-note-container",25),T(1,"async"),T(2,"async"));if(a&2){var b;a=P(4);G((b=U(1,1,a.hasDescription$)&&U(2,3,a.firstNote$))?0:-1,b)}},Uqb=function(a){a&1&&Q(0,
" Add one. ")},Vqb=function(a){a&1&&(K(0,"p",24),Q(1," No description yet. "),F(2,Uqb,1,0),T(3,"async"),L());a&2&&(a=P(4),B(2),G(U(3,1,a.canEditComment$)?2:-1))},Wqb=function(a){a&1&&(F(0,Tqb,3,5),T(1,"async"),F(2,Vqb,4,3,"p",24),T(3,"async"));if(a&2){var b;a=P(3);G((b=U(1,2,a.id$))?0:-1,b);B(2);G(U(3,4,a.hasDescription$)?-1:2)}},Xqb=function(a){a&1&&(F(0,Rqb,2,3),T(1,"async"),Kf(2,Wqb,4,6));a&2&&(a=P(2),G(U(1,1,a.isRedacted$)?0:2))},Yqb=function(a,b){a&1&&(M(0,"b-attachment-viewer",28),T(1,"async"));
if(a&2){a=P().$implicit;var c=P(4),d;I("issueId",b)("attachment",a)("attachmentUploader",(d=U(1,3,c.originalAuthorEmail$))!=null?d:"")}},Zqb=function(a,b){a&1&&(K(0,"div",27),F(1,Yqb,2,5,"b-attachment-viewer",28),T(2,"async"),L());if(a&2){var c;a=b.$implicit;b=P(4);I("id",Eg("attachment",a.attachmentId));B();G((c=U(2,3,b.id$))?1:-1,c)}},$qb=function(a){a&1&&(K(0,"div",26),Nf(1,Zqb,3,5,"div",27,Mf),L());a&2&&(a=P(),B(),Of(a))},arb=function(a,b){a&1&&F(0,$qb,3,0,"div",26);a&2&&G(b.length?0:-1)},crb=
function(a,b){a&1&&(K(0,"div",4),M(1,"mat-icon",5),K(2,"div",6)(3,"div",7)(4,"div",8)(5,"h4",9),Q(6,"Description"),L(),F(7,Hqb,3,0,"button",10),T(8,"async"),F(9,Iqb,6,5),T(10,"async"),F(11,Kqb,2,3),T(12,"async"),F(13,Lqb,2,3,"a",11),T(14,"async"),F(15,Nqb,5,6,"span",12),T(16,"async"),L(),K(17,"div"),M(18,"b-formatted-date-time",13)(19,"b-actions-menu",14,0),T(21,"async"),L()(),M(22,"llm-chat-open-button",15),F(23,Oqb,2,0,"p",16),T(24,"async"),Kf(25,Xqb,3,3),F(26,arb,1,1),T(27,"async"),L()());if(a&
2){var c,d,e;a=P();B(7);G(U(8,10,a.canEditComment$)?7:-1);B(2);G((c=U(10,12,a.originalAuthor$))?9:-1,c);B(2);G(U(12,14,a.isAuthorNotReporter$)?11:-1);B(2);G((d=b.commentNumber&&U(14,16,a.id$))?13:-1,d);B(2);G(U(16,18,a.isShowCommentHistoryActionInMenu$)?15:-1);B(3);I("timestamp",b.modifiedDate);B();var f;I("buttonLabel","Description actions")("menuItems",(f=U(21,20,a.commentActionMenuItems$))!=null?f:Hg(26,brb));B(4);G(U(24,22,a.isDeleted$)?23:25);B(3);G((e=U(27,24,a.attachments$))?26:-1,e)}},drb=
function(a){a&1&&M(0,"b-spinner")},erb=function(a){a&1&&(Tf(0),Q(1," reacted"),Uf())},frb=function(a){a&1&&(Tf(0),Q(1,", "),M(2,"br"),Uf())},grb=function(a,b){a&1&&(K(0,"div"),Tf(1),Q(2),Uf(),F(3,erb,2,0,"ng-container")(4,frb,3,0,"ng-container"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B(2);S(" ",a);B();G(c===b-1?3:4)}},hrb=function(a){a&1&&(Tf(0),Q(1),Uf());a&2&&(a=P(2),B(),S(" by ",tm(a.event.lastCommentEditorUser)))},irb=function(a){a&1&&(Tf(0),Q(1,"Message last modified"),Uf(),F(2,
hrb,2,1,"ng-container"),Tf(3),Q(4," on "),M(5,"b-formatted-date-time",0),Uf());a&2&&(a=P(),B(2),G(a.event.version===0&&a.event.lastCommentEditorUser?2:-1),B(3),I("timestamp",a.event.commentLastModifiedAtDate))},jrb=function(a){a&1&&M(0,"b-user-email",0);a&2&&(a=P().$implicit,I("email",a.text)("withProfile",!0))},krb=function(a){a&1&&(K(0,"b-issue-reference-widget",1),Q(1),L());if(a&2){a=P().$implicit;var b=P();I("href",qs.viewIssue.makeHref(a.text))("issueId",b.getIssueId(a));B();yg(a.text)}},lrb=
function(a){a&1&&(Tf(0),Q(1),Uf());a&2&&(a=P().$implicit,B(),yg(a.text))},mrb=function(a,b){a&1&&F(0,jrb,1,2,"b-user-email",0)(1,krb,2,3,"b-issue-reference-widget",1)(2,lrb,2,1,"ng-container");if(a&2){var c;G((c=b.$implicit.tag)==="user"?0:c==="bug"?1:2)}},mt=function(a){var b;a=a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel;return a==="EXTERNAL_PARTNER"||a==="EXTERNAL_PUBLIC"},nrb=function(a){var b;return(a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel)==="EXTERNAL_PARTNER"},
nt=function(a){var b;return(a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel)==="EXTERNAL_PUBLIC"},orb=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""}},prb=function(a){a&
1&&(Tf(0),M(1,"b-component-card",4,1),Uf());if(a&2){a=qg(2);var b=P();B();I("onedevIsHovercardReady",a.init)("componentId",b.id)}},qrb=function(a){a&1&&(K(0,"span"),Q(1),L());if(a&2){a=P(5);B();var b;yg((b=a.effortSpecName)!=null?b:"Estimated Effort")}},rrb=function(a){a&1&&(K(0,"span"),Q(1,"Estimated Effort (disabled)"),L())},srb=function(a){a&1&&(K(0,"label"),F(1,qrb,2,1,"span")(2,rrb,2,0,"span"),Q(3," :\u200b "),L());a&2&&(a=P(4),B(),G(a.effortEnabled?1:2))},trb=function(a){a&1&&(K(0,"label"),
Q(1),L());a&2&&(a=P(3).$implicit,B(),S("",a.displayName,":\u200b"))},urb=function(a){a&1&&(K(0,"span"),M(1,"b-user-display-name",7),T(2,"emailToUser"),L());a&2&&(a=P(),B(),I("user",U(2,2,a))("showEmail",!0))},vrb=function(a){a&1&&M(0,"plain-component-path",5);a&2&&(a=P(4).$implicit,I("id",a.oldValue))},wrb=function(a){a&1&&M(0,"b-formatted-date-time",8);if(a&2){a=P(2);var b=P(4);I("timestamp",b.asNumber(a)*1E3)}},xrb=function(a){a&1&&(K(0,"span"),Q(1,"[Issue creation date]"),L())},yrb=function(a){a&
1&&(K(0,"span"),F(1,wrb,1,1,"b-formatted-date-time",8),F(2,xrb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},zrb=function(a){a&1&&M(0,"b-formatted-date-time",8);if(a&2){a=P(2);var b=P(4);I("timestamp",b.asNumber(a)*1E3)}},Arb=function(a){a&1&&(K(0,"span"),Q(1,"[Unset]"),L())},Brb=function(a){a&1&&(K(0,"span"),F(1,zrb,1,1,"b-formatted-date-time",8),F(2,Arb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},Crb=function(a){a&1&&(K(0,"span"),
Q(1),L());a&2&&(a=P(),P(4),B(),yg(Nkb(a)))},Drb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),yg(a))},Erb=function(a){a&1&&(F(0,urb,3,4,"span"),F(1,vrb,1,1,"plain-component-path",5),F(2,yrb,3,2,"span"),F(3,Brb,3,2,"span"),F(4,Crb,2,1,"span"),F(5,Drb,2,1,"span"),Tf(6),Q(7,"\u00a0"),Uf(),M(8,"span",6),Tf(9),Q(10,"\u00a0"),Uf());a&2&&(a=P(3).$implicit,G(a.isUser?0:-1),B(),G(a.name==="component"?1:-1),B(),G(a.name=="sloStartTime"?2:-1),B(),G(a.name=="sloEndTime"?3:-1),B(),G(a.name==="access_limit"?
4:-1),B(),G(a.isUser||a.name==="component"||a.name==="sloStartTime"||a.name==="sloEndTime"||a.name==="access_limit"?-1:5))},Frb=function(a){a&1&&(M(0,"b-user-display-name",7),T(1,"emailToUser"));a&2&&(a=P(),I("user",U(1,2,a))("showEmail",!0))},Grb=function(a){a&1&&(K(0,"span"),M(1,"plain-component-path",5),L());a&2&&(a=P(4).$implicit,B(),I("id",a.newValue))},Hrb=function(a){a&1&&M(0,"b-formatted-date-time",8);if(a&2){a=P(2);var b=P(4);I("timestamp",b.asNumber(a)*1E3)}},Irb=function(a){a&1&&(K(0,"span"),
Q(1,"[Issue creation date]"),L())},Jrb=function(a){a&1&&(K(0,"span"),F(1,Hrb,1,1,"b-formatted-date-time",8),F(2,Irb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},Krb=function(a){a&1&&M(0,"b-formatted-date-time",8);if(a&2){a=P(2);var b=P(4);I("timestamp",b.asNumber(a)*1E3)}},Lrb=function(a){a&1&&(K(0,"span"),Q(1,"[Unset]"),L())},Mrb=function(a){a&1&&(K(0,"span"),F(1,Krb,1,1,"b-formatted-date-time",8),F(2,Lrb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),
G(a==="<none>"?2:-1))},Nrb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),P(4),B(),yg(Nkb(a)))},Orb=function(a){a&1&&(K(0,"span"),Q(1),L());if(a&2){a=P();var b=P(3).$implicit;wg("bv2-diff-newvalue-nextline",b.oldValue&&b.name=="title");B();yg(a)}},Prb=function(a){a&1&&(F(0,Frb,2,4,"b-user-display-name",7),F(1,Grb,2,1,"span"),F(2,Jrb,3,2,"span"),F(3,Mrb,3,2,"span"),F(4,Nrb,2,1,"span"),F(5,Orb,2,3,"span",9));a&2&&(a=P(3).$implicit,G(a.isUser?0:-1),B(),G(a.name==="component"?1:-1),B(),G(a.name===
"sloStartTime"?2:-1),B(),G(a.name==="sloEndTime"?3:-1),B(),G(a.name==="access_limit"?4:-1),B(),G(a.isUser||a.name=="component"||a.name=="sloStartTime"||a.name=="sloEndTime"||a.name=="access_limit"?-1:5))},Qrb=function(a){a&1&&(K(0,"div",4),F(1,srb,4,1,"label")(2,trb,2,1,"label"),F(3,Erb,11,6),F(4,Prb,6,6),L());if(a&2){var b,c;a=P(2).$implicit;B();G(a.name==="effort"?1:2);B(2);G((b=a.oldValue)?3:-1,b);B();G((c=a.newValue)?4:-1,c)}},Rrb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},Srb=function(a,b){a&
1&&(K(0,"span"),M(1,"b-user-display-name",7),T(2,"emailToUser"),F(3,Rrb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();I("user",U(2,3,a))("showEmail",!0);B(2);G(c!==b-1?3:-1)}},Trb=function(a){a&1&&(K(0,"span"),Nf(1,Srb,4,5,"span",null,Mf),L());a&2&&(a=P(4).$implicit,B(),Of(a.added))},Urb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},Vrb=function(a,b){a&1&&(K(0,"span")(1,"span"),Q(2),L(),F(3,Urb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B(2);yg(a);B();
G(c!==b-1?3:-1)}},Wrb=function(a){a&1&&(K(0,"span"),Nf(1,Vrb,4,2,"span",null,Mf),L());a&2&&(a=P(4).$implicit,B(),Of(a.added))},Xrb=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),F(3,Trb,3,0,"span")(4,Wrb,3,0,"span"),L());a&2&&(a=P(3).$implicit,B(2),S("+",a.displayName,":\u200b"),B(),G(a.isUser?3:4))},Yrb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},Zrb=function(a,b){a&1&&(K(0,"span"),M(1,"b-user-display-name",7),T(2,"emailToUser"),F(3,Yrb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=
b.$count;B();I("user",U(2,3,a))("showEmail",!0);B(2);G(c!==b-1?3:-1)}},$rb=function(a){a&1&&(K(0,"span"),Nf(1,Zrb,4,5,"span",null,Mf),L());a&2&&(a=P(4).$implicit,B(),Of(a.removed))},asb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},bsb=function(a,b){a&1&&(K(0,"span")(1,"span"),Q(2),L(),F(3,asb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B(2);yg(a);B();G(c!==b-1?3:-1)}},csb=function(a){a&1&&(K(0,"span"),Nf(1,bsb,4,2,"span",null,Mf),L());a&2&&(a=P(4).$implicit,B(),Of(a.removed))},
dsb=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),F(3,$rb,3,0,"span")(4,csb,3,0,"span"),L());a&2&&(a=P(3).$implicit,B(2),S("-",a.displayName,":\u200b"),B(),G(a.isUser?3:4))},esb=function(a){a&1&&(K(0,"div",4),F(1,Xrb,5,2,"div"),F(2,dsb,5,2,"div"),L());if(a&2){a=P(2).$implicit;var b=P();B();G(a.added&&a.added.length&&b.isStringArray(a.added)?1:-1);B();G(a.removed&&a.removed.length&&b.isStringArray(a.removed)?2:-1)}},fsb=function(a){a&1&&Vf(0)},hsb=function(a,b){a&1&&(K(0,"span"),E(1,fsb,1,0,"ng-container",
10),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(4).$implicit;P();var e=qg(4);B();I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(2,gsb,d,a,c===b-1))}},isb=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),Nf(3,hsb,2,6,"span",null,Mf),L());a&2&&(a=P(3).$implicit,B(2),S("+",a.displayName,":\u200b"),B(),Of(a.added))},jsb=function(a){a&1&&Vf(0)},ksb=function(a,b){a&1&&(K(0,"span"),E(1,jsb,1,0,"ng-container",10),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(4).$implicit;
P();var e=qg(4);B();I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(2,gsb,d,a,c===b-1))}},lsb=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),Nf(3,ksb,2,6,"span",null,Mf),L());a&2&&(a=P(3).$implicit,B(2),S("-",a.displayName,":\u200b"),B(),Of(a.removed))},msb=function(a){a&1&&(K(0,"div",4),F(1,isb,5,1,"div"),F(2,lsb,5,1,"div"),L());if(a&2){a=P(2).$implicit;var b=P();B();G(a.added&&a.added.length&&b.isLinkedItemArray(a.added)?1:-1);B();G(a.removed&&a.removed.length&&b.isLinkedItemArray(a.removed)?
2:-1)}},nsb=function(a){a&1&&M(0,"b-formatted-date-time",8);a&2&&(a=P(),I("timestamp",a))},osb=function(a){a&1&&(K(0,"span"),Q(1," - "),L())},psb=function(a,b){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",8),F(2,osb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();I("timestamp",a);B();G(c!==b-1?2:-1)}},qsb=function(a){a&1&&(K(0,"span"),Nf(1,psb,3,2,"span",null,Mf),L());a&2&&(a=P(4).$implicit,B(),Of(a.oldValue.split(", ")))},rsb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=
P(),B(),yg(a))},usb=function(a){a&1&&(F(0,nsb,1,1,"b-formatted-date-time",8),F(1,qsb,3,0,"span"),F(2,rsb,2,1,"span"),Tf(3),Q(4,"\u00a0"),Uf(),M(5,"span",6),Tf(6),Q(7,"\u00a0"),Uf());if(a&2){a=P(3).$implicit;var b=P();G(ssb(b,a,"oldValue")?0:-1);B();G(tsb(b,a,"oldValue")?1:-1);B();G(ssb(b,a,"oldValue")||tsb(b,a,"oldValue")?-1:2)}},vsb=function(a){a&1&&M(0,"b-formatted-date-time",8);a&2&&(a=P(),I("timestamp",a))},wsb=function(a){a&1&&(K(0,"span"),Q(1," - "),L())},xsb=function(a,b){a&1&&(K(0,"span"),
M(1,"b-formatted-date-time",8),F(2,wsb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();I("timestamp",a);B();G(c!==b-1?2:-1)}},ysb=function(a){a&1&&(K(0,"span"),Nf(1,xsb,3,2,"span",null,Mf),L());a&2&&(a=P(4).$implicit,B(),Of(a.newValue.split(", ")))},zsb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),yg(a))},Asb=function(a){a&1&&(F(0,vsb,1,1,"b-formatted-date-time",8),F(1,ysb,3,0,"span"),F(2,zsb,2,1,"span"));if(a&2){a=P(3).$implicit;var b=P();G(ssb(b,a,"newValue")?0:-1);
B();G(tsb(b,a,"newValue")?1:-1);B();G(ssb(b,a,"newValue")||tsb(b,a,"newValue")?-1:2)}},Bsb=function(a){a&1&&(K(0,"div",4)(1,"label"),Q(2),L(),F(3,usb,8,3),F(4,Asb,3,3),L());if(a&2){var b,c;a=P(2).$implicit;var d=P();B();If("title",d.customFieldName(a));B();S("",d.customFieldName(a),":\u200b");B();G((b=a.oldValue)?3:-1,b);B();G((c=a.newValue)?4:-1,c)}},Csb=function(a){a&1&&(K(0,"span",11),Q(1,"Updated"),L())},Dsb=function(a){a&1&&(K(0,"span"),Q(1,"Deleted"),L())},Esb=function(a){a&1&&(K(0,"span"),
Q(1),L());a&2&&(a=P(),B(),S("Edited (unknown status '",a.status,"')"))},Fsb=function(a,b){a&1&&F(0,Csb,2,0,"span",11)(1,Dsb,2,0,"span")(2,Esb,2,1,"span");if(a&2){var c;G((c=b.status)==="ACTIVE"?0:c==="DELETED"?1:2)}},Gsb=function(a){a&1&&(K(0,"div",4)(1,"label"),Q(2),L(),F(3,Fsb,3,1),L());if(a&2){var b;a=P(2).$implicit;B(2);S("",a.displayName,":\u200b");B();G((b=a.statusUpdateDiff==null?null:a.statusUpdateDiff.entityStatus)?3:-1,b)}},Hsb=function(a){a&1&&(K(0,"div",4)(1,"label"),Q(2),L(),K(3,"pre",
12),Q(4),T(5,"json"),L()());a&2&&(a=P(2).$implicit,B(2),S("",a.displayName,":\u200b"),B(2),yg(U(5,2,a)))},Isb=function(a){a&1&&(M(0,"b-formatted-date-time",3),F(1,Qrb,5,3,"div",4)(2,esb,3,2,"div",4)(3,msb,3,2,"div",4)(4,Bsb,5,4,"div",4)(5,Gsb,4,2,"div",4)(6,Hsb,6,4,"div",4));if(a&2){a=P().$implicit;var b=P();I("timestamp",a.timestamp);B();G(!0===(a.type===b.DiffType.SINGLE_VALUE)?1:!0===(a.type===b.DiffType.COLLECTION||a.type===b.DiffType.USER_COLLECTION)?2:!0===(a.type===b.DiffType.LINKED_COLLECTION)?
3:!0===(a.type===b.DiffType.CUSTOM_FIELD)?4:!0===(a.type===b.DiffType.STATUS_UPDATE)?5:6)}},Jsb=function(a,b){a&1&&(K(0,"div",2),F(1,Isb,7,2),L());a&2&&(a=b.$implicit,b=P(),B(),G(((a==null?void 0:a.name)==="sloStartTime"||(a==null?void 0:a.name)==="sloEndTime"?b.activeSession.isInternalSession():1)?1:-1))},Ksb=function(a){a&1&&(K(0,"b-issue-reference-widget",13),Q(1),L());if(a&2){a=P();var b=P().change;I("href",b.href)("issueId",a);B();yg(a)}},Lsb=function(a){a&1&&M(0,"hotlist-link",5);a&2&&(a=P(),
I("id",a))},Msb=function(a){a&1&&(K(0,"a",14),Q(1),L());if(a&2){a=P();var b=P().change;I("href",b.href,Ne);B();yg(a)}},Nsb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},Osb=function(a){a&1&&(F(0,Ksb,2,3,"b-issue-reference-widget",13)(1,Lsb,1,1,"hotlist-link",5)(2,Msb,2,2,"a",14),F(3,Nsb,2,0,"span"));if(a&2){var b=P();a=b.diff;b=b.isLast;var c=P();G(c.isIssueDiff(a)?0:c.isHotlistDiff(a)?1:2);B(3);G(b?-1:3)}},Psb=function(a,b){a&1&&F(0,Osb,4,2);if(a&2){var c;G((c=b.change.value)?0:-1,c)}},Qsb=function(a){a&
1&&M(0,"b-user-image",6);a&2&&(a=P(2),I("email",a.userToLossyEmail(a.event.userPerformingActionUser)))},Rsb=function(a){a&1&&(M(0,"b-user-membership-chip",9),T(1,"async"),T(2,"async"));if(a&2){a=P(2);var b;I("user",a.event.userPerformingActionUser)("email",a.userToLossyEmail(a.event.userPerformingActionUser))("teamId",(b=U(1,4,a.teamId$))!=null?b:"");If("aria-label",U(2,6,a.ariaLabelHeading$))}},Ssb=function(a){a&1&&(M(0,"b-user-display",10),T(1,"async"));a&2&&(a=P(2),I("model",a.event.userPerformingActionUser),
If("aria-label",U(1,2,a.ariaLabelHeading$)))},Tsb=function(a){a&1&&Vf(0)},Usb=function(a){a&1&&(K(0,"span",33),E(1,Tsb,1,0,"ng-container",34),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",35),L());if(a&2){a=qg(3);P();var b=qg(9),c=P();I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",b);B(3);I("email",c.userToLossyEmail(c.event.userPerformingActionUser))}},Vsb=function(a){a&1&&(K(0,"span",11),Q(1),L());a&2&&(a=P(2),B(),S(" <",tm(a.event.userPerformingActionUser),"> "))},Wsb=function(a){a&
1&&(K(0,"span",11),Q(1),L());a&2&&(a=P(2),B(),S(" <",tm(a.event.userPerformingActionUser),"> "))},Xsb=function(a){if(a&1){var b=t();K(0,"span")(1,"a",36);N("click",function(c){u(b);var d=P(2);return v(d.scrollCommentIntoView(c,d.event.commentNumber))});Q(2);L()()}a&2&&(a=P(2),B(),I("routerLinkObj",a.getCommentNumberLink(a.event.commentNumber)),If("aria-label","Comment number"+a.event.commentNumber),B(),S(" #",a.event.commentNumber))},Zsb=function(a){if(a&1){var b=t();K(0,"button",37);N("click",function(){u(b);
var c=P(2);return v(Ysb(c.issueCommentDialogsService,c.issueId,c.deobfuscatedEvent$.value||c.event))});L()}},$sb=function(a){a&1&&M(0,"b-restricted-chip",14);if(a&2){a=P(2);var b,c;I("label",a.getRestrictedLabel())("retention",(b=a.event.commentRetention)!=null?b:void 0)("retentionState",(c=a.event.commentRetentionState)!=null?c:void 0)}},btb=function(a){a&1&&(M(0,"b-actions-menu",16,2),T(2,"async"));if(a&2){a=P(2);var b;I("buttonLabel","Comment actions")("menuItems",(b=U(2,2,a.commentActionMenuItems$))!=
null?b:Hg(4,atb))}},ctb=function(a){a&1&&(K(0,"div",18),M(1,"b-tagged-text",38),L());a&2&&(a=P(2),B(),I("texts",a.event.taggedSummary))},dtb=function(a){a&1&&(M(0,"b-issue-event-details",19),T(1,"async"),T(2,"async"),T(3,"async"));if(a&2){var b;a=P();var c=P(),d;I("diffs",(d=U(1,4,c.preEventDiffs$))!=null?d:Hg(10,atb))("customFieldMap",a.customFieldMap)("effortSpecName",(b=U(2,6,c.effortSpec$))==null?null:b.name)("effortEnabled",!!U(3,8,c.isEffortEnabled$))}},etb=function(a){a&1&&(K(0,"div",22),Q(1,
" Comment has been deleted. "),L())},ftb=function(a){if(a&1){var b=t();K(0,"b-restricted-comment-placeholder",39);T(1,"async");N("onConfirm",function(){u(b);var c=P(2);return v(c.loadRestrictedComment())});L()}a&2&&(a=P(2),I("disabled",!U(1,1,a.mayReadPii$)))},htb=function(a){a&1&&(M(0,"b-note-container",25),T(1,"async"),T(2,"async"),T(3,"async"));if(a&2){a=P(2);var b,c,d;I("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",(b=U(1,5,a.eventAsNote$))!=null?b:Hg(11,gtb))("formattingMode",
(c=U(2,7,a.formattingMode$))!=null?c:a.FormattingMode.PLAIN)("canEditComment",(d=U(3,9,a.canEditComment$))!=null?d:!1)}},itb=function(a){if(a&1){var b=t();M(0,"b-summarized-note-container",40);T(1,"async");T(2,"async");K(3,"button",41);N("click",function(){u(b);var e=P(2);e.wasSummarized$.next(!0);e.isSummarized=!e.isSummarized;return v()});M(4,"mat-icon",42);Q(5,"Expand details");L()}if(a&2){a=P(2);var c,d;I("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",(c=U(1,5,a.eventAsNote$))!=
null?c:Hg(9,gtb))("summaryType",a.getSummaryType())("formattingMode",(d=U(2,7,a.formattingMode$))!=null?d:a.FormattingMode.PLAIN)}},jtb=function(a){if(a&1){var b=t();K(0,"button",41);N("click",function(){u(b);var c=P(2);c.wasSummarized$.next(!0);c.isSummarized=!c.isSummarized;return v()});M(1,"mat-icon",43);Q(2,"Collapse details");L()}},ktb=function(a){a&1&&M(0,"b-formatted-date-time",29);a&2&&(a=P(2),I("timestamp",a.event.modifiedDate))},ltb=function(a){a&1&&M(0,"mat-icon",45)},mtb=function(a){a&
1&&M(0,"mat-icon",46)},ntb=function(a,b){a&1&&(K(0,"span"),Q(1),L());a&2&&(B(),yg(b))},otb=function(a){a&1&&M(0,"b-comment-reaction-responders-card",47);a&2&&(a=P(3),I("reactionState",a.event.commentReactions==null?null:a.event.commentReactions.get(a.ReactionType.UPVOTE))("issueId",a.issueId)("commentNumber",a.event.commentNumber))},stb=function(a){if(a&1){var b=t();K(0,"div",30)(1,"button",44,3);T(3,"async");T(4,"async");T(5,"async");T(6,"async");N("click",function(){u(b);var e=P(2);return v(ptb(e))});
F(7,ltb,1,0,"mat-icon",45)(8,mtb,1,0,"mat-icon",46);F(9,ntb,2,1,"span");T(10,"async");L();K(11,"onedev-hovercard",null,4);F(13,otb,1,3,"b-comment-reaction-responders-card",47);T(14,"async");L()()}if(a&2){var c;a=qg(12);var d=P(2);B();wg("no-upvote-reactions",U(3,11,d.noUpvoteReactions$));I("ariaLabel",qtb(d,d.ReactionType.UPVOTE));Hf("aria-disabled",!U(4,13,d.hasAclToUpvoteReact$)||d.commentReactionIsSaving);I("disabled",!U(5,15,d.hasAclToUpvoteReact$)||d.commentReactionIsSaving)("onedevHovercardTrigger",
a)("onedevHovercardConfig",d.commentReactionsHovercardConfig)("onedevHovercardActive",!!U(6,17,d.showCommentReactionHovercard$));B(6);G(rtb(d,d.ReactionType.UPVOTE)?7:8);B(2);G((c=U(10,19,d.upvoteReactionCountDisplayString$))?9:-1,c);B(4);G(U(14,21,d.noUpvoteReactions$)?-1:13)}},ttb=function(a){if(a&1){var b=t();K(0,"a",49);N("click",function(){u(b);var c=P(3);return v(c.showCommentHistoryDialog(c.event.commentNumber))});Q(1," Show History ");L()}},utb=function(a){a&1&&(K(0,"div",31),M(1,"b-comment-edit-timestamp-message",
48),F(2,ttb,2,0,"a"),L());a&2&&(a=P(2),B(),I("event",a.event),B(),G(a.commentHistoryEnabled?2:-1))},vtb=function(a){a&1&&(M(0,"b-issue-event-details",19),T(1,"async"),T(2,"async"),T(3,"async"));if(a&2){var b;a=P();var c=P(),d;I("diffs",(d=U(1,4,c.postEventDiffs$))!=null?d:Hg(10,atb))("customFieldMap",a.customFieldMap)("effortSpecName",(b=U(2,6,c.effortSpec$))==null?null:b.name)("effortEnabled",!!U(3,8,c.isEffortEnabled$))}},wtb=function(a,b){a&1&&(K(0,"div",50),M(1,"b-attachment-viewer",51),L());
a&2&&(a=b.$implicit,b=P(3),I("id",Eg("attachment",a.attachmentId)),B(),I("issueId",b.issueId)("attachment",a)("attachmentUploader",b.userToLossyEmail(b.event.userPerformingActionUser)))},xtb=function(a){a&1&&(K(0,"div",32),Nf(1,wtb,2,5,"div",50,Mf),L());a&2&&(a=P(2),B(),Of(a.event.attachments))},ztb=function(a){a&1&&(K(0,"div",5),F(1,Qsb,1,1,"b-user-image",6),L(),K(2,"div",7)(3,"h4",8),F(4,Rsb,3,8,"b-user-membership-chip",9)(5,Ssb,2,4,"b-user-display",10),F(6,Usb,5,3)(7,Vsb,2,1,"span",11),E(8,Wsb,
2,1,"ng-template",null,0,Mg),F(10,Xsb,3,3,"span"),F(11,Zsb,1,0,"button",12),T(12,"async"),K(13,"span",13),F(14,$sb,1,3,"b-restricted-chip",14),M(15,"b-formatted-date-time",15),F(16,btb,3,5,"b-actions-menu",16),L()(),M(17,"div",17),F(18,ctb,2,1,"div",18),F(19,dtb,4,11,"b-issue-event-details",19),T(20,"async"),M(21,"div",17),K(22,"div",20)(23,"div",21),F(24,etb,2,0,"div",22),F(25,ftb,2,3,"b-restricted-comment-placeholder",23),K(26,"div",24),F(27,htb,4,12,"b-note-container",25),F(28,itb,6,10),F(29,jtb,
3,0,"button",26),T(30,"async"),L(),K(31,"div",27),Zf(32),T(33,"async"),K(34,"div",28),F(35,ktb,1,1,"b-formatted-date-time",29),L(),F(36,stb,15,23,"div",30),L()(),F(37,utb,3,2,"div",31),L(),F(38,vtb,4,11,"b-issue-event-details",19),T(39,"async"),M(40,"div",17),F(41,xtb,3,0,"div",32),M(42,"div",17),L());if(a&2){a=P();B();G(a.event.userPerformingActionUser?1:-1);B(3);G(a.enableTeamAnnotations&&a.event.userPerformingActionUser?4:5);B(2);G(a.isNonObfuscatedEmail(a.userToLossyEmail(a.event.userPerformingActionUser))?
6:7);B(4);G(a.isCommentEvent(a.event)?10:-1);B();G(U(12,22,a.canEditComment$)&&!a.isRedacted()?11:-1);B(3);G(a.isRestricted(a.event)?14:-1);B();I("timestamp",a.event.modifiedDate);B();G(a.isCommentEvent(a.event)?16:-1);B(2);G(a.event.taggedSummary&&a.event.taggedSummary.length?18:-1);B();G(U(20,24,a.showFullHistoryFromFiltering$)==="FULL_HISTORY"?19:-1);B(5);G(a.isDeleted()?24:-1);B();G(a.isRedacted()&&!a.isDeleted()?25:-1);B(2);G(!ytb(a)||a.isRedacted()||a.isDeleted()||a.isSummarized?-1:27);B();
G(ytb(a)&&!a.isRedacted()&&!a.isDeleted()&&a.isSummarized?28:-1);B();G(U(30,26,a.wasSummarized$)&&!a.isSummarized?29:-1);var b,c=(b=U(33,28,a.isShowingCommentTimestamp$))!=null?b:!1;B(5);wg("hasCommentTimestamp",c);B();G(c?35:-1);B();var d;b=a.ReactionType.UPVOTE;var e;c=!a.issuePermissionService.hasAclToComment()&&((d=a.event.commentReactions)==null?void 0:(e=d.get(b))==null?void 0:e.count)===0;d=a.isInternalSession&&a.commentReactionsEnabled&&ytb(a)&&!a.isDeleted()&&!a.isRedacted()&&!c;G(d?36:-1);
B();G(a.isCommentEvent(a.event)&&(a.event.commentVersion||0)>0&&!a.isRedacted()?37:-1);B();G(U(39,30,a.showFullHistoryFromFiltering$)==="FULL_HISTORY"?38:-1);B(3);G(a.event.attachments.length?41:-1)}},Atb=function(a){a&1&&(K(0,"aside",0),M(1,"b-spinner"),L())},Btb=function(a){a&1&&Q(0);if(a&2){var b;a=P(2).$index;var c=P();S(" ",(b=c.foldedCommentsCounts.get(a))==null?null:b.commentFoldedCount," updates ")}},Ctb=function(a){a&1&&Q(0);if(a&2){var b;a=P(2).$index;var c=P();S(" ",(b=c.foldedCommentsCounts.get(a))==
null?null:b.commentFoldedCount," update ")}},Dtb=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",4);N("click",function(){u(b);var f=P().$index,g=P(),k,l,r=(l=(k=g.foldedCommentsCounts.get(f))==null?void 0:k.eventFoldedCount)!=null?l:0;for(k=0;k<r&&((go(g.internalEvents[f-k])||RTa(g.internalEvents[f-k]))&&g.eventDisplayMode.set(f-k,"full"),f-k!==0);k++);g.foldedCommentsCounts.delete(f);return v()});F(2,Btb,1,1)(3,Ctb,1,1);L();M(4,"div",5);L()}if(a&2){var c;a=P().$index;var d=P();B(2);var e;G(((e=
(c=d.foldedCommentsCounts.get(a))==null?null:c.commentFoldedCount)!=null?e:1)>1?2:3)}},Etb=function(a){a&1&&(K(0,"div",3),M(1,"b-history-event",6),L());if(a&2){var b=P();a=b.$implicit;b=b.$index;var c=P();B();I("issueId",c.internalIssueId)("issueAccessLevel",c.issueAccessLevel)("event",a)("isSummarized",c.eventDisplayMode.get(b)===c.eventDisplayModes.SUMMARIZED)}},Gtb=function(a,b){a&1&&(F(0,Dtb,5,1,"div",2),F(1,Etb,2,4,"div",3));if(a&2){var c;a=b.$index;b=P();var d;G(b.foldedCommentsCounts.has(a)&&
((d=(c=b.foldedCommentsCounts.get(a))==null?null:c.commentFoldedCount)!=null?d:0)>0?0:-1);B();G(b.internalIssueId&&Ftb(b.eventDisplayMode.get(a))?1:-1)}},Htb=function(a){a&1&&(K(0,"aside",0),M(1,"b-spinner"),L())},Itb=function(a,b){a&1&&(K(0,"mat-option",5)(1,"div",8),Q(2),L(),K(3,"div",9),Q(4),L()());a&2&&(a=b.$implicit,I("value",a),B(2),yg(a.name),B(2),yg(a.description))},Ntb=function(a){switch(a){case "FULL_HISTORY":return Jtb;case "ALL_COMMENTS":return Ktb;case "HUMAN_ONLY":return Ltb;case "TEAM_AND_ASSIGNEE":return Mtb;
default:return Ktb}},Otb=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P(2);return v(c.removeHotlist.emit())});M(1,"mat-icon",7);L()}a&2&&(a=P(2),wg("invisible",a.disabled),If("aria-disabled",a.disabled)("aria-label","Remove the hotlist "+a.hotlist.name))},Ptb=function(a){a&1&&(K(0,"span",1)(1,"span",2)(2,"a",3),Q(3),L()(),F(4,Otb,2,4,"button",4),L(),K(5,"onedev-hovercard",null,0),M(7,"b-hotlist-card",5),L());if(a&2){a=qg(6);var b=P();wg("muted",b.disabled);I("onedevHovercardTrigger",
a)("onedevHovercardActive",b.showHovercard);B(2);I("href",b.ROUTES.viewHotlist.makeHref(b.hotlist.hotlistId),Ne);If("aria-label",b.getAriaLabel(b.hotlist));B();yg(b.hotlist.name);B();G(b.removable?4:-1);B(3);I("hotlist",b.hotlist)}},Rtb=function(a){if(a&1){var b=t();K(0,"span",1)(1,"div")(2,"button",2);N("click",function(){u(b);var d=P();return v(d.addHotlist(d.hotlist.hotlistId))});M(3,"mat-icon",3);L();M(4,"mat-icon",4);L();K(5,"span",5)(6,"a",6);Q(7);L()()();K(8,"onedev-hovercard",null,0)(10,"b-hotlist-recommendation-card",
7);N("onAccept",function(d){u(b);var e=P();return v(e.addHotlist(d))})("onDismiss",function(){u(b);var d=P();return v(Qtb(d))});L()()}if(a&2){a=qg(9);var c=P();vg("padding-right","10px");I("onedevHovercardTrigger",a)("onedevHovercardActive",c.showHovercard)("onedevHovercardConfig",c.hovercardConfig);B(2);If("aria-label","Add the suggested hotlist "+c.hotlist.name);B(4);I("href",c.ROUTES.viewHotlist.makeHref(c.hotlist.hotlistId),Ne);If("aria-label",c.getAriaLabel(c.hotlist));B();yg(c.hotlist.name);
B(3);I("hotlist",c.hotlist)}},Ttb=function(a,b){if(a&1){var c=t();K(0,"b-hotlist-chip-smart",4);N("removeHotlist",function(){var d=u(c).$implicit,e=P(2);return v(Stb(e,d))});L()}a&2&&I("id",b.$implicit)},Utb=function(a,b){a&1&&(M(0,"b-hotlist-recommendation-chip",5),T(1,"async"));a&2&&(a=b.$implicit,b=P(4),I("hotlist",a.content==null?null:a.content.recommendedHotlist)("recommendationId",a.name)("issueId",U(1,3,b.issueId$)))},Wtb=function(a,b){a&1&&Nf(0,Utb,2,5,"b-hotlist-recommendation-chip",5,Vtb);
a&2&&Of(b)},Xtb=function(a){a&1&&(F(0,Wtb,2,0),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.recommendations$))?0:-1,b)}},Ytb=function(a){if(a&1){var b=t();K(0,"div",0);cg(1);K(2,"button",1);T(3,"async");N("onHotkey",function(){u(b);var c=P();return v(c.openHotlistModal())})("click",function(){u(b);var c=P();return v(c.openHotlistModal())});M(4,"mat-icon",2);Q(5);T(6,"async");L();Nf(7,Ttb,1,1,"b-hotlist-chip-smart",3,Mf);T(9,"async");F(10,Xtb,2,3);L()}a&2&&(a=P(),B(2),wg("icon-only",!U(3,5,a.textOfHotlistBtn$)),
I("hotkey",a.HOTKEYS.OPEN_HOTLIST_PICKER),B(3),S(" ",U(6,7,a.textOfHotlistBtn$)," "),B(2),Of(U(9,9,a.hotlistIds$)),B(3),G(a.isInternalSession?10:-1))},$tb=function(a){if(a&1){var b=t();K(0,"mat-form-field",7);T(1,"async");K(2,"input",8,0);N("keydown",function(c){u(b);var d=P();c.key==="Enter"?d.saveTitle():c.key==="Escape"||c.key==="Esc"?Ztb(d):d.bannedWordsChecker.reset();return v()})("blur",function(){u(b);var c=P();return v(c.onInputBlur())});L()()}a&2&&(a=P(),wg("banned-words-warning",U(1,3,a.bannedWordsChecker.showWarning$)),
B(2),I("value",a.titlePlain))},aub=function(a){a&1&&(K(0,"h3",4,1),Q(2),L());a&2&&(a=P(),If("title",a.isLongTitle?a.titlePlain:""),B(2),S(" ",a.titleTruncated," "))},bub=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P();return v(c.isEditMode?c.saveTitle():Ztb(c))});M(1,"mat-icon",10);L()}a&2&&(a=P(),I("disabled",a.disabled||a.isSaving))},cub=function(a){a&1&&(K(0,"p",6),Q(1),K(2,"a",11),Q(3," Learn more "),L()());a&2&&(a=P(),B(),S(" ",Bs(a.bannedWordsChecker)," is restricted. Press 'Esc' to cancel or 'Enter' to skip check and save title. "))},
dub=function(a){if(a&1){var b=t();K(0,"mat-checkbox",10);N("change",function(c){u(b);var d=P().$implicit,e=P();d.enabled=c.checked;e.detectChanges();return v()});L()}a&2&&(a=P().$implicit,Hf("aria-label",Eg("Enable column '",a.name,"'")),I("checked",a.enabled))},gub=function(a,b){if(a&1){var c=t();K(0,"li",2);N("keydown",function(e){var f=u(c).$index,g=P();return v(g.onKeyDown(e,f))})("focus",function(){var e=u(c).$index,f=P();return v(f.onFocus(e))});F(1,dub,1,3,"mat-checkbox",3);M(2,"mat-icon",
4);K(3,"span");Q(4);L();K(5,"div",5)(6,"button",6);N("click",function(){var e=u(c).$index,f=P();return v(eub(f,e))});M(7,"mat-icon",7);L();K(8,"button",8);N("click",function(){var e=u(c).$index,f=P();return v(fub(f,e))});M(9,"mat-icon",9);L()()()}if(a&2){a=b.$implicit;b=b.$index;var d=P();If("aria-label",a.name)("aria-grabbed",b===d.grabbedIndex);B();G(d.allowRemoval?1:-1);B(3);yg(a.name);B(2);wg("invisible",b===0);B(2);wg("invisible",b===d.items.length-1)}},hub=function(a){a&1&&M(0,"mat-icon",1)},
iub=function(a){a&1&&(K(0,"span",2),T(1,"date"),Q(2),L());a&2&&(a=P(2),I("title",Eg("Start Date: ",Lg(1,4,a.startDate,"longDate"))),B(2),zg(" ",a.startDateShortStr," ",a.JOINING_ARROW," "))},jub=function(a){a&1&&(K(0,"span",3),T(1,"date"),Q(2),L());a&2&&(a=P(2),I("title",Eg("End Date: ",Lg(1,3,a.endDate,"longDate"))),B(2),S(" ",a.endDateShortStr," "))},kub=function(a){a&1&&(K(0,"span",4),Q(1,"?"),L())},lub=function(a){a&1&&(K(0,"div",0),F(1,hub,1,0,"mat-icon",1),F(2,iub,3,7,"span",2),F(3,jub,3,6,
"span",3)(4,kub,2,0,"span",4),L());a&2&&(a=P(),B(),G(a.showIcon?1:-1),B(),G(a.startDate?2:-1),B(),G(a.endDate?3:4))},mub=function(a,b){b=b===void 0?[]:b;return"http://cl/search/cl:("+[].concat(q(a),q(b.map(function(c){return String(c.changelistNumber)}))).join("|")+")"},nub=function(a,b,c){c=c===void 0?22:c;return["display: inline-block; border-radius: 50%;","width: "+c+"px;","min-width: "+c+"px;","height: "+c+"px;","background: conic-gradient(var(--"+(b===void 0?"good-gfx":b)+") "+a*100+"%, var(--divider) 0 100%);",
"box-shadow: inset 0 0 0 2px var(--divider);"].join(" ")},oub=function(a){return"hotlist-"+a},pub=function(a){return"savedsearch-"+a},pt=function(a){if(a!=null){if(qub.includes(a))return a;var b=a.match(/\bhotlists?\b/)?ot(a):void 0;if(b)return"hotlist";b=a.match(/\bsavedsearch(?:es|)\b/)?ot(a):void 0;if(b)return"savedsearch";b=/\bb\/\d+\b/;b=a.match(/\bissues?\b/)||a.match(b)?ot(a):void 0;b||(a=a.trim(),b=a.length<3?!1:!!a.match(/^\d+$/));if(b)return"issue"}},rub=function(a){switch(pt(a)){case "hotlist":return"Hotlist";
case "savedsearch":return"Saved Search";case "issue":return"Issue"}},ot=function(a){if(a!=null)return a.split(/[^\d]+/).filter(Boolean).pop()},sub=function(a){var b=ot(a);if(b!=null)switch(pt(a)){case "hotlist":return"/hotlists/"+b;case "savedsearch":return"/savedsearches/"+b;default:return"/issues/"+b}},tub=function(a){var b=ot(a);if(b!=null&&pt(a)==="issue")return"/issues?q="+encodeURIComponent("id:"+b+" OR parentid:"+b+"+")},uub=function(a){for(var b={},c={},d=m(a),e=d.next();!e.done;e=d.next())e=
e.value,c[e.issueId]=e;d=a.slice();d.sort(function(l,r){var w,x;return(((w=r.descendantCount)!=null?w:0)-((x=l.descendantCount)!=null?x:0))*-1});d=m(d);for(e=d.next();!e.done;e=d.next()){var f=e.value,g=void 0;e=(g=b[f.issueId])!=null?g:0;g=void 0;f=m((g=f.parentIssueIds)!=null?g:[]);for(g=f.next();!g.done;g=f.next())if(g=c[g.value],g!=null){var k=void 0;b[g.issueId]=(k=b[g.issueId])!=null?k:0;b[g.issueId]+=1+e}}return a.map(function(l){var r,w=(r=b[l.issueId])!=null?r:0;return[[w,l.openDescendantCount+
w*10],l]})},vub=function(a,b){a=a.results;if(a.length<(b===void 0?50:b))return[];a=uub(a);a.sort(function(f,g){f=m(f);f=m(f.next().value);f.next();f=f.next().value;g=m(g);g=m(g.next().value);g.next();return g.next().value-f});b=a.filter(function(f){f=m(f);return m(f.next().value).next().value>0}).map(function(f){f=m(f);f.next();return f.next().value}).filter(function(f){return f.descendantCount>=2}).filter(uUa);var c={};a=m(a);for(var d=a.next();!d.done;d=a.next()){var e=m(d.value);d=e.next().value;
e=e.next().value;c[e.issueId]=d}return b.map(function(f){var g,k;return{title:(g=f.snapshot)==null?void 0:(k=g[0])==null?void 0:k.title,ref:f.issueId,suggestionRationale:f.descendantCount+" descendants and "+c[f.issueId][0]+" recent personal touchpoints."}})},wub=function(a){if(a&1){var b=t();K(0,"div",1);N("click",function(){u(b);var c=P();return v(c.useXofYLabel=!c.useXofYLabel)});M(1,"div",2);K(2,"span");Q(3);T(4,"number");L();K(5,"span");Q(6);L()()}a&2&&(a=P(),I("title",Fg("",a.closed," of ",
a.total," issues closed in this work area")),B(),If("style",a.makePie(a.closed/a.total),uja),B(),wg("display-none",a.useXofYLabel),B(),S("",Lg(4,11,a.closed/a.total*100,"1.0-0"),"% complete"),B(2),wg("display-none",!a.useXofYLabel),B(),zg("",a.closed," of ",a.total," closed"))},xub=function(a,b,c){var d=c[b];return d==null?!1:[].concat(q(a)).map(function(e){return qt[e]}).every(function(e){return e==null?!0:e.check(d,b,c)})},yub=function(a){return!!qt[a]},zub=function(a){a&1&&(yd(),Qf(0,"svg",3),
Sf(1,"path",4),Rf())},Aub=function(a){a&1&&(Qf(0,"div",2),cg(1,1,null,zub,2,0),Rf())},Bub=function(a){a&1&&M(0,"th",26)},Cub=function(a){a&1&&M(0,"td",27)},Eub=function(a){if(a&1){var b=t();K(0,"th",26)(1,"button",28);N("click",function(){u(b);var c=P(2);return v(Dub(c))});M(2,"mat-icon",29);L()()}},Fub=function(a){a&1&&M(0,"td",27)},Gub=function(a){a&1&&(K(0,"th",26),Q(1," ID "),L())},Hub=function(a){a&1&&M(0,"b-issue-id-cell",31);a&2&&(a=P().$implicit,I("id",a.issueIds[0]))},Iub=function(a,b){a&
1&&(K(0,"td",30),F(1,Hub,1,1,"b-issue-id-cell",31),L());a&2&&(a=b.$implicit,B(),G(a.issueIds.length===1?1:-1))},Kub=function(a){if(a&1){var b=t();K(0,"th",26)(1,"mat-checkbox",32);N("change",function(d){u(b);var e=P(),f=P();return v(d?f.toggleAllRows(e):null)});L()()}if(a&2){a=P();var c=P();B();I("checked",c.selection.selected.length>0&&Jub(c,a))("indeterminate",c.selection.selected.length>0&&!Jub(c,a))}},Lub=function(a,b){if(a&1){var c=t();K(0,"td",30)(1,"mat-checkbox",33);N("click",function(d){u(c);
return v(d.stopPropagation())})("change",function(){var d=u(c).$implicit,e=P(2);e.selection.toggle(d.issueIds[0]);e.selectedIssuesChange.emit(e.selection);return v()});L()()}a&2&&(a=b.$implicit,b=P(2),B(),I("checked",b.selection.isSelected(a.issueIds[0])),If("aria-label","Select issue "+a.issueIds[0])("aria-checked",b.selection.isSelected(a.issueIds[0])))},Mub=function(a){if(a&1){var b=t();K(0,"th",26)(1,"mat-checkbox",32);N("change",function(d){u(b);var e=P(),f=P();return v(d?f.toggleAllRows(e):
null)});L()()}if(a&2){a=P();var c=P();B();I("checked",c.selection.selected.length>0&&Jub(c,a))("indeterminate",c.selection.selected.length>0&&!Jub(c,a))}},Nub=function(a){a&1&&M(0,"td",30)},Oub=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.TITLE)," "))},Pub=function(a,b){if(a&1){var c=t();K(0,"td",30)(1,"b-issue-title-cell",34);T(2,"async");T(3,"async");T(4,"async");N("issueNavigated",function(f){u(c);var g=P(2);return v(g.issueNavigated.emit(f))});
L()()}if(a&2){var d;a=b.$implicit;b=P(2);B();wg("bold",b.showReadStatus&&b.isUnread(U(2,9,a.issue$)));var e;I("anchorTarget",Dg((b.options.navigationOptions==null?0:b.options.navigationOptions.alwaysOpenNewTab)?"_blank":"_self"))("issue",U(3,11,a.issue$))("issueUrlFactory",b.issueUrlFactory)("enableHovercard",(e=b.options.enableIssueHovercard)!=null?e:!1)("useButtonToNavigate",(b.options.navigationOptions==null?null:b.options.navigationOptions.clickTargets)===b.ClickTargetsForNavigation.NONE)("trailingChip",
b.options.showTrending?(d=U(4,13,b.trendingChipsById$))==null?null:d[a.issueIds[0]]:void 0)}},Qub=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.TITLE)," "))},Rub=function(a,b){a&1&&(K(0,"td",30)(1,"b"),Q(2),T(3,"async"),L()());a&2&&(a=b.$implicit,B(2),zg("",U(3,2,a.summaryTitle$)," (",a.issueIds.length,")"))},Sub=function(a){a&1&&(K(0,"th",35),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.TYPE),B(),S(" ",a.getDisplayName(a.IssueFieldType.TYPE),
" "))},Tub=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-type-cell",36),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},Uub=function(){},Vub=function(a){a&1&&Q(0);a&2&&(a=P(3),S(" ",a.getDisplayName(a.IssueFieldType.ASSIGNEE)," "))},Wub=function(a){a&1&&(K(0,"th",35),F(1,Uub,0,0)(2,Vub,1,1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.ASSIGNEE),B(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},Xub=function(a,b){a&1&&M(0,"b-user-image",
37);a&2&&I("email",b)},Yub=function(a){a&1&&F(0,Xub,1,1,"b-user-image",37);if(a&2){var b;a=P();var c=P(4);G((b=c.getAssigneeString(a))?0:-1,b)}},Zub=function(a,b){a&1&&F(0,Yub,1,1);a&2&&(a=P(4),G(a.isOpen(b)?0:-1))},$ub=function(a){a&1&&(F(0,Zub,1,1),T(1,"async"));if(a&2){var b;a=P().$implicit;G((b=U(1,1,a.issue$))?0:-1,b)}},avb=function(a){a&1&&(M(0,"b-issue-assignee-cell",36),T(1,"async"));a&2&&(a=P().$implicit,I("issue",U(1,1,a.issue$)))},bvb=function(a){a&1&&(K(0,"td",30),F(1,$ub,2,3)(2,avb,2,
3,"b-issue-assignee-cell",36),L());a&2&&(a=P(2),B(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},cvb=function(a){a&1&&(K(0,"th",35),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.REPORTER),B(),S(" ",a.getDisplayName(a.IssueFieldType.REPORTER)," "))},dvb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-reporter-cell",36),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},evb=function(a){a&1&&(K(0,"th",38),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",
a.IssueFieldType.PRIORITY),B(),S(" ",a.getDisplayName(a.IssueFieldType.PRIORITY)," "))},fvb=function(a){a&1&&M(0,"b-issue-priority-display",39);a&2&&(P(),a=ag(1),I("issuePriority",a==null?null:a.snapshot==null?null:a.snapshot[0]==null?null:a.snapshot[0].priority))},gvb=function(a,b){a&1&&(K(0,"td",30),Zf(1),T(2,"async"),F(3,fvb,1,1,"b-issue-priority-display",39),L());a&2&&(a=b.$implicit,P(2),B(),$f(U(2,1,a.issue$)),B(2),G(3))},hvb=function(a){a&1&&M(0,"th",40)},ivb=function(a){a&1&&(K(0,"td",30),
M(1,"mat-icon",41),L())},jvb=function(a){a&1&&(K(0,"th",35),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.STATUS),B(),S(" ",a.getDisplayName(a.IssueFieldType.STATUS)," "))},kvb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-status-cell",36),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},lvb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.TEAM)," "))},mvb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-team-cell",
36),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},nvb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.DUPLICATE_COUNT)," "))},ovb=function(a){a&1&&Q(0);if(a&2){a=P();var b;S(" ",(b=a.snapshot[0].duplicateIssueId==null?null:a.snapshot[0].duplicateIssueId.length)!=null?b:0," ")}},pvb=function(a){a&1&&F(0,ovb,1,1);a&2&&(P(3),G(0))},qvb=function(a,b){a&1&&(K(0,"td",30),F(1,pvb,1,1),T(2,"async"),L());if(a&2){var c;a=b.$implicit;
B();G((c=U(2,1,a.issue$))?1:-1,c)}},rvb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.VOTE_COUNT)," "))},svb=function(a){a&1&&(K(0,"span",42),Q(1),L());a&2&&(a=P(),I("title",Eg("",a.aggregatedData==null?null:a.aggregatedData.voteCount," votes")),B(),S(" ",a.aggregatedData==null?null:a.aggregatedData.voteCount," "))},tvb=function(a){a&1&&F(0,svb,2,3,"span",42);a&2&&(P(3),G(0))},uvb=function(a,b){a&1&&(K(0,"td",30),F(1,tvb,1,1),T(2,"async"),L());if(a&
2){var c;a=b.$implicit;B();G((c=U(2,1,a.issue$))?1:-1,c)}},vvb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.SEVEN_DAY_VIEW_COUNT)," "))},wvb=function(a){a&1&&(K(0,"span",42),Q(1),L());a&2&&(a=P(),I("title",Eg("",a.userActivityStats==null?null:a.userActivityStats.sevenDayViewCount," views in last 7 days")),B(),S(" ",a.userActivityStats==null?null:a.userActivityStats.sevenDayViewCount," "))},xvb=function(a){a&1&&F(0,wvb,2,3,"span",42);a&2&&(P(3),
G(0))},yvb=function(a,b){a&1&&(K(0,"td",30),F(1,xvb,1,1),T(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=U(2,1,a.issue$))?1:-1,c)}},zvb=function(a){a&1&&(K(0,"th",43),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.CREATED_TIME),B(),S(" ",a.getDisplayName(a.IssueFieldType.CREATED_TIME)," "))},Avb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-created-time-cell",44),T(2,"async"),L());if(a&2){a=b.$implicit;b=P(2);B();var c;I("issue",U(2,2,a.issue$))("mode",(c=b.options.modes==null?
null:b.options.modes.createdTime)!=null?c:b.DEFAULT_DATETIME_MODE)}},Bvb=function(a){a&1&&(K(0,"th",43),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.MODIFIED_TIME),B(),S(" ",a.getDisplayName(a.IssueFieldType.MODIFIED_TIME)," "))},Cvb=function(a,b){a&1&&M(0,"b-formatted-date-time",45);if(a&2){a=P(3);var c;I("timestamp",b/1E3)("mode",(c=a.options.modes==null?null:a.options.modes.modifiedTime)!=null?c:a.DEFAULT_DATETIME_MODE)("paddingLeftPx",0)}},Dvb=function(a,b){a&1&&(K(0,"td",30),Zf(1),
T(2,"async"),F(3,Cvb,1,3,"b-formatted-date-time",45),L());if(a&2){var c;a=b.$implicit;P(2);a=U(2,1,a.issue$);B(3);G((c=a==null?null:a.aggregatedData==null?null:a.aggregatedData.modifiedTimeMicros)?3:-1,c)}},Evb=function(a){a&1&&(K(0,"th",46),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.RELATIVE_MODIFIED_TIME),B(),S(" ",a.getDisplayName(a.IssueFieldType.RELATIVE_MODIFIED_TIME)," "))},Fvb=function(a,b){a&1&&M(0,"b-formatted-date-time",45);a&2&&I("timestamp",b/1E3)("mode","relativepasttiny")("paddingLeftPx",
4)},Gvb=function(a,b){a&1&&(K(0,"td",47),Zf(1),T(2,"async"),F(3,Fvb,1,3,"b-formatted-date-time",45),L());if(a&2){var c;a=b.$implicit;P(2);a=U(2,1,a.issue$);B(3);G((c=a==null?null:a.aggregatedData==null?null:a.aggregatedData.modifiedTimeMicros)?3:-1,c)}},Hvb=function(a){a&1&&(K(0,"th",48),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.TRIAGER)," "))},Ivb=function(a){a&1&&M(0,"b-issue-triager-cell",36);a&2&&(a=P(),I("issue",a))},Jvb=function(a){a&1&&F(0,Ivb,1,1,"b-issue-triager-cell",
36);a&2&&(P(3),G(0))},Kvb=function(a,b){a&1&&(K(0,"td",47),F(1,Jvb,1,1),T(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=U(2,1,a.issue$))?1:-1,c)}},Lvb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),yg(a.getDisplayName(a.IssueFieldType.ALERTS)))},Mvb=function(a){a&1&&M(0,"b-issue-alerts-cell",50);if(a&2){a=P();var b=P(4);I("alerts",b.alerts)("issue",a)}},Nvb=function(a){a&1&&F(0,Mvb,1,2,"b-issue-alerts-cell",50);a&2&&(P(4),G(0))},Ovb=function(a){a&1&&(F(0,Nvb,1,1),T(1,"async"));if(a&
2){var b;a=P().$implicit;G((b=U(1,1,a.issue$))?0:-1,b)}},Pvb=function(a){a&1&&M(0,"b-signal-chip",49)},Qvb=function(a,b){a&1&&(K(0,"td",47),F(1,Ovb,2,3)(2,Pvb,1,0,"b-signal-chip",49),L());a&2&&(a=b.$implicit,B(),G(a.issueIds.length===1?1:2))},Rvb=function(a){a&1&&(K(0,"th",51),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.TIMEFRAME),B(),S(" ",a.getDisplayName(a.IssueFieldType.TIMEFRAME)," "))},Svb=function(a,b){a&1&&(K(0,"td",30),M(1,"issue-timeframe",52),T(2,"async"),L());a&2&&(a=b.$implicit,
B(),I("issue",U(2,2,a.issue$))("showIcon",!1))},Tvb=function(a){a&1&&(K(0,"th",43),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.PROGRESS),B(),S(" ",a.getDisplayName(a.IssueFieldType.PROGRESS)," "))},Uvb=function(a,b){a&1&&(K(0,"td",30),M(1,"progress-pie",36),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},Vvb=function(a){a&1&&M(0,"th",26)},Wvb=function(a,b){if(a&1){var c=t();K(0,"td",30)(1,"b-actions-menu",53);N("click",function(f){u(c);return v(f.stopPropagation())});
L()()}if(a&2){a=b.$implicit;b=P(2);B();var d,e;I("buttonLabel",(d=b.options.menu==null?null:b.options.menu.buttonLabel)!=null?d:b.DEFAULT_MENU_OPTIONS.buttonLabel)("buttonIcon",(e=b.options.menu==null?null:b.options.menu.buttonIcon)!=null?e:b.DEFAULT_MENU_OPTIONS.buttonIcon)("menuItems",b.getMenuItems(a.issueIds[0]))}},Xvb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.COMPONENT_PATH)," "))},Yvb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-component-name-cell",
36),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},Zvb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.ENRICHMENT_CATEGORIES)," "))},$vb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-enrichment-categories-cell",54),L());a&2&&(a=b.$implicit,b=P(2),B(),I("enrichmentCategoryNames",b.enrichmentCategoriesFunction(a.issueIds[0])))},awb=function(a){a&1&&(K(0,"th",26)(1,"span"),Q(2),L()());if(a&2){a=P().$implicit;var b=P(2);B(2);S(" ",b.getCustomFieldName(a),
" ")}},bwb=function(a){a&1&&(K(0,"span"),Q(1),L());if(a&2){a=P();var b=P(2).$implicit,c=P(2);B();S(" ",c.getCustomFieldValue(a,b)," ")}},cwb=function(a){a&1&&F(0,bwb,2,1,"span");a&2&&(P(4),G(0))},dwb=function(a,b){a&1&&(K(0,"td",30),F(1,cwb,1,1),T(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=U(2,1,a.issue$))?1:-1,c)}},ewb=function(a,b){a&1&&(Tf(0,8),E(1,awb,3,1,"th",5)(2,dwb,3,3,"td",9),Uf());a&2&&(a=b.$implicit,b=P(2),I("matColumnDef",Fg("",b.IssueFieldType.CUSTOM_FIELD,"-",a)))},fwb=function(a){a&
1&&M(0,"tr",55)},hwb=function(a,b){if(a&1){var c=t();K(0,"tr",56,0);T(2,"async");N("click",function(d){u(c);var e=qg(1),f=P(2);return v(gwb(f,d,e))})("mouseup",function(d){u(c);var e=qg(1),f=P(2);return v(gwb(f,d,e))})("focusin",function(){var d=u(c).$implicit,e=P(2);return v(e.focusManager==null?null:Ds(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P(2);return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,b=P(2),wg("closed",b.options.deEmphasizeClosedIssues&&b.isClosed(U(2,
5,a.issue$)))("active",b.options.activeRowMode===b.ActiveRowMode.REMAIN_ACTIVE&&b.idsToString(b.focusManager==null?null:b.focusManager.activeItem==null?null:b.focusManager.activeItem.row==null?null:b.focusManager.activeItem.row.issueIds)===b.idsToString(a.issueIds)),I("row",a))},iwb=function(a,b){if(a&1){var c=t();K(0,"tr",56,0);N("click",function(d){u(c);var e=qg(1),f=P(2);return v(gwb(f,d,e))})("mouseup",function(d){u(c);var e=qg(1),f=P(2);return v(gwb(f,d,e))})("focusin",function(){var d=u(c).$implicit,
e=P(2);return v(e.focusManager==null?null:Ds(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P(2);return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,b=P(2),wg("active",b.options.activeRowMode===b.ActiveRowMode.REMAIN_ACTIVE&&b.idsToString(b.focusManager==null?null:b.focusManager.activeItem==null?null:b.focusManager.activeItem.row==null?null:b.focusManager.activeItem.row.issueIds)===b.idsToString(a.issueIds)),I("row",a))},kwb=function(a,b){if(a&1){var c=t();K(0,"table",3);T(1,
"async");T(2,"async");N("matSortChange",function(g){u(c);var k=P();return v(k.onSortChange(g))});Tf(3,4);E(4,Bub,1,0,"th",5)(5,Cub,1,0,"td",6);Uf();Tf(6,7);E(7,Eub,3,0,"th",5)(8,Fub,1,0,"td",6);Uf();Tf(9,8);E(10,Gub,2,0,"th",5)(11,Iub,2,1,"td",9);Uf();Tf(12,10);E(13,Kub,2,2,"th",5)(14,Lub,2,3,"td",9);Uf();Tf(15,11);E(16,Mub,2,2,"th",5)(17,Nub,1,0,"td",9);Uf();Tf(18,8);E(19,Oub,2,1,"th",5)(20,Pub,5,15,"td",9);Uf();Tf(21,12);E(22,Qub,2,1,"th",5)(23,Rub,4,4,"td",9);Uf();Tf(24,8);E(25,Sub,2,2,"th",13)(26,
Tub,3,3,"td",9);Uf();Tf(27,8);E(28,Wub,3,2,"th",13)(29,bvb,3,1,"td",9);Uf();Tf(30,8);E(31,cvb,2,2,"th",13)(32,dvb,3,3,"td",9);Uf();Tf(33,8);E(34,evb,2,2,"th",14)(35,gvb,4,4,"td",9);Uf();Tf(36,15);E(37,hvb,1,0,"th",16)(38,ivb,2,0,"td",9);Uf();Tf(39,8);E(40,jvb,2,2,"th",13)(41,kvb,3,3,"td",9);Uf();Tf(42,8);E(43,lvb,2,1,"th",5)(44,mvb,3,3,"td",9);Uf();Tf(45,8);E(46,nvb,2,1,"th",5)(47,qvb,3,3,"td",9);Uf();Tf(48,8);E(49,rvb,2,1,"th",5)(50,uvb,3,3,"td",9);Uf();Tf(51,8);E(52,vvb,2,1,"th",5)(53,yvb,3,3,"td",
9);Uf();Tf(54,8);E(55,zvb,2,2,"th",17)(56,Avb,3,4,"td",9);Uf();Tf(57,8);E(58,Bvb,2,2,"th",17)(59,Dvb,4,3,"td",9);Uf();Tf(60,8);E(61,Evb,2,2,"th",18)(62,Gvb,4,3,"td",19);Uf();Tf(63,8);E(64,Hvb,2,1,"th",20)(65,Kvb,3,3,"td",19);Uf();Tf(66,8);E(67,Lvb,2,1,"th",5)(68,Qvb,3,1,"td",19);Uf();Tf(69,8);E(70,Rvb,2,2,"th",21)(71,Svb,3,4,"td",9);Uf();Tf(72,8);E(73,Tvb,2,2,"th",17)(74,Uvb,3,3,"td",9);Uf();Tf(75,22);E(76,Vvb,1,0,"th",5)(77,Wvb,2,3,"td",9);Uf();Tf(78,8);E(79,Xvb,2,1,"th",5)(80,Yvb,3,3,"td",9);Uf();
Tf(81,8);E(82,Zvb,2,1,"th",5)(83,$vb,2,1,"td",9);Uf();Nf(84,ewb,3,3,"ng-container",8,Mf);E(86,fwb,1,0,"tr",23)(87,hwb,3,7,"tr",24)(88,iwb,2,3,"tr",25);L()}if(a&2){var d,e;a=P();wg("hide-header",a.options.hideColumnHeaders);var f;I("dataSource",b)("trackBy",a.trackBy)("matSortDisabled",a.options.sortMode===a.SortMode.DISABLED)("matSortActive",(f=(d=U(1,32,a.activeSort$))==null?null:d.column)!=null?f:"")("matSortDirection",a.toMatSortDirection((e=U(2,34,a.activeSort$))==null?null:e.direction));B(9);
I("matColumnDef",a.IssueFieldType.ISSUE_ID);B(9);I("matColumnDef",a.IssueFieldType.TITLE);B(6);I("matColumnDef",a.IssueFieldType.TYPE);B(3);I("matColumnDef",a.IssueFieldType.ASSIGNEE);B(3);I("matColumnDef",a.IssueFieldType.REPORTER);B(3);I("matColumnDef",a.IssueFieldType.PRIORITY);B(6);I("matColumnDef",a.IssueFieldType.STATUS);B(3);I("matColumnDef",a.IssueFieldType.TEAM);B(3);I("matColumnDef",a.IssueFieldType.DUPLICATE_COUNT);B(3);I("matColumnDef",a.IssueFieldType.VOTE_COUNT);B(3);I("matColumnDef",
a.IssueFieldType.SEVEN_DAY_VIEW_COUNT);B(3);I("matColumnDef",a.IssueFieldType.CREATED_TIME);B(3);I("matColumnDef",a.IssueFieldType.MODIFIED_TIME);B(3);I("matColumnDef",a.IssueFieldType.RELATIVE_MODIFIED_TIME);B(3);I("matColumnDef",a.IssueFieldType.TRIAGER);B(3);I("matColumnDef",a.IssueFieldType.ALERTS);B(3);I("matColumnDef",a.IssueFieldType.TIMEFRAME);B(3);I("matColumnDef",a.IssueFieldType.PROGRESS);B(6);I("matColumnDef",a.IssueFieldType.COMPONENT_PATH);B(3);I("matColumnDef",a.IssueFieldType.ENRICHMENT_CATEGORIES);
B(3);Of(a.customFieldIds);B(2);I("matHeaderRowDef",a.tableColumns);B();I("matRowDefColumns",a.tableColumns)("matRowDefWhen",a.isSingleIssue);B();I("matRowDefColumns",jwb(a))("matRowDefWhen",a.isMultiIssue)}},lwb=function(a){if(a&1){var b=t();K(0,"button",58);N("click",function(){u(b);var c=P(5);return v(c.rowLimit$.next(void 0))});Q(1," Show more ");L()}},mwb=function(a){a&1&&F(0,lwb,2,0,"button",57);if(a&2){a=P();var b=P();G(a.length<b?0:-1)}},nwb=function(a){if(a&1){var b=t();K(0,"button",58);N("click",
function(){u(b);var c=P(5);return v(c.rowLimit$.next(c.options.rowLimit))});Q(1," Show less ");L()}},owb=function(a){a&1&&F(0,nwb,2,0,"button",57);if(a&2){a=P();var b=P(3);G(a.length>b.options.rowLimit?0:-1)}},pwb=function(a){a&1&&(F(0,mwb,1,1),T(1,"async"),Kf(2,owb,1,1));if(a&2){var b;a=P(3);G((b=U(1,1,a.rowLimit$))?0:2,b)}},qwb=function(a){a&1&&(F(0,pwb,3,3),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.rows$))?0:-1,b)}},rwb=function(a){a&1&&(K(0,"div",2),F(1,qwb,2,3),T(2,"async"),L());if(a&2){var b;
a=P();B();G((b=U(2,1,a.rowCountAfterFilters$))?1:-1,b)}},swb=function(a,b){return a===b?!0:a&&b?VZa(a.issueIds,b.issueIds):!1},twb=function(a){var b;return(b=a==null?void 0:a.join(";"))!=null?b:""},ko=function(a){return Ar(a.issue$)},uwb=function(a,b){if(!b)return a;switch(b.column){case "STATUS":return eUa()(a,b.direction);case "ASSIGNEE":return fUa()(a,b.direction);case "REPORTER":return hUa()(a,b.direction);case "TYPE":return gUa()(a,b.direction);case "CREATED_TIME":return iUa(ko)(a,b.direction);
case "MODIFIED_TIME":case "RELATIVE_MODIFIED_TIME":return jUa(ko)(a,b.direction);case "PRIORITY":return pUa(ko)(a,b.direction);case "PROGRESS":return qUa()(a,b.direction);default:return console.warn("b-issues-table sort by '"+b.column+"' not implemented"),a}},vwb=function(a,b){var c=a.views24h;var d=a.views7d;a=a.views30d;if(fo(c[b],c))return{title:"Trending 24h",tooltip:c[b]+" Views in 24 hours",cssClass:"cyan"};if(fo(d[b],d))return{title:"Trending 7d",tooltip:d[b]+" Views in 7 days",cssClass:"purple"};
if(fo(a[b],a))return{title:"Trending 30d",tooltip:a[b]+" Views in the last 30 days",cssClass:"blue"}},xwb=function(a,b){if(a&1){var c=t();K(0,"b-issues-table",1);N("issueNavigated",function(d){u(c);var e=P();return v(wwb(e,e.EventType.EVENT_TYPE_GO_TO_ISSUE,d,e.EnrichmentFeedbackType.GO_TO_ISSUE))});L()}a&2&&(a=P(),I("issueIds",b.issueIds)("tableColumns",b.tableColumns)("options",a.tableOptions)("enrichmentCategoriesFunction",b.categoriesFunction)("menuItemFactory",a.menuItemFactory))},ywb=function(a){a&
1&&(K(0,"div"),M(1,"b-spinner"),L())},Dwb=function(a){var b=rt(a.resource);if(!b)return[];var c=[],d=0;switch(a.type){case "ISSUE_DEDUPLICATION":var e=rt(a.recommendation);if(!e)break;c.push({issueId:b,actionKey:d++,fieldName:"duplicateOfIssueId",value:e,actionType:"ADD"});break;case "HOTLIST":e=zwb(a.recommendation);if(!e)break;c.push({issueId:b,actionKey:d++,fieldName:"hotlists",value:e,actionType:"ADD"});break;case "NEEDS_INFO":case "COMPONENT_ROUTING":case "ANY_ISSUE_EDIT":if((e=a.content)==null?
0:e.issueModification)e=Awb(a.content.issueModification),c.push.apply(c,q(e.map(function(C){return Object.assign({},{issueId:b,actionKey:d++},C)})));break;case "ISSUE_DEDUPLICATION_BATCH":var f,g;e=(f=a.content)==null?void 0:(g=f.issueDeduplicationBatch)==null?void 0:g.recommendedCanonicalIssue;if(!e||!e.issueId)break;var k,l,r;f=m((r=(k=a.content)==null?void 0:(l=k.issueDeduplicationBatch)==null?void 0:l.entries)!=null?r:[]);for(k=f.next();!k.done;k=f.next()){k=k.value;if(!k.issue.issueId)break;
k.issue.issueId!==e.issueId&&c.push({issueId:k.issue.issueId,actionKey:d++,fieldName:"duplicateOfIssueId",value:e.issueId,actionType:"ADD"})}break;case "TYPE_UNSPECIFIED":return[]}var w=Bwb[a.type],x=Cwb[a.type];return c.map(function(C){w.has(C.fieldName)&&(C.allowEdit=!0);x.has(C.fieldName)&&(C.allowExclude=!0);return C})},Awb=function(a){var b=[];b.push.apply(b,q(Ewb(a.addState,a.addMask,!0)));b.push.apply(b,q(Ewb(a.removeState,a.removeMask,!1)));a.comment&&b.push({fieldName:"comment",value:a.comment.unlinkifiedComment,
formattingMode:a.comment.formattingMode});return b},Ewb=function(a,b,c){var d=[];b=m(b);for(var e=b.next();!e.done;e=b.next())switch(e=e.value,e){case "assignee":var f=void 0;d.push({fieldName:e,value:wm((f=a)==null?void 0:f.assigneeUser),actionType:c?"ADD":"REMOVE"});break;case "attachments":break;case "blockedByIssueId":var g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.blockedByIssueId)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "blockingIssueId":g=f=void 0;
d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.blockingIssueId)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "ccs":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.ccUsers)==null?void 0:g.map(wm).join(","),actionType:c?"ADD":"REMOVE"});break;case "changelists":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.changelist)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "collaborators":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?
void 0:(g=f.collaboratorsUsers)==null?void 0:g.map(wm).join(","),actionType:c?"ADD":"REMOVE"});break;case "comment":break;case "componentId":c&&(f=void 0,d.push({fieldName:e,value:((f=a)==null?0:f.componentId)?String(a.componentId):void 0,actionType:"ADD"}));break;case "customField":f=void 0;if((f=a)==null?0:f.customField)for(f=m(a.customField),g=f.next();!g.done;g=f.next())d.push({fieldName:e,customFieldValue:g.value,actionType:c?"ADD":"REMOVE"});break;case "deletionReason":f=void 0;d.push({fieldName:e,
value:((f=a)==null?void 0:f.deletionReason)||void 0,actionType:c?"ADD":"REMOVE"});break;case "duplicateOfIssueId":f=void 0;d.push({fieldName:e,value:((f=a)==null?void 0:f.duplicateOfIssueId)||void 0,actionType:c?"ADD":"REMOVE"});break;case "effortEstimate":g=f=void 0;d.push({fieldName:e,value:((f=a)==null?void 0:(g=f.effort)==null?void 0:g.estimate)||void 0,actionType:c?"ADD":"REMOVE"});break;case "foundInVersion":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.foundInVersion)==null?
void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "gerritChanges":g=f=void 0;d.push({fieldName:e,gerritChangeValue:(g=(f=a)==null?void 0:f.gerritChanges)!=null?g:void 0,actionType:c?"ADD":"REMOVE"});break;case "hotlists":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.hotlistId)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "inProd":f=void 0;d.push({fieldName:e,value:((f=a)==null?0:f.inProd)?"true":"false",actionType:c?"ADD":"REMOVE"});break;case "isArchived":f=
void 0;d.push({fieldName:e,value:((f=a)==null?0:f.isArchived)?"true":"false",actionType:c?"ADD":"REMOVE"});break;case "isDeleted":f=void 0;d.push({fieldName:e,value:((f=a)==null?0:f.isDeleted)?"true":"false",actionType:c?"ADD":"REMOVE"});break;case "parentId":break;case "priority":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.priority)!=null?g:void 0,actionType:"ADD"}));break;case "readState":break;case "reporter":c&&(f=void 0,d.push({fieldName:e,value:wm((f=a)==null?void 0:f.reporterUser),
actionType:"ADD"}));break;case "severity":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.severity)!=null?g:void 0,actionType:"ADD"}));break;case "sloEndTime":g=f=void 0;d.push({fieldName:e,value:((f=a)==null?0:(g=f.sloEndTime)==null?0:g.seconds)?String(a.sloEndTime.seconds):void 0,actionType:c?"ADD":"REMOVE"});break;case "sloSnoozeType":g=f=void 0;d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.sloSnoozeType)!=null?g:void 0,actionType:c?"ADD":"REMOVE"});break;case "sloStartTime":g=
f=void 0;d.push({fieldName:e,value:((f=a)==null?0:(g=f.sloStartTime)==null?0:g.seconds)?String(a.sloStartTime.seconds):void 0,actionType:c?"ADD":"REMOVE"});break;case "staffing":g=f=void 0;d.push({fieldName:e,staffingValue:(g=(f=a)==null?void 0:f.staffing)!=null?g:void 0,actionType:c?"ADD":"REMOVE"});break;case "status":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.status)!=null?g:void 0,actionType:"ADD"}));break;case "targetedToVersion":g=f=void 0;d.push({fieldName:e,value:(f=
a)==null?void 0:(g=f.targetedToVersion)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "title":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.title)!=null?g:"",actionType:"ADD"}));break;case "type":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.type)!=null?g:void 0,actionType:"ADD"}));break;case "verifiedInVersion":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.verifiedInVersion)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});
break;case "verifier":f=void 0;d.push({fieldName:e,value:((f=a)==null?0:f.verifierUser)?wm(a.verifierUser):void 0,actionType:c?"ADD":"REMOVE"});break;default:wb(e)}return d},Hwb=function(a){var b={addMask:[],removeMask:[],addState:DUa(),removeState:DUa()};a=m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,Fwb(c))if(c.actionType==="REMOVE")Gwb(c,b.removeState),b.removeMask.push(c.fieldName);else{if(c.actionType!=="ADD"&&c.actionType!=="ACTION_TYPE_UNSPECIFIED"&&c.actionType)throw Error("Pf");
Gwb(c,b.addState);b.addMask.push(c.fieldName)}return b},Gwb=function(a,b){switch(a.fieldName){case "assignee":b.assigneeUser=xm(a.value);break;case "attachments":break;case "blockedByIssueId":var c,d;b.blockedByIssueId=(d=(c=a.value)==null?void 0:c.split(",").filter(Pm))!=null?d:[];break;case "blockingIssueId":var e,f;b.blockingIssueId=(f=(e=a.value)==null?void 0:e.split(",").filter(Pm))!=null?f:[];break;case "ccs":var g,k;b.ccUsers=(k=(g=a.value)==null?void 0:g.split(",").map(xm).filter(Pm))!=null?
k:[];break;case "changelists":var l,r;b.changelist=(r=(l=a.value)==null?void 0:l.split(",").filter(Pm))!=null?r:[];break;case "collaborators":var w,x;b.collaboratorsUsers=(x=(w=a.value)==null?void 0:w.split(",").map(xm).filter(Pm))!=null?x:[];break;case "comment":break;case "componentId":b.componentId=a.value||null;break;case "customField":var C;b.customField=(C=b.customField)!=null?C:[];a.customFieldValue&&b.customField.push(a.customFieldValue);break;case "deletionReason":var H;b.deletionReason=
(H=a.value)!=null?H:null;break;case "duplicateOfIssueId":b.duplicateOfIssueId=a.value||null;break;case "effortEstimate":var J;b.effort=(J=b.effort)!=null?J:{estimate:void 0};b.effort.estimate=a.value||void 0;break;case "foundInVersion":var O,R;b.foundInVersion=(R=(O=a.value)==null?void 0:O.split(",").filter(Pm))!=null?R:[];break;case "gerritChanges":var V;b.gerritChanges=(V=a.gerritChangeValue)!=null?V:[];break;case "hotlists":var ca,na;b.hotlistId=(na=(ca=a.value)==null?void 0:ca.split(",").map(Number).filter(Pm))!=
null?na:[];break;case "inProd":b.inProd=a.value==="true";break;case "isArchived":b.isArchived=a.value==="true";break;case "isDeleted":b.isDeleted=a.value==="true";break;case "parentId":break;case "priority":var ua;b.priority=(ua=a.value)!=null?ua:null;break;case "readState":break;case "reporter":b.reporterUser=xm(a.value);break;case "severity":var ia;b.severity=(ia=a.value)!=null?ia:null;break;case "sloEndTime":b.sloEndTime=a.value?JRa(Number(a.value)*1E3):null;break;case "sloSnoozeType":var Ga;b.sloSnoozeType=
(Ga=a.value)!=null?Ga:null;break;case "sloStartTime":b.sloStartTime=a.value?JRa(Number(a.value)*1E3):null;break;case "staffing":var ha;b.staffing=(ha=a.staffingValue)!=null?ha:null;break;case "status":var sa;b.status=(sa=a.value)!=null?sa:null;break;case "targetedToVersion":var xa,Qa;b.targetedToVersion=(Qa=(xa=a.value)==null?void 0:xa.split(",").filter(Pm))!=null?Qa:[];break;case "title":b.title=a.value||"";break;case "type":var bb;b.type=(bb=a.value)!=null?bb:null;break;case "verifiedInVersion":var ub,
Wb;b.verifiedInVersion=(Wb=(ub=a.value)==null?void 0:ub.split(",").filter(Pm))!=null?Wb:[];break;case "verifier":b.verifierUser=xm(a.value);break;default:wb(a.fieldName)}},Fwb=function(a){var b=a.value!=null&&a.value!==""||a.customFieldValue!=null||a.staffingValue!=null||a.formattingMode!=null||a.gerritChangeValue!=null;return Iwb.has(a.fieldName)&&(a.actionType==="REMOVE"||!b)||a.actionType==="ADD"&&!b||Jwb.has(a.fieldName)&&!b?!1:!0},Kwb=function(a){switch(a.type){case "ISSUE_DEDUPLICATION":return"canonical-recommendation";
case "HOTLIST":return"hotlist-recommendation";case "ISSUE_DEDUPLICATION_BATCH":return"canonical-batch-recommendation";case "NEEDS_INFO":return"needs-info-recommendation";case "ANY_ISSUE_EDIT":return"any-issue-edit-recommendation";default:return a.type.toLowerCase()+"-recommendation"}},Lwb=function(a){a&1&&M(0,"b-issue-card",13,1);if(a&2){a=qg(1);var b=P(2);I("onedevIsHovercardReady",a.init)("issueId",b)}},Mwb=function(a){a&1&&(K(0,"span",11),Q(1,"CURRENT ISSUE"),L())},Nwb=function(a,b){a&1&&Q(0);
a&2&&zg(" ",b.length," comment",b.length===1?"":"s"," ")},Owb=function(a,b){a&1&&Q(0);a&2&&zg(" \u00b7 ",b.length," dupe",b.length===1?"":"s"," ")},Pwb=function(a,b){a&1&&(K(0,"div",5),M(1,"div",6)(2,"b-issue-id-cell",7),K(3,"a",8)(4,"span",9),Q(5),L()(),K(6,"onedev-hovercard",null,0),E(8,Lwb,2,2,"b-issue-card",10),L(),F(9,Mwb,2,0,"span",11),K(10,"div",12),F(11,Nwb,1,2),T(12,"async"),F(13,Owb,1,2),T(14,"async"),Q(15),L()());if(a&2){var c,d;a=qg(7);var e=P(),f=P();B(2);I("id",e);B();I("href",f.getIssueLink(e),
Ne);B();I("onedevHovercardTrigger",a);B();yg(b.snapshot[0].title);B(4);G(e===f.currentIssue.issueId?9:-1);B(2);G((c=U(12,9,f.canonicalComments$))?11:-1,c);B(2);G((d=U(14,11,f.canonicalDuplicates$))?13:-1,d);b=(b==null?null:b.aggregatedData==null?null:b.aggregatedData.voteCount)||0;B(2);zg(" \u00b7 ",b>9999?"9999+":b," vote",b===1?"":"s"," ")}},Qwb=function(a,b){a&1&&(F(0,Pwb,16,13,"div",5),T(1,"async"));if(a&2){var c;a=P();G((c=U(1,1,a.issue$(b)))?0:-1,c)}},Rwb=function(a){a&1&&(K(0,"div",15)(1,"span",
26),Q(2," \u2b90 "),L()())},Swb=function(a){a&1&&M(0,"span",17)},Twb=function(a){a&1&&M(0,"b-issue-card",13,3);if(a&2){a=qg(1);var b=P();I("onedevIsHovercardReady",a.init)("issueId",b.issueId)}},Uwb=function(a){a&1&&(K(0,"span",11),Q(1,"CURRENT ISSUE"),L())},Xwb=function(a,b){if(a&1){var c=t();K(0,"div",14);F(1,Rwb,3,0,"div",15);K(2,"div",16);F(3,Swb,1,0,"span",17);M(4,"mat-icon",18);L();M(5,"b-issue-id-cell",7);K(6,"a",19)(7,"span",20);Q(8);L()();K(9,"onedev-hovercard",null,2);E(11,Twb,2,2,"b-issue-card",
10);L();F(12,Uwb,2,0,"span",11);K(13,"div",21)(14,"button",22);N("click",function(){var f=u(c),g=P(2);return v(Vwb(g,f))});M(15,"mat-icon",23);L();K(16,"button",24);N("click",function(){var f=u(c),g=P(2);return v(Wwb(g,f.issueId))});M(17,"mat-icon",25);L()()()}if(a&2){a=qg(10);var d=P().$index,e=P();B();G(d===0?1:-1);B(2);G(d!==0?3:-1);B(2);I("id",b.issueId);B();I("href",e.getIssueLink(b.issueId),Ne);B();I("onedevHovercardTrigger",a);B();yg(b.snapshot[0].title);B(4);G(b.issueId===e.currentIssue.issueId?
12:-1);B(2);If("aria-label","Make "+b.snapshot[0].title+" the canonical issue");B(2);I("disabled",e.draftActions.length<2);If("aria-label","Remove "+b.snapshot[0].title)}},Ywb=function(a,b){a&1&&(F(0,Xwb,18,10,"div",14),T(1,"async"));if(a&2){var c;a=b.$implicit;b=P();G((c=U(1,1,b.issue$(a.issueId)))?0:-1,c)}},Zwb=function(a){if(a&1){var b=t();K(0,"div")(1,"button",27);N("click",function(){u(b);P().showExpansionOption=!1;return v()});K(2,"span");Q(3);L()()()}a&2&&(a=P(),B(),If("aria-label","View "+
a.hiddenActionCount+" more issues"),B(2),S("View ",a.hiddenActionCount," more"))},$wb=function(a){a&1&&Vf(0)},cxb=function(a){if(a&1){var b=t();K(0,"div",1);N("keydown",function(c){u(b);var d=P();return v(d.processKeydown(c))});K(1,"div",2);E(2,$wb,1,0,"ng-container",3);L();K(3,"div",4)(4,"button",5);N("click",function(){u(b);var c=P();return v(axb(c))});Q(5,"Save");L();K(6,"button",6);N("click",function(){u(b);var c=P();return v(bxb(c))});Q(7,"Cancel");L()()()}a&2&&(a=P(),I("cdkTrapFocusAutoCapture",
!0),B(2),I("ngTemplateOutlet",a.editorTemplate),B(2),I("disabled",a.saveDisabled()))},dxb=function(a){if(a&1){var b=t();K(0,"input",4,2);N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P();return v(d.selectAutocomplete(c))});L()}a&2&&(a=P(),I("required",a.required)("peoplekitAutocompleteConfig",a.mergedAutocompleteConfig)("peoplekitSearchSessionOptions",a.sessionOptions)("formControl",a.inputValue))},exb=function(a){a&1&&Q(0);a&2&&(a=P(),S(" ",a.displayValueOverride," "))},fxb=function(a){a&
1&&Vf(0)},hxb=function(a){a&1&&E(0,fxb,1,0,"ng-container",4);a&2&&(a=P(),I("ngTemplateOutlet",a.selectedUserTemplate)("ngTemplateOutletContext",Ig(2,gxb,a.email)))},ixb=function(a){a&1&&Q(0);a&2&&(a=P(),S(" ",a.email," "))},jxb=function(a){a&1&&(yd(),K(0,"svg",5),M(1,"path",6),L())},kxb=function(a){a&1&&M(0,"b-user-membership-chip",3);if(a&2){a=P().$implicit;var b=P(),c;I("user",b.user)("email",a)("teamId",(c=b.teamId)!=null?c:"")("enableSmallChip",!0)}},lxb=function(a,b){a&1&&F(0,kxb,1,4,"b-user-membership-chip",
3);a&2&&(a=b.$implicit,b=P(),G(a&&b.user?0:-1))},mxb=function(a,b){return this.groupTrackBy(b)},nxb=function(a){a&1&&M(0,"b-user-picker",13);if(a&2){P(2);a=ag(3);P(2);var b=ag(1),c=P();I("user",a)("teamId",c.getTeamId(b))("disabled",!0)}},oxb=function(a){a&1&&(K(0,"span",14),Q(1,"<none>"),L())},pxb=function(a){a&1&&(F(0,nxb,1,3,"b-user-picker",13)(1,oxb,2,0,"span",14),K(2,"mat-icon",15),Q(3," -> "),L());a&2&&(P(),a=ag(3),G(a?0:1))},qxb=function(a){a&1&&(K(0,"span",11),Q(1,"Reporter"),L())},sxb=function(a){if(a&
1){var b=t();K(0,"button",16);N("click",function(){u(b);P();var f=qg(6);return v(f.openPopOver())});M(1,"mat-icon",17);L();Vf(2,18)}if(a&2){a=P(3).$implicit;var c=ag(0),d=P(),e=qg(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Ig(3,rxb,a))}},uxb=function(a){if(a&1){var b=t();K(0,"span",8);Q(1,"Assignee");L();K(2,"div",9);Zf(3);F(4,pxb,4,1);K(5,"b-user-picker",10,1);T(7,"emailToUser");N("emailChange",function(g){u(b);P(2);var k=ag(0),l=P();
return v(txb(l,k,g))});L();F(8,qxb,2,0,"span",11);L();K(9,"div",12);F(10,sxb,3,5);L()}if(a&2){P(2);a=ag(0);var c=ag(1),d=P();B(3);var e=$f(d.getAssignee(c)),f=e&&!a.value&&a.actionType===d.ActionType.REMOVE;B();G(f||a.value&&(e==null?null:e.emailAddress)!=a.value?4:-1);B();I("user",f?void 0:a.value?U(7,8,a.value):e)("displayValueOverride",f?"<none>":"")("teamId",d.getTeamId(c))("disabled",!a.allowEdit||d.excludedActions.has(a.actionKey));B(3);G(a.value===d.userToLossyEmail(d.getReporter(c))?8:-1);
B(2);G(a.allowEdit?10:-1)}},vxb=function(a){a&1&&(M(0,"b-edit-field",21),K(1,"mat-icon",15),Q(2," -> "),L());if(a&2){P(3);a=ag(1);var b=P(),c;I("type",b.FieldType.ENUM)("value",(c=b.getPriority(a))!=null?c:null)("choices",b.priorityChoices)("readonly",!0)}},xxb=function(a){if(a&1){var b=t();K(0,"button",22);N("click",function(f){u(b);P();var g=qg(5);return v(Zr(g,f,!0,!0))});M(1,"mat-icon",17);L();Vf(2,18)}if(a&2){a=P(3).$implicit;var c=ag(0),d=P(),e=qg(4);I("disabled",d.excludedActions.has(c.actionKey));
B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Ig(3,wxb,a))}},yxb=function(a){if(a&1){var b=t();K(0,"span",8);Q(1,"Priority");L();K(2,"div",19);F(3,vxb,3,4);K(4,"b-edit-field",20,2);N("valueChange",function(g){u(b);P(2);var k=ag(0),l=P();return v(txb(l,k,g!=null?g:l.IssuePriority.P2))});L()();K(6,"div",12);F(7,xxb,3,5);L()}if(a&2){P(2);a=ag(0);var c=ag(1),d=P();c=d.getPriority(c);B(3);G(a.value&&c!==a.value?3:-1);B();var e,f;I("type",d.FieldType.ENUM)("value",(f=(e=a.value)!=null?e:c)!=null?
f:null)("choices",d.priorityChoices)("readonly",!a.allowEdit);B(3);G(a.allowEdit?7:-1)}},Bxb=function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(){u(b);P(4);var f=ag(0),g=ag(1),k=P();return v(zxb(k,f,g))});M(1,"mat-icon",17);L();Vf(2,18)}if(a&2){a=P(4).$implicit;var c=ag(0),d=P(),e=qg(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Ig(3,Axb,a))}},Cxb=function(a){a&1&&(K(0,"div",8),Q(1,"Comment"),L(),K(2,"div",19),M(3,"b-live-preview",
23),T(4,"async"),L(),K(5,"div",12),F(6,Bxb,3,5),L());if(a&2){P(3);a=ag(0);var b=P();B(3);var c,d;I("comment",a.value)("issueId",a.issueId)("audience",(c=U(4,5,b.formattingAudience$))!=null?c:void 0)("formattingMode",(d=a.formattingMode)!=null?d:b.FormattingMode.PLAIN);B(3);G(a.allowEdit?6:-1)}},Dxb=function(a){a&1&&F(0,Cxb,7,7);a&2&&(a=P(3),G(a.includeCommentByDefault?0:-1))},Exb=function(a){a&1&&(M(0,"b-component-breadcrumb-chip",26),K(1,"mat-icon",15),Q(2," -> "),L());if(a&2){P(3);a=ag(0);var b=
ag(1),c=P();I("issueId",a.issueId)("componentId",c.getComponentId(b))("compactMode",!0)("readOnly",!0)}},Gxb=function(a){if(a&1){var b=t();K(0,"button",27);N("click",function(){u(b);P();var f=qg(5);f.editing=!0;f.cdr.markForCheck();return v()});M(1,"mat-icon",17);L();Vf(2,18)}if(a&2){a=P(3).$implicit;var c=ag(0),d=P(),e=qg(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Ig(3,Fxb,a))}},Hxb=function(a){if(a&1){var b=t();K(0,"span",8);Q(1,"Component");
L();K(2,"div",19);F(3,Exb,3,4);K(4,"b-component-breadcrumb-chip",25,3);N("componentChanged",function(d){u(b);P(2);var e=ag(0),f=P();return v(txb(f,e,d))});L()();K(6,"div",12);F(7,Gxb,3,5);L()}if(a&2){P(2);a=ag(0);var c=ag(1);c=P().getComponentId(c);B(3);G(c!==a.value?3:-1);B();I("issueId",a.issueId)("componentId",a.value)("compactMode",!0)("handleSave",!1)("showPickerOverlayAbove",!1)("readOnly",!0);B(3);G(a.allowEdit?7:-1)}},Ixb=function(a){a&1&&(K(0,"mat-icon",29),Q(1," + "),L(),M(2,"b-hotlist-chip",
30));a&2&&(P(2),a=ag(1),B(2),I("hotlist",a)("removable",!1))},Jxb=function(a){a&1&&F(0,Ixb,3,2);a&2&&(P(),a=ag(1),G(a?0:-1))},Kxb=function(a){a&1&&(K(0,"mat-icon",31),Q(1," - "),L(),M(2,"b-hotlist-chip",30));a&2&&(P(),a=ag(1),B(2),I("hotlist",a)("removable",!1))},Lxb=function(a,b){a&1&&(K(0,"div",28),Zf(1),T(2,"async"),F(3,Jxb,1,1)(4,Kxb,3,2),L());if(a&2){a=b.$implicit;b=P().$implicit;P(3);var c=ag(1),d=P();B();$f(U(2,1,d.hotlist$(a)));B(2);G(b.actionType!==d.ActionType.ADD||d.hasHotlist(c,a)?b.actionType===
d.ActionType.REMOVE&&d.hasHotlist(c,a)?4:-1:3)}},Mxb=function(a,b){a&1&&Nf(0,Lxb,5,4,"div",28,Mf);a&2&&(a=b.$implicit,b=P(4),Of(b.split(a.value)))},Oxb=function(a){if(a&1){var b=t();K(0,"button",32);N("click",function(){u(b);var f=P(3).$implicit,g=P();return v(g.openHotlistPicker(f))});M(1,"mat-icon",17);L();Vf(2,18)}if(a&2){a=P(3).$implicit;var c=ag(0),d=P(),e=qg(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Ig(3,Nxb,a))}},Qxb=function(a){a&
1&&(K(0,"span",8),Q(1,"Hotlist"),L(),K(2,"div",19),Nf(3,Mxb,2,0,null,null,Pxb),L(),K(5,"div",12),F(6,Oxb,3,5),L());if(a&2){a=P(2).$implicit;var b=ag(0);B(3);Of(a);B(3);G(b.allowEdit?6:-1)}},Rxb=function(a){a&1&&(K(0,"mat-icon",33),Q(1," + "),L(),M(2,"b-user-picker",13),T(3,"emailToUser"));if(a&2){a=P().$implicit;P(4);var b=ag(1),c=P();B(2);I("user",U(3,3,a)||void 0)("teamId",c.getTeamId(b))("disabled",!0)}},Sxb=function(a){a&1&&(K(0,"mat-icon",34),Q(1," - "),L(),M(2,"b-user-picker",13),T(3,"emailToUser"));
if(a&2){a=P().$implicit;P(4);var b=ag(1),c=P();B(2);I("user",U(3,3,a)||void 0)("teamId",c.getTeamId(b))("disabled",!0)}},Uxb=function(a,b){a&1&&(K(0,"div",28),F(1,Rxb,4,5)(2,Sxb,4,5),L());if(a&2){a=b.$implicit;b=P().$implicit;P(3);var c=ag(1),d=P();B();G(b.actionType!==d.ActionType.ADD||Txb(c,a)?b.actionType===d.ActionType.REMOVE&&Txb(c,a)?2:-1:1)}},Vxb=function(a,b){a&1&&Nf(0,Uxb,3,1,"div",28,Mf);a&2&&(a=b.$implicit,b=P(4),Of(b.split(a.value)))},Xxb=function(a){a&1&&(K(0,"span",8),Q(1,"CCs"),L(),
K(2,"div",9),Nf(3,Vxb,2,0,null,null,Pxb),L(),K(5,"div",12),Vf(6,18),L());if(a&2){a=P(2).$implicit;P();var b=qg(4);B(3);Of(a);B(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,Wxb,a))}},Yxb=function(a){a&1&&(M(0,"b-edit-field",21),K(1,"mat-icon",15),Q(2," -> "),L());if(a&2){P(3);a=ag(1);var b=P(),c;I("type",b.FieldType.ENUM)("value",(c=b.getStatus(a))!=null?c:null)("choices",b.statusChoices)("readonly",!0)}},$xb=function(a){if(a&1){var b=t();K(0,"span",8);Q(1,"Status");L();K(2,"div",9);F(3,
Yxb,3,4);K(4,"b-edit-field",20,4);N("valueChange",function(l){u(b);P(2);var r=ag(0),w=P();return v(txb(w,r,l!=null?l:w.IssueStatus.NEW))});L()();K(6,"div",12);Vf(7,18);L()}if(a&2){a=P(2).$implicit;var c=ag(0),d=ag(1),e=P(),f=qg(4);d=e.getStatus(d);B(3);G(c.value&&d!==c.value?3:-1);B();var g,k;I("type",e.FieldType.ENUM)("value",(k=(g=c.value)!=null?g:d)!=null?k:null)("choices",e.statusChoices)("readonly",!0);B(3);I("ngTemplateOutlet",f)("ngTemplateOutletContext",Ig(7,Zxb,a))}},ayb=function(a){a&1&&
F(0,uxb,11,10)(1,yxb,8,6)(2,Dxb,1,1)(3,Hxb,8,8)(4,Qxb,7,1)(5,Xxb,7,4)(6,$xb,8,9);if(a&2){var b;P();a=ag(0);var c=P();G((b=a.fieldName)===c.IssueFieldName.ASSIGNEE?0:b===c.IssueFieldName.PRIORITY?1:b===c.IssueFieldName.COMMENT?2:b===c.IssueFieldName.COMPONENT_ID?3:b===c.IssueFieldName.HOTLISTS?4:b===c.IssueFieldName.CCS?5:b===c.IssueFieldName.STATUS?6:-1)}},byb=function(a,b){a&1&&(Zf(0)(1),T(2,"async"),K(3,"div",7),F(4,ayb,7,1),L());if(a&2){b=b.$implicit;a=P();b=$f(b[0]);B();var c=$f(U(2,6,a.issue$(b.issueId)));
B(2);wg("excluded",a.excludedActions.has(b.actionKey))("hide-comment",!a.includeCommentByDefault);B();G(c?4:-1)}},cyb=function(a){if(a&1){var b=t();K(0,"button",37);N("click",function(){u(b);var c=P(2).group,d=P();c=m(c);for(var e=c.next();!e.done;e=c.next())d.excludedActions.delete(e.value.actionKey);d.updateActionsToAccept();return v()});M(1,"mat-icon",38);L()}a&2&&(a=P(2).fieldName,I("matTooltip",Eg("Include ",a)),If("aria-label","Include "+a))},dyb=function(a){if(a&1){var b=t();K(0,"button",39);
N("click",function(){u(b);var c=P(2).group,d=P();c=m(c);for(var e=c.next();!e.done;e=c.next())d.excludedActions.add(e.value.actionKey);d.updateActionsToAccept();return v()});M(1,"mat-icon",40);L()}a&2&&(a=P(2).fieldName,I("matTooltip",Eg("Exclude ",a)),If("aria-label","Exclude "+a))},eyb=function(a){a&1&&F(0,cyb,2,3,"button",35)(1,dyb,2,3,"button",36);if(a&2){P();a=ag(0);var b=P();G(b.excludedActions.has(a.actionKey)?0:1)}},fyb=function(a,b){a&1&&(Zf(0),F(1,eyb,2,1));a&2&&(a=$f(b.group[0]),B(),G(a.allowExclude?
1:-1))},gyb=function(a,b){a=eo(a,function(f){return f.actionKey});var c=[];b=m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=a.get(d.actionKey);e&&e.isDirty?c.push(e):c.push(d)}return nm(c)},iyb=function(a,b){if(a&1){var c=t();K(0,"b-dedupe-actions-component",11);T(1,"async");N("actionsToAccept",function(e){u(c);var f=P(2);return v(f.updateActionsToAccept(e))});L()}if(a&2){a=P(2);var d;I("currentIssue",b)("actions",(d=U(1,2,a.actions$))!=null?d:Hg(4,hyb))}},jyb=function(a){a&1&&(F(0,iyb,
2,5,"b-dedupe-actions-component",10),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.currentIssue$))?0:-1,b)}},kyb=function(a){if(a&1){var b=t();K(0,"b-issue-actions-component",12);T(1,"async");N("actionsToAccept",function(d){u(b);var e=P();return v(e.updateActionsToAccept(d))});L()}if(a&2){a=P();var c;I("actions",(c=U(1,2,a.actions$))!=null?c:Hg(4,hyb))("includeCommentByDefault",a.includeComment||a.recommendation.type!==a.RecommendationType.ANY_ISSUE_EDIT)}},lyb=function(a){a&1&&M(0,"b-formatted-comment-presenter",
14);a&2&&(a=P(2),I("formattedComment",a.recommendation.rationale.formattedText)("canEditComment",!1))},myb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),yg(a.recommendation.rationale.text))},nyb=function(a){a&1&&(M(0,"mat-divider"),K(1,"div",13)(2,"b"),Q(3,"Rationale: "),L(),F(4,lyb,1,2,"b-formatted-comment-presenter",14)(5,myb,2,1,"span"),L());a&2&&(a=P(),B(4),G(a.recommendation.rationale.formattedText?4:5))},oyb=function(a){a&1&&M(0,"b-spinner",8)},pyb=function(a){if(a&1){var b=t();K(0,
"div",9)(1,"button",15);N("click",function(){u(b);var c=P(),d=ag(16);return v(c.openLink(d))});M(2,"mat-icon",16);L()()}},qyb=function(a){a&1&&M(0,"div",2)},ryb=function(a){a&1&&(Tf(0),cg(1),Uf())},syb=function(a){a&1&&(yd(),K(0,"svg",1),M(1,"path",2),L());a&2&&(a=P(),I("matTooltip",a.warning))},tyb=function(a){a&1&&M(0,"b-availability-chip",3);a&2&&(a=P(),I("user",a.user))},uyb=function(a){a&1&&(K(0,"div",4),cg(1,1),L());a&2&&(a=P(),I("id",Eg("expansion-panel-content-",a.instance)),If("aria-labelledby",
"expansion-panel-header-"+a.instance))},vyb=function(a,b){a&1&&(K(0,"div")(1,"span",16),Q(2,"Phase:\u00a0"),L(),K(3,"span",17),Q(4),L()());a&2&&(B(4),yg(b))},wyb=function(a,b){a&1&&(K(0,"div")(1,"span",16),Q(2,"Subphase:\u00a0"),L(),K(3,"span",17),Q(4),L()());a&2&&(B(4),yg(b))},xyb=function(a){a&1&&M(0,"b-issue-card",20,1);if(a&2){a=qg(1);var b=P();I("onedevIsHovercardReady",a.init)("issueId",b)}},yyb=function(a,b){a&1&&(K(0,"span",18),Q(1),L(),K(2,"onedev-hovercard",null,0),E(4,xyb,2,2,"b-issue-card",
19),L());a&2&&(a=qg(3),I("onedevHovercardTrigger",a),B(),S("Duplicate of ",b))},Ayb=function(a,b){if(a&1){var c=t();K(0,"span",16);Q(1,"Triager:\u00a0");L();M(2,"b-user-image",22);K(3,"b-single-user-control",23,3);T(5,"async");N("valueChange",function(f){u(c);var g=P(3);return v(zyb(g,f.newEmail))})("emailChange",function(f){u(c);var g=P(3);return v(zyb(g,f))});L();K(6,"button",24);N("click",function(f){u(c);qg(4).openEditor();return v(f.stopPropagation())});M(7,"mat-icon",25);L()}if(a&2){P();a=qg(1);
var d=P(2);B(2);I("email",b);B();var e;I("name","triager")("anchor",a)("title","Triager")("value",b)("user",(e=U(5,6,d.triager$))!=null?e:void 0)}},Byb=function(a){if(a&1){var b=t();K(0,"button",26);N("click",function(){u(b);var c=P(3);return v(c.claim())});Q(1," Claim ");L()}},Cyb=function(a){a&1&&(K(0,"div",10,2),F(2,Ayb,8,8),T(3,"async"),Kf(4,Byb,2,0,"button",21),L());if(a&2){var b;a=P(2);B(2);G((b=U(3,1,a.triagerEmail$))?2:4,b)}},Dyb=function(a,b){a&1&&(K(0,"span",45),Q(1,"Reporter:"),L(),M(2,
"b-user-image",22)(3,"b-user-display",51),K(4,"onedev-hovercard",null,5),M(6,"b-issue-person-card",52),L());if(a&2){a=qg(5);var c=P();B(2);I("email",b);B();I("onedevHovercardTrigger",a)("model",c);B(3);I("email",b)}},Eyb=function(a){a&1&&(F(0,Dyb,7,4),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.reporterEmail$))?0:-1,b)}},Fyb=function(a){if(a&1){var b=t();K(0,"b-event-stream-header",53);N("click",function(c){u(b);return v(c.stopPropagation())});L()}},Gyb=function(a,b){a&1&&(K(0,"b-expansion-panel",
36),Tf(1,37),K(2,"div",42),M(3,"mat-icon",54),K(4,"h4",44),Q(5,"Deduplicate"),L()(),Uf(),M(6,"b-recommendation",55),L());a&2&&(I("expanded",!0),B(6),I("recommendation",b))},Hyb=function(a,b){a&1&&(K(0,"b-expansion-panel",36),Tf(1,37),K(2,"div",42),M(3,"mat-icon",54),K(4,"h4",44),Q(5,"Buganizer AI"),L()(),Uf(),M(6,"b-recommendation",55),L());a&2&&(I("expanded",!0),B(6),I("recommendation",b))},Iyb=function(a){a&1&&(F(0,Hyb,7,2,"b-expansion-panel",36),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.triageRecommendation$))?
0:-1,b)}},Kyb=function(a){a&1&&M(0,"suggested-similar-issues",56);if(a&2){a=P();var b=P(2),c=P();I("issueId",b)("similarIssueIds",a)("similarIssuesEnrichments",Hg(4,Jyb))("limit",c.MAX_SIMILAR_ISSUES)}},Lyb=function(a,b){a&1&&F(0,Kyb,1,5,"suggested-similar-issues",56);a&2&&G(b.length?0:-1)},Myb=function(a,b){if(a&1){var c=t();K(0,"secondary-footer",58);N("cancelAction",function(){u(c);var d=P(4);return v(d.cancelAction())})("finalizeAction",function(d){u(c);var e=P(4);return v(e.finalizeSecondaryAction(d))});
L()}a&2&&(a=P(4),I("needsInfoAutomaticChanges",b)("selectedTriageAction",a.selectedTriageAction))},Nyb=function(a){a&1&&(F(0,Myb,1,2,"secondary-footer",57),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.needsInfoAutomaticChanges$))?0:-1,b)}},Oyb=function(a,b){if(a&1){var c=t();K(0,"button",61);T(1,"async");N("click",function(){var d=u(c).$implicit,e=P(4),f=P();return v(f.openSecondaryActionFooter(d.key,e))});Q(2);L()}a&2&&(a=b.$implicit,b=P(5),I("disabled",!U(1,2,b.hasAclToEdit$)),B(2),S(" ",a.displayAs,
" "))},Qyb=function(a,b){if(a&1){var c=t();K(0,"triage-action-selector",59);N("onSelect",function(d){u(c);var e=P(3),f=P();return v(f.openSecondaryActionFooter(d.key,e))});L();Nf(1,Oyb,3,4,"button",60,Pyb)}a&2&&(a=P(4),I("phase",b),B(),Of(a.PHASE_TO_ACTIONS.get(b)))},Ryb=function(a){a&1&&(F(0,Qyb,3,1),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.issuePhase$))?0:-1,b)}},Syb=function(a,b){a&1&&(K(0,"div",27)(1,"div",28),M(2,"issue-title",29),T(3,"async"),K(4,"div",30)(5,"div")(6,"span",31),Q(7),
T(8,"enumToHuman"),L()(),K(9,"div")(10,"span",32),M(11,"b-issue-priority-display",33),L()(),M(12,"mat-divider",34)(13,"b-issue-hotlists",35),L()(),K(14,"b-expansion-panel",36),Tf(15,37),K(16,"div",38),M(17,"mat-icon",39),K(18,"h4",40),Q(19,"Description"),L(),F(20,Eyb,2,3),T(21,"async"),L(),Uf(),M(22,"b-issue-description",41),L(),K(23,"b-expansion-panel",36,4),Tf(25,37),K(26,"div",42),M(27,"mat-icon",43),K(28,"h4",44),Q(29),T(30,"async"),L(),F(31,Fyb,1,0,"b-event-stream-header",45),T(32,"async"),L(),
Uf(),M(33,"b-event-stream",46),T(34,"async"),T(35,"async"),T(36,"async"),T(37,"async"),L(),F(38,Gyb,7,2,"b-expansion-panel",36),T(39,"async"),F(40,Iyb,2,3),K(41,"b-expansion-panel",36),Tf(42,37),K(43,"div",42),M(44,"mat-icon",47),K(45,"h4",48),Q(46),T(47,"async"),L(),M(48,"mat-icon",49),T(49,"async"),L(),Uf(),F(50,Lyb,1,1),T(51,"async"),L()(),K(52,"div",50),F(53,Nyb,2,3)(54,Ryb,2,3),L());if(a&2){var c,d,e,f,g,k;a=qg(24);var l=P(),r=P();B(2);I("title",b.snapshot[0].title)("issueId",l)("componentId",
b.snapshot[0].componentId)("hasAclToEdit",U(3,27,r.hasAclToEdit$));B(5);yg(U(8,29,b.snapshot[0].type));B(4);I("issuePriority",b.snapshot[0].priority);B();I("vertical",!0);B();I("issueId",l);B();I("expanded",!0);B(6);G((c=U(21,31,r.reporterUser$))?20:-1,c);B(2);I("id",l);B();I("expanded",!0);B(6);S("Comments (",(d=U(30,33,r.comments$))==null?null:d.length,")");B(2);G(a.expanded&&((e=U(32,35,r.comments$))==null?0:e.length)?31:-1);B(2);I("issueId",l)("events",U(34,37,r.events$))("issueAccessLevel",U(35,
39,r.accessLevel$))("showFullHistory",U(36,41,r.preferences.showFullHistory$));If("data-will-inline-screenshots",U(37,43,r.enableInlineScreenshots$)?!0:null);B(5);G((f=U(39,45,r.dedupeRecommendation$))?38:-1,f);B(2);G(r.isPlaybookEnabled?40:-1);B();I("expanded",!0);B(5);S(" Similar issues (",(g=U(47,47,r.similarIssueIds$))==null?null:g.length,") ");B(2);var w;I("matTooltip",Eg("Similar issues found in query: ",(w=U(49,49,r.triageScope$))!=null?w:""));B(2);G((k=U(51,51,r.similarIssueIds$))?50:-1,k);
B(3);G(r.displaySecondaryFooter?53:54)}},Tyb=function(a,b){if(a&1){var c=t();K(0,"div",6)(1,"div",7)(2,"div",8);M(3,"b-issue-id-picker",9);F(4,vyb,5,1,"div");T(5,"async");F(6,wyb,5,1,"div");T(7,"async");F(8,yyb,5,2);T(9,"async");F(10,Cyb,5,3,"div",10);T(11,"async");L();K(12,"div",11)(13,"a",12);M(14,"mat-icon",13);L();K(15,"button",14);N("click",function(){u(c);var k=P();return v(k.triageService.closeSidebar())});M(16,"mat-icon",15);L()()();F(17,Syb,55,53);T(18,"async");L()}if(a&2){var d,e,f,g;a=
P();B(3);I("issueId",b)("showCopyOptions",!1);B();G((d=U(5,9,a.issuePhaseDisplay$))?4:-1,d);B(2);G((e=U(7,11,a.issueSubphaseDisplay$))?6:-1,e);B(2);G((f=U(9,13,a.canonicalIssueId$))?8:-1,f);B(2);G(U(11,15,a.issuePhase$)===a.TriagePhase.NEW?10:-1);B(3);I("href",Eg("/issues/",b),Ne);B(4);G((g=U(18,17,a.issue$))?17:-1,g)}},Vyb=function(a,b){if(a&1){var c=t();Zf(0);T(1,"async");Zf(2);T(3,"async");K(4,"button",1);N("click",function(){var e=u(c),f=ag(0),g=P();return v(Uyb(g,e,f))});Q(5);L()}if(a&2){a=P();
$f(U(1,3,a.hasUserClaimedIssues$));var d=U(3,6,a.buttonText$);B(4);I("ariaLabel",d+" "+b.length+" issues")("disabled",a.isSaving);B();yg(d)}},Wyb=function(a,b){a&1&&(K(0,"div",2)(1,"span",8),Q(2,"Phase:\u00a0"),L(),K(3,"span",9),Q(4),L()());a&2&&(B(4),yg(b))},Xyb=function(a,b){a&1&&(K(0,"span",10),Q(1),L());a&2&&(a=b.$implicit,B(),yg(a))},Yyb=function(a){a&1&&(K(0,"div")(1,"span",8),Q(2,"Subphase:\u00a0"),L(),Nf(3,Xyb,2,1,"span",10,Mf),L());a&2&&(a=P(),B(3),Of(a))},Zyb=function(a,b){a&1&&F(0,Yyb,
5,0,"div");a&2&&G(b.length?0:-1)},$yb=function(a){if(a&1){var b=t();K(0,"secondary-footer",12);N("cancelAction",function(){u(b);var c=P(3);return v(c.cancelAction())})("finalizeAction",function(c){u(b);var d=P(3);return v(d.finalizeSecondaryAction(c))});L()}a&2&&(a=P(3),I("selectedTriageAction",a.selectedTriageAction))},azb=function(a,b){if(a&1){var c=t();K(0,"button",15);T(1,"async");N("click",function(){var d=u(c).$implicit,e=P(3),f=P();return v(f.openSecondaryActionFooter(d.key,e))});Q(2);L()}a&
2&&(a=b.$implicit,b=P(4),I("disabled",!U(1,2,b.hasAclToEdit$)),B(2),S(" ",a.displayAs," "))},bzb=function(a){a&1&&M(0,"claim-issues-button")},dzb=function(a){if(a&1){var b=t();K(0,"triage-action-selector",13);N("onSelect",function(d){u(b);var e=P(2),f=P();return v(f.openSecondaryActionFooter(d.key,e))});L();Nf(1,azb,3,4,"button",14,czb);F(3,bzb,1,0,"claim-issues-button")}if(a&2){a=P();var c=P(2);I("phase",a);B();Of(c.PHASE_TO_ACTIONS.get(a));B(2);G(a===c.TriagePhase.NEW?3:-1)}},ezb=function(a){a&
1&&F(0,$yb,1,1,"secondary-footer",11)(1,dzb,4,2);a&2&&(a=P(2),G(a.displaySecondaryFooter?0:1))},fzb=function(a){a&1&&(F(0,ezb,2,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.issuePhase$))?0:-1,b)}},gzb=function(a){a&1&&M(0,"b-formatted-date-time",2);a&2&&(a=P(),I("date",a.value))},hzb=function(a){a&1&&(Tf(0),Q(1,"---"),Uf())},izb=function(a,b){if(a&1){var c=t();K(0,"div",4)(1,"mat-checkbox",8);N("change",function(){var d=u(c).$implicit,e=P();return v(e.changeSelection(d))})("click",function(d){u(c);
return v(d.stopPropagation())});Q(2);L()()}a&2&&(a=b.$implicit,b=P(),I("title",b.getDisplayString(a)),B(),I("checked",!!b.valueMap.get(a))("indeterminate",b.valueMap.get(a)===null),B(),S(" ",b.getDisplayString(a)," "))},kzb=function(a){if(a&1){var b=t();K(0,"input",9,1);N("keydown",function(c){u(b);var d=P();c.key==="Enter"&&(jzb(d)&&d.addValue(),c.preventDefault());return v()})("click",function(c){u(b);return v(c.stopPropagation())});Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.filterValue,
c)||(d.filterValue=c);return v(c)});L()}a&2&&(a=P(),I("type",a.type==="REPEATED_NUMERIC"?"number":"text"),Ag("ngModel",a.filterValue),I("placeholder",a.type==="REPEATED_ENUM"?"Filter values":"Add or filter values"))},lzb=function(a){a&1&&M(0,"mat-divider")},mzb=function(a){if(a&1){var b=t();K(0,"div",10);N("click",function(c){u(b);var d=P();c.stopPropagation();return v(d.addValue())});Q(1," Add ");L()}},nzb=function(a){if(a&1){var b=t();K(0,"div")(1,"b-date-time-input",11);Cg("valueChange",function(c){u(b);
var d=P();Bg(d.currentSelectedDate,c)||(d.currentSelectedDate=c);return v(c)});L();K(2,"div",12);N("click",function(c){u(b);var d=P();c.stopPropagation();if(c=d.currentSelectedDate)d.filterValue=c?c.getMonth()+1+"/"+c.getDate()+"/"+c.getFullYear():"",d.addValue(),d.currentSelectedDate=void 0;return v()});Q(3," Add ");L()()}a&2&&(a=P(),B(),Ag("value",a.currentSelectedDate))},ozb=function(a){if(a&1){var b=t();K(0,"div",6);yd();K(1,"svg",7);M(2,"path",8);L();zd();K(3,"input",9,0);N("input",function(){u(b);
var c=qg(4),d=P();return v(d.filterText$.next(c.value))});L()()}},pzb=function(a){a&1&&Vf(0)},rzb=function(a){if(a&1){var b=t();K(0,"div",12);N("click",function(){u(b);var d=P(2);return v(d.select(d.emptyOptionValue))});E(1,pzb,1,0,"ng-container",13);L()}if(a&2){P();a=qg(4);var c=P();I("option",c.emptyOptionValue);If("aria-selected",c.isSelected(c.emptyOptionValue));B();I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(4,qzb,c.emptyOptionValue))}},szb=function(a){a&1&&Vf(0)},tzb=function(a){if(a&
1){var b=t();K(0,"div",12);N("click",function(){u(b);var e=P().$implicit,f=P(2);return v(f.select(e))});E(1,szb,1,0,"ng-container",13);L()}if(a&2){a=P().$implicit;P();var c=qg(4),d=P();I("option",a);If("aria-selected",d.isSelected(a));B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ig(4,qzb,a))}},uzb=function(a,b){a&1&&(Tf(0),E(1,tzb,2,6,"div",10),Uf());a&2&&(a=b.$implicit,B(),I("ngIf",a))},vzb=function(a){a&1&&(Tf(0),Q(1),Uf());a&2&&(a=P(2).$implicit,B(),S(" ",a," "))},wzb=function(a){a&1&&
(K(0,"span",15),Q(1,"--"),L())},xzb=function(a){a&1&&(Tf(0),E(1,vzb,2,1,"ng-container",14)(2,wzb,2,0,"ng-template",null,3,Mg),Uf());if(a&2){a=qg(3);var b=P().$implicit;B();I("ngIf",b!=null)("ngIfElse",a)}},yzb=function(a){a&1&&Vf(0)},zzb=function(a){a&1&&E(0,yzb,1,0,"ng-container",13);if(a&2){a=P().$implicit;var b=P(2);I("ngTemplateOutlet",b.optionTemplate)("ngTemplateOutletContext",Ig(2,qzb,a))}},Azb=function(a){a&1&&E(0,xzb,4,2,"ng-container",14)(1,zzb,1,4,"ng-template",null,2,Mg);if(a&2){a=qg(2);
var b=P(2);I("ngIf",!b.optionTemplate)("ngIfElse",a)}},Bzb=function(a,b){a&1&&(Tf(0),E(1,rzb,2,6,"div",10)(2,uzb,2,1,"ng-container",11)(3,Azb,3,2,"ng-template",null,1,Mg),Uf());a&2&&(a=b.ngIf,b=P(),B(),I("ngIf",b.includeEmptyOption),B(),I("ngForOf",a))},Czb=function(a){a&1&&Vf(0)},Ezb=function(a){a&1&&(Tf(0),E(1,Czb,1,0,"ng-container",11),Uf());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Ig(2,Dzb,a.value)))},Fzb=function(a){a&1&&Vf(0)},Gzb=function(a){a&1&&(Tf(0),
E(1,Fzb,1,0,"ng-container",11),Uf());a&2&&(a=P(2),B(),I("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",Ig(2,Dzb,a.value)))},Hzb=function(a){a&1&&E(0,Gzb,2,4,"ng-container",7);if(a&2){a=P();var b=qg(8);I("ngIf",a.optionTemplate)("ngIfElse",b)}},Izb=function(a){a&1&&(Tf(0),Q(1),Uf());a&2&&(a=P(2),B(),S(" ",a.value," "))},Jzb=function(a){a&1&&(K(0,"span",12),Q(1,"--"),L())},Kzb=function(a){a&1&&E(0,Izb,2,1,"ng-container",7)(1,Jzb,2,0,"ng-template",null,4,Mg);if(a&2){a=qg(2);var b=P();
I("ngIf",b.value!=null)("ngIfElse",a)}},Lzb=function(a){a&1&&(yd(),K(0,"svg",13),M(1,"path",14),L())},Mzb=function(a){a&1&&(K(0,"div"),Q(1," The selected issues have no custom fields in common. "),L())},Nzb=function(a){a&1&&(K(0,"span"),Q(1,"*"),L())},Pzb=function(a){if(a&1){var b=t();K(0,"input",10);Cg("ngModelChange",function(c){u(b);var d=P(2).$implicit;Bg(d.textValue,c)||(d.textValue=c);return v(c)});L()}a&2&&(a=P(2).$implicit,P(),Ag("ngModel",a.textValue),If("aria-labelledby",Ozb(a)))},Qzb=function(a){if(a&
1){var b=t();K(0,"input",11);Cg("ngModelChange",function(c){u(b);var d=P(2).$implicit;Bg(d.numericValue,c)||(d.numericValue=c);return v(c)});L()}a&2&&(a=P(2).$implicit,P(),Ag("ngModel",a.numericValue),If("aria-labelledby",Ozb(a)))},Szb=function(a){if(a&1){var b=t();K(0,"div")(1,"b-date-time-input",12);N("valueChange",function(e){u(b);var f=P(2).$implicit;P();return v(f.dateValue=e?j1a(e):void 0)});L()()}if(a&2){a=P(2).$implicit;var c=P();B();var d;I("value",(d=Rzb(a.dateValue))!=null?d:void 0)("required",
c.isCustomFieldRequired(a))("customAriaLabelledBy",Ozb(a))("customFormId","bv2-custom-field-"+a.customFieldId)}},Uzb=function(a){if(a&1){var b=t();K(0,"onedev-single-select",13);Cg("valueChange",function(d){u(b);var e=P(2).$implicit;Bg(e.enumValue,d)||(e.enumValue=d);return v(d)});L()}if(a&2){a=P(2).$implicit;P();Ag("value",a.enumValue);var c;I("options",(c=a.allowedValue)!=null?c:Hg(3,Tzb))("labelledById",Ozb(a))}},Wzb=function(a){if(a&1){var b=t();K(0,"b-bulk-repeated-field-picker",14);N("onSave",
function(e){u(b);var f=P(2).$implicit,g=P();return v(Vzb(g,f.customFieldId,e))});L()}if(a&2){a=P(2).$implicit;var c=P(),d;I("type",c.getCustomFieldType(a))("originalValueMap",c.repeatedCustomFieldsMap.get(a.customFieldId))("enumChoices",(d=a.allowedValue)!=null?d:Hg(3,Tzb))}},Xzb=function(a){a&1&&F(0,Pzb,1,2,"input",6)(1,Qzb,1,2,"input",7)(2,Szb,2,4,"div")(3,Uzb,1,4,"onedev-single-select",8)(4,Wzb,1,4,"b-bulk-repeated-field-picker",9);if(a&2){var b;a=P().$implicit;var c=P();G((b=c.getCustomFieldType(a))===
"TEXT"?0:b==="NUMERIC"?1:b==="DATE"?2:b==="ENUM"?3:4)}},Yzb=function(a){if(a&1){var b=t();K(0,"span");Q(1," Multiple values ");L();K(2,"a",15);N("click",function(){u(b);var c=P().$implicit,d=P();return v(d.clearCustomFieldValue(c))});Q(3,"X");L()}},Zzb=function(a,b){a&1&&(K(0,"div",1)(1,"div",4)(2,"label",5),Q(3),F(4,Nzb,2,0,"span"),L()(),F(5,Xzb,5,1)(6,Yzb,4,0),L());a&2&&(a=b.$implicit,P(),B(2),I("matTooltip",(a.description||"")+" [ID: "+a.customFieldId+"]"),If("id",Ozb(a)),B(),S(" ",a.name," "),
B(),G(a.required?4:-1),B(),G(a.hasMultipleValues?6:5))},aAb=function(a){if(a&1){var b=t();K(0,"b-list-field",2);N("valuesChange",function(d){u(b);var e=P(2);return v(e.save.emit(d.values))});L()}if(a&2){a=P();var c=P();I("readonly",c.readonly)("defaultLineCount",3)("title",c.field.name)("type",c.field.type)("customFieldId",c.field.customFieldId)("tooltip",c.getTooltip())("values",$zb(c))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("listFieldDisabled",c.disabled)}},dAb=function(a){if(a&
1){var b=t();K(0,"b-edit-field",3);N("valueChange",function(e){u(b);var f=P(2);return v(f.save.emit(e))});L()}if(a&2){a=P();var c=P(),d;I("readonly",c.readonly)("name","customField"+c.field.customFieldId)("title",c.field.name)("type",c.field.type)("tooltip",c.getTooltip())("clearable",!c.field.required)("value",bAb(c))("displayValueOverride",c.getDisplayValue())("choices",(d=a.choices)!=null?d:Hg(12,cAb))("showEnumTitle",!0)("disabled",c.disabled)("customFieldId",c.field.customFieldId)}},eAb=function(a,
b){a&1&&F(0,aAb,1,10,"b-list-field",0)(1,dAb,1,13,"b-edit-field",1);a&2&&G(b.isRepeated()?0:1)},hAb=function(a,b){var c=new fAb;gAb(c,a,b);return c},gAb=function(a,b,c){var d=Ia(b.snapshot),e=b.aggregatedData,f=b.userActivityStats;var g=b&&b.accessLimit?b.accessLimit.accessLevel:void 0;a.accessLevel=g;a.id=b.issueId;a.issueId=b.issueId;a.trackerId=b.trackerId;d.componentId&&(a.componentId=d.componentId);c&&c.componentPathInfo&&c.componentPathInfo.componentPathName?a.componentPath=c.componentPathInfo:
a.componentPath=[String(d.componentId)];d.type&&(a.type=d.type);if(d.status){a.status=d.status;var k;a.isClosed=!((k=io.get(d.status))==null?0:k.open)||b.isArchived}a.priority=d.priority.substr(1);a.severity=d.severity.substr(1);a.reporter=tm(d.reporterUser);a.assignee=tm(d.assigneeUser);a.assigneeEmail=wm(d.assigneeUser);a.verifier=tm(d.verifierUser);a.verifierEmail=wm(d.verifierUser);a.cc=um(d.ccUsers);a.collaborator=um(d.collaboratorsUsers);a.changelist=d.changelist;a.postmortem=d.postmortems;
a.hotlistId=d.hotlistId;a.blockingIssueId=d.blockingIssueId;a.blockedByIssueId=d.blockedByIssueId;a.teamId=e&&e.teamId?e.teamId:"";a.createdTime=e?Math.round(e.createdTimeMicros/1E3):0;a.modifiedTime=e?Math.round(e.modifiedTimeMicros/1E3):0;a.resolvedTime=e&&e.resolvedTimeMicros?Math.round(e.resolvedTimeMicros/1E3):null;a.verifiedTime=e&&e.verifiedTimeMicros?Math.round(e.verifiedTimeMicros/1E3):null;a.majorModifiedTime=b.majorModifiedTimeMicros?Math.round(b.majorModifiedTimeMicros/1E3):0;a.archived=
b.isArchived;a.lastViewedTime=b.userData&&b.userData.lastViewedTimeMicros?Math.round(b.userData.lastViewedTimeMicros/1E3):null;a.title=d.title;a.foundInVersion=d.foundInVersion;a.targetedToVersion=d.targetedToVersion;a.verifiedInVersion=d.verifiedInVersion;d.inProd&&(a.inProd=d.inProd);a.duplicateOfIssueId=d.duplicateOfIssueId;a.starred=b.userData&&b.userData.starred?b.userData.starred:!1;a.voteCount=e?e.voteCount:0;a.duplicateCount=d.duplicateIssueId?d.duplicateIssueId.length:0;a.ccCount=d.ccUsers?
d.ccUsers.length:0;a.collaboratorCount=d.collaboratorsUsers?d.collaboratorsUsers.length:0;var l;a.lastModifier=tm((l=b.aggregatedData)==null?void 0:l.lastModifier);a.customFieldMap={};a.customFieldNameToIdMap={};a.customFieldValueMap={};if(c&&c.componentPathInfo&&c.componentPathInfo.allCustomField)for(c=m(c.componentPathInfo.allCustomField),g=c.next();!g.done;g=c.next())g=g.value,a.customFieldMap[String(g.customFieldId)]=g,a.customFieldNameToIdMap[g.name.toLowerCase()]=g.customFieldId;if(d.customField)for(c=
m(d.customField),g=c.next();!g.done;g=c.next())g=g.value,a.customFieldValueMap[String(g.customFieldId)]=g;a.retentionState=e?e.retentionState:void 0;a.sloId=e?""+e.sloId:"";a.sloStatus=e?e.sloStatus||null:null;a.sloStartTime=d.sloStartTime;a.sloEndTime=d.sloEndTime;a.isRead=!!a.lastViewedTime&&a.lastViewedTime>=a.majorModifiedTime;d.effort&&(a.effort=d.effort);a.issueAccessLevel=d.issueAccessLimitLevel;a.descendantCount=b.descendantCount;a.openDescendantCount=b.openDescendantCount;a.oneDayViewCount=
f?f.oneDayViewCount:0;a.sevenDayViewCount=f?f.sevenDayViewCount:0;a.thirtyDayViewCount=f?f.thirtyDayViewCount:0;a.escalationOwner=tm(b.escalationOwner)},jAb=function(a){if(a&1){var b=t();K(0,"div",0)(1,"div",1)(2,"div",2)(3,"label");Q(4," Custom fields ");L()();K(5,"button",3);N("click",function(){var c=u(b),d=P(2);return v(iAb(d,c))});Q(6,"Edit custom fields");L()()()}},kAb=function(a){a&1&&(F(0,jAb,7,0,"div",0),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.updatedIssueRows$))?0:-1,b)}},lAb=function(a,
b){if(a&1){var c=t();K(0,"b-custom-field-editor",5);lma();N("save",function(d){var e=u(c).$implicit,f=P(2);return v(f.updateCustomField(e.customFieldId,d))});L()}a&2&&(a=b.$implicit,b=P(2),I("issue",b.editableIssue),pma(a))},mAb=function(a){a&1&&(Nf(0,lAb,1,2,"b-custom-field-editor",4,Mf),T(2,"async"));a&2&&(a=P(),Of(U(2,0,a.customFields$)))},nAb=function(a){if(a&1){var b=t();K(0,"input",2,0);N("input",function(){u(b);var c=P();c.manualAutocomplete&&c.findWordAroundCursor()&&(c.candidateDenylist.includes(c.wordInfo.word)?
c.manualAutocomplete.cancel():c.manualAutocomplete.query=c.wordInfo.word);return v(c.emitValueChange())})("blur",function(){u(b);var c=P();return v(c.cancel())})("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P();return v(d.handleSelectionChange(c))});L()}a&2&&(a=P(),I("placeholder",a.placeholder)("ngModel",a.internalValue)("peoplekitAutocompleteConfig",Dgb(a.autocompleteConfigService))("peoplekitSearchSessionOptions",a.sessionOptions),If("aria-label",a.ariaLabel))},oAb=function(a){a&
1&&(K(0,"mat-error"),Q(1),L());a&2&&(a=P(),If("aria-label",Fg("",a.title," error: ",a.invalidMessage)),B(),S(" ",a.invalidMessage," "))},pAb=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-person-lookup-form",11);N("onAddItems",function(c){u(b);var d=P();return v(d.handleAddItems(c))})("onCancel",function(){u(b);var c=P();return v(c.closeAddPopup())});L()()()}a&2&&(a=P(),B(2),I("actionName","addition")("inputValidator",a.inputValidator)("isAllowedToEditCollection",
a.isAllowedToEditCollection)("title",a.title))},sAb=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-person-lookup-form",11);N("onAddItems",function(c){u(b);var d=P();qAb(c,d.onRemoveUsers);rAb(d);return v()})("onCancel",function(){u(b);var c=P();return v(rAb(c))});L()()()}a&2&&(a=P(),B(2),I("actionName","remove")("inputValidator",a.inputValidator)("isAllowedToEditCollection",a.isAllowedToEditCollection)("title",a.title))},tAb=function(a,b){if(a&1){var c=
t();K(0,"b-hotlist-chip-smart",7);N("removeHotlist",function(){var d=u(c).$implicit,e=P(3);return v(e.removeHotlists([d]))});L()}a&2&&I("id",b.$implicit)},uAb=function(a){a&1&&Nf(0,tAb,1,1,"b-hotlist-chip-smart",6,Mf);a&2&&(a=P(2),Of(a.hotlistIdSet))},vAb=function(a){a&1&&(K(0,"div",5),Q(1,"Multiple hotlists selected"),L())},xAb=function(a){if(a&1){var b=t();K(0,"b-hotlist-recommendation-chip",9);T(1,"async");N("onAccept",function(){u(b);var d=P().$implicit,e=P(3);return v(wAb(e,d))});L()}if(a&2){a=
P().$implicit;var c=P(3);I("hotlist",a.content==null?null:a.content.recommendedHotlist)("recommendationId",a.name)("issueId",U(1,4,c.issueId$))("updateHotlistsInstantly",!1)}},yAb=function(a,b){a&1&&F(0,xAb,2,6,"b-hotlist-recommendation-chip",8);if(a&2){b=b.$implicit;a=P(3);var c,d;var e=(b=b==null?void 0:(e=b.content)==null?void 0:(c=e.recommendedHotlist)==null?void 0:(d=c.hotlistId)==null?void 0:d.toString())&&!a.hotlistIdSet.has(b);G(e?0:-1)}},AAb=function(a,b){a&1&&Nf(0,yAb,1,1,null,null,zAb);
a&2&&Of(b)},CAb=function(a){if(a&1){var b=t();K(0,"div",0)(1,"div",1)(2,"label");Q(3,"Hotlists");L()();K(4,"div",2)(5,"button",3);N("click",function(){u(b);var d=P();return v(BAb(d))});M(6,"mat-icon",4);Q(7," Add ");L();F(8,uAb,2,0)(9,vAb,2,0,"div",5);F(10,AAb,2,0);T(11,"async");L()()}if(a&2){var c;a=P();B(8);G(a.areAllHotlistsEqual?8:9);B(2);G((c=U(11,2,a.recommendations$))?10:-1,c)}},FAb=function(a){if(a&1){var b=t();K(0,"input",3);N("ngModelChange",function(c){u(b);var d=P(2);return v(d.emailChange.emit(c))})("peoplekitAutocompleteSelectionChange",
function(c){u(b);var d=P(2);return v(DAb(d,c))})("focusin",function(c){u(b);var d=P(2);return v(d.onFocusIn(c))})("focusout",function(c){u(b);var d=P(2);return v(EAb(d,c))});L()}a&2&&(a=P(2),I("name",a.name)("required",a.required)("placeholder",a.placeholder)("disabled",a.disabled)("ngModel",a.email)("peoplekitAutocompleteConfig",a.getConfig())("peoplekitSearchSessionOptions",a.sessionOptions)("peoplekitAutocompleteInputSearchDelay",0),If("name",a.name)("aria-label",a.ariaLabel)("cdkFocusInitial",
a.cdkFocusInitial||null))},GAb=function(a){if(a&1){var b=t();K(0,"input",4);N("ngModelChange",function(c){u(b);var d=P(2);return v(d.emailChange.emit(c))})("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P(2);return v(DAb(d,c))})("focusin",function(c){u(b);var d=P(2);return v(d.onFocusIn(c))})("focusout",function(c){u(b);var d=P(2);return v(EAb(d,c))});L()}a&2&&(a=P(2),I("name",a.name)("required",a.required)("placeholder",a.placeholder)("disabled",a.disabled)("ngModel",a.email)("peoplekitAutocompleteConfig",
a.getConfig())("peoplekitSearchSessionOptions",a.sessionOptions)("peoplekitAutocompleteInputSearchDelay",0),If("name",a.name)("aria-label",a.ariaLabel)("cdkFocusInitial",a.cdkFocusInitial||null))},HAb=function(a){a&1&&F(0,FAb,1,11,"input",1)(1,GAb,1,11,"input",2);a&2&&(a=P(),G(a.asMatInput?0:1))},st=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(":");e<0||(b[d.substring(0,e)]=d.substring(e+2,d.length))}return b},tt=function(a,b){for(var c in a)if(c.toLowerCase()===
b.toLowerCase())return a[c]},IAb=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];break}},KAb=function(a){a=bj(a);for(var b=0;b<JAb.length;++b){var c=JAb[b],d=tt(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,IAb(a,c))}return a},LAb=function(a){a=bj(a);IAb(a,"X-Goog-Upload-Status");return a},NAb=function(a){if(a&1){var b=t();K(0,"button",3);N("fileSelected",function(c){u(b);var d=P();return v(MAb(d,c))});M(1,"mat-icon",4);L()}a&2&&(a=P(),I("selectorType",a.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",
!0)("disabled",a.disabled))},OAb=function(a){if(a&1){var b=t();K(0,"button",5);N("fileSelected",function(c){u(b);var d=P();return v(MAb(d,c))});M(1,"mat-icon",4);Q(2," Add attachments ");L()}a&2&&(a=P(),I("selectorType",a.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",a.disabled))},PAb=function(a){a&1&&(K(0,"span"),Q(1),T(2,"humanFileSize"),T(3,"humanFileSize"),L());if(a&2){a=P().$implicit;B();var b;zg(" ",U(2,2,a.transferredBytes)," of ",U(3,4,(b=a.size)!=null?b:0)," ")}},
QAb=function(a){a&1&&(K(0,"span",7),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.errorMessage," "))},RAb=function(a){a&1&&(K(0,"span",7),Q(1),T(2,"humanFileSize"),L());if(a&2){a=P().$implicit;B();var b;S(" ",U(2,1,(b=a.size)!=null?b:0)," ")}},SAb=function(a,b){if(a&1){var c=t();K(0,"div",2)(1,"div",3);M(2,"mat-icon",4);K(3,"span",5);Q(4);L();K(5,"span",6);F(6,PAb,4,6,"span");F(7,QAb,2,1,"span",7);F(8,RAb,3,3,"span",7);L()();K(9,"button",8);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.cancel(d))});
L()()}a&2&&(a=b.$implicit,b=P(2),wg("attachment-error",a.state===b.uploadStates.ERROR),B(3),I("matTooltip",a.name),B(),yg(a.name),B(2),G(a.state===b.uploadStates.UPLOADING?6:-1),B(),G(a.state===b.uploadStates.ERROR?7:-1),B(),G(a.state===b.uploadStates.COMPLETE?8:-1),B(),I("matTooltip",a.state===b.uploadStates.UPLOADING?"Cancel upload":"Remove attachment"),If("aria-label","Remove attachment"+a.name))},TAb=function(a){a&1&&(K(0,"div",0),Nf(1,SAb,10,9,"div",1,Mf),L());a&2&&(a=P(),B(),Of(a.uploads))},
vt=function(a){ut.call(this,a||"all")},VAb=function(a){UAb.call(this,a)},WAb=function(a){this.action=a;this.wfv=!1},XAb=function(a,b){WAb.call(this,"set-drive-options");this.appId=a;this.appOrigin=b},YAb=function(a){WAb.call(this,"visibility");this.visible=a},ZAb=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc},aBb=function(a,b){var c=b&&b.getWindow()||window;if(ZAb(b))a();else if($Ab)$Ab.push(a);else var d=$Ab=[a],e=c.setInterval(function(){if(ZAb(b)){c.clearInterval(e);for(var f=
0;f<d.length;f++)d[f]();$Ab=null}},100)},bBb=function(a,b,c){wt.call(this,a,b,c)},eBb=function(a,b){var c=new cBb(a);xt(b,c);var d={passive:!1};b.listen(c,"mousewheel",function(e){return void dBb(a,e)},d).listen(a,"scroll",function(e){return void dBb(a,e)},d)},dBb=function(a,b){var c;a:{for(c=b.target;c;){if(c.nodeType==1){var d=yt(c,"overflowY");if(d=="auto"||d=="scroll")break a}c=c.parentNode}c=null}if(!c||!fBb(a,c)||c.scrollHeight==c.clientHeight||b.deltaY>0&&Math.abs(c.scrollTop-(c.scrollHeight-
c.clientHeight))<=1||b.deltaY<0&&c.scrollTop==0)b.preventDefault(),b.stopPropagation()},Dt=function(a,b,c,d,e,f,g,k,l){k=k===void 0?!1:k;l=l===void 0?!1:l;wt.call(this,void 0,void 0,void 0);wt.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,c);gBb(a,"protocol");this.iframeManager_=new hBb;this.targetId_=iBb();this.rpcToken_=iBb();a=zt(a);At(a,"hostId");c=At(a,"parent");this.useGapi_=!l&&!0||(c==null?void 0:c.includes("onepick.corp.google.com"));k&&Bt(a,"fv2","true");this.setUrl(a.toString());
this.preferredDialogWidth_=d;this.preferredDialogHeight_=e;d!==void 0||e!==void 0?d=!0:(d=At(zt(a.toString()),"hostId"),jBb||(jBb=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),d=!jBb.has(d));this.autoSizeDialog_=d;this.gadgetsDomHelper_=g||this.getDomHelper();b&&(g=this.gadgetsDomHelper_,b=At(zt(this.url_),"grugl")=="true"?kBb:lBb,ZAb(g)||(g=g||kj(document),d=g.createElement("SCRIPT"),oi(d,
b),d.type="text/javascript",g.document_.body.appendChild(d)));a=a.toString();b=null;g=a.indexOf("/picker?");g>-1?b=a.substring(0,g+8-1):va(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()):Gra(this.buttonEl_,sj),Ct(this.buttonEl_,!!this.buttons_))},mBb=function(a){if(a&1){var b=t();K(0,"div",0);M(1,"mat-icon",1);K(2,"div",2);Q(3," Comment and vote +1 on this issue to increase visibility ");
L();K(4,"div",3)(5,"button",4);N("click",function(c){u(b);var d=P();return v(d.onClick(c))});Q(6,"Comment and vote +1");L()()()}a&2&&(B(),I("matTooltip","The +1 button is located in the top right corner of the issue details page"))},nBb=function(a){if(a&1){var b=t();K(0,"b-plus-one-comment-callout",7);N("onSubmitComment",function(c){u(b);P().onSubmit.emit(c);return v()});L()}a&2&&(a=P(),I("isPlusOneText",a.comment.value.trim()==="+1"))},oBb=function(a){if(a&1){var b=t();K(0,"b-drive-attachment",11);
N("onPickDoc",function(c){u(b);var d=P(2);d.comment&&(d.comment.value=d.comment.formattingMode==="MARKDOWN"?d.comment.value+("\n\n["+c.name+"]("+c.url+")"):d.comment.value+("\n\n"+c.name+" - "+c.url));return v()})("onCloneBlob",function(c){u(b);var d=P(2);return v(d.addUpload(c))});L()}a&2&&(a=P(2),I("disabled",a.attachmentsDisabled))},pBb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);var c=P(3);return v(c.onRestrict.emit())});M(1,"mat-icon",15);L()}a&2&&(a=P(3),I("disabled",
a.attachmentsDisabled))},qBb=function(a){if(a&1){var b=t();K(0,"button",16);N("click",function(){u(b);var c=P(3);return v(c.onRestrict.emit())});M(1,"mat-icon",15);Q(2);L()}a&2&&(a=P(3),B(2),S(" ",a.getRestrictedLabel()," "))},rBb=function(a){a&1&&(K(0,"div",10),F(1,pBb,2,1,"button",12)(2,qBb,3,1,"button",13),L());a&2&&(a=P(2),B(),G(a.isRestricted()?2:1))},sBb=function(a){if(a&1){var b=t();K(0,"div",6);cg(1,2,[1,"goog-inline-block"]);K(2,"b-attachment-selector",8);N("onSelect",function(c){u(b);var d=
P();return v(d.uploadFile(c))});L();F(3,oBb,1,1,"b-drive-attachment",9);F(4,rBb,3,1,"div",10);L()}a&2&&(a=P(),B(2),I("disabled",a.attachmentsDisabled),B(),G(a.currentTracker?-1:3),B(),G(a.showRestrictionOptions?4:-1))},tBb=function(a){a&1&&(K(0,"div"),M(1,"b-live-preview",17),L());a&2&&(a=P(),B(),I("comment",a.comment.value)("issueId",a.issueId)("audience",a.audience)("formattingMode",a.comment.formattingMode))},uBb=function(a){a&1&&(K(0,"p",6),Q(1),K(2,"a",14),Q(3," Learn more "),L()());a&2&&(a=
P(4),B(),S(" Your comment contains restricted words: ",Bs(a.bannedWordsChecker),". Review your comment before posting. "))},vBb=function(a){if(a&1){var b=t();K(0,"div",7)(1,"b-recaptcha",15);N("onUpdate",function(c){u(b);var d=P(4);return v(d.recaptchaResponse$.next(c))});L()()}},wBb=function(a){a&1&&Vf(0)},xBb=function(a){a&1&&E(0,wBb,1,0,"ng-container",16);a&2&&(P(4),a=qg(3),I("ngTemplateOutlet",a))},zBb=function(a){if(a&1){var b=t();K(0,"span")(1,"mat-checkbox",17);T(2,"async");T(3,"async");N("change",
function(){u(b);var c=P(4);return v(yBb(c))});Q(4," CC Me ");L()()}a&2&&(a=P(4),B(),I("checked",!!U(2,2,a.autoCcOnComment$))("disabled",!!U(3,4,a.isCurrentUserCCd$)))},ABb=function(a){a&1&&(K(0,"mat-checkbox",18),Q(1," CC Me "),L());a&2&&I("checked",!0)("disabled",!0)},BBb=function(a){a&1&&(K(0,"span",10),F(1,ABb,2,2,"mat-checkbox",18),T(2,"async"),L());a&2&&(a=P(4),B(),G(U(2,1,a.isCurrentUserCCd$)?1:-1))},CBb=function(a){if(a&1){var b=t();K(0,"b-markdown-toggle",19);N("change",function(c){u(b);var d=
P();return v(d.formattingMode=c)});L()}a&2&&(a=P(),I("initialValue",a.formattingMode))},DBb=function(a){a&1&&(M(0,"b-access-limits-chip",12),T(1,"async"));a&2&&(a=P(4),I("issueId",a.issueId)("componentId",a.componentIdString)("accessLimitLevel",U(1,3,a.issueAccessLimitLevel$)))},EBb=function(a,b){if(a&1){var c=t();K(0,"b-comment-box",5,1);T(2,"async");T(3,"async");T(4,"async");T(5,"async");T(6,"async");T(7,"async");N("onHotkey",function(){u(c);var r=qg(1);return v(Rlb(r,"editpage-hotkey"))})("onChange",
function(){u(c);var r=P(3);return v(r.saveCommentDraft())})("onFocusEvent",function(){u(c);var r=P(3);return v(r.wasFocused=!0)})("onSubmit",function(r){u(c);var w=P(3);return v(w.submitCommentBox(r))})("onRestrict",function(){u(c);var r=P(3);return v(r.showNewContentJudgementDialog())})("onPlusOneTextEntered",function(r){u(c);var w=P(3);return v(w.isPlusOneText$.next(r))});F(8,uBb,4,1,"p",6);T(9,"async");F(10,vBb,2,0,"div",7);T(11,"async");K(12,"div",8);F(13,xBb,1,1,"ng-container");K(14,"div",9);
cg(15);F(16,zBb,5,6,"span");T(17,"async");T(18,"async");F(19,BBb,3,3,"span",10);T(20,"async");T(21,"async");F(22,CBb,1,1,"b-markdown-toggle",11);T(23,"async");F(24,DBb,2,5,"b-access-limits-chip",12);T(25,"async");L();M(26,"b-issue-visibility-chip",13);L()()}if(a&2){a=P(2);var d=P(),e,f,g,k,l;I("hotkey",d.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",!0)("issueId",a.issueId)("comment",b)("placeholder",(e=U(2,19,d.commentPlaceholderText$))!=null?e:void 0)("judgementForNewContent",(f=U(3,21,d.judgementForNewContent$))!=
null?f:void 0)("audience",(g=U(4,23,d.audience$))!=null?g:void 0)("disabled",U(5,25,d.commentBoxEnabled$)===!1)("isPlusOneCalloutEnabled",(k=U(6,27,d.isPlusOneCalloutEnabled$))!=null?k:!1)("warn",(l=U(7,29,d.bannedWordsChecker.showWarning$))!=null?l:!1)("isLiteralModeSupported",!0);B(8);G(U(9,31,d.bannedWordsChecker.showWarning$)?8:-1);B(2);G(U(11,33,d.showRecaptcha$)?10:-1);B(3);G(d.showActionsAfterPreview?-1:13);B(3);G(!U(17,35,d.isCurrentUserCCd$)&&U(18,37,d.hasAclToEdit$)?16:-1);B(3);G(U(20,39,
d.isCurrentUserCCd$)||!U(21,41,d.hasAclToEdit$)?19:-1);B(3);G(U(23,43,d.hasAclToComment$)?22:-1);B(2);G(U(25,45,d.isAccessLimited$)?24:-1);B(2);I("issueId",d.issueId)}},FBb=function(a){a&1&&Vf(0)},GBb=function(a){a&1&&E(0,FBb,1,0,"ng-container",16);a&2&&(P(3),a=qg(3),I("ngTemplateOutlet",a))},HBb=function(a){a&1&&(K(0,"h3",2),Q(1,"Add comment"),L(),K(2,"div",3),T(3,"async"),F(4,EBb,27,47,"b-comment-box",4),T(5,"async"),L(),F(6,GBb,1,1,"ng-container"));if(a&2){var b;a=P(2);B(2);wg("empty",U(3,6,a.empty$))("never-focused",
!a.wasFocused);B(2);G((b=U(5,8,a.comment$))?4:-1,b);B(2);G(a.showActionsAfterPreview?6:-1)}},IBb=function(a,b){a&1&&F(0,HBb,7,10);a&2&&G(b.isDeleted?-1:0)},JBb=function(a){if(a&1){var b=t();K(0,"b-button",21);T(1,"async");T(2,"async");T(3,"async");N("onAction",function(d){u(b);var e=P(2);return v(e.submitCommentBox(d))})("click",function(d){u(b);var e=P(2);return v(e.submitCommentBox(d))});Q(4);T(5,"async");L()}if(a&2){a=P(2);var c;I("format",(c=U(1,4,a.commentButtonStyle$))!=null?c:"fill")("disabled",
U(2,6,a.commentButtonEnabled$)===!1)("color",U(3,8,a.bannedWordsChecker.showWarning$)?"warn":"primary");B(4);S(" ",U(5,10,a.bannedWordsChecker.showWarning$)?"Comment Anyway":"Comment"," ")}},KBb=function(a){a&1&&F(0,JBb,6,12,"b-button",20);a&2&&(a=P(),G(a.showCommentButton?0:-1))},LBb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3),B(),S(" ",a.removeSelfActionDescription," "))},MBb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3),B(),S(" ",a.includeSelfActionDescription," "))},NBb=function(a){if(a&
1){var b=t();K(0,"div",20);N("click",function(){u(b);var c=P(2);return v(c.userInclusionToggle.emit())})("keydown.enter",function(c){u(b);P(2).userInclusionToggle.emit();c.stopPropagation();c.preventDefault();return v()})("keydown.space",function(c){u(b);P(2).userInclusionToggle.emit();c.stopPropagation();c.preventDefault();return v()});F(1,LBb,2,1,"span");F(2,MBb,2,1,"span");L()}a&2&&(a=P(2),wg("disabled",!!a.isSaving),I("matTooltip",a.isCurrentUserInCollection?a.removeSelfActionLongDescription:
a.includeSelfActionLongDescription),If("aria-disabled",!!a.isSaving)("aria-label",a.isCurrentUserInCollection?a.removeSelfActionLongDescription:a.includeSelfActionLongDescription),B(),G(a.isCurrentUserInCollection?1:-1),B(),G(!a.isCurrentUserInCollection&&a.isAllowedToEditCollection?2:-1))},OBb=function(a){a&1&&(K(0,"div",18),F(1,NBb,3,7,"div",19),L());a&2&&(a=P(),B(),G(a.isCurrentUserInCollection||!a.isCurrentUserInCollection&&a.isAllowedToEditCollection?1:-1))},PBb=function(a){if(a&1){var b=t();
K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-person-lookup-form",21);N("onAddItems",function(c){u(b);var d=P();return v(d.handleAddItems(c))})("onCancel",function(){u(b);var c=P();return v(c.closeAddPopup(!0))});L()()()}a&2&&(a=P(),B(2),I("actionName","addition")("inputValidator",a.inputValidator)("isAllowedToEditCollection",a.isAllowedToEditCollection)("title",a.title))},QBb=function(a){a&1&&(M(0,"b-user-membership-chip",23),T(1,"async"));if(a&2){a=P().$implicit;var b=P(),c;I("user",
b.getUser(a))("email",a)("teamId",(c=U(1,5,b.teamId$))!=null?c:"")("enableSmallChip",!0)("enableGroupIcon",!0)}},RBb=function(a){a&1&&M(0,"b-icon",25)},SBb=function(a){a&1&&(F(0,RBb,1,0,"b-icon",25),T(1,"async"),K(2,"b-person-hovercard",26),Q(3),L());if(a&2){var b;a=P().$implicit;var c=P();G(((b=U(1,3,c.groups$))==null?0:b.has(a))?0:-1);B(2);I("email",a);B();S(" ",a," ")}},TBb=function(a){if(a&1){var b=t();K(0,"button",27);T(1,"async");N("click",function(){u(b);var c=P(2);return v(c.toggleAccessLimits.emit())});
M(2,"b-icon",28);T(3,"async");L()}a&2&&(a=P(2),I("disabled",!U(1,3,a.hasAclToAdmin$)),B(2),wg("disabled-icon",!U(3,5,a.hasAclToAdmin$)))},UBb=function(a){if(a&1){var b=t();K(0,"button",30,4);N("click",function(){u(b);var d=P(2).$index,e=P();return v(e.removeItem(d))});L()}if(a&2){a=P(2).$implicit;var c=P();If("aria-label",Fg("Remove ",a," from ",c.title));I("matTooltip","Remove item")}},VBb=function(a){a&1&&F(0,UBb,2,4,"button",29);a&2&&(a=P(2),G(a.isAllowedToEditCollection?0:-1))},WBb=function(a,
b){a&1&&(K(0,"div",10)(1,"div",22),F(2,QBb,2,7,"b-user-membership-chip",23)(3,SBb,4,5),L(),F(4,TBb,4,7,"button",24),T(5,"async"),Kf(6,VBb,1,1),L());if(a&2){var c;a=b.$implicit;b=P();B(2);G(b.enableTeamAnnotations?2:3);B(2);G(b.toggleAccessLimits.observed&&((c=U(5,2,b.groups$))==null?0:c.has(a))?4:6)}},XBb=function(a){a&1&&(K(0,"button",12),Q(1,"Add "),L());if(a&2){a=P();var b=qg(3);If("aria-label",Eg("Add item to ",a.title));I("dialogLabel",Eg("Add item to ",a.title))("matTooltip",Eg("Add item to ",
a.title))("xapInlineDialogClick",b)("overlayPositions",a.overlayPosition)}},YBb=function(a){a&1&&Vf(0)},ZBb=function(a,b){return{originX:a,originY:b}},$Bb=function(a,b){return{overlayX:a,overlayY:b}},aCb=function(a){a&1&&(M(0,"gpp-agent-chat",0),T(1,"async"));if(a&2){a=P();var b;I("useExperimentalOrcasAgent",a.useExperimentalOrcasAgent)("isDarkMode",a.isDarkMode())("query",a.query())("contextValues",(b=U(1,4,a.contextValues$))!=null?b:void 0)}},bCb=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return a[b]&&
a[b].hasOwnProperty("__@ngrx/effects_create__")?a[b]["__@ngrx/effects_create__"].hasOwnProperty("dispatch"):!1}).map(function(b){return Object.assign({},{propertyName:b},a[b]["__@ngrx/effects_create__"])})},cCb=function(a){return typeof a==="function"},dCb=function(a,b,c){var d=Object.getPrototypeOf(a),e=d&&d.constructor.name!=="Object"?d.constructor.name:null;d=bCb(a).map(function(f){var g=f.propertyName;var k=f.dispatch;f=f.useEffectsErrorHandler;var l=typeof a[g]==="function"?a[g]():a[g];f=f?c(l,
b):l;return k===!1?f.pipe(fla()):f.pipe(rla()).pipe(A(function(r){return{effect:a[g],notification:r,propertyName:g,sourceName:e,sourceInstance:a}}))});return te.apply(null,q(d))},fCb=function(a){return eCb(a,"ngrxOnInitEffects")},eCb=function(a,b){return a&&b in a&&typeof a[b]==="function"},gCb=function(a,b,c){c=c===void 0?10:c;return a.pipe(gf(function(d){b&&b.handleError(d);return c<=1?a:gCb(a,b,c-1)}))},hCb=function(a){return eCb(a,"ngrxOnIdentifyEffects")?a.ngrxOnIdentifyEffects():""},iCb=function(a,
b){return function(c){var d=dCb(c,a,b);return eCb(c,"ngrxOnRunEffects")?c.ngrxOnRunEffects(d):d}},jCb=function(a,b){var c=[];a=m(a);for(var d=a.next();!d.done;d=a.next())c.push.apply(c,q(d.value));b=m(b);for(a=b.next();!a.done;a=b.next())c.push.apply(c,q(a.value));return c.map(function(e){return e instanceof dd||cCb(e)?p(e):e})},lCb=function(){var a=p(Et,{optional:!0,skipSelf:!0}),b=p(kCb,{self:!0});if((b.length!==1||b[0].length!==0)&&a)throw new TypeError("fg");return"guarded"},mCb=function(a){a&
1&&(K(0,"div",6),M(1,"gpp-chat"),L())},nCb=function(a,b){a&1&&M(0,"b-user-image",0);a&2&&I("email",b.$implicit)},oCb=function(a,b){if(a&1){var c=t();K(0,"button",2);N("click",function(){u(c);var d=P(2);return v(d.limit+=d.LIMIT_INCREMENT)});Q(1);L()}a&2&&(I("title",Eg("",b," more participant(s). Click to show.")),B(),S("",b," more"))},pCb=function(a){a&1&&F(0,oCb,2,3,"button",1);if(a&2){var b;a=P();G((b=a.emails.length-a.limit)?0:-1,b)}},rCb=function(a){a&1&&(K(0,"a",3),Q(1),L());a&2&&(a=P(2),I("href",
a.makeCritiqueUrl(Hg(2,qCb),a.pending),Ne),B(),S("(",a.pending.length," pending)"))},sCb=function(a,b){a&1&&(K(0,"div",0),M(1,"img",1),Q(2," \u00a0 "),K(3,"a",2),Q(4),L(),Q(5," \u00a0 "),F(6,rCb,2,3,"a",3),L());a&2&&(a=P(),B(3),I("href",a.makeCritiqueUrl(a.submitted,a.pending),Ne),B(),S("",b," CLs"),B(2),G(a.pending.length>0?6:-1))},tCb=function(a){a&1&&(K(0,"a",2),Q(1),L());a&2&&(a=P(2),I("routerLink",a.searchPageUrl),B(),S(" ",a.count," Issues "))},uCb=function(a){a&1&&F(0,tCb,2,2,"a",2);a&2&&(a=
P(),G(a.count!=null?0:-1))},vCb=function(a){a&1&&Q(0);a&2&&(a=P(),S(" ",a.count," Issues "))},wCb=function(a){a&1&&(K(0,"div",0),M(1,"img",2),L());a&2&&(a=P(2),B(),I("src",a.SPACE_EMPTY_STATE,Ne))},xCb=function(a,b){a&1&&(K(0,"mat-panel-title"),Q(1),L());a&2&&(a=P().$index,B(),S(" ",b[a]," "))},yCb=function(a){a&1&&M(0,"mat-panel-title",3)},zCb=function(a,b){a&1&&(K(0,"mat-expansion-panel")(1,"mat-expansion-panel-header"),F(2,xCb,2,1,"mat-panel-title"),T(3,"async"),Kf(4,yCb,1,0,"mat-panel-title",
3),K(5,"mat-panel-description"),Q(6),L()(),M(7,"b-issues-table",4),L());if(a&2){var c;a=b.$implicit;b=P(3);B(2);G((c=U(3,5,b.titles$))?2:4,c);B(4);S("",a.length," issues");B();I("issueIds",a)("tableColumns",b.tableColumns)("options",b.tableOptions)}},ACb=function(a){a&1&&(K(0,"div",1),Nf(1,zCb,8,7,"mat-expansion-panel",null,Mf),L());a&2&&(a=P(),B(),Of(a))},BCb=function(a,b){a&1&&F(0,wCb,2,1,"div",0)(1,ACb,3,0,"div",1);a&2&&G(b.length===0?0:1)},CCb=function(a){a&1&&(K(0,"div",2,1)(2,"div",5)(3,"span",
6),Q(4),L()()());a&2&&(a=P(),B(4),yg(a.valueIndicatorText))},DCb=function(a,b){a&1&&M(0,"div");if(a&2){a=b.$implicit;b=b.$index;var c=P(3);xg(a===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive");vg("transform",c._calcTickMarkTransform(b))}},ECb=function(a){a&1&&Nf(0,DCb,1,4,"div",8,Lf);a&2&&(a=P(2),Of(a._tickMarks))},FCb=function(a){a&1&&(K(0,"div",6,1),F(2,ECb,2,0),L());a&2&&(a=P(),B(2),G(a._cachedWidth?2:-1))},GCb=function(a){a&1&&M(0,"mat-slider-visual-thumb",7);a&2&&(a=P(),
I("discrete",a.discrete)("thumbPosition",1)("valueIndicatorText",a.startValueIndicatorText))},HCb=function(a){a&1&&(K(0,"span"),Q(1,"All Components"),L())},ICb=function(a){a&1&&(K(0,"span"),Q(1,"Selected Components"),L())},JCb=function(a,b){if(a&1){var c=t();K(0,"button",19);N("click",function(d){var e=u(c).$implicit;P().onCheckboxChange(e);return v(d.stopPropagation())});K(1,"mat-checkbox",27);Q(2);L()()}a&2&&(a=b.$implicit,b=P(),B(),I("checked",b.selectComponents$.has(a)),B(),S(" ",a.name," "))},
KCb=function(a,b){if(a&1){var c=t();K(0,"button",19);N("click",function(){var d=u(c).$implicit;P().selectedDateRangeFilter$.next(d);return v()});Q(1);L()}a&2&&(a=b.$implicit,B(),S(" ",a.displayAs," "))},LCb=function(a,b){if(a&1){var c=t();K(0,"div",6)(1,"a",7);Q(2);T(3,"async");L();K(4,"button",8);N("click",function(){var e=u(c),f=P(),g=P();Ft(g.router,qs.viewTriage.makeHref(f,e,Gt[g.phase$.value]));return v()});Q(5," View issues ");M(6,"mat-icon",9);L()()}if(a&2){a=P();var d=P();B();I("href",d.ROUTES.viewTriage.makeHref(a,
b,d.phaseToUrlSlug[d.phase$.value]),Ne);B();S(" ",U(3,2,d.heading$)," ")}},MCb=function(a){a&1&&(F(0,LCb,7,4,"div",6),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.triageId$))?0:-1,b)}},NCb=function(a,b){a&1&&Q(0);a&2&&(a=P(),zg(" ",b.length,"",b.length===a.FETCH_SIZE?"+":""," "))},OCb=function(a){a&1&&Q(0," ... ")},PCb=function(a,b){a&1&&M(0,"i",11);if(a&2){a=b.$implicit;b=b.$index;var c=P(2);a=Eg("height: ",a*100,"%;");Ona(Mna,Nna,a,!1);I("title",Fg("Modified ",b," days ago: ",c[b]," Issues"))}},
QCb=function(a,b){a&1&&Nf(0,PCb,1,6,"i",10,Lf);a&2&&Of(b)},RCb=function(a){a&1&&(F(0,QCb,2,0),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.ratioDaysOld$))?0:-1,b)}},TCb=function(a){return(SCb-a/1E3)/864E5},UCb=function(a,b){a&1&&(K(0,"span",5),Q(1),L());a&2&&(I("title",b.description),B(),yg(b.name))},VCb=function(a){a&1&&(K(0,"code",6),Q(1),T(2,"async"),L());a&2&&(a=P(),B(),yg(U(2,1,a.id$)))},WCb=function(a,b){a&1&&(K(0,"div",7),M(1,"phase-card-contents",8)(2,"phase-card-contents",8)(3,"phase-card-contents",
8)(4,"phase-card-contents",8)(5,"phase-card-contents",8),L());if(a&2){a=P();var c=P();B();I("phase",c.TriagePhase.NEW)("teamId",a)("triageId",b);B();I("phase",c.TriagePhase.CONFIRMED)("teamId",a)("triageId",b);B();I("phase",c.TriagePhase.IN_PROGRESS)("teamId",a)("triageId",b);B();I("phase",c.TriagePhase.FIXED)("teamId",a)("triageId",b);B();I("phase",c.TriagePhase.WONT_FIX)("teamId",a)("triageId",b)}},XCb=function(a){a&1&&(F(0,WCb,6,15,"div",7),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.triageId$))?
0:-1,b)}},YCb=function(a){if(!a.unlinkifiedComment)return Xm("Can't getClMetadata from an event with no unlinkifiedComment",a),{};if(rUa(a))if(mo(a)){var b=a.unlinkifiedComment;var c=b.trim().split("\n");if(a.formattingMode==="MARKDOWN"){var d,e;var f=(e=(d=c[5])==null?void 0:d.trim())!=null?e:"";var g;c=(g=b.match(/^Link: &nbsp;&nbsp;&nbsp;&nbsp; (.+)/m))==null?void 0:g[1];var k;var l=(k=b.match(/^Author: .* \\<(.+)\\>/m))==null?void 0:k[1]}else{var r,w;f=(w=(r=c[7])==null?void 0:r.trim())!=null?
w:"";var x,C;c=(C=(x=c[c.length-1])==null?void 0:x.trim())!=null?C:"";var H;l=(H=b.match(/^Author: .* <(.+)>/m))==null?void 0:H[1]}f||Xm("failed to parse a title from GitWatcher comment, which is unexpected.",b);c||Xm("failed to parse a link from GitWatcher comment, which is unexpected.",b);l?l=l.endsWith("@google.com")?l.split("@")[0]:l:Xm("failed to parse an author from GitWatcher comment, which is unexpected.",b);b={author:l,title:f,link:c,reviewer:void 0,delta:void 0}}else b={};else{k=a.unlinkifiedComment;
g=k.trim().split("\n");var J,O;H=(O=(J=g[0])==null?void 0:J.trim())!=null?O:"";var R;g=(R=g[2])==null?void 0:R.trim();x=(l=H.match(/^Change\s+(\d+)/))==null?void 0:l[1];x==null&&Xm("failed to parse an id from Critique comment, which is unexpected.",k);H=(c=H.match(/^Change.*by (\S+)@/))==null?void 0:c[1];H==null&&Xm("failed to parse an author from Critique comment, which is unexpected.",k);c=(f=k.match(/[\^\s]R=(\S+)/))==null?void 0:f[1];f=(b=k.match(/[\^\s]DELTA=(\d+)/))==null?void 0:b[1];b={id:Lm(x),
author:H,title:g,reviewer:c,delta:Lm(f),link:"cl/"+x}}return b},ZCb=function(a){var b;return(b=YCb(a).id)!=null?b:0},$Cb=function(a){var b;return(b=YCb(a).link)!=null?b:""},aDb=function(a){return[].concat(q(a.preDiffs),q(a.postDiffs)).map(function(b){return"Changed "+(b.displayName||b.name)+" "+(b.newValue?"to "+b.newValue:"")}).join("\n")},cDb=function(a){if(a==null)return"";var b,c,d,e,f=(e=(d=(b=a.userPerformingActionUser)==null?void 0:b.emailAddress)!=null?d:(c=a.userPerformingActionUser)==null?
void 0:c.obfuscatedEmailAddress)!=null?e:"";if(lo(a)||mo(a)){if(a=YCb(a).author)return a.includes("@")?a:a+"@google.com"}else if(f==="product-feedback-gathering@prod.google.com")return bDb(a,"reporter")||f;return f},dDb=function(a,b){var c,d,e;return(e=[].concat(q((c=a.preDiffs)!=null?c:[]),q((d=a.postDiffs)!=null?d:[])).find(function(f){return f.name===b}))==null?void 0:e.oldValue},bDb=function(a,b){var c,d,e;return(e=[].concat(q((c=a.preDiffs)!=null?c:[]),q((d=a.postDiffs)!=null?d:[])).find(function(f){return f.name===
b}))==null?void 0:e.newValue},eDb=function(a){if(a==null)return"default";if(go(a)&&a.commentNumber===1)return"create";if(lo(a)||mo(a))return"changelist";var b,c=(b=a.preDiffs)!=null?b:[],d;b=(d=a.postDiffs)!=null?d:[];c=new Set([].concat(q(c),q(b)).map(function(f){return f.name}));if(c.has("statusUpdate"))return"statusUpdate";if(c.has("assignee")){var e;c=(e=a.userPerformingActionUser)==null?void 0:e.emailAddress;e=bDb(a,"assignee");a=dDb(a,"assignee");return c===e?"self-assign":c===a&&e==="<none>"?
"self-unassign":e==="<none>"?"unassign":"assignee"}return c.has("status")?"status":c.has("priority")?"priority":go(a)?"comment":c.has("component")?"component":"default"},fDb=function(a){a&1&&(Q(0," created "),K(1,"b-issue-reference-widget",1),Q(2),L(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",ss(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},gDb=function(a){a&1&&M(0,"changelist-link-plain",3);a&2&&(a=P(2),I("id",a.getChangelistNumber(a.event)))},
hDb=function(a){a&1&&(K(0,"a",4),Q(1),L());a&2&&(a=P(2),I("href",a.getLink(a.event),Ne),B(),yg(a.getLink(a.event)))},iDb=function(a,b){a&1&&(Q(0," \u2014 "),K(1,"span",5),Q(2),L());a&2&&(B(),I("title",b),B(),yg(b))},jDb=function(a){a&1&&(Q(0," submitted "),F(1,gDb,1,1,"changelist-link-plain",3),F(2,hDb,2,2,"a",4),M(3,"b-formatted-date-time",2),F(4,iDb,3,2));if(a&2){var b;a=P();B();G(a.isCritiqueComment(a.event)?1:-1);B();G(a.isFullGerritComment(a.event)?2:-1);B();I("timestamp",a.event.modifiedDate);
B();G((b=a.getClMetadata(a.event).title)?4:-1,b)}},kDb=function(a){a&1&&(Q(0," commented on "),K(1,"b-issue-reference-widget",1),Q(2),L(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",ss(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},lDb=function(a){a&1&&(Q(0," set priority "),M(1,"b-issue-priority-display",6),Q(2," on "),K(3,"b-issue-reference-widget",1),Q(4),L(),M(5,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("issuePriority",
a.toIssuePriority(a.getNewDiffValue(a.event,"priority"))),B(2),I("href",ss(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},mDb=function(a,b){a&1&&(Q(0," set status "),K(1,"span"),Q(2),L(),Q(3," on "));a&2&&(a=P(2),B(),xg(Eg("chippy xs status-",a.STATUS_CODE_FROM_DISPLAY_STRING[b])),B(),S(" ",b," "))},nDb=function(a){a&1&&(F(0,mDb,4,4),K(1,"b-issue-reference-widget",1),Q(2),L(),M(3,"b-formatted-date-time",2));if(a&2){var b;a=P();G((b=
a.getNewDiffValue(a.event,"status"))?0:-1,b);B();I("href",ss(a.event.issueId))("issueId",a.event.issueId);B();S("b/",a.event.issueId);B();I("timestamp",a.event.modifiedDate)}},oDb=function(a,b){a&1&&(Q(0," \u2014 "),K(1,"span",7),Q(2),L());a&2&&(B(),I("title",b),B(),yg(b))},pDb=function(a){a&1&&(Q(0," set status update on "),K(1,"b-issue-reference-widget",1),Q(2),L(),M(3,"b-formatted-date-time",2),F(4,oDb,3,2));if(a&2){var b;a=P();B();I("href",ss(a.event.issueId))("issueId",a.event.issueId);B();S("b/",
a.event.issueId);B();I("timestamp",a.event.modifiedDate);B();G((b=a.event.statusUpdate==null?null:a.event.statusUpdate.updateText)?4:-1,b)}},qDb=function(a){a&1&&(Q(0," assigned "),K(1,"b-issue-reference-widget",1),Q(2),L(),Q(3," to "),M(4,"b-user-email",0)(5,"b-formatted-date-time",2));if(a&2){a=P();B();I("href",ss(a.event.issueId))("issueId",a.event.issueId);B();S("b/",a.event.issueId);B(2);var b;I("ldapOnly",!0)("email",(b=a.getNewDiffValue(a.event,"assignee"))!=null?b:"");B();I("timestamp",a.event.modifiedDate)}},
rDb=function(a){a&1&&(Q(0," self-assigned "),K(1,"b-issue-reference-widget",1),Q(2),L(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",ss(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},sDb=function(a){a&1&&(Q(0," unassigned self from "),K(1,"b-issue-reference-widget",1),Q(2),L(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",ss(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",
a.event.modifiedDate))},tDb=function(a){a&1&&(Q(0," unassigned "),M(1,"b-user-email",0),Q(2," from "),K(3,"b-issue-reference-widget",1),Q(4),L(),M(5,"b-formatted-date-time",2));if(a&2){a=P();B();var b;I("ldapOnly",!0)("email",(b=a.getPreviousDiffValue(a.event,"assignee"))!=null?b:"");B(2);I("href",ss(a.event.issueId))("issueId",a.event.issueId);B();S("b/",a.event.issueId);B();I("timestamp",a.event.modifiedDate)}},uDb=function(a){a&1&&(Q(0," moved "),K(1,"b-issue-reference-widget",1),Q(2),L(),Q(3,
" to another component "),M(4,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",ss(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(2),I("timestamp",a.event.modifiedDate))},vDb=function(a){a&1&&(K(0,"span",8),Q(1," updated "),L(),K(2,"b-issue-reference-widget",1),Q(3),L(),M(4,"b-formatted-date-time",2));a&2&&(a=P(),I("title",a.shorthandAllDiffs(a.event)),B(2),I("href",ss(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},
wDb=function(a,b){a&1&&(Q(0," \u2014 "),K(1,"span",9),Q(2),L());a&2&&(B(),I("title",b),B(),yg(b))},xDb=function(a){a&1&&F(0,wDb,3,2);if(a&2){var b;a=P();G((b=a.getComment())?0:-1,b)}},yDb=function(a,b){a&1&&(Q(0," \u2014 "),K(1,"span",10),Q(2),L());a&2&&(B(),I("title",b),B(),yg(b))},zDb=function(a){a&1&&F(0,yDb,3,2);if(a&2){a=P();var b,c;a=(b=a.issueFullFridge.peek(a.event.issueId))==null?void 0:(c=b.snapshot[0])==null?void 0:c.title;G(a?0:-1,a)}},ADb=function(a,b){a&1&&M(0,"recent-event-row",4);
a&2&&I("event",b.$implicit)},BDb=function(a,b){a&1&&(K(0,"p",3),Q(1),L(),Nf(2,ADb,1,1,"recent-event-row",4,Mf));if(a&2){a=P();var c=P(3);B();S("Last 24 hours ",c.printStats(a["<24h"]));B();Of(b)}},CDb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},DDb=function(a,b){a&1&&(K(0,"p",5),Q(1),L(),Nf(2,CDb,1,1,"recent-event-row",4,Mf));if(a&2){a=P();var c=P(3);B();S("1-7 days ago ",c.printStats(a["24h-7d"]));B();Of(b)}},EDb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",
b.$implicit)},FDb=function(a,b){a&1&&(K(0,"p",5),Q(1),L(),Nf(2,EDb,1,1,"recent-event-row",4,Mf));if(a&2){a=P();var c=P(3);B();S("1-4 weeks ago ",c.printStats(a["7d-30d"]));B();Of(b)}},GDb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},HDb=function(a,b){a&1&&(K(0,"p",5),Q(1),L(),Nf(2,GDb,1,1,"recent-event-row",4,Mf));if(a&2){a=P();var c=P(3);B();S(">30 days ago ",c.printStats(a[">30d"]));B();Of(b)}},IDb=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);
var c=P(4);c.numDisplayed$.value<100?c.numDisplayed$.next(100):c.numDisplayed$.next(c.defaultNumEvents);return v()});Q(1);L()}a&2&&(a=P(4),B(),S(" ",a.numDisplayed$.value>a.defaultNumEvents?"Show less":"Show more"," "))},JDb=function(a){a&1&&(F(0,BDb,4,1),F(1,DDb,4,1),F(2,FDb,4,1),F(3,HDb,4,1),F(4,IDb,2,1,"button",2),T(5,"async"));if(a&2){var b,c,d,e,f;a=P();var g=P(2);G((b=a["<24h"])?0:-1,b);B();G((c=a["24h-7d"])?1:-1,c);B();G((d=a["7d-30d"])?2:-1,d);B();G((e=a[">30d"])?3:-1,e);B();var k;G(((k=(f=
U(5,5,g.events$))==null?null:f.length)!=null?k:0)>g.defaultNumEvents?4:-1)}},KDb=function(a){a&1&&(F(0,JDb,6,7),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.bucketedEventStats$))?0:-1,b)}},LDb=function(a){a&1&&(K(0,"div",0),Q(1," Recent activity "),M(2,"input",1),L(),F(3,KDb,2,3),T(4,"async"));if(a&2){var b;a=P();B(2);I("formControl",a.quickFilter);B();G((b=U(4,2,a.bucketedEvents$))?3:-1,b)}},MDb=function(a){return function(b){var c;if(a){var d="";if(lo(b)||mo(b)){var e=YCb(b);d="submitted "+e.link+
" "+e.title}e="b/"+b.issueId;var f=cDb(b),g=eDb(b),k=aDb(b);b=b==null||lo(b)||mo(b)?"":((c=b.unlinkifiedComment)!=null?c:"").slice(0,999);c=[e,f,g,d,k,b].join(" ").toLowerCase().includes(a.toLowerCase())}else c=!0;return c}},NDb=function(a){if(a==null||a.n<=1)return"";var b=Object.keys(a.pptCounts).length;a=[a.clCount?a.clCount+" CLs":void 0,a.fixed?a.fixed+" issues fixed":void 0,b>1?b+" participants":void 0].filter(Pm);return a.length===0?"":"\u2014 "+a.join(", ")},ODb=function(a){var b={};a.forEach(function(c){var d=
Date.now()-c.modifiedDate,e=">30d";d<864E5?e="<24h":d<6048E5?e="24h-7d":d<2592E6&&(e="7d-30d");b[e]==null&&(b[e]=[]);b[e].push(c)});return b},PDb=function(a,b){var c;a=(c=b[a])!=null?c:[];var d={n:a.length,pptCounts:{}};a.forEach(function(e){var f=eDb(e),g=cDb(e);if(f!=="changelist"?e.isCommentEvent:e.unlinkifiedComment){var k;d.comment=((k=d.comment)!=null?k:0)+1;var l;d.pptCounts[g]=((l=d.pptCounts[g])!=null?l:0)+1}if(f==="changelist"){var r;d.clCount=((r=d.clCount)!=null?r:0)+1;var w;d.pptCounts[g]=
((w=d.pptCounts[g])!=null?w:0)+1}else if(f==="create"){var x;d.created=((x=d.created)!=null?x:0)+1;var C;d.pptCounts[g]=((C=d.pptCounts[g])!=null?C:0)+1}else if(f==="status"&&bDb(e,"status")==="Fixed"){var H;d.fixed=((H=d.fixed)!=null?H:0)+1}});return d},QDb=function(a){a&1&&(K(0,"p",11),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.description))},RDb=function(a,b){a&1&&(K(0,"mat-list-option",8)(1,"div",9)(2,"label",10),Q(3),L()(),F(4,QDb,2,1,"p",11),L());a&2&&(a=b.$implicit,b=P(2),vg("height","auto"),
I("selected",b.selectedIds.has(a.searchId))("value",a.searchId),B(3),yg(a.name),B(),G(a.description?4:-1))},UDb=function(a,b){if(a&1){var c=t();K(0,"mat-selection-list",6);N("selectionChange",function(d){u(c);var e=P();return v(SDb(e,d))});Nf(1,RDb,5,6,"mat-list-option",7,TDb);L()}a&2&&(B(),Of(b))},VDb=function(a,b){a&1&&M(0,"avatar-bunch",4);a&2&&I("emails",b)},WDb=function(a,b){a&1&&(K(0,"a",6),Q(1," View in TaskFlow "),M(2,"mat-icon",7),L());a&2&&I("href",b,Ne)},XDb=function(a,b){a&1&&M(0,"progress-pie",
1);a&2&&I("closed",b.closed)("total",b.total)},ZDb=function(a,b){a&1&&(M(0,"cl-counts",3),T(1,"async"));if(a&2){a=P();var c;I("submitted",b.changelists)("pending",(c=U(1,2,a.pendingCls$))!=null?c:Hg(4,YDb))}},$Db=function(a){a&1&&M(0,"gerrit-changes-count",4);a&2&&(a=P(),I("changes",a))},aEb=function(a,b){a&1&&F(0,$Db,1,1,"gerrit-changes-count",4);a&2&&G(b&&b.length>0?0:-1)},bEb=function(a){a&1&&M(0,"avatar-bunch",5);a&2&&(a=P(),I("emails",a))},cEb=function(a,b){a&1&&F(0,bEb,1,1,"avatar-bunch",5);
a&2&&G(b.length>0?0:-1)},dEb=function(a){return a},eEb=function(a){a==="UNKNOWN_SOURCE"&&console.error("an UNKNOWN TaskSources snuck in");return a},fEb=function(a,b){return b.buganizerSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},gEb=function(a,b){return a?b.buganizerSignals.filter(function(c){return a.get(c)!==!1}):b.buganizerSignals},hEb=function(a,b){return b.changelistSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},iEb=function(a,b){return a?b.changelistSignals.filter(function(c){return a.get(c)!==
!1}):b.changelistSignals},jEb=function(a,b){return b.driveSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},kEb=function(a,b){return a?b.driveSignals.filter(function(c){return a.get(c)!==!1}):b.driveSignals},lEb=function(a,b){return b.gerritSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},mEb=function(a,b){return a?b.gerritSignals.filter(function(c){return a.get(c)!==!1}):b.gerritSignals},nEb=function(a,b){return a?b.googleTasksSignals.filter(function(c){return a.get(c)!==
!1}):b.googleTasksSignals},oEb=function(a,b){return a?b.irmSignals.filter(function(c){return a.get(c)!==!1}):b.irmSignals},pEb=function(a,b){return b.googleTasksSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},qEb=function(a,b){return b.irmSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},rEb=function(a){a&1&&(K(0,"div",2),Q(1),L());if(a&2){a=P();wg("muted",!a.isNumeric(a.countDisplay)||a.isDisabled());B();var b;yg((b=a.countDisplay)!=null?b:"\u00a0")}},sEb=
function(a){a&1&&(K(0,"div",0),M(1,"qif-stat",1),T(2,"async"),M(3,"qif-stat",1),T(4,"async"),L());a&2&&(a=P(),B(),I("key",a.QuickFilterKey.OPEN)("prefKey",a.id)("metadata",U(2,6,a.metadata$)),B(2),I("key",a.QuickFilterKey.BROAD_IN_PROGRESS)("prefKey",a.id)("metadata",U(4,8,a.metadata$)))},tEb=function(a,b){return a===b?!0:(a==null?void 0:a.type)===(b==null?void 0:b.type)&&!(a==null||!a.ancestorChain.equals(b==null?void 0:b.ancestorChain))},uEb=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:wb(a)}},wEb=function(a,b){var c=function(){return{position:d,rowElement:b}};if(b.classList.contains("dragging")||b.classList.contains("nodrop")||b.classList.contains("mat-mdc-header-row")){var d="none";return c()}var e=vEb(b),f=b.nextElementSibling&&vEb(b.nextElementSibling),g=b.previousElementSibling&&vEb(b.previousElementSibling);if(a==="top"){var k;if(((k=b.previousElementSibling)==null?0:k.classList.contains("dragging"))&&
g===e)return d="none",c();d="before";return c()}if(a==="bottom"){if(f!=null&&e<f){var l;if((l=b.nextElementSibling)==null?0:l.classList.contains("dragging"))return d="none",c();b=b.nextElementSibling;d="before";return c()}var r;if(((r=b.nextElementSibling)==null?0:r.classList.contains("dragging"))&&e===f)return d="none",c();d="after";return c()}d="current";return c()},vEb=function(a){return Number(a.dataset.level)},xEb=function(a){var b;return Ht((b=a.dataset.ancestorchain)!=null?b:"")},yEb=function(a){a&
1&&M(0,"th",25)},zEb=function(a){if(a&1){var b=t();K(0,"td",26,0);N("click",function(c){var d=u(b).$implicit,e=qg(1),f=P();e.focus();Ds(f.focusManager,d);return v(c.stopPropagation())});L()}},AEb=function(a){a&1&&M(0,"th",25)},BEb=function(a){if(a&1){var b=t();K(0,"td",27,1);N("click",function(c){var d=u(b).$implicit,e=qg(1),f=P();e.focus();Ds(f.focusManager,d);return v(c.stopPropagation())})("dragstart",function(c){u(b);var d=P();return v(d.handleDragStart(c))});M(2,"mat-icon",28);L()}},CEb=function(a){a&
1&&(K(0,"th",25),Q(1," Id "),L())},DEb=function(a,b){a&1&&(K(0,"td",29),M(1,"b-issue-id-cell",30),L());a&2&&(a=b.$implicit,B(),I("id",a.id))},EEb=function(a){a&1&&(K(0,"th",25),Q(1," Id "),L())},FEb=function(a){a&1&&(K(0,"td",29),Q(1,"--"),L())},GEb=function(a){a&1&&(K(0,"th",25),Q(1," Title "),L())},HEb=function(a,b){if(a&1){var c=t();K(0,"td",29)(1,"b-expandable-issue-title-cell",31);T(2,"async");T(3,"async");N("expansionChange",function(){var d=u(c).$implicit,e=P();return v(e.toggleExpansion(d))})("onSaveOutput",
function(){var d=u(c).$implicit;return v(d.isEditMode=!1)})("onCancelOutput",function(){var d=u(c).$implicit;return v(d.isEditMode=!1)});L()()}a&2&&(a=b.$implicit,B(),I("isEditMode",a.isEditMode)("issue",U(2,5,a.issue$))("expandable",U(3,7,a.hasChildren$))("expanded",!!a.expandedCount)("level",a.level))},IEb=function(a){a&1&&(K(0,"th",25),Q(1," Type "),L())},JEb=function(a,b){a&1&&(K(0,"td",29),M(1,"b-issue-type-cell",32),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},KEb=
function(){},LEb=function(a){a&1&&Q(0," Assignee ")},MEb=function(a){a&1&&(K(0,"th",25),F(1,KEb,0,0)(2,LEb,1,0),L());a&2&&(a=P(),B(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},NEb=function(a,b){a&1&&M(0,"b-user-image",33);a&2&&I("email",b)},OEb=function(a){a&1&&F(0,NEb,1,1,"b-user-image",33);if(a&2){var b;a=P();var c=P(3);G((b=c.getAssigneeString(a))?0:-1,b)}},PEb=function(a,b){a&1&&F(0,OEb,1,1);a&2&&(a=P(3),G(a.isOpen(b)?0:-1))},QEb=function(a){a&1&&(F(0,PEb,
1,1),T(1,"async"));if(a&2){var b;a=P().$implicit;G((b=U(1,1,a.issue$))?0:-1,b)}},REb=function(a){a&1&&(M(0,"b-issue-assignee-cell",32),T(1,"async"));a&2&&(a=P().$implicit,I("issue",U(1,1,a.issue$)))},SEb=function(a){a&1&&(K(0,"td",29),F(1,QEb,2,3)(2,REb,2,3,"b-issue-assignee-cell",32),L());a&2&&(a=P(),B(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},TEb=function(a){a&1&&(K(0,"th",25),Q(1," Status "),L())},UEb=function(a,b){a&1&&(K(0,"td",29),M(1,"b-issue-status-cell",
34),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,2,a.issue$))("showPendingFix",!0))},VEb=function(a){a&1&&(K(0,"th",25),Q(1," Team "),L())},WEb=function(a,b){a&1&&(K(0,"td",29),M(1,"b-issue-team-cell",32),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},XEb=function(a){a&1&&M(0,"th",25)},ZEb=function(a,b){if(a&1){var c=t();K(0,"td",29)(1,"b-actions-menu",35);T(2,"async");N("click",function(e){u(c);return v(e.stopPropagation())});L()()}if(a&2){a=b.$implicit;b=P();B();
var d;I("menuItems",(d=U(2,1,b.getMenuItems(a)))!=null?d:Hg(3,YEb))}},$Eb=function(a){a&1&&M(0,"th",25)},bFb=function(a){if(a&1){var b=t();K(0,"b-actions-menu",35);N("click",function(d){u(b);return v(d.stopPropagation())});L()}if(a&2){a=P().$implicit;var c=P();I("menuItems",aFb(c,a))}},cFb=function(a){a&1&&M(0,"b-spinner")},dFb=function(a){a&1&&M(0,"b-spinner")},eFb=function(a,b){a&1&&(K(0,"td",36),F(1,bFb,1,1,"b-actions-menu",37)(2,cFb,1,0,"b-spinner"),E(3,dFb,1,0,"ng-template",null,2,Mg),L());a&
2&&(a=b.$implicit,B(),G(a.saving?2:1))},gFb=function(a,b){if(a&1){var c=t();K(0,"td",29)(1,"b-async-data-placeholder",38);T(2,"async");K(3,"b-button",39);N("onAction",function(){var d=u(c).$implicit,e=P();return v(fFb(e,d))});K(4,"span",40);Q(5);L()()()()}a&2&&(a=b.$implicit,b=P(),vg("padding-left",a.level*24+b.TITLE_FIXED_OFFSET_PX,"px"),If("colspan",b.tableColumns.length),B(),I("isReady",!!U(2,5,a.parentIssue$)),B(4),S("Display ",a.truncatedSiblingCount," more"))},hFb=function(a){a&1&&(K(0,"th",
25),Q(1," Title "),L())},jFb=function(a,b){if(a&1){var c=t();K(0,"td",29)(1,"div",41)(2,"b-text-input-cell",42);Cg("valueChange",function(d){var e=u(c).$implicit;Bg(e.title,d)||(e.title=d);return v(d)});N("commit",function(){var d=u(c).$implicit,e=P();return v(e.saveDraft(d))});L();K(3,"b-button",43);N("onAction",function(){var d=u(c).$implicit,e=P();return v(e.saveDraft(d))});Q(4," Create ");L();K(5,"b-button",44);N("onAction",function(){var d=u(c).$implicit,e=P();return v(iFb(e,d))});Q(6," Cancel ");
L()()()}a&2&&(a=b.$implicit,b=P(),vg("padding-left",(a.level+1)*24+b.EDITABLE_TITLE_OFFSET_PX,"px"),B(2),Ag("value",a.title),I("readonly",a.saving),B(),I("disabled",!a.title||a.saving),B(2),I("disabled",a.saving))},kFb=function(a){a&1&&M(0,"tr",18)},lFb=function(a){a&1&&E(0,kFb,1,0,"tr",45);a&2&&(a=P(),I("matHeaderRowDef",a.tableColumns))},nFb=function(a,b){if(a&1){var c=t();K(0,"tr",46);T(1,"async");T(2,"async");N("click",function(d){var e=u(c).$implicit,f=P();return v(f.navigateToIssue(d,e))})("mouseup",
function(d){var e=u(c).$implicit,f=P();return v(f.navigateToIssue(d,e))})("focusin",function(){var d=u(c).$implicit,e=P();return v(Ds(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P();return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,b=P(),wg("selected",U(1,8,mFb(b.selectionModel,a.ancestorChain)))("closed",b.isClosed(U(2,10,a.issue$))),I("row",a),If("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},oFb=function(a,b){if(a&1){var c=t();
K(0,"tr",47);N("focusin",function(){var d=u(c).$implicit,e=P();return v(Ds(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P();return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,I("row",a),If("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},pFb=function(a,b){if(a&1){var c=t();K(0,"tr",48);N("keydown",function(d){var e=u(c).$implicit,f=P();return v(f.onRowKeydown(e,d))})("keydown.escape",function(){var d=u(c).$implicit,e=P();return v(iFb(e,
d))})("keydown.backspace",function(d){var e=u(c).$implicit,f=P();return v(e.title||d.repeat||iFb(f,e))})("focusin",function(){var d=u(c).$implicit,e=P();return v(Ds(e.focusManager,d))});L()}a&2&&(a=b.$implicit,I("row",a),If("data-type",a.type))},qFb=function(a,b){if(a&&a.length)return a.map(b)},rFb=function(a){var b=a.getFilename();var c=Dm(a,2,Ci(Jm));return{filename:b,lineNumber:c,changeNumber:Ym(a.getChangeNumber())}},tFb=function(a){var b=ui(a,1);a=Bi(a,sFb,2,Ci(Jm));return{packageName:b,fileMentionSet:qFb(a,
rFb)}},vFb=function(a){var b=Bm(a,1,void 0,jb),c=Fi(a,2,void 0,jb);a=Bi(a,uFb,3,Ci(Jm),jb);return{totalMentions:b,truncated:c,packageMentionSet:qFb(a,tFb)}},xFb=function(a){return{issueId:Number(a.getIssueId()),responseId:a.getResponseId(),response:a.getResponse(),issueCategory:wFb[a.getIssueCategory()]}},yFb=function(a){return{issueId:Number(a.getIssueId()),issueCategory:wFb[a.getIssueCategory()]}},AFb=function(a){if(!a)return!1;a=a.events;return[].concat(q(a.slice(0,1).filter(function(b){var c;
return(c=b.unlinkifiedComment)==null?void 0:c.trim()})),q(a.slice(1).filter(zFb).filter(function(b){var c;return(c=b.unlinkifiedComment)==null?void 0:c.trim()}))).length>=3},zFb=function(a){return!(!xTa(a.userPerformingAction)||!a.isMajorEvent)},CFb=function(a){var b=BFb(a.open);a=BFb(a.total);return b===a?"("+b+")":"("+b+"/"+a+")"},BFb=function(a){var b=a.count;a=a.exact;return b===0||a?""+b:b+"+"},DFb=function(a){return"("+BFb(a)+")"},It=function(a){return{count:a>99?99:a,exact:a>99?!1:!0}},EFb=
function(a,b){switch(b){case "BLOCKED_BY":return"blockingid:"+a+" status:open";case "BLOCKING":return"blockedbyid:"+a+" status:open";case "DUPLICATE":return"canonicalid:"+a;case "CHILDREN":return"parentid:"+a+" status:open";case "PARENT":break;default:wb(b)}},FFb=function(a){a&1&&Vf(0)},GFb=function(a){a&1&&E(0,FFb,1,0,"ng-container",6);a&2&&(P(),a=qg(14),I("ngTemplateOutlet",a))},HFb=function(a,b){a&1&&M(0,"b-issues-table",7);a&2&&(a=P(2),I("issueIds",b)("tableColumns",a.tableColumns)("menuItemFactory",
a.getMenuItems)("filters",a.filters)("initialSort",a.initialSort)("options",a.tableOptions))},IFb=function(a){a&1&&(F(0,HFb,1,6,"b-issues-table",7),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.blockerIds$))?0:-1,b)}},JFb=function(a){a&1&&Vf(0)},KFb=function(a){a&1&&(K(0,"div")(1,"span",5),Q(2,"This issue is not blocked "),K(3,"span",8),Q(4,"\ud83c\udf89"),L()(),E(5,JFb,1,0,"ng-container",6),L());a&2&&(P(),a=qg(14),B(5),I("ngTemplateOutlet",a))},LFb=function(a,b){if(a&1){var c=t();K(0,"p",5);Q(1);
K(2,"button",9);N("click",function(){u(c);var d=P();return v(d.shouldResetFilters.next())});Q(3,"Show all");L()()}a&2&&(B(),zg(" Filtering ",b," issue",b===1?"":"s",". "))},NFb=function(a){if(a&1){var b=t();K(0,"b-button",10);T(1,"async");N("onAction",function(){u(b);var c=P();return v(MFb(c))});Q(2," Add blocker ");L()}a&2&&(a=P(),I("disabled",!U(1,1,a.canEdit$)))},OFb=function(a,b){a&1&&M(0,"b-issues-table",0);a&2&&(a=P(),I("issueIds",b)("tableColumns",a.tableColumns)("options",a.tableOptions)("filters",
a.filters)("issueUrlFactory",a.ROUTES.issueDependencies.makeHref)("menuItemFactory",a.getMenuItems))},PFb=function(a,b){a&1&&(K(0,"span",8),Q(1),L());a&2&&(I("title",Eg("",b," applied filter(s)")),B(),yg(b))},QFb=function(a){a&1&&(F(0,PFb,2,3,"span",8),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.internalSelectedOptions.size$))?0:-1,b)}},RFb=function(a){a&1&&(K(0,"h1",6),Q(1),L());a&2&&(a=P(),B(),yg(a.overlayTitle))},SFb=function(a){a&1&&(K(0,"h1"),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.title))},
TFb=function(a){a&1&&(K(0,"p"),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.description))},UFb=function(a,b){if(a&1){var c=t();K(0,"div",7)(1,"div",9)(2,"mat-checkbox",10);T(3,"async");N("change",function(d){var e=u(c).$implicit,f=P();e=e.key;d.checked?f.internalSelectedOptions.add(e):f.internalSelectedOptions.delete(e);f.onChange.emit(new Set(f.internalSelectedOptions));return v()});L();K(4,"div");F(5,SFb,2,1,"h1");F(6,TFb,2,1,"p");L()()()}a&2&&(a=b.$implicit,b=P(),B(2),I("checked",U(3,3,Cs(b.internalSelectedOptions,
a.key))),B(3),G(a.title?5:-1),B(),G(a.description?6:-1))},VFb=function(a){if(a&1){var b=t();M(0,"mat-divider");K(1,"div",11)(2,"button",12);N("click",function(){u(b);var c=P(),d=qg(1);return v(c.cancel(d))});Q(3);L();K(4,"button",13);N("click",function(){u(b);var c=P(),d=qg(1);return v(c.confirm(d))});Q(5);L()()}a&2&&(a=P(),B(3),yg(a.cancelButtonLabel),B(2),yg(a.confirmButtonLabel))},WFb=function(a){a&1&&M(0,"b-spinner")},XFb=function(a){a&1&&Vf(0)},YFb=function(a){a&1&&E(0,XFb,1,0,"ng-container",
23);a&2&&(P(2),a=qg(12),I("ngTemplateOutlet",a))},ZFb=function(a){a&1&&(M(0,"b-parents-table",15),T(1,"async"),T(2,"async"));if(a&2){a=P();var b=P();I("issueId",a)("parentIds",U(1,3,b.parentIds$))("filters",U(2,5,b.issueFilters.value$))}},$Fb=function(a){a&1&&Vf(0)},aGb=function(a){a&1&&(K(0,"div")(1,"span",24),Q(2,"This issue has no parents"),L(),E(3,$Fb,1,0,"ng-container",23),L());a&2&&(P(2),a=qg(12),B(3),I("ngTemplateOutlet",a))},bGb=function(a){a&1&&Vf(0)},dGb=function(a){a&1&&(E(0,bGb,1,0,"ng-container",
25),T(1,"async"));if(a&2){a=P(2);var b=qg(10);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(4,cGb,U(1,2,a.parentsTable==null?null:a.parentsTable.hiddenRowCount$)))}},eGb=function(a){a&1&&Vf(0)},fGb=function(a){a&1&&E(0,eGb,1,0,"ng-container",23);a&2&&(P(2),a=qg(14),I("ngTemplateOutlet",a))},gGb=function(a){a&1&&(K(0,"div",20)(1,"section",26)(2,"div",27),Q(3," Progress: "),L(),K(4,"div",27),Q(5),T(6,"async"),T(7,"number"),T(8,"async"),T(9,"number"),L(),K(10,"div",28),T(11,"async"),K(12,"div",
29),M(13,"div",30),T(14,"async"),K(15,"onedev-hovercard",null,3)(17,"div",31)(18,"div",32),Q(19),T(20,"async"),L()()()()(),M(21,"mat-icon",33),K(22,"onedev-hovercard",null,4)(24,"div",31)(25,"div",34)(26,"p"),Q(27," The progress of child issues takes into consideration all child issues and descendant issues which have estimation data. If a child issue doesn\u2019t have an estimate, their progress is not reflected in the progress bar. "),L()()()()()());if(a&2){a=qg(16);var b=qg(23),c=P(2);B(5);zg(" ",
Lg(7,11,U(6,9,c.totalDaysComplete$),"1.0-2")," of ",Lg(9,16,U(8,14,c.totalDaysCount$),"1.0-2")," days complete ");B(5);If("aria-label",Eg("",U(11,19,c.totalDaysDisplayPercent$)," Percentage of effort completed"));B(2);I("onedevHovercardTrigger",a);B();vg("width",U(14,21,c.totalDaysDisplayPercent$),"%");B(6);S(" ",U(20,23,c.progressHovercardContent$)," ");B(2);I("onedevHovercardTrigger",b)}},hGb=function(a){a&1&&M(0,"rollups-project",21);a&2&&(a=P(),I("id",a))},iGb=function(a){a&1&&Vf(0)},jGb=function(a){a&
1&&(E(0,iGb,1,0,"ng-container",25),T(1,"async"));if(a&2){a=P(2);var b=qg(10);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(4,cGb,U(1,2,a.relationsTable==null?null:a.relationsTable.hiddenRowCount$)))}},kGb=function(a){a&1&&Vf(0)},lGb=function(a){a&1&&(K(0,"span",24),Q(1,"This issue has no children"),L(),E(2,kGb,1,0,"ng-container",23));a&2&&(P(3),a=qg(14),B(2),I("ngTemplateOutlet",a))},mGb=function(a){a&1&&(K(0,"p",35)(1,"a",36),Q(2," View as search results "),L()());if(a&2){a=P(2);var b=P();
B();I("href",b.makeIlpUrlForParentIssue(a),Ne)}},nGb=function(a){a&1&&(F(0,lGb,3,1),T(1,"async"),T(2,"async"),Kf(3,mGb,3,1,"p",35));if(a&2){var b;a=P(2);G(U(1,1,a.unarchivedChildIssueCount$)===0&&(((b=U(2,3,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:b.length)||0)===0?0:3)}},oGb=function(a,b){if(a&1){var c=t();K(0,"div",9)(1,"section",10)(2,"div",11)(3,"h4",12)(4,"div",13);M(5,"mat-icon",14);L();Q(6);T(7,"async");L();F(8,YFb,1,1,"ng-container");T(9,"async");L();F(10,ZFb,3,7,"b-parents-table",
15);T(11,"async");Kf(12,aGb,4,1,"div");F(13,dGb,2,6,"ng-container");T(14,"async");L();K(15,"section")(16,"b-blockers-table",16);T(17,"async");N("shouldResetFilters",function(){u(c);var f=P();return v(f.shouldResetFilters())});L()();K(18,"section")(19,"div",17)(20,"h4",12)(21,"div",18);M(22,"mat-icon",19);L();Q(23);T(24,"async");L();F(25,fGb,1,1,"ng-container");T(26,"async");T(27,"async");L();F(28,gGb,28,25,"div",20);T(29,"async");T(30,"async");F(31,hGb,1,1,"rollups-project",21);M(32,"b-issue-relations-table",
22);T(33,"async");T(34,"async");T(35,"async");F(36,jGb,2,6,"ng-container");T(37,"async");F(38,nGb,4,5);T(39,"async");L()()}if(a&2){var d,e;a=P();B(6);S(" Parents ",U(7,17,a.counts.countParentsDisplay$)," ");B(2);G(U(9,19,a.parentsCount$)?8:-1);B(2);G(U(11,21,a.parentsCount$)?10:12);B(3);G(U(14,23,a.issueFilters.value$)?13:-1);B(3);I("filters",U(17,25,a.issueFilters.value$));B(7);S(" Child issues ",U(24,27,a.counts.countChildrenDisplay$)," ");B(2);G(U(26,29,a.unarchivedChildIssueCount$)||(((d=U(27,
31,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:d.length)||0)>0?25:-1);B(3);G(U(29,33,a.unarchivedChildIssueCount$)&&U(30,35,a.totalDaysCount$)?28:-1);B(3);G(a.isInternalSession&&a.enableRollupStatsUi?31:-1);B();wg("hidden",!((e=U(33,37,a.relationsTable==null?null:a.relationsTable.rows$))==null?0:e.length)&&!U(34,39,a.relationsTable==null?null:a.relationsTable.hiddenRowCount$));I("saveExpansionAtKey",Eg("project-expansion-",b))("rootIssueId",b)("filters",U(35,41,a.issueFilters.value$));
B(4);G(U(37,43,a.issueFilters.value$)?36:-1);B(2);G(U(39,45,a.unarchivedChildIssueCount$)!==null?38:-1)}},pGb=function(a){if(a&1){var b=t();K(0,"p",24);Q(1);K(2,"button",37);N("click",function(){u(b);var c=P(2);return v(c.issueFilters.reset([]))});Q(3,"Show all");L()()}a&2&&(a=P().filteredCount,B(),zg(" Filtering ",a," issue",a===1?"":"s",". "))},qGb=function(a,b){a&1&&F(0,pGb,4,2,"p",24);a&2&&G(b.filteredCount?0:-1)},sGb=function(a){if(a&1){var b=t();K(0,"b-button",38);T(1,"async");N("onAction",
function(){u(b);var c=P();return v(rGb(c))});Q(2," Add parent ");L()}a&2&&(a=P(),I("disabled",!U(1,1,a.canEdit$)))},tGb=function(a){if(a&1){var b=t();K(0,"b-button",41);T(1,"async");N("onAction",function(){u(b);var c=P(2);return v(c.createChild())});Q(2," Create new child ");L()}a&2&&(a=P(2),I("disabled",!U(1,1,a.canEdit$)))},uGb=function(a){if(a&1){var b=t();F(0,tGb,3,3,"b-button",39);K(1,"b-button",40);T(2,"async");N("onAction",function(){u(b);var c=P();return v(c.addChild())});Q(3," Add existing child ");
L()}a&2&&(a=P(),G(a.isNonPublicSession?0:-1),B(),I("disabled",!U(2,2,a.canEdit$)))},vGb=function(a,b){return ie([a,b]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return d===0?0:Math.round(c*100/d*100)/100}))},wGb=function(a){return a===1?a+" day":a+" days"},xGb=function(a){a&1&&(M(0,"one-work-area-list",0),T(1,"async"));a&2&&(a=P(2),I("searchString",U(1,5,a.issueFilter$))("prefKey",a.entityReference)("reference",a.entityReference)("onlyShowTableWhenFiltered",a.onlyShowTableWhenFiltered)("entityType",
a.entityType))},yGb=function(a){a&1&&M(0,"rollups-project",2)(1,"stat-cards-project",2);a&2&&(a=P(2),I("id",a),B(),I("id",a))},AGb=function(a){if(a&1){var b=t();K(0,"aside",4)(1,"p",5);Q(2,"This issue has no children.");L();K(3,"button",6);N("click",function(){u(b);var c;(c=P(5).relationsTable)==null||zGb(c);return v()});Q(4," Create new child ");L();K(5,"button",7);N("click",function(){u(b);var c;(c=P(5).relationsTable)==null||c.addExistingChild();return v()});Q(6," Add existing ");L()()}},BGb=function(a,
b){a&1&&(F(0,AGb,7,0,"aside",4),T(1,"async"));if(a&2){var c;a=P(4);G(b.descendantCount===0&&(((c=U(1,1,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:c.length)||0)===0?0:-1)}},CGb=function(a){a&1&&(M(0,"b-issue-relations-table",3),F(1,BGb,2,3),T(2,"async"));if(a&2){var b;a=P(2);var c=P();I("saveExpansionAtKey",Eg("project-expansion-",a))("rootIssueId",a)("filters",c.getFilters())("tableColumns",c.TREE_COLUMNS)("options",c.TREE_OPTIONS)("defaultExpansionLevel",0);B();G((b=U(2,8,c.issue$))?
1:-1,b)}},DGb=function(a){a&1&&(F(0,yGb,2,2),F(1,CGb,3,10));a&2&&(a=P(2),G(a.isInternalSession?0:-1),B(),G(a.showTable()?1:-1))},EGb=function(a){a&1&&Q(0);a&2&&(a=P(2),S(" Unhandled entity type: ",a.entityType," "))},FGb=function(a){a&1&&(M(0,"recent-events",1),T(1,"async"));a&2&&(a=P(2),I("query",U(1,2,a.issueFilter$))("numEvents",a.numRecentActivityEvents))},GGb=function(a){a&1&&(F(0,xGb,2,7,"one-work-area-list",0)(1,DGb,2,2)(2,EGb,1,1),F(3,FGb,2,4,"recent-events",1));a&2&&(a=P(),G(a.entityType===
"hotlist"||a.entityType==="savedsearch"?0:a.entityType==="issue"?1:2),B(3),G(a.hideRecentActivity?-1:3))},HGb=function(a){return{filter:a!=null?a:void 0,pageSize:500,sort:"modified_time:desc"}},IGb=function(a){a&1&&(M(0,"rollups-list",0),T(1,"async"),M(2,"stat-cards-list",1),T(3,"async"));a&2&&(a=P(),I("ref",a.reference)("query",U(1,5,a.issueQuery$)),B(2),I("prefKey",a.prefKey)("query",U(3,7,a.issueQuery$))("entityType",a.entityType))},JGb=function(a,b){a&1&&M(0,"b-issues-table",2);a&2&&(a=P(2),I("issueIds",
b)("options",a.TABLE_OPTIONS)("filters",a.getFilters())("tableColumns",a.getFilters()[0]==="PROGRESS"?a.PROGRESS_COLUMNS:a.DEFAULT_COLUMNS)("initialSort",a.INITIAL_SORT))},KGb=function(a){a&1&&(F(0,JGb,1,5,"b-issues-table",2),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.issueIds$))?0:-1,b)}},LGb=function(a){a&1&&(K(0,"button",9),M(1,"mat-icon",13),Q(2," Add "),L());a&2&&(P(),a=qg(9),I("matMenuTriggerFor",a))},MGb=function(a){a&1&&M(0,"b-tracker-chip-smart",17);a&2&&(a=P(2).$implicit,I("trackerId",
a.trackerId)("compactMode",!0))},NGb=function(a){a&1&&(K(0,"a",28),M(1,"mat-icon",29),Q(2," View Issue "),L(),K(3,"a",30),M(4,"mat-icon",29),Q(5," View as search results "),L());if(a&2){a=P(2).$implicit;var b=P(2);I("routerLink",b.makeBuganizerUrl(a.workAreaUrl));B(3);I("href",b.makeIlpUrlForParentIssue(a.workAreaUrl),Ne)}},OGb=function(a){a&1&&(K(0,"a",21),M(1,"mat-icon",29),Q(2),L());if(a&2){a=P(2).$implicit;var b=P(2);I("routerLink",b.makeBuganizerUrl(a.workAreaUrl));B(2);S(" View ",b.getEntityTypeName(a.workAreaUrl),
" ")}},PGb=function(a,b){if(a&1){var c=t();K(0,"button",10);N("click",function(){var d=u(c),e=P(4);e.clipboard.copy(d);Rr(e.butterBar,"ID copied",2E3);return v()});M(1,"mat-icon",31);Q(2);L()}a&2&&(B(2),S(" Copy ID: ",b," "))},RGb=function(a){if(a&1){var b=t();F(0,MGb,1,2,"b-tracker-chip-smart",17);Q(1);K(2,"button",18);N("click",function(k){u(b);return v(k.stopPropagation())});M(3,"mat-icon",19);L();K(4,"mat-menu",20,1);F(6,NGb,6,2)(7,OGb,3,2,"a",21);F(8,PGb,3,1,"button",22);M(9,"mat-divider");K(10,
"button",23);N("click",function(){u(b);var k=P().$implicit,l=P(2);return v(QGb(l.prefsService,k.workAreaUrl,-1))});M(11,"mat-icon",24);Q(12," Move Left ");L();K(13,"button",23);N("click",function(){u(b);var k=P().$implicit,l=P(2);return v(QGb(l.prefsService,k.workAreaUrl,1))});M(14,"mat-icon",25);Q(15," Move Right ");L();K(16,"button",26);N("click",function(){u(b);var k=P().$implicit,l=P(2).prefsService,r=k.workAreaUrl;if(r!=null){var w;k=((w=l.prefs.workAreaUrls)!=null?w:[]).slice();w=k.indexOf(r);
w<0||(k.splice(w,1),Jt(l,{workAreaUrls:k}))}return v()});M(17,"mat-icon",27);Q(18," Remove ");L()()}if(a&2){var c;a=qg(5);var d=P(),e=d.$implicit,f=d.$index;d=d.$count;var g=P(2);G(g.currentTrackerId&&g.currentTrackerId!==e.trackerId&&g.inferEntityType(e.workAreaUrl)==="issue"?0:-1);B();S(" ",g.titles[e.workAreaUrl]||e.workAreaUrl," ");B();I("matMenuTriggerFor",a);B(4);G(g.inferEntityType(e.workAreaUrl)==="issue"?6:7);B(2);G((c=g.extractLastDigits(e.workAreaUrl))?8:-1,c);B(2);I("disabled",f===0);
B(3);I("disabled",f===d-1);B(3);I("title",Eg("Hide the work area '",e.workAreaUrl,"' from this section"))}},SGb=function(a){a&1&&M(0,"one-work-area",32);if(a&2){a=P().$implicit;var b=P(2);I("reference",a.workAreaUrl)("refreshWorkArea",b.refreshData)}},TGb=function(a){a&1&&(K(0,"mat-tab"),E(1,RGb,19,9,"ng-template",15)(2,SGb,1,2,"ng-template",16),L())},WGb=function(a){if(a&1){var b=t();K(0,"mat-tab-group",14);N("selectedIndexChange",function(c){u(b);var d=P();return v(UGb(d.prefsService,d.SECTION_SLUG,
c))});Nf(1,TGb,3,0,"mat-tab",null,VGb);T(3,"async");L()}a&2&&(a=P(),I("selectedIndex",a.INITIAL_TAB_INDEX),B(),Of(U(3,1,a.refsForTemplate$)))},XGb=function(a){a&1&&M(0,"b-issue-card",44);a&2&&(a=P().$implicit,I("issueId",a.ref))},ZGb=function(a,b){if(a&1){var c=t();K(0,"li",41);N("click",function(){var d=u(c).$implicit,e=P(3);return v(YGb(e,d.ref))});K(1,"p",42);Q(2);L();K(3,"p",43);Q(4);L();K(5,"onedev-hovercard",null,2);F(7,XGb,1,1,"b-issue-card",44);L()()}a&2&&(a=b.$implicit,b=qg(6),I("title",
Eg("Click to add\n\rWhy this? ",a.suggestionRationale)),B(2),yg(a.title),B(),I("onedevHovercardTrigger",b),B(),S("b/",a.ref),B(3),G(a.ref?7:-1))},$Gb=function(a){a&1&&(K(0,"div",35)(1,"h4"),Q(2,"Suggestions:"),L(),K(3,"ol",39),Nf(4,ZGb,8,6,"li",40,Mf),L()());a&2&&(a=P(2),B(4),Of(a.suggestions))},aHb=function(a){a&1&&(K(0,"section",12)(1,"div",33),M(2,"img",34),F(3,$Gb,6,0,"div",35),L(),K(4,"p",36),Q(5," Use work areas to closely monitor a hotlist, saved search, or a parent/child project issue. "),
L(),K(6,"button",37),M(7,"mat-icon",38),Q(8," Add work area "),L()());if(a&2){a=P();var b=qg(9);B(2);I("src",a.EMPTY_STATE_IMG,Ne);B();G(a.suggestions.length>0?3:-1);B(3);I("matMenuTriggerFor",b)}},bHb=function(a,b){if(a&1){var c=t();K(0,"button",9);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.pageSizeChange.emit(d))});K(1,"span",10);M(2,"mat-icon",11);L();Q(3);L()}a&2&&(a=b.$implicit,b=P(2),wg("b-menu-item-checked",a===b.pageSize),If("aria-checked",a===b.pageSize),B(3),S(" ",a," "))},
cHb=function(a){a&1&&(K(0,"button",5),M(1,"mat-icon",6),L(),K(2,"mat-menu",null,0)(4,"div",7),Q(5,"Results per page:"),L(),Nf(6,bHb,4,4,"button",8,Mf),L());if(a&2){a=qg(3);var b=P();I("matMenuTriggerFor",a);B(6);Of(b.pageSizeOptions)}},dHb=function(a){a&1&&(K(0,"span"),Q(1," - "),K(2,"strong"),Q(3),L()());a&2&&(a=P(),B(3),yg(a.endIndex))},eHb=function(a,b){a&1&&(K(0,"span",27),Q(1),L());a&2&&(B(),S("",b," "))},fHb=function(a){a&1&&(F(0,eHb,2,1,"span",27),T(1,"async"),Q(2," \u00a0/\u00a0 "));if(a&
2){var b;a=P();G((b=U(1,1,a.attentionCount$))?0:-1,b)}},gHb=function(a,b){a&1&&(K(0,"div",9)(1,"h2",7),Q(2),L(),K(3,"span",26),F(4,fHb,3,3),T(5,"async"),K(6,"span"),Q(7),T(8,"async"),L()()());if(a&2){var c;B(2);yg(b.displayName);B(2);G((c=U(5,3,b.attentionCount$))?4:-1,c);B(3);yg(U(8,5,b.totalCount$))}},iHb=function(a,b){if(a&1){var c=t();K(0,"button",13);N("click",function(){var d=u(c).$implicit,e=P();return v(hHb(e,d))});Q(1);L()}a&2&&(a=b.$implicit,b=P(),B(),S(" ",b.SUBPHASE_TO_DISPLAY_NAME[a],
" "))},jHb=function(a){a&1&&M(0,"mat-progress-bar",21)},kHb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" (",a.count,") "))},lHb=function(a,b){a&1&&(K(0,"mat-chip-option",30),T(1,"async"),K(2,"span",31),Q(3),F(4,kHb,1,1),L()());a&2&&(a=b.$implicit,b=P(4),I("value",a.key)("selected",U(1,5,Cs(b.selectedFilterKeys,a.key))),B(2),I("matTooltip",a.tooltip),B(),S(" ",a.displayAs," "),B(),G(a.showCount?4:-1))},nHb=function(a){if(a&1){var b=t();K(0,"mat-chip-listbox",29);N("change",function(c){u(b);P(3).selectedFilterKeys.reset(c.value.filter(Pm));
return v()});Nf(1,lHb,5,7,"mat-chip-option",30,mHb);L()}a&2&&(a=P(),I("multiple",!0),B(),Of(a))},oHb=function(a,b){a&1&&F(0,nHb,3,1,"mat-chip-listbox",28);a&2&&G(b.length?0:-1)},pHb=function(a){a&1&&(F(0,oHb,1,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.availableFiltersInCurrentPhase$))?0:-1,b)}},qHb=function(a){a&1&&Vf(0)},sHb=function(a,b){a&1&&E(0,qHb,1,0,"ng-container",32);if(a&2){a=P();var c=qg(53);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Jg(2,rHb,b,a.teamId))}},tHb=function(a){if(a&
1){var b=t();K(0,"selection-triage-sidebar",33);N("refreshTable",function(){u(b);var c=P(3);return v(c.refreshTable())});L()}},uHb=function(a){if(a&1){var b=t();K(0,"issue-triage-sidebar",33);N("refreshTable",function(){u(b);var c=P(4);return v(c.refreshTable())});L()}},vHb=function(a){if(a&1){var b=t();K(0,"cluster-triage-sidebar",33);N("refreshTable",function(){u(b);var c=P(4);return v(c.refreshTable())});L()}},wHb=function(a){a&1&&F(0,uHb,1,0,"issue-triage-sidebar")(1,vHb,1,0,"cluster-triage-sidebar");
a&2&&(a=P(),G(a.length===1?0:a.length>1?1:-1))},xHb=function(a){a&1&&F(0,tHb,1,0,"selection-triage-sidebar")(1,wHb,2,1);a&2&&(a=P(2),G(a.triageService.mode===a.TriageServiceMode.SELECTION?0:a.triageService.mode===a.TriageServiceMode.ACTIVATION?1:-1))},yHb=function(a){a&1&&(F(0,xHb,2,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.triageService.currentIssueIds$))?0:-1,b)}},CHb=function(a){if(a&1){var b=t();K(0,"b-issues-table",36);T(1,"async");T(2,"async");T(3,"async");N("activeIssueChange",function(k){u(b);
var l=P(2);return v(zHb(l,k))})("rowClick",function(k){u(b);var l=P(2);return v(zHb(l,k))})("selectedIssuesChange",function(k){u(b);var l=P(2);l.selectedIssues=k;k=l.selectedIssues.selected;l.triageService.setIssueIds(k);k.length?(l.triageService.setMode(1),l.triageService.openSidebar()):(l.triageService.setMode(0),l.triageService.closeSidebar());return v()})("sortChange",function(k){u(b);var l=P(2);return v(l.onSortChange(k))})("columnsChange",function(k){u(b);var l=P(2);return v(l.onColumnsChange(k))});
L()}if(a&2){var c=P();a=c.issueIds;c=c.teamId;var d=P(),e,f,g;I("issueIds",a)("tableColumns",(e=U(1,7,d.tableColumns$))!=null?e:Hg(13,AHb))("editableColumns",!0)("options",(f=U(2,9,d.tableOptions$))!=null?f:Hg(14,BHb))("teamId",c)("showReadStatus",!0)("alerts",(g=U(3,11,d.issueAlertsForCurrentPhase$))!=null?g:Hg(15,AHb))}},DHb=function(a){a&1&&(K(0,"div",35),M(1,"img",37),Q(2," All clean! There are no issues in this phase. "),L());a&2&&(a=P(2),B(),I("src",a.EMPTY_STATE_IMG,Ne))},EHb=function(a,b){a&
1&&F(0,CHb,4,16,"b-issues-table",34)(1,DHb,3,1,"div",35);a&2&&G(b.issueIds.length?0:1)},FHb=function(a,b,c){var d=b.find(function(e){return e.key==="LAST_30_DAYS"});b=b.filter(function(e){return e.key!=="LAST_30_DAYS"});return M6a(a,b).filter(function(e){return!d||d.check(e)||c.some(function(f){return K6a(e,f)})?!0:!1})},HHb=function(a,b,c,d){return c?function(){switch(c.column){case "CREATED_TIME":return iUa(kUa)(a,c.direction);case "RELATIVE_MODIFIED_TIME":return jUa(kUa)(a,c.direction);case "PRIORITY":return pUa(kUa)(a,
c.direction);case "TRIAGER":return mUa()(a,c.direction);default:return console.warn("b-triage-phase sort by '"+c.column+"' not implemented"),a}}().map(function(e){return e.issueId}):GHb(a,b,d)},GHb=function(a,b,c){var d=IHb.get(c),e=new Map(a.map(function(f){return[f.issueId,d.findIndex(function(g){return K6a(f,g)})]}));c=a.filter(function(f){return e.get(f.issueId)!==-1}).map(function(f){return f.issueId}).sort(function(f,g){return e.get(f)-e.get(g)});return sq([].concat(q(b),q(c),q(a.map(function(f){return f.issueId}))),
function(f){return Array.isArray(f)?f.join(";"):f})},JHb=function(a){a&1&&(K(0,"span",8),Q(1," > "),L())},MHb=function(a,b){if(a&1){var c=t();K(0,"span")(1,"a",7);N("click",function(e){var f=u(c).$implicit,g=P(2);f=new KHb(f.pathIds,f.pathNames);g.onTeamSelect.emit(f);e.stopPropagation();e.preventDefault();LHb(g.autocompleteTrigger);return v()});Q(2);L();F(3,JHb,2,0,"span",8);L()}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;B();I("matTooltip",a.pathNameText);B();yg(a.name);B();G(d!==b-1?3:-1)}},
NHb=function(a,b){a&1&&(K(0,"mat-option",5)(1,"div"),Nf(2,MHb,4,3,"span",null,Mf),L(),K(4,"span",6),Q(5),T(6,"slice"),L()());a&2&&(a=b.$implicit,I("value",a),B(2),Of(a.teamPath),B(2),I("matTooltip",a.description),B(),S("",moa(6,3,a.description,100)," "))},OHb=function(a){a&1&&Q(0," Search results ")},PHb=function(a){a&1&&Q(0," Recommended ")},QHb=function(a){a&1&&(K(0,"th",18)(1,"span",19),Q(2,"Starred"),L()())},RHb=function(a,b){if(a&1){var c=t();K(0,"td",20)(1,"b-star-toggle",21);N("starClicked",
function(){var e=u(c).$implicit,f=P(2),g=P();return v(g.toggleStar(e.triageId,e.teamId,f))});L()()}if(a&2){a=b.$implicit;b=P(2);var d=P();B();I("disabled",d.starInProgress["row.triageId:row.teamId"])("starred",d.isTriageStarred(a.triageId,a.teamId,b))("starMessage","Star this triage view")("unStarMessage","Un-star this triage view")}},SHb=function(a){a&1&&(K(0,"th",18),Q(1,"Name"),L())},THb=function(a,b){a&1&&(K(0,"td",22)(1,"a",23),Q(2),L()());a&2&&(a=b.$implicit,b=P(3),B(),I("href",b.getTriageLink(a.triageId,
a.teamId),Ne),B(),S(" ",a.triageName||a.teamName+" triage"," "))},UHb=function(a){a&1&&(K(0,"th",18),Q(1,"Team"),L())},VHb=function(a,b){a&1&&(K(0,"td",24),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.teamName," "))},WHb=function(a){a&1&&(K(0,"th",18),Q(1,"Scope"),L())},XHb=function(a,b){a&1&&(K(0,"td",25),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.scope," "))},YHb=function(a){a&1&&M(0,"tr",26)},ZHb=function(a){a&1&&M(0,"tr",27)},$Hb=function(a,b){a&1&&(K(0,"table",6),Tf(1,7),E(2,QHb,3,0,"th",8)(3,RHb,
2,4,"td",9),Uf(),Tf(4,10),E(5,SHb,2,0,"th",8)(6,THb,3,2,"td",11),Uf(),Tf(7,12),E(8,UHb,2,0,"th",8)(9,VHb,2,1,"td",13),Uf(),Tf(10,14),E(11,WHb,2,0,"th",8)(12,XHb,2,1,"td",15),Uf(),E(13,YHb,1,0,"tr",16)(14,ZHb,1,0,"tr",17),L());a&2&&(a=P(2),I("dataSource",b)("fixedLayout",!0),B(13),I("matHeaderRowDef",a.tableColumns),B(),I("matRowDefColumns",a.tableColumns))},aIb=function(a){a&1&&M(0,"b-spinner")},bIb=function(a){a&1&&(F(0,$Hb,15,4,"table",6),T(1,"async"),Kf(2,aIb,1,0,"b-spinner"));if(a&2){var b;a=
P();G((b=U(1,1,a.triageRows$))?0:2,b)}},cIb=function(a){a&1&&(K(0,"button",9)(1,"span"),Q(2,"Edit"),L(),M(3,"b-icon",14),L());if(a&2){a=P();var b=qg(7);I("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},dIb=function(a){a&1&&(K(0,"button",9)(1,"span"),Q(2,"Link"),L(),M(3,"b-icon",14),L());if(a&2){a=P();var b=qg(74);I("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},eIb=function(a){a&1&&(K(0,"button",9)(1,"span"),Q(2,"CC"),L(),M(3,"b-icon",14),L());if(a&2){a=P();var b=qg(90);I("disabled",a.isAnonymous)("matMenuTriggerFor",
b)}},fIb=function(a){if(a&1){var b=t();K(0,"button",11);N("click",function(){u(b);var c=P();return v(c.bulkEdit("ESTIMATED_EFFORT"))});Q(1,"Estimated Effort");L()}},gIb=function(a,b){if(a&1){var c=t();K(0,"button",11);N("click",function(){var d=u(c).$implicit,e=P();return v(e.quickBulkEdit("PRIORITY",d))});Q(1);L()}a&2&&(a=b.$implicit,B(),S(" ",a," "))},hIb=function(a,b){if(a&1){var c=t();K(0,"button",11);N("click",function(){var d=u(c).$implicit,e=P();return v(e.quickBulkEdit("SEVERITY",d))});Q(1);
L()}a&2&&(a=b.$implicit,B(),S(" ",a," "))},iIb=function(a,b){if(a&1){var c=t();K(0,"button",11);N("click",function(){var d=u(c).$implicit,e=P();return v(e.quickBulkEdit("STATUS",d))});Q(1);L()}a&2&&(a=b.$implicit,b=P(),B(),S(" ",b.STATUS_JS_FULL_TEXT.get(a)," "))},jIb=function(a){a&1&&M(0,"mat-divider")},kIb=function(a){a&1&&M(0,"mat-icon",16);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},lIb=function(a,b){if(a&1){var c=t();F(0,jIb,1,0,"mat-divider");K(1,"button",15);N("click",function(){var f=u(c).$implicit,
g=P();return v(g.quickBulkEdit("TYPE",f.value))});F(2,kIb,1,1,"mat-icon",16);Q(3);L()}if(a&2){a=b.$implicit;b=b.$index;P();var d=ag(58);G(b>0&&d[b].group!=d[b-1].group?0:-1);B();var e;I("matTooltip",(e=a.altText)!=null?e:"");B();G(a.icon?2:-1);B();S(" ",a.displayText," ")}},mIb=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);var c=P(2);return v(c.exportCsvClicked.emit())});Q(1,"Export issues to CSV ");L()}},nIb=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);
var c=P(2);return v(c.flagAsSpamClicked.emit())});Q(1,"Flag issues as spam ");L()}},oIb=function(a){a&1&&(K(0,"button",1)(1,"span"),Q(2,"More"),L(),M(3,"b-icon",2),L(),K(4,"mat-menu",null,0),F(6,mIb,2,0,"button",3),F(7,nIb,2,0,"button",3),L());if(a&2){a=qg(5);var b=P();I("disabled",b.isAnonymous)("matMenuTriggerFor",a);B(6);G(b.showExportCsv?6:-1);B();G(b.showFlagIssuesAsSpam?7:-1)}},pIb=function(a){a&1&&Q(0," Network connection has been interrupted. ")},qIb=function(a){a&1&&Q(0," Network connection has been interrupted or login credentials may have expired. ")},
sIb=function(a){if(a&1){var b=t();K(0,"button",2);N("click",function(c){u(b);P(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=yh("/refreshSso")?"/refreshSso":zh(typeof"/refreshSso".href!="undefined"?"/refreshSso".href:"/refreshSso");var f=self.crossOriginIsolated!==void 0,g="strict-origin-when-cross-origin";window.Request&&(g=(new Request("/")).referrerPolicy);var k=
d.noreferrer;if(f&&k&&g==="unsafe-url")throw Error("hg");g=k&&!f;k=d.target||"/refreshSso".target;var l=[],r=[],w=!1;for(C in d){var x=d[C];switch(C){case "width":case "height":case "top":case "left":l.push(C+"="+x);break;case "target":break;case "noopener":case "noreferrer":x?r.push(C):(w=!0,r.push(C+"=false"));break;case "attributionsrc":l.push(C+(x?"="+x:""));break;default:l.push(C+"="+(x?1:0))}}var C=k!==void 0&&!["_blank","_self","_top","_parent",""].includes(k);C=eba()&&C;rIb&&f&&l.length===
0&&r.length>0&&!C&&!w?(r.length===2&&(r=["noreferrer"]),ni(c,e,k,r[0])):(f=l.join(","),Fa()&&c.navigator&&c.navigator.standalone&&k&&k!="_self"?(f=Vs(document,"A"),Dra(f,e),f.target=k,g&&(f.rel="noreferrer"),((d=d.attributionsrc)||d==="")&&f.setAttribute("attributionsrc",d),d=document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,c,1),f.dispatchEvent(d)):g?(c=ni(c,"",k,f),d=nqa(e),c&&(c.opener=null,d===""&&(d="javascript:''"),d=vta('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
Kt(d)+'">'),(c=c.document)&&c.write&&(c.write(sh(d)),c.close()))):((c=ni(c,e,k,f))&&d.noopener&&(c.opener=null),c&&d.noreferrer&&(c.opener=null)));return v()});Q(1," Log in again ");L()}},tIb=function(a){a&1&&(K(0,"b-callout",0)(1,"b-callout-body"),F(2,pIb,1,0)(3,qIb,1,0),L(),K(4,"b-callout-actions"),F(5,sIb,2,0,"button",1),L()());a&2&&(a=P(),I("messageType","error"),B(2),G(a.isAnonymous?2:3),B(3),G(a.isAnonymous?-1:5))},uIb=function(a){a&1&&(K(0,"a",0),Q(1," Hiring! "),L())},vIb=function(a,b){a&
1&&(K(0,"tr")(1,"td",4),Q(2),L(),K(3,"td"),Q(4,":"),L(),K(5,"td",5),Q(6),L()());a&2&&(a=b.$implicit,B(2),yg(a.displayAs),B(4),yg(a.description))},wIb=function(a,b){a&1&&(K(0,"thead")(1,"tr"),M(2,"th",2),K(3,"th",3),Q(4),L()(),Nf(5,vIb,7,2,"tr",null,Mf),L());a&2&&(a=b.$implicit,B(4),yg(a.title),B(),Of(a.hotkeys))},xIb=function(a){a=a===void 0?!1:a;var b=Z2a(),c=b.total,d=b.redundancyRatio;dr("after-60s","xhr","redundant",b.redundant);dr("after-60s","xhr","total",c);dr("after-60s","xhr","redundancyRatio",
d);a&&(console.table(Y2a()),console.log(b))},Mt=function(a){a==="duplicateOfIssueId"&&(a="canonicalIssueId");var b=Number(a);isNaN(b)?a=new Lt({type:String(a).replace(/([A-Z])/g,"_$1").toUpperCase()}):b===0?a=null:(a={customFieldId:b},a=new Lt({type:"CUSTOM_FIELD",customFieldId:a.customFieldId,customFieldName:a.name}));return a},yIb=function(a){a=Nt(a);if(ya(a))return null;var b=a.split(":");if(b.length!==2||ya(b[1]))return null;a=b[1].toLowerCase()==="asc"?"ASCENDING":"DESCENDING";return(b=Mt(b[0]))&&
a?new Ot(b,a):null},Pt=function(a,b){b=b===void 0?Wn():b;var c,d=(c=b.tracker)==null?void 0:c.name;b=b.config.appName;d=d||b;return a?a+" - "+d:d},zIb=function(a){a&1&&M(0,"bug-screensaver")},AIb=function(a){a&1&&(M(0,"img",3),K(1,"span",4),Q(2),L(),Q(3," Powered by Google "),K(4,"span",1),Q(5,"|"),L());a&2&&(a=P(2),I("src",a.trackerLogo,Ne),B(2),S("",a.trackerName," Issue Tracker"))},BIb=function(a){a&1&&(K(0,"div")(1,"span",1),Q(2,"|"),L(),K(3,"a",5),Q(4,"Code of Conduct"),L()());a&2&&(a=P(2),B(3),
I("href",a.trackerCoc,Ne))},CIb=function(a){a&1&&(K(0,"footer"),F(1,AIb,6,2),K(2,"a",0),Q(3,"Privacy"),L(),K(4,"span",1),Q(5,"|"),L(),K(6,"a",2),Q(7,"Terms"),L(),F(8,BIb,5,1,"div"),L());a&2&&(a=P(),B(),G(a.currentTracker?1:-1),B(7),G(a.trackerCoc?8:-1))},DIb=function(a,b){if(a&1){var c=t();K(0,"b-fab-segmented",1);N("clickMain",function(e){u(c);var f=P(2);return v(f.trackClick(e))})("clickSegment",function(e){u(c);var f=P(2);return v(f.trackClick(e))});L()}if(a&2){a=P();var d=P();I("label",b)("icon",
d.buttonIcon)("href",d.createIssuePath)("segments",a)}},EIb=function(a){a&1&&(F(0,DIb,1,4,"b-fab-segmented",0),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.buttonLabel$))?0:-1,b)}},FIb=function(a){a&1&&Vf(0)},GIb=function(a){a&1&&Vf(0)},HIb=function(a){a&1&&E(0,GIb,1,0,"ng-container",1);a&2&&(a=P(),I("ngTemplateOutlet",a.content))},IIb=function(a){a&1&&(K(0,"ul",5)(1,"li")(2,"a",6),M(3,"mat-icon",7),Q(4," Triage "),L()()());a&2&&(a=P(2),B(),wg("selected",a.location.path().startsWith(qs.triageSettings.makeHref())),
B(),I("href",a.ROUTES.triageSettings.makeHref(),Ne))},JIb=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(){u(b);var c=P(4);return v(c.goToTriageSettingsPage())});Q(1," Configure triage ");L()}},KIb=function(a){if(a&1){var b=t();Q(0," Triage ");K(1,"span",9);Q(2,"New");L();K(3,"button",10);N("click",function(c){u(b);return v(c.stopPropagation())});M(4,"mat-icon",11);L();K(5,"mat-menu",null,2);E(7,JIb,2,0,"ng-template",12);L()}a&2&&(a=qg(6),B(3),I("matMenuTriggerFor",a))},LIb=function(a){a&
1&&(K(0,"div",17)(1,"span",18),Q(2),T(3,"async"),L()());a&2&&(a=P().$implicit,B(2),yg(U(3,1,a.displayName$)))},MIb=function(a,b){a&1&&(K(0,"span",26),Q(1),L());a&2&&(B(),S(" ",b," "))},NIb=function(a,b){if(a&1){var c=t();K(0,"a",25);N("click",function(f){var g=u(c),k=P(8);return v(k.onAnchorClick(g,f))});K(1,"span");Q(2);L();F(3,MIb,2,1,"span",26);T(4,"async");L()}if(a&2){var d;a=P().$implicit;var e=P();I("href",b,Ne);B(2);S(" ",e.phase(a).displayName," ");B();G((d=U(4,3,e.phase(a).attentionCount$))?
3:-1,d)}},OIb=function(a,b){a&1&&(K(0,"li",24),F(1,NIb,5,5,"a",22),L());if(a&2){var c;a=b.$implicit;b=P();var d=P(2).$implicit,e=P(4);wg("selected-indented",e.isTriageUrlFor(d.teamId,a,d.triageId));I("title",b.phase(a).displayName);B();G((c=e.ROUTES.viewTriage.makeHref(d.teamId,d.triageId,e.phaseToUrlSlug[a]))?1:-1,c)}},PIb=function(a){a&1&&(K(0,"ul",19),Nf(1,OIb,2,4,"li",20,Mf),K(3,"li",21)(4,"a",22)(5,"span"),Q(6," Issue Themes "),M(7,"mat-icon",23),L()()()());if(a&2){a=P(2).$implicit;var b=P(4);
B();Of(b.ALL_PHASES);B(2);wg("selected-indented",b.location.path().endsWith("issue-themes"));B();I("href",b.ROUTES.viewIssueThemes.makeHref(a.teamId,a.triageId),Ne)}},QIb=function(a){a&1&&F(0,PIb,8,3,"ul",19);if(a&2){var b;a=P().$implicit;var c=P(4);G((b=c.triageService.triageDataFactory.get(a.teamId,a.triageId))?0:-1,b)}},SIb=function(a,b){if(a&1){var c=t();K(0,"li",15);T(1,"async");K(2,"sidebar-zippy",16);T(3,"async");N("onExpand",function(){var g=u(c).$implicit;P(4).bLocation.setUrl(qs.viewTriage.makeHref(g.teamId,
g.triageId));return v()});E(4,LIb,4,3,"ng-template",null,3,Mg)(6,QIb,1,1,"ng-template",null,4,Mg);L()()}if(a&2){a=b.$implicit;b=qg(5);var d=qg(7),e=P(4);I("title",U(1,4,a.displayName$));B(2);var f;I("header",b)("content",d)("expanded",(f=U(3,6,RIb(e,a.teamId,a.triageId)))!=null?f:!1)}},TIb=function(a){a&1&&(K(0,"ul",14),Nf(1,SIb,8,8,"li",15,Mf),L());a&2&&(a=P(2),B(),Of(a))},UIb=function(a){a&1&&(M(0,"hr"),K(1,"sidebar-zippy",8),E(2,KIb,8,1,"ng-template",null,0,Mg)(4,TIb,3,0,"ng-template",null,1,Mg),
L());if(a&2){a=qg(3);var b=qg(5);B();I("header",a)("content",b)}},VIb=function(a,b){a&1&&F(0,IIb,5,3,"ul",5)(1,UIb,6,2);a&2&&G(b.length===0?0:1)},WIb=function(a){a&1&&Q(0," Archived ")},XIb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(c){u(b);return v(c.stopPropagation())});M(1,"mat-icon",16);L()}a&2&&(P(),a=qg(5),I("matMenuTriggerFor",a))},YIb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(3).$implicit;return v(c.unstar())});Q(1," Unstar ");
L()}},ZIb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(3).$implicit;return v(c.unarchive())});Q(1," Unarchive ");L()}},$Ib=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupOpen(c.id))});Q(1," Open ");L();K(2,"button",17);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupDashboard(c.id))});Q(3," Dashboard ");L();K(4,"button",17);N("click",function(){u(b);
var c=P(2).$implicit,d=P(3);return v(d.openEditBookmarkGroup(c.id))});Q(5," Settings ");L();F(6,YIb,2,0,"button",18);F(7,ZIb,2,0,"button",18)}a&2&&(a=P(2).$implicit,B(6),G(a.isUnstarable()?6:-1),B(),G(a.isEditable()?7:-1))},aJb=function(a){a&1&&(K(0,"div",11)(1,"span",12),Q(2),L(),F(3,XIb,2,1,"button",13),K(4,"mat-menu",null,4),E(6,$Ib,8,2,"ng-template",14),L()());a&2&&(a=P().$implicit,If("id",Eg("bv2-user-archived-bookmarkgroup-item-",a.id)),B(2),yg(a.name),B(),G(a?3:-1))},bJb=function(a,b){if(a&
1){var c=t();K(0,"li",21)(1,"a",22);N("click",function(d){var e=u(c).$implicit,f=P(5);return v(f.onAnchorClick(e.href,d))});K(2,"span",12);Q(3);L()()()}a&2&&(a=b.$implicit,b=P(2).$implicit,wg("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",a.type=="HOTLIST")("bv2-bookmark-group-saved-search-item",a.type=="SAVED_SEARCH"),If("id",$na("bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id)),I("title",a.name),B(),I("href",a.href,Ne),B(2),S(" ",a.name," "))},cJb=function(a){a&1&&(K(0,"ul",
19),Nf(1,bJb,4,13,"li",20,Mf),L());a&2&&(a=P().$implicit,B(),Of(a.items))},dJb=function(a,b){a&1&&(K(0,"li",8)(1,"sidebar-zippy",10),E(2,aJb,7,4,"ng-template",null,2,Mg)(4,cJb,3,0,"ng-template",null,3,Mg),L()());if(a&2){a=b.$implicit;b=qg(3);var c=qg(5);I("title",a.name);B();I("header",b)("content",c)}},eJb=function(a){a&1&&(K(0,"button",25),M(1,"mat-icon",16),L());a&2&&(P(),a=qg(6),I("matMenuTriggerFor",a))},fJb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(2).$implicit;
return v(c.unstar())});Q(1," Unstar ");L()}},gJb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(2).$implicit;return v(c.unarchive())});Q(1," Unarchive ");L()}},hJb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P().$implicit,d=P(3);return v(d.openEditHotlist(c.id))});Q(1," Settings ");L();F(2,fJb,2,0,"button",18);F(3,gJb,2,0,"button",18)}a&2&&(a=P().$implicit,B(2),G(a.isUnstarable()?2:-1),B(),G(a.isEditable()?3:-1))},iJb=function(a,
b){if(a&1){var c=t();K(0,"li",23)(1,"a",24);N("click",function(d){var e=u(c).$implicit,f=P(3);return v(f.onAnchorClick(e.href,d))});K(2,"span",12);Q(3);L()();F(4,eJb,2,1,"button",25);K(5,"mat-menu",null,5);E(7,hJb,4,2,"ng-template",14);L()()}a&2&&(a=b.$implicit,wg("selected",a.isSelected()),I("id",Eg("bv2-user-hotlists-archived-hotlist-item-",a.id))("title",a.name),B(),I("href",a.href,Ne),B(2),yg(a.name),B(),G(a?4:-1))},jJb=function(a){a&1&&(K(0,"ul",7),Nf(1,dJb,6,3,"li",8,Mf),Nf(3,iJb,8,8,"li",9,
Mf),L());a&2&&(a=P(2),B(),Of(a.bookmarkGroups),B(2),Of(a.hotlists))},kJb=function(a){a&1&&(K(0,"div"),M(1,"hr"),K(2,"sidebar-zippy",6),E(3,WIb,1,0,"ng-template",null,0,Mg)(5,jJb,5,0,"ng-template",null,1,Mg),L()());if(a&2){a=qg(4);var b=qg(6);B(2);I("header",a)("content",b)}},lJb=function(a){a&1&&M(0,"b-spinner")},mJb=function(a){if(a&1){var b=t();K(0,"b-star-toggle",13);N("starClicked",function(){u(b);var c=P().$implicit,d=P();return v(d.toggleStar(c))});L()}a&2&&(a=P().$implicit,I("starMessage",
"Star this item")("unStarMessage","Un-star this item")("starred",a.isStarred))},nJb=function(a){a&1&&M(0,"b-hotlist-card",10);a&2&&(a=P().$implicit,I("hotlist",a))},oJb=function(a){a&1&&M(0,"b-bookmark-group-card",11);a&2&&(a=P().$implicit,I("bookmarkGroup",a))},pJb=function(a,b){a&1&&(K(0,"mat-option",6)(1,"div",8),F(2,mJb,1,3,"b-star-toggle",9),K(3,"onedev-hovercard",null,2),F(5,nJb,1,1,"b-hotlist-card",10)(6,oJb,1,1,"b-bookmark-group-card",11),L(),K(7,"span",12),Q(8),L()()());if(a&2){a=b.$implicit;
b=qg(4);var c=P();I("value",a);B();wg("bv2-bookmark-group",c.showHotlists&&a.isGroup);B();G(c.shouldShowStar(a)?2:-1);B(3);G(a.isGroup?6:5);B(2);I("onedevHovercardTrigger",b);B();yg(a.name)}},qJb=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-hotlist-search",3);N("itemSelect",function(c){u(b);var d=P();d.itemSelect.emit(c);d.dialog.disabled=!0;d.dialog.disabled=!1;return v()});L()()()}a&2&&(a=P(),B(2),I("showGroups",a.showGroups)("showHotlists",a.showHotlists)("allowStarring",
a.allowStarring)("focusOnInit",!0))},rJb=function(a){if(a&1){var b=t();K(0,"span");Q(1,"Bookmark groups");L();K(2,"b-hotlist-search-popup",8);N("itemSelect",function(c){u(b);var d=P();c.isGroup&&d.handleBookmarkGroupOpen(c.bookmarkGroupId);return v()})("click",function(c){u(b);return v(c.stopPropagation())});L()}a&2&&(B(2),I("showHotlists",!1))},sJb=function(a){if(a&1){var b=t();K(0,"button",16);N("click",function(c){u(b);return v(c.stopPropagation())});M(1,"mat-icon",17);L()}a&2&&(P(),a=qg(5),I("matMenuTriggerFor",
a))},tJb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(3).$implicit;return v(c.unstar())});Q(1," Unstar ");L()}},uJb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(3).$implicit;return v(c.archive())});Q(1," Archive ");L()}},vJb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(3).$implicit;return v(c.setAsPreferredHomepage())});Q(1," Set as homepage ");L()}},wJb=function(a){if(a&1){var b=t();K(0,"button",
18);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupOpen(c.id))});Q(1," Open ");L();K(2,"button",18);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupDashboard(c.id))});Q(3," Dashboard ");L();K(4,"button",18);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.editBookmarkGroup(c.id))});Q(5," Settings ");L();F(6,tJb,2,0,"button",19);F(7,uJb,2,0,"button",19);F(8,vJb,2,0,"button",19)}a&2&&(a=P(2).$implicit,B(6),G(a.isUnstarable()?
6:-1),B(),G(a.isEditable()?7:-1),B(),G(a.isPreferredHomepage()?-1:8))},xJb=function(a){a&1&&(K(0,"div",12)(1,"span",13),Q(2),L(),F(3,sJb,2,1,"button",14),K(4,"mat-menu",null,4),E(6,wJb,9,3,"ng-template",15),L()());a&2&&(a=P().$implicit,If("id",Eg("bv2-user-bookmarkgroup-item-",a.id)),B(2),yg(a.name),B(),G(a?3:-1))},yJb=function(a){a&1&&(K(0,"button",24),M(1,"mat-icon",17),L());a&2&&(P(),a=qg(6),I("matMenuTriggerFor",a))},zJb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);
var c=P(2).$implicit;return v(c.unstar())});Q(1," Unstar ");L()}},AJb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(2).$implicit;return v(c.setAsPreferredHomepage())});Q(1," Set as homepage ");L()}},BJb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P().$implicit,d=P(5);c.type==="HOTLIST"?d.location.setUrl(qs.editHotlist.makeHref(c.id)):d.location.setUrl(d.paths.editSavedSearch(c.id));return v()});Q(1," Settings ");L();F(2,zJb,2,0,
"button",19);F(3,AJb,2,0,"button",19)}a&2&&(a=P().$implicit,B(2),G(a.isUnstarable()?2:-1),B(),G(a.isPreferredHomepage()?-1:3))},CJb=function(a,b){if(a&1){var c=t();K(0,"li",22)(1,"a",23);N("click",function(d){var e=u(c).$implicit,f=P(5);return v(f.onAnchorClick(e.href,d))});K(2,"span",13);Q(3);L()();F(4,yJb,2,1,"button",24);K(5,"mat-menu",null,5);E(7,BJb,4,2,"ng-template",15);L()()}a&2&&(a=b.$implicit,b=P(2).$implicit,wg("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",a.type==
"HOTLIST")("bv2-bookmark-group-saved-search-item",a.type=="SAVED_SEARCH"),If("id",$na("bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id)),I("title",a.getDisplayName()),B(),I("href",a.href,Ne),B(2),S(" ",a.getDisplayName()," "),B(),G(b?4:-1))},DJb=function(a){a&1&&(K(0,"ul",20),Nf(1,CJb,8,14,"li",21,Mf),L());a&2&&(a=P().$implicit,B(),Of(a.items))},EJb=function(a,b){a&1&&(K(0,"li",10)(1,"sidebar-zippy",11),E(2,xJb,7,4,"ng-template",null,2,Mg)(4,DJb,3,0,"ng-template",null,3,Mg),L()());if(a&2){a=b.$implicit;
b=qg(3);var c=qg(5);I("title",a.name);B();I("header",b)("content",c)("expanded",!1)}},FJb=function(a){a&1&&(K(0,"ul",9),Nf(1,EJb,6,4,"li",10,Mf),L());a&2&&(a=P(2),B(),Of(a.bookmarkGroups))},GJb=function(a){a&1&&F(0,FJb,3,0,"ul",9);a&2&&(a=P(),G(a.bookmarkGroups?0:-1))},HJb=function(a){if(a&1){var b=t();K(0,"span");Q(1,"Hotlists");L();K(2,"b-hotlist-search-popup",5);N("itemSelect",function(c){u(b);var d=P();d.analytics.trackEvent("hotlistSearch","goToHotlist");d.location.setUrl(c.href);return v()})("click",
function(c){u(b);return v(c.stopPropagation())});L()}a&2&&(B(2),I("showGroups",!1))},IJb=function(a){a&1&&(K(0,"button",11),M(1,"mat-icon",13),L());a&2&&(P(),a=qg(6),I("matMenuTriggerFor",a))},JJb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.addToMissionControl(c.id))});M(1,"mat-icon",17);Q(2," Add to 'Home' screen ");L()}},KJb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);var c=P(2).$implicit;return v(c.setAsPreferredHomepage())});
M(1,"mat-icon",18);Q(2," Set as homepage ");L()}},LJb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);var c=P(2).$implicit;return v(c.unstar())});M(1,"mat-icon",19);Q(2," Unstar ");L()}},MJb=function(a){if(a&1){var b=t();F(0,JJb,3,0,"button",14);F(1,KJb,3,0,"button",14);K(2,"button",15);N("click",function(){u(b);var d=P().$implicit,e=P(3);return v(e.openEditHotlist(d.id))});M(3,"mat-icon",16);Q(4," Settings ");L();F(5,LJb,3,0,"button",14)}if(a&2){a=P().$implicit;var c=P(3);
G(c.ENABLE_MISSION_CONTROL?0:-1);B();G(a.isPreferredHomepage()?-1:1);B(4);G(a.isUnstarable()?5:-1)}},NJb=function(a,b){if(a&1){var c=t();K(0,"li",8)(1,"a",9);N("click",function(d){var e=u(c).$implicit,f=P(3);return v(f.onAnchorClick(e.href,d))});K(2,"span",10);Q(3);L()();F(4,IJb,2,1,"button",11);K(5,"mat-menu",null,2);E(7,MJb,6,3,"ng-template",12);L()()}a&2&&(a=b.$implicit,wg("selected",a.isSelected()),I("id",Eg("bv2-user-hotlists-hotlist-item-",a.id))("title",a.name),B(),I("href",a.href,Ne),B(2),
yg(a.name),B(),G(a?4:-1))},OJb=function(a){a&1&&(K(0,"ul",6),Nf(1,NJb,8,8,"li",7,Mf),L());a&2&&(a=P(2),B(),Of(a.hotlists))},PJb=function(a){a&1&&F(0,OJb,3,0,"ul",6);a&2&&(a=P(),G(a.hotlists?0:-1))},QJb=function(a){a&1&&(K(0,"span"),Q(1,"Saved searches"),L())},RJb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.addToMissionControl(c.id))});M(1,"mat-icon",17);Q(2," Add to 'Home' screen ");L()}},SJb=function(a){if(a&1){var b=t();K(0,"button",
14);N("click",function(){u(b);var c=P(2).$implicit;return v(c.setAsPreferredHomepage())});M(1,"mat-icon",18);Q(2," Set as homepage ");L()}},UJb=function(a){if(a&1){var b=t();F(0,RJb,3,0,"button",13);F(1,SJb,3,0,"button",13);K(2,"button",14);N("click",function(){u(b);var d=P().$implicit,e=P(3);return v(e.openEditSavedSearch(d.id))});M(3,"mat-icon",15);Q(4," Settings ");L();K(5,"button",14);N("click",function(){u(b);var d=P().$implicit,e=P(3);return v(TJb(e,d))});M(6,"mat-icon",16);Q(7," Delete ");
L()}if(a&2){a=P().$implicit;var c=P(3);G(c.ENABLE_MISSION_CONTROL?0:-1);B();G(a.isPreferredHomepage()?-1:1)}},VJb=function(a,b){if(a&1){var c=t();K(0,"li",7)(1,"a",8);N("click",function(d){var e=u(c).$implicit,f=P(3);return v(f.onAnchorClick(e.href,d))});K(2,"span",9);Q(3);L()();K(4,"button",10);M(5,"mat-icon",11);L();K(6,"mat-menu",null,2);E(8,UJb,8,2,"ng-template",12);L()()}a&2&&(a=b.$implicit,b=qg(7),wg("selected",a.isSelected()),If("id",Eg("bv2-saved-searches-search-item-",a.id)),I("title",a.name),
B(),I("href",a.href,Ne),B(2),yg(a.name),B(),I("matMenuTriggerFor",b))},WJb=function(a){a&1&&(K(0,"ul",5),Nf(1,VJb,9,8,"li",6,Mf),L());a&2&&(a=P(2),B(),Of(a.searches))},XJb=function(a){a&1&&F(0,WJb,3,0,"ul",5);a&2&&(a=P(),G(a.searches?0:-1))},YJb=function(a,b){a&1&&M(0,"mat-icon",23);a&2&&I("matBadge",b>99?"99+":b)("matBadgeHidden",b===0)("matBadgeDescription","Badge indicating "+b+" tasks need attention")},ZJb=function(a){a&1&&M(0,"mat-icon",24)},$Jb=function(a){a&1&&(K(0,"button",25),M(1,"mat-icon",
26),L());a&2&&(P(),a=qg(10),I("matMenuTriggerFor",a))},bKb=function(a){if(a&1){var b=t();K(0,"button",27);N("click",function(){u(b);var c=P(2);aKb(c,"MISSION_CONTROL");return v()});Q(1," Set as homepage ");L()}},cKb=function(a){if(a&1){var b=t();K(0,"li",22)(1,"a",8);N("click",function(d){u(b);var e=P();e.onAnchorClick(e.missionControlPath,d);return v()});F(2,YJb,1,3,"mat-icon",23);T(3,"async");T(4,"async");Kf(5,ZJb,1,0,"mat-icon",24);Q(6," Home ");L();F(7,$Jb,2,1,"button",25);T(8,"async");K(9,"mat-menu",
null,1);E(11,bKb,2,0,"ng-template",11);L()()}if(a&2){var c;a=P();wg("selected",!!a.location.path().match(/^\/home\b/));B();I("href",a.missionControlPath,Ne);B();G((c=!U(3,5,a.hideBadgeInNav$)&&U(4,7,a.missionControlTaskCount$))?2:5,c);B(5);G(U(8,9,a.isHomepageMissionControl$)?-1:7)}},dKb=function(a){a&1&&(K(0,"button",10),M(1,"mat-icon",26),L());a&2&&(P(),a=qg(13),I("matMenuTriggerFor",a))},eKb=function(a){if(a&1){var b=t();K(0,"button",27);N("click",function(){u(b);var c=P();aKb(c,"ASSIGNED_TO_ME");
return v()});Q(1," Set as homepage ");L()}},fKb=function(a){a&1&&M(0,"nav-sidebar-triage")},gKb=function(a,b){b=b===void 0?156:b;var c=document.createElement("i");c.id=a;c.title=a;c.style.width="10px";c.style.height="10px";c.style.borderRadius="10px";c.style.backgroundColor="#ccc";c.style.zIndex="999";c.style.position="absolute";c.style.top="34px";c.style.left=b+"px";c.style.opacity="0";document.body.appendChild(c);return c},hKb=function(a,b,c){a.style.animation="";a.style.backgroundColor=b;setTimeout(function(){a.style.animation=
"blink-then-fade "+c+"ms ease-in 1"},0)},jKb=function(a,b,c){b=b===void 0?"#ccc":b;c=c===void 0?400:c;iKb++;var d=156;d+=(iKb-1)*12;return function(e){e=e===void 0?b:e;var f,g=(f=document.getElementById(a))!=null?f:gKb(a,d);hKb(g,e,c)}},vKb=function(a,b){b=b===void 0?[]:b;var c=c===void 0?{}:c;if(a==null)return"(undefined)";var d=a.snapshot[0],e,f=(e=b[0])!=null?e:a.description;b=b.slice(1);b.sort(function(g,k){return k.modifiedDate-g.modifiedDate});return["## "+d.title,"ID: http://b/"+a.issueId,
"Priority: "+d.priority,"Status: "+d.status,"Modified: "+$r(a.majorModifiedTimeMicros/1E3/1E3),kKb(a),lKb(a),mKb(a,c),nKb(a),oKb(a),pKb(a),qKb(a),rKb(a),sKb(f),tKb(a),uKb(b)].filter(Boolean).join("\n").trim()+"\n\n---\n\n"},mKb=function(a,b){a=a.snapshot[0].hotlistId;if(a!=null&&a.length!==0)return"Hotlists: "+a.map(function(c){var d;return(d=b[c])!=null?d:"["+c+"]"}).join(", ")},uKb=function(a){if(a.length!==0){var b=a.map(function(c){a:{if(c!=null){var d=wKb(c);d=xKb(d);if(d!=null){var e,f=(e=c.lastCommentEditorUser)==
null?void 0:e.emailAddress;c=$r(c.modifiedDate/1E3);c=f+": "+d+" ("+c+")";break a}}c=void 0}return c}).filter(Boolean).join("\n\n");return"\n### Comments ("+a.length+")\n"+b}},xKb=function(a,b){b=b===void 0?300:b;if(a!=null)return a=a.replaceAll(/\n/g," "),a=p7a(a,b)},wKb=function(a){var b=a.unlinkifiedComment;a=a.formattedComment;if(b)return b;if(a)return uTa(a)},sKb=function(a){if(a!=null&&(a=wKb(a),a=xKb(a,600),a!=null))return"\n### Description\n"+a},pKb=function(a){a=a.descendantCount;if(!(a<=
0))return"Descendant count: "+a},nKb=function(a){var b;a=((b=m(a.snapshot).next().value.blockingIssueId)!=null?b:[]).length;if(!(a<=0))return"Blocking "+a+" issue(s)"},oKb=function(a){var b;a=((b=m(a.snapshot).next().value.blockedByIssueId)!=null?b:[]).length;if(!(a<=0))return"Blocked by "+a+" issue(s)"},kKb=function(a){var b;return(a=((b=m(a.snapshot).next().value.assigneeUser)!=null?b:{}).emailAddress)?"Assignee: "+a:void 0},lKb=function(a){var b;return(a=((b=m(a.snapshot).next().value.reporterUser)!=
null?b:{}).emailAddress)?"Reporter: "+a:void 0},qKb=function(a){var b,c;a=(c=(b=a.aggregatedData)==null?void 0:b.voteCount)!=null?c:0;if(!(a<=0))return"Upvotes: "+a},tKb=function(a){var b=a.statusUpdate;if(b!=null){a=b.updateText;var c,d=(c=b.author)==null?void 0:c.emailAddress,e;c=(e=b.updateTime)!=null?e:{};e=$r((c.seconds===void 0?0:c.seconds)+(c.nanos===void 0?0:c.nanos)/1E3/1E3/1E3);return"\n### Status Update\n"+d+": "+a+" ("+e+")"}},rKb=function(a){var b,c;a=(c=(b=a.userActivityStats)==null?
void 0:b.thirtyDayViewCount)!=null?c:0;if(!(a<=10))return"30 day views: "+a},yKb=function(a,b){b=b===void 0?0:b;var c=new Date;c.setDate(c.getDate()+b);document.cookie="tracker_override="+a+(b?"; expires="+c.toUTCString():"")},zKb=function(a){a&1&&(K(0,"div",0),M(1,"router-outlet"),L())},AKb=function(a){a&1&&(K(0,"div",0),M(1,"app-root-body"),L())},BKb=function(){},DKb=function(a){if(a&1){var b=t();K(0,"a",8);N("keydown.enter",function(){u(b);var c=P(2);return v(CKb(c))})("keydown.space",function(){u(b);
var c=P(2);return v(CKb(c))})("click",function(){u(b);var c=P(2);return v(CKb(c))});Q(1," Dismiss");L()}},EKb=function(a){a&1&&(K(0,"div",1)(1,"div",5),M(2,"span",6),F(3,DKb,2,0,"a",7),L()());a&2&&(a=P(),B(2),I("innerHtml",a.announcement.message,Me),B(),G(a.announcement.dismissible?3:-1))},GKb=function(a){if(a&1){var b=t();K(0,"b-resizable-sidebar",9,0);N("widthChanged",function(c){u(b);var d=P();return v(FKb(d,c))});M(2,"b-sidebar");L()}a&2&&(a=P(),I("size",a.sidebarWidth))},HKb=function(a){switch(a){case "COMFORTABLE":return"d-comfort";
case "COZY":return"d-cozy";case "COMPACT":return"d-compact";default:return"d-comfort"}},IKb=function(a){return new Set(a.map(function(b){return SQa(b)}))},Qt=function(a,b,c){return a.has(b)?c:""},JKb=function(a,b,c){return a.has(b)?c:[]},Rt=function(a,b,c){return{fieldName:a,diffType:"SINGLE_VALUE",diff:{oldValue:b,newValue:c}}},MKb=function(a){if(!a)return"";var b=KKb.get(a.retentionSelection),c=a.retentionPeriodDays,d="Issue Retention: "+b;b=d;c&&(b=d+(", Days: "+c));d=LKb.get(a.piiRetentionSelection);
c=a.piiRetentionPeriodDays;a=a.spiiRetentionPeriodDays;d=", Restricted Retention: "+d;c&&(d+=", Restricted Days: "+c);a&&(d+=", Restricted+ Days: "+a);return b+d},OKb=function(a){if(!a)return"";var b=a.inherit,c=NKb.get(a.source),d=a.comment;a="Inherit: "+b+", Source: "+c+", ID: "+a.id;return d?a+(", Justification: "+d):a},PKb=function(a){return a?"Inherit: "+a.inherit+", ID: "+a.id:""},QKb=function(a,b){a&1&&(K(0,"mat-option",17),Q(1),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",a," "))},RKb=
function(a){if(a&1){var b=t();K(0,"mat-form-field",14)(1,"mat-select",16,0);N("selectionChange",function(c){u(b);var d=P(2);return v(d._changePageSize(c.value))});Nf(3,QKb,2,2,"mat-option",17,Mf);L();K(5,"div",18);N("click",function(){u(b);var c=qg(2);return v(c.open())});L()()}a&2&&(a=P(2),I("appearance",a._formFieldAppearance)("color",a.color),B(),I("value",a.pageSize)("disabled",a.disabled),Hf("aria-labelledby",a._pageSizeLabelId),I("panelClass",a.selectConfig.panelClass||"")("disableOptionCentering",
a.selectConfig.disableOptionCentering),B(2),Of(a._displayedPageSizeOptions))},SKb=function(a){a&1&&(K(0,"div",15),Q(1),L());a&2&&(a=P(2),B(),yg(a.pageSize))},TKb=function(a){a&1&&(K(0,"div",3)(1,"div",13),Q(2),L(),F(3,RKb,6,7,"mat-form-field",14),F(4,SKb,2,1,"div",15),L());a&2&&(a=P(),B(),If("id",a._pageSizeLabelId),B(),S(" ",a._intl.itemsPerPageLabel," "),B(),G(a._displayedPageSizeOptions.length>1?3:-1),B(),G(a._displayedPageSizeOptions.length<=1?4:-1))},UKb=function(a){if(a&1){var b=t();K(0,"button",
19);N("click",function(){u(b);var c=P();return v(c._buttonClicked(0,c._previousButtonsDisabled()))});yd();K(1,"svg",8);M(2,"path",20);L()()}a&2&&(a=P(),I("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("disabled",a._previousButtonsDisabled())("tabindex",a._previousButtonsDisabled()?-1:null),If("aria-label",a._intl.firstPageLabel))},VKb=function(a){if(a&1){var b=t();K(0,"button",21);N("click",function(){u(b);var c=P();return v(c._buttonClicked((c.pageSize?Math.ceil(c.length/
c.pageSize):0)-1,c._nextButtonsDisabled()))});yd();K(1,"svg",8);M(2,"path",22);L()()}a&2&&(a=P(),I("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("disabled",a._nextButtonsDisabled())("tabindex",a._nextButtonsDisabled()?-1:null),If("aria-label",a._intl.lastPageLabel))},WKb=function(a){if(a&1){var b=t();K(0,"mat-paginator",3);N("page",function(c){u(b);var d=P(),e=c.pageIndex*c.pageSize;d.childrenOnPage=d.children.slice(e,e+c.pageSize);return v()});L()}a&2&&(a=P(),
I("length",a.children.length)("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions))},XKb=function(a,b){if(a&1){var c=t();K(0,"li")(1,"a",4);N("click",function(){var e=u(c).$implicit,f=P();return v(f.onVisit.emit(e))});Q(2);L();K(3,"onedev-hovercard",null,0);M(5,"b-component-card",5);L()()}if(a&2){a=b.$implicit;b=qg(4);var d=P();B();I("onedevHovercardTrigger",b)("href",d.ROUTES.editComponent.makeHref(a.componentId),Ne);B();S(" ",a.name," ");B(3);I("componentId",a.componentId)}},YKb=function(a){if(a&
1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();return v(c.onClickCopyIssueShortLinks.emit())});Q(1);L()}a&2&&(a=P(),B(),S(" Copy '",a.shortLinkPrefix,"'' links "))},ZKb=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",3);N("click",function(){u(b);var c=P();return v(c.action())});Q(2);L()()}a&2&&(a=P(),B(2),yg(a.data.action))},$Kb=function(){},aLb=function(a){if(a&1){var b=t();K(0,"a",17);N("click",function(){u(b);var c=P().$implicit;return v(c.showChildren=!1)});M(1,"mat-icon",
18);L()}},bLb=function(a){if(a&1){var b=t();K(0,"a",19);N("click",function(){u(b);var c=P().$implicit,d=P();return v(d.showChildren(c))});M(1,"mat-icon",20);L()}},cLb=function(a){a&1&&(K(0,"span"),Q(1,"[Archived]"),L())},eLb=function(a){a&1&&(K(0,"a",10),Q(1," (Recent Issues) "),L());if(a&2){a=P().$implicit;var b=P();I("href",b.paths.listIssues(Ig(1,dLb,"status:open componentid:"+a.componentId)),Ne)}},fLb=function(a){a&1&&(K(0,"a",15),Q(1," Create issue "),L());if(a&2){a=P().$implicit;var b=P();I("href",
b.paths.createIssue()+"?component="+a.componentId,Ne)}},gLb=function(a){a&1&&(K(0,"div",21),Q(1," No child components found. "),L())},hLb=function(a){a&1&&(K(0,"div",22),M(1,"b-spinner"),L())},iLb=function(a){if(a&1){var b=t();K(0,"component-subtree-list",24);N("childClosed",function(d){u(b);var e=P(3);return v(e.onSubtreeChildClosed(d))});L()}if(a&2){a=P(2).$implicit;var c=P();I("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},
jLb=function(a){a&1&&(K(0,"div",16),F(1,gLb,2,0,"div",21),F(2,hLb,2,0,"div",22),F(3,iLb,1,4,"component-subtree-list",23),L());a&2&&(a=P().$implicit,B(),G(a.noChildren?1:-1),B(),G(a.noChildren||a.children?-1:2),B(),G(a.children?3:-1))},kLb=function(a,b){if(a&1){var c=t();K(0,"li",2);N("click",function(d){var e=u(c).$implicit,f=P();return v(f.setSelected(e.componentId,d))});K(1,"div",3);M(2,"div",4);K(3,"div",5);F(4,aLb,2,0,"a",6)(5,bLb,2,0,"a",7);L();K(6,"div",8)(7,"div")(8,"a",9);Q(9);L();F(10,cLb,
2,0,"span")(11,eLb,2,3,"a",10);M(12,"b-component-access-level-indicator",11)(13,"b-tracker-chip-smart",12);L();K(14,"div",13);Q(15);L()();K(16,"div",14);F(17,fLb,2,1,"a",15);L()();F(18,jLb,4,3,"div",16);L()}a&2&&(a=b.$implicit,b=P(),I("id",Eg("component-",a.componentId)),B(4),G(a.showChildren?4:5),B(4),I("href",b.ROUTES.editComponent.makeHref(a.componentId),Ne),B(),S(" ",a.name," "),B(),G(a.archived?10:11),B(2),I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),B(),I("trackerId",
a.trackerId),B(2),yg(a.description),B(2),G(a.archived?-1:17),B(),G(a.showChildren?18:-1))},lLb=function(a){if(a&1){var b=t();K(0,"a",17);N("click",function(){u(b);var c=P().$implicit;return v(c.showChildren=!1)});M(1,"mat-icon",18);L()}},mLb=function(a){if(a&1){var b=t();K(0,"a",19);N("click",function(){u(b);var c=P().$implicit,d=P();return v(d.showChildren(c))});M(1,"mat-icon",20);L()}},nLb=function(a){a&1&&(K(0,"span"),Q(1,"[Archived]"),L())},pLb=function(a){a&1&&(K(0,"a",10),Q(1," (Recent Issues) "),
L());if(a&2){a=P().$implicit;var b=P();I("href",b.paths.listIssues(Ig(1,oLb,"status:open componentid:"+a.componentId)),Ne)}},qLb=function(a){a&1&&(K(0,"a",15),Q(1," Create issue "),L());if(a&2){a=P().$implicit;var b=P();I("href",b.paths.createIssue()+"?component="+a.componentId,Ne)}},rLb=function(a){a&1&&(K(0,"div",21),Q(1," No child components found. "),L())},sLb=function(a){a&1&&(K(0,"div",22),M(1,"b-spinner"),L())},tLb=function(a){if(a&1){var b=t();K(0,"component-subtree-list",24);N("childClosed",
function(d){u(b);var e=P(3);return v(e.onSubtreeChildClosed(d))});L()}if(a&2){a=P(2).$implicit;var c=P();I("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},uLb=function(a){a&1&&(K(0,"div",16),F(1,rLb,2,0,"div",21),F(2,sLb,2,0,"div",22),F(3,tLb,1,4,"component-subtree-list",23),L());a&2&&(a=P().$implicit,B(),G(a.noChildren?1:-1),B(),G(a.noChildren||a.children?-1:2),B(),G(a.children?3:-1))},vLb=function(a,b){if(a&1){var c=t();K(0,
"li",2);N("click",function(d){var e=u(c).$implicit,f=P();return v(f.setSelected(e.componentId,d))});K(1,"div",3);M(2,"div",4);K(3,"div",5);F(4,lLb,2,0,"a",6)(5,mLb,2,0,"a",7);L();K(6,"div",8)(7,"div")(8,"a",9);Q(9);L();F(10,nLb,2,0,"span")(11,pLb,2,3,"a",10);M(12,"b-component-access-level-indicator",11)(13,"b-tracker-chip-smart",12);L();K(14,"div",13);Q(15);L()();K(16,"div",14);F(17,qLb,2,1,"a",15);L()();F(18,uLb,4,3,"div",16);L()}a&2&&(a=b.$implicit,b=P(),I("id","component-"+a.componentId),B(4),
G(a.showChildren?4:5),B(4),I("href",b.ROUTES.editComponent.makeHref(a.componentId),Ne),B(),S(" ",a.name," "),B(),G(a.archived?10:11),B(2),I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),B(),I("trackerId",a.trackerId),B(2),yg(a.description),B(2),G(a.archived?-1:17),B(),G(a.showChildren?18:-1))},wLb=function(a){a&1&&(K(0,"div"),Q(1," Loading custom fields... "),L())},xLb=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P(2),B(),S(" There are no custom fields in component ",a.selectedComponent.name,
". "))},yLb=function(a,b){a&1&&(K(0,"mat-option",6),Q(1),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",a.name," "))},zLb=function(a){if(a&1){var b=t();K(0,"div")(1,"mat-form-field",4)(2,"mat-label");Q(3,"Custom field");L();K(4,"mat-select",5);N("selectionChange",function(c){u(b);var d=P(2);return v(d.fieldSelected.emit(c.value))});Nf(5,yLb,2,2,"mat-option",6,Mf);L()()()}a&2&&(a=P(2),B(5),Of(a.customFields))},ALb=function(a){a&1&&(K(0,"div",3),F(1,wLb,2,0,"div"),F(2,xLb,2,1,"div"),F(3,zLb,7,0,"div"),
L());a&2&&(a=P(),B(),G(a.customFields==null?1:-1),B(),G(a.customFields&&!a.customFields.length?2:-1),B(),G((a.customFields==null?0:a.customFields.length)?3:-1))},BLb=function(a){a&1&&Vf(0)},CLb=function(){},DLb=function(a){a&1&&(Tf(0),Q(1),Uf());a&2&&(a=P().value,B(),yg(a.textValue))},ELb=function(a){a&1&&M(0,"b-formatted-date-time",4);if(a&2){a=P().value;var b=P();I("date",b.toDate(a.dateValue))}},FLb=function(a){a&1&&(Tf(0),Q(1),Uf());a&2&&(a=P().value,B(),yg(a.enumValue))},GLb=function(a){a&1&&
(Tf(0),Q(1),Uf());a&2&&(a=P().value,B(),yg(a.numericValue))},HLb=function(a,b){a&1&&(Tf(0),Q(1),Uf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();zg("",a,"",c===b-1?"":", ")}},ILb=function(a){a&1&&Nf(0,HLb,2,2,"ng-container",null,Mf);a&2&&(a=P().value,Of(a.repeatedTextValue.values))},JLb=function(a,b){a&1&&(Tf(0),M(1,"b-formatted-date-time",4),Q(2),Uf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(3);B();I("date",d.toDate(a));B();yg(c===b-1?"":", ")}},KLb=function(a){a&1&&Nf(0,
JLb,3,2,"ng-container",null,Mf);a&2&&(a=P().value,Of(a.repeatedDateValue.values))},LLb=function(a,b){a&1&&(Tf(0),Q(1),Uf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();zg("",a,"",c===b-1?"":", ")}},MLb=function(a){a&1&&Nf(0,LLb,2,2,"ng-container",null,Mf);a&2&&(a=P().value,Of(a.repeatedEnumValue.values))},NLb=function(a,b){a&1&&(Tf(0),Q(1),Uf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();zg("",a,"",c===b-1?"":", ")}},OLb=function(a){a&1&&Nf(0,NLb,2,2,"ng-container",null,Mf);a&2&&
(a=P().value,Of(a.repeatedNumericValue.values))},PLb=function(a,b){a&1&&(F(0,DLb,2,1,"ng-container"),F(1,ELb,1,1,"b-formatted-date-time",4),F(2,FLb,2,1,"ng-container"),F(3,GLb,2,1,"ng-container"),F(4,ILb,2,0),F(5,KLb,2,0),F(6,MLb,2,0),F(7,OLb,2,0));a&2&&(a=b.value,b=P(),G(a.textValue!=null?0:-1),B(),G(b.isNonemptyJsonDateValue(a.dateValue)?1:-1),B(),G(a.enumValue!=null?2:-1),B(),G(a.numericValue!=null?3:-1),B(),G(a.repeatedTextValue!=null?4:-1),B(),G(a.repeatedDateValue!=null?5:-1),B(),G(a.repeatedEnumValue!=
null?6:-1),B(),G(a.repeatedNumericValue!=null?7:-1))},QLb=function(a){a&1&&(K(0,"div")(1,"p"),Q(2),L()());a&2&&(a=P(),B(2),zg(" Checking if you have permissions to mark these issues as spam. Checked ",a.issuesChecked," of ",a.issuesToFlag.length,"... "))},RLb=function(a,b){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=b.$implicit,B(),zg(" ",a.issueId," - ",a.title," "))},SLb=function(a){a&1&&(K(0,"div")(1,"p"),Q(2),L(),K(3,"ul"),Nf(4,RLb,2,2,"li",null,Mf),L()());a&2&&(a=P(),B(2),S(" You do not have permissions to mark ",
a.protectedIssues.length," issues. These will not be flagged as spam. "),B(2),Of(a.protectedIssues))},TLb=function(a){if(a&1){var b=t();K(0,"div",1)(1,"label");Q(2);L();K(3,"onedev-single-select",4);Cg("valueChange",function(c){u(b);var d=P();Bg(d.currentEnumLabel,c)||(d.currentEnumLabel=c);return v(c)});L()()}a&2&&(a=P(),B(2),S(" ",a.effortSpecName," "),B(),Ag("value",a.currentEnumLabel),I("includeEmptyOption",!0)("options",a.allowedLabels))},ULb=function(a){if(a&1){var b=t();K(0,"mat-dialog-content")(1,
"mat-form-field")(2,"mat-label");Q(3);L();K(4,"input",5);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.numericEstimatedEffort,c)||(d.numericEstimatedEffort=c);return v(c)});N("keypress",function(c){u(b);var d=P();return v(/^(\d*\.)?\d*$/.test(d.numericEstimatedEffort+c.key))});L()()()}a&2&&(a=P(),B(3),S(" ",a.effortSpecName," "),B(),Ag("ngModel",a.numericEstimatedEffort))},$Lb=function(a,b){if(a&1){var c=t();K(0,"div",20,4);N("click",function(){var e=u(c).$implicit,f=P(2);VLb(f,e)||WLb(f,e);
return v()});K(2,"mat-pseudo-checkbox",21);N("click",function(e){var f=u(c).$implicit,g=P(2);e.stopPropagation();return v(XLb(g,f))});L();K(3,"span");Q(4);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);vg("display",d.shouldShowHotlist[a.hotlistId]?"block":"none");wg("focused",b===d.focusedRowIndex);I("title",Dg(a.name));If("id","hotlist-item-"+a.hotlistId)("aria-checked",YLb(d.selectedHotlistMap[a.hotlistId]))("aria-disabled",VLb(d,a));B(2);I("state",ZLb(d.selectedHotlistMap[a.hotlistId]))("disabled",
VLb(d,a));B(2);S(" ",a.name," ")}},aMb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),S(" (",a.filterText,")"))},bMb=function(a){if(a&1){var b=t();K(0,"div",22,5);N("click",function(){u(b);var c=P(2);return v(c.loadHotlist())})("keydown.enter",function(){u(b);var c=P(2);return v(c.loadHotlist())});Q(2,"Load hotlist from id ");K(3,"span");Q(4);L()()}a&2&&(a=P(2),wg("focused",a.focusedRowIndex===a.choices.length+1),If("aria-label","Load hotlist from"+a.filterText),B(4),S("(",a.filterText,
")"))},dMb=function(a){if(a&1){var b=t();K(0,"div",23,6);N("click",function(){u(b);var c=P(2);return v(cMb(c))})("keydown.enter",function(){u(b);var c=P(2);return v(cMb(c))});Q(2,"Apply");L()}a&2&&(a=P(2),wg("focused",a.focusedRowIndex===a.choices.length+2))},eMb=function(a){if(a&1){var b=t();K(0,"div",11)(1,"div",15,2);Nf(3,$Lb,5,12,"div",16,Mf);L()();M(5,"mat-divider");K(6,"div",17,3);N("click",function(){u(b);var c=P();return v(c.createHotlist())})("keydown.enter",function(){u(b);var c=P();return v(c.createHotlist())});
Q(8,"Create new hotlist ");F(9,aMb,2,1,"span");L();F(10,bMb,5,4,"div",18);F(11,dMb,3,2,"div",19)}a&2&&(a=P(),B(3),Of(a.choices),B(3),wg("focused",a.focusedRowIndex===a.choices.length),I("disabled",!a.canCreate),If("aria-label","Create new hotlist"+a.filterText),B(3),G(a.filterText?9:-1),B(),G(a.canLoad?10:-1),B(),G(a.pendingChanges?11:-1))},fMb=function(a){a&1&&(K(0,"li")(1,"a",1),Q(2),L(),M(3,"b-issue-visibility-chip",2),L());a&2&&(a=P().$implicit,B(),I("href",Eg("issues/",a.issueId),Ne),B(),S("b/",
a.issueId),B(),I("issueId",a.issueId))},gMb=function(a,b){a&1&&F(0,fMb,4,4,"li");a&2&&G(b.$implicit.type==="issue"?0:-1)},hMb=function(a){a&1&&(K(0,"li"),Q(1),M(2,"b-component-access-level-indicator",3),L());a&2&&(a=P().$implicit,B(),S(" ",a.path," "),B(),I("accessLevel",a.accessLevel))},iMb=function(a,b){a&1&&F(0,hMb,3,2,"li");a&2&&G(b.$implicit.type==="component"?0:-1)},jMb=function(a){a&1&&(K(0,"div",0)(1,"div")(2,"strong"),Q(3,"You are editing issues in components that may have external viewers:"),
L()(),K(4,"ul"),Nf(5,gMb,1,1,null,null,Lf),L(),Q(7," within: "),K(8,"ul"),Nf(9,iMb,1,1,null,null,Lf),L()());a&2&&(a=P(),B(5),Of(a.externalWarnings),B(4),Of(a.externalWarnings))},lMb=function(a,b){if(a&1){var c=t();K(0,"button",12);N("click",function(){var d=u(c).$implicit,e=P(3);return v(kMb(e.issueEditBuilder,d))});Q(1);L()}a&2&&(a=b.$implicit,b=P(3),I("disabled",b.issueEditBuilder.issueState==a),B(),S(" ",a.displayValue," "))},mMb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"span");Q(2,"Multiple");
L();K(3,"a",22);N("click",function(){u(b);var c=P(4);return v(c.issueEditBuilder.clearAssignee())});Q(4,"X");L()()}},nMb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"span");Q(2,"Possibly multiple");L();K(3,"a",22);N("click",function(){u(b);var c=P(4);return v(c.issueEditBuilder.clearAssignee())});Q(4,"X");L()()}},oMb=function(a){if(a&1){var b=t();K(0,"div")(1,"b-peoplekit-single",23);N("emailChange",function(c){u(b);var d=P(4);return v(d.setAssignee(c))})("keydown.control.enter",function(){u(b);
var c=P(4);return v(St(c))})("keydown.meta.enter",function(){u(b);var c=P(4);return v(St(c))});L()()}a&2&&(a=P(4),B(),I("cdkFocusInitial",a.focus===a.FocusableField.ASSIGNEE)("email",a.issueEditBuilder.commonAssignee))},qMb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"span");Q(2);L();K(3,"a",24);N("click",function(){u(b);var c=P(4);return v(c.issueEditBuilder.clearVerifier())});Q(4,"X");L()()}a&2&&(a=P(4),wg("bv2-invalid-multiple-user-chip",!pMb(a.issueEditBuilder)),B(2),S(" Multiple ",pMb(a.issueEditBuilder)?
"":"(some unset)"," "))},rMb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"span");Q(2);L();K(3,"a",24);N("click",function(){u(b);var c=P(4);return v(c.issueEditBuilder.clearVerifier())});Q(4,"X");L()()}a&2&&(a=P(4),wg("bv2-invalid-multiple-user-chip",!pMb(a.issueEditBuilder)),B(2),S(" Possibly multiple ",pMb(a.issueEditBuilder)?"":"(some unset)"," "))},sMb=function(a){if(a&1){var b=t();K(0,"div")(1,"b-peoplekit-single",25);N("emailChange",function(c){u(b);var d=P(4);return v(d.issueEditBuilder.commonVerifier=
c)})("keydown.control.enter",function(){u(b);var c=P(4);return v(St(c))})("keydown.meta.enter",function(){u(b);var c=P(4);return v(St(c))});L()()}a&2&&(a=P(4),B(),I("cdkFocusInitial",a.focus===a.FocusableField.VERIFIER)("email",a.issueEditBuilder.commonVerifier)("required",(a.issueEditBuilder.issueState==null?null:a.issueEditBuilder.issueState.status)=="VERIFIED"))},tMb=function(a){a&1&&(K(0,"div")(1,"div",14)(2,"label",18),Q(3," Assignee "),L(),K(4,"div"),F(5,mMb,5,0,"div",19)(6,nMb,5,0,"div",19)(7,
oMb,2,2,"div"),L()(),K(8,"div",14)(9,"label",20),Q(10," Verifier "),L(),K(11,"div"),F(12,qMb,5,3,"div",21)(13,rMb,5,3,"div",21)(14,sMb,2,3,"div"),L()()());if(a&2){var b,c;a=P(3);B(5);G((b=a.issueEditBuilder.selectedAssigneesStatus)==="MULTIPLE"?5:b==="POSSIBLY_MULTIPLE"?6:7);B(7);G((c=a.issueEditBuilder.selectedVerifiersStatus)==="MULTIPLE"?12:c==="POSSIBLY_MULTIPLE"?13:14)}},uMb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"label",26);Q(2," Issue ID ");L();K(3,"input",27);N("ngModelChange",function(c){u(b);
var d=P(3).issueEditBuilder;c=w7a(c);return v(d.commonDuplicateOf=c.length===1?c[0]:"")})("keydown.control.enter",function(){u(b);var c=P(3);return v(St(c))})("keydown.meta.enter",function(){u(b);var c=P(3);return v(St(c))});L()()}a&2&&(a=P(3),B(3),I("ngModel",a.issueEditBuilder.commonDuplicateOf),If("cdkFocusInitial",a.focus===a.FocusableField.DUPE_ID||null))},vMb=function(a){if(a&1){var b=t();K(0,"div",5)(1,"button",10)(2,"span");Q(3);L();M(4,"b-icon",11);L();K(5,"mat-menu",null,2)(7,"button",12);
N("click",function(){u(b);var d=P(2);return v(d.issueEditBuilder.issueState=void 0)});Q(8,"No change ");L();Nf(9,lMb,2,2,"button",13,Mf);L();K(11,"div");F(12,tMb,15,2,"div")(13,uMb,4,2,"div",14);L();K(14,"div")(15,"b-comment-box",15);N("onSubmit",function(){u(b);var d;(d=P(2).matDialogRef)==null||d.close(!0);return v()});L()();M(16,"div",16)(17,"b-external-warnings",17);L()}if(a&2){a=qg(6);var c=P(2);B();I("matMenuTriggerFor",a);B(2);yg(c.issueEditBuilder.issueState?c.issueEditBuilder.issueState.displayValue:
"No change");B(4);I("disabled",!c.issueEditBuilder.issueState);B(2);Of(c.issueStates);B(3);G((!c.issueEditBuilder.issueState||c.issueEditBuilder.issueState.status!=="DUPLICATE")===!0?12:13);B(3);I("comment",c.comment)("showToolbar",!1)("isLiteralModeSupported",!0);B(2);I("externalWarnings",c.externalWarnings)}},wMb=function(a){if(a&1){var b=t();K(0,"div",6)(1,"b-recaptcha",28);N("onUpdate",function(c){u(b);var d=P(2);return v(d.issueEditBuilder.recaptchaResponse=c)});L()()}},yMb=function(a){a&1&&
(K(0,"form",null,1)(2,"h1",3),Q(3,"Change issue status"),L(),K(4,"div",4)(5,"span"),Q(6,"Enter updated issue status information below"),L(),F(7,vMb,18,8,"div",5),L(),F(8,wMb,2,0,"div",6),K(9,"div",7)(10,"button",8),Q(11," Cancel "),L(),K(12,"button",9),Q(13," Save "),L()()());a&2&&(a=P(),B(7),G(a.issueEditBuilder?7:-1),B(),G(a.issueEditBuilder&&a.enableRecaptcha?8:-1),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0)("disabled",!xMb(a)))},AMb=function(a){if(a&1){var b=t();K(0,"b-app-bar-bulk-edit-menus",
6);T(1,"async");N("onBulkEdit",function(d){u(b);var e=P();return v(e.bulkEdit(d))})("onQuickBulkEdit",function(d){u(b);var e=P();return v(e.quickBulkEdit(d))})("onBulkEditIssueRelation",function(d){u(b);var e=P();return v(e.bulkEditIssueRelation(d))})("onBulkMarkIssueRead",function(){u(b);var d=P();return v(d.bulkMarkIssueRead())});L()}if(a&2){a=P();var c;I("readStatePrompt",zMb(a))("enableBulkEstimatedEffortOption",(c=U(1,2,a.enableBulkEstimatedEffortOption$))!=null?c:!1)}},EMb=function(a){if(a&
1){var b=t();K(0,"b-copy-issue-id-button",7);N("onClickCopyIssueIds",function(){u(b);var c=P();return v(BMb(c.copyIssueIdService,Tt(c)))})("onClickCopyIssueShortLinks",function(){u(b);var c=P();return v(CMb(c.copyIssueIdService,Tt(c)))})("onClickCopyAsIssueSearch",function(){u(b);var c=P();return v(DMb(c.copyIssueIdService,Tt(c)))});L()}a&2&&(a=P(),I("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},FMb=function(a){if(a&
1){var b=t();K(0,"div",3)(1,"b-hotlist-picker",8);N("onApply",function(c){u(b);var d=P();return v(d.handleHotlistPickerSave(c))})("onCreate",function(c){u(b);var d=P();return v(d.onCreateHotlist.emit(c))})("onLoad",function(c){u(b);var d=P();return v(d.onLoadHotlist.emit(c))});L()()}a&2&&(a=P(),B(),I("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},HMb=function(a){if(a&1){var b=t();K(0,"b-comment-box",15);Cg("commentChange",function(c){u(b);var d=P(2);Bg(d.comment,c)||(d.comment=
c);return v(c)});N("onSubmit",function(){u(b);var c=P(2);return v(GMb(c))});L()}a&2&&(a=P(2),Ag("comment",a.comment),I("showToolbar",!1)("isLiteralModeSupported",!0))},IMb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"b-recaptcha",16);N("onUpdate",function(c){u(b);var d=P(2);return v(d.recaptchaResponse=c)});L()()}},JMb=function(a){a&1&&(K(0,"h1",9),Q(1,"Add comment"),L(),K(2,"mat-dialog-content"),F(3,HMb,1,3,"b-comment-box",10),M(4,"b-external-warnings",11),L(),F(5,IMb,2,0,"div",12),K(6,"mat-dialog-actions")(7,
"button",13),Q(8," Cancel "),L(),K(9,"button",14),Q(10," Save "),L()());a&2&&(a=P(),B(3),G(a.comment?3:-1),B(),I("externalWarnings",a.externalWarnings),B(),G(a.enableRecaptcha?5:-1),B(2),I("mat-dialog-close",!1),B(2),I("disabled",a.enableRecaptcha&&a.recaptchaResponse==="")("mat-dialog-close",!0))},KMb=function(a,b){a&1&&(K(0,"mat-option",6),Q(1),L());a&2&&(a=b.$implicit,I("value",a),B(),yg(a.name))},LMb=function(a){if(a&1){var b=t();K(0,"mat-form-field")(1,"mat-select",5);Cg("valueChange",function(c){u(b);
var d=P();Bg(d.selected,c)||(d.selected=c);return v(c)});Nf(2,KMb,2,2,"mat-option",6,Mf);L()()}a&2&&(a=P(),B(),Ag("value",a.selected),B(),Of(a.options))},MMb=function(a){a&1&&Q(0," All the available shared fields have been activated. ")},NMb=function(a){a&1&&(K(0,"div"),Q(1," Once activated, the shared field will appear in the right panel of all issues. This only affects the visibility of the shared field in Buganizer UI. "),K(2,"a",7),Q(3,"Learn more"),L()())},OMb=function(a){a&1&&(K(0,"h3"),Q(1),
L());a&2&&(a=P(2),B(),S(" Edit Custom Field ",a.editableField.customFieldId," "))},PMb=function(a){a&1&&(K(0,"h3"),Q(1," Create Custom Field "),L())},QMb=function(a){a&1&&(K(0,"div",10),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.serverError," "))},SMb=function(a,b){a&1&&(K(0,"button",24),Q(1),T(2,"enumToHuman"),L());a&2&&(a=b.$implicit,P(),b=qg(33),I("matMenuTriggerFor",b)("matMenuTriggerData",Ig(5,RMb,a)),B(),S(" ",U(2,3,a)," "))},TMb=function(a,b){if(a&1){var c=t();K(0,"button",40);N("click",function(){var d=
u(c).$implicit,e=P().type,f=P(2);return v(f.setType(e,d==="Multiple"))});Q(1);L()}a&2&&(a=b.$implicit,B(),S(" ",a," "))},UMb=function(a){a&1&&Nf(0,TMb,2,1,"button",39,Mf);a&2&&(a=P(2),Of(a.secondaryTypes))},WMb=function(a){if(a&1){var b=t();K(0,"td",12)(1,"label",41);Q(2," Allowed Values: ");L();K(3,"b-list-field",42);N("valuesChange",function(c){u(b);var d=P(2);return v(VMb(d,c.values))});L()()}a&2&&(a=P(2),B(3),I("defaultLineCount",3)("type",a.ListFieldType.REPEATED_TEXT)("values",a.editableField.allowedValue||
null)("listFieldDisabled",a.isSaving)("preventDuplicates",!0)("isDefaultOrAllowedValues",!0)("truncate",!0))},XMb=function(a){a&1&&(K(0,"label",26),Q(1," Default Value: "),L())},$Mb=function(a,b){if(a&1){var c=t();K(0,"b-edit-field",43);N("valueChange",function(d){u(c);var e=P(2);YMb(e,d);return v()});L()}a&2&&(a=P(2),I("name","Default")("type",b)("tooltip","Set default value")("value",ZMb(a))("choices",a.allowedValues)("showEnumTitle",!0)("disabled",a.isSaving)("truncate",!0)("clearable",!0))},aNb=
function(a){a&1&&(K(0,"label",28),Q(1," Default Values: "),L())},bNb=function(a,b){if(a&1){var c=t();K(0,"b-list-field",44);N("valuesChange",function(d){u(c);var e=P(2);YMb(e,d.values);return v()});L()}a&2&&(a=P(2),I("defaultLineCount",3)("type",b)("tooltip","Set default values")("values",a.getListFieldValues())("enumChoices",a.allowedValues)("isDefaultOrAllowedValues",!0)("listFieldDisabled",a.isSaving)("truncate",!0))},cNb=function(a,b){if(a&1){var c=t();K(0,"button",45);N("click",function(){var d=
u(c).$implicit,e=P(2);return v(e.setFieldSignificance(d))});Q(1);T(2,"enumToHuman");L()}a&2&&(a=b.$implicit,B(),S(" ",U(2,1,a)," "))},dNb=function(a){if(a&1){var b=t();K(0,"div",8);F(1,OMb,2,1,"h3")(2,PMb,2,0,"h3");F(3,QMb,2,1,"div",10);K(4,"form",11)(5,"div",12)(6,"label",13);Q(7,"Name:");L();K(8,"input",14);Cg("ngModelChange",function(l){u(b);var r=P();Bg(r.editableField.name,l)||(r.editableField.name=l);return v(l)});L()();K(9,"div",12)(10,"label",15);Q(11,"Description:");L();K(12,"textarea",16);
Cg("ngModelChange",function(l){u(b);var r=P();Bg(r.editableField.description,l)||(r.editableField.description=l);return v(l)});L()();K(13,"table",17)(14,"tr")(15,"td",12)(16,"div",18)(17,"label",19);Q(18," Type: ");L();K(19,"onedev-hovercard",null,0)(21,"div",20)(22,"div",21);Q(23," You can only choose type of field when creating a new custom field. You won't be able to edit it after the custom field is created. ");L()()()();K(24,"button",22);Q(25);T(26,"enumToHuman");M(27,"b-icon",23);L();K(28,"mat-menu",
null,1);Nf(30,SMb,3,7,"button",24,Mf);L();K(32,"mat-menu",null,2);E(34,UMb,2,0,"ng-template",25);L()();F(35,WMb,4,7,"td",12);K(36,"td",12);F(37,XMb,2,0,"label",26);F(38,$Mb,1,9,"b-edit-field",27);F(39,aNb,2,0,"label",28);F(40,bNb,1,8,"b-list-field",29);L();K(41,"td",12)(42,"label",30);Q(43," Required: ");L();K(44,"b-edit-field",31);N("valueChange",function(l){u(b);var r=P();return v(r.editableField.required=!!l)});L()();K(45,"td",12)(46,"div",18)(47,"label",32);Q(48," Field Significance: ");L();K(49,
"onedev-hovercard",null,3)(51,"div",33)(52,"div",21);Q(53," This affects whether users will receive notifications when changes are made to this field. ");M(54,"br");Q(55," See\u00a0 ");K(56,"a",34);Q(57,"Email Settings ");L()()()()();K(58,"button",35);Q(59);T(60,"enumToHuman");M(61,"b-icon",23);L();K(62,"mat-menu",null,4);Nf(64,cNb,3,3,"button",36,Mf);L()()()();K(66,"button",37);N("click",function(){u(b);var l=P();return v(l.save())});Q(67," Save ");L();K(68,"button",38);N("click",function(){u(b);
var l=P();return v(l.cancel())});Q(69," Cancel ");L()()()}if(a&2){var c,d;a=qg(20);var e=qg(29),f=qg(50),g=qg(63),k=P();B();G(k.editableField.customFieldId?1:2);B(2);G(k.serverError?3:-1);B(5);I("bFocus",k.editableField&&!k.isLoading);Ag("ngModel",k.editableField.name);I("disabled",k.isSaving);B(4);Ag("ngModel",k.editableField.description);I("disabled",k.isSaving);B(5);I("onedevHovercardTrigger",a);B(7);I("matMenuTriggerFor",e)("disabled",!!k.editableField.customFieldId);B();S(" ",U(26,25,k.editableField.type),
" ");B(5);Of(k.typeChoices);B(5);G(["REPEATED_ENUM","ENUM"].includes(k.editableField.type)?35:-1);B(2);G(k.isRepeated(k.editableField)?-1:37);B();G((c=k.getSingleEditFieldType(k.editableField))?38:-1,c);B();G(k.isRepeated(k.editableField)?39:-1);B();G((d=k.getListFieldType(k.editableField))?40:-1,d);B(4);I("name","Required")("type",k.FieldType.BOOL)("tooltip","Whether the field is required")("value",k.editableField.required);B(3);I("onedevHovercardTrigger",f);B(9);I("href",k.documentationLinks.baseDocumentationUrl+
"/concepts/settings#email",Ne);B(2);I("matMenuTriggerFor",g);B();S(" ",U(60,27,k.editableField.fieldSignificance)," ");B(5);Of(k.significanceChoices);B(2);I("disabled",!k.hasUnsavedChanges()||!k.editableField.name)}},eNb=function(a){a&1&&(K(0,"div",9),M(1,"b-spinner",46),L());a&2&&(B(),I("large",!0))},fNb=function(a){a&1&&(K(0,"th"),Q(1,"Actions"),L())},hNb=function(a){if(a&1){var b=t();K(0,"td",51)(1,"button",52);N("click",function(){u(b);var c=P().$index,d=P(2);return v(d.editField(c))});Q(2,"Edit");
L();K(3,"button",52);N("click",function(){u(b);var c=P().$index,d=P(2);return v(gNb(d,c))});Q(4,"Delete");L()()}},iNb=function(a,b){a&1&&(K(0,"tr",48)(1,"td"),Q(2),L(),K(3,"td"),Q(4),L(),K(5,"td"),Q(6),T(7,"enumToHuman"),L(),K(8,"td"),Q(9),L(),K(10,"td"),Q(11),T(12,"yesNo"),L(),K(13,"td"),M(14,"b-custom-field-value-display",50),L(),K(15,"td"),Q(16),T(17,"arrayToHuman"),L(),K(18,"td"),Q(19),T(20,"enumToHuman"),L(),F(21,hNb,5,0,"td",51),L());a&2&&(a=b.$implicit,b=P(2),B(2),yg(a.name),B(2),yg(a.customFieldId),
B(2),yg(U(7,9,a.type)),B(3),yg(a.description),B(2),yg(U(12,11,a.required)),B(3),I("customFieldValue",a.typedDefaultValue),B(2),yg(U(17,13,a.allowedValue)),B(3),yg(U(20,15,a.fieldSignificance)),B(2),G(b.editMode?21:-1))},jNb=function(a){a&1&&(K(0,"tr")(1,"td",53),Q(2," There are no custom fields defined on this component. "),L()())},kNb=function(a){a&1&&(K(0,"tr")(1,"td",54)(2,"strong"),Q(3,"Fields inherited from parent components"),L()()())},lNb=function(a){a&1&&(Tf(0),M(1,"b-component-card",60,6),
Uf());if(a&2){a=qg(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.componentId.toString())}},mNb=function(a,b){if(a&1){var c=t();K(0,"tr")(1,"td");Q(2);L();K(3,"td");Q(4);L();K(5,"td");Q(6);T(7,"enumToHuman");L();K(8,"td");Q(9);L();K(10,"td");Q(11);T(12,"yesNo");L();K(13,"td");M(14,"b-custom-field-value-display",50);L();K(15,"td");Q(16);T(17,"arrayToHuman");L();K(18,"td");Q(19);T(20,"enumToHuman");L();K(21,"td",51)(22,"div",56)(23,"div",57);Q(24,"Inherited From");L();
K(25,"a",58);N("click",function(){u(c);var e=P(3);return v(e.trackClick("parentCustomFields"))});Q(26);L();K(27,"onedev-hovercard",null,5);E(29,lNb,3,2,"ng-container",59);L()()()()}if(a&2){a=b.$implicit;b=qg(28);var d=P(3);xg(a.enabledOnIssues?"enabled-field":"disabled-field");B(2);yg(a.name);B(2);yg(a.customFieldId);B(2);yg(U(7,13,a.type));B(3);yg(a.description);B(2);yg(U(12,15,a.required));B(3);I("customFieldValue",a.typedDefaultValue);B(2);yg(U(17,17,a.allowedValue));B(3);yg(U(20,19,a.fieldSignificance));
B(6);I("onedevHovercardTrigger",b)("href",d.ROUTES.editComponentFields.makeHref(a.componentId),Ne);B();S(" ",d.componentIdsToNames[a.componentId]," ")}},nNb=function(a){a&1&&Nf(0,mNb,30,21,"tr",55,Mf);a&2&&(a=P(2),Of(a.inheritedCustomFields))},oNb=function(a){a&1&&(K(0,"tr")(1,"td",54)(2,"strong"),Q(3,"Shared fields"),L()()())},qNb=function(a){if(a&1){var b=t();K(0,"div",51)(1,"button",61);N("click",function(){u(b);var d=P().$implicit,e=P(3);return v(pNb(e,d.customFieldId))});Q(2," Deactivate ");
L()()}if(a&2){a=P().$implicit;var c=P(3);B();I("disabled",c.fieldsEnabledOnParentComponent.has(a.customFieldId))("matTooltip",c.fieldsEnabledOnParentComponent.has(a.customFieldId)?a.name+" is inherited from its parent component.\n        To deactivate this field, go to the parent component\n        that activates this shared field.":"")}},rNb=function(a,b){a&1&&(K(0,"tr",48)(1,"td"),Q(2),L(),K(3,"td"),Q(4),L(),K(5,"td"),Q(6),T(7,"enumToHuman"),L(),K(8,"td"),Q(9),L(),K(10,"td"),Q(11),T(12,"yesNo"),
L(),K(13,"td"),M(14,"b-custom-field-value-display",50),L(),K(15,"td"),Q(16),T(17,"arrayToHuman"),L(),K(18,"td"),Q(19),T(20,"enumToHuman"),L(),K(21,"td"),F(22,qNb,3,2,"div",51),L()());a&2&&(a=b.$implicit,b=P(3),B(2),yg(a.name),B(2),yg(a.customFieldId),B(2),yg(U(7,9,a.type)),B(3),yg(a.description),B(2),yg(U(12,11,a.required)),B(3),I("customFieldValue",a.typedDefaultValue),B(2),yg(U(17,13,a.allowedValue)),B(3),yg(U(20,15,a.fieldSignificance)),B(3),G(b.editMode?22:-1))},sNb=function(a){a&1&&Nf(0,rNb,
23,17,"tr",48,Mf);a&2&&(a=P(2),Of(a.sharedFields))},tNb=function(a){a&1&&(K(0,"tfoot")(1,"tr")(2,"td",54),Q(3," Custom fields in this table are sorted alphabetically. To see or modify field ordering, go to the "),K(4,"a",62),Q(5,"Field Ordering"),L(),Q(6," tab."),M(7,"br"),Q(8," Before removing custom fields or adding/changing required state, ensure that no automation depends on them. "),L()()())},wNb=function(a){if(a&1){var b=t();K(0,"div",49)(1,"button",63);N("click",function(){u(b);var c=P(2);
c.editableField={customFieldId:0,componentId:void 0,name:"",type:"TEXT",description:"",typedDefaultValue:void 0,required:!1,fieldSignificance:"MINOR",allowedValue:void 0,stateOnIssues:"INHERIT",enabledOnIssues:!1,shared:!1};c.originalEditableFieldValue=nm(c.editableField);c.setType("TEXT");c.allowedValues=[];c.serverError=null;return v()});Q(2," Add a Custom Field ");L();K(3,"button",64);N("click",function(){u(b);var c=P(2);return v(uNb(c))});Q(4," Activate a Shared Field ");L()()}a&2&&(a=P(2),B(3),
I("disabled",vNb(a).length==0))},xNb=function(a){a&1&&(K(0,"div")(1,"table",47)(2,"tr")(3,"th"),Q(4,"Name"),L(),K(5,"th"),Q(6,"ID"),L(),K(7,"th"),Q(8,"Type"),L(),K(9,"th"),Q(10,"Description"),L(),K(11,"th"),Q(12,"Required?"),L(),K(13,"th"),Q(14,"Default Value"),L(),K(15,"th"),Q(16,"Allowed Values"),L(),K(17,"th"),Q(18,"Field Significance"),L(),F(19,fNb,2,0,"th"),L(),Nf(20,iNb,22,17,"tr",48,Mf),F(22,jNb,3,0,"tr"),F(23,kNb,4,0,"tr"),F(24,nNb,2,0),F(25,oNb,4,0,"tr"),F(26,sNb,2,0),F(27,tNb,9,0,"tfoot"),
L(),F(28,wNb,5,1,"div",49),L());a&2&&(a=P(),B(19),G(a.editMode?19:-1),B(),Of(a.customFields),B(2),G(a.customFields.length?-1:22),B(),G(a.inheritedCustomFields.length?23:-1),B(),G(a.inheritedCustomFields.length?24:-1),B(),G(a.sharedFields.length?25:-1),B(),G(a.sharedFields.length?26:-1),B(),G(a.customFields.length?27:-1),B(),G(a.editMode?28:-1))},Ut=function(a,b){var c,d;return((c=a.componentPathInfo)==null?void 0:(d=c.allCustomField)==null?void 0:d.filter(function(e){return yNb(e,b)}))||[]},yNb=function(a,
b){switch(a.type){case "TEAM":case "REPEATED_TEAM":return b.getFlag("enableCustomFieldTypeTeamUI");case "PRODUCT":case "REPEATED_PRODUCT":return b.getFlag("enableCustomFieldTypeProductUI");case "USER":case "REPEATED_USER":return b.getFlag("enableCustomFieldTypeUserUI");default:return!0}},zNb=function(a){a&1&&M(0,"tr",16)},ANb=function(a){a&1&&M(0,"tr",17)},BNb=function(a){a&1&&(K(0,"th",18),Q(1,"User"),L())},CNb=function(a,b){a&1&&(K(0,"div",20),M(1,"b-user-image",21)(2,"b-user-display-name",22),
L());a&2&&(a=P(2),B(),I("email",a.userToLossyEmail(b)),B(),I("user",b)("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},DNb=function(a,b){a&1&&(K(0,"td",19),F(1,CNb,3,4,"div",20),L());if(a&2){var c;a=b.$implicit;B();G((c=a[0].user.user)?1:-1,c)}},ENb=function(a){a&1&&(K(0,"th",18)(1,"span",23),Q(2," Role "),M(3,"b-icon",24),L()());a&2&&(P(),a=ag(10),B(3),I("matTooltip",a),If("aria-label",a))},FNb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),
B(),yg(a.displayText))},JNb=function(a,b){if(a&1){var c=t();K(0,"td",19)(1,"mat-select",25);N("selectionChange",function(d){var e=u(c).$implicit,f=P();return v(GNb(f,e[0],d.value))});K(2,"mat-select-trigger");Q(3);L();Nf(4,FNb,2,2,"mat-option",26,HNb);T(6,"async");L()()}a&2&&(a=b.$implicit,b=P(),B(),I("disabled",!b.isAllowedToEdit)("value",a[0].user.role),B(2),S(" ",INb(a[0])," "),B(),Of(U(6,3,b.roleOptions$)))},KNb=function(a){a&1&&(K(0,"th",18)(1,"span",27),Q(2," Lead "),M(3,"b-icon",24),L()());
a&2&&(P(),a=ag(14),B(3),I("matTooltip",a),If("aria-label",a))},MNb=function(a,b){if(a&1){var c=t();K(0,"td",19)(1,"mat-checkbox",28);N("change",function(e){var f=u(c).$implicit,g=P();return v(LNb(g,f[0],e.checked))});L()()}if(a&2){a=b.$implicit;b=P();var d="Click to "+(a[0].user.isLead?"unset ":"set ")+a[0].user.user.emailAddress+" as a lead for this issue.";B();Hf("aria-label",Dg(d));I("checked",a[0].user.isLead)("disabled",!b.isAllowedToEdit)}},NNb=function(a){a&1&&(K(0,"th",18)(1,"span",29),Q(2,
" Involvement "),M(3,"b-icon",24),L()());a&2&&(P(),a=ag(18),B(3),I("matTooltip",a),If("aria-label",a))},ONb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),yg(a.displayText))},PNb=function(a){a&1&&(K(0,"mat-option",26),Q(1,"Percentage"),L());a&2&&(a=P(2),I("value",a.Involvement.INVOLVEMENT_UNSPECIFIED))},RNb=function(a,b){if(a&1){var c=t();K(0,"td",19)(1,"mat-select",30);N("selectionChange",function(d){var e=u(c).$implicit,f=P();return v(QNb(f,e,e[0],
d.value))});Nf(2,ONb,2,2,"mat-option",26,HNb);F(4,PNb,2,1,"mat-option",26);L()()}a&2&&(a=b.$implicit,b=P(),B(),I("disabled",!b.isAllowedToEdit)("value",a[0].allocation.involvement),B(),Of(b.involvementOptions),B(2),G(b.staffingEnhancementsEnabled?4:-1))},SNb=function(a){a&1&&(K(0,"th",18)(1,"span",31),Q(2," Involvement "),M(3,"b-icon",24),L()());a&2&&(P(),a=ag(22),B(3),I("matTooltip",a),If("aria-label",a))},VNb=function(a){if(a&1){var b=t();K(0,"button",33,0);N("click",function(){u(b);var d=P().$implicit,
e=P();return v(TNb(e,d[0]))});Q(2);M(3,"mat-icon",34);L()}if(a&2){a=P().$implicit;var c=P();I("disabled",!c.isAllowedToEdit);B(2);S(" ",UNb(a[0])," ")}},WNb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.displayText),B(),yg(a.displayText))},YNb=function(a){if(a&1){var b=t();K(0,"input",35,1);Cg("ngModelChange",function(d){u(b);var e=P(2);Bg(e.allocationFromInputPlain,d)||(e.allocationFromInputPlain=d);return v(d)});N("keydown",function(d){u(b);var e=P().$implicit,
f=P();return v(Vt(f,e,d))})("input",function(){u(b);var d=P(2);return v(d.allocationInputChanges$.next(d.allocationFromInputPlain||""))})("blur",function(d){u(b);var e=P().$implicit,f=P();d.relatedTarget&&Vt(f,e);return v()});L();K(2,"mat-autocomplete",36,2);N("optionSelected",function(d){u(b);var e=P().$implicit,f=P();f.allocationFromInputPlain=oo[d.option.value];Vt(f,e);return v()});Nf(4,WNb,2,2,"mat-option",26,XNb);L()}if(a&2){a=qg(3);var c=P(2);I("matAutocomplete",a);Ag("ngModel",c.allocationFromInputPlain);
I("disabled",!c.isAllowedToEdit);B(4);Of(c.involvementOptions)}},ZNb=function(a,b){a&1&&(K(0,"td",19),F(1,VNb,4,2,"button",32)(2,YNb,6,3),L());a&2&&(a=b.$implicit,b=P(),B(),G(b.allocationUnderEdit===a[0]?2:1))},$Nb=function(a){a&1&&(K(0,"th",18),Q(1),M(2,"b-icon",24),L());if(a&2){var b=P();a=b.$implicit;b=b.$index;var c=ag(1);xg(Eg("timebound-allocation ",b%2===1?"blue":""));B();S(" ",a.displayText," ");B();I("matTooltip",c);If("aria-label",c)}},aOb=function(a){if(a&1){var b=t();K(0,"button",42,0);
N("click",function(){u(b);P(2);var d=ag(1),e=P(2);return v(TNb(e,d))});Q(2);M(3,"mat-icon",34);L()}if(a&2){P(2);a=ag(1);var c=P(2);I("disabled",!c.isAllowedToEdit);B(2);S(" ",UNb(a)," ")}},bOb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.displayText),B(),yg(a.displayText))},dOb=function(a){if(a&1){var b=t();K(0,"input",43,1);Cg("ngModelChange",function(d){u(b);var e=P(4);Bg(e.allocationFromInputPlain,d)||(e.allocationFromInputPlain=d);return v(d)});N("keydown",
function(d){u(b);var e=P(2).$implicit,f=P(2);return v(Vt(f,e,d))})("keyup",function(){u(b);var d=P(4);return v(cOb(d))})("blur",function(d){u(b);var e=P(2).$implicit,f=P(2);d.relatedTarget&&Vt(f,e);return v()});L();K(2,"mat-autocomplete",36,2);N("optionSelected",function(d){u(b);var e=P(2).$implicit,f=P(2);f.allocationFromInputPlain=oo[d.option.value];Vt(f,e);return v()});Nf(4,bOb,2,2,"mat-option",26,XNb);L()}if(a&2){a=qg(3);var c=P(4);I("matAutocomplete",a);Ag("ngModel",c.allocationFromInputPlain);
I("disabled",!c.isAllowedToEdit);B(4);Of(c.involvementOptions)}},eOb=function(a){a&1&&F(0,aOb,4,2,"button",41)(1,dOb,6,3);if(a&2){P();a=ag(1);var b=P(2);G(b.allocationUnderEdit===a?1:0)}},fOb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),yg(a.displayText))},gOb=function(a){if(a&1){var b=t();K(0,"mat-select",30);N("selectionChange",function(d){u(b);var e=P().$implicit,f=ag(1),g=P(2);return v(QNb(g,e,f,d.value))});Nf(1,fOb,2,2,"mat-option",26,HNb);K(3,
"mat-option",26);Q(4,"Percentage");L()()}if(a&2){P();a=ag(1);var c=P(2);I("disabled",!c.isAllowedToEdit)("value",a.allocation==null?null:a.allocation.involvement);B();Of(c.involvementOptions);B(2);I("value",c.Involvement.INVOLVEMENT_UNSPECIFIED)}},hOb=function(a,b){a&1&&(K(0,"td",39),Zf(1),F(2,eOb,2,1)(3,gOb,5,3,"mat-select",40),L());if(a&2){a=b.$implicit;b=P();var c=b.$implicit;xg(Eg("timebound-allocation ",b.$index%2===1?"blue":""));B();$f(c.extractPlannedAllocation(a));B();G(c.displayInvolvementAsPercentage?
2:3)}},iOb=function(a,b){a&1&&(Tf(0,14),Zf(1),E(2,$Nb,3,6,"th",37)(3,hOb,4,5,"td",38),Uf());a&2&&(a=b.$implicit,I("matColumnDef",a.columnDef),B(),$f("Set the involvement level of people\n        allocated to this issue during "+a.displayText+". Zero involvement levels are\n        useful when a person is either not involved during this quarter or the person is involved in\n        the work but does not spend a significant portion of their time on it."))},jOb=function(a){a&1&&(K(0,"th",18),Q(1,"Delete"),
L())},lOb=function(a){if(a&1){var b=t();K(0,"td",19)(1,"button",44);N("click",function(){var c=u(b).$implicit,d=P();return v(kOb(d,c[0]))});M(2,"mat-icon",45);L()()}a&2&&(a=P(),B(),I("disabled",!a.isAllowedToEdit))},mOb=function(a,b){a&1&&(K(0,"span",5)(1,"mat-option",11)(2,"span",12),Q(3),L()()());a&2&&(a=b.$implicit,I("matTooltip","The "+a.displayText+" role has already been allocated.")("matTooltipDisabled",!a.disabled),B(),I("value",a.value)("disabled",a.disabled),B(2),S(" ",a.displayText," "))},
nOb=function(a){a&1&&(K(0,"mat-error"),Q(1," Must be an integer between 1 and 300,000. "),L())},oOb=function(a){a&1&&(K(0,"b-callout",2)(1,"b-callout-body"),Q(2," You do not have edit access "),L()())},qOb=function(a,b){if(a&1){var c=t();K(0,"b-placeholder-chip",15);N("editPlaceholder",function(){var e=u(c).$implicit,f=P(),g=ag(6);return v(pOb(f,g,e.role))})("removePlaceholder",function(){var e=u(c).$implicit,f=P();return v(f.removePlaceholder(e))});L()}if(a&2){a=b.$implicit;b=P();var d=ag(2);I("placeholder",
a)("isAllowedToEdit",b.isAllowedToEdit&&!d)}},rOb=function(a){var b=a.assigneeUser===a.currentUserEmail,c=a.verifierUser===a.currentUserEmail,d,e=!((d=a.collaboratorsUsers)==null||!d.some(function(g){return g===a.currentUserEmail})),f;d=!((f=a.ccUsers)==null||!f.some(function(g){return g===a.currentUserEmail}));return!b&&!c&&!e&&!d},sOb=function(a){a&1&&(K(0,"span"),Q(1,"Cancel"),L())},tOb=function(a){a&1&&(K(0,"span"),Q(1,"Edit"),L())},zOb=function(a){if(a&1){var b=t();K(0,"td")(1,"div")(2,"div",
16);Q(3);L();K(4,"div",17)(5,"a",18);Q(6);L()()()();K(7,"td",12)(8,"mat-radio-button",19);N("change",function(d){u(b);var e=P(2);return v(uOb(e,d.value))});L()();K(9,"td",12)(10,"b-button",20);N("onAction",function(){u(b);var d=P().$implicit,e=P();return v(e.toggleRow(d))});F(11,sOb,2,0,"span")(12,tOb,2,0,"span");L()();K(13,"td",12)(14,"b-button",21);N("onAction",function(){u(b);var d=P().$implicit,e=P();return v(vOb(e,d))});Q(15," Delete ");L()()}if(a&2){a=P().$implicit;var c=P();B(2);wg("selected",
wOb(c,a));B();S(" ",a.name," ");B(2);I("href",xOb(c,a),Ne);If("aria-label",a.name+"- Click to create a new issue");B();S(" ",xOb(c,a)," ");B(2);I("id",Eg("template-default-radio-",a.index))("checked",c.defaultIndex===a.index);Hf("aria-label","Make template "+a.name+" as default template");I("value",a.index);B(2);I("bAriaLabel",wOb(c,a)?"Cancel editing "+a.name:"Edit "+a.name);B();G(wOb(c,a)?11:12);B(3);I("bAriaLabel","Delete "+a.name)("disabled",!yOb(c,a))}},AOb=function(a){a&1&&(K(0,"h2",23),Q(1,
" Create Template "),L())},BOb=function(a){a&1&&(K(0,"h2",23),Q(1),L());a&2&&(a=P(2).$implicit,B(),zg(' Edit template "',a.name,'" ',a.editableTemplate.isDirty()?"(changed)":""," "))},COb=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-slide-toggle",75);N("modelChange",function(){u(b);var c=P(2).$implicit.editableTemplate;c.inheritable=!c.inheritable;c.dirty=!0;return v()});L();K(2,"span",25)(3,"label",76);Q(4,"Inherited by all child components");L();M(5,"mat-icon",77);L()()}a&2&&(a=P(2).$implicit,
B(),I("model",a.editableTemplate.inheritable))},DOb=function(a,b){a&1&&(K(0,"mat-option",82),Q(1),L());a&2&&(a=b.$implicit,I("value",Dg(a)),B(),S(" ",a," "))},EOb=function(a){if(a&1){var b=t();K(0,"div",35)(1,"div",25)(2,"label",78);Q(3,"Collaborator Groups");L();M(4,"mat-icon",79);L();K(5,"mat-form-field",80)(6,"mat-select",81);Cg("ngModelChange",function(d){u(b);var e=P(2).$implicit;Bg(e.editableTemplate.collaboratorGroups,d)||(e.editableTemplate.collaboratorGroups=d);return v(d)});N("ngModelChange",
function(){u(b);P(2).$implicit.editableTemplate.dirty=!0;return v()});K(7,"mat-select-trigger");Q(8);L();Nf(9,DOb,2,3,"mat-option",82,Mf);L()()()}if(a&2){a=P(2).$implicit;var c=P();B(4);I("matTooltip",Dg(c.COLLABORATOR_GROUPS_TOOLTIP));B(2);Ag("ngModel",a.editableTemplate.collaboratorGroups);B(2);S(" ",a.editableTemplate.getCollaboratorGroupsString()," ");B();Of(c.trackerCollaboratorGroups)}},GOb=function(a,b){if(a&1){var c=t();K(0,"button",83);N("click",function(){var e=u(c).$implicit,f=P(2).$implicit,
g=P();f.issueType=e.value;return v(FOb(g))});Q(1);L()}if(a&2){a=b.$implicit;b=P(2).$implicit;var d;I("disabled",b.issueType===a.value)("matTooltip",(d=a.altText)!=null?d:"");B();S(" ",a.displayText," ")}},HOb=function(a,b){if(a&1){var c=t();K(0,"button",84);N("click",function(){var d=u(c).$implicit,e=P(2).$implicit;e.editableTemplate.priority=d.value;e.editableTemplate.dirty=!0;return v()});Q(1);L()}a&2&&(a=b.$implicit,b=P(2).$implicit,I("disabled",b.editableTemplate.priority===a.value),B(),S(" ",
a.displayText," "))},IOb=function(a,b){if(a&1){var c=t();K(0,"button",84);N("click",function(){var d=u(c).$implicit,e=P(2).$implicit;e.editableTemplate.severity=d.value;e.editableTemplate.dirty=!0;return v()});Q(1);L()}a&2&&(a=b.$implicit,b=P(2).$implicit,I("disabled",b.editableTemplate.severity===a.value),B(),S(" ",a.displayText," "))},JOb=function(a,b){if(a&1){var c=t();K(0,"div",52)(1,"b-hotlist-chip",85);N("removeHotlist",function(){var d=u(c).$implicit,e=P(3);return v(e.removeHotlist(d.hotlistId))});
L()()}a&2&&(a=b.$implicit,B(),I("hotlist",a))},KOb=function(a){if(a&1){var b=t();Zf(0);T(1,"staffingSummary");K(2,"div",69)(3,"div",25)(4,"label",86);Q(5,"Staffing");L();M(6,"mat-icon",87);L();K(7,"button",88);N("click",function(){u(b);var c=P(3);return v(c.editStaffing())});K(8,"span",89);Q(9);L();M(10,"div",90);L()()}a&2&&(a=P(2).$implicit,a=U(1,2,a.editableTemplate.staffing==null?null:a.editableTemplate.staffing.plannedAllocations),B(7),If("aria-label","Staffing: "+a),B(2),S(" ",a," "))},LOb=function(a){a&
1&&(K(0,"h3"),Q(1,"Custom issue fields"),L())},MOb=function(a){if(a&1){var b=t();K(0,"input",97);Cg("ngModelChange",function(d){u(b);var e=P().$implicit,f=P(2).$implicit;Bg(f.editableTemplate.customFieldValues[e.id].textValue,d)||(f.editableTemplate.customFieldValues[e.id].textValue=d);return v(d)});N("ngModelChange",function(){u(b);P(3).$implicit.editableTemplate.dirty=!0;return v()});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;If("id",Eg("template-cf-",a.id));Ag("ngModel",c.editableTemplate.customFieldValues[a.id].textValue)}},
NOb=function(a){if(a&1){var b=t();K(0,"input",98);Cg("ngModelChange",function(d){u(b);var e=P().$implicit,f=P(2).$implicit;Bg(f.editableTemplate.customFieldValues[e.id].numericValue,d)||(f.editableTemplate.customFieldValues[e.id].numericValue=d);return v(d)});N("ngModelChange",function(){u(b);P(3).$implicit.editableTemplate.dirty=!0;return v()});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;If("id",Eg("template-cf-",a.id));Ag("ngModel",c.editableTemplate.customFieldValues[a.id].numericValue)}},
POb=function(a){if(a&1){var b=t();K(0,"b-edit-field",99);N("valueChange",function(g){u(b);var k=P().$implicit,l=P(2).$implicit,r=P();return v(r.setCustomField(l,k.id,g))});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit,d=P();If("id",Eg("template-cf-",a.id));var e,f;I("type",d.FieldType.ENUM)("name",a.name)("clearable",!0)("value",(e=c.editableTemplate.customFieldValues[a.id]==null?null:c.editableTemplate.customFieldValues[a.id].enumValue)!=null?e:null)("choices",(f=a.enumFields)!=null?f:Hg(7,OOb))}},
QOb=function(a){if(a&1){var b=t();K(0,"bv2-input-date-picker",100);N("boundValueChange",function(e){u(b);var f=P().$implicit,g=P(2).$implicit,k=P();return v(g.editableTemplate.customFieldValues[f.id].dateValue=k.getDateValue(e))})("boundValueChange",function(){u(b);P(3).$implicit.editableTemplate.dirty=!0;return v()});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;If("id",Eg("template-cf-",a.id));var d;I("boundValue",(d=c.editableTemplate.customFieldValues[a.id].dateValue)!=null?d:void 0)}},SOb=
function(a){if(a&1){var b=t();K(0,"b-list-field",101);N("valuesChange",function(e){u(b);var f=P().$implicit,g=P(2).$implicit,k=P();return v(k.setCustomField(g,f.id,e.values))});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit,d=P();If("id",Eg("template-cf-",a.id));I("defaultLineCount",2)("type",d.getListFieldType(a.type))("values",ROb(c.editableTemplate.customFieldValues[a.id]))("enumChoices",a.enumFields)("truncate",!0)}},TOb=function(a,b){a&1&&(K(0,"div")(1,"div",25)(2,"label",91),Q(3),L()(),K(4,
"div"),F(5,MOb,1,3,"input",92)(6,NOb,1,3,"input",93)(7,POb,1,8,"b-edit-field",94)(8,QOb,1,3,"bv2-input-date-picker",95)(9,SOb,1,7,"b-list-field",96),L()());if(a&2){var c;a=b.$implicit;xg(Eg("cell-",a.cellType));B(2);I("for",Eg("template-cf-",a.id));B();zg("",a.name," (id=",a.id,")");B(2);G((c=a.type)==="TEXT"?5:c==="NUMERIC"?6:c==="ENUM"?7:c==="DATE"?8:9)}},ZOb=function(a){if(a&1){var b=t();K(0,"td",15)(1,"div",22);F(2,AOb,2,0,"h2",23)(3,BOb,2,2,"h2",23);K(4,"div",24)(5,"div",25)(6,"label",26);Q(7,
"Template Name");L()();K(8,"input",27);Cg("ngModelChange",function(g){u(b);var k=P().$implicit;Bg(k.editableTemplate.name,g)||(k.editableTemplate.name=g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});L()();F(9,COb,6,1,"div",24);K(10,"div",24)(11,"div",25)(12,"label",28);Q(13,"Description of Template");L()();K(14,"input",29);Cg("ngModelChange",function(g){u(b);var k=P().$implicit;Bg(k.editableTemplate.description,g)||(k.editableTemplate.description=
g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});L()();K(15,"div",30)(16,"h3");Q(17," Standard issue fields ");L();K(18,"div",31)(19,"div",32)(20,"div",25)(21,"label",33);Q(22,"Issue Access Level");L()();K(23,"b-issue-access-limits-dropdown",34);N("updatedAccessLimitLevel",function(g){u(b);var k=P().$implicit;return v(k.editableTemplate.onAccessLimitLevelSelected(g))});L()();F(24,EOb,11,4,"div",35);L();K(25,"div",24)(26,"div",25)(27,"label",36);
Q(28,"Title");L()();K(29,"input",37);Cg("ngModelChange",function(g){u(b);var k=P().$implicit;Bg(k.editableTemplate.title,g)||(k.editableTemplate.title=g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});L()();K(30,"div",38)(31,"div",25)(32,"label",39);Q(33,"Type");L()();K(34,"button",40)(35,"span");Q(36);L();M(37,"b-icon",41);L();K(38,"mat-menu",42,2);Nf(40,GOb,2,3,"button",43,Mf);L()();K(42,"div",38)(43,"div",25)(44,"label",44);Q(45,"Priority");
L()();K(46,"button",45)(47,"span");Q(48);L();M(49,"b-icon",41);L();K(50,"mat-menu",42,3);Nf(52,HOb,2,2,"button",46,Mf);L()();K(54,"div",38)(55,"div",25)(56,"label",47);Q(57,"Severity");L()();K(58,"button",48)(59,"span");Q(60);L();M(61,"b-icon",41);L();K(62,"mat-menu",42,4);Nf(64,IOb,2,2,"button",46,Mf);L()();K(66,"div",49)(67,"div",25)(68,"label",50);Q(69,"Default Hotlists");L()();K(70,"b-hotlist-picker",51);N("onApply",function(g){u(b);var k=P(2);return v(k.handleHotlistPickerSave(g))})("onCreate",
function(g){u(b);var k=P(2);return v(k.createHotlist(g))})("onLoad",function(g){u(b);var k=P(2);return v(k.loadHotlist(g))});L();Nf(71,JOb,2,1,"div",52,Mf);L();M(73,"div",53);K(74,"div",54)(75,"div",25)(76,"label",55);Q(77,"Assignee");L()();K(78,"b-peoplekit-single",56);N("emailChange",function(g){u(b);var k=P().$implicit,l=P();return v(l.handleAutocompleteSelection(g,k,"assignee"))});L()();K(79,"div",54)(80,"div",25)(81,"label",57);Q(82,"Verifier");L()();K(83,"b-peoplekit-single",58);N("emailChange",
function(g){u(b);var k=P().$implicit,l=P();return v(l.handleAutocompleteSelection(g,k,"verifier"))});L()();K(84,"div",24)(85,"div",25)(86,"label",59);Q(87,"Collaborators");L();M(88,"mat-icon",60);L();K(89,"b-peoplekit-multi",61,5);N("valueChange",function(g){u(b);var k=P().$implicit;return v(UOb(k.editableTemplate,g))});L()();K(91,"div",24)(92,"div",25)(93,"label",62);Q(94,"CC");L()();K(95,"b-peoplekit-multi",63,6);N("valueChange",function(g){u(b);var k=P().$implicit;return v(VOb(k.editableTemplate,
g))});L()();K(97,"div",24)(98,"div",25)(99,"label",64);Q(100,"Initial Comment");L()();K(101,"textarea",65);Cg("ngModelChange",function(g){u(b);var k=P().$implicit;Bg(k.editableTemplate.comment,g)||(k.editableTemplate.comment=g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});Q(102,"                  ");L();K(103,"b-markdown-toggle",66);N("change",function(g){u(b);var k=P().$implicit;return v(k.editableTemplate.setFormattingMode(g))});L()();K(104,
"div",24)(105,"div",25)(106,"label",67);Q(107,"In Prod");L()();K(108,"b-slide-toggle",68);N("modelChange",function(){u(b);var g=P().$implicit.editableTemplate;g.inProd=!g.inProd;g.dirty=!0;return v()});L()();F(109,KOb,11,4,"div",69);L();K(110,"div",70);F(111,LOb,2,0,"h3");Nf(112,TOb,10,8,"div",71,Mf);L();K(114,"div",72)(115,"b-button",73);N("onAction",function(){u(b);var g=P(2);return v(WOb(g))});Q(116," Save ");L();K(117,"b-button",74);N("onAction",function(){u(b);var g=P(2);return v(XOb(g))});Q(118,
" Cancel ");L()()()()}if(a&2){a=qg(39);var c=qg(51),d=qg(63),e=P().$implicit,f=P();B(2);G(e.editableTemplate.new?2:3);B(6);Ag("ngModel",e.editableTemplate.name);B();G(f.enableTemplateInheritance?9:-1);B(5);Ag("ngModel",e.editableTemplate.description);B(9);I("disabled",!1)("defaultAccessLimitLevel",e.editableTemplate.issueAccessLimitLevel)("implicitAccessEnabled",f.implicitAccessEnabled);B();G(f.trackerCollaboratorGroups.length?24:-1);B(5);Ag("ngModel",e.editableTemplate.title);B(5);I("matMenuTriggerFor",
a);B(2);yg(YOb(e.issueType));B(2);I("overlapTrigger",!0);B(2);Of(f.issueTypeChoices);B(6);I("matMenuTriggerFor",c);B(2);yg(e.editableTemplate.priority);B(2);I("overlapTrigger",!0);B(2);Of(f.priorityChoices);B(6);I("matMenuTriggerFor",d);B(2);yg(e.editableTemplate.severity);B(2);I("overlapTrigger",!0);B(2);Of(f.severityChoices);B(6);I("selectedHotlistIds",f.selectedHotlistIds)("choices",f.hotlists);B();Of(f.selectedHotlists);B(7);I("ariaLabel","The user assigned to this issue")("email",e.editableTemplate.assignee);
B(5);I("ariaLabel","The user who will verify this issue")("email",e.editableTemplate.verifier);B(6);I("ariaLabel","Addition to Collaborators")("value",e.editableTemplate.collaborators.join(", "));B(6);I("ariaLabel","Addition to CCs")("value",e.editableTemplate.cc.join(", "));B(6);Ag("ngModel",e.editableTemplate.comment);B(2);I("initialValue",e.editableTemplate.formattingMode);B(5);I("model",e.editableTemplate.inProd);B();G(f.sessionIsInternal?109:-1);B(2);G(f.customFieldRows.length>0?111:-1);B();
Of(f.customFieldRows);B(3);I("disabled",!e.editableTemplate.isDirty())}},$Ob=function(a,b){a&1&&(K(0,"tr"),F(1,zOb,16,15)(2,ZOb,119,34,"td",15),L());a&2&&(a=b.$implicit,B(),G(a.editableTemplate?2:1))},aPb=function(a){a&1&&(K(0,"tr")(1,"td",15)(2,"div",102)(3,"strong"),Q(4,"Templates inherited from parent components"),L()()()())},bPb=function(a){a&1&&(Tf(0),M(1,"b-component-card",108,8),Uf());if(a&2){a=qg(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.componentId)}},
cPb=function(a,b){if(a&1){var c=t();K(0,"tr")(1,"td")(2,"div")(3,"div",16);Q(4);L();K(5,"div",17)(6,"a",18);Q(7);L()()()();K(8,"td",12)(9,"mat-radio-button",19);N("change",function(e){u(c);var f=P(2);return v(uOb(f,e.value))});L()();K(10,"td",103)(11,"div",104)(12,"div",105);Q(13,"Inherited From");L();K(14,"a",106);Q(15);L();K(16,"onedev-hovercard",null,7);E(18,bPb,3,2,"ng-container",107);L()()()()}if(a&2){a=b.$implicit;b=qg(17);var d=P(2);B(3);wg("selected",wOb(d,a));B();S(" ",a.name," ");B(2);I("href",
xOb(d,a),Ne);If("aria-label",a.name+"- Click to create a new issue");B();S(" ",xOb(d,a)," ");B(2);I("id",Eg("template-default-radio-",a.index))("checked",d.defaultIndex===a.index);Hf("aria-label","Make template "+a.name+" as default template");I("value",a.index);B(5);I("onedevHovercardTrigger",b)("href",d.ROUTES.editComponentTemplates.makeHref(a.componentId),Ne);If("aria-label","Inherited from "+d.componentIdsToPaths[a.componentId]);B();S(" ",d.componentIdsToPaths[a.componentId]," ")}},dPb=function(a,
b){a&1&&(F(0,aPb,5,0,"tr"),Nf(1,cPb,19,15,"tr",null,Mf));a&2&&(G(b.length?0:-1),B(),Of(b))},ePb=function(a,b){a&1&&(K(0,"div",109),Q(1),L(),K(2,"div",110)(3,"button",111),Q(4," Cancel "),L(),K(5,"button",112),Q(6," Confirm "),L()());a&2&&(a=b.$implicit,B(),S(' Are you sure you want to delete the template "',a.name,'"? '),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},fPb=function(a,b){a&1&&(K(0,"div",109),Q(1),L(),K(2,"div",110)(3,"button",113),Q(4," Cancel "),L(),K(5,"button",113),
Q(6," Don't Save "),L(),K(7,"button",114),Q(8," Save "),L()());a&2&&(a=b.$implicit,B(),S(' Do you want to save changes to template "',a.name,'" before closing? '),B(2),I("mat-dialog-close",void 0),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},gPb=function(a){a&1&&(K(0,"div"),Q(1),L(),K(2,"div"),Q(3),L());a&2&&(a=P(),B(),S(" Policy: ",a.rawObjectiveDisplayText," (business) "),B(2),S("Effective: ",a.objectiveDisplayText," (calendar)"))},hPb=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&
(a=P(),B(),S("Policy: ",a.rawObjectiveDisplayText," (calendar)"))},iPb=function(a){a&1&&(K(0,"div"),M(1,"b-slo-time-indicator",0),L());a&2&&(a=P(),B(),I("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.assignmentSlo)("includeObjective",!0))},jPb=function(a){a&1&&(K(0,"div"),M(1,"b-slo-time-indicator",1),L());a&2&&(a=P(),B(),I("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.responseSlo)("includeObjective",!0))},kPb=function(a){a&1&&(K(0,"div"),M(1,"b-slo-time-indicator",
2),L());a&2&&(a=P(),B(),I("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.closureSlo)("includeObjective",!0))},lPb=function(a){a&1&&(K(0,"div",5),M(1,"b-slo-status-summary",7),L());a&2&&(a=P(),B(),I("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric",a.onlyShowMetric))},mPb=function(a){a&1&&Q(0," No applicable SLO rules ")},nPb=function(a){a&1&&Q(0," No SLO set on issue component ")},oPb=function(a){a&1&&(K(0,"div",6),F(1,mPb,1,0)(2,nPb,1,0),L());a&2&&
(a=P(),B(),G(a.editSloLink?1:2))},pPb=function(a){if(a&1){var b=t();K(0,"a",9);N("click",function(){u(b);var c=P(2);return v(c.trackOpenSlo())});Q(1);L()}a&2&&(a=P(2),I("href",a.editSloLink,Ne),B(),S(" ",a.sloName," "))},qPb=function(a){a&1&&(K(0,"span"),Q(1," (private) "),L())},rPb=function(a){a&1&&(K(0,"span"),Q(1," SLO definition: "),F(2,pPb,2,2,"a",8)(3,qPb,2,0,"span"),L());a&2&&(a=P(),B(2),G(a.sloName?2:3))},uPb=function(a){if(a.type==="CUSTOM_FIELD")return new Wt({name:a.customFieldId?String(a.customFieldId):
a.customFieldName||"",label:a.customFieldName||"",fullLabel:a.customFieldName||"",isCustomField:!0,sortable:a.customFieldId!==void 0,tooltip:""});a=SQa(a.type);a==="canonicalIssueId"&&(a="duplicateOfIssueId");return sPb.includes(a)?tPb(a):null},wPb=function(a){return vPb(a.map(uPb).filter(function(b){return!!b}))},xPb=function(a){return a.map(function(b){b.isCustomField?b={type:"CUSTOM_FIELD",customFieldId:rm(b.name),customFieldName:void 0}:(b=(b.name||"").replace(/([A-Z])/g,"_$1").toUpperCase(),
b==="DUPLICATE_OF_ISSUE_ID"&&(b="CANONICAL_ISSUE_ID"),b={type:b,customFieldId:void 0,customFieldName:void 0});return b})},vPb=function(a){return sq(a,function(b){return b.name})},tPb=function(a){var b={name:a,label:a.toUpperCase()},c=yPb[a];c?Object.assign(b,c):sPb.includes(a)||(b.isCustomField=!0);b.fullLabel=b.fullLabel||b.label.charAt(0).toUpperCase()+b.label.slice(1).toLowerCase();return new Wt(b)},zPb=function(a,b){a&1&&M(0,"col");a&2&&xg(Eg("",b.$implicit.name,"-col"))},APb=function(a){a&1&&
Vf(0)},CPb=function(a,b){a&1&&E(0,APb,1,0,"ng-container",7);a&2&&(a=b.$implicit,b=P(),I("ngTemplateOutlet",b.headerCellTemplates[a.name]||b.defaultHeaderCellTemplate)("ngTemplateOutletContext",Ig(2,BPb,a)))},DPb=function(a){a&1&&Vf(0)},FPb=function(a,b){a&1&&E(0,DPb,1,0,"ng-container",7);if(a&2){a=b.$implicit;b=b.$index;var c=P(),d=c.$implicit;c=c.$index;var e=P();I("ngTemplateOutlet",e[b])("ngTemplateOutletContext",Kg(2,EPb,d,a,c))}},HPb=function(a,b){if(a&1){var c=t();K(0,"tr",9,3);N("click",function(){var e=
u(c).$index,f=P(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return v()})("focus",function(){var e=u(c).$index,f=P(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return v()})("mouseover",function(){var e=u(c).$index;P(2).hoveredRowIndex.emit(e);return v()})("mouseleave",function(){u(c);P(2).hoveredRowIndex.emit(null);return v()});Nf(2,FPb,1,6,"ng-container",null,GPb);L()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);wg("selected",a.selected)("unread",
!d.readUnreadOptOut&&!a.isRead&&!a.isClosed)("closed",a.isClosed)("grid-focus",d.focusedRowIndex===b);If("data-row-id",a.id)("data-is-read",a.isRead)("aria-label",d.renderRowLabel(a,b)+(a.selected?", row starred":""));B(2);Of(d.columns)}},JPb=function(a){a&1&&Nf(0,HPb,4,11,"tr",8,IPb);a&2&&(a=P(),Of(a.list))},KPb=function(a,b){a&1&&(K(0,"th"),M(1,"pop-grid-default-th",10),L());a&2&&(a=b.column,B(),I("column",a))},LPb=function(a,b){a&1&&(K(0,"td"),M(1,"pop-grid-default-cell",11),L());a&2&&(a=b.row,
b=b.column,B(),I("row",a)("column",b))},MPb=function(a){if(a&1){var b=t();K(0,"b-sortable-header",3);N("sortChanged",function(c){u(b);var d=P();d.grid&&d.grid.sortChange.emit(c);return v()});L()}a&2&&(a=P(),I("columnLabel",a.column.label)("columnName",a.column.name)("defaultSortDirection",a.column.defaultSortDirection||"ASC")("sort",a.grid==null?null:a.grid.sort)("matTooltip",a.column.tooltip||""))},NPb=function(a){a&1&&(K(0,"span",4),Q(1),L());a&2&&(a=P(2),B(),S("column-",a.column.name))},OPb=function(a){a&
1&&(K(0,"div",2),F(1,NPb,2,1,"span",4),Q(2),L());a&2&&(a=P(),If("aria-label",a.column.label),B(),G(a.column.label?-1:1),B(),S(" ",a.column.label," "))},PPb=function(a){if(a&1){var b=t();K(0,"div",13,3);N("menuOpened",function(){u(b);var d=P();return v(d.menuOpen=!0)})("menuClosed",function(){u(b);var d=P();return v(d.menuOpen=!1)})("keydown.enter",function(d){u(b);qg(1).openMenu();d.preventDefault();return v(d.stopPropagation())})("keydown.space",function(){u(b);var d=qg(1);return v(d.openMenu())});
L()}if(a&2){a=P();var c=qg(5);wg("columnpicker-button-active",a.menuOpen);If("aria-label",Eg("",a.column.fullLabel," column configuration"));I("matMenuTriggerFor",c)}},SPb=function(a,b){if(a&1){var c=t();K(0,"button",14);N("click",function(){var d=u(c).$implicit,e=P();return v(QPb(e,d.name))});M(1,"b-icon",15);K(2,"span",16);Q(3);L()()}a&2&&(a=b.$implicit,b=P(),wg("b-menu-item-checked",RPb(a.name).get(b.listViewPrefs)),B(3),S(" ",a.menuItem," "))},TPb=function(a){a&1&&M(0,"mat-divider")},UPb=function(a){if(a&
1){var b=t();K(0,"button",19);N("click",function(){u(b);var c=P().$implicit,d=P().before,e=P();return v(e.add(c,d))})("keydown.enter",function(c){u(b);var d=P().$implicit,e=P().before;P().add(d,e);c.preventDefault();return v(c.stopPropagation())});Q(1);L()}a&2&&(a=P().$implicit,I("matTooltip",a.tooltip),B(),S(" ",a.fullLabel," "))},WPb=function(a){a&1&&(K(0,"button",11)(1,"span"),Q(2),L()());if(a&2){a=P().$implicit;var b=P().before;P();var c=qg(19);I("matMenuTriggerFor",c)("matMenuTriggerData",Jg(3,
VPb,a.columns,b));B(2);yg(a.label)}},XPb=function(a,b){a&1&&F(0,UPb,2,2,"button",18)(1,WPb,3,6,"button",11);a&2&&(a=b.$implicit,b=P(2),G(b.isIssueGridColumn(a)?0:1))},ZPb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){var c=u(b).before,d=P();return v(YPb(d,c))});Q(1," Custom Field ");L();M(2,"mat-divider");Nf(3,XPb,2,1,null,null,Mf)}a&2&&(a=P(),B(3),Of(a.currentAvailableItems))},$Pb=function(a,b){if(a&1){var c=t();K(0,"button",21);N("click",function(){var d=u(c).$implicit,e=P().before,
f=P();return v(f.add(d,e))})("keydown.enter",function(d){var e=u(c).$implicit,f=P().before;P().add(e,f);d.preventDefault();return v(d.stopPropagation())});Q(1);L()}a&2&&(a=b.$implicit,B(),S(" ",a.fullLabel," "))},aQb=function(a,b){a&1&&Nf(0,$Pb,2,1,"button",20,Mf);a&2&&Of(b.columns)},RPb=function(a){switch(a){case "id-link":return{get:function(b){var c;return((c=b.modeForField)==null?void 0:c.id)==="link"},set:function(b,c){b.modeForField=b.modeForField||{};b.modeForField.id=c?"link":void 0}};case "id-copy":return{get:function(b){var c;
return((c=b.modeForField)==null?void 0:c.id)==="copy"},set:function(b,c){b.modeForField=b.modeForField||{};b.modeForField.id=c?"copy":void 0}};case "showHotlists":return{get:function(b){return b.showHotlists},set:function(b,c){b.showHotlists=c}};case "wrapTitles":return{get:function(b){return b.wrapTitles},set:function(b,c){b.wrapTitles=c}};case "wrapComponents":return{get:function(b){return b.wrapComponents},set:function(b,c){b.wrapComponents=c}};case "showStatusIcons":return{get:function(b){var c;
return((c=b.fieldStatus)==null?void 0:c.mode)==="icon"},set:function(b,c){var d;b.fieldStatus=(d=b.fieldStatus)!=null?d:{};b.fieldStatus.mode=c?"icon":void 0}};case "status-plain":return{get:function(b){var c;return((c=b.fieldStatus)==null?void 0:c.mode)==="plain"},set:function(b,c){var d;b.fieldStatus=(d=b.fieldStatus)!=null?d:{};b.fieldStatus.mode=c?"plain":void 0}};case "rtlComponentPath":return{get:function(b){return b.rtlComponentPath},set:function(b,c){b.rtlComponentPath=c}};default:throw Error("lg`"+
a);}},bQb=function(a){a&1&&(K(0,"p",5),Q(1),L());a&2&&(a=P(),B(),S(" * Status update must be less than ",a.CHAR_LIMIT," characters. "))},cQb=function(a){a&1&&(K(0,"p",6),Q(1),K(2,"a",12),Q(3," Learn more "),L()());a&2&&(a=P(),B(),S(" Your status update contains restricted words: ",Bs(a.bannedWordsChecker),". Review your status update before posting. "))},dQb=function(a){a&1&&(K(0,"div",8),M(1,"b-live-preview",13),L());a&2&&(a=P(),B(),I("comment",a.newStatusUpdate.updateText)("issueId",a.origStatusUpdate.issueId)("formattingMode",
a.newStatusUpdate.formattingMode)("audience",a.formattingAudience))},eQb=function(a,b){a&1&&(K(0,"button",8),M(1,"mat-icon",9),L(),K(2,"onedev-hovercard",null,0)(4,"div",10)(5,"div",11)(6,"span",12),Q(7),M(8,"br")(9,"br"),Q(10),L()()()());if(a&2){a=qg(3);var c=P();I("onedevHovercardTrigger",a)("onedevHovercardActive",!0)("onedevHovercardConfig",c.CATEGORY_INFO_HOVERCARD_CONFIG);B(7);S(" ",b.displayName," ");B(3);S(" ",b.description," ")}},fQb=function(a){if(a&1){var b=t();K(0,"button",13);N("click",
function(){u(b);var c=P();return v(c.copyContent())});M(1,"mat-icon",14);L()}},gQb=function(a){a&1&&M(0,"mat-icon",16)},hQb=function(a){a&1&&M(0,"mat-icon",17)},iQb=function(a){a&1&&M(0,"mat-icon",19)},jQb=function(a){a&1&&M(0,"mat-icon",20)},nQb=function(a,b){if(a&1){var c=t();K(0,"button",15);N("click",function(){u(c);var d=P();return v(kQb(d))});F(1,gQb,1,0,"mat-icon",16)(2,hQb,1,0,"mat-icon",17);L();K(3,"button",18);N("click",function(){u(c);var d=P();return v(lQb(d))});F(4,iQb,1,0,"mat-icon",
19)(5,jQb,1,0,"mat-icon",20);L()}a&2&&(a=P(),I("disabled",a.hasFeedbackBeenGiven(b)),B(),G(mQb(a.insightsActionsService,b,a.enrichment.category).hasThumbsUpped?1:2),B(2),I("disabled",a.hasFeedbackBeenGiven(b)),B(),G(mQb(a.insightsActionsService,b,a.enrichment.category).hasThumbsDowned?4:5))},oQb=function(a){a&1&&M(0,"b-actions-menu",7);a&2&&(P(),a=ag(10),I("menuItems",a))},pQb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.displayName," "))},qQb=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",
12,0);a&2&&(a=P(5),wg("truncated",a.shouldTruncate&&a.isTruncated),I("formattedComment",b))},sQb=function(a,b){if(a&1){var c=t();K(0,"b-formatted-comment-presenter",13,0);N("contentRendered",function(){u(c);var d=P(6);return v(rQb(d))});L()}a&2&&(a=P(6),wg("truncated",a.shouldTruncate&&a.isTruncated),I("formattedComment",b.formattedContent))},tQb=function(a){a&1&&M(0,"b-spinner")},uQb=function(a){a&1&&(F(0,sQb,2,3,"b-formatted-comment-presenter",8),T(1,"async"),Kf(2,tQb,1,0,"b-spinner"));if(a&2){var b;
a=P(2).$implicit;G((b=U(1,1,a.asyncContent))?0:2,b)}},vQb=function(a){a&1&&(K(0,"div"),Q(1,"No content was found for this enrichment."),L())},wQb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);var c=P(5);c.isTruncated=!c.isTruncated;c.maybeSetupOnScreenDetection();return v()});Q(1);L()}a&2&&(a=P(5),B(),S(" ",a.isTruncated?"Show more":"Show less"," "))},xQb=function(a){a&1&&(F(0,qQb,2,3,"b-formatted-comment-presenter",8)(1,uQb,3,3)(2,vQb,2,0,"div"),K(3,"div",9),F(4,wQb,2,
1,"button",10),M(5,"insights-actions",11),L());if(a&2){var b;a=P().$implicit;var c=P(3);G((b=a.general==null?null:a.general.formattedContent)?0:a.asyncContent?1:2,b);B(4);G(c.shouldTruncate?4:-1);B();I("enrichment",a)}},yQb=function(a,b){a&1&&(K(0,"expandable-tab",5),E(1,pQb,1,1,"ng-template",6)(2,xQb,6,3,"ng-template",7),L());a&2&&(a=b.$implicit,I("key",a.displayName)("ariaLabel",a.displayName))},DQb=function(a,b){if(a&1){var c=t();Zf(0);T(1,"async");K(2,"expandable-tabs",4);N("expandedTabsChanged",
function(e){u(c);var f=P(2);f.manualSelectedTab$.next([].concat(q(e)));rQb(f);zQb(f);return v()})("showAllClicked",function(){u(c);var e=P(),f=P();return v(AQb(f,e[0].issueId))});Nf(3,yQb,3,2,"expandable-tab",5,BQb);L()}if(a&2){a=P();var d=U(1,4,P().tabKeys$)||Hg(6,CQb);B(2);I("showMultiple",!1)("showIcons",!1)("tabKeys",d)("expandedTabs",b);B();Of(a)}},EQb=function(a){a&1&&(F(0,DQb,5,7,"expandable-tabs",3),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.expandedTab$))?0:-1,b)}},GQb=function(a){return function(b){b=
X(b,FQb,1);var c,d=b==null?void 0:(c=b.getData())==null?void 0:c.getWorkspacesMap(),e,f;return((f=b==null?void 0:(e=b.getContextsMap().get("b/"+a))==null?void 0:e.getTypedWorkspaceIdsList())!=null?f:[]).map(function(g){g=g.getWorkspaceId();var k=d==null?void 0:d.get(g),l;return{workspaceId:Ym(g),workspaceName:(l=k==null?void 0:k.getName())!=null?l:"",issueId:a}})}},HQb=function(a){a&1&&Vf(0)},JQb=function(a){a&1&&(Tf(0),E(1,HQb,1,0,"ng-container",8),Uf());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",
Ig(2,IQb,a.value)))},KQb=function(a){a&1&&Q(0);a&2&&(a=P(),yg(a.value!=null?a.value:"--"))},LQb=function(a){a&1&&(yd(),K(0,"svg",9),M(1,"path",10),L())},MQb=function(a){a&1&&M(0,"input",11);a&2&&(a=P(),I("required",a.required())("formControl",a.editingValue),If("aria-labelledby",a.labelledById))},NQb=function(a){return a!=null?Number(a):void 0},OQb=function(a){a&1&&M(0,"mat-icon",4);a&2&&(P(),a=qg(5),I("onedevHovercardTrigger",a))},PQb=function(a){if(a&1){var b=t();K(0,"onedev-numeric-field",10);
N("valueChange",function(d){u(b);var e=P(2);e.selectedNumericEstimate=d;d==null?e.effortChange.emit(void 0):e.effortChange.emit({estimate:String(d)});return v()});L()}if(a&2){a=P(2);var c=qg(2);I("value",a.selectedNumericEstimate)("valueTemplate",c)("disabled",a.disabled)("displayEditIcon",!a.disabled)}},QQb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.label," "))},RQb=function(a){a&1&&Q(0," -- ")},SQb=function(a,b){a&1&&F(0,QQb,1,1)(1,RQb,1,0);a&2&&G(b.$implicit?0:1)},UQb=function(a){if(a&
1){var b=t();K(0,"onedev-single-select",11);N("valueChange",function(e){u(b);var f=P(2);return v(f.selectOption(e))});L();E(1,SQb,2,1,"ng-template",null,2,Mg)}if(a&2){a=qg(2);var c=P(2),d;I("value",c.selectedOption)("options",(d=c.effortSpec.enumSpec==null?null:c.effortSpec.enumSpec.options)!=null?d:Hg(6,TQb))("includeEmptyOption",!0)("optionTemplate",a)("disabled",c.disabled)("displayArrowIcon",!c.disabled)}},VQb=function(a){a&1&&Q(0);a&2&&(a=P(2),S(" ",a.effort==null?null:a.effort.estimate," "))},
WQb=function(a){a&1&&(K(0,"onedev-edit-field")(1,"onedev-field-label",3),Q(2),F(3,OQb,1,1,"mat-icon",4),L(),K(4,"onedev-hovercard",null,1)(6,"div",5)(7,"div",6),Q(8," This estimate was made under a different configuration and needs to be updated. "),K(9,"a",7),Q(10,"Learn more"),L()()()(),K(11,"onedev-field-value",8),F(12,PQb,1,4,"onedev-numeric-field",9)(13,UQb,3,7)(14,VQb,1,1),L()());if(a&2){var b;a=P();B();I("thinking",a.thinking);B();S(" ",a.fieldName," ");B();G(a.isCompatibleValue?-1:3);B(8);
I("thinking",a.thinking);B();G((b=a.fieldType)==="NUMERIC"?12:b==="DROPDOWN"?13:14)}},XQb=function(a){a&1&&Q(0);a&2&&(a=P(2),S(" ",a.effort==null?null:a.effort.estimate," "))},YQb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a!=null?a:"--"," "))},ZQb=function(a,b){a&1&&F(0,XQb,1,1)(1,YQb,1,1);a&2&&(a=b.$implicit,b=P(),G(b.isNaN(a)?0:1))},$Qb=function(a){a&1&&Q(0," -- ")},aRb=function(a){a&1&&(K(0,"div",12),Q(1),L(),K(2,"div",13),Q(3),L());a&2&&(a=P(),B(),yg(a.staffingUserSummary),B(2),yg(a.staffingPlaceholderSummary))},
bRb=function(a){a&1&&M(0,"mat-icon",4)},cRb=function(a){a&1&&M(0,"mat-icon",11)},dRb=function(a){a&1&&M(0,"mat-icon",12)},eRb=function(a){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",22),L());a&2&&(a=P(2),B(),I("timestamp",a.sloStartTime))},fRb=function(a){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",22),K(2,"span"),Q(3," (default)"),L()());a&2&&(a=P(2),B(),I("timestamp",a.issueCreationTimestamp/1E3))},gRb=function(a){if(a&1){var b=t();K(0,"slo-edit-date-time-picker",23);N("closePicker",function(){u(b);
var c=P(2);return v(c.isSloStartEditTimePickerOpen=!1)})("sloEditCommit",function(c){u(b);var d=P(2);return v(d.updateSloStartTime(c))});L()}a&2&&(a=P(2),I("sloStatus",a.sloStatus)("sloEditTime",a.sloStartTime)("noneButtonEnabled",a.hasSloStartTime))},hRb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"a",18);Q(2," Start Date: ");L();K(3,"div",19)(4,"a",20,0);N("keydown.enter",function(){u(b);var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()})("keydown.space",function(){u(b);
var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()})("click",function(){u(b);var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()});F(6,eRb,2,1,"span")(7,fRb,4,1,"span");L();E(8,gRb,1,3,"ng-template",21);L()()}if(a&2){a=qg(5);var c=P();B(6);G(c.hasSloStartTime?6:7);B(2);I("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",c.isSloStartEditTimePickerOpen)}},iRb=function(a){a&1&&(K(0,"span"),Q(1," Set closure SLO "),L())},jRb=function(a){a&
1&&(K(0,"span"),M(1,"b-formatted-date-time",22),L());a&2&&(a=P(2),B(),I("timestamp",a.sloEndTime))},kRb=function(a){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",22),K(2,"span"),Q(3," (default)"),L()());a&2&&(a=P(2),B(),I("timestamp",a.closureSloTarget*1E3))},lRb=function(a){if(a&1){var b=t();K(0,"slo-edit-date-time-picker",23);N("closePicker",function(){u(b);var c=P(2);return v(c.isSloEndEditTimePickerOpen=!1)})("sloEditCommit",function(c){u(b);var d=P(2);return v(d.updateSloEndTime(c))});L()}a&
2&&(a=P(2),I("sloStatus",a.sloStatus)("sloEditTime",a.sloEndTime)("noneButtonEnabled",a.hasSloEndTime))},mRb=function(a){if(a&1){var b=t();K(0,"div",15)(1,"a",18);Q(2," End Date: ");L();K(3,"div",19)(4,"a",24,0);N("click",function(){u(b);var d=P();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;return v()})("keydown.enter",function(){u(b);var d=P();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;return v()})("keydown.space",function(){u(b);var d=P();d.isSloEndEditTimePickerOpen=
!d.isSloEndEditTimePickerOpen;return v()});F(6,iRb,2,0,"span");F(7,jRb,2,1,"span");F(8,kRb,4,1,"span");L();E(9,lRb,1,3,"ng-template",21);L()()}if(a&2){a=qg(5);var c=P();B(6);G(c.hasClosureSlo?-1:6);B();G(c.hasClosureSlo&&c.hasSloEndTime?7:-1);B();G(c.hasClosureSlo&&!c.hasSloEndTime?8:-1);B();I("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",c.isSloEndEditTimePickerOpen)}},nRb=function(a){a&1&&M(0,"b-user-membership-chip",28);a&2&&(a=P(2),I("user",a.escalationOwner)("email",a.userToDisplayString(a.escalationOwner))("enableSmallChip",
!0))},oRb=function(a){a&1&&Q(0," None ")},pRb=function(a){a&1&&(K(0,"div",16)(1,"span",25),Q(2," Owner: "),L(),K(3,"onedev-hovercard",null,1)(5,"div",26),Q(6," Escalation owner for SLO accounting and other purposes. "),K(7,"a",27),Q(8,"Learn more."),L()()(),K(9,"div",19),F(10,nRb,1,3,"b-user-membership-chip",28)(11,oRb,1,0),L()());if(a&2){a=qg(4);var b=P();B();I("onedevHovercardTrigger",a);B(9);G(b.escalationOwner?10:11)}},qRb=function(a,b){if(a&1){var c=t();K(0,"a",30);N("click",function(){u(c);
var d=P(2);return v(d.trackOpenSlo())});Q(1);L()}a&2&&(a=P(2),If("href",a.editSloLink,Ne),B(),S(" ",b.name," "))},rRb=function(a){a&1&&(K(0,"div",17),Q(1," SLO definition: "),F(2,qRb,2,2,"a",29),T(3,"async"),L());if(a&2){var b;a=P();B(2);G((b=U(3,1,a.slo$))?2:-1,b)}},sRb=function(a){if(a&1){var b=t();K(0,"div",17)(1,"a",31);N("click",function(){u(b);P();dr("component","open","fromIssueSloBox");return v()});Q(2,"Select an SLO");L()()}a&2&&(a=P(),B(),If("href",a.componentSloLink,Ne))},tRb=function(a){return a&&
a.teamId!=="0"?a.deleted?"DELETED":"VALID":"MISSING"},uRb=function(a){a&1&&Vf(0)},vRb=function(a){if(a&1){var b=t();K(0,"div",3);Q(1," Select a team from the suggestions below, or edit in ");K(2,"a",6);N("click",function(){u(b);var d=P();return v(d.trackClick("viewTeamAssociationOnComponent"))});Q(3,"component settings");L();Q(4,". ");K(5,"mat-radio-group",7);Cg("ngModelChange",function(d){u(b);var e=P();Bg(e.teamAction,d)||(e.teamAction=d);return v(d)});K(6,"p")(7,"mat-radio-button",8);Q(8," Don't make any changes ");
L()();K(9,"p")(10,"mat-radio-button",9);Q(11," Map component to selected team ");L()()();E(12,uRb,1,0,"ng-container",10);L()}if(a&2){a=P();var c=qg(5);B(2);I("href",a.componentSetting,Ne);B(3);Ag("ngModel",a.teamAction);B(7);I("ngTemplateOutlet",c)}},wRb=function(a){a&1&&Vf(0)},xRb=function(a){a&1&&(K(0,"div",3),Q(1," Assigned team no longer exists, select a different team from the suggestions below, or edit/opt out of team mapping in "),K(2,"a",11),Q(3,"component settings"),L(),Q(4,". "),E(5,wRb,
1,0,"ng-container",10),L());if(a&2){a=P();var b=qg(5);B(2);I("href",a.componentSetting,Ne);B(3);I("ngTemplateOutlet",b)}},yRb=function(a){a&1&&(K(0,"span",16),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.teamPath))},zRb=function(a){a&1&&Q(0," -- ")},ARb=function(a,b){a&1&&F(0,yRb,2,1,"span",16)(1,zRb,1,0);a&2&&G(b.$implicit?0:1)},BRb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"onedev-single-select",13);Cg("valueChange",function(d){u(b);var e=P(2);Bg(e.selectedTeam,d)||(e.selectedTeam=d);return v(d)});
N("valueChange",function(d){u(b);var e=P(2);return v(e.selectOption(d))});L();E(2,ARb,2,1,"ng-template",null,1,Mg);K(4,"a",14);N("click",function(){u(b);var d=P(2);return v(d.trackClick("viewTeamInMoma"))});M(5,"mat-icon",15);L()()}if(a&2){a=qg(3);var c=P(2);B();I("disabled",c.teamAction==="NONE");Ag("value",c.selectedTeam);I("options",c.teamOptions)("includeEmptyOption",!1)("optionTemplate",a);B(3);If("href",c.getMomaTeamLink(),Ne)}},CRb=function(a){a&1&&F(0,BRb,6,6,"div",12);a&2&&(a=P(),G(a.teamOptions.length>
0?0:-1))},DRb=function(a){if(a&1){var b=t();K(0,"b-callout-actions")(1,"b-button",1);N("click",function(){u(b);var c=P();return v(c.openDialog())});Q(2);L()()}a&2&&(a=P(),B(2),yg(a.buttonName))},ERb=function(a){a&1&&Vf(0)},FRb=function(a){a&1&&E(0,ERb,1,0,"ng-container",47);a&2&&(P(),a=qg(97),I("ngTemplateOutlet",a))},HRb=function(a,b){a&1&&(M(0,"b-list-field",48),T(1,"async"));a&2&&(a=P(3),I("readonly",!0)("defaultLineCount",3)("title","Team")("type",a.ListFieldType.TEAM)("values",Ig(8,GRb,b))("showInternalOnlyFieldBadge",
!U(1,6,a.issueIsOnInternalComponent$)))},IRb=function(a){a&1&&(F(0,HRb,2,10,"b-list-field",48),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.teamHovercardInputs$))?0:-1,b)}},KRb=function(a){if(a&1){var b=t();K(0,"div",49)(1,"b-team-warning",50);T(2,"async");T(3,"async");N("updateTeam",function(){u(b);var g=P(3);g.issueFullFridge.poke(g.issueId);return v()});L()()}if(a&2){var c;a=P();var d=P(),e=P();B();var f;I("warningType",a)("componentId",d.componentId||void 0)("parentComponentId",((c=U(2,4,e.component$))==
null?null:c.parentComponentId)||void 0)("teamSuggestions",(f=U(3,6,e.teamSuggestions$))!=null?f:Hg(8,JRb))}},LRb=function(a){a&1&&(F(0,KRb,4,9,"div",49),T(1,"async"));a&2&&(a=P(2),G(U(1,1,a.shouldDisplayTeamSuggestions$)?0:-1))},MRb=function(a){a&1&&Vf(0)},NRb=function(a){a&1&&E(0,MRb,1,0,"ng-container",47);a&2&&(P(),a=qg(99),I("ngTemplateOutlet",a))},ORb=function(a,b){if(a&1){var c=t();K(0,"div",51);M(1,"div",52);K(2,"span",53);T(3,"async");T(4,"async");N("click",function(){var d=u(c),e=P(3);return v(Xt(e,
d))})("keydown.enter",function(d){var e=u(c);Xt(P(3),e);d.stopPropagation();return v(d.preventDefault())})("keydown.space",function(d){var e=u(c);Xt(P(3),e);d.stopPropagation();return v(d.preventDefault())});Q(5);L()()}a&2&&(a=P(3),B(2),wg("disabled",!!U(3,6,a.isSaving$(a.IssueFieldName.STATUS))),I("matTooltip",b.description||""),If("aria-disabled",!!U(4,8,a.isSaving$(a.IssueFieldName.STATUS)))("aria-label",b.displayText||null),B(3),S(" ",b.displayText," "))},PRb=function(a){a&1&&(F(0,ORb,6,10,"div",
51),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.issueStatusQuickAction$))?0:-1,b)}},QRb=function(a){a&1&&(K(0,"div",24),M(1,"b-edit-field",54,15),T(3,"async"),K(4,"div",51),M(5,"div",52),K(6,"a",55),T(7,"async"),Q(8," Open triage "),L()()());a&2&&(a=P(2),B(),I("name","phase")("title","Triage phase")("type",a.FieldType.ENUM)("value",U(3,8,a.triagePhase$))("choices",a.phaseChoices)("showHotkeyHint",!1)("disabled",!0),B(5),I("href",U(7,10,a.triagePhaseUrl$),Ne))},RRb=function(a){a&1&&(M(0,"b-issue-card",
56,16),T(2,"async"));if(a&2){a=qg(1);var b=P(2);I("onedevIsHovercardReady",a.init)("issueId",U(2,2,b.canonicalIssueId$))}},TRb=function(a){if(a&1){var b=t();K(0,"b-estimated-effort-row",57);T(1,"async");T(2,"async");T(3,"async");N("effortChange",function(e){u(b);var f=P(2);return v(SRb(f.editIssueService,f.issueId,e))});L()}if(a&2){a=P(2);var c,d;I("effort",(c=U(1,3,a.effort$))!=null?c:void 0)("effortSpec",(d=U(2,5,a.effortSpec$))!=null?d:void 0)("disabled",!U(3,7,a.hasAclToEdit$))}},URb=function(a){a&
1&&(K(0,"div"),Q(1," Expanded access is turned on for this component. Assignees, verifiers and collaborators can edit issues in this component, and CC'd users can comment on them. "),K(2,"a",61),Q(3,"Learn more"),L()());a&2&&(a=P(3),B(2),I("href",ms(a.documentationLinks)+"#expanded-access",Ne))},VRb=function(a){a&1&&(K(0,"div",38)(1,"span",58),Q(2,"Expanded Access"),L(),K(3,"xap-bubble",59)(4,"xap-icon-trigger"),M(5,"mat-icon",60),L(),E(6,URb,4,1,"ng-template",null,17,Mg),L()());a&2&&(a=qg(7),B(3),
I("panelTemplate",a))},WRb=function(a){a&1&&(K(0,"span",65),T(1,"async"),Q(2),L());if(a&2){a=P();var b=P(3);wg("disabled",!!U(1,3,b.isSaving$(b.IssueFieldName.ASSIGNEE)));B(2);S(" ",a.displayText," ")}},XRb=function(a,b){if(a&1){var c=t();K(0,"div",63);T(1,"async");N("onHotkey",function(){var d=u(c),e=P(3);return v(Xt(e,d))})("click",function(){var d=u(c),e=P(3);return v(Xt(e,d))})("keydown.enter",function(d){var e=u(c);Xt(P(3),e);d.stopPropagation();return v(d.preventDefault())})("keydown.space",
function(d){var e=u(c);Xt(P(3),e);d.stopPropagation();return v(d.preventDefault())});M(2,"div",52);F(3,WRb,3,5,"span",64);T(4,"async");L()}a&2&&(a=P(3),I("hotkey",a.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",b.description),If("aria-disabled",!!U(1,5,a.isSaving$(a.IssueFieldName.ASSIGNEE)))("aria-label",b.description),B(3),G(U(4,7,a.hasAclToEdit$)?3:-1))},YRb=function(a){a&1&&(F(0,XRb,5,9,"div",62),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.issueAssigneeQuickAction$))?0:-1,b)}},ZRb=
function(a){a&1&&Vf(0)},$Rb=function(a){a&1&&E(0,ZRb,1,0,"ng-container",47);a&2&&(P(),a=qg(101),I("ngTemplateOutlet",a))},aSb=function(a){a&1&&M(0,"b-list-field",44);if(a&2){a=P();var b=P(2);I("readonly",!0)("defaultLineCount",3)("title","TaskFlow Workspaces")("type",b.ListFieldType.WORKSPACES)("values",a)("tooltip","Links to TaskFlow workspaces this issue belongs to")}},bSb=function(a,b){a&1&&(F(0,aSb,1,6,"b-list-field",44),T(1,"async"));a&2&&(a=P(2),G(U(1,1,a.shouldDisplayWtdmUi$)&&b.length?0:-1))},
cSb=function(a){a&1&&(M(0,"b-staffing-row",43),T(1,"async"),T(2,"async"));if(a&2){a=P(2);var b;I("staffing",(b=U(1,3,a.staffing$))!=null?b:void 0)("issueId",a.issueId)("isAllowedToEdit",U(2,5,a.hasAclToEdit$))}},dSb=function(a){a&1&&M(0,"b-list-field",44);if(a&2){a=P();var b=P();I("readonly",!0)("defaultLineCount",3)("title","Postmortems")("type",b.ListFieldType.POSTMORTEMS)("values",a.postmortems)("tooltip","Postmortems (auto-populated from a daily dump of Requiem)")}},fSb=function(a,b){a&1&&(K(0,
"div"),Vf(1,66),L());a&2&&(a=b.$implicit,P(),b=qg(113),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,eSb,a)))},gSb=function(a,b){a&1&&(K(0,"div"),Vf(1,66),L());a&2&&(a=b.$implicit,P(),b=qg(113),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,eSb,a)))},hSb=function(a){a&1&&Vf(0)},iSb=function(a){a&1&&E(0,hSb,1,0,"ng-container",47);a&2&&(P(),a=qg(111),I("ngTemplateOutlet",a))},jSb=function(a){a&1&&M(0,"hr",45)},kSb=function(a){a&1&&Vf(0)},lSb=function(a){a&1&&E(0,kSb,1,0,"ng-container",
47);a&2&&(P(2),a=qg(97),I("ngTemplateOutlet",a))},mSb=function(a){a&1&&Vf(0)},nSb=function(a){a&1&&E(0,mSb,1,0,"ng-container",47);a&2&&(P(2),a=qg(99),I("ngTemplateOutlet",a))},oSb=function(a){a&1&&Vf(0)},pSb=function(a){a&1&&E(0,oSb,1,0,"ng-container",47);a&2&&(P(2),a=qg(101),I("ngTemplateOutlet",a))},qSb=function(a,b){a&1&&(K(0,"div"),Vf(1,66),L());a&2&&(a=b.$implicit,P(2),b=qg(113),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,eSb,a)))},rSb=function(a){a&1&&Vf(0)},sSb=function(a){a&
1&&E(0,rSb,1,0,"ng-container",47);a&2&&(P(2),a=qg(111),I("ngTemplateOutlet",a))},tSb=function(a){a&1&&(K(0,"collapsible-panel",46),T(1,"async"),F(2,lSb,1,1,"ng-container"),T(3,"async"),F(4,nSb,1,1,"ng-container"),T(5,"async"),F(6,pSb,1,1,"ng-container"),T(7,"async"),Nf(8,qSb,2,4,"div",null,t()[15][8].trackCustomField,!0),T(10,"async"),F(11,sSb,1,1,"ng-container"),T(12,"async"),L());if(a&2){a=P(2);var b;I("titleWhenCollapsed",(b=U(1,6,a.showHiddenFieldsLabel$))!=null?b:"")("titleWhenExpanded","Hide additional fields");
B(2);G(a.showSloStatus&&!U(3,8,a.isSloStatusPrimary$)?2:-1);B(2);G(U(5,10,a.isSeverityPrimary$)?-1:4);B(2);G(a.showCodeChanges&&!U(7,12,a.isChangelistPrimary$)?6:-1);B(2);Of(U(10,14,a.hiddenCustomFields$));B(3);G(U(12,16,a.isForgottenFourPrimary$)?-1:11)}},uSb=function(a){if(a&1){var b=t();K(0,"b-issue-slo-box",68);T(1,"async");T(2,"async");T(3,"async");T(4,"async");T(5,"async");N("onSloStartTimeChange",function(g){u(b);var k=P(3);return v(k.editIssueService.updateSloStartTime(k.issueId,g.date))})("onSloEndTimeChange",
function(g){u(b);var k=P(3);return v(k.editIssueService.updateSloEndTime(k.issueId,g.date))});L()}if(a&2){a=P(2);var c=P(),d,e,f;I("sloStatus",(d=U(1,9,c.sloStatus$))!=null?d:void 0)("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloId",(e=U(2,11,c.sloId$))!=null?e:void 0)("componentId",a.componentId||void 0)("isEditable",!!U(3,13,c.hasAclToEdit$))("issueCreationTimestamp",(f=U(4,15,c.createdTimeMicros$))!=null?f:0)("showInternalOnlyFieldBadge",!U(5,17,c.issueIsOnInternalComponent$))("escalationOwner",
a.escalationOwner)}},vSb=function(a){a&1&&E(0,uSb,6,19,"ng-template",67);a&2&&(a=P(2),I("refreshable",a.refreshMonitor.getObservable()))},xSb=function(a){if(a&1){var b=t();K(0,"b-edit-field",69);T(1,"async");T(2,"async");N("valueChange",function(d){u(b);var e=P(2);return v(wSb(e.editIssueService,e.issueId,d!=null?d:""))});L()}if(a&2){a=P();var c=P();I("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",!U(1,8,c.hasAclToEdit$))("disabled",!!U(2,10,c.isSaving$(c.IssueFieldName.SEVERITY)))}},ASb=function(a){if(a&1){var b=t();K(0,"b-list-field",70);T(1,"async");T(2,"async");N("valuesChange",function(g){u(b);var k=P(2),l=[],r=[];g=m(g.values);for(var w=g.next();!w.done;w=g.next()){w=w.value;var x=Wq(w);x?l.push(x):r.push(w)}ySb(k.editIssueService,k.issueId,r);zSb(k.editIssueService,k.issueId,l);return v()});L();M(3,"b-list-field",44);T(4,"async");T(5,
"async");T(6,"async")}if(a&2){var c,d,e;a=P();var f=P();I("readonly",!U(1,15,f.hasAclToEdit$))("defaultLineCount",3)("title","Code Changes")("inputValidator",f.codeChangesValidator)("type",f.ListFieldType.CODE_CHANGES)("values",Mlb(a,f.sessionIsExternal))("listFieldDisabled",!!U(2,17,f.isSaving$(f.IssueFieldName.CHANGELISTS)));B(3);wg("bv2-issue-metadata-error",(c=U(4,19,f.pendingCodeChanges$))==null?null:c.hasError);I("readonly",!0)("defaultLineCount",3)("title","Pending Code Changes")("type",f.ListFieldType.CODE_CHANGES)("values",
((d=U(5,21,f.pendingCodeChanges$))==null?null:d.changes)||Hg(25,JRb))("tooltip",((e=U(6,23,f.pendingCodeChanges$))==null?0:e.hasError)?"Error fetching pending changelists":"Pending code changes (auto-populated)")}},CSb=function(a){if(a&1){var b=t();K(0,"b-edit-field",71);T(1,"csv");T(2,"async");T(3,"async");N("valueChange",function(d){u(b);var e=P(2);return v(BSb(e.editIssueService,e.issueId,d!=null?d:""))});L()}if(a&2){a=P();var c=P();I("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",U(1,8,a.foundInVersion))("readonly",!U(2,10,c.hasAclToEdit$))("disabled",!!U(3,12,c.isSaving$(c.IssueFieldName.FOUND_IN_VERSION)))}},ESb=function(a){if(a&1){var b=t();K(0,"b-edit-field",72);T(1,"csv");T(2,"async");T(3,"async");N("valueChange",function(d){u(b);var e=P(2);return v(DSb(e.editIssueService,e.issueId,d!=null?d:""))});L()}if(a&2){a=P();var c=P();I("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",U(1,8,a.targetedToVersion))("readonly",!U(2,10,c.hasAclToEdit$))("disabled",!!U(3,12,c.isSaving$(c.IssueFieldName.TARGETED_TO_VERSION)))}},GSb=function(a){if(a&1){var b=t();K(0,"b-edit-field",71);T(1,"csv");T(2,"async");T(3,"async");N("valueChange",function(d){u(b);var e=P(2);return v(FSb(e.editIssueService,e.issueId,d!=null?d:""))});
L()}if(a&2){a=P();var c=P();I("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",U(1,8,a.verifiedInVersion))("readonly",!U(2,10,c.hasAclToEdit$))("disabled",!!U(3,12,c.isSaving$(c.IssueFieldName.VERIFIED_IN_VERSION)))}},ISb=function(a){if(a&1){var b=t();K(0,"b-edit-field",73);T(1,"async");T(2,"async");N("valueChange",function(d){u(b);var e=P(2);
return v(HSb(e.editIssueService,e.issueId,d!=null?d:!1))});L()}if(a&2){a=P();var c=P();I("name","inProd")("title","In Prod")("type",c.FieldType.BOOL)("value",a.inProd)("tooltip","Set if this issue occurs in production")("readonly",!U(1,7,c.hasAclToEdit$))("disabled",!!U(2,9,c.isSaving$(c.IssueFieldName.IN_PROD)))}},JSb=function(a){a&1&&Vf(0)},KSb=function(a){a&1&&Vf(0)},LSb=function(a){a&1&&Vf(0)},MSb=function(a){a&1&&Vf(0)},NSb=function(a){a&1&&(K(0,"div",20),E(1,JSb,1,0,"ng-container",47)(2,KSb,
1,0,"ng-container",47)(3,LSb,1,0,"ng-container",47)(4,MSb,1,0,"ng-container",47),L());if(a&2){P();a=qg(103);var b=qg(105),c=qg(107),d=qg(109);B();I("ngTemplateOutlet",a);B();I("ngTemplateOutlet",b);B();I("ngTemplateOutlet",c);B();I("ngTemplateOutlet",d)}},PSb=function(a,b){if(a&1){var c=t();K(0,"b-custom-field-editor",74);T(1,"async");T(2,"async");lma();N("save",function(e){var f=u(c).$implicit,g=P(2);return v(g.editIssueService.updateCustomField(g.issueId,f.customFieldId,e))});L()}if(a&2){a=b.$implicit;
b=P();var d=P();I("issue",b);pma(a);I("readonly",!U(1,4,d.hasAclToEdit$))("disabled",!!U(2,6,d.isSaving$(Ig(8,OSb,a.customFieldId))))}},aTb=function(a,b){if(a&1){var c=t();F(0,FRb,1,1,"ng-container");T(1,"async");F(2,IRb,2,3);F(3,LRb,2,3);T(4,"async");K(5,"b-single-user-control",18);T(6,"async");N("valueChange",function(x){u(c);var C=P();return v(QSb(C,x))})("emailChange",function(x){u(c);var C=P();return v(RSb(C.editIssueService,C.issueId,x))});L();K(7,"b-edit-field",19,0);T(9,"async");T(10,"async");
N("valueChange",function(x){u(c);var C=qg(8),H=P();return v(SSb(H,C,x!=null?x:""))});L();K(11,"div",20)(12,"b-edit-field",21,1);T(14,"async");T(15,"async");N("onHotkey",function(){u(c);var x=qg(13);return v(Zr(x,null,!0,!1))})("valueChange",function(x){u(c);var C=P();return v(TSb(C.editIssueService,C.issueId,x!=null?x:""))});L();F(16,NRb,1,1,"ng-container");T(17,"async");L();K(18,"div",22)(19,"b-edit-field",23,2);T(21,"async");T(22,"async");T(23,"async");T(24,"async");N("onHotkey",function(){u(c);
var x=qg(20);return v(Zr(x,null,!0,!1))})("valueChange",function(x){u(c);var C=P();return v(C.onStatusChanged(x!=null?x:""))});L();F(25,PRb,2,3);T(26,"async");L();F(27,QRb,9,12,"div",24);T(28,"async");K(29,"onedev-hovercard",null,3);E(31,RRb,3,4,"b-issue-card",25);L();F(32,TRb,4,9,"b-estimated-effort-row",26);T(33,"async");T(34,"async");K(35,"div",27)(36,"div",28)(37,"div",29)(38,"label");Q(39,"Access");L()();K(40,"div",30)(41,"span",31);Q(42);T(43,"async");L();K(44,"div",32);T(45,"async");T(46,"async");
N("click",function(){u(c);var x=P();return v(x.toggleAccessLimits())})("keydown.enter",function(x){u(c);var C=P();return v(C.toggleAccessLimitsWithKeystroke(x))})("keydown.space",function(x){u(c);var C=P();return v(C.toggleAccessLimitsWithKeystroke(x))});K(47,"span");Q(48);T(49,"async");L()()()();K(50,"onedev-hovercard",null,4)(52,"div",33)(53,"div",34)(54,"span",35);Q(55," Issue access level can only be set by Issue admins and it enables issue-level access control. ");K(56,"a",36);Q(57,"Learn more");
L()()()()()();K(58,"div",37);T(59,"async");F(60,VRb,8,1,"div",38);T(61,"async");K(62,"b-single-user-control",39,5);T(64,"async");N("onHotkey",function(){u(c);var x=qg(63);return v(x.openEditor())})("valueChange",function(x){u(c);var C=P();return v(USb(C,x))})("emailChange",function(x){u(c);var C=P();return v(VSb(C.editIssueService,C.issueId,x))});L();F(65,YRb,2,3);T(66,"async");K(67,"b-single-user-control",40);T(68,"async");N("valueChange",function(x){u(c);var C=P();return v(WSb(C,x))})("emailChange",
function(x){u(c);var C=P();return v(XSb(C.editIssueService,C.issueId,x))});L();Tf(69);K(70,"b-multi-user-control",41);T(71,"async");T(72,"async");T(73,"async");N("userInclusionToggle",function(){u(c);var x=P();return v(x.toggleCollaborators())})("valueChange",function(x){u(c);var C=P();return v(YSb(C,x))})("toggleAccessLimits",function(){u(c);var x=P();return v(x.toggleAccessLimits())});L();K(74,"b-multi-user-control",42);T(75,"async");T(76,"async");T(77,"async");N("userInclusionToggle",function(){u(c);
var x=P();return v(ZSb(x))})("valueChange",function(x){u(c);var C=P();return v($Sb(C,x))});L();Uf();L();F(78,$Rb,1,1,"ng-container");T(79,"async");F(80,bSb,2,3);T(81,"async");F(82,cSb,3,7,"b-staffing-row",43);F(83,dSb,1,6,"b-list-field",44);Nf(84,fSb,2,4,"div",null,t()[15][8].trackCustomField,!0);T(86,"async");Nf(87,gSb,2,4,"div",null,t()[15][8].trackCustomField,!0);T(89,"async");F(90,iSb,1,1,"ng-container");T(91,"async");F(92,jSb,1,0,"hr",45);T(93,"async");F(94,tSb,13,18,"collapsible-panel",46);
T(95,"async");E(96,vSb,1,1,"ng-template",null,6,Mg)(98,xSb,3,12,"ng-template",null,7,Mg)(100,ASb,7,26,"ng-template",null,8,Mg)(102,CSb,4,14,"ng-template",null,9,Mg)(104,ESb,4,14,"ng-template",null,10,Mg)(106,GSb,4,14,"ng-template",null,11,Mg)(108,ISb,3,11,"ng-template",null,12,Mg)(110,NSb,5,4,"ng-template",null,13,Mg)(112,PSb,3,10,"ng-template",null,14,Mg)}if(a&2){var d,e;a=qg(30);var f=qg(51),g=P();G(g.showSloStatus&&U(1,97,g.isSloStatusPrimary$)?0:-1);B(2);G(g.sessionIsInternal?2:-1);B();G((d=U(4,
99,g.teamWarningType$))?3:-1,d);B(2);var k;I("name","reporter")("title","Reporter")("value",b.reporter)("user",(k=b.reporterUser)!=null?k:void 0)("isSaving",U(6,101,g.isSaving$(g.IssueFieldName.REPORTER)));B(2);I("name","type")("title","Type")("type",g.FieldType.ENUM)("value",b.type)("choices",g.typeChoices)("readonly",!U(9,103,g.hasAclToEdit$))("disabled",!!U(10,105,g.isSaving$(g.IssueFieldName.TYPE)));B(5);I("name","priority")("title","Priority")("type",g.FieldType.ENUM)("tooltip","Set priority, which reflects how soon the issue should be fixed")("value",
b.priority)("choices",g.priorityChoices)("hotkey",g.HOTKEYS.OPEN_ISSUE_PRIORITY_MENU)("readonly",!U(14,107,g.hasAclToEdit$))("disabled",!!U(15,109,g.isSaving$(g.IssueFieldName.PRIORITY)))("showHotkeyHint",!0);B(4);G(U(17,111,g.isSeverityPrimary$)?16:-1);B(3);var l;I("name","status")("title","Status")("type",g.FieldType.ENUM)("value",b.status)("choices",(l=U(21,113,g.statusChoices$))!=null?l:Hg(173,JRb))("showHotkeyHint",!0)("hotkey",g.HOTKEYS.OPEN_ISSUE_STATUS_MENU)("readonly",!U(22,115,g.hasAclToEdit$))("disabled",
!!U(23,117,g.isSaving$(g.IssueFieldName.STATUS)))("onedevHovercardActive",!!U(24,119,g.canonicalIssueId$))("onedevHovercardTrigger",a);B(6);G(U(26,121,g.hasAclToEdit$)?25:-1);B(2);G(U(28,123,g.showTriagePhaseRow$)?27:-1);B(5);G(U(33,125,g.isEffortEnabled$)&&U(34,127,g.shouldDisplayEffort$)?32:-1);B(4);I("onedevHovercardTrigger",f)("onedevHovercardActive",!0)("onedevHovercardConfig",g.ACCESS_LIMITS_HOVERCARD_CONFIG);B(6);yg(g.getAccessLimitLevelDisplay(U(43,129,g.accessLimitLevel$)));B(2);I("matTooltip",
U(45,131,g.hasAclToAdmin$)?"Manage issue level access limits(Press Alt + Right arrow for more information)":"View issue level access limits(Press Alt + Right arrow for more information)");If("aria-label",U(46,133,g.hasAclToAdmin$)?"Edit":"View");B(4);S(" ",U(49,135,g.hasAclToAdmin$)?"Edit":"View"," ");B(8);I("href",g.documentationLinks.getIssueAccessLimit(),Ne);B(2);wg("implicit-access-box",U(59,137,g.isImplicitAccessEnabled$));B(2);G(U(61,139,g.isImplicitAccessEnabled$)?60:-1);B(2);var r;I("name",
"assignee")("title","Assignee")("hotkey",g.HOTKEYS.CHANGE_ASSIGNEE)("value",b.assignee)("user",(r=b.assigneeUser)!=null?r:void 0)("isSaving",U(64,141,g.isSaving$(g.IssueFieldName.ASSIGNEE)));B(3);G(g.defaultAssigneeQuickActionEnabled&&U(66,143,g.hasAclToEdit$)?65:-1);B(2);var w;I("name","verifier")("title","Verifier")("value",b.verifier)("user",(w=b.verifierUser)!=null?w:void 0)("isSaving",U(68,145,g.isSaving$(g.IssueFieldName.VERIFIER)));B(3);I("title","Collaborators")("values",b.collaborators)("users",
b.collaboratorsUsers)("includeSelfActionDescription","Add me")("includeSelfActionLongDescription","Add yourself to collaborators")("removeSelfActionDescription","Remove me")("removeSelfActionLongDescription","Remove yourself from collaborators")("collectionHovercardDescription","Collaborators are people directly working on this issue.")("isSaving",U(71,147,g.isSaving$(g.IssueFieldName.COLLABORATORS)))("isCurrentUserInCollection",U(72,149,g.isCurrentUserCollaborator$))("isAllowedToEditCollection",
U(73,151,g.hasAclToEdit$))("iconName","groups_24px")("inputValidator",g.collaboratorUserPrincipalValidator)("checkAccessLimits",!0);B(4);I("title","CC")("values",b.cc)("users",b.ccUsers)("includeSelfActionDescription","CC me")("includeSelfActionLongDescription","Add yourself to CC")("removeSelfActionDescription","Un-CC me")("removeSelfActionLongDescription","Remove yourself from CC")("collectionHovercardDescription","CC are users who want to receive updates.")("isSaving",U(75,153,g.isSaving$(g.IssueFieldName.CCS)))("isCurrentUserInCollection",
U(76,155,g.isCurrentUserCCd$))("isAllowedToEditCollection",U(77,157,g.isAllowedToEditCC$))("inputValidator",g.emailsValidator)("iconName","add_alert_24px");B(4);G(g.showCodeChanges&&U(79,159,g.isChangelistPrimary$)?78:-1);B(2);G((e=U(81,161,g.workspaces$))?80:-1,e);B(2);G(g.sessionIsInternal?82:-1);B();G(!g.sessionIsExternal&&(b.postmortems==null?0:b.postmortems.length)?83:-1);B();Of(U(86,163,g.visibleGlobalCustomFields$));B(3);Of(U(89,165,g.visibleCustomFields$));B(3);G(U(91,167,g.isForgottenFourPrimary$)?
90:-1);B(2);G(U(93,169,g.hasHiddenFields$)?92:-1);B(2);G(U(95,171,g.hasHiddenFields$)?94:-1)}},bTb=function(a,b){if(a&1){var c=t();K(0,"a",18);N("click",function(){u(c);P().analytics.trackEvent("issueSidebar","navigate","issueDetailsPage");return v()});K(1,"span",19);Q(2,"Navigate to issue ");L();Q(3);L();K(4,"button",20);N("click",function(){var d=u(c),e=P();return v(e.copyIssueId(d))});M(5,"mat-icon",21);L()}a&2&&(I("href",Eg("/issues/",b),Ne),B(3),S(" ",b," "))},cTb=function(a,b){if(a&1){var c=
t();K(0,"b-app-vote-button",22);N("onVote",function(d){u(c);var e=P();return v(e.upvoted(d))});L()}a&2&&I("issueId",b.issueId)("upvoted",!(b.userData==null||!b.userData.voted))("voteCount",(b.aggregatedData==null?null:b.aggregatedData.voteCount)||0)},eTb=function(a){if(a&1){var b=t();K(0,"span");Q(1);L();K(2,"button",24);N("click",function(){u(b);var c=P(2);return v(dTb(c))});M(3,"mat-icon",25);L()}a&2&&(a=P(),If("title",a.snapshot[0].title),B(),S(" ",a.snapshot[0].title," "))},gTb=function(a){if(a&
1){var b=t();K(0,"button",31);N("click",function(){u(b);var c=P(3);return v(fTb(c))});Q(1,"Cancel");L()}},hTb=function(a){a&1&&Q(0," Update title ")},iTb=function(a){a&1&&Vf(0)},jTb=function(a){a&1&&E(0,iTb,1,0,"ng-container",32);a&2&&(P(3),a=qg(23),I("ngTemplateOutlet",a))},kTb=function(a){if(a&1){var b=t();K(0,"mat-form-field",26)(1,"textarea",27);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.draftTitle,c)||(d.draftTitle=c);return v(c)});L()();K(2,"div",28);F(3,gTb,2,0,"button",29);K(4,"button",
30);N("click",function(){u(b);var c=P(2);return v(c.saveTitle())});F(5,hTb,1,0)(6,jTb,1,1,"ng-container");L()()}a&2&&(a=P(2),B(),I("cdkTextareaAutosize",!0)("cdkAutosizeMinRows",1),Ag("ngModel",a.draftTitle),I("bFocus",!0),B(2),G(a.isSavingTitle?-1:3),B(),I("disabled",a.isSavingTitle),B(),G(a.isSavingTitle?6:5))},lTb=function(a){a&1&&(K(0,"div",15)(1,"div",23),F(2,eTb,4,2),F(3,kTb,7,7),L()());a&2&&(a=P(),B(2),G(a.editTitleMode?-1:2),B(),G(a.editTitleMode?3:-1))},mTb=function(a){a&1&&(K(0,"span"),
Q(1," No update yet "),L())},nTb=function(a){if(a&1){var b=t();K(0,"button",49);N("click",function(){u(b);var c=P(2);return v(c.editStatusUpdate())});M(1,"mat-icon",25);L()}},oTb=function(a){a&1&&M(0,"mat-icon",46)},pTb=function(a){a&1&&M(0,"mat-icon",47)},qTb=function(a){if(a&1){var b=t();K(0,"button",50);N("click",function(){u(b);var c=P(2);return v(c.isStatusUpdateExpanded=!c.isStatusUpdateExpanded)});F(1,oTb,1,0,"mat-icon",46);F(2,pTb,1,0,"mat-icon",47);L()}a&2&&(a=P(2),If("aria-expanded",a.isStatusUpdateExpanded),
B(),G(a.isStatusUpdateExpanded?-1:1),B(),G(a.isStatusUpdateExpanded?2:-1))},rTb=function(a,b){a&1&&(M(0,"b-note-container",52),T(1,"async"));if(a&2){a=P();var c=P(),d=P(2);I("issueId",b)("note",c)("issueAccessLevel",U(1,4,d.accessLevel$))("formattingMode",a.formattingMode)}},sTb=function(a){a&1&&(K(0,"div",51),F(1,rTb,2,6,"b-note-container",52),T(2,"async"),L());if(a&2){var b;a=P();var c=P(2);B();G((b=a.unlinkifiedComment!==""&&U(2,1,c.issueId$))?1:-1,b)}},tTb=function(a){a&1&&(F(0,sTb,3,3,"div",
51),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.statusUpdate$))?0:-1,b)}},uTb=function(a){a&1&&(K(0,"span"),Q(1," No description yet "),L())},wTb=function(a){if(a&1){var b=t();K(0,"button",56);N("click",function(){u(b);var c=P(3);return v(vTb(c))});M(1,"mat-icon",25);L()}},xTb=function(a){a&1&&M(0,"mat-icon",46)},yTb=function(a){a&1&&M(0,"mat-icon",47)},zTb=function(a){if(a&1){var b=t();K(0,"button",57);N("click",function(){u(b);var c=P(3);return v(c.isDescriptionExpanded=!c.isDescriptionExpanded)});
F(1,xTb,1,0,"mat-icon",46);F(2,yTb,1,0,"mat-icon",47);L()}a&2&&(a=P(3),If("aria-expanded",a.isDescriptionExpanded),B(),G(a.isDescriptionExpanded?-1:1),B(),G(a.isDescriptionExpanded?2:-1))},ATb=function(a,b){a&1&&(M(0,"b-note-container",52),T(1,"async"));if(a&2){a=P();var c=P(2),d=P(2),e;I("issueId",b)("note",a)("issueAccessLevel",U(1,4,d.accessLevel$))("formattingMode",(e=c[0].formattingMode)!=null?e:d.FormattingMode.PLAIN)}},BTb=function(a){if(a&1){var b=t();K(0,"div",59)(1,"a",60);N("click",function(){u(b);
var c=P(5);c.analytics.trackEvent("issueSidebar","showMoreDescription");c.showFullDescription=!0;return v()});Q(2," Show more ");L()()}},CTb=function(a){a&1&&(K(0,"div",58),F(1,ATb,2,6,"b-note-container",52),T(2,"async"),T(3,"async"),L(),F(4,BTb,3,0,"div",59));if(a&2){var b;a=P(4);wg("full-height",a.showFullDescription);B();G((b=U(2,4,a.hasDescription$)&&U(3,6,a.issueId$))?1:-1,b);B(3);G(!a.showFullDescription&&a.descriptionHasMore?4:-1)}},DTb=function(a){a&1&&(K(0,"div",55,3),F(2,CTb,5,8),T(3,"async"),
T(4,"async"),L());if(a&2){var b;a=P(3);B(2);G((b=U(3,1,a.hasDescription$)&&U(4,3,a.firstNote$))?2:-1,b)}},ETb=function(a){a&1&&(K(0,"div",41)(1,"div",35)(2,"div",36)(3,"span"),Q(4,"DESCRIPTION"),L()(),K(5,"div",38),F(6,uTb,2,0,"span"),T(7,"async"),F(8,wTb,2,0,"button",53),T(9,"async"),T(10,"async"),F(11,zTb,3,3,"button",54),T(12,"async"),L()(),F(13,DTb,5,5,"div",55),L());a&2&&(a=P(2),B(6),G(U(7,4,a.hasDescription$)?-1:6),B(2),G(!a.isDescriptionExpanded&&U(9,6,a.hasDescription$)||!U(10,8,a.userCanEditDescription$)?
-1:8),B(3),G(U(12,10,a.hasDescription$)?11:-1),B(2),G(a.isDescriptionExpanded?13:-1))},FTb=function(a){a&1&&Vf(0)},GTb=function(a){a&1&&E(0,FTb,1,0,"ng-container",32);a&2&&(P(2),a=qg(23),I("ngTemplateOutlet",a))},HTb=function(a){a&1&&Q(0," 1 suggestion available ")},ITb=function(a){a&1&&Q(0," 2 suggestions available ")},JTb=function(a){a&1&&(K(0,"div",62),M(1,"b-recommendation",63),L());a&2&&(P(2),a=ag(26),B(),I("recommendation",a))},KTb=function(a){a&1&&(K(0,"div",62),M(1,"b-recommendation",63),
L());a&2&&(P(2),a=ag(23),B(),I("recommendation",a))},LTb=function(a){a&1&&(K(0,"div",42)(1,"div",35)(2,"div",36),M(3,"mat-icon",61),K(4,"span"),Q(5," AI SUGGESTIONS "),L()(),K(6,"div",38),F(7,HTb,1,0)(8,ITb,1,0),L()(),F(9,JTb,2,1,"div",62),F(10,KTb,2,1,"div",62),L());if(a&2){P();a=ag(25);var b=ag(26);B(7);G(a&&b?8:7);B(2);G(b?9:-1);B();G(a?10:-1)}},MTb=function(a){a&1&&M(0,"mat-icon",46)},NTb=function(a){a&1&&M(0,"mat-icon",47)},OTb=function(a){a&1&&(K(0,"div",48),M(1,"edit-issue-metadata",64),L());
a&2&&(a=P(),B(),I("issueId",a.issueId))},PTb=function(a){if(a&1){var b=t();K(0,"div",17);M(1,"b-insights-enrichments",33,2);T(3,"async");K(4,"div",34)(5,"div",35)(6,"div",36);M(7,"mat-icon",37);K(8,"span");Q(9," STATUS UPDATE ");L()();K(10,"div",38);F(11,mTb,2,0,"span");T(12,"async");F(13,nTb,2,0,"button",39);T(14,"async");T(15,"async");F(16,qTb,3,3,"button",40);T(17,"async");L()();F(18,tTb,2,3);T(19,"async");L();F(20,ETb,14,12,"div",41);T(21,"async");Kf(22,GTb,1,1,"ng-container");Zf(23);T(24,"async");
Zf(25)(26);T(27,"async");F(28,LTb,11,3,"div",42);K(29,"div",43)(30,"div",35)(31,"div",36);M(32,"mat-icon",44);K(33,"span");Q(34,"FIELDS");L()();K(35,"button",45);N("click",function(){u(b);var f=P();return v(f.isFieldsExpanded=!f.isFieldsExpanded)});F(36,MTb,1,0,"mat-icon",46);F(37,NTb,1,0,"mat-icon",47);L()();F(38,OTb,2,1,"div",48);L()()}if(a&2){var c,d,e=qg(2);a=P();B();wg("hidden",!U(3,13,e.shouldShowInsights$));I("initiallyCollapsed",!0);B(10);G(U(12,15,a.hasStatusUpdate$)?-1:11);B(2);G(!a.isStatusUpdateExpanded&&
U(14,17,a.hasStatusUpdate$)||!U(15,19,a.userCanEditStatusUpdate$)?-1:13);B(3);G(U(17,21,a.hasStatusUpdate$)?16:-1);B(2);G((c=a.isStatusUpdateExpanded&&U(19,23,a.statusUpdateNote$))?18:-1,c);B(2);G((d=U(21,25,a.events$))?20:22,d);B(3);c=$f(U(24,27,a.playbookRecommendation$));B(2);c=$f(a.isPlaybookEnabled&&!!c);B();d=$f(U(27,31,a.dedupeRecommendation$));B(2);G(c||d?28:-1);B(7);If("aria-expanded",a.isFieldsExpanded);B();G(a.isFieldsExpanded?-1:36);B();G(a.isFieldsExpanded?37:-1);B();G(a.isFieldsExpanded?
38:-1)}},QTb=function(a){a&1&&Vf(0)},RTb=function(a){a&1&&E(0,QTb,1,0,"ng-container",32);a&2&&(P(),a=qg(23),I("ngTemplateOutlet",a))},STb=function(a){a&1&&(K(0,"div",65),M(1,"b-spinner"),L())},TTb=function(a){a&1&&(Q(0," This issue has not been modified since "),M(1,"b-formatted-date-time",1),Q(2," and is scheduled for deletion on "),K(3,"strong"),M(4,"b-formatted-date-time",1),L(),Q(5,". "));a&2&&(a=P(2),B(),I("mode","date")("timestamp",a.modifiedTime)("paddingLeftPx",0),B(3),I("mode","date")("timestamp",
a.retentionExpireTime)("paddingLeftPx",0))},UTb=function(a){a&1&&Q(0," This issue is retained indefinitely. ")},VTb=function(a){a&1&&(F(0,TTb,6,6)(1,UTb,1,0),K(2,"a",0),Q(3,"Learn more"),L());a&2&&(a=P(),G(a.retentionState.retentionPeriod?0:1),B(2),I("href",a.documentationLink,Ne))},WTb=function(a){a&1&&(K(0,"b-base-chip",0)(1,"div",1),M(2,"retention-text",2),L(),K(3,"div",3),M(4,"retention-help-text",4),L()());a&2&&(a=P(),I("compactMode",a.compactMode)("labelClass",a.dangerZone?"danger":"expiring")("labelOnlyMode",
a.labelOnlyMode),B(2),I("retentionState",a.retentionState)("compactMode",a.compactMode),B(2),I("retentionState",a.retentionState)("modifiedTime",a.modifiedTime))},XTb=function(a){var b=b===void 0?new Date:b;var c=a.retentionPeriod;return b.getTime()>=$n(a.scheduledDeletionTime)-Math.max(12096E5,.2*(c?c.seconds*1E3+(c.nanos||0)/1E6:0))},$Tb=function(a){if(a&1){var b=t();K(0,"issue-sidebar",10);N("closeSidebar",function(){u(b);var d=P(2);return v(d.isIssueSidebarOpen=!1)})("navigateToNextIssue",function(){u(b);
var d=P(2);return v(YTb(d))})("navigateToPreviousIssue",function(){u(b);var d=P(2);return v(ZTb(d))});L()}if(a&2){var c;a=P(2);I("issueId",(c=a.getFocusedIssue())==null?null:c.issueId)}},aUb=function(a){a&1&&Vf(0)},bUb=function(a){if(a&1){var b=t();K(0,"mat-sidenav-container",6,2)(2,"mat-sidenav",7);N("openedChange",function(d){u(b);P().anayltics.trackEvent("issueSidebar",d?"open":"close");return v()});F(3,$Tb,1,1,"issue-sidebar",8);L();K(4,"mat-sidenav-content");E(5,aUb,1,0,"ng-container",9);L()()}if(a&
2){a=P();var c=qg(4);wg("sidebar-enabled",a.isIssueSidebarEnabled);B(2);I("opened",a.isIssueSidebarOpen)("disableClose",!0);B();G(a.isIssueSidebarOpen?3:-1);B(2);I("ngTemplateOutlet",c)}},cUb=function(a){a&1&&Vf(0)},dUb=function(a){a&1&&E(0,cUb,1,0,"ng-container",9);a&2&&(P(),a=qg(4),I("ngTemplateOutlet",a))},eUb=function(a,b){a&1&&M(0,"th",32);a&2&&If("data-stable-column-name",b.column.name)},fUb=function(a,b){a&1&&M(0,"th",33);a&2&&If("data-stable-column-name",b.column.name)},jUb=function(a){if(a&
1){var b=t();K(0,"mat-pseudo-checkbox",36);N("click",function(c){u(b);var d=P(3);c.stopPropagation();return v(gUb(d))})("keydown.enter",function(c){u(b);var d=P(3);c.stopPropagation();return v(gUb(d))})("keydown.space",function(c){u(b);var d=P(3);c.stopPropagation();return v(gUb(d))});L()}a&2&&(a=P(3),I("state",hUb(a)),If("aria-checked",iUb(a)))},kUb=function(a,b){a&1&&(K(0,"th",34),F(1,jUb,1,2,"mat-pseudo-checkbox",35),L());a&2&&(a=b.column,b=P(2),If("data-stable-column-name",a.name),B(),G(b.isIssueGridColumn(a)?
1:-1))},lUb=function(a,b){a&1&&M(0,"th");a&2&&If("data-stable-column-name",b.column.name)},mUb=function(a){a&1&&M(0,"pop-grid-default-th",37);a&2&&(a=P().column,I("column",a))},nUb=function(a,b){a&1&&(K(0,"th"),F(1,mUb,1,1,"pop-grid-default-th",37),L());a&2&&(a=b.column,b=P(2),If("data-stable-column-name",a.name),B(),G(b.isIssueGridColumn(a)?1:-1))},oUb=function(a){if(a&1){var b=t();K(0,"b-column-picker",39);N("selectedColumnsChange",function(d){u(b);var e=P(4);e.columns=d;e.columnsChange.emit(d);
e.cdr.detectChanges();return v()});L()}if(a&2){a=P(2).column;var c=P(2);I("column",a)("availableColumns",c.availableColumns)("selectedColumns",c.columns)}},pUb=function(a){a&1&&M(0,"pop-grid-default-th",37);a&2&&(a=P(2).column,I("column",a))},qUb=function(a){a&1&&F(0,oUb,1,3,"b-column-picker",38)(1,pUb,1,1,"pop-grid-default-th",37);a&2&&(a=P(3),G(a.enableColumnSaving?0:1))},rUb=function(a,b){a&1&&(K(0,"th"),F(1,qUb,2,1),L());a&2&&(a=b.column,b=P(2),If("data-stable-column-name",a.name),B(),G(b.isIssueGridColumn(a)?
1:-1))},sUb=function(a){a&1&&M(0,"td",32)},tUb=function(a){a&1&&M(0,"td",40)},uUb=function(a){if(a&1){var b=t();K(0,"mat-pseudo-checkbox",42);N("click",function(c){u(b);var d=P(),e=d.row;d=d.index;var f=P(2);c.stopPropagation();if(c.shiftKey&&(c=e.selected,f.lastCheckedIndex!==null&&f.searchResults)){if(d<f.lastCheckedIndex){var g=d+1;var k=f.lastCheckedIndex+1}else g=f.lastCheckedIndex,k=d;g=m(f.searchResults.issues.slice(g,k));for(k=g.next();!k.done;k=g.next())k.value.selected=!c;Yt(f)}e.selected=
!e.selected;f.lastCheckedIndex=d;Yt(f);return v()});L()}a&2&&(a=P().row,I("state",a.selected?"checked":"unchecked"),If("aria-label","Select issue "+a.issueId)("aria-checked",a.selected))},vUb=function(a){a&1&&(K(0,"td",34),F(1,uUb,1,3,"mat-pseudo-checkbox",41),L());a&2&&(P(2),B(),G(1))},wUb=function(a){if(a&1){var b=t();K(0,"b-star-toggle",45);N("starClicked",function(){u(b);var d=P().row,e=P(2);return v(e.toggleStar(d))});L()}if(a&2){a=P().row;var c=P(2);I("starred",a.starred)("disabled",c.starInProgress[a.issueId])("starMessage",
"Star this issue")("unStarMessage","Un-star this issue")}},xUb=function(a){a&1&&(K(0,"td",43),F(1,wUb,1,4,"b-star-toggle",44),L());a&2&&(P(2),B(),G(1))},yUb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().row,If("title",a.position),B(),S(" ",a.position," "))},zUb=function(a){a&1&&(K(0,"td"),F(1,yUb,2,2,"span"),L());a&2&&(P(2),B(),G(1))},AUb=function(a){if(a&1){var b=t();K(0,"b-issue-id-picker",49);N("click",function(c){u(b);return v(c.stopPropagation())});L()}a&2&&(a=P(2).row,I("issueId",a.issueId)("showCopyOptions",
!1),If("title",a.title))},BUb=function(a){a&1&&(K(0,"a",48),Q(1),L());a&2&&(a=P(2).row,P(2),I("href",ss(a.issueId),Ne),If("title",a.title),B(),S(" ",a.issueId," "))},CUb=function(a){a&1&&F(0,AUb,1,3,"b-issue-id-picker",47)(1,BUb,2,3,"a",48);a&2&&(a=P(3),G((a.listViewPrefs==null?null:a.listViewPrefs.modeForField==null?null:a.listViewPrefs.modeForField.id)==="copy"?0:1))},DUb=function(a){a&1&&(K(0,"td",46),F(1,CUb,2,1),L());a&2&&(P(2),B(),G(1))},EUb=function(a){a&1&&M(0,"archived-issue-indicator")},
FUb=function(a){a&1&&M(0,"mat-icon",58)},GUb=function(a,b){a&1&&M(0,"b-hotlist-chip-smart",61);a&2&&I("id",b.$implicit)("removable",!1)},HUb=function(a){a&1&&(K(0,"div",59),Nf(1,GUb,1,2,"b-hotlist-chip-smart",61,Mf),L());a&2&&(a=P(2).row,B(),Of(a.hotlistId))},JUb=function(a,b){if(a&1){var c=t();K(0,"recommendation-chip",64);N("onClick",function(){u(c);var e=P(7);IUb(e);return v()});L()}if(a&2){a=P(5).index;var d=P(2);I("recommendation",b)("isParentRowActive",d.hoveredRowIndex===a||d.focusedRowIndex===
a&&d.isIssueSidebarOpen)}},LUb=function(a){a&1&&(F(0,JUb,1,2,"recommendation-chip",63),T(1,"async"));if(a&2){var b;a=P(4).row;var c=P(2);G((b=U(1,1,KUb(c,a)))?0:-1,b)}},MUb=function(a){a&1&&(F(0,LUb,2,3),T(1,"async"));a&2&&(a=P(5),G(U(1,1,a.hasPlaybook$)?0:-1))},NUb=function(a){if(a&1){var b=t();K(0,"b-sidebar-toggle",65);N("onClick",function(){u(b);var d=P(5);return v(IUb(d))});L()}if(a&2){a=P(3).index;var c=P(2);I("isParentRowActive",c.hoveredRowIndex===a||c.focusedRowIndex===a&&c.isIssueSidebarOpen)}},
OUb=function(a){a&1&&(K(0,"div",60),F(1,MUb,2,3),F(2,NUb,1,1,"b-sidebar-toggle",62),L());a&2&&(a=P(4),B(),G(a.isPlaybookEnabled?1:-1),B(),G(a.isIssueSidebarEnabled&&a.isSidebarIlpIconEnabled?2:-1))},PUb=function(a){a&1&&(K(0,"div",52),F(1,EUb,1,0,"archived-issue-indicator"),M(2,"b-issue-visibility-chip",53)(3,"b-tracker-chip-smart",54)(4,"b-retention-chip",55),K(5,"div",56)(6,"a",57),Q(7),F(8,FUb,1,0,"mat-icon",58),L()(),F(9,HUb,3,0,"div",59),F(10,OUb,3,2,"div",60),L());if(a&2){a=P().row;var b=P(2);
wg("bv2-grid-cell-flex-wrap",b.listViewPrefs&&b.listViewPrefs.wrapTitles)("no-padding",b.isIssueSidebarEnabled&&b.isSidebarIlpIconEnabled)("align-items-center",b.isIssueSidebarEnabled&&b.isSidebarIlpIconEnabled);B();G(a.archived?1:-1);B();I("issueId",a.issueId)("compactMode",!0);B();I("trackerId",a.trackerId)("compactMode",!0);B();I("retentionState",a.retentionState)("showOnlyInDangerZone",!0)("compactMode",!0)("modifiedTime",a.modifiedTime);B(2);I("href",ss(a.issueId),Ne);If("title",a.title);B();
S(" ",a.title," ");B();G(b.isIssueSidebarEnabled&&!b.isSidebarIlpIconEnabled?8:-1);B();G(b.listViewPrefs&&b.listViewPrefs.showHotlists?9:-1);B();G(b.isPlaybookEnabled||b.isIssueSidebarEnabled&&b.isSidebarIlpIconEnabled?10:-1)}},QUb=function(a){a&1&&(K(0,"td",50),F(1,PUb,11,21,"div",51),L());a&2&&(a=P(2),wg("bv2-grid-cell-variable-height",a.listViewPrefs&&a.listViewPrefs.wrapTitles)("bv2-grid-cell-recommendation",a.isPlaybookEnabled),B(),G(1))},RUb=function(a){a&1&&(K(0,"div",68),Q(1),L());a&2&&(a=
P().row,P(2),wg("low",Number(a.priority)>=2)("high",Number(a.priority)<2)("p0",Number(a.priority)===0),B(),S(" P",a.priority," "))},SUb=function(a){a&1&&(K(0,"td",66),F(1,RUb,2,7,"div",67),L());a&2&&(P(2),B(),G(1))},TUb=function(a){a&1&&(K(0,"div",68),Q(1),L());a&2&&(a=P().row,P(2),wg("low",Number(a.severity)>=2)("high",Number(a.severity)<2)("p0",Number(a.severity)===0),B(),S(" S",a.severity," "))},UUb=function(a){a&1&&(K(0,"td",69),F(1,TUb,2,7,"div",67),L());a&2&&(P(2),B(),G(1))},VUb=function(a){a&
1&&M(0,"mat-icon",72);if(a&2){a=P();var b=P(4),c;I("svgIcon",(c=b.ISSUE_STATUS_JS_ICON_NAME.get(a))!=null?c:"")}},WUb=function(a){a&1&&Q(0);if(a&2){a=P();var b=P(4),c;S(" ",(c=b.STATUS_JS_TERSE.get(a))!=null?c:""," ")}},XUb=function(a){a&1&&(K(0,"span"),Q(1),L());if(a&2){a=P();var b=P(4);xg(Eg("chippy status-",a," margin-left-auto"));B();var c;S(" ",(c=b.STATUS_JS_TERSE.get(a))!=null?c:""," ")}},YUb=function(a,b){a&1&&(K(0,"span",71),F(1,VUb,1,1,"mat-icon",72)(2,WUb,1,1)(3,XUb,2,4,"span",73),L());
if(a&2){var c;a=P(4);var d,e,f;I("title",((d=a.STATUS_JS_FULL_TEXT.get(b))!=null?d:"")===((e=a.STATUS_JS_TERSE.get(b))!=null?e:"")?"":(f=a.STATUS_JS_FULL_TEXT.get(b))!=null?f:"");B();G((c=a.listViewPrefs==null?null:a.listViewPrefs.fieldStatus==null?null:a.listViewPrefs.fieldStatus.mode)==="icon"?1:c==="plain"?2:3)}},ZUb=function(a){a&1&&F(0,YUb,4,2,"span",71);if(a&2){var b;a=P().row;G((b=a.status)?0:-1,b)}},$Ub=function(a){a&1&&(K(0,"td",70),F(1,ZUb,1,1),L());a&2&&(P(2),B(),G(1))},aVb=function(a){a&
1&&(Q(0),T(1,"enumToHuman"));a&2&&(a=P().row,S(" ",U(1,1,a.type)," "))},bVb=function(a){a&1&&(K(0,"td",74),F(1,aVb,2,3),L());a&2&&(P(2),B(),G(1))},cVb=function(a){a&1&&(K(0,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),Q(2),L());a&2&&(a=P(2).row,I("email",U(1,2,a.reporter)),B(2),S(" ",a.reporter," "))},dVb=function(a){a&1&&(K(0,"span"),Q(1,"--"),L())},eVb=function(a){a&1&&(F(0,cVb,3,4,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),F(2,dVb,2,0,"span"));a&2&&(a=P().row,G(U(1,2,a.reporter)?
0:-1),B(2),G(a.reporter?-1:2))},fVb=function(a){a&1&&(K(0,"td",75),F(1,eVb,3,4),L());a&2&&(P(2),B(),G(1))},gVb=function(a){a&1&&(K(0,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),Q(2),L());a&2&&(a=P(2).row,I("email",U(1,2,a.assignee)),B(2),S(" ",a.assignee," "))},hVb=function(a){a&1&&(K(0,"span"),Q(1,"--"),L())},iVb=function(a){a&1&&(F(0,gVb,3,4,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),F(2,hVb,2,0,"span"));a&2&&(a=P().row,G(U(1,2,a.assignee)?0:-1),B(2),G(a.assignee?-1:2))},jVb=function(a){a&
1&&(K(0,"td",75),F(1,iVb,3,4),L());a&2&&(P(2),B(),G(1))},kVb=function(a){a&1&&(K(0,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),Q(2),L());a&2&&(a=P(2).row,I("email",U(1,2,a.verifier)),B(2),S(" ",a.verifier," "))},lVb=function(a){a&1&&(K(0,"span"),Q(1,"--"),L())},mVb=function(a){a&1&&(F(0,kVb,3,4,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),F(2,lVb,2,0,"span"));a&2&&(a=P().row,G(U(1,2,a.verifier)?0:-1),B(2),G(a.verifier?-1:2))},nVb=function(a){a&1&&(K(0,"td",75),F(1,mVb,3,4),L());a&2&&
(P(2),B(),G(1))},oVb=function(a){a&1&&(K(0,"span"),T(1,"arrayToHuman"),Q(2),T(3,"arrayToHuman"),L());a&2&&(a=P().row,If("title",U(1,2,a.cc)),B(2),S(" ",U(3,4,a.cc)," "))},pVb=function(a){a&1&&(K(0,"td",75),F(1,oVb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},qVb=function(a){a&1&&(K(0,"span"),T(1,"arrayToHuman"),Q(2),T(3,"arrayToHuman"),L());a&2&&(a=P().row,If("title",U(1,2,a.changelist)),B(2),S(" ",U(3,4,a.changelist)," "))},rVb=function(a){a&1&&(K(0,"td",75),F(1,qVb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},
sVb=function(a){a&1&&(K(0,"span"),T(1,"arrayToHuman"),Q(2),T(3,"arrayToHuman"),L());a&2&&(a=P().row,If("title",U(1,2,a.postmortem)),B(2),S(" ",U(3,4,a.postmortem)," "))},tVb=function(a){a&1&&(K(0,"td",75),F(1,sVb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},uVb=function(a){a&1&&Vf(0)},vVb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},xVb=function(a,b){a&1&&(E(0,uVb,1,0,"ng-container",77),F(1,vVb,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;P(4);var d=qg(6);I("ngTemplateOutlet",d)("ngTemplateOutletContext",
Ig(3,wVb,a));B();G(c!==b-1?1:-1)}},yVb=function(a){a&1&&Nf(0,xVb,2,5,null,null,Mf);a&2&&(a=P().row,Of(a.blockingIssueId))},zVb=function(a){a&1&&(K(0,"td",75),F(1,yVb,2,0),L());a&2&&(P(2),B(),G(1))},AVb=function(a){a&1&&Vf(0)},BVb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},CVb=function(a,b){a&1&&(E(0,AVb,1,0,"ng-container",77),F(1,BVb,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;P(4);var d=qg(6);I("ngTemplateOutlet",d)("ngTemplateOutletContext",Ig(3,wVb,a));B();G(c!==b-1?1:-1)}},
DVb=function(a){a&1&&Nf(0,CVb,2,5,null,null,Mf);a&2&&(a=P().row,Of(a.blockedByIssueId))},EVb=function(a){a&1&&(K(0,"td",75),F(1,DVb,2,0),L());a&2&&(P(2),B(),G(1))},FVb=function(a){a&1&&Vf(0)},GVb=function(a){a&1&&E(0,FVb,1,0,"ng-container",77);if(a&2){a=P(2).row;P(2);var b=qg(6);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,wVb,a.duplicateOfIssueId))}},HVb=function(a){a&1&&F(0,GVb,1,4,"ng-container");a&2&&(a=P().row,G(a.duplicateOfIssueId?0:-1))},IVb=function(a){a&1&&(K(0,"td",75),F(1,HVb,
1,1),L());a&2&&(P(2),B(),G(1))},JVb=function(a){a&1&&M(0,"b-formatted-date-time",79);a&2&&(a=P().row,I("timestamp",a.createdTime))},KVb=function(a){a&1&&(K(0,"td",78),F(1,JVb,1,1,"b-formatted-date-time",79),L());a&2&&(P(2),B(),G(1))},LVb=function(a){a&1&&M(0,"b-formatted-date-time",79);a&2&&(a=P().row,I("timestamp",a.modifiedTime))},MVb=function(a){a&1&&(K(0,"td",78),F(1,LVb,1,1,"b-formatted-date-time",79),L());a&2&&(P(2),B(),G(1))},NVb=function(a){a&1&&M(0,"b-formatted-date-time",79);a&2&&(a=P().row,
I("timestamp",a.resolvedTime))},OVb=function(a){a&1&&(K(0,"td",78),F(1,NVb,1,1,"b-formatted-date-time",79),L());a&2&&(P(2),B(),G(1))},PVb=function(a){a&1&&M(0,"b-formatted-date-time",79);a&2&&(a=P().row,I("timestamp",a.verifiedTime))},QVb=function(a){a&1&&(K(0,"td",78),F(1,PVb,1,1,"b-formatted-date-time",79),L());a&2&&(P(2),B(),G(1))},RVb=function(a){a&1&&(K(0,"span"),T(1,"arrayToHuman"),Q(2),T(3,"arrayToHuman"),L());a&2&&(a=P().row,If("title",U(1,2,a.foundInVersion)),B(2),S(" ",U(3,4,a.foundInVersion),
" "))},SVb=function(a){a&1&&(K(0,"td",75),F(1,RVb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},TVb=function(a){a&1&&(K(0,"span"),T(1,"arrayToHuman"),Q(2),T(3,"arrayToHuman"),L());a&2&&(a=P().row,If("title",U(1,2,a.targetedToVersion)),B(2),S(" ",U(3,4,a.targetedToVersion)," "))},UVb=function(a){a&1&&(K(0,"td",75),F(1,TVb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},VVb=function(a){a&1&&(K(0,"span"),T(1,"arrayToHuman"),Q(2),T(3,"arrayToHuman"),L());a&2&&(a=P().row,If("title",U(1,2,a.verifiedInVersion)),B(2),S(" ",
U(3,4,a.verifiedInVersion)," "))},WVb=function(a){a&1&&(K(0,"td",75),F(1,VVb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},XVb=function(a){a&1&&(Q(0),T(1,"yesNo"));a&2&&(a=P().row,S(" ",U(1,1,a.inProd)," "))},YVb=function(a){a&1&&(K(0,"td",75),F(1,XVb,2,3),L());a&2&&(P(2),B(),G(1))},ZVb=function(a){a&1&&(Q(0),T(1,"yesNo"));a&2&&(a=P().row,S(" ",U(1,1,a.archived)," "))},$Vb=function(a){a&1&&(K(0,"td",75),F(1,ZVb,2,3),L());a&2&&(P(2),B(),G(1))},aWb=function(a){a&1&&(K(0,"div",52)(1,"div",56)(2,"span"),Q(3),
L()()());if(a&2){a=P().row;var b=P(2);B(2);If("title",b.getComponentPath(a.componentPath));B();yg(b.getComponentPath(a.componentPath))}},bWb=function(a){a&1&&(K(0,"td",80),F(1,aWb,4,2,"div",52),L());if(a&2){var b=P(2);a=wg("bv2-grid-cell-variable-height",b.listViewPrefs&&b.listViewPrefs.wrapComponents);var c;b=!((c=b.listViewPrefs)==null||!c.rtlComponentPath);a("rtl-component-path",b);B();G(1)}},cWb=function(a){a&1&&(K(0,"slo-status-card",82),M(1,"b-aggregated-slo-status-indicator",83),L());a&2&&
(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime),B(),I("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime))},dWb=function(a){a&1&&F(0,cWb,2,5,"slo-status-card",82);a&2&&(a=P().row,G(a.sloStatus?0:-1))},eWb=function(a){a&1&&(K(0,"td",81),F(1,dWb,1,1),L());a&2&&(P(2),B(),G(1))},fWb=function(a){a&1&&(K(0,"slo-status-card",84),M(1,"b-slo-time-indicator",85),L());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric",
"RESPONSE"),B(),I("sloBounds",a.sloStatus.responseBounds))},gWb=function(a){a&1&&F(0,fWb,2,5,"slo-status-card",84);a&2&&(a=P().row,G(a.sloStatus?0:-1))},hWb=function(a){a&1&&(K(0,"td",81),F(1,gWb,1,1),L());a&2&&(P(2),B(),G(1))},iWb=function(a){a&1&&(K(0,"slo-status-card",84),M(1,"b-slo-time-indicator",85),L());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","ASSIGNMENT"),B(),I("sloBounds",a.sloStatus.assignmentBounds))},jWb=function(a){a&
1&&F(0,iWb,2,5,"slo-status-card",84);a&2&&(a=P().row,G(a.sloStatus?0:-1))},kWb=function(a){a&1&&(K(0,"td",81),F(1,jWb,1,1),L());a&2&&(P(2),B(),G(1))},lWb=function(a){a&1&&(K(0,"slo-status-card",84),M(1,"b-slo-time-indicator",85),L());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","CLOSURE"),B(),I("sloBounds",a.sloStatus.closureBounds))},mWb=function(a){a&1&&F(0,lWb,2,5,"slo-status-card",84);a&2&&(a=P().row,G(a.sloStatus?0:-1))},nWb=function(a){a&
1&&(K(0,"td",81),F(1,mWb,1,1),L());a&2&&(P(2),B(),G(1))},oWb=function(a,b){a&1&&M(0,"b-formatted-date-time",86);a&2&&(P(4),I("timestamp",b.seconds*1E3))},pWb=function(a){a&1&&F(0,oWb,1,1,"b-formatted-date-time",86);if(a&2){var b;a=P().row;G((b=a.retentionState==null?null:a.retentionState.scheduledDeletionTime)?0:-1,b)}},qWb=function(a){a&1&&(K(0,"td",75),F(1,pWb,1,1),L());a&2&&(P(2),B(),G(1))},rWb=function(a){a&1&&M(0,"div",87)},sWb=function(a){a&1&&(K(0,"div"),M(1,"b-team-display",88),L());a&2&&
(a=P(2).row,B(),I("teamId",a.teamId.toString())("componentId",a.componentId)("anchorLinkEnabled",!1))},tWb=function(a){a&1&&F(0,rWb,1,0,"div",87)(1,sWb,2,3,"div");a&2&&(a=P(3),G(a.isLoadingTeams?0:1))},uWb=function(a){a&1&&(K(0,"td",75),F(1,tWb,2,1),L());a&2&&(P(2),B(),G(1))},vWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.effort==null?null:a.effort.estimate," "))},wWb=function(a){a&1&&(K(0,"td",75),F(1,vWb,1,1),L());a&2&&(P(2),B(),G(1))},xWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",(a.effort==
null?null:a.effort.totalOpen)||""," "))},yWb=function(a){a&1&&(K(0,"td",75),F(1,xWb,1,1),L());a&2&&(P(2),B(),G(1))},zWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",(a.effort==null?null:a.effort.totalComplete)||""," "))},AWb=function(a){a&1&&(K(0,"td",75),F(1,zWb,1,1),L());a&2&&(P(2),B(),G(1))},BWb=function(a){a&1&&Q(0);if(a&2){a=P().row;var b=P(2);S(" ",b.GET_ISSUE_ACCESS_LEVEL_TITLE(a.issueAccessLevel)," ")}},CWb=function(a){a&1&&(K(0,"td",81),F(1,BWb,1,1),L());a&2&&(P(2),B(),G(1))},DWb=function(a){a&
1&&Q(0);a&2&&(a=P().row,S(" ",a.descendantCount," "))},EWb=function(a){a&1&&(K(0,"td",75),F(1,DWb,1,1),L());a&2&&(P(2),B(),G(1))},FWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.openDescendantCount," "))},GWb=function(a){a&1&&(K(0,"td",75),F(1,FWb,1,1),L());a&2&&(P(2),B(),G(1))},HWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.oneDayViewCount," "))},IWb=function(a){a&1&&(K(0,"td",75),F(1,HWb,1,1),L());a&2&&(a=P(2),B(),G(a.enableAddViewCountColumnsOnIlp?1:-1))},JWb=function(a){a&1&&Q(0);a&2&&(a=
P().row,S(" ",a.sevenDayViewCount," "))},KWb=function(a){a&1&&(K(0,"td",75),F(1,JWb,1,1),L());a&2&&(P(2),B(),G(1))},LWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.thirtyDayViewCount," "))},MWb=function(a){a&1&&(K(0,"td",75),F(1,LWb,1,1),L());a&2&&(P(2),B(),G(1))},NWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.voteCount&&a.voteCount>0?a.voteCount:""," "))},OWb=function(a){a&1&&(K(0,"td",75),F(1,NWb,1,1),L());a&2&&(P(2),B(),G(1))},PWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.position," "))},
QWb=function(a){a&1&&(K(0,"td",75),F(1,PWb,1,1),L());a&2&&(P(2),B(),G(1))},RWb=function(a){a&1&&(K(0,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),Q(2),L());a&2&&(a=P(2).row,I("email",U(1,2,a.escalationOwner)),B(2),S(" ",a.escalationOwner," "))},SWb=function(a){a&1&&(K(0,"span"),Q(1,"--"),L())},TWb=function(a){a&1&&(F(0,RWb,3,4,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),F(2,SWb,2,0,"span"));a&2&&(a=P().row,G(U(1,2,a.escalationOwner)?0:-1),B(2),G(a.escalationOwner?-1:2))},UWb=function(a){a&
1&&(K(0,"td",75),F(1,TWb,3,4),L());a&2&&(P(2),B(),G(1))},WWb=function(a){if(a&1){var b=t();K(0,"pop-grid",11);N("columnsChange",function(c){u(b);var d=P();d.columns=c;d.columnsChange.emit(c);d.cdr.detectChanges();return v()})("focusedRowIndexChange",function(c){u(b);var d=P();d.focusedRowIndex=c;return v(d.focusedRowIndexChange.emit(d.focusedRowIndex))})("hoveredRowIndex",function(c){u(b);P().hoveredRowIndex=c;return v()})("sortChange",function(c){u(b);var d=P();return v(d.sortChange.emit(c))})("rowClick",
function(c){u(b);var d=P(),e=c.event.target,f,g=(f=e==null?void 0:e.closest(".title-cell"))!=null?f:!1,k;f=(k=e==null?void 0:e.closest(".issue-id-cell"))!=null?k:!1;var l;e=(l=e==null?void 0:e.closest(".recommendation-chip"))!=null?l:!1;g&&!e||f||bq(c.event)||!d.isIssueSidebarEnabled?d.rowClick.emit(c):IUb(d);return v()});E(1,eUb,1,1,"th",12)(2,fUb,1,1,"th",13)(3,kUb,2,2,"th",14)(4,lUb,1,1,"th",15)(5,nUb,2,2,"th",15)(6,rUb,2,2,"th",16)(7,sUb,1,0,"td",17)(8,tUb,1,0,"td",18)(9,vUb,2,1,"td",19)(10,xUb,
2,1,"td",20)(11,zUb,2,1,"td",21)(12,DUb,2,1,"td",22)(13,QUb,2,5,"td",23)(14,SUb,2,1,"td",24)(15,UUb,2,1,"td",25)(16,$Ub,2,1,"td",26)(17,bVb,2,1,"td",27)(18,fVb,2,1,"td",28)(19,jVb,2,1,"td",28)(20,nVb,2,1,"td",28)(21,pVb,2,1,"td",28)(22,rVb,2,1,"td",28)(23,tVb,2,1,"td",28)(24,zVb,2,1,"td",28)(25,EVb,2,1,"td",28)(26,IVb,2,1,"td",28)(27,KVb,2,1,"td",29)(28,MVb,2,1,"td",29)(29,OVb,2,1,"td",29)(30,QVb,2,1,"td",29)(31,SVb,2,1,"td",28)(32,UVb,2,1,"td",28)(33,WVb,2,1,"td",28)(34,YVb,2,1,"td",28)(35,$Vb,2,
1,"td",28)(36,bWb,2,5,"td",30)(37,eWb,2,1,"td",31)(38,hWb,2,1,"td",31)(39,kWb,2,1,"td",31)(40,nWb,2,1,"td",31)(41,qWb,2,1,"td",28)(42,uWb,2,1,"td",28)(43,wWb,2,1,"td",28)(44,yWb,2,1,"td",28)(45,AWb,2,1,"td",28)(46,CWb,2,1,"td",31)(47,EWb,2,1,"td",28)(48,GWb,2,1,"td",28)(49,IWb,2,1,"td",28)(50,KWb,2,1,"td",28)(51,MWb,2,1,"td",28)(52,OWb,2,1,"td",28)(53,QWb,2,1,"td",28)(54,UWb,2,1,"td",28);L()}a&2&&(a=P(),wg("sidebar-open",a.isIssueSidebarOpen),I("list",(a.searchResults==null?null:a.searchResults.issues)||
Hg(61,VWb))("columns",a.columns)("focusedRowIndex",a.focusedRowIndex)("scrollContainer",".bv2-view")("sort",a.sort)("rowLabelRenderer",a.issueDescription),B(),I("forHeaderCell","focused"),B(),I("forHeaderCell","draghandle"),B(),I("forHeaderCell","selected"),B(),I("forHeaderCell","starred"),B(),I("forHeaderCell","position"),B(2),I("forViewCell","focused"),B(),I("forViewCell","draghandle"),B(),I("forViewCell","selected"),B(),I("forViewCell","starred"),B(),I("forViewCell","position"),B(),I("forViewCell",
"issueId"),B(),I("forViewCell","title"),B(),I("forViewCell","priority"),B(),I("forViewCell","severity"),B(),I("forViewCell","status"),B(),I("forViewCell","type"),B(),I("forViewCell","reporter"),B(),I("forViewCell","assignee"),B(),I("forViewCell","verifier"),B(),I("forViewCell","cc"),B(),I("forViewCell","changelist"),B(),I("forViewCell","postmortem"),B(),I("forViewCell","blockingIssueId"),B(),I("forViewCell","blockedByIssueId"),B(),I("forViewCell","duplicateOfIssueId"),B(),I("forViewCell","createdTime"),
B(),I("forViewCell","modifiedTime"),B(),I("forViewCell","resolvedTime"),B(),I("forViewCell","verifiedTime"),B(),I("forViewCell","foundInVersion"),B(),I("forViewCell","targetedToVersion"),B(),I("forViewCell","verifiedInVersion"),B(),I("forViewCell","inProd"),B(),I("forViewCell","archived"),B(),I("forViewCell","componentPath"),B(),I("forViewCell","minSlo"),B(),I("forViewCell","responseSlo"),B(),I("forViewCell","assignmentSlo"),B(),I("forViewCell","closureSlo"),B(),I("forViewCell","deletionTime"),B(),
I("forViewCell","team"),B(),I("forViewCell","estimate"),B(),I("forViewCell","estimateTotalOpen"),B(),I("forViewCell","estimateTotalComplete"),B(),I("forViewCell","accessLevel"),B(),I("forViewCell","descendantCount"),B(),I("forViewCell","openDescendantCount"),B(),I("forViewCell","oneDayViewCount"),B(),I("forViewCell","sevenDayViewCount"),B(),I("forViewCell","thirtyDayViewCount"),B(),I("forViewCell","voteCount"),B(),I("forViewCell","position"),B(),I("forViewCell","escalationOwner"))},XWb=function(a){a&
1&&M(0,"b-issue-card",91,4);if(a&2){a=qg(1);var b=P().id;I("onedevIsHovercardReady",a.init)("issueId",b)}},YWb=function(a,b){a&1&&(K(0,"onedev-hovercard",null,3),E(2,XWb,2,2,"b-issue-card",89),L(),K(3,"span",90),Q(4),L());a&2&&(a=b.id,b=qg(1),B(3),I("onedevHovercardTrigger",b),B(),yg(a))},ZWb=function(a){if(a&1){var b=t();K(0,"b-app-bar-bulk-edit-menus",10);T(1,"async");N("onBulkEdit",function(d){u(b);var e=P();return v(e.bulkEdit(d))})("onQuickBulkEdit",function(d){u(b);var e=P();return v(e.quickBulkEdit(d))})("onBulkEditIssueRelation",
function(d){u(b);var e=P();return v(e.bulkEditIssueRelation(d))})("onBulkMarkIssueRead",function(){u(b);var d=P();return v(d.bulkMarkIssueRead())});L()}if(a&2){a=P();var c;I("enableBulkEstimatedEffortOption",(c=U(1,2,a.enableBulkEstimatedEffortOption$))!=null?c:!1)("readStatePrompt",zMb(a))}},aXb=function(a){a&1&&M(0,"playbook-controls",4);a&2&&(a=P(),I("issueIds",$Wb(a)))},bXb=function(a){if(a&1){var b=t();K(0,"b-copy-issue-id-button",11);N("onClickCopyIssueIds",function(){u(b);var c=P();return v(BMb(c.copyIssueIdService,
Tt(c)))})("onClickCopyIssueShortLinks",function(){u(b);var c=P();return v(CMb(c.copyIssueIdService,Tt(c)))})("onClickCopyAsIssueSearch",function(){u(b);var c=P();return v(DMb(c.copyIssueIdService,Tt(c)))});L()}a&2&&(a=P(),I("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},cXb=function(a){if(a&1){var b=t();K(0,"div",6)(1,"b-hotlist-picker",12);N("onApply",function(c){u(b);var d=P();return v(d.handleHotlistPickerSave(c))})("onCreate",
function(c){u(b);var d=P();return v(d.onCreateHotlist.emit(c))})("onLoad",function(c){u(b);var d=P();return v(d.onLoadHotlist.emit(c))});L()()}a&2&&(a=P(),B(),I("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},dXb=function(a){if(a&1){var b=t();K(0,"hotlist-add-issue-btn",14);N("issueAddedToHotlist",function(){u(b);var c=P(2);return v(c.refresh())});L()}a&2&&(a=P(2),I("hotlistId",a.currentHotlistId))},eXb=function(a){a&1&&M(0,"hotlist-archive-btn",13);a&2&&(a=P(2),I("hotlistId",
a.currentHotlistId))},fXb=function(a){a&1&&(F(0,dXb,1,1,"hotlist-add-issue-btn",13),F(1,eXb,1,1,"hotlist-archive-btn",13));a&2&&(a=P(),G(a.enableBulkEditUi?0:-1),B(),G(a.isHotlistAdmin?1:-1))},gXb=function(a){a&1&&(K(0,"span",17),Q(1,"Reporting"),L())},hXb=function(a){if(a&1){var b=t();K(0,"b-button",15);N("onAction",function(){u(b);var c=P();return v(c.openInEstado())});M(1,"b-icon",16);F(2,gXb,2,0,"span",17);L()}a&2&&(a=P(),I("size",a.hasSelectedIssues()?"large":"medium")("format",a.hasSelectedIssues()?
"icon":"flat"),B(2),G(a.hasSelectedIssues()?-1:2))},iXb=function(a){if(a&1){var b=t();K(0,"b-comment-box",24);Cg("commentChange",function(c){u(b);var d=P(2);Bg(d.comment,c)||(d.comment=c);return v(c)});N("onSubmit",function(){u(b);var c=P(2);return v(GMb(c))});L()}a&2&&(a=P(2),Ag("comment",a.comment),I("showToolbar",!1)("isLiteralModeSupported",!0))},jXb=function(a){if(a&1){var b=t();K(0,"div",21)(1,"b-recaptcha",25);N("onUpdate",function(c){u(b);var d=P(2);return v(d.recaptchaResponse=c)});L()()}},
kXb=function(a){a&1&&(K(0,"h1",18),Q(1,"Add comment"),L(),K(2,"mat-dialog-content"),F(3,iXb,1,3,"b-comment-box",19),M(4,"b-external-warnings",20),L(),F(5,jXb,2,0,"div",21),K(6,"mat-dialog-actions")(7,"button",22),Q(8," Cancel "),L(),K(9,"button",23),Q(10," Save "),L()());a&2&&(a=P(),B(3),G(a.comment?3:-1),B(),I("externalWarnings",a.externalWarnings),B(),G(a.enableRecaptcha?5:-1),B(2),I("mat-dialog-close",!1),B(2),I("disabled",a.enableRecaptcha&&a.recaptchaResponse==="")("mat-dialog-close",!0))},lXb=
function(a){if(a&1){var b=t();K(0,"div",6)(1,"button",7);N("click",function(){u(b);var c=P();return v(c.onPressSave())});Q(2," Save ");L();K(3,"button",8);N("click",function(){u(b);var c=P();return v(c.onPressRevert())});Q(4," Revert changes ");L()()}a&2&&(a=P(),B(),I("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving()||a.isInvalid())("matTooltip",a.isInvalid()?"Invalid form data":a.hasNoChanges()?"No changes":"Save these changes"),B(2),I("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving())("matTooltip",
a.hasNoChanges()?"No changes":"Go back to the last saved state"))},mXb=function(a){if(a&1){var b=t();K(0,"div",6)(1,"button",7);N("click",function(){u(b);var d=P();return v(d.save())});Q(2," Save ");L();K(3,"button",8);N("click",function(){u(b);var d=P();return v(d.revert())});Q(4," Revert changes ");L();M(5,"hotlist-archive-btn",9);T(6,"async");L()}if(a&2){a=P();B();I("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Save these changes");B(2);I("disabled",
a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state");B(2);var c;I("hotlistId",(c=U(6,5,a.id$))!=null?c:void 0)}},nXb=function(a,b){a&1&&Q(0);a&2&&S(" ",b.name," ")},oXb=function(a){a&1&&(K(0,"strong",2),Q(1,"(archived)"),L())},pXb=function(a){a&1&&M(0,"b-spinner")},qXb=function(a){a&1&&(M(0,"hotlist-add-issue-btn",4),T(1,"async"));if(a&2){a=P();var b;I("hotlistId",(b=U(1,1,a.id$))!=null?b:void 0)}},rXb=function(a){a&1&&(K(0,"p",6),Q(1,
" This hotlist cannot be edited because you are not an administrator of it. "),L())},sXb=function(a){a&1&&(M(0,"b-edit-hotlist-toolbar",0),K(1,"div",1),M(2,"b-edit-hotlist-header",0),K(3,"mat-tab-group",2)(4,"mat-tab",3),M(5,"b-edit-hotlist-basic",4),T(6,"async"),L(),K(7,"mat-tab",5),M(8,"b-edit-hotlist-acl",4),T(9,"async"),L()(),F(10,rXb,2,0,"p",6),T(11,"async"),L());a&2&&(a=P(),I("hotlistId",a.id),B(2),I("hotlistId",a.id),B(),I("selectedIndex",a.tabIndex),B(2),I("hotlistId",a.id)("isReadOnly",U(6,
8,a.isAdmin$)===!1),B(3),I("hotlistId",a.id)("isReadOnly",U(9,10,a.isAdmin$)===!1),B(2),G(U(11,12,a.isAdmin$)===!1?10:-1))},tXb=function(a,b){a&1&&(M(0,"empty-toolbar"),K(1,"div",7)(2,"h2"),Q(3,"Error"),L(),K(4,"p"),Q(5),L()());a&2&&(B(5),yg(b))},uXb=function(a){a&1&&(K(0,"b-callout",0)(1,"b-callout-body"),Q(2),L()());a&2&&(a=P(),B(2),yg(a.error))},vXb=function(a){a&1&&(Tf(0),Q(1,", "),Uf())},wXb=function(a,b){a&1&&(Q(0),F(1,vXb,2,0,"ng-container"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;
var d=P(2);S(" ",d.convertUserToString(a)," ");B();G(c!==b-1?1:-1)}},xXb=function(a,b){if(a&1){var c=t();K(0,"tr",7);N("click",function(){var e=u(c).$implicit,f=P();return v(f.editHotlist(e))})("focus",function(){var e=u(c).$index,f=P();return v(f.setFocusOnIndex(e))});M(1,"td",2);K(2,"td",8)(3,"a",9);N("click",function(e){u(c);return v(e.stopPropagation())});Q(4);L()();K(5,"td",10);Q(6);L();K(7,"td",11);Nf(8,wXb,2,2,null,null,Mf);L();K(10,"td",12);Q(11);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=
P();wg("grid-focus",d.isFocused(b));If("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));B(3);I("href",qs.editHotlist.makeHref(a.hotlistId),Ne);B();S(" ",a.name," ");B(2);S(" ",a.description," ");B(2);Of(a.adminUsers);B(3);S(" ",a.hotlistId," ")}},yXb=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveToTop.next(c.panelId))});Q(1," Move to top ");L()}},zXb=function(a){if(a&1){var b=t();K(0,"button",10);N("click",
function(){u(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveUp.next(c.panelId))});Q(1," Move up ");L()}},AXb=function(a){if(a&1){var b=t();K(0,"button",11);N("click",function(){u(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveDown.next(c.panelId))});Q(1," Move down ");L()}},BXb=function(a){if(a&1){var b=t();K(0,"button",12);N("click",function(){u(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveToBottom.next(c.panelId))});Q(1," Move to bottom ");L()}},CXb=function(a){if(a&1){var b=
t();F(0,yXb,2,0,"button",4);F(1,zXb,2,0,"button",5);F(2,AXb,2,0,"button",6);F(3,BXb,2,0,"button",7);K(4,"button",8);N("click",function(){u(b);var c=P();return v(c.removePanel())});Q(5," Remove ");L()}a&2&&(a=P(),G(a.first?-1:0),B(),G(a.first?-1:1),B(),G(a.last?-1:2),B(),G(a.last?-1:3))},DXb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),If("title",a.getValue()),B(),S(" ",a.getValue()," "))},EXb=function(a){a&1&&M(0,"b-custom-field-value-display",0);a&2&&(a=P(),I("customFieldValue",a.getCustomFieldValue()))},
FXb=function(a){a&1&&M(0,"edit-issue-metadata",4);a&2&&(a=P(),I("issueId",a.issueId))},GXb=function(a){a&1&&M(0,"b-actions-menu",1);a&2&&(a=P(),I("menuItems",a.menuItems))},HXb=function(a){a&1&&(K(0,"span",2)(1,"strong"),Q(2),L(),Q(3,"\u00a0of\u00a0"),K(4,"strong"),Q(5),L()());a&2&&(a=P(),B(2),zg("",a.searchResults.startIndex,"\u00a0-\u00a0",a.searchResults.endIndex),B(3),yg(a.searchResults.totalText))},IXb=function(a){a&1&&(K(0,"div"),Q(1," Hotlist not found. "),L())},JXb=function(a){a&1&&(K(0,"div"),
Q(1," Loading details... "),L())},KXb=function(a){a&1&&M(0,"b-panel-controls",5);a&2&&(a=P(2),I("panelId",a.panel.panelId))},LXb=function(a){a&1&&(K(0,"span",9),Q(1," \u00a0(changed) "),L())},MXb=function(a){a&1&&(K(0,"div"),F(1,KXb,1,1,"b-panel-controls",5),K(2,"span",6),Q(3," Hotlist: "),K(4,"a",7)(5,"span",8),Q(6),L()()(),F(7,LXb,2,0,"span",9),L());a&2&&(a=P(),B(),G(a.isDashboardEditable?1:-1),B(3),I("href",a.ROUTES.viewHotlist.makeHref(a.hotlistId),Ne),B(),I("matTooltip",Dg(a.resource.description)),
B(),yg(a.resource.name),B(),G(a.hasParamChanges()?7:-1))},NXb=function(a){if(a&1){var b=t();K(0,"div",3)(1,"button",10);N("click",function(){u(b);var c=P();return v(c.save())});Q(2,"Save ");L();K(3,"button",11);N("click",function(){u(b);var c=P();return v(c.discardChanges())});Q(4," Discard changes ");L()()}},OXb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3),B(),S("Searching for ",a.searchParams.query," ..."))},PXb=function(a){a&1&&(K(0,"div",12),M(1,"b-spinner",15),F(2,OXb,2,1,"span"),L());
a&2&&(a=P(2),B(),I("large",!1),B(),G(a.searchParams&&a.searchParams.query?2:-1))},QXb=function(a){a&1&&(K(0,"div",13),Q(1," No issues in hotlist. "),L())},SXb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"b-issues-grid",16);N("init",function(c){u(b);var d=P(2);return v(RXb(d,c))});Cg("focusedRowIndexChange",function(c){u(b);var d=P(2);Bg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){u(b);var d=P(2);Bg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("sortChange",
function(c){u(b);var d=P(2);return v(d.setSort(c.field,c.direction))})("onRowDragDrop",function(c){u(b);var d=P(2);return v(d.repositionIssue(c.srcIndex,c.destIndex))})("rowClick",function(c){u(b);var d=P(2);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page+1))})("onPrevPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page-1))});L()()}a&2&&(a=P(2),B(),I("searchResults",a.searchResults),Ag("focusedRowIndex",a.focusedRowIndex)("columns",
a.issueColumns),I("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},TXb=function(a){a&1&&(K(0,"div"),F(1,PXb,3,2,"div",12),F(2,QXb,2,0,"div",13),F(3,SXb,2,5,"div",14),L());a&2&&(a=P(),B(),G(a.isLoading?1:-1),B(),G(a.isLoading||(a.searchResults==null?0:a.searchResults.issues==null?0:a.searchResults.issues.length)?-1:2),B(),G(!a.isLoading&&(a.searchResults==null?0:a.searchResults.issues==null?0:a.searchResults.issues.length)?3:-1))},UXb=function(a){a&1&&(K(0,"div"),Q(1," Saved search not found. "),
L())},VXb=function(a){a&1&&(K(0,"div"),Q(1," Loading details... "),L())},WXb=function(a){a&1&&M(0,"b-panel-controls",5);a&2&&(a=P(2),I("panelId",a.panel.panelId))},XXb=function(a){a&1&&(K(0,"span",8),Q(1," \u00a0(changed) "),L())},YXb=function(a){a&1&&(K(0,"div",3),F(1,WXb,1,1,"b-panel-controls",5),K(2,"span",3),Q(3," Saved search: "),K(4,"a",6)(5,"span",7),Q(6),L()()(),F(7,XXb,2,0,"span",8),L());a&2&&(a=P(),B(),G(a.isDashboardEditable?1:-1),B(3),I("href",a.paths.viewSavedSearch(a.savedSearchId),
Ne),B(),I("matTooltip",Dg(a.resource.description)),B(),yg(a.resource.name),B(),G(a.hasParamChanges()?7:-1))},ZXb=function(a,b){a&1&&(K(0,"span"),Q(1),L());a&2&&(B(),S("Searching for ",b,"..."))},$Xb=function(a){a&1&&(K(0,"div",9),M(1,"b-spinner",12),F(2,ZXb,2,1,"span"),L());if(a&2){var b;a=P(2);B();I("large",!1);B();G((b=a.searchParams==null?null:a.searchParams.query)?2:-1,b)}},aYb=function(a){a&1&&(K(0,"div",10),Q(1," No issues in saved search. "),L())},bYb=function(a){if(a&1){var b=t();K(0,"div",
11)(1,"b-issues-grid",13);N("init",function(c){u(b);var d=P(2);return v(RXb(d,c))});Cg("focusedRowIndexChange",function(c){u(b);var d=P(2);Bg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)});N("columnsChange",function(c){u(b);var d=P(2);return v(d.columnsChange(c))})("sortChange",function(c){u(b);var d=P(2);return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P(2);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page+
1))})("onPrevPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page-1))});L()()}a&2&&(a=P(2),B(),I("searchResults",a.searchResults),Ag("focusedRowIndex",a.focusedRowIndex),I("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},cYb=function(a){a&1&&(K(0,"div"),F(1,$Xb,3,2,"div",9),F(2,aYb,2,0,"div",10),F(3,bYb,2,5,"div",11),L());a&2&&(a=P(),B(),G(a.isLoading?1:-1),B(),G(!a.isLoading&&a.searchResults&&a.searchResults.issues.length===0?2:-1),B(),G(!a.isLoading&&
a.searchResults&&a.searchResults.issues.length!==0?3:-1))},dYb=function(a,b){a&1&&(K(0,"span",2)(1,"a",3),Q(2),L()());a&2&&(a=b.$implicit,B(),I("routerLink",Eg("/teams/",a.id,"/edit"))("preserveFragment",!0),B(),yg(a.name))},eYb=function(a){a&1&&M(0,"span",25)(1,"b-icon",26);a&2&&(a=P(),I("innerHTML",a.menuLabel,Me))},fYb=function(a){a&1&&(K(0,"div",27),Q(1," This includes emails about major updates and: "),K(2,"ul",28)(3,"li"),Q(4,"All title, hotlist, and status changes."),L(),K(5,"li"),Q(6,"Blocking, Blocked By, or Duplicate changes."),
L(),K(7,"li"),Q(8,"Changes to Reporter, Verifier, and CCs."),L(),K(9,"li"),Q(10,"Changes to Type, Found In, Targeted To, Verified In, and In Prod. "),L(),K(11,"li"),Q(12,"Changes to custom fields marked as minor."),L()()())},gYb=function(a){a&1&&(K(0,"div",29),Q(1," This includes emails about: "),K(2,"ul",28)(3,"li"),Q(4,"New comments."),L(),K(5,"li"),Q(6,"New status updates."),L(),K(7,"li"),Q(8,"Priority or Severity changes."),L(),K(9,"li"),Q(10,"Assignee changes."),L(),K(11,"li"),Q(12,"Component changes."),
L(),K(13,"li"),Q(14,"Issue closure or reopening."),L(),K(15,"li"),Q(16,"Changes to custom fields marked as major."),L()()())},hYb=function(a,b){a&1&&(K(0,"mat-option",5),Q(1),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",a.name," "))},iYb=function(a){a&1&&(K(0,"span",3),Q(1," (must be between 30 days and 20 years) "),L())},kYb=function(a){if(a&1){var b=t();K(0,"div",4)(1,"b-duration-picker",12);N("durationDaysChange",function(c){u(b);var d=P();d.model.retentionPeriodDays=c!=null?c:null;d.modelChange.emit(d.model);
Zt(d);return v()});L();K(2,"div",13);Q(3);L()()}a&2&&(a=P(),B(),I("disabled",a.issueRetentionDisabled)("durationDays",a.model.retentionPeriodDays),B(2),S(" Issues will be marked for deletion when they have not been modified for ",jYb(a.model.retentionPeriodDays),". "))},lYb=function(a){a&1&&(K(0,"div",5)(1,"p"),Q(2,"Please note this extended retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),K(3,"b"),Q(4,"one or more"),L(),Q(5," of the following is true:"),
L(),K(6,"ol")(7,"li"),Q(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),L(),K(9,"li"),Q(10,"You have a process in place to manually delete this data within an approved period of time."),L(),K(11,"li"),Q(12,"Legal and Privacy have approved this non-standard retention period."),L()()())},mYb=function(a){a&1&&(K(0,"div",7)(1,"p"),Q(2,"Please note indefinite retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),
K(3,"b"),Q(4,"one or more"),L(),Q(5," of the following is true:"),L(),K(6,"ol")(7,"li"),Q(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),L(),K(9,"li"),Q(10,"You have a process in place to manually delete this data within an approved period of time."),L(),K(11,"li"),Q(12,"Legal and Privacy have approved this non-standard retention period."),L()()())},nYb=function(a){a&1&&(K(0,"span",3),Q(1," (Issue Retention is shorter than default Restricted Retention) "),
L())},pYb=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),B(),S(" ",oYb(a)," "))},qYb=function(a){a&1&&(K(0,"div",18)(1,"p"),Q(2," Please note restricted retention longer than 4 months is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored. Before selecting it, you should make sure that Legal and Privacy have approved this non-standard retention period."),L()())},tYb=function(a){if(a&1){var b=t();K(0,"div",4)(1,"div")(2,"span",
14);Q(3,"Restricted retention:");L();K(4,"b-duration-picker",15);N("durationDaysChange",function(c){u(b);var d=P();d.model.piiRetentionPeriodDays=c!=null?c:null;d.modelChange.emit(d.model);Zt(d);return v()});L()();K(5,"div",16)(6,"p");Q(7);L()();K(8,"div")(9,"span",14);Q(10,"Restricted+ retention:");L();K(11,"b-duration-picker",17);N("durationDaysChange",function(c){u(b);var d=P();d.model.spiiRetentionPeriodDays=c!=null?c:null;d.modelChange.emit(d.model);Zt(d);return v()});L()();K(12,"div",16)(13,
"p");Q(14);L()();F(15,qYb,3,0,"div",18);L()}a&2&&(a=P(),B(4),I("disabled",!rYb(a))("durationDays",a.model.piiRetentionPeriodDays),B(3),S(" Restricted comments and attachments will be marked for deletion when the containing issue has not been modified for ",jYb(a.model.piiRetentionPeriodDays),". "),B(4),I("disabled",!rYb(a))("durationDays",a.model.spiiRetentionPeriodDays),B(3),S(" Restricted+ comments and attachments will be marked for deletion when the containing issue has not been modified for ",
jYb(a.model.spiiRetentionPeriodDays),". "),B(),G(a.model.piiRetentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&sYb(a)?15:-1))},uYb=function(a){a&1&&(K(0,"div",11)(1,"p"),Q(2," Please note restricted retention longer than 4 months is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored. Before selecting it, you should make sure that Legal and Privacy have approved this non-standard retention period."),L()())},vYb=function(a,b,c){a=
$t(a.slice(b),c,"[()|]","[()|,\\s]");a.idx+=b;return a},$t=function(a,b,c,d){var e=wYb(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}},wYb=function(a,b){b=new RegExp(b,"gi");for(var c,d=null;(c=b.exec(a))!=null;)d=c,d.index=b.lastIndex;return d},au=function(a,b){return(b===void 0?0:b)?a.search(/^\d+\+?$/)>-1:a.search(/^\d+$/)>-1},xYb=function(a){return a.charAt(0)==="-"?{negated:!0,token:a.slice(1)}:{negated:!1,
token:a}},bu=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;var e=b.val.toLowerCase();a=a.filter(function(l){l=l.name.toLowerCase();return l!==e||d?c?l.startsWith(e):za(l,e):!1});b=b.idx;for(var f=b+e.length,g=m(a),k=g.next();!k.done;k=g.next())k=k.value.completionCfg,k.startIdx=b,k.endIdx=f,k.matchingString=e;return a},cu=function(a){var b=a.name;var c=a.label;var d=a.type;var e=a.enableShadowPlaceholder;var f=a.id;var g;return{trackId:((g=a.trackIdPrefix)!=null?g:d)+":"+b,name:b,id:f!=null?
f:b,label:c,completionCfg:{enableShadowPlaceholder:e!=null?e:!0,completionValue:f!=null?f:b,type:d}}},yYb=function(a,b){if(a&1){var c=t();K(0,"div",7)(1,"div",9);N("click",function(d){var e=u(c).$implicit,f=P();e=e.key;if(d=d===void 0?null:d)d.preventDefault(),d.stopPropagation();d=f.options.propertyValues[e];d.value=!d.value;f.onSelectionChanged();return v()});K(2,"mat-checkbox",10);N("change",function(d){var e=u(c).$implicit,f=P();e.value.value=d.checked;return v(f.onSelectionChanged())})("click",
function(d){u(c);return v(d.stopPropagation())});Q(3);L()()()}a&2&&(a=b.$implicit,If("aria-checked",a.value.value),B(2),I("checked",a.value.value),B(),S(" ",a.value.displayString," "))},zYb=function(a){a&1&&(K(0,"div",8),Q(1),L());a&2&&(a=P(),B(),S(" ",a.errorString," "))},AYb=function(a){a&1&&(K(0,"span",2),Q(1),L());a&2&&(a=P(2),B(),zg(" ",a.objectiveBusinessDays," day",a.objectiveBusinessDays!=1?"s":""," "))},BYb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},DYb=function(a){a&1&&(K(0,"span"),F(1,
BYb,2,0,"span"),K(2,"span"),Q(3),L()());a&2&&(a=P(2),B(),G(a.objectiveBusinessDays?1:-1),B(2),zg("",a.intervalString," ",CYb(a,a.intervalUnit)))},EYb=function(a){a&1&&(K(0,"span",0),F(1,AYb,2,2,"span",2),F(2,DYb,4,3,"span"),L());a&2&&(a=P(),B(),G(a.objectiveBusinessDays?1:-1),B(),G(a.intervalString&&a.intervalString!="0"?2:-1))},GYb=function(a){if(a&1){var b=t();K(0,"span",3)(1,"input",4);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.businessDayString,c)||(d.businessDayString=c);return v(c)});
N("ngModelChange",function(){u(b);var c=P(2);return v(FYb(c))});L();K(2,"span",7);Q(3,"days,");L()()}a&2&&(a=P(2),B(),wg("ng-invalid",!!a.errorString),Ag("ngModel",a.businessDayString))},HYb=function(a,b){a&1&&(K(0,"mat-option",6),Q(1),L());a&2&&(a=b.$implicit,b=P(2),I("value",a),B(),S(" ",CYb(b,a)," "))},OYb=function(a){if(a&1){var b=t();K(0,"span",1);F(1,GYb,4,3,"span",3);K(2,"span",3)(3,"input",4);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.intervalString,c)||(d.intervalString=c);return v(c)});
N("ngModelChange",function(){u(b);var c=P();return v(FYb(c))});L();K(4,"mat-select",5);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.intervalUnit,c)||(d.intervalUnit=c);return v(c)});N("selectionChange",function(){u(b);var c=P();IYb(c);JYb(c);return v()});Nf(5,HYb,2,2,"mat-option",6,Mf);L()()()}a&2&&(a=P(),B(),G(KYb(a)?1:-1),B(2),wg("invalid",!!a.errorString),Ag("ngModel",a.intervalString),B(),Ag("ngModel",a.intervalUnit),B(),Of(KYb(a)?[LYb,MYb]:[LYb,MYb,NYb]))},QYb=function(a){if(a&1){var b=
t();K(0,"b-icon",22);N("click",function(){u(b);var c=P(2);return v(PYb(c,0))});L()}a&2&&I("name","add")("size","small")},SYb=function(a){if(a&1){var b=t();K(0,"span",5)(1,"span",18)(2,"span",19);F(3,QYb,1,2,"b-icon",20);L();K(4,"span",19)(5,"b-icon",21);N("click",function(c){u(b);var d=P();return v(RYb(d,c))});L()()()()}a&2&&(a=P(),B(3),G(a.canPerformActions?3:-1),B(2),I("name","delete")("size","small"))},TYb=function(a){a&1&&M(0,"td",26)},UYb=function(a){a&1&&M(0,"td",27)},VYb=function(a){if(a&1){var b=
t();K(0,"td",28)(1,"slo-element-property-picker",42);Cg("optionsChange",function(c){u(b);var d=P().$implicit;Bg(d.typePickerValues,c)||(d.typePickerValues=c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("selectAllText","Any type")("validator",a.validateTypePicker),Ag("options",a.typePickerValues))},WYb=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P(2).$implicit,B(),S("ERROR: ",a.parseResult.error))},XYb=function(a,b){a&1&&(K(0,"span",44)(1,"span",45),Q(2),L()());a&2&&(a=b.$implicit,B(2),yg(a))},
ZYb=function(a){a&1&&(K(0,"span",43),Nf(1,XYb,3,1,"span",44,Mf),L());if(a&2){a=P(2).$implicit;B();if(a.parseResult.types.length===0)a=["Any"];else{for(var b=[],c=m(a.controllerReference.sloParseService.enumTypeToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.types.includes(d)&&b.push(YYb(a.controllerReference,d));a=b}Of(a)}},$Yb=function(a){a&1&&(K(0,"td",29),F(1,WYb,2,1,"div")(2,ZYb,3,0,"span",43),L());a&2&&(a=P().$implicit,B(),G(a.parseResult.error?1:2))},aZb=function(a){if(a&
1){var b=t();K(0,"td",30)(1,"slo-element-property-picker",46);Cg("optionsChange",function(c){u(b);var d=P().$implicit;Bg(d.priorityPickerValues,c)||(d.priorityPickerValues=c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("selectAllText","Any priority")("validator",a.validatePriorityPicker),Ag("options",a.priorityPickerValues))},bZb=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P(2).$implicit,B(),S("ERROR: ",a.parseResult.error))},cZb=function(a,b){a&1&&(K(0,"span",44)(1,"span",45),Q(2),L()());
a&2&&(a=b.$implicit,B(2),yg(a))},eZb=function(a){a&1&&(K(0,"span",43),Nf(1,cZb,3,1,"span",44,Mf),L());if(a&2){a=P(2).$implicit;B();if(a.parseResult.priorities.length===0)a=["Any"];else{for(var b=[],c=m(a.controllerReference.sloParseService.enumPriorityToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.priorities.includes(d)&&b.push(dZb(a.controllerReference,d));a=b}Of(a)}},fZb=function(a){a&1&&(K(0,"td",31),F(1,bZb,2,1,"div")(2,eZb,3,0,"span",43),L());a&2&&(a=P().$implicit,B(),
G(a.parseResult.error?1:2))},gZb=function(a){if(a&1){var b=t();K(0,"td",32)(1,"slo-element-property-picker",47);Cg("optionsChange",function(d){u(b);var e=P().$implicit;Bg(e.postmortemPickerValues,d)||(e.postmortemPickerValues=d);return v(d)});L()()}if(a&2){a=P().$implicit;var c=P(2);B();I("selectAllText",c.postmortemAllSummaryValue)("validator",a.validatePostmortemPicker);Ag("options",a.postmortemPickerValues)}},hZb=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P(2).$implicit,B(),S("ERROR: ",a.parseResult.error))},
iZb=function(a,b){a&1&&(K(0,"span",44)(1,"span",45),Q(2),L()());a&2&&(a=b.$implicit,B(2),yg(a))},jZb=function(a){a&1&&(K(0,"span",43),Nf(1,iZb,3,1,"span",44,Mf),L());if(a&2){a=P(2).$implicit;B();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])];Of(a)}},kZb=function(a){a&1&&(K(0,"td",33),F(1,hZb,2,1,"div")(2,jZb,3,0,"span",43),L());a&2&&(a=P().$implicit,
B(),G(a.parseResult.error?1:2))},mZb=function(a,b){a&1&&(K(0,"mat-option",50),Q(1),L());a&2&&(a=b.$implicit,P(4),I("value",a),B(),S(" ",lZb(a)," "))},nZb=function(a){if(a&1){var b=t();K(0,"td",34)(1,"mat-form-field",48)(2,"mat-select",49);Cg("ngModelChange",function(d){u(b);var e=P().$implicit;Bg(e.selectedMetric,d)||(e.selectedMetric=d);return v(d)});Nf(3,mZb,2,2,"mat-option",50,Mf);L()()()}if(a&2){a=P().$implicit;var c=P(2);B(2);Ag("ngModel",a.selectedMetric);I("customValidators",a.metricValidators);
B();Of(c.metricChoices)}},oZb=function(a){a&1&&(K(0,"td",35),Q(1),L());a&2&&(a=P().$implicit,P(2),B(),S(" ",lZb(a.sloElement.metric)," "))},pZb=function(a){if(a&1){var b=t();K(0,"td",36)(1,"slo-objective-selector",51);Cg("objectiveDurationChange",function(c){u(b);var d=P().$implicit;Bg(d.selectedObjectiveDuration,c)||(d.selectedObjectiveDuration=c);return v(c)})("objectiveBusinessDaysChange",function(c){u(b);var d=P().$implicit;Bg(d.selectedObjectiveBusinessDays,c)||(d.selectedObjectiveBusinessDays=
c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("dayType",a.selectedDayType),Ag("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays),I("validator",a.validateObjective)("isDisabled",!1))},qZb=function(a){if(a&1){var b=t();K(0,"td",37)(1,"slo-objective-selector",52);Cg("objectiveDurationChange",function(c){u(b);var d=P().$implicit;Bg(d.selectedObjectiveDuration,c)||(d.selectedObjectiveDuration=c);return v(c)})("objectiveBusinessDaysChange",function(c){u(b);
var d=P().$implicit;Bg(d.selectedObjectiveBusinessDays,c)||(d.selectedObjectiveBusinessDays=c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("dayType",a.selectedDayType),Ag("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays),I("isDisabled",!a.isEditing()))},sZb=function(a,b){a&1&&(K(0,"mat-option",50),Q(1),L());a&2&&(a=b.$implicit,P(4),I("value",a),B(),S(" ",rZb.get(a||"CALENDAR")," "))},tZb=function(a){if(a&1){var b=t();K(0,"td",38)(1,"mat-form-field",
48)(2,"mat-select",53);Cg("ngModelChange",function(d){u(b);var e=P().$implicit;Bg(e.selectedDayType,d)||(e.selectedDayType=d);return v(d)});N("selectionChange",function(){u(b);var d=P().$implicit;d.selectedDayType==="BUSINESS"?d.selectedObjectiveDuration.seconds%86400===0&&(d.selectedObjectiveBusinessDays=d.selectedObjectiveDuration.seconds/86400,d.selectedObjectiveDuration.seconds=0):(d.selectedObjectiveDuration.seconds===0&&(d.selectedObjectiveDuration.seconds=d.selectedObjectiveBusinessDays*86400),
d.selectedObjectiveBusinessDays=0);return v()});Nf(3,sZb,2,2,"mat-option",50,Mf);L()()()}if(a&2){a=P().$implicit;var c=P(2);B(2);Ag("ngModel",a.selectedDayType);B();Of(c.dayTypes)}},uZb=function(a){a&1&&(K(0,"td",39),Q(1),L());a&2&&(a=P().$implicit,P(2),B(),S(" ",rZb.get(a.sloElement.dayType||"CALENDAR")," "))},yZb=function(a){if(a&1){var b=t();K(0,"td",40)(1,"span",18)(2,"span",19)(3,"b-icon",54);N("click",function(){u(b);var c=P(3);if(c.openRow)if(c.openRow.isValid())vZb(c.openRow.typePickerValues)&&
vZb(c.openRow.priorityPickerValues)&&vZb(c.openRow.postmortemPickerValues)?c.confirmationDialogService.open({title:"SLO validation error",content:Bh("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}):wZb(c);else{var d=c.openRow;(d.selectedDayType!=="BUSINESS"?d.selectedObjectiveDuration.seconds>0:d.selectedObjectiveDuration.seconds>
0||d.selectedObjectiveBusinessDays>0)||c.confirmationDialogService.open({title:"SLO validation error",content:Bh('An SLO rule must specify a valid duration.\nFor "Calendar" day objectives, the duration must be a positive integer.\nFor "Business" day objectives, a day and/or hour/minute duration must be specified.'),confirmButtonText:"Ok",showCancelButton:!1})}return v()});L()();K(4,"span",19)(5,"b-icon",55);N("click",function(){u(b);var c=P().$implicit,d=P(2);return v(xZb(d,c))});L()()()()}a&2&&(B(3),
I("name","done")("size","small"),B(2),I("name","delete")("size","small"))},AZb=function(a){if(a&1){var b=t();K(0,"b-icon",63);N("click",function(c){u(b);var d=P(2).$implicit,e=P(2);return v(zZb(e,d,c))});L()}a&2&&I("name","edit")("size","small")},BZb=function(a){a&1&&M(0,"b-icon",57);a&2&&(P(),a=qg(8),I("name","more-settings-vertical")("size","small")("matMenuTriggerFor",a))},DZb=function(a){if(a&1){var b=t();K(0,"button",64);N("click",function(){u(b);var c=P(2).$implicit,d=P(2);return v(CZb(d,c,
1))});Q(1," Move row down ");L()}},EZb=function(a){if(a&1){var b=t();K(0,"button",65);N("click",function(){u(b);var c=P(2).$implicit,d=P(2);return v(CZb(d,c,-1))});Q(1," Move row up ");L()}},GZb=function(a){if(a&1){var b=t();K(0,"td",41)(1,"span",18)(2,"span",19);F(3,AZb,1,2,"b-icon",56);L();K(4,"span",19)(5,"span");F(6,BZb,1,3,"b-icon",57);L();K(7,"mat-menu",null,0);F(9,DZb,2,0,"button",58);F(10,EZb,2,0,"button",59);K(11,"button",60);N("click",function(){u(b);var d=P().$implicit,e=P(2);PYb(e,e.collection.indexOf(d)+
1);return v()});Q(12," Add row below ");L();K(13,"button",61);N("click",function(){u(b);var d=P().$implicit,e=P(2);PYb(e,e.collection.indexOf(d)+-1+1);return v()});Q(14," Add row above ");L();K(15,"button",62);N("click",function(){u(b);var d=P().$implicit,e=P(2);return v(xZb(e,d))});Q(16," Remove ");L()()()()()}if(a&2){a=P().$implicit;var c=P(2);B(3);G(a.canEdit?3:-1);B(3);G(a.canEdit?6:-1);B(3);G(FZb(c,a,1).valid?9:-1);B();G(FZb(c,a,-1).valid?10:-1)}},HZb=function(a,b){a&1&&(K(0,"tr",25),F(1,TYb,
1,0,"td",26)(2,UYb,1,0,"td",27),F(3,VYb,2,3,"td",28)(4,$Yb,3,1,"td",29),F(5,aZb,2,3,"td",30)(6,fZb,3,1,"td",31),F(7,gZb,2,3,"td",32)(8,kZb,3,1,"td",33),F(9,nZb,5,2,"td",34)(10,oZb,2,1,"td",35),F(11,pZb,2,5,"td",36)(12,qZb,2,4,"td",37),F(13,tZb,5,1,"td",38)(14,uZb,2,1,"td",39),F(15,yZb,6,4,"td",40)(16,GZb,17,4,"td",41),L());a&2&&(a=b.$implicit,b=P(2),wg("draggable",!b.isDisabled&&b.openRow==null),B(),G(a.isEditing()?1:2),B(2),G(a.isEditing()?3:4),B(2),G(a.isEditing()?5:6),B(2),G(a.isEditing()?7:8),
B(2),G(a.isEditing()?9:10),B(2),G(a.isEditing()?11:12),B(2),G(a.isEditing()?13:14),B(2),G(a.isEditing()?15:16))},IZb=function(a){if(a&1){var b=t();K(0,"tbody",23);N("cdkDropListDropped",function(c){u(b);var d=P();return v(d.onDrop(c))});Nf(1,HZb,17,10,"tr",24,Mf);L()}a&2&&(a=P(),I("cdkDropListData",a.collection)("cdkDropListDisabled",a.isDisabled||a.openRow!=null),B(),Of(a.collection))},JZb=function(a){a&1&&(K(0,"div",17),Q(1," There are currently no rules for this SLO "),L())},KZb=function(a,b){if(a&
1){var c=t();K(0,"tr",7);N("click",function(){var e=u(c).$implicit,f=P();return v(f.editSlo(e))})("focus",function(){var e=u(c).$index,f=P();return v(f.setFocusOnIndex(e))});M(1,"td",2);K(2,"td",8)(3,"a",9);Q(4);L()();K(5,"td",10);Q(6);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P();wg("grid-focus",d.isFocused(b));If("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));B(3);I("href",qs.editSlo.makeHref(a.sloId),Ne);B();S(" ",a.name," ");B(2);S(" ",a.description," ")}},LZb=function(a){if(a)return(Array.isArray(a)?
a.map(function(b){return rm(b)}):[rm(a)]).filter(function(b){return!isNaN(b)})},MZb=function(a,b){if(b&&!Array.isArray(b))return a.find(function(c){return!wa(c,b)})},NZb=function(a,b){typeof a==="string"&&(a=a.trim())&&b(xm(a))},OZb=function(a,b){if(!a)return[];a=m(typeof a==="string"?a.split(","):a);for(var c=a.next();!c.done;c=a.next())NZb(c.value,function(d){return b.push(d)});return JQa(b)},PZb=function(a){return a===null?function(){}:function(b){a:{if(Array.isArray(b)&&b.length===1&&(b=b[0],
Array.isArray(b))){b=new a(b);break a}b=void 0}if(b!==void 0)return b;throw Error("og");}},QZb=function(a){a&1&&(K(0,"a",1),Q(1),T(2,"async"),L());if(a&2){var b;a=P();I("href",a.manageComponentLink,Ne);B();yg((b=U(2,2,a.component$))==null?null:b.name)}},RZb=function(a){a&1&&(K(0,"output"),Q(1),L());a&2&&(a=P(),B(),yg(a.componentId))},SZb=function(a){a&1&&Vf(0)},TZb=function(a){a&1&&E(0,SZb,1,0,"ng-container",4);a&2&&(P(),a=qg(6),I("ngTemplateOutlet",a))},UZb=function(a){a&1&&Vf(0)},VZb=function(a){a&
1&&E(0,UZb,1,0,"ng-container",4);a&2&&(P(),a=qg(8),I("ngTemplateOutlet",a))},WZb=function(a){a&1&&(K(0,"li")(1,"label"),Q(2,"Component"),L(),M(3,"b-async-component",8),L());a&2&&(a=P(2),B(3),I("componentId",a.issueComponentId))},XZb=function(a){a&1&&(K(0,"li")(1,"label"),Q(2,"Team"),L(),M(3,"b-team-display",9),L());a&2&&(a=P(2),B(3),I("teamId",a.issueTeamId))},YZb=function(a){a&1&&(K(0,"ol",5)(1,"li")(2,"label"),Q(3,"ID"),L(),K(4,"output"),Q(5),L()(),K(6,"li")(7,"label"),Q(8,"Type"),L(),K(9,"output"),
Q(10),L()(),K(11,"li")(12,"label"),Q(13,"Priority"),L(),M(14,"b-issue-priority-display",6),L(),K(15,"li")(16,"label"),Q(17,"Severity"),L(),K(18,"output"),Q(19),L()(),K(20,"li")(21,"label"),Q(22,"Status"),L(),K(23,"output"),Q(24),L()(),K(25,"li")(26,"label"),Q(27,"Last modified"),L(),K(28,"output"),Q(29),T(30,"date"),L()(),K(31,"li")(32,"label"),Q(33,"Issue access limit"),L(),K(34,"output"),Q(35),K(36,"a",7),Q(37,"Learn more"),L()()(),F(38,WZb,4,1,"li"),F(39,XZb,4,1,"li"),L());a&2&&(a=P(),B(5),yg(a.issueId),
B(5),yg(a.issueType),B(4),I("issuePriority",a.issuePriority),B(5),yg(a.issueSeverity),B(5),yg(a.issueStatus),B(5),yg(Lg(30,10,a.issueLastModified,"medium")),B(6),S("",a.accessLimitLevel," "),B(),I("href",a.documentationLinks.getIssueAccessLimit(),Ne),B(2),G(a.issueComponentId?38:-1),B(),G(a.issueTeamId?39:-1))},ZZb=function(a){a&1&&(Tf(0),Q(1,"Signing in..."),Uf(),M(2,"b-spinner"))},$Zb=function(a){a&1&&(Tf(0),Q(1,"Sign in"),Uf())},a_b=function(a){if(a&1){var b=t();K(0,"button",11);N("click",function(){u(b);
var c=P(2);c.signInProgressing=!0;c.loginRedirector.redirect();return v()});F(1,ZZb,3,0)(2,$Zb,2,0,"ng-container");L()}a&2&&(a=P(2),B(),G(a.signInProgressing?1:2))},b_b=function(a){a&1&&(K(0,"h3"),Q(1,"Access to this issue may be resolved by signing in."),L(),F(2,a_b,3,1,"button",10));a&2&&(a=P(),B(2),G(a.enableSignInAnonymousAccessDenied?2:-1))},c_b=function(a){return a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'")?a.toLowerCase().substr(1,a.length-2):a.toLowerCase()},d_b=
function(a){a.label||(a=nm(a),a.label={customFieldId:void 0,field:"_TEXT_"});return a},f_b=function(a){return{type:e_b[a.getType()],value:a.getValue()}},h_b=function(a){var b,c=g_b[a.getType()],d=((b=a.getValuesList())!=null?b:[]).map(h_b);a=Bi(a,i_b,3,Ci());return{type:c,values:d,simpleValues:(a!=null?a:[]).map(f_b)}},m_b=function(a){var b,c=j_b[a.getType()],d=((b=a.getValuesList())!=null?b:[]).map(h_b);b=Fi(a,3);if(a.hasLabel()){var e=a.getLabel();e={field:k_b[e.getField()],customFieldId:Number(e.getCustomFieldId_asString())}}else e=
void 0;return{type:c,values:d,negated:b,label:e,operator:l_b[wi(a,5)]}},r_b=function(a){switch(a.getKindCase()){case 2:var b=bm(a,n_b,2,o_b,jb);return{syntaxErrorResponse:{syntaxError:ui(b,1,void 0,jb)},queryBuilderResponse:void 0};case 1:return a=bm(a,du,1,o_b,jb),{syntaxErrorResponse:void 0,queryBuilderResponse:{type:p_b[a.getType()],expressions:((b=Bi(a,q_b,2,Ci(),jb))!=null?b:[]).map(m_b)}};default:return{syntaxErrorResponse:void 0,queryBuilderResponse:void 0}}},s_b=function(a){if(a&1){var b=
t();K(0,"mat-checkbox",8);N("click",function(d){u(b);return v(d.stopPropagation())})("change",function(){u(b);var d=P().$implicit,e=P();return v(e.toggleSelection(d))});Q(1);L()}if(a&2){a=P().$implicit;var c=P();I("checked",c.selectedValuesMap[a]);B();S(" ",a," ")}},t_b=function(a){a&1&&(K(0,"div",7),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a," "))},u_b=function(a,b){a&1&&(K(0,"mat-option",4),F(1,s_b,2,2,"mat-checkbox",6)(2,t_b,2,1,"div",7),L());a&2&&(a=b.$implicit,b=P(),I("value",a),B(),G(b.allowMultiSelect?
1:2))},w_b=function(a){if(a&1){var b=t();K(0,"div",5)(1,"button",9);N("click",function(){u(b);var c=P();return v(v_b(c))})("keydown.enter",function(){u(b);var c=P();return v(v_b(c))});M(2,"mat-icon",10);L();K(3,"button",11);N("click",function(){u(b);var c=P();return v(c.cancel())})("keydown.esc",function(){u(b);var c=P();return v(v_b(c))});M(4,"mat-icon",12);L()()}a&2&&(a=P(),B(),If("aria-label",Eg("Apply changes to ",a.customFieldTitle)),I("disabled",!a.hasPendingChanges),B(2),If("aria-label",Eg("Discard changes to ",
a.customFieldTitle)))},x_b=function(a,b){a&1&&(K(0,"mat-option",4)(1,"div",5),Q(2),L()());a&2&&(a=b.$implicit,I("value",a),B(2),S(" ",a.name," "))},y_b=function(a,b){a&1&&(K(0,"mat-option",11),Q(1),L());a&2&&(a=b.$implicit,I("value",a.key),B(),S(" ",a.value," "))},z_b=function(a){if(a&1){var b=t();K(0,"mat-form-field",4)(1,"mat-select",10);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.expressionType,c)||(d.expressionType=c);return v(c)});Nf(2,y_b,2,2,"mat-option",11,Mf);T(4,"keyvalue");L()()}a&
2&&(a=P(2),B(),Ag("ngModel",a.expressionType),B(),Of(U(4,1,a.globalTypeLabels)))},A_b=function(a,b){a&1&&(K(0,"mat-option",11),Q(1),L());a&2&&(a=b.$implicit,I("value",a[0]),B(),S(" ",a[1]," "))},B_b=function(a,b){a&1&&(K(0,"mat-option",11),Q(1),L());if(a&2){a=b.$implicit;b=P(2).$implicit;var c=P(2);I("value",a);B();S(" ",c.getTypeLabel(b,a)," ")}},C_b=function(a){if(a&1){var b=t();K(0,"mat-form-field",4)(1,"mat-select",18);Cg("ngModelChange",function(c){u(b);var d=P().$implicit;Bg(d.type,c)||(d.type=
c);return v(c)});Nf(2,B_b,2,2,"mat-option",11,Mf);L()()}a&2&&(a=P().$implicit,B(),Ag("ngModel",a.type),B(),Of(a.getLegalTypes()))},E_b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var c=P(2).$implicit,d=P(5);return v(D_b(d,c))});K(1,"span",27);Q(2);L()()}a&2&&(a=P(2).$implicit,P(5),I("title",a.value),B(2),S(" ",a.value.replace(/"/g,"")," "))},F_b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-custom-repeated-enum-picker",28);N("onValueChange",function(e){u(b);var f=P(7);
f.chipUnderEdit.value='"'+e+'"';eu(f);return v()});L()()}if(a&2){a=P(2).$implicit;var c=P(3).$implicit,d=P(2);B();I("showPlaceholder",!0)("customFieldTitle",d.getCustomFieldName(c))("currentInputValue",a.value.replace(/"/g,""))("allowedValues",c.getOptions())}},G_b=function(a){if(a&1){var b=t();K(0,"div",22);F(1,E_b,3,2,"div",23);F(2,F_b,2,4,"div",24);K(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(fu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(5);
B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1)}},H_b=function(a,b){a&1&&F(0,G_b,4,2,"div",22);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},I_b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(gu(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},J_b=function(a){a&1&&(K(0,"div",19),Nf(1,H_b,1,1,null,null,Mf),F(3,I_b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,
B(),Of(a.values),B(2),G(a.type?3:-1))},K_b=function(a,b){if(a&1){var c=t();K(0,"div",30)(1,"mat-checkbox",31);N("change",function(d){var e=u(c).$implicit,f=P(3).$implicit;return v(f.enumValues[e.id]=d.checked)});Q(2);L()()}a&2&&(a=b.$implicit,b=P(3).$implicit,B(),I("checked",b.enumValues[a.id])("matTooltip",a.tooltip),B(),S(" ",a.label||a.id," "))},L_b=function(a){a&1&&(K(0,"div",20),Nf(1,K_b,3,3,"div",30,Mf),L());a&2&&(a=P(2).$implicit,B(),Of(a.getOptions()))},M_b=function(a){if(a&1){var b=t();K(0,
"div")(1,"b-peoplekit-multi",32);Cg("valueChange",function(d){u(b);var e=P(3).$implicit;Bg(e.csv,d)||(e.csv=d);return v(d)});L()()}if(a&2){a=P(3).$implicit;var c=P(2);B();Ag("value",a.csv);I("candidateDenylist",c.candidateEmailAutocompleteDenylist)}},N_b=function(a){if(a&1){var b=t();K(0,"div")(1,"input",33);Cg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Bg(d.csv,c)||(d.csv=c);return v(c)});L()()}a&2&&(a=P(3).$implicit,B(),Ag("ngModel",a.csv))},O_b=function(a){if(a&1){var b=t();K(0,"div")(1,
"input",34);Cg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Bg(d.csv,c)||(d.csv=c);return v(c)});L()()}a&2&&(a=P(3).$implicit,B(),Ag("ngModel",a.csv))},P_b=function(a){if(a&1){var b=t();K(0,"div")(1,"input",35);Cg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Bg(d.csv,c)||(d.csv=c);return v(c)});L()()}a&2&&(a=P(3).$implicit,B(),Ag("ngModel",a.csv))},Q_b=function(a){a&1&&(K(0,"div"),F(1,M_b,2,2,"div"),F(2,N_b,2,1,"div"),F(3,O_b,2,1,"div"),F(4,P_b,2,1,"div"),L());a&2&&(a=P(2).$implicit,
B(),G(a.getWidgetType()=="user"?1:-1),B(),G(a.getWidgetType()=="csv"?2:-1),B(),G(a.getWidgetType()=="id"?3:-1),B(),G(a.getWidgetType()=="number"?4:-1))},R_b=function(a,b){if(a&1){var c=t();K(0,"div",36)(1,"div",24)(2,"input",35);Cg("ngModelChange",function(d){var e=u(c).$implicit;Bg(e.value,d)||(e.value=d);return v(d)});L()();K(3,"button",37);N("click",function(){var d=u(c).$implicit,e=P(3).$implicit,f=P(2);return v(fu(f,e,d))});L()()}a&2&&(a=b.$implicit,B(2),Ag("ngModel",a.value))},S_b=function(a){if(a&
1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(gu(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NOR"?"OR":"AND"," "))},T_b=function(a){a&1&&(K(0,"div",19),Nf(1,R_b,4,1,"div",36,Mf),F(3,S_b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Of(a.values),B(2),G(a.type?3:-1))},V_b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,e=P(5);return v(U_b(e,d))});K(1,"span",27);Q(2);L()()}if(a&
2){a=P(2).$implicit;var c=P(5);I("title",c.getComponentPath(c.components[a.value]));B(2);S(" ",c.getComponentPath(c.components[a.value])," ")}},W_b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-team-component-picker",41);N("selectedComponentChange",function(c){u(b);var d=P(7);d.componentUnderEdit=c!=null?c:null;d.componentUnderEdit&&(d.chipUnderEdit.value=d.componentUnderEdit.componentId,d.components[d.componentUnderEdit.componentId]=d.componentUnderEdit);d.componentUnderEdit=null;eu(d);return v()});
L()()}a&2&&(a=P(7),B(),I("selectedComponent",a.componentUnderEdit)("placeholder","Choose Component")("isRequired",!0))},X_b=function(a){if(a&1){var b=t();K(0,"div",38);F(1,V_b,3,2,"div",23);F(2,W_b,2,3,"div",24);K(3,"button",39);N("click",function(){u(b);var d=P().$implicit;P(5);d.includeSubs=!d.includeSubs;return v()});M(4,"mat-icon",40);L();K(5,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(fu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(5);B();G(c.chipUnderEdit===
a?-1:1);B();G(c.chipUnderEdit===a?2:-1);B();I("title",a.includeSubs?"Subcomponents are included":"Subcomponents are not included");If("aria-checked",a.includeSubs);B();I("svgIcon",a.includeSubs?"child-components-24px":"child-components-hide-24px")}},Y_b=function(a,b){a&1&&F(0,X_b,6,5,"div",38);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},Z_b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(gu(d,c))});Q(1);L()}a&2&&(a=
P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},$_b=function(a){a&1&&(K(0,"div",19),Nf(1,Y_b,1,1,null,null,Mf),F(3,Z_b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Of(a.values),B(2),G(a.type?3:-1))},b0b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,e=P(5);return v(a0b(e,d))});K(1,"span",27);Q(2);L()()}if(a&2){a=P(2).$implicit;var c=P(5);I("title",c.trackers[a.value]==null?null:c.trackers[a.value].name);B(2);S(" ",c.trackers[a.value]==
null?null:c.trackers[a.value].name," ")}},c0b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-tracker-picker",43);N("onTrackerSelect",function(c){u(b);var d=P(7);d.analytics.trackEvent("search","builder-autocomplete-select","tracker",isNaN(Number(c.trackerId))?0:Number(c.trackerId));d.chipUnderEdit.value=c.trackerId;d.trackers[c.trackerId]=c;d.trackerUnderEdit=null;eu(d);return v()});L()()}a&2&&(a=P(7),B(),I("selectedTracker",a.trackerUnderEdit))},d0b=function(a){if(a&1){var b=t();K(0,"div",42);
F(1,b0b,3,2,"div",23);F(2,c0b,2,1,"div",24);K(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(fu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(5);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1)}},e0b=function(a,b){a&1&&F(0,d0b,4,2,"div",42);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},f0b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(gu(d,c))});Q(1);
L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},g0b=function(a){a&1&&(K(0,"div",19),Nf(1,e0b,1,1,null,null,Mf),F(3,f0b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Of(a.values),B(2),G(a.type?3:-1))},i0b=function(a){if(a&1){var b=t();K(0,"div",26);T(1,"teamPath");N("click",function(){u(b);var d=P(2).$implicit,e=P(6);return v(h0b(e,d))});K(2,"span",27);Q(3);T(4,"teamPath");L()()}if(a&2){a=P(2).$implicit;var c=P(6);I("title",U(1,2,c.teams[a.value]));B(3);S(" ",
U(4,4,c.teams[a.value])," ")}},k0b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-team-picker",46);N("onTeamSelect",function(c){u(b);var d=P(8);return v(j0b(d,c))});L()()}a&2&&(a=P(8),B(),I("teamSelected",a.teamUnderEdit))},l0b=function(a){if(a&1){var b=t();K(0,"div",44);F(1,i0b,5,6,"div",23);F(2,k0b,2,1,"div",24);K(3,"button",45);N("click",function(){u(b);var d=P().$implicit;P(6);d.includeSubs=!d.includeSubs;return v()});M(4,"mat-icon",40);L();K(5,"button",25);N("click",function(){u(b);var d=P().$implicit,
e=P(4).$implicit,f=P(2);return v(fu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(6);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1);B();I("title",a.includeSubs?"Subteams are included":"Subteams are not included");If("aria-checked",a.includeSubs);B();I("svgIcon",a.includeSubs?"child-teams-24px":"child-teams-hide-24px")}},m0b=function(a,b){a&1&&F(0,l0b,6,5,"div",44);a&2&&(a=b.$implicit,b=P(6),G(b.chipUnderEdit===a||a.value?0:-1))},n0b=function(a){if(a&1){var b=t();K(0,"button",29);
N("click",function(){u(b);var c=P(4).$implicit,d=P(2);return v(gu(d,c))});Q(1);L()}a&2&&(a=P(4).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},o0b=function(a){a&1&&(Nf(0,m0b,1,1,null,null,Mf),F(2,n0b,2,1,"button",21));a&2&&(a=P(3).$implicit,Of(a.values),B(2),G(a.type?2:-1))},p0b=function(a){a&1&&(K(0,"div",19),F(1,o0b,3,1),L());a&2&&(a=P(4),B(),G(a.sessionIsInternal?1:-1))},r0b=function(a){if(a&1){var b=t();K(0,"div")(1,"bv2-input-date-picker",47);N("boundValueChange",function(d){u(b);
P(3).$implicit.dateFrom=q0b(d);return v()});L();Q(2," and ");K(3,"bv2-input-date-picker",47);N("boundValueChange",function(d){u(b);P(3).$implicit.dateTo=q0b(d);return v()});L()()}if(a&2){a=P(3).$implicit;var c=P(2);B();I("boundValue",c.getDateValue(a.dateFrom))("isRequired",!0);B(2);I("boundValue",c.getDateValue(a.dateTo))("isRequired",!0)}},s0b=function(a){if(a&1){var b=t();K(0,"div");Q(1," the last ");K(2,"input",48);Cg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Bg(d.duration,c)||(d.duration=
c);return v(c)});L();Q(3," days. ");L()}a&2&&(a=P(3).$implicit,B(2),Ag("ngModel",a.duration))},t0b=function(a){if(a&1){var b=t();K(0,"div")(1,"bv2-input-date-picker",47);N("boundValueChange",function(d){u(b);P(3).$implicit.dateFrom=q0b(d);return v()});L()()}if(a&2){a=P(3).$implicit;var c=P(2);B();I("boundValue",c.getDateValue(a.dateFrom))("isRequired",!0)}},u0b=function(a){a&1&&(K(0,"div"),F(1,r0b,4,4,"div"),F(2,s0b,4,1,"div"),F(3,t0b,2,2,"div"),L());a&2&&(a=P(2).$implicit,B(),G(a.type=="RANGE"||
a.type=="NRANGE"?1:-1),B(),G(a.type=="DURATION"||a.type=="NDURATION"?2:-1),B(),G(a.type=="LE"||a.type=="LT"||a.type=="GE"||a.type=="GT"||a.type=="OR"?3:-1))},v0b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,e=P(5);return v(hu(e,d))});K(1,"span",27);Q(2);L()()}if(a&2){a=P(2).$implicit;var c=P(5);I("title",(c.hotlists[a.value]==null?null:c.hotlists[a.value].name)||a.value);B(2);S(" ",(c.hotlists[a.value]==null?null:c.hotlists[a.value].name)||a.value," ")}},
w0b=function(a,b){a&1&&(K(0,"mat-option",11),Q(1),L());a&2&&(a=b.$implicit,I("value",a.hotlistId),B(),S(" ",a.name," "))},x0b=function(a){if(a&1){var b=t();K(0,"mat-form-field",50)(1,"mat-select",51);Cg("ngModelChange",function(d){u(b);var e=P(2).$implicit;Bg(e.value,d)||(e.value=d);return v(d)});N("selectionChange",function(){u(b);var d=P(7);return v(eu(d))});Nf(2,w0b,2,2,"mat-option",11,Mf);L()()}if(a&2){a=P(2).$implicit;var c=P(5);B();Ag("ngModel",a.value);B();Of(c.userHotlists)}},y0b=function(a){if(a&
1){var b=t();K(0,"div",49);F(1,v0b,3,2,"div",23);F(2,x0b,4,1,"mat-form-field",50);K(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(fu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(5);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1)}},z0b=function(a,b){a&1&&F(0,y0b,4,2,"div",49);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},A0b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,
d=P(2);return v(gu(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},B0b=function(a){a&1&&(K(0,"div",19),Nf(1,z0b,1,1,null,null,Mf),F(3,A0b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Of(a.values),B(2),G(a.type?3:-1))},C0b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,e=P(5);return v(hu(e,d))});K(1,"span",27);Q(2);L()()}if(a&2){a=P(2).$implicit;var c=P(5);I("title",(c.savedSearches[a.value]==null?null:
c.savedSearches[a.value].name)||a.value);B(2);S(" ",(c.savedSearches[a.value]==null?null:c.savedSearches[a.value].name)||a.value," ")}},D0b=function(a,b){a&1&&(K(0,"mat-option",11),Q(1),L());a&2&&(a=b.$implicit,I("value",a.searchId),B(),S(" ",a.name," "))},E0b=function(a){if(a&1){var b=t();K(0,"mat-form-field",50)(1,"mat-select",52);Cg("ngModelChange",function(d){u(b);var e=P(2).$implicit;Bg(e.value,d)||(e.value=d);return v(d)});N("selectionChange",function(){u(b);var d=P(7);return v(eu(d))});Nf(2,
D0b,2,2,"mat-option",11,Mf);L()()}if(a&2){a=P(2).$implicit;var c=P(5);B();Ag("ngModel",a.value);B();Of(c.userSavedSearches)}},F0b=function(a){if(a&1){var b=t();K(0,"div",49);F(1,C0b,3,2,"div",23);F(2,E0b,4,1,"mat-form-field",50);K(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(fu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(5);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1)}},G0b=function(a,b){a&1&&F(0,F0b,4,2,"div",49);a&2&&(a=b.$implicit,
b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},H0b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(gu(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},I0b=function(a){a&1&&(K(0,"div",19),Nf(1,G0b,1,1,null,null,Mf),F(3,H0b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Of(a.values),B(2),G(a.type?3:-1))},J0b=function(a){a&1&&(K(0,"div",14),F(1,J_b,4,1,"div",19),F(2,L_b,3,0,"div",20),F(3,
Q_b,5,4,"div"),F(4,T_b,4,1,"div",19),F(5,$_b,4,1,"div",19),F(6,g0b,4,1,"div",19),F(7,p0b,2,1,"div",19),F(8,u0b,4,3,"div"),F(9,B0b,4,1,"div",19),F(10,I0b,4,1,"div",19),L());if(a&2){a=P().$implicit;var b=P(2);B();G(a.getWidgetType()==="repeated-enum"?1:-1);B();G(a.getWidgetType()==="enum"?2:-1);B();G(a instanceof iu?3:-1);B();G(a.getWidgetType()=="text"?4:-1);B();G(a.getWidgetType()=="component"?5:-1);B();G(b.isTrackerSearchEnabled&&a.getWidgetType()=="tracker"?6:-1);B();G(a.getWidgetType()=="team"?
7:-1);B();G(a.getWidgetType()==="date"?8:-1);B();G(a.getWidgetType()=="hotlist"?9:-1);B();G(a.getWidgetType()=="savedsearch"?10:-1)}},K0b=function(a){a&1&&(K(0,"div",15),Q(1),L());if(a&2){a=P().$implicit;var b=P(2);B();S(" ",b.getCustomFieldName(a)," ")}},N0b=function(a){if(a&1){var b=t();K(0,"div",16)(1,"b-custom-field-picker",53);N("fieldSelected",function(c){u(b);var d=P().$index,e=P(2),f=c.customFieldId;e.customFields[f]=c;e.expressions[d]=L0b(e.searchRuleFactory,"CUSTOM_FIELD",e.customFields[f]);
M0b(e,e.expressions[d]);return v()});L()()}},P0b=function(a,b){if(a&1){var c=t();K(0,"div",5)(1,"div",12)(2,"mat-form-field",4)(3,"mat-select",13);Cg("ngModelChange",function(d){var e=u(c).$implicit;Bg(e.label.field,d)||(e.label.field=d);return v(d)});N("selectionChange",function(){var d=u(c).$index,e=P(2);return v(O0b(e,d))});Nf(4,A_b,2,2,"mat-option",11,Mf);L()();F(6,C_b,4,1,"mat-form-field",4);L();F(7,J0b,11,10,"div",14);F(8,K0b,2,1,"div",15);F(9,N0b,2,0,"div",16);K(10,"button",17);N("click",function(){var d=
u(c).$implicit,e=P(2);return v(e.removeExpression(d))});L()()}a&2&&(a=b.$implicit,b=P(2),B(3),Ag("ngModel",a.label.field),B(),Of(b.availableLabels),B(2),G(a.isPendingCustomField?-1:6),B(),G(a.isPendingCustomField?-1:7),B(),G(a.label.customFieldId?8:-1),B(),G(a.isPendingCustomField?9:-1))},Q0b=function(a,b){if(a&1){var c=t();K(0,"button",54);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.addExpression(d[0]))});Q(1);L()}a&2&&(a=b.$implicit,B(),S(" ",a[1]," "))},R0b=function(a){a&1&&(K(0,
"div",1)(1,"div",2)(2,"span",3),Q(3,"Advanced search query builder"),L(),F(4,z_b,5,3,"mat-form-field",4),L(),Nf(5,P0b,11,5,"div",5,Lf),K(7,"div",6)(8,"button",7),Q(9),L(),K(10,"mat-menu",8,0),Nf(12,Q0b,2,1,"button",9,Mf),L()()());if(a&2){a=qg(11);var b=P();B(4);G(b.expressions.length?4:-1);B();Of(b.expressions);B(3);I("matMenuTriggerFor",a);B();S(" ",b.expressionType," ... ");B(3);Of(b.availableLabels)}},T0b=function(a){if(a&1){var b=t();K(0,"button",2);N("click",function(){u(b);var c=P();return v(S0b(c))});
Q(1);L()}a&2&&(a=P(),B(),S(" ",a.buttonLabel," "))},U0b=function(a){if(a&1){var b=t();K(0,"button",3);N("click",function(){u(b);var c=P();return v(S0b(c))});M(1,"mat-icon",4);Q(2);L()}a&2&&(a=P(),I("matTooltip","Open release notes"),B(),I("svgIcon",a.alertMode?"release-notes-alert":"release-notes-default"),B(),S(" ",a.buttonLabel," "))},V0b=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(c){u(b);var d=P();return v(d.manageSlos(c))});Q(1,"Manage SLOs");L()}},W0b=function(a){a&1&&M(0,
"mat-divider")(1,"b-whats-new-button",11);a&2&&(B(),I("menuMode",!0))},X0b=function(a){a&1&&M(0,"b-whats-new-button",0);a&2&&(a=P(),I("alertMode",a.majorReleaseNotesUpdated))},Y0b=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);P().userFeedback.startFeedback();return v()});M(1,"mat-icon",5);L()}},Z0b=function(a){if(a&1){var b=t();K(0,"button",5);N("click",function(){u(b);var c=P();return v(c.clickMenu.emit())});M(1,"mat-icon",6);L()}},b1b=function(a,b){a&1&&(K(0,"output",7),
Q(1),L());a&2&&(a=b.$implicit,xg(a.color?Ig(3,$0b,a.color):Hg(5,a1b)),B(),yg(a.name))},c1b=function(a){a&1&&(K(0,"span"),Q(1," Currently selected hotlist: "),K(2,"strong"),Q(3),L()());a&2&&(a=P(3),B(3),yg(a.header.hotlist.name))},d1b=function(a){a&1&&Q(0," Showing your subscribed hotlists. Start typing a hotlist name or ID to filter. ")},e1b=function(a){a&1&&F(0,c1b,4,1,"span")(1,d1b,1,0);a&2&&(a=P(2),G(a.header.hotlist?0:1))},f1b=function(a){a&1&&(K(0,"span"),Q(1,"Currently selected saved search: "),
K(2,"strong"),Q(3),L()());a&2&&(a=P(3),B(3),yg(a.header.savedSearch.name))},g1b=function(a){a&1&&Q(0," Showing your saved searches. Start typing a saved search name or ID to filter. ")},h1b=function(a){a&1&&F(0,f1b,4,1,"span")(1,g1b,1,0);a&2&&(a=P(2),G(a.header.savedSearch?0:1))},i1b=function(a){a&1&&(K(0,"span"),Q(1," and "),K(2,"strong"),Q(3,"subcomponents"),L()())},j1b=function(a){a&1&&(K(0,"span"),Q(1," Currently selected component: "),K(2,"strong",3),Q(3),L(),M(4,"b-component-access-level-indicator",
4)(5,"b-tracker-chip-smart",5),F(6,i1b,4,0,"span"),L());if(a&2){a=P(3);B(3);var b=a.header.component,c=ju(a.trackerHelpers,b.componentPathInfo);yg(c&&c.componentPathName?c.componentPathName.join(" > "):b.name);B();I("accessLevel",a.header.component.accessLimit==null?null:a.header.component.accessLimit.accessLevel);B();I("trackerId",a.header.component.trackerId);B();G(a.header.includeChildren?6:-1)}},k1b=function(a){a&1&&Q(0," Start typing a component name or ID to see auto-complete suggestions. ")},
l1b=function(a){a&1&&F(0,j1b,7,4,"span")(1,k1b,1,0);a&2&&(a=P(2),G(a.header.component?0:1))},m1b=function(a){a&1&&(K(0,"span"),Q(1," Currently selected tracker: "),K(2,"strong"),Q(3),L()());a&2&&(a=P(3),B(3),yg(a.header.tracker.name))},n1b=function(a){a&1&&Q(0," Start typing a tracker name or ID to see auto-complete suggestions. ")},o1b=function(a){a&1&&F(0,m1b,4,1,"span")(1,n1b,1,0);a&2&&(a=P(2),G(a.header.tracker?0:1))},p1b=function(a){a&1&&(K(0,"span"),Q(1," and "),K(2,"strong"),Q(3,"subteams"),
L()())},q1b=function(a){a&1&&(K(0,"span"),Q(1," Currently selected team: "),K(2,"strong"),Q(3),L(),F(4,p1b,4,0,"span"),L());a&2&&(a=P(3),B(3),yg(a.header.team.name),B(),G(a.header.includeChildren?4:-1))},r1b=function(a){a&1&&Q(0," Start typing a team name or ID to see auto-complete suggestions. ")},s1b=function(a){a&1&&F(0,q1b,5,2,"span")(1,r1b,1,0);a&2&&(a=P(2),G(a.header.team?0:1))},t1b=function(a,b){a&1&&(K(0,"span"),Q(1," Currently selected custom field: "),K(2,"strong"),Q(3),L(),Q(4," of type "),
K(5,"strong"),Q(6),T(7,"lowercase"),L(),Q(8,". "),L());a&2&&(B(3),yg(b.name),B(3),yg(U(7,2,b.type)))},u1b=function(a){a&1&&Q(0," Start typing a custom field name or ID to see auto-complete suggestions. ")},v1b=function(a){a&1&&F(0,t1b,9,4,"span")(1,u1b,1,0);if(a&2){var b;a=P(2);G((b=a.header.customField)?0:1,b)}},w1b=function(a){a&1&&(K(0,"div",0),F(1,e1b,2,1),F(2,h1b,2,1),F(3,l1b,2,1),F(4,o1b,2,1),F(5,s1b,2,1),F(6,v1b,2,1),L());a&2&&(a=P(),B(),G(a.header.type==="hotlist"?1:-1),B(),G(a.header.type===
"savedsearch"?2:-1),B(),G(a.header.type==="component"?3:-1),B(),G(a.header.type==="tracker"?4:-1),B(),G(a.header.type==="team"?5:-1),B(),G(a.header.type==="customfield"?6:-1))},x1b=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),zg(" ",a.id,": ",a.name," "))},y1b=function(a){a&1&&(K(0,"span"),Q(1),K(2,"span"),Q(3),L()());a&2&&(a=P().$implicit,B(),S(" Hotlist ",a.id,": "),B(2),yg(a.name))},z1b=function(a){a&1&&(K(0,"span"),Q(1),K(2,"span"),Q(3),L(),M(4,"br"),K(5,"span",7),Q(6),L()());
a&2&&(a=P().$implicit,B(),S(" Saved search ",a.id,": "),B(2),yg(a.name),B(3),yg(a.query))},A1b=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.name," "))},B1b=function(a){a&1&&(K(0,"span"),Q(1," > "),L())},D1b=function(a,b){if(a&1){var c=t();K(0,"span",9);N("click",function(e){var f=u(c).$implicit;C1b(f);return v(e.stopPropagation())});Q(1);L();F(2,B1b,2,0,"span")}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;I("title",Fg("",a.id,": ",a.name));B();yg(a.name);B();G(d!==
b-1?2:-1)}},E1b=function(a){a&1&&(K(0,"span"),Q(1," Component "),K(2,"strong",3),Q(3),L(),M(4,"b-component-access-level-indicator",4)(5,"b-tracker-chip-smart",5),K(6,"span",8),Nf(7,D1b,3,5,null,null,Mf),L()());a&2&&(a=P().$implicit,B(3),yg(a.id),B(),I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),B(),I("trackerId",a.trackerId),B(2),Of(a.componentPath))},F1b=function(a){a&1&&(K(0,"span"),Q(1),K(2,"span"),Q(3),L()());a&2&&(a=P().$implicit,B(),S(" Tracker ",a.id,": "),B(2),yg(a.name))},
G1b=function(a){a&1&&(K(0,"span"),Q(1," > "),L())},H1b=function(a,b){if(a&1){var c=t();K(0,"span",9);N("click",function(e){var f=u(c).$implicit;C1b(f);return v(e.stopPropagation())});Q(1);L();F(2,G1b,2,0,"span")}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;I("title",Fg("",a.id,": ",a.name));B();yg(a.name);B();G(d!==b-1?2:-1)}},I1b=function(a){a&1&&(K(0,"span"),Q(1," Team "),K(2,"strong"),Q(3),L(),K(4,"span",8),Nf(5,H1b,3,5,null,null,Mf),L()());a&2&&(a=P().$implicit,B(3),yg(a.id),B(2),Of(a.teamPath))},
J1b=function(a){a&1&&(K(0,"span"),Q(1," > "),L())},K1b=function(a,b){a&1&&(K(0,"span"),Q(1),L(),F(2,J1b,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();yg(a);B();G(c!==b-1?2:-1)}},L1b=function(a){a&1&&(K(0,"span"),Q(1),K(2,"span"),Q(3),L(),K(4,"span",10),Nf(5,K1b,3,2,null,null,Mf),L()());a&2&&(a=P().$implicit,B(),S(" Custom Field ",a.id,": "),B(2),yg(a.name),B(2),Of(a.componentPathNames))},M1b=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),zg(" ",a.label,": ",a.name,
" "))},O1b=function(a,b){if(a&1){var c=t();K(0,"b-app-search-auto-complete-option",6);N("optionClicked",function(e){u(c);var f=P();e>=0&&e<f.items.length&&(e=f.items[e],e.id&&e.completionCfg&&N1b(e),f.itemSelected.emit(e));return v()});F(1,x1b,2,2,"span");F(2,y1b,4,2,"span");F(3,z1b,7,3,"span");F(4,A1b,2,1,"span");F(5,E1b,9,3,"span");F(6,F1b,4,2,"span");F(7,I1b,7,1,"span");F(8,L1b,7,2,"span");F(9,M1b,2,2,"span");L()}if(a&2){a=b.$implicit;b=b.$index;var d=P();If("id",Eg("b-app-search-option-",b));
I("index",b)("isActive",b>=0&&b<d.items.length?b===d.activeItemIndex:!1);B();G(a.completionCfg.type==="issue"?1:-1);B();G(a.completionCfg.type==="hotlist"?2:-1);B();G(a.completionCfg.type==="savedsearch"?3:-1);B();G(a.completionCfg.type==="atom"?4:-1);B();G(a.completionCfg.type==="component"?5:-1);B();G(a.completionCfg.type==="tracker"?6:-1);B();G(a.completionCfg.type==="team"?7:-1);B();G(a.completionCfg.type==="customField"?8:-1);B();G(d.SPECIAL_ITEM_TYPES.includes(a.completionCfg.type)?-1:9)}},
Q1b=function(a,b){var c=0,d=0;P1b(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]},P1b=function(a){try{return typeof a.selectionStart=="number"}catch(b){return!1}},S1b=function(a){if(a&1){var b=t();K(0,"div",21)(1,"input",22,2);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.searchName,c)||(d.searchName=c);return v(c)});N("keydown.Tab",function(){u(b);var c=P();return v(R1b(c))})("keydown.enter",function(){u(b);var c=P();return v(c.saveSearch())});L();K(3,"button",18);N("click",function(){u(b);
var c=P();return v(c.saveSearch())});Q(4," Save ");L()()}a&2&&(a=P(),B(),Ag("ngModel",a.searchName),B(2),I("disabled",!a.searchName))},T1b=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(),wg("muted",a.disabled),B(),yg(a.cardTitle))},U1b=function(a){a&1&&(K(0,"mat-select-trigger"),M(1,"mat-icon",15),K(2,"span"),Q(3),L()());a&2&&(a=P(3),B(),I("svgIcon",a.selectedOption.icon),B(2),yg(a.selectedOption.displayText))},V1b=function(a){a&1&&M(0,"mat-icon",15);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},
W1b=function(a,b){a&1&&(K(0,"mat-option",14),F(1,V1b,1,1,"mat-icon",15),Q(2),L());a&2&&(a=b.$implicit,I("value",a),B(),G(a.icon?1:-1),B(),S(" ",a.displayText," "))},X1b=function(a){if(a&1){var b=t();K(0,"mat-form-field",12)(1,"mat-label");Q(2," Choose type... ");L();K(3,"mat-select",13);Cg("valueChange",function(c){u(b);var d=P(2);Bg(d.selectedOption,c)||(d.selectedOption=c);return v(c)});N("selectionChange",function(c){u(b);P(2).dropdownSelectionChanged.emit(c.value);return v()});F(4,U1b,4,2,"mat-select-trigger");
Nf(5,W1b,3,3,"mat-option",14,Mf);L()()}a&2&&(a=P(2),B(3),I("disabled",a.disabled),Ag("value",a.selectedOption),B(),G(a.selectedOption&&a.selectedOption.icon?4:-1),B(),Of(a.dropdownOptions))},Y1b=function(a){if(a&1){var b=t();K(0,"mat-form-field",10)(1,"input",11);N("ngModelChange",function(c){u(b);var d=P();return v(d.cardTitleChange.emit(c))});L()();F(2,X1b,7,3,"mat-form-field",12)}a&2&&(a=P(),B(),wg("muted",a.disabled||!a.selected),I("placeholder",a.placeholderForCardTitle)("disabled",a.disabled||
!a.selected)("ngModel",a.cardTitle),If("aria-label",a.ariaLabelForCardTitle),B(),G(a.dropdownOptions.length?2:-1))},Z1b=function(a){a&1&&M(0,"mat-icon",5)},$1b=function(a){a&1&&M(0,"mat-icon",6)},a2b=function(a){a&1&&(K(0,"div",7),cg(1),L())},b2b=function(a){a&1&&(K(0,"button",18),M(1,"mat-icon",22),L());a&2&&(a=P(2),I("disabled",a.disabled))},c2b=function(a){a&1&&M(0,"mat-divider",19);a&2&&I("vertical",!0)},d2b=function(a){a&1&&(K(0,"mat-slide-toggle",20),Q(1," Required "),L());a&2&&(a=P(2),I("disabled",
a.disabled))},e2b=function(a){if(a&1){var b=t();K(0,"mat-slide-toggle",23);N("change",function(c){u(b);var d=P(2);return v(d.isInheritedChange.emit(c))});Q(1," Inherited ");L()}a&2&&(a=P(2),I("checked",a.isInherited)("disabled",a.inheritedDisabled)("matTooltip",a.inheritedDisabledTooltipText)("matTooltipDisabled",!a.inheritedDisabled))},f2b=function(a){if(a&1){var b=t();K(0,"div",8)(1,"button",16);N("click",function(){u(b);var c=P();return v(c.onSave())});Q(2," Save ");L();K(3,"button",17);N("click",
function(){u(b);var c=P();return v(c.onCancel())});Q(4," Cancel ");L();F(5,b2b,2,1,"button",18);F(6,c2b,1,1,"mat-divider",19);F(7,d2b,2,1,"mat-slide-toggle",20);F(8,e2b,2,4,"mat-slide-toggle",21);L()}a&2&&(a=P(),B(),I("disabled",a.isSaveButtonDisabled),B(2),I("disabled",a.disabled),B(2),G(a.showDeleteButton?5:-1),B(),G(a.showDeleteButton&&a.showRequiredToggle?6:-1),B(),G(a.showRequiredToggle?7:-1),B(),G(a.showInheritedToggle?8:-1))},g2b=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);
var c=P().$index,d=P();return v(d.removeAtIndex.emit(c))});M(1,"mat-icon",18);L()}a&2&&(a=P().$implicit,If("aria-label","Delete row "+a.label))},h2b=function(a,b){if(a&1){var c=t();K(0,"div",9)(1,"div",11);M(2,"mat-icon",12);K(3,"div",3)(4,"mat-form-field",13)(5,"input",14,0);N("change",function(d){var e=u(c).$index,f=P();f.options[e].label=d.target.value;f.optionsChange.emit(f.options);return v()});L()()();K(7,"div",3)(8,"mat-form-field",13)(9,"input",15,1);N("change",function(d){var e=u(c).$index,
f=P();return v(f.valueChange(d,e))});L()()();F(11,g2b,2,1,"button",16);L()()}a&2&&(a=b.$implicit,b=P(),B(4),I("appearance","outline"),B(),wg("muted",b.disabled),I("value",a.label)("placeholder",a.label==null?"Dropdown value":"")("disabled",b.disabled),B(3),I("appearance","outline"),B(),wg("muted",b.disabled),I("value",a.value)("placeholder",a.value==null?"Average days":"")("disabled",b.disabled),B(2),G(b.disabled?-1:11))},i2b=function(a){if(a&1){var b=t();K(0,"button",19);N("click",function(){u(b);
var c=P();return v(c.addRow.emit())});Q(1," Add row ");L()}},j2b=function(a){a&1&&Vf(0)},k2b=function(a){a&1&&E(0,j2b,1,0,"ng-container",5);a&2&&(P(),a=qg(7),I("ngTemplateOutlet",a))},l2b=function(a){if(a&1){var b=t();K(0,"b-numeric-config",6);Cg("valueChange",function(c){u(b);var d=P();Bg(d.numericSpecMultiplier,c)||(d.numericSpecMultiplier=c);return v(c)});L()}a&2&&(a=P(),I("disabled",a.disabled),Ag("value",a.numericSpecMultiplier))},m2b=function(){},n2b=function(a){if(a&1){var b=t();K(0,"div",
4)(1,"label",7);Q(2,"Aggregation Rule");L();K(3,"a",8);M(4,"mat-icon",9);L();M(5,"br");K(6,"mat-form-field",10)(7,"mat-select",11);Cg("valueChange",function(c){u(b);var d=P();Bg(d.selectedAggregationRule,c)||(d.selectedAggregationRule=c);return v(c)});K(8,"mat-select-trigger");Q(9);T(10,"aggregationRuleText");L();K(11,"mat-option",12)(12,"div",13);Q(13);T(14,"aggregationRuleText");L();K(15,"div",14);Q(16,"All parents and children are added to the total");L()();K(17,"mat-option",12)(18,"div",13);Q(19);
T(20,"aggregationRuleText");L();K(21,"div",14);Q(22,"Take the assigned estimate if larger than total of all immediate children");L()()()()()}a&2&&(a=P(),B(7),Ag("value",a.selectedAggregationRule),I("disabled",a.disabled),B(2),S(" ",U(10,7,a.selectedAggregationRule)," "),B(2),I("value",a.aggregationRules.SUM),B(2),yg(U(14,9,a.aggregationRules.SUM)),B(4),I("value",a.aggregationRules.MAX),B(2),yg(U(20,11,a.aggregationRules.MAX)))},o2b=function(a){if(a&1){var b=t();K(0,"b-config-grid",15);Cg("optionsChange",
function(c){u(b);var d=P();Bg(d.enumSpecOptions,c)||(d.enumSpecOptions=c);return v(c)});N("addRow",function(){u(b);var c=P();return v(c.addRow())})("removeAtIndex",function(c){u(b);P().enumSpecOptions.splice(c,1);return v()});L()}a&2&&(a=P(),Ag("options",a.enumSpecOptions),I("disabled",a.disabled||a.inherit))},p2b=function(a){a&1&&(K(0,"div",4),M(1,"b-team-warning",5),L());a&2&&(a=P(),B(),I("warningType",a)("messageOnly",!0))},q2b=function(a,b){a&1&&F(0,p2b,2,2,"div",4);a&2&&(a=P(),G(!a.isAdmin||
b!=="MISSING"&&b!=="DELETED"?-1:0))},r2b=function(a){if(a&1){var b=t();K(0,"div",0)(1,"mat-checkbox",6);N("change",function(c){u(b);var d=P();d.inherit=!c.checked;d.model.inherit=d.inherit;!d.isTopLevel&&d.inherit&&d.parentModel&&(d.model.id=d.parentModel.id);d.teamIdChanged$.next(d.model.id);d.modelChange.emit(d.model);return v()});Q(2," Override the inherited team ");L()()}a&2&&(a=P(),B(),I("disabled",!a.isAdmin)("checked",!a.inherit))},t2b=function(a){if(a&1){var b=t();K(0,"a",8);N("click",function(){u(b);
P(2);dr("component","navigate","to-internal-team-page");return v()});M(1,"mat-icon",9);L()}a&2&&(a=P(2),I("routerLink",s2b(a)?"/teams/"+a.model.id+"/edit":null)("target",a.anchorTarget))},u2b=function(a){a&1&&F(0,t2b,2,2,"a",7);a&2&&(a=P(),G(s2b(a)?0:-1))},v2b=function(a){if(a&1){var b=t();K(0,"a",11);N("click",function(){u(b);var c=P(2);dr("component","linkout-moma","team",Number(c.model.id));return v()});M(1,"mat-icon",9);L()}a&2&&(a=P(2),If("href",a.getMomaTeamLink(),Ne))},w2b=function(a){a&1&&
F(0,v2b,2,1,"a",10);a&2&&(a=P(),G(s2b(a)?0:-1))},x2b=function(a){a&1&&(K(0,"th",14),Q(1," Order"),L())},y2b=function(a,b){a&1&&(K(0,"td",15),Q(1),L());a&2&&(a=b.index,B(),S(" ",a+1," "))},z2b=function(a){a&1&&(K(0,"th",14),Q(1," Name"),L())},A2b=function(a,b){a&1&&(K(0,"td",15),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.name," "))},B2b=function(a){a&1&&(K(0,"th",14),Q(1," Type"),L())},C2b=function(a,b){a&1&&(K(0,"td",15),Q(1),T(2,"toCustomFieldTypeDisplayValue"),L());a&2&&(a=b.$implicit,B(),S(" ",
U(2,1,a.type)," "))},D2b=function(a){a&1&&(K(0,"th",14),Q(1," Required"),L())},E2b=function(a,b){a&1&&(K(0,"td",15),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.required?"Yes":"No"," "))},F2b=function(a){a&1&&(K(0,"th",14),Q(1," ID"),L())},G2b=function(a,b){a&1&&(K(0,"td",15),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.customFieldId," "))},H2b=function(a){a&1&&M(0,"tr",16)},I2b=function(a){a&1&&M(0,"tr",17)},J2b=function(a){a&1&&(K(0,"div",12),Q(1," There are no custom fields defined on this component. "),
L())},M2b=function(a){if(a&1){var b=t();K(0,"div",13)(1,"div")(2,"button",18);N("click",function(){u(b);var c=P();return v(K2b(c))});Q(3," Reorder fields ");L();K(4,"button",18);N("click",function(){u(b);var c=P();return v(L2b(c))});Q(5," Reset ordering ");L()()()}a&2&&(a=P(),B(2),I("disabled",a.fields.length===0),B(2),I("disabled",a.fieldOrdering!=="CUSTOMIZED"))},N2b=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),a=a.lineNumbers.length,S(" (",a+(a==1?" TODO":" TODOs"),") "))},P2b=function(a,
b){if(a&1){var c=t();K(0,"li",3)(1,"a",4);N("click",function(){u(c);var d=P(2);return v(d.trackClick("lineNumber"))});Q(2);L()()}a&2&&(a=b.$implicit,b=P(2),B(),I("href",O2b(b,a),Ne),B(),yg(a))},Q2b=function(a){a&1&&(K(0,"span"),Q(1," ("),K(2,"ul",2),Nf(3,P2b,3,2,"li",3,Mf),L(),Q(5,") "),L());a&2&&(a=P(),B(3),Of(a.lineNumbers))},R2b=function(a){a&1&&(K(0,"section",2)(1,"div",4),M(2,"img",5),K(3,"p",6),Q(4," This issue has no insights "),L(),K(5,"p",7),Q(6," Automated tools can provide insights with detailed information about an issue. No insights were found for this issue. "),
L()()());a&2&&(a=P(),B(2),I("src",a.ROBOT_SLEEPING,Ne))},S2b=function(a){a&1&&M(0,"img",13);a&2&&(a=P(3),I("src",a.LOGO_PURPLE,Ne))},T2b=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",14);a&2&&I("formattedComment",b)},U2b=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",14,1);a&2&&I("formattedComment",b.formattedContent)},V2b=function(a){a&1&&M(0,"b-spinner")},W2b=function(a){a&1&&(F(0,U2b,2,1,"b-formatted-comment-presenter",14),T(1,"async"),Kf(2,V2b,1,0,"b-spinner"));if(a&2){var b;
a=P().$implicit;G((b=U(1,1,a.asyncContent))?0:2,b)}},X2b=function(a){a&1&&(K(0,"div"),Q(1,"No content was found for this enrichment."),L())},Y2b=function(a,b){if(a&1){var c=t();K(0,"mat-expansion-panel",12,0);N("opened",function(){var e=u(c).$implicit,f=qg(1),g=P(2);return v(g.onExpand(e,f))})("closed",function(){var e=u(c).$implicit,f=P(2);f.logIssueUserEventForIssueEnrichment("EVENT_TYPE_CLOSE",e.category);var g=f.onScreenSubscriptions.get(e.category);g&&(g.unsubscribe(),f.onScreenSubscriptions.delete(e.category));
return v()});K(2,"mat-expansion-panel-header")(3,"mat-panel-title");F(4,S2b,1,1,"img",13);Q(5);L()();F(6,T2b,1,1,"b-formatted-comment-presenter",14)(7,W2b,3,3)(8,X2b,2,0,"div");K(9,"mat-action-row")(10,"span",15);M(11,"b-formatted-date-time",16);L();M(12,"insights-actions",17);L()()}if(a&2){var d;a=b.$implicit;b=P(2);I("id",Eg("insight-",a.category))("expanded",!0);B(4);G(b.FIRST_PARTY_ENRICHMENTS.includes(a.category)?4:-1);B();S(" ",a.displayName," ");B();G((d=a.general==null?null:a.general.formattedContent)?
6:a.asyncContent?7:8,d);B(5);I("timestamp",a.timestamp);B();I("enrichment",a)}},$2b=function(a){if(a&1){var b=t();K(0,"button",8);N("click",function(){u(b);var c=P().accordion;c.multi&&c._openCloseAllActions.next(!0);return v()});Q(1," Expand all ");L();K(2,"button",9);N("click",function(){u(b);P().accordion.closeAll();return v()});Q(3," Collapse all ");L();K(4,"mat-accordion",10);Nf(5,Y2b,13,8,"mat-expansion-panel",11,Z2b);L()}a&2&&(P(),a=ag(0),B(5),Of(a))},a3b=function(a){a&1&&(K(0,"div",3),M(1,
"b-spinner"),L())},b3b=function(a){a&1&&(K(0,"a",4),Q(1," Create Component "),L());a&2&&(a=P(),I("href",a.createComponentPath,Ne))},c3b=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout",10)(1,"xap-dialog-layout-content")(2,"b-team-component-picker",11);T(3,"async");N("selectedComponentChange",function(d){u(b);var e=P();d=d!=null?d:null;var f="openFromSearch";f=f===void 0?null:f;d&&(f&&e.analytics.trackEvent("listComponents",f),e.bLocation.setUrl(qs.editComponent.makeHref(d.componentId)));return v()});
L()()()}if(a&2){a=P();B(2);var c;I("includeArchived",(c=U(3,4,a.includeArchived$))!=null?c:!1)("placeholder","Choose Component to navigate to that component")("shouldFocus",!0)("isRequired",!1)}},e3b=function(a){if(a&1){var b=t();K(0,"div",6)(1,"b-slide-toggle",12);T(2,"async");N("modelChange",function(d){u(b);var e=P();e.includeArchived$.next(d);d=e.componentTree;(d=d.focusedController?d.focusedController.selectedId?d.focusedController.selectedId:null:d.rootController.selectedId?d.rootController.selectedId:
null)&&d3b(e,d,fe(e.topLevelComponents$));return v()});L()()}if(a&2){a=P();B();var c;I("model",(c=U(2,2,a.includeArchived$))!=null?c:!1)("tooltip",a.includeArchived?"Show archived components.":"Hide archived components.")}},f3b=function(a){a&1&&(K(0,"div",8),M(1,"b-spinner",13),L())},g3b=function(a){a&1&&(K(0,"p",1),Q(1),L());a&2&&(a=P(),B(),yg(a.packageMentionSet.packageName))},h3b=function(a,b){a&1&&(K(0,"li"),M(1,"b-file-mention",2),L());a&2&&(a=b.$implicit,b=P(),B(),I("issueId",b.issueId)("packageName",
b.packageMentionSet.packageName)("filename",a.filename)("lineNumbers",a.lineNumber)("changeNumber",a.changeNumber))},i3b=function(a){a&1&&(K(0,"div",4),Q(1),L());a&2&&(a=P(),B(),S(" Signed in as ",a.activeSession.getUserEmail()," "))},j3b=function(a){a&1&&(K(0,"span",3),Q(1," Select at least one tracker "),L())},k3b=function(a,b){if(a&1){var c=t();K(0,"div",5)(1,"mat-checkbox",6);N("change",function(d){var e=u(c).$implicit,f=P();return v(f.trackerCheckboxValues[e.trackerId]=d.checked)});Q(2);L()()}a&
2&&(a=b.$implicit,b=P(),B(),I("checked",b.trackerCheckboxValues[a.trackerId]||!1),B(),S(" ",a.name," "))},l3b=function(a){a&1&&M(0,"b-top-bar-outlet-body")},m3b=function(a){a&1&&(M(0,"b-tracker-search",1),T(1,"async"));a&2&&(a=P(),I("currentTrackerId",a.currentTracker.trackerId)("availableTrackers",U(1,2,a.availableTrackers$)))},n3b=function(a){a&1&&(K(0,"div",3),M(1,"b-spinner"),K(2,"span"),Q(3,"Initializing query builder..."),L()())},o3b=function(a){a&1&&(K(0,"div",6),M(1,"mat-icon",7),K(2,"p"),
Q(3," The query is too complex to show in the query builder. You can still perform the search or save the search. "),L()())},p3b=function(a){a&1&&(K(0,"div"),Q(1," We cannot understand your query because it seems to be incorrect (syntactically). Make sure all parentheses are balanced and all labels have values. "),L())},q3b=function(a){a&1&&(K(0,"div",4),F(1,o3b,4,0,"div",6),F(2,p3b,2,0,"div"),L());a&2&&(a=P(),B(),G((a.advancedSearchCtrl==null?null:a.advancedSearchCtrl.getState())==="NOT_REPRESENTABLE"?
1:-1),B(),G((a.advancedSearchCtrl==null?null:a.advancedSearchCtrl.getState())==="SYNTAX_ERROR"?2:-1))},r3b=function(a){a&1&&(K(0,"div",4),Q(1," We encountered a problem while retrieving the interpretation of the search query from the server. Please try again. "),L())},s3b=function(a){a&1&&M(0,"b-tracker-account-menu-hack",5);a&2&&(a=P(),I("trackerInternalBaseUrl",a.currentTracker.internalBaseUrl)("trackerExternalBaseUrl",a.currentTracker.externalBaseUrl))},t3b=function(a){a&1&&M(0,"b-user-display-name",
8);a&2&&(a=P().$implicit,I("user",a.author))},u3b=function(a){a&1&&(K(0,"span"),Q(1),M(2,"span",13),L());a&2&&(a=P(2).$implicit,B(),S(" ",a.diff.oldValue," "))},v3b=function(a){a&1&&(K(0,"span")(1,"label"),Q(2),L(),F(3,u3b,3,1,"span"),Q(4),L());a&2&&(a=P().$implicit,B(2),S("",a.fieldName,":"),B(),G(a.diff.oldValue?3:-1),B(),S(" ",a.diff.newValue," "))},w3b=function(a,b){a&1&&(K(0,"div")(1,"label"),Q(2),L(),Q(3),L());a&2&&(a=b.$implicit,b=P(3).$implicit,B(2),S("-",b.fieldName,":"),B(),S(" ",a," "))},
x3b=function(a){a&1&&Nf(0,w3b,4,2,"div",null,Mf);a&2&&(a=P(2).$implicit,Of(a.diff.removed))},y3b=function(a,b){a&1&&(K(0,"div")(1,"label"),Q(2),L(),Q(3),L());a&2&&(a=b.$implicit,b=P(3).$implicit,B(2),S("+",b.fieldName,":"),B(),S(" ",a," "))},z3b=function(a){a&1&&Nf(0,y3b,4,2,"div",null,Mf);a&2&&(a=P(2).$implicit,Of(a.diff.added))},A3b=function(a){a&1&&(K(0,"div"),F(1,x3b,2,0),F(2,z3b,2,0),L());a&2&&(a=P().$implicit,B(),G(a.diff.removed?1:-1),B(),G(a.diff.added?2:-1))},B3b=function(a,b){a&1&&(K(0,
"div",12),F(1,v3b,5,3,"span"),F(2,A3b,3,2,"div"),L());a&2&&(a=b.$implicit,b=P(2),B(),G(a.diffType==b.DiffType.SINGLE_VALUE?1:-1),B(),G(a.diffType==b.DiffType.COLLECTION?2:-1))},C3b=function(a,b){a&1&&(K(0,"li",2)(1,"div",5),M(2,"b-user-image",6),L(),K(3,"div",7)(4,"h4"),F(5,t3b,1,1,"b-user-display-name",8),K(6,"span",9),M(7,"b-formatted-date-time",10),L()(),K(8,"div",11),Nf(9,B3b,3,2,"div",12,Mf),L()()());a&2&&(a=b.$implicit,b=P(),B(2),I("email",b.userToDisplay(a.author)),B(3),G(a.author?5:-1),B(2),
I("timestamp",a.timestamp),B(2),Of(a.diffs))},D3b=function(a){a.stack&&(a.stack=a.stack.replace(/ \[angular\]/g,""))},E3b=function(){var a=window.navigator.platform,b=window.navigator.userAgent;if(["Macintosh","MacIntel","MacPPC","Mac68K"].includes(a))return"Mac";if(["iPhone","iPad","iPod"].includes(a))return"iOS";if(["Win32","Win64","Windows","WinCE"].includes(a))return"Windows";if(/Android/.test(b))return"Android";if(/Linux/.test(a))return"Linux";if(/\bCrOS\b/.test(b))return"ChromeOS"},F3b=function(a,
b){a&1&&(K(0,"mat-option",2),Q(1),M(2,"br"),K(3,"span",3),Q(4),L()());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",a.title),B(3),yg(a.description))},H3b=function(a,b){a&1&&Vf(0,4);a&2&&(a=b.$implicit,P(),b=qg(3),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,G3b,a)))},I3b=function(a){a&1&&Vf(0,4);if(a&2){a=P().question;P();var b=qg(5);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,G3b,a))}},J3b=function(a){a&1&&Vf(0,4);if(a&2){a=P().question;P();var b=qg(7);I("ngTemplateOutlet",b)("ngTemplateOutletContext",
Ig(2,G3b,a))}},K3b=function(a){a&1&&Vf(0,4);if(a&2){a=P().question;P();var b=qg(9);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,G3b,a))}},L3b=function(a,b){a&1&&F(0,I3b,1,4,"ng-container",4)(1,J3b,1,4,"ng-container",4)(2,K3b,1,4,"ng-container",4);if(a&2){var c;a=b.question;b=P();G((c=a.type)===b.CustomQuestionType.INPUT?0:c===b.CustomQuestionType.TEXT?1:c===b.CustomQuestionType.SELECT?2:-1)}},N3b=function(a,b){if(a&1){var c=t();M(0,"h4",5);K(1,"mat-form-field",6)(2,"input",7);N("ngModelChange",
function(d){var e=u(c).question,f=P();e.response=d;return v(M3b(f))});L()()}a&2&&(a=b.question,I("innerHtml",a.question,Me),B(2),I("ngModel",a.response),If("aria-label",a.question))},O3b=function(a,b){if(a&1){var c=t();M(0,"h4",5);K(1,"mat-form-field",8)(2,"textarea",7);N("ngModelChange",function(d){var e=u(c).question,f=P();e.response=d;return v(M3b(f))});Q(3,"    ");L()()}a&2&&(a=b.question,I("innerHtml",a.question,Me),B(2),I("ngModel",a.response),If("aria-label",a.question))},Q3b=function(a,b){a&
1&&(K(0,"mat-option",10),Q(1),L());a&2&&(a=b.$implicit,P(2),I("value",a),B(),S(" ",P3b(a)?a.text:a," "))},R3b=function(a){a&1&&Vf(0,4);if(a&2){a=P().question;P();var b=qg(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,G3b,a.response.child))}},S3b=function(a,b){if(a&1){var c=t();M(0,"h4",5);K(1,"mat-form-field",6)(2,"mat-select",9);N("valueChange",function(d){var e=u(c).question,f=P();e.response=d;return v(M3b(f))});Nf(3,Q3b,2,2,"mat-option",10,Mf);L()();F(5,R3b,1,4,"ng-container",4)}a&
2&&(a=b.question,P(),I("innerHtml",a.question,Me),B(),If("aria-label",a.question),B(),I("value",a.response),B(),Of(a.options),B(2),G(P3b(a.response)?5:-1))},T3b=function(a){a&1&&cg(0)},V3b=function(a){a&1&&Vf(0,2);a&2&&(a=P(),I("ngTemplateOutlet",a.iconOverrides[a.state])("ngTemplateOutletContext",Kg(2,U3b,a.index,a.active,a.optional)))},W3b=function(a){a&1&&(K(0,"span",7),Q(1),L());a&2&&(a=P(2),B(),yg(a._getDefaultTextForState(a.state)))},X3b=function(a){a&1&&(K(0,"span",8),Q(1),L());a&2&&(a=P(3),
B(),yg(a._intl.completedLabel))},Y3b=function(a){a&1&&(K(0,"span",8),Q(1),L());a&2&&(a=P(3),B(),yg(a._intl.editableLabel))},Z3b=function(a){a&1&&(F(0,X3b,2,1,"span",8)(1,Y3b,2,1,"span",8),K(2,"mat-icon",7),Q(3),L());a&2&&(a=P(2),G(a.state==="done"?0:a.state==="edit"?1:-1),B(3),yg(a._getDefaultTextForState(a.state)))},$3b=function(a){a&1&&F(0,W3b,2,1,"span",7)(1,Z3b,4,2);a&2&&(a=P(),G(a.state==="number"?0:1))},a4b=function(a,b){a&1&&(K(0,"div",4),Vf(1,9),L());a&2&&(B(),I("ngTemplateOutlet",b.template))},
b4b=function(a){a&1&&(K(0,"div",4),Q(1),L());a&2&&(a=P(),B(),yg(a.label))},c4b=function(a){a&1&&(K(0,"div",5),Q(1),L());a&2&&(a=P(),B(),yg(a._intl.optionalLabel))},d4b=function(a){a&1&&(K(0,"div",6),Q(1),L());a&2&&(a=P(),B(),yg(a.errorMessage))},e4b=function(){},f4b=function(a){a&1&&(cg(0),E(1,e4b,0,0,"ng-template",0));a&2&&(a=P(),B(),I("cdkPortalOutlet",a._portal))},g4b=function(a){a&1&&cg(0)},i4b=function(a){a&1&&(K(0,"div",5),Vf(1,9)(2,6),L());if(a&2){a=P(2);var b=qg(6);B();I("ngTemplateOutlet",
a.headerPrefix());B();I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(3,h4b,a.steps))}},j4b=function(a){a&1&&Vf(0,6);if(a&2){a=P(2);var b=qg(6);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,h4b,a.steps))}},k4b=function(a,b){a&1&&(K(0,"div",10,2),Vf(2,9),L());if(a&2){a=b.$implicit;b=b.$index;var c=P(2);xg("mat-horizontal-stepper-content-"+c._getAnimationDirection(b));I("id",c._getStepContentId(b));If("aria-labelledby",c._getStepLabelId(b))("inert",c.selectedIndex===b?null:"");B(2);I("ngTemplateOutlet",
a.content)}},l4b=function(a){a&1&&(K(0,"div",3),F(1,i4b,3,5,"div",5)(2,j4b,1,4,"ng-container",6),K(3,"div",7),Nf(4,k4b,3,6,"div",8,Mf),L()());a&2&&(a=P(),B(),G(a.headerPrefix()?1:2),B(3),Of(a.steps))},m4b=function(a){a&1&&Vf(0,9);a&2&&(a=P(2),I("ngTemplateOutlet",a.headerPrefix()))},o4b=function(a,b){a&1&&(K(0,"div",11),Vf(1,6),K(2,"div",12,2)(4,"div",13)(5,"div",14),Vf(6,9),L()()()());if(a&2){a=b.$implicit;var c=b.$index,d=b.$index;b=b.$count;var e=P(2),f=qg(4);B();I("ngTemplateOutlet",f)("ngTemplateOutletContext",
Ig(10,n4b,a));B();wg("mat-stepper-vertical-line",d!==b-1)("mat-vertical-content-container-active",e.selectedIndex===c);If("inert",e.selectedIndex===c?null:"");B(2);I("id",e._getStepContentId(c));If("aria-labelledby",e._getStepLabelId(c));B(2);I("ngTemplateOutlet",a.content)}},p4b=function(a){a&1&&(K(0,"div",4),F(1,m4b,1,1,"ng-container",9),Nf(2,o4b,7,12,"div",11,Mf),L());a&2&&(a=P(),B(),G(a.headerPrefix()?1:-1),B(),Of(a.steps))},q4b=function(a,b){if(a&1){var c=t();K(0,"mat-step-header",15);N("click",
function(){var d=u(c).step;return v(d.select())})("keydown",function(d){u(c);var e=P();return v(e._onKeydown(d))});L()}a&2&&(a=b.step,b=P(),wg("mat-horizontal-stepper-header",b.orientation==="horizontal")("mat-vertical-stepper-header",b.orientation==="vertical"),I("tabIndex",b._getFocusIndex()===a.index()?0:-1)("id",b._getStepLabelId(a.index()))("index",a.index())("state",a.indicatorType())("label",a.stepLabel||a.label)("selected",a.isSelected())("active",a.isNavigable())("optional",a.optional)("errorMessage",
a.errorMessage)("iconOverrides",b._iconOverrides)("disableRipple",b.disableRipple||!a.isNavigable())("color",a.color||b.color),If("role",b.orientation==="horizontal"?"tab":"button")("aria-posinset",b.orientation==="horizontal"?a.index()+1:null)("aria-setsize",b.orientation==="horizontal"?b.steps.length:null)("aria-selected",b.orientation==="horizontal"?a.isSelected():null)("aria-current",b.orientation==="vertical"&&a.isSelected()?"step":null)("aria-disabled",b.orientation==="vertical"&&a.isSelected()?
"true":null)("aria-expanded",b.orientation==="vertical"?a.isSelected():null)("aria-controls",b._getStepContentId(a.index()))("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null)("aria-disabled",a.isNavigable()?null:!0))},r4b=function(a){a&1&&M(0,"div",17)},s4b=function(a,b){a&1&&(Vf(0,6),F(1,r4b,1,0,"div",17));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;P(2);var d=qg(4);I("ngTemplateOutlet",d)("ngTemplateOutletContext",Ig(3,n4b,a));B();G(c!==
b-1?1:-1)}},t4b=function(a,b){a&1&&(K(0,"div",16),Nf(1,s4b,2,5,null,null,Mf),L());a&2&&(a=b.steps,B(),Of(a))},u4b=function(a){a&1&&(K(0,"li"),Q(1,"I have read "),K(2,"a",57),Q(3,"Chrome Security FAQ"),L(),Q(4,"."),L(),K(5,"li"),Q(6,"I have read "),K(7,"a",58),Q(8,"Reporting Security Bugs"),L(),Q(9,"."),L(),K(10,"li"),Q(11,"I understand reports may be eligible for reward payments under the "),K(12,"a",59),Q(13,"Chrome VRP"),L(),Q(14,"."),L(),K(15,"li"),Q(16,"I understand issues are normally publicized once a fix has been widely deployed."),
L())},w4b=function(a){if(a&1){var b=t();K(0,"h4",5);Q(1,"Which of the following best describes the issue that you are reporting?");L();K(2,"wizard-category-select",52);Cg("categoryChange",function(c){u(b);var d=P();Bg(d.model.category,c)||(d.model.category=c);return v(c)});L();K(3,"mat-card",53)(4,"mat-card-header");Q(5," Ensure quality of issue reports: ");L();K(6,"mat-card-content")(7,"mat-checkbox",54);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.ackIssueQuality,c)||(d.ackIssueQuality=c);
return v(c)});Q(8," By checking this box, I'm acknowledging that: ");K(9,"ul")(10,"li");Q(11,"I have searched for ");K(12,"a",55);Q(13,"existing issues");L();Q(14," that already report this problem.");L();F(15,u4b,17,0);L()()()();K(16,"div",36)(17,"button",39);Q(18," Next ");M(19,"mat-icon",56);L()()}a&2&&(a=P(),B(2),I("persona",a.model.persona),Ag("category",a.model.category),B(5),Ag("ngModel",a.ackIssueQuality),B(5),I("href",a.existingIssuesLink,Ne),B(3),G(a.model.persona===a.Persona.VULN_REPORTER?
15:-1),B(2),I("disabled",!v4b(a,0)))},y4b=function(a){a&1&&(K(0,"div")(1,"h3"),Q(2,"Prefer to file an issue manually?"),L(),K(3,"p"),Q(4," It's usually best to work through this short wizard so that your issue is given the labels needed for the right team to see it. Otherwise it might take longer for your issue to be triaged and resolved. "),L(),K(5,"p"),Q(6," However, if you are a Chromium contributor and none of the other options apply, you may use the regular issue entry "),K(7,"a",55),Q(8,"form"),
L(),Q(9,". "),L()());a&2&&(a=P(),B(7),I("href",a.paths.createIssue(Hg(1,x4b)),Ne))},z4b=function(a){a&1&&(K(0,"mat-error"),Q(1," Summary is required "),L())},A4b=function(a){a&1&&(K(0,"mat-error"),Q(1," Steps to reproduce are required "),L())},B4b=function(a){a&1&&(K(0,"mat-error"),Q(1," Issue description is required "),L())},C4b=function(a){if(a&1){var b=t();K(0,"wizard-custom-questions",60);N("responses",function(c){u(b);var d=P();return v(d.model.customQuestionResponses=c)});L()}a&2&&(a=P(),I("category",
a.model.category.value))},D4b=function(a){if(a&1){var b=t();K(0,"div",47)(1,"b-recaptcha",61);N("onUpdate",function(c){u(b);var d=P();return v(d.recaptchaResponse=c)});L()()}},E4b=function(){},F4b=function(){},G4b=function(){},H4b=function(a,b){var c=[{customFieldId:b.version,textValue:a.version}];a=a.os.filter(function(d){return d!=="Unknown"});a.length>0&&c.push({customFieldId:b.os,repeatedEnumValue:{values:a}});return c},J4b=function(a){return a.length?"# Custom Questions\n"+I4b(a).map(function(b){var c;
return"#### "+((c=b.answerPrefix)!=null?c:b.question)+"\n"+b.response}).join("\n\n"):""},I4b=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,P3b(c.response)?(b.push({type:c.type,question:c.question,response:c.response.text}),b.push.apply(b,q(I4b([c.response.child])))):b.push(c);return b},K4b=function(a){a&1&&(K(0,"a",8),Q(1," Create Component "),L())},L4b=function(a){a&1&&(K(0,"p",16),Q(1," None found. "),K(2,"a",18),Q(3,"Learn More"),L()())},M4b=function(a){a&1&&(Tf(0),
M(1,"b-component-path-card",28,1),Uf());if(a&2){a=qg(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.componentId)}},N4b=function(a,b){a&1&&(K(0,"li")(1,"a",19)(2,"div",20)(3,"span",21),Q(4),M(5,"b-component-access-level-indicator",22)(6,"b-tracker-chip-smart",23),L(),K(7,"p",24),Q(8),L()(),K(9,"div",25)(10,"a",26),Q(11," Edit "),L(),K(12,"a",26),Q(13," Create Issue "),L()()(),K(14,"onedev-hovercard",null,0),E(16,M4b,3,2,"ng-container",27),L()());if(a&2){a=b.$implicit;
b=qg(15);var c=P(2);B();I("routerLinkObj",c.viewIssues(a.componentId));B();I("onedevHovercardTrigger",b);B(2);S(" ",a.name||a.componentId," ");B();I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel)("labelOnlyMode",!0);B();I("trackerId",a.trackerId)("showHovercard",!1);B(2);yg(a.description);B(2);I("routerLinkObj",c.componentSettings(a.componentId));B(2);I("routerLinkObj",c.createIssue(a.componentId))}},O4b=function(a,b){a&1&&(F(0,L4b,4,0,"p",16),K(1,"ol",17),Nf(2,N4b,17,10,"li",null,
Mf),L());a&2&&(G(b.length===0?0:-1),B(2),Of(b))},Q4b=function(a){a&1&&(K(0,"a",23),Q(1," Learn more "),L());a&2&&(P(),I("href",P4b(),Ne))},R4b=function(a){a&1&&(Q(0),T(1,"async"));a&2&&(a=P(2),S(" ",U(1,1,a.suggestedTitle$)," "))},S4b=function(a){a&1&&M(0,"b-spinner")},T4b=function(a,b){if(a&1){var c=t();K(0,"button",17);N("click",function(){var d=u(c).$implicit;P();var e=qg(19),f=P();f.llmSuggestTitleService.generatedTitle.next(null);f.analytics.trackEvent("llm","reject","title-"+String(d));Rr(f.butterBar,
"Thanks for the feedback!",3E3);var g;(g=e.trigger)==null||g.close();return v()});K(1,"span");Q(2);L()()}a&2&&(a=b.$implicit,b=P(2),B(2),yg(b.REJECT_REASON_TO_DISPLAY.get(a)))},V4b=function(a){if(a&1){var b=t();K(0,"div",1)(1,"div",2)(2,"div",3)(3,"span",4);Q(4,"Suggested title");L();K(5,"div",5)(6,"button",6);N("click",function(){u(b);P().llmSuggestTitleService.suggestTitleRequested.next();return v()});M(7,"mat-icon",7);L();K(8,"button",8);N("click",function(){u(b);var c=P();return v(c.close())});
M(9,"mat-icon",9);L()()();K(10,"div",10);F(11,R4b,2,3);T(12,"async");Kf(13,S4b,1,0,"b-spinner");L();K(14,"div",11)(15,"button",12);T(16,"async");N("click",function(){u(b);var c=P();return v(U4b(c))});Q(17," Accept ");L();K(18,"split-button",13,0);T(20,"async");K(21,"button",14);T(22,"async");N("click",function(){u(b);var c=P();c.llmSuggestTitleService.generatedTitle.next(null);c.analytics.trackEvent("llm","reject","title");return v()});Q(23," Reject ");L();K(24,"div",15);Nf(25,T4b,3,1,"button",16,
Mf);L()()()()()}a&2&&(a=P(),B(11),G(U(12,5,a.isGeneratingTitle$)?13:11),B(4),I("disabled",U(16,7,a.isGeneratingTitle$)),B(3),I("size","small")("disabled",!!U(20,9,a.isGeneratingTitle$)),B(3),I("disabled",U(22,11,a.isGeneratingTitle$)),B(4),Of(a.suggestedTitleRejectionReasons))},W4b=function(a){a&1&&(K(0,"a",3),M(1,"mat-icon",5),L())},X4b=function(a){a&1&&M(0,"b-spinner")},Y4b=function(a,b){a&1&&M(0,"b-issues-table",4);a&2&&(a=P(),I("issueIds",b)("tableColumns",a.tableColumns)("options",a.tableOptions))},
Z4b=function(a){var b=a.similarIssues;var c=a.scores;return b.filter(function(d,e){return c[e]>=.65})},$4b=function(a){a&1&&Vf(0)},b5b=function(a){a&1&&(Tf(0),E(1,$4b,1,0,"ng-container",9),Uf());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Ig(2,a5b,a.value)))},c5b=function(a){a&1&&Q(0);a&2&&(a=P(),yg(a.value||"--"))},d5b=function(a){a&1&&(yd(),K(0,"svg",10),M(1,"path",11),L());a&2&&(a=P(),wg("centered",a.centerEditIcon))},e5b=function(a){a&1&&M(0,"textarea",15);
a&2&&(a=P(3),I("formControl",a.editingValue)("required",a.required())("cdkAutosizeMaxRows",a.multilineMaxLines),If("aria-labelledby",a.labelledById))},f5b=function(a){a&1&&M(0,"input",16);a&2&&(a=P(3),I("formControl",a.editingValue),If("aria-labelledby",a.labelledById))},g5b=function(a){a&1&&(Tf(0),K(1,"div",13),E(2,e5b,1,4,"textarea",14)(3,f5b,1,2,"ng-template",null,4,Mg),L(),Uf());if(a&2){a=qg(4);var b=P(2);B(2);I("ngIf",b.allowMultipleLines)("ngIfElse",a)}},h5b=function(a){a&1&&Vf(0)},j5b=function(a){a&
1&&(Tf(0),E(1,h5b,1,0,"ng-container",9),Uf());a&2&&(a=P(2),B(),I("ngTemplateOutlet",a.editorTemplate)("ngTemplateOutletContext",Ig(2,i5b,a.editingValue)))},k5b=function(a){a&1&&E(0,g5b,5,2,"ng-container",12)(1,j5b,2,4,"ng-container",12);a&2&&(a=P(),I("ngIf",!a.editorTemplate),B(),I("ngIf",a.editorTemplate))},l5b=function(a){if(a&1){var b=t();K(0,"b-hotlist-picker",28);N("onApply",function(c){u(b);var d=P();return v(d.handleHotlistPickerSave(c))})("onLoad",function(c){u(b);var d=P();return v(d.loadHotlist(c))})("onCreate",
function(c){u(b);var d=P();return v(d.createHotlist(c))});L()}a&2&&(a=P(),I("selectedHotlistIds",a.selectedHotlistIds)("choices",a.hotlists))},m5b=function(a,b){a&1&&(K(0,"a",13),Q(1,"View recent issues"),L());a&2&&(a=P(),I("routerLinkObj",a.recentIssuesInComponent(b)))},q5b=function(a){a&1&&(K(0,"div",29),M(1,"b-icon",30),K(2,"span"),Q(3),L(),K(4,"a",31),Q(5,"View access settings"),L()());a&2&&(a=P(),wg("partner",n5b(a))("public",o5b(a)),B(),I("name","alert")("size","small"),B(2),S("",p5b(a),"\u00a0"),
B(),I("href",a.selectedComponent?qs.editComponentAccess.makeHref(a.selectedComponent.componentId):"",Ne))},t5b=function(a){a&1&&(K(0,"div",32),Q(1),L());a&2&&(a=P(2),B(),S(" Error: The following required field(s) have not been filled: ",r5b(a).concat(s5b(a)).join(", ")," "))},u5b=function(a){a&1&&(K(0,"li"),Q(1),L());if(a&2){a=P(3);B();var b=[];a.isBlockedByIssueIdValid||b.push('"Blocked by"');a.isBlockingIssueIdValid||b.push('"Blocking"');a.isParentIssueIdsValid||b.push('"Parents"');yg(b?b.join(" & ")+
" must be"+((b.length<=1?" a":"")+" comma separated list")+((b.length>1?"s":"")+" of issue IDs"):"")}},v5b=function(a){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=P(3),B(),S(" Collaborators: you cannot add ",a.invalidCollaboratorsInput.join(", ")," "))},w5b=function(a){a&1&&(K(0,"div",32),Q(1," Error: The following field(s) have invalid values: "),K(2,"ul"),F(3,u5b,2,1,"li"),F(4,v5b,2,1,"li"),L()());a&2&&(a=P(2),B(3),G(a.isBlockedByIssueIdValid&&a.isBlockingIssueIdValid&&a.isParentIssueIdsValid?-1:3),B(),G(a.isCollaboratorsValid?
-1:4))},x5b=function(a){a&1&&(K(0,"div",32),Q(1," Error: There is at least one upload ongoing. Please cancel or wait for it to be finished. "),L())},z5b=function(a){a&1&&(K(0,"div",18),F(1,t5b,2,1,"div",32),F(2,w5b,5,2,"div",32),F(3,x5b,2,0,"div",32),L());a&2&&(a=P(),B(),G(r5b(a).length!==0||s5b(a).length!==0?1:-1),B(),G(a.isBlockedByIssueIdValid&&a.isBlockingIssueIdValid&&a.isParentIssueIdsValid&&a.isCollaboratorsValid?-1:2),B(),G(y5b(a.comment)?3:-1))},A5b=function(a,b){if(a&1){var c=t();K(0,"div",
33)(1,"b-hotlist-chip",34);N("removeHotlist",function(){var d=u(c).$implicit,e=P(2);return v(e.removeHotlist(d.hotlistId))});L()()}a&2&&(a=b.$implicit,B(),I("hotlist",a))},B5b=function(a){a&1&&(K(0,"div",19),Nf(1,A5b,2,1,"div",33,Mf),L());a&2&&(a=P(),B(),Of(a.selectedHotlists))},C5b=function(a,b){if(a&1){var c=t();K(0,"button",40);N("click",function(){var d=u(c).$implicit;P(2).selectedTemplate=d;return v()});Q(1);L()}a&2&&(a=b.$implicit,B(),yg(a.name))},D5b=function(a){if(a&1){var b=t();K(0,"button",
40);N("click",function(){u(b);var c=P(2);c.selectedTemplate=c.availableExistingIssueTemplate;return v()});Q(1);L()}a&2&&(a=P(2),B(),yg(a.availableExistingIssueTemplate.name))},E5b=function(a){a&1&&(K(0,"div",26)(1,"div",22)(2,"label",35),Q(3,"Template"),L()(),K(4,"button",36),Q(5),M(6,"mat-icon",37),L(),K(7,"mat-menu",38,2),Nf(9,C5b,2,1,"button",39,Mf),F(11,D5b,2,1,"button",39),L()());if(a&2){a=qg(8);var b=P();B(4);I("matMenuTriggerFor",a);B();var c;S("",(c=b.selectedTemplate==null?null:b.selectedTemplate.name)!=
null?c:""," ");B(2);I("overlapTrigger",!0);B(2);Of(b.availablePredefinedTemplates);B(2);G(b.availableExistingIssueTemplate?11:-1)}},F5b=function(a){a&1&&(K(0,"div",27)(1,"div",32),Q(2," You do not have permission to create issues in this component. "),L()())},G5b=function(a){a&1&&M(0,"llm-suggest-title-button",44);a&2&&(a=P(2),I("description",a.comment))},I5b=function(a){if(a&1){var b=t();K(0,"llm-suggest-title-preview",63);N("suggestionAccepted",function(c){u(b);var d=P(2);d.setTitle(c);return v(H5b(d))});
L()}},J5b=function(a){a&1&&(K(0,"p",45),Q(1),K(2,"a",64),Q(3," Learn more "),L()());a&2&&(a=P(2),B(),S(" Your title contains restricted words: ",Bs(a.titleBannedWordsChecker),". Review your title before posting. "))},K5b=function(a,b){if(a&1){var c=t();K(0,"button",67);N("click",function(){var d=u(c).$implicit,e=P(3);return v(e.setPriority(d.value))});Q(1);L()}a&2&&(a=b.$implicit,B(),yg(a.displayText))},L5b=function(a){if(a&1){var b=t();K(0,"div",26)(1,"div",22)(2,"label",65);Q(3,"Priority");L()();
K(4,"button",66);Q(5);M(6,"mat-icon",37);L();K(7,"mat-menu",38,3)(9,"button",67);N("click",function(){u(b);var d=P(2);return v(d.setPriority())});Q(10,"--");L();Nf(11,K5b,2,1,"button",68,Mf);L()()}if(a&2){a=qg(8);var c=P(2);B(4);I("matMenuTriggerFor",a);If("aria-label","Priority, required"+(c.issue.priority?", "+c.issue.priority:""));B();S("",c.issue.priority?c.issue.priority:"--"," ");B(2);I("overlapTrigger",!0);B(4);Of(c.priorityChoices)}},M5b=function(a){a&1&&M(0,"mat-divider")},N5b=function(a){a&
1&&M(0,"mat-icon",71);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},O5b=function(a,b){if(a&1){var c=t();F(0,M5b,1,0,"mat-divider");K(1,"button",70);N("click",function(){var e=u(c).$implicit,f=P(3);return v(f.setIssueType(e.value))});F(2,N5b,1,1,"mat-icon",71);Q(3);L()}if(a&2){a=b.$implicit;b=b.$index;var d=P(3);G(b>0&&d.issueTypeChoices[b].group!=d.issueTypeChoices[b-1].group?0:-1);B();I("matTooltip",a.altText||"");B();G(a.icon?2:-1);B();S(" ",a.displayText," ")}},P5b=function(a){if(a&1){var b=t();
K(0,"div",26)(1,"div",22)(2,"label",69);Q(3,"Type");L()();K(4,"button",66);T(5,"enumToHuman");Q(6);T(7,"enumToHuman");M(8,"mat-icon",37);L();K(9,"mat-menu",38,4)(11,"button",67);N("click",function(){u(b);var d=P(2);return v(d.setIssueType())});Q(12,"--");L();Nf(13,O5b,4,4,null,null,Mf);L()()}if(a&2){a=qg(10);var c=P(2);B(4);I("matMenuTriggerFor",a);If("aria-label","Type, required"+(c.issue.type?U(5,4,", "+c.issue.type):""));B(2);S("",U(7,6,c.issue.type||"--")," ");B(3);I("overlapTrigger",!0);B(4);
Of(c.issueTypeChoices)}},Q5b=function(a){if(a&1){var b=t();K(0,"div",46)(1,"div",22)(2,"label",72);Q(3,"Assignee");L()();K(4,"div",73)(5,"b-peoplekit-single",74);N("emailChange",function(d){u(b);var e=P(2);return v(e.handleAutocompleteSelection(d,"assignee"))});L()()()}if(a&2){a=P(2);B(5);var c;I("email",(c=a.assigneeText)!=null?c:"")}},R5b=function(a){a&1&&(K(0,"mat-error"),Q(1," Collaborators only accepts individual users. "),L())},S5b=function(a){if(a&1){var b=t();K(0,"div",47)(1,"div",22)(2,"label",
75);Q(3,"Collaborators");L();M(4,"mat-icon",76);L();K(5,"div",73)(6,"b-peoplekit-multi",77,5);Cg("valueChange",function(c){u(b);var d=P(2);Bg(d.collaboratorsText,c)||(d.collaboratorsText=c);return v(c)});L()();F(8,R5b,2,0,"mat-error");L()}a&2&&(a=P(2),B(6),wg("invalid",!a.isCollaboratorsValid),I("ariaLabel","Addition to Collaborators"),Ag("value",a.collaboratorsText),B(2),G(!a.isCollaboratorsValid&&a.submitRequested?8:-1))},T5b=function(a){if(a&1){var b=t();K(0,"div",48)(1,"div",22)(2,"label",78);
Q(3,"CC");L()();K(4,"div",73)(5,"b-peoplekit-multi",79,5);Cg("valueChange",function(c){u(b);var d=P(2);Bg(d.ccsText,c)||(d.ccsText=c);return v(c)});L()()()}a&2&&(a=P(2),B(5),I("ariaLabel","Addition to CCs"),Ag("value",a.ccsText))},U5b=function(a){a&1&&(K(0,"p",52),Q(1),K(2,"a",64),Q(3," Learn more "),L()());a&2&&(a=P(2),B(),S(" Your description contains restricted words: ",Bs(a.descriptionBannedWordsChecker),". Review your description before posting. "))},V5b=function(a){a&1&&Vf(0)},W5b=function(a){a&
1&&(K(0,"div",21)(1,"div",22)(2,"label",82),Q(3," Collaborator Groups "),L(),M(4,"mat-icon",83),L(),E(5,V5b,1,0,"ng-container",84),L());if(a&2){a=P(3);var b=qg(30);B(4);I("matTooltip",Dg(a.COLLABORATOR_GROUPS_TOOLTIP));B();I("ngTemplateOutlet",b)}},X5b=function(a){if(a&1){var b=t();K(0,"div",54)(1,"div",21)(2,"div",22)(3,"label",80);Q(4," Issue access level ");L()();K(5,"b-issue-access-limits-dropdown",81);N("updatedAccessLimitLevel",function(c){u(b);var d=P(2);return v(d.onAccessLimitLevelSelected(c))});
L()();F(6,W5b,6,3,"div",21);L()}a&2&&(a=P(2),B(5),I("disabled",!1)("implicitAccessEnabled",a.componentHasExpandedAccessEnabled)("defaultAccessLimitLevel",a.selectedAccessLimitLevel),B(),G(a.trackerCollaboratorGroups.length>0?6:-1))},Y5b=function(a,b){if(a&1){var c=t();K(0,"button",67);N("click",function(){var d=u(c).$implicit,e=P(3);return v(e.issue.severity=e.toIssueSeverity(d.value))});Q(1);L()}a&2&&(a=b.$implicit,B(),yg(a.displayText))},$5b=function(a){if(a&1){var b=t();K(0,"div",108)(1,"div",
22)(2,"label",109);Q(3," Staffing ");L()();K(4,"button",110);T(5,"staffingSummary");N("click",function(){u(b);var d=P(3);return v(d.editStaffing())});K(6,"span",111);Q(7);T(8,"staffingSummary");L();M(9,"mat-icon",112);L()();M(10,"div",55)}if(a&2){a=P(3);B(4);var c;If("aria-label","Staffing: "+U(5,2,(c=a.issue.staffing==null?null:a.issue.staffing.plannedAllocations)!=null?c:Hg(6,Z5b)));B(3);S(" ",U(8,4,a.issue.staffing==null?null:a.issue.staffing.plannedAllocations)," ")}},a6b=function(a){a&1&&(K(0,
"span"),Q(1,"*"),L())},b6b=function(a){a&1&&(K(0,"span"),Q(1,"*"),L())},c6b=function(a){a&1&&(K(0,"span"),Q(1,"*"),L())},e6b=function(a){if(a&1){var b=t();K(0,"div",92)(1,"div",22)(2,"label",113);Q(3," Parents ");F(4,c6b,2,0,"span");L()();K(5,"input",114);N("ngModelChange",function(c){u(b);var d=P(3);d.parentIssueIds=d6b(d,c).map(N$a);d.isParentIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(ku(d.parentIssueIds));return v()});L()()}a&2&&(a=P(3),B(4),G(a.isParentIssueIdsValid?-1:4),B(),I("ngModel",a.joinStringArray(a.parentIssueIds)))},
f6b=function(a){a&1&&(K(0,"span"),Q(1,"*"),L())},g6b=function(a){if(a&1){var b=t();K(0,"div",92)(1,"div",22)(2,"label",115);Q(3," Children ");F(4,f6b,2,0,"span");L()();K(5,"input",116);N("ngModelChange",function(c){u(b);var d=P(3);d.childrenIssueIds=d6b(d,c).map(N$a);d.isChildIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(ku(d.childrenIssueIds));return v()});L()()}a&2&&(a=P(3),B(4),G(a.isChildIssueIdsValid?-1:4),B(),I("ngModel",a.joinStringArray(a.childrenIssueIds)))},h6b=function(a){if(a&1){var b=t();
K(0,"div",92)(1,"div",22)(2,"label",80);Q(3," Issue access level ");L()();K(4,"b-issue-access-limits-dropdown",117);N("updatedAccessLimitLevel",function(c){u(b);var d=P(3);return v(d.onAccessLimitLevelSelected(c))});L()()}a&2&&(a=P(3),B(4),I("disabled",!1)("defaultAccessLimitLevel",a.selectedAccessLimitLevel)("implicitAccessEnabled",a.componentHasExpandedAccessEnabled))},i6b=function(a){a&1&&Vf(0)},j6b=function(a){a&1&&(K(0,"div",21)(1,"div",22)(2,"label",82),Q(3," Collaborator Groups "),L(),M(4,
"mat-icon",83),L(),E(5,i6b,1,0,"ng-container",84),L());if(a&2){a=P(3);var b=qg(30);B(4);I("matTooltip",Dg(a.COLLABORATOR_GROUPS_TOOLTIP));B();I("ngTemplateOutlet",b)}},k6b=function(a){if(a&1){var b=t();K(0,"onedev-text-field",122);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()}if(a&2){a=P(2).$implicit;var c=P(3);I("id",Eg("bv2-custom-field-",a.customFieldId))("value",a.textValue)("required",c.isCustomFieldRequired(a))("labelledById","bv2-custom-field-"+
a.customFieldId+"-label")}},l6b=function(a){if(a&1){var b=t();K(0,"onedev-numeric-field",123);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()}if(a&2){a=P(2).$implicit;var c=P(3);I("id",Eg("bv2-custom-field-",a.customFieldId))("value",a.numericValue)("required",c.isCustomFieldRequired(a));If("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},m6b=function(a){if(a&1){var b=t();K(0,"div")(1,"bv2-input-date-picker",124);N("boundValueChange",
function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()()}if(a&2){a=P(2).$implicit;var c=P(3);B();I("bv2AriaLabelledby",Dg("bv2-custom-field-"+a.customFieldId+"-label"))("boundValue",a.dateValue)("isRequired",c.isCustomFieldRequired(a))("bv2Id","bv2-custom-field-"+a.customFieldId)}},n6b=function(a){if(a&1){var b=t();K(0,"onedev-single-select",125);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()}if(a&2){a=P(2).$implicit;
var c=P(3);I("value",a.enumValue)("options",c.getCustomFieldAllowedValues(a))("includeEmptyOption",!0)("labelledById","bv2-custom-field-"+a.customFieldId+"-label")}},o6b=function(a,b){a&1&&(K(0,"div"),F(1,k6b,1,5,"onedev-text-field",119),F(2,l6b,1,5,"onedev-numeric-field",120),F(3,m6b,2,5,"div"),F(4,n6b,1,4,"onedev-single-select",121),L());a&2&&(a=P(4),B(),G(b===a.FieldType.TEXT?1:-1),B(),G(b===a.FieldType.NUMERIC?2:-1),B(),G(b===a.FieldType.DATE?3:-1),B(),G(b===a.FieldType.ENUM?4:-1))},p6b=function(a,
b){if(a&1){var c=t();K(0,"div")(1,"b-list-field",126);N("valuesChange",function(e){u(c);var f=P().$implicit,g=P(3);return v(g.setCustomFieldValue(f,e.values))});L()()}if(a&2){a=P().$implicit;var d=P(3);B();I("defaultLineCount",2)("type",b)("values",d.getListFieldValues(a))("enumChoices",d.customFieldAllowedValuesMap[a.customFieldId]||null)("truncate",!0)("isRequired",d.isCustomFieldRequired(a));If("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},q6b=function(a,b){a&1&&(K(0,"div",
92)(1,"div",22)(2,"label",118),Q(3),L()(),F(4,o6b,5,4,"div"),F(5,p6b,2,7,"div"),L());if(a&2){var c,d;a=b.$implicit;b=P(3);B(2);wg("required",b.isCustomFieldRequired(a));var e=I("id",Eg("bv2-custom-field-",a.customFieldId,"-label")),f=b.customFieldMap[a.customFieldId];e("matTooltip",Dg((f&&f.description?f.description:"Custom Field")+" [ID: "+a.customFieldId+"]"));f=(e=b.customFieldMap[a.customFieldId])?e.name:"";e&&b.canEditIssuesInComponent&&b.customFieldMap[a.customFieldId].required&&(f+=", required field");
If("aria-label",f);B();S(" ",b.getCustomFieldName(a)," ");B();G((c=b.getSingleEditFieldType(b.customFieldMap[a.customFieldId]))?4:-1,c);B();G((d=b.getListFieldType(b.customFieldMap[a.customFieldId]))?5:-1,d)}},r6b=function(a){if(a&1){var b=t();K(0,"mat-expansion-panel",57)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",85);Q(4,"Advanced fields (Required fields marked with");K(5,"span",86);Q(6,"*");L();Q(7,")");L()()();K(8,"div",87)(9,"div",88)(10,"div",22)(11,"label",89);Q(12," Severity ");
L()();K(13,"button",90);Q(14);M(15,"b-icon",91);L();K(16,"mat-menu",38,6);Nf(18,Y5b,2,1,"button",68,Mf);L()();K(20,"div",92)(21,"div",22)(22,"label",93);Q(23," Found in ");L()();K(24,"input",94);N("ngModelChange",function(f){u(b);var g=P(2);return v(g.issue.foundInVersion=g.parseStringArray(f))});L()();K(25,"div",95)(26,"div",22)(27,"label",96);Q(28," In prod ");L()();K(29,"mat-slide-toggle",97);Cg("ngModelChange",function(f){u(b);var g=P(2);Bg(g.issue.inProd,f)||(g.issue.inProd=f);return v(f)});
L()();M(30,"div",55);F(31,$5b,11,7);K(32,"div",92)(33,"div",22)(34,"label",98);Q(35," Reporter ");L()();K(36,"b-peoplekit-single",99);N("emailChange",function(f){u(b);var g=P(2);return v(g.handleAutocompleteSelection(f,"reporter"))});L()();K(37,"div",92)(38,"div",22)(39,"label",100);Q(40," Verifier ");L()();K(41,"b-peoplekit-single",101);N("emailChange",function(f){u(b);var g=P(2);return v(g.handleAutocompleteSelection(f,"verifier"))});L()();K(42,"div",92)(43,"div",22)(44,"label",102);Q(45," Targeted to ");
L()();K(46,"input",103);N("ngModelChange",function(f){u(b);var g=P(2);return v(g.issue.targetedToVersion=g.parseStringArray(f))});L()();M(47,"div",55);K(48,"div",92)(49,"div",22)(50,"label",104);Q(51," Blocked by ");F(52,a6b,2,0,"span");L()();K(53,"input",105);N("ngModelChange",function(f){u(b);var g=P(2);g.issue.blockedByIssueId=d6b(g,f);g.isBlockedByIssueIdValid=g.ISSUE_ID_LIST_PATTERN.test(ku(g.issue.blockedByIssueId));return v()});L()();K(54,"div",92)(55,"div",22)(56,"label",106);Q(57," Blocking ");
F(58,b6b,2,0,"span");L()();K(59,"input",107);N("ngModelChange",function(f){u(b);var g=P(2);g.issue.blockingIssueId=d6b(g,f);g.isBlockingIssueIdValid=g.ISSUE_ID_LIST_PATTERN.test(ku(g.issue.blockingIssueId));return v()});L()();F(60,e6b,6,2,"div",92);F(61,g6b,6,2,"div",92);M(62,"div",55);F(63,h6b,5,3,"div",92);F(64,j6b,6,3,"div",21);M(65,"div",55);Nf(66,q6b,6,10,"div",92,Mf);L()()}if(a&2){a=qg(17);var c=P(2);B(13);I("matMenuTriggerFor",a);If("aria-label","Severity"+(c.issue.severity?", "+c.issue.severity:
""));B();yg(c.issue.severity);B(2);I("overlapTrigger",!0);B(2);Of(c.severityChoices);B(6);I("ngModel",c.joinStringArray(c.originalIssueCopy.foundInVersion));B(5);Ag("ngModel",c.issue.inProd);B(2);G(c.sessionIsExternal?-1:31);B(5);var d;I("email",(d=c.reporterText)!=null?d:"");B(5);var e;I("email",(e=c.verifierText)!=null?e:"");B(5);I("ngModel",c.joinStringArray(c.originalIssueCopy.targetedToVersion));B(6);G(c.isBlockedByIssueIdValid?-1:52);B();I("ngModel",c.joinStringArray(c.issue.blockedByIssueId));
B(5);G(c.isBlockingIssueIdValid?-1:58);B();I("ngModel",c.joinStringArray(c.issue.blockingIssueId));B();G(c.sessionIsExternal?-1:60);B();G(c.sessionIsExternal?-1:61);B(2);G(nt(c.selectedComponent)?-1:63);B();G(c.trackerCollaboratorGroups.length>0&&!nt(c.selectedComponent)?64:-1);B(2);Of(c.issue.customField)}},s6b=function(a,b){a&1&&M(0,"similar-issues",127);a&2&&(a=P(3),I("context",b)("componentId",a.issue.componentId))},t6b=function(a){a&1&&(F(0,s6b,1,2,"similar-issues",127),T(1,"async"));if(a&2){var b;
a=P(2);G((b=U(1,1,a.similarIssuesSearchString$))?0:-1,b)}},u6b=function(a){a&1&&(K(0,"div",29),M(1,"b-icon",30),K(2,"span"),Q(3),L(),K(4,"a",31),Q(5,"View access settings"),L()());a&2&&(a=P(2),wg("partner",n5b(a))("public",o5b(a)),B(),I("name","alert")("size","small"),B(2),S("",p5b(a),"\u00a0"),B(),I("href",a.selectedComponent?qs.editComponentAccess.makeHref(a.selectedComponent.componentId):"",Ne))},v6b=function(a){if(a&1){var b=t();K(0,"div",58)(1,"b-recaptcha",128);N("onUpdate",function(c){u(b);
var d=P(2);return v(d.recaptchaResponse=c)});L()()}},y6b=function(a){if(a&1){var b=t();K(0,"div")(1,"div",20)(2,"div",21)(3,"div",22)(4,"label",41);Q(5,"Title");L()();K(6,"div",42)(7,"input",43);T(8,"async");N("ngModelChange",function(e){u(b);var f=P();return v(f.setTitle(e))})("blur",function(){u(b);var e=P();return v(H5b(e))});L();F(9,G5b,1,1,"llm-suggest-title-button",44);L();F(10,I5b,1,0,"llm-suggest-title-preview");F(11,J5b,4,1,"p",45);T(12,"async");L();F(13,L5b,13,4,"div",26);F(14,P5b,15,8,
"div",26);L();Tf(15);K(16,"div",20);F(17,Q5b,6,1,"div",46);F(18,S5b,9,5,"div",47);L();K(19,"div",20);F(20,T5b,7,2,"div",48);L();Uf();K(21,"div",49)(22,"div",20)(23,"div",21)(24,"div",22)(25,"label",50);Q(26,"Description");L()();K(27,"b-comment-box",51);T(28,"async");Cg("commentChange",function(e){u(b);var f=P();Bg(f.comment,e)||(f.comment=e);return v(e)});N("onChange",function(){u(b);var e=P();return v(e.saveCommentDraft())})("onSubmit",function(e){u(b);var f=P();return v(w6b(f,e,!e.shiftKey))})("onRestrict",
function(){u(b);var e=P();return v(e.showNewContentJudgementDialog())});F(29,U5b,4,1,"p",52);T(30,"async");K(31,"b-markdown-toggle",53);N("change",function(e){u(b);var f=P();return v(f.comment.formattingMode=e)});L()()()();F(32,X5b,7,4,"div",54);M(33,"div",55);K(34,"div",56);F(35,r6b,68,18,"mat-expansion-panel",57);L();F(36,t6b,2,3);F(37,u6b,6,8,"div",17);F(38,v6b,2,0,"div",58);K(39,"div",59)(40,"b-button",60);T(41,"async");T(42,"async");N("onAction",function(e){u(b);var f=P();return v(w6b(f,e,!0))});
Q(43);T(44,"async");T(45,"async");L();K(46,"b-button",61);T(47,"async");T(48,"async");N("onAction",function(e){u(b);var f=P();return v(w6b(f,e,!1))});Q(49);T(50,"async");T(51,"async");L();K(52,"b-button",62);N("onAction",function(){u(b);var e=P();return v(e.discard())});Q(53," Discard ");L()()()()}if(a&2){a=P();B(7);var c;wg("invalid",(c=U(8,39,a.titleBannedWordsChecker.showWarning$))!=null?c:!1);I("ngModel",a.issue.title)("bFocus",a.newIssueStarted);B(2);G(a.enableSuggestTitle?9:-1);B();G(a.enableSuggestTitle?
10:-1);B();G(U(12,41,a.titleBannedWordsChecker.showWarning$)?11:-1);B(2);G(a.canEditIssuesInComponent?13:-1);B();G(a.canEditIssuesInComponent?14:-1);B(3);G(a.canEditIssuesInComponent?17:-1);B();G(a.canEditIssuesInComponent?18:-1);B(2);G(a.canEditIssuesInComponent?20:-1);B(7);wg("bv2-upload-ongoing",y5b(a.comment));I("supportsPreview",!0);Ag("comment",a.comment);var d;I("disabled",a.isSaving)("judgementForNewContent",a.judgementForNewContent)("placeholder",a.piiWarningMessage)("idForAriaLabel",a.descriptionBoxId)("audience",
a.audience)("showRestrictionOptions",a.canEditIssuesInComponent)("warn",(d=U(28,43,a.descriptionBannedWordsChecker.showWarning$))!=null?d:!1)("canEditIssuesInComponent",a.canEditIssuesInComponent)("isLiteralModeSupported",a.isLiteralModeSupported());B(2);G(U(30,45,a.descriptionBannedWordsChecker.showWarning$)?29:-1);B(2);I("initialValue",a.comment.formattingMode);B();G(a.canEditIssuesInComponent&&nt(a.selectedComponent)?32:-1);B(3);G(a.canEditIssuesInComponent?35:-1);B();G(a.issue.componentId&&!a.submitRequested?
36:-1);B();G(n5b(a)||o5b(a)?37:-1);B();G(a.enableRecaptcha?38:-1);B(2);I("disabled",x6b(a))("color",U(41,47,a.titleBannedWordsChecker.showWarning$)||U(42,49,a.descriptionBannedWordsChecker.showWarning$)?"warn":"primary");B(3);S(" ",U(44,51,a.titleBannedWordsChecker.showWarning$)||U(45,53,a.descriptionBannedWordsChecker.showWarning$)?"Create Anyway":"Create"," ");B(3);I("disabled",x6b(a))("color",U(47,55,a.titleBannedWordsChecker.showWarning$)||U(48,57,a.descriptionBannedWordsChecker.showWarning$)?
"warn":"primary");B(3);S(" ",U(50,59,a.titleBannedWordsChecker.showWarning$)||U(51,61,a.descriptionBannedWordsChecker.showWarning$)?"Create Anyway & Start Another":"Create & Start Another"," ");B(3);I("disabled",x6b(a))}},z6b=function(a,b){a&1&&(K(0,"h2",129),Q(1,"This component has a default description"),L(),K(2,"mat-dialog-content"),Q(3," You have already entered a description, but the component you chose has a default description: "),K(4,"div",130),Q(5),L()(),K(6,"mat-dialog-actions")(7,"button",
131),Q(8,"Use component description"),L(),K(9,"button",132),Q(10,"Keep my description"),L()());a&2&&(a=b.$implicit,B(5),yg(a),B(2),I("mat-dialog-close",!0))},A6b=function(a,b){a&1&&(K(0,"mat-option",135),Q(1),L());a&2&&(a=b.$implicit,I("value",Dg(a)),B(),S(" ",a," "))},C6b=function(a){if(a&1){var b=t();K(0,"mat-form-field",133)(1,"mat-select",134);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.collaboratorGroupsText,c)||(d.collaboratorGroupsText=c);return v(c)});K(2,"mat-select-trigger");Q(3);
L();Nf(4,A6b,2,3,"mat-option",135,Mf);L()()}a&2&&(a=P(),B(),Ag("ngModel",a.collaboratorGroupsText),I("ngModelOptions",Hg(3,B6b)),B(2),yg(a.getCollaboratorGroupsString()),B(),Of(a.trackerCollaboratorGroups))},D6b=function(a,b){b.assigneeText=tm(a.assigneeUser);b.reporterText=tm(a.reporterUser);b.verifierText=tm(a.verifierUser);var c;b.collaboratorsText=ku(((c=a.collaboratorsUsers)!=null?c:[]).map(tm));var d;b.ccsText=ku(((d=a.ccUsers)!=null?d:[]).map(tm))},E6b=function(a,b){var c=a.assigneeText;c===
null?c=null:(c=c.trim(),c=c.endsWith(",")?c.slice(0,c.length-1):c);a.assigneeText=c;a.assigneeText!=null&&(b.assigneeUser=xm(a.assigneeText));a.reporterText!=null&&(b.reporterUser=xm(a.reporterText));a.verifierText!=null&&(b.verifierUser=xm(a.verifierText));b.collaboratorsUsers=dRa(lu(a.collaboratorsText));b.ccUsers=dRa(lu(a.ccsText))},G6b=function(a,b){for(var c=m(Object.keys(b)),d=c.next();!d.done;d=c.next()){d=d.value;var e=b[d],f=F6b[d];d==="customField"||mm(e,f)||(Array.isArray(e)?a[d]?(e=JQa([].concat(q(e),
q(a[d]))),a[d]=e):a[d]=e:e!==""&&(a[d]=e))}},H6b=function(a){a=Object.assign({},a);return delete a.hotlistId,a},I6b=function(a){var b={};a=m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.customFieldId]=c;return b},J6b=function(a){var b={};a=m(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},lu=function(a){return a.split(",").map(function(b){return b.trim()}).filter(Boolean)},ku=
function(a){return a?a.join(", "):""},K6b=function(a){a&1&&M(0,"b-star-toggle",6);a&2&&I("starMessage","You are an admin of this bookmark group, and cannot star/unstar it.")("unStarMessage","You are an admin of this bookmark group, and cannot star/unstar it.")("starred",!0)("disabled",!0)},L6b=function(a){if(a&1){var b=t();K(0,"b-star-toggle",10);N("starClicked",function(){u(b);var c=P(2);return v(c.toggleStar())});L()}a&2&&(a=P(2),I("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",
a.isStarred))},M6b=function(a){if(a&1){var b=t();K(0,"div")(1,"div",5);F(2,K6b,1,4,"b-star-toggle",6)(3,L6b,1,3,"b-star-toggle",7);K(4,"span",8);Q(5);K(6,"span")(7,"button",9);N("click",function(){u(b);var c=P();return v(c.editBookmarkGroup())});L()()()()()}a&2&&(a=P(),B(2),G(a.isAdmin?2:3),B(3),S("",a.bookmarkGroup.name," "))},P6b=function(a){if(a&1){var b=t();K(0,"b-saved-search-panel",13);N("focusedRowIndexChange",function(f){u(b);var g=P().$implicit,k=P();return v(N6b(k,g,f))})("selectionChange",
function(f){u(b);var g=P(2);return v(O6b(g,f))})("resultsLoaded",function(f){u(b);var g=P(2);return v(g.loadHotlists(f))});L()}if(a&2){var c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P();I("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("savedSearchId",e.String(a.resourceId))("first",d===0)("last",d===c-1)}},Q6b=function(a){if(a&1){var b=t();K(0,"b-hotlist-panel",14);N("focusedRowIndexChange",function(f){u(b);var g=P().$implicit,k=P();return v(N6b(k,g,f))})("selectionChange",
function(f){u(b);var g=P(2);return v(O6b(g,f))})("resultsLoaded",function(f){u(b);var g=P(2);return v(g.loadHotlists(f))});L()}if(a&2){var c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P();I("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("hotlistId",e.Number(a.resourceId))("first",d===0)("last",d===c-1)}},R6b=function(a,b){a&1&&(K(0,"div"),F(1,P6b,1,6,"b-saved-search-panel",11)(2,Q6b,1,6,"b-hotlist-panel",12),L());if(a&2){var c;a=b.$implicit;B();G((c=a.type)===
"SAVED_SEARCH"?1:c==="HOTLIST"?2:-1)}},S6b=function(a){if(a&1){var b=t();K(0,"button",10);N("click",function(){u(b);var c=P();return v(c.archive())});Q(1," Archive bookmark group ");L()}a&2&&(a=P(),I("disabled",a.hasUnsavedChanges()||a.isSaving()))},T6b=function(a){if(a&1){var b=t();K(0,"button",10);N("click",function(){u(b);var c=P();return v(c.unarchive())});Q(1," Unarchive bookmark group ");L()}a&2&&(a=P(),I("disabled",a.hasUnsavedChanges()||a.isSaving()))},U6b=function(a){a&1&&(K(0,"span",12),
Q(1," (archived) "),L())},W6b=function(a,b){if(a&1){var c=t();K(0,"div")(1,"b-hotlist-chip-smart",44);N("removeHotlist",function(){var d=u(c),e=P(4);return v(V6b(e,d))});L()()}a&2&&(B(),I("id",b))},Y6b=function(a,b){if(a&1){var c=t();K(0,"div",42)(1,"a",45);Q(2);L();K(3,"span",46);N("click",function(){var e=u(c),f=P(4);return v(X6b(f,e))})("keydown.enter",function(){var e=u(c),f=P(4);return v(X6b(f,e))})("keydown.space",function(){var e=u(c),f=P(4);return v(X6b(f,e))});Q(4," \u00d7 ");L()()}if(a&
2){a=P().$implicit;var d=P(3);B();I("href",d.paths.viewSavedSearch(b),Ne)("matTooltip","Go to saved search: "+d.getDisplayName(a));B();S(" S: ",d.getDisplayName(a)," ");B();I("matTooltip","Remove item: "+d.getDisplayName(a));If("aria-label","Remove item: "+d.getDisplayName(a))}},Z6b=function(a){a&1&&(K(0,"span",43),Q(1,"<None>"),L())},$6b=function(a,b){a&1&&(K(0,"div",33),F(1,W6b,2,1,"div"),F(2,Y6b,5,5,"div",42),F(3,Z6b,2,0,"span",43),L());if(a&2){var c;a=b.$implicit;b=P(3);B();var d;var e=a.resourceType===
"HOTLIST"?(d=a.hotlistId)==null?void 0:d.toString():void 0;G(e?1:-1,e);B();G((c=a.resourceType==="SAVED_SEARCH"?a.savedSearchId:void 0)?2:-1,c);B();G(b.bookmarkGroupUnderEdit.item.length?-1:3)}},b7b=function(a,b){if(a&1){var c=t();K(0,"button",53);N("click",function(){var d=u(c).$implicit,e=P(5);return v(a7b(e,d))});Q(1);L()}a&2&&(a=b.$implicit,B(),S("",a.name," "))},c7b=function(a){a&1&&Nf(0,b7b,2,1,"button",52,Mf);a&2&&(a=P(4),Of(a.savedSearchChoices))},d7b=function(a){a&1&&(K(0,"div",41)(1,"label",
47),Q(2,"Add from saved searches:"),L(),K(3,"button",48)(4,"span",49),Q(5,"Select"),L(),M(6,"mat-icon",50),L(),K(7,"mat-menu",null,2),E(9,c7b,2,0,"ng-template",51),L()());a&2&&(a=qg(8),B(3),I("matMenuTriggerFor",a))},i7b=function(a){if(a&1){var b=t();K(0,"div",18)(1,"label",31)(2,"span",20);Q(3,"Selected items");L()();K(4,"div",32,1);Nf(6,$6b,4,3,"div",33,Mf);L()();K(8,"div",34)(9,"div",35)(10,"label",36);Q(11,"Add hotlist from favorites:");L();K(12,"b-hotlist-picker",37);N("onApply",function(c){u(b);
var d=P(2);return v(e7b(d,c))})("onCreate",function(c){u(b);var d=P(2);return v(f7b(d,c))})("onLoad",function(c){u(b);var d=P(2);return v(g7b(d,c))});L()();K(13,"div",38)(14,"label",39);Q(15,"Add hotlist by query:");L();K(16,"b-hotlist-search",40);N("itemSelect",function(c){u(b);var d=P(2);"hotlistId"in c&&!d.selectedHotlistIds[0].includes(c.hotlistId)&&(h7b(d,c.hotlistId),d.bookmarkGroupUnderEdit.item.push({name:c.name,resourceType:"HOTLIST",hotlistId:c.hotlistId}));return v()});L()();F(17,d7b,10,
1,"div",41);L()}a&2&&(a=P(2),B(6),Of(a.bookmarkGroupUnderEdit.item),B(6),I("selectedHotlistIds",a.selectedHotlistIds)("choices",a.userHotlists)("checkEditAcl",!1),B(4),I("showGroups",!1)("allowStarring",!1),B(),G(a.savedSearchChoices.length>0?17:-1))},k7b=function(a){a&1&&(K(0,"span"),Q(1),K(2,"a",55),Q(3),L()());if(a&2){a=P().$implicit;var b=P(3);B();S(" Hotlist ",a.hotlistId,": ");B();I("href",j7b(b,a),Ne);B();S(" ",a.name||"(name not available)"," ")}},l7b=function(a){a&1&&(K(0,"span"),Q(1),K(2,
"a",55),Q(3),L()());if(a&2){a=P().$implicit;var b=P(3);B();S(" Saved search ",a.savedSearchId,": ");B();I("href",j7b(b,a),Ne);B();S(" ",a.name||"(name not available)"," ")}},m7b=function(a,b){a&1&&(K(0,"li"),F(1,k7b,4,3,"span"),F(2,l7b,4,3,"span"),L());a&2&&(a=b.$implicit,B(),G(a.resourceType==="HOTLIST"?1:-1),B(),G(a.resourceType==="SAVED_SEARCH"?2:-1))},n7b=function(a){a&1&&(K(0,"div",24)(1,"label")(2,"span",20),Q(3,"Items"),L()(),K(4,"div",54)(5,"ul"),Nf(6,m7b,3,2,"li",null,Mf),L()()());a&2&&(a=
P(2),B(6),Of(a.bookmarkGroup.item))},o7b=function(a){if(a&1){var b=t();K(0,"div",25)(1,"button",56);N("click",function(){u(b);var c=P(2);return v(c.saveMetadata())});Q(2," Update ");L();K(3,"button",57);N("click",function(){u(b);var c=P(2);return v(c.revertMetadataChanges())});Q(4," Revert changes ");L()()}a&2&&(a=P(2),B(),I("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},p7b=function(a){if(a&1){var b=t();K(0,"div",25)(1,"button",56);N("click",function(){u(b);var c=P(2);return v(c.saveAccessPolicy())});
Q(2," Update ");L();K(3,"button",57);N("click",function(){u(b);var c=P(2);return v(c.revertAccessPolicyChanges())});Q(4," Revert changes ");L()()}a&2&&(a=P(2),B(),I("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},s7b=function(a){if(a&1){var b=t();K(0,"div",11)(1,"h2");Q(2);L();F(3,U6b,2,0,"span",12);K(4,"a",13);Q(5," (View Dashboard)");L()();K(6,"mat-tab-group",14);Cg("selectedIndexChange",function(c){u(b);var d=P();Bg(d.selectedTabIndex,
c)||(d.selectedTabIndex=c);return v(c)});N("selectedIndexChange",function(c){u(b);var d=P();return v(d.tabChange(c))});K(7,"mat-tab",15)(8,"div",16);M(9,"b-error-banner",17);K(10,"div",18)(11,"label",19)(12,"span",20);Q(13,"Name");L()();K(14,"input",21,0);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.bookmarkGroupUnderEdit.name,c)||(d.bookmarkGroupUnderEdit.name=c);return v(c)});L()();K(16,"div",18)(17,"label",22)(18,"span",20);Q(19,"Description");L()();K(20,"textarea",23);Cg("ngModelChange",
function(c){u(b);var d=P();Bg(d.bookmarkGroupUnderEdit.description,c)||(d.bookmarkGroupUnderEdit.description=c);return v(c)});L()();F(21,i7b,18,6)(22,n7b,8,0,"div",24);F(23,o7b,5,1,"div",25);L()();K(24,"mat-tab",26)(25,"div",16)(26,"div",18)(27,"label")(28,"span",20);Q(29,"Admins");L();K(30,"p",27);Q(31," Edit access controls, edit name and description, reorder items, add/remove items ");L()();K(32,"b-multi-user-input",28);N("usersChange",function(c){u(b);var d=P();return v(d.accessPolicyUnderEdit.admins=
c)})("isValid",function(c){u(b);var d=P();return v(d.isAdminsFieldValid=c)});L()();K(33,"div",18)(34,"label")(35,"span",20);Q(36,"View only");L();K(37,"p",27);Q(38," View the bookmark group ");L();K(39,"b-multi-user-input",29);N("usersChange",function(c){u(b);var d=P();return v(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){u(b);var d=P();return v(d.isReaderFieldValid=c)});L()()();K(40,"div",18);Q(41," See ");K(42,"a",30);Q(43,"access control documentation");L();Q(44," for an explanation of the settings. ");
L();F(45,p7b,5,1,"div",25);L()()()}a&2&&(a=P(),B(2),zg(" Bookmark group ",a.bookmarkGroup.bookmarkGroupId,": ",a.bookmarkGroup.name," "),B(),G(a.isArchived()?3:-1),B(),I("href",a.paths.dashboard(a.bookmarkGroup.bookmarkGroupId),Ne),B(2),Ag("selectedIndex",a.selectedTabIndex),B(3),I("error",a.error),B(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Ag("ngModel",a.bookmarkGroupUnderEdit.name),I("disabled",a.isEditDisabled()),B(2),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Ag("ngModel",
a.bookmarkGroupUnderEdit.description),I("disabled",a.isEditDisabled()),B(),G(a.isAdmin?21:22),B(2),G(a.isAdmin?23:-1),B(3),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),wg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.admins),B(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),wg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Ig(33,q7b,Ig(31,r7b,a.accessPolicyUnderEdit.admins))),
B(3),I("href",ms(a.documentationLinks)+"#bookmark-groups",Ne),B(3),G(a.isAdmin?45:-1))},t7b=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P();return v(c.delete())});Q(1," Delete saved search ");L()}a&2&&(a=P(),I("disabled",a.hasUnsavedChanges()||a.isSaving()))},u7b=function(a){a&1&&(K(0,"div",8)(1,"h2"),Q(2," Saved search not found "),L()())},v7b=function(a){if(a&1){var b=t();K(0,"div",25)(1,"button",32);N("click",function(){u(b);var c=P(2);return v(c.saveMetadata())});
Q(2," Update ");L();K(3,"button",33);N("click",function(){u(b);var c=P(2);return v(c.revertMetadataChanges())});Q(4," Revert changes ");L()()}a&2&&(a=P(2),B(),I("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},w7b=function(a){if(a&1){var b=t();K(0,"div",25)(1,"button",32);N("click",function(){u(b);var c=P(2);return v(c.saveAccessPolicy())});Q(2," Update ");L();K(3,"button",33);N("click",function(){u(b);var c=P(2);return v(c.revertAccessPolicyChanges())});Q(4," Revert changes ");L()()}a&
2&&(a=P(2),B(),I("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},z7b=function(a){if(a&1){var b=t();K(0,"div",8)(1,"h2");Q(2);L();K(3,"a",10);Q(4," (View Issues)");L()();K(5,"mat-tab-group",11);Cg("selectedIndexChange",function(c){u(b);var d=P();Bg(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return v(c)});N("selectedIndexChange",function(c){u(b);var d=P();return v(d.tabChange(c))});K(6,"mat-tab",12)(7,"div",13);M(8,"b-error-banner",14);
K(9,"div",15)(10,"label",16)(11,"span",17);Q(12,"Name");L()();K(13,"input",18,0);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.savedSearchUnderEdit.name,c)||(d.savedSearchUnderEdit.name=c);return v(c)});L()();K(15,"div",15)(16,"label",19)(17,"span",17);Q(18,"Description");L()();K(19,"textarea",20);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.savedSearchUnderEdit.description,c)||(d.savedSearchUnderEdit.description=c);return v(c)});Q(20,"            ");L()();K(21,"div",21)(22,"label",22)(23,
"span",17);Q(24,"Query");L();K(25,"p",23);Q(26," To modify query and display preferences, run the saved search and modify its parameters ");L();K(27,"div",24);Q(28);L()()();F(29,v7b,5,1,"div",25);L()();K(30,"mat-tab",26)(31,"div",13)(32,"div",15)(33,"label",27)(34,"span",17);Q(35,"Admins");L();K(36,"p",23);Q(37," Edit access controls, edit name and description, edit query ");L()();K(38,"b-multi-user-input",28);N("usersChange",function(c){u(b);var d=P();return v(d.accessPolicyUnderEdit.admins=c)})("isValid",
function(c){u(b);var d=P();return v(d.isAdminsFieldValid=c)});L()();K(39,"div",15)(40,"label",29)(41,"span",17);Q(42,"View and execute search");L()();K(43,"b-multi-user-input",30);N("usersChange",function(c){u(b);var d=P();return v(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){u(b);var d=P();return v(d.isReaderFieldValid=c)});L()();K(44,"div",15);Q(45," See ");K(46,"a",31);Q(47,"access control documentation");L();Q(48," for an explanation of the settings. ");L();F(49,w7b,5,1,"div",25);
L()()()}a&2&&(a=P(),B(2),zg(" Saved search ",a.savedSearch.searchId,": ",a.savedSearch.name," "),B(),I("href",a.paths.viewSavedSearch(a.savedSearch.searchId),Ne),B(2),Ag("selectedIndex",a.selectedTabIndex),B(3),I("error",a.error),B(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Ag("ngModel",a.savedSearchUnderEdit.name),I("disabled",a.isEditDisabled()),B(2),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Ag("ngModel",a.savedSearchUnderEdit.description),I("disabled",a.isEditDisabled()),
B(9),S(" ",a.savedSearch.query," "),B(),G(a.isAdmin?29:-1),B(3),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),wg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.admins),B(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),wg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Ig(32,x7b,Ig(30,y7b,a.accessPolicyUnderEdit.admins))),B(3),I("href",ms(a.documentationLinks)+"#saved-searches",
Ne),B(3),G(a.isAdmin?49:-1))},A7b=function(a){a&1&&(K(0,"div",6),M(1,"b-spinner"),L())},B7b=function(a){if(a&1){var b=t();K(0,"div",35)(1,"span",36)(2,"mat-checkbox",37);N("change",function(c){u(b);var d=P(2);return v(d.alertState.setValue(c.checked))});L()();K(3,"div")(4,"strong",38);Q(5,"SLO Notifications");L();K(6,"div",39);Q(7," When checked, admins will be notified when any component that would be automatically assigned this SLO overrides their SLO settings. ");L()()()}a&2&&(a=P(2),wg("bv2-edit-resource-readonly",
a.isEditDisabled()),B(2),I("checked",a.alertState.getValue())("disabled",a.isEditDisabled()))},C7b=function(a){a&1&&(K(0,"div",20),Q(1," Action is required to keep your SLO definitions in Buganizer and BugScope in sync. "),K(2,"a",40),Q(3," Learn more "),L()())},E7b=function(a){if(a&1){var b=t();K(0,"b-button",45);N("onAction",function(){u(b);var c=P(3);return v(D7b(c,!0))});Q(1," Archive ");L()}a&2&&(a=P(3),I("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},F7b=function(a){if(a&1){var b=
t();K(0,"b-button",46);N("onAction",function(){u(b);var c=P(3);return v(D7b(c,!1))});Q(1," Unarchive ");L()}a&2&&(a=P(3),I("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},G7b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-button",41);N("onAction",function(){u(b);var d=P(2);return v(d.saveMetadata())});Q(2," Update ");L();K(3,"b-button",42);N("onAction",function(){u(b);var d=P(2);return v(d.revertMetadataChanges())});Q(4," Revert changes ");L();F(5,E7b,2,1,"b-button",43);F(6,F7b,2,1,"b-button",
44);L()}if(a&2){P();a=qg(9);var c=P();B();I("disabled",!c.hasUnsavedMetadataChanges()||c.isSaving()||!c.elementPickerIsValid||!!a.pending||!!a.invalid);B(2);I("disabled",!c.hasUnsavedMetadataChanges()||c.isSaving()||!!a.pending||!!a.invalid);B(2);G(c.slo&&!c.slo.isArchived?5:-1);B();G(c.slo&&c.slo.isArchived?6:-1)}},H7b=function(a){if(a&1){var b=t();K(0,"div",23)(1,"b-button",47);N("onAction",function(){u(b);var c=P(2);return v(c.saveAccessPolicy())});Q(2," Update ");L();K(3,"b-button",48);N("onAction",
function(){u(b);var c=P(2);return v(c.revertAccessPolicyChanges())});Q(4," Revert changes ");L()()}a&2&&(a=P(2),B(),I("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||a.isInvalid()))},K7b=function(a){if(a&1){var b=t();K(0,"div")(1,"div",7)(2,"h2")(3,"span",8);Q(4);L()()();K(5,"mat-tab-group",9);Cg("selectedIndexChange",function(c){u(b);var d=P();Bg(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return v(c)});N("selectedIndexChange",function(c){u(b);var d=P();return v(d.tabChange(c))});
K(6,"mat-tab",10)(7,"div",11)(8,"form",12,0)(10,"div",13)(11,"label",14)(12,"span",15);Q(13,"Name");L()();K(14,"input",16);N("ngModelChange",function(c){u(b);var d=P();return v(d.editableCopy.name=c)});L()();K(15,"div",13)(16,"label",17)(17,"span",15);Q(18,"Description");L()();K(19,"textarea",18);N("ngModelChange",function(c){u(b);var d=P();return v(d.editableCopy.description=c)});Q(20,"                ");L()();F(21,B7b,8,4,"div",19);L();F(22,C7b,4,0,"div",20);K(23,"div",13)(24,"slo-elements-picker",
21);N("onCollectionUpdate",function(c){u(b);var d=P();return v(d.updateCollection(c))})("onValidation",function(c){u(b);var d=P();return v(d.elementPickerIsValid=c)});L()();K(25,"div",22)(26,"div",23)(27,"div",24)(28,"b-button",25);N("onAction",function(){u(b);var c=P();return v(c.showUpdateHistoryModal())});Q(29," View history ");L()()();K(30,"div",23);F(31,G7b,7,4,"div",24);L()()()();K(32,"mat-tab",26)(33,"div",27)(34,"form",28)(35,"div",13)(36,"label",29)(37,"span",15);Q(38,"Admins");L();K(39,
"p",30);Q(40," Edit name, description and metrics ");L()();K(41,"b-multi-user-input",31);N("usersChange",function(c){u(b);var d=P();return v(d.editableAccessPolicy.admins=c)})("isValid",function(c){u(b);var d=P();return v(d.validity.admins=c)});L()();K(42,"div",13)(43,"label",32)(44,"span",15);Q(45,"Readers");L();K(46,"p",30);Q(47," View the SLO definition (this is not required to see an issue's SLO status) ");L()();K(48,"b-multi-user-input",33);N("usersChange",function(c){u(b);var d=P();return v(d.editableAccessPolicy.readers=
c)})("isValid",function(c){u(b);var d=P();return v(d.validity.readers=c)});L()()();K(49,"div",13);Q(50," See ");K(51,"a",34);Q(52,"access control documentation");L();Q(53," for an explanation of the settings. ");L();F(54,H7b,5,1,"div",23);L()()()()}a&2&&(a=P(),B(4),zg(" SLO ",a.slo.sloId,": ",a.slo.name," "),B(),Ag("selectedIndex",a.selectedTabIndex),B(5),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),I("required",!0)("ngModel",a.editableCopy.name)("disabled",a.isEditDisabled()),B(),wg("bv2-edit-resource-readonly",
a.isEditDisabled()),B(4),I("ngModel",a.editableCopy.description)("disabled",a.isEditDisabled()),B(2),G(a.isImportedFromBugScope||a.alertState.getSavedValue()?21:-1),B(),G(a.isUneditedFromBugScope&&a.isAdmin()?22:-1),B(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(),I("isDisabled",a.isEditDisabled())("collection",a.editableCopy.elements),B(7),G(a.isAdmin()?31:-1),B(4),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),I("users",a.editableAccessPolicy.admins),If("disabled",a.isEditDisabled()?
!0:null),B(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),I("users",a.editableAccessPolicy.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Ig(35,I7b,Ig(33,J7b,a.editableAccessPolicy.admins))),If("disabled",a.isEditDisabled()?!0:null),B(3),I("href",Eg("",ms(a.documentationLinks),"#slos"),Ne),B(3),G(a.isAdmin()?54:-1))},M7b=function(a){if(a&1){var b=t();K(0,"div",2);M(1,"img",3)(2,"img",4);K(3,"p",5);Q(4," This issue is not blocking anything \u00a0\ud83e\udd73 ");
L();K(5,"p",6);Q(6," If this issue blocks other issues, this issue should be resolved before the others. ");K(7,"a",7);Q(8,"Learn more");L()();K(9,"button",8);N("click",function(){u(b);var c=P(2);return v(L7b(c))});Q(10," Add ");L()()}a&2&&(a=P(2),B(),I("src",a.TEA_LIGHT,Ne),B(),I("src",a.TEA_DARK,Ne))},N7b=function(a,b){a&1&&M(0,"b-issues-table",13);a&2&&(a=P(6),I("issueIds",b)("menuItemFactory",a.getMenuItems))},O7b=function(a){a&1&&(F(0,N7b,1,2,"b-issues-table",13),T(1,"async"));if(a&2){var b;
a=P(5);G((b=U(1,1,a.blockedAndOpenIds$))?0:-1,b)}},P7b=function(a){a&1&&(K(0,"p",12),Q(1,"Not blocking any open issues \ud83e\udd73"),L())},Q7b=function(a,b){a&1&&(K(0,"h4",11),Q(1),L(),F(2,O7b,2,3)(3,P7b,2,0,"p",12));a&2&&(B(),S("Open (",b.length,")"),B(),G(b.length>0?2:3))},R7b=function(a,b){a&1&&M(0,"b-issues-table",13);a&2&&(a=P(6),I("issueIds",b)("menuItemFactory",a.getMenuItems))},S7b=function(a){a&1&&(K(0,"h4",11),Q(1),L(),F(2,R7b,1,2,"b-issues-table",13),T(3,"async"));if(a&2){var b;a=P();
var c=P(4);B();S("Closed (",a.length,")");B();G((b=U(3,2,c.blockedAndClosedIds$))?2:-1,b)}},T7b=function(a,b){a&1&&F(0,S7b,4,4);a&2&&G(b.length>0?0:-1)},U7b=function(a){a&1&&(F(0,Q7b,4,2),T(1,"async"),F(2,T7b,1,1),T(3,"async"));if(a&2){var b,c;a=P(3);G((b=U(1,2,a.blockedAndOpen$))?0:-1,b);B(2);G((c=U(3,4,a.blockedAndClosed$))?2:-1,c)}},V7b=function(a,b){a&1&&(K(0,"li")(1,"a",15)(2,"span",6),Q(3),L(),K(4,"aside",16),M(5,"button",17),L()()());a&2&&(a=b.$implicit,B(),If("aria-label",Eg("Issue ",a)),
I("routerLink",Eg("/issues/",a)),B(2),S("b/",a))},W7b=function(a){a&1&&(K(0,"h4",11),Q(1,"Loading..."),L(),K(2,"ol",14),Nf(3,V7b,6,5,"li",null,Mf),L());a&2&&(a=P(2),B(3),Of(a))},X7b=function(a,b){a&1&&(K(0,"a",10),Q(1," View as search results "),L());a&2&&I("routerLink",b.path)("queryParams",b.params)},Y7b=function(a){if(a&1){var b=t();F(0,U7b,4,6);T(1,"async");Kf(2,W7b,5,0);K(3,"aside",9)(4,"button",8);N("click",function(){u(b);var d=P(2);return v(L7b(d))});Q(5," Add ");L();F(6,X7b,2,2,"a",10);T(7,
"async");L()}if(a&2){var c;a=P(2);G(U(1,2,a.issuesBeingBlocked$)?0:2);B(6);G((c=U(7,4,a.searchUrl$))?6:-1,c)}},Z7b=function(a,b){a&1&&F(0,M7b,11,2,"div",2)(1,Y7b,8,6);a&2&&G(b.length===0?0:1)},$7b=function(a){a&1&&(K(0,"aside",1),M(1,"b-spinner"),L())},a8b=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",3),K(2,"span",4),Q(3),L()());a&2&&(a=P(),B(3),S("",a.length," parent issues"))},b8b=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",5),K(2,"span",4),Q(3),L()());a&2&&(a=P(),B(3),S("Blocked by ",a.length,
" issues"))},c8b=function(a,b){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(4),xg(Eg("chippy status-",b," margin-s-left")),B(),S(" ",a.STATUS_JS_TERSE.get(b)," "))},d8b=function(a){a&1&&(K(0,"a",6)(1,"div",7)(2,"div",8)(3,"div",9),Q(4),L(),K(5,"div",10),Q(6),L()(),K(7,"div",8)(8,"div",11),Q(9),L(),F(10,c8b,2,4,"span",12),L()()());if(a&2){var b,c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P(2);I("routerLink",Eg("/issues/",a.issueId));B();wg("border-bottom",d!==c-1);B(3);yg(a.issueId);B(2);yg(a.snapshot[0].title);
B(2);xg(e.priorityClass(a.snapshot[0].priority));B();yg(a.snapshot[0].priority);B();G((b=a.snapshot[0].status)?10:-1,b)}},e8b=function(a,b){a&1&&F(0,d8b,11,10,"a",6);a&2&&G(b.$index<5?0:-1)},g8b=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",13);N("click",function(){u(b);var c=P(2);return v(f8b(c))});Q(2,"View all parent issues");L()()}},h8b=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",13);N("click",function(){u(b);var c=P(2),d;(d=c.hovercardInstance)==null||d.closeHovercard$.next();
Ft(c.router,"/issues/"+c.currentIssueId+"/dependencies");return v()});Q(2,"View all blockers");L()()}},j8b=function(a,b){a&1&&(K(0,"div",0),F(1,a8b,4,1,"div",1),F(2,b8b,4,1,"div",1),K(3,"div"),Nf(4,e8b,1,1,null,null,i8b),F(6,g8b,3,0,"div",2),F(7,h8b,3,0,"div",2),L()());a&2&&(a=P(),B(),G(a.mode===a.ListIssuesHovercardMode.PARENT_ISSUES?1:-1),B(),G(a.mode===a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES?2:-1),B(2),Of(b),B(2),G(b.length>5&&a.mode===a.ListIssuesHovercardMode.PARENT_ISSUES?6:-1),B(),G(b.length>
5&&a.mode===a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES?7:-1))},k8b=function(a){a&1&&M(0,"mat-icon",4)},l8b=function(a){a&1&&(Tf(0),M(1,"b-list-issues-card",6,1),Uf());if(a&2){a=qg(2);P();var b=qg(4),c=P();B();I("onedevIsHovercardReady",a.init)("hovercardInstance",b)("currentIssueId",c.issueId)("issueIds",c.multiParentIssueIds)("mode",c.ListIssuesHovercardMode.PARENT_ISSUES)}},m8b=function(a){a&1&&(K(0,"a",3),Q(1),L(),F(2,k8b,1,0,"mat-icon",4),K(3,"onedev-hovercard",null,0),E(5,l8b,3,5,"ng-container",
5),L());if(a&2){a=qg(4);var b=P();I("title",Eg("",b.multiParentIssueIds.length," parents at this position"))("onedevHovercardTrigger",a);B();S("",b.multiParentIssueIds.length," Parents\u2026");B();G(b.multiParentIssueIds.length>1?2:-1)}},n8b=function(a,b){a&1&&(K(0,"b-issue-reference-widget",7),Q(1),L(),M(2,"mat-icon",4));if(a&2){var c=b.$implicit;a=b.$index;b=b.$count;var d=P();I("href",d.getIssueLink(c))("issueId",c);B();d.issueIdToTitle.has(c)?(c=d.issueIdToTitle.get(c),c=p7a(c)):c=String(c);yg(c);
B();wg("last",a===b-1)}},p8b=function(a,b){if(a&1){var c=t();K(0,"button",1);T(1,"async");N("click",function(){u(c);var d=P();return v(o8b(d))});Q(2);L()}a&2&&(a=P(),I("disabled",a.disabled||a.issueFullFridge.isSaving(a.internalIssueId)||U(1,3,a.canEdit$)===!1)("title",b.isDupe?a.TOOLTIP_UNMARK_DUPE:a.TOOLTIP_MARK_DUPE),B(2),S(" ",b.isDupe?"Unmark Duplicate":"Mark as Duplicate"," "))},q8b=function(a){a&1&&Vf(0)},r8b=function(a){a&1&&E(0,q8b,1,0,"ng-container",4);a&2&&(a=P(),I("ngTemplateOutlet",a.content))},
s8b=function(a,b){if(a&1){var c=t();K(0,"button",12);N("click",function(e){var f=u(c).$implicit,g=P(2);return v(g.onAction(f,e))});M(1,"mat-icon",13);Q(2);L()}if(a&2){a=b.$implicit;I("disabled",a.disabled)("title",a.title);If("aria-label",a.title);B();var d;I("svgIcon",(d=a.icon)!=null?d:"");B();S(" ",a.label," ")}},t8b=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(d){u(b);var e=P(2);d.stopPropagation();d.preventDefault();var f;(f=e.helpHover)==null||f.toggle();return v()});M(1,
"mat-icon",15);Q(2," Retention: ");M(3,"retention-text",16);Q(4," \u00a0 ");M(5,"help-hover",17);L()}if(a&2){a=P();var c=qg(13);B(3);I("retentionState",a.retentionState);B(2);I("content",c)}},u8b=function(a){a&1&&M(0,"retention-help-text",18);a&2&&(a=P(2),I("retentionState",a.retentionState)("modifiedTime",a.modifiedTimeMilliseconds))},v8b=function(a){a&1&&F(0,u8b,1,2,"retention-help-text",18);a&2&&(a=P(),G(a.retentionState&&a.modifiedTimeMilliseconds?0:-1))},x8b=function(a,b){if(a&1){var c=t();M(0,
"b-app-vote-button",3)(1,"hotlist-picker-btn",4);K(2,"smart-dupe-btn",5,0);N("onHotkey",function(){u(c);var e=qg(3);return v(o8b(e))});L();K(4,"b-notification-menu",6);N("subscriptionChange",function(e){u(c);var f=P();return v(f.updateSubscription(e))})("showNotificationSettings",function(e){u(c);var f=P();return v(f.showNotificationSettings(e))});L();K(5,"button",7);M(6,"mat-icon",8);L();K(7,"mat-menu",9,1);Nf(9,s8b,3,5,"button",10,w8b);F(11,t8b,6,2,"button",11);L();E(12,v8b,1,1,"ng-template",null,
2,Mg)}if(a&2){a=qg(8);var d=P();I("issueId",b.issueId)("voteCount",b.voteCount)("upvoted",b.voted);B();I("issueId",b.issueId);B();I("issueId",b.issueId)("hotkey",d.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);B(2);I("subscription",b.notificationSubscription)("issueId",b.issueId)("iconOnly",!0);B();I("matMenuTriggerFor",a);B(4);Of(b.menuItems);B(2);G(d.retentionEnabled?11:-1)}},y8b=function(){},z8b=function(a){a&1&&(K(0,"output"),Q(1),T(2,"async"),L());if(a&2){a=P();var b=P();B();zg(" ",a," of ",U(2,2,b.currentSearchResults.totalText$),
" ")}},C8b=function(a,b){if(a&1){var c=t();F(0,z8b,3,4,"output");K(1,"span")(2,"button",0);T(3,"async");N("onHotkey",function(){u(c);var d=P();return v(A8b(d.currentSearchResults))})("click",function(){u(c);var d=P();return v(A8b(d.currentSearchResults))});M(4,"mat-icon",1);L();K(5,"button",2);T(6,"async");N("onHotkey",function(){u(c);var d=P();return v(B8b(d.currentSearchResults))})("click",function(){u(c);var d=P();return v(B8b(d.currentSearchResults))});M(7,"mat-icon",3);L()()}a&2&&(a=P(),G(b!==
-1?0:-1),B(),wg("invisible",b===-1)("zero-width",b===-1),B(),I("hotkey",a.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!U(3,9,a.currentSearchResults.hasPreviousIssue$)),B(3),I("hotkey",a.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!U(6,11,a.currentSearchResults.hasNextIssue$)))},D8b=function(a){a&1&&M(0,"b-issue-visibility-chip",1);a&2&&(a=P(2),I("issueId",a.issueId))},E8b=function(a){a&1&&M(0,"b-access-limits-chip",2);a&2&&(a=P(2),I("issueId",a.issueId)("componentId",a.componentId)("accessLimitLevel",a.issueAccessLimitLevel))},
F8b=function(a){a&1&&M(0,"b-retention-chip",3);a&2&&(a=P(2),I("retentionState",a.retentionState)("compactMode",!1)("modifiedTime",a.modifiedTime))},G8b=function(a){a&1&&(K(0,"div",0),F(1,D8b,1,1,"b-issue-visibility-chip",1),F(2,E8b,1,3,"b-access-limits-chip",2),F(3,F8b,1,3,"b-retention-chip",3),L());a&2&&(a=P(),B(),G(a.hasAccessIndicator?1:-1),B(),G(a.isAccessLimited?2:-1),B(),G(a.isShowingRetention?3:-1))},H8b=function(a,b){a&1&&F(0,G8b,4,3,"div",0);a&2&&G(b.isShowingPublicPartner||b.isShowingRetention||
b.isAccessLimited?0:-1)},I8b=function(a){a&1&&(K(0,"div",2),M(1,"mat-icon",4),Q(2),T(3,"async"),L());if(a&2){a=P();var b=qg(4);I("onedevHovercardTrigger",b);B(2);S("",U(3,2,a.teamName$)," ")}},J8b=function(a){a&1&&Vf(0)},K8b=function(a){a&1&&E(0,J8b,1,0,"ng-container",20);a&2&&(P(),a=qg(13),I("ngTemplateOutlet",a))},L8b=function(a){a&1&&(M(0,"b-component-breadcrumb-chip",22),T(1,"async"),K(2,"div",23),M(3,"b-issue-id-picker",24),T(4,"async"),T(5,"async"),T(6,"async"),L());a&2&&(a=P(2),I("componentId",
U(1,6,a.componentId$))("issueId",a.issueId),B(3),I("issueId",a.issueId)("componentId",U(4,8,a.componentId$))("issueTitle",U(5,10,a.issueTitle$))("isExternalIssue",!!U(6,12,a.isWithinExternalComponent$)))},M8b=function(a){if(a&1){var b=t();K(0,"b-team-chip",21);T(1,"async");T(2,"async");N("onTeamLoaded",function(){u(b);var c=P();return v(c.isTeamLoaded=!0)});L();F(3,L8b,7,14)}a&2&&(a=P(),I("componentId",U(1,3,a.componentId$))("teamId",U(2,5,a.teamId$)),B(3),G(a.isTeamLoaded?3:-1))},N8b=function(a,
b){a&1&&M(0,"ancestors-breadcrumbs",27);a&2&&(a=P(3),I("ancestors",b)("issueId",a.issueId))},O8b=function(a){a&1&&(M(0,"b-component-breadcrumb-chip",25),T(1,"async"),K(2,"div",26),F(3,N8b,1,2,"ancestors-breadcrumbs",27),T(4,"async"),M(5,"b-issue-id-picker",28),T(6,"async"),T(7,"async"),T(8,"async"),L());if(a&2){var b;a=P(2);I("componentId",U(1,8,a.componentId$))("compactMode",!0)("issueId",a.issueId);B(3);G((b=U(4,10,a.ancestors$))?3:-1,b);B(2);I("issueId",a.issueId)("componentId",U(6,12,a.componentId$))("issueTitle",
U(7,14,a.issueTitle$))("isExternalIssue",!!U(8,16,a.isWithinExternalComponent$))}},P8b=function(a){if(a&1){var b=t();K(0,"b-team-chip",21);T(1,"async");T(2,"async");N("onTeamLoaded",function(){u(b);var c=P();return v(c.isTeamLoaded=!0)});L();F(3,O8b,9,18)}a&2&&(a=P(),I("componentId",U(1,3,a.componentId$))("teamId",U(2,5,a.teamId$)),B(3),G(a.isTeamLoaded?3:-1))},Q8b=function(a,b){a&1&&(K(0,"div",17),M(1,"mat-icon",29),Q(2),L());a&2&&(P(),a=qg(36),I("onedevHovercardTrigger",a),B(2),S(" ",b," "))},R8b=
function(a){a&1&&(Tf(0),M(1,"b-list-issues-card",30,2),T(3,"async"),Uf());if(a&2){a=qg(2);var b=P(),c=qg(36);B();I("onedevIsHovercardReady",a.init)("hovercardInstance",c)("currentIssueId",b.issueId)("issueIds",U(3,5,b.blockedByids$))("mode",b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES)}},S8b=function(a){if(a.length!==0)return a.length===1?qs.viewIssue.makeHref(a[0]):qs.listIssues.makeHref()},T8b=function(a){a&1&&(K(0,"h3",10),Q(1,"Thinking text:"),L(),K(2,"p",11),Q(3),L());a&2&&(a=P().$implicit,B(3),
S(" ",a.text," "))},U8b=function(a){a&1&&(K(0,"span",14),Q(1),L(),Q(2," : "),K(3,"span",15),Q(4),L(),Q(5,", "));a&2&&(a=P().$implicit,B(),yg(a.key),B(3),S('"',a.value,'"'))},V8b=function(a,b){a&1&&F(0,U8b,6,2);a&2&&G(b.$implicit.value?0:-1)},W8b=function(a){a&1&&(K(0,"p"),Q(1," [ "),Nf(2,V8b,1,1,null,null,Mf),T(4,"keyvalue"),Q(5," ] "),L());a&2&&(a=P().$implicit,B(2),Of(U(4,0,a.arguments)))},X8b=function(a){a&1&&(K(0,"p",16)(1,"span",14),Q(2),L(),Q(3," : "),K(4,"span",15),Q(5),L(),Q(6,", "),L());
a&2&&(a=P().$implicit,B(2),yg(a.key),B(3),S('"',a.value,'"'))},Y8b=function(a,b){a&1&&F(0,X8b,7,2,"p",16);a&2&&G(b.$implicit.value?0:-1)},Z8b=function(a,b){a&1&&(K(0,"div",12)(1,"p")(2,"span",13),Q(3),L(),Q(4," was called with: "),L(),F(5,W8b,6,2,"p"),K(6,"p")(7,"span",13),Q(8,"Output:"),L()(),Nf(9,Y8b,1,1,null,null,Mf),T(11,"keyvalue"),L());a&2&&(a=b.$implicit,B(3),yg(a.name),B(2),G(a.arguments?5:-1),B(4),Of(U(11,2,a.outputs)))},$8b=function(a){a&1&&Nf(0,Z8b,12,4,"div",12,Mf);a&2&&(a=P().$implicit,
Of(a.functionCalls))},a9b=function(a,b){a&1&&(K(0,"div",6)(1,"p",9),Q(2),L(),F(3,T8b,4,1),F(4,$8b,2,0),L());a&2&&(a=b.$implicit,b=b.$index,B(2),S("Step ",b+1),B(),G(a.text?3:-1),B(),G(a.functionCalls?4:-1))},b9b=function(a,b){a&1&&M(0,"li",4);a&2&&I("innerHTML",b.$implicit,Me)},c9b=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"h2"),Q(3,"Problem Identification"),L()(),K(4,"ul",3),Nf(5,b9b,1,1,"li",4,Lf),L());a&2&&(a=P(),B(5),Of(a.problemIdentificationSummaries))},d9b=function(a,b){a&1&&M(0,
"li",4);a&2&&I("innerHTML",b.$implicit,Me)},e9b=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"h2"),Q(3,"Solution summary"),L()(),K(4,"ul",3),Nf(5,d9b,1,1,"li",4,Lf),L());a&2&&(a=P(),B(5),Of(a.solutionSummaries))},f9b=function(a,b){a&1&&M(0,"li",4);a&2&&I("innerHTML",b.$implicit,Me)},g9b=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"h2"),Q(3,"Code change"),L()(),K(4,"ul",3),Nf(5,f9b,1,1,"li",4,Lf),L());a&2&&(a=P(),B(5),Of(a.codeChangeSummaries))},h9b=function(a){if(a&1){var b=t();K(0,
"button",10);N("click",function(){u(b);var c=P(3),d=P();return v(d.openTailwindInfoDialog(c.trajectory))});Q(1," View Details ");L()}},i9b=function(a){a&1&&F(0,h9b,2,0,"button",9);a&2&&(a=P(2),G(a.trajectory.prompt!==""&&a.trajectory.steps.length>0?0:-1))},j9b=function(a){if(a&1){var b=t();K(0,"button",11);N("click",function(){var c=u(b),d=P(3);c&&(d.domSafe.openInNewTab("https://cider.corp.google.com/?createWs=tailwind-"+c+"&patchCl="+c),d.analytics.trackEvent("tailwind","editInCider",d.issueId));
return v()});Q(1,"Edit in Cider");L();K(2,"button",12);N("click",function(){var c=u(b),d=P(3);return v(d.handleViewInCritique(c))});Q(3,"View in Critique");L()}},k9b=function(a,b){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"h2"),Q(3,"Validation passed"),L()(),K(4,"ul",3)(5,"li",5)(6,"a",6),Q(7,"View build results."),L()(),K(8,"li",5)(9,"a",6),Q(10,"View test results."),L()()(),M(11,"span",7),K(12,"div",8),F(13,i9b,1,1),F(14,j9b,4,0),L());if(a&2){var c;a=P();B(6);I("href",Eg("https://fusion2.corp.google.com/invocations/",
b.buildInvocationId),Ne);B(3);I("href",Eg("https://fusion2.corp.google.com/invocations/",b.testSpongeInvocationId),Ne);B(4);G(a.trajectory?13:-1);B();G((c=a.runResults==null?null:a.runResults.oclNumber)?14:-1,c)}},l9b=function(a,b){a&1&&(F(0,c9b,7,0),F(1,e9b,7,0),F(2,g9b,7,0),F(3,k9b,15,6));if(a&2){var c;G(b.problemIdentificationSummaries?0:-1);B();G(b.solutionSummaries?1:-1);B();G(b.codeChangeSummaries?2:-1);B();G((c=b.runResults==null?null:b.runResults.validation)?3:-1,c)}},m9b=function(a,b){a&
1&&M(0,"b-bug2code-sidebar",9);a&2&&I("issueId",b)},n9b=function(a){a&1&&(K(0,"div",10),Q(1,"View an issue details to gain AI insights."),L())},o9b=function(a,b){a&1&&(K(0,"div",0),M(1,"img",1),K(2,"h3"),Q(3),L(),K(4,"a",2),T(5,"async"),Q(6),L()());a&2&&(a=P(),B(),I("src",b.branding==null?null:b.branding.logoUrl,Ne),B(2),S("This issue is a part of the ",b.name," tracker."),B(),I("href",U(5,4,a.trackerRedirectUrl$),Ne),B(2),S(" View in ",b.name," Tracker "))},p9b=function(a){a&1&&(K(0,"div")(1,"ol")(2,
"li")(3,"label"),Q(4,"Issue ID"),L(),K(5,"output"),Q(6),L()(),K(7,"li")(8,"label"),Q(9,"Type"),L(),K(10,"output"),Q(11),L()(),K(12,"li")(13,"label"),Q(14,"Status"),L(),K(15,"output"),Q(16),L()()()());a&2&&(a=P(2),B(6),yg(a.issueId),B(5),yg(a.issueType),B(5),yg(a.issueStatus))},q9b=function(a){a&1&&(K(0,"div",0)(1,"div",1),M(2,"img",2),T(3,"async"),M(4,"mat-icon",3)(5,"img",2),T(6,"async"),L(),K(7,"h3",4),Q(8),T(9,"async"),L(),F(10,p9b,17,3,"div"),K(11,"div",5)(12,"a",6),T(13,"async"),Q(14,"Continue"),
L()()());a&2&&(a=P(),B(2),I("src",U(3,5,a.currentTrackerLogo$),Ne),B(3),I("src",U(6,7,a.trackerLogo$),Ne),B(3),S(" Redirecting to ",U(9,9,a.trackerName$)," "),B(2),G(a.issue!=null?10:-1),B(2),I("href",U(13,11,a.trackerRedirectUrl$),Ne))},r9b=function(a,b){if(a instanceof Element){var c=Lm(window.sessionStorage.getItem(b));if(c!=null){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)}}},s9b=function(a,
b){a&1&&(K(0,"h2",7),Q(1),L());a&2&&(B(),S("Issue ",b))},t9b=function(a){a&1&&Vf(0,10);a&2&&(P(3),a=qg(12),I("ngTemplateOutlet",a))},u9b=function(a){a&1&&Vf(0,10);a&2&&(P(4),a=qg(16),I("ngTemplateOutlet",a))},w9b=function(a){a&1&&Vf(0,12);if(a&2){a=P(2);P(3);var b=qg(14);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,v9b,a.monorailRedirectUrl))}},x9b=function(a){a&1&&F(0,w9b,1,4,"ng-container",12);a&2&&(a=P(),G(a.monorailRedirectUrl?0:-1))},y9b=function(a,b){a&1&&F(0,u9b,1,1,"ng-container",
10)(1,x9b,1,1);if(a&2){var c;G((c=b.status)===403?0:c===404?1:-1)}},z9b=function(a,b){a&1&&(F(0,t9b,1,1,"ng-container",10),F(1,y9b,2,1),T(2,"async"));if(a&2){var c;a=P(2);G(b.success?0:-1);B();G((c=U(2,2,a.mainIssueLoadError$))?1:-1,c)}},A9b=function(a){a&1&&(F(0,z9b,3,4),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.readyForView$))?0:-1,b)}},B9b=function(a){a&1&&M(0,"tailwind-sidebar")},C9b=function(a){a&1&&M(0,"llm-chat")},D9b=function(a){a&1&&F(0,B9b,1,0,"tailwind-sidebar")(1,C9b,1,0,"llm-chat");
a&2&&(a=P(),G(a.enableTailwindSidebar?0:a.enableLlmChat?1:-1))},E9b=function(a,b){a&1&&F(0,D9b,2,1);a&2&&G(b.isIssueDetailsPageSidebarOpen?0:-1)},F9b=function(a){a&1&&(F(0,E9b,1,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.issueDetailsOptions$))?0:-1,b)}},G9b=function(a){a&1&&(K(0,"a",24),Q(1,"Learn more"),L())},H9b=function(a){if(a&1){var b=t();K(0,"button",26);N("click",function(){var c=u(b),d=P(4);return v(d.editIssueService.unarchive(c))});Q(1," Unarchive ");L()}},I9b=function(a){a&1&&(K(0,
"b-callout",16)(1,"b-callout-body"),Q(2,"This issue has been archived. "),F(3,G9b,2,0,"a",24),L(),K(4,"b-callout-actions"),F(5,H9b,2,0,"button",25),T(6,"async"),L()());if(a&2){var b;a=P(3);I("messageType","caution")("format","app")("iconOverride","archive_24px");B(3);G(a.activeSession.isInternalSession()?3:-1);B(2);G((b=U(6,5,a.id$))?5:-1,b)}},J9b=function(a){a&1&&(K(0,"a",27),Q(1,"Learn more"),L())},K9b=function(a){a&1&&(K(0,"b-callout",17)(1,"b-callout-body"),Q(2," This issue is in an archived component. "),
F(3,J9b,2,0,"a",27),L()());a&2&&(a=P(3),I("format","app")("iconOverride","archive_24px"),B(3),G(a.activeSession.isInternalSession()?3:-1))},L9b=function(a,b){a&1&&(Q(0," Reason: "),K(1,"code"),Q(2),L(),Q(3,". "));a&2&&(B(2),yg(b))},M9b=function(a){a&1&&(K(0,"a",28),Q(1,"Learn more"),L())},O9b=function(a){if(a&1){var b=t();K(0,"button",30);T(1,"async");T(2,"async");N("click",function(){var d=u(b),e=P(4);return v(N9b(e.editIssueService,d))});Q(3," Undelete ");L()}if(a&2){a=P(4);var c;I("matTooltip",
(c=U(1,2,a.undeleteButtonTooltip$))!=null?c:"")("disabled",!U(2,4,a.permissions.canUndeleteIssue$))}},P9b=function(a){a&1&&(K(0,"b-callout",18)(1,"b-callout-body"),Q(2," This issue has been deleted. "),F(3,L9b,4,1),T(4,"async"),F(5,M9b,2,0,"a",28),L(),K(6,"b-callout-actions"),F(7,O9b,4,6,"button",29),T(8,"async"),L()());if(a&2){var b,c;a=P(3);B(3);G((b=(b=U(4,3,a.snapshot$))==null?null:b.deletionReason)?3:-1,b);B(2);G(a.activeSession.isInternalSession()?5:-1);B(2);G((c=U(8,5,a.id$))?7:-1,c)}},Q9b=
function(a){a&1&&(K(0,"a",31),Q(1,"Major updates"),L())},R9b=function(a){a&1&&(K(0,"a",32),Q(1,"Major edits"),L())},S9b=function(a){a&1&&(K(0,"a",33),Q(1,"Learn more"),L())},T9b=function(a){a&1&&(K(0,"b-callout",19)(1,"b-callout-body"),Q(2," This issue has been marked as inactive. "),F(3,Q9b,2,0,"a",31)(4,R9b,2,0,"a",32),Q(5," will reopen the issue. "),F(6,S9b,2,0,"a",33),L()());a&2&&(a=P(3),I("format","app"),B(3),G(a.activeSession.isInternalSession()?3:4),B(3),G(a.activeSession.isInternalSession()?
6:-1))},U9b=function(a,b){a&1&&(K(0,"output",37),Q(1),L());a&2&&(B(),S(" ",b," "))},W9b=function(a,b){a&1&&(K(0,"a",36,6),Q(2),F(3,U9b,2,1,"output",37),T(4,"async"),L());if(a&2){var c;a=b.$implicit;b=qg(1);I("routerLink",a.link)("active",b.isActive)("routerLinkActiveOptions",Hg(7,V9b));B(2);S(" ",a.title," ");B();G((c=U(4,5,a.count$))?3:-1,c)}},X9b=function(a,b){a&1&&(K(0,"header",20),M(1,"b-tracker-banner",34),T(2,"async"),T(3,"async"),M(4,"issue-header",23),K(5,"nav",35),Nf(6,W9b,5,8,"a",36,Mf),
L(),M(8,"mat-tab-nav-panel",null,5),L());if(a&2){a=qg(9);var c=P(3);B();I("issueId",U(2,4,c.id$))("trackerId",U(3,6,c.issueTrackerId$));B(3);I("issueId",b);B();I("tabPanel",a);B();Of(c.tabs)}},Y9b=function(a,b){a&1&&M(0,"issue-metadata-sidebar",23);a&2&&I("issueId",b)},Z9b=function(a){a&1&&(K(0,"div",15),T(1,"async"),F(2,I9b,7,7,"b-callout",16),T(3,"async"),F(4,K9b,4,3,"b-callout",17),T(5,"async"),F(6,P9b,9,7,"b-callout",18),T(7,"async"),F(8,T9b,7,3,"b-callout",19),T(9,"async"),F(10,X9b,10,8,"header",
20),T(11,"async"),K(12,"div",21)(13,"article",22),M(14,"router-outlet"),L(),F(15,Y9b,1,1,"issue-metadata-sidebar",23),T(16,"async"),L()());if(a&2){var b,c;a=P(2);wg("issue-editor-false",!U(1,8,a.permissions.hasAclToEdit$));B(2);G(U(3,10,a.archived$)?2:-1);B(2);G(U(5,12,a.inArchivedComponent$)?4:-1);B(2);G(U(7,14,a.deleted$)?6:-1);B(2);G(U(9,16,a.isInactive$)?8:-1);B(2);G((b=U(11,18,a.id$))?10:-1,b);B(5);G((c=U(16,20,a.id$))?15:-1,c)}},$9b=function(a){a&1&&(K(0,"div",14),M(1,"b-tracker-redirect",38),
T(2,"async"),L());a&2&&(a=P(2),B(),I("issue",U(2,1,a.issue$)))},a$b=function(a){a&1&&(F(0,Z9b,17,22,"div",13),T(1,"async"),Kf(2,$9b,3,3,"div",14));a&2&&(a=P(),G(U(1,1,a.showTrackerRedirect$)?2:0))},b$b=function(a,b){a&1&&(K(0,"h3"),Q(1," Redirecting to "),K(2,"a",39),Q(3),L()());a&2&&(a=b.monorailRedirectUrl,B(2),I("href",a,Ne),B(),S(" ",a," "))},c$b=function(a){a&1&&(M(0,"b-access-denied-metadata",40),T(1,"async"));a&2&&(a=P(2),I("issueMetadata",U(1,1,a.issueMetadata$)))},d$b=function(a){a&1&&M(0,
"b-access-denied-metadata",41)},e$b=function(a){a&1&&(K(0,"div",14),F(1,c$b,2,3,"b-access-denied-metadata",40)(2,d$b,1,0,"b-access-denied-metadata",41),L());a&2&&(a=P(),B(),G(a.activeSession.isInternalSession()?1:2))},f$b=function(a,b){a&1&&M(0,"b-issues-table",0);a&2&&(a=P(),I("issueIds",b)("menuItemFactory",a.getMenuItems)("tableColumns",a.tableColumns)("initialSort",a.initialSort))},h$b=function(a){if(a&1){var b=t();K(0,"div",2);M(1,"img",3);K(2,"p",4);Q(3," This issue has no duplicates ");L();
K(4,"p",5);Q(5," A duplicate is an issue with similar content. ");L();K(6,"p",5);Q(7,' Any issue added here will be closed as a duplicate of this one, making this the "canonical issue". ');K(8,"a",6);Q(9,"Learn more");L()();K(10,"button",7);N("click",function(){u(b);var c=P(2);return v(g$b(c))});Q(11," Add ");L()()}a&2&&(a=P(2),B(),I("src",a.ROBOT_SLEEPING,Ne))},i$b=function(a,b){a&1&&M(0,"b-duplicates-table",10);a&2&&(a=P(2),I("issueId",b)("duplicateIds",a))},j$b=function(a,b){a&1&&(K(0,"a",12),
Q(1," View as search results "),L());a&2&&I("routerLink",b.path)("queryParams",b.params)},k$b=function(a){if(a&1){var b=t();K(0,"h4",8);Q(1);T(2,"async");K(3,"button",9);N("click",function(){u(b);var e=P(2);return v(g$b(e))});Q(4," Add ");L()();F(5,i$b,1,2,"b-duplicates-table",10);T(6,"async");K(7,"aside",11);F(8,j$b,2,2,"a",12);T(9,"async");L()}if(a&2){var c,d;a=P(2);B();S("Duplicates ",U(2,3,a.counts.countDuplicateDisplay$)," ");B(4);G((c=U(6,5,a.id$))?5:-1,c);B(3);G((d=U(9,7,a.dupeUrl$))?8:-1,
d)}},l$b=function(a){a&1&&(F(0,h$b,12,1,"div",2),T(1,"async"),Kf(2,k$b,10,9));a&2&&(a=P(),G(U(1,1,a.showTable$)?2:0))},m$b=function(a){a&1&&(K(0,"aside",1),M(1,"b-spinner"),L())},n$b=function(a,b){a&1&&(K(0,"span",9),Q(1," of "),K(2,"a",10),Q(3),L()());a&2&&(P(2),a=qg(11),B(2),I("routerLink",Eg("/issues/",b))("onedevHovercardTrigger",a),B(),S(" ",b," "))},o$b=function(a,b){a&1&&(K(0,"div")(1,"div",8),T(2,"async"),Q(3),L(),F(4,n$b,4,4,"span",9),T(5,"async"),L());if(a&2){var c;a=P();B();xg(Eg("chippy ",
U(2,6,a.statusCssClass$)));var d;I("title",(d=a.STATUS_JS_FULL_TEXT.get(b))!=null?d:"");B(2);var e;S(" ",(e=a.STATUS_JS_TERSE.get(b))!=null?e:""," ");B();G((c=U(5,8,a.canonicalId$))?4:-1,c)}},p$b=function(a,b){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),xg(Eg("b-chip squared issue-type-",b)),B(),S(" ",a.issueTypeToDisplay(b)," "))},q$b=function(a,b){a&1&&M(0,"b-issue-hotlists",6);a&2&&I("issueId",b)},r$b=function(a){a&1&&(M(0,"b-issue-card",11,1),T(2,"async"));if(a&2){a=qg(1);var b=P();I("onedevIsHovercardReady",
a.init)("issueId",U(2,2,b.canonicalId$))}},s$b=function(a){a&1&&Vf(0)},u$b=function(a){a&1&&(K(0,"mat-expansion-panel",7)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),Q(3,"View Steps Taken"),L()(),E(4,s$b,1,0,"ng-container",12),L());if(a&2){a=P();var b=qg(23);B(4);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,t$b,a.data.trajectory))}},v$b=function(a){a&1&&(K(0,"h3",19),Q(1,"Thinking text:"),L(),K(2,"p",20),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",a.text," "))},w$b=function(a){a&
1&&(K(0,"span",23),Q(1),L(),Q(2," : "),K(3,"span",24),Q(4),L(),Q(5,", "));a&2&&(a=P().$implicit,B(),yg(a.key),B(3),S('"',a.value,'"'))},x$b=function(a,b){a&1&&F(0,w$b,6,2);a&2&&G(b.$implicit.value?0:-1)},y$b=function(a){a&1&&(K(0,"p"),Q(1," [ "),Nf(2,x$b,1,1,null,null,Mf),T(4,"keyvalue"),Q(5," ] "),L());a&2&&(a=P().$implicit,B(2),Of(U(4,0,a.arguments)))},z$b=function(a){a&1&&(K(0,"p",25)(1,"span",23),Q(2),L(),Q(3," : "),K(4,"span",24),Q(5),L(),Q(6,", "),L());a&2&&(a=P().$implicit,B(2),yg(a.key),B(3),
S('"',a.value,'"'))},A$b=function(a,b){a&1&&F(0,z$b,7,2,"p",25);a&2&&G(b.$implicit.value?0:-1)},B$b=function(a,b){a&1&&(K(0,"div",21)(1,"p")(2,"span",22),Q(3),L(),Q(4," was called with: "),L(),F(5,y$b,6,2,"p"),K(6,"p")(7,"span",22),Q(8,"Output:"),L()(),Nf(9,A$b,1,1,null,null,Mf),T(11,"keyvalue"),L());a&2&&(a=b.$implicit,B(3),yg(a.name),B(2),G(a.arguments?5:-1),B(4),Of(U(11,2,a.outputs)))},C$b=function(a){a&1&&Nf(0,B$b,12,4,"div",21,Mf);a&2&&(a=P().$implicit,Of(a.functionCalls))},D$b=function(a,b){a&
1&&(K(0,"div",17)(1,"p",18),Q(2),L(),F(3,v$b,4,1),F(4,C$b,2,0),L());a&2&&(a=b.$implicit,b=b.$index,B(2),S("Step ",b+1),B(),G(a.text?3:-1),B(),G(a.functionCalls?4:-1))},E$b=function(a,b){a&1&&(K(0,"div",13)(1,"div",14)(2,"h3",15),Q(3,"Prompt:"),L(),K(4,"p",16),Q(5),L()(),Nf(6,D$b,5,3,"div",17,Mf),L());a&2&&(a=b.data,B(5),S(" ",a.prompt," "),B(),Of(a.steps))},F$b=function(a){a&1&&M(0,"div",9)},G$b=function(a){a&1&&(K(0,"div"),Q(1," AI-generated code changes may contain inaccurate or offensive information that doesn't represent Google's views. "),
L())},H$b=function(a){a&1&&Vf(0)},I$b=function(a){a&1&&E(0,H$b,1,0,"ng-container",17);a&2&&(P(2),a=qg(5),I("ngTemplateOutlet",a))},J$b=function(a){a&1&&Vf(0)},K$b=function(a){a&1&&E(0,J$b,1,0,"ng-container",17);a&2&&(P(2),a=qg(7),I("ngTemplateOutlet",a))},L$b=function(a){a&1&&Vf(0)},M$b=function(a){a&1&&E(0,L$b,1,0,"ng-container",18);if(a&2){P(2);a=qg(9);var b=ag(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(2,mu,b))}},N$b=function(a){a&1&&Vf(0)},O$b=function(a){a&1&&E(0,N$b,1,0,"ng-container",
18);if(a&2){P(2);a=qg(9);var b=ag(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(2,mu,b))}},P$b=function(a){a&1&&Vf(0)},Q$b=function(a){a&1&&E(0,P$b,1,0,"ng-container",18);if(a&2){P(2);a=qg(11);var b=ag(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(2,mu,b))}},R$b=function(a){a&1&&Vf(0)},S$b=function(a){a&1&&E(0,R$b,1,0,"ng-container",18);if(a&2){P(2);a=qg(11);var b=ag(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(2,mu,b))}},T$b=function(a){a&1&&(K(0,"div",6)(1,"div",7),
M(2,"mat-icon",8),F(3,F$b,1,0,"div",9),L(),K(4,"h4",10),Q(5),T(6,"async"),K(7,"xap-bubble",11)(8,"xap-icon-trigger",12),M(9,"mat-icon",13),L(),E(10,G$b,2,0,"ng-template",null,5,Mg),L(),K(12,"a",14),M(13,"mat-icon",15),L()(),K(14,"div",16),F(15,I$b,1,1,"ng-container")(16,K$b,1,1,"ng-container")(17,M$b,1,4,"ng-container")(18,O$b,1,4,"ng-container")(19,Q$b,1,4,"ng-container")(20,S$b,1,4,"ng-container"),L()());if(a&2){a=qg(11);var b=P(),c=ag(0);B(3);G(c===b.LlmSuggestionStatus.GENERATING||c===b.LlmSuggestionStatus.LOADING?
3:-1);B(2);S(" ",U(6,4,b.statusMessage$)," ");B(2);I("panelTemplate",a);B(8);G(c===b.LlmSuggestionStatus.INITIAL?15:c===b.LlmSuggestionStatus.GENERATING?16:c===b.LlmSuggestionStatus.GENERATION_SUCCESS?17:c===b.LlmSuggestionStatus.GENERATION_SUCCESS_INELIGIBLE?18:c===b.LlmSuggestionStatus.ERROR?19:c===b.LlmSuggestionStatus.GENERATION_FAILED_INELIGIBLE?20:-1)}},V$b=function(a){if(a&1){var b=t();K(0,"button",19);N("click",function(){u(b);var c=P();return v(U$b(c))});Q(1," Start AI fix ");L();K(2,"button",
20);N("click",function(){u(b);var c=P();return v(c.ignore())});Q(3," Ignore ");L()}},W$b=function(){},X$b=function(a){a&1&&Vf(0)},Z$b=function(a,b){if(a&1){var c=t();K(0,"button",21);N("click",function(){u(c);var d=P();d.openSidebar();d.analytics.trackEvent("tailwind","display",d.issueId);Y$b(d.issueId);return v()});Q(1," View Summary ");L();K(2,"button",22);N("click",function(){u(c);var d=P();return v(d.handleViewInCritique())});Q(3," View in Critique ");L();E(4,X$b,1,0,"ng-container",18)}a&2&&(a=
b.status,P(),b=qg(13),B(4),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,mu,a)))},$$b=function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(){u(b);var c=P(2);return v(c.openTailwindInfoDialog())});Q(1," View details ");L()}},aac=function(a){a&1&&Vf(0)},cac=function(a,b){a&1&&(F(0,$$b,2,0,"button",23),E(1,aac,1,0,"ng-container",18));if(a&2){a=b.status;b=P();var c=qg(13);G(bac(b)?0:-1);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ig(3,mu,a))}},eac=function(a){if(a&1){var b=
t();K(0,"button",26);N("click",function(){u(b);var c=P(2);return v(dac(c))});Q(1," Retry ");L()}},fac=function(a,b){a&1&&F(0,eac,2,0,"button",25);a&2&&(a=b.status,b=P(),G(a!==b.LlmSuggestionStatus.GENERATION_FAILED_INELIGIBLE?0:-1))},gac=function(a,b){a&1&&M(0,"b-issue-person-card",4);a&2&&I("email",b)},hac=function(a,b){a&1&&(K(0,"span",3),Q(1),T(2,"shortenEmail"),L(),K(3,"onedev-hovercard",null,0),F(5,gac,1,1,"b-issue-person-card",4),L());if(a&2){var c;a=qg(4);var d=P(2);I("onedevHovercardTrigger",
a);B();S(" ",Lg(2,3,d.userToLossyEmail(b),30)," ");B(4);G((c=b.emailAddress)?5:-1,c)}},iac=function(a,b){if(a&1){var c=t();K(0,"a",5);N("click",function(d){var e=u(c),f=P(2);return v(f.scrollCommentIntoView(d,e))});Q(1);L()}a&2&&(a=P(2),If("aria-label",Eg("Comment number ",b)),I("routerLinkObj",a.getCommentNumberLink(b)),B(),S(" #",b))},jac=function(a){a&1&&(Tf(0),Q(1,","),Uf())},kac=function(a,b){a&1&&(K(0,"span",1),F(1,hac,6,6),K(2,"span"),F(3,iac,2,4,"a",2),F(4,jac,2,0,"ng-container"),L()());if(a&
2){var c,d;a=b.$implicit;var e=b.$index;b=b.$count;B();G((c=a.userPerformingActionUser)?1:-1,c);B(2);G((d=a.commentNumber)?3:-1,d);B();G(e!==b-1?4:-1)}},lac=function(a,b){a&1&&(K(0,"div",2)(1,"a",3),T(2,"removePngExtension"),M(3,"b-secure-image-widget",4),L(),M(4,"comments-info",5),L());a&2&&(a=b.$implicit,b=P(3),B(),I("href",Dg(U(2,6,a.src)),Ne),B(2),I("showByDefault",!0)("src",a.srcCorp),B(),I("issueId",b.issueId)("comments",a.comments))},nac=function(a){if(a&1){var b=t();K(0,"button",8);N("click",
function(){u(b);var c=P(2),d=P(2);return v(mac(d,c.length))});Q(1," Load more ");L()}},oac=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P(4);return v(c.goToResourcesTab())});Q(1," See all screenshots ");L()}},pac=function(a){a&1&&F(0,nac,2,0,"button",6)(1,oac,2,0,"button",7);a&2&&(a=P(3),G(a.paginate?0:1))},qac=function(a,b){a&1&&(K(0,"div",1),Nf(1,lac,5,8,"div",2,Lf),T(3,"async"),L(),F(4,pac,2,1));if(a&2){a=P();var c=P();wg("show-all-images",c.paginate);B();Of(U(3,
3,c.imagesToRender$));B(3);G(a.length!==b.length?4:-1)}},rac=function(a){a&1&&(F(0,qac,5,5),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.imagesToRender$))?0:-1,b)}},sac=function(a){var b=new Map;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=(d=b.get(c.src))!=null?d:[];e.push(c.comment);b.set(c.src,e)}return Array.from(b.entries()).map(function(f){var g=m(f);f=g.next().value;g=g.next().value;return{src:f,comments:tq(g)}})},tac=function(a){a&1&&(K(0,"span",1)(1,"span",4),
Q(2),L()());a&2&&(a=P(),B(2),S(" ",a.leftText," "))},uac=function(a){a&1&&(K(0,"b-external-hyperlink-widget",2),Q(1),L());a&2&&(a=P(),I("href",a.redirectedHref)("originalHref",a.originalHref),B(),yg(a.linkText))},vac=function(a){a&1&&(K(0,"b-issue-reference-widget",5),Q(1),L());a&2&&(a=P(2),I("href",a.redirectedHref)("issueId",a.issueId),B(),yg(a.linkText))},wac=function(a){a&1&&(K(0,"a",6),Q(1),L());a&2&&(a=P(2),I("href",Dg(a.redirectedHref),Ne),B(),yg(a.linkText))},xac=function(a){a&1&&F(0,vac,
2,3,"b-issue-reference-widget",5)(1,wac,2,3,"a",6);a&2&&(a=P(),G(a.issueId?0:1))},yac=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),B(),yg(a.rightText))},zac=function(a){var b=document.createElement("div");a&&Gra(b,a);return b},Aac=function(a){a&1&&(K(0,"td"),M(1,"b-issue-priority-display",0),L(),K(2,"td",1)(3,"span",2),Q(4),L(),M(5,"mentioned-link-with-context",3),L(),K(6,"td"),M(7,"comments-info",4),T(8,"toComments"),L());if(a&2){a=P().$implicit;var b=P(3);B();I("matTooltip",a.hasViewAccess?
"":"Access is denied to this issue")("issuePriority",a.priority);B(2);I("matTooltip",a.hasViewAccess?"":"Access is denied to this issue");B();var c;S(" ",(c=a.title)!=null?c:"--"," ");B();I("sourceComment",a.sourceComments[0].issueEvent)("relatedLink",a.relatedLinks[0]);B(2);I("issueId",b.issueId)("comments",U(8,8,a.sourceComments))}},Bac=function(a,b){a&1&&(K(0,"tr"),F(1,Aac,9,10),L());a&2&&(a=b.$implicit,B(),G(a.sourceComments&&a.relatedLinks?1:-1))},Cac=function(a){if(a&1){var b=t();K(0,"button",
7);N("click",function(){u(b);var c=P(4);c.lastRenderedMentionedIssueIndex$.next(c.lastRenderedMentionedIssueIndex$.value+100);return v()});Q(1," Load more ");L()}},Dac=function(a){if(a&1){var b=t();K(0,"button",8);N("click",function(){u(b);var c=P(4);return v(c.goToResourcesTab())});Q(1," See all mentioned issues ");L()}},Eac=function(a){a&1&&(K(0,"div"),F(1,Cac,2,0,"button",5)(2,Dac,2,0,"button",6),L());a&2&&(a=P(3),B(),G(a.paginate?1:2))},Fac=function(a,b){a&1&&(K(0,"section")(1,"table"),Nf(2,Bac,
2,1,"tr",null,Mf),L(),F(4,Eac,3,1,"div"),L());a&2&&(a=P(),B(2),Of(a),B(2),G(b.length!==a.length?4:-1))},Gac=function(a){a&1&&(F(0,Fac,5,1,"section"),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.allMentionedIssues$))?0:-1,b)}},Hac=function(a,b){a&1&&(K(0,"div",0),M(1,"mentioned-link-with-context",1)(2,"comments-info",2),T(3,"toComments"),L());a&2&&(a=b.$implicit,b=P(3),B(),I("sourceComment",a[0].comment)("relatedLink",a[0]),B(),I("issueId",b.issueId)("comments",U(3,4,a)))},Iac=function(a){if(a&1){var b=
t();K(0,"button",5);N("click",function(){u(b);var c=P(4);c.lastRenderedRelatedLinkIndex$.next(c.lastRenderedRelatedLinkIndex$.value+100);return v()});Q(1," Load more ");L()}},Jac=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P(4);return v(c.goToResourcesTab())});Q(1," See all related links ");L()}},Kac=function(a){a&1&&(K(0,"div"),F(1,Iac,2,0,"button",3)(2,Jac,2,0,"button",4),L());a&2&&(a=P(3),B(),G(a.paginate?1:2))},Mac=function(a,b){a&1&&(Nf(0,Hac,4,6,"div",0,Lac),
F(2,Kac,3,1,"div"));a&2&&(a=P(),Of(b),B(2),G(a.length!==b.length?2:-1))},Nac=function(a){a&1&&(F(0,Mac,3,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.linkGroupsToRender$))?0:-1,b)}},Pac=function(a,b){var c=a.filter(function(d){return r8a(d[0])});a=a.filter(function(d){return!r8a(d[0])});return Oac([].concat(q(c),q(a)).slice(0,b),"ASCENDING")},Qac=function(a){a&1&&M(0,"mat-icon",13)},Rac=function(a){a&1&&(Q(0),T(1,"async"));if(a&2){a=P(2);var b;S("Screenshots (",(b=U(1,1,a.distinctImageLinksCount$))!=
null?b:0,")")}},Uac=function(a,b){if(a&1){var c=t();K(0,"inline-images-summary",15);T(1,"async");N("click",function(){u(c);var e=P(3);Sac(e.issueSummaryTracking,e.issueId,e.TabKeys.IMAGES);return v()});L()}if(a&2){a=P(3);var d;I("issueId",b)("imageLinks",(d=U(1,2,a.imageLinks$))!=null?d:Hg(4,Tac))}},Vac=function(a){a&1&&(F(0,Uac,2,5,"inline-images-summary",14),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.issueId$))?0:-1,b)}},Wac=function(a){a&1&&M(0,"mat-icon",16)},Xac=function(a){a&1&&(Q(0),T(1,
"async"));if(a&2){a=P(2);var b;S("Mentioned issues (",(b=U(1,1,a.distinctIssuesCount$))!=null?b:0,")")}},Yac=function(a,b){if(a&1){var c=t();K(0,"b-mentioned-issues",18);N("click",function(){u(c);var d=P(3);Sac(d.issueSummaryTracking,d.issueId,d.TabKeys.MENTIONED_ISSUES);return v()});L()}a&2&&(a=P(3),I("issueReferences",b)("currentIssueId",a.issueId))},Zac=function(a){a&1&&(F(0,Yac,1,2,"b-mentioned-issues",17),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.issues$))?0:-1,b)}},$ac=function(a){a&1&&
M(0,"mat-icon",19)},abc=function(a){a&1&&(Q(0),T(1,"async"));if(a&2){a=P(2);var b;S("Links (",(b=U(1,1,a.distinctOtherLinksCount$))!=null?b:0,")")}},bbc=function(a){if(a&1){var b=t();K(0,"related-links-widget",20);T(1,"async");N("click",function(){u(b);var d=P(2);Sac(d.issueSummaryTracking,d.issueId,d.TabKeys.LINKS);return v()});L()}if(a&2){a=P(2);var c;I("links",(c=U(1,2,a.otherLinks$))!=null?c:Hg(4,Tac))("issueId",a.issueId)}},cbc=function(a){a&1&&M(0,"mat-icon",21)},dbc=function(a){a&1&&Q(0,"Similar issues")},
ebc=function(a,b){if(a&1){var c=t();K(0,"suggested-similar-issues",23);N("click",function(){u(c);var e=P(5);Sac(e.issueSummaryTracking,e.issueId,e.TabKeys.SIMILAR_ISSUES);return v()});L()}if(a&2){a=P();var d=P(4);I("issueId",d.issueId)("similarIssueIds",a)("similarIssuesEnrichments",b)}},fbc=function(a){a&1&&(F(0,ebc,1,3,"suggested-similar-issues",22),T(1,"async"));if(a&2){var b;a=P(4);G((b=U(1,1,a.similarIssuesEnrichments$))?0:-1,b)}},gbc=function(a){a&1&&(F(0,fbc,2,3),T(1,"async"));if(a&2){var b;
a=P(3);G((b=U(1,1,a.similarIssueIds$))?0:-1,b)}},hbc=function(a){a&1&&(K(0,"expandable-tab",9),E(1,cbc,1,0,"ng-template",4)(2,dbc,1,0,"ng-template",5)(3,gbc,2,3,"ng-template",6),L());a&2&&(a=P(2),I("key",a.TabKeys.SIMILAR_ISSUES))},ibc=function(a){a&1&&M(0,"mat-icon",24)},jbc=function(a){a&1&&Q(0,"Deduplicate")},kbc=function(a,b){a&1&&M(0,"b-recommendation",25);a&2&&I("recommendation",b)},lbc=function(a){a&1&&(F(0,kbc,1,1,"b-recommendation",25),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.dedupeRecommendation$))?
0:-1,b)}},mbc=function(a){a&1&&M(0,"mat-icon",26)},nbc=function(a){a&1&&Q(0,"Assign to reporter")},obc=function(a,b){a&1&&M(0,"b-recommendation",25);a&2&&I("recommendation",b)},pbc=function(a){a&1&&(F(0,obc,1,1,"b-recommendation",25),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.assignToReporterRecommendation$))?0:-1,b)}},qbc=function(a){a&1&&(K(0,"expandable-tab",11),E(1,mbc,1,0,"ng-template",4)(2,nbc,1,0,"ng-template",5)(3,pbc,2,3,"ng-template",6),L());a&2&&(a=P(2),I("key",a.TabKeys.ASSIGN_TO_REPORTER))},
rbc=function(a){a&1&&M(0,"mat-icon",27)},sbc=function(a){a&1&&Q(0,"Reroute")},tbc=function(a,b){a&1&&M(0,"b-recommendation",25);a&2&&I("recommendation",b)},ubc=function(a){a&1&&(F(0,tbc,1,1,"b-recommendation",25),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.componentRoutingRecommendation$))?0:-1,b)}},vbc=function(a){a&1&&(K(0,"expandable-tab",12),E(1,rbc,1,0,"ng-template",4)(2,sbc,1,0,"ng-template",5)(3,ubc,2,3,"ng-template",6),L());a&2&&(a=P(2),I("key",a.TabKeys.COMPONENT_ROUTING))},xbc=function(a,
b){if(a&1){var c=t();K(0,"expandable-tabs",2);N("expandedTabsChanged",function(d){var e=u(c),f=P();return v(f.onTabExpanded$.emit({expandedTabKeys:d,allTabKeys:e}))})("contentShownChanged",function(d){u(c);var e=P(),f=e.issueSummaryTracking;e=e.issueId;for(var g=m(wbc),k=g.next();!k.done;k=g.next())k=k.value,d.has(k)?(nu(f.issueInteractionsTracking,e,k+"-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+"-content-not-shown")):(nu(f.issueInteractionsTracking,e,k+"-content-not-shown"),
f.issueInteractionsTracking.getState(e).variations.delete(k+"-content-shown"));d.size>0?(f.recordImpressionOnce(),nu(f.issueInteractionsTracking,e,"SW-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-not-shown")):(nu(f.issueInteractionsTracking,e,"SW-content-not-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-shown"));return v()});K(1,"expandable-tab",3);E(2,Qac,1,0,"ng-template",4)(3,Rac,2,3,"ng-template",5)(4,Vac,2,3,"ng-template",
6);L();K(5,"expandable-tab",7);E(6,Wac,1,0,"ng-template",4)(7,Xac,2,3,"ng-template",5)(8,Zac,2,3,"ng-template",6);L();K(9,"expandable-tab",8);E(10,$ac,1,0,"ng-template",4)(11,abc,2,3,"ng-template",5)(12,bbc,2,5,"ng-template",6);L();F(13,hbc,4,1,"expandable-tab",9);T(14,"async");K(15,"expandable-tab",10);E(16,ibc,1,0,"ng-template",4)(17,jbc,1,0,"ng-template",5)(18,lbc,2,3,"ng-template",6);L();F(19,qbc,4,1,"expandable-tab",11);F(20,vbc,4,1,"expandable-tab",12);L()}a&2&&(a=P(),I("tabKeys",b)("expandedTabs",
a.initiallyExpandedTabs),B(),I("key",a.TabKeys.IMAGES),B(4),I("key",a.TabKeys.MENTIONED_ISSUES),B(4),I("key",a.TabKeys.LINKS),B(4),G(U(14,9,a.shouldShowSimilarIssues$)?13:-1),B(2),I("key",a.TabKeys.DUPES),B(4),G(a.enableNeedsInfoUi?19:-1),B(),G(a.activeSession.isInternalSession()?20:-1))},ybc=function(a,b){a&1&&(K(0,"li",3)(1,"div",6),M(2,"b-user-image",7),L(),K(3,"div",8),M(4,"b-user-display",9)(5,"b-formatted-date-time",10),K(6,"p",11),Q(7," Formatting: "),K(8,"code",12),Q(9),L()(),M(10,"br"),K(11,
"span",13)(12,"b-person-hovercard",14),T(13,"omitObfuscatedEmail"),Q(14),T(15,"appendDomain"),L()(),Q(16),L(),K(17,"pre"),Q(18),L()());a&2&&(a=b.$implicit,b=b.$index,B(2),I("email",a.author==null?null:a.author.emailAddress),B(2),I("model",a.author),B(),I("timestamp",a.updateTime),B(4),S(" ",a.formattingMode," "),B(3),I("email",U(13,8,a.author==null?null:a.author.emailAddress)),B(2),S(" <",U(15,10,a.author==null?null:a.author.emailAddress),"> "),B(2),S(" #",b+1," "),B(2),yg(a.updateText))},zbc=function(a){if(a&
1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P(3);return v(c.editStatusUpdate())});Q(1," Edit ");L()}},Abc=function(a){a&1&&(K(0,"header",4)(1,"h4",6),Q(2,"Status Update"),L(),K(3,"p",7),Q(4,"No update yet."),L(),F(5,zbc,2,0,"button",8),T(6,"async"),L());a&2&&(a=P(2),B(5),G(U(6,1,a.showEditButton$)?5:-1))},Cbc=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(4);return v(Bbc(c))});Q(1," Mark as fresh ");L()}},Dbc=function(a){if(a&1){var b=t();K(0,"button",
16);N("click",function(){u(b);var c=P(3);return v(c.editStatusUpdate())});Q(1," Edit ");L();F(2,Cbc,2,0,"button",17);T(3,"async")}a&2&&(a=P(3),B(2),G(U(3,1,a.freshnessIndicator$)===a.Freshness.STALE?2:-1))},Ebc=function(a){a&1&&M(0,"mat-icon",19)},Fbc=function(a,b){a&1&&(F(0,Ebc,1,0,"mat-icon",19),T(1,"async"),Q(2," Updated by "),K(3,"span",20),Q(4),T(5,"shortenEmail"),L(),M(6,"b-formatted-date-time",21),K(7,"onedev-hovercard",null,0),M(9,"b-issue-person-card",22),L());if(a&2){a=qg(8);var c=P(3);
G(U(1,5,c.freshnessIndicator$)===c.Freshness.FRESH?0:-1);B(3);I("onedevHovercardTrigger",a);B();var d;S(" ",U(5,7,(d=b.author==null?null:b.author.emailAddress)!=null?d:"")," ");B(2);I("timestamp",b.updateTime);B(3);var e;I("email",(e=b.author==null?null:b.author.emailAddress)!=null?e:"")}},Gbc=function(a,b){a&1&&M(0,"b-actions-menu",14);a&2&&I("buttonLabel","Status Update actions")("menuItems",b)},Hbc=function(a,b){a&1&&(M(0,"b-note-container",23),T(1,"async"),T(2,"async"));if(a&2){a=P();var c=P(3),
d;I("issueId",a.issueId)("issueAccessLevel",U(1,4,c.accessLevel$))("note",b)("formattingMode",(d=U(2,6,c.formattingMode$))!=null?d:c.FormattingMode.PLAIN)}},Ibc=function(a){if(a&1){var b=t();K(0,"button",25);N("click",function(){u(b);var c=P(4);return v(c.isCollapsed=!1)});Q(1," Show More ");L()}},Jbc=function(a){a&1&&(K(0,"div",15)(1,"div",null,1),F(3,Hbc,3,8,"b-note-container",23),T(4,"async"),L(),F(5,Ibc,2,0,"button",24),L());if(a&2){var b;a=P(3);B();wg("collapsed",a.isCollapsed);B(2);G((b=U(4,
4,a.statusUpdateAsNote$))?3:-1,b);B(2);G(a.isCollapsed?5:-1)}},Kbc=function(a){a&1&&(K(0,"div",5)(1,"header",10)(2,"div",11)(3,"h4",12),Q(4,"Status Update"),L(),F(5,Dbc,4,3),T(6,"async"),L(),K(7,"div",13),F(8,Fbc,10,9),T(9,"async"),F(10,Gbc,1,2,"b-actions-menu",14),T(11,"async"),L()(),F(12,Jbc,6,6,"div",15),T(13,"async"),L());if(a&2){var b,c,d;a=P(2);B(5);G(U(6,4,a.showEditButton$)?5:-1);B(3);G((b=U(9,6,a.statusUpdate$))?8:-1,b);B(2);G((c=U(11,8,a.menuItems$))?10:-1,c);B(2);G((d=U(13,10,a.statusUpdate$))?
12:-1,d)}},Mbc=function(a,b){a&1&&(K(0,"div"),T(1,"async"),M(2,"mat-icon",3),F(3,Abc,7,3,"header",4),F(4,Kbc,14,12,"div",5),L());a&2&&(a=P(),xg(Eg("carded margin-s-sides margin-s-bottom bg-main highlighted-left flex-kids-x ",U(1,9,a.semanticClass$))),wg("display-none",Ig(11,Lbc,a.UiState.LOADING).includes(b))("short-height",a.UiState.EMPTY===b),B(3),G(b===a.UiState.EMPTY?3:-1),B(),G(b===a.UiState.NORMAL?4:-1))},Nbc=function(a){switch(a){case 1:return"noUpdate";case 2:return"hasUpdate";case 0:return"";
default:return""}},Obc=function(a){a&1&&M(0,"llm-suggested-bug-fix",7);a&2&&(a=P(),I("issueId",a))},Pbc=function(a,b){a&1&&(M(0,"issue-description-area",5),K(1,"div",6),T(2,"async"),M(3,"b-insights-enrichments",null,0),L(),M(5,"status-update",7),F(6,Obc,1,1,"llm-suggested-bug-fix",7),M(7,"b-issue-description",8));if(a&2){a=qg(4);var c=P();I("id",b);B();wg("hidden",!U(2,6,a.shouldShowInsights$));B(4);I("issueId",b);B();G(c.enableTailwind?6:-1);B();I("id",b)}},Qbc=function(a,b){a&1&&(M(0,"issue-summary-card",
9,1),T(2,"async"));a&2&&(a=qg(1),wg("hidden",!U(2,3,a.shouldShowSummaryCard$)),I("issueId",b))},Rbc=function(a){a&1&&M(0,"issue-event-list",11);a&2&&(a=P(),I("id",a))},Sbc=function(a){a&1&&M(0,"issue-event-list",11);a&2&&(a=P(),I("id",a))},Tbc=function(a,b){a&1&&(K(0,"div",10),M(1,"b-event-stream-header"),F(2,Rbc,1,1,"issue-event-list",11),M(3,"b-post-comment",7),F(4,Sbc,1,1,"issue-event-list",11),L());a&2&&(a=P(),wg("recent-first",a.showRecentEventsFirst),B(2),G(a.showRecentEventsFirst?-1:2),B(),
I("issueId",b),B(),G(a.showRecentEventsFirst?4:-1))},Ubc=function(a){a&1&&(K(0,"section")(1,"h4"),M(2,"mat-icon",1),Q(3),L(),M(4,"inline-images-summary",2)(5,"br")(6,"hr",3),L());if(a&2){a=P(2);var b=P();B(3);S(" Screenshots (",a.length,") ");B();I("issueId",b.issueId)("imageLinks",a)("paginate",!0)}},Vbc=function(a){a&1&&F(0,Ubc,7,4,"section");a&2&&(a=P(),G(a.length?0:-1))},Wbc=function(a){a&1&&F(0,Vbc,1,1);a&2&&(a=P(2),G(a.isInternalSession?0:-1))},Xbc=function(a){a&1&&(K(0,"section")(1,"h4"),M(2,
"mat-icon",4),Q(3),L(),M(4,"b-mentioned-issues",5)(5,"br")(6,"hr",3),L());if(a&2){a=P();var b=P();B(3);S(" Mentioned issues (",a.length,") ");B();I("issueReferences",a)("currentIssueId",b.issueId)("paginate",!0)}},Ybc=function(a,b){a&1&&F(0,Xbc,7,4,"section");a&2&&G(b.length?0:-1)},Zbc=function(a){a&1&&(K(0,"section")(1,"h4"),M(2,"mat-icon",6),Q(3),L(),M(4,"related-links-widget",7),L());if(a&2){a=P();var b=P();B(3);S(" Links (",a.length,") ");B();I("links",a)("issueId",b.issueId)("paginate",!0)}},
$bc=function(a,b){a&1&&F(0,Zbc,5,4,"section");a&2&&G(b.length?0:-1)},acc=function(a){a&1&&(F(0,Wbc,1,1),T(1,"async"),F(2,Ybc,1,1),T(3,"async"),F(4,$bc,1,1),T(5,"async"));if(a&2){var b,c,d;a=P();G((b=U(1,3,a.imageLinks$))?0:-1,b);B(2);G((c=U(3,5,a.issueReferences$))?2:-1,c);B(2);G((d=U(5,7,a.otherLinks$))?4:-1,d)}},bcc=function(a,b){a&1&&M(0,"b-package-mentions-listing",2);if(a&2){a=b.$implicit;b=P(2);var c=P(),d=P();I("issueId",c)("packageMentionSet",a)("displayPackageName",d.displayPackageNames(b))}},
ccc=function(a){if(a&1){var b=t();Nf(0,bcc,1,3,"b-package-mentions-listing",2,Mf);K(2,"p",3)(3,"a",4);N("click",function(){u(b);var c=P(3);return v(c.trackSqueegeeClick())});Q(4,"View in Squeegee");L()()}a&2&&(a=P(),Of(a.mentions.packageMentionSet),B(3),I("href",a.link,Ne))},dcc=function(a){a&1&&(K(0,"div",1),M(1,"img",5),K(2,"p",6),Q(3," This issue has no TODOs "),L(),K(4,"p",7),Q(5," Buganizer uses a separate service to look for TODOs in the codebase. It didn't find any. "),K(6,"a",8),Q(7,"Learn more"),
L()()());a&2&&(a=P(3),B(),I("src",a.ROBOT_SLEEPING,Ne))},ecc=function(a,b){a&1&&F(0,ccc,5,1)(1,dcc,8,1,"div",1);a&2&&G(b.mentions&&b.mentions.totalMentions>0?0:1)},fcc=function(a){a&1&&(F(0,ecc,2,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.codeMentionsState$))?0:-1,b)}},gcc=function(a){a&1&&M(0,"b-spinner",4);a&2&&I("large",!0)},hcc=function(a){a&1&&M(0,"b-hotlist-grid",5);a&2&&(a=P(),I("hotlists",a.hotlists))},icc=function(a){a&1&&(K(0,"div",6),M(1,"b-spinner"),K(2,"span"),Q(3),L()());a&2&&
(a=P(),B(3),S(" Searching",a.query?" for "+a.query:"","..."))},jcc=function(a){a&1&&Q(0," No issues match your search. ")},kcc=function(a){a&1&&Q(0," Use search box to find issues. ")},mcc=function(a){a&1&&(K(0,"a",10),Q(1," Click to see all open issues"),L());a&2&&I("queryParams",Hg(1,lcc))},ncc=function(a){a&1&&(K(0,"a",11),Q(1,"Learn more about searching"),L())},occ=function(a){a&1&&(K(0,"div",7),M(1,"img",9),F(2,jcc,1,0)(3,kcc,1,0),F(4,mcc,2,2,"a",10)(5,ncc,2,0,"a",11),L());a&2&&(a=P(),I("bFocus",
!0),B(),I("src",a.SPACE_EMPTY_STATE,Ne),B(),G(a.query?2:3),B(2),G(a.currentTracker?4:5))},pcc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"b-issues-grid",12);N("init",function(c){u(b);var d=P();return v(d.resultsGrid=c)});Cg("columnsChange",function(c){u(b);var d=P();Bg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("columnsChange",function(){u(b);var c=P();return v(c.onColumnsChange())})("sortChange",function(c){u(b);var d=P();return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);
var d=P();return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P();return v(ou(c,c.page,1))})("onPrevPage",function(){u(b);var c=P();return v(ou(c,c.page,-1))});L()()}a&2&&(a=P(),B(),I("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex),Ag("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},qcc=function(a){a&1&&(K(0,"div",3)(1,"h2"),Q(2,"Manage SLOs"),L(),K(3,"p",5),Q(4,"You have admin rights for all SLOs listed below."),
L()())},rcc=function(a){a&1&&M(0,"b-spinner",4);a&2&&I("large",!0)},scc=function(a){a&1&&M(0,"b-slo-grid",6);a&2&&(a=P(2),I("slos",a.activeSlos))},tcc=function(a){a&1&&(K(0,"div",7),Q(1,"You have no Active SLOs"),L())},ucc=function(a){a&1&&M(0,"b-slo-grid",6);a&2&&(a=P(3),I("slos",a.archivedSlos))},vcc=function(a){a&1&&(K(0,"p",12),Q(1," You have no archived SLOs. "),L())},wcc=function(a){a&1&&(K(0,"div",11),F(1,ucc,1,1,"b-slo-grid",6)(2,vcc,2,0,"p",12),L());a&2&&(a=P(2),B(),G(a.archivedSlos.length?
1:2))},xcc=function(a){if(a&1){var b=t();F(0,scc,1,1,"b-slo-grid",6)(1,tcc,2,0,"div",7);K(2,"button",8);N("click",function(){u(b);var c=P();c.areArchivedSlosExpanded=!c.areArchivedSlosExpanded;return v()});K(3,"h4",9);M(4,"mat-icon",10);Q(5);L()();F(6,wcc,3,1,"div",11)}a&2&&(a=P(),G(a.activeSlos.length?0:1),B(4),wg("rotate-180",a.areArchivedSlosExpanded),I("svgIcon","arrow-dropdown"),B(),S(" Archived SLOs (",a.archivedSlos.length,") "),B(),G(a.areArchivedSlosExpanded?6:-1))},ycc=function(a){if(a&
1){var b=t();K(0,"button",21);N("click",function(){u(b);var c=P();return v(c.save())});Q(1," Save ");L()}a&2&&(a=P(),I("disabled",a.validationForm.invalid))},zcc=function(a,b){a&1&&(K(0,"b-callout",22)(1,"b-callout-body"),Q(2),L()());a&2&&(B(2),S(" Other existing configurations in this component already apply for these issue types: ",b," "))},Acc=function(a){a&1&&M(0,"mat-icon",28);a&2&&(P(),a=ag(2),I("svgIcon",a))},Bcc=function(a,b){a&1&&(K(0,"mat-checkbox",26)(1,"div",27),Zf(2),F(3,Acc,1,1,"mat-icon",
28),Q(4),L()());if(a&2){var c=b.$implicit;a=P(2);b=c.key;I("formControl",c.value);B(2);c=$f(a.constants.issueTypeIcons.get(b));B();G(c?3:-1);B();S(" ",a.issueTypeToDisplay(b)," ")}},Dcc=function(a){a&1&&(F(0,zcc,3,1,"b-callout",22),T(1,"async"),K(2,"h2",23),Q(3,"Issue types"),L(),K(4,"div",24),Q(5," Select one or more issue types that this field configuration applies to. "),L(),K(6,"div",25),Nf(7,Bcc,5,4,"mat-checkbox",26,Ccc),T(9,"keyvalue"),L());if(a&2){var b;a=P();G((b=U(1,1,a.conflictingIssueTypes$))?
0:-1,b);B(7);Of(U(9,3,a.issueTypesForms))}},Ecc=function(a,b){a&1&&(K(0,"td",29)(1,"strong"),Q(2),L()());a&2&&(a=b.$implicit,b=P(),If("colspan",b.displayedColumns.length),B(2),yg(a.text))},Fcc=function(a){if(a&1){var b=t();K(0,"th",30)(1,"mat-checkbox",31);N("change",function(){u(b);var d=P(),e=ag(11);d=m(d.customFieldRows);for(var f=d.next();!f.done;f=d.next())f.value.formControl.setValue((e==="all"?"hidden":"visible")==="visible");return v()});Q(2," Is Visible? ");L()()}if(a&2){a=P();var c=ag(11);
B();I("disabled",a.isReadOnly)("checked",c==="all")("indeterminate",c==="some")}},Gcc=function(a,b){a&1&&(K(0,"td",29),M(1,"mat-checkbox",32),L());a&2&&(a=b.$implicit,B(),I("formControl",a.formControl))},Hcc=function(a){a&1&&(K(0,"th",30),Q(1," Name"),L())},Icc=function(a,b){a&1&&(K(0,"td",29),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.customField.name," "))},Jcc=function(a){a&1&&(K(0,"th",30),Q(1," ID"),L())},Kcc=function(a,b){a&1&&(K(0,"td",29)(1,"strong"),Q(2),L()());a&2&&(a=b.$implicit,B(2),yg(a.customField.customFieldId))},
Lcc=function(a){a&1&&(K(0,"th",30),Q(1," Type"),L())},Mcc=function(a,b){a&1&&(K(0,"td",29),Q(1),T(2,"enumToHuman"),L());if(a&2){a=b.$implicit;B();var c;S(" ",U(2,1,(c=a.customField.type)!=null?c:null)," ")}},Ncc=function(a){a&1&&(K(0,"th",30),Q(1," Description"),L())},Occ=function(a,b){a&1&&(K(0,"td",29),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.customField.description," "))},Pcc=function(a){a&1&&(K(0,"th",30),Q(1," Required?"),L())},Qcc=function(a,b){a&1&&(K(0,"td",29),Q(1),T(2,"yesNo"),L());a&2&&
(a=b.$implicit,B(),S(" ",U(2,1,a.customField.required)," "))},Rcc=function(a){a&1&&(K(0,"th",30),Q(1," Default"),L())},Scc=function(a,b){a&1&&(K(0,"td",29),M(1,"b-custom-field-value-display",33),L());a&2&&(a=b.$implicit,B(),I("customFieldValue",a.customField.typedDefaultValue))},Tcc=function(a){a&1&&M(0,"tr",34)},Ucc=function(a,b){a&1&&M(0,"tr",35);a&2&&wg("disabled-field",!b.$implicit.formControl.value)},Vcc=function(a){a&1&&M(0,"tr",35)},Zcc=function(a){if(a&1){var b=t();K(0,"b-field-configuration-editor",
8);N("onSave",function(e){u(b);var f=P(2),g=ag(0);return v(Wcc(f,g.config,e))})("onCancel",function(){u(b);var e=P(2);return v(Xcc(e))});L()}if(a&2){a=P(2);var c=ag(0),d=Ycc(a,c.config);I("currentComponentId",a.currentComponentId)("customFields",a.customFields)("configUnderEdit",c.config)("isReadOnly",!a.isAdmin)("existingConfiguredIssueTypes",d)}},adc=function(a){if(a&1){var b=t();K(0,"b-field-configuration-editor",9);N("onCancel",function(){u(b);var d=P(2);return v(Xcc(d))});L()}if(a&2){a=P(2);
var c=ag(0);I("currentComponentId",c.config.componentId)("customFields",$cc(a,c.config))("configUnderEdit",c.config)("isReadOnly",!0)}},cdc=function(a){if(a&1){var b=t();K(0,"b-field-configuration-editor",10);N("onSave",function(e){u(b);var f=P(2);return v(bdc(f,e))})("onCancel",function(){u(b);var e=P(2);return v(Xcc(e))});L()}if(a&2){a=P(2);var c=ag(0),d=Ycc(a,c.config);I("currentComponentId",a.currentComponentId)("customFields",a.customFields)("disallowIssueTypes",c.disallowIssueTypes)("configUnderEdit",
c.config)("existingConfiguredIssueTypes",d)}},edc=function(a){a&1&&(K(0,"a",12),Q(1," Learn more "),L());a&2&&(P(3),I("href",ddc(),Ne))},fdc=function(a,b){a&1&&(K(0,"td",29)(1,"strong"),Q(2),L()());a&2&&(a=b.$implicit,If("colspan",5),B(2),yg(a.text))},gdc=function(a){a&1&&(K(0,"th",30),Q(1," Name"),L())},hdc=function(a,b){a&1&&(K(0,"td",29),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.name," "))},idc=function(a){a&1&&(K(0,"th",30)(1,"div",31),Q(2," Applicable Issue Types "),M(3,"mat-icon",32),K(4,"onedev-hovercard",
null,3)(6,"div",33)(7,"div",34),Q(8," Configurations with applicable issue types appearing crossed out will not be applied to those types, due to another configuration taking precedence. "),L()()()()());a&2&&(a=qg(5),B(3),I("onedevHovercardTrigger",a))},jdc=function(a){a&1&&Vf(0)},ldc=function(a,b){a&1&&(K(0,"td",29),E(1,jdc,1,0,"ng-container",35),L());a&2&&(a=b.$implicit,P(),b=qg(36),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,kdc,a)))},mdc=function(a){a&1&&(K(0,"th",30),Q(1," Inherited From"),
L())},ndc=function(a){a&1&&(Tf(0),M(1,"b-component-card",40,4),Uf());if(a&2){a=qg(2);P(2);var b=ag(1);B();I("onedevIsHovercardReady",a.init)("componentId",b.toString())}},odc=function(a){a&1&&(K(0,"div",36)(1,"div",37),Q(2,"Inherited From"),L(),K(3,"a",38),Q(4),L(),K(5,"onedev-hovercard",null,3),E(7,ndc,3,2,"ng-container",39),L()());if(a&2){a=qg(6);P();var b=ag(1),c=ag(2),d=P(3);B(3);I("onedevHovercardTrigger",a)("href",d.ROUTES.editComponentFieldConfigurations.makeHref(b),Ne);If("aria-label","Inherited from "+
c);B();S(" ",c," ")}},pdc=function(a,b){a&1&&(K(0,"td",29),Zf(1)(2),F(3,odc,8,4,"div",36),L());a&2&&(b=b.$implicit,a=P(3),B(),b=$f(b.owningComponentId),B(),$f(a.componentIdsToPaths[b]),B(),G(b!==a.currentComponentId?3:-1))},qdc=function(a){a&1&&(K(0,"th",30),Q(1," Actions"),L())},rdc=function(a){a&1&&Vf(0)},sdc=function(a,b){a&1&&(K(0,"td",29),E(1,rdc,1,0,"ng-container",35),L());a&2&&(a=b.$implicit,P(),b=qg(34),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,kdc,a)))},tdc=function(a){a&
1&&M(0,"tr",41)},udc=function(a){a&1&&M(0,"tr",42)},vdc=function(a){a&1&&M(0,"tr",43)},wdc=function(a){a&1&&(K(0,"div",24),Q(1," No custom fields found in this component. Please add custom fields to create a field configuration. "),L())},xdc=function(a,b){a&1&&(K(0,"div",44),Q(1),L(),K(2,"div",45)(3,"button",46),Q(4," Cancel "),L(),K(5,"button",47),Q(6," Confirm "),L()());a&2&&(a=b.$implicit,B(),S(' Are you sure you want to delete the config "',a.name,'"? '),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",
!0))},ydc=function(a){if(a&1){var b=t();K(0,"button",51);N("click",function(){u(b);var c=P(2).row,d=P(3);c=nm(c.data);c.name+=" (Copy)";bdc(d,c);return v()});Q(1," Create Copy ");L()}},Adc=function(a){if(a&1){var b=t();K(0,"button",52);N("click",function(){u(b);var c=P(2).row;P(3).state$.next({view:"edit",config:c.data});return v()});Q(1," Edit ");L();K(2,"button",53);N("click",function(){u(b);var c=P(2).row,d=P(3);return v(zdc(d,c.data))});Q(3," Delete ");L()}},Bdc=function(a){a&1&&(F(0,ydc,2,0,
"button",50),F(1,Adc,4,0));a&2&&(a=P().row,G(a.isDefault?-1:0),B(),G(a.inherited?-1:1))},Cdc=function(a){if(a&1){var b=t();K(0,"button",54);N("click",function(){u(b);var c=P().row;P(3).state$.next({view:"readonly",config:c.data});return v()});Q(1," View ");L()}},Ddc=function(a,b){a&1&&(K(0,"div",48),F(1,Bdc,2,2),F(2,Cdc,2,0,"button",49),L());a&2&&(a=b.row,b=P(3),B(),G(b.isAdmin?1:-1),B(),G(a.inherited||!b.isAdmin?2:-1))},Edc=function(a){a&1&&M(0,"mat-icon",57);if(a&2){P();a=ag(1);var b=ag(2);wg("non-applicable",
a);I("svgIcon",b)}},Fdc=function(a,b){a&1&&(K(0,"div",31),Zf(1)(2),F(3,Edc,1,3,"mat-icon",56),K(4,"span"),Q(5),L()());if(a&2){a=b.$implicit;var c=P().row;b=P(3);B();c=$f(!c.effectiveIssueTypes.has(a));B();var d=$f(b.constants.issueTypeIcons.get(a));B();G(d?3:-1);B();wg("non-applicable",c);B();yg(b.issueTypeToDisplay(a))}},Gdc=function(a,b){a&1&&(K(0,"div",55),Nf(1,Fdc,6,6,"div",31,Mf),L());a&2&&(a=b.row,B(),Of(a.issueTypes))},Kdc=function(a){if(a&1){var b=t();K(0,"div")(1,"div",11);Q(2," Field visibility is determined by configurations made on a per-issue-type basis. Matching configurations higher in the table will supersede those further down. ");
F(3,edc,2,1,"a",12);L();K(4,"table",13);Tf(5,14);E(6,fdc,3,2,"td",15);Uf();Tf(7,16);E(8,gdc,2,0,"th",17)(9,hdc,2,1,"td",15);Uf();Tf(10,18);E(11,idc,9,1,"th",17)(12,ldc,2,4,"td",15);Uf();Tf(13,19);E(14,mdc,2,0,"th",17)(15,pdc,4,3,"td",15);Uf();Tf(16,20);E(17,qdc,2,0,"th",17)(18,sdc,2,4,"td",15);Uf();E(19,tdc,1,0,"tr",21)(20,udc,1,0,"tr",22)(21,vdc,1,0,"tr",23);L();M(22,"mat-divider");F(23,wdc,2,0,"div",24);K(24,"div",25)(25,"button",26);N("click",function(){u(b);var c=P(2);return v(Hdc(c))});Q(26,
" Create New Typed Configuration ");L();K(27,"button",27);N("click",function(){u(b);var c=P(2);Hdc(c,void 0,"disallowIssueTypes");return v()});Q(28," Create New Default Configuration ");L();K(29,"button",28);N("click",function(){u(b);var c=P(2);return v(Idc(c))});Q(30," Reorder Configurations ");L()();E(31,xdc,7,3,"ng-template",null,0,Mg)(33,Ddc,3,2,"ng-template",null,1,Mg)(35,Gdc,3,0,"ng-template",null,2,Mg);L()}a&2&&(a=P(2),B(3),G(a.isInternalSession?3:-1),B(),I("dataSource",a.allTableRows$),B(15),
I("matHeaderRowDef",a.displayedColumns),B(),I("matRowDefColumns",a.displayedColumns),B(),I("matRowDefColumns",Hg(10,Jdc))("matRowDefWhen",a.isSectionTitleRow),B(2),G(a.customFields.length?-1:23),B(2),I("disabled",!a.isAdmin||!a.customFields.length),B(2),I("disabled",!a.isAdmin||!a.customFields.length||a.ownDefaultFieldConfig),B(2),I("disabled",!a.isAdmin||a.ownTypedFieldConfigs.length<2))},Ldc=function(a){a&1&&F(0,Zcc,1,5,"b-field-configuration-editor",5)(1,adc,1,4,"b-field-configuration-editor",
6)(2,cdc,1,5,"b-field-configuration-editor",7)(3,Kdc,37,11,"div");a&2&&(P(),a=ag(0),G(a.view=="edit"?0:a.view=="readonly"?1:a.view=="create"?2:3))},Mdc=function(a){a&1&&(K(0,"p"),Q(1,"Team inheritance path:"),L(),M(2,"b-team-breadcrumb",0));a&2&&(a=P(),B(2),I("teamPath",a.teamPath))},Ndc=function(a){a&1&&(K(0,"p"),Q(1,"Component inheritance path:"),L(),M(2,"b-component-breadcrumb",1));a&2&&(a=P(),B(2),I("componentPathInfo",a.componentPath))},Odc=function(a){var b={};a=m(a.groupMetadata);for(var c=
a.next();!c.done;c=a.next())c=c.value,b[c.groupEmail]=c;return b},Rdc=function(a){return{approximateSize:Ym(pn(a,2)),groupEmail:ui(a,1),sizeCategory:Pdc[wi(a,3)],permissionCategory:Qdc[wi(a,5)]}},Tdc=function(a){a=Bi(a,Sdc,1,Ci(),jb);return{groupMetadata:(a!=null?a:[]).map(Rdc)}},Vdc=function(a,b){var c=[];if(!b||!a)return c;for(var d=m(Udc),e=d.next();!e.done;e=d.next()){e=e.value;var f=sm(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c},Xdc=function(a,
b){if(!a.appenders||!b||mm(b.appenders,a.appenders))return!1;a=m(a.appenders||[]);for(var c=a.next();!c.done;c=a.next())if(c=c.value,Wdc.has(c)&&!b.appenders.includes(c))return!0;return!1},Ydc=function(a){var b=new Map;a=m(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},Zdc=function(a,b){return a!==0&&b!==0?"Adding large and open groups to a public component":a!==0?a===1?"Adding a large group to a public component":
"Adding large groups to a public component":b===1?"Adding an open group to a public component":"Adding open groups to a public component"},$dc=function(a){if(a.size===0)return sj;for(var b=a.size===1?Eh("p",{},"The following large group is added: "):Eh("p",{},"The following large groups are added: "),c=[],d=m(a.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.get(e).approximateSize;c.push(Eh("p",{},Dh([Eh("b",{},e)," has approximately ",Eh("b",{},f)," Googlers."])))}return Dh([b].concat(q(c)))},
aec=function(a){if(a.size===0)return sj;var b=a.size===1?Eh("p",{},"The following open group is added: "):Eh("p",{},"The following open groups are added: "),c=[];a=m(a.keys());for(var d=a.next();!d.done;d=a.next())c.push(Eh("p",{},Eh("b",{},d.value)));return Dh([b].concat(q(c)))},bec=function(a){var b=new Map;a=m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.permissionCategory==="OPEN_TO_JOIN"&&b.set(c.groupEmail,c);return b},cec=function(a,b){var c=b.restrictedPlusReaders;return a.restrictedPlusReaders.filter(function(d){return!c.includes(d)}).filter(function(d){return d.startsWith("GROUP:")}).length>
0},dec=function(a,b,c){a="USER:"+a;var d=c.admins.concat(c.inheritedAdmins);b=b.admins.concat(b.inheritedAdmins).filter(function(f){return!d.includes(f)});c=b.filter(function(f){return f.startsWith("GROUP:")});var e=b.filter(function(f){return f.startsWith("USER:")});return d.includes(a)||b.length===0?!1:e.includes(a)?!0:c.length?!0:!1},pu=function(a){var b=a.split(":");a=b[0];return a==="ALIAS"?(b=b[1],{value:b,displayText:bRa(b),principalType:a,detailedUserType:null}):{value:b[1],displayText:b[1],
principalType:a,detailedUserType:null}},eec=function(a,b){a&1&&M(0,"b-contact-chip",4);a&2&&(a=b.$implicit,b=P(2),I("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},fec=function(a,b){a&1&&(K(0,"tr",2)(1,"th",3),Q(2),L(),K(3,"td"),Nf(4,eec,1,5,"b-contact-chip",4,Mf),L()());a&2&&(a=b.$implicit,B(2),yg(a.permission),B(2),Of(a.principals))},jec=function(a){var b="minimal";b=b===void 0?"expanded":b;a=gec(a);
a=JTa(a,function(c){c=hec(c);return iec(c,b)});return gec(a)},lec=function(a){a=gec(a);a=JTa(a,function(b){b=kec(b);return hec(b)});return gec(a)},iec=function(a,b){var c=b==="expanded"?mec:nec;return new Set([].concat(q(a)).flatMap(function(d){return[].concat(q(c.get(d)))}))},kec=function(a){return new Set(oec.filter(function(b){return GQa(a,nec.get(b))}))},hec=function(a){a=iec(a,"expanded");var b=kec(a);return new Set([].concat(q(b)).filter(function(c){return[].concat(q(pec.get(c))).every(function(d){return!b.has(d)})}))},
gec=function(a){var b=new Map;a=m(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;d=m(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0;b.set(e,((f=b.get(e))!=null?f:new Set).add(c))}}return b},rec=function(){function a(f,g){c.has(f)||c.set(f,new Set);var k=c.get(f);k.add(g);var l;g=m((l=b.get(g))!=null?l:[]);for(l=g.next();!l.done;l=g.next())l=l.value,k.has(l)||a(f,l)}var b=qec,c=new Map,d=[].concat(q(b.values())).flatMap(function(f){return[].concat(q(f))});
d=m(new Set([].concat(q(b.keys()),q(d))));for(var e=d.next();!e.done;e=d.next())e=e.value,a(e,e);return c},sec=function(a){var b=jec(new Map([["componentAdmin",new Set(a.componentAdmin)],["issueAdmin",new Set(a.issueAdmin)],["issueEditor",new Set(a.editor)],["issueContributor",new Set(a.contributor)],["componentAdminOnly",new Set(a.componentAdminOnly)],["issueCreator",new Set(a.createIssuesOnly)],["issueAdminOnly",new Set(a.issueAdminOnly)],["issueEditorExisting",new Set(a.editExistingIssuesOnly)],
["issueCommenter",new Set(a.commentOnly)],["restrictedPlusViewer",new Set(a.viewRestrictedPlus)],["restrictedViewer",new Set(a.viewRestricted)],["issueViewer",new Set(a.viewer)]])),c=function(d){var e;return[].concat(q((e=b.get(d))!=null?e:[])).sort()};return{componentPermissions:{inheritedAdmins:a.inheritedComponentAdmin,admins:c("componentAdmin"),appenders:c("componentAppender")},issuesPermissions:{admins:c("issueAdmin"),editors:c("issueEditor"),appenders:c("issueAppender"),readers:c("issueReader"),
restrictedReaders:c("issueRestrictedReader"),restrictedPlusReaders:c("issueRestrictedPlusReader")}}},tec=function(a){var b=a.componentAccessPolicy;a=a.issueAccessPolicy;return tq([].concat(q(b?[].concat(q(b.inheritedAdmins||[]),q(b.admins||[]),q(b.appenders||[])):[]),q(a?[].concat(q(a.admins||[]),q(a.editors||[]),q(a.appenders||[]),q(a.readers||[]),q(a.restrictedReaders||[]),q(a.restrictedPlusReaders||[])):[]))).sort()},vec=function(a){function b(e){var f;return[].concat(q((f=d.get(e))!=null?f:[])).sort()}
if(!a)return uec;var c=a.issueAccessPolicy;a=a.componentAccessPolicy;var d=lec(new Map([["issueAdmin",new Set(c.admins)],["issueEditor",new Set(c.editors)],["issueAppender",new Set(c.appenders)],["issueReader",new Set(c.readers)],["issueRestrictedReader",new Set(c.restrictedReaders)],["issueRestrictedPlusReader",new Set(c.restrictedPlusReaders)],["componentAdmin",new Set(a.admins)],["componentAppender",new Set(a.appenders)],["componentReader",new Set(a.readers)]]));return{componentAdmin:b("componentAdmin"),
issueAdmin:b("issueAdmin"),editor:b("issueEditor"),contributor:b("issueContributor"),componentAdminOnly:b("componentAdminOnly"),createIssuesOnly:b("issueCreator"),issueAdminOnly:b("issueAdminOnly"),editExistingIssuesOnly:b("issueEditorExisting"),commentOnly:b("issueCommenter"),viewRestrictedPlus:b("restrictedPlusViewer"),viewRestricted:b("restrictedViewer"),viewer:b("issueViewer"),inheritedComponentAdmin:a.inheritedAdmins}},wec=function(a,b){var c;(c=!b)||(c=!(!mm([].concat(q(b.admins)).sort(),[].concat(q(a.admins)).sort())||
!mm([].concat(q(b.appenders)).sort(),[].concat(q(a.appenders)).sort())||!mm(b.implicitAccess,a.implicitAccess)));return!c},xec=function(a,b){return b&&a?!mm([].concat(q(a.admins)).sort(),[].concat(q(b.admins)).sort())||!mm([].concat(q(a.editors)).sort(),[].concat(q(b.editors)).sort())||!mm([].concat(q(a.appenders)).sort(),[].concat(q(b.appenders)).sort())||!mm([].concat(q(a.readers)).sort(),[].concat(q(b.readers)).sort())||!mm([].concat(q(a.restrictedReaders)).sort(),[].concat(q(b.restrictedReaders)).sort())||
!mm([].concat(q(a.restrictedPlusReaders)).sort(),[].concat(q(b.restrictedPlusReaders)).sort()):!1},yec=function(a,b){var c=Object.keys(a);c=m(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!WZa(a[d],b[d]))return!0;return!1},zec=function(a){if(a&1){var b=t();K(0,"input",15);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return v(c)});L()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin),
Ag("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Aec=function(a){if(a&1){var b=t();K(0,"input",16);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return v(c)});L()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin||!a.isParentPartner()),Ag("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Bec=function(a){if(a&1){var b=t();K(0,"input",17);Cg("ngModelChange",function(c){u(b);
var d=P(2);Bg(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return v(c)});L()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin||!a.isParentPublic()),Ag("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Cec=function(a,b){a&1&&(K(0,"p",14)(1,"a",18),Q(2," Learn more "),L()());a&2&&(B(),I("href",b,Ne))},Dec=function(a){a&1&&(K(0,"div",0)(1,"div",3)(2,"span",4),Q(3,"Component visibility: "),L()(),K(4,"div",5)(5,"div",6),F(6,zec,1,2,
"input",7),K(7,"label",8),Q(8),L()(),K(9,"div",6),F(10,Aec,1,2,"input",9),K(11,"label",10),Q(12),L()(),K(13,"div",11),F(14,Bec,1,2,"input",12),K(15,"label",13),Q(16),L()()(),F(17,Cec,3,1,"p",14),L());if(a&2){var b;a=P();B(6);G(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?6:-1);B(2);S(" ",orb(a.AccessLevelStrings.INTERNAL)," ");B(2);G(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?10:-1);B(2);S(" ",orb(a.AccessLevelStrings.EXTERNAL_PARTNER)," ");B(2);G(a.rolesEditor.component&&
a.rolesEditor.component.accessLimit?14:-1);B(2);S(" ",orb(a.AccessLevelStrings.EXTERNAL_PUBLIC)," ");B();G((b=Wgb(a.documentationLinks))?17:-1,b)}},Iec=function(a,b){if(a&1){var c=t();K(0,"tr")(1,"td")(2,"div",1)(3,"div",2)(4,"label",3);Q(5);L();K(6,"button",4);M(7,"mat-icon",5);L()();K(8,"b-multi-user-input",6);N("usersChange",function(e){var f=u(c).$implicit,g=P();return v(g.updateRolesMap(f.roleType,e))})("isValid",function(e){var f=u(c).$implicit,g=P();g.aclFormValidity.set(f.roleType,e);e=[].concat(q(g.aclFormValidity.values())).every(Boolean);
g.formIsValid.emit(e);return v()});L()()();K(9,"td");M(10,"b-icon",7);L();K(11,"td");M(12,"b-icon",7);L();K(13,"td");M(14,"b-icon",8);L();K(15,"td");M(16,"b-icon",8);L();K(17,"td");M(18,"b-icon",8);L();K(19,"td");M(20,"b-icon",8);L();K(21,"td");M(22,"b-icon",8);L();K(23,"td");M(24,"b-icon",8);L()()}if(a&2){a=b.$implicit;b=P();B(2);wg("bv2-edit-resource-readonly",b.canEdit);B(2);I("htmlFor",a.roleType);B();yg(a.label);B();I("matTooltip",a.tooltip);B(2);var d;I("idForInputBox",a.roleType)("users",a.users)("ariaLabel",
a.ariaLabel)("accessLevel",b.accessLevel)("customValidators",(d=a.customValidators)!=null?d:Hg(24,Eec))("includeAliases",a.includeAliases)("includeViewAliases",a.includeViewAliases)("containerChips",(a.chips==null?0:a.chips.values)&&a.chips.values.length>0?Ig(28,Fec,Jg(25,Gec,a.chips.displayText,a.chips.values)):Hg(30,Hec));If("disabled",b.canEdit?null:!0);B(2);I("name",b.getIconName(a,"componentAdmin"))("matTooltip",b.getTooltip(a,"componentAdmin"));B(2);I("name",b.getIconName(a,"createIssues"))("matTooltip",
b.getTooltip(a,"createIssues"));B(2);I("name",b.getIconName(a,"issueAdmin"));B(2);I("name",b.getIconName(a,"issueEditor"));B(2);I("name",b.getIconName(a,"issueCommenter"));B(2);I("name",b.getIconName(a,"issueReader"));B(2);I("name",b.getIconName(a,"restrictedReader"));B(2);I("name",b.getIconName(a,"restrictedPlusReader"))}},Jec=function(a){a&1&&(K(0,"div",0),M(1,"b-spinner"),L())},Lec=function(a){if(a&1){var b=t();K(0,"div")(1,"div",1)(2,"mat-tab-group",2);N("selectedIndexChange",function(c){u(b);
var d=P();return v(d.tabChange(c))});K(3,"mat-tab",3)(4,"roles-view",4);N("saveRolesMap",function(c){u(b);var d=P();Kec(d.rolesEditor,c);return v()});L()();K(5,"mat-tab",5);M(6,"permissions-view",6);L()()()()}a&2&&(a=P(),B(2),I("selectedIndex",a.selectedTabIndex),B(2),I("rolesMap",a.rolesEditor.rolesMap)("isSaving",a.isSaving())("component",a.rolesEditor.component)("rolesEditor",a.rolesEditor),B(2),I("componentReaders",a.rolesEditor.componentReaders)("componentAccessPolicy",a.rolesEditor.componentFlattenedAccessPolicy)("issueAccessPolicy",
a.rolesEditor.issueDefaultFlattenedAccessPolicy)("accessLevel",a.rolesEditor.component==null?null:a.rolesEditor.component.accessLimit==null?null:a.rolesEditor.component.accessLimit.accessLevel))},Nec=function(a){if(a&1){var b=t();K(0,"b-button",20,1);N("onAction",function(){u(b);var c=P(3);return v(Mec(c))});Q(2);L()}a&2&&(a=P(3),I("disabled",a.isSaving()),B(2),S(" ",a.archiveAction," Component "))},Oec=function(a){if(a&1){var b=t();K(0,"b-button",21);N("onAction",function(){u(b);var c=P(3);return v(c.createIssue())});
Q(1," Create Issue ");L()}a&2&&(a=P(3),I("tooltip",a.isArchived()?"Cannot create issue in archived component":"")("disabled",a.isArchived()))},Pec=function(a){a&1&&(K(0,"a",17),Q(1," Browse Components "),L(),F(2,Nec,3,2,"b-button",18),F(3,Oec,2,2,"b-button",19));a&2&&(a=P(2),I("routerLinkObj",a.componentListRoute(a.component.componentId)),B(2),G(a.isAdmin()?2:-1),B(),G(a.isAnonymous?-1:3))},Qec=function(a){a&1&&(K(0,"div",16),M(1,"b-spinner"),L())},Rec=function(a){a&1&&(K(0,"span",23),Q(1," (archived) "),
L())},Sec=function(a){a&1&&Vf(0)},Tec=function(a){a&1&&Vf(0)},Uec=function(a){a&1&&Vf(0)},Vec=function(a){a&1&&Vf(0)},Wec=function(a){a&1&&Vf(0)},Xec=function(a){a&1&&Vf(0)},Zec=function(a){if(a&1){var b=t();K(0,"div",54)(1,"div",46)(2,"label",70)(3,"span",43);Q(4,"Parent Component");L()();K(5,"span",48)(6,"div",71)(7,"strong");Q(8,"Careful!");L();Q(9," Moving this component can have significant consequences. If this component has custom fields that are defined on the parent or ancestor components, those fields will be lost, and issues in this component will no longer display those fields. ");
K(10,"div",50);M(11,"div",51)(12,"div",52);L()()()();K(13,"b-team-component-picker",72);N("selectedComponentChange",function(c){u(b);var d=P(4);return v(d.parentComponent=c!=null?c:null)});L()()}a&2&&(a=P(4),B(2),wg("required",a.isParentComponentRequired&&!Yec(a)),B(11),I("selectedComponent",a.parentComponent)("placeholder","Choose Component")("isRequired",a.isParentComponentRequired&&!Yec(a)))},$ec=function(a){a&1&&(K(0,"a",60),Q(1," Learn more "),L());a&2&&(P(4),I("href",P4b(),Ne))},afc=function(a){if(a&
1){var b=t();K(0,"div",73)(1,"label",74)(2,"span",43);Q(3,"Retention Settings");L()();K(4,"div",75)(5,"p");Q(6,"Please choose a period of time to retain the data stored in this component.");M(7,"br");K(8,"a",76);Q(9," Learn more ");L()()();K(10,"div",77)(11,"b-retention-settings-form",78);N("modelChange",function(c){u(b);var d=P(4);return v(d.component.retentionSettings=c)})("validChange",function(c){u(b);P(4).retentionIsValid=c;return v()});L()()()}a&2&&(a=P(4),wg("bv2-edit-resource-readonly",!a.isAdmin()),
B(8),I("href",qu(),Ne),B(3),I("issueRetentionDisabled",a.isAccessEditDisabled())("isExternal",a.isExternal())("componentPathInfo",a.component.componentPathInfo)("componentId",a.component.componentId)("initialModel",a.component.retentionSettings))},cfc=function(a){if(a&1){var b=t();K(0,"div",81)(1,"b-component-team-picker",82);N("modelChange",function(c){u(b);var d=P(5);d.component.team=c;d.componentTeam$.next(d.component.team);d.component.slo.inherit&&bfc(d);return v()});L()()}a&2&&(a=P(5),B(),I("anchorTarget",
Dg(a.hasUnsavedChanges()?"_blank":"_self"))("isAdmin",a.isAdmin())("isTopLevel",!a.isParentComponentRequired)("parentModel",a.parentComponent==null?null:a.parentComponent.team)("useInternalLink",!0)("model",a.component.team))},dfc=function(a){a&1&&(K(0,"div",79)(1,"label",80)(2,"span",43),Q(3,"Team Configuration"),L()(),F(4,cfc,2,7,"div",81),L());a&2&&(a=P(4),wg("bv2-edit-resource-readonly",!a.isAdmin()),B(4),G(a.component.team?4:-1))},efc=function(a){a&1&&(K(0,"a",92),Q(1),L());if(a&2){a=P();var b=
P(5);I("routerLinkObj",b.getSloManagementLink(a.id));B();var c;S(" ",(c=a.slo==null?null:a.slo.name)!=null?c:a.id," ")}},ffc=function(a){a&1&&Q(0," None ")},gfc=function(a,b){a&1&&(K(0,"div",87),Q(1," Inherited SLO Policy: "),F(2,efc,2,2,"a",92)(3,ffc,1,0),L());a&2&&(B(2),G(b.id!=="0"?2:3))},hfc=function(a){a&1&&(K(0,"a",93),Q(1),T(2,"titlecase"),L());a&2&&(a=P(),I("routerLinkObj",a.link),B(),zg(" (",U(2,3,a.type),") ",a.name," "))},ifc=function(a){a&1&&Q(0," None ")},jfc=function(a){a&1&&(K(0,"div",
95),M(1,"slo-inheritance-breadcrumbs",96),L());a&2&&(a=P(),B(),I("componentPath",a.componentPath)("teamPath",a.teamPath))},kfc=function(a){a&1&&F(0,jfc,2,2,"div",95);a&2&&(a=P(6),G(a.showSloInheritancePath?0:-1))},lfc=function(a,b){if(a&1){var c=t();K(0,"div",88);Q(1," Policy Source: ");F(2,hfc,3,5,"a",93)(3,ifc,1,0);K(4,"button",94);N("click",function(){u(c);var e=P(5);return v(e.showSloInheritancePath=!e.showSloInheritancePath)});Q(5);L();F(6,kfc,1,1);T(7,"async");L()}if(a&2){var d;a=P(5);B(2);
G(b.link?2:3);B(2);If("aria-expanded",a.showSloInheritancePath);B();S(" ",a.showSloInheritancePath?"Hide":"Show"," full path ");B();G((d=U(7,4,a.policySourcePath$))?6:-1,d)}},mfc=function(a){a&1&&(Q(0," , "),K(1,"a",97),Q(2,"Team Leads"),L());a&2&&(a=P(6),B(),I("routerLinkObj",{path:"/teams/"+a.component.team.id+"/edit",fragment:a.tabsService.Tab.ACCESS}))},nfc=function(a){a&1&&(K(0,"div",89),Q(1," SLO Admins: "),K(2,"a",97),Q(3,"Component Admins"),L(),F(4,mfc,3,1),L());a&2&&(a=P(5),B(2),I("routerLinkObj",
a.componentPermissions(a.componentId)),B(2),G(a.component.team&&a.component.team.id!=="0"?4:-1))},ofc=function(a){a&1&&(M(0,"mat-icon",98),Q(1," on "))},pfc=function(a){a&1&&(M(0,"mat-icon",99),Q(1," off "))},qfc=function(a){a&1&&(Q(0," Lock: "),F(1,ofc,2,0),T(2,"async"),Kf(3,pfc,2,0));a&2&&(a=P(5),B(),G(U(2,1,a.sloLocked$)?1:3))},sfc=function(a){if(a&1){var b=t();K(0,"div",91)(1,"mat-checkbox",100);N("change",function(c){u(b);var d=P(5);c=c.checked;d.component.slo.inherit=!c;c||bfc(d);return v()});
K(2,"span");Q(3,"Override the inherited SLO policy");L()()()}a&2&&(a=P(5),B(),I("checked",!a.component.slo.inherit)("disabled",!rfc(a)))},tfc=function(a){if(a&1){var b=t();K(0,"div",101)(1,"label",107);Q(2," Justification ");L();M(3,"mat-icon",108);K(4,"textarea",109);Cg("ngModelChange",function(c){u(b);var d=P(6);Bg(d.component.slo.comment,c)||(d.component.slo.comment=c);return v(c)});L()()}a&2&&(a=P(6),B(4),Ag("ngModel",a.component.slo.comment),I("disabled",!a.isComponentSloEditor))},ufc=function(a){a&
1&&(K(0,"a",106),M(1,"mat-icon",110),L());a&2&&(a=P(6),I("target",Dg(a.hasUnsavedChanges()?"_blank":"_self"))("routerLinkObj",a.getSloManagementLink(a.component.slo.id)))},yfc=function(a){if(a&1){var b=t();F(0,tfc,5,2,"div",101);K(1,"mat-slide-toggle",102);Cg("ngModelChange",function(d){u(b);var e=P(5);Bg(e.isEnableSloChecked,d)||(e.isEnableSloChecked=d);return v(d)});N("change",function(d){u(b);var e=P(5);d=d.checked;e.isEnableSloChecked=d;d||(e.component.slo.id=void 0);return v()});Q(2," Enable SLO ");
L();K(3,"div",103)(4,"label",104);Q(5,"SLO policy");L();K(6,"slo-picker",105);N("onSloSelect",function(d){u(b);var e=P(5);return v(e.onSloChange(d))});L();F(7,ufc,2,3,"a",106);L()}if(a&2){a=P(5);G(vfc(a)?0:-1);B();wg("indented",wfc(a));Ag("ngModel",a.isEnableSloChecked);I("disabled",!xfc(a));B(5);var c;I("bv2Disabled",!a.isEnableSloChecked||!xfc(a))("boundId",(c=a.component.slo.id)!=null?c:null)("bv2Placeholder",a.isEnableSloChecked&&xfc(a)?"Type to search for an SLO":"SLO disabled");B();G(a.component.slo.id&&
a.component.slo.id!=="0"?7:-1)}},zfc=function(a){a&1&&(K(0,"div",83)(1,"div",46)(2,"label",84)(3,"span",43),Q(4,"SLO Configuration"),L()(),K(5,"span",48)(6,"div",85)(7,"strong"),Q(8,"Careful!"),L(),Q(9," Changing the SLO (service level objective) of a component has the potential to impact the Buganizer SLO compliance status of every issue under that component. "),K(10,"div",50),M(11,"div",51)(12,"div",52),L()()()(),K(13,"div",86),F(14,gfc,4,1,"div",87),T(15,"async"),F(16,lfc,8,6,"div",88),T(17,"async"),
F(18,nfc,5,2,"div",89),K(19,"div",90),F(20,qfc,4,3),L()(),F(21,sfc,4,2,"div",91),F(22,yfc,8,9),L());if(a&2){var b,c;a=P(4);wg("bv2-edit-resource-readonly",!a.isComponentSloEditor);B(14);G((b=U(15,8,a.inheritedSlo$))?14:-1,b);B(2);G((c=U(17,10,a.sloPolicySource$))?16:-1,c);B(2);G(a.sessionIsInternal?18:-1);B(2);G(a.enableSloLockingUi?20:-1);B();G(wfc(a)?21:-1);B();a.component&&a.component.slo?(b=!!a.component.team&&a.component.team.id!=="0",c=!a.component.slo.inherit,a=!a.component.parentComponentId&&
!b||c):a=!1;G(a?22:-1)}},Afc=function(a){if(a&1){var b=t();K(0,"mat-slide-toggle",111);N("change",function(c){u(b);P(4).component.spamProtection=c.checked?"ALL_PROTECTIONS":"NO_PROTECTIONS";return v()});Q(1," Enable Spam Protections ");L()}a&2&&(a=P(4),I("checked",a.sessionIsInternal&&a.getComponentAccessLevel()==="EXTERNAL_PUBLIC"?a.component.spamProtection==="ALL_PROTECTIONS"||a.component.spamProtection==="SPAM_PROTECTION_UNSPECIFIED":!1)("disabled",a.isAccessEditDisabled()))},Bfc=function(a){if(a&
1){var b=t();K(0,"div",66)(1,"b-button",112);N("onAction",function(){u(b);var c=P(4);return v(c.saveMetadata())});Q(2," Update ");L();K(3,"b-button",113);N("onAction",function(){u(b);var c=P(4);return v(c.revertMetadataChanges())});Q(4," Revert Changes ");L();K(5,"b-button",113);N("onAction",function(){u(b);var c=P(4);return v(c.createChild())});Q(6," Create Child Component ");L()()}a&2&&(a=P(4),B(),I("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),B(2),I("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),
B(2),I("disabled",a.hasUnsavedMetadataChanges()))},Cfc=function(a){if(a&1){var b=t();K(0,"b-button",114);N("onAction",function(){u(b);var c=P(4);return v(c.showUpdateHistoryModal())});Q(1," View History ");L()}},Dfc=function(a){a&1&&M(0,"b-spinner")},Efc=function(a){if(a&1){var b=t();K(0,"b-component-children-list",115);N("onVisit",function(){u(b);var c=P(4);return v(c.trackClick("openChildComponent"))});L()}a&2&&(a=P(4),I("children",a.childComponents))},Ffc=function(a){a&1&&(K(0,"span"),Q(1," No child components. "),
L())},Hfc=function(a){if(a&1){var b=t();K(0,"div",38)(1,"form",39,8);M(3,"b-error-banner",40);K(4,"div",41)(5,"label",42)(6,"span",43);Q(7,"Name");L()();K(8,"input",44);Cg("ngModelChange",function(c){u(b);var d=P(3);Bg(d.component.name,c)||(d.component.name=c);return v(c)});L()();K(9,"div",45)(10,"div",46)(11,"label",47)(12,"span",43);Q(13,"Description");L()();K(14,"span",48)(15,"div",49);Q(16," The description will be used during component searches. You can add previous project names or keywords that will help users search for your component. ");
K(17,"div",50);M(18,"div",51)(19,"div",52);L()()()();K(20,"textarea",53);Cg("ngModelChange",function(c){u(b);var d=P(3);Bg(d.component.description,c)||(d.component.description=c);return v(c)});Q(21,"                ");L()();F(22,Zec,14,5,"div",54);K(23,"div",55)(24,"div",56)(25,"mat-checkbox",57);N("change",function(c){u(b);var d=P(3);return v(d.setCommentEditState(c.checked))});L()();K(26,"div")(27,"strong",58);Q(28,"Editable Comments");L();K(29,"div",59);Q(30," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. ");
M(31,"br");F(32,$ec,2,1,"a",60);L()()();F(33,afc,12,8,"div",61);F(34,dfc,5,3,"div",62);F(35,zfc,23,12,"div",63);F(36,Afc,2,2,"mat-slide-toggle",64);K(37,"div",65);F(38,Bfc,7,3,"div",66);K(39,"div",66);F(40,Cfc,2,0,"b-button",67);L()();K(41,"div",68)(42,"label")(43,"span",43);Q(44,"Child Components");L()();F(45,Dfc,1,0,"b-spinner");F(46,Efc,1,1,"b-component-children-list",69);F(47,Ffc,2,0,"span");L()()()}a&2&&(a=P(3),B(),wg("show-errors",a.error),B(2),I("error",a.error),B(),wg("bv2-edit-resource-readonly",
Gfc(a)),B(4),Ag("ngModel",a.component.name),I("disabled",Gfc(a)),B(),wg("bv2-edit-resource-readonly",Gfc(a)),B(11),Ag("ngModel",a.component.description),I("disabled",Gfc(a)),B(2),G(a.isAdmin()?22:-1),B(),wg("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),I("checked",a.commentEditsEnabled)("disabled",Gfc(a)),B(7),G(a.sessionIsExternal?-1:32),B(),G(a.sessionIsExternal?-1:33),B(),G(a.sessionIsInternal?34:-1),B(),G(a.component.slo&&a.sessionIsInternal?35:-1),B(),G(a.sessionIsInternal&&a.getComponentAccessLevel()===
"EXTERNAL_PUBLIC"?36:-1),B(2),G(a.isEditorInternal||a.isComponentSloEditor?38:-1),B(2),G(a.componentHistoryUiEnabled?40:-1),B(5),G(a.childComponents===void 0?45:-1),B(),G(a.childComponents&&a.childComponents.length>0?46:-1),B(),G(a.childComponents&&a.childComponents.length===0?47:-1))},Ifc=function(a){a&1&&(K(0,"div",116),Q(1," Standard Fields "),L())},Kfc=function(a){if(a&1){var b=t();K(0,"b-component-standard-fields",120);N("updateComponent",function(c){u(b);var d=P(4);return v(Jfc(d,c))});L()}a&
2&&(a=P(4),I("effortSpec",a.component.effortSpec)("parentEffortSpec",a.parentComponent==null?null:a.parentComponent.effortSpec)("disabled",!a.isEditorInternal))},Lfc=function(a){a&1&&(K(0,"div",118),Q(1," Custom Fields "),L())},Nfc=function(a){a&1&&(F(0,Ifc,2,0,"div",116),F(1,Kfc,1,3,"b-component-standard-fields",117),F(2,Lfc,2,0,"div",118),M(3,"b-component-custom-fields",119));a&2&&(a=P(3),G(Mfc(a)?0:-1),B(),G(Mfc(a)?1:-1),B(),G(Mfc(a)?2:-1),B(),I("editMode",a.isEditorInternal)("isSaving",a.isSaving())("component",
a.component)("parentComponent",a.parentComponent))},Ofc=function(a){a&1&&(K(0,"a",122),Q(1," Learn more "),L());a&2&&(P(4),I("href",ddc(),Ne))},Qfc=function(a){if(a&1){var b=t();K(0,"div",38)(1,"div",121);Q(2," Field ordering will be applied to all issues and templates in this component, including the right panel on the Issue Detail page. ");F(3,Ofc,2,1,"a",122);L();K(4,"b-field-reorder",123);N("onReload",function(){u(b);var c=P(3);return v(Pfc(c))});L()()}a&2&&(a=P(3),B(3),G(a.sessionIsInternal?
3:-1),B(),I("fields",a.orderedCustomFields)("componentId",a.componentId)("fieldOrdering",a.component.fieldOrdering)("isAdmin",a.isAdmin()))},Rfc=function(a){a&1&&(K(0,"div",38),M(1,"b-field-configuration",124),L());a&2&&(a=P(4),B(),I("isAdmin",a.isAdmin())("componentPathInfo",a.component.componentPathInfo))},Sfc=function(a){a&1&&F(0,Rfc,2,2,"div",38);a&2&&(a=P(3),G(a.component.componentPathInfo?0:-1))},Tfc=function(a){a&1&&M(0,"b-edit-templates",125);a&2&&(a=P(4),I("componentId",a.componentId)("supportCustomFields",
!0))},Ufc=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.description))},Vfc=function(a,b){a&1&&(K(0,"div",126)(1,"label"),Q(2),L(),F(3,Ufc,2,1,"div"),K(4,"div")(5,"a",127),Q(6),L()()());a&2&&(a=b.$implicit,B(2),yg(a.name),B(),G(a.description?3:-1),B(2),I("href",a.url,Ne),If("aria-label","Click to open the template "+a.name),B(),yg(a.url))},Wfc=function(a){a&1&&Nf(0,Vfc,7,5,"div",126,Mf);a&2&&(a=P(4),Of(a.templates))},Xfc=function(a){a&1&&(K(0,"div",38),F(1,Tfc,1,2,"b-edit-templates",
125)(2,Wfc,2,0),L());a&2&&(a=P(3),B(),G(a.isEditorInternal?1:2))},Zfc=function(a){if(a&1){var b=t();K(0,"role-based-permissions",128);N("onTabChange",function(c){u(b);var d=P(3).tabsService;d.selectedAccessSubTabIndex=c;Yfc(d);return v()});L()}a&2&&(a=P(3),I("tabIndex",a.tabsService.selectedAccessSubTabIndex))},$fc=function(a){if(a&1){var b=t();K(0,"div")(1,"div",22)(2,"h2");Q(3);L();F(4,Rec,2,0,"span",23);K(5,"a",24);N("click",function(){u(b);var l=P(2);return v(l.trackClick("recentIssues"))});Q(6,
" (Recent Issues)");L();M(7,"b-component-access-level-indicator",25)(8,"b-tracker-chip-smart",26);L();K(9,"div",27);M(10,"b-component-breadcrumb",28)(11,"div",29);L();K(12,"mat-tab-group",30);N("selectedIndexChange",function(l){u(b);var r=P(2);return v(r.tabsService.tabChange(l))});K(13,"mat-tab",31);E(14,Sec,1,0,"ng-container",32);L();K(15,"mat-tab",33);E(16,Tec,1,0,"ng-container",32);L();K(17,"mat-tab",34);E(18,Uec,1,0,"ng-container",32);L();K(19,"mat-tab",35);E(20,Vec,1,0,"ng-container",32);L();
K(21,"mat-tab",36);E(22,Wec,1,0,"ng-container",32);L();K(23,"mat-tab",37);E(24,Xec,1,0,"ng-container",32);L()();E(25,Hfc,48,26,"ng-template",null,2,Mg)(27,Nfc,4,7,"ng-template",null,3,Mg)(29,Qfc,5,5,"ng-template",null,4,Mg)(31,Sfc,1,1,"ng-template",null,5,Mg)(33,Xfc,3,1,"ng-template",null,6,Mg)(35,Zfc,1,1,"ng-template",null,7,Mg);L()}if(a&2){a=qg(26);var c=qg(28),d=qg(30),e=qg(32),f=qg(34),g=qg(36),k=P(2);B(3);zg(" Component ",k.component.componentId,": ",k.currentName," ");B();G(k.isArchived()?4:
-1);B();I("routerLinkObj",k.getRecentIssuesLink());B(2);I("accessLevel",k.getComponentAccessLevel());B();I("trackerId",k.component.trackerId);B(2);I("componentPathInfo",k.component.componentPathInfo)("isArchived",k.isArchived())("label","Parent Component");B(2);I("selectedIndex",k.tabsService.selectedTabIndex);B();I("id",k.tabsService.Tab.BASIC);B();I("ngTemplateOutlet",a);B();I("id",k.tabsService.Tab.CUSTOM_FIELDS)("label",Mfc(k)?"Fields":"Custom Fields");B();I("ngTemplateOutlet",c);B();I("id",k.tabsService.Tab.FIELD_ORDERING);
B();I("ngTemplateOutlet",d);B();I("id",k.tabsService.Tab.FIELD_VISIBILITY);B();I("ngTemplateOutlet",e);B();I("id",k.tabsService.Tab.TEMPLATES);B();I("ngTemplateOutlet",f);B();I("id",k.tabsService.Tab.ACCESS);B();I("ngTemplateOutlet",g)}},agc=function(a){a&1&&(K(0,"span")(1,"p"),Q(2," Archiving a component causes it and its subcomponents and all issues in those components to be hidden from normal use."),M(3,"br"),K(4,"strong"),Q(5,"This action cannot be easily reverted."),L(),K(6,"a",133),Q(7," Learn more "),
L()(),K(8,"p"),Q(9," If you no longer have a reason to retain the data stored in these components, please change the retention period as needed "),M(10,"br"),Q(11," so they can be scheduled for deletion. "),K(12,"a",134),Q(13," Learn more "),L()()());a&2&&(P(3),B(6),I("href","http://go/archived-components",Ne),B(6),I("href",qu(),Ne))},bgc=function(a){a&1&&(K(0,"span")(1,"p"),Q(2," Unarchiving a component will NOT cause its subcomponents to be unarchived."),M(3,"br"),Q(4," If you need to recursively unarchive subcomponents please use the buganizer_admin tool. "),
K(5,"a",135),Q(6," Learn more "),L()()());a&2&&(P(3),B(5),I("href","http://go/buganizer-admin",Ne))},cgc=function(a,b){a&1&&(K(0,"span")(1,"span"),Q(2),L(),K(3,"span"),Q(4," : "),K(5,"b"),Q(6),L()(),M(7,"br"),L());a&2&&(a=b.$implicit,b=P(4),B(2),yg(a.componentPath),B(),wg("b-archive-warning-indef",!a.retentionSettings.retentionPeriodDays),B(3),yg(b.getRetentionPeriod(a)))},dgc=function(a){a&1&&(K(0,"span"),Nf(1,cgc,8,4,"span",null,Mf),L());a&2&&(a=P(3),B(),Of(a.descendants))},egc=function(a){a&1&&
(K(0,"span")(1,"span"),Q(2),L()());a&2&&(a=P(3),B(2),yg(a.descendants[0].componentPath))},fgc=function(a){if(a&1){var b=t();K(0,"h2",129);Q(1);L();K(2,"mat-dialog-content");F(3,agc,14,2,"span");F(4,bgc,7,1,"span");K(5,"p");Q(6," The following components will be affected: ");L();K(7,"div",130);F(8,dgc,3,0,"span");F(9,egc,3,1,"span");L()();K(10,"mat-dialog-actions")(11,"button",131);N("click",function(){u(b);P(2).isArchiving=!1;return v()});Q(12," Cancel ");L();K(13,"button",132);N("click",function(){u(b);
var c=P(2);c.archive();c.isArchiving=!1;return v()});Q(14," Confirm ");L()()}a&2&&(a=P(2),B(),yg(a.component&&a.archiveAction?"Are you sure you want to "+a.archiveAction.toLowerCase()+' "'+a.component.name+'"'+(a.archiveAction==="Archive"?" and its subcomponents?":"?"):""),B(2),G(a.archiveAction==="Archive"?3:-1),B(),G(a.archiveAction==="Unarchive"?4:-1),B(4),G(a.archiveAction==="Archive"?8:-1),B(),G(a.archiveAction==="Unarchive"?9:-1))},ggc=function(a){if(a&1){var b=t();K(0,"div",10)(1,"div",11)(2,
"div",12)(3,"b-button",13);N("onAction",function(){u(b);var c=P();return v(c.back())});M(4,"b-icon",14);L();F(5,Pec,4,3);L()()();K(6,"div",15);F(7,Qec,2,0,"div",16);F(8,$fc,37,23,"div");L();E(9,fgc,15,5,"ng-template",null,0,Mg)}a&2&&(a=P(),B(5),G(a.component?5:-1),B(2),G(a.isLoading?7:-1),B(),G(!a.isLoading&&a.component&&a.component.componentId?8:-1))},hgc=function(a){a&1&&(K(0,"div",9),M(1,"b-tracker-redirect",136),L());a&2&&(a=P(),B(),I("component",a.component))},igc=function(a){var b=null;if(a.containerType===
"TEAM"){var c;var d=(c=a.content.sourceTeamId)!=null?c:null}else{var e;d=(e=a.content.sourceTeamId)!=null?e:null;var f;b=(f=a.content.sourceComponentId)!=null?f:null}return{sourceTeamId:d,sourceComponentId:b}},jgc=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:c==null?void 0:c.slice(d),fieldConfigsMap:new Map,fieldConfigsV2Map:new Map}},kgc=function(a,b,c,d){(c==null?
0:c.inherit)||(c==null?void 0:c.id)!=="0"||!d||(a=d);if(!a)return null;c=a.pathNames;a=a.pathIds;d=[];for(var e=a.findIndex(function(f){return f===b});e<a.length;e++)d.push({id:a[e],name:c[e]});return d},lgc=function(a){return a?a.filter(function(b){return!b.shared}):[]},mgc=function(a,b){a&1&&(K(0,"div",10),M(1,"b-team-breadcrumb",38),L());a&2&&(B(),I("teamPath",b))},ngc=function(a,b){a&1&&(Tf(0),Q(1),Uf());a&2&&(B(),yg(b.trim()))},ogc=function(a){a&1&&Q(0," No description ")},pgc=function(a,b){a&
1&&M(0,"b-multi-user-input",25);a&2&&(I("users",b),If("disabled",!0))},qgc=function(a){a&1&&(K(0,"p"),Q(1,"No child teams"),L())},rgc=function(a,b){a&1&&(M(0,"br"),K(1,"a",39),Q(2),L());a&2&&(a=b.$implicit,B(),I("routerLink",Eg("/teams/",a.id,"/edit")),B(),yg(a.name))},sgc=function(a){a&1&&Nf(0,rgc,3,3,null,null,Mf);a&2&&(a=P(),Of(a))},tgc=function(a,b){a&1&&F(0,qgc,2,0,"p")(1,sgc,2,0);a&2&&G(b.length===0?0:1)},ugc=function(a){a&1&&(K(0,"a",40),Q(1),L());if(a&2){a=P();I("routerLinkObj",a.link);B();
var b;S(" ",(b=a.slo==null?null:a.slo.name)!=null?b:a.id," ")}},vgc=function(a){a&1&&Q(0," None ")},wgc=function(a,b){a&1&&(K(0,"div",29),Q(1," Inherited SLO Policy: "),F(2,ugc,2,2,"a",40)(3,vgc,1,0),L());a&2&&(B(2),G(b.link?2:3))},xgc=function(a,b){a&1&&(K(0,"a",31),Q(1),L());a&2&&(I("routerLinkObj",b.link),B(),S(" ",b.name," "))},ygc=function(a){a&1&&Q(0," None ")},zgc=function(a){a&1&&(M(0,"mat-icon",41),Q(1," on "))},Agc=function(a){a&1&&(M(0,"mat-icon",42),Q(1," off "))},Bgc=function(a){a&1&&
(Q(0," Lock: "),F(1,zgc,2,0)(2,Agc,2,0));a&2&&(a=P(2),B(),G(a.originalSloLock?1:2))},Cgc=function(a){if(a&1){var b=t();K(0,"div",43)(1,"mat-checkbox",44);N("change",function(c){u(b);var d=P(3);d.isSloInheritEnabled=!c.checked;d.isSloInheritEnabled&&(d.sloId=d.parentTeam.slo.sloId);return v()});K(2,"span");Q(3,"Override the inherited SLO");L()()()}a&2&&(a=P(3),B(),I("disabled",!a.hasSloEditAccess)("checked",!a.isSloInheritEnabled))},Dgc=function(a){if(a&1){var b=t();K(0,"div",45)(1,"label",49);Q(2,
" Justification to override the org SLO ");L();M(3,"mat-icon",50);K(4,"textarea",51);T(5,"async");N("ngModelChange",function(c){u(b);var d=P(4);return v(d.sloJustification$.next(c))});L()()}a&2&&(a=P(4),B(3),I("matTooltip",a.justificationRequiredText),If("aria-label",a.justificationRequiredText),B(),I("ngModel",U(5,4,a.sloJustification$))("disabled",!a.hasSloEditAccess))},Egc=function(a,b){a&1&&(K(0,"a",48),T(1,"async"),M(2,"mat-icon",9),L());a&2&&(a=P(4),I("target",Dg(U(1,3,a.hasUnsavedChanges$)?
"_blank":"_self"))("routerLinkObj",b))},Fgc=function(a){if(a&1){var b=t();F(0,Dgc,6,6,"div",45);K(1,"div",14)(2,"mat-slide-toggle",46);Cg("ngModelChange",function(e){u(b);var f=P(3);Bg(f.enableSloChecked,e)||(f.enableSloChecked=e);return v(e)});N("change",function(e){u(b);var f=P(3);return v(f.enableSloChecked=e.checked)});Q(3," Enable SLO ");L();K(4,"slo-picker",47);N("onSloSelect",function(e){u(b);var f=P(3);return v(f.onSloChange(e))});L();F(5,Egc,3,5,"a",48);T(6,"async");L()}if(a&2){var c;a=P();
var d=P(2);G(a.value?-1:0);B(2);wg("indented",!a.value);Ag("ngModel",d.enableSloChecked);I("disabled",!d.hasSloEditAccess);B(2);I("boundId",d.sloId)("bv2Disabled",!d.hasSloEditAccess||!d.enableSloChecked||d.isSloInheritEnabled)("bv2Placeholder",d.enableSloChecked?"Type to search for an SLO":"SLO disabled");B();G((c=U(6,9,d.sloPickerLink$))?5:-1,c)}},Ggc=function(a,b){a&1&&(F(0,Cgc,4,2,"div",43),F(1,Fgc,7,11));a&2&&(a=P(2),G(b.value?-1:0),B(),G(a.isSloInheritEnabled?-1:1))},Hgc=function(a){if(a&1){var b=
t();K(0,"div",14)(1,"mat-checkbox",52);N("change",function(c){u(b);var d=P(2);return v(d.sloLocked=c.checked)});K(2,"span");Q(3,"Lock for all child teams");L()()()}a&2&&(a=P(2),B(),I("checked",a.sloLocked)("disabled",!a.canEditSloLock))},Jgc=function(a){if(a&1){var b=t();K(0,"div",14)(1,"mat-checkbox",55);N("change",function(c){u(b);var d=P(3);d.isOwnerInheritEnabled=!c.checked;d.isOwnerInheritEnabled&&Igc(d);return v()});K(2,"span");Q(3,"Override the inherited owner");L()()()}a&2&&(a=P(3),B(),I("checked",
!a.isOwnerInheritEnabled)("disabled",!a.hasSloEditAccess))},Mgc=function(a,b){if(a&1){var c=t();F(0,Jgc,4,2,"div",14);K(1,"div",14)(2,"div")(3,"label");Q(4);L();K(5,"b-multi-user-input",53);N("usersChange",function(d){u(c);var e=P(2);d.length>1||(e.escalationOwner=d.length===1?d[0]:"");return v()})("isValid",function(d){u(c);var e=P(2);return v(e.isEscalationOwnerValid=d)});L();K(6,"div",54);Q(7);L()()()}a&2&&(a=P(2),G(b.value?-1:0),B(4),yg(a.isOwnerInheritEnabled&&!b.value?"Inherited owner":"Owner"),
B(),I("users",a.escalationOwner?Ig(9,Kgc,a.escalationOwner):Hg(11,Lgc))("customValidators",a.escalationOwnerUserValidators)("detailedUserValidators",a.escalationOwnerGooglerValidators)("maxUserAllowed",1),If("disabled",a.isOwnerInheritEnabled||!a.hasSloEditAccess?!0:null),B(),If("aria-hidden",!a.escalationOwnerInvalidErrorMessage),B(),S(" ",a.escalationOwnerInvalidErrorMessage," "))},Pgc=function(a){if(a&1){var b=t();K(0,"div",34)(1,"div",56)(2,"button",57);T(3,"async");N("click",function(){u(b);
var c=P(),d=P();return v(Ngc(d,c))});Q(4," Update ");L();K(5,"button",58);T(6,"async");N("click",function(){u(b);var c=P(2);return v(Ogc(c))});Q(7," Revert changes ");L()()()}a&2&&(a=P(2),B(2),I("disabled",!U(3,2,a.hasUnsavedChanges$)),B(3),I("disabled",!U(6,4,a.hasUnsavedChanges$)))},Qgc=function(a){a&1&&(K(0,"p"),Q(1,"No mapped components"),L())},Rgc=function(a,b){a&1&&(K(0,"ul")(1,"li")(2,"a",39),Q(3),L()()());a&2&&(a=b.$implicit,B(2),I("routerLink",Eg("/components/",a.componentId,"/edit")),B(),
S(" ",a.name," "))},Sgc=function(a){a&1&&(Nf(0,Rgc,4,3,"ul",null,Mf),T(2,"async"));a&2&&(a=P(3),Of(U(2,0,a.associatedComponents$)))},Tgc=function(a,b){a&1&&F(0,Qgc,2,0,"p")(1,Sgc,3,2);a&2&&G(b.length===0?0:1)},Ugc=function(a){a&1&&(K(0,"th",69)(1,"span",70),Q(2,"Starred"),L()())},Vgc=function(a,b){if(a&1){var c=t();K(0,"td",71)(1,"b-star-toggle",72);N("starClicked",function(){var f=u(c).$implicit,g=P(),k=P(2),l=P();return v(l.toggleStar(f.id,k.teamId,g))});L()()}if(a&2){a=b.$implicit;b=P();var d=
P(2),e=P();B();I("starred",e.isTriageStarred(a.id,d.teamId,b))("starMessage","Star this triage view")("unStarMessage","Un-star this triage view")}},Wgc=function(a){a&1&&(K(0,"th",69),Q(1,"Name"),L())},Xgc=function(a,b){a&1&&(K(0,"td",73)(1,"a",74),Q(2),L()());if(a&2){a=b.$implicit;b=P(3);var c=P();B();I("href",c.getTriageLink(a.id,b.teamId),Ne);B();S(" ",a.displayName||b.name+" triage"," ")}},Ygc=function(a){a&1&&(K(0,"th",69)(1,"span",70),Q(2,"Actions"),L()())},Zgc=function(a){a&1&&M(0,"div",78)},
ahc=function(a){if(a&1){var b=t();K(0,"button",80);N("click",function(){u(b);var c=P().$implicit,d=P(4);return v($gc(d,c))});M(1,"mat-icon",81);L()}a&2&&(a=P(5),I("disabled",!a.hasTeamEditAccess&&!a.enableTeamAdmin))},chc=function(a,b){if(a&1){var c=t();K(0,"td",71)(1,"div",75)(2,"button",76);N("click",function(){var d=u(c).$implicit,e=P(3),f=P();return v(bhc(f,d.id,e))});M(3,"mat-icon",77);L();F(4,Zgc,1,0,"div",78)(5,ahc,2,1,"button",79);L()()}a&2&&(a=b.$implicit,b=P(4),B(2),I("disabled",!b.hasTeamEditAccess&&
!b.enableTeamAdmin),B(2),G(a.id===0?4:5))},dhc=function(a){a&1&&M(0,"tr",82)},ehc=function(a){a&1&&M(0,"tr",83)},ghc=function(a){if(a&1){var b=t();K(0,"h3");Q(1,"Triage views");L();K(2,"table",59);Tf(3,60);E(4,Ugc,3,0,"th",61)(5,Vgc,2,3,"td",62);Uf();Tf(6,63);E(7,Wgc,2,0,"th",61)(8,Xgc,3,2,"td",64);Uf();Tf(9,65);E(10,Ygc,3,0,"th",61)(11,chc,6,2,"td",62);Uf();E(12,dhc,1,0,"tr",66)(13,ehc,1,0,"tr",67);L();K(14,"button",68);N("click",function(){u(b);var c=P(2),d=P();return v(fhc(d,c))});Q(15," Add new view ");
L()}a&2&&(a=P(3),B(2),I("dataSource",a.teamExperiments.triage),B(10),I("matHeaderRowDef",a.tableColumns),B(),I("matRowDefColumns",a.tableColumns),B(),I("disabled",!a.hasTeamEditAccess&&!a.enableTeamAdmin))},hhc=function(a){a&1&&(K(0,"mat-tab",36)(1,"div",13),F(2,ghc,16,4),T(3,"async"),L()());if(a&2){var b;a=P(2);I("id",a.Tab.TRIAGE);B(2);G((b=U(3,2,a.starredTriageViews$))?2:-1,b)}},khc=function(a){if(a&1){var b=t();K(0,"div",34)(1,"div",56)(2,"button",57);N("click",function(){u(b);var c=P(3);return v(ihc(c))});
Q(3," Update ");L();K(4,"button",58);N("click",function(){u(b);var c=P(3);return v(jhc(c))});Q(5," Revert changes ");L()()()}a&2&&(a=P(3),B(2),I("disabled",a.sloDelegates==a.originalSloDelegates$.getValue()),B(2),I("disabled",a.sloDelegates==a.originalSloDelegates$.getValue()))},lhc=function(a){if(a&1){var b=t();K(0,"mat-tab",37)(1,"div",13)(2,"div",14)(3,"div",18)(4,"label",19)(5,"span",16);Q(6," SLO delegates ");L();K(7,"span",20)(8,"div",21);Q(9," SLO delegates can manage the SLO policy for the team and its children, as well as all associated components and their children. ");
K(10,"div",22);M(11,"div",23)(12,"div",24);L()()()()();K(13,"b-multi-user-input",84);N("usersChange",function(c){u(b);P(2).sloDelegates=c;return v()});L()();F(14,khc,6,2,"div",34);L()()}a&2&&(a=P(2),I("id",a.Tab.ACCESS),B(13),I("users",a.sloDelegates)("includeAliases",!0)("includeViewAliases",!0),If("disabled",a.hasTeamEditAccess?null:!0),B(),G(a.hasTeamEditAccess?14:-1))},nhc=function(a,b){if(a&1){var c=t();K(0,"div",7)(1,"h2");Q(2);K(3,"a",8);Q(4);M(5,"mat-icon",9);L()()();F(6,mgc,2,1,"div",10);
T(7,"async");K(8,"mat-tab-group",11);Cg("selectedIndexChange",function(C){u(c);var H=P();Bg(H.selectedTabIndex,C)||(H.selectedTabIndex=C);return v(C)});N("selectedIndexChange",function(C){u(c);var H=P();return v(H.tabChange(C))});K(9,"mat-tab",12)(10,"div",13);Q(11," Team information on this page comes from ");K(12,"a",8);Q(13," Team Graph ");M(14,"mat-icon",9);L();Q(15," and is view only. ");K(16,"div",14)(17,"div",15)(18,"label")(19,"span",16);Q(20,"Description");L()();K(21,"div",17);F(22,ngc,2,
1,"ng-container")(23,ogc,1,0);L()()();K(24,"div",14)(25,"div",18)(26,"label",19)(27,"span",16);Q(28," Team admins ");L();K(29,"span",20)(30,"div",21);Q(31," Team admins are team leads from Team Graph. ");K(32,"div",22);M(33,"div",23)(34,"div",24);L()()()();F(35,pgc,1,2,"b-multi-user-input",25);T(36,"async");L()();K(37,"div",14)(38,"div",15)(39,"label")(40,"span",16);Q(41,"Child team(s)");L()();F(42,tgc,2,1);T(43,"async");L()()()();K(44,"mat-tab",26)(45,"div",13)(46,"div",18)(47,"label",19)(48,"span",
16);Q(49,"SLO configuration");L()();K(50,"span",20)(51,"div",27)(52,"strong");Q(53,"Careful!");L();Q(54," 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. ");K(55,"div",22);M(56,"div",23)(57,"div",24);L()()()();K(58,"div",28);F(59,wgc,4,1,"div",29);T(60,"async");K(61,"div",30);Q(62," Policy Source: ");F(63,xgc,2,2,"a",31);T(64,"async");Kf(65,ygc,1,0);L();K(66,"div",32);F(67,Bgc,3,1);L()();M(68,
"b-error-banner",33);F(69,Ggc,2,2);T(70,"async");F(71,Hgc,4,2,"div",14);K(72,"div",14)(73,"div",18)(74,"label",19)(75,"span",16);Q(76," Owner configuration ");L()();K(77,"span",20)(78,"div",21);Q(79," Single team lead receiving SLO reports of unassigned issues. ");K(80,"div",22);M(81,"div",23)(82,"div",24);L()()()()();F(83,Mgc,8,12);T(84,"async");F(85,Pgc,8,6,"div",34);L()();K(86,"mat-tab",35)(87,"div",13)(88,"div",14)(89,"div",15)(90,"label")(91,"span",16);Q(92," Component(s) that have mapped to this team ");
L()()();F(93,Tgc,2,1);T(94,"async");L()()();F(95,hhc,4,4,"mat-tab",36);F(96,lhc,15,6,"mat-tab",37);L()}if(a&2){var d,e,f,g,k,l,r,w,x;a=P();B(2);S(" Team ",b.teamId,": ");B();I("href",Eg("https://moma.corp.google.com/team/",b.teamId),Ne);B();S(" ",b.name," ");B(2);G((d=U(7,25,a.teamPath$))?6:-1,d);B(2);Ag("selectedIndex",a.selectedTabIndex);B();I("id",a.Tab.BASIC);B(3);I("href",Eg("https://moma.corp.google.com/team/",b.teamId),Ne);B(10);G((e=b.description)?22:23,e);B(13);G((f=U(36,27,a.adminsAndLeads$))?
35:-1,f);B(7);G((g=U(43,29,a.childTeams$))?42:-1,g);B(2);I("id",a.Tab.SLO);B(15);G((k=U(60,31,a.inheritedSlo$))?59:-1,k);B(4);G((l=U(64,33,a.sloPolicySource$))?63:65,l);B(4);G(a.enableSloLockingUi?67:-1);B();I("error",a.error);B();G((r=Ig(41,mhc,U(70,35,a.isRootTeam$)))?69:-1,r);B(2);G(a.enableSloLockingUi?71:-1);B(12);G((w=Ig(43,mhc,U(84,37,a.isRootTeam$)))?83:-1,w);B(2);G(a.hasSloEditAccess?85:-1);B();I("id",a.Tab.MAPPINGS);B(7);G((x=U(94,39,a.associatedComponents$))?93:-1,x);B(2);G(a.enableTeamScope?
95:-1);B();G(a.enableSloDelegatesUi?96:-1)}},ohc=function(a,b){a&1&&(K(0,"div",85),Q(1),L(),K(2,"div",86)(3,"button",87),Q(4," Cancel "),L(),K(5,"button",88),Q(6," Confirm "),L()());a&2&&(a=b.$implicit,B(),S(' Are you sure you want to delete this triage view: "',a.displayName,'"? '),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},phc=function(a){a&1&&(K(0,"a",9),Q(1,"Learn more"),L())},qhc=function(a){a&1&&(K(0,"mat-error"),Q(1),L());a&2&&(a=P(2),B(),yg(a.validationErrorMessage))},rhc=
function(a){if(a&1){var b=t();K(0,"div",8)(1,"p");Q(2," Input a URL from a supported source to add a task. ");F(3,phc,2,0,"a",9);L()();K(4,"mat-form-field",10);M(5,"input",11,3);F(7,qhc,2,1,"mat-error");L();K(8,"div",12)(9,"div",13)(10,"button",14);N("click",function(){u(b);var c=P();return v(c.cancelClicked.emit())});Q(11,"Cancel");L();K(12,"button",15);N("click",function(){u(b);var c=P();return v(c.saveChanges())});Q(13,"Add Task");L()()()}a&2&&(a=P(),B(3),G(a.isInternalSession?3:-1),B(2),I("formControl",
a.addTasksForm)("placeholder",a.urlPlaceholder),B(2),G(a.validationErrorMessage?7:-1),B(5),I("disabled",a.addTasksForm.invalid||a.saving))},shc=function(a){a&1&&(K(0,"mat-error"),Q(1,"Title is required"),L())},thc=function(a,b){a&1&&(K(0,"mat-option",25),Q(1),L());a&2&&(a=b.$implicit,I("value",a.id),B(),S(" ",a.title," "))},uhc=function(a){a&1&&(K(0,"mat-error",26),Q(1,"Task list is required"),L())},whc=function(a){if(a&1){var b=t();K(0,"div",16)(1,"form",17);N("ngSubmit",function(){u(b);var f=P();
return v(f.onSubmit())});K(2,"mat-form-field",18);M(3,"input",19,3);K(5,"mat-hint",20);Q(6);L();F(7,shc,2,0,"mat-error");L();K(8,"mat-form-field",18);M(9,"textarea",21,4);K(11,"mat-hint",20);Q(12);L()();K(13,"mat-form-field",22);M(14,"mat-icon",23);K(15,"mat-select",24);Nf(16,thc,2,2,"mat-option",25,vhc);T(18,"async");L();F(19,uhc,2,0,"mat-error",26);L();K(20,"mat-form-field",27);M(21,"mat-datepicker-toggle",28);K(22,"input",29);N("click",function(){u(b);var f=qg(24);return v(f.open())});L();M(23,
"mat-datepicker",null,5);L();K(25,"div",30)(26,"button",14);N("click",function(){u(b);var f=P();return v(f.cancelClicked.emit())});Q(27,"Cancel");L();K(28,"button",31);Q(29,"Add");L()()()()}if(a&2){a=qg(4);var c=qg(10),d=qg(24),e=P();B();I("formGroup",e.gTaskForm);B(5);S("",a.value.length," / 1024");B();G((e.title==null?0:e.title.hasError("required"))?7:-1);B(5);S("",c.value.length," / 8192");B(4);Of(U(18,8,e.gtaskListIds$));B(3);G((e.taskListId==null?0:e.taskListId.hasError("required"))?19:-1);B(2);
I("for",d);B();I("matDatepicker",d);B(6);I("disabled",e.gTaskForm.invalid)}},xhc=function(a){a&1&&Vf(0)},yhc=function(a){a&1&&Vf(0)},zhc=function(a){a&1&&(K(0,"mat-tab-group",7)(1,"mat-tab",32),E(2,xhc,1,0,"ng-container",33),L(),K(3,"mat-tab",34),E(4,yhc,1,0,"ng-container",33),L()());if(a&2){P();a=qg(3);var b=qg(5);B(2);I("ngTemplateOutlet",a);B(2);I("ngTemplateOutlet",b)}},Ahc=function(a){a&1&&Vf(0)},Bhc=function(a){a&1&&E(0,Ahc,1,0,"ng-container",33);a&2&&(P(),a=qg(3),I("ngTemplateOutlet",a))},
Chc=function(a){a&1&&(K(0,"div",0)(1,"div",1),M(2,"mat-icon",2),Q(3),L(),K(4,"div",3),M(5,"mat-icon",4),K(6,"span")(7,"a",5),Q(8),L(),Q(9," \u00b7 "),M(10,"b-formatted-date-time",6),Q(11," \u2010 "),M(12,"b-formatted-date-time",6),L()()());if(a&2){a=P();B(3);S(" ",a.iteration.workspace.name," ");B(4);var b,c,d;var e=a.getBaseUrl()+"/workspaces/"+((b=a.iteration)==null?void 0:(c=b.workspace)==null?void 0:c.workspaceId)+"/iterations/"+((d=a.iteration)==null?void 0:d.iterationId);I("href",e,Ne);B();
S(" ",a.iteration.name," ");B(2);I("paddingLeftPx",0)("timestamp",a.iteration.startTimestamp);B(2);I("paddingLeftPx",0)("timestamp",a.iteration.endTimestamp)}},Dhc=function(a){a&1&&M(0,"iteration-card",4,1);if(a&2){a=qg(1);var b=P(2);I("onedevIsHovercardReady",a.hovercardReady$)("iteration",b.iteration)}},Ehc=function(a){if(a&1){var b=t();K(0,"div",2);N("onedevHovercardShown",function(){u(b);var c=P();return v(c.trackHoverEvent())})("click",function(c){u(b);var d=P();c.stopPropagation();d.analytics.trackEvent("missionControl",
"click","iteration-chip");var e,f,g;c=d.iteration||d.iteration.workspace||d.iteration.iterationId?d.getBaseUrl()+"/workspaces/"+((e=d.iteration)==null?void 0:(f=e.workspace)==null?void 0:f.workspaceId)+"/iterations/"+((g=d.iteration)==null?void 0:g.iterationId):d.getBaseUrl();d.domSafe.openInNewTab(c);return v()});Q(1," Current ");L();K(2,"onedev-hovercard",null,0);E(4,Dhc,2,2,"iteration-card",3);L()}a&2&&(a=qg(3),I("onedevHovercardTrigger",a))},Lhc=function(a,b,c,d,e){return Fhc(a).map(function(f){var g=
f.task,k=Ghc(f.signals,b,e);if(g&&k&&k.length!==0){var l,r,w,x,C,H,J=g.taskId,O=g.taskResourceType,R=g.title,V=Hhc(k);f=Ihc(f,k);if(g.issueResource){var ca=g.issueResource.priority;ca=ca==="P0"||ca==="P1"?ca:null}else ca=null;return{id:J,type:O,description:R,lastAlertTimestamp:V,signals:f,link:g.externalLink,icon:s2a(g),priority:ca,accessLevel:(w=(l=g.issueResource)==null?void 0:l.accessLevel)!=null?w:null,hotlistIds:g.issueResource?g.issueResource.hotlistIds:[],issueId:w7a(g.taskId).length===1?w7a(g.taskId)[0]:
null,futureAvailability:Jhc(k),reviewEstimate:Khc(k),lastMentionLink:((r=g.driveResource)==null?0:r.lastMentionLink)&&g.driveResource.lastMentionLink!==""?g.driveResource.lastMentionLink:void 0,isStaleTask:(x=g.isStaleTask)!=null?x:!1,snoozeUntilTimestamp:(C=g.snoozeUntilTimestamp)!=null?C:void 0,manualSignalTimestamp:(H=g.manualSignalTimestamp)!=null?H:void 0,iteration:c.get(g.taskId),okrIds:d.get(g.taskId)}}}).filter(Pm)},Ghc=function(a,b,c){return Mhc(a).filter(function(d){var e;if(e=d.signalStatus===
b)e=d.driveAlert?c.driveSignals.includes(d.driveAlert.signal):d.changelistAlert?c.changelistSignals.includes(d.changelistAlert.signal):d.issueAlert?c.buganizerSignals.includes(d.issueAlert.signal):d.gerritAlert?c.gerritSignals.includes(d.gerritAlert.signal):d.googleTasksAlert?c.googleTasksSignals.includes(d.googleTasksAlert.signal):d.irmAlert?c.irmSignals.includes(d.irmAlert.signal):!1;return e})},Fhc=function(a){return a.results.map(function(b){var c=b.task,d,e;return((e=c==null?void 0:(d=c.snoozeUntilTimestamp)==
null?void 0:d.seconds)!=null?e:0)!==0?{task:c,signals:b.signals.map(function(f){return Object.assign({},f,{signalStatus:2})})}:b})},Ihc=function(a,b){return b.map(function(c){var d={timestamp:c.timestamp,type:"DRIVE_SIGNAL_UNSPECIFIED"};if(c.driveAlert){d.type=c.driveAlert.signal;d.driveFileId=a.task.taskId.split("/")[1];d.driveCommentId=c.driveAlert.commentId;var e;d.driveCommentLink=(e=a.task.driveResource)==null?void 0:e.lastMentionLink}c.changelistAlert&&(d.type=c.changelistAlert.signal);c.issueAlert&&
(d.type=c.issueAlert.signal,d.commentNumbers=c.issueAlert.commentNumbers,d.configurableAlertSubscriptionId=c.issueAlert.configurableAlertSubscriptionId);c.googleTasksAlert&&(d.type=c.googleTasksAlert.signal);c.gerritAlert&&(d.type=c.gerritAlert.signal);c.irmAlert&&(d.type=c.irmAlert.signal);return d})},Mhc=function(a){var b=a.some(function(c){var d;return((d=c.issueAlert)==null?void 0:d.signal)==="MENTIONED_NEEDS_RESPONSE"});return a.filter(function(c){var d;return!b||((d=c.issueAlert)==null?void 0:
d.signal)!=="COMMENT_MENTIONS_ME"})},Hhc=function(a){return a.sort(function(b,c){var d,e;return((d=$n(c.timestamp))!=null?d:0)-((e=$n(b.timestamp))!=null?e:0)})[0].timestamp},Nhc=function(a){switch(a.type){case "NEEDS_ATTENTION":case "GERRIT_CHANGE_NEEDS_ATTENTION":case "DUE_DATE_EXPIRED":case "MENTIONED_NEEDS_RESPONSE":return 0;case "REQUIRES_APPROVAL":case "READY_TO_SUBMIT":case "GERRIT_CHANGE_READY_TO_SUBMIT":case "NEAR_SLO":case "REPLIED_TO_MENTION":case "NEWLY_ASSIGNED_TO_ME":case "COMMENT_MENTIONS_ME":case "NEEDS_REPORTER_INPUT":case "CONFIGURABLE_ALERT":case "THREAD_MENTIONS_ME":case "TAGGED_IN_COMMENT":return 1;
default:return 2}},Ohc=function(a){var b=a[0],c=Nhc(b);a=m(a);for(var d=a.next();!d.done;d=a.next())d=d.value,Nhc(d)<c&&(b=d,c=Nhc(b));return b},Jhc=function(a){return a.map(function(b){var c,d;return(c=b.changelistAlert)==null?void 0:(d=c.clAuthorAvailability)==null?void 0:d.futureAvailability}).find(Pm)},Khc=function(a){return a.map(function(b){var c;return(c=b.changelistAlert)==null?void 0:c.reviewEstimate}).find(Pm)},Phc=function(a){var b=C4a(a.getFrequency()),c=a.getTimeZone(),d=a.getTimeOfDay(),
e=a.getLastUpdatedTimestamp();if(!b)throw Error("ie");if(!c)throw Error("je");if(!d)throw Error("ke");if(!e)throw Error("yg");return{id:a.getId_asString(),frequency:b,ordinal:a.getOrdinal(),timeZone:E4a(c),timeOfDay:G4a(d),displayName:a.getDisplayName(),query:a.getQuery(),sendEmail:Fi(a,8),showInBuganizerHome:Fi(a,9),baselineIssueIds:[].concat(q(Qm(a,10))),isOverflowing:Fi(a,11),lastUpdated:bn(e)}},Qhc=function(a){var b=(new ru).setId(a.id).setFrequency(D4a(a.frequency)).setOrdinal(a.ordinal).setTimeZone(F4a(a.timeZone)).setTimeOfDay(H4a(a.timeOfDay)).setDisplayName(a.displayName).setQuery(a.query);
b=Yo(b,8,a.sendEmail);b=Yo(b,9,a.showInBuganizerHome);b=tr(b,10,a.baselineIssueIds);b=Yo(b,11,a.isOverflowing);a=cn(a.lastUpdated);return Mi(b,Si,12,a)},Vhc=function(a,b){a&1&&(K(0,"div",0)(1,"h1"),Q(2),L(),K(3,"div",1)(4,"pre"),Q(5),L()(),K(6,"div",2)(7,"a",3),Q(8," Edit alert "),L(),K(9,"a",4),Q(10," View issues "),L()()());a&2&&(B(2),yg(b.displayName),B(3),yg(b.query),B(2),I("routerLinkObj",Ig(6,Rhc,Ig(4,Shc,b.id))),B(2),I("routerLinkObj",Ig(10,Thc,Ig(8,Uhc,b.query))))},Whc=function(a){if(a&1){var b=
t();K(0,"a",5);N("click",function(){u(b);P(2).analytics.trackEvent("mentionsCard","navigate","comment");return v()});Q(1," a comment ");L()}a&2&&(a=P(2),I("href",a.lastMentionLink,Ne))},Xhc=function(a){a&1&&Q(0," a comment ")},Yhc=function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"span"),M(3,"b-user-display",2),Q(4," mentioned you in "),F(5,Whc,2,1,"a",3)(6,Xhc,1,0),L(),K(7,"span"),M(8,"b-formatted-date-time",4),L()(),K(9,"div"),Q(10),L()());a&2&&(a=P(),B(3),I("model",{emailAddress:b.authorDisplayName}),
B(2),G(a.lastMentionLink?5:6),B(3),I("timestamp",b.lastModifiedTimestamp),B(2),yg(b.content))},Zhc=function(a,b){if(a&1){var c=t();K(0,"a",7);T(1,"async");N("click",function(){u(c);P(3).analytics.trackEvent("mentionsCard","navigate","commentNumber");return v()});Q(2);L()}if(a&2){a=P(3);var d;I("routerLinkObj",a.getCommentNumberLink((d=U(1,2,a.issueId$))!=null?d:"",b));B(2);S(" comment #",b," ")}},$hc=function(a){if(a&1){var b=t();K(0,"div",9)(1,"span",10);Q(2," Was this 'Needs Response' alert accurate? ");
L();K(3,"button",11);N("click",function(){u(b);var c=P(4);return v(c.trackThumbsUp())});M(4,"mat-icon",12);L();K(5,"button",13);N("click",function(){u(b);var c=P(4);return v(c.trackThumbsDown())});M(6,"mat-icon",14);L()()}a&2&&(a=P(4),B(3),I("disabled",a.hasReacted),B(),wg("has-reacted-icon",a.thumbsUpClicked),B(),I("disabled",a.hasReacted),B(),wg("has-reacted-icon",a.thumbsDownClicked))},aic=function(a,b){a&1&&(K(0,"div"),M(1,"b-note-container",8),T(2,"async"),F(3,$hc,7,6,"div",9),L());if(a&2){a=
P().$implicit;var c=P(2);B();var d;I("issueId",(d=U(2,4,c.issueId$))!=null?d:"")("note",b)("formattingMode",a.formattingMode);B(2);G(c.needsResponse&&!a.commentRedacted?3:-1)}},bic=function(a,b){a&1&&(K(0,"div")(1,"div",2)(2,"span",3),M(3,"b-user-display",4),K(4,"span"),Q(5," mentioned you in "),F(6,Zhc,3,4,"a",5),L()(),K(7,"span"),M(8,"b-formatted-date-time",6),L()(),F(9,aic,4,6,"div"),L());if(a&2){var c;a=b.$implicit;var d=b.$index;b=b.$count;P(2);wg("margin-s-bottom",d!==b-1)("padded-s-bottom",
d!==b-1)("border-bottom",d!==b-1);B(3);I("model",a.lastCommentEditorUser);B(3);G((c=a.commentNumber)?6:-1,c);B(2);I("timestamp",a.commentLastModifiedAtDate);B();var e;c={commentNumber:(e=a.commentNumber)!=null?e:void 0,unlinkifiedComment:a.commentRedacted?"Comment access restricted. Please reach out to the issue owner to view.":a.unlinkifiedComment,formattedComment:a.commentRedacted?void 0:a.formattedComment};G(c?9:-1,c)}},dic=function(a,b){a&1&&(K(0,"div",0),Nf(1,bic,10,10,"div",1,cic),K(3,"div"),
Vf(4),L()());a&2&&(B(),Of(b))},eic=function(a){a&1&&Vf(0)},gic=function(a){a&1&&E(0,eic,1,0,"ng-container",5);if(a&2){a=P().$implicit;P(2);var b=qg(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,fic,a))}},hic=function(a,b){a&1&&F(0,gic,1,4,"ng-container");a&2&&(a=b.$implicit,b=P(2),G(b.SIGNAL_TO_DISPLAY_TEXT.has(a.type)?0:-1))},jic=function(a){a&1&&(K(0,"div",4),Nf(1,hic,1,1,null,null,iic),L());a&2&&(a=P(),B(),Of(a.signals))},kic=function(a){a&1&&Vf(0)},mic=function(a,b){a&1&&(K(0,"div",
6),E(1,kic,1,0,"ng-container",5),K(2,"div",7),Q(3),L()());if(a&2){a=P(2);var c=qg(3);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ig(4,fic,b));B();I("matTooltip",lic(a.signals,b));B();S(" and ",a.signals.length-1," more ")}},nic=function(a){a&1&&F(0,mic,4,6,"div",6);if(a&2){var b;a=P();G((b=a.getHighestPrioritySignal(a.signals))?0:-1,b)}},oic=function(a){a&1&&Q(0);if(a&2){var b=P().signal;a=P();b=b.type;a=a.tailwindRunStatus&&b==="ISSUE_SNOOZE_EXPIRED"?"AI Fix":su.get(b);S(" ",a," ")}},pic=
function(a){a&1&&Q(0);if(a&2){a=P().signal;var b=P();S(" ",b.SIGNAL_TO_DISPLAY_TEXT.get(a.type)," ")}},ric=function(a){a&1&&M(0,"mentioned-issue-comments-card",9,3);if(a&2){a=qg(1);var b=P(2).signal,c=P(),d;I("onedevIsHovercardReady",a.contentReady$)("issueId",c.issueId)("commentNumbers",(d=b.commentNumbers)!=null?d:Hg(4,qic))("needsResponse",b.type==="MENTIONED_NEEDS_RESPONSE")}},sic=function(a){a&1&&E(0,ric,2,5,"mentioned-issue-comments-card",12)},tic=function(a){a&1&&M(0,"mentioned-drive-comments-card",
10,3);if(a&2){a=qg(1);var b=P(2).signal;I("onedevIsHovercardReady",a.contentReady$)("fileId",b.driveFileId)("commentId",b.driveCommentId)("lastMentionLink",b.driveCommentLink)}},uic=function(a){a&1&&E(0,tic,2,4,"mentioned-drive-comments-card",13)},vic=function(a){a&1&&M(0,"configurable-alert-card",11,3);if(a&2){a=qg(1);var b=P(2).signal;I("onedevIsHovercardReady",a.contentReady$)("subscriptionId",b.configurableAlertSubscriptionId)}},wic=function(a){a&1&&E(0,vic,2,2,"configurable-alert-card",14)},
Bic=function(a,b){if(a&1){var c=t();Zf(0);K(1,"div",8,1);N("mouseenter",function(){u(c);var f=qg(2),g=ag(0);return v(g?f.disabled=!0:null)})("mouseleave",function(){u(c);var f=qg(2),g=ag(0);return v(g?f.disabled=!1:null)});F(3,oic,1,1)(4,pic,1,1);L();K(5,"onedev-hovercard",null,2);F(7,sic,1,0,"mentioned-issue-comments-card",9)(8,uic,1,0,"mentioned-drive-comments-card",10)(9,wic,1,0,"configurable-alert-card",11);L()}if(a&2){a=b.signal;b=qg(6);var d=P(),e=$f(xic(d,a)||yic(a)||zic(a));B();xg(Eg("signal-chip type-button urgent-",
d.getSignalUrgency(a)));wg("keep-focus-ring",e);I("onedevHovercardActive",e)("onedevHovercardTrigger",b)("matTooltip",xic(d,a)||yic(a)||zic(a)?'Press "Alt/Option + Right Arrow Key" to show comment':d.enableTailwindMissionControl&&d.tailwindRunStatus&&a.type==="ISSUE_SNOOZE_EXPIRED"?"This issue has a AI Fix":Aic.get(a.type));If("tabindex",e?"0":"-1");B(2);G(d.enableTailwindMissionControl?3:4);B(4);G(xic(d,a)?7:yic(a)?8:zic(a)?9:-1)}},Dic=function(a,b){a&1&&(K(0,"div",3)(1,"div",5),Q(2),L(),K(3,"div")(4,
"a",6),Q(5),L()()());a&2&&(P(3),B(2),S(" O ",Cic(b==null?null:b.priorityRating)),B(2),I("href",b==null?null:b.url,Ne),B(),yg(b==null?null:b.title))},Eic=function(a,b){a&1&&(K(0,"div",4)(1,"div",7),Q(2),L(),K(3,"div")(4,"a",6),Q(5),L()()());a&2&&(P(3),B(2),S(" KR ",Cic(b.priorityRating)),B(2),I("href",b.url,Ne),B(),S(" ",b==null?null:b.title))},Hic=function(a,b){a&1&&(K(0,"div",2),F(1,Dic,6,3,"div",3),F(2,Eic,6,3,"div",4),L());if(a&2){var c,d;a=b.$implicit;b=P();P();B();G((c=Fic(b,a))?1:-1,c);B();
G((d=Gic(b,a))?2:-1,d)}},Iic=function(a){a&1&&(K(0,"div",0)(1,"div",1),Nf(2,Hic,3,2,"div",2,Mf),L()());a&2&&(a=P(),B(2),Of(a.okrIds))},Jic=function(a){a&1&&M(0,"okr-card",4,1);if(a&2){a=qg(1);var b=P(2);I("onedevIsHovercardReady",a.hovercardReady$)("okrIds",b.okrIds)}},Kic=function(a){if(a&1){var b=t();K(0,"div",2);N("onedevHovercardShown",function(){u(b);var c=P();return v(c.trackHoverEvent())});Q(1,"OKR");L();K(2,"onedev-hovercard",null,0);E(4,Jic,2,2,"okr-card",3);L()}a&2&&(a=qg(3),I("onedevHovercardTrigger",
a))},Lic=function(a){a&1&&(K(0,"div",0)(1,"div",1)(2,"div",2)(3,"div"),Q(4," Your response time is longer than usual for similar items. Respond to unblock others ("),K(5,"a",3),Q(6,"see more"),L(),Q(7,"). "),L()()()())},Mic=function(a){a&1&&M(0,"stale-task-card",5,1);if(a&2){a=qg(1);var b=P();I("onedevIsHovercardReady",a.hovercardReady$)("taskId",b.taskId)}},Nic=function(a,b){if(a&1){var c=t();K(0,"button",5);N("click",function(d){var e=u(c).$implicit;P().onCheckboxChange(e);return v(d.stopPropagation())});
K(1,"mat-checkbox",8);Q(2);L()()}a&2&&(a=b.$implicit,b=P(),B(),I("checked",b.currentSelectedSignals.has(a)),B(),S(" ",b.SIGNAL_TO_DISPLAY_TEXT.get(a)," "))},Oic=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(),xg(Eg("icon-s checkmark ",a.displayName)))},Ric=function(a,b){if(a&1){var c=t();K(0,"span",2)(1,"button",3);N("click",function(){u(c);var e=P().$implicit,f=P();return v(f.sourceFilterChange(e))});F(2,Oic,1,3,"mat-icon",4);K(3,"span",5);Q(4);L()();K(5,"signal-list-dropdown",6);N("changeFilteredSignals",
function(e){u(c);var f=P().$implicit,g=P();return v(g.signalFilterChange(e,f))})("chipSelectionStateChanged",function(e){u(c);var f=P().$implicit;P().chipsSelected[f]=e;return v()});L()()}if(a&2){a=P().$implicit;var d=P();wg("expanded",d.chipsSelected[a]);B();If("aria-pressed",d.chipsSelected[a]);B();G(d.chipsSelected[a]?2:-1);B();I("matTooltip",b.tooltipText);B();S(" ",d.activeSession.isInternalSession()?b.displayName:b.externalDisplayName," ");B();I("signalFilterKeys",Pic(d,a))("selectedSignals",
Qic(d,a))("source",a)}},Sic=function(a,b){a&1&&F(0,Ric,6,9,"span",1);if(a&2){var c;a=b.$implicit;b=P();G((c=b.DEFINITIONS[a])?0:-1,c)}},Tic=function(a,b){if(a&1){var c=t();K(0,"button",7);N("click",function(){var d=u(c).$implicit,e=P();d=d.numberOfDays;e.selectedTimeBoundary=d;e.change.emit(d);return v()});Q(1);L()}a&2&&(a=b.$implicit,b=P(),I("disabled",a.numberOfDays===b.selectedTimeBoundary),B(),S(" ",a.label," "))},Uic=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);var c=
P();c.unsnooze.emit();c.onOpen(!1);return v()});M(1,"mat-icon",12);Q(2,"Unsnooze now ");L()}},Vic=function(a){if(a&1){var b=t();K(0,"div",13);N("clickOutside",function(){u(b);P().timePickerOpen=!1;return v()});K(1,"b-date-time-picker-content",14);N("cancelClicked",function(){u(b);P().timePickerOpen=!1;return v()})("dateTimeChange",function(c){u(b);P().currentPickerDateTime=c;return v()})("saveClicked",function(){u(b);var c=P(),d=c.currentPickerDateTime;d&&c.snooze.emit(d);c.timePickerOpen=!1;return v()});
L()()}a&2&&(a=P(),B(),I("required",!0)("renderPanel",!0)("dateTime",a.currentPickerDateTime)("includeTimePicker",!0)("todayButtonEnabled",!1))},Wic=function(a){if(a&1){var b=t();Tf(0);K(1,"div",1)(2,"span",2)(3,"a",3);N("click",function(){u(b);P().onChipClicked.emit();return v()});Q(4,"DMA");L()()();Uf()}a&2&&(a=P(),B(),I("matTooltip",a.DMA_TOOLTIP_TEXT))},Xic=function(a){a&1&&(K(0,"label",12),Q(1),L());a&2&&(a=P().$implicit,I("matTooltip",a.description),B(),yg(a.label))},Yic=function(a){a&1&&(K(0,
"mat-tab"),E(1,Xic,2,2,"ng-template",11),L())},Zic=function(a){if(a&1){var b=t();K(0,"mat-tab-group",10);N("selectedIndexChange",function(c){u(b);var d=P();return v(d.onTabIndexChange(c))});Nf(1,Yic,2,0,"mat-tab",null,Mf);L()}a&2&&(a=P(),I("selectedIndex",0),B(),Of(a.tabData))},$ic=function(a,b){if(a&1){var c=t();K(0,"signal-filter-chips",14);N("changeSourceAndFilteredSignals",function(e){u(c);var f=P(2).missionControlPrefs,g=e.selectedSignals;f.prefs.needsAttentionSources=e.selectedSources.map(dEb);
f.prefs.needsAttentionBuganizerFilteredSignals=fEb(g.buganizerSignals,f.filteredSignalsOptions);f.prefs.needsAttentionDriveFilteredSignals=jEb(g.driveSignals,f.filteredSignalsOptions);f.prefs.needsAttentionGerritFilteredSignals=lEb(g.gerritSignals,f.filteredSignalsOptions);f.prefs.needsAttentionChangelistFilteredSignals=hEb(g.changelistSignals,f.filteredSignalsOptions);f.prefs.needsAttentionGoogleTasksFilteredSignals=pEb(g.googleTasksSignals,f.filteredSignalsOptions);f.prefs.needsAttentionIrmFilteredSignals=
qEb(g.irmSignals,f.filteredSignalsOptions);Jt(f,{needsAttentionSources:f.prefs.needsAttentionSources,isNeedsAttentionSourcesConfigured:!0,needsAttentionBuganizerFilteredSignals:f.prefs.needsAttentionBuganizerFilteredSignals,needsAttentionDriveFilteredSignals:f.prefs.needsAttentionDriveFilteredSignals,needsAttentionGerritFilteredSignals:f.prefs.needsAttentionGerritFilteredSignals,needsAttentionGoogleTasksFilteredSignals:f.prefs.needsAttentionGoogleTasksFilteredSignals,needsAttentionChangelistFilteredSignals:f.prefs.needsAttentionChangelistFilteredSignals,
needsAttentionIrmFilteredSignals:f.prefs.needsAttentionIrmFilteredSignals});return v()})("changeSourceFilter",function(e){u(c);var f=P(2).missionControlPrefs;e=e.map(dEb);f.prefs.needsAttentionSources=e;Jt(f,{needsAttentionSources:e,isNeedsAttentionSourcesConfigured:!0});return v()});L()}if(a&2){a=P();var d=P();I("sourceFilterKeys",d.SOURCE_FILTERS)("selectedSources",a)("selectedSignals",b)}},ajc=function(a){a&1&&(F(0,$ic,1,3,"signal-filter-chips",13),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,
a.filteredSignals$))?0:-1,b)}},bjc=function(a,b){if(a&1){var c=t();K(0,"time-boundary-filter",15);N("change",function(d){u(c);var e=P().missionControlPrefs;e.prefs.needsAttentionDaysOld=d;Jt(e,{needsAttentionDaysOld:d});return v()});L()}a&2&&I("selectedTimeBoundary",b)},cjc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"button",16,0);N("taskAdded",function(){u(b);var c=P();return v(c.refreshTaskData())});Q(3," Add a task ");L()()}},djc=function(a){a&1&&(K(0,"p",17),Q(1," No alerts "),L())},ejc=function(a){if(a&
1){var b=t();K(0,"th",33)(1,"mat-checkbox",34);N("change",function(d){u(b);var e=P(2),f=P(2);return v(d?f.toggleAllRows(e):null)});L()()}if(a&2){a=P(2);var c=P(2);B();I("checked",c.selection.hasValue()&&c.selection.selected.length===a.length)("indeterminate",c.selection.hasValue()&&c.selection.selected.length!==a.length)}},fjc=function(a,b){if(a&1){var c=t();K(0,"td",35)(1,"mat-checkbox",36);N("click",function(d){u(c);return v(d.stopPropagation())})("change",function(d){var e=u(c).$implicit,f=P(4);
return v(d?f.selection.toggle(e.id):null)});L()()}a&2&&(a=b.$implicit,b=P(4),B(),I("checked",b.selection.isSelected(a.id)))},gjc=function(a){a&1&&(K(0,"th",33),Q(1),L());a&2&&(a=P(4),B(),yg(a.selection.hasValue()?"":"Source"))},hjc=function(a,b){a&1&&(K(0,"td",35),M(1,"mat-icon",37),L());a&2&&(a=b.$implicit,B(),xg(Eg("product-icon ",a.icon)),I("matTooltip",a.type)("svgIcon",a.icon),If("aria-label",a.type))},jjc=function(a){if(a&1){var b=t();K(0,"button",40);N("click",function(){u(b);var c=P(5);ijc(c,
c.selection.selected);c.selection.clear();return v()});Q(1);T(2,"async");L()}a&2&&(a=P(5),B(),yg(U(2,1,a.dismissButtonLabel$)))},kjc=function(a){a&1&&(K(0,"span"),Q(1,"Description"),L())},mjc=function(a){if(a&1){var b=t();K(0,"button",41,1);Q(2);T(3,"async");L();K(4,"snooze-menu",42,2);N("snooze",function(e){u(b);var f=P(5);ljc(f,f.selection.selected,e);f.selection.clear();return v()})("unsnooze",function(){u(b);var e=P(5);ljc(e,e.selection.selected);e.selection.clear();return v()});L()}if(a&2){a=
qg(1);var c=qg(5),d=P(5);I("matMenuTriggerFor",c.menu);B(2);yg(U(3,4,d.snoozeButtonLabel$));B(2);I("isSnoozed",d.signalStatusFilter$.getValue()===d.SignalStatus.SNOOZED)("datePickerAnchor",a)}},pjc=function(a){if(a&1){var b=t();K(0,"button",43);N("click",function(){u(b);var c=P(5);return v(njc(c))});Q(1);L()}a&2&&(a=P(5),B(),yg(ojc(a)?"Trigger manual signal":"Remove manual signal"))},qjc=function(a){a&1&&(K(0,"th",33),F(1,jjc,3,3,"button",38)(2,kjc,2,0,"span"),F(3,mjc,6,6),F(4,pjc,2,1,"button",39),
L());a&2&&(a=P(4),B(),G(a.selection.hasValue()?1:2),B(2),G(a.selection.hasValue()?3:-1),B(),G(a.selection.hasValue()?4:-1))},rjc=function(a){a&1&&M(0,"b-issue-visibility-chip",46);if(a&2){a=P(2).$implicit;var b=P(4);I("issueId",b.extractLastDigits(a.id))}},sjc=function(a){a&1&&M(0,"okr-chip",47);a&2&&(a=P(2).$implicit,I("okrIds",a.okrIds))},tjc=function(a){a&1&&M(0,"iteration-chip",48);a&2&&(a=P(2).$implicit,I("iteration",a.iteration))},ujc=function(a){a&1&&(K(0,"div",49),T(1,"futureAvailability"),
M(2,"mat-icon",54),L());a&2&&(a=P(2).$implicit,I("matTooltip",U(1,1,a.futureAvailability)))},vjc=function(a){a&1&&(K(0,"div",50),Q(1),T(2,"number"),L());a&2&&(a=P(2).$implicit,B(),S(" <",Lg(2,1,a.reviewEstimate.seconds/60,"1.0-0"),"m "))},wjc=function(a){a&1&&M(0,"b-issue-priority-display",51);a&2&&(a=P(2).$implicit,I("issuePriority",a.priority))},yjc=function(a){if(a&1){var b=t();K(0,"div",44);F(1,rjc,1,1,"b-issue-visibility-chip",46);F(2,sjc,1,1,"okr-chip",47);F(3,tjc,1,1,"iteration-chip",48);F(4,
ujc,3,3,"div",49);F(5,vjc,3,4,"div",50);F(6,wjc,1,1,"b-issue-priority-display",51);K(7,"a",52);N("auxclick",function(){u(b);var d=P().$implicit,e=P(2),f=P(2);return v(f.sendClickAnalytics(d,e.slice(0,f.numDisplayedRows)))});Q(8);L();K(9,"onedev-dma-chip",53);N("onChipClicked",function(){u(b);var d=P(5);return v(d.sendDmaAnalytics())});L()()}if(a&2){a=P().$implicit;var c=P(4);B();G(a.type===c.TaskResourceType.ISSUE?1:-1);B();G(a.okrIds&&a.okrIds.length>0?2:-1);B();G(a.iteration?3:-1);B();G(c.hasFutureAvailability(a)?
4:-1);B();G(a.reviewEstimate&&a.reviewEstimate.seconds>=60?5:-1);B();G(a.priority?6:-1);B();I("href",xjc(a),Ne);If("target",a.type!==c.TaskResourceType.ISSUE?"_blank":null);B();S(" ",a.description," ");B();I("hotlistIds",a.hotlistIds)}},zjc=function(a){a&1&&(K(0,"span",45),Q(1,"No access to linked file"),L())},Ajc=function(a,b){a&1&&(K(0,"td",35),F(1,yjc,10,10,"div",44)(2,zjc,2,0,"span",45),L());a&2&&(a=b.$implicit,B(),G(a.description&&a.description!==""?1:2))},Bjc=function(a){a&1&&(K(0,"th",33),
Q(1),L());a&2&&(a=P(4),B(),yg(a.selection.hasValue()?"":"Most recent alert"))},Cjc=function(a){if(a&1){var b=t();K(0,"div")(1,"stale-task-indicator",55);N("click",function(){u(b);P();P(4).analytics.trackEvent("missionControl","click","stalenessChip-{{row.type}}");return v()});L()()}a&2&&(a=P().$implicit,B(),I("taskId",a.id)("lastAlertTimestamp",a.lastAlertTimestamp))},Djc=function(a){a&1&&M(0,"b-formatted-date-time",56);a&2&&(a=P(2).$implicit,I("timestamp",a.lastAlertTimestamp)("paddingLeftPx",6))},
Ejc=function(a){a&1&&F(0,Djc,1,2,"b-formatted-date-time",56);a&2&&(a=P().$implicit,G(a.lastAlertTimestamp?0:-1))},Fjc=function(a,b){a&1&&(K(0,"td",35),F(1,Cjc,2,2,"div")(2,Ejc,1,1),L());a&2&&(a=b.$implicit,b=P(4),B(),G(b.enableStaleTasks&&a.isStaleTask?1:2))},Gjc=function(a){a&1&&(K(0,"th",33),Q(1),L());a&2&&(a=P(4),B(),S(" ",a.selection.hasValue()?"":"Alert"," "))},Hjc=function(a,b){a&1&&(K(0,"td",35),M(1,"needs-attention-signals-cell",57),L());a&2&&(a=b.$implicit,B(),I("issueId",a.issueId)("signals",
a.signals)("tailwindRunStatus",a.tailwindRunStatus))},Ijc=function(a){a&1&&(K(0,"th",33),Q(1),L());a&2&&(a=P(4),B(),yg(a.selection.hasValue()?"":"Action"))},Jjc=function(a){a&1&&(K(0,"a",58),Q(1),L());if(a&2){a=P().$implicit;var b=P(4);I("href",xjc(a),Ne);If("target",a.type!==b.TaskResourceType.ISSUE?"_blank":null)("aria-label",a.action+(a.type!==b.TaskResourceType.ISSUE?", opens in new tab":""));B();S(" ",a.action," ")}},Kjc=function(a){a&1&&(K(0,"a",58),Q(1),L());if(a&2){a=P().$implicit;var b=P(4),
c=b.SIGNAL_TO_ACTION_TEXT.get(b.getHighestPrioritySignal(a.signals).type);I("href",xjc(a),Ne);If("target",a.type!==b.TaskResourceType.ISSUE?"_blank":null)("aria-label",c+(a.type!==b.TaskResourceType.ISSUE?", opens in new tab":""));B();S(" ",c," ")}},Ljc=function(a,b){a&1&&(K(0,"td",35),F(1,Jjc,2,4,"a",58)(2,Kjc,2,4,"a",58),L());a&2&&(a=b.$implicit,b=P(4),B(),G(b.enableTailwindMissionControl&&a.action?1:2))},Mjc=function(a){a&1&&(K(0,"th",59),Q(1),L());a&2&&(a=P(4),B(),yg(a.selection.hasValue()?"":
a.signalStatusFilter$.getValue()!==a.SignalStatus.SNOOZED?"Options":"Snooze Until"))},Ojc=function(a){a&1&&(K(0,"span",60),Q(1),L());a&2&&(a=P().$implicit,P(4),B(),S("",Njc(a)," "))},Pjc=function(a,b){if(a&1){var c=t();K(0,"td",35);F(1,Ojc,2,1,"span",60);K(2,"div",61)(3,"button",62);N("click",function(k){var l=u(c).$implicit,r=P(4);k.preventDefault();return v(r.copyIdOrLink(l))});M(4,"mat-icon",63);L();Zf(5);T(6,"async");K(7,"button",64);N("click",function(k){var l=u(c).$implicit,r=P(4);k.preventDefault();
return v(r.dismissAlert(l))});M(8,"mat-icon",65);L();Zf(9);T(10,"async");K(11,"button",66,3);N("click",function(k){u(c);return v(k.preventDefault())});M(13,"mat-icon",67);L();K(14,"snooze-menu",42,2);N("snooze",function(k){var l=u(c).$implicit,r=P(4);ljc(r,[l.id],k);return v()})("unsnooze",function(){var k=u(c).$implicit,l=P(4);ljc(l,[k.id]);return v()});L()()()}if(a&2){var d=b.$implicit;a=qg(12);b=qg(15);var e=P(4);B();G(e.signalStatusFilter$.getValue()===e.SignalStatus.SNOOZED?1:-1);B(2);I("matTooltip",
d.type===e.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard");If("aria-label",d.type===e.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard");var f;d=(f=U(6,10,e.dismissButtonTooltip$))!=null?f:"";B(4);I("ariaLabel",d)("matTooltip",d);var g;f=(g=U(10,12,e.snoozeButtonTooltip$))!=null?g:"";B(4);I("ariaLabel",f)("matTooltip",f)("matMenuTriggerFor",b.menu);B(3);I("isSnoozed",e.signalStatusFilter$.getValue()===e.SignalStatus.SNOOZED)("datePickerAnchor",a)}},Qjc=
function(a){a&1&&M(0,"tr",68)},Rjc=function(a){if(a&1){var b=t();K(0,"tr",69);N("click",function(c){var d=u(b).$implicit,e=P(2),f=P(2);return v(f.navigateToResource(c,d,e.slice(0,f.numDisplayedRows)))});L()}},Sjc=function(a){a&1&&(K(0,"tr",70)(1,"td",71),Q(2," No alerts found "),L()())},Tjc=function(a){a&1&&M(0,"mat-icon",73)},Ujc=function(a){a&1&&M(0,"mat-icon",74)},Vjc=function(a){if(a&1){var b=t();K(0,"button",72);N("click",function(){u(b);var d=P(2),e=P(2);return v(e.setNumDisplayedRows(d))});
Q(1);F(2,Tjc,1,0,"mat-icon",73);F(3,Ujc,1,0,"mat-icon",74);L()}if(a&2){a=P(2);var c=P(2);B();S(" ",a.length>c.numDisplayedRows?"Show more":"Show less"," ");B();G(a.length>c.numDisplayedRows?2:-1);B();G(a.length===c.numDisplayedRows?3:-1)}},Wjc=function(a){a&1&&(K(0,"table",18),Tf(1,19),E(2,ejc,2,2,"th",20)(3,fjc,2,1,"td",21),Uf(),Tf(4,22),E(5,gjc,2,1,"th",20)(6,hjc,2,6,"td",21),Uf(),Tf(7,23),E(8,qjc,5,3,"th",20)(9,Ajc,3,1,"td",21),Uf(),Tf(10,24),E(11,Bjc,2,1,"th",20)(12,Fjc,3,1,"td",21),Uf(),Tf(13,
25),E(14,Gjc,2,1,"th",20)(15,Hjc,2,3,"td",21),Uf(),Tf(16,26),E(17,Ijc,2,1,"th",20)(18,Ljc,3,1,"td",21),Uf(),Tf(19,27),E(20,Mjc,2,1,"th",28)(21,Pjc,16,14,"td",21),Uf(),E(22,Qjc,1,0,"tr",29)(23,Rjc,1,0,"tr",30)(24,Sjc,3,0,"tr",31),L(),F(25,Vjc,4,3,"button",32));if(a&2){a=P();var b=P(2);I("dataSource",a.slice(0,b.numDisplayedRows));B(22);I("matHeaderRowDef",b.displayedColumns);B();I("matRowDefColumns",b.displayedColumns);B(2);G(a.length>b.DEFAULT_NUM_ROWS_DISPLAYED?25:-1)}},Xjc=function(a,b){a&1&&(F(0,
djc,2,0,"p",17),F(1,Wjc,26,4));a&2&&(G(b.length===0?0:-1),B(),G(b.length>0?1:-1))},Yjc=function(a){a&1&&(F(0,Xjc,2,2),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.allNeedsAttention$))?0:-1,b)}},Zjc=function(a){a&1&&(K(0,"div",9),M(1,"b-spinner",75),L());a&2&&(B(),I("ariaLabel","loading needs attention alerts"))},$jc=function(a,b){var c=a.signals.map(function(d){return d.type});a=b.flatMap(function(d){return d.signals.map(function(e){return e.type})});a=tq(a).filter(function(d){return!c.includes(d)}).sort();
return[c.join(","),a.join(",")]},akc=function(a){return a.reduce(function(b,c){c.iterations!==void 0&&c.iterations.length>0&&b.set(c.workItemId,c.iterations[0]);return b},new Map)},bkc=function(a){return a.reduce(function(b,c){c.okrIds!==void 0&&c.okrIds.length>0&&b.set(c.workItemId,c.okrIds);return b},new Map)},ckc=function(a){return a.filter(function(b){return b.task&&b.task.taskResourceType==="ISSUE"}).map(function(b){var c;return(c=b.task)==null?void 0:c.taskId}).filter(Pm)},dkc=function(a,b){return a.issueId&&
a.type==="ISSUE"&&b.has(a.issueId)&&a.signals.some(function(c){return c.type==="ISSUE_SNOOZE_EXPIRED"})},ekc=function(a,b){a&1&&(K(0,"div",6)(1,"span",8),Q(2),L()());a&2&&(B(2),yg(b))},fkc=function(a){a&1&&(K(0,"div",7),M(1,"b-needs-attention-table",9),L());a&2&&(a=P(),B(),I("refreshTable",a.refreshData))},gkc=function(a,b){a&1&&(K(0,"mat-chip-option",1)(1,"span",2),Q(2),L()());if(a&2){a=P().$implicit;var c=P();I("value",a)("selected",c.selectedSources.includes(a));B();I("matTooltip",b.tooltipText);
B();S(" ",b.displayName," ")}},hkc=function(a,b){a&1&&F(0,gkc,3,4,"mat-chip-option",1);if(a&2){var c;a=b.$implicit;b=P();G((c=b.DEFINITIONS[a])?0:-1,c)}},ikc=function(a,b){return{label:"Viewed",description:"Issues you recently viewed",issues:a.watchMany({custom:"viewed",pageSize:50}).pipe(A(function(c){c=c.results;return b?c.filter(function(d){return d.trackerId===b}):c})),loading:!1}},jkc=function(a){return a.includes("WTDM")&&!a.includes("NON_WTDM")?"WTDM_TYPES":a.includes("NON_WTDM")&&!a.includes("WTDM")?
"STANDARD_TYPES":"ISSUE_TYPE_GROUPS_UNSPECIFIED"},kkc=function(a){a&1&&(K(0,"label",11),Q(1),L());a&2&&(a=P().$implicit,I("matTooltip",a.description),B(),yg(a.label))},lkc=function(a,b){if(a&1){var c=t();K(0,"source-filter-chips",14);N("change",function(d){u(c);var e=P(5).prefsService;d=d.map(dEb);e.prefs.myTasksSources=d;Jt(e,{myTasksSources:d,isMyTasksSourcesConfigured:!0});return v()});L()}a&2&&(a=P(5),I("sourceFilterKeys",a.MY_TASK_FILTERS)("selectedSources",b))},mkc=function(a){a&1&&(K(0,"span",
2),Q(1,"Sources"),L(),F(2,lkc,1,2,"source-filter-chips",13),T(3,"async"));if(a&2){var b;a=P(4);B(2);G((b=U(3,1,a.sources$))?2:-1,b)}},nkc=function(a,b){if(a&1){var c=t();K(0,"time-boundary-filter",15);N("change",function(d){u(c);var e=P(4).prefsService;e.prefs.myTasksDaysOld=d;Jt(e,{myTasksDaysOld:d});return v()});L()}a&2&&I("selectedTimeBoundary",b)},okc=function(a){a&1&&(K(0,"div",9),F(1,mkc,4,3),F(2,nkc,1,1,"time-boundary-filter",12),T(3,"async"),L());if(a&2){var b;a=P(3);B();G(a.isInternalSession?
1:-1);B();G((b=U(3,2,a.timeBoundary$))?2:-1,b)}},pkc=function(a,b){a&1&&M(0,"b-issues-table",16);a&2&&(a=P(4),I("issueIds",a.getIds(b))("tableColumns",a.tableColumns)("options",a.tableOptions))},qkc=function(a,b){a&1&&(K(0,"p",18),Q(1),L());a&2&&(B(),S(" ",b.length===0?"Enable source filters to see tasks":"No tasks"," "))},rkc=function(a){a&1&&(F(0,qkc,2,1,"p",18),T(1,"async"));if(a&2){var b;a=P(5);G((b=U(1,1,a.sources$))?0:-1,b)}},skc=function(a){a&1&&(K(0,"th",36),Q(1,"Source"),L())},tkc=function(a,
b){a&1&&(K(0,"td",37),M(1,"mat-icon",38),L());a&2&&(a=b.$implicit,b=P(6),B(),xg(Eg("product-icon ",b.taskResourceTypeToIcon(a))),I("matTooltip",a.taskResourceType)("svgIcon",b.taskResourceTypeToIcon(a)))},ukc=function(a){a&1&&(K(0,"th",36),Q(1,"Description"),L())},vkc=function(a){a&1&&M(0,"b-issue-visibility-chip",40);a&2&&(a=P(2).$implicit,I("issueId",a.issueId)("compactMode",!0))},wkc=function(a){a&1&&M(0,"b-issue-priority-display",41);a&2&&(a=P(2).$implicit,I("issuePriority",a.issueResource.priority))},
xkc=function(a){if(a&1){var b=t();K(0,"onedev-dma-chip",44);N("onChipClicked",function(){u(b);var c=P(8);return v(c.sendDmaAnalytics())});L()}a&2&&(a=P(2).$implicit,I("hotlistIds",a.issueResource.hotlistIds))},zkc=function(a){if(a&1){var b=t();F(0,vkc,1,2,"b-issue-visibility-chip",40);F(1,wkc,1,1,"b-issue-priority-display",41);K(2,"a",42);N("auxclick",function(){u(b);var d=P().$implicit,e=P(6);return v(e.sendClickAnalytics(d))});Q(3);L();F(4,xkc,1,1,"onedev-dma-chip",43)}if(a&2){a=P().$implicit;var c=
P(6);G(a.issueId?0:-1);B();G(a.issueResource&&a.issueResource.priority&&ykc(a.issueResource.priority)?1:-1);B();I("href",a.taskResourceType===c.TaskResourceType.ISSUE?"/issues/"+c.extractLastDigits(a.taskId):a.externalLink,Ne);If("target",a.taskResourceType!==c.TaskResourceType.ISSUE?"_blank":null);B();yg(a.title);B();G(a.issueResource&&a.issueResource.hotlistIds?4:-1)}},Akc=function(a){a&1&&(K(0,"span",39),Q(1,"No access to linked file"),L())},Bkc=function(a,b){a&1&&(K(0,"td",37),F(1,zkc,5,6)(2,
Akc,2,0,"span",39),L());a&2&&(a=b.$implicit,B(),G(a.title&&a.title!==""?1:2))},Ckc=function(a){a&1&&(K(0,"th",36),Q(1,"Last modified"),L())},Dkc=function(a){a&1&&M(0,"b-formatted-date-time",45);a&2&&(a=P().$implicit,I("timestamp",a.lastModifiedTimestamp)("paddingLeftPx",0))},Ekc=function(a,b){a&1&&(K(0,"td",37),F(1,Dkc,1,2,"b-formatted-date-time",45),L());a&2&&(a=b.$implicit,B(),G(a.lastModifiedTimestamp?1:-1))},Fkc=function(a){a&1&&(K(0,"th",36),Q(1,"My role"),L())},Gkc=function(a,b){a&1&&(K(0,"td",
37),Q(1),L());a&2&&(a=b.$implicit,B(),yg(a.resourceRelationships[0].roleName))},Hkc=function(a){a&1&&(K(0,"th",36),Q(1,"Creation date"),L())},Ikc=function(a){a&1&&M(0,"b-formatted-date-time",45);a&2&&(a=P().$implicit,I("timestamp",a.createdTimestamp)("paddingLeftPx",0))},Jkc=function(a){a&1&&Q(0," -- ")},Kkc=function(a,b){a&1&&(K(0,"td",37),F(1,Ikc,1,2,"b-formatted-date-time",45)(2,Jkc,1,0),L());a&2&&(a=b.$implicit,B(),G(a.createdTimestamp?1:2))},Lkc=function(a){a&1&&(K(0,"th",46),Q(1," Options "),
L())},Nkc=function(a,b){if(a&1){var c=t();K(0,"td",47)(1,"div",48)(2,"button",49);N("click",function(d){var e=u(c).$implicit,f=P(6);d.preventDefault();return v(Mkc(f,e))});M(3,"mat-icon",50);L();K(4,"button",51);N("click",function(d){var e=u(c).$implicit,f=P(6);d.preventDefault();return v(f.copyIdOrLink(e))});M(5,"mat-icon",52);L()()()}a&2&&(a=b.$implicit,b=P(6),B(2),I("disabled",b.isSavingManualSignal)("matTooltip","Trigger a needs attention alert on this task"),B(2),I("matTooltip",a.taskResourceType===
b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard"),If("aria-label",a.taskResourceType===b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard"))},Okc=function(a){a&1&&M(0,"tr",53)},Pkc=function(a){if(a&1){var b=t();K(0,"tr",54);N("click",function(c){var d=u(b).$implicit,e=P(6);return v(e.navigateToResource(c,d))});L()}},Qkc=function(a){a&1&&M(0,"mat-icon",58)},Rkc=function(a){a&1&&M(0,"mat-icon",59)},Skc=function(a){if(a&1){var b=t();K(0,"button",57);N("click",
function(){u(b);var d=P(3),e=P(4);return v(e.setNumDisplayedRows(d))});Q(1);F(2,Qkc,1,0,"mat-icon",58);F(3,Rkc,1,0,"mat-icon",59);L()}if(a&2){a=P(3);var c=P(4);B();S(" ",a.length>c.numDisplayedRows?"Show more":"Show less"," ");B();G(a.length>c.numDisplayedRows?2:-1);B();G(a.length===c.numDisplayedRows?3:-1)}},Tkc=function(a){a&1&&(K(0,"td",55),F(1,Skc,4,3,"button",56),L());if(a&2){a=P(2);var b=P(4);B();G(a.length>b.DEFAULT_NUM_ROWS_DISPLAYED?1:-1)}},Ukc=function(a){a&1&&M(0,"tr",60);if(a&2){a=P(2);
var b=P(4);I("hidden",!(a.length>b.DEFAULT_NUM_ROWS_DISPLAYED))}},Vkc=function(a,b){a&1&&(K(0,"td",62),Q(1),L());a&2&&(B(),S(" ",b.length===0?"Enable source filters to see tasks":"No tasks found"," "))},Wkc=function(a){a&1&&(K(0,"tr",61),F(1,Vkc,2,1,"td",62),T(2,"async"),L());if(a&2){var b;a=P(6);B();G((b=U(2,1,a.sources$))?1:-1,b)}},Zkc=function(a){a&1&&(K(0,"table",19),Tf(1,20),E(2,skc,2,0,"th",21)(3,tkc,2,5,"td",22),Uf(),Tf(4,23),E(5,ukc,2,0,"th",21)(6,Bkc,3,1,"td",22),Uf(),Tf(7,24),E(8,Ckc,2,
0,"th",21)(9,Ekc,2,1,"td",22),Uf(),Tf(10,25),E(11,Fkc,2,0,"th",21)(12,Gkc,2,1,"td",22),Uf(),Tf(13,26),E(14,Hkc,2,0,"th",21)(15,Kkc,3,1,"td",22),Uf(),Tf(16,27),E(17,Lkc,2,0,"th",28)(18,Nkc,6,4,"td",29),Uf(),E(19,Okc,1,0,"tr",30)(20,Pkc,1,0,"tr",31),Tf(21,32),E(22,Tkc,2,1,"td",33),Uf(),E(23,Ukc,1,1,"tr",34)(24,Wkc,3,3,"tr",35),L());if(a&2){a=P();var b=P(2).$implicit,c=P(2);xg(Eg("table-",b.label));I("dataSource",a.slice(0,c.numDisplayedRows)||Hg(7,Xkc));B(19);I("matHeaderRowDef",c.displayColumns);B();
I("matRowDefColumns",c.displayColumns);B(3);I("matFooterRowDef",Hg(8,Ykc))}},$kc=function(a,b){a&1&&(F(0,rkc,2,3),F(1,Zkc,25,9,"table",17));a&2&&(G(b.length===0?0:-1),B(),G(b.length>0?1:-1))},alc=function(a){a&1&&(F(0,pkc,1,3,"b-issues-table",16),T(1,"async"),F(2,$kc,2,2),T(3,"async"));if(a&2){var b,c;a=P().$implicit;G((b=U(1,2,a.issues))?0:-1,b);B(2);G((c=U(3,4,a.liteTasks))?2:-1,c)}},blc=function(a){a&1&&(K(0,"div",10),M(1,"b-spinner",63),L());a&2&&(B(),I("ariaLabel","loading tasks"))},clc=function(a,
b){a&1&&(K(0,"mat-tab"),E(1,kkc,2,2,"ng-template",8),F(2,okc,4,4,"div",9),F(3,alc,4,6)(4,blc,2,1,"div",10),L());a&2&&(a=b.$implicit,B(2),G(a.liteTasks?2:-1),B(),G(a.loading?4:3))},dlc=function(a){if(a&1){var b=t();K(0,"div",6)(1,"mat-tab-group",7);N("selectedIndexChange",function(c){u(b);var d=P();return v(d.onTabIndexChange(c))});Nf(2,clc,5,2,"mat-tab",null,Mf);L()()}a&2&&(a=P(),B(),I("selectedIndex",a.INITIAL_TAB_INDEX),B(),Of(a.tabData))},elc=function(a,b){return a.lastModifiedTimestamp?b.lastModifiedTimestamp?
$n(b.lastModifiedTimestamp)-$n(a.lastModifiedTimestamp):1:-1},glc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"button",9);N("click",function(){u(b);var c=P();flc(c.userFeedback);return v()});Q(2,"Give feedback");L()()}},hlc=function(a,b){a&1&&(K(0,"mat-option",2),Q(1),L());a&2&&(a=b.$implicit,I("value",a.id),B(),S(" ",a.displayName," "))},ilc=function(a,b){return a.gmt===b.gmt?a.id>b.id?1:-1:a.gmt>b.gmt?1:-1},jlc=function(a,b){a&1&&(K(0,"mat-option",2),Q(1),L());a&2&&(a=b.$implicit,I("value",a.frequency),
B(),S(" ",a.display," "))},klc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"mat-form-field",0)(2,"mat-label");Q(3," Frequency ");L();K(4,"mat-select",1);N("ngModelChange",function(d){u(c);var e=P();return v(e.frequency$.next(d))});Nf(5,jlc,2,2,"mat-option",2,Mf);L()()()}a&2&&(a=P(),B(4),I("ngModel",b),B(),Of(a.frequencyOptions))},llc=function(a,b){a&1&&(K(0,"mat-option",2),Q(1),L());a&2&&(a=b.$implicit,I("value",a.ordinal),B(),S(" ",a.display," "))},mlc=function(a,b){if(a&1){var c=t();K(0,"div")(1,
"mat-form-field",0)(2,"mat-label");Q(3," Repeat on ");L();K(4,"mat-select",1);N("ngModelChange",function(d){u(c);var e=P();return v(e.ordinal$.next(d))});Nf(5,llc,2,2,"mat-option",2,Mf);L()()()}a&2&&(a=P(),B(4),I("ngModel",b),B(),Of(a.repeatOnOptions.get(a.frequency$.value)))},nlc=function(a,b){a&1&&(K(0,"mat-option",2),Q(1),L());a&2&&(a=b.$implicit,I("value",a.timeOfDay),B(),S(" ~",a.display," "))},olc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"mat-form-field",0)(2,"mat-label");Q(3," Repeat at ");
L();K(4,"mat-select",3);N("ngModelChange",function(d){u(c);var e=P();return v(e.timeOfDay$.next(d))});Nf(5,nlc,2,2,"mat-option",2,Mf);L()()()}a&2&&(a=P(),B(4),I("ngModel",b)("compareWith",a.compareTimeOfDay),B(),Of(a.repeatAtOptions))},plc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"b-timezone-picker",4);N("timezoneIdChange",function(d){u(c);var e=P();return v(e.timeZoneId$.next(d))});L()()}a&2&&(B(),I("timezoneId",b)("fullWidth",!0))},qlc=function(a,b){return a.hours===b.hours&&a.minutes===b.minutes&&
a.seconds===b.seconds&&a.nanos===b.nanos},rlc=function(a){a&1&&Vf(0)},slc=function(a){a&1&&(K(0,"th",17),Q(1,"Name"),L())},tlc=function(a,b){a&1&&(K(0,"td",18),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.displayName," "))},ulc=function(a){a&1&&(K(0,"th",17),Q(1,"Status"),L())},vlc=function(a){a&1&&M(0,"mat-icon",19);a&2&&(a=P(3),I("matTooltip",a.warningTooltipText))},wlc=function(a,b){a&1&&(K(0,"td",18),F(1,vlc,1,1,"mat-icon",19),L());a&2&&(a=b.$implicit,B(),G(a.isOverflowing?1:-1))},xlc=function(a){a&
1&&(K(0,"th",17),Q(1,"Actions"),L())},ylc=function(a,b){if(a&1){var c=t();K(0,"td",18)(1,"button",20);M(2,"mat-icon",21);L();K(3,"mat-menu",null,2)(5,"a",22);Q(6," Search issues with query ");L();M(7,"mat-divider");K(8,"button",23);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.openDialog(d))});Q(9," Edit subscription ");L();K(10,"button",24);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.openConfirmDeleteDialog(d))});Q(11," Delete subscription ");L()()()}a&2&&(a=b.$implicit,
b=qg(4),P(2),B(),I("matMenuTriggerFor",b),B(4),I("routerLinkObj",{path:"/issues",queryParams:{q:a.query,s:"modified_time:desc"}}))},zlc=function(a){a&1&&M(0,"tr",25)},Alc=function(a,b){a&1&&M(0,"tr",26);a&2&&(a=b.$implicit,If("aria-label","Subscription "+a.id+": "+a.displayName))},Blc=function(a){a&1&&(K(0,"div",8)(1,"table",9),Tf(2,10),E(3,slc,2,0,"th",11)(4,tlc,2,1,"td",12),Uf(),Tf(5,13),E(6,ulc,2,0,"th",11)(7,wlc,2,1,"td",12),Uf(),Tf(8,14),E(9,xlc,2,0,"th",11)(10,ylc,12,2,"td",12),Uf(),E(11,zlc,
1,0,"tr",15)(12,Alc,1,1,"tr",16),L()());a&2&&(a=P(),B(),I("dataSource",a.ownedSubscriptions$),B(10),I("matHeaderRowDef",a.columnsToDisplay),B(),I("matRowDefColumns",a.columnsToDisplay))},Clc=function(a){a&1&&Q(0," Add configurable alert ")},Dlc=function(a){a&1&&Q(0," Update configurable alert ")},Elc=function(a){a&1&&Q(0," Create a new configurable alert. ")},Flc=function(a){a&1&&Q(0," Update a configurable alert. ")},Glc=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" Subscription ID: ",a.id," "))},
Hlc=function(a){a&1&&M(0,"b-spinner")},Ilc=function(a,b){if(a&1){var c=t();K(0,"h1",27);F(1,Clc,1,0)(2,Dlc,1,0);L();K(3,"mat-dialog-content")(4,"p",28);F(5,Elc,1,0)(6,Flc,1,0);L();K(7,"mat-form-field",29)(8,"mat-label");Q(9,"Name");L();K(10,"input",30);Cg("ngModelChange",function(d){var e=u(c).$implicit;Bg(e.displayName,d)||(e.displayName=d);return v(d)});L()();K(11,"mat-form-field",29)(12,"mat-label");Q(13,"Search query");L();K(14,"input",31);Cg("ngModelChange",function(d){var e=u(c).$implicit;Bg(e.query,
d)||(e.query=d);return v(d)});L()();K(15,"b-delivery-frequency-subform",32);N("frequencyChange",function(d){var e=u(c).$implicit,f=P();return v(f.setFrequency(e,d))});Cg("ordinalChange",function(d){var e=u(c).$implicit;Bg(e.ordinal,d)||(e.ordinal=d);return v(d)})("timeOfDayChange",function(d){var e=u(c).$implicit;Bg(e.timeOfDay,d)||(e.timeOfDay=d);return v(d)})("timeZoneIdChange",function(d){var e=u(c).$implicit;Bg(e.timeZone.id,d)||(e.timeZone.id=d);return v(d)});L();K(16,"div",29)(17,"mat-slide-toggle",
33);N("change",function(d){var e=u(c).$implicit;return v(e.sendEmail=d.checked)});Q(18," Send email when newly matching issues are found. ");L()();K(19,"div",34)(20,"span",35);F(21,Glc,1,1);L();F(22,Hlc,1,0,"b-spinner");T(23,"async");L()();K(24,"mat-dialog-actions")(25,"button",36);Q(26,"Cancel");L();K(27,"button",7);N("click",function(){var d=u(c).$implicit,e=P();return v(e.save(d))});Q(28);L()()}a&2&&(a=b.$implicit,b=P(),B(),G(a.id==="0"?1:2),B(4),G(a.id==="0"?5:6),B(5),Ag("ngModel",a.displayName),
B(4),Ag("ngModel",a.query),B(),I("frequency",a.frequency),Ag("ordinal",a.ordinal)("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id),B(2),I("checked",a.sendEmail),B(4),G(a.id!=="0"?21:-1),B(),G(U(23,12,b.isSaving$)?22:-1),B(6),S(" ",a.id==="0"?"Add":"Update"," "))},Jlc=function(a){a&1&&(K(0,"mat-option",21),Q(1),L());a&2&&(a=P().$implicit,I("value",a),B(),S(" ",a.name," "))},Klc=function(a,b){a&1&&F(0,Jlc,2,2,"mat-option",21);a&2&&G(b.$implicit.shouldDisplay()?0:-1)},Llc=function(a,b){a&1&&(K(0,
"mat-option",23),Q(1),L());a&2&&(a=b.$implicit,I("value",a.id),B(),S(" ",a.name," "))},Nlc=function(a){if(a&1){var b=t();K(0,"mat-form-field",5)(1,"mat-select",22);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.preferredHomepage.selectedOptionId,c)||(d.preferredHomepage.selectedOptionId=c);return v(c)});N("selectionChange",function(){u(b);var c=P();return v(Mlc(c.preferredHomepage))});Nf(2,Llc,2,2,"mat-option",23,Mf);L()()}a&2&&(a=P(),B(),Ag("ngModel",a.preferredHomepage.selectedOptionId),B(),
Of(a.preferredHomepage.selectedMainOption.options))},Olc=function(a,b){a&1&&(K(0,"mat-option",13),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),S(" ",a.label," "))},Plc=function(a,b){a&1&&(K(0,"mat-option",13),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),S(" ",a.label," "))},Qlc=function(a,b){a&1&&(K(0,"mat-option",13),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),S(" ",a.label," "))},Rlc=function(a){if(a&1){var b=t();K(0,"div",19)(1,"mat-slide-toggle",24);N("change",function(c){u(b);
var d=P();c=c.checked;d.userPreferences.showInlineImages=c;d.save("showInlineImages",c.toString());return v()});Q(2," Show trusted images (e.g. SnipIt screenshots) inline in comments ");L()()}a&2&&(a=P(),B(),I("checked",a.getShowInlineImages()))},Ulc=function(a){if(a&1){var b=t();M(0,"hr",9);K(1,"div",0)(2,"div",1)(3,"p",2);Q(4,"Comment formatting settings");L()();K(5,"div")(6,"div",19)(7,"mat-slide-toggle",25);N("change",function(c){u(b);var d=P();d.userPreferences.commentFormattingPreferences&&
(d.userPreferences.commentFormattingPreferences.commentDisplayOverride=c.checked?"LITERAL_FORMATTING_MODE":void 0,d.save("saveCommentFormattingPreferences.commentDisplayOverride"));return v()});Q(8," Force comments to display as plain text ");L()();K(9,"div",19)(10,"mat-slide-toggle",26);N("change",function(c){u(b);var d=P();d.userPreferences.commentFormattingPreferences&&(d.userPreferences.commentFormattingPreferences.commentCreateOverride=c.checked?"LITERAL_FORMATTING_MODE":void 0,d.save("saveCommentFormattingPreferences.commentCreateOverride"));
return v()});Q(11," Force comments to be created as plain text ");L()()()()}a&2&&(a=P(),B(7),I("checked",Slc(a)),B(3),I("checked",Tlc(a)))},Vlc=function(a){if(a&1){var b=t();K(0,"div",0)(1,"div",1)(2,"p",2);Q(3,"Other");L()();K(4,"div")(5,"div")(6,"mat-slide-toggle",27);N("change",function(c){u(b);var d=P();d.userPreferences.bugScreensaverPreferences.enableBugScreensaver=c.checked;return v(d.save("saveBugScreensaverPreferences"))});Q(7," Enable bug screensaver ");L()()()()}a&2&&(a=P(),B(6),I("checked",
a.userPreferences.bugScreensaverPreferences.enableBugScreensaver))},Wlc=function(a,b){a&1&&(K(0,"mat-option",8),Q(1),T(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",U(2,2,a)," "))},Xlc=function(a,b){a&1&&(K(0,"mat-option",8),Q(1),T(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",U(2,2,a)," "))},Ylc=function(a,b){a&1&&(K(0,"mat-option",8),Q(1),T(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",U(2,2,a)," "))},Zlc=function(a,
b){a&1&&(K(0,"mat-option",8),Q(1),T(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",U(2,2,a)," "))},$lc=function(a,b){a&1&&(K(0,"mat-option",8),Q(1),T(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",U(2,2,a)," "))},amc=function(a,b){a&1&&(K(0,"mat-option",8),Q(1),T(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",U(2,2,a)," "))},bmc=function(a){a&1&&M(0,"b-spinner")},cmc=function(a){a&1&&(K(0,"mat-hint"),Q(1,"This field is read-only"),
L())},dmc=function(a,b){a&1&&(K(0,"mat-option",21),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),yg(a.displayText))},fmc=function(a,b){if(a&1){var c=t();K(0,"div",24)(1,"a",26);Q(2);L();K(3,"button",27);N("click",function(){var d=u(c).$implicit,e=P(2),f=P(2);return v(emc(f,e,d))});M(4,"mat-icon",28);L()()}a&2&&(a=b.$implicit,B(),I("href","/slos/"+a,Ne),B(),yg(a),B(),I("matTooltip","Remove SLO ID "+a))},gmc=function(a){a&1&&(K(0,"div",25),Q(1),L());a&2&&(a=P(2),B(),S(" Subscription ID: ",a.id,
" "))},imc=function(a){if(a&1){var b=t();K(0,"b-delivery-frequency-subform",17);N("frequencyChange",function(e){u(b);var f=P(),g=P(2);return v(g.setFrequency(e,f))})("ordinalChange",function(e){u(b);var f=P(),g=P(2);tu(g,Object.assign({},f,{ordinal:e}));return v()})("timeOfDayChange",function(e){u(b);var f=P(),g=P(2);tu(g,Object.assign({},f,{timeOfDay:e}));return v()})("timeZoneIdChange",function(e){u(b);var f=P(),g=P(2);return v(g.setTimeZone(e,f))});L();K(1,"div")(2,"mat-form-field",18)(3,"mat-label");
Q(4,"Days remaining");L();K(5,"input",19);Cg("ngModelChange",function(e){u(b);var f=P(3);Bg(f.inputDaysRemaining,e)||(f.inputDaysRemaining=e);return v(e)});N("blur",function(){u(b);var e=P(),f=P(2);return v(f.setDaysRemaining(e))})("keydown.enter",function(){u(b);var e=P(),f=P(2);return v(f.setDaysRemaining(e))});L()()();K(6,"div")(7,"mat-form-field",18)(8,"mat-label");Q(9,"Types");L();K(10,"mat-select",20);N("ngModelChange",function(e){u(b);var f=P(),g=P(2);return v(g.setIssueType(e,f))});Nf(11,
dmc,2,2,"mat-option",21,Mf);L()()();K(13,"div",8)(14,"mat-form-field",22)(15,"mat-label");Q(16,"Add SLO ID");L();K(17,"input",23);Cg("ngModelChange",function(e){u(b);var f=P(3);Bg(f.newSloId,e)||(f.newSloId=e);return v(e)});N("keydown.enter",function(){u(b);var e=P(),f=P(2);return v(hmc(f,e))})("blur",function(){u(b);var e=P(),f=P(2);return v(hmc(f,e))});L()();Nf(18,fmc,5,3,"div",24,Mf);L();F(20,gmc,2,1,"div",25)}if(a&2){a=P();var c=P(2),d;I("frequency",a.frequency)("ordinal",(d=a.ordinal)!=null?
d:0)("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id);B(5);Ag("ngModel",c.inputDaysRemaining);B(5);I("ngModel",a.types);B();Of(c.typeChoices);B(6);Ag("ngModel",c.newSloId);B();Of(a.sloIds);B(2);G(a.id?20:-1)}},kmc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"div",8)(2,"mat-slide-toggle",14);T(3,"async");N("change",function(){u(c);var d=P(2);return v(jmc(d))});Q(4," Subscribe to your own reports ");F(5,bmc,1,0,"b-spinner");T(6,"async");L()();K(7,"div")(8,"mat-form-field",15)(9,"mat-label");Q(10,
"Scope");L();K(11,"input",16);N("focus",function(){u(c);var d=P(2);return v(d.inputHasFocus=!0)})("blur",function(){u(c);var d=P(2);return v(d.inputHasFocus=!1)});L();F(12,cmc,2,0,"mat-hint");L()();F(13,imc,21,8);L()}a&2&&(a=P(2),B(2),I("disabled",U(3,6,a.isThinking$))("checked",b.id!==0),B(3),G(U(6,8,a.isThinking$)?5:-1),B(6),I("ngModel",a.currentUser.email),B(),G(a.inputHasFocus?12:-1),B(),G(b.id!==0?13:-1))},lmc=function(a){a&1&&(K(0,"div",2)(1,"div",3)(2,"p",4),Q(3,"Frequency settings"),L(),K(4,
"p",11),Q(5," Choose when to receive your own reports. "),K(6,"a",12),Q(7,"Learn more"),L()()(),F(8,kmc,14,10,"div"),T(9,"async"),L(),M(10,"hr",13));if(a&2){var b;a=P();B(8);G((b=U(9,1,a.userSubscription$))?8:-1,b)}},mmc=function(a){a&1&&M(0,"b-spinner")},nmc=function(a){a&1&&(K(0,"th",36),Q(1,"Scope"),L())},omc=function(a,b){a&1&&(K(0,"td",37),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.lead.emailAddress," "))},pmc=function(a){a&1&&(K(0,"th",36),Q(1,"Frequency"),L())},rmc=function(a,b){a&1&&(K(0,"td",
37),Q(1),T(2,"async"),T(3,"async"),L());if(a&2){var c;a=b.$implicit;b=P(2);B();var d=b.frequencyDisplayMap.get(a.frequency);if(a.ordinal)if(a.frequency==="weekly")var e="- "+qmc[a.ordinal-1].display;else if(a.frequency==="monthly"){e=a.ordinal;var f=e%10,g=e%100;e="- "+(f===1&&g!==11?String(e)+"st":f===2&&g!==12?String(e)+"nd":f===3&&g!==13?String(e)+"rd":String(e)+"th")}else e="";else e="";Zna(" ",d," ",e," - ",(c=U(2,4,b.hourOfDayDisplayMap$))==null?null:c.get(a.timeOfDay.hours)," - ",(c=U(3,6,
b.timeZoneDisplayMap$))==null?null:c.get(a.timeZone.id)," ")}},smc=function(a){a&1&&M(0,"th",36)},tmc=function(a){if(a&1){var b=t();K(0,"td",37)(1,"button",38);M(2,"mat-icon",39);L();K(3,"mat-menu",null,1)(5,"button",40);N("click",function(){var c=u(b).$implicit,d=P(2);return v(d.openDialog(c))});Q(6," Edit subscription ");L();K(7,"button",41);N("click",function(){var c=u(b).$implicit,d=P(2);return v(d.openConfirmDeleteDialog(c))});Q(8," Delete subscription ");L()()()}a&2&&(a=qg(4),B(),I("matMenuTriggerFor",
a))},umc=function(a){a&1&&M(0,"tr",42)},vmc=function(a,b){a&1&&M(0,"tr",43);a&2&&(a=b.$implicit,If("aria-label","Subscription with ID "+a.id+" and scoped to "+a.lead.emailAddress))},wmc=function(a){a&1&&(K(0,"table",10),Tf(1,29),E(2,nmc,2,0,"th",30)(3,omc,2,1,"td",31),Uf(),Tf(4,32),E(5,pmc,2,0,"th",30)(6,rmc,4,8,"td",31),Uf(),Tf(7,33),E(8,smc,1,0,"th",30)(9,tmc,9,1,"td",31),Uf(),E(10,umc,1,0,"tr",34)(11,vmc,1,1,"tr",35),L());a&2&&(a=P(),I("dataSource",a.subscriptions$),B(10),I("matHeaderRowDef",a.columns),
B(),I("matRowDefColumns",a.columns))},xmc=function(a){a&1&&(K(0,"mat-error"),Q(1,"Please select a valid, single user"),L())},ymc=function(a){a&1&&(K(0,"mat-error"),Q(1,"Report for sundar@ cannot be generated"),L())},zmc=function(a,b){a&1&&(K(0,"mat-option",21),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),yg(a.displayText))},Bmc=function(a,b){if(a&1){var c=t();K(0,"div",24)(1,"a",26);Q(2);L();K(3,"button",27);N("click",function(){var d=u(c).$implicit,e=P().$implicit;P();return v(Amc(e,d))});
M(4,"mat-icon",28);L()()}a&2&&(a=b.$implicit,B(),I("href","/slos/"+a,Ne),B(),yg(a),B(),I("matTooltip","Remove SLO ID "+a))},Cmc=function(a){a&1&&(K(0,"div",25),Q(1),L());a&2&&(a=P().$implicit,B(),S(" Subscription ID: ",a.id," "))},Fmc=function(a,b){if(a&1){var c=t();K(0,"h1",44);Q(1,"Add report subscription");L();K(2,"mat-dialog-content")(3,"p",45);Q(4," Select the user (scope) and frequency of the report you wish to receive. ");L();K(5,"div")(6,"mat-form-field",46)(7,"mat-label");Q(8,"Scope");L();
K(9,"b-peoplekit-single",47);N("emailChange",function(f){var g=u(c).$implicit,k=P();return v(g.lead=k.emailToUser(f))});L();F(10,xmc,2,0,"mat-error");F(11,ymc,2,0,"mat-error");L()();K(12,"b-delivery-frequency-subform",17);N("frequencyChange",function(f){var g=u(c).$implicit;P();g.frequency=f;f!=="daily"?g.ordinal=1:delete g.ordinal;return v()})("ordinalChange",function(f){var g=u(c).$implicit;return v(g.ordinal=f)});Cg("timeOfDayChange",function(f){var g=u(c).$implicit;Bg(g.timeOfDay,f)||(g.timeOfDay=
f);return v(f)})("timeZoneIdChange",function(f){var g=u(c).$implicit;Bg(g.timeZone.id,f)||(g.timeZone.id=f);return v(f)});L();K(13,"div")(14,"mat-form-field",15)(15,"mat-label");Q(16,"Days remaining");L();K(17,"input",48);Cg("ngModelChange",function(f){var g=u(c).$implicit;Bg(g.daysRemaining,f)||(g.daysRemaining=f);return v(f)});L()()();K(18,"div")(19,"mat-form-field",15)(20,"mat-label");Q(21,"Types");L();K(22,"mat-select",20);Cg("ngModelChange",function(f){var g=u(c).$implicit;Bg(g.types,f)||(g.types=
f);return v(f)});Nf(23,zmc,2,2,"mat-option",21,Mf);L()()();K(25,"div",8)(26,"mat-form-field",49)(27,"mat-label");Q(28,"Add SLO ID");L();K(29,"input",23);Cg("ngModelChange",function(f){u(c);var g=P();Bg(g.newSloId,f)||(g.newSloId=f);return v(f)});N("keydown.enter",function(){var f=u(c).$implicit,g=P();return v(Dmc(g,f))})("blur",function(){var f=u(c).$implicit,g=P();return v(Dmc(g,f))});L()();Nf(30,Bmc,5,3,"div",24,Mf);L();F(32,Cmc,2,1,"div",25);K(33,"p",50);Q(34," You are the only recipient of your subscription. Anyone else wishing to receive this report will need to subscribe for themselves. ");
L();K(35,"a",51);Q(36,"Learn more");L()();K(37,"mat-dialog-actions")(38,"button",52);Q(39,"Cancel");L();K(40,"button",9);N("click",function(){var f=u(c).$implicit,g=P();return v(Emc(g,f))});Q(41);L()()}if(a&2){a=b.$implicit;b=P();B(9);var d;I("asMatInput",!0)("email",(d=a.lead==null?null:a.lead.emailAddress)!=null?d:"")("required",!0)("placeholder","Search users...");B();G(b.dialogInvalidEmailFormat?10:-1);B();G(b.ceoSelected?11:-1);B();var e;I("frequency",a.frequency)("ordinal",(e=a.ordinal)!=null?
e:0);Ag("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id);B(5);Ag("ngModel",a.daysRemaining);B(5);Ag("ngModel",a.types);B();Of(b.typeChoices);B(6);Ag("ngModel",b.newSloId);B();Of(a.sloIds);B(2);G(a.id?32:-1);B(8);I("disabled",!a.lead||!a.lead.emailAddress);B();S(" ",a.id===0?"Add":"Update"," ")}},Gmc=function(a){a&1&&(K(0,"div",7),M(1,"b-general-settings"),L())},Hmc=function(a){a&1&&(K(0,"div",7),M(1,"b-notification-settings"),L())},Imc=function(a){a&1&&(K(0,"div",7),M(1,"b-configurable-alert-settings"),
L())},Jmc=function(a){a&1&&(K(0,"div",7),M(1,"b-slo-reports-settings"),L())},Kmc=function(a){a&1&&(K(0,"mat-tab",6),E(1,Jmc,2,0,"ng-template",3),L())},Lmc=function(a){a&1&&M(0,"b-star-toggle",5);a&2&&I("starMessage","You are an admin of this bookmark group, and cannot star/unstar it.")("unStarMessage","You are an admin of this bookmark group, and cannot star/unstar it.")("starred",!0)("disabled",!0)},Mmc=function(a){if(a&1){var b=t();K(0,"b-star-toggle",11);N("starClicked",function(){u(b);var c=P(2);
return v(c.toggleStar())});L()}a&2&&(a=P(2),I("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},Nmc=function(a,b){a&1&&(K(0,"li")(1,"a",12),Q(2),L()());a&2&&(a=b.$implicit,b=P(2),B(),I("href",b.getUrl(a),Ne),B(),yg(b.getDisplayName(a)))},Omc=function(a){if(a&1){var b=t();K(0,"div")(1,"div",3)(2,"div",4);F(3,Lmc,1,4,"b-star-toggle",5)(4,Mmc,1,3,"b-star-toggle",6);K(5,"span",7);Q(6);L();K(7,"button",8);N("click",function(){u(b);var c=P();
return v(c.openEditBookmarkGroup())});L()();K(8,"div",9);Q(9);L()();K(10,"ul",10);Nf(11,Nmc,3,2,"li",null,Mf);L()()}a&2&&(a=P(),B(3),G(a.userIsAdmin?3:4),B(3),S("Bookmark Group: ",a.bookmarkGroup.name," "),B(3),yg(a.bookmarkGroup.description),B(2),Of(a.bookmarkGroup.item))},Pmc=function(a){if(a&1){var b=t();K(0,"button",10);N("click",function(){u(b);var c=P(2);return v(c.addToMissionControl(c.hotlistId))});Q(1," Hotlist insights in Home ");L()}},Qmc=function(a,b){a&1&&F(0,Pmc,2,0,"button",9);a&2&&
(a=P(),G(a.showAddToMcButton(b)?0:-1))},Rmc=function(a){if(a&1){var b=t();K(0,"b-star-toggle",16);N("starClicked",function(){u(b);var c=P(2);return v(c.toggleStar())})("keydown.space",function(c){u(b);return v(c.stopPropagation())})("keydown.enter",function(c){u(b);return v(c.stopPropagation())});L()}a&2&&(a=P(2),I("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("starred",a.isStarred))},Smc=function(a){a&1&&M(0,"b-star-toggle",12);a&2&&I("starMessage","You are an admin of this hotlist, and cannot star/unstar it.")("unStarMessage",
"You are an admin of this hotlist, and cannot star/unstar it.")("starred",!0)("disabled",!0)},Tmc=function(a){a&1&&M(0,"b-star-toggle",12);a&2&&I("starMessage","")("unStarMessage","")("starred",!1)("disabled",!0)},Umc=function(a){a&1&&(K(0,"div",14),Q(1," Hotlist not found. "),L());a&2&&I("bFocus",!0)},Vmc=function(a){a&1&&(K(0,"div"),Q(1," Loading details... "),L())},Wmc=function(a){a&1&&(K(0,"span",19),Q(1," (archived) "),L())},Xmc=function(a){a&1&&(K(0,"span",22),Q(1," \u00a0(changed) "),L())},
Ymc=function(a){if(a&1){var b=t();K(0,"div")(1,"span",17);Q(2," Hotlist: ");K(3,"span",18);Q(4);L()();F(5,Wmc,2,0,"span",19);K(6,"div",20)(7,"button",21);N("click",function(){u(b);var c=P(2);return v(c.openEditHotlist())});L()();F(8,Xmc,2,0,"span",22);L()}a&2&&(a=P(2),B(3),I("matTooltip",a.hotlist.description),B(),S(" ",a.hotlist.name," "),B(),G(a.hotlist.archived?5:-1),B(3),G(a.hasParamChanges()?8:-1))},Zmc=function(a){if(a&1){var b=t();K(0,"div",15)(1,"button",23);N("click",function(){u(b);var c=
P(2);return v(c.save())});Q(2,"Save ");L();K(3,"button",24);N("click",function(){u(b);var c=P(2);return v(c.discardChanges())});Q(4,"Discard changes ");L()()}},$mc=function(a){a&1&&(K(0,"div",5),F(1,Rmc,1,3,"b-star-toggle",11),F(2,Smc,1,4,"b-star-toggle",12),F(3,Tmc,1,4,"b-star-toggle",12),K(4,"div",13),F(5,Umc,2,1,"div",14),F(6,Vmc,2,0,"div"),F(7,Ymc,9,4,"div"),L(),F(8,Zmc,5,0,"div",15),L());a&2&&(a=P(),B(),G(a.isDirectAdmin()||!a.hotlist||a.hotlist.archived?-1:1),B(),G(a.isDirectAdmin()&&a.hotlist&&
!a.hotlist.archived?2:-1),B(),G(a.hotlist?-1:3),B(2),G(a.hotlist||a.hotlistLoading?-1:5),B(),G(a.hotlistLoading?6:-1),B(),G(a.hotlist&&!a.hotlistLoading?7:-1),B(),G(a.hasParamChanges()?8:-1))},anc=function(a){a&1&&(K(0,"div",6),M(1,"b-spinner"),K(2,"span"),Q(3),L()());a&2&&(a=P(),B(3),S(" Loading hotlist: ",a.hotlistId))},bnc=function(a){a&1&&Q(0);a&2&&(a=P(2),S(" No issues found on this page for hotlist ",a.hotlistId,". There may be issues visible on the next page. "))},cnc=function(a){a&1&&Q(0);
a&2&&(a=P(2),S(" No issues in hotlist ",a.hotlistId,". "))},dnc=function(a){a&1&&(K(0,"div",7),F(1,bnc,1,1)(2,cnc,1,1),L());a&2&&(a=P(),I("bFocus",!0),B(),G((a.searchResults==null?0:a.searchResults.hasNextPage())?1:2))},enc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"b-issues-grid",25);N("init",function(c){u(b);var d=P();return v(d.resultsGrid=c)});Cg("focusedRowIndexChange",function(c){u(b);var d=P();Bg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){u(b);
var d=P();Bg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("sortChange",function(c){u(b);var d=P();return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P();return v(d.goToIssue(c.id,c.isRead,c.event))})("onRowDragDrop",function(c){u(b);var d=P();return v(d.repositionIssue(c.srcIndex,c.destIndex))})("onNextPage",function(){u(b);var c=P();return v(ou(c,c.page,1))})("onPrevPage",function(){u(b);var c=P();return v(ou(c,c.page,-1))});L()()}a&2&&(a=P(),B(),I("searchResults",
a.searchResults),Ag("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},fnc=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P(2);return v(c.addToMissionControl(c.savedSearchId))});Q(1," Saved Search insights in Home ");L()}},gnc=function(a,b){a&1&&F(0,fnc,2,0,"button",8);a&2&&(a=P(),G(a.showAddToMcButton(b)?0:-1))},hnc=function(a){a&1&&(K(0,"span",13),Q(1," \u00a0(changed) "),
L())},inc=function(a){if(a&1){var b=t();K(0,"div",10);Q(1," Saved search: ");K(2,"span",11);Q(3);L();K(4,"button",12);N("click",function(){u(b);var c=P(2);return v(c.openEditSavedSearch())});L();F(5,hnc,2,0,"span",13);L()}a&2&&(a=P(2),B(2),I("matTooltip",a.savedSearch.description),B(),S(" ",a.savedSearch.name," "),B(2),G(a.hasParamChanges()?5:-1))},jnc=function(a){a&1&&(K(0,"div"),Q(1," Loading details... "),L())},knc=function(a){a&1&&(K(0,"div"),Q(1," Saved search not found. "),L())},lnc=function(a){a&
1&&F(0,jnc,2,0,"div")(1,knc,2,0,"div");a&2&&(a=P(2),G(a.isLoading?0:1))},mnc=function(a){a&1&&(K(0,"div",6),F(1,inc,6,3,"div",10)(2,lnc,2,1),L());a&2&&(a=P(),B(),G(a.savedSearch?1:2))},nnc=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(2);return v(c.save())});Q(1,"Save ");L()}},onc=function(a){if(a&1){var b=t();K(0,"div",7);F(1,nnc,2,0,"button",14);K(2,"button",15);N("click",function(){u(b);var c=P();return v(c.discardChanges())});Q(3,"Discard changes ");L();K(4,
"span",16)(5,"a",17);N("click",function(){u(b);var c=P();c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"backToNormalSearch");return v()});Q(6," Back to normal search");L()()()}a&2&&(a=P(),B(),G(a.isEditable()?1:-1),B(4),I("href",a.exitLink,Ne))},pnc=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3),B(),S(" Searching",a.searchParams.query?" for "+a.searchParams.query:"","..."))},qnc=function(a){a&1&&(K(0,"div",19),M(1,"b-spinner"),F(2,pnc,2,1,"span"),L());a&2&&(a=P(2),B(2),G(a.searchParams?2:-1))},
rnc=function(a){if(a&1){var b=t();K(0,"div",20)(1,"b-issues-grid",22);N("init",function(c){u(b);var d=P(3);return v(d.resultsGrid=c)});Cg("focusedRowIndexChange",function(c){u(b);var d=P(3);Bg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){u(b);var d=P(3);Bg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("sortChange",function(c){u(b);var d=P(3);return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P(3);return v(d.goToIssue(c.id,
c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(3);return v(ou(c,c.page,1))})("onPrevPage",function(){u(b);var c=P(3);return v(ou(c,c.page,-1))});L()()}a&2&&(a=P(3),B(),I("searchResults",a.searchResults),Ag("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},snc=function(a){a&1&&(K(0,"div",21),Q(1," No issues in saved search. "),L());a&2&&I("bFocus",!0)},tnc=function(a){a&1&&F(0,rnc,2,6,
"div",20)(1,snc,2,1,"div",21);a&2&&(a=P(2),G(a.hasResults()?0:1))},unc=function(a){a&1&&(K(0,"div"),F(1,qnc,3,1,"div",19)(2,tnc,2,1),L());a&2&&(a=P(),B(),G(a.isLoading?1:2))},wnc=function(a,b){return vnc(function(){return eVa(a)},b)},vnc=function(a,b){return a()?[b]:[]},xnc=function(){var a=p(uu).getEnvironmentType(),b={};return(b.DEV="Dev",b.NIGHTLY="Autopush",b.QA="Dev",b.PROD="Prod",b)[a]},znc=function(a){a=a.internal;var b,c,d;(b=X(a,ync,11))==null?d=void 0:d=wn(b,1,Ci(Jm)).sort().join("-");b=
(c=d)!=null?c:"";var e,f,g;(e=X(a,ync,11))==null?g=void 0:g=wn(e,2,Ci(Jm)).sort().join("-");c=(f=g)!=null?f:"";return ui(a,10,"all_features")+(":enabled-"+b)+(":disabled-"+c)},Cnc=function(a,b){for(var c=[],d=a.length,e=0,f=[],g,k,l=0;l<d;){switch(e){case 0:var r=a.indexOf("<",l);if(r<0){if(c.length===0)return a;c.push(a.substring(l));l=d}else c.push(a.substring(l,r)),k=r,l=r+1,Anc?(Bnc.lastIndex=l,r=Bnc.exec(a)):(Bnc.lastIndex=0,r=Bnc.exec(a.substring(l))),r?(f=["<",r[0]],g=r[1],e=1,l+=r[0].length):
c.push("<");break;case 1:r=a.charAt(l++);switch(r){case "'":case '"':var w=a.indexOf(r,l);w<0?l=d:(f.push(r,a.substring(l,w+1)),l=w+1);break;case ">":f.push(r);c.push(b(f.join(""),g));e=0;f=[];k=g=null;break;default:f.push(r)}break;default:throw Error();}e===1&&l>=d&&(l=k+1,c.push("<"),e=0,f=[],k=g=null)}return c.join("")},vu=function(a,b){b=a(b||Dnc,void 0);a=kj();if(b&&b.renderAsElement)a=b.renderAsElement();else{a=a.createElement("DIV");b:if(Oa(b)){if(b.toSafeHtml&&(b=b.toSafeHtml(),b instanceof
ph))break b;b=Bh("zSoyz")}else b=Bh(String(b));a.innerHTML=sh(b)}a.childNodes.length==1&&(b=a.firstChild,b.nodeType==1&&(a=b));return a},wu=function(a,b){return a.querySelector('[peoplekit-id="'+b+'"]')},Enc=function(a,b){return Array.from(a.querySelectorAll('[peoplekit-id="'+b+'"]'))},Fnc=function(a){return Array.from(a.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter(function(b){return!(b.getAttribute("aria-hidden")==="true"||b.hasAttribute("disabled")||b.hasAttribute("hidden"))})},
Inc=function(a,b){if(/-[a-z]/.test(b))return null;if(Gnc&&a.dataset){if(hba()&&!(b in a.dataset))return null;a=a.dataset[b];return a===void 0?null:a}return a.getAttribute("data-"+Hnc(b))},Jnc=function(a){var b=new Image;b.src=a;a=b.complete;b.src="";return a},xu=function(a,b,c,d,e,f){e=e===void 0?new Knc:e;f=(f===void 0?"":f)||"https://lh3.googleusercontent.com/a/default-user";b=b.length?b.map(function(g){return g||"https://lh3.googleusercontent.com/a/default-user"}):[f];c=vu(Lnc,{imageUrls:b,backupUrl:f,
size:c,preloadSize:d,pixelRatio:Mnc()});e=new Nnc(c,e);a.appendChild(c);return e},Pnc=function(a,b){var c="",d=0;b=m(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 Onc(Onc(Kt(c),"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3","<b>"),"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3","</b>")},Qnc=function(a){var b=a.getDisplayName();
return b?Pnc(b,a.getMatchInfo().getDisplayNameMatches()):""},Rnc=function(a){var b=a.getDisplayValue();return b?Pnc(b,a.getMatchInfo().getDisplayValueMatches()):""},Snc=function(a,b){var c=b?Qnc(a):Kt(a.getDisplayName());b=b?Rnc(a):Kt(a.getDisplayValue());c=c||b;b=b||Kt(a.getDescription());var d=a.getPrimaryTarget();return{hovercardId:d.getTargetType()===1||d.getTargetType()===6?a.getDisplayValue():d.getProfileId(),label:c,sublabel:b,photos:[a.getPhotoUrl()]}},Tnc=function(a){var b=a.result();b=Snc(b,
!1);a=a.getDisplayNameWithOverrideApplied();return{label:Kt(a)||b.sublabel,sublabel:b.sublabel,name:a,photos:b.photos,hovercardId:b.hovercardId}},Unc=function(a){var b;switch(((b=a.statefulChipConfig)==null?void 0:b.chipState)||0){case 3:return"isError";default:return""}},Vnc=function(a){var b;return((b=a.statefulChipConfig)==null?void 0:b.customChipClass)||""},Xnc=function(a,b,c){var d=Tnc(a),e=a.result().getPrimaryTarget();a=b.getWarnForExternalSelections()&&e.getOrgState()===2;e=b.getShouldDisplayExternalSelectionIcon()&&
a&&e.getDataSource()!==1?["https://www.gstatic.com/people/peoplekit/icons/light_theme/out_of_domain_yellow500.svg"]:d.photos;var f=Unc(c);c=Vnc(c);return{id:yu(Wnc),label:d.label,name:d.name,photos:e,hovercardId:d.hovercardId,stateClass:f,isWarning:a,isDeletionDisabled:!b.getAllowChipDeletion(),customChipClass:c}},Znc=function(a,b,c,d){var e="",f=Kt(a.getDescription()),g=!1,k=a.getMemberList().length;if(k>1||a.getDisplayName())e=a.getMemberList().map(function(l){var r=l.getPrimaryTarget().getName(),
w="";if(r){if(b){var x;var C=(r=(C=l.getPrimaryTarget())==null?void 0:(x=C.getName())==null?void 0:x.getGivenName())?Pnc(r,l.getMatchInfo().getGivenNameMatches()):""}else C=Kt(r.getGivenName());(w=C)||(w=b?Qnc(l):Kt(l.getDisplayName()))}w||(w=b?Rnc(l):Kt(l.getDisplayValue()));return w}),c&&(e=e.reverse()),e=b?Qnc(a)||e.join(", "):Kt(a.getDisplayName())||e.join(", "),f||d||a.getTotalMemberCount()===null||(f=Number(a.getTotalMemberCount()),f=Ync({memberCount:f}),g=!0);else if(k===1)return e=a.getMemberList()[0],
f=Snc(e,b),Object.assign({},f,{type:a.getPrimaryTarget().getTargetType(),flatResult:e,allowSublabelTranslation:!1});c=a.getPhotoUrl();c=a.getDisplayName()&&c?[c]:a.getMemberList().map(function(l){return l.getPhotoUrl()});return{hovercardId:"",label:e,sublabel:f,type:a.getPrimaryTarget().getTargetType(),photos:c,allowSublabelTranslation:g}},Au=function(a){return new zu(a)},$nc=function(a,b,c){b=b.ownerDocument.createEvent(c);b.initEvent(a,!0,!0);return b},aoc=function(a,b){return $nc(a,b,"CustomEvent")},
boc=function(a){return a.resultType===4||a.resultType===5},foc=function(a){Bu.addCoreFactory({type:0,configurationKey:a,factory:{create:function(b){var c=b.selection;var d=b.chipConfig;var e=b.chipCustomization,f=b.isRightToLeft;f=Znc(c.result(),!1,f,!1);if(f.flatResult){var g=Object;c=g.assign;var k=f.flatResult,l=k.getPrimaryTarget(),r=d.getWarnForExternalSelections()&&l.getOrgState()===2;l=d.getShouldDisplayExternalSelectionIcon()&&r&&l.getDataSource()!==1?["https://www.gstatic.com/people/peoplekit/icons/light_theme/out_of_domain_yellow500.svg"]:
f.photos;var w=Unc(e);e=Vnc(e);d={id:yu(Wnc),label:f.label,name:k.getDisplayName(),photos:l,hovercardId:f.hovercardId,stateClass:w,isWarning:r,isDeletionDisabled:!d.getAllowChipDeletion(),customChipClass:e};d=c.call(g,{},d,{type:f.type})}else k=c.result().getPrimaryTarget(),c=d.getWarnForExternalSelections()&&k.getOrgState()===2,k=d.getShouldDisplayExternalSelectionIcon()&&c&&k.getDataSource()!==1?["https://www.gstatic.com/people/peoplekit/icons/light_theme/out_of_domain_yellow500.svg"]:f.photos,
d=Object.assign({},{id:yu(coc),isDeletionDisabled:!d.getAllowChipDeletion(),stateClass:"",isWarning:c,name:f.label},f,{customChipClass:((g=e.statefulChipConfig)==null?void 0:g.customChipClass)||"",photos:k});f=vu(doc,d);xu(wu(f,"d6MZcd"),d.photos,b.avatarSize,b.resultListItemAvatarSize,b.appearanceConfig);b.parent.appendChild(f);return{chip:new eoc(f,b.selection,b.selectionsState),root:f,state:0}},shouldCreate:boc}})},goc=function(a){return 0===a.resultType},joc=function(a){Bu.addCoreFactory({type:1,
configurationKey:a,factory:{create:function(b){var c=Xnc(b.selection,b.chipConfig,b.chipCustomization);c=vu(hoc,Object.assign({},c,{avatarSize:b.avatarSize}));b.parent.appendChild(c);return{chip:new ioc(c,b.selection,b.selectionsState),root:c,state:0}},shouldCreate:goc}})},yoc=function(a,b,c,d,e){var f;if(f=c.offsetParent){var g=f.tagName=="HTML"||f.tagName=="BODY";if(!g||koc(f)!="static"){var k=Cu(f);if(!g){g=Du(f);var l;if(l=g){l=loc&&$aa(moc,10)>=0;var r;if(r=noc)r=$aa(ooc,10)>=0;var w=poc&&$aa(moc,
85)>=0;l=fj||l||r||w}g=l?-f.scrollLeft:g&&yt(f,"overflowX")!="visible"?f.scrollWidth-f.clientWidth-f.scrollLeft:f.scrollLeft;k=qoc(k,new Eu(g,f.scrollTop))}}}f=k||new Eu;k=roc(a);(g=soc(a))&&k.intersection(toc(g));g=kj(a);l=kj(c);if(g.document_!=l.document_){g=g.document_.body;l=l.getWindow();r=new Eu(0,0);w=Fu(Gu(g));if(uoc(w,"parent")){var x=g;do{if(w==l)var C=Cu(x);else C=voc(x),C=new Eu(C.left,C.top);r.x+=C.x;r.y+=C.y}while(w&&w!=l&&w!=w.parent&&(x=w.frameElement)&&(w=w.parent))}g=qoc(r,Cu(g));
k.left+=g.x;k.top+=g.y}a=woc(a,b);b=k.left;a&4?b+=k.width:a&2&&(b+=k.width/2);b=new Eu(b,k.top+(a&1?k.height:0));b=qoc(b,f);a=woc(c,d);k=xoc(c);b=b.clone();k=k.clone();a!=0&&(a&4?b.x-=k.width:a&2&&(b.x-=k.width/2),a&1&&(b.y-=k.height));a=new Hu(0,0,0,0);a.left=b.x;a.top=b.y;a.width=k.width;a.height=k.height;c=soc(c);c.top-=f.y;c.right-=f.x;c.bottom-=f.y;c.left-=f.x;a.left<c.left?a.left=c.left:a.left+a.width>c.right&&(a.left=c.right-a.width);e&&(e=a,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)),a=e);return a},zoc=function(a,b){Iu(a,new Eu(b.left,b.top));b=b.getSize();var c=xoc(a);c==b||c&&b&&c.width==b.width&&c.height==b.height||(a=a.style,fj?a.MozBoxSizing="border-box":ej?a.WebkitBoxSizing="border-box":a.boxSizing="border-box",a.width=Math.max(b.width,0)+"px",a.height=Math.max(b.height,0)+"px")},Aoc=function(a,b){return new Ju(a,b)},Eoc=function(a,b,c){b=vu(Boc,{label:c.label,id:b,ariaLabel:c.ariaLabel});a.appendChild(b);a=c.showDelayMs;
c=c.hideDelayMs;c=new Coc(b,a===void 0?500:a,c===void 0?300:c);return new Doc(b,c)},Foc=function(a){return!a.chipCustomization.statefulChipConfig||a.chipCustomization.statefulChipConfig.chipState===0||a.chipConfig.getWarnForExternalSelections()&&a.chipCustomization.statefulChipConfig.chipState!==3?!1:!0},Goc=function(a){Bu.addDecoratorFactory({type:0,factory:{create:function(b,c){return{chip:new Ku(c.chip,b.chipCustomization.statefulChipConfig.tooltipLabel,b.chipCustomization.statefulChipConfig.ariaLabel),
root:c.root,state:b.chipCustomization.statefulChipConfig.chipState}},shouldCreate:Foc},configurationKey:a})},Koc=function(a,b,c){var d=vu(Hoc,{icon:c.icon,tooltipLabel:c.tooltipLabel,ariaLabel:c.ariaLabel});a.appendChild(d);a=d.classList;var e=a.add;a:{var f=c.density||0;switch(f){case 0:f="googleMaterialDefaultDensity";break a;case 1:f="workspaceMaterialComfortableDensity";break a;case 2:f="workspaceMaterialCompactDensity";break a;default:throw Error("Kg`"+f);}}e.call(a,f);if(c.tooltipLabel){var g=
d.getAttribute("data-tooltip-id")||"";g=Eoc(b,g,{label:c.tooltipLabel,ariaLabel:c.ariaLabel});Ioc(g,d)}return new Joc(d,c.icon,c.disabledIcon,g,c.disableDomNavigation,c.onClick)},Lu=function(a){var b=a.element,c=a.veid,d=a.actions,e=a.pairs;if(b){var f="";d&&d.length&&(f="; track:"+d.join(",").trim());d="";e&&e.length&&(d="; "+e.join("; ").trim());b.setAttribute("jslog",c+f+d);b.LSWHIf=void 0}a.mutable&&(b=a.element,c=b.getAttribute("jslog").concat("; mutable:true"),b.setAttribute("jslog",c));b=a.element;
a=a.componentId;a=b.getAttribute("jslog").concat("; cid:",a);b.setAttribute("jslog",a)},Mu=function(a){return aoc("pcw-click",a)},Moc=function(a,b,c,d,e){var f=Object.assign({},c);f.onClick=function(g){d.select(a.getSelection(),1);var k;(k=c.onClick)==null||k.call(c,g)};return new Loc(a,b,f,e)},Noc=function(a){Nu.addDecoratorFactory({type:1,factory:{create:function(b,c){return Moc(c,b.appearanceConfig,b.resultCustomizationConfig.secondaryActionButtonConfig,b.interactions,b.popupsContainer)},shouldCreate:function(b){return!!b.resultCustomizationConfig.secondaryActionButtonConfig}},
configurationKey:a})},Ooc=function(a){a=znc(a);joc(a);Goc(a);foc(a);Noc(a)},Poc=function(a,b,c){var d=Math.max(b,c);return a>Math.min(b,c)&&a<d},Qoc=function(a,b,c){b=[b,c].map(function(d){return d!=null?d:""}).join(";");a.setAttribute("pkd-ac-state",String(Bh(b)))},Roc=function(a,b){b=[String(b.getId()),b.getValue()].join(";");a.setAttribute("pkd-target",String(Bh(b)))},Soc=function(a,b){a.setAttribute("pkd-ps-state",String(Bh("1")));b.warmUpCache().then(function(){a.setAttribute("pkd-ps-state",
String(Bh("2")))},function(){a.setAttribute("pkd-ps-state",String(Bh("3")))})},Voc=function(a,b){Toc(Uoc,b).create(a)},Yoc=function(a){a=a===void 0?new Woc:a;return new Xoc(a)},$oc=function(a,b,c,d,e){var f=Yoc(new Woc(function(){var k=e();k&&!k.hasFocus()&&k.getNavigatable().reset()})),g=new Zoc;Voc({injectableAutocompleteGrouping:g,injectableResultConfig:f,autocompleteConfig:a,clientConfig:b,peopleStore:c,searchSession:d,getAutocomplete:e},znc(b));return{injectableResultConfig:f,injectableAutocompleteGrouping:g}},
dpc=function(a){var b=vu(apc,{id:yu(bpc)});a.appendChild(b);return new cpc(b)},gpc=function(a){if(Ou){var b=epc(a);fpc(a,b)}else a.scrollIntoView({block:"nearest"})},ipc=function(a){return new hpc(a)},lpc=function(a,b){b=vu(jpc,{label:b.label});a.appendChild(b);return new kpc(b)},npc=function(a,b){for(var c=m(mpc.values()),d=c.next();!d.done;d=c.next())a.classList.remove(d.value);(b=mpc.get(b))&&a.classList.add(b)},ppc=function(a,b){for(var c=m(["peoplekitThemeLight","peoplekitThemeDark"]),d=c.next();!d.done;d=
c.next())a.classList.remove(d.value);(b=opc.get(b))&&a.classList.add(b)},spc=function(a,b,c,d){b=vu(qpc,{content:b,header:d});a.appendChild(b);a=wu(b,"Sx9Kwc");d=lpc(wu(b,"IbE0S"),{label:"Close"});ppc(b,c.getTheme());npc(a,c.getStyle());return new rpc(b,d)},xpc=function(a,b){var c=a.headerText,d=a.infoGroupConfig;a=a.collapsibleGroupConfig;if(c){var e=yu(Pu.getInstance());e=vu(tpc,{id:e,header:c});c=new upc(e,c);d&&(e={},d.infoType===1&&(e={infoIconVeId:185198,learnMoreLinkVeId:185199}),c=new vpc(c,
d,b,e));a&&(c=new Qu(c,a.isInitiallyCollapsed));c.getActionItems().length>0&&(b=c,b.getRoot().setAttribute("role","group"),c=new wpc(b));return c}},zpc=function(){return new (Function.prototype.bind.apply(ypc,[null].concat(q($c.apply(0,arguments)))))},Apc=function(a){var b,c;return(c=a==null?void 0:(b=a.collapsibleGroupConfig)==null?void 0:b.isDemoted)!=null?c:!1},Cpc=function(){return new (Function.prototype.bind.apply(Bpc,[null].concat(q($c.apply(0,arguments)))))},Dpc=function(a){return Object.values(a).filter(function(b){return b!=
null}).length},Epc=function(a){return Object.values(a.groupConfigs).every(function(b){return b&&Dpc(b)!==0?b.headerText!=null&&Dpc(b)===1:!0})},Hpc=function(a,b,c,d,e,f){f?Epc(f)?f=Cpc(a,b,c,d,e,f):(a.isInteractive!==!1&&(a.isInteractive=!1,a.isInteractive?(a.root.setAttribute("role","listbox"),a.root.setAttribute("aria-multiselectable","true")):(a.root.removeAttribute("role"),a.root.removeAttribute("aria-multiselectable"))),a=zpc(a,b,c,d,e,f),Object.values(f.groupConfigs).some(Apc)&&(a=new Fpc(a,
f)),f=a):f=new Gpc(a,b,c,e);return f},Ipc=function(a){switch(a){case 0:return 40;case 1:return 32;case 2:return 28;default:throw Error("Kg`"+a);}},Jpc=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";default:throw Error("Kg`"+a);}},Ru=function(a){return a==null?"":typeof a==="number"?isFinite(a)?String(a):"":a&&(a=String(a),a.length<=254)?a:""},Npc=function(){var a=Su("gapi.config.get");
if((a=Ru(a&&a("googleapis.config/sessionIndex")))||(a=Ru(ra.__X_GOOG_AUTHUSER))||(a=Ru(Su("google.authuser"))))return a;var b=ra.location.href||"",c=Kpc.exec(b);try{a=Ru(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;c=Lpc.exec(b);try{a=Ru(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;a=Mpc.exec(b);return(a=Ru(a&&a[1]))?a:""},Opc=function(){var a=Su("gapi.auth.getToken");a=(a=a?a():null)&&a.access_token;var b=null;if(!a){a=(a=Su("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}},Qpc=function(a){a=a===void 0?"":a;var b;if(!(b=Opc())){b=a;var c=c===void 0?Npc():c;a={};var d=Ppc([]);d&&(a.Authorization=d);b||(b=(b=Su("gapi.config.get"))&&b("client/apiKey"));b&&(a["X-Goog-Api-Key"]=b);c&&(a["X-Goog-AuthUser"]=String(c));b=a}return b},Rpc=function(a,b){b=b===void 0?0:b;var c;if(c=b===0)c=(c=Su("gapi.config.get"))?(c=c("oauth-flow/authUrl"))&&
(c.indexOf("staging")>0||c.indexOf("test")>0)?2:1:0,c=c===2;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=Su("gapi.config.get"))&&b("client/rewrite"))&&b[a]&&(a=String(b[a]));return a},Spc=function(){var a=a===void 0?10:a;var b="";if(a<1)return b;for(;b.length<a;)b+=String(Math.random().toString(36).substring(2));return b.length>
a?b.substring(0,a):b},Tpc=function(a){var b,c=(b=a.getClient())==null?void 0:b.getApplication();a=a.getRequestType();return c&&a?[c,a]:null},Upc=function(a){return(a=Tpc(a))?JSON.stringify(a):null},Vpc=function(a,b){b=b===void 0?null:b;b=a.getProfileId()||b;return b?(a=Tpc(a))?JSON.stringify([a,b]):null:null},Wpc=function(a){this.storage_=a;this.cachedIsStorageAvailable_=null},Xpc=function(){var a=null;try{a=ra.localStorage||null}catch(b){}Wpc.call(this,a)},Tu=function(a,b){this.mechanism_=a;this.prefix_=
b+"::"},Zpc=function(a){return Ypc.map(function(b){return new Tu(a,b)})},$pc=function(a,b){window.setTimeout(a,b)},aqc=function(a,b){return new Promise(function(c){b>0?$pc(function(){return c(a)},b):c(a)})},bqc=function(a){return new Promise(function(b,c){a>0?$pc(function(){return c("TIMEOUT")},a):c("TIMEOUT")})},cqc=function(a,b,c){b=aqc(b,c);return Promise.race([a,b])},dqc=function(a,b){b=bqc(b);return Promise.race([a,b])},eqc=function(a){a=Math.round(a*1E3);return isFinite(a)?a:null},fqc=function(a){var b=
new Uu;if(a instanceof Vu)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.");break;case 7:b.setErrorMessage("Failed to load flags from server"),b.setStatusCode(a.statusCode)}else b.setErrorType(5),b.setErrorMessage(a.message);return b},
hqc=function(a){a=a===void 0?null:a;var b=(new gqc).setExperimentFlags(new Wu).setSource(3);a&&b.setError(fqc(a));return b},qqc=function(a){var b=b===void 0?new Xpc:b;if(iqc)return iqc;var c=new jqc(a),d=new kqc(a),e;b.isAvailable()?e=new lqc(a,b):e=new mqc(a);b=e;try{b.clean()}catch(f){}c=new nqc(new oqc(b,c),d,a.runtime_);return iqc=new pqc(a,c)},sqc=function(a){var b=a.resultCustomizationConfig,c=Snc(a.result,!0);a=rqc(a,c);c=a.sublabel;var d=a.allowSublabelTranslation;b.customSublabel&&(c=b.customSublabel.sublabel,
d=b.customSublabel.shouldAllowTranslation);return{id:a.id,hovercardId:a.hovercardId,label:a.label,sublabel:b.shouldHideSublabel?"":c,photos:a.photos,densityClass:a.densityClass,tags:a.tags,allowSublabelTranslation:d}},rqc=function(a,b){var c=a.result,d=a.resultConfig;a=Jpc(a.appearanceConfig.getDensity());var e=[],f=tqc.getExperiments();Fi(f,3)&&d.getWarnForExternalSelections()&&c.getPrimaryTarget().getOrgState()===2&&e.push({iconUrl:"https://www.gstatic.com/people/peoplekit/icons/light_theme/domain_disabled_grey900.svg",
altText:"External",style:1});return{id:yu(uqc),hovercardId:b.hovercardId,label:b.label,sublabel:b.sublabel,photos:b.photos,densityClass:a,tags:e,allowSublabelTranslation:!1}},wqc=function(a){var b=a.result,c=a.resultCustomizationConfig,d=a.appearanceConfig,e=a.isRightToLeft,f=Fi(a.clientConfig.internal,6);d=Jpc(d.getDensity());b=Znc(b,!0,e,f);if(b.flatResult)return d=Object.assign({},a,{result:b.flatResult}),d=rqc(d,b),a=d.sublabel,e=d.allowSublabelTranslation,c.customSublabel&&(a=c.customSublabel.sublabel,
e=c.customSublabel.shouldAllowTranslation),{id:d.id,hovercardId:d.hovercardId,label:d.label,sublabel:c.shouldHideSublabel?"":a,photos:d.photos,densityClass:d.densityClass,tags:d.tags,type:b.type,allowSublabelTranslation:e};a=b.sublabel;e=b.allowSublabelTranslation;c.customSublabel&&(a=c.customSublabel.sublabel,e=c.customSublabel.shouldAllowTranslation);return{id:yu(vqc),hovercardId:b.hovercardId,label:b.label,sublabel:c.shouldHideSublabel?"":a,type:b.type,photos:b.photos,densityClass:d,tags:[],allowSublabelTranslation:e}},
yqc=function(a,b,c){return zs(new xqc(a===void 0?0:a,b!=null?b:[],c!=null?c:null))},Xu=function(a){return(a||"").trim()},Aqc=function(a,b,c,d){return new zqc(a,b===void 0?"":b,c===void 0?!1:c,d===void 0?null:d)},Bqc=function(a){return a.resultCustomizationConfig.shouldDisable?2:a.selectionsState.get(a.result.getPrimaryTarget().getId())&&!a.resultConfig.getAllowResultDeselection()?1:0},Dqc=function(a){return new Cqc(a)},Fqc=function(a,b,c,d){return new Eqc(a,b===void 0?"":b,c===void 0?!1:c,d===void 0?
null:d)},Gqc=function(a){var b=-1;(a=Yu(a))&&kn(a,2)&&(b=Bm(a,2));return"index:"+b},Iqc=function(a,b,c,d,e,f,g,k,l){return new Hqc(a,b,c,d,e,f,g,k,l)},Kqc=function(){return new (Function.prototype.bind.apply(Jqc,[null].concat(q($c.apply(0,arguments)))))},Zu=function(a){return a instanceof TypeError?4:3},Lqc=function(){return"https://support.google.com/contacts/answer/7345608"},Nqc=function(a){return Mqc.some(function(b){return a instanceof b})},Tqc=function(a,b,c,d,e,f,g,k,l,r,w,x){var C=d.getAutocompleteHeader(),
H=d.getAutocompleteCustomGrouping();if(k.internal.getEnableAutocompleteLegalese()){var J=d.getAutocompleteGroupingType()===4||d.getAutocompleteGroupingType()===5;var O=H&&Nqc(H);J=J&&O?H:new Oqc}else switch(d.getAutocompleteGroupingType()){case 1:J=new Oqc;break;case 2:J=new Pqc(d.getAutocompleteGroupingLabel());break;case 3:J=new Qqc(d.getAutocompleteGroupingLabel());break;case 4:case 5:J=H}H=d.getAutocompleteGroupingType();e=m(e.groupingDecorators);for(O=e.next();!O.done;O=e.next())O=O.value,J=
O(H,J);e=J;C=vu(Rqc,{header:C||""});a.appendChild(C);a=dpc(wu(C,"tjneg"));b=Kqc(a,f,g,d,k,b,c,l,r,w,e);return new Sqc(b,c,x)},Uqc=function(a){var b=Ha()&&a.event.keyCode===121&&a.event.shiftKey;b||(b=Ha()&&a.event.ctrlKey&&a.event.keyCode===13);b||(b=a.event.shiftKey&&a.event.ctrlKey&&a.event.keyCode===88);b||(b=Ha()&&a.event.metaKey&&a.event.shiftKey&&a.event.keyCode===220);b||(b=a.event.shiftKey&&a.event.ctrlKey&&a.event.keyCode===220);return b},Vqc=function(a,b){return new $u(a,b)},Wqc=function(a){return a.getAttribute("peoplekit-id")===
"XLuqBd"},Yqc=function(a,b){return new Xqc(a,b)},Zqc=function(){return!1},$qc=function(){},brc=function(){return new (Function.prototype.bind.apply(arc,[null].concat(q($c.apply(0,arguments)))))},erc=function(a,b){b=vu(crc,b);a.appendChild(b);return new drc},krc=function(a,b,c,d,e,f,g,k,l,r,w){var x=vu(frc);Lu({element:x,veid:85843,actions:["impression"],componentId:"peoplekitweb"});npc(x,g.getStyle());a.appendChild(x);a=wu(x,"tjneg");var C=new grc(x),H;w||(w=$oc(g,k,r,c,function(){return H}));r=w;
d=Tqc(a,d,e,g,r.injectableAutocompleteGrouping,g,r.injectableResultConfig,k,l,b,C,f);e=wu(a,"rymPhb");b.setAttribute("aria-owns",e.id);b.setAttribute("aria-controls",e.id);e.setAttribute("aria-labelledby",b.id);l=g.getNoResultsMessage();e=vu(hrc);l=l?l.display?new irc(e,l):erc(e,l):new jrc;x.appendChild(e);return H=brc(x,b,d,c,f,g,l,k)},nrc=function(a,b,c,d,e,f,g,k,l,r){var w=vu(lrc);npc(w,g.getStyle());a.appendChild(w);var x;a=$oc(g,k,r,c,function(){return x});c=krc(w,b,c,d,e,f,g,k,l,r,a);return x=
new mrc(w,b,c,d,g)},prc=function(a,b){return new orc(a,b)},qrc=function(a){return a.map(function(b){return b.getLoggingToken()}).filter(Boolean)},av=function(a){return a.filter(function(b){return!b.isPlaceholder()}).map(function(b){return b.selectionToken().getLoggingToken()}).filter(Boolean)},rrc=function(a,b,c){switch(b){case 1:a.reporter.reportProceed(av(c));break;case 2:a.dismiss(c);break;case 3:a.save(c);break;case 4:a.send(c);break;case 5:a.reporter.reportSecondaryAction(av(c))}},trc=function(a,
b,c){return new src(a,b,c)},zrc=function(a,b){a=a.internal.getClearcut();b=new urc(a,b);b=new vrc(wrc(b));a=a.getInterfaceType();return new xrc(new yrc(b,a))},Arc=function(a,b,c,d){var e;d=m(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;try{f(a,b,c)}catch(g){e||(e=g)}}if(e)throw e;},Brc=function(a,b,c,d,e){e=m(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f(a,b,c,d)},Irc=function(a,b,c){var d=new bv,e=Npc();c=(new Crc).setClientId(b.getClientId()).setApplication(b.getSocialApplicationOrUndefined()).setEntryPoint(c).setVersionName("1.0").setBaselineCl(826638166);
d=new Drc(d,1394,e,void 0,void 0,void 0,new Erc(c));d.setClientSideLogOnlyForDevelopment(!b.getEnableClearcut()||!1);b=Frc(new Grc,tqc.getExperimentIds());d.clearcut_.setClearExperimentIds(b);d.setComponentID("peoplekitweb");d.clearcut_.setProductID(109303191);return new Hrc(a,d)},Prc=function(a){var b=a.clientConfig,c=a.initializeIoC,d=b.internal;a=a.commonConfig.getEnvironmentConfig();var e=a.experimentsConfig_.getProfileId();if(e)if(d.getExperiments().getIsEnabled()){var f=Jrc(Krc||(Krc=Lrc('[null,null,null,null,null,null,null,"AIzaSyBAMHkvD9gqERVdYmGsYLnAtfzigZdAqJQ"]')));
f=new Mrc(f,7)}else f=new cv;else f=new cv;d=d.getExperiments();a=f.loadExperiments(d.getApplication(),(new Nrc).setPeopleApiEnv(a.apiEnv_),e);tqc=new Orc(d,a);c&&c(b)},Rrc=function(a,b,c,d,e,f){var g=c.beginSession(function(){},f.sessionOptions||new dv);return Qrc(a,b,c,g,d,e,f)},Qrc=function(a,b,c,d,e,f,g){Prc({clientConfig:f,commonConfig:e,initializeIoC:Ooc});f.internal.getClearcut().setInterfaceType(4);f.internal.getClearcut().setComponentFlow(7);var k=vu(Src,{classes:"aU4VQc"});a.appendChild(k);
Fi(f.internal,14,!0)&&e.setStyle(1);ppc(k,e.getTheme());Lu({element:k,veid:64611,actions:["impression"],componentId:"peoplekitweb"});a=new ev;var l=trc(d,a,e.getEntryPoint()),r=zrc(f,e.getEntryPoint());b=nrc(k,b,d,a,l,r,e,f,new Trc(g.intelligence),c);Soc(b.getRoot(),c);c=Irc(k,f.internal.getClearcut(),e.getEntryPoint());c.start(Urc);return new Vrc(k,b,a,l,c,e)},Wrc=function(a){switch(a){case 0:return 28;case 1:return 24;case 2:return 20;default:throw Error("Kg`"+a);}},Xrc=function(a){var b=Number("2"),
c=Number("4");return Wrc(a)+2*b+2*c},Yrc=function(a){var b;return Object.freeze({id:"jCCvxc",iconUrl:(b=fv.get(a))==null?void 0:b.get("jCCvxc"),label:"Copy",keyboardShortcut:[512,67],veid:108906})},Zrc=function(a){var b;return Object.freeze({id:"UkZFS",iconUrl:(b=fv.get(a))==null?void 0:b.get("UkZFS"),label:"Cut",keyboardShortcut:[512,88],veid:119506})},$rc=function(a){var b;return Object.freeze({id:"YCRBfe",iconUrl:(b=fv.get(a))==null?void 0:b.get("YCRBfe"),label:"Change name",keyboardShortcut:[16,
69],veid:120676})},asc=function(a){var b;return Object.freeze({id:"l1309",iconUrl:(b=fv.get(a))==null?void 0:b.get("l1309"),label:"Change email address",keyboardShortcut:[16,70],veid:135428})},bsc=function(a){var b=gv?"Option":"Alt",c,d=Object,e=d.freeze;a=(c=fv.get(a))==null?void 0:c.get("xTCd3");return e.call(d,{id:"xTCd3",iconUrl:a,label:"More info",keyboardShortcut:[18,39],veid:119507,ariaLabel:"More info, "+b+" + right arrow key"})},csc=function(a){return a.map(function(b){if(gv)switch(b){case 512:return"\u2318";
case 18:return"Option"}switch(b){case 16:return"Shift";case 512:return"Ctrl";case 18:return"Alt";case 191:return"/";case 39:return"\u2006\u279d";default:return String.fromCharCode(b)}})},fsc=function(a,b){var c=yu(Pu.getInstance()),d=Object,e=d.assign;c=c+":"+a.id;var f=csc(a.keyboardShortcut);a:switch(b=b.getDensity(),b){case 0:b="googleMaterialDefaultDensity";break a;case 1:b="workspaceMaterialComfortableDensity";break a;case 2:b="workspaceMaterialCompactDensity";break a;default:throw Error("Kg`"+
b);}d=vu(dsc,e.call(d,{},a,{id:c,keyboardShortcut:f,densityClass:b}));a.veid&&Lu({element:d,veid:a.veid,actions:["impression","pcw-click"],componentId:"peoplekitweb"});return new esc(d,a)},isc=function(a,b,c,d){var e=vu(gsc);Lu({element:e,veid:28041,actions:["impression"],componentId:"peoplekitweb"});var f=new hsc(e);a.appendChild(e);return new hv(e,b,c,f,d)},qsc=function(a,b){var c=a.getPrimaryTarget().getContactId(),d=a.getPrimaryTarget().getProfileId();if(c)return jsc(ksc(lsc(),msc(c).setEdit(!0)));
if(d)return jsc(nsc(lsc(),(new iv).setObfuscatedGaiaId(d).setEdit(!0)));var e;c=((e=a.getPrimaryTarget().getName())==null?void 0:e.getGivenName())||b;var f;b=((f=a.getPrimaryTarget().getName())==null?void 0:f.getFamilyName())||"";f=a.getTargetList().filter(function(g){return g.getTargetType()===1||g.getTargetType()===6}).map(function(g){return g.getDisplayValue()});a=a.getTargetList().filter(function(g){return g.getTargetType()===2||g.getTargetType()===7}).map(function(g){return g.getDisplayValue()});
return jsc(osc(new jv,psc((new kv).setGivenName(c).setFamilyName(b).setEmailList(f),a)))},rsc=function(a){return(a==null?0:lv(a).isValid())?{isValid:!1,errorMessage:"Name can't be an email address"}:{isValid:!0}},xsc=function(a,b,c,d){var e=Tnc(b);var f=qsc(b.result(),b.getDisplayNameWithOverrideApplied());var g=e.hovercardId;var k=e.label;var l=e.sublabel;b=e.photos;e=e.name;var r=d.description;d='<div peoplekit-id="'+mv("bN97Pc")+'"><div class="'+mv("peoplekitComponentsNameeditdialogImplDescription")+
'">';r?(d+=nv(r)+" ",f='To edit this contact permanently, use <a href="'+(mv(ov(f))+'" target="_blank" class="'+mv("peoplekitComponentsNameeditdialogImplGoogleContactsLink")+'">Google Contacts</a>.'),d+=f):(f='Show a different name to recipients of this message. To edit this contact permanently, use <a href="'+(mv(ov(f))+'" target="_blank" class="'+mv("peoplekitComponentsNameeditdialogImplGoogleContactsLink")+'">Google Contacts</a>.'),d+=f);d+='</div><div peoplekit-id="'+mv("PN08Xe")+'"></div></div>';
f=pv(d);g=qv(rv(),'<div peoplekit-id="'+mv("tJHJj")+'" class="'+mv("peoplekitComponentsDialogImplAvatarHeader")+'" data-hovercard-id="'+mv(g)+'" data-name="'+mv(e)+'"><div class="'+mv("peoplekitComponentsDialogImplHeaderRow")+'"><div class="'+mv("peoplekitComponentsDialogImplLeft")+'" aria-hidden="true">');d=pv('<div class="'+mv("peoplekitComponentsDialogImplAvatar")+'"><div class="'+mv("peoplekitComponentsDialogImplAvatarContainer")+'" peoplekit-id="'+mv("d6MZcd")+'"></div></div>');g=qv(sv(g,d),
'</div><div class="'+mv("peoplekitComponentsDialogImplCenter")+'">');k=pv('<div class="'+mv("peoplekitComponentsDialogImplLabelContainer")+'"><div peoplekit-id="'+mv("E0kCZc")+'" class="'+mv("peoplekitComponentsDialogImplLabel")+" "+mv("peoplekitComponentsDialogImplLabelRow")+'" translate="no">'+ssc(tv(k))+"</div>"+(l?'<div class="'+mv("peoplekitComponentsDialogImplSublabel")+" "+mv("peoplekitComponentsDialogImplLabelRow")+'" translate="no">'+ssc(tv(l))+"</div>":"")+"</div>");k=qv(sv(g,k),"</div></div></div>");
k=vu(qpc,{content:f,header:k,confirmAction:!0,labelId:void 0});a.appendChild(k);a=wu(k,"Sx9Kwc");l=lpc(wu(k,"IbE0S"),{label:"Cancel"});g=g={confirmButtonText:void 0};g=g.confirmButtonText;f="";switch(Oa(g)?g.toString():g){case "Confirm":f+="Confirm";break;case "Hide":f+="Hide";break;case "Show":f+="Show";break;default:f+="Apply"}g=lpc(wu(k,"McfNlf"),{label:f});ppc(k,c.getTheme());npc(a,c.getStyle());g.getRoot();a=new tsc(k,l,g);k=wu(a.getRoot(),"d6MZcd");xu(k,b,36,36,c);c=wu(a.getRoot(),"PN08Xe");
b=vu(usc,{label:"Name",initialValue:e||"",id:yu(vsc)});c.appendChild(b);c=new uv(b);return new wsc(a,c)},ysc=function(a,b,c,d,e,f,g,k,l,r){a={resultType:c.result().getResultType(),avatarSize:Wrc(f.getDensity()),resultListItemAvatarSize:Ipc(f.getDensity()),parent:a,ariaParent:b,selection:c,selectionsState:d,actionRequestCallbacks:e,appearanceConfig:f,chipConfig:g,chipCustomization:l,isRightToLeft:r,clientConfig:k};k=znc(k);return Toc(Bu,k).create(a)},zsc=function(a){return JSON.stringify(a.map(function(b){return{id:String(b.getId()),
dn:b.getDisplayName()||void 0,fdn:b.getForceDisplayNameOverride()?"f":void 0}}))},Csc=function(a){return JSON.parse(a).map(function(b){var c=Asc(vv(b.id));b.dn&&c.setDisplayName(b.dn);b.fdn&&Bsc(c,!0);return c})},Dsc=function(a){return Bsc(Asc(a.id()).setDisplayName(a.getDisplayNameOverride()),a.getForceDisplayNameOverride())},Fsc=function(a,b,c,d,e,f,g,k,l,r){return new Esc(a,b,c,d,e,f,g,k,l,r)},Isc=function(a,b){var c=b.ownerDocument.defaultView.navigator;if(c.clipboard&&c.clipboard.writeText)c.clipboard.writeText(a);
else if(c=b.ownerDocument,b=b.ownerDocument.defaultView,c.queryCommandSupported("copy"))try{var d=c.createElement("div");d.setAttribute("peoplekit-id","wbLqpc");d.textContent=a;a=d;var e,f=Gsc.height;if(!f){var g=Hsc();f=g;if(a.style[g]===void 0){var k=Xta()+gj(g);a.style[k]!==void 0&&(f=k)}Gsc.height=f}(e=f)&&(a.style[e]=0);c.body.appendChild(d);var l=b.getSelection();l&&(l.selectAllChildren(d),c.execCommand("copy"))}finally{d&&c.body.removeChild(d)}},Jsc=function(a,b){a=a.map(function(c){var d=
c.result(),e=c.getDisplayNameWithOverrideApplied();switch(c.id().getType()){case 3:case 8:e=e||"Google User"}c=d.getDisplayValue();return new wv(c,e)});Isc(a.join(", "),b)},Lsc=function(a,b,c,d,e,f,g,k,l,r,w){a=new xv(a,b,c,d,e,f,g,k,l,r,w);return new Ksc(a,w)},Osc=function(a,b,c,d,e,f,g,k,l,r,w){var x=new hsc(a),C=new Msc({getPrevKeyCode:function(){return Du(a)?39:37},getNextKeyCode:function(){return Du(a)?37:39},navigatePastBegin:l.navigatePastBegin,navigatePastEnd:l.navigatePastEnd});e=Lsc(b,c,
x,d,e,f,g,k,{chipClick:function(H,J){return C.onClick(H,new yv(J))},chipContextMenu:function(H,J){C.onContextMenu(new yv(J))},chipDrop:l.chipDrop||function(){},chipEditContactMethod:l.chipEditContactMethod||function(){}},r,w);C.attach(a,e.getNavigatable());return new Nsc(e,b,c,d,r,w)},Psc=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";default:throw Error("Kg`"+a);}},Rsc=function(a){a=
a.replace(/\\"/g,"%%").matchAll(Qsc);return[].concat(q(a)).map(function(b){var c=b[0].replace(RegExp("%%","g"),'\\"');return{value:c,startIndex:b.index||0,length:c.length}})},Ssc=function(a,b){var c=Rsc(a);c=m(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,b<=d.startIndex+d.length)return d;return{startIndex:0,length:a.length,value:a}},Tsc=function(a,b){return a.length!==b.length?!1:a.length===b.length&&a.every(function(c,d){return c.equals(b[d])})},Zsc=function(a,b,c,d,e,f,g,k,l){var r=new Usc(c,
new zv(c,d,k,l),f),w=vu(Vsc,{max_height:void 0});npc(w,e.getStyle());a.appendChild(w);a=wu(w,"kE8AEc");var x=vu(Wsc,{multiSelectable:!0,orientation:"horizontal",isKeyboardFocusable:!1,ariaLabel:"Search Field"});a.appendChild(x);a=vu(Xsc,{id:yu(Ysc),ariaLabel:"",helpText:e.helpText,shouldAutofocus:e.shouldAutofocus,height:Xrc(e.getDensity()),densityClass:Psc(e.getDensity())});var C=wu(a,"BbVjBd");x.appendChild(a);f=Osc(x,c,r,d,g,e,e,f,{navigatePastEnd:function(){C.focus()},chipDrop:function(){C.focus()},
chipEditContactMethod:function(H){C.value=H;H=C.dispatchEvent;var J=$nc("input",C,"Event");H.call(C,J);C.focus()}},k,l);b=b(C);return new Av(w,f,a,b,c,r,d,k,e,l)},ctc=function(a,b,c,d,e,f){e.internal.getClearcut().setInterfaceType(4);e.internal.getClearcut().setComponentFlow(4);d.setAllowContactMethodEditing(Fi(e.internal,5));var g=vu($sc,{classes:"aU4VQc"});a.appendChild(g);Fi(e.internal,14,!0)&&d.setStyle(1);ppc(g,d.getTheme());Lu({element:g,veid:64611,actions:["impression"],componentId:"peoplekitweb"});
Soc(g,b);var k=zrc(e,d.getEntryPoint()),l=new ev,r=trc(c,l,d.getEntryPoint()),w=new Trc(f.intelligence);a=(new atc).setFilter(c.options_.getFilter()).setUseOriginalDisplayValue(d.getUseOriginalDisplayValue());a=Zsc(g,function(x){return nrc(g,x,c,l,r,k,d,e,w,b)},l,b,d,e,w,a,k);f=Irc(g,e.internal.getClearcut(),d.getEntryPoint());f.start(Urc);return new btc(g,a,l,r,f)},etc=function(a,b,c,d,e){var f=b.beginSession(function(){},e.sessionOptions||new dv);return dtc(a,b,f,c,d,e)},dtc=function(a,b,c,d,e,
f){Prc({clientConfig:e,commonConfig:d,initializeIoC:Ooc});return ctc(a,b,c,d,e,f)},ftc=function(a,b){return isFinite(a.fieldAffinity)?a.fieldAffinity:b&&Bv(a.id)&&a.id.getType()!==9?isFinite(a.itemAffinity)?a.itemAffinity:-Infinity:-Infinity},itc=function(a,b,c){if(Bv(a.id)||Bv(b.id)){var d=gtc.has(a.id.getType()),e=gtc.has(b.id.getType());if(d!==e)return d?-1:1;if(Bv(a.id)&&Bv(b.id))return htc(a,b,c,!1)}d=ftc(a,c);c=ftc(b,c);(c=d!==c?d>c?-1:1:0)||(a=!!a.isPrimary,c=a!==!!b.isPrimary?a?-1:1:0);return c},
htc=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?itc(a,b,c):0},ktc=function(a){return a?jtc.get(a)||0:0},otc=function(a){switch(a.getValueCase()){case 2:return Cv(a.getEmail().getValue()||"");case 3:var b=a.getPhone();return b.getOriginalValue()&&b.getCanonicalValue()?(a=ltc(b.getOriginalValue()||""),b=ltc(b.getCanonicalValue()||""),!a.equals(b)&&a.getValue().startsWith(b.getValue())?a:b):ltc(b.getCanonicalValue()||
b.getDisplayValue()||b.getOriginalValue()||"");case 4:a=bm(a,mtc,4,Iv);if(a.hasProfileId())return a=a.getProfileId()||"",new Jv(8,ys(a).toLowerCase(),a);switch(wo(a,Kv)){case 2:return a=a.getEmail()||"",new Jv(6,ys(a).toLowerCase(),a);case 3:return ntc(a.getPhone()||"")}}return Lv},stc=function(a){return Bi(a,ptc,5,Ci()).map(function(b){switch(b.getIdCase()){case 1:return qtc(b.getProfileId()||"");case 2:return rtc(b.getContactId()||"");default:return null}}).filter(Boolean)},ttc=function(a,b){return xi(a,
Mv,3)&&X(a,Mv,3).getIsPlaceholder()?3:Nv(b,8)?1:0},utc=function(a){return a&&a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):-Infinity},vtc=function(a){return a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):-Infinity},wtc=function(a){return!!a&&!!Nv(a,4)},ytc=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"+xtc(a):""},Ctc=function(a){var b=void 0;if(X(a,Mv,3)){var c;b=(c=b)!=null?c:new Ov;Pv(b,ztc,X(a,Mv,3))}if(X(a,Atc,5)){var d;b=(d=b)!=null?d:new Ov;Pv(b,Btc,X(a,Atc,5))}return b},Ftc=function(a){var b=void 0;if(X(a,Dtc,9)){var c;b=(c=b)!=null?c:new Ov;Pv(b,Etc,X(a,Dtc,9))}return b},Htc=function(a){var b=new Qv,c=a?2:1;Gtc(b.setEventType(4),c).setToken(a);return b},Jtc=function(a,b){var c=new Rv;c=(new Qv).setLookupInfo(c);
Sv(c.setEventType(6),9).setItemCount(a.length).setQueryScope(Itc.get(b)||0);return c},Ktc=function(){var a=new Qv;Sv(a.setEventType(6),10);return a},Ltc=function(){var a=new Qv;Sv(a.setEventType(6),2);return a},Mtc=function(){var a=new Qv;Sv(a.setEventType(6),13);return a},Ntc=function(a,b){var c=new Qv;Sv(c.setEventType(6),6).setQueryLength(a.length).setQueryScope(Itc.get(b)||0);return c},Otc=function(a){var b=new Qv;Sv(b.setEventType(6),5).setQueryScope(Itc.get(a)||0);return b},Ptc=function(a,b){switch(a){case 8:case 3:case 17:return(new Tv).setProfileId(b);
case 1:case 6:return(new Tv).setEmail(b);case 7:case 2:return(new Tv).setPhone(b);case 13:case 14:return a=new Tv,Bo(a,4,Uv,b);case 4:case 9:return(new Tv).setContactId(b);default:return null}},Stc=function(a){return((a=Bi(a,Qtc,2,Ci()).find(function(b){return Vv(b,1)===1}))?Rtc.get(Vv(a,2)):0)||0},Wv=function(a){return(a||"").trim()},Xtc=function(a,b){if(b.hasAffinity()){var c=a.setFieldLoggingId;var d=b.getAffinity();d=xsa(fm(d,1,void 0,Xv,uc));c.call(a,Ttc(Wv(d)))}if(b.hasName()){var e=b.getName();
c=a.setName;d=(new Utc).setDisplayName(e.getValue()).setGivenName(e.getGivenName()).setFamilyName(e.getFamilyName());var f=d.setSourceType;a:switch(e.getSourceType()){case 1:e=3;break a;case 2:e=4;break a;default:e=0}c.call(a,f.call(d,e))}b.hasPhoto()&&(b=b.getPhoto(),a.setPhoto((new Vtc).setUrl(b.getUrl()).setGlyph(b.getGlyph()).setType(Wtc.get(b.getType())||0)))},Ztc=function(a,b){if(b.hasProfileId())switch(wo(b,Kv)){case 2:var c=Wv(b.getEmail());return Ytc(Yv(a.id).setValue(Wv(b.getProfileId())),
(new Zv).setType(1).setValue(c));case 3:return c=Wv(b.getPhone()),Ytc(Yv(a.id).setValue(Wv(b.getProfileId())),(new Zv).setType(2).setValue(c));default:return b=Wv(b.getProfileId()),Yv(a.id).setValue(b)}switch(wo(b,Kv)){case 2:return b=Wv(b.getEmail()),Ytc(Yv(a.id).setValue(b),(new Zv).setType(1).setValue(b));case 3:return b=Wv(b.getPhone()),Ytc(Yv(a.id).setValue(b),(new Zv).setType(2).setValue(b));default:return b=Wv(b.getProfileId()),Yv(a.id).setValue(b)}},buc=function(a,b){var c=Yv(a.id).setIsMe(!!a.isMe);
a.containerIds&&(c.sourceIds_=a.containerIds||[]);b&&Xtc(c,b);a.group&&((b=Bi(a.group,$tc,6,Ci()).find(function(d){return lr(d,1,auc)!=null}))?c.setValue(Wv($v(b,1,auc))):a.group.hasGroupId()&&c.setValue(Wv(a.group.getGroupId())));a.targetExtendedData&&c.setExtendedData(a.targetExtendedData);a.target=c},euc=function(a){return function c(){var d,e;return cuc(c,function(f){switch(f.nextAddress){case 1:Yd(f,2),d=0;case 4:if(!(d<a)){f.jumpTo(2);break}e=duc;return z(f,d,7);case 7:e(f.yieldResult);d++;
f.jumpTo(4);break;case 2:Xd(f),Zd(f,0)}})}()},guc=function(a){return new fuc(a)},juc=function(a){if(a.getTargetType()===8){var b=a.getOriginatingField();if(b&&(b=b.getType(),b=huc.get(b)))return b}return(b=iuc.get(a.getTargetType()))?b:Bv(a.getId())?8:0},luc=function(a,b,c){var d=new aw,e=new bw;Mi(d,bw,2,e);e.setProvenance(b);b=new cw;Mi(d,cw,1,b);Oi(b,9,c===1);b.setProfileId(a.getProfileId()||null);b.setContactId(a.getContactId()||null);c=juc(a)===8?8:a.getProfileId()?3:4;Gn(b,8,c);c=null;a.getTargetType()===
8&&(e=a.getOriginatingField())&&huc.has(e.getType())&&(c=e.getValue());c||(c=a.getValue());c&&b.setFieldValue(c);Bv(a.getId())||b.setName(a.getName()?a.getName().getDisplayName():null);c=juc(a);Gn(b,7,c);b.setFieldLoggingId(a.getFieldLoggingId()||null);b.setPersonLoggingId(a.getPersonLoggingId()||null);b.setIsPlaceholder(a.getDataSource()===3);vp(b,7)===8&&b.setGroupId(a.getId().getValue());return new kuc(a,d)},nuc=function(a){a=muc.indexOf(a.provenance);return a<0?muc.length:a},ouc=function(a){return a.containerIds&&
a.containerIds.some(function(b){return b.getType()===3})},puc=function(a){var b;return(new Set(((b=a.containerIds)!=null?b:[]).map(String))).size},ruc=function(a,b){b.getUseOriginalDisplayValue()&&(a=new Map(Array.from(a,function(c){var d=m(c);c=d.next().value;d=d.next().value;if(c.equals(d.getPrimaryTarget().getId())&&c.getOriginalValue()!==d.getDisplayValue()&&d.getPrimaryTarget().getValue()===d.getDisplayValue()){var e=c.getOriginalValue(),f=d.getPrimaryTarget();d=pgb(d,new quc(f,e))}return[c,
d]})));return a},uuc=function(a){return Fi(a,21)?new suc:tuc},vuc=function(a){return a!==0&&a!==12},xuc=function(a){var b=[],c=a.indexOf("@");if(c>=0&&a.length-c>1){var d=a.substring(c);b.push(d);c===0&&d.indexOf(".")<0&&wuc(b,d.substring(c+1));a=a.substring(0,c+1)}if(a==="@")return b;wuc(b,a);return b},wuc=function(a,b){a.push(b);var c=b.length+1;yuc.lastIndex=0;for(var d=yuc.exec(b);d&&d.index<c;d=yuc.exec(b))a.push(b.substring(Number(yuc.lastIndex)))},dw=function(a){a=zuc(a);for(var b=[],c=0,d=
0;d<a.length;d++){var e=a.charCodeAt(d);if(e<192||e>382)e=null;else{var f=Auc[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))}b.length>0&&(b.push(a.substr(c)),a=b.join(""));return a.replace(Buc,"").toUpperCase().toLowerCase()},Duc=function(a){a=Array.from(a).flatMap(function(f){return(f||
"").split(Cuc)}).filter(Boolean);if(!a.length)return a;var b=new Set;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=dw(c.value);c=m(xuc(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})},Euc=function(a){return a.substring(a.indexOf("@")+1)},Fuc=function(a){return a.substring(0,a.indexOf("@")+1)},Iuc=function(a,b){a=a.match(Guc);b=Cv(b);return a&&a.length&&(a=a[0]||"")&&
!b.equals(Cv(a.replace(Huc,"")))?!0:!1},Juc=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()||e.getCode()!==0)c++,b(d)}}},Nuc=function(a,b,c,d){b=Kuc(a,b).map(function(e){var f=m(e);e=f.next().value;f=f.next().value;return new Luc(e,f)});c=Kuc(a,c).map(function(e){var f=m(e);e=f.next().value;f=f.next().value;return new Luc(e,f)});a=
Kuc(a,d).map(function(e){var f=m(e);e=f.next().value;f=f.next().value;return new Luc(e,f)});return new Muc(b,c,a)},Ouc=function(a){switch(a.getType()){case 1:case 6:return 1;case 2:case 7:return 2;case 17:case 3:case 8:case 5:return 3;case 13:case 14:return 13;case 4:case 9:return 4;default:return 0}},Puc=function(a){return a.reduce(function(b,c){var d=Ouc(c);if(b.has(d)){var e;(e=b.get(d))==null||e.push(c)}else b.set(d,[c]);return b},new Map)},Quc=function(a,b){b=b===void 0?new ew:b;var c=new Map;
a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=m(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}},Suc=function(a,b){return!a||a instanceof Ruc?a:new Ruc(a,b)},Uuc=function(a){var b=new Tuc,c=b.setQueryId(Zm(Qb(fm(a,3)))).setSelectionId(Zm(Qb(fm(a,4)))),d=Zm(Qb(fm(a,5)));vn(c,3,d).setInstanceId(a.getInstanceIdOrUndefined()).setAffinityVersion(a.getAffinityVersionOrUndefined());return b},Wuc=function(a){var b=new Vuc,c;if(a=
(c=X(a,fw,18))==null?void 0:c.getSessionState())c=Uuc(a),Mi(b,Tuc,2,c);return b},Yuc=function(a){return Xuc.get(a)||0},avc=function(a,b){var c=Zuc($uc("PeopleStore").setLogSource(wi(a,4,574)).setApplication(a.getSocialApplication()).setEnvironment(b.getPeopleApiEnv()).setVersion("1004").setBaselineCl(826638166).setEnableClearcut(a.getEnableClearcut()),[].concat(q(b.getExperiments().getExperimentIdsList()),q(gw?gw.getExperimentIds():[]))).setClientAgent(2);b.getClearcutUrl()&&c.setClearcutUrl(b.getClearcutUrl());
if(a=Bi(a,hw,5,Ci()).find(function(d){return d.getEntryPoint()===0}))c.setEventSource(vp(a,4)),c.setEventSourceId(vp(a,4));return c},cvc=function(a,b){return new bvc(a,b)},dvc=function(a){xi(a,iw,12)?(a=X(a,iw,12),a=X(a,hw,2)):a=X(a,hw,10);return a||new hw},evc=function(a){xi(a,iw,12)?(a=X(a,iw,12),a=X(a,hw,3)):a=X(a,hw,10);return a||new hw},fvc=function(a){return a.filter(function(b){var c,d=(c=Yu(b))==null?void 0:wi(c,4),e;return((e=b.getInfo())==null?void 0:wi(e,8))!==3||d!==2&&d!==1?!0:!1})},
hvc=function(a){return a.filter(function(b){var c;return(b=(c=b.getInfo())==null?void 0:c.getFieldType())&&gvc.has(b)?!1:!0})},ivc=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)},jvc=function(a){if(!a.hasSessionState())return"";a=a.getSessionState();return pn(a,3)+":"+pn(a,4)+":"+pn(a,5)+":"+a.getInstanceId()},kvc=function(a){return xi(a,bw,2)?Yu(a).getContext()||0:0},lvc=function(a){var b=new Map;a=m(a);for(var c=a.next();!c.done;c=
a.next()){c=c.value;var d=c.getSessionState();d=d?pn(d,3)+"-"+pn(d,4)+"-"+pn(d,5)+"-"+d.getInstanceId():"";b.has(d)?b.get(d).push(c):b.set(d,[c])}return Array.from(b.values())},jw=function(a,b,c,d){d=d===void 0?!1:d;a=a.filter(function(g){return!Fi(g,4)});if(d){d=m(a);for(var e=d.next();!e.done;e=d.next())Oi(e.value,4,!0)}if(c)for(d=a.filter(function(g){return g&&!g.hasSessionState()}),d=m(d),e=d.next();!e.done;e=d.next())e.value.setSessionState(c.clone());a=lvc(a);c=[];a=m(a);for(d=a.next();!d.done;d=
a.next())if(d=d.value,e=d.find(function(g){return g&&g.hasSessionState()})){e=e.getSessionState();var f=new mvc;f.setSessionState(e);f.setEventType(b);Ni(f,3,d);f.setEventSources(X(e,hw,10));c.push(f)}return c},nvc=function(a){var b;a=a.getMetadata();a.hasCacheState()&&(a=a.getCacheState(),a.hasSource()&&(b=a.getSource()));return b||new kw},rvc=function(a,b,c){var d=ovc(b.getTargetType(),b.getValue()),e=[],f=e.concat;var g=Cm(b,5,Ci());g=q(g.map(qtc));var k=q(Cm(b,6,Ci()).map(rtc));var l=Cm(b,13,
Ci());e=f.call(e,g,k,q(l.map(pvc)));qvc.includes(d.getType())&&e.push(d);return{id:d,containerIds:e,dataSource:Cm(b,6,Ci()).length?1:2,isMe:!!b.getIsMe(),isPrimary:a.getTargetList()[0]===b,itemAffinity:a.hasAffinity()?a.getAffinity().getValue():-Infinity,fieldAffinity:b.hasAffinity()?b.getAffinity().getValue():-Infinity,provenance:c,resultExtendedData:a.hasExtendedData()?a.getExtendedData():void 0,targetData:b,resultData:a}},svc=function(a){return(a||"").trim()},vvc=function(a){var b=a.resultData,
c=a.targetData,d=Yv(a.id).setDataSource(a.dataSource||0).setIsMe(!!a.isMe);a.containerIds&&(d.sourceIds_=a.containerIds||[]);jm(b,1)&&d.setResultType(b.getResultType());c.hasValue()&&d.setValue(svc(c.getValue()));c.hasCanonicalValue()&&d.setCanonicalValue(svc(c.getCanonicalValue()));c.hasDescription()&&d.setDescription(c.getDescription());if(c.hasName()){var e=c.getName();d.setName((new Utc).setDisplayName(e.getDisplayName()).setGivenName(e.getGivenName()).setFamilyName(e.getFamilyName()).setSourceType(e.getSourceType()))}c.hasPhoto()&&
(e=c.getPhoto(),d.setPhoto((new Vtc).setUrl(e.getUrl()).setType(e.getType()).setSourceType(e.getSourceType()).setGlyph(e.getGlyph())));if(kn(b,4)){var f;a.totalMemberCount=(f=b.getTotalMemberCount())!=null?f:void 0}b.hasAffinity()&&d.setPersonLoggingId(b.getAffinity().getLoggingId()||"");c.hasAffinity()&&d.setFieldLoggingId(c.getAffinity().getLoggingId()||"");jm(c,10)&&d.setOrgState(c.getOrgState());c.hasDataSource()&&d.setDataSource(c.getDataSource());c.getTagList().length&&d.setTagList(c.getTagList().map(function(g){return(new lw).setAltText(g.getAltText()).setIconUrl(g.getIconUrl())}));
c.hasExtendedData()&&d.setExtendedData(c.getExtendedData());xi(c,mw,9)&&(a=c.getEmailSecurityInfo(),d.setEmailSecurityInfo(tvc(a.getCertificateStatus(),Ym(a.getCertificateExpirySec()),a.getEncryptionSupport()==4||a.getEncryptionSupport()==2)));xi(c,nw,17)&&(c=c.getReachabilityInfo(),d.setReachabilityInfo(new uvc(c.getReachabilityStatus(),c.getClientData())));return d},xvc=function(a){a.cacheConfigurators_.push(new wvc);return a},yvc=function(){var a=window.gapi;if(!a)return Promise.reject(Error("ch"));
if(a.client&&a.client.load)return Promise.resolve(a);Vm("loading gapi client");return new Promise(function(b,c){a.load("client",{callback:function(){Vm("gapi client has finished loading");b(a)},onerror:c})})},zvc=function(a,b){var c={};return Eh("a",(c.href=b,c.target="_blank",c.rel="noopener noreferrer nofollow",c),a)},Cvc=function(){return p(uu).getEnvironmentType()==="QA"?Avc:Bvc},Fvc=function(){return p(uu).getEnvironmentType()==="QA"?Dvc:Evc},Ivc=function(){return p(uu).getEnvironmentType()===
"QA"?Gvc:Hvc},Jvc=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},Kvc=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},Lvc=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");
},da=Lvc(this),Mvc="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");da.BigInt64Array&&(Mvc.push("BigInt64"),Mvc.push("BigUint64"));
var Ovc=function(a,b){if(b)for(var c=0;c<Mvc.length;c++)Nvc(Mvc[c]+"Array.prototype."+a,b)},ow=function(a,b){b&&Nvc(a,b)},Nvc=function(a,b){var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))return;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&Kvc(c,a,{configurable:!0,writable:!0,value:b})},Pvc=function(){function a(){function c(){}new c;Reflect.construct(c,[],function(){});return new c instanceof c}if(typeof Reflect!="undefined"&&Reflect.construct){if(a())return Reflect.construct;
var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){e===void 0&&(e=c);e=Jvc(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),Qvc;if(typeof Object.setPrototypeOf=="function")Qvc=Object.setPrototypeOf;else{var Rvc;a:{var Svc={a:!0},Tvc={};try{Tvc.__proto__=Svc;Rvc=Tvc.a;break a}catch(a){}Rvc=!1}Qvc=Rvc?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError("b`"+a);return a}:null}
var pw=Qvc,Y=function(a,b){a.prototype=Jvc(b.prototype);a.prototype.constructor=a;if(pw)pw(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.superClass_=b.prototype},Uvc=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},m=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:Uvc(a)};
throw Error("c`"+String(a));},hj=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},q=function(a){return a instanceof Array?a:hj(m(a))},rw=function(a){return qw(a,a)},qw=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a},sw=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},Vvc=typeof Object.assign=="function"?Object.assign:function(a,b){if(a==null)throw new TypeError("d");a=Object(a);for(var c=1;c<arguments.length;c++){var d=arguments[c];
if(d)for(var e in d)sw(d,e)&&(a[e]=d[e])}return a};ow("Object.assign",function(a){return a||Vvc});var tw=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};tw.prototype.start_=function(){if(this.isRunning_)throw new TypeError("f");this.isRunning_=!0};tw.prototype.next_=function(a){this.yieldResult=a};
tw.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.nextAddress=this.catchAddress_||this.finallyAddress_};tw.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};var z=function(a,b,c){a.nextAddress=c;return{value:b}};tw.prototype.jumpTo=function(a){this.nextAddress=a};
var ae=function(a){a.nextAddress=0},Wd=function(a,b,c){a.catchAddress_=b;c!=void 0&&(a.finallyAddress_=c)},Yd=function(a,b){a.catchAddress_=0;a.finallyAddress_=b||0},dt=function(a,b){a.nextAddress=b;a.catchAddress_=0},$d=function(a){a.catchAddress_=0;var b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b},Xd=function(a,b,c,d){d?a.finallyContexts_[d]=a.abruptCompletion_:a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=b||0;a.finallyAddress_=c||0},Zd=function(a,b,c){c=a.finallyContexts_.splice(c||
0)[0];(c=a.abruptCompletion_=a.abruptCompletion_||c)?c.isException?a.nextAddress=a.catchAddress_||a.finallyAddress_:c.jumpTo!=void 0&&a.finallyAddress_<c.jumpTo?(a.nextAddress=c.jumpTo,a.abruptCompletion_=null):a.nextAddress=a.finallyAddress_:a.nextAddress=b},Wvc=function(a){this.context_=new tw;this.program_=a};
Wvc.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return Xvc(this,this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return Yvc(this)};var Zvc=function(a,b){a.context_.start_();var c=a.context_.yieldAllIterator_;if(c)return Xvc(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.context_.return);a.context_.return(b);return Yvc(a)};
Wvc.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return Xvc(this,this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return Yvc(this)};
var Xvc=function(a,b,c,d){try{var e=b.call(a.context_.yieldAllIterator_,c);if(!(e instanceof Object))throw new TypeError("e`"+e);if(!e.done)return a.context_.isRunning_=!1,e;var f=e.value}catch(g){return a.context_.yieldAllIterator_=null,a.context_.throw_(g),Yvc(a)}a.context_.yieldAllIterator_=null;d.call(a.context_,f);return Yvc(a)},Yvc=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}},$vc=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return Zvc(a,b)};this[Symbol.iterator]=function(){return this}},cuc=function(a,b){b=new $vc(new Wvc(b));pw&&a.prototype&&pw(b,a.prototype);
return b},awc=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})},y=function(a){return awc(new $vc(new Wvc(a)))};
ow("Symbol",function(a){if(a)return a;var b=function(f,g){this.$jscomp$symbol$id_=f;Kvc(this,"description",{configurable:!0,writable:!0,value:g})};b.prototype.toString=function(){return this.$jscomp$symbol$id_};var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("g");return new b(c+(f||"")+"_"+d++,f)};return e});
ow("Symbol.iterator",function(a){if(a)return a;a=Symbol("h");Kvc(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return bwc(Uvc(this))}});return a});ow("Symbol.asyncIterator",function(a){return a?a:Symbol("i")});ow("Symbol.toStringTag",function(a){return a?a:Symbol("j")});
var bwc=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},yha=function(a){this[Symbol.asyncIterator]=function(){return this};this[Symbol.iterator]=function(){return a};this.next=function(b){return Promise.resolve(a.next(b))};this["throw"]=function(b){return new Promise(function(c,d){var e=a["throw"];e!==void 0?c(e.call(a,b)):(c=a["return"],c!==void 0&&c.call(a),d(new TypeError("k")))})};a["return"]!==void 0&&(this["return"]=function(b){return Promise.resolve(a["return"](b))})},
$c=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b},duc=function(a){return a};ow("globalThis",function(a){return a||da});ow("Reflect",function(a){return a?a:{}});ow("Reflect.construct",function(){return Pvc});ow("Reflect.setPrototypeOf",function(a){return a?a:pw?function(b,c){try{return pw(b,c),!0}catch(d){return!1}}:null});
ow("Promise",function(a){function b(){this.batch_=null}function c(g){return g instanceof e?g:new e(function(k){k(g)})}if(a)return a;b.prototype.asyncExecute=function(g){if(this.batch_==null){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(g)};var d=da.setTimeout;b.prototype.asyncExecuteFunction=function(g){d(g,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var g=this.batch_;this.batch_=[];for(var k=0;k<g.length;++k){var l=
g[k];g[k]=null;try{l()}catch(r){this.asyncThrow_(r)}}}this.batch_=null};b.prototype.asyncThrow_=function(g){this.asyncExecuteFunction(function(){throw g;})};var e=function(g){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{g(k.resolve,k.reject)}catch(l){k.reject(l)}};e.prototype.createResolveAndReject_=function(){function g(r){return function(w){l||(l=!0,r.call(k,w))}}var k=this,l=!1;return{resolve:g(this.resolveTo_),
reject:g(this.reject_)}};e.prototype.resolveTo_=function(g){if(g===this)this.reject_(new TypeError("l"));else if(g instanceof e)this.settleSameAsPromise_(g);else{a:switch(typeof g){case "object":var k=g!=null;break a;case "function":k=!0;break a;default:k=!1}k?this.resolveToNonPromiseObj_(g):this.fulfill_(g)}};e.prototype.resolveToNonPromiseObj_=function(g){var k=void 0;try{k=g.then}catch(l){this.reject_(l);return}typeof k=="function"?this.settleSameAsThenable_(k,g):this.fulfill_(g)};e.prototype.reject_=
function(g){this.settle_(2,g)};e.prototype.fulfill_=function(g){this.settle_(1,g)};e.prototype.settle_=function(g,k){if(this.state_!=0)throw Error("m`"+g+"`"+k+"`"+this.state_);this.state_=g;this.result_=k;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};e.prototype.scheduleUnhandledRejectionCheck_=function(){var g=this;d(function(){if(g.notifyUnhandledRejection_()){var k=da.console;typeof k!=="undefined"&&k.error(g.result_)}},1)};e.prototype.notifyUnhandledRejection_=
function(){if(this.isRejectionHandled_)return!1;var g=da.CustomEvent,k=da.Event,l=da.dispatchEvent;if(typeof l==="undefined")return!0;typeof g==="function"?g=new g("unhandledrejection",{cancelable:!0}):typeof k==="function"?g=new k("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.result_;return l(g)};e.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var g=
0;g<this.onSettledCallbacks_.length;++g)f.asyncExecute(this.onSettledCallbacks_[g]);this.onSettledCallbacks_=null}};var f=new b;e.prototype.settleSameAsPromise_=function(g){var k=this.createResolveAndReject_();g.callWhenSettled_(k.resolve,k.reject)};e.prototype.settleSameAsThenable_=function(g,k){var l=this.createResolveAndReject_();try{g.call(k,l.resolve,l.reject)}catch(r){l.reject(r)}};e.prototype.then=function(g,k){function l(C,H){return typeof C=="function"?function(J){try{r(C(J))}catch(O){w(O)}}:
H}var r,w,x=new e(function(C,H){r=C;w=H});this.callWhenSettled_(l(g,r),l(k,w));return x};e.prototype.catch=function(g){return this.then(void 0,g)};e.prototype.callWhenSettled_=function(g,k){function l(){switch(r.state_){case 1:g(r.result_);break;case 2:k(r.result_);break;default:throw Error("n`"+r.state_);}}var r=this;this.onSettledCallbacks_==null?f.asyncExecute(l):this.onSettledCallbacks_.push(l);this.isRejectionHandled_=!0};e.resolve=c;e.reject=function(g){return new e(function(k,l){l(g)})};e.race=
function(g){return new e(function(k,l){for(var r=m(g),w=r.next();!w.done;w=r.next())c(w.value).callWhenSettled_(k,l)})};e.all=function(g){var k=m(g),l=k.next();return l.done?c([]):new e(function(r,w){function x(J){return function(O){C[J]=O;H--;H==0&&r(C)}}var C=[],H=0;do C.push(void 0),H++,c(l.value).callWhenSettled_(x(C.length-1),w),l=k.next();while(!l.done)})};return e});var uw=function(a,b,c){if(a==null)throw new TypeError("o`"+c);if(b instanceof RegExp)throw new TypeError("p`"+c);return a+""};
ow("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=uw(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});ow("Object.setPrototypeOf",function(a){return a||pw});ow("Symbol.dispose",function(a){return a?a:Symbol("q")});
var cwc=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};ow("Array.prototype.keys",function(a){return a?a:function(){return cwc(this,function(b){return b})}});ow("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
var dwc=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}};ow("Array.prototype.find",function(a){return a?a:function(b,c){return dwc(this,b,c).v}});
ow("WeakMap",function(a){function b(){}function c(l){var r=typeof l;return r==="object"&&l!==null||r==="function"}function d(l){if(!sw(l,f)){var r=new b;Kvc(l,f,{value:r})}}function e(l){var r=Object[l];r&&(Object[l]=function(w){if(w instanceof b)return w;Object.isExtensible(w)&&d(w);return r(w)})}if(function(){if(!a||!Object.seal)return!1;try{var l=Object.seal({}),r=Object.seal({}),w=new a([[l,2],[r,3]]);if(w.get(l)!=2||w.get(r)!=3)return!1;w.delete(l);w.set(r,4);return!w.has(l)&&w.get(r)==4}catch(x){return!1}}())return a;
var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var g=0,k=function(l){this.id_=(g+=Math.random()+1).toString();if(l){l=m(l);for(var r;!(r=l.next()).done;)r=r.value,this.set(r[0],r[1])}};k.prototype.set=function(l,r){if(!c(l))throw Error("r");d(l);if(!sw(l,f))throw Error("s`"+l);l[f][this.id_]=r;return this};k.prototype.get=function(l){return c(l)&&sw(l,f)?l[f][this.id_]:void 0};k.prototype.has=function(l){return c(l)&&sw(l,f)&&sw(l[f],this.id_)};k.prototype.delete=
function(l){return c(l)&&sw(l,f)&&sw(l[f],this.id_)?delete l[f][this.id_]:!1};return k});
ow("Map",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var k=Object.seal({x:4}),l=new a(m([[k,"s"]]));if(l.get(k)!="s"||l.size!=1||l.get({x:4})||l.set({x:4},"t")!=l||l.size!=2)return!1;var r=l.entries(),w=r.next();if(w.done||w.value[0]!=k||w.value[1]!="s")return!1;w=r.next();return w.done||w.value[0].x!=4||w.value[1]!="t"||!r.next().done?!1:!0}catch(x){return!1}}())return a;var b=new WeakMap,c=function(k){this[0]={};this[1]=
f();this.size=0;if(k){k=m(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}};c.prototype.set=function(k,l){k=k===0?0:k;var r=d(this,k);r.list||(r.list=this[0][r.id]=[]);r.entry?r.entry.value=l:(r.entry={next:this[1],previous:this[1].previous,head:this[1],key:k,value:l},r.list.push(r.entry),this[1].previous.next=r.entry,this[1].previous=r.entry,this.size++);return this};c.prototype.delete=function(k){k=d(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||delete this[0][k.id],
k.entry.previous.next=k.entry.next,k.entry.next.previous=k.entry.previous,k.entry.head=null,this.size--,!0):!1};c.prototype.clear=function(){this[0]={};this[1]=this[1].previous=f();this.size=0};c.prototype.has=function(k){return!!d(this,k).entry};c.prototype.get=function(k){return(k=d(this,k).entry)&&k.value};c.prototype.entries=function(){return e(this,function(k){return[k.key,k.value]})};c.prototype.keys=function(){return e(this,function(k){return k.key})};c.prototype.values=function(){return e(this,
function(k){return k.value})};c.prototype.forEach=function(k,l){for(var r=this.entries(),w;!(w=r.next()).done;)w=w.value,k.call(l,w[1],w[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(k,l){var r=l&&typeof l;r=="object"||r=="function"?b.has(l)?r=b.get(l):(r=""+ ++g,b.set(l,r)):r="p_"+l;var w=k[0][r];if(w&&sw(k[0],r))for(k=0;k<w.length;k++){var x=w[k];if(l!==l&&x.key!==x.key||l===x.key)return{id:r,list:w,index:k,entry:x}}return{id:r,list:w,index:-1,entry:void 0}},e=function(k,
l){var r=k[1];return bwc(function(){if(r){for(;r.head!=k[1];)r=r.previous;for(;r.next!=r.head;)return r=r.next,{done:!1,value:l(r)};r=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.previous=k.next=k.head=k},g=0;return c});
ow("Set",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(m([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)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||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;var b=function(c){this.map_=new Map;if(c){c=
m(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.map_.size};b.prototype.add=function(c){c=c===0?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});ow("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)sw(b,d)&&c.push(b[d]);return c}});ow("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});
ow("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(c<0&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});ow("String.prototype.includes",function(a){return a?a:function(b,c){return uw(this,b,"includes").indexOf(b,c||0)!==-1}});ow("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}});
ow("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(k){return k};var e=[],f=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof f=="function"){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});ow("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)sw(b,d)&&c.push([d,b[d]]);return c}});
ow("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});ow("Number.EPSILON",function(){return 2.220446049250313E-16});ow("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});ow("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});ow("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
ow("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});ow("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=uw(this,b,"endsWith");c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}});ow("Array.prototype.entries",function(a){return a?a:function(){return cwc(this,function(b,c){return[b,c]})}});
ow("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var c=Math.floor(Math.abs(b));return b<0?-c:c}});ow("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});ow("Array.prototype.values",function(a){return a?a:function(){return cwc(this,function(b,c){return c})}});
ow("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;c<0&&(c=Math.max(0,e+c));if(d==null||d>e)d=e;d=Number(d);d<0&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});Ovc("fill",function(a){return a?a:Array.prototype.fill});
ow("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError("t`"+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("u");c[d[0]]=d[1]}return c}});
ow("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("v");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
ow("Array.prototype.flat",function(a){return a?a:function(b){b=b===void 0?1:b;var c=[];Array.prototype.forEach.call(this,function(d){Array.isArray(d)&&b>0?(d=Array.prototype.flat.call(d,b-1),c.push.apply(c,d)):c.push(d)});return c}});ow("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)}});
ow("Math.imul",function(a){return a?a:function(b,c){b=Number(b);c=Number(c);var d=b&65535,e=c&65535;return d*e+((b>>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}});ow("Array.prototype.findIndex",function(a){return a?a:function(b,c){return dwc(this,b,c).i}});ow("Array.prototype.flatMap",function(a){return a?a:function(b,c){var d=[];Array.prototype.forEach.call(this,function(e,f){e=b.call(c,e,f,this);Array.isArray(e)?d.push.apply(d,e):d.push(e)});return d}});
ow("String.prototype.repeat",function(a){return a?a:function(b){var c=uw(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("w");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});ow("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;})})}});
ow("String.prototype.matchAll",function(a){return a?a:function(b){if(b instanceof RegExp&&!b.global)throw new TypeError("x");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 g=c.exec(d);if(!g)return e=!0,{value:void 0,done:!0};g[0]===""&&(c.lastIndex+=1);return{value:g,done:!1}}};f[Symbol.iterator]=function(){return f};return f}});var ewc=function(a){a=Math.trunc(a)||0;a<0&&(a+=this.length);if(!(a<0||a>=this.length))return this[a]};
ow("Array.prototype.at",function(a){return a?a:ewc});Ovc("at",function(a){return a?a:ewc});ow("String.prototype.at",function(a){return a?a:ewc});ow("Number.parseInt",function(a){return a||parseInt});ow("Reflect.isExtensible",function(a){return a?a:typeof Object.isExtensible=="function"?Object.isExtensible:function(){return!0}});ow("Reflect.getOwnPropertyDescriptor",function(a){return a||Object.getOwnPropertyDescriptor});ow("Reflect.getPrototypeOf",function(a){return a||Object.getPrototypeOf});
var fwc=function(a,b){for(;a;){var c=Reflect.getOwnPropertyDescriptor(a,b);if(c)return c;a=Reflect.getPrototypeOf(a)}};ow("Reflect.set",function(a){return a?a:function(b,c,d,e){var f=fwc(b,c);return f?f.set?(f.set.call(arguments.length>3?e:b,d),!0):f.writable&&!Object.isFrozen(b)?(b[c]=d,!0):!1:Reflect.isExtensible(b)?(b[c]=d,!0):!1}});ow("Reflect.get",function(a){return a?a:function(b,c,d){if(arguments.length<=2)return b[c];var e=fwc(b,c);if(e)return e.get?e.get.call(d):e.value}});
ow("String.prototype.codePointAt",function(a){return a?a:function(b){var c=uw(this,null,"codePointAt"),d=c.length;b=Number(b)||0;if(b>=0&&b<d){b|=0;var e=c.charCodeAt(b);if(e<55296||e>56319||b+1===d)return e;b=c.charCodeAt(b+1);return b<56320||b>57343?e:(e-55296)*1024+b+9216}}});
ow("String.fromCodePoint",function(a){return a?a:function(b){for(var c="",d=0;d<arguments.length;d++){var e=Number(arguments[d]);if(e<0||e>1114111||e!==Math.floor(e))throw new RangeError("y`"+e);e<=65535?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}});var gwc=function(a,b){a=a!==void 0?String(a):" ";return b>0&&a?a.repeat(Math.ceil(b/a.length)).substring(0,b):""};
ow("String.prototype.padEnd",function(a){return a?a:function(b,c){var d=uw(this,null,"padStart");return d+gwc(c,b-d.length)}});ow("Set.prototype.difference",function(a){return a?a:function(b){hwc(this);iwc(b);var c=jwc(this,b);b=new Set(this);var d=c.smallerSetIterator;c=c.largerSet;for(var e=d.next();!e.done;)c.has(e.value)&&b.delete(e.value),e=d.next();return b}});
ow("Set.prototype.intersection",function(a){return a?a:function(b){hwc(this);iwc(b);var c=new Set,d=jwc(this,b);b=d.smallerSetIterator;d=d.largerSet;for(var e=b.next();!e.done;)d.has(e.value)&&c.add(e.value),e=b.next();return c}});
var iwc=function(a){if(typeof a!=="object"||a===null||typeof a.size!=="number"||a.size<0||typeof a.keys!=="function"||typeof a.has!=="function")throw new TypeError("z");},jwc=function(a,b){if(a.size<=b.size)a={smallerSetIterator:a.keys(),largerSet:b};else{b=b.keys();if(typeof b!=="object"||b===null||typeof b.next!=="function")throw new TypeError("A");a={smallerSetIterator:b,largerSet:a}}return a},hwc=function(a){if(!(a instanceof Set))throw new TypeError("B");};
ow("String.prototype.padStart",function(a){return a?a:function(b,c){var d=uw(this,null,"padStart");return gwc(c,b-d.length)+d}});
ow("Math.hypot",function(a){return a?a:function(b){if(arguments.length<2)return arguments.length?Math.abs(arguments[0]):0;var c,d,e;for(c=e=0;c<arguments.length;c++)e=Math.max(e,Math.abs(arguments[c]));if(e>1E100||e<1E-100){if(!e)return e;for(c=d=0;c<arguments.length;c++){var f=Number(arguments[c])/e;d+=f*f}return Math.sqrt(d)*e}for(c=d=0;c<arguments.length;c++)f=Number(arguments[c]),d+=f*f;return Math.sqrt(d)}});ow("Array.of",function(a){return a?a:function(b){return Array.from(arguments)}});var kwc=kwc||{},ra=this||self,lwc=function(a,b){var c=Su("WIZ_global_data.oxN3nb");a=c&&c[a];return a!=null?a:b},vw=ra._F_toggles_default_b||[],Su=function(a,b){a=a.split(".");b=b||ra;for(var c=0;c<a.length;c++)if(b=b[a[c]],b==null)return null;return b},xca=function(a){var b=typeof a;return b!="object"?b:a?Array.isArray(a)?"array":b:"null"},Na=function(a){var b=xca(a);return b=="array"||b=="object"&&typeof a.length=="number"},Oa=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"},
Aba=function(a){return Object.prototype.hasOwnProperty.call(a,mwc)&&a[mwc]||(a[mwc]=++nwc)},mwc="closure_uid_"+(Math.random()*1E9>>>0),nwc=0,owc=function(a,b,c){return a.call.apply(a.bind,arguments)},pwc=function(a,b,c){if(!a)throw Error();if(arguments.length>2){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)}},mj=function(a,b,c){mj=Function.prototype.bind&&
Function.prototype.bind.toString().indexOf("native code")!=-1?owc:pwc;return mj.apply(null,arguments)},ww=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)}},qwc=function(a){(0,eval)(a)},xw=function(a,b){a=a.split(".");for(var c=ra,d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b},ac=function(a){return a},yw=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 g=Array(arguments.length-2),k=2;k<arguments.length;k++)g[k-2]=arguments[k];return b.prototype[e].apply(d,g)}};var zw=function(a,b,c,d){var e=arguments.length,f=e<3?b:d===null?d=Object.getOwnPropertyDescriptor(b,c):d,g;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")f=Reflect.decorate(a,b,c,d);else for(var k=a.length-1;k>=0;k--)if(g=a[k])f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f;e>3&&f&&Object.defineProperty(b,c,f)},rwc=function(a){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata("design:type",a)};var swc={agentDisplayName:"Default Duckie",agentDescription:"The default Duckie you know and love."},Aw={agentId:"duckie_on_goose",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"Big Bird",agentDescription:"The default Duckie you know and love, on a larger model.",iconName:"spark"},Bw={agentId:"duckie_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Agentic Search",agentDescription:"Experimental Duckie with function calling enabled.",showExperimentalIcon:!0,iconName:"search_spark"},
Cw={agentId:"duckie_dynamic",modelId:"gemini_pro-2.5-prev-x3",agentDisplayName:"Dynamic RAG",agentDescription:"Experimental Duckie with function calling enabled.",showExperimentalIcon:!0,iconName:"search_spark"},twc={agentId:"nexus_experimental_dynamic",modelId:"gemini_flash-2.5",agentDisplayName:"Nexus",agentDescription:"Experimental Duckie with Nexus integration."},uwc={agentId:"spanner_experimental_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Spanner",agentDescription:"Experimental Duckie with Spanner integration."},
vwc=[swc,Bw,{agentId:"nexus_dynamic",modelId:"gemini_flash-2.5",agentDisplayName:"Nexus",agentDescription:"Duckie with Nexus integration."},twc,{agentId:"search_debug_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Search Debug",agentDescription:"Duckie with Search Debug (go/search-applied-ai) integration."},uwc,{agentId:"quil_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Quil",agentDescription:"Duckie with QuIL (go/quil) integration."},{agentId:"datanexus_dynamic",modelId:"gemini_flash-2.5-x3",
agentDisplayName:"DataNexus",agentDescription:"Duckie with DataNexus integration."},{agentId:"a2a:devintel",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"Fieldglass Agent",agentDescription:"Duckie with DevIntel integration."},{agentId:"a2a:datanexus_gdm",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"DataNexus GDM",agentDescription:"Duckie with DataNexus GDM integration."},{agentId:"a2a:xmanager",modelId:"gemini-for-google-2.5-flash",agentDisplayName:"XManager",agentDescription:"Duckie with XManager integration."},
{agentId:"a2a:taskflow_agent",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"TaskFlow Agent",agentDescription:"Duckie with TaskFlow integration."}];var wwc={agentId:"a2a:gpp",modelId:"gemini-2.5-flash",agentDisplayName:"Production Agent",agentDescription:"Production Agent"},xwc={agentId:"a2a:gpp_experimental",modelId:"gemini-2.5-flash",agentDisplayName:"Production Agent",agentDescription:"Production Agent"};var aa=globalThis;var eaa=Object.getOwnPropertyDescriptor,jaa=Object.defineProperty,naa=Object.getPrototypeOf,Baa=Object.create,Caa=Array.prototype.slice,Iaa=ba("addEventListener"),Jaa=ba("removeEventListener"),raa=ba(""),ywc=typeof window!=="undefined",zwc=ywc?window:void 0,fa=ywc&&zwc||globalThis,Awc=typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope,uaa=!("nw"in fa)&&typeof fa.process!=="undefined"&&fa.process.toString()==="[object process]",Daa=!uaa&&!Awc&&!(!ywc||!zwc.HTMLElement),Eaa=typeof fa.process!==
"undefined"&&fa.process.toString()==="[object process]"&&!Awc&&!(!ywc||!zwc.HTMLElement),haa={},Bwc=ba("enable_beforeunload"),iaa=function(a){if(a=a||fa.event){var b=haa[a.type];b||(b=haa[a.type]=ba("ON_PROPERTY"+a.type));var c=this||a.target||fa;b=c[b];Daa&&c===zwc&&a.type==="error"?(c=a,c=b&&b.call(this,c.message,c.filename,c.lineno,c.colno,c.error),c===!0&&a.preventDefault()):(c=b&&b.apply(this,arguments),a.type==="beforeunload"&&fa[Bwc]&&typeof c==="string"?a.returnValue=c:c==void 0||c||a.preventDefault());
return c}},ja=ba("originalInstance");var waa={useG:!0},la={},vaa={},yaa=new RegExp("^"+raa+"(\\w+)(true|false)$"),taa=ba("propagationStopped");var Haa=ba("zoneTask");yw(pa,Error);pa.prototype.name="CustomError";var Cwc;yw(Maa,pa);Maa.prototype.name="AssertionError";var Raa=void 0,Paa,Qaa,Dwc=typeof TextDecoder!=="undefined",Vaa,Uaa=typeof String.prototype.isWellFormed==="function",Taa=typeof TextEncoder!=="undefined";var Ewc=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);e<128?b[c++]=e:(e<2048?b[c++]=e>>6|192:((e&64512)==55296&&d+1<a.length&&(a.charCodeAt(d+1)&64512)==56320?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};var Aa=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Fwc=/&/g,Gwc=/</g,Hwc=/>/g,Iwc=/"/g,Jwc=/'/g,Kwc=/\x00/g,Lwc=/[\x00&<>"']/;var Mwc=!!(vw[0]>>17&1),Nwc=!!(vw[0]&4096),Owc=!!(vw[0]>>18&1),Pwc=!!(vw[0]&16),Qwc=!!(vw[0]&256),Rwc=!!(vw[0]&32);var aba=Mwc?Owc:lwc(610401301,!1),rIb=Mwc?Pwc:lwc(1331761403,!1),Pda=Mwc?Nwc||!Qwc:lwc(748402147,!0),Swc=Mwc?Rwc:lwc(824648567,!1);var Ca,Twc=ra.navigator;Ca=Twc?Twc.userAgentData||null:null;var tba=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ja=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)},Uwc=Array.prototype.filter?function(a,b){return Array.prototype.filter.call(a,
b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,f=typeof a==="string"?a.split(""):a,g=0;g<c;g++)if(g in f){var k=f[g];b.call(void 0,k,g,a)&&(d[e++]=k)}return d},Vwc=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=typeof a==="string"?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},Wwc=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,
d=typeof a==="string"?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 Xwc=function(a){Xwc[" "](a);return a};Xwc[" "]=function(){};var uoc=function(a,b){try{return Xwc(a[b]),!0}catch(c){}return!1};var Ywc=cba(),Ou=dba(),Zwc=Da("Edge"),fj=Da("Gecko")&&!(Yaa(Ba(),"WebKit")&&!Da("Edge"))&&!(Da("Trident")||Da("MSIE"))&&!Da("Edge"),ej=Yaa(Ba(),"WebKit")&&!Da("Edge"),$wc=ej&&Da("Mobile"),gv=Ha(),axc=nba(),bxc=(kba()?Ca.platform==="Linux":Da("Linux"))||oba(),cxc=lba(),dxc=mba(),exc=Da("iPad"),fxc=Da("iPod"),noc=Fa();Yaa(Ba(),"KaiOS");var gxc;
a:{var hxc="",ixc=function(){var a=Ba();if(fj)return/rv:([^\);]+)(\)|;)/.exec(a);if(Zwc)return/Edge\/([\d\.]+)/.exec(a);if(Ou)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(ej)return/WebKit\/(\S+)/.exec(a);if(Ywc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();ixc&&(hxc=ixc?ixc[1]:"");if(Ou){var jxc,kxc=ra.document;jxc=kxc?kxc.documentMode:void 0;if(jxc!=null&&jxc>parseFloat(hxc)){gxc=String(jxc);break a}}gxc=hxc}var lxc=gxc;var mxc=eba(),nxc=mba()||Da("iPod"),oxc=Da("iPad"),pxc=hba(),poc=fba(),loc=gba()&&!Fa();var qxc={},rxc=null,sxc=fj||ej,txc=sxc||typeof ra.btoa=="function",uxc=sxc||!loc&&typeof ra.atob=="function",wxc=function(a,b){b===void 0&&(b=0);vxc();b=qxc[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var g=a[e],k=a[e+1],l=a[e+2],r=b[g>>2];g=b[(g&3)<<4|k>>4];k=b[(k&15)<<2|l>>6];l=b[l&63];c[f++]=r+g+k+l}r=0;l=d;switch(a.length-e){case 2:r=a[e+1],l=b[(r&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|r>>4]+l+d}return c.join("")},xxc=function(a,b){return txc&&!b?
ra.btoa(unescape(encodeURIComponent(a))):wxc(Ewc(a),b)},Ttc=function(a){if(uxc)return ra.atob(a);var b="";yxc(a,function(c){b+=String.fromCharCode(c)});return b},zxc=function(a){var b=[];yxc(a,function(c){b.push(c)});return b},Nba=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):za("=.",a[b-1])&&(c=za("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;yxc(a,function(f){d[e++]=f});return e!==c?d.subarray(0,e):d},yxc=function(a,b){function c(l){for(;d<a.length;){var r=a.charAt(d++),w=rxc[r];if(w!=
null)return w;if(!ya(r))throw Error("S`"+r);}return l}vxc();for(var d=0;;){var e=c(-1),f=c(0),g=c(64),k=c(64);if(k===64&&e===-1)break;b(e<<2|f>>4);g!=64&&(b(f<<4&240|g>>2),k!=64&&b(g<<6&192|k))}},vxc=function(){if(!rxc){rxc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));qxc[c]=d;for(var e=0;e<d.length;e++){var f=d[e];rxc[f]===void 0&&(rxc[f]=e)}}}};var Qba=typeof Uint8Array!=="undefined",Mba=!Ou&&typeof btoa==="function",Oba=/[-_.]/g,Kba={"-":"+",_:"/",".":"="},$a={},Axc=typeof structuredClone!="undefined";var Za=function(a,b){if(b!==$a)throw Error("U");this.value_=a;if(a!=null&&a.length===0)throw Error("T");},Yba=function(a){return a?new Za(a,$a):Ya()},Ya=function(){return Bxc||(Bxc=new Za(null,$a))},Fda=function(a){var b=a.value_;if(b==null)a="";else if(typeof b==="string")a=b;else{if(Mba){for(var c="",d=0,e=b.length-10240;d<e;)c+=String.fromCharCode.apply(null,b.subarray(d,d+=10240));c+=String.fromCharCode.apply(null,d?b.subarray(d):b);b=btoa(c)}else b=wxc(b);a=a.value_=b}return a},ysa=function(a){return new Uint8Array(ec(a)||
0)};Za.prototype.isEmpty=function(){return this.value_==null};Za.prototype.sizeBytes=function(){var a=ec(this);return a?a.length:0};
var VVa=function(a){var b={};b=b.parsingErrorsAreFatal===void 0?!0:b.parsingErrorsAreFatal;if(a=ec(a)){var c=a.length;b=Dwc?Saa(a,0,c,b):Oaa(a,0,c,b)}else b="";return b},Cxc=function(a,b){if(!a.value_||!b.value_||a.value_===b.value_)return a.value_===b.value_;if(typeof a.value_==="string"&&typeof b.value_==="string"){var c=a.value_,d=b.value_;b.value_.length>a.value_.length&&(d=a.value_,c=b.value_);if(c.lastIndexOf(d,0)!==0)return!1;for(b=d.length;b<c.length;b++)if(c[b]!=="=")return!1;return!0}c=
ec(a);b=ec(b);return Rba(c,b)},ec=function(a){if($a!==$a)throw Error("U");var b=a.value_;b=b==null||Pa(b)?b:typeof b==="string"?Pba(b):null;return b==null?b:a.value_=b},cda=function(a,b){if(typeof b==="string")b=Yba(b);else if(b instanceof Uint8Array)b=new Za(b,$a);else if(!(b instanceof Za))return!1;return Cxc(a,b)},Bxc;var Sa=typeof Symbol==="function"&&typeof Symbol()==="symbol",Dxc=Ra("jas",void 0,!0),Sca=Ra(void 0,"0di"),eea=Ra(void 0,"1oa"),aea=Ra(void 0,"0dg"),bc=Ra(void 0,Symbol()),uda=Ra(void 0,"0ub"),wda=Ra(void 0,"0ubs"),psa=Ra(void 0,"0ubsb"),Rda=Ra(void 0,"0actk"),ab=Ra("m_m","messagePrototypeMarker",!0),Hda=Ra(void 0,"vps"),rda=Ra();var Tba={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}},Sba=Object.defineProperties,Ta=Sa?Dxc:"internalArrayState",nc,Exc=[];Va(Exc,7);nc=Object.freeze(Exc);var cb={},eb={},Fxc=function(a,b,c){this.iterable=a;this.mapper=b;this.thisArg=c};Fxc.prototype.next=function(){var a=this.iterable.next();a.done||(a.value=this.mapper.call(this.thisArg,a.value));return a};Fxc.prototype[Symbol.iterator]=function(){return this};var Jm=Object.freeze({}),Hsa=Object.freeze({}),jb={};var Ida={};var hca=lb(function(a){return typeof a==="number"}),gca=lb(function(a){return typeof a==="string"}),jca=lb(function(a){return typeof a==="boolean"}),P3b=lb(function(a){return!!a&&(typeof a==="object"||typeof a==="function")}),eca=lb(function(a){return Array.isArray(a)});var ica=typeof ra.BigInt==="function"&&typeof ra.BigInt(0)==="bigint";var Mb=lb(function(a){return ica?a>=Gxc&&a<=Hxc:a[0]==="-"?kca(a,Ixc):kca(a,Jxc)}),Ixc=Number.MIN_SAFE_INTEGER.toString(),Gxc=ica?BigInt(Number.MIN_SAFE_INTEGER):void 0,Jxc=Number.MAX_SAFE_INTEGER.toString(),Hxc=ica?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Kxc=typeof Uint8Array.prototype.slice==="function",nb=0,ob=0,Lxc;var vca=void 0;var Gb=typeof BigInt==="function"?BigInt.asIntN:void 0,Lb=typeof BigInt==="function"?BigInt.asUintN:void 0,Kb=Number.isSafeInteger,Ab=Number.isFinite,Jb=Math.trunc,Wca=mb(0),yca=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var nda={},Mxc=function(){try{var a=function(){return Pvc(Map,[],this.constructor)};Y(a,Map);Xwc(new a);return!1}catch(b){return!0}}(),Nxc=function(){this.map_=new Map};h=Nxc.prototype;h.get=function(a){return this.map_.get(a)};h.set=function(a,b){this.map_.set(a,b);this.size=this.map_.size;return this};h.delete=function(a){a=this.map_.delete(a);this.size=this.map_.size;return a};h.clear=function(){this.map_.clear();this.size=this.map_.size};h.has=function(a){return this.map_.has(a)};h.entries=function(){return this.map_.entries()};
h.keys=function(){return this.map_.keys()};h.values=function(){return this.map_.values()};h.forEach=function(a,b){return this.map_.forEach(a,b)};Nxc.prototype[Symbol.iterator]=function(){return this.entries()};
var Dw=function(){if(Mxc)return Object.setPrototypeOf(Nxc.prototype,Map.prototype),Object.defineProperties(Nxc.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Nxc;var a=function(){return Pvc(Map,[],this.constructor)};Y(a,Map);return a}(),Zb=function(a,b,c,d){c=c===void 0?gda:c;d=d===void 0?gda:d;var e=Dw.call(this)||this;e.arrayState=a[Ta]|0;e.valueCtor=b;e.keyToApi=c;e.valueToApi=e.valueCtor?hda:d;for(var f=0;f<a.length;f++){var g=a[f],k=c(g[0],!1,!0),l=g[1];b?l===void 0&&(l=
null):l=d(g[1],!1,!0,void 0,void 0,e.arrayState);Dw.prototype.set.call(e,k,l)}return e};Y(Zb,Dw);var Oxc=function(a){if(a.arrayState&2)throw Error("X");},Gda=function(a,b){return Vba(Array.from(Dw.prototype.entries.call(a),b))};h=Zb.prototype;h.clear=function(){Oxc(this);Dw.prototype.clear.call(this)};h.delete=function(a){Oxc(this);return Dw.prototype.delete.call(this,this.keyToApi(a,!0,!1))};
h.entries=function(){if(this.valueCtor){var a=Dw.prototype.keys.call(this);a=new Fxc(a,lda,this)}else a=Dw.prototype.entries.call(this);return a};h.values=function(){if(this.valueCtor){var a=Dw.prototype.keys.call(this);a=new Fxc(a,Zb.prototype.get,this)}else a=Dw.prototype.values.call(this);return a};h.forEach=function(a,b){this.valueCtor?Dw.prototype.forEach.call(this,function(c,d,e){a.call(b,e.get(d),d,e)}):Dw.prototype.forEach.call(this,a,b)};
h.set=function(a,b){Oxc(this);a=this.keyToApi(a,!0,!1);return a==null?this:b==null?(Dw.prototype.delete.call(this,a),this):Dw.prototype.set.call(this,a,this.valueToApi(b,!0,!0,this.valueCtor,!1,this.arrayState))};h.has=function(a){return Dw.prototype.has.call(this,this.keyToApi(a,!1,!1))};
h.get=function(a){a=this.keyToApi(a,!1,!1);var b=Dw.prototype.get.call(this,a);if(b!==void 0){var c=this.valueCtor;return c?(c=this.valueToApi(b,!1,!0,c,this.callToMutableOnAccess,this.arrayState),c!==b&&Dw.prototype.set.call(this,a,c),c):b}};var bda=function(a,b,c){return b instanceof Zb?ida(a,b,c):kda(a,b,c)};Zb.prototype[Symbol.iterator]=function(){return this.entries()};Zb.prototype.toJSON=void 0;var mda;var Ada=function(){},yda=function(a,b){for(var c in a)!isNaN(c)&&b(a,+c,a[c])},Bda=function(a){var b=new Ada;yda(a,function(c,d,e){b[d]=vb(e)});b.reviveUnknownFields=a.reviveUnknownFields;return b},sda={reviveIntoImmutable:!0};var f3a=Axc?structuredClone:function(a){return Cda(a,0,cc)},zda;var Kda,Lda;var dc=function(a,b,c){this.buffer=a;if(c&&!b)throw Error();this.isImmutable=b};var Pxc=function(a,b,c,d){this.buffer_=this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.init(a,b,c,d)};h=Pxc.prototype;
h.init=function(a,b,c,d){var e=d===void 0?{}:d;d=e.aliasBytesFields===void 0?!1:e.aliasBytesFields;e=e.treatNewDataAsImmutable===void 0?!1:e.treatNewDataAsImmutable;this.aliasBytesFields=d;this.treatNewDataAsImmutable=e;a&&(this.buffer_=a=Sda(a,this.treatNewDataAsImmutable),this.bytes_=a.buffer,this.bytesAreImmutable_=a.isImmutable,this.start_=b||0,this.end_=c!==void 0?this.start_+c:this.bytes_.length,this.cursor_=this.start_)};h.free=function(){this.clear();Qxc.length<100&&Qxc.push(this)};
h.clear=function(){this.buffer_=this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.aliasBytesFields=!1};h.getEnd=function(){return this.end_};h.setEnd=function(a){this.end_=a};h.reset=function(){this.cursor_=this.start_};h.getCursor=function(){return this.cursor_};h.advance=function(a){Rxc(this,this.cursor_+a)};
var Sxc=function(a,b){var c=0,d=0,e=0,f=a.bytes_,g=a.cursor_;do{var k=f[g++];c|=(k&127)<<e;e+=7}while(e<32&&k&128);if(e>32)for(d|=(k&127)>>4,e=3;e<32&&k&128;e+=7)k=f[g++],d|=(k&127)<<e;Rxc(a,g);if(!(k&128))return b(c>>>0,d>>>0);throw Error();},Rxc=function(a,b){a.cursor_=b;if(b>a.end_)throw Error();},Ew=function(a){var b=a.bytes_,c=a.cursor_,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&
b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw Error();Rxc(a,c);return e},Fw=function(a){var b=a.bytes_,c=a.cursor_,d=b[c],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return(d<<0|e<<8|f<<16|b<<24)>>>0},Txc=function(a){for(var b=0,c=a.cursor_,d=c+10,e=a.bytes_;c<d;){var f=e[c++];b|=f;if((f&128)===0)return Rxc(a,c),!!(b&127)}throw Error();},Uxc=function(a,b){if(b<0)throw Error();var c=a.cursor_;b=c+b;if(b>a.end_)throw Error();a.cursor_=b;return c};
Pxc.prototype.readString=function(a,b){var c=Uxc(this,a),d=this.bytes_;return Dwc?Saa(d,c,a,b):Oaa(d,c,a,b)};Pxc.prototype.readByteString=function(a){if(a==0)return Ya();var b=Uxc(this,a);if(this.aliasBytesFields&&this.bytesAreImmutable_)b=this.bytes_.subarray(b,b+a);else{var c=this.bytes_;a=b+a;b=b===a?new Uint8Array(0):Kxc?c.slice(b,a):new Uint8Array(c.subarray(b,a))}return Xba(b)};var Qxc=[];var Vxc=function(a,b,c,d){if(Qxc.length){var e=Qxc.pop();e.init(a,b,c,d);a=e}else a=new Pxc(a,b,c,d);this.decoder_=a;this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextTag_=this.nextField_=-1;this.setOptions(d)};Vxc.prototype.setOptions=function(a){a=a===void 0?{}:a;this.discardUnknownFields=a.discardUnknownFields===void 0?!1:a.discardUnknownFields};
var gsa=function(a,b,c,d){if(Wxc.length){var e=Wxc.pop();e.setOptions(d);e.decoder_.init(a,b,c,d);return e}return new Vxc(a,b,c,d)};h=Vxc.prototype;h.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=this.nextTag_=-1;Wxc.length<100&&Wxc.push(this)};h.getCursor=function(){return this.decoder_.getCursor()};h.getTag=function(){return this.nextTag_};
h.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextField_=this.nextTag_=-1};h.advance=function(a){this.decoder_.advance(a)};
var bsa=function(a){var b=a.decoder_;if(b.cursor_==b.end_)return!1;a.fieldCursor_=a.decoder_.getCursor();b=Ew(a.decoder_)>>>0;var c=b>>>3,d=b&7;if(!(d>=0&&d<=5))throw Error();if(c<1)throw Error();a.nextTag_=b;a.nextField_=c;a.nextWireType_=d;return!0},dsa=function(a){switch(a.nextWireType_){case 0:a.nextWireType_!=0?dsa(a):Txc(a.decoder_);break;case 1:a.decoder_.advance(8);break;case 2:if(a.nextWireType_!=2)dsa(a);else{var b=Ew(a.decoder_)>>>0;a.decoder_.advance(b)}break;case 5:a.decoder_.advance(4);
break;case 3:b=a.nextField_;do{if(!bsa(a))throw Error();if(a.nextWireType_==4){if(a.nextField_!=b)throw Error();break}dsa(a)}while(1);break;default:throw Error();}},Xxc=function(a,b,c){var d=a.decoder_.getEnd(),e=Ew(a.decoder_)>>>0;e=a.decoder_.getCursor()+e;var f=e-d;f<=0&&(a.decoder_.setEnd(e),c(b,a,void 0,void 0,void 0),f=e-a.decoder_.getCursor());if(f)throw Error();a.decoder_.cursor_=e;a.decoder_.setEnd(d)};Vxc.prototype.readString=function(){return Yxc(this)};
var Yxc=function(a){var b=Ew(a.decoder_)>>>0;return a.decoder_.readString(b,!0)};Vxc.prototype.readByteString=function(){var a=Ew(this.decoder_)>>>0;return this.decoder_.readByteString(a)};var Wxc=[];var Zxc=mb(0),Xv={},fm=function(a,b,c,d,e){b=tc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,c,e);if(b!==null||d&&a.noLegacyNull!==eb)return b},tc=function(a,b,c,d){if(b===-1)return null;var e=b+(c?0:-1),f=a.length-1;if(!(f<1+(c?0:-1))){if(e>=f){var g=a[f];if(g!=null&&typeof g==="object"&&g.constructor===Object){c=g[b];var k=!0}else if(e===f)c=g;else return}else c=a[e];if(d&&c!=null){d=d(c);if(d==null)return d;if(!Object.is(d,c))return k?g[b]=d:a[e]=d,d}return c}},Mr=function(a,b,c,
d){jc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;mc(e,e[Ta]|0,b,c,d);return a},xi=function(a,b,c,d){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return iea(a,a[Ta]|0,b,c,d)!==void 0},Qi=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return iea(e,e[Ta]|0,b,Hi(a,d,c))!==void 0},zi=function(a,b,c){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jea(a,d,d[Ta]|0,b,c,3).length},Gw=function(a,b,c,d,e,f){Ac(a,b,c,
f,e,d,1);return a},Ci=function(a){return a===Jm?2:4},Sn=function(a,b,c,d){a=fm(a,b,d,void 0,uc);return a==null?c===null?c:c===void 0?Ya():Yba(c):a},Hw=function(a,b,c){return Mr(a,b,void 0,c)},Iw=function(a,b){jc(a);var c=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;hea(c,c[Ta]|0,b,0);return a},Qo=function(a,b,c,d){jc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0;if(d==null){var g=fea(e);if(gea(g,e,f,c)===b)g.set(c,0);else return a}else f=hea(e,f,c,b);mc(e,
f,b,d);return a},Jw=function(a,b,c,d){var e=a[Ta]|0,f=kb(e);e=hea(a,e,c,b,f);mc(a,e,b,d,f)},Hi=function(a,b,c,d){return wo(a,b,d)===c?c:-1},wo=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return gea(fea(a),a,void 0,b,c)},Ii=function(a,b,c,d,e){jc(a);a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var f=a[Ta]|0,g=tc(a,c,e);d=d===Hsa;b=Uca(g,b,!d,f);if(!d||b)return b=Yb(b),g!==b&&(f=mc(a,f,c,b,e),kc(a,f)),b},$xc=function(a,b,c){var d=a[Ta]|0,e=kb(d),f=tc(a,c,
e);if(db(f)){if(!fb(f))return ic(f),f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var g=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(f)&&(g=f);if(g){var k=g[Ta]|0;k&2&&(g=hc(g,k))}g=Oda(g,b);g!==f&&mc(a,d,c,g,e);return g},Qmb=function(a,b,c,d){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return iea(a,a[Ta]|0,b,c,d)||b[Sca]||(b[Sca]=Tca(b))},ayc=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return iea(a,a[Ta]|0,b,
c)},X=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0;b=iea(e,f,b,c,d);if(b==null)return b;f=e[Ta]|0;if(!fb(a,f)){var g=Yb(b);g!==b&&(ic(a)&&(e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0),b=g,f=mc(e,f,c,b,d),kc(e,f))}return b},byc=function(a,b,c){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jea(a,d,d[Ta]|0,b,c,1)},Bi=function(a,b,c,d,e){var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jea(a,
f,f[Ta]|0,b,c,d,e,!1,!0)},Mi=function(a,b,c,d,e){d=kea(d);Mr(a,c,d,e);d&&!fb(d)&&kc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},Wo=function(a,b,c,d){d=kea(d);Qo(a,b,c,d);d&&!fb(d)&&kc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},Ni=function(a,b,c,d){jc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0;if(c==null)return mc(e,f,b,void 0,d),a;for(var g=c===nc?7:c[Ta]|0,k=g,l=sc(g),r=l||Object.isFrozen(c),w=!0,x=!0,C=0;C<c.length;C++){var H=
c[C];l||(H=fb(H),w&&(w=!H),x&&(x=H))}l||(g=w?13:5,g=x?g&-4097:g|4096);r&&g===k||(c=vb(c),k=0,g=oc(g,f));g!==k&&Va(c,g);f=mc(e,f,b,c,d);2&g||!(4096&g||16&g)||kc(e,f);return a},Np=function(a,b,c,d,e,f){Ac(a,b,c,f,d,e);return a},Kw=function(a,b,c,d,e){Ac(a,b,c,e,void 0,d,1,!0);return a},Mp=function(a,b,c,d,e){jc(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=jea(a,f,f[Ta]|0,c,b,2,e,!0);e=c=0;if(Array.isArray(d))for(var g=d.length,k=0;k<g;k++){var l=d[k];b.push(l);(l=fb(l))&&!c++&&
(b[Ta]&=-9);l||e++||Ua(b,4096)}else for(d=m(d),g=d.next();!g.done;g=d.next())g=g.value,b.push(g),(g=fb(g))&&!c++&&(b[Ta]&=-9),g||e++||Ua(b,4096);e&&kc(f);return a},Lw=function(a,b,c){return Pb(fm(a,b,c),!0)},Mw=function(a,b,c){a=fm(a,b,void 0,c);b=typeof a;a=a==null?a:b==="bigint"?mb(Lb(64,a)):Bb(a)?b==="string"?Nca(a):Lca(a):void 0;return a},K4a=function(a,b,c){return qc(a,b,Nb,c,void 0,0)},Qw=function(a,b,c,d,e){return qc(a,b,Qb,c,e,1024,d)},Qm=function(a,b,c){return qc(a,b,lea,1,void 0,512,c)},
Rw=function(a,b,c,d){return Fb(fm(a,b,c,d))},Sw=function(a,b,c,d){return Tb(fm(a,b,c,d))},vp=function(a,b,c,d){return Db(fm(a,b,c,d))},Fi=function(a,b,c,d){c=c===void 0?!1:c;var e;return(e=zb(fm(a,b,d)))!=null?e:c},Bm=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=Rw(a,b,d))!=null?e:c},Cp=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=Nb(fm(a,b,d)))!=null?e:c},cyc=function(a,b){var c=c===void 0?"0":c;var d;return(d=Pb(fm(a,b)))!=null?d:c},pn=function(a,b,c,d){c=c===void 0?Zxc:c;var e;return(e=
Qb(fm(a,b,d)))!=null?e:c},dyc=function(a){var b=b===void 0?Zxc:b;var c;return(c=Mw(a,23))!=null?c:b},em=function(a,b,c){c=c===void 0?0:c;var d;return(d=fm(a,b,void 0,void 0,xb))!=null?d:c},ui=function(a,b,c,d){c=c===void 0?"":c;var e;return(e=Sw(a,b,d))!=null?e:c},wi=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=vp(a,b,d))!=null?e:c},tn=function(a,b,c,d){c=c===void 0?"0":c;var e;return(e=Lw(a,b,d))!=null?e:c},nn=function(a,b,c,d){c=c===void 0?"0":c;var e;return(e=Lw(a,b,d))!=null?e:c},Dm=function(a,
b,c,d,e){return qc(a,b,Fb,c,e,void 0,d)},Tw=function(a,b,c){a=Dm(a,b,3,void 0,!0);hb(a,c);return a[c]},eyc=function(a,b){a=Qw(a,b,3,void 0,!0);hb(a);return a[void 0]},Cm=function(a,b,c,d,e){return qc(a,b,Tb,c,e,void 0,d)},Uw=function(a,b,c,d){a=Cm(a,b,3,d,!0);hb(a,c);return a[c]},wn=function(a,b,c,d,e){return qc(a,b,Db,c,e,void 0,d)},Vw=function(a,b,c){a=wn(a,b,3,void 0,!0);hb(a,c);return a[c]},yo=function(a,b,c){return ui(a,Hi(a,c,b))},$v=function(a,b,c){return Fl(a,Hi(a,c,b))},bm=function(a,b,c,
d,e){return X(a,b,Hi(a,d,c,e),e)},Wjb=function(a,b){b=Hi(a,Ks,b);return Lw(a,b)},lr=function(a,b,c){b=Hi(a,c,b);return Sw(a,b)},Xjb=function(a,b){b=Hi(a,Ks,b);return fm(a,b,void 0,void 0,uc)},fyc=function(a,b){return zb(fm(a,b))},Nv=function(a,b){return zb(fm(a,b,void 0,Xv))},Ww=function(a,b){return Rw(a,b,void 0,Xv)},Xw=function(a,b){return Qb(fm(a,b,void 0,Xv))},Yw=function(a,b){return fm(a,b,void 0,Xv,xb)},Fl=function(a,b){return Sw(a,b,void 0,Xv)},Vv=function(a,b){return vp(a,b,void 0,Xv)},Oi=
function(a,b,c){return Mr(a,b,c==null?c:yb(c))},Yo=function(a,b,c,d){return yc(a,b,c==null?c:yb(c),!1,d)},En=function(a,b,c){return Mr(a,b,c==null?c:Eb(c))},an=function(a,b,c){return yc(a,b,c==null?c:Eb(c),0)},vn=function(a,b,c,d,e){return Mr(a,b,Ib(c,d===void 0?0:d),e)},Io=function(a,b,c){return yc(a,b,Ib(c,0),"0")},gyc=function(a,b,c){c=c==null?c:Oca(c);return Mr(a,b,c)},Jn=function(a,b,c,d,e){return Mr(a,b,Ib(c,d===void 0?0:d),e)},Zw=function(a,b,c){return Mr(a,b,c==null?c:wca(c))},qp=function(a,
b,c){return yc(a,b,c==null?c:wca(c),0)},fWa=function(a,b,c,d){Qo(a,b,c,d==null?d:wca(d))},oj=function(a,b,c,d){return Mr(a,b,Rca(c),d)},Fm=function(a,b,c,d){return yc(a,b,Rca(c),"",d)},Bo=function(a,b,c,d){return Qo(a,b,c,Rca(d))},No=function(a,b,c){return yc(a,b,gb(c,!1,!0),Ya())},Gn=function(a,b,c,d){return Mr(a,b,zca(c),d)},Hm=function(a,b,c,d){return yc(a,b,zca(c),0,d)},tr=function(a,b,c,d){return xc(a,b,c,Hb,d)},$w=function(a,b,c,d,e){return zc(a,b,Hb,c,d,Nb,e)},hyc=function(a,b,c){return zc(a,
b,Hb,void 0,c,Nb,void 0,1,!1,!0)},ax=function(a,b,c){zc(a,b,Hb,c,void 0,Nb,void 0,void 0,!0)},Gm=function(a,b,c,d){return xc(a,b,c,Sb,d)},wq=function(a,b,c,d){return zc(a,b,Sb,c,void 0,Tb,d,void 0,!0)},bx=function(a,b,c,d){return zc(a,b,Sb,d,c,Tb,void 0,1)},cx=function(a,b,c){return xc(a,b,c,Cb)},Ei=function(a,b){return zb(fm(a,b))!=null},kn=function(a,b){return Rw(a,b)!=null},on=function(a,b,c){return Nb(fm(a,b,c))!=null},$Wa=function(a,b){b=Hi(a,b,2);return fm(a,b,void 0,void 0,xb)!=null},im=function(a,
b,c){return Sw(a,b,c)!=null},jm=function(a,b,c){return vp(a,b,c)!=null};var W=function(a,b,c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,b,c)};W.prototype.toJSON=function(){return Jda(this)};W.prototype.serialize=function(a){return JSON.stringify(Jda(this,a))};var Csa=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("ga");return new a(Wba(b))};
W.prototype.getExtension=function(a){vda(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);tda(this,a.fieldIndex);return a.ctor?a.isRepeated?a.getExtensionFn(this,a.ctor,a.fieldIndex,Ci(),a.hasMessageId):a.getExtensionFn(this,a.ctor,a.fieldIndex,a.hasMessageId):a.isRepeated?a.getExtensionFn(this,a.fieldIndex,Ci(),a.hasMessageId):a.getExtensionFn(this,a.fieldIndex,a.defaultValue,a.hasMessageId)};
var iyc=function(a,b){vda(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b.fieldIndex);tda(a,b.fieldIndex);a=b.ctor?b.getExtensionFn(a,b.ctor,b.fieldIndex,b.hasMessageId):b.getExtensionFn(a,b.fieldIndex,null,b.hasMessageId);return a===null?void 0:a};W.prototype.hasExtension=function(a){vda(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);tda(this,a.fieldIndex);return a.ctor?xi(this,a.ctor,a.fieldIndex,a.hasMessageId):iyc(this,a)!==void 0};
var HQa=function(a,b){return a===b||a==null&&b==null||!(!a||!b)&&a instanceof b.constructor&&ada(a,b)};W.prototype.clone=function(){var a=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=a[Ta]|0;return Xda(this,a,b)?Wda(this,a,!0):new this.constructor(hc(a,b,!1))};W.prototype.isMutable=function(){return!fb(this)};W.prototype.isImmutable=function(){return fb(this)};
var Jrc=function(a){return Yb(a)},Pv=function(a,b,c){qda(a,b.fieldIndex);return b.ctor?b.setExtensionFn(a,b.ctor,b.fieldIndex,c,b.hasMessageId):b.setExtensionFn(a,b.fieldIndex,c,b.hasMessageId)};W.prototype[ab]=cb;W.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var dx=function(a,b){this.key_=a;this.value_=b},jyc=function(a){throw Error("ha`"+a.key_);},kyc=function(a,b){return new TypeError("ia`"+b+"`"+a.key_+"`"+a.value_+"`"+typeof a.value_)};dx.prototype.string=function(a){if(arguments.length==0)var b=lyc(this);else{var c;b=(c=myc(this))!=null?c:a}return b};var lyc=function(a){var b=myc(a);b===null&&jyc(a);return b},myc=function(a){var b=a.value_;if(b==null)return null;if(typeof b==="string")return b;throw kyc(a,"string");};
dx.prototype.bool=function(a){if(arguments.length==0){var b=nyc(this);b===null&&jyc(this)}else b=oyc(this,a);return b};var oyc=function(a,b){var c;return(c=nyc(a))!=null?c:b},nyc=function(a){var b=a.value_;if(b==null)return null;if(typeof b==="boolean")return b;if(typeof b==="string"){b=b.toLowerCase();if(b==="true"||b==="1")return!0;if(b==="false"||b==="0")return!1}throw kyc(a,"boolean");};
dx.prototype.number=function(a){if(arguments.length==0){var b=pyc(this);b===null&&jyc(this)}else{var c;b=(c=pyc(this))!=null?c:a}return b};var pyc=function(a){var b=a.value_;if(b==null)return null;if(typeof b==="number")return b;if(typeof b==="string"){var c=Number(b);if(!isNaN(c)&&(c!==0||b.trim().length!==0))return c}throw kyc(a,"number");};dx.prototype.toString=function(){return lyc(this)};
dx.prototype.array=function(a){if(arguments.length==0){var b=qyc(this);b===null&&jyc(this);return b}b=qyc(this);return b==null?a:b};var qyc=function(a){var b=a.value_;if(b==null)return null;Array.isArray(b)||(typeof b!=="string"?b=[b]:(b=b.trim(),b=b==""?[]:b.split(",").map(function(c){return c.trim()})));return ryc(a,b)},ryc=function(a,b){var c=a.key_+"[";return Array.from(b,function(d,e){return new dx(c+e+"]",d)})};
dx.prototype.object=function(a){var b=this.value_;if(b==null)return a===void 0&&jyc(this),a;if(typeof b==="object"&&b.constructor===Object){a={};var c=this.key_+".",d;for(d in b)a[d]=new dx(c+d,b[d]);return a}throw kyc(this,"object");};var syc;if(!(syc=typeof window==="undefined")){var tyc,uyc;uyc=uyc===void 0?window:uyc;tyc=new dx("mXaIFf",oea("mXaIFf",uyc));syc=oyc(tyc,!0)}if(syc){var ex=globalThis,vyc=ex[ba("forceDuplicateZoneCheck")]===!0;if(ex.Zone&&(vyc||typeof ex.Zone.__symbol__!=="function"))throw Error("ma");ex.Zone!=null||(ex.Zone=baa());var ma=ex.Zone;pea();qea();rea();Faa();Kaa();Laa()};var sea=Cc({"\u0275prov":Cc}),vea=Cc({"\u0275inj":Cc});var Gc=null,yea=!1,Aea=1,Mc=Symbol("oa"),fx={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},producerRecomputeValue:function(){},consumerMarkedDirty:function(){},consumerOnSignalRead:function(){}};var gx=Symbol("pa"),hx=Symbol("qa"),Lc=Symbol("ra"),Iea=Object.assign({},fx,{value:gx,dirty:!0,error:null,equal:xea,kind:"computed",producerMustRecompute:function(a){return a.value===gx||a.value===hx},producerRecomputeValue:function(a){if(a.value===hx)throw Error("na");var b=a.value;a.value=hx;var c=Kc(a),d=!1;try{var e=a.computation();Hc(null);d=b!==gx&&b!==Lc&&e!==Lc&&a.equal(b,e)}catch(f){e=Lc,a.error=f}finally{Gea(a,c)}d?a.value=b:(a.value=e,a.version++)}});var wyc=Object.assign({},fx,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var Lea=function(){throw Error();};var Kea=Object.assign({},fx,{equal:xea,value:void 0,kind:"signal"});var Nea=Object.assign({},fx,{value:gx,dirty:!0,error:null,equal:xea,kind:"linkedSignal",producerMustRecompute:function(a){return a.value===gx||a.value===hx},producerRecomputeValue:function(a){if(a.value===hx)throw Error("na");var b=a.value;a.value=hx;var c=Kc(a);try{var d=a.source();var e=a.computation(d,b===gx||b===Lc?void 0:{source:a.sourceValue,value:b});a.sourceValue=d}catch(f){e=Lc,a.error=f}finally{Gea(a,c)}b!==gx&&e!==Lc&&a.equal(b,e)?a.value=b:(a.value=e,a.version++)}});Object.assign({},fx,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(a){a.schedule!==null&&a.schedule(a.ref)},cleanupFn:function(){}});var dd=function(a,b){this._desc=a;this.ngMetadataName="InjectionToken";this.\u0275prov=void 0;typeof b=="number"?this.__NG_ELEMENT_ID__=b:b!==void 0&&(this.\u0275prov=Dc({token:this,providedIn:b.providedIn||"root",factory:b.factory}))};dd.prototype.toString=function(){return"InjectionToken "+this._desc};da.Object.defineProperties(dd.prototype,{multi:{configurable:!0,enumerable:!0,get:function(){return this}}});new dd("",{providedIn:"root",factory:function(){return!1}});new dd("",{providedIn:"root",factory:function(){return 4E3}});var Sc=function(a,b){b=Error.call(this,Qea(a,b));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};Y(Sc,Error);var ad=Cc({"\u0275cmp":Cc}),zka=Cc({"\u0275dir":Cc}),ffa=Cc({"\u0275pipe":Cc}),xyc=Cc({"\u0275mod":Cc}),hfa=Cc({"\u0275fac":Cc}),nga=Cc({__NG_ELEMENT_ID__:Cc}),yyc=Cc({__NG_ENV_ID__:Cc});var Sea=Cc({ngErrorCode:Cc}),Tea=Cc({ngErrorMessage:Cc});Cc({ngTokenPath:Cc});var Vea;var Xea=void 0;var Yea=Symbol("ta");var afa=Cc({__forward_ref__:Cc});var Ke=globalThis;var ix={},Gfa=function(a){this.injector=a};Gfa.prototype.retrieve=function(a,b){b=cfa(b)||0;try{return this.injector.get(a,b&8?null:ix,b)}catch(c){if(Zea(c))return c;throw c;}};var tfa=new dd("");var zyc=new dd("",-1);var sfa=new dd("");var xfa=function(){};xfa.prototype.get=function(a,b){b=b===void 0?ix:b;if(b===ix)throw a=Uea(-201),a.name="\u0275NotFound",a;return b};var jd={},bd=[];var ufa=Cc({provide:String,useValue:Cc});var Roa=new dd("");var Cfa={},Ayc={},wfa=void 0,Xe=function(){},fd=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;Ffa(a,function(f){return Byc(e,f)});this.records.set(zyc,ed(void 0,this));d.has("environment")&&this.records.set(Xe,ed(void 0,this));a=this.records.get(Roa);a!=null&&typeof a.value==="string"&&this.scopes.add(a.value);this.injectorDefTypes=new Set(this.get(sfa,bd,{self:!0}))};Y(fd,Xe);
h=fd.prototype;h.retrieve=function(a,b){b=cfa(b)||0;try{return this.get(a,ix,b)}catch(c){if(Zea(c))return c;throw c;}};h.destroy=function(){Efa(this);this._destroyed=!0;var a=Hc(null);try{for(var b=m(this._ngOnDestroyHooks),c=b.next();!c.done;c=b.next())c.value.ngOnDestroy();var d=this._onDestroyHooks;this._onDestroyHooks=[];for(var e=m(d),f=e.next();!f.done;f=e.next()){var g=f.value;g()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Hc(a)}};
h.onDestroy=function(a){var b=this;Efa(this);this._onDestroyHooks.push(a);return function(){var c=b._onDestroyHooks.indexOf(a);c!==-1&&b._onDestroyHooks.splice(c,1)}};
h.get=function(a,b,c){b=b===void 0?ix:b;Efa(this);if(a.hasOwnProperty(yyc))return a[yyc](this);c=cfa(c);var d=Uc(this),e=Tc();try{if(!(c&4)){var f=this.records.get(a);if(f===void 0){var g=(typeof a==="function"||typeof a==="object"&&a.ngMetadataName==="InjectionToken")&&tea(a),k;if(k=g)if(g.providedIn){var l=Wc(g.providedIn);k=typeof l==="string"?l==="any"||this.scopes.has(l):this.injectorDefTypes.has(l)}else k=!1;k?f=ed(Afa(a),Cfa):f=null;this.records.set(a,f)}if(f!=null){a:{b=f;var r=Hc(null);try{if(b.value===
Ayc)throw Pc(a),Uea(-200);b.value===Cfa&&(b.value=Ayc,b.value=b.factory(void 0,c));var w;if(w=typeof b.value==="object"&&b.value){var x=b.value;w=x!==null&&typeof x==="object"&&typeof x.ngOnDestroy==="function"}w&&this._ngOnDestroyHooks.add(b.value);var C=b.value;break a}finally{Hc(r)}C=void 0}return C}}var H=c&2?yfa():this.parent;b=c&8&&b===ix?null:b;return H.get(a,b)}catch(O){var J=O[Sea];if(J===-200||J===-201)throw new Sc(J,null);throw O;}finally{Tc(e),Uc(d)}};
h.resolveInjectorInitializers=function(){var a=Hc(null),b=Uc(this),c=Tc();try{for(var d=this.get(tfa,bd,{self:!0}),e=m(d),f=e.next();!f.done;f=e.next()){var g=f.value;g()}}finally{Uc(b),Tc(c),Hc(a)}};h.toString=function(){for(var a=[],b=m(this.records.keys()),c=b.next();!c.done;c=b.next())a.push(Pc(c.value));return"R3Injector["+a.join(", ")+"]"};
var Byc=function(a,b){b=Wc(b);var c=cd(b)?b:Wc(b&&b.provide),d=Dfa(b);if(!cd(b)&&b.multi===!0){var e=a.records.get(c);e||(e=ed(void 0,Cfa,!0),e.factory=function(){return dfa(e.multi)},a.records.set(c,e));c=b;e.multi.push(b)}a.records.set(c,d)};da.Object.defineProperties(fd.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});var Kfa=function(a,b,c){this.previousValue=a;this.currentValue=b;this.firstChange=c};var jx=function(){var a=function(){return Jfa};a.ngInherit=!0;return a}();var Cyc=[],Ad=function(a,b,c){b=b===void 0?null:b;for(var d=0;d<Cyc.length;d++)(0,Cyc[d])(a,b,c)};var qd=$fa(null),Te=null,Tfa=!1,Pe=!0;var Cga=function(a,b){var c=Ve;this.factory=a;this.name=null;this.resolving=!1;this.canSeeViewProviders=b;this.injectImpl=c};var lga=!0,oga=0,Dd={},Ed=function(a,b){this._tNode=a;this._lView=b};Ed.prototype.get=function(a,b,c){return yga(this._tNode,this._lView,a,cfa(c),b)};var kx=function(a){var b=this;this.attributeName=a;this.__NG_ELEMENT_ID__=function(){return vga(b.attributeName)}};kx.prototype.toString=function(){return"HostAttributeToken "+this.attributeName};var Dyc=function(){var a=new dd("");a.__NG_ELEMENT_ID__=function(b){var c=td();if(c===null)throw new Sc(204,!1);if(c.type&2)return c.value;if(b&8)return null;throw new Sc(204,!1);};return a}();var Eyc=efa(Fga("Inject",function(a){return{token:a}}),-1),Fyc=efa(Fga("Optional"),8);efa(Fga("Self"),2);var Gyc=efa(Fga("SkipSelf"),4);efa(Fga("Host"),1);Cc({provide:String,useValue:Cc});var ye=function(){},Yg=function(a){if(Array.isArray(a))return Hga({name:""},void 0,a,"");var b,c=(b=a.name)!=null?b:"";return Hga({name:c},a.parent,a.providers,c)},Hyc=new xfa;ye.\u0275prov=Dc({token:ye,providedIn:"any",factory:function(){return Xc(zyc)}});ye.__NG_ELEMENT_ID__=-1;var Iyc=function(){};var lx=function(){},Wxa=function(){};var Ze=function(){},zoa=new dd("",{providedIn:"root",factory:function(){return!0}});new dd("",{providedIn:"root",factory:function(){return!1}});var Aoa=new dd("");/*

 Copyright 2024 Google, Inc
 SPDX-License-Identifier: MIT
*/
Symbol.for("propagationStopped");var Mga=void 0;var Jyc=new dd("",{providedIn:"root",factory:function(){return"ng"}}),Soa=new dd(""),Kyc=new dd("",{providedIn:"platform",factory:function(){return"unknown"}}),ji=new dd(""),Lyc=new dd("",{providedIn:"root",factory:function(){var a,b;return((a=Nga().body)==null?void 0:(b=a.querySelector("[ngCspNonce]"))==null?void 0:b.getAttribute("ngCspNonce"))||null}}),Myc={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1};
new dd("",{providedIn:"root",factory:function(){return Myc}});new dd("",{providedIn:"root",factory:function(){return{}}});new dd("");var Aja=new dd("",{providedIn:"root",factory:function(){return!1}});new dd("");new dd("");new dd("");new dd("",{providedIn:"root",factory:function(){return new Map}});var Nyc=new dd("");new dd("");var Oga=new Map,Qia=0;var Oyc=function(){},Pyc=function(){};var Hd=function(a){this.nativeElement=a};Hd.__NG_ELEMENT_ID__=function(){return Id(td(),t())};new dd("",{providedIn:"root",factory:function(){return!0}});var Ye=function(){},ci=function(){this.destroyNode=null};ci.__NG_ELEMENT_ID__=function(){var a=t(),b=md(td().index,a);return(hd(b)?b:a)[11]};var Qyc={};var tka=function(a,b){this.injector=a;this.parentInjector=b};tka.prototype.get=function(a,b,c){var d=this.injector.get(a,Qyc,c);return d!==Qyc||b===Qyc?d:this.parentInjector.get(a,b,c)};var Sga=/^>|^->|\x3c!--|--\x3e|--!>|<!-$/g,Tga=/(<|>)/g;var Kd={};var Rh=new dd("");var Ce=function(){};Ce.__NG_ELEMENT_ID__=aha;Ce.__NG_ENV_ID__=function(a){return a};var Nd=function(a){this._lView=a};Y(Nd,Ce);Nd.__NG_ENV_ID__=Ce.__NG_ENV_ID__;Nd.__NG_ELEMENT_ID__=Ce.__NG_ELEMENT_ID__;Nd.prototype.onDestroy=function(a){var b=this._lView;Pfa(b,a);return function(){if(b[21]!==null){var c=b[21].indexOf(a);c!==-1&&b[21].splice(c,1)}}};da.Object.defineProperties(Nd.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return(this._lView[2]&256)===256}}});var Ryc=function(a){var b=Error.call(this,a?a.length+" errors occurred during unsubscription:\n"+a.map(function(c,d){return d+1+") "+c.toString()}).join("\n  "):"");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.errors=a;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};Y(Ryc,Error);var Pd=function(a){this.initialTeardown=a;this.closed=!1;this._teardowns=this._parentage=null};h=Pd.prototype;
h.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this._parentage;if(Array.isArray(a))for(var b=m(a),c=b.next();!c.done;c=b.next())c.value.remove(this);else a==null||a.remove(this);b=this.initialTeardown;if(Od(b))try{b()}catch(f){var d=f instanceof Ryc?f.errors:[f]}var e=this._teardowns;if(e)for(this._teardowns=null,b=m(e),c=b.next();!c.done;c=b.next()){c=c.value;try{Od(c)?c():c.unsubscribe()}catch(f){c=void 0,d=(c=d)!=null?c:[],f instanceof Ryc?d=[].concat(q(d),q(f.errors)):d.push(f)}}if(d)throw new Ryc(d);
}};h.add=function(a){if(a&&a!==this)if(this.closed)Od(a)?a():a.unsubscribe();else{if(a instanceof Pd){if(a.closed||a._hasParent(this))return;a._addParent(this)}var b;(this._teardowns=(b=this._teardowns)!=null?b:[]).push(a)}};h._hasParent=function(a){var b=this._parentage;return b===a||Array.isArray(b)&&b.includes(a)};h._addParent=function(a){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(a),b):b?[b,a]:a};
h._removeParent=function(a){var b=this._parentage;b===a?this._parentage=null:Array.isArray(b)&&bha(b,a)};h.remove=function(a){var b=this._teardowns;b&&bha(b,a);a instanceof Pd&&a._removeParent(this)};var Syc=new Pd;Syc.closed=!0;Pd.EMPTY=Syc;var dha=function(){setTimeout.apply(null,q($c.apply(0,arguments)))};var mx=function(a){Pd.call(this);this.isStopped=!1;this.destination=a instanceof mx?a:new Tyc(!a||Od(a)?{next:a!=null?a:void 0}:a);cha(a)&&a.add(this)};Y(mx,Pd);mx.EMPTY=Pd.EMPTY;mx.create=function(a,b,c){return new ee(a,b,c)};h=mx.prototype;h.next=function(a){this.isStopped||this._next(a)};h.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))};h.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())};h.unsubscribe=function(){this.closed||(this.isStopped=!0,Pd.prototype.unsubscribe.call(this))};
h._next=function(a){this.destination.next(a)};h._error=function(a){this.destination.error(a);this.unsubscribe()};h._complete=function(){this.destination.complete();this.unsubscribe()};var Tyc=function(a){this.partialObserver=a};Tyc.prototype.next=function(a){var b=this.partialObserver;if(b.next)try{b.next(a)}catch(c){eha(c)}};Tyc.prototype.error=function(a){var b=this.partialObserver;if(b.error)try{b.error(a)}catch(c){eha(c)}else eha(a)};
Tyc.prototype.complete=function(){var a=this.partialObserver;if(a.complete)try{a.complete()}catch(b){eha(b)}};var ee=function(a,b,c){mx.call(this);var d;Od(a)||!a?d={next:a!=null?a:void 0,error:b!=null?b:void 0,complete:c!=null?c:void 0}:d=a;this.destination=new Tyc(d)};Y(ee,mx);ee.EMPTY=mx.EMPTY;ee.create=mx.create;var mha=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Td=function(a){a&&(this._subscribe=a)};h=Td.prototype;h.lift=function(a){var b=new Td;b.source=this;b.operator=a;return b};h.subscribe=function(a,b,c){a=a&&a instanceof mx||a&&Od(a.next)&&Od(a.error)&&Od(a.complete)&&cha(a)?a:new ee(a,b,c);b=this.operator;c=this.source;a.add(b?b.call(a,c):c?this._subscribe(a):this._trySubscribe(a));return a};h._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){a.error(b)}};
h.forEach=function(a,b){var c=this;b=gha(b);return new b(function(d,e){var f=c.subscribe(function(g){try{a(g)}catch(k){e(k),f==null||f.unsubscribe()}},e,d)})};h._subscribe=function(a){var b;return(b=this.source)==null?void 0:b.subscribe(a)};Td.prototype[mha]=function(){return this};Td.prototype.pipe=function(){var a=$c.apply(0,arguments);return a.length?fha(a)(this):this};Td.create=function(a){return new Td(a)};var Uyc=function(){var a=Error.call(this,"object unsubscribed");this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};Y(Uyc,Error);var qf=function(){this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null};Y(qf,Td);h=qf.prototype;h.lift=function(a){var b=new nx(this,this);b.operator=a;return b};h._throwIfClosed=function(){if(this.closed)throw new Uyc;};h.next=function(a){this._throwIfClosed();if(!this.isStopped)for(var b=m(this.observers.slice()),c=b.next();!c.done;c=b.next())c.value.next(a)};
h.error=function(a){this._throwIfClosed();if(!this.isStopped){this.hasError=this.isStopped=!0;this.thrownError=a;for(var b=this.observers;b.length;)b.shift().error(a)}};h.complete=function(){this._throwIfClosed();if(!this.isStopped){this.isStopped=!0;for(var a=this.observers;a.length;)a.shift().complete()}};h.unsubscribe=function(){this.isStopped=this.closed=!0;this.observers=null};h._trySubscribe=function(a){this._throwIfClosed();return Td.prototype._trySubscribe.call(this,a)};
h._subscribe=function(a){this._throwIfClosed();this._checkFinalizedStatuses(a);return this._innerSubscribe(a)};h._innerSubscribe=function(a){var b=this,c=this.isStopped,d=this.observers;return this.hasError||c?Pd.EMPTY:(d.push(a),new Pd(function(){return bha(b.observers,a)}))};h._checkFinalizedStatuses=function(a){var b=this.thrownError,c=this.isStopped;this.hasError?a.error(b):c&&a.complete()};h.asObservable=function(){var a=new Td;a.source=this;return a};
da.Object.defineProperties(qf.prototype,{observed:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.observers)==null?void 0:a.length)>0}}});qf.create=function(a,b){return new nx(a,b)};var nx=function(a,b){qf.call(this);this.destination=a;this.source=b};Y(nx,qf);nx.create=qf.create;nx.prototype.next=function(a){var b,c;(b=this.destination)==null||(c=b.next)==null||c.call(b,a)};nx.prototype.error=function(a){var b,c;(b=this.destination)==null||(c=b.error)==null||c.call(b,a)};
nx.prototype.complete=function(){var a,b;(a=this.destination)==null||(b=a.complete)==null||b.call(a)};nx.prototype._subscribe=function(a){var b,c;return(c=(b=this.source)==null?void 0:b.subscribe(a))!=null?c:Pd.EMPTY};var Mj=function(a){qf.call(this);this._value=a};Y(Mj,qf);Mj.create=qf.create;Mj.prototype._subscribe=function(a){var b=qf.prototype._subscribe.call(this,a);!b.closed&&a.next(this._value);return b};Mj.prototype.getValue=function(){var a=this.thrownError,b=this._value;if(this.hasError)throw a;this._throwIfClosed();return b};Mj.prototype.next=function(a){qf.prototype.next.call(this,this._value=a)};da.Object.defineProperties(Mj.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var se=new Td(function(a){return a.complete()});var kha=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var qha=function(a){return a&&typeof a.length==="number"&&typeof a!=="function"};var rf=function(a,b,c){this.kind=a;this.value=b;this.error=c;this.hasValue=a==="N"};rf.prototype.observe=function(a){return Bha(this,a)};rf.prototype.accept=function(a,b,c){if(Od(a==null?void 0:a.next))a=this.observe(a);else{var d=this.kind,e=this.value,f=this.error;a=d==="N"?a==null?void 0:a(e):d==="E"?b==null?void 0:b(f):c==null?void 0:c()}return a};rf.createError=function(a){return new rf("E",void 0,a)};var qla=new rf("C");var Vyc={now:function(){return(Vyc.delegate||Date).now()},delegate:void 0};var uf=function(a,b,c){a=a===void 0?Infinity:a;b=b===void 0?Infinity:b;c=c===void 0?Vyc:c;qf.call(this);this.bufferSize=a;this.windowTime=b;this.timestampProvider=c;this.buffer=[];this.infiniteTimeWindow=b===Infinity;this.bufferSize=Math.max(1,a);this.windowTime=Math.max(1,b)};Y(uf,qf);uf.create=qf.create;
uf.prototype.next=function(a){var b=this.buffer,c=this.infiniteTimeWindow,d=this.timestampProvider,e=this.windowTime;this.isStopped||(b.push(a),!c&&b.push(d.now()+e));Wyc(this);qf.prototype.next.call(this,a)};uf.prototype._subscribe=function(a){this._throwIfClosed();Wyc(this);for(var b=this._innerSubscribe(a),c=this.infiniteTimeWindow,d=this.buffer.slice(),e=0;e<d.length&&!a.closed;e+=c?1:2)a.next(d[e]);this._checkFinalizedStatuses(a);return b};
var Wyc=function(a){var b=a.bufferSize,c=a.timestampProvider,d=a.buffer;a=a.infiniteTimeWindow;var e=(a?1:2)*b;b<Infinity&&e<d.length&&d.splice(0,d.length-e);if(!a){b=c.now();c=0;for(a=1;a<d.length&&d[a]<=b;a+=2)c=a;c&&d.splice(0,c+1)}};var Yyc=function(a,b){b=b===void 0?Xyc:b;this.schedulerActionCtor=a;this.now=b};Yyc.prototype.schedule=function(a,b,c){b=b===void 0?0:b;return(new this.schedulerActionCtor(this,a)).schedule(c,b)};var Xyc=Vyc.now;var Cha=function(){var a=Error.call(this,"no elements in sequence");this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};Y(Cha,Error);var he=function(a,b,c,d,e){mx.call(this,a);this.onUnsubscribe=e;b&&(this._next=function(f){try{b(f)}catch(g){this.destination.error(g)}});c&&(this._error=function(f){try{c(f)}catch(g){this.destination.error(g)}this.unsubscribe()});d&&(this._complete=function(){try{d()}catch(f){this.destination.error(f)}this.unsubscribe()})};Y(he,mx);he.EMPTY=mx.EMPTY;he.create=mx.create;he.prototype.unsubscribe=function(){var a;this.closed||(a=this.onUnsubscribe)!=null&&a.call(this);mx.prototype.unsubscribe.call(this)};var sf=function(a,b){this.source=a;this.subjectFactory=b;this._subject=null;this._refCount=0;this._connection=null};Y(sf,Td);sf.create=Td.create;sf.prototype._subscribe=function(a){return Zyc(this).subscribe(a)};var Zyc=function(a){var b=a._subject;if(!b||b.isStopped)a._subject=a.subjectFactory();return a._subject};sf.prototype._teardown=function(){this._refCount=0;var a=this._connection;this._subject=this._connection=null;a==null||a.unsubscribe()};
sf.prototype.connect=function(){var a=this,b=this._connection;if(!b){b=this._connection=new Pd;var c=Zyc(this);b.add(this.source.subscribe(new he(c,void 0,function(d){a._teardown();c.error(d)},function(){a._teardown();c.complete()},function(){return a._teardown()})));b.closed&&(this._connection=null,b=Pd.EMPTY)}return b};sf.prototype.refCount=function(){return Dha()(this)};var Gha=Array.isArray;var Iha=Array.isArray,$yc=Object,Jha=$yc.getPrototypeOf,Kha=$yc.prototype,Lha=$yc.keys;var Pha=function(a,b,c){mx.call(this,a);this._next=b;this.shouldComplete=c};Y(Pha,mx);Pha.EMPTY=mx.EMPTY;Pha.create=mx.create;Pha.prototype._complete=function(){this.shouldComplete()?mx.prototype._complete.call(this):this.unsubscribe()};var azc=function(){return requestAnimationFrame.apply(null,q($c.apply(0,arguments)))},bzc=function(){cancelAnimationFrame.apply(null,q($c.apply(0,arguments)))};var Tha=["addListener","removeListener"],Sha=["addEventListener","removeEventListener"],Vha=["on","off"];var ox=function(){Pd.call(this)};Y(ox,Pd);ox.EMPTY=Pd.EMPTY;ox.prototype.schedule=function(){return this};var czc=function(a,b){return setInterval.apply(null,[a,b].concat(q($c.apply(2,arguments))))};var px=function(a,b){Pd.call(this);this.scheduler=a;this.work=b;this.pending=!1};Y(px,ox);px.EMPTY=ox.EMPTY;h=px.prototype;h.schedule=function(a,b){b=b===void 0?0:b;if(this.closed)return this;this.state=a;a=this.id;var c=this.scheduler;a!=null&&(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};h.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return czc(a.flush.bind(a,this),c)};
h.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&this.delay===c&&this.pending===!1)return b;clearInterval(b)};h.execute=function(a,b){if(this.closed)return Error("Aa");this.pending=!1;if(a=this._execute(a,b))return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))};h._execute=function(a){var b=!1;try{this.work(a)}catch(d){b=!0;var c=!!d&&d||Error(d)}if(b)return this.unsubscribe(),c};
h.unsubscribe=function(){if(!this.closed){var a=this.id,b=this.scheduler,c=b.actions;this.work=this.state=this.scheduler=null;this.pending=!1;bha(c,this);a!=null&&(this.id=this.recycleAsyncId(b,a,null));this.delay=null;ox.prototype.unsubscribe.call(this)}};var qx=function(a,b){b=b===void 0?Xyc:b;Yyc.call(this,a,b);this.actions=[];this.active=!1;this.scheduled=void 0};Y(qx,Yyc);qx.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 qe=new qx(px);var rx=new Td(Qd);var Zha=Array.isArray;var dia=function(a){var b=Error.call(this,"Timeout has occurred");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.info=a===void 0?null:a;Object.setPrototypeOf(this,this.constructor.prototype);this.name="TimeoutError"};Y(dia,Error);var dzc=function(a,b){px.call(this,a,b);this.scheduler=a;this.work=b};Y(dzc,px);dzc.EMPTY=px.EMPTY;dzc.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!==null&&c>0)return px.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=azc(function(){return a.flush(void 0)}))};
dzc.prototype.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&c>0||c==null&&this.delay>0)return px.prototype.recycleAsyncId.call(this,a,b,c);a.actions.length===0&&(bzc(b),a.scheduled=void 0)};var ezc=function(){qx.apply(this,arguments)};Y(ezc,qx);ezc.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 fzc=new ezc(dzc);var gzc=1,hzc,eia={},izc=function(a){var b=gzc++;eia[b]=!0;hzc||(hzc=Promise.resolve());hzc.then(function(){return fia(b)&&a()});return b};var jzc=function(){return izc.apply(null,q($c.apply(0,arguments)))};var kzc=function(a,b){px.call(this,a,b);this.scheduler=a;this.work=b};Y(kzc,px);kzc.EMPTY=px.EMPTY;kzc.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!==null&&c>0)return px.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=jzc(a.flush.bind(a,void 0)))};
kzc.prototype.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&c>0||c==null&&this.delay>0)return px.prototype.recycleAsyncId.call(this,a,b,c);a.actions.length===0&&(fia(b),a.scheduled=void 0)};var lzc=function(){qx.apply(this,arguments)};Y(lzc,qx);lzc.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 Dr=new lzc(kzc);var sx=function(a,b){px.call(this,a,b);this.scheduler=a;this.work=b};Y(sx,px);sx.EMPTY=px.EMPTY;sx.prototype.schedule=function(a,b){b=b===void 0?0:b;if(b>0)return px.prototype.schedule.call(this,a,b);this.delay=b;this.state=a;this.scheduler.flush(this);return this};sx.prototype.execute=function(a,b){return b>0||this.closed?px.prototype.execute.call(this,a,b):this._execute(a,b)};
sx.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return c!=null&&c>0||c==null&&this.delay>0?px.prototype.requestAsyncId.call(this,a,b,c):a.flush(this)};var mzc=function(){qx.apply(this,arguments)};Y(mzc,qx);var Eha=new mzc(sx);var Ug=function(){this.taskId=0;this.pendingTasks=new Set;this.destroyed=!1;this.pendingTask=new Mj(!1)};Ug.prototype.add=function(){this.hasPendingTasks||this.destroyed||this.pendingTask.next(!0);var a=this.taskId++;this.pendingTasks.add(a);return a};Ug.prototype.has=function(a){return this.pendingTasks.has(a)};Ug.prototype.remove=function(a){this.pendingTasks.delete(a);this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)};
Ug.prototype.ngOnDestroy=function(){this.pendingTasks.clear();this.hasPendingTasks&&this.pendingTask.next(!1);this.destroyed=!0;this.pendingTask.unsubscribe()};da.Object.defineProperties(Ug.prototype,{hasPendingTasks:{configurable:!0,enumerable:!0,get:function(){return this.destroyed?!1:this.pendingTask.value}},hasPendingTasksObservable:{configurable:!0,enumerable:!0,get:function(){return this.destroyed?new Td(function(a){a.next(!1);a.complete()}):this.pendingTask}}});
Ug.\u0275prov=Dc({token:Ug,providedIn:"root",factory:function(){return new Ug}});var Ti=function(a){a=a===void 0?!1:a;qf.call(this);this.pendingTasks=this.destroyRef=void 0;this.__isAsync=a;if(Vea!==void 0||Xea!=null){var b;this.destroyRef=(b=p(Ce,{optional:!0}))!=null?b:void 0;var c;this.pendingTasks=(c=p(Ug,{optional:!0}))!=null?c:void 0}};Y(Ti,qf);Ti.create=qf.create;Ti.prototype.emit=function(a){var b=Hc(null);try{qf.prototype.next.call(this,a)}finally{Hc(b)}};
Ti.prototype.subscribe=function(a,b,c){var d=a;b=b||function(){return null};if(a&&typeof a==="object"){var e;d=(e=a.next)==null?void 0:e.bind(a);var f;b=(f=a.error)==null?void 0:f.bind(a);var g;c=(g=a.complete)==null?void 0:g.bind(a)}this.__isAsync&&(b=nzc(this,b),d&&(d=nzc(this,d)),c&&(c=nzc(this,c)));d=qf.prototype.subscribe.call(this,{next:d,error:b,complete:c});a instanceof Pd&&a.add(d);return d};
var nzc=function(a,b){return function(c){var d,e=(d=a.pendingTasks)==null?void 0:d.add();setTimeout(function(){try{b(c)}finally{if(e!==void 0){var f;(f=a.pendingTasks)==null||f.remove(e)}}})}};var mia=0,Rg=function(a){this.hasPendingMicrotasks=this.hasPendingMacrotasks=!1;this.isStable=!0;this.onUnstable=new Ti(!1);this.onMicrotaskEmpty=new Ti(!1);this.onStable=new Ti(!1);this.onError=new Ti(!1);var b=a.enableLongStackTrace===void 0?!1:a.enableLongStackTrace,c=a.shouldCoalesceEventChangeDetection===void 0?!1:a.shouldCoalesceEventChangeDetection,d=a.shouldCoalesceRunChangeDetection===void 0?!1:a.shouldCoalesceRunChangeDetection;a=a.scheduleInRootZone===void 0?!1:a.scheduleInRootZone;if(typeof Zone==
"undefined")throw new Sc(908,!1);Zone.assertZonePatched();this._nesting=0;this._outer=this._inner=Zone.current;Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec));b&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec));this.shouldCoalesceEventChangeDetection=!d&&c;this.shouldCoalesceRunChangeDetection=d;this.callbackScheduled=!1;this.scheduleInRootZone=a;pia(this)},Nya=function(){return typeof Zone!=="undefined"&&Zone.current.get("isAngularZone")===
!0},ozc=function(){if(Nya())throw new Sc(909,!1);};Rg.prototype.run=function(a,b,c){return this._inner.run(a,b,c)};Rg.prototype.runTask=function(a,b,c,d){var e=this._inner;a=e.scheduleEventTask("NgZoneEvent: "+d,a,pzc,gia,gia);try{return e.runTask(a,b,c)}finally{e.cancelTask(a)}};Rg.prototype.runGuarded=function(a,b,c){return this._inner.runGuarded(a,b,c)};Rg.prototype.runOutsideAngular=function(a){return this._outer.run(a)};
var pzc={},tx=function(){this.hasPendingMacrotasks=this.hasPendingMicrotasks=!1;this.isStable=!0;this.onUnstable=new Ti;this.onMicrotaskEmpty=new Ti;this.onStable=new Ti;this.onError=new Ti};tx.prototype.run=function(a,b,c){return a.apply(b,c)};tx.prototype.runGuarded=function(a,b,c){return a.apply(b,c)};tx.prototype.runOutsideAngular=function(a){return a()};tx.prototype.runTask=function(a,b,c){return a.apply(b,c)};var ux=function(){this._console=console};ux.prototype.handleError=function(a){this._console.error("ERROR",a)};var Re=new dd("",{providedIn:"root",factory:function(){var a=p(Rg),b=p(Xe),c;return function(d){a.runOutsideAngular(function(){b.destroyed&&!c?setTimeout(function(){throw d;}):(c!=null||(c=b.get(ux)),c.handleError(d))})}}}),qzc={provide:tfa,useValue:function(){p(ux,{optional:!0})},multi:!0};
new dd("",{providedIn:"root",factory:function(){var a=p(Rh).defaultView;if(a){var b=p(Re),c=function(f){b(f.reason);f.preventDefault()},d=function(f){f.error?b(f.error):b(Error(f.message,{cause:f}));f.preventDefault()},e=function(){a.addEventListener("unhandledrejection",c);a.addEventListener("error",d)};typeof Zone!=="undefined"?Zone.root.run(e):e();p(Ce).onDestroy(function(){a.removeEventListener("error",d);a.removeEventListener("unhandledrejection",c)})}}});var Eia=new Set;var Be=new dd("");var ze=function(){this.impl=null};ze.prototype.execute=function(){var a;(a=this.impl)==null||a.execute()};ze.\u0275prov=Dc({token:ze,providedIn:"root",factory:function(){return new ze}});var rzc=[0,1,2,3],Ae=function(){this.ngZone=p(Rg);this.scheduler=p(Ze);this.errorHandler=p(ux,{optional:!0});this.sequences=new Set;this.deferredRegistrations=new Set;this.executing=!1;p(Be,{optional:!0})};
Ae.prototype.execute=function(){var a=this.sequences.size>0;a&&Ad(16);this.executing=!0;for(var b=m(rzc),c=b.next(),d={};!c.done;d={phase:void 0},c=b.next()){d.phase=c.value;c=m(this.sequences);for(var e=c.next(),f={};!e.done;f={sequence:void 0},e=c.next())if(f.sequence=e.value,!f.sequence.erroredOrDestroyed&&f.sequence.hooks[d.phase])try{f.sequence.pipelinedValue=this.ngZone.runOutsideAngular(function(g,k){return function(){return szc(function(){return(0,g.sequence.hooks[k.phase])(g.sequence.pipelinedValue)},
g.sequence.snapshot)}}(f,d))}catch(g){f.sequence.erroredOrDestroyed=!0,e=void 0,(e=this.errorHandler)==null||e.handleError(g)}}this.executing=!1;b=m(this.sequences);for(d=b.next();!d.done;d=b.next())d=d.value,d.afterRun(),d.once&&(this.sequences.delete(d),d.destroy());b=m(this.deferredRegistrations);for(d=b.next();!d.done;d=b.next())this.sequences.add(d.value);this.deferredRegistrations.size>0&&this.scheduler.notify(7);this.deferredRegistrations.clear();a&&Ad(17)};
Ae.prototype.register=function(a){var b=a.view;if(b!==void 0){var c;((c=b[25])!=null?c:b[25]=[]).push(a);od(b);b[2]|=8192}else this.executing?this.deferredRegistrations.add(a):(this.sequences.add(a),this.scheduler.notify(7))};Ae.prototype.unregister=function(a){this.executing&&this.sequences.has(a)?(a.erroredOrDestroyed=!0,a.pipelinedValue=void 0,a.once=!0):(this.sequences.delete(a),this.deferredRegistrations.delete(a))};var szc=function(a,b){return b?b.run(1,a):a()};
Ae.\u0275prov=Dc({token:Ae,providedIn:"root",factory:function(){return new Ae}});var De=function(a,b,c,d,e,f){var g=this;this.impl=a;this.hooks=b;this.view=c;this.once=d;this.snapshot=f===void 0?null:f;this.erroredOrDestroyed=!1;this.pipelinedValue=void 0;this.unregisterOnDestroy=e==null?void 0:e.onDestroy(function(){return g.destroy()})};De.prototype.afterRun=function(){this.erroredOrDestroyed=!1;this.pipelinedValue=void 0;var a;(a=this.snapshot)==null||a.dispose();this.snapshot=null};
De.prototype.destroy=function(){var a=this;this.impl.unregister(this);var b;(b=this.unregisterOnDestroy)==null||b.call(this);var c;(b=(c=this.view)==null?void 0:c[25])&&(this.view[25]=b.filter(function(d){return d!==a}))};var sia=function(a,b){this.view=a;this.node=b};sia.__NG_ELEMENT_ID__=tia;var uia=new Set;var via=new dd("",{providedIn:"root",factory:function(){return{queue:new Set,isScheduled:!1,scheduler:null}}});var Nia;var Iia=Hia,Jia;var He=function(a){this.changingThisBreaksApplicationSecurity=a};He.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss)"};var tzc=function(){He.apply(this,arguments)};Y(tzc,He);tzc.prototype.getTypeName=function(){return"HTML"};var uzc=function(){He.apply(this,arguments)};Y(uzc,He);uzc.prototype.getTypeName=function(){return"URL"};
var vzc=function(){He.apply(this,arguments)};Y(vzc,He);vzc.prototype.getTypeName=function(){return"ResourceURL"};var Via;var Zia=function(a){this.inertDocumentHelper=a};Zia.prototype.getInertBodyElement=function(a){a="<body><remove></remove>"+a;try{var b=(new window.DOMParser).parseFromString(Xia(a),"text/html").body;if(b===null)return this.inertDocumentHelper.getInertBodyElement(a);var c;(c=b.firstChild)==null||c.remove();return b}catch(d){return null}};var Yia=function(a){this.defaultDoc=a;this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")};
Yia.prototype.getInertBodyElement=function(a){var b=this.inertDocument.createElement("template");b.innerHTML=Xia(a);return b};var aja=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var wzc=Le("area,br,col,hr,img,wbr"),xzc=Le("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),yzc=Le("rp,rt"),zzc=cja(yzc,xzc),Azc=cja(xzc,Le("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")),Bzc=cja(yzc,Le("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")),
kja=cja(wzc,Azc,Bzc,zzc),mja=Le("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Czc=Le("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),
Dzc=Le("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"),
lja=cja(mja,Czc,Dzc),nja=Le("script,style,template"),ija=function(){this.buf=[]};ija.prototype.endElement=function(a){a=dja(a).toLowerCase();kja.hasOwnProperty(a)&&!wzc.hasOwnProperty(a)&&(this.buf.push("</"),this.buf.push(a),this.buf.push(">"))};var eja=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fja=/([^#-~ |!])/g,hja;var Ezc={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 pja;var yka=Symbol("Fa");new dd("");var ika=[],jka=Object.assign({},fx,{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:function(a){od(a.lView)},consumerOnSignalRead:function(){this.lView[24]=this}}),kka=Object.assign({},fx,{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:function(a){for(a=pd(a.lView);a&&a[1].type===2;)a=pd(a);a&&Mfa(a)},consumerOnSignalRead:function(){this.lView[24]=this}});var Qg=function(a,b){this._lView=a;this._cdRefInjectingView=b;this._appRef=null;this._attachedToViewContainer=!1};h=Qg.prototype;h.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var a=this._lView[3];if(id(a)){var b=a[8],c=b?b.indexOf(this):-1;c>-1&&(pka(a,c),jfa(b,c))}this._attachedToViewContainer=!1}Dia(this._lView[1],this._lView)};h.onDestroy=function(a){Pfa(this._lView,a)};
h.markForCheck=function(){$ga(this._cdRefInjectingView||this._lView,4)};h.detach=function(){this._lView[2]&=-129};h.reattach=function(){Ofa(this._lView);this._lView[2]|=128};h.detectChanges=function(){this._lView[2]|=1024;gka(this._lView)};
da.Object.defineProperties(Qg.prototype,{rootNodes:{configurable:!0,enumerable:!0,get:function(){var a=this._lView,b=a[1];return cka(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(this._lView[2]&256)===256}}});var vka=function(){};vka.\u0275prov=Dc({token:vka,providedIn:"root",factory:function(){return null}});var Fzc=function(a){this.ngModule=a};Y(Fzc,Iyc);var Gzc=function(a,b){return new bh(b[ad]||null,a.ngModule)},bh=function(a,b){this.componentDef=a;this.ngModule=b;this.cachedOutputs=this.cachedInputs=null;this.componentType=a.type;this.selector=a.selectors.map(Lga).join(",");var c;this.ngContentSelectors=(c=a.ngContentSelectors)!=null?c:[];this.isBoundToModule=!!b};Y(bh,Pyc);
bh.prototype.create=function(a,b,c,d,e,f){Ad(22);var g=Hc(null);try{var k=this.componentDef,l=Bka(c,k,f,e),r=uka(k,d||this.ngModule,a),w=wka(r),x=w.rendererFactory.createRenderer(null,k),C=c?Bja(x,c,k.encapsulation,r):xka(k,x),H=(f==null?void 0:f.some(Cka))||(e==null?void 0:e.some(function(R){return typeof R!=="function"&&R.bindings.some(Cka)})),J=Ria(null,l,null,512|Sia(k),null,null,w,x,r,null,null);J[27]=C;Zfa(J);a=null;try{var O=aka(27,J,2,"#host",function(){return l.directiveRegistry},0);Vga(x,
C,O);Gd(C,J);yja(l,J,O);Rja(l,O,J);bka(l,O);b!==void 0&&Dka(O,this.ngContentSelectors,b);a=md(O.index,J);J[8]=a[8];Tja(l,J,null)}catch(R){throw a!==null&&Oga.delete(a[19]),Oga.delete(J[19]),R;}finally{Ad(23),bga()}return new vx(this.componentType,J,!!H)}finally{Hc(g)}};
da.Object.defineProperties(bh.prototype,{inputs:{configurable:!0,enumerable:!0,get:function(){this.cachedInputs!=null||(this.cachedInputs=rka(this.componentDef.inputs));return this.cachedInputs}},outputs:{configurable:!0,enumerable:!0,get:function(){this.cachedOutputs!=null||(this.cachedOutputs=ska(this.componentDef.outputs));return this.cachedOutputs}}});
var vx=function(a,b,c){this._rootLView=b;this._hasInputBindings=c;this.previousInputValues=null;this._tNode=b[1].data[27];this.location=Id(this._tNode,b);this.instance=md(this._tNode.index,b)[8];this.hostView=this.changeDetectorRef=new Qg(b,void 0);this.componentType=a};Y(vx,Oyc);
vx.prototype.setInput=function(a,b){var c=this._tNode;this.previousInputValues!=null||(this.previousInputValues=new Map);if(!this.previousInputValues.has(a)||!Object.is(this.previousInputValues.get(a),b)){var d=this._rootLView;Oe(c,d[1],d,a,b);this.previousInputValues.set(a,b);a=md(c.index,d);$ga(a,1)}};vx.prototype.destroy=function(){this.hostView.destroy()};vx.prototype.onDestroy=function(a){this.hostView.onDestroy(a)};
da.Object.defineProperties(vx.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return new Ed(this._tNode,this._rootLView)}}});var wx=function(a,b,c,d){d=d===void 0?!0:d;this.ngModuleType=a;this._parent=b;this._bootstrapComponents=[];this.destroyCbs=[];this.componentFactoryResolver=new Fzc(this);var e=(a[xyc]||null).bootstrap;this._bootstrapComponents=e instanceof Function?e():e;this._r3Injector=Gga(a,b,[{provide:lx,useValue:this},{provide:Iyc,useValue:this.componentFactoryResolver}].concat(q(c)),Pc(a),new Set(["environment"]));d&&this.resolveInjectorInitializers()};Y(wx,lx);
wx.prototype.resolveInjectorInitializers=function(){this._r3Injector.resolveInjectorInitializers();this.instance=this._r3Injector.get(this.ngModuleType)};wx.prototype.destroy=function(){var a=this._r3Injector;!a.destroyed&&a.destroy();this.destroyCbs.forEach(function(b){return b()});this.destroyCbs=null};wx.prototype.onDestroy=function(a){this.destroyCbs.push(a)};da.Object.defineProperties(wx.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._r3Injector}}});
var Xxa=function(a){this.moduleType=a};Y(Xxa,Wxa);Xxa.prototype.create=function(a){return new wx(this.moduleType,a,[])};var Eka=function(a){this.componentFactoryResolver=new Fzc(this);this.instance=null;var b=new fd([].concat(q(a.providers),[{provide:lx,useValue:this},{provide:Iyc,useValue:this.componentFactoryResolver}]),a.parent||yfa(),a.debugName,new Set(["environment"]));this.injector=b;a.runEnvironmentInitializers&&b.resolveInjectorInitializers()};Y(Eka,lx);Eka.prototype.destroy=function(){this.injector.destroy()};
Eka.prototype.onDestroy=function(a){this.injector.onDestroy(a)};var Hka=function(a){this._injector=a;this.cachedInjectors=new Map};Hka.prototype.ngOnDestroy=function(){try{for(var a=m(this.cachedInjectors.values()),b=a.next();!b.done;b=a.next()){var c=b.value;c!==null&&c.destroy()}}finally{this.cachedInjectors.clear()}};Hka.\u0275prov=Dc({token:Hka,providedIn:"environment",factory:function(){return new Hka(Xc(Xe))}});var Oka=new dd(""),Vg=function(){var a=this;this.done=this.initialized=!1;this.donePromise=new Promise(function(c,d){a.resolve=c;a.reject=d});var b;this.appInits=(b=p(Oka,{optional:!0}))!=null?b:[];this.injector=p(ye)},Goa=function(a){if(!a.initialized){for(var b=[],c=m(a.appInits),d=c.next(),e={};!d.done;e={initResult:void 0},d=c.next())e.initResult=gd(a.injector,d.value),Mka(e.initResult)?b.push(e.initResult):Nka(e.initResult)&&(d=new Promise(function(f){return function(g,k){f.initResult.subscribe({complete:g,
error:k})}}(e)),b.push(d));Promise.all(b).then(function(){a.done=!0;a.resolve()}).catch(function(f){a.reject(f)});b.length===0&&(a.done=!0,a.resolve());a.initialized=!0}};Vg.\u0275fac=function(a){return new (a||Vg)};Vg.\u0275prov=Dc({token:Vg,factory:Vg.\u0275fac,providedIn:"root"});var xx=function(){};xx.prototype.log=function(a){console.log(a)};xx.prototype.warn=function(a){console.warn(a)};xx.\u0275fac=function(a){return new (a||xx)};xx.\u0275prov=Dc({token:xx,factory:xx.\u0275fac,providedIn:"platform"});var Ska=function(){};Ska.\u0275prov=Dc({token:Ska,providedIn:"root",factory:function(){return new Hzc}});var Hzc=function(){this.dirtyEffectCount=0;this.queues=new Map};h=Hzc.prototype;h.add=function(a){this.enqueue(a);this.schedule(a)};h.schedule=function(a){a.dirty&&this.dirtyEffectCount++};h.remove=function(a){var b=this.queues.get(a.zone);b.has(a)&&(b.delete(a),a.dirty&&this.dirtyEffectCount--)};
h.enqueue=function(a){var b=a.zone;this.queues.has(b)||this.queues.set(b,new Set);b=this.queues.get(b);b.has(a)||b.add(a)};h.flush=function(){for(var a=this;this.dirtyEffectCount>0;){for(var b=!1,c=m(this.queues),d=c.next(),e={};!d.done;e={queue$jscomp$4:void 0},d=c.next()){var f=m(d.value);d=f.next().value;f=f.next().value;e.queue$jscomp$4=f;d===null?b||(b=Izc(this,e.queue$jscomp$4)):b||(b=d.run(function(g){return function(){return Izc(a,g.queue$jscomp$4)}}(e)))}b||(this.dirtyEffectCount=0)}};
var Izc=function(a,b){var c=!1;b=m(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.dirty&&(a.dirtyEffectCount--,c=!0,d.run());return c};var Tka=function(a){this[Mc]=a};Tka.prototype.destroy=function(){this[Mc].destroy()};
var Jzc=Object.assign({},wyc,{cleanupFns:void 0,zone:null,onDestroyFn:gia,run:function(){var a=Ufa(!1);try{if(this.dirty=!1,!(this.version>0)||Bea(this)){this.version++;var b=Kc(this);try{this.cleanup(),this.fn()}finally{Gea(this,b)}}}finally{Ufa(a)}},cleanup:function(){var a;if((a=this.cleanupFns)!=null&&a.length){a=Hc(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Hc(a)}}}}),Wka=Object.assign({},Jzc,{consumerMarkedDirty:function(){this.scheduler.schedule(this);
this.notifier.notify(12)},destroy:function(){Hea(this);this.onDestroyFn();this.cleanup();this.scheduler.remove(this)}}),Uka=Object.assign({},Jzc,{consumerMarkedDirty:function(){this.view[2]|=8192;od(this.view);this.notifier.notify(13)},destroy:function(){Hea(this);this.onDestroyFn();this.cleanup();var a;(a=this.view[23])==null||a.delete(this)}});var Kzc=new dd(""),Lzc=new dd(""),yx=function(a,b,c){var d=this;this._ngZone=a;this.registry=b;this._isZoneStable=!0;this._callbacks=[];this._taskTrackingZone=null;if(Vea!==void 0||Xea!=null){var e;this._destroyRef=(e=p(Ce,{optional:!0}))!=null?e:void 0}Mzc||(Mzc=c,Nzc(b));this._watchAngularEvents();a.run(function(){d._taskTrackingZone=typeof Zone=="undefined"?null:Zone.current.get("TaskTrackingZone")})};
yx.prototype._watchAngularEvents=function(){var a=this,b=this._ngZone.onUnstable.subscribe({next:function(){a._isZoneStable=!1}}),c=this._ngZone.runOutsideAngular(function(){return a._ngZone.onStable.subscribe({next:function(){ozc();queueMicrotask(function(){a._isZoneStable=!0;a._runCallbacksIfReady()})}})}),d;(d=this._destroyRef)==null||d.onDestroy(function(){b.unsubscribe();c.unsubscribe()})};yx.prototype.isStable=function(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks};
yx.prototype._runCallbacksIfReady=function(){var a=this;if(this.isStable())queueMicrotask(function(){for(;a._callbacks.length!==0;){var c=a._callbacks.pop();clearTimeout(c.timeoutId);c.doneCb()}});else{var b=Ozc(this);this._callbacks=this._callbacks.filter(function(c){return c.updateCb&&c.updateCb(b)?(clearTimeout(c.timeoutId),!1):!0})}};
var Ozc=function(a){return a._taskTrackingZone?a._taskTrackingZone.macroTasks.map(function(b){return{source:b.source,creationLocation:b.creationLocation,data:b.data}}):[]};h=yx.prototype;h.addCallback=function(a,b,c){var d=this,e=-1;b&&b>0&&(e=setTimeout(function(){d._callbacks=d._callbacks.filter(function(f){return f.timeoutId!==e});a()},b));this._callbacks.push({doneCb:a,timeoutId:e,updateCb:c})};
h.whenStable=function(a,b,c){if(c&&!this._taskTrackingZone)throw Error("Ha");this.addCallback(a,b,c);this._runCallbacksIfReady()};h.registerApplication=function(a){this.registry.registerApplication(a,this)};h.unregisterApplication=function(a){this.registry.unregisterApplication(a)};h.findProviders=function(){return[]};yx.\u0275fac=function(a){return new (a||yx)(Xc(Rg),Xc(zx),Xc(Lzc))};yx.\u0275prov=Dc({token:yx,factory:yx.\u0275fac});var zx=function(){this._applications=new Map};
zx.prototype.registerApplication=function(a,b){this._applications.set(a,b)};zx.prototype.unregisterApplication=function(a){this._applications.delete(a)};zx.prototype.findTestabilityInTree=function(a,b){var c,d;return(d=(c=Mzc)==null?void 0:c.findTestabilityInTree(this,a,b===void 0?!0:b))!=null?d:null};zx.\u0275fac=function(a){return new (a||zx)};zx.\u0275prov=Dc({token:zx,factory:zx.\u0275fac,providedIn:"platform"});var Mzc;var nla=function(){he.apply(this,arguments);this.activeGroups=0;this.teardownAttempted=!1};Y(nla,he);nla.EMPTY=he.EMPTY;nla.create=he.create;nla.prototype.unsubscribe=function(){this.teardownAttempted=!0;this.activeGroups===0&&he.prototype.unsubscribe.call(this)};var Cla={leading:!0,trailing:!1};var Pzc=new dd(""),Wg=function(){var a=this;this._destroyed=this._runningTick=!1;this._destroyListeners=[];this._views=[];this.internalErrorHandler=p(Re);this.afterRenderManager=p(ze);this.zonelessEnabled=p(zoa);this.rootEffectScheduler=p(Ska);this.dirtyFlags=0;this.tracingSnapshot=null;this.autoDetectTestViews=new Set;this.afterTick=new qf;this.componentTypes=[];this.components=[];this.internalPendingTask=p(Ug);this._injector=p(Xe);this._rendererFactory=null;this.tickImpl=function(){if(a._runningTick)throw new Sc(101,
!1);var b=Hc(null);try{a._runningTick=!0;a._rendererFactory!==null||a._injector.destroyed||(a._rendererFactory=a._injector.get(Ye,null,{optional:!0}));for(var c=0;a.dirtyFlags!==0&&c++<10;){Ad(14);a:{var d=void 0,e=void 0,f=void 0,g=void 0;a.dirtyFlags&16&&(a.dirtyFlags&=-17,a.rootEffectScheduler.flush());var k=!1;if(a.dirtyFlags&7){var l=!!(a.dirtyFlags&1);a.dirtyFlags&=-8;a.dirtyFlags|=8;for(var r=m(a.allViews),w=r.next();!w.done;w=r.next()){var x=w.value._lView;if(l||Nfa(x))gka(x,l&&!a.zonelessEnabled?
0:1),k=!0}a.dirtyFlags&=-5;Qzc(a);if(a.dirtyFlags&23)break a}k||((g=a._rendererFactory)==null||(f=g.begin)==null||f.call(g),(e=a._rendererFactory)==null||(d=e.end)==null||d.call(e));a.dirtyFlags&8&&(a.dirtyFlags&=-9,a.afterRenderManager.execute());Qzc(a)}Ad(15)}}finally{a._runningTick=!1;var C;(C=a.tracingSnapshot)==null||C.dispose();a.tracingSnapshot=null;Hc(b);a.afterTick.next();Ad(13)}};p(Be,{optional:!0})};
Wg.prototype.whenStable=function(){var a=this,b;return(new Promise(function(c){b=a.isStable.subscribe({next:function(d){d&&c()}})})).finally(function(){b.unsubscribe()})};Wg.prototype.bootstrap=function(a,b){return Rzc(this,a,b)};
var Rzc=function(a,b,c){var d=d===void 0?Hyc:d;return a._injector.get(Rg).run(function(){Ad(10);var e=b instanceof Pyc;if(!a._injector.get(Vg).done)throw new Sc(405,"");var f;e?f=b:f=Gzc(a._injector.get(Iyc),b);a.componentTypes.push(f.componentType);e=f.isBoundToModule?void 0:a._injector.get(lx);var g=f.create(d,[],c||f.selector,e),k=g.location.nativeElement,l=g.injector.get(Kzc,null);l==null||l.registerApplication(k);g.onDestroy(function(){a.detachView(g.hostView);Gla(a.components,g);l==null||l.unregisterApplication(k)});
a._loadComponent(g);Ad(11,g);return g})};Wg.prototype.tick=function(){this.zonelessEnabled||(this.dirtyFlags|=1);this._tick()};Wg.prototype._tick=function(){Ad(12);this.tracingSnapshot!==null?this.tracingSnapshot.run(0,this.tickImpl):this.tickImpl()};
var Qzc=function(a){a.allViews.some(function(b){return Nfa(b._lView)})?a.dirtyFlags|=2:a.dirtyFlags&=-8},Szc=function(a,b){a._views.push(b);if(b._attachedToViewContainer)throw new Sc(902,!1);b._appRef=a;a=(b._lView[2]&512)!==0;var c=b._lView[16];c===null||a||nka(c,b._lView);Ofa(b._lView)};h=Wg.prototype;h.detachView=function(a){Gla(this._views,a);a._appRef=null;var b=(a._lView[2]&512)!==0,c=a._lView[16];c===null||b||Bia(c,a._lView);Aia(a._lView[1],a._lView)};
h._loadComponent=function(a){Szc(this,a.hostView);try{this.tick()}catch(b){this.internalErrorHandler(b)}this.components.push(a);this._injector.get(Pzc,[]).forEach(function(b){return b(a)})};h.ngOnDestroy=function(){if(!this._destroyed)try{this._destroyListeners.forEach(function(a){return a()}),this._views.slice().forEach(function(a){return a.destroy()})}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}};
h.onDestroy=function(a){var b=this;this._destroyListeners.push(a);return function(){return Gla(b._destroyListeners,a)}};h.destroy=function(){if(this._destroyed)throw new Sc(406,!1);var a=this._injector;a.destroy&&!a.destroyed&&a.destroy()};
da.Object.defineProperties(Wg.prototype,{allViews:{configurable:!0,enumerable:!0,get:function(){return[].concat(q(this.autoDetectTestViews.keys()),q(this._views))}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}},isStable:{configurable:!0,enumerable:!0,get:function(){return this.internalPendingTask.hasPendingTasksObservable.pipe(A(function(a){return!a}))}},injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},viewCount:{configurable:!0,enumerable:!0,
get:function(){return this._views.length}}});Wg.\u0275fac=function(a){return new (a||Wg)};Wg.\u0275prov=Dc({token:Wg,factory:Wg.\u0275fac,providedIn:"root"});var Tzc=new Map;new dd("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR");new dd("");var Ax=function(){this.internalPendingTasks=p(Ug);this.scheduler=p(Ze);this.errorHandler=p(Re)};Ax.prototype.add=function(){var a=this,b=this.internalPendingTasks.add();return function(){a.internalPendingTasks.has(b)&&(a.scheduler.notify(11),a.internalPendingTasks.remove(b))}};Ax.prototype.run=function(a){var b=this.add();a().catch(this.errorHandler).finally(b)};Ax.\u0275prov=Dc({token:Ax,providedIn:"root",factory:function(){return new Ax}});var eg=function(){};eg.__NG_ELEMENT_ID__=$la;var Ff=function(a,b,c){this._lContainer=a;this._hostTNode=b;this._hostLView=c};Y(Ff,eg);Ff.__NG_ELEMENT_ID__=eg.__NG_ELEMENT_ID__;h=Ff.prototype;h.clear=function(){for(;this.length>0;)this.remove(this.length-1)};h.get=function(a){var b=this._lContainer[8];return b!==null&&b[a]||null};
h.createEmbeddedView=function(a,b,c){if(typeof c==="number")var d=c;else if(c!=null){d=c.index;var e=c.injector}a=Uzc(a,b||{},e,null);Vzc(this,a,d,Df(this._hostTNode,null));return a};
h.createComponent=function(a,b,c,d,e,f,g){var k=a&&typeof a!=="function";k||(g=b||{},b=g.index,c=g.injector,d=g.projectableNodes,e=g.environmentInjector||g.ngModuleRef,f=g.directives,g=g.bindings);a=k?a:new bh(a[ad]||null);c=c||this.parentInjector;e||a.ngModule!=null||(k=(k?c:this.parentInjector).get(Xe,null))&&(e=k);d=a.create(c,d,null,e,f,g);Vzc(this,d.hostView,b,Df(this._hostTNode,null));return d};h.insert=function(a,b){return Vzc(this,a,b,!0)};
var Vzc=function(a,b,c,d){var e=b._lView;if(id(e[3])){var f=a.indexOf(b);f!==-1?a.detach(f):(f=e[3],f=new Ff(f,f[5],f[3]),f.detach(f.indexOf(b)))}c=a._adjustIndex(c);a=a._lContainer;oka(a,e,c,d);if(b._appRef)throw new Sc(902,!1);b._attachedToViewContainer=!0;d=ama(a);c>=d.length?d.push(b):d.splice(c,0,b);return b};h=Ff.prototype;h.move=function(a,b){return this.insert(a,b)};h.indexOf=function(a){var b=this._lContainer[8];return b!==null?b.indexOf(a):-1};
h.remove=function(a){a=this._adjustIndex(a,-1);var b=pka(this._lContainer,a);b&&(jfa(ama(this._lContainer),a),Dia(b[1],b))};h.detach=function(a){a=this._adjustIndex(a,-1);var b=pka(this._lContainer,a);return b&&jfa(ama(this._lContainer),a)!=null?new Qg(b):null};h._adjustIndex=function(a,b){return a==null?this.length+(b===void 0?0:b):a};
da.Object.defineProperties(Ff.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return Id(this._hostTNode,this._hostLView)}},injector:{configurable:!0,enumerable:!0,get:function(){return new Ed(this._hostTNode,this._hostLView)}},parentInjector:{configurable:!0,enumerable:!0,get:function(){var a=sga(this._hostTNode,this._hostLView);if(a!==-1){var b=jga(a,this._hostLView);return new Ed(b[1].data[(a&32767)+8],b)}return new Ed(null,this._hostLView)}},length:{configurable:!0,enumerable:!0,
get:function(){return this._lContainer.length-10}}});var bma=cma;var dma=gma;var rma=Symbol("Ka");var Wzc=function(){};Wzc.prototype.destroy=function(){};Wzc.prototype.updateValue=function(){};var wma=function(a,b,c){var d=Math.min(b,c);b=Math.max(b,c);c=a.detach(b);if(b-d>1){var e=a.detach(d);a.attach(d,c);a.attach(b,e)}else a.attach(d,c)};Wzc.prototype.move=function(a,b){this.attach(b,this.detach(a,!0))};var xma=function(){this.kvMap=new Map;this._vMap=void 0};h=xma.prototype;h.has=function(a){return this.kvMap.has(a)};
h.delete=function(a){if(!this.has(a))return!1;var b=this.kvMap.get(a);this._vMap!==void 0&&this._vMap.has(b)?(this.kvMap.set(a,this._vMap.get(b)),this._vMap.delete(b)):this.kvMap.delete(a);return!0};h.get=function(a){return this.kvMap.get(a)};h.set=function(a,b){if(this.kvMap.has(a)){a=this.kvMap.get(a);this._vMap===void 0&&(this._vMap=new Map);for(var c=this._vMap;c.has(a);)a=c.get(a);c.set(a,b)}else this.kvMap.set(a,b)};
h.forEach=function(a){for(var b=m(this.kvMap),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;a(d,c);if(this._vMap!==void 0)for(var e=this._vMap;e.has(d);)d=e.get(d),a(d,c)}};var Xzc=function(a,b,c){this.lContainer=a;this.$implicit=b;this.$index=c};da.Object.defineProperties(Xzc.prototype,{$count:{configurable:!0,enumerable:!0,get:function(){return this.lContainer.length-10}}});var Cma=function(a){this.hasEmptyBlock=!1;this.trackByFn=a;this.liveCollection=void 0},Dma=function(a,b,c){this.lContainer=a;this.hostLView=b;this.templateTNode=c;this.operationsCounter=void 0;this.needsIndexUpdate=!1};Y(Dma,Wzc);h=Dma.prototype;h.at=function(a){return mka(this.lContainer,a)[8].$implicit};
h.attach=function(a,b){var c=b[6];this.needsIndexUpdate||(this.needsIndexUpdate=a!==this.length);oka(this.lContainer,b,a,Df(this.templateTNode,c))};h.detach=function(a,b){this.needsIndexUpdate||(this.needsIndexUpdate=a!==this.length-1);b&&(b=this.lContainer,b.length<=10||(b=b[10+a])&&b[26]&&(b[26].skipLeaveAnimations=!0));return pka(this.lContainer,a)};
h.create=function(a,b){a=Hla(this.hostLView,this.templateTNode,new Xzc(this.lContainer,b,a),{dehydratedView:null});var c;(c=this.operationsCounter)==null||c.recordCreate();return a};h.destroy=function(a){Dia(a[1],a);var b;(b=this.operationsCounter)==null||b.recordDestroy()};h.updateValue=function(a,b){mka(this.lContainer,a)[8].$implicit=b};h.reset=function(){this.needsIndexUpdate=!1;var a;(a=this.operationsCounter)==null||a.reset()};
da.Object.defineProperties(Dma.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.lContainer.length-10}}});var Fma=function(a,b,c,d){Pe=!0;return b[11].createElement(d,qd.currentNamespace)};var Gma=function(a,b){Pe=!0;return b[11].createComment(Uga(""))};var Ima=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],["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\u202fa","h:mm:ss\u202fa","h:mm:ss\u202fa z","h:mm:ss\u202fa zzzz"],["{1}, {0}",void 0,void 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 Math.floor(Math.abs(a))===1&&b===0?1:5}];var Jma={};var Tma=["zero","one","two","few","many"];var Sma="en-US";var Rma={marker:"element"},Qma={marker:"ICU"};var Mma=0,Kma=0,Oma=function(a,b,c){Pe=!0;a:{a=a[11];switch(c){case Node.COMMENT_NODE:b=a.createComment(Uga(b));break a;case Node.TEXT_NODE:b=a.createText(b);break a;case Node.ELEMENT_NODE:b=a.createElement(b,null);break a}b=void 0}return b};var Xma=/\ufffd(\d+):?\d*\ufffd/gi,fna=/\ufffd(\d+)\ufffd/,cna=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Zma=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,hna=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,gna=/\uE500/g;var jna={};var Yzc,gg=function(a){this._emitDistinctChangesOnly=a=a===void 0?!1:a;this.dirty=!0;this._onDirty=void 0;this._results=[];this._changesDetected=!1;this._changes=void 0;this.length=0;this.last=this.first=void 0;this[Yzc]=nna};h=gg.prototype;h.get=function(a){return this._results[a]};h.map=function(a){return this._results.map(a)};h.filter=function(a){return this._results.filter(a)};h.find=function(a){return this._results.find(a)};h.reduce=function(a,b){return this._results.reduce(a,b)};h.forEach=function(a){this._results.forEach(a)};
h.some=function(a){return this._results.some(a)};h.toArray=function(){return this._results.slice()};h.toString=function(){return this._results.toString()};h.reset=function(a,b){this.dirty=!1;a=a.flat(Number.POSITIVE_INFINITY);a:{var c=this._results;if(c.length!==a.length)b=!1;else{for(var d=0;d<c.length;d++){var e=c[d],f=a[d];b&&(e=b(e),f=b(f));if(f!==e){b=!1;break a}}b=!0}}if(this._changesDetected=!b)this._results=a,this.length=a.length,this.last=a[this.length-1],this.first=a[0]};
var kg=function(a){a._changes===void 0||!a._changesDetected&&a._emitDistinctChangesOnly||a._changes.next(a)},Cna=function(a,b){a._onDirty=b};gg.prototype.setDirty=function(){this.dirty=!0;var a;(a=this._onDirty)==null||a.call(this)};gg.prototype.destroy=function(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())};da.Object.defineProperties(gg.prototype,{changes:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this._changes)!=null?a:this._changes=new qf}}});
Yzc=Symbol.iterator;var dg=function(a,b,c){this._declarationLView=a;this._declarationTContainer=b;this.elementRef=c};dg.prototype.createEmbeddedView=function(a,b){return Uzc(this,a,b)};var Uzc=function(a,b,c,d){a=Hla(a._declarationLView,a._declarationTContainer,b,{embeddedViewInjector:c,dehydratedView:d});return new Qg(a)};da.Object.defineProperties(dg.prototype,{ssrId:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this._declarationTContainer.tView)==null?void 0:a.ssrId)||null}}});
dg.__NG_ELEMENT_ID__=pna;var tna=function(a){this.queryList=a;this.matches=null};tna.prototype.clone=function(){return new tna(this.queryList)};tna.prototype.setDirty=function(){this.queryList.setDirty()};var sna=function(a){this.queries=a=a===void 0?[]:a};sna.prototype.createEmbeddedView=function(a){var b=a.queries;if(b!==null){a=a.contentQueries!==null?a.contentQueries[0]:b.length;for(var c=[],d=0;d<a;d++)c.push(this.queries[b.queries[d].indexInDeclarationView].clone());return new sna(c)}return null};
sna.prototype.detachView=function(a){Sja(this,a)};var Sja=function(a,b){for(var c=0;c<a.queries.length;c++)b.queries.queries[c].matches!==null&&a.queries[c].setDirty()},wna=function(a,b,c){this.flags=b;this.read=c===void 0?null:c;typeof a==="string"?this.predicate=xna(a):this.predicate=a},yna=function(a){this.queries=a=a===void 0?[]:a};h=yna.prototype;h.elementStart=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].elementStart(a,b)};h.elementEnd=function(a){for(var b=0;b<this.queries.length;b++)this.queries[b].elementEnd(a)};
h.embeddedTView=function(a){for(var b=null,c=0;c<this.length;c++){var d=this.queries[c].embeddedTView(a,b!==null?b.length:0);d&&(d.indexInDeclarationView=c,b!==null?b.push(d):b=[d])}return b!==null?new yna(b):null};h.template=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].template(a,b)};h.track=function(a){this.queries.push(a)};da.Object.defineProperties(yna.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.queries.length}}});
var jg=function(a,b){this.metadata=a;this.matches=null;this.indexInDeclarationView=-1;this.crossesNgTemplate=!1;this._appliesToNextNode=!0;this._declarationNodeIndex=b===void 0?-1:b};
jg.prototype.elementStart=function(a,b){if(Zzc(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(f!==null)for(var g=0;g<f.length;g+=2)if(f[g]===e){f=f[g+1];break a}f=null}$zc(this,a,b,f);$zc(this,a,b,Aga(b,a,e,!1,!1))}else c===dg?b.type&4&&$zc(this,a,b,-1):$zc(this,a,b,Aga(b,a,c,!1,!1))}};jg.prototype.elementEnd=function(a){this._declarationNodeIndex===a.index&&(this._appliesToNextNode=!1)};
jg.prototype.template=function(a,b){this.elementStart(a,b)};jg.prototype.embeddedTView=function(a,b){return Zzc(this,a)?(this.crossesNgTemplate=!0,aAc(this,-a.index,b),new jg(this.metadata)):null};
var Zzc=function(a,b){if(a._appliesToNextNode&&(a.metadata.flags&1)!==1){a=a._declarationNodeIndex;for(b=b.parent;b!==null&&b.type&8&&b.index!==a;)b=b.parent;return a===(b!==null?b.index:-1)}return a._appliesToNextNode},$zc=function(a,b,c,d){if(d!==null){var e=a.metadata.read;e!==null?e===Hd||e===eg||e===dg&&c.type&4?aAc(a,c.index,-2):(b=Aga(c,b,e,!1,!1),b!==null&&aAc(a,c.index,b)):aAc(a,c.index,d)}},aAc=function(a,b,c){a.matches===null?a.matches=[b,c]:a.matches.push(b,c)};var rg=0,sg=0,tg=0,Hna=0,Jna=0;var Bx=function(){};Bx.\u0275fac=function(a){return new (a||Bx)(Xc(Wg))};Bx.\u0275mod=$e({type:Bx});Bx.\u0275inj=Fc({});new dd("",{providedIn:"platform",factory:function(){return null}});new dd("",{providedIn:"platform",factory:function(){return null}});new dd("",{providedIn:"platform",factory:function(){return null}});var ooa=Symbol("Ma"),poa=Object.assign({},Kea,{transformFn:void 0,applyValueToInputSignal:function(a,b){Nc(a,b)}});var roa=function(){var a=this;this.destroyed=!1;this.listeners=null;this.errorHandler=p(ux,{optional:!0});this.destroyRef=p(Ce);this.destroyRef.onDestroy(function(){a.destroyed=!0;a.listeners=null})};roa.prototype.subscribe=function(a){var b=this;if(this.destroyed)throw new Sc(953,!1);var c;((c=this.listeners)!=null?c:this.listeners=[]).push(a);return{unsubscribe:function(){var d,e=(d=b.listeners)==null?void 0:d.indexOf(a);if(e!==void 0&&e!==-1){var f;(f=b.listeners)==null||f.splice(e,1)}}}};
roa.prototype.emit=function(a){if(this.destroyed)console.warn(Qea(953,!1));else if(this.listeners!==null){var b=Hc(null);try{for(var c=m(this.listeners),d=c.next();!d.done;d=c.next()){var e=d.value;try{e(a)}catch(g){var f=void 0;(f=this.errorHandler)==null||f.handleError(g)}}}finally{Hc(b)}}};Og.required=function(a){return qoa(ooa,a)};toa.required=function(){return soa(ooa)};Pg.required=function(){return Bna(!0,!0)};voa.required=function(){return Bna(!0,!0)};var Cx=function(){};Cx.__NG_ELEMENT_ID__=woa;var bAc=function(){};bAc.prototype.supports=function(a){return Xga(a)};bAc.prototype.create=function(a){return new Dx(a)};var cAc=function(a,b){return b},Dx=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||cAc};
Dx.prototype.forEachItem=function(a){var b;for(b=this._itHead;b!==null;b=b._next)a(b)};var dAc=function(a,b){var c=a._itHead;a=a._removalsHead;for(var d=0,e=null;c||a;){var f=!a||c&&c.currentIndex<xoa(a,d,e)?c:a,g=xoa(f,d,e),k=f.currentIndex;if(f===a)d--,a=a._nextRemoved;else if(c=c._next,f.previousIndex==null)d++;else{e||(e=[]);var l=g-d,r=k-d;if(l!=r){for(var w=0;w<l;w++){var x=w<e.length?e[w]:e[w]=0,C=x+w;r<=C&&C<l&&(e[w]=x+1)}e[f.previousIndex]=r-l}}g!==k&&b(f,g,k)}};
Dx.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;b!==null;b=b._nextAdded)a(b)};Dx.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;b!==null;b=b._nextRemoved)a(b)};var eAc=function(a,b){for(a=a._identityChangesHead;a!==null;a=a._nextIdentityChange)b(a)};h=Dx.prototype;h.diff=function(a){a==null&&(a=[]);if(!Xga(a))throw new Sc(900,!1);return this.check(a)?this:null};h.onDestroy=function(){};
h.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 g=this._trackByFn(e,f);c!==null&&Object.is(c.trackById,g)?(d&&(c=this._verifyReinsertion(c,f,g,e)),Object.is(c.item,f)||this._addIdentityChange(c,f)):(c=this._mismatch(c,f,g,e),d=!0);c=c._next}}else{var k=0;Yga(a,function(l){g=b._trackByFn(k,l);c!==null&&Object.is(c.trackById,g)?(d&&(c=b._verifyReinsertion(c,l,g,k)),Object.is(c.item,l)||b._addIdentityChange(c,
l)):(c=b._mismatch(c,l,g,k),d=!0);c=c._next;k++});this.length=k}this._truncate(c);this.collection=a;return this.isDirty};
h._reset=function(){if(this.isDirty){var a;for(a=this._previousItHead=this._itHead;a!==null;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;a!==null;a=a._nextAdded)a.previousIndex=a.currentIndex;this._additionsHead=this._additionsTail=null;for(a=this._movesHead;a!==null;a=a._nextMoved)a.previousIndex=a.currentIndex;this._identityChangesHead=this._identityChangesTail=this._removalsHead=this._removalsTail=this._movesHead=this._movesTail=null}};
h._mismatch=function(a,b,c,d){if(a===null)var e=this._itTail;else e=a._prev,this._remove(a);a=this._unlinkedRecords===null?null:this._unlinkedRecords.get(c,null);a!==null?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._reinsertAfter(a,e,d)):(a=this._linkedRecords===null?null:this._linkedRecords.get(c,d),a!==null?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._moveAfter(a,e,d)):a=this._addAfter(new fAc(b,c),e,d));return a};
h._verifyReinsertion=function(a,b,c,d){b=this._unlinkedRecords===null?null:this._unlinkedRecords.get(c,null);b!==null?a=this._reinsertAfter(b,a._prev,d):a.currentIndex!=d&&(a.currentIndex=d,this._addToMoves(a,d));return a};
h._truncate=function(a){for(;a!==null;){var b=a._next;this._addToRemovals(this._unlink(a));a=b}this._unlinkedRecords!==null&&this._unlinkedRecords.clear();this._additionsTail!==null&&(this._additionsTail._nextAdded=null);this._movesTail!==null&&(this._movesTail._nextMoved=null);this._itTail!==null&&(this._itTail._next=null);this._removalsTail!==null&&(this._removalsTail._nextRemoved=null);this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)};
h._reinsertAfter=function(a,b,c){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(a);var d=a._prevRemoved,e=a._nextRemoved;d===null?this._removalsHead=e:d._nextRemoved=e;e===null?this._removalsTail=d:e._prevRemoved=d;this._insertAfter(a,b,c);this._addToMoves(a,c);return a};h._moveAfter=function(a,b,c){this._unlink(a);this._insertAfter(a,b,c);this._addToMoves(a,c);return a};
h._addAfter=function(a,b,c){this._insertAfter(a,b,c);this._additionsTail=this._additionsTail===null?this._additionsHead=a:this._additionsTail._nextAdded=a;return a};h._insertAfter=function(a,b,c){var d=b===null?this._itHead:b._next;a._next=d;a._prev=b;d===null?this._itTail=a:d._prev=a;b===null?this._itHead=a:b._next=a;this._linkedRecords===null&&(this._linkedRecords=new Ex);this._linkedRecords.put(a);a.currentIndex=c;return a};h._remove=function(a){return this._addToRemovals(this._unlink(a))};
h._unlink=function(a){this._linkedRecords!==null&&this._linkedRecords.remove(a);var b=a._prev,c=a._next;b===null?this._itHead=c:b._next=c;c===null?this._itTail=b:c._prev=b;return a};h._addToMoves=function(a,b){if(a.previousIndex===b)return a;this._movesTail=this._movesTail===null?this._movesHead=a:this._movesTail._nextMoved=a;return a};
h._addToRemovals=function(a){this._unlinkedRecords===null&&(this._unlinkedRecords=new Ex);this._unlinkedRecords.put(a);a.currentIndex=null;a._nextRemoved=null;this._removalsTail===null?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a);return a};
h._addIdentityChange=function(a,b){a.item=b;this._identityChangesTail=this._identityChangesTail===null?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a;return a};da.Object.defineProperties(Dx.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}}});
var fAc=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},gAc=function(){this._tail=this._head=null};gAc.prototype.add=function(a){this._head===null?(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)};
gAc.prototype.get=function(a,b){var c;for(c=this._head;c!==null;c=c._nextDup)if((b===null||b<=c.currentIndex)&&Object.is(c.trackById,a))return c;return null};gAc.prototype.remove=function(a){var b=a._prevDup;a=a._nextDup;b===null?this._head=a:b._nextDup=a;a===null?this._tail=b:a._prevDup=b;return this._head===null};var Ex=function(){this.map=new Map};Ex.prototype.put=function(a){var b=a.trackById,c=this.map.get(b);c||(c=new gAc,this.map.set(b,c));c.add(a)};
Ex.prototype.get=function(a,b){var c=this.map.get(a);return c?c.get(a,b):null};Ex.prototype.remove=function(a){var b=a.trackById;this.map.get(b).remove(a)&&this.map.delete(b);return a};Ex.prototype.clear=function(){this.map.clear()};da.Object.defineProperties(Ex.prototype,{isEmpty:{configurable:!0,enumerable:!0,get:function(){return this.map.size===0}}});var hAc=function(){};hAc.prototype.supports=function(a){return a instanceof Map||Wga(a)};hAc.prototype.create=function(){return new iAc};var iAc=function(){this._records=new Map;this._removalsTail=this._removalsHead=this._additionsTail=this._additionsHead=this._changesTail=this._changesHead=this._previousMapHead=this._appendAfter=this._mapHead=null};iAc.prototype.forEachItem=function(a){var b;for(b=this._mapHead;b!==null;b=b._next)a(b)};var jAc=function(a,b){for(a=a._changesHead;a!==null;a=a._nextChanged)b(a)};
h=iAc.prototype;h.forEachAddedItem=function(a){var b;for(b=this._additionsHead;b!==null;b=b._nextAdded)a(b)};h.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;b!==null;b=b._nextRemoved)a(b)};h.diff=function(a){if(!a)a=new Map;else if(!(a instanceof Map||Wga(a)))throw new Sc(900,!1);return this.check(a)?this:null};h.onDestroy=function(){};
h.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;a!==null;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};h._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};
h._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 kAc(a);this._records.set(a,c);c.currentValue=b;this._addToAdditions(c);return c};
h._reset=function(){if(this.isDirty){var a;for(a=this._previousMapHead=this._mapHead;a!==null;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;a!==null;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;a!=null;a=a._nextAdded)a.previousValue=a.currentValue;this._removalsHead=this._additionsHead=this._additionsTail=this._changesHead=this._changesTail=null}};
h._maybeAddToChanges=function(a,b){Object.is(b,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=b,this._addToChanges(a))};h._addToAdditions=function(a){this._additionsHead===null?this._additionsHead=this._additionsTail=a:this._additionsTail=this._additionsTail._nextAdded=a};h._addToChanges=function(a){this._changesHead===null?this._changesHead=this._changesTail=a:this._changesTail=this._changesTail._nextChanged=a};
h._forEach=function(a,b){a instanceof Map?a.forEach(b):Object.keys(a).forEach(function(c){return b(a[c],c)})};da.Object.defineProperties(iAc.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}}});var kAc=function(a){this.key=a;this._nextChanged=this._nextRemoved=this._nextAdded=this._prev=this._next=this._nextPrevious=this.currentValue=this.previousValue=null};var Fx=function(a){this.factories=a};Fx.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b!=null)return b;throw new Sc(901,!1);};Fx.\u0275prov=Dc({token:Fx,providedIn:"root",factory:function(){return new Fx([new bAc])}});var Gx=function(a){this.factories=a};Gx.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b)return b;throw new Sc(901,!1);};Gx.\u0275prov=Dc({token:Gx,providedIn:"root",factory:function(){return new Gx([new hAc])}});var Hx=function(){var a=this;this.applicationErrorHandler=p(Re);this.appRef=p(Wg);this.taskService=p(Ug);this.ngZone=p(Rg);this.zonelessEnabled=p(zoa);this.tracing=p(Be,{optional:!0});this.zoneIsDefined=typeof Zone!=="undefined"&&!!Zone.root.run;this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];this.subscriptions=new Pd;var b;this.angularZoneId=this.zoneIsDefined?(b=this.ngZone._inner)==null?void 0:b.get("isAngularZone_ID"):null;var c;this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&
((c=p(Aoa,{optional:!0}))!=null?c:!1);this.cancelScheduledCallback=null;this.runningTick=this.useMicrotaskScheduler=!1;this.pendingRenderTaskId=null;this.subscriptions.add(this.appRef.afterTick.subscribe(function(){a.runningTick||a.cleanup()}));this.subscriptions.add(this.ngZone.onUnstable.subscribe(function(){a.runningTick||a.cleanup()}))};
Hx.prototype.notify=function(a){var b=this;if(this.zonelessEnabled||a!==5){switch(a){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:this.appRef.dirtyFlags|=2;break;case 12:this.appRef.dirtyFlags|=16;break;case 13:this.appRef.dirtyFlags|=2;break;case 11:break;default:this.appRef.dirtyFlags|=8}var c,d;this.appRef.tracingSnapshot=(d=(c=this.tracing)==null?void 0:c.snapshot(this.appRef.tracingSnapshot))!=null?d:null;if(!(this.appRef.destroyed||
this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get("isAngularZone_ID"+this.angularZoneId))){var e=this.useMicrotaskScheduler?iia:hia;this.pendingRenderTaskId=this.taskService.add();this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(function(){return e(function(){return b.tick()})}):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(function(){return e(function(){return b.tick()})})}}};
Hx.prototype.tick=function(){var a=this;if(!this.runningTick&&!this.appRef.destroyed)if(this.appRef.dirtyFlags===0)this.cleanup();else{!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);var b=this.taskService.add();try{this.ngZone.run(function(){a.runningTick=!0;a.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(c){this.taskService.remove(b),this.applicationErrorHandler(c)}finally{this.cleanup()}this.useMicrotaskScheduler=!0;iia(function(){a.useMicrotaskScheduler=
!1;a.taskService.remove(b)})}};Hx.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe();this.cleanup()};Hx.prototype.cleanup=function(){this.runningTick=!1;var a;(a=this.cancelScheduledCallback)==null||a.call(this);this.cancelScheduledCallback=null;this.pendingRenderTaskId!==null&&(a=this.pendingRenderTaskId,this.pendingRenderTaskId=null,this.taskService.remove(a))};Hx.\u0275fac=function(a){return new (a||Hx)};Hx.\u0275prov=Dc({token:Hx,factory:Hx.\u0275fac,providedIn:"root"});var Sg=function(){this.zone=p(Rg);this.changeDetectionScheduler=p(Ze);this.applicationRef=p(Wg);this.applicationErrorHandler=p(Re)};Sg.prototype.initialize=function(){var a=this;this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:function(){a.changeDetectionScheduler.runningTick||a.zone.run(function(){try{a.applicationRef.dirtyFlags|=1,a.applicationRef._tick()}catch(b){a.applicationErrorHandler(b)}})}}))};
Sg.prototype.ngOnDestroy=function(){var a;(a=this._onMicrotaskEmptySubscription)==null||a.unsubscribe()};Sg.\u0275fac=function(a){return new (a||Sg)};Sg.\u0275prov=Dc({token:Sg,factory:Sg.\u0275fac,providedIn:"root"});var Coa=new dd("",{factory:function(){return!1}}),Tg=function(){this.subscription=new Pd;this.initialized=!1;this.zone=p(Rg);this.pendingTasks=p(Ug)};
Tg.prototype.initialize=function(){var a=this;if(!this.initialized){this.initialized=!0;var b=null;this.zone.isStable||this.zone.hasPendingMacrotasks||this.zone.hasPendingMicrotasks||(b=this.pendingTasks.add());this.zone.runOutsideAngular(function(){a.subscription.add(a.zone.onStable.subscribe(function(){ozc();queueMicrotask(function(){b===null||a.zone.hasPendingMacrotasks||a.zone.hasPendingMicrotasks||(a.pendingTasks.remove(b),b=null)})}))});this.subscription.add(this.zone.onUnstable.subscribe(function(){if(!Nya())throw new Sc(909,
!1);b!=null||(b=a.pendingTasks.add())}))}};Tg.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};Tg.\u0275fac=function(a){return new (a||Tg)};Tg.\u0275prov=Dc({token:Tg,factory:Tg.\u0275fac,providedIn:"root"});var Hoa=new dd("",{providedIn:"root",factory:function(){return p(Hoa,{optional:!0,skipSelf:!0})||(typeof kwc!=="undefined"?"en-US":typeof $localize!=="undefined"&&$localize.locale||"en-US")}});new dd("",{providedIn:"root",factory:function(){return"USD"}});new dd("");new dd("");var Eoa=new dd("");var Ioa=new dd(""),Joa;var Ix=function(){};Ix.\u0275fac=function(a){return new (a||Ix)};Ix.\u0275prov=Dc({token:Ix,factory:Ix.\u0275fac,providedIn:"root"});new dd("");var Xg=function(a){this._injector=a;this._modules=[];this._destroyListeners=[];this._destroyed=!1},lAc=function(a,b,c){var d=[];d.push(Boa({ngZoneFactory:function(){var f=c==null?void 0:c.ngZone,g=Object.assign({},yoa({eventCoalescing:c==null?void 0:c.ngZoneEventCoalescing,runCoalescing:c==null?void 0:c.ngZoneRunCoalescing}));f=f===void 0?"zone.js":f;return f==="noop"?new tx:f==="zone.js"?new Rg(g):f}}));var e;d=[[{provide:Ze,useExisting:Hx},{provide:Rg,useClass:tx},{provide:zoa,useValue:!0}]].concat(q(d),
q((e=c==null?void 0:c.applicationProviders)!=null?e:[]),[qzc],q([]));b=new wx(b.moduleType,a.injector,d,!1);Joa=Loa;return Koa({moduleRef:b,allPlatformModules:a._modules,platformInjector:a.injector})},nAc=function(){var a=mAc(),b=Jx,c={applicationProviders:[Doa()]};c=c===void 0?[]:c;var d=Fla({},c);Joa=Loa;Promise.resolve(new Xxa(b)).then(function(e){return lAc(a,e,d)})};Xg.prototype.onDestroy=function(a){this._destroyListeners.push(a)};
Xg.prototype.destroy=function(){if(this._destroyed)throw new Sc(404,!1);this._modules.slice().forEach(function(b){return b.destroy()});this._destroyListeners.forEach(function(b){return b()});var a=this._injector.get(Eoa,null);a&&(a.forEach(function(b){return b()}),a.clear());this._destroyed=!0};da.Object.defineProperties(Xg.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
Xg.\u0275fac=function(a){return new (a||Xg)(Xc(ye))};Xg.\u0275prov=Dc({token:Xg,factory:Xg.\u0275fac,providedIn:"platform"});var Ooa=null;var Toa=function(a){return a};var oAc=function(a){var b=this;this.isError=Zg(function(){return b.status()==="error"});this.isLoading=Zg(function(){return b.status()==="loading"||b.status()==="reloading"});this.isValueDefined=Zg(function(){return b.isError()?!1:b.value()!==void 0});this.value=a;this.value.set=this.set.bind(this);this.value.update=this.update.bind(this);this.value.asReadonly=Ana};oAc.prototype.update=function(a){this.set(a(Oc(this.value)))};oAc.prototype.hasValue=function(){return this.isValueDefined()};
oAc.prototype.asReadonly=function(){return this};
var Kx=function(a,b,c,d,e,f){f=f===void 0?!0:f;oAc.call(this,Zg(function(){var k,l,r=(l=(k=g.state()).stream)==null?void 0:l.call(k);if(!r||g.state().status==="loading"&&g.error())return c;if(r.error!==void 0){if(f)throw new pAc(g.error());return c}return r.value},{equal:d}));var g=this;this.loaderFn=b;this.equal=d;this.resolvePendingTask=void 0;this.destroyed=!1;this.status=Zg(function(){return Woa(g.state())});this.error=Zg(function(){var k,l,r=(l=(k=g.state()).stream)==null?void 0:l.call(k);return r&&
r.error!==void 0?r.error:void 0});this.extRequest=Voa({source:a,computation:function(k){return{request:k,reload:0}}});this.state=Voa({source:this.extRequest,computation:function(k,l){var r=k.request===void 0?"idle":"loading";return l?{extRequest:k,status:r,previousStatus:Woa(l.value),stream:l.value.extRequest.request===k.request?l.value.stream:void 0}:{extRequest:k,status:r,previousStatus:"idle",stream:void 0}}});this.effectRef=ef(this.loadEffect.bind(this),{injector:e,manualCleanup:!0});this.pendingTasks=
e.get(Ax);this.unregisterOnDestroy=e.get(Ce).onDestroy(function(){return g.destroy()})};Y(Kx,oAc);Kx.prototype.set=function(a){if(!this.destroyed){var b=Oc(this.error),c=Oc(this.state);if(!b&&(b=Oc(this.value),c.status==="local"&&(this.equal?this.equal(b,a):b===a)))return;this.state.set({extRequest:c.extRequest,status:"local",previousStatus:"local",stream:ng({value:a})});qAc(this)}};
Kx.prototype.reload=function(){var a=Oc(this.state).status;if(a==="idle"||a==="loading")return!1;this.extRequest.update(function(b){return{request:b.request,reload:b.reload+1}});return!0};Kx.prototype.destroy=function(){this.destroyed=!0;this.unregisterOnDestroy();this.effectRef.destroy();qAc(this);this.state.set({extRequest:{request:void 0,reload:0},status:"idle",previousStatus:"idle",stream:void 0})};
Kx.prototype.loadEffect=function(){var a=this,b,c,d,e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:b=a.extRequest();c=Oc(a.state);d=c.status;e=c.previousStatus;if(b.request===void 0||d!=="loading")return x.return();qAc(a);f=a.resolvePendingTask=a.pendingTasks.add();g=a.pendingController=new AbortController;k=g.signal;Wd(x,2,3);return z(x,Oc(function(){return a.loaderFn({params:b.request,request:b.request,abortSignal:k,previous:{status:e}})}),5);case 5:l=x.yieldResult;if(k.aborted||
Oc(a.extRequest)!==b)return x.return();a.state.set({extRequest:b,status:"resolved",previousStatus:"resolved",stream:l});case 3:Xd(x);(r=f)==null||r();f=void 0;Zd(x,0);break;case 2:w=$d(x);if(k.aborted||Oc(a.extRequest)!==b)return x.return();a.state.set({extRequest:b,status:"resolved",previousStatus:"error",stream:ng({error:w instanceof Error?w:new rAc(w)})});x.jumpTo(3)}})};
var qAc=function(a){Oc(function(){var c;return(c=a.pendingController)==null?void 0:c.abort()});a.pendingController=void 0;var b;(b=a.resolvePendingTask)==null||b.call(a);a.resolvePendingTask=void 0},pAc=function(a){a=Error.call(this,a.message,{cause:a});this.message=a.message;"stack"in a&&(this.stack=a.stack)};Y(pAc,Error);var rAc=function(a){a=Error.call(this,String(a),{cause:a});this.message=a.message;"stack"in a&&(this.stack=a.stack)};Y(rAc,Error);var sAc=Symbol("Na"),tAc=new Set,uAc=Object.assign({},Kea,{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:sAc,cleanup:null,consumerMarkedDirty:function(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn:function(a){this.sequence.lastPhase=this.phase;if(!this.dirty)return this.signal;this.dirty=!1;if(this.value!==sAc&&
!Bea(this))return this.signal;try{for(var b,c=m((b=this.cleanup)!=null?b:tAc),d=c.next();!d.done;d=c.next()){var e=d.value;e()}}finally{var f;(f=this.cleanup)==null||f.clear()}b=[];a!==void 0&&b.push(a);b.push(this.registerCleanupFn);a=Kc(this);try{var g=this.userFn.apply(null,b)}finally{Gea(this,a)}this.value!==sAc&&this.equal(this.value,g)||(this.value=g,this.version++);return this.signal}}),Xoa=function(a,b,c,d,e,f){f=f===void 0?null:f;De.call(this,a,[void 0,void 0,void 0,void 0],c,!1,e.get(Ce),
f);this.scheduler=d;this.lastPhase=null;this.nodes=[void 0,void 0,void 0,void 0];a=m(rzc);d=a.next();for(c={};!d.done;c={node$jscomp$133:void 0,$jscomp$logical$assign$tmp367619693$0:void 0},d=a.next())d=d.value,e=b[d],e!==void 0&&(c.node$jscomp$133=Object.create(uAc),c.node$jscomp$133.sequence=this,c.node$jscomp$133.phase=d,c.node$jscomp$133.userFn=e,c.node$jscomp$133.dirty=!0,c.node$jscomp$133.signal=function(g){return function(){Jc(g.node$jscomp$133);return g.node$jscomp$133.value}}(c),c.node$jscomp$133.signal[Mc]=
c.node$jscomp$133,c.$jscomp$logical$assign$tmp367619693$0=void 0,c.node$jscomp$133.registerCleanupFn=function(g){return function(k){var l;return((l=(g.$jscomp$logical$assign$tmp367619693$0=g.node$jscomp$133).cleanup)!=null?l:g.$jscomp$logical$assign$tmp367619693$0.cleanup=new Set).add(k)}}(c),this.nodes[d]=c.node$jscomp$133,this.hooks[d]=function(g){return function(k){return g.node$jscomp$133.phaseFn(k)}}(c))};Y(Xoa,De);
Xoa.prototype.afterRun=function(){De.prototype.afterRun.call(this);this.lastPhase=null};Xoa.prototype.destroy=function(){De.prototype.destroy.call(this);for(var a=m(this.nodes),b=a.next();!b.done;b=a.next())if(b=b.value)try{for(var c=void 0,d=m((c=b.cleanup)!=null?c:tAc),e=d.next();!e.done;e=d.next()){var f=e.value;f()}}finally{Hea(b)}};var vAc=Qoa(null,"core",[]);var wAc=/\s+/,xAc=[],Lx=function(a,b){this._ngEl=a;this._renderer=b;this.initialClasses=xAc;this.stateMap=new Map};Lx.prototype.ngDoCheck=function(){for(var a=m(this.initialClasses),b=a.next();!b.done;b=a.next())this._updateState(b.value,!0);a=this.rawClass;if(Array.isArray(a)||a instanceof Set)for(a=m(a),b=a.next();!b.done;b=a.next())this._updateState(b.value,!0);else if(a!=null){b=m(Object.keys(a));for(var c=b.next();!c.done;c=b.next())c=c.value,this._updateState(c,!!a[c])}this._applyStateDiff()};
Lx.prototype._updateState=function(a,b){var c=this.stateMap.get(a);c!==void 0?(c.enabled!==b&&(c.changed=!0,c.enabled=b),c.touched=!0):this.stateMap.set(a,{enabled:b,changed:!0,touched:!0})};Lx.prototype._applyStateDiff=function(){for(var a=m(this.stateMap),b=a.next();!b.done;b=a.next()){var c=b.value;b=c[0];c=c[1];c.changed?(this._toggleClass(b,c.enabled),c.changed=!1):c.touched||(c.enabled&&this._toggleClass(b,!1),this.stateMap.delete(b));c.touched=!1}};
Lx.prototype._toggleClass=function(a,b){var c=this;a=a.trim();a.length>0&&a.split(wAc).forEach(function(d){b?c._renderer.addClass(c._ngEl.nativeElement,d):c._renderer.removeClass(c._ngEl.nativeElement,d)})};da.Object.defineProperties(Lx.prototype,{klass:{configurable:!0,enumerable:!0,set:function(a){this.initialClasses=a!=null?a.trim().split(wAc):xAc}},ngClass:{configurable:!0,enumerable:!0,set:function(a){this.rawClass=typeof a==="string"?a.trim().split(wAc):a}}});
Lx.\u0275fac=function(a){return new (a||Lx)(Ve(Hd),Ve(ci))};Lx.\u0275dir=af({type:Lx,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}});var yAc=function(a,b,c,d){this.$implicit=a;this.ngForOf=b;this.index=c;this.count=d};da.Object.defineProperties(yAc.prototype,{first:{configurable:!0,enumerable:!0,get:function(){return this.index===0}},last:{configurable:!0,enumerable:!0,get:function(){return this.index===this.count-1}},even:{configurable:!0,enumerable:!0,get:function(){return this.index%2===0}},odd:{configurable:!0,enumerable:!0,get:function(){return!this.even}}});
var Mx=function(a,b,c){this._viewContainer=a;this._template=b;this._differs=c;this._ngForOf=null;this._ngForOfDirty=!0;this._differ=null};Mx.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)};
Mx.prototype._applyChanges=function(a){var b=this,c=this._viewContainer;dAc(a,function(g,k,l){g.previousIndex==null?c.createEmbeddedView(b._template,new yAc(g.item,b._ngForOf,-1,-1),l===null?void 0:l):l==null?c.remove(k===null?void 0:k):k!==null&&(k=c.get(k),c.move(k,l),k.context.$implicit=g.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}eAc(a,function(g){c.get(g.currentIndex).context.$implicit=g.item})};
da.Object.defineProperties(Mx.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)}}});Mx.\u0275fac=function(a){return new (a||Mx)(Ve(eg),Ve(dg),Ve(Fx))};
Mx.\u0275dir=af({type:Mx,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});var Nx=function(a,b){this._viewContainer=a;this._context=new zAc;this._elseViewRef=this._thenViewRef=this._elseTemplateRef=null;this._thenTemplateRef=b};
Nx.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)))};
da.Object.defineProperties(Nx.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){apa(a);this._thenTemplateRef=a;this._thenViewRef=null;this._updateView()}},ngIfElse:{configurable:!0,enumerable:!0,set:function(a){apa(a);this._elseTemplateRef=a;this._elseViewRef=null;this._updateView()}}});Nx.\u0275fac=function(a){return new (a||Nx)(Ve(eg),Ve(dg))};
Nx.\u0275dir=af({type:Nx,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});var zAc=function(){this.ngIf=this.$implicit=null};var AAc=function(a,b){this._viewContainerRef=a;this._templateRef=b;this._created=!1};AAc.prototype.create=function(){this._created=!0;this._viewContainerRef.createEmbeddedView(this._templateRef)};AAc.prototype.destroy=function(){this._created=!1;this._viewContainerRef.clear()};var Ox=function(){this._defaultViews=[];this._defaultUsed=!1;this._lastCaseCheckIndex=this._caseCount=0;this._lastCasesMatched=!1};Ox.prototype._addCase=function(){return this._caseCount++};Ox.prototype._addDefault=function(a){this._defaultViews.push(a)};
Ox.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};
Ox.prototype._updateDefaultCases=function(a){if(this._defaultViews.length>0&&a!==this._defaultUsed){this._defaultUsed=a;for(var b=m(this._defaultViews),c=b.next();!c.done;c=b.next()){c=c.value;var d=a;d&&!c._created?c.create():!d&&c._created&&c.destroy()}}};da.Object.defineProperties(Ox.prototype,{ngSwitch:{configurable:!0,enumerable:!0,set:function(a){this._ngSwitch=a;this._caseCount===0&&this._updateDefaultCases(!0)}}});Ox.\u0275fac=function(a){return new (a||Ox)};
Ox.\u0275dir=af({type:Ox,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}});var Px=function(a,b,c){this.ngSwitch=c;c._addCase();this._view=new AAc(a,b)};Px.prototype.ngDoCheck=function(){var a=this._view,b=this.ngSwitch._matchCase(this.ngSwitchCase);b&&!a._created?a.create():!b&&a._created&&a.destroy()};Px.\u0275fac=function(a){return new (a||Px)(Ve(eg),Ve(dg),Ve(Ox,9))};Px.\u0275dir=af({type:Px,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}});
var Qx=function(a,b,c){c._addDefault(new AAc(a,b))};Qx.\u0275fac=function(a){return new (a||Qx)(Ve(eg),Ve(dg),Ve(Ox,9))};Qx.\u0275dir=af({type:Qx,selectors:[["","ngSwitchDefault",""]]});var Rx=function(a,b,c){this._ngEl=a;this._differs=b;this._renderer=c;this._differ=this._ngStyle=null};Rx.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this._ngStyle);a&&this._applyChanges(a)}};Rx.prototype._setStyle=function(a,b){var c=m(a.split("."));a=c.next().value;c=c.next().value;var d=a.indexOf("-")===-1?void 0:2;b!=null?this._renderer.setStyle(this._ngEl.nativeElement,a,c?""+b+c:b,d):this._renderer.removeStyle(this._ngEl.nativeElement,a,d)};
Rx.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)});jAc(a,function(c){return b._setStyle(c.key,c.currentValue)})};da.Object.defineProperties(Rx.prototype,{ngStyle:{configurable:!0,enumerable:!0,set:function(a){this._ngStyle=a;!this._differ&&a&&(this._differ=this._differs.find(a).create())}}});Rx.\u0275fac=function(a){return new (a||Rx)(Ve(Hd),Ve(Gx),Ve(ci))};
Rx.\u0275dir=af({type:Rx,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}});var Sx=function(a){this._viewContainerRef=a;this.ngTemplateOutletInjector=this.ngTemplateOutlet=this.ngTemplateOutletContext=this._viewRef=null};Sx.prototype.ngOnChanges=function(a){if(this._shouldRecreateView(a))if(a=this._viewContainerRef,this._viewRef&&a.remove(a.indexOf(this._viewRef)),this.ngTemplateOutlet){var b=this._createContextForwardProxy(),c;this._viewRef=a.createEmbeddedView(this.ngTemplateOutlet,b,{injector:(c=this.ngTemplateOutletInjector)!=null?c:void 0})}else this._viewRef=null};
Sx.prototype._shouldRecreateView=function(a){return!!a.ngTemplateOutlet||!!a.ngTemplateOutletInjector};Sx.prototype._createContextForwardProxy=function(){var a=this;return new Proxy({},{set:function(b,c,d){return a.ngTemplateOutletContext?Reflect.set(a.ngTemplateOutletContext,c,d):!1},get:function(b,c,d){if(a.ngTemplateOutletContext)return Reflect.get(a.ngTemplateOutletContext,c,d)}})};Sx.\u0275fac=function(a){return new (a||Sx)(Ve(eg))};
Sx.\u0275dir=af({type:Sx,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[jx]});var BAc=function(){};BAc.prototype.createSubscription=function(a,b,c){return Oc(function(){return a.subscribe({next:b,error:c})})};BAc.prototype.dispose=function(a){Oc(function(){return a.unsubscribe()})};var CAc=function(){};CAc.prototype.createSubscription=function(a,b,c){a.then(function(d){var e;return(e=b)==null?void 0:e(d)},function(d){var e;return(e=c)==null?void 0:e(d)});return{unsubscribe:function(){c=b=null}}};CAc.prototype.dispose=function(a){a.unsubscribe()};
var DAc=new CAc,EAc=new BAc,Tx=function(a){this._latestValue=null;this.markForCheckOnValueUpdate=!0;this._strategy=this._obj=this._subscription=null;this.applicationErrorHandler=p(Re);this._ref=a};h=Tx.prototype;h.ngOnDestroy=function(){this._subscription&&this._dispose();this._ref=null};
h.transform=function(a){if(!this._obj){if(a)try{this.markForCheckOnValueUpdate=!1,this._subscribe(a)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return a!==this._obj?(this._dispose(),this.transform(a)):this._latestValue};h._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)},function(c){return b.applicationErrorHandler(c)})};
h._selectStrategy=function(a){if(Mka(a))return DAc;if(Nka(a))return EAc;throw fh();};h._dispose=function(){this._strategy.dispose(this._subscription);this._obj=this._subscription=this._latestValue=null};h._updateLatestValue=function(a,b){if(a===this._obj&&(this._latestValue=b,this.markForCheckOnValueUpdate)){var c;(c=this._ref)==null||c.markForCheck()}};Tx.\u0275fac=function(a){return new (a||Tx)(Ve(Cx,16))};Tx.\u0275pipe=cf({name:"async",type:Tx,pure:!1});var Ux=function(){};Ux.prototype.transform=function(a){if(a==null)return null;if(typeof a!=="string")throw fh();return a.toLowerCase()};Ux.\u0275fac=function(a){return new (a||Ux)};Ux.\u0275pipe=cf({name:"lowercase",type:Ux,pure:!0});
var FAc=/(?:[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,Vx=
function(){};Vx.prototype.transform=function(a){if(a==null)return null;if(typeof a!=="string")throw fh();return a.replace(FAc,function(b){return b[0].toUpperCase()+b.slice(1).toLowerCase()})};Vx.\u0275fac=function(a){return new (a||Vx)};Vx.\u0275pipe=cf({name:"titlecase",type:Vx,pure:!0});var Apa=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,vpa={},mpa=/((?:[^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]*)/,ppa={};var GAc=new dd(""),HAc=new dd(""),Wx=function(a,b,c){this.locale=a;this.defaultTimezone=b;this.defaultOptions=c};Wx.prototype.transform=function(a,b,c,d){if(a==null||a===""||a!==a)return null;try{var e,f,g=(f=b!=null?b:(e=this.defaultOptions)==null?void 0:e.dateFormat)!=null?f:"mediumDate",k,l,r,w=(r=(l=c!=null?c:(k=this.defaultOptions)==null?void 0:k.timezone)!=null?l:this.defaultTimezone)!=null?r:void 0;return tpa(a,g,d||this.locale,w)}catch(x){throw fh();}};
Wx.\u0275fac=function(a){return new (a||Wx)(Ve(Hoa,16),Ve(GAc,24),Ve(HAc,24))};Wx.\u0275pipe=cf({name:"date",type:Wx,pure:!0});var Xx=function(){};Xx.prototype.transform=function(a){return JSON.stringify(a,null,2)};Xx.\u0275fac=function(a){return new (a||Xx)};Xx.\u0275pipe=cf({name:"json",type:Xx,pure:!1});var Yx=function(a){this.differs=a;this.keyValues=[];this.compareFn=Cpa};Yx.prototype.transform=function(a,b){var c=this;b=b===void 0?Cpa:b;if(!a||!(a instanceof Map)&&typeof a!=="object")return null;this.differ!=null||(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)b&&this.keyValues.sort(b),this.compareFn=b;return this.keyValues};
Yx.\u0275fac=function(a){return new (a||Yx)(Ve(Gx,16))};Yx.\u0275pipe=cf({name:"keyvalue",type:Yx,pure:!1});var Fpa=/^(\d+)?\.((\d+)(-(\d+))?)?$/;var Zx=function(a){this._locale=a};
Zx.prototype.transform=function(a,b,c){if(a==null||a===""||a!==a)return null;c||(c=this._locale);try{if(typeof a!=="string"||isNaN(Number(a)-parseFloat(a))){if(typeof a!=="number")throw new Sc(2309,!1);var d=a}else d=Number(a);a=d;var e=Wf(c)[14][0],f=eh(c,5);f=f===void 0?"-":f;d={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0};var g=e.split(";"),k=g[0],l=g[1],r=k.indexOf(".")!==-1?k.split("."):[k.substring(0,k.lastIndexOf("0")+1),k.substring(k.lastIndexOf("0")+
1)],w=r[0],x=r[1]||"";d.posPre=w.substring(0,w.indexOf("#"));for(e=0;e<x.length;e++){var C=x.charAt(e);C==="0"?d.minFrac=d.maxFrac=e+1:C==="#"?d.maxFrac=e+1:d.posSuf+=C}var H=w.split(",");d.gSize=H[1]?H[1].length:0;d.lgSize=H[2]||H[1]?(H[2]||H[1]).length:0;if(l){var J=k.length-d.posPre.length-d.posSuf.length,O=l.indexOf("#");d.negPre=l.substring(0,O).replace(/'/g,"");d.negSuf=l.slice(O+J).replace(/'/g,"")}else d.negPre=f+d.posPre,d.negSuf=d.posSuf;return Ipa(a,d,c,b)}catch(R){throw fh();}};
Zx.\u0275fac=function(a){return new (a||Zx)(Ve(Hoa,16))};Zx.\u0275pipe=cf({name:"number",type:Zx,pure:!0});var ay=function(){};ay.prototype.transform=function(a,b,c){if(a==null)return null;if(typeof a!=="string"&&!Array.isArray(a))throw fh();return a.slice(b,c)};ay.\u0275fac=function(a){return new (a||ay)};ay.\u0275pipe=cf({name:"slice",type:ay,pure:!1});var by=function(){};by.\u0275fac=function(a){return new (a||by)};by.\u0275mod=$e({type:by});by.\u0275inj=Fc({});var IAc=function(a){return a.src};new dd("",{providedIn:"root",factory:function(){return IAc}});new dd("");new dd("",{providedIn:"root",factory:function(){return new Set}});var Jl=null,JAc=function(){};var fy=function(){};fy.prototype.historyGo=function(){throw Error("na");};fy.\u0275fac=function(a){return new (a||fy)};fy.\u0275prov=Dc({token:fy,factory:function(){return p(gy)},providedIn:"platform"});var KAc=new dd(""),gy=function(){this._doc=p(Rh);this._location=window.location;this._history=window.history};Y(gy,fy);gy.prototype.onPopState=function(a){var b=LAc(this._doc,"window");b.addEventListener("popstate",a,!1);return function(){return b.removeEventListener("popstate",a)}};
var MAc=function(a,b){var c=LAc(a._doc,"window");c.addEventListener("hashchange",b,!1);return function(){return c.removeEventListener("hashchange",b)}};h=gy.prototype;h.pushState=function(a,b,c){this._history.pushState(a,b,c)};h.replaceState=function(a,b,c){this._history.replaceState(a,b,c)};h.forward=function(){this._history.forward()};h.back=function(){this._history.back()};h.historyGo=function(a){this._history.go(a===void 0?0:a)};h.getState=function(){return this._history.state};
da.Object.defineProperties(gy.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}}});gy.\u0275fac=function(a){return new (a||gy)};gy.\u0275prov=Dc({token:gy,factory:function(){return new gy},providedIn:"platform"});var hy=function(){};hy.prototype.historyGo=function(){throw Error("na");};hy.\u0275fac=function(a){return new (a||hy)};hy.\u0275prov=Dc({token:hy,factory:function(){return p(iy)},providedIn:"root"});var NAc=new dd(""),iy=function(a,b){this._platformLocation=a;this._removeListenerFns=[];var c,d,e;this._baseHref=(e=(d=b!=null?b:Jl.getBaseHref())!=null?d:(c=p(Rh).location)==null?void 0:c.origin)!=null?e:""};Y(iy,hy);h=iy.prototype;h.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};
h.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),MAc(this._platformLocation,a))};h.getBaseHref=function(){return this._baseHref};h.prepareExternalUrl=function(a){return Jpa(this._baseHref,a)};h.path=function(a){var b=this._platformLocation.pathname+kh(this._platformLocation.search),c=this._platformLocation.hash;return c&&(a===void 0?0:a)?b+c:b};h.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+kh(d)))};
h.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+kh(d)))};h.forward=function(){this._platformLocation.forward()};h.back=function(){this._platformLocation.back()};h.getState=function(){return this._platformLocation.getState()};h.historyGo=function(a){var b,c;(c=(b=this._platformLocation).historyGo)==null||c.call(b,a===void 0?0:a)};iy.\u0275fac=function(a){return new (a||iy)(Xc(fy),Xc(NAc,8))};iy.\u0275prov=Dc({token:iy,factory:iy.\u0275fac,providedIn:"root"});var jy=function(a,b){this._platformLocation=a;this._baseHref="";this._removeListenerFns=[];b!=null&&(this._baseHref=b)};Y(jy,hy);h=jy.prototype;h.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};h.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),MAc(this._platformLocation,a))};h.getBaseHref=function(){return this._baseHref};
h.path=function(){var a,b=(a=this._platformLocation.hash)!=null?a:"#";return b.length>0?b.substring(1):b};h.prepareExternalUrl=function(a){a=Jpa(this._baseHref,a);return a.length>0?"#"+a:a};h.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+kh(d))||this._platformLocation.pathname)};h.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+kh(d))||this._platformLocation.pathname)};h.forward=function(){this._platformLocation.forward()};
h.back=function(){this._platformLocation.back()};h.getState=function(){return this._platformLocation.getState()};h.historyGo=function(a){var b,c;(c=(b=this._platformLocation).historyGo)==null||c.call(b,a===void 0?0:a)};jy.\u0275fac=function(a){return new (a||jy)(Xc(fy),Xc(NAc,8))};jy.\u0275prov=Dc({token:jy,factory:jy.\u0275fac});var hi=function(a){var b=this;this._subject=new qf;this._urlChangeListeners=[];this._urlChangeSubscription=null;this._locationStrategy=a;a=this._locationStrategy.getBaseHref();this._basePath=Lpa(Kpa(a.replace(/\/index.html$/,"")));this._locationStrategy.onPopState(function(c){b._subject.next({url:b.path(!0),pop:!0,state:c.state,type:c.type})})};h=hi.prototype;h.ngOnDestroy=function(){var a;(a=this._urlChangeSubscription)==null||a.unsubscribe();this._urlChangeListeners=[]};
h.path=function(a){return this.normalize(this._locationStrategy.path(a===void 0?!1:a))};h.getState=function(){return this._locationStrategy.getState()};h.normalize=function(a){var b=hi.stripTrailingSlash;var c=this._basePath;a=a.replace(/\/index.html$/,"");c&&a.startsWith(c)?(c=a.substring(c.length),c=c===""||["/",";","?","#"].includes(c[0])?c:a):c=a;return b.call(hi,c)};h.prepareExternalUrl=function(a){a&&a[0]!=="/"&&(a="/"+a);return this._locationStrategy.prepareExternalUrl(a)};
h.go=function(a,b,c){b=b===void 0?"":b;c=c===void 0?null:c;this._locationStrategy.pushState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+kh(b)),c)};h.replaceState=function(a,b,c){b=b===void 0?"":b;c=c===void 0?null:c;this._locationStrategy.replaceState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+kh(b)),c)};h.forward=function(){this._locationStrategy.forward()};h.back=function(){this._locationStrategy.back()};
h.historyGo=function(a){var b,c;(c=(b=this._locationStrategy).historyGo)==null||c.call(b,a===void 0?0:a)};h._notifyUrlChangeListeners=function(a,b){a=a===void 0?"":a;this._urlChangeListeners.forEach(function(c){return c(a,b)})};h.subscribe=function(a,b,c){return this._subject.subscribe({next:a,error:b!=null?b:void 0,complete:c!=null?c:void 0})};hi.stripTrailingSlash=Kpa;hi.\u0275fac=function(a){return new (a||hi)(Xc(hy))};hi.\u0275prov=Dc({token:hi,factory:function(){return new hi(Xc(hy))},providedIn:"root"});var OAc=function(){};OAc.\u0275prov=Dc({token:OAc,providedIn:"root",factory:function(){return new PAc}});var PAc=function(){var a=p(Rh),b=window;this.document=a;this.window=b;this.offset=function(){return[0,0]}},QAc=function(a,b){a.offset=Array.isArray(b)?function(){return b}:b};PAc.prototype.getScrollPosition=function(){return[this.window.scrollX,this.window.scrollY]};PAc.prototype.scrollToPosition=function(a,b){this.window.scrollTo(Object.assign({},b,{left:a[0],top:a[1]}))};var RAc=function(){};var ky=function(){this.supportsDOMEvents=!0};Y(ky,JAc);var SAc=function(a,b,c,d){a.addEventListener(b,c,d);return function(){a.removeEventListener(b,c,d)}};ky.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)};ky.prototype.remove=function(a){a.remove()};ky.prototype.createElement=function(a,b){b=b||document;return b.createElement(a)};var LAc=function(a,b){return b==="window"?window:b==="document"?a:b==="body"?a.body:null};
ky.prototype.getBaseHref=function(){var a=(TAc=TAc||document.head.querySelector("base"))?TAc.getAttribute("href"):null;return a==null?null:(new URL(a,document.baseURI)).pathname};var TAc=null;var UAc=function(){},Nzc=function(a){Ke.getAngularTestability=function(b,c){b=a.findTestabilityInTree(b,c===void 0?!0:c);if(b==null)throw new Sc(5103,!1);return b};Ke.getAllAngularTestabilities=function(){return Array.from(a._applications.values())};Ke.getAllAngularRootElements=function(){return Array.from(a._applications.keys())};Ke.frameworkStabilizers||(Ke.frameworkStabilizers=[]);Ke.frameworkStabilizers.push(function(b){var c=Ke.getAllAngularTestabilities(),d=c.length,e=function(){d--;d==0&&b()};
c.forEach(function(f){f.whenStable(e)})})};UAc.prototype.findTestabilityInTree=function(a,b,c){if(b==null)return null;var d=a._applications.get(b)||null;if(d!=null)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 ly=function(){};ly.prototype.build=function(){return new XMLHttpRequest};ly.\u0275fac=function(a){return new (a||ly)};ly.\u0275prov=Dc({token:ly,factory:ly.\u0275fac});var VAc=function(a){this._doc=a};var my=function(a){this._doc=a};Y(my,VAc);my.prototype.supports=function(){return!0};my.prototype.addEventListener=function(a,b,c,d){var e=this;a.addEventListener(b,c,d);return function(){return e.removeEventListener(a,b,c,d)}};my.prototype.removeEventListener=function(a,b,c,d){return a.removeEventListener(b,c,d)};my.\u0275fac=function(a){return new (a||my)(Xc(Rh))};my.\u0275prov=Dc({token:my,factory:my.\u0275fac});var WAc=new dd(""),ny=function(a,b){var c=this;this._zone=b;this._eventNameToPlugin=new Map;a.forEach(function(d){d.manager=c});this._plugins=a.filter(function(d){return!(d instanceof my)}).slice().reverse();(a=a.find(function(d){return d instanceof my}))&&this._plugins.push(a)};ny.prototype.addEventListener=function(a,b,c,d){return this._findPluginFor(b).addEventListener(a,b,c,d)};
ny.prototype._findPluginFor=function(a){var b=this._eventNameToPlugin.get(a);if(b)return b;b=this._plugins.find(function(c){return c.supports(a)});if(!b)throw new Sc(5101,!1);this._eventNameToPlugin.set(a,b);return b};ny.\u0275fac=function(a){return new (a||ny)(Xc(WAc),Xc(Rg))};ny.\u0275prov=Dc({token:ny,factory:ny.\u0275fac});var oy=function(a,b,c){this.doc=a;this.appId=b;this.nonce=c;this.inline=new Map;this.external=new Map;this.hosts=new Set;c=this.inline;var d=this.external,e,f=(e=a.head)==null?void 0:e.querySelectorAll('style[ng-app-id="'+b+'"],link[ng-app-id="'+b+'"]');if(f)for(b=m(f),e=b.next();!e.done;e=b.next())e=e.value,e.removeAttribute("ng-app-id"),e instanceof HTMLLinkElement?d.set(e.href.slice(e.href.lastIndexOf("/")+1),{usage:0,elements:[e]}):e.textContent&&c.set(e.textContent,{usage:0,elements:[e]});this.hosts.add(a.head)},
YAc=function(a,b,c){b=m(b);for(var d=b.next();!d.done;d=b.next())XAc(a,d.value,a.inline,Npa);c==null||c.forEach(function(e){return XAc(a,e,a.external,Opa)})},$Ac=function(a,b,c){b=m(b);for(var d=b.next();!d.done;d=b.next())ZAc(d.value,a.inline);c==null||c.forEach(function(e){return ZAc(e,a.external)})},XAc=function(a,b,c,d){var e=c.get(b);e?e.usage++:c.set(b,{usage:1,elements:[].concat(q(a.hosts)).map(function(f){return a.addElement(f,d(b,a.doc))})})},ZAc=function(a,b){var c=b.get(a);c&&(c.usage--,
c.usage<=0&&(Mpa(c.elements),b.delete(a)))};oy.prototype.ngOnDestroy=function(){for(var a=m([].concat(q(this.inline),q(this.external))),b=a.next();!b.done;b=a.next())b=m(b.value),b.next(),b=b.next().value.elements,Mpa(b);this.hosts.clear()};oy.prototype.addElement=function(a,b){this.nonce&&b.setAttribute("nonce",this.nonce);return a.appendChild(b)};oy.\u0275fac=function(a){return new (a||oy)(Xc(Rh),Xc(Jyc),Xc(Lyc,8),Xc(Kyc))};oy.\u0275prov=Dc({token:oy,factory:oy.\u0275fac});var aBc={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/Math/MathML"},Ppa=/%COMP%/g,bBc=new dd("",{providedIn:"root",factory:function(){return!0}}),qy=function(a,b,c,d,e,f,g,k,l){this.eventManager=a;this.sharedStylesHost=b;this.appId=c;this.removeStylesOnCompDestroy=d;this.doc=e;this.ngZone=g;this.nonce=k===void 0?null:k;this.tracingService=
l===void 0?null:l;this.rendererByCompId=new Map;this.platformIsServer=!1;this.defaultRenderer=new py(a,e,g,this.platformIsServer,this.tracingService)};
qy.prototype.createRenderer=function(a,b){if(!a||!b)return this.defaultRenderer;a:{var c=this.rendererByCompId,d=c.get(b.id);if(!d){d=this.doc;var e=this.ngZone,f=this.eventManager,g=this.sharedStylesHost,k=this.removeStylesOnCompDestroy,l=this.platformIsServer,r=this.tracingService;switch(b.encapsulation){case 0:d=new cBc(f,g,b,this.appId,k,d,e,l,r);break;case 3:b=new dBc(f,a,b,d,e,this.nonce,l,r,g);break a;case 4:b=new dBc(f,a,b,d,e,this.nonce,l,r);break a;default:d=new ry(f,g,b,k,d,e,l,r)}c.set(b.id,
d)}b=d}b instanceof cBc?(YAc(b.sharedStylesHost,b.styles,b.styleUrls),b.setAttribute(a,b.hostAttr,"")):b instanceof ry&&YAc(b.sharedStylesHost,b.styles,b.styleUrls);return b};qy.prototype.ngOnDestroy=function(){this.rendererByCompId.clear()};qy.\u0275fac=function(a){return new (a||qy)(Xc(ny),Xc(oy),Xc(Jyc),Xc(bBc),Xc(Rh),Xc(Kyc),Xc(Rg),Xc(Lyc),Xc(Be,8))};qy.\u0275prov=Dc({token:qy,factory:qy.\u0275fac});
var py=function(a,b,c,d,e){this.eventManager=a;this.doc=b;this.ngZone=c;this.platformIsServer=d;this.tracingService=e;this.data=Object.create(null);this.destroyNode=null};h=py.prototype;h.destroy=function(){};h.createElement=function(a,b){return b?this.doc.createElementNS(aBc[b]||b,a):this.doc.createElement(a)};h.createComment=function(a){return this.doc.createComment(a)};h.createText=function(a){return this.doc.createTextNode(a)};
h.appendChild=function(a,b){(a.tagName==="TEMPLATE"&&a.content!==void 0?a.content:a).appendChild(b)};h.insertBefore=function(a,b,c){a&&(a.tagName==="TEMPLATE"&&a.content!==void 0?a.content:a).insertBefore(b,c)};h.removeChild=function(a,b){b.remove()};h.selectRootElement=function(a,b){a=typeof a==="string"?this.doc.querySelector(a):a;if(!a)throw new Sc(-5104,!1);b||(a.textContent="");return a};h.parentNode=function(a){return a.parentNode};h.nextSibling=function(a){return a.nextSibling};
h.setAttribute=function(a,b,c,d){d?(b=d+":"+b,(d=aBc[d])?a.setAttributeNS(d,b,c):a.setAttribute(b,c)):a.setAttribute(b,c)};h.removeAttribute=function(a,b,c){if(c){var d=aBc[c];d?a.removeAttributeNS(d,b):a.removeAttribute(c+":"+b)}else a.removeAttribute(b)};h.addClass=function(a,b){a.classList.add(b)};h.removeClass=function(a,b){a.classList.remove(b)};h.setStyle=function(a,b,c,d){d&3?a.style.setProperty(b,c,d&1?"important":""):a.style[b]=c};
h.removeStyle=function(a,b,c){c&2?a.style.removeProperty(b):a.style[b]=""};h.setProperty=function(a,b,c){a!=null&&(a[b]=c)};h.setValue=function(a,b){a.nodeValue=b};h.listen=function(a,b,c,d){if(typeof a==="string"&&(a=LAc(this.doc,a),!a))throw new Sc(5102,!1);c=eBc(c);var e;if((e=this.tracingService)==null?0:e.wrapEventListener)c=this.tracingService.wrapEventListener(a,b,c);return this.eventManager.addEventListener(a,b,c,d)};
var eBc=function(a){return function(b){if(b==="__ngUnwrap__")return a;a(b)===!1&&b.preventDefault()}},dBc=function(a,b,c,d,e,f,g,k,l){py.call(this,a,d,e,g,k);this.hostEl=b;this.sharedStylesHost=l;this.shadowRoot=b.attachShadow({mode:"open"});if(this.sharedStylesHost){a=this.sharedStylesHost;b=this.shadowRoot;a.hosts.add(b);e=m(a.inline);for(g=e.next();!g.done;g=e.next())g=m(g.value),k=g.next().value,g.next().value.elements.push(a.addElement(b,Npa(k,a.doc)));e=m(a.external);for(g=e.next();!g.done;g=
e.next())g=m(g.value),k=g.next().value,g.next().value.elements.push(a.addElement(b,Opa(k,a.doc)))}a=c.styles;a=Qpa(c.id,a);a=m(a);for(b=a.next();!b.done;b=a.next())b=b.value,e=document.createElement("style"),f&&e.setAttribute("nonce",f),e.textContent=b,this.shadowRoot.appendChild(e);var r;if(a=(r=c.getExternalStyles)==null?void 0:r.call(c))for(c=m(a),r=c.next();!r.done;r=c.next())r=Opa(r.value,d),f&&r.setAttribute("nonce",f),this.shadowRoot.appendChild(r)};Y(dBc,py);
var fBc=function(a,b){return b===a.hostEl?a.shadowRoot:b};h=dBc.prototype;h.appendChild=function(a,b){return py.prototype.appendChild.call(this,fBc(this,a),b)};h.insertBefore=function(a,b,c){return py.prototype.insertBefore.call(this,fBc(this,a),b,c)};h.removeChild=function(a,b){return py.prototype.removeChild.call(this,null,b)};h.parentNode=function(a){return fBc(this,py.prototype.parentNode.call(this,fBc(this,a)))};h.destroy=function(){this.sharedStylesHost&&this.sharedStylesHost.hosts.delete(this.shadowRoot)};
var ry=function(a,b,c,d,e,f,g,k,l){py.call(this,a,e,f,g,k);this.sharedStylesHost=b;this.removeStylesOnCompDestroy=d;a=c.styles;this.styles=l?Qpa(l,a):a;var r;this.styleUrls=(r=c.getExternalStyles)==null?void 0:r.call(c,l)};Y(ry,py);ry.prototype.destroy=function(){this.removeStylesOnCompDestroy&&Eia.size===0&&$Ac(this.sharedStylesHost,this.styles,this.styleUrls)};
var cBc=function(a,b,c,d,e,f,g,k,l){d=d+"-"+c.id;ry.call(this,a,b,c,e,f,g,k,l,d);this.contentAttr="_ngcontent-%COMP%".replace(Ppa,d);this.hostAttr="_nghost-%COMP%".replace(Ppa,d)};Y(cBc,ry);cBc.prototype.createElement=function(a,b){a=ry.prototype.createElement.call(this,a,b);ry.prototype.setAttribute.call(this,a,this.contentAttr,"");return a};var gBc=["alt","control","meta","shift"],hBc={"\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"},iBc={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},sy=function(a){this._doc=a};Y(sy,VAc);sy.prototype.supports=function(a){return jBc(a)!=null};
sy.prototype.addEventListener=function(a,b,c,d){var e=jBc(b),f=kBc(e.fullKey,c,this.manager._zone);return this.manager._zone.runOutsideAngular(function(){return SAc(a,e.domEventName,f,d)})};
var jBc=function(a){var b=a.toLowerCase().split(".");a=b.shift();if(b.length===0||a!=="keydown"&&a!=="keyup")return null;var c=lBc(b.pop()),d="",e=b.indexOf("code");e>-1&&(b.splice(e,1),d="code.");gBc.forEach(function(f){var g=b.indexOf(f);g>-1&&(b.splice(g,1),d+=f+".")});d+=c;if(b.length!=0||c.length===0)return null;a={domEventName:a};a.fullKey=d;return a},mBc=function(a,b){var c=hBc[a.key]||a.key,d="";b.indexOf("code.")>-1&&(c=a.code,d="code.");if(c==null||!c)return!1;c=c.toLowerCase();c===" "?
c="space":c==="."&&(c="dot");gBc.forEach(function(e){e!==c&&(0,iBc[e])(a)&&(d+=e+".")});d+=c;return d===b},kBc=function(a,b,c){return function(d){mBc(d,a)&&c.runGuarded(function(){return b(d)})}},lBc=function(a){return a==="esc"?"escape":a};sy.\u0275fac=function(a){return new (a||sy)(Xc(Rh))};sy.\u0275prov=Dc({token:sy,factory:sy.\u0275fac});var mAc=Qoa(vAc,"browser",[{provide:Kyc,useValue:"browser"},{provide:Soa,useValue:function(){var a=new ky;Jl!=null||(Jl=a)},multi:!0},{provide:Rh,useFactory:function(){return Mga=document}}]);new dd("");
var nBc=[{provide:Lzc,useClass:UAc},{provide:Kzc,useClass:yx},{provide:yx,useClass:yx}],oBc=[{provide:Roa,useValue:"root"},{provide:ux,useFactory:function(){return new ux}},{provide:WAc,useClass:my,multi:!0},{provide:WAc,useClass:sy,multi:!0},qy,oy,ny,{provide:Ye,useExisting:qy},{provide:RAc,useClass:ly},[]],ty=function(){};ty.\u0275fac=function(a){return new (a||ty)};ty.\u0275mod=$e({type:ty});ty.\u0275inj=Fc({providers:[].concat(q(oBc),q(nBc)),imports:[by,Bx]});var uy=function(a){this._doc=a};uy.prototype.getTitle=function(){return this._doc.title};uy.prototype.setTitle=function(a){this._doc.title=a||""};uy.\u0275fac=function(a){return new (a||uy)(Xc(Rh))};uy.\u0275prov=Dc({token:uy,factory:uy.\u0275fac,providedIn:"root"});new dd("");new dd("");var mh=function(a){var b=this;this.normalizedNames=new Map;this.lazyUpdate=null;a?typeof a==="string"?this.lazyInit=function(){b.headers=new Map;a.split("\n").forEach(function(c){var d=c.indexOf(":");d>0&&pBc(b,c.slice(0,d),c.slice(d+1).trim())})}:typeof Headers!=="undefined"&&a instanceof Headers?(this.headers=new Map,a.forEach(function(c,d){pBc(b,d,c)})):this.lazyInit=function(){b.headers=new Map;Object.entries(a).forEach(function(c){var d=m(c);c=d.next().value;d=d.next().value;qBc(b,c,d)})}:this.headers=
new Map};h=mh.prototype;h.has=function(a){this.init();return this.headers.has(a.toLowerCase())};h.get=function(a){this.init();return(a=this.headers.get(a.toLowerCase()))&&a.length>0?a[0]:null};h.keys=function(){this.init();return Array.from(this.normalizedNames.values())};h.getAll=function(a){this.init();return this.headers.get(a.toLowerCase())||null};h.append=function(a,b){return this.clone({name:a,value:b,op:"a"})};h.set=function(a,b){return this.clone({name:a,value:b,op:"s"})};
h.delete=function(a,b){return this.clone({name:a,value:b,op:"d"})};var rBc=function(a,b,c){a.normalizedNames.has(c)||a.normalizedNames.set(c,b)};mh.prototype.init=function(){var a=this;this.lazyInit&&(this.lazyInit instanceof mh?sBc(this,this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(b){return tBc(a,b)}),this.lazyUpdate=null))};
var sBc=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))})};mh.prototype.clone=function(a){var b=new mh;b.lazyInit=this.lazyInit&&this.lazyInit instanceof mh?this.lazyInit:this;b.lazyUpdate=(this.lazyUpdate||[]).concat([a]);return b};
var tBc=function(a,b){var c=b.name.toLowerCase();switch(b.op){case "a":case "s":var d=b.value;typeof d==="string"&&(d=[d]);if(d.length===0)break;rBc(a,b.name,c);b=(b.op==="a"?a.headers.get(c):void 0)||[];b.push.apply(b,q(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 e.indexOf(f)===-1}),d.length===0?(a.headers.delete(c),a.normalizedNames.delete(c)):a.headers.set(c,d)}else a.headers.delete(c),a.normalizedNames.delete(c)}},pBc=function(a,
b,c){var d=b.toLowerCase();rBc(a,b,d);a.headers.has(d)?a.headers.get(d).push(c):a.headers.set(d,[c])},qBc=function(a,b,c){c=(Array.isArray(c)?c:[c]).map(function(e){return e.toString()});var d=b.toLowerCase();a.headers.set(d,c);rBc(a,b,d)};mh.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 uBc=function(){this.map=new Map};h=uBc.prototype;h.set=function(a,b){this.map.set(a,b);return this};h.get=function(a){this.map.has(a)||this.map.set(a,a.defaultValue());return this.map.get(a)};h.delete=function(a){this.map.delete(a);return this};h.has=function(a){return this.map.has(a)};h.keys=function(){return this.map.keys()};var vBc=function(){},Spa=/%(\d[a-f0-9])/gi,Tpa={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"},nh=function(a){var b=this;a=a===void 0?{}:a;this.cloneFrom=this.updates=null;this.encoder=a.encoder||new vBc;if(a.fromString){if(a.fromObject)throw new Sc(2805,!1);this.map=Rpa(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(Vpa):[""+d];b.map.set(c,d)})):this.map=null};h=nh.prototype;
h.has=function(a){this.init();return this.map.has(a)};h.get=function(a){this.init();return(a=this.map.get(a))?a[0]:null};h.getAll=function(a){this.init();return this.map.get(a)||null};h.keys=function(){this.init();return Array.from(this.map.keys())};h.append=function(a,b){return this.clone({param:a,value:b,op:"a"})};h.set=function(a,b){return this.clone({param:a,value:b,op:"s"})};h.delete=function(a,b){return this.clone({param:a,value:b,op:"d"})};
h.toString=function(){var a=this;this.init();return this.keys().map(function(b){var c=Upa(b);return a.map.get(b).map(function(d){return c+"="+Upa(d)}).join("&")}).filter(function(b){return b!==""}).join("&")};h.clone=function(a){var b=new nh({encoder:this.encoder});b.cloneFrom=this.cloneFrom||this;b.updates=(this.updates||[]).concat(a);return b};
h.init=function(){var a=this;this.map===null&&(this.map=new Map);this.cloneFrom!==null&&(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=(b.op==="a"?a.map.get(b.param):void 0)||[];c.push(""+b.value);a.map.set(b.param,c);break;case "d":if(b.value!==void 0){c=a.map.get(b.param)||[];var d=c.indexOf(""+b.value);d!==-1&&c.splice(d,1);c.length>0?a.map.set(b.param,c):a.map.delete(b.param)}else a.map.delete(b.param)}}),
this.cloneFrom=this.updates=null)};var oh=function(a,b,c,d){this.url=b;this.body=null;this.keepalive=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=c!==void 0?c:null,c=d;if(c){this.reportProgress=!!c.reportProgress;this.withCredentials=!!c.withCredentials;this.keepalive=!!c.keepalive;c.responseType&&(this.responseType=c.responseType);c.headers&&(this.headers=
c.headers);c.context&&(this.context=c.context);c.params&&(this.params=c.params);c.priority&&(this.priority=c.priority);c.cache&&(this.cache=c.cache);c.credentials&&(this.credentials=c.credentials);if(typeof c.timeout==="number"){if(c.timeout<1||!Number.isInteger(c.timeout))throw new Sc(2822,"");this.timeout=c.timeout}c.mode&&(this.mode=c.mode);c.redirect&&(this.redirect=c.redirect);c.integrity&&(this.integrity=c.integrity);c.referrer&&(this.referrer=c.referrer);c.referrerPolicy&&(this.referrerPolicy=
c.referrerPolicy);this.transferCache=c.transferCache}this.headers!=null||(this.headers=new mh);this.context!=null||(this.context=new uBc);this.params?(c=this.params.toString(),c.length===0?this.urlWithParams=b:(d=b.indexOf("?"),this.urlWithParams=b+(d===-1?"?":d<b.length-1?"&":"")+c)):(this.params=new nh,this.urlWithParams=b)},wBc=function(a){return a.body===null?null:typeof a.body==="string"||Wpa(a.body)||Xpa(a.body)||Ypa(a.body)||typeof URLSearchParams!=="undefined"&&a.body instanceof URLSearchParams?
a.body:a.body instanceof nh?a.body.toString():typeof a.body==="object"||typeof a.body==="boolean"||Array.isArray(a.body)?JSON.stringify(a.body):a.body.toString()};
oh.prototype.clone=function(a){a=a===void 0?{}:a;var b=a.method||this.method,c=a.url||this.url,d=a.responseType||this.responseType,e,f=(e=a.keepalive)!=null?e:this.keepalive;e=a.priority||this.priority;var g=a.cache||this.cache,k=a.mode||this.mode,l=a.redirect||this.redirect,r=a.credentials||this.credentials,w=a.referrer||this.referrer,x=a.integrity||this.integrity,C=a.referrerPolicy||this.referrerPolicy,H,J=(H=a.transferCache)!=null?H:this.transferCache,O;H=(O=a.timeout)!=null?O:this.timeout;O=a.body!==
void 0?a.body:this.body;var R,V=(R=a.withCredentials)!=null?R:this.withCredentials,ca;R=(ca=a.reportProgress)!=null?ca:this.reportProgress;ca=a.headers||this.headers;var na=a.params||this.params,ua,ia=(ua=a.context)!=null?ua:this.context;a.setHeaders!==void 0&&(ca=Object.keys(a.setHeaders).reduce(function(Ga,ha){return Ga.set(ha,a.setHeaders[ha])},ca));a.setParams&&(na=Object.keys(a.setParams).reduce(function(Ga,ha){return Ga.set(ha,a.setParams[ha])},na));return new oh(b,c,O,{params:na,headers:ca,
context:ia,reportProgress:R,responseType:d,withCredentials:V,transferCache:J,keepalive:f,cache:g,priority:e,timeout:H,mode:k,redirect:l,credentials:r,referrer:w,integrity:x,referrerPolicy:C})};var vy=function(a,b,c){b=b===void 0?200:b;c=c===void 0?"OK":c;this.headers=a.headers||new mh;this.status=a.status!==void 0?a.status:b;this.statusText=a.statusText||c;this.url=a.url||null;this.redirected=a.redirected;this.responseType=a.responseType;this.ok=this.status>=200&&this.status<300},xBc=function(a){a=a===void 0?{}:a;vy.call(this,a);this.type=2};Y(xBc,vy);
xBc.prototype.clone=function(a){a=a===void 0?{}:a;return new xBc({headers:a.headers||this.headers,status:a.status!==void 0?a.status:this.status,statusText:a.statusText||this.statusText,url:a.url||this.url||void 0})};var wy=function(a){a=a===void 0?{}:a;vy.call(this,a);this.type=4;this.body=a.body!==void 0?a.body:null};Y(wy,vy);
wy.prototype.clone=function(a){a=a===void 0?{}:a;var b,c;return new wy({body:a.body!==void 0?a.body:this.body,headers:a.headers||this.headers,status:a.status!==void 0?a.status:this.status,statusText:a.statusText||this.statusText,url:a.url||this.url||void 0,redirected:(b=a.redirected)!=null?b:this.redirected,responseType:(c=a.responseType)!=null?c:this.responseType})};
var yBc=function(a){vy.call(this,a,0,"Unknown Error");this.name="HttpErrorResponse";this.ok=!1;this.message=this.status>=200&&this.status<300?"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};Y(yBc,vy);var zBc=new dd("");var ABc=new dd(""),BBc=new dd("",{factory:function(){return[]}}),CBc=new dd(""),DBc=new dd("",{providedIn:"root",factory:function(){return!0}});var EBc=/^\)\]\}',?\n/,xy=function(a){this.xhrFactory=a;this.tracingService=p(Be,{optional:!0})},FBc=function(a,b){var c;return((c=a.tracingService)==null?0:c.propagate)?a.tracingService.propagate(b):b};
xy.prototype.handle=function(a){var b=this;if(a.method==="JSONP")throw new Sc(-2800,!1);var c=this.xhrFactory;return ce(null).pipe(yf(function(){return new Td(function(d){var e=c.build();e.open(a.method,a.urlWithParams);a.withCredentials&&(e.withCredentials=!0);a.headers.forEach(function(O,R){return e.setRequestHeader(O,R.join(","))});a.headers.has("Accept")||e.setRequestHeader("Accept","application/json, text/plain, */*");if(!a.headers.has("Content-Type")){var f=a.body===null||Ypa(a.body)?null:Xpa(a.body)?
a.body.type||null:Wpa(a.body)?null:typeof a.body==="string"?"text/plain":a.body instanceof nh?"application/x-www-form-urlencoded;charset=UTF-8":typeof a.body==="object"||typeof a.body==="number"||typeof a.body==="boolean"?"application/json":null;f!==null&&e.setRequestHeader("Content-Type",f)}a.timeout&&(e.timeout=a.timeout);a.responseType&&(f=a.responseType.toLowerCase(),e.responseType=f!=="json"?f:"text");var g=wBc(a),k=null,l=function(){if(k!==null)return k;var O=e.statusText||"OK",R=new mh(e.getAllResponseHeaders());
return k=new xBc({headers:R,status:e.status,statusText:O,url:e.responseURL||a.url})},r=FBc(b,function(){var O=l(),R=O.headers,V=O.status,ca=O.statusText;O=O.url;var na=null;V!==204&&(na=typeof e.response==="undefined"?e.responseText:e.response);V===0&&(V=na?200:0);var ua=V>=200&&V<300;if(a.responseType==="json"&&typeof na==="string"){var ia=na;na=na.replace(EBc,"");try{na=na!==""?JSON.parse(na):null}catch(Ga){na=ia,ua&&(ua=!1,na={error:Ga,text:na})}}ua?(d.next(new wy({body:na,headers:R,status:V,statusText:ca,
url:O||void 0})),d.complete()):d.error(new yBc({error:na,headers:R,status:V,statusText:ca,url:O||void 0}))}),w=FBc(b,function(O){var R=l().url;O=new yBc({error:O,status:e.status||0,statusText:e.statusText||"Unknown Error",url:R||void 0});d.error(O)}),x=w;a.timeout&&(x=FBc(b,function(){var O=l().url;O=new yBc({error:new DOMException("Request timed out","TimeoutError"),status:e.status||0,statusText:e.statusText||"Request timeout",url:O||void 0});d.error(O)}));var C=!1,H=FBc(b,function(O){C||(d.next(l()),
C=!0);var R={type:3,loaded:O.loaded};O.lengthComputable&&(R.total=O.total);a.responseType==="text"&&e.responseText&&(R.partialText=e.responseText);d.next(R)}),J=FBc(b,function(O){var R={type:1,loaded:O.loaded};O.lengthComputable&&(R.total=O.total);d.next(R)});e.addEventListener("load",r);e.addEventListener("error",w);e.addEventListener("timeout",x);e.addEventListener("abort",w);a.reportProgress&&(e.addEventListener("progress",H),g!==null&&e.upload&&e.upload.addEventListener("progress",J));e.send(g);
d.next({type:0});return function(){e.removeEventListener("error",w);e.removeEventListener("abort",w);e.removeEventListener("load",r);e.removeEventListener("timeout",x);a.reportProgress&&(e.removeEventListener("progress",H),g!==null&&e.upload&&e.upload.removeEventListener("progress",J));e.readyState!==e.DONE&&e.abort()}})}))};xy.\u0275fac=function(a){return new (a||xy)(Xc(RAc))};xy.\u0275prov=Dc({token:xy,factory:xy.\u0275fac,providedIn:"root"});var yy=function(){};yy.\u0275fac=function(a){return new (a||yy)};yy.\u0275prov=Dc({token:yy,factory:function(a){var b=null;return b=a?new (a||yy):Xc(xy)},providedIn:"root"});var zy=function(a,b){this.backend=a;this.injector=b;this.chain=null;this.pendingTasks=p(Ax);this.contributeToStability=p(DBc)};
zy.prototype.handle=function(a){var b=this;this.chain===null&&(this.chain=Array.from(new Set([].concat(q(this.injector.get(BBc)),q(this.injector.get(CBc,[]))))).reduceRight(function(d,e){return aqa(d,e,b.injector)},Zpa));if(this.contributeToStability){var c=this.pendingTasks.add();return this.chain(a,function(d){return b.backend.handle(d)}).pipe(of(c))}return this.chain(a,function(d){return b.backend.handle(d)})};zy.\u0275fac=function(a){return new (a||zy)(Xc(yy),Xc(Xe))};
zy.\u0275prov=Dc({token:zy,factory:zy.\u0275fac,providedIn:"root"});var Ay=function(){};Ay.\u0275fac=function(a){return new (a||Ay)};Ay.\u0275prov=Dc({token:Ay,factory:function(a){var b=null;return b=a?new (a||Ay):Xc(zy)},providedIn:"root"});var By=function(a){this.handler=a};h=By.prototype;
h.request=function(a,b,c){var d=this;c=c===void 0?{}:c;if(a instanceof oh)b=a;else{var e=void 0;e=c.headers instanceof mh?c.headers:new mh(c.headers);var f=void 0;c.params&&(f=c.params instanceof nh?c.params:new nh({fromObject:c.params}));b=new oh(a,b,c.body!==void 0?c.body:null,{headers:e,context:c.context,params:f,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials,transferCache:c.transferCache,keepalive:c.keepalive,priority:c.priority,cache:c.cache,
mode:c.mode,redirect:c.redirect,credentials:c.credentials,referrer:c.referrer,referrerPolicy:c.referrerPolicy,integrity:c.integrity,timeout:c.timeout})}e=ce(b).pipe(ala(function(g){return d.handler.handle(g)}));if(a instanceof oh||c.observe==="events")return e;a=e.pipe(ue(function(g){return g instanceof wy}));switch(c.observe||"body"){case "body":switch(b.responseType){case "arraybuffer":return a.pipe(A(function(g){if(g.body!==null&&!(g.body instanceof ArrayBuffer))throw new Sc(2806,!1);return g.body}));
case "blob":return a.pipe(A(function(g){if(g.body!==null&&!(g.body instanceof Blob))throw new Sc(2807,!1);return g.body}));case "text":return a.pipe(A(function(g){if(g.body!==null&&typeof g.body!=="string")throw new Sc(2808,!1);return g.body}));default:return a.pipe(A(function(g){return g.body}))}case "response":return a;default:throw new Sc(2809,!1);}};h.delete=function(a,b){b=b===void 0?{}:b;return this.request("DELETE",a,b)};h.get=function(a,b){b=b===void 0?{}:b;return this.request("GET",a,b)};
h.head=function(a,b){b=b===void 0?{}:b;return this.request("HEAD",a,b)};h.options=function(a,b){b=b===void 0?{}:b;return this.request("OPTIONS",a,b)};h.post=function(a,b,c){c=c===void 0?{}:c;return this.request("POST",a,bqa(c,b))};h.put=function(a,b,c){c=c===void 0?{}:c;return this.request("PUT",a,bqa(c,b))};By.\u0275fac=function(a){return new (a||By)(Xc(Ay))};By.\u0275prov=Dc({token:By,factory:By.\u0275fac,providedIn:"root"});var cqa=new dd("",{factory:function(){return!0}}),GBc=new dd("",{providedIn:"root",factory:function(){return"XSRF-TOKEN"}}),dqa=new dd("",{providedIn:"root",factory:function(){return"X-XSRF-TOKEN"}}),Cy=function(a,b){this.doc=a;this.cookieName=b;this.lastCookieString="";this.lastToken=null};
Cy.prototype.getToken=function(){var a=this.doc.cookie||"";if(a!==this.lastCookieString){a:{var b=this.cookieName;b=encodeURIComponent(b);for(var c=m(a.split(";")),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.indexOf("=");e=m(e==-1?[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};Cy.\u0275fac=function(a){return new (a||Cy)(Xc(Rh),Xc(GBc))};
Cy.\u0275prov=Dc({token:Cy,factory:Cy.\u0275fac,providedIn:"root"});var lh=function(){};lh.\u0275fac=function(a){return new (a||lh)};lh.\u0275prov=Dc({token:lh,factory:function(a){var b=null;return b=a?new (a||lh):Xc(Cy)},providedIn:"root"});var HBc=new dd("");var Dy=function(){};Dy.\u0275fac=function(a){return new (a||Dy)};Dy.\u0275mod=$e({type:Dy});
Dy.\u0275inj=Fc({providers:[function(){for(var a=[By,zy,{provide:Ay,useExisting:zy},{provide:yy,useFactory:function(){var d;return(d=p(zBc,{optional:!0}))!=null?d:p(xy)}},{provide:BBc,useValue:eqa,multi:!0}],b=m($c.apply(0,arguments)),c=b.next();!c.done;c=b.next())a.push.apply(a,q(c.value.\u0275providers));return{"\u0275providers":a}}({"\u0275kind":1,"\u0275providers":[{provide:HBc,useFactory:function(){var a=null;return function(b,c){if(a===null){var d;a=((d=p(ABc,{optional:!0}))!=null?d:[]).reduceRight($pa,
Zpa)}d=p(Ax);return p(DBc)?(d=d.add(),a(b,c).pipe(of(d))):a(b,c)}}},{provide:BBc,useExisting:HBc,multi:!0}]})]});var IBc=gqa("json");IBc.arrayBuffer=gqa("arraybuffer");IBc.blob=gqa("blob");IBc.text=gqa("text");
var fqa=function(a,b,c,d,e){Kx.call(this,b,function(g){var k=g.params;var l=g.abortSignal;var r=function(){return H.unsubscribe()};l.addEventListener("abort",r);var w=ng.apply(null,[{value:void 0}].concat(q([]))),x;g=new Promise(function(J){return x=J});var C=function(J){w.set(J);var O;(O=x)==null||O(w);x=void 0};var H=f.client.request(k).subscribe({next:function(J){switch(J.type){case 4:f._headers.set(J.headers);f._statusCode.set(J.status);try{C({value:d?d(J.body):J.body})}catch(O){C({error:O instanceof
Error?O:new rAc(O)})}break;case 3:f._progress.set(J)}},error:function(J){J instanceof yBc&&(f._headers.set(J.headers),f._statusCode.set(J.status));C({error:J});l.removeEventListener("abort",r)},complete:function(){x&&C({error:new Sc(991,!1)});l.removeEventListener("abort",r)}});return g},c,e,a);var f=this;this._headers=Voa.apply(null,q([{source:this.extRequest,computation:function(){}}]));this._progress=Voa.apply(null,q([{source:this.extRequest,computation:function(){}}]));this._statusCode=Voa.apply(null,
q([{source:this.extRequest,computation:function(){}}]));this.headers=Zg.apply(null,[function(){return f.status()==="resolved"||f.status()==="error"?f._headers():void 0}].concat(q([])));this.progress=this._progress.asReadonly();this.statusCode=this._statusCode.asReadonly();this.client=a.get(By)};Y(fqa,Kx);fqa.prototype.set=function(a){Kx.prototype.set.call(this,a);this._headers.set(void 0);this._progress.set(void 0);this._statusCode.set(void 0)};new dd("");new dd("");var Ey=function(){};Ey.\u0275fac=function(a){return new (a||Ey)};Ey.\u0275prov=Dc({token:Ey,factory:function(a){var b=null;return b=a?new (a||Ey):Xc(Fy)},providedIn:"root"});var Fy=function(a){this._doc=a};Y(Fy,Ey);
Fy.prototype.sanitize=function(a,b){if(b==null)return null;switch(a){case 0:return b;case 1:return Je(b,"HTML")?Ie(b):oja(this._doc,String(b)).toString();case 2:return Je(b,"Style")?Ie(b):b;case 3:if(Je(b,"Script"))return Ie(b);throw new Sc(5200,!1);case 4:return Je(b,"URL")?Ie(b):bja(String(b));case 5:if(Je(b,"ResourceURL"))return Ie(b);throw new Sc(5201,!1);default:throw new Sc(5202,!1);}};Fy.prototype.bypassSecurityTrustHtml=function(a){return new tzc(a)};Fy.prototype.bypassSecurityTrustUrl=function(a){return new uzc(a)};
Fy.prototype.bypassSecurityTrustResourceUrl=function(a){return new vzc(a)};Fy.\u0275fac=function(a){return new (a||Fy)(Xc(Rh))};Fy.\u0275prov=Dc({token:Fy,factory:Fy.\u0275fac,providedIn:"root"});var Hra=function(a){this.privateDoNotAccessOrElseWrappedAttributePrefix=a};Hra.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var JBc=rw([""]),KBc=qw(["\x00"],["\\0"]),LBc=qw(["\n"],["\\n"]),MBc=qw(["\x00"],["\\u0000"]),NBc=rw([""]),OBc=qw(["\x00"],["\\0"]),PBc=qw(["\n"],["\\n"]),QBc=qw(["\x00"],["\\u0000"]);iqa(function(a){return a(JBc)})||iqa(function(a){return a(KBc)})||iqa(function(a){return a(LBc)})||iqa(function(a){return a(MBc)});hqa(NBc)&&hqa(OBc)&&hqa(PBc)&&hqa(QBc);var RBc=globalThis.trustedTypes,jqa=RBc,lqa;var ph=function(a){this.privateDoNotAccessOrElseWrappedHtml=a};ph.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};var sj=new ph(RBc?RBc.emptyHTML:"");var uh=function(a){this.privateDoNotAccessOrElseWrappedResourceUrl=a};uh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var xh=function(a){this.privateDoNotAccessOrElseWrappedUrl=a};xh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};var sqa=new xh("about:invalid#zClosurez");var oqa=function(a){this.isValid=a},qqa=[pqa("data"),pqa("http"),pqa("https"),pqa("mailto"),pqa("ftp"),new oqa(function(a){return/^[^:]*([/?#]|$)/.test(a)})],tqa=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var sEa=function(a){this.privateDoNotAccessOrElseWrappedScript=a};sEa.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var vqa=/^[a-z][a-z\d-]*$/i,wqa="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Eqa="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),Fqa=["action","formaction","href"];var Gy=function(a){this.decorated=new Fy(a)};Y(Gy,Ey);Gy.prototype.sanitize=function(a,b){if(b==null)return null;if(b instanceof uh||yh(b)||b instanceof ph){if(SBc(b,a))return this.decorated.sanitize(a,TBc(this,b));throw Error("Oa`"+Ezc[a]+"`"+b);}return this.decorated.sanitize(a,b)};Gy.prototype.bypassSecurityTrustHtml=function(){throw Error("Pa");};Gy.prototype.bypassSecurityTrustUrl=function(){throw Error("Pa");};Gy.prototype.bypassSecurityTrustResourceUrl=function(){throw Error("Pa");};
var TBc=function(a,b){if(b!=null){if(b instanceof ph)return a.decorated.bypassSecurityTrustHtml(String(b));if(yh(b))return a.decorated.bypassSecurityTrustUrl(nqa(b));if(b instanceof uh)return a.decorated.bypassSecurityTrustResourceUrl(String(b))}return null},SBc=function(a,b){switch(b){case 1:return a instanceof ph;case 4:return yh(a)||a instanceof uh;case 5:return a instanceof uh;case 3:return!1;default:return!1}};Gy.\u0275fac=function(a){return new (a||Gy)(Xc(Rh))};Gy.\u0275prov=Dc({token:Gy,factory:Gy.\u0275fac});var UBc=[{provide:vka,useExisting:Ey},{provide:Ey,useClass:Gy}],Hy=function(){};Hy.\u0275fac=function(a){return new (a||Hy)};Hy.\u0275mod=$e({type:Hy});Hy.\u0275inj=Fc({providers:UBc,imports:[ty]});var Hqa;var VBc=function(a,b,c){this.url=a;this.svgText=b;this.options=c},Iy=function(a,b,c,d){this._httpClient=a;this._sanitizer=b;this._errorHandler=d;this._svgIconConfigs=new Map;this._iconSetConfigs=new Map;this._cachedIconsByUrl=new Map;this._inProgressUrlFetches=new Map;this._fontCssClassesByAlias=new Map;this._resolvers=[];this._defaultFontSetClass=["material-icons","mat-ligature-font"];this._document=c},WBc=function(a,b){return a._fontCssClassesByAlias.get(b)||b};
Iy.prototype.setDefaultFontSetClass=function(){this._defaultFontSetClass=$c.apply(0,arguments)};var XBc=function(a,b,c){c=c===void 0?"":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):de(Error("Qa`"+d))};h=Iy.prototype;
h.ngOnDestroy=function(){this._resolvers=[];this._svgIconConfigs.clear();this._iconSetConfigs.clear();this._cachedIconsByUrl.clear()};h._getSvgFromConfig=function(a){return a.svgText?ce(this._svgElementFromConfig(a).cloneNode(!0)):this._loadSvgIconFromConfig(a).pipe(A(function(b){return b.cloneNode(!0)}))};
h._getSvgFromIconSetConfigs=function(a,b){var c=this,d=this._extractIconWithNameFromAnySet(a,b);if(d)return ce(d);d=b.filter(function(e){return!e.svgText}).map(function(e){return c._loadSvgIconSetFromConfig(e).pipe(gf(function(f){f="Loading icon set URL: "+c._sanitizer.sanitize(5,e.url)+" failed: "+f.message;c._errorHandler.handleError(Error(f));return ce(null)}))});return oe(d).pipe(A(function(){var e=c._extractIconWithNameFromAnySet(a,b);if(!e)throw Error("Qa`"+a);return e}))};
h._extractIconWithNameFromAnySet=function(a,b){for(var c=b.length-1;c>=0;c--){var d=b[c];if(d.svgText&&d.svgText.toString().indexOf(a)>-1){var e=this._svgElementFromConfig(d);if(d=this._extractSvgIconFromSet(e,a,d.options))return d}}return null};h._loadSvgIconFromConfig=function(a){var b=this;return this._fetchIcon(a).pipe(Af(function(c){return a.svgText=c}),A(function(){return b._svgElementFromConfig(a)}))};
h._loadSvgIconSetFromConfig=function(a){return a.svgText?ce(null):this._fetchIcon(a).pipe(Af(function(b){return a.svgText=b}))};
h._extractSvgIconFromSet=function(a,b,c){a=a.querySelector('[id="'+b+'"]');if(!a)return null;a=a.cloneNode(!0);a.removeAttribute("id");if(a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,c);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),c);b=this._svgElementFromString(Jqa("<svg></svg>"));b.appendChild(a);return this._setSvgAttributes(b,c)};
h._svgElementFromString=function(a){var b=this._document.createElement("DIV");b.innerHTML=a;a=b.querySelector("svg");if(!a)throw Error("Ua");return a};h._toSvgElement=function(a){for(var b=this._svgElementFromString(Jqa("<svg></svg>")),c=a.attributes,d=0;d<c.length;d++){var e=c[d],f=e.name;e=e.value;f!=="id"&&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};
h._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};
h._fetchIcon=function(a){var b=this,c=a.url,d,e;a=(e=(d=a.options)==null?void 0:d.withCredentials)!=null?e:!1;if(!this._httpClient)throw Error("Ra");if(c==null)throw Error("Va`"+c);var f=this._sanitizer.sanitize(5,c);if(!f)throw Error("Sa`"+c);if(c=this._inProgressUrlFetches.get(f))return c;c=this._httpClient.get(f,{responseType:"text",withCredentials:a}).pipe(A(function(g){return Jqa(g)}),of(function(){return b._inProgressUrlFetches.delete(f)}),yla());this._inProgressUrlFetches.set(f,c);return c};
h._addSvgIconConfig=function(a,b,c){this._svgIconConfigs.set(a+":"+b,c);return this};h._addSvgIconSetConfig=function(a,b){var c=this._iconSetConfigs.get(a);c?c.push(b):this._iconSetConfigs.set(a,[b]);return this};h._svgElementFromConfig=function(a){if(!a.svgElement){var b=this._svgElementFromString(a.svgText);this._setSvgAttributes(b,a.options);a.svgElement=b}return a.svgElement};
h._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 VBc(d.url,null,d.options):new VBc(d,null)}};Iy.\u0275fac=function(a){return new (a||Iy)(Xc(By,8),Xc(Ey),Xc(Rh,8),Xc(ux))};Iy.\u0275prov=Dc({token:Iy,factory:Iy.\u0275fac,providedIn:"root"});var YBc=new dd("MAT_ICON_DEFAULT_OPTIONS"),ZBc=new dd("mat-icon-location",{providedIn:"root",factory:function(){var a=p(Rh),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}}}),$Bc="clip-path color-profile src cursor fill filter marker marker-start marker-mid marker-end mask stroke".split(" "),aCc=$Bc.map(function(a){return"["+a+"]"}).join(", "),bCc=/^url\(['"]?#(.*?)['"]?\)$/,Jy=function(){this._elementRef=p(Hd);this._iconRegistry=p(Iy);this._location=p(ZBc);this._errorHandler=
p(ux);this.inline=!1;this._previousFontSetClass=[];this._currentIconFetch=Pd.EMPTY;var a=p(new kx("aria-hidden"),{optional:!0}),b=p(YBc,{optional:!0});b&&(b.color&&(this.color=this._defaultColor=b.color),b.fontSet&&(this.fontSet=b.fontSet));a||this._elementRef.nativeElement.setAttribute("aria-hidden","true")};h=Jy.prototype;h._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("Wa`"+a);}};h.ngOnInit=function(){this._updateFontIconClasses()};
h.ngAfterViewChecked=function(){var a=this._elementsWithExternalReferences;a&&a.size&&(a=this._location.getPathname(),a!==this._previousPath&&(this._previousPath=a,this._prependPathToReferences(a)))};h.ngOnDestroy=function(){this._currentIconFetch.unsubscribe();this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()};h._usingFontIcon=function(){return!this.svgIcon};
h._setSvgElement=function(a){this._clearSvgElement();var b=this._location.getPathname();this._previousPath=b;this._cacheChildrenWithExternalReferences(a);this._prependPathToReferences(b);this._elementRef.nativeElement.appendChild(a)};h._clearSvgElement=function(){var a=this._elementRef.nativeElement,b=a.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();b--;){var c=a.childNodes[b];c.nodeType===1&&c.nodeName.toLowerCase()!=="svg"||c.remove()}};
h._updateFontIconClasses=function(){if(this._usingFontIcon()){var a=this._elementRef.nativeElement,b=(this.fontSet?WBc(this._iconRegistry,this.fontSet).split(/ +/):this._iconRegistry._defaultFontSetClass).filter(function(c){return c.length>0});this._previousFontSetClass.forEach(function(c){return a.classList.remove(c)});b.forEach(function(c){return a.classList.add(c)});this._previousFontSetClass=b;this.fontIcon===this._previousFontIconClass||b.includes("mat-ligature-font")||(this._previousFontIconClass&&
a.classList.remove(this._previousFontIconClass),this.fontIcon&&a.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}};h._cleanupFontValue=function(a){return typeof a==="string"?a.trim().split(" ")[0]:a};h._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+"')")})})};
h._cacheChildrenWithExternalReferences=function(a){var b=a.querySelectorAll(aCc),c=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(a={i$jscomp$422:0};a.i$jscomp$422<b.length;a={i$jscomp$422:a.i$jscomp$422},a.i$jscomp$422++)$Bc.forEach(function(d){return function(e){var f=b[d.i$jscomp$422],g=f.getAttribute(e);if(g=g?g.match(bCc):null){var k=c.get(f);k||(k=[],c.set(f,k));k.push({name:e,value:g[1]})}}}(a))};
h._updateSvgIcon=function(a){var b=this;this._svgName=this._svgNamespace=null;this._currentIconFetch.unsubscribe();if(a){a=m(this._splitIconName(a));var c=a.next().value,d=a.next().value;c&&(this._svgNamespace=c);d&&(this._svgName=d);this._currentIconFetch=XBc(this._iconRegistry,d,c).pipe(lf(1)).subscribe(function(e){return b._setSvgElement(e)},function(e){b._errorHandler.handleError(Error("Xa`"+c+"`"+d+"`"+e.message))})}};
da.Object.defineProperties(Jy.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color||this._defaultColor},set:function(a){this._color=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())}}});Jy.\u0275fac=function(a){return new (a||Jy)};
Jy.\u0275cmp=D({type:Jy,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(a,b){a&2&&(If("data-mat-icon-type",b._usingFontIcon()?"font":"svg")("data-mat-icon-name",b._svgName||b.fontIcon)("data-mat-icon-namespace",b._svgNamespace||b.fontSet)("fontIcon",b._usingFontIcon()?b.fontIcon:null),xg(b.color?"mat-"+b.color:""),wg("mat-icon-inline",b.inline)("mat-icon-no-color",b.color!=="primary"&&b.color!=="accent"&&b.color!=="warn"))},inputs:{color:"color",
inline:[2,"inline","inline",$g],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(bg(),cg(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],
encapsulation:2,changeDetection:0});var cCc=new dd("cdk-dir-doc",{providedIn:"root",factory:function(){return p(Rh)}});var dCc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,bi=function(){this.valueSignal=ng.apply(null,["ltr"].concat(q([])));this.change=new Ti;var a=p(cCc,{optional:!0});if(a){var b=a.documentElement?a.documentElement.dir:null,c=this.valueSignal,d=c.set;b=(a.body?a.body.dir:null)||b||"ltr";var e=(b==null?void 0:b.toLowerCase())||"",f;b=e==="auto"&&typeof navigator!=="undefined"&&((f=navigator)==null?0:f.language)?dCc.test(navigator.language)?
"rtl":"ltr":e==="rtl"?"rtl":"ltr";d.call(c,b)}};bi.prototype.ngOnDestroy=function(){this.change.complete()};da.Object.defineProperties(bi.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.valueSignal()}}});bi.\u0275fac=function(a){return new (a||bi)};bi.\u0275prov=Dc({token:bi,factory:bi.\u0275fac,providedIn:"root"});var Ky=function(){};Ky.\u0275fac=function(a){return new (a||Ky)};Ky.\u0275mod=$e({type:Ky});Ky.\u0275inj=Fc({});var Ly=function(){};Ly.\u0275fac=function(a){return new (a||Ly)};Ly.\u0275mod=$e({type:Ly});Ly.\u0275inj=Fc({imports:[Ky]});var Mqa,Nqa="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 Pqa;var Tqa,Rqa;var Vqa;var eCc;try{eCc=typeof Intl!=="undefined"&&Intl.v8BreakIterator}catch(a){eCc=!1}
var Vh=function(){this.EDGE=(this.isBrowser=(this._platformId=p(Kyc))?this._platformId==="browser":typeof document==="object"&&!!document)&&/(edge)/i.test(navigator.userAgent);this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);this.BLINK=this.isBrowser&&!(!window.chrome&&!eCc)&&typeof CSS!=="undefined"&&!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};Vh.\u0275fac=function(a){return new (a||Vh)};Vh.\u0275prov=Dc({token:Vh,factory:Vh.\u0275fac,providedIn:"root"});var fCc=new dd("cdk-input-modality-detector-options"),gCc={ignoreKeys:[18,17,224,91,16]},hCc={passive:!0,capture:!0},My=function(){var a=this;this._platform=p(Vh);this._mostRecentTarget=null;this._modality=new Mj(null);this._lastTouchMs=0;this._onKeydown=function(f){var g,k;((g=a._options)==null?0:(k=g.ignoreKeys)==null?0:k.some(function(l){return l===f.keyCode}))||(a._modality.next("keyboard"),a._mostRecentTarget=Jh(f))};this._onMousedown=function(f){Date.now()-a._lastTouchMs<650||(a._modality.next(Kqa(f)?
"keyboard":"mouse"),a._mostRecentTarget=Jh(f))};this._onTouchstart=function(f){Lqa(f)?a._modality.next("keyboard"):(a._lastTouchMs=Date.now(),a._modality.next("touch"),a._mostRecentTarget=Jh(f))};var b=p(Rg),c=p(Rh),d=p(fCc,{optional:!0});this._options=Object.assign({},gCc,d);this.modalityDetected=this._modality.pipe(wf(1));this.modalityDetected.pipe(nf());if(this._platform.isBrowser){var e=p(Ye).createRenderer(null,null);this._listenerCleanups=b.runOutsideAngular(function(){return[e.listen(c,"keydown",
a._onKeydown,hCc),e.listen(c,"mousedown",a._onMousedown,hCc),e.listen(c,"touchstart",a._onTouchstart,hCc)]})}};My.prototype.ngOnDestroy=function(){this._modality.complete();var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()})};da.Object.defineProperties(My.prototype,{mostRecentModality:{configurable:!0,enumerable:!0,get:function(){return this._modality.value}}});My.\u0275fac=function(a){return new (a||My)};My.\u0275prov=Dc({token:My,factory:My.\u0275fac,providedIn:"root"});var iCc=new dd("cdk-focus-monitor-default-options"),jCc=Hh({passive:!0,capture:!0}),Ny=function(){var a=this;this._ngZone=p(Rg);this._platform=p(Vh);this._inputModalityDetector=p(My);this._origin=null;this._originFromTouchInteraction=this._windowFocused=!1;this._elementInfo=new Map;this._monitoredElementCount=0;this._rootNodeFocusListenerCount=new Map;this._windowFocusListener=function(){a._windowFocused=!0;a._windowFocusTimeoutId=setTimeout(function(){return a._windowFocused=!1})};this._document=
p(Rh);this._stopInputModalityDetector=new qf;this._rootNodeFocusAndBlurListener=function(c){for(var d=Jh(c);d;d=d.parentElement)c.type==="focus"?a._onFocus(c,d):a._onBlur(c,d)};var b;this._detectionMode=((b=p(iCc,{optional:!0}))==null?void 0:b.detectionMode)||0};
Ny.prototype.monitor=function(a,b){b=b===void 0?!1:b;a=Nh(a);if(!this._platform.isBrowser||a.nodeType!==1)return ce();var c=Wqa(a)||this._document,d=this._elementInfo.get(a);if(d)return b&&(d.checkChildren=!0),d.subject;b={checkChildren:b,subject:new qf,rootNode:c};this._elementInfo.set(a,b);this._registerGlobalListeners(b);return b.subject};Ny.prototype.stopMonitoring=function(a){a=Nh(a);var b=this._elementInfo.get(a);b&&(b.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(b))};
var Oy=function(a,b,c,d){b=Nh(b);b===a._document.activeElement?a._getClosestElementsInfo(b).forEach(function(e){var f=m(e);e=f.next().value;f=f.next().value;return a._originChanged(e,c,f)}):(a._setOrigin(c),typeof b.focus==="function"&&b.focus(d))};h=Ny.prototype;h.ngOnDestroy=function(){var a=this;this._elementInfo.forEach(function(b,c){return a.stopMonitoring(c)})};h._getWindow=function(){return this._document.defaultView||window};
h._getFocusOrigin=function(a){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(a)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:a&&this._isLastInteractionFromInputLabel(a)?"mouse":"program"};h._shouldBeAttributedToTouch=function(a){return this._detectionMode===1||!(a==null||!a.contains(this._inputModalityDetector._mostRecentTarget))};
h._setClasses=function(a,b){a.classList.toggle("cdk-focused",!!b);a.classList.toggle("cdk-touch-focused",b==="touch");a.classList.toggle("cdk-keyboard-focused",b==="keyboard");a.classList.toggle("cdk-mouse-focused",b==="mouse");a.classList.toggle("cdk-program-focused",b==="program")};
h._setOrigin=function(a,b){var c=this;b=b===void 0?!1:b;this._ngZone.runOutsideAngular(function(){c._origin=a;c._originFromTouchInteraction=a==="touch"&&b;c._detectionMode===0&&(clearTimeout(c._originTimeoutId),c._originTimeoutId=setTimeout(function(){return c._origin=null},c._originFromTouchInteraction?650:1))})};h._onFocus=function(a,b){var c=this._elementInfo.get(b);a=Jh(a);c&&(c.checkChildren||b===a)&&this._originChanged(b,this._getFocusOrigin(a),c)};
h._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))};h._emitOrigin=function(a,b){a.subject.observers.length&&this._ngZone.run(function(){return a.subject.next(b)})};
h._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,jCc);c.addEventListener("blur",b._rootNodeFocusAndBlurListener,jCc)});this._rootNodeFocusListenerCount.set(c,a+1);++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(function(){b._getWindow().addEventListener("focus",b._windowFocusListener)}),
this._inputModalityDetector.modalityDetected.pipe(zf(this._stopInputModalityDetector)).subscribe(function(d){b._setOrigin(d,!0)}))}};
h._removeGlobalListeners=function(a){a=a.rootNode;if(this._rootNodeFocusListenerCount.has(a)){var b=this._rootNodeFocusListenerCount.get(a);b>1?this._rootNodeFocusListenerCount.set(a,b-1):(a.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jCc),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jCc),this._rootNodeFocusListenerCount.delete(a))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),
clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))};h._originChanged=function(a,b,c){this._setClasses(a,b);this._emitOrigin(c,b);this._lastFocusOrigin=b};h._getClosestElementsInfo=function(a){var b=[];this._elementInfo.forEach(function(c,d){(d===a||c.checkChildren&&d.contains(a))&&b.push([d,c])});return b};
h._isLastInteractionFromInputLabel=function(a){var b=this._inputModalityDetector,c=b._mostRecentTarget;if(b.mostRecentModality!=="mouse"||!c||c===a||a.nodeName!=="INPUT"&&a.nodeName!=="TEXTAREA"||a.disabled)return!1;if(a=a.labels)for(b=0;b<a.length;b++)if(a[b].contains(c))return!0;return!1};Ny.\u0275fac=function(a){return new (a||Ny)};Ny.\u0275prov=Dc({token:Ny,factory:Ny.\u0275fac,providedIn:"root"});
var Py=function(){this._elementRef=p(Hd);this._focusMonitor=p(Ny);this._focusOrigin=null;this.cdkFocusChange=new Ti};Py.prototype.ngAfterViewInit=function(){var a=this,b=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(b,b.nodeType===1&&b.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(c){a._focusOrigin=c;a.cdkFocusChange.emit(c)})};Py.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._monitorSubscription&&this._monitorSubscription.unsubscribe()};
da.Object.defineProperties(Py.prototype,{focusOrigin:{configurable:!0,enumerable:!0,get:function(){return this._focusOrigin}}});Py.\u0275fac=function(a){return new (a||Py)};Py.\u0275dir=af({type:Py,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});var Qy=function(){this._platform=p(Vh)};Qy.prototype.isDisabled=function(a){return a.hasAttribute("disabled")};Qy.prototype.isVisible=function(a){return!!(a.offsetWidth||a.offsetHeight||typeof a.getClientRects==="function"&&a.getClientRects().length)&&getComputedStyle(a).visibility==="visible"};
var kCc=function(a,b){if(!a._platform.isBrowser)return!1;try{var c=(b.ownerDocument&&b.ownerDocument.defaultView||window).frameElement}catch(g){c=null}if(c&&(Zqa(c)===-1||!a.isVisible(c)))return!1;c=b.nodeName.toLowerCase();var d=Zqa(b);if(b.hasAttribute("contenteditable"))a=d!==-1;else{var e;if(!(e=c==="iframe"||c==="object")&&(e=a._platform.WEBKIT&&a._platform.IOS)){e=b.nodeName.toLowerCase();var f=e==="input"&&b.type;e=!(f==="text"||f==="password"||e==="select"||e==="textarea")}a=e?!1:c==="audio"?
b.hasAttribute("controls")?d!==-1:!1:c==="video"?d===-1?!1:d!==null?!0:a._platform.FIREFOX||b.hasAttribute("controls"):b.tabIndex>=0}return a};
Qy.prototype.isFocusable=function(a,b){if(a.nodeName.toLowerCase()=="input"&&a.type=="hidden")var c=!1;else c=a.nodeName.toLowerCase(),c=c==="input"||c==="select"||c==="button"||c==="textarea"||a.nodeName.toLowerCase()=="a"&&a.hasAttribute("href")||a.hasAttribute("contenteditable")||Yqa(a);return c&&!this.isDisabled(a)&&((b==null?void 0:b.ignoreVisibility)||this.isVisible(a))};Qy.\u0275fac=function(a){return new (a||Qy)};Qy.\u0275prov=Dc({token:Qy,factory:Qy.\u0275fac,providedIn:"root"});var lCc=new WeakMap,Zh=function(){this._injector=p(ye);this._environmentInjector=p(Xe)};Zh.prototype.load=function(a){var b=this._appRef=this._appRef||this._injector.get(Wg),c=lCc.get(b);c||(c={loaders:new Set,refs:[]},lCc.set(b,c),b.onDestroy(function(){var d;(d=lCc.get(b))==null||d.refs.forEach(function(e){return e.destroy()});lCc.delete(b)}));c.loaders.has(a)||(c.loaders.add(a),c.refs.push(Zoa(a,{environmentInjector:this._environmentInjector})))};Zh.\u0275fac=function(a){return new (a||Zh)};
Zh.\u0275prov=Dc({token:Zh,factory:Zh.\u0275fac,providedIn:"root"});var Ry=function(){};Ry.\u0275fac=function(a){return new (a||Ry)};Ry.\u0275cmp=D({type:Ry,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}\n"],encapsulation:2,changeDetection:0});var Uy=function(a,b,c,d,e,f){var g=this;this._element=a;this._checker=b;this._ngZone=c;this._document=d;this._injector=f;this._hasAttached=!1;this.startAnchorListener=function(){return mCc(g)};this.endAnchorListener=function(){return Sy(g)};this._enabled=!0;(e===void 0?0:e)||Ty(this)};
Uy.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 Ty=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))},nCc=function(a){return new Promise(function(b){a._executeOnStable(function(){return b(a.focusInitialElement())})})},
oCc=function(a){new Promise(function(b){a._executeOnStable(function(){return b(Sy(a))})})};Uy.prototype._getRegionBoundary=function(a){var b=this._element.querySelectorAll("[cdk-focus-region-"+a+"], [cdkFocusRegion"+(a+"], [cdk-focus-")+(a+"]"));return a=="start"?b.length?b[0]:this._getFirstTabbableElement(this._element):b.length?b[b.length-1]:this._getLastTabbableElement(this._element)};
Uy.prototype.focusInitialElement=function(a){var b=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(b){if(!this._checker.isFocusable(b))return b=this._getFirstTabbableElement(b),b==null||b.focus(a),!!b;b.focus(a);return!0}return Sy(this,a)};var Sy=function(a,b){(a=a._getRegionBoundary("start"))&&a.focus(b);return!!a},mCc=function(a){(a=a._getRegionBoundary("end"))&&a.focus(void 0);return!!a};h=Uy.prototype;h.hasAttached=function(){return this._hasAttached};
h._getFirstTabbableElement=function(a){if(this._checker.isFocusable(a)&&kCc(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};h._getLastTabbableElement=function(a){if(this._checker.isFocusable(a)&&kCc(this._checker,a))return a;a=a.children;for(var b=a.length-1;b>=0;b--){var c=a[b].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(a[b]):null;if(c)return c}return null};
h._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};h._toggleAnchorTabIndex=function(a,b){a?b.setAttribute("tabindex","0"):b.removeAttribute("tabindex")};var pCc=function(a,b){a._startAnchor&&a._endAnchor&&(a._toggleAnchorTabIndex(b,a._startAnchor),a._toggleAnchorTabIndex(b,a._endAnchor))};
Uy.prototype._executeOnStable=function(a){this._injector?Ee(a,{injector:this._injector}):setTimeout(a)};da.Object.defineProperties(Uy.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 Vy=function(){this._checker=p(Qy);this._ngZone=p(Rg);this._document=p(Rh);this._injector=p(ye);p(Zh).load(Ry)};
Vy.prototype.create=function(a,b){return new Uy(a,this._checker,this._ngZone,this._document,b===void 0?!1:b,this._injector)};Vy.\u0275fac=function(a){return new (a||Vy)};Vy.\u0275prov=Dc({token:Vy,factory:Vy.\u0275fac,providedIn:"root"});var Wy=function(){this._elementRef=p(Hd);this._focusTrapFactory=p(Vy);this._previouslyFocusedElement=null;p(Vh).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))};h=Wy.prototype;
h.ngOnDestroy=function(){var a;(a=this.focusTrap)==null||a.destroy();this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)};h.ngAfterContentInit=function(){var a;(a=this.focusTrap)==null||Ty(a);this.autoCapture&&this._captureFocus()};h.ngDoCheck=function(){this.focusTrap&&!this.focusTrap.hasAttached()&&Ty(this.focusTrap)};
h.ngOnChanges=function(a){a=a.autoCapture;var b;a&&!a.firstChange&&this.autoCapture&&((b=this.focusTrap)==null?0:b.hasAttached())&&this._captureFocus()};h._captureFocus=function(){this._previouslyFocusedElement=Ih();var a;(a=this.focusTrap)==null||nCc(a)};da.Object.defineProperties(Wy.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.focusTrap)==null?void 0:a.enabled)||!1},set:function(a){this.focusTrap&&(this.focusTrap.enabled=a)}}});
Wy.\u0275fac=function(a){return new (a||Wy)};Wy.\u0275dir=af({type:Wy,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",$g],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",$g]},exportAs:["cdkTrapFocus"],features:[jx]});var qCc=new Set,Xy,li=function(){this._platform=p(Vh);this._nonce=p(Lyc,{optional:!0});this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$qa};li.prototype.matchMedia=function(a){if(this._platform.WEBKIT||this._platform.BLINK){var b=this._nonce;if(!qCc.has(a))try{Xy||(Xy=document.createElement("style"),b&&Xy.setAttribute("nonce",b),Xy.setAttribute("type","text/css"),document.head.appendChild(Xy)),Xy.sheet&&(Xy.sheet.insertRule("@media "+a+" {body{ }}",0),qCc.add(a))}catch(c){console.error(c)}}return this._matchMedia(a)};
li.\u0275fac=function(a){return new (a||li)};li.\u0275prov=Dc({token:li,factory:li.\u0275fac,providedIn:"root"});var Yy=function(){this._mediaMatcher=p(li);this._zone=p(Rg);this._queries=new Map;this._destroySubject=new qf};Yy.prototype.ngOnDestroy=function(){this._destroySubject.next();this._destroySubject.complete()};
Yy.prototype.observe=function(a){var b=this;a=ara(Kh(a)).map(function(c){return b._registerQuery(c).observable});a=ie(a);a=me(a.pipe(lf(1)),a.pipe(wf(1),jf(0)));return a.pipe(A(function(c){var d={matches:!1,breakpoints:{}};c.forEach(function(e){var f=e.matches;e=e.query;d.matches=d.matches||f;d.breakpoints[e]=f});return d}))};
Yy.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 Td(function(e){var f=function(g){return b._zone.run(function(){return e.next(g)})};c.addListener(f);return function(){c.removeListener(f)}})).pipe(xf(c),A(function(e){return{query:a,matches:e.matches}}),zf(this._destroySubject)),mql:c};this._queries.set(a,d);return d};Yy.\u0275fac=function(a){return new (a||Yy)};
Yy.\u0275prov=Dc({token:Yy,factory:Yy.\u0275fac,providedIn:"root"});var Zy=function(){var a=this;this._platform=p(Vh);this._document=p(Rh);this._breakpointSubscription=p(Yy).observe("(forced-colors: active)").subscribe(function(){a._hasCheckedHighContrastMode&&(a._hasCheckedHighContrastMode=!1,a._applyBodyHighContrastModeCssClasses())})},rCc=function(a){if(!a._platform.isBrowser)return 0;var b=a._document.createElement("div");b.style.backgroundColor="rgb(1,2,3)";b.style.position="absolute";a._document.body.appendChild(b);a=(a=a._document.defaultView||window)&&a.getComputedStyle?
a.getComputedStyle(b):null;a=(a&&a.backgroundColor||"").replace(/ /g,"");b.remove();switch(a){case "rgb(0,0,0)":case "rgb(45,50,54)":case "rgb(32,32,32)":return 2;case "rgb(255,255,255)":case "rgb(255,250,239)":return 1}return 0};Zy.prototype.ngOnDestroy=function(){this._breakpointSubscription.unsubscribe()};
Zy.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=rCc(this);b===1?a.add("cdk-high-contrast-active","cdk-high-contrast-black-on-white"):b===2&&a.add("cdk-high-contrast-active","cdk-high-contrast-white-on-black")}};
Zy.\u0275fac=function(a){return new (a||Zy)};Zy.\u0275prov=Dc({token:Zy,factory:Zy.\u0275fac,providedIn:"root"});var sCc=new dd("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),tCc=new dd("LIVE_ANNOUNCER_DEFAULT_OPTIONS");var $y=function(){};$y.prototype.create=function(a){return typeof MutationObserver==="undefined"?null:new MutationObserver(a)};$y.\u0275fac=function(a){return new (a||$y)};$y.\u0275prov=Dc({token:$y,factory:$y.\u0275fac,providedIn:"root"});var az=function(){this._mutationObserverFactory=p($y);this._observedElements=new Map;this._ngZone=p(Rg)};h=az.prototype;h.ngOnDestroy=function(){var a=this;this._observedElements.forEach(function(b,c){return a._cleanupObserver(c)})};
h.observe=function(a){var b=this,c=Nh(a);return new Td(function(d){var e=b._observeElement(c).pipe(A(function(f){return f.filter(function(g){return!bra(g)})}),ue(function(f){return!!f.length})).subscribe(function(f){b._ngZone.run(function(){d.next(f)})});return function(){e.unsubscribe();b._unobserveElement(c)}})};
h._observeElement=function(a){var b=this;return this._ngZone.runOutsideAngular(function(){if(b._observedElements.has(a))b._observedElements.get(a).count++;else{var c=new qf,d=b._mutationObserverFactory.create(function(e){return c.next(e)});d&&d.observe(a,{characterData:!0,childList:!0,subtree:!0});b._observedElements.set(a,{observer:d,stream:c,count:1})}return b._observedElements.get(a).stream})};
h._unobserveElement=function(a){this._observedElements.has(a)&&(this._observedElements.get(a).count--,this._observedElements.get(a).count||this._cleanupObserver(a))};h._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)}};az.\u0275fac=function(a){return new (a||az)};az.\u0275prov=Dc({token:az,factory:az.\u0275fac,providedIn:"root"});
var bz=function(){this._contentObserver=p(az);this._elementRef=p(Hd);this.event=new Ti;this._disabled=!1;this._currentSubscription=null};bz.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()};bz.prototype.ngOnDestroy=function(){this._unsubscribe()};bz.prototype._subscribe=function(){this._unsubscribe();var a=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?a.pipe(jf(this.debounce)):a).subscribe(this.event)};
bz.prototype._unsubscribe=function(){var a;(a=this._currentSubscription)==null||a.unsubscribe()};da.Object.defineProperties(bz.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=a)?this._unsubscribe():this._subscribe()}},debounce:{configurable:!0,enumerable:!0,get:function(){return this._debounce},set:function(a){this._debounce=Oh(a);this._subscribe()}}});bz.\u0275fac=function(a){return new (a||bz)};
bz.\u0275dir=af({type:bz,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",$g],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var cz=function(){};cz.\u0275fac=function(a){return new (a||cz)};cz.\u0275mod=$e({type:cz});cz.\u0275inj=Fc({providers:[$y]});var uCc=0,dz=function(){this._ngZone=p(Rg);this._defaultOptions=p(tCc,{optional:!0});this._document=p(Rh);this._liveElement=p(sCc,{optional:!0})||this._createLiveElement()};h=dz.prototype;
h.announce=function(a){var b=$c.apply(1,arguments),c=this,d=this._defaultOptions;if(b.length===1&&typeof b[0]==="number")var e=b[0];else{b=m(b);var f=b.next().value;e=b.next().value}this.clear();clearTimeout(this._previousTimeout);f||(f=d&&d.politeness?d.politeness:"polite");e==null&&d&&(e=d.duration);this._liveElement.setAttribute("aria-live",f);this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id);return this._ngZone.runOutsideAngular(function(){c._currentPromise||(c._currentPromise=
new Promise(function(g){return c._currentResolve=g}));clearTimeout(c._previousTimeout);c._previousTimeout=setTimeout(function(){c._liveElement.textContent=a;typeof e==="number"&&(c._previousTimeout=setTimeout(function(){return c.clear()},e));var g;(g=c._currentResolve)==null||g.call(c);c._currentPromise=c._currentResolve=void 0},100);return c._currentPromise})};h.clear=function(){this._liveElement&&(this._liveElement.textContent="")};
h.ngOnDestroy=function(){clearTimeout(this._previousTimeout);var a;(a=this._liveElement)==null||a.remove();this._liveElement=null;var b;(b=this._currentResolve)==null||b.call(this);this._currentPromise=this._currentResolve=void 0};
h._createLiveElement=function(){for(var a=this._document.getElementsByClassName("cdk-live-announcer-element"),b=this._document.createElement("div"),c=0;c<a.length;c++)a[c].remove();b.classList.add("cdk-live-announcer-element");b.classList.add("cdk-visually-hidden");b.setAttribute("aria-atomic","true");b.setAttribute("aria-live","polite");b.id="cdk-live-announcer-"+uCc++;this._document.body.appendChild(b);return b};
h._exposeAnnouncerToModals=function(a){for(var b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");e?e.indexOf(a)===-1&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};dz.\u0275fac=function(a){return new (a||dz)};dz.\u0275prov=Dc({token:dz,factory:dz.\u0275fac,providedIn:"root"});var ez=function(){p(Zy)._applyBodyHighContrastModeCssClasses()};ez.\u0275fac=function(a){return new (a||ez)};ez.\u0275mod=$e({type:ez});ez.\u0275inj=Fc({imports:[cz]});var fra=0,fz=function(){this._platform=p(Vh);this._document=p(Rh);this._messageRegistry=new Map;this._messagesContainer=null;this._id=""+fra++;p(Zh).load(Ry);this._id=p(Jyc)+"-"+fra++},gz=function(a,b,c,d){if(a._canBeDescribed(b,c)){var e=era(c,d);typeof c!=="string"?(gra(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)}},hz=function(a,b,c,d){if(c&&a._isElementNode(b)){d=
era(c,d);a._isElementDescribedByMessage(b,d)&&a._removeMessageReference(b,d);typeof c==="string"&&(b=a._messageRegistry.get(d))&&b.referenceCount===0&&a._deleteMessageElement(d);var e;((e=a._messagesContainer)==null?void 0:e.childNodes.length)===0&&(a._messagesContainer.remove(),a._messagesContainer=null)}};h=fz.prototype;
h.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;(c=this._messagesContainer)==null||c.remove();this._messagesContainer=null;this._messageRegistry.clear()};
h._createMessageElement=function(a,b){var c=this._document.createElement("div");gra(c,this._id);c.textContent=a;b&&c.setAttribute("role",b);this._createMessagesContainer();this._messagesContainer.appendChild(c);this._messageRegistry.set(era(a,b),{messageElement:c,referenceCount:0})};h._deleteMessageElement=function(a){var b,c;(b=this._messageRegistry.get(a))==null||(c=b.messageElement)==null||c.remove();this._messageRegistry.delete(a)};
h._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.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._messagesContainer=a}};
h._removeCdkDescribedByReferenceIds=function(a){var b=cra(a,"aria-describedby").filter(function(c){return c.indexOf("cdk-describedby-message")!=0});a.setAttribute("aria-describedby",b.join(" "))};h._addMessageReference=function(a,b){b=this._messageRegistry.get(b);dra(a,"aria-describedby",b.messageElement.id);a.setAttribute("cdk-describedby-host",this._id);b.referenceCount++};
h._removeMessageReference=function(a,b){b=this._messageRegistry.get(b);b.referenceCount--;Ph(a,"aria-describedby",b.messageElement.id);a.removeAttribute("cdk-describedby-host")};h._isElementDescribedByMessage=function(a,b){a=cra(a,"aria-describedby");b=(b=this._messageRegistry.get(b))&&b.messageElement.id;return!!b&&a.indexOf(b)!=-1};
h._canBeDescribed=function(a,b){if(!this._isElementNode(a))return!1;if(b&&typeof b==="object")return!0;b=b==null?"":b.trim();a=a.getAttribute("aria-label");return b?!a||a.trim()!==b:!1};h._isElementNode=function(a){return a.nodeType===this._document.ELEMENT_NODE};fz.\u0275fac=function(a){return new (a||fz)};fz.\u0275prov=Dc({token:fz,factory:fz.\u0275fac,providedIn:"root"});var iz=function(a,b,c,d,e,f,g,k){Uy.call(this,a,b,c,d,g.defer,k);this._focusTrapManager=e;this._inertStrategy=f;this._focusTrapManager.register(this)};Y(iz,Uy);iz.prototype.destroy=function(){this._focusTrapManager.deregister(this);Uy.prototype.destroy.call(this)};iz.prototype._enable=function(){this._inertStrategy.preventFocus(this);pCc(this,!0)};iz.prototype._disable=function(){this._inertStrategy.allowFocus(this);pCc(this,!1)};
da.Object.defineProperties(iz.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 vCc=function(){this._listener=null};vCc.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)})};vCc.prototype.allowFocus=function(a){this._listener&&(a._document.removeEventListener("focus",this._listener,!0),this._listener=null)};
vCc.prototype._trapFocus=function(a,b){b=b.target;var c=a._element,d;!b||c.contains(b)||((d=b.closest)==null?0:d.call(b,"div.cdk-overlay-pane"))||setTimeout(function(){a.enabled&&!c.contains(a._document.activeElement)&&Sy(a)})};var wCc=new dd("FOCUS_TRAP_INERT_STRATEGY");var jz=function(){this._focusTrapStack=[]};jz.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()};jz.prototype.deregister=function(a){a._disable();var b=this._focusTrapStack;a=b.indexOf(a);a!==-1&&(b.splice(a,1),b.length&&b[b.length-1]._enable())};jz.\u0275fac=function(a){return new (a||jz)};jz.\u0275prov=Dc({token:jz,factory:jz.\u0275fac,providedIn:"root"});var kz=function(){this._checker=p(Qy);this._ngZone=p(Rg);this._focusTrapManager=p(jz);this._document=p(Rh);this._injector=p(ye);this._inertStrategy=p(wCc,{optional:!0})||new vCc};kz.prototype.create=function(a,b){b=b===void 0?{defer:!1}:b;var c;typeof b==="boolean"?c={defer:b}:c=b;return new iz(a,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,c,this._injector)};kz.\u0275fac=function(a){return new (a||kz)};kz.\u0275prov=Dc({token:kz,factory:kz.\u0275fac,providedIn:"root"});var xCc={},ai=function(){this._appId=p(Jyc)};ai.prototype.getId=function(a,b){b=b===void 0?!1:b;this._appId!=="ng"&&(a+=this._appId);xCc.hasOwnProperty(a)||(xCc[a]=0);return a+(b?ai._infix+"-":"")+xCc[a]++};ai._infix="a"+Math.floor(Math.random()*1E5).toString();ai.\u0275fac=function(a){return new (a||ai)};ai.\u0275prov=Dc({token:ai,factory:ai.\u0275fac,providedIn:"root"});var yCc=function(a,b){this._letterKeyStream=new qf;this._items=[];this._selectedItemIndex=-1;this._pressedLetters=[];this.selectedItem=this._selectedItem=new qf;var c=typeof(b==null?void 0:b.debounceInterval)==="number"?b.debounceInterval:200;if(b==null?0:b.skipPredicate)this._skipPredicateFn=b.skipPredicate;this.setItems(a);this._setupKeyHandler(c)};h=yCc.prototype;h.destroy=function(){this._pressedLetters=[];this._letterKeyStream.complete();this._selectedItem.complete()};
h.setItems=function(a){this._items=a};h.handleKey=function(a){var b=a.keyCode;a.key&&a.key.length===1?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(b>=65&&b<=90||b>=48&&b<=57)&&this._letterKeyStream.next(String.fromCharCode(b))};h.isTyping=function(){return this._pressedLetters.length>0};h.reset=function(){this._pressedLetters=[]};
h._setupKeyHandler=function(a){var b=this;this._letterKeyStream.pipe(Af(function(c){return b._pressedLetters.push(c)}),jf(a),ue(function(){return b._pressedLetters.length>0}),A(function(){return b._pressedLetters.join("").toLocaleUpperCase()})).subscribe(function(c){for(var d=1;d<b._items.length+1;d++){var e=b._items[(b._selectedItemIndex+d)%b._items.length],f=void 0,g=void 0,k=void 0,l=void 0;if(((g=(f=b)._skipPredicateFn)==null||!g.call(f,e))&&((l=(k=e).getLabel)==null?void 0:l.call(k).toLocaleUpperCase().trim().indexOf(c))===
0){b._selectedItem.next(e);break}}b._pressedLetters=[]})};var lz=function(a,b){var c=this;this._items=a;this._activeItemIndex=ng.apply(null,[-1].concat(q([])));this._activeItem=ng.apply(null,[null].concat(q([])));this._wrap=!1;this._typeaheadSubscription=Pd.EMPTY;this._vertical=!0;this._allowedModifierKeys=[];this._homeAndEnd=!1;this._pageUpAndDown={enabled:!1,delta:10};this._skipPredicateFn=function(d){return d.disabled};this.tabOut=new qf;this.change=new qf;a instanceof gg?this._itemChangesSubscription=a.changes.subscribe(function(d){return c._itemsChanged(d.toArray())}):
df(a)&&(this._effectRef=ef.apply(null,[function(){return c._itemsChanged(a())}].concat(q([{injector:b}]))))};lz.prototype.skipPredicate=function(a){this._skipPredicateFn=a;return this};
var mz=function(a){a._wrap=!0;return a},nz=function(a,b){a._vertical=b===void 0?!0:b;return a},oz=function(a,b){a._horizontal=b;return a},zCc=function(a){a._allowedModifierKeys=["shiftKey"];return a},ACc=function(a,b){b=b===void 0?200:b;a._typeaheadSubscription.unsubscribe();var c=a._getItemsArray();a._typeahead=new yCc(c,{debounceInterval:typeof b==="number"?b:void 0,skipPredicate:function(d){return a._skipPredicateFn(d)}});a._typeaheadSubscription=a._typeahead.selectedItem.subscribe(function(d){a.setActiveItem(d)});
return a},pz=function(a){a._homeAndEnd=!0;return a},BCc=function(a){a._pageUpAndDown={enabled:!0,delta:10};return a};lz.prototype.setActiveItem=function(a){var b=this._activeItem();qz(this,a);this._activeItem()!==b&&this.change.next(this._activeItemIndex())};
lz.prototype.onKeydown=function(a){var b=this,c=a.keyCode,d=["altKey","ctrlKey","metaKey","shiftKey"].every(function(g){return!a[g]||b._allowedModifierKeys.indexOf(g)>-1});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){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&
d){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&d){this._setActiveItemByIndex(0,1);break}else return;case 35:if(this._homeAndEnd&&d){CCc(this);break}else return;case 33:if(this._pageUpAndDown.enabled&&d){c=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(c>0?c:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&d){c=this._activeItemIndex()+this._pageUpAndDown.delta;d=this._getItemsArray().length;
this._setActiveItemByIndex(c<d?c:d-1,-1);break}else return;default:if(d||Gh(a,"shiftKey")){var e;(e=this._typeahead)==null||e.handleKey(a)}return}var f;(f=this._typeahead)==null||f.reset();a.preventDefault()};lz.prototype.isTyping=function(){return!!this._typeahead&&this._typeahead.isTyping()};var CCc=function(a){a._setActiveItemByIndex(a._getItemsArray().length-1,-1)};lz.prototype.setNextItemActive=function(){this._activeItemIndex()<0?this._setActiveItemByIndex(0,1):this._setActiveItemByDelta(1)};
lz.prototype.setPreviousItemActive=function(){this._activeItemIndex()<0&&this._wrap?CCc(this):this._setActiveItemByDelta(-1)};var qz=function(a,b){var c=a._getItemsArray();b=typeof b==="number"?b:c.indexOf(b);c=c[b];a._activeItem.set(c==null?null:c);a._activeItemIndex.set(b);(a=a._typeahead)!=null&&(a._selectedItemIndex=b)};h=lz.prototype;
h.destroy=function(){this._typeaheadSubscription.unsubscribe();var a;(a=this._itemChangesSubscription)==null||a.unsubscribe();var b;(b=this._effectRef)==null||b.destroy();var c;(c=this._typeahead)==null||c.destroy();this.tabOut.complete();this.change.complete()};h._setActiveItemByDelta=function(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)};
h._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}}};h._setActiveInDefaultMode=function(a){this._setActiveItemByIndex(this._activeItemIndex()+a,a)};h._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)}};
h._getItemsArray=function(){return df(this._items)?this._items():this._items instanceof gg?this._items.toArray():this._items};h._itemsChanged=function(a){var b;(b=this._typeahead)==null||b.setItems(a);if(b=this._activeItem())a=a.indexOf(b),a>-1&&a!==this._activeItemIndex()&&(this._activeItemIndex.set(a),(b=this._typeahead)!=null&&(b._selectedItemIndex=a))};
da.Object.defineProperties(lz.prototype,{activeItemIndex:{configurable:!0,enumerable:!0,get:function(){return this._activeItemIndex()}},activeItem:{configurable:!0,enumerable:!0,get:function(){return this._activeItem()}}});var rz=function(){lz.apply(this,arguments)};Y(rz,lz);rz.prototype.setActiveItem=function(a){this.activeItem&&this.activeItem.setInactiveStyles();lz.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.setActiveStyles()};var sz=function(){lz.apply(this,arguments);this._origin="program"};Y(sz,lz);var DCc=function(a,b){a._origin=b;return a};sz.prototype.setActiveItem=function(a){lz.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.focus(this._origin)};var ECc=function(a,b){var c=this;this._activeItemIndex=-1;this._activeItem=null;this._shouldActivationFollowFocus=!1;this._horizontalOrientation="ltr";this._skipPredicateFn=function(){return!1};this._trackByFn=function(d){return d};this._items=[];this._typeaheadSubscription=Pd.EMPTY;this._hasInitialFocused=!1;this.change=new qf;a instanceof gg?(this._items=a.toArray(),a.changes.subscribe(function(d){c._items=d.toArray();var e;(e=c._typeahead)==null||e.setItems(c._items);c._updateActiveItemIndex(c._items);
c._initializeFocus()})):we(a)?a.subscribe(function(d){c._items=d;var e;(e=c._typeahead)==null||e.setItems(d);c._updateActiveItemIndex(d);c._initializeFocus()}):(this._items=a,this._initializeFocus());typeof b.shouldActivationFollowFocus==="boolean"&&(this._shouldActivationFollowFocus=b.shouldActivationFollowFocus);b.horizontalOrientation&&(this._horizontalOrientation=b.horizontalOrientation);b.skipPredicate&&(this._skipPredicateFn=b.skipPredicate);b.trackBy&&(this._trackByFn=b.trackBy);typeof b.typeAheadDebounceInterval!==
"undefined"&&this._setTypeAhead(b.typeAheadDebounceInterval)};h=ECc.prototype;
h._initializeFocus=function(){if(!this._hasInitialFocused&&this._items.length!==0){for(var a=0,b=0;b<this._items.length;b++)if(!this._skipPredicateFn(this._items[b])&&!this._isItemDisabled(this._items[b])){a=b;break}b=this._items[a];if(b.makeFocusable){var c;(c=this._activeItem)==null||c.unfocus();this._activeItemIndex=a;this._activeItem=b;(c=this._typeahead)!=null&&(c._selectedItemIndex=a);b.makeFocusable()}else tz(this,a);this._hasInitialFocused=!0}};
h.destroy=function(){this._typeaheadSubscription.unsubscribe();var a;(a=this._typeahead)==null||a.destroy();this.change.complete()};
h.onKeydown=function(a){switch(a.key){case "Tab":return;case "ArrowDown":this._focusNextItem();break;case "ArrowUp":this._focusPreviousItem();break;case "ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case "ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case "Home":this._focusFirstItem();break;case "End":this._focusLastItem();break;case "Enter":case " ":this._activateCurrentItem();
break;default:if(a.key==="*")this._expandAllItemsAtCurrentItemLevel();else{var b;(b=this._typeahead)==null||b.handleKey(a);return}}var c;(c=this._typeahead)==null||c.reset();a.preventDefault()};h._focusFirstItem=function(){tz(this,this._findNextAvailableItemIndex(-1))};h._focusLastItem=function(){tz(this,this._findPreviousAvailableItemIndex(this._items.length))};h._focusNextItem=function(){tz(this,this._findNextAvailableItemIndex(this._activeItemIndex))};h._focusPreviousItem=function(){tz(this,this._findPreviousAvailableItemIndex(this._activeItemIndex))};
var tz=function(a,b){var c=c===void 0?{}:c;c.emitChangeEvent!=null||(c.emitChangeEvent=!0);var d=typeof b==="number"?b:a._items.findIndex(function(k){return a._trackByFn(k)===a._trackByFn(b)});if(!(d<0||d>=a._items.length)){var e=a._items[d];if(a._activeItem===null||a._trackByFn(e)!==a._trackByFn(a._activeItem)){var f=a._activeItem;a._activeItem=e!=null?e:null;a._activeItemIndex=d;(e=a._typeahead)!=null&&(e._selectedItemIndex=d);var g;(g=a._activeItem)==null||g.focus();f==null||f.unfocus();c.emitChangeEvent&&
a.change.next(a._activeItem);a._shouldActivationFollowFocus&&a._activateCurrentItem()}}};h=ECc.prototype;h._updateActiveItemIndex=function(a){var b=this,c=this._activeItem;if(c&&(a=a.findIndex(function(e){return b._trackByFn(e)===b._trackByFn(c)}),a>-1&&a!==this._activeItemIndex)){this._activeItemIndex=a;var d;(d=this._typeahead)!=null&&(d._selectedItemIndex=a)}};
h._setTypeAhead=function(a){var b=this;this._typeahead=new yCc(this._items,{debounceInterval:typeof a==="number"?a:void 0,skipPredicate:function(c){return b._skipPredicateFn(c)}});this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(function(c){tz(b,c)})};h._findNextAvailableItemIndex=function(a){for(var b=a+1;b<this._items.length;b++)if(!this._skipPredicateFn(this._items[b]))return b;return a};
h._findPreviousAvailableItemIndex=function(a){for(var b=a-1;b>=0;b--)if(!this._skipPredicateFn(this._items[b]))return b;return a};h._collapseCurrentItem=function(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{var a=this._activeItem.getParent();a&&!this._skipPredicateFn(a)&&tz(this,a)}};
h._expandCurrentItem=function(){var a=this;this._activeItem&&(this._isCurrentItemExpanded()?hra(this._activeItem.getChildren()).pipe(lf(1)).subscribe(function(b){(b=b.find(function(c){return!a._skipPredicateFn(c)}))&&tz(a,b)}):this._activeItem.expand())};h._isCurrentItemExpanded=function(){return this._activeItem?typeof this._activeItem.isExpanded==="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1};
h._isItemDisabled=function(a){var b;return typeof a.isDisabled==="boolean"?a.isDisabled:(b=a.isDisabled)==null?void 0:b.call(a)};h._expandAllItemsAtCurrentItemLevel=function(){if(this._activeItem){var a=this._activeItem.getParent();(a?hra(a.getChildren()):ce(this._items.filter(function(b){return b.getParent()===null}))).pipe(lf(1)).subscribe(function(b){b=m(b);for(var c=b.next();!c.done;c=b.next())c.value.expand()})}};h._activateCurrentItem=function(){var a;(a=this._activeItem)==null||a.activate()};
new dd("tree-key-manager",{providedIn:"root",factory:function(){return function(a,b){return new ECc(a,b)}}});var uz=function(){this._attachedOverlays=[];this._document=p(Rh)};uz.prototype.ngOnDestroy=function(){this.detach()};uz.prototype.add=function(a){this.remove(a);this._attachedOverlays.push(a)};uz.prototype.remove=function(a){a=this._attachedOverlays.indexOf(a);a>-1&&this._attachedOverlays.splice(a,1);this._attachedOverlays.length===0&&this.detach()};uz.\u0275fac=function(a){return new (a||uz)};uz.\u0275prov=Dc({token:uz,factory:uz.\u0275fac,providedIn:"root"});var gi=function(){uz.apply(this,arguments);var a=this;this._ngZone=p(Rg);this._renderer=p(Ye).createRenderer(null,null);this._keydownListener=function(b){var c=a._attachedOverlays,d={};for(d.i$jscomp$439=c.length-1;d.i$jscomp$439>-1;d={i$jscomp$439:d.i$jscomp$439},d.i$jscomp$439--)if(c[d.i$jscomp$439]._keydownEvents.observers.length>0){a._ngZone.run(function(e){return function(){return c[e.i$jscomp$439]._keydownEvents.next(b)}}(d));break}}};Y(gi,uz);
gi.prototype.add=function(a){var b=this;uz.prototype.add.call(this,a);this._isAttached||(this._ngZone.runOutsideAngular(function(){b._cleanupKeydown=b._renderer.listen("body","keydown",b._keydownListener)}),this._isAttached=!0)};gi.prototype.detach=function(){if(this._isAttached){var a;(a=this._cleanupKeydown)==null||a.call(this);this._isAttached=!1}};gi.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(gi)))(b||gi)}}();gi.\u0275prov=Dc({token:gi,factory:gi.\u0275fac,providedIn:"root"});var ii=function(){uz.apply(this,arguments);var a=this;this._platform=p(Vh);this._ngZone=p(Rg);this._renderer=p(Ye).createRenderer(null,null);this._cursorStyleIsSet=!1;this._pointerDownListener=function(b){a._pointerDownEventTarget=Jh(b)};this._clickListener=function(b){var c=Jh(b),d=b.type==="click"&&a._pointerDownEventTarget?a._pointerDownEventTarget:c;a._pointerDownEventTarget=null;for(var e=a._attachedOverlays.slice(),f={},g=e.length-1;g>-1;f={outsidePointerEvents:void 0},g--){var k=e[g];if(!(k._outsidePointerEvents.observers.length<
1)&&k.hasAttached()){if(ira(k.overlayElement,c)||ira(k.overlayElement,d))break;f.outsidePointerEvents=k._outsidePointerEvents;a._ngZone?a._ngZone.run(function(l){return function(){return l.outsidePointerEvents.next(b)}}(f)):f.outsidePointerEvents.next(b)}}}};Y(ii,uz);
ii.prototype.add=function(a){var b=this;uz.prototype.add.call(this,a);if(!this._isAttached){var c=this._document.body,d={capture:!0},e=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(function(){return[e.listen(c,"pointerdown",b._pointerDownListener,d),e.listen(c,"click",b._clickListener,d),e.listen(c,"auxclick",b._clickListener,d),e.listen(c,"contextmenu",b._clickListener,d)]});this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=c.style.cursor,c.style.cursor="pointer",
this._cursorStyleIsSet=!0);this._isAttached=!0}};ii.prototype.detach=function(){if(this._isAttached){var a;(a=this._cleanups)==null||a.forEach(function(b){return b()});this._cleanups=void 0;this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1);this._isAttached=!1}};ii.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(ii)))(b||ii)}}();ii.\u0275prov=Dc({token:ii,factory:ii.\u0275fac,providedIn:"root"});var $h=function(){};$h.\u0275fac=function(a){return new (a||$h)};
$h.\u0275cmp=D({type:$h,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation;z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cdk-overlay-popover{background:none;border:none;padding:0;color:inherit;outline:0;overflow:visible;position:fixed;pointer-events:none;width:100%;height:100%;inset:auto}.cdk-overlay-popover::backdrop{display:none}.cdk-overlay-popover .cdk-overlay-backdrop{position:fixed}\n"],encapsulation:2,
changeDetection:0});var Wh=function(){this._platform=p(Vh);this._document=p(Rh);this._styleLoader=p(Zh)};Wh.prototype.ngOnDestroy=function(){var a;(a=this._containerElement)==null||a.remove()};var tra=function(a){a._loadStyles();a._containerElement||a._createContainer();return a._containerElement};
Wh.prototype._createContainer=function(){if(this._platform.isBrowser||Xqa())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");Xqa()?a.setAttribute("platform","test"):this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._containerElement=a};
Wh.prototype._loadStyles=function(){this._styleLoader.load($h)};Wh.\u0275fac=function(a){return new (a||Wh)};Wh.\u0275prov=Dc({token:Wh,factory:Wh.\u0275fac,providedIn:"root"});var FCc=new dd("VIRTUAL_SCROLL_STRATEGY");var GCc=function(a,b,c){this._scrolledIndexChange=new qf;this.scrolledIndexChange=this._scrolledIndexChange.pipe(nf());this._viewport=null;this._itemSize=a;this._minBufferPx=b;this._maxBufferPx=c};GCc.prototype.attach=function(a){this._viewport=a;this._updateTotalContentSize();this._updateRenderedRange()};GCc.prototype.detach=function(){this._scrolledIndexChange.complete();this._viewport=null};
GCc.prototype._updateTotalContentSize=function(){if(this._viewport){var a=this._viewport,b=this._viewport._dataLength*this._itemSize;a._totalContentSize!==b&&(a._totalContentSize=b,a._calculateSpacerSize(),a._markChangeDetectionNeeded())}};
GCc.prototype._updateRenderedRange=function(){if(this._viewport){var a=this._viewport._renderedRange;a={start:a.start,end:a.end};var b=this._viewport.getViewportSize(),c=this._viewport._dataLength,d=this._viewport.measureScrollOffset(),e=this._itemSize>0?d/this._itemSize:0;if(a.end>c){var f=Math.ceil(b/this._itemSize),g=Math.max(0,Math.min(e,c-f));e!=g&&(e=g,d=g*this._itemSize,a.start=Math.floor(e));a.end=Math.max(0,Math.min(c,a.start+f))}f=d-a.start*this._itemSize;f<this._minBufferPx&&a.start!=0?
(a.start=Math.max(0,a.start-Math.ceil((this._maxBufferPx-f)/this._itemSize)),a.end=Math.min(c,Math.ceil(e+(b+this._minBufferPx)/this._itemSize))):(b=a.end*this._itemSize-(d+b),b<this._minBufferPx&&a.end!=c&&(b=Math.ceil((this._maxBufferPx-b)/this._itemSize),b>0&&(a.end=Math.min(c,a.end+b),a.start=Math.max(0,Math.floor(e-this._minBufferPx/this._itemSize)))));HCc(this._viewport,a);ICc(this._viewport,Math.round(this._itemSize*a.start));this._scrolledIndexChange.next(Math.floor(e))}};
var vz=function(){this._itemSize=20;this._minBufferPx=100;this._maxBufferPx=200;this._scrollStrategy=new GCc(this.itemSize,this.minBufferPx,this.maxBufferPx)};vz.prototype.ngOnChanges=function(){var a=this._scrollStrategy,b=this.minBufferPx,c=this.maxBufferPx;a._itemSize=this.itemSize;a._minBufferPx=b;a._maxBufferPx=c;a._updateTotalContentSize();a._updateRenderedRange()};
da.Object.defineProperties(vz.prototype,{itemSize:{configurable:!0,enumerable:!0,get:function(){return this._itemSize},set:function(a){this._itemSize=Oh(a)}},minBufferPx:{configurable:!0,enumerable:!0,get:function(){return this._minBufferPx},set:function(a){this._minBufferPx=Oh(a)}},maxBufferPx:{configurable:!0,enumerable:!0,get:function(){return this._maxBufferPx},set:function(a){this._maxBufferPx=Oh(a)}}});vz.\u0275fac=function(a){return new (a||vz)};
vz.\u0275dir=af({type:vz,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Gg([{provide:FCc,useFactory:function(a){return a._scrollStrategy},deps:[Vc(function(){return vz})]}]),jx]});var Sh=function(){this._ngZone=p(Rg);this._platform=p(Vh);this._renderer=p(Ye).createRenderer(null,null);this._scrolled=new qf;this._scrolledCount=0;this.scrollContainers=new Map};Sh.prototype.register=function(a){var b=this;this.scrollContainers.has(a)||this.scrollContainers.set(a,a._elementScrolled.subscribe(function(){return b._scrolled.next(a)}))};Sh.prototype.deregister=function(a){var b=this.scrollContainers.get(a);b&&(b.unsubscribe(),this.scrollContainers.delete(a))};
Sh.prototype.scrolled=function(a){var b=this;a=a===void 0?20:a;return this._platform.isBrowser?new Td(function(c){b._cleanupGlobalListener||(b._cleanupGlobalListener=b._ngZone.runOutsideAngular(function(){return b._renderer.listen("document","scroll",function(){return b._scrolled.next()})}));var d=a>0?b._scrolled.pipe(ff(a)).subscribe(c):b._scrolled.subscribe(c);b._scrolledCount++;return function(){d.unsubscribe();b._scrolledCount--;if(!b._scrolledCount){var e;(e=b._cleanupGlobalListener)==null||
e.call(b);b._cleanupGlobalListener=void 0}}}):ce()};Sh.prototype.ngOnDestroy=function(){var a=this,b;(b=this._cleanupGlobalListener)==null||b.call(this);this._cleanupGlobalListener=void 0;this.scrollContainers.forEach(function(c,d){return a.deregister(d)});this._scrolled.complete()};var JCc=function(a,b){var c=[];a.scrollContainers.forEach(function(d,e){a._scrollableContainsElement(e,b)&&c.push(e)});return c};
Sh.prototype._scrollableContainsElement=function(a,b){b=Nh(b);a=a.elementRef.nativeElement;do if(b==a)return!0;while(b=b.parentElement);return!1};Sh.\u0275fac=function(a){return new (a||Sh)};Sh.\u0275prov=Dc({token:Sh,factory:Sh.\u0275fac,providedIn:"root"});var wz=function(){this.elementRef=p(Hd);this.scrollDispatcher=p(Sh);this.ngZone=p(Rg);this.dir=p(bi,{optional:!0});this._scrollElement=this.elementRef.nativeElement;this._destroyed=new qf;this._renderer=p(ci);this._elementScrolled=new qf};h=wz.prototype;h.ngOnInit=function(){var a=this;this._cleanupScroll=this.ngZone.runOutsideAngular(function(){return a._renderer.listen(a._scrollElement,"scroll",function(b){return a._elementScrolled.next(b)})});this.scrollDispatcher.register(this)};
h.ngOnDestroy=function(){var a;(a=this._cleanupScroll)==null||a.call(this);this._elementScrolled.complete();this.scrollDispatcher.deregister(this);this._destroyed.next();this._destroyed.complete()};
h.scrollTo=function(a){var b=this.elementRef.nativeElement,c=this.dir&&this.dir.value=="rtl";a.left==null&&(a.left=c?a.end:a.start);a.right==null&&(a.right=c?a.start:a.end);a.bottom!=null&&(a.top=b.scrollHeight-b.clientHeight-a.bottom);c&&Uqa()!=0?(a.left!=null&&(a.right=b.scrollWidth-b.clientWidth-a.left),Uqa()==2?a.left=a.right:Uqa()==1&&(a.left=a.right?-a.right:a.right)):a.right!=null&&(a.left=b.scrollWidth-b.clientWidth-a.right);this._applyScrollToOptions(a)};
h._applyScrollToOptions=function(a){var b=this.elementRef.nativeElement;Sqa()?b.scrollTo(a):(a.top!=null&&(b.scrollTop=a.top),a.left!=null&&(b.scrollLeft=a.left))};
h.measureScrollOffset=function(a){var b=this.elementRef.nativeElement;if(a=="top")return b.scrollTop;if(a=="bottom")return b.scrollHeight-b.clientHeight-b.scrollTop;var c=this.dir&&this.dir.value=="rtl";a=="start"?a=c?"right":"left":a=="end"&&(a=c?"left":"right");return c&&Uqa()==2?a=="left"?b.scrollWidth-b.clientWidth-b.scrollLeft:b.scrollLeft:c&&Uqa()==1?a=="left"?b.scrollLeft+b.scrollWidth-b.clientWidth:-b.scrollLeft:a=="left"?b.scrollLeft:b.scrollWidth-b.clientWidth-b.scrollLeft};
wz.\u0275fac=function(a){return new (a||wz)};wz.\u0275dir=af({type:wz,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});var KCc=function(){};var LCc=function(a){this._data=a};Y(LCc,KCc);LCc.prototype.connect=function(){return we(this._data)?this._data:ce(this._data)};LCc.prototype.disconnect=function(){};var MCc=new dd("_ViewRepeater");var NCc=function(){};NCc.prototype.applyChanges=function(a,b,c,d,e){dAc(a,function(f,g,k){if(f.previousIndex==null){var l=c(f,g,k);l=b.createEmbeddedView(l.templateRef,l.context,l.index);g=1}else k==null?(b.remove(g),g=3):(l=b.get(g),b.move(l,k),g=2);if(e){var r;e({context:(r=l)==null?void 0:r.context,operation:g,record:f})}})};NCc.prototype.detach=function(){};var OCc=function(){this.viewCacheSize=20;this._viewCache=[]};h=OCc.prototype;h.applyChanges=function(a,b,c,d,e){var f=this;dAc(a,function(g,k,l){var r;if(g.previousIndex==null)var w=(r=f._insertView(function(){return c(g,k,l)},l,b,d(g)))?1:0;else l==null?(f._detachAndCacheView(k,b),w=3):(r=f._moveView(k,l,b,d(g)),w=2);if(e){var x;e({context:(x=r)==null?void 0:x.context,operation:w,record:g})}})};
h.detach=function(){for(var a=m(this._viewCache),b=a.next();!b.done;b=a.next())b.value.destroy();this._viewCache=[]};h._insertView=function(a,b,c,d){if(b=this._insertViewFromCache(b,c))b.context.$implicit=d;else return a=a(),c.createEmbeddedView(a.templateRef,a.context,a.index)};h._detachAndCacheView=function(a,b){a=b.detach(a);this._maybeCacheView(a,b)};h._moveView=function(a,b,c,d){a=c.get(a);c.move(a,b);a.context.$implicit=d;return a};
h._maybeCacheView=function(a,b){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(a);else{var c=b.indexOf(a);c===-1?a.destroy():b.remove(c)}};h._insertViewFromCache=function(a,b){var c=this._viewCache.pop();c&&b.insert(c,a);return c||null};var xz=function(a,b,c,d){var e=this;a=a===void 0?!1:a;c=c===void 0?!0:c;this._multiple=a;this._emitChanges=c;this.compareWith=d;this._selection=new Set;this._deselectedToEmit=[];this._selectedToEmit=[];this.changed=new qf;b&&b.length&&(a?b.forEach(function(f){return e._markSelected(f)}):this._markSelected(b[0]),this._selectedToEmit.length=0)};h=xz.prototype;
h.select=function(){var a=this;$c.apply(0,arguments).forEach(function(c){return a._markSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};h.deselect=function(){var a=this;$c.apply(0,arguments).forEach(function(c){return a._unmarkSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};h.toggle=function(a){return this.isSelected(a)?this.deselect(a):this.select(a)};
h.clear=function(a){a=a===void 0?!0:a;this._unmarkAll();var b=this._hasQueuedChanges();a&&this._emitChangeEvent();return b};h.isSelected=function(a){return this._selection.has(this._getConcreteValue(a))};h.isEmpty=function(){return this._selection.size===0};h.hasValue=function(){return!this.isEmpty()};h.sort=function(a){this._multiple&&this.selected&&this._selected.sort(a)};
h._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=[]};h._markSelected=function(a){a=this._getConcreteValue(a);this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))};
h._unmarkSelected=function(a){a=this._getConcreteValue(a);this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))};h._unmarkAll=function(){var a=this;this.isEmpty()||this._selection.forEach(function(b){return a._unmarkSelected(b)})};h._verifyValueAssignment=function(){};h._hasQueuedChanges=function(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)};
h._getConcreteValue=function(a,b){if(this.compareWith){var c;b=(c=b)!=null?c:this._selection;b=m(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,this.compareWith(a,c))return c}return a};da.Object.defineProperties(xz.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){this._selected||(this._selected=Array.from(this._selection.values()));return this._selected}}});var yz=function(){this._listeners=[]};yz.prototype.notify=function(a,b){for(var c=m(this._listeners),d=c.next();!d.done;d=c.next())d=d.value,d(a,b)};yz.prototype.listen=function(a){var b=this;this._listeners.push(a);return function(){b._listeners=b._listeners.filter(function(c){return a!==c})}};yz.prototype.ngOnDestroy=function(){this._listeners=[]};yz.\u0275fac=function(a){return new (a||yz)};yz.\u0275prov=Dc({token:yz,factory:yz.\u0275fac,providedIn:"root"});var Qh=function(){var a=this;this._platform=p(Vh);this._change=new qf;this._document=p(Rh);var b=p(Rg),c=p(Ye).createRenderer(null,null);b.runOutsideAngular(function(){if(a._platform.isBrowser){var d=function(e){return a._change.next(e)};a._listeners=[c.listen("window","resize",d),c.listen("window","orientationchange",d)]}a.change().subscribe(function(){return a._viewportSize=null})})};h=Qh.prototype;h.ngOnDestroy=function(){var a;(a=this._listeners)==null||a.forEach(function(b){return b()});this._change.complete()};
h.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var a={width:this._viewportSize.width,height:this._viewportSize.height};this._platform.isBrowser||(this._viewportSize=null);return a};
h.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}};h.change=function(a){a=a===void 0?20:a;return a>0?this._change.pipe(ff(a)):this._change};h._getWindow=function(){return this._document.defaultView||window};
h._updateViewportSize=function(){var a=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:a.innerWidth,height:a.innerHeight}:{width:0,height:0}};Qh.\u0275fac=function(a){return new (a||Qh)};Qh.\u0275prov=Dc({token:Qh,factory:Qh.\u0275fac,providedIn:"root"});var PCc=new dd("VIRTUAL_SCROLLABLE"),zz=function(){wz.call(this)};Y(zz,wz);zz.\u0275fac=function(a){return new (a||zz)};zz.\u0275dir=af({type:zz,features:[Ef]});var QCc=["contentWrapper"],RCc=typeof requestAnimationFrame!=="undefined"?fzc:Dr,Az=function(){wz.call(this);var a=this;this.elementRef=p(Hd);this._changeDetectorRef=p(Cx);this._scrollStrategy=p(FCc,{optional:!0});this.scrollable=p(PCc,{optional:!0});this._platform=p(Vh);this._detachedSubject=new qf;this._renderedRangeSubject=new qf;this._orientation="vertical";this.appendOnly=!1;this.scrolledIndexChange=new Td(function(c){return a._scrollStrategy.scrolledIndexChange.subscribe(function(d){return Promise.resolve().then(function(){return a.ngZone.run(function(){return c.next(d)})})})});
this.renderedRangeStream=this._renderedRangeSubject;this._totalContentSize=0;this._totalContentWidth=ng.apply(null,[""].concat(q([])));this._totalContentHeight=ng.apply(null,[""].concat(q([])));this._renderedRange={start:0,end:0};this._renderedContentOffset=this._viewportSize=this._dataLength=0;this._renderedContentOffsetNeedsRewrite=!1;this._changeDetectionNeeded=ng.apply(null,[!1].concat(q([])));this._runAfterChangeDetection=[];this._viewportChanges=Pd.EMPTY;this._injector=p(ye);this._isDestroyed=
!1;this._viewportChanges=p(Qh).change().subscribe(function(){a._measureViewportSize();var c=a._scrollStrategy;c._updateTotalContentSize();c._updateRenderedRange()});this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this);var b=ef.apply(null,[function(){a._changeDetectionNeeded()&&a._doChangeDetection()}].concat(q([{injector:p(Wg).injector}])));p(Ce).onDestroy(function(){return void b.destroy()})};Y(Az,zz);Az.\u0275dir=zz.\u0275dir;h=Az.prototype;
h.ngOnInit=function(){var a=this;this._platform.isBrowser&&(this.scrollable===this&&zz.prototype.ngOnInit.call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){a._measureViewportSize();a._scrollStrategy.attach(a);a.scrollable._elementScrolled.pipe(xf(null),ff(0,RCc),zf(a._destroyed)).subscribe(function(){a._scrollStrategy._updateRenderedRange()});a._markChangeDetectionNeeded()})}))};
h.ngOnDestroy=function(){this.detach();this._scrollStrategy.detach();this._renderedRangeSubject.complete();this._detachedSubject.complete();this._viewportChanges.unsubscribe();this._isDestroyed=!0;zz.prototype.ngOnDestroy.call(this)};
h.attach=function(a){var b=this;this.ngZone.runOutsideAngular(function(){b._forOf=a;b._forOf.dataStream.pipe(zf(b._detachedSubject)).subscribe(function(c){c=c.length;c!==b._dataLength&&(b._dataLength=c,c=b._scrollStrategy,c._updateTotalContentSize(),c._updateRenderedRange());b._doChangeDetection()})})};h.detach=function(){this._forOf=null;this._detachedSubject.next()};h.getViewportSize=function(){return this._viewportSize};
var HCc=function(a,b){kra(a._renderedRange,b)||(a.appendOnly&&(b={start:0,end:Math.max(a._renderedRange.end,b.end)}),a._renderedRangeSubject.next(a._renderedRange=b),a._markChangeDetectionNeeded(function(){}))},ICc=function(a,b){var c=c===void 0?"to-start":c;b=a.appendOnly&&c==="to-start"?0:b;var d=a.dir&&a.dir.value=="rtl",e=a.orientation=="horizontal",f=e?"X":"Y";d="translate"+f+"("+Number((e&&d?-1:1)*b)+"px)";a._renderedContentOffset=b;c==="to-end"&&(d+=" translate"+f+"(-100%)",a._renderedContentOffsetNeedsRewrite=
!0);a._renderedContentTransform!=d&&(a._renderedContentTransform=d,a._markChangeDetectionNeeded(function(){if(a._renderedContentOffsetNeedsRewrite){var g=a._contentWrapper.nativeElement;a._renderedContentOffset-=a.orientation==="horizontal"?g.offsetWidth:g.offsetHeight;a._renderedContentOffsetNeedsRewrite=!1;ICc(a,a._renderedContentOffset)}}))};
Az.prototype.measureScrollOffset=function(a){var b=this;return Math.max(0,(this.scrollable==this?function(c){return zz.prototype.measureScrollOffset.call(b,c)}:function(c){return b.scrollable.measureScrollOffset(c)})(a!=null?a:this.orientation==="horizontal"?"start":"top")-SCc(this))};var SCc=function(a){var b=a.orientation==="horizontal"?"left":"top";var c=a.scrollable.elementRef.nativeElement.getBoundingClientRect()[b];return a.elementRef.nativeElement.getBoundingClientRect()[b]-c};
Az.prototype._measureViewportSize=function(){var a=this.scrollable.elementRef.nativeElement;this._viewportSize=this.orientation==="horizontal"?a.clientWidth:a.clientHeight};Az.prototype._markChangeDetectionNeeded=function(a){var b=this;a&&this._runAfterChangeDetection.push(a);Oc(this._changeDetectionNeeded)||this.ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){b.ngZone.run(function(){b._changeDetectionNeeded.set(!0)})})})};
Az.prototype._doChangeDetection=function(){var a=this;this._isDestroyed||this.ngZone.run(function(){a._changeDetectorRef.markForCheck();a._contentWrapper.nativeElement.style.transform=a._renderedContentTransform;Ee(function(){a._changeDetectionNeeded.set(!1);var b=a._runAfterChangeDetection;a._runAfterChangeDetection=[];b=m(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c()},{injector:a._injector})})};
Az.prototype._calculateSpacerSize=function(){this._totalContentHeight.set(this.orientation==="horizontal"?"":this._totalContentSize+"px");this._totalContentWidth.set(this.orientation==="horizontal"?this._totalContentSize+"px":"")};da.Object.defineProperties(Az.prototype,{orientation:{configurable:!0,enumerable:!0,get:function(){return this._orientation},set:function(a){this._orientation!==a&&(this._orientation=a,this._calculateSpacerSize())}}});Az.\u0275fac=function(a){return new (a||Az)};
Az.\u0275cmp=D({type:Az,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(a,b){a&1&&hg(QCc,7);if(a&2){var c;lg(c=mg())&&(b._contentWrapper=c.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(a,b){a&2&&wg("cdk-virtual-scroll-orientation-horizontal",b.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",b.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",$g]},outputs:{scrolledIndexChange:"scrolledIndexChange"},
features:[Gg([{provide:wz,useFactory:function(){return p(PCc,{optional:!0})||p(Az)}}]),Ef],ngContentSelectors:["*"],decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(a,b){a&1&&(bg(),Qf(0,"div",1,0),cg(2),Rf(),Sf(3,"div",2));a&2&&(B(3),vg("width",b._totalContentWidth())("height",b._totalContentHeight()))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}\n"],
encapsulation:2,changeDetection:0});var Bz=function(){var a=this;this._viewContainerRef=p(eg);this._template=p(dg);this._differs=p(Fx);this._viewRepeater=p(MCc);this._viewport=p(Az,{skipSelf:!0});this.viewChange=new qf;this._dataSourceChanges=new qf;this.dataStream=this._dataSourceChanges.pipe(xf(null),tf(),yf(function(c){var d=m(c);c=d.next().value;d=d.next().value;return a._changeDataSource(c,d)}),vf(1));this._differ=null;this._needsUpdate=!1;this._destroyed=new qf;var b=p(Rg);this.dataStream.subscribe(function(c){a._data=c;a._onRenderedDataChange()});
this._viewport.renderedRangeStream.pipe(zf(this._destroyed)).subscribe(function(c){a._renderedRange=c;a.viewChange.observers.length&&b.run(function(){return a.viewChange.next(a._renderedRange)});a._onRenderedDataChange()});this._viewport.attach(this)};h=Bz.prototype;h.ngDoCheck=function(){if(this._differ&&this._needsUpdate){var a=this._differ.diff(this._renderedItems);a?this._applyChanges(a):this._updateContext();this._needsUpdate=!1}};
h.ngOnDestroy=function(){this._viewport.detach();this._dataSourceChanges.next(void 0);this._dataSourceChanges.complete();this.viewChange.complete();this._destroyed.next();this._destroyed.complete();this._viewRepeater.detach()};
h._onRenderedDataChange=function(){var a=this;this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(function(b,c){return a.cdkVirtualForTrackBy?a.cdkVirtualForTrackBy(b,c):c})),this._needsUpdate=!0)};h._changeDataSource=function(a,b){a&&a.disconnect(this);this._needsUpdate=!0;return b?b.connect(this):ce()};
h._updateContext=function(){for(var a=this._data.length,b=this._viewContainerRef.length;b--;){var c=this._viewContainerRef.get(b);c.context.index=this._renderedRange.start+b;c.context.count=a;this._updateComputedContextProperties(c.context);c.detectChanges()}};
h._applyChanges=function(a){var b=this;this._viewRepeater.applyChanges(a,this._viewContainerRef,function(e,f,g){return b._getEmbeddedViewArgs(e,g)},function(e){return e.item});eAc(a,function(e){b._viewContainerRef.get(e.currentIndex).context.$implicit=e.item});a=this._data.length;for(var c=this._viewContainerRef.length;c--;){var d=this._viewContainerRef.get(c);d.context.index=this._renderedRange.start+c;d.context.count=a;this._updateComputedContextProperties(d.context)}};
h._updateComputedContextProperties=function(a){a.first=a.index===0;a.last=a.index===a.count-1;a.even=a.index%2===0;a.odd=!a.even};h._getEmbeddedViewArgs=function(a,b){return{templateRef:this._template,context:{$implicit:a.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:b}};
da.Object.defineProperties(Bz.prototype,{cdkVirtualForOf:{configurable:!0,enumerable:!0,get:function(){return this._cdkVirtualForOf},set:function(a){this._cdkVirtualForOf=a;jra(a)?this._dataSourceChanges.next(a):this._dataSourceChanges.next(new LCc(we(a)?a:Array.from(a||[])))}},cdkVirtualForTrackBy:{configurable:!0,enumerable:!0,get:function(){return this._cdkVirtualForTrackBy},set:function(a){var b=this;this._needsUpdate=!0;this._cdkVirtualForTrackBy=a?function(c,d){return a(c+(b._renderedRange?
b._renderedRange.start:0),d)}:void 0}},cdkVirtualForTemplate:{configurable:!0,enumerable:!0,set:function(a){a&&(this._needsUpdate=!0,this._template=a)}},cdkVirtualForTemplateCacheSize:{configurable:!0,enumerable:!0,get:function(){return this._viewRepeater.viewCacheSize},set:function(a){this._viewRepeater.viewCacheSize=Oh(a)}}});Bz.\u0275fac=function(a){return new (a||Bz)};
Bz.\u0275dir=af({type:Bz,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[Gg([{provide:MCc,useClass:OCc}])]});var Cz=function(){};Cz.\u0275fac=function(a){return new (a||Cz)};Cz.\u0275mod=$e({type:Cz});Cz.\u0275inj=Fc({});var Dz=function(){};Dz.\u0275fac=function(a){return new (a||Dz)};Dz.\u0275mod=$e({type:Dz});Dz.\u0275inj=Fc({imports:[Ky,Cz,Ky,Cz]});var TCc=Sqa(),lra=function(a,b){this._viewportRuler=a;this._previousHTMLStyles={top:"",left:""};this._isEnabled=!1;this._document=b};lra.prototype.attach=function(){};
lra.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=Mh(-this._previousScrollPosition.left);a.style.top=Mh(-this._previousScrollPosition.top);a.classList.add("cdk-global-scrollblock");this._isEnabled=!0}};
lra.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");TCc&&(b.scrollBehavior=c.scrollBehavior="auto");window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top);TCc&&(b.scrollBehavior=d,c.scrollBehavior=e)}};
lra.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var a=this._document.documentElement,b=this._viewportRuler.getViewportSize();return a.scrollHeight>b.height||a.scrollWidth>b.width};var UCc=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()})}};UCc.prototype.attach=function(a){this._overlayRef=a};
UCc.prototype.enable=function(){var a=this;if(!this._scrollSubscription){var b=this._scrollDispatcher.scrolled(0).pipe(ue(function(c){return!c||!a._overlayRef.overlayElement.contains(c.elementRef.nativeElement)}));this._config&&this._config.threshold&&this._config.threshold>1?(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)}};UCc.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};UCc.prototype.detach=function(){this.disable();this._overlayRef=null};var VCc=function(){};VCc.prototype.enable=function(){};VCc.prototype.disable=function(){};VCc.prototype.attach=function(){};var pra=function(a,b,c,d){this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this._config=d;this._scrollSubscription=null};pra.prototype.attach=function(a){this._overlayRef=a};
pra.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;nra(b,[{width:d,height:c,bottom:c,right:d,top:0,left:0}])&&(a.disable(),a._ngZone.run(function(){return a._overlayRef.detach()}))}}))};
pra.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};pra.prototype.detach=function(){this.disable();this._overlayRef=null};var Ez=function(){var a=this;this._injector=p(ye);this.noop=function(){return new VCc};this.close=function(b){var c=a._injector;return new UCc(c.get(Sh),c.get(Rg),c.get(Qh),b)};this.block=function(){return mra(a._injector)};this.reposition=function(b){return Th(a._injector,b)}};Ez.\u0275fac=function(a){return new (a||Ez)};Ez.\u0275prov=Dc({token:Ez,factory:Ez.\u0275fac,providedIn:"root"});var di=function(a){this.scrollStrategy=new VCc;this.panelClass="";this.hasBackdrop=!1;this.backdropClass="cdk-overlay-dark-backdrop";this.usePopover=this.disposeOnNavigation=!1;if(a){var b=Object.keys(a);b=m(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c]!==void 0&&(this[c]=a[c])}};var WCc=function(a,b,c,d){var e=this;this._renderer=b;this._ngZone=c;this.dispose=function(){clearTimeout(e._fallbackTimeout);var f;(f=e._cleanupClick)==null||f.call(e);var g;(g=e._cleanupTransitionEnd)==null||g.call(e);e._cleanupClick=e._cleanupTransitionEnd=e._fallbackTimeout=void 0;e.element.remove()};this.element=a.createElement("div");this.element.classList.add("cdk-overlay-backdrop");this._cleanupClick=b.listen(this.element,"click",d)};
WCc.prototype.detach=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a.element;clearTimeout(a._fallbackTimeout);var c;(c=a._cleanupTransitionEnd)==null||c.call(a);a._cleanupTransitionEnd=a._renderer.listen(b,"transitionend",a.dispose);a._fallbackTimeout=setTimeout(a.dispose,500);b.style.pointerEvents="none";b.classList.remove("cdk-overlay-backdrop-showing")})};var ei=function(a,b,c,d,e,f,g,k,l,r,w,x){r=r===void 0?!1:r;this._portalOutlet=a;this._host=b;this._pane=c;this._config=d;this._ngZone=e;this._keyboardDispatcher=f;this._document=g;this._location=k;this._outsideClickDispatcher=l;this._animationsDisabled=r;this._injector=w;this._renderer=x;this._backdropClick=new qf;this._attachments=new qf;this._detachments=new qf;this._locationChanges=Pd.EMPTY;this._backdropRef=null;this._keydownEvents=new qf;this._outsidePointerEvents=new qf;d.scrollStrategy&&(this._scrollStrategy=
d.scrollStrategy,this._scrollStrategy.attach(this));this._positionStrategy=d.positionStrategy};h=ei.prototype;
h.attach=function(a){var b=this;this._attachHost();a=this._portalOutlet.attach(a);var c;(c=this._positionStrategy)==null||c.attach(this);this._updateStackingOrder();this._updateElementSize();this._updateElementDirection();this._scrollStrategy&&this._scrollStrategy.enable();var d;(d=this._afterNextRenderRef)==null||d.destroy();this._afterNextRenderRef=Ee(function(){b.hasAttached()&&b.updatePosition()},{injector:this._injector});this._togglePointerEvents(!0);this._config.hasBackdrop&&this._attachBackdrop();
this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0);this._attachments.next();this._completeDetachContent();this._keyboardDispatcher.add(this);this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return b.dispose()}));this._outsideClickDispatcher.add(this);if(typeof(a==null?void 0:a.onDestroy)==="function")a.onDestroy(function(){b.hasAttached()&&b._ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){return b.detach()})})});
return a};h.detach=function(){if(this.hasAttached()){XCc(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._completeDetachContent();this._keyboardDispatcher.remove(this);this._detachContentWhenEmpty();this._locationChanges.unsubscribe();this._outsideClickDispatcher.remove(this);return a}};
h.dispose=function(){var a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose();this._disposeScrollStrategy();var b;(b=this._backdropRef)==null||b.dispose();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 c;(c=this._host)==null||c.remove();var d;(d=
this._afterNextRenderRef)==null||d.destroy();this._previousHostParent=this._pane=this._host=this._backdropRef=null;a&&this._detachments.next();this._detachments.complete();this._completeDetachContent()};h.hasAttached=function(){return this._portalOutlet.hasAttached()};h.backdropClick=function(){return this._backdropClick};h.attachments=function(){return this._attachments};h.keydownEvents=function(){return this._keydownEvents};h.outsidePointerEvents=function(){return this._outsidePointerEvents};
h.getConfig=function(){return this._config};h.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()};var YCc=function(a,b){b!==a._positionStrategy&&(a._positionStrategy&&a._positionStrategy.dispose(),a._positionStrategy=b,a.hasAttached()&&(b.attach(a),a.updatePosition()))};ei.prototype.updateSize=function(a){this._config=Object.assign({},this._config,a);this._updateElementSize()};
ei.prototype.setDirection=function(a){this._config=Object.assign({},this._config,{direction:a});this._updateElementDirection()};ei.prototype.addPanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!0)};ei.prototype.removePanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!1)};var ZCc=function(a){return(a=a._config.direction)?typeof a==="string"?a:a.value:"ltr"};h=ei.prototype;h._updateElementDirection=function(){this._host.setAttribute("dir",ZCc(this))};
h._updateElementSize=function(){if(this._pane){var a=this._pane.style;a.width=Mh(this._config.width);a.height=Mh(this._config.height);a.minWidth=Mh(this._config.minWidth);a.minHeight=Mh(this._config.minHeight);a.maxWidth=Mh(this._config.maxWidth);a.maxHeight=Mh(this._config.maxHeight)}};h._togglePointerEvents=function(a){this._pane.style.pointerEvents=a?"":"none"};
h._attachHost=function(){if(!this._host.parentElement){var a;if(this._config.usePopover&&((a=this._positionStrategy)==null?0:a.getPopoverInsertionPoint))this._positionStrategy.getPopoverInsertionPoint().after(this._host);else{var b;(b=this._previousHostParent)==null||b.appendChild(this._host)}}this._config.usePopover&&this._host.showPopover()};
h._attachBackdrop=function(){var a=this,b;(b=this._backdropRef)==null||b.dispose();this._backdropRef=new WCc(this._document,this._renderer,this._ngZone,function(c){a._backdropClick.next(c)});this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation");this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0);this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,
this._host);this._animationsDisabled||typeof requestAnimationFrame==="undefined"?this._backdropRef.element.classList.add("cdk-overlay-backdrop-showing"):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){var c;return(c=a._backdropRef)==null?void 0:c.element.classList.add("cdk-overlay-backdrop-showing")})})};h._updateStackingOrder=function(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)};
var XCc=function(a){if(a._animationsDisabled){var b;(b=a._backdropRef)==null||b.dispose();a._backdropRef=null}else{var c;(c=a._backdropRef)==null||c.detach()}};h=ei.prototype;h._toggleClasses=function(a,b,c){b=Kh(b||[]).filter(function(d){return!!d});b.length&&(c?a.classList.add.apply(a.classList,q(b)):a.classList.remove.apply(a.classList,q(b)))};
h._detachContentWhenEmpty=function(){var a=this,b=!1;try{this._detachContentAfterRenderRef=Ee(function(){b=!0;a._detachContent()},{injector:this._injector})}catch(c){if(b)throw c;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||(this._detachContentMutationObserver=new globalThis.MutationObserver(function(){a._detachContent()})),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))};
h._detachContent=function(){this._pane&&this._host&&this._pane.children.length!==0||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())};
h._completeDetachContent=function(){var a;(a=this._detachContentAfterRenderRef)==null||a.destroy();this._detachContentAfterRenderRef=void 0;var b;(b=this._detachContentMutationObserver)==null||b.disconnect()};h._disposeScrollStrategy=function(){var a=this._scrollStrategy;a==null||a.disable();var b;a==null||(b=a.detach)==null||b.call(a)};
da.Object.defineProperties(ei.prototype,{overlayElement:{configurable:!0,enumerable:!0,get:function(){return this._pane}},hostElement:{configurable:!0,enumerable:!0,get:function(){return this._host}}});var $Cc=function(a,b){this.connectionPair=a;this.scrollableViewProperties=b};var qra=/([A-Za-z%]+)$/,Uh=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 qf;this._resizeSubscription=Pd.EMPTY;this._offsetY=this._offsetX=0;this._appliedPanelClasses=[];this.positionChanges=
this._positionChanges;this.setOrigin(a)};Uh.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()})};
Uh.prototype.apply=function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)aDc(this);else{this._clearPanelClasses();this._resetOverlayElementStyles();this._resetBoundingBoxStyles();this._viewportRect=this._getNarrowedViewportRect();this._originRect=this._getOriginRect();this._overlayRect=this._pane.getBoundingClientRect();this._containerRect=tra(this._overlayContainer).getBoundingClientRect();for(var a=this._originRect,b=this._overlayRect,
c=this._viewportRect,d=this._containerRect,e=[],f,g=m(this._preferredPositions),k=g.next();!k.done;k=g.next()){k=k.value;var l=this._getOriginPoint(a,d,k),r=this._getOverlayPoint(l,b,k),w=this._getOverlayFit(r,b,c,k);if(w.isCompletelyWithinViewport){this._isPushed=!1;this._applyPosition(k,l);return}if(this._canFitWithFlexibleDimensions(w,r,c))e.push({position:k,origin:l,overlayRect:b,boundingBoxRect:this._calculateBoundingBoxRect(l,k)});else if(!f||f.overlayFit.visibleArea<w.visibleArea)f={overlayFit:w,
overlayPoint:r,originPoint:l,position:k,overlayRect:b}}if(e.length){a=null;b=-1;e=m(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)}};Uh.prototype.detach=function(){this._clearPanelClasses();this._previousPushAmount=this._lastPosition=null;this._resizeSubscription.unsubscribe()};
Uh.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&Yh(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 aDc=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=tra(a._overlayContainer).getBoundingClientRect();var c=a._getOriginPoint(a._originRect,a._containerRect,b);a._applyPosition(b,c)}else a.apply()}},bDc=function(a,b){a._scrollables=b;return a},Fz=function(a,b){a._preferredPositions=b;b.indexOf(a._lastPosition)===-1&&(a._lastPosition=
null);return a},Gz=function(a,b){a._viewportMargin=b;return a},Hz=function(a,b){a._hasFlexibleDimensions=b===void 0?!0:b;return a},cDc=function(a,b){a._growAfterOpen=b===void 0?!0:b;return a},dDc=function(a,b){a._canPush=b===void 0?!0:b;return a},eDc=function(a,b){a._positionLocked=b===void 0?!0:b;return a};Uh.prototype.setOrigin=function(a){this._origin=a;return this};var fDc=function(a,b){a._transformOriginSelector=b;return a};h=Uh.prototype;
h.getPopoverInsertionPoint=function(){var a=this._origin;return a instanceof Hd?a.nativeElement:a instanceof Element?a:document.body.lastChild};h._getOriginPoint=function(a,b,c){if(c.originX=="center")var d=a.left+a.width/2;else{d=this._isRtl()?a.right:a.left;var e=this._isRtl()?a.left:a.right;d=c.originX=="start"?d:e}b.left<0&&(d-=b.left);a=c.originY=="center"?a.top+a.height/2:c.originY=="top"?a.top:a.bottom;b.top<0&&(a-=b.top);return{x:d,y:a}};
h._getOverlayPoint=function(a,b,c){var d=c.overlayX=="center"?-b.width/2:c.overlayX==="start"?this._isRtl()?-b.width:0:this._isRtl()?0:-b.width;return{x:a.x+d,y:a.y+(c.overlayY=="center"?-b.height/2:c.overlayY=="top"?0:-b.height)}};
h._getOverlayFit=function(a,b,c,d){b=sra(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}};
h._canFitWithFlexibleDimensions=function(a,b,c){if(this._hasFlexibleDimensions){var d=c.bottom-b.y;c=c.right-b.x;b=rra(this._overlayRef.getConfig().minHeight);var e=rra(this._overlayRef.getConfig().minWidth);c=a.fitsInViewportHorizontally||e!=null&&e<=c;return(a.fitsInViewportVertically||b!=null&&b<=d)&&c}return!1};
h._pushOverlayOnScreen=function(a,b,c){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};b=sra(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),g=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._getViewportMarginStart()?d.left-c.left-a.x:0;c=b.height<=d.height?g||-f:a.y<this._getViewportMarginTop()?d.top-c.top-a.y:0;this._previousPushAmount=
{x:e,y:c};return{x:a.x+e,y:a.y+c}};
h._applyPosition=function(a,b){this._setTransformOrigin(a);this._setOverlayElementStyles(b,a);this._setBoundingBoxStyles(b,a);a.panelClass&&this._addPanelClasses(a.panelClass);if(this._positionChanges.observers.length){b=this._getScrollVisibility();var c;if(c=a===this._lastPosition&&this._lastScrollVisibility)c=this._lastScrollVisibility,c=c===b?!0:c.isOriginClipped===b.isOriginClipped&&c.isOriginOutsideView===b.isOriginOutsideView&&c.isOverlayClipped===b.isOverlayClipped&&c.isOverlayOutsideView===
b.isOverlayOutsideView;c||this._positionChanges.next(new $Cc(a,b));this._lastScrollVisibility=b}this._lastPosition=a;this._isInitialRender=!1};h._setTransformOrigin=function(a){if(this._transformOriginSelector){var b=this._boundingBox.querySelectorAll(this._transformOriginSelector),c=a.overlayY;a=a.overlayX==="center"?"center":this._isRtl()?a.overlayX==="start"?"right":"left":a.overlayX==="start"?"left":"right";for(var d=0;d<b.length;d++)b[d].style.transformOrigin=a+" "+c}};
h._calculateBoundingBoxRect=function(a,b){var c=this._viewportRect,d=this._isRtl();if(b.overlayY==="top"){var e=a.y;var f=c.height-e+this._getViewportMarginBottom()}else if(b.overlayY==="bottom"){var g=c.height-a.y+this._getViewportMarginTop()+this._getViewportMarginBottom();f=c.height-g+this._getViewportMarginTop()}else{e=Math.min(c.bottom-a.y+c.top,a.y);var k=this._lastBoundingBoxSize.height;f=e*2;e=a.y-e;f>k&&!this._isInitialRender&&!this._growAfterOpen&&(e=a.y-k/2)}k=b.overlayX==="start"&&!d||
b.overlayX==="end"&&d;if(b.overlayX==="end"&&!d||b.overlayX==="start"&&d){var l=c.width-a.x+this._getViewportMarginStart()+this._getViewportMarginEnd();b=a.x-this._getViewportMarginStart()}else if(k){var r=a.x;b=c.right-a.x-this._getViewportMarginEnd()}else r=Math.min(c.right-a.x+c.left,a.x),c=this._lastBoundingBoxSize.width,b=r*2,r=a.x-r,b>c&&!this._isInitialRender&&!this._growAfterOpen&&(r=a.x-c/2);return{top:e,left:r,bottom:g,right:l,width:b,height:f}};
h._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=Mh(a.height);c.top=Mh(a.top);c.bottom=Mh(a.bottom);
c.width=Mh(a.width);c.left=Mh(a.left);c.right=Mh(a.right);c.alignItems=b.overlayX==="center"?"center":b.overlayX==="end"?"flex-end":"flex-start";c.justifyContent=b.overlayY==="center"?"center":b.overlayY==="bottom"?"flex-end":"flex-start";d&&(c.maxHeight=Mh(d));e&&(c.maxWidth=Mh(e))}this._lastBoundingBoxSize=a;Yh(this._boundingBox.style,c)};h._resetBoundingBoxStyles=function(){Yh(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})};
h._resetOverlayElementStyles=function(){Yh(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})};
h._setOverlayElementStyles=function(a,b){var c={},d=this._hasExactPosition(),e=this._hasFlexibleDimensions,f=this._overlayRef.getConfig();if(d){var g=this._viewportRuler.getViewportScrollPosition();Yh(c,this._getExactOverlayY(b,a,g));Yh(c,this._getExactOverlayX(b,a,g))}else c.position="static";a="";g=this._getOffset(b,"x");b=this._getOffset(b,"y");g&&(a+="translateX("+g+"px) ");b&&(a+="translateY("+b+"px)");c.transform=a.trim();f.maxHeight&&(d?c.maxHeight=Mh(f.maxHeight):e&&(c.maxHeight=""));f.maxWidth&&
(d?c.maxWidth=Mh(f.maxWidth):e&&(c.maxWidth=""));Yh(this._pane.style,c)};h._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));a.overlayY==="bottom"?d.bottom=this._document.documentElement.clientHeight-(b.y+this._overlayRect.height)+"px":d.top=Mh(b.y);return d};
h._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));(this._isRtl()?a.overlayX==="end"?"left":"right":a.overlayX==="end"?"right":"left")==="right"?d.right=this._document.documentElement.clientWidth-(b.x+this._overlayRect.width)+"px":d.left=Mh(b.x);return d};
h._getScrollVisibility=function(){var a=this._getOriginRect(),b=this._pane.getBoundingClientRect(),c=this._scrollables.map(function(d){return d.elementRef.nativeElement.getBoundingClientRect()});return{isOriginClipped:ora(a,c),isOriginOutsideView:nra(a,c),isOverlayClipped:ora(b,c),isOverlayOutsideView:nra(b,c)}};h._subtractOverflows=function(a){return $c.apply(1,arguments).reduce(function(b,c){return b-Math.max(c,0)},a)};
h._getNarrowedViewportRect=function(){var a=this._document.documentElement.clientWidth,b=this._document.documentElement.clientHeight,c=this._viewportRuler.getViewportScrollPosition();return{top:c.top+this._getViewportMarginTop(),left:c.left+this._getViewportMarginStart(),right:c.left+a-this._getViewportMarginEnd(),bottom:c.top+b-this._getViewportMarginBottom(),width:a-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:b-this._getViewportMarginTop()-this._getViewportMarginBottom()}};
h._isRtl=function(){return ZCc(this._overlayRef)==="rtl"};h._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed};h._getOffset=function(a,b){return b==="x"?a.offsetX==null?this._offsetX:a.offsetX:a.offsetY==null?this._offsetY:a.offsetY};h._validatePositions=function(){};h._addPanelClasses=function(a){var b=this;this._pane&&Kh(a).forEach(function(c){c!==""&&b._appliedPanelClasses.indexOf(c)===-1&&(b._appliedPanelClasses.push(c),b._pane.classList.add(c))})};
h._clearPanelClasses=function(){var a=this;this._pane&&(this._appliedPanelClasses.forEach(function(b){a._pane.classList.remove(b)}),this._appliedPanelClasses=[])};h._getViewportMarginStart=function(){if(typeof this._viewportMargin==="number")return this._viewportMargin;var a,b;return(b=(a=this._viewportMargin)==null?void 0:a.start)!=null?b:0};
h._getViewportMarginEnd=function(){if(typeof this._viewportMargin==="number")return this._viewportMargin;var a,b;return(b=(a=this._viewportMargin)==null?void 0:a.end)!=null?b:0};h._getViewportMarginTop=function(){if(typeof this._viewportMargin==="number")return this._viewportMargin;var a,b;return(b=(a=this._viewportMargin)==null?void 0:a.top)!=null?b:0};
h._getViewportMarginBottom=function(){if(typeof this._viewportMargin==="number")return this._viewportMargin;var a,b;return(b=(a=this._viewportMargin)==null?void 0:a.bottom)!=null?b:0};h._getOriginRect=function(){var a=this._origin;if(a instanceof Hd)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}};
da.Object.defineProperties(Uh.prototype,{positions:{configurable:!0,enumerable:!0,get:function(){return this._preferredPositions}}});var Iz=function(a){this._cssPosition="static";this._height=this._width=this._xOffset=this._xPosition=this._alignItems=this._bottomOffset=this._topOffset="";this._isDisposed=!1;this._document=(a==null?void 0:a.get(Rh))||document};h=Iz.prototype;h.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};
h.top=function(a){this._bottomOffset="";this._topOffset=a===void 0?"":a;this._alignItems="flex-start";return this};h.left=function(a){this._xOffset=a===void 0?"":a;this._xPosition="left";return this};h.bottom=function(a){this._topOffset="";this._bottomOffset=a===void 0?"":a;this._alignItems="flex-end";return this};h.right=function(a){this._xOffset=a===void 0?"":a;this._xPosition="right";return this};h.start=function(a){this._xOffset=a===void 0?"":a;this._xPosition="start";return this};
h.end=function(a){this._xOffset=a===void 0?"":a;this._xPosition="end";return this};h.width=function(a){a=a===void 0?"":a;this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a;return this};h.height=function(a){a=a===void 0?"":a;this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a;return this};var Jz=function(a){a.left("");a._xPosition="center";return a},gDc=function(a){a.top("");a._alignItems="center";return a};
Iz.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=(d==="100%"||d==="100vw")&&(!f||f==="100%"||f==="100vw");e=(e==="100%"||e==="100vh")&&(!c||c==="100%"||c==="100vh");f=this._xPosition;c=this._xOffset;var g=this._overlayRef.getConfig().direction==="rtl",k="",l="",r="";if(d)r="flex-start";else if(f==="center")r=
"center",g?l=c:k=c;else if(g)if(f==="left"||f==="end")r="flex-end",k=c;else{if(f==="right"||f==="start")r="flex-start",l=c}else if(f==="left"||f==="start")r="flex-start",k=c;else if(f==="right"||f==="end")r="flex-end",l=c;a.position=this._cssPosition;a.marginLeft=d?"0":k;a.marginTop=e?"0":this._topOffset;a.marginBottom=this._bottomOffset;a.marginRight=d?"0":l;b.justifyContent=r;b.alignItems=e?"flex-start":this._alignItems}};
Iz.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}};Iz.prototype.getPopoverInsertionPoint=function(){return this._document.body.lastChild};var Kz=function(){this._injector=p(ye)};Kz.prototype.global=function(){return new Iz(this._injector)};var Lz=function(a,b){return Xh(a._injector,b)};Kz.\u0275fac=function(a){return new (a||Kz)};Kz.\u0275prov=Dc({token:Kz,factory:Kz.\u0275fac,providedIn:"root"});var Mz=function(){};Mz.prototype.attach=function(a){this._attachedHost=a;return a.attach(this)};Mz.prototype.detach=function(){var a=this._attachedHost;a!=null&&(this._attachedHost=null,a.detach())};da.Object.defineProperties(Mz.prototype,{isAttached:{configurable:!0,enumerable:!0,get:function(){return this._attachedHost!=null}}});var Nz=function(a,b,c,d){this.component=a;this.viewContainerRef=b;this.injector=c;this.projectableNodes=d};Y(Nz,Mz);
var Oz=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.context=c;this.injector=d};Y(Oz,Mz);Oz.prototype.attach=function(a,b){this.context=b=b===void 0?this.context:b;return Mz.prototype.attach.call(this,a)};Oz.prototype.detach=function(){this.context=void 0;return Mz.prototype.detach.call(this)};da.Object.defineProperties(Oz.prototype,{origin:{configurable:!0,enumerable:!0,get:function(){return this.templateRef.elementRef}}});var Pz=function(){this._isDisposed=!1};h=Pz.prototype;
h.hasAttached=function(){return!!this._attachedPortal};h.attach=function(a){if(a instanceof Nz)return this._attachedPortal=a,this.attachComponentPortal(a);if(a instanceof Oz)return this._attachedPortal=a,this.attachTemplatePortal(a)};h.detach=function(){this._attachedPortal&&(this._attachedPortal=this._attachedPortal._attachedHost=null);this._invokeDisposeFn()};h.dispose=function(){this.hasAttached()&&this.detach();this._invokeDisposeFn();this._isDisposed=!0};
h.setDisposeFn=function(a){this._disposeFn=a};h._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)};var fi=function(a,b,c){this._isDisposed=!1;this.outletElement=a;this._appRef=b;this._defaultInjector=c};Y(fi,Pz);
fi.prototype.attachComponentPortal=function(a){if(a.viewContainerRef){var b=a.injector||a.viewContainerRef.injector,c=b.get(lx,null,{optional:!0})||void 0;var d=a.viewContainerRef.createComponent(a.component,{index:a.viewContainerRef.length,injector:b,ngModuleRef:c,projectableNodes:a.projectableNodes||void 0});this.setDisposeFn(function(){return d.destroy()})}else{var e=this._appRef;b=a.injector||this._defaultInjector||Hyc;c=b.get(Xe,e.injector);d=Zoa(a.component,{elementInjector:b,environmentInjector:c,
projectableNodes:a.projectableNodes||void 0});Szc(e,d.hostView);this.setDisposeFn(function(){e.viewCount>0&&e.detachView(d.hostView);d.destroy()})}this.outletElement.appendChild(this._getComponentRootNode(d));this._attachedPortal=a;return d};
fi.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);e!==-1&&c.remove(e)});this._attachedPortal=a;return d};fi.prototype.dispose=function(){Pz.prototype.dispose.call(this);this.outletElement.remove()};fi.prototype._getComponentRootNode=function(a){return a.hostView.rootNodes[0]};var Qz=function(){var a=p(dg),b=p(eg);Oz.call(this,a,b)};Y(Qz,Oz);Qz.\u0275fac=function(a){return new (a||Qz)};Qz.\u0275dir=af({type:Qz,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Ef]});var Rz=function(){this._isDisposed=!1;this._moduleRef=p(lx,{optional:!0});this._document=p(Rh);this._viewContainerRef=p(eg);this._isInitialized=!1;this.attached=new Ti};Y(Rz,Pz);h=Rz.prototype;h.ngOnInit=function(){this._isInitialized=!0};
h.ngOnDestroy=function(){Pz.prototype.dispose.call(this);this._attachedRef=this._attachedPortal=null};
h.attachComponentPortal=function(a){a._attachedHost=this;var b=a.viewContainerRef!=null?a.viewContainerRef:this._viewContainerRef,c=b.createComponent(a.component,{index:b.length,injector:a.injector||b.injector,projectableNodes:a.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});b!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]);Pz.prototype.setDisposeFn.call(this,function(){return c.destroy()});this._attachedPortal=a;this._attachedRef=c;this.attached.emit(c);
return c};h.attachTemplatePortal=function(a){var b=this;a._attachedHost=this;var c=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});Pz.prototype.setDisposeFn.call(this,function(){return b._viewContainerRef.clear()});this._attachedPortal=a;this._attachedRef=c;this.attached.emit(c);return c};h._getRootNode=function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode};
da.Object.defineProperties(Rz.prototype,{portal:{configurable:!0,enumerable:!0,get:function(){return this._attachedPortal},set:function(a){if(!this.hasAttached()||a||this._isInitialized)this.hasAttached()&&Pz.prototype.detach.call(this),a&&Pz.prototype.attach.call(this,a),this._attachedPortal=a||null}}});Rz.\u0275fac=function(a){return new (a||Rz)};
Rz.\u0275dir=af({type:Rz,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Ef]});var Sz=function(){};Sz.\u0275fac=function(a){return new (a||Sz)};Sz.\u0275mod=$e({type:Sz});Sz.\u0275inj=Fc({});var Tz=function(){this.scrollStrategies=p(Ez);this._positionBuilder=p(Kz);this._injector=p(ye)};Tz.prototype.create=function(a){return ki(this._injector,a)};Tz.prototype.position=function(){return this._positionBuilder};Tz.\u0275fac=function(a){return new (a||Tz)};Tz.\u0275prov=Dc({token:Tz,factory:Tz.\u0275fac,providedIn:"root"});var hDc=[{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"}],iDc=new dd("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:function(){var a=p(ye);return function(){return Th(a)}}}),Uz=function(){this.elementRef=p(Hd)};Uz.\u0275fac=function(a){return new (a||Uz)};
Uz.\u0275dir=af({type:Uz,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});
var jDc=new dd("cdk-connected-overlay-default-config"),Vz=function(){this._dir=p(bi,{optional:!0});this._injector=p(ye);this._positionSubscription=this._detachSubscription=this._attachSubscription=this._backdropSubscription=Pd.EMPTY;this._scrollStrategyFactory=p(iDc);this._ngZone=p(Rg);this.viewportMargin=0;this.matchWidth=this.usePopover=this.disposeOnNavigation=this.push=this.growAfterOpen=this.flexibleDimensions=this.lockPosition=this.hasBackdrop=this.disableClose=this.open=!1;this.backdropClick=
new Ti;this.positionChange=new Ti;this.attach=new Ti;this.detach=new Ti;this.overlayKeydown=new Ti;this.overlayOutsideClick=new Ti;var a=p(dg),b=p(eg),c=p(jDc,{optional:!0});this._templatePortal=new Oz(a,b);this.scrollStrategy=this._scrollStrategyFactory();c&&this._assignConfig(c)};h=Vz.prototype;
h.ngOnDestroy=function(){this._attachSubscription.unsubscribe();this._detachSubscription.unsubscribe();this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe();var a;(a=this._overlayRef)==null||a.dispose()};
h.ngOnChanges=function(a){if(this._position){this._updatePositionStrategy(this._position);var b;(b=this._overlayRef)==null||b.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight});a.origin&&this.open&&this._position.apply()}a.open&&(this.open?kDc(this):lDc(this))};
h._createOverlay=function(){var a=this;this.positions&&this.positions.length||(this.positions=hDc);var b=this._overlayRef=ki(this._injector,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);c.keyCode!==27||a.disableClose||Gh(c)||(c.preventDefault(),lDc(a))});this._overlayRef.outsidePointerEvents().subscribe(function(c){var d=
a._getOriginElement(),e=Jh(c);d&&(d===e||d.contains(e))||a.overlayOutsideClick.next(c)})};
h._buildConfig=function(){var a=this._position=this.positionStrategy||this._createPositionStrategy();a=new di({direction:this._dir||"ltr",positionStrategy:a,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:this.usePopover});if(this.height||this.height===0)a.height=this.height;if(this.minWidth||this.minWidth===0)a.minWidth=this.minWidth;if(this.minHeight||this.minHeight===0)a.minHeight=this.minHeight;this.backdropClass&&(a.backdropClass=
this.backdropClass);this.panelClass&&(a.panelClass=this.panelClass);return a};h._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 fDc(eDc(Gz(cDc(dDc(Hz(Fz(a.setOrigin(this._getOrigin()),c),this.flexibleDimensions),this.push),this.growAfterOpen),this.viewportMargin),this.lockPosition),this.transformOriginSelector)};
h._createPositionStrategy=function(){var a=Xh(this._injector,this._getOrigin());this._updatePositionStrategy(a);return a};h._getOrigin=function(){return this.origin instanceof Uz?this.origin.elementRef:this.origin};h._getOriginElement=function(){return this.origin instanceof Uz?this.origin.elementRef.nativeElement:this.origin instanceof Hd?this.origin.nativeElement:typeof Element!=="undefined"&&this.origin instanceof Element?this.origin:null};
h._getWidth=function(){if(this.width)return this.width;var a,b;return this.matchWidth?(a=this._getOriginElement())==null?void 0:(b=a.getBoundingClientRect)==null?void 0:b.call(a).width:void 0};
var kDc=function(a){a._overlayRef||a._createOverlay();var b=a._overlayRef;b.getConfig().hasBackdrop=a.hasBackdrop;b.updateSize({width:a._getWidth()});b.hasAttached()||b.attach(a._templatePortal);a.hasBackdrop?a._backdropSubscription=b.backdropClick().subscribe(function(c){return a.backdropClick.emit(c)}):a._backdropSubscription.unsubscribe();a._positionSubscription.unsubscribe();a.positionChange.observers.length>0&&(a._positionSubscription=a._position.positionChanges.pipe(Bla(function(){return a.positionChange.observers.length>
0})).subscribe(function(c){a._ngZone.run(function(){return a.positionChange.emit(c)});a.positionChange.observers.length===0&&a._positionSubscription.unsubscribe()}));a.open=!0},lDc=function(a){var b;(b=a._overlayRef)==null||b.detach();a._backdropSubscription.unsubscribe();a._positionSubscription.unsubscribe();a.open=!1};
Vz.prototype._assignConfig=function(a){var b;this.origin=(b=a.origin)!=null?b:this.origin;var c;this.positions=(c=a.positions)!=null?c:this.positions;var d;this.positionStrategy=(d=a.positionStrategy)!=null?d:this.positionStrategy;var e;this.offsetX=(e=a.offsetX)!=null?e:this.offsetX;var f;this.offsetY=(f=a.offsetY)!=null?f:this.offsetY;var g;this.width=(g=a.width)!=null?g:this.width;var k;this.height=(k=a.height)!=null?k:this.height;var l;this.minWidth=(l=a.minWidth)!=null?l:this.minWidth;var r;
this.minHeight=(r=a.minHeight)!=null?r:this.minHeight;var w;this.backdropClass=(w=a.backdropClass)!=null?w:this.backdropClass;var x;this.panelClass=(x=a.panelClass)!=null?x:this.panelClass;var C;this.viewportMargin=(C=a.viewportMargin)!=null?C:this.viewportMargin;var H;this.scrollStrategy=(H=a.scrollStrategy)!=null?H:this.scrollStrategy;var J;this.disableClose=(J=a.disableClose)!=null?J:this.disableClose;var O;this.transformOriginSelector=(O=a.transformOriginSelector)!=null?O:this.transformOriginSelector;
var R;this.hasBackdrop=(R=a.hasBackdrop)!=null?R:this.hasBackdrop;var V;this.lockPosition=(V=a.lockPosition)!=null?V:this.lockPosition;var ca;this.flexibleDimensions=(ca=a.flexibleDimensions)!=null?ca:this.flexibleDimensions;var na;this.growAfterOpen=(na=a.growAfterOpen)!=null?na:this.growAfterOpen;var ua;this.push=(ua=a.push)!=null?ua:this.push;var ia;this.disposeOnNavigation=(ia=a.disposeOnNavigation)!=null?ia:this.disposeOnNavigation;var Ga;this.usePopover=(Ga=a.usePopover)!=null?Ga:this.usePopover;
var ha;this.matchWidth=(ha=a.matchWidth)!=null?ha:this.matchWidth};
da.Object.defineProperties(Vz.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)}},_config:{configurable:!0,enumerable:!0,set:function(a){typeof a!=="string"&&this._assignConfig(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"}}});Vz.\u0275fac=function(a){return new (a||Vz)};
Vz.\u0275dir=af({type:Vz,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight",
"height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],
transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",$g],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",$g],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",$g],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",$g],push:[2,"cdkConnectedOverlayPush","push",$g],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",
$g],usePopover:[2,"cdkConnectedOverlayUsePopover","usePopover",$g],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",$g],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[jx]});var Wz=function(){};Wz.\u0275fac=function(a){return new (a||Wz)};Wz.\u0275mod=$e({type:Wz});Wz.\u0275inj=Fc({providers:[Tz],imports:[Ky,Sz,Dz,Dz]});var ura=new dd("MATERIAL_ANIMATIONS"),vra=null;var mDc=function(a,b,c,d,e){this._defaultMatcher=a;this.ngControl=b;this._parentFormGroup=c;this._parentForm=d;this._stateChanges=e;this.errorState=!1};mDc.prototype.updateErrorState=function(){var a=this.errorState,b=this._parentFormGroup||this._parentForm,c=this.ngControl?this.ngControl.control:null,d,e,f=(e=(d=this.matcher||this._defaultMatcher)==null?void 0:d.isErrorState(c,b))!=null?e:!1;f!==a&&(this.errorState=f,this._stateChanges.next())};new dd("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return p(Hoa)}});var Xz=function(){this.localeChanges=this._localeChanges=new qf};Xz.prototype.setTime=function(){throw Error("Ya");};Xz.prototype.getHours=function(){throw Error("Ya");};Xz.prototype.getMinutes=function(){throw Error("Ya");};Xz.prototype.getSeconds=function(){throw Error("Ya");};var Yz=function(a,b){return nDc(b)&&a.isValid(b)?b:null},Zz=function(a,b){return b==null||nDc(b)&&a.isValid(b)?b:a.invalid()};
Xz.prototype.setLocale=function(a){this.locale=a;this._localeChanges.next()};var $z=function(a,b,c){return a.getYear(b)-a.getYear(c)||a.getMonth(b)-a.getMonth(c)||a.getDate(b)-a.getDate(c)};Xz.prototype.sameDate=function(a,b){if(a&&b){var c=this.isValid(a),d=this.isValid(b);return c&&d?!$z(this,a,b):c==d}return a==b};var oDc=function(a,b,c,d){return c&&$z(a,b,c)<0?c:d&&$z(a,b,d)>0?d:b};var aA=new dd("mat-date-formats");var bA=function(){};bA.prototype.isErrorState=function(a,b){return!!(a&&a.invalid&&(a.touched||b&&b.submitted))};bA.\u0275fac=function(a){return new (a||bA)};bA.\u0275prov=Dc({token:bA,factory:bA.\u0275fac,providedIn:"root"});var cA=function(){};cA.\u0275fac=function(a){return new (a||cA)};
cA.\u0275cmp=D({type:cA,selectors:[["structural-styles"]],decls:0,vars:0,template:function(){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}\n'],encapsulation:2,
changeDetection:0});var dA=function(){};dA.\u0275fac=function(a){return new (a||dA)};
dA.\u0275cmp=D({type:dA,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mdc-form-field--align-end",b.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:["mat-internal-form-field",""],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(bg(),cg(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}\n"],encapsulation:2,
changeDetection:0});var pDc=new dd("MAT_OPTION_PARENT_COMPONENT");var qDc=new dd("MatOptgroup");var rDc=Hh({passive:!0,capture:!0}),tDc=function(a,b,c,d){var e=sDc,f=e._events.get(b);f?(a=f.get(c))?a.add(d):f.set(c,new Set([d])):(e._events.set(b,new Map([[c,new Set([d])]])),a.runOutsideAngular(function(){document.addEventListener(b,e._delegateEventHandler,rDc)}))};var uDc=function(a,b,c,d){d=d===void 0?!1:d;this._renderer=a;this.element=b;this.config=c;this._animationForciblyDisabledThroughCss=d;this.state=3};var vDc={enterDuration:225,exitDuration:150},wDc=Hh({passive:!0,capture:!0}),xDc=["mousedown","touchstart"],yDc=["mouseup","mouseleave","touchend","touchcancel"],zDc=function(){};zDc.\u0275fac=function(a){return new (a||zDc)};
zDc.\u0275cmp=D({type:zDc,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}\n"],encapsulation:2,
changeDetection:0});
var ADc=function(a,b,c,d,e){this._target=a;this._ngZone=b;this._platform=d;this._isPointerDown=!1;this._activeRipples=new Map;this._pointerUpEventsRegistered=!1;d.isBrowser&&(this._containerElement=Nh(c));e&&e.get(Zh).load(zDc)},BDc=function(a,b,c,d){d=d===void 0?{}:d;var e=a._containerRect=a._containerRect||a._containerElement.getBoundingClientRect(),f=Object.assign({},vDc,d.animation);d.centered&&(b=e.left+e.width/2,c=e.top+e.height/2);var g=d.radius||xra(b,c,e);b-=e.left;c-=e.top;var k=f.enterDuration,
l=document.createElement("div");l.classList.add("mat-ripple-element");l.style.left=b-g+"px";l.style.top=c-g+"px";l.style.height=g*2+"px";l.style.width=g*2+"px";d.color!=null&&(l.style.backgroundColor=d.color);l.style.transitionDuration=k+"ms";a._containerElement.appendChild(l);g=window.getComputedStyle(l);c=g.transitionDuration;e=g.transitionProperty==="none"||c==="0s"||c==="0s, 0s"||e.width===0&&e.height===0;var r=new uDc(a,l,d,e);l.style.transform="scale3d(1, 1, 1)";r.state=0;d.persistent||(a._mostRecentTransientRipple=
r);var w=null;e||!k&&!f.exitDuration||a._ngZone.runOutsideAngular(function(){var x=function(){w&&(w.fallbackTimer=null);clearTimeout(H);a._finishRippleTransition(r)},C=function(){return a._destroyRipple(r)},H=setTimeout(C,k+100);l.addEventListener("transitionend",x);l.addEventListener("transitioncancel",C);w={onTransitionEnd:x,onTransitionCancel:C,fallbackTimer:H}});a._activeRipples.set(r,w);!e&&k||a._finishRippleTransition(r);return r},CDc=function(a,b){if(b.state!==2&&b.state!==3){var c=b.element,
d=Object.assign({},vDc,b.config.animation);c.style.transitionDuration=d.exitDuration+"ms";c.style.opacity="0";b.state=2;!b._animationForciblyDisabledThroughCss&&d.exitDuration||a._finishRippleTransition(b)}};ADc.prototype.fadeOutAllNonPersistent=function(){this._getActiveRipples().forEach(function(a){a.config.persistent||CDc(a._renderer,a)})};
var DDc=function(a,b){var c=Nh(b);a._platform.isBrowser&&c&&c!==a._triggerElement&&(a._removeTriggerEvents(),a._triggerElement=c,xDc.forEach(function(d){tDc(a._ngZone,d,c,a)}))};h=ADc.prototype;
h.handleEvent=function(a){var b=this;a.type==="mousedown"?this._onMousedown(a):a.type==="touchstart"?this._onTouchStart(a):this._onPointerUp();this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(function(){yDc.forEach(function(c){b._triggerElement.addEventListener(c,b,wDc)})}),this._pointerUpEventsRegistered=!0)};h._finishRippleTransition=function(a){a.state===0?this._startFadeOutTransition(a):a.state===2&&this._destroyRipple(a)};
h._startFadeOutTransition=function(a){var b=a===this._mostRecentTransientRipple,c=a.config.persistent;a.state=1;c||b&&this._isPointerDown||CDc(a._renderer,a)};
h._destroyRipple=function(a){var b,c=(b=this._activeRipples.get(a))!=null?b:null;this._activeRipples.delete(a);this._activeRipples.size||(this._containerRect=null);a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null);a.state=3;c!==null&&(a.element.removeEventListener("transitionend",c.onTransitionEnd),a.element.removeEventListener("transitioncancel",c.onTransitionCancel),c.fallbackTimer!==null&&clearTimeout(c.fallbackTimer));a.element.remove()};
h._onMousedown=function(a){var b=Kqa(a),c=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||b||c||(this._isPointerDown=!0,BDc(this,a.clientX,a.clientY,this._target.rippleConfig))};h._onTouchStart=function(a){if(!this._target.rippleDisabled&&!Lqa(a)&&(this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0,a=a.changedTouches))for(var b=0;b<a.length;b++)BDc(this,a[b].clientX,a[b].clientY,this._target.rippleConfig)};
h._onPointerUp=function(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(function(a){var b=a.state===1||a.config.terminateOnPointerUp&&a.state===0;!a.config.persistent&&b&&CDc(a._renderer,a)}))};h._getActiveRipples=function(){return Array.from(this._activeRipples.keys())};
h._removeTriggerEvents=function(){var a=this,b=this._triggerElement;b&&(xDc.forEach(function(c){var d=sDc,e=d._events.get(c);if(e){var f=e.get(b);f&&(f.delete(a),f.size===0&&e.delete(b),e.size===0&&(d._events.delete(c),document.removeEventListener(c,d._delegateEventHandler,rDc)))}}),this._pointerUpEventsRegistered&&(yDc.forEach(function(c){return b.removeEventListener(c,a,wDc)}),this._pointerUpEventsRegistered=!1))};
var sDc=new function(){var a=this;this._events=new Map;this._delegateEventHandler=function(b){var c=Jh(b);if(c){var d;(d=a._events.get(b.type))==null||d.forEach(function(e,f){(f===c||f.contains(c))&&e.forEach(function(g){return g.handleEvent(b)})})}}};var eA=new dd("mat-ripple-global-options"),fA=function(){this._elementRef=p(Hd);this._animationsDisabled=mi();this.radius=0;this._isInitialized=this._disabled=!1;var a=p(Rg),b=p(Vh),c=p(eA,{optional:!0}),d=p(ye);this._globalOptions=c||{};this._rippleRenderer=new ADc(this,a,this._elementRef,b,d)};h=fA.prototype;h.ngOnInit=function(){this._isInitialized=!0;this._setupTriggerEventsIfEnabled()};h.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()};h.fadeOutAllNonPersistent=function(){this._rippleRenderer.fadeOutAllNonPersistent()};
h._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&DDc(this._rippleRenderer,this.trigger)};h.launch=function(a,b,c){return typeof a==="number"?BDc(this._rippleRenderer,a,b===void 0?0:b,Object.assign({},this.rippleConfig,c)):BDc(this._rippleRenderer,0,0,Object.assign({},this.rippleConfig,a))};
da.Object.defineProperties(fA.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,this._animationsDisabled?{enterDuration:0,exitDuration:0}:{},this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||!!this._globalOptions.disabled}}});fA.\u0275fac=function(a){return new (a||fA)};
fA.\u0275dir=af({type:fA,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-ripple-unbounded",b.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]});var gA=function(){this._animationsDisabled=mi();this.state="unchecked";this.disabled=!1;this.appearance="full"};gA.\u0275fac=function(a){return new (a||gA)};
gA.\u0275cmp=D({type:gA,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(a,b){a&2&&wg("mat-pseudo-checkbox-indeterminate",b.state==="indeterminate")("mat-pseudo-checkbox-checked",b.state==="checked")("mat-pseudo-checkbox-disabled",b.disabled)("mat-pseudo-checkbox-minimal",b.appearance==="minimal")("mat-pseudo-checkbox-full",b.appearance==="full")("_mat-animation-noopable",b._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},
decls:0,vars:0,template:function(){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}\n'],
encapsulation:2,changeDetection:0});var EDc=["text"],FDc=[[["mat-icon"]],"*"],GDc=function(a,b){this.source=a;this.isUserInput=b===void 0?!1:b},hA=function(){this._element=p(Hd);this._changeDetectorRef=p(Cx);this._parent=p(pDc,{optional:!0});this.group=p(qDc,{optional:!0});this._active=this._selected=this._signalDisableRipple=!1;this._mostRecentViewValue="";this.id=p(ai).getId("mat-option-");this._disabled=ng.apply(null,[!1].concat(q([])));this.onSelectionChange=new Ti;this._stateChanges=new qf;var a=p(Zh);a.load(cA);a.load(Ry);this._signalDisableRipple=
!!this._parent&&df(this._parent.disableRipple)};h=hA.prototype;h.select=function(a){a=a===void 0?!0:a;this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),a&&this._emitSelectionChangeEvent())};h.deselect=function(a){a=a===void 0?!0:a;this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),a&&this._emitSelectionChangeEvent())};h.focus=function(a,b){var c=this._getHostElement();typeof c.focus==="function"&&c.focus(b)};
h.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())};h.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())};h.getLabel=function(){return this.viewValue};h._handleKeydown=function(a){a.keyCode!==13&&a.keyCode!==32||Gh(a)||(this._selectViaInteraction(),a.preventDefault())};
h._selectViaInteraction=function(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))};h._getTabIndex=function(){return this.disabled?"-1":"0"};h._getHostElement=function(){return this._element.nativeElement};h.ngAfterViewChecked=function(){if(this._selected){var a=this.viewValue;a!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=a)}};h.ngOnDestroy=function(){this._stateChanges.complete()};
h._emitSelectionChangeEvent=function(a){this.onSelectionChange.emit(new GDc(this,a===void 0?!1:a))};
da.Object.defineProperties(hA.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.set(a)}},disableRipple:{configurable:!0,enumerable:!0,get:function(){var a;return this._signalDisableRipple?this._parent.disableRipple():
!((a=this._parent)==null||!a.disableRipple)}},hideSingleSelectionIndicator:{configurable:!0,enumerable:!0,get:function(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}},active:{configurable:!0,enumerable:!0,get:function(){return this._active}},viewValue:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this._text)==null?void 0:a.nativeElement.textContent)||"").trim()}}});hA.\u0275fac=function(a){return new (a||hA)};
hA.\u0275cmp=D({type:hA,selectors:[["mat-option"]],viewQuery:function(a,b){a&1&&hg(EDc,7);if(a&2){var c;lg(c=mg())&&(b._text=c.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(a,b){a&1&&N("click",function(){return b._selectViaInteraction()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(Pf("id",b.id),If("aria-selected",b.selected)("aria-disabled",b.disabled.toString()),wg("mdc-list-item--selected",b.selected)("mat-mdc-option-multiple",
b.multiple)("mat-mdc-option-active",b.active)("mdc-list-item--disabled",b.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",$g]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:["mat-icon","*"],decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",
3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(a,b){a&1&&(bg(FDc),F(0,yra,1,2,"mat-pseudo-checkbox",1),cg(1),K(2,"span",2,0),cg(4,1),L(),F(5,zra,1,1,"mat-pseudo-checkbox",3),F(6,Ara,2,1,"span",4),M(7,"div",5));a&2&&(G(b.multiple?0:-1),B(5),G(b.multiple||!b.selected||b.hideSingleSelectionIndicator?-1:5),B(),G(b.group&&b.group._inert?6:-1),B(),I("matRippleTrigger",
b._getHostElement())("matRippleDisabled",b.disabled||b.disableRipple))},dependencies:[gA,fA],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active,.mat-mdc-option-multiple,:focus,:hover){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active,.mat-mdc-option-multiple,:focus,:hover) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var iA=function(){};iA.\u0275fac=function(a){return new (a||iA)};iA.\u0275mod=$e({type:iA});iA.\u0275inj=Fc({imports:[Ky]});var jA=function(){};jA.\u0275fac=function(a){return new (a||jA)};jA.\u0275mod=$e({type:jA});jA.\u0275inj=Fc({imports:[Ky]});var kA=function(){};kA.\u0275fac=function(a){return new (a||kA)};kA.\u0275mod=$e({type:kA});kA.\u0275inj=Fc({imports:[iA,jA,hA,Ky]});var HDc={capture:!0},IDc=["focus","mousedown","mouseenter","touchstart"],lA=function(){var a=this;this._document=p(Rh);this._animationsDisabled=mi();this._globalRippleOptions=p(eA,{optional:!0});this._platform=p(Vh);this._ngZone=p(Rg);this._injector=p(ye);this._hosts=new Map;this._onInteraction=function(c){c=Jh(c);if(c instanceof HTMLElement){var d,e;(c=c.closest('[mat-ripple-loader-uninitialized="'+((e=(d=a._globalRippleOptions)==null?void 0:d.namespace)!=null?e:"")+'"]'))&&a._createRipple(c)}};
var b=p(Ye).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(function(){return IDc.map(function(c){return b.listen(a._document,c,a._onInteraction,HDc)})})};lA.prototype.ngOnDestroy=function(){var a=this._hosts.keys();a=m(a);for(var b=a.next();!b.done;b=a.next())JDc(this,b.value);this._eventCleanups.forEach(function(c){return c()})};
var KDc=function(a,b,c){var d,e;b.setAttribute("mat-ripple-loader-uninitialized",(e=(d=a._globalRippleOptions)==null?void 0:d.namespace)!=null?e:"");!c.className&&b.hasAttribute("mat-ripple-loader-class-name")||b.setAttribute("mat-ripple-loader-class-name",c.className||"");c.centered&&b.setAttribute("mat-ripple-loader-centered","");c.disabled&&b.setAttribute("mat-ripple-loader-disabled","")};
lA.prototype.setDisabled=function(a,b){var c=this._hosts.get(a);c?(c.target.rippleDisabled=b,b||c.hasSetUpEvents||(c.hasSetUpEvents=!0,DDc(c.renderer,a))):b?a.setAttribute("mat-ripple-loader-disabled",""):a.removeAttribute("mat-ripple-loader-disabled")};
lA.prototype._createRipple=function(a){if(this._document&&!this._hosts.has(a)){var b;(b=a.querySelector(".mat-ripple"))==null||b.remove();b=this._document.createElement("span");b.classList.add("mat-ripple",a.getAttribute("mat-ripple-loader-class-name"));a.append(b);var c=this._globalRippleOptions,d,e,f=this._animationsDisabled?0:(e=c==null?void 0:(d=c.animation)==null?void 0:d.enterDuration)!=null?e:vDc.enterDuration,g,k;d=this._animationsDisabled?0:(k=c==null?void 0:(g=c.animation)==null?void 0:
g.exitDuration)!=null?k:vDc.exitDuration;g={rippleDisabled:this._animationsDisabled||(c==null?void 0:c.disabled)||a.hasAttribute("mat-ripple-loader-disabled"),rippleConfig:{centered:a.hasAttribute("mat-ripple-loader-centered"),terminateOnPointerUp:c==null?void 0:c.terminateOnPointerUp,animation:{enterDuration:f,exitDuration:d}}};b=new ADc(g,this._ngZone,b,this._platform,this._injector);(k=!g.rippleDisabled)&&DDc(b,a);this._hosts.set(a,{target:g,renderer:b,hasSetUpEvents:k});a.removeAttribute("mat-ripple-loader-uninitialized")}};
var JDc=function(a,b){var c=a._hosts.get(b);c&&(c.renderer._removeTriggerEvents(),a._hosts.delete(b))};lA.\u0275fac=function(a){return new (a||lA)};lA.\u0275prov=Dc({token:lA,factory:lA.\u0275fac,providedIn:"root"});var LDc=["tooltip"],MDc=new dd("mat-tooltip-scroll-strategy",{providedIn:"root",factory:function(){var a=p(ye);return function(){return Th(a,{scrollThrottle:20})}}}),NDc=new dd("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ODc=Hh({passive:!0}),nA=function(){this._elementRef=p(Hd);this._ngZone=p(Rg);this._platform=p(Vh);this._ariaDescriber=p(fz);this._focusMonitor=p(Ny);this._dir=p(bi);this._injector=p(ye);this._viewContainerRef=
p(eg);this._animationsDisabled=mi();this._defaultOptions=p(NDc,{optional:!0});this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=this._positionAtOrigin=!1;this._tooltipComponent=mA;this._viewportMargin=8;this._cssClassPrefix="mat-mdc";this._dirSubscribed=!1;this.touchGestures="auto";this._message="";this._passiveListeners=[];this._touchstartTimeout=null;this._destroyed=new qf;this._isDestroyed=!1;var a=this._defaultOptions;a&&(this._showDelay=a.showDelay,
this._hideDelay=a.hideDelay,a.position&&(this.position=a.position),a.positionAtOrigin&&(this.positionAtOrigin=a.positionAtOrigin),a.touchGestures&&(this.touchGestures=a.touchGestures),a.tooltipClass&&(this.tooltipClass=a.tooltipClass));this._viewportMargin=8};h=nA.prototype;
h.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(zf(this._destroyed)).subscribe(function(b){b?b==="keyboard"&&a._ngZone.run(function(){return a.show()}):a._ngZone.run(function(){return a.hide(0)})})};
h.ngOnDestroy=function(){var a=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null);this._passiveListeners.forEach(function(b){var c=m(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,ODc)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();this._isDestroyed=!0;hz(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
h.show=function(a,b){var c=this;a=a===void 0?this.showDelay:a;if(this.disabled||!this.message||this._isTooltipVisible()){var d;(d=this._tooltipInstance)==null||d._cancelPendingAnimations()}else b=this._createOverlay(b),this._detach(),this._portal=this._portal||new Nz(this._tooltipComponent,this._viewContainerRef),b=this._tooltipInstance=b.attach(this._portal).instance,b._triggerElement=this._elementRef.nativeElement,b._mouseLeaveHideDelay=this._hideDelay,b.afterHidden().pipe(zf(this._destroyed)).subscribe(function(){return c._detach()}),
this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),b.show(a)};h.hide=function(a){a=a===void 0?this.hideDelay:a;var b=this._tooltipInstance;b&&(b.isVisible()?b.hide(a):(b._cancelPendingAnimations(),this._detach()))};h.toggle=function(a){this._isTooltipVisible()?this.hide():this.show(void 0,a)};h._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
h._createOverlay=function(a){var b=this;if(this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!a)&&c._origin instanceof Hd)return this._overlayRef;this._detach()}var d=JCc(this._injector.get(Sh),this._elementRef);c=this._cssClassPrefix+"-tooltip-panel";a=bDc(Gz(Hz(fDc(Xh(this._injector,this.positionAtOrigin?a||this._elementRef:this._elementRef),"."+this._cssClassPrefix+"-tooltip"),!1),this._viewportMargin),d);a.positionChanges.pipe(zf(this._destroyed)).subscribe(function(f){b._updateCurrentPositionClass(f.connectionPair);
b._tooltipInstance&&f.scrollableViewProperties.isOverlayClipped&&b._tooltipInstance.isVisible()&&b._ngZone.run(function(){return b.hide(0)})});this._overlayRef=ki(this._injector,{direction:this._dir,positionStrategy:a,panelClass:this._overlayPanelClass?[].concat(q(this._overlayPanelClass),[c]):c,scrollStrategy:this._injector.get(MDc)(),disableAnimations:this._animationsDisabled});this._updatePosition(this._overlayRef);this._overlayRef._detachments.pipe(zf(this._destroyed)).subscribe(function(){return b._detach()});
this._overlayRef.outsidePointerEvents().pipe(zf(this._destroyed)).subscribe(function(){var f;return(f=b._tooltipInstance)==null?void 0:f._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(zf(this._destroyed)).subscribe(function(f){b._isTooltipVisible()&&f.keyCode===27&&!Gh(f)&&(f.preventDefault(),f.stopPropagation(),b._ngZone.run(function(){return b.hide(0)}))});var e;((e=this._defaultOptions)==null?0:e.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(this._cssClassPrefix+
"-tooltip-panel-non-interactive");this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(zf(this._destroyed)).subscribe(function(){b._overlayRef&&b._updatePosition(b._overlayRef)}));return this._overlayRef};h._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach();this._tooltipInstance=null};
h._updatePosition=function(a){a=a.getConfig().positionStrategy;var b=this._getOrigin(),c=this._getOverlayPosition();Fz(a,[this._addOffset(Object.assign({},b.main,c.main)),this._addOffset(Object.assign({},b.fallback,c.fallback))])};h._addOffset=function(a){var b=!this._dir||this._dir.value=="ltr";a.originY==="top"?a.offsetY=-8:a.originY==="bottom"?a.offsetY=8:a.originX==="start"?a.offsetX=b?-8:8:a.originX==="end"&&(a.offsetX=b?8:-8);return a};
h._getOrigin=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above"||b=="below")var c={originX:"center",originY:b=="above"?"top":"bottom"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={originX:"start",originY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={originX:"end",originY:"center"};a=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:a.x,originY:a.y}}};
h._getOverlayPosition=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above")var c={overlayX:"center",overlayY:"bottom"};else if(b=="below")c={overlayX:"center",overlayY:"top"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={overlayX:"end",overlayY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={overlayX:"start",overlayY:"center"};a=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:a.x,overlayY:a.y}}};
h._updateTooltipMessage=function(){var a=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Ee(function(){a._tooltipInstance&&a._overlayRef.updatePosition()},{injector:this._injector}))};h._setTooltipClass=function(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())};
h._invertPosition=function(a,b){this.position==="above"||this.position==="below"?b==="top"?b="bottom":b==="bottom"&&(b="top"):a==="end"?a="start":a==="start"&&(a="end");return{x:a,y:b}};
h._updateCurrentPositionClass=function(a){var b=a.overlayY,c=a.originX;a=a.originY;b=b==="center"?this._dir&&this._dir.value==="rtl"?c==="end"?"left":"right":c==="start"?"left":"right":b==="bottom"&&a==="top"?"above":"below";if(b!==this._currentPosition){if(c=this._overlayRef)a=this._cssClassPrefix+"-tooltip-panel-",c.removePanelClass(a+this._currentPosition),c.addPanelClass(a+b);this._currentPosition=b}};
h._setupPointerEnterEventsIfNeeded=function(){var a=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(b){a._setupPointerExitEventsIfNeeded();var c=void 0;b.x!==void 0&&b.y!==void 0&&(c=b);a.show(void 0,c)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(b){var c,d=(b=(c=b.targetTouches)==null?void 0:
c[0])?{x:b.clientX,y:b.clientY}:void 0;a._setupPointerExitEventsIfNeeded();a._touchstartTimeout&&clearTimeout(a._touchstartTimeout);var e,f;a._touchstartTimeout=setTimeout(function(){a._touchstartTimeout=null;a.show(void 0,d)},(f=(e=a._defaultOptions)==null?void 0:e.touchLongPressShowDelay)!=null?f:500)}])),this._addListeners(this._passiveListeners))};
h._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&&((e=a._overlayRef)==null?0:e.overlayElement.contains(d))||a.hide()}],["wheel",function(d){return a._wheelListener(d)}]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();var c=function(){a._touchstartTimeout&&clearTimeout(a._touchstartTimeout);
var d;a.hide((d=a._defaultOptions)==null?void 0:d.touchendHideDelay)};b.push(["touchend",c],["touchcancel",c])}this._addListeners(b);this._passiveListeners.push.apply(this._passiveListeners,q(b))}};h._addListeners=function(a){var b=this;a.forEach(function(c){var d=m(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,ODc)})};h._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
h._wheelListener=function(a){if(this._isTooltipVisible()){a=this._injector.get(Rh).elementFromPoint(a.clientX,a.clientY);var b=this._elementRef.nativeElement;a===b||b.contains(a)||this.hide()}};
h._disableNativeGesturesIfNecessary=function(){var a=this.touchGestures;if(a!=="off"){var b=this._elementRef.nativeElement,c=b.style;if(a==="on"||b.nodeName!=="INPUT"&&b.nodeName!=="TEXTAREA")c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none";a!=="on"&&b.draggable||(c.webkitUserDrag="none");c.touchAction="none";c.webkitTapHighlightColor="transparent"}};
h._syncAriaDescription=function(a){var b=this;this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,hz(this._ariaDescriber,this._elementRef.nativeElement,a,"tooltip"),this._isDestroyed||Ee({write:function(){b._ariaDescriptionPending=!1;b.message&&!b.disabled&&gz(b._ariaDescriber,b._elementRef.nativeElement,b.message,"tooltip")}},{injector:this._injector}))};
da.Object.defineProperties(nA.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;(b=this._tooltipInstance)==null||b.show(0);this._overlayRef.updatePosition()}}},positionAtOrigin:{configurable:!0,enumerable:!0,get:function(){return this._positionAtOrigin},set:function(a){this._positionAtOrigin=Lh(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){a=Lh(a);this._disabled!==a&&((this._disabled=a)?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}},showDelay:{configurable:!0,enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=Oh(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=Oh(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=
this._hideDelay)}},message:{configurable:!0,enumerable:!0,get:function(){return this._message},set:function(a){var b=this._message;this._message=a!=null?String(a).trim():"";!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage());this._syncAriaDescription(b)}},tooltipClass:{configurable:!0,enumerable:!0,get:function(){return this._tooltipClass},set:function(a){this._tooltipClass=a;this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}});
nA.\u0275fac=function(a){return new (a||nA)};
nA.\u0275dir=af({type:nA,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-mdc-tooltip-disabled",b.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],
message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]});var mA=function(){this._changeDetectorRef=p(Cx);this._elementRef=p(Hd);this._isMultiline=!1;this._animationsDisabled=mi();this._isVisible=this._closeOnInteraction=!1;this._onHide=new qf;this._showAnimation="mat-mdc-tooltip-show";this._hideAnimation="mat-mdc-tooltip-hide"};h=mA.prototype;
h.show=function(a){var b=this;this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};h.hide=function(a){var b=this;this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId=setTimeout(function(){b._toggleVisibility(!1);b._hideTimeoutId=void 0},a)};h.afterHidden=function(){return this._onHide};h.isVisible=function(){return this._isVisible};
h.ngOnDestroy=function(){this._cancelPendingAnimations();this._onHide.complete();this._triggerElement=null};h._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)};h._markForCheck=function(){this._changeDetectorRef.markForCheck()};h._handleMouseLeave=function(a){(a=a.relatedTarget)&&this._triggerElement.contains(a)||(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))};h._onShow=function(){this._isMultiline=this._isTooltipMultiline();this._markForCheck()};
h._isTooltipMultiline=function(){var a=this._elementRef.nativeElement.getBoundingClientRect();return a.height>24&&a.width>=200};h._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};h._cancelPendingAnimations=function(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=this._hideTimeoutId=void 0};
h._finalizeAnimation=function(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()};
h._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._isVisible=a,this._changeDetectorRef.markForCheck());a&&!this._animationsDisabled&&typeof getComputedStyle==="function"&&(c=getComputedStyle(b),c.getPropertyValue("animation-duration")==="0s"||c.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0);a&&this._onShow();this._animationsDisabled&&
(b.classList.add("_mat-animation-noopable"),this._finalizeAnimation(a))};mA.\u0275fac=function(a){return new (a||mA)};
mA.\u0275cmp=D({type:mA,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&hg(LDc,7);if(a&2){var c;lg(c=mg())&&(b._tooltip=c.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(a,b){a&1&&N("mouseleave",function(c){return b._handleMouseLeave(c)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1,0);N("animationend",
function(d){u(c);return v(b._handleAnimationEnd(d))});K(2,"div",2);Q(3);L()()}a&2&&(wg("mdc-tooltip--multiline",b._isMultiline),I("ngClass",b.tooltipClass),B(3),yg(b.message))},dependencies:[Lx],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}\n'],
encapsulation:2,changeDetection:0});var oA=function(){};oA.\u0275fac=function(a){return new (a||oA)};oA.\u0275mod=$e({type:oA});oA.\u0275inj=Fc({imports:[ez,Wz,Ky,Cz]});var PDc="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var SDc=function(a){var b=Su("window.location.href");a==null&&(a='Unknown Error of type "null/undefined"');if(typeof a==="string")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(g){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||ra.$googDebugFname||b}catch(g){e="Not available",c=!0}b=QDc(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(c==null){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,RDc[c])c=RDc[c];else{c=String(c);if(!RDc[c]){var f=/function\s+([^\(]+)/m.exec(c);RDc[c]=f?f[1]:"[Anonymous]"}c=RDc[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";typeof a.toString==="function"&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}return{message:a.message,
name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:b}},QDc=function(a,b){b||(b={});b[TDc(a)]=!0;var c=a.stack||"",d=a.cause;d&&!b[TDc(d)]&&(c+="\nCaused by: ",d.stack&&d.stack.indexOf(d.toString())==0||(c+=typeof d==="string"?d:d.message+"\n"),c+=QDc(d,b));a=a.errors;if(Array.isArray(a)){d=1;var e;for(e=0;e<a.length&&!(d>4);e++)b[TDc(a[e])]||(c+="\nInner error "+d++ +": ",a[e].stack&&a[e].stack.indexOf(a[e].toString())==0||(c+=typeof a[e]==="string"?a[e]:a[e].message+"\n"),c+=QDc(a[e],
b));e<a.length&&(c+="\n... "+(a.length-e)+" more inner errors")}return c},TDc=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack},RDc={};var pA=function(){this.label=Og.required.apply(Og,q([]));this.linkUrl=Og.required.apply(Og,q([]));this.iconUrl=Og.apply(null,q([]));this.tooltip=Og.apply(null,q([]));this.showRemoveButton=Og.apply(null,q([]));this.removeContextSource=Ng()};pA.prototype.openLink=function(){var a=this.linkUrl();a&&ni(window,rqa(a.startsWith("http://")||a.startsWith("https://")?a:"http://"+a),"_blank")};pA.\u0275fac=function(a){return new (a||pA)};
pA.\u0275cmp=D({type:pA,selectors:[["link-chip"]],inputs:{label:[1,"label"],linkUrl:[1,"linkUrl"],iconUrl:[1,"iconUrl"],tooltip:[1,"tooltip"],showRemoveButton:[1,"showRemoveButton"]},outputs:{removeContextSource:"removeContextSource"},features:[Gg([{provide:NDc,useValue:{showDelay:300,hideDelay:100,touchendHideDelay:100}}])],decls:7,vars:6,consts:[[1,"link-chip"],[1,"link-chip-button",3,"click","matTooltip"],[1,"flex-row","align-items-center"],["alt","Icon for chip",1,"padded-xs-left","link-chip-icon",
3,"src"],[1,"type-s","padded-xs","link-chip-label"],["mat-icon-button","",1,"link-chip-remove-button"],["mat-icon-button","",1,"link-chip-remove-button",3,"click"],[1,"link-chip-remove-icon"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"button",1),N("click",function(){return b.openLink()}),K(2,"div",2),F(3,Jra,1,1,"img",3),K(4,"span",4),Q(5),L()()(),F(6,Kra,3,0,"button",5),L());a&2&&(wg("link-chip-with-remove-button",b.showRemoveButton()),B(),I("matTooltip",b.tooltip()),B(2),G(b.iconUrl()?3:-1),
B(2),yg(b.label()),B(),G(b.showRemoveButton()?6:-1))},dependencies:[by,oA,nA,Ly,Jy],styles:['.link-chip[_ngcontent-%COMP%]{background-color:var(--page-bg);border:1px solid var(--hairline);border-radius:calc(var(--base-px, 1rem)*28);height:calc(var(--base-px, 1rem)*28);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;gap:0}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_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;gap:0;padding:0 calc(var(--base-px, 1rem)*2);border:none;background-color:transparent;border-radius:calc(var(--base-px, 1rem)*28)}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]   .link-chip-label[_ngcontent-%COMP%]{font-size:1em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:Google Sans;font-weight:500}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]   .link-chip-icon[_ngcontent-%COMP%]{width:16px;height:16px}.link-chip.link-chip-with-remove-button[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]{border-radius:calc(var(--base-px, 1rem)*28) 0 0 calc(var(--base-px, 1rem)*28)}.link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]{background-color:transparent;color:var(--icon);border:none;height:calc(var(--base-px, 1rem)*28);width:calc(var(--base-px, 1rem)*28);padding:0;margin:0;border-radius:0 calc(var(--base-px, 1rem)*28) calc(var(--base-px, 1rem)*28) 0}.link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]   .link-chip-remove-icon[_ngcontent-%COMP%]{font-size:calc(var(--base-px, 1rem)*20);height:calc(var(--base-px, 1rem)*20);width:calc(var(--base-px, 1rem)*20)}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%], .link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]{position:relative}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]:hover, .link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]:hover{background-color:var(--hover)}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]:after, .link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:calc(var(--base-px, 1rem)*-10) 0}'],
changeDetection:0});var qA=function(){};qA.\u0275fac=function(a){return new (a||qA)};qA.\u0275prov=Dc({token:qA,factory:qA.\u0275fac,providedIn:"root"});var UDc=function(a,b){this.lo=a>>>0;this.hi=b>>>0},WDc=function(a){if(!a)return VDc||(VDc=new UDc(0,0));if(!/^\d+$/.test(a))return null;sca(a);return new UDc(nb,ob)},VDc,XDc=function(a,b){this.lo=a>>>0;this.hi=b>>>0},ZDc=function(a){if(!a)return YDc||(YDc=new XDc(0,0));if(!/^-?\d+$/.test(a))return null;sca(a);return new XDc(nb,ob)},YDc;var rA=function(){this.buffer_=[]};rA.prototype.length=function(){return this.buffer_.length};rA.prototype.end=function(){var a=this.buffer_;this.buffer_=[];return a};rA.prototype.writeSplitVarint64=function(a,b){for(;b>0||a>127;)this.buffer_.push(a&127|128),a=(a>>>7|b<<25)>>>0,b>>>=7;this.buffer_.push(a)};rA.prototype.writeSplitFixed64=function(a,b){this.writeUint32(a);this.writeUint32(b)};
var $Dc=function(a,b){for(;b>127;)a.buffer_.push(b&127|128),b>>>=7;a.buffer_.push(b)},aEc=function(a,b){if(b>=0)$Dc(a,b);else{for(var c=0;c<9;c++)a.buffer_.push(b&127|128),b>>=7;a.buffer_.push(1)}};h=rA.prototype;h.writeUint32=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};h.writeUint64=function(a){lca(a);this.writeUint32(nb);this.writeUint32(ob)};
h.writeInt32=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};h.writeInt64=function(a){pb(a);this.writeSplitFixed64(nb,ob)};h.writeDouble=function(a){var b=Lxc||(Lxc=new DataView(new ArrayBuffer(8)));b.setFloat64(0,+a,!0);nb=b.getUint32(0,!0);ob=b.getUint32(4,!0);this.writeUint32(nb);this.writeUint32(ob)};h.writeBool=function(a){this.buffer_.push(a?1:0)};h.writeEnum=function(a){aEc(this,a)};
h.writeBytes=function(a){for(;a.length>8192;)Array.prototype.push.apply(this.buffer_,a.subarray(0,8192)),a=a.subarray(8192);Array.prototype.push.apply(this.buffer_,a)};var bEc=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new rA},ri=function(a,b){b.length!==0&&(a.blocks_.push(b),a.totalLength_+=b.length)},Ora=function(a,b){sA(a,b,2);b=a.encoder_.end();ri(a,b);b.push(a.totalLength_);return b},Pra=function(a,b){var c=b.pop();for(c=a.totalLength_+a.encoder_.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.totalLength_++;b.push(c);a.totalLength_++},cEc=function(a){ri(a,a.encoder_.end());for(var b=new Uint8Array(a.totalLength_),c=a.blocks_,d=c.length,e=0,
f=0;f<d;f++){var g=c[f];b.set(g,e);e+=g.length}a.blocks_=[b];return b},sA=function(a,b,c){$Dc(a.encoder_,b*8+c)};h=bEc.prototype;h.writeInt32=function(a,b){b!=null&&b!=null&&(sA(this,a,0),aEc(this.encoder_,b))};
h.writeInt64=function(a,b){if(b!=null){switch(typeof b){case "string":ZDc(b)}if(b!=null)switch(sA(this,a,0),typeof b){case "number":a=this.encoder_;pb(b);a.writeSplitVarint64(nb,ob);break;case "bigint":b=BigInt.asUintN(64,b);b=new XDc(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));this.encoder_.writeSplitVarint64(b.lo,b.hi);break;default:b=ZDc(b),this.encoder_.writeSplitVarint64(b.lo,b.hi)}}};h.writeUint32=function(){};h.writeUint64=function(){};
h.writeDouble=function(a,b){b!=null&&(sA(this,a,1),this.encoder_.writeDouble(b))};h.writeBool=function(a,b){b!=null&&(sA(this,a,0),this.encoder_.writeBool(b))};h.writeEnum=function(a,b){b!=null&&(b=parseInt(b,10),sA(this,a,0),aEc(this.encoder_,b))};h.writeBytes=function(a,b){b!=null&&ssa(this,a,Sda(b,!0).buffer)};var ssa=function(a,b,c){sA(a,b,2);$Dc(a.encoder_,c.length);ri(a,a.encoder_.end());ri(a,c)};bEc.prototype.writeSplitFixed64=function(a,b){sA(this,a,1);this.encoder_.writeSplitFixed64(b)};
bEc.prototype.writeSplitVarint64=function(a,b){sA(this,a,0);this.encoder_.writeSplitVarint64(b)};var Lra=pi(),dEc=pi(),eEc=pi(),fEc=pi(),gEc=pi(),hEc=pi();var qi=function(a,b,c){this.$$binaryReaderFn=a;this.$$binaryWriterFn=b;a=ac(Lra);this.$$isMsg=!!a&&c===a||!1},Tra=Mra(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;Xxc(a,$xc(b,d,c),e);return!0},Qra),Vra=Mra(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;Xxc(a,$xc(b,d,c),e);return!0},Qra),hsa=Symbol(),Yra=Symbol(),asa=Symbol(),msa=Symbol(),esa=Symbol(),Rra,Sra;var iEc=si(wsa,function(a,b,c){if(b!=null){if(b instanceof W){var d=b.serializeBinaryFnForAnyProto_;d?a.writeBytes(c,d(b)):tb(psa,3);return}if(Array.isArray(b)){tb(psa,3);return}}vsa(a,b,c)},hEc),jEc=si(function(a,b,c,d){if(a.nextWireType_!==1)return!1;var e=a.decoder_;a=Fw(e);var f=Fw(e);e=(f>>31)*2+1;var g=f>>>20&2047;a=4294967296*(f&1048575)+a;Jw(b,c,d,g==2047?a?NaN:e*Infinity:g==0?e*4.9E-324*a:e*Math.pow(2,g-1075)*(a+4503599627370496));return!0},function(a,b,c){a.writeDouble(c,xb(b))},pi()),kEc=
si(function(a,b,c){if(Swc)return a.nextWireType_!==0?a=!1:(ti(b,c,Sxc(a.decoder_,qca)),a=!0),a;if(a.nextWireType_!==0)return!1;ti(b,c,Sxc(a.decoder_,oca));return!0},qsa,gEc),lEc=si(function(a,b,c,d){if(Swc)return a.nextWireType_!==0?a=!1:(Jw(b,c,d,Sxc(a.decoder_,qca)),a=!0),a;if(a.nextWireType_!==0)return!1;Jw(b,c,d,Sxc(a.decoder_,oca));return!0},qsa,gEc),tA=si(function(a,b,c){if(a.nextWireType_!==0)return!1;ti(b,c,Ew(a.decoder_));return!0},function(a,b,c){a.writeInt32(c,Fb(b))},fEc),mEc;
mEc=new qi(function(a,b,c){if(a.nextWireType_!==0&&a.nextWireType_!==2)return!1;b=dea(b,b[Ta]|0,c);if(a.nextWireType_==2)for(c=Ew(a.decoder_)>>>0,c=a.decoder_.getCursor()+c;a.decoder_.getCursor()<c;)b.push(Ew(a.decoder_));else b.push(Ew(a.decoder_));return!0},function(a,b,c){if(Array.isArray(b)){var d=b[Ta]|0;if(!(d&4)){for(var e=0,f=0;e<b.length;e++){var g=Fb(b[e]);g!=null&&(b[f++]=g)}f<e&&(b.length=f);e=(d|5)&-1537;e!==d&&Va(b,e);e&2&&Object.freeze(b)}}else b=void 0;if(b!=null)for(d=0;d<b.length;d++)e=
a,f=c,g=b[d],g!=null&&(sA(e,f,0),aEc(e.encoder_,g))},fEc);
var nEc=si(function(a,b,c){if(Swc){if(a.nextWireType_!==1)b=!1;else{var d=a.decoder_;a=Fw(d);d=Fw(d);ti(b,c,mb(Xa()?BigInt.asUintN(64,(BigInt(d>>>0)<<BigInt(32))+BigInt(a>>>0)):qb(a,d)));b=!0}return b}if(a.nextWireType_!==1)return!1;d=a.decoder_;a=Fw(d);d=Fw(d);ti(b,c,qb(a,d));return!0},function(a,b,c){b=Qca(b);if(b!=null){switch(typeof b){case "string":WDc(b)}sA(a,c,1);switch(typeof b){case "number":a.encoder_.writeUint64(b);break;case "bigint":c=BigInt.asUintN(64,b);c=new UDc(Number(c&BigInt(4294967295)),
Number(c>>BigInt(32)));a.encoder_.writeSplitFixed64(c.lo,c.hi);break;default:c=WDc(b),a.encoder_.writeSplitFixed64(c.lo,c.hi)}}},pi()),oEc=si(function(a,b,c){if(a.nextWireType_!==5)return!1;ti(b,c,Fw(a.decoder_));return!0},function(a,b,c){b=Bca(b);b!=null&&(sA(a,c,5),a.encoder_.writeUint32(b))},pi()),uA=si(function(a,b,c){if(a.nextWireType_!==0)return!1;ti(b,c,Txc(a.decoder_));return!0},rsa,dEc),pEc=si(function(a,b,c,d){if(a.nextWireType_!==0)return!1;Jw(b,c,d,Txc(a.decoder_));return!0},rsa,dEc),
qEc=si(function(a,b,c){if(a.nextWireType_!==2)return!1;a=Yxc(a);ti(b,c,a===""?void 0:a);return!0},tsa,eEc),rEc=si(function(a,b,c){if(a.nextWireType_!==2)return!1;ti(b,c,Yxc(a));return!0},tsa,eEc),sEc=si(function(a,b,c,d){if(a.nextWireType_!==2)return!1;Jw(b,c,d,Yxc(a));return!0},tsa,eEc),tEc,uEc=void 0;uEc=uEc===void 0?Lra:uEc;
tEc=new qi(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;d=Oda(void 0,d);dea(b,b[Ta]|0,c).push(d);Xxc(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)usa(a,b[f],c,d,e);a=b[Ta]|0;a&1||Va(b,a|1)}},uEc);
var vEc=Mra(function(a,b,c,d,e,f){if(a.nextWireType_!==2)return!1;var g=b[Ta]|0;hea(b,g,f,c,kb(g));b=$xc(b,d,c);Xxc(a,b,e);return!0},usa),wEc=si(function(a,b,c){if(a.nextWireType_!==2)return!1;ti(b,c,a.readByteString());return!0},vsa,hEc),xEc=si(function(a,b,c,d){if(a.nextWireType_!==2)return!1;Jw(b,c,d,a.readByteString());return!0},vsa,hEc),yEc=si(function(a,b,c){if(a.nextWireType_!==0)return!1;ti(b,c,Ew(a.decoder_));return!0},function(a,b,c){a.writeEnum(c,Fb(b))},pi());var vA=function(a,b,c){this.fieldIndex=a;this.ctor=c;this.isRepeated=0;this.getExtensionFn=X;this.setExtensionFn=Mi;this.defaultValue=void 0;this.hasMessageId=b.messageId!=null?jb:void 0};vA.prototype.register=function(){Xwc(this)};var wA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wA,W);wA.prototype.getValuesList=function(a){return Bi(this,xA,1,Ci(a))};wA.prototype.setValuesList=function(a){return Ni(this,1,a)};wA.prototype.setValues=function(a,b){Gw(this,1,xA,a,b)};var xA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xA,W);h=xA.prototype;h.getValueCase=function(){return wo(this,yA)};h.getName=function(){return ui(this,1)};
h.setName=function(a){return oj(this,1,a)};h.hasName=function(){return im(this,1)};h.getNameOrUndefined=function(){return Sw(this,1)};h.getDescription=function(){return ui(this,2)};h.setDescription=function(a){return oj(this,2,a)};h.hasDescription=function(){return im(this,2)};h.getStringValue=function(){return yo(this,4,yA)};h.setStringValue=function(a){return Bo(this,4,yA,a)};h.hasStringValue=function(){return lr(this,4,yA)!=null};var yA=[3,4];var zA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zA,W);zA.prototype.addPreamble=function(a){zc(this,6,Sb,a,void 0,Tb)};var AA=function(){this.overrideOptions=new zA;this.overrideParentUrl="";this.isDarkMode$=new Mj(!1);this.overrideAppProvidedContext=new wA;this.overrideIsFirstTurnFromMoma=!0;this.overrideOnboardingExamplesList$=new Mj(void 0);this.debugDisplayOptions$=new Mj({showResponseMetadata:!1});this.overrideDisclaimer=this.overrideAgentMessageDisplayName=void 0};h=AA.prototype;h.getModelOverrideOptions=function(){return this.overrideOptions};
h.setAppProvidedContext=function(a){this.overrideAppProvidedContext=a};h.getAppProvidedContext=function(){return this.overrideAppProvidedContext};h.addPreamble=function(a){this.overrideOptions.addPreamble(a)};h.getDisallowRestrictedContent=function(){return!1};h.setOnboardingExamplesList=function(a){this.overrideOnboardingExamplesList$.next(a)};AA.\u0275fac=function(a){return new (a||AA)};AA.\u0275prov=Dc({token:AA,factory:AA.\u0275fac,providedIn:"root"});var zEc={ONBOARDING:1,THREAD:2,1:"ONBOARDING",2:"THREAD"},BA=function(){this.state$=new Mj({params:{},queryParams:{},activeView:1});this.events$=new qf;this.activeView$=this.state$.pipe(A(function(a){return a.activeView}),nf())},AEc=function(a){return a.filter(function(b){return typeof b==="string"}).join("")};BA.\u0275fac=function(a){return new (a||BA)};BA.\u0275prov=Dc({token:BA,factory:BA.\u0275fac,providedIn:"root"});var BEc=new dd("Location",{factory:function(){var a;return Object.assign({},window.location,{ancestorOrigins:(a=window.location.ancestorOrigins)!=null?a:[]})},providedIn:"root"}),CEc=new dd("Referrer",{factory:function(){return window.document.referrer},providedIn:"root"}),DEc=/^https?:\/\/[^\s,]+$/,EEc=/^go\/([^\s()<>]+)/,FEc=/^https:\/\/moma.corp.google.com.*/,GEc=new dd("DUCKIE_CLIENT",{providedIn:"root",factory:function(){return 1}});var CA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(CA,W);var DA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(DA,W);DA.prototype.getKindCase=function(){return wo(this,EA)};DA.prototype.getStringValue=function(){return yo(this,3,EA)};DA.prototype.setStringValue=function(a){return Bo(this,3,EA,a)};DA.prototype.hasStringValue=function(){return lr(this,3,EA)!=null};
var FA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(FA,W);FA.prototype.getValuesList=function(a){return Bi(this,DA,1,Ci(a))};FA.prototype.setValuesList=function(a){return Ni(this,1,a)};FA.prototype.setValues=function(a,b){Gw(this,1,DA,a,b)};var EA=[1,2,3,4,5,6];var GA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(GA,W);h=GA.prototype;h.getAgentId=function(){return ui(this,1)};h.setAgentId=function(a){return oj(this,1,a)};h.hasAgentId=function(){return im(this,1)};h.getModelId=function(){return ui(this,2)};h.setModelId=function(a){return oj(this,2,a)};h.setSystemInstruction=function(a){oj(this,3,a)};var Si=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Si,W);h=Si.prototype;h.getSeconds=function(){return pn(this,1)};h.getSeconds_asString=function(){return tn(this,1)};h.setSeconds=function(a){return Io(this,1,a)};h.getNanos=function(){return Bm(this,2)};h.setNanos=function(a){return an(this,2,a)};h.toDate=function(){var a=Number(this.getSeconds_asString()),b=this.getNanos();return new Date(a*1E3+b/1E6)};
h.fromMillis=function(a){Number.isFinite(a)||(a=0);return this.setSeconds(Math.floor(a/1E3)).setNanos((a%1E3+1E3)%1E3*1E6)};var ISa=function(a){return(new Si).fromMillis(a.getTime())};var HEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(HEc,W);h=HEc.prototype;h.getName=function(){return ui(this,1)};h.setName=function(a){return oj(this,1,a)};h.hasName=function(){return im(this,1)};h.getNameOrUndefined=function(){return Sw(this,1)};h.getArgs=function(){return X(this,CA,2)};h.getId=function(){return ui(this,3)};h.setId=function(a){return oj(this,3,a)};var IEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(IEc,W);h=IEc.prototype;h.getDataCase=function(){return wo(this,HA)};h.clearData=function(){return Iw(this,HA)};h.getText=function(){return yo(this,2,HA)};h.setText=function(a){return Bo(this,2,HA,a)};h.hasText=function(){return lr(this,2,HA)!=null};h.getFunctionCall=function(){return bm(this,HEc,3,HA)};h.hasFunctionCall=function(){return Qi(this,HEc,3,HA)};h.getThought=function(){return Fi(this,5)};
var HA=[2,3,4];var IA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(IA,W);h=IA.prototype;h.getPartsList=function(){return Bi(this,IEc,1,Ci())};h.addParts=function(a){return Np(this,1,IEc,a)};h.getRole=function(){return wi(this,2)};h.setRole=function(a){return Gn(this,2,a)};h.getAuthor=function(){return ui(this,3)};h.setAuthor=function(a){oj(this,3,a)};h.hasAuthor=function(){return im(this,3)};h.getMetadata=function(){return X(this,CA,4)};
h.getMutableMetadata=function(){return Ii(this,CA,4)};h.setMetadata=function(a){Mi(this,CA,4,a)};h.hasMetadata=function(){return xi(this,CA,4)};var JEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(JEc,W);h=JEc.prototype;h.getAgentId=function(){return ui(this,1)};h.setAgentId=function(a){return oj(this,1,a)};h.hasAgentId=function(){return im(this,1)};h.getAgentVersion=function(){return ui(this,2)};h.setAgentVersion=function(a){oj(this,2,a)};h.hasAgentVersion=function(){return im(this,2)};var Di=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Di,W);var KEc=function(a,b){return Ni(a,9,b)};var JA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(JA,W);h=JA.prototype;h.getFeedbackId=function(){return ui(this,1)};h.setFeedbackId=function(a){return oj(this,1,a)};h.getFeedbackType=function(){return wi(this,2)};h.setFeedbackType=function(a){return Gn(this,2,a)};h.hasFeedbackType=function(){return jm(this,2)};h.getFeedbackReason=function(){return ui(this,3)};h.setFeedbackReason=function(a){return oj(this,3,a)};h.hasFeedbackReason=function(){return im(this,3)};
h.getFeedbackLabelsList=function(){return Cm(this,4,Ci())};h.setFeedbackLabelsList=function(a){return Gm(this,4,a)};h.addAllFeedbackLabels=function(a){wq(this,4,a)};h.getCreationTimestamp=function(){return X(this,Si,5)};h.setCreationTimestamp=function(a){return Mi(this,Si,5,a)};h.getIsDeleted=function(){return Fi(this,6)};h.setIsDeleted=function(a){Oi(this,6,a)};h.getMessageId=function(){return ui(this,7)};h.setMessageId=function(a){return oj(this,7,a)};h.hasMessageId=function(){return im(this,7)};
h.getSessionId=function(){return ui(this,8)};h.setSessionId=function(a){return oj(this,8,a)};h.hasSessionId=function(){return im(this,8)};h.getHelpfulness=function(){return wi(this,9)};h.setHelpfulness=function(a){return Gn(this,9,a)};var KA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(KA,W);KA.prototype.getPrompt=function(){return ui(this,1)};KA.prototype.getLabel=function(){return ui(this,2)};KA.prototype.setLabel=function(a){return oj(this,2,a)};KA.prototype.hasLabel=function(){return im(this,2)};var pLa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pLa,W);h=pLa.prototype;h.getStartTime=function(){return X(this,Si,1)};h.setStartTime=function(a){Mi(this,Si,1,a)};h.getEndTime=function(){return X(this,Si,2)};h.setEndTime=function(a){Mi(this,Si,2,a)};h.hasEndTime=function(){return xi(this,Si,2)};h.getValue=function(){return em(this,3)};h.setValue=function(a){return Zw(this,3,a)};h.hasValue=function(){return fm(this,3,void 0,void 0,xb)!=null};var oLa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oLa,W);var qLa=[1];var LEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(LEc,W);LEc.prototype.getLabel=function(){return ui(this,1)};LEc.prototype.setLabel=function(a){return oj(this,1,a)};LEc.prototype.hasLabel=function(){return im(this,1)};var MEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(MEc,W);MEc.prototype.getTitle=function(){return ui(this,1)};MEc.prototype.setTitle=function(a){return oj(this,1,a)};var Isa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Isa,W);Isa.prototype.getButton=function(){return bm(this,KA,1,NEc)};Isa.prototype.getChart=function(){return bm(this,MEc,6,NEc)};var NEc=[1,2,3,4,5,6];var iOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iOa,W);h=iOa.prototype;h.getTitle=function(){return ui(this,1)};h.setTitle=function(a){return oj(this,1,a)};h.getUrl=function(){return ui(this,2)};h.setUrl=function(a){return oj(this,2,a)};h.hasUrl=function(){return im(this,2)};var OEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(OEc,W);var PEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(PEc,W);h=PEc.prototype;h.getTitle=function(){return ui(this,1)};h.setTitle=function(a){return oj(this,1,a)};h.getUrl=function(){return ui(this,2)};h.setUrl=function(a){return oj(this,2,a)};h.hasUrl=function(){return im(this,2)};h.getIconUrl=function(){return ui(this,3)};h.setIconUrl=function(a){return oj(this,3,a)};h.getLastModificationTime=function(){return X(this,Si,4)};
h.getIsPrivateDocument=function(){return Fi(this,7)};h.setIsPrivateDocument=function(a){return Oi(this,7,a)};var hVa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hVa,W);var lm=function(a){return Bi(a,PEc,1,Ci())};var QEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(QEc,W);QEc.prototype.setReferrerUrl=function(a){return oj(this,2,a)};var Nsa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nsa,W);Nsa.prototype.setReferrerUrl=function(a){return oj(this,1,a)};var Osa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Osa,W);h=Osa.prototype;h.getUrl=function(){return ui(this,1)};h.setUrl=function(a){return oj(this,1,a)};h.hasUrl=function(){return im(this,1)};h.getTitle=function(){return ui(this,2)};h.setTitle=function(a){return oj(this,2,a)};h.getTagsList=function(a){return Cm(this,3,Ci(a))};h.getTags=function(a){return Uw(this,3,a)};var Ai=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ai,W);var km=function(a){return bm(a,hVa,6,Ri)},Ri=[3,4,5,6,7];var REc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(REc,W);var SEc=[0,kEc,oEc,-1];var YNa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YNa,W);var aOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aOa,W);var cOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cOa,W);var LA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(LA,W);var hm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hm,W);var $0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($0a,W);$0a.prototype.getValue=function(){return pn(this,1)};$0a.prototype.setValue=function(a){return Io(this,1,a)};var Rq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rq,W);h=Rq.prototype;h.getTypeName=function(){return ui(this,1).split("/").pop()};h.pack=function(a,b,c){c=c===void 0?"type.googleapis.com/":c;c.substr(-1)!=="/"&&(c+="/");Fm(this,1,c+b);return No(this,2,a)};h.getValue=function(){var a=fm(this,2);if(Array.isArray(a)||a instanceof W)throw Error("ab");return Sn(this,2)};
h.setValue=function(a){if(a==null)a=this;else if(Array.isArray(a))a=Mr(this,2,Cda(a,0,cc));else if(typeof a==="string"||a instanceof Za||Pa(a))a=No(this,2,a);else throw Error("fa`"+a);return a};h.unpack=function(a,b){return zsa(this,void 0,a,b)};var Qq=function(a,b,c){return zsa(a,b,void 0,c)};var $m=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($m,W);h=$m.prototype;h.getYear=function(){return Bm(this,1)};h.setYear=function(a){return an(this,1,a)};h.getMonth=function(){return Bm(this,2)};h.setMonth=function(a){return an(this,2,a)};h.getDay=function(){return Bm(this,3)};var Cq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cq,W);var Z0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Z0a,W);Z0a.prototype.getValue=function(){return Bm(this,1)};Z0a.prototype.setValue=function(a){return an(this,1,a)};var b1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(b1a,W);b1a.prototype.getValue=function(){return Fi(this,1)};b1a.prototype.setValue=function(a){return Yo(this,1,a)};var dn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dn,W);h=dn.prototype;h.getSeconds=function(){return pn(this,1)};h.getSeconds_asString=function(){return tn(this,1)};h.setSeconds=function(a){return Io(this,1,a)};h.getNanos=function(){return Bm(this,2)};h.setNanos=function(a){return an(this,2,a)};h.fromMillis=function(a){if(!Number.isFinite(a))throw Error();var b=Math.trunc(a);a=(a-b+b%1E3)*1E6;return this.setSeconds(Math.trunc(b/1E3)).setNanos(Math.trunc(a))};var qr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qr,W);h=qr.prototype;h.getHours=function(){return Bm(this,1)};h.setHours=function(a){return an(this,1,a)};h.getMinutes=function(){return Bm(this,2)};h.setMinutes=function(a){return an(this,2,a)};h.getSeconds=function(){return Bm(this,3)};h.setSeconds=function(a){return an(this,3,a)};h.getNanos=function(){return Bm(this,4)};h.setNanos=function(a){return an(this,4,a)};var pTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pTa,W);var a1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(a1a,W);a1a.prototype.getValue=function(){return ui(this,1)};a1a.prototype.setValue=function(a){return Fm(this,1,a)};var MNa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(MNa,W);var TEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TEc,W);TEc.prototype.getAltText=function(){return Fl(this,2)};TEc.prototype.setAltText=function(a){return oj(this,2,a)};var gm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gm,W);gm.prototype.getIcon=function(){return X(this,TEc,3)};gm.prototype.setIcon=function(a){return Mi(this,TEc,3,a)};gm.prototype.getLastModificationTime=function(){return X(this,Si,4)};var RNa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(RNa,W);var UEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(UEc,W);h=UEc.prototype;h.getCode=function(){return Bm(this,1)};h.setCode=function(a){return En(this,1,a)};h.getCodeOrUndefined=function(){return Rw(this,1)};h.getMessage=function(){return ui(this,3)};h.setMessage=function(a){return oj(this,3,a)};var eOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eOa,W);var sOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,59)};Y(sOa,W);h=sOa.prototype;h.getGoogleSearchQuery=function(){return ui(this,1)};h.hasGoogleSearchQuery=function(){return im(this,1)};h.getTimestamp=function(){return X(this,Si,18)};h.setTimestamp=function(a){return Mi(this,Si,18,a)};h.hasTimestamp=function(){return xi(this,Si,18)};var VEc=[0,SEc,kEc];var WEc=[0,qEc,iEc];var rOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rOa,W);var qOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qOa,W);var tOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tOa,W);tOa.prototype.getGoogleSearchQuery=function(){return em(this,14)};tOa.prototype.hasGoogleSearchQuery=function(){return fm(this,14,void 0,void 0,xb)!=null};var Gsa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gsa,W);h=Gsa.prototype;h.getModelId=function(){return ui(this,1)};h.setModelId=function(a){return oj(this,1,a)};h.getModelOverrideOptions=function(){return X(this,zA,6)};h.setModelOverrideOptions=function(a){Mi(this,zA,6,a)};h.getCreationTimestamp=function(){return X(this,Si,9)};h.setCreationTimestamp=function(a){return Mi(this,Si,9,a)};h.getConversationAgentModelId=function(){return ui(this,13)};
h.setConversationAgentModelId=function(a){oj(this,13,a)};h.hasConversationAgentModelId=function(){return im(this,13)};h.getConversationAgentId=function(){return ui(this,14)};h.setConversationAgentId=function(a){return oj(this,14,a)};h.hasConversationAgentId=function(){return im(this,14)};var yi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yi,W);var XEc=function(a,b){return oj(a,2,b)};h=yi.prototype;h.getSourceLinkList=function(){return Cm(this,3,Ci())};h.setSourceLinkList=function(a){return Gm(this,3,a)};h.addAllSourceLink=function(a){wq(this,3,a)};h.getCreationTimestamp=function(){return X(this,Si,4)};h.setCreationTimestamp=function(a){return Mi(this,Si,4,a)};var Ji=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ji,W);h=Ji.prototype;h.getType=function(){return wi(this,1)};h.setType=function(a){return Gn(this,1,a)};h.hasType=function(){return jm(this,1)};h.getUrl=function(){return ui(this,2)};h.setUrl=function(a){return oj(this,2,a)};h.hasUrl=function(){return im(this,2)};var Pi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Pi,W);Pi.prototype.getUrl=function(){return yo(this,1,Gi)};Pi.prototype.setUrl=function(a){return Bo(this,1,Gi,a)};Pi.prototype.hasUrl=function(){return lr(this,1,Gi)!=null};var YEc=function(a){return bm(a,Ji,2,Gi)},Lsa=function(a,b){return Wo(a,2,Gi,b)},Gi=[1,2,3];var Li=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Li,W);h=Li.prototype;h.getMessageId=function(){return ui(this,1)};h.setMessageId=function(a){return oj(this,1,a)};h.hasMessageId=function(){return im(this,1)};h.getSessionId=function(){return ui(this,2)};h.setSessionId=function(a){return oj(this,2,a)};h.hasSessionId=function(){return im(this,2)};h.getText=function(){return ui(this,3)};h.setText=function(a){return oj(this,3,a)};
h.hasText=function(){return im(this,3)};h.getUserProvidedContextList=function(){return Bi(this,Pi,24,Ci())};h.setUserProvidedContextList=function(a){Ni(this,24,a)};h.addAllUserProvidedContext=function(a){Mp(this,24,Pi,a)};h.getUserProvidedContextCount=function(){return zi(this,Pi,24)};h.getAppProvidedContext=function(){return X(this,wA,23)};h.setAppProvidedContext=function(a){Mi(this,wA,23,a)};h.hasAppProvidedContext=function(){return xi(this,wA,23)};h.getModelId=function(){return ui(this,4)};
h.setModelId=function(a){return oj(this,4,a)};var Jsa=function(a,b){return Gn(a,5,b)};h=Li.prototype;h.getCreationTimestamp=function(){return X(this,Si,6)};h.setCreationTimestamp=function(a){return Mi(this,Si,6,a)};h.getClient=function(){return wi(this,7)};h.setClient=function(a){return Gn(this,7,a)};h.hasClient=function(){return jm(this,7)};h.getFeedback=function(){return X(this,JA,9)};h.setFeedback=function(a){return Mi(this,JA,9,a)};h.hasFeedback=function(){return xi(this,JA,9)};
var Ksa=function(a,b){Oi(a,20,b)};var MA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(MA,W);h=MA.prototype;h.getPrivacyMode=function(){return wi(this,1)};h.setPrivacyMode=function(a){return Gn(this,1,a)};h.hasPrivacyMode=function(){return jm(this,1)};h.getMessagesList=function(){return Bi(this,Li,2,Ci())};h.setMessagesList=function(a){return Ni(this,2,a)};var Esa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Esa,W);h=Esa.prototype;h.getSessionId=function(){return ui(this,1)};h.setSessionId=function(a){return oj(this,1,a)};h.hasSessionId=function(){return im(this,1)};h.getText=function(){return ui(this,2)};h.setText=function(a){return oj(this,2,a)};h.hasText=function(){return im(this,2)};h.getDisallowRestrictedContent=function(){return Fi(this,3)};h.setDisallowRestrictedContent=function(a){return Oi(this,3,a)};
h.hasDisallowRestrictedContent=function(){return Ei(this,3)};h.getConversationHistory=function(){return X(this,MA,4)};h.setConversationHistory=function(a){return Mi(this,MA,4,a)};h.hasConversationHistory=function(){return xi(this,MA,4)};h.getDuckieClient=function(){return wi(this,5)};h.setDuckieClient=function(a){return Gn(this,5,a)};h.getUserProvidedContextList=function(){return Bi(this,Pi,6,Ci())};h.setUserProvidedContextList=function(a){Ni(this,6,a)};
h.addAllUserProvidedContext=function(a){Mp(this,6,Pi,a)};h.getUserProvidedContextCount=function(){return zi(this,Pi,6)};h.getAppProvidedContext=function(){return X(this,wA,7)};h.setAppProvidedContext=function(a){Mi(this,wA,7,a)};h.hasAppProvidedContext=function(){return xi(this,wA,7)};h.getConversationAgent=function(){return X(this,GA,8)};h.setConversationAgent=function(a){return Mi(this,GA,8,a)};h.hasConversationAgent=function(){return xi(this,GA,8)};var ZEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ZEc,W);h=ZEc.prototype;h.getSessionId=function(){return ui(this,1)};h.setSessionId=function(a){return oj(this,1,a)};h.hasSessionId=function(){return im(this,1)};h.getMessagesList=function(){return Bi(this,Li,2,Ci())};h.setMessagesList=function(a){return Ni(this,2,a)};h.getConversationAgentModelId=function(){return ui(this,13)};h.setConversationAgentModelId=function(a){oj(this,13,a)};
h.hasConversationAgentModelId=function(){return im(this,13)};h.getConversationAgentId=function(){return ui(this,14)};h.setConversationAgentId=function(a){return oj(this,14,a)};h.hasConversationAgentId=function(){return im(this,14)};h.getModelId=function(){return ui(this,3)};h.setModelId=function(a){return oj(this,3,a)};h.getAgentId=function(){return ui(this,10)};h.setAgentId=function(a){return oj(this,10,a)};h.hasAgentId=function(){return im(this,10)};h.getAgentVersion=function(){return ui(this,11)};
h.setAgentVersion=function(a){oj(this,11,a)};h.hasAgentVersion=function(){return im(this,11)};h.getTitle=function(){return ui(this,5)};h.setTitle=function(a){return oj(this,5,a)};h.getSessionState=function(){return wi(this,6)};h.setSessionState=function(a){return Gn(this,6,a)};h.hasSessionState=function(){return jm(this,6)};h.getPrivacyMode=function(){return wi(this,9)};h.setPrivacyMode=function(a){return Gn(this,9,a)};h.hasPrivacyMode=function(){return jm(this,9)};
h.getCreationTimestamp=function(){return X(this,Si,7)};h.setCreationTimestamp=function(a){return Mi(this,Si,7,a)};h.getUserProvidedContextList=function(){return Bi(this,Pi,12,Ci())};h.setUserProvidedContextList=function(a){Ni(this,12,a)};h.addAllUserProvidedContext=function(a){Mp(this,12,Pi,a)};h.getUserProvidedContextCount=function(){return zi(this,Pi,12)};h.getHelpfulness=function(){return wi(this,15)};h.setHelpfulness=function(a){return Gn(this,15,a)};var $Ec=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=!1;this.autoFocus="first-tabbable";this.closeOnNavigation=this.delayFocusTrap=this.restoreFocus=!0};var aFc=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=!1;this.autoFocus="first-tabbable";this.closeOnOverlayDetachments=this.closeOnDestroy=this.closeOnNavigation=this.restoreFocus=!0;this.disableAnimations=!1};var NA=function(){this._isDisposed=!1;this._elementRef=p(Hd);this._focusTrapFactory=p(Vy);this._interactivityChecker=p(Qy);this._ngZone=p(Rg);this._focusMonitor=p(Ny);this._renderer=p(ci);this._changeDetectorRef=p(Cx);this._injector=p(ye);this._platform=p(Vh);this._document=p(Rh);this._focusTrapped=new qf;this._closeInteractionType=this._elementFocusedBeforeDialogWasOpened=this._focusTrap=null;this._ariaLabelledByQueue=[];this._isDestroyed=!1;this._config=p(aFc,{optional:!0})||new aFc;this._config.ariaLabelledBy&&
this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)};Y(NA,Pz);h=NA.prototype;h._addAriaLabelledBy=function(a){this._ariaLabelledByQueue.push(a);this._changeDetectorRef.markForCheck()};h._removeAriaLabelledBy=function(a){a=this._ariaLabelledByQueue.indexOf(a);a>-1&&(this._ariaLabelledByQueue.splice(a,1),this._changeDetectorRef.markForCheck())};h._contentAttached=function(){this._initializeFocusTrap();this._captureInitialFocus()};h._captureInitialFocus=function(){this._trapFocus()};
h.ngOnDestroy=function(){this._focusTrapped.complete();this._isDestroyed=!0;this._restoreFocus()};h.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._contentAttached();return a};h.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._contentAttached();return a};h._recaptureFocus=function(){this._containsFocus()||this._trapFocus()};
h._forceFocus=function(a,b){var c=this;this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var d=function(){e();f();a.removeAttribute("tabindex")},e=c._renderer.listen(a,"blur",d),f=c._renderer.listen(a,"mousedown",d)}));a.focus(b)};h._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};
h._trapFocus=function(a){var b=this;this._isDestroyed||Ee(function(){var c=b._elementRef.nativeElement;switch(b._config.autoFocus){case !1:case "dialog":b._containsFocus()||c.focus(a);break;case !0:case "first-tabbable":var d;((d=b._focusTrap)==null?0:d.focusInitialElement(a))||b._focusDialogContainer(a);break;case "first-heading":b._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',a);break;default:b._focusByCssSelector(b._config.autoFocus,a)}b._focusTrapped.next()},{injector:this._injector})};
h._restoreFocus=function(){var a=this._config.restoreFocus,b=null;typeof a==="string"?b=this._document.querySelector(a):typeof a==="boolean"?b=a?this._elementFocusedBeforeDialogWasOpened:null:a&&(b=a);if(this._config.restoreFocus&&b&&typeof b.focus==="function"){a=Ih();var c=this._elementRef.nativeElement;if(!a||a===this._document.body||a===c||c.contains(a))this._focusMonitor?(Oy(this._focusMonitor,b,this._closeInteractionType),this._closeInteractionType=null):b.focus()}this._focusTrap&&this._focusTrap.destroy()};
h._focusDialogContainer=function(a){var b,c;(c=(b=this._elementRef.nativeElement).focus)==null||c.call(b,a)};h._containsFocus=function(){var a=this._elementRef.nativeElement,b=Ih();return a===b||a.contains(b)};h._initializeFocusTrap=function(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Ih()))};NA.\u0275fac=function(a){return new (a||NA)};
NA.\u0275cmp=D({type:NA,selectors:[["cdk-dialog-container"]],viewQuery:function(a,b){a&1&&hg(Rz,7);if(a&2){var c;lg(c=mg())&&(b._portalOutlet=c.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(a,b){a&2&&If("id",b._config.id||null)("role",b._config.role)("aria-modal",b._config.ariaModal)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledByQueue[0])("aria-label",b._config.ariaLabel)("aria-describedby",b._config.ariaDescribedBy||null)},features:[Ef],
decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&E(0,Tsa,0,0,"ng-template",0)},dependencies:[Rz],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2});var bFc=new dd("DialogScrollStrategy",{providedIn:"root",factory:function(){var a=p(ye);return function(){return mra(a)}}}),cFc=new dd("DialogData"),dFc=new dd("DefaultDialogConfig");var eFc=function(a,b){var c=this;this.overlayRef=a;this.config=b;this.closed=new qf;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){d.keyCode!==27||c.disableClose||Gh(d)||(d.preventDefault(),c.close(void 0,{focusOrigin:"keyboard"}))});this.backdropClick.subscribe(function(){if(!c.disableClose&&c._canClose())c.close(void 0,{focusOrigin:"mouse"});
else{var d,e;(e=(d=c.containerInstance)._recaptureFocus)==null||e.call(d)}});this._detachSubscription=a._detachments.subscribe(function(){b.closeOnOverlayDetachments!==!1&&c.close()})};h=eFc.prototype;h.close=function(a,b){if(this._canClose(a)){var c=this.closed;this.containerInstance._closeInteractionType=(b==null?void 0:b.focusOrigin)||"program";this._detachSubscription.unsubscribe();this.overlayRef.dispose();c.next(a);c.complete();this.componentInstance=this.containerInstance=null}};
h.updatePosition=function(){this.overlayRef.updatePosition()};h.updateSize=function(a,b){this.overlayRef.updateSize({width:a===void 0?"":a,height:b===void 0?"":b})};h.addPanelClass=function(a){this.overlayRef.addPanelClass(a)};h.removePanelClass=function(a){this.overlayRef.removePanelClass(a)};h._canClose=function(a){var b=this.config;return!!this.containerInstance&&(!b.closePredicate||b.closePredicate(a,b,this.componentInstance))};var OA=function(){this._injector=p(ye);this._defaultOptions=p(dFc,{optional:!0});this._parentDialog=p(OA,{optional:!0,skipSelf:!0});this._overlayContainer=p(Wh);this._idGenerator=p(ai);this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new qf;this._afterOpenedAtThisLevel=new qf;this._ariaHiddenElements=new Map;this._scrollStrategy=p(bFc)};h=OA.prototype;
h.open=function(a,b){var c=this;b=Object.assign({},this._defaultOptions||new aFc,b);b.id=b.id||this._idGenerator.getId("cdk-dialog-");b.id&&this.getDialogById(b.id);var d=this._getOverlayConfig(b);d=ki(this._injector,d);var e=new eFc(d,b);d=this._attachContainer(d,e,b);e.containerInstance=d;if(!this.openDialogs.length){var f=tra(this._overlayContainer);d._focusTrapped?d._focusTrapped.pipe(lf(1)).subscribe(function(){c._hideNonDialogContentFromAssistiveTechnology(f)}):this._hideNonDialogContentFromAssistiveTechnology(f)}this._attachDialogContent(a,
e,d,b);this.openDialogs.push(e);e.closed.subscribe(function(){return c._removeOpenDialog(e,!0)});this.afterOpened.next(e);return e};h.closeAll=function(){Vsa(this.openDialogs,function(a){return a.close()})};h.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};
h.ngOnDestroy=function(){var a=this;Vsa(this._openDialogsAtThisLevel,function(b){b.config.closeOnDestroy===!1&&a._removeOpenDialog(b,!1)});Vsa(this._openDialogsAtThisLevel,function(b){return b.close()});this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete();this._openDialogsAtThisLevel=[]};
h._getOverlayConfig=function(a){var b=new di({positionStrategy:a.positionStrategy||gDc(Jz(new Iz(this._injector))),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,disableAnimations:a.disableAnimations});a.backdropClass&&(b.backdropClass=a.backdropClass);return b};
h._attachContainer=function(a,b,c){var d,e=c.injector||((d=c.viewContainerRef)==null?void 0:d.injector);b=[{provide:aFc,useValue:c},{provide:eFc,useValue:b},{provide:ei,useValue:a}];c.container?typeof c.container==="function"?d=c.container:(d=c.container.type,b.push.apply(b,q(c.container.providers(c)))):d=NA;c=new Nz(d,c.viewContainerRef,Yg({parent:e||this._injector,providers:b}));return a.attach(c).instance};
h._attachDialogContent=function(a,b,c,d){if(a instanceof dg){var e=this._createInjector(d,b,c,void 0);b={$implicit:d.data,dialogRef:b};d.templateContext&&(b=Object.assign({},b,typeof d.templateContext==="function"?d.templateContext():d.templateContext));c.attachTemplatePortal(new Oz(a,null,b,e))}else e=this._createInjector(d,b,c,this._injector),a=c.attachComponentPortal(new Nz(a,d.viewContainerRef,e)),b.componentRef=a,b.componentInstance=a.instance};
h._createInjector=function(a,b,c,d){var e,f=a.injector||((e=a.viewContainerRef)==null?void 0:e.injector);e=[{provide:cFc,useValue:a.data},{provide:eFc,useValue:b}];a.providers&&(typeof a.providers==="function"?e.push.apply(e,q(a.providers(b,a,c))):e.push.apply(e,q(a.providers)));!a.direction||f&&f.get(bi,null,{optional:!0})||e.push({provide:bi,useValue:Usa(a.direction)});return Yg({parent:f||d,providers:e})};
h._removeOpenDialog=function(a,b){a=this.openDialogs.indexOf(a);a>-1&&(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()))};
h._hideNonDialogContentFromAssistiveTechnology=function(a){if(a.parentElement)for(var b=a.parentElement.children,c=b.length-1;c>-1;c--){var d=b[c];d===a||d.nodeName==="SCRIPT"||d.nodeName==="STYLE"||d.hasAttribute("aria-live")||d.hasAttribute("popover")||(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}};h._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
da.Object.defineProperties(OA.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}}});OA.\u0275fac=function(a){return new (a||OA)};OA.\u0275prov=Dc({token:OA,factory:OA.\u0275fac,providedIn:"root"});var PA=function(){};PA.\u0275fac=function(a){return new (a||PA)};PA.\u0275mod=$e({type:PA});PA.\u0275inj=Fc({providers:[OA],imports:[Wz,Sz,ez,Sz]});var QA=function(){NA.apply(this,arguments);var a=this;this._animationStateChanged=new Ti;this._animationsEnabled=!mi();this._actionSectionCount=0;this._hostElement=this._elementRef.nativeElement;var b;this._enterAnimationDuration=this._animationsEnabled?(b=Xsa(this._config.enterAnimationDuration))!=null?b:150:0;var c;this._exitAnimationDuration=this._animationsEnabled?(c=Xsa(this._config.exitAnimationDuration))!=null?c:75:0;this._animationTimer=null;this._finishDialogOpen=function(){a._clearAnimationClasses();
a._openAnimationDone(a._enterAnimationDuration)};this._finishDialogClose=function(){a._clearAnimationClasses();a._animationStateChanged.emit({state:"closed",totalTime:a._exitAnimationDuration})}};Y(QA,NA);h=QA.prototype;h._contentAttached=function(){NA.prototype._contentAttached.call(this);this._startOpenAnimation()};
h._startOpenAnimation=function(){var a=this;this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration});this._animationsEnabled?(this._hostElement.style.setProperty("--mat-dialog-transition-duration",this._enterAnimationDuration+"ms"),this._requestAnimationFrame(function(){return a._hostElement.classList.add("mdc-dialog--opening","mdc-dialog--open")}),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add("mdc-dialog--open"),
Promise.resolve().then(function(){return a._finishDialogOpen()}))};
h._startExitAnimation=function(){var a=this;this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration});this._hostElement.classList.remove("mdc-dialog--open");this._animationsEnabled?(this._hostElement.style.setProperty("--mat-dialog-transition-duration",this._exitAnimationDuration+"ms"),this._requestAnimationFrame(function(){return a._hostElement.classList.add("mdc-dialog--closing")}),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):
Promise.resolve().then(function(){return a._finishDialogClose()})};h._updateActionSectionCount=function(a){this._actionSectionCount+=a;this._changeDetectorRef.markForCheck()};h._clearAnimationClasses=function(){this._hostElement.classList.remove("mdc-dialog--opening","mdc-dialog--closing")};h._waitForAnimationToComplete=function(a,b){this._animationTimer!==null&&clearTimeout(this._animationTimer);this._animationTimer=setTimeout(b,a)};
h._requestAnimationFrame=function(a){this._ngZone.runOutsideAngular(function(){typeof requestAnimationFrame==="function"?requestAnimationFrame(a):a()})};h._captureInitialFocus=function(){this._config.delayFocusTrap||this._trapFocus()};h._openAnimationDone=function(a){this._config.delayFocusTrap&&this._trapFocus();this._animationStateChanged.next({state:"opened",totalTime:a})};h.ngOnDestroy=function(){NA.prototype.ngOnDestroy.call(this);this._animationTimer!==null&&clearTimeout(this._animationTimer)};
h.attachComponentPortal=function(a){a=NA.prototype.attachComponentPortal.call(this,a);a.location.nativeElement.classList.add("mat-mdc-dialog-component-host");return a};QA.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(QA)))(b||QA)}}();
QA.\u0275cmp=D({type:QA,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(a,b){a&2&&(Pf("id",b._config.id),If("aria-modal",b._config.ariaModal)("role",b._config.role)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledByQueue[0])("aria-label",b._config.ariaLabel)("aria-describedby",b._config.ariaDescribedBy||null),wg("_mat-animation-noopable",!b._animationsEnabled)("mat-mdc-dialog-container-with-actions",
b._actionSectionCount>0))},features:[Ef],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(a){a&1&&(K(0,"div",0)(1,"div",1),E(2,Wsa,0,0,"ng-template",2),L()())},dependencies:[Rz],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}\n'],
encapsulation:2});var RA=function(a,b,c){var d=this;this._ref=a;this._config=b;this._containerInstance=c;this._afterOpened=new uf(1);this._beforeClosed=new uf(1);this._state=0;this.disableClose=b.disableClose;this.id=a.id;a.addPanelClass("mat-mdc-dialog-panel");c._animationStateChanged.pipe(ue(function(e){return e.state==="opened"}),lf(1)).subscribe(function(){d._afterOpened.next();d._afterOpened.complete()});c._animationStateChanged.pipe(ue(function(e){return e.state==="closed"}),lf(1)).subscribe(function(){clearTimeout(d._closeFallbackTimeout);
d._finishDialogClose()});a.overlayRef._detachments.subscribe(function(){d._beforeClosed.next(d._result);d._beforeClosed.complete();d._finishDialogClose()});te(this.backdropClick(),this.keydownEvents().pipe(ue(function(e){return e.keyCode===27&&!d.disableClose&&!Gh(e)}))).subscribe(function(e){d.disableClose||(e.preventDefault(),d._closeInteractionType=e.type==="keydown"?"keyboard":"mouse",d.close(void 0))})};
RA.prototype.close=function(a){var b=this,c=this._config.closePredicate;if(!c||c(a,this._config,this.componentInstance))this._result=a,this._containerInstance._animationStateChanged.pipe(ue(function(d){return d.state==="closing"}),lf(1)).subscribe(function(d){b._beforeClosed.next(a);b._beforeClosed.complete();XCc(b._ref.overlayRef);b._closeFallbackTimeout=setTimeout(function(){return b._finishDialogClose()},d.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()};
RA.prototype.afterOpened=function(){return this._afterOpened};var SA=function(a){return a._ref.closed};h=RA.prototype;h.backdropClick=function(){return this._ref.backdropClick};h.keydownEvents=function(){return this._ref.keydownEvents};h.updatePosition=function(a){var b=this._ref.config.positionStrategy;a&&(a.left||a.right)?a.left?b.left(a.left):b.right(a.right):Jz(b);a&&(a.top||a.bottom)?a.top?b.top(a.top):b.bottom(a.bottom):gDc(b);this._ref.updatePosition()};
h.updateSize=function(a,b){this._ref.updateSize(a===void 0?"":a,b===void 0?"":b)};h.addPanelClass=function(a){this._ref.addPanelClass(a)};h.removePanelClass=function(a){this._ref.removePanelClass(a)};h.getState=function(){return this._state};h._finishDialogClose=function(){this._state=2;this._ref.close(this._result,{focusOrigin:this._closeInteractionType});this.componentInstance=null};var TA=new dd("MatMdcDialogData"),fFc=new dd("mat-mdc-dialog-default-options"),gFc=new dd("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:function(){var a=p(ye);return function(){return mra(a)}}}),UA=function(){this._defaultOptions=p(fFc,{optional:!0});this._scrollStrategy=p(gFc);this._parentDialog=p(UA,{optional:!0,skipSelf:!0});this._idGenerator=p(ai);this._injector=p(ye);this._dialog=p(OA);this._animationsDisabled=mi();this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=
new qf;this._afterOpenedAtThisLevel=new qf;this.dialogConfigClass=$Ec;this._dialogRefConstructor=RA;this._dialogContainerType=QA;this._dialogDataToken=TA};h=UA.prototype;h._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
h.open=function(a,b){var c=this,d;b=Object.assign({},this._defaultOptions||new $Ec,b);b.id=b.id||this._idGenerator.getId("mat-mdc-dialog-");b.scrollStrategy=b.scrollStrategy||this._scrollStrategy();var e,f;a=this._dialog.open(a,Object.assign({},b,{positionStrategy:gDc(Jz(new Iz(this._injector))),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||((e=b.enterAnimationDuration)==null?void 0:e.toLocaleString())==="0"||((f=b.exitAnimationDuration)==
null?void 0:f.toString())==="0",container:{type:this._dialogContainerType,providers:function(){return[{provide:c.dialogConfigClass,useValue:b},{provide:aFc,useValue:b}]}},templateContext:function(){return{dialogRef:d}},providers:function(g,k,l){d=new c._dialogRefConstructor(g,b,l);var r;d.updatePosition((r=b)==null?void 0:r.position);return[{provide:c._dialogContainerType,useValue:l},{provide:c._dialogDataToken,useValue:k.data},{provide:c._dialogRefConstructor,useValue:d}]}}));d.componentRef=a.componentRef;
d.componentInstance=a.componentInstance;this.openDialogs.push(d);this.afterOpened.next(d);SA(d).subscribe(function(){var g=c.openDialogs.indexOf(d);g>-1&&(c.openDialogs.splice(g,1),c.openDialogs.length||c._getAfterAllClosed().next())});return d};h.closeAll=function(){this._closeDialogs(this.openDialogs)};h.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};
h.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel);this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete()};h._closeDialogs=function(a){for(var b=a.length;b--;)a[b].close()};
da.Object.defineProperties(UA.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}}});UA.\u0275fac=function(a){return new (a||UA)};UA.\u0275prov=Dc({token:UA,factory:UA.\u0275fac,providedIn:"root"});var VA=function(){this.dialogRef=p(RA,{optional:!0});this._elementRef=p(Hd);this._dialog=p(UA);this.type="button"};VA.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=Ysa(this._elementRef,this._dialog.openDialogs))};VA.prototype.ngOnChanges=function(a){if(a=a._matDialogClose||a._matDialogCloseResult)this.dialogResult=a.currentValue};
VA.prototype._onButtonClick=function(a){var b=this.dialogRef,c=this.dialogResult;b._closeInteractionType=a.screenX===0&&a.screenY===0?"keyboard":"mouse";b.close(c)};VA.\u0275fac=function(a){return new (a||VA)};
VA.\u0275dir=af({type:VA,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(a,b){a&1&&N("click",function(c){return b._onButtonClick(c)});a&2&&If("aria-label",b.ariaLabel||null)("type",b.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[jx]});
var WA=function(){this._dialogRef=p(RA,{optional:!0});this._elementRef=p(Hd);this._dialog=p(UA)};WA.prototype.ngOnInit=function(){var a=this;this._dialogRef||(this._dialogRef=Ysa(this._elementRef,this._dialog.openDialogs));this._dialogRef&&Promise.resolve().then(function(){a._onAdd()})};WA.prototype.ngOnDestroy=function(){var a=this,b;((b=this._dialogRef)==null?0:b._containerInstance)&&Promise.resolve().then(function(){a._onRemove()})};WA.\u0275fac=function(a){return new (a||WA)};WA.\u0275dir=af({type:WA});
var XA=function(){WA.apply(this,arguments);this.id=p(ai).getId("mat-mdc-dialog-title-")};Y(XA,WA);XA.prototype._onAdd=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._addAriaLabelledBy)==null||b.call(a,this.id)};XA.prototype._onRemove=function(){var a,b,c;(a=this._dialogRef)==null||(b=a._containerInstance)==null||(c=b._removeAriaLabelledBy)==null||c.call(b,this.id)};XA.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(XA)))(b||XA)}}();
XA.\u0275dir=af({type:XA,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(a,b){a&2&&Pf("id",b.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[Ef]});var YA=function(){};YA.\u0275fac=function(a){return new (a||YA)};
YA.\u0275dir=af({type:YA,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[function(a){var b=function(c){var d=Array.isArray(a);c.hostDirectives===null?(c.resolveHostDirectives=Nla,c.hostDirectives=d?a.map(Pla):[a]):d?c.hostDirectives.unshift.apply(c.hostDirectives,q(a.map(Pla))):c.hostDirectives.unshift(a)};b.ngInherit=!0;return b}([wz])]});var ZA=function(){WA.apply(this,arguments)};
Y(ZA,WA);ZA.prototype._onAdd=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._updateActionSectionCount)==null||b.call(a,1)};ZA.prototype._onRemove=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._updateActionSectionCount)==null||b.call(a,-1)};ZA.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(ZA)))(b||ZA)}}();
ZA.\u0275dir=af({type:ZA,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(a,b){a&2&&wg("mat-mdc-dialog-actions-align-start",b.align==="start")("mat-mdc-dialog-actions-align-center",b.align==="center")("mat-mdc-dialog-actions-align-end",b.align==="end")},inputs:{align:"align"},features:[Ef]});var $A=function(){};$A.\u0275fac=function(a){return new (a||$A)};$A.\u0275mod=$e({type:$A});$A.\u0275inj=Fc({providers:[UA],imports:[PA,Wz,Sz,Ky]});var hFc=[[["xap-dialog-layout-title"]],[["xap-dialog-layout-subtitle"]],[["xap-dialog-layout-content"]],[["xap-dialog-layout-actions"]]],iFc=function(){};iFc.\u0275fac=function(a){return new (a||iFc)};iFc.\u0275dir=af({type:iFc,selectors:[["xap-dialog-layout-subtitle"]]});var aB=function(){this.el=p(Hd);this.cdRef=p(Cx);this.ngZone=p(Rg);this.destroyed=new uf;this.internalScrollable=!1;this.internalScrollPosition="bottom"};
aB.prototype.ngOnInit=function(){var a=this;this.internalScrollPosition=this.getScrollPosition(this.el.nativeElement);this.ngZone.runOutsideAngular(function(){jFc(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollable=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})});kFc(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollPosition=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})})})};aB.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
var jFc=function(a){if(!window.ResizeObserver)return ce(lFc(a.el.nativeElement));var b;return Wha(function(c){b=new ResizeObserver(function(){c(lFc(a.el.nativeElement))});b.observe(a.el.nativeElement)},function(){b.disconnect()}).pipe(nf(),zf(a.destroyed))},kFc=function(a){return pe(a.el.nativeElement,"scroll").pipe(Ssa(),A(function(){return a.getScrollPosition(a.el.nativeElement)}),nf(),zf(a.destroyed))},lFc=function(a){return a.offsetHeight+a.scrollTop<=a.scrollHeight};
aB.prototype.getScrollPosition=function(a){return a.scrollTop===0?"top":a.offsetHeight+a.scrollTop>=a.scrollHeight?"bottom":"center"};da.Object.defineProperties(aB.prototype,{scrollable:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollable}},scrollPosition:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollPosition}}});aB.\u0275fac=function(a){return new (a||aB)};
aB.\u0275dir=af({type:aB,selectors:[["xap-dialog-layout-content"]],hostAttrs:[1,"xap-dialog-layout-content"],hostVars:6,hostBindings:function(a,b){a&2&&wg("xap-dialog-layout-content-scrollable",b.scrollable)("xap-dialog-layout-bottom-scroll-stroke",b.scrollPosition!=="bottom")("xap-dialog-layout-top-scroll-stroke",b.scrollPosition!=="top")}});var bB=function(){};bB.\u0275fac=function(a){return new (a||bB)};
bB.\u0275cmp=D({type:bB,selectors:[["xap-dialog-layout"]],contentQueries:function(a,b,c){a&1&&ig(c,iFc,4);if(a&2){var d;lg(d=mg())&&(b.subtitle=d)}},hostAttrs:[1,"xap-dialog-layout"],hostVars:2,hostBindings:function(a,b){a&2&&wg("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&&(bg(hFc),
Qf(0,"header",0),cg(1),cg(2,1),Rf(),cg(3,2),cg(4,3))},styles:[".xap-dialog-layout{display:block;padding:24px 24px 8px;overflow-x:hidden}xap-dialog-layout-title{display:block;padding:0;color:var(--xap-dialog-layout-title-text-color)}xap-dialog-layout-subtitle{display:block;padding:0 0 16px;color:var(--xap-dialog-layout-subtitle-text-color)}xap-dialog-layout-content{display:block;padding:0 0 16px;color:var(--xap-dialog-layout-content-text-color)}xap-dialog-layout-actions{color:var(--xap-dialog-layout-actions-text-color)}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 Ol=function(a,b){this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._originalOnDoneFns=[];this._originalOnStartFns=[];this._finished=this._destroyed=this._started=!1;this._position=0;this.parentPlayer=null;this.totalTime=(a===void 0?0:a)+(b===void 0?0:b)};h=Ol.prototype;h._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};h.onStart=function(a){this._originalOnStartFns.push(a);this._onStartFns.push(a)};
h.onDone=function(a){this._originalOnDoneFns.push(a);this._onDoneFns.push(a)};h.onDestroy=function(a){this._onDestroyFns.push(a)};h.hasStarted=function(){return this._started};h.init=function(){};h.play=function(){this.hasStarted()||(this._onStart(),mFc(this));this._started=!0};var mFc=function(a){queueMicrotask(function(){return a._onFinish()})};h=Ol.prototype;h._onStart=function(){this._onStartFns.forEach(function(a){return a()});this._onStartFns=[]};h.pause=function(){};h.restart=function(){};
h.finish=function(){this._onFinish()};h.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};h.reset=function(){this._finished=this._started=!1;this._onStartFns=this._originalOnStartFns;this._onDoneFns=this._originalOnDoneFns};h.setPosition=function(a){this._position=this.totalTime?a*this.totalTime:1};
h.getPosition=function(){return this.totalTime?this._position/this.totalTime:1};h.triggerCallback=function(a){a=a=="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};var YGa=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;f==0?queueMicrotask(function(){return b._onFinish()}):this.players.forEach(function(g){g.onDone(function(){++c==f&&b._onFinish()});g.onDestroy(function(){++d==f&&b._onDestroy()});g.onStart(function(){++e==f&&b._onStart()})});this.totalTime=this.players.reduce(function(g,
k){return Math.max(g,k.totalTime)},0)};h=YGa.prototype;h._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};h.init=function(){this.players.forEach(function(a){return a.init()})};h.onStart=function(a){this._onStartFns.push(a)};h._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[])};h.onDone=function(a){this._onDoneFns.push(a)};h.onDestroy=function(a){this._onDestroyFns.push(a)};
h.hasStarted=function(){return this._started};h.play=function(){this.parentPlayer||this.init();this._onStart();this.players.forEach(function(a){return a.play()})};h.pause=function(){this.players.forEach(function(a){return a.pause()})};h.restart=function(){this.players.forEach(function(a){return a.restart()})};h.finish=function(){this._onFinish();this.players.forEach(function(a){return a.finish()})};h.destroy=function(){this._onDestroy()};
h._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=[])};h.reset=function(){this.players.forEach(function(a){return a.reset()});this._started=this._finished=this._destroyed=!1};h.setPosition=function(a){var b=a*this.totalTime;this.players.forEach(function(c){c.setPosition(c.totalTime?Math.min(1,b/c.totalTime):1)})};
h.getPosition=function(){var a=this.players.reduce(function(b,c){return b===null||c.totalTime>b.totalTime?c:b},null);return a!=null?a.getPosition():0};h.beforeDestroy=function(){this.players.forEach(function(a){a.beforeDestroy&&a.beforeDestroy()})};h.triggerCallback=function(a){a=a=="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};var nFc=Vi({opacity:0}),oFc=Vi({opacity:1}),pFc=Zsa("dialogContainer",[Xi("void, hidden",nFc),Xi("visible",oFc),Yi("void => *, * => visible",Ui("200ms cubic-bezier(0.0,0.0,0.2,1)",oFc)),Yi("* => void, * => hidden",Ui("200ms cubic-bezier(0.4,0.0,0.2,1)",nFc))]);var qFc=new dd("XAP_IDCO"),cB=function(){Pz.apply(this,arguments);this.portalOutlet=Pg.required(Rz);this.animationState="hidden";this.options=p(qFc);this.changeDetector=p(Cx)};Y(cB,Pz);cB.prototype.ngAfterViewInit=function(){};cB.prototype.attachComponentPortal=function(a){return this.portalOutlet().attachComponentPortal(a)};cB.prototype.attachTemplatePortal=function(a){return this.portalOutlet().attachTemplatePortal(a)};var rFc=function(a,b){a.animationState=b?"visible":"hidden";a.changeDetector.markForCheck()};
cB.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(cB)))(b||cB)}}();
cB.\u0275cmp=D({type:cB,selectors:[["xap-inline-dialog-container"]],viewQuery:function(a,b){a&1&&og(b.portalOutlet,Rz);a&2&&pg()},hostAttrs:["role","dialog",1,"xap-inline-dialog-container","gmat-body-2"],hostVars:3,hostBindings:function(a,b){a&2&&(Ema("@dialogContainer",b.animationState),If("aria-label",b.options.dialogLabel)("tabindex",b.options.dialogTabIndex))},features:[Ef],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["cdkFocusInitial","","tabindex","0"]],template:function(a){a&1&&(K(0,"div"),
E(1,$sa,1,0,"ng-template",0),L())},dependencies:[ez,Sz,Rz],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:[pFc]},changeDetection:0});var sFc=[{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}],tFc={minWidth:220,maxWidth:420,minHeight:64,maxHeight:420},dB=function(){var a=this;this.disabledInternal=!1;this.dialogLabel=null;this.dialogTabIndex=-1;this.overlayDimensions=tFc;this.triggerDescription=
"Press space for more information.";this.forceTrapFocus=this.disableAutoFocusInternal=!1;this.scrollStrategy="close";this.stackLocation=0;this.beforeOpened=new Ti;this.opened=new Ti;this.closed=new Ti;this.destroyed=new uf;this.openStatusChange=new Mj(!1);this.openings=this.openStatusChange.pipe(ue(function(b){return b&&!a.disabled}));this.elementFocusedBeforeDialogWasOpened=void 0;this.ngZone=p(Rg);this.overlay=p(Tz);this.elementRef=p(Hd);this.viewContainerRef=p(eg);this.document=p(Rh);this.focusTrapFactory=
p(kz);this.ariaDescriber=p(fz);this.injector=p(ye);uFc(this,this.elementRef.nativeElement);this.attachKeyboardCloseEventListeners(this.elementRef.nativeElement);vFc(this,this.elementRef.nativeElement)};dB.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.hasAttribute("aria-haspopup")||a.setAttribute("aria-haspopup","dialog");a.hasAttribute("aria-describedby")||gz(this.ariaDescriber,a,this.triggerDescription)};
dB.prototype.ngOnDestroy=function(){this.closeDialog();this.openStatusChange.complete();this.destroyed.next();this.destroyed.complete();this.overlayRef&&this.overlayRef.dispose()};
var uFc=function(a,b){a.ngZone.runOutsideAngular(function(){pe(b,"keydown").pipe(zf(a.destroyed)).subscribe(function(c){switch(c.key){case "Enter":a.openDialog();c.preventDefault();break;case " ":c.preventDefault()}});pe(b,"keyup").pipe(zf(a.destroyed)).subscribe(function(c){switch(c.key){case " ":a.openDialog()}})})},vFc=function(a,b){a.ngZone.runOutsideAngular(function(){pe(b,"focus").pipe(ue(function(){return a.beforeOpened.observers.length>0}),zf(a.destroyed)).subscribe(function(){a.ngZone.run(function(){a.beforeOpened.emit()})})})};
h=dB.prototype;
h.openDialog=function(){var a=this;if(!this.disabled){var b;if((b=this.overlayRef)==null||!b.hasAttached()){var c=this.portal;c!=null&&(this.stackManager&&(this.stackLocation=this.stackManager.register()),this.ngZone.run(function(){a.dialogContainerRef=wFc(a);a.dialogContainerRef.instance.attach(c);var d=a.dialogContainerRef.location.nativeElement;a.attachMouseEventListeners(d);a.attachKeyboardCloseEventListeners(d);a.trapFocus(d);rFc(a.dialogContainerRef.instance,!0);a.opened.observers.length&&setTimeout(function(){a.opened.emit()},
200)}))}}};h.closeDialog=function(){var a=this,b;(b=this.overlayRef)==null||!b.hasAttached()||this.stackManager&&!this.stackManager.tryUnregister(this.stackLocation)||(rFc(this.dialogContainerRef.instance,!1),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))};
h.trapFocus=function(a){var b=this.document.activeElement,c=this.elementRef.nativeElement;if(this.forceTrapFocus||b&&b===c)this.document&&(this.elementFocusedBeforeDialogWasOpened=this.document.activeElement),this.focusTrap=this.focusTrapFactory.create(a),Ty(this.focusTrap),this.disableAutoFocus||this.focusInitialElement()};h.focusInitialElement=function(){this.focusTrap&&nCc(this.focusTrap).then(function(){})};
h.restoreFocus=function(){var a=this.elementFocusedBeforeDialogWasOpened;if(a&&typeof a.focus==="function"){var b,c=(b=this.dialogContainerRef)==null?void 0:b.location.nativeElement;(b=this.document.activeElement)&&c!=null&&c.contains(b)&&(a.focus(),this.elementFocusedBeforeDialogWasOpened=void 0)}};h.createPositionStrategy=function(a){var b,c;return Fz(Lz(this.overlay.position(),(b=this.attachedTo)!=null?b:this.elementRef),a).setOrigin((c=this.attachedTo)!=null?c:this.elementRef)};
var xFc=function(a){var b=a.overlay.scrollStrategies;switch(a.scrollStrategy){case "noop":return b.noop();case "block":return b.block();case "reposition":return b.reposition();default:return b.close()}},wFc=function(a){var b=Yg({parent:a.injector,providers:[{provide:qFc,useValue:{dialogLabel:a.dialogLabel,dialogTabIndex:a.dialogTabIndex}}]});b=new Nz(cB,null,b);a.overlayRef==null&&(a.overlayRef=a.overlay.create(a.createOverlayConfig(sFc)));a.overlaySize&&a.overlayRef.updateSize(a.overlaySize);a.overlayPositions&&
a.overlayPositions.length>0&&YCc(a.overlayRef,a.createPositionStrategy(a.overlayPositions));return a.overlayRef.attach(b)};
da.Object.defineProperties(dB.prototype,{dialog:{configurable:!0,enumerable:!0,set:function(a){a&&(this.portal=a instanceof dg?new Oz(a,this.viewContainerRef):new Nz(a,this.viewContainerRef))}},disabled:{configurable:!0,enumerable:!0,set:function(a){(this.disabledInternal=a)&&this.closeDialog()},get:function(){return this.disabledInternal}},disableAutoFocus:{configurable:!0,enumerable:!0,set:function(a){this.disableAutoFocusInternal=Lh(a)},get:function(){return this.disableAutoFocusInternal}},panelClass:{configurable:!0,
enumerable:!0,set:function(a){if(this.panelClassInternal!==a){if(this.panelClassInternal){var b;(b=this.overlayRef)==null||b.removePanelClass(this.panelClassInternal)}if(a){var c;(c=this.overlayRef)==null||c.addPanelClass(a)}this.panelClassInternal=a}}}});dB.\u0275fac=function(a){return new (a||dB)};
dB.\u0275dir=af({type:dB,hostVars:1,hostBindings:function(a,b){a&2&&If("data-disabled",b.disabled)},inputs:{attachedTo:"attachedTo",dialogLabel:"dialogLabel",dialogTabIndex:"dialogTabIndex",overlaySize:"overlaySize",overlayPositions:"overlayPositions",overlayDimensions:"overlayDimensions",triggerDescription:"triggerDescription",disableAutoFocus:"disableAutoFocus",forceTrapFocus:"forceTrapFocus",panelClass:"panelClass",scrollStrategy:"scrollStrategy",stackManager:"stackManager"},outputs:{beforeOpened:"beforeOpened",
opened:"opened",closed:"closed"}});var eB=function(){dB.call(this);this.hasBackdrop=Og.apply(null,[!0].concat(q([{alias:"xapInlineDialogClickHasBackdrop",transform:$g}])));this.renderer=p(ci);this.attachMouseEventListeners(this.elementRef.nativeElement)};Y(eB,dB);h=eB.prototype;h.ngOnInit=function(){dB.prototype.ngOnInit.call(this);this.listenForOpenEvents()};
h.listenForOpenEvents=function(){var a=this;this.openStatusChange.pipe(zf(this.destroyed)).subscribe(function(b){b?a.openDialog():a.closeDialog()});this.openings.pipe(ue(function(b){return b&&a.beforeOpened.observers.length>0}),Dla(function(){return a.openStatusChange.pipe(ue(function(b){return!b}))}))};
h.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){pe(a,"mouseenter").pipe(zf(b.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})});(new Td(function(e){return b.renderer.listen(a,"click",function(f){return void e.next(f)})})).pipe(zf(b.destroyed)).subscribe(function(e){e.target.closest("[xapInlineDialogClose]")?b.closingDialog():b.openingDialog()});var c;(c=b.overlayRef)==null||c.backdropClick().pipe(zf(b.destroyed)).subscribe(function(){b.closingDialog()});
var d;(d=b.overlayRef)==null||d.outsidePointerEvents().pipe(zf(b.destroyed)).subscribe(function(){b.hasBackdrop()||b.closingDialog()})})};
h.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){pe(a,"keyup").pipe(zf(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.key){case "Escape":b.closingDialog();break;case " ":d.closest("[xapInlineDialogClose]")&&b.closingDialog()}});pe(a,"keydown").pipe(zf(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.key){case "Enter":d.closest("[xapInlineDialogClose]")&&b.closingDialog()}})})};h.openingDialog=function(){this.disabled||this.openStatusChange.next(!0)};
h.closingDialog=function(){this.openStatusChange.next(!1)};h.createOverlayConfig=function(a){return new di(Object.assign({},this.overlayDimensions,{positionStrategy:dB.prototype.createPositionStrategy.call(this,a),scrollStrategy:xFc(this),hasBackdrop:this.hasBackdrop(),backdropClass:"cdk-overlay-transparent-backdrop",panelClass:this.panelClassInternal}))};eB.\u0275fac=function(a){return new (a||eB)};
eB.\u0275dir=af({type:eB,selectors:[["","xapInlineDialogClick",""]],hostAttrs:[1,"xap-inline-dialog-click"],inputs:{dialog:[0,"xapInlineDialogClick","dialog"],disabled:[0,"xapInlineDialogDisabled","disabled"],hasBackdrop:[1,"xapInlineDialogClickHasBackdrop","hasBackdrop"]},exportAs:["xapInlineDialogClick"],features:[Ef]});var yFc=new dd("GM2_BUTTON_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var zFc=new dd("MAT_BUTTON_CONFIG"),fB=function(){this._elementRef=p(Hd);this._ngZone=p(Rg);this._animationsDisabled=mi();this._config=p(zFc,{optional:!0});this._focusMonitor=p(Ny);this._renderer=p(ci);this._rippleLoader=p(lA);this._disabled=this._disableRipple=this._isFab=!1;p(Zh).load(cA);var a=this._elementRef.nativeElement;this._isAnchor=a.tagName==="A";var b,c;this.disabledInteractive=(c=(b=this._config)==null?void 0:b.disabledInteractive)!=null?c:!1;var d,e;this.color=(e=(d=this._config)==null?
void 0:d.color)!=null?e:null;var f;(f=this._rippleLoader)==null||KDc(f,a,{className:"mat-mdc-button-ripple"})};h=fB.prototype;h.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0);this._isAnchor&&this._setupAsAnchor()};h.ngOnDestroy=function(){var a;(a=this._cleanupClick)==null||a.call(this);this._focusMonitor.stopMonitoring(this._elementRef);var b;(b=this._rippleLoader)==null||JDc(b,this._elementRef.nativeElement)};
h.focus=function(a,b){(a=a===void 0?"program":a)?Oy(this._focusMonitor,this._elementRef.nativeElement,a,b):this._elementRef.nativeElement.focus(b)};h._getAriaDisabled=function(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null};h._getDisabledAttribute=function(){return this.disabledInteractive||!this.disabled?null:!0};
h._updateRippleDisabled=function(){var a;(a=this._rippleLoader)==null||a.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)};h._getTabIndex=function(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex};h._setupAsAnchor=function(){var a=this;this._cleanupClick=this._ngZone.runOutsideAngular(function(){return a._renderer.listen(a._elementRef.nativeElement,"click",function(b){a.disabled&&(b.preventDefault(),b.stopImmediatePropagation())})})};
da.Object.defineProperties(fB.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=a;this._updateRippleDisabled()}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=a;this._updateRippleDisabled()}},_tabindex:{configurable:!0,enumerable:!0,set:function(a){this.tabIndex=a}}});fB.\u0275fac=function(a){return new (a||fB)};
fB.\u0275dir=af({type:fB,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(a,b){a&2&&(If("disabled",b._getDisabledAttribute())("aria-disabled",b._getAriaDisabled())("tabindex",b._getTabIndex()),xg(b.color?"mat-"+b.color:""),wg("mat-mdc-button-disabled",b.disabled)("mat-mdc-button-disabled-interactive",b.disabledInteractive)("mat-unthemed",!b.color)("_mat-animation-noopable",b._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",$g],disabled:[2,
"disabled","disabled",$g],ariaDisabled:[2,"aria-disabled","ariaDisabled",$g],disabledInteractive:[2,"disabledInteractive","disabledInteractive",$g],tabIndex:[2,"tabIndex","tabIndex",ata],_tabindex:[2,"tabindex","_tabindex",ata]}});var AFc=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],BFc=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],
["tonal",["mat-tonal-button"]]]),gB=function(){fB.call(this);this._appearance=null;var a=this._elementRef.nativeElement;(a=a.hasAttribute("mat-raised-button")?"elevated":a.hasAttribute("mat-stroked-button")?"outlined":a.hasAttribute("mat-flat-button")?"filled":a.hasAttribute("mat-button")?"text":null)&&CFc(this,a)};Y(gB,fB);gB.\u0275dir=fB.\u0275dir;
var CFc=function(a,b){if(b!==a._appearance){var c=a._elementRef.nativeElement.classList,d=a._appearance?BFc.get(a._appearance):null,e=BFc.get(b);d&&c.remove.apply(c,q(d));c.add.apply(c,q(e));a._appearance=b}};da.Object.defineProperties(gB.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this._appearance},set:function(a){var b;CFc(this,a||((b=this._config)==null?void 0:b.defaultAppearance)||"text")}}});gB.\u0275fac=function(a){return new (a||gB)};
gB.\u0275cmp=D({type:gB,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[Ef],attrs:["matButton",""],ngContentSelectors:[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])",
"*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,b){a&1&&(bg(AFc),Sf(0,"span",0),cg(1),Qf(2,"span",1),cg(3,1),Rf(),cg(4,2),Sf(5,"span",2)(6,"span",3));a&2&&wg("mdc-button__ripple",!b._isFab)("mdc-fab__ripple",b._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}@media(hover: none){.mat-mdc-button-base:hover>span.mat-mdc-button-persistent-ripple::before{opacity:0}}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}@media(hover: hover){.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}\n',
"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0});var DFc=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],FFc=new dd("mat-mdc-fab-default-options",{providedIn:"root",factory:function(){return EFc}}),EFc={color:"accent"},hB=function(){fB.call(this);this._options=p(FFc,{optional:!0});this._isFab=!0;this._options=this._options||EFc;this.color=
this._options.color||EFc.color};Y(hB,fB);hB.\u0275dir=fB.\u0275dir;hB.\u0275fac=function(a){return new (a||hB)};
hB.\u0275cmp=D({type:hB,selectors:[["button","mat-fab",""],["a","mat-fab",""],["button","matFab",""],["a","matFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mat-mdc-fab"],hostVars:4,hostBindings:function(a,b){a&2&&wg("mdc-fab--extended",b.extended)("mat-mdc-extended-fab",b.extended)},inputs:{extended:[2,"extended","extended",$g]},exportAs:["matButton","matAnchor"],features:[Ef],attrs:["mat-fab",""],ngContentSelectors:[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])",
"*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,b){a&1&&(bg(DFc),Sf(0,"span",0),cg(1),Qf(2,"span",1),cg(3,1),Rf(),cg(4,2),Sf(5,"span",2)(6,"span",3));a&2&&wg("mdc-button__ripple",!b._isFab)("mdc-fab__ripple",b._isFab)},styles:['.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}@media(hover: hover){.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}@media(hover: hover){.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}@media(hover: hover){.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}\n'],
encapsulation:2,changeDetection:0});var iB=function(){fB.call(this);KDc(this._rippleLoader,this._elementRef.nativeElement,{centered:!0})};Y(iB,fB);iB.\u0275dir=fB.\u0275dir;iB.\u0275fac=function(a){return new (a||iB)};
iB.\u0275cmp=D({type:iB,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[Ef],attrs:["mat-icon-button",""],ngContentSelectors:["*"],decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a){a&1&&(bg(),Sf(0,"span",0),
cg(1),Sf(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}\n',
"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0});var jB=function(){};jB.\u0275fac=function(a){return new (a||jB)};jB.\u0275mod=$e({type:jB});jB.\u0275inj=Fc({imports:[iA,Ky]});var kB=function(a,b){this.elementRef=a;this.options=b;if(b.disableGmatStyle)throw Error("db");};kB.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.querySelector(".mat-icon, .material-icons")&&a.classList.add("gmat-mdc-button-with-prefix")};kB.\u0275fac=function(a){return new (a||kB)(Ve(Hd),Ve(yFc))};
kB.\u0275dir=af({type:kB,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["a","mat-button",""],["button","mat-raised-button",""],["a","mat-raised-button",""],["button","mat-flat-button",""],["a","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-stroked-button",""],["button","matIconButton",""],["button","mat-icon-button",""],["a","mat-icon-button",""],[""]],hostAttrs:[1,"gmat-mdc-button"],standalone:!1});
var lB=function(a,b){this.options=a;this.button=b;this.appearance="outline";this.loweredInternal=!1;if(a.disableGmatStyle)throw Error("db");};lB.prototype.ngOnInit=function(){};da.Object.defineProperties(lB.prototype,{lowered:{configurable:!0,enumerable:!0,get:function(){return this.loweredInternal},set:function(a){this.loweredInternal=Lh(a)}}});lB.\u0275fac=function(a){return new (a||lB)(Ve(yFc),Ve(hB,10))};
lB.\u0275dir=af({type:lB,selectors:[["button","matFab",""],["a","matFab",""],["button","mat-fab",""],["a","mat-fab",""],["button","matMiniFab",""],["a","matMiniFab",""],["button","mat-mini-fab",""],["a","mat-mini-fab",""]],hostAttrs:[1,"gmat-mdc-button"],hostVars:8,hostBindings:function(a,b){a&2&&wg("gmat-mdc-fab-fill",b.appearance=="fill")("gmat-mdc-fab-outline",b.appearance=="outline")("gmat-mdc-fab-branded",b.appearance=="branded")("gmat-mdc-fab-lowered",b.lowered)},inputs:{appearance:"appearance",
lowered:"lowered"},standalone:!1});var mB=function(){};mB.\u0275fac=function(a){return new (a||mB)};mB.\u0275mod=$e({type:mB});mB.\u0275inj=Fc({providers:[{provide:FFc,useValue:{color:"primary"}}],imports:[jB]});var nB=new dd("MatSnackBarData"),GFc=function(){this.politeness="polite";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var HFc=function(){};HFc.\u0275fac=function(a){return new (a||HFc)};HFc.\u0275dir=af({type:HFc,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]});var IFc=function(){};IFc.\u0275fac=function(a){return new (a||IFc)};IFc.\u0275dir=af({type:IFc,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]});var JFc=function(){};JFc.\u0275fac=function(a){return new (a||JFc)};
JFc.\u0275dir=af({type:JFc,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]});var oB=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new qf;this._afterOpened=new qf;this._onAction=new qf;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};h=oB.prototype;h.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
h.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss());clearTimeout(this._durationTimeoutId)};h._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,2147483647))};h._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())};
h._finishDismiss=function(){this._overlayRef.dispose();this._onAction.closed||this._onAction.complete();this._afterDismissed.next({dismissedByAction:this._dismissedByAction});this._afterDismissed.complete();this._dismissedByAction=!1};h.afterDismissed=function(){return this._afterDismissed};h.afterOpened=function(){return this.containerInstance._onEnter};h.onAction=function(){return this._onAction};var pB=function(){this.snackBarRef=p(oB);this.data=p(nB)};pB.prototype.action=function(){this.snackBarRef.dismissWithAction()};da.Object.defineProperties(pB.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});pB.\u0275fac=function(a){return new (a||pB)};
pB.\u0275cmp=D({type:pB,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0),Q(1),L(),F(2,bta,3,1,"div",1));a&2&&(B(),S(" ",b.data.message,"\n"),B(),G(b.hasAction?2:-1))},dependencies:[gB,HFc,IFc,JFc],styles:[".mat-mdc-simple-snack-bar{display:flex}.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label{max-height:50vh;overflow:auto}\n"],
encapsulation:2,changeDetection:0});var KFc=["label"],qB=function(){this._isDisposed=!1;this._ngZone=p(Rg);this._elementRef=p(Hd);this._changeDetectorRef=p(Cx);this._platform=p(Vh);this._animationsDisabled=mi();this.snackBarConfig=p(GFc);this._document=p(Rh);this._trackedModals=new Set;this._injector=p(ye);this._announceDelay=150;this._destroyed=!1;this._onAnnounce=new qf;this._onExit=new qf;this._onEnter=new qf;this._animationState="void";this._liveElementId=p(ai).getId("mat-snack-bar-container-live-");var a=this.snackBarConfig;this._live=
a.politeness!=="assertive"||a.announcementMessage?a.politeness==="off"?"off":"polite":"assertive";this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))};Y(qB,Pz);h=qB.prototype;h.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._afterPortalAttached();return a};h.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._afterPortalAttached();return a};
h.onAnimationEnd=function(a){var b=this;a==="_mat-snack-bar-exit"?this._completeExit():a==="_mat-snack-bar-enter"&&(clearTimeout(this._enterFallback),this._ngZone.run(function(){b._onEnter.next();b._onEnter.complete()}))};
h.enter=function(){var a=this;this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?Ee(function(){a._ngZone.run(function(){return queueMicrotask(function(){return a.onAnimationEnd("_mat-snack-bar-enter")})})},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(function(){a._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible");
a.onAnimationEnd("_mat-snack-bar-enter")},200)))};
h.exit=function(){var a=this;if(this._destroyed)return ce(void 0);this._ngZone.run(function(){a._animationState="hidden";a._changeDetectorRef.markForCheck();a._elementRef.nativeElement.setAttribute("mat-exit","");clearTimeout(a._announceTimeoutId);a._animationsDisabled?Ee(function(){a._ngZone.run(function(){return queueMicrotask(function(){return a.onAnimationEnd("_mat-snack-bar-exit")})})},{injector:a._injector}):(clearTimeout(a._exitFallback),a._exitFallback=setTimeout(function(){return a.onAnimationEnd("_mat-snack-bar-exit")},
200))});return this._onExit};h.ngOnDestroy=function(){this._destroyed=!0;this._clearFromModals();this._completeExit()};h._completeExit=function(){var a=this;clearTimeout(this._exitFallback);queueMicrotask(function(){a._onExit.next();a._onExit.complete()})};
h._afterPortalAttached=function(){var a=this._elementRef.nativeElement,b=this.snackBarConfig.panelClass;b&&(Array.isArray(b)?b.forEach(function(c){return a.classList.add(c)}):a.classList.add(b));this._exposeToModals();b=this._label.nativeElement;b.classList.toggle("mdc-snackbar__label",!b.querySelector(".mdc-snackbar__label"))};
h._exposeToModals=function(){for(var a=this._liveElementId,b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");this._trackedModals.add(d);e?e.indexOf(a)===-1&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};
h._clearFromModals=function(){var a=this;this._trackedModals.forEach(function(b){var c=b.getAttribute("aria-owns");c&&(c=c.replace(a._liveElementId,"").trim(),c.length>0?b.setAttribute("aria-owns",c):b.removeAttribute("aria-owns"))});this._trackedModals.clear()};h._assertNotAttached=function(){};
h._screenReaderAnnounce=function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){if(!a._destroyed){var b=a._elementRef.nativeElement,c=b.querySelector("[aria-hidden]");b=b.querySelector("[aria-live]");if(c&&b){var d=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&c.contains(document.activeElement)&&(d=document.activeElement);c.removeAttribute("aria-hidden");b.appendChild(c);var e;(e=d)==null||e.focus();
a._onAnnounce.next();a._onAnnounce.complete()}}},a._announceDelay)})};qB.\u0275fac=function(a){return new (a||qB)};
qB.\u0275cmp=D({type:qB,selectors:[["mat-snack-bar-container"]],viewQuery:function(a,b){a&1&&(hg(Rz,7),hg(KFc,7));if(a&2){var c;lg(c=mg())&&(b._portalOutlet=c.first);lg(c=mg())&&(b._label=c.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(a,b){a&1&&N("animationend",function(c){return b.onAnimationEnd(c.animationName)})("animationcancel",function(c){return b.onAnimationEnd(c.animationName)});a&2&&wg("mat-snack-bar-container-enter",b._animationState===
"visible")("mat-snack-bar-container-exit",b._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!b._animationsDisabled)},features:[Ef],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2,0)(3,"div",3),E(4,cta,0,0,"ng-template",4),L(),M(5,"div"),L()());a&2&&(B(5),If("aria-live",b._live)("role",b._role)("id",b._liveElementId))},
dependencies:[Rz],styles:["@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}\n"],
encapsulation:2});/*

 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.dev/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 LFc=new dd("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new GFc}}),rB=function(){this._live=p(dz);this._injector=p(ye);this._breakpointObserver=p(Yy);this._parentSnackBar=p(rB,{optional:!0,skipSelf:!0});this._defaultConfig=p(LFc);this._animationsDisabled=mi();this._snackBarRefAtThisLevel=null;this.simpleSnackBarComponent=pB;this.snackBarContainerComponent=qB;this.handsetCssClass="mat-mdc-snack-bar-handset"};h=rB.prototype;
h.openFromComponent=function(a,b){return this._attach(a,b)};h.open=function(a,b,c){b=b===void 0?"":b;var d=Object.assign({},this._defaultConfig,c);d.data={message:a,action:b};d.announcementMessage===a&&(d.announcementMessage=void 0);return this.openFromComponent(this.simpleSnackBarComponent,d)};h.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};h.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};
h._attachSnackBarContainer=function(a,b){var c=Yg({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:GFc,useValue:b}]});a=a.attach(new Nz(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
h._attach=function(a,b){var c=this,d=Object.assign({},new GFc,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new oB(b,e);if(a instanceof dg)f.instance=b.attachTemplatePortal(new Oz(a,null,{$implicit:d.data,snackBarRef:f}));else{var g=this._createInjector(d,f);a=b.attachComponentPortal(new Nz(a,void 0,g));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(zf(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};
h._animateSnackBar=function(a,b){var c=this;a.afterDismissed().subscribe(function(){c._openedSnackBarRef==a&&(c._openedSnackBarRef=null);b.announcementMessage&&c._live.clear()});b.duration&&b.duration>0&&a.afterOpened().subscribe(function(){return a._dismissAfter(b.duration)});this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter()};
h._createOverlay=function(a){var b=new di;b.direction=a.direction;var c=new Iz(this._injector),d=a.direction==="rtl";d=a.horizontalPosition==="left"||a.horizontalPosition==="start"&&!d||a.horizontalPosition==="end"&&d;var e=!d&&a.horizontalPosition!=="center";d?c.left("0"):e?c.right("0"):Jz(c);a.verticalPosition==="top"?c.top("0"):c.bottom("0");b.positionStrategy=c;b.disableAnimations=this._animationsDisabled;return ki(this._injector,b)};
h._createInjector=function(a,b){return Yg({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:oB,useValue:b},{provide:nB,useValue:a.data}]})};da.Object.defineProperties(rB.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}}});
rB.\u0275fac=function(a){return new (a||rB)};rB.\u0275prov=Dc({token:rB,factory:rB.\u0275fac,providedIn:"root"});var sB=function(){};sB.\u0275fac=function(a){return new (a||sB)};sB.\u0275mod=$e({type:sB});sB.\u0275inj=Fc({providers:[rB],imports:[Wz,Sz,jB,pB,Ky]});var tB=function(){this.snackBarRef=p(oB);this.data=p(nB);this.message=this.data.message||"An error occurred. Please try again.";this.error=this.data.error.message};tB.prototype.dismiss=function(){this.snackBarRef.dismiss()};tB.\u0275fac=function(a){return new (a||tB)};
tB.\u0275cmp=D({type:tB,selectors:[["error-snackbar"]],decls:11,vars:2,consts:[["withActionsTemplate",""],[1,"duckie-error-snackbar"],["dialogLabel","Actions",3,"xapInlineDialogClick"],["mat-button","","color","primary"],["mat-icon-button","","color","secondary",1,"close-button",3,"click"],[1,"error-details"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"span");Q(2);L();K(3,"xap-text-trigger",2)(4,"button",3);Q(5,"Details");L()();K(6,"button",4);N("click",function(){u(c);return v(b.dismiss())});
K(7,"mat-icon");Q(8,"close");L()()();E(9,dta,4,1,"ng-template",null,0,Mg)}a&2&&(a=qg(10),B(2),yg(b.message),B(),I("xapInlineDialogClick",a))},dependencies:[by,mB,kB,gB,iB,sB,eB,Jy,bB,aB],styles:[".duckie-error-snackbar[_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;gap:8px}.duckie-error-snackbar[_ngcontent-%COMP%]   .gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%], .duckie-error-snackbar[_ngcontent-%COMP%]   .gmat-mdc-button[_ngcontent-%COMP%]:not(.mat-mdc-icon-button){color:var(--text-inverse)}.error-details[_ngcontent-%COMP%]{word-wrap:break-word}"],
changeDetection:0});var MFc=function(a,b,c){this.requestMessage=a;this.methodDescriptor=b;this.metadata=c};MFc.prototype.getMetadata=function(){return this.metadata};var NFc=function(a,b){b=b===void 0?{}:b;this.responseMessage=a;this.metadata=b;this.status=null};NFc.prototype.getMetadata=function(){return this.metadata};NFc.prototype.getStatus=function(){return this.status};var uB=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.requestSerializeFn=d;this.responseDeserializeFn=e},OFc=function(a,b,c){c=c===void 0?{}:c;return new MFc(b,a,c)};uB.prototype.getName=function(){return this.name};var vB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vB,W);vB.prototype.getSessionId=function(){return ui(this,1)};vB.prototype.setSessionId=function(a){return oj(this,1,a)};vB.prototype.hasSessionId=function(){return im(this,1)};var PFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(PFc,W);var QFc=new uB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/DeleteSession",vB,PFc,function(a){return a.serialize()},vi(PFc));var wB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wB,W);h=wB.prototype;h.getSessionId=function(){return ui(this,1)};h.setSessionId=function(a){return oj(this,1,a)};h.hasSessionId=function(){return im(this,1)};h.getModelId=function(){return ui(this,2)};h.setModelId=function(a){return oj(this,2,a)};h.getText=function(){return ui(this,3)};h.setText=function(a){return oj(this,3,a)};h.hasText=function(){return im(this,3)};
h.getDisallowRestrictedContent=function(){return Fi(this,13)};h.setDisallowRestrictedContent=function(a){return Oi(this,13,a)};h.hasDisallowRestrictedContent=function(){return Ei(this,13)};h.getConversationHistory=function(){return X(this,MA,11)};h.setConversationHistory=function(a){return Mi(this,MA,11,a)};h.hasConversationHistory=function(){return xi(this,MA,11)};h.getDuckieClient=function(){return wi(this,5)};h.setDuckieClient=function(a){return Gn(this,5,a)};
h.getModelOverrideOptions=function(){return X(this,zA,7)};h.setModelOverrideOptions=function(a){Mi(this,zA,7,a)};h.getUserProvidedContextList=function(){return Bi(this,Pi,14,Ci())};h.setUserProvidedContextList=function(a){Ni(this,14,a)};h.addAllUserProvidedContext=function(a){Mp(this,14,Pi,a)};h.getUserProvidedContextCount=function(){return zi(this,Pi,14)};h.getAppProvidedContext=function(){return X(this,wA,16)};h.setAppProvidedContext=function(a){Mi(this,wA,16,a)};
h.hasAppProvidedContext=function(){return xi(this,wA,16)};h.getConversationAgent=function(){return X(this,GA,15)};h.setConversationAgent=function(a){return Mi(this,GA,15,a)};h.hasConversationAgent=function(){return xi(this,GA,15)};var RFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(RFc,W);h=RFc.prototype;h.getResponse=function(){return X(this,Li,1)};h.getMutableResponse=function(){return Ii(this,Li,1)};h.hasResponse=function(){return xi(this,Li,1)};h.getConversationHistory=function(){return X(this,MA,5)};h.setConversationHistory=function(a){return Mi(this,MA,5,a)};h.hasConversationHistory=function(){return xi(this,MA,5)};h.getQuery=function(){return X(this,Li,2)};
h.setQuery=function(a){return Mi(this,Li,2,a)};h.clearQuery=function(){Hw(this,2)};h.hasQuery=function(){return xi(this,Li,2)};h.getUserProvidedContextList=function(){return Bi(this,Pi,6,Ci())};h.setUserProvidedContextList=function(a){Ni(this,6,a)};h.addAllUserProvidedContext=function(a){Mp(this,6,Pi,a)};h.getUserProvidedContextCount=function(){return zi(this,Pi,6)};var SFc=new uB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GenerateAnswers",wB,RFc,function(a){return a.serialize()},vi(RFc));var xB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xB,W);xB.prototype.getSessionId=function(){return ui(this,1)};xB.prototype.setSessionId=function(a){return oj(this,1,a)};xB.prototype.hasSessionId=function(){return im(this,1)};var TFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TFc,W);TFc.prototype.getSession=function(){return X(this,ZEc,1)};var UFc=new uB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSession",xB,TFc,function(a){return a.serialize()},vi(TFc));var VFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(VFc,W);h=VFc.prototype;h.getAgentId=function(){return ui(this,3)};h.setAgentId=function(a){return oj(this,3,a)};h.hasAgentId=function(){return im(this,3)};h.getAgentVersion=function(){return ui(this,4)};h.setAgentVersion=function(a){oj(this,4,a)};h.hasAgentVersion=function(){return im(this,4)};h.getConversationAgentId=function(){return ui(this,5)};h.setConversationAgentId=function(a){return oj(this,5,a)};
h.hasConversationAgentId=function(){return im(this,5)};h.getConversationAgentModelId=function(){return ui(this,6)};h.setConversationAgentModelId=function(a){oj(this,6,a)};h.hasConversationAgentModelId=function(){return im(this,6)};var WFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(WFc,W);h=WFc.prototype;h.getSessionId=function(){return ui(this,1)};h.setSessionId=function(a){return oj(this,1,a)};h.hasSessionId=function(){return im(this,1)};h.getConversationAgentModelId=function(){return ui(this,11)};h.setConversationAgentModelId=function(a){oj(this,11,a)};h.hasConversationAgentModelId=function(){return im(this,11)};h.getConversationAgentId=function(){return ui(this,12)};
h.setConversationAgentId=function(a){return oj(this,12,a)};h.hasConversationAgentId=function(){return im(this,12)};h.getAgentId=function(){return ui(this,9)};h.setAgentId=function(a){return oj(this,9,a)};h.hasAgentId=function(){return im(this,9)};h.getAgentVersion=function(){return ui(this,10)};h.setAgentVersion=function(a){oj(this,10,a)};h.hasAgentVersion=function(){return im(this,10)};h.getTitle=function(){return ui(this,2)};h.setTitle=function(a){return oj(this,2,a)};
h.getClient=function(){return wi(this,3)};h.setClient=function(a){return Gn(this,3,a)};h.hasClient=function(){return jm(this,3)};h.getSessionState=function(){return wi(this,4)};h.setSessionState=function(a){return Gn(this,4,a)};h.hasSessionState=function(){return jm(this,4)};h.getPrivacyMode=function(){return wi(this,5)};h.setPrivacyMode=function(a){return Gn(this,5,a)};h.hasPrivacyMode=function(){return jm(this,5)};var XFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(XFc,W);var YFc=new uB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSessionSummaries",VFc,XFc,function(a){return a.serialize()},vi(XFc));var ZFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ZFc,W);var $Fc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($Fc,W);h=$Fc.prototype;h.getClient=function(){return wi(this,1)};h.setClient=function(a){return Gn(this,1,a)};h.hasClient=function(){return jm(this,1)};h.getTimestamp=function(){return X(this,Si,2)};h.setTimestamp=function(a){return Mi(this,Si,2,a)};h.hasTimestamp=function(){return xi(this,Si,2)};var yB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yB,W);yB.prototype.getDisallowRestrictedContent=function(){return Fi(this,4)};yB.prototype.setDisallowRestrictedContent=function(a){return Oi(this,4,a)};yB.prototype.hasDisallowRestrictedContent=function(){return Ei(this,4)};yB.prototype.getDuckieModelPreferences=function(a){return Vw(this,5,a)};var zB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zB,W);zB.prototype.getUserState=function(){return X(this,yB,1)};zB.prototype.setUserState=function(a){return Mi(this,yB,1,a)};var aGc=new uB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetUserState",ZFc,zB,function(a){return a.serialize()},vi(zB));var AB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(AB,W);h=AB.prototype;h.getMessageId=function(){return ui(this,1)};h.setMessageId=function(a){return oj(this,1,a)};h.hasMessageId=function(){return im(this,1)};h.getSessionId=function(){return ui(this,2)};h.setSessionId=function(a){return oj(this,2,a)};h.hasSessionId=function(){return im(this,2)};h.getFeedbackType=function(){return wi(this,3)};h.setFeedbackType=function(a){return Gn(this,3,a)};
h.hasFeedbackType=function(){return jm(this,3)};h.getFeedbackLabelsList=function(){return Cm(this,4,Ci())};h.setFeedbackLabelsList=function(a){return Gm(this,4,a)};h.addAllFeedbackLabels=function(a){wq(this,4,a)};h.getFeedbackReason=function(){return ui(this,5)};h.setFeedbackReason=function(a){return oj(this,5,a)};h.hasFeedbackReason=function(){return im(this,5)};var bGc=function(a,b){return Gn(a,6,b)};var cGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cGc,W);cGc.prototype.getFeedbackId=function(){return ui(this,1)};cGc.prototype.setFeedbackId=function(a){return oj(this,1,a)};var dGc=new uB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideFeedback",AB,cGc,function(a){return a.serialize()},vi(cGc));var eGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eGc,W);h=eGc.prototype;h.getMessageId=function(){return ui(this,1)};h.setMessageId=function(a){return oj(this,1,a)};h.hasMessageId=function(){return im(this,1)};h.getSessionId=function(){return ui(this,2)};h.setSessionId=function(a){return oj(this,2,a)};h.hasSessionId=function(){return im(this,2)};h.getText=function(){return ui(this,3)};h.setText=function(a){return oj(this,3,a)};
h.hasText=function(){return im(this,3)};h.getSourceLinkList=function(){return Cm(this,4,Ci())};h.setSourceLinkList=function(a){return Gm(this,4,a)};h.addAllSourceLink=function(a){wq(this,4,a)};var fGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fGc,W);var gGc=new uB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideRewrite",eGc,fGc,function(a){return a.serialize()},vi(fGc));var hGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hGc,W);h=hGc.prototype;h.getResponse=function(){return X(this,Li,1)};h.getMutableResponse=function(){return Ii(this,Li,1)};h.hasResponse=function(){return xi(this,Li,1)};h.getConversationHistory=function(){return X(this,MA,2)};h.setConversationHistory=function(a){return Mi(this,MA,2,a)};h.hasConversationHistory=function(){return xi(this,MA,2)};h.getUserProvidedContextList=function(){return Bi(this,Pi,3,Ci())};
h.setUserProvidedContextList=function(a){Ni(this,3,a)};h.addAllUserProvidedContext=function(a){Mp(this,3,Pi,a)};h.getUserProvidedContextCount=function(){return zi(this,Pi,3)};var iGc=new uB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/StreamGenerateAnswers",Esa,hGc,function(a){return a.serialize()},vi(hGc));var BB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(BB,W);h=BB.prototype;h.getSessionId=function(){return ui(this,1)};h.setSessionId=function(a){return oj(this,1,a)};h.hasSessionId=function(){return im(this,1)};h.getTitle=function(){return ui(this,2)};h.setTitle=function(a){return oj(this,2,a)};h.getSessionState=function(){return wi(this,3)};h.setSessionState=function(a){return Gn(this,3,a)};h.hasSessionState=function(){return jm(this,3)};var jGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jGc,W);jGc.prototype.getSession=function(){return X(this,ZEc,1)};var kGc=new uB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateSession",BB,jGc,function(a){return a.serialize()},vi(jGc));var CB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(CB,W);CB.prototype.getUserState=function(){return X(this,yB,1)};CB.prototype.setUserState=function(a){return Mi(this,yB,1,a)};var lGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lGc,W);lGc.prototype.getUserState=function(){return X(this,yB,1)};lGc.prototype.setUserState=function(a){return Mi(this,yB,1,a)};var mGc=new uB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateUserState",CB,lGc,function(a){return a.serialize()},vi(lGc));var nGc=new Set(["SAPISIDHASH","APISIDHASH"]);var DB=function(a,b,c){c=c===void 0?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};Y(DB,Error);DB.prototype.toString=function(){var a="RpcError("+(gta(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};var EB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(EB,W);EB.prototype.getCode=function(){return Bm(this,1)};EB.prototype.setCode=function(a){return an(this,1,a)};EB.prototype.getMessage=function(){return ui(this,2)};EB.prototype.setMessage=function(a){return Fm(this,2,a)};var oGc=vi(EB);var pGc=[],qGc=[],rGc=!1,sGc=function(a){pGc[pGc.length]=a;if(rGc)for(var b=0;b<qGc.length;b++)a(mj(qGc[b].wrap,qGc[b]))};var FB=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};FB.prototype.disposed_=!1;FB.prototype.isDisposed=function(){return this.disposed_};FB.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};FB.prototype[Symbol.dispose]=function(){this.dispose()};var xt=function(a,b){b=ww(Zi,b);a.disposed_?b():(a.onDisposeCallbacks_||(a.onDisposeCallbacks_=[]),a.onDisposeCallbacks_.push(b))};FB.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var GB=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};GB.prototype.stopPropagation=function(){this.propagationStopped_=!0};GB.prototype.preventDefault=function(){this.defaultPrevented=!0};var tGc=function(){if(!ra.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};ra.addEventListener("test",c,b);ra.removeEventListener("test",c,b)}catch(d){}return a}();var HB=function(a,b){GB.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.platformModifierKey=!1;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;a&&this.init(a,b)};yw(HB,GB);
HB.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;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=ej||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY=
ej||a.offsetY!==void 0?a.offsetY:a.layerY,this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?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||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey=gv?a.metaKey:a.ctrlKey;this.pointerId=a.pointerId||0;this.pointerType=
a.pointerType;this.state=a.state;this.timeStamp=a.timeStamp;this.event_=a;a.defaultPrevented&&HB.superClass_.preventDefault.call(this)};HB.prototype.stopPropagation=function(){HB.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};HB.prototype.preventDefault=function(){HB.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};var uGc="closure_listenable_"+(Math.random()*1E6|0),IB=function(a){return!(!a||!a[uGc])};var vGc=0;var wGc=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=++vGc;this.removed=this.callOnce=!1},xGc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};var sta="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");cj.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.typeCount_++);var g=yGc(a,b,d,e);g>-1?(b=a[g],c||(b.callOnce=!1)):(b=new wGc(b,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};cj.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=yGc(e,b,c,d);return b>-1?(xGc(e[b]),vba(e,b),e.length==0&&(delete this.listeners[a],this.typeCount_--),!0):!1};
var zGc=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=La(a.listeners[c],b);d&&(xGc(b),a.listeners[c].length==0&&(delete a.listeners[c],a.typeCount_--));return d};cj.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,xGc(d[e]);delete this.listeners[c];this.typeCount_--}return b};
cj.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=yGc(a,b,c,d));return e>-1?a[e]:null};cj.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return ita(this.listeners,function(f){for(var g=0;g<f.length;++g)if(!(c&&f[g].type!=d||e&&f[g].capture!=b))return!0;return!1})};var yGc=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 AGc="closure_lm_"+(Math.random()*1E6|0),BGc={},CGc=0,lj=function(a,b,c,d,e){if(d&&d.once)return JB(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)lj(a,b[f],c,d,e);return null}c=DGc(c);return IB(a)?a.listen(b,c,Oa(d)?!!d.capture:!!d,e):EGc(a,b,c,!1,d,e)},EGc=function(a,b,c,d,e,f){if(!b)throw Error("gb");var g=Oa(e)?!!e.capture:!!e,k=FGc(a);k||(a[AGc]=k=new cj(a));c=k.add(b,c,d,g,f);if(c.proxy)return c;d=GGc();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)tGc||(e=g),e===void 0&&
(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(HGc(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("hb");CGc++;return c},GGc=function(){var a=IGc,b=function(c){return a.call(b.src,b.listener,c)};return b},JB=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)JB(a,b[f],c,d,e);return null}c=DGc(c);return IB(a)?a.listenOnce(b,c,Oa(d)?!!d.capture:!!d,e):EGc(a,b,c,!0,d,e)},KB=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
0;f<b.length;f++)KB(a,b[f],c,d,e);else d=Oa(d)?!!d.capture:!!d,c=DGc(c),IB(a)?a.unlisten(b,c,d,e):a&&(a=FGc(a))&&(b=a.getListener(b,c,d,e))&&LB(b)},LB=function(a){if(typeof a==="number"||!a||a.removed)return!1;var b=a.src;if(IB(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(HGc(c),d):b.addListener&&b.removeListener&&b.removeListener(d);CGc--;(c=FGc(b))?(zGc(c,a),c.typeCount_==0&&(c.src=null,b[AGc]=null)):xGc(a);
return!0},HGc=function(a){return a in BGc?BGc[a]:BGc[a]="on"+a},IGc=function(a,b){if(a.removed)a=!0;else{b=new HB(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&LB(a);a=c.call(d,b)}return a},FGc=function(a){a=a[AGc];return a instanceof cj?a:null},JGc="__closure_events_fn_"+(Math.random()*1E9>>>0),DGc=function(a){if(typeof a==="function")return a;a[JGc]||(a[JGc]=function(b){return a.handleEvent(b)});return a[JGc]};sGc(function(a){IGc=a(IGc)});var KGc=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 MB=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var jj=function(){FB.call(this);this.eventTargetListeners_=new cj(this);this.actualEventTarget_=this;this.parentEventTarget_=null};yw(jj,FB);jj.prototype[uGc]=!0;h=jj.prototype;h.getParentEventTarget=function(){return this.parentEventTarget_};h.setParentEventTarget=function(a){this.parentEventTarget_=a};h.addEventListener=function(a,b,c,d){lj(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){KB(this,a,b,c,d)};
h.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(typeof a==="string")a=new GB(a,c);else if(a instanceof GB)a.target=a.target||c;else{var e=a;a=new GB(d,c);tta(a,e)}e=!0;var f;if(b)for(f=b.length-1;!a.propagationStopped_&&f>=0;f--){var g=a.currentTarget=b[f];e=g.fireListeners(d,!0,a)&&e}a.propagationStopped_||(g=a.currentTarget=c,e=g.fireListeners(d,!0,a)&&e,a.propagationStopped_||(e=g.fireListeners(d,
!1,a)&&e));if(b)for(f=0;!a.propagationStopped_&&f<b.length;f++)g=a.currentTarget=b[f],e=g.fireListeners(d,!1,a)&&e;return e};h.disposeInternal=function(){jj.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};h.listen=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!1,c,d)};h.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)};
h.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};h.unlistenByKey=function(a){return zGc(this.eventTargetListeners_,a)};h.removeAllListeners=function(){this.eventTargetListeners_&&this.eventTargetListeners_.removeAll(void 0)};
h.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 g=f.listener,k=f.handler||f.src;f.callOnce&&this.unlistenByKey(f);d=g.call(k,c)!==!1&&d}}return d&&!c.defaultPrevented};h.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};
h.hasListener=function(a,b){return this.eventTargetListeners_.hasListener(a!==void 0?String(a):void 0,b)};var LGc=function(a){try{return ra.JSON.parse(a)}catch(b){}a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\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,"")))try{return eval("("+a+")")}catch(b){}throw Error("ib`"+a);},MGc=function(){this.replacer_=void 0};
MGc.prototype.serialize=function(a){var b=[];NGc(this,a,b);return b.join("")};
var NGc=function(a,b,c){if(b==null)c.push("null");else{if(typeof b=="object"){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],NGc(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],typeof e!="function"&&(c.push(f),OGc(d,c),c.push(":"),NGc(a,a.replacer_?a.replacer_.call(b,
d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":OGc(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("jb`"+typeof b);}}},PGc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},QGc=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,OGc=function(a,b){b.push('"',a.replace(QGc,
function(c){var d=PGc[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),PGc[c]=d);return d}),'"')};var RGc,SGc=function(){};yw(SGc,uta);SGc.prototype.createInstance=function(){return new XMLHttpRequest};RGc=new SGc;var TGc=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&c.length>1;)d+=c.shift()+e.shift();return d+c.join("%s")},UGc=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},Q8a=function(a){return!/[^0-9]/.test(a)},NB=function(a){return encodeURIComponent(String(a))},Kt=function(a){Lwc.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(Fwc,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace(Gwc,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(Hwc,"&gt;")),a.indexOf('"')!=
-1&&(a=a.replace(Iwc,"&quot;")),a.indexOf("'")!=-1&&(a=a.replace(Jwc,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(Kwc,"&#0;")));return a},VGc=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=c==1?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a},Onc=function(a,b,c){return a.replace(new RegExp(Yr(b),"g"),c.replace(/\$/g,"$$$$"))},Yr=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},WGc=String.prototype.repeat?
function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},OB=function(a,b){if(!Number.isFinite(a))return String(a);a=String(a);var c=a.indexOf(".");c===-1&&(c=a.length);var d=a[0]==="-"?"-":"";d&&(a=a.substring(1));return d+WGc("0",Math.max(0,b-c))+a},Nt=function(a){return a==null?"":String(a)},iBb=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)},eIa=Math.random()*2147483648|0,vo=function(a){var b=
Number(a);return b==0&&ya(a)?NaN:b},Hsc=function(){return"height".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()})},Hnc=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()},gj=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})},rm=function(a){isFinite(a)&&(a=String(a));return typeof a==="string"?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN},XGc=function(a){var b=1;a=a.split(":");for(var c=[];b>0&&a.length;)c.push(a.shift()),
b--;a.length&&c.push(a.join(":"));return c};var YGc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),ZGc=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(d>=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}},$Gc=function(a,b){if(!b)return a;var c=a.indexOf("#");c<0&&(c=a.length);var d=a.indexOf("?");if(d<0||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]},aHc=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)aHc(a,String(b[d]),c);else b!=null&&c.push(a+(b===""?"":"="+NB(b)))},bHc=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)aHc(a[b],a[b+1],c);return c.join("&")},cHc=function(a){var b=[],c;for(c in a)aHc(c,a[c],b);return b.join("&")},Bfb=function(a,b){var c=arguments.length==2?bHc(arguments[1],0):bHc(arguments,1);return $Gc(a,c)},Dfb=
function(a,b){b=cHc(b);return $Gc(a,b)},dHc=function(a,b,c){c=c!=null?"="+NB(c):"";return $Gc(a,b+c)},eHc=/#|$/,gBb=function(a,b){var c=a.search(eHc);a:{var d=0;for(var e=b.length;(d=a.indexOf(b,d))>=0&&d<c;){var f=a.charCodeAt(d-1);if(f==38||f==63)if(f=a.charCodeAt(d+e),!f||f==61||f==38||f==35)break a;d+=e+1}d=-1}if(d<0)return null;e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.slice(d,e!==-1?e:0).replace(/\+/g," "))};var Gs=function(a){jj.call(this);this.headers=new Map;this.xmlHttpFactory_=a||null;this.active_=!1;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.withCredentials_=!1;this.attributionReportingOptions_=this.trustToken_=null};yw(Gs,jj);
var fHc=/^https?$/i,gHc=["POST","PUT"],hHc=[],lnb=function(a,b,c,d,e,f,g){var k=new Gs;hHc.push(k);b&&k.listen("complete",b);k.listenOnce("ready",k.cleanupSend_);f&&(k.timeoutInterval_=Math.max(0,f));g&&(k.withCredentials_=g);k.send(a,c,d,e);return k};h=Gs.prototype;h.cleanupSend_=function(){this.dispose();La(hHc,this)};h.setTrustToken=function(a){this.trustToken_=a};h.setAttributionReporting=function(a){this.attributionReportingOptions_=a};
h.send=function(a,b,c,d){if(this.xhr_)throw Error("kb`"+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.xhr_.onreadystatechange=MB(mj(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(g){this.error_(5,g);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(typeof d.keys==="function"&&typeof d.get==="function"){e=m(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("lb`"+String(d));d=Array.from(c.keys()).find(function(g){return"content-type"==g.toLowerCase()});e=ra.FormData&&a instanceof ra.FormData;!Ka(gHc,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=m(c);for(d=b.next();!d.done;d=b.next())c=m(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(g){}if("setAttributionReporting"in this.xhr_&&this.attributionReportingOptions_)try{this.xhr_.setAttributionReporting(this.attributionReportingOptions_)}catch(g){}try{this.timeoutId_&&(clearTimeout(this.timeoutId_),
this.timeoutId_=null),this.timeoutInterval_>0&&(this.timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(g){this.error_(5,g)}};h.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():RGc.createInstance()};h.timeout_=function(){typeof kwc!="undefined"&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
h.error_=function(a,b){this.active_=!1;this.xhr_&&(this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1);this.lastError_=b;this.lastErrorCode_=a;iHc(this);jHc(this)};var iHc=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};Gs.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"),jHc(this))};
Gs.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),jHc(this,!0));Gs.superClass_.disposeInternal.call(this)};Gs.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)kHc(this);else this.onReadyStateChangeEntryPoint_()};Gs.prototype.onReadyStateChangeEntryPoint_=function(){kHc(this)};
var kHc=function(a){if(a.active_&&typeof kwc!="undefined")if(a.inSend_&&a.getReadyState()==4)setTimeout(a.onReadyStateChange_.bind(a),0);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=a.getReadyState()>2?a.xhr_.statusText:""}catch(c){b=""}a.lastError_=b+" ["+a.getStatus()+"]";iHc(a)}}finally{jHc(a)}}},jHc=function(a,b){if(a.xhr_){a.timeoutId_&&(clearTimeout(a.timeoutId_),
a.timeoutId_=null);var c=a.xhr_;a.xhr_=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){}}};h=Gs.prototype;h.isActive=function(){return!!this.xhr_};h.isComplete=function(){return this.getReadyState()==4};
h.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=a===0)a=String(this.lastUri_).match(YGc)[1]||null,!a&&ra.self&&ra.self.location&&(a=ra.self.location.protocol.slice(0,-1)),a=!fHc.test(a?a.toLowerCase():"");b=a}return b};h.getReadyState=function(){return this.xhr_?this.xhr_.readyState:0};h.getStatus=function(){try{return this.getReadyState()>2?this.xhr_.status:-1}catch(a){return-1}};
h.getLastUri=function(){return String(this.lastUri_)};h.getResponseText=function(){try{return this.xhr_?this.xhr_.responseText:""}catch(a){return""}};h.getResponseJson=function(a){if(this.xhr_){var b=this.xhr_.responseText;a&&b.indexOf(a)==0&&(b=b.substring(a.length));a:{a=b;if(ra.JSON)try{var c=ra.JSON.parse(a);break a}catch(d){}c=LGc(a)}return c}};
h.getResponse=function(){try{if(!this.xhr_)return null;if("response"in this.xhr_)return this.xhr_.response;switch(this.responseType_){case "":case "text":return this.xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.xhr_)return this.xhr_.mozResponseArrayBuffer}return null}catch(a){return null}};h.getResponseHeader=function(a){if(this.xhr_&&this.isComplete())return a=this.xhr_.getResponseHeader(a),a===null?void 0:a};
h.getAllResponseHeaders=function(){return this.xhr_&&this.getReadyState()>=2?this.xhr_.getAllResponseHeaders()||"":""};h.getResponseHeaders=function(){for(var a={},b=this.getAllResponseHeaders().split("\r\n"),c=0;c<b.length;c++)if(!ya(b[c])){var d=XGc(b[c]),e=d[0];d=d[1];if(typeof d==="string"){d=d.trim();var f=a[e]||[];a[e]=f;f.push(d)}}return hta(a,function(g){return g.join(", ")})};var xta=function(a,b){return a.xhr_?a.xhr_.getResponseHeader(b):null};Gs.prototype.getLastErrorCode=function(){return this.lastErrorCode_};
Gs.prototype.getLastError=function(){return typeof this.lastError_==="string"?this.lastError_:String(this.lastError_)};sGc(function(a){Gs.prototype.onReadyStateChangeEntryPoint_=a(Gs.prototype.onReadyStateChangeEntryPoint_)});var mHc=function(a,b){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=a.nodeReadableStream;this.grpcResponseDeserializeFn=b;this.xhr=a.xhr;this.xhrNodeReadableStream&&lHc(this)},tHc=function(a,b){var c=new nHc;lj(a.xhr,"complete",function(){if(a.xhr.isSuccess()){var d=a.xhr.getResponseText();if(b&&a.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("mb");d=atob(d)}try{var e=
a.grpcResponseDeserializeFn(d)}catch(k){oHc(a,wta(new DB(13,"Error when deserializing response data; error: "+k+(", response: "+d)),c));return}d=fta(a.xhr.getStatus());pHc(a,qHc(a));d===0?rHc(a,e):oHc(a,wta(new DB(d,"Xhr succeeded but the status code is not 200"),c))}else{d=a.xhr.getResponseText();e=qHc(a);if(d){var f=sHc(a,d);d=f.code;var g=f.details;f=f.metadata}else d=2,g="Rpc failed due to xhr error. uri: "+a.xhr.getLastUri()+", error code: "+(a.xhr.getLastErrorCode()+", error: ")+a.xhr.getLastError(),
f=e;pHc(a,e);oHc(a,wta(new DB(d,g,f),c))}})},lHc=function(a){a.xhrNodeReadableStream.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.grpcResponseDeserializeFn(c)}catch(e){oHc(a,new DB(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&rHc(a,d)}if("2"in b)for(b=sHc(a,b["2"]),c=0;c<a.onStatusCallbacks.length;c++)a.onStatusCallbacks[c](b)});a.xhrNodeReadableStream.on("end",function(){pHc(a,qHc(a));for(var b=0;b<a.onEndCallbacks.length;b++)a.onEndCallbacks[b]()});
a.xhrNodeReadableStream.on("error",function(){if(a.onErrorCallbacks.length!==0){var b=a.xhr.getLastErrorCode();b!==0||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=fta(c);break;default:d=14}pHc(a,qHc(a));b=KGc(b)+", error: "+a.xhr.getLastError();c!==-1&&(b+=", http status code: "+c);oHc(a,new DB(d,b))}})},qHc=function(a){var b={},c=a.xhr.getResponseHeaders();Object.keys(c).forEach(function(d){b[d]=c[d]});return b},
sHc=function(a,b){var c=2,d={};try{var e=oGc(b);c=e.getCode();var f=e.getMessage();Bi(e,Rq,3,Ci()).length&&(d["grpc-web-status-details-bin"]=b)}catch(g){a.xhr&&a.xhr.getStatus()===404?(c=5,f="Not Found: "+a.xhr.getLastUri()):(c=14,f="Unable to parse RpcStatus: "+g)}return{code:c,details:f,metadata:d}};
mHc.prototype.on=function(a,b){a==="data"?this.onDataCallbacks.push(b):a==="metadata"?this.onMetadataCallbacks.push(b):a==="status"?this.onStatusCallbacks.push(b):a==="end"?this.onEndCallbacks.push(b):a==="error"&&this.onErrorCallbacks.push(b);return this};var uHc=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)};
mHc.prototype.removeListener=function(a,b){a==="data"?uHc(this.onDataCallbacks,b):a==="metadata"?uHc(this.onMetadataCallbacks,b):a==="status"?uHc(this.onStatusCallbacks,b):a==="end"?uHc(this.onEndCallbacks,b):a==="error"&&uHc(this.onErrorCallbacks,b);return this};mHc.prototype.cancel=function(){this.xhr.abort()};
var rHc=function(a,b){for(var c=0;c<a.onDataCallbacks.length;c++)a.onDataCallbacks[c](b)},pHc=function(a,b){for(var c=0;c<a.onMetadataCallbacks.length;c++)a.onMetadataCallbacks[c](b)},oHc=function(a,b){for(var c=0;c<a.onErrorCallbacks.length;c++)a.onErrorCallbacks[c](b)},nHc=function(){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};Y(nHc,Error);var vHc=function(a){return function(){return a}},PB=function(){},wHc=function(a){return a},QB=function(a,b){var c=0;return function(d){ra.clearTimeout(c);var e=arguments;c=ra.setTimeout(function(){a.apply(void 0,e)},b)}},xHc=function(a,b){var c=0,d=!1,e=[],f=function(){c=0;d&&(d=!1,g())},g=function(){c=ra.setTimeout(f,b);var k=e;e=[];a.apply(void 0,k)};return function(k){e=arguments;c?d=!0:g()}},yHc=function(a){var b=0,c=function(){b=0};return function(d){b||(b=ra.setTimeout(c,1E3),a.apply(void 0,
arguments))}};var RB=function(a){this.worker_=a.worker||null;this.streamBinaryChunks_=a.streamBinaryChunks||!1;this.cacheMode_=this.credentialsMode_=void 0};yw(RB,uta);RB.prototype.createInstance=function(){var a=new SB(this.worker_,this.streamBinaryChunks_);this.credentialsMode_&&a.setCredentialsMode(this.credentialsMode_);this.cacheMode_&&a.setCacheMode(this.cacheMode_);return a};RB.prototype.setCredentialsMode=function(a){this.credentialsMode_=a};RB.prototype.setCacheMode=function(a){this.cacheMode_=a};
var SB=function(a,b){jj.call(this);this.worker_=a;this.streamBinaryChunks_=b;this.cacheMode_=this.credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=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;this.abortController_=new AbortController};
yw(SB,jj);SB.prototype.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("nb");this.method_=a;this.url_=b;this.readyState=1;zHc(this)};
SB.prototype.send=function(a){if(this.readyState!=1)throw this.abort(),Error("ob");if(this.abortController_.signal.aborted)throw this.abort(),Error("pb");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.method_,credentials:this.credentialsMode_,cache:this.cacheMode_,signal:this.abortController_.signal};a&&(b.body=a);(this.worker_||ra).fetch(new Request(this.url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
SB.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,AHc(this));this.readyState=0};
SB.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,zHc(this)),this.inProgress_&&(this.readyState=3,zHc(this),this.inProgress_)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof ra.ReadableStream!=="undefined"&&
"body"in a){this.currentReader_=a.body.getReader();if(this.streamBinaryChunks_){if(this.responseType)throw Error("qb");this.response=[]}else this.response=this.responseText="",this.textDecoder_=new TextDecoder;BHc(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};var BHc=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
SB.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?AHc(this):zHc(this);this.readyState==3&&BHc(this)}};SB.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,AHc(this))};
SB.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,AHc(this))};SB.prototype.handleSendFailure_=function(){this.inProgress_&&AHc(this)};var AHc=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.textDecoder_=null;zHc(a)};h=SB.prototype;h.setRequestHeader=function(a,b){this.requestHeaders_.append(a,b)};h.getResponseHeader=function(a){return this.responseHeaders_?this.responseHeaders_.get(a.toLowerCase())||"":""};
h.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")};h.setCredentialsMode=function(a){this.credentialsMode_=a};h.setCacheMode=function(a){this.cacheMode_=a};var zHc=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(SB.prototype,"withCredentials",{get:function(){return this.credentialsMode_==="include"},set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});var CHc=function(a){if(a.getValues&&typeof a.getValues=="function")return a.getValues();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(Na(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return jta(a)},DHc=function(a){if(a.getKeys&&typeof a.getKeys=="function")return a.getKeys();if(!a.getValues||typeof a.getValues!="function"){if(typeof Map!=="undefined"&&a instanceof
Map)return Array.from(a.keys());if(!(typeof Set!=="undefined"&&a instanceof Set)){if(Na(a)||typeof a==="string"){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}}},EHc=function(a,b,c){if(a.forEach&&typeof a.forEach=="function")a.forEach(b,c);else if(Na(a)||typeof a==="string")Array.prototype.forEach.call(a,b,c);else for(var d=DHc(a),e=CHc(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)};var Os=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=!1;var c;a instanceof Os?(this.ignoreCase_=b!==void 0?b:a.ignoreCase_,TB(this,a.scheme_),this.userInfo_=a.userInfo_,UB(this,a.getDomain()),VB(this,a.port_),this.setPath(a.getPath()),FHc(this,a.queryData_.clone()),GHc(this,a.fragment_)):a&&(c=String(a).match(YGc))?(this.ignoreCase_=!!b,TB(this,c[1]||"",!0),this.userInfo_=WB(c[2]||""),UB(this,c[3]||"",!0),VB(this,c[4]),this.setPath(c[5]||
"",!0),FHc(this,c[6]||"",!0),GHc(this,c[7]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new XB(null,this.ignoreCase_))};
Os.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(HHc(b,IHc,!0),":");var c=this.getDomain();if(c||b=="file")a.push("//"),(b=this.userInfo_)&&a.push(HHc(b,IHc,!0),"@"),a.push(NB(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.port_,c!=null&&a.push(":",String(c));if(c=this.getPath())this.domain_&&c.charAt(0)!="/"&&a.push("/"),a.push(HHc(c,c.charAt(0)=="/"?JHc:KHc,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",HHc(c,LHc));return a.join("")};
Os.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?TB(b,a.scheme_):c=!!a.userInfo_;c?b.userInfo_=a.userInfo_:c=!!a.domain_;c?UB(b,a.getDomain()):c=a.port_!=null;var d=a.getPath();if(c)VB(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("/");e!=-1&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(za(e,"./")||za(e,"/.")){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var f=[],g=0;g<e.length;){var k=
e[g++];k=="."?d&&g==e.length&&f.push(""):k==".."?((f.length>1||f.length==1&&f[0]!="")&&f.pop(),d&&g==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=a.hasQuery();c?FHc(b,a.queryData_.clone()):c=!!a.fragment_;c&&GHc(b,a.fragment_);return b};Os.prototype.clone=function(){return new Os(this)};var TB=function(a,b,c){a.scheme_=c?WB(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};Os.prototype.getDomain=function(){return this.domain_};
var UB=function(a,b,c){a.domain_=c?WB(b,!0):b;return a},VB=function(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("rb`"+b);a.port_=b}else a.port_=null;return a};Os.prototype.getPath=function(){return this.path_};Os.prototype.setPath=function(a,b){this.path_=b?WB(a,!0):a;return this};Os.prototype.hasPath=function(){return!!this.path_};Os.prototype.hasQuery=function(){return this.queryData_.toString()!==""};
var FHc=function(a,b,c){b instanceof XB?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=HHc(b,MHc)),a.queryData_=new XB(b,a.ignoreCase_));return a};Os.prototype.setQuery=function(a){return FHc(this,a)};Os.prototype.getQuery=function(){return this.queryData_.toString()};var Bt=function(a,b,c){a.queryData_.set(b,c);return a},At=function(a,b){return a.queryData_.get(b)},GHc=function(a,b,c){a.fragment_=c?WB(b):b;return a},NHc=function(a){Bt(a,"zx",iBb());return a};
Os.prototype.removeParameter=function(a){this.queryData_.remove(a);return this};Os.prototype.isReadOnly=function(){return!1};Os.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
var zt=function(a,b){return a instanceof Os?a.clone():new Os(a,b)},OHc=function(a,b,c,d,e){var f=new Os(null);a&&TB(f,a);b&&(f.userInfo_=b);c&&UB(f,c);d&&VB(f,d);e&&f.setPath(e);return f},WB=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},HHc=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,PHc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},PHc=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},
IHc=/[#\/\?@]/g,KHc=/[#\?:]/g,JHc=/[#\?]/g,MHc=/[#\?@]/g,LHc=/#/g,XB=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.ignoreCase_=!!b},YB=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&ZGc(a.encodedQuery_,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=XB.prototype;h.getCount=function(){YB(this);return this.count_};
h.add=function(a,b){YB(this);this.encodedQuery_=null;a=cC(this,a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_+=1;return this};h.remove=function(a){YB(this);a=cC(this,a);return this.keyMap_.has(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1};h.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};h.isEmpty=function(){YB(this);return this.count_==0};h.containsKey=function(a){YB(this);a=cC(this,a);return this.keyMap_.has(a)};
h.forEach=function(a,b){YB(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};h.getKeys=function(){YB(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};
h.getValues=function(a){YB(this);var b=[];if(typeof a==="string")this.containsKey(a)&&(b=b.concat(this.keyMap_.get(cC(this,a))));else{a=Array.from(this.keyMap_.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};h.set=function(a,b){YB(this);this.encodedQuery_=null;a=cC(this,a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_+=1;return this};h.get=function(a,b){if(!a)return b;a=this.getValues(a);return a.length>0?String(a[0]):b};
h.setValues=function(a,b){this.remove(a);b.length>0&&(this.encodedQuery_=null,this.keyMap_.set(cC(this,a),Ma(b)),this.count_+=b.length)};h.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=NB(d);d=this.getValues(d);for(var f=0;f<d.length;f++){var g=e;d[f]!==""&&(g+="="+NB(d[f]));a.push(g)}}return this.encodedQuery_=a.join("&")};
h.clone=function(){var a=new XB;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};var cC=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};XB.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(YB(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};
XB.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)EHc(arguments[b],function(c,d){this.add(d,c)},this)};var QHc=function(a){var b="";$i(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b},RHc=function(a,b,c){if(nta(c))return a;c=QHc(c);if(typeof a==="string")return dHc(a,NB(b),c);Bt(a,b,c);return a};var zu=function(a){FB.call(this);this.handler_=a;this.keys_={}};yw(zu,FB);var SHc=[];zu.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(SHc[0]=b.toString()),b=SHc);for(var e=0;e<b.length;e++){var f=lj(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!f)break;this.keys_[f.key]=f}return this};zu.prototype.listenOnce=function(a,b,c,d){return THc(this,a,b,c,d)};
var THc=function(a,b,c,d,e,f){if(Array.isArray(c))for(var g=0;g<c.length;g++)THc(a,b,c[g],d,e,f);else{b=JB(b,c,d||a.handleEvent,e,f||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a};
zu.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=Oa(d)?!!d.capture:!!d,e=e||this.handler_||this,c=DGc(c),d=!!d,b=IB(a)?a.getListener(b,c,d,e):a?(a=FGc(a))?a.getListener(b,c,d,e):null:null,b&&(LB(b),delete this.keys_[b.key]);return this};zu.prototype.removeAll=function(){$i(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&LB(a)},this);this.keys_={}};
zu.prototype.disposeInternal=function(){zu.superClass_.disposeInternal.call(this);this.removeAll()};zu.prototype.handleEvent=function(){throw Error("tb");};var UHc=function(){this.isInputValid_=!0;this.streamPos_=0;this.leftoverInput_=""};UHc.prototype.error_=function(a,b){this.isInputValid_=!1;throw Error("ub`"+this.streamPos_+"`"+b+"`"+a);};
UHc.prototype.decode=function(a){this.isInputValid_||this.error_(a,"stream already broken");this.leftoverInput_+=a;a=Math.floor(this.leftoverInput_.length/4);if(a==0)return null;try{var b=zxc(this.leftoverInput_.slice(0,a*4))}catch(c){this.error_(this.leftoverInput_,c.message)}this.streamPos_+=a*4;this.leftoverInput_=this.leftoverInput_.slice(a*4);return b};var dj=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};dj.prototype.getErrorMessage=function(){return this.errorMessage_};dj.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_);};dj.prototype.acceptsBinaryInput=function(){return!0};
dj.prototype.parse=function(a){function b(l){l&128&&f.error_(g,k,"invalid tag");(l&7)!=2&&f.error_(g,k,"invalid wire type");f.tag_=l>>>3;f.tag_!=1&&f.tag_!=2&&f.tag_!=15&&f.error_(g,k,"unexpected tag");f.state_=1;f.length_=0;f.countLengthBytes_=0}function c(l){f.countLengthBytes_++;f.countLengthBytes_==5&&l&240&&f.error_(g,k,"message length too long");f.length_|=(l&127)<<(f.countLengthBytes_-1)*7;l&128||(f.state_=2,f.countMessageBytes_=0,typeof Uint8Array!=="undefined"?f.messageBuffer_=new Uint8Array(f.length_):
f.messageBuffer_=Array(f.length_),f.length_==0&&e())}function d(l){f.messageBuffer_[f.countMessageBytes_++]=l;f.countMessageBytes_==f.length_&&e()}function e(){if(f.tag_<15){var l={};l[f.tag_]=f.messageBuffer_;f.result_.push(l)}f.state_=0}for(var f=this,g=a instanceof Array?a:new Uint8Array(a),k=0;k<g.length;){switch(f.state_){case 3:f.error_(g,k,"stream already broken");break;case 0:b(g[k]);break;case 1:c(g[k]);break;case 2:d(g[k]);break;default:throw Error("vb`"+f.state_);}f.streamPos_++;k++}a=
f.result_;f.result_=[];return a.length>0?a:null};var Ata=function(){this.errorMessage_=null;this.streamPos_=0;this.base64Decoder_=new UHc;this.pbParser_=new dj};Ata.prototype.getErrorMessage=function(){return this.errorMessage_};Ata.prototype.error_=function(a,b){this.errorMessage_="The stream is broken @"+this.streamPos_+". Error: "+b+". With input:\n"+a;throw Error(this.errorMessage_);};Ata.prototype.acceptsBinaryInput=function(){return!1};
Ata.prototype.parse=function(a){this.errorMessage_!==null&&this.error_(a,"stream already broken");var b=null;try{var c=this.base64Decoder_.decode(a);b=c===null?null:this.pbParser_.parse(c)}catch(d){this.error_(a,d.message)}this.streamPos_+=a.length;return b};var dC=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};var zta=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)},VHc={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};h=zta.prototype;h.getErrorMessage=function(){return this.errorMessage_};h.done=function(){return this.streamState_===2};h.error_=function(a,b){this.streamState_=3;this.errorMessage_="The stream is broken @"+this.pos_+"/"+b+". With input:\n"+a;throw Error(this.errorMessage_);};h.acceptsBinaryInput=function(){return!1};
h.parse=function(a){function b(){for(;C<a.length;)if(dC(a[C]))C++,f.pos_++;else break;return C<r}function c(){for(var J;;){J=a[C++];if(!J)break;f.pos_++;switch(f.state_){case l.INIT:J==="{"?f.state_=l.OBJECT_OPEN:J==="["?f.state_=l.ARRAY_OPEN:dC(J)||f.error_(a,C);continue;case l.KEY_START:case l.OBJECT_OPEN:if(dC(J))continue;if(f.state_===l.KEY_START)g.push(l.KEY_END);else if(J==="}"){e("{}");f.state_=d();continue}else g.push(l.OBJECT_END);J==='"'?f.state_=l.STRING:f.error_(a,C);continue;case l.KEY_END:case l.OBJECT_END:if(dC(J))continue;
J===":"?(f.state_===l.OBJECT_END&&(g.push(l.OBJECT_END),f.depth_++),f.state_=l.VALUE):J==="}"?(f.depth_--,e(),f.state_=d()):J===","?(f.state_===l.OBJECT_END&&g.push(l.OBJECT_END),f.state_=l.KEY_START):f.error_(a,C);continue;case l.ARRAY_OPEN:case l.VALUE:if(dC(J))continue;if(f.state_===l.ARRAY_OPEN)if(f.depth_++,f.state_=l.VALUE,J==="]"){f.depth_--;if(f.depth_===0){f.state_=l.ARRAY_END;return}e("[]");f.state_=d();continue}else g.push(l.ARRAY_END);J==='"'?f.state_=l.STRING:J==="{"?f.state_=l.OBJECT_OPEN:
J==="["?f.state_=l.ARRAY_OPEN:J==="t"?f.state_=l.TRUE1:J==="f"?f.state_=l.FALSE1:J==="n"?f.state_=l.NULL1:J!=="-"&&("0123456789".indexOf(J)!==-1?f.state_=l.NUM_DIGIT:f.error_(a,C));continue;case l.ARRAY_END:if(J===",")g.push(l.ARRAY_END),f.state_=l.VALUE,f.depth_===1&&(x=C);else if(J==="]"){f.depth_--;if(f.depth_===0)return;e();f.state_=d()}else if(dC(J))continue;else f.error_(a,C);continue;case l.STRING:var O=C;a:for(;;){for(;f.unicodeCount_>0;)if(J=a[C++],f.unicodeCount_===4?f.unicodeCount_=0:f.unicodeCount_++,
!J)break a;if(J==='"'&&!f.slashed_){f.state_=d();break}if(J==="\\"&&!f.slashed_&&(f.slashed_=!0,J=a[C++],!J))break;if(f.slashed_)if(f.slashed_=!1,J==="u"&&(f.unicodeCount_=1),J=a[C++])continue;else break;k.lastIndex=C;J=k.exec(a);if(!J){C=a.length+1;break}C=J.index+1;J=a[J.index];if(!J)break}f.pos_+=C-O;continue;case l.TRUE1:if(!J)continue;J==="r"?f.state_=l.TRUE2:f.error_(a,C);continue;case l.TRUE2:if(!J)continue;J==="u"?f.state_=l.TRUE3:f.error_(a,C);continue;case l.TRUE3:if(!J)continue;J==="e"?
f.state_=d():f.error_(a,C);continue;case l.FALSE1:if(!J)continue;J==="a"?f.state_=l.FALSE2:f.error_(a,C);continue;case l.FALSE2:if(!J)continue;J==="l"?f.state_=l.FALSE3:f.error_(a,C);continue;case l.FALSE3:if(!J)continue;J==="s"?f.state_=l.FALSE4:f.error_(a,C);continue;case l.FALSE4:if(!J)continue;J==="e"?f.state_=d():f.error_(a,C);continue;case l.NULL1:if(!J)continue;J==="u"?f.state_=l.NULL2:f.error_(a,C);continue;case l.NULL2:if(!J)continue;J==="l"?f.state_=l.NULL3:f.error_(a,C);continue;case l.NULL3:if(!J)continue;
J==="l"?f.state_=d():f.error_(a,C);continue;case l.NUM_DECIMAL_POINT:J==="."?f.state_=l.NUM_DIGIT:f.error_(a,C);continue;case l.NUM_DIGIT:if("0123456789.eE+-".indexOf(J)!==-1)continue;else C--,f.pos_--,f.state_=d();continue;default:f.error_(a,C)}}}function d(){var J=g.pop();return J!=null?J:l.VALUE}function e(J){f.depth_>1||(J||(J=x===-1?f.buffer_+a.substring(w,C):a.substring(x,C)),f.deliverMessageAsRawString_?f.result_.push(J):f.result_.push(JSON.parse(J)),x=C)}for(var f=this,g=f.stack_,k=f.stringInputPattern_,
l=VHc,r=a.length,w=0,x=-1,C=0;C<r;)switch(f.streamState_){case 3:return f.error_(a,C),null;case 2:return b()&&f.error_(a,C),null;case 0:if(b()){var H=a[C++];f.pos_++;if(H==="["){f.streamState_=1;w=C;f.state_=l.ARRAY_OPEN;continue}else f.error_(a,C)}return null;case 1:return c(),f.depth_===0&&f.state_==l.ARRAY_END?(f.streamState_=2,f.buffer_=a.substring(C)):f.buffer_=x===-1?f.buffer_+a.substring(w):a.substring(x),f.result_.length>0?(H=f.result_,f.result_=[],H):null}return null};var yta=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.streamPos_=0;this.result_=[];this.statusParsed_=!1};yta.prototype.getErrorMessage=function(){return this.errorMessage_};yta.prototype.acceptsBinaryInput=function(){return!1};
yta.prototype.parse=function(a){function b(l){f.state_=6;f.errorMessage_="The stream is broken @"+f.streamPos_+"/"+g+". Error: "+l+". With input:\n";throw Error(f.errorMessage_);}function c(){f.jsonStreamParser_=new zta({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}function d(l){if(l)for(var r=0;r<l.length;r++){var w={};w[1]=l[r];f.result_.push(w)}}function e(l){if(l){(f.statusParsed_||l.length>1)&&b("extra status: "+l);f.statusParsed_=!0;var r={};r[2]=l[0];f.result_.push(r)}}for(var f=
this,g=0;g<a.length;){var k;if(k=f.state_!==2){a:{for(;g<a.length;){if(!dC(a[g])){k=!0;break a}g++;f.streamPos_++}k=!1}k=!k}if(k)return null;switch(f.state_){case 6:b("stream already broken");break;case 0:a[g]==="["?(f.state_=1,g++,f.streamPos_++):b("unexpected input token");break;case 1:a[g]==="["?(f.state_=2,c()):a[g]===","||a.slice(g,g+5)=="null,"?f.state_=3:a[g]==="]"?(f.state_=5,g++,f.streamPos_++):b("unexpected input token");break;case 2:k=f.jsonStreamParser_.parse(a.substring(g));d(k);f.jsonStreamParser_.done()?
(f.state_=3,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-g-k.length,a=k,g=0):(f.streamPos_+=a.length-g,g=a.length);break;case 3:a[g]===","||a.slice(g,g+5)=="null,"?(f.state_=4,c(),f.jsonStreamParser_.parse("["),g+=a[g]===","?1:5,f.streamPos_++):a[g]==="]"&&(f.state_=5,g++,f.streamPos_++);break;case 4:k=f.jsonStreamParser_.parse(a.substring(g));e(k);f.jsonStreamParser_.done()?(f.state_=5,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-g-k.length,a=k,g=0):(f.streamPos_+=a.length-g,g=a.length);
break;case 5:b("extra input after stream end")}}return f.result_.length>0?(a=f.result_,f.result_=[],a):null};var WHc=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 zu(this);this.eventHandler_.listen(this.xhr_,"readystatechange",this.readyStateChangeHandler_)};WHc.prototype.getXhr=function(){return this.xhr_};
var eC=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},XHc=function(a){a.eventHandler_.removeAll();if(a.xhr_){var b=a.xhr_;a.xhr_=null;b.abort();b.dispose()}};WHc.prototype.getStatus=function(){return this.status_};
WHc.prototype.readyStateChangeHandler_=function(a){a=a.target;try{if(a==this.xhr_)a:{var b=this.xhr_.getReadyState(),c=this.xhr_.getLastErrorCode(),d=this.xhr_.getStatus(),e=this.xhr_.getResponseText();a=[];if(this.xhr_.getResponse()instanceof Array){var f=this.xhr_.getResponse();f.length>0&&f[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,a=f)}if(!(b<3||b==3&&!e&&a.length==0))if(d=d==200||d==206,b==4&&(c==8?eC(this,7):c==7?eC(this,8):d||eC(this,3)),this.parser_||(this.parser_=Bta(this.xhr_),
this.parser_==null&&eC(this,5)),this.status_>2)XHc(this);else{if(a.length>this.pos_){var g=a.length;c=[];try{if(this.parser_.acceptsBinaryInput())for(var k=0;k<g;k++){var l=this.parser_.parse(Array.from(a[k]));l&&(c=c.concat(l))}else{l="";if(!this.textDecoder_){if(typeof TextDecoder==="undefined")throw Error("wb");this.textDecoder_=new TextDecoder}for(k=0;k<g;k++)l+=this.textDecoder_.decode(a[k],{stream:b==4&&k==g-1});c=this.parser_.parse(l)}a.splice(0,g);c&&this.dataHandler_(c)}catch(w){eC(this,
5);XHc(this);break a}}else if(e.length>this.pos_){k=e.slice(this.pos_);this.pos_=e.length;try{var r=this.parser_.parse(k);r!=null&&this.dataHandler_&&this.dataHandler_(r)}catch(w){eC(this,5);XHc(this);break a}}b==4?(e.length!=0||this.hasStreamingResponseData_?eC(this,2):eC(this,4),XHc(this)):eC(this,1)}}}catch(w){eC(this,6),XHc(this)}};var YHc=function(a){a=this.xhrReader_=a;var b=mj(this.onData_,this);a.dataHandler_=b;a=this.xhrReader_;b=mj(this.onStatusChange_,this);a.statusHandler_=b;this.callbackMap_={};this.callbackOnceMap_={}};h=YHc.prototype;h.on=function(a,b){var c=this.callbackMap_[a];c||(c=[],this.callbackMap_[a]=c);c.push(b);return this};h.addListener=function(a,b){this.on(a,b);return this};h.removeListener=function(a,b){var c=this.callbackMap_[a];c&&La(c,b);(a=this.callbackOnceMap_[a])&&La(a,b);return this};
h.once=function(a,b){var c=this.callbackOnceMap_[a];c||(c=[],this.callbackOnceMap_[a]=c);c.push(b);return this};h.onData_=function(a){var b=this.callbackMap_.data;b&&ZHc(this,a,b);(b=this.callbackOnceMap_.data)&&ZHc(this,a,b);this.callbackOnceMap_.data=[]};
var ZHc=function(a,b,c){for(var d={},e=0;e<b.length;d={message$jscomp$897:void 0},e++)d.message$jscomp$897=b[e],c.forEach(function(f){return function(g){try{g(f.message$jscomp$897)}catch(k){a.handleError_("message-callback exception (ignored) "+k)}}}(d))};YHc.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:$Hc(this,"readable");break;case 5:case 6:case 4:case 7:case 3:$Hc(this,"error");break;case 8:$Hc(this,"close");break;case 2:$Hc(this,"end")}};
var $Hc=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]=[]};YHc.prototype.handleError_=function(){};var aIc=function(a){a=a===void 0?{}:a;this.suppressCorsPreflight=a.suppressCorsPreflight||Su("suppressCorsPreflight",a)||!1;this.withCredentials=a.withCredentials||Su("withCredentials",a)||!1;this.streamInterceptors=a.streamInterceptors||[];this.unaryInterceptors=a.unaryInterceptors||[];this.workerScope=a.workerScope;this.chunkedServerStreaming=a.useFetchDownloadStreams||!1},dIc=function(a,b,c,d,e,f){f=f===void 0?{}:f;var g=b.substring(0,b.length-e.name.length),k,l=(k=f)==null?void 0:k.signal;return bIc(function(r){return new Promise(function(w,
x){if(l==null?0:l.aborted){var C=new DB(1,"Aborted");C.cause=l.reason;x(C)}else{var H={},J=cIc(a,r,g);J.on("error",function(O){return void x(O)});J.on("metadata",function(O){H=O});J.on("data",function(O){var R=H;R=R===void 0?{}:R;w(new NFc(O,R))});l&&l.addEventListener("abort",function(){J.cancel();var O=new DB(1,"Aborted");O.cause=l.reason;x(O)})}})},a.unaryInterceptors).call(a,OFc(e,c,d)).then(function(r){return r.responseMessage})},fC=function(a,b,c,d,e,f){f=f===void 0?{}:f;return dIc(a,b,c,d,
e,f)};aIc.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substring(0,a.length-d.name.length);return eIc(function(g){var k=g.methodDescriptor,l=g.getMetadata(),r=fIc(e,!1);l=gIc(e,l,r,f+k.getName());var w=hIc(r,k.responseDeserializeFn,!0);g=k.requestSerializeFn(g.requestMessage);r.send(l,"POST",g);return w},this.streamInterceptors).call(this,OFc(d,b,c))};
var cIc=function(a,b,c){var d=b.methodDescriptor,e=b.getMetadata(),f=fIc(a,!0);a=gIc(a,e,f,c+d.getName());c=hIc(f,d.responseDeserializeFn,!1);tHc(c,e["X-Goog-Encode-Response-If-Executable"]==="base64");b=d.requestSerializeFn(b.requestMessage);f.send(a,"POST",b);return c},fIc=function(a,b){b=a.chunkedServerStreaming&&!b;return a.workerScope||b?new Gs(new RB({worker:a.workerScope,streamBinaryChunks:b})):new Gs},gIc=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";
var e=b.Authorization;if(e&&nGc.has(e.split(" ")[0])||a.withCredentials)c.withCredentials_=!0;if(a.suppressCorsPreflight)d=RHc(d,"$httpHeaders",b);else for(a=m(Object.keys(b)),e=a.next();!e.done;e=a.next())e=e.value,c.headers.set(e,b[e]);return d},hIc=function(a,b,c){if(c){c=new WHc(a);var d=new YHc(c)}return new mHc({xhr:a,nodeReadableStream:d},b)},eIc=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,c)}},a)},bIc=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,
c)}},a)};var iIc=function(a,b){b=b||{};b.format="jspb";this.client_=new aIc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};h=iIc.prototype;h.generateAnswers=function(a){return fC(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GenerateAnswers",a,{},SFc)};h.streamGenerateAnswers=function(a){return this.client_.serverStreaming(this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/StreamGenerateAnswers",a,{},iGc)};
h.getSessionSummaries=function(a){return fC(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSessionSummaries",a,{},YFc)};h.getSession=function(a){return fC(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSession",a,{},UFc)};h.updateSession=function(a){return fC(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateSession",a,{},kGc)};
h.deleteSession=function(a){return fC(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/DeleteSession",a,{},QFc)};h.provideFeedback=function(a,b){return fC(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideFeedback",a,b||{},dGc)};h.provideRewrite=function(a){return fC(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideRewrite",a,{},gGc)};
h.getUserState=function(a){return fC(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetUserState",a,{},aGc)};h.updateUserState=function(a){return fC(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateUserState",a,{},mGc)};var gC=function(a,b){this.duckieBackendServicePromiseClientFactory=a;this.experimentsService=b;this.client=a.create(eta())};h=gC.prototype;h.generateAnswers=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.generateAnswers(a),2):c.return(c.yieldResult)})};h.updateUserState=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.updateUserState(a),2):c.return(c.yieldResult)})};
h.getSession=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.getSession(a),2):c.return(c.yieldResult)})};h.getSessionSummaries=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.getSessionSummaries(a),2):c.return(c.yieldResult)})};h.getUserState=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.getUserState(a),2):c.return(c.yieldResult)})};
h.updateSession=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.updateSession(a),2):c.return(c.yieldResult)})};h.deleteSession=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.deleteSession(a),2):c.return(c.yieldResult)})};h.streamGenerateAnswers=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.streamGenerateAnswers(a),2):c.return(c.yieldResult)})};gC.\u0275fac=function(a){return new (a||gC)(Xc(hC),Xc(qA))};
gC.\u0275prov=Dc({token:gC,factory:gC.\u0275fac,providedIn:"root"});var hC=function(){};hC.prototype.create=function(a){return new iIc(a,{withCredentials:!0,suppressCorsPreflight:!0})};hC.\u0275fac=function(a){return new (a||hC)};hC.\u0275prov=Dc({token:hC,factory:hC.\u0275fac,providedIn:"root"});var jIc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jIc,W);jIc.prototype.getLabel=function(){return ui(this,1)};jIc.prototype.setLabel=function(a){return Fm(this,1,a)};jIc.prototype.getPrompt=function(){return ui(this,2)};var kIc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kIc,W);kIc.prototype.getTitle=function(){return ui(this,1)};kIc.prototype.setTitle=function(a){return Fm(this,1,a)};var iC=function(){this.hasParentIntegratorValue=!1;this.overridesService=p(AA);this.duckieService=p(gC);this.duckieClient=p(GEc)};iC.prototype.setParentIntegrator=function(a){this.hasParentIntegratorValue=a};iC.prototype.addPreamble=function(a){this.overridesService.addPreamble(a)};iC.prototype.setAppProvidedContext=function(a){this.overridesService.setAppProvidedContext(a)};
iC.prototype.setOnboardingExamplesList=function(a){var b=[];a=Bi(a,kIc,1,Ci());a=m(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.getTitle();var e=byc(d,jIc,2);if(c&&e.length){d=[];e=m(e);for(var f=e.next();!f.done;f=e.next()){var g=f.value;f=g.getLabel();g=g.getPrompt();f!==void 0&&g!==void 0&&d.push({label:f,prompt:g})}c={title:c,examples:d}}else c=null;c!==null&&b.push(c)}this.overridesService.setOnboardingExamplesList(b)};
var lIc=function(a){var b=document.getElementById("ask-duckie-input");b.value=a;b.dispatchEvent(new Event("input",{bubbles:!0}))};iC.\u0275fac=function(a){return new (a||iC)};iC.\u0275prov=Dc({token:iC,factory:iC.\u0275fac,providedIn:"root"});var jC=function(){this.experimentsService=p(qA);this.communicationService=p(iC);this.availableConversationAgentsInternal=new Mj([]);this.currentConversationAgentInternal=new Mj(swc);this.currentConversationAgent$=this.currentConversationAgentInternal.pipe(vf({bufferSize:1,refCount:!0}));this.duckieConversationAgentEnabled=!this.communicationService.hasParentIntegratorValue&&this.experimentsService.experimentalDuckieAgentEnabled;this.availableConversationAgents$=this.availableConversationAgentsInternal.pipe(vf({bufferSize:1,
refCount:!0}));var a=[];this.experimentsService.sVsMGooseModelEnabled&&a.push(Aw);this.duckieConversationAgentEnabled&&a.push(Bw);this.availableConversationAgentsInternal.next(a)},kC=function(a){return a.currentConversationAgentInternal.getValue()};jC.\u0275fac=function(a){return new (a||jC)};jC.\u0275prov=Dc({token:jC,factory:jC.\u0275fac,providedIn:"root"});var lC=function(){this.currentModelIdInternal=new Mj("");this.currentModelId$=this.currentModelIdInternal.pipe(vf({bufferSize:1,refCount:!0}))};lC.\u0275fac=function(a){return new (a||lC)};lC.\u0275prov=Dc({token:lC,factory:lC.\u0275fac,providedIn:"root"});var mIc={PRIVACY_MODE_UNSET:0,COMPLIANCE_ONLY:1,CONTENT_PRIVATE:2};var mC=function(a){this.duckieService=a;this.currentErrorType$=new Mj(0);this.showTosDialog$=new Mj(!1);this.showGeneralAnnouncementBanner$=new Mj(!1);this.showErrorScreen$=new Mj(!1);this.allowPersonalResults$=new Mj(!0);this.userStateLoaded$=new Mj(!1);this.isEnforcedPrivateMode$=new Mj(!0);this.duckieClient=p(GEc);nIc(this)},oIc=function(a){var b,c,d,e;y(function(f){switch(f.nextAddress){case 1:return z(f,a.getUserState(),2);case 2:b=f.yieldResult;if((c=b.getUserState())==null)var g=void 0;else g=
ISa(new Date),g=Mi(c,Si,2,g);d=g;e=(new CB).setUserState(d);Wd(f,3);return z(f,a.duckieService.updateUserState(e),5);case 5:a.showGeneralAnnouncementBanner$.next(!1);dt(f,0);break;case 3:$d(f),a.showErrorScreen$.next(!0),ae(f)}})},pIc=function(a,b){var c,d,e,f;y(function(g){switch(g.nextAddress){case 1:return z(g,a.getUserState(),2);case 2:return c=g.yieldResult,e=(d=c.getUserState())==null?void 0:d.setDisallowRestrictedContent(!b),f=(new CB).setUserState(e),Wd(g,3),z(g,a.duckieService.updateUserState(f),
5);case 5:a.allowPersonalResults$.next(b);dt(g,0);break;case 3:$d(g),ae(g)}})},nIc=function(a){var b,c;y(function(d){if(d.nextAddress==1)return z(d,a.getUserState(),2);b=d.yieldResult;a.isEnforcedPrivateMode$.next(((c=b.getUserState())==null?void 0:wi(c,3))===2);var e=ISa(new Date(2025,1,11)),f,g=b==null?void 0:(f=b.getUserState())==null?void 0:X(f,Si,2);(!g||g<e)&&a.showGeneralAnnouncementBanner$.next(!0);var k;((k=b.getUserState())==null?0:k.getDisallowRestrictedContent())&&a.allowPersonalResults$.next(!1);
a.showErrorScreen$.getValue()||qIc(a,b)||a.showTosDialog$.next(!0);a.userStateLoaded$.next(!0);ae(d)})};
mC.prototype.getUserState=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return Wd(e,2),z(e,a.duckieService.getUserState(new ZFc),4);if(e.nextAddress!=2)return e.return(e.yieldResult);if((b=$d(e))&&((c=b.message)==null?0:c.includes("not found")))return e.return(new zB);((d=b.message)==null?0:d.includes("does not have permission"))?a.currentErrorType$.next(2):a.currentErrorType$.next(3);a.showErrorScreen$.next(!0);a.showTosDialog$.next(!1);return e.return(new zB)})};
var rIc=function(a){return a.getUserState().then(function(b){var c;if(b==null)b=void 0;else{var d;(c=b.getUserState())==null?d=void 0:d=wn(c,5,Ci());b=d}return b})},sIc=function(a,b){var c,d,e,f,g;y(function(k){switch(k.nextAddress){case 1:return z(k,a.getUserState(),2);case 2:return d=(c=k.yieldResult)!=null?c:new zB,f=(e=d.getUserState())==null?void 0:cx(e,5,b),g=(new CB).setUserState(f),Wd(k,3),z(k,a.duckieService.updateUserState(g),5);case 5:dt(k,0);break;case 3:$d(k),a.showErrorScreen$.next(!0),
ae(k)}})},qIc=function(a,b){var c;return(b=b==null?void 0:(c=b.getUserState())==null?void 0:Bi(c,$Fc,1,Ci()))?b.some(function(d){return d.getClient()===a.duckieClient&&wi(d,3)===3}):!1};mC.\u0275fac=function(a){return new (a||mC)(Xc(gC))};mC.\u0275prov=Dc({token:mC,factory:mC.\u0275fac,providedIn:"root"});var tIc={SESSION_STATE_UNSPECIFIED:0,SESSION_STATE_ACTIVE:1,SESSION_STATE_PINNED:2,SESSION_STATE_ARCHIVED:3,SESSION_STATE_DEPRECATED:4};var nC=function(){var a=this;this.duckieService=p(gC);this.routingService=p(BA);this.userStateService=p(mC);this.conversationAgentsService=p(jC);this.communicationService=p(iC);this.duckieClient=p(GEc);this.sessionSummariesInternal=new Mj([]);this.sessionSummaries$=this.sessionSummariesInternal.pipe(vf({bufferSize:1,refCount:!0}));this.isLoadingSessionSummariesInternal=new Mj(!1);this.isLoadingSessionSummaries$=this.isLoadingSessionSummariesInternal.pipe(vf({bufferSize:1,refCount:!0}));this.isIncognitoMode$=
new Mj(!1);this.userStateService.userStateLoaded$.subscribe(function(b){a.isIncognitoMode$=a.userStateService.isEnforcedPrivateMode$;b&&uIc(a)})},uIc=function(a){var b,c,d;y(function(e){if(e.nextAddress==1){a.isLoadingSessionSummariesInternal.next(!0);b=[];if(a.isIncognitoMode$.getValue())return e.jumpTo(2);var f=new VFc;f=cx(f,1,[a.duckieClient]);f=zc(f,2,Cb,1,void 0,Db);c=zc(f,2,Cb,2,void 0,Db);a.communicationService.hasParentIntegratorValue&&kC(a.conversationAgentsService).agentId!=="duckie_on_goose"&&
c.setConversationAgentId(kC(a.conversationAgentsService).agentId).setConversationAgentModelId(kC(a.conversationAgentsService).modelId);return z(e,a.duckieService.getSessionSummaries(c),3)}e.nextAddress!=2&&(d=e.yieldResult)&&(b=Bi(d,WFc,1,Ci()).map(Cta).sort(a.summarySortFunction));a.sessionSummariesInternal.next(b);a.isLoadingSessionSummariesInternal.next(!1);return e.return(b)})},wIc=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,b.serverId,2);c=f.yieldResult;if(!c)return f.return();
d=vIc(a,c,b);e=a.sessionSummariesInternal.value.filter(function(g){return g.sessionId!==c});e.unshift(d);e.sort(a.summarySortFunction);a.sessionSummariesInternal.next(e);ae(f)})},xIc=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,b.serverId,2);c=f.yieldResult;if(!c)return f.return();d=b.title;e=a.sessionSummariesInternal.value;e=e.map(function(g){return g.sessionId===c?Object.assign({},g,{title:d}):g});a.sessionSummariesInternal.next(e);ae(f)})},yIc=function(a,b){var c,
d;return y(function(e){if(e.nextAddress==1)return z(e,b.serverId,2);c=e.yieldResult;if(!c)return e.return();d=a.sessionSummariesInternal.value;d=d.map(function(f){return f.sessionId===c?Object.assign({},f,{privacyMode:b.privacyMode}):f});a.sessionSummariesInternal.next(d);ae(e)})};h=nC.prototype;
h.toggleSessionPinnedState=function(a){var b=this,c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1)return c=a.sessionId,d=a.sessionState===2?1:2,e=(new BB).setSessionId(c).setSessionState(d),z(l,b.duckieService.updateSession(e),2);f=l.yieldResult;if(!f)return l.return();g=b.sessionSummariesInternal.value;if(k=g.find(function(r){return r.sessionId===c}))k.sessionState=f.getSession().getSessionState();g.sort(b.summarySortFunction);b.sessionSummariesInternal.next(g);ae(l)})};
h.toggleSessionArchivedState=function(a){var b=this,c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1)return c=a.sessionId,d=a.sessionState===3?1:3,e=(new BB).setSessionId(c).setSessionState(d),z(l,b.duckieService.updateSession(e),2);f=l.yieldResult;if(!f)return l.return();g=b.sessionSummariesInternal.value;if(k=g.find(function(r){return r.sessionId===c}))k.sessionState=f.getSession().getSessionState();g=g.filter(b.filterOutArchivedSessions);b.sessionSummariesInternal.next(g);ae(l)})};
h.deleteSession=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return c=a.sessionId,d=(new vB).setSessionId(c),z(f,b.duckieService.deleteSession(d),2);if(f.nextAddress!=3)return b.routingService.state$.value.params.id===c?z(f,zIc(b.routingService),3):f.jumpTo(3);e=b.sessionSummariesInternal.value.filter(function(g){return g.sessionId!==c});b.sessionSummariesInternal.next(e);ae(f)})};
h.summarySortFunction=function(a,b){a=a.sessionState===2;return a===(b.sessionState===2)?0:a?-1:1};h.filterOutArchivedSessions=function(a){return a.sessionState===1||a.sessionState===2};var vIc=function(a,b,c){var d,e,f;return{sessionId:b,title:c.title,agentId:(d=c.agentId)!=null?d:"",agentVersion:(e=c.agentVersion)!=null?e:"",privacyMode:(f=c.privacyMode)!=null?f:0,client:a.duckieClient,sessionState:1}};nC.\u0275fac=function(a){return new (a||nC)};
nC.\u0275prov=Dc({token:nC,factory:nC.\u0275fac,providedIn:"root"});var AIc=/(?:^|\b)(?:https?:\/\/)?(?:cr|critique|cl)(?:\.corp\.google\.com)?(?:\/cl)?\/([0-9]+)/gi,BIc=RegExp("(?<=^|\\s|\\()(((?:https://source\\.corp\\.google\\.com/piper///depot/google3/|https://cs\\.corp\\.google\\.com/piper///depot/google3/|(?:(?:https?:)?//)?cs/|(?:(?:https?:)?//)?codesearch/|//depot/google3/|http://google3/|google3/|depot/google3/)))([^\\s),)]+)","gi"),CIc=RegExp("(?<=^|\\s|\\()(((?:https://source\\.corp\\.google\\.com/piper///depot/google3/|https://cs\\.corp\\.google\\.com/piper///depot/google3/|https://source\\.corp\\.google\\.com/h/|https://cs\\.corp\\.google\\.com/h/|(?:(?:https?:)?//)?cs/h/|(?:(?:https?:)?//)?codesearch/h/|(?:(?:https?:)?//)?cs/|(?:(?:https?:)?//)?codesearch/|//depot/google3/|http://google3/|google3/|depot/google3/)))([^\\s),)]+)",
"gi"),DIc=new RegExp(/(?:^|\b)(?:https?:\/\/)?(g3doc(?:\.corp\.google\.com)?(?:\/[\S]+)*\/(?:[\S]+\.md))(?:[\?;#][\S]*[A-Za-z0-9]+)?/,"gi"),EIc=/(?:^|\b)(?:https?:\/\/)?(?:b|buganizer)(?:\.corp\.google\.com)?\/(?:issues\/)?([0-9]+)/gi,FIc=/(?:^|\b)(?:https?:\/\/)?(?:screen|screenshot)(?:\.corp\.google\.com)?(?:\.googleplex\.com)?\/([0-9A-Za-z]+)/gi,GIc=/(?:^|\b)(?:https?:\/\/)?(?:yaqs)(?:\.corp\.google\.com)?\/eng\/q\/([0-9]+)/gi,HIc=/(?:^|\b)(?:https?:\/\/)?(?:docs|drive)(?:\.google\.com)?\/(?:(?:(?:document|spreadsheets|presentation|file)\/d\/)|(?:(?:corp\/drive\/)?folders\/))[0-9A-Za-z-_]+[^\s)]*/gi,
IIc=/(?:^|\b)(?:https?:\/\/)?(?:omg|irm)(?:\.corp\.google\.com)?\/(?:signals\/|incidents\/|triage\/from-am-incident\/)?([0-9]+|i_[A-Za-z0-9_-]+|s_[A-Za-z0-9_-]+)(?:\/[\S]+)?/gi,JIc=/(?:^|\b)(?:https?:\/\/)?go\/([^\s,)]*[^\s,."')?!;:\[\]{}\n])/gi,KIc=/(?:^|\b)((https?:\/\/)?(?:([\w-]+)-)?review\.(?:googlesource\.com|git\.corp\.google\.com)\/c\/.+?\/\+\/([0-9]+))/gi,LIc={chromium:"crrev","googleplex-android":"ag"},MIc=/([^/;\s]+)\/?(?:;|\\s|$)/,NIc=/\/\d{3,}/,OIc=/([^/\\]+\.md)/,PIc=/(?:(?:\/d\/)|(?:folders\/))([A-Za-z0-9_-]+?)(?:[\/?#]|$)/i,
QIc=/go\/[^\s),)]+/i,oC=function(){this.experimentsService=p(qA);this.userContextServiceErrorInternal$=new Mj(null);this.userContextServiceError$=this.userContextServiceErrorInternal$.pipe(vf({bufferSize:1,refCount:!0}));this.suggestedUserProvidedContextContentInternal$=new Mj([]);this.suggestedUserProvidedContextContent$=this.suggestedUserProvidedContextContentInternal$.pipe(vf({bufferSize:1,refCount:!0}));this.ignoredSuggestedUserProvidedContextSources=[]},RIc=function(a,b){a.suggestedUserProvidedContextContentInternal$.next(a.suggestedUserProvidedContextContentInternal$.value.filter(function(c){c.fullUrl===
b&&a.ignoredSuggestedUserProvidedContextSources.push(c);return c.fullUrl!==b}))},SIc=function(a){a.suggestedUserProvidedContextContentInternal$.next([]);a.ignoredSuggestedUserProvidedContextSources=[]},TIc=function(a){return a?LIc[a]||a:"gerrit"},VIc=function(a,b,c){var d=[],e=[];[].concat(q(b.matchAll(AIc))).forEach(function(O){var R,V=(R=O[0])==null?void 0:R.match(NIc);V&&e.push({label:c?"cl"+V[0]:V[0].substring(1),index:O.index,imgSrc:Dta(),imgAlt:"Critique logo",source:1,fullUrl:O[0]})});var f=
[];[].concat(q(b.matchAll(a.experimentsService.userProvidedContextGobEnabled?CIc:BIc))).forEach(function(O){var R=O[0].slice(-1)==="."?O[0].slice(0,-1):O[0],V=O[O.length-1],ca=V.slice(-1)==="."?V.slice(0,-1):V;c&&(ca="cs/"+(R==null?void 0:R.match(MIc))[1]);V=f.push;for(var na=ca.length,ua=m([";","?"]),ia=ua.next();!ia.done;ia=ua.next())ia=ca.indexOf(ia.value),ia!==-1&&ia<na&&(na=ia);V.call(f,{label:ca.substring(0,na),index:O.index,imgSrc:Eta(),imgAlt:pC(3),source:3,fullUrl:R})});var g=[];[].concat(q(b.matchAll(DIc))).forEach(function(O){var R,
V=(R=O[1])==null?void 0:R.match(OIc);R=O[1];g.push({label:c&&V?"g3doc/"+V[0]:R,index:O.index,imgSrc:Fta(),imgAlt:pC(2),source:2,fullUrl:O[0]})});var k=[];[].concat(q(b.matchAll(EIc))).forEach(function(O){k.push({label:c?"b/"+O[1]:O[1],index:O.index,imgSrc:Gta(),imgAlt:pC(4),source:4,fullUrl:O[0]})});var l=[];a.experimentsService.screenshotLinkFollowingEnabled&&[].concat(q(b.matchAll(FIc))).forEach(function(O){l.push({label:c?"screen/"+O[1]:O[1],index:O.index,imgSrc:Hta(),imgAlt:pC(5),source:5,fullUrl:O[0]})});
var r=[];a.experimentsService.userProvidedContextYaqsEnabled&&[].concat(q(b.matchAll(GIc))).forEach(function(O){r.push({label:c?"yaqs/"+O[1]:O[0],index:O.index,imgSrc:Ita(),imgAlt:pC(7),source:7,fullUrl:O[0]})});var w=[];a.experimentsService.userProvidedContextDriveEnabled&&[].concat(q(b.matchAll(HIc))).forEach(function(O){var R=O[0].match(PIc),V=UIc(O[0]);w.push({label:c&&R&&R.length>1?V.prefix+R[1].slice(-5):O[0],index:O.index,imgSrc:V.logoSource,imgAlt:pC(6),source:6,fullUrl:O[0]})});var x=[];
a.experimentsService.userProvidedContextIrmEnabled&&[].concat(q(b.matchAll(IIc))).forEach(function(O){x.push({label:c?"irm/"+O[1]:O[0],index:O.index,imgSrc:"https://www.gstatic.com/uif/product_icons/irm.svg",imgAlt:pC(8),source:8,fullUrl:O[0]})});var C=[];a.experimentsService.userProvidedContextGoLinkEnabled&&[].concat(q(b.matchAll(JIc))).forEach(function(O){var R,V=(R=O[0])==null?void 0:R.match(QIc);C.push({label:c&&V?V[0]:O[0],index:O.index,imgSrc:Jta(),imgAlt:pC(9),source:9,fullUrl:O[0]})});var H=
[];a.experimentsService.userProvidedContextGerritEnabled&&[].concat(q(b.matchAll(KIc))).forEach(function(O){var R=O[1],V=TIc(O[3]),ca=O[4];H.push({label:c?V+"/"+ca:R,index:O.index,imgSrc:Kta(),imgAlt:pC(10),source:10,fullUrl:R})});b=[].concat(q(e),q(f),q(g),q(k),q(l),q(r),q(w),q(x),q(C),q(H)).filter(function(O){return!a.ignoredSuggestedUserProvidedContextSources.some(function(R){return R.fullUrl===O.fullUrl})});if(b.length>20)a.userContextServiceErrorInternal$.next("Warning: link following is disabled because the maximum number of links (20) has been exceeded");
else{a.userContextServiceErrorInternal$.next(null);b.sort(function(O,R){return O.index-R.index});b=m(b);for(var J=b.next();!J.done;J=b.next())J=J.value,d.push({imgSrc:J.imgSrc,imgAlt:J.imgAlt,label:J.label,source:J.source,fullUrl:J.fullUrl})}return d},UIc=function(a){a=a.toLowerCase();return a.includes("document")?{logoSource:"https://www.gstatic.com/images/branding/productlogos/docs/v7/192px.svg",prefix:"docs/..."}:a.includes("presentation")?{logoSource:"https://www.gstatic.com/images/branding/productlogos/slides/v7/192px.svg",
prefix:"slides/..."}:a.includes("spreadsheets")?{logoSource:"https://www.gstatic.com/images/branding/productlogos/sheets/v7/192px.svg",prefix:"sheets/..."}:{logoSource:"https://www.gstatic.com/images/branding/productlogos/drive_2020q4/v10/192px.svg",prefix:"drive/..."}},YIc=function(a){var b=[],c=[];a.messages.forEach(function(e){var f;(f=e.userProvidedContext)==null||f.forEach(function(g){var k=g.getType(),l=g.getUrl();g=ui(g,3);c.findIndex(function(r){return r.source===k&&r.url===l})===-1&&c.push({label:WIc(k,
l),imgSrc:XIc(k,l),imgAlt:pC(k),source:k,url:l,fullUrl:g})})});a=m(c);for(var d=a.next();!d.done;d=a.next())d=d.value,b.push({imgSrc:d.imgSrc,imgAlt:d.imgAlt,label:d.label,source:d.source,fullUrl:d.fullUrl});return b},WIc=function(a,b){switch(a){case 1:return"cl/"+b;case 2:var c=b.match(OIc);return"g3doc/"+(c?c[0]:b);case 3:return c=b.match(MIc),"cs/"+(c?c[0]:b);case 4:return"b/"+b;case 5:return"screen/"+b;case 9:return(c=b.match(QIc))?c[0]:"go/"+b;case 6:return a=(a=b.match(PIc))?(c=a[1])==null?
void 0:c.slice(-5):b.slice(-5),UIc(b).prefix+a;case 10:return c=b.match(new RegExp(KIc.source,"i")),console.log("gerritMatch reconstructed",c),c?TIc(c[3])+"/"+c[4]:b;default:return b}},XIc=function(a,b){switch(a){case 1:return Dta();case 2:return Fta();case 3:return Eta();case 4:return Gta();case 5:return Hta();case 7:return Ita();case 9:return Jta();case 6:return UIc(b).logoSource;case 10:return Kta();default:return""}},pC=function(a){switch(a){case 1:return"Critique logo";case 2:return"G3Doc logo";
case 3:return"CodeSearch logo";case 4:return"Buganizer logo";case 5:return"SnipIt Screenshot logo";case 7:return"YAQS logo";case 9:return"Go Link logo";case 6:return"Drive logo";case 8:return"IRM logo";case 10:return"Gerrit logo";default:return""}};oC.\u0275fac=function(a){return new (a||oC)};oC.\u0275prov=Dc({token:oC,factory:oC.\u0275fac,providedIn:"root"});var ZIc=function(a){this.eventID=a;this.interactionMetadataHandlers=[];this.testCodeList=[];this.parentEventId=void 0};h=ZIc.prototype;h.getID=function(){return this.eventID};h.addInteractionMetadataHandler=function(a){this.interactionMetadataHandlers.push(a)};h.populateInteractionMetadata=function(a){if(this.interactionMetadataHandlers.length>0)for(var b=m(this.interactionMetadataHandlers),c=b.next();!c.done;c=b.next())c=c.value,c(a)};h.setTestCodeList=function(a){this.testCodeList=Array.from(a)};
h.getTestCodeList=function(){return this.testCodeList};h.setParentEventId=function(a){this.parentEventId=a};h.getParentEventId=function(){return this.parentEventId};var $Ic=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($Ic,W);$Ic.prototype.getUrl=function(){return ui(this,1)};$Ic.prototype.setUrl=function(a){return oj(this,1,a)};$Ic.prototype.hasUrl=function(){return im(this,1)};var qC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qC,W);qC.prototype.getIsPrivateDocument=function(){return Fi(this,2)};qC.prototype.setIsPrivateDocument=function(a){return Oi(this,2,a)};var aJc=function(a){var b=new qC;return Ni(b,7,a)};var cm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cm,W);h=cm.prototype;h.getMessageId=function(){return ui(this,1)};h.setMessageId=function(a){return oj(this,1,a)};h.hasMessageId=function(){return im(this,1)};h.getSessionId=function(){return ui(this,2)};h.setSessionId=function(a){return oj(this,2,a)};h.hasSessionId=function(){return im(this,2)};var bJc=function(a,b){return Mi(a,qC,3,b)};var cJc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cJc,W);var nMa=function(a){var b=new cJc;return Mi(b,cm,1,a)};var rC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,1)};Y(rC,W);var dJc=new vA(259,rC,cJc);var sC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sC,W);sC.prototype.setVeIndex=function(a){En(this,1,a)};var eJc=function(a,b){En(a,2,b)};sC.prototype.setElementIndex=function(a){En(this,5,a)};sC.prototype.getResultIndex=function(){return Bm(this,6,-1)};sC.prototype.setResultIndex=function(a){En(this,6,a)};var fJc=[0,tA,-1,2,tA,-4,uA,tA,nEc,VEc,tA,[0,mEc,tA],tA];var tC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tC,W);tC.prototype.setVed=function(a){return Bo(this,5,gJc,a)};var hJc=[1,3,4],gJc=[2,5];var uC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,233)};Y(uC,W);uC.prototype.setUiType=function(a){return En(this,1,a)};uC.prototype.setElementIndex=function(a){En(this,3,a)};var iJc=function(a,b){xc(a,4,b,Eb)};uC.prototype.getResultIndex=function(){return Bm(this,7)};uC.prototype.setResultIndex=function(a){En(this,7,a)};uC.prototype.setVisible=function(a){return Gn(this,6,a)};var vC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,17)};Y(vC,W);h=vC.prototype;h.setVed=function(a){return oj(this,11,a)};h.setUiType=function(a){return En(this,1,a)};h.setVeIndex=function(a){En(this,2,a)};h.getResultIndex=function(){return Bm(this,7,-1)};h.setResultIndex=function(a){En(this,7,a)};h.setElementIndex=function(a){En(this,8,a)};var jJc=function(a,b){Ni(a,14,b)},kJc=function(a){return lb(function(b){return b instanceof a&&!fb(b)})}(vC);var lJc=function(a){ZIc.call(this,a)};Y(lJc,ZIc);var mJc=function(a,b){a.addInteractionMetadataHandler(function(c){if(kJc(c)){var d=Pv(new rC,dJc,b);Mi(c,rC,15,d)}})};ra.U3bHHf!=null||(ra.U3bHHf=0);ra.U3bHHf++;var Eu=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0};Eu.prototype.clone=function(){return new Eu(this.x,this.y)};Eu.prototype.equals=function(a){return a instanceof Eu&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};var qoc=function(a,b){return new Eu(a.x-b.x,a.y-b.y)};h=Eu.prototype;h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};h.translate=function(a,b){a instanceof Eu?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),typeof b==="number"&&(this.y+=b));return this};h.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};var wC=function(a,b){this.width=a;this.height=b};h=wC.prototype;h.clone=function(){return new wC(this.width,this.height)};h.area=function(){return this.width*this.height};h.aspectRatio=function(){return this.width/this.height};h.isEmpty=function(){return!this.area()};h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};h.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};var pJc=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===nJc&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=oJc};pJc.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};var oJc={},nJc={};var kj=function(a){return a?new xC(Gu(a)):Cwc||(Cwc=new xC)},yC=function(a,b){return(b||document).getElementsByTagName(String(a))},zC=function(a,b,c,d){a=d||a;return(b=b&&b!="*"?String(b).toUpperCase():"")||c?a.querySelectorAll(b+(c?"."+c:"")):a.getElementsByTagName("*")},rJc=function(a,b){$i(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:qJc.hasOwnProperty(d)?a.setAttribute(qJc[d],c):d.lastIndexOf("aria-",0)==0||d.lastIndexOf("data-",0)==0?a.setAttribute(d,
c):a[d]=c})},qJc={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"},AC=function(a){a=(a||window).document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new wC(a.clientWidth,a.clientHeight)},sJc=function(a){return a.scrollingElement?a.scrollingElement:ej||a.compatMode!="CSS1Compat"?a.body||a.documentElement:
a.documentElement},Fu=function(a){return a?a.defaultView:window},uJc=function(a,b,c){return tJc(document,arguments)},tJc=function(a,b){var c=b[1],d=Vs(a,String(b[0]));c&&(typeof c==="string"?d.className=c:Array.isArray(c)?d.className=c.join(" "):rJc(d,c));b.length>2&&vJc(a,d,b,2);return d},vJc=function(a,b,c,d){function e(k){k&&b.appendChild(typeof k==="string"?a.createTextNode(k):k)}for(;d<c.length;d++){var f=c[d];if(!Na(f)||Oa(f)&&f.nodeType>0)e(f);else{a:{if(f&&typeof f.length=="number"){if(Oa(f)){var g=
typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){g=typeof f.item=="function";break a}}g=!1}Ja(g?Ma(f):f,e)}}},Vs=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)},wJc=function(a,b){vJc(Gu(a),a,arguments,1)},BC=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},CC=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},xJc=function(a){return Oa(a)&&a.nodeType==1},Pta=function(a){return a.parentElement||
null},fBb=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},Gu=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},yJc=function(a){return a.contentDocument||a.contentWindow.document},zJc=function(a,b){if("textContent"in a)a.textContent=b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==
3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else BC(a),a.appendChild(Gu(a).createTextNode(String(b)))},AJc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},BJc={IMG:" ",BR:"\n"},CJc=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768},EJc=function(a){var b=[];DJc(a,b,!0);a=b.join("");a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");a!=" "&&(a=a.replace(/^\s*/,""));return a},DJc=function(a,b,c){if(!(a.nodeName in
AJc))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in BJc)b.push(BJc[a.nodeName]);else for(a=a.firstChild;a;)DJc(a,b,c),a=a.nextSibling},GJc=function(a){return FJc(a,function(b){return typeof b.className==="string"&&Ka(b.className.split(/\s+/),"ace-tooltip-close-button")})},FJc=function(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null},Mnc=function(){var a=Fu();return a.devicePixelRatio!==void 0?a.devicePixelRatio:
a.matchMedia?HJc(3)||HJc(2)||HJc(1.5)||HJc(1)||.75:1},HJc=function(a){return Fu().matchMedia("(min-resolution: "+a+"dppx),(min--moz-device-pixel-ratio: "+a+"),(min-resolution: "+a*96+"dpi)").matches?a:0},xC=function(a){this.document_=a||ra.document||document};h=xC.prototype;h.getDomHelper=kj;h.getElement=function(a){var b=this.document_;return typeof a==="string"?b.getElementById(a):a};h.$=xC.prototype.getElement;h.getElementsByTagName=function(a,b){return(b||this.document_).getElementsByTagName(String(a))};
h.getElementsByTagNameAndClass=function(a,b,c){return zC(this.document_,a,b,c)};h.$$=xC.prototype.getElementsByTagNameAndClass;h.setProperties=rJc;h.getViewportSize=function(a){return AC(a||this.getWindow())};h.createDom=function(a,b,c){return tJc(this.document_,arguments)};h.createElement=function(a){return Vs(this.document_,a)};h.createTextNode=function(a){return this.document_.createTextNode(String(a))};h.getWindow=function(){return this.document_.defaultView};
var IJc=function(a){var b=a.document_;a=sJc(b);b=b.defaultView;return new Eu((b==null?void 0:b.pageXOffset)||a.scrollLeft,(b==null?void 0:b.pageYOffset)||a.scrollTop)};h=xC.prototype;h.appendChild=function(a,b){a.appendChild(b)};h.append=wJc;h.canHaveChildren=function(a){if(a.nodeType!=1)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};
h.removeNode=CC;h.getChildren=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})};h.getParentElement=Pta;h.contains=fBb;h.isFocusable=function(a){return a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?!a.disabled&&(!a.hasAttribute("tabindex")||CJc(a)):a.hasAttribute("tabindex")&&CJc(a)};var JJc=function(a,b){this.limit_=100;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};JJc.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var a=this.head_;this.head_=a.next;a.next=null}else a=this.create_();return a};JJc.prototype.put=function(a){this.reset_(a);this.occupants_<this.limit_&&(this.occupants_++,a.next=this.head_,this.head_=a)};sGc(function(){});var KJc=function(){this.workTail_=this.workHead_=null};KJc.prototype.add=function(a,b){var c=Mta.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};KJc.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 Mta=new JJc(function(){return new LJc},function(a){return a.reset()}),LJc=function(){this.next=this.scope=this.fn=null};
LJc.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};LJc.prototype.reset=function(){this.next=this.scope=this.fn=null};var MJc,Nta=!1,Lta=new KJc,DC=function(a,b){MJc||NJc();Nta||(MJc(),Nta=!0);Lta.add(a,b)},NJc=function(){var a=Promise.resolve(void 0);MJc=function(){a.then(Ota)}};var OJc=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var FC=function(a){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=PB)try{var b=this;a.call(void 0,function(c){EC(b,2,c)},function(c){EC(b,3,c)})}catch(c){EC(this,3,c)}},PJc=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};PJc.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
var QJc=new JJc(function(){return new PJc},function(a){a.reset()}),RJc=function(a,b,c){var d=QJc.get();d.onFulfilled=a;d.onRejected=b;d.context=c;return d},SJc=function(a){if(a instanceof FC)return a;var b=new FC(PB);EC(b,2,a);return b},TJc=function(a){return new FC(function(b,c){c(a)})},VJc=function(a,b,c){UJc(a,b,c,null)||DC(ww(b,a))},WJc=function(a){return new FC(function(b,c){var d=a.length,e=[];if(d)for(var f=function(r,w){d--;e[r]=w;d==0&&b(e)},g=function(r){c(r)},k,l=0;l<a.length;l++)k=a[l],
VJc(k,ww(f,l),g);else b(e)})},XJc=function(a){return new FC(function(b,c){var d=a.length,e=[];if(d)for(var f=function(r){b(r)},g=function(r,w){d--;e[r]=w;d==0&&c(e)},k,l=0;l<a.length;l++)k=a[l],VJc(k,f,ww(g,l));else b(void 0)})},ZJc=function(){var a,b,c=new FC(function(d,e){a=d;b=e});return new YJc(c,a,b)};FC.prototype.then=function(a,b,c){return $Jc(this,MB(typeof a==="function"?a:null),MB(typeof b==="function"?b:null),c)};FC.prototype.$goog_Thenable=!0;
var bKc=function(a,b,c,d){aKc(a,RJc(b||PB,c||null,d))};FC.prototype.finally=function(a){var b=this;a=MB(a);return new FC(function(c,d){bKc(b,function(e){a();c(e)},function(e){a();d(e)})})};FC.prototype.thenCatch=function(a,b){return $Jc(this,null,MB(a),b)};FC.prototype.catch=FC.prototype.thenCatch;FC.prototype.cancel=function(a){if(this.state_==0){var b=new cKc(a);DC(function(){dKc(this,b)},this)}};
var dKc=function(a,b){if(a.state_==0)if(a.parent_){var c=a.parent_;if(c.callbackEntries_){for(var d=0,e=null,f=null,g=c.callbackEntries_;g&&(g.always||(d++,g.child==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.state_==0&&d==1?dKc(c,b):(f?(d=f,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):eKc(c),fKc(c,e,3,b)))}a.parent_=null}else EC(a,3,b)},aKc=function(a,b){a.callbackEntries_||a.state_!=2&&a.state_!=3||gKc(a);a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=
b;a.callbackEntriesTail_=b},$Jc=function(a,b,c,d){var e=RJc(null,null,null);e.child=new FC(function(f,g){e.onFulfilled=b?function(k){try{var l=b.call(d,k);f(l)}catch(r){g(r)}}:f;e.onRejected=c?function(k){try{var l=c.call(d,k);l===void 0&&k instanceof cKc?g(k):f(l)}catch(r){g(r)}}:g});e.child.parent_=a;aKc(a,e);return e.child};FC.prototype.unblockAndFulfill_=function(a){this.state_=0;EC(this,2,a)};FC.prototype.unblockAndReject_=function(a){this.state_=0;EC(this,3,a)};
var EC=function(a,b,c){a.state_==0&&(a===c&&(b=3,c=new TypeError("xb")),a.state_=1,UJc(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,gKc(a),b!=3||c instanceof cKc||hKc(a,c)))},UJc=function(a,b,c,d){if(a instanceof FC)return bKc(a,b,c,d),!0;if(OJc(a))return a.then(b,c,d),!0;if(Oa(a))try{var e=a.then;if(typeof e==="function")return iKc(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},iKc=function(a,b,c,d,e){var f=!1,g=function(l){f||(f=!0,c.call(e,l))},
k=function(l){f||(f=!0,d.call(e,l))};try{b.call(a,g,k)}catch(l){k(l)}},gKc=function(a){a.executing_||(a.executing_=!0,DC(a.executeCallbacks_,a))},eKc=function(a){var b=null;a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};FC.prototype.executeCallbacks_=function(){for(var a;a=eKc(this);)fKc(this,a,this.state_,this.result_);this.executing_=!1};
var fKc=function(a,b,c,d){if(c==3&&b.onRejected&&!b.always)for(;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1;if(b.child)b.child.parent_=null,jKc(b,c,d);else try{b.always?b.onFulfilled.call(b.context):jKc(b,c,d)}catch(e){kKc.call(null,e)}QJc.put(b)},jKc=function(a,b,c){b==2?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)},hKc=function(a,b){a.hadUnhandledRejection_=!0;DC(function(){a.hadUnhandledRejection_&&kKc.call(null,b)})},kKc=ta,cKc=function(a){pa.call(this,
a);this.reportErrorToServer=!1};yw(cKc,pa);cKc.prototype.name="cancel";var YJc=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};var lKc=1;var mKc=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};(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 nKc=function(){},oKc=[[],[]],pKc=0,qKc=new Set,rKc=null,sKc=0,tKc=0,uKc=0,vKc=0,wKc=0,xKc=function(a){this.mutate_=this.measure_=void 0;this.runInCurrentFrameIfPossible_=!1;this.window_=window;this.context_=a;this.state_ctor_=nKc};h=xKc.prototype;h.measure=function(a){this.measure_=a;return this};h.mutate=function(a){this.mutate_=a;return this};h.runInCurrentFrameIfPossible=function(){this.runInCurrentFrameIfPossible_=!0;return this};
h.window=function(a){this.window_=a;return this};h.build=function(){return yKc({measure:this.measure_,mutate:this.mutate_,stateCtor:this.state_ctor_,window:this.window_,runInCurrentFrameIfPossible:this.runInCurrentFrameIfPossible_},this.context_)};
var yKc=function(a,b){var c=wKc++,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 g=f.phase!==0;g&&(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);g&&(g=pKc,!a.runInCurrentFrameIfPossible||vKc==0||a.measure&&vKc!=1||(g=(g+1)%2),oKc[g].push(f));return zKc(a.window)}},AKc=function(a,b){var c={};
vKc=1;for(var d=0;d<a.length;++d){var e=a[d];var f=e.args[e.args.length-1];f&&typeof f==="object"&&(f.now=b);if(e.measureFn){e.phase=1;try{e.measureFn.apply(e.context,e.args)}catch(g){c[d]=!0,ta(g)}}}vKc=2;for(d=0;d<a.length;++d)if(e=a[d],(f=e.args[e.args.length-1])&&typeof f==="object"&&(f.now=b),!c[d]&&e.mutateFn){e.phase=2;try{e.mutateFn.apply(e.context,e.args)}catch(g){ta(g)}}sKc>0&&b>1&&(a=b-sKc,a<500&&(lKc++,a>100&&tKc++,uKc<a&&(uKc=a)));sKc=qKc.size&&b>1?b:0},zKc=function(a){if(!qKc.has(a)){qKc.size||
(rKc=new mKc);qKc.add(a);var b=rKc.resolve;a.requestAnimationFrame(function(c){qKc.clear();var d=oKc[pKc];pKc=(pKc+1)%2;try{AKc(d,c)}finally{vKc=0,d.length=0}b()})}return rKc.promise};var BKc=function(){this.client_info=this.global_metadata=this.ve_metadata=void 0;this.testCodes=[]};var GC=function(){};GC.prototype.impressionEvent=function(){return[]};GC.prototype.interactionEvent=function(){return[]};GC.prototype.visibilityEvent=function(){return[]};GC.prototype.semanticEvent=function(){return[]};var HC=function(){if(!CKc){var a=CKc=new REc,b=Date.now()*1E3+Math.floor(Math.random()*1E3);vn(a,1,b);Mr(CKc,2,Aca());Mr(CKc,3,Aca());DKc=0}a=new LA;a=Mi(a,REc,1,CKc);b=++DKc;return vn(a,2,b)},DKc=0,CKc=void 0;var EKc=function(a){this.userAction=a};for(var FKc={ARROW_KEYS:{string:"arrow_keys",xid:"Wxn7ub"},AUTOMATED:{string:"automated",xid:"wjpLYc"},CLICK:{string:"click",xid:"cOuCgd"},DRAGEND:{string:"dragend",xid:"RlD3W"},DROP:{string:"drop",xid:"DaY83b"},GENERIC_CLICK:{string:"generic_click",xid:"szJgjc"},HOVER:{string:"hover",xid:"ZmdkE"},IMPRESSION:{string:"impression",xid:"xr6bB"},KEYBOARD_ENTER:{string:"keyboard_enter",xid:"SYhH9d"},KEYPRESS:{string:"keypress",xid:"Kr2w4b"},LONG_PRESS:{string:"long_press",xid:"tfSNVb"},MOUSEOVER:{string:"mouseover",
xid:"FrfE3b"},RIGHT_CLICK:{string:"rightclick",xid:"CYQmze"},SCROLL:{string:"scroll",xid:"XuHpsb"},SWIPE:{string:"swipe",xid:"eteedb"},VIS:{string:"vis",xid:"HkgBsf"}},Sta=Wta(FKc),GKc=new Map,HKc=m(Object.keys(FKc)),IKc=HKc.next();!IKc.done;IKc=HKc.next()){var JKc=IKc.value;GKc.set(FKc[JKc].xid,FKc[JKc].string)}
var Uta=Wta({TRACK:{string:"track",xid:"u014N"},INDEX:{string:"index",xid:"cQYSPc"},MUTABLE:{string:"mutable",xid:"dYFj7e"},COMPONENT_ID:{string:"cid",xid:"cOuyq"},TEST_CODE:{string:"tc",xid:"DM6Eze"}});var KKc=function(a,b){this.visualElementProvider=a;this.traverseShadowDom=b===void 0?!1:b},MKc=function(a,b){return LKc(a,b).filter(function(c){return IC(this.visualElementProvider,c)!=null},a)},PKc=function(a,b){var c=a.visualElementProvider;a=[];for(var d=void 0,e={},f=0;f<b.length;e={parent$jscomp$91:void 0},++f){var g=IC(c,b[f]);g.traversalOrder_==void 0&&g.serverVed_==void 0&&(e.parent$jscomp$91=void 0,Rta(b[f],function(k){return function(l){l=IC(c,l);return l!=null?(k.parent$jscomp$91=l,!0):
!1}}(e),!1),e.parent$jscomp$91?d&&d.has(e.parent$jscomp$91)||(d=new Map,a.unshift(d),d.set(e.parent$jscomp$91,[]),NKc=1):(d=new Map,a.unshift(d),NKc=0),OKc(g),g.setParent(e.parent$jscomp$91),d.set(g,[]),e.parent$jscomp$91&&d.get(e.parent$jscomp$91).push(g.traversalOrder_))}return a},QKc=function(a,b){var c=a.visualElementProvider;return b.map(function(d){return IC(c,d)})},LKc=function(a,b){if(a.traverseShadowDom){var c=[];a=[];for(c.push.apply(c,b.querySelectorAll("*"));c.length>0;){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},NKc=0;var JC=function(a,b){this.visualElementID=a;this.index_=null;this.testCodes_=[];this.componentID_=void 0;this.retain_cached_impression_=this.mutable_=!1;this.attribute_=null;this.metadataHandlers_=[];this.interactionMetadataHandler_=void 0;this.xidTagComponents_=b||!1;this.tracks_=new Set};JC.prototype.getID=function(){return this.visualElementID};var RKc=function(a,b){return b?a.tracks_.has(a.maybeXidEventLabel_(b)):a.tracks_.size!=0};h=JC.prototype;h.setIndex=function(a){this.index_=a};
h.getIndex=function(){return this.index_};h.setComponentID=function(a){this.componentID_=a};h.getComponentID=function(){return this.componentID_};h.isMutable=function(){return this.mutable_};h.setAttribute=function(a){this.attribute_=a;return this};h.getAttribute=function(){return this.attribute_};var SKc=function(a,b){for(var c=0;c<a.metadataHandlers_.length;++c)a.metadataHandlers_[c](b)};JC.prototype.addInteractionMetadataHandler=function(a){this.interactionMetadataHandler_=a};
JC.prototype.populateInteractionMetadata=function(a){this.interactionMetadataHandler_&&this.interactionMetadataHandler_(a)};JC.prototype.maybeXidEventLabel_=function(a){return this.xidTagComponents_?Tta(a):a};JC.prototype.maybeXidPartLabel_=function(a){return this.xidTagComponents_?Vta(a):a};JC.prototype.isMutable=JC.prototype.isMutable;var TKc=Asa(sC,fJc),UKc=function(a){return function(b){var c=new bEc;nsa(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,ksa(a));return cEc(c)}}(fJc);var KC=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};KC.prototype.getTag=function(){return this.veTag_};KC.prototype.getElement=function(){return this.el_};var OKc=function(a){var b=NKc++;a.traversalOrder_=b};KC.prototype.setParent=function(a){this.parent_=a};KC.prototype.getParent=function(){return this.parent_};
var VKc=function(a){if(a.impressionEventID){var b=new sC;b.setVeIndex(a.traversalOrder_);eJc(b,a.getTag().getID());Mi(b,LA,13,a.impressionEventID);a=UKc(b);return"0"+wxc(a,4)}};var WKc=function(a,b){this.tagPopulator_=a;this.expectXidTagComponents_=b||!1;this.componentID_=void 0},IC=function(a,b){var c=b.LSWHIf||null;if(c&&(c.getTag().getComponentID()||a.componentID_)&&c.getTag().getComponentID()!=a.componentID_)return null;var d;!(d=c&&c.getTag().isMutable&&!c.getTag().isMutable())&&(d=c&&c.getTag().isMutable&&c.getTag().isMutable())&&(d=b.getAttribute("jslog"),d=!(!d||ya(d)||d!=c.getTag().getAttribute()));if(d)return c;d=b.getAttribute("jslog");if(!d)return null;d=XKc(a,
d);if(!d||(d.getComponentID()||a.componentID_)&&d.getComponentID()!=a.componentID_)return null;a=new KC(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||c.charAt(0)!="0"&&c.charAt(0)!="2")var e=null;else{c=c.substring(1);try{var f=TKc(c);e=X(f,LA,13)}catch(g){e=null}}e&&(a.impressionEventID=e,a.rootImpressionEventID=e)}return b.LSWHIf=a},XKc=function(a,b){if(ya(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(!ya(f)){var g=XGc(f);if(g.length<2)return null;f=g[0].trim();g=g[1].trim();if(ya(f)||ya(g))return null;switch(f){case a.maybeXidPartLabel_("track"):f=g.split(",");for(g=0;g<f.length;++g){var k=d,l=f[g].trim();if(a.expectXidTagComponents_){if(!k.xidTagComponents_)throw Error("Ab");if(!GKc.has(l))throw Error("Bb`"+l);k.tracks_.add(l)}else k.tracks_.add(k.maybeXidEventLabel_(l))}break;
case a.maybeXidPartLabel_("index"):d.setIndex(Number(g));break;case a.maybeXidPartLabel_("tc"):f=g.split(",");f=f.map(Number);f=f.filter(Number.isInteger);d.testCodes_=f;break;case "cid":d.setComponentID(g);break;case a.maybeXidPartLabel_("mutable"):g=="true"?d.mutable_=!0:g=="rci"&&(d.mutable_=!0,d.retain_cached_impression_=!0)}}}return d.setAttribute(b)};WKc.prototype.maybeXidPartLabel_=function(a){return this.expectXidTagComponents_?Vta(a):a};
WKc.prototype.setComponentID=function(a){this.componentID_=a};WKc.prototype.getComponentID=function(){return this.componentID_};var YKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YKc,W);YKc.prototype.setElementIndex=function(a){En(this,2,a)};YKc.prototype.setUserAction=function(a){return Gn(this,4,a)};var LC=function(a,b){jj.call(this);this.interval_=a||1;this.timerObject_=b||ra;this.boundTick_=mj(this.tick_,this);this.last_=Date.now()};yw(LC,jj);h=LC.prototype;h.enabled=!1;h.timer_=null;h.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};
h.tick_=function(){if(this.enabled){var a=Date.now()-this.last_;a>0&&a<this.interval_*.8?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()))}};h.start=function(){this.enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=Date.now())};
h.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};h.disposeInternal=function(){LC.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var Hs=function(a,b,c){if(typeof a==="function")c&&(a=mj(a,c));else if(a&&typeof a.handleEvent=="function")a=mj(a.handleEvent,a);else throw Error("Cb");return Number(b)>2147483647?-1:ra.setTimeout(a,b||0)},ZKc=function(){var a=null;return(new FC(function(b,c){a=Hs(function(){b(void 0)},5E3);a==-1&&c(Error("Db"))})).thenCatch(function(b){ra.clearTimeout(a);throw b;})};var $Kc=function(a,b,c){FB.call(this);this.listener_=c!=null?a.bind(c):a;this.interval_=b;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.timer_=null};Y($Kc,FB);h=$Kc.prototype;h.fire=function(a){this.args_=arguments;this.timer_||this.pauseCount_?this.shouldFire_=!0:aLc(this)};h.stop=function(){this.timer_&&(ra.clearTimeout(this.timer_),this.timer_=null,this.shouldFire_=!1,this.args_=null)};h.pause=function(){this.pauseCount_++};
h.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.timer_||(this.shouldFire_=!1,aLc(this))};h.disposeInternal=function(){FB.prototype.disposeInternal.call(this);this.stop()};var aLc=function(a){a.timer_=Hs(function(){a.timer_=null;a.shouldFire_&&!a.pauseCount_&&(a.shouldFire_=!1,aLc(a))},a.interval_);var b=a.args_;a.args_=null;a.listener_.apply(null,b)};var bLc=function(a,b){GB.call(this,"visibilitychange");this.hidden=a;this.visibilityState=b};Y(bLc,GB);var $ta=new WeakMap,Zta=function(a,b){a=[a];for(var c=b.length-1;c>=0;--c)a.push(typeof b[c],b[c]);return a.join("\v")};yw(aua,jj);h=aua.prototype;h.getBrowserEventType_=ij(function(){var a=this.isSupported(),b=this.getHiddenPropertyName_()!="hidden";if(a){var c;b?c=((Xta()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});h.getHiddenPropertyName_=ij(function(){return Yta("hidden",this.domHelper_.document_)});h.getVisibilityStatePropertyName_=ij(function(){return Yta("visibilityState",this.domHelper_.document_)});h.isSupported=function(){return!!this.getHiddenPropertyName_()};
h.isHidden=function(){return!!this.domHelper_.document_[this.getHiddenPropertyName_()]};h.getVisibilityState=function(){return this.isSupported()?this.domHelper_.document_[this.getVisibilityStatePropertyName_()]:null};h.handleChange_=function(){var a=this.getVisibilityState();a=new bLc(this.isHidden(),a);this.dispatchEvent(a)};h.disposeInternal=function(){LB(this.eventKey_);aua.superClass_.disposeInternal.call(this)};h=nj.prototype;h.getWidth=function(){return this.right-this.left};h.getHeight=function(){return this.bottom-this.top};h.clone=function(){return new nj(this.top,this.right,this.bottom,this.left)};h.contains=function(a){return this&&a?a instanceof nj?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};
h.expand=function(a,b,c,d){Oa(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};h.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};
h.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};h.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};
h.translate=function(a,b){a instanceof Eu?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,typeof b==="number"&&(this.top+=b,this.bottom+=b));return this};h.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};var Hu=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};Hu.prototype.clone=function(){return new Hu(this.left,this.top,this.width,this.height)};var toc=function(a){return new Hu(a.left,a.top,a.right-a.left,a.bottom-a.top)};
Hu.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 cLc=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 Hu(c,e,d-c,a-e)}return null};
h=Hu.prototype;h.difference=function(a){var b=cLc(this,a);if(b&&b.height&&b.width){b=[];var c=this.top,d=this.height,e=this.left+this.width,f=this.top+this.height,g=a.left+a.width,k=a.top+a.height;a.top>this.top&&(b.push(new Hu(this.left,this.top,this.width,a.top-this.top)),c=a.top,d-=a.top-this.top);k<f&&(b.push(new Hu(this.left,k,this.width,f-k)),d=k-c);a.left>this.left&&b.push(new Hu(this.left,c,a.left-this.left,d));g<e&&b.push(new Hu(g,c,e-g,d));a=b}else a=[this.clone()];return a};
h.contains=function(a){return a instanceof Eu?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};h.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)};h.getSize=function(){return new wC(this.width,this.height)};
h.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};h.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};h.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};
h.translate=function(a,b){a instanceof Eu?(this.left+=a.x,this.top+=a.y):(this.left+=a,typeof b==="number"&&(this.top+=b));return this};h.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var MC=function(a,b,c,d,e,f,g){var k=d===void 0?{}:d;var l=k.backgroundJobDeferrer===void 0?void 0:k.backgroundJobDeferrer;d=k.expectXidTagComponents===void 0?!1:k.expectXidTagComponents;k=k.traverseShadowDom===void 0?!1:k.traverseShadowDom;zu.call(this);var r=this;this.eventBuilder=a;this.transport=c;this.root_=this.domHelper_=this.invariantData_=this.appInfo_=void 0;this.listeners_=[];this.impressionListeners_=[];this.expectXidTagComponents_=d;this.metadataHandler_=b||new dLc;this.visualElementProvider_=
new WKc(this.metadataHandler_,this.expectXidTagComponents_);this.eventToActionMap_={click:3};this.eventToTracksLabelMap_={click:this.maybeXidEventLabel_("generic_click")};this.pageVisibilityMonitor_=new aua;this.logImpressionsTask_=(new xKc(this)).measure(l?function(){return l().then(r.handleImpressions_.bind(r))}:this.handleImpressions_).runInCurrentFrameIfPossible().build();this.logImpressionsThrottle_=new $Kc(this.logImpressionsTask_,500,this);this.traverser_=g||new KKc(this.visualElementProvider_,
k);this.eventBuilder instanceof GC&&(this.eventHandler_=this.eventBuilder);this.zwiebackId_=e;this.windowProvider_=f};Y(MC,zu);MC.prototype.setComponentID=function(a){this.visualElementProvider_.setComponentID(a)};var NC=function(a,b,c,d){a.eventToActionMap_[b]=c;a.eventToTracksLabelMap_[b]=a.maybeXidEventLabel_(d||b)};
MC.prototype.logEvent=function(a,b,c){var d=this.eventToActionMap_[a];d&&(a=eLc(this,a,b))&&(this.eventHandler_?fLc(this,a,new EKc(d),c):(c=this.getAncestry_(a.getElement()),gLc(this,d,a,c)))};
MC.prototype.logSyntheticEvent=function(a,b,c,d){var e=this.eventToActionMap_[a];if(!e&&a!=="impression")return!1;if(d===void 0||d||!c)var f=new KC(Vs(document,"syntheticElement"),b);else{f=new KC(c,b);var g=this.visualElementProvider_;Rta(c,function(k){if(!xJc(k))return!1;k=IC(g,k);return k!=null?(f.setParent(k),!0):!1},!1)}if(this.eventHandler_)return fLc(this,f,new EKc(e)),!0;a=[];c&&(a=this.getAncestry_(c));gLc(this,e,f,a);return!0};
var hLc=function(a,b){a.domHelper_=new xC;a.root_=b||a.domHelper_.document_.body;b=a.domHelper_.document_;b.readyState!=="interactive"&&b.readyState!=="complete"||a.logImpressions();a.listenOnce(b,"load",a.logImpressions,!1);a.listenOnce(b,"DOMContentLoaded",a.logImpressions,!1);a.listen(a.pageVisibilityMonitor_,"visibilitychange",a.logImpressions,!1);a.listen(b,"scroll",a.logImpressions,!0);a.listen(b,"resize",a.logImpressions,!0)};MC.prototype.logImpressions=function(){this.domHelper_&&this.logImpressionsThrottle_.fire()};
var gLc=function(a,b,c,d){var e=iLc(d),f=a.getIndex(c);var g=(new YKc).setUserAction(b);var k=c.getTag().getID();g=En(g,1,k);e=xc(g,3,e,Eb);f!=null&&e.setElementIndex(f);f=new BKc;f.ve_metadata=a.getMetadata(c,d);f.global_metadata=a.invariantData_;f.client_info=a.appInfo_;c=jLc(new OC,e.serialize()).setTestCodeList(f.testCodes);a.transport&&a.transport.dispatch(c);if(b!=null)for(b=new EKc(b),c=0;c<a.listeners_.length;c++)a.listeners_[c](b)};MC.prototype.log=function(a){this.transport&&this.transport.dispatch(a)};
MC.prototype.addInteractionEventListener=function(a){this.listeners_.push(a)};MC.prototype.removeInteractionEventListener=function(a){La(this.listeners_,a)};var kLc=function(a){for(var b=0;b<a.impressionListeners_.length;b++)a.impressionListeners_[b]()};MC.prototype.getIndex=function(a){return a.getTag().getIndex()};var iLc=function(a){return a.map(function(b){return b.getTag().getID()})};
MC.prototype.getMetadata=function(a,b){var c=new uC;SKc(a.getTag(),c);for(a=0;a<b.length;++a)SKc(b[a].getTag(),c);return c};var eLc=function(a,b,c){var d,e=a.visualElementProvider_,f=a.eventToTracksLabelMap_[b];Rta(c,function(g){if(!xJc(g))return!1;g=IC(e,g);var k;if(k=g!=null)if(k=g.getTag(),a.expectXidTagComponents_){if(!k.xidTagComponents_)throw Error("Ab");if(!GKc.has(f))throw Error("Bb`"+f);k=k.tracks_.has(f)}else k=RKc(k,f);return k?(d=g,!0):!1},!0);return d};h=MC.prototype;
h.getAncestry_=function(a){var b=[],c=this.visualElementProvider_;Rta(a,function(d){if(!xJc(d))return!1;d=IC(c,d);d!=null&&b.push(d);return!1},!1);return b};
h.handleImpressions_=function(){if(!this.pageVisibilityMonitor_.isHidden()&&this.root_){var a=!(!window.performance||!window.performance.clearMarks);a&&(window.performance.clearMeasures("ZVwBtb"),window.performance.clearMarks("KtiTlc"),window.performance.mark("KtiTlc"));var b=MKc(this.traverser_,this.root_);if(this.eventHandler_){var c=this.windowProvider_?this.domHelper_.getViewportSize(this.windowProvider_()):this.domHelper_.getViewportSize();c=new Hu(0,0,c.width,c.height);var d=PKc(this.traverser_,
b);if(d.length){d=this.eventHandler_.impressionEvent(d,c);for(var e=0;e<d.length;++e)this.metadataHandler_.addEventMetadata(d[e]),oj(d[e],28,this.zwiebackId_),this.transport&&this.transport.dispatch(d[e])}b=QKc(this.traverser_,b);b=this.eventHandler_.visibilityEvent(b,c);if(b.length)for(c=0;c<b.length;++c)this.metadataHandler_.addEventMetadata(b[c]),this.zwiebackId_&&oj(b[c],28,this.zwiebackId_),this.transport&&this.transport.dispatch(b[c]);kLc(this)}else{c=[];d=this.windowProvider_?this.domHelper_.getViewportSize(this.windowProvider_()):
this.domHelper_.getViewportSize();d=new Hu(0,0,d.width,d.height);for(e=0;e<b.length;e++){var f=b[e];this.isVisible_(f,d)&&(f=IC(this.visualElementProvider_,f))&&RKc(f.getTag(),"impression")&&c.push(f)}for(b=0;b<c.length;b++)d=c[b],d.loggedImpression_||(e=this.getAncestry_(d.getElement()),gLc(this,void 0,d,e),kLc(this),d.loggedImpression_=!0)}a&&window.performance.measure("ZVwBtb","KtiTlc")}};
h.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return a.getAttribute("ve-visible")==="true";a=a.getBoundingClientRect();return(b=cLc(b,new Hu(a.left,a.top,a.width,a.height)))&&b.width>=10&&b.height>=10?!0:!1};h.maybeXidEventLabel_=function(a){return this.expectXidTagComponents_?Tta(a):a};
h.logSemanticInteraction=function(a){if(this.eventHandler_){a=this.eventHandler_.semanticEvent(a);for(var b=0;b<a.length;++b)this.metadataHandler_.addEventMetadata(a[b]),this.zwiebackId_&&oj(a[b],28,this.zwiebackId_),this.transport&&this.transport.dispatch(a[b])}};
var fLc=function(a,b,c,d){d&&b.getTag().addInteractionMetadataHandler(function(e){Mi(e,rC,15,d)});b=a.eventHandler_.interactionEvent(b,c);for(c=0;c<b.length;++c)a.metadataHandler_.addEventMetadata(b[c]),a.zwiebackId_&&oj(b[c],28,a.zwiebackId_),a.transport&&a.transport.dispatch(b[c])};
MC.prototype.tearDown=function(){if(this.domHelper_){var a=this.domHelper_.document_;this.unlisten(a,"scroll",this.logImpressions,!0);this.unlisten(a,"resize",this.logImpressions,!0);this.unlisten(a,"load",this.logImpressions,!1);this.unlisten(a,"DOMContentLoaded",this.logImpressions,!1)}this.unlisten(this.pageVisibilityMonitor_,"visibilitychange",this.logImpressions,!1);this.logImpressionsThrottle_.dispose()};var PC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(PC,W);var QC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,7)};Y(QC,W);QC.prototype.setTarget=function(a){Mi(this,tC,1,a)};QC.prototype.getType=function(){return wi(this,2)};QC.prototype.setType=function(a){return Gn(this,2,a)};QC.prototype.hasType=function(){return jm(this,2)};var lLc=function(a){var b=Date.now();b=Number.isFinite(b)?b*1E3:void 0;vn(a,4,b)};var mLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mLc,W);var RC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(RC,W);RC.prototype.getParentEventId=function(){return X(this,LA,3)};RC.prototype.setParentEventId=function(a){Mi(this,LA,3,a)};RC.prototype.setRequestContext=function(a){Mi(this,vC,4,a)};var oLc=function(a,b){this.userAction=a;this.visualElementID=b;nLc++},nLc=0;var dLc=function(){this.xidTagComponents_=!1};dLc.prototype.createNewTag=function(a){return new JC(a,this.xidTagComponents_)};dLc.prototype.addEventMetadata=function(){};var SC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(SC,W);var pLc=function(a,b){Ni(a,1,b)};SC.prototype.addPath=function(a,b){return Np(this,1,uC,a,b)};SC.prototype.setPath=function(a,b){return Gw(this,1,uC,a,b)};var qLc=new vA(100,QC,SC);var TC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TC,W);var UC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(UC,W);UC.prototype.getTimestamp=function(){return X(this,TC,1)};UC.prototype.setTimestamp=function(a){return Mi(this,TC,1,a)};UC.prototype.hasTimestamp=function(){return xi(this,TC,1)};var rLc=new vA(126,rC,UC);var sLc=new vA(618,uC,UC);var tLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,2)};Y(tLc,W);var uLc=new vA(273,uC,tLc);h=bua.prototype;h.add=function(a){var b=this.buff_[this.nextPtr_];this.buff_[this.nextPtr_]=a;this.nextPtr_=(this.nextPtr_+1)%this.maxSize_;return b};h.get=function(a){a=vLc(this,a);return this.buff_[a]};h.set=function(a,b){a=vLc(this,a);this.buff_[a]=b};h.getCount=function(){return this.buff_.length};h.isEmpty=function(){return this.buff_.length==0};h.clear=function(){this.nextPtr_=this.buff_.length=0};
h.getValues=function(){var a=this.getCount(),b=this.getCount(),c=[];for(a=this.getCount()-a;a<b;a++)c.push(this.get(a));return c};h.getKeys=function(){for(var a=[],b=this.getCount(),c=0;c<b;c++)a[c]=c;return a};h.containsKey=function(a){return a<this.getCount()};var vLc=function(a,b){if(b>=a.buff_.length)throw Error("Eb");return a.buff_.length<a.maxSize_?b:(a.nextPtr_+Number(b))%a.maxSize_};var wLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wLc,W);var xLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xLc,W);h=xLc.prototype;h.getKey=function(){return ui(this,1)};h.hasKey=function(){return im(this,1)};h.getValue=function(){return ui(this,2)};h.getValue_legacyNullable=function(){return Fl(this,2)};h.setValue=function(a){return oj(this,2,a)};h.hasValue=function(){return im(this,2)};var yLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yLc,W);var zLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zLc,W);var VC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,4)};Y(VC,W);var OC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,36)};Y(OC,W);h=OC.prototype;h.getTag=function(){return ui(this,2)};h.getComponentId=function(){return ui(this,26)};h.setComponentId=function(a){return oj(this,26,a)};h.hasComponentId=function(){return im(this,26)};h.addValue=function(){return Np(this,3,xLc)};h.setValue=function(a,b){return Gw(this,3,xLc,a,b)};var jLc=function(a,b){return oj(a,8,b)};OC.prototype.getExperimentIds=function(){return X(this,wLc,16)};
OC.prototype.setExperimentIds=function(a){Mi(this,wLc,16,a)};OC.prototype.clearExperimentIds=function(){return Hw(this,16)};var WC=function(a,b){oj(a,24,b)};OC.prototype.getTestCodeList=function(){return Dm(this,20,Ci())};OC.prototype.setTestCodeList=function(a){return xc(this,20,a,Eb)};OC.prototype.getComplianceData=function(){return X(this,VC,33)};OC.prototype.setComplianceData=function(a){Mi(this,VC,33,a)};var bv=function(a,b,c,d){this.enableAncestryLogging_=a===void 0?!0:a;this.enableAncestryLoggingForGrafts_=c===void 0?!1:c;this.enableBatching_=b===void 0?!1:b;this.enableAttentionLogging_=d===void 0?!1:d;this.recentInteractions_=new bua};Y(bv,GC);h=bv.prototype;h.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=ALc(this,c,b);b=this.enableBatching_?BLc(this,d,b):CLc(this,d,b);return a.concat(b)};
h.interactionEvent=function(a,b){var c=new RC,d=HC();Mi(c,LA,1,d);d=new vC;a.serverVed_?d.setVed(a.serverVed_):d.setUiType(a.getTag().getID()).setVeIndex(a.traversalOrder_);jJc(En(d,3,b.userAction),this.getAncestry_(a));a.getTag().populateInteractionMetadata(d);this.setTimestamp(d);var e=new PC;Mi(e,LA,1,a.impressionEventID);c.setParentEventId(a.impressionEventID);c.setRequestContext(d);Mi(c,PC,9,e);this.recentInteractions_.add(new oLc(b.userAction,a.getTag().getID()));a=new OC;WC(a,c.serialize());
return[a]};
h.visibilityEvent=function(a,b){for(var c=[],d=new Map,e=0;e<a.length;++e){var f=a[e],g=f.getElement(),k=f.rootImpressionEventID,l=d.get(k);l=l?l:[];var r=new SC;this.enableAncestryLoggingForGrafts_&&pLc(r,this.getAncestry_(f));if(f.neverShown||RKc(f.getTag(),"vis"))if(g=this.isVisible_(g,b),f.hidden&&g){g=new QC;g.setType(1);var w=DLc(f);g.setTarget(w);lLc(g);this.enableAncestryLoggingForGrafts_&&Pv(g,qLc,r);l.push(g);f.hidden=!1;f.neverShown=!1}else f.hidden||g||(g=new QC,g.setType(2),w=DLc(f),
g.setTarget(w),lLc(g),this.enableAncestryLoggingForGrafts_&&Pv(g,qLc,r),l.push(g),f.hidden=!0);d.set(k,l)}a=m(d.keys());for(b=a.next();!b.done;b=a.next())b=b.value,f=d.get(b),f.length&&(e=new mLc,Ni(e,1,f),f=new RC,k=HC(),l=new PC,Mi(l,LA,1,b),Mi(f,LA,1,k),f.setParentEventId(b),Mi(f,mLc,7,e),Mi(f,PC,9,l),b=new OC,WC(b,f.serialize()),c.push(b));return c};
h.semanticEvent=function(a){var b=new vC,c=b.setUiType(a.getID());En(c,3,1);a.populateInteractionMetadata(b);this.setTimestamp(b);var d=HC();c=new RC;Mi(c,LA,1,d);(d=a.getParentEventId())&&c.setParentEventId(d);var e=new PC;Mi(e,LA,1,d);c.setRequestContext(b);Mi(c,PC,9,e);this.recentInteractions_.add(new oLc(1,a.getID()));b=new OC;b.setTestCodeList(a.getTestCodeList());WC(b,c.serialize());return[b]};
h.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return a.getAttribute("ve-visible")=="true";if(a instanceof HTMLElement&&(a.offsetWidth<=0||a.offsetHeight<=0))return!1;a=a.getBoundingClientRect();return(b=cLc(b,new Hu(a.left,a.top,a.width,a.height)))&&b.width>=10&&b.height>=10?!0:!1};
var ALc=function(a,b,c){for(var d=[],e={},f=b.length-1;f>=0;e={impressionEventID:void 0,clientVeProto$jscomp$7:void 0,testCodes$jscomp$2:void 0},f--){e.clientVeProto$jscomp$7=new RC;e.testCodes$jscomp$2=[];e.impressionEventID=HC();Mi(e.clientVeProto$jscomp$7,LA,1,e.impressionEventID);var g=new PC;Mi(g,LA,1,e.impressionEventID);Mi(e.clientVeProto$jscomp$7,PC,9,g);if(g=gBb(window.location.href,"ved"))g=(new vC).setVed(g),e.clientVeProto$jscomp$7.setRequestContext(g);b[f].forEach(function(k){return function(l,
r){r.impressionEventID=k.impressionEventID;r.rootImpressionEventID=k.impressionEventID;var w=this.getVisualElementLiteProto_(r);l.length&&iJc(w,l);l=r.getElement();this.isVisible_(l,c)?(r.neverShown=!1,r.hidden=!1):w.setVisible(1);ELc(this,r)&&r.traversalOrder_!==void 0&&(l.setAttribute("data-hveid",Number(r.traversalOrder_)),Bi(k.clientVeProto$jscomp$7,uC,2,Ci()).length===0&&VKc(r)&&(l.setAttribute("decode-data-ved","1"),l.setAttribute("data-ved",VKc(r)+"")));this.setTimestamp(w);Np(k.clientVeProto$jscomp$7,
2,uC,w);k.testCodes$jscomp$2=k.testCodes$jscomp$2.concat(r.getTag().testCodes_)}}(e),a);g=new OC;WC(g,e.clientVeProto$jscomp$7.serialize());g.setTestCodeList(e.testCodes$jscomp$2);d.push(g)}return d},BLc=function(a,b,c){for(var d=[],e=new Map,f=b.length-1;f>=0;f--){var g=b[f],k=g.keys().next().value.rootImpressionEventID,l=e.get(k)||[];l.push(g);e.set(k,l)}e.forEach(function(r,w){var x=0,C=[],H=new RC,J=[],O=HC();Mi(H,LA,1,O);H.setParentEventId(w);var R=new PC;Mi(R,LA,1,w);Mi(H,PC,9,R);for(R=0;R<
r.length;R++)for(var V=r[R],ca=V.keys(),na=ca.next().value,ua=V.get(na),ia={},Ga=0;Ga<ua.length;ia={startingOffset:void 0,cloneTreeRootIndex:void 0},++Ga){var ha=na;ia.cloneTreeRootIndex=0;ia.startingOffset=ua[Ga];var sa=V.size;Ga!=ua.length-1&&(sa=ua[Ga+1]);for(var xa=ia.startingOffset;xa<sa;++xa){var Qa=ca.next().value;xa==ia.startingOffset&&(ha=Qa,ia.cloneTreeRootIndex=x);Qa.impressionEventID=O;Qa.rootImpressionEventID=w;Qa.traversalOrder_=x;var bb=V.get(Qa),ub=this.getVisualElementLiteProto_(Qa);
bb.length&&iJc(ub,bb.map(function(Wb){return function(lc){return lc-Wb.startingOffset+Wb.cloneTreeRootIndex}}(ia)));bb=Qa.getElement();this.isVisible_(bb,c)?(Qa.neverShown=!1,Qa.hidden=!1):ub.setVisible(1);this.setTimestamp(ub);Np(H,2,uC,ub);J=J.concat(Qa.getTag().testCodes_);x++}ia=new QC;ia.setType(3);sa=DLc(na);ia.setTarget(sa);sa=new tC;xa=new sC;Qa=new SC;xa.setVeIndex(ha.traversalOrder_);eJc(xa,ha.getTag().getID());Wo(sa,2,gJc,xa);Mi(ia,tC,3,sa);this.enableAncestryLoggingForGrafts_&&(pLc(Qa,
this.getAncestry_(ha)),Pv(ia,qLc,Qa));C.push(ia)}C.length&&(r=new mLc,Ni(r,1,C),Mi(H,mLc,7,r));C=new OC;WC(C,H.serialize());C.setTestCodeList(J);d.push(C)},a);return d},CLc=function(a,b,c){for(var d=[],e=b.length-1;e>=0;e--)for(var f=b[e],g=f.keys(),k=g.next().value,l=f.get(k),r={},w=0;w<l.length;r={startingOffset$jscomp$1:void 0},++w){r.startingOffset$jscomp$1=l[w];var x=f.size;w!=l.length-1&&(x=l[w+1]);var C=new RC,H=[],J=HC(),O=new PC;Mi(O,LA,1,k.impressionEventID);Mi(C,LA,1,J);C.setParentEventId(k.impressionEventID);
Gn(C,5,3);Mi(C,PC,9,O);O=new vC;k.serverVed_?O.setVed(k.serverVed_):O.setUiType(k.getTag().getID()).setVeIndex(k.traversalOrder_);jJc(O,a.getAncestry_(k));C.setRequestContext(O);for(O=r.startingOffset$jscomp$1;O<x;++O){var R=g.next().value;R.impressionEventID=J;R.rootImpressionEventID=k.rootImpressionEventID;R.traversalOrder_!=void 0&&(R.traversalOrder_-=r.startingOffset$jscomp$1);var V=f.get(R),ca=a.getVisualElementLiteProto_(R);V.length&&iJc(ca,V.map(function(na){return function(ua){return ua-na.startingOffset$jscomp$1}}(r)));
V=R.getElement();a.isVisible_(V,c)?(R.neverShown=!1,R.hidden=!1):ca.setVisible(1);ELc(a,R)&&R.traversalOrder_!==void 0&&(V.setAttribute("data-hveid",Number(R.traversalOrder_)),Bi(C,uC,2,Ci()).length===0&&VKc(R)&&(V.setAttribute("decode-data-ved","1"),V.setAttribute("data-ved",VKc(R)+"")));a.setTimestamp(ca);Np(C,2,uC,ca);H=H.concat(R.getTag().testCodes_)}r=new OC;WC(r,C.serialize());r.setTestCodeList(H);d.push(r)}return d};
bv.prototype.getAncestry_=function(a){if(!this.enableAncestryLogging_)return[];for(var b=[],c=new Set;a&&!c.has(a);){var d=this.getVisualElementLiteProto_(a);b.unshift(d);c.add(a);a=a.getParent()}return b};bv.prototype.getVisualElementLiteProto_=function(a){var b=(new uC).setUiType(a.getTag().getID());Number.isFinite(a.getTag().getIndex())&&b.setElementIndex(a.getTag().getIndex());SKc(a.getTag(),b);ELc(this,a)&&(a=new tLc,Oi(a,1,!0),Pv(b,uLc,a));return b};
var DLc=function(a){var b=new tC;if(a.serverVed_)b.setVed(a.serverVed_);else{var c=new sC;Wo(b,3,hJc,a.impressionEventID);c.setVeIndex(a.traversalOrder_);eJc(c,a.getTag().getID());Wo(b,2,gJc,c)}return b};
bv.prototype.setTimestamp=function(a){var b=Date.now();b=Number.isFinite(b)?b.toString():void 0;if(a instanceof vC&&(!X(a,rC,15)||!X(a,rC,15).getExtension(rLc))){var c=new UC,d=new TC,e=X(a,rC,15);e||(e=new rC);Jn(d,1,b);c.setTimestamp(d);Pv(e,rLc,c);Mi(a,rC,15,e)}a instanceof uC&&(c=new UC,d=new TC,Jn(d,1,b),c.setTimestamp(d),Pv(a,sLc,c))};var ELc=function(a,b){return a.enableAttentionLogging_?RKc(b.getTag(),"hover")||RKc(b.getTag(),"attention"):!1};var FLc=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.indexOf("blob:")===0&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();a.indexOf("//")==0&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");c!=-1&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("Fb`"+a);if(c!=="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")throw Error("Gb`"+c);a="";var d=b.indexOf(":");if(d!=-1){var e=b.substring(d+1);b=b.substring(0,d);if(c==="http"&&e!=="80"||c==="https"&&e!=="443")a=":"+e}return c+"://"+b+a};var HLc=function(a,b,c){var d=String(ra.location.href);return d&&a&&b?[b,GLc(FLc(d),a,c||null)].join(" "):null},GLc=function(a,b,c){var d=[],e=[];if((Array.isArray(c)?2:1)==1)return e=[b,a],Ja(d,function(k){e.push(k)}),ILc(e.join(" "));var f=[],g=[];Ja(c,function(k){g.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=f.length==0?[c,b,a]:[f.join(":"),c,b,a];Ja(d,function(k){e.push(k)});a=ILc(e.join(" "));a=[c,a];g.length==0||a.push(g.join(""));return a.join("_")},ILc=function(a){var b=
cua();b.update(a);return b.digestString().toLowerCase()};var JLc=function(){this.document_=document||{cookie:""}};h=JLc.prototype;h.isEnabled=function(){if(!ra.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
h.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.sameSite;d=c.secure||!1;var f=c.domain||void 0;var g=c.path||void 0;var k=c.maxAge}if(/[;=\s]/.test(a))throw Error("Hb`"+a);if(/[;\r\n]/.test(b))throw Error("Ib`"+b);k===void 0&&(k=-1);c=f?";domain="+f:"";g=g?";path="+g:"";d=d?";secure":"";k=k<0?"":k==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+k*1E3)).toUTCString();this.document_.cookie=a+"="+b+c+g+k+d+(e!=null?";samesite="+e:"")};
h.get=function(a,b){for(var c=a+"=",d=this.getParts_(),e=0,f;e<d.length;e++){f=Aa(d[e]);if(f.lastIndexOf(c,0)==0)return f.slice(c.length);if(f==a)return""}return b};h.remove=function(a,b,c){var d=this.containsKey(a);this.set(a,"",{maxAge:0,path:b,domain:c});return d};h.getKeys=function(){return KLc(this).keys};h.getValues=function(){return KLc(this).values};h.isEmpty=function(){return!this.document_.cookie};h.getCount=function(){return this.document_.cookie?this.getParts_().length:0};
h.containsKey=function(a){return this.get(a)!==void 0};h.clear=function(){for(var a=KLc(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};h.getParts_=function(){return(this.document_.cookie||"").split(";")};var KLc=function(a){a=a.getParts_();for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Aa(a[f]),d=e.indexOf("="),d==-1?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};var LLc=function(a,b,c,d){(a=ra[a])||typeof document==="undefined"||(a=(new JLc).get(b));return a?HLc(a,c,d):null},Ppc=function(a){var b=FLc(ra==null?void 0:ra.location.href),c=[],d;(d=ra.__SAPISID||ra.__APISID||ra.__3PSAPISID||ra.__1PSAPISID||ra.__OVERRIDE_SID)?d=!0:(typeof document!=="undefined"&&(d=new JLc,d=d.get("SAPISID")||d.get("APISID")||d.get("__Secure-3PAPISID")||d.get("__Secure-1PAPISID")),d=!!d);d&&(d=(b=b.indexOf("https:")==0||b.indexOf("chrome-extension:")==0||b.indexOf("chrome-untrusted://new-tab-page")==
0||b.indexOf("moz-extension:")==0)?ra.__SAPISID:ra.__APISID,d||typeof document==="undefined"||(d=new JLc,d=d.get(b?"SAPISID":"APISID")||d.get("__Secure-3PAPISID")),(d=d?HLc(d,b?"SAPISIDHASH":"APISIDHASH",a):null)&&c.push(d),b&&((b=LLc("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&c.push(b),(a=LLc("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&c.push(a)));return c.length==0?null:c.join(" ")};var MLc=function(){this.minSize=1024},NLc=function(a){var b,c,d,e;return y(function(f){switch(f.nextAddress){case 1:return b=new CompressionStream("gzip"),c=(new Response(b.readable)).arrayBuffer(),d=b.writable.getWriter(),z(f,d.write((new TextEncoder).encode(a)),2);case 2:return z(f,d.close(),3);case 3:return e=Uint8Array,z(f,c,4);case 4:return f.return(new e(f.yieldResult))}})};MLc.prototype.isSupported=function(a){return a<this.minSize?!1:typeof CompressionStream!=="undefined"};var XC=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.nowFn=function(){return Date.now()};this.lastTimeMs=this.nowFn()};XC.prototype.setInterval=function(a){this.intervalMs=a;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};XC.prototype.start=function(){var a=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){a.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
XC.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};XC.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.nowFn()-this.lastTimeMs,0);b<this.intervalMs*.8?this.timer=setTimeout(function(){a.tick()},this.intervalMs-b):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var OLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(OLc,W);OLc.prototype.getTransmissionType=function(){return wi(this,1)};OLc.prototype.setTransmissionType=function(a){return Gn(this,1,a)};var gua=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gua,W);gua.prototype.getVersion=function(){return ui(this,2)};gua.prototype.setVersion=function(a){return oj(this,2,a)};gua.prototype.getVersionOrUndefined=function(){return Sw(this,2)};var YC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YC,W);var fua=function(a){Ni(hua,1,a)};YC.prototype.setPlatform=function(a){oj(this,3,a)};YC.prototype.setModel=function(a){return oj(this,6,a)};var PLc=vi(YC);var ZC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ZC,W);ZC.prototype.getLocale=function(){return ui(this,5)};ZC.prototype.setLocale=function(a){oj(this,5,a)};ZC.prototype.setBuildLabel=function(a){oj(this,7,a)};var dua=["platform","platformVersion","architecture","model","uaFullVersion"],hua=new YC,eua=null;var $C=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($C,W);$C.prototype.getClientType=function(){return wi(this,1)};$C.prototype.setClientType=function(){return Gn(this,1,1)};$C.prototype.getMutableJsClientInfo=function(){return Ii(this,ZC,11)};var QLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,19)};Y(QLc,W);h=QLc.prototype;h.getMutableClientInfo=function(){return Ii(this,$C,1)};h.setClientInfo=function(a){Mi(this,$C,1,a)};h.getLogSource=function(){return wi(this,2,-1)};h.setLogSource=function(a){return Gn(this,2,a)};h.getComplianceData=function(){return X(this,VC,18)};h.setComplianceData=function(a){Mi(this,VC,18,a)};var RLc=function(a,b){this.isServiceWorkerScope=b=b===void 0?!1:b;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new QLc;Number.isInteger(a)&&this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));this.setClientInfo(new $C)};h=RLc.prototype;h.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
h.setClientInfo=function(a){this.logRequest.setClientInfo(a);a.getClientType()||a.setClientType();this.isServiceWorkerScope||(a=this.getMutableJsClientInfo(),a.getLocale()||a.setLocale(this.locale));this.uach&&(a=this.getMutableJsClientInfo(),X(a,YC,9)||Mi(a,YC,9,this.uach))};h.setBuildLabel=function(a){this.getMutableJsClientInfo().setBuildLabel(a)};h.setTransmissionType=function(a){this.transmissionType=a;return this};
h.getMutableClientInfo=function(){var a=X(this.logRequest,$C,1);a||(a=new $C,this.setClientInfo(a));return a};var SLc=function(a){var b=b===void 0?dua:b;var c=a.isServiceWorkerScope?void 0:Fu();c?iua(c,b).then(function(d){a.uach=PLc(d!=null?d:"[]");d=a.getMutableJsClientInfo();Mi(d,YC,9,a.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};RLc.prototype.getMutableJsClientInfo=function(){var a=this.getMutableClientInfo(),b=X(a,ZC,11);b||(b=new ZC,Mi(a,ZC,11,b));return b};
RLc.prototype.getComplianceData=function(a){var b=new yLc;a=En(b,13,a);b=new zLc;a=Mi(b,yLc,2,a);b=new VC;a=Mi(b,zLc,1,a);return Gn(a,2,9)};
RLc.prototype.build=function(a,b,c,d,e,f){b=b===void 0?0:b;c=c===void 0?0:c;d=d===void 0?null:d;e=e===void 0?0:e;f=f===void 0?0:f;if(!this.isServiceWorkerScope){var g=this.getMutableJsClientInfo();var k=(new OLc).setTransmissionType(this.transmissionType);k=Oi(k,2,this.isFinal);c=En(k,3,c>0?c:void 0);c=En(c,4,e>0?e:void 0);c=En(c,5,f>0?f:void 0);c=Yda(c);Mi(g,OLc,10,c)}g=this.logRequest.clone();c=Date.now().toString();g=Jn(g,4,c);a=Ni(g,3,a.slice());d&&a.setComplianceData(this.getComplianceData(d));
b&&vn(a,14,b);return a};jua.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_};jua.prototype.getValue=function(){return this.currValue_};var aD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aD,W);aD.prototype.getId=function(a){return Uw(this,1,a)};aD.prototype.setId=function(a){return bx(this,1,a)};var bD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,8)};Y(bD,W);bD.prototype.getExperiments=function(){return X(this,aD,2)};bD.prototype.setExperiments=function(a){return Mi(this,aD,2,a)};bD.prototype.hasExperiments=function(){return xi(this,aD,2)};var TLc=vi(bD);var ULc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ULc,W);var VLc=new vA(175237375,bD,ULc);var cD=function(a){FB.call(this);var b=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.useGetRequestForFinalFlush=this.useSendBeaconForFinalFlush=this.clientSideLogOnlyForDevelopment=!1;this.noFlushUntilMs=this.startWaitingMs=-1;this.useConsistentTimezoneOffset=this.clientSpecifiedFlushInterval=!1;this.compressor=this.experimentIds=null;this.numRetriesSinceLastSuccessfulFlush=this.numLogsDroppedSinceLastFlush=0;this.metalogService=null;this.persistedLogExpiredCount=
this.persistedLogRecoveredCount=0;this.sequencePosition=1;this.timeoutMillis=0;this.sendBeaconApiEnabled=!1;this.logSource=a.logSource;this.getAuthHeaderValue=a.getAuthHeaderValue||function(){};this.logRequestBuilder=new RLc(a.logSource,a.isServiceWorkerScope);this.network=a.network||null;this.productID=a.productID||null;this.bufferSize=1E3;this.clearcutUrl=a.urlOverride||null;this.sessionIndex=a.sessionIndex||null;this.disableAutomaticFlush=a.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=
!a.disableWithCredentials;this.isServiceWorkerScope=a.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Fu()&&!!Fu().navigator&&Fu().navigator.sendBeacon!==void 0;this.isBrowserSupported=typeof URLSearchParams!=="undefined"&&!!(new URL(WLc())).searchParams&&!!(new URL(WLc())).searchParams.set;var c=(new $C).setClientType();this.logRequestBuilder.setClientInfo(c);this.flushBackoff=new jua(1E4);a=XLc(this,a.backgroundJobDeferrer);this.flushTimer=new XC(this.flushBackoff.getValue(),
a);this.backupTimer=new XC(6E5,a);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){YLc(b);var d;(d=b.metalogService)==null||d.flush()}}),document.addEventListener("pagehide",function(){YLc(b);var d;(d=b.metalogService)==null||d.flush()}))};Y(cD,FB);var XLc=function(a,b){return a.isBrowserSupported?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
h=cD.prototype;h.disposeInternal=function(){YLc(this);this.flushTimer.stop();this.backupTimer.stop();FB.prototype.disposeInternal.call(this)};h.setClearcutUrl=function(a){this.clearcutUrl=a};h.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};h.getClearcutUrl=function(){this.clearcutUrl||(this.clearcutUrl=WLc());try{return(new URL(this.clearcutUrl)).toString()}catch(a){return(new URL(this.clearcutUrl,Fu().location.origin)).toString()}};
h.dispatch=function(a){if(a instanceof OC)this.log(a);else try{var b=jLc(new OC,a.serialize());this.log(b)}catch(c){dD(this,4,1)}};h.setClearcutClientInfo=function(a){this.logRequestBuilder.setClientInfo(a)};h.setComponentId=function(a){this.componentId=a};h.setProductID=function(a){this.productID=a};h.setPageId=function(a){this.pageId=a};h.setOpaqueExperimentIds=function(a){this.experimentIds||(this.experimentIds=new wLc);var b=this.experimentIds;a=[].concat(q(a));xc(b,2,a,mea)};
h.setClearExperimentIds=function(a){if(a){this.experimentIds||(this.experimentIds=new wLc);var b=this.experimentIds;a=a.serialize();oj(b,4,a)}else this.experimentIds&&Hw(this.experimentIds,4)};h.setClientSideLogOnlyForDevelopment=function(a){this.clientSideLogOnlyForDevelopment=a};h.setCompressor=function(a){this.compressor=a};h.setBuildLabel=function(a){this.logRequestBuilder.setBuildLabel(a)};h.setFlushIntervalMs=function(a){this.clientSpecifiedFlushInterval=!0;ZLc(this,a)};h.getLogSource=function(){return this.logSource};
var ZLc=function(a,b){a.flushBackoff=new jua(b<1?1:b);a.flushTimer.setInterval(a.flushBackoff.getValue())},dD=function(a,b,c){a.metalogService&&a.metalogService.increment(b,c)};
cD.prototype.log=function(a){dD(this,2,1);if(this.isBrowserSupported){a=a.clone();var b=this.sequencePosition++;a=vn(a,21,b);this.componentId&&a.setComponentId(this.componentId);b=a;if(Pb(fm(b,1))==null){var c=Date.now();c=Number.isFinite(c)?c.toString():"0";Jn(b,1,c)}on(b,15)||vn(b,15,(new Date).getTimezoneOffset()*(this.useConsistentTimezoneOffset?-60:60));this.experimentIds&&b.setExperimentIds(this.experimentIds.clone());dD(this,1,1);b=this.pendingEvents.length-this.bufferSize+1;b>0&&(this.pendingEvents.splice(0,
b),this.numLogsDroppedSinceLastFlush+=b,dD(this,3,b));this.pendingEvents.push(a);this.maybeStartFlushTimer()}};cD.prototype.maybeStartFlushTimer=function(){this.disableAutomaticFlush||this.flushTimer.enabled||this.flushTimer.start()};
cD.prototype.flush=function(a,b){var c=this;if(this.pendingEvents.length===0)a&&a();else if(this.sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.setTransmissionType(3),$Lc(this);else{var d=Date.now();if(this.noFlushUntilMs>d&&this.startWaitingMs<d)b&&b("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?this.logRequestBuilder.setTransmissionType(this.network.getTransmissionType()):this.logRequestBuilder.setTransmissionType(0));var e=this.pendingEvents.length,
f=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),g=this.getAuthHeaderValue();if(g&&this.lastFailedAuth===g)b&&b("stale-auth-token");else if(this.pendingEvents=[],this.flushTimer.enabled&&this.flushTimer.stop(),this.numLogsDroppedSinceLastFlush=0,this.clientSideLogOnlyForDevelopment)a&&a();else{d=f.serialize();var k;this.compressor&&this.compressor.isSupported(d.length)&&
(k=NLc(d));var l=this.createRequestParams(d,g),r=function(C){c.flushBackoff.reset();c.flushTimer.setInterval(c.flushBackoff.getValue());if(C){var H=null;try{var J=JSON.stringify(JSON.parse(C.replace(")]}'\n","")));H=TLc(J)}catch(O){}H&&(C=Number(pn(H,1,mb("-1"))),C>0&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+C),H=iyc(H,VLc))&&(H=Bm(H,1,-1),H!==-1&&(c.clientSpecifiedFlushInterval||ZLc(c,H)))}a&&a();c.numRetriesSinceLastSuccessfulFlush=0},w=function(C,H){var J=Bi(f,OC,3,Ci());
var O=Number(pn(f,14)),R=c.flushBackoff;R.currBaseValue_=Math.min(3E5,R.currBaseValue_*2);R.currValue_=Math.min(3E5,R.currBaseValue_+Math.round(.1*(Math.random()-.5)*2*R.currBaseValue_));c.flushTimer.setInterval(c.flushBackoff.getValue());C===401&&g&&(c.lastFailedAuth=g);O&&(c.numLogsDroppedSinceLastFlush+=O);H===void 0&&(H=500<=C&&C<600||C===401||C===0);H&&(c.pendingEvents=J.concat(c.pendingEvents),c.maybeStartFlushTimer());dD(c,7,1);b&&b("net-send-failed",C);++c.numRetriesSinceLastSuccessfulFlush},
x=function(){c.network&&c.network.send(l,r,w)};k?k.then(function(C){dD(c,5,e);l.requestHeaders["Content-Encoding"]="gzip";l.requestHeaders["Content-Type"]="application/binary";l.body=C;l.bodyType=2;x()},function(){dD(c,6,e);x()}):x()}}}};
cD.prototype.createRequestParams=function(a,b){b=b===void 0?null:b;var c=c===void 0?this.withCredentials:c;var d={},e=new URL(this.getClearcutUrl());b&&(d.Authorization=b);this.sessionIndex&&(d["X-Goog-AuthUser"]=this.sessionIndex,e.searchParams.set("authuser",this.sessionIndex));this.pageId&&(Object.defineProperty(d,"X-Goog-PageId",{value:this.pageId}),e.searchParams.set("pageId",this.pageId));return{url:e.toString(),body:a,bodyType:1,requestHeaders:d,requestType:"POST",withCredentials:c,timeoutMillis:this.timeoutMillis}};
var YLc=function(a){a.clientSideLogOnlyForDevelopment||(a.logRequestBuilder.isFinal=!0,a.useSendBeaconForFinalFlush&&(a.logRequestBuilder.setTransmissionType(3),$Lc(a)),a.useGetRequestForFinalFlush&&(a.logRequestBuilder.setTransmissionType(2),aMc(a)),a.flush(),a.logRequestBuilder.isFinal=!1)},$Lc=function(a){bMc(a,32,10,function(b,c){b=new URL(b);b.searchParams.set("format","json");var d=!1;try{d=Fu().navigator.sendBeacon(b.toString(),c.serialize())}catch(e){}d||(a.isSendBeaconSupported=!1);return d})},
aMc=function(a){bMc(a,6,5,function(b,c){b=new URL(b);b.searchParams.set("format","base64json");var d=b.searchParams,e=d.set;c=c.serialize();for(var f=[],g=0,k=0;k<c.length;k++){var l=c.charCodeAt(k);l>255&&(f[g++]=l&255,l>>=8);f[g++]=l}c=wxc(f,3);e.call(d,"p",c);b=b.toString();if(b.length>15360)return!1;(new Image).src=b;return!0})},bMc=function(a,b,c,d){if(a.pendingEvents.length!==0){var e=new URL(a.getClearcutUrl());e.searchParams.delete("format");var f=a.getAuthHeaderValue();f&&e.searchParams.set("auth",
f);e.searchParams.set("authuser",a.sessionIndex||"0");for(f=0;f<c&&a.pendingEvents.length;++f){var g=a.pendingEvents.slice(0,b),k=a.logRequestBuilder.build(g,a.numLogsDroppedSinceLastFlush,a.numRetriesSinceLastSuccessfulFlush,a.productID,a.persistedLogRecoveredCount,a.persistedLogExpiredCount);if(!d(e.toString(),k)){++a.numRetriesSinceLastSuccessfulFlush;break}a.numLogsDroppedSinceLastFlush=0;a.numRetriesSinceLastSuccessfulFlush=0;a.persistedLogRecoveredCount=0;a.persistedLogExpiredCount=0;a.pendingEvents=
a.pendingEvents.slice(g.length)}a.flushTimer.enabled&&a.flushTimer.stop()}},WLc=function(){return"https://play.google.com/log?format=json&hasfast=true"};cD.prototype.setBufferSize=function(a){this.bufferSize=a};var cMc=function(){this.abortSupported=typeof AbortController!=="undefined"};
cMc.prototype.send=function(a,b,c){var d=this,e,f,g,k,l,r,w,x,C,H;return y(function(J){switch(J.nextAddress){case 1:return f=(e=d.abortSupported?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,Wd(J,2,3),g=Object.assign({},{method:a.requestType,headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),z(J,fetch(a.url,g),5);case 5:k=J.yieldResult;if(k.status!==200){(l=c)==
null||l(k.status);J.jumpTo(3);break}if((r=b)==null){J.jumpTo(7);break}return z(J,k.text(),8);case 8:r(J.yieldResult);case 7:case 3:Xd(J);clearTimeout(f);Zd(J,0);break;case 2:w=$d(J);switch((x=w)==null?void 0:x.name){case "AbortError":(C=c)==null||C(408);break;default:(H=c)==null||H(400)}J.jumpTo(3)}})};cMc.prototype.getTransmissionType=function(){return 4};var eD=function(a,b){b=b===void 0?"0":b;FB.call(this);this.logSource=a;this.sessionIndex=b;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.compressor=void 0;this.network=null;this.componentId="";this.clearcutClientInfo=this.opaqueExperimentIds=this.clearExperimentIds=this.productID=null;this.getRequestForFinalFlush=this.sendBeaconForFinalFlush=!1;this.flushIntervalMs=null;this.sendBeaconApiEnabled=!1;this.useConsistentTimezoneOffset=
void 0;this.pageId=null;this.bufferSize=void 0};Y(eD,FB);h=eD.prototype;h.setBuildLabel=function(a){this.buildLabel=a};h.setCompressor=function(a){this.compressor=a};h.setComponentId=function(a){this.componentId=a;return this};h.setProductID=function(a){this.productID=a};h.setClearExperimentIds=function(a){this.clearExperimentIds=a};h.setOpaqueExperimentIds=function(a){this.opaqueExperimentIds=a};var dMc=function(a,b){a.getAuthHeaderValue=b};h=eD.prototype;
h.setClearcutClientInfo=function(a){this.clearcutClientInfo=a};h.useSendBeaconForFinalFlush=function(){this.sendBeaconForFinalFlush=!0;return this};h.useGetRequestForFinalFlush=function(){this.getRequestForFinalFlush=!0;return this};h.setFlushIntervalMs=function(a){this.flushIntervalMs=Math.max(a,1E3)};h.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};h.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};
h.setPageId=function(a){this.pageId=a};h.setBufferSize=function(a){this.bufferSize=a};
h.build=function(){this.network||(this.network=new cMc);var a=new cD({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:Ppc,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});xt(this,a);this.clearcutClientInfo&&a.setClearcutClientInfo(this.clearcutClientInfo);
this.buildLabel&&a.setBuildLabel(this.buildLabel);this.compressor?a.setCompressor(this.compressor):this.compressor!==null&&a.setCompressor(new MLc);this.componentId&&a.setComponentId(this.componentId);this.productID&&a.setProductID(this.productID);this.pageId&&a.setPageId(this.pageId);this.clearExperimentIds&&a.setClearExperimentIds(this.clearExperimentIds);this.opaqueExperimentIds&&a.setOpaqueExperimentIds(this.opaqueExperimentIds);this.sendBeaconForFinalFlush&&(a.useSendBeaconForFinalFlush=this.sendBeaconForFinalFlush&&
a.isSendBeaconSupported);this.getRequestForFinalFlush&&(a.useGetRequestForFinalFlush=this.getRequestForFinalFlush);this.flushIntervalMs&&a.setFlushIntervalMs(this.flushIntervalMs);this.sendBeaconApiEnabled&&(a.sendBeaconApiEnabled=a.isSendBeaconSupported);SLc(a.logRequestBuilder);this.useConsistentTimezoneOffset&&a.setUseConsistentTimezoneOffset(!0);this.bufferSize&&a.setBufferSize(this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&
this.network.setTransportReferenceAndAttemptFlush(a);return a};var eMc=function(){},fMc=function(){};var gMc=Symbol("Kb"),pj=function(a,b,c){c=c===void 0?null:c;this.tracker=null;a&&(this.tracker=hMc(a))&&(NC(this.tracker,"click",3,"generic_click"),NC(this.tracker,"dragstart",30),NC(this.tracker,"drop",37),NC(this.tracker,"hover",9),NC(this.tracker,"input_text",15),NC(this.tracker,"key_press",32));b&&(this.visualElementLookup=b.getVisualElementLookup());this.runOutsideAngular=c?c.runOutsideAngular.bind(c):Zone.root.run.bind(Zone.root);pj.lastEventTrackerInstalled||(pj.lastEventTrackerInstalled=!0,
this.runOutsideAngular(function(){window.addEventListener("click",function(d){pj.lastWindowEvent=d},{capture:!0});window.addEventListener("mouseenter",function(d){pj.lastWindowEvent=d},{capture:!0})}))};pj.prototype.addInteractionEventListener=function(a){this.tracker&&this.tracker.addInteractionEventListener(a)};pj.prototype.removeInteractionEventListener=function(a){this.tracker&&this.tracker.removeInteractionEventListener(a)};
var jMc=function(a,b,c){a.runOutsideAngular(function(){a.tracker&&a.visualElementLookup&&(iMc(a,b,c),c.trackImpression&&a.tracker.logImpressions())})};pj.prototype.logEvent=function(a,b,c){this.tracker&&this.tracker.logEvent(a,b,c)};
var iMc=function(a,b,c){a:if(a=a.visualElementLookup,c.visualElementId)a=c.visualElementId;else{if(a)if(c.visualElementName)if(a=a[c.visualElementName],a===0)console.warn("ID was never assigned for VE with name: "+c.visualElementName);else{if(a)break a;console.warn("Cannot find VE with name: "+c.visualElementName)}else console.warn("No ID or name found in config.");else console.warn("No ID found in config and no VisualElementLookup was set.");a=void 0}var d=a;d!==void 0&&(a=[],c.trackClick&&a.push("generic_click"),
c.trackImpression&&a.push("impression"),c.trackDrag&&a.push("dragstart"),c.trackDrop&&a.push("drop"),c.trackHover&&a.push("hover"),c.trackAttention&&a.push("attention"),c.trackInputText&&a.push("input_text"),c.trackKeyPress&&a.push("key_press"),c.trackKeyboardEnter&&a.push("keyboard_enter"),c.trackVisibility&&a.push("vis"),d=d.toString(),a.length&&(d+=";track:"+a.join(",")),c.metadata&&(d+=";"+c.metadata),c.mutable&&(d+=";mutable:true"),c.componentId&&(d+=";cid:"+c.componentId),c.index!=null&&(d+=
";index:"+c.index),b.nativeElement.setAttribute("jslog",d),b.nativeElement[gMc]=c)};pj.prototype.logSyntheticEvent=function(a,b,c){this.tracker&&this.tracker.logSyntheticEvent(a,b,c)};pj.prototype.logSemanticInteraction=function(a){this.tracker&&this.tracker.logSemanticInteraction(a)};pj.prototype.log=function(a){this.tracker&&this.tracker.log(a)};
var kMc=function(a,b,c,d){pj.lastWindowEvent&&pj.lastWindowEvent!==d&&(pj.lastWindowEvent.type==="click"&&c.trackClick&&kua(b)&&a.logEvent("click",b),pj.lastWindowEvent.type==="mouseenter"&&c.trackHover&&kua(b)&&a.logEvent("hover",b))};pj.lastEventTrackerInstalled=!1;pj.lastWindowEvent=null;pj.\u0275fac=function(a){return new (a||pj)(Xc(eMc,8),Xc(fMc,8),Xc(Rg,8))};pj.\u0275prov=Dc({token:pj,factory:pj.\u0275fac,providedIn:"root"});var lMc="click mouseenter dragstart drop keydown input".split(" "),fD=function(a,b,c){var d=this;this.veLoggingService=a;this.document=b;this.ngZone=c;this.handleDomEvent=function(e){for(var f=e.target;f;f=f.parentElement){var g=f[gMc];if(g){var k=lua(g.interactionMetadata);switch(e.type){case "click":g.trackClick&&d.logEvent("click",f,k);break;case "mouseenter":g.trackHover&&d.logEvent("hover",f,k);break;case "dragstart":g.trackDrag&&d.logEvent("dragstart",f,k);break;case "drop":g.trackDrop&&d.logEvent("drop",
f,k);break;case "keydown":g.trackKeyPress&&d.logEvent("key_press",f,k);break;case "input":g.trackInputText&&d.logEvent("input_text",f,k);break;default:console.warn("No GIL binding for events of type "+e.type)}}}};this.ngZone.runOutsideAngular(function(){for(var e=m(lMc),f=e.next();!f.done;f=e.next())d.document.addEventListener(f.value,d.handleDomEvent,{capture:!0})})};
fD.prototype.logEvent=function(a,b,c){if(a!=="input_text"||this.previousInputTextEventTarget!==b)this.veLoggingService.logEvent(a,b,c),this.previousInputTextEventTarget=a==="input_text"?b:void 0};fD.prototype.ngOnDestroy=function(){var a=this;this.ngZone.runOutsideAngular(function(){for(var b=m(lMc),c=b.next();!c.done;c=b.next())a.document.removeEventListener(c.value,a.handleDomEvent,{capture:!0})});fD.instance=void 0};fD.\u0275fac=function(a){return new (a||fD)(Xc(pj),Xc(Rh),Xc(Rg))};
fD.\u0275prov=Dc({token:fD,factory:fD.\u0275fac});var mMc=new dd("VE config");var nMc=function(){var a=this;this.veMetadataObject=Og.apply(null,q([]));this.veEncoder=Og.apply(null,[xxc].concat(q([])));this.veKey=Og.apply(null,["0"].concat(q([])));this.value=Zg.apply(null,[function(){var b=a.veMetadataObject();if(!b)return"";b=b.serialize();if(b==="")return"";b=a.veEncoder()(b);return b===""?"":a.veKey()+":"+b}].concat(q([])))};nMc.\u0275fac=function(a){return new (a||nMc)};
nMc.\u0275dir=af({type:nMc,selectors:[["","veMetadataObject",""]],inputs:{veMetadataObject:[1,"veMetadataObject"],veEncoder:[1,"veEncoder"],veKey:[1,"veKey"]},exportAs:["veMetadataLoggingDirective"]});var gD=function(a,b,c,d,e,f,g){var k=this;this.el=a;this.loggingService=b;this.ngZone=c;this.renderer=d;this.globalEventListenerService=e;this.veLoggingConfig=f;this.veMetadataLoggingDirective=g;this.veMetadata="";this.veKeyPress=this.veInputText=this.veAttention=this.veHover=this.veDrop=this.veDrag=this.veClick=this.veVisibility=this.veImpression=this.veMutable=!1;this.unregisterFunctions=[];this.lastEvent=null;this.ignoreInputTextEvent=!1;this.resetIgnoreInputTextEvent=function(){k.ignoreInputTextEvent=
!1}};h=gD.prototype;h.onClick=function(a){this.veClick&&(this.logEvent("click"),this.lastEvent=a)};h.onDrag=function(){this.veDrag&&this.logEvent("dragstart")};h.onDropOn=function(){this.veDrop&&this.logEvent("drop")};h.onKeyDown=function(){this.veKeyPress&&this.logEvent("key_press")};h.onMouseEnter=function(a){this.veHover&&(this.logEvent("hover"),this.lastEvent=a)};h.onInput=function(){this.veInputText&&!this.ignoreInputTextEvent&&(this.logEvent("input_text"),this.ignoreInputTextEvent=!0)};
h.logSyntheticEvent=function(a){this.config&&this.config.visualElementId&&this.loggingService.logSyntheticEvent(a,new JC(this.config.visualElementId),this.el.nativeElement)};h.logEvent=function(a){this.loggingService.logEvent(a,this.el.nativeElement,lua(this.veInteractionMetadata))};var oMc=function(a){if(!a.veMetadataLoggingDirective)return a.veMetadata;var b=a.veMetadataLoggingDirective.value();if(b==="")return a.veMetadata;if(a.veMetadata!=="")throw Error("Lb");return b};h=gD.prototype;
h.ngOnInit=function(){var a=this;this.trackEventsInDirective&&this.ngZone.runOutsideAngular(function(){var b=a.el.nativeElement;a.unregisterFunctions=[a.renderer.listen(b,"click",a.onClick.bind(a)),a.renderer.listen(b,"dragstart",a.onDrag.bind(a)),a.renderer.listen(b,"drop",a.onDropOn.bind(a)),a.renderer.listen(b,"keydown",a.onKeyDown.bind(a)),a.renderer.listen(b,"input",a.onInput.bind(a)),a.renderer.listen(b,"mouseenter",a.onMouseEnter.bind(a))]});this.veMetadata=oMc(this);this.config=this.getConfig();
jMc(this.loggingService,this.el,this.config);this.veInputText&&this.trackEventsInDirective&&this.loggingService.addInteractionEventListener(this.resetIgnoreInputTextEvent)};
h.getConfig=function(){var a;return{componentId:(a=this.veLoggingConfig)==null?void 0:a.componentId,metadata:this.veMetadata,interactionMetadata:this.veInteractionMetadata,mutable:this.veMutable,trackClick:this.veClick,trackDrag:this.veDrag,trackDrop:this.veDrop,trackHover:this.veHover,trackAttention:this.veAttention,trackInputText:this.veInputText,trackImpression:this.veImpression,trackVisibility:this.veVisibility,trackKeyPress:this.veKeyPress,visualElementId:this.ve,index:this.veIndex}};
h.updateConfig=function(){var a;if((a=this.config)==null?0:a.mutable)this.config=this.getConfig(),this.config.mutable=!0,iMc(this.loggingService,this.el,this.config)};h.ngOnChanges=function(){this.updateConfig()};
h.ngOnDestroy=function(){var a=this;this.config&&this.trackEventsInDirective&&kMc(this.loggingService,this.el.nativeElement,this.config,this.lastEvent);this.veInputText&&this.trackEventsInDirective&&this.loggingService.removeInteractionEventListener(this.resetIgnoreInputTextEvent);this.ngZone.runOutsideAngular(function(){for(var b=m(a.unregisterFunctions),c=b.next();!c.done;c=b.next())c=c.value,c()})};
da.Object.defineProperties(gD.prototype,{trackEventsInDirective:{configurable:!0,enumerable:!0,get:function(){var a;return this.globalEventListenerService==null&&!((a=this.veLoggingConfig)==null?0:a.disableDirectives)}}});gD.\u0275fac=function(a){return new (a||gD)(Ve(Hd),Ve(pj),Ve(Rg),Ve(ci),Ve(fD,8),Ve(mMc,8),Ve(nMc,8))};
gD.\u0275dir=af({type:gD,selectors:[["","ve",""]],inputs:{ve:"ve",veMetadata:"veMetadata",veInteractionMetadata:"veInteractionMetadata",veMutable:"veMutable",veImpression:"veImpression",veVisibility:"veVisibility",veClick:"veClick",veDrag:"veDrag",veDrop:"veDrop",veHover:"veHover",veAttention:"veAttention",veInputText:"veInputText",veKeyPress:"veKeyPress",veIndex:"veIndex"},exportAs:["veLoggingDirective"],features:[jx]});var hD=function(){};hD.\u0275fac=function(a){return new (a||hD)};hD.\u0275mod=$e({type:hD});hD.\u0275inj=Fc({});var pMc=new dd("DUCKIE_VE_CONFIG",{providedIn:"root",factory:function(){return{logSource:0,veIds:{}}}}),iD=function(){this.config=p(pMc)},hMc=function(a){a=new MC(new bv,null,(new eD(a.config.logSource,"0")).build());hLc(a);return a},mMa=function(a,b,c){c=new lJc(c);mJc(c,b);hMc(a).logSemanticInteraction(c)},jD=function(a,b,c){var d=c.id;d&&(c=c.sessionId,d=(new cm).setMessageId(d),c&&d.setSessionId(c),d=nMa(d),mMa(a,d,b))};iD.\u0275fac=function(a){return new (a||iD)};
iD.\u0275prov=Dc({token:iD,factory:iD.\u0275fac,providedIn:"root"});var qMc=function(){};var rj=function(){this.Serializable$values={}},qj=function(a,b){return a.Serializable$values.hasOwnProperty(b)?a.Serializable$values[b]:null},kD=function(a,b){return a.Serializable$values[b]!=null};var rMc=function(){};var sMc=function(a,b){this.requestService=a;this.hookFactory=b===void 0?null:b};Y(sMc,rMc);
var tMc=function(a,b,c){var d=mua(a.hookFactory,b);return d==null?c:se.pipe(Af({complete:function(){d.onBeforeSend()}}),bla(c.pipe(Af(function(e){d.onSuccess(e)},function(e){d.onError(e)}))),of(function(){var e;(e=d.onFinalize)==null||e.call(d)}))},uMc=function(a,b){var c=b.responseCtor||void 0,d=a.requestService,e=d.send,f=b.body instanceof rj?rua(b.body,oua,pua,qua):b.body;return tMc(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 vMc=function(){};vMc.prototype.send=function(a,b){zua(a);return this.makeRequest(a).pipe(A(function(c){return b?vua(b,c):c}))};var lD={COMMON_MARK_MARKDOWN_FLAVOR:"COMMON_MARK_MARKDOWN_FLAVOR",GITHUB_FLAVORED_MARKDOWN_FLAVOR:"GITHUB_FLAVORED_MARKDOWN_FLAVOR",GOOGLE_FLAVORED_MARKDOWN_FLAVOR:"GOOGLE_FLAVORED_MARKDOWN_FLAVOR",UNKNOWN:"UNKNOWN",values:function(){return[lD.UNKNOWN,lD.COMMON_MARK_MARKDOWN_FLAVOR,lD.GITHUB_FLAVORED_MARKDOWN_FLAVOR,lD.GOOGLE_FLAVORED_MARKDOWN_FLAVOR]}},mD={ALL:"ALL",BUGANIZER:"BUGANIZER",COMMON:"COMMON",EXTENDED:"EXTENDED",ISSUETRACKER:"ISSUETRACKER",LEGACY_G3DOC:"LEGACY_G3DOC",NONE:"NONE",values:function(){return[mD.NONE,
mD.COMMON,mD.EXTENDED,mD.ALL,mD.BUGANIZER,mD.ISSUETRACKER,mD.LEGACY_G3DOC]}},wMc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.markdown=a.markdown==null?null:a.markdown};Y(wMc,rj);wMc.prototype.getPartialClassMetadata=function(){return{keys:["markdown"]}};da.Object.defineProperties(wMc.prototype,{markdown:{configurable:!0,enumerable:!0,get:function(){return kD(this,"markdown")?qj(this,"markdown"):null},set:function(a){this.Serializable$values.markdown=a}}});
var xMc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.markdown=a.markdown==null?null:a.markdown;this.Serializable$values.markdownFlavor=a.markdownFlavor==null?null:a.markdownFlavor;this.Serializable$values.allowStyle=a.allowStyle==null?null:a.allowStyle;this.Serializable$values.escapeHtml=a.escapeHtml==null?null:a.escapeHtml;this.Serializable$values.sourcePos=a.sourcePos==null?null:a.sourcePos;this.Serializable$values.shortlinkSet=a.shortlinkSet==null?null:a.shortlinkSet;
this.Serializable$values.highlight=a.highlight==null?null:a.highlight;this.Serializable$values.graphviz=a.graphviz==null?null:a.graphviz;this.Serializable$values.allowListedTags=a.allowListedTags==null?null:a.allowListedTags};Y(xMc,rj);xMc.prototype.getPartialClassMetadata=function(){return{enums:{markdownFlavor:lD,shortlinkSet:mD},keys:"allowListedTags allowStyle escapeHtml graphviz highlight markdown markdownFlavor shortlinkSet sourcePos".split(" ")}};
da.Object.defineProperties(xMc.prototype,{allowListedTags:{configurable:!0,enumerable:!0,get:function(){return kD(this,"allowListedTags")?qj(this,"allowListedTags"):null},set:function(a){this.Serializable$values.allowListedTags=a}},allowStyle:{configurable:!0,enumerable:!0,get:function(){return kD(this,"allowStyle")?qj(this,"allowStyle"):null},set:function(a){this.Serializable$values.allowStyle=a}},escapeHtml:{configurable:!0,enumerable:!0,get:function(){return kD(this,"escapeHtml")?qj(this,"escapeHtml"):
null},set:function(a){this.Serializable$values.escapeHtml=a}},graphviz:{configurable:!0,enumerable:!0,get:function(){return kD(this,"graphviz")?qj(this,"graphviz"):null},set:function(a){this.Serializable$values.graphviz=a}},highlight:{configurable:!0,enumerable:!0,get:function(){return kD(this,"highlight")?qj(this,"highlight"):null},set:function(a){this.Serializable$values.highlight=a}},markdown:{configurable:!0,enumerable:!0,get:function(){return kD(this,"markdown")?qj(this,"markdown"):null},set:function(a){this.Serializable$values.markdown=
a}},markdownFlavor:{configurable:!0,enumerable:!0,get:function(){return kD(this,"markdownFlavor")?qj(this,"markdownFlavor"):null},set:function(a){this.Serializable$values.markdownFlavor=a}},shortlinkSet:{configurable:!0,enumerable:!0,get:function(){return kD(this,"shortlinkSet")?qj(this,"shortlinkSet"):null},set:function(a){this.Serializable$values.shortlinkSet=a}},sourcePos:{configurable:!0,enumerable:!0,get:function(){return kD(this,"sourcePos")?qj(this,"sourcePos"):null},set:function(a){this.Serializable$values.sourcePos=
a}}});var yMc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.safeHtml=a.safeHtml==null?null:a.safeHtml};Y(yMc,rj);yMc.prototype.getPartialClassMetadata=function(){return{keys:["safeHtml"],objects:{safeHtml:zMc}}};da.Object.defineProperties(yMc.prototype,{safeHtml:{configurable:!0,enumerable:!0,get:function(){return kD(this,"safeHtml")?qj(this,"safeHtml"):null},set:function(a){this.Serializable$values.safeHtml=a}}});
var zMc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.privateDoNotAccessOrElseSafeHtmlWrappedValue=a.privateDoNotAccessOrElseSafeHtmlWrappedValue==null?null:a.privateDoNotAccessOrElseSafeHtmlWrappedValue};Y(zMc,rj);zMc.prototype.getPartialClassMetadata=function(){return{keys:["privateDoNotAccessOrElseSafeHtmlWrappedValue"]}};
da.Object.defineProperties(zMc.prototype,{privateDoNotAccessOrElseSafeHtmlWrappedValue:{configurable:!0,enumerable:!0,get:function(){return kD(this,"privateDoNotAccessOrElseSafeHtmlWrappedValue")?qj(this,"privateDoNotAccessOrElseSafeHtmlWrappedValue"):null},set:function(a){this.Serializable$values.privateDoNotAccessOrElseSafeHtmlWrappedValue=a}}});
var AMc=new dd("API_VERSION"),BMc=new dd("REQUEST_SERVICE for g3mark_service_api_client"),CMc={$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"},nD=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v1":a;this.$apiClient=new sMc(b,c)};
nD.prototype.format=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?{}:c;return uMc(this.$apiClient,{body:a,httpMethod:"POST",methodId:"g3mark_service_api_client_from_stubby_sandbox.G3markService.format",path:"/"+this.gapiVersion+"/G3markService/Format",queryParams:Aua(b,CMc,c),responseCtor:wMc})};
var DMc=function(a,b){var c=c===void 0?{}:c;var d=d===void 0?{}:d;return uMc(a.$apiClient,{body:b,httpMethod:"POST",methodId:"g3mark_service_api_client_from_stubby_sandbox.G3markService.markdownToHtml",path:"/"+a.gapiVersion+"/G3markService/MarkdownToHtml",queryParams:Aua(c,CMc,d),responseCtor:yMc})};nD.\u0275fac=function(a){return new (a||nD)(Xc(AMc,8),Xc(BMc),Xc(qMc,8))};nD.\u0275prov=Dc({token:nD,factory:nD.\u0275fac,providedIn:"root"});var EMc=function(){};
EMc.\u0275fac=function(a){return new (a||EMc)};EMc.\u0275prov=Dc({token:EMc,factory:function(a){return nD.\u0275fac(a)},providedIn:"root"});var oD=function(a){this.g3markApiClient=a},FMc=function(a,b,c){var d=new xMc,e;d.allowStyle=(e=c==null?void 0:c.allowStyle)!=null?e:d.allowStyle;var f;d.escapeHtml=(f=c==null?void 0:c.escapeHtml)!=null?f:d.escapeHtml;var g;d.shortlinkSet=(g=c==null?void 0:c.shortlinkSet)!=null?g:d.shortlinkSet;var k;d.highlight=(k=c==null?void 0:c.highlight)!=null?k:d.highlight;var l;d.graphviz=(l=c==null?void 0:c.graphviz)!=null?l:d.graphviz;d.markdown=b;d.markdownFlavor=lD.GOOGLE_FLAVORED_MARKDOWN_FLAVOR;var r=
Bh(b,{preserveNewlines:!0,preserveTabs:!0,preserveSpaces:!0});a=DMc(a.g3markApiClient,d).pipe(A(function(w){if(w=w.safeHtml)if(w){w=w.privateDoNotAccessOrElseSafeHtmlWrappedValue;if(!w)throw Error("Qb");w=qh(w)}else w=null;else w=r;return w}),gf(function(){return ce(r)}));if(c==null||!c.timeoutMs)return fe(a);c=ce(r).pipe(mf(c.timeoutMs));return fe(aia(a,c))};oD.\u0275fac=function(a){return new (a||oD)(Xc(EMc))};oD.\u0275prov=Dc({token:oD,factory:oD.\u0275fac});/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var GMc=!!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString())||HTMLElement.es5Shimmed||ra.Reflect===void 0||ra.customElements===void 0||ra.customElements.polyfillWrapFlushCallback||!1,HMc,IMc=function(){var a=HTMLElement;if(GMc)return a;if(HMc!==void 0)return HMc;var b=ra.Reflect,c=function(){return b.construct(a,[],this.constructor)};c.prototype=a.prototype;c.prototype.constructor=c;c.es5Shimmed=!0;Object.setPrototypeOf(c,a);return HMc=c},JMc=!1;var KMc=ra.ShadowRoot&&(ra.ShadyCSS===void 0||ra.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,LMc=Symbol(),MMc=new WeakMap,NMc=function(a,b,c){this._$cssResult$=!0;if(c!==LMc)throw Error("Rb");this.cssText=a;this._strings=b};NMc.prototype.toString=function(){return this.cssText};
da.Object.defineProperties(NMc.prototype,{styleSheet:{configurable:!0,enumerable:!0,get:function(){var a=this._styleSheet,b=this._strings;if(KMc&&a===void 0){var c=b!==void 0&&b.length===1;c&&(a=MMc.get(b));a===void 0&&((this._styleSheet=a=new CSSStyleSheet).replaceSync(this.cssText),c&&MMc.set(b,a))}return a}}});
var OMc=function(a,b){if(KMc)a.adoptedStyleSheets=b.map(function(f){return f instanceof CSSStyleSheet?f:f.styleSheet});else{b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=document.createElement("style"),e=ra.litNonce;e!==void 0&&d.setAttribute("nonce",e);d.textContent=c.cssText;a.appendChild(d)}}},PMc=KMc?function(a){return a}:function(a){if(a instanceof CSSStyleSheet){var b="";a=m(a.cssRules);for(var c=a.next();!c.done;c=a.next())b+=c.value.cssText;b=new NMc(typeof b==="string"?b:
String(b),void 0,LMc)}else b=a;return b};var QMc=function(a){if(globalThis.ShadyCSS!==void 0&&(!globalThis.ShadyCSS.nativeShadow||globalThis.ShadyCSS.ApplyShim)){a=a.ReactiveElement.prototype;globalThis.ShadyDOM&&globalThis.ShadyDOM.inUse&&globalThis.ShadyDOM.noPatch===!0&&globalThis.ShadyDOM.patchElementProto(a);var b=a.createRenderRoot;a.createRenderRoot=function(){var e=this.localName;if(globalThis.ShadyCSS.nativeShadow)return b.call(this);if(!this.constructor.hasOwnProperty("__scoped")){this.constructor.__scoped=!0;var f=this.constructor.elementStyles.map(function(r){return r instanceof
CSSStyleSheet?Array.from(r.cssRules).reduce(function(w,x){return w+x.cssText},""):r.cssText}),g,k;(g=globalThis.ShadyCSS)==null||(k=g.ScopingShim)==null||k.prepareAdoptedCssText(f,e);this.constructor._$handlesPrepareStyles===void 0&&globalThis.ShadyCSS.prepareTemplateStyles(document.createElement("template"),e)}var l;return(l=this.shadowRoot)!=null?l:this.attachShadow(this.constructor.shadowRootOptions)};var c=a.connectedCallback;a.connectedCallback=function(){c.call(this);this.hasUpdated&&globalThis.ShadyCSS.styleElement(this)};
var d=a._$didUpdate;a._$didUpdate=function(e){this.hasUpdated||globalThis.ShadyCSS.styleElement(this);d.call(this,e)}}},RMc;(RMc=globalThis).reactiveElementPolyfillSupport!=null||(RMc.reactiveElementPolyfillSupport=QMc);GMc||JMc||(JMc=!0,ra.HTMLElement=IMc());
var SMc=IMc(),pD=Object,TMc=pD.is,UMc=pD.defineProperty,VMc=pD.getOwnPropertyDescriptor,WMc=pD.getOwnPropertyNames,XMc=pD.getOwnPropertySymbols,YMc=pD.getPrototypeOf,ZMc=ra.trustedTypes,$Mc=ZMc?ZMc.emptyScript:"",aNc=ra.reactiveElementPolyfillSupport,bNc={toAttribute:function(a,b){switch(b){case Boolean:a=a?$Mc:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute:function(a,b){var c=a;switch(b){case Boolean:c=a!==null;break;case Number:c=a===null?null:Number(a);
break;case Object:case Array:try{c=JSON.parse(a)}catch(d){c=null}}return c}},cNc=function(a,b){return!TMc(a,b)},dNc={attribute:!0,type:String,converter:bNc,reflect:!1,useDefault:!1,hasChanged:cNc},eNc;Symbol.metadata==null&&(Symbol.metadata=Symbol("Sb"));eNc=Symbol.metadata;var fNc=new WeakMap,qD=function(){var a=SMc.call(this)||this;a.__instanceProperties=void 0;a.isUpdatePending=!1;a.hasUpdated=!1;a.__reflectingProperty=null;a.__initialize();return a};Y(qD,SMc);
qD.addInitializer=function(a){this.__prepare();var b;((b=this._initializers)!=null?b:this._initializers=[]).push(a)};qD.createProperty=function(a,b){b=b===void 0?dNc:b;b.state&&(b.attribute=!1);this.__prepare();this.prototype.hasOwnProperty(a)&&(b=Object.create(b),b.wrapped=!0);this.elementProperties.set(a,b);b.noAccessor||(b=this.getPropertyDescriptor(a,Symbol(),b),b!==void 0&&UMc(this.prototype,a,b))};
qD.getPropertyDescriptor=function(a,b,c){var d,e=(d=VMc(this.prototype,a))!=null?d:{get:function(){return this[b]},set:function(k){this[b]=k}},f=e.get,g=e.set;return{get:f,set:function(k){var l=f==null?void 0:f.call(this);g==null||g.call(this,k);gNc(this,a,l,c)},configurable:!0,enumerable:!0}};qD.getPropertyOptions=function(a){var b;return(b=this.elementProperties.get(a))!=null?b:dNc};
qD.__prepare=function(){if(!this.hasOwnProperty("elementProperties")){var a=YMc(this);a.finalize();a._initializers!==void 0&&(this._initializers=[].concat(q(a._initializers)));this.elementProperties=new Map(a.elementProperties)}};
qD.finalize=function(){hNc();if(!this.hasOwnProperty("finalized")){this.finalized=!0;this.__prepare();if(this.hasOwnProperty("properties")){var a=this.properties,b=[].concat(q(WMc(a)),q(XMc(a)));b=m(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.createProperty(c,a[c])}a=this[eNc];if(a!==null&&(a=fNc.get(a),a!==void 0))for(a=m(a),b=a.next();!b.done;b=a.next())c=m(b.value),b=c.next().value,c=c.next().value,this.elementProperties.set(b,c);this.__attributeToPropertyMap=new Map;a=m(this.elementProperties);
for(b=a.next();!b.done;b=a.next())c=m(b.value),b=c.next().value,c=c.next().value,c=this.__attributeNameForProperty(b,c),c!==void 0&&this.__attributeToPropertyMap.set(c,b);this.elementStyles=this.finalizeStyles(this.styles)}};qD.finalizeStyles=function(a){var b=[];if(Array.isArray(a)){a=new Set(a.flat(Infinity).reverse());a=m(a);for(var c=a.next();!c.done;c=a.next())b.unshift(PMc(c.value))}else a!==void 0&&b.push(PMc(a));return b};
qD.__attributeNameForProperty=function(a,b){b=b.attribute;return b===!1?void 0:typeof b==="string"?b:typeof a==="string"?a.toLowerCase():void 0};h=qD.prototype;h.__initialize=function(){var a=this;this.__updatePromise=new Promise(function(c){return a.enableUpdating=c});this._$changedProperties=new Map;this.__saveInstanceProperties();gNc(this);var b;(b=this.constructor._initializers)==null||b.forEach(function(c){return c(a)})};
h.__saveInstanceProperties=function(){for(var a=new Map,b=m(this.constructor.elementProperties.keys()),c=b.next();!c.done;c=b.next())c=c.value,this.hasOwnProperty(c)&&(a.set(c,this[c]),delete this[c]);a.size>0&&(this.__instanceProperties=a)};h.createRenderRoot=function(){var a,b=(a=this.shadowRoot)!=null?a:this.attachShadow(this.constructor.shadowRootOptions);OMc(b,this.constructor.elementStyles);return b};
h.connectedCallback=function(){this.renderRoot!=null||(this.renderRoot=this.createRenderRoot());this.enableUpdating(!0);var a;(a=this.__controllers)==null||a.forEach(function(b){var c;return(c=b.hostConnected)==null?void 0:c.call(b)})};h.enableUpdating=function(){};h.disconnectedCallback=function(){var a;(a=this.__controllers)==null||a.forEach(function(b){var c;return(c=b.hostDisconnected)==null?void 0:c.call(b)})};h.attributeChangedCallback=function(a,b,c){this._$attributeToProperty(a,c)};
h.__propertyToAttribute=function(a,b){var c=this.constructor.elementProperties.get(a),d=this.constructor.__attributeNameForProperty(a,c);if(d!==void 0&&c.reflect===!0){var e,f=(((e=c.converter)==null?void 0:e.toAttribute)!==void 0?c.converter:bNc).toAttribute(b,c.type);this.__reflectingProperty=a;f==null?this.removeAttribute(d):this.setAttribute(d,f);this.__reflectingProperty=null}};
h._$attributeToProperty=function(a,b){var c=this.constructor;a=c.__attributeToPropertyMap.get(a);if(a!==void 0&&this.__reflectingProperty!==a){c=c.getPropertyOptions(a);var d,e=typeof c.converter==="function"?{fromAttribute:c.converter}:((d=c.converter)==null?void 0:d.fromAttribute)!==void 0?c.converter:bNc;this.__reflectingProperty=a;b=e.fromAttribute(b,c.type);var f,g;this[a]=(g=b!=null?b:(f=this.__defaultValues)==null?void 0:f.get(a))!=null?g:b;this.__reflectingProperty=null}};
var gNc=function(a,b,c,d){if(b!==void 0){var e=a.constructor,f=a[b];d!=null||(d=e.getPropertyOptions(b));var g,k;if(((k=d.hasChanged)!=null?k:cNc)(f,c)||d.useDefault&&d.reflect&&f===((g=a.__defaultValues)==null?void 0:g.get(b))&&!a.hasAttribute(e.__attributeNameForProperty(b,d)))a._$changeProperty(b,c,d);else return}a.isUpdatePending===!1&&(a.__updatePromise=a.__enqueueUpdate())};
qD.prototype._$changeProperty=function(a,b,c,d){var e=c.useDefault;var f=c.reflect;c=c.wrapped;var g;if(e&&!((g=this.__defaultValues)!=null?g:this.__defaultValues=new Map).has(a)){var k;this.__defaultValues.set(a,(k=d!=null?d:b)!=null?k:this[a]);if(c!==!0||d!==void 0)return}this._$changedProperties.has(a)||(this.hasUpdated||e||(b=void 0),this._$changedProperties.set(a,b));if(f===!0&&this.__reflectingProperty!==a){var l;((l=this.__reflectingProperties)!=null?l:this.__reflectingProperties=new Set).add(a)}};
qD.prototype.__enqueueUpdate=function(){var a=this,b,c;return y(function(d){switch(d.nextAddress){case 1:return a.isUpdatePending=!0,Wd(d,2),z(d,a.__updatePromise,4);case 4:dt(d,3);break;case 2:b=$d(d),a.squelchUpdateErrorsDuringLit2Migration||Promise.reject(b);case 3:c=iNc(a);if(c==null){d.jumpTo(5);break}return z(d,c,5);case 5:return d.return(!a.isUpdatePending)}})};
var iNc=function(a){if(a.isUpdatePending){if(!a.hasUpdated){a.renderRoot!=null||(a.renderRoot=a.createRenderRoot());if(a.__instanceProperties){for(var b=m(a.__instanceProperties),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;a[c]=d}a.__instanceProperties=void 0}b=a.constructor.elementProperties;if(b.size>0)for(b=m(b),c=b.next();!c.done;c=b.next()){d=m(c.value);c=d.next().value;d=d.next().value;var e=a[c];d.wrapped!==!0||a._$changedProperties.has(c)||e===void 0||
a._$changeProperty(c,void 0,d,e)}}b=!1;c=a._$changedProperties;try{b=!0;var f;(f=a.__controllers)==null||f.forEach(function(g){var k;return(k=g.hostUpdate)==null?void 0:k.call(g)});a.update(c)}catch(g){throw b=!1,a.__markUpdated(),g;}b&&a._$didUpdate(c)}};qD.prototype._$didUpdate=function(a){var b;(b=this.__controllers)==null||b.forEach(function(c){var d;return(d=c.hostUpdated)==null?void 0:d.call(c)});this.hasUpdated||(this.hasUpdated=!0);this.updated(a)};
qD.prototype.__markUpdated=function(){this._$changedProperties=new Map;this.isUpdatePending=!1};qD.prototype.update=function(){var a=this;this.__reflectingProperties&&(this.__reflectingProperties=this.__reflectingProperties.forEach(function(b){return a.__propertyToAttribute(b,a[b])}));this.__markUpdated()};qD.prototype.updated=function(){};da.Object.defineProperties(qD.prototype,{updateComplete:{configurable:!0,enumerable:!0,get:function(){return this.__updatePromise}}});
da.Object.defineProperties(qD,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){this.finalize();return this.__attributeToPropertyMap&&[].concat(q(this.__attributeToPropertyMap.keys()))}}});qD.elementStyles=[];qD.shadowRootOptions={mode:"open"};qD.elementProperties=new Map;qD.finalized=new Map;aNc==null||aNc({ReactiveElement:qD});var hNc=function(){var a;((a=ra.reactiveElementVersions)!=null?a:ra.reactiveElementVersions=[]).push("2.0.4");hNc=function(){}};var jNc={attribute:!0,type:String,converter:bNc,reflect:!1,hasChanged:cNc},Dua=function(a,b,c){a=a===void 0?jNc:a;var d=c.kind,e=c.metadata,f=fNc.get(e);f===void 0&&fNc.set(e,f=new Map);d==="setter"&&(a=Object.create(a),a.wrapped=!0);f.set(c.name,a);if(d==="accessor"){var g=c.name;return{set:function(l){var r=b.get.call(this);b.set.call(this,l);gNc(this,g,r,a)},init:function(l){l!==void 0&&this._$changeProperty(g,void 0,a,l);return l}}}if(d==="setter"){var k=c.name;return function(l){var r=this[k];
b.call(this,l);gNc(this,k,r,a)}}throw Error("Tb`"+d);};var kNc=function(a,b,c){c.configurable=!0;c.enumerable=!0;Reflect.decorate&&typeof b!=="object"&&Object.defineProperty(a,b,c);return c};var lNc=rw(["about:invalid#zClosurez"]),mNc=Hua,nNc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,oNc=wh(Fh(lNc)),Fua=function(a){return a},pNc=function(a){return nNc.test(String(a))?a:oNc},rD=function(){return oNc},qNc=function(a){return a instanceof uh?wh(a):oNc},Gua=new Map([["A href",pNc],["AREA href",pNc],["BASE href",rD],["BUTTON formaction",pNc],["EMBED src",rD],["FORM action",pNc],["FRAME src",rD],["IFRAME src",qNc],["IFRAME srcdoc",function(a){return rh(a)?sh(a):sh(sj)}],["INPUT formaction",
pNc],["LINK href",qNc],["OBJECT codebase",rD],["OBJECT data",rD],["SCRIPT href",qNc],["SCRIPT src",qNc],["SCRIPT text",rD],["USE href",qNc]]);var rNc=new Set,sNc=new Map,tNc=function(a,b){if(globalThis.ShadyCSS!==void 0&&(!globalThis.ShadyCSS.nativeShadow||globalThis.ShadyCSS.ApplyShim)){var c,d,e=((c=globalThis.ShadyDOM)==null?0:c.inUse)&&((d=globalThis.ShadyDOM)==null?void 0:d.noPatch)===!0?globalThis.ShadyDOM.wrap:function(x){return x},f=function(x){var C=sNc.get(x);C===void 0&&sNc.set(x,C=[]);return C},g=new Map,k=a.createElement;a.createElement=function(x,C){x=k.call(a,x,C);C=C==null?void 0:C.scope;C!==void 0&&(globalThis.ShadyCSS.nativeShadow||
globalThis.ShadyCSS.prepareTemplateDom(x,C),C===void 0||rNc.has(C)||(C=f(C),C.push.apply(C,q(Array.from(x.content.querySelectorAll("style")).map(function(H){var J;(J=H.parentNode)==null||J.removeChild(H);return H.textContent})))));return x};var l=document.createDocumentFragment(),r=document.createComment("");b=b.prototype;var w=b._$setValue;b._$setValue=function(x,C){C=C===void 0?this:C;var H=e(this._$startNode).parentNode,J,O=(J=this.options)==null?void 0:J.scope,R;if((H instanceof ShadowRoot||H===
((R=this.options)==null?void 0:R.renderContainer))&&O!==void 0&&!rNc.has(O)){J=this._$startNode;R=this._$endNode;l.appendChild(r);this._$startNode=r;this._$endNode=null;w.call(this,x,C);x=(x==null?0:x._$litType$)?this._$committedValue._$template.el:document.createElement("template");C=f(O);var V=C.length!==0;if(V){var ca=document.createElement("style");ca.textContent=C.join("\n");x.content.appendChild(ca)}rNc.add(O);sNc.delete(O);globalThis.ShadyCSS.prepareTemplateStyles(x,O);V&&globalThis.ShadyCSS.nativeShadow&&
(O=x.content.querySelector("style"),O!==null&&x.content.appendChild(O));l.removeChild(r);var na;if((na=globalThis.ShadyCSS)==null?0:na.nativeShadow)na=x.content.querySelector("style"),na!==null&&l.appendChild(na.cloneNode(!0));H.insertBefore(l,R);this._$startNode=J;this._$endNode=R}else w.call(this,x,C)};b._$getTemplate=function(x){var C,H=(C=this.options)==null?void 0:C.scope;C=g.get(H);C===void 0&&g.set(H,C=new Map);H=C.get(x.strings);H===void 0&&C.set(x.strings,H=new a(x,this.options));return H}}},
uNc;(uNc=globalThis).litHtmlPolyfillSupport!=null||(uNc.litHtmlPolyfillSupport=tNc);var vNc="";if(globalThis.Symbol){var wNc=Symbol();typeof wNc!=="symbol"&&(vNc=Object.keys(wNc)[0])}var xNc=vNc!=="",yNc=xNc?function(a){return a!=null&&a[vNc]!==void 0}:function(){return!1};if(xNc&&!globalThis.Symbol.for){var zNc=new Map;globalThis.Symbol.for=function(a){zNc.has(a)||zNc.set(a,Symbol(a));return zNc.get(a)}};var ANc,BNc,CNc,sD=((ANc=ra.ShadyDOM)==null?0:ANc.inUse)&&(((BNc=ra.ShadyDOM)==null?void 0:BNc.noPatch)===!0||((CNc=ra.ShadyDOM)==null?void 0:CNc.noPatch)==="on-demand")?ra.ShadyDOM.wrap:function(a){return a},DNc=ra.trustedTypes,Jua=DNc?DNc.createPolicy("lit-html",{createHTML:function(a){return a}}):void 0,ENc=function(a){return a},FNc=function(){return ENc},tD="lit$"+Math.random().toFixed(9).slice(2)+"$",GNc="?"+tD,HNc="<"+GNc+">",uD=document,Lua=function(a){return a===null||typeof a!="object"&&
typeof a!="function"||yNc(a)},Iua=Array.isArray,INc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,JNc=/--\x3e/g,KNc=/>/g,vD=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),LNc=/'/g,MNc=/"/g,NNc=/^(?:script|style|textarea|title)$/i,ONc=function(a){var b=$c.apply(1,arguments),c={};return c._$litType$=1,c.strings=a,c.values=b,c},tj=Symbol.for?Symbol.for("lit-noChange"):Symbol("Vb"),wD=Symbol.for?Symbol.for("lit-nothing"):Symbol("Wb"),
PNc=new WeakMap,xD=uD.createTreeWalker(uD,129),QNc=function(a,b){var c=a.strings;var d=a._$litType$;this.parts=[];for(var e=a=0,f=c.length-1,g=this.parts,k=c.length-1,l=[],r=d===2?"<svg>":d===3?"<math>":"",w,x=INc,C=0;C<k;C++){for(var H=c[C],J=-1,O=void 0,R=0,V;R<H.length;){x.lastIndex=R;V=x.exec(H);if(V===null)break;R=x.lastIndex;x===INc?V[1]==="!--"?x=JNc:V[1]!==void 0?x=KNc:V[2]!==void 0?(NNc.test(V[2])&&(w=new RegExp("</"+V[2],"g")),x=vD):V[3]!==void 0&&(x=vD):x===vD?V[0]===">"?(J=void 0,x=(J=
w)!=null?J:INc,J=-1):V[1]===void 0?J=-2:(J=x.lastIndex-V[2].length,O=V[1],x=V[3]===void 0?vD:V[3]==='"'?MNc:LNc):x===MNc||x===LNc?x=vD:x===JNc||x===KNc?x=INc:(x=vD,w=void 0)}R=x===vD&&c[C+1].startsWith("/>")?" ":"";r+=x===INc?H+HNc:J>=0?(l.push(O),H.slice(0,J)+"$lit$"+H.slice(J))+tD+R:H+tD+(J===-2?C:R)}c=[Kua(c,r+(c[k]||"<?>")+(d===2?"</svg>":d===3?"</math>":"")),l];c=m(c);w=c.next().value;c=c.next().value;this.el=QNc.createElement(w,b);xD.currentNode=this.el.content;if(d===2||d===3)b=this.el.content.firstChild,
b.replaceWith.apply(b,q(b.childNodes));for(;(b=xD.nextNode())!==null&&g.length<f;){if(b.nodeType===1){if(b.hasAttributes())for(d=m(b.getAttributeNames()),w=d.next();!w.done;w=d.next())w=w.value,w.endsWith("$lit$")?(l=c[e++],k=b.getAttribute(w).split(tD),l=/([.?@])?(.*)/.exec(l),g.push({type:1,index:a,name:l[2],strings:k,ctor:l[1]==="."?RNc:l[1]==="?"?SNc:l[1]==="@"?TNc:yD}),b.removeAttribute(w)):w.startsWith(tD)&&(g.push({type:6,index:a}),b.removeAttribute(w));if(NNc.test(b.tagName)&&(d=b.textContent.split(tD),
w=d.length-1,w>0)){b.textContent=DNc?DNc.emptyScript:"";for(k=0;k<w;k++)b.append(d[k],uD.createComment("")),xD.nextNode(),g.push({type:2,index:++a});b.append(d[w],uD.createComment(""))}}else if(b.nodeType===8)if(b.data===GNc)g.push({type:2,index:a});else for(d=-1;(d=b.data.indexOf(tD,d+1))!==-1;)g.push({type:7,index:a}),d+=tD.length-1;a++}};QNc.createElement=function(a){var b=uD.createElement("template");b.innerHTML=a;return b};
var UNc=function(a,b){this._$parts=[];this._$disconnectableChildren=void 0;this._$template=a;this._$parent=b};
UNc.prototype._clone=function(a){var b=this._$template,c=b.el.content;b=b.parts;var d,e=((d=a==null?void 0:a.creationScope)!=null?d:uD).importNode(c,!0);xD.currentNode=e;c=xD.nextNode();for(var f=d=0,g=b[0];g!==void 0;){if(d===g.index){var k=void 0;g.type===2?k=new zD(c,c.nextSibling,this,a):g.type===1?k=new g.ctor(c,g.name,g.strings,this,a):g.type===6&&(k=new VNc(c,this,a));this._$parts.push(k);g=b[++f]}k=void 0;d!==((k=g)==null?void 0:k.index)&&(c=xD.nextNode(),d++)}xD.currentNode=uD;return e};
UNc.prototype._update=function(a){for(var b=0,c=m(this._$parts),d=c.next();!d.done;d=c.next())d=d.value,d!==void 0&&(d.strings!==void 0?(d._$setValue(a,d,b),b+=d.strings.length-2):d._$setValue(a[b])),b++};da.Object.defineProperties(UNc.prototype,{parentNode:{configurable:!0,enumerable:!0,get:function(){return this._$parent.parentNode}},_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});
var zD=function(a,b,c,d){this.type=2;this._$committedValue=wD;this._$disconnectableChildren=void 0;this._$startNode=a;this._$endNode=b;this._$parent=c;this.options=d;var e;this.__isConnected=(e=d==null?void 0:d.isConnected)!=null?e:!0;this._textSanitizer=void 0};h=zD.prototype;
h._$setValue=function(a,b){a=uj(this,a,b===void 0?this:b);Lua(a)?a===wD||a==null||a===""?(this._$committedValue!==wD&&this._$clear(),this._$committedValue=wD):a!==this._$committedValue&&a!==tj&&this._commitText(a):a._$litType$!==void 0?this._commitTemplateResult(a):a.nodeType!==void 0?this._commitNode(a):Iua(a)||typeof(a==null?void 0:a[Symbol.iterator])==="function"?this._commitIterable(a):this._commitText(a)};h._insert=function(a){return sD(sD(this._$startNode).parentNode).insertBefore(a,this._$endNode)};
h._commitNode=function(a){if(this._$committedValue!==a){this._$clear();if(mNc!==FNc){var b,c=(b=this._$startNode.parentNode)==null?void 0:b.nodeName;if(c==="STYLE"||c==="SCRIPT")throw Error("Yb");}this._$committedValue=this._insert(a)}};
h._commitText=function(a){if(this._$committedValue!==wD&&Lua(this._$committedValue)){var b=sD(this._$startNode).nextSibling;this._textSanitizer===void 0&&(this._textSanitizer=mNc(b,"data","property"));a=this._textSanitizer(a);b.data=a}else b=uD.createTextNode(""),this._commitNode(b),this._textSanitizer===void 0&&(this._textSanitizer=mNc(b,"data","property")),a=this._textSanitizer(a),b.data=a;this._$committedValue=a};
h._commitTemplateResult=function(a){var b=a.values,c=a._$litType$;a=typeof c==="number"?this._$getTemplate(a):(c.el===void 0&&(c.el=QNc.createElement(Kua(c.h,c.h[0]),this.options)),c);var d;((d=this._$committedValue)==null?void 0:d._$template)===a?this._$committedValue._update(b):(d=new UNc(a,this),a=d._clone(this.options),d._update(b),this._commitNode(a),this._$committedValue=d)};h._$getTemplate=function(a){var b=PNc.get(a.strings);b===void 0&&PNc.set(a.strings,b=new QNc(a));return b};
h._commitIterable=function(a){Iua(this._$committedValue)||(this._$committedValue=[],this._$clear());var b=this._$committedValue,c=0,d;a=m(a);for(var e=a.next();!e.done;e=a.next())e=e.value,c===b.length?b.push(d=new zD(this._insert(uD.createComment("")),this._insert(uD.createComment("")),this,this.options)):d=b[c],d._$setValue(e),c++;c<b.length&&(this._$clear(d&&sD(d._$endNode).nextSibling,c),b.length=c)};
h._$clear=function(a,b){a=a===void 0?sD(this._$startNode).nextSibling:a;var c;for((c=this._$notifyConnectionChanged)==null||c.call(this,!1,!0,b);a&&a!==this._$endNode;)b=sD(a).nextSibling,sD(a).remove(),a=b};var WNc=function(a,b){if(a._$parent===void 0){a.__isConnected=b;var c;(c=a._$notifyConnectionChanged)==null||c.call(a,b)}};
da.Object.defineProperties(zD.prototype,{_$isConnected:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this._$parent)==null?void 0:a._$isConnected)!=null?b:this.__isConnected}},parentNode:{configurable:!0,enumerable:!0,get:function(){var a=sD(this._$startNode).parentNode,b=this._$parent,c;b!==void 0&&((c=a)==null?void 0:c.nodeType)===11&&(a=b.parentNode);return a}}});
var yD=function(a,b,c,d,e){this.type=1;this._$committedValue=wD;this._$disconnectableChildren=void 0;this.element=a;this.name=b;this._$parent=d;this.options=e;c.length>2||c[0]!==""||c[1]!==""?(this._$committedValue=Array(c.length-1).fill(new String),this.strings=c):this._$committedValue=wD;this._sanitizer=void 0};
yD.prototype._$setValue=function(a,b,c,d){b=b===void 0?this:b;var e=this.strings,f=!1;if(e===void 0){if(a=uj(this,a,b,0),f=!Lua(a)||a!==this._$committedValue&&a!==tj)this._$committedValue=a}else{var g=a;a=e[0];var k;for(k=0;k<e.length-1;k++){var l=uj(this,g[c+k],b,k);l===tj&&(l=this._$committedValue[k]);f||(f=!Lua(l)||l!==this._$committedValue[k]);if(l===wD)a=wD;else if(a!==wD){var r=void 0;a+=((r=l)!=null?r:"")+e[k+1]}this._$committedValue[k]=l}}f&&!d&&this._commitValue(a)};
yD.prototype._commitValue=function(a){if(a===wD)sD(this.element).removeAttribute(this.name);else{this._sanitizer===void 0&&(this._sanitizer=mNc(this.element,this.name,"attribute"));var b;a=this._sanitizer((b=a)!=null?b:"");var c;sD(this.element).setAttribute(this.name,(c=a)!=null?c:"")}};da.Object.defineProperties(yD.prototype,{tagName:{configurable:!0,enumerable:!0,get:function(){return this.element.tagName}},_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});
var RNc=function(){yD.apply(this,arguments);this.type=3};Y(RNc,yD);RNc.prototype._commitValue=function(a){this._sanitizer===void 0&&(this._sanitizer=mNc(this.element,this.name,"property"));a=this._sanitizer(a);this.element[this.name]=a===wD?void 0:a};var SNc=function(){yD.apply(this,arguments);this.type=4};Y(SNc,yD);SNc.prototype._commitValue=function(a){sD(this.element).toggleAttribute(this.name,!!a&&a!==wD)};var TNc=function(a,b,c,d,e){yD.call(this,a,b,c,d,e);this.type=5};Y(TNc,yD);
TNc.prototype._$setValue=function(a,b){var c;a=(c=uj(this,a,b===void 0?this:b,0))!=null?c:wD;if(a!==tj){b=this._$committedValue;c=a===wD&&b!==wD||a.capture!==b.capture||a.once!==b.once||a.passive!==b.passive;var d=a!==wD&&(b===wD||c);c&&this.element.removeEventListener(this.name,this,b);d&&this.element.addEventListener(this.name,this,a);this._$committedValue=a}};
TNc.prototype.handleEvent=function(a){if(typeof this._$committedValue==="function"){var b,c;this._$committedValue.call((c=(b=this.options)==null?void 0:b.host)!=null?c:this.element,a)}else this._$committedValue.handleEvent(a)};var VNc=function(a,b,c){this.element=a;this.type=6;this._$disconnectableChildren=void 0;this._$parent=b;this.options=c};VNc.prototype._$setValue=function(a){uj(this,a)};da.Object.defineProperties(VNc.prototype,{_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});
var XNc;(XNc=globalThis.litHtmlPolyfillSupport)==null||XNc(QNc,zD);var YNc,ZNc;((ZNc=ra.litHtmlVersions)!=null?ZNc:ra.litHtmlVersions=[]).push("3.2.1");YNc=function(a,b,c){var d,e=(d=c==null?void 0:c.renderBefore)!=null?d:b;d=e._$litPart$;if(d===void 0){var f;d=(f=c==null?void 0:c.renderBefore)!=null?f:null;e._$litPart$=d=new zD(b.insertBefore(uD.createComment(""),d),d,void 0,c!=null?c:{})}d._$setValue(a);return d};var $Nc=function(a){return function(){var b=$c.apply(0,arguments),c={};return c._$litDirective$=a,c.values=b,c}},AD=function(){};AD.prototype._$initialize=function(a,b,c){this.__part=a;this._$parent=b;this.__attributeIndex=c};AD.prototype._$resolve=function(a,b){return this.update(a,b)};AD.prototype.update=function(a,b){return this.render.apply(this,q(b))};da.Object.defineProperties(AD.prototype,{_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});var aOc=function(a){this.value=wD;if(a.type!==2)throw Error("Zb`"+this.constructor.directiveName);};Y(aOc,AD);aOc.prototype.render=function(a){if(a===wD||a===void 0)return this.templateResult=void 0,this.value=a;if(a===tj)return a;if(a===this.value)return this.templateResult;this.value=a;a=[sh(a)];a.raw=a;var b={};return this.templateResult=(b._$litType$=this.constructor.resultType,b.strings=a,b.values=[],b)};aOc.directiveName="safeHTML";aOc.resultType=1;var bOc=$Nc(aOc);/*

 Copyright 2020 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Pua=function(a,b){a=a._$disconnectableChildren;if(a!==void 0){a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=void 0;(e=(d=c)._$notifyDirectiveConnectionChanged)==null||e.call(d,b,!1);Pua(c,b)}}},Mua=function(a){var b,c;do{if((b=a._$parent)===void 0)break;var d=b._$disconnectableChildren;d.delete(a);a=b}while(((c=d)==null?void 0:c.size)===0)},Nua=function(a){for(var b;b=a._$parent;a=b){var c=b._$disconnectableChildren;if(c===void 0)b._$disconnectableChildren=c=new Set;else if(c.has(a))break;
c.add(a);a=b;a.type==2&&(a._$notifyConnectionChanged!=null||(a._$notifyConnectionChanged=Qua),a._$reparentDisconnectables!=null||(a._$reparentDisconnectables=Oua))}},BD=function(){this._$disconnectableChildren=void 0};Y(BD,AD);BD.prototype._$initialize=function(a,b,c){AD.prototype._$initialize.call(this,a,b,c);Nua(this);this.isConnected=a._$isConnected};
BD.prototype._$notifyDirectiveConnectionChanged=function(a,b){b=b===void 0?!0:b;if(a!==this.isConnected)if(this.isConnected=a){var c;(c=this.reconnected)==null||c.call(this)}else{var d;(d=this.disconnected)==null||d.call(this)}b&&(Pua(this,a),Mua(this))};BD.prototype.setValue=function(a){if(this.__part.strings===void 0)this.__part._$setValue(a,this);else{var b=[].concat(q(this.__part._$committedValue));b[this.__attributeIndex]=a;this.__part._$setValue(b,this,0)}};BD.prototype.disconnected=function(){};
BD.prototype.reconnected=function(){};/*

 Copyright 2021 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var cOc=function(a){this._ref=a};cOc.prototype.disconnect=function(){this._ref=void 0};cOc.prototype.deref=function(){return this._ref};var dOc=function(){this._resolve=this._promise=void 0};dOc.prototype.get=function(){return this._promise};dOc.prototype.pause=function(){var a=this;this._promise!=null||(this._promise=new Promise(function(b){return a._resolve=b}))};dOc.prototype.resume=function(){var a;(a=this._resolve)==null||a.call(this);this._promise=this._resolve=void 0};var eOc=function(a){return!(a===null||typeof a!="object"&&typeof a!="function")&&typeof a.then==="function"},CD=function(){BD.apply(this,arguments);this.__lastRenderedIndex=1073741823;this.__values=[];this.__weakThis=new cOc(this);this.__pauser=new dOc};Y(CD,BD);CD.prototype.render=function(){var a;return(a=$c.apply(0,arguments).find(function(b){return!eOc(b)}))!=null?a:tj};
CD.prototype.update=function(a,b){var c=this.__values,d=c.length;this.__values=b;var e=this.__weakThis,f=this.__pauser;this.isConnected||this.disconnected();for(var g={},k=0;k<b.length&&!(k>this.__lastRenderedIndex);g={value$jscomp$8301:void 0},k++){g.value$jscomp$8301=b[k];if(!eOc(g.value$jscomp$8301))return this.__lastRenderedIndex=k,g.value$jscomp$8301;k<d&&g.value$jscomp$8301===c[k]||(this.__lastRenderedIndex=1073741823,d=0,Promise.resolve(g.value$jscomp$8301).then(function(l){return function(r){var w,
x;return y(function(C){if(C.nextAddress==1)return f.get()?z(C,f.get(),1):C.jumpTo(4);w=e.deref();w!==void 0&&(x=w.__values.indexOf(l.value$jscomp$8301),x>-1&&x<w.__lastRenderedIndex&&(w.__lastRenderedIndex=x,w.setValue(r)));ae(C)})}}(g)))}return tj};CD.prototype.disconnected=function(){this.__weakThis.disconnect();this.__pauser.pause()};CD.prototype.reconnected=function(){this.__weakThis._ref=this;this.__pauser.resume()};var fOc=$Nc(CD);var gOc=function(a){a=a.LitElement;if(globalThis.ShadyCSS!==void 0&&(!globalThis.ShadyCSS.nativeShadow||globalThis.ShadyCSS.ApplyShim)){a._$handlesPrepareStyles=!0;a=a.prototype;var b=a.createRenderRoot;a.createRenderRoot=function(){this.renderOptions.scope=this.localName;return b.call(this)}}},hOc;(hOc=globalThis).litElementPolyfillSupport!=null||(hOc.litElementPolyfillSupport=gOc);var DD=function(){var a=qD.apply(this,arguments)||this;a.renderOptions={host:a};a.__childPart=void 0;return a};Y(DD,qD);DD.shadowRootOptions=qD.shadowRootOptions;DD.elementStyles=qD.elementStyles;DD.__attributeNameForProperty=qD.__attributeNameForProperty;DD.finalizeStyles=qD.finalizeStyles;DD.__prepare=qD.__prepare;DD.getPropertyOptions=qD.getPropertyOptions;DD.getPropertyDescriptor=qD.getPropertyDescriptor;DD.createProperty=qD.createProperty;DD.addInitializer=qD.addInitializer;h=DD.prototype;
h.createRenderRoot=function(){var a=qD.prototype.createRenderRoot.call(this),b;(b=this.renderOptions).renderBefore!=null||(b.renderBefore=a.firstChild);return a};h.update=function(a){var b=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected);qD.prototype.update.call(this,a);this.__childPart=YNc(b,this.renderRoot,this.renderOptions)};h.connectedCallback=function(){qD.prototype.connectedCallback.call(this);var a;(a=this.__childPart)==null||WNc(a,!0)};
h.disconnectedCallback=function(){qD.prototype.disconnectedCallback.call(this);var a;(a=this.__childPart)==null||WNc(a,!1)};h.render=function(){return tj};DD.finalize=function(){iOc();return qD.finalize.call(this)};DD._$litElement$=!0;DD.finalized=!0;var jOc;(jOc=ra.litElementPolyfillSupport)==null||jOc({LitElement:DD});var iOc=function(){var a;((a=ra.litElementVersions)!=null?a:ra.litElementVersions=[]).push("4.1.1");iOc=function(){}};var kOc=rw(["<div>","</div>"]),lOc=Cua("g3mark-service-backend","https://g3mark-service-backend.corp.google.com"),ED=function(){var a=DD.apply(this,arguments)||this;a.content="";a.svg=new Promise(function(){});a.fetch=Cua("fetch",function(b,c){return fetch(b,c)});return a};Y(ED,DD);ED.shadowRootOptions=DD.shadowRootOptions;ED.elementStyles=DD.elementStyles;ED.__attributeNameForProperty=DD.__attributeNameForProperty;ED.finalizeStyles=DD.finalizeStyles;ED.__prepare=DD.__prepare;
ED.getPropertyOptions=DD.getPropertyOptions;ED.getPropertyDescriptor=DD.getPropertyDescriptor;ED.createProperty=DD.createProperty;ED.addInitializer=DD.addInitializer;ED.finalize=DD.finalize;
ED.prototype.connectedCallback=function(){var a=this;DD.prototype.connectedCallback.call(this);this.div.then(function(b){a.width&&(b.style.width=a.width);a.height&&(b.style.height=a.height)});this.svg=this.fetch(lOc+"/sanitize_svg",{credentials:"include",method:"POST",body:decodeURIComponent(window.atob(this.content))}).then(Bua).then(function(b){b=b.privateDoNotAccessOrElseSafeHtmlWrappedValue;if(b===void 0||b===null)throw Error("Pb");b=qh(b);return bOc(b)}).catch(function(b){console.error(b)})};
ED.prototype.render=function(){return ONc(kOc,fOc(this.svg,"Loading"))};ED.prototype.createRenderRoot=function(){return this};zw([Eua({type:String}),rwc(Object)],ED.prototype,"content",void 0);zw([Eua({type:String}),rwc(String)],ED.prototype,"width",void 0);zw([Eua({type:String}),rwc(String)],ED.prototype,"height",void 0);zw([Eua(Object.assign({},void 0,{state:!0,attribute:!1})),rwc(Object)],ED.prototype,"svg",void 0);
zw([function(a){return function(b,c){return kNc(b,c,{get:function(){var d=this,e,f;return y(function(g){return g.nextAddress==1?z(g,d.updateComplete,2):g.return((f=(e=d.renderRoot)==null?void 0:e.querySelector(a))!=null?f:null)})}})}}("div"),rwc(Promise)],ED.prototype,"div",void 0);zw([function(a){return function(b,c){c!==void 0?c.addInitializer(function(){customElements.define(a,b)}):customElements.define(a,b)}}("g3mark-svg")],ED);var mOc=new zA,FD=function(){this.currentThreadAgentVersion=this.currentThreadAgentId="";this.isDuckieSourceEmbedded=!1;this.dataQueue=[];this.isProcessingStream=!1;this.duckieService=p(gC);this.overridesService=p(AA);this.conversationAgentsService=p(jC);this.duckieEventTrackerService=p(iD);this.communicationService=p(iC);this.sessionSummaryService=p(nC);this.routingService=p(BA);this.markdownService=p(oD);this.backendModelService=p(lC);this.snackBar=p(rB);this.experimentsService=p(qA);this.userContextService=
p(oC);this.duckieClient=p(GEc);this.currentThreadInternal=new Mj(void 0);this.currentThread$=this.currentThreadInternal.pipe(vf({bufferSize:1,refCount:!0}));this.cache=new Map;this.isLoadingThreadInternal=new Mj(!1);this.isLoadingThread$=this.isLoadingThreadInternal.pipe(vf({bufferSize:1,refCount:!0}));this.isDuckieThinkingInternal=new Mj(!1);this.isDuckieThinking$=this.isDuckieThinkingInternal.pipe(vf({bufferSize:1,refCount:!0}));this.canStartNewThread$=this.currentThread$.pipe(A(function(a){return a===
void 0?!1:a.messages.length>=2||a.messages.length===1&&a.messages[0].isUser}));this.cancelPendingCurrentThreadUpdate$=new qf;this.referrer=p(CEc);this.ancestorOrigins=p(BEc).ancestorOrigins;this.hostname=p(BEc).hostname;new ED},GD=function(a,b){SIc(a.userContextService);a.currentThreadInternal.next(b);nOc(a.communicationService,b);b&&b.modelId!==void 0&&a.backendModelService.currentModelIdInternal.next(b.modelId)};
FD.prototype.startNewThread=function(a,b){a=a===void 0?"":a;b=b===void 0?"":b;SIc(this.userContextService);zIc(this.routingService);this.isDuckieThinkingInternal.next(!1);this.cancelPendingCurrentThreadUpdate$.next();this.currentThreadAgentId=a;this.currentThreadAgentVersion=b;this.currentThreadInternal.next(oOc(this));this.communicationService.newThread$.next(!0)};
var qOc=function(a,b){return y(function(c){a.isDuckieThinkingInternal.next(!1);a.cancelPendingCurrentThreadUpdate$.next();return a.cache.has(b)?(GD(a,a.cache.get(b)),c.return()):z(c,pOc(a,b),0)})},pOc=function(a,b){var c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return a.isLoadingThreadInternal.next(!0),c=(new xB).setSessionId(b),z(k,a.duckieService.getSession(c),2);if(k.nextAddress!=3){d=k.yieldResult;if(!d)return GD(a),k.return();f=(e=d)==null?void 0:e.getSession();if(!f)return GD(a),k.return();
rOc(f);g=Rsa(f);return z(k,Promise.all(g.messages.map(a.setMessageTextHtml,a)),3)}g.messages=k.yieldResult;a.cache.set(b,g);GD(a,g);a.isLoadingThreadInternal.next(!1);ae(k)})},rOc=function(a){a.getMessagesList().forEach(function(b,c){Fi(b,19)&&a.setMessagesList(a.getMessagesList().slice(0,c+1))})};
FD.prototype.setMessageTextHtml=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1){if(!a.text)return d.return(a);c=a;return z(d,FMc(b.markdownService,a.text,{highlight:!0,escapeHtml:!0,graphviz:!0}),2)}c.textHtml=d.yieldResult;return d.return(a)})};
var sOc=function(a,b){var c,d,e,f;y(function(g){if(g.nextAddress==1)return z(g,fe(a.currentThread$),2);if(g.nextAddress!=3){c=g.yieldResult;if(!c)return g.return();b=b.substring(0,200);d=c.serverId;e=(new BB).setSessionId(d).setTitle(b);return z(g,a.duckieService.updateSession(e),3)}f=g.yieldResult;if(!f)return g.return();c.title=b;GD(a,c);return z(g,xIc(a.sessionSummaryService,c),0)})},yOc=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return c=oOc(a),c.title=b.substring(0,
200),d=(new wB).setDuckieClient(a.duckieClient).setText(b),z(g,tOc(a,d,c),2);case 2:return z(g,uOc(a),3);case 3:return(e=g.yieldResult)?(f=Fsa(d),z(g,vOc(a,c,f),5)):z(g,wOc(a,c,d),5);case 5:return z(g,wIc(a.sessionSummaryService,c),8);case 8:return z(g,xOc(a,c),9);case 9:return g.return(c)}})},zOc=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return z(g,fe(a.currentThread$),2);case 2:c=g.yieldResult;if(!c)return g.return();d=(new wB).setDuckieClient(a.duckieClient).setText(b);
return z(g,tOc(a,d,c),3);case 3:return z(g,uOc(a),4);case 4:return(e=g.yieldResult)?(f=Fsa(d),z(g,vOc(a,c,f),6)):z(g,wOc(a,c,d),6);case 6:return z(g,xOc(a,c),0)}})},BOc=function(a,b,c){var d;return y(function(e){return e.nextAddress==1?z(e,fe(a.currentThread$),2):(d=e.yieldResult)?z(e,AOc(a,d,b,c),0):e.return()})};
FD.prototype.cancelDuckieStream=function(){var a=this,b,c,d,e,f,g;return y(function(k){if(k.nextAddress==1){if(!a.currentActiveStream)return k.jumpTo(0);a.currentActiveStream.cancel();a.currentActiveStream=void 0;a.isDuckieThinkingInternal.next(!1);a.dataQueue=[];a.isProcessingStream=!1;return z(k,fe(a.currentThread$),3)}if(k.nextAddress!=5){b=k.yieldResult;if(!b||b.messages.length===0)return k.return();c=b.messages.length-1;d=b.messages[c];if(d.isUser)return k.jumpTo(0);e=Object;f=e.assign;return z(k,
FMc(a.markdownService,"Response generation stopped.",{highlight:!0,escapeHtml:!0,graphviz:!0}),5)}g=f.call(e,{},d,{text:"Response generation stopped.",isStreamingThoughts:!1,textHtml:k.yieldResult});b.messages=b.messages.map(function(l,r){return r===c?g:l});GD(a,b);ae(k)})};
var AOc=function(a,b,c,d){return y(function(e){b.messages.forEach(function(f){f.id===c&&(f.feedback?f.feedback.setHelpfulness(d):f.feedback=(new JA).setHelpfulness(d).setFeedbackType(0))});a.cache.set(b.serverId,b);ae(e)})},tOc=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1){c.serverId&&b.setSessionId(c.serverId);var f=a.backendModelService.currentModelIdInternal.value;f!==""&&b.setModelId(f);d=Cm(a.overridesService.overrideOptions,6,Ci());if(d.length>0){f=b.setModelOverrideOptions;
var g=new zA;g=Gm(g,6,d);f.call(b,g)}return z(e,COc(a,b,c),2)}if(a.isDuckieSourceEmbedded){g=new Ai;var k=new QEc;k=Gn(k,1,2);k=oj(k,3,a.hostname);g=Wo(g,7,Ri,k);Np(b,6,Ai,g)}else if(a.referrer.length!==0){var l=a.ancestorOrigins.length>0&&a.ancestorOrigins[0]!==a.referrer?1:3;g=FEc.test(a.referrer)&&!a.overridesService.overrideIsFirstTurnFromMoma?"":a.referrer;if(g.length>0){k=new Ai;var r=(new QEc).setReferrerUrl(g);l=Gn(r,1,l);k=Wo(k,7,Ri,l);Np(b,6,Ai,k)}FEc.test(g)&&(g=new Ai,k=(new Nsa).setReferrerUrl(a.referrer),
g=Wo(g,4,Ri,k),Np(b,6,Ai,g))}a.referrer.length!==0&&FEc.test(a.referrer)&&a.overridesService.overrideIsFirstTurnFromMoma&&(a.overridesService.overrideIsFirstTurnFromMoma=!1);g=[];for(k=0;k<c.messages.length;k++)l=c.messages[k],l.isUser||l.id?g.push(Msa(l)):g.pop();g=(new MA).setMessagesList(g);c.privacyMode!==void 0&&g.setPrivacyMode(c.privacyMode);b.setConversationHistory(g);if(a.experimentsService.userProvidedContextEnabled){g=(f=c.userProvidedContext)!=null?f:[];f=VIc(a.userContextService,b.getText());
f=m(f);for(k=f.next();!k.done;k=f.next()){k=k.value;l=g;r=l.push;var w=new Pi;var x=(new Ji).setType(k.source);x=oj(x,3,k.fullUrl);r.call(l,Lsa(w,x.setUrl(k.label)))}b.addAllUserProvidedContext(g);SIc(a.userContextService)}c.conversationAgentId&&c.conversationAgentModelId&&(f=(new GA).setAgentId(c.conversationAgentId).setModelId(c.conversationAgentModelId),c.systemInstruction&&f.setSystemInstruction(c.systemInstruction),b.setConversationAgent(f));return e.return(b)})},vOc=function(a,b,c){var d,e,
f;return y(function(g){if(g.nextAddress==1)return d=!0,e=a.cancelPendingCurrentThreadUpdate$.pipe(lf(1)).subscribe(function(){d=!1}),b.serverId&&c.setSessionId(b.serverId),a.isDuckieThinkingInternal.next(!0),z(g,a.duckieService.streamGenerateAnswers(c),2);a.currentActiveStream=g.yieldResult;DOc(a,b,c.getText());GD(a,b);f=null;a.currentActiveStream.on("data",function(k){var l,r,w,x,C;return y(function(H){f=k;a.dataQueue.push({text:(x=(l=k.getResponse())==null?void 0:l.getText())!=null?x:"",state:wi(k,
4),hiddenMessages:(C=(r=k.getResponse())==null?void 0:(w=X(r,Di,17))==null?void 0:Bi(w,IA,9,Ci()))!=null?C:[]});return z(H,EOc(a,b),0)})});a.currentActiveStream.on("error",function(){a.isDuckieThinkingInternal.next(!1);a.dataQueue=[];a.isProcessingStream=!1;b.messages.splice(-2);GD(a,b);lIc(c.getText())});a.currentActiveStream.on("end",function(){var k,l;return y(function(r){switch(r.nextAddress){case 1:if(!f){r.jumpTo(2);break}return z(r,FOc(a,b,f),3);case 3:if(!a.experimentsService.userProvidedContextEnabled){r.jumpTo(4);
break}return z(r,GOc(b,f),4);case 4:if((k=f.getResponse())==null?0:Fi(k,20)){r.jumpTo(6);break}return z(r,HOc(a.communicationService,(l=f.getResponse())==null?void 0:l.getText()),6);case 6:IOc(a,f,c),f.hasResponse()&&f.getResponse().hasSessionId()&&(b.serverId=f.getResponse().getSessionId());case 2:return a.currentThreadInternal.next(b),z(r,wIc(a.sessionSummaryService,b),8);case 8:d&&GD(a,b),e.unsubscribe(),a.isDuckieThinkingInternal.next(!1),ae(r)}})});return g.return(b)})},EOc=function(a,b){var c,
d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,na,ua,ia,Ga;return y(function(ha){switch(ha.nextAddress){case 1:if(a.isProcessingStream||a.dataQueue.length===0)return ha.return();a.isProcessingStream=!0;c=[3,4];d=[];e=a.dataQueue[a.dataQueue.length-1].state;a.dataQueue.length>1&&c.includes(e)?(d=a.dataQueue.slice(0,-1),a.dataQueue=[a.dataQueue[a.dataQueue.length-1]]):(d=a.dataQueue,a.dataQueue=[]);f=b.messages.length-1;k=g=b.messages[f];if(c.includes(d[0].state))l=d[0],w=((r=g.text)!=null?r:"")+l.text,x=KEc((g.executionMetadata||
new Di).clone(),l.hiddenMessages),k=Object.assign({},g,{text:w,executionMetadata:x});else{C=[];H=m(d);for(J=H.next();!J.done;J=H.next())O=J.value,C=C.concat(O.hiddenMessages);ca=(V=(R=g.executionMetadata)==null?void 0:byc(R,IA,9))!=null?V:[];na=[].concat(q(ca.concat(C)));ua=KEc((g.executionMetadata||new Di).clone(),na);k=Object.assign({},g,{executionMetadata:ua,isStreamingThoughts:g.isStreamingThoughts})}Wd(ha,2,3);return z(ha,a.setMessageTextHtml(k),5);case 5:k=ha.yieldResult,ia=b.messages.map(function(sa,
xa){return xa===f?k:sa}),b.messages=ia,a.cache.set(b.serverId,b),GD(a,b);case 3:Xd(ha);a.isProcessingStream=!1;if(!(a.dataQueue.length>0)){ha.jumpTo(6);break}return z(ha,EOc(a,b),6);case 6:Zd(ha,0);break;case 2:Ga=$d(ha),console.error("Error processing message:",Ga),ha.jumpTo(3)}})},wOc=function(a,b,c){var d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:return d=!0,e=a.cancelPendingCurrentThreadUpdate$.pipe(lf(1)).subscribe(function(){d=!1}),DOc(a,b,c.getText()),GD(a,b),a.isDuckieThinkingInternal.next(!0),
Wd(r,2),z(r,a.duckieService.generateAnswers(c),4);case 4:f=r.yieldResult;dt(r,3);break;case 2:return g=$d(r),a.snackBar.openFromComponent(tB,{data:{message:"An error occurred. Please try again.",error:g instanceof Error?g:Error(String(g))}}),b.messages.splice(-2),GD(a,b),lIc(c.getText()),a.isDuckieThinkingInternal.next(!1),r.return(b);case 3:return f?z(r,JOc(a,b,f),5):r.return(b);case 5:if(!a.experimentsService.userProvidedContextEnabled){r.jumpTo(6);break}return z(r,GOc(b,f),6);case 6:if((k=f.getResponse())==
null?0:Fi(k,20)){r.jumpTo(8);break}return z(r,HOc(a.communicationService,(l=f.getResponse())==null?void 0:l.getText()),8);case 8:return IOc(a,f,c),f.hasResponse()&&f.getResponse().hasSessionId()&&(b.serverId=f.getResponse().getSessionId()),a.cache.set(b.serverId,b),d&&GD(a,b),e.unsubscribe(),a.isDuckieThinkingInternal.next(!1),r.return(b)}})},COc=function(a,b,c){var d,e,f,g,k,l;return y(function(r){d=a.overridesService.getModelOverrideOptions();HQa(d,mOc)||b.setModelOverrideOptions(d);(f=(e=c.agentId)!=
null?e:"")&&Ii(b,JEc,10).setAgentId(f);(k=(g=c.agentVersion)!=null?g:"")&&Ii(b,JEc,10).setAgentVersion(k);(l=a.overridesService.getDisallowRestrictedContent())&&b.setDisallowRestrictedContent(l);a.overridesService.getAppProvidedContext().getValuesList().length>0&&b.setAppProvidedContext(a.overridesService.getAppProvidedContext());ae(r)})},DOc=function(a,b,c){c={text:c,isUser:!0,trackingId:Dsa()};a={text:void 0,isUser:!1,isStreamingThoughts:uOc(a),trackingId:Dsa()};b.messages.push(c);b.messages.push(a)},
JOc=function(a,b,c){var d,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1){d=c.getQuery();if(!d)return w.return();e=b.messages.length-2;f=Ki(d);return z(w,a.setMessageTextHtml(f),2)}if(w.nextAddress!=3){f=w.yieldResult;b.messages[e]=f;g=c.getResponse();if(!g)return w.return();KOc(b,g);k=Ki(g);return z(w,a.setMessageTextHtml(k),3)}k=w.yieldResult;l=b.messages.length-1;b.messages[l]=k;b.privacyMode=(r=c.getConversationHistory())==null?void 0:r.getPrivacyMode();ae(w)})},FOc=function(a,b,c){var d,
e,f,g,k,l,r,w,x,C,H;return y(function(J){if(J.nextAddress==1){d=c.getConversationHistory();if(!d||!d.getMessagesList())return console.error("No conversation history or messages in response."),J.return();if(d.getMessagesList().length!==b.messages.length)return console.error("Conversation history and thread messages have different lengths."),J.return();e=d.getMessagesList();f=b.messages.length-1;g=b.messages.length-2;k=b.messages[f].trackingId;l=b.messages[g].trackingId;r=e[g];w=Ki(r);return z(J,a.setMessageTextHtml(w),
2)}if(J.nextAddress!=3)return w=J.yieldResult,x=e[f],KOc(b,x),C=Ki(x),z(J,a.setMessageTextHtml(C),3);C=J.yieldResult;C.isStreamingThoughts=!1;w.trackingId=l;C.trackingId=k;w.sessionId=C.sessionId;b.messages[g]=w;b.messages[f]=C;b.privacyMode=(H=c.getConversationHistory())==null?void 0:H.getPrivacyMode();ae(J)})},GOc=function(a,b){var c,d,e,f,g,k;return y(function(l){c=b.getUserProvidedContextList();if(!c)return l.return();d=[];e=m(c);for(f=e.next();!f.done;f=e.next()){g=f.value;k=Lsa(new Pi,(new Ji).setType(YEc(g).getType()).setUrl(YEc(g).getUrl()));
var r=YEc(g);if(im(r,3)){r=YEc(k);var w=YEc(g);w=ui(w,3);oj(r,3,w)}d.push(k)}a.userProvidedContext=d;ae(l)})},xOc=function(a,b){var c;return y(function(d){if(d.nextAddress==1){if(b.privacyMode===2||!b.messages.some(function(e){return e.hasPrivateContent}))return d.jumpTo(0);c=Object.assign({},b,{privacyMode:2});return z(d,yIc(a.sessionSummaryService,c),3)}GD(a,c);a.cache.set(c.serverId,c);ae(d)})},KOc=function(a,b){Fi(b,20)||Ksa(b,a.messages.some(function(c){return c.hasPrivateContent}))},IOc=function(a,
b,c){if(b=b.getResponse())if(b=Ki(b),jD(a.duckieEventTrackerService,201778,b),jD(a.duckieEventTrackerService,201478,b),c=VIc(a.userContextService,c.getText(),!0).map(function(e){var f=(new $Ic).setUrl(e.fullUrl);return Gn(f,2,e.source)}),c.length>0){var d;mMa(a.duckieEventTrackerService,nMa(bJc(new cm,aJc(c)).setMessageId(b.id).setSessionId((d=b.sessionId)!=null?d:"")),243707)}},oOc=function(a){var b=kC(a.conversationAgentsService),c,d,e;return{serverId:null,messages:[],title:"",agentId:a.currentThreadAgentId,
agentVersion:a.currentThreadAgentVersion,conversationAgentId:(c=b==null?void 0:b.agentId)!=null?c:void 0,conversationAgentModelId:(d=b==null?void 0:b.modelId)!=null?d:void 0,systemInstruction:(e=b==null?void 0:b.systemInstruction)!=null?e:void 0}},uOc=function(a){var b;if(!(b=!a.experimentsService.duckieStreamingMvpEnabled)){var c;if(b=!((c=kC(a.conversationAgentsService).agentId)==null?0:c.startsWith("a2a:")))a=kC(a.conversationAgentsService),c=a.agentId===Bw.agentId&&a.modelId===Bw.modelId,b=!(a.agentId===
Cw.agentId&&a.modelId===Cw.modelId||c)}return!b};FD.\u0275fac=function(a){return new (a||FD)};FD.\u0275prov=Dc({token:FD,factory:FD.\u0275fac,providedIn:"root"});var LOc=new dd("GM2_FORM_FIELD_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var HD=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};HD.\u0275fac=function(a){return new (a||HD)(Ve(LOc))};HD.\u0275dir=af({type:HD,selectors:[["mat-form-field"]],hostAttrs:[1,"gmat-mdc-form-field"],standalone:!1});var MOc=new dd("MatError"),ID=function(){this.id=p(ai).getId("mat-mdc-error-")};ID.\u0275fac=function(a){return new (a||ID)};ID.\u0275dir=af({type:ID,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(a,b){a&2&&Pf("id",b.id)},inputs:{id:"id"},features:[Gg([{provide:MOc,useExisting:ID}])]});var JD=function(){this.align="start";this.id=p(ai).getId("mat-mdc-hint-")};JD.\u0275fac=function(a){return new (a||JD)};JD.\u0275dir=af({type:JD,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(a,b){a&2&&(Pf("id",b.id),If("align",null),wg("mat-mdc-form-field-hint-end",b.align==="end"))},inputs:{align:"align",id:"id"}});var KD=function(){};KD.\u0275fac=function(a){return new (a||KD)};KD.\u0275dir=af({type:KD,selectors:[["mat-label"]]});var NOc=new dd("MatPrefix"),LD=function(){this._isText=!1};da.Object.defineProperties(LD.prototype,{_isTextSelector:{configurable:!0,enumerable:!0,set:function(){this._isText=!0}}});LD.\u0275fac=function(a){return new (a||LD)};LD.\u0275dir=af({type:LD,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Gg([{provide:NOc,useExisting:LD}])]});var OOc=new dd("MatSuffix"),MD=function(){this._isText=!1};da.Object.defineProperties(MD.prototype,{_isTextSelector:{configurable:!0,enumerable:!0,set:function(){this._isText=!0}}});MD.\u0275fac=function(a){return new (a||MD)};MD.\u0275dir=af({type:MD,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Gg([{provide:OOc,useExisting:MD}])]});var ND=function(){};ND.\u0275fac=function(a){return new (a||ND)};ND.\u0275dir=af({type:ND});var POc=function(a){var b=this;this._box=a;this._destroyed=new qf;this._resizeSubject=new qf;this._elementObservables=new Map;typeof ResizeObserver!=="undefined"&&(this._resizeObserver=new ResizeObserver(function(c){return b._resizeSubject.next(c)}))};
POc.prototype.observe=function(a){var b=this;this._elementObservables.has(a)||this._elementObservables.set(a,(new Td(function(c){var d=b._resizeSubject.subscribe(c),e;(e=b._resizeObserver)==null||e.observe(a,{box:b._box});return function(){var f;(f=b._resizeObserver)==null||f.unobserve(a);d.unsubscribe();b._elementObservables.delete(a)}})).pipe(ue(function(c){return c.some(function(d){return d.target===a})}),vf({bufferSize:1,refCount:!0}),zf(this._destroyed)));return this._elementObservables.get(a)};
POc.prototype.destroy=function(){this._destroyed.next();this._destroyed.complete();this._resizeSubject.complete();this._elementObservables.clear()};var OD=function(){this._observers=new Map;this._ngZone=p(Rg)};OD.prototype.ngOnDestroy=function(){for(var a=m(this._observers),b=a.next();!b.done;b=a.next())b=m(b.value),b.next(),b.next().value.destroy();this._observers.clear();var c;(c=this._cleanupErrorListener)==null||c.call(this)};
OD.prototype.observe=function(a,b){b=(b==null?void 0:b.box)||"content-box";this._observers.has(b)||this._observers.set(b,new POc(b));return this._observers.get(b).observe(a)};OD.\u0275fac=function(a){return new (a||OD)};OD.\u0275prov=Dc({token:OD,factory:OD.\u0275fac,providedIn:"root"});var QOc=new dd("FloatingLabelParent"),PD=function(){this._elementRef=p(Hd);this._monitorResize=this._floating=!1;this._resizeObserver=p(OD);this._ngZone=p(Rg);this._parent=p(QOc);this._resizeSubscription=new Pd};PD.prototype.ngOnDestroy=function(){this._resizeSubscription.unsubscribe()};
PD.prototype.getWidth=function(){var a=this._elementRef.nativeElement;if(a.offsetParent!==null)a=a.scrollWidth;else{a=a.cloneNode(!0);a.style.setProperty("position","absolute");a.style.setProperty("transform","translate(-9999px, -9999px)");document.documentElement.appendChild(a);var b=a.scrollWidth;a.remove();a=b}return a};PD.prototype._handleResize=function(){var a=this;setTimeout(function(){return a._parent._handleLabelResized()})};
PD.prototype._subscribeToResize=function(){var a=this;this._resizeSubscription.unsubscribe();this._ngZone.runOutsideAngular(function(){a._resizeSubscription=a._resizeObserver.observe(a._elementRef.nativeElement,{box:"border-box"}).subscribe(function(){return a._handleResize()})})};
da.Object.defineProperties(PD.prototype,{floating:{configurable:!0,enumerable:!0,get:function(){return this._floating},set:function(a){this._floating=a;this.monitorResize&&this._handleResize()}},monitorResize:{configurable:!0,enumerable:!0,get:function(){return this._monitorResize},set:function(a){(this._monitorResize=a)?this._subscribeToResize():this._resizeSubscription.unsubscribe()}},element:{configurable:!0,enumerable:!0,get:function(){return this._elementRef.nativeElement}}});
PD.\u0275fac=function(a){return new (a||PD)};PD.\u0275dir=af({type:PD,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mdc-floating-label--float-above",b.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}});var QD=function(){var a=this;this._elementRef=p(Hd);this._handleTransitionEnd=function(d){var e=a._elementRef.nativeElement.classList,f=e.contains("mdc-line-ripple--deactivating");d.propertyName==="opacity"&&f&&e.remove("mdc-line-ripple--active","mdc-line-ripple--deactivating")};var b=p(Rg),c=p(ci);b.runOutsideAngular(function(){a._cleanupTransitionEnd=c.listen(a._elementRef.nativeElement,"transitionend",a._handleTransitionEnd)})};
QD.prototype.activate=function(){var a=this._elementRef.nativeElement.classList;a.remove("mdc-line-ripple--deactivating");a.add("mdc-line-ripple--active")};QD.prototype.deactivate=function(){this._elementRef.nativeElement.classList.add("mdc-line-ripple--deactivating")};QD.prototype.ngOnDestroy=function(){this._cleanupTransitionEnd()};QD.\u0275fac=function(a){return new (a||QD)};QD.\u0275dir=af({type:QD,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]});var ROc=["notch"],RD=function(){this._elementRef=p(Hd);this._ngZone=p(Rg);this.open=!1};RD.prototype.ngAfterViewInit=function(){var a=this._elementRef.nativeElement,b=a.querySelector(".mdc-floating-label");b?(a.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame==="function"&&(b.style.transitionDuration="0s",this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return b.style.transitionDuration=""})}))):a.classList.add("mdc-notched-outline--no-label")};
RD.prototype._setNotchWidth=function(a){this._notch.nativeElement.style.width=this.open&&a?"calc("+a+"px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)":""};RD.prototype._setMaxWidth=function(a){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width","calc(100% - "+a+"px)")};RD.\u0275fac=function(a){return new (a||RD)};
RD.\u0275cmp=D({type:RD,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(a,b){a&1&&hg(ROc,5);if(a&2){var c;lg(c=mg())&&(b._notch=c.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mdc-notched-outline--notched",b.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:["matFormFieldNotchedOutline",""],ngContentSelectors:["*"],decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,
"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(a){a&1&&(bg(),Sf(0,"div",1),Qf(1,"div",2,0),cg(3),Rf(),Sf(4,"div",3))},encapsulation:2,changeDetection:0});var SOc=["iconPrefixContainer"],TOc=["textPrefixContainer"],UOc=["iconSuffixContainer"],VOc=["textSuffixContainer"],WOc=["textField"],XOc=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],YOc=new dd("MatFormField"),ZOc=new dd("MAT_FORM_FIELD_DEFAULT_OPTIONS"),SD=function(){var a=this;this._elementRef=
p(Hd);this._changeDetectorRef=p(Cx);this._platform=p(Vh);this._idGenerator=p(ai);this._ngZone=p(Rg);this._defaults=p(ZOc,{optional:!0});this._iconPrefixContainerSignal=Pg.apply(null,["iconPrefixContainer"].concat(q([])));this._textPrefixContainerSignal=Pg.apply(null,["textPrefixContainer"].concat(q([])));this._iconSuffixContainerSignal=Pg.apply(null,["iconSuffixContainer"].concat(q([])));this._textSuffixContainerSignal=Pg.apply(null,["textSuffixContainer"].concat(q([])));this._prefixSuffixContainers=
Zg.apply(null,[function(){return[a._iconPrefixContainerSignal(),a._textPrefixContainerSignal(),a._iconSuffixContainerSignal(),a._textSuffixContainerSignal()].map(function(d){return d==null?void 0:d.nativeElement}).filter(function(d){return d!==void 0})}].concat(q([])));this._labelChild=voa.apply(null,[KD].concat(q([])));this._hideRequiredMarker=!1;this.color="primary";this._appearanceSignal=ng.apply(null,["fill"].concat(q([])));this._subscriptSizing=null;this._hintLabel="";this._hasTextSuffix=this._hasIconSuffix=
this._hasTextPrefix=this._hasIconPrefix=!1;this._labelId=this._idGenerator.getId("mat-mdc-form-field-label-");this._hintLabelId=this._idGenerator.getId("mat-mdc-hint-");this._destroyed=new qf;this._outlineLabelOffsetResizeObserver=this._previousControlValidatorFn=this._previousControl=this._isFocused=null;this._animationsDisabled=mi();this.getLabelId=Zg.apply(null,[function(){return a._hasFloatingLabel()?a._labelId:null}].concat(q([])));this._hasFloatingLabel=Zg.apply(null,[function(){return!!a._labelChild()}].concat(q([])));
var b=this._defaults,c=p(bi);b&&(b.appearance&&(this.appearance=b.appearance),this._hideRequiredMarker=!(b==null||!b.hideRequiredMarker),b.color&&(this.color=b.color));ef(function(){return a._currentDirection=c.valueSignal()});this._syncOutlineLabelOffset()};h=SD.prototype;
h.ngAfterViewInit=function(){var a=this;this._updateFocusState();this._animationsDisabled||this._ngZone.runOutsideAngular(function(){setTimeout(function(){a._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)});this._changeDetectorRef.detectChanges()};h.ngAfterContentInit=function(){this._initializeSubscript();this._initializePrefixAndSuffix()};
h.ngAfterContentChecked=function(){this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control);this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()};
h.ngOnDestroy=function(){var a;(a=this._outlineLabelOffsetResizeObserver)==null||a.disconnect();var b;(b=this._stateChanges)==null||b.unsubscribe();var c;(c=this._valueChanges)==null||c.unsubscribe();var d;(d=this._describedByChanges)==null||d.unsubscribe();this._destroyed.next();this._destroyed.complete()};h.getConnectedOverlayOrigin=function(){return this._textField||this._elementRef};h._animateAndLockLabel=function(){this._hasFloatingLabel()&&(this.floatLabel="always")};
h._initializeControl=function(a){var b=this,c=this._control;a&&this._elementRef.nativeElement.classList.remove("mat-mdc-form-field-type-"+a.controlType);c.controlType&&this._elementRef.nativeElement.classList.add("mat-mdc-form-field-type-"+c.controlType);var d;(d=this._stateChanges)==null||d.unsubscribe();this._stateChanges=c.stateChanges.subscribe(function(){b._updateFocusState();b._changeDetectorRef.markForCheck()});var e;(e=this._describedByChanges)==null||e.unsubscribe();this._describedByChanges=
c.stateChanges.pipe(xf([void 0,void 0]),A(function(){return[c.errorState,c.userAriaDescribedBy]}),tf(),ue(function(g){var k=m(g);var l=m(k.next().value);g=l.next().value;l=l.next().value;var r=m(k.next().value);k=r.next().value;r=r.next().value;return g!==k||l!==r})).subscribe(function(){return b._syncDescribedByIds()});var f;(f=this._valueChanges)==null||f.unsubscribe();c.ngControl&&c.ngControl.valueChanges&&(this._valueChanges=c.ngControl.valueChanges.pipe(zf(this._destroyed)).subscribe(function(){return b._changeDetectorRef.markForCheck()}))};
h._checkPrefixAndSuffixTypes=function(){this._hasIconPrefix=!!this._prefixChildren.find(function(a){return!a._isText});this._hasTextPrefix=!!this._prefixChildren.find(function(a){return a._isText});this._hasIconSuffix=!!this._suffixChildren.find(function(a){return!a._isText});this._hasTextSuffix=!!this._suffixChildren.find(function(a){return a._isText})};
h._initializePrefixAndSuffix=function(){var a=this;this._checkPrefixAndSuffixTypes();te(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._checkPrefixAndSuffixTypes();a._changeDetectorRef.markForCheck()})};h._initializeSubscript=function(){var a=this;this._hintChildren.changes.subscribe(function(){a._processHints();a._changeDetectorRef.markForCheck()});this._errorChildren.changes.subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});this._syncDescribedByIds()};
h._assertFormFieldControl=function(){};h._updateFocusState=function(){var a=this._control.focused;if(a&&!this._isFocused){this._isFocused=!0;var b;(b=this._lineRipple)==null||b.activate()}else if(!a&&(this._isFocused||this._isFocused===null)){this._isFocused=!1;var c;(c=this._lineRipple)==null||c.deactivate()}this._elementRef.nativeElement.classList.toggle("mat-focused",a);var d;(d=this._textField)==null||d.nativeElement.classList.toggle("mdc-text-field--focused",a)};
h._syncOutlineLabelOffset=function(){var a=this;Yoa({earlyRead:function(){if(a._appearanceSignal()!=="outline"){var b;(b=a._outlineLabelOffsetResizeObserver)==null||b.disconnect();return null}if(globalThis.ResizeObserver){a._outlineLabelOffsetResizeObserver||(a._outlineLabelOffsetResizeObserver=new globalThis.ResizeObserver(function(){a._writeOutlinedLabelStyles(a._getOutlinedLabelOffset())}));b=m(a._prefixSuffixContainers());for(var c=b.next();!c.done;c=b.next())a._outlineLabelOffsetResizeObserver.observe(c.value,
{box:"border-box"})}return a._getOutlinedLabelOffset()},write:function(b){return a._writeOutlinedLabelStyles(b())}})};h._shouldAlwaysFloat=function(){return this.floatLabel==="always"};h._hasOutline=function(){return this.appearance==="outline"};h._forceDisplayInfixLabel=function(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()};h._shouldLabelFloat=function(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1};
h._shouldForward=function(a){var b=this._control?this._control.ngControl:null;return b&&b[a]};h._getSubscriptMessageType=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"};h._handleLabelResized=function(){this._refreshOutlineNotchWidth()};
h._refreshOutlineNotchWidth=function(){if(this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()){var a;(a=this._notchedOutline)==null||a._setNotchWidth(this._floatingLabel.getWidth())}else{var b;(b=this._notchedOutline)==null||b._setNotchWidth(0)}};h._processHints=function(){this._syncDescribedByIds()};h._validateHints=function(){};
h._syncDescribedByIds=function(){if(this._control){var a=[];this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy==="string"&&a.push.apply(a,q(this._control.userAriaDescribedBy.split(" ")));if(this._getSubscriptMessageType()==="hint"){var b=this._hintChildren?this._hintChildren.find(function(e){return e.align==="start"}):null,c=this._hintChildren?this._hintChildren.find(function(e){return e.align==="end"}):null;b?a.push(b.id):this._hintLabel&&a.push(this._hintLabelId);c&&a.push(c.id)}else this._errorChildren&&
a.push.apply(a,q(this._errorChildren.map(function(e){return e.id})));if(b=this._control.describedByIds){var d=this._describedByIds||a;b=a.concat(b.filter(function(e){return e&&!d.includes(e)}))}else b=a;this._control.setDescribedByIds(b);this._describedByIds=a}};
h._getOutlinedLabelOffset=function(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;var a,b=(a=this._iconPrefixContainer)==null?void 0:a.nativeElement,c;a=(c=this._textPrefixContainer)==null?void 0:c.nativeElement;var d;c=(d=this._iconSuffixContainer)==null?void 0:d.nativeElement;var e;d=(e=this._textSuffixContainer)==null?void 0:e.nativeElement;var f;b=(f=b==null?void 0:b.getBoundingClientRect().width)!=
null?f:0;var g;f=(g=a==null?void 0:a.getBoundingClientRect().width)!=null?g:0;var k;g=(k=c==null?void 0:c.getBoundingClientRect().width)!=null?k:0;var l;k=(l=d==null?void 0:d.getBoundingClientRect().width)!=null?l:0;return["var(--mat-mdc-form-field-label-transform, translateY(-50%) translateX(calc("+((this._currentDirection==="rtl"?"-1":"1")+" * ("+(b+f+"px + var(--mat-mdc-form-field-label-offset-x, 0px)))))")),b+f+g+k]};
h._writeOutlinedLabelStyles=function(a){if(a!==null){var b=m(a);a=b.next().value;b=b.next().value;this._floatingLabel&&(this._floatingLabel.element.style.transform=a);if(b!==null){var c;(c=this._notchedOutline)==null||c._setMaxWidth(b)}}};h._isAttachedToDom=function(){var a=this._elementRef.nativeElement;if(a.getRootNode){var b=a.getRootNode();return b&&b!==a}return document.documentElement.contains(a)};
da.Object.defineProperties(SD.prototype,{hideRequiredMarker:{configurable:!0,enumerable:!0,get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=Lh(a)}},floatLabel:{configurable:!0,enumerable:!0,get:function(){var a;return this._floatLabel||((a=this._defaults)==null?void 0:a.floatLabel)||"auto"},set:function(a){a!==this._floatLabel&&(this._floatLabel=a,this._changeDetectorRef.markForCheck())}},appearance:{configurable:!0,enumerable:!0,get:function(){return this._appearanceSignal()},
set:function(a){var b;a=a||((b=this._defaults)==null?void 0:b.appearance)||"fill";this._appearanceSignal.set(a)}},subscriptSizing:{configurable:!0,enumerable:!0,get:function(){var a;return this._subscriptSizing||((a=this._defaults)==null?void 0:a.subscriptSizing)||"fixed"},set:function(a){var b;this._subscriptSizing=a||((b=this._defaults)==null?void 0:b.subscriptSizing)||"fixed"}},hintLabel:{configurable:!0,enumerable:!0,get:function(){return this._hintLabel},set:function(a){this._hintLabel=a;this._processHints()}},
_control:{configurable:!0,enumerable:!0,get:function(){return this._explicitFormFieldControl||this._formFieldControl},set:function(a){this._explicitFormFieldControl=a}}});SD.\u0275fac=function(a){return new (a||SD)};
SD.\u0275cmp=D({type:SD,selectors:[["mat-form-field"]],contentQueries:function(a,b,c){a&1&&(Dna(b._labelChild,ig(c,KD,5)),ig(c,ND,5),ig(c,NOc,5),ig(c,OOc,5),ig(c,MOc,5),ig(c,JD,5));if(a&2){pg();var d;lg(d=mg())&&(b._formFieldControl=d.first);lg(d=mg())&&(b._prefixChildren=d);lg(d=mg())&&(b._suffixChildren=d);lg(d=mg())&&(b._errorChildren=d);lg(d=mg())&&(b._hintChildren=d)}},viewQuery:function(a,b){a&1&&(og(b._iconPrefixContainerSignal,SOc),og(b._textPrefixContainerSignal,TOc),og(b._iconSuffixContainerSignal,
UOc),og(b._textSuffixContainerSignal,VOc),hg(WOc,5),hg(SOc,5),hg(TOc,5),hg(UOc,5),hg(VOc,5),hg(PD,5),hg(RD,5),hg(QD,5));if(a&2){pg(4);var c;lg(c=mg())&&(b._textField=c.first);lg(c=mg())&&(b._iconPrefixContainer=c.first);lg(c=mg())&&(b._textPrefixContainer=c.first);lg(c=mg())&&(b._iconSuffixContainer=c.first);lg(c=mg())&&(b._textSuffixContainer=c.first);lg(c=mg())&&(b._floatingLabel=c.first);lg(c=mg())&&(b._notchedOutline=c.first);lg(c=mg())&&(b._lineRipple=c.first)}},hostAttrs:[1,"mat-mdc-form-field"],
hostVars:38,hostBindings:function(a,b){a&2&&wg("mat-mdc-form-field-label-always-float",b._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",b._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",b._hasIconSuffix)("mat-form-field-invalid",b._control.errorState)("mat-form-field-disabled",b._control.disabled)("mat-form-field-autofilled",b._control.autofilled)("mat-form-field-appearance-fill",b.appearance=="fill")("mat-form-field-appearance-outline",b.appearance=="outline")("mat-form-field-hide-placeholder",
b._hasFloatingLabel()&&!b._shouldLabelFloat())("mat-primary",b.color!=="accent"&&b.color!=="warn")("mat-accent",b.color==="accent")("mat-warn",b.color==="warn")("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"))},inputs:{hideRequiredMarker:"hideRequiredMarker",
color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Gg([{provide:YOc,useExisting:SD},{provide:QOc,useExisting:SD}])],ngContentSelectors:"*;mat-label;[matPrefix], [matIconPrefix];[matTextPrefix];[matTextSuffix];[matSuffix], [matIconSuffix];mat-error, [matError];mat-hint:not([align='end']);mat-hint[align='end']".split(";"),decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",
""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",
""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(a,b){if(a&1){var c=t();bg(XOc);E(0,Tua,1,1,"ng-template",null,0,Mg);K(2,"div",
6,1);N("click",function(d){u(c);return v(b._control.onContainerClick(d))});F(4,Uua,1,0,"div",7);K(5,"div",8);F(6,Xua,2,2,"div",9);F(7,Yua,3,0,"div",10);F(8,Zua,3,0,"div",11);K(9,"div",12);F(10,ava,1,1,null,13);cg(11);L();F(12,bva,3,0,"div",14);F(13,cva,3,0,"div",15);L();F(14,dva,1,0,"div",16);L();K(15,"div",17);F(16,eva,2,0,"div",18)(17,gva,5,1,"div",19);L()}a&2&&(B(2),wg("mdc-text-field--filled",!b._hasOutline())("mdc-text-field--outlined",b._hasOutline())("mdc-text-field--no-label",!b._hasFloatingLabel())("mdc-text-field--disabled",
b._control.disabled)("mdc-text-field--invalid",b._control.errorState),B(2),G(b._hasOutline()||b._control.disabled?-1:4),B(2),G(b._hasOutline()?6:-1),B(),G(b._hasIconPrefix?7:-1),B(),G(b._hasTextPrefix?8:-1),B(2),G(!b._hasOutline()||b._forceDisplayInfixLabel()?10:-1),B(2),G(b._hasTextSuffix?12:-1),B(),G(b._hasIconSuffix?13:-1),B(),G(b._hasOutline()?-1:14),B(),wg("mat-mdc-form-field-subscript-dynamic-size",b.subscriptSizing==="dynamic"),a=b._getSubscriptMessageType(),B(),G(a==="error"?16:a==="hint"?
17:-1))},dependencies:[PD,RD,Sx,QD,JD],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}\n'],
encapsulation:2,changeDetection:0});var TD=function(){};TD.\u0275fac=function(a){return new (a||TD)};TD.\u0275mod=$e({type:TD});TD.\u0275inj=Fc({imports:[cz,SD,Ky]});var UD=function(){};UD.\u0275fac=function(a){return new (a||UD)};UD.\u0275mod=$e({type:UD});UD.\u0275inj=Fc({imports:[TD]});var $Oc=new dd("GM2_INPUT_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var VD=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};VD.\u0275fac=function(a){return new (a||VD)(Ve($Oc))};VD.\u0275dir=af({type:VD,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"gmat-mdc-input"],standalone:!1});var WD=function(){};WD.\u0275fac=function(a){return new (a||WD)};
WD.\u0275cmp=D({type:WD,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}\n"],encapsulation:2,
changeDetection:0});var aPc={passive:!0},XD=function(){this._platform=p(Vh);this._ngZone=p(Rg);this._renderer=p(Ye).createRenderer(null,null);this._styleLoader=p(Zh);this._monitoredElements=new Map};
XD.prototype.monitor=function(a){var b=this;if(!this._platform.isBrowser)return se;this._styleLoader.load(WD);var c=Nh(a);if(a=this._monitoredElements.get(c))return a.subject;var d=new qf,e=function(f){f.animationName!=="cdk-text-field-autofill-start"||c.classList.contains("cdk-text-field-autofilled")?f.animationName==="cdk-text-field-autofill-end"&&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})}))};a=this._ngZone.runOutsideAngular(function(){c.classList.add("cdk-text-field-autofill-monitored");return b._renderer.listen(c,"animationstart",e,aPc)});this._monitoredElements.set(c,{subject:d,unlisten:a});return d};
XD.prototype.stopMonitoring=function(a){a=Nh(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))};XD.prototype.ngOnDestroy=function(){var a=this;this._monitoredElements.forEach(function(b,c){return a.stopMonitoring(c)})};XD.\u0275fac=function(a){return new (a||XD)};XD.\u0275prov=Dc({token:XD,factory:XD.\u0275fac,providedIn:"root"});var YD=function(){var a=this;this._elementRef=p(Hd);this._platform=p(Vh);this._ngZone=p(Rg);this._renderer=p(ci);this._resizeEvents=new qf;this._destroyed=new qf;this._enabled=!0;this._previousMinRows=-1;this._document=p(Rh);this._isViewInited=!1;this._handleFocusEvent=function(b){a._hasFocus=b.type==="focus"};p(Zh).load(WD);this._textareaElement=this._elementRef.nativeElement};h=YD.prototype;
h._setMinHeight=function(){var a=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.minHeight=a)};h._setMaxHeight=function(){var a=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.maxHeight=a)};
h.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,bPc(this),this._ngZone.runOutsideAngular(function(){a._listenerCleanups=[a._renderer.listen("window","resize",function(){return a._resizeEvents.next()}),a._renderer.listen(a._textareaElement,"focus",a._handleFocusEvent),a._renderer.listen(a._textareaElement,"blur",a._handleFocusEvent)];a._resizeEvents.pipe(ff(16)).subscribe(function(){a._cachedLineHeight=a._cachedPlaceholderHeight=
void 0;bPc(a,!0)})}),this._isViewInited=!0,bPc(this,!0))};h.ngOnDestroy=function(){var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()});this._resizeEvents.complete();this._destroyed.next();this._destroyed.complete()};
h._cacheTextareaLineHeight=function(){if(!this._cachedLineHeight){var a=this._textareaElement.cloneNode(!1),b=a.style;a.rows=1;b.position="absolute";b.visibility="hidden";b.border="none";b.padding="0";b.height="";b.minHeight="";b.maxHeight="";b.top=b.bottom=b.left=b.right="auto";b.overflow="hidden";this._textareaElement.parentNode.appendChild(a);this._cachedLineHeight=a.clientHeight;a.remove();this._setMinHeight();this._setMaxHeight()}};
h._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};
h._cacheTextareaPlaceholderHeight=function(){if(this._isViewInited&&this._cachedPlaceholderHeight==void 0)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};h.ngDoCheck=function(){this._platform.isBrowser&&bPc(this)};
var bPc=function(a,b){b=b===void 0?!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(){typeof requestAnimationFrame!=="undefined"?requestAnimationFrame(function(){return a._scrollToCaretPosition(c)}):setTimeout(function(){return a._scrollToCaretPosition(c)})}),
a._previousValue=d,a._previousMinRows=a._minRows}};YD.prototype.reset=function(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)};YD.prototype._noopInputHandler=function(){};YD.prototype._scrollToCaretPosition=function(a){var b=a.selectionStart,c=a.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&a.setSelectionRange(b,c)};
da.Object.defineProperties(YD.prototype,{minRows:{configurable:!0,enumerable:!0,get:function(){return this._minRows},set:function(a){this._minRows=Oh(a);this._setMinHeight()}},maxRows:{configurable:!0,enumerable:!0,get:function(){return this._maxRows},set:function(a){this._maxRows=Oh(a);this._setMaxHeight()}},enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){this._enabled!==a&&((this._enabled=a)?bPc(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()}}});YD.\u0275fac=function(a){return new (a||YD)};
YD.\u0275dir=af({type:YD,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(a){a&1&&N("input",function(){})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",$g],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var ZD=function(){};ZD.\u0275fac=function(a){return new (a||ZD)};ZD.\u0275mod=$e({type:ZD});ZD.\u0275inj=Fc({});var $D=function(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(){};this.onTouched=function(){}};$D.prototype.setProperty=function(a,b){this._renderer.setProperty(this._elementRef.nativeElement,a,b)};$D.prototype.registerOnTouched=function(a){this.onTouched=a};$D.prototype.registerOnChange=function(a){this.onChange=a};$D.prototype.setDisabledState=function(a){this.setProperty("disabled",a)};$D.\u0275fac=function(a){return new (a||$D)(Ve(ci),Ve(Hd))};$D.\u0275dir=af({type:$D});
var yj=function(){$D.apply(this,arguments)};Y(yj,$D);yj.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(yj)))(b||yj)}}();yj.\u0275dir=af({type:yj,features:[Ef]});var aE=new dd("");var cPc={provide:aE,useExisting:Vc(function(){return xj}),multi:!0},dPc=new dd(""),xj=function(a,b,c){$D.call(this,a,b);this._compositionMode=c;this._composing=!1;this._compositionMode==null&&(this._compositionMode=!/android (\d+)/.test((Jl?window.navigator.userAgent:"").toLowerCase()))};Y(xj,$D);xj.prototype.writeValue=function(a){this.setProperty("value",a==null?"":a)};xj.prototype._handleInput=function(a){if(!this._compositionMode||this._compositionMode&&!this._composing)this.onChange(a)};
xj.prototype._compositionStart=function(){this._composing=!0};xj.prototype._compositionEnd=function(a){this._composing=!1;this._compositionMode&&this.onChange(a)};xj.\u0275fac=function(a){return new (a||xj)(Ve(ci),Ve(Hd),Ve(dPc,8))};
xj.\u0275dir=af({type:xj,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&&N("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)})},standalone:!1,features:[Gg([cPc]),Ef]});var bE=new dd(""),ePc=new dd(""),vj=function(a){return lva(a)};var cE=function(){this._rawValidators=[];this._rawAsyncValidators=[];this._onDestroyCallbacks=[]};h=cE.prototype;h._setValidators=function(a){this._rawValidators=a||[];this._composedValidatorFn=vva(this._rawValidators)};h._setAsyncValidators=function(a){this._rawAsyncValidators=a||[];this._composedAsyncValidatorFn=xva(this._rawAsyncValidators)};h._registerOnDestroy=function(a){this._onDestroyCallbacks.push(a)};
h._invokeOnDestroyCallbacks=function(){this._onDestroyCallbacks.forEach(function(a){return a()});this._onDestroyCallbacks=[]};h.reset=function(a){this.control&&this.control.reset(a)};h.hasError=function(a,b){return this.control?this.control.hasError(a,b):!1};h.getError=function(a,b){return this.control?this.control.getError(a,b):null};
da.Object.defineProperties(cE.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 dE=function(){cE.apply(this,arguments);this.valueAccessor=this.name=this._parent=null};Y(dE,cE);var eE=function(){cE.apply(this,arguments)};Y(eE,cE);da.Object.defineProperties(eE.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return null}},path:{configurable:!0,enumerable:!0,get:function(){return null}}});var fPc=function(a){this._cd=a};
da.Object.defineProperties(fPc.prototype,{isTouched:{configurable:!0,enumerable:!0,get:function(){var a,b,c;(a=this._cd)==null||(b=a.control)==null||(c=b._touched)==null||c.call(b);var d,e;return!!((d=this._cd)==null?0:(e=d.control)==null?0:e.touched)}},isUntouched:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==null?0:(b=a.control)==null?0:b.untouched)}},isPristine:{configurable:!0,enumerable:!0,get:function(){var a,b,c;(a=this._cd)==null||(b=a.control)==null||(c=b._pristine)==
null||c.call(b);var d,e;return!!((d=this._cd)==null?0:(e=d.control)==null?0:e.pristine)}},isDirty:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==null?0:(b=a.control)==null?0:b.dirty)}},isValid:{configurable:!0,enumerable:!0,get:function(){var a,b,c;(a=this._cd)==null||(b=a.control)==null||(c=b._status)==null||c.call(b);var d,e;return!!((d=this._cd)==null?0:(e=d.control)==null?0:e.valid)}},isInvalid:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==
null?0:(b=a.control)==null?0:b.invalid)}},isPending:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==null?0:(b=a.control)==null?0:b.pending)}},isSubmitted:{configurable:!0,enumerable:!0,get:function(){var a,b;(a=this._cd)==null||(b=a._submitted)==null||b.call(a);var c;return!((c=this._cd)==null||!c.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 fE=function(a){this._cd=a};Y(fE,fPc);fE.\u0275fac=function(a){return new (a||fE)(Ve(dE,2))};
fE.\u0275dir=af({type:fE,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(a,b){a&2&&wg("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)},standalone:!1,features:[Ef]});var gE=function(a){this._cd=a};Y(gE,fPc);gE.\u0275fac=function(a){return new (a||gE)(Ve(eE,10))};
gE.\u0275dir=af({type:gE,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(a,b){a&2&&wg("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)},standalone:!1,features:[Ef]});var gPc=new dd("",{providedIn:"root",factory:function(){return"whenDisabledForLegacyCode"}});var hE=function(){},hPc=function(a,b){this.value=a;this.source=b};Y(hPc,hE);var iPc=function(a,b){this.pristine=a;this.source=b};Y(iPc,hE);var jPc=function(a,b){this.touched=a;this.source=b};Y(jPc,hE);var kPc=function(a,b){this.status=a;this.source=b};Y(kPc,hE);var lPc=function(a){this.source=a};Y(lPc,hE);var mPc=function(a){this.source=a};Y(mPc,hE);
var iE=function(a,b){var c=this;this._pendingDirty=!1;this._hasOwnPendingAsyncValidator=null;this._pendingTouched=!1;this._onCollectionChange=function(){};this._parent=null;this._status=Zg.apply(null,[function(){return c.statusReactive()}].concat(q([])));this.statusReactive=ng.apply(null,[void 0].concat(q([])));this._pristine=Zg.apply(null,[function(){return c.pristineReactive()}].concat(q([])));this.pristineReactive=ng.apply(null,[!0].concat(q([])));this._touched=Zg.apply(null,[function(){return c.touchedReactive()}].concat(q([])));
this.touchedReactive=ng.apply(null,[!1].concat(q([])));this._events=new qf;this.events=this._events.asObservable();this._onDisabledChange=[];this._assignValidators(a);this._assignAsyncValidators(b)},Lva=function(a,b){a._assignValidators(b)},Mva=function(a,b){a._assignAsyncValidators(b)},tma=function(a,b){b=b===void 0?{}:b;var c=a.touched===!1;a.touched=!0;var d,e=(d=b.sourceControl)!=null?d:a;a._parent&&!b.onlySelf&&tma(a._parent,Object.assign({},b,{sourceControl:e}));c&&b.emitEvent!==!1&&a._events.next(new jPc(!0,
e))},nPc=function(a,b){b=b===void 0?{}:b;var c=a.touched===!0;a.touched=!1;a._pendingTouched=!1;var d,e=(d=b.sourceControl)!=null?d:a;a._forEachChild(function(f){nPc(f,{onlySelf:!0,emitEvent:b.emitEvent,sourceControl:e})});a._parent&&!b.onlySelf&&a._parent._updateTouched(b,e);c&&b.emitEvent!==!1&&a._events.next(new jPc(!1,e))},sma=function(a,b){b=b===void 0?{}:b;var c=a.pristine===!0;a.pristine=!1;var d,e=(d=b.sourceControl)!=null?d:a;a._parent&&!b.onlySelf&&sma(a._parent,Object.assign({},b,{sourceControl:e}));
c&&b.emitEvent!==!1&&a._events.next(new iPc(!1,e))},oPc=function(a,b){b=b===void 0?{}:b;var c=a.pristine===!1;a.pristine=!0;a._pendingDirty=!1;var d,e=(d=b.sourceControl)!=null?d:a;a._forEachChild(function(f){oPc(f,{onlySelf:!0,emitEvent:b.emitEvent})});a._parent&&!b.onlySelf&&a._parent._updatePristine(b,e);c&&b.emitEvent!==!1&&a._events.next(new iPc(!0,e))};h=iE.prototype;
h.disable=function(a){a=a===void 0?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="DISABLED";this.errors=null;this._forEachChild(function(e){e.disable(Object.assign({},a,{onlySelf:!0}))});this._updateValue();var c,d=(c=a.sourceControl)!=null?c:this;a.emitEvent!==!1&&(this._events.next(new hPc(this.value,d)),this._events.next(new kPc(this.status,d)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status));this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}),this);
this._onDisabledChange.forEach(function(e){return e(!0)})};h.enable=function(a){a=a===void 0?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="VALID";this._forEachChild(function(c){c.enable(Object.assign({},a,{onlySelf:!0}))});wj(this,{onlySelf:!0,emitEvent:a.emitEvent});this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}),this);this._onDisabledChange.forEach(function(c){return c(!1)})};
h._updateAncestors=function(a,b){this._parent&&!a.onlySelf&&(wj(this._parent,a),a.skipPristineCheck||this._parent._updatePristine({},b),this._parent._updateTouched({},b))};h.setParent=function(a){this._parent=a};h.getRawValue=function(){return this.value};
var wj=function(a,b){b=b===void 0?{}:b;a._setInitialStatus();a._updateValue();if(a.enabled){var c=a._cancelExistingSubscription();a.errors=a._runValidator();a.status=a._calculateStatus();a.status!=="VALID"&&a.status!=="PENDING"||a._runAsyncValidator(c,b.emitEvent)}var d;c=(d=b.sourceControl)!=null?d:a;b.emitEvent!==!1&&(a._events.next(new hPc(a.value,c)),a._events.next(new kPc(a.status,c)),a.valueChanges.emit(a.value),a.statusChanges.emit(a.status));a._parent&&!b.onlySelf&&wj(a._parent,Object.assign({},
b,{sourceControl:c}))};h=iE.prototype;h._updateTreeValidity=function(a){a=a===void 0?{emitEvent:!0}:a;this._forEachChild(function(b){return b._updateTreeValidity(a)});wj(this,{onlySelf:!0,emitEvent:a.emitEvent})};h._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"};h._runValidator=function(){return this.validator?this.validator(this):null};
h._runAsyncValidator=function(a,b){var c=this;this.asyncValidator&&(this.status="PENDING",this._hasOwnPendingAsyncValidator={emitEvent:b!==!1,shouldHaveEmitted:a!==!1},this._asyncValidationSubscription=qva(this.asyncValidator(this)).subscribe(function(d){c._hasOwnPendingAsyncValidator=null;c.setErrors(d,{emitEvent:b,shouldHaveEmitted:a})}))};
h._cancelExistingSubscription=function(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();var a,b,c,d=(c=((a=this._hasOwnPendingAsyncValidator)==null?void 0:a.emitEvent)||((b=this._hasOwnPendingAsyncValidator)==null?void 0:b.shouldHaveEmitted))!=null?c:!1;this._hasOwnPendingAsyncValidator=null;return d}return!1};h.setErrors=function(a,b){b=b===void 0?{}:b;this.errors=a;this._updateControlsErrors(b.emitEvent!==!1,this,b.shouldHaveEmitted)};
h.get=function(a){if(a==null)return null;Array.isArray(a)||(a=a.split("."));return a.length===0?null:a.reduce(function(b,c){return b&&b._find(c)},this)};h.getError=function(a,b){return(b=b?this.get(b):this)&&b.errors?b.errors[a]:null};h.hasError=function(a,b){return!!this.getError(a,b)};
h._updateControlsErrors=function(a,b,c){this.status=this._calculateStatus();a&&this.statusChanges.emit(this.status);(a||c)&&this._events.next(new kPc(this.status,b));this._parent&&this._parent._updateControlsErrors(a,b,c)};h._initObservables=function(){this.valueChanges=new Ti;this.statusChanges=new Ti};
h._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"};h._anyControlsHaveStatus=function(a){return this._anyControls(function(b){return b.status===a})};h._anyControlsDirty=function(){return this._anyControls(function(a){return a.dirty})};h._anyControlsTouched=function(){return this._anyControls(function(a){return a.touched})};
h._updatePristine=function(a,b){var c=!this._anyControlsDirty(),d=this.pristine!==c;this.pristine=c;this._parent&&!a.onlySelf&&this._parent._updatePristine(a,b);d&&this._events.next(new iPc(this.pristine,b))};h._updateTouched=function(a,b){a=a===void 0?{}:a;this.touched=this._anyControlsTouched();this._events.next(new jPc(this.touched,b));this._parent&&!a.onlySelf&&this._parent._updateTouched(a,b)};h._registerOnCollectionChange=function(a){this._onCollectionChange=a};
h._setUpdateStrategy=function(a){zj(a)&&a.updateOn!=null&&(this._updateOn=a.updateOn)};h._parentMarkedDirty=function(a){var b=this._parent&&this._parent.dirty;return!a&&!!b&&!this._parent._anyControlsDirty()};h._find=function(){return null};h._assignValidators=function(a){a=this._rawValidators=Array.isArray(a)?a.slice():a;this._composedValidatorFn=Array.isArray(a)?vva(a):a||null};
h._assignAsyncValidators=function(a){a=this._rawAsyncValidators=Array.isArray(a)?a.slice():a;this._composedAsyncValidatorFn=Array.isArray(a)?xva(a):a||null};
da.Object.defineProperties(iE.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}},status:{configurable:!0,enumerable:!0,get:function(){return Oc(this.statusReactive)},
set:function(a){var b=this;Oc(function(){return b.statusReactive.set(a)})}},valid:{configurable:!0,enumerable:!0,get:function(){return this.status==="VALID"}},invalid:{configurable:!0,enumerable:!0,get:function(){return this.status==="INVALID"}},pending:{configurable:!0,enumerable:!0,get:function(){return this.status=="PENDING"}},disabled:{configurable:!0,enumerable:!0,get:function(){return this.status==="DISABLED"}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.status!=="DISABLED"}},
pristine:{configurable:!0,enumerable:!0,get:function(){return Oc(this.pristineReactive)},set:function(a){var b=this;Oc(function(){return b.pristineReactive.set(a)})}},dirty:{configurable:!0,enumerable:!0,get:function(){return!this.pristine}},touched:{configurable:!0,enumerable:!0,get:function(){return Oc(this.touchedReactive)},set:function(a){var b=this;Oc(function(){return b.touchedReactive.set(a)})}},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 jE=function(a,b,c){iE.call(this,(zj(b)?b.validators:b)||null,(zj(b)?b.asyncValidators:c)||null);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();wj(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};Y(jE,iE);var pPc=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};h=jE.prototype;
h.addControl=function(a){var b=b===void 0?{}:b;pPc(this,a);wj(this,{emitEvent:b.emitEvent});this._onCollectionChange()};h.removeControl=function(a){var b=b===void 0?{}:b;this.controls[a]&&this.controls[a]._registerOnCollectionChange(function(){});delete this.controls[a];wj(this,{emitEvent:b.emitEvent});this._onCollectionChange()};h.contains=function(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled};
h.setValue=function(a,b){var c=this;b=b===void 0?{}:b;Sva(this,a);Object.keys(a).forEach(function(d){Rva(c,!0,d);c.controls[d].setValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});wj(this,b)};h.patchValue=function(a,b){var c=this;b=b===void 0?{}:b;a!=null&&(Object.keys(a).forEach(function(d){var e=c.controls[d];e&&e.patchValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})}),wj(this,b))};
h.reset=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;this._forEachChild(function(d,e){d.reset(a?a[e]:null,Object.assign({},b,{onlySelf:!0}))});this._updatePristine(b,this);this._updateTouched(b,this);wj(this,b);var c;((c=b)==null?void 0:c.emitEvent)!==!1&&this._events.next(new mPc(this))};h.getRawValue=function(){return this._reduceChildren({},function(a,b,c){a[c]=b.getRawValue();return a})};
h._syncPendingControls=function(){var a=this._reduceChildren(!1,function(b,c){return c._syncPendingControls()?!0:b});a&&wj(this,{onlySelf:!0});return a};h._forEachChild=function(a){var b=this;Object.keys(this.controls).forEach(function(c){var d=b.controls[c];d&&a(d,c)})};h._setUpControls=function(){var a=this;this._forEachChild(function(b){b.setParent(a);b._registerOnCollectionChange(a._onCollectionChange)})};h._updateValue=function(){this.value=this._reduceValue()};
h._anyControls=function(a){for(var b=m(Object.entries(this.controls)),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;if(this.contains(c)&&a(d))return!0}return!1};h._reduceValue=function(){var a=this;return this._reduceChildren({},function(b,c,d){if(c.enabled||a.disabled)b[d]=c.value;return b})};h._reduceChildren=function(a,b){var c=a;this._forEachChild(function(d,e){c=b(c,d,e)});return c};
h._allControlsDisabled=function(){for(var a=m(Object.keys(this.controls)),b=a.next();!b.done;b=a.next())if(this.controls[b.value].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled};h._find=function(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null};var qPc=function(){jE.apply(this,arguments)};Y(qPc,jE);var rPc={provide:eE,useExisting:Vc(function(){return kE})},sPc=Promise.resolve(),kE=function(a,b,c){eE.call(this);var d=this;this.callSetDisabledState=c;this._submitted=Zg.apply(null,[function(){return d.submittedReactive()}].concat(q([])));this.submittedReactive=ng.apply(null,[!1].concat(q([])));this._directives=new Set;this.ngSubmit=new Ti;this.form=new jE({},vva(a),xva(b))};Y(kE,eE);h=kE.prototype;h.ngAfterViewInit=function(){this._setUpdateStrategy()};
h.addControl=function(a){var b=this;sPc.then(function(){var c=b._findContainer(a.path);a.control=pPc(c,a.name,a.control);Hva(a.control,a,b.callSetDisabledState);wj(a.control,{emitEvent:!1});b._directives.add(a)})};h.removeControl=function(a){var b=this;sPc.then(function(){var c=b._findContainer(a.path);c&&c.removeControl(a.name);b._directives.delete(a)})};h.updateModel=function(a,b){var c=this;sPc.then(function(){c.form.get(a.path).setValue(b)})};h.setValue=function(a){this.control.setValue(a)};
h.onSubmit=function(a){this.submittedReactive.set(!0);Pva(this.form,this._directives);this.ngSubmit.emit(a);this.form._events.next(new lPc(this.control));var b;return(a==null?void 0:(b=a.target)==null?void 0:b.method)==="dialog"};h.onReset=function(){this.resetForm()};h.resetForm=function(a){this.form.reset(a);this.submittedReactive.set(!1)};h._setUpdateStrategy=function(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)};
h._findContainer=function(a){a.pop();return a.length?this.form.get(a):this.form};da.Object.defineProperties(kE.prototype,{submitted:{configurable:!0,enumerable:!0,get:function(){return Oc(this.submittedReactive)}},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}}});
kE.\u0275fac=function(a){return new (a||kE)(Ve(bE,10),Ve(ePc,10),Ve(gPc,8))};kE.\u0275dir=af({type:kE,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(a,b){a&1&&N("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Gg([rPc]),Ef]});var lE=function(a,b,c){a=a===void 0?null:a;iE.call(this,(zj(b)?b.validators:b)||null,(zj(b)?b.asyncValidators:c)||null);this.defaultValue=null;this._onChange=[];this._pendingChange=!1;this._applyFormState(a);this._setUpdateStrategy(b);this._initObservables();wj(this,{onlySelf:!0,emitEvent:!!this.asyncValidator});zj(b)&&(b.nonNullable||b.initialValueIsDefault)&&(Tva(a)?this.defaultValue=a.value:this.defaultValue=a)};Y(lE,iE);h=lE.prototype;
h.setValue=function(a,b){var c=this;b=b===void 0?{}:b;this.value=this._pendingValue=a;this._onChange.length&&b.emitModelToViewChange!==!1&&this._onChange.forEach(function(d){return d(c.value,b.emitViewToModelChange!==!1)});wj(this,b)};h.patchValue=function(a,b){b=b===void 0?{}:b;this.setValue(a,b)};
h.reset=function(a,b){a=a===void 0?this.defaultValue:a;b=b===void 0?{}:b;this._applyFormState(a);oPc(this,b);nPc(this,b);this.setValue(this.value,b);b.overwriteDefaultValue&&(this.defaultValue=this.value);this._pendingChange=!1;var c;((c=b)==null?void 0:c.emitEvent)!==!1&&this._events.next(new mPc(this))};h._updateValue=function(){};h._anyControls=function(){return!1};h._allControlsDisabled=function(){return this.disabled};h.registerOnChange=function(a){this._onChange.push(a)};
h._unregisterOnChange=function(a){var b=this._onChange;a=b.indexOf(a);a>-1&&b.splice(a,1)};h._unregisterOnDisabledChange=function(a){var b=this._onDisabledChange;a=b.indexOf(a);a>-1&&b.splice(a,1)};h._forEachChild=function(){};h._syncPendingControls=function(){return this.updateOn==="submit"&&(this._pendingDirty&&sma(this),this._pendingTouched&&tma(this),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1};
h._applyFormState=function(a){Tva(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 tPc={provide:dE,useExisting:Vc(function(){return mE})},uPc=Promise.resolve(),mE=function(a,b,c,d,e,f){dE.call(this);this._changeDetectorRef=e;this.callSetDisabledState=f;this.control=new lE;this._registered=!1;this.name="";this.update=new Ti;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=Qva(d)};Y(mE,dE);h=mE.prototype;
h.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);Ova(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)};h.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};
h.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};h._setUpControl=function(){this._setUpdateStrategy();this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this);this._registered=!0};h._setUpdateStrategy=function(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)};h._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)};
h._setUpStandalone=function(){Hva(this.control,this,this.callSetDisabledState);wj(this.control,{emitEvent:!1})};h._checkForErrors=function(){this._checkName()};h._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name)};h._updateValue=function(a){var b=this;uPc.then(function(){b.control.setValue(a,{emitViewToModelChange:!1});var c;(c=b._changeDetectorRef)==null||c.markForCheck()})};
h._updateDisabled=function(a){var b=this;a=a.isDisabled.currentValue;var c=a!==0&&$g(a);uPc.then(function(){c&&!b.control.disabled?b.control.disable():!c&&b.control.disabled&&b.control.enable();var d;(d=b._changeDetectorRef)==null||d.markForCheck()})};h._getPath=function(a){return this._parent?Bva(a,this._parent):[a]};
da.Object.defineProperties(mE.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}}});mE.\u0275fac=function(a){return new (a||mE)(Ve(eE,9),Ve(bE,10),Ve(ePc,10),Ve(aE,10),Ve(Cx,8),Ve(gPc,8))};
mE.\u0275dir=af({type:mE,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Gg([tPc]),Ef,jx]});var nE=function(){};nE.\u0275fac=function(a){return new (a||nE)};nE.\u0275dir=af({type:nE,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1});var vPc={provide:aE,useExisting:Vc(function(){return oE}),multi:!0},oE=function(){yj.apply(this,arguments)};Y(oE,yj);oE.prototype.writeValue=function(a){this.setProperty("value",a==null?"":a)};oE.prototype.registerOnChange=function(a){this.onChange=function(b){a(b==""?null:parseFloat(b))}};oE.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(oE)))(b||oE)}}();
oE.\u0275dir=af({type:oE,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(a,b){a&1&&N("input",function(c){return b.onChange(c.target.value)})("blur",function(){return b.onTouched()})},standalone:!1,features:[Gg([vPc]),Ef]});var wPc={provide:aE,useExisting:Vc(function(){return pE}),multi:!0},qE=function(){this._accessors=[]};qE.prototype.add=function(a,b){this._accessors.push([a,b])};qE.prototype.remove=function(a){for(var b=this._accessors.length-1;b>=0;--b)if(this._accessors[b][1]===a){this._accessors.splice(b,1);break}};qE.prototype.select=function(a){var b=this;this._accessors.forEach(function(c){b._isSameGroup(c,a)&&c[1]!==a&&c[1].writeValue(a.value)})};
qE.prototype._isSameGroup=function(a,b){return a[0].control?a[0]._parent===b._control._parent&&a[1].name===b.name:!1};qE.\u0275fac=function(a){return new (a||qE)};qE.\u0275prov=Dc({token:qE,factory:qE.\u0275fac,providedIn:"root"});var pE=function(a,b,c,d){yj.call(this,a,b);this._registry=c;this._injector=d;this.setDisabledStateFired=!1;this.onChange=function(){};var e;this.callSetDisabledState=(e=p(gPc,{optional:!0}))!=null?e:"whenDisabledForLegacyCode"};Y(pE,yj);h=pE.prototype;
h.ngOnInit=function(){this._control=this._injector.get(dE);this._checkName();this._registry.add(this._control,this)};h.ngOnDestroy=function(){this._registry.remove(this)};h.writeValue=function(a){this._state=a===this.value;this.setProperty("checked",this._state)};h.registerOnChange=function(a){var b=this;this._fn=a;this.onChange=function(){a(b.value);b._registry.select(b)}};
h.setDisabledState=function(a){(this.setDisabledStateFired||a||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",a);this.setDisabledStateFired=!0};h._checkName=function(){!this.name&&this.formControlName&&(this.name=this.formControlName)};pE.\u0275fac=function(a){return new (a||pE)(Ve(ci),Ve(Hd),Ve(qE),Ve(ye))};
pE.\u0275dir=af({type:pE,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(a,b){a&1&&N("change",function(){return b.onChange()})("blur",function(){return b.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[Gg([wPc]),Ef]});var rE=function(a,b,c){eE.call(this);var d=this;this.callSetDisabledState=c;this._submitted=Zg.apply(null,[function(){return d._submittedReactive()}].concat(q([])));this._submittedReactive=ng.apply(null,[!1].concat(q([])));this._onCollectionChange=function(){return d._updateDomValue()};this.directives=[];this._setValidators(a);this._setAsyncValidators(b)};Y(rE,eE);h=rE.prototype;h.ngOnChanges=function(a){this.onChanges(a)};h.ngOnDestroy=function(){this.onDestroy()};
h.onChanges=function(a){a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)};h.onDestroy=function(){this.form&&(Iva(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))};h.addControl=function(a){var b=this.form.get(a.path);Hva(b,a,this.callSetDisabledState);wj(b,{emitEvent:!1});this.directives.push(a);return b};
h.removeControl=function(a){Jva(a.control||null,a);var b=this.directives;a=b.indexOf(a);a>-1&&b.splice(a,1)};h.updateModel=function(a,b){this.form.get(a.path).setValue(b)};h.onReset=function(){this.resetForm()};h.resetForm=function(a,b){b=b===void 0?{}:b;this.form.reset(a,b);this._submittedReactive.set(!1)};
h.onSubmit=function(a){this.submitted=!0;Pva(this.form,this.directives);this.ngSubmit.emit(a);this.form._events.next(new lPc(this.control));var b;return(a==null?void 0:(b=a.target)==null?void 0:b.method)==="dialog"};h._updateDomValue=function(){var a=this;this.directives.forEach(function(b){var c=b.control,d=a.form.get(b.path);c!==d&&(Jva(c||null,b),d instanceof lE&&(Hva(d,b,a.callSetDisabledState),b.control=d))});this.form._updateTreeValidity({emitEvent:!1})};
h._setUpFormContainer=function(a){var b=this.form.get(a.path);Cva(b,a);wj(b,{emitEvent:!1})};h._cleanUpFormContainer=function(a){if(this.form){var b=this.form.get(a.path);b&&Iva(b,a)&&wj(b,{emitEvent:!1})}};h._updateRegistrations=function(){this.form._registerOnCollectionChange(this._onCollectionChange);this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})};h._updateValidators=function(){Cva(this.form,this);this._oldForm&&Iva(this._oldForm,this)};h._checkFormPresent=function(){};
da.Object.defineProperties(rE.prototype,{submitted:{configurable:!0,enumerable:!0,get:function(){return Oc(this._submittedReactive)},set:function(a){this._submittedReactive.set(a)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this}},path:{configurable:!0,enumerable:!0,get:function(){return[]}}});rE.\u0275fac=function(a){return new (a||rE)(Ve(bE,10),Ve(ePc,10),Ve(gPc,8))};rE.\u0275dir=af({type:rE,features:[Ef,jx]});var xPc=function(a,b,c){iE.call(this,(zj(b)?b.validators:b)||null,(zj(b)?b.asyncValidators:c)||null);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();wj(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};Y(xPc,iE);h=xPc.prototype;h.at=function(a){return this.controls[this._adjustIndex(a)]};
h.push=function(a,b){var c=this;b=b===void 0?{}:b;Array.isArray(a)?a.forEach(function(d){c.controls.push(d);c._registerControl(d)}):(this.controls.push(a),this._registerControl(a));wj(this,{emitEvent:b.emitEvent});this._onCollectionChange()};h.insert=function(a,b,c){c=c===void 0?{}:c;this.controls.splice(a,0,b);this._registerControl(b);wj(this,{emitEvent:c.emitEvent})};
h.setValue=function(a,b){var c=this;b=b===void 0?{}:b;Sva(this,a);a.forEach(function(d,e){Rva(c,!1,e);c.at(e).setValue(d,{onlySelf:!0,emitEvent:b.emitEvent})});wj(this,b)};h.patchValue=function(a,b){var c=this;b=b===void 0?{}:b;a!=null&&(a.forEach(function(d,e){c.at(e)&&c.at(e).patchValue(d,{onlySelf:!0,emitEvent:b.emitEvent})}),wj(this,b))};
h.reset=function(a,b){a=a===void 0?[]:a;b=b===void 0?{}:b;this._forEachChild(function(d,e){d.reset(a[e],Object.assign({},b,{onlySelf:!0}))});this._updatePristine(b,this);this._updateTouched(b,this);wj(this,b);var c;((c=b)==null?void 0:c.emitEvent)!==!1&&this._events.next(new mPc(this))};h.getRawValue=function(){return this.controls.map(function(a){return a.getRawValue()})};
h.clear=function(a){a=a===void 0?{}:a;this.controls.length<1||(this._forEachChild(function(b){return b._registerOnCollectionChange(function(){})}),this.controls.splice(0),wj(this,{emitEvent:a.emitEvent}))};h._adjustIndex=function(a){return a<0?a+this.length:a};h._syncPendingControls=function(){var a=this.controls.reduce(function(b,c){return c._syncPendingControls()?!0:b},!1);a&&wj(this,{onlySelf:!0});return a};h._forEachChild=function(a){this.controls.forEach(function(b,c){a(b,c)})};
h._updateValue=function(){var a=this;this.value=this.controls.filter(function(b){return b.enabled||a.disabled}).map(function(b){return b.value})};h._anyControls=function(a){return this.controls.some(function(b){return b.enabled&&a(b)})};h._setUpControls=function(){var a=this;this._forEachChild(function(b){return a._registerControl(b)})};h._allControlsDisabled=function(){for(var a=m(this.controls),b=a.next();!b.done;b=a.next())if(b.value.enabled)return!1;return this.controls.length>0||this.disabled};
h._registerControl=function(a){a.setParent(this);a._registerOnCollectionChange(this._onCollectionChange)};h._find=function(a){var b;return(b=this.at(a))!=null?b:null};da.Object.defineProperties(xPc.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.controls.length}}});var yPc=new dd(""),zPc={provide:dE,useExisting:Vc(function(){return sE})},sE=function(a,b,c,d,e){dE.call(this);this._ngModelWarningConfig=d;this.callSetDisabledState=e;this.update=new Ti;this._ngModelWarningSent=!1;this._setValidators(a);this._setAsyncValidators(b);this.valueAccessor=Qva(c)};Y(sE,dE);
sE.prototype.ngOnChanges=function(a){if(this._isControlChanged(a)){var b=a.form.previousValue;b&&Jva(b,this);Hva(this.form,this,this.callSetDisabledState);wj(this.form,{emitEvent:!1})}Ova(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)};sE.prototype.ngOnDestroy=function(){this.form&&Jva(this.form,this)};sE.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};sE.prototype._isControlChanged=function(a){return a.hasOwnProperty("form")};
da.Object.defineProperties(sE.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}}});sE._ngModelWarningSentOnce=!1;sE.\u0275fac=function(a){return new (a||sE)(Ve(bE,10),Ve(ePc,10),Ve(aE,10),Ve(yPc,8),Ve(gPc,8))};
sE.\u0275dir=af({type:sE,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Gg([zPc]),Ef,jx]});var APc={provide:dE,useExisting:Vc(function(){return tE})},tE=function(a,b,c,d,e){dE.call(this);this._ngModelWarningConfig=e;this._added=!1;this.name=null;this.update=new Ti;this._ngModelWarningSent=!1;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=Qva(d)};Y(tE,dE);tE.prototype.ngOnChanges=function(a){this._added||this._setUpControl();Ova(a,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))};
tE.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};tE.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};tE.prototype._setUpControl=function(){this.control=this.formDirective.addControl(this);this._added=!0};
da.Object.defineProperties(tE.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return Bva(this.name==null?this.name:this.name.toString(),this._parent)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});tE._ngModelWarningSentOnce=!1;tE.\u0275fac=function(a){return new (a||tE)(Ve(eE,13),Ve(bE,10),Ve(ePc,10),Ve(aE,10),Ve(yPc,8))};
tE.\u0275dir=af({type:tE,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Gg([APc]),Ef,jx]});var BPc={provide:eE,useExisting:Vc(function(){return uE})},uE=function(){rE.apply(this,arguments);this.form=null;this.ngSubmit=new Ti};Y(uE,rE);da.Object.defineProperties(uE.prototype,{control:{configurable:!0,enumerable:!0,get:function(){return this.form}}});uE.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(uE)))(b||uE)}}();
uE.\u0275dir=af({type:uE,selectors:[["","formGroup",""]],hostBindings:function(a,b){a&1&&N("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Gg([BPc]),Ef]});var vE=function(){this._validator=nva};vE.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):nva,this._onChange&&this._onChange())};vE.prototype.validate=function(a){return this._validator(a)};vE.prototype.registerOnValidatorChange=function(a){this._onChange=a};vE.prototype.enabled=function(a){return a!=null};vE.\u0275fac=function(a){return new (a||vE)};
vE.\u0275dir=af({type:vE,features:[jx]});var CPc={provide:bE,useExisting:Vc(function(){return wE}),multi:!0},wE=function(){vE.apply(this,arguments);this.inputName="max";this.normalizeInput=function(a){return typeof a==="number"?a:parseFloat(a)};this.createValidator=function(a){return kva(a)}};Y(wE,vE);wE.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(wE)))(b||wE)}}();
wE.\u0275dir=af({type:wE,selectors:["input type number max  formControlName ".split(" "),"input type number max  formControl ".split(" "),"input type number max  ngModel ".split(" ")],hostVars:1,hostBindings:function(a,b){a&2&&If("max",b._enabled?b.max:null)},inputs:{max:"max"},standalone:!1,features:[Gg([CPc]),Ef]});
var DPc={provide:bE,useExisting:Vc(function(){return xE}),multi:!0},xE=function(){vE.apply(this,arguments);this.inputName="min";this.normalizeInput=function(a){return typeof a==="number"?a:parseFloat(a)};this.createValidator=function(a){return jva(a)}};Y(xE,vE);xE.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(xE)))(b||xE)}}();
xE.\u0275dir=af({type:xE,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&&If("min",b._enabled?b.min:null)},inputs:{min:"min"},standalone:!1,features:[Gg([DPc]),Ef]});var EPc={provide:bE,useExisting:Vc(function(){return yE}),multi:!0},yE=function(){vE.apply(this,arguments);this.inputName="required";this.normalizeInput=$g;this.createValidator=function(){return lva}};
Y(yE,vE);yE.prototype.enabled=function(a){return a};yE.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(yE)))(b||yE)}}();yE.\u0275dir=af({type:yE,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(a,b){a&2&&If("required",b._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Gg([EPc]),Ef]});
var FPc={provide:bE,useExisting:Vc(function(){return zE}),multi:!0},zE=function(){vE.apply(this,arguments);this.inputName="maxlength";this.normalizeInput=function(a){return typeof a==="number"?a:parseInt(a,10)};this.createValidator=function(a){return mva(a)}};Y(zE,vE);zE.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(zE)))(b||zE)}}();
zE.\u0275dir=af({type:zE,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&If("maxlength",b._enabled?b.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Gg([FPc]),Ef]});
var GPc={provide:bE,useExisting:Vc(function(){return AE}),multi:!0},AE=function(){vE.apply(this,arguments);this.inputName="pattern";this.normalizeInput=function(a){return a};this.createValidator=function(a){return ova(a)}};Y(AE,vE);AE.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(AE)))(b||AE)}}();
AE.\u0275dir=af({type:AE,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&If("pattern",b._enabled?b.pattern:null)},inputs:{pattern:"pattern"},standalone:!1,features:[Gg([GPc]),Ef]});var BE=function(){};BE.\u0275fac=function(a){return new (a||BE)};BE.\u0275mod=$e({type:BE});BE.\u0275inj=Fc({});var CE=function(){this.useNonNullable=!1};h=CE.prototype;h.group=function(a,b){b=b===void 0?null:b;a=this._reduceControls(a);var c={};Uva(b)?c=b:b!==null&&(c.validators=b.validator,c.asyncValidators=b.asyncValidator);return new jE(a,c)};h.record=function(a,b){b=b===void 0?null:b;a=this._reduceControls(a);return new qPc(a,b)};h.control=function(a,b,c){var d={};if(!this.useNonNullable)return new lE(a,b,c);Uva(b)?d=b:(d.validators=b,d.asyncValidators=c);return new lE(a,Object.assign({},d,{nonNullable:!0}))};
h.array=function(a,b,c){var d=this;a=a.map(function(e){return d._createControl(e)});return new xPc(a,b,c)};h._reduceControls=function(a){var b=this,c={};Object.keys(a).forEach(function(d){c[d]=b._createControl(a[d])});return c};h._createControl=function(a){return a instanceof lE?a:a instanceof iE?a:Array.isArray(a)?this.control(a[0],a.length>1?a[1]:null,a.length>2?a[2]:null):this.control(a)};
da.Object.defineProperties(CE.prototype,{nonNullable:{configurable:!0,enumerable:!0,get:function(){var a=new CE;a.useNonNullable=!0;return a}}});CE.\u0275fac=function(a){return new (a||CE)};CE.\u0275prov=Dc({token:CE,factory:CE.\u0275fac,providedIn:"root"});var DE=function(){};DE.\u0275fac=function(a){return new (a||DE)};DE.\u0275mod=$e({type:DE});DE.\u0275inj=Fc({imports:[BE]});var EE=function(){};EE.\u0275fac=function(a){return new (a||EE)};EE.\u0275mod=$e({type:EE});EE.\u0275inj=Fc({imports:[BE]});var HPc=new dd("MAT_INPUT_VALUE_ACCESSOR");var IPc="button checkbox file hidden image radio range reset submit".split(" "),JPc=new dd("MAT_INPUT_CONFIG"),FE=function(){var a=this;this._elementRef=p(Hd);this._platform=p(Vh);this.ngControl=p(dE,{optional:!0,self:!0});this._autofillMonitor=p(XD);this._ngZone=p(Rg);this._formField=p(YOc,{optional:!0});this._renderer=p(ci);this._uid=p(ai).getId("mat-input-");this._config=p(JPc,{optional:!0});this.focused=!1;this.stateChanges=new qf;this.controlType="mat-input";this._disabled=this.autofilled=!1;
this._type="text";this._readonly=!1;this._neverEmptyInputTypes="date datetime datetime-local month time week".split(" ").filter(function(l){return Oqa().has(l)});this._iOSKeyupListener=function(l){l=l.target;l.value||l.selectionStart!==0||l.selectionEnd!==0||(l.setSelectionRange(1,1),l.setSelectionRange(0,0))};var b=p(kE,{optional:!0}),c=p(uE,{optional:!0}),d=p(bA),e=p(HPc,{optional:!0,self:!0}),f=this._elementRef.nativeElement,g=f.nodeName.toLowerCase();e?df(e.value)?this._signalBasedValueAccessor=
e:this._inputValueAccessor=e:this._inputValueAccessor=f;this._previousNativeValue=this.value;this.id=this.id;this._platform.IOS&&this._ngZone.runOutsideAngular(function(){a._cleanupIosKeyup=a._renderer.listen(f,"keyup",a._iOSKeyupListener)});this._errorStateTracker=new mDc(d,this.ngControl,c,b,this.stateChanges);this._isServer=!this._platform.isBrowser;this._isNativeSelect=g==="select";this._isTextarea=g==="textarea";this._isInFormField=!!this._formField;var k;this.disabledInteractive=((k=this._config)==
null?void 0:k.disabledInteractive)||!1;this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select");this._signalBasedValueAccessor&&ef(function(){a._signalBasedValueAccessor.value();a.stateChanges.next()})};h=FE.prototype;h.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(b){a.autofilled=b.isAutofilled;a.stateChanges.next()})};h.ngOnChanges=function(){this.stateChanges.next()};
h.ngOnDestroy=function(){this.stateChanges.complete();this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement);var a;(a=this._cleanupIosKeyup)==null||a.call(this);var b;(b=this._cleanupWebkitWheel)==null||b.call(this)};h.ngDoCheck=function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next()));this._dirtyCheckNativeValue();this._dirtyCheckPlaceholder()};
h.focus=function(a){this._elementRef.nativeElement.focus(a)};h.updateErrorState=function(){this._errorStateTracker.updateErrorState()};h._focusChanged=function(a){if(a!==this.focused){if(!this._isNativeSelect&&a&&this.disabled&&this.disabledInteractive){var b=this._elementRef.nativeElement;b.type==="number"?(b.type="text",b.setSelectionRange(0,0),b.type="number"):b.setSelectionRange(0,0)}this.focused=a;this.stateChanges.next()}};h._onInput=function(){};
h._dirtyCheckNativeValue=function(){var a=this._elementRef.nativeElement.value;this._previousNativeValue!==a&&(this._previousNativeValue=a,this.stateChanges.next())};h._dirtyCheckPlaceholder=function(){var a=this._getPlaceholder();if(a!==this._previousPlaceholder){var b=this._elementRef.nativeElement;(this._previousPlaceholder=a)?b.setAttribute("placeholder",a):b.removeAttribute("placeholder")}};h._getPlaceholder=function(){return this.placeholder||null};h._validateType=function(){IPc.indexOf(this._type)};
h._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1};h._isBadInput=function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput};h.setDescribedByIds=function(a){var b=this._elementRef.nativeElement;a.length?b.setAttribute("aria-describedby",a.join(" ")):b.removeAttribute("aria-describedby")};h.onContainerClick=function(){this.focused||this.focus()};
h._isInlineSelect=function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||a.size>1)};h._getReadonlyAttribute=function(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null};
da.Object.defineProperties(FE.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=Lh(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(d=(c=this._required)!=null?c:(a=this.ngControl)==null?void 0:(b=a.control)==null?void 0:zva(b._rawValidators,
vj))!=null?d:!1},set:function(a){this._required=Lh(a)}},type:{configurable:!0,enumerable:!0,get:function(){return this._type},set:function(a){this._type=a||"text";this._validateType();!this._isTextarea&&Oqa().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},errorStateMatcher:{configurable:!0,enumerable:!0,get:function(){return this._errorStateTracker.matcher},set:function(a){this._errorStateTracker.matcher=a}},value:{configurable:!0,enumerable:!0,get:function(){return this._signalBasedValueAccessor?
this._signalBasedValueAccessor.value():this._inputValueAccessor.value},set:function(a){a!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(a):this._inputValueAccessor.value=a,this.stateChanges.next())}},readonly:{configurable:!0,enumerable:!0,get:function(){return this._readonly},set:function(a){this._readonly=Lh(a)}},errorState:{configurable:!0,enumerable:!0,get:function(){return this._errorStateTracker.errorState},set:function(a){this._errorStateTracker.errorState=
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||!!(a.selectedIndex>-1&&b&&b.label)}return this.focused&&!this.disabled||!this.empty}},describedByIds:{configurable:!0,enumerable:!0,get:function(){var a;
return((a=this._elementRef.nativeElement.getAttribute("aria-describedby"))==null?void 0:a.split(" "))||[]}}});FE.\u0275fac=function(a){return new (a||FE)};
FE.\u0275dir=af({type:FE,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(a,b){a&1&&N("focus",function(){return b._focusChanged(!0)})("blur",function(){return b._focusChanged(!1)})("input",function(){return b._onInput()});a&2&&(Pf("id",b.id)("disabled",b.disabled&&!b.disabledInteractive)("required",b.required),If("name",
b.name||null)("readonly",b._getReadonlyAttribute())("aria-disabled",b.disabled&&b.disabledInteractive?"true":null)("aria-invalid",b.empty&&b.required?null:b.errorState)("aria-required",b.required)("id",b.id),wg("mat-input-server",b._isServer)("mat-mdc-form-field-textarea-control",b._isInFormField&&b._isTextarea)("mat-mdc-form-field-input-control",b._isInFormField)("mat-mdc-input-disabled-interactive",b.disabledInteractive)("mdc-text-field__input",b._isInFormField)("mat-mdc-native-select-inline",b._isInlineSelect()))},
inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",$g]},exportAs:["matInput"],features:[Gg([{provide:ND,useExisting:FE}]),jx]});var GE=function(){};GE.\u0275fac=function(a){return new (a||GE)};GE.\u0275mod=$e({type:GE});GE.\u0275inj=Fc({imports:[TD,TD,ZD,Ky]});var HE=function(){};HE.\u0275fac=function(a){return new (a||HE)};HE.\u0275mod=$e({type:HE});HE.\u0275inj=Fc({imports:[GE,UD]});var Rwa=Symbol("$b"),IE=function(a){this.params=a||{}};IE.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this.params,a)};IE.prototype.get=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a[0]:a):null};IE.prototype.getAll=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a:[a]):[]};da.Object.defineProperties(IE.prototype,{keys:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.params)}}});var awa={exact:fwa,subset:iwa},bwa={exact:dwa,subset:gwa,ignored:function(){return!0}},Fj=function(a,b,c){a=a===void 0?new Ej([],{}):a;b=b===void 0?{}:b;this.root=a;this.queryParams=b;this.fragment=c===void 0?null:c};Fj.prototype.toString=function(){return KPc.serialize(this)};da.Object.defineProperties(Fj.prototype,{queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=new IE(this.queryParams));return this._queryParamMap}}});
var Ej=function(a,b){var c=this;this.segments=a;this.children=b;this.parent=null;Object.values(b).forEach(function(d){return d.parent=c})};Ej.prototype.hasChildren=function(){return this.numberOfChildren>0};Ej.prototype.toString=function(){return nwa(this)};da.Object.defineProperties(Ej.prototype,{numberOfChildren:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.children).length}}});var Hj=function(a,b){this.path=a;this.parameters=b};
Hj.prototype.toString=function(){return lwa(this.path)+mwa(this.parameters)};var JE=function(){};JE.\u0275fac=function(a){return new (a||JE)};JE.\u0275prov=Dc({token:JE,factory:function(){return new KE},providedIn:"root"});var KE=function(){};
KE.prototype.parse=function(a){a=new LPc(a);LE(a,"/");var b=a.remaining===""||a.remaining.startsWith("?")||a.remaining.startsWith("#")?new Ej([],{}):new Ej([],MPc(a));var c={};if(LE(a,"?")){do{var d,e,f=a.remaining.match(NPc);if(e=f?f[0]:"")a.capture(e),f="",LE(a,"=")&&(d=(d=a.remaining.match(OPc))?d[0]:"")&&(f=d,a.capture(f)),e=decodeURIComponent(e.replace(/\+/g,"%20")),f=decodeURIComponent(f.replace(/\+/g,"%20")),c.hasOwnProperty(e)?(d=c[e],Array.isArray(d)||(d=[d],c[e]=d),d.push(f)):c[e]=f}while(LE(a,
"&"))}return new Fj(b,c,LE(a,"#")?decodeURIComponent(a.remaining):null)};KE.prototype.serialize=function(a){var b="/"+owa(a.root,!0),c=rwa(a.queryParams);a=typeof a.fragment==="string"?"#"+encodeURI(a.fragment):"";return b+c+a};
var KPc=new KE,swa=/^[^\/()?;#]+/,PPc=/^[^\/()?;=#]+/,NPc=/^[^=?&#]+/,OPc=/^[^&#]+/,LPc=function(a){this.remaining=this.url=a},MPc=function(a){if(a.remaining==="")return{};LE(a,"/");var b=[];for(a.remaining.startsWith("(")||b.push(QPc(a));a.remaining.startsWith("/")&&!a.remaining.startsWith("//")&&!a.remaining.startsWith("/(");)a.capture("/"),b.push(QPc(a));var c={};a.remaining.startsWith("/(")&&(a.capture("/"),c=RPc(a,!0));var d={};a.remaining.startsWith("(")&&(d=RPc(a,!1));if(b.length>0||Object.keys(c).length>
0)d.primary=new Ej(b,c);return d},QPc=function(a){var b=twa(a.remaining);if(b===""&&a.remaining.startsWith(";"))throw new Sc(4009,!1);a.capture(b);b=decodeURIComponent(b);for(var c={};LE(a,";");){var d,e=a;if(d=(d=e.remaining.match(PPc))?d[0]:""){e.capture(d);var f="";if(LE(e,"=")){var g=twa(e.remaining);g&&(f=g,e.capture(f))}c[decodeURIComponent(d)]=decodeURIComponent(f)}}return new Hj(b,c)},RPc=function(a,b){var c={};for(a.capture("(");!LE(a,")")&&a.remaining.length>0;){var d=twa(a.remaining),e=
a.remaining[d.length];if(e!=="/"&&e!==")"&&e!==";")throw new Sc(4010,!1);e=void 0;d.indexOf(":")>-1?(e=d.slice(0,d.indexOf(":")),a.capture(e),a.capture(":")):b&&(e="primary");d=MPc(a);var f=void 0;c[(f=e)!=null?f:"primary"]=Object.keys(d).length===1&&d.primary?d.primary:new Ej([],d);LE(a,"//")}return c},LE=function(a,b){return a.remaining.startsWith(b)?(a.remaining=a.remaining.substring(b.length),!0):!1};LPc.prototype.capture=function(a){if(!LE(this,a))throw new Sc(4011,!1);};var Hwa=function(a,b,c){this.isAbsolute=a;this.numberOfDoubleDots=b;this.commands=c;if(a&&c.length>0&&Awa(c[0]))throw new Sc(4003,!1);if((a=c.find(Ewa))&&a!==(c.length>0?c[c.length-1]:null))throw new Sc(4004,!1);},zwa=function(a,b,c){this.segmentGroup=a;this.processChildren=b;this.index=c};var ME=function(a,b){this.id=a;this.url=b},gr=function(a,b,c,d){c=c===void 0?"imperative":c;d=d===void 0?null:d;ME.call(this,a,b);this.type=0;this.navigationTrigger=c;this.restoredState=d};Y(gr,ME);gr.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"};var Pj=function(a,b,c){ME.call(this,a,b);this.urlAfterRedirects=c;this.type=1};Y(Pj,ME);
Pj.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"};var Qj=function(a,b,c,d){ME.call(this,a,b);this.reason=c;this.code=d;this.type=2};Y(Qj,ME);Qj.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"};var Sj=function(a,b,c,d){ME.call(this,a,b);this.reason=c;this.code=d;this.type=16};Y(Sj,ME);
var Rj=function(a,b,c,d){ME.call(this,a,b);this.error=c;this.target=d;this.type=3};Y(Rj,ME);Rj.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"};var SPc=function(a,b,c,d){ME.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=4};Y(SPc,ME);SPc.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var TPc=function(a,b,c,d){ME.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=7};Y(TPc,ME);TPc.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var UPc=function(a,b,c,d,e){ME.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.shouldActivate=e;this.type=8};Y(UPc,ME);
UPc.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"};var VPc=function(a,b,c,d){ME.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=5};Y(VPc,ME);VPc.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var WPc=function(a,b,c,d){ME.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=6};Y(WPc,ME);WPc.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var XPc=function(a){this.route=a;this.type=9};XPc.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"};var YPc=function(a){this.route=a;this.type=10};
YPc.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"};var txa=function(a){this.snapshot=a;this.type=11};txa.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var ZPc=function(a){this.snapshot=a;this.type=12};ZPc.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};
var uxa=function(a){this.snapshot=a;this.type=13};uxa.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var $Pc=function(a){this.snapshot=a;this.type=14};$Pc.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var aQc=function(a,b,c){this.position=a;this.anchor=b;this.scrollBehavior=c;this.type=15};
aQc.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"};var bQc=function(){},cQc=function(a,b){this.url=a;this.navigationBehaviorOptions=b};var dQc=function(a){this.rootInjector=a;this.attachRef=this.route=this.outlet=null;this.children=new NE(this.rootInjector)};da.Object.defineProperties(dQc.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=Jj((a=this.route)==null?void 0:a.snapshot))!=null?b:this.rootInjector}}});
var NE=function(a){this.rootInjector=a;this.contexts=new Map},eQc=function(a,b){if(a=a.getContext(b))a.outlet=null,a.attachRef=null},fQc=function(a,b){var c=a.getContext(b);c||(c=new dQc(a.rootInjector),a.contexts.set(b,c));return c};NE.prototype.getContext=function(a){return this.contexts.get(a)||null};NE.\u0275fac=function(a){return new (a||NE)(Xc(Xe))};NE.\u0275prov=Dc({token:NE,factory:NE.\u0275fac,providedIn:"root"});var OE=function(a){this._root=a};OE.prototype.parent=function(a){a=this.pathFromRoot(a);return a.length>1?a[a.length-2]:null};OE.prototype.children=function(a){return(a=Owa(a,this._root))?a.children.map(function(b){return b.value}):[]};OE.prototype.firstChild=function(a){return(a=Owa(a,this._root))&&a.children.length>0?a.children[0].value:null};OE.prototype.pathFromRoot=function(a){return Pwa(a,this._root).map(function(b){return b.value})};
da.Object.defineProperties(OE.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this._root.value}}});var Kj=function(a,b){this.value=a;this.children=b};Kj.prototype.toString=function(){return"TreeNode("+this.value+")"};var $wa=function(a,b){this._root=a;this.snapshot=b;Twa(this,a)};Y($wa,OE);$wa.prototype.toString=function(){return this.snapshot.toString()};
var Lj=function(a,b,c,d,e,f,g,k){this.urlSubject=a;this.paramsSubject=b;this.queryParamsSubject=c;this.fragmentSubject=d;this.dataSubject=e;this.outlet=f;this.component=g;this._futureSnapshot=k;var l,r;this.title=(r=(l=this.dataSubject)==null?void 0:l.pipe(A(function(w){return w[Rwa]})))!=null?r:ce(void 0);this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e};Lj.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"};
da.Object.defineProperties(Lj.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!=null||(this._paramMap=this.params.pipe(A(function(a){return new IE(a)})));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=this.queryParams.pipe(A(function(a){return new IE(a)})));return this._queryParamMap}}});
var PE=function(a,b,c,d,e,f,g,k,l){this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e;this.outlet=f;this.component=g;this.routeConfig=k;this._resolve=l};PE.prototype.toString=function(){return"Route(url:'"+this.url.map(function(a){return a.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"};
da.Object.defineProperties(PE.prototype,{title:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a[Rwa]}},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!=null||(this._paramMap=new IE(this.params));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=new IE(this.queryParams));return this._queryParamMap}}});var gQc=function(a,b){this._root=b;this.url=a;Twa(this,b)};Y(gQc,OE);gQc.prototype.toString=function(){return Uwa(this._root)};var hQc=new dd(""),QE=function(){this._activatedRoute=this.activated=null;this.name="primary";this.activateEvents=new Ti;this.deactivateEvents=new Ti;this.attachEvents=new Ti;this.detachEvents=new Ti;this.routerOutletData=Og.apply(null,q([]));this.parentContexts=p(NE);this.location=p(eg);this.changeDetector=p(Cx);this.inputBinder=p(iQc,{optional:!0})};
QE.prototype.ngOnChanges=function(a){if(a.name){a=a.name;var b=a.previousValue;a.firstChange||(jQc(this,b)&&(this.deactivate(),eQc(this.parentContexts,b)),kQc(this))}};QE.prototype.ngOnDestroy=function(){jQc(this,this.name)&&eQc(this.parentContexts,this.name);var a;(a=this.inputBinder)==null||lQc(a,this)};var jQc=function(a,b){var c;return((c=a.parentContexts.getContext(b))==null?void 0:c.outlet)===a};QE.prototype.ngOnInit=function(){kQc(this)};
var kQc=function(a){var b=a.parentContexts,c=a.name,d=fQc(b,c);d.outlet=a;b.contexts.set(c,d);!a.activated&&(b=a.parentContexts.getContext(a.name),b==null?0:b.route)&&(b.attachRef?a.attach(b.attachRef,b.route):mQc(a,b.route,b.injector))};QE.prototype.detach=function(){if(!this.activated)throw new Sc(4012,!1);this.location.detach();var a=this.activated;this._activatedRoute=this.activated=null;this.detachEvents.emit(a.instance);return a};
QE.prototype.attach=function(a,b){this.activated=a;this._activatedRoute=b;this.location.insert(a.hostView);(b=this.inputBinder)!=null&&(lQc(b,this),nQc(b,this));this.attachEvents.emit(a.instance)};QE.prototype.deactivate=function(){if(this.activated){var a=this.component;this.activated.destroy();this._activatedRoute=this.activated=null;this.deactivateEvents.emit(a)}};
var mQc=function(a,b,c){if(a.isActivated)throw new Sc(4013,!1);a._activatedRoute=b;var d=a.location,e=b.snapshot.component,f=fQc(a.parentContexts,a.name).children;a.activated=d.createComponent(e,{index:d.length,injector:new oQc(b,f,d.injector,a.routerOutletData),environmentInjector:c});a.changeDetector.markForCheck();(b=a.inputBinder)!=null&&(lQc(b,a),nQc(b,a));a.activateEvents.emit(a.activated.instance)};
da.Object.defineProperties(QE.prototype,{activatedComponentRef:{configurable:!0,enumerable:!0,get:function(){return this.activated}},isActivated:{configurable:!0,enumerable:!0,get:function(){return!!this.activated}},component:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw new Sc(4012,!1);return this.activated.instance}},activatedRoute:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw new Sc(4012,!1);return this._activatedRoute}}});
QE.\u0275fac=function(a){return new (a||QE)};QE.\u0275dir=af({type:QE,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[jx]});var oQc=function(a,b,c,d){this.route=a;this.childContexts=b;this.parent=c;this.outletData=d};
oQc.prototype.get=function(a,b){return a===Lj?this.route:a===NE?this.childContexts:a===hQc?this.outletData:this.parent.get(a,b)};
var iQc=new dd(""),RE=function(){this.outletDataSubscriptions=new Map},lQc=function(a,b){var c;(c=a.outletDataSubscriptions.get(b))==null||c.unsubscribe();a.outletDataSubscriptions.delete(b)},nQc=function(a,b){var c=b.activatedRoute,d=ie([c.queryParams,c.params,c.data]).pipe(yf(function(e,f){var g=m(e);e=g.next().value;var k=g.next().value;g=g.next().value;g=Object.assign({},e,k,g);return f===0?ce(g):Promise.resolve(g)})).subscribe(function(e){if(b.isActivated&&b.activatedComponentRef&&b.activatedRoute===
c&&c.component!==null){var f=$oa(c.component);if(f){f=m(f.inputs);for(var g=f.next();!g.done;g=f.next())g=g.value.templateName,b.activatedComponentRef.setInput(g,e[g])}else lQc(a,b)}else lQc(a,b)});a.outletDataSubscriptions.set(b,d)};RE.\u0275fac=function(a){return new (a||RE)};RE.\u0275prov=Dc({token:RE,factory:RE.\u0275fac});var Ywa=function(){};Ywa.\u0275fac=function(a){return new (a||Ywa)};Ywa.\u0275cmp=D({type:Ywa,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(a){a&1&&M(0,"router-outlet")},dependencies:[QE],encapsulation:2});var qQc=function(a,b,c,d){return A(function(e){(new pQc(b,e.targetRouterState,e.currentRouterState,c,d)).activate(a);return e})},pQc=function(a,b,c,d,e){this.routeReuseStrategy=a;this.futureState=b;this.currState=c;this.forwardEvent=d;this.inputBindingEnabled=e};pQc.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;rQc(this,b,c,a);Vwa(this.futureState.root);sQc(this,b,c,a)};
var rQc=function(a,b,c,d){var e=Qwa(c);b.children.forEach(function(f){var g=f.value.outlet,k=e[g],l=f.value,r=k?k.value:null;l===r?l.component?(l=d.getContext(l.outlet))&&rQc(a,f,k,l.children):rQc(a,f,k,d):r&&tQc(a,k,d);delete e[g]});Object.values(e).forEach(function(f){tQc(a,f,d)})},tQc=function(a,b,c){var d=c.getContext(b.value.outlet);c=d&&b.value.component?d.children:c;b=Qwa(b);b=m(Object.values(b));for(var e=b.next();!e.done;e=b.next())tQc(a,e.value,c);d&&(d.outlet&&(d.outlet.deactivate(),d.children.contexts=
new Map),d.attachRef=null,d.route=null)},sQc=function(a,b,c,d){var e=Qwa(c);b.children.forEach(function(f){var g=e[f.value.outlet],k=f.value,l=g?g.value:null;Vwa(k);k===l?k.component?(k=fQc(d,k.outlet),sQc(a,f,g,k.children)):sQc(a,f,g,d):k.component?(g=fQc(d,k.outlet),g.attachRef=null,g.route=k,g.outlet&&mQc(g.outlet,k,g.injector),sQc(a,f,null,g.children)):sQc(a,f,null,d);a.forwardEvent(new $Pc(f.value.snapshot))});b.children.length&&a.forwardEvent(new ZPc(b.value.snapshot))};var gxa=Symbol("bc");var jxa=function(a){this.path=a;this.route=this.path[this.path.length-1]},lxa=function(a,b){this.component=a;this.route=b};var SE=function(a){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.segmentGroup=a||null;Object.setPrototypeOf(this,SE.prototype)};Y(SE,Error);var uQc=function(a){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.urlTree=a;Object.setPrototypeOf(this,uQc.prototype)};Y(uQc,Error);
var vQc=function(a,b){this.urlSerializer=a;this.urlTree=b},wQc=function(a){var b,c;return y(function(d){b=[];for(c=a.root;;){b=b.concat(c.segments);if(c.numberOfChildren===0)return d.return(b);if(c.numberOfChildren>1||!c.children.primary)throw new Sc(4E3,!1);c=c.children.primary}ae(d)})},zQc=function(a,b,c,d,e,f){var g,k;return y(function(l){if(l.nextAddress==1)return z(l,Axa(c,e,f),2);g=l.yieldResult;if(g instanceof Fj)throw new uQc(g);var r=g,w=a.urlSerializer.parse(g);r=xQc(a,r,w.root,b,d);k=new Fj(r,
yQc(w.queryParams,a.urlTree.queryParams),w.fragment);if(g[0]==="/")throw new uQc(k);return l.return(k)})},yQc=function(a,b){var c={};Object.entries(a).forEach(function(d){var e=m(d);d=e.next().value;e=e.next().value;c[d]=typeof e==="string"&&e[0]===":"?b[e.substring(1)]:e});return c},xQc=function(a,b,c,d,e){var f=AQc(c.segments,d,e),g={};Object.entries(c.children).forEach(function(k){var l=m(k);k=l.next().value;l=l.next().value;g[k]=xQc(a,b,l,d,e)});return new Ej(f,g)},AQc=function(a,b,c){return a.map(function(d){if(d.path[0]===
":"){if(d=c[d.path.substring(1)],!d)throw new Sc(4001,!1);}else a:for(var e=0,f=m(b),g=f.next();!g.done;g=f.next()){g=g.value;if(g.path===d.path){b.splice(e);d=g;break a}e++}return d})};var Cxa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};var BQc=function(){},Ixa=function(a,b,c,d,e,f,g,k){this.injector=a;this.configLoader=b;this.rootComponentType=c;this.config=d;this.urlTree=e;this.paramsInheritanceStrategy=f;this.urlSerializer=g;this.abortSignal=k;this.absoluteRedirectCount=0;this.allowRedirects=!0;this.applyRedirects=new vQc(this.urlSerializer,this.urlTree)};
Ixa.prototype.recognize=function(){var a=this,b,c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1)return b=Hxa(a.urlTree.root,[],[],a.config).segmentGroup,z(l,a.match(b),2);c=l.yieldResult;d=c.children;e=c.rootSnapshot;f=new Kj(e,d);g=new gQc("",f);var r=e,w=a.urlTree.queryParams,x=a.urlTree.fragment;w=w===void 0?null:w;x=x===void 0?null:x;var C=C===void 0?new KE:C;r=wwa(r);k=Dwa(r,[],w,x,C);k.queryParams=a.urlTree.queryParams;g.url=a.urlSerializer.serialize(k);return l.return({state:g,tree:k})})};
Ixa.prototype.match=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return c=new PE([],Object.freeze({}),Object.freeze(Object.assign({},b.urlTree.queryParams)),b.urlTree.fragment,Object.freeze({}),"primary",b.rootComponentType,null,{}),Wd(f,2),z(f,CQc(b,b.injector,b.config,a,"primary",c),4);if(f.nextAddress!=2)return d=f.yieldResult,f.return({children:d,rootSnapshot:c});e=$d(f);if(e instanceof uQc)return b.urlTree=e.urlTree,f.return(b.match(e.urlTree.root));if(e instanceof SE)throw new Sc(4002,
"'"+e.segmentGroup+"'");throw e;})};var CQc=function(a,b,c,d,e,f){var g;return y(function(k){if(k.nextAddress==1)return d.segments.length===0&&d.hasChildren()?k.return(a.processChildren(b,c,d,f)):z(k,DQc(a,b,c,d,d.segments,e,!0,f),2);g=k.yieldResult;return k.return(g instanceof Kj?[g]:[])})};
Ixa.prototype.processChildren=function(a,b,c,d){var e=this,f,g,k,l,r,w,x,C,H,J,O,R;return y(function(V){switch(V.nextAddress){case 1:f=[];g=m(Object.keys(c.children));for(k=g.next();!k.done;k=g.next())l=k.value,l==="primary"?f.unshift(l):f.push(l);r=[];w=m(f);x=w.next();case 2:if(x.done){V.jumpTo(4);break}C=x.value;H=c.children[C];J=Nwa(b,C);return z(V,CQc(e,a,J,H,C,d),5);case 5:O=V.yieldResult;r.push.apply(r,q(O));x=w.next();V.jumpTo(2);break;case 4:return R=Mxa(r),Kxa(R),V.return(R)}})};
var DQc=function(a,b,c,d,e,f,g,k){var l,r,w,x,C;return y(function(H){switch(H.nextAddress){case 1:l=m(c),r=l.next();case 2:if(r.done){H.jumpTo(4);break}w=r.value;Wd(H,5);x=void 0;return z(H,EQc(a,(x=w._injector)!=null?x:b,c,w,d,e,f,g,k),7);case 7:return H.return(H.yieldResult);case 5:C=$d(H);if(C instanceof SE||oxa(C)){H.jumpTo(3);break}throw C;case 3:r=l.next();H.jumpTo(2);break;case 4:if(e.length===0&&!d.children[f])return H.return(new BQc);throw new SE(d);}})},EQc=function(a,b,c,d,e,f,g,k,l){return y(function(r){if(Ij(d)!==
g&&(g==="primary"||!Gxa(e,f,d)))throw new SE(e);if(d.redirectTo===void 0)return r.return(FQc(a,b,e,d,f,g,l));if(a.allowRedirects&&k)return r.return(GQc(a,b,e,c,d,f,g,l));throw new SE(e);})},GQc=function(a,b,c,d,e,f,g,k){var l,r,w,x,C,H,J,O,R,V,ca,na;return y(function(ua){if(ua.nextAddress==1){l=Bxa(c,e,f);r=l.matched;w=l.parameters;x=l.consumedSegments;C=l.positionalParamSegments;H=l.remainingSegments;if(!r)throw new SE(c);typeof e.redirectTo==="string"&&e.redirectTo[0]==="/"&&(a.absoluteRedirectCount++,
a.absoluteRedirectCount>31&&(a.allowRedirects=!1));R=new PE(f,w,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,e.data||{},Ij(e),(O=(J=e.component)!=null?J:e._loadedComponent)!=null?O:null,e,e.resolve||{});V=Swa(R,k,a.paramsInheritanceStrategy);R.params=Object.freeze(V.params);R.data=Object.freeze(V.data);if(a.abortSignal.aborted)throw Error(a.abortSignal.reason);return z(ua,zQc(a.applyRedirects,x,e.redirectTo,C,R,b),2)}if(ua.nextAddress!=3)return ca=ua.yieldResult,z(ua,
wQc(ca),3);na=ua.yieldResult;return ua.return(DQc(a,b,d,c,na.concat(H),g,!1,k))})},FQc=function(a,b,c,d,e,f,g){var k,l,r,w,x,C,H,J,O,R,V,ca,na,ua,ia,Ga,ha,sa,xa,Qa,bb;return y(function(ub){switch(ub.nextAddress){case 1:if(a.abortSignal.aborted)throw Error(a.abortSignal.reason);return z(ub,Xva(Dxa(c,d,e,b,a.abortSignal)),2);case 2:k=ub.yieldResult;d.path==="**"&&(c.children={});if((l=k)==null||!l.matched)throw new SE(c);b=(r=d._injector)!=null?r:b;return z(ub,HQc(a,b,d,e),3);case 3:w=ub.yieldResult;
x=w.routes;H=(C=d._loadedInjector)!=null?C:b;J=k;O=J.parameters;R=J.consumedSegments;V=J.remainingSegments;ua=new PE(R,O,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,d.data||{},Ij(d),(na=(ca=d.component)!=null?ca:d._loadedComponent)!=null?na:null,d,d.resolve||{});ia=Swa(ua,g,a.paramsInheritanceStrategy);ua.params=Object.freeze(ia.params);ua.data=Object.freeze(ia.data);Ga=Hxa(c,R,V,x);ha=Ga.segmentGroup;sa=Ga.slicedSegments;if(sa.length!==0||!ha.hasChildren()){ub.jumpTo(4);
break}return z(ub,a.processChildren(H,x,ha,ua),5);case 5:return xa=ub.yieldResult,ub.return(new Kj(ua,xa));case 4:if(x.length===0&&sa.length===0)return ub.return(new Kj(ua,[]));Qa=Ij(d)===f;return z(ub,DQc(a,H,x,ha,sa,Qa?"primary":f,!0,ua),6);case 6:return bb=ub.yieldResult,ub.return(new Kj(ua,bb instanceof Kj?[bb]:[]))}})},HQc=function(a,b,c,d){var e,f;return y(function(g){switch(g.nextAddress){case 1:if(c.children)return g.return({routes:c.children,injector:b});if(!c.loadChildren){g.jumpTo(2);break}if(c._loadedRoutes!==
void 0)return g.return({routes:c._loadedRoutes,injector:c._loadedInjector});if(a.abortSignal.aborted)throw Error(a.abortSignal.reason);return z(g,Xva(yxa(b,c,d,a.abortSignal)),3);case 3:e=g.yieldResult;if(!e){g.jumpTo(4);break}return z(g,a.configLoader.loadChildren(b,c),5);case 5:return f=g.yieldResult,c._loadedRoutes=f.routes,c._loadedInjector=f.injector,g.return(f);case 4:throw dxa(3);case 2:return g.return({routes:[],injector:b})}})};var Nxa=new dd("RECOGNIZE_IMPL",{providedIn:"root",factory:function(){return Jxa}});var TE=function(){},IQc=function(a){for(a=a.root;a!==void 0;){var b=void 0;var c=(b=a.data[Rwa])!=null?b:c;a=a.children.find(function(d){return d.outlet==="primary"})}return c};TE.\u0275fac=function(a){return new (a||TE)};TE.\u0275prov=Dc({token:TE,factory:function(){return p(UE)},providedIn:"root"});var UE=function(a){this.title=a};Y(UE,TE);UE.prototype.updateTitle=function(a){a=IQc(a);a!==void 0&&this.title.setTitle(a)};UE.\u0275fac=function(a){return new (a||UE)(Xc(uy))};
UE.\u0275prov=Dc({token:UE,factory:UE.\u0275fac,providedIn:"root"});var VE=new dd("",{providedIn:"root",factory:function(){return{}}});var Yxa=new dd(""),WE=function(){this.componentLoaders=new WeakMap;this.childrenLoaders=new WeakMap;p(Ix)};
WE.prototype.loadComponent=function(a,b){var c=this,d;return y(function(e){if(c.componentLoaders.get(b))return e.return(c.componentLoaders.get(b));if(b._loadedComponent)return e.return(Promise.resolve(b._loadedComponent));if(c.onLoadStartListener)c.onLoadStartListener(b);d=function(){var f,g;return y(function(k){switch(k.nextAddress){case 1:return Yd(k,2),z(k,$va(gd(a,function(){return b.loadComponent()})),4);case 4:return f=k.yieldResult,z(k,Promise.resolve(Vxa(f)?f["default"]:f),5);case 5:g=k.yieldResult;
if(c.onLoadEndListener)c.onLoadEndListener(b);b._loadedComponent=g;return k.return(g);case 2:Xd(k),c.componentLoaders.delete(b),Zd(k,0)}})}();c.componentLoaders.set(b,d);return e.return(d)})};
WE.prototype.loadChildren=function(a,b){var c=this;if(this.childrenLoaders.get(b))return this.childrenLoaders.get(b);if(b._loadedRoutes)return Promise.resolve({routes:b._loadedRoutes,injector:b._loadedInjector});if(this.onLoadStartListener)this.onLoadStartListener(b);var d=function(){var e;return y(function(f){if(f.nextAddress==1)return Yd(f,2),z(f,Zxa(b,a,c.onLoadEndListener),4);if(f.nextAddress!=2)return e=f.yieldResult,b._loadedRoutes=e.routes,b._loadedInjector=e.injector,f.return(e);Xd(f);c.childrenLoaders.delete(b);
return Zd(f,0)})}();this.childrenLoaders.set(b,d);return d};WE.\u0275fac=function(a){return new (a||WE)};WE.\u0275prov=Dc({token:WE,factory:WE.\u0275fac,providedIn:"root"});var XE=function(){};XE.\u0275fac=function(a){return new (a||XE)};XE.\u0275prov=Dc({token:XE,factory:function(){return p(YE)},providedIn:"root"});var YE=function(){};YE.prototype.merge=function(a){return a};YE.\u0275fac=function(a){return new (a||YE)};YE.\u0275prov=Dc({token:YE,factory:YE.\u0275fac,providedIn:"root"});var JQc=new dd(""),$xa=new dd("");var KQc=function(){},LQc=new dd(""),ZE=function(){var a=this;this.currentNavigation=ng.apply(null,[null].concat(q([{equal:function(){return!1}}])));this.currentTransition=null;this.lastSuccessfulNavigation=ng.apply(null,[null].concat(q([])));this.events=new qf;this.transitionAbortWithErrorSubject=new qf;this.configLoader=p(WE);this.environmentInjector=p(Xe);this.destroyRef=p(Ce);this.urlSerializer=p(JE);this.rootContexts=p(NE);this.location=p(hi);this.inputBindingEnabled=p(iQc,{optional:!0})!==null;
this.titleStrategy=p(TE);this.options=p(VE,{optional:!0})||{};this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";this.urlHandlingStrategy=p(XE);this.createViewTransition=p(JQc,{optional:!0});this.navigationErrorHandler=p(LQc,{optional:!0});this.navigationId=0;this.afterPreactivation=function(){return ce(void 0)};this.rootComponentType=null;this.destroyed=!1;this.configLoader.onLoadEndListener=function(b){return a.events.next(new YPc(b))};this.configLoader.onLoadStartListener=
function(b){return a.events.next(new XPc(b))};this.destroyRef.onDestroy(function(){a.destroyed=!0})};ZE.prototype.complete=function(){var a;(a=this.transitions)==null||a.complete()};
var MQc=function(a,b){var c=++a.navigationId;Oc(function(){var d;(d=a.transitions)==null||d.next(Object.assign({},b,{extractedUrl:b.rawUrl,targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:c}))})},QQc=function(a,b){a.transitions=new Mj(null);return a.transitions.pipe(ue(function(c){return c!==null}),yf(function(c){var d=!1,e=new AbortController,f=function(){var g;return!d&&((g=a.currentTransition)==null?void 0:g.id)===c.id};return ce(c).pipe(yf(function(g){if(a.navigationId>
c.id)return NQc(a,c,"",1),se;a.currentTransition=c;var k=a.lastSuccessfulNavigation();a.currentNavigation.set({id:g.id,initialUrl:g.rawUrl,extractedUrl:g.extractedUrl,targetBrowserUrl:typeof g.extras.browserUrl==="string"?a.urlSerializer.parse(g.extras.browserUrl):g.extras.browserUrl,trigger:g.source,extras:g.extras,previousNavigation:k?Object.assign({},k,{previousNavigation:null}):null,abort:function(){return e.abort()}});k=!b.navigated||OQc(a)||PQc(a);var l,r=(l=g.extras.onSameUrlNavigation)!=null?
l:b.onSameUrlNavigation;return k||r==="reload"?ce(g).pipe(yf(function(w){a.events.next(new gr(w.id,a.urlSerializer.serialize(w.extractedUrl),w.source,w.restoredState));return w.id!==a.navigationId?se:Promise.resolve(w)}),Oxa(a.environmentInjector,a.configLoader,a.rootComponentType,b.config,a.urlSerializer,a.paramsInheritanceStrategy,e.signal),Af(function(w){c.targetSnapshot=w.targetSnapshot;c.urlAfterRedirects=w.urlAfterRedirects;a.currentNavigation.update(function(C){C.finalUrl=w.urlAfterRedirects;
return C});var x=new SPc(w.id,a.urlSerializer.serialize(w.extractedUrl),a.urlSerializer.serialize(w.urlAfterRedirects),w.targetSnapshot);a.events.next(x)})):(a.events.next(new Sj(g.id,a.urlSerializer.serialize(g.rawUrl),"",0)),g.resolve(!1),se)}),A(function(g){var k=new TPc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);a.events.next(k);k=Object;var l=k.assign;var r=g.currentSnapshot;var w=g.targetSnapshot._root;r=kxa(w,r?r._root:null,
a.rootContexts,[w.value]);return a.currentTransition=c=l.call(k,{},g,{guards:r})}),rxa(a.environmentInjector,function(g){return a.events.next(g)}),yf(function(g){if((c.guardsResult=g.guardsResult)&&typeof g.guardsResult!=="boolean")throw exa(g.guardsResult);var k=new UPc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot,!!g.guardsResult);a.events.next(k);if(!f())return se;if(!g.guardsResult)return NQc(a,g,"",3),se;if(g.guards.canActivateChecks.length===
0)return ce(g);k=new VPc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);a.events.next(k);if(!f())return se;var l=!1;return ce(g).pipe(Rxa(a.paramsInheritanceStrategy,a.environmentInjector),Af({next:function(){l=!0;var r=new WPc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);a.events.next(r)},complete:function(){l||NQc(a,g,"",2)}}))}),Uxa(function(g){var k=function(r){var w=
[],x;if((x=r.routeConfig)==null?0:x._loadedComponent){var C;r.component=(C=r.routeConfig)==null?void 0:C._loadedComponent}else{var H;if((H=r.routeConfig)==null?0:H.loadComponent){var J;x=(J=Jj(r))!=null?J:a.environmentInjector;w.push(a.configLoader.loadComponent(x,r.routeConfig).then(function(O){r.component=O}))}}J=m(r.children);for(x=J.next();!x.done;x=J.next())w.push.apply(w,q(k(x.value)));return w},l=k(g.targetSnapshot.root);return l.length===0?ce(g):Vd(Promise.all(l).then(function(){return g}))}),
Uxa(function(){return a.afterPreactivation()}),yf(function(){var g=c,k=g.currentSnapshot;g=g.targetSnapshot;var l,r=(l=a.createViewTransition)==null?void 0:l.call(a,a.environmentInjector,k.root,g.root);return r?Vd(r).pipe(A(function(){return c})):ce(c)}),A(function(g){var k=axa(b.routeReuseStrategy,g.targetSnapshot,g.currentRouterState);a.currentTransition=c=Object.assign({},g,{targetRouterState:k});a.currentNavigation.update(function(l){l.targetRouterState=k;return l});return c}),Af(function(){a.events.next(new bQc)}),
qQc(a.rootContexts,b.routeReuseStrategy,function(g){return a.events.next(g)},a.inputBindingEnabled),lf(1),zf(hxa(e.signal).pipe(ue(function(){return!d&&!c.targetRouterState}),Af(function(){NQc(a,c,e.signal.reason+"",4)}))),Af({next:function(g){d=!0;a.currentNavigation.update(function(l){l.abort=KQc;return l});a.lastSuccessfulNavigation.set(Oc(a.currentNavigation));a.events.next(new Pj(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects)));var k;(k=a.titleStrategy)==
null||k.updateTitle(g.targetRouterState.snapshot);g.resolve(!0)},complete:function(){d=!0}}),zf(a.transitionAbortWithErrorSubject.pipe(Af(function(g){throw g;}))),of(function(){e.abort();d||NQc(a,c,"",1);var g;((g=a.currentTransition)==null?void 0:g.id)===c.id&&(a.currentNavigation.set(null),a.currentTransition=null)}),gf(function(g){if(a.destroyed)return c.resolve(!1),se;d=!0;if(fxa(g))a.events.next(new Qj(c.id,a.urlSerializer.serialize(c.extractedUrl),g.message,g.cancellationCode)),fxa(g)&&Gj(g.url)?
a.events.next(new cQc(g.url,g.navigationBehaviorOptions)):c.resolve(!1);else{var k,l=new Rj(c.id,a.urlSerializer.serialize(c.extractedUrl),g,(k=c.targetSnapshot)!=null?k:void 0);try{throw gd(a.environmentInjector,function(){var r;return(r=a.navigationErrorHandler)==null?void 0:r.call(a,l)}),a.events.next(l),g;}catch(r){a.options.resolveNavigationPromiseOnError?c.resolve(!1):c.reject(r)}}return se}))}))},NQc=function(a,b,c,d){c=new Qj(b.id,a.urlSerializer.serialize(b.extractedUrl),c,d);a.events.next(c);
b.resolve(!1)},OQc=function(a){var b,c;return((b=a.currentTransition)==null?void 0:b.extractedUrl.toString())!==((c=a.currentTransition)==null?void 0:c.currentUrlTree.toString())},PQc=function(a){var b=a.urlSerializer.parse(a.location.path(!0));a=Oc(a.currentNavigation);var c,d=(c=a==null?void 0:a.targetBrowserUrl)!=null?c:a==null?void 0:a.extractedUrl;return b.toString()!==(d==null?void 0:d.toString())&&!(a==null?0:a.extras.skipLocationChange)};
da.Object.defineProperties(ZE.prototype,{hasRequestedNavigation:{configurable:!0,enumerable:!0,get:function(){return this.navigationId!==0}}});ZE.\u0275fac=function(a){return new (a||ZE)};ZE.\u0275prov=Dc({token:ZE,factory:ZE.\u0275fac,providedIn:"root"});var $E=function(){};$E.\u0275fac=function(a){return new (a||$E)};$E.\u0275prov=Dc({token:$E,factory:function(){return p(aF)},providedIn:"root"});var RQc=function(){};RQc.prototype.store=function(){};RQc.prototype.retrieve=function(){return null};RQc.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig};var aF=function(){};Y(aF,RQc);aF.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(aF)))(b||aF)}}();aF.\u0275prov=Dc({token:aF,factory:aF.\u0275fac,providedIn:"root"});var dF=function(){this.urlSerializer=p(JE);this.options=p(VE,{optional:!0})||{};this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";this.location=p(hi);this.urlHandlingStrategy=p(XE);this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";this.rawUrlTree=this.currentUrlTree=new Fj;var a=new gQc("",new Kj(new PE([],{},{},"",{},"primary",null,null,{}),[])),b=new Lj(new Mj([new Hj("",{})]),new Mj({}),new Mj({}),new Mj(""),new Mj({}),"primary",null,a.root);
b.snapshot=a.root;this.routerState=new $wa(new Kj(b,[]),a);this.stateMemento=SQc(this)},TQc=function(a,b){var c=b.finalUrl;var d=b.initialUrl;b=b.targetBrowserUrl;c=c!==void 0?a.urlHandlingStrategy.merge(c,d):d;c=b!=null?b:c;return c instanceof Fj?a.urlSerializer.serialize(c):c},UQc=function(a,b){var c=b.targetRouterState;var d=b.finalUrl;b=b.initialUrl;d&&c?(a.currentUrlTree=d,a.rawUrlTree=a.urlHandlingStrategy.merge(d,b),a.routerState=c):a.rawUrlTree=b},SQc=function(a){return{rawUrlTree:a.rawUrlTree,
currentUrlTree:a.currentUrlTree,routerState:a.routerState}},VQc=function(a,b){b=b.finalUrl;a.routerState=a.stateMemento.routerState;a.currentUrlTree=a.stateMemento.currentUrlTree;a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,b!=null?b:a.rawUrlTree)};dF.\u0275fac=function(a){return new (a||dF)};dF.\u0275prov=Dc({token:dF,factory:function(){return p(eF)},providedIn:"root"});var eF=function(){dF.apply(this,arguments);this.currentPageId=0;this.lastSuccessfulId=-1};Y(eF,dF);
eF.prototype.restoredState=function(){return this.location.getState()};
var WQc=function(a,b){return a.location.subscribe(function(c){c.type==="popstate"&&setTimeout(function(){b(c.url,c.state,"popstate")})})},YQc=function(a,b,c){var d=c.extras;c=c.id;var e=d.replaceUrl;d=d.state;var f=a.location;var g=g===void 0?"":g;f.path()==f.normalize(b+kh(g))||e?(g=Object.assign({},d,XQc(a,c,a.browserPageId)),a.location.replaceState(b,"",g)):(g=Object.assign({},d,XQc(a,c,a.browserPageId+1)),a.location.go(b,"",g))},$Qc=function(a,b,c){c=c===void 0?!1:c;a.canceledNavigationResolution===
"computed"?(c=a.currentPageId-a.browserPageId,c!==0?a.location.historyGo(c):a.currentUrlTree===b.finalUrl&&c===0&&(VQc(a,b),ZQc(a))):a.canceledNavigationResolution==="replace"&&(c&&VQc(a,b),ZQc(a))},ZQc=function(a){a.location.replaceState(a.urlSerializer.serialize(a.rawUrlTree),"",XQc(a,a.lastSuccessfulId,a.currentPageId))},XQc=function(a,b,c){return a.canceledNavigationResolution==="computed"?{navigationId:b,"\u0275routerPageId":c}:{navigationId:b}};
da.Object.defineProperties(eF.prototype,{browserPageId:{configurable:!0,enumerable:!0,get:function(){if(this.canceledNavigationResolution!=="computed")return this.currentPageId;var a,b;return(b=(a=this.restoredState())==null?void 0:a.\u0275routerPageId)!=null?b:this.currentPageId}}});eF.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(eF)))(b||eF)}}();eF.\u0275prov=Dc({token:eF,factory:eF.\u0275fac,providedIn:"root"});var aRc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},bRc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},fF=function(){var a=this;this.disposed=!1;this.console=p(xx);this.stateManager=p(dF);this.options=p(VE,{optional:!0})||{};this.pendingTasks=p(Ug);this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";this.navigationTransitions=p(ZE);this.urlSerializer=p(JE);this.location=p(hi);this.urlHandlingStrategy=p(XE);this.injector=
p(Xe);this._events=new qf;this.navigated=!1;this.routeReuseStrategy=p($E);this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";var b,c;this.config=(c=(b=p(Yxa,{optional:!0}))==null?void 0:b.flat())!=null?c:[];p(iQc,{optional:!0});this.currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();this.eventsSubscription=new Pd;this.config=this.config.map(Xwa);this.navigated=!1;QQc(this.navigationTransitions,this).subscribe({error:function(d){a.console.warn(d)}});cRc(this)},
cRc=function(a){var b=a.navigationTransitions.events.subscribe(function(c){try{var d=a.navigationTransitions.currentTransition,e=Oc(a.navigationTransitions.currentNavigation);if(d!==null&&e!==null){var f=a.stateManager;c instanceof gr?f.stateMemento=SQc(f):c instanceof Sj?UQc(f,e):c instanceof SPc?f.urlUpdateStrategy==="eager"&&(e.extras.skipLocationChange||YQc(f,TQc(f,e),e)):c instanceof bQc?(UQc(f,e),f.urlUpdateStrategy!=="deferred"||e.extras.skipLocationChange||YQc(f,TQc(f,e),e)):c instanceof Qj&&
c.code!==1&&c.code!==0?$Qc(f,e):c instanceof Rj?$Qc(f,e,!0):c instanceof Pj&&(f.lastSuccessfulId=c.id,f.currentPageId=f.browserPageId);if(c instanceof Qj&&c.code!==0&&c.code!==1)a.navigated=!0;else if(c instanceof Pj)a.navigated=!0;else if(c instanceof cQc){var g=c.navigationBehaviorOptions,k=a.urlHandlingStrategy.merge(c.url,d.currentRawUrl),l=Object.assign({},{scroll:d.extras.scroll,browserUrl:d.extras.browserUrl,info:d.extras.info,skipLocationChange:d.extras.skipLocationChange,replaceUrl:d.extras.replaceUrl||
a.urlUpdateStrategy==="eager"||d.source!=="imperative"},g);dRc(a,k,"imperative",null,l,{resolve:d.resolve,reject:d.reject,promise:d.promise})}}c instanceof bQc||c instanceof cQc||a._events.next(c)}catch(r){a.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});a.eventsSubscription.add(b)};fF.prototype.initialNavigation=function(){eRc(this);this.navigationTransitions.hasRequestedNavigation||fRc(this,this.location.path(!0),"imperative",this.stateManager.restoredState())};
var eRc=function(a){a.nonRouterCurrentEntryChangeSubscription!=null||(a.nonRouterCurrentEntryChangeSubscription=WQc(a.stateManager,function(b,c,d){fRc(a,b,d,c)}))},fRc=function(a,b,c,d){var e={replaceUrl:!0},f=(d==null?0:d.navigationId)?d:null;d&&(d=Object.assign({},d),delete d.navigationId,delete d.\u0275routerPageId,Object.keys(d).length!==0&&(e.state=d));b=a.parseUrl(b);dRc(a,b,c,f,e).catch(function(g){a.disposed||a.injector.get(Re)(g)})};fF.prototype.ngOnDestroy=function(){this.dispose()};
fF.prototype.dispose=function(){this._events.unsubscribe();this.navigationTransitions.complete();this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0);this.disposed=!0;this.eventsSubscription.unsubscribe()};
var gF=function(a,b,c){var d=c=c===void 0?{}:c;c=d.relativeTo;var e=d.queryParams,f=d.fragment;f=d.preserveFragment?a.currentUrlTree.fragment:f;var g;switch((g=d.queryParamsHandling)!=null?g:a.options.defaultQueryParamsHandling){case "merge":g=Object.assign({},a.currentUrlTree.queryParams,e);break;case "preserve":g=a.currentUrlTree.queryParams;break;default:g=e||null}g!==null&&(g=gRc(g));try{var k=wwa(c?c.snapshot:a.routerState.snapshot.root)}catch(l){if(typeof b[0]!=="string"||b[0][0]!=="/")b=[];
k=a.currentUrlTree.root}return Dwa(k,b,g,f!=null?f:null,a.urlSerializer)},Ft=function(a,b,c){c=c===void 0?{skipLocationChange:!1}:c;b=Gj(b)?b:a.parseUrl(b);b=a.urlHandlingStrategy.merge(b,a.rawUrlTree);return dRc(a,b,"imperative",null,c)};fF.prototype.navigate=function(a,b){b=b===void 0?{skipLocationChange:!1}:b;for(var c=0;c<a.length;c++)if(a[c]==null)throw new Sc(4008,!1);return Ft(this,gF(this,a,b),b)};
fF.prototype.parseUrl=function(a){try{return this.urlSerializer.parse(a)}catch(b){return this.console.warn(Qea(4018,!1)),this.urlSerializer.parse("/")}};fF.prototype.isActive=function(a,b){var c;b===!0?c=Object.assign({},aRc):b===!1?c=Object.assign({},bRc):c=b;if(Gj(a))return cwa(this.currentUrlTree,a,c);a=this.parseUrl(a);return cwa(this.currentUrlTree,a,c)};
var gRc=function(a){return Object.entries(a).reduce(function(b,c){var d=m(c);c=d.next().value;d=d.next().value;d!==null&&d!==void 0&&(b[c]=d);return b},{})},dRc=function(a,b,c,d,e,f){if(a.disposed)return Promise.resolve(!1);if(f){var g=f.resolve;var k=f.reject;f=f.promise}else f=new Promise(function(r,w){g=r;k=w});var l=a.pendingTasks.add();cya(a,function(){queueMicrotask(function(){return a.pendingTasks.remove(l)})});MQc(a.navigationTransitions,{source:c,restoredState:d,currentUrlTree:a.currentUrlTree,
currentRawUrl:a.currentUrlTree,rawUrl:b,extras:e,resolve:g,reject:k,promise:f,currentSnapshot:a.routerState.snapshot,currentRouterState:a.routerState});return f.catch(function(r){return Promise.reject(r)})};
da.Object.defineProperties(fF.prototype,{currentUrlTree:{configurable:!0,enumerable:!0,get:function(){return this.stateManager.currentUrlTree}},rawUrlTree:{configurable:!0,enumerable:!0,get:function(){return this.stateManager.rawUrlTree}},events:{configurable:!0,enumerable:!0,get:function(){return this._events}},routerState:{configurable:!0,enumerable:!0,get:function(){return this.stateManager.routerState}},url:{configurable:!0,enumerable:!0,get:function(){return this.urlSerializer.serialize(this.currentUrlTree)}},
lastSuccessfulNavigation:{configurable:!0,enumerable:!0,get:function(){return this.navigationTransitions.lastSuccessfulNavigation}}});fF.\u0275fac=function(a){return new (a||fF)};fF.\u0275prov=Dc({token:fF,factory:fF.\u0275fac,providedIn:"root"});var hF=function(a,b,c,d,e,f){this.router=a;this.route=b;this.tabIndexAttribute=c;this.renderer=d;this.el=e;this.locationStrategy=f;this.reactiveHref=ng.apply(null,[null].concat(q([])));this.onChanges=new qf;this.applicationErrorHandler=p(Re);this.options=p(VE,{optional:!0});this.replaceUrl=this.skipLocationChange=this.preserveFragment=!1;this.routerLinkInput=null;this.reactiveHref.set(p(new kx("href"),{optional:!0}));var g;a=(g=e.nativeElement.tagName)==null?void 0:g.toLowerCase();var k,l,r;(this.isAnchorElement=
a==="a"||a==="area"||!!(typeof customElements==="object"&&((k=customElements.get(a))==null?0:(l=k.observedAttributes)==null?0:(r=l.includes)==null?0:r.call(l,"href"))))?hRc(this,"0"):iRc(this)},iRc=function(a){if(a.subscription===void 0&&a.isAnchorElement){var b=a.preserveFragment,c=function(e){return e==="merge"||e==="preserve"};b||(b=c(a.queryParamsHandling));var d;b||(b=!a.queryParamsHandling&&!c((d=a.options)==null?void 0:d.defaultQueryParamsHandling));b&&(a.subscription=a.router.events.subscribe(function(e){e instanceof
Pj&&jRc(a)}))}},hRc=function(a,b){if(a.tabIndexAttribute==null&&!a.isAnchorElement){var c=a.renderer;a=a.el.nativeElement;b!==null?c.setAttribute(a,"tabindex",b):c.removeAttribute(a,"tabindex")}};hF.prototype.ngOnChanges=function(){this.isAnchorElement&&(jRc(this),iRc(this));this.onChanges.next(this)};
hF.prototype.onClick=function(a,b,c,d,e){var f=this,g=this.urlTree;if(g===null||this.isAnchorElement&&(a!==0||b||c||d||e||typeof this.target==="string"&&this.target!="_self"))return!0;var k;(k=Ft(this.router,g,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}))==null||k.catch(function(l){f.applicationErrorHandler(l)});return!this.isAnchorElement};hF.prototype.ngOnDestroy=function(){var a;(a=this.subscription)==null||a.unsubscribe()};
var jRc=function(a){var b=a.urlTree,c,d;a.reactiveHref.set(b!==null&&a.locationStrategy?(d=(c=a.locationStrategy)==null?void 0:c.prepareExternalUrl(a.router.urlSerializer.serialize(b)))!=null?d:"":null)};
da.Object.defineProperties(hF.prototype,{href:{configurable:!0,enumerable:!0,get:function(){return Oc(this.reactiveHref)},set:function(a){this.reactiveHref.set(a)}},routerLink:{configurable:!0,enumerable:!0,set:function(a){a==null?(this.routerLinkInput=null,hRc(this,null)):(Gj(a)?this.routerLinkInput=a:this.routerLinkInput=Array.isArray(a)?a:[a],hRc(this,"0"))}},urlTree:{configurable:!0,enumerable:!0,get:function(){return this.routerLinkInput===null?null:Gj(this.routerLinkInput)?this.routerLinkInput:
gF(this.router,this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}});hF.\u0275fac=function(a){return new (a||hF)(Ve(fF),Ve(Lj),vga("tabindex"),Ve(ci),Ve(Hd),Ve(hy))};
hF.\u0275dir=af({type:hF,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(a,b){a&1&&N("click",function(c){return b.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)});a&2&&If("href",b.reactiveHref(),wja)("target",b.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",$g],skipLocationChange:[2,"skipLocationChange",
"skipLocationChange",$g],replaceUrl:[2,"replaceUrl","replaceUrl",$g],routerLink:"routerLink"},features:[jx]});var iF=function(a,b,c,d,e){var f=this;this.router=a;this.element=b;this.renderer=c;this.cdr=d;this.link=e;this.classes=[];this._isActive=!1;this.routerLinkActiveOptions={exact:!1};this.isActiveChange=new Ti;this.routerEventsSubscription=a.events.subscribe(function(g){g instanceof Pj&&f.update()})};iF.prototype.ngAfterContentInit=function(){var a=this;ce(this.links.changes,ce(null)).pipe(le()).subscribe(function(){a.update();kRc(a)})};
var kRc=function(a){var b;(b=a.linkInputChangesSubscription)==null||b.unsubscribe();b=[].concat(q(a.links.toArray()),[a.link]).filter(function(c){return!!c}).map(function(c){return c.onChanges});a.linkInputChangesSubscription=Vd(b).pipe(le()).subscribe(function(c){a._isActive!==lRc(a,a.router)(c)&&a.update()})};iF.prototype.ngOnChanges=function(){this.update()};iF.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe();var a;(a=this.linkInputChangesSubscription)==null||a.unsubscribe()};
iF.prototype.update=function(){var a=this;this.links&&this.router.navigated&&queueMicrotask(function(){var b=mRc(a);a.classes.forEach(function(c){b?a.renderer.addClass(a.element.nativeElement,c):a.renderer.removeClass(a.element.nativeElement,c)});b&&a.ariaCurrentWhenActive!==void 0?a.renderer.setAttribute(a.element.nativeElement,"aria-current",a.ariaCurrentWhenActive.toString()):a.renderer.removeAttribute(a.element.nativeElement,"aria-current");a._isActive!==b&&(a._isActive=b,a.cdr.markForCheck(),
a.isActiveChange.emit(b))})};var lRc=function(a,b){var c=a.routerLinkActiveOptions.paths?a.routerLinkActiveOptions:a.routerLinkActiveOptions.exact||!1;return function(d){return(d=d.urlTree)?b.isActive(d,c):!1}},mRc=function(a){var b=lRc(a,a.router);return a.link&&b(a.link)||a.links.some(b)};
da.Object.defineProperties(iF.prototype,{isActive:{configurable:!0,enumerable:!0,get:function(){return this._isActive}},routerLinkActive:{configurable:!0,enumerable:!0,set:function(a){this.classes=(Array.isArray(a)?a:a.split(" ")).filter(function(b){return!!b})}}});iF.\u0275fac=function(a){return new (a||iF)(Ve(fF),Ve(Hd),Ve(ci),Ve(Cx),Ve(hF,8))};
iF.\u0275dir=af({type:iF,selectors:[["","routerLinkActive",""]],contentQueries:function(a,b,c){a&1&&ig(c,hF,5);if(a&2){var d;lg(d=mg())&&(b.links=d)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[jx]});var nRc=function(){},jF=function(a,b,c,d){this.router=a;this.injector=b;this.preloadingStrategy=c;this.loader=d},oRc=function(a){a.subscription=a.router.events.pipe(ue(function(b){return b instanceof Pj}),ala(function(){return a.preload()})).subscribe(function(){})};jF.prototype.preload=function(){return pRc(this,this.injector,this.router.config)};jF.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};
var pRc=function(a,b,c){var d=[];c=m(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;e.providers&&!e._injector&&(e._injector=Fka(e.providers,b,"Route: "+e.path));var f=void 0,g=(f=e._injector)!=null?f:b,k=void 0;f=(k=e._loadedInjector)!=null?k:g;(e.loadChildren&&!e._loadedRoutes&&e.canLoad===void 0||e.loadComponent&&!e._loadedComponent)&&d.push(qRc(a,g,e));if(e.children||e._loadedRoutes)g=void 0,d.push(pRc(a,f,(g=e.children)!=null?g:e._loadedRoutes))}return Vd(d).pipe(le())},qRc=function(a,b,
c){return a.preloadingStrategy.preload(c,function(){var d=(c.loadChildren&&c.canLoad===void 0?Vd(a.loader.loadChildren(b,c)):ce(null)).pipe(ke(function(f){if(f===null)return ce(void 0);c._loadedRoutes=f.routes;c._loadedInjector=f.injector;var g;return pRc(a,(g=f.injector)!=null?g:b,f.routes)}));if(c.loadComponent&&!c._loadedComponent){var e=a.loader.loadComponent(b,c);return Vd([d,e]).pipe(le())}return d})};jF.\u0275fac=function(a){return new (a||jF)(Xc(fF),Xc(Xe),Xc(nRc),Xc(WE))};
jF.\u0275prov=Dc({token:jF,factory:jF.\u0275fac,providedIn:"root"});var rRc=new dd(""),kF=function(a){this.options=a;this.lastId=0;this.lastSource="imperative";this.restoredId=0;this.store={};this.urlSerializer=p(JE);this.zone=p(Rg);this.viewportScroller=p(OAc);this.transitions=p(ZE);var b;(b=this.options).scrollPositionRestoration||(b.scrollPositionRestoration="disabled");var c;(c=this.options).anchorScrolling||(c.anchorScrolling="disabled")};
kF.prototype.init=function(){if(this.options.scrollPositionRestoration!=="disabled")try{this.viewportScroller.window.history.scrollRestoration="manual"}catch(a){console.warn(Qea(2400,!1))}this.routerEventsSubscription=sRc(this);this.scrollEventsSubscription=tRc(this)};
var sRc=function(a){return a.transitions.events.subscribe(function(b){b instanceof gr?(a.store[a.lastId]=a.viewportScroller.getScrollPosition(),a.lastSource=b.navigationTrigger,a.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof Pj?(a.lastId=b.id,uRc(a,a.urlSerializer.parse(b.urlAfterRedirects).fragment)):b instanceof Sj&&b.code===0&&(a.lastSource=void 0,a.restoredId=0,uRc(a,a.urlSerializer.parse(b.url).fragment))})},tRc=function(a){return a.transitions.events.subscribe(function(b){if(b instanceof
aQc&&b.scrollBehavior!=="manual"){var c={behavior:"instant"};if(b.position)a.options.scrollPositionRestoration==="top"?a.viewportScroller.scrollToPosition([0,0],c):a.options.scrollPositionRestoration==="enabled"&&a.viewportScroller.scrollToPosition(b.position,c);else if(b.anchor&&a.options.anchorScrolling==="enabled"){c=a.viewportScroller;a:{var d=c.document;b=b.anchor;var e=d.getElementById(b)||d.getElementsByName(b)[0];if(e)b=e;else{if(typeof d.createTreeWalker==="function"&&d.body&&typeof d.body.attachShadow===
"function")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(Object.assign({},void 0,{left:d-f[0],top:e-f[1]}));b.focus()}}else a.options.scrollPositionRestoration!=="disabled"&&a.viewportScroller.scrollToPosition([0,0])}})},uRc=function(a,
b){var c,d=(c=Oc(a.transitions.currentNavigation))==null?void 0:c.extras.scroll;a.zone.runOutsideAngular(function(){return y(function(e){if(e.nextAddress==1)return z(e,new Promise(function(f){setTimeout(f);typeof requestAnimationFrame!=="undefined"&&requestAnimationFrame(f)}),2);a.zone.run(function(){a.transitions.events.next(new aQc(a.lastSource==="popstate"?a.store[a.restoredId]:null,b,d))});ae(e)})})};
kF.prototype.ngOnDestroy=function(){var a;(a=this.routerEventsSubscription)==null||a.unsubscribe();var b;(b=this.scrollEventsSubscription)==null||b.unsubscribe()};kF.\u0275fac=function(){We()};kF.\u0275prov=Dc({token:kF,factory:kF.\u0275fac});new dd("",{providedIn:"root",factory:function(){return!1}});var vRc=new dd("",{factory:function(){return new qf}}),wRc=new dd("",{providedIn:"root",factory:function(){return 1}}),xRc=new dd("");new dd("");var yRc=[hi,{provide:JE,useClass:KE},fF,NE,{provide:Lj,useFactory:function(){return p(fF).routerState.root}},WE,[]],lF=function(){};lF.\u0275fac=function(a){return new (a||lF)};lF.\u0275mod=$e({type:lF});lF.\u0275inj=Fc({});var zRc=new dd("");var ARc=["textarea"],BRc=new dd("MessageInputTemplate"),mF=function(){var a=this;this.threadService=p(FD);this.routingService=p(BA);this.experimentsService=p(qA);this.userContextService=p(oC);this.overridesService=p(AA);this.inputText=toa.apply(null,q([]));this.submitMessage=Ng();this.textarea=Pg.apply(null,["textarea"].concat(q([])));this.ve={DuckieChatMessageSendButton:201478};this.isDuckieThinking$=this.threadService.isDuckieThinking$;this.userProvidedContextEnabled=this.experimentsService.userProvidedContextEnabled;
this.currentThread$=this.threadService.currentThread$;this.sessionStateDeprecated=4;this.responseMetadataEnabled=this.experimentsService.responseMetadataEnabled;this.duckieStreamingMvpEnabled=this.experimentsService.duckieStreamingMvpEnabled;this.userProvidedContextSources$=this.userContextService.suggestedUserProvidedContextContent$;this.userProvidedContextServiceError$=this.userContextService.userContextServiceError$;this.disclaimer=this.overridesService.overrideDisclaimer;this.agentName=this.overridesService.overrideAgentMessageDisplayName||
"Duckie";ef(function(){a.inputText()&&CRc(a)})};mF.prototype.ngAfterViewInit=function(){var a=this;CRc(this);this.routingService.events.pipe(ue(function(b){return b instanceof Pj})).subscribe(function(){CRc(a)})};var CRc=function(a){var b;(b=a.textarea())==null||b.nativeElement.focus()};mF.prototype.cancelDuckieStream=function(){this.threadService.cancelDuckieStream()};mF.prototype.removeContextSource=function(a){RIc(this.userContextService,a)};
var DRc=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return z(d,fe(a.isDuckieThinking$),2);if(c=d.yieldResult)return d.return();!b.shiftKey&&!b.isComposing&&a.inputText()&&(a.inputText()||"").trim().length>0&&(b.preventDefault(),a.sendMessage());ae(d)})};mF.prototype.sendMessage=function(){this.submitMessage.emit(this.inputText()||"");this.inputText.set("")};mF.\u0275fac=function(a){return new (a||mF)};
mF.\u0275cmp=D({type:mF,selectors:[["message-input"]],viewQuery:function(a,b){a&1&&og(b.textarea,ARc);a&2&&pg()},hostAttrs:[1,"padded-m-left","padded-right","flex-column","gap-xs"],inputs:{inputText:[1,"inputText"]},outputs:{inputText:"inputTextChange",submitMessage:"submitMessage"},decls:17,vars:18,consts:[["textarea",""],[1,"flex-row","flex-row-wrap","padded-xs-left","align-items-center"],[1,"full-width","flex-row","align-items-center","gap-xs"],"appearance outline floatLabel auto subscriptSizing dynamic".split(" "),
["id","ask-duckie-input","matInput","","placeholder","Ask anything","aria-label","Textarea to input message",1,"ask-duckie-input",3,"ngModelChange","keydown.enter","disabled","ngModel","ve","veClick","veImpression"],["color","primary","id","ask-duckie-submit","mat-icon-button","","aria-label","Stop Duckie's response",1,"submit-message"],["color","primary","id","ask-duckie-submit","mat-icon-button","",1,"submit-message",3,"disabled"],[1,"duckie-disclaimer","text-secondary","type-xs"],[1,"duckie-disclaimer-content"],
[1,"error-message","type-s","padded-s-right","flex-row","align-items-center","gap-xs"],[1,"type-s","padded-s-right","flex-row","align-items-center","gap-xs","duckie-link-following"],[1,"type-s","padded-s-right","medium"],[3,"label","iconUrl","linkUrl","showRemoveButton"],[3,"removeContextSource","label","iconUrl","linkUrl","showRemoveButton"],[1,"error-icon"],[1,"medium"],["href","http://go/duckie-link-following","target","_blank",1,"type-s","flex-row","align-items-center","gap-xs"],["inline",""],
["color","primary","id","ask-duckie-submit","mat-icon-button","","aria-label","Stop Duckie's response",1,"submit-message",3,"click"],[1,"filled"],["color","primary","id","ask-duckie-submit","mat-icon-button","",1,"submit-message",3,"click","disabled"]],template:function(a,b){if(a&1){var c=t();Zf(0);T(1,"async");Zf(2);T(3,"async");F(4,iya,4,1,"div",1);K(5,"div",2)(6,"mat-form-field",3)(7,"textarea",4,0);T(9,"async");N("ngModelChange",function(e){u(c);if(b.userProvidedContextEnabled){var f=b.userContextService;
f.suggestedUserProvidedContextContentInternal$.next(VIc(f,e,!0))}return v()});Cg("ngModelChange",function(e){u(c);Bg(b.inputText,e)||(b.inputText=e);return v(e)});N("keydown.enter",function(e){u(c);return v(DRc(b,e))});Q(10,"    ");L()();F(11,jya,3,0,"button",5);T(12,"async");Kf(13,kya,5,6,"button",6);L();K(14,"p",7)(15,"span",8);Q(16);L()()}if(a&2){var d;$f(U(1,8,b.userProvidedContextSources$));B(2);$f(U(3,11,b.userProvidedContextServiceError$));B(2);G(b.userProvidedContextEnabled?4:-1);B(3);I("disabled",
((d=U(9,14,b.currentThread$))==null?null:d.sessionState)===b.sessionStateDeprecated&&!b.responseMetadataEnabled);Ag("ngModel",b.inputText);I("ve",b.ve.DuckieChatMessageSendButton)("veClick",!0)("veImpression",!0);B(4);G(U(12,16,b.isDuckieThinking$)&&b.duckieStreamingMvpEnabled?11:13);B(5);S(" ",b.disclaimer||"Duckie can make mistakes. Consider double-checking its responses."," ")}},dependencies:[by,DE,xj,fE,mE,mB,kB,iB,UD,HD,SD,HE,VD,FE,Ly,Jy,ZD,hD,gD,pA,Tx],styles:["mat-form-field[_ngcontent-%COMP%]{--mdc-shape-small:calc(var(--base-px, 1rem)*28);-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}mat-form-field[_ngcontent-%COMP%]     .mat-mdc-text-field-wrapper{--mat-form-field-filled-container-shape:var(--mdc-shape-small);--mat-form-field-outlined-container-shape:var(--mdc-shape-small)}mat-form-field[_ngcontent-%COMP%]     .mat-mdc-form-field-infix{-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}mat-form-field[_ngcontent-%COMP%]   .ask-duckie-input[_ngcontent-%COMP%]{resize:none;field-sizing:content;max-height:18em}mat-form-field[_ngcontent-%COMP%]:not(.boost-specificity){font-size:calc(var(--base-px, 1rem)*14)}.duckie-disclaimer[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%}.duckie-disclaimer-content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;text-align:center}.error-message[_ngcontent-%COMP%]{color:var(--warn-high-contrast)}"],
changeDetection:0});var ERc=["customMessageInput"],nF=function(){this.inputText=Og.apply(null,q([]));this.submitMessage=Ng();this.messageInputTemplate=p(BRc,{optional:!0});this.customMessageInput=Pg.apply(null,["customMessageInput"].concat(q([{read:eg}])))};
nF.prototype.ngAfterViewInit=function(){var a=this;this.messageInputTemplate&&this.customMessageInput()&&(this.componentRef=this.customMessageInput().createComponent(this.messageInputTemplate),this.componentRef.instance.inputText=ng.apply(null,[this.inputText()].concat(q([]))),this.componentRef.instance.submitMessage.subscribe(function(b){a.submitMessage.emit(b)}))};nF.\u0275fac=function(a){return new (a||nF)};
nF.\u0275cmp=D({type:nF,selectors:[["message-input-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customMessageInput,ERc,eg);a&2&&pg()},inputs:{inputText:[1,"inputText"]},outputs:{submitMessage:"submitMessage"},decls:2,vars:1,consts:[["customMessageInput",""],[3,"inputText"],[3,"submitMessage","inputText"]],template:function(a,b){a&1&&F(0,lya,2,0,"ng-container")(1,mya,1,1,"message-input",1);a&2&&G(b.messageInputTemplate?0:1)},dependencies:[by,mF],encapsulation:2,changeDetection:0});var FRc=new dd("ReminderBlurbTemplate"),oF=function(){this.overridesService=p(AA);this.overrideAgentName=this.overridesService.overrideAgentMessageDisplayName};oF.\u0275fac=function(a){return new (a||oF)};
oF.\u0275cmp=D({type:oF,selectors:[["reminder-blurb"]],decls:13,vars:1,consts:[[1,"reminder-blurb"],[1,"title"],["href","http://go/duckie","target","_blank"],["href","http://go/code-ai-policy","target","_blank"]],template:function(a,b){a&1&&(Qf(0,"div",0)(1,"p",1),Q(2,"Reminder"),Rf(),Qf(3,"p"),Q(4," You may not prompt "),F(5,nya,2,1,"span")(6,oya,2,0,"a",2),Q(7," with user data or identifiable personal data (i.e. PII). Please review "),Qf(8,"a",3),Q(9,"go/code-ai-policy"),Rf(),Q(10," before using this tool or its outputs in production. "),
Rf(),Qf(11,"p"),Q(12," Note: because some Bets have their own AI policies, if you are part of a Bet, please review and follow any additional applicable policies. "),Rf()());a&2&&(B(5),G(b.overrideAgentName?5:6))},dependencies:[by],styles:[".reminder-blurb[_ngcontent-%COMP%]{background-color:var(--tonal-fill-blue);border:1px solid var(--primary-container);border-radius:1em;font-size:calc(var(--base-px, 1rem)*14);margin:1em 0;padding:1em}.reminder-blurb[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1em;font-weight:700;margin-bottom:.5em}.reminder-blurb[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .reminder-blurb[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:var(--tonal-blue)}"],
changeDetection:0});var GRc=["customReminderBlurb"],pF=function(){this.reminderBlurbTemplate=p(FRc,{optional:!0});this.customReminderBlurb=Pg.apply(null,["customReminderBlurb"].concat(q([{read:eg}])))};pF.prototype.ngAfterViewInit=function(){this.reminderBlurbTemplate&&this.customReminderBlurb()&&(this.componentRef=this.customReminderBlurb().createComponent(this.reminderBlurbTemplate))};pF.\u0275fac=function(a){return new (a||pF)};
pF.\u0275cmp=D({type:pF,selectors:[["reminder-blurb-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customReminderBlurb,GRc,eg);a&2&&pg()},decls:2,vars:1,consts:[["customReminderBlurb",""]],template:function(a,b){a&1&&F(0,pya,2,0,"ng-container")(1,qya,1,0,"reminder-blurb");a&2&&G(b.reminderBlurbTemplate?0:1)},dependencies:[by,oF],encapsulation:2,changeDetection:0});var HRc=function(a,b){return b.title},wya=function(a,b){return b.label},qF=function(){var a=this;this.ve={ProductionAgentZeroStateSuggestionChip:278387};this.threadService=p(FD);this.routingService=p(BA);this.overridesService=p(AA);this.configurationKey=Og.apply(null,q([]));this.pageId=Og.apply(null,q([]));this.draftQuery=ng.apply(null,[""].concat(q([])));this.isLoading=ng.apply(null,[!1].concat(q([])));this.onboardingExamples=tya(this.overridesService.overrideOnboardingExamplesList$.asObservable().pipe(Af(function(){a.isLoading.set(!0)}),
mf(800),Af(function(){a.isLoading.set(!1)})))};qF.prototype.sendQuestion=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,oMa(b.routingService,""),2):z(c,yOc(b.threadService,a),0)})};qF.\u0275fac=function(a){return new (a||qF)};
qF.\u0275cmp=D({type:qF,selectors:[["gpp-custom-onboarding"]],inputs:{configurationKey:[1,"configurationKey"],pageId:[1,"pageId"]},decls:6,vars:2,consts:[[1,"onboarding-list"],[1,"shimmer-line-container"],[1,"onboarding-section",3,"hidden"],[3,"submitMessage","inputText"],[1,"shimmer-line",2,"width","100%"],[1,"shimmer-line",2,"width","90%"],[1,"shimmer-line",2,"width","80%"],[1,"onboarding-section"],[1,"gmat-overline","title"],["color","primary","mat-stroked-button","",1,"prompt-button",3,"ve","veClick",
"aria-label"],["color","primary","mat-stroked-button","",1,"prompt-button",3,"click","ve","veClick","aria-label"]],template:function(a,b){a&1&&(M(0,"reminder-blurb-wrapper"),K(1,"div",0),F(2,uya,4,0,"div",1),Nf(3,xya,5,3,"div",2,HRc),L(),K(5,"message-input-wrapper",3),N("submitMessage",function(c){return b.sendQuestion(c)}),L());a&2&&(B(2),G(b.isLoading()?2:-1),B(),Of(b.onboardingExamples()),B(2),I("inputText",b.draftQuery()))},dependencies:[jB,gB,nF,pF,gD],styles:['[_nghost-%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;gap:8px;height:100%}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;overflow-y:auto;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;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]   .onboarding-section[_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;gap:8px;margin-bottom:16px}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]   .onboarding-section[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]   .onboarding-section.hidden[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .prompt-button[_ngcontent-%COMP%]{line-height:18px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-radius:36px;background-color:var(--xap-color-surface)}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%]   .shimmer-line-container[_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;gap:16px;padding:16px 0;width:300px}[_nghost-%COMP%]   .shimmer-line[_ngcontent-%COMP%]{height:16px;background:var(--xap-color-surface-container-high);position:relative;overflow:hidden;border-radius:4px}[_nghost-%COMP%]   .shimmer-line[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-100%;height:100%;width:100%;background:-webkit-gradient(linear,left top,right top,from(var(--xap-color-surface-container-high)),color-stop(50%,var(--xap-color-surface-container)),to(var(--xap-color-surface-container-high)));background:-webkit-linear-gradient(left,var(--xap-color-surface-container-high) 0,var(--xap-color-surface-container) 50%,var(--xap-color-surface-container-high) 100%);background:linear-gradient(to right,var(--xap-color-surface-container-high) 0,var(--xap-color-surface-container) 50%,var(--xap-color-surface-container-high) 100%);-webkit-animation:_ngcontent-%COMP%_shimmer 2.2s infinite;animation:_ngcontent-%COMP%_shimmer 2.2s infinite}@-webkit-keyframes _ngcontent-%COMP%_shimmer{to{left:100%}}@keyframes _ngcontent-%COMP%_shimmer{to{left:100%}}\n/*# sourceMappingURL=gpp_custom_onboarding.css.map */',
"[_nghost-%COMP%] { height: 100%; }"],changeDetection:0});/*

 Copyright (c) 2013 Marc J. Schmidt

 Use of this source code is governed by a MIT-style
 license that can be found in the LICENSE file or at
 https://opensource.org/licenses/MIT.
*/
"use strict";
var IRc=typeof window!=="undefined"?window:this,JRc=function(){function a(l,r){var w=Object.prototype.toString.call(l),x=0,C=l.length;if("[object Array]"===w||"[object NodeList]"===w||"[object HTMLCollection]"===w||"[object Object]"===w||"undefined"!==typeof jQuery&&l instanceof jQuery||"undefined"!==typeof Elements&&l instanceof Elements)for(;x<C;x++)r(l[x]);else r(l)}function b(l){if(!l.getBoundingClientRect)return{width:l.offsetWidth,height:l.offsetHeight};l=l.getBoundingClientRect();return{width:Math.round(l.width),
height:Math.round(l.height)}}function c(l,r){Object.keys(r).forEach(function(w){l.style[w]=r[w]})}if(typeof window==="undefined")return null;var d=typeof window!="undefined"&&Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:globalThis,e=d.requestAnimationFrame||d.mozRequestAnimationFrame||d.webkitRequestAnimationFrame||function(l){return d.setTimeout(l,20)},f=d.cancelAnimationFrame||d.mozCancelAnimationFrame||d.webkitCancelAnimationFrame||function(l){d.clearTimeout(l)},g=function(l,
r){function w(){var H=[];this.add=function(R){H.push(R)};var J,O;this.call=function(R){J=0;for(O=H.length;J<O;J++)H[J].call(this,R)};this.remove=function(R){var V=[];J=0;for(O=H.length;J<O;J++)H[J]!==R&&V.push(H[J]);H=V};this.length=function(){return H.length}}function x(H,J){if(H)if(H.resizedAttached)H.resizedAttached.add(J);else{H.resizedAttached=new w;H.resizedAttached.add(J);H.resizeSensor=document.createElement("div");H.resizeSensor.dir="ltr";H.resizeSensor.className="resize-sensor";var O={pointerEvents:"none",
position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"};J={position:"absolute",left:"0px",top:"0px",transition:"0s"};c(H.resizeSensor,O);var R=document.createElement("div");R.className="resize-sensor-expand";c(R,O);var V=document.createElement("div");c(V,J);R.appendChild(V);var ca=document.createElement("div");ca.className="resize-sensor-shrink";c(ca,O);O=document.createElement("div");c(O,J);c(O,{width:"200%",height:"200%"});
ca.appendChild(O);H.resizeSensor.appendChild(R);H.resizeSensor.appendChild(ca);H.appendChild(H.resizeSensor);J=(J=window.getComputedStyle(H))?J.getPropertyValue("position"):null;"absolute"!==J&&"relative"!==J&&"fixed"!==J&&"sticky"!==J&&(H.style.position="relative");var na=!1,ua=0,ia=b(H),Ga=0,ha=0,sa=!0;C=0;var xa=function(){var ub=H.offsetWidth,Wb=H.offsetHeight;V.style.width=ub+10+"px";V.style.height=Wb+10+"px";R.scrollLeft=ub+10;R.scrollTop=Wb+10;ca.scrollLeft=ub+10;ca.scrollTop=Wb+10},Qa=function(){if(sa){if(H.offsetWidth===
0&&H.offsetHeight===0){C||(C=e(function(){C=0;Qa()}));return}sa=!1}xa()};H.resizeSensor.resetSensor=Qa;var bb=function(){ua=0;na&&(Ga=ia.width,ha=ia.height,H.resizedAttached&&H.resizedAttached.call(ia))};J=function(){ia=b(H);(na=ia.width!==Ga||ia.height!==ha)&&!ua&&(ua=e(bb));Qa()};O=function(ub,Wb,lc){ub.attachEvent?ub.attachEvent("on"+Wb,lc):ub.addEventListener(Wb,lc)};O(R,"scroll",J);O(ca,"scroll",J);C=e(function(){C=0;Qa()})}}var C=0;a(l,function(H){x(H,r)});this.detach=function(H){C&&(f(C),C=
0);g.detach(l,H)};this.reset=function(){l.resizeSensor.resetSensor&&l.resizeSensor.resetSensor()}};g.reset=function(l){a(l,function(r){l.resizeSensor.resetSensor&&r.resizeSensor.resetSensor()})};g.detach=function(l,r){a(l,function(w){if(w){if(w.resizedAttached&&typeof r==="function"&&(w.resizedAttached.remove(r),w.resizedAttached.length()))return;w.resizeSensor&&(w.contains(w.resizeSensor)&&w.removeChild(w.resizeSensor),delete w.resizeSensor,delete w.resizedAttached)}})};if(typeof MutationObserver!==
"undefined"){var k=new MutationObserver(function(l){for(var r in l)if(l.hasOwnProperty(r))for(var w=l[r].addedNodes,x=0;x<w.length;x++)w[x].resizeSensor&&g.reset(w[x])});document.addEventListener("DOMContentLoaded",function(){k.observe(document.body,{childList:!0,subtree:!0})})}return g};typeof define==="function"&&define.amd?define(JRc):typeof exports==="object"?module.exports=JRc():IRc.ResizeSensor=JRc();var KRc=window.ResizeSensor;var rF=function(){this.eventsDomainSelector_=this.metricsDomainSelector_=this.appDomainSelector_=null};xw("awesomecharts.config.RestDomainsConfig",rF);rF.prototype.getApp=function(){return this.appDomainSelector_};rF.prototype.getApp=rF.prototype.getApp;rF.prototype.setApp=function(a){this.appDomainSelector_=LRc(this,a);return this};rF.prototype.setApp=rF.prototype.setApp;rF.prototype.getPublicApi=function(){return this.publicApiSelector_};rF.prototype.getPublicApi=rF.prototype.getPublicApi;
rF.prototype.setPublicApi=function(a){this.publicApiSelector_=LRc(this,a);return this};rF.prototype.setPublicApi=rF.prototype.setPublicApi;rF.prototype.getPublicCharts=function(){return this.publicChartsSelector_};rF.prototype.getPublicCharts=rF.prototype.getPublicCharts;rF.prototype.setPublicCharts=function(a){this.publicChartsSelector_=LRc(this,a);return this};rF.prototype.setPublicCharts=rF.prototype.setPublicCharts;rF.prototype.getMetrics=function(){return this.metricsDomainSelector_};
rF.prototype.getMetrics=rF.prototype.getMetrics;rF.prototype.setMetrics=function(a){this.metricsDomainSelector_=LRc(this,a);return this};rF.prototype.setMetrics=rF.prototype.setMetrics;rF.prototype.getEvents=function(){return this.eventsDomainSelector_};rF.prototype.getEvents=rF.prototype.getEvents;rF.prototype.setEvents=function(a){this.eventsDomainSelector_=LRc(this,a);return this};rF.prototype.setEvents=rF.prototype.setEvents;rF.prototype.setIterFactory=function(a){this.iterFactory_=a};
rF.prototype.setIterFactory=rF.prototype.setIterFactory;var LRc=function(a,b){if(!b)return null;typeof b==="string"&&(b=[b]);Array.isArray(b)&&(b=a.iterFactory_(b));return b};var MRc=function(){};xw("awesomecharts.interfaces.AnalyticsInterface",MRc);MRc.prototype.sinceLoad=function(){};MRc.prototype.sinceLoad=MRc.prototype.sinceLoad;var sF=function(){};xw("awesomecharts.interfaces.AuthInterface",sF);sF.prototype.checkAuth=function(){};sF.prototype.checkAuth=sF.prototype.checkAuth;sF.prototype.isAuthInProgress=function(){};sF.prototype.isAuthInProgress=sF.prototype.isAuthInProgress;sF.prototype.isReady=function(){};sF.prototype.isReady=sF.prototype.isReady;sF.prototype.request=function(){};sF.prototype.request=sF.prototype.request;sF.prototype.clear=function(){};sF.prototype.clear=sF.prototype.clear;
sF.prototype.handleRequestError=function(){};sF.prototype.handleRequestError=sF.prototype.handleRequestError;sF.prototype.authorizeRequest=function(){};sF.prototype.authorizeRequest=sF.prototype.authorizeRequest;var NRc=function(){};NRc.prototype.sinceLoad=function(){};
var tF=function(){this.qnAuth_=this.auth_=null;this.throwPartials_=!0;this.restDomainsConfig_=new rF;this.colorTheme_=this.dateTimeDisplayFormatter_=this.timezonePreference_=null;this.whitelist_={};this.baseUrls_={gcm_v3:"https://monitoring.googleapis.com"};this.analytics_=new NRc;this.forceSync_=!1;this.stats_={transportRead:[],chartLoading:[],dashboardLoading:[],chartErrors:0};this.timezoneUtils_={timezoneOffset:function(){return-(new Date).getTimezoneOffset()},localOffset:function(){return-(new Date).getTimezoneOffset()}};
this.useTerminatingDrawQueue=!1};tF.prototype.setAuth=function(a){this.auth_=a;return this};tF.prototype.setAuth=tF.prototype.setAuth;tF.prototype.setQnAuth=function(a){this.qnAuth_=a;return this};tF.prototype.setQnAuth=tF.prototype.setQnAuth;tF.prototype.getAuth=function(){return this.auth_};tF.prototype.getAuth=tF.prototype.getAuth;tF.prototype.getQnAuth=function(){return this.qnAuth_};tF.prototype.getQnAuth=tF.prototype.getQnAuth;
tF.prototype.setThrowPartials=function(a){this.throwPartials_=a;return this};tF.prototype.setThrowPartials=tF.prototype.setThrowPartials;tF.prototype.getThrowPartials=function(){return this.throwPartials_};tF.prototype.getThrowPartials=tF.prototype.getThrowPartials;tF.prototype.setTimezoneUtils=function(a){this.timezoneUtils_=a;return this};tF.prototype.setTimezoneUtils=tF.prototype.setTimezoneUtils;tF.prototype.getTimezoneUtils=function(){return this.timezoneUtils_};
tF.prototype.getTimezoneUtils=tF.prototype.getTimezoneUtils;tF.prototype.setAnalytics=function(a){this.analytics_=a;return this};tF.prototype.setAnalytics=tF.prototype.setAnalytics;tF.prototype.getAnalytics=function(){return this.analytics_||null};tF.prototype.getAnalytics=tF.prototype.getAnalytics;tF.prototype.setTimezone=function(a){this.timezonePreference_=a;return this};tF.prototype.setTimezone=tF.prototype.setTimezone;
tF.prototype.getTimezone=function(){return this.timezonePreference_?this.timezonePreference_:window&&window.sd&&window.sd.timezonePreference?window.sd.timezonePreference:"LocalTime"};tF.prototype.getTimezone=tF.prototype.getTimezone;tF.prototype.setDateTimeDisplayFormatter=function(a){this.dateTimeDisplayFormatter_=a;return this};tF.prototype.setDateTimeDisplayFormatter=tF.prototype.setDateTimeDisplayFormatter;tF.prototype.getDateTimeDisplayFormatter=function(){return this.dateTimeDisplayFormatter_};
tF.prototype.getDateTimeDisplayFormatter=tF.prototype.getDateTimeDisplayFormatter;tF.prototype.setColorTheme=function(a){this.colorTheme_=a;return this};tF.prototype.setColorTheme=tF.prototype.setColorTheme;tF.prototype.getColorTheme=function(){return this.colorTheme_?this.colorTheme_:window&&window.sd&&window.sd.colorTheme?window.sd.colorTheme:null};tF.prototype.getColorTheme=tF.prototype.getColorTheme;tF.prototype.getRestDomainsConfig=function(){return this.restDomainsConfig_};
tF.prototype.getRestDomainsConfig=tF.prototype.getRestDomainsConfig;tF.prototype.setWhitelist=function(a,b){this.whitelist_[a]=b;return this};tF.prototype.setWhitelist=tF.prototype.setWhitelist;
var ORc=function(a,b,c){Array.isArray(c)||(c=[]);return Object.keys(a.whitelist_).concat(c).some(function(d){return d.indexOf(b)===0&&(!!a.whitelist_[d]||c.indexOf(d)>=0)})},PRc=function(a,b,c){return Array.isArray(c)&&c.includes(b)?!0:!!a.whitelist_[b]},RRc=function(a){var b=null;QRc(a).forEach(function(c){c.indexOf("chart-throttle-")===0&&(b=Math.min(c.substring(15),b===null?Infinity:b))});return b},QRc=function(a){return Object.keys(a.whitelist_).filter(function(b){return a.whitelist_[b]})};
tF.prototype.setBaseUrl=function(a,b){this.baseUrls_[a]=b};tF.prototype.setBaseUrl=tF.prototype.setBaseUrl;tF.prototype.getBaseUrl=function(){return this.baseUrls_[void 0]};tF.prototype.setAsyncEventWrapperFn=function(){};tF.prototype.setAsyncEventWrapperFn=tF.prototype.setAsyncEventWrapperFn;tF.prototype.setForceSync=function(a){this.forceSync_=a};tF.prototype.setForceSync=tF.prototype.setForceSync;tF.prototype.isForceSync=function(){return this.forceSync_};tF.prototype.isForceSync=tF.prototype.isForceSync;
tF.prototype.transportReadEvent=function(a){var b=this.stats_.transportRead;b.push(a);b.length>1E3&&b.shift()};tF.prototype.transportReadEvent=tF.prototype.transportReadEvent;tF.prototype.chartLoadingEvent=function(a,b){var c=this.stats_.chartLoading;c.push(a);c.length>1E3&&c.shift();b&&this.stats_.chartErrors++};tF.prototype.chartLoadingEvent=tF.prototype.chartLoadingEvent;tF.prototype.dashboardLoadingEvent=function(a){var b=this.stats_.dashboardLoading;b.push(a);b.length>1E3&&b.shift()};
tF.prototype.dashboardLoadingEvent=tF.prototype.dashboardLoadingEvent;
tF.prototype.showStats=function(){PRc(this,"chart-adaptive")?console.log("tile loading is on."):console.log("tile loading is off.");PRc(this,"chart-grpc")?console.log("grpc is on."):console.log("grpc is off.");console.log("throttle is "+RRc(this));var a=0,b=0;performance&&performance.getEntries&&performance.getEntries().forEach(function(c){!c.name||c.name.indexOf("/batch")===-1&&c.name.indexOf("/timeSeries?")===-1&&c.name.indexOf("/ListTimeSeries")===-1||(a+=.5,b+=+c.duration)});a>0&&(console.log("XHRs:",
a),console.log("average XHR latency:",b/a));a=this.stats_.transportRead.length;b=0;this.stats_.transportRead.forEach(function(c){b+=+c});console.log("transport reads:",a);console.log("average transport read latency:",a===0?"n/a":b/a);a=this.stats_.chartLoading.length;b=0;this.stats_.chartLoading.forEach(function(c){b+=+c});console.log("charts:",a);console.log("average chart latency:",a===0?"n/a":b/a);console.log("chart errors:",this.stats_.chartErrors);this.stats_.dashboardLoading.forEach(function(c){console.log("dashboard latency:",
c)});console.log("XHR latency includes stalled time and network time, per tile.");console.log("transport latency includes stalled time, network time, and parse time, per tile.");console.log("chart latency includes stalled time, network time, parse time, translate, and merge, per chart.");console.log("dashboard latency includes stalled, network, parse, translate, merge, and draw, per dashboard.")};tF.prototype.showStats=tF.prototype.showStats;
tF.prototype.doUseDataWorkers=function(a){return typeof self.Worker==="function"?PRc(this,"chart-data-workers",a)||ORc(this,"chart-override-performance-",a)?!0:ORc(this,"chart-performance-",a)&&PRc(this,"chart-rollout-performance",a):!1};tF.prototype.doUseDataWorkers=tF.prototype.doUseDataWorkers;tF.prototype.setUseTerminatingDrawQueue=function(a){this.useTerminatingDrawQueue=a};tF.prototype.setUseTerminatingDrawQueue=tF.prototype.setUseTerminatingDrawQueue;
tF.prototype.getUseTerminatingDrawQueue=function(){return this.useTerminatingDrawQueue};tF.prototype.getUseTerminatingDrawQueue=tF.prototype.getUseTerminatingDrawQueue;var uF=new tF;xw("awesomecharts.config.settings",uF);var yya={};var vF=function(){Mj.call(this,{type:"@ngrx/store/init"})};Y(vF,Mj);vF.create=Mj.create;vF.prototype.next=function(a){if(typeof a==="function")throw new TypeError("ec");if(typeof a==="undefined")throw new TypeError("fc");if(typeof a.type==="undefined")throw new TypeError("gc");Mj.prototype.next.call(this,a)};vF.prototype.complete=function(){};vF.prototype.ngOnDestroy=function(){Mj.prototype.complete.call(this)};vF.\u0275fac=function(a){return new (a||vF)};vF.\u0275prov=Dc({token:vF,factory:vF.\u0275fac});
var SRc=[vF];var TRc=new dd("@ngrx/store Internal Root Guard"),URc=new dd("@ngrx/store Internal Initial State"),VRc=new dd("@ngrx/store Initial State"),WRc=new dd("@ngrx/store Reducer Factory"),XRc=new dd("@ngrx/store Internal Reducer Factory Provider"),YRc=new dd("@ngrx/store Initial Reducers"),ZRc=new dd("@ngrx/store Internal Initial Reducers"),$Rc=new dd("@ngrx/store Store Features"),aSc=new dd("@ngrx/store Internal Store Reducers"),bSc=new dd("@ngrx/store Internal Feature Reducers"),cSc=new dd("@ngrx/store Internal Feature Configs"),
dSc=new dd("@ngrx/store Internal Store Features"),eSc=new dd("@ngrx/store Internal Feature Reducers Token"),fSc=new dd("@ngrx/store Feature Reducers"),gSc=new dd("@ngrx/store User Provided Meta Reducers"),hSc=new dd("@ngrx/store Meta Reducers"),iSc=new dd("@ngrx/store Internal Resolved Meta Reducers"),jSc=new dd("@ngrx/store User Runtime Checks Config"),kSc=new dd("@ngrx/store Internal User Runtime Checks Config"),Tya=new dd("@ngrx/store Internal Runtime Checks"),Sya=new dd("@ngrx/store Check if Action types are unique");
new dd("@ngrx/store Root Store Provider");new dd("@ngrx/store Feature State Provider");var lSc=function(){Td.apply(this,arguments)};Y(lSc,Td);lSc.create=Td.create;var wF=function(){vF.apply(this,arguments)};Y(wF,vF);wF.create=vF.create;wF.\u0275prov=vF.\u0275prov;wF.\u0275fac=vF.\u0275fac;var xF=function(a,b,c,d){Mj.call(this,d(c,b));this.dispatcher=a;this.initialState=b;this.reducers=c;this.reducerFactory=d};Y(xF,Mj);xF.create=Mj.create;
var nSc=function(a,b){b=b.reduce(function(c,d){var e=d.reducers;var f=d.reducerFactory;var g=d.metaReducers;var k=d.initialState;d=d.key;e=typeof e==="function"?Kya(g)(e,k):Jya(f,g)(e,k);c[d]=e;return c},{});mSc(a,b)},pSc=function(a,b){oSc(a,b.map(function(c){return c.key}))},mSc=function(a,b){a.reducers=Object.assign({},a.reducers,b);qSc(a,Object.keys(b))},oSc=function(a,b){b.forEach(function(c){a.reducers=Hya(a.reducers,c)});qSc(a,b)},qSc=function(a,b){a.next(a.reducerFactory(a.reducers,a.initialState));
a.dispatcher.next({type:"@ngrx/store/update-reducers",features:b})};xF.prototype.ngOnDestroy=function(){this.complete()};xF.\u0275fac=function(a){return new (a||xF)(Xc(wF),Xc(VRc),Xc(YRc),Xc(WRc))};xF.\u0275prov=Dc({token:xF,factory:xF.\u0275fac});var rSc=[xF,{provide:lSc,useExisting:xF},{provide:wF,useExisting:vF}];var yF=function(){qf.apply(this,arguments)};Y(yF,qf);yF.create=qf.create;yF.prototype.ngOnDestroy=function(){this.complete()};yF.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(yF)))(b||yF)}}();yF.\u0275prov=Dc({token:yF,factory:yF.\u0275fac});var sSc=[yF];var tSc=function(){Td.apply(this,arguments)};Y(tSc,Td);tSc.create=Td.create;var zF=function(a,b,c,d){Mj.call(this,d);var e=this;this.stateSubscription=a.pipe(Fha()).pipe(Cf(b)).pipe(xla(Wya,{state:d})).subscribe(function(f){var g=f.state;f=f.action;e.next(g);c.next(f)});this.state=tya(this,{manualCleanup:!0,requireSync:!0})};Y(zF,Mj);zF.create=Mj.create;zF.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe();this.complete()};zF.INIT="@ngrx/store/init";
zF.\u0275fac=function(a){return new (a||zF)(Xc(vF),Xc(lSc),Xc(yF),Xc(VRc))};zF.\u0275prov=Dc({token:zF,factory:zF.\u0275fac});var uSc=[zF,{provide:tSc,useExisting:zF}];var AF=function(a,b,c,d){this.actionsObserver=b;this.reducerManager=c;this.injector=d;this.source=a;this.state=a.state};Y(AF,Td);AF.create=Td.create;h=AF.prototype;h.select=function(a){return ak.call.apply(ak,[null,a].concat(q($c.apply(1,arguments))))(this)};h.lift=function(a){var b=new AF(this,this.actionsObserver,this.reducerManager);b.operator=a;return b};h.dispatch=function(a,b){if(typeof a==="function")return vSc(this,a,b);this.actionsObserver.next(a)};h.next=function(a){this.actionsObserver.next(a)};
h.error=function(a){this.actionsObserver.error(a)};h.complete=function(){this.actionsObserver.complete()};var vSc=function(a,b,c){Aya(a.injector);var d;if((c=c==null?void 0:c.injector)!=null)var e=c;else a:{try{e=p(ye);break a}catch(f){}e=void 0}e=(d=e)!=null?d:a.injector;return ef(function(){var f=b();Oc(function(){return a.dispatch(f)})},{injector:e})};AF.\u0275fac=function(a){return new (a||AF)(Xc(tSc),Xc(vF),Xc(xF),Xc(ye))};AF.\u0275prov=Dc({token:AF,factory:AF.\u0275fac});var wSc=[AF];var BF=function(){};BF.\u0275fac=function(a){return new (a||BF)(Xc(vF),Xc(lSc),Xc(yF),Xc(AF),Xc(TRc,8),Xc(Sya,8))};BF.\u0275mod=$e({type:BF});BF.\u0275inj=Fc({});var CF=function(a,b,c){this.features=a;this.reducerManager=c;a=a.map(function(d,e){e=b.shift()[e];return Object.assign({},d,{reducers:e,initialState:Xya(d.initialState)})});nSc(c,a)};CF.prototype.ngOnDestroy=function(){pSc(this.reducerManager,this.features)};
CF.\u0275fac=function(a){return new (a||CF)(Xc(dSc),Xc(fSc),Xc(xF),Xc(BF),Xc(Sya,8))};CF.\u0275mod=$e({type:CF});CF.\u0275inj=Fc({});var DF=Uj("[AC] Add chart",Wj()),EF=Uj("[AC] Remove chart",Wj()),FF=Uj("[AC] Rename chart",Wj()),xSc=Uj("[AC] Remove ChartGroup",Wj()),ySc=Uj("[AC] Add X Axis",Wj()),zSc=Uj("[AC] Remove X Axis",Wj()),ASc=Uj("[AC] Add Categorical Axis",Wj()),BSc=Uj("[AC] Remove Categorical Axis",Wj()),CSc=Uj("[AC] Add Layer",Wj()),DSc=Uj("[AC] Remove layer",Wj()),GF=Uj("[AC] Rename layer",Wj()),Yya=Uj("[AC] Batch actions",Wj()),Zya=new WeakMap;var HF=function(a){this.selectorService=a;this.logger=null;this.setupCalled=!1;this.stateObservableSwitcher=new Mj(ce({previousValue:null,currentValue:null}));this.stateObservableInternal=this.stateObservableSwitcher.pipe(yf(function(b){return b}));this.store=p(AF)},IF=function(a,b){return a.scopeObservable.pipe(yf(function(c){return a.store.pipe(ak(b(c)))}),vf({bufferSize:1,refCount:!0}))};
HF.prototype.selectorFactoryToObservable=function(a){var b=this;return this.scopeObservable.pipe(yf(function(c){return b.selectorService.getSelection(a,c)}),vf({bufferSize:1,refCount:!0}))};HF.prototype.select=function(a){var b=this,c=void 0;this.scopeObservable.pipe(yf(function(d){return b.selectorService.getSelection(a,d)}),lf(1)).subscribe(function(d){c=d});return c};HF.prototype.setup=function(a){this.setupCalled||(this.stateObservable=ESc(a.stateSelectionObservables),this.setupCalled=!0)};
var ESc=function(a){var b=Object.keys(a);return ie(Object.values(a)).pipe(A(function(c){for(var d={},e=0;e<b.length;e++)d[b[e]]=c[e];return d}),xf(null),tf(),A(gk),vf({bufferSize:1,refCount:!0}))};da.Object.defineProperties(HF.prototype,{stateObservable:{configurable:!0,enumerable:!0,set:function(a){this.stateObservableSwitcher.next(a)},get:function(){return this.stateObservableInternal}}});var pk=function(a){return Zj(function(b){return b[a]},function(b){return b})}("awesomecharts");var ik=function(a){this.getKey=a.getKey;this.getSelector=a.getSelector},jk=Yj(function(a){return Xj(a,aza,bza)});var FSc=new ik({getKey:dza,getSelector:function(){return ce(Zj(eza(),function(a){return a}))}}),GSc=new ik({getKey:dza,getSelector:function(a){var b=a.chartGroupId;var c=a.chartId;return ce(Zj(eza(),function(d){return(d==null?void 0:d.chartGroupId)===b&&(d==null?void 0:d.chartId)===c}))}});var hza=Zj(pk,function(a){return a.resize}),HSc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ce(Zj(hza,function(c){return c.entities[b]}))}}),ISc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ce(Zj(sk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.height-b.margins.top-b.margins.bottom)}))}}),JSc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ce(Zj(sk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.width-
b.margins.left-b.margins.right)}))}}),KSc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ce(Zj(sk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.margins.top)}))}}),LSc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ce(Zj(sk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.margins.left)}))}}),MSc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ce(Zj(sk({chartId:a.chartId}),function(b){if(b)return Math.max(0,
b.width-b.margins.right)}))}}),NSc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ce(Zj(sk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.height-b.margins.bottom)}))}}),OSc=kk(function(a){return a.chartId},function(a,b){if(a!==void 0&&b!==void 0)return{bodyLeft:a,bodyRight:b}},LSc,MSc),PSc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ce(Zj(sk({chartId:a.chartId}),function(b){return b==null?void 0:b.width}))}}),QSc=new ik({getKey:function(a){return a.chartId},
getSelector:function(a){return ce(Zj(sk({chartId:a.chartId}),function(b){return b==null?void 0:b.height}))}}),RSc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ce(Zj(sk({chartId:a.chartId}),function(b){return b==null?void 0:b.margins}))}}),SSc=new ik({getKey:function(a){return"chartId:"+a.chartId+",layerId:"+a.layerId},getSelector:function(a){var b=a.chartId;var c=a.layerId;return ce(Zj(sk({chartId:b}),function(d){var e;return(e=d==null?void 0:d.reservedMarginsByLayer.entities[c])!=
null?e:void 0}))}}),TSc=new ik({getKey:function(a){return a.chartId},getSelector:function(a,b){return ie([b.getSelector(QSc,a),b.getSelector(PSc,a),b.getSelector(RSc,a)]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;d=d.next().value;return Zj(c,e,d,function(f,g,k){if(f!==void 0&&f>0&&g!==void 0&&g>0&&k!==void 0)return{height:f,width:g,margins:k}})}))}}),JF=kk(nk,function(a,b,c){if(a&&b!==void 0&&c!==void 0)return Object.assign({},a,{chartWidth:b,chartHeight:c})},kk(nk,function(a,
b,c,d,e,f){if(a!==void 0&&b!==void 0&&c!==void 0&&d!==void 0&&e!==void 0&&f!==void 0)return{bodyTop:a,bodyLeft:b,bodyRight:c,bodyBottom:d,bodyWidth:e,bodyHeight:f}},KSc,LSc,MSc,NSc,JSc,ISc),PSc,QSc);var USc=function(a){if(!Array.isArray(a))return null;var b=[],c;for(c=0;c<a.length;++c){var d=a[c];Array.isArray(d)?b=b.concat(d):b.push(d)}return b},iza=function(a,b){if(!Array.isArray(a))return-1;for(var c=a.length-1;c>=0;--c)if(b(a[c]))return c;return-1};var KF={},LF=function(a){this.name=this.name||"ACError";this.code=this.code||500;this.message=this.message||a||"An unknown error occurred";this.details={}};xw("awesomecharts.utils.errors.ACError",LF);KF.ACError=LF;yw(LF,Error);var VSc=function(a){this.name="RequestAbortedError";this.message=a||"";this.code=499;LF.call(this)};KF.RequestAbortedError=VSc;yw(VSc,LF);var WSc=function(a){this.name="ServiceUnavailableError";this.message=a||"";this.code=503;LF.call(this)};KF.ServiceUnavailableError=WSc;
yw(WSc,LF);var XSc=function(a){this.name="TooManyRequestsError";this.message=a||"";this.code=429;LF.call(this)};KF.TooManyRequestsError=XSc;yw(XSc,LF);var YSc=function(a,b){this.code=415;this.name="ContentTypeError";this.message=a||this.name+" for path "+b;LF.call(this)};xw("awesomecharts.utils.errors.ContentTypeError",YSc);KF.ContentTypeError=YSc;yw(YSc,LF);var ZSc=function(a){this.code=200;this.name="NoDataError";this.message=a||"Query response did not contain any data.";LF.call(this)};
xw("awesomecharts.utils.errors.NoDataError",ZSc);KF.NoDataError=ZSc;yw(ZSc,LF);var $Sc=function(a,b){this.status=b;this.code=403;this.name="UnauthorizedError";this.message=a||"You do not have permissions for this request.";LF.call(this)};xw("awesomecharts.utils.errors.UnauthorizedError",$Sc);KF.UnauthorizedError=$Sc;yw($Sc,LF);var aTc=function(a,b){this.code=404;this.name="NotFoundError";this.message=a||"One or more resources could not be found.";this.status=b;LF.call(this)};
xw("awesomecharts.utils.errors.NotFoundError",aTc);KF.NotFoundError=aTc;yw(aTc,LF);var bTc=function(a,b){this.status=b||null;this.code=400;this.name="InvalidRequestError";this.message=a||"Request was invalid.";LF.call(this)};xw("awesomecharts.utils.errors.InvalidRequestError",bTc);KF.InvalidRequestError=bTc;yw(bTc,LF);var cTc=function(a){this.message=a||"Request timed out";this.code=504;this.name="TimeoutError";LF.call(this)};xw("awesomecharts.utils.errors.TimeoutError",cTc);KF.TimeoutError=cTc;
yw(cTc,LF);var dTc=function(a){this.code=499;this.name="FetchStrategyError";this.message=a||"Encountered error executing fetch strategy.";LF.call(this)};xw("awesomecharts.utils.errors.FetchStrategyError",dTc);KF.FetchStrategyError=dTc;yw(dTc,LF);var eTc=function(a){this.code=-1;this.name="CustomError";this.message=a||"Unknown error.";LF.call(this)};xw("awesomecharts.utils.errors.CustomError",eTc);KF.CustomError=eTc;yw(eTc,LF);var fTc,gTc=-1;
if(KF)if(Array.isArray(KF))for(fTc=KF.length;++gTc<fTc;)new KF[gTc];else{var hTc=Object.keys(KF),iTc;for(fTc=hTc.length;++gTc<fTc;)iTc=hTc[gTc],new KF[iTc]}var jTc=function(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack)};Y(jTc,Error);xw("awesomecharts.utils.errors.ValidationError",jTc);var kTc=function(){};xw("awesomecharts.interfaces.LabelFormatterInterface",kTc);kTc.prototype.format=function(){};var lTc=/(["'])(?:(?=(\\?))\2.)*?\1/,mTc=/\$\{\s*\w[^\(\}]*?(?:\(\))?\s*}/,nTc=/^\w[\w\.]*?(?:\(\))$/,oTc=/\\([\\"])/g,pTc=/\\([\\'])/g,qTc=new Map([["metric.labels.",["metric","labels"]],["resource.labels.",["resource","labels"]],["metadata.system_labels.",["metadata","system_labels"]],["metadata.user_labels.",["metadata","user_labels"]]]),MF=function(){},tk=function(a){this.quoteType_=a[0];this.quotedValue_=a;this.unquotedValue_=a.slice(1,a.length-1).replace(this.quoteType_==='"'?oTc:pTc,"$1")};
Y(tk,MF);tk.prototype.toString=function(){return this.quotedValue_};tk.prototype.value=function(){return this.unquotedValue_};
var NF=function(a){this.identifier_=a.slice(2,a.length-1).trim();if(this.isFunction_=!!this.identifier_.match(nTc))this.identifier_=this.identifier_.slice(0,-2);this.identifier_.indexOf("\\.")||this.identifier_.indexOf("\\'")?(a=this.identifier_.replace(/\\\./g,"@@@periodtoken@@@"),a=a.replace(/\\'/g,"@@@apostrophetoken@@@"),this.identifierParts_=this.getParts_(a).map(function(b){return b.replaceAll("@@@periodtoken@@@",".").replaceAll("@@@apostrophetoken@@@","'")})):this.identifierParts_=this.getParts_(this.identifier_)};
Y(NF,MF);NF.prototype.toString=function(){var a=this.identifier_;this.isFunction_&&(a+="()");return a};NF.prototype.value=function(){return this.identifier_};NF.prototype.getParts_=function(a){for(var b=m(qTc.entries()),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;if(a.startsWith(c))return a=a.substring(c.length),[].concat(q(d),[a])}var e;return(e=a.split("."))!=null?e:[]};var rTc=function(){};rTc.prototype.format=function(){};
var vl=function(a){this.originalString_=a;this.parsed=this.parse_()};Y(vl,rTc);var sTc=function(a,b){b=a.parseQuoted(b);b=b.map(function(c){return c instanceof MF?c:a.parseToken_(mTc,NF,c)});return USc(b)};vl.prototype.parse_=function(){return this.parsed?this.parsed:sTc(this,this.originalString)};
vl.prototype.parseToken_=function(a,b,c){var d=[];a=a.toString();a=a.substring(1,a.length-1);a=new RegExp(a,"g");var e,f=0;for(c||(c="");(e=a.exec(c))!==null;)f!==e.index&&d.push(e.input.slice(f,e.index)),d.push(new b(e[0])),f=a.lastIndex;f!==c.length&&d.push(c.slice(f));return d};vl.prototype.parseQuoted=function(a){return this.parseToken_(lTc,tk,a)};
vl.prototype.format=function(a,b){for(var c=null,d=null,e=[],f=this.parsed.map(function(l,r){if(l instanceof tk)var w=c instanceof NF&&d===""?"":l.value();else if(l instanceof NF){w=a;if(b&&l.isFunction_&&l.identifierParts_.length===1){var x=l.identifierParts_[0];(w=b[x])||(w=a[x])}else{x=m(l.identifierParts_);for(var C=x.next();!C.done&&(w=w[C.value],w);C=x.next());}w=l.isFunction_?w&&typeof w==="function"?w(a):"#ERR":w===void 0||w===null?null:w;if(w===void 0||w===null)w="";c instanceof tk&&w===
""&&(e.push(r-1),w="")}else w=l;c=l;return d=w}),g=m(e),k=g.next();!k.done;k=g.next())f[k.value]="";f=f.join("");return f.trim()===""?"":f};da.Object.defineProperties(vl.prototype,{originalString:{configurable:!0,enumerable:!0,get:function(){return this.originalString_}}});var tTc=/\s?<=|>=|!=|=|<|>\s?/,uTc=/\sAND\s|\sOR\s/,vTc=/^\sAND\s$/,wTc=/(\sAND\s)$/,xTc=/^\sOR\s$/,yTc=/(\sOR\s)$/,zTc=/^(.*?)(\sAND\s|\sOR\s|\s)?(\S+)$/,ATc=/^(\w[\w\.]*?\()(.*)(\))$/,BTc=/(select_.*?)(\(.+\)+)/,OF=function(a){this.value_=a};Y(OF,MF);OF.prototype.toString=function(){return String(this.value_)};OF.prototype.value=function(){return this.value_};
OF.prototype.equals=function(a){return a instanceof this.constructor&&(a.toString().trim()===this.toString().trim()||a.toString().replace(/\(|\)/g,"").trim()===this.toString().replace(/\(|\)/g,"").trim())};var PF=function(a){this.value_="";this.subtokens_=[a]};Y(PF,OF);h=PF.prototype;h.numSubtokens=function(){return this.subtokens_.length};h.subtoken=function(a){return this.subtokens_.length>a?this.subtokens_[a]:null};h.append=function(a){this.subtokens_.push(a)};h.prepend=function(a){this.subtokens_.unshift(a)};
h.toString=function(){return this.subtokens_.map(function(a){return a instanceof tk?a.toString():a}).join("")};PF.prototype.toString=PF.prototype.toString;PF.prototype.prepend=PF.prototype.prepend;PF.prototype.append=PF.prototype.append;PF.prototype.subtoken=PF.prototype.subtoken;PF.prototype.numSubtokens=PF.prototype.numSubtokens;var QF=function(){OF.apply(this,arguments)};Y(QF,OF);var uk=function(){PF.apply(this,arguments)};Y(uk,PF);
var vk=function(a){if(a instanceof tk)PF.call(this,a);else{var b=a.match(ATc);b?(PF.call(this,b[1]),b[2].length>0&&this.append(b[2]),this.append(b[3])):PF.call(this,a)}};Y(vk,PF);var RF=function(){OF.apply(this,arguments)};Y(RF,OF);var SF=function(){RF.apply(this,arguments)};Y(SF,RF);var CTc=function(){RF.apply(this,arguments)};Y(CTc,RF);
var DTc=[{token:uk},{token:QF},{token:vk,canBeLast:!0},{token:RF}],wk=function(a){this.originalString=a;this.parsed=this.parse_();this.validate()},qza=function(a){return a.parsed?a.parsed.map(function(b){return mza(b)}):void 0};
wk.prototype.parse_=function(){if(this.parsed)return this.parsed;var a=this.parseTss(this.originalString);a=this.parseQuoted(a);if(a instanceof Array){var b=[];for(a=a.slice();a.length;){var c=a.shift();if(typeof c==="string"&&c.endsWith(".")&&a[0]instanceof tk){c=zTc.exec(c);var d=m([c&&c[1]?c[1]:"",c&&c[2]?c[2]:"",c&&c[3]?c[3]:""]);c=d.next().value;var e=d.next().value;d=d.next().value;c.length&&b.push(c);e.length&&(vTc.test(e)||/^\s*$/.test(e)?b.push(new SF(e)):xTc.test(e)?b.push(new CTc(e)):b.push(e));
c=new uk(d);c.append(a[0]);b.push(c);a.shift()}else b.push(c)}a=b}a=this.parseExpressions(a);b=a=USc(a);a=[];e=null;for(c=0;c<b.length;c++)if(d=b[c],d instanceof tk)!e||e instanceof RF?(e=new uk(d),a.push(e)):e instanceof QF?(e=new vk(d),a.push(e)):e instanceof PF&&e.append(d);else if(d instanceof uk)if(e instanceof uk)e.append(d.toString());else if(e instanceof vk){d=d.toString();var f=d.match(/^\s+/);f?(e=f[0],a.push(new SF(e)),e=new uk(d.slice(e.length)),a.push(e)):ETc(this)}else a.push(d),e=d;
else d instanceof vk?e instanceof vk?e.append(d.toString()):e instanceof uk?ETc(this):(a.push(d),e=d):(a.push(d),e=d);return a};wk.prototype.validate=function(){for(var a=0,b=0;b<this.parsed.length;b++){var c=DTc[a],d=this.parsed[b+1];this.parsed[b]instanceof c.token&&(d||c.canBeLast)||ETc(this);a++;a===DTc.length&&(a=0)}};
wk.prototype.parseToken_=function(a,b,c){var d=[];a=a.toString();a=a.substring(1,a.length-1);a=new RegExp(a,"g");var e,f=0;for(c||(c="");(e=a.exec(c))!==null;)f!==e.index&&d.push(e.input.slice(f,e.index)),d.push(new b(e[0])),f=a.lastIndex;f!==c.length&&d.push(c.slice(f));return d};
var FTc=function(a,b){var c=[],d=uTc.toString();d=d.substring(1,d.length-1);d=new RegExp(d,"g");var e=0,f=d.exec(b);f||(b=b.trim());f?(e!==f.index&&c.push(new vk(f.input.slice(e,f.index))),vTc.test(f[0])?c.push(new SF(f[0])):xTc.test(f[0])&&c.push(new CTc(f[0])),e=d.lastIndex,e!==b.length&&c.push(new uk(b.slice(e)))):(d=b.split(" "),c.push(new vk(d.shift())),d.length>0&&(d[d.length-1]!==""?(b=new uk(d.pop()),d=d.join(" "),d.match(/[^ ]/)&&ETc(a),c.push(new SF(d||" ")),c.push(b)):c.push(new SF(" "))));
return c};h=wk.prototype;h.parseTss=function(a){var b=a.match(BTc);if(!b)return[a];var c=new uk(b[1]),d=new vk(b[2].slice(1,b[2].length-1));d.prepend("(");d.append(")");a=a.replace(BTc,"");b.index>0&&(a=" "+a);return[c,new QF(""),d,a]};h.parseQuoted=function(a){var b=this;a=a.map(function(c){return c instanceof MF?c:b.parseToken_(lTc,tk,c)});return USc(a)};
h.parseExpressions=function(a){var b=this;a=a.map(function(c){if(!(c instanceof MF)){var d=c;c=[];var e=tTc.toString();e=e.substring(1,e.length-1);e=new RegExp(e,"g");var f,g=0;for(d||(d="");(f=e.exec(d))!==null;){if(g!==f.index){var k=f.input.slice(g,f.index);g===0?(g=FTc(b,k),g.length>1?c.push(g):c.push(new uk(k))):c.push(FTc(b,k))}c.push(new QF(f[0]));g=e.lastIndex}g!==d.length&&(d=d.slice(g),g===0?c.push(FTc(b,d)):(e=wTc.exec(d),f=yTc.exec(d),e?(c.push(new vk(d.substr(0,d.length-e[1].length))),
c.push(new SF(e[1]))):f?(c.push(new vk(d.substr(0,d.length-f[1].length))),c.push(new CTc(f[1]))):c.push(new vk(d))))}return c});return USc(a)};h.toString=function(){return this.parsed.reduce(function(a,b){return a+b.toString()},"")};h.hasToken=function(a){return this.parsed.findIndex(function(b){return b.equals(a)})>-1};
h.addExpression=function(a,b,c,d){this.parsed.length>0&&(a.trim()===""||a.trim()==="AND"?this.parsed.push(new SF(a)):this.parsed.push(new CTc(a)));var e=b+" "+c+" "+d;a=(e.toString().match(/\(/g)||[]).length;e=(e.toString().match(/\)/g)||[]).length;this.parsed.push(new uk(b));a<e&&this.parsed[this.parsed.length-1].prepend("(");this.parsed.push(new QF(c));this.parsed.push(new vk(d));a>e&&this.parsed[this.parsed.length-1].append(")");this.validate()};
h.removeLhsExpression=function(a){var b=new uk(a);a=this.parsed.findIndex(function(f){return f.equals(b)});if(a===-1)return null;var c=this.parsed.splice(a,3),d=(c.toString().match(/\(/g)||[]).length,e=(c.toString().match(/\)/g)||[]).length;if(d!==e)if(d>e){for(d=a+1;d<this.parsed.length&&!(this.parsed[d]instanceof PF);)d++;this.parsed[d].prepend("(")}else{for(d=a-1;d>=0&&!(this.parsed[d]instanceof PF);)d--;this.parsed[d].append(")")}a>0?c.unshift(this.parsed.splice(a-1,1)[0]):c.unshift(new RF(""));
return c};var ETc=function(a){throw new jTc("Invalid metric filter. Can not parse '"+a.originalString+"'.");};wk.prototype.removeLhsExpression=wk.prototype.removeLhsExpression;wk.prototype.addExpression=wk.prototype.addExpression;wk.prototype.hasToken=wk.prototype.hasToken;wk.prototype.toString=wk.prototype.toString;wk.prototype.parseExpressions=wk.prototype.parseExpressions;wk.prototype.parseQuoted=wk.prototype.parseQuoted;wk.prototype.parseTss=wk.prototype.parseTss;var rza={"=":"eq","<":"lt",">":"gt","<=":"lte",">=":"gte","=~":"rgx"};var nza=Zj(pk,function(a){return a.timeSeries}),GTc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ce(Zj(nza,function(c){return c.entities[b]}))}});var tza=Zj(pk,function(a){return a.xAxisPin}),HTc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ce(Zj(tza,function(c){return c.entities[b]}))}}),ITc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ce(Zj(tza,function(c){var d,e;return(e=(d=c.entities[b])==null?void 0:d.xPos)!=null?e:void 0}))}}),JTc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ce(Zj(tza,function(c){var d;return(d=c.entities[b])==null?void 0:d.locked}))}}),KTc=new ik({getKey:ok,
getSelector:function(a){var b=a.chartGroupId;return ce(Zj(tza,function(c){var d;return(d=c.entities[b])==null?void 0:d.trackingNow}))}});var LTc=0,TF=function(a,b){HF.call(this,b);var c=this;this.el=a;this.destroyed=new qf;this.logger=null;this.objectiveChartId="ac-composable-chart-"+LTc++;this.boundingClientRectCache=null;this.boundingClientRectCachedAsOf=0;this.chartGroupId="default";this.chartId=this.objectiveChartId;this.title="Untitled";this.scopeObservable=this.scopeSubject=new uf(1);this.eventHandlerRegistry=new Map;this.mouseDownObservable=this.mouseDownSubject=new qf;this.mouseUpObservable=this.mouseUpSubject=new qf;this.mouseEnterObservable=
this.mouseEnterSubject=new qf;this.mouseLeaveObservable=this.mouseLeaveSubject=new qf;this.mouseClickObservable=this.mouseClickSubject=new qf;this.afterMouseClickObservable=this.afterMouseClickSubject=new qf;this.keyDownObservable=this.keyDownSubject=new qf;this.syncKeyDownObservable=this.syncKeyDownSubject=new qf;this.keyUpObservable=this.keyUpSubject=new qf;this.scrollObservable=this.scrollSubject=new qf;this.syncScrollObservable=this.syncScrollSubject=new qf;this.documentMouseUpObservable=this.documentMouseUpSubject=
new qf;this.dragStartSubject=new qf;this.syncDragStartObservable=this.syncDragStartSubject=new qf;this.dragSubject=new qf;this.syncDragObservable=this.syncDragSubject=new qf;this.dragEndSubject=new qf;this.syncDragEndObservable=this.syncDragEndSubject=new qf;this.windowCaptureScrollSubject=new qf;this.touchStartObservable=this.touchStartSubject=new qf;this.syncTouchStartObservable=this.syncTouchStartSubject=new qf;this.touchMoveObservable=this.touchMoveSubject=new qf;this.syncTouchMoveObservable=
this.syncTouchMoveSubject=new qf;this.touchEndObservable=this.touchEndSubject=new qf;this.syncTouchEndObservable=this.syncTouchEndSubject=new qf;this.context={scope:{chartGroupId:this.chartGroupId,chartId:this.chartId},state:null};this.changeDetectionActionsBatch=[];this.globalHoverDisabled=!1;this.defaultStateSelectionObservables={focus:IF(this,eza),resize:IF(this,sk),xAxisPin:IF(this,uza),timeSeries:IF(this,oza)};ie([this.scopeObservable,this.stateObservable]).pipe(zf(this.destroyed)).subscribe(function(d){var e=
m(d);d=e.next().value;e=e.next().value;c.context.scope=d;c.context.state=e.currentValue})};Y(TF,HF);h=TF.prototype;
h.setup=function(a){var b=this;a=Object.assign({},this.defaultStateSelectionObservables,a.stateSelectionObservables);HF.prototype.setup.call(this,{stateSelectionObservables:a});this.scopeObservable.pipe(xf(null),tf(),A(gk),Cf(this.stateObservable),zf(this.destroyed)).subscribe(function(c){var d=m(c);c=d.next().value;d.next();if(c.currentValue)b.onScopeChange(c)});this.setupStateChangeHandler(a.resize,function(c,d){return b.onResizeChange(hk(c,function(e){return e.resize}),d)},"resize");this.setupStateChangeHandler(a.xAxisPin,
function(c,d){return b.onXAxisPinChange(hk(c,function(e){return e.xAxisPin}),d)},"xAxisPin");this.setupStateChangeHandler(a.timeSeries,function(c,d){return b.onTimeSeriesChange(hk(c,function(e){return e.timeSeries}),d)},"timeSeries");this.setupStateChangeHandler(a.focus,function(c,d){return b.onFocusChange(hk(c,function(e){return e.focus}),d)},"focus")};
h.setupStateChangeHandler=function(a,b,c){var d=this;if(this.setupCalled&&a){var e=null;a.pipe(vza(this.scopeObservable,this.stateObservable),zf(this.destroyed)).subscribe(function(f){var g=m(f);f=g.next().value;g=g.next().value;var k={scope:f,state:g.currentValue},l={previousValue:e,currentValue:g.currentValue};e=g.currentValue;d.scheduleStateChangeHandler({changes:l,context:k,componentHandlerUsingContext:b,mergeKey:f.chartId+"-"+c,scope:f})})}};
h.onScopeChange=function(a){var b=a.previousValue,c=a.currentValue,d=[];c&&(b==null?void 0:b.chartId)!==(c==null?void 0:c.chartId)&&(d.push(FF({chartGroupId:c.chartGroupId,previousChartId:b==null?void 0:b.chartId,currentChartId:c.chartId})),MTc(this.selectorService,a));UF(this,d)};h.onResizeChange=function(){};h.onXAxisPinChange=function(){};h.onTimeSeriesChange=function(){};h.onFocusChange=function(){};h.withLatest=function(a){a({scope:this.context.scope,state:this.context.state})};
h.scheduleStateChangeHandler=function(a){xza(a)?a.viewHandlerUsingContext(a.changes,a.context):zza(a)&&(a=a.componentHandlerUsingContext(a.changes,a.context))&&a.length&&this.store.dispatch(dk({actions:a}))};h.scheduleChangeHandler=function(a){var b=a.changes;wza(a)&&a.viewHandler(b);yza(a)&&(a=a.componentHandler(b))&&a.length&&this.store.dispatch(dk({actions:a}))};
h.getBoundingClientRect=function(){var a=Date.now();if(!this.boundingClientRectCache||a-this.boundingClientRectCachedAsOf>500){var b=this.el.nativeElement.getBoundingClientRect();this.boundingClientRectCache=b;this.boundingClientRectCachedAsOf=a;return b}return this.boundingClientRectCache};
var NTc=function(a,b){var c=a.eventHandlerRegistry.get(b);c||(c=new Map,a.eventHandlerRegistry.set(b,c));a=c.get("mousemove");a||(a=new Set,c.set("mousemove",a))},OTc=function(a,b){a=a.eventHandlerRegistry.get(b);return a?(a=a.get("mousemove"))?a:new Set:new Set},VF=function(a,b,c,d){var e=OTc(a,b),f=c;f=function(g){return a.globalHoverDisabled?[]:c(g)};e.add(f);d&&d.pipe(lf(1)).subscribe(function(){var g=f;OTc(a,b).delete(g)})},UF=function(a,b){a.changeDetectionActionsBatch=a.changeDetectionActionsBatch.concat(b)},
PTc=function(a){if(a.changeDetectionActionsBatch.length){var b=a.changeDetectionActionsBatch;a.changeDetectionActionsBatch=[];a.store.dispatch(dk({actions:b}))}};TF.prototype.ngOnInit=function(){var a=this;this.scopeSubject.next({chartGroupId:this.chartGroupId,chartId:this.chartId});UF(this,[DF({chartId:this.chartId,chartGroupId:this.chartGroupId})]);IF(this,fza).pipe(zf(this.destroyed)).subscribe(function(b){var c;a.globalHoverDisabled=(c=b==null?void 0:b.disabled)!=null?c:!1})};
TF.prototype.ngOnChanges=function(a){("chartId"in a||"chartGroupId"in a)&&this.scopeSubject.next({chartGroupId:this.chartGroupId,chartId:this.chartId})};TF.prototype.ngAfterViewChecked=function(){PTc(this)};TF.prototype.ngOnDestroy=function(){var a=EF({chartId:this.chartId,chartGroupId:this.chartGroupId});UF(this,[a]);PTc(this);this.destroyed.next();this.destroyed.complete()};TF.\u0275fac=function(){We()};
TF.\u0275dir=af({type:TF,inputs:{chartGroupId:"chartGroupId",chartId:"chartId",title:"title"},features:[Ef,jx]});var QTc=function(){},Fk=function(a){if(typeof a=="number"){var b=new QTc;b.standardOffset_=a;var c=a;if(c==0)c="Etc/GMT";else{var d=["Etc/GMT",c<0?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;c!=0&&d.push(":",OB(c,2));c=d.join("")}b.timeZoneId_=c;c=a;c==0?c="UTC":(d=["UTC",c<0?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,c!=0&&d.push(":",c),c=d.join(""));a=RTc(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new QTc;
b.timeZoneId_=a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},RTc=function(a){var b=["GMT"];b.push(a<=0?"+":"-");a=Math.abs(a);b.push(OB(Math.floor(a/60)%100,2),":",OB(a%60,2));return b.join("")},STc=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 c==0?0:a.transitions_[c-1]},Rk=function(a,
b){a=a.standardOffset_-STc(a,b);return a===-1440?0:a};var Iza={};var Jza={americaLosAngeles:{id:"America/Los_Angeles",names:["PST","Pacific Standard Time","PDT","Pacific Daylight Time"],names_ext:{STD_LONG_NAME_GMT:"GMT-08:00",STD_GENERIC_LOCATION:"Los Angeles Time",DST_LONG_NAME_GMT:"GMT-07:00",DST_GENERIC_LOCATION:"Los Angeles Time"},std_offset:-480,transitions:[2770,60,7137,0,11506,60,16041,0,20410,60,24777,0,29146,60,33513,0,35194,60,42249,0,45106,60,50985,0,55354,60,59889,0,64090,60,68625,0,72994,60,77361,0,81730,60,86097,0,90466,60,94833,0,99202,60,103569,
0,107938,60,112473,0,116674,60,121209,0,125578,60,129945,0,134314,60,138681,0,143050,60,147417,0,151282,60,156153,0,160018,60,165057,0,168754,60,173793,0,177490,60,182529,0,186394,60,191265,0,195130,60,200001,0,203866,60,208905,0,212602,60,217641,0,221338,60,226377,0,230242,60,235113,0,238978,60,243849,0,247714,60,252585,0,256450,60,261489,0,265186,60,270225,0,273922,60,278961,0,282826,60,287697,0,291562,60,296433,0,300298,60,305337,0,309034,60,314073,0,317770,60,322809,0,326002,60,331713,0,334738,
60,340449,0,343474,60,349185,0,352378,60,358089,0,361114,60,366825,0,369850,60,375561,0,378586,60,384297,0,387322,60,393033,0,396058,60,401769,0,404962,60,410673,0,413698,60,419409,0,422434,60,428145,0,431170,60,436881,0,439906,60,445617,0,448810,60,454521,0,457546,60,463257,0,466282,60,471993,0,475018,60,480729,0,483754,60,489465,0,492490,60,498201,0,501394,60,507105,0,510130,60,515841,0,518866,60,524577,0,527602,60,533313,0,536338,60,542049,0,545242,60,550953,0,553978,60,559689,0,562714,60,568425,
0,571450,60,577161,0,580186,60,585897,0,588922,60,594633,0]},americaNewYork:{id:"America/New_York",names:["EST","Eastern Standard Time","EDT","Eastern Daylight Time"],names_ext:{STD_LONG_NAME_GMT:"GMT-05:00",STD_GENERIC_LOCATION:"New York Time",DST_LONG_NAME_GMT:"GMT-04:00",DST_GENERIC_LOCATION:"New York Time"},std_offset:-300,transitions:[2767,60,7134,0,11503,60,16038,0,20407,60,24774,0,29143,60,33510,0,35191,60,42246,0,45103,60,50982,0,55351,60,59886,0,64087,60,68622,0,72991,60,77358,0,81727,60,
86094,0,90463,60,94830,0,99199,60,103566,0,107935,60,112470,0,116671,60,121206,0,125575,60,129942,0,134311,60,138678,0,143047,60,147414,0,151279,60,156150,0,160015,60,165054,0,168751,60,173790,0,177487,60,182526,0,186391,60,191262,0,195127,60,199998,0,203863,60,208902,0,212599,60,217638,0,221335,60,226374,0,230239,60,235110,0,238975,60,243846,0,247711,60,252582,0,256447,60,261486,0,265183,60,270222,0,273919,60,278958,0,282823,60,287694,0,291559,60,296430,0,300295,60,305334,0,309031,60,314070,0,317767,
60,322806,0,325999,60,331710,0,334735,60,340446,0,343471,60,349182,0,352375,60,358086,0,361111,60,366822,0,369847,60,375558,0,378583,60,384294,0,387319,60,393030,0,396055,60,401766,0,404959,60,410670,0,413695,60,419406,0,422431,60,428142,0,431167,60,436878,0,439903,60,445614,0,448807,60,454518,0,457543,60,463254,0,466279,60,471990,0,475015,60,480726,0,483751,60,489462,0,492487,60,498198,0,501391,60,507102,0,510127,60,515838,0,518863,60,524574,0,527599,60,533310,0,536335,60,542046,0,545239,60,550950,
0,553975,60,559686,0,562711,60,568422,0,571447,60,577158,0,580183,60,585894,0,588919,60,594630,0]},UTC:{id:"UTC",names:["UTC","Coordinated Universal Time"],names_ext:{STD_LONG_NAME_GMT:"GMT",STD_GENERIC_LOCATION:"GMT"},std_offset:0,transitions:[]},americaAnchorage:{id:"America/Anchorage",names:["AKST","Alaska Standard Time","AKDT","Alaska Daylight Time"],names_ext:{STD_LONG_NAME_GMT:"GMT-09:00",STD_GENERIC_LOCATION:"Anchorage Time",DST_LONG_NAME_GMT:"GMT-08:00",DST_GENERIC_LOCATION:"Anchorage Time"},
std_offset:-540,transitions:[2772,60,7139,0,11508,60,16043,0,20412,60,24779,0,29148,60,33515,0,35196,60,42251,0,45108,60,50987,0,55356,60,59891,0,64092,60,68627,0,72996,60,77363,0,81732,60,86099,0,90468,60,94835,0,99204,60,103571,0,107940,60,112475,0,116676,60,121211,0,125579,60,129946,0,134315,60,138682,0,143051,60,147418,0,151283,60,156154,0,160019,60,165058,0,168755,60,173794,0,177491,60,182530,0,186395,60,191266,0,195131,60,200002,0,203867,60,208906,0,212603,60,217642,0,221339,60,226378,0,230243,
60,235114,0,238979,60,243850,0,247715,60,252586,0,256451,60,261490,0,265187,60,270226,0,273923,60,278962,0,282827,60,287698,0,291563,60,296434,0,300299,60,305338,0,309035,60,314074,0,317771,60,322810,0,326003,60,331714,0,334739,60,340450,0,343475,60,349186,0,352379,60,358090,0,361115,60,366826,0,369851,60,375562,0,378587,60,384298,0,387323,60,393034,0,396059,60,401770,0,404963,60,410674,0,413699,60,419410,0,422435,60,428146,0,431171,60,436882,0,439907,60,445618,0,448811,60,454522,0,457547,60,463258,
0,466283,60,471994,0,475019,60,480730,0,483755,60,489466,0,492491,60,498202,0,501395,60,507106,0,510131,60,515842,0,518867,60,524578,0,527603,60,533314,0,536339,60,542050,0,545243,60,550954,0,553979,60,559690,0,562715,60,568426,0,571451,60,577162,0,580187,60,585898,0,588923,60,594634,0]},asiaCalcutta:{id:"Asia/Calcutta",names:["GMT+5:30","India Standard Time"],names_ext:{STD_LONG_NAME_GMT:"GMT+05:30",STD_GENERIC_LOCATION:"India Time"},std_offset:330,transitions:[]}};var Kza=(new Date).getTimezoneOffset();var TTc={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y",
"MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss\u202fa zzzz","h:mm:ss\u202fa z","h:mm:ss\u202fa","h:mm\u202fa"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5},WF=TTc;WF=TTc;var UTc=RegExp("^((?:[-+]\\d*)?\\d{4})(?:(?:-?(\\d{2})(?:-?(\\d{2}))?)|(?:-?(\\d{3}))|(?:-?W(\\d{2})(?:-?([1-7]))?))?$"),VTc=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,WTc=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/,XTc=function(a,b){switch(b){case 1:return a%4!=0||a%100==0&&a%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31},YTc=function(a,b,c,d,e){a=new Date(a,b,c);d=d!==void 0?d:3;e=e||0;b=((a.getDay()+6)%7-e+7)%7;return a.valueOf()+((d-e+7)%7-b)*864E5},XF=function(a,b,c,d,e,f){typeof a===
"string"?(this.years=a=="y"?b:0,this.months=a=="m"?b:0,this.days=a=="d"?b:0,this.hours=a=="h"?b:0,this.minutes=a=="n"?b:0,this.seconds=a=="s"?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)};h=XF.prototype;
h.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(b<0&&c>0)return null;if(!a&&b==0&&c==0)return"PT0S";c=[];b<0&&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("")};h.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};h.clone=function(){return new XF(this.years,this.months,this.days,this.hours,this.minutes,this.seconds)};
h.isZero=function(){return this.years==0&&this.months==0&&this.days==0&&this.hours==0&&this.minutes==0&&this.seconds==0};h.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 pm=function(a,b,c){typeof a==="number"?(this.date=ZTc(a,b||0,c||1),$Tc(this,c||1)):Oa(a)?(this.date=ZTc(a.getFullYear(),a.getMonth(),a.getDate()),$Tc(this,a.getDate())):(this.date=new Date(Date.now()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),$Tc(this,a))},ZTc=function(a,b,c){b=new Date(a,b,c);a>=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b};h=pm.prototype;h.firstDayOfWeek_=WF.FIRSTDAYOFWEEK;
h.firstWeekCutOffDay_=WF.FIRSTWEEKCUTOFFDAY;h.clone=function(){var a=new pm(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};h.getFullYear=function(){return this.date.getFullYear()};h.getYear=function(){return this.getFullYear()};h.getMonth=function(){return this.date.getMonth()};h.getDate=function(){return this.date.getDate()};h.getTime=function(){return this.date.getTime()};h.getDay=function(){return this.date.getDay()};
h.getUTCFullYear=function(){return this.date.getUTCFullYear()};h.getUTCMonth=function(){return this.date.getUTCMonth()};h.getUTCDate=function(){return this.date.getUTCDate()};h.getUTCDay=function(){return this.date.getDay()};h.getUTCHours=function(){return this.date.getUTCHours()};h.getUTCMinutes=function(){return this.date.getUTCMinutes()};h.getFirstDayOfWeek=function(){return this.firstDayOfWeek_};var aUc=function(a){return XTc(a.getFullYear(),a.getMonth())};h=pm.prototype;h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};h.setFullYear=function(a){this.date.setFullYear(a)};h.setYear=function(a){this.setFullYear(a)};h.setMonth=function(a){this.date.setMonth(a)};h.setDate=function(a){this.date.setDate(a)};h.setTime=function(a){this.date.setTime(a)};h.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};h.setUTCMonth=function(a){this.date.setUTCMonth(a)};h.setUTCDate=function(a){this.date.setUTCDate(a)};
h.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+a.years*12,c=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var d=Math.min(XTc(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.days&&(c=this.getYear(),b=c>=0&&c<=99?-1900:0,c=new Date(c,this.getMonth(),this.getDate(),12),a=new Date(c.getTime()+a.days*864E5),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),$Tc(this,a.getDate()))};
h.toIsoString=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+OB(Math.abs(b),c?6:4),OB(this.getMonth()+1,2),OB(this.getDate(),2)].join(a?"-":"")};h.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};h.toString=function(){return this.toIsoString()};var $Tc=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};pm.prototype.valueOf=function(){return this.date.valueOf()};
var ao=function(a,b,c,d,e,f,g){this.date=typeof a==="number"?new Date(a,b||0,c||1,d||0,e||0,f||0,g||0):new Date(a&&a.getTime?a.getTime():Date.now())};yw(ao,pm);h=ao.prototype;h.getHours=function(){return this.date.getHours()};h.getMinutes=function(){return this.date.getMinutes()};h.getSeconds=function(){return this.date.getSeconds()};h.getMilliseconds=function(){return this.date.getMilliseconds()};h.getUTCDay=function(){return this.date.getUTCDay()};h.getUTCHours=function(){return this.date.getUTCHours()};
h.getUTCMinutes=function(){return this.date.getUTCMinutes()};h.getUTCSeconds=function(){return this.date.getUTCSeconds()};h.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};h.setHours=function(a){this.date.setHours(a)};h.setMinutes=function(a){this.date.setMinutes(a)};h.setSeconds=function(a){this.date.setSeconds(a)};h.setMilliseconds=function(a){this.date.setMilliseconds(a)};h.setUTCHours=function(a){this.date.setUTCHours(a)};h.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};
h.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};h.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};h.add=function(a){pm.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)};
h.toIsoString=function(a){var b=pm.prototype.toIsoString.call(this,a);return a?b+"T"+OB(this.getHours(),2)+":"+OB(this.getMinutes(),2)+":"+OB(this.getSeconds(),2):b+"T"+OB(this.getHours(),2)+OB(this.getMinutes(),2)+OB(this.getSeconds(),2)};h.equals=function(a){return this.getTime()==a.getTime()};h.toString=function(){return this.toIsoString()};h.clone=function(){var a=new ao(this.date),b=this.getFirstDayOfWeek();a.firstDayOfWeek_=b;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};var ql=function(a){this.patternParts_=[];this.dateTimeSymbols_=WF;typeof a=="number"?this.applyStandardPattern_(a):this.applyPattern_(a)},bUc=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|Y+|u+|M+|k+|S+|E+|a+|b+|B+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYuMkSEabBhKHcLQdmsvVwzZ]+/],cUc=function(a){return a.getHours?a.getHours():0};
ql.prototype.applyPattern_=function(a){for(dUc&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<bUc.length;++c){var d=a.match(bUc[c]);if(d){var e=d[0];a=a.substring(e.length);c==0&&(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("lc`"+a);}};
ql.prototype.format=function(a,b){if(!a)throw Error("mc");var c=b?(a.getTimezoneOffset()-Rk(b,a))*6E4:0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+(d.getTimezoneOffset()-a.getTimezoneOffset())*6E4),e=new Date(a.getTime()+(c+(c>0?-864E5:864E5))));c=[];for(var f=0;f<this.patternParts_.length;++f){var g=this.patternParts_[f].text;1==this.patternParts_[f].type?c.push(eUc(this,g,a,d,e,b)):c.push(g)}return c.join("")};
ql.prototype.applyStandardPattern_=function(a){if(a<4)var b=this.dateTimeSymbols_.DATEFORMATS[a];else if(a<8)b=this.dateTimeSymbols_.TIMEFORMATS[a-4];else if(a<12)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(a===12)b=this.dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(a===13)b=this.dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,"");else{this.applyStandardPattern_(10);
return}this.applyPattern_(b)};
var YF=function(a,b){return c7a(b,a.dateTimeSymbols_)},dUc=!1,c7a=function(a,b){a=String(a);b=b||WF;if(b.ZERODIGIT===void 0)return a;for(var c=[],d=0;d<a.length;d++){var e=a.charCodeAt(d);c.push(48<=e&&e<=57?String.fromCharCode(b.ZERODIGIT+e-48):a.charAt(d))}return c.join("")},gUc=function(a,b,c,d){c=c.getFullYear();c<=0&&d&&(c=1-c);return YF(a,fUc(c,b))},fUc=function(a,b){b==2&&(a%=100);a<0&&b++;return OB(a,b)},ZF=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("nc");},hUc=function(a,
b){ZF(b);b=cUc(b);return a.dateTimeSymbols_.AMPMS[b>=12&&b<24?1:0]},eUc=function(a,b,c,d,e,f){var g=b.length;switch(b.charAt(0)){case "G":return c=d.getFullYear()>0?1:0,g>=4?a.dateTimeSymbols_.ERANAMES[c]:a.dateTimeSymbols_.ERAS[c];case "y":return gUc(a,g,d,!0);case "Y":return c=d.getFullYear(),e=d.getMonth(),c=YTc(c,e,d.getDate(),a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),c=(new Date(c)).getFullYear(),g==2&&(c%=100),YF(a,fUc(c,g));case "u":return gUc(a,g,d,!1);case "M":a:switch(c=
d.getMonth(),g){case 5:g=a.dateTimeSymbols_.NARROWMONTHS[c];break a;case 4:g=a.dateTimeSymbols_.MONTHS[c];break a;case 3:g=a.dateTimeSymbols_.SHORTMONTHS[c];break a;default:g=YF(a,OB(c+1,g))}return g;case "k":return ZF(e),c=cUc(e)||24,YF(a,OB(c,g));case "S":return YF(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,g)).slice(2)+(g>3?OB(0,g-3):""));case "E":return c=d.getDay(),g>=4?a.dateTimeSymbols_.WEEKDAYS[c]:a.dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return hUc(a,e);case "b":return hUc(a,e);case "B":return hUc(a,
e);case "h":return ZF(e),c=cUc(e)%12||12,YF(a,OB(c,g));case "K":return ZF(e),c=cUc(e)%12,YF(a,OB(c,g));case "H":return ZF(e),c=cUc(e),YF(a,OB(c,g));case "c":a:switch(c=d.getDay(),g){case 5:g=a.dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];break a;case 4:g=a.dateTimeSymbols_.STANDALONEWEEKDAYS[c];break a;case 3:g=a.dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];break a;default:g=YF(a,OB(c,1))}return g;case "L":a:switch(c=d.getMonth(),g){case 5:g=a.dateTimeSymbols_.STANDALONENARROWMONTHS[c];break a;case 4:g=
a.dateTimeSymbols_.STANDALONEMONTHS[c];break a;case 3:g=a.dateTimeSymbols_.STANDALONESHORTMONTHS[c];break a;default:g=YF(a,OB(c+1,g))}return g;case "Q":return c=Math.floor(d.getMonth()/3),g<4?a.dateTimeSymbols_.SHORTQUARTERS[c]:a.dateTimeSymbols_.QUARTERS[c];case "d":return YF(a,OB(d.getDate(),g));case "m":return ZF(e),YF(a,OB(e.getMinutes?e.getMinutes():0,g));case "s":return ZF(e),YF(a,OB(e.getSeconds(),g));case "v":return(f||Fk(c.getTimezoneOffset())).timeZoneId_;case "V":return a=f||Fk(c.getTimezoneOffset()),
g<=2?a.timeZoneId_:STc(a,c)>0?a.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?a.tzNamesExt_.STD_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return c=e.getFullYear(),d=e.getMonth(),c=YTc(c,d,e.getDate(),a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),YF(a,OB(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,
g));case "z":return a=f||Fk(c.getTimezoneOffset()),g<4?a.tzNames_[STc(a,c)>0?2:0]:a.tzNames_[STc(a,c)>0?3:1];case "Z":return d=f||Fk(c.getTimezoneOffset()),g<4?(g=-Rk(d,c),a=[g<0?"-":"+"],g=Math.abs(g),a.push(OB(Math.floor(g/60)%100,2),OB(g%60,2)),g=a.join("")):g=YF(a,RTc(Rk(d,c))),g;default:return""}};var iUc={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"}}},jUc=iUc;jUc=iUc;var kUc={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 lUc={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"},Mk=lUc;Mk=lUc;var $F=function(a){this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.showTrailingZeros_=this.useSignForPositiveExponent_=!1;this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=Mk.MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=
0;this.pattern_=typeof a==="string"?a:"";typeof a==="number"?this.applyStandardPattern_(a):this.applyPattern_(a)},gAa=function(a,b){if(b>308)throw Error("qc`"+b);a.maximumFractionDigits_=b},iAa=function(a,b){if(a.minimumFractionDigits_>0&&b>=0)throw Error("pc");a.significantDigits_=b};
$F.prototype.applyPattern_=function(a){this.pattern_=a.replace(/ /g,"\u00a0");var b=[0];this.positivePrefix_=mUc(this,a,b);for(var c=b[0],d=-1,e=0,f=0,g=0,k=-1,l=a.length,r=!0;b[0]<l&&r;b[0]++)switch(a.charAt(b[0])){case "#":f>0?g++:e++;k>=0&&d<0&&k++;break;case "0":if(g>0)throw Error("xc`"+a);f++;k>=0&&d<0&&k++;break;case ",":k>0&&this.groupingArray_.push(k);k=0;break;case ".":if(d>=0)throw Error("yc`"+a);d=e+f+g;break;case "E":if(this.useExponentialNotation_)throw Error("zc`"+a);this.useExponentialNotation_=
!0;this.minExponentDigits_=0;b[0]+1<l&&a.charAt(b[0]+1)=="+"&&(b[0]++,this.useSignForPositiveExponent_=!0);for(;b[0]+1<l&&a.charAt(b[0]+1)=="0";)b[0]++,this.minExponentDigits_++;if(e+f<1||this.minExponentDigits_<1)throw Error("Ac`"+a);r=!1;break;default:b[0]--,r=!1}f==0&&e>0&&d>=0&&(f=d,f==0&&f++,g=e-f,e=f-1,f=1);if(d<0&&g>0||d>=0&&(d<e||d>e+f)||k==0)throw Error("Bc`"+a);g=e+f+g;this.maximumFractionDigits_=d>=0?g-d:0;d>=0&&(this.minimumFractionDigits_=e+f-d,this.minimumFractionDigits_<0&&(this.minimumFractionDigits_=
0));this.minimumIntegerDigits_=(d>=0?d:g)-e;this.useExponentialNotation_&&(this.maximumIntegerDigits_=e+this.minimumIntegerDigits_,this.maximumFractionDigits_==0&&this.minimumIntegerDigits_==0&&(this.minimumIntegerDigits_=1));this.groupingArray_.push(Math.max(0,k));this.decimalSeparatorAlwaysShown_=d==0||d==g;c=b[0]-c;this.positiveSuffix_=mUc(this,a,b);b[0]<a.length&&a.charAt(b[0])==";"?(b[0]++,this.multiplier_!=1&&(this.negativePercentSignExpected_=!0),this.negativePrefix_=mUc(this,a,b),b[0]+=c,
this.negativeSuffix_=mUc(this,a,b)):(this.negativePrefix_+=this.positivePrefix_,this.negativeSuffix_+=this.positiveSuffix_)};
$F.prototype.applyStandardPattern_=function(a){switch(a){case 1:this.applyPattern_(Mk.DECIMAL_PATTERN);break;case 2:this.applyPattern_(Mk.SCIENTIFIC_PATTERN);break;case 3:this.applyPattern_(Mk.PERCENT_PATTERN);break;case 4:a=this.applyPattern_;var b=Mk.CURRENCY_PATTERN;var c=["0"],d=kUc[Mk.DEF_CURRENCY_CODE];if(d){d=d[0]&7;if(d>0){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:nUc(this,1);break;case 6:nUc(this,2);break;default:throw Error("rc");
}};var nUc=function(a,b){a.compactStyle_=b;a.applyPattern_(Mk.DECIMAL_PATTERN);a.minimumFractionDigits_=0;gAa(a,2);iAa(a,2)};
$F.prototype.parse=function(a,b){b=b||[0];if(this.compactStyle_!==0)throw Error("sc");a=a.replace(/ |\u202f/g,"\u00a0");var c=a.indexOf(this.positivePrefix_,b[0])==b[0],d=a.indexOf(this.negativePrefix_,b[0])==b[0];c&&d&&(this.positivePrefix_.length>this.negativePrefix_.length?d=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(c=!1));c?b[0]+=this.positivePrefix_.length:d&&(b[0]+=this.negativePrefix_.length);if(a.indexOf(Mk.INFINITY,b[0])==b[0]){b[0]+=Mk.INFINITY.length;var e=Infinity}else{e=
a;var f=!1,g=!1,k=!1,l=-1,r=1,w=Mk.DECIMAL_SEP,x=Mk.GROUP_SEP,C=Mk.EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("tc");x=x.replace(/\u202f/g,"\u00a0");for(var H="";b[0]<e.length;b[0]++){var J=e.charAt(b[0]),O=oUc(J);if(O>=0&&O<=9)H+=O,k=!0;else if(J==w.charAt(0)){if(f||g)break;H+=".";f=!0}else if(J==x.charAt(0)&&("\u00a0"!=x.charAt(0)||b[0]+1<e.length&&oUc(e.charAt(b[0]+1))>=0)){if(f||g)break}else if(J==C.charAt(0)){if(g)break;H+="E";g=!0;l=b[0]}else if(J=="+"||J=="-"){if(k&&l!=b[0]-1)break;H+=
J}else if(this.multiplier_==1&&J==Mk.PERCENT.charAt(0)){if(r!=1)break;r=100;if(k){b[0]++;break}}else if(this.multiplier_==1&&J==Mk.PERMILL.charAt(0)){if(r!=1)break;r=1E3;if(k){b[0]++;break}}else break}this.multiplier_!=1&&(r=this.multiplier_);e=parseFloat(H)/r}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};
$F.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("uc");if(isNaN(a))return Mk.NAN;var b=[];var c=a;if(this.compactStyle_==0)c=pUc;else{c=Math.abs(c);var d=qUc(this,c<=1?0:rUc(c)).divisorBase;c=qUc(this,d+rUc(sUc(this,aG(c,-d)).intValue))}a=aG(a,-c.divisorBase);(d=a<0||a==0&&1/a<0)?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(e==0)tUc(this,e,this.minimumIntegerDigits_,b),uUc(this,0,b);else{var f=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=aG(e,-f);var g=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(g=f%this.maximumIntegerDigits_,g<0&&(g=this.maximumIntegerDigits_+g),e=aG(e,g),f-=g,g=1):this.minimumIntegerDigits_<1?(f++,e=aG(e,-1)):(f-=this.minimumIntegerDigits_-1,e=aG(e,this.minimumIntegerDigits_-
1));tUc(this,e,g,b);uUc(this,f,b)}}else tUc(this,a,this.minimumIntegerDigits_,b);else b.push(Mk.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 sUc=function(a,b){var c=aG(b,a.maximumFractionDigits_);a.significantDigits_>0&&(c=vUc(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);if(isFinite(c)){var d=Math.floor(aG(c,-a.maximumFractionDigits_));c=Math.floor(c-aG(d,a.maximumFractionDigits_));if(c<0||c>=aG(1,a.maximumFractionDigits_))d=Math.round(b),c=0}else d=b,c=0;return{intValue:d,fracValue:c}},tUc=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("uc");d||(d=[]);b=sUc(a,b);var e=b.intValue,
f=b.fracValue,g=e==0?0:rUc(e)+1,k=a.minimumFractionDigits_>0||f>0||a.showTrailingZeros_&&g<a.significantDigits_;b=a.minimumFractionDigits_;k&&(b=a.showTrailingZeros_&&a.significantDigits_>0?a.significantDigits_-g:a.minimumFractionDigits_);var l="";for(g=e;g>1E20;)l="0"+l,g=Math.round(aG(g,-1));l=g+l;var r=Mk.DECIMAL_SEP;g=Mk.ZERO_DIGIT.codePointAt(0);var w=l.length,x=0;if(e>0||c>0){for(e=w;e<c;e++)d.push(String.fromCodePoint(g));if(a.groupingArray_.length>=2)for(c=1;c<a.groupingArray_.length;c++)x+=
a.groupingArray_[c];c=w-x;if(c>0){e=a.groupingArray_;x=w=0;for(var C,H=Mk.GROUP_SEP,J=l.length,O=0;O<J;O++)if(d.push(String.fromCodePoint(g+Number(l.charAt(O)))),J-O>1)if(C=e[x],O<c){var R=c-O;(C===1||C>0&&R%C===1)&&d.push(H)}else x<e.length&&(O===c?x+=1:C===O-c-w+1&&(d.push(H),w+=C,x+=1))}else{c=l;l=a.groupingArray_;e=Mk.GROUP_SEP;C=c.length;H=[];for(w=l.length-1;w>=0&&C>0;w--){x=l[w];for(J=0;J<x&&C-J-1>=0;J++)H.push(String.fromCodePoint(g+Number(c.charAt(C-J-1))));C-=x;C>0&&H.push(e)}d.push.apply(d,
H.reverse())}}else k||d.push(String.fromCodePoint(g));(a.decimalSeparatorAlwaysShown_||k)&&d.push(r);f=String(f);k=f.split("e+");k.length==2&&(f=String(vUc(parseFloat(k[0]),a.significantDigits_,1)),f=f.replace(".",""),f+=WGc("0",parseInt(k[1],10)-f.length+1));a.maximumFractionDigits_+1>f.length&&(f="1"+WGc("0",a.maximumFractionDigits_-f.length)+f);for(a=f.length;f.charAt(a-1)=="0"&&a>b+1;)a--;for(b=1;b<a;b++)d.push(String.fromCodePoint(g+Number(f.charAt(b))))},uUc=function(a,b,c){c.push(Mk.EXP_SYMBOL);
b<0?(b=-b,c.push(Mk.MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push(Mk.PLUS_SIGN);b=""+b;for(var d=Mk.ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);a=d.codePointAt(0)-wUc;for(d=0;d<b.length;d++)c.push(String.fromCodePoint(a+b.codePointAt(d)))},oUc=function(a){a=a.codePointAt(0);if(48<=a&&a<58)return a-48;var b=Mk.ZERO_DIGIT.codePointAt(0);return b<=a&&a<b+10?a-b:-1},wUc="0".codePointAt(0),mUc=function(a,b,c){for(var d="",e=!1,f=b.length;c[0]<f;c[0]++){var g=b.charAt(c[0]);if(g=="'")c[0]+
1<f&&b.charAt(c[0]+1)=="'"?(c[0]++,d+="'"):e=!e;else if(e)d+=g;else switch(g){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":c[0]+1<f&&b.charAt(c[0]+1)=="\u00a4"?(c[0]++,d+=Mk.DEF_CURRENCY_CODE):(g=Mk.DEF_CURRENCY_CODE,d+=g in kUc?kUc[g][1]:g);break;case "%":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("vc");if(a.negativePercentSignExpected_&&a.multiplier_!=100)throw Error("wc");a.multiplier_=100;a.negativePercentSignExpected_=!1;d+=Mk.PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&
a.multiplier_!=1)throw Error("vc");if(a.negativePercentSignExpected_&&a.multiplier_!=1E3)throw Error("wc");a.multiplier_=1E3;a.negativePercentSignExpected_=!1;d+=Mk.PERMILL;break;default:d+=g}}return d},pUc={divisorBase:0,negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},qUc=function(a,b){a=a.compactStyle_==1?jUc.COMPACT_DECIMAL_SHORT_PATTERN:jUc.COMPACT_DECIMAL_LONG_PATTERN;a==null&&(a=jUc.COMPACT_DECIMAL_SHORT_PATTERN);if(b<3)return pUc;b=Math.min(14,b);var c=a[aG(1,b)];for(--b;!c&&b>=
3;)c=a[aG(1,b)],b--;if(!c)return pUc;c=c.other;var d=a="",e=c.indexOf(";");e>=0&&(c=c.substring(0,e),e=c.substring(e+1))&&(d=/([^0]*)(0+)(.*)/.exec(e),a=d[1],d=d[3]);return c&&c!="0"?(c=/([^0]*)(0+)(.*)/.exec(c))?{divisorBase:b+1-(c[2].length-1),negative_prefix:a,negative_suffix:d,prefix:c[1],suffix:c[3]}:pUc:pUc},rUc=function(a){if(!isFinite(a))return a>0?a:0;for(var b=0;(a/=10)>=1;)b++;return b},aG=function(a,b){if(!a||!isFinite(a)||b==0)return a;a=String(a).split("e");return parseFloat(a[0]+"e"+
(parseInt(a[1]||0,10)+b))},xUc=function(a,b){return a&&isFinite(a)?aG(Math.round(aG(a,b)),-b):a},vUc=function(a,b,c){if(!a)return a;b=b-rUc(a)-1;return b<-c?xUc(a,-c):xUc(a,b)};var OAa=Math.sqrt(50),PAa=Math.sqrt(10),QAa=Math.sqrt(2),Rza={1:{key:"1",coef:1,base:1},"%":{key:"%",suffix:"%",coef:.01,base:4},ratio:{key:"ratio",coef:1,base:4},"10^2":{key:"10^2",suffix:"\u00b7100",coef:100,base:4},s:{key:"s",suffix:"s",coef:1,base:5},min:{key:"min",suffix:"min",coef:60,base:5},h:{key:"h",suffix:"h",coef:3600,base:5},d:{key:"d",suffix:"d",coef:86400,base:5},w:{key:"w",suffix:"w",coef:604800,base:5},By:{key:"By",suffix:"B",coef:1,base:2,scale:2},"\u00a2":{key:"\u00a2",suffix:"\u00a2",
coef:.01,base:3},$:{key:"$",prefix:"$",coef:1,base:3}},yUc={1:["count","load","Count","Cycles"],"%":["whole_percent"],"10^2.%":["percent"],s:["second","seconds"],min:["minute","minutes"],h:["hour","hours"],d:["day","days"],By:["byte","bytes","BY","by"],kBy:["KB","KBy","kB"],MBy:["MB"],GBy:["GB"],TBy:["TB"],KiBy:"kilobyte kilobytes kibibyte kibibytes Ki KIB".split(" "),MiBy:"megabyte megabytes mebibyte mebibytes Mi MIB".split(" "),GiBy:"gigabyte gigabytes gibibyte gibibytes Gi GIB".split(" "),TiBy:"terabyte terabytes tebibyte tebibytes Ti TIB".split(" "),
$:["us_dollar","USD"],"\u00a2":["us_cent"]},Vza=Object.keys(yUc).reduce(function(a,b){for(var c=m(yUc[b]),d=c.next();!d.done;d=c.next())a[d.value]=b;return a},{}),Sza={y:{coef:1E-24,scale:1},z:{coef:1E-21,scale:1},a:{coef:1E-18,scale:1},f:{coef:1E-15,scale:1},p:{coef:1E-12,scale:1},n:{coef:1E-9,scale:1},u:{coef:1E-6,scale:1},m:{coef:.001,scale:1},k:{coef:1E3,scale:1},K:{coef:1E3,scale:1},M:{coef:1E6,scale:1},G:{coef:1E9,scale:1},T:{coef:1E12,scale:1},P:{coef:1E15,scale:1},E:{coef:1E18,scale:1},Z:{coef:1E21,
scale:1},Y:{coef:1E24,scale:1},Ki:{coef:1024,scale:2},Mi:{coef:1048576,scale:2},Gi:{coef:1073741824,scale:2},Ti:{coef:1099511627776,scale:2},Pi:{coef:0x4000000000000,scale:2},Ei:{coef:0x1000000000000000,scale:2},Zi:{coef:1.1805916207174113E21,scale:2},Yi:{coef:1.2089258196146292E24,scale:2}},bG={},Xza=(bG["1,1"]="1kMGTPEZY".split(""),bG["1,2"]="By kBy MBy GBy TBy PBy EBy ZBy YBy".split(" "),bG["2,2"]="By KiBy MiBy GiBy TiBy PiBy EiBy ZiBy YiBy".split(" "),bG["1,3"]="\u00a2 $ k$ M$ G$ T$ P$ E$ Z$ Y$".split(" "),
bG["1,4"]=["%","ratio"],bG["1,5"]="ys zs as fs ps ns us ms s min h d w".split(" "),bG),zUc=Object.keys(Sza).map(Nza).join("|"),AUc=Object.keys(Rza).map(Nza).join("|"),Qza=new RegExp("^("+zUc+")?("+AUc+")?$"),tAa={neverScaleRates:!0,idealMaxMagnitude:1,idealMinMagnitude:0,countPrefixMaxMagnitude:Math.log10(1E12),countPrefixMinMagnitude:Math.log10(1)},hAa=new $F(1),jAa=new $F(2);iAa(jAa,3);var kAa=new $F("#,##0.00"),qAa=new ql(8);var BUc={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",YEAR_MONTH_SHORT:"MM/y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"MMM d, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, MMM d",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, MMM d, y",DAY_ABBR:"d",MONTH_DAY_TIME_ZONE_SHORT:"MMM d, h:mm\u202fa zzzz"},cG=BUc;cG=BUc;var Qk={WEEKLY:6048E5,DAILY:864E5,QUARTER_DAY:216E5,TWO_HOURLY:72E5,HOURLY:36E5,HALF_HOURLY:18E5,TEN_MINUTES:6E5,FIVE_MINUTES:3E5,ONE_MINUTE:6E4,THIRTY_SECONDS:3E4,TEN_SECONDS:1E4,ONE_SECOND:1E3,HUNDRED_MILLIS:100,TEN_MILLIS:10,ONE_MILLI:1},FAa=Object.values(Qk),dG={},IAa=(dG[Qk.WEEKLY]=new ql(2),dG[Qk.DAILY]=new ql(cG.MONTH_DAY_ABBR),dG[Qk.QUARTER_DAY]=new ql(7),dG[Qk.TWO_HOURLY]=new ql(7),dG[Qk.HOURLY]=new ql(7),dG[Qk.HALF_HOURLY]=new ql(7),dG[Qk.TEN_MINUTES]=new ql(7),dG[Qk.FIVE_MINUTES]=new ql(7),
dG[Qk.ONE_MINUTE]=new ql(7),dG[Qk.THIRTY_SECONDS]=new ql(6),dG[Qk.TEN_SECONDS]=new ql(6),dG[Qk.ONE_SECOND]=new ql(6),dG[Qk.HUNDRED_MILLIS]=new ql("HH:mm:ss.SSS"),dG[Qk.TEN_MILLIS]=new ql("HH:mm:ss.SSS"),dG[Qk.ONE_MILLI]=new ql("HH:mm:ss.SSS"),dG);new ql(2);new ql(cG.MONTH_DAY_ABBR);new ql("HH:mm");new ql("HH:mm");new ql("HH:mm");new ql("HH:mm");new ql("HH:mm");new ql("HH:mm");new ql("HH:mm");new ql("HH:mm:ss");new ql("HH:mm:ss");new ql("HH:mm:ss");new ql("HH:mm:ss.SSS");new ql("HH:mm:ss.SSS");new ql("HH:mm:ss.SSS");
var eG={},HAa=(eG[Qk.DAILY]=new ql(cG.YEAR_FULL),eG[Qk.QUARTER_DAY]=new ql(cG.MONTH_DAY_ABBR),eG[Qk.TWO_HOURLY]=new ql(cG.MONTH_DAY_ABBR),eG[Qk.HOURLY]=new ql(cG.MONTH_DAY_ABBR),eG[Qk.HALF_HOURLY]=new ql(cG.MONTH_DAY_ABBR),eG[Qk.TEN_MINUTES]=new ql(cG.MONTH_DAY_ABBR),eG[Qk.FIVE_MINUTES]=new ql(cG.MONTH_DAY_ABBR),eG[Qk.ONE_MINUTE]=new ql(cG.MONTH_DAY_ABBR),eG[Qk.THIRTY_SECONDS]=new ql(cG.MONTH_DAY_ABBR),eG[Qk.TEN_SECONDS]=new ql(cG.MONTH_DAY_ABBR),eG[Qk.ONE_SECOND]=new ql(cG.MONTH_DAY_ABBR),eG[Qk.HUNDRED_MILLIS]=
new ql("HH:mm:ss.SSS"),eG[Qk.TEN_MILLIS]=new ql("HH:mm:ss.SSS"),eG[Qk.ONE_MILLI]=new ql("HH:mm:ss.SSS"),eG);new ql("yyyy-MM-dd");new ql("MM-dd");new ql("HH:mm");new ql("HH:mm");new ql("HH:mm");new ql("HH:mm");new ql("HH:mm");new ql("HH:mm");new ql("HH:mm");new ql("HH:mm:ss");new ql("HH:mm:ss");new ql("HH:mm:ss");new ql("HH:mm:ss.SSS");new ql("HH:mm:ss.SSS");new ql("HH:mm:ss.SSS");new ql(cG.YEAR_FULL);new ql("MM-dd");new ql("MM-dd");new ql("MM-dd");new ql("MM-dd");new ql("MM-dd");new ql("MM-dd");new ql("MM-dd");
new ql("MM-dd");new ql("MM-dd");new ql("MM-dd");new ql("HH:mm:ss.SSS");new ql("HH:mm:ss.SSS");new ql("HH:mm:ss.SSS");var CUc={format:Nk,ignoreFloatImprecision:!1};var fG=function(){this.valueStrategyRegistry=new Map},DUc=function(a,b,c){var d=a.valueStrategyRegistry.get(b.chartId);d?d.next(c):(d=new Mj(c),a.valueStrategyRegistry.set(b.chartId,d))};fG.prototype.getValueStrategy=function(a){var b=this.valueStrategyRegistry.get(a.chartId);b||(b=new Mj(CUc),this.valueStrategyRegistry.set(a.chartId,b));return b.pipe(nf())};var EUc=function(a,b,c){var d=a.valueStrategyRegistry.get(b);d&&(d.pipe(lf(1)).subscribe(function(e){DUc(a,{chartId:c},e)}),a.valueStrategyRegistry.delete(b))};
fG.\u0275fac=function(a){return new (a||fG)};fG.\u0275prov=Dc({token:fG,factory:fG.\u0275fac,providedIn:"root"});var FUc=new dd("TOOLTIP_POSITION"),GUc=new dd("TOOLTIP_VISIBLE_ON_OVERLAY_HOVER"),HUc=new dd("TOOLTIP_MOCK_REQUEST_ANIMATION_FRAME"),IUc=new dd("TOOLTIP_RENDER_DEBOUNCE_MS");var JUc=[{style:"alert",color:"var(--ac-sys-color-status-error, #d93025)",icon:"alert"},{style:"warning",color:"var(--ac-sys-color-status-warning, #e37400)",icon:"warning"},{style:"comment",color:"var(--ac-sys-color-status-info, #3367D6)",icon:"topic"},{style:"info",color:"var(--ac-sys-color-status-default, #757575)",icon:"info"},{style:"error",color:"var(--ac-sys-color-status-error, #d93025)",icon:"error"}],KUc=new Map([["warning","M 9.3731 4.5 C 10.5338 2.4688 13.4626 2.4688 14.6233 4.5 L 21.5073 16.5469 C 22.6591 18.5625 21.2038 21.0705 18.8822 21.0705 H 5.1142 C 2.7927 21.0705 1.3373 18.5625 2.4891 16.5469 L 9.3731 4.5 Z M 10.4866 13.5117 H 13.5101 V 7.4648 H 10.4866 V 13.5117 Z M 13.5101 18.047 H 10.4866 V 15.0235 H 13.5101 V 18.047 Z"],
["alert","M 14 19.3333 H 10 C 10 20.7999 10.9 21.9999 12 21.9999 C 13.1 21.9999 14 20.7999 14 19.3333 Z M 13.3269 3.4654 C 16.373 4.0806 18.6666 6.7724 18.6666 10 V 15.3277 L 19.9999 16.661 V 17.9999 H 4 V 16.661 L 5.3333 15.3277 V 10 C 5.3333 6.7724 7.6269 4.0806 10.673 3.4654 C 10.6688 3.4219 10.6666 3.3779 10.6666 3.3333 C 10.6666 2.5969 11.2636 2 12 2 C 12.7363 2 13.3333 2.5969 13.3333 3.3333 C 13.3333 3.3779 13.3311 3.4219 13.3269 3.4654 Z"],["topic","M 5.5715 4 C 4.1572 4 3.0128 5.1572 3.0128 6.5715 L 3 22 L 6.8572 18.1428 H 18.4286 C 19.8428 18.1428 21 16.9857 21 15.5714 V 6.5715 C 21 5.1572 19.8428 4 18.4286 4 H 5.5715 Z M 6.8572 9.1428 V 7.8572 H 17.1428 V 9.1428 H 6.8572 Z M 6.8572 11.7143 V 10.4286 H 17.1428 V 11.7143 H 6.8572 Z M 6.8572 14.2857 V 13 H 13.2857 V 14.2857 H 6.8572 Z"],
["info","M 12 21 C 16.9705 21 21 16.9705 21 12 C 21 7.0295 16.9705 3 12 3 C 7.0295 3 3 7.0295 3 12 C 3 16.9705 7.0295 21 12 21 Z M 13.2857 10.7143 V 17.1428 H 10.7143 V 10.7143 H 13.2857 Z M 13.2857 9.4285 V 6.8572 H 10.7143 V 9.4285 H 13.2857 Z"],["insights","M3 20q-.825 0-1.412-.587Q1 18.825 1 18q0-.825.588-1.413Q2.175 16 3 16h.263q.112 0 .237.05l4.55-4.55Q8 11.375 8 11.262V11q0-.825.588-1.413Q9.175 9 10 9t1.413.587Q12 10.175 12 11q0 .05-.05.5l2.55 2.55q.125-.05.238-.05h.524q.113 0 .238.05l3.55-3.55q-.05-.125-.05-.238V10q0-.825.587-1.413Q20.175 8 21 8q.825 0 1.413.587Q23 9.175 23 10q0 .825-.587 1.412Q21.825 12 21 12h-.262q-.113 0-.238-.05l-3.55 3.55q.05.125.05.238V16q0 .825-.587 1.413Q15.825 18 15 18q-.825 0-1.412-.587Q13 16.825 13 16v-.262q0-.113.05-.238l-2.55-2.55q-.125.05-.238.05H10q-.05 0-.5-.05L4.95 17.5q.05.125.05.238V18q0 .825-.588 1.413Q3.825 20 3 20ZM4 9.975l-.625-1.35L2.025 8l1.35-.625L4 6.025l.625 1.35L5.975 8l-1.35.625ZM15 9l-.95-2.05L12 6l2.05-.95L15 3l.95 2.05L18 6l-2.05.95Z"],
["error","M 12 3 C 7.0295 3 3 7.0295 3 12 C 3 16.9705 7.0295 21 12 21 C 16.9705 21 21 16.9705 21 12 C 21 7.0295 16.9705 3 12 3 Z M 10.7143 13.2857 V 6.8572 H 13.2857 V 13.2857 H 10.7143 Z M 10.7143 14.5715 V 17.1428 H 13.2857 V 14.5715 H 10.7143 Z"]]),LUc=["left","right"],MUc=["chart_group","bottom","ops_group"],NUc=new dd("AC_USE_MINIMUM_CANVASES");var WAa=Math.log10(1E12),XAa=Math.log10(1);var gG=function(a,b){this.store=a;this.formatterService=b;this.factoryRegistry=new Map;this.xAxisTickStrategyRegistry=new Map;this.yAxisTickStrategyRegistry=new Map;this.categoricalAxisTickStrategyRegistry=new Map},OUc=function(a,b){var c=a.factoryRegistry.get(b);c||(c={selectors:new Map,selections:new Map},a.factoryRegistry.set(b,c));return c};
gG.prototype.getSelector=function(a,b){var c=this,d=OUc(this,a),e=a.getKey(b),f=d.selectors.get(e);f||(f=bia(function(){var g=new qf;return{selectorObservable:a.getSelector(b,c),destroyed:g,unsubscribe:function(){d.selectors.delete(e);g.next();g.complete()}}},function(g){var k=new uf(1);g.selectorObservable.pipe(zf(g.destroyed)).subscribe(function(l){k.next(l)});return k}).pipe(vf({refCount:!0,bufferSize:1})),d.selectors.set(e,f));return f};
gG.prototype.getSelection=function(a,b){var c=this,d=OUc(this,a),e=a.getKey(b),f=d.selections.get(e);f||(f=this.getSelector(a,b).pipe(yf(function(g){return c.store.pipe(ak(g))})),d.selections.set(e,f));return f};
var PUc=function(a,b,c){b=b.chartId+","+b.yAxisId;var d=a.yAxisTickStrategyRegistry.get(b);d?d.next(c):(d=new Mj(c),a.yAxisTickStrategyRegistry.set(b,d))},QUc=function(a,b){b=b.chartId+","+b.yAxisId;var c=a.yAxisTickStrategyRegistry.get(b);c||(c=new Mj(YAa),a.yAxisTickStrategyRegistry.set(b,c));return c.pipe(nf())},RUc=function(a,b,c){b=Ek(b.chartGroupId,b.chartId,b.xAxisId);var d=a.xAxisTickStrategyRegistry.get(b);d?d.next(c):(d=new Mj(c),a.xAxisTickStrategyRegistry.set(b,d))},SUc=function(a,b){b=
Ek(b.chartGroupId,b.chartId,b.xAxisId);var c=a.xAxisTickStrategyRegistry.get(b);c||(c=new Mj(JAa),a.xAxisTickStrategyRegistry.set(b,c));return c.pipe(nf())},TUc=function(a,b,c,d){b=Ek(b.chartGroupId,b.chartId,b.xAxisId);var e=a.categoricalAxisTickStrategyRegistry.get(b);c={strategy:c,options:d};e?e.next(c):(e=new Mj(c),a.categoricalAxisTickStrategyRegistry.set(b,e))},UUc=function(a,b){b=Ek(b.chartGroupId,b.chartId,b.xAxisId);var c=a.categoricalAxisTickStrategyRegistry.get(b);c||(c=new Mj({strategy:LAa}),
a.categoricalAxisTickStrategyRegistry.set(b,c));return c.pipe(nf(function(d,e){if(d.strategy!==e.strategy)return!1;if(d.options===e.options)return!0;if(!d.options||!e.options)return!1;var f,g;return Gba((f=d.options.customOrder)!=null?f:[],(g=e.options.customOrder)!=null?g:[])}))};gG.prototype.getValueStrategy=function(a){return this.formatterService.getValueStrategy(a)};
var MTc=function(a,b){var c=b.previousValue,d=b.currentValue;if((c==null?0:c.chartGroupId)&&(c==null?0:c.chartId)&&(d==null?0:d.chartGroupId)&&(d==null?0:d.chartId)&&(c.chartGroupId!==d.chartGroupId||c.chartId!==d.chartId)){b=m(MUc);for(var e=b.next(),f={};!e.done;f={xAxisId$jscomp$3:void 0},e=b.next())f.xAxisId$jscomp$3=e.value,(e=a.xAxisTickStrategyRegistry.get(Ek(c.chartGroupId,c.chartId,f.xAxisId$jscomp$3)))&&e.pipe(lf(1)).subscribe(function(g){return function(k){RUc(a,{chartGroupId:d.chartGroupId,
chartId:d.chartId,xAxisId:g.xAxisId$jscomp$3},k)}}(f));b=m(LUc);e=b.next();for(f={};!e.done;f={yAxisId$jscomp$3:void 0},e=b.next())f.yAxisId$jscomp$3=e.value,(e=a.yAxisTickStrategyRegistry.get(c.chartId+","+f.yAxisId$jscomp$3))&&e.pipe(lf(1)).subscribe(function(g){return function(k){PUc(a,{chartId:d.chartId,yAxisId:g.yAxisId$jscomp$3},k)}}(f));EUc(a.formatterService,c.chartId,d.chartId)}};gG.\u0275fac=function(a){return new (a||gG)(Xc(AF),Xc(fG))};gG.\u0275prov=Dc({token:gG,factory:gG.\u0275fac,providedIn:"root"});var hG={chartGroupId:"",axis:0,panning:!1,brushing:!1,xPos:null,xPosStart:null,yAxes:[],chartId:null};var VUc=Uj("[AC] Set project id for chart",Wj()),WUc=Uj("[AC] Set y axis orientation for chart",Wj());var XUc=Uj("[AC] Update chart dimensions",Wj()),iG=Uj("[AC] Set chart margin requirement",Wj()),YUc=Uj("[AC] Remove chart margin requirements",Wj()),ZUc=Uj("[AC] Set margins strategy to use max chart group margins",Wj());var $Uc=Uj("[AC] Set Y Axis requirement",Wj()),aVc=Uj("[AC] Set Y Axis label",Wj()),bVc=Uj("[AC] Remove Y Axis requirements by priority",Wj()),cVc=Uj("[AC] Remove Y Axis requirement by id",Wj()),dVc=Uj("[AC] Set for Y Axis",Wj());var eVc=function(a){return a%10==1&&a%100!=11?"one":a%10==2&&a%100!=12?"two":a%10==3&&a%100!=13?"few":"other"},fVc=eVc;fVc=eVc;var gVc=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,f===-1?0:e.length-f-1,3)}d=Math.pow(10,b);a={v:b,f:(a*d|0)%d};return c==1&&a.v==0?"one":"other"},hVc=gVc;hVc=gVc;var Vl=function(a){this.pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=Mk;var b=jUc;if(iVc!==a||jVc!==b)iVc=a,jVc=b,kVc=new $F(1);this.numberFormatter_=kVc},iVc=null,jVc=null,kVc=null,lVc=RegExp("'([{}#].*?)'","g"),mVc=RegExp("''","g");Vl.prototype.format=function(a){return this.format_(a,!1)};
Vl.prototype.format_=function(a,b){if(this.pattern_){this.initialLiterals_=[];var c=nVc(this,this.pattern_);this.parsedPattern_=oVc(this,c);this.pattern_=null}if(!this.parsedPattern_||this.parsedPattern_.length==0)return"";this.literals_=Ma(this.initialLiterals_);c=[];pVc(this,this.parsedPattern_,a,b,c);for(a=c.join("");this.literals_.length>0;)a=a.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));return a};
var pVc=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 g=b[f].value;var k=a,l=e,r=c[g];r===void 0?l.push("Undefined parameter - "+g):(k.literals_.push(r),l.push(k.buildPlaceholder_(k.literals_)));break;case 2:g=b[f].value;k=a;l=c;r=d;var w=e,x=g.argumentIndex;l[x]===void 0?w.push("Undefined parameter - "+x):(x=g[l[x]],x===void 0&&(x=g.other),pVc(k,x,l,r,w));break;case 0:g=b[f].value;qVc(a,g,c,hVc,d,e);break;case 1:g=b[f].value,qVc(a,g,c,
fVc,d,e)}},qVc=function(a,b,c,d,e,f){var g=b.argumentIndex,k=b.argumentOffset,l=+c[g];isNaN(l)?f.push("Undefined or invalid parameter - "+g):(k=l-k,g=b[c[g]],g===void 0&&(d=d(Math.abs(k)),g=b[d],g===void 0&&(g=b.other)),b=[],pVc(a,g,c,e,b),c=b.join(""),e?f.push(c):(a=a.numberFormatter_.format(k),f.push(c.replace(/#/g,a))))},nVc=function(a,b){var c=a.initialLiterals_,d=a.buildPlaceholder_.bind(a);b=b.replace(mVc,function(){c.push("'");return d(c)});return b=b.replace(lVc,function(e,f){c.push(f);return d(c)})},
rVc=function(a){var b=0,c=[],d=[],e=/[{}]/g;e.lastIndex=0;for(var f;f=e.exec(a);){var g=f.index;f[0]=="}"?(c.pop(),c.length==0&&(f={type:1},f.value=a.substring(b,g),d.push(f),b=g+1)):(c.length==0&&(b=a.substring(b,g),b!=""&&d.push({type:0,value:b}),b=g+1),c.push("{"))}a=a.substring(b);a!=""&&d.push({type:0,value:a});return d},sVc=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,tVc=/^\s*(\w+)\s*,\s*selectordinal\s*,/,uVc=/^\s*(\w+)\s*,\s*select\s*,/,oVc=function(a,b){var c=[];b=rVc(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(sVc.test(f)?0:tVc.test(f)?1:uVc.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:e.type=2;e.value=vVc(a,b[d].value);break;case 0:e.type=0;e.value=wVc(a,b[d].value);break;case 1:e.type=1;e.value=xVc(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},vVc=function(a,b){var c="";b=b.replace(uVc,function(k,l){c=l;return""});var d={};d.argumentIndex=c;b=rVc(b);for(var e=0;e<
b.length;){var f=b[e].value;e++;var g=void 0;1==b[e].type&&(g=oVc(a,b[e].value));d[f.replace(/\s/g,"")]=g;e++}return d},wVc=function(a,b){var c="",d=0;b=b.replace(sVc,function(l,r,w){c=r;w&&(d=parseInt(w,10));return""});var e={};e.argumentIndex=c;e.argumentOffset=d;b=rVc(b);for(var f=0;f<b.length;){var g=b[f].value;f++;var k=void 0;1==b[f].type&&(k=oVc(a,b[f].value));e[g.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;f++}return e},xVc=function(a,b){var c="";b=b.replace(tVc,function(k,l){c=l;return""});var d=
{};d.argumentIndex=c;d.argumentOffset=0;b=rVc(b);for(var e=0;e<b.length;){var f=b[e].value;e++;var g=void 0;1==b[e].type&&(g=oVc(a,b[e].value));d[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=g;e++}return d};Vl.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};var hBa={get scaleFactor(){return window.devicePixelRatio||2}};var eBa=/var\((--[\w\-]+)(?:\s*,\s*(.+?))?\)$/,fBa=/^#([0-9a-f]{1,8})$/i;var yVc=rw(["pan-"]),jG=function(a){this.base=a;this.canvas=document.createElement("canvas");this.fastResizeBufferMap=new Map;this.lastDrawnDomain=null;this.drawListener=function(){};this.panInstrumentationAdded=!1;this.canvas.setAttribute("aria-hidden","true");this.canvas.style.position="absolute";var b=this.canvas.getContext("2d");if(!b)throw Error("Ec");this.ctx=b;a.appendChild(this.canvas)};jG.prototype.detach=function(){this.isAttached()&&this.base.removeChild(this.canvas)};
jG.prototype.reattach=function(){this.isAttached()||this.base.appendChild(this.canvas)};jG.prototype.isAttached=function(){return this.base.contains(this.canvas)};var kG=function(a,b){a.drawListener=b},zVc=function(a){a.drawListener=function(){}},lG=function(a){a.panInstrumentationAdded||(Ira([new Hra(yVc[0].toLowerCase())],a.base,"pan-async-rendered",""),a.panInstrumentationAdded=!0)};jG.prototype.destroy=function(){this.canvas&&(this.canvas.height=0,this.canvas.width=0)};
jG.prototype.pan=function(a){this.ctx.save();var b=hBa.scaleFactor,c=new Path2D;c.rect(a.clip.left,a.clip.top,a.clip.width,a.clip.height);this.ctx.clip(c);this.ctx.globalCompositeOperation="copy";this.ctx.translate(a.shift,0);this.ctx.drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,this.canvas.width/b,this.canvas.height/b);this.lastDrawnDomain={min:a.xAxisMin,max:a.xAxisMax};this.ctx.restore()};var mG=function(a,b,c){a.lastDrawnDomain={min:b,max:c}},nG=function(a,b){a.fastResizeBufferMap.delete(b)};
jG.prototype.resize=function(a,b,c,d){d=d===void 0?!1:d;var e=a.height,f=a.width;a=a.margins;var g=f,k=e;d&&(g=f-a.left-a.right,k=e-a.top-a.bottom);e=this.fastResizeBufferMap.get(b);e||(e=document.createElement("canvas"),f=e.getContext("2d"),bl(e,this.base,b.height,b.width,"transparent",1),b.width!==0&&b.height!==0&&f.drawImage(b,0,0,b.width,b.height,0,0,b.width,b.height),f=c.getTransform&&c.getTransform()||c.getTransform&&c.getTransform(),e={bufferCanvas:e,bufferScaleFactor:f&&(f.a||f.a)||1},this.fastResizeBufferMap.set(b,
e));f=e;e=f.bufferCanvas;f=f.bufferScaleFactor;if(d)b.style.left=a.left+"px",b.style.top=a.top+"px",bl(b,this.base,k,g),e.width!==0&&e.height!==0&&c.drawImage(e,0,0,e.width,e.height,0,0,g,k);else{d=g/(e.width/f);f=k/(e.height/f);b.style.left="0px";b.style.top="0px";bl(b,this.base,k,g);b=a.left*(1-d);var l=a.top*(1-f);g=g-b-a.right*(1-d);a=k-l-a.bottom*(1-f);e.width!==0&&e.height!==0&&c.drawImage(e,0,0,e.width,e.height,b|0,l|0,g|0,a|0)}};var oG=function(){jG.apply(this,arguments)};Y(oG,jG);
oG.prototype.draw=function(a){this.lastChanges=a;this.drawInternal(a)};oG.prototype.redraw=function(){this.lastChanges&&this.drawInternal(this.lastChanges)};var pG=function(){jG.apply(this,arguments)};Y(pG,jG);h=pG.prototype;h.draw=function(a,b){this.lastChanges=a;this.lastChangeContext=b;this.drawV1(b)};h.redraw=function(){this.lastChanges&&this.lastChangeContext&&this.drawV1(this.lastChangeContext)};h.onConfigChange=function(){};h.onResizeChange=function(){};h.onXAxisChange=function(){};
h.onCategoricalAxisChange=function(){};h.onYAxisChange=function(){};h.onErrorChange=function(){};h.onLoadingChange=function(){};h.onBrushChange=function(){};h.onSeriesSelectionChange=function(){};h.onXAxisPinChange=function(){};h.onTimeSeriesChange=function(){};h.onFocusChange=function(){};h.onColorScaleChange=function(){};h.onColorMapChange=function(){};
var AVc=function(a,b){b=b.state;if(!b)return null;var c=b.resize,d=b.xAxis;if(!c||!d)return null;b=d.min;var e=d.max;if(d.lastUpdateCausedBy!==3||!b||!e||!a.lastDrawnDomain||e-b!==a.lastDrawnDomain.max-a.lastDrawnDomain.min)return null;var f=c.width-c.margins.left-c.margins.right;c=c.height-c.margins.top-c.margins.bottom;return(d=Xk(d,0,f))?{shift:d(a.lastDrawnDomain.min)-d(b),xAxisMin:b,xAxisMax:e,clip:{left:0,top:0,width:f,height:c}}:null},qG=function(a,b,c,d,e){(b=b.state)&&(b=b.resize)&&a.resize({height:b.height,
width:b.width,margins:b.margins},c,d,e===void 0?!1:e)},CVc=function(a,b){pG.call(this,a);var c=this;this.drawScheduler=new BVc(this.canvas,b,function(d){c.drawInternal(d)})};Y(CVc,pG);CVc.prototype.drawV1=function(a){this.drawScheduler.schedule(a)};
var BVc=function(a,b,c){var d=this;this.callback=c;this.isVisible=!1;this.contextForScheduledCallback=this.contextForWhenVisible=null;b.runOutsideAngular(function(){(new IntersectionObserver(function(e){var f=e[0];e=m(e);for(var g=e.next();!g.done;g=e.next())g=g.value,g.time>f.time&&(f=g);d.isVisible=f.isIntersecting;d.isVisible&&d.contextForWhenVisible!==null&&(d.schedule(d.contextForWhenVisible),d.contextForWhenVisible=null)},{rootMargin:"50% 0px 50% 0px"})).observe(a)})};
BVc.prototype.schedule=function(a){var b=this;this.contextForScheduledCallback!==null?this.contextForScheduledCallback=a:this.isVisible?(this.contextForScheduledCallback=a,queueMicrotask(function(){b.contextForScheduledCallback===null?console.error("tried to run a scheduled callback, but there was no context set"):(b.callback(b.contextForScheduledCallback),b.contextForScheduledCallback=null)})):this.contextForWhenVisible=a};var fl=Zj(pk,function(a){return a.brush}),DVc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ce(Zj(fl,function(c){return c.entities[b]}))}}),EVc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ce(Zj(fl,function(c){var d;return(d=c.entities[b])==null?void 0:d.brushing}))}}),FVc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ce(Zj(fl,function(c){var d;return(d=c.entities[b])==null?void 0:d.panning}))}}),GVc=new ik({getKey:ok,getSelector:function(a){var b=
a.chartGroupId;return ce(Zj(fl,function(c){var d;return(d=c.entities[b])==null?void 0:d.xPosStart}))}}),HVc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ce(Zj(fl,function(c){var d;return(d=c.entities[b])==null?void 0:d.xPos}))}}),IVc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ce(Zj(fl,function(c){var d;return(d=c.entities[b])==null?void 0:d.axis}))}});var JVc=Uj("[AC] Set Categorical Axis requirement",Wj()),KVc=Uj("[AC] Remove Categorical Axis requirement by id",Wj()),LVc=Uj("[AC] Set Categorical Axis gutter ratio",Wj());var MVc=Zj(pk,function(a){return a.categoricalAxis}),NVc=new ik({getKey:nBa,getSelector:function(a){return ce(Zj(MVc,function(b){var c;return(c=b.entities[nBa(a)])==null?void 0:c.requirements}))}}),OVc=new ik({getKey:nBa,getSelector:function(a){return ce(Zj(MVc,function(b){var c;return(c=b.entities[nBa(a)])==null?void 0:c.gutterRatio}))}}),PVc=new ik({getKey:oBa,getSelector:function(a,b){return ie([UUc(b,a),b.getSelector(NVc,a)]).pipe(A(function(c){c=m(c);var d=c.next().value;var e=d.strategy;var f=
d.options;c=c.next().value;return Yj(function(g){return Xj(g,function(k,l){return k===l},mBa)})(c,function(g){if(g!==void 0&&g.length>0)return e(g,f!=null?f:{})})}))}}),QVc=new ik({getKey:oBa,getSelector:function(a,b){return ie([b.getSelector(NVc,a),b.getSelector(PVc,a)]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return Zj(c,d,function(e,f){if(e!==void 0&&f!==void 0)return Object.assign({},a,{requirements:e},f)})}))}});var RVc=Uj("[AC] Set layer color map",Wj());var SVc=Zj(pk,function(a){return a.colorMap}),TVc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ce(Zj(SVc,function(c){return c.entities[b]}))}});var UVc=Zj(pk,function(a){return a.colorScale}),VVc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ce(Zj(UVc,function(c){return c.entities[b]}))}});var WVc=Uj("[AC] Set chart error for source",Wj()),XVc=Uj("[AC] Clear chart error for source",Wj()),YVc=Uj("[AC] Set non-blocking chart error for source",Wj()),ZVc=Uj("[AC] Clear non-blocking chart error for source",Wj());var $Vc=Zj(pk,function(a){return a.error}),aWc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ce(Zj($Vc,function(c){return c.entities[b]}))}});var bWc=Uj("[AC] Set focus requirement",Wj()),cWc=Uj("[AC] Remove focus requirement",Wj());var dWc=Zj(pk,function(a){return a.lastInteraction}),eWc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ce(Zj(dWc,function(c){return c.entities[b]}))}});var fWc=Uj("[AC] Set chart loading for source",Wj()),gWc=Uj("[AC] Clear chart loading for source",Wj());var hWc=Zj(pk,function(a){return a.loading}),iWc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ce(Zj(hWc,function(c){return c.entities[b]}))}});var jWc=Zj(pk,function(a){return a.seriesSelection}),kWc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ce(Zj(jWc,function(c){return c.entities[b]}))}});var lWc=Zj(pk,function(a){return a.chartSpec}),mWc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ce(Zj(lWc,function(c){return c.entities[b]}))}});var nWc=Uj("[AC] Set X Axis requirement",Wj()),oWc=Uj("[AC] Remove X Axis requirements by priority",Wj()),pWc=Uj("[AC] Remove X Axis requirement by id",Wj()),qWc=Uj("[AC] Set X axis relative-to",Wj()),rWc=Uj("[AC] Set X axis timezone offset",Wj()),sWc=Uj("[AC] Set X axis time zone ID",Wj());var tWc={chartGroupId:"",chartId:"",xAxisId:"chart_group",requirements:[],min:null,max:null,unit:"ms_since_epoch",bucketWidth:void 0,ticks:[],scaleType:0,lastUpdateCausedBy:0};var rG=function(a){return Ek(a.chartGroupId,a.chartId,a.xAxisId)},sG=function(a){var b=a.chartGroupId;var c=a.chartId;return"chartGroupId:"+b+",chartId:"+c+",xAxisKey:"+Ek(b,c,a.xAxisId)},tG=Zj(pk,function(a){return a.xAxis}),uWc=new ik({getKey:rG,getSelector:function(a){return ce(Zj(tG,function(b){var c;return(c=b.entities[rG(a)])==null?void 0:c.requirements}))}}),vWc=new ik({getKey:rG,getSelector:function(a){return ce(Zj(tG,function(b){var c;return(c=b.entities[rG(a)])==null?void 0:c.lastUpdateCausedBy}))}}),
wWc=new ik({getKey:rG,getSelector:function(a){return ce(Zj(tG,function(b){var c;return(c=b.entities[rG(a)])==null?void 0:c.timezoneOffset}))}}),xWc=new ik({getKey:rG,getSelector:function(a){return ce(Zj(tG,function(b){var c;return(c=b.entities[rG(a)])==null?void 0:c.timeZoneId}))}}),yWc=kk(sG,function(a,b){return Gk(a,b)},wWc,xWc),zWc=new ik({getKey:rG,getSelector:function(a){return ce(Zj(tG,function(b){var c;return(c=b.entities[rG(a)])==null?void 0:c.relativeTo}))}}),uG=new ik({getKey:sG,getSelector:function(a,
b){return b.getSelection(zWc,a).pipe(yf(function(c){var d=a;(c==null?0:c.xAxisId)&&(c==null?0:c.shift)&&(d=Object.assign({},a,{xAxisId:c.xAxisId}));return ie([SUc(b,d),b.getSelector(uWc,d),b.getSelector(vWc,d),b.getSelector(wWc,d),b.getSelector(xWc,d),b.getSelector(JSc,d)]).pipe(A(function(e){var f=m(e);var g=f.next().value;e=f.next().value;var k=f.next().value;var l=f.next().value;var r=f.next().value;f=f.next().value;return Yj(function(w){return Xj(w,function(x,C){return x===C},sBa)})(e,k,l,r,f,
function(w,x,C,H,J){if(w!==void 0&&x!==void 0)return g(w,{lastUpdateCausedBy:x,timezoneOffset:C,timeZoneId:H,axisWidth:J,shift:c==null?void 0:c.shift})})}))}))}}),AWc=new ik({getKey:sG,getSelector:function(a,b){return ie([b.getSelector(uWc,a),b.getSelector(vWc,a),b.getSelector(wWc,a),b.getSelector(xWc,a),b.getSelector(zWc,a),b.getSelector(uG,a)]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f=d.next().value;var g=d.next().value;var k=d.next().value;d=d.next().value;return Zj(c,
e,f,g,k,d,function(l,r,w,x,C,H){if(l!==void 0&&r!==void 0&&H!==void 0)return Object.assign({},a,{requirements:l,lastUpdateCausedBy:r,timezoneOffset:w,timeZoneId:x,relativeTo:C},H)})}))}}),BWc=new ik({getKey:sG,getSelector:function(a,b){return b.getSelector(uG,a).pipe(A(function(c){return Zj(c,function(d){if(d!==void 0)return d.min})}))}}),CWc=new ik({getKey:sG,getSelector:function(a,b){return b.getSelector(uG,a).pipe(A(function(c){return Zj(c,function(d){if(d!==void 0)return d.max})}))}}),DWc=new ik({getKey:sG,
getSelector:function(a,b){return b.getSelector(uG,a).pipe(A(function(c){return Zj(c,function(d){if(d!==void 0)return d.tickIncrement})}))}}),EWc=new ik({getKey:sG,getSelector:function(a,b){return b.getSelector(uG,a).pipe(A(function(c){return Zj(c,function(d){if(d!==void 0)return d.unit})}))}}),FWc=new ik({getKey:sG,getSelector:function(a,b){return b.getSelector(uG,a).pipe(A(function(c){return Yj(function(d){return Xj(d,function(e,f){return e===f},function(e,f){return Array.isArray(e)&&Array.isArray(f)?
Lza(e,f):e===f})})(c,function(d){if(d!==void 0)return d.ticks})}))}}),vG=new ik({getKey:sG,getSelector:function(a,b){return ie([b.getSelector(BWc,a),b.getSelector(CWc,a),b.getSelector(EWc,a)]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;d=d.next().value;return Zj(c,e,d,function(f,g,k){if(f!=null&&g!=null&&k!==void 0)return{min:f,max:g,unit:k}})}))}});var GWc=Zj(pk,function(a){return a.chart}),wG=new ik({getKey:function(a){return a.chartId},getSelector:function(a){var b=a.chartId;return ce(Zj(GWc,function(c){var d;return(d=c.entities[b])==null?void 0:d.yAxisOrientation}))}});var Eza={chartId:"",yAxisId:"right",label:"",requirements:[],min:0,max:1,unit:"count",ticks:[],scaleType:0,lastUpdateCausedBy:0,position:"right"};var xG=function(a){return a.chartId+","+a.yAxisId},HWc=Zj(pk,function(a){return a.yAxis}),IWc=new ik({getKey:xG,getSelector:function(a){var b=a.chartId;var c=a.yAxisId;return ce(Zj(HWc,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.label}))}}),JWc=new ik({getKey:xG,getSelector:function(a){var b=a.chartId;var c=a.yAxisId;return ce(Zj(HWc,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.requirements}))}}),KWc=new ik({getKey:xG,getSelector:function(a){var b=a.chartId;var c=
a.yAxisId;return ce(Zj(HWc,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.lastUpdateCausedBy}))}}),LWc=new ik({getKey:xG,getSelector:function(a){var b=a.chartId;var c=a.yAxisId;return ce(Zj(HWc,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.position}))}}),MWc=new ik({getKey:xG,getSelector:function(a,b){return ie([ie([QUc(b,a),b.getValueStrategy(a),b.getSelector(JWc,a),b.getSelector(KWc,a),b.getSelector(ISc,a),b.getSelector(JSc,a)]),b.getSelector(wG,a),b.getSelector(LWc,
a)]).pipe(A(function(c){var d=m(c);var e=m(d.next().value);var f=e.next().value;var g=e.next().value;c=e.next().value;var k=e.next().value;var l=e.next().value;e=e.next().value;var r=d.next().value;d=d.next().value;return Yj(function(w){return Xj(w,function(x,C){return x===C},tBa)})(c,k,l,e,r,d,function(w,x,C,H,J,O){if(w!==void 0&&x!==void 0&&C!==void 0&&H!==void 0)return f(w,{lastUpdateCausedBy:x,axisLength:J==="vertical"?C:H,valueFormatter:function(R,V,ca,na){var ua,ia;return(ia=(ua=g.formatShort)==
null?void 0:ua.call(g,R,V,ca,Object.assign({},na,{yAxisPosition:O})))!=null?ia:g.format(R,V,ca,Object.assign({},na,{yAxisPosition:O}))}})})}))}}),yG=new ik({getKey:xG,getSelector:function(a,b){return ie([b.getSelector(IWc,a),b.getSelector(JWc,a),b.getSelector(KWc,a),b.getSelector(LWc,a),b.getSelector(MWc,a)]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f=d.next().value;var g=d.next().value;d=d.next().value;return Zj(c,e,f,g,d,function(k,l,r,w,x){if(l!==void 0&&r!==void 0&&
w!==void 0&&x!==void 0)return Object.assign({},a,{label:k!=null?k:"",requirements:l,lastUpdateCausedBy:r,position:w},x)})}))}});var zG=function(){};zG.\u0275fac=function(a){return new (a||zG)};zG.\u0275prov=Dc({token:zG,factory:zG.\u0275fac});var NWc=0,AG=function(a,b,c,d){HF.call(this,c);var e=this;this.el=a;this.chart=b;this.deprecateOmnibusStateObservable=d;this.destroyed=new qf;this.logger=null;this.views=[];this.layerType=null;this.layerId=this.objectiveLayerId="ac-composable-layer-"+NWc++;this.xAxisId="chart_group";this.yAxisId="right";this.chartId=this.chartGroupId="default";this.layerScopeSubject=new uf(1);this.dataObservableSwitcher=new Mj(ce({previousValue:null,currentValue:null}));this.dataObservableInternal=this.dataObservableSwitcher.pipe(yf(function(f){return f}));
this.configObservableSwitcher=new Mj(ce({previousValue:null,currentValue:null}));this.configObservableInternal=this.configObservableSwitcher.pipe(yf(function(f){return f}));this.context={scope:{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,yAxisId:this.yAxisId,layerId:this.layerId},data:null,state:null,config:null};this.redrawableViews=this.views;b.scopeObservable.pipe(zf(this.destroyed)).subscribe(function(f){e.chartId=f.chartId;e.chartGroupId=f.chartGroupId});this.scopeObservable=
ie([b.scopeObservable,this.layerScopeSubject]).pipe(A(function(f){var g=m(f);f=g.next().value;g=g.next().value;return Object.assign({},f,g)}));this.defaultStateSelectionObservables=d?{brush:ce(void 0),colorMap:ce(void 0),colorScale:ce(void 0),error:ce(void 0),focus:ce(void 0),loading:ce(void 0),resize:ce(void 0),seriesSelection:ce(void 0),spec:ce(void 0),xAxisPin:ce(void 0),timeSeries:ce(void 0),xAxis:ce(void 0),yAxis:ce(void 0),categoricalAxis:ce(void 0),lastInteraction:ce(void 0)}:{brush:this.selectorFactoryToObservable(DVc),
colorMap:this.selectorFactoryToObservable(TVc),colorScale:this.selectorFactoryToObservable(VVc),error:this.selectorFactoryToObservable(aWc),focus:this.selectorFactoryToObservable(FSc),loading:this.selectorFactoryToObservable(iWc),resize:this.selectorFactoryToObservable(HSc),seriesSelection:this.selectorFactoryToObservable(kWc),spec:this.selectorFactoryToObservable(mWc),xAxisPin:this.selectorFactoryToObservable(HTc),timeSeries:this.selectorFactoryToObservable(GTc),xAxis:this.selectorFactoryToObservable(AWc),
yAxis:this.selectorFactoryToObservable(yG),categoricalAxis:this.selectorFactoryToObservable(QVc),lastInteraction:this.selectorFactoryToObservable(eWc)};this.latestObservable=ie([this.scopeObservable,this.dataObservable,this.stateObservable,this.configObservable]);this.latestObservable.pipe(zf(this.destroyed)).subscribe(function(f){var g=m(f);f=g.next().value;var k=g.next().value;var l=g.next().value;g=g.next().value;e.context.scope=f;e.context.data=k.currentValue;e.context.state=l.currentValue;e.context.config=
g.currentValue});(a=p(zG,{optional:!0}))&&a.redrawTrigger$.pipe(zf(this.destroyed)).subscribe(function(){for(var f=m(e.redrawableViews),g=f.next();!g.done;g=f.next())g.value.redraw()})};Y(AG,HF);var BG=function(a,b){a=a.chart.getBoundingClientRect();return{x:b.clientX-a.left,y:b.clientY-a.top}};h=AG.prototype;
h.setup=function(a){var b=this,c=a.dataObservable,d=a.configObservable;c&&(this.dataObservable=c.pipe(xf(null),tf(),A(gk)));d&&(this.configObservable=d.pipe(xf(null),tf(),A(gk)));this.scopeObservable.pipe(zf(this.destroyed),xf(null),tf(),A(gk)).subscribe(function(e){var f=e.previousValue;e=e.currentValue;if((f||e)&&b.layerType!=null){var g=[],k=e!=null&&f!=null&&(e.chartId!==f.chartId||e.chartGroupId!==f.chartGroupId),l=e&&(f==null||k),r=f&&(e==null||k);!k&&e!=null&&f!=null&&e.layerId!==f.layerId&&
e&&f&&g.push(GF({chartGroupId:e.chartGroupId,chartId:e.chartId,previousLayerId:f.layerId,currentLayerId:e.layerId}));r&&f&&g.push(DSc({layerType:b.layerType,layerId:f.layerId,chartId:f.chartId,chartGroupId:f.chartGroupId}));l&&e&&g.push(CSc({layerType:b.layerType,layerId:e.layerId,chartId:e.chartId,chartGroupId:e.chartGroupId}));UF(b.chart,g)}});this.deprecateOmnibusStateObservable||(a=Object.assign({},this.defaultStateSelectionObservables,a.stateSelectionObservables),HF.prototype.setup.call(this,
{stateSelectionObservables:a}),this.dataObservable.pipe(zf(this.destroyed)).subscribe(function(e){b.chart.scheduleStateChangeHandler({changes:e,context:b.context,componentHandlerUsingContext:ml(function(f,g){return b.onDataChange(f,g)},b.destroyed),viewHandlerUsingContext:ml(function(f,g){for(var k=m(b.views),l=k.next();!l.done;l=k.next())l.value.draw(f,g)},b.destroyed),mergeKey:b.context.scope.layerId+"-data",scope:b.context.scope})}),this.configObservable.pipe(zf(this.destroyed)).subscribe(function(e){b.chart.scheduleStateChangeHandler({changes:e,
context:b.context,componentHandlerUsingContext:ml(function(f,g){return b.onConfigChange(f,g)},b.destroyed),viewHandlerUsingContext:ml(function(f,g){for(var k=m(b.views),l=k.next();!l.done;l=k.next())l.value.onConfigChange(f,g)},b.destroyed),mergeKey:b.context.scope.layerId+"-config",scope:b.context.scope})}),this.scopeObservable.pipe(zf(this.destroyed),xf(null),tf(),A(gk),Cf(this.dataObservable,this.stateObservable,this.configObservable)).subscribe(function(e){var f=m(e);e=f.next().value;f.next();
f.next();f.next();if(e.currentValue)b.onScopeChange(e)}),(this.onResizeChange!==AG.prototype.onResizeChange||this.views.some(function(e){return e.onResizeChange!==pG.prototype.onResizeChange}))&&this.setupStateChangeHandler(a.resize,function(e,f){e=hk(e,function(g){return g.resize});return b.onResizeChange(e,f)},function(e,f){e=hk(e,function(l){return l.resize});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onResizeChange(e,f)},"resize"),(this.onXAxisChange!==AG.prototype.onXAxisChange||
this.views.some(function(e){return e.onXAxisChange!==pG.prototype.onXAxisChange}))&&this.setupStateChangeHandler(a.xAxis,function(e,f){e=hk(e,function(g){return g.xAxis});return b.onXAxisChange(e,f)},function(e,f){e=hk(e,function(l){return l.xAxis});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onXAxisChange(e,f)},"xAxis"),(this.onCategoricalAxisChange!==AG.prototype.onCategoricalAxisChange||this.views.some(function(e){return e.onCategoricalAxisChange!==pG.prototype.onCategoricalAxisChange}))&&
this.setupStateChangeHandler(a.categoricalAxis,function(e,f){e=hk(e,function(g){return g.categoricalAxis});return b.onCategoricalAxisChange(e,f)},function(e,f){e=hk(e,function(l){return l.categoricalAxis});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onCategoricalAxisChange(e,f)},"categoricalAxis"),(this.onYAxisChange!==AG.prototype.onYAxisChange||this.views.some(function(e){return e.onYAxisChange!==pG.prototype.onYAxisChange}))&&this.setupStateChangeHandler(a.yAxis,function(e,f){e=
hk(e,function(g){return g.yAxis});return b.onYAxisChange(e,f)},function(e,f){e=hk(e,function(l){return l.yAxis});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onYAxisChange(e,f)},"yAxis"),(this.onErrorChange!==AG.prototype.onErrorChange||this.views.some(function(e){return e.onErrorChange!==pG.prototype.onErrorChange}))&&this.setupStateChangeHandler(a.error,function(e,f){e=hk(e,function(g){return g.error});return b.onErrorChange(e,f)},function(e,f){e=hk(e,function(l){return l.error});
for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onErrorChange(e,f)},"error"),(this.onLoadingChange!==AG.prototype.onLoadingChange||this.views.some(function(e){return e.onLoadingChange!==pG.prototype.onLoadingChange}))&&this.setupStateChangeHandler(a.loading,function(e,f){e=hk(e,function(g){return g.loading});return b.onLoadingChange(e,f)},function(e,f){e=hk(e,function(l){return l.loading});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onLoadingChange(e,f)},"loading"),(this.onBrushChange!==
AG.prototype.onBrushChange||this.views.some(function(e){return e.onBrushChange!==pG.prototype.onBrushChange}))&&this.setupStateChangeHandler(a.brush,function(e,f){e=hk(e,function(g){return g.brush});return b.onBrushChange(e,f)},function(e,f){e=hk(e,function(l){return l.brush});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onBrushChange(e,f)},"brush"),(this.onSeriesSelectionChange!==AG.prototype.onSeriesSelectionChange||this.views.some(function(e){return e.onSeriesSelectionChange!==pG.prototype.onSeriesSelectionChange}))&&
this.setupStateChangeHandler(a.seriesSelection,function(e,f){e=hk(e,function(g){return g.seriesSelection});return b.onSeriesSelectionChange(e,f)},function(e,f){e=hk(e,function(l){return l.seriesSelection});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onSeriesSelectionChange(e,f)},"seriesSelection"),(this.onXAxisPinChange!==AG.prototype.onXAxisPinChange||this.views.some(function(e){return e.onXAxisPinChange!==pG.prototype.onXAxisPinChange}))&&this.setupStateChangeHandler(a.xAxisPin,function(e,
f){e=hk(e,function(g){return g.xAxisPin});return b.onXAxisPinChange(e,f)},function(e,f){e=hk(e,function(l){return l.xAxisPin});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onXAxisPinChange(e,f)},"xAxisPin"),(this.onTimeSeriesChange!==AG.prototype.onTimeSeriesChange||this.views.some(function(e){return e.onTimeSeriesChange!==pG.prototype.onTimeSeriesChange}))&&this.setupStateChangeHandler(a.timeSeries,function(e,f){e=hk(e,function(g){return g.timeSeries});return b.onTimeSeriesChange(e,
f)},function(e,f){e=hk(e,function(l){return l.timeSeries});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onTimeSeriesChange(e,f)},"timeSeries"),(this.onFocusChange!==AG.prototype.onFocusChange||this.views.some(function(e){return e.onFocusChange!==pG.prototype.onFocusChange}))&&this.setupStateChangeHandler(a.focus,function(e,f){e=hk(e,function(g){return g.focus});return b.onFocusChange(e,f)},function(e,f){e=hk(e,function(l){return l.focus});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onFocusChange(e,
f)},"focus"),(this.onColorScaleChange!==AG.prototype.onColorScaleChange||this.views.some(function(e){return e.onColorScaleChange!==pG.prototype.onColorScaleChange}))&&this.setupStateChangeHandler(a.colorScale,function(e,f){e=hk(e,function(g){return g.colorScale});return b.onColorScaleChange(e,f)},function(e,f){e=hk(e,function(l){return l.colorScale});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onColorScaleChange(e,f)},"colorScale"),(this.onColorMapChange!==AG.prototype.onColorMapChange||
this.views.some(function(e){return e.onColorMapChange!==pG.prototype.onColorMapChange}))&&this.setupStateChangeHandler(a.colorMap,function(e,f){e=hk(e,function(g){return g.colorMap});return b.onColorMapChange(e,f)},function(e,f){e=hk(e,function(l){return l.colorMap});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onColorMapChange(e,f)},"colorMap"))};
h.setupStateChangeHandler=function(a,b,c,d){var e=this;if(this.setupCalled&&a){var f=null;a.pipe(vza(this.stateObservable),zf(this.destroyed)).subscribe(function(g){g=m(g).next().value;var k={previousValue:f,currentValue:g.currentValue};f=g.currentValue;e.chart.scheduleStateChangeHandler({changes:k,context:e.context,componentHandlerUsingContext:ml(b,e.destroyed),viewHandlerUsingContext:ml(c,e.destroyed),mergeKey:e.context.scope.layerId+"-"+d,scope:e.context.scope})})}};h.onDataChange=function(){};
h.onScopeChange=function(a){var b=a.previousValue;a=a.currentValue;var c=[];a&&(b==null?0:b.layerId)&&(b==null?void 0:b.layerId)!==(a==null?void 0:a.layerId)&&c.push(GF({chartGroupId:a.chartGroupId,chartId:a.chartId,previousLayerId:b==null?void 0:b.layerId,currentLayerId:a.layerId}));UF(this.chart,c)};h.onConfigChange=function(){};h.onResizeChange=function(){};h.onXAxisChange=function(){};h.onCategoricalAxisChange=function(){};h.onYAxisChange=function(){};h.onErrorChange=function(){};
h.onLoadingChange=function(){};h.onBrushChange=function(){};h.onSeriesSelectionChange=function(){};h.onXAxisPinChange=function(){};h.onTimeSeriesChange=function(){};h.onFocusChange=function(){};h.onColorScaleChange=function(){};h.onLastInteractionChange=function(){};h.onColorMapChange=function(){};h.withLatest=function(a){a({scope:this.context.scope,data:this.context.data,state:this.context.state,config:this.context.config})};
h.onFocus=function(){var a=this;this.withLatest(function(b){b=b.scope;a.store.dispatch(bWc({chartGroupId:b.chartGroupId,chartId:b.chartId,layerId:b.layerId}))})};h.onBlur=function(){var a=this;this.withLatest(function(b){b=b.scope;a.store.dispatch(cWc({chartGroupId:b.chartGroupId,chartId:b.chartId,layerId:b.layerId}))})};h.ngOnInit=function(){this.layerScopeSubject.next({layerId:this.layerId,xAxisId:this.xAxisId,yAxisId:this.yAxisId})};
h.ngOnChanges=function(a){("layerId"in a||"yAxisId"in a||"xAxisId"in a)&&this.layerScopeSubject.next({layerId:this.layerId,xAxisId:this.xAxisId,yAxisId:this.yAxisId})};h.ngOnDestroy=function(){for(var a=this,b=m(this.views),c=b.next();!c.done;c=b.next())c=c.value,zVc(c),c.destroy();this.withLatest(function(d){UF(a.chart,[DSc(Object.assign({},d.scope,{layerType:a.layerType}))])});this.destroyed.next();this.destroyed.complete()};
var CG=function(a,b,c){c=c?a.objectiveLayerId+"-"+c:a.objectiveLayerId;return b?$Uc(Object.assign({},b,{chartId:a.chartId,yAxisId:a.yAxisId,id:c})):cVc({chartId:a.chartId,yAxisId:a.yAxisId,id:c})},DG=function(a,b){var c=c===void 0?a.objectiveLayerId:c;return b?nWc(Object.assign({},b,{chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c})):pWc({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c,keepLastCause:!0})},OWc=function(a,b){var c=c===void 0?a.objectiveLayerId:
c;return b?JVc(Object.assign({},b,{chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c})):KVc({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c})},EG=function(a,b,c){return b?fWc({chartId:a.chartId,sourceId:a.objectiveLayerId,loading:b,loadingDescription:c}):gWc({chartId:a.chartId,sourceId:a.objectiveLayerId})},FG=function(a,b,c){return b&&b.name==="NoDataError"&&c?WVc({chartId:a.chartId,layerId:a.layerId,sourceId:a.objectiveLayerId,success:!0,error:null}):b?WVc({chartId:a.chartId,
layerId:a.layerId,sourceId:a.objectiveLayerId,success:!1,error:b}):c?WVc({chartId:a.chartId,layerId:a.layerId,sourceId:a.objectiveLayerId,success:!0,error:null}):XVc({chartId:a.chartId,sourceId:a.objectiveLayerId})},GG=function(a,b,c,d){if(a.onDataChange){a=a.onDataChange(b,c,d);var e=d==null?void 0:d.colorMap;if(a){d=a.order;var f=a.colorMap,g=a.shapeMap;if(!e||Object.keys(f).some(function(k){return f[k]!==e.colorMap[k]})||Object.keys(g).some(function(k){return g[k]!==e.shapeMap[k]}))return RVc({chartId:b.chartId,
layerId:b.layerId,order:d,colorMap:f,shapeMap:g})}}return null};da.Object.defineProperties(AG.prototype,{dataObservable:{configurable:!0,enumerable:!0,set:function(a){this.dataObservableSwitcher.next(a)},get:function(){return this.dataObservableInternal}},configObservable:{configurable:!0,enumerable:!0,set:function(a){this.configObservableSwitcher.next(a)},get:function(){return this.configObservableInternal}}});AG.\u0275fac=function(){We()};
AG.\u0275dir=af({type:AG,inputs:{layerId:"layerId",xAxisId:"xAxisId",yAxisId:"yAxisId"},features:[Ef,jx]});var PWc=Uj("[AC] Start brushing on the x axis",Wj()),QWc=Uj("[AC] Stop brushing on the x axis",Wj()),RWc=Uj("[AC] Update brush position on the x axis",Wj()),SWc=Uj("[AC] Start panning on the x axis",Wj()),TWc=Uj("[AC] Stop panning on the x axis",Wj()),UWc=Uj("[AC] Start brushing on the y axis",Wj()),VWc=Uj("[AC] Stop brushing on the y axis",Wj()),WWc=Uj("[AC] Update brush position on the y axis",Wj());var HG=Uj("[AC] Set last interaction for chart X axis",Wj()),IG=Uj("[AC] Set last interaction for Y axis",Wj()),XWc=Uj("[AC] Set last interaction for categorical axis",Wj()),YWc=Uj("[AC] Set last interaction for gauge threshold",Wj());var JG=Uj("[AC] Sets x axis pin position",Wj()),KG=Uj("[AC] Sets whether x axis pin is locked",Wj()),LG=Uj("[AC] Sets whether x axis pin is tracking now",Wj());var ZWc=new ql(cG.MONTH_DAY_ABBR),$Wc=new ql(7),aXc=function(a,b){return $Wc.format(a,b)},vBa=function(a,b){var c=ZWc.format(a,b);a=aXc(a,b);return c+", "+a},MG={},uBa=(MG[Qk.WEEKLY]=vBa,MG[Qk.DAILY]=vBa,MG[Qk.QUARTER_DAY]=vBa,MG[Qk.TWO_HOURLY]=vBa,MG[Qk.HOURLY]=aXc,MG[Qk.HALF_HOURLY]=aXc,MG[Qk.TEN_MINUTES]=aXc,MG[Qk.FIVE_MINUTES]=aXc,MG);var bXc={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},cXc=[4,4],dXc=function(a){oG.call(this,a);this.canvas.className="overlay-z-index"};Y(dXc,oG);
dXc.prototype.drawInternal=function(a){if(a=a.currentValue){var b=a.state;if(b){a=b.bodyTop;var c=b.bodyLeft,d=b.bodyHeight,e=b.bodyWidth,f=b.chartHeight,g=b.chartWidth,k=b.brushing,l=b.brushStart,r=b.brushEnd;b=b.brushAxis;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,f,g);f=new Path2D;f.rect(c,a,e,d);this.ctx.clip(f);r&&b===0&&(l&&k&&(this.drawBrushSelection(l,r,a,d),this.drawBrushLine(l,a,d)),this.drawBrushLine(r,a,d))}}};
dXc.prototype.drawBrushLine=function(a,b,c){var d=d===void 0?bXc:d;this.ctx.save();$k(this.ctx,d,this.base);this.ctx.setLineDash(cXc);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(cl([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl([a,b+c],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};dXc.prototype.drawBrushSelection=function(a,b,c,d){var e=e===void 0?bXc:e;this.ctx.save();$k(this.ctx,e,this.base);this.ctx.fillRect(Math.min(a,b),c,Math.abs(b-a),d);this.ctx.restore()};var eXc;
eXc={DAY:{LONG:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{# day ago}other{# days ago}",F:"one{in # day}other{in # days}"},NARROW:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{#d ago}other{#d ago}",F:"one{in #d}other{in #d}"}},HOUR:{LONG:{R:{0:"this hour"},P:"one{# hour ago}other{# hours ago}",F:"one{in # hour}other{in # hours}"},SHORT:{R:{0:"this hour"},P:"one{# hr. ago}other{# hr. ago}",F:"one{in # hr.}other{in # hr.}"},NARROW:{R:{0:"this hour"},P:"one{#h ago}other{#h ago}",F:"one{in #h}other{in #h}"}},
MINUTE:{LONG:{R:{0:"this minute"},P:"one{# minute ago}other{# minutes ago}",F:"one{in # minute}other{in # minutes}"},SHORT:{R:{0:"this minute"},P:"one{# min. ago}other{# min. ago}",F:"one{in # min.}other{in # min.}"},NARROW:{R:{0:"this minute"},P:"one{#m ago}other{#m ago}",F:"one{in #m}other{in #m}"}},MONTH:{LONG:{R:{"-1":"last month",0:"this month",1:"next month"},P:"one{# month ago}other{# months ago}",F:"one{in # month}other{in # months}"},SHORT:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{# mo. ago}other{# mo. ago}",
F:"one{in # mo.}other{in # mo.}"},NARROW:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{#mo ago}other{#mo ago}",F:"one{in #mo}other{in #mo}"}},QUARTER:{LONG:{R:{"-1":"last quarter",0:"this quarter",1:"next quarter"},P:"one{# quarter ago}other{# quarters ago}",F:"one{in # quarter}other{in # quarters}"},SHORT:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{# qtr. ago}other{# qtrs. ago}",F:"one{in # qtr.}other{in # qtrs.}"},NARROW:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{#q ago}other{#q ago}",
F:"one{in #q}other{in #q}"}},SECOND:{LONG:{R:{0:"now"},P:"one{# second ago}other{# seconds ago}",F:"one{in # second}other{in # seconds}"},SHORT:{R:{0:"now"},P:"one{# sec. ago}other{# sec. ago}",F:"one{in # sec.}other{in # sec.}"},NARROW:{R:{0:"now"},P:"one{#s ago}other{#s ago}",F:"one{in #s}other{in #s}"}},WEEK:{LONG:{R:{"-1":"last week",0:"this week",1:"next week"},P:"one{# week ago}other{# weeks ago}",F:"one{in # week}other{in # weeks}"},SHORT:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{# wk. ago}other{# wk. ago}",
F:"one{in # wk.}other{in # wk.}"},NARROW:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{#w ago}other{#w ago}",F:"one{in #w}other{in #w}"}},YEAR:{LONG:{R:{"-1":"last year",0:"this year",1:"next year"},P:"one{# year ago}other{# years ago}",F:"one{in # year}other{in # years}"},SHORT:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{# yr. ago}other{# yr. ago}",F:"one{in # yr.}other{in # yr.}"},NARROW:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{#y ago}other{#y ago}",F:"one{in #y}other{in #y}"}}};var BBa=function(){this.rdtfSymbols_=eXc};BBa.prototype.format=function(a,b){b=fXc(this,b).LONG;if(b){var c=Math.abs(a);a=(new Vl("{N,plural,"+(a>0||a==0&&1/a==Infinity?b.F:b.P)+"}")).format({N:c})}else a="";return a};
var fXc=function(a,b){switch(b){default:case 0:return a.rdtfSymbols_.YEAR;case 1:return a.rdtfSymbols_.QUARTER;case 2:return a.rdtfSymbols_.MONTH;case 3:return a.rdtfSymbols_.WEEK;case 4:return a.rdtfSymbols_.DAY;case 5:return a.rdtfSymbols_.HOUR;case 6:return a.rdtfSymbols_.MINUTE;case 7:return a.rdtfSymbols_.SECOND}};var wBa=[24192E5,25056E5,2592E6,26784E5],xBa=[7776E6,78624E5,79488E5],zBa=[31536E6,316224E5],yBa=3/90,ABa=5/365;var NG={globalAlpha:1,font:"10px sans-serif",fillStyle:"var(--ac-sys-color-chart-axis-label, #3C4043)",textAlign:"center",textBaseline:"top",strokeStyle:"var(--ac-sys-color-chart-axis, #80868B)",lineWidth:1,lineCap:"square"},gXc={globalAlpha:1,strokeStyle:"var(--ac-sys-color-chart-grid, #EBEBEB)",lineWidth:1,lineCap:"square"},hXc=[4,4],iXc={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},
jXc=Object.assign({},NG,{strokeStyle:"var(--ac-sys-color-chart-x-axis-pin, #5F6368)"}),kXc={globalAlpha:.2},lXc={globalAlpha:1,lineWidth:2,lineCap:"square",globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-extensions-neutral, #BDBDBD)"};var mXc=function(){oG.apply(this,arguments);this.lastDrawnState=null};Y(mXc,oG);h=mXc.prototype;
h.drawInternal=function(a){var b=performance.now(),c=a.currentValue;if(c){var d=c.state;c=c.config;if(d&&c){var e=d.bodyTop,f=d.bodyRight,g=d.bodyLeft,k=d.chartWidth,l=d.ticks,r=d.axisTopEdge,w=d.timeZoneLabel,x=c.shift?CBa(c.shift):"";this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,r+20,k);var C;if(!(c==null?0:(C=c.styles)==null?0:C.hideAxis)){C=NG;var H,J,O,R;C=Object.assign({},C,{fillStyle:(O=c==null?void 0:(H=c.styles)==null?void 0:H.textColor)!=null?O:C.fillStyle,
font:(R=c==null?void 0:(J=c.styles)==null?void 0:J.font)!=null?R:C.font});H=x||w;J=0;var V;H&&(c==null?void 0:(V=c.styles)==null?void 0:V.hideLeftLabel)!==!0&&(J=this.drawLeftLabel(r,g,H,C));V=this.drawAxisTickLabels(r,l,J,k,C);var ca;((ca=c.styles)==null?0:ca.drawGrid)&&this.drawAxisGridLines(r,e,V,gXc);this.drawAxisAndTickLines(r,g,f,V,c.styles,C);this.drawBrushInternal(a);if(a=a.currentValue)if(l=a.state)a=l.bodyHeight,ca=l.bodyWidth,c=l.bodyLeft,e=l.bodyTop,f=l.bodyRight,g=l.bodyBottom,r=l.bottomMarginHeight,
V=l.xAxisPinPosition,k=l.xAxisPinLocked,l=l.xAxisPinCanTrackNow,C=k?jXc:lXc,H=C.lineWidth===void 0?0:C.lineWidth,(new Path2D).rect(c-H,e,ca+H*2,a+r),V&&(l&&!k&&this.drawXAxisPinGradient(e,f,a),this.drawXAxisPinLine(V,e,g,C));a=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a});this.lastDrawnState=d}}}};
h.withinBodyOrAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.bodyTop,f=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=f+20};h.withinAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=e+20};h.withinBody=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyTop,e=c.bodyRight,f=c.bodyBottom;return a>=c.bodyLeft&&a<=e&&b>=d&&b<=f};
h.calculateDataValue=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a):null};h.pxToXAxisUnit=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a)-d(0):null};
h.drawAxisGridLines=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,d,this.base);this.ctx.save();this.ctx.beginPath();c=m(c);for(var e=c.next();!e.done;e=c.next())e=e.value.value,this.ctx.moveTo.apply(this.ctx,q(cl([e,b],d.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(cl([e,a],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};
h.drawAxisAndTickLines=function(a,b,c,d,e,f){f=f===void 0?{}:f;this.ctx.save();$k(this.ctx,f,this.base);this.ctx.save();this.ctx.beginPath();(e==null?0:e.lineDash)&&$k(this.ctx,Object.assign({},f,{lineDash:e.lineDash}),this.base);this.ctx.moveTo.apply(this.ctx,q(cl([b,a],f.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl([c,a],f.lineWidth)));this.ctx.stroke();this.ctx.restore();this.ctx.beginPath();b=m(d.length?d:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value.value,
this.ctx.moveTo.apply(this.ctx,q(cl([c,a],f.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(cl([c,a+5],f.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawAxisTickLabels=function(a,b,c,d,e){e=e===void 0?{}:e;var f=[];this.ctx.save();$k(this.ctx,e,this.base);b=m(b);for(e=b.next();!e.done;e=b.next()){var g=e=e.value,k=g.label;g=g.value;var l=this.ctx.measureText(k).width,r=g-l/2;l=g+l/2;r<0||r<c+6||l>d||(dl(this.ctx,k,g,a+8),c=l,f.push(e))}this.ctx.restore();return f};
h.drawLeftLabel=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,Object.assign({},d,{textAlign:"left"}),this.base);a=dl(this.ctx,c,b,a+8);this.ctx.restore();return b+a};h.drawBrushInternal=function(a){if(a=a.currentValue){var b=a.state;if(b){a=b.bodyTop;var c=b.bodyHeight,d=b.brushing,e=b.brushStart,f=b.brushEnd;b=b.brushAxis;f&&b===0&&(e&&d&&(this.drawBrushSelection(e,f,a,c),this.drawBrushLine(e,a,c)),this.drawBrushLine(f,a,c))}}};
h.drawBrushLine=function(a,b,c){var d=d===void 0?iXc:d;this.ctx.save();$k(this.ctx,d,this.base);this.ctx.setLineDash(hXc);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(cl([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl([a,b+c],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawBrushSelection=function(a,b,c,d){var e=e===void 0?iXc:e;this.ctx.save();$k(this.ctx,e,this.base);this.ctx.fillRect(Math.min(a,b),c,Math.abs(b-a),d);this.ctx.restore()};
h.drawXAxisPinLine=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,d,this.base);this.ctx.setLineDash(hXc);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(cl([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl([a,c+4],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};
h.drawXAxisPinGradient=function(a,b,c){this.ctx.save();var d=b-30;b=this.ctx.createLinearGradient(b,a,d,a);b.addColorStop(0,Zk("var(--ac-sys-color-extensions-pin-stop, #000)",this.base));b.addColorStop(.7,"hsla(0, 0%, 0%, 0.125)");b.addColorStop(.9,"hsla(0, 0%, 0%, 0.02)");b.addColorStop(.95,"hsla(0, 0%, 0%, 0.008)");b.addColorStop(1,"transparent");$k(this.ctx,Object.assign({},kXc,{fillStyle:b}),this.base);this.ctx.fillRect(d,a,30,c);this.ctx.restore()};var nXc=kk(lk,function(a,b){if(a&&a.min!==null&&a.max!==null&&a.unit==="ms_since_epoch")return a=b.tzNames_[STc(b,new Date(a.min))>0?2:0],a!=null?a:void 0},uG,yWc),OG=kk(lk,function(a,b){if(a&&b){var c=a.bodyLeft,d=a.bodyRight;if(d>0&&c>0&&d>c){var e=b.min,f=b.max;return{domainMap:function(g){return Sk(e,f,c,d,g)},inverseDomainMap:function(g){return Sk(c,d,e,f,g)}}}}},OSc,vG),oXc=kk(lk,function(a,b){return a&&b===0||!1},FVc,IVc),pXc=kk(lk,function(a,b){if(a)return(b!=null?b:[]).map(function(c){return{label:c.label,
value:a.domainMap(c.value)}})},OG,FWc),qXc=kk(mk,function(a,b,c){return{position:a,locked:b!=null?b:!1,trackingNow:c!=null?c:!1}},ITc,JTc,KTc),rXc=kk(cza,function(a,b){if(a!==void 0)return Math.max(a+((b==null?void 0:b.bottom)||0),0)},NSc,SSc),sXc=kk(lk,function(a,b){if(a!==void 0&&a!==null&&b!==null&&b!==void 0&&b>0)return Date.now()-b<=a},CWc,DWc),tXc=kk(lk,function(a,b,c,d,e,f){if(a&&a.bodyWidth>0&&a.bodyHeight>0){var g;return Object.assign({},a,{brushing:(g=c&&f===0)!=null?g:!1,brushStart:d!==
void 0&&d!==null&&b?b.domainMap(d):null,brushEnd:e!==void 0&&e!==null&&b?b.domainMap(e):null,brushAxis:f!=null?f:0})}},kk(nk,function(a,b,c,d,e,f){if(a!==void 0&&b!==void 0&&c!==void 0&&d!==void 0&&e!==void 0&&f!==void 0)return{bodyTop:a,bodyLeft:b,bodyWidth:c,bodyHeight:d,chartWidth:e,chartHeight:f}},KSc,LSc,JSc,ISc,PSc,QSc),OG,EVc,GVc,HVc,IVc),uXc=kk(lk,function(a,b,c,d,e){if(a&&a.bodyWidth>0&&a.bodyHeight>0)return Object.assign({},a,{bottomMarginHeight:Math.max(0,a.chartHeight-a.bodyBottom),xAxisPinPosition:c!==
void 0&&b?b.domainMap(c):null,xAxisPinLocked:d!=null?d:!1,xAxisPinCanTrackNow:e!=null?e:!1})},JF,OG,ITc,JTc,sXc),vXc=kk(mk,function(a,b,c,d,e){if(a&&a.bodyWidth>0&&a.chartHeight>0&&d!==void 0)return{bodyTop:a.bodyTop,bodyLeft:a.bodyLeft,bodyRight:a.bodyRight,bodyBottom:a.bodyBottom,chartWidth:a.chartWidth,axisTopEdge:d,ticks:b!=null?b:[],timeZoneLabel:c,domainMaps:e}},JF,pXc,nXc,rXc,OG),wXc=kk(mk,function(a,b,c){if(a&&b&&c)return Object.assign({},a,b,c)},kk(mk,function(a,b,c,d,e){if(a&&a.bodyWidth>
0&&a.chartHeight>0&&d!==void 0)return{bodyTop:a.bodyTop,bodyLeft:a.bodyLeft,bodyRight:a.bodyRight,bodyBottom:a.bodyBottom,chartWidth:a.chartWidth,chartHeight:a.chartHeight,bodyHeight:a.bodyHeight,bodyWidth:a.bodyWidth,bottomMarginHeight:Math.max(0,a.chartHeight-a.bodyBottom),axisTopEdge:d,ticks:b!=null?b:[],timeZoneLabel:c,domainMaps:e}},JF,pXc,nXc,rXc,OG),kk(lk,function(a,b,c,d,e){var f;return{brushing:(f=b&&e===0)!=null?f:!1,brushStart:c!==void 0&&c!==null&&a?a.domainMap(c):null,brushEnd:d!==void 0&&
d!==null&&a?a.domainMap(d):null,brushAxis:e!=null?e:0}},OG,EVc,GVc,HVc,IVc),kk(lk,function(a,b,c,d){return{xAxisPinPosition:b!==void 0&&a?a.domainMap(b):null,xAxisPinLocked:c!=null?c:!1,xAxisPinCanTrackNow:d!=null?d:!1}},OG,ITc,JTc,sXc)),xXc=kk(mk,function(a,b){if(a!==void 0&&b)return{xAxisPinPxPos:b.domainMap(a)}},ITc,OG),yXc=kk(mk,function(a,b,c,d,e,f){if(e.position!==void 0&&a&&a.max!==null&&d&&f!==void 0)return{xAxisPinPxPos:d.xAxisPinPxPos,xAxisPinPosition:e.trackingNow?a.max:e.position,axisTopEdge:f,
xAxisTickIncrement:b,xAxisUnit:a.unit,xAxisTimeZone:c,xAxisPinTrackingNow:e.trackingNow,xAxisPinLocked:e.locked}},vG,DWc,yWc,xXc,qXc,rXc),zXc=kk(mk,function(a,b){if(a)return{xAxisMin:a.min,xAxisMax:a.max,xAxisUnit:a.unit,xAxisTimeZone:b}},vG,yWc),AXc=kk(mk,function(a,b,c){if(a.position!==void 0&&b&&b.unit==="ms_since_epoch")return{xAxisPinPosition:a.position,xAxisPinLocked:a.locked,xAxisPinTrackingNow:a.trackingNow,xAxisPinCanTrackNow:c!=null?c:!1,xAxisMin:b.min,xAxisMax:b.max}},qXc,vG,sXc),BXc=kk(lk,
function(a,b,c,d,e){return{brushPanning:e!=null?e:!1,brushBrushing:b!=null?b:!1,brushAxis:d!=null?d:0,brushPositionStart:c!=null?c:null,xAxisUnit:a!=null?a:null}},EWc,EVc,GVc,IVc,FVc),CXc=kk(lk,function(a,b,c){return{xAxisMax:a!=null?a:null,xAxisPinCanTrackNow:b!=null?b:!1,xAxisUnit:c!=null?c:null}},CWc,sXc,EWc),DXc=kk(lk,function(a,b,c,d,e){var f;return{brushPanning:a!=null?a:!1,xAxisMax:b!=null?b:null,xAxisPinCanTrackNow:c!=null?c:!1,xAxisPinLocked:d.locked,xAxisPinPosition:(f=d.position)!=null?
f:null,xAxisPinTrackingNow:d.trackingNow,xAxisUnit:e!=null?e:null}},FVc,CWc,sXc,qXc,EWc),EXc=kk(lk,function(a,b,c,d,e){var f,g,k;return{brushAxis:a!=null?a:0,brushBrushing:b!=null?b:!1,brushPanning:c!=null?c:!1,brushPosition:d!=null?d:null,xAxisMax:(f=e==null?void 0:e.max)!=null?f:null,xAxisMin:(g=e==null?void 0:e.min)!=null?g:null,xAxisUnit:(k=e==null?void 0:e.unit)!=null?k:null}},IVc,EVc,FVc,HVc,vG);var FXc={globalAlpha:1,lineWidth:2,lineCap:"square",globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-extensions-neutral, #BDBDBD)"},GXc=Object.assign({},FXc,{strokeStyle:"var(--ac-sys-color-chart-x-axis-pin, #5F6368)"}),HXc={globalAlpha:.2},IXc=function(a){oG.call(this,a);this.canvas.className="overlay-z-index"};Y(IXc,oG);
IXc.prototype.drawInternal=function(a){if(a=a.currentValue){var b=a.state;if(b){a=b.bodyHeight;var c=b.bodyWidth,d=b.bodyLeft,e=b.bodyTop,f=b.bodyRight,g=b.bodyBottom,k=b.chartHeight,l=b.chartWidth,r=b.bottomMarginHeight,w=b.xAxisPinPosition,x=b.xAxisPinLocked;b=b.xAxisPinCanTrackNow;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,k,l);k=x?GXc:FXc;l=k.lineWidth===void 0?0:k.lineWidth;var C=new Path2D;C.rect(d-l,e,c+l*2,a+r);this.ctx.clip(C);w&&(b&&!x&&this.drawXAxisPinGradient(e,
f,a),this.drawXAxisPinLine(w,e,g,k))}}};IXc.prototype.drawXAxisPinLine=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,d,this.base);this.ctx.setLineDash(cXc);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(cl([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl([a,c+4],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};
IXc.prototype.drawXAxisPinGradient=function(a,b,c){this.ctx.save();var d=b-30;b=this.ctx.createLinearGradient(b,a,d,a);b.addColorStop(0,Zk("var(--ac-sys-color-extensions-pin-stop, #000)",this.base));b.addColorStop(.7,"hsla(0, 0%, 0%, 0.125)");b.addColorStop(.9,"hsla(0, 0%, 0%, 0.02)");b.addColorStop(.95,"hsla(0, 0%, 0%, 0.008)");b.addColorStop(1,"transparent");$k(this.ctx,Object.assign({},HXc,{fillStyle:b}),this.base);this.ctx.fillRect(d,a,30,c);this.ctx.restore()};var JXc=function(){oG.apply(this,arguments);this.lastDrawnState=null};Y(JXc,oG);h=JXc.prototype;
h.drawInternal=function(a){var b=performance.now(),c=a.currentValue;if(c&&(a=c.state,c=c.config,a&&c)){var d=a.bodyTop,e=a.bodyRight,f=a.bodyLeft,g=a.chartWidth,k=a.ticks,l=a.axisTopEdge,r=a.timeZoneLabel,w=c.shift?CBa(c.shift):"";this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,l+20,g);var x;if(!(c==null?0:(x=c.styles)==null?0:x.hideAxis)){x=NG;var C,H,J,O;x=Object.assign({},x,{fillStyle:(J=c==null?void 0:(C=c.styles)==null?void 0:C.textColor)!=null?J:x.fillStyle,
font:(O=c==null?void 0:(H=c.styles)==null?void 0:H.font)!=null?O:x.font});C=w||r;H=0;var R;C&&(c==null?void 0:(R=c.styles)==null?void 0:R.hideLeftLabel)!==!0&&(H=this.drawLeftLabel(l,f,C,x));R=this.drawAxisTickLabels(l,k,H,g,x);var V;((V=c.styles)==null?0:V.drawGrid)&&this.drawAxisGridLines(l,d,R,gXc);this.drawAxisAndTickLines(l,f,e,R,c.styles,x);V=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:V});this.lastDrawnState=a}}};
h.withinBodyOrAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.bodyTop,f=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=f+20};h.withinAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=e+20};h.withinBody=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyTop,e=c.bodyRight,f=c.bodyBottom;return a>=c.bodyLeft&&a<=e&&b>=d&&b<=f};
h.calculateDataValue=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a):null};h.pxToXAxisUnit=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a)-d(0):null};
h.drawAxisGridLines=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,d,this.base);this.ctx.save();this.ctx.beginPath();c=m(c);for(var e=c.next();!e.done;e=c.next())e=e.value.value,this.ctx.moveTo.apply(this.ctx,q(cl([e,b],d.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(cl([e,a],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};
h.drawAxisAndTickLines=function(a,b,c,d,e,f){f=f===void 0?{}:f;this.ctx.save();$k(this.ctx,f,this.base);this.ctx.save();this.ctx.beginPath();(e==null?0:e.lineDash)&&$k(this.ctx,Object.assign({},f,{lineDash:e.lineDash}),this.base);this.ctx.moveTo.apply(this.ctx,q(cl([b,a],f.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl([c,a],f.lineWidth)));this.ctx.stroke();this.ctx.restore();this.ctx.beginPath();b=m(d.length?d:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value.value,
this.ctx.moveTo.apply(this.ctx,q(cl([c,a],f.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(cl([c,a+5],f.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawAxisTickLabels=function(a,b,c,d,e){e=e===void 0?{}:e;var f=[];this.ctx.save();$k(this.ctx,e,this.base);b=m(b);for(e=b.next();!e.done;e=b.next()){var g=e=e.value,k=g.label;g=g.value;var l=this.ctx.measureText(k).width,r=g-l/2;l=g+l/2;r<0||r<c+6||l>d||(dl(this.ctx,k,g,a+8),c=l,f.push(e))}this.ctx.restore();return f};
h.drawLeftLabel=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,Object.assign({},d,{textAlign:"left"}),this.base);a=dl(this.ctx,c,b,a+8);this.ctx.restore();return b+a};var KXc=function(a){JC.call(this,a)};Y(KXc,JC);var xl=function(a){var b=this;this.lastAveEvent=this.tracker=null;this.interactionEventListener=function(){b.lastAveEvent=null};a&&(this.tracker=hMc(a))&&this.tracker.addInteractionEventListener(this.interactionEventListener)},wl=function(a,b,c,d,e){e=e===void 0?{}:e;!(a.tracker&&a.tracker.logSyntheticEvent&&d)||e.debounce&&a.lastAveEvent&&a.lastAveEvent.eventType===b&&a.lastAveEvent.visualElement===c&&a.lastAveEvent.el===d||(a.tracker.logSyntheticEvent(b,new KXc(c),d),a.lastAveEvent={eventType:b,
visualElement:c,el:d})};xl.prototype.ngOnDestroy=function(){this.tracker&&this.tracker.removeInteractionEventListener(this.interactionEventListener)};xl.ve={AccessibilityGrid:118923,AwesomeChartImage:68528,AwesomeChartLegendPane:68529,HovercardCloseButton:164075,HovercardPinToggle:164076,HovercardUnpinToggle:164077,HovercardZone:118924,LineDeselectToggle:68567,LineMultiSelectToggle:118925,LineSelectToggle:68568,LineSpecificSelectToggle:118926,XPanZone:118927,XZoomZone:68583,YZoomZone:68585};
xl.\u0275fac=function(a){return new (a||xl)(Xc(eMc,8))};xl.\u0275prov=Dc({token:xl,factory:xl.\u0275fac,providedIn:"root"});var ol=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);var LXc=Uj("[AC] Map chart IDs to a dashboard ID",Wj());var PG=function(a){var b=this;this.document=a;this.hiddenPageMeasurements=new Map;this.isPageHidden=this.document.visibilityState!=="visible";this.onVisibilityChange=function(){if(b.document.visibilityState==="visible"){var c=performance.now();b.isPageHidden=!1;for(var d=m(b.hiddenPageMeasurements.values()),e=d.next();!e.done;e=d.next())e=e.value.hiddenSpans,(e=e[e.length-1])?e.endTimestamp=c:console.error("No latest span was found for a hidden time measurement")}else for(c=performance.now(),b.isPageHidden=
!0,d=m(b.hiddenPageMeasurements.values()),e=d.next();!e.done;e=d.next())e.value.hiddenSpans.push({startTimestamp:c})};this.document.addEventListener("visibilitychange",this.onVisibilityChange)},MXc=function(a,b){var c=performance.now();return(b=a.hiddenPageMeasurements.get(b))?b.hiddenSpans.reduce(function(d,e){var f=e.startTimestamp;e=e.endTimestamp;if(e==null){if(a.isPageHidden)return d+c-f;console.error("Page hidden time span is missing an end timestamp");return d}return d+e-f},0):null};
PG.prototype.endHiddenMeasurement=function(a){var b=MXc(this,a);this.hiddenPageMeasurements.delete(a);return b};PG.prototype.ngOnDestroy=function(){this.document.removeEventListener("visibilitychange",this.onVisibilityChange)};PG.prototype.endHiddenMeasurement=PG.prototype.endHiddenMeasurement;PG.\u0275fac=function(a){return new (a||PG)(Xc(Rh))};PG.\u0275prov=Dc({token:PG,factory:PG.\u0275fac,providedIn:"root"});var QG=function(a,b){var c=this;this.pageVisibilityService=a;this.store=b;this.generator=this.logger=null;this.didWarnMissingGenerator=!1;this.signalsFlushed$=new qf;this.isRequestIdleCallbackSupported="requestIdleCallback"in window;this.signalsToSendOnIdle=[];this.idleTimerId=0;this.processSignalQueue=function(d){for(var e;(d.didTimeout||d.timeRemaining()>0)&&(e=c.signalsToSendOnIdle.shift());){var f=void 0;(f=c.generator)==null||f.receiveSignal(e)}c.idleTimerId=0;NXc(c);c.signalsToSendOnIdle.length||
c.signalsFlushed$.next()};this.dashboardState$=this.store.pipe(ak(DBa()),ue(function(d){return(d==null?void 0:d.chartIdToDashboardId)!=null}))},RG=function(a,b){a.didWarnMissingGenerator||a.generator!==null?a.generator&&(b.dashboardId!=null||"dashboardId"in b?OXc(a,b):PXc(a,b.chartId).subscribe(function(c){b.dashboardId=c;OXc(a,b)})):a.didWarnMissingGenerator=!0},OXc=function(a,b){if(a.isRequestIdleCallbackSupported)a.signalsToSendOnIdle.push(b),NXc(a);else{var c;(c=a.generator)==null||c.receiveSignal(b)}},
NXc=function(a){!a.idleTimerId&&a.signalsToSendOnIdle.length&&(a.idleTimerId=requestIdleCallback(a.processSignalQueue,{timeout:5E3}))};QG.prototype.initialize=function(){this.didWarnMissingGenerator||this.generator!==null?this.generator&&this.generator.initialize():this.didWarnMissingGenerator=!0};QG.prototype.stop=function(){this.didWarnMissingGenerator||this.generator!==null?this.generator&&this.generator.stop():this.didWarnMissingGenerator=!0};
var PXc=function(a,b){return a.dashboardState$.pipe(ue(function(c){return c.chartIdToDashboardId[b]!=null}),A(function(c){return c.chartIdToDashboardId[b]}),lf(1))};QG.\u0275fac=function(a){return new (a||QG)(Xc(PG),Xc(AF))};QG.\u0275prov=Dc({token:QG,factory:QG.\u0275fac,providedIn:"root"});var QXc=["pinPill"],FBa=function(a,b){return{left:a,top:b}},LBa=function(a,b,c){return{locked:a,draggable:b,dragging:c}},MBa=function(a,b,c){return{top:a,"min-height":b,"border-radius":c}},NBa=function(a,b){return{"margin-left":a,"margin-right":b}},OBa=function(a,b,c){return{height:a,width:b,padding:c}},RXc=new dd("AwesomechartsTimezoneOffset");new dd("AwesomechartsTimeZoneId");
var SXc={dragZoom:!0,ctrlScrollZoom:!0,ctrlDragPan:!0,hoverBrush:!0,clickTimePin:!0,hoverTimePin:!0,moveTimePinOnChartClick:!1,touchPan:!0,touchZoom:!0},TXc={lineDash:[],hideAxis:!1},UXc=new Vl("Data in this chart spans a time range from {MIN} to {MAX}."),VXc=new Vl("Independent values in this chart along the X axis range from {MIN} to {MAX}."),WXc=new Vl("Unpin X axis cursor at {PIN_LABEL}"),XXc=0,YXc={comment:"M11 14H13V11H16V9H13V6H11V9H8V11H11ZM2 22V4Q2 3.175 2.588 2.587Q3.175 2 4 2H20Q20.825 2 21.413 2.587Q22 3.175 22 4V16Q22 16.825 21.413 17.413Q20.825 18 20 18H6ZM4 16H20Q20 16 20 16Q20 16 20 16V4Q20 4 20 4Q20 4 20 4H4Q4 4 4 4Q4 4 4 4V16ZM4 16V4Q4 4 4 4Q4 4 4 4Q4 4 4 4Q4 4 4 4V16Q4 16 4 16Q4 16 4 16Z"},
SG=function(a,b,c,d,e,f,g,k,l){AG.call(this,a,b,c,!0);this.interactionService=d;this.instrumentationService=e;this.liveAnnouncer=f;this.ngZone=g;this.tickStrategy=JAa;this.timePinLabelStrategy=nl;this.relativeTo=null;this.rightOverhangMargin=this.leftOverhangMargin=10;this.xAxisBrushActionButtonConfig=null;this.onPinChange=new Ti;this.axisDescriptionObservable=ce("");this.dataSubject=new Mj(null);var r;this.configSubject=new Mj({shift:((r=this.relativeTo)==null?void 0:r.shift)||0,styles:this.styles});
this.stylesInternal=TXc;this.interactionsInternal=SXc;this.isMouseDown=!1;this.lastMouseMoveEvent=this.lastMouseDownEvent=this.lastCloseXAxisPinEvent=null;this.touchState={lastTouchDistance:null,lastTouchCenter:null};var w;this.timePinLabelStrategySubject=new Mj((w=this.timePinLabelStrategy)!=null?w:nl);var x,C;this.showXAxisPinPillSubject=new Mj(!!(((x=this.interactions)==null?0:x.clickTimePin)||((C=this.interactions)==null?0:C.hoverTimePin)));this.relativeToSubject=new Mj(null);this.xAxisPinPillObservable=
ce(null);this.xAxisUnpinAriaLabelObservable=ce("Unpin X axis cursor");this.actionButtonPosition$=ce(null);this.isActionButtonBeingHovered$=new Mj(!1);this.xAxisCursorDescribedById="ac-x-axis-aria-describedby-"+XXc++;this.isCurrentChartBeingHovered$=new Mj(!1);this.AC_SYS_COLOR_EXTENSIONS_ON_SURFACE="var(--ac-sys-color-extensions-on-surface, #202124)";this.layerType="axis";k&&(this.timezoneOffset=k);l?(this.axisView=new mXc(a.nativeElement),this.redrawableViews=[this.axisView]):(this.axisView=new JXc(a.nativeElement),
this.brushView=new dXc(a.nativeElement),this.xAxisPinView=new IXc(a.nativeElement),this.redrawableViews=[this.axisView,this.brushView,this.xAxisPinView]);this.bindDrawInstrumentation()};Y(SG,AG);SG.\u0275dir=AG.\u0275dir;h=SG.prototype;h.isPrimaryModifierKeyDown=function(a){return ol?a.metaKey:a.ctrlKey};
h.bindDrawInstrumentation=function(){var a=this;kG(this.axisView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;a.scopeObservable.pipe(lf(1)).subscribe(function(e){var f=e.chartId;e=e.layerId;RG(a.instrumentationService,{type:"draw-start",layerType:"axis",timestamp:c,chartId:f,layerId:e});RG(a.instrumentationService,{type:"draw-stop",layerType:"axis",timestamp:d,chartId:f,layerId:e,metadata:{hasCompleteData:!1}})})})};
h.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);var b=[];this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.chart.mouseClickObservable.pipe(zf(this.destroyed)).subscribe(function(g){a.onClick(g)});this.chart.mouseDownObservable.pipe(zf(this.destroyed)).subscribe(function(g){a.onMouseDown(g)});ie([this.chart.mouseLeaveObservable,this.isActionButtonBeingHovered$]).pipe(zf(this.destroyed)).subscribe(function(g){g=m(g);g.next();if(!g.next().value)a.onMouseLeave()});
VF(this.chart,"chart",function(g){return a.onMouseMove(g)},this.destroyed);this.chart.keyDownObservable.pipe(zf(this.destroyed)).subscribe(function(g){a.onKeyDown(g)});this.chart.keyUpObservable.pipe(zf(this.destroyed)).subscribe(function(g){a.onKeyUp(g)});this.chart.scrollObservable.pipe(zf(this.destroyed)).subscribe(function(g){a.onScroll(g)});this.chart.syncScrollObservable.pipe(zf(this.destroyed)).subscribe(function(g){a.syncOnScroll(g)});this.chart.touchStartObservable.pipe(zf(this.destroyed)).subscribe(function(g){if(g.touches.length===
2){var k,l;if(((k=a.interactions)==null?0:k.touchPan)||((l=a.interactions)==null?0:l.touchZoom))g.preventDefault(),k=g.touches[0],g=g.touches[1],a.touchState.lastTouchDistance=Math.abs(k.clientX-g.clientX),a.touchState.lastTouchCenter=BG(a,{clientX:(k.clientX+g.clientX)/2,clientY:(k.clientY+g.clientY)/2})}});this.chart.touchMoveObservable.pipe(zf(this.destroyed)).subscribe(function(g){a:if(g.touches.length===2){var k,l;if(((k=a.interactions)==null?0:k.touchPan)||((l=a.interactions)==null?0:l.touchZoom)){g.preventDefault();
k=g.touches[0];l=g.touches[1];g=Math.abs(k.clientX-l.clientX);k=BG(a,{clientX:(k.clientX+l.clientX)/2,clientY:(k.clientY+l.clientY)/2});if(a.touchState.lastTouchDistance!==null&&a.touchState.lastTouchCenter!==null){var r=a.touchState.lastTouchDistance/g;l=k.x-a.touchState.lastTouchCenter.x;var w=a.select(vG);if(!w)break a;var x=w.min,C=w.max;w=w.unit;var H=a.axisView.calculateDataValue(a.touchState.lastTouchCenter.x);if(H===null)break a;x=H-(H-x)*r;r=H+(C-H)*r;if(l=a.axisView.pxToXAxisUnit(-l))x+=
l,r+=l;ZXc(a,x,r,w)}a.touchState.lastTouchDistance=g;a.touchState.lastTouchCenter=k}}});this.chart.touchEndObservable.pipe(zf(this.destroyed)).subscribe(function(){a.touchState.lastTouchDistance=null;a.touchState.lastTouchCenter=null});this.chart.documentMouseUpObservable.pipe(zf(this.destroyed)).subscribe(function(g){a.onMouseUp(g)});VF(this.chart,"document",function(g){return a.onDocumentMouseMove(g)},this.destroyed);this.chart.mouseEnterObservable.pipe(zf(this.destroyed)).subscribe(function(g){a.onMouseEnter(g)});
te(this.chart.syncDragStartObservable,this.chart.syncDragObservable,this.chart.syncDragEndObservable).pipe(zf(this.destroyed)).subscribe(function(g){var k,l;if(((k=a.interactions)==null?0:k.ctrlDragPan)||((l=a.interactions)==null?0:l.dragZoom))g.preventDefault(),g.stopPropagation()});te(this.chart.syncTouchStartObservable,this.chart.syncTouchMoveObservable,this.chart.syncTouchEndObservable).pipe(zf(this.destroyed)).subscribe(function(g){var k,l;if(((k=a.interactions)==null?0:k.touchZoom)||((l=a.interactions)==
null?0:l.touchPan))g.preventDefault(),g.stopPropagation()});this.timezoneOffset!==void 0&&this.timezoneOffset!==null&&b.push(rWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,timezoneOffset:this.timezoneOffset}));this.timeZoneId&&b.push(sWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,timeZoneId:this.timeZoneId}));b.push(iG({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId,reservedMargins:{bottom:this.styles.hideAxis?
0:20},overlappingMargins:{left:this.leftOverhangMargin,right:this.rightOverhangMargin}}));RUc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},this.tickStrategy);var c=this.selectorFactoryToObservable(vXc),d=this.selectorFactoryToObservable(tXc),e=this.selectorFactoryToObservable(uXc),f=this.selectorFactoryToObservable(wXc);ie([f,this.configObservable]).pipe(A(function(g){var k=m(g);g=k.next().value;return{data:null,config:k.next().value.currentValue,
state:g!=null?g:null}}),xf(null),tf(),A(gk),zf(this.destroyed),Cf(this.scopeObservable)).subscribe(function(g){var k=m(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawFromSelection",changes:g,viewHandler:function(l){a.axisView.draw(l)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});ie([c,this.configObservable]).pipe(A(function(g){var k=m(g);g=k.next().value;return{data:null,
config:k.next().value.currentValue,state:g!=null?g:null}}),xf(null),tf(),A(gk),zf(this.destroyed),Cf(this.scopeObservable)).subscribe(function(g){var k=m(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawFromSelection",changes:g,viewHandler:function(l){a.axisView instanceof JXc&&a.axisView.draw(l)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});ie([d,this.configObservable]).pipe(A(function(g){var k=
m(g);g=k.next().value;return{data:null,config:k.next().value.currentValue,state:g!=null?g:null}}),xf(null),tf(),A(gk),zf(this.destroyed),Cf(this.scopeObservable)).subscribe(function(g){var k=m(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawBrushFromSelection",changes:g,viewHandler:function(l){var r;(r=a.brushView)==null||r.draw(l)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});
ie([e,this.configObservable]).pipe(A(function(g){var k=m(g);g=k.next().value;return{data:null,config:k.next().value.currentValue,state:g!=null?g:null}}),xf(null),tf(),A(gk),zf(this.destroyed),Cf(this.scopeObservable)).subscribe(function(g){var k=m(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawTimePinFromSelection",changes:g,viewHandler:function(l){var r;(r=a.xAxisPinView)==null||r.draw(l)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,
xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});this.xAxisPinPillObservable=ie([this.selectorFactoryToObservable(yXc),this.timePinLabelStrategySubject,this.showXAxisPinPillSubject]).pipe(A(function(g){var k=m(g);g=k.next().value;var l=k.next().value;if(!k.next().value||!g)return null;k=g.xAxisPinPxPos;var r=g.xAxisPinPosition,w=g.xAxisPinTrackingNow,x=g.xAxisPinLocked,C=g.axisTopEdge;return r?{label:l({position:r,tickIncrement:g.xAxisTickIncrement,timeZone:g.xAxisTimeZone,trackingNow:w,unit:g.xAxisUnit||
"ms_since_epoch"}),locked:x,draggable:!x,dragging:!x,left:k,top:C+4,height:16,trackingNow:w}:null}));this.xAxisUnpinAriaLabelObservable=this.xAxisPinPillObservable.pipe(A(function(g){return(g==null?0:g.label)?WXc.format({PIN_LABEL:g.label}):"Unpin X axis cursor"}));this.actionButtonPosition$=(d!=null?d:f).pipe(A(function(g){return g&&g.brushEnd?{left:g.brushEnd,top:g.bodyTop}:null}),zf(this.destroyed));this.axisDescriptionObservable=this.selectorFactoryToObservable(zXc).pipe(A(function(g){if(!g)return"";
var k=g.xAxisUnit,l=g.xAxisMin,r=g.xAxisMax;g=g.xAxisTimeZone;return l!==null&&r!==null?k==="ms_since_epoch"?UXc.format({MIN:rAa(new Date(l),g),MAX:rAa(new Date(r),g)}):VXc.format({MIN:Nk(l,k),MAX:Nk(r,k)}):""}),mf(0),xk(this.ngZone));this.selectorFactoryToObservable(AXc).pipe(zf(this.destroyed)).subscribe(function(g){if(g){var k=g.xAxisPinPosition,l=g.xAxisPinTrackingNow,r=g.xAxisPinCanTrackNow,w=g.xAxisMin,x=g.xAxisMax;g.xAxisPinLocked&&l?r?a.store.dispatch(JG({chartGroupId:a.chartGroupId,position:x})):
a.store.dispatch(dk({actions:$Xc(a,!0)})):w!==null&&x!==null&&(k<w||x<k)&&a.store.dispatch(dk({actions:$Xc(a,!0)}))}});this.scopeObservable.pipe(zf(this.destroyed),xf(null),tf(),A(gk)).subscribe(function(g){var k=g.previousValue;(g=g.currentValue)&&(k==null?void 0:k.layerId)!==(g==null?void 0:g.layerId)&&UF(a.chart,[GF({chartGroupId:g.chartGroupId,chartId:g.chartId,previousLayerId:k==null?void 0:k.layerId,currentLayerId:g.layerId})])});UF(this.chart,b)};
h.ngAfterViewInit=function(){var a=this;ie([this.selectorFactoryToObservable(xXc),this.showXAxisPinPillSubject,this.pillEl.changes]).pipe(zf(this.destroyed)).subscribe(function(b){var c=m(b);b=c.next().value;c.next().value&&a.pillEl&&a.pillEl.length&&b&&(a.pillEl.first.nativeElement.style.left=b.xAxisPinPxPos+"px")})};
h.ngOnChanges=function(a){AG.prototype.ngOnChanges.call(this,a);var b=[];"tickStrategy"in a&&(RUc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},this.tickStrategy),this.interactions=this.interactionsInternal);if("timePinLabelStrategy"in a){var c;this.timePinLabelStrategySubject.next((c=this.timePinLabelStrategy)!=null?c:nl)}"timezoneOffset"in a&&this.timezoneOffset!==void 0&&this.timezoneOffset!==null&&b.push(rWc({chartGroupId:this.chartGroupId,chartId:this.chartId,
xAxisId:this.xAxisId,timezoneOffset:this.timezoneOffset}));"timeZoneId"in a&&this.timeZoneId&&b.push(sWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,timeZoneId:this.timeZoneId}));if("styles"in a||"relativeTo"in a){var d;this.configSubject.next({shift:(d=this.relativeTo)==null?void 0:d.shift,styles:this.styles})}if("interactions"in a){var e,f,g;if(((e=this.interactions)==null?0:e.hoverBrush)||((f=this.interactions)==null?0:f.dragZoom)||(g=this.brushView)==null||!g.isAttached()){var k,
l,r;if((((k=this.interactions)==null?0:k.hoverBrush)||((l=this.interactions)==null?0:l.dragZoom))&&((r=this.brushView)==null||!r.isAttached())){var w;(w=this.brushView)==null||w.reattach()}}else this.brushView.detach();var x,C,H;if(((x=this.interactions)==null?0:x.clickTimePin)||((C=this.interactions)==null?0:C.hoverTimePin)||(H=this.xAxisPinView)==null||!H.isAttached()){var J,O,R;if((((J=this.interactions)==null?0:J.clickTimePin)||((O=this.interactions)==null?0:O.hoverTimePin))&&((R=this.xAxisPinView)==
null||!R.isAttached())){var V;(V=this.xAxisPinView)==null||V.reattach();this.showXAxisPinPillSubject.next(!0)}}else this.xAxisPinView.detach(),this.showXAxisPinPillSubject.next(!1)}"relativeTo"in a&&(this.relativeTo&&b.push(qWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,relativeToId:this.relativeTo.xAxisId,shift:this.relativeTo.shift})),this.relativeToSubject.next(this.relativeTo));("leftOverhangMargin"in a||"rightOverhangMargin"in a)&&b.push(iG({chartGroupId:this.chartGroupId,
chartId:this.chartId,layerId:this.layerId,reservedMargins:{bottom:this.styles.hideAxis?0:20},overlappingMargins:{left:this.leftOverhangMargin,right:this.rightOverhangMargin}}));UF(this.chart,b)};h.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);this.axisView.destroy();var a;(a=this.brushView)==null||a.destroy();var b;(b=this.xAxisPinView)==null||b.destroy();a=DG(this,null);this.store.dispatch(dk({actions:[YUc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId}),a]}))};
h.onClick=function(a){var b=this.select(CXc);if(b){var c=b.xAxisUnit,d=b.xAxisMax,e=b.xAxisPinCanTrackNow,f=BG(this,a);b=this.axisView.calculateDataValue(f.x);this.axisView.withinBodyOrAxis(f.x,f.y)&&this.store.dispatch(HG({chartId:this.chartId,lastInteraction:{click:f.x}}));var g,k;if(((g=this.interactions)==null?0:g.clickTimePin)&&a.timeStamp!==((k=this.lastCloseXAxisPinEvent)==null?void 0:k.timeStamp)&&(this.interactions.moveTimePinOnChartClick&&this.axisView.withinBodyOrAxis(f.x,f.y)||this.axisView.withinAxis(f.x,
f.y))){if((g=this.pillEl.first)&&g.nativeElement.className.includes("x-axis-pin")&&g.nativeElement.querySelector(".x-axis-pin-icon-wrapper")&&(g=g.nativeElement.children[1].getBoundingClientRect(),k=a.clientX-g.x,f=a.clientY-g.y,k>0&&k<g.width&&f>0&&f<g.height)){IBa(this,a);return}if(c=(a=aYc(this,e,b,c,d))&&c==="ms_since_epoch"&&d!==null?d:b)this.onPinChange.emit(c),this.store.dispatch(dk({actions:[JG({chartGroupId:this.chartGroupId,position:c}),KG({chartGroupId:this.chartGroupId,locked:!0}),LG({chartGroupId:this.chartGroupId,
trackingNow:a})]}))}}};h.onMouseDown=function(a){this.isMouseDown=!0;this.lastMouseDownEvent=a};
h.onMouseMove=function(a){var b=[],c=this.select(DXc);if(!c)return b;var d=c.xAxisPinLocked,e=c.xAxisPinPosition,f=c.xAxisPinTrackingNow,g=c.xAxisPinCanTrackNow,k=c.brushPanning,l=c.xAxisUnit;c=c.xAxisMax;a=BG(this,a);var r;((r=this.interactions)==null?0:r.hoverTimePin)&&!d&&!k&&(this.interactions.moveTimePinOnChartClick&&this.axisView.withinBodyOrAxis(a.x,a.y)||this.axisView.withinAxis(a.x,a.y)?(d=this.axisView.calculateDataValue(a.x),g=aYc(this,g,d,l,c),b.push(JG({chartGroupId:this.chartGroupId,
position:g&&l==="ms_since_epoch"&&c!==null?c:d})),b.push(LG({chartGroupId:this.chartGroupId,trackingNow:g}))):d||(e!==null&&b.push(JG({chartGroupId:this.chartGroupId,position:null})),f&&b.push(LG({chartGroupId:this.chartGroupId,trackingNow:!1}))));this.axisView.withinBody(a.x,a.y)?(b.push(HG({chartId:this.chartId,lastInteraction:{hover:a.x}})),this.isCurrentChartBeingHovered$.getValue()||this.isCurrentChartBeingHovered$.next(!0)):b.push(HG({chartId:this.chartId,lastInteraction:{hover:null}}));return b};
h.onMouseEnter=function(){this.isCurrentChartBeingHovered$.next(!0)};
h.onMouseLeave=function(){this.isCurrentChartBeingHovered$.next(!1);var a=this.select(qXc);if(a){a.locked||(a.position!==void 0&&this.store.dispatch(JG({chartGroupId:this.chartGroupId,position:null})),a.trackingNow&&this.store.dispatch(LG({chartGroupId:this.chartGroupId,trackingNow:!1})));var b;((b=this.interactions)==null?0:b.hoverBrush)&&this.store.dispatch(RWc({chartGroupId:this.chartGroupId,position:null}));this.store.dispatch(HG({chartId:this.chartId,lastInteraction:{hover:null}}))}};
h.onDocumentMouseMove=function(a){var b=[],c=this.select(EXc);if(!c)return b;var d=c.brushBrushing,e=c.brushPanning,f=c.brushAxis,g=c.brushPosition,k=c.xAxisMin,l=c.xAxisMax;c=c.xAxisUnit;var r=BG(this,a),w;if(this.axisView.withinBody(r.x,r.y)&&((w=this.interactions)==null?0:w.dragZoom)&&!this.isPrimaryModifierKeyDown(a)&&this.isMouseDown&&this.lastMouseDownEvent){w=BG(this,this.lastMouseDownEvent);var x=this.axisView.withinBody(w.x,w.y),C;if(C=!d){var H=this.lastMouseDownEvent;C=a.clientX-H.clientX;
H=a.clientY-H.clientY;var J=Math.sqrt(Math.pow(C,2)+Math.pow(H,2));C=Math.abs(H/C)<1&&J>10}C&&x&&(r=this.axisView.calculateDataValue(r.x),(w=this.axisView.calculateDataValue(w.x))&&r&&b.push(PWc({chartGroupId:this.chartGroupId,positionStart:(new Date(w)).valueOf(),position:(new Date(r)).valueOf()})))}r=0;var O;if(((O=this.interactions)==null?0:O.ctrlDragPan)&&this.isPrimaryModifierKeyDown(a)&&this.isMouseDown&&this.lastMouseMoveEvent&&k!==null&&l!==null&&(e||b.push(SWc({chartGroupId:this.chartGroupId})),
e=BG(this,this.lastMouseMoveEvent),O=BG(this,a),this.axisView.withinBody(O.x,O.y)&&(e=this.axisView.pxToXAxisUnit(e.x-O.x)))){r=l-k;var R,V;O=(V=(R=this.interactionBounds)==null?void 0:R.max)!=null?V:Date.now();var ca,na;R=(na=(ca=this.interactionBounds)==null?void 0:ca.max)!=null?na:c==="ms_since_epoch"?O:r;ca=Math.min(k+e,R-r);this.interactionBounds&&this.interactionBounds.min!=null&&this.interactionBounds.min>ca&&(e+=this.interactionBounds.min-ca,ca=this.interactionBounds.min);l=Math.min(l+e,R);
r=ca-k;b.push(oWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,priority:4}));b.push(nWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,id:this.layerId,priority:4,cause:3,min:ca,max:l,unit:c}))}if(this.isEventInsideWindow(a)){var ua;k=((ua=this.interactions)==null?void 0:ua.dragZoom)&&!this.isPrimaryModifierKeyDown(a)&&this.isMouseDown&&d&&f===0;l=this.lastMouseDownEvent&&BG(this,this.lastMouseDownEvent);ua=BG(this,a);c=this.lastMouseMoveEvent&&
BG(this,this.lastMouseMoveEvent);l=l&&this.axisView.withinBody(l.x,l.y);c=c&&this.axisView.withinBody(c.x,c.y);ca=this.axisView.withinBody(ua.x,ua.y);var ia;((ia=this.interactions)==null?0:ia.hoverBrush)&&ca&&(!d||f!==0)||k&&l?(d=this.axisView.calculateDataValue(ua.x))&&b.push(RWc({chartGroupId:this.chartGroupId,position:d+r})):!c||ca||g===null||this.isActionButtonBeingHovered$.getValue()||b.push(RWc({chartGroupId:this.chartGroupId,position:null}))}else b.push(QWc({chartGroupId:this.chartGroupId}));
this.lastMouseMoveEvent=a;return b};
h.onMouseUp=function(a){var b=this.select(BXc);if(b){var c=b.brushPanning,d=b.brushBrushing,e=b.brushAxis,f=b.brushPositionStart;b=b.xAxisUnit;var g;((g=this.interactions)==null?0:g.ctrlDragPan)&&this.isPrimaryModifierKeyDown(a)&&c&&e===0&&(this.store.dispatch(TWc({chartGroupId:this.chartGroupId})),wl(this.interactionService,"drag",xl.ve.XPanZone,this.el.nativeElement));var k;if(((k=this.interactions)==null?0:k.dragZoom)&&!this.isPrimaryModifierKeyDown(a)&&d&&e===0&&this.isEventInsideWindow(a)&&(a=
BG(this,a),c=this.axisView.calculateDataValue(a.x),d=(d=this.lastMouseDownEvent&&BG(this,this.lastMouseDownEvent))&&this.axisView.withinBody(d.x,d.y),c&&d&&f!==null)){d=f<c;this.store.dispatch(dk({actions:[QWc({chartGroupId:this.chartGroupId}),oWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,priority:4}),nWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,id:this.layerId,priority:4,cause:4,min:d?f:c,max:d?c:f,unit:b})]}));wl(this.interactionService,
"drag",xl.ve.XZoomZone,this.el.nativeElement);var l;(f=(l=this.select(OG))==null?void 0:l.inverseDomainMap)&&this.store.dispatch(RWc({chartGroupId:this.chartGroupId,position:f(a.x)}))}this.lastMouseDownEvent=null}};h.syncOnScroll=function(a){var b;((b=this.interactions)==null?0:b.ctrlScrollZoom)&&this.isPrimaryModifierKeyDown(a)&&this.lastMouseMoveEvent&&(b=BG(this,this.lastMouseMoveEvent),this.axisView.withinBodyOrAxis(b.x,b.y)&&a.preventDefault())};
h.onScroll=function(a){var b;((b=this.interactions)==null?0:b.ctrlScrollZoom)&&this.isPrimaryModifierKeyDown(a)&&this.lastMouseMoveEvent&&(b=BG(this,this.lastMouseMoveEvent),this.axisView.withinBodyOrAxis(b.x,b.y)&&this.scrollZoom(b,a.deltaY))};
h.scrollZoom=function(a,b){var c=this.select(vG);if(c&&this.lastMouseMoveEvent){var d=c.min,e=c.max;c=c.unit;if(b=this.axisView.pxToXAxisUnit(b))if(a=this.axisView.calculateDataValue(a.x))a=(a-d)/(e-d),ZXc(this,d-b*a,e+b*(1-a),c),wl(this.interactionService,"scroll",xl.ve.XZoomZone,this.el.nativeElement,{debounce:!0})}};h.onKeyDown=function(a){var b=this.select(GSc);switch(a.key){case "Escape":b&&(a=$Xc(this,!0),this.store.dispatch(dk({actions:a})))}};
h.onKeyUp=function(a){var b=this.select(oXc),c;((c=this.interactions)==null?0:c.ctrlDragPan)&&b&&!this.isPrimaryModifierKeyDown(a)&&(this.store.dispatch(TWc({chartGroupId:this.chartGroupId})),wl(this.interactionService,"drag",xl.ve.XPanZone,this.el.nativeElement))};
var IBa=function(a,b){a.lastCloseXAxisPinEvent=b;a.store.dispatch(dk({actions:$Xc(a)}));a.pillEl&&a.pillEl.length&&a.pillEl.first.nativeElement.focus();a.liveAnnouncer.announce("X axis cursor unpinned.");a.onPinChange.emit(null)},EBa=function(a){a.xAxisBrushActionButtonConfig&&a.actionButtonPosition$.pipe(lf(1),A(function(b){return b&&b.left})).subscribe(function(b){if((b=b&&a.axisView.calculateDataValue(b))&&a.xAxisBrushActionButtonConfig)a.xAxisBrushActionButtonConfig.onClick(b)})},$Xc=function(a,
b){b=b===void 0?!1:b;var c=[];c.push(KG({chartGroupId:a.chartGroupId,locked:!1}));b&&(c.push(JG({chartGroupId:a.chartGroupId,position:null})),c.push(LG({chartGroupId:a.chartGroupId,trackingNow:!1})));return c};SG.prototype.isEventInsideWindow=function(a){return a.clientX>=0&&a.clientY>=0&&a.clientX<=window.innerWidth&&a.clientY<=window.innerHeight};
var aYc=function(a,b,c,d,e){if(!b||!c||d!=="ms_since_epoch"||e===null)return!1;a=a.axisView.pxToXAxisUnit(30);c=Math.abs(e-c);return!!a&&c<=a},ZXc=function(a,b,c,d){if(d==="ms_since_epoch"){var e,f,g=(f=(e=a.interactionBounds)==null?void 0:e.max)!=null?f:Date.now();c>g&&(e=c-g,c-=e,b-=e)}if(a.interactionBounds){var k;e=(k=a.interactionBounds.max)!=null?k:d==="ms_since_epoch"?Date.now():Infinity;var l;k=(l=a.interactionBounds.min)!=null?l:-Infinity;e<c?(b=Math.max(k,b+e-c),c=e):k>b&&(c=Math.min(e,
c+k-b),b=k)}a.store.dispatch(dk({actions:[oWc({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,priority:4}),nWc({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:a.layerId,priority:4,cause:4,min:b,max:c,unit:d})]}))};
da.Object.defineProperties(SG.prototype,{interactions:{configurable:!0,enumerable:!0,set:function(a){a?this.interactionsInternal=Object.assign({},SXc,a):this.interactionsInternal=SXc},get:function(){return this.interactionsInternal}},styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesInternal=Object.assign({},TXc,a)},get:function(){return this.stylesInternal}},topButtonIconPath:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.xAxisBrushActionButtonConfig)!=null&&a.icon?
YXc[this.xAxisBrushActionButtonConfig.icon]||"":""}}});SG.\u0275fac=function(a){return new (a||SG)(Ve(Hd),Ve(TF),Ve(gG),Ve(xl),Ve(QG),Ve(dz),Ve(Rg),Ve(RXc,8),Ve(NUc,8))};
SG.\u0275cmp=D({type:SG,selectors:[["ac-x-axis"]],viewQuery:function(a,b){a&1&&hg(QXc,5);if(a&2){var c;lg(c=mg())&&(b.pillEl=c)}},hostAttrs:[1,"composable-layer","ac-x-axis"],inputs:{timeZoneId:"timeZoneId",timezoneOffset:"timezoneOffset",tickStrategy:"tickStrategy",timePinLabelStrategy:"timePinLabelStrategy",interactions:"interactions",relativeTo:"relativeTo",styles:"styles",leftOverhangMargin:"leftOverhangMargin",rightOverhangMargin:"rightOverhangMargin",xAxisBrushActionButtonConfig:"xAxisBrushActionButtonConfig",
interactionBounds:"interactionBounds"},outputs:{onPinChange:"onPinChange"},features:[Ef,jx],decls:9,vars:10,consts:function(){return[["pinPill",""]," Unpinning the X axis cursor allows the cursor to follow the mouse while hovering over the chart. The X axis cursor will always be pinned while using keyboard navigation to indicate that the values reflected in the tooltip or the legend are associated with the position of the X axis cursor.\n",[1,"ac-screen-reader-only-content"],[4,"ngIf"],["class","x-axis-pin overlay-z-index",
3,"ngClass","ngStyle",4,"ngIf"],[1,"ac-screen-reader-only-content",3,"id"],["class","x-axis-cursor-action-button overlay-z-index",3,"ngStyle","mouseenter","mouseleave",4,"ngIf"],[1,"x-axis-cursor-action-button","overlay-z-index",3,"mouseenter","mouseleave","ngStyle"],["type","button","aria-label","Select a point on a chart",1,"ac-a11y-focusable",3,"click"],"width;16px;height;16px;viewBox;0 0 24 24".split(";"),[1,"x-axis-pin","overlay-z-index",3,"ngClass","ngStyle"],[1,"x-axis-pin-label",3,"ngStyle"],
[1,"x-axis-pin-icon-wrapper",3,"ngStyle"],["type","button","class","x-axis-icon ac-a11y-focusable",3,"click",4,"ngIf"],["class","icon x-axis-pin-mat-icon","svgIcon","ac:time_pin_set",4,"ngIf"],["type","button",1,"x-axis-icon","ac-a11y-focusable",3,"click"],["svgIcon","ac:time_pin_unset",1,"icon","x-axis-pin-mat-icon"],["svgIcon","ac:time_pin_set",1,"icon","x-axis-pin-mat-icon"]]},template:function(a,b){a&1&&(K(0,"p",2),Q(1),T(2,"async"),L(),E(3,HBa,3,3,"ng-container",3),T(4,"async"),E(5,PBa,7,25,
"div",4),T(6,"async"),K(7,"p",5),Xf(8,1),L());a&2&&(B(),yg(U(2,4,b.axisDescriptionObservable)),B(2),I("ngIf",U(4,6,b.xAxisBrushActionButtonConfig&&b.isCurrentChartBeingHovered$)),B(2),I("ngIf",U(6,8,b.xAxisPinPillObservable)),B(2),I("id",b.xAxisCursorDescribedById))},dependencies:[Jy,Lx,Nx,Rx,Tx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}.x-axis-cursor-action-button[_ngcontent-%COMP%]{position:absolute;display:flex;transform:translateX(-50%) translateY(-100%);padding-bottom:4px}.x-axis-cursor-action-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;padding:0;margin:0;line-height:inherit;font-size:inherit;background:none;display:flex;background-color:var(--ac-sys-color-extensions-surface, #fff);border-radius:10000px;box-shadow:0 0 5px var(--ac-sys-color-extensions-on-surface-variant, #5F6368);justify-content:center;align-items:center;width:24px;height:24px}.x-axis-pin[_ngcontent-%COMP%]{position:absolute;display:flex;transform:translateX(-50%);border:none;box-sizing:border-box;cursor:default;line-height:10px;width:fit-content;white-space:nowrap}.x-axis-pin[_ngcontent-%COMP%]:focus-within{outline-offset:1px}.x-axis-pin.draggable[_ngcontent-%COMP%]{cursor:grabbing}.x-axis-pin[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;padding:0;margin:0;line-height:inherit;font-size:inherit;background:none;color:var(--ac-sys-color-extensions-on-primary, #fff)}.x-axis-pin[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus{outline-offset:3px}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-icon-wrapper[_ngcontent-%COMP%]{box-sizing:border-box}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-icon[_ngcontent-%COMP%]{background:rgba(0,0,0,0);border-radius:50%;text-align:center;display:block;cursor:default}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-label[_ngcontent-%COMP%]{margin:auto 6px;vertical-align:top;font-family:sans-serif;font-style:normal;font-weight:400;font-size:10px}.x-axis-pin.locked[_ngcontent-%COMP%]{background:var(--ac-sys-color-chart-x-axis-pin, #5F6368);color:var(--ac-sys-color-extensions-on-primary, #fff)}.x-axis-pin.locked[_ngcontent-%COMP%]   .x-axis-pin-icon[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-primary, #fff);cursor:pointer}.x-axis-pin[_ngcontent-%COMP%]:not(.locked){background:var(--ac-sys-color-extensions-neutral, #bdbdbd);color:var(--ac-sys-color-extensions-on-neutral, #404040)}.x-axis-pin[_ngcontent-%COMP%]:not(.locked)   .x-axis-pin-icon[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-neutral, #404040)}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-mat-icon[_ngcontent-%COMP%]{height:100%;width:100%;vertical-align:top}.dragging[_ngcontent-%COMP%]{cursor:grabbing}"],
changeDetection:0});var TG=function(a){this.liveAnnouncer=a;this.subscriptions=new Map;this.currentlyLoading=0},bYc=function(a,b,c){a.subscriptions.set(b,c.pipe(xf(!1),nf()).subscribe(function(d){d?(a.currentlyLoading===0&&a.liveAnnouncer.announce("One or more charts on this pages are loading."),++a.currentlyLoading):a.currentlyLoading>0&&(--a.currentlyLoading,a.currentlyLoading===0&&a.liveAnnouncer.announce("All charts have finished loading."))}))},cYc=function(a,b){var c=a.subscriptions.get(b);c&&(c.unsubscribe(),
a.subscriptions.delete(b))};TG.\u0275fac=function(a){return new (a||TG)(Xc(dz))};TG.\u0275prov=Dc({token:TG,factory:TG.\u0275fac,providedIn:"root"});var UG=function(a,b,c,d){this.store=a;this.ngZone=b;this.instrumentationService=c;this.pageVisibilityService=d;this.pendingComponentRequests=new Map;this.pendingViewRequests=new Map;this.nextSetTimeoutId=this.nextAnimationFrameId=null;this.pendingEventTimeouts=new Map;this.trailingDelays=[];this.trailingDelaysSum=0;this.timeInit=Date.now();this.logger=this.lastTaskRunTime=this.eventStartTime=this.timeToInteractivity=this.timeToFirstDraw=this.timeToFirstQueue=null},VG=function(a,b,c){var d=Date.now(),
e=a.pendingEventTimeouts.has(b);a.pendingEventTimeouts.set(b,c);e||setTimeout(function(){var f=a.pendingEventTimeouts.get(b);a.eventStartTime=d;f&&f();a.eventStartTime=null;a.pendingEventTimeouts.delete(b)},0)};
UG.prototype.scheduleChangeHandler=function(a){var b=this;a.mergeKey?dYc(this,a):this.ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){var c=a.changes;wza(a)?a.viewHandler(c):xza(a)&&a.viewHandlerUsingContext(c,a.context);var d;yza(a)?d=a.componentHandler(c):zza(a)&&(d=a.componentHandlerUsingContext(c,a.context));d&&d.length&&b.store.dispatch(dk({actions:d}))})})};
var dYc=function(a,b){var c=b.changes,d=b.mergeKey,e=Date.now();if(wza(b)||xza(b)){var f=a.pendingViewRequests.get(d);f?f.changes={previousValue:f.changes.previousValue,currentValue:c.currentValue}:wza(b)?a.pendingViewRequests.set(d,{handler:b.viewHandler,changes:c,scheduledTime:e,scope:b.scope,eventStartTime:a.eventStartTime}):a.pendingViewRequests.set(d,{handlerUsingContext:b.viewHandlerUsingContext,changes:c,context:b.context,scheduledTime:e,scope:b.scope,eventStartTime:a.eventStartTime});a.timeToFirstQueue===
null&&(a.timeToFirstQueue=Date.now()-a.timeInit)}if(yza(b)||zza(b))(e=a.pendingComponentRequests.get(d))?e.changes={previousValue:e.changes.previousValue,currentValue:c.currentValue}:yza(b)?a.pendingComponentRequests.set(d,{handler:b.componentHandler,changes:c,scope:b.scope,eventStartTime:a.eventStartTime}):a.pendingComponentRequests.set(d,{handlerUsingContext:b.componentHandlerUsingContext,changes:c,context:b.context,scope:b.scope,eventStartTime:a.eventStartTime});(yza(b)||zza(b))&&eYc(a);(wza(b)||
xza(b))&&fYc(a)},eYc=function(a){a.nextSetTimeoutId||a.ngZone.runOutsideAngular(function(){a.nextSetTimeoutId=setTimeout(function(){a.nextSetTimeoutId=null;var b=[],c=Array.from(a.pendingComponentRequests.keys());c=m(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(d=a.pendingComponentRequests.get(e))a.eventStartTime=d.eventStartTime,a.pendingComponentRequests.delete(e),e=void 0,d.handlerUsingContext?e=d.handlerUsingContext(d.changes,d.context):d.handler&&(e=d.handler(d.changes)),a.eventStartTime=
null,e&&(b=b.concat(e))}b.length&&a.store.dispatch(dk({actions:b}));a.pendingComponentRequests.size&&eYc(a)},0)})},fYc=function(a){a.nextAnimationFrameId||a.ngZone.runOutsideAngular(function(){a.nextAnimationFrameId=requestAnimationFrame(function(){a.nextAnimationFrameId=null;var b=Array.from(a.pendingViewRequests.keys());b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.pendingViewRequests.get(c);if(d){var e=void 0;if(a.timeToFirstDraw===null){var f=void 0,g=a;g.timeToFirstDraw=Date.now()-
((f=g.timeToFirstQueue)!=null?f:0)-g.timeInit;f=g.pageVisibilityService;g=performance.now();var k=[];f.isPageHidden&&k.push({startTimestamp:g});f.hiddenPageMeasurements.set("timeToInteractivity",{hiddenSpans:k})}if(f=a.pendingViewRequests.get(c))if(g=Date.now(),k=g-Math.max(f.scheduledTime,(e=a.lastTaskRunTime)!=null?e:0),a.lastTaskRunTime=g,k>50&&gYc(a,performance.now(),f.scope,k),a.timeToInteractivity===null){a.trailingDelays.unshift({delay:k,time:g});a.trailingDelaysSum+=k;for(e=g-500;a.trailingDelays[a.trailingDelays.length-
1].time<e;)g=f=void 0,a.trailingDelaysSum-=(g=(f=a.trailingDelays.pop())==null?void 0:f.delay)!=null?g:0;(a.trailingDelays.length>=10?a.trailingDelaysSum/a.trailingDelays.length:Infinity)<50&&(f=e=void 0,g=a,g.timeToInteractivity=Date.now()-((f=g.timeToFirstDraw)!=null?f:0)-((e=g.timeToFirstQueue)!=null?e:0)-g.timeInit,g.pageVisibilityService.endHiddenMeasurement("timeToInteractivity"))}a.eventStartTime=d.eventStartTime;a.pendingViewRequests.delete(c);d.handlerUsingContext?d.handlerUsingContext(d.changes,
d.context):d.handler&&d.handler(d.changes);a.eventStartTime=null}}a.pendingViewRequests.size&&fYc(a)})})},gYc=function(a,b,c,d){PXc(a.instrumentationService,c.chartId).subscribe(function(e){RG(a.instrumentationService,{type:"dashboard-non-interactivity",dashboardId:e,timestamp:b,metadata:{blockingTimeMs:d}})})};UG.\u0275fac=function(a){return new (a||UG)(Xc(AF),Xc(Rg),Xc(QG),Xc(PG))};UG.\u0275prov=Dc({token:UG,factory:UG.\u0275fac,providedIn:"root"});uF.setThrowPartials&&uF.setThrowPartials(!1);
var hYc=new dd("window-with-resize-observer",{providedIn:"root",factory:function(){return window}}),iYc=0,WG=function(a,b,c,d,e,f,g,k,l,r){TF.call(this,a,b);var w=this;this.window=c;this.renderer=d;this.queueService=e;this.liveAnnouncerService=f;this.formatterService=g;this.instrumentationService=k;this.ngZone=l;this.testingTimezoneOffset=r;this.lastMeasuredBoundingClientRect=null;this.labelledById="ac-chart-aria-labelledby-"+iYc++;this.describedById="ac-chart-aria-describedby-"+iYc++;this.keyboardNavInstructions=
"This chart is described by one or more grids. A grid row represents a time series. A grid column corresponds to a timestamp. By default, charts hide most columns. To display the hidden columns next to the activated column, use the Read previous item (up arrow) key until you access the column header, and then use the Activate button (enter) key.";this.defaultTimezone=(new Date).getTimezoneOffset();this.featureFlags={};this.useChartGroupHorizontalMargins=!1;this.yAxisOrientation="vertical";this.refactorA11yNavInstructions=
!1;this.anyLayerLoading=new Ti;this.ve={AwesomechartsGeneric:170573,AwesomechartsHeatmap:84053,AwesomechartsStackedArea:84058,AwesomechartsTimeBar:84059,AwesomechartsLine:84054,AwesomeChartImage:68528};this.chartVe=170573;this.unregisterFunctions=[];bYc(this.liveAnnouncerService,this.objectiveChartId,this.anyLayerLoading);this.setup({});this.mouseUpObservable.pipe(Cf(this.mouseDownObservable),zf(this.destroyed)).subscribe(function(H){var J=m(H);H=J.next().value;J=J.next().value;Math.abs(J.clientX-
H.clientX)+Math.abs(J.clientY-H.clientY)<10&&(w.mouseClickSubject.next(H),w.afterMouseClickSubject.next(H))});var x=a.nativeElement,C=navigator.maxTouchPoints>1;WG.sharedWindowScrollCapture$.pipe(zf(this.destroyed)).subscribe(function(H){w.windowCaptureScrollSubject.next(H)});this.ngZone.runOutsideAngular(function(){jYc(w,"chart");jYc(w,"document");w.unregisterFunctions.push(d.listen(x,"mousedown",function(H){VG(e,w.objectiveChartId+"-mousedown",function(){QBa(H)&&w.mouseDownSubject.next(H)})}),d.listen(x,
"mouseup",function(H){VG(e,w.objectiveChartId+"-mouseup",function(){QBa(H)&&w.mouseUpSubject.next(H)})}),d.listen(x,"mouseenter",function(H){VG(e,w.objectiveChartId+"-mouseenter",function(){w.mouseEnterSubject.next(H)})}),d.listen(x,"mouseleave",function(H){VG(e,w.objectiveChartId+"-mouseleave",function(){w.mouseLeaveSubject.next(H)})}),d.listen(x,"wheel",function(H){w.syncScrollSubject.next(H);VG(e,w.objectiveChartId+"-wheel",function(){w.scrollSubject.next(H)})}),d.listen(x,"dragstart",function(H){w.syncDragStartSubject.next(H);
VG(e,w.objectiveChartId+"-dragstart",function(){w.dragStartSubject.next(H)})}),d.listen(x,"drag",function(H){w.syncDragSubject.next(H);VG(e,w.objectiveChartId+"-drag",function(){w.dragSubject.next(H)})}),d.listen(x,"dragend",function(H){w.syncDragEndSubject.next(H);VG(e,w.objectiveChartId+"-dragend",function(){w.dragEndSubject.next(H)})}),C?d.listen(x,"touchstart",function(H){w.syncTouchStartSubject.next(H);VG(e,w.objectiveChartId+"-touchstart",function(){w.touchStartSubject.next(H)})}):null,C?d.listen(x,
"touchmove",function(H){w.syncTouchMoveSubject.next(H);VG(e,w.objectiveChartId+"-touchmove",function(){w.touchMoveSubject.next(H)})}):null,C?d.listen(x,"touchend",function(H){w.syncTouchEndSubject.next(H);VG(e,w.objectiveChartId+"-touchend",function(){w.touchEndSubject.next(H)})}):null,d.listen(c,"keydown",function(H){w.syncKeyDownSubject.next(H);VG(e,w.objectiveChartId+"-window-keydown",function(){w.keyDownSubject.next(H)})}),d.listen(c,"keyup",function(H){VG(e,w.objectiveChartId+"-window-keyup",
function(){w.keyUpSubject.next(H)})}),d.listen(document,"mouseup",function(H){VG(e,w.objectiveChartId+"-document-mouseup",function(){QBa(H)&&w.documentMouseUpSubject.next(H)})}))})};Y(WG,TF);WG.\u0275dir=TF.\u0275dir;WG.prototype.ngOnInit=function(){var a=this;TF.prototype.ngOnInit.call(this);RG(this.instrumentationService,{type:"chart-initialization-start",timestamp:performance.now(),chartId:this.chartId});this.mouseEnterObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)})};
WG.prototype.onMouseEnter=function(){kYc(this)};var jYc=function(a,b){switch(b){case "chart":var c=a.el.nativeElement;break;case "document":c=document;break;case "window":c=window;break;default:wb(b,"Unknown event target for chart.")}NTc(a,b);a.unregisterFunctions.push(a.renderer.listen(c,"mousemove",function(d){VG(a.queueService,a.objectiveChartId+"-"+b+"-mousemove",function(){var e=OTc(a,b),f=[];e=m(e.values());for(var g=e.next();!g.done;g=e.next())g=g.value,f=f.concat(g(d));f.length&&a.store.dispatch(dk({actions:f}))})}))};
WG.prototype.ngAfterViewInit=function(){var a=this;typeof this.window.ResizeObserver==="function"?(this.resizeObserver=new ResizeObserver(function(){a.resizeObserverTimeout=setTimeout(function(){a.resizeObserverTimeout=void 0;lYc(a,a.el.nativeElement.getBoundingClientRect())},0)}),this.resizeObserver.observe(this.el.nativeElement)):this.resizeSensor=new KRc(this.el.nativeElement,function(){lYc(a,a.el.nativeElement.getBoundingClientRect())});kYc(this,!0);WG.sharedWindowScrollCapture$.pipe(zf(this.destroyed)).subscribe(function(){var b=
a.el.nativeElement.getBoundingClientRect();a.lastMeasuredBoundingClientRect&&b.height===a.lastMeasuredBoundingClientRect.height&&b.width===a.lastMeasuredBoundingClientRect.width&&b.left===a.lastMeasuredBoundingClientRect.left&&b.top===a.lastMeasuredBoundingClientRect.top||(a.lastMeasuredBoundingClientRect=b,b=XUc({chartGroupId:a.chartGroupId,chartId:a.chartId,height:b.height,width:b.width,offsets:{top:b.top,left:b.left}}),$ya(a.store,b))})};
WG.prototype.ngOnChanges=function(a){TF.prototype.ngOnChanges.call(this,a);var b=[];if("height"in a||"width"in a){var c,d,e=(d=this.height)!=null?d:(c=this.lastMeasuredBoundingClientRect)==null?void 0:c.height,f,g;c=(g=this.width)!=null?g:(f=this.lastMeasuredBoundingClientRect)==null?void 0:f.width;e!==void 0&&c!==void 0&&this.resize(e,c)}"useChartGroupHorizontalMargins"in a&&b.push(ZUc({chartGroupId:this.chartGroupId,chartId:this.chartId,useChartGroupHorizontalMargins:this.useChartGroupHorizontalMargins}));
"yAxisOrientation"in a&&b.push(WUc({chartId:this.chartId,yAxisOrientation:this.yAxisOrientation}));"valueStrategy"in a&&this.valueStrategy&&DUc(this.formatterService,{chartId:this.chartId},this.valueStrategy);UF(this,b)};
WG.prototype.ngOnDestroy=function(){TF.prototype.ngOnDestroy.call(this);this.resizeObserver&&this.resizeObserver.unobserve(this.el.nativeElement);this.resizeObserverTimeout&&clearTimeout(this.resizeObserverTimeout);this.resizeSensor&&this.resizeSensor.detach(function(){});for(var a=m(this.unregisterFunctions),b=a.next();!b.done;b=a.next())(b=b.value)&&b();this.formatterService.valueStrategyRegistry.delete(this.chartId);cYc(this.liveAnnouncerService,this.objectiveChartId)};
var kYc=function(a,b){var c=a.el.nativeElement.getBoundingClientRect();lYc(a,c,b)},lYc=function(a,b,c){a.lastMeasuredBoundingClientRect=b;var d,e;a.resize((d=a.height)!=null?d:b.height,(e=a.width)!=null?e:b.width,b.top,b.left,c)};
WG.prototype.resize=function(a,b,c,d,e){if(c===void 0||d===void 0)this.lastMeasuredBoundingClientRect=d=this.el.nativeElement.getBoundingClientRect(),c=d.top,d=d.left;var f,g;a=XUc({chartGroupId:this.chartGroupId,chartId:this.chartId,height:a,width:b,offsets:{top:(f=c)!=null?f:0,left:(g=d)!=null?g:0}});e?UF(this,[a]):this.store.dispatch(a)};WG.prototype.trackByIndex=function(a){return a};
WG.prototype.scheduleStateChangeHandler=function(a){this.queueService.scheduleChangeHandler(Object.assign({},a,{mergeKey:this.chartId+"-"+a.mergeKey}))};WG.prototype.scheduleChangeHandler=function(a){this.queueService.scheduleChangeHandler(Object.assign({},a,{mergeKey:this.chartId+"-"+a.mergeKey}))};
da.Object.defineProperties(WG.prototype,{disableZoomAndPan:{configurable:!0,enumerable:!0,set:function(){}},timezoneOffset:{configurable:!0,enumerable:!0,set:function(a){this.timezoneOffsetInternal=a},get:function(){if(this.testingTimezoneOffset)return this.testingTimezoneOffset;var a;return(a=this.timezoneOffsetInternal)!=null?a:this.defaultTimezone}}});WG.sharedWindowScrollCapture$=pe(window,"scroll",{passive:!0,capture:!0}).pipe(Bf(250),yla());
WG.\u0275fac=function(a){return new (a||WG)(Ve(Hd),Ve(gG),Ve(hYc),Ve(ci),Ve(UG),Ve(TG),Ve(fG),Ve(QG),Ve(Rg),Ve(RXc,8))};
WG.\u0275cmp=D({type:WG,selectors:[["ac-chart"]],hostAttrs:["draggable","true",1,"ac-chart","ac-composable-chart"],hostVars:4,hostBindings:function(a,b){a&2&&vg("height",b.height,"px")("width",b.width,"px")},inputs:{disableZoomAndPan:"disableZoomAndPan",timezoneOffset:"timezoneOffset",timeZoneId:"timeZoneId",height:"height",width:"width",featureFlags:"featureFlags",xAxisBrushActionButtonConfig:"xAxisBrushActionButtonConfig",useChartGroupHorizontalMargins:"useChartGroupHorizontalMargins",yAxisOrientation:"yAxisOrientation",
refactorA11yNavInstructions:"refactorA11yNavInstructions",valueStrategy:"valueStrategy"},outputs:{anyLayerLoading:"anyLayerLoading"},features:[Gg([{provide:TF,useExisting:WG}]),Ef,jx],ngContentSelectors:["*"],decls:8,vars:8,consts:[[3,"ve","veMutable"],[1,"ac-screen-reader-only-content",3,"id"]],template:function(a,b){a&1&&(bg(),K(0,"figure",0)(1,"div",1)(2,"p"),Q(3),L()(),K(4,"div",1)(5,"p"),Q(6),L()(),cg(7),L());a&2&&(I("ve",b.chartVe)("veMutable",!0),If("aria-labelledby",b.labelledById)("aria-describedby",
b.describedById),B(),I("id",b.labelledById),B(2),yg(b.title),B(),I("id",b.describedById),B(2),yg(b.keyboardNavInstructions))},dependencies:[gD],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]{position:relative;width:100%;height:100%;display:block}[_nghost-%COMP%]   figure[_ngcontent-%COMP%]{margin:0}.ac-composable-chart[_ngcontent-%COMP%]{position:relative;width:100%;height:100%}/*# sourceMappingURL=ac_chart_style.css.map */"],
changeDetection:0});var mYc=Zj(pk,function(a){return a.map}),nYc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ce(Zj(mYc,function(c){return c.entities[b]}))}});var oYc={chartGroupId:"",chartId:"",xAxisId:"chart_group",yAxisId:"right",layerId:""},pYc=0,XG=function(a,b){HF.call(this,a);var c=this;this.deprecateOmnibusStateObservable=b;this.destroyed=new qf;this.logger=null;this.extensionId="ac-extension-"+pYc++;this.inputScopeSubject=new Mj({});var d;this.enclosingChart=(d=p(TF,{optional:!0}))!=null?d:void 0;var e;this.enclosingLayer=(e=p(AG,{optional:!0}))!=null?e:void 0;var f,g;a=((f=this.enclosingLayer)==null?void 0:f.scopeObservable)||((g=this.enclosingChart)==
null?void 0:g.scopeObservable)||ce({});this.scopeObservable=ie([a,this.inputScopeSubject]).pipe(A(function(C){var H=m(C);C=H.next().value;H=H.next().value;return Object.assign({},oYc,C,H)}));this.defaultStateSelectionObservables=b?{brush:ce(void 0),colorScale:ce(void 0),error:ce(void 0),focus:ce(void 0),lastInteraction:ce(void 0),loading:ce(void 0),map:ce(void 0),resize:ce(void 0),seriesSelection:ce(void 0),spec:ce(void 0),xAxisPin:ce(void 0),timeSeries:ce(void 0),xAxis:ce(void 0),yAxis:ce(void 0)}:
{brush:this.selectorFactoryToObservable(DVc),colorScale:this.selectorFactoryToObservable(VVc),error:this.selectorFactoryToObservable(aWc),focus:this.selectorFactoryToObservable(FSc),lastInteraction:this.selectorFactoryToObservable(eWc),loading:this.selectorFactoryToObservable(iWc),map:this.selectorFactoryToObservable(nYc),resize:this.selectorFactoryToObservable(HSc),seriesSelection:this.selectorFactoryToObservable(kWc),spec:this.selectorFactoryToObservable(mWc),xAxisPin:this.selectorFactoryToObservable(HTc),
timeSeries:this.selectorFactoryToObservable(GTc),xAxis:this.selectorFactoryToObservable(AWc),yAxis:this.selectorFactoryToObservable(yG)};var k,l,r,w,x;this.context={scope:{chartGroupId:((k=this.scope)==null?void 0:k.chartGroupId)||"",chartId:((l=this.scope)==null?void 0:l.chartId)||"",yAxisId:((r=this.scope)==null?void 0:r.yAxisId)||"right",xAxisId:((w=this.scope)==null?void 0:w.xAxisId)||"chart_group",layerId:((x=this.scope)==null?void 0:x.layerId)||""},state:null};ie([this.scopeObservable,this.stateObservable]).pipe(zf(this.destroyed)).subscribe(function(C){var H=
m(C);C=H.next().value;H=H.next().value;c.context.scope=C;c.context.state=H.currentValue})};Y(XG,HF);h=XG.prototype;
h.setup=function(a){var b=this;this.deprecateOmnibusStateObservable||(a=Object.assign({},this.defaultStateSelectionObservables,a.stateSelectionObservables),HF.prototype.setup.call(this,{stateSelectionObservables:a}),this.scopeObservable.pipe(xf(null),tf(),A(gk),Cf(this.stateObservable),zf(this.destroyed)).subscribe(function(c){var d=m(c);c=d.next().value;d.next();if(c.currentValue)b.onScopeChange(c)}),this.setupStateChangeHandler(a.resize,function(c,d){c=hk(c,function(e){return e.resize});b.onResizeChange(c,
d)},"resize"),this.setupStateChangeHandler(a.xAxis,function(c,d){c=hk(c,function(e){return e.xAxis});b.onXAxisChange(c,d)},"xAxis"),this.setupStateChangeHandler(a.yAxis,function(c,d){c=hk(c,function(e){return e.yAxis});b.onYAxisChange(c,d)},"yAxis"),this.setupStateChangeHandler(a.error,function(c,d){c=hk(c,function(e){return e.error});b.onErrorChange(c,d)},"error"),this.setupStateChangeHandler(a.loading,function(c,d){c=hk(c,function(e){return e.loading});b.onLoadingChange(c,d)},"loading"),this.setupStateChangeHandler(a.brush,
function(c,d){c=hk(c,function(e){return e.brush});b.onBrushChange(c,d)},"brush"),this.setupStateChangeHandler(a.seriesSelection,function(c,d){c=hk(c,function(e){return e.seriesSelection});b.onSeriesSelectionChange(c,d)},"seriesSelection"),this.setupStateChangeHandler(a.xAxisPin,function(c,d){c=hk(c,function(e){return e.xAxisPin});b.onXAxisPinChange(c,d)},"xAxisPin"),this.setupStateChangeHandler(a.timeSeries,function(c,d){c=hk(c,function(e){return e.timeSeries});b.onTimeSeriesChange(c,d)},"timeSeries"),
this.setupStateChangeHandler(a.focus,function(c,d){c=hk(c,function(e){return e.focus});b.onFocusChange(c,d)},"focus"),this.setupStateChangeHandler(a.lastInteraction,function(c,d){c=hk(c,function(e){return e.lastInteraction});b.onLastInteractionChange(c,d)},"lastInteraction"),this.setupStateChangeHandler(a.colorScale,function(c,d){c=hk(c,function(e){return e.colorScale});b.onColorScaleChange(c,d)},"colorScale"),this.setupStateChangeHandler(a.spec,function(c){c=hk(c,function(d){return d.spec});b.onChartSpecChange(c)},
"spec"),this.setupStateChangeHandler(a.map,function(c,d){c=hk(c,function(e){return e.map});b.onMapChange(c,d)},"map"))};h.setupStateChangeHandler=function(a,b,c){var d=this;if(this.setupCalled&&a){var e=null;a.pipe(vza(this.stateObservable),zf(this.destroyed)).subscribe(function(f){f=m(f).next().value;var g={previousValue:e,currentValue:f.currentValue};e=f.currentValue;d.scheduleStateChangeHandler(g,d.context,b,d.extensionId+"-"+c,d.context.scope)})}};h.onScopeChange=function(){};
h.onResizeChange=function(){};h.onXAxisChange=function(){};h.onYAxisChange=function(){};h.onErrorChange=function(){};h.onLoadingChange=function(){};h.onBrushChange=function(){};h.onSeriesSelectionChange=function(){};h.onXAxisPinChange=function(){};h.onTimeSeriesChange=function(){};h.onFocusChange=function(){};h.onLastInteractionChange=function(){};h.onColorScaleChange=function(){};h.onChartSpecChange=function(){};h.onMapChange=function(){};h.withLatest=function(a){a({scope:this.context.scope,state:this.context.state})};
h.scheduleStateChangeHandler=function(a,b,c){c(a,b)};h.ngOnChanges=function(a){"scope"in a&&this.inputScopeSubject.next(Object.assign({},this.scope))};h.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};XG.\u0275fac=function(){We()};XG.\u0275dir=af({type:XG,inputs:{scope:"scope"},features:[Ef,jx]});var bLa={chartId:"",byLayer:{ids:[],entities:{}}},qYc={layerId:"",yAxisId:"right",xAxisId:"chart_group",valueType:1,unit:null,bySeries:{ids:[],entities:{}}},rYc={seriesId:"",name:"",atTimeKey:{}};var sYc={chartGroupId:"",xPos:null,locked:!1,trackingNow:!1,directionOfTravel:0};var tYc=["hoverContent"],YG=function(a,b,c,d,e,f,g){AG.call(this,a,b,c);var k=this;this.queueService=d;this.overlay=e;this.viewContainerRef=f;this.ngZone=g;this.mouseInBounds=new Mj(!1);this.focusAndXAxisPinInChart=new Mj(!1);this.isPinned$=new Mj(!1);this.showHovercardOverrideSubject=new Mj("no_override");this.shouldShowSeriesActionText$=new Mj(!0);this.dataSubject=new Mj(null);this.defaultShowHovercard=ie([this.mouseInBounds,this.focusAndXAxisPinInChart]).pipe(Cf(this.isPinned$),yf(function(l){var r=
m(l);var w=m(r.next().value);l=w.next().value;w=w.next().value;return r.next().value?ce(!0):w?ce(!0):l?uYc(k).pipe(A(function(x){return!x})):ce(!1)}));this.globalHoverDisabled=this.isShowing=!1;this.showHovercard=this.showHovercardOverrideSubject.pipe(yf(function(l){return vYc(k,l)}),vf({bufferSize:1,refCount:!0}),nf(),Af(function(l){k.isShowing=l}),xk(this.ngZone));this.timeKeySubject=new Mj(1);this.timeKeyObservable=this.timeKeySubject.pipe(nf());this.globalOverlayPositionStrategy=this.overlay.position().global();
this.overlayRef=this.overlay.create(new di({positionStrategy:this.globalOverlayPositionStrategy,scrollStrategy:this.overlay.scrollStrategies.close()}));this.setup({dataObservable:this.dataSubject});this.chart.mouseEnterObservable.pipe(zf(this.destroyed)).subscribe(function(l){if(!k.globalHoverDisabled)k.onMouseEnter(l)});VF(this.chart,"chart",function(l){if(k.mouseInBounds.value&&!k.globalHoverDisabled)k.onMouseMove(l);return[]},this.destroyed);this.chart.mouseLeaveObservable.pipe(zf(this.destroyed)).subscribe(function(){k.onMouseLeave()});
this.showHovercard.pipe(ue(function(l){return!l}),zf(this.destroyed)).subscribe(function(){return void k.detachHovercard()})};Y(YG,AG);h=YG.prototype;h.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);IF(this,fza).pipe(zf(this.destroyed)).subscribe(function(b){var c;a.globalHoverDisabled=(c=b==null?void 0:b.disabled)!=null?c:!1})};
h.ngAfterViewInit=function(){this.connectedOverlayPositionStrategy=this.connectedOverlayPositionAnchor?Fz(Lz(this.overlay.position(),this.connectedOverlayPositionAnchor),[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"start",originY:"top",overlayX:"end",overlayY:"bottom"}]):void 0};h.onFocusChange=function(a,b){wYc(this,b);xYc(this,b)};
h.onXAxisPinChange=function(a,b){wYc(this,b)};h.onLastInteractionChange=function(a,b){xYc(this,b)};
var xYc=function(a,b){var c=b.state;b=b.scope;if(c){var d=c.focus,e=c.resize,f=c.lastInteraction;c=c.xAxisPin;d&&e&&f&&c&&!a.isPinned$.value&&(f=pl(b,f),d.chartGroupId===b.chartGroupId&&d.chartId===b.chartId&&f.focus!==null&&f.focus.x!==null&&f.focus.y!==null&&e.offsets?(b=new MouseEvent("mousemove",{clientX:f.focus.x+e.offsets.left,clientY:f.focus.y+e.offsets.top}),a.reposition(b,0,c.directionOfTravel)):(a.isPinned$.next(!1),a.detachHovercard()))}};h=YG.prototype;h.onAttach=function(){};
h.onDetach=function(){};h.onMouseEnter=function(a){this.mouseInBounds.next(!0);this.reposition(a,1)};h.onMouseMove=function(a){this.reposition(a,1)};h.onMouseLeave=function(){this.mouseInBounds.next(!1)};
h.reposition=function(a,b,c,d){var e=this;b=b===void 0?1:b;c=c===void 0?0:c;this.withLatest(function(f){f=f.state;if(f!=null&&f.resize&&!e.isPinned$.value)if(f=e.positionStrategy(a,{height:e.overlayRef.overlayElement.offsetHeight,width:e.overlayRef.overlayElement.offsetWidth},f.resize,c,d),f===void 0)e.detachHovercard();else{e.timeKeySubject.next(b);e.overlayRef.hasAttached()||e.attachHovercard();if(d&&e.connectedOverlayPositionStrategy){YCc(e.overlayRef,e.connectedOverlayPositionStrategy);var g=
e.connectedOverlayPositionStrategy;g._offsetX=f.x;g._offsetY=f.y}else YCc(e.overlayRef,e.globalOverlayPositionStrategy),e.globalOverlayPositionStrategy.top(f.y+"px").left(f.x+"px");e.overlayRef.updatePosition()}})};h.onResizeChange=function(a){this.isPinned$.value&&(a=a.currentValue,(a==null?void 0:a.height)===0||(a==null?void 0:a.width)===0)&&(this.isPinned$.next(!1),this.detachHovercard())};
h.attachHovercard=function(){this.overlayRef.hasAttached()||(this.overlayRef.attach(new Oz(this.hoverContent,this.viewContainerRef)),this.onAttach())};h.detachHovercard=function(){this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.onDetach())};h.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);this.detachHovercard()};
var vYc=function(a,b){switch(b){case "no_override":return a.defaultShowHovercard;case "show":return ce(!0);case "hide":return ce(!1);default:return wb(b)}},wYc=function(a,b){var c=b.state;b=b.scope;if(c){var d=c.focus;c=(c=c.xAxisPin)&&c.locked&&c.xPos&&c.chartGroupId===b.chartGroupId;b=!(!d||d.chartGroupId!==b.chartGroupId||d.chartId!==b.chartId||!c);a.focusAndXAxisPinInChart.value!==b&&a.focusAndXAxisPinInChart.next(b)}},uYc=function(a){return a.scopeObservable.pipe(yf(function(b){return a.store.select(kBa(b))}),
vf({bufferSize:1,refCount:!0}),A(function(b){return!(b==null||!b.brushing)}))};da.Object.defineProperties(YG.prototype,{showHovercardOverride:{configurable:!0,enumerable:!0,set:function(a){this.showHovercardOverrideSubject.next(a)}}});YG.\u0275fac=function(a){return new (a||YG)(Ve(Hd),Ve(TF),Ve(gG),Ve(UG),Ve(Tz),Ve(eg),Ve(Rg))};
YG.\u0275dir=af({type:YG,viewQuery:function(a,b){a&1&&hg(tYc,5);if(a&2){var c;lg(c=mg())&&(b.hoverContent=c.first)}},inputs:{positionStrategy:"positionStrategy",connectedOverlayPositionAnchor:"connectedOverlayPositionAnchor",showHovercardOverride:"showHovercardOverride"},features:[Ef]});var yYc=[[["","prefix",""]],[["","suffix",""]]],ZG=function(){XG.call(this,p(gG));var a=this;this.timeKey=1;this.updateDebouncedTriggerSubject=new qf;this.dateFormatStrategy=RBa;this.numericFormatStrategy=SBa;this.dateTimeSubject=new Mj({cursor:null,min:null,max:null,unit:null});this.timeZoneSubject=new Mj(Fk(Kza));this.queueService=p(UG);this.formattedDateTimeObservable=ie([this.dateTimeSubject,this.timeZoneSubject]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;if(c.unit==="ms_since_epoch"){var e,
f,g;return c.cursor?a.dateFormatStrategy(new Date((e=c.cursor)!=null?e:""),c.min?new Date((f=c.min)!=null?f:""):null,c.max?new Date((g=c.max)!=null?g:""):null,d):""}return a.numericFormatStrategy(c.cursor,c.min,c.max)}));this.setup({});var b=p(YG,{optional:!0});b&&b.timeKeyObservable.pipe(zf(this.destroyed)).subscribe(function(c){a.timeKey=c;a.withLatest(function(d){a.update(d)})});p(Rg).runOutsideAngular(function(){a.updateDebouncedTriggerSubject.pipe(Bf(250)).pipe(zf(a.destroyed)).subscribe(function(){a.withLatest(function(c){a.update(c)})})})};
Y(ZG,XG);ZG.\u0275dir=XG.\u0275dir;h=ZG.prototype;h.onLastInteractionChange=function(){this.updateDebouncedTriggerSubject.next()};h.onXAxisChange=function(a){if(Vk(a)||Wk(a)){var b,c=(b=a.currentValue)==null?void 0:b.timezoneOffset,d;a=(d=a.currentValue)==null?void 0:d.timeZoneId;c=Gk(c,a);this.timeZoneSubject.next(c)}};h.onXAxisPinChange=function(){this.timeKey===0&&this.updateDebouncedTriggerSubject.next()};h.onTimeSeriesChange=function(){this.updateDebouncedTriggerSubject.next()};
h.update=function(a){var b=a.state;if(b){var c=b.xAxis,d=b.resize,e=b.lastInteraction,f=b.xAxisPin;b=b.timeSeries;if(c&&d&&e&&f){a=pl(a.scope,e);d=Yk(c,d.margins.left,d.width-d.margins.right);a:{switch(this.timeKey){case 0:var g;var k=(g=f==null?void 0:f.xPos)!=null?g:null;break a;case 2:g=(k=a.click)==null?void 0:k.x;k=d&&g?d(g):null;break a;case 1:var l;g=(l=a.hover)==null?void 0:l.x;k=d&&g?d(g):null;break a;case 3:k=c.max;break a;case 4:var r;g=(r=a.multiselectAnchor)==null?void 0:r.x;k=d&&g?d(g):
null;break a;default:wb(this.timeKey,"unknown data source")}k=void 0}g=k;if(g!==null){d=b==null?void 0:b.byLayer.ids;b=b==null?void 0:b.byLayer.entities;l=k=null;f=r=Infinity;if((d==null?0:d.length)&&b)for(d=m(d),a=d.next();!a.done;a=d.next())if((e=b[a.value])&&(e.valueType===1||e.valueType===2)){var w=void 0,x=void 0,C=void 0;a=(w=e)==null?void 0:(x=w.snapshotMetadata)==null?void 0:(C=x[this.timeKey])==null?void 0:C.alignmentRange.x0;C=x=w=void 0;e=(w=e)==null?void 0:(x=w.snapshotMetadata)==null?
void 0:(C=x[this.timeKey])==null?void 0:C.alignmentRange.x;a&&e?(w=Math.abs(e-g)+Math.abs(a-g),w<f&&(l=a,k=e,f=w)):e&&f===Infinity&&(a=Math.abs(e-g),a<r&&(k=e,r=a))}this.dateTimeSubject.next({cursor:g,max:k,min:l,unit:c.unit})}}}};h.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};
da.Object.defineProperties(ZG.prototype,{dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:wb(a,"unknown data source")}this.updateDebouncedTriggerSubject.next()}}});ZG.\u0275fac=function(a){return new (a||ZG)};
ZG.\u0275cmp=D({type:ZG,selectors:[["ac-date-time"]],inputs:{dataSource:"dataSource",dateFormatStrategy:"dateFormatStrategy",numericFormatStrategy:"numericFormatStrategy"},features:[Ef],ngContentSelectors:["[prefix]","[suffix]"],decls:2,vars:3,consts:[[1,"date-time-card"]],template:function(a,b){a&1&&(bg(yYc),F(0,TBa,4,1,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.formattedDateTimeObservable))?0:-1,c)}},dependencies:[Tx],styles:[".date-time-card[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);text-align:left;height:16px;font-size:12px}/*# sourceMappingURL=ac_date_time.css.map */"]});var $G=Uj("[AC] Set selected series for chart and layer",Wj()),aH=Uj("[AC] Clear selected series for chart and layer",Wj()),zYc=Uj("[AC] Add a selected series for chart and layer",Wj()),AYc=Uj("[AC] Remove a selected series for chart and layer",Wj()),bH=Uj("[AC] Set hovered series for chart and layer",Wj()),BYc=Uj("[AC] Set last clicked series for chart and layer",Wj()),CYc=Uj("[AC] Set multiselect anchor series for chart and layer",Wj()),DYc=Uj("[AC] Set tooltip annotations for chart and layer",
Wj()),EYc=Uj("[AC] Set selected annotations for chart and layer",Wj());var FYc="m -6.5 0 a 6.5 6.5 0 1 0 13 0 a 6.5 6.5 0 1 0 -13 0;m 5.835 5.835 h -11.67 v -11.67 h 11.67 v 11.67 z m -5.835 -5.835;m 0 -7.82 l 7.82 7.82 l -7.82 7.82 l -7.82 -7.82 l 7.82 -7.82 z m 0 7.82;m -8.25 -5.28 h 16.5 l -8.25 12.17 l -8.25 -12.17 z m 8.25 5.28;m -8.25 5.28 h 16.5 l -8.25 -12.17 l -8.25 12.17 z m 8.25 -5.28;m 6.54 -0.19 a 6.54 6.54 0 1 0 -13.08 0 v 6.54 h 13.08 z m -6.54 0.19;m 2.94 -2.94 h 5.36 v 5.88 h -5.36 v 5.36 h -5.88 v -5.36 h -5.36 v -5.88 h 5.36 v -5.36 h 5.88 v 5.36 z m -2.94 2.94;m 0 -4.158 l 3.79 -3.79 l 4.158 4.158 l -3.79 3.79 l 3.79 3.79 l -4.158 4.158 l -3.79 -3.79 l -3.79 3.79 l -4.158 -4.158 l 3.79 -3.79 l -3.79 -3.79 l 4.158 -4.158 l 3.79 3.79 z m 0 4.158;m -6.54 0.19 a 6.54 6.54 0 1 0 13.08 0 v -6.54 h -13.08 z m 6.54 -0.19;m 2.85 -3.7 l 6.24 1.04 l -4.62 4.33 l 0.94 6.26 l -5.55 -3.07 l -5.66 2.83 l 1.2 -6.22 l -4.44 -4.51 l 6.28 -0.78 l 2.92 -5.62 l 2.69 5.74 z m -2.85 3.7;m 0 -8.464 l -8.05 5.85 l 3.08 9.46 l 9.95 0 l 3.08 -9.46 l -8.06 -5.85 z m 0 8.464;m 5.72 -2.36 c 0 3.17 -5.72 11.65 -5.72 11.65 s -5.72 -8.47 -5.72 -11.64 a 5.73 5.73 0 0 1 11.45 0 z m -5.72 2.36".split(";");
Array.from((new Map([["circle","m -6.5 0 a 6.5 6.5 0 1 0 13 0 a 6.5 6.5 0 1 0 -13 0"],["square","m 5.835 5.835 h -11.67 v -11.67 h 11.67 v 11.67 z m -5.835 -5.835"],["diamond","m 0 -7.82 l 7.82 7.82 l -7.82 7.82 l -7.82 -7.82 l 7.82 -7.82 z m 0 7.82"],["down_triangle","m -8.25 -5.28 h 16.5 l -8.25 12.17 l -8.25 -12.17 z m 8.25 5.28"],["up_triangle","m -8.25 5.28 h 16.5 l -8.25 -12.17 l -8.25 12.17 z m 8.25 -5.28"],["hill","m 6.54 -0.19 a 6.54 6.54 0 1 0 -13.08 0 v 6.54 h 13.08 z m -6.54 0.19"],["plus",
"m 2.94 -2.94 h 5.36 v 5.88 h -5.36 v 5.36 h -5.88 v -5.36 h -5.36 v -5.88 h 5.36 v -5.36 h 5.88 v 5.36 z m -2.94 2.94"],["cross","m 0 -4.158 l 3.79 -3.79 l 4.158 4.158 l -3.79 3.79 l 3.79 3.79 l -4.158 4.158 l -3.79 -3.79 l -3.79 3.79 l -4.158 -4.158 l 3.79 -3.79 l -3.79 -3.79 l 4.158 -4.158 l 3.79 3.79 z m 0 4.158"],["valley","m -6.54 0.19 a 6.54 6.54 0 1 0 13.08 0 v -6.54 h -13.08 z m 6.54 -0.19"],["star","m 2.85 -3.7 l 6.24 1.04 l -4.62 4.33 l 0.94 6.26 l -5.55 -3.07 l -5.66 2.83 l 1.2 -6.22 l -4.44 -4.51 l 6.28 -0.78 l 2.92 -5.62 l 2.69 5.74 z m -2.85 3.7"],
["pentagon","m 0 -8.464 l -8.05 5.85 l 3.08 9.46 l 9.95 0 l 3.08 -9.46 l -8.06 -5.85 z m 0 8.464"],["marker","m 5.72 -2.36 c 0 3.17 -5.72 11.65 -5.72 11.65 s -5.72 -8.47 -5.72 -11.64 a 5.73 5.73 0 0 1 11.45 0 z m -5.72 2.36"]])).entries()).map(function(a){var b=m(a);a=b.next().value;return[b.next().value,a]});var GYc={height:28,width:28};var fCa=function(a,b){return{fill:a,stroke:b}},HYc=new Map([[0,"line"],[1,"line-with-area"],[2,"square"],[3,"square"],[4,"band-max"],[5,"band-min"],[6,"threshold"],[7,"square"]]),IYc=0,cH=function(){this.keyShape="circle";this.color="var(--ac-sys-color-extensions-on-surface, #202124)";this.hollow=this.condensed=!1;this.clipPathId="ac-key-clip-path-"+IYc++;this.defaultCircleShape="m -6.5 0 a 6.5 6.5 0 1 0 13 0 a 6.5 6.5 0 1 0 -13 0"};
da.Object.defineProperties(cH.prototype,{drawnAs:{configurable:!0,enumerable:!0,set:function(a){this.keyShape=a!==void 0?HYc.get(a)||"circle":"circle"}}});cH.\u0275fac=function(a){return new (a||cH)};
cH.\u0275cmp=D({type:cH,selectors:[["ac-key"]],hostAttrs:["aria-hidden","true"],inputs:{drawnAs:"drawnAs",color:"color",shape:"shape",condensed:"condensed",hollow:"hollow",lineDash:"lineDash"},decls:3,vars:2,consts:[["condensedIcon",""],["circle",""],["class","icon",3,"ngSwitch","ngStyle",4,"ngIf","ngIfElse"],[1,"icon",3,"ngSwitch","ngStyle"],["class","line","viewBox","0 0 24 12",4,"ngSwitchCase"],["class","line-with-area","viewBox","0 0 24 12",4,"ngSwitchCase"],["class","band-max","viewBox","0 0 12 12",
4,"ngSwitchCase"],["class","band-min","viewBox","0 0 12 12",4,"ngSwitchCase"],["class","threshold","viewBox","0 0 12 12",4,"ngSwitchCase"],["class","square","viewBox","0 0 24 12",4,"ngSwitchCase"],["class","circle","viewBox","0 0 12 12",4,"ngSwitchDefault"],["viewBox","0 0 24 12",1,"line"],["d","M 0 6 H 18","stroke-width","2"],["transform","translate(18 6) scale(0.6 0.6)",4,"ngIf"],["transform","translate(18 6) scale(0.6 0.6)"],["stroke-width","4","stroke","white"],["viewBox","0 0 24 12",1,"line-with-area"],
"d;M 0 6 H 18 V 18 H 0 Z;fill-rule;evenodd;fill-opacity;0.38".split(";"),["viewBox","0 0 12 12",1,"band-max"],"d;M 0 4 H 12 V 12 H 0 Z;fill-rule;evenodd;fill-opacity;0.12".split(";"),"d;M 0 4 H 12;stroke-width;2;stroke-opacity;0.38".split(";"),["viewBox","0 0 12 12",1,"band-min"],"d;M 0 8 H 12 V 0 H 0 Z;fill-rule;evenodd;fill-opacity;0.12".split(";"),"d;M 0 8 H 12;stroke-width;2;stroke-opacity;0.38".split(";"),["viewBox","0 0 12 12",1,"threshold"],"d;M 0 6 H 12;stroke-width;2;stroke-dasharray;3 1".split(";"),
["viewBox","0 0 24 12",1,"square"],["d","M 3 0 h 18 v 12 h -18 Z","fill-rule","evenodd",4,"ngIf"],["transform","translate(12 6) scale(0.6 0.6)",4,"ngIf"],["d","M 3 0 h 18 v 12 h -18 Z","fill-rule","evenodd"],["transform","translate(12 6) scale(0.6 0.6)"],["viewBox","0 0 12 12",1,"circle"],"cx 6 cy 6 r 6 fill-rule evenodd".split(" "),[1,"icon","condensed",3,"ngStyle"],["viewBox","0 0 12 12",4,"ngIf","ngIfElse"],["viewBox","0 0 12 12"],["transform","translate(6 6) scale(0.6 0.6)"],["stroke-width","4"]],
template:function(a,b){a&1&&E(0,gCa,8,11,"i",2)(1,jCa,4,6,"ng-template",null,0,Mg);a&2&&(a=qg(2),I("ngIf",!b.condensed)("ngIfElse",a))},dependencies:[Nx,Rx,Ox,Px,Qx],styles:["i[_ngcontent-%COMP%]{position:relative;display:block;width:24px;height:12px;line-height:0}i[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:100%;height:100%}i.condensed[_ngcontent-%COMP%]{width:12px}\n/*# sourceMappingURL=ac_key.css.map */"],changeDetection:0});var JYc=new dd("MAT_MENU_PANEL");var KYc=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],dH=function(){this._elementRef=p(Hd);this._document=p(Rh);this._focusMonitor=p(Ny);this._parentMenu=p(JYc,{optional:!0});this._changeDetectorRef=p(Cx);this.role="menuitem";this.disableRipple=this.disabled=!1;this._hovered=new qf;this._focused=new qf;this._triggersSubmenu=this._highlighted=!1;p(Zh).load(cA);var a,b;(a=this._parentMenu)==null||(b=a.addItem)==null||b.call(a,this)};h=dH.prototype;
h.focus=function(a,b){this._focusMonitor&&a?Oy(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b);this._focused.next(this)};h.ngAfterViewInit=function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)};h.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef);this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this);this._hovered.complete();this._focused.complete()};
h._getTabIndex=function(){return this.disabled?"-1":"0"};h._getHostElement=function(){return this._elementRef.nativeElement};h._checkDisabled=function(a){this.disabled&&(a.preventDefault(),a.stopPropagation())};h._handleMouseEnter=function(){this._hovered.next(this)};h.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((d=a.textContent)==null?void 0:d.trim())||""};
h._setHighlighted=function(a){this._highlighted=a;this._changeDetectorRef.markForCheck()};h._setTriggersSubmenu=function(a){this._triggersSubmenu=a;this._changeDetectorRef.markForCheck()};h._hasFocus=function(){return this._document&&this._document.activeElement===this._getHostElement()};dH.\u0275fac=function(a){return new (a||dH)};
dH.\u0275cmp=D({type:dH,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(a,b){a&1&&N("click",function(c){return b._checkDisabled(c)})("mouseenter",function(){return b._handleMouseEnter()});a&2&&(If("role",b.role)("tabindex",b._getTabIndex())("aria-disabled",b.disabled)("disabled",b.disabled||null),wg("mat-mdc-menu-item-highlighted",b._highlighted)("mat-mdc-menu-item-submenu-trigger",b._triggersSubmenu))},inputs:{role:"role",
disabled:[2,"disabled","disabled",$g],disableRipple:[2,"disableRipple","disableRipple",$g]},exportAs:["matMenuItem"],attrs:["mat-menu-item",""],ngContentSelectors:["mat-icon, [matMenuItemIcon]","*"],decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(a,b){a&1&&(bg(KYc),cg(0),K(1,
"span",0),cg(2,1),L(),M(3,"div",1),F(4,kCa,2,0,":svg:svg",2));a&2&&(B(3),I("matRippleDisabled",b.disableRipple||b.disabled)("matRippleTrigger",b._getHostElement()),B(),G(b._triggersSubmenu?4:-1))},dependencies:[fA],encapsulation:2,changeDetection:0});var LYc=new dd("MatMenuContent"),eH=function(){this._template=p(dg);this._appRef=p(Wg);this._injector=p(ye);this._viewContainerRef=p(eg);this._document=p(Rh);this._changeDetectorRef=p(Cx);this._attached=new qf};
eH.prototype.attach=function(a){a=a===void 0?{}:a;this._portal||(this._portal=new Oz(this._template,this._viewContainerRef));this.detach();this._outlet||(this._outlet=new fi(this._document.createElement("div"),this._appRef,this._injector));var b=this._template.elementRef.nativeElement;b.parentNode.insertBefore(this._outlet.outletElement,b);this._changeDetectorRef.markForCheck();this._portal.attach(this._outlet,a);this._attached.next()};
eH.prototype.detach=function(){var a;((a=this._portal)==null?0:a.isAttached)&&this._portal.detach()};eH.prototype.ngOnDestroy=function(){this.detach();var a;(a=this._outlet)==null||a.dispose()};eH.\u0275fac=function(a){return new (a||eH)};eH.\u0275dir=af({type:eH,selectors:[["ng-template","matMenuContent",""]],features:[Gg([{provide:LYc,useExisting:eH}])]});var MYc=new dd("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),fH=function(){this._elementRef=p(Hd);this._changeDetectorRef=p(Cx);this._injector=p(ye);this._animationsDisabled=mi();this._directDescendantItems=new gg;this._classList={};this._panelAnimationState="void";this._animationDone=new qf;this._isAnimating=ng.apply(null,[!1].concat(q([])));this.close=this.closed=
new Ti;this.panelId=p(ai).getId("mat-menu-panel-");var a=p(MYc);this.overlayPanelClass=a.overlayPanelClass||"";this._xPosition=a.xPosition;this._yPosition=a.yPosition;this.backdropClass=a.backdropClass;this.overlapTrigger=a.overlapTrigger;this.hasBackdrop=a.hasBackdrop};h=fH.prototype;h.ngOnInit=function(){this.setPositionClasses()};
h.ngAfterContentInit=function(){var a=this;this._updateDirectDescendants();this._keyManager=pz(ACc(mz(new sz(this._directDescendantItems))));this._keyManager.tabOut.subscribe(function(){return a.closed.emit("tab")});this._directDescendantItems.changes.pipe(xf(this._directDescendantItems),yf(function(b){return te.apply(null,q(b.map(function(c){return c._focused})))})).subscribe(function(b){return qz(a._keyManager,b)});this._directDescendantItems.changes.subscribe(function(b){var c=a._keyManager,d;
a._panelAnimationState==="enter"&&((d=c.activeItem)==null?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())})};h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._directDescendantItems.destroy();this.closed.complete();var b;(b=this._firstItemFocusRef)==null||b.destroy();clearTimeout(this._exitFallbackTimeout)};
h._hovered=function(){return this._directDescendantItems.changes.pipe(xf(this._directDescendantItems),yf(function(a){return te.apply(null,q(a.map(function(b){return b._hovered})))}))};h.addItem=function(){};h.removeItem=function(){};
h._handleKeydown=function(a){var b=a.keyCode,c=this._keyManager;switch(b){case 27:Gh(a)||(a.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:b!==38&&b!==40||DCc(c,"keyboard"),c.onKeydown(a)}};
var NYc=function(a,b){b=b===void 0?"program":b;var c;(c=a._firstItemFocusRef)==null||c.destroy();a._firstItemFocusRef=Ee(function(){var d=a._resolvePanel();if(!d||!d.contains(document.activeElement)){var e=a._keyManager;DCc(e,b)._setActiveItemByIndex(0,1);!e.activeItem&&d&&d.focus()}},{injector:a._injector})};h=fH.prototype;
h.setPositionClasses=function(a,b){a=a===void 0?this.xPosition:a;b=b===void 0?this.yPosition:b;var c={};this._classList=Object.assign({},this._classList,(c["mat-menu-before"]=a==="before",c["mat-menu-after"]=a==="after",c["mat-menu-above"]=b==="above",c["mat-menu-below"]=b==="below",c));this._changeDetectorRef.markForCheck()};
h._onAnimationDone=function(a){var b=a==="_mat-menu-exit";if(b||a==="_mat-menu-enter")b&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(b?"void":"enter"),this._isAnimating.set(!1)};h._onAnimationStart=function(a){a!=="_mat-menu-enter"&&a!=="_mat-menu-exit"||this._isAnimating.set(!0)};
h._setIsOpen=function(a){var b=this;this._panelAnimationState=a?"enter":"void";if(a){if(this._keyManager.activeItemIndex===0){var c=this._resolvePanel();c&&(c.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(function(){return b._onAnimationDone("_mat-menu-exit")},200));this._animationsDisabled&&setTimeout(function(){b._onAnimationDone(a?"_mat-menu-enter":"_mat-menu-exit")});this._changeDetectorRef.markForCheck()};
h._updateDirectDescendants=function(){var a=this;this._allItems.changes.pipe(xf(this._allItems)).subscribe(function(b){a._directDescendantItems.reset(b.filter(function(c){return c._parentMenu===a}));kg(a._directDescendantItems)})};h._resolvePanel=function(){var a=null;this._directDescendantItems.length&&(a=this._directDescendantItems.first._getHostElement().closest('[role="menu"]'));return a};
da.Object.defineProperties(fH.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()}},panelClass:{configurable:!0,enumerable:!0,set:function(a){var b=this._previousPanelClass,c=Object.assign({},this._classList);b&&b.length&&b.split(" ").forEach(function(d){c[d]=
!1});(this._previousPanelClass=a)&&a.length&&(a.split(" ").forEach(function(d){c[d]=!0}),this._elementRef.nativeElement.className="");this._classList=c}},classList:{configurable:!0,enumerable:!0,get:function(){return this.panelClass},set:function(a){this.panelClass=a}}});fH.\u0275fac=function(a){return new (a||fH)};
fH.\u0275cmp=D({type:fH,selectors:[["mat-menu"]],contentQueries:function(a,b,c){a&1&&(ig(c,LYc,5),ig(c,dH,5),ig(c,dH,4));if(a&2){var d;lg(d=mg())&&(b.lazyContent=d.first);lg(d=mg())&&(b._allItems=d);lg(d=mg())&&(b.items=d)}},viewQuery:function(a,b){a&1&&hg(dg,5);if(a&2){var c;lg(c=mg())&&(b.templateRef=c.first)}},hostVars:3,hostBindings:function(a){a&2&&If("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],
ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",$g],hasBackdrop:[2,"hasBackdrop","hasBackdrop",function(a){return a==null?null:$g(a)}],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Gg([{provide:JYc,useExisting:fH}])],ngContentSelectors:["*"],decls:1,vars:0,consts:[["tabindex",
"-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(a){a&1&&(bg(),Gf(0,lCa,3,12,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{border-top-color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],
encapsulation:2,changeDetection:0});var OYc=new dd("mat-menu-scroll-strategy",{providedIn:"root",factory:function(){var a=p(ye);return function(){return Th(a)}}}),gH=new WeakMap,hH=function(a){this._canHaveBackdrop=a;this._element=p(Hd);this._viewContainerRef=p(eg);this._menuItemInstance=p(dH,{optional:!0,self:!0});this._dir=p(bi,{optional:!0});this._focusMonitor=p(Ny);this._ngZone=p(Rg);this._injector=p(ye);this._scrollStrategy=p(OYc);this._changeDetectorRef=p(Cx);this._animationsDisabled=mi();this._overlayRef=null;this._menuOpen=
!1;this._menuCloseSubscription=this._closingActionsSubscription=Pd.EMPTY;this._openedBy=void 0;var b=p(JYc,{optional:!0});this._parentMaterialMenu=b instanceof fH?b:void 0};h=hH.prototype;h.ngOnDestroy=function(){this._menu&&this._ownsMenu(this._menu)&&gH.delete(this._menu);var a;(a=this._pendingRemoval)==null||a.unsubscribe();this._menuCloseSubscription.unsubscribe();this._closingActionsSubscription.unsubscribe();this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)};
h._triggersSubmenu=function(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)};h._closeMenu=function(){var a;(a=this._menu)==null||a.close.emit()};
h._openMenu=function(a){var b=this,c=this._menu;if(!this._menuOpen&&c){var d;(d=this._pendingRemoval)==null||d.unsubscribe();d=gH.get(c);gH.set(c,this);d&&d!==this&&d._closeMenu();d=this._createOverlay(c);var e=d.getConfig(),f=e.positionStrategy;this._setPosition(c,f);e.hasBackdrop=this._canHaveBackdrop?c.hasBackdrop==null?!this._triggersSubmenu():c.hasBackdrop:!1;if(!d.hasAttached()){d.attach(this._getPortal(c));var g;(g=c.lazyContent)==null||g.attach(this.menuData)}this._closingActionsSubscription=
this._menuClosingActions().subscribe(function(){return b._closeMenu()});c.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0;c.direction=this.dir;a&&NYc(c,this._openedBy||"program");this._setIsMenuOpen(!0);c instanceof fH&&(c._setIsOpen(!0),c._directDescendantItems.changes.pipe(zf(c.close)).subscribe(function(){aDc(eDc(f,!1));eDc(f,!0)}))}};h.focus=function(a,b){this._focusMonitor&&a?Oy(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};
h._destroyMenu=function(a){var b=this._overlayRef,c=this._menu;if(b&&this.menuOpen){this._closingActionsSubscription.unsubscribe();var d;(d=this._pendingRemoval)==null||d.unsubscribe();if(c instanceof fH&&this._ownsMenu(c))this._pendingRemoval=c._animationDone.pipe(lf(1)).subscribe(function(){b.detach();if(!gH.has(c)){var f;(f=c.lazyContent)==null||f.detach()}}),c._setIsOpen(!1);else{b.detach();var e;c==null||(e=c.lazyContent)==null||e.detach()}c&&this._ownsMenu(c)&&gH.delete(c);!this.restoreFocus||
a!=="keydown"&&this._openedBy&&this._triggersSubmenu()||this.focus(this._openedBy);this._openedBy=void 0;this._setIsMenuOpen(!1)}};h._setIsMenuOpen=function(a){a!==this._menuOpen&&((this._menuOpen=a)?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(a),this._changeDetectorRef.markForCheck())};
h._createOverlay=function(a){var b=this;if(!this._overlayRef){var c=this._getOverlayConfig(a);this._subscribeToPositions(a,c.positionStrategy);this._overlayRef=ki(this._injector,c);this._overlayRef.keydownEvents().subscribe(function(d){b._menu instanceof fH&&b._menu._handleKeydown(d)})}return this._overlayRef};
h._getOverlayConfig=function(a){return new di({positionStrategy:fDc(cDc(eDc(Xh(this._injector,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||"ltr",disableAnimations:this._animationsDisabled})};
h._subscribeToPositions=function(a,b){var c=this;a.setPositionClasses&&b.positionChanges.subscribe(function(d){c._ngZone.run(function(){a.setPositionClasses(d.connectionPair.overlayX==="start"?"after":"before",d.connectionPair.overlayY==="top"?"below":"above")})})};
h._setPosition=function(a,b){var c=m(a.xPosition==="before"?["end","start"]:["start","end"]),d=c.next().value;c=c.next().value;var e=m(a.yPosition==="above"?["bottom","top"]:["top","bottom"]),f=e.next().value;e=e.next().value;var g=m([f,e]),k=g.next().value;g=g.next().value;var l=m([d,c]),r=l.next().value;l=l.next().value;var w=0;this._triggersSubmenu()?(l=d=a.xPosition==="before"?"start":"end",c=r=d==="end"?"start":"end",this._parentMaterialMenu&&(this._parentInnerPadding==null&&(this._parentInnerPadding=
(a=this._parentMaterialMenu.items.first)?a._getHostElement().offsetTop:0),w=f==="bottom"?this._parentInnerPadding:-this._parentInnerPadding)):a.overlapTrigger||(k=f==="top"?"bottom":"top",g=e==="top"?"bottom":"top");Fz(b,[{originX:d,originY:k,overlayX:r,overlayY:f,offsetY:w},{originX:c,originY:k,overlayX:l,overlayY:f,offsetY:w},{originX:d,originY:g,overlayX:r,overlayY:e,offsetY:-w},{originX:c,originY:g,overlayX:l,overlayY:e,offsetY:-w}])};
h._menuClosingActions=function(){var a=this,b=this._getOutsideClickStream(this._overlayRef),c=this._overlayRef._detachments,d=this._parentMaterialMenu?this._parentMaterialMenu.closed:ce(),e=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ue(function(f){return a._menuOpen&&f!==a._menuItemInstance})):ce();return te(b,d,e,c)};h._getPortal=function(a){this._portal&&this._portal.templateRef===a.templateRef||(this._portal=new Oz(a.templateRef,this._viewContainerRef));return this._portal};
h._ownsMenu=function(a){return gH.get(a)===this};
da.Object.defineProperties(hH.prototype,{_menu:{configurable:!0,enumerable:!0,get:function(){return this._menuInternal},set:function(a){var b=this;if(a!==this._menuInternal){this._menuInternal=a;this._menuCloseSubscription.unsubscribe();a&&(this._menuCloseSubscription=a.close.subscribe(function(d){b._destroyMenu(d);d!=="click"&&d!=="tab"||!b._parentMaterialMenu||b._parentMaterialMenu.closed.emit(d)}));var c;(c=this._menuItemInstance)==null||c._setTriggersSubmenu(this._triggersSubmenu())}}},menuOpen:{configurable:!0,
enumerable:!0,get:function(){return this._menuOpen}},dir:{configurable:!0,enumerable:!0,get:function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}}});hH.\u0275fac=function(){We()};hH.\u0275dir=af({type:hH});var iH=function(){hH.call(this,!0);var a=this;this._hoverSubscription=Pd.EMPTY;this.restoreFocus=!0;this.onMenuOpen=this.menuOpened=new Ti;this.onMenuClose=this.menuClosed=new Ti;this._cleanupTouchstart=p(ci).listen(this._element.nativeElement,"touchstart",function(b){Lqa(b)||(a._openedBy="touch")},{passive:!0})};Y(iH,hH);h=iH.prototype;h.openMenu=function(){this._openMenu(!0)};h.closeMenu=function(){this._closeMenu()};h.updatePosition=function(){var a;(a=this._overlayRef)==null||a.updatePosition()};
h.ngAfterContentInit=function(){this._handleHover()};h.ngOnDestroy=function(){hH.prototype.ngOnDestroy.call(this);this._cleanupTouchstart();this._hoverSubscription.unsubscribe()};h._getOverlayOrigin=function(){return this._element};h._getOutsideClickStream=function(a){return a.backdropClick()};h._handleMousedown=function(a){Kqa(a)||(this._openedBy=a.button===0?"mouse":void 0,hH.prototype._triggersSubmenu.call(this)&&a.preventDefault())};
h._handleKeydown=function(a){a=a.keyCode;if(a===13||a===32)this._openedBy="keyboard";hH.prototype._triggersSubmenu.call(this)&&(a===39&&this.dir==="ltr"||a===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())};h._handleClick=function(a){hH.prototype._triggersSubmenu.call(this)?(a.stopPropagation(),this.openMenu()):this.menuOpen?this.closeMenu():this.openMenu()};
h._handleHover=function(){var a=this;hH.prototype._triggersSubmenu.call(this)&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(function(b){var c;b!==a._menuItemInstance||b.disabled||((c=a._parentMaterialMenu)==null?void 0:c._panelAnimationState)==="void"||(a._openedBy="mouse",a._openMenu(!1))}))};
da.Object.defineProperties(iH.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){this._menu=a}}});iH.\u0275fac=function(a){return new (a||iH)};
iH.\u0275dir=af({type:iH,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(a,b){a&1&&N("click",function(c){return b._handleClick(c)})("mousedown",function(c){return b._handleMousedown(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&If("aria-haspopup",b.menu?"menu":null)("aria-expanded",b.menuOpen)("aria-controls",b.menuOpen?b.menu==null?null:b.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,
"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[Ef]});var jH=function(){};jH.\u0275fac=function(a){return new (a||jH)};jH.\u0275mod=$e({type:jH});jH.\u0275inj=Fc({imports:[iA,Wz,Ky,Cz]});var PYc=["streamActionsMenuContents"],kH=function(a){this.cdr=a;this.streamActions=[];this.filteredStreamActions=[]};kH.prototype.ngOnChanges=function(a){var b=this;if(a.streamMetadata||a.streamActions)this.filteredStreamActions=this.streamActions.filter(function(c){return b.streamMetadata?c.relevant(b.streamMetadata):!1}),this.streamActionMenu&&this.streamActionMenu.clear(),QYc(this),this.cdr.detectChanges()};
kH.prototype.ngAfterViewInit=function(){var a;this.streamActionMenu&&((a=this.filteredStreamActions)==null?0:a.length)&&(this.streamActionMenu.clear(),QYc(this),this.cdr.detectChanges())};var QYc=function(a){if(a.streamActionMenu)for(var b=m(a.filteredStreamActions),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.streamActionMenu.createComponent(c.menuItem);d.instance.config=c.config;d.instance.streamMetadata=a.streamMetadata}};kH.\u0275fac=function(a){return new (a||kH)(Ve(Cx))};
kH.\u0275cmp=D({type:kH,selectors:[["ac-stream-action-menu"]],viewQuery:function(a,b){a&1&&hg(PYc,5,eg);if(a&2){var c;lg(c=mg())&&(b.streamActionMenu=c.first)}},inputs:{streamMetadata:"streamMetadata",streamActions:"streamActions"},features:[jx],decls:3,vars:0,consts:[["streamActionsMenuContents",""],[1,"stream-action-menu"]],template:function(a){a&1&&(Qf(0,"div",1),Sf(1,"div",null,0),Rf())},styles:[".stream-action-menu[_ngcontent-%COMP%]{display:flex;flex-direction:column}.stream-action-menu[_ngcontent-%COMP%]     .stream-action-filter-button{text-transform:none}.stream-action-menu[_ngcontent-%COMP%]     .stream-action-pantheon-link{text-transform:none}.stream-action-menu[_ngcontent-%COMP%]     .stream-action-gke-link{text-transform:none}"],
changeDetection:0});var lH=function(){this.streamActions=[];this.filteredStreamActions=[]};lH.prototype.ngOnChanges=function(){var a=this;this.filteredStreamActions=this.streamActions.filter(function(b){return a.streamMetadata&&b.relevant(a.streamMetadata)})};lH.\u0275fac=function(a){return new (a||lH)};
lH.\u0275cmp=D({type:lH,selectors:[["ac-series-stream-actions"]],inputs:{streamMetadata:"streamMetadata",streamActions:"streamActions"},features:[jx],decls:4,vars:3,consts:[["streamActionsMenu",""],["class","stream-actions","mat-icon-button","","aria-label","Open timeserie action menu",3,"matMenuTriggerFor",4,"ngIf"],[3,"streamMetadata","streamActions"],["mat-icon-button","","aria-label","Open timeserie action menu",1,"stream-actions",3,"matMenuTriggerFor"]],template:function(a,b){a&1&&(E(0,mCa,3,
1,"button",1),K(1,"mat-menu",null,0),M(3,"ac-stream-action-menu",2),L());a&2&&(I("ngIf",b.filteredStreamActions.length>0),B(3),I("streamMetadata",b.streamMetadata)("streamActions",b.filteredStreamActions))},dependencies:[by,Nx,Ly,Jy,jB,iB,jH,fH,iH,kH],styles:["button.stream-actions[_ngcontent-%COMP%]{width:16px;height:16px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0}button.stream-actions[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;color:#202124}\n/*# sourceMappingURL=ac_series_stream_actions.css.map */"],
changeDetection:0});var RYc=function(a){this.valueType=0;this.getColor=a.getColor;this.getShape=a.getShape;this.getDisplayValue=a.getDisplayValue;this.getIsInteracted=a.getIsInteracted;this.getName=a.getName;this.getMinDisplayValue=a.getMinDisplayValue;this.getMaxDisplayValue=a.getMaxDisplayValue;this.getMetadata=a.getMetadata;this.drawnAs=a.drawnAs;this.lineDash=a.lineDash;this.rawValue=a.rawValue;this.scaledValue=a.scaledValue;this.pxValue=a.pxValue;this.stackingIndex=a.stackingIndex};
da.Object.defineProperties(RYc.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this.getColor()}},shape:{configurable:!0,enumerable:!0,get:function(){return this.getShape()}},displayValue:{configurable:!0,enumerable:!0,get:function(){return this.displayValueCache?this.displayValueCache:this.displayValueCache=this.getDisplayValue()}},minDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.minDisplayValueCache)return this.minDisplayValueCache;if(this.getMinDisplayValue)return this.minDisplayValueCache=
this.getMinDisplayValue()}},maxDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.maxDisplayValueCache)return this.maxDisplayValueCache;if(this.getMaxDisplayValue)return this.maxDisplayValueCache=this.getMaxDisplayValue()}},isInteracted:{configurable:!0,enumerable:!0,get:function(){return this.getIsInteracted()}},name:{configurable:!0,enumerable:!0,get:function(){return this.getName()}},timeshiftDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.getTimeshiftDisplayValue)return this.getTimeshiftDisplayValue()}},
metadata:{configurable:!0,enumerable:!0,get:function(){if(this.getMetadata)return this.getMetadata()}}});var SYc=function(){RYc.apply(this,arguments);this.valueType=1};Y(SYc,RYc);var TYc=function(){RYc.apply(this,arguments);this.valueType=2};Y(TYc,RYc);var mH=function(){};
mH.prototype.updateLabelsModel=function(a,b){var c=!1,d=function(g){var k=a.selectedColumns.filter(function(l){return l.uniqueId!==g.uniqueId});k.length<a.selectedColumns.length&&(c=!0,a.selectedColumns=k)},e=function(g){a.selectedColumns.filter(function(k){return k.uniqueId===g.uniqueId}).length===0&&(c=!0,a.selectedColumns.push(g))},f=1;a.selectableColumns.forEach(function(g){delete g.order});b.forEach(function(g,k){g&&g.forEach(function(l){var r=!1;a.selectableColumns.forEach(function(w){l.title===w.title&&
(r=!0,w.order=w.order||f++,w.isDefault!==l.isDefault&&((w.isDefault=l.isDefault)?e(w):d(w)),l.template!==w.templates[k]&&(w.templates[k]=l.template,w.tokenizers[k]=l.tokenizer))});r||(l={isDefault:l.isDefault,title:l.title,templates:[l.template],tokenizers:[l.tokenizer],uniqueId:l.uniqueId},l.uniqueId=a.nextColumnId++,l.order=f++,a.selectableColumns.push(l),l.isDefault&&e(l))})});a.selectableColumns.forEach(function(g){g.order||d(g)});a.selectableColumns=a.selectableColumns.filter(function(g){return g.order});
a.selectableColumns=a.selectableColumns.map(function(g){return g});a.selectableColumns.sort(function(g,k){return g.order-k.order});b=a.selectedColumns;a.selectedColumns=a.selectedColumns.map(function(g){return g});a.selectedColumns.sort(function(g,k){return g.order-k.order});b.forEach(function(g,k){g.uniqueId!==a.selectedColumns[k].uniqueId&&(c=!0)});return c};
mH.prototype.updatePercents=function(a,b,c,d){d=d||640;a.labelWidths=b.map(function(k,l){var r=a.labelWidths&&a.labelWidths.length&&a.labelWidths[l]||0;r===0&&(r=a.labelHeaders&&a.labelHeaders[l]&&a.labelHeaders[l].length||0);return Math.max(r,k.length)});var e=0;a.labelWidths.forEach(function(k){e+=k});var f=Math.max(80,d/8)-e;a.scale=f<0?c-1.25*f:c;var g=a.labelWidths.length;a.labelPercents=f>0&&g?a.labelWidths.map(function(k){return k+f/g}):a.labelWidths.map(function(k){return k});e=0;a.labelPercents.forEach(function(k){e+=
k});for(a.labelPercents=a.labelPercents.map(function(k){return Math.floor(k/e*c)});a.labelPercents.includes(0);){d=Math.max.apply(Math,q(a.labelPercents));if(d<=1)break;b=a.labelPercents.indexOf(0);d=a.labelPercents.indexOf(d);a.labelPercents[b]++;a.labelPercents[d]--}};var ul=function(a){return a[0]!=='"'||a.length<2||a[a.length-1]!=='"'?a:a.substring(1,a.length-1).replace(/\\([\\"])/g,"$1")};mH.prototype.updatePercents=mH.prototype.updatePercents;mH.prototype.updateLabelsModel=mH.prototype.updateLabelsModel;
var UYc=new mH;xw("awesomecharts.utils.LabelUtils",UYc);var VYc=function(a){this.labelsCache=this.statsModeSummaryValueCache=this.displayValueSubstringsCache=this.displayValueCache=this.nameCache=null;this.seriesId=a.seriesId;this.color=a.color;this.shape=a.shape;this.drawnAs=a.drawnAs;this.dataSeriesMetadata=a.dataSeriesMetadata;this.isInteracted=a.isInteracted;this.isSelected=a.isSelected;this.rawValue=a.rawValue;this.pxValue=a.pxValue;this.timeshiftValue=a.timeshiftValue;this.setHovered=a.setHovered;this.setSelected=a.setSelected;this.unit=a.unit;this.hideValue=
a.hideValue;this.getNameInternal=a.getName;this.getDisplayValueInternal=a.getDisplayValue;this.getStatsModeSummaryValueInternal=a.getStatsModeSummaryValue;this.getLabelsInternal=a.getLabels;this.getColumnIdsInternal=a.getColumnIds;this.getDisplayValueAndSubstringsInternal=a.getDisplayValueAndSubstrings;this.onLabelsChange=a.onLabelsChange};
da.Object.defineProperties(VYc.prototype,{getName:{configurable:!0,enumerable:!0,set:function(a){this.nameCache=null;this.getNameInternal=a},get:function(){return this.getNameInternal}},getDisplayValue:{configurable:!0,enumerable:!0,set:function(a){this.displayValueCache=null;this.getDisplayValueInternal=a},get:function(){return this.getDisplayValueInternal}},getDisplayValueAndSubstrings:{configurable:!0,enumerable:!0,set:function(a){this.displayValueSubstringsCache=null;this.getDisplayValueAndSubstringsInternal=
a},get:function(){return this.getDisplayValueAndSubstringsInternal}},getStatsModeSummaryValue:{configurable:!0,enumerable:!0,set:function(a){this.statsModeSummaryValueCache=null;this.getStatsModeSummaryValueInternal=a},get:function(){return this.getStatsModeSummaryValueInternal}},getLabels:{configurable:!0,enumerable:!0,set:function(a){this.labelsCache=null;this.getLabelsInternal=a},get:function(){return this.getLabelsInternal}},getColumnIds:{configurable:!0,enumerable:!0,set:function(a){this.getColumnIdsInternal=
a},get:function(){return this.getColumnIdsInternal}},name:{configurable:!0,enumerable:!0,get:function(){if(this.nameCache!==null)return this.nameCache;var a=this.getName();return this.nameCache=a}},displayValue:{configurable:!0,enumerable:!0,get:function(){if(this.displayValueCache!==null)return this.displayValueCache;if(this.getDisplayValueAndSubstrings){var a=this.getDisplayValueAndSubstrings(),b=a.displayValue;a=a.displayValueSubstrings;this.displayValueCache=b;this.displayValueSubstringsCache=
a;return b}return this.displayValueCache=b=this.getDisplayValue()}},displayValueSubstrings:{configurable:!0,enumerable:!0,get:function(){if(this.displayValueSubstringsCache!==null)return this.displayValueSubstringsCache;if(this.getDisplayValueAndSubstrings){var a=this.getDisplayValueAndSubstrings(),b=a.displayValueSubstrings;this.displayValueCache=a.displayValue;return this.displayValueSubstringsCache=b}this.displayValueSubstringsCache=void 0}},statsModeSummaryValue:{configurable:!0,enumerable:!0,
get:function(){if(this.statsModeSummaryValueCache!==null)return this.statsModeSummaryValueCache;var a=this.getStatsModeSummaryValue();return this.statsModeSummaryValueCache=a}},labels:{configurable:!0,enumerable:!0,get:function(){if(this.labelsCache!==null)return this.labelsCache;var a=this.getLabels();this.labelsCache=a;if(this.onLabelsChange)this.onLabelsChange(a);return a}}});var WYc={getColor:function(a,b){a=DCa(b.max,b.colorPivots)(a);var c=m(a);a=c.next().value;b=c.next().value;c=c.next().value;return"rgb("+a+", "+b+", "+c+")"}};var $Ca=function(){return[]},KCa=function(a,b){return{$implicit:a,name:b}},PCa=function(a,b,c){return{$implicit:a,seriesMetadata:b,displayValue:c}},lDa=function(a){return{"min-width":a}},XYc=["right","left"],nH=function(){var a=p(gG);XG.call(this,a);var b=this;this.queueService=p(UG);this.formatterService=p(fG);this.cdr=p(Cx);this.enclosingHovercard=p(YG,{optional:!0});this.onlyShowSelectedSeriesInternal=!1;this.timeKey=1;this.hideSelectedSection=this.hideThresholds=!1;this.visibleRowsInternal=5;
this.layout="default";this.minWidth=0;this.streamActions=[];this.hideUndefinedValues=this.condensedShapes=!1;this.layerIdsToIgnore=[];this.distributionColorStrategy=WYc;this.chartQuickActionsEnabled=this.formatDistribution=!1;this.updateTriggerSubject=new qf;this.xAxisLookup={ids:[],entities:{}};this.isQuery=!1;this.seriesMetadataForLabelTablesCache=this.labelTablesCache=null;this.valueColumnLabel="Value";this.updateTimeout=null;this.allStreamsSubject=new Mj([]);this.sortedStreamsObservable=this.allStreamsSubject.pipe(A(function(c){return c.sort(uDa)}));
this.relativeYPosSubject=new Mj(null);this.centerStreamIndexObservable=ie([this.sortedStreamsObservable,this.relativeYPosSubject]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return b.getCenterStreamIndex(c,d)}),nf());this.truncatedStreamsObservable=ie([this.sortedStreamsObservable,this.centerStreamIndexObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;d=Math.max(0,d-Math.ceil(Math.max(0,b.visibleRows-1)/2));var e=Math.min(d+b.visibleRows,c.length),f=
b.visibleRows-(e-d);f&&(d===0?e=Math.min(c.length,e+f):d=Math.max(0,d-f));return{streams:c.slice(d,e),streamsAboveCount:d,streamsBelowCount:c.length-e}}),vf({bufferSize:1,refCount:!0}));this.streamsObservable=this.truncatedStreamsObservable.pipe(A(function(c){return c.streams}),vf({bufferSize:1,refCount:!0}));this.selectedStreamsSubject=new Mj([]);this.selectedStreamsObservable=this.selectedStreamsSubject.asObservable();this.streamsAboveCountObservable=this.truncatedStreamsObservable.pipe(A(function(c){return c.streamsAboveCount}),
vf({bufferSize:1,refCount:!0}));this.streamsBelowCountObservable=this.truncatedStreamsObservable.pipe(A(function(c){return c.streamsBelowCount}),vf({bufferSize:1,refCount:!0}));this.timeshiftColumnLabelSubject=new Mj("");this.timeshiftColumnLabelObservable=this.timeshiftColumnLabelSubject.pipe(vf({bufferSize:1,refCount:!0}));this.showSelectedSeriesHeadersObservable=ie([this.selectedStreamsObservable,this.timeshiftColumnLabelObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;
d=b.chartQuickActionsEnabled&&d!=="";return c.length>0?!b.onlyShowSelectedSeriesInternal||d:!1}),vf({bufferSize:1,refCount:!0}));this.setup({});this.scopeObservable.pipe(yf(function(c){return b.formatterService.getValueStrategy(c)}),zf(this.destroyed)).subscribe(function(c){b.ignoreFloatImprecision=c.ignoreFloatImprecision;b.valueFormatter=function(d,e,f,g){var k,l;return(l=(k=c.formatForHovercard)==null?void 0:k.call(c,d,e,f,g))!=null?l:c.format(d,e,f,g)};b.updateTriggerSubject.next()})};Y(nH,XG);
nH.\u0275dir=XG.\u0275dir;h=nH.prototype;h.ngOnChanges=function(a){XG.prototype.ngOnChanges.call(this,a);"layerIdsToIgnore"in a&&this.update()};
h.ngOnInit=function(){var a=this;this.store.pipe(ak(tG),zf(this.destroyed)).subscribe(function(c){a.xAxisLookup=c});var b=XYc.map(function(c){return a.scopeObservable.pipe(yf(function(d){return a.selectorService.getSelection(yG,Object.assign({},d,{yAxisId:c}))}),A(function(d){return d!=null?d:null}),xf(null),tf(),A(gk),ue(function(d){return rl(d)}))});this.enclosingHovercard&&(this.enclosingHovercard.timeKeyObservable.pipe(zf(this.destroyed)).subscribe(function(c){a.timeKey=c}),this.enclosingHovercard.showHovercard.pipe(zf(this.destroyed)).subscribe(function(c){c&&
a.update()}));this.truncatedStreamsObservable.pipe(zf(this.destroyed)).subscribe(function(c){if(a.showHovercardSeriesActionText!==void 0&&a.showHovercardSeriesActionText!==null&&a.enclosingHovercard){var d=!1;c=m(c.streams);for(var e=c.next();!e.done;e=c.next())e=e.value,e.metadata!==void 0&&(d=d||a.showHovercardSeriesActionText(e.metadata));a.enclosingHovercard.shouldShowSeriesActionText$.next(d)}});te.apply(null,[this.updateTriggerSubject].concat(q(b))).pipe(ue(function(){var c,d;return(d=(c=a.enclosingHovercard)==
null?void 0:c.isShowing)!=null?d:!0}),zf(this.destroyed)).subscribe(function(){a.throttledUpdate()})};h.throttledUpdate=function(){var a=this;this.updateTimeout||(this.updateTimeout=setTimeout(function(){a.update();a.updateTimeout=null},0))};
h.update=function(a){var b=this,c=XYc.map(function(d){return b.scopeObservable.pipe(yf(function(e){return b.selectorService.getSelection(yG,Object.assign({},e,{yAxisId:d}))}))});ie(c).pipe(lf(1)).subscribe(function(d){for(var e=new Map,f=0;f<XYc.length;f++)e.set(XYc[f],d[f]);b.withLatest(function(g){var k=g.scope;var l=g.state;if(k&&l&&l.timeSeries&&l.brush&&l.resize&&Object.keys(l.timeSeries.byLayer.entities).length!==0){g=l.colorScale;var r=l.seriesSelection,w=l.timeSeries,x=l.resize;if(!l.brush.panning){a&&
b.deselectAllSeries(k,r);l=YYc(r);r=b.getInteractedSeries(r);for(var C=new Map,H=m(XYc),J=H.next();!J.done;J=H.next()){J=J.value;var O=e.get(J);if(O){O=sl(O,x.margins.top,x.height-x.margins.bottom,O.unit);var R=void 0;C.set(J,(R=O)!=null?R:null)}else C.set(J,null)}w=b.getRelevantLayers(w);x=b.getTimeShiftColumnLabel(k,w);b.timeshiftColumnLabelSubject.next(x);g=b.buildStreams(k,w,r,C,e,g);b.allStreamsSubject.next(g);k=ZYc(b,k,w,l,e);b.selectedStreamsSubject.next(k);b.cdr.markForCheck()}}})})};
h.getTimeShiftColumnLabel=function(a,b){var c=null;b=m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=void 0,f=void 0,g=void 0,k=void 0,l=void 0,r=void 0,w=(g=this.xAxisLookup.entities[Ek((l=(e=a)==null?void 0:e.chartGroupId)!=null?l:"",(r=(f=a)==null?void 0:f.chartId)!=null?r:"",d.xAxisId)])==null?void 0:(k=g.relativeTo)==null?void 0:k.shift;d=w?CBa(w):null;if(!c)c=d;else if(d&&c!==d)throw Error("Fc");}return c||""};h.onScopeChange=function(){this.updateTriggerSubject.next()};
h.onSeriesSelectionChange=function(a){il(a)&&this.updateTriggerSubject.next()};h.onChartSpecChange=function(a){var b,c;a=(b=a.currentValue)==null?void 0:(c=b.dataSets)==null?void 0:c[0];this.isQuery=(a==null?void 0:a.timeSeriesQuery)!==void 0||(a==null?void 0:a.prometheusQuery)!==void 0};h.onTimeSeriesChange=function(){this.updateTriggerSubject.next()};h.onResizeChange=function(){this.updateTriggerSubject.next()};
h.onLastInteractionChange=function(a,b){if(a=a.currentValue)b=this.getLastInteractionYPos(pl(b.scope,a)),this.relativeYPosSubject.next(b)};var YYc=function(a){var b=[];a&&Object.values(a.byLayer.entities).forEach(function(c){b=b.concat((c==null?void 0:c.selectedSeries)||[])});return b};h=nH.prototype;
h.deselectAllSeries=function(a,b){var c=this;b&&Object.values(b.byLayer.entities).filter(function(d){return d!==void 0&&d!==null}).forEach(function(d){d.selectedSeries&&a.chartId&&c.store.dispatch(aH({chartId:a.chartId,layerId:d.layerId}))})};h.getInteractedSeries=function(a){var b=this,c=[];a&&Object.values(a.byLayer.entities).forEach(function(d){c=c.concat(b.getLayerInteractedSeries(d))});return c};
h.getLayerInteractedSeries=function(a){if(!a)return[];switch(this.timeKey){case 2:return[];case 0:case 3:return a.selectedSeries;case 1:return a.hoveredSeries;case 4:return[];default:wb(this.timeKey,"unknown data source")}};
h.getLastInteractionYPos=function(a){if(!a)return null;switch(this.timeKey){case 0:var b,c;return(c=(b=a.focus)==null?void 0:b.y)!=null?c:null;case 2:var d,e;return(e=(d=a.click)==null?void 0:d.y)!=null?e:null;case 1:var f,g;return(g=(f=a.hover)==null?void 0:f.y)!=null?g:null;case 3:return null;case 4:var k,l;return(l=(k=a.multiselectAnchor)==null?void 0:k.y)!=null?l:null;default:wb(this.timeKey,"unknown data source")}};
h.displayName=function(a,b){var c=null;a.legendTemplate?b=new vl(a.legendTemplate):this.labelTemplate&&(b=new vl(this.labelTemplate));var d=zCa(a.dataSeriesMetadata);d&&b&&(c=b.format(d,this.getTranslationFunctions()));var e;return(e=c)!=null?e:a.name||a.seriesId||""};h.getRelevantLayers=function(a){var b=this;return Object.values(a.byLayer.entities).filter(function(c){return!(!c||b.layerIdsToIgnore.includes(c.layerId)||c.valueType!==1&&c.valueType!==2&&c.valueType!==3)})};
var ZYc=function(a,b,c,d,e){var f=new Map,g=new Map;c=m(c);for(var k=c.next(),l={};!k.done;l={labelFormatter$jscomp$1:void 0,layer$jscomp$6:void 0,yAxisState$jscomp$1:void 0},k=c.next())if(l.layer$jscomp$6=k.value,l.yAxisState$jscomp$1=e.get(l.layer$jscomp$6.yAxisId),l.yAxisState$jscomp$1){var r=void 0,w=void 0,x=void 0,C=void 0,H=void 0,J=void 0;k=!!((x=a.xAxisLookup.entities[Ek((H=(r=b)==null?void 0:r.chartGroupId)!=null?H:"",(J=(w=b)==null?void 0:w.chartId)!=null?J:"",l.layer$jscomp$6.xAxisId)])==
null?0:(C=x.relativeTo)==null?0:C.shift);if(l.layer$jscomp$6.valueType!==2&&(l.layer$jscomp$6.valueType===1||l.layer$jscomp$6.valueType===3))for(r=Object.values(l.layer$jscomp$6.bySeries.entities),w=void 0,l.labelFormatter$jscomp$1=a.getCachedLabelFormatter(r,(w=l.layer$jscomp$6.legendTemplate)!=null?w:a.labelTemplate),r=m(r),x=r.next(),w={};!x.done;w={series$jscomp$22:void 0,value$jscomp$8592:void 0,getName:void 0},x=r.next())if(w.series$jscomp$22=x.value,w.series$jscomp$22&&(!a.hideThresholds||
w.series$jscomp$22.drawnAs!==6)&&d.map(function(ua){return ua.seriesId}).includes(w.series$jscomp$22.seriesId)){w.value$jscomp$8592=w.series$jscomp$22.atTimeKey[a.timeKey];C=function(ua){return function(){return ua.series$jscomp$22.color}}(w);H=function(ua){return function(){return ua.series$jscomp$22.shape}}(w);w.getName=function(ua,ia){return function(){return a.displayName(ua.series$jscomp$22,ia.labelFormatter$jscomp$1)}}(w,l);J=function(ua,ia){return function(){var Ga;return a.formatNumericValue((Ga=
ua.value$jscomp$8592)==null?void 0:Ga.y,ia.layer$jscomp$6.unit,ia.layer$jscomp$6.yAxisId,ia.yAxisState$jscomp$1.min,ia.yAxisState$jscomp$1.max,ia.yAxisState$jscomp$1.unit,ia.yAxisState$jscomp$1.maximumFractionDigits,ia.layer$jscomp$6.pointConnectionMethod,(0,ua.getName)())}}(w,l);var O=void 0;x=((O=w.value$jscomp$8592)==null?void 0:O.min)!==void 0?function(ua,ia){return function(){var Ga;return a.formatNumericValue((Ga=ua.value$jscomp$8592)==null?void 0:Ga.min,ia.layer$jscomp$6.unit,ia.layer$jscomp$6.yAxisId,
ia.yAxisState$jscomp$1.min,ia.yAxisState$jscomp$1.max,ia.yAxisState$jscomp$1.unit,ia.yAxisState$jscomp$1.maximumFractionDigits,ia.layer$jscomp$6.pointConnectionMethod,(0,ua.getName)())}}(w,l):void 0;var R=void 0;O=((R=w.value$jscomp$8592)==null?void 0:R.max)!==void 0?function(ua,ia){return function(){var Ga;return a.formatNumericValue((Ga=ua.value$jscomp$8592)==null?void 0:Ga.max,ia.layer$jscomp$6.unit,ia.layer$jscomp$6.yAxisId,ia.yAxisState$jscomp$1.min,ia.yAxisState$jscomp$1.max,ia.yAxisState$jscomp$1.unit,
ia.yAxisState$jscomp$1.maximumFractionDigits,ia.layer$jscomp$6.pointConnectionMethod,(0,ua.getName)())}}(w,l):void 0;var V=function(ua){return function(){return ua.series$jscomp$22.dataSeriesMetadata}}(w),ca=void 0;R=w.value$jscomp$8592!==void 0&&w.value$jscomp$8592!==null?(ca=Lk(l.layer$jscomp$6.unit,l.yAxisState$jscomp$1.unit,w.value$jscomp$8592.y))!=null?ca:w.value$jscomp$8592.y:void 0;var na=ca=void 0;C=new SYc({getColor:C,getShape:H,getDisplayValue:J,getIsInteracted:function(){return!1},getName:w.getName,
getMetadata:V,drawnAs:w.series$jscomp$22.drawnAs,lineDash:w.series$jscomp$22.lineDash,rawValue:(na=(ca=w.value$jscomp$8592)==null?void 0:ca.y)!=null?na:void 0,scaledValue:R,stackingIndex:w.series$jscomp$22.stackingIndex,getMinDisplayValue:x,getMaxDisplayValue:O});k?g.set(w.series$jscomp$22.seriesId,C):f.set(w.series$jscomp$22.seriesId,C)}}b=m(f);e=b.next();for(d={};!e.done;d={shiftedStream:void 0},e=b.next())c=m(e.value),e=c.next().value,c=c.next().value,d.shiftedStream=g.get(e),d.shiftedStream&&
(c.getTimeshiftDisplayValue=function(ua){return function(){return ua.shiftedStream.displayValue}}(d),g.delete(e));return Array.from(f.values()).concat(Array.from(g.values())).sort(uDa)};h=nH.prototype;
h.buildStreams=function(a,b,c,d,e,f){var g=this,k=new Map,l=new Map;b=m(b);for(var r=b.next(),w={};!r.done;w={layer$jscomp$7:void 0,yAxisState$jscomp$2:void 0,layerColorScale:void 0,labelFormatter$jscomp$2:void 0,labelFormatter$jscomp$3:void 0},r=b.next())if(w.layer$jscomp$7=r.value,w.yAxisState$jscomp$2=e.get(w.layer$jscomp$7.yAxisId),w.yAxisState$jscomp$2){var x=void 0,C=void 0,H=void 0,J=void 0,O=void 0,R=void 0;r=!!((H=this.xAxisLookup.entities[Ek((O=(x=a)==null?void 0:x.chartGroupId)!=null?O:
"",(R=(C=a)==null?void 0:C.chartId)!=null?R:"",w.layer$jscomp$7.xAxisId)])==null?0:(J=H.relativeTo)==null?0:J.shift);if(w.layer$jscomp$7.valueType===2)for(x=void 0,w.layerColorScale=(x=f)==null?void 0:x.byLayer.entities[w.layer$jscomp$7.layerId],x=Object.values(w.layer$jscomp$7.bySeries.entities),C=void 0,w.labelFormatter$jscomp$2=this.getCachedLabelFormatter(x,(C=w.layer$jscomp$7.legendTemplate)!=null?C:this.labelTemplate),x=m(x),H=x.next(),C={};!H.done;C={series$jscomp$23:void 0,getDisplayValueAndBucketCount:void 0},
H=x.next())(C.series$jscomp$23=H.value,!C.series$jscomp$23||this.hideThresholds&&C.series$jscomp$23.drawnAs===6||(H=C.series$jscomp$23.atTimeKey[this.timeKey],this.hideUndefinedValues&&!H))||(C.getDisplayValueAndBucketCount=function(sa,xa){return function(){return g.formatDistributionValue(sa.series$jscomp$23,xa.layer$jscomp$7.unit,xa.layer$jscomp$7.yAxisId,xa.yAxisState$jscomp$2.min,xa.yAxisState$jscomp$2.max,xa.yAxisState$jscomp$2.unit,xa.yAxisState$jscomp$2.maximumFractionDigits)}}(C,w),H=void 0,
J=new TYc({getColor:function(sa,xa){return function(){var Qa=(0,sa.getDisplayValueAndBucketCount)().bucketCount;Qa=xa.layerColorScale?g.distributionColorStrategy.getColor(Qa!=null?Qa:xa.layerColorScale.min,xa.layerColorScale):"var(--ac-sys-color-chart-on-surface, #000)";return typeof Qa!=="string"?"var(--ac-sys-color-chart-on-surface, #000)":Qa}}(C,w),getShape:function(){},getDisplayValue:function(sa){return function(){return(0,sa.getDisplayValueAndBucketCount)().displayValue}}(C),getIsInteracted:function(sa){return function(){return c.map(function(xa){return xa.seriesId}).includes(sa.series$jscomp$23.seriesId)}}(C),
getName:function(sa,xa){return function(){return g.displayName(sa.series$jscomp$23,xa.labelFormatter$jscomp$2)}}(C,w),getMetadata:function(sa){return function(){return sa.series$jscomp$23.dataSeriesMetadata}}(C),drawnAs:C.series$jscomp$23.drawnAs,lineDash:C.series$jscomp$23.lineDash,rawValue:(H=C.series$jscomp$23.atTimeKey[this.timeKey])!=null?H:void 0}),r?l.set(C.series$jscomp$23.seriesId,J):k.set(C.series$jscomp$23.seriesId,J));else if(w.layer$jscomp$7.valueType===1||w.layer$jscomp$7.valueType===
3)if(x=d.get(w.layer$jscomp$7.yAxisId))for(C=Object.values(w.layer$jscomp$7.bySeries.entities),H=void 0,w.labelFormatter$jscomp$3=this.getCachedLabelFormatter(C,(H=w.layer$jscomp$7.legendTemplate)!=null?H:this.labelTemplate),C=m(C),J=C.next(),H={};!J.done;H={series$jscomp$24:void 0,value$jscomp$8594:void 0,getName$jscomp$2:void 0},J=C.next())if(H.series$jscomp$24=J.value,H.series$jscomp$24&&(!this.hideThresholds||H.series$jscomp$24.drawnAs!==6)&&(H.value$jscomp$8594=H.series$jscomp$24.atTimeKey[this.timeKey],
!this.hideUndefinedValues||H.value$jscomp$8594)){O=function(sa){return function(){return sa.series$jscomp$24.color}}(H);R=function(sa){return function(){return sa.series$jscomp$24.shape}}(H);H.getName$jscomp$2=function(sa,xa){return function(){return g.displayName(sa.series$jscomp$24,xa.labelFormatter$jscomp$3)}}(H,w);var V=function(sa,xa){return function(){var Qa;return g.formatNumericValue((Qa=sa.value$jscomp$8594)==null?void 0:Qa.y,xa.layer$jscomp$7.unit,xa.layer$jscomp$7.yAxisId,xa.yAxisState$jscomp$2.min,
xa.yAxisState$jscomp$2.max,xa.yAxisState$jscomp$2.unit,xa.yAxisState$jscomp$2.maximumFractionDigits,xa.layer$jscomp$7.pointConnectionMethod,(0,sa.getName$jscomp$2)())}}(H,w),ca=void 0;J=((ca=H.value$jscomp$8594)==null?void 0:ca.min)!==void 0?function(sa,xa){return function(){var Qa;return g.formatNumericValue((Qa=sa.value$jscomp$8594)==null?void 0:Qa.min,xa.layer$jscomp$7.unit,xa.layer$jscomp$7.yAxisId,xa.yAxisState$jscomp$2.min,xa.yAxisState$jscomp$2.max,xa.yAxisState$jscomp$2.unit,xa.yAxisState$jscomp$2.maximumFractionDigits,
xa.layer$jscomp$7.pointConnectionMethod,(0,sa.getName$jscomp$2)())}}(H,w):void 0;var na=void 0;ca=((na=H.value$jscomp$8594)==null?void 0:na.max)!==void 0?function(sa,xa){return function(){var Qa;return g.formatNumericValue((Qa=sa.value$jscomp$8594)==null?void 0:Qa.max,xa.layer$jscomp$7.unit,xa.layer$jscomp$7.yAxisId,xa.yAxisState$jscomp$2.min,xa.yAxisState$jscomp$2.max,xa.yAxisState$jscomp$2.unit,xa.yAxisState$jscomp$2.maximumFractionDigits,xa.layer$jscomp$7.pointConnectionMethod,(0,sa.getName$jscomp$2)())}}(H,
w):void 0;var ua=function(sa){return function(){return c.map(function(xa){return xa.seriesId}).includes(sa.series$jscomp$24.seriesId)}}(H),ia=function(sa){return function(){return sa.series$jscomp$24.dataSeriesMetadata}}(H),Ga=void 0;na=H.value$jscomp$8594!==void 0&&H.value$jscomp$8594!==null?(Ga=Lk(w.layer$jscomp$7.unit,w.yAxisState$jscomp$2.unit,H.value$jscomp$8594.y))!=null?Ga:H.value$jscomp$8594.y:void 0;var ha=Ga=void 0;O=new SYc({getColor:O,getShape:R,getDisplayValue:V,getIsInteracted:ua,getName:H.getName$jscomp$2,
getMetadata:ia,drawnAs:H.series$jscomp$24.drawnAs,lineDash:H.series$jscomp$24.lineDash,rawValue:(ha=(Ga=H.value$jscomp$8594)==null?void 0:Ga.y)!=null?ha:void 0,scaledValue:na,pxValue:H.value$jscomp$8594!==void 0&&H.value$jscomp$8594!==null?x(H.value$jscomp$8594.y):void 0,stackingIndex:H.series$jscomp$24.stackingIndex,getMinDisplayValue:J,getMaxDisplayValue:ca});r?l.set(H.series$jscomp$24.seriesId,O):k.set(H.series$jscomp$24.seriesId,O)}}a=m(k);e=a.next();for(d={};!e.done;d={shiftedStream$jscomp$1:void 0},
e=a.next())f=m(e.value),e=f.next().value,f=f.next().value,d.shiftedStream$jscomp$1=l.get(e),d.shiftedStream$jscomp$1&&(f.getTimeshiftDisplayValue=function(sa){return function(){return sa.shiftedStream$jscomp$1.displayValue}}(d),l.delete(e));return Array.from(k.values()).concat(Array.from(l.values()))};
h.getCachedLabelFormatter=function(a,b){a=ACa(a);var c=BCa(a,b,this.isQuery);b=c.formatter;a=c.labelTables;c=c.seriesMetadata;a&&(this.labelTablesCache=a);c&&(this.seriesMetadataForLabelTablesCache=c);return b};
h.getTranslationFunctions=function(){var a=this,b={};this.withLatest(function(c){var d,e=(d=c.state)==null?void 0:d.map;if(e!==void 0){var f,g;b=Object.assign({},(g=(f=a.customTranslationFunctions)==null?void 0:f.getBoundGlobalFunctions())!=null?g:{},{credentialNameOrId:function(k){var l,r,w;k=(w=k==null?void 0:(l=k.resource)==null?void 0:(r=l.labels)==null?void 0:r.credential_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k},instanceNameOrId:function(k){var l,r,w;k=(w=k==null?void 0:(l=k.resource)==
null?void 0:(r=l.labels)==null?void 0:r.instance_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k}})}});return b};
h.formatDistributionValue=function(a,b,c,d,e,f,g){var k=this,l=a.atTimeKey[this.timeKey];if(l&&l.bucketIndex!==void 0){var r=l.bucketIndex;a=l.y.bucketCounts[r]||0;var w={yAxisPosition:c,isDistribution:!0};w=this.formatDistribution?this.valueFormatter?this.valueFormatter(a,f,{maximumFractionDigits:g},w):a.toString():a.toString();var x=(a*100/l.y.count).toFixed(),C=m(tl(l.y,r)),H=C.next().value;C=C.next().value;r===l.y.bucketCounts.length&&(C=null);H===-Infinity&&(H=null);r=m([H,C].map(function(J){if(J===
null||!isFinite(J))return null;b==="{not_a_unit}"&&(b="1");J=Lk(b,f,J)||0;var O;return((O=k.valueFormatter)!=null?O:Nk)(J,f||b,{maximumFractionDigits:g},d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0)}));l=r.next().value;r=r.next().value;return{displayValue:this.getBucketRangeMessage(w,x,l,r),bucketCount:a}}return{displayValue:"-",bucketCount:null}};
h.formatNumericValue=function(a,b,c,d,e,f,g,k,l){var r,w=(r=this.valueFormatter)!=null?r:Nk;c=d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0;if(a!==void 0&&a!==null){b==="{not_a_unit}"&&(b="1");var x;k=(x=Lk(b,f,a,this.ignoreFloatImprecision))!=null?x:a;if(l){var C;c=Object.assign({},(C=c)!=null?C:{},{displayName:l})}return w(k,f||b,{maximumFractionDigits:g},c)}switch(k){case "gap_detection":return"-";case "zero_fill":return w(0,f,void 0,c);default:return"-"}};
h.getBucketRangeMessage=function(a,b,c,d){return c===null?(new Vl("{COUNT} ({PERCENT}%) below {UPPER}")).format({COUNT:a,PERCENT:b,UPPER:d}):d===null?(new Vl("{COUNT} ({PERCENT}%) above {LOWER}")).format({COUNT:a,PERCENT:b,LOWER:c}):(new Vl("{COUNT} ({PERCENT}%) between {LOWER} and {UPPER}")).format({COUNT:a,PERCENT:b,LOWER:c,UPPER:d})};
h.getCenterStreamIndex=function(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];if(e.isInteracted){c=d;break}b!==null&&e.valueType===1&&e.pxValue!==void 0&&e.pxValue>b&&(c=d)}return c};h.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({mergeKey:d,context:b,changes:a,scope:e,componentHandlerUsingContext:c})};h.ngOnDestroy=function(){XG.prototype.ngOnDestroy.call(this);this.updateTimeout&&clearTimeout(this.updateTimeout)};
da.Object.defineProperties(nH.prototype,{onlyShowSelectedSeries:{configurable:!0,enumerable:!0,set:function(a){(this.onlyShowSelectedSeriesInternal=a)||this.update(!0)}},dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:wb(a,"unknown data source")}this.update()}},visibleRows:{configurable:!0,
enumerable:!0,set:function(a){this.visibleRowsInternal=a;this.update()},get:function(){return this.visibleRowsInternal}},compact:{configurable:!0,enumerable:!0,get:function(){return this.layout==="compact"}}});nH.\u0275fac=function(a){return new (a||nH)};
nH.\u0275cmp=D({type:nH,selectors:[["ac-series-snapshot"]],inputs:{onlyShowSelectedSeries:"onlyShowSelectedSeries",dataSource:"dataSource",hideThresholds:"hideThresholds",hideSelectedSection:"hideSelectedSection",visibleRows:"visibleRows",labelTemplate:"labelTemplate",customTranslationFunctions:"customTranslationFunctions",layout:"layout",seriesRowTemplate:"seriesRowTemplate",seriesValueTemplate:"seriesValueTemplate",streamActions:"streamActions",condensedShapes:"condensedShapes",hideUndefinedValues:"hideUndefinedValues",
layerIdsToIgnore:"layerIdsToIgnore",showHovercardSeriesActionText:"showHovercardSeriesActionText",showLineDash:"showLineDash",distributionColorStrategy:"distributionColorStrategy",formatDistribution:"formatDistribution",chartQuickActionsEnabled:"chartQuickActionsEnabled"},features:[Ef,jx],decls:2,vars:3,consts:[[1,"series-snapshot"],[1,"list"],["id","above-count"],[1,"subhead","subhead-spacing"],[1,"stream-actions"],[1,"key","bright"],[3,"color","drawnAs","shape","condensed","lineDash"],[1,"name-wrapper"],
[1,"name"],[1,"value","current-value","strong"],[1,"value","current-value"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"streamMetadata","streamActions"],[1,"series-snapshot-fade","subhead-spacing"],["id","below-count"],[1,"name",3,"ngStyle"],[1,"value","current-value",3,"strong"],["colspan","4",1,"series-snapshot-fade"]],template:function(a,b){a&1&&(F(0,tDa,5,4,"div",0),T(1,"async"));if(a&2){var c;G(((c=U(1,1,b.streamsObservable))==null?0:c.length)?0:-1)}},dependencies:[cH,lH,Rx,Sx,Tx],styles:[".series-snapshot[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface,#202124);text-align:left;min-height:16px;font-size:12px}table[_ngcontent-%COMP%]{table-layout:auto;width:100%}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:12px;font-weight:400;line-height:20px;max-width:300px}table[_ngcontent-%COMP%]   tbody.list.compact[_ngcontent-%COMP%]{font-size:11px;line-height:16px;letter-spacing:.25px}table[_ngcontent-%COMP%]   tbody.list.compact[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{opacity:.8;padding:0}table[_ngcontent-%COMP%]   tbody.list.compact[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.series-snapshot-fade[_ngcontent-%COMP%]{opacity:.5}table[_ngcontent-%COMP%]   tbody.list.compact[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{position:relative;top:2px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr.dummy-row[_ngcontent-%COMP%]{position:absolute;visibility:hidden}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{height:12px;opacity:.66;overflow:hidden;padding:1px 0;text-overflow:ellipsis;top:0;vertical-align:top;padding-right:20px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:has(+.stream-actions), table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{padding-right:0}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.strong[_ngcontent-%COMP%]{font-weight:500;opacity:1}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.subhead-spacing[_ngcontent-%COMP%]{padding:8px 0 1px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.subhead[_ngcontent-%COMP%]{font-size:10px;line-height:16px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]{opacity:.9;padding-right:4px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key.bright[_ngcontent-%COMP%]{opacity:1}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key.dim[_ngcontent-%COMP%]{opacity:.3}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{position:relative;top:4px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.name-wrapper[_ngcontent-%COMP%]{width:100%;max-width:250px;overflow-x:hidden;overflow-y:hidden;text-align:left}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.name-wrapper[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all;max-height:60px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   td.value2[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.value[_ngcontent-%COMP%]{text-align:right;white-space:nowrap}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}table[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]{width:24px}\n/*# sourceMappingURL=ac_series_snapshot.css.map */"],
changeDetection:0});var $Yc=["right","left"],oH=function(a,b,c,d,e){XG.call(this,a);var f=this;this.cdRef=b;this.elementRef=c;this.queueService=d;this.formatterService=e;this.hideThresholds=!1;this.valueName="Value";this.initialized=this.showAllColumnsByDefault=!1;this.streamsInternal=null;this.streamsSubject=new Mj(this.streamsInternal);this.streamsObservable=this.streamsSubject.pipe(xf(null));this.anyStreamInteractedObservable=this.streamsObservable.pipe(A(function(g){a:{if(g){g=m(g);for(var k=g.next();!k.done;k=g.next())if(k=
k.value,k.isSelected||k.isInteracted){g=!0;break a}}g=!1}return g}));this.dataSourceInternal="most_recent";this.customTemplate=this.labelTablesCacheInvalid=this.multipleLayers=this.isQuery=!1;this.statsModeSummaryColumnLabel=this.timeshiftName="";this.sortFunc=vDa();this.xAxisLookup={ids:[],entities:{}};this.legendHovered=!1;this.seriesMetadataForLabelTablesCache=this.labelTablesCache=null;this.layerIdsToIgnore=[];this.lastSeriesSelectedInLegend=null;this.isLoadingSubject=new Mj(!1);this.setup({});
this.store.pipe(ak(tG),zf(this.destroyed)).subscribe(function(g){f.xAxisLookup=g});this.scopeObservable.pipe(yf(function(g){return f.store.pipe(ak(sza(g)))}),zf(this.destroyed)).subscribe(function(g){f.labelStats=g;f.labelTablesCacheInvalid=!0});this.scopeObservable.pipe(yf(function(g){return f.formatterService.getValueStrategy(g)}),zf(this.destroyed)).subscribe(function(g){f.valueStrategy=g;f.update()})};Y(oH,XG);h=oH.prototype;h.bringLastSelectedIntoView=function(){};
h.ngOnInit=function(){var a=this;this.initialized=!0;var b=$Yc.map(function(c){return a.scopeObservable.pipe(yf(function(d){return a.selectorService.getSelection(yG,Object.assign({},d,{yAxisId:c}))}),A(function(d){return d!=null?d:null}),xf(null),tf(),A(gk),ue(function(d){return rl(d)}))});te.apply(null,q(b)).pipe(zf(this.destroyed)).subscribe(function(){a.update()})};
h.ngOnChanges=function(a){XG.prototype.ngOnChanges.call(this,a);"legendTemplate"in a&&this.update();"filterByColumnValue"in a&&this.update();"layerIdsToIgnore"in a&&this.update()};
h.update=function(){var a=this,b=$Yc.map(function(c){return a.scopeObservable.pipe(yf(function(d){return a.selectorService.getSelection(yG,Object.assign({},d,{yAxisId:c}))}))});ie(b).pipe(lf(1)).subscribe(function(c){for(var d=new Map,e=0;e<$Yc.length;e++)d.set($Yc[e],c[e]);a.withLatest(function(f){var g=f.scope;f=f.state;if(g&&f&&f.timeSeries&&Object.keys(f.timeSeries.byLayer.entities).length!==0){var k=g.layerId,l=f.seriesSelection,r=f.timeSeries;f=f.resize;g=aZc(a,l);l=bZc(l);k=a.getRelevantLayers(r,
k);a.multipleLayers!==k.length>1&&(a.multipleLayers=!a.multipleLayers,a.labelTablesCacheInvalid=!0);r=new Map;for(var w=m($Yc),x=w.next();!x.done;x=w.next()){x=x.value;var C=d.get(x);if(C&&f){C=sl(C,f.margins.top,f.height-f.margins.bottom,C.unit);var H=void 0;r.set(x,(H=C)!=null?H:null)}else r.set(x,null)}f=a.buildStreams(k,g,l,d,r);a.streams=f.slice().sort(a.sortFunc);a.initialized&&a.cdRef.detectChanges()}})})};h.onScopeChange=function(){this.update()};
h.onLastInteractionChange=function(a,b){cZc(this,b)};h.onMapChange=function(){this.update()};h.onSeriesSelectionChange=function(a,b){il(a,b.scope.layerId)&&this.update()};h.onChartSpecChange=function(a){var b,c;a=(b=a.currentValue)==null?void 0:(c=b.dataSets)==null?void 0:c[0];this.isQuery=(a==null?void 0:a.timeSeriesQuery)!==void 0||(a==null?void 0:a.prometheusQuery)!==void 0;this.labelTablesCacheInvalid=!0;this.update()};h.onTimeSeriesChange=function(){this.update()};
h.onLoadingChange=function(a){var b;a=(b=a.currentValue)==null?void 0:b.loading;this.isLoadingSubject.next(!(!a||!(Array.isArray(a)&&(a==null?0:a.length)||!Array.isArray(a)&&a)))};h.onXAxisPinChange=function(a,b){cZc(this,b);this.update()};
var cZc=function(a,b){var c,d,e,f,g=(f=(d=((c=b.state)==null?0:c.lastInteraction)?pl(b.scope,b.state.lastInteraction):null)==null?void 0:(e=d.hover)==null?void 0:e.x)!=null?f:null,k;b=(k=b.state)==null?void 0:k.xAxisPin;a.dataSource=b&&b.xPos!==null&&b.locked?"time_pin":g!==null?"hover":"most_recent"},aZc=function(a,b){var c=[];b&&Object.values(b.byLayer.entities).forEach(function(d){c=c.concat(dZc(a,d))});return c},dZc=function(a,b){if(!b)return[];if(a.legendHovered)return b.hoveredSeries.map(function(c){return c.seriesId});
switch(a.dataSource){case "time_pin":case "click":case "most_recent":case "multiselect_anchor":return[];case "hover":return b.hoveredSeries.map(function(c){return c.seriesId});default:wb(a.dataSource,"unknown data source")}},bZc=function(a){var b=[];a&&Object.values(a.byLayer.entities).forEach(function(c){b=b.concat((c==null?void 0:c.selectedSeries.map(function(d){return d.seriesId}))||[])});return b};
oH.prototype.getRelevantLayers=function(a,b){var c=this;return Object.values(a.byLayer.entities).filter(function(d){return!(!d||c.layerIdsToIgnore.includes(d.layerId)||d.valueType!==1&&d.valueType!==3||b&&d.layerId!==b)}).filter(function(d){return!Object.values(d.bySeries.entities).every(function(e){return!e||eZc(c,e)})})};
oH.prototype.getTranslationFunctions=function(){var a,b,c=Object.assign({},(b=(a=this.customTranslationFunctions)==null?void 0:a.getBoundGlobalFunctions())!=null?b:{},{credentialNameOrId:function(d){var e,f,g;return(g=d==null?void 0:(e=d.resource)==null?void 0:(f=e.labels)==null?void 0:f.credential_id)!=null?g:""},instanceNameOrId:function(d){var e,f,g;return(g=d==null?void 0:(e=d.resource)==null?void 0:(f=e.labels)==null?void 0:f.instance_id)!=null?g:""},getName:function(d){var e;return(e=d.name)!=
null?e:""},metricDisplayName:function(d){var e;return d.metricDisplayName?d.metricDisplayName():(e=d.shortMetric)!=null?e:""}});this.withLatest(function(d){var e=d.state;if(e==null?0:e.map)c.instanceNameOrId=function(f){var g,k,l;f=(l=f==null?void 0:(g=f.resource)==null?void 0:(k=g.labels)==null?void 0:k.instance_id)!=null?l:"";var r;return(r=e.map.instance[f])!=null?r:f}});return c};
oH.prototype.buildStreams=function(a,b,c,d,e){var f=this,g=new Map,k=new Map;this.customTemplate=!!this.legendTemplate;var l="",r="";a=m(a);for(var w=a.next(),x={};!w.done;x={layerUnit$jscomp$2:void 0,layer$jscomp$10:void 0,yAxisState$jscomp$4:void 0},w=a.next())if(x.layer$jscomp$10=w.value,x.layer$jscomp$10.valueType!==2&&(x.layerUnit$jscomp$2=x.layer$jscomp$10.unit,x.layerUnit$jscomp$2==="{not_a_unit}"&&(x.layerUnit$jscomp$2="1"),x.yAxisState$jscomp$4=d.get(x.layer$jscomp$10.yAxisId),x.yAxisState$jscomp$4)){w=
e.get(x.layer$jscomp$10.yAxisId);var C=void 0,H=void 0,J=void 0,O=void 0,R=void 0,V=void 0,ca=(J=this.xAxisLookup.entities[Ek((R=(C=this.scope)==null?void 0:C.chartGroupId)!=null?R:"",(V=(H=this.scope)==null?void 0:H.chartId)!=null?V:"",x.layer$jscomp$10.xAxisId)])==null?void 0:(O=J.relativeTo)==null?void 0:O.shift;C=!!ca;ca=ca?CBa(ca):"";if(l==="")l=ca;else if(ca!==""&&l!==ca)throw Error("Fc");x.layer$jscomp$10.legendTemplate&&(this.customTemplate=!0);H=Object.values(x.layer$jscomp$10.bySeries.entities);
ca=this.legendTemplate&&new vl(this.legendTemplate)||x.layer$jscomp$10.legendTemplate&&new vl(x.layer$jscomp$10.legendTemplate)||fZc(this,H);H=m(H);O=H.next();for(J={};!O.done;J={series$jscomp$27:void 0,seriesLegendFormatter:void 0},O=H.next())if(J.series$jscomp$27=O.value,J.series$jscomp$27&&!eZc(this,J.series$jscomp$27)){J.series$jscomp$27.statsModeSummaryValue===null||J.series$jscomp$27.statsModeSummaryValue===void 0||r||(r="All Values");J.seriesLegendFormatter=J.series$jscomp$27.legendTemplate&&
new vl(J.series$jscomp$27.legendTemplate)||ca;var na=b.includes(J.series$jscomp$27.seriesId),ua=c.includes(J.series$jscomp$27.seriesId),ia=J.series$jscomp$27.atTimeKey[this.timeKey];O=ia!==void 0&&ia!==null&&typeof ia.y==="number"?Lk(x.layerUnit$jscomp$2,x.yAxisState$jscomp$4.unit,ia.y):null;V=R=void 0;na=new VYc({seriesId:J.series$jscomp$27.seriesId,color:J.series$jscomp$27.color,shape:J.series$jscomp$27.shape,drawnAs:J.series$jscomp$27.drawnAs,dataSeriesMetadata:J.series$jscomp$27.dataSeriesMetadata,
getDisplayValue:x.layer$jscomp$10.valueType===3?function(){return""}:function(Ga,ha){return function(){return f.formatNumericValue(Ga.series$jscomp$27,ha.layerUnit$jscomp$2,ha.layer$jscomp$10.yAxisId,ha.yAxisState$jscomp$4.min,ha.yAxisState$jscomp$4.max,ha.yAxisState$jscomp$4.unit,ha.yAxisState$jscomp$4.maximumFractionDigits,ha.layer$jscomp$10.pointConnectionMethod)}}(J,x),getDisplayValueAndSubstrings:x.layer$jscomp$10.valueType===3?void 0:function(Ga,ha){return function(){return gZc(f,Ga.series$jscomp$27,
ha.layerUnit$jscomp$2,ha.layer$jscomp$10.yAxisId,ha.yAxisState$jscomp$4.min,ha.yAxisState$jscomp$4.max,ha.yAxisState$jscomp$4.unit,ha.yAxisState$jscomp$4.maximumFractionDigits,ha.layer$jscomp$10.pointConnectionMethod)}}(J,x),getStatsModeSummaryValue:function(Ga,ha){return function(){a:{var sa=Ga.series$jscomp$27.statsModeSummaryValue,xa=ha.layerUnit$jscomp$2;var Qa=ha.layer$jscomp$10.yAxisId;var bb=ha.yAxisState$jscomp$4.min,ub=ha.yAxisState$jscomp$4.max,Wb=ha.yAxisState$jscomp$4.unit,lc=ha.yAxisState$jscomp$4.maximumFractionDigits;
if(sa!==void 0&&sa!==null&&(xa==="{not_a_unit}"&&(xa="1"),sa=Lk(xa,Wb,sa),sa!==null)){lc={maximumFractionDigits:lc};bb=bb!==null&&ub!==null&&Wb!==null?{domain:{min:bb,max:ub,unit:Wb},yAxisPosition:Qa}:void 0;var fc,pc,rb;Qa=((rb=(pc=f.valueFormatter)!=null?pc:(fc=f.valueStrategy)==null?void 0:fc.format)!=null?rb:Nk)(sa,Wb,lc,bb);break a}Qa="-"}return Qa}}(J,x),isInteracted:na,isSelected:ua,hideValue:x.layer$jscomp$10.valueType===3,getColumnIds:function(){return[]},getLabels:function(){return[]},getName:function(Ga){return function(){var ha=
zCa(Ga.series$jscomp$27.dataSeriesMetadata),sa;return ha&&((sa=Ga.seriesLegendFormatter)==null?void 0:sa.format(ha,f.getTranslationFunctions()))||Ga.series$jscomp$27.name}}(J),rawValue:(V=(R=ia)==null?void 0:R.y)!=null?V:void 0,unit:x.layerUnit$jscomp$2,pxValue:typeof O==="number"&&w?w(O):void 0,setHovered:function(Ga,ha){return function(sa){sa=sa?[{seriesId:Ga.series$jscomp$27.seriesId}]:[];var xa,Qa;f.store.dispatch(bH({chartId:(Qa=(xa=f.scope)==null?void 0:xa.chartId)!=null?Qa:"",layerId:ha.layer$jscomp$10.layerId,
series:sa}))}}(J,x),setSelected:function(Ga,ha){return function(sa){if(sa){f.lastSeriesSelectedInLegend=Ga.series$jscomp$27.seriesId;var xa,Qa;f.store.dispatch(zYc({chartId:(Qa=(xa=f.scope)==null?void 0:xa.chartId)!=null?Qa:"",layerId:ha.layer$jscomp$10.layerId,series:{seriesId:Ga.series$jscomp$27.seriesId}}))}else{var bb,ub;f.store.dispatch(AYc({chartId:(ub=(bb=f.scope)==null?void 0:bb.chartId)!=null?ub:"",layerId:ha.layer$jscomp$10.layerId,series:{seriesId:Ga.series$jscomp$27.seriesId}}))}}}(J,
x)});C?k.set(J.series$jscomp$27.seriesId,na):g.set(J.series$jscomp$27.seriesId,na)}}this.timeshiftName=l;this.statsModeSummaryColumnLabel=r;b=m(g);for(c=b.next();!c.done;c=b.next())if(d=m(c.value),c=d.next().value,d=d.next().value,e=k.get(c))d.timeshiftValue=e.displayValue,k.delete(c);return Array.from(g.values()).concat(Array.from(k.values()))};
var eZc=function(a,b){if(a.hideThresholds&&b.drawnAs===6)return!0;if(!a.filterByColumnValue||!a.filterByColumnValue.column)return!1;var c;return((c=b.dataSeriesMetadata)==null?0:c.metadata)?b.dataSeriesMetadata.metadata[a.filterByColumnValue.column]!==a.filterByColumnValue.value:!0};oH.prototype.formatNumericValue=function(a,b,c,d,e,f,g,k){return gZc(this,a,b,c,d,e,f,g,k).displayValue};
var gZc=function(a,b,c,d,e,f,g,k,l){b=b.atTimeKey[a.timeKey];if(b!==void 0&&b!==null){c==="{not_a_unit}"&&(c="1");c=Lk(c,g,b.y)||0;l={maximumFractionDigits:k,rawValue:b.y};d=e!==null&&f!==null&&g!==null?{domain:{min:e,max:f,unit:g},yAxisPosition:d}:void 0;if(a.valueFormatter)return{displayValue:a.valueFormatter(c,g,l),displayValueSubstrings:void 0};if(a.valueStrategy)return a.valueStrategy.formatSubstrings?(a=a.valueStrategy.formatSubstrings(c,g,l,d),{displayValue:mAa(a)+a.unitSuffix,displayValueSubstrings:a}):
{displayValue:a.valueStrategy.format(c,g,l,d),displayValueSubstrings:void 0};a=lAa(c,g,{maximumFractionDigits:k,rawValue:b.y});return{displayValue:mAa(a)+a.unitSuffix,displayValueSubstrings:a}}switch(l){case "gap_detection":return{displayValue:"-",displayValueSubstrings:void 0};case "zero_fill":return{displayValue:"0",displayValueSubstrings:void 0};default:return{displayValue:"",displayValueSubstrings:void 0}}},hZc=function(a,b,c){c=c===void 0?!1:c;if(!a.labelTablesCacheInvalid&&a.labelTablesCache&&
a.seriesMetadataForLabelTablesCache&&a.seriesMetadataForLabelTablesCache.length===b.length){for(var d=!0,e=0;e<a.seriesMetadataForLabelTablesCache.length;e++)if(a.seriesMetadataForLabelTablesCache[e]!==b[e]){d=!1;break}if(d)return a.labelTablesCache}c=a.customTemplate?tCa():a.isQuery?vCa(b):wCa(b,a.multipleLayers&&c);if(a.showAllColumnsByDefault&&c)for(d=m(c),e=d.next();!e.done;e=d.next()){e=m(e.value);for(var f=e.next();!f.done;f=e.next())f=f.value,a.filterByColumnValue&&a.filterByColumnValue.column===
f.title||(f.isDefault=!0)}if(c&&a.multipleLayers&&a.labelStats){d=a.labelStats;e="";d.metric>1&&(e=d.metric>d.shortMetric?e+'${metric.type}" "':e+'${metricDisplayName()}" "');d.aligner>1&&(e+='${requestParams.aggregation\\.perSeriesAligner}" "');d.primaryReducer>1&&(e+='${requestParams.aggregation\\.crossSeriesReducer}" "');d.secondaryReducer>1&&(e+='${requestParams.secondaryAggregation\\.crossSeriesReducer}" "');if(d.filter){f=m(Object.keys(d.filter));for(var g=f.next();!g.done;g=f.next()){g=d.filter[g.value];
for(var k=g.count,l=m(Object.keys(g.entries)),r=l.next();!r.done;r=l.next()){r=r.value;var w=g.entries[r];if(w.count!==k||w.set.size!==1)e+="${requestParams.filterTokens."+r+".key}${requestParams.filterTokens."+r+".op}${requestParams.filterTokens."+r+'.value}" "'}}}if(d=e?{isDefault:!0,title:"Metric",template:e,tokenizer:new vl(e)}:null)for(e=m(c),f=e.next();!f.done;f=e.next())f.value.unshift(d)}a.labelTablesCache=c;a.labelTablesCacheInvalid=!1;a.seriesMetadataForLabelTablesCache=b;return c},fZc=
function(a,b){var c=b.map(function(g){var k;return(k=g.dataSeriesMetadata)!=null?k:null});b=hZc(a,c!=null?c:[],b.length>1);if(!b)return null;c=yCa(c);a="";b=m(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value){d=m(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.isDefault&&c.get(e.title)!==!1){var f=void 0;a+=((f=e.template)!=null?f:"")+'" "'}}return a?new vl(a):null};
oH.prototype.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};oH.prototype.hover=function(a){this.legendHovered=!0;var b;(b=a.setHovered)==null||b.call(a,!0)};var BDa=function(a,b){a.legendHovered=!1;var c;(c=b.setHovered)==null||c.call(b,!1)};
da.Object.defineProperties(oH.prototype,{streams:{configurable:!0,enumerable:!0,get:function(){return this.streamsInternal},set:function(a){this.streamsInternal=a;this.streamsSubject.next(a)}},dataSource:{configurable:!0,enumerable:!0,set:function(a){a!==this.dataSourceInternal&&(this.dataSourceInternal=a,this.update())},get:function(){return this.dataSourceInternal}},timeKey:{configurable:!0,enumerable:!0,get:function(){switch(this.dataSource){case "time_pin":return 0;case "click":return 2;case "hover":return 1;
case "most_recent":return 3;case "multiselect_anchor":return 4;default:wb(this.dataSource,"unknown data source")}}}});oH.\u0275fac=function(a){return new (a||oH)(Ve(gG),Ve(Cx),Ve(Hd),Ve(UG),Ve(fG))};
oH.\u0275dir=af({type:oH,inputs:{hideThresholds:"hideThresholds",valueName:"valueName",valueFormatter:"valueFormatter",filterByColumnValue:"filterByColumnValue",showAllColumnsByDefault:"showAllColumnsByDefault",customTranslationFunctions:"customTranslationFunctions",legendTemplate:"legendTemplate",layerIdsToIgnore:"layerIdsToIgnore"},features:[Ef,jx]});var iZc=["condensedList"],DDa=function(a){return{scrollable:a}},EDa=function(){return[]},jZc=0,pH=function(){this.el=p(Hd)};pH.prototype.focus=function(){this.el.nativeElement.focus()};pH.\u0275fac=function(a){return new (a||pH)};pH.\u0275dir=af({type:pH,selectors:[["","focusableLegendItem",""]]});
var qH=function(a,b,c,d,e){oH.call(this,a,b,c,d,e);var f=this;this.cdRef=b;this.elementRef=c;this.ve={ChartLegendPane:68535};this.valueLabel="Value: ";this.describedById="ac-inline-legend-"+jZc++ +"-describedby";this.inlineLegendLabel="Legend for nearby chart";this.hideAllValues=this.enableSelection=this.enableScrolling=this.condensed=!1;this.maxSeriesSubject=new Mj(30);this.hideSingleSeriesLegends=this.sortByValue=!1;this.legendItems=uoa.apply(null,[pH].concat(q([])));this.focusKeyManager=new sz(this.legendItems,
p(ye));this.legendClick=new Ti;this.narrowSubject=new Mj(!1);this.isLoadingObservable=this.isLoadingSubject.pipe(nf());this.condensedStreamsObservable=ie([this.streamsObservable,this.maxSeriesSubject]).pipe(A(function(g){var k=m(g);g=k.next().value;k=k.next().value;return g?k?g.slice(0,k):g:[]}));this.additionalStreamsObservable=ie([this.streamsObservable,this.maxSeriesSubject]).pipe(A(function(g){var k=m(g);g=k.next().value;k=k.next().value;return g===null?0:g.length-k}));this.hideSingleSeriesLegendsObservable=
this.condensedStreamsObservable.pipe(A(function(g){if(f.hideSingleSeriesLegends&&g!==void 0){var k=0;g=m(g);for(var l=g.next();!l.done;l=g.next())l.value.seriesId.startsWith("ac-threshold-line")||k++;k=k<2}else k=!1;return k}));ef(function(){f.legendItems();(!f.focusKeyManager.activeItemIndex||f.focusKeyManager.activeItemIndex<0)&&qz(f.focusKeyManager,0)})};Y(qH,oH);qH.\u0275dir=oH.\u0275dir;h=qH.prototype;
h.ngAfterViewInit=function(){var a=this;this.condensedList&&(this.listResizeObserver=new ResizeObserver(function(b){var c,d;b=(d=(c=b[0])==null?void 0:c.contentRect.width)!=null?d:Infinity;a.narrowSubject.next(b<200)}),this.listResizeObserver.observe(this.condensedList.nativeElement))};
h.ngOnChanges=function(a){oH.prototype.ngOnChanges.call(this,a);"sortByValue"in a?(this.sortFunc=this.sortByValue?xDa(-1):vDa(),this.update()):"sortByMethod"in a&&this.sortByMethod!==void 0&&(this.sortFunc=this.sortByMethod,this.update())};h.toggleSelection=function(a){this.legendClick.emit({legendName:a.name});if(this.enableSelection){var b=!a.isSelected;a.isSelected=b;var c;(c=a.setSelected)==null||c.call(a,b);this.cdRef.markForCheck()}};h.trackByStreamId=function(a){return a.seriesId};
h.showMore=function(){};var IDa=function(a,b,c){return!(!a.enableSelection||!c||b.isSelected||b.isInteracted)};qH.prototype.ngOnDestroy=function(){oH.prototype.ngOnDestroy.call(this);var a;(a=this.listResizeObserver)==null||a.disconnect()};
da.Object.defineProperties(qH.prototype,{inlineLegendDescribedBy:{configurable:!0,enumerable:!0,get:function(){return this.condensed?"Name and value for each data series. Values listed are usually the most recent values for the data series. When using keyboard navigation on the chart, values listed are the values as of the focused time. Up and down arrow keys to navigate entries.":"Name and value for each data series. Values listed are usually the most recent values for the data series. When using keyboard navigation on the chart, values listed are the values as of the focused time."}},
maxSeries:{configurable:!0,enumerable:!0,set:function(a){this.maxSeriesSubject.next(a)}},chartTitle:{configurable:!0,enumerable:!0,set:function(a){this.inlineLegendLabel='Legend for chart, "'+a+'"'}}});qH.\u0275fac=function(a){return new (a||qH)(Ve(gG),Ve(Cx),Ve(Hd),Ve(UG),Ve(fG))};
qH.\u0275cmp=D({type:qH,selectors:[["ac-inline-legend"],["cola-inline-legend"]],viewQuery:function(a,b){a&1&&(og(b.legendItems,pH),hg(iZc,5,Hd));if(a&2){pg();var c;lg(c=mg())&&(b.condensedList=c.first)}},inputs:{condensed:"condensed",enableScrolling:"enableScrolling",enableSelection:"enableSelection",hideAllValues:"hideAllValues",maxSeries:"maxSeries",sortByValue:"sortByValue",sortByMethod:"sortByMethod",hideSingleSeriesLegends:"hideSingleSeriesLegends",chartTitle:"chartTitle"},outputs:{legendClick:"legendClick"},
features:[Ef,jx],decls:5,vars:4,consts:[["condensedFormat",""],["condensedList",""],["class","ac-inline-legend","role","list",3,"ve","ngClass",4,"ngIf","ngIfElse"],[1,"ac-screen-reader-only-content"],["role","list",1,"ac-inline-legend",3,"ve","ngClass"],["class","ac-inline-legend-items","role","listitem",4,"ngFor","ngForOf"],["role","listitem",1,"ac-inline-legend-items"],[1,"ac-inline-legend-item",3,"mouseenter","mouseleave","click"],[1,"ac-legend-label"],[3,"color","drawnAs","shape"],[4,"ngIf"],
["class","ac-legend-value",4,"ngIf"],[1,"ac-legend-value"],[1,"ac-inline-legend","condensed",3,"keydown","ve"],["class","empty-placeholder",4,"ngIf"],["class","ac-inline-legend-items",4,"ngFor","ngForOf","ngForTrackBy"],["class","n-more",4,"ngIf"],[1,"empty-placeholder"],[1,"ac-inline-legend-items"],["focusableLegendItem","","type","button",1,"ac-inline-legend-item","ac-a11y-focusable",3,"mouseenter","focusin","mouseleave","focusout","click","matTooltip","matTooltipPosition","matTooltipShowDelay",
"matTooltipClass"],[3,"color","drawnAs","shape","condensed","hollow"],[1,"ac-legend-label-visible"],["aria-hidden","true",1,"ac-legend-label-ruler"],[1,"n-more"]],template:function(a,b){a&1&&(E(0,FDa,3,10,"div",2)(1,LDa,14,32,"ng-template",null,0,Mg),K(3,"p",3),Q(4),L());a&2&&(a=qg(2),I("ngIf",!b.condensed)("ngIfElse",a),B(3),If("id",b.describedById),B(),yg(b.inlineLegendDescribedBy))},dependencies:[cH,pH,nA,Lx,Mx,Nx,gD,Tx],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]{max-height:inherit}.scrollable[_ngcontent-%COMP%]{overflow-y:auto}button[_ngcontent-%COMP%]{border:none;background:none}.ac-inline-legend[_ngcontent-%COMP%]{display:inline-block;max-height:inherit}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]{display:inline-block}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:inline-block;height:12px;margin-right:6px;padding:4px 6px}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{display:inline-block;margin-right:6px}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-value[_ngcontent-%COMP%]{margin:0 5px;min-width:5em;text-overflow:ellipsis;white-space:nowrap}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:inline-block;height:12px}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item.selected[_ngcontent-%COMP%]{font-weight:700}.ac-inline-legend.condensed[_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-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;padding:0 0 0 6px;margin:0;min-height:24px;line-height:24px}.ac-inline-legend.condensed.narrow[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]{max-width:100%}.ac-inline-legend.condensed.hidden-trivial-legend[_ngcontent-%COMP%]{display:none}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.empty-placeholder[_ngcontent-%COMP%], .ac-inline-legend.condensed[_ngcontent-%COMP%]   li.n-more[_ngcontent-%COMP%]{font-style:italic;padding:0 4px}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.empty-placeholder[_ngcontent-%COMP%]{list-style-type:none}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_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;max-width:100%}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]{padding:0 4px;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;margin:0;max-width:100%;-moz-box-sizing:border-box;box-sizing:border-box;height:unset}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item.selected[_ngcontent-%COMP%]{font-weight:500}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{display:block;margin:6px 3px 6px 0}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-label[_ngcontent-%COMP%]{font-size:12px;display:block;height:24px;position:relative;text-align:left;overflow:hidden;line-height:24px}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-label[_ngcontent-%COMP%]   .ac-legend-label-visible[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--ac-sys-color-chart-legend-label,#000)}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-label[_ngcontent-%COMP%]   .ac-legend-label-ruler[_ngcontent-%COMP%]{top:0;left:0;height:0;overflow:hidden;font-weight:500}  .mat-mdc-tooltip.ac-inline-legend-hover-tooltip{margin:0;font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;color:var(--ac-sys-color-extensions-on-surface,#202124);background:var(--ac-sys-color-extensions-neutral-container,#f1f3f4)}\n/*# sourceMappingURL=ac_inline_legend_style.css.map */"],
changeDetection:0});var rH=function(){this.registry=new Map};rH.prototype.register=function(a,b){this.registry.set(a,b)};rH.prototype.unregister=function(a,b){var c=this.registry.get(a);b===c&&this.registry.delete(a)};rH.prototype.focus=function(a,b){(a=this.registry.get(a))&&a.focus(function(){b.focus()})};rH.\u0275fac=function(a){return new (a||rH)};rH.\u0275prov=Dc({token:rH,factory:rH.\u0275fac,providedIn:"root"});var kZc=function(a){var b=this;this.isFrozen=a;this.strategy=function(c,d,e,f,g){b.isFrozen()||(b.lastPosition=MDa(c,d,e,f,g));return b.lastPosition}};var lZc=["*"],mZc=["closeButton"],nZc=function(){return".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}div.ac-hover-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;border:1px solid var(--ac-sys-color-extensions-hairline, #dadce0);padding:12px;min-width:200px}div.ac-hover-bg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;opacity:.9;background-color:var(--ac-sys-color-extensions-surface, #fff);z-index:-1}button.close-button[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);position:absolute;right:6px;top:0px;height:24px;width:24px;line-height:24px;padding:0;z-index:10}button.close-button-small[_ngcontent-%COMP%]{right:0px;transform:scale(0.5)}.close-icon-small[_ngcontent-%COMP%]{transform:scale(1.5)}  .close-tooltip{display:flex;flex-direction:row-reverse;color:var(--ac-sys-color-extensions-on-surface-inverse, #fff);background:var(--ac-sys-color-extensions-surface-inverse, #757575);border-radius:4px;margin:8px;word-wrap:break-word;outline:solid 1px rgba(0,0,0,0);max-width:320px;padding:2px 4px}.pinnable-cursor[_nghost-%COMP%]{cursor:pointer}.pinPromptBanner[_ngcontent-%COMP%]{padding:4px;margin:12px -12px -12px;text-align:left;height:26px;font-size:12px;font-style:italic;border-top:1px solid var(--ac-sys-color-extensions-hairline, #dadce0);background-color:var(--ac-sys-color-extensions-neutral-container, #f1f3f4);color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);width:auto}.pin-button[_ngcontent-%COMP%]{margin-left:12px;margin-right:4px;color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);height:18px;width:18px;vertical-align:middle}mat-divider[_ngcontent-%COMP%]{margin:12px -12px 0}.ac-hovercard-action-button[_ngcontent-%COMP%]{margin-bottom:0;margin-left:0}/*# sourceMappingURL=ac_hovercard.css.map */"},
sH=function(){this.refocusAfterViewChecked=this.isPinned=this.grabFocusAndUseAsModal=this.initialized=!1};sH.prototype.ngOnInit=function(){this.initialized=!0};sH.prototype.ngOnChanges=function(a){this.initialized&&"grabFocusAndUseAsModal"in a&&this.grabFocusAndUseAsModal&&(this.refocusAfterViewChecked=!0)};sH.prototype.ngAfterViewChecked=function(){if(this.refocusAfterViewChecked){var a;if((a=this.cdkTrapFocus)==null?0:Sy(a.focusTrap))this.refocusAfterViewChecked=!1}};
sH.\u0275fac=function(a){return new (a||sH)};
sH.\u0275cmp=D({type:sH,selectors:[["ac-hovercard-dialog"]],viewQuery:function(a,b){a&1&&hg(Wy,5);if(a&2){var c;lg(c=mg())&&(b.cdkTrapFocus=c.first)}},inputs:{grabFocusAndUseAsModal:"grabFocusAndUseAsModal",isPinned:"isPinned"},features:[jx],ngContentSelectors:lZc,decls:3,vars:5,consts:[[1,"ac-hover-container",3,"cdkTrapFocus"],[1,"ac-hover-bg"]],template:function(a,b){a&1&&(bg(),K(0,"div",0),M(1,"div",1),cg(2),L());a&2&&(wg("ac-hover-container-pinned",b.isPinned),I("cdkTrapFocus",!0),If("aria-modal",
b.grabFocusAndUseAsModal?!0:void 0)("role",b.grabFocusAndUseAsModal?"dialog":"tooltip"))},dependencies:[Wy],styles:[nZc()],changeDetection:0});
var tH=function(a,b,c,d,e,f,g,k,l,r){YG.call(this,a,b,c,d,e,f,r);this.cdr=g;this.interactionService=k;this.modalService=l;this.ngZone=r;this.positionStrategy=MDa;this.pinningEnabled$=new Mj(!1);this.chartQuickActionsEnabled=this.pinIfVisible=!1;this.closeOnDeselect$=new Mj(!1);this.hideHovercard=this.hasSeriesActionType=this.hidePinPrompt=!1;this.isPinnedOutput$=new Ti;this.showPointerCursor=this.pinningEnabled$.value;this.onClose=function(){};this.closeAriaLabel="Return to chart";this.grabFocusAndUseAsModalSubject=
new Mj(!1);this.grabFocusAndUseAsModalObservable=this.grabFocusAndUseAsModalSubject.pipe(xk(this.ngZone))};Y(tH,YG);tH.\u0275dir=YG.\u0275dir;
tH.prototype.ngOnInit=function(){var a=this;YG.prototype.ngOnInit.call(this);this.pinningEnabled$.pipe(zf(this.destroyed)).subscribe(function(b){a.positionStrategy=b?(new kZc(function(){return a.isPinned$.value})).strategy:MDa;a.showPointerCursor=b;a.cdr.detectChanges()});this.overlayRef.outsidePointerEvents().pipe(zf(this.destroyed)).subscribe(function(b){a.isPinned$.value&&a.closeOnDeselect$.value&&!(a.chartQuickActionsEnabled?(ol?b.metaKey:b.ctrlKey)||b.shiftKey:b.ctrlKey)&&(b.stopPropagation(),
NDa(a))})};tH.prototype.ngAfterViewInit=function(){var a=this;YG.prototype.ngAfterViewInit.call(this);this.chart.afterMouseClickObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onMouseClick(b)});this.isPinned$.pipe(zf(this.destroyed)).subscribe(function(b){a.isPinnedOutput$.emit(b)})};
var oZc=function(a,b){var c=b.xAxis;b=b.resize;return c&&b?(c=Xk(c,b.margins.left,b.width-b.margins.right))?c(a.x.valueOf()):null:null},pZc=function(a,b,c){var d=b.yAxis;b=b.resize;return d&&b?(c=sl(d,b.margins.top,b.height-b.margins.bottom,c))?c(a.y):null:null},qZc=function(a){if(!a)return null;var b,c,d,e=(d=Object.values((c=(b=a.seriesSelection)==null?void 0:b.byLayer.entities)!=null?c:{}).find(function(l){var r;return((r=l==null?void 0:l.selectedSeries)!=null?r:[]).length>0}))==null?void 0:d.selectedSeries[0].seriesId;
if(!e)return null;var f,g;b=Object.values((g=(f=a.timeSeries)==null?void 0:f.byLayer.entities)!=null?g:{});f=null;g=m(b);for(b=g.next();!b.done;b=g.next())if((c=b.value)&&c.valueType===1){var k=d=void 0;b=(d=c)==null?void 0:(k=d.bySeries.entities[e])==null?void 0:k.atTimeKey[2];k=d=void 0;c=(k=(d=c)==null?void 0:d.unit)!=null?k:null;if(b){e=oZc(b,a);a=pZc(b,a,c);e!==null&&a!==null&&(f={x:e,y:a});break}}return f};
tH.prototype.onMouseClick=function(a){var b=this;this.withLatest(function(c){c=c.state;var d,e,f=Object.values((e=c==null?void 0:(d=c.seriesSelection)==null?void 0:d.byLayer.entities)!=null?e:{});d=f.some(function(g){var k;return((k=g==null?void 0:g.selectedSeries)!=null?k:[]).length>0});e=f.some(function(g){var k;return((k=g==null?void 0:g.selectedSeries)!=null?k:[]).length===1});if(b.pinningEnabled$.value&&(!(b.chartQuickActionsEnabled?(ol?a.metaKey:a.ctrlKey)||a.shiftKey:a.ctrlKey)||e)&&(!b.chartQuickActionsEnabled||
d)){if(e=b.pinIfVisible?!!b.overlayRef.hostElement.querySelector(".ac-hover-container")&&!b.isPinned$.value:!b.isPinned$.value)b.chartQuickActionsEnabled?(c=qZc(c),b.reposition(a,2,0,c!=null?c:void 0)):b.reposition(a,2);b.isPinned$.next(e);wl(b.interactionService,"click",e?xl.ve.HovercardPinToggle:xl.ve.HovercardUnpinToggle,b.el.nativeElement)}b.chartQuickActionsEnabled&&b.isPinned$.value&&!d&&NDa(b)})};
tH.prototype.focus=function(a){this.pinningEnabled$.value&&this.isPinned$.next(!0);this.onClose=a;this.grabFocusAndUseAsModalSubject.next(!0);var b;(b=this.closeButton)==null||b.focus()};tH.prototype.onFocusIn=function(a){this.onFocus(a)};var NDa=function(a){a.isPinned$.next(!1);a.onClose();a.detachHovercard();a.grabFocusAndUseAsModalSubject.next(!1)};tH.prototype.onDetach=function(){this.modalService.unregister(0,this);this.grabFocusAndUseAsModalSubject.next(!1)};
tH.prototype.onAttach=function(){this.modalService.register(0,this);wl(this.interactionService,"hover",xl.ve.HovercardZone,this.el.nativeElement)};da.Object.defineProperties(tH.prototype,{pinningEnabled:{configurable:!0,enumerable:!0,set:function(a){this.pinningEnabled$.next(a)}},closeOnDeselect:{configurable:!0,enumerable:!0,set:function(a){this.closeOnDeselect$.next(a)}}});tH.\u0275fac=function(a){return new (a||tH)(Ve(Hd),Ve(TF),Ve(gG),Ve(UG),Ve(Tz),Ve(eg),Ve(Cx),Ve(xl),Ve(rH),Ve(Rg))};
tH.\u0275cmp=D({type:tH,selectors:[["ac-hovercard"]],viewQuery:function(a,b){a&1&&(hg(Wy,5),hg(mZc,5));if(a&2){var c;lg(c=mg())&&(b.cdkTrapFocus=c.first);lg(c=mg())&&(b.closeButton=c.first)}},hostAttrs:[1,"composable-layer","ac-hovercard"],hostVars:2,hostBindings:function(a,b){a&2&&wg("pinnable-cursor",b.showPointerCursor)},inputs:{pinningEnabled:"pinningEnabled",pinIfVisible:"pinIfVisible",chartQuickActionsEnabled:"chartQuickActionsEnabled",closeOnDeselect:"closeOnDeselect",hidePinPrompt:"hidePinPrompt",
hasSeriesActionType:"hasSeriesActionType",hideHovercard:"hideHovercard"},outputs:{isPinnedOutput$:"isPinnedOutput$"},features:[Gg([{provide:AG,useExisting:tH},{provide:YG,useExisting:tH}]),Ef],ngContentSelectors:lZc,decls:2,vars:0,consts:function(){return[["hoverContent",""],["closeButton",""],["pinPrompt",""]," Select resources to view details. "," Click \ufffd#3\ufffdon chart\ufffd/#3\ufffd to pin card. ",[3,"grabFocusAndUseAsModal","isPinned","focusin",4,"ngIf"],[3,"focusin","grabFocusAndUseAsModal",
"isPinned"],["mat-icon-button","","class","close-button ac-a11y-focusable",3,"close-button-small","matTooltip","matTooltipClass","click","focus",4,"ngIf"],["class","pinPromptBanner",4,"ngIf"],["mat-icon-button","",1,"close-button","ac-a11y-focusable",3,"click","focus","matTooltip","matTooltipClass"],["svgIcon","ac:close"],[1,"pinPromptBanner"],[4,"ngIf","ngIfElse"],["svgIcon","ac:time_pin_set",1,"pin-button"],[4,"ngIf"],["svgIcon","ac:pin_outline",1,"pin-button"]]},template:function(a){a&1&&(bg(),
E(0,UDa,2,3,"ng-template",null,0,Mg))},dependencies:[sH,Jy,iB,nA,Nx,Tx],styles:[nZc()],changeDetection:0});var uH=Uj("[AC] Set the value for multiple time series in a chart",Wj()),vH=Uj("[AC] Set the metadata for multiple time series in a chart",Wj()),wH=Uj("[AC] Sets the time series metadata for a layer",Wj());var rZc,tZc=function(){rZc||(rZc=Uint8Array.from(atob(sZc),function(a){return a.charCodeAt(0)}).buffer);return rZc.slice(0)},sZc="UklGRpYGAABXQVZFZm10IBAAAAABAAEAgLsAAAB3AQACABAAZGF0YXIGAAAVABMCiwc3CUwKDPwt+nv/3pyOIa0hAoD8J+pEGwikGsU+jW+hJvM1iURL0gW7VeYNlTmB2axy1mK8ov0+UqB5+lv/f2d1JVmPFkUATsFoll+bbYUBgKvq67zF/4RSlVc1ZgBw43NEOFEPlQgfy+WoHpbNmQ+hz8X749sOoiA3VatuWmWQPAFQbRDW8PHcX7e4nKOi/7kI1y7QEg+zNstAF1EOUsFDITvYFozxXtRlyTar9rQCyzLFjt2QIvYmTSwhRoVOujizKdUS0vhe1cjT1MPysXnFVuq36iUEYRygOfg4jToXMSElmAiR+9Hmo9G4wmPOl9ZF4KntvwnXGLosrDCMLPUt7xolDSX51Oab2pjQBdj43NLd6PaZDEAVaRtILrImohwFHuYMiPbg5dDm1tz012fek/PN81kCThGcIL8eqyASGSga+QAS+WX1S+l82RXlVuxI6uz1EQ+1Ba0Xdh8SGRcTkA8oCib9tuoQ8bzneOm+5zHzOf7kAdkLRRABF7wXixAyC+ICnQED77jzJO+M527vNvcM/v0BawajEUoOKxQvECQHzwG+/1n4cvGO7yrzEfD/+Av9HAXjAt8LPhBXDg8J6gjYAl78kfm59gP1zvDd9ZP8+fvp/msIzgpLC6YGRwtDCPH/Cfzi/Ur4v/Or9Zz78/eD/ncDVgMrBhkJKgnaB3YDfgJu/Wj7Qvle+vD29/k3/EX9UQOVA/sDogcAB0cGbwNAAUv+t/ux/H36Tvj0+439nP3+/28GCgOEAvQGJAbiATYAlf6q/+v52Pqc/Kr9bvt9/wMABgXuAGwFtgNOAsMD7AAR/in+2v18+4z84vys/rv/AgCSAI8E2APUAHYCxgPcAEj9uP4t/4H7Ev6R/tj9q/5/AX8BkgAmBMACHQHDANYAGQF4/jH7NwAr/aL/Wf6Q/TsCiQFqAIYCVwFSAlEAfAAIALb+Nf45/2f9qP5YAIT/6f6uAQUBgwJJAPMANAGTAHD/JwDf/SH+sP/s/tb/ZP9u/4QBIwHUAPMAKAGDAJgAYf7+AI3+zv66/8H+r/4mAe7/BQCjAMEBFQDFAFwAuQAa/2oAHf80/4z+ewAM/7f/iAChAFIAJgCTAHgB4//g/x0AYv/i/27/Nf+c/4D/BQBGALwAq/+KAJsAxgDU/73/AwEG/2X/bwDZ/mr/IQBLACAA1f8kAH0AwwDs/8EArP9x/4IAXP/a//X/BP9dAOv/kf/OADUAzP/PAHn/MAF8/7L/nQDg/jYAFQA//+T/UgAOALD/jgAxAOL/RQCuAIv/+f/k/9//Yf+lAKX/f/87AMb/RQA8AB0AUwDP/zsA9//1/zIAof/1/9z/wv8dAM//UgDX/ysAGgD2/4cAsf/x/2wAdf/y//7//v8/AE//6/+GAMn/SwDe/zcALgCc/0QALgCW/xoAKQCI/9X/QgDy/+f/JwAkAOn/IQD9/xsABQAOAP3/uf8PADYAg/8hAAoA6v8SADQA5P/l/00A6v8iAM7/NwDU//j/BADV/8P/ZwDr/+7/FADx/xkAFADt/xMADQD3//X/2v8eAOT/1f9CAP3/AAD6/9z/PQAxAMD/9v8qANj/QADI/9z/EwDf/zoAyf82APL/1P8nACQAxv81AAAAxf8iAPD/+f/c/yUANwCL/2sAxP8oACAAq/9nANL/7f81ALb/QwDZ/9f/LgD8/wsA8v/+/xQA+P/i/04A1v/q/zUA2//a/z8A4f8RAPn/7v8JABEA8f8NAPz/BAD+/wIA+/8CAPz////+//////8DAP7/BAAAAAIAAQACAP7/AwD8/wEA/f////////8AAAIA/f8FAP3/BQD//wEAAAAAAP//////////AAD//wAA//8CAAAAAgD//wMA/v8CAP////8BAP7/AAD//wAA//8CAP//AgD+/wMA/v8DAP//AAD/////AQD+/wIA/f8BAAEA/v8EAPv/BwD6/wUA/f8BAAEA/f8CAP7/AQD//wEA/f8FAPv/BQD8/wMA//8AAAEA/v8BAAAA//8BAP//AAAAAAEA//8BAAAAAAAAAAEA/v8CAP//AAD//wIA/v8BAP//AQD//wIA/////wMA/f8CAAAA/v8DAP7/AAABAP//AQD//wEA//8BAAAA//8BAAAAAAAAAP//AgD9/wQA+/8FAPz/AwD+/wEAAAD//wEAAAAAAP//AQA=",
uZc=new function(){};var vZc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vZc,W);var wZc=Bsa(vZc);var xZc;var yZc=[{frequencyMultiplier:1,gain:10},{frequencyMultiplier:4,gain:2}],zZc=function(a){this.mixerMaxGain=1/yZc.map(function(f){return f.gain}).reduce(function(f,g){return f+g},0);this.oscillators=[];this.mixer=a.createGain();this.mixer.gain.value=0;for(var b=m(yZc),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.createOscillator();d.type="sine";d.start();this.oscillators.push(d);var e=a.createGain();e.gain.value=c.gain;d.connect(e).connect(this.mixer)}};zZc.prototype.connect=function(a){return this.mixer.connect(a)};var El=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(El,W);var rEa=xEa(xZc||(xZc=wZc('[null,null,null,null,null,"\'use strict\';function h(a,b,c){const e\\u003dMath.min(a.length,b.length);for(let f\\u003d0;f\\u003ce;f++){var d\\u003da[f],k\\u003db[f],n\\u003dc;const p\\u003dMath.min(d.length,k.length);for(let g\\u003d0;g\\u003cp;g++)l(d[g],k[g],n)}}function l(a,b,c){const e\\u003da.length;for(let d\\u003d0;d\\u003ce;d++)b[d]\\u003dc(a[d])}class m extends AudioWorkletProcessor{process(a,b){h(a,b,Math.abs);return!0}}class q extends AudioWorkletProcessor{process(a,b){h(a,b,c\\u003d\\u003ec\\u003e.2?0:1);return!0}}\\nfunction r(a){a\\u003d2*Math.PI*a/sampleRate;return Math.cos(a)-1+Math.sqrt(Math.pow(Math.cos(a),2)-4*Math.cos(a)+3)}\\nclass t extends AudioWorkletProcessor{constructor(){super(...arguments);this.i\\u003dr(.04);this.h\\u003dr(1E3);this.g\\u003d0}process(a,b){if(a.length!\\u003d\\u003d1)throw Error(\\"SlewWorklet only supports one input.\\");if(a[0].length!\\u003d\\u003d1)throw Error(\\"SlewWorklet only supports one input channel.\\");if(b.length!\\u003d\\u003d1)throw Error(\\"SlewWorklet only supports one output.\\");if(b[0].length!\\u003d\\u003d1)throw Error(\\"SlewWorklet only supports one output channel.\\");l(a[0][0],b[0][0],c\\u003d\\u003e{const e\\u003dc\\u003ethis.g?this.i:this.h;return this.g\\u003de*c+(1-e)*this.g});\\nreturn!0}}registerProcessor(\\"rectifier-worklet\\",m);registerProcessor(\\"threshold-worklet\\",q);registerProcessor(\\"slew-worklet\\",t);\\n"]'))),
AZc=function(){this.audioContext=new AudioContext({latencyHint:.04});this.voices=[];this.nextVoice=0;this.gain=this.audioContext.createGain();this.panner=this.audioContext.createStereoPanner();this.polyVoice=this.audioContext.createGain();this.earcons=this.audioContext.createGain();this.voiceAndEarcons=this.audioContext.createGain();this.playbackTimes=null;for(var a=this.gain.gain.value=0;a<10;a++){var b=new zZc(this.audioContext);this.voices.push(b);b.connect(this.polyVoice)}this.polyVoice.gain.value=
12/13;a=this.audioContext.createDynamicsCompressor();this.polyVoice.connect(this.voiceAndEarcons);this.earcons.connect(this.voiceAndEarcons);this.voiceAndEarcons.connect(this.panner).connect(a).connect(this.gain).connect(this.audioContext.destination)};
AZc.prototype.play=function(a){var b=this,c,d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,na;return y(function(ua){switch(ua.nextAddress){case 1:return z(ua,b.audioContext.suspend(),2);case 2:c=b.audioContext.currentTime;b.gain.gain.setTargetAtTime(.8,c,.004);d="audioWorklet"in AudioContext.prototype;if(!d){ua.jumpTo(3);break}return z(ua,yEa(b.voiceAndEarcons),4);case 4:e=ua.yieldResult,e.gain.value=.3,e.connect(b.panner),e.gain.setTargetAtTime(0,c+a.durationSeconds,.004);case 3:f=m(a.notes);for(g=f.next();!g.done;g=
f.next()){k=g.value;b.panner.pan.setTargetAtTime(k.pan,c+k.onset,0);l=b.voices[b.nextVoice];b.nextVoice=(b.nextVoice+1)%10;for(var ia=l,Ga=k.frequency,ha=c+k.onset,sa=m(yZc.entries()),xa=sa.next();!xa.done;xa=sa.next()){var Qa=m(xa.value);xa=Qa.next().value;Qa=Qa.next().value;ia.oscillators[xa].frequency.setTargetAtTime(Ga*Qa.frequencyMultiplier,ha,0)}ia.mixer.gain.setTargetAtTime(0,ha,0);ia.mixer.gain.linearRampToValueAtTime(ia.mixerMaxGain,ha+.005);ia.mixer.gain.exponentialRampToValueAtTime(1E-5,
ha+.8);ia.mixer.gain.setTargetAtTime(0,ha+.8,0)}r=m(a.earcons||[]);w=r.next();case 5:if(w.done)return na=Math.max(((V=a.notes[a.notes.length-1])==null?void 0:V.onset)||0,((ca=a.earcons[a.earcons.length-1])==null?void 0:ca.onset)||0),b.playbackTimes={startTime:c,endTime:c+na},z(ua,b.audioContext.resume(),0);C=x=w.value;H=C.onset;return z(ua,b.audioContext.decodeAudioData(tZc()),8);case 8:J=ua.yieldResult,ia=b.audioContext.createBufferSource(),ia.buffer=J,O=ia,R=b.audioContext.createGain(),R.connect(b.earcons),
R.gain.value=.25,O.connect(R),O.start(c+H),w=r.next(),ua.jumpTo(5)}})};var BZc=function(a){a.gain.gain.setTargetAtTime(0,a.audioContext.currentTime,.004);setTimeout(function(){a.audioContext.close()},1E3)};AZc.prototype.getProgress=function(){return!this.playbackTimes||this.audioContext.currentTime>this.playbackTimes.endTime?null:mEa(this.playbackTimes.startTime,this.playbackTimes.endTime,0,1,this.audioContext.currentTime)};var CZc=function(){this.xAxis=this.synth=null};CZc.prototype.play=function(a){var b=this,c,d;return y(function(e){b.stop();c=kEa(a);d=qEa(c);b.synth=new AZc;b.xAxis=c.xAxis;return z(e,b.synth.play(d),0)})};CZc.prototype.stop=function(){this.synth&&(BZc(this.synth),this.xAxis=this.synth=null)};CZc.prototype.getProgress=function(){if(this.synth===null||this.xAxis===null)return null;var a=this.synth.getProgress();return a===null?null:mEa(0,1,this.xAxis.min,this.xAxis.max,a)};var xH=function(){this.logger=null;try{this.session=new CZc}catch(a){this.session=null}};xH.\u0275fac=function(a){return new (a||xH)};xH.\u0275prov=Dc({token:xH,factory:xH.\u0275fac,providedIn:"root"});var DZc=["topLeftCell"],EZc=["audioHeader"],FZc=["virtualTableValueButton"],GZc=["virtualTableColumnHeaderButton"],HZc=["virtualTableRowHeaderButton"],IZc=["virtualTableAudioValueButton"],CEa=function(a,b){return{"left.px":a,"top.px":b}},joa=function(a,b,c,d){return{"left.px":a,"top.px":b,"height.px":c,"width.px":d}},JZc="ArrowUp ArrowDown ArrowLeft ArrowRight Enter Space PageDown PageUp Home End".split(" "),KZc=0,yH=function(a,b,c,d){var e=this;this.chart=a;this.audioChartsService=b;this.cdr=c;this.ngZone=
d;this.rowMask=this.columnMaskGenerator=this.columnMask=this.gridGenerator=this.grid=null;this.onGridCellActivateDescription="Activating a grid cell will open the tooltip at this data point.";this.chartTitle="Untitled";this.layerTitle="";this.audioChartsEnabled=!0;this.refactorA11yNavInstructions=!1;this.onFocus=new Ti;this.onBlur=new Ti;this.onFocusedCellChange=new Ti;this.onGridCellActivate=new Ti;this.internalValues=[];this.internalColumns=[];this.internalRows=[];this.internalAudioValues=[];this.statusUpdate=
"";this.NAV_INSTRUCTIONS="Navigate this grid using arrow keys. Page Up and Page Down moves focus up and down by 10 rows. Home and End moves focus to the first and last cell in the current row. Ctrl+Home and Ctrl+End moves focus to the first and last cell of the grid.";this.AUDIO_HEADER="Audio";this.refocusAfterViewChecked=!1;this.ignoreKeyboardEvents=new Set;this.focused=!1;this.id="ac-accessibility-grid-"+KZc++;this.columnToggleDescriptionId=this.id+"-column-toggle-description";this.rowToggleDescriptionId=
this.id+"-row-toggle-description";this.activateGridCellDescriptionId=this.id+"-activate-gridcell-description";this.audioChartButtonDescriptionId=this.id+"-audio-chart-button-description";this.navInstructionsId=this.id+"-nav-instructions";this.focusColumnMask=[];this.expansionColumnMask=[];this.baseColumnMask=[];this.focusRowMask=[];this.expansionRowMask=[];this.baseRowMask=[];this.focusedCellInternal=null;this.destroyed=new qf;this.isActive=this.internalFocusTransfer=!1;this.chart.keyDownObservable.pipe(zf(this.destroyed)).subscribe(function(f){e.ngZone.run(function(){e.onKeyDown(f)})});
this.chart.syncKeyDownObservable.pipe(zf(this.destroyed)).subscribe(function(f){e.focused?e.grid&&e.grid.rows.length&&e.grid.columns.length&&JZc.includes(f.key)&&f.preventDefault():e.ignoreKeyboardEvents.add(f)})};yH.prototype.shownColumns=function(a){for(var b=[],c=0;c<a.length;c++)DEa(this,c)&&b.push({colIndex:c,column:a[c]});return b};
var LZc=function(a,b){for(var c=[],d=0;d<b.length;d++)MEa(a,d)&&c.push({rowIndex:d,row:b[d]});return c},MZc=function(a,b){if(b===0)return a.internalRows;if(a.audioChartsEnabled&&b===1)return a.internalAudioValues;for(var c=[],d=0;d<a.internalValues.length;d++)c.push(a.internalValues[d][b-a.numberOfHeaderColumns]);return c},zH=function(a,b,c){return b<1?b:MZc(a,c).findIndex(function(d){return d.visualRowIndex===b})+1};yH.prototype.trackByIndex=function(a){return String(a)};
yH.prototype.trackColumnById=function(a,b){return b.column.id};yH.prototype.trackRowById=function(a,b){return b.row.id};
yH.prototype.onKeyDown=function(a){if(this.focused&&this.grid&&this.grid.rows.length&&!this.ignoreKeyboardEvents.has(a)&&this.grid.columns.length&&JZc.includes(a.key)){this.statusUpdate="";var b=this.grid,c=b.rows.length+1-1,d=b.columns.length+this.numberOfHeaderColumns-1;if(this.focusedCell){var e=m(this.focusedCell);b=e.next().value;e=e.next().value;var f,g,k=(g=(f=NZc(this,b,e))==null?void 0:f.visualRowIndex)!=null?g:0;g=b;f=e;switch(a.key){case "ArrowUp":a=Math.max(0,k-1);g=zH(this,a,f);break;
case "PageUp":a=Math.max(0,k-10);g=zH(this,a,f);break;case "ArrowDown":a=Math.min(c,k+1);g=zH(this,a,f);break;case "PageDown":a=Math.min(c,k+10);g=zH(this,a,f);break;case "ArrowLeft":f=Math.max(0,e-1);break;case "ArrowRight":f=Math.min(d,e+1);break;case "Home":a.ctrlKey&&(g=0);f=0;break;case "End":f=d;a.ctrlKey&&(g=zH(this,c,f));break;case "Enter":case "Space":HEa(this,g-1,f<this.numberOfHeaderColumns);var l;f>=this.numberOfHeaderColumns&&g>=1&&((l=this.audioChartsService.session)==null?void 0:l.getProgress())===
null?(a=this.focusedCellRef)&&this.focused&&this.onGridCellActivate.emit(a.nativeElement):f>=this.numberOfHeaderColumns&&g===0?BEa(this,f-this.numberOfHeaderColumns):f===0&&g>=1&&this.toggleRow(g-1)}if(b!==g||e!==f)this.focusedCell=[g,f],OZc(this,this.focusedCell);b!==g&&(this.statusUpdate=g>=1?(new Vl("Data series {SERIES_NAME} is now selected")).format({SERIES_NAME:this.internalRows[g-1].label}):"Data series unselected")}else{b=null;switch(a.key){case "ArrowUp":case "PageDown":case "ArrowLeft":case "ArrowDown":case "ArrowRight":case "PageUp":case "Home":b=
[1,0];break;case "End":b=[c,d]}b!==this.focusedCell&&(b[0]=zH(this,b[0],b[1]),this.focusedCell=b,OZc(this,this.focusedCell))}}else this.ignoreKeyboardEvents.has(a)&&this.ignoreKeyboardEvents.delete(a)};
var NZc=function(a,b,c){if(b===0)return a.internalColumns[c-a.numberOfHeaderColumns];if(c===0)return a.internalRows[b-1];if(a.audioChartsEnabled&&c===1)return a.internalAudioValues[b-1];if(!a.focusedValue)return null;c=m(a.focusedValue);b=c.next().value;c=c.next().value;return(a=a.internalValues[b])?a[c]||null:null};
yH.prototype.focus=function(a){this.isActive||(this.isActive=!0,this.gridGenerator&&(this.grid=this.gridGenerator(),PZc(this)),this.columnMaskGenerator&&(this.columnMask=this.columnMaskGenerator()));this.focused=!0;this.onFocus.next(a);this.focusedCell||(this.focusedCell=[0,0]);this.internalFocusTransfer||OZc(this,this.focusedCell)};yH.prototype.blur=function(a){this.focused=!1;this.internalFocusTransfer||(this.onBlur.next(a),OZc(this,null))};
var PEa=function(a){return(new Vl('Populate data for table, "{LAYER_TITLE}", on chart, "{CHART_TITLE}"')).format({CHART_TITLE:a.chartTitle||"Untitled",LAYER_TITLE:a.layerTitle})},QZc=function(a){return a.refactorA11yNavInstructions?"Time Series Name":(new Vl('Grid for data, "{LAYER_TITLE}", on chart, "{CHART_TITLE}". Navigate this grid using arrow keys. Page Up and Page Down moves focus up and down by 10 rows. Home and End moves focus to the first and last cell in the current row. Ctrl+Home and Ctrl+End moves focus to the first and last cell of the grid.')).format({CHART_TITLE:a.chartTitle||
"Untitled",LAYER_TITLE:a.layerTitle})},PZc=function(a){RZc(a);if(a.grid){var b=a.grid.columns;a.baseColumnMask=b.map(function(f,g){return g===0||g===b.length-1});a.expansionColumnMask=b.map(function(){return!1});var c=yl(a.focusedCell,a.numberOfHeaderColumns)[1];a.focusColumnMask=b.map(function(f,g){return g===c});var d=a.grid.rows;a.baseRowMask=d.length<=12?d.map(function(){return!0}):d.map(function(f,g){return g===0||g===d.length-1});a.expansionRowMask=d.map(function(){return!1});var e=yl(a.focusedCell,
a.numberOfHeaderColumns)[0];a.focusRowMask=d.map(function(f,g){return g===e})}};yH.prototype.ngOnChanges=function(a){if("grid"in a||"gridGenerator"in a)this.gridGenerator&&this.isActive&&(this.grid=this.gridGenerator()),PZc(this);"columnMaskGenerator"in a&&this.columnMaskGenerator&&this.isActive&&(this.columnMask=this.columnMaskGenerator())};
var DEa=function(a,b){var c=a.columnMask||[];return!!(a.baseColumnMask[b]||c[b]||a.expansionColumnMask[b]||a.focusColumnMask[b])},MEa=function(a,b){var c=a.rowMask||[];return!!(a.baseRowMask[b]||c[b]||a.expansionRowMask[b]||a.focusRowMask[b])};yH.prototype.ngAfterViewChecked=function(){if(this.refocusAfterViewChecked){this.refocusAfterViewChecked=!1;var a=this.focusedCellRef;this.internalFocusTransfer=!0;a&&a.nativeElement.focus();this.internalFocusTransfer=!1}};
var BEa=function(a,b){if(DEa(a,b+1))a.expansionColumnMask[b]=!1,a.statusUpdate="1 column hidden";else{var c=b+1,d=0;for(a.expansionColumnMask[b]=!0;c<a.expansionColumnMask.length&&!DEa(a,c)&&d<10;)a.expansionColumnMask[c]=!0,c++,d++;a.statusUpdate=(new Vl("{NUM_COLUMNS, plural, =1 {1 more column shown} other {{NUM_COLUMNS} more columns shown}}")).format({NUM_COLUMNS:d})}a.cdr.markForCheck()};
yH.prototype.toggleRow=function(a){if(MEa(this,a+1))this.expansionRowMask[a]=!1,this.statusUpdate="1 row hidden";else{var b=a+1,c=0;for(this.expansionRowMask[a]=!0;b<this.expansionRowMask.length&&!MEa(this,b)&&c<10;)this.expansionRowMask[b]=!0,b++,c++;this.statusUpdate=(new Vl("{NUM_ROWS, plural, =1 {1 more row shown} other {{NUM_ROWS} more rows shown}}")).format({NUM_ROWS:c})}this.cdr.markForCheck()};
var HEa=function(a,b,c){if(a.audioChartsEnabled){var d=SZc(a);c&&!d&&(c=a.audioChartsService.session,b=a.internalAudioValues[b].audioChartOptions,SZc(a),b&&(c==null||c.play(b)))}},FEa=function(a){var b;return((b=a.audioChartsService.session)==null?void 0:b.getProgress())!==null},SZc=function(a){if(FEa(a)){var b;(b=a.audioChartsService.session)==null||b.stop();return!0}return!1},RZc=function(a){var b=a.focusedCellRow,c=a.focusedCellColumn,d=a.focusedCell;if(a.grid){var e=a.grid,f=e.rows,g=e.columns,
k=e.values;e=[];for(var l=0;l<f.length;l++){var r=k[l];if(!r)break;e.push([]);for(var w=0;w<g.length;w++){var x=r[w];if(!x)break;e[l].push(Object.assign({},{id:a.id+"-value-"+l+"-"+w,tabindex:-1,visualRowIndex:0},x))}}for(k=0;k<g.length;k++){l=[];for(r=0;r<f.length;r++)l.push(e[r][k]);l=l.sort(function(J,O){return J.value===void 0&&O.value===void 0?0:J.value===void 0?1:O.value===void 0?-1:J.position.y-O.position.y});for(r=0;r<l.length;r++)l[r].visualRowIndex=r+1}var C=[];for(k=0;k<g.length;k++)r=
void 0,l=(r=e[0])==null?void 0:r[k],w=r=void 0,l=Object.assign({},(w=(r=l)==null?void 0:r.position)!=null?w:{},{y:0,height:void 0,width:void 0}),C.push(Object.assign({},{id:a.id+"-column-"+k,tabindex:-1,position:l,visualRowIndex:0},g[k]));g=[];k=[];l=a.grid.audioChartContext;for(r=0;r<f.length;r++){x=void 0;w=Object.assign({},(x=e[r][0])==null?void 0:x.position,{height:void 0,width:void 0});x=void 0;g.push(Object.assign({},{id:a.id+"-row-"+r,tabindex:-1,position:w,visualRowIndex:(x=e[r][0])==null?
void 0:x.visualRowIndex},f[r]));x=null;l&&(x={values:e[r].reduce(function(J,O,R){R=C[R].value;O=O.value;return R===void 0||O===void 0?J:J.concat([{x:R,y:O}])},[]),earcons:C.length>=l.xAxis.ticks.length*5?l.xAxis.ticks.map(function(J){return{x:J,earcon:uZc}}):void 0,xAxis:{density:C.length,min:l.xAxis.min,max:l.xAxis.max},yAxis:{min:l.yAxis.min,max:l.yAxis.max}});var H=void 0;k.push({id:a.id+"-audio-"+r,tabindex:-1,position:w,visualRowIndex:(H=e[r][0])==null?void 0:H.visualRowIndex,audioChartOptions:x})}a.internalValues=
e;a.internalColumns=C;a.internalRows=g;a.internalAudioValues=k}else a.internalValues=[],a.internalColumns=[],a.internalRows=[],a.internalAudioValues=[];TZc(a,d,b,c)},TZc=function(a,b,c,d){if(b){var e=null,f=null;c&&(e=a.internalRows.findIndex(function(g){return g.label===c.label}),e=e>-1?e:null);d&&(f=a.internalColumns.findIndex(function(g){return g.label===d.label}),f=f>-1?f:null);e!==null&&f!==null?a.focusedCell=[e+1,f+a.numberOfHeaderColumns]:e!==null&&f===null&&b[1]<a.numberOfHeaderColumns?a.focusedCell=
[e+1,b[1]]:f!==null&&e===null&&b[0]<1?a.focusedCell=[b[0],f+a.numberOfHeaderColumns]:a.focusedCell=null;OZc(a,a.focusedCell)}};
yH.prototype.getAriaLabel=function(){return this.grid&&this.internalRows.length?(new Vl("{NUM_OTHER_TIME_SERIES, plural,=0 {Data for chart, {CHART_TITLE}, including time series, {FIRST_TIME_SERIES_NAME}}=1 {Data for chart, {CHART_TITLE}, including time series, {FIRST_TIME_SERIES_NAME}, and # other}other {Data for chart, {CHART_TITLE}, including time series, {FIRST_TIME_SERIES_NAME}, and # others}}")).format({CHART_TITLE:this.chartTitle||"Untitled",FIRST_TIME_SERIES_NAME:this.internalRows[0].label,
NUM_OTHER_TIME_SERIES:this.internalRows.length-1}):(new Vl("No data available for table, {LAYER_TITLE}, on chart, {CHART_TITLE}")).format({CHART_TITLE:this.chartTitle||"Untitled",LAYER_TITLE:this.layerTitle})};
var IEa=function(a,b){var c=a.internalRows[b];return a.internalAudioValues[b].audioChartOptions?(new Vl("Play audio overview for {ROW_LABEL}")).format({ROW_LABEL:c.label}):(new Vl("No audio overview available for {ROW_LABEL}")).format({ROW_LABEL:c.label})},JEa=function(a,b){if(!a.internalAudioValues[b].audioChartOptions)return"";b=a.internalRows[b];b=[(new Vl("Pitch represents the y axis and time represents the x axis.")).format({ROW_LABEL:b.label})];var c,d=(c=a.grid)==null?void 0:c.yAxisState;d&&
d.min!==null&&d.max!==null&&b.push((new Vl("Y axis ranges from {MIN} to {MAX}.")).format({MIN:Nk(d.min,d.unit),MAX:Nk(d.max,d.unit)}));var e;(a=(e=a.grid)==null?void 0:e.xAxisState)&&a.min!==null&&a.max!==null&&(a.unit==="ms_since_epoch"?(e=Gk(a.timezoneOffset,a.timeZoneId),b.push((new Vl("X axis ranges from {MIN} to {MAX}.")).format({MIN:rAa(new Date(a.min),e),MAX:rAa(new Date(a.max),e)}))):b.push((new Vl("X axis ranges from {MIN} to {MAX}.")).format({MIN:Nk(a.min,a.unit),MAX:Nk(a.max,a.unit)})));
return b.join(" ")},UZc=function(a){if(!a.focusedCell)return!1;var b=m(a.focusedCell);a=b.next().value;b=b.next().value;return a===0&&b===0},zEa=function(a){if(!a.focusedCell||!a.audioChartsEnabled)return!1;var b=m(a.focusedCell);a=b.next().value;b=b.next().value;return a===0&&b===1},OZc=function(a,b){a.onFocusedCellChange.emit({focusedCell:b,focusedGridIndices:yl(b,a.numberOfHeaderColumns)})};yH.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
da.Object.defineProperties(yH.prototype,{numberOfHeaderColumns:{configurable:!0,enumerable:!0,get:function(){return this.audioChartsEnabled?2:1}},focusedCell:{configurable:!0,enumerable:!0,get:function(){return this.focusedCellInternal},set:function(a){var b=this.focusedCellProps;b&&(b.tabindex=-1);this.focusedCellInternal=a;if(b=this.focusedCellProps)b.tabindex=0;var c=yl(a,this.numberOfHeaderColumns)[0],d=yl(a,this.numberOfHeaderColumns)[1],e;this.focusColumnMask=((e=this.grid)==null?void 0:e.columns.map(function(g,
k){return k===d}))||[];var f;this.focusRowMask=((f=this.grid)==null?void 0:f.rows.map(function(g,k){return k===c}))||[];this.focused&&(this.refocusAfterViewChecked=!0)}},focusedValue:{configurable:!0,enumerable:!0,get:function(){var a=this.focusedCell;if(!a)return null;var b=m(a);a=b.next().value;b=b.next().value;return a<1||b<this.numberOfHeaderColumns?null:[a-1,b-this.numberOfHeaderColumns]}},focusedCellRef:{configurable:!0,enumerable:!0,get:function(){if(!this.focusedCell)return null;if(UZc(this))return this.topLeftCellRef;
if(zEa(this))return this.audioHeaderRef;var a,b=(a=this.focusedCellProps)==null?void 0:a.id;return b?this.valueRefs.find(function(c){return c.nativeElement.id===b})||this.columnHeaderRefs.find(function(c){return c.nativeElement.id===b})||this.rowHeaderRefs.find(function(c){return c.nativeElement.id===b})||this.audioValueRefs.find(function(c){return c.nativeElement.id===b})||null:null}},focusedCellProps:{configurable:!0,enumerable:!0,get:function(){if(!this.focusedCell||this.focusedCell.length!==2)return null;
var a=m(this.focusedCell),b=a.next().value;a=a.next().value;return NZc(this,b,a)}},focusedCellRow:{configurable:!0,enumerable:!0,get:function(){var a=this.focusedCell;if(!a)return null;a=m(yl(a,this.numberOfHeaderColumns)).next().value;return a===null?null:this.internalRows[a]}},focusedCellColumn:{configurable:!0,enumerable:!0,get:function(){var a=this.focusedCell;if(!a)return null;a=m(yl(a,this.numberOfHeaderColumns));a.next();a=a.next().value;return a===null?null:this.internalColumns[a]}}});
yH.\u0275fac=function(a){return new (a||yH)(Ve(TF),Ve(xH),Ve(Cx),Ve(Rg))};
yH.\u0275cmp=D({type:yH,selectors:[["ac-accessibility-grid"]],viewQuery:function(a,b){a&1&&(hg(DZc,5),hg(EZc,5),hg(FZc,5),hg(GZc,5),hg(HZc,5),hg(IZc,5));if(a&2){var c;lg(c=mg())&&(b.topLeftCellRef=c.first);lg(c=mg())&&(b.audioHeaderRef=c.first);lg(c=mg())&&(b.valueRefs=c);lg(c=mg())&&(b.columnHeaderRefs=c);lg(c=mg())&&(b.rowHeaderRefs=c);lg(c=mg())&&(b.audioValueRefs=c)}},hostAttrs:[1,"ac-accessibility-grid"],inputs:{grid:"grid",gridGenerator:"gridGenerator",columnMask:"columnMask",columnMaskGenerator:"columnMaskGenerator",
rowMask:"rowMask",onGridCellActivateDescription:"onGridCellActivateDescription",chartTitle:"chartTitle",layerTitle:"layerTitle",audioChartsEnabled:"audioChartsEnabled",refactorA11yNavInstructions:"refactorA11yNavInstructions"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onFocusedCellChange:"onFocusedCellChange",onGridCellActivate:"onGridCellActivate"},features:[jx],decls:26,vars:30,consts:function(){return[["virtualTable",""],["topLeftCell",""],["audioHeader",""],["virtualTableColumnHeaderButton",
""],["virtualTableRowHeaderButton",""],["virtualTableAudioValueButton",""],["virtualTableValueButton",""]," If subsequent columns are omitted, activating a column header will reveal all subsequent columns up to the next revealed column.\n"," If subsequent rows are omitted, activating a row header will reveal all subsequent rows up to the next revealed row.\n"," No data. ",' To save memory, this table is inactive by default. To populate this table, click the "\ufffd0\ufffd" button just prior to this table. ',
[1,"show-on-focus","ac-screen-reader-only-content","ac-a11y-focusable",3,"click","disabled"],["role","grid",1,"ac-accessibility-grid-table"],["role","rowgroup"],["role","row",1,"table-rendering-layer"],["scope","col","role","columnheader",1,"top-left-table-header","ac-a11y-focusable","show-on-focus",3,"focus","blur"],[1,"ac-screen-reader-only-content"],["scope","col","role","columnheader","class","top-left-table-header ac-a11y-focusable",3,"focus","blur",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],
["role","row","class","table-rendering-layer series-row",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["role","status","aria-live","polite",1,"ac-screen-reader-only-content"],["scope","col","role","columnheader",1,"top-left-table-header","ac-a11y-focusable",3,"focus","blur"],["scope","col","role","columnheader",1,"positioned-table-header",3,"ngStyle"],[1,"ac-screen-reader-only-content","show-on-focus","ac-a11y-focusable",3,"click","focus","blur"],["role","row",1,"table-rendering-layer","series-row"],
["scope","row","role","rowheader",1,"positioned-table-header",3,"ngStyle"],["class","positioned-table-header","role","gridcell",3,"ngStyle",4,"ngIf"],["role","gridcell",1,"positioned-table-header",3,"ngStyle"],[1,"ac-screen-reader-only-content","show-on-focus","ac-a11y-focusable",3,"click","focus","blur","disabled"],["hidden",""],["role","presentation",1,"audio-chart-icon",3,"svgIcon"],["role","gridcell",1,"ac-a11y-focus-within","positioned-table-value",3,"ngStyle"],[1,"ac-screen-reader-only-content",
3,"click","focus","blur"],["role","gridcell","colspan","0"]]},template:function(a,b){if(a&1){var c=t();K(0,"button",11);N("click",function(){u(c);b.isActive||(b.isActive=!0,b.gridGenerator&&(b.grid=b.gridGenerator(),PZc(b)),b.columnMaskGenerator&&(b.columnMask=b.columnMaskGenerator()),b.statusUpdate=(new Vl("Table populated. A {NUM_ROWS} \u00d7 {NUM_COLUMNS} (rows \u00d7 columns) datasetis now available.")).format({NUM_COLUMNS:b.internalColumns.length,NUM_ROWS:b.internalRows.length}),b.focused=!0,
b.focusedCell=[0,0]);return v()});Q(1);L();K(2,"p");Q(3);L();K(4,"table",12,0)(6,"thead",13)(7,"tr",14)(8,"th",15,1);N("focus",function(d){u(c);return v(b.focus(d))})("blur",function(d){u(c);return v(b.blur(d))});K(10,"span",16);Q(11);L()();E(12,AEa,4,3,"th",17)(13,EEa,5,10,"ng-container",18);L()();K(14,"tbody",13);E(15,NEa,8,14,"tr",19)(16,OEa,4,0,"tr",20)(17,QEa,4,1,"tr",20);L()();K(18,"p",16);Xf(19,7);L();K(20,"p",16);Xf(21,8);L();K(22,"p",16);Q(23);L();K(24,"p",21);Q(25);L()}a&2&&(I("disabled",
b.focused),If("aria-controls",b.navInstructionsId)("aria-expanded",b.refactorA11yNavInstructions&&b.focused),B(),S(" ",PEa(b),"\n"),B(),wg("hidden",!(b.refactorA11yNavInstructions&&b.focused)),If("id",b.navInstructionsId),B(),S(" ",b.NAV_INSTRUCTIONS,"\n"),B(),wg("ac-a11y-focusable",!0),If("aria-label",b.getAriaLabel())("aria-rowcount",b.internalRows.length+1)("aria-colcount",b.internalColumns.length+1),B(3),If("aria-rowindex",1),B(),If("aria-colindex",1)("tabindex",!b.focusedCell||UZc(b)?0:-1),B(3),
yg(QZc(b)),B(),I("ngIf",b.audioChartsEnabled),B(),I("ngForOf",b.shownColumns(b.internalColumns))("ngForTrackBy",b.trackByIndex),B(2),I("ngForOf",LZc(b,b.internalRows))("ngForTrackBy",b.trackRowById),B(),I("ngIf",LZc(b,b.internalRows).length===0&&b.grid),B(),I("ngIf",!b.grid&&b.gridGenerator&&!b.isActive),B(),If("id",b.columnToggleDescriptionId),B(2),If("id",b.rowToggleDescriptionId),B(2),If("id",b.activateGridCellDescriptionId),B(),S(" ",b.onGridCellActivateDescription,"\n"),B(),If("aria-hidden",
!b.statusUpdate),B(),S(" ",b.statusUpdate,"\n"))},dependencies:[Jy,Mx,Nx,Rx],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]{position:relative}[_nghost-%COMP%]   .ac-accessibility-grid-table[_ngcontent-%COMP%]{position:relative;height:100%;width:100%}.table-rendering-layer[_ngcontent-%COMP%]{will-change:opacity}.series-row[_ngcontent-%COMP%]{position:absolute;top:0px;left:0px}.positioned-table-header[_ngcontent-%COMP%]{position:absolute;white-space:nowrap;text-align:left;padding:0;max-width:100%;background-color:var(--ac-sys-color-extensions-overlay, rgba(255, 255, 255, 0.5))}.positioned-table-value[_ngcontent-%COMP%]{position:absolute;text-align:left;padding:6px;transform:translate(-50%, -50%)}.audio-chart-icon[_ngcontent-%COMP%]{height:1em;width:1em;vertical-align:top;margin-top:-1px}.top-left-table-header[_ngcontent-%COMP%]{position:absolute;text-align:left;padding:0;font-weight:normal;top:0;left:0;background-color:var(--ac-sys-color-extensions-overlay, rgba(255, 255, 255, 0.5))}button.show-on-focus[_ngcontent-%COMP%]:focus, th.show-on-focus[_ngcontent-%COMP%]:focus > span.ac-screen-reader-only-content[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-surface, #fff);font-family:sans-serif;font-size:11px;line-height:1.4em;padding:3px;color:var(--ac-sys-color-extensions-on-surface, #202124)}button.show-on-focus[_ngcontent-%COMP%]:focus.ac-screen-reader-only-content, th.show-on-focus[_ngcontent-%COMP%]:focus > span.ac-screen-reader-only-content.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:unset;height:unset;margin:unset;overflow:unset;position:unset;white-space:unset;width:unset;z-index:unset}th.show-on-focus[_ngcontent-%COMP%]:focus > span.ac-screen-reader-only-content[_ngcontent-%COMP%]{padding:5.5px;display:block}.hidden[_ngcontent-%COMP%]{display:none}/*# sourceMappingURL=ac_accessibility_grid.css.map */"],
changeDetection:0});var VZc=function(a){this.context=a;this.line=this.t0=this.y1=this.y0=this.x1=this.x0=NaN;this.numPoints=0};VZc.prototype.lineStart=function(){this.x0=this.x1=this.y0=this.y1=this.t0=NaN;this.numPoints=0};VZc.prototype.lineEnd=function(){this.numPoints===2?this.context.lineTo(this.x1,this.y1):this.numPoints===3&&WZc(this,this.t0,XZc(this,this.t0));(this.line||this.line!==0&&this.numPoints===1)&&this.context.closePath();this.line=1-this.line};
VZc.prototype.point=function(a,b){var c=NaN;if(a!==this.x1||b!==this.y1){switch(this.numPoints){case 0:this.numPoints=1;this.line?this.context.lineTo(a,b):this.context.moveTo(a,b);break;case 1:this.numPoints=2;break;case 2:this.numPoints=3;WZc(this,XZc(this,c=YZc(this,a,b)),c);break;default:WZc(this,this.t0,c=YZc(this,a,b))}this.x0=this.x1;this.x1=a;this.y0=this.y1;this.y1=b;this.t0=c}};
var YZc=function(a,b,c){var d=a.x1-a.x0;b-=a.x1;var e=(a.y1-a.y0)/d;a=(c-a.y1)/b;return((e<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(e),Math.abs(a),.5*Math.abs((e*b+a*d)/(d+b)))||0},XZc=function(a,b){var c=a.x1-a.x0;return c?(3*(a.y1-a.y0)/c-b)/2:b},WZc=function(a,b,c){var d=a.x0,e=a.x1,f=a.y1,g=(e-d)/3;a.context.bezierCurveTo(d+g,a.y0+g*b,e-g,f-g*c,e,f)};var ZZc={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:1.25,lineCap:"butt"},$Zc={globalAlpha:.3,lineWidth:.5},a_c={globalAlpha:.05},b_c=Object.assign({},ZZc,{lineWidth:1.75}),c_c=Object.assign({},$Zc,{globalAlpha:1}),d_c=Object.assign({},a_c,{globalAlpha:.3}),e_c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:2},f_c=2*Math.PI,g_c=function(a,b){pG.call(this,
a);this.queueService=b;this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1};Y(g_c,pG);h=g_c.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onXAxisChange=function(a,b){Uk(a)&&this.drawInternal(b)};h.onResizeChange=function(a,b){var c=this;qk(a)&&(rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),qG(this,b,this.canvas,this.ctx),this.fullDrawDebounceId=window.setTimeout(function(){c.drawInternal(b)},250)))};
h.onYAxisChange=function(a,b){rl(a)&&this.drawInternal(b)};h.onSeriesSelectionChange=function(a,b){(pBa(a)||il(a,b.scope.layerId))&&this.drawInternal(b)};h.onColorMapChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.unpackForClearing=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;if(!d||d.height<=0||d.width<=0)return null;var e=d.width-d.margins.left-d.margins.right,f=d.height-d.margins.top-d.margins.bottom,g=d.margins.top,k=d.height-d.margins.bottom,l=d.margins.left,r=d.width-d.margins.right;b=!b||!a.colorStrategy.isReady||a.colorStrategy.isReady(b,c);return{config:a,canvasWidth:d.width,canvasHeight:d.height,bounds:{top:g,right:r,bottom:k,left:l},bodyLeft:l,bodyTop:g,bodyBottom:k,
bodyRight:r,bodyWidth:e,bodyHeight:f,isColorMapReady:b}};h.shouldShowShape=function(a,b,c,d,e){return a&&b&&!c&&!d||a&&e&&!c&&d?!1:!0};
h.unpackForDrawing=function(a){var b=this,c=a.scope,d=a.data,e=a.state,f=a.config;a=this.unpackForClearing(a);if(!e||!f||!a)return null;var g=e.xAxis,k=e.yAxis,l=e.seriesSelection,r=e.brush,w=e.lastInteraction,x=a.bodyLeft,C=a.bodyTop,H=a.bodyRight,J=a.bodyWidth,O=a.bodyHeight;if(!(g&&l&&k&&r))return null;var R=sl(k,C,a.bodyBottom,(d==null?0:d.unit)?d.unit:null),V=Xk(g,x,H,d==null?void 0:d.xAxisUnit),ca=Yk(g,x,H,d==null?void 0:d.xAxisUnit);if(!V||!R||!ca||g.min===null||g.max===null)return null;var na=
(c=l.byLayer.entities[c.layerId])?c.selectedSeries.map(function(pc){return pc.seriesId}):[],ua=c?c.hoveredSeries.map(function(pc){return pc.seriesId}):[],ia=Object.values(l.byLayer.entities).filter(function(pc){return!!pc}).some(function(pc){return gl(pc.selectedSeries).length||gl(pc.hoveredSeries).length});c=f.colorStrategy.getShape?function(pc){var rb,Ob;return b.shouldShowShape((rb=f.clickDotInteraction)!=null?rb:!1,ia,na.includes(pc.id),ua.includes(pc.id),(Ob=f.multiselectMode)!=null?Ob:!1)?f.colorStrategy.getShape(pc,
e):""}:null;var Ga,ha,sa,xa=(sa=w==null?void 0:(Ga=w.domain)==null?void 0:Ga.multiselectAnchor)!=null?sa:w==null?void 0:(ha=w.domain)==null?void 0:ha.click,Qa,bb=w==null?void 0:(Qa=w.domain)==null?void 0:Qa.hover,ub,Wb;Ga=(Wb=(ub=f.styles)==null?void 0:ub.lineWidth)!=null?Wb:1.25;var lc;ub=((lc=f.styles)==null?0:lc.lineBorderColor)?Ga*2:Ga;lc=Math.ceil(ub/2);ub=new Path2D;ub.rect(x-lc,C-lc,J+2*lc+1,O+2*lc+1);var fc;return Object.assign({},a,{data:d,colorMap:function(pc){return f.colorStrategy.getColor(pc,
e)},shapeMap:c,shapeStateMap:function(pc){if(f.clickDotInteraction&&xa&&na.includes(pc.id)){var rb=Bl(pc.data||[],ca(xa),null,!0);return{position:pc.data[rb],lineSelectedStatus:1}}return f.clickDotInteraction&&bb&&ua.includes(pc.id)&&!f.multiselectMode?(rb=Bl(pc.data||[],ca(bb),null,!0),{position:pc.data[rb],lineSelectedStatus:2}):{position:null,lineSelectedStatus:0}},shapeBoundingBox:f.colorStrategy.shapeBoundingBox,dataMap:function(pc,rb){return[V(pc.valueOf()),R(rb)]},domainMap:V,rangeMap:R,inverseDomainMap:ca,
selectedSeriesIds:na,hoveredSeriesIds:ua,anySeriesSelectedOrHovered:ia,brushing:r.brushing||!1,xAxisMin:g.min,xAxisMax:g.max,bodyClippingPath:ub,clickDotInteraction:(fc=f.clickDotInteraction)!=null?fc:!1})};h.unpackForGetValues=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;c=c.xAxis;return d&&c&&c.min!==null&&c.max!==null?(c=Yk(c,d.margins.left,d.width-d.margins.right,b==null?void 0:b.xAxisUnit))?{data:b,config:a,inverseDomainMap:c}:null:null};
h.getSeriesIdsBetween=function(a,b,c,d){var e=this.unpackForDrawing(a);if(!e)return null;a=e.config;var f=a.outputPeriodMs,g=a.useLegacyGapDetection,k=e.inverseDomainMap(d),l=[];e.data&&(l=e.data.series.reduce(function(w,x){var C=m(gEa(x,k.valueOf(),0)),H=C.next().value;C=C.next().value;H=x.data[H];C=x.data[C];var J=e.config.pointConnectionMethod;if(!H||!C)return w;J!=="always"&&(J!=="gap_detection"&&J!=="zero_fill"||Cl(f,H,C,g).gapDetected)||w.push({series:x,value:Sk(+H.x,+C.x,H.y,C.y,+k)});J===
"zero_fill"&&Cl(f,H,C,g).gapDetected&&w.push({series:x,value:0});return w},[]).sort(function(w,x){return x.value>w.value?-1:x.value<w.value?1:0}).map(function(w){return w.series}));d=[];a=!1;l=m(l);for(var r=l.next();!r.done;r=l.next()){r=r.value;if(r.id===b||r.id===c)if(a){d.push(r.id);break}else a=!0;a&&d.push(r.id)}return d};
h.getSeriesIdOfClosestLine=function(a,b,c){a=this.unpackForDrawing(a);if(a==null||!a.data)return null;for(var d=Infinity,e=null,f=a.inverseDomainMap(b.x),g=a.inverseDomainMap(c)-a.inverseDomainMap(0),k=m(a.data.series),l=k.next();!l.done;l=k.next()){l=l.value;var r=m(gEa(l,f,g)),w=r.next().value;r=r.next().value;r=Math.min(r,l.data.length-1);for(w=Math.max(0,w);w<r;w++){var x=l.data[w],C=l.data[w+1];x=this.distanceFromSegment([b.x,b.y],a.dataMap(x.x,x.y),a.dataMap(C.x,C.y));x<d&&x<=c&&(d=x,e=l.id)}}return e};
h.getValuesAtPosition=function(a,b){a=this.unpackForGetValues(a);if(a==null||!a.data)return null;b=a.inverseDomainMap(b.x);return Gl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint)};h.getValuesAtTime=function(a,b,c){a=this.unpackForGetValues(a);return a!=null&&a.data?Gl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint,c):null};
h.distanceFromSegment=function(a,b,c){var d=function(f,g){return Math.pow(g[0]-f[0],2)+Math.pow(g[1]-f[1],2)},e=d(b,c);if(e===0)return Math.sqrt(d(a,b));e=((a[0]-b[0])*(c[0]-b[0])+(a[1]-b[1])*(c[1]-b[1]))/e;e=Math.max(0,Math.min(1,e));return Math.sqrt(d(a,[b[0]+e*(c[0]-b[0]),b[1]+e*(c[1]-b[1])]))};
h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(nG(this,this.canvas),this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),a=this.unpackForDrawing(a))){var c,d,e=(d=(c=a.config.styles)==null?void 0:c.lineWidth)!=null?d:1.25;c={lineDrawingOptions:Object.assign({},ZZc,{lineWidth:e,globalAlpha:a.anySeriesSelectedOrHovered&&!a.brushing?.15:1}),bandLineDrawingOptions:$Zc,bandShadingDrawingOptions:a_c};var f=a.selectedSeriesIds;a.brushing||
(f=f.concat(a.hoveredSeriesIds));var g,k;d=(k=(g=a.data)==null?void 0:g.series)!=null?k:[];g=d.filter(function(C){return!f.includes(C.id)});if(g.length){if(k=a.shapeMap){e=new Set;d=m(d);for(var l=d.next();!l.done;l=d.next())e.add(k(l.value));g.length>e.size&&(k=null)}this.drawLines(g,a.domainMap,a.rangeMap,a.colorMap,k,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.bodyClippingPath,a.config,c,a.clickDotInteraction)}var r;c=(r=a.data)==null?void 0:r.series.filter(function(C){return f.includes(C.id)});
if(c==null?0:c.length){var w,x;this.drawLines(c,a.domainMap,a.rangeMap,a.colorMap,a.shapeMap,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.bodyClippingPath,a.config,{lineDrawingOptions:Object.assign({},b_c,{lineWidth:((x=(w=a.config.styles)==null?void 0:w.lineWidth)!=null?x:1.25)+.5}),bandLineDrawingOptions:c_c,bandShadingDrawingOptions:d_c},a.clickDotInteraction)}mG(this,a.xAxisMin,a.xAxisMax);r=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:r});this.enableManualLatencyTracking&&
lG(this)}};
h.drawLines=function(a,b,c,d,e,f,g,k,l,r,w,x){this.ctx.save();a=m(a);for(var C=a.next();!C.done;C=a.next()){C=C.value;var H=d(C),J=e&&e(C),O=f&&f(C),R=void 0;if((R=r.styles)==null?0:R.lineBorderColor){var V=R=void 0,ca=void 0,na=2*((ca=(R=w)==null?void 0:(V=R.lineDrawingOptions)==null?void 0:V.lineWidth)!=null?ca:1);R=Object.assign({},w,{lineDrawingOptions:Object.assign({},w.lineDrawingOptions,{lineWidth:na})});V=void 0;this.drawLine({points:C.data,domainMap:b,rangeMap:c,color:(V=r.styles)==null?
void 0:V.lineBorderColor,shape:J,shapeState:O,shapeBoundingBox:g,bounds:k,bodyClippingPath:l,outputPeriodMs:r.outputPeriodMs,pointConnectionMethod:r.pointConnectionMethod,useLegacyGapDetection:r.useLegacyGapDetection,drawingOptions:R,lineInterpolationMethod:r.lineInterpolationMethod,clickDotInteraction:x})}R=void 0;this.drawLine({points:C.data,domainMap:b,rangeMap:c,color:H,shape:J,shapeState:O,shapeBoundingBox:g,bounds:k,bodyClippingPath:l,outputPeriodMs:r.outputPeriodMs,pointConnectionMethod:r.pointConnectionMethod,
useLegacyGapDetection:r.useLegacyGapDetection,drawingOptions:Object.assign({},w,{lineDrawingOptions:Object.assign({},w.lineDrawingOptions,{lineDash:(R=r.styles)==null?void 0:R.lineDash})}),lineInterpolationMethod:r.lineInterpolationMethod,clickDotInteraction:x})}this.ctx.restore()};
h.drawLine=function(a){var b=a.domainMap,c=a.rangeMap,d=a.color,e=a.shape,f=a.shapeState,g=a.shapeBoundingBox,k=a.bounds,l=a.bodyClippingPath,r=a.outputPeriodMs,w=a.pointConnectionMethod,x=a.useLegacyGapDetection,C=a.drawingOptions,H=a.lineInterpolationMethod,J=a.clickDotInteraction,O=a.points;if(O.length){var R=r||Infinity,V=[],ca=[],na,ua,ia,Ga,ha=typeof((na=O)==null?void 0:(ua=na[0])==null?void 0:ua.min)==="number"&&typeof((ia=O)==null?void 0:(Ga=ia[0])==null?void 0:Ga.max)==="number",sa=void 0,
xa=null,Qa=[],bb=[],ub=void 0,Wb=function(Wi,qm){ub?(ub.x=Wi,ub.y=qm):ub={x:Wi,y:qm}},lc=typeof d==="string"?void 0:d,fc=!!lc,pc=[];if(fc){var rb=this.generateMulticolorPoints(O,lc),Ob=rb.linePathsColors;O=rb.multicolorPoints;pc=Ob}for(var ib=0;ib<O.length;ib++){var $b=O[ib-1]||null,rc=O[ib],Ec=b(rc.x.valueOf()),Rb=void 0,Bc=m(cl([Ec,c(rc.y)],(Rb=C.lineDrawingOptions.lineWidth)!=null?Rb:1)),Rc=Bc.next().value,Cd=Bc.next().value,Yc=Rc,je=Cd,bf=void 0,Ue=void 0,fg=void 0;if(ha){var Nw=void 0,cp=void 0,
Dj=void 0,Rm=m(cl([Ec,c((Nw=rc.min)!=null?Nw:rc.y),c((cp=rc.max)!=null?cp:rc.y)],(Dj=C.bandLineDrawingOptions.lineWidth)!=null?Dj:1));bf=Rm.next().value;Ue=Rm.next().value;fg=Rm.next().value}(!xa||Yc>xa[0])&&Yc>=k.left-1&&Yc<=k.right+1&&je>=k.top-1&&je<=k.bottom+1&&(xa=[Yc,je]);var Hq=!1,Ow=0,fk=!1;if($b){if(w==="gap_detection"||w==="zero_fill"){var Sm=Cl(R,$b,rc,x);Hq=Sm.gapDetected;Ow=Sm.gapWidthMs}if(rc.tileDomain&&$b.tileDomain&&rc.tileDomain!==$b.tileDomain){var dp=m($b.tileDomain),Pw=dp.next().value,
bF=dp.next().value,Dl=Pw,cF=bF,kX=m(rc.tileDomain),m9=kX.next().value,n9=kX.next().value,yqa=m9;if(Dl>n9||yqa>cF)fk=!0}}if(Hq||fk||w==="never")if(fk||w!=="zero_fill")Qa.length&&V.push(Qa),Qa=[[Yc,je]],ha&&(ca.push(bb),bb=[],bf!==void 0&&Ue!==void 0&&fg!==void 0&&bb.push([bf,Ue,fg]));else{for(var lX=Ow/R-1,cy=rc.x.valueOf()>$b.x.valueOf(),dy=cy?$b.x.valueOf()+R:$b.x.valueOf()-R,mX=0;mX<lX;mX++){var gO=void 0,o9=m(cl([b(dy),c(0)],(gO=C.lineDrawingOptions.lineWidth)!=null?gO:1)),p9=o9.next().value,hO=
o9.next().value,DH=p9,EH=hO;Qa.push([DH,EH]);sa=el(sa,DH,EH,ub,k);if(ha){var nX=m(cl([b(dy),c(0)],C.bandLineDrawingOptions.lineWidth)),oX=nX.next().value,ZB=nX.next().value;bb.push([oX,ZB,ZB])}Wb(DH,EH);dy=cy?dy+R:dy-R}Qa.push([Yc,je]);sa=el(sa,Yc,je,ub,k);ha&&bf!==void 0&&Ue!==void 0&&fg!==void 0&&bb.push([bf,Ue,fg])}else Qa.push([Yc,je]),sa=el(sa,Yc,je,ub,k),ha&&bf!==void 0&&Ue!==void 0&&fg!==void 0&&bb.push([bf,Ue,fg]);Wb(Yc,je)}Qa.length&&V.push(Qa);ha&&bb.length&&ca.push(bb);if(w==="zero_fill"&&
r&&V.length&&V[0].length&&V[V.length-1].length){var wr=Math.abs(b(r)-b(0)),Vj=V[0],jl=V[V.length-1],$B=Vj[0][0]<jl[jl.length-1][0],Ys=c(0),xr=function(Wi,qm,aC){var Dv=aC?{x:Wi[0][0],y:Wi[0][1]}:{x:Wi[Wi.length-1][0],y:Wi[Wi.length-1][1]},iO;qm=m(cl([qm,Ys],(iO=C.lineDrawingOptions.lineWidth)!=null?iO:1));iO=qm.next().value;qm=qm.next().value;if((!$B&&aC||$B&&!aC)&&iO>Dv.x||(!$B&&!aC||$B&&aC)&&iO<Dv.x)sa=el(sa,iO,qm,Dv,k),aC?Wi.unshift([iO,qm]):Wi.push([iO,qm])};$B?(xr(Vj,Vj[0][0]-wr,!0),xr(Vj,k.left,
!0),xr(jl,jl[jl.length-1][0]+wr,!1),xr(jl,k.right,!1)):(xr(Vj,Vj[0][0]+wr,!0),xr(Vj,k.right,!0),xr(jl,jl[jl.length-1][0]-wr,!1),xr(jl,k.left,!1))}this.ctx.save();if(ca.length){fc||(this.ctx.fillStyle=Zk(d,this.base),this.ctx.strokeStyle=Zk(d,this.base));for(var jO=m(ca),pX=jO.next();!pX.done;pX=jO.next()){var Ev=pX.value;if(Ev.length!==0){var FH=m(Ev[0]),kO=FH.next().value,Fv=FH.next().value,qX=FH.next().value,Go=kO,bC=Fv,ey=qX,kl=new Path2D,yr=new Path2D,ll=new Path2D;if(Ev.length===1)kl.moveTo(Go-
2,bC),kl.lineTo(Go+2,bC),yr.moveTo(Go-2,ey),yr.lineTo(Go+2,ey),ll.moveTo(Go-2,ey),ll.lineTo(Go+2,ey),ll.lineTo(Go+2,bC),ll.lineTo(Go-2,bC);else{kl.moveTo(Go,bC);yr.moveTo(Go,ey);ll.moveTo(Go,ey);for(var Gv=1;Gv<Ev.length;Gv++){var Hv=m(Ev[Gv]),Zs=Hv.next().value,lO=Hv.next().value,dh=Hv.next().value,zqa=Zs,MHa=dh;kl.lineTo(zqa,lO);yr.lineTo(zqa,MHa);ll.lineTo(zqa,MHa)}for(var Aqa=Ev.length-1;Aqa>=0;Aqa--){var q9=m(Ev[Aqa]),NHa=q9.next().value,Bqa=q9.next().value;ll.lineTo(NHa,Bqa)}}ll.closePath();
$k(this.ctx,C.bandShadingDrawingOptions,this.base);this.ctx.fill(ll);$k(this.ctx,C.bandLineDrawingOptions,this.base);this.ctx.stroke(kl);this.ctx.stroke(yr)}}}$k(this.ctx,C.lineDrawingOptions,this.base);var Cqa;this.ctx.lineWidth=(Cqa=C.lineDrawingOptions.lineWidth)!=null?Cqa:1;fc||(this.ctx.strokeStyle=Zk(d,this.base),this.ctx.fillStyle=Zk(d,this.base));this.applyPathsToCanvas(V,pc,w,H,fc,l);$k(this.ctx,e_c,this.base);if(e)if(J&&f.position&&f.lineSelectedStatus!==0)this.drawShapeWithinBounds(b(f.position.x.valueOf()),
c(f.position.y),k,e,g,f.lineSelectedStatus,J);else if(sa&&w!=="never"&&this.drawShapeOrInterpolate(sa,k,e,g,f.lineSelectedStatus,J),xa&&(w==="never"||!sa)){var OHa=m(xa),i3a=OHa.next().value,$s=OHa.next().value;this.drawShapeWithinBounds(i3a,$s,k,e,g,f.lineSelectedStatus,J)}this.ctx.restore()}};
h.applyPathsToCanvas=function(a,b,c,d,e,f){this.ctx.save();this.ctx.clip(f);this.ctx.beginPath();switch(d){case "linear":d=m(a);for(a=d.next();!a.done;a=d.next())if(a=a.value,a[0]){var g=m(a[0]);f=g.next().value;g=g.next().value;this.ctx.moveTo(f,g);if(a.length===1)this.drawSinglePoint(f,g,c);else for(f=1;f<a.length;f++){var k=m(a[f]);g=k.next().value;k=k.next().value;this.ctx.lineTo(g,k);e&&(this.ctx.strokeStyle=Zk(b[f-1],this.base),this.ctx.fillStyle=Zk(b[f-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),
this.ctx.moveTo(g,k))}}break;case "step-before":case "step-after":a=m(a);for(f=a.next();!f.done;f=a.next())if(f=f.value,f[0]){k=m(f[0]);g=k.next().value;var l=k.next().value;k=g;var r=l;this.ctx.moveTo(k,r);if(f.length===1)this.drawSinglePoint(k,r,c);else for(g=1;g<f.length;g++){l=m([k,r]);k=l.next().value;var w=l.next().value;l=k;r=m(f[g]);k=r.next().value;r=r.next().value;d==="step-before"?this.ctx.lineTo(l,r):this.ctx.lineTo(k,w);this.ctx.lineTo(k,r);e&&(this.ctx.strokeStyle=Zk(b[g-1],this.base),
this.ctx.fillStyle=Zk(b[g-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(k,r))}}break;case "monotonicX":b=new VZc(this.ctx);e=m(a);for(d=e.next();!d.done;d=e.next())if(d=d.value,d[0])if(f=m(d[0]),a=f.next().value,f=f.next().value,b.lineStart(),b.point(a,f),d.length===1)this.drawSinglePoint(a,f,c);else{for(a=1;a<d.length;a++)g=m(d[a]),f=g.next().value,g=g.next().value,b.point(f,g);b.lineEnd()}break;default:wb(d,"value not in LineInterpolationMethod type.")}this.ctx.stroke();this.ctx.restore()};
h.drawSinglePoint=function(a,b,c){c==="never"?(this.ctx.beginPath(),this.ctx.arc(a,b,2,0,f_c),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()):(this.ctx.moveTo(a-2,b),this.ctx.lineTo(a+2,b))};
h.drawShape=function(a,b,c,d,e,f){e=e===void 0?0:e;var g=(f=f===void 0?!1:f)?12:16.8;this.ctx.moveTo(a,b);a=jBa(a,b,c,d?g/d.width:1);f&&e===1?(this.ctx.save(),this.ctx.globalAlpha=1,this.ctx.lineWidth=3,this.ctx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.stroke(a),this.ctx.fill(a),this.ctx.restore(),this.ctx.save(),this.ctx.globalAlpha=1,this.ctx.lineWidth=3,this.ctx.strokeStyle=this.ctx.fillStyle,
this.ctx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.stroke(a),this.ctx.fill(a),this.ctx.restore(),this.ctx.globalAlpha=.25,this.ctx.fill(a),this.ctx.globalAlpha=1):(this.ctx.save(),this.ctx.globalAlpha=1,f&&(this.ctx.lineWidth=3),this.ctx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.stroke(a),this.ctx.fill(a),this.ctx.restore(),this.ctx.fill(a))};
h.drawShapeWithinBounds=function(a,b,c,d,e,f,g){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e,f===void 0?0:f,g===void 0?!1:g)};
h.drawShapeOrInterpolate=function(a,b,c,d,e,f){if(c&&a){var g=a.x1,k=a.y1;a.x0>a.x1&&(g=a.x0,k=a.y0);g>b.right+1&&(g=Math.max(b.right,Math.min(a.x0,a.x1)),k=Tk(a.x0,a.y0,a.x1,a.y1,g));k<b.top-1&&(k=Math.min(b.top,Math.max(a.y0,a.y1)),g=Tk(a.y0,a.x0,a.y1,a.x1,k));k>b.bottom+1&&(k=Math.max(b.bottom,Math.min(a.y0,a.y1)),g=Tk(a.y0,a.x0,a.y1,a.x1,k));this.drawShapeWithinBounds(g,k,b,c,d,e===void 0?0:e,f===void 0?!1:f)}};
h.generateMulticolorPoints=function(a,b){var c=[],d=[];c.push(a[0]);for(var e=1;e<a.length;e++){var f=a[e-1],g=a[e],k=[].concat(q(b));f.y>g.y&&k.reverse();k=m(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,f.x!==g.x&&l.interval.min<=f.y&&f.y<=l.interval.max){var r=0;if(f.y===g.y){r=g.x;var w=g.y}else w=f.y<g.y?Math.min(g.y,l.interval.max):Math.max(g.y,l.interval.min),typeof g.x==="number"&&typeof f.x==="number"?r=f.x+(g.x-f.x)*(w-f.y)/(g.y-f.y):g.x instanceof Date&&f.x instanceof Date&&(r=
new Date(f.x.valueOf()+(g.x.valueOf()-f.x.valueOf())*(w-f.y)/(g.y-f.y)));f={x:r,y:w};c.push(f);d.push(l.color)}}return{multicolorPoints:c,linePathsColors:d}};h.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var h_c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:1.25},i_c={globalAlpha:.3,lineWidth:.5},j_c={globalAlpha:.05},k_c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:2},l_c=2*Math.PI,m_c=function(a,b){pG.call(this,a);this.queueService=b;this.shapeCanvas=document.createElement("canvas");this.bandCanvas=document.createElement("canvas");this.bandCanvasAttached=
!1;this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1;this.shapeCanvas.setAttribute("aria-hidden","true");this.shapeCanvas.style.position="absolute";b=this.shapeCanvas.getContext("2d");if(!b)throw Error("Ec");this.shapeCtx=b;this.bandCanvas.setAttribute("aria-hidden","true");this.bandCanvas.style.position="absolute";b=this.bandCanvas.getContext("2d");if(!b)throw Error("Ec");this.bandCtx=b;a.appendChild(this.shapeCanvas)};Y(m_c,pG);h=m_c.prototype;h.drawV1=function(a){this.drawInternal(a)};
h.onXAxisChange=function(a,b){Uk(a)&&this.drawInternal(b)};h.onResizeChange=function(a,b){var c=this;qk(a)&&(rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),qG(this,b,this.canvas,this.ctx),qG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=setTimeout(function(){c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){rl(a)&&this.drawInternal(b)};h.onSeriesSelectionChange=function(a,b){pBa(a)&&this.drawInternal(b)};
h.onColorMapChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.unpackForClearing=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;if(!d||d.height<=0||d.width<=0)return null;var e=d.width-d.margins.left-d.margins.right,f=d.height-d.margins.top-d.margins.bottom,g=d.margins.top,k=d.height-d.margins.bottom,l=d.margins.left,r=d.width-d.margins.right;b=!b||!a.colorStrategy.isReady||a.colorStrategy.isReady(b,c);return{config:a,canvasWidth:d.width,canvasHeight:d.height,bounds:{top:g,right:r,bottom:k,left:l},bodyLeft:l,bodyTop:g,bodyBottom:k,
bodyRight:r,bodyWidth:e,bodyHeight:f,isColorMapReady:b}};h.shouldShowShape=function(a,b,c,d,e){return a&&b&&!c&&!d||a&&e&&!c&&d?!1:!0};
h.unpackForDrawing=function(a){var b=this,c=a.scope,d=a.data,e=a.state,f=a.config;a=this.unpackForClearing(a);if(!e||!f||!a)return null;var g=e.xAxis,k=e.yAxis,l=e.seriesSelection,r=e.brush,w=e.lastInteraction,x=a.bodyLeft,C=a.bodyRight;if(!(g&&l&&k&&r))return null;var H=sl(k,a.bodyTop,a.bodyBottom,(d==null?0:d.unit)?d.unit:null),J=Xk(g,x,C,d==null?void 0:d.xAxisUnit),O=Yk(g,x,C,d==null?void 0:d.xAxisUnit);if(!J||!H||!O||g.min===null||g.max===null)return null;var R=(c=l.byLayer.entities[c.layerId])?
c.selectedSeries.map(function(Qa){return Qa.seriesId}):[],V=c?c.hoveredSeries.map(function(Qa){return Qa.seriesId}):[],ca=Object.values(l.byLayer.entities).filter(function(Qa){return!!Qa}).some(function(Qa){return gl(Qa.selectedSeries).length||gl(Qa.hoveredSeries).length});c=f.colorStrategy.getShape?function(Qa){var bb,ub;return b.shouldShowShape((bb=f.clickDotInteraction)!=null?bb:!1,ca,R.includes(Qa.id),V.includes(Qa.id),(ub=f.multiselectMode)!=null?ub:!1)?f.colorStrategy.getShape(Qa,e):""}:null;
var na,ua,ia,Ga=(ia=w==null?void 0:(na=w.domain)==null?void 0:na.multiselectAnchor)!=null?ia:w==null?void 0:(ua=w.domain)==null?void 0:ua.click,ha,sa=w==null?void 0:(ha=w.domain)==null?void 0:ha.hover,xa;return Object.assign({},a,{data:d,colorMap:function(Qa){return f.colorStrategy.getColor(Qa,e)},shapeMap:c,shapeStateMap:function(Qa){if(f.clickDotInteraction&&Ga&&R.includes(Qa.id)){var bb=Bl(Qa.data||[],O(Ga),null,!0);return{position:Qa.data[bb],lineSelectedStatus:1}}return f.clickDotInteraction&&
sa&&V.includes(Qa.id)&&!f.multiselectMode?(bb=Bl(Qa.data||[],O(sa),null,!0),{position:Qa.data[bb],lineSelectedStatus:2}):{position:null,lineSelectedStatus:0}},shapeBoundingBox:f.colorStrategy.shapeBoundingBox,dataMap:function(Qa,bb){return[J(Qa.valueOf()),H(bb)]},domainMap:J,rangeMap:H,inverseDomainMap:O,selectedSeriesIds:R,hoveredSeriesIds:V,anySeriesSelectedOrHovered:ca,brushing:r.brushing||!1,xAxisMin:g.min,xAxisMax:g.max,clickDotInteraction:(xa=f.clickDotInteraction)!=null?xa:!1})};
h.unpackForGetValues=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;c=c.xAxis;return d&&c&&c.min!==null&&c.max!==null?(c=Yk(c,d.margins.left,d.width-d.margins.right,b==null?void 0:b.xAxisUnit))?{data:b,config:a,inverseDomainMap:c}:null:null};
h.getSeriesIdsBetween=function(a,b,c,d){var e=this.unpackForDrawing(a);if(!e)return null;a=e.config;var f=a.outputPeriodMs,g=a.useLegacyGapDetection,k=e.inverseDomainMap(d),l=[];e.data&&(l=e.data.series.reduce(function(w,x){var C=m(gEa(x,k.valueOf(),0)),H=C.next().value;C=C.next().value;H=x.data[H];C=x.data[C];var J=e.config.pointConnectionMethod;if(!H||!C)return w;J!=="always"&&(J!=="gap_detection"&&J!=="zero_fill"||Cl(f,H,C,g).gapDetected)||w.push({series:x,value:Sk(+H.x,+C.x,H.y,C.y,+k)});J===
"zero_fill"&&Cl(f,H,C,g).gapDetected&&w.push({series:x,value:0});return w},[]).sort(function(w,x){return x.value>w.value?-1:x.value<w.value?1:0}).map(function(w){return w.series}));d=[];a=!1;l=m(l);for(var r=l.next();!r.done;r=l.next()){r=r.value;if(r.id===b||r.id===c)if(a){d.push(r.id);break}else a=!0;a&&d.push(r.id)}return d};
h.getSeriesIdOfClosestLine=function(a,b,c){a=this.unpackForDrawing(a);if(a==null||!a.data)return null;for(var d=Infinity,e=null,f=a.inverseDomainMap(b.x),g=a.inverseDomainMap(c)-a.inverseDomainMap(0),k=m(a.data.series),l=k.next();!l.done;l=k.next()){l=l.value;var r=m(gEa(l,f,g)),w=r.next().value;r=r.next().value;r=Math.min(r,l.data.length-1);for(w=Math.max(0,w);w<r;w++){var x=l.data[w],C=l.data[w+1];x=this.distanceFromSegment([b.x,b.y],a.dataMap(x.x,x.y),a.dataMap(C.x,C.y));x<d&&x<=c&&(d=x,e=l.id)}}return e};
h.getValuesAtPosition=function(a,b){a=this.unpackForGetValues(a);if(a==null||!a.data)return null;b=a.inverseDomainMap(b.x);return Gl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint)};h.getValuesAtTime=function(a,b,c){a=this.unpackForGetValues(a);return a!=null&&a.data?Gl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint,c):null};
h.distanceFromSegment=function(a,b,c){var d=function(f,g){return Math.pow(g[0]-f[0],2)+Math.pow(g[1]-f[1],2)},e=d(b,c);if(e===0)return Math.sqrt(d(a,b));e=((a[0]-b[0])*(c[0]-b[0])+(a[1]-b[1])*(c[1]-b[1]))/e;e=Math.max(0,Math.min(1,e));return Math.sqrt(d(a,[b[0]+e*(c[0]-b[0]),b[1]+e*(c[1]-b[1])]))};
h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";bl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.bandCanvas.style.left="0px";this.bandCanvas.style.top="0px";bl(this.bandCanvas,this.base,a.canvasHeight,a.canvasWidth);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(nG(this,this.canvas),nG(this,this.shapeCanvas),this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),a=this.unpackForDrawing(a))){var c,d,e=(d=(c=a.config.styles)==null?void 0:c.lineWidth)!=null?d:1.25;c=Math.ceil(Math.max(0,e-1.25)/2);this.ctx.save();d=new Path2D;d.rect(a.bodyLeft,a.bodyTop-c,a.bodyWidth,a.bodyHeight+2*c+1);this.ctx.clip(d);c=a.anySeriesSelectedOrHovered&&!a.brushing;
e={lineDrawingOptions:Object.assign({},h_c,{lineWidth:e,globalAlpha:c?.15:1}),bandLineDrawingOptions:i_c,bandShadingDrawingOptions:j_c};this.shapeCtx.globalAlpha=c?.15:1;var f;c=(f=a.data)==null?void 0:f.series;if(c==null?0:c.length){if(f=a.shapeMap){d=new Set;for(var g=m(c),k=g.next();!k.done;k=g.next())d.add(f(k.value));c.length>d.size&&(f=null)}this.drawLines(c,a.domainMap,a.rangeMap,a.colorMap,f,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.config,e,a.clickDotInteraction)}this.ctx.restore();mG(this,
a.xAxisMin,a.xAxisMax);a=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a});this.enableManualLatencyTracking&&lG(this)}};
h.drawLines=function(a,b,c,d,e,f,g,k,l,r,w){this.ctx.save();var x;$k(this.ctx,Object.assign({},r.lineDrawingOptions,{lineDash:(x=l.styles)==null?void 0:x.lineDash}),this.base);$k(this.shapeCtx,k_c,this.base);x=!1;a=m(a);for(var C=a.next();!C.done;C=a.next()){C=C.value;var H=d(C),J=e&&e(C),O=f&&f(C),R=void 0;if((R=l.styles)==null?0:R.lineBorderColor){var V=R=void 0,ca=void 0,na=2*((ca=(R=r)==null?void 0:(V=R.lineDrawingOptions)==null?void 0:V.lineWidth)!=null?ca:1);R=Object.assign({},r,{lineDrawingOptions:Object.assign({},
r.lineDrawingOptions,{lineWidth:na})});V=void 0;this.drawLine({points:C.data,domainMap:b,rangeMap:c,color:(V=l.styles)==null?void 0:V.lineBorderColor,shape:J,shapeState:O,shapeBoundingBox:g,bounds:k,outputPeriodMs:l.outputPeriodMs,pointConnectionMethod:l.pointConnectionMethod,useLegacyGapDetection:l.useLegacyGapDetection,drawingOptions:R,lineInterpolationMethod:l.lineInterpolationMethod,clickDotInteraction:w})}C=this.drawLine({points:C.data,domainMap:b,rangeMap:c,color:H,shape:J,shapeState:O,shapeBoundingBox:g,
bounds:k,outputPeriodMs:l.outputPeriodMs,pointConnectionMethod:l.pointConnectionMethod,useLegacyGapDetection:l.useLegacyGapDetection,drawingOptions:r,lineInterpolationMethod:l.lineInterpolationMethod,clickDotInteraction:w}).drewBands;x||(x=C)}x&&!this.bandCanvasAttached&&(this.base.insertBefore(this.bandCanvas,this.canvas),this.bandCanvasAttached=!0);this.ctx.restore()};
h.drawLine=function(a){var b=a.domainMap,c=a.rangeMap,d=a.color,e=a.shape,f=a.shapeState,g=a.shapeBoundingBox,k=a.bounds,l=a.outputPeriodMs,r=a.pointConnectionMethod,w=a.useLegacyGapDetection,x=a.drawingOptions,C=a.lineInterpolationMethod,H=a.clickDotInteraction,J=a.points;if(!J.length)return{drewBands:!1};var O=l||Infinity,R=[],V=[],ca,na,ua,ia,Ga=typeof((ca=J)==null?void 0:(na=ca[0])==null?void 0:na.min)==="number"&&typeof((ua=J)==null?void 0:(ia=ua[0])==null?void 0:ia.max)==="number",ha=void 0,
sa=null,xa=[],Qa=[],bb=void 0,ub=function($s,Wi){bb?(bb.x=$s,bb.y=Wi):bb={x:$s,y:Wi}},Wb=typeof d==="string"?void 0:d,lc=!!Wb,fc=[];if(lc){var pc=this.generateMulticolorPoints(J,Wb),rb=pc.linePathsColors;J=pc.multicolorPoints;fc=rb}for(var Ob=0;Ob<J.length;Ob++){var ib=J[Ob-1]||null,$b=J[Ob],rc=b($b.x.valueOf()),Ec=void 0,Rb=m(cl([rc,c($b.y)],(Ec=x.lineDrawingOptions.lineWidth)!=null?Ec:1)),Bc=Rb.next().value,Rc=Rb.next().value,Cd=Bc,Yc=Rc,je=void 0,bf=void 0,Ue=void 0;if(Ga){var fg=void 0,Nw=void 0,
cp=void 0,Dj=m(cl([rc,c((fg=$b.min)!=null?fg:$b.y),c((Nw=$b.max)!=null?Nw:$b.y)],(cp=x.bandLineDrawingOptions.lineWidth)!=null?cp:1));je=Dj.next().value;bf=Dj.next().value;Ue=Dj.next().value}(!sa||Cd>sa[0])&&Cd>=k.left-1&&Cd<=k.right+1&&Yc>=k.top-1&&Yc<=k.bottom+1&&(sa=[Cd,Yc]);var Rm=!1,Hq=0,Ow=!1;if(ib){if(r==="gap_detection"||r==="zero_fill"){var fk=Cl(O,ib,$b,w);Rm=fk.gapDetected;Hq=fk.gapWidthMs}if($b.tileDomain&&ib.tileDomain&&$b.tileDomain!==ib.tileDomain){var Sm=m(ib.tileDomain),dp=Sm.next().value,
Pw=Sm.next().value,bF=dp,Dl=Pw,cF=m($b.tileDomain),kX=cF.next().value,m9=cF.next().value,n9=kX;if(bF>m9||n9>Dl)Ow=!0}}if(Rm||Ow||r==="never")if(Ow||r!=="zero_fill")xa.length&&R.push(xa),xa=[[Cd,Yc]],Ga&&(V.push(Qa),Qa=[],je!==void 0&&bf!==void 0&&Ue!==void 0&&Qa.push([je,bf,Ue]));else{for(var yqa=Hq/O-1,lX=$b.x.valueOf()>ib.x.valueOf(),cy=lX?ib.x.valueOf()+O:ib.x.valueOf()-O,dy=0;dy<yqa;dy++){var mX=void 0,gO=m(cl([b(cy),c(0)],(mX=x.lineDrawingOptions.lineWidth)!=null?mX:1)),o9=gO.next().value,p9=
gO.next().value,hO=o9,DH=p9;xa.push([hO,DH]);ha=el(ha,hO,DH,bb,k);if(Ga){var EH=m(cl([b(cy),c(0)],x.bandLineDrawingOptions.lineWidth)),nX=EH.next().value,oX=EH.next().value;Qa.push([nX,oX,oX])}ub(hO,DH);cy=lX?cy+O:cy-O}xa.push([Cd,Yc]);ha=el(ha,Cd,Yc,bb,k);Ga&&je!==void 0&&bf!==void 0&&Ue!==void 0&&Qa.push([je,bf,Ue])}else xa.push([Cd,Yc]),ha=el(ha,Cd,Yc,bb,k),Ga&&je!==void 0&&bf!==void 0&&Ue!==void 0&&Qa.push([je,bf,Ue]);ub(Cd,Yc)}xa.length&&R.push(xa);Ga&&Qa.length&&V.push(Qa);if(r==="zero_fill"&&
l&&R.length&&R[0].length&&R[R.length-1].length){var ZB=Math.abs(b(l)-b(0)),wr=R[0],Vj=R[R.length-1],jl=wr[0][0]<Vj[Vj.length-1][0],$B=c(0),Ys=function($s,Wi,qm){var aC=qm?{x:$s[0][0],y:$s[0][1]}:{x:$s[$s.length-1][0],y:$s[$s.length-1][1]},Dv;Wi=m(cl([Wi,$B],(Dv=x.lineDrawingOptions.lineWidth)!=null?Dv:1));Dv=Wi.next().value;Wi=Wi.next().value;if((!jl&&qm||jl&&!qm)&&Dv>aC.x||(!jl&&!qm||jl&&qm)&&Dv<aC.x)ha=el(ha,Dv,Wi,aC,k),qm?$s.unshift([Dv,Wi]):$s.push([Dv,Wi])};jl?(Ys(wr,wr[0][0]-ZB,!0),Ys(wr,k.left,
!0),Ys(Vj,Vj[Vj.length-1][0]+ZB,!1),Ys(Vj,k.right,!1)):(Ys(wr,wr[0][0]+ZB,!0),Ys(wr,k.right,!0),Ys(Vj,Vj[Vj.length-1][0]-ZB,!1),Ys(Vj,k.left,!1))}this.ctx.save();var xr;this.ctx.lineWidth=(xr=x.lineDrawingOptions.lineWidth)!=null?xr:1;lc||(this.ctx.strokeStyle=Zk(d,this.base),this.shapeCtx.fillStyle=Zk(d,this.base));this.applyPathsToCanvas(R,fc,r,C,lc);if(e)if(H&&f.position&&f.lineSelectedStatus!==0)this.drawShapeWithinBounds(b(f.position.x.valueOf()),c(f.position.y),k,e,g,f.lineSelectedStatus,H);
else if(ha&&r!=="never"&&this.drawShapeOrInterpolate(ha,k,e,g,f.lineSelectedStatus,H),sa&&(r==="never"||!ha)){var jO=m(sa),pX=jO.next().value,Ev=jO.next().value;this.drawShapeWithinBounds(pX,Ev,k,e,g,f.lineSelectedStatus,H)}if(V.length){lc||(this.bandCtx.fillStyle=Zk(d,this.base),this.bandCtx.strokeStyle=Zk(d,this.base));for(var FH=m(V),kO=FH.next();!kO.done;kO=FH.next()){var Fv=kO.value;if(Fv.length!==0){var qX=m(Fv[0]),Go=qX.next().value,bC=qX.next().value,ey=qX.next().value,kl=Go,yr=bC,ll=ey,Gv=
new Path2D,Hv=new Path2D,Zs=new Path2D;if(Fv.length===1)Gv.moveTo(kl-2,yr),Gv.lineTo(kl+2,yr),Hv.moveTo(kl-2,ll),Hv.lineTo(kl+2,ll),Zs.moveTo(kl-2,ll),Zs.lineTo(kl+2,ll),Zs.lineTo(kl+2,yr),Zs.lineTo(kl-2,yr);else{Gv.moveTo(kl,yr);Hv.moveTo(kl,ll);Zs.moveTo(kl,ll);for(var lO=1;lO<Fv.length;lO++){var dh=m(Fv[lO]),zqa=dh.next().value,MHa=dh.next().value,Aqa=dh.next().value,q9=zqa,NHa=Aqa;Gv.lineTo(q9,MHa);Hv.lineTo(q9,NHa);Zs.lineTo(q9,NHa)}for(var Bqa=Fv.length-1;Bqa>=0;Bqa--){var Cqa=m(Fv[Bqa]),OHa=
Cqa.next().value,i3a=Cqa.next().value;Zs.lineTo(OHa,i3a)}}Zs.closePath();$k(this.bandCtx,x.bandShadingDrawingOptions,this.base);this.bandCtx.fill(Zs);$k(this.bandCtx,x.bandLineDrawingOptions,this.base);this.bandCtx.stroke(Gv);this.bandCtx.stroke(Hv)}}}this.ctx.restore();return{drewBands:!(!Ga||!V.length)}};
h.applyPathsToCanvas=function(a,b,c,d,e){this.ctx.beginPath();switch(d){case "linear":d=m(a);for(a=d.next();!a.done;a=d.next())if(a=a.value,a[0]){var f=m(a[0]),g=f.next().value;f=f.next().value;this.ctx.moveTo(g,f);if(a.length===1)this.drawSinglePoint(g,f,c);else for(g=1;g<a.length;g++){var k=m(a[g]);f=k.next().value;k=k.next().value;this.ctx.lineTo(f,k);e&&(this.ctx.strokeStyle=Zk(b[g-1],this.base),this.shapeCtx.fillStyle=Zk(b[g-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(f,
k))}}break;case "step-before":case "step-after":a=m(a);for(g=a.next();!g.done;g=a.next())if(g=g.value,g[0]){k=m(g[0]);f=k.next().value;var l=k.next().value;k=f;var r=l;this.ctx.moveTo(k,r);if(g.length===1)this.drawSinglePoint(k,r,c);else for(f=1;f<g.length;f++){l=m([k,r]);k=l.next().value;var w=l.next().value;l=k;r=m(g[f]);k=r.next().value;r=r.next().value;d==="step-before"?this.ctx.lineTo(l,r):this.ctx.lineTo(k,w);this.ctx.lineTo(k,r);e&&(this.ctx.strokeStyle=Zk(b[f-1],this.base),this.shapeCtx.fillStyle=
Zk(b[f-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(k,r))}}break;case "monotonicX":b=new VZc(this.ctx);e=m(a);for(d=e.next();!d.done;d=e.next())if(d=d.value,d[0])if(g=m(d[0]),a=g.next().value,g=g.next().value,b.lineStart(),b.point(a,g),d.length===1)this.drawSinglePoint(a,g,c);else{for(a=1;a<d.length;a++)f=m(d[a]),g=f.next().value,f=f.next().value,b.point(g,f);b.lineEnd()}break;default:wb(d,"value not in LineInterpolationMethod type.")}this.ctx.stroke()};
h.drawSinglePoint=function(a,b,c){c==="never"?(this.ctx.beginPath(),this.ctx.arc(a,b,2,0,l_c),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()):(this.ctx.moveTo(a-2,b),this.ctx.lineTo(a+2,b))};
h.drawShape=function(a,b,c,d,e,f){e=e===void 0?0:e;var g=(f=f===void 0?!1:f)?12:16.8;this.shapeCtx.moveTo(a,b);a=jBa(a,b,c,d?g/d.width:1);f&&e===1?(this.shapeCtx.save(),this.shapeCtx.globalAlpha=1,this.shapeCtx.lineWidth=3,this.shapeCtx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.save(),this.shapeCtx.globalAlpha=
1,this.shapeCtx.lineWidth=3,this.shapeCtx.strokeStyle=this.shapeCtx.fillStyle,this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.globalAlpha=.25,this.shapeCtx.fill(a),this.shapeCtx.globalAlpha=1):(this.shapeCtx.save(),this.shapeCtx.globalAlpha=1,f&&(this.shapeCtx.lineWidth=3),this.shapeCtx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",
this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.fill(a))};h.drawShapeWithinBounds=function(a,b,c,d,e,f,g){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e,f===void 0?0:f,g===void 0?!1:g)};
h.drawShapeOrInterpolate=function(a,b,c,d,e,f){if(c&&a){var g=a.x1,k=a.y1;a.x0>a.x1&&(g=a.x0,k=a.y0);g>b.right+1&&(g=Math.max(b.right,Math.min(a.x0,a.x1)),k=Tk(a.x0,a.y0,a.x1,a.y1,g));k<b.top-1&&(k=Math.min(b.top,Math.max(a.y0,a.y1)),g=Tk(a.y0,a.x0,a.y1,a.x1,k));k>b.bottom+1&&(k=Math.max(b.bottom,Math.min(a.y0,a.y1)),g=Tk(a.y0,a.x0,a.y1,a.x1,k));this.drawShapeWithinBounds(g,k,b,c,d,e===void 0?0:e,f===void 0?!1:f)}};
h.generateMulticolorPoints=function(a,b){var c=[],d=[];c.push(a[0]);for(var e=1;e<a.length;e++){var f=a[e-1],g=a[e],k=[].concat(q(b));f.y>g.y&&k.reverse();k=m(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,f.x!==g.x&&l.interval.min<=f.y&&f.y<=l.interval.max){var r=0;if(f.y===g.y){r=g.x;var w=g.y}else w=f.y<g.y?Math.min(g.y,l.interval.max):Math.max(g.y,l.interval.min),typeof g.x==="number"&&typeof f.x==="number"?r=f.x+(g.x-f.x)*(w-f.y)/(g.y-f.y):g.x instanceof Date&&f.x instanceof Date&&(r=
new Date(f.x.valueOf()+(g.x.valueOf()-f.x.valueOf())*(w-f.y)/(g.y-f.y)));f={x:r,y:w};c.push(f);d.push(l.color)}}return{multicolorPoints:c,linePathsColors:d}};h.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var n_c=Object.assign({},h_c,{lineWidth:1.75}),o_c=Object.assign({},i_c,{globalAlpha:1}),p_c=Object.assign({},j_c,{globalAlpha:.3}),q_c=function(){m_c.apply(this,arguments)};Y(q_c,m_c);q_c.prototype.onSeriesSelectionChange=function(a,b){il(a,b.scope.layerId)&&this.drawInternal(b)};
q_c.prototype.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";bl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.bandCanvas.style.left="0px";this.bandCanvas.style.top="0px";bl(this.bandCanvas,this.base,a.canvasHeight,a.canvasWidth);var b=new Path2D;b.rect(a.bodyLeft,
a.bodyTop,a.bodyWidth,a.bodyHeight+1);this.ctx.clip(b);return!0};
q_c.prototype.drawInternal=function(a){if(this.clearInternal(a)&&(a=this.unpackForDrawing(a))){var b=a.selectedSeriesIds;a.brushing||(b=b.concat(a.hoveredSeriesIds));var c,d=(c=a.data)==null?void 0:c.series.filter(function(g){return b.includes(g.id)});if(d==null?0:d.length){var e,f;this.drawLines(d,a.domainMap,a.rangeMap,a.colorMap,a.shapeMap,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.config,{lineDrawingOptions:Object.assign({},n_c,{lineWidth:((f=(e=a.config.styles)==null?void 0:e.lineWidth)!=
null?f:1.25)+.5}),bandLineDrawingOptions:o_c,bandShadingDrawingOptions:p_c},a.clickDotInteraction)}mG(this,a.xAxisMin,a.xAxisMax)}};var s_c=function(a){a=Ewc(a);var b=0,c=a.length,d={a:-1640531527,b:-1640531527,c:314159265},e;for(e=c;e>=12;e-=12,b+=12)d.a+=AH(a,b),d.b+=AH(a,b+4),d.c+=AH(a,b+8),r_c(d);d.c+=c;switch(e){case 11:d.c+=a[b+10]<<24;case 10:d.c+=(a[b+9]&255)<<16;case 9:d.c+=(a[b+8]&255)<<8;case 8:d.b+=AH(a,b+4);d.a+=AH(a,b);break;case 7:d.b+=(a[b+6]&255)<<16;case 6:d.b+=(a[b+5]&255)<<8;case 5:d.b+=a[b+4]&255;case 4:d.a+=AH(a,b);break;case 3:d.a+=(a[b+2]&255)<<16;case 2:d.a+=(a[b+1]&255)<<8;case 1:d.a+=a[b]&255}return r_c(d)},
r_c=function(a){var b=a.a,c=a.b,d=a.c;b=b-c-d^d>>>13;c=c-d-b^b<<8;d-=b;d=d-c^c>>>13;b-=c;b-=d;b^=d>>>12;c=c-d-b^b<<16;d-=b;d=d-c^c>>>5;b-=c;b-=d;b^=d>>>3;c=c-d-b^b<<10;d-=b;d=d-c^c>>>15;a.a=b;a.b=c;return a.c=d},AH=function(a,b){return t_c(a[b])+(t_c(a[b+1])<<8)+(t_c(a[b+2])<<16)+(t_c(a[b+3])<<24)},t_c=function(a){return a>127?a-256:a};var UEa="var(--ac-sys-color-palette-category1, #1A73E8);var(--ac-sys-color-palette-category2, #129EAF);var(--ac-sys-color-palette-category3, #D01884);var(--ac-sys-color-palette-category4, #E64A19);var(--ac-sys-color-palette-category5, #7627BB);var(--ac-sys-color-palette-category6, #34A853);var(--ac-sys-color-palette-category7, #283593);var(--ac-sys-color-palette-category8, #455A64);var(--ac-sys-color-palette-category9, #EF6C00);var(--ac-sys-color-palette-category10, #B31412);var(--ac-sys-color-palette-category11, #0D652D);var(--ac-sys-color-palette-category12, #0091EA)".split(";");var BH=function(){var a=a===void 0?UEa:a;var b=b===void 0?FYc:b;var c=c===void 0?GYc:c;this.colorPalette=a;this.shapePalette=b;this.shapeBoundingBox=c},u_c=function(a,b,c,d){var e={},f=new Map,g={};c=m(c);for(var k=c.next();!k.done;k=c.next()){k=m(Object.entries(k.value));for(var l=k.next();!l.done;l=k.next()){var r=m(l.value);l=r.next().value;r=r.next().value;g[l]=r;l=void 0;f.set(r,((l=f.get(r))!=null?l:0)+1)}}c=new Map(f);k=m(Object.entries(d));for(l=k.next();!l.done;l=k.next())r=m(l.value),l=
r.next().value,r=r.next().value,a.includes(l)&&(l=void 0,f.set(r,((l=f.get(r))!=null?l:0)+1));a=m(a);for(k=a.next();!k.done;k=a.next())if(k=k.value,(l=g[k])||!d[k]||c.get(d[k])||(l=d[k]),l)e[k]=l;else if(f.size<b.length)l=b.filter(function(J){return!f.get(J)}),e[k]=l[0],f.set(l[0],1);else{l=b[0];r=Infinity;for(var w=m(b),x=w.next();!x.done;x=w.next()){x=x.value;var C=void 0,H=(C=f.get(x))!=null?C:0;H<r&&(r=H,l=x)}r=void 0;f.set(l,((r=f.get(l))!=null?r:0)+1);e[k]=l}return e};
BH.prototype.onDataChange=function(a,b,c){b=b.series.map(function(r){return String(r.id)}).sort();var d,e=c==null?void 0:(d=c.colorMap)==null?void 0:d.byLayer.entities[a.layerId],f=e?e.order:v_c++,g;c=Object.values((c==null?void 0:(g=c.colorMap)==null?void 0:g.byLayer.entities)||{});g=c.filter(function(r){return r&&r.layerId!==a.layerId&&r.order<f}).map(function(r){var w;return(w=r==null?void 0:r.colorMap)!=null?w:{}});var k;g=u_c(b,this.colorPalette,g,(k=e==null?void 0:e.colorMap)!=null?k:{});k=
c.filter(function(r){return r&&r.layerId!==a.layerId&&r.order<f}).map(function(r){var w;return(w=r==null?void 0:r.shapeMap)!=null?w:{}});var l;b=u_c(b,this.shapePalette,k,(l=e==null?void 0:e.shapeMap)!=null?l:{});return{order:f,colorMap:g,shapeMap:b}};BH.prototype.isReady=function(a,b){var c,d=b==null?void 0:(c=b.colorMap)==null?void 0:c.colorMap;return d?a.series.every(function(e){return d[String(e.id)]}):!1};
BH.prototype.getColor=function(a,b){a=String(a.id);var c;return(b==null?0:(c=b.colorMap)==null?0:c.colorMap[a])?b.colorMap.colorMap[a]:this.colorPalette[Math.abs(s_c(a))%this.colorPalette.length]};BH.prototype.getShape=function(a,b){a=String(a.id);var c;return(b==null?0:(c=b.colorMap)==null?0:c.shapeMap)?b.colorMap.shapeMap[a]:this.shapePalette[Math.abs(s_c(a))%this.shapePalette.length]};var v_c=0;var w_c={clickSelect:!0,hoverHighlight:!0,clickDot:!1},x_c={lineDash:[],lineWidth:1.25},CH=function(a,b,c,d,e,f,g,k,l){AG.call(this,a,b,c);this.interactionService=e;this.instrumentationService=f;this.modalService=g;this.ngZone=k;this.data=null;this.loading=!1;this.error=null;this.pointConnectionMethod="gap_detection";this.lineInterpolationMethod="linear";this.alignmentPeriodMs=null;this.enableManualLatencyTracking=!1;this.outputPeriodMsInternal=null;this.colorStrategyInternal=new BH;this.layerName=
"";this.audioChartsEnabled=!0;this.refactorA11yNavInstructions=this.useLegacyGapDetection=!1;this.nearestPoint="default";this.onSelect=new Ti;this.dataSubject=new Mj(this.data);this.updateGridTriggerSubject=new qf;this.gridGeneratorSubject=new Mj(null);this.defaultColumnMaskGeneratorSubject=new Mj(function(){return[]});this.xAxisRequirement=this.derivedMinMaxBand=this.yAxisRequirement=null;this.stylesInternal=x_c;this.interactionsInternal=w_c;this.isShiftKeyDown=this.isMetaKeyDown=this.isCtrlKeyDown=
!1;this.shiftSelectingFromSeriesId=null;this.isMouseOver=!1;this.hoverHighlightTriggerSubject=new uf(1);this.updateHoverValuesTriggerSubject=new uf(1);this.syncActionsBuffer=this.dataTypeError=null;this.colorRecalculationAttemptsRemaining=2;var r;this.configSubject=new Mj({pointConnectionMethod:this.pointConnectionMethod,lineInterpolationMethod:this.lineInterpolationMethod,colorStrategy:this.colorStrategy,outputPeriodMs:null,useLegacyGapDetection:this.useLegacyGapDetection,styles:this.styles,nearestPoint:this.nearestPoint,
clickDotInteraction:(r=this.interactions)==null?void 0:r.clickDot,multiselectMode:!1});this.gridGeneratorObservable=this.gridGeneratorSubject.pipe(mf(0),xk(this.ngZone));this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(mf(0),xk(this.ngZone));this.layerType="graphic";l?(this.lineView=new g_c(a.nativeElement,d),this.views.push(this.lineView)):(this.lineView=new m_c(a.nativeElement,d),this.views.push(this.lineView),this.views.push(new q_c(a.nativeElement)));this.bindDrawInstrumentation()};
Y(CH,AG);CH.\u0275dir=AG.\u0275dir;CH.prototype.bindDrawInstrumentation=function(){var a=this;kG(this.lineView,function(b){y_c(a,Object.assign({},b,{hasCompleteData:!a.loading}))})};
var y_c=function(a,b){var c=b.drawStartTimestamp,d=b.drawStopTimestamp,e=b.hasCompleteData;a.scopeObservable.pipe(lf(1)).subscribe(function(f){var g=f.chartId;f=f.layerId;RG(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});RG(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})};h=CH.prototype;
h.onDataChange=function(a,b){var c=this,d=a.previousValue,e=a.currentValue;a=b.scope;var f=b.state,g=[],k;g.push(wH({chartId:b.scope.chartId,layerId:b.scope.layerId,yAxisId:b.scope.yAxisId,xAxisId:b.scope.xAxisId,valueType:1,unit:(e==null?void 0:e.unit)||null,pointConnectionMethod:((k=b.config)==null?void 0:k.pointConnectionMethod)||void 0,legendTemplate:this.legendTemplate,alignmentPeriodMs:this.alignmentPeriodMs||void 0,outputPeriodMs:this.outputPeriodMs||void 0}));g.push(vH({chartId:b.scope.chartId,
layerId:b.scope.layerId,series:(e==null?void 0:e.series.map(function(R){var V;return{seriesId:R.id,name:(V=R.name)!=null?V:R.id,drawnAs:0,lineDash:c.styles.lineDash,dataSeriesMetadata:R.metadata,statsModeSummaryValue:R.statsModeSummaryValue}}))||[]}));this.derivedMinMaxBand=yAa(e);(f==null?0:f.xAxis)&&d!==e&&((k=Ok(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,f.xAxis.min,f.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,f.xAxis.unit||null))&&this.pointConnectionMethod==="zero_fill"&&(k=BAa(k)),
Pk(this.yAxisRequirement,k)&&(this.yAxisRequirement=k,g.push(CG(this,this.yAxisRequirement))));d!==e&&(this.xAxisRequirement=zAa(e),g.push(DG(this,this.xAxisRequirement)));if(f&&e){if(d=GG(this.colorStrategy,a,e,f))this.store.dispatch(d),this.colorRecalculationAttemptsRemaining=2;this.withLatest(function(R){var V=R.scope;(R=R.state)&&g.push(c.createSetSeriesColorMetadataAction(V,e,R))});(d=this.updateMostRecentValues(b))&&g.push(d)}var l;if(d=f==null?void 0:(l=f.seriesSelection)==null?void 0:l.byLayer.entities[a.layerId]){l=
d.selectedSeries;d=d.hoveredSeries;var r,w=new Set((r=e==null?void 0:e.series.map(function(R){return R.id}))!=null?r:[]);r=l.filter(function(R){return w.has(R.seriesId)});r.length!==l.length&&g.push($G({chartId:a.chartId,layerId:a.layerId,series:r}));r=d.filter(function(R){return w.has(R.seriesId)});if(r.length!==d.length){var x,C,H=f==null?void 0:(x=f.lastInteraction)==null?void 0:(C=x.domain)==null?void 0:C.hover;H&&(r=r.map(function(R){var V,ca,na=(f==null?0:(V=f.lastInteraction)==null?0:(ca=V.domain)==
null?0:ca.hover)?c.getDatumIndices(b,R.seriesId,H,!0):void 0;return Object.assign({},R,{datumIndices:na})}));g.push(bH({chartId:a.chartId,layerId:a.layerId,series:r}))}}this.updateGridTriggerSubject.next(b);var J,O;(f==null?0:(J=f.xAxisPin)==null?0:J.xPos)&&(f==null?0:(O=f.xAxisPin)==null?0:O.locked)&&(x=this.lineView.getValuesAtTime(b,f.xAxisPin.xPos),(x=this.updateTimeSeriesValues(x,0))&&g.push(x));return g};
h.onResizeChange=function(a,b){var c=[];qk(a)&&(this.updateGridTriggerSubject.next(b),(a=this.updateMostRecentValues(b))&&c.push(a));return c};h.onYAxisChange=function(a,b){rl(a)&&this.updateGridTriggerSubject.next(b)};
h.onXAxisChange=function(a,b){var c=this,d=[];if(Uk(a)){var e=b.data,f=b.state;if(f==null?0:f.xAxis)(e=Ok(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,f.xAxis.min,f.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,f.xAxis.unit||null))&&this.pointConnectionMethod==="zero_fill"&&(e=BAa(e)),Pk(this.yAxisRequirement,e)&&(this.yAxisRequirement=e,d.push(CG(this,this.yAxisRequirement)));(e=this.updateMostRecentValues(b))&&d.push(e)}(Uk(a)||Vk(a)||Wk(a))&&this.updateGridTriggerSubject.next(b);if(bBa(a)){var g=
void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var k=null;c.gridGeneratorSubject.pipe(lf(1)).subscribe(function(l){k=l&&l()});g===void 0&&(g=c.generateDefaultColumnMask(b,k));return g})}return d};h.onSeriesSelectionChange=function(){this.updateMultiselectMode()};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.lineView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null);if(!a)return;(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};
h.onColorMapChange=function(a,b){var c=this;a=b.scope;var d=b.data;b=b.state;var e=[];d&&b&&(this.colorRecalculationAttemptsRemaining>0&&(b=GG(this.colorStrategy,a,d,b))&&(this.store.dispatch(b),this.colorRecalculationAttemptsRemaining--),this.withLatest(function(f){var g=f.scope;(f=f.state)&&e.push(c.createSetSeriesColorMetadataAction(g,d,f))}));return e};
h.createSetSeriesColorMetadataAction=function(a,b,c){var d=this;return vH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:0,lineDash:d.styles.lineDash,color:Hl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c)}})})};
h.onFocusedCellChange=function(a){var b=this,c=m(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;b.gridGeneratorSubject.pipe(lf(1)).subscribe(function(k){if(k=k&&k()){var l=d!==null?k.rows[d]:null,r=e!==null?k.columns[e]:null;a.focusedCell&&(b.store.dispatch($G({chartId:g.chartId,layerId:g.layerId,series:l?[{seriesId:l.metadata.seriesId}]:[]})),r!==null||l!==null)&&(b.store.dispatch(JG({chartGroupId:g.chartGroupId,position:r?r.metadata.timeMs:null})),
b.store.dispatch(KG({chartGroupId:g.chartGroupId,locked:!!r})));b.store.dispatch(bH({chartId:g.chartId,layerId:g.layerId,series:[]}));d!==null&&e!==null&&(k=k.values[d][e],b.store.dispatch(HG({chartId:g.chartId,lastInteraction:{focus:k.position.x}})),b.store.dispatch(IG({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:k.position.y}})))}})})};h.onGridCellActivate=function(a){this.modalService.focus(0,a)};
h.onClick=function(a){var b=this,c=BG(this,a),d=!1;this.withLatest(function(e){var f=e.scope,g=e.state,k=e.data;if(g&&k){var l=g.seriesSelection,r=g.brush,w=g.resize;g=g.lastInteraction;if(l&&r&&!r.brushing&&w&&REa(c,w)){l=(l=l.byLayer.entities[f.layerId])?l.selectedSeries.map(function(H){return H.seriesId}):[];var x=b.lineView.getSeriesIdOfClosestLine(e,c,10);x&&(k=k.series.find(function(H){return H.id===x}))&&b.onSelect.emit(k);if(b.interactions.clickSelect){k=[];r=xl.ve.LineDeselectToggle;if(x)if(r=
xl.ve.LineSelectToggle,l.length===1&&l.includes(x))k=[];else if(b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&l.length>0){var C;k=b.lineView.getSeriesIdsBetween(e,b.shiftSelectingFromSeriesId,x,(C=g==null?void 0:g.domain.multiselectAnchor)!=null?C:c.x)||[x];r=xl.ve.LineMultiSelectToggle}else b.isPrimaryModifierKeyDown?(k=l.includes(x)?l.filter(function(H){return H!==x}):l.concat([x]),r=xl.ve.LineSpecificSelectToggle):k=[x];b.shiftSelectingFromSeriesId=x;k.length===0&&(b.store.dispatch(HG({chartId:f.chartId,
lastInteraction:{multiselectAnchor:null}})),b.store.dispatch(CYc({chartId:f.chartId,layerId:f.layerId,series:null})));l.length===0&&k.length===1&&(d=!0,b.store.dispatch(HG({chartId:f.chartId,lastInteraction:{multiselectAnchor:c.x}})),x&&b.store.dispatch(CYc({chartId:f.chartId,layerId:f.layerId,series:{seriesId:x,datumIndices:b.getDatumIndices(e,x,c.x,!0)}})));b.store.dispatch($G({chartId:e.scope.chartId,layerId:e.scope.layerId,series:k.map(function(H){return{seriesId:H}})}));wl(b.interactionService,
"click",r,b.el.nativeElement)}}}});this.withLatest(function(e){e=b.lineView.getValuesAtPosition(e,c);var f=b.updateTimeSeriesValues(e,2);f&&b.store.dispatch(f);d&&(e=b.updateTimeSeriesValues(e,4))&&b.store.dispatch(e)})};h.onKeyDown=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey;this.updateMultiselectMode()};h.onKeyUp=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey;this.updateMultiselectMode()};
h.updateMultiselectMode=function(){var a=this;this.withLatest(function(b){var c,d,e,f=(d=(c=b.state)==null?void 0:c.seriesSelection)==null?void 0:(e=d.byLayer.entities[b.scope.layerId])==null?void 0:e.selectedSeries;(f==null?0:f.length)&&a.updateViewConfig({multiselectMode:f.length>0&&(a.isShiftKeyDown||a.isPrimaryModifierKeyDown)})})};h.onMouseEnter=function(){this.isMouseOver=!0};
h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=BG(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlightTriggerSubject.next(a);this.updateHoverValuesTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.lineView.getValuesAtPosition(c,a);(c=b.updateTimeSeriesValues(c,1))&&(b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c))})};
h.updateMostRecentValues=function(a){var b=a.data,c=a.state,d=a.config,e,f=c==null?void 0:(e=c.xAxis)==null?void 0:e.max,g;if(!(c==null?0:(g=c.xAxis)==null?0:g.min)||!f||!d)return null;b=b==null?void 0:b.series.reduce(function(k,l){l=l.data;var r=zl(l,f,Al(d.outputPeriodMs));return(l=l[r])&&(k===null||Math.abs(f-l.x.valueOf())<Math.abs(f-k))?l.x.valueOf():k},null);c=void 0;d.outputPeriodMs&&(c=Math.max(d.outputPeriodMs,3E5));return(a=this.lineView.getValuesAtTime(a,b!=null?b:f,c))?this.updateTimeSeriesValues(a,
3):null};h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;var e,f;c=uH({chartId:d.chartId,layerId:d.layerId,valueType:1,timeKey:b,values:(e=a==null?void 0:a.values)!=null?e:[],timeRange:(f=a==null?void 0:a.timeRange)!=null?f:void 0})});return c};
h.getDatumIndices=function(a,b,c,d){d=d===void 0?!1:d;var e=a.state,f=a.data;if(e){var g;a=(g=a.data)==null?void 0:g.series.find(function(k){return k.id===b});e=b&&(e==null?0:e.xAxis)&&(e==null?0:e.resize)?Yk(e.xAxis,e.resize.margins.left,e.resize.width-e.resize.margins.right,f==null?void 0:f.xAxisUnit):null;return(c=a&&e?Bl(a.data||[],e(c),null,d):null)?[{index:c}]:void 0}};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope,e=c.state,f;if(!(e==null?0:(f=e.brush)==null?0:f.panning)){c=(f=a?b.lineView.getSeriesIdOfClosestLine(c,a,10):null)&&a?b.getDatumIndices(c,f,a.x,!0):void 0;var g,k;e=(e==null?void 0:(g=e.seriesSelection)==null?void 0:(k=g.byLayer.entities[d.layerId])==null?void 0:k.hoveredSeries)||[];g=f?[{seriesId:f,datumIndices:c}]:[];hl(e,g)&&(d=bH({chartId:d.chartId,layerId:d.layerId,series:g}),b.syncActionsBuffer?b.syncActionsBuffer.push(d):
b.store.dispatch(d))}})};h.onMouseLeave=function(){this.isMouseOver=!1;this.interactions.hoverHighlight&&this.hoverHighlight(null)};
h.generateGrid=function(a){var b=a.data;var c=a.state;a=a.config;if(!b||!c)return null;var d=c.xAxis,e=c.resize;c=c.yAxis;if(!d||!e||!c)return null;var f=Xk(d,e.margins.left,e.width-e.margins.right,b.xAxisUnit),g=b.unit,k=c.unit,l=sl(c,e.margins.top,e.height-e.margins.bottom,g),r=d.tickIncrement||null,w=d.timezoneOffset,x=d.timeZoneId;if(!f||!l)return null;e={top:e.margins.top,right:e.width-e.margins.right,bottom:e.height-e.margins.bottom,left:e.margins.left};var C,H,J,O;return fEa({data:b,xAxisState:d,
yAxisState:c,rowFormatter:cEa(b.series,this.legendTemplate),columnFormatter:function(R){return{label:nl({position:R,tickIncrement:r,timeZone:Gk(w,x)}),value:R}},valueFormatter:aEa(g,k),positionMap:eEa(f,l,e,{outputPeriodMs:(a==null?void 0:a.outputPeriodMs)||void 0}),audioChartContext:d.min!==null&&d.max!==null&&c.min!==null&&c.max!==null?{xAxis:{ticks:d.ticks.map(function(R){return R.value}),min:(C=d.min)!=null?C:void 0,max:(H=d.max)!=null?H:void 0},yAxis:{min:(J=c.min)!=null?J:void 0,max:(O=c.max)!=
null?O:void 0}}:void 0})};h.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?YDa({ticks:a.ticks,grid:b}):[]:[]};
h.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.lineView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);this.updateGridTriggerSubject.pipe(zf(this.destroyed),jf(500)).subscribe(function(b){var c=void 0;a.gridGeneratorSubject.next(function(){c===void 0&&(c=a.generateGrid(b));return c})});this.hoverHighlightTriggerSubject.pipe(zf(this.destroyed)).subscribe(function(b){a.hoverHighlight(b)});
this.updateHoverValuesTriggerSubject.pipe(zf(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});this.chart.mouseEnterObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});VF(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);this.chart.mouseLeaveObservable.pipe(zf(this.destroyed)).subscribe(function(){a.onMouseLeave()});this.chart.mouseClickObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onClick(b)});this.chart.keyDownObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onKeyDown(b)});
this.chart.keyUpObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onKeyUp(b)})};h.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
h.ngOnChanges=function(a){AG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||SEa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(FG(this,this.error,this.hasData()))):(this.dataSubject.next(null),this.dataTypeError={name:"InvalidRequestError",code:400,displayMessage:"Only numeric data can be drawn as a line chart. The data provided cannot be drawn.",message:"Only numeric data can be drawn as a line chart. The data provided cannot be drawn.",
details:{isTimeout:!1}},b.push(FG(this,this.dataTypeError,!1))));if("pointConnectionMethod"in a||"outputPeriodMs"in a||"alignmentPeriodMs"in a||"colorStrategy"in a||"styles"in a||"useLegacyGapDetection"in a||"nearestPoint"in a||"interactions"in a){var c;this.updateViewConfig({pointConnectionMethod:this.pointConnectionMethod,lineInterpolationMethod:this.lineInterpolationMethod,outputPeriodMs:this.outputPeriodMs,colorStrategy:this.colorStrategy,useLegacyGapDetection:this.useLegacyGapDetection,styles:this.styles,
nearestPoint:this.nearestPoint,clickDotInteraction:(c=this.interactions)==null?void 0:c.clickDot})}"loading"in a&&b.push(EG(this,this.loading,"Line"));"error"in a&&b.push(FG(this,this.error,this.hasData()));UF(this.chart,b)};h.getLayerTitle=function(){return this.layerName?"Line "+this.layerName:"Line"};h.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);UF(this.chart,[CG(this,null),DG(this,null),EG(this,!1,"Line"),FG(this,null,!1),aH({chartId:this.chartId,layerId:this.layerId})])};
h.updateViewConfig=function(a){this.configSubject.next(Object.assign({},this.configSubject.value,a))};
da.Object.defineProperties(CH.prototype,{outputPeriodMs:{configurable:!0,enumerable:!0,set:function(a){this.outputPeriodMsInternal=a},get:function(){var a;return(a=this.outputPeriodMsInternal)!=null?a:this.alignmentPeriodMs}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||new BH},get:function(){return this.colorStrategyInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},w_c,a)},get:function(){return this.interactionsInternal}},
styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesInternal=Object.assign({},x_c,a)},get:function(){return this.stylesInternal}},isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return ol?this.isMetaKeyDown:this.isCtrlKeyDown}}});CH.\u0275fac=function(a){return new (a||CH)(Ve(Hd),Ve(TF),Ve(gG),Ve(UG),Ve(xl),Ve(QG),Ve(rH),Ve(Rg),Ve(NUc,8))};
CH.\u0275cmp=D({type:CH,selectors:[["ac-line"]],hostAttrs:[1,"composable-layer","ac-line"],inputs:{data:"data",loading:"loading",error:"error",pointConnectionMethod:"pointConnectionMethod",lineInterpolationMethod:"lineInterpolationMethod",alignmentPeriodMs:"alignmentPeriodMs",outputPeriodMs:"outputPeriodMs",enableManualLatencyTracking:"enableManualLatencyTracking",colorStrategy:"colorStrategy",interactions:"interactions",styles:"styles",layerName:"layerName",legendTemplate:"legendTemplate",audioChartsEnabled:"audioChartsEnabled",
useLegacyGapDetection:"useLegacyGapDetection",refactorA11yNavInstructions:"refactorA11yNavInstructions",nearestPoint:"nearestPoint"},outputs:{onSelect:"onSelect"},features:[Ef,jx],decls:3,vars:10,consts:[[3,"onGridCellActivate","onFocusedCellChange","onFocus","onBlur","gridGenerator","columnMaskGenerator","chartTitle","layerTitle","audioChartsEnabled","refactorA11yNavInstructions"]],template:function(a,b){a&1&&(K(0,"ac-accessibility-grid",0),T(1,"async"),T(2,"async"),N("onGridCellActivate",function(c){return b.onGridCellActivate(c)})("onFocusedCellChange",
function(c){return b.onFocusedCellChange(c)})("onFocus",function(c){return b.onFocus(c)})("onBlur",function(c){return b.onBlur(c)}),L());a&2&&I("gridGenerator",U(1,6,b.gridGeneratorObservable))("columnMaskGenerator",U(2,8,b.defaultColumnMaskGeneratorObservable))("chartTitle",b.chart.title)("layerTitle",b.getLayerTitle())("audioChartsEnabled",b.audioChartsEnabled)("refactorA11yNavInstructions",b.refactorA11yNavInstructions)},dependencies:[yH,Tx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_line.css.map */"],
changeDetection:0});var GH=function(){};GH.prototype.getBrushSegment=function(a,b,c,d){d=d===void 0?0:d;return{start:[d,a],end:[d+b,a]}};GH.prototype.getBrushSelectionRect=function(a,b,c,d,e){return{x:e===void 0?0:e,y:a,width:c,height:b-a}};GH.prototype.getRangeMap=function(a,b,c,d){return function(e){return Sk(a,b,d,0,e)}};var HH=function(){};HH.prototype.getBrushSegment=function(a,b,c,d,e){e=e===void 0?0:e;return{start:[a,e],end:[a,e+c]}};
HH.prototype.getBrushSelectionRect=function(a,b,c,d,e,f){return{x:a,y:f===void 0?0:f,width:b-a,height:d}};HH.prototype.getRangeMap=function(a,b,c){return function(d){return Sk(a,b,0,c,d)}};var z_c={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},A_c=[4,4],B_c=function(a,b){pG.call(this,a);this.brushStrategy=b};Y(B_c,pG);h=B_c.prototype;h.updateStrategy=function(a,b){this.brushStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onResizeChange=function(a,b){qk(a)&&this.drawInternal(b)};h.onYAxisChange=function(a,b){this.drawInternal(b)};
h.onBrushChange=function(a,b){this.drawInternal(b)};
h.unpack=function(a){var b=a.scope,c=a.state;if(!c)return null;a=c.resize;var d=c.yAxis;c=c.brush;if(!(a&&d&&c&&d.min!==null&&d.max)||a.height<=0||a.width<=0)return null;var e=c.yAxes.find(function(l){return l.chartId===b.chartId&&l.yAxisId===b.yAxisId}),f=a.margins.left,g=a.margins.top,k=a.height-a.margins.top-a.margins.bottom;d=this.brushStrategy.getRangeMap(d.min,d.max,a.width-a.margins.left-a.margins.right,k);return{map:d,bodyTopEdge:g,bodyLeftEdge:f,bodyHeight:k,bodyWidth:a.width-a.margins.left-
a.margins.right,brushing:c.brushing&&c.axis===1,brushStart:(e==null?0:e.yPosStart)?d(e.yPosStart):null,brushEnd:(e==null?0:e.yPos)?d(e.yPos):null,brushAxis:c.axis}};
h.drawInternal=function(a){if(a=this.unpack(a)){var b=a.bodyTopEdge,c=a.bodyHeight,d=a.bodyWidth,e=a.brushing,f=a.brushStart,g=a.brushEnd,k=a.brushAxis;this.canvas.style.left=a.bodyLeftEdge+"px";this.canvas.style.top=b+"px";bl(this.canvas,this.base,c,d);g&&k===1&&(f&&e&&(this.drawBrushSelection(this.brushStrategy.getBrushSelectionRect(f,g,d,c)),this.drawBrushLine(this.brushStrategy.getBrushSegment(f,d,c))),this.drawBrushLine(this.brushStrategy.getBrushSegment(g,d,c)))}};
h.drawBrushLine=function(a,b){b=b===void 0?z_c:b;this.ctx.save();$k(this.ctx,b,this.base);this.ctx.setLineDash(A_c);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(cl(a.start,b.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl(a.end,b.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawBrushSelection=function(a,b){b=b===void 0?z_c:b;this.ctx.save();$k(this.ctx,b,this.base);this.ctx.fillRect(a.x,a.y,a.width,a.height);this.ctx.restore()};var C_c={globalAlpha:1,strokeStyle:"var(--ac-sys-color-chart-grid, #EBEBEB)",lineWidth:1,lineCap:"square"},D_c={globalAlpha:1,font:"10px sans-serif",fillStyle:"var(--ac-sys-color-chart-axis-label, #3C4043)",strokeStyle:"var(--ac-sys-color-chart-axis, #80868B)"},E_c=Object.assign({},D_c,{textAlign:"left",textBaseline:"middle"}),F_c=Object.assign({},D_c,{textAlign:"right",textBaseline:"middle"});var G_c=[4,4],H_c={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},IH=function(a,b,c){pG.call(this,a);this.axisStrategy=b;this.brushStrategy=c};Y(IH,pG);h=IH.prototype;h.updateStrategy=function(a,b){this.axisStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onResizeChange=function(a,b){qk(a)&&this.drawInternal(b)};h.onYAxisChange=function(a,b){this.drawInternal(b)};
h.onConfigChange=function(a,b){this.drawInternal(b)};h.withinBodyOrAxis=function(a,b,c,d){return c==="right"?a>=d.margins.left&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.width-d.margins.right&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};
h.withinAxis=function(a,b,c,d){return c==="right"?a>=d.width-d.margins.right&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.margins.left&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};h.calculateDataValue=function(a,b,c){b=this.unpack(b,c);var d;return this.axisStrategy.getDataValue(a,(d=b==null?void 0:b.inverse)!=null?d:null)};h.pxToScaleType=function(a,b,c){b=this.unpack(b,c);return b!=null&&b.inverse?b.inverse(a)-b.inverse(0):null};
h.unpack=function(a,b){if(!a||!b)return null;var c=a.resize;a=a.yAxis;var d=b.position;if(!c||!d||c.height<=0||c.width<=0)return null;var e=this.axisStrategy.getCanvasRange(c),f=e.rangeMin,g=e.rangeMax,k,l=(k=a==null?void 0:a.min)!=null?k:null,r,w=(r=a==null?void 0:a.max)!=null?r:null,x,C=(x=a==null?void 0:a.absoluteMin)!=null?x:null;r=k=null;l!==null&&w!==null&&(k=(a==null?void 0:a.scaleType)===1&&C!==null?function(V){return aBa(l,w,f,g,V,C)}:function(V){return Sk(l,w,f,g,V)},r=function(V){return Sk(f,
g,l,w,V)});var H=e=x=0,J=0;switch(d){case "right":x=c.width-c.margins.right;e=c.width-10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=Math.PI/2;break;case "left":x=c.margins.left;e=10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=-Math.PI/2;break;case "top":x=c.margins.top;e=(c.margins.left+(c.width-c.margins.right))/2;H=10;break;case "bottom":x=c.height-c.margins.bottom,e=(c.margins.left+(c.width-c.margins.right))/2,H=c.height-10}var O,R;return{config:b,map:k,inverse:r,chartBodyLeft:c.margins.left,
chartBodyRight:c.width-c.margins.right,chartBodyTop:c.margins.top,chartBodyBottom:c.height-c.margins.bottom,chartBodyHeight:c.height-c.margins.top-c.margins.bottom,yAxisTicks:(O=a==null?void 0:a.ticks)!=null?O:[],yAxisHeight:c.height,yAxisCanvasWidth:c.width,offset:x,labelAnchorX:e,labelAnchorY:H,labelRotation:J,rangeBottom:f,rangeTop:g,label:(R=a==null?void 0:a.label)!=null?R:""}};
h.drawInternal=function(a){var b=performance.now(),c=this.unpack(a.state,a.config);if(c){var d=c.map,e=c.chartBodyLeft,f=c.chartBodyRight,g=c.chartBodyTop,k=c.chartBodyBottom,l=c.yAxisTicks,r=c.yAxisHeight,w=c.yAxisCanvasWidth,x=c.offset,C=c.rangeBottom,H=c.rangeTop,J=c.label,O=c.labelAnchorX,R=c.labelAnchorY,V=c.labelRotation,ca=c.chartBodyHeight,na=c.config.position;l=d?l.map(function(ub){return{label:ub.label,value:d(ub.value)}}):[];this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,
this.base,r,w);if(na!=="none"){r=na==="right"?E_c:na==="left"?F_c:NG;var ua,ia,Ga,ha;r=Object.assign({},r,{fillStyle:(Ga=(ua=c.config.styles)==null?void 0:ua.textColor)!=null?Ga:r.fillStyle,font:(ha=(ia=c.config.styles)==null?void 0:ia.font)!=null?ha:r.font});ua=C_c;var sa,xa,Qa,bb;ua=Object.assign({},ua,{lineDash:(Qa=(sa=c.config.styles)==null?void 0:sa.lineDash)!=null?Qa:ua.lineDash,strokeStyle:(bb=(xa=c.config.styles)==null?void 0:xa.gridLineColor)!=null?bb:ua.strokeStyle});this.drawAxisAndTickLines(C,
H,e,f,g,k,l,ua);this.drawAxisTickLabels(x,l,na,r);this.drawAxisLabel(J,O,R,V,ca,r);this.drawBrushInternal(a);a=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}}};
h.drawAxisAndTickLines=function(a,b,c,d,e,f,g,k){k=k===void 0?{}:k;this.ctx.save();$k(this.ctx,k,this.base);this.ctx.beginPath();a=this.axisStrategy.generateTickLines(g.length?g:[{value:a,label:""},{value:b,label:""}],c,d,e,f);a=m(a);for(b=a.next();!b.done;b=a.next())b=b.value,c=b.end,this.ctx.moveTo.apply(this.ctx,q(cl(b.start,k.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(cl(c,k.lineWidth)));this.ctx.closePath();this.ctx.stroke();this.ctx.restore()};
h.drawAxisTickLabels=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,d,this.base);a=this.axisStrategy.generateTickLabels(b,a,c);a=m(a);for(b=a.next();!b.done;b=a.next())b=b.value,dl(this.ctx,b.label,b.x,b.y);this.ctx.restore()};h.drawAxisLabel=function(a,b,c,d,e,f){f=f===void 0?{}:f;a&&(this.ctx.save(),$k(this.ctx,f,this.base),iBa(this.ctx,a,b,c,e,d),this.ctx.restore())};h.onBrushChange=function(a,b){if(a=I_c(this,b)){var c=a.brushAxis;a=!!a.brushEnd&&c===1}else a=!1;a&&this.drawInternal(b)};
var I_c=function(a,b){var c=b.scope,d=b.state;if(!d)return null;b=d.resize;var e=d.yAxis;d=d.brush;if(!(b&&e&&d&&e.min!==null&&e.max)||b.height<=0||b.width<=0)return null;var f=d.yAxes.find(function(r){return r.chartId===c.chartId&&r.yAxisId===c.yAxisId}),g=b.margins.left,k=b.margins.top,l=b.height-b.margins.top-b.margins.bottom;a=a.brushStrategy.getRangeMap(e.min,e.max,b.width-b.margins.left-b.margins.right,l);return{map:a,bodyTopEdge:k,bodyLeftEdge:g,bodyHeight:l,bodyWidth:b.width-b.margins.left-
b.margins.right,brushing:d.brushing&&d.axis===1,brushStart:(f==null?0:f.yPosStart)?a(f.yPosStart):null,brushEnd:(f==null?0:f.yPos)?a(f.yPos):null,brushAxis:d.axis}};
IH.prototype.drawBrushInternal=function(a){var b=I_c(this,a);if(b){a=b.bodyTopEdge;var c=b.bodyLeftEdge,d=b.bodyHeight,e=b.bodyWidth,f=b.brushing,g=b.brushStart,k=b.brushEnd;b=b.brushAxis;var l=a;this.brushStrategy instanceof HH&&(l=c);k&&b===1&&(g&&f&&(this.drawBrushSelection(this.brushStrategy.getBrushSelectionRect(l+g,l+k,e,d,c,a)),this.drawBrushLine(this.brushStrategy.getBrushSegment(l+g,e,d,c,a))),this.drawBrushLine(this.brushStrategy.getBrushSegment(l+k,e,d,c,a)))}};
IH.prototype.drawBrushLine=function(a,b){b=b===void 0?H_c:b;this.ctx.save();$k(this.ctx,b,this.base);this.ctx.setLineDash(G_c);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(cl(a.start,b.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl(a.end,b.lineWidth)));this.ctx.stroke();this.ctx.restore()};IH.prototype.drawBrushSelection=function(a,b){b=b===void 0?H_c:b;this.ctx.save();$k(this.ctx,b,this.base);this.ctx.fillRect(a.x,a.y,a.width,a.height);this.ctx.restore()};var JH=function(){};JH.prototype.getCanvasRange=function(a){return{rangeMin:a.height-a.margins.bottom,rangeMax:a.margins.top}};JH.prototype.getDataValue=function(a,b){return b?b(a.y):null};JH.prototype.generateTickLines=function(a,b,c){return a.map(function(d){d=d.value;return{start:[b,d],end:[c,d]}})};JH.prototype.generateTickLabels=function(a,b,c){var d=c==="right"?b+8:b-8;return a.map(function(e){return{label:e.label,x:d,y:e.value}})};var J_c=function(){};
J_c.prototype.getCanvasRange=function(a){return{rangeMin:a.margins.left,rangeMax:a.width-a.margins.right}};J_c.prototype.getDataValue=function(a,b){return b?b(a.x):null};J_c.prototype.generateTickLines=function(a,b,c,d,e){return a.map(function(f){f=f.value;return{start:[f,d],end:[f,e]}})};J_c.prototype.generateTickLabels=function(a,b,c){var d=c==="bottom"?b+8:b-8;return a.map(function(e){return{label:e.label,x:e.value,y:d}})};var K_c=function(a,b){pG.call(this,a);this.axisStrategy=b};Y(K_c,pG);h=K_c.prototype;h.updateStrategy=function(a,b){this.axisStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onResizeChange=function(a,b){qk(a)&&this.drawInternal(b)};h.onYAxisChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.withinBodyOrAxis=function(a,b,c,d){return c==="right"?a>=d.margins.left&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.width-d.margins.right&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};h.withinAxis=function(a,b,c,d){return c==="right"?a>=d.width-d.margins.right&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.margins.left&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};
h.calculateDataValue=function(a,b,c){b=this.unpack(b,c);var d;return this.axisStrategy.getDataValue(a,(d=b==null?void 0:b.inverse)!=null?d:null)};h.pxToScaleType=function(a,b,c){b=this.unpack(b,c);return b!=null&&b.inverse?b.inverse(a)-b.inverse(0):null};
h.unpack=function(a,b){if(!a||!b)return null;var c=a.resize;a=a.yAxis;var d=b.position;if(!c||!d||c.height<=0||c.width<=0)return null;var e=this.axisStrategy.getCanvasRange(c),f=e.rangeMin,g=e.rangeMax,k,l=(k=a==null?void 0:a.min)!=null?k:null,r,w=(r=a==null?void 0:a.max)!=null?r:null,x,C=(x=a==null?void 0:a.absoluteMin)!=null?x:null;r=k=null;l!==null&&w!==null&&(k=(a==null?void 0:a.scaleType)===1&&C!==null?function(V){return aBa(l,w,f,g,V,C)}:function(V){return Sk(l,w,f,g,V)},r=function(V){return Sk(f,
g,l,w,V)});var H=e=x=0,J=0;switch(d){case "right":x=c.width-c.margins.right;e=c.width-10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=Math.PI/2;break;case "left":x=c.margins.left;e=10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=-Math.PI/2;break;case "top":x=c.margins.top;e=(c.margins.left+(c.width-c.margins.right))/2;H=10;break;case "bottom":x=c.height-c.margins.bottom,e=(c.margins.left+(c.width-c.margins.right))/2,H=c.height-10}var O,R;return{config:b,map:k,inverse:r,chartBodyLeft:c.margins.left,
chartBodyRight:c.width-c.margins.right,chartBodyTop:c.margins.top,chartBodyBottom:c.height-c.margins.bottom,chartBodyHeight:c.height-c.margins.top-c.margins.bottom,yAxisTicks:(O=a==null?void 0:a.ticks)!=null?O:[],yAxisHeight:c.height,yAxisCanvasWidth:c.width,offset:x,labelAnchorX:e,labelAnchorY:H,labelRotation:J,rangeBottom:f,rangeTop:g,label:(R=a==null?void 0:a.label)!=null?R:""}};
h.drawInternal=function(a){var b=performance.now();if(a=this.unpack(a.state,a.config)){var c=a.map,d=a.chartBodyLeft,e=a.chartBodyRight,f=a.chartBodyTop,g=a.chartBodyBottom,k=a.yAxisTicks,l=a.yAxisHeight,r=a.yAxisCanvasWidth,w=a.offset,x=a.rangeBottom,C=a.rangeTop,H=a.label,J=a.labelAnchorX,O=a.labelAnchorY,R=a.labelRotation,V=a.chartBodyHeight,ca=a.config.position;k=c?k.map(function(bb){return{label:bb.label,value:c(bb.value)}}):[];this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,
this.base,l,r);if(ca!=="none"){l=ca==="right"?E_c:ca==="left"?F_c:NG;var na,ua,ia,Ga;l=Object.assign({},l,{fillStyle:(ia=(na=a.config.styles)==null?void 0:na.textColor)!=null?ia:l.fillStyle,font:(Ga=(ua=a.config.styles)==null?void 0:ua.font)!=null?Ga:l.font});na=C_c;var ha,sa,xa,Qa;na=Object.assign({},na,{lineDash:(xa=(ha=a.config.styles)==null?void 0:ha.lineDash)!=null?xa:na.lineDash,strokeStyle:(Qa=(sa=a.config.styles)==null?void 0:sa.gridLineColor)!=null?Qa:na.strokeStyle});this.drawAxisAndTickLines(x,
C,d,e,f,g,k,na);this.drawAxisTickLabels(w,k,ca,l);this.drawAxisLabel(H,J,O,R,V,l);ha=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:ha})}}};
h.drawAxisAndTickLines=function(a,b,c,d,e,f,g,k){k=k===void 0?{}:k;this.ctx.save();$k(this.ctx,k,this.base);this.ctx.beginPath();a=this.axisStrategy.generateTickLines(g.length?g:[{value:a,label:""},{value:b,label:""}],c,d,e,f);a=m(a);for(b=a.next();!b.done;b=a.next())b=b.value,c=b.end,this.ctx.moveTo.apply(this.ctx,q(cl(b.start,k.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(cl(c,k.lineWidth)));this.ctx.closePath();this.ctx.stroke();this.ctx.restore()};
h.drawAxisTickLabels=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,d,this.base);a=this.axisStrategy.generateTickLabels(b,a,c);a=m(a);for(b=a.next();!b.done;b=a.next())b=b.value,dl(this.ctx,b.label,b.x,b.y);this.ctx.restore()};h.drawAxisLabel=function(a,b,c,d,e,f){f=f===void 0?{}:f;a&&(this.ctx.save(),$k(this.ctx,f,this.base),iBa(this.ctx,a,b,c,e,d),this.ctx.restore())};var L_c={dragZoom:!0,ctrlScrollZoom:!0},M_c=new Vl("Data values on this chart range from a minimum of {MIN} to a maximum of {MAX}."),KH=function(a,b,c,d,e,f,g){AG.call(this,a,b,c);this.interactionService=d;this.instrumentationService=e;this.ngZone=f;this.dataSubject=new Mj(null);this.position="right";this.styles={};this.tickStrategy=YAa;this.configSubject=new Mj({position:this.position,styles:this.styles});this.interactionsInternal=L_c;this.isMouseDown=!1;this.lastMouseMoveEvent=this.lastMouseDownEvent=
null;this.cachedScrollAmount=0;this.scrollZoomSubject=new uf(1);this.axisDescriptionSubject=new Mj("");this.lastAxisDynamicWidth=0;this.initialized=!1;this.axisDescriptionObservable=this.axisDescriptionSubject.pipe(mf(0),xk(this.ngZone));this.rulerCanvas=document.createElement("canvas");this.rulerCanvasCtx=this.rulerCanvas.getContext("2d");this.layerType="axis";g?(this.axisView=new IH(a.nativeElement,new JH,new GH),this.views.push(this.axisView)):(this.axisView=new K_c(a.nativeElement,new JH),this.brushView=
new B_c(a.nativeElement,new GH),this.views.push(this.axisView),this.views.push(this.brushView));this.bindDrawInstrumentation()};Y(KH,AG);KH.\u0275dir=AG.\u0275dir;h=KH.prototype;h.isPrimaryModifierKeyDown=function(a){return ol?a.metaKey:a.ctrlKey};
h.bindDrawInstrumentation=function(){var a=this;kG(this.axisView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;a.scopeObservable.pipe(lf(1)).subscribe(function(e){var f=e.chartId;e=e.layerId;RG(a.instrumentationService,{type:"draw-start",layerType:"axis",timestamp:c,chartId:f,layerId:e});RG(a.instrumentationService,{type:"draw-stop",layerType:"axis",timestamp:d,chartId:f,layerId:e,metadata:{hasCompleteData:!1}})})})};
h.onYAxisChange=function(){var a=this,b=[];this.withLatest(function(c){var d=c.scope;var e=c.config;c=c.state;var f,g=c==null?void 0:(f=c.yAxis)==null?void 0:f.requirements,k;f=(c==null?void 0:(k=c.yAxis)==null?void 0:k.unit)||null;if(g==null?0:g.length){k=MAa(g,[1,0]);var l;g=(l=k==null?void 0:k.min)!=null?l:null;var r;l=(r=k==null?void 0:k.max)!=null?r:null;f&&k&&f!==k.unit&&(g=Lk(k.unit,f,k.min),l=Lk(k.unit,f,k.max));g!==null&&l!==null&&a.axisDescriptionSubject.next(M_c.format({MIN:Nk(g,f),MAX:Nk(l,
f)}))}var w;if(c==null?0:(w=c.yAxis)==null?0:w.ticks){var x;r=c==null?void 0:(x=c.yAxis)==null?void 0:x.ticks.reduce(function(H,J){return Math.max(H,a.rulerCanvasCtx.measureText(J.label).width)},0);var C;x=c==null?void 0:(C=c.yAxis)==null?void 0:C.label;C=r+10+8+(x?a.rulerCanvasCtx.measureText(x).fontBoundingBoxAscent:0);a.lastAxisDynamicWidth!==C&&(a.lastAxisDynamicWidth=C,b.push(a.createMarginRequirementAction(d,e,C)))}});return b};
h.onConfigChange=function(a,b){UF(this.chart,[this.createMarginRequirementAction(b.scope,a.currentValue,this.lastAxisDynamicWidth||void 0)])};
h.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);this.initialized=!0;this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.configSubject.next({position:this.position,styles:this.styles});N_c(this);this.scrollZoomSubject.pipe(zf(this.destroyed)).subscribe(function(b){a.scrollZoom(b)});this.chart.mouseClickObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onClick(b)});this.chart.mouseDownObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onMouseDown(b)});
this.chart.documentMouseUpObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onMouseUp(b)});this.chart.mouseLeaveObservable.pipe(zf(this.destroyed)).subscribe(function(){a.onMouseLeave()});VF(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);VF(this.chart,"document",function(b){return a.onDocumentMouseMove(b)},this.destroyed);this.chart.scrollObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onScroll(b)});this.chart.syncScrollObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.syncOnScroll(b)});
te(this.chart.syncDragStartObservable,this.chart.syncDragObservable,this.chart.syncDragEndObservable).pipe(zf(this.destroyed)).subscribe(function(b){a.interactions.dragZoom&&(b.preventDefault(),b.stopPropagation())});this.withLatest(function(b){b=b.scope;var c=[];PUc(a.selectorService,b,a.tickStrategy);c.push(dVc({chartId:b.chartId,yAxisId:b.yAxisId,position:a.position}));var d;c.push(aVc({chartId:b.chartId,yAxisId:b.yAxisId,label:(d=a.label)!=null?d:""}));var e,f;if(((e=a.includeRange)==null?void 0:
e.min)!==void 0||((f=a.includeRange)==null?void 0:f.max)!==void 0){var g,k,l,r,w,x,C,H,J,O;c.push(CG(a,{priority:1,min:Math.min((x=(g=a.includeRange)==null?void 0:g.min)!=null?x:Infinity,(C=(k=a.includeRange)==null?void 0:k.max)!=null?C:Infinity),max:Math.max((H=(l=a.includeRange)==null?void 0:l.min)!=null?H:-Infinity,(J=(r=a.includeRange)==null?void 0:r.max)!=null?J:-Infinity),unit:(O=(w=a.includeRange)==null?void 0:w.unit)!=null?O:null,constraints:{onlyApplyIfUnitCompatible:!0}},"includeRange"))}var R,
V;if(((R=a.exactRange)==null?void 0:R.min)!==void 0||((V=a.exactRange)==null?void 0:V.max)!==void 0){var ca,na,ua,ia;c.push(CG(a,{priority:2,min:(ca=a.exactRange)==null?void 0:ca.min,max:(na=a.exactRange)==null?void 0:na.max,unit:(ia=(ua=a.exactRange)==null?void 0:ua.unit)!=null?ia:null,cause:2},"exactRange"))}UF(a.chart,c)})};
h.ngOnChanges=function(a){var b=this;AG.prototype.ngOnChanges.call(this,a);var c=[];if(this.initialized){"tickStrategy"in a&&this.withLatest(function(ia){PUc(b.selectorService,ia.scope,b.tickStrategy)});"label"in a&&this.withLatest(function(ia){ia=ia.scope;var Ga;c.push(aVc({chartId:ia.chartId,yAxisId:ia.yAxisId,label:(Ga=b.label)!=null?Ga:""}))});if("position"in a||"styles"in a)this.configSubject.next({position:this.position,styles:this.styles}),"position"in a&&(this.withLatest(function(ia){var Ga=
ia.scope;ia=ia.config;c.push(dVc({chartId:Ga.chartId,yAxisId:Ga.yAxisId,position:b.position}));c.push(b.createMarginRequirementAction(Ga,ia,b.lastAxisDynamicWidth||void 0))}),N_c(this));if("includeRange"in a){var d,e;if(((d=this.includeRange)==null?void 0:d.min)!==void 0||((e=this.includeRange)==null?void 0:e.max)!==void 0){var f,g,k,l,r,w,x,C,H,J;c.push(CG(this,{priority:1,min:Math.min((w=(f=this.includeRange)==null?void 0:f.min)!=null?w:Infinity,(x=(g=this.includeRange)==null?void 0:g.max)!=null?
x:Infinity),max:Math.max((C=(k=this.includeRange)==null?void 0:k.min)!=null?C:-Infinity,(H=(l=this.includeRange)==null?void 0:l.max)!=null?H:-Infinity),unit:(J=(r=this.includeRange)==null?void 0:r.unit)!=null?J:null,constraints:{onlyApplyIfUnitCompatible:!0}},"includeRange"))}else c.push(CG(this,null,"includeRange"))}if("exactRange"in a){var O,R;if(((O=this.exactRange)==null?void 0:O.min)!==void 0||((R=this.exactRange)==null?void 0:R.max)!==void 0){var V,ca,na,ua;c.push(CG(this,{priority:2,min:(V=
this.exactRange)==null?void 0:V.min,max:(ca=this.exactRange)==null?void 0:ca.max,unit:(ua=(na=this.exactRange)==null?void 0:na.unit)!=null?ua:null,cause:2},"exactRange"))}else this.withLatest(function(){c.push(CG(b,null,"exactRange"))})}UF(this.chart,c)}};h.onMouseDown=function(a){this.isMouseDown=!0;this.lastMouseDownEvent=a};
h.onMouseMove=function(a){var b=this,c=[];this.withLatest(function(d){var e=d.scope;var f=d.state;d=d.config;if(f){var g=f.brush,k=f.resize;if(g&&k){var l=BG(b,a),r=b.axisView.withinBodyOrAxis(l.x,l.y,b.position,k);r?c.push(IG({chartId:e.chartId,yAxisId:e.yAxisId,lastInteraction:{hover:l.y}})):c.push(IG({chartId:e.chartId,yAxisId:e.yAxisId,lastInteraction:{hover:null}}));if(r&&b.interactions.dragZoom&&b.isMouseDown&&!b.isPrimaryModifierKeyDown(a)&&b.lastMouseDownEvent&&!g.panning&&!g.brushing){g=
BG(b,b.lastMouseDownEvent);var w=b.lastMouseDownEvent;r=a.clientX-w.clientX;w=a.clientY-w.clientY;var x=Math.sqrt(Math.pow(r,2)+Math.pow(w,2));r=Math.abs(w/r)>=1&&x>10;k=b.axisView.withinBodyOrAxis(g.x,g.y,b.position,k);(b.isVertical&&r||!b.isVertical&&!r)&&k&&(l=b.axisView.calculateDataValue(l,f,d),f=b.axisView.calculateDataValue(g,f,d),l&&f&&c.push(UWc({chartGroupId:e.chartGroupId,chartId:e.chartId,yAxisId:e.yAxisId,position:l,positionStart:f})))}}}});this.lastMouseMoveEvent=a;return c};
h.onDocumentMouseMove=function(a){var b=this,c=[];this.withLatest(function(d){var e=d.scope;var f=d.state;d=d.config;if(f){var g=f.brush,k=f.resize;g&&k&&(k=BG(b,a),b.isEventInsideWindow(a)?b.interactions.dragZoom&&b.isMouseDown&&g.brushing&&g.axis===1&&(f=b.axisView.calculateDataValue(k,f,d))&&c.push(WWc({chartGroupId:e.chartGroupId,chartId:e.chartId,yAxisId:e.yAxisId,position:f})):c.push(VWc({chartGroupId:e.chartGroupId,chartId:e.chartId})))}});return c};
h.onMouseUp=function(a){var b=this;this.isMouseDown=!1;this.lastMouseDownEvent=null;this.withLatest(function(c){var d=c.scope;var e=c.state;var f=c.config;if(e){var g=e.brush;c=e.yAxis;if(g&&c&&b.interactions.dragZoom&&g.brushing&&g.axis===1&&(b.store.dispatch(VWc({chartGroupId:d.chartGroupId,chartId:d.chartId})),b.isEventInsideWindow(a))){var k=BG(b,a);e=b.axisView.calculateDataValue(k,e,f);var l;g=(l=g.yAxes.find(function(r){return r.chartId===d.chartId&&r.yAxisId===d.yAxisId}))==null?void 0:l.yPosStart;
e&&g&&(l=g<e,b.store.dispatch($Uc({chartId:d.chartId,yAxisId:d.yAxisId,id:d.layerId,priority:4,cause:4,min:l?g:e,max:l?e:g,unit:c.unit})),wl(b.interactionService,"drag",xl.ve.YZoomZone,b.el.nativeElement))}}})};h.onMouseLeave=function(){var a=this;this.withLatest(function(b){b=b.scope;a.store.dispatch(IG({chartId:b.chartId,yAxisId:b.yAxisId,lastInteraction:{hover:null}}))})};
h.syncOnScroll=function(a){var b=this;this.interactions.ctrlScrollZoom&&this.isPrimaryModifierKeyDown(a)&&this.withLatest(function(c){if((c=c.state)&&b.lastMouseMoveEvent&&(c=c.resize)){var d=BG(b,b.lastMouseMoveEvent);b.axisView.withinAxis(d.x,d.y,b.position,c)&&a.preventDefault()}})};
h.onScroll=function(a){var b=this;this.interactions.ctrlScrollZoom&&this.isPrimaryModifierKeyDown(a)&&this.withLatest(function(c){if((c=c.state)&&b.lastMouseMoveEvent&&(c=c.resize)){var d=BG(b,b.lastMouseMoveEvent);b.axisView.withinAxis(d.x,d.y,b.position,c)&&(b.cachedScrollAmount+=a.deltaY,b.scrollZoomSubject.next(d))}})};
h.scrollZoom=function(a){var b=this;this.withLatest(function(c){var d=c.scope;var e=c.state;var f=c.config;if(e&&b.lastMouseMoveEvent&&(c=e.yAxis)&&c.min!==null&&c.max!==null){var g=b.axisView.pxToScaleType(b.cachedScrollAmount,e,f);if(g&&(e=b.axisView.calculateDataValue(a,e,f))){e=(e-c.min)/(c.max-c.min);g=Math.min(g,(c.max-c.min)*.999);f=c.min+g*e;var k=c.max-g*(1-e);g=f;f=k;k=1E-9-Math.abs(f-g);k>0&&(g-=k*e,f+=k*(1-e));e=m([g,f]);f=e.next().value;k=e.next().value;b.store.dispatch($Uc({chartId:d.chartId,
yAxisId:d.yAxisId,id:d.layerId,priority:4,cause:4,min:f,max:k,unit:c.unit}));wl(b.interactionService,"scroll",xl.ve.YZoomZone,b.el.nativeElement,{debounce:!0});b.cachedScrollAmount=0}}})};h.onClick=function(a){var b=this;this.withLatest(function(c){var d=c.scope;if(c=c.state)if(c=c.resize){var e=BG(b,a);b.axisView.withinBodyOrAxis(e.x,e.y,b.position,c)&&b.store.dispatch(IG({chartId:d.chartId,yAxisId:d.yAxisId,lastInteraction:{click:e.y}}))}})};
h.isEventInsideWindow=function(a){return a.clientX>=0&&a.clientY>=0&&a.clientX<=window.innerWidth&&a.clientY<=window.innerHeight};
h.createMarginRequirementAction=function(a,b,c){var d={},e={},f=Math.max(50,c||0);c=Math.max((c||0)/2,10);if(b)switch(b.position){case "right":d={right:f};e={left:10,top:10,bottom:10};break;case "left":d={left:f};e={right:10,top:10,bottom:10};break;case "top":d={top:20};e={left:c,right:c};break;case "bottom":d={bottom:20};e={left:c,right:c};break;default:e={top:10,bottom:10}}return iG({chartGroupId:a.chartGroupId,chartId:a.chartId,layerId:a.layerId,reservedMargins:d,overlappingMargins:e})};
var N_c=function(a){a.withLatest(function(b){switch(a.position){case "left":case "right":a.axisView.updateStrategy(new JH,b);if(a.axisView instanceof IH){var c=a.axisView;c.brushStrategy=new GH;c.drawBrushInternal(b)}var d;(d=a.brushView)==null||d.updateStrategy(new GH,b);break;case "top":case "bottom":a.axisView.updateStrategy(new J_c,b),a.axisView instanceof IH&&(d=a.axisView,d.brushStrategy=new HH,d.drawBrushInternal(b)),(c=a.brushView)==null||c.updateStrategy(new HH,b)}})};
KH.prototype.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);UF(this.chart,[YUc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId})])};da.Object.defineProperties(KH.prototype,{isVertical:{configurable:!0,enumerable:!0,get:function(){return this.position==="right"||this.position==="left"}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},L_c,a)},get:function(){return this.interactionsInternal}}});
KH.\u0275fac=function(a){return new (a||KH)(Ve(Hd),Ve(TF),Ve(gG),Ve(xl),Ve(QG),Ve(Rg),Ve(NUc,8))};
KH.\u0275cmp=D({type:KH,selectors:[["ac-y-axis"]],hostAttrs:[1,"composable-layer","ac-y-axis"],inputs:{label:"label",position:"position",styles:"styles",tickStrategy:"tickStrategy",interactions:"interactions",includeRange:"includeRange",exactRange:"exactRange"},features:[Ef,jx],decls:3,vars:3,consts:[[1,"ac-screen-reader-only-content"]],template:function(a,b){a&1&&(Qf(0,"p",0),Q(1),T(2,"async"),Rf());a&2&&(B(),yg(U(2,1,b.axisDescriptionObservable)))},dependencies:[Tx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}"],
changeDetection:0});var O_c=new dd("deferredTypes");new dd("hadPreloadClick");var LH=function(a,b,c,d){XG.call(this,a);var e=this;this.queueService=b;this.ngZone=c;this.enclosingHovercard=d;this.timeKey=1;this.updateDebouncedTriggerSubject=new qf;this.categoryHeaderObservable=this.categoryHeaderSubject=new Mj(null);this.hideCardWhenEmpty=!1;this.setup({});d&&d.timeKeyObservable.pipe(zf(this.destroyed)).subscribe(function(f){e.timeKey=f;e.withLatest(function(g){e.update(g)})});this.ngZone.runOutsideAngular(function(){e.updateDebouncedTriggerSubject.pipe(Bf(10)).pipe(zf(e.destroyed)).subscribe(function(){e.withLatest(function(f){e.update(f)})})})};
Y(LH,XG);LH.\u0275dir=XG.\u0275dir;LH.prototype.onLastInteractionChange=function(){this.updateDebouncedTriggerSubject.next()};LH.prototype.update=function(a){if(a=a.state){var b=a.lastInteraction;a.resize&&b&&(this.timeKey===1?this.categoryHeaderSubject.next(b.category.hover):this.timeKey===2&&this.categoryHeaderSubject.next(b.category.click),this.hideCardWhenEmpty&&this.enclosingHovercard&&(this.enclosingHovercard.showHovercardOverride=this.categoryHeaderSubject.value===null?"hide":"no_override"))}};
LH.prototype.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};da.Object.defineProperties(LH.prototype,{dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:wb(a,"unknown data source")}}}});
LH.\u0275fac=function(a){return new (a||LH)(Ve(gG),Ve(UG),Ve(Rg),Ve(YG,8))};LH.\u0275cmp=D({type:LH,selectors:[["ac-category-header"]],inputs:{hideCardWhenEmpty:"hideCardWhenEmpty",dataSource:"dataSource"},features:[Ef],decls:2,vars:3,consts:[[4,"ngIf"],[1,"category-header-card"]],template:function(a,b){a&1&&(E(0,VEa,3,1,"ng-container",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.categoryHeaderObservable))},dependencies:[Nx,Tx],styles:[".category-header-card[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);text-align:left;height:16px;font-size:12px}/*# sourceMappingURL=ac_category_header.css.map */"]});var P_c=[[["","prefix",""]],[["","suffix",""]]],Q_c=0,R_c={chartGroupId:"",chartId:"",xAxisId:"chart_group",yAxisId:"right",layerId:""},MH=function(){var a=this;this.acDateTimeFastId=Q_c++;this.timeKey=1;this.dateFormatStrategy=RBa;this.numericFormatStrategy=SBa;this.dateTimeSubject=new Mj({cursor:null,min:null,max:null,unit:null});this.timeZoneSubject=new Mj(Fk(Kza));this.inputScopeSubject=new Mj({});this.destroyed=new qf;this.queueService=p(UG);this.selectorService=p(gG);this.timeSeriesState=this.lastInteractionState=
this.resizeState=this.xAxisPinState=this.xAxisState=null;this.scope=R_c;var b=p(AG,{optional:!0}),c=p(TF,{optional:!0});b=(b==null?void 0:b.scopeObservable)||(c==null?void 0:c.scopeObservable)||ce({});this.scopeObservable=ie([b,this.inputScopeSubject]).pipe(A(function(d){var e=m(d);d=e.next().value;e=e.next().value;return Object.assign({},R_c,d,e)}));this.formattedDateTimeObservable=ie([this.dateTimeSubject,this.timeZoneSubject]).pipe(A(function(d){var e=m(d);d=e.next().value;e=e.next().value;if(d.unit===
"ms_since_epoch"){var f,g,k;return d.cursor?a.dateFormatStrategy(new Date((f=d.cursor)!=null?f:""),d.min?new Date((g=d.min)!=null?g:""):null,d.max?new Date((k=d.max)!=null?k:""):null,e):""}return a.numericFormatStrategy(d.cursor,d.min,d.max)}));(b=p(YG,{optional:!0}))&&b.timeKeyObservable.pipe(zf(this.destroyed)).subscribe(function(d){a.timeKey=d;a.update()});this.setupStateChangeHandler(this.selectorFactoryToObservable(AWc),function(d){a.onXAxisChange(d)},"xAxis");this.setupStateChangeHandler(this.selectorFactoryToObservable(HTc),
function(d){a.onXAxisPinChange(d)},"xAxisPin");this.setupStateChangeHandler(this.selectorFactoryToObservable(HSc),function(d){a.onResizeChange(d)},"resize");this.setupStateChangeHandler(this.selectorFactoryToObservable(eWc),function(d){a.onLastInteractionChange(d)},"lastInteraction");this.setupStateChangeHandler(this.selectorFactoryToObservable(GTc),function(d){a.onTimeSeriesChange(d)},"timeSeries");this.scopeObservable.subscribe(function(d){a.onScopeChange(d)})};h=MH.prototype;
h.onXAxisChange=function(a){this.xAxisState=a.currentValue;if(Vk(a)||Wk(a)){var b,c=(b=a.currentValue)==null?void 0:b.timezoneOffset,d;a=(d=a.currentValue)==null?void 0:d.timeZoneId;c=Gk(c,a);this.timeZoneSubject.next(c)}};h.onXAxisPinChange=function(a){this.xAxisPinState=a.currentValue;this.timeKey===0&&this.update()};h.onLastInteractionChange=function(a){this.lastInteractionState=a.currentValue;this.update()};h.onResizeChange=function(a){this.resizeState=a.currentValue};
h.onTimeSeriesChange=function(a){this.timeSeriesState=a.currentValue;this.update()};h.onScopeChange=function(a){a!==null&&(this.scope=a,this.update())};
h.update=function(){var a=this.xAxisState,b=this.xAxisPinState,c=this.lastInteractionState,d=this.resizeState,e=this.timeSeriesState;if(a&&d&&c&&b){c=pl(this.scope,c);d=Yk(a,d.margins.left,d.width-d.margins.right);a:{var f=this.timeKey;switch(f){case 0:var g;d=(g=b==null?void 0:b.xPos)!=null?g:null;break a;case 2:var k;g=(k=c.click)==null?void 0:k.x;d=d&&g?d(g):null;break a;case 1:var l;g=(l=c.hover)==null?void 0:l.x;d=d&&g?d(g):null;break a;case 3:d=a.max;break a;case 4:var r;g=(r=c.multiselectAnchor)==
null?void 0:r.x;d=d&&g?d(g):null;break a;default:wb(f,"unknown data source")}d=void 0}if(d!==null){b=e==null?void 0:e.byLayer.ids;e=e==null?void 0:e.byLayer.entities;k=g=null;r=l=Infinity;if((b==null?0:b.length)&&e)for(b=m(b),c=b.next();!c.done;c=b.next())if((f=e[c.value])&&(f.valueType===1||f.valueType===2)){var w=void 0,x=void 0,C=void 0;c=(w=f)==null?void 0:(x=w.snapshotMetadata)==null?void 0:(C=x[this.timeKey])==null?void 0:C.alignmentRange.x0;C=x=w=void 0;f=(w=f)==null?void 0:(x=w.snapshotMetadata)==
null?void 0:(C=x[this.timeKey])==null?void 0:C.alignmentRange.x;c&&f?(w=Math.abs(f-d)+Math.abs(c-d),w<r&&(k=c,g=f,r=w)):f&&r===Infinity&&(c=Math.abs(f-d),c<l&&(g=f,l=c))}this.dateTimeSubject.next({cursor:d,max:g,min:k,unit:a.unit})}}};h.setupStateChangeHandler=function(a,b,c){var d=this,e=null;a.pipe(zf(this.destroyed)).subscribe(function(f){var g={previousValue:e,currentValue:f};e=f;d.scheduleStateChangeHandler(g,{},b,d.acDateTimeFastId+"-"+c,d.scope)})};
h.selectorFactoryToObservable=function(a){var b=this;return this.scopeObservable.pipe(yf(function(c){return b.selectorService.getSelection(a,c)}),ue(function(c){return c!==void 0}))};h.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};h.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
h.ngOnChanges=function(a){"scopeInput"in a&&this.inputScopeSubject.next(Object.assign({},this.scopeInput))};da.Object.defineProperties(MH.prototype,{dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:wb(a,"unknown data source")}this.update()}}});
MH.\u0275fac=function(a){return new (a||MH)};
MH.\u0275cmp=D({type:MH,selectors:[["ac-date-time-fast"]],inputs:{dataSource:"dataSource",dateFormatStrategy:"dateFormatStrategy",numericFormatStrategy:"numericFormatStrategy",scopeInput:[0,"scope","scopeInput"]},features:[jx],ngContentSelectors:["[prefix]","[suffix]"],decls:2,vars:3,consts:[[1,"date-time-card"]],template:function(a,b){a&1&&(bg(P_c),F(0,WEa,4,1,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.formattedDateTimeObservable))?0:-1,c)}},dependencies:[Tx],styles:[".date-time-card[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);text-align:left;height:16px;font-size:12px}/*# sourceMappingURL=ac_date_time_fast.css.map */"]});var NH=function(a,b){XG.call(this,a);this.ngZone=b;this.nonblockingErrorMessageSubject=new Mj(null);this.nonblockingErrorMessageObservable=this.nonblockingErrorMessageSubject.pipe(nf(),xk(this.ngZone));this.setup({})};Y(NH,XG);NH.\u0275dir=XG.\u0275dir;NH.prototype.onErrorChange=function(a){var b,c,d;a=(b=a.currentValue)==null?void 0:(c=b.nonblockingErrors)==null?void 0:(d=c[0])==null?void 0:d.error.displayMessage;this.nonblockingErrorMessageSubject.next(a||null)};
NH.\u0275fac=function(a){return new (a||NH)(Ve(gG),Ve(Rg))};
NH.\u0275cmp=D({type:NH,selectors:[["ac-nonblocking-error-banner"]],outputs:{nonblockingErrorMessageObservable:"nonblockingErrorMessageObservable"},features:[Ef],decls:2,vars:3,consts:[["class","partial-error-div",4,"ngIf"],[1,"partial-error-div"],["svgIcon","ac:warning",1,"icon","mat-18","partial-error-icon"],[1,"partial-error-message"]],template:function(a,b){a&1&&(E(0,XEa,5,3,"div",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.nonblockingErrorMessageObservable))},dependencies:[Jy,Nx,Tx],styles:['.partial-error-div[_ngcontent-%COMP%]{width:100%;display:flex;font-family:"Roboto",sans-serif;font-size:13px;line-height:20px;margin:0;border-radius:8px;max-height:80px;overflow:auto;padding:16px 24px 12px;background:var(--ac-sys-color-extensions-warning-surface, #fef7e0);box-sizing:border-box}.partial-error-icon[_ngcontent-%COMP%]{flex:0 0 26px}.partial-error-message[_ngcontent-%COMP%]{flex:0 0 1}/*# sourceMappingURL=ac_nonblocking_error_banner.css.map */'],
changeDetection:0});var OH=function(a,b,c,d){XG.call(this,a);var e=this;this.queueService=b;this.ngZone=c;this.enclosingHovercard=d;this.hideCardWhenEmpty=!1;this.aboveLabel="Above";this.belowLabel="Below";this.updateDebouncedTriggerSubject=new qf;this.thresholdInfoObservable=this.thresholdInfoSubject=new Mj(null);this.setup({});this.ngZone.runOutsideAngular(function(){e.updateDebouncedTriggerSubject.pipe(Bf(10)).pipe(zf(e.destroyed)).subscribe(function(){e.withLatest(function(f){e.update(f)})})})};Y(OH,XG);
OH.\u0275dir=XG.\u0275dir;OH.prototype.onLastInteractionChange=function(){this.updateDebouncedTriggerSubject.next()};OH.prototype.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};
OH.prototype.update=function(a){if(a=a.state){var b=a.lastInteraction;a.resize&&b&&(b.threshold?this.thresholdInfoSubject.next(b.threshold.hover):this.thresholdInfoSubject.next(null),this.hideCardWhenEmpty&&this.enclosingHovercard&&(this.enclosingHovercard.showHovercardOverride=this.thresholdInfoSubject.value===null?"hide":"no_override"))}};OH.\u0275fac=function(a){return new (a||OH)(Ve(gG),Ve(UG),Ve(Rg),Ve(YG,8))};
OH.\u0275cmp=D({type:OH,selectors:[["ac-threshold-info"]],inputs:{hideCardWhenEmpty:"hideCardWhenEmpty"},features:[Ef],decls:2,vars:3,consts:[[4,"ngIf"],[1,"threshold-info-body"],[1,"threshold-info-label"],[1,"threshold-info-bounds-label"]],template:function(a,b){a&1&&(E(0,YEa,8,5,"ng-container",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.thresholdInfoObservable))},dependencies:[Nx,Tx],styles:[".threshold-info-body[_ngcontent-%COMP%]{font-size:12px;line-height:16px;font-weight:400;color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368)}.threshold-info-bounds-label[_ngcontent-%COMP%]{font-weight:800}/*# sourceMappingURL=ac_threshold_info.css.map */"]});var PH=function(){this.streamActions=[];this.filteredStreamActions=[]};PH.prototype.ngOnChanges=function(){var a=this;this.filteredStreamActions=this.streamActions.filter(function(b){return a.streamMetadata&&b.relevant(a.streamMetadata)})};PH.\u0275fac=function(a){return new (a||PH)};
PH.\u0275cmp=D({type:PH,selectors:[["ac-streams-legend-actions"]],inputs:{streamMetadata:"streamMetadata",streamActions:"streamActions"},features:[jx],decls:4,vars:3,consts:[["streamActionsMenu",""],["class","stream-actions","mat-icon-button","","aria-label","Open timeserie action menu",3,"matMenuTriggerFor",4,"ngIf"],[3,"streamMetadata","streamActions"],["mat-icon-button","","aria-label","Open timeserie action menu",1,"stream-actions",3,"matMenuTriggerFor"]],template:function(a,b){a&1&&(E(0,ZEa,
3,1,"button",1),K(1,"mat-menu",null,0),M(3,"ac-stream-action-menu",2),L());a&2&&(I("ngIf",b.filteredStreamActions.length>0),B(3),I("streamMetadata",b.streamMetadata)("streamActions",b.filteredStreamActions))},dependencies:[by,Nx,Ly,Jy,jB,iB,jH,fH,iH,kH],styles:["button.stream-actions[_ngcontent-%COMP%]{width:16px;height:16px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0}button.stream-actions[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;color:#202124}\n/*# sourceMappingURL=ac_streams_legend_actions.css.map */"],
changeDetection:0});var S_c=function(a){this.valueType=0;this.getColor=a.getColor;this.getDisplayValue=a.getDisplayValue;this.getIsInteracted=a.getIsInteracted;this.getName=a.getName;this.getMinDisplayValue=a.getMinDisplayValue;this.getMaxDisplayValue=a.getMaxDisplayValue;this.getMetadata=a.getMetadata;this.drawnAs=a.drawnAs;this.lineDash=a.lineDash;this.rawValue=a.rawValue;this.scaledValue=a.scaledValue;this.pxValue=a.pxValue;this.shape=a.shape;this.stackingIndex=a.stackingIndex};
da.Object.defineProperties(S_c.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this.getColor()}},displayValue:{configurable:!0,enumerable:!0,get:function(){return this.displayValueCache?this.displayValueCache:this.displayValueCache=this.getDisplayValue()}},minDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.minDisplayValueCache)return this.minDisplayValueCache;if(this.getMinDisplayValue)return this.minDisplayValueCache=this.getMinDisplayValue()}},maxDisplayValue:{configurable:!0,
enumerable:!0,get:function(){if(this.maxDisplayValueCache)return this.maxDisplayValueCache;if(this.getMaxDisplayValue)return this.maxDisplayValueCache=this.getMaxDisplayValue()}},isInteracted:{configurable:!0,enumerable:!0,get:function(){return this.getIsInteracted()}},name:{configurable:!0,enumerable:!0,get:function(){return this.getName()}},timeshiftDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.getTimeshiftDisplayValue)return this.getTimeshiftDisplayValue()}},metadata:{configurable:!0,
enumerable:!0,get:function(){if(this.getMetadata)return this.getMetadata()}}});var T_c=function(){S_c.apply(this,arguments);this.valueType=1};Y(T_c,S_c);var U_c=function(){S_c.apply(this,arguments);this.valueType=2};Y(U_c,S_c);var nFa=function(){return[]},lFa=function(a){return{"min-width":a}},aFa=function(a,b){return{$implicit:a,name:b}},fFa=function(a){return{$implicit:a}},V_c=["right","left"],QH=function(){var a=p(gG);XG.call(this,a);var b=this;this.AC_SYS_COLOR_CHART_ON_SURFACE="var(--ac-sys-color-chart-on-surface, #000)";this.queueService=p(UG);this.formatterService=p(fG);this.cdr=p(Cx);this.enclosingHovercard=p(YG,{optional:!0});this.timeKey=1;this.hideThresholds=!1;this.minWidth=0;this.streamActions=[];this.hideUndefinedValues=
this.condensedShapes=!1;this.layerIdsToIgnore=[];this.distributionColorStrategy=WYc;this.chartQuickActionsEnabled=this.formatDistribution=!1;this.sortingSetting="by_value";this.updateTriggerSubject=new qf;this.xAxisLookup={ids:[],entities:{}};this.isQuery=!1;this.seriesMetadataForLabelTablesCache=this.labelTablesCache=null;this.valueColumnLabel="Value";this.updateTimeout=null;this.allStreamsSubject=new Mj([]);this.sortedStreamsObservable=this.allStreamsSubject.pipe(A(function(c){return b.sortingSetting===
"alphabetical"?c.sort(function(d,e){return d.name.localeCompare(e.name,"en")}):c.sort(pFa)}));this.relativeYPosSubject=new Mj(null);this.centerStreamIndexObservable=ie([this.sortedStreamsObservable,this.relativeYPosSubject]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return b.getCenterStreamIndex(c,d)}),nf());this.streamsObservable=this.sortedStreamsObservable;this.timeshiftColumnLabelSubject=new Mj("");this.timeshiftColumnLabelObservable=this.timeshiftColumnLabelSubject.pipe(vf({bufferSize:1,
refCount:!0}));this.setup({});this.scopeObservable.pipe(yf(function(c){return b.formatterService.getValueStrategy(c)}),zf(this.destroyed)).subscribe(function(c){b.ignoreFloatImprecision=c.ignoreFloatImprecision;b.valueFormatter=function(d,e,f,g){var k,l;return(l=(k=c.formatForHovercard)==null?void 0:k.call(c,d,e,f,g))!=null?l:c.format(d,e,f,g)};b.updateTriggerSubject.next()})};Y(QH,XG);QH.\u0275dir=XG.\u0275dir;h=QH.prototype;
h.ngOnChanges=function(a){XG.prototype.ngOnChanges.call(this,a);"layerIdsToIgnore"in a&&this.update()};
h.ngOnInit=function(){var a=this;this.store.pipe(ak(tG),zf(this.destroyed)).subscribe(function(c){a.xAxisLookup=c});var b=V_c.map(function(c){return a.scopeObservable.pipe(yf(function(d){return a.selectorService.getSelection(yG,Object.assign({},d,{yAxisId:c}))}),A(function(d){return d!=null?d:null}),xf(null),tf(),A(gk),ue(function(d){return rl(d)}))});this.enclosingHovercard&&(this.enclosingHovercard.timeKeyObservable.pipe(zf(this.destroyed)).subscribe(function(c){a.timeKey=c}),this.enclosingHovercard.showHovercard.pipe(zf(this.destroyed)).subscribe(function(c){c&&
a.update()}));te.apply(null,[this.updateTriggerSubject].concat(q(b))).pipe(ue(function(){var c,d;return(d=(c=a.enclosingHovercard)==null?void 0:c.isShowing)!=null?d:!0}),zf(this.destroyed)).subscribe(function(){a.throttledUpdate()})};h.throttledUpdate=function(){var a=this;this.updateTimeout||(this.updateTimeout=setTimeout(function(){a.update();a.updateTimeout=null},0))};
h.update=function(a){var b=this,c=V_c.map(function(d){return b.scopeObservable.pipe(yf(function(e){return b.selectorService.getSelection(yG,Object.assign({},e,{yAxisId:d}))}))});ie(c).pipe(lf(1)).subscribe(function(d){for(var e=new Map,f=0;f<V_c.length;f++)e.set(V_c[f],d[f]);b.withLatest(function(g){var k=g.scope;var l=g.state;if(k&&l&&l.timeSeries&&l.brush&&l.resize){g=l.colorScale;var r=l.seriesSelection,w=l.timeSeries,x=l.resize;if(!l.brush.panning){a&&b.deselectAllSeries(k,r);l=b.getInteractedSeries(r);
r=new Map;for(var C=m(V_c),H=C.next();!H.done;H=C.next()){H=H.value;var J=e.get(H);if(J){J=sl(J,x.margins.top,x.height-x.margins.bottom,J.unit);var O=void 0;r.set(H,(O=J)!=null?O:null)}else r.set(H,null)}w=b.getRelevantLayers(w);x=b.getTimeShiftColumnLabel(k,w);b.timeshiftColumnLabelSubject.next(x);k=b.buildStreams(k,w,l,r,e,g);b.allStreamsSubject.next(k);b.cdr.markForCheck()}}})})};
h.getTimeShiftColumnLabel=function(a,b){var c=null;b=m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=void 0,f=void 0,g=void 0,k=void 0,l=void 0,r=void 0,w=(g=this.xAxisLookup.entities[Ek((l=(e=a)==null?void 0:e.chartGroupId)!=null?l:"",(r=(f=a)==null?void 0:f.chartId)!=null?r:"",d.xAxisId)])==null?void 0:(k=g.relativeTo)==null?void 0:k.shift;d=w?CBa(w):null;if(!c)c=d;else if(d&&c!==d)throw Error("Fc");}return c||""};h.trackByIndex=function(a){return a};h.onScopeChange=function(){this.updateTriggerSubject.next()};
h.onSeriesSelectionChange=function(a){il(a)&&this.updateTriggerSubject.next()};h.onChartSpecChange=function(a){var b,c;a=(b=a.currentValue)==null?void 0:(c=b.dataSets)==null?void 0:c[0];this.isQuery=(a==null?void 0:a.timeSeriesQuery)!==void 0||(a==null?void 0:a.prometheusQuery)!==void 0};h.onTimeSeriesChange=function(){this.updateTriggerSubject.next()};h.onResizeChange=function(){this.updateTriggerSubject.next()};
h.onLastInteractionChange=function(a,b){if(a=a.currentValue)b=this.getLastInteractionYPos(pl(b.scope,a)),this.relativeYPosSubject.next(b)};h.deselectAllSeries=function(a,b){var c=this;b&&Object.values(b.byLayer.entities).filter(function(d){return d!==void 0&&d!==null}).forEach(function(d){d.selectedSeries&&a.chartId&&c.store.dispatch(aH({chartId:a.chartId,layerId:d.layerId}))})};
h.getInteractedSeries=function(a){var b=this,c=[];a&&Object.values(a.byLayer.entities).forEach(function(d){c=c.concat(b.getLayerInteractedSeries(d))});return c};h.getLayerInteractedSeries=function(a){if(!a)return[];switch(this.timeKey){case 2:return[];case 0:case 3:return a.selectedSeries;case 1:return a.hoveredSeries;case 4:return[];default:wb(this.timeKey,"unknown data source")}};
h.getLastInteractionYPos=function(a){if(!a)return null;switch(this.timeKey){case 0:var b,c;return(c=(b=a.focus)==null?void 0:b.y)!=null?c:null;case 2:var d,e;return(e=(d=a.click)==null?void 0:d.y)!=null?e:null;case 1:var f,g;return(g=(f=a.hover)==null?void 0:f.y)!=null?g:null;case 3:return null;case 4:var k,l;return(l=(k=a.multiselectAnchor)==null?void 0:k.y)!=null?l:null;default:wb(this.timeKey,"unknown data source")}};
h.displayName=function(a,b){var c=null;a.legendTemplate?b=new vl(a.legendTemplate):this.labelTemplate&&(b=new vl(this.labelTemplate));var d=zCa(a.dataSeriesMetadata);d&&b&&(c=b.format(d,this.getTranslationFunctions()));var e;return(e=c)!=null?e:a.name||a.seriesId||""};h.getRelevantLayers=function(a){var b=this;return Object.values(a.byLayer.entities).filter(function(c){return!(!c||b.layerIdsToIgnore.includes(c.layerId)||c.valueType!==1&&c.valueType!==2&&c.valueType!==3)})};
h.buildStreams=function(a,b,c,d,e,f){var g=this,k=new Map,l=new Map;b=m(b);for(var r=b.next(),w={};!r.done;w={layer$jscomp$14:void 0,yAxisState$jscomp$8:void 0,layerColorScale$jscomp$1:void 0,labelFormatter$jscomp$5:void 0,labelFormatter$jscomp$6:void 0},r=b.next())if(w.layer$jscomp$14=r.value,w.yAxisState$jscomp$8=e.get(w.layer$jscomp$14.yAxisId),w.yAxisState$jscomp$8){var x=void 0,C=void 0,H=void 0,J=void 0,O=void 0,R=void 0;r=!!((H=this.xAxisLookup.entities[Ek((O=(x=a)==null?void 0:x.chartGroupId)!=
null?O:"",(R=(C=a)==null?void 0:C.chartId)!=null?R:"",w.layer$jscomp$14.xAxisId)])==null?0:(J=H.relativeTo)==null?0:J.shift);if(w.layer$jscomp$14.valueType===2)for(x=void 0,w.layerColorScale$jscomp$1=(x=f)==null?void 0:x.byLayer.entities[w.layer$jscomp$14.layerId],x=Object.values(w.layer$jscomp$14.bySeries.entities),C=void 0,w.labelFormatter$jscomp$5=this.getCachedLabelFormatter(x,(C=w.layer$jscomp$14.legendTemplate)!=null?C:this.labelTemplate),x=m(x),H=x.next(),C={};!H.done;C={series$jscomp$53:void 0,
getDisplayValueAndBucketCount$jscomp$1:void 0},H=x.next())(C.series$jscomp$53=H.value,!C.series$jscomp$53||this.hideThresholds&&C.series$jscomp$53.drawnAs===6||(H=C.series$jscomp$53.atTimeKey[this.timeKey],this.hideUndefinedValues&&!H))||(C.getDisplayValueAndBucketCount$jscomp$1=function(ha,sa){return function(){return g.formatDistributionValue(ha.series$jscomp$53,sa.layer$jscomp$14.unit,sa.layer$jscomp$14.yAxisId,sa.yAxisState$jscomp$8.min,sa.yAxisState$jscomp$8.max,sa.yAxisState$jscomp$8.unit,sa.yAxisState$jscomp$8.maximumFractionDigits)}}(C,
w),H=void 0,J=new U_c({getColor:function(ha,sa){return function(){var xa=(0,ha.getDisplayValueAndBucketCount$jscomp$1)().bucketCount;xa=sa.layerColorScale$jscomp$1?g.distributionColorStrategy.getColor(xa!=null?xa:sa.layerColorScale$jscomp$1.min,sa.layerColorScale$jscomp$1):"var(--ac-sys-color-chart-on-surface, #000)";return typeof xa!=="string"?"var(--ac-sys-color-chart-on-surface, #000)":xa}}(C,w),getDisplayValue:function(ha){return function(){return(0,ha.getDisplayValueAndBucketCount$jscomp$1)().displayValue}}(C),
getIsInteracted:function(ha){return function(){return c.map(function(sa){return sa.seriesId}).includes(ha.series$jscomp$53.seriesId)}}(C),getName:function(ha,sa){return function(){return g.displayName(ha.series$jscomp$53,sa.labelFormatter$jscomp$5)}}(C,w),getMetadata:function(ha){return function(){return ha.series$jscomp$53.dataSeriesMetadata}}(C),drawnAs:C.series$jscomp$53.drawnAs,lineDash:C.series$jscomp$53.lineDash,rawValue:(H=C.series$jscomp$53.atTimeKey[this.timeKey])!=null?H:void 0}),r?l.set(C.series$jscomp$53.seriesId,
J):k.set(C.series$jscomp$53.seriesId,J));else if(w.layer$jscomp$14.valueType===1||w.layer$jscomp$14.valueType===3)if(x=d.get(w.layer$jscomp$14.yAxisId))for(C=Object.values(w.layer$jscomp$14.bySeries.entities),H=void 0,w.labelFormatter$jscomp$6=this.getCachedLabelFormatter(C,(H=w.layer$jscomp$14.legendTemplate)!=null?H:this.labelTemplate),C=m(C),J=C.next(),H={};!J.done;H={series$jscomp$54:void 0,value$jscomp$8635:void 0,getName$jscomp$4:void 0},J=C.next())if(H.series$jscomp$54=J.value,H.series$jscomp$54&&
(!this.hideThresholds||H.series$jscomp$54.drawnAs!==6)&&(H.value$jscomp$8635=H.series$jscomp$54.atTimeKey[this.timeKey],!this.hideUndefinedValues||H.value$jscomp$8635)){O=function(ha){return function(){return ha.series$jscomp$54.color}}(H);H.getName$jscomp$4=function(ha,sa){return function(){return g.displayName(ha.series$jscomp$54,sa.labelFormatter$jscomp$6)}}(H,w);R=function(ha,sa){return function(){var xa;return g.formatNumericValue((xa=ha.value$jscomp$8635)==null?void 0:xa.y,sa.layer$jscomp$14.unit,
sa.layer$jscomp$14.yAxisId,sa.yAxisState$jscomp$8.min,sa.yAxisState$jscomp$8.max,sa.yAxisState$jscomp$8.unit,sa.yAxisState$jscomp$8.maximumFractionDigits,sa.layer$jscomp$14.pointConnectionMethod,(0,ha.getName$jscomp$4)())}}(H,w);var V=void 0;J=((V=H.value$jscomp$8635)==null?void 0:V.min)!==void 0?function(ha,sa){return function(){var xa;return g.formatNumericValue((xa=ha.value$jscomp$8635)==null?void 0:xa.min,sa.layer$jscomp$14.unit,sa.layer$jscomp$14.yAxisId,sa.yAxisState$jscomp$8.min,sa.yAxisState$jscomp$8.max,
sa.yAxisState$jscomp$8.unit,sa.yAxisState$jscomp$8.maximumFractionDigits,sa.layer$jscomp$14.pointConnectionMethod,(0,ha.getName$jscomp$4)())}}(H,w):void 0;var ca=void 0;V=((ca=H.value$jscomp$8635)==null?void 0:ca.max)!==void 0?function(ha,sa){return function(){var xa;return g.formatNumericValue((xa=ha.value$jscomp$8635)==null?void 0:xa.max,sa.layer$jscomp$14.unit,sa.layer$jscomp$14.yAxisId,sa.yAxisState$jscomp$8.min,sa.yAxisState$jscomp$8.max,sa.yAxisState$jscomp$8.unit,sa.yAxisState$jscomp$8.maximumFractionDigits,
sa.layer$jscomp$14.pointConnectionMethod,(0,ha.getName$jscomp$4)())}}(H,w):void 0;var na=function(ha){return function(){return c.map(function(sa){return sa.seriesId}).includes(ha.series$jscomp$54.seriesId)}}(H),ua=function(ha){return function(){return ha.series$jscomp$54.dataSeriesMetadata}}(H),ia=void 0;ca=H.value$jscomp$8635!==void 0&&H.value$jscomp$8635!==null?(ia=Lk(w.layer$jscomp$14.unit,w.yAxisState$jscomp$8.unit,H.value$jscomp$8635.y))!=null?ia:H.value$jscomp$8635.y:void 0;var Ga=ia=void 0;
O=new T_c({getColor:O,getDisplayValue:R,getIsInteracted:na,getName:H.getName$jscomp$4,getMetadata:ua,drawnAs:H.series$jscomp$54.drawnAs,lineDash:H.series$jscomp$54.lineDash,rawValue:(Ga=(ia=H.value$jscomp$8635)==null?void 0:ia.y)!=null?Ga:void 0,scaledValue:ca,pxValue:H.value$jscomp$8635!==void 0&&H.value$jscomp$8635!==null?x(H.value$jscomp$8635.y):void 0,shape:H.series$jscomp$54.shape,stackingIndex:H.series$jscomp$54.stackingIndex,getMinDisplayValue:J,getMaxDisplayValue:V});r?l.set(H.series$jscomp$54.seriesId,
O):k.set(H.series$jscomp$54.seriesId,O)}}a=m(k);e=a.next();for(d={};!e.done;d={shiftedStream$jscomp$3:void 0},e=a.next())f=m(e.value),e=f.next().value,f=f.next().value,d.shiftedStream$jscomp$3=l.get(e),d.shiftedStream$jscomp$3&&(f.getTimeshiftDisplayValue=function(ha){return function(){return ha.shiftedStream$jscomp$3.displayValue}}(d),l.delete(e));return Array.from(k.values()).concat(Array.from(l.values()))};
h.getCachedLabelFormatter=function(a,b){a=ACa(a);var c=BCa(a,b,this.isQuery);b=c.formatter;a=c.labelTables;c=c.seriesMetadata;a&&(this.labelTablesCache=a);c&&(this.seriesMetadataForLabelTablesCache=c);return b};
h.getTranslationFunctions=function(){var a=this,b={};this.withLatest(function(c){var d,e=(d=c.state)==null?void 0:d.map;if(e!==void 0){var f,g;b=Object.assign({},(g=(f=a.customTranslationFunctions)==null?void 0:f.getBoundGlobalFunctions())!=null?g:{},{credentialNameOrId:function(k){var l,r,w;k=(w=k==null?void 0:(l=k.resource)==null?void 0:(r=l.labels)==null?void 0:r.credential_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k},instanceNameOrId:function(k){var l,r,w;k=(w=k==null?void 0:(l=k.resource)==
null?void 0:(r=l.labels)==null?void 0:r.instance_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k}})}});return b};
h.formatDistributionValue=function(a,b,c,d,e,f,g){var k=this,l=a.atTimeKey[this.timeKey];if(l&&l.bucketIndex!==void 0){var r=l.bucketIndex;a=l.y.bucketCounts[r]||0;var w={yAxisPosition:c,isDistribution:!0};w=this.formatDistribution?this.valueFormatter?this.valueFormatter(a,f,{maximumFractionDigits:g},w):a.toString():a.toString();var x=(a*100/l.y.count).toFixed(),C=m(tl(l.y,r)),H=C.next().value;C=C.next().value;r===l.y.bucketCounts.length&&(C=null);H===-Infinity&&(H=null);r=m([H,C].map(function(J){if(J===
null||!isFinite(J))return null;b==="{not_a_unit}"&&(b="1");J=Lk(b,f,J)||0;var O;return((O=k.valueFormatter)!=null?O:Nk)(J,f||b,{maximumFractionDigits:g},d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0)}));l=r.next().value;r=r.next().value;return{displayValue:this.getBucketRangeMessage(w,x,l,r),bucketCount:a}}return{displayValue:"-",bucketCount:null}};
h.formatNumericValue=function(a,b,c,d,e,f,g,k,l){var r,w=(r=this.valueFormatter)!=null?r:Nk;c=d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0;if(a!==void 0&&a!==null){b==="{not_a_unit}"&&(b="1");var x;k=(x=Lk(b,f,a,this.ignoreFloatImprecision))!=null?x:a;if(l){var C;c=Object.assign({},(C=c)!=null?C:{},{displayName:l})}return w(k,f||b,{maximumFractionDigits:g},c)}switch(k){case "gap_detection":return"-";case "zero_fill":return w(0,f,void 0,c);default:return"-"}};
h.getBucketRangeMessage=function(a,b,c,d){return c===null?(new Vl("{COUNT} ({PERCENT}%) below {UPPER}")).format({COUNT:a,PERCENT:b,UPPER:d}):d===null?(new Vl("{COUNT} ({PERCENT}%) above {LOWER}")).format({COUNT:a,PERCENT:b,LOWER:c}):(new Vl("{COUNT} ({PERCENT}%) between {LOWER} and {UPPER}")).format({COUNT:a,PERCENT:b,LOWER:c,UPPER:d})};
h.getCenterStreamIndex=function(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];if(e.isInteracted){c=d;break}b!==null&&e.valueType===1&&e.pxValue!==void 0&&e.pxValue>b&&(c=d)}return c};h.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({mergeKey:d,context:b,changes:a,scope:e,componentHandlerUsingContext:c})};h.ngOnDestroy=function(){XG.prototype.ngOnDestroy.call(this);this.updateTimeout&&clearTimeout(this.updateTimeout)};
da.Object.defineProperties(QH.prototype,{dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:wb(a,"unknown data source")}this.update()}}});QH.\u0275fac=function(a){return new (a||QH)};
QH.\u0275cmp=D({type:QH,selectors:[["ac-streams-legend"]],inputs:{dataSource:"dataSource",hideThresholds:"hideThresholds",labelTemplate:"labelTemplate",customTranslationFunctions:"customTranslationFunctions",seriesRowTemplate:"seriesRowTemplate",seriesValueTemplate:"seriesValueTemplate",streamActions:"streamActions",condensedShapes:"condensedShapes",hideUndefinedValues:"hideUndefinedValues",layerIdsToIgnore:"layerIdsToIgnore",showHovercardSeriesActionText:"showHovercardSeriesActionText",showLineDash:"showLineDash",
distributionColorStrategy:"distributionColorStrategy",formatDistribution:"formatDistribution",chartQuickActionsEnabled:"chartQuickActionsEnabled",sortingSetting:"sortingSetting"},features:[Ef,jx],decls:2,vars:3,consts:[[1,"legend-container",3,"itemSize"],[1,"list"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[1,"key","bright"],[3,"color","drawnAs","shape","condensed","lineDash"],[1,"name-wrapper"],[1,"name",3,"ngStyle"],[1,"value","current-value",3,"strong"],[1,"value","current-value"],
[1,"stream-actions"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"streamMetadata","streamActions"]],template:function(a,b){a&1&&(F(0,oFa,5,6,"cdk-virtual-scroll-viewport",0),T(1,"async"));if(a&2){var c;G(((c=U(1,1,b.streamsObservable))==null?0:c.length)?0:-1)}},dependencies:[cH,PH,Rx,Sx,Dz,vz,Bz,Az,Tx],styles:[".legend-container[_ngcontent-%COMP%]{height:100%;color:var(--ac-sys-color-extensions-on-surface,#202124);text-align:left;min-height:16px;font-size:12px;overflow:auto}table[_ngcontent-%COMP%]{table-layout:auto;width:100%}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:12px;font-weight:400;line-height:20px;max-width:300px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr.dummy-row[_ngcontent-%COMP%]{position:absolute;visibility:hidden}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{height:12px;opacity:.66;overflow:hidden;padding:1px 0;text-overflow:ellipsis;top:0;vertical-align:top;padding-right:20px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:has(+.stream-actions), table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{padding-right:0}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.strong[_ngcontent-%COMP%]{font-weight:500;opacity:1}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.subhead-spacing[_ngcontent-%COMP%]{padding:8px 0 1px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.subhead[_ngcontent-%COMP%]{font-size:10px;line-height:16px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]{opacity:.9;padding-right:4px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key.bright[_ngcontent-%COMP%]{opacity:1}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key.dim[_ngcontent-%COMP%]{opacity:.3}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{position:relative;top:4px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.name-wrapper[_ngcontent-%COMP%]{width:100%;max-width:250px;overflow-x:hidden;overflow-y:hidden;text-align:left}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.name-wrapper[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;word-break:break-all}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   td.value2[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.value[_ngcontent-%COMP%]{text-align:right;white-space:nowrap}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}table[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]{width:24px}\n/*# sourceMappingURL=ac_streams_legend.css.map */"],
changeDetection:0});var W_c=["content"],X_c=[[["","header",""]],"*"],Y_c=function(a){return{transform:a,"z-index":"1",height:"unset"}},qFa=function(a){return{height:a}},RH=function(a,b,c){this.element=a;this.renderer=b;this.changeDetector=c;this.items=[];this.hasHeader=!1;this.update=new Ti;this.change=new Ti;this.start=new Ti;this.end=new Ti;this.scroll$=new qf;this.startupLoop=!0;this.buriedHeader=!1};h=RH.prototype;h.onScroll=function(a){this.scroll$.next(a)};
h.ngOnInit=function(){var a=this;this.scroll$.pipe(yf(function(){a.refresh();return ce()})).subscribe();this.scrollbarHeight=this.scrollbarWidth=0};h.ngOnChanges=function(a){this.previousEnd=this.previousStart=void 0;var b=a.items||{};a.items==void 0||b.previousValue!=void 0&&b.previousValue.length!==0||(this.startupLoop=!0);this.refresh()};h.ngOnDestroy=function(){if(this.onScrollListener!==void 0)this.onScrollListener()};
h.refresh=function(){var a=this;requestAnimationFrame(function(){a.changeDetector.markForCheck();var b=a.element.nativeElement,c=Z_c(a),d=a.items||[];a.scrollHeight=c.childHeight*c.itemCount/c.itemsPerRow;a.element.nativeElement.scrollTop>a.scrollHeight&&(a.element.nativeElement.scrollTop=a.scrollHeight);var e=Math.max(0,a.scrollTop||b.scrollTop)/a.scrollHeight*c.itemCount/c.itemsPerRow,f=b=Math.min(c.itemCount,Math.ceil(e)*c.itemsPerRow+c.itemsPerRow*(c.itemsPerCol+1)),g=b%c.itemsPerRow;g&&(f=b+
c.itemsPerRow-g);e=Math.min(Math.max(0,f-c.itemsPerCol*c.itemsPerRow-c.itemsPerRow),Math.floor(e)*c.itemsPerRow);a.topPadding=c.childHeight*Math.ceil(e/c.itemsPerRow);e=isNaN(e)?-1:e;b=isNaN(b)?-1:b;c=e;f=b;e!==a.previousStart||b!==a.previousEnd?(a.buriedHeader=!1,a.hasHeader&&(isNaN(e)||e===-1?c=e:e===0?(c=e,a.buriedHeader=!0):c=e-1,isNaN(b)||b===-1?f=b:b===0?(f=b,a.buriedHeader=!0):f=b-1),a.update.emit(d.slice(c,f)),e!==a.previousStart&&a.startupLoop===!1&&a.start.emit({start:e,end:b}),b!==a.previousEnd&&
a.startupLoop===!1&&a.end.emit({start:e,end:b}),a.previousStart=e,a.previousEnd=b,a.startupLoop===!0?a.refresh():a.change.emit({start:e,end:b})):a.startupLoop===!0&&(a.startupLoop=!1,a.refresh())})};
var Z_c=function(a){var b=a.element.nativeElement,c=a.contentElementRef.nativeElement,d=(a.items||[]).length+(a.hasHeader?1:0),e=b.clientWidth-a.scrollbarWidth,f=b.clientHeight-a.scrollbarHeight;if(a.childWidth==void 0||a.childHeight==void 0)var g=c.children[0]?c.children[0].getBoundingClientRect():{width:e,height:f};c=a.childWidth||g.width;g=a.childHeight||g.height;var k,l=a.contentElementRef.nativeElement.children;for(k=0;k<l.length&&(r==void 0||r===l[k].offsetTop);k++)var r=l[k].offsetTop;r=Math.max(1,
k);k=Math.max(1,Math.floor(e/c));l=Math.max(1,Math.floor(f/g));b=Math.max(0,a.scrollTop||b.scrollTop);l===1&&Math.floor(b/a.scrollHeight*d)+k>=d&&(r=k);return{itemCount:d,viewWidth:e,viewHeight:f,childWidth:c,childHeight:g,itemsPerRow:r,itemsPerCol:l,itemsPerRowByCalc:k}};RH.\u0275fac=function(a){return new (a||RH)(Ve(Hd),Ve(ci),Ve(Cx))};
RH.\u0275cmp=D({type:RH,selectors:[["virtual-scroll"],["","virtualScroll",""]],viewQuery:function(a,b){a&1&&hg(W_c,5,Hd);if(a&2){var c;lg(c=mg())&&(b.contentElementRef=c.first)}},hostBindings:function(a,b){a&1&&N("scroll",function(){return b.onScroll()})},inputs:{items:"items",hasHeader:"hasHeader",scrollbarWidth:"scrollbarWidth",scrollbarHeight:"scrollbarHeight",childWidth:"childWidth",childHeight:"childHeight",scrollTop:"scrollTop"},outputs:{update:"update",change:"change",start:"start",end:"end"},
exportAs:["virtualScroll"],standalone:!1,features:[jx],ngContentSelectors:["[header]","*"],decls:7,vars:8,consts:[["content",""],[1,"total-padding"],[1,"scrollable-content","header",3,"ngStyle"],[1,"scrollable-content"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"]],template:function(a,b){a&1&&(bg(X_c),M(0,"div",1),K(1,"div",2),cg(2),L(),K(3,"div",3,0),E(5,rFa,1,3,"div",4),cg(6,1),L());a&2&&(vg("height",b.scrollHeight+"px"),B(),I("ngStyle",Ig(6,Y_c,"translateY("+b.scrollTop+"px)")),B(2),vg("transform","translateY("+
b.topPadding+"px)"),B(2),I("ngIf",b.buriedHeader))},dependencies:[Nx,Rx],styles:["[_nghost-%COMP%] {\n      overflow: hidden;\n      overflow-y: auto;\n      position: relative;\n      -webkit-overflow-scrolling: touch;\n    }\n    .scrollable-content[_ngcontent-%COMP%] {\n      top: 0;\n      left: 0;\n      width: 100%;\n      height: 100%;\n      position: absolute;\n    }\n    .total-padding[_ngcontent-%COMP%] {\n      width: 1px;\n      opacity: 0;\n    }"]});var SH=function(){};
SH.\u0275fac=function(a){return new (a||SH)};SH.\u0275mod=$e({type:SH});SH.\u0275inj=Fc({imports:[by]});var $_c=["trigger"],a0c=["panel"],b0c=[[["mat-select-trigger"]],"*"],c0c=new dd("mat-select-scroll-strategy",{providedIn:"root",factory:function(){var a=p(ye);return function(){return Th(a)}}}),d0c=new dd("MAT_SELECT_CONFIG"),e0c=new dd("MatSelectTrigger"),f0c=function(a,b){this.source=a;this.value=b},TH=function(){var a=this;this._viewportRuler=p(Qh);this._changeDetectorRef=p(Cx);this._elementRef=p(Hd);this._dir=p(bi,{optional:!0});this._idGenerator=p(ai);this._renderer=p(ci);this._parentFormField=
p(YOc,{optional:!0});this.ngControl=p(dE,{self:!0,optional:!0});this._liveAnnouncer=p(dz);this._defaultOptions=p(d0c,{optional:!0});this._animationsDisabled=mi();this._initialized=new qf;this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",
panelClass:"mat-mdc-select-panel-above"}];this._scrollStrategyFactory=p(c0c);this._panelOpen=!1;this._compareWith=function(r,w){return r===w};this._uid=this._idGenerator.getId("mat-select-");this._triggerAriaLabelledBy=null;this._destroy=new qf;this.stateChanges=new qf;this.disableAutomaticLabeling=!0;this._onChange=function(){};this._onTouched=function(){};this._valueId=this._idGenerator.getId("mat-select-value-");var b;this._overlayPanelClass=((b=this._defaultOptions)==null?void 0:b.overlayPanelClass)||
"";this._focused=!1;this.controlType="mat-select";this.disabled=!1;this._disableRipple=ng.apply(null,[!1].concat(q([])));this.tabIndex=0;var c,d;this._hideSingleSelectionIndicator=(d=(c=this._defaultOptions)==null?void 0:c.hideSingleSelectionIndicator)!=null?d:!1;this._multiple=!1;var e,f;this.disableOptionCentering=(f=(e=this._defaultOptions)==null?void 0:e.disableOptionCentering)!=null?f:!1;this.ariaLabel="";this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth!=="undefined"?
this._defaultOptions.panelWidth:"auto";var g,k;this.canSelectNullableOptions=(k=(g=this._defaultOptions)==null?void 0:g.canSelectNullableOptions)!=null?k:!1;this.optionSelectionChanges=ne(function(){var r=a.options;return r?r.changes.pipe(xf(r),yf(function(){return te.apply(null,q(r.map(function(w){return w.onSelectionChange})))})):a._initialized.pipe(yf(function(){return a.optionSelectionChanges}))});this.openedChange=new Ti;this._openedStream=this.openedChange.pipe(ue(function(r){return r}),A(function(){}));
this._closedStream=this.openedChange.pipe(ue(function(r){return!r}),A(function(){}));this.selectionChange=new Ti;this.valueChange=new Ti;this._trackedModal=null;this._skipPredicate=function(r){return a.panelOpen?!1:r.disabled};b=p(bA);c=p(kE,{optional:!0});d=p(uE,{optional:!0});e=p(new kx("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this);var l;((l=this._defaultOptions)==null?void 0:l.typeaheadDebounceInterval)!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval);
this._errorStateTracker=new mDc(b,this.ngControl,d,c,this.stateChanges);this._scrollStrategy=this._scrollStrategyFactory();this.tabIndex=e==null?0:parseInt(e)||0;this.id=this.id};h=TH.prototype;h._scrollOptionIntoView=function(a){var b=this.options.toArray()[a];if(b){var c=this.panel.nativeElement,d=Bra(a,this.options,this.optionGroups);b=b._getHostElement();c.scrollTop=a===0&&d===1?0:Cra(b.offsetTop,b.offsetHeight,c.scrollTop,c.offsetHeight)}};
h._positioningSettled=function(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)};h._getChangeEvent=function(a){return new f0c(this,a)};h.ngOnInit=function(){var a=this;this._selectionModel=new xz(this.multiple);this.stateChanges.next();this._viewportRuler.change().pipe(zf(this._destroy)).subscribe(function(){a.panelOpen&&(a._overlayWidth=a._getOverlayWidth(a._preferredOverlayOrigin),a._changeDetectorRef.detectChanges())})};
h.ngAfterContentInit=function(){var a=this;this._initialized.next();this._initialized.complete();this._initKeyManager();this._selectionModel.changed.pipe(zf(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(xf(null),zf(this._destroy)).subscribe(function(){a._resetOptions();a._initializeSelection()})};
h.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&&(this._previousControl!==void 0&&b.disabled!==null&&b.disabled!==this.disabled&&(this.disabled=b.disabled),this._previousControl=b.control),this.updateErrorState())};
h.ngOnChanges=function(a){(a.disabled||a.userAriaDescribedBy)&&this.stateChanges.next();a.typeaheadDebounceInterval&&this._keyManager&&ACc(this._keyManager,this.typeaheadDebounceInterval)};h.ngOnDestroy=function(){var a;(a=this._cleanupDetach)==null||a.call(this);var b;(b=this._keyManager)==null||b.destroy();this._destroy.next();this._destroy.complete();this.stateChanges.complete();this._clearFromModal()};h.toggle=function(){this.panelOpen?this.close():this.open()};
h.open=function(){var a=this;if(this._canOpen()){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin());var b;(b=this._cleanupDetach)==null||b.call(this);this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin);this._applyModalPanelOwnership();this._panelOpen=!0;this._overlayDir.positionChange.pipe(lf(1)).subscribe(function(){a._changeDetectorRef.detectChanges();a._positioningSettled()});kDc(this._overlayDir);oz(this._keyManager,null);
this._highlightCorrectOption();this._changeDetectorRef.markForCheck();this.stateChanges.next();Promise.resolve().then(function(){return a.openedChange.emit(!0)})}};h._applyModalPanelOwnership=function(){var a=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(a){var b=this.id+"-panel";this._trackedModal&&Ph(this._trackedModal,"aria-owns",b);dra(a,"aria-owns",b);this._trackedModal=a}};
h._clearFromModal=function(){this._trackedModal&&(Ph(this._trackedModal,"aria-owns",this.id+"-panel"),this._trackedModal=null)};h.close=function(){var a=this;this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),oz(this._keyManager,this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(function(){return a.openedChange.emit(!1)}))};
h._exitAndDetach=function(){var a=this;if(this._animationsDisabled||!this.panel)this._detachOverlay();else{var b;(b=this._cleanupDetach)==null||b.call(this);this._cleanupDetach=function(){c();clearTimeout(d);a._cleanupDetach=void 0};b=this.panel.nativeElement;var c=this._renderer.listen(b,"animationend",function(e){if(e.animationName==="_mat-select-exit"){var f;(f=a._cleanupDetach)==null||f.call(a);a._detachOverlay()}}),d=setTimeout(function(){var e;(e=a._cleanupDetach)==null||e.call(a);a._detachOverlay()},
200);b.classList.add("mat-select-panel-exit")}};h._detachOverlay=function(){lDc(this._overlayDir);this._changeDetectorRef.markForCheck()};h.writeValue=function(a){this._assignValue(a)};h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck();this.stateChanges.next()};h.updateErrorState=function(){this._errorStateTracker.updateErrorState()};
h._isRtl=function(){return this._dir?this._dir.value==="rtl":!1};h._handleKeydown=function(a){this.disabled||(this.panelOpen?this._handleOpenKeydown(a):this._handleClosedKeydown(a))};
h._handleClosedKeydown=function(a){var b=a.keyCode,c=b===40||b===38||b===37||b===39,d=this._keyManager;!(d.isTyping()||b!==13&&b!==32||Gh(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))};
h._handleOpenKeydown=function(a){var b=this._keyManager,c=a.keyCode,d=c===40||c===38,e=b.isTyping();if(d&&a.altKey)a.preventDefault(),this.close();else if(e||c!==13&&c!==32||!b.activeItem||Gh(a))if(!e&&this._multiple&&c===65&&a.ctrlKey){a.preventDefault();var f=this.options.some(function(g){return!g.disabled&&!g.selected});this.options.forEach(function(g){g.disabled||(f?g.select():g.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()};h._handleOverlayKeydown=function(a){a.keyCode!==27||Gh(a)||(a.preventDefault(),this.close())};h._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())};h._onBlur=function(){this._focused=!1;var a;if((a=this._keyManager)!=null){var b;(b=a._typeahead)==null||b.reset()}this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())};
h._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""};h._initializeSelection=function(){var a=this;Promise.resolve().then(function(){a.ngControl&&(a._value=a.ngControl.value);a._setSelectionByValue(a._value);a.stateChanges.next()})};
h._setSelectionByValue=function(a){var b=this;this.options.forEach(function(c){return c.setInactiveStyles()});this._selectionModel.clear();this.multiple&&a?(a.forEach(function(c){return b._selectOptionByValue(c)}),this._sortValues()):(a=this._selectOptionByValue(a))?qz(this._keyManager,a):this.panelOpen||qz(this._keyManager,-1);this._changeDetectorRef.markForCheck()};
h._selectOptionByValue=function(a){var b=this,c=this.options.find(function(d){if(b._selectionModel.isSelected(d))return!1;try{return(d.value!=null||b.canSelectNullableOptions)&&b._compareWith(d.value,a)}catch(e){return!1}});c&&this._selectionModel.select(c);return c};h._assignValue=function(a){return a!==this._value||this._multiple&&Array.isArray(a)?(this.options&&this._setSelectionByValue(a),this._value=a,!0):!1};
h._getOverlayWidth=function(a){return this.panelWidth==="auto"?(a instanceof Uz?a.elementRef:a||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth};h._syncParentProperties=function(){if(this.options)for(var a=m(this.options),b=a.next();!b.done;b=a.next())b.value._changeDetectorRef.markForCheck()};
h._initKeyManager=function(){var a=this;this._keyManager=zCc(BCc(pz(oz(nz(ACc(new rz(this.options),this.typeaheadDebounceInterval)),this._isRtl()?"rtl":"ltr")))).skipPredicate(this._skipPredicate);this._keyManager.tabOut.subscribe(function(){a.panelOpen&&(!a.multiple&&a._keyManager.activeItem&&a._keyManager.activeItem._selectViaInteraction(),a.focus(),a.close())});this._keyManager.change.subscribe(function(){a._panelOpen&&a.panel?a._scrollOptionIntoView(a._keyManager.activeItemIndex||0):a._panelOpen||
a.multiple||!a._keyManager.activeItem||a._keyManager.activeItem._selectViaInteraction()})};h._resetOptions=function(){var a=this,b=te(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(zf(b)).subscribe(function(c){a._onSelect(c.source,c.isUserInput);c.isUserInput&&!a.multiple&&a._panelOpen&&(a.close(),a.focus())});te.apply(null,q(this.options.map(function(c){return c._stateChanges}))).pipe(zf(b)).subscribe(function(){a._changeDetectorRef.detectChanges();a.stateChanges.next()})};
h._onSelect=function(a,b){var c=this._selectionModel.isSelected(a);this.canSelectNullableOptions||a.value!=null||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(),this.value!=null&&this._propagateChanges(a.value));c!==this._selectionModel.isSelected(a)&&this._propagateChanges();this.stateChanges.next()};
h._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()}};h._propagateChanges=function(a){var b;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()};
h._highlightCorrectOption=function(){if(this._keyManager)if(this.empty){for(var a=-1,b=0;b<this.options.length;b++)if(!this.options.get(b).disabled){a=b;break}this._keyManager.setActiveItem(a)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])};h._canOpen=function(){var a;return!this._panelOpen&&!this.disabled&&((a=this.options)==null?void 0:a.length)>0&&!!this._overlayDir};h.focus=function(a){this._elementRef.nativeElement.focus(a)};
h._getPanelAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=((a=this._parentFormField)==null?void 0:a.getLabelId())||null;return this.ariaLabelledby?(b?b+" ":"")+this.ariaLabelledby:b};h._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null};
h._getTriggerAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=((a=this._parentFormField)==null?void 0:a.getLabelId())||"";this.ariaLabelledby&&(b+=" "+this.ariaLabelledby);b||(b=this._valueId);return b};h.setDescribedByIds=function(a){var b=this._elementRef.nativeElement;a.length?b.setAttribute("aria-describedby",a.join(" ")):b.removeAttribute("aria-describedby")};
h.onContainerClick=function(a){a=Jh(a);var b,c=(b=this._overlayDir.overlayRef)==null?void 0:b.hostElement;a&&c&&c.contains(a)||(this.focus(),this.open())};
da.Object.defineProperties(TH.prototype,{focused:{configurable:!0,enumerable:!0,get:function(){return this._focused||this._panelOpen}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple()},set:function(a){this._disableRipple.set(a)}},hideSingleSelectionIndicator:{configurable:!0,enumerable:!0,get:function(){return this._hideSingleSelectionIndicator},set:function(a){this._hideSingleSelectionIndicator=a;this._syncParentProperties()}},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(d=(c=this._required)!=null?c:(a=this.ngControl)==null?void 0:(b=a.control)==null?void 0:zva(b._rawValidators,vj))!=null?d:!1},set:function(a){this._required=a;this.stateChanges.next()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){this._multiple=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)}},errorStateMatcher:{configurable:!0,enumerable:!0,get:function(){return this._errorStateTracker.matcher},set:function(a){this._errorStateTracker.matcher=a}},id:{configurable:!0,enumerable:!0,get:function(){return this._id},set:function(a){this._id=
a||this._uid;this.stateChanges.next()}},errorState:{configurable:!0,enumerable:!0,get:function(){return this._errorStateTracker.errorState},set:function(a){this._errorStateTracker.errorState=a}},panelOpen:{configurable:!0,enumerable:!0,get:function(){return this._panelOpen}},selected:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.multiple?((a=this._selectionModel)==null?void 0:a.selected)||[]:(b=this._selectionModel)==null?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()}},describedByIds:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this._elementRef.nativeElement.getAttribute("aria-describedby"))==null?void 0:a.split(" "))||
[]}},shouldLabelFloat:{configurable:!0,enumerable:!0,get:function(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}}});TH.\u0275fac=function(a){return new (a||TH)};
TH.\u0275cmp=D({type:TH,selectors:[["mat-select"]],contentQueries:function(a,b,c){a&1&&(ig(c,e0c,5),ig(c,hA,5),ig(c,qDc,5));if(a&2){var d;lg(d=mg())&&(b.customTrigger=d.first);lg(d=mg())&&(b.options=d);lg(d=mg())&&(b.optionGroups=d)}},viewQuery:function(a,b){a&1&&(hg($_c,5),hg(a0c,5),hg(Vz,5));if(a&2){var c;lg(c=mg())&&(b.trigger=c.first);lg(c=mg())&&(b.panel=c.first);lg(c=mg())&&(b._overlayDir=c.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(a,
b){a&1&&N("keydown",function(c){return b._handleKeydown(c)})("focus",function(){return b._onFocus()})("blur",function(){return b._onBlur()});a&2&&(If("id",b.id)("tabindex",b.disabled?-1: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()),wg("mat-mdc-select-disabled",b.disabled)("mat-mdc-select-invalid",
b.errorState)("mat-mdc-select-required",b.required)("mat-mdc-select-empty",b.empty)("mat-mdc-select-multiple",b.multiple)("mat-select-open",b.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",$g],disableRipple:[2,"disableRipple","disableRipple",$g],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ah(a)}],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",
$g],placeholder:"placeholder",required:[2,"required","required",$g],multiple:[2,"multiple","multiple",$g],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",$g],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ah],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",
canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",$g]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Gg([{provide:ND,useExisting:TH},{provide:pDc,useExisting:TH}]),jx],ngContentSelectors:["mat-select-trigger","*"],decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",
3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],"viewBox;0 0 24 24;width;24px;height;24px;focusable;false;aria-hidden;true".split(";"),["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown",
"cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(a,b){if(a&1){var c=t();bg(b0c);K(0,"div",2,0);N("click",function(){u(c);return v(b.open())});K(3,"div",3);F(4,sFa,2,1,"span",4)(5,vFa,3,1,"span",5);L();K(6,"div",6)(7,
"div",7);yd();K(8,"svg",8);M(9,"path",9);L()()()();E(10,wFa,3,10,"ng-template",10);N("detach",function(){u(c);return v(b.close())})("backdropClick",function(){u(c);return v(b.close())})("overlayKeydown",function(d){u(c);return v(b._handleOverlayKeydown(d))})}a&2&&(a=qg(1),B(3),If("id",b._valueId),B(),G(b.empty?4:5),B(6),I("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",b._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",b._scrollStrategy)("cdkConnectedOverlayOrigin",b._preferredOverlayOrigin||
a)("cdkConnectedOverlayPositions",b._positions)("cdkConnectedOverlayWidth",b._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0))},dependencies:[Uz,Vz,Lx],styles:['@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}\n'],
encapsulation:2,changeDetection:0});var UH=function(){};UH.\u0275fac=function(a){return new (a||UH)};UH.\u0275dir=af({type:UH,selectors:[["mat-select-trigger"]],features:[Gg([{provide:e0c,useExisting:UH}])]});var VH=function(){};VH.\u0275fac=function(a){return new (a||VH)};VH.\u0275mod=$e({type:VH});VH.\u0275inj=Fc({imports:[Wz,kA,Ky,Cz,TD,kA]});var g0c=["matSelect"],WH=function(){this.ve={ChartLegendMenu:68533,ColumnMenuToggle:68546,ChartLegendMenuItem:68534};this.VALUE_COLUMN_UNIQUE_ID=-1;this.TIMESHIFT_COLUMN_UNIQUE_ID=-2;this.selectedColumnsChanged=new Ti;this.columnsModel=[]};WH.prototype.ngOnChanges=function(a){a.labelsModel&&(this.columnsModel=(a=this.labelsModel.selectedColumns)?[-1,-2].concat.apply([-1,-2],q(a.map(function(b){return b.uniqueId}))):[-1,-2])};
WH.prototype.valueChanged=function(a){this.columnsModel=a;var b;this.labelsModel.selectedColumns=((b=this.labelsModel.selectableColumns)==null?void 0:b.filter(function(c){return c.uniqueId&&a.indexOf(c.uniqueId)!==-1}))||[];this.selectedColumnsChanged.emit()};WH.\u0275fac=function(a){return new (a||WH)};
WH.\u0275cmp=D({type:WH,selectors:[["ac-column-selector"]],viewQuery:function(a,b){a&1&&hg(g0c,5);if(a&2){var c;lg(c=mg())&&(b.matSelect=c.first)}},inputs:{labelsModel:"labelsModel",timeshiftName:"timeshiftName",valueName:"valueName"},outputs:{selectedColumnsChanged:"selectedColumnsChanged"},features:[jx],decls:11,vars:10,consts:function(){return[["matSelect",""],["multipleOptions",""]," \ufffd0\ufffd [Required] "," \ufffd0\ufffd [Required] "," \ufffd0\ufffd ",[1,"ac-legend-column-selector-root"],
["multiple","","aria-label","Legend columns","matTooltip","Legend columns","matTooltipClass","ac-mat-tooltip",1,"ac-legend-column-selector-mat-select",3,"valueChange","value","panelClass","ve"],[3,"ve","veClick"],["svgIcon","ac:view_column","aria-label","Open legend columns selector",1,"ac-column-selector-icon"],["disabled","true",3,"value",4,"ngIf"],["disabled","true",3,"value"],[4,"ngIf","ngIfElse"],[3,"value","ve","veClick",4,"ngFor","ngForOf"],[3,"value","ve","veClick"]]},template:function(a,
b){if(a&1){var c=t();K(0,"div",5)(1,"mat-select",6,0);N("valueChange",function(d){u(c);return v(b.valueChanged(d))});K(3,"mat-select-trigger",7);M(4,"mat-icon",8);L();E(5,xFa,2,2,"mat-option",9);K(6,"mat-option",10);Xf(7,2);L();E(8,yFa,3,2,"ng-container",11)(9,AFa,1,1,"ng-template",null,1,Mg);L()()}a&2&&(a=qg(10),B(),I("value",b.columnsModel)("panelClass","ac-legend-column-selector-panel")("ve",b.ve.ChartLegendMenu),B(2),I("ve",b.ve.ColumnMenuToggle)("veClick",!0),B(2),I("ngIf",b.timeshiftName),B(),
I("value",b.VALUE_COLUMN_UNIQUE_ID),B(),Yf(b.valueName),Nma(34),B(),I("ngIf",(b.labelsModel.selectableColumns==null?null:b.labelsModel.selectableColumns.length)===1)("ngIfElse",a))},dependencies:[Jy,hA,TH,UH,nA,Mx,Nx,gD],styles:[".ac-screen-reader-only-content{clip:rect(1px,1px,1px,1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focus-within:focus-within,.ac-a11y-focusable:focus-visible,.ac-a11y-focused,.ac-a11y-keyboard-focusable.cdk-keyboard-focused{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable{outline:none}::ng-deep .mat-mdc-tooltip.ac-mat-tooltip{color:var(--ac-sys-color-extensions-on-surface,#202124);background:var(--ac-sys-color-extensions-neutral-container,#f1f3f4)}div.ac-legend-column-selector-root{position:absolute;z-index:1;top:1px;right:8px;height:40px;width:40px}.ac-column-selector-icon{border-radius:50%;-moz-box-sizing:border-box;box-sizing:border-box;height:32px;margin-top:4px;margin-left:4px;padding:4px;width:32px;fill:var(--ac-sys-color-extensions-on-surface,#202124)}.ac-column-selector-icon:hover{background-color:var(--ac-sys-color-extensions-on-surface-hover,#f7f8f8)}.mat-mdc-select.ac-legend-column-selector-mat-select .mat-mdc-select-trigger{width:100%}.mat-mdc-select.ac-legend-column-selector-mat-select .mat-mdc-select-arrow-wrapper{display:none}.mat-mdc-select.ac-legend-column-selector-mat-select:focus-visible{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}div.mat-mdc-select-panel.ac-legend-column-selector-panel{max-width:448px;min-width:156px;position:absolute;right:1px;background-color:var(--ac-sys-color-extensions-surface,#fff)}div.mat-mdc-select-panel.ac-legend-column-selector-panel mat-option.mat-mdc-option{height:28px}\n/*# sourceMappingURL=ac_column_selector_style.css.map */"],
encapsulation:2,changeDetection:0});var h0c=function(a,b,c){this.baseKey=a;this.defaultValue=b;this.inputKeys=c},i0c=function(a,b,c){this._options=a;this._mediaMonitor=b;this._onMediaChanges=c;this._subscribers=[];this._registryMap=this._buildRegistryMap();this._subscribers=this._configureChangeObservers()};h=i0c.prototype;h.hasKeyValue=function(a){return typeof this._options.inputKeys[a]!=="undefined"};h.destroy=function(){this._subscribers.forEach(function(a){a.unsubscribe()});this._subscribers=[]};
h._configureChangeObservers=function(){var a=this,b=[];this._registryMap.forEach(function(c){a._keyInUse(c.key)&&b.push(a.mediaMonitor.observe(c.alias).pipe(A(function(d){d=d.clone();d.property=a._options.baseKey;return d})).subscribe(function(d){a._onMonitorEvents(d)}))});return b};h._buildRegistryMap=function(){var a=this;return this.mediaMonitor.breakpoints.map(function(b){return Il({},b,{baseKey:a._options.baseKey,key:a._options.baseKey+b.suffix})}).filter(function(b){return a._keyInUse(b.key)})};
h._onMonitorEvents=function(a){a.property==this._options.baseKey&&(a.value=this._calculateActivatedValue(a),this._onMediaChanges(a))};h._keyInUse=function(a){return this._lookupKeyValue(a)!==void 0};h._calculateActivatedValue=function(a){var b=this._options.baseKey+a.suffix,c=this._activatedInputKey;c=a.matches?b:c==b?null:c;this._activatedInputKey=this._validateInputKey(c);return this.activatedInput};
h._validateInputKey=function(a){var b=this,c=this.mediaMonitor.activeOverlaps;!b._keyInUse(a)&&c.some(function(d){d=b._options.baseKey+d.suffix;return b._keyInUse(d)?(a=d,!0):!1});return a};h._lookupKeyValue=function(a){return this._options.inputKeys[a]};
da.Object.defineProperties(i0c.prototype,{mediaMonitor:{configurable:!0,enumerable:!0,get:function(){return this._mediaMonitor}},activatedInputKey:{configurable:!0,enumerable:!0,get:function(){return this._activatedInputKey||this._options.baseKey}},activatedInput:{configurable:!0,enumerable:!0,get:function(){var a=this.activatedInputKey;return this.hasKeyValue(a)?this._lookupKeyValue(a):this._options.defaultValue}}});var j0c=new dd("Token (@angular/flex-layout) Breakpoints");var XH=function(a){this._registry=a},k0c=function(a,b){return a._registry.find(function(c){return c.alias==b})},l0c=function(a,b){return a._registry.find(function(c){return c.mediaQuery==b})};
da.Object.defineProperties(XH.prototype,{items:{configurable:!0,enumerable:!0,get:function(){return[].concat(q(this._registry))}},sortedItems:{configurable:!0,enumerable:!0,get:function(){var a=this._registry.filter(function(c){return c.overlapping===!0}),b=this._registry.filter(function(c){return c.overlapping!==!0});return[].concat(q(a),q(b))}},overlappings:{configurable:!0,enumerable:!0,get:function(){return this._registry.filter(function(a){return a.overlapping==1})}},aliases:{configurable:!0,
enumerable:!0,get:function(){return this._registry.map(function(a){return a.alias})}},suffixes:{configurable:!0,enumerable:!0,get:function(){return this._registry.map(function(a){return a.suffix})}}});XH.\u0275fac=function(a){return new (a||XH)(Xc(j0c))};XH.\u0275prov=Dc({token:XH,factory:XH.\u0275fac});var m0c=function(a,b,c,d){this.matches=a===void 0?!1:a;this.mediaQuery=b===void 0?"all":b;this.mqAlias=c===void 0?"":c;this.suffix=d===void 0?"":d};m0c.prototype.clone=function(){return new m0c(this.matches,this.mediaQuery,this.mqAlias,this.suffix)};var YH=function(a,b){this._zone=a;this._document=b;this._registry=new Map;this._source=new Mj(new m0c(!0));this._observable$=this._source.asObservable()};YH.prototype.isActive=function(a){return this._registry.has(a)?this._registry.get(a).matches:!1};YH.prototype.observe=function(a){n0c(this,a);return this._observable$.pipe(ue(function(b){return a?b.mediaQuery===a:!0}))};
var n0c=function(a,b){b=typeof b==="undefined"?[]:typeof b==="string"?[b]:EFa(b);b.length>0&&(DFa(b,a._document),b.forEach(function(c){var d=a._registry.get(c),e=function(f){a._zone.run(function(){a._source.next(new m0c(f.matches,c))})};d||(d=a._buildMQL(c),d.addListener(e),a._registry.set(c,d));d.matches&&e(d)}))};YH.prototype._buildMQL=function(a){return BFa()&&window.matchMedia("all").addListener?window.matchMedia(a):{matches:a==="all"||a==="",media:a,addListener:function(){},removeListener:function(){}}};
YH.\u0275fac=function(a){return new (a||YH)(Xc(Rg),Xc(Rh))};YH.\u0275prov=Dc({token:YH,factory:YH.\u0275fac});var CFa={};var ZH=function(a,b){this._breakpoints=a;this._matchMedia=b;this._registerBreakpoints()};ZH.prototype.isActive=function(a){var b=k0c(this._breakpoints,a)||l0c(this._breakpoints,a);return this._matchMedia.isActive(b?b.mediaQuery:a)};ZH.prototype.observe=function(a){var b=k0c(this._breakpoints,a)||l0c(this._breakpoints,a);return this._matchMedia.observe(b?b.mediaQuery:a).pipe(A(function(c){return FFa(c,b)}),ue(function(c){return b?c.mqAlias!=="":!0}))};
ZH.prototype._registerBreakpoints=function(){var a=this._breakpoints.sortedItems.map(function(b){return b.mediaQuery});n0c(this._matchMedia,a)};
da.Object.defineProperties(ZH.prototype,{breakpoints:{configurable:!0,enumerable:!0,get:function(){return[].concat(q(this._breakpoints.items))}},activeOverlaps:{configurable:!0,enumerable:!0,get:function(){var a=this;return this._breakpoints.overlappings.reverse().filter(function(b){return a._matchMedia.isActive(b.mediaQuery)})}},active:{configurable:!0,enumerable:!0,get:function(){var a=this,b=null;this.breakpoints.reverse().forEach(function(d){d.alias!==""&&!b&&a._matchMedia.isActive(d.mediaQuery)&&
(b=d)});var c=this.breakpoints[0];return b||(this._matchMedia.isActive(c.mediaQuery)?c:null)}}});ZH.\u0275fac=function(a){return new (a||ZH)(Xc(XH),Xc(YH))};ZH.\u0275prov=Dc({token:ZH,factory:ZH.\u0275fac});var IFa=["row","column","row-reverse","column-reverse"];var $H=function(a,b,c){this._mediaMonitor=a;this._elementRef=b;this._renderer=c;this._inputMap={};this._hasInitialized=!1};h=$H.prototype;h._queryInput=function(a){return this._inputMap[a]};h.ngOnInit=function(){this._display=this._getDisplayStyle();this._hasInitialized=!0};h.ngOnChanges=function(a){throw Error("Hc`"+a);};h.ngOnDestroy=function(){this._mqActivation&&this._mqActivation.destroy();this._mediaMonitor=null};
h._getDefaultVal=function(a,b){a=this._queryInput(a);return a!==void 0&&a!==null&&a!==""?a:b};h._getDisplayStyle=function(a){a=a===void 0?this.nativeElement:a;return PFa(a||this.nativeElement,"display")};h._getAttributeValue=function(a,b){b=(b=b===void 0?this.nativeElement:b)||this.nativeElement;return MFa()?b.getAttribute(a):""};
h._getFlowDirection=function(a,b){b=b===void 0?!1:b;var c="row";a&&(c=PFa(a,"flex-direction")||"row",MFa()&&a.style["flex-direction"]||!b||OFa(this._renderer,HFa(c),[a]));return c.trim()};h._applyStyleToElement=function(a,b,c){c=c===void 0?this.nativeElement:c;var d=this._renderer;c=c||this.nativeElement;var e={};typeof a==="string"&&(e[a]=b,a=e);e=LFa(a);NFa(e,c,d)};h._applyStyleToElements=function(a,b){OFa(this._renderer,a,b||[])};
h._cacheInput=function(a,b){if(typeof b==="object")for(var c in b)this._inputMap[c]=b[c];else this._inputMap[a]=b};h._listenForMediaQueryChanges=function(a,b,c){this._mqActivation||(this._mqActivation=new i0c(new h0c(a,b,this._inputMap),this._mediaMonitor,function(d){return c(d)}));return this._mqActivation};h.hasKeyValue=function(a){return this._mqActivation.hasKeyValue(a)};
da.Object.defineProperties($H.prototype,{parentElement:{configurable:!0,enumerable:!0,get:function(){return this._elementRef.nativeElement.parentNode}},nativeElement:{configurable:!0,enumerable:!0,get:function(){return this._elementRef.nativeElement}},hasInitialized:{configurable:!0,enumerable:!0,get:function(){return this._hasInitialized}}});$H.\u0275fac=function(a){return new (a||$H)(Ve(ZH),Ve(Hd),Ve(ci))};$H.\u0275dir=af({type:$H,features:[jx]});var aI=function(a,b,c){$H.call(this,a,b,c);this._announcer=new Mj("row");this.layout$=this._announcer.asObservable()};Y(aI,$H);aI.prototype.ngOnChanges=function(a){(a.layout!=null||this._mqActivation)&&this._updateWithDirection()};aI.prototype.ngOnInit=function(){var a=this;$H.prototype.ngOnInit.call(this);this._listenForMediaQueryChanges("layout","row",function(b){a._updateWithDirection(b.value)});this._updateWithDirection()};
aI.prototype._updateWithDirection=function(a){a=a||this._queryInput("layout")||"row";this._mqActivation&&(a=this._mqActivation.activatedInput);a=HFa(a);this._applyStyleToElement(a);this._announcer.next(a["flex-direction"])};
da.Object.defineProperties(aI.prototype,{layout:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layout",a)}},layoutXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutXs",a)}},layoutSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutSm",a)}},layoutMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutMd",a)}},layoutLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLg",a)}},layoutXl:{configurable:!0,
enumerable:!0,set:function(a){this._cacheInput("layoutXl",a)}},layoutGtXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutGtXs",a)}},layoutGtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutGtSm",a)}},layoutGtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutGtMd",a)}},layoutGtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutGtLg",a)}},layoutLtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLtSm",
a)}},layoutLtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLtMd",a)}},layoutLtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLtLg",a)}},layoutLtXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLtXl",a)}}});aI.\u0275fac=function(a){return new (a||aI)(Ve(ZH),Ve(Hd),Ve(ci))};
aI.\u0275dir=af({type:aI,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{layout:[0,"fxLayout","layout"],layoutXs:[0,"fxLayout.xs","layoutXs"],layoutSm:[0,"fxLayout.sm","layoutSm"],layoutMd:[0,"fxLayout.md",
"layoutMd"],layoutLg:[0,"fxLayout.lg","layoutLg"],layoutXl:[0,"fxLayout.xl","layoutXl"],layoutGtXs:[0,"fxLayout.gt-xs","layoutGtXs"],layoutGtSm:[0,"fxLayout.gt-sm","layoutGtSm"],layoutGtMd:[0,"fxLayout.gt-md","layoutGtMd"],layoutGtLg:[0,"fxLayout.gt-lg","layoutGtLg"],layoutLtSm:[0,"fxLayout.lt-sm","layoutLtSm"],layoutLtMd:[0,"fxLayout.lt-md","layoutLtMd"],layoutLtLg:[0,"fxLayout.lt-lg","layoutLtLg"],layoutLtXl:[0,"fxLayout.lt-xl","layoutLtXl"]},standalone:!1,features:[Ef,jx]});var bI=function(a,b,c,d){$H.call(this,a,b,c);this._layout="row";d&&(this._layoutWatcher=d.layout$.subscribe(this._onLayoutChange.bind(this)))};Y(bI,$H);h=bI.prototype;h.ngOnChanges=function(a){(a.wrap!=null||this._mqActivation)&&this._updateWithValue()};h.ngOnInit=function(){var a=this;$H.prototype.ngOnInit.call(this);this._listenForMediaQueryChanges("wrap","wrap",function(b){a._updateWithValue(b.value)});this._updateWithValue()};
h.ngOnDestroy=function(){$H.prototype.ngOnDestroy.call(this);this._layoutWatcher&&this._layoutWatcher.unsubscribe()};h._onLayoutChange=function(a){var b=this;this._layout=(a||"").toLowerCase().replace("-reverse","");IFa.find(function(c){return c===b._layout})||(this._layout="row");this._updateWithValue()};h._updateWithValue=function(a){a=a||this._queryInput("wrap");this._mqActivation&&(a=this._mqActivation.activatedInput);a=JFa(a||"wrap");this._applyStyleToElement(this._buildCSS(a))};
h._buildCSS=function(a){return{display:"flex","flex-wrap":a,"flex-direction":this.flowDirection}};
da.Object.defineProperties(bI.prototype,{wrap:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrap",a)}},wrapXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapXs",a)}},wrapSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapSm",a)}},wrapMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapMd",a)}},wrapLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLg",a)}},wrapXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapXl",
a)}},wrapGtXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapGtXs",a)}},wrapGtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapGtSm",a)}},wrapGtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapGtMd",a)}},wrapGtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapGtLg",a)}},wrapLtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLtSm",a)}},wrapLtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLtMd",
a)}},wrapLtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLtLg",a)}},wrapLtXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLtXl",a)}},flowDirection:{configurable:!0,enumerable:!0,get:function(){return this._layoutWatcher?this._layout:this._getFlowDirection(this.nativeElement)}}});bI.\u0275fac=function(a){return new (a||bI)(Ve(ZH),Ve(Hd),Ve(ci),Ve(aI,10))};
bI.\u0275dir=af({type:bI,selectors:[["","fxLayoutWrap",""],["","fxLayoutWrap.xs",""],["","fxLayoutWrap.sm",""],["","fxLayoutWrap.lg",""],["","fxLayoutWrap.xl",""],["","fxLayoutWrap.gt-xs",""],["","fxLayoutWrap.gt-sm",""],["","fxLayoutWrap.gt-md",""],["","fxLayoutWrap.gt-lg",""],["","fxLayoutWrap.lt-xs",""],["","fxLayoutWrap.lt-sm",""],["","fxLayoutWrap.lt-md",""],["","fxLayoutWrap.lt-lg",""]],inputs:{wrap:[0,"fxLayoutWrap","wrap"],wrapXs:[0,"fxLayoutWrap.xs","wrapXs"],wrapSm:[0,"fxLayoutWrap.sm",
"wrapSm"],wrapMd:[0,"fxLayoutWrap.md","wrapMd"],wrapLg:[0,"fxLayoutWrap.lg","wrapLg"],wrapXl:[0,"fxLayoutWrap.xl","wrapXl"],wrapGtXs:[0,"fxLayoutWrap.gt-xs","wrapGtXs"],wrapGtSm:[0,"fxLayoutWrap.gt-sm","wrapGtSm"],wrapGtMd:[0,"fxLayoutWrap.gt-md","wrapGtMd"],wrapGtLg:[0,"fxLayoutWrap.gt-lg","wrapGtLg"],wrapLtSm:[0,"fxLayoutWrap.lt-sm","wrapLtSm"],wrapLtMd:[0,"fxLayoutWrap.lt-md","wrapLtMd"],wrapLtLg:[0,"fxLayoutWrap.lt-lg","wrapLtLg"],wrapLtXl:[0,"fxLayoutWrap.lt-xl","wrapLtXl"]},standalone:!1,features:[Ef,
jx]});var cI=function(a,b,c,d,e){$H.call(this,a,b,c);var f=this;this._container=d;this._wrap=e;this._layout="row";this._cacheInput("flex","");this._cacheInput("shrink",1);this._cacheInput("grow",1);d&&(this._layoutWatcher=d.layout$.subscribe(function(g){f._onLayoutChange(g)}))};Y(cI,$H);h=cI.prototype;h.ngOnChanges=function(a){(a.flex!=null||this._mqActivation)&&this._updateStyle()};
h.ngOnInit=function(){var a=this;$H.prototype.ngOnInit.call(this);this._listenForMediaQueryChanges("flex","",function(b){a._updateStyle(b.value)});this._updateStyle()};h.ngOnDestroy=function(){$H.prototype.ngOnDestroy.call(this);this._layoutWatcher&&this._layoutWatcher.unsubscribe()};h._onLayoutChange=function(a){this._layout=a||this._layout||"row";this._updateStyle()};
h._updateStyle=function(a){a=a||this._queryInput("flex")||"";this._mqActivation&&(a=this._mqActivation.activatedInput);a=String(a).replace(";","");var b=this._queryInput("grow"),c=this._queryInput("shrink");b=b===void 0?"1":b;c=c===void 0?"1":c;var d=[b,c,a],e=a.indexOf("calc");e>0?(d[2]=QFa(a.substring(e).trim()),a=a.substr(0,e).trim().split(" "),a.length==2&&(d[0]=a[0],d[1]=a[1])):e==0?d[2]=QFa(a.trim()):(d=a.split(" "),d=d.length===3?d:[b,c,a]);this._applyStyleToElement(this._validateValue.apply(this,
d))};
h._validateValue=function(a,b,c){var d=this._getFlowDirection(this.parentElement,!0).indexOf("column")>-1?"column":"row";a=a=="0"?0:a;b=b=="0"?0:b;var e={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(c||""){case "":e=Il(e,{flex:"1 1 0.000000001px"});break;case "initial":case "nogrow":a=0;e=Il(e,{flex:"0 1 auto"});break;case "grow":e=Il(e,{flex:"1 1 100%"});break;case "noshrink":b=0;e=Il(e,{flex:"1 0 auto"});break;case "auto":e=Il(e,{flex:a+" "+b+" auto"});break;case "none":b=
a=0;e=Il(e,{flex:"0 0 auto"});break;default:var f=String(c).indexOf("calc")>-1;var g=String(c).indexOf("%")>-1&&!f;(f=f||String(c).indexOf("px")>-1||String(c).indexOf("em")>-1||String(c).indexOf("vw")>-1||String(c).indexOf("vh")>-1)||g||isNaN(c)||(c+="%");c==="0px"&&(c="0%");e=Il(e,{flex:a+" "+b+" "+(f||this._wrap?c:"100%")})}g=KFa(d)?"max-width":"max-height";d=KFa(d)?"min-width":"min-height";f=String(c).indexOf("calc")>-1||c=="auto";var k=String(c).indexOf("px")>-1||f,l=!a&&!b;e[d]=c=="0%"?0:l||
k&&a?c:null;e[g]=c=="0%"?0:l||!f&&b?c:null;return Il(e,{"box-sizing":"border-box"})};
da.Object.defineProperties(cI.prototype,{shrink:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("shrink",a)}},grow:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("grow",a)}},flex:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flex",a)}},flexXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexXs",a)}},flexSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexSm",a)}},flexMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexMd",
a)}},flexLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLg",a)}},flexXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexXl",a)}},flexGtXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexGtXs",a)}},flexGtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexGtSm",a)}},flexGtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexGtMd",a)}},flexGtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexGtLg",
a)}},flexLtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLtSm",a)}},flexLtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLtMd",a)}},flexLtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLtLg",a)}},flexLtXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLtXl",a)}}});cI.\u0275fac=function(a){return new (a||cI)(Ve(ZH),Ve(Hd),Ve(ci),Ve(aI,12),Ve(bI,12))};
cI.\u0275dir=af({type:cI,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""],[""]],inputs:{shrink:[0,"fxShrink","shrink"],grow:[0,"fxGrow","grow"],flex:[0,"fxFlex","flex"],flexXs:[0,"fxFlex.xs","flexXs"],flexSm:[0,"fxFlex.sm","flexSm"],flexMd:[0,
"fxFlex.md","flexMd"],flexLg:[0,"fxFlex.lg","flexLg"],flexXl:[0,"fxFlex.xl","flexXl"],flexGtXs:[0,"fxFlex.gt-xs","flexGtXs"],flexGtSm:[0,"fxFlex.gt-sm","flexGtSm"],flexGtMd:[0,"fxFlex.gt-md","flexGtMd"],flexGtLg:[0,"fxFlex.gt-lg","flexGtLg"],flexLtSm:[0,"fxFlex.lt-sm","flexLtSm"],flexLtMd:[0,"fxFlex.lt-md","flexLtMd"],flexLtLg:[0,"fxFlex.lt-lg","flexLtLg"],flexLtXl:[0,"fxFlex.lt-xl","flexLtXl"]},standalone:!1,features:[Ef,jx]});var SFa=[{alias:"xs",mediaQuery:"(min-width: 0px) and (max-width: 599px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"(min-width: 600px)"},{alias:"lt-sm",overlapping:!0,mediaQuery:"(max-width: 599px)"},{alias:"sm",mediaQuery:"(min-width: 600px) and (max-width: 959px)"},{alias:"gt-sm",overlapping:!0,mediaQuery:"(min-width: 960px)"},{alias:"lt-md",overlapping:!0,mediaQuery:"(max-width: 959px)"},{alias:"md",mediaQuery:"(min-width: 960px) and (max-width: 1279px)"},{alias:"gt-md",overlapping:!0,mediaQuery:"(min-width: 1280px)"},
{alias:"lt-lg",overlapping:!0,mediaQuery:"(max-width: 1279px)"},{alias:"lg",mediaQuery:"(min-width: 1280px) and (max-width: 1919px)"},{alias:"gt-lg",overlapping:!0,mediaQuery:"(min-width: 1920px)"},{alias:"lt-xl",overlapping:!0,mediaQuery:"(max-width: 1920px)"},{alias:"xl",mediaQuery:"(min-width: 1920px) and (max-width: 5000px)"}];var TFa=/(\.|-|_)/g;var o0c={provide:j0c,useFactory:function(){return UFa()}};var p0c=function(){},dI=function(a,b){this.breakpoints=a;this.mediaWatcher=b;this._registerBreakPoints();this.observable$=this._buildObservable()};h=dI.prototype;h.isActive=function(a){a=this._toMediaQuery(a);return this.mediaWatcher.isActive(a)};h.subscribe=function(a,b,c){return this.observable$.subscribe(a,b,c)};h.asObservable=function(){return this.observable$};h._registerBreakPoints=function(){var a=this.breakpoints.sortedItems.map(function(b){return b.mediaQuery});n0c(this.mediaWatcher,a)};
h._buildObservable=function(){var a=this;return this.mediaWatcher.observe().pipe(ue(function(b){return b.matches===!0}),ue(function(b){return(b=l0c(a.breakpoints,b.mediaQuery))?!b.overlapping:!0}),A(function(b){return FFa(b,a._findByQuery(b.mediaQuery))}))};h._findByAlias=function(a){return k0c(this.breakpoints,a)};h._findByQuery=function(a){return l0c(this.breakpoints,a)};h._toMediaQuery=function(a){var b=this._findByAlias(a)||this._findByQuery(a);return b?b.mediaQuery:a};
dI.\u0275fac=function(a){return new (a||dI)(Xc(XH),Xc(YH))};dI.\u0275prov=Dc({token:dI,factory:dI.\u0275fac});var q0c={provide:p0c,deps:[[new Fyc,new Gyc,p0c],YH,XH],useFactory:function(a,b,c){return a||new dI(c,b)}};var eI=function(){};eI.\u0275fac=function(a){return new (a||eI)};eI.\u0275mod=$e({type:eI});eI.\u0275inj=Fc({providers:[o0c,XH,YH,ZH,q0c]});var r0c={provide:ZH,deps:[[new Fyc,new Gyc,ZH],XH,YH],useFactory:function(a,b,c){return a||new ZH(b,c)}};var fI=function(){};fI.\u0275fac=function(a){return new (a||fI)};fI.\u0275mod=$e({type:fI});fI.\u0275inj=Fc({providers:[r0c,o0c,q0c],imports:[eI,Ky,eI]});var s0c=["valueHeader"],tGa=function(a){return{transform:a}},nGa=function(a,b){return{transform:a,width:b}},VFa=function(a){return{hidden:a}},t0c={category:"",id:null,direction:null},gI=function(a,b,c){this.focusMonitor=a;this.ngZone=b;this.cdr=c;this.columnKeys=[];this.valueColumnWidth=80;this.statsModeSummaryColumnLabel="";this.xAxisPinEnabled=!0;this.defaultSortingColumn="";this.defaultSortingDirection=null;this.streamActions=[];this.sortFunc=new Ti;this.setAndSnapXAxisPin=new Ti;this.currentSortColumn=
t0c;this.hoveredColumn=null;this.ve={ColumnSortButton:68547};this.sortBySelectedTooltip="Sort by selected";this.streamActionsMenuTooltip="Actions";this.isXAxisPinSet=!0;this.prevSortColumn=t0c;this.destroyed=new qf};gI.prototype.ngAfterViewInit=function(){var a=this;this.focusMonitor.monitor(this.valueHeader,!0).pipe(zf(this.destroyed)).subscribe(function(){a.ngZone.run(function(){a.cdr.markForCheck()})})};
gI.prototype.ngOnInit=function(){var a=this;this.defaultSortingColumn==="VALUE"&&(u0c(this,this.defaultSortingColumn,1E3,this.defaultSortingDirection),bGa(this));this.xAxisPinEnabled&&this.xAxisPinUpdated&&this.xAxisPinUpdated.pipe(zf(this.destroyed)).subscribe(function(b){b[0]&&b[1]?(a.isXAxisPinSet||u0c(a,"VALUE",1E3,-1),a.isXAxisPinSet=!0):(a.currentSortColumn=Object.assign({},a.prevSortColumn),a.isXAxisPinSet=!1);v0c(a)})};gI.prototype.ngOnDestroy=function(){this.destroyed.next()};
var bGa=function(a){a.prevSortColumn=Object.assign({},a.currentSortColumn)},v0c=function(a){if(a.currentSortColumn.id)switch(a.currentSortColumn.category){case "MAIN":a.sortFunc.emit(vDa(a.currentSortColumn.direction));break;case "LABEL":var b=0;a.labelsModel.selectedColumns&&a.labelsModel.selectedColumns.forEach(function(c,d){a.currentSortColumn.id!==null&&c.uniqueId===a.currentSortColumn.id-10&&(b=d)});a.sortFunc.emit(wDa(b,a.currentSortColumn.direction));break;case "VALUE":a.sortFunc.emit(xDa(a.currentSortColumn.direction));
break;case "IS_SELECTED":a.sortFunc.emit(yDa(a.currentSortColumn.direction))}else a.sortFunc.emit(vDa(a.currentSortColumn.direction))},aGa=function(a,b,c){if(a.currentSortColumn.id===c){a:switch(a.currentSortColumn.direction){case null:case 1:b=-1;break a;case -1:b=1;break a;default:b=null}a.currentSortColumn=Object.assign({},a.currentSortColumn,{direction:b});a.currentSortColumn.direction===null&&(a.currentSortColumn=Object.assign({},a.currentSortColumn,{id:0}))}else u0c(a,b,c,-1);v0c(a)},u0c=function(a,
b,c,d){a.currentSortColumn={category:b,id:c,direction:d};v0c(a)},w0c=function(a){return a.currentSortColumn.id===2&&(a.currentSortColumn.direction||0)>0},x0c=function(a){return a.currentSortColumn.id===2&&(a.currentSortColumn.direction||0)<0};gI.prototype.getColIndexOffset=function(){var a,b=(a=this.labelsModel.labelHeaders)==null?void 0:a.length;return b?b-1:0};gI.prototype.getColIndexOffsetForTimeshift=function(){return 3+this.getColIndexOffset()};
gI.prototype.getColIndexOffsetForStatsMode=function(){var a=3;this.timeshiftName&&(a+=1);return a+this.getColIndexOffset()};gI.prototype.getColIndexOffsetForValue=function(){var a=3;this.timeshiftName&&(a+=1);this.statsModeSummaryColumnLabel&&(a+=1);return a+this.getColIndexOffset()};
var hGa=function(a,b){return jGa(a,b)?"ascending":kGa(a,b)?"descending":"none"},iGa=function(a,b){return jGa(a,b)?"Sort in descending order.":kGa(a,b)?"Sort in ascending order.":"Sort in descending order."},jGa=function(a,b){return a.currentSortColumn.id===10+b&&(a.currentSortColumn.direction||0)>0},kGa=function(a,b){return a.currentSortColumn.id===10+b&&(a.currentSortColumn.direction||0)<0},y0c=function(a){return a.currentSortColumn.id===1E3&&(a.currentSortColumn.direction||0)>0},z0c=function(a){return a.currentSortColumn.id===
1E3&&(a.currentSortColumn.direction||0)<0};gI.\u0275fac=function(a){return new (a||gI)(Ve(Ny),Ve(Rg),Ve(Cx))};
gI.\u0275cmp=D({type:gI,selectors:[["ac-table-legend-header"]],viewQuery:function(a,b){a&1&&hg(s0c,5);if(a&2){var c;lg(c=mg())&&(b.valueHeader=c.first)}},inputs:{columnKeys:"columnKeys",xAxisPinUpdated:"xAxisPinUpdated",valueName:"valueName",valueColumnWidth:"valueColumnWidth",timeshiftName:"timeshiftName",statsModeSummaryColumnLabel:"statsModeSummaryColumnLabel",columnFlexWidth:"columnFlexWidth",scale:"scale",labelsModel:"labelsModel",scrollLeft:"scrollLeft",widthDifference:"widthDifference",xAxisPinEnabled:"xAxisPinEnabled",
defaultSortingColumn:"defaultSortingColumn",defaultSortingDirection:"defaultSortingDirection",streamActions:"streamActions"},outputs:{sortFunc:"sortFunc",setAndSnapXAxisPin:"setAndSnapXAxisPin"},decls:24,vars:35,consts:[["valueHeader",""],["fxLayout","row","role","presentation"],["role","columnheader","aria-colindex","1","aria-colspan","2",1,"ac-combined-chip-and-is-selected-container",3,"ngStyle"],["type","button","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-header","ac-table-legend-checkbox-header",
"sortable-column",3,"click","mouseenter","mouseleave","ve","veClick","matTooltip"],[1,"ac-table-legend-checkbox-header-container"],["class","icon sort-icon hovered-icon","svgIcon","ac:keyboard_arrow_down",3,"ngClass",4,"ngIf"],["class","icon sort-icon checkbox-sort-icon","svgIcon","ac:keyboard_arrow_up",4,"ngIf"],["class","icon sort-icon checkbox-sort-icon","svgIcon","ac:keyboard_arrow_down",4,"ngIf"],["svgIcon","ac:selected_series",1,"icon","checkbox-header-icon"],["aria-colindex","2","role","columnheader",
"class","ac-table-legend-label-header-column-keys","fxFlex","100",4,"ngIf"],["fxFlex","100","role","presentation",1,"ac-legend-key"],[4,"ngIf"],["class","ac-table-legend-header ac-table-legend-value-header ac-table-value-column legend-table-cell timeshift-value ac-a11y-keyboard-focusable","role","columnheader","matTooltipClass","ac-mat-tooltip",3,"matTooltip","ngStyle","ngClass",4,"ngIf"],["class","ac-table-legend-header ac-table-legend-value-header ac-table-value-column legend-table-cell stats-mode-summary-value ac-a11y-keyboard-focusable",
"role","columnheader","matTooltipClass","ac-mat-tooltip",3,"matTooltip","ngStyle","ngClass",4,"ngIf"],["role","columnheader",1,"ac-legend-key","ac-table-value-column","current-value","sortable-column","Value","ac-a11y-keyboard-focusable",3,"ngStyle"],["fxFlex","100",1,"ac-table-legend-header","ac-table-legend-value-header","legend-table-cell",3,"mouseenter","mouseleave","click","ngClass","ve","veClick"],[1,"sort-by-value-trigger"],["class","icon sort-icon","svgIcon","ac:keyboard_arrow_up",4,"ngIf"],
["class","icon sort-icon","svgIcon","ac:keyboard_arrow_down",4,"ngIf"],["matTooltipClass","ac-mat-tooltip",3,"matTooltip"],["class","ac-table-options-column legend-table-cell last table-options","role","none",3,"ngStyle",4,"ngIf"],["class","ac-table-options-column legend-table-cell last table-options","role","columnheader",3,"ngStyle",4,"ngIf"],["svgIcon","ac:keyboard_arrow_down",1,"icon","sort-icon","hovered-icon",3,"ngClass"],["svgIcon","ac:keyboard_arrow_up",1,"icon","sort-icon","checkbox-sort-icon"],
["svgIcon","ac:keyboard_arrow_down",1,"icon","sort-icon","checkbox-sort-icon"],["aria-colindex","2","role","columnheader","fxFlex","100",1,"ac-table-legend-label-header-column-keys"],["matTooltipClass","ac-mat-tooltip",3,"class","fxFlex","matTooltip","click",4,"ngFor","ngForOf"],["matTooltipClass","ac-mat-tooltip",3,"click","fxFlex","matTooltip"],["svgIcon","ac:keyboard_arrow_up",1,"icon","sort-icon"],["svgIcon","ac:keyboard_arrow_down",1,"icon","sort-icon"],["role","columnheader",3,"fxFlex","class",
4,"ngFor","ngForOf"],["role","columnheader",3,"fxFlex"],["matTooltipClass","ac-mat-tooltip",1,"legend-table-cell","ac-table-legend-header","ac-table-legend-label-header",3,"mouseenter","mouseleave","click","ve","veClick","matTooltip"],["role","columnheader","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-header","ac-table-legend-value-header","ac-table-value-column","legend-table-cell","timeshift-value","ac-a11y-keyboard-focusable",3,"matTooltip","ngStyle","ngClass"],["role","columnheader",
"matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-header","ac-table-legend-value-header","ac-table-value-column","legend-table-cell","stats-mode-summary-value","ac-a11y-keyboard-focusable",3,"matTooltip","ngStyle","ngClass"],["role","none",1,"ac-table-options-column","legend-table-cell","last","table-options",3,"ngStyle"],["role","columnheader",1,"ac-table-options-column","legend-table-cell","last","table-options",3,"ngStyle"],[1,"ac-screen-reader-only-content"]],template:function(a,b){if(a&1){var c=
t();K(0,"div",1)(1,"div",2)(2,"button",3);N("click",function(){u(c);aGa(b,"IS_SELECTED",2);bGa(b);return v()})("mouseenter",function(){u(c);b.xAxisPinEnabled&&(b.hoveredColumn=2);return v()})("mouseleave",function(){u(c);b.xAxisPinEnabled&&(b.hoveredColumn=null);return v()});K(3,"span",4);E(4,WFa,1,3,"mat-icon",5)(5,XFa,1,0,"mat-icon",6)(6,YFa,1,0,"mat-icon",7);M(7,"mat-icon",8);L()()();E(8,dGa,2,1,"div",9);K(9,"div",10);E(10,mGa,2,1,"ng-container",11);L();E(11,oGa,2,10,"span",12)(12,pGa,2,10,"span",
13);K(13,"div",14)(14,"button",15,0);N("mouseenter",function(){u(c);b.xAxisPinEnabled&&(b.hoveredColumn=1E3);return v()})("mouseleave",function(){u(c);b.xAxisPinEnabled&&(b.hoveredColumn=null);return v()})("click",function(){u(c);b.xAxisPinEnabled&&(b.isXAxisPinSet?aGa(b,"VALUE",1E3):b.setAndSnapXAxisPin.emit());return v()});K(16,"span",16);E(17,qGa,1,3,"mat-icon",5)(18,rGa,1,0,"mat-icon",17)(19,sGa,1,0,"mat-icon",18);K(20,"span",19);Q(21);L()()()();E(22,uGa,1,3,"span",20)(23,vGa,3,4,"span",21);L()}a&
2&&(B(),I("ngStyle",Ig(30,tGa,"translateX("+b.scrollLeft+"px)")),If("aria-sort",w0c(b)?"ascending":x0c(b)?"descending":"none"),B(),I("ve",b.ve.ColumnSortButton)("veClick",!0)("matTooltip",b.sortBySelectedTooltip),If("aria-label",b.sortBySelectedTooltip)("title",w0c(b)?"Sort in descending order.":x0c(b)?"Sort in ascending order.":"Sort in descending order."),B(2),I("ngIf",!(w0c(b)||x0c(b))),B(),I("ngIf",w0c(b)),B(),I("ngIf",x0c(b)),B(2),I("ngIf",!(b.labelsModel==null?0:b.labelsModel.labelHeaders==
null?0:b.labelsModel.labelHeaders.length)),B(2),I("ngIf",b.labelsModel&&b.labelsModel.labelPercents&&b.labelsModel.selectedColumns),B(),I("ngIf",b.timeshiftName),B(),I("ngIf",b.statsModeSummaryColumnLabel),B(),I("ngStyle",Jg(32,nGa,"translateX("+(-1*b.widthDifference+b.scrollLeft)+"px)",b.valueColumnWidth+"px")),If("aria-sort",y0c(b)?"ascending":z0c(b)?"descending":"none")("aria-colindex",b.getColIndexOffsetForValue()),B(),I("ngClass",!b.timeshiftName&&!b.statsModeSummaryColumnLabel&&b.scale>100?
"leftmost-frozen":"")("ve",b.ve.ColumnSortButton)("veClick",!0),If("title",y0c(b)?"Sort in descending order.":"Sort in ascending order."),B(3),I("ngIf",!(y0c(b)||z0c(b))),B(),I("ngIf",y0c(b)),B(),I("ngIf",z0c(b)),B(),I("matTooltip",Dg(b.valueName)),If("aria-label",b.valueName),B(),yg(b.valueName),B(),I("ngIf",b.streamActions.length===0),B(),I("ngIf",b.streamActions.length>0))},dependencies:[fI,aI,cI,Jy,nA,Lx,Mx,Nx,Rx,gD],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}  .mat-mdc-tooltip.ac-mat-tooltip{color:var(--ac-sys-color-extensions-on-surface,#202124);background:var(--ac-sys-color-extensions-neutral-container,#f1f3f4)}button.ac-table-legend-header[_ngcontent-%COMP%], span.ac-table-legend-header[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:none;background:none;font-family:inherit;font-size:100%;font-style:inherit;font-weight:700;-moz-box-sizing:border-box;box-sizing:border-box}button.ac-table-legend-header[_ngcontent-%COMP%]{border:3px solid transparent}button.ac-table-legend-header[_ngcontent-%COMP%]:focus-visible{border:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6)}button.ac-table-legend-label-header[_ngcontent-%COMP%]{padding-left:1px;padding-right:5px;text-align:left}button.ac-table-legend-checkbox-header[_ngcontent-%COMP%]{padding-left:0;padding-right:0;margin-right:-3px}.checkbox-header-text[_ngcontent-%COMP%]{padding-left:4px}button.ac-table-legend-value-header[_ngcontent-%COMP%]{padding-right:5px;text-align:right}.ac-table-options-column[_ngcontent-%COMP%]{-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;display:inline-block;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;width:40px}.ac-table-value-column[_ngcontent-%COMP%]{display:inline-block;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;text-align:right;background:var(--ac-sys-color-extensions-surface,#fff)}.sortable-column[_ngcontent-%COMP%]{cursor:pointer}.sort-icon[_ngcontent-%COMP%]{vertical-align:middle;visibility:visible;width:18px}.sort-icon.hidden[_ngcontent-%COMP%]{overflow:hidden;visibility:hidden}.sort-icon.hovered-icon[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant,#5f6368)}.checkbox-header-icon[_ngcontent-%COMP%]{vertical-align:middle;visibility:visible;width:18px}.ac-table-legend-checkbox-header[_ngcontent-%COMP%]{-webkit-box-flex:100%;-webkit-flex:100%;-moz-box-flex:100%;-ms-flex:100%;flex:100%;text-align:right;padding-left:12px;padding-right:5px}\n/*# sourceMappingURL=ac_table_legend_header_style.css.map */",
".ac-chip-absolute-background[_ngcontent-%COMP%], .ac-chip-static-container[_ngcontent-%COMP%], .ac-is-selected-container[_ngcontent-%COMP%], .ac-table-legend-options.legend-table-cell[_ngcontent-%COMP%], .ac-table-legend-value.legend-table-cell[_ngcontent-%COMP%], .ac-table-options-column.legend-table-cell[_ngcontent-%COMP%], .ac-table-value-column.legend-table-cell[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-surface,#fff)}.ac-chip-absolute-background[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;height:12px;line-height:42px;padding:15px 8px 15px 24px;position:absolute;width:12px}.ac-chip-relative-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;line-height:42px;position:relative}.ac-chip-static-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;width:50px}.ac-is-selected-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;width:22px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.ac-legend-key[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ac-table-legend-chip[_ngcontent-%COMP%]{border-radius:50px;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;height:12px;line-height:42px;margin:15px 8px 15px 24px;position:absolute;width:12px}.ac-table-legend-chip.ac-chip-position-static[_ngcontent-%COMP%]{position:static}.legend-table-cell[_ngcontent-%COMP%]{height:42px;padding-left:4px;padding-right:8px}.legend-table-cell[_ngcontent-%COMP%]   .current-value[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;padding:0 8px 0 0}.legend-table-cell.leftmost-frozen[_ngcontent-%COMP%]{border-left:1px solid var(--ac-sys-color-extensions-hairline,#dadce0);padding-left:8px}.legend-table-cell.last[_ngcontent-%COMP%]{padding-right:0}.ac-combined-chip-and-is-selected-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;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;width:72px}\n/*# sourceMappingURL=ac_table_legend_header_and_row_style.css.map */"],
changeDetection:0});var A0c={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},B0c=new dd("mat-checkbox-default-options",{providedIn:"root",factory:function(){return A0c}});var C0c=["input"],D0c=["label"],E0c=function(){},hI=function(){this._elementRef=p(Hd);this._changeDetectorRef=p(Cx);this._ngZone=p(Rg);this._animationsDisabled=mi();this._options=p(B0c,{optional:!0});this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",
indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};this.ariaLabel="";this.ariaLabelledby=null;this.labelPosition="after";this.name=null;this.change=new Ti;this.indeterminateChange=new Ti;this._onTouched=function(){};this._currentAnimationClass="";this._currentCheckState=0;this._controlValueAccessorChangeFn=function(){};this._validatorChangeFn=function(){};this._disabled=this._checked=!1;this._indeterminate=ng.apply(null,[!1].concat(q([])));p(Zh).load(cA);var a=p(new kx("tabindex"),
{optional:!0});this._options=this._options||A0c;this.color=this._options.color||A0c.color;this.tabIndex=a==null?0:parseInt(a)||0;this.id=this._uniqueId=p(ai).getId("mat-mdc-checkbox-");var b,c;this.disabledInteractive=(c=(b=this._options)==null?void 0:b.disabledInteractive)!=null?c:!1};h=hI.prototype;h.focus=function(){this._inputElement.nativeElement.focus()};h._createChangeEvent=function(a){var b=new E0c;b.source=this;b.checked=a;return b};
h._getAnimationTargetElement=function(){var a;return(a=this._inputElement)==null?void 0:a.nativeElement};h.ngOnChanges=function(a){a.required&&this._validatorChangeFn()};h.ngAfterViewInit=function(){this._syncIndeterminate(this.indeterminate)};h._isRippleDisabled=function(){return this.disableRipple||this.disabled};h._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};h.writeValue=function(a){this.checked=!!a};h.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};
h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this.disabled=a};h.validate=function(a){return this.required&&a.value!==!0?{required:!0}:null};h.registerOnValidatorChange=function(a){this._validatorChangeFn=a};
h._transitionCheckState=function(a){var b=this._currentCheckState,c=this._getAnimationTargetElement();if(b!==a&&c&&(this._currentAnimationClass&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(b,a),this._currentCheckState=a,this._currentAnimationClass.length>0)){c.classList.add(this._currentAnimationClass);var d=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){c.classList.remove(d)},
1E3)})}};h._emitChangeEvent=function(){this._controlValueAccessorChangeFn(this.checked);this.change.emit(this._createChangeEvent(this.checked));this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)};h.toggle=function(){this.checked=!this.checked;this._controlValueAccessorChangeFn(this.checked)};
h._handleInputClick=function(){var a=this,b,c=(b=this._options)==null?void 0:b.clickAction;if(!this.disabled&&c!=="noop")this.indeterminate&&c!=="check"&&Promise.resolve().then(function(){a._indeterminate.set(!1);a.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent();else if(this.disabled&&this.disabledInteractive||!this.disabled&&c==="noop")this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=
this.indeterminate};h._onInteractionEvent=function(a){a.stopPropagation()};h._onBlur=function(){var a=this;Promise.resolve().then(function(){a._onTouched();a._changeDetectorRef.markForCheck()})};
h._getAnimationClassForCheckStateTransition=function(a,b){if(this._animationsDisabled)return"";switch(a){case 0:if(b===1)return this._animationClasses.uncheckedToChecked;if(b==3)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return b===1?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return b===2?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;
case 3:return b===1?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""};h._syncIndeterminate=function(a){var b=this._inputElement;b&&(b.nativeElement.indeterminate=a)};h._onInputClick=function(){this._handleInputClick()};h._onTouchTargetClick=function(){this._handleInputClick();this.disabled||this._inputElement.nativeElement.focus()};h._preventBubblingFromLabel=function(a){a.target&&this._labelElement.nativeElement.contains(a.target)&&a.stopPropagation()};
da.Object.defineProperties(hI.prototype,{inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(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.set(a);b&&(a?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(a));this._syncIndeterminate(a)}}});hI.\u0275fac=function(a){return new (a||hI)};
hI.\u0275cmp=D({type:hI,selectors:[["mat-checkbox"]],viewQuery:function(a,b){a&1&&(hg(C0c,5),hg(D0c,5));if(a&2){var c;lg(c=mg())&&(b._inputElement=c.first);lg(c=mg())&&(b._labelElement=c.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(a,b){a&2&&(Pf("id",b.id),If("tabindex",null)("aria-label",null)("aria-labelledby",null),xg(b.color?"mat-"+b.color:"mat-accent"),wg("_mat-animation-noopable",b._animationsDisabled)("mdc-checkbox--disabled",b.disabled)("mat-mdc-checkbox-disabled",
b.disabled)("mat-mdc-checkbox-checked",b.checked)("mat-mdc-checkbox-disabled-interactive",b.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",$g],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",$g],labelPosition:"labelPosition",name:"name",value:"value",
disableRipple:[2,"disableRipple","disableRipple",$g],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?void 0:ah(a)}],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",$g],checked:[2,"checked","checked",$g],disabled:[2,"disabled","disabled",$g],indeterminate:[2,"indeterminate","indeterminate",$g]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Gg([{provide:aE,useExisting:Vc(function(){return hI}),multi:!0},
{provide:bE,useExisting:hI,multi:!0}]),jx],ngContentSelectors:["*"],decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",
"aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(a,b){if(a&1){var c=t();bg();K(0,"div",3);N("click",function(d){u(c);return v(b._preventBubblingFromLabel(d))});K(1,"div",4,0)(3,"div",5);N("click",function(){u(c);
return v(b._onTouchTargetClick())});L();K(4,"input",6,1);N("blur",function(){u(c);return v(b._onBlur())})("click",function(){u(c);return v(b._onInputClick())})("change",function(d){u(c);return v(b._onInteractionEvent(d))});L();M(6,"div",7);K(7,"div",8);yd();K(8,"svg",9);M(9,"path",10);L();zd();M(10,"div",11);L();M(11,"div",12);L();K(12,"label",13,2);cg(14);L()()}a&2&&(a=qg(2),I("labelPosition",b.labelPosition),B(4),wg("mdc-checkbox--selected",b.checked),I("checked",b.checked)("indeterminate",b.indeterminate)("disabled",
b.disabled&&!b.disabledInteractive)("id",b.inputId)("required",b.required)("tabIndex",b.disabled&&!b.disabledInteractive?-1:b.tabIndex),If("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby)("aria-checked",b.indeterminate?"mixed":null)("aria-controls",b.ariaControls)("aria-disabled",b.disabled&&b.disabledInteractive?!0:null)("aria-expanded",b.ariaExpanded)("aria-owns",b.ariaOwns)("name",b.name)("value",b.value),B(7),I("matRippleTrigger",a)("matRippleDisabled",
b.disableRipple||b.disabled)("matRippleCentered",!0),B(),I("for",b.inputId))},dependencies:[fA,dA],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-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 mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var iI=function(){};iI.\u0275fac=function(a){return new (a||iI)};iI.\u0275mod=$e({type:iI});iI.\u0275inj=Fc({imports:[hI,Ky]});var F0c=function(a){return{strong:a}},CGa=function(a){return{transform:a}},zGa=function(a,b){return{transform:a,width:b}},G0c=function(a){return[a]},xGa=function(){return{"user-select":"text"}},jI=function(a){this.liveAnnouncer=a;this.showStatsModeSummaryColumn=this.timeshift=!1;this.labelPercents=[];this.widthDifference=this.scrollLeft=0;this.scale=100;this.valueColumnWidth=80;this.streamActions=[];this.ve={LineDeselectToggle:68567,LineSelectToggle:68568,MonitoringStreamActionTableLegendMenu:137569};
this.selectedTooltip="Selected";this.notSelectedTooltip="Not selected";this.streamActionsMenuTooltip="Actions for this timeseries"};jI.prototype.getColIndexOffset=function(){var a=this.stream.labels.length;return a?a-1:0};jI.prototype.getColIndexOffsetForTimeshift=function(){return 3+this.getColIndexOffset()};jI.prototype.getColIndexOffsetForStatsMode=function(){var a=3;this.timeshift&&(a+=1);return a+this.getColIndexOffset()};
var H0c=function(a){var b=a.stream.unit,c;a=(c=a.stream.rawValue)!=null?c:null;c=b!=null?b:null;a==null?a="":(b=pAa({min:0,max:a,unit:c},{idealMaxMagnitude:1,idealMinMagnitude:0,countPrefixMaxMagnitude:Math.log10(1E12),countPrefixMinMagnitude:Math.log10(1)}),a=Lk(c,b.unit,a),a=a===null?"":Nk(a,b.unit));return a};jI.prototype.getColIndexOffsetForValue=function(){var a=3;this.timeshift&&(a+=1);this.showStatsModeSummaryColumn&&(a+=1);return a+this.getColIndexOffset()};
jI.prototype.checkboxChange=function(a){var b,c;(c=(b=this.stream).setSelected)==null||c.call(b,a.checked);this.liveAnnouncer.announce(a.checked?"Highlighted stream: "+this.stream.name:"Unhighlighted stream: "+this.stream.name)};da.Object.defineProperties(jI.prototype,{filteredStreamActions:{configurable:!0,enumerable:!0,get:function(){var a=this.stream.dataSeriesMetadata;return a?this.streamActions.filter(function(b){return b.relevant(a)}):[]}}});jI.\u0275fac=function(a){return new (a||jI)(Ve(dz))};
jI.\u0275cmp=D({type:jI,selectors:[["ac-table-legend-row"]],inputs:{stream:"stream",timeshift:"timeshift",showStatsModeSummaryColumn:"showStatsModeSummaryColumn",labelPercents:"labelPercents",columnFlexWidth:"columnFlexWidth",scrollLeft:"scrollLeft",widthDifference:"widthDifference",scale:"scale",valueColumnWidth:"valueColumnWidth",streamActions:"streamActions"},decls:19,vars:34,consts:[["streamActionsMenu",""],["fxLayout","row","role","presentation","draggable","false",3,"ngClass"],["role","cell",
"aria-colindex","1","aria-colspan","2",1,"ac-combined-chip-and-is-selected-container",3,"ngStyle"],["role","presentation",1,"ac-chip-static-container"],[1,"ac-chip-absolute-background"],[3,"color","drawnAs","shape"],["role","presentation",1,"ac-is-selected-container"],["matTooltipClass","ac-mat-tooltip",1,"ac-is-selected",3,"change","checked","aria-label","matTooltip","ve","veClick","veMutable"],["class","ac-legend-key ac-table-legend-stream","role","rowheader","aria-colindex","2","fxFlex","100",
4,"ngIf"],["role","presentation","fxFlex","100","fxLayout","row",1,"ac-legend-key"],["class","ac-table-legend-label legend-table-cell","matTooltipClass","ac-mat-tooltip",3,"ngStyle","fxFlex","matTooltip",4,"ngFor","ngForOf"],["class","ac-table-legend-value legend-table-cell timeshift-value","role","cell","matTooltipClass","ac-mat-tooltip",3,"matTooltip","ngStyle","ngClass",4,"ngIf"],["class","ac-table-legend-value legend-table-cell stats-mode-summary-value","role","cell","matTooltipClass","ac-mat-tooltip",
3,"matTooltip","ngStyle","ngClass",4,"ngIf"],["role","cell","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-value","legend-table-cell","current-value",3,"matTooltip","ngStyle","ngClass"],["class","ac-table-legend-options last legend-table-cell table-options","role","none",3,"ngStyle",4,"ngIf"],["class","ac-table-legend-options last legend-table-cell table-options","role","cell",3,"ngStyle",4,"ngIf"],[1,"ac-table-legend-stream-actions",3,"ve"],[3,"streamMetadata","streamActions"],["role","rowheader",
"aria-colindex","2","fxFlex","100",1,"ac-legend-key","ac-table-legend-stream"],["matTooltipClass","ac-mat-tooltip",1,"legend-table-cell",3,"matTooltip"],["matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-label","legend-table-cell",3,"ngStyle","fxFlex","matTooltip"],["role","cell","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-value","legend-table-cell","timeshift-value",3,"matTooltip","ngStyle","ngClass"],["role","cell","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-value","legend-table-cell",
"stats-mode-summary-value",3,"matTooltip","ngStyle","ngClass"],["role","none",1,"ac-table-legend-options","last","legend-table-cell","table-options",3,"ngStyle"],["role","cell",1,"ac-table-legend-options","last","legend-table-cell","table-options",3,"ngStyle"],["type","button","mat-icon-button","","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-stream-actions-button",3,"matTooltip","matMenuTriggerFor"],["svgIcon","ac:more_vert"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"div",
2)(2,"span",3);M(3,"span",4)(4,"ac-key",5);L();K(5,"span",6)(6,"mat-checkbox",7);N("change",function(d){u(c);return v(b.checkboxChange(d))});L()()();E(7,wGa,3,3,"div",8);K(8,"div",9);E(9,yGa,2,9,"span",10);L();E(10,AGa,2,9,"div",11)(11,BGa,2,9,"div",12);K(12,"div",13);Q(13);L();E(14,DGa,1,3,"div",14)(15,EGa,3,6,"div",15);K(16,"mat-menu",16,0);M(18,"ac-stream-action-menu",17);L()()}a&2&&(I("ngClass",Ig(25,F0c,b.stream.isInteracted)),B(),I("ngStyle",Ig(27,CGa,"translateX("+b.scrollLeft+"px)")),B(3),
I("color",b.stream.color)("drawnAs",b.stream.drawnAs)("shape",b.stream.shape),B(2),I("checked",b.stream.isSelected),Hf("aria-label","Highlight stream: "+b.stream.name),I("matTooltip",b.stream.isSelected?b.selectedTooltip:b.notSelectedTooltip)("ve",b.stream.isSelected?b.ve.LineDeselectToggle:b.ve.LineSelectToggle)("veClick",!0)("veMutable",!0),B(),I("ngIf",!b.stream.labels.length),B(2),I("ngForOf",b.stream.labels),B(),I("ngIf",b.timeshift),B(),I("ngIf",b.showStatsModeSummaryColumn),B(),I("matTooltip",
H0c(b))("ngStyle",Jg(29,zGa,"translateX("+(-1*b.widthDifference+b.scrollLeft)+"px)",b.valueColumnWidth+"px"))("ngClass",Ig(32,G0c,!b.timeshift&&!b.showStatsModeSummaryColumn&&b.scale>100?"leftmost-frozen":"")),If("aria-colindex",b.getColIndexOffsetForValue()),B(),S(" ",b.stream.displayValue," "),B(),I("ngIf",b.filteredStreamActions.length===0),B(),I("ngIf",b.filteredStreamActions.length>0),B(),I("ve",b.ve.MonitoringStreamActionTableLegendMenu),B(2),I("streamMetadata",b.stream.dataSeriesMetadata)("streamActions",
b.streamActions))},dependencies:[cH,kH,fI,aI,cI,hI,Jy,iB,fH,iH,nA,Lx,Mx,Nx,Rx,gD],styles:[".mat-mdc-tooltip.ac-mat-tooltip{color:var(--ac-sys-color-extensions-on-surface,#202124);background:var(--ac-sys-color-extensions-neutral-container,#f1f3f4)}.ac-table-legend-label[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}mat-checkbox[_ngcontent-%COMP%]{margin-top:-1px;margin-left:calc((var(--mat-checkbox-state-layer-size) - 18px)/-2);margin-right:calc((var(--mat-checkbox-state-layer-size) - 18px)/-2)}.ac-table-legend-options.legend-table-cell.table-options[_ngcontent-%COMP%]{min-width:40px;width:40px}.ac-table-legend-value[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:inline-block;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;text-align:right;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;-moz-box-sizing:border-box;box-sizing:border-box}.ac-chip-static-container[_ngcontent-%COMP%]{position:relative}.ac-chip-static-container[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.strong[_ngcontent-%COMP%]{font-weight:500;opacity:1}\n/*# sourceMappingURL=ac_table_legend_row_style.css.map */",
".ac-chip-absolute-background[_ngcontent-%COMP%], .ac-chip-static-container[_ngcontent-%COMP%], .ac-is-selected-container[_ngcontent-%COMP%], .ac-table-legend-options.legend-table-cell[_ngcontent-%COMP%], .ac-table-legend-value.legend-table-cell[_ngcontent-%COMP%], .ac-table-options-column.legend-table-cell[_ngcontent-%COMP%], .ac-table-value-column.legend-table-cell[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-surface,#fff)}.ac-chip-absolute-background[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;height:12px;line-height:42px;padding:15px 8px 15px 24px;position:absolute;width:12px}.ac-chip-relative-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;line-height:42px;position:relative}.ac-chip-static-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;width:50px}.ac-is-selected-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;width:22px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.ac-legend-key[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ac-table-legend-chip[_ngcontent-%COMP%]{border-radius:50px;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;height:12px;line-height:42px;margin:15px 8px 15px 24px;position:absolute;width:12px}.ac-table-legend-chip.ac-chip-position-static[_ngcontent-%COMP%]{position:static}.legend-table-cell[_ngcontent-%COMP%]{height:42px;padding-left:4px;padding-right:8px}.legend-table-cell[_ngcontent-%COMP%]   .current-value[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;padding:0 8px 0 0}.legend-table-cell.leftmost-frozen[_ngcontent-%COMP%]{border-left:1px solid var(--ac-sys-color-extensions-hairline,#dadce0);padding-left:8px}.legend-table-cell.last[_ngcontent-%COMP%]{padding-right:0}.ac-combined-chip-and-is-selected-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;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;width:72px}\n/*# sourceMappingURL=ac_table_legend_header_and_row_style.css.map */"],
changeDetection:0});var I0c=["scrollingDiv"],J0c=["virtualScroll"],kI=function(a,b,c,d,e,f,g,k){oH.call(this,a,b,c,d,e);var l=this;this.cdRef=b;this.elementRef=c;this.focusMonitor=f;this.ngZone=g;this.interactionService=k;this.viewPortStreams=[];this.columnKeys=["Name"];this.divComputedStyle=this.contentComputedStyle=null;this.widthDifference=this.scrollTop=this.scrollLeft=0;this.scale=100;this.ve={ChartLegendPane:68535};this.isOnSdDashboard=!1;this.height=210;this.defaultSortingColumn="";this.defaultSortingDirection=
null;this.streamActions=[];this.labelsModel={columnsModel:[],selectedColumns:[],selectableColumns:[],labelHeaders:[],labelWidths:[],labelPercents:[],scale:100,nextColumnId:1};this.labelsModelSubject=new Mj(this.labelsModel);this.preventAveScrollEvents=!1;this.lastSelected=null;this.updatePercentsWithLabelsSubject=new qf;this.scrollResizeObserver=this.streamRowIndexMap=null;this.updatePercentsWithLabelsSubject.pipe(Yka(this.updatePercentsWithLabelsSubject.pipe(jf(0))),zf(this.destroyed)).subscribe(function(r){var w=
K0c(l);l.labelsModel.labelWidths=[];r=m(r);for(var x=r.next();!x.done;x=r.next())UYc.updatePercents(l.labelsModel,x.value,100,w);l.labelsModel=Object.assign({},l.labelsModel);l.labelsModelSubject.next(l.labelsModel);l.cdRef.markForCheck()})};Y(kI,oH);kI.\u0275dir=oH.\u0275dir;
kI.prototype.ngAfterViewInit=function(){var a=this;this.focusMonitor.monitor(this.scrollingDiv).pipe(zf(this.destroyed)).subscribe(function(){a.ngZone.run(function(){a.cdRef.markForCheck()})});this.scrollResizeObserver=new ResizeObserver(function(b){if(b.length)a.onScroll(!1)});this.scrollResizeObserver.observe(this.scrollingDiv.nativeElement)};kI.prototype.ngOnDestroy=function(){oH.prototype.ngOnDestroy.call(this);var a;(a=this.scrollResizeObserver)==null||a.disconnect()};
kI.prototype.onMapChange=function(a,b){oH.prototype.onMapChange.call(this,a,b);L0c(this)};kI.prototype.update=function(){oH.prototype.update.call(this);L0c(this);M0c(this);this.streams&&(this.streams=this.streams.slice().sort(this.sortFunc));this.streamRowIndexMap=new Map;if(this.streams)for(var a=m(this.streams.entries()),b=a.next();!b.done;b=a.next()){var c=m(b.value);b=c.next().value;c=c.next().value;this.streamRowIndexMap.set(c,b+2)}this.bringLastSelectedIntoView();this.cdRef.markForCheck()};
var K0c=function(a){if(!a.divComputedStyle&&!a.scrollingDiv)return 0;a.divComputedStyle=a.divComputedStyle||getComputedStyle(a.scrollingDiv.nativeElement);return+a.divComputedStyle.getPropertyValue("width").replace("px","")};
kI.prototype.selectedColumnsChanged=function(){if(this.columnComparator&&this.labelsModel.selectedColumns){var a=this.columnComparator;this.labelsModel.selectedColumns.sort(function(c,d){return a(c.title,d.title)})}var b=(this.labelsModel.selectedColumns||[]).map(function(c){return c.title||""});this.labelsModel.labelHeaders=b;this.labelsModel.labelWidths=[];this.labelsModel.labelPercents=[];this.labelsModel=Object.assign({},this.labelsModel);this.labelsModelSubject.next(this.labelsModel)};
var L0c=function(a){if(a.labelsModel){var b,c,d=hZc(a,(c=(b=a.streams)==null?void 0:b.map(function(e){var f;return(f=e.dataSeriesMetadata)!=null?f:null}))!=null?c:[]);d||(d=tCa());d&&d.length>0&&(b=UYc.updateLabelsModel(a.labelsModel,d),a.labelsModel=Object.assign({},a.labelsModel),a.labelsModelSubject.next(a.labelsModel),b&&a.selectedColumnsChanged())}},M0c=function(a){var b;(b=a.streams)==null||b.forEach(function(c){c.getLabels=function(){return(a.labelsModel.selectedColumns||[]).map(function(d){var e=
c.dataSeriesMetadata&&c.dataSeriesMetadata.childId||0,f=null;if(d.tokenizers&&d.tokenizers[e]){var g;f=(g=c.dataSeriesMetadata)!=null?g:{};g=a.getTranslationFunctions();g.getName=function(k){return c.getName()||k.name||""};f=d.tokenizers[e].format(f,g)}return f||""})};c.onLabelsChange=function(d){a.updatePercentsWithLabelsSubject.next(d)};c.getColumnIds=function(){return(a.labelsModel.selectedColumns||[]).map(function(d){return d.uniqueId})}});requestAnimationFrame(function(){a.onScroll(!1)})};
kI.prototype.onScroll=function(a){if(this.scrollingDiv&&this.scrollingDiv.nativeElement&&this.scrollingDiv.nativeElement.children&&this.scrollingDiv.nativeElement.children.length){a&&!this.preventAveScrollEvents&&(wl(this.interactionService,"scroll",xl.ve.AwesomeChartLegendPane,this.elementRef.nativeElement,{debounce:!0}),this.preventAveScrollEvents=!0);this.contentComputedStyle=this.contentComputedStyle||getComputedStyle(this.scrollingDiv.nativeElement.children[0]);a=+this.contentComputedStyle.getPropertyValue("width").replace("px",
"");var b=K0c(this);a-=b;b=this.scrollingDiv.nativeElement.scrollLeft;var c=this.scrollingDiv.nativeElement.scrollTop;if(this.widthDifference!==a||this.scrollLeft!==b||this.scrollTop!==c)this.widthDifference=a,this.scrollLeft=b,this.scrollTop=c,this.cdRef.detectChanges()}};
kI.prototype.onSeriesSelectionChange=function(a,b){var c=this;this.lastSelected=rBa(a,b.scope.layerId);this.lastSeriesSelectedInLegend&&(this.lastSelected=this.lastSelected.filter(function(d){return d!==c.lastSeriesSelectedInLegend}));this.lastSeriesSelectedInLegend=null;oH.prototype.onSeriesSelectionChange.call(this,a,b)};
kI.prototype.bringLastSelectedIntoView=function(){oH.prototype.bringLastSelectedIntoView.call(this);if(this.lastSelected){if(this.lastSelected.length>=1){var a=this.lastSelected[0],b,c,d=(c=(b=this.streams)==null?void 0:b.findIndex(function(e){return e.seriesId===a}))!=null?c:-1;if(d<0)return;b=Z_c(this.virtualScrollRef);d=Math.floor(d/b.itemsPerRow)*b.childHeight;b=d-Math.max(0,b.itemsPerCol-2)*b.childHeight;c=this.scrollingDiv.nativeElement.scrollTop;c>d?c=d:c<b&&(c=b);this.scrollToPosition(c)}this.lastSelected=
null}};kI.prototype.scrollToPosition=function(a){var b=this;this.scrollingDiv.nativeElement.scrollTop!==a&&(this.scrollTop=this.scrollingDiv.nativeElement.scrollTop=a,requestAnimationFrame(function(){b.onScroll(!1)}))};var N0c=function(a,b){a.scale!==b&&requestAnimationFrame(function(){a.onScroll(!1)});a.scale=b;return{width:b+"%",height:a.height+"px"}};kI.prototype.trackByStreamName=function(a,b){return b.name};
var O0c=function(a){return!!a.streams&&a.streams.length>0},HGa=function(a,b){var c;return(c=a.streamRowIndexMap)==null?void 0:c.get(b)},FGa=function(a){if(!a.streams||a.streams.length===0)return 80;a=a.streams.reduce(function(b,c){var d,e,f,g;return Math.max(b,c.displayValue.length,(f=(d=c.timeshiftValue)==null?void 0:d.length)!=null?f:0,(g=(e=c.statsModeSummaryValue)==null?void 0:e.length)!=null?g:0)},0)*10;return Math.max(a,80)};
kI.\u0275fac=function(a){return new (a||kI)(Ve(gG),Ve(Cx),Ve(Hd),Ve(UG),Ve(fG),Ve(Ny),Ve(Rg),Ve(xl))};
kI.\u0275cmp=D({type:kI,selectors:[["ac-table-legend"],["cola-table-legend"]],viewQuery:function(a,b){a&1&&(hg(I0c,5),hg(J0c,5));if(a&2){var c;lg(c=mg())&&(b.scrollingDiv=c.first);lg(c=mg())&&(b.virtualScrollRef=c.first)}},inputs:{isOnSdDashboard:"isOnSdDashboard",height:"height",defaultSortingColumn:"defaultSortingColumn",defaultSortingDirection:"defaultSortingDirection",streamActions:"streamActions",columnComparator:"columnComparator"},features:[Ef],decls:7,vars:12,consts:[["scrollingDiv",""],["virtualScroll",
""],["scrollingHeader",""],[1,"ac-legend-outer-div"],[1,"ac-table-legend-switch","scrolling-div","ac-a11y-keyboard-focusable",3,"scroll","draggable","ve"],["role","presentation",1,"ac-legend-table-virtual-scroll","overflow-visible",3,"update","items","childHeight","ngStyle","scrollTop","hasHeader"],["role","rowgroup","header","",4,"ngIf"],["role","rowgroup",4,"ngIf"],["role","rowgroup","header",""],["role","row","aria-rowindex","1",1,"ac-table-legend-header",3,"sortFunc","columnKeys","labelsModel",
"valueName","columnFlexWidth","scrollLeft","widthDifference","scale","valueColumnWidth","streamActions","defaultSortingColumn","defaultSortingDirection","timeshiftName","statsModeSummaryColumnLabel"],[3,"selectedColumnsChanged","labelsModel","valueName"],["role","rowgroup"],["class","ac-table-legend-row","role","row",3,"stream","labelPercents","columnFlexWidth","scrollLeft","scale","valueColumnWidth","streamActions","widthDifference","timeshift","showStatsModeSummaryColumn","mouseenter","mouseleave",
4,"ngFor","ngForOf","ngForTrackBy"],["role","row",1,"ac-table-legend-row",3,"mouseenter","mouseleave","stream","labelPercents","columnFlexWidth","scrollLeft","scale","valueColumnWidth","streamActions","widthDifference","timeshift","showStatsModeSummaryColumn"]],template:function(a,b){if(a&1){var c=t();K(0,"div",3)(1,"div",4,0);N("scroll",function(){u(c);return v(b.onScroll(!0))});K(3,"virtual-scroll",5,1);N("update",function(d){u(c);return v(b.viewPortStreams=d)});E(5,GGa,5,17,"div",6)(6,JGa,2,2,
"div",7);L()()()}a&2&&(B(),I("draggable",b.isOnSdDashboard)("ve",b.ve.ChartLegendPane),If("role",O0c(b)?"table":"presentation")("aria-label",O0c(b)?"Legend":void 0)("aria-rowcount",b.streams&&O0c(b)?b.streams.length+1:void 0),B(2),I("items",b.streams)("childHeight",42)("ngStyle",N0c(b,b.labelsModel.scale))("scrollTop",b.scrollTop)("hasHeader",!0),B(2),I("ngIf",O0c(b)),B(),I("ngIf",b.viewPortStreams.length>0))},dependencies:[WH,gI,jI,Mx,Nx,Rx,gD,SH,RH,Tx],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;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}.ac-table-legend-switch[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;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}.ac-table-legend-switch.scrolling-div[_ngcontent-%COMP%]{overflow:auto}.ac-table-legend-switch[_ngcontent-%COMP%]::-webkit-scrollbar{height:7px;width:7px;-webkit-appearance:none}.ac-table-legend-switch[_ngcontent-%COMP%]::-webkit-scrollbar-corner{color:var(--ac-sys-color-extensions-surface,#fff)}.ac-table-legend-switch[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:4px;background-color:var(--ac-sys-color-extensions-scrollbar-surface,rgba(0,0,0,.4))}.ac-table-legend-switch[_ngcontent-%COMP%]   *[_ngcontent-%COMP%], .ac-table-legend-switch[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:after, .ac-table-legend-switch[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:before{-moz-box-sizing:content-box;box-sizing:content-box}.ac-table-legend-switch[_ngcontent-%COMP%]:focus{outline-offset:0}.ac-legend-table-virtual-scroll[_ngcontent-%COMP%]{display:block;-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow-y:scroll}.ac-legend-table-virtual-scroll.overflow-visible[_ngcontent-%COMP%]{overflow-y:visible;overflow:visible}.ac-table-legend-header[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-surface,#fff);border-color:var(--ac-sys-color-extensions-hairline,#dadce0);display:block;font-weight:700;margin:0}ac-stats-legend-header[_ngcontent-%COMP%], ac-table-legend-header[_ngcontent-%COMP%]{border-style:solid;border-width:1px 0;cursor:default;display:block;height:42px;line-height:42px}.ac-table-legend-row[_ngcontent-%COMP%]{border-style:solid;border-width:0 0 1px;display:block;height:42px;line-height:42px}virtual-scroll[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;min-height:100px;overflow-y:scroll}virtual-scroll[_ngcontent-%COMP%]   .ac-table-legend-row[_ngcontent-%COMP%]{border-color:var(--ac-sys-color-extensions-hairline,#dadce0)}virtual-scroll[_ngcontent-%COMP%]   .ac-stream-hovered[_ngcontent-%COMP%], virtual-scroll[_ngcontent-%COMP%]   .ac-stream-selected[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-on-surface-hover,#f7f8f8)}.ac-legend-outer-div[_ngcontent-%COMP%]{position:relative;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;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}\n/*# sourceMappingURL=ac_table_legend_style.css.map */"],
changeDetection:0});var P0c=function(){};var MGa=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,TGa=RegExp("{{\\s*(.+?)\\s*}}","g"),VGa=/-+([a-z0-9])/g;var Q0c=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(" ")),R0c=function(){};Y(R0c,P0c);
var ZGa=function(a,b,c){var d="",e=b.toString().trim();Q0c.has(a)&&b!==0&&b!=="0"&&(typeof b==="number"?d="px":(a=b.match(/^[+-]?[\d\.]+([a-z]*)$/))&&a[1].length==0&&c.push(new Sc(3005,!1)));return e+d};var eHa=typeof document==="undefined"?null:document.documentElement;var S0c=function(){};var kHa=new Set(["true","1"]),lHa=new Set(["false","0"]);var mHa=RegExp("s*:selfs*,?","g"),T0c=function(a){this._driver=a};h=T0c.prototype;h.build=function(a,b){b=new U0c(b);this._resetContextStyleTimingState(b);return Nl(this,QGa(a),b)};h._resetContextStyleTimingState=function(a){a.currentQuerySelector="";a.collectedStyles=new Map;a.collectedStyles.set("",new Map);a.currentTime=0};
h.visitTrigger=function(a,b){var c=this,d=b.queryCount=0,e=b.depCount=0,f=[],g=[];a.name.charAt(0)=="@"&&b.errors.push(new Sc(3006,!1));a.definitions.forEach(function(k){c._resetContextStyleTimingState(b);if(k.type==0){var l=k.name;l.toString().split(/\s*,\s*/).forEach(function(r){k.name=r;f.push(c.visitState(k,b))});k.name=l}else k.type==1?(l=c.visitTransition(k,b),d+=l.queryCount,e+=l.depCount,g.push(l)):b.errors.push(new Sc(3007,!1))});return{type:7,name:a.name,states:f,transitions:g,queryCount:d,
depCount:e,options:null}};h.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(g){g instanceof Map&&g.forEach(function(k){RGa(k).forEach(function(l){f.hasOwnProperty(l)||e.add(l)})})});e.size&&b.errors.push(KGa([].concat(q(e.values()))))}return{type:0,name:a.name,style:c,options:d?{params:d}:null}};
h.visitTransition=function(a,b){b.queryCount=0;b.depCount=0;var c=Nl(this,QGa(a.animation),b);return{type:1,matchers:jHa(a.expr,b.errors),animation:c,queryCount:b.queryCount,depCount:b.depCount,options:Rl(a.options)}};h.visitSequence=function(a,b){var c=this;return{type:2,steps:a.steps.map(function(d){return Nl(c,d,b)}),options:Rl(a.options)}};
h.visitGroup=function(a,b){var c=this,d=b.currentTime,e=0,f=a.steps.map(function(g){b.currentTime=d;g=Nl(c,g,b);e=Math.max(e,b.currentTime);return g});b.currentTime=e;return{type:3,steps:f,options:Rl(a.options)}};
h.visitAnimate=function(a,b){var c=pHa(a.timings,b.errors);b.currentAnimateTimings=c;var d=a.styles?a.styles:Vi({});if(d.type==5)a=this.visitKeyframes(d,b);else{d=a.styles;a=!1;d||(a=!0,d={},c.easing&&(d.easing=c.easing),d=Vi(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}};h.visitStyle=function(a,b){a=this._makeStyleAst(a,b);this._validateStyleAst(a,b);return a};
h._makeStyleAst=function(a,b){for(var c=[],d=m(Array.isArray(a.styles)?a.styles:[a.styles]),e=d.next();!e.done;e=d.next())e=e.value,typeof e==="string"?e==="*"?c.push(e):b.errors.push(new Sc(3002,!1)):c.push(new Map(Object.entries(e)));var f=!1,g=null;c.forEach(function(k){if(k instanceof Map&&(k.has("easing")&&(g=k.get("easing"),k.delete("easing")),!f)){k=m(k.values());for(var l=k.next();!l.done;l=k.next())if(l.value.toString().indexOf("{{")>=0){f=!0;break}}});return{type:6,styles:c,easing:g,offset:a.offset,
containsDynamicStyles:f,options:null}};h._validateStyleAst=function(a,b){var c=b.currentAnimateTimings,d=b.currentTime,e=b.currentTime;c&&e>0&&(e-=c.duration+c.delay);a.styles.forEach(function(f){typeof f!=="string"&&f.forEach(function(g,k){var l=b.collectedStyles.get(b.currentQuerySelector),r=l.get(k),w=!0;r&&(e!=d&&e>=r.startTime&&d<=r.endTime&&(b.errors.push(new Sc(3010,!1)),w=!1),e=r.startTime);w&&l.set(k,{startTime:e,endTime:d});b.options&&SGa(g,b.options,b.errors)})})};
h.visitKeyframes=function(a,b){var c=this,d={type:5,styles:[],options:null};if(!b.currentAnimateTimings)return b.errors.push(new Sc(3011,!1)),d;var e=0,f=[],g=!1,k=!1,l=0,r=a.steps.map(function(O){O=c._makeStyleAst(O,b);var R=O.offset!=null?O.offset:oHa(O.styles),V=0;R!=null&&(e++,V=O.offset=R);k=k||V<0||V>1;g=g||V<l;l=V;f.push(V);return O});k&&b.errors.push(new Sc(3012,!1));g&&b.errors.push(new Sc(3200,!1));a=a.steps.length;var w=0;e>0&&e<a?b.errors.push(new Sc(3202,!1)):e==0&&(w=1/(a-1));var x=
a-1,C=b.currentTime,H=b.currentAnimateTimings,J=H.duration;r.forEach(function(O,R){R=w>0?R==x?1:w*R:f[R];var V=R*J;b.currentTime=C+H.delay+V;H.duration=V;c._validateStyleAst(O,b);O.offset=R;d.styles.push(O)});return d};h.visitReference=function(a,b){return{type:8,animation:Nl(this,QGa(a.animation),b),options:Rl(a.options)}};h.visitAnimateChild=function(a,b){b.depCount++;return{type:9,options:Rl(a.options)}};
h.visitAnimateRef=function(a,b){return{type:10,animation:this.visitReference(a.animation,b),options:Rl(a.options)}};
h.visitQuery=function(a,b){var c=b.currentQuerySelector,d=a.options||{};b.queryCount++;b.currentQuery=a;var e=m(nHa(a.selector)),f=e.next().value;e=e.next().value;b.currentQuerySelector=c.length?c+" "+f:f;Ql(b.collectedStyles,b.currentQuerySelector,new Map);var g=Nl(this,QGa(a.animation),b);b.currentQuery=null;b.currentQuerySelector=c;return{type:11,selector:f,limit:d.limit||0,optional:!!d.optional,includeSelf:e,animation:g,originalSelector:a.selector,options:Rl(a.options)}};
h.visitStagger=function(a,b){b.currentQuery||b.errors.push(new Sc(3013,!1));var c=a.timings==="full"?{duration:0,delay:0,easing:"full"}:NGa(a.timings,b.errors,!0);return{type:12,animation:Nl(this,QGa(a.animation),b),timings:c,options:null}};var U0c=function(a){this.errors=a;this.depCount=this.queryCount=0;this.currentAnimateTimings=this.currentQuerySelector=this.currentQuery=this.currentTransition=null;this.currentTime=0;this.collectedStyles=new Map;this.options=null};var lI=function(){this._map=new Map};lI.prototype.get=function(a){return this._map.get(a)||[]};lI.prototype.append=function(a,b){var c=this._map.get(a);c||this._map.set(a,c=[]);c.push.apply(c,q(b))};lI.prototype.has=function(a){return this._map.has(a)};lI.prototype.clear=function(){this._map.clear()};var V0c=RegExp(":enter","g"),W0c=RegExp(":leave","g"),rHa=function(){};h=rHa.prototype;
h.buildKeyframes=function(a,b,c,d,e,f,g,k,l,r){r=r===void 0?[]:r;l=l||new lI;a=new X0c(a,b,l,d,e,r,[]);a.options=k;d=k.delay?Kl(k.delay):0;a.currentTimeline.delayNextStep(d);a.currentTimeline.setStyles([f],null,a.errors,k);Nl(this,c,a);c=a.timelines.filter(function(x){return x.containsAnimation()});if(c.length&&g.size){for(f=c.length-1;f>=0;f--)if(e=c[f],e.element===b){var w=e;break}w&&w._currentEmptyStepKeyframe===w._currentKeyframe&&w.setStyles([g],null,a.errors,k)}return c.length?c.map(function(x){return x.buildKeyframes()}):
[qHa(b,[],[],[],0,d,"",!1)]};h.visitTrigger=function(){};h.visitState=function(){};h.visitTransition=function(){};h.visitAnimateChild=function(a,b){var c=b.subInstructions.get(b.element);if(c){var d=mI(b,a.options),e=b.currentTimeline.currentTime;c=this._visitSubInstructions(c,d,d.options);e!=c&&nI(b,c)}b.previousNode=a};
h.visitAnimateRef=function(a,b){var c=mI(b,a.options);nI(c);this._applyAnimationRefDelays([a.options,a.animation.options],b,c);this.visitReference(a.animation,c);nI(b,c.currentTimeline.currentTime);b.previousNode=a};h._applyAnimationRefDelays=function(a,b,c){a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=(e=d)==null?void 0:e.delay;if(f){var g=e=void 0;d=typeof f==="number"?f:Kl(UGa(f,(g=(e=d)==null?void 0:e.params)!=null?g:{},b.errors));c.delayNextStep(d)}}};
h._visitSubInstructions=function(a,b,c){var d=b.currentTimeline.currentTime,e=c.duration!=null?Kl(c.duration):null,f=c.delay!=null?Kl(c.delay):null;e!==0&&a.forEach(function(g){var k={duration:e!=null?e:g.duration,delay:b.currentTimeline.currentTime+(f!=null?f:0)+g.delay,easing:""};g=new Y0c(b._driver,g.element,g.keyframes,g.preStyleProps,g.postStyleProps,k,g.stretchStartingKeyframe);b.timelines.push(g);d=Math.max(d,k.duration+k.delay)});return d};
h.visitReference=function(a,b){Z0c(b,a.options,!0);Nl(this,a.animation,b);b.previousNode=a};h.visitSequence=function(a,b){var c=this,d=b.subContextCount,e=b,f=a.options;f&&(f.params||f.delay)&&(e=mI(b,f),nI(e),f.delay!=null&&(e.previousNode.type==6&&($0c(e.currentTimeline),e.previousNode=a1c),e.delayNextStep(Kl(f.delay))));a.steps.length&&(a.steps.forEach(function(g){return Nl(c,g,e)}),oI(e.currentTimeline),e.subContextCount>d&&nI(e));b.previousNode=a};
h.visitGroup=function(a,b){var c=this,d=[],e=b.currentTimeline.currentTime,f=a.options&&a.options.delay?Kl(a.options.delay):0;a.steps.forEach(function(g){var k=mI(b,a.options);f&&k.delayNextStep(f);Nl(c,g,k);e=Math.max(e,k.currentTimeline.currentTime);d.push(k.currentTimeline)});d.forEach(function(g){return b1c(b.currentTimeline,g)});nI(b,e);b.previousNode=a};
h._visitTiming=function(a,b){return a.dynamic?(a=a.strValue,a=b.params?UGa(a,b.params,b.errors):a,NGa(a,b.errors)):{duration:a.duration,delay:a.delay,easing:a.easing}};
h.visitAnimate=function(a,b){var c=b.currentAnimateTimings=this._visitTiming(a.timings,b),d=b.currentTimeline;c.delay&&(c1c(b.currentTimeline,b.currentTimeline.duration+c.delay),$0c(d));var e=a.style;e.type==5?this.visitKeyframes(e,b):(c1c(b.currentTimeline,b.currentTimeline.duration+c.duration),this.visitStyle(e,b),oI(d));b.currentAnimateTimings=null;b.previousNode=a};
h.visitStyle=function(a,b){var c=b.currentTimeline,d=b.currentAnimateTimings;!d&&c._currentKeyframe.size>0&&(c.duration+=1,c._loadKeyframe());d=d&&d.easing||a.easing;if(a.isEmptyStep){d&&c._previousKeyframe.set("easing",d);d=m(c._globalTimelineStyles);for(var e=d.next();!e.done;e=d.next()){var f=m(e.value);e=f.next().value;f=f.next().value;c._backFill.set(e,f||"*");c._currentKeyframe.set(e,"*")}c._currentEmptyStepKeyframe=c._currentKeyframe}else c.setStyles(a.styles,d,b.errors,b.options);b.previousNode=
a};h.visitKeyframes=function(a,b){var c=b.currentAnimateTimings,d=b.currentTimeline.duration,e=c.duration,f=mI(b).currentTimeline;f.easing=c.easing;a.styles.forEach(function(g){c1c(f,(g.offset||0)*e);f.setStyles(g.styles,g.easing,b.errors,b.options);oI(f)});b1c(b.currentTimeline,f);nI(b,d+e);b.previousNode=a};
h.visitQuery=function(a,b){var c=this,d=b.currentTimeline.currentTime,e=a.options||{},f=e.delay?Kl(e.delay):0;f&&(b.previousNode.type===6||d==0&&b.currentTimeline._currentKeyframe.size>0)&&($0c(b.currentTimeline),b.previousNode=a1c);var g=d;d=d1c(b,a.selector,a.limit,a.includeSelf,e.optional?!0:!1,b.errors);b.currentQueryTotal=d.length;var k=null;d.forEach(function(l,r){b.currentQueryIndex=r;r=mI(b,a.options,l);f&&r.delayNextStep(f);l===b.element&&(k=r.currentTimeline);Nl(c,a.animation,r);oI(r.currentTimeline);
g=Math.max(g,r.currentTimeline.currentTime)});b.currentQueryIndex=0;b.currentQueryTotal=0;nI(b,g);k&&(b1c(b.currentTimeline,k),$0c(b.currentTimeline));b.previousNode=a};
h.visitStagger=function(a,b){var c=b.parentContext,d=b.currentTimeline,e=a.timings,f=Math.abs(e.duration),g=f*(b.currentQueryTotal-1);f*=b.currentQueryIndex;switch(e.duration<0?"reverse":e.easing){case "reverse":f=g-f;break;case "full":f=c.currentStaggerTime}e=b.currentTimeline;f&&e.delayNextStep(f);e=e.currentTime;Nl(this,a.animation,b);b.previousNode=a;c.currentStaggerTime=d.currentTime-e+(d.startTime-c.currentTimeline.startTime)};
var a1c={},X0c=function(a,b,c,d,e,f,g,k){this._driver=a;this.element=b;this.subInstructions=c;this._enterClassName=d;this._leaveClassName=e;this.errors=f;this.timelines=g;this.currentAnimateTimings=this.parentContext=null;this.previousNode=a1c;this.subContextCount=0;this.options={};this.currentStaggerTime=this.currentQueryTotal=this.currentQueryIndex=0;this.currentTimeline=k||new pI(this._driver,b,0);g.push(this.currentTimeline)},Z0c=function(a,b,c){if(b){var d=a.options;b.duration!=null&&(d.duration=
Kl(b.duration));b.delay!=null&&(d.delay=Kl(b.delay));var e=b.params;if(e){var f=d.params;f||(f=a.options.params={});Object.keys(e).forEach(function(g){c&&f.hasOwnProperty(g)||(f[g]=UGa(e[g],f,a.errors))})}}};X0c.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 mI=function(a,b,c){b=b===void 0?null:b;c=c||a.element;c=new X0c(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();Z0c(c,b);c.currentQueryIndex=a.currentQueryIndex;c.currentQueryTotal=a.currentQueryTotal;c.parentContext=a;a.subContextCount++;return c},nI=function(a,b){a.previousNode=a1c;a.currentTimeline=a.currentTimeline.fork(a.element,
b);a.timelines.push(a.currentTimeline)};X0c.prototype.delayNextStep=function(a){a>0&&this.currentTimeline.delayNextStep(a)};var d1c=function(a,b,c,d,e,f){var g=[];d&&g.push(a.element);b.length>0&&(b=b.replace(V0c,"."+a._enterClassName),b=b.replace(W0c,"."+a._leaveClassName),a=a._driver.query(a.element,b,c!=1),c!==0&&(a=c<0?a.slice(a.length+c,a.length):a.slice(0,c)),g.push.apply(g,q(a)));e||g.length!=0||f.push(new Sc(3014,!1));return g};
da.Object.defineProperties(X0c.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});
var pI=function(a,b,c,d){this._driver=a;this.element=b;this.startTime=c;this._elementTimelineStylesLookup=d;this.duration=0;this.easing=null;this._previousKeyframe=new Map;this._currentKeyframe=new Map;this._keyframes=new Map;this._styleSummary=new Map;this._localTimelineStyles=new Map;this._pendingStyles=new Map;this._backFill=new Map;this._currentEmptyStepKeyframe=null;this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map);this._globalTimelineStyles=this._elementTimelineStylesLookup.get(b);
this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(b,this._localTimelineStyles));this._loadKeyframe()};pI.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this._currentKeyframe.size>0;default:return!0}};pI.prototype.delayNextStep=function(a){var b=this._keyframes.size===1&&this._pendingStyles.size;this.duration||b?(c1c(this,this.currentTime+a),b&&$0c(this)):this.startTime+=a};
pI.prototype.fork=function(a,b){oI(this);return new pI(this._driver,a,b||this.currentTime,this._elementTimelineStylesLookup)};pI.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 c1c=function(a,b){oI(a);a.duration=b;a._loadKeyframe()};
pI.prototype._updateStyle=function(a,b){this._localTimelineStyles.set(a,b);this._globalTimelineStyles.set(a,b);this._styleSummary.set(a,{time:this.currentTime,value:b})};
pI.prototype.setStyles=function(a,b,c,d){b&&this._previousKeyframe.set("easing",b);b=d&&d.params||{};a=tHa(a,this._globalTimelineStyles);a=m(a);for(d=a.next();!d.done;d=a.next()){var e=m(d.value);d=e.next().value;e=e.next().value;e=UGa(e,b,c);this._pendingStyles.set(d,e);if(!this._localTimelineStyles.has(d)){var f=void 0;this._backFill.set(d,(f=this._globalTimelineStyles.get(d))!=null?f:"*")}this._updateStyle(d,e)}};
var oI=function(a){a._pendingStyles.size!=0&&(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)}))},$0c=function(a){for(var b=m(a._localTimelineStyles),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;a._pendingStyles.set(c,d);a._updateStyle(c,d)}},b1c=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)})};
pI.prototype.buildKeyframes=function(){var a=this;oI(this);var b=new Set,c=new Set,d=this._keyframes.size===1&&this.duration===0,e=[];this._keyframes.forEach(function(r,w){r=new Map([].concat(q(a._backFill),q(r)));r.forEach(function(x,C){x==="!"?b.add(C):x==="*"&&c.add(C)});d||r.set("offset",w/a.duration);e.push(r)});var f=[].concat(q(b.values())),g=[].concat(q(c.values()));if(d){var k=e[0],l=new Map(k);k.set("offset",0);l.set("offset",1);e=[k,l]}return qHa(this.element,e,f,g,this.duration,this.startTime,
this.easing,!1)};da.Object.defineProperties(pI.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 Y0c=function(a,b,c,d,e,f,g){g=g===void 0?!1:g;pI.call(this,a,b,f.delay);this.keyframes=c;this.preStyleProps=d;this.postStyleProps=e;this._stretchStartingKeyframe=g;this.timings={duration:f.duration,delay:f.delay,easing:f.easing}};
Y(Y0c,pI);Y0c.prototype.containsAnimation=function(){return this.keyframes.length>1};
Y0c.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,g=new Map(a[0]);g.set("offset",0);b.push(g);g=new Map(a[0]);g.set("offset",Math.round(f*100)/100);b.push(g);f=a.length-1;for(g=1;g<=f;g++){var k=new Map(a[g]),l=k.get("offset");k.set("offset",Math.round((c+l*d)/e*100)/100);b.push(k)}d=e;c=0;e="";a=b}return qHa(this.element,a,this.preStyleProps,this.postStyleProps,d,c,e,!0)};var e1c={},xHa=function(a,b,c){this._triggerName=a;this.ast=b;this._stateStyles=c};xHa.prototype.match=function(a,b,c,d){return vHa(this.ast.matchers,a,b,c,d)};xHa.prototype.buildStyles=function(a,b,c){var d=this._stateStyles.get("*");a!==void 0&&(d=this._stateStyles.get(a==null?void 0:a.toString())||d);return d?d.buildStyles(b,c):new Map};
xHa.prototype.build=function(a,b,c,d,e,f,g,k,l,r){var w=[],x=this.ast.options&&this.ast.options.params||e1c;g=this.buildStyles(c,g&&g.params||e1c,w);var C=k&&k.params||e1c;k=this.buildStyles(d,C,w);var H=new Set,J=new Map,O=new Map,R=d==="void",V;x={params:wHa(C,x),delay:(V=this.ast.options)==null?void 0:V.delay};a=r?[]:sHa(a,b,this.ast.animation,e,f,g,k,x,l,w);var ca=0;a.forEach(function(na){ca=Math.max(na.duration+na.delay,ca)});if(w.length)return uHa(b,this._triggerName,c,d,R,g,k,[],[],J,O,ca,
w);a.forEach(function(na){var ua=na.element,ia=Ql(J,ua,new Set);na.preStyleProps.forEach(function(ha){return ia.add(ha)});var Ga=Ql(O,ua,new Set);na.postStyleProps.forEach(function(ha){return Ga.add(ha)});ua!==b&&H.add(ua)});return uHa(b,this._triggerName,c,d,R,g,k,a,[].concat(q(H.values())),J,O,ca)};var f1c=function(a,b){this.styles=a;this.defaultParams=b};
f1c.prototype.buildStyles=function(a,b){var c=new Map,d=wHa(a,this.defaultParams);this.styles.styles.forEach(function(e){typeof e!=="string"&&e.forEach(function(f,g){f&&(f=UGa(f,d,b));var k=PGa(g);f=ZGa(k,f,b);c.set(g,f)})});return c};var g1c=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 f1c(e.style,e.options&&e.options.params||{}))});zHa(this.states,"true","1");zHa(this.states,"false","0");b.transitions.forEach(function(e){d.transitionFactories.push(new xHa(a,e,d.states))});this.fallbackTransition=yHa(a,this.states)},h1c=function(a,b,c,d,e){return a.transitionFactories.find(function(f){return f.match(b,c,
d,e)})||null};var i1c=new lI,j1c=function(a,b,c){this.bodyNode=a;this._driver=b;this._normalizer=c;this._animations=new Map;this._playersById=new Map;this.players=[]};h=j1c.prototype;h.register=function(a,b){var c=[];b=(new T0c(this._driver)).build(b,c,[]);if(c.length)throw new Sc(3503,!1);this._animations.set(a,b)};h._buildPlayer=function(a,b,c){var d=a.element;b=$Ga(a.keyframes,b,c);return this._driver.animate(d,b,a.duration,a.delay,a.easing,[],!0)};
h.create=function(a,b,c){var d=this;c=c===void 0?{}:c;var e=[],f=this._animations.get(a),g=new Map;f?(b=sHa(this._driver,b,f,"ng-enter","ng-leave",new Map,new Map,c,i1c,e),b.forEach(function(k){var l=Ql(g,k.element,new Map);k.postStyleProps.forEach(function(r){return l.set(r,null)})})):(e.push(new Sc(3300,!1)),b=[]);if(e.length)throw new Sc(3504,!1);g.forEach(function(k,l){k.forEach(function(r,w){k.set(w,WGa(l,w))})});e=b.map(function(k){var l=g.get(k.element);return d._buildPlayer(k,new Map,l)});
e=Pl(e);this._playersById.set(a,e);e.onDestroy(function(){return d.destroy(a)});this.players.push(e);return e};h.destroy=function(a){var b=this._getPlayer(a);b.destroy();this._playersById.delete(a);a=this.players.indexOf(b);a>=0&&this.players.splice(a,1)};h._getPlayer=function(a){a=this._playersById.get(a);if(!a)throw new Sc(3301,!1);return a};h.listen=function(a,b,c,d){b=cHa(b,"","","");bHa(this._getPlayer(a),c,b,d);return function(){}};
h.command=function(a,b,c,d){if(c=="register")this.register(a,d[0]);else if(c=="create")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 k1c=[],l1c={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},CHa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},m1c=function(a,b){this.namespaceId=b===void 0?"":b;var c=(b=a&&a.hasOwnProperty("value"))?a.value:a;this.value=c!=null?c:null;b?(a=Object.assign({},a),this.options=(delete a.value,a)):this.options={};this.options.params||(this.options.params={})},n1c=function(a,b){var c=b.params;if(c){var d=a.options.params;
Object.keys(c).forEach(function(e){d[e]==null&&(d[e]=c[e])})}};da.Object.defineProperties(m1c.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});var o1c=new m1c("void"),qI=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;Sl(b,this._hostClassName)};h=qI.prototype;
h.listen=function(a,b,c,d){var e=this;if(!this._triggers.has(b))throw new Sc(3302,!1);if(c==null||c.length==0)throw new Sc(3303,!1);if(c!="start"&&c!="done")throw new Sc(3400,!1);var f=Ql(this._elementListeners,a,[]),g={name:b,phase:c,callback:d};f.push(g);var k=Ql(this._engine.statesByElement,a,new Map);k.has(b)||(Sl(a,"ng-trigger"),Sl(a,"ng-trigger-"+b),k.set(b,o1c));return function(){p1c(e._engine,function(){var l=f.indexOf(g);l>=0&&f.splice(l,1);e._triggers.has(b)||k.delete(b)})}};
h.register=function(a,b){if(this._triggers.has(a))return!1;this._triggers.set(a,b);return!0};h._getTrigger=function(a){a=this._triggers.get(a);if(!a)throw new Sc(3401,!1);return a};
h.trigger=function(a,b,c,d){var e=this;d=d===void 0?!0:d;var f=this._getTrigger(b),g=new q1c(this.id,b,a),k=this._engine.statesByElement.get(a);k||(Sl(a,"ng-trigger"),Sl(a,"ng-trigger-"+b),this._engine.statesByElement.set(a,k=new Map));var l=k.get(b),r=new m1c(c,this.id);c&&c.hasOwnProperty("value")||!l||n1c(r,l.options);k.set(b,r);l||(l=o1c);if(r.value!=="void"&&l.value===r.value){if(!JHa(l.params,r.params)){d=[];var w=f.fallbackTransition.buildStyles(l.value,l.params,d),x=f.fallbackTransition.buildStyles(r.value,
r.params,d);d.length?this._engine.reportError(d):p1c(this._engine,function(){Ml(a,w);Ll(a,x)})}}else{c=Ql(this._engine.playersByElement,a,[]);c.forEach(function(H){H.namespaceId==e.id&&H.triggerName==b&&H.queued&&H.destroy()});k=h1c(f,l.value,r.value,a,r.params);var C=!1;if(!k){if(!d)return;k=f.fallbackTransition;C=!0}this._engine.totalQueuedPlayers++;this._queue.push({element:a,triggerName:b,transition:k,fromState:l,toState:r,player:g,isFallbackTransition:C});C||(Sl(a,"ng-animate-queued"),g.onStart(function(){Tl(a,
"ng-animate-queued")}));g.onDone(function(){var H=e.players.indexOf(g);H>=0&&e.players.splice(H,1);if(H=e._engine.playersByElement.get(a)){var J=H.indexOf(g);J>=0&&H.splice(J,1)}});this.players.push(g);c.push(g);return g}};h.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 r1c=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))};
qI.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=s1c(c._engine,e);f.size?f.forEach(function(g){return t1c(g,e,b,!1,!0)}):r1c(c,e)}});this._engine.afterFlushAnimationsDone(function(){return d.forEach(function(e){return r1c(c,e)})})};
var t1c=function(a,b,c,d,e){var f=a._engine.statesByElement.get(b),g=new Map;if(f){var k=[];f.forEach(function(l,r){g.set(r,l.value);a._triggers.has(r)&&(l=a.trigger(b,r,"void",e))&&k.push(l)});if(k.length){u1c(a._engine,a.id,b,!0,c,g);if(d)Pl(k).onDone(function(){return FHa(a._engine,b)});return!0}}return!1},v1c=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 g=a._triggers.get(f).fallbackTransition,
k=d.get(f)||o1c,l=new m1c("void"),r=new q1c(a.id,f,b);a._engine.totalQueuedPlayers++;a._queue.push({element:b,triggerName:f,transition:g,fromState:k,toState:l,player:r,isFallbackTransition:!0})}})}};
qI.prototype.removeNode=function(a,b){var c=this,d=this._engine;a.childElementCount&&this._signalRemovalForInnerTriggers(a,b);if(!t1c(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}}v1c(this,a);e?u1c(d,this.id,a,!1,b):(e=a.__ng_removed,e&&e!==l1c||(p1c(d,function(){return r1c(c,a)}),w1c(d,a),d._onRemovalComplete(a,b)))}};
qI.prototype.insertNode=function(a){Sl(a,this._hostClassName)};
var x1c=function(a,b){var c=[];a._queue.forEach(function(d){var e=d.player;if(!e.destroyed){var f=d.element,g=a._elementListeners.get(f);g&&g.forEach(function(k){if(k.name==d.triggerName){var l=cHa(f,d.triggerName,d.fromState.value,d.toState.value);l._data=b;bHa(d.player,k.phase,l,k.callback)}});e.markedForDestroy?p1c(a._engine,function(){e.destroy()}):c.push(d)}});a._queue=[];return c.sort(function(d,e){var f=d.transition.ast.depCount,g=e.transition.ast.depCount;return f==0||g==0?f-g:gHa(d.element,
e.element)?1:-1})};qI.prototype.destroy=function(a){this.players.forEach(function(b){return b.destroy()});this._signalRemovalForInnerTriggers(this.hostElement,a)};
var rI=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(){}};
h=rI.prototype;h._onRemovalComplete=function(a,b){this.onRemovalComplete(a,b)};h._balanceNamespaceList=function(a,b){var c=this._namespaceList,d=this.namespacesByHostElement;if(c.length-1>=0){for(var e=!1,f=this.driver.getParentElement(b);f;){var g=d.get(f);if(g){e=c.indexOf(g);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};
h.register=function(a,b){var c=this._namespaceLookup[a];c||(c=new qI(a,b,this),this.bodyNode&&gHa(this.bodyNode,b)?this._balanceNamespaceList(c,b):(this.newHostElements.set(b,c),this.collectedEnterElements.push(b)),c=this._namespaceLookup[a]=c);return c};h.registerTrigger=function(a,b,c){(a=this._namespaceLookup[a])&&a.register(b,c)&&this.totalAnimations++};
h.destroy=function(a,b){var c=this;a&&(p1c(this,function(){}),this.afterFlushAnimationsDone(function(){var d=c._fetchNamespace(a);c.namespacesByHostElement.delete(d.hostElement);var e=c._namespaceList.indexOf(d);e>=0&&c._namespaceList.splice(e,1);d.destroy(b);delete c._namespaceLookup[a]}))};h._fetchNamespace=function(a){return this._namespaceLookup[a]};
var s1c=function(a,b){var c=new Set;if(b=a.statesByElement.get(b)){b=m(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};rI.prototype.trigger=function(a,b,c,d){return AHa(b)&&(a=this._fetchNamespace(a))?(a.trigger(b,c,d),!0):!1};
rI.prototype.insertNode=function(a,b,c,d){if(AHa(b)){var e=b.__ng_removed;e&&e.setForRemoval&&(e.setForRemoval=!1,e.setForMove=!0,e=this.collectedLeaveElements.indexOf(b),e>=0&&this.collectedLeaveElements.splice(e,1));a&&(a=this._fetchNamespace(a))&&a.insertNode(b,c);d&&this.collectedEnterElements.push(b)}};var y1c=function(a,b,c){c?a.disabledNodes.has(b)||(a.disabledNodes.add(b),Sl(b,"ng-animate-disabled")):a.disabledNodes.has(b)&&(a.disabledNodes.delete(b),Tl(b,"ng-animate-disabled"))};
rI.prototype.removeNode=function(a,b,c){if(AHa(b)){var d=a?this._fetchNamespace(a):null;d?d.removeNode(b,c):u1c(this,a,b,!1,c);(d=this.namespacesByHostElement.get(b))&&d.id!==a&&d.removeNode(b,c)}else this._onRemovalComplete(b,c)};var u1c=function(a,b,c,d,e,f){a.collectedLeaveElements.push(c);c.__ng_removed={namespaceId:b,setForRemoval:e,hasAnimation:d,removedBeforeQueried:!1,previousTriggersValues:f}};rI.prototype.listen=function(a,b,c,d,e){return AHa(b)?this._fetchNamespace(a).listen(b,c,d,e):function(){}};
rI.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 w1c=function(a,b){var c=a.driver.query(b,".ng-trigger",!0);c.forEach(function(d){return z1c(a,d)});a.playersByQueriedElement.size!=0&&(c=a.driver.query(b,".ng-animating",!0),c.forEach(function(d){return A1c(a,d)}))},z1c=function(a,b){(a=a.playersByElement.get(b))&&a.forEach(function(c){c.queued?c.markedForDestroy=!0:c.destroy()})},A1c=function(a,b){(a=a.playersByQueriedElement.get(b))&&a.forEach(function(c){return c.finish()})},FHa=function(a,b){var c=b.__ng_removed;if(c&&c.setForRemoval){b.__ng_removed=
l1c;if(c.namespaceId){w1c(a,b);var d=a._fetchNamespace(c.namespaceId);d&&r1c(d,b)}a._onRemovalComplete(b,c.setForRemoval)}var e;((e=b.classList)==null?0:e.contains("ng-animate-disabled"))&&y1c(a,b,!1);a.driver.query(b,".ng-animate-disabled",!0).forEach(function(f){y1c(a,f,!1)})};
rI.prototype.flush=function(a){var b=this;a=a===void 0?-1:a;var c=[];this.newHostElements.size&&(this.newHostElements.forEach(function(f,g){return b._balanceNamespaceList(f,g)}),this.newHostElements.clear());if(this.totalAnimations&&this.collectedEnterElements.length)for(var d=0;d<this.collectedEnterElements.length;d++)Sl(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++)FHa(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)Pl(c).onDone(function(){e.forEach(function(f){return f()})});else e.forEach(function(f){return f()})}};
rI.prototype.reportError=function(){throw new Sc(3402,!1);};
rI.prototype._flushAnimations=function(a,b){var c=this,d=new lI,e=[],f=new Map,g=[],k=new Map,l=new Map,r=new Map,w=new Set;this.disabledNodes.forEach(function(ib){w.add(ib);ib=c.driver.query(ib,".ng-animate-queued",!0);for(var $b=0;$b<ib.length;$b++)w.add(ib[$b])});var x=this.bodyNode,C=Array.from(this.statesByElement.keys()),H=EHa(C,this.collectedEnterElements),J=new Map,O=0;H.forEach(function(ib,$b){var rc="ng-enter"+O++;J.set($b,rc);ib.forEach(function(Ec){return Sl(Ec,rc)})});for(var R=[],V=
new Set,ca=new Set,na=0;na<this.collectedLeaveElements.length;na++){var ua=this.collectedLeaveElements[na],ia=ua.__ng_removed;ia&&ia.setForRemoval&&(R.push(ua),V.add(ua),ia.hasAnimation?this.driver.query(ua,".ng-star-inserted",!0).forEach(function(ib){return V.add(ib)}):ca.add(ua))}var Ga=new Map,ha=EHa(C,Array.from(V));ha.forEach(function(ib,$b){var rc="ng-leave"+O++;Ga.set($b,rc);ib.forEach(function(Ec){return Sl(Ec,rc)})});a.push(function(){H.forEach(function(ib,$b){var rc=J.get($b);ib.forEach(function(Ec){return Tl(Ec,
rc)})});ha.forEach(function(ib,$b){var rc=Ga.get($b);ib.forEach(function(Ec){return Tl(Ec,rc)})});R.forEach(function(ib){FHa(c,ib)})});var sa=[],xa=[];for(a=this._namespaceList.length-1;a>=0;a--)x1c(this._namespaceList[a],b).forEach(function(ib){var $b=ib.player,rc=ib.element;sa.push($b);if(c.collectedEnterElements.length){var Ec=rc.__ng_removed;if(Ec&&Ec.setForMove){if(Ec.previousTriggersValues&&Ec.previousTriggersValues.has(ib.triggerName)){Ec=Ec.previousTriggersValues.get(ib.triggerName);var Rb=
c.statesByElement.get(ib.element);if(Rb&&Rb.has(ib.triggerName)){var Bc=Rb.get(ib.triggerName);Bc.value=Ec;Rb.set(ib.triggerName,Bc)}}$b.destroy();return}}Ec=!x||!gHa(x,rc);Rb=Ga.get(rc);Bc=J.get(rc);var Rc=c._buildInstruction(ib,d,Bc,Rb,Ec);if(Rc.errors&&Rc.errors.length)xa.push(Rc);else if(Ec)$b.onStart(function(){return Ml(rc,Rc.fromStyles)}),$b.onDestroy(function(){return Ll(rc,Rc.toStyles)}),e.push($b);else if(ib.isFallbackTransition)$b.onStart(function(){return Ml(rc,Rc.fromStyles)}),$b.onDestroy(function(){return Ll(rc,
Rc.toStyles)}),e.push($b);else{var Cd=[];Rc.timelines.forEach(function(Yc){Yc.stretchStartingKeyframe=!0;c.disabledNodes.has(Yc.element)||Cd.push(Yc)});Rc.timelines=Cd;d.append(rc,Rc.timelines);g.push({instruction:Rc,player:$b,element:rc});Rc.queriedElements.forEach(function(Yc){return Ql(k,Yc,[]).push($b)});Rc.preStyleProps.forEach(function(Yc,je){if(Yc.size){var bf=l.get(je);bf||l.set(je,bf=new Set);Yc.forEach(function(Ue,fg){return bf.add(fg)})}});Rc.postStyleProps.forEach(function(Yc,je){var bf=
r.get(je);bf||r.set(je,bf=new Set);Yc.forEach(function(Ue,fg){return bf.add(fg)})})}});if(xa.length){var Qa=[];xa.forEach(function(){Qa.push(new Sc(3505,!1))});sa.forEach(function(ib){return ib.destroy()});this.reportError(Qa)}var bb=new Map,ub=new Map;g.forEach(function(ib){var $b=ib.element;d.has($b)&&(ub.set($b,$b),c._beforeAnimationBuild(ib.player.namespaceId,ib.instruction,bb))});e.forEach(function(ib){var $b=ib.element;c._getPreviousPlayers($b,!1,ib.namespaceId,ib.triggerName,null).forEach(function(rc){Ql(bb,
$b,[]).push(rc);rc.destroy()})});var Wb=R.filter(function(ib){return KHa(ib,l,r)}),lc=new Map;DHa(lc,ca,r).forEach(function(ib){KHa(ib,l,r)&&Wb.push(ib)});var fc=new Map;H.forEach(function(ib){DHa(fc,new Set(ib),l)});Wb.forEach(function(ib){var $b=lc.get(ib),rc=fc.get(ib),Ec,Rb;lc.set(ib,new Map([].concat(q((Ec=$b==null?void 0:$b.entries())!=null?Ec:[]),q((Rb=rc==null?void 0:rc.entries())!=null?Rb:[]))))});var pc=[],rb=[],Ob={};g.forEach(function(ib){var $b=ib.element,rc=ib.player,Ec=ib.instruction;
if(d.has($b))if(w.has($b))rc.onDestroy(function(){return Ll($b,Ec.toStyles)}),rc.disabled=!0,rc.totalTime=Ec.totalTime,e.push(rc);else{var Rb=Ob;if(ub.size>1){ib=$b;for(var Bc=[];ib=ib.parentNode;){var Rc=ub.get(ib);if(Rc){Rb=Rc;break}Bc.push(ib)}Bc.forEach(function(Cd){return ub.set(Cd,Rb)})}ib=c._buildAnimation(rc.namespaceId,Ec,bb,f,fc,lc);B1c(rc,ib);Rb===Ob?pc.push(rc):((ib=c.playersByElement.get(Rb))&&ib.length&&(rc.parentPlayer=Pl(ib)),e.push(rc))}else Ml($b,Ec.fromStyles),rc.onDestroy(function(){return Ll($b,
Ec.toStyles)}),rb.push(rc),w.has($b)&&e.push(rc)});rb.forEach(function(ib){var $b=f.get(ib.element);$b&&$b.length&&($b=Pl($b),B1c(ib,$b))});e.forEach(function(ib){ib.parentPlayer?C1c(ib,ib.parentPlayer):ib.destroy()});for(b=0;b<R.length;b++)if(ca=R[b],a=ca.__ng_removed,Tl(ca,"ng-leave"),!a||!a.hasAnimation){a=[];if(k.size)for((C=k.get(ca))&&C.length&&a.push.apply(a,q(C)),C=this.driver.query(ca,".ng-animating",!0),na=0;na<C.length;na++)(ua=k.get(C[na]))&&ua.length&&a.push.apply(a,q(ua));a=a.filter(function(ib){return!ib.destroyed});
a.length?GHa(this,ca,a):FHa(this,ca)}R.length=0;pc.forEach(function(ib){c.players.push(ib);ib.onDone(function(){ib.destroy();var $b=c.players.indexOf(ib);c.players.splice($b,1)});ib.play()});return pc};var p1c=function(a,b){a._flushFns.push(b)};h=rI.prototype;h.afterFlushAnimationsDone=function(a){this._whenQuietFns.push(a)};
h._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 g=!e||e=="void";a.forEach(function(k){k.queued||(g||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};
h._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=m(b.timelines),g=f.next(),k={};!g.done;k={players$jscomp$10:void 0},g=f.next()){g=g.value.element;var l=g!==e;k.players$jscomp$10=Ql(c,g,[]);this._getPreviousPlayers(g,l,a,d,b.toState).forEach(function(r){return function(w){var x=w._player;x.beforeDestroy&&x.beforeDestroy();w.destroy();r.players$jscomp$10.push(w)}}(k))}Ml(e,b.fromStyles)};
h._buildAnimation=function(a,b,c,d,e,f){var g=this,k=b.triggerName,l=b.element,r=[],w=new Set,x=new Set,C=b.timelines.map(function(J){var O=J.element;w.add(O);var R=O.__ng_removed;if(R&&R.removedBeforeQueried)return new Ol(J.duration,J.delay);R=O!==l;var V=IHa((c.get(O)||k1c).map(function(ua){return ua._player})).filter(function(ua){return ua.element?ua.element===O:!1}),ca=e.get(O),na=f.get(O);ca=$Ga(J.keyframes,ca,na);V=g._buildPlayer(J,ca,V);J.subTimeline&&d&&x.add(O);R&&(J=new q1c(a,k,O),B1c(J,
V),r.push(J));return V});r.forEach(function(J){Ql(g.playersByQueriedElement,J.element,[]).push(J);J.onDone(function(){var O=g.playersByQueriedElement,R=J.element,V=O.get(R);if(V){if(V.length){var ca=V.indexOf(J);V.splice(ca,1)}V.length==0&&O.delete(R)}return V})});w.forEach(function(J){return Sl(J,"ng-animating")});var H=Pl(C);H.onDestroy(function(){w.forEach(function(J){return Tl(J,"ng-animating")});Ll(l,b.toStyles)});x.forEach(function(J){Ql(d,J,[]).push(H)});return H};
h._buildPlayer=function(a,b,c){return b.length>0?this.driver.animate(a.element,b,a.duration,a.delay,a.easing,c):new Ol(a.duration,a.delay)};
var q1c=function(a,b,c){this.namespaceId=a;this.triggerName=b;this.element=c;this._player=new Ol;this._containsRealPlayer=!1;this._queuedCallbacks=new Map;this.destroyed=!1;this.parentPlayer=null;this.disabled=this.markedForDestroy=!1;this.queued=!0;this.totalTime=0},B1c=function(a,b){a._containsRealPlayer||(a._player=b,a._queuedCallbacks.forEach(function(c,d){c.forEach(function(e){return bHa(b,d,void 0,e)})}),a._queuedCallbacks.clear(),a._containsRealPlayer=!0,a.totalTime=b.totalTime,a.queued=!1)},
C1c=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()})};h=q1c.prototype;h._queueEvent=function(a,b){Ql(this._queuedCallbacks,a,[]).push(b)};h.onDone=function(a){this.queued&&this._queueEvent("done",a);this._player.onDone(a)};h.onStart=function(a){this.queued&&this._queueEvent("start",a);this._player.onStart(a)};
h.onDestroy=function(a){this.queued&&this._queueEvent("destroy",a);this._player.onDestroy(a)};h.init=function(){this._player.init()};h.hasStarted=function(){return this.queued?!1:this._player.hasStarted()};h.play=function(){!this.queued&&this._player.play()};h.pause=function(){!this.queued&&this._player.pause()};h.restart=function(){!this.queued&&this._player.restart()};h.finish=function(){this._player.finish()};h.destroy=function(){this.destroyed=!0;this._player.destroy()};
h.reset=function(){!this.queued&&this._player.reset()};h.setPosition=function(a){this.queued||this._player.setPosition(a)};h.getPosition=function(){return this.queued?0:this._player.getPosition()};h.triggerCallback=function(a){var b=this._player;b.triggerCallback&&b.triggerCallback(a)};var sI=function(a,b,c){var d=this;this._driver=b;this._normalizer=c;this._triggerCache={};this.onRemovalComplete=function(){};this._transitionEngine=new rI(a.body,b,c);this._timelineEngine=new j1c(a.body,b,c);this._transitionEngine.onRemovalComplete=function(e,f){return d.onRemovalComplete(e,f)}};h=sI.prototype;
h.registerTrigger=function(a,b,c,d,e){a=a+"-"+d;c=this._triggerCache[a];if(!c){c=[];e=(new T0c(this._driver)).build(e,c,[]);if(c.length)throw new Sc(3404,!1);c=new g1c(d,e,this._normalizer);this._triggerCache[a]=c}this._transitionEngine.registerTrigger(b,d,c)};h.register=function(a,b){this._transitionEngine.register(a,b)};h.destroy=function(a,b){this._transitionEngine.destroy(a,b)};h.disableAnimations=function(a,b){y1c(this._transitionEngine,a,b)};
h.process=function(a,b,c,d){c.charAt(0)=="@"?(c=m(dHa(c)),a=c.next().value,c=c.next().value,this._timelineEngine.command(a,b,c,d)):this._transitionEngine.trigger(a,b,c,d)};h.listen=function(a,b,c,d,e){return c.charAt(0)=="@"?(c=m(dHa(c)),a=c.next().value,c=c.next().value,this._timelineEngine.listen(a,b,c,e)):this._transitionEngine.listen(a,b,c,d,e)};h.flush=function(a){this._transitionEngine.flush(a===void 0?-1:a)};h.afterFlushAnimationsDone=function(a){this._transitionEngine.afterFlushAnimationsDone(a)};
da.Object.defineProperties(sI.prototype,{players:{configurable:!0,enumerable:!0,get:function(){return[].concat(q(this._transitionEngine.players),q(this._timelineEngine.players))}}});var PHa=function(a,b,c){this._element=a;this._startStyles=b;this._endStyles=c;this._state=0;var d=D1c.get(a);d||D1c.set(a,d=new Map);this._initialStyles=d};PHa.prototype.start=function(){this._state<1&&(this._startStyles&&Ll(this._element,this._startStyles,this._initialStyles),this._state=1)};PHa.prototype.finish=function(){this.start();this._state<2&&(Ll(this._element,this._initialStyles),this._endStyles&&(Ll(this._element,this._endStyles),this._endStyles=null),this._state=1)};
PHa.prototype.destroy=function(){this.finish();this._state<3&&(D1c.delete(this._element),this._startStyles&&(Ml(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ml(this._element,this._endStyles),this._endStyles=null),Ll(this._element,this._initialStyles),this._state=3)};var D1c=new WeakMap;var E1c=function(a,b,c,d){this.element=a;this.keyframes=b;this.options=c;this._specialStyles=d;this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._destroyed=this._started=this._finished=this._initialized=!1;this._originalOnDoneFns=[];this._originalOnStartFns=[];this.domPlayer=null;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};h=E1c.prototype;
h._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};h.init=function(){this._buildPlayer()&&this._preparePlayerBeforeStart()};
h._buildPlayer=function(){var a=this;if(this._initialized)return this.domPlayer;this._initialized=!0;var b=this.keyframes,c=this._triggerWebAnimation(this.element,b,this.options);if(!c)return this._onFinish(),null;this.domPlayer=c;this._finalKeyframe=b.length?b[b.length-1]:new Map;var d=function(){return a._onFinish()};c.addEventListener("finish",d);this.onDestroy(function(){c.removeEventListener("finish",d)});return c};
h._preparePlayerBeforeStart=function(){if(this._delay)this._resetDomPlayerState();else{var a;(a=this.domPlayer)==null||a.pause()}};h._convertKeyframesToObject=function(a){var b=[];a.forEach(function(c){b.push(Object.fromEntries(c))});return b};h._triggerWebAnimation=function(a,b,c){b=this._convertKeyframesToObject(b);try{return a.animate(b,c)}catch(d){return null}};h.onStart=function(a){this._originalOnStartFns.push(a);this._onStartFns.push(a)};
h.onDone=function(a){this._originalOnDoneFns.push(a);this._onDoneFns.push(a)};h.onDestroy=function(a){this._onDestroyFns.push(a)};h.play=function(){var a=this._buildPlayer();a&&(this.hasStarted()||(this._onStartFns.forEach(function(b){return b()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),a.play())};h.pause=function(){this.init();var a;(a=this.domPlayer)==null||a.pause()};
h.finish=function(){this.init();this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())};h.reset=function(){this._resetDomPlayerState();this._started=this._finished=this._destroyed=!1;this._onStartFns=this._originalOnStartFns;this._onDoneFns=this._originalOnDoneFns};h._resetDomPlayerState=function(){var a;(a=this.domPlayer)==null||a.cancel()};h.restart=function(){this.reset();this.play()};h.hasStarted=function(){return this._started};
h.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=[])};h.setPosition=function(a){this.domPlayer||this.init();this.domPlayer&&(this.domPlayer.currentTime=a*this.time)};h.getPosition=function(){if(!this.domPlayer)return this._initialized?1:0;var a;return+((a=this.domPlayer.currentTime)!=null?a:0)/this.time};
h.beforeDestroy=function(){var a=this,b=new Map;this.hasStarted()&&this._finalKeyframe.forEach(function(c,d){d!=="offset"&&b.set(d,a._finished?c:WGa(a.element,d))});this.currentSnapshot=b};h.triggerCallback=function(a){a=a==="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};da.Object.defineProperties(E1c.prototype,{totalTime:{configurable:!0,enumerable:!0,get:function(){return this._delay+this._duration}}});var F1c=function(){};F1c.prototype.getParentElement=function(a){return fHa(a)};F1c.prototype.query=function(a,b,c){a=c?Array.from(a.querySelectorAll(b)):(a=a.querySelector(b))?[a]:[];return a};
F1c.prototype.animate=function(a,b,c,d,e,f){f=f===void 0?[]:f;var g={duration:c,delay:d,fill:d==0?"both":"forwards"};e&&(g.easing=e);var k=new Map;e=f.filter(function(r){return r instanceof E1c});c!==0&&d!==0||e.forEach(function(r){r.currentSnapshot.forEach(function(w,x){return k.set(x,w)})});var l=OGa(b).map(function(r){return new Map(r)});l=XGa(a,l,k);b=QHa(a,l);return new E1c(a,l,g,b)};var G1c=function(a,b,c,d){this.namespaceId=a;this.delegate=b;this.engine=c;this._onDestroy=d};h=G1c.prototype;h.destroyNode=function(a){var b,c;(c=(b=this.delegate).destroyNode)==null||c.call(b,a)};h.destroy=function(){var a=this;this.engine.destroy(this.namespaceId,this.delegate);this.engine.afterFlushAnimationsDone(function(){queueMicrotask(function(){a.delegate.destroy()})});var b;(b=this._onDestroy)==null||b.call(this)};h.createElement=function(a,b){return this.delegate.createElement(a,b)};
h.createComment=function(a){return this.delegate.createComment(a)};h.createText=function(a){return this.delegate.createText(a)};h.appendChild=function(a,b){this.delegate.appendChild(a,b);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,!1)};h.insertBefore=function(a,b,c,d){d=d===void 0?!0:d;this.delegate.insertBefore(a,b,c);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,d)};
h.removeChild=function(a,b,c,d){d?this.delegate.removeChild(a,b,c,d):this.parentNode(b)&&this.engine._transitionEngine.removeNode(this.namespaceId,b,this.delegate)};h.selectRootElement=function(a,b){return this.delegate.selectRootElement(a,b)};h.parentNode=function(a){return this.delegate.parentNode(a)};h.nextSibling=function(a){return this.delegate.nextSibling(a)};h.setAttribute=function(a,b,c,d){this.delegate.setAttribute(a,b,c,d)};
h.removeAttribute=function(a,b,c){this.delegate.removeAttribute(a,b,c)};h.addClass=function(a,b){this.delegate.addClass(a,b)};h.removeClass=function(a,b){this.delegate.removeClass(a,b)};h.setStyle=function(a,b,c,d){this.delegate.setStyle(a,b,c,d)};h.removeStyle=function(a,b,c){this.delegate.removeStyle(a,b,c)};h.setProperty=function(a,b,c){b.charAt(0)=="@"&&b=="@.disabled"?this.disableAnimations(a,!!c):this.delegate.setProperty(a,b,c)};h.setValue=function(a,b){this.delegate.setValue(a,b)};
h.listen=function(a,b,c,d){return this.delegate.listen(a,b,c,d)};h.disableAnimations=function(a,b){this.engine.disableAnimations(a,b)};da.Object.defineProperties(G1c.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.delegate.data}}});var H1c=function(a,b,c,d,e){G1c.call(this,b,c,d,e);this.factory=a;this.namespaceId=b};Y(H1c,G1c);
H1c.prototype.setProperty=function(a,b,c){b.charAt(0)=="@"?b.charAt(1)=="."&&b=="@.disabled"?this.disableAnimations(a,c===void 0?!0:!!c):this.engine.process(this.namespaceId,a,b.slice(1),c):this.delegate.setProperty(a,b,c)};
H1c.prototype.listen=function(a,b,c,d){var e=this;return b.charAt(0)=="@"?(a=RHa(a),b=b.slice(1),d="",b.charAt(0)!="@"&&(d=m(SHa(b)),b=d.next().value,d=d.next().value),this.engine.listen(this.namespaceId,a,b,d,function(f){I1c(e.factory,f._data||-1,c,f)})):this.delegate.listen(a,b,c,d)};var J1c=function(){var a=p(qy),b=p(sI),c=p(Rg);this.delegate=a;this.engine=b;this._zone=c;this._currentId=0;this._microtaskId=1;this._animationCallbacksBuffer=[];this._rendererCache=new Map;this._cdRecurDepth=0;b.onRemovalComplete=function(d,e){e==null||e.removeChild(null,d)}};
J1c.prototype.createRenderer=function(a,b){var c=this,d=this.delegate.createRenderer(a,b),e;if(!a||!(b==null?0:(e=b.data)==null?0:e.animation)){var f=this._rendererCache;b=f.get(d);b||(b=new G1c("",d,this.engine,function(){return f.delete(d)}),f.set(d,b));return b}var g=b.id,k=b.id+"-"+this._currentId;this._currentId++;this.engine.register(k,a);var l=function(r){Array.isArray(r)?r.forEach(l):c.engine.registerTrigger(g,k,a,r.name,r)};b.data.animation.forEach(l);return new H1c(this,k,d,this.engine)};
J1c.prototype.begin=function(){this._cdRecurDepth++;this.delegate.begin&&this.delegate.begin()};J1c.prototype._scheduleCountTask=function(){var a=this;queueMicrotask(function(){a._microtaskId++})};
var I1c=function(a,b,c,d){if(b>=0&&b<a._microtaskId)a._zone.run(function(){return c(d)});else{var e=a._animationCallbacksBuffer;e.length==0&&queueMicrotask(function(){a._zone.run(function(){e.forEach(function(f){var g=m(f);f=g.next().value;g=g.next().value;f(g)});a._animationCallbacksBuffer=[]})});e.push([c,d])}};
J1c.prototype.end=function(){var a=this;this._cdRecurDepth--;this._cdRecurDepth==0&&this._zone.runOutsideAngular(function(){a._scheduleCountTask();a.engine.flush(a._microtaskId)});this.delegate.end&&this.delegate.end()};var tI=function(a,b,c){sI.call(this,a,b,c)};Y(tI,sI);tI.prototype.ngOnDestroy=function(){this.flush()};tI.\u0275fac=function(a){return new (a||tI)(Xc(Rh),Xc(S0c),Xc(P0c))};tI.\u0275prov=Dc({token:tI,factory:tI.\u0275fac});var K1c=[{provide:P0c,useFactory:function(){return new R0c}},{provide:sI,useClass:tI},{provide:Ye,useFactory:function(){return new J1c}}];q(K1c);var L1c=[{provide:S0c,useFactory:function(){return new F1c}},{provide:ji,useFactory:function(){return"BrowserAnimations"}}].concat(q(K1c));var uI=function(){};uI.\u0275fac=function(a){return new (a||uI)};uI.\u0275mod=$e({type:uI});uI.\u0275inj=Fc({providers:L1c,imports:[Hy]});VHa(function(){});Hh({passive:!0,capture:!0});Hh({passive:!0,capture:!0});THa(function(a){this._elementRef=a},"primary");var M1c=new dd("mat-progress-spinner-default-options",{providedIn:"root",factory:WHa});var N1c=THa(function(a){this._elementRef=a},"primary"),vI=function(a,b,c,d,e,f,g,k,l){var r=N1c.call(this,a)||this;r._document=c;r._nonce=l;r._diameter=100;r._value=0;r._resizeSubscription=Pd.EMPTY;r.mode="determinate";var w=vI._diameters;r._spinnerAnimationLabel=r._getSpinnerAnimationLabel();w.has(c.head)||w.set(c.head,new Set([100]));r._noopAnimations=d==="NoopAnimations"&&!!e&&!e._forceAnimations;a.nativeElement.nodeName.toLowerCase()==="mat-spinner"&&(r.mode="indeterminate");e&&(e.color&&(r.color=
r.defaultColor=e.color),e.diameter&&(r.diameter=e.diameter),e.strokeWidth&&(r.strokeWidth=e.strokeWidth));b.isBrowser&&b.SAFARI&&g&&f&&k&&(r._resizeSubscription=g.change(150).subscribe(function(){r.mode==="indeterminate"&&k.run(function(){return f.markForCheck()})}));return r};Y(vI,N1c);h=vI.prototype;h.ngOnInit=function(){var a=this._elementRef.nativeElement;this._styleRoot=Wqa(a)||this._document.head;this._attachStyleNode();a.classList.add("mat-progress-spinner-indeterminate-animation")};
h.ngOnDestroy=function(){this._resizeSubscription.unsubscribe()};h._getCircleRadius=function(){return(this.diameter-10)/2};h._getViewBox=function(){var a=this._getCircleRadius()*2+this.strokeWidth;return"0 0 "+a+" "+a};h._getStrokeCircumference=function(){return 2*Math.PI*this._getCircleRadius()};h._getStrokeDashOffset=function(){return this.mode==="determinate"?this._getStrokeCircumference()*(100-this._value)/100:null};h._getCircleStrokeWidth=function(){return this.strokeWidth/this.diameter*100};
h._getCircleTransformOrigin=function(a){var b;a=((b=a.currentScale)!=null?b:1)*50;return a+"% "+a+"%"};h._attachStyleNode=function(){var a=this._styleRoot,b=this._diameter,c=vI._diameters,d=c.get(a);if(!d||!d.has(b)){var e=this._document.createElement("style");this._nonce&&(e.nonce=this._nonce);e.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel);e.textContent=this._getAnimationText();a.appendChild(e);d||(d=new Set,c.set(a,d));d.add(b)}};
h._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)};h._getSpinnerAnimationLabel=function(){return this.diameter.toString().replace(".","_")};
da.Object.defineProperties(vI.prototype,{diameter:{configurable:!0,enumerable:!0,get:function(){return this._diameter},set:function(a){this._diameter=Oh(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=Oh(a)}},value:{configurable:!0,enumerable:!0,get:function(){return this.mode==="determinate"?this._value:
0},set:function(a){this._value=Math.max(0,Math.min(100,Oh(a)))}}});vI._diameters=new WeakMap;vI.\u0275fac=function(a){return new (a||vI)(Ve(Hd),Ve(Vh),Ve(Rh,8),Ve(ji,8),Ve(M1c),Ve(Cx),Ve(Qh),Ve(Rg),Ve(Lyc,8))};
vI.\u0275cmp=D({type:vI,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:11,hostBindings:function(a,b){a&2&&(If("aria-valuemin",b.mode==="determinate"?0:null)("aria-valuemax",b.mode==="determinate"?100:null)("aria-valuenow",b.mode==="determinate"?b.value:null)("mode",b.mode)("mat-id-collision",null),vg("width",b.diameter,"px")("height",b.diameter,"px"),wg("_mat-animation-noopable",b._noopAnimations))},
inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],standalone:!1,features:[Ef],decls:4,vars:8,consts:[["svg",""],["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["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&&(yd(),K(0,"svg",1,0),E(2,XHa,1,11,"circle",2)(3,YHa,1,9,"circle",3),L());a&2&&(vg("width",b.diameter,"px")("height",b.diameter,"px"),I("ngSwitch",b.mode==="indeterminate"),If("viewBox",b._getViewBox()),B(2),I("ngSwitchCase",!0),B(),I("ngSwitchCase",!1))},dependencies:[Ox,Px],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}@media(forced-colors: 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 wI=function(a,b){this.elementRef=a;this.renderer=b;this.iconset="common";this.icon="";this.size="small";O1c(this)};wI.prototype.ngOnChanges=function(a){this.icon==="working"?this.iconSpec={kind:"mat-spinner",sizePx:cIa(this.size)}:this.iconset==="material"&&this.icon?this.iconSpec={kind:"mat-icon-font",icon:this.icon}:this.icon?this.iconSpec={kind:"mat-icon",iconset:this.iconset,icon:this.icon,size:this.size}:this.iconSpec=void 0;a.size&&O1c(this)};
var O1c=function(a){var b=a.elementRef.nativeElement;if(b.tagName.toUpperCase()==="FOREIGNOBJECT"){var c=String(cIa(a.size));a.renderer.setAttribute(b,"height",c);a.renderer.setAttribute(b,"width",c)}};da.Object.defineProperties(wI.prototype,{classes:{configurable:!0,enumerable:!0,get:function(){return["ace-icon","ace-icon-size-"+this.size,this.icon?"ace-icon-"+this.icon:""].join(" ")}}});wI.\u0275fac=function(a){return new (a||wI)(Ve(Hd),Ve(ci))};
wI.\u0275cmp=D({type:wI,selectors:[["ace-icon"],["foreignObject","ace-icon",""]],hostVars:2,hostBindings:function(a,b){a&2&&xg(b.classes)},inputs:{iconset:"iconset",icon:"icon",size:"size"},standalone:!1,features:[jx],decls:1,vars:1,consts:function(){return[[4,"ngIf"],[3,"svgIcon"],["color","primary","aria-label","Loading",3,"diameter","strokeWidth"]]},template:function(a,b){a&1&&E(0,bIa,4,3,"ng-container",0);a&2&&I("ngIf",b.iconSpec)},dependencies:[Nx,Jy,vI],styles:[".ace-icon{display:inline-block;line-height:0;vertical-align:middle;margin-top:-2px}.ace-icon svg{forced-color-adjust:auto}.ace-icon.ace-icon-size-small mat-icon{height:18px;width:18px}.ace-icon.ace-icon-size-medium mat-icon{height:24px;width:24px}.ace-icon.ace-icon-size-large mat-icon{height:32px;width:32px}.ace-icon.ace-icon-size-small .material-icons{font-size:18px}.ace-icon.ace-icon-size-medium .material-icons{font-size:24px}.ace-icon.ace-icon-size-large .material-icons{font-size:32px}.ace-icon .mat-icon{overflow:visible}\n"],
encapsulation:2,changeDetection:0});var P1c=rw(["//ssl.gstatic.com/pantheon/images/","/icons-","_v",".svg"]),xI=function(a){this.mdIconRegistry=a},Q1c=function(a,b){var c=Fh(P1c,"common",b,77);a.mdIconRegistry._addSvgIconSetConfig("common-"+b,new VBc(c,null))};xI.\u0275fac=function(a){return new (a||xI)(Xc(Iy))};xI.\u0275prov=Dc({token:xI,factory:xI.\u0275fac,providedIn:"root"});var R1c=["determinateSpinner"],S1c=new dd("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),yI=function(){this._elementRef=p(Hd);this._defaultColor="primary";this._value=0;this._diameter=100;var a=p(S1c),b=wra(),c=this._elementRef.nativeElement;this._noopAnimations=b==="di-disabled"&&!!a&&!a._forceAnimations;this.mode=c.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate";this._noopAnimations||b!=="reduced-motion"||c.classList.add("mat-progress-spinner-reduced-motion");
a&&(a.color&&(this.color=this._defaultColor=a.color),a.diameter&&(this.diameter=a.diameter),a.strokeWidth&&(this.strokeWidth=a.strokeWidth))};h=yI.prototype;h._circleRadius=function(){return(this.diameter-10)/2};h._viewBox=function(){var a=this._circleRadius()*2+this.strokeWidth;return"0 0 "+a+" "+a};h._strokeCircumference=function(){return 2*Math.PI*this._circleRadius()};h._strokeDashOffset=function(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null};
h._circleStrokeWidth=function(){return this.strokeWidth/this.diameter*100};
da.Object.defineProperties(yI.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color||this._defaultColor},set:function(a){this._color=a}},value:{configurable:!0,enumerable:!0,get:function(){return this.mode==="determinate"?this._value:0},set:function(a){this._value=Math.max(0,Math.min(100,a||0))}},diameter:{configurable:!0,enumerable:!0,get:function(){return this._diameter},set:function(a){this._diameter=a||0}},strokeWidth:{configurable:!0,enumerable:!0,get:function(){var a;
return(a=this._strokeWidth)!=null?a:this.diameter/10},set:function(a){this._strokeWidth=a||0}}});yI.\u0275fac=function(a){return new (a||yI)};
yI.\u0275cmp=D({type:yI,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(a,b){a&1&&hg(R1c,5);if(a&2){var c;lg(c=mg())&&(b._determinateCircle=c.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(a,b){a&2&&(If("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",b.mode==="determinate"?b.value:null)("mode",b.mode),xg("mat-"+b.color),vg("width",b.diameter,"px")("height",b.diameter,"px")("--mat-progress-spinner-size",
b.diameter+"px")("--mat-progress-spinner-active-indicator-width",b.diameter+"px"),wg("_mat-animation-noopable",b._noopAnimations)("mdc-circular-progress--indeterminate",b.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ah],diameter:[2,"diameter","diameter",ah],strokeWidth:[2,"strokeWidth","strokeWidth",ah]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],
["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],
["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(a,b){a&1&&(E(0,dIa,2,8,"ng-template",null,0,Mg),K(2,"div",2,1),yd(),K(4,"svg",3),M(5,"circle",4),L()(),zd(),K(6,"div",5)(7,"div",6)(8,"div",7),Vf(9,8),L(),K(10,"div",9),Vf(11,8),L(),K(12,"div",10),Vf(13,8),L()()());a&2&&(a=qg(1),B(4),If("viewBox",b._viewBox()),B(),vg("stroke-dasharray",b._strokeCircumference(),"px")("stroke-dashoffset",b._strokeDashOffset(),
"px")("stroke-width",b._circleStrokeWidth(),"%"),If("r",b._circleRadius()),B(4),I("ngTemplateOutlet",a),B(2),I("ngTemplateOutlet",a),B(2),I("ngTemplateOutlet",a))},dependencies:[Sx],styles:[".mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}\n"],
encapsulation:2,changeDetection:0});var zI=function(){};zI.\u0275fac=function(a){return new (a||zI)};zI.\u0275mod=$e({type:zI});zI.\u0275inj=Fc({imports:[Ky]});var AI=function(){};AI.\u0275fac=function(a){return new (a||AI)};AI.\u0275mod=$e({type:AI});AI.\u0275inj=Fc({imports:[by,Ky]});var BI=function(a){this.iconService=a;Q1c(this.iconService,"small");Q1c(this.iconService,"medium")};BI.\u0275fac=function(a){return new (a||BI)(Xc(xI))};BI.\u0275mod=$e({type:BI});BI.\u0275inj=Fc({imports:[by,Ly,AI]});var T1c=rw(["aria-"]),U1c="ace-labelledby-message-container-goog_"+eIa++,CI=new Map,DI=null,hIa=function(a){var b=[a].concat(q($c.apply(1,arguments)));return function(c,d,e){Ira(b,c,d,e)}}(new Hra(T1c[0].toLowerCase())),EI=function(a){this.document=a};EI.prototype.ngOnDestroy=function(){for(var a=this.document.querySelectorAll("[ace-labelledby-host]"),b=0;b<a.length;b++)V1c(a[b]),a[b].removeAttribute("ace-labelledby-host");DI&&W1c();CI.clear()};
var W1c=function(){DI&&DI.parentNode&&(DI.parentNode.removeChild(DI),DI=null)},V1c=function(a){var b=gIa(a).filter(function(c){return c.indexOf("ace-labelledby-message")!==0});a.setAttribute("aria-labelledby",b.join(" "))},X1c=function(a,b){a=gIa(a);b=(b=CI.get(b))&&b.messageElement.id;return!!b&&a.indexOf(b)!==-1};EI.\u0275fac=function(a){return new (a||EI)(Xc(Rh))};EI.\u0275prov=Dc({token:EI,factory:EI.\u0275fac,providedIn:"root"});var Y1c=function(a){this.overlayRef=a;this.ariaHiddenSiblings=new Map},FI=function(a){this.overlayContainer=a;this.overlayContextStack=[]},$1c=function(a,b){b=new Y1c(b);Z1c(a,b);a.overlayContextStack.push(b)},a2c=function(){var a=document;return a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||null},Z1c=function(a,b){var c=b.overlayRef.hostElement,d=tra(a.overlayContainer),e,f;a=[].concat(q(Array.from(((e=d.parentElement)==null?void 0:e.children)||[])),
q(Array.from(((f=c.parentElement)==null?void 0:f.children)||[])));(e=a2c())&&a.push.apply(a,q(Array.from(e.children)));a.forEach(function(g){if(g!==d&&g.nodeName!=="SCRIPT"&&!g.classList.contains("ace-accessible-modal-overlay-do-not-hide")&&g.nodeName!=="STYLE"&&!g.hasAttribute("aria-live")){var k=g.getAttribute("aria-hidden");b.ariaHiddenSiblings.set(g,k==="true"?!0:!1);g===c?g.removeAttribute("aria-hidden"):g.setAttribute("aria-hidden","true")}})},b2c=function(a){a.ariaHiddenSiblings.forEach(function(b,
c){b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")})};FI.\u0275fac=function(a){return new (a||FI)(Xc(Wh))};FI.\u0275prov=Dc({token:FI,factory:FI.\u0275fac,providedIn:"root"});var c2c=new dd("ace-overlay-default-config");var d2c=["mat-button",""],e2c=["*"],f2c=function(){return".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}@media(forced-colors: active){.mat-button,.mat-flat-button,.mat-raised-button,.mat-icon-button,.mat-fab,.mat-mini-fab{outline:solid 1px}}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\n"},
g2c="mat-button mat-flat-button mat-icon-button mat-raised-button mat-stroked-button mat-mini-fab mat-fab".split(" "),h2c=THa(VHa(UHa(function(a){this._elementRef=a}))),GI=function(a,b,c){var d=h2c.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=m(g2c),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};Y(GI,h2c);h=GI.prototype;h.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};h.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};h.focus=function(a,b){a?Oy(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b)};h._getHostElement=function(){return this._elementRef.nativeElement};h._isRippleDisabled=function(){return this.disableRipple||this.disabled};
h._hasHostAttributes=function(){var a=this;return $c.apply(0,arguments).some(function(b){return a._getHostElement().hasAttribute(b)})};GI.\u0275fac=function(a){return new (a||GI)(Ve(Hd),Ve(Ny),Ve(ji,8))};
GI.\u0275cmp=D({type:GI,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&&hg(fA,5);if(a&2){var c;lg(c=mg())&&(b.ripple=c.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:6,hostBindings:function(a,b){a&2&&(If("disabled",b.disabled||null)("mat-id-collision",null),wg("_mat-animation-noopable",b._animationMode===
"NoopAnimations")("mat-button-disabled",b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],standalone:!1,features:[Ef],attrs:d2c,ngContentSelectors:e2c,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&&(bg(),K(0,"span",0),cg(1),L(),M(2,"span",1)(3,"span",2));a&2&&(B(2),wg("mat-button-ripple-round",
b.isRoundButton||b.isIconButton),I("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[fA],styles:[f2c()],encapsulation:2,changeDetection:0});var HI=function(a,b,c,d){var e=GI.call(this,b,a,c)||this;e._ngZone=d;e._haltDisabledEvents=function(f){e.disabled&&(f.preventDefault(),f.stopImmediatePropagation())};return e};Y(HI,GI);
HI.prototype.ngAfterViewInit=function(){var a=this;GI.prototype.ngAfterViewInit.call(this);this._ngZone?this._ngZone.runOutsideAngular(function(){a._elementRef.nativeElement.addEventListener("click",a._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)};HI.prototype.ngOnDestroy=function(){GI.prototype.ngOnDestroy.call(this);this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)};
HI.\u0275fac=function(a){return new (a||HI)(Ve(Ny),Ve(Hd),Ve(ji,8),Ve(Rg,8))};
HI.\u0275cmp=D({type:HI,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:8,hostBindings:function(a,b){a&2&&(If("tabindex",b.disabled?-1:b.tabIndex)("disabled",b.disabled||null)("aria-disabled",b.disabled.toString())("mat-id-collision",null),wg("_mat-animation-noopable",b._animationMode==="NoopAnimations")("mat-button-disabled",
b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],standalone:!1,features:[Ef],attrs:d2c,ngContentSelectors:e2c,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&&(bg(),K(0,"span",0),cg(1),L(),M(2,"span",1)(3,"span",2));a&2&&(B(2),wg("mat-button-ripple-round",
b.isRoundButton||b.isIconButton),I("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[fA],styles:[f2c()],encapsulation:2,changeDetection:0});var II=function(){};II.prototype.ngOnInit=function(){};var kIa=function(a){a.action.kind==="executable"&&a.action.executeCallback()};II.\u0275fac=function(a){return new (a||II)};
II.\u0275cmp=D({type:II,selectors:[["ace-tooltip-action"]],inputs:{action:"action"},standalone:!1,decls:4,vars:3,consts:[[1,"ace-tooltip-action-button"],[3,"ngSwitch"],["mat-button","","color","primary",3,"click",4,"ngSwitchCase"],["mat-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0),Tf(1,1),E(2,lIa,2,2,"button",2)(3,mIa,2,4,"a",2),Uf(),L());a&2&&(B(),I("ngSwitch",b.action.kind),B(),I("ngSwitchCase","executable"),B(),I("ngSwitchCase","link"))},dependencies:[Ox,Px,
GI,HI],styles:["[_nghost-%COMP%]   .ace-tooltip-action-button[_ngcontent-%COMP%]{margin:12px 0 -12px -12px}"],changeDetection:0});var JI=function(a,b,c,d,e){this.tooltipRef=a;this.triggerElement=b;this.ariaDescriber=c;this.elementRef=d;this.id=JI.uniqueIdCounter++;this.overlayId="tooltip_overlay_"+this.id;this.tooltipContentId="tooltip_content_"+this.id;this.destroy=new qf;this.tooltipRef.onChange.pipe(zf(this.destroy)).subscribe(function(){e.markForCheck()})};
JI.prototype.ngAfterViewInit=function(){this.tooltipRef.aceTooltipInteractive||typeof this.tooltipRef.content!=="string"&&this.tooltipRef.ariaRelationship==="description"&&gz(this.ariaDescriber,this.triggerElement,this.elementRef.nativeElement)};JI.prototype.isString=function(){return typeof this.tooltipRef.content==="string"};JI.prototype.ngOnDestroy=function(){this.tooltipRef.ariaRelationship==="description"&&hz(this.ariaDescriber,this.triggerElement,this.elementRef.nativeElement);this.destroy.next()};
JI.uniqueIdCounter=0;JI.\u0275fac=function(a){return new (a||JI)(Ve("tooltipRef"),Ve("triggerElement"),Ve(fz),Ve(Hd),Ve(Cx))};
JI.\u0275cmp=D({type:JI,selectors:[["cfc-tooltip-overlay"]],hostVars:9,hostBindings:function(a,b){a&2&&(If("id",b.overlayId)("role",b.tooltipRef.modal?"dialog":"tooltip")("aria-describedby",b.tooltipRef.modal?b.tooltipContentId:null)("aria-label",b.tooltipRef.modal?b.tooltipRef.aceTooltipInteractiveDialogAriaLabel:null)("aria-modal",b.tooltipRef.modal||null),wg("ace-tooltip-overlay-rich",b.tooltipRef.aceTooltipRich||b.tooltipRef.aceTooltipInteractive)("ace-tooltip-overlay-simple",!b.tooltipRef.aceTooltipRich&&
!b.tooltipRef.aceTooltipInteractive))},standalone:!1,decls:7,vars:5,consts:function(){return[["tooltipWithTemplate",""],["mat-icon-button","","class","mat-icon-button ace-tooltip-close-button","aria-label","Close",4,"ngIf"],[1,"ace-tooltip-content",3,"id"],[4,"ngIf"],["mat-icon-button","","aria-label","Close",1,"mat-icon-button","ace-tooltip-close-button"],["icon","close","size","medium"],[3,"action",4,"ngIf"],[3,"action"],[3,"innerHTML"],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]]},
template:function(a,b){a&1&&(E(0,nIa,2,0,"button",1),K(1,"div",2),E(2,pIa,3,2,"ng-container",3)(3,rIa,3,2,"ng-container",3)(4,tIa,2,1,"ng-container",3),L(),E(5,vIa,1,2,"ng-template",null,0,Mg));a&2&&(I("ngIf",b.tooltipRef.showCloseButton||b.tooltipRef.aceTooltipInteractive),B(),I("id",b.tooltipContentId),B(),I("ngIf",b.isString()),B(),I("ngIf",!1),B(),I("ngIf",b.tooltipRef.content instanceof dg))},dependencies:[Nx,Sx,wI,GI,II],styles:['ace-tooltip-overlay[_nghost-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]{color:rgba(0,0,0,.66);font-family:"Roboto";font-size:12px;font-weight:400;line-height:16px;display:flex;flex-direction:row-reverse;border-radius:4px;margin:8px;word-wrap:break-word;outline:solid 1px rgba(0,0,0,0)}ace-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%], cfc-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%]{color:#fff;background:#757575;max-width:320px;padding:4px 8px}ace-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%], cfc-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%]{color:#fff}ace-tooltip-overlay.ace-tooltip-overlay-rich[_nghost-%COMP%], cfc-tooltip-overlay.ace-tooltip-overlay-rich[_nghost-%COMP%]{background:#fff;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);max-height:384px;max-width:384px;overflow-y:auto;padding:16px}ace-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%]{margin:-12px;margin-bottom:-11.9px;margin-left:8px}ace-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-content[_ngcontent-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-content[_ngcontent-%COMP%]{overflow-wrap:anywhere}@media screen and (hover: none){ace-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-disable-user-select-on-touch-device[_ngcontent-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-disable-user-select-on-touch-device[_ngcontent-%COMP%]{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}}'],
changeDetection:0});var KI=[{originX:"start",originY:"center",overlayX:"end",overlayY:"center"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom"}],LI=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center"},{originX:"end",originY:"top",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom"}],MI=[{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"},{originX:"start",originY:"top",
overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],i2c=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],NI=[{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],
j2c=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],k2c=[{originX:"end",originY:"center",overlayX:"start",overlayY:"top"},{originX:"end",originY:"center",overlayX:"start",overlayY:"center"},{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom"}],l2c={top:[].concat(q(MI),q(NI),q(KI),q(LI)),topleft:[].concat(q(i2c),q(j2c),q(KI),q(LI)),
bottom:[].concat(q(NI),q(MI),q(LI),q(KI)),bottomleft:[].concat(q(j2c),q(i2c),q(LI),q(KI)),left:[].concat(q(KI),q(LI),q(MI),q(NI)),right:[].concat(q(LI),q(KI),q(NI),q(MI)),righttop:[].concat(q([{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"center",overlayX:"start",overlayY:"center"},{originX:"end",originY:"top",overlayX:"start",overlayY:"top"}]),q(KI),q(NI),q(MI)),lefttop:[].concat(q([{originX:"start",originY:"center",overlayX:"end",overlayY:"bottom"},
{originX:"start",originY:"center",overlayX:"end",overlayY:"center"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"}]),q(KI),q(NI),q(LI)),leftbottom:[].concat(q([{originX:"start",originY:"center",overlayX:"end",overlayY:"top"},{originX:"start",originY:"center",overlayX:"end",overlayY:"center"},{originX:"start",originY:"center",overlayX:"start",overlayY:"bottom"}]),q(NI),q(k2c),q(MI)),rightbottom:[].concat(q(k2c),q(NI),q(KI),q(MI))};var OI=function(a,b){this.overlay=a;this.scrollDispatcher=b},m2c=function(a,b,c){c=Fz(Hz(Lz(a.overlay.position(),b),!1),c);bDc(c,JCc(a.scrollDispatcher,b));b=new di;b.positionStrategy=c;b.scrollStrategy=a.overlay.scrollStrategies.reposition();return b};OI.\u0275fac=function(a){return new (a||OI)(Xc(Tz),Xc(Sh))};OI.\u0275prov=Dc({token:OI,factory:OI.\u0275fac,providedIn:"root"});var PI=function(a,b,c,d,e,f){var g=this;this.overlay=a;this.connectedOverlayHelper=b;this.accessibleModalManager=c;this.focusTrapFactory=d;this.ngZone=e;this.defaultConfig=f;this.focusTrap=void 0;this.tooltips=new Map;this.overlayRef=void 0;this.tooltipRenderTimeoutId=this.tooltipHideTimeoutId=0;this.visibleTooltipRef=void 0;this.lastTouchTimestamp=0;this.onDestroy=new qf;this.backdrop=void 0;this.eventsToListen="mouseover mouseout focusin focusout touchstart touchend touchcancel click keydown".split(" ");
document.addEventListener("click",this);e.runOutsideAngular(function(){for(var k=m(g.eventsToListen),l=k.next();!l.done;l=k.next())document.addEventListener(l.value,g)})};PI.prototype.ngOnDestroy=function(){for(var a=m(this.tooltips.values()),b=a.next();!b.done;b=a.next())b=b.value,b.disabledTooltip&&b.disableChangeSubscription.unsubscribe();a=m(this.eventsToListen);for(b=a.next();!b.done;b=a.next())document.removeEventListener(b.value,this);n2c(this);this.onDestroy.next();this.onDestroy.complete()};
var o2c=function(a,b){a.visibleTooltipRef===b&&a.hideTooltip();var c;b=(c=b.elementRef)==null?void 0:c.nativeElement;b!=null&&a.tooltips.has(b)&&(c=a.tooltips.get(b),c.enabledTooltip=void 0,c.disabledTooltip||c.enabledTooltip?a.tooltips.set(b,c):a.tooltips.delete(b))},p2c=function(a,b){if(b=FJc(b.target,function(d){if(!d)return!1;var e=a.isDisabled(d);return a.tooltips.has(d)?(d=a.tooltips.get(d),!e&&d.enabledTooltip!==void 0||e&&d.disabledTooltip!==void 0):!1})){var c=a.tooltips.get(b);return a.isDisabled(b)?
c.disabledTooltip:c.enabledTooltip}};PI.prototype.isDisabled=function(a){return a.disabled||a instanceof Element&&(a.getAttribute("aria-disabled")==="true"||a.classList.contains("ace-disabled"))};
PI.prototype.handleEvent=function(a){var b=this;if(this.visibleTooltipRef&&this.visibleTooltipRef.modal&&a.type==="click"&&a.target.classList.contains("cdk-overlay-backdrop"))this.ngZone.run(function(){b.hideTooltip()});else if(this.overlayRef&&fBb(this.overlayRef.hostElement,a.target))this.ngZone.run(function(){a.type==="mouseover"?clearTimeout(b.tooltipHideTimeoutId):a.type!=="mouseout"||b.visibleTooltipRef&&b.visibleTooltipRef.modal?(a.type==="click"||a.type==="keydown"&&a.key==="Enter")&&GJc(a.target)&&
(a.preventDefault(),a.stopPropagation(),b.hideTooltip()):q2c(b)});else{var c=p2c(this,a);c?this.ngZone.run(function(){a.type==="mouseout"?c.modal||(c.aceTooltipRich||c.aceTooltipInteractive||c.aceTooltipVisibleOnOverlayHover?q2c(b):b.hideTooltip()):a.type==="mouseover"?b.showTooltip(c,a):a.type!=="focusin"||c.aceTooltipInteractive&&!c.aceTooltipAlwaysShowOnFocus?a.type==="focusout"?b.overlayRef&&fBb(b.overlayRef.hostElement,a.relatedTarget)||b.hideTooltip():a.type==="touchstart"?r2c(b,a,c):a.type===
"touchend"||a.type==="touchcancel"?(b.lastTouchTimestamp=Date.now(),clearTimeout(b.touchStartSetTimeoutId)):(a.type==="click"||a.type==="keydown"&&a.key==="Enter")&&c.aceTooltipInteractive&&!c.aceTooltipDisabled&&c.content&&(b.visibleTooltipRef||b.showTooltip(c,a),s2c(b)):b.showTooltip(c,a)}):this.visibleTooltipRef&&a.type==="click"&&!this.visibleTooltipRef.modal&&this.ngZone.run(function(){b.hideTooltip()})}};
var s2c=function(a){var b=a.visibleTooltipRef,c=a.overlayRef;b.modal||(b.modal=!0,b.onChange.next(),$1c(a.accessibleModalManager,c),t2c(a),n2c(a),a.focusTrap=a.focusTrapFactory.create(c.hostElement),setTimeout(function(){var d;(d=a.focusTrap)==null||oCc(d)}))},r2c=function(a,b,c){a.lastTouchTimestamp=Date.now();clearTimeout(a.touchStartSetTimeoutId);a.touchStartSetTimeoutId=setTimeout(function(){a.showTooltip(c,b)},251)},q2c=function(a){clearTimeout(a.tooltipHideTimeoutId);a.tooltipHideTimeoutId=
setTimeout(function(){a.hideTooltip()},100)};
PI.prototype.showTooltip=function(a,b){var c=this;a.aceTooltipDisabled||!a.content||b.type!=="touchstart"&&Date.now()-this.lastTouchTimestamp<1E3&&(a.aceTooltipTapToShow!==void 0?!a.aceTooltipTapToShow:!a.aceTooltipInteractive&&!a.elementRef.nativeElement.classList.contains("ace-icon"))||(a.showCloseButton=Date.now()-this.lastTouchTimestamp<1E3||b.type==="touchstart",clearTimeout(this.tooltipHideTimeoutId),this.overlayRef&&this.visibleTooltipRef===a||(this.overlayRef&&this.hideTooltip(),a.aceTooltipRenderDebounceMs>
0?(clearTimeout(this.tooltipRenderTimeoutId),this.tooltipRenderTimeoutId=setTimeout(function(){u2c(c,a,b)},a.aceTooltipRenderDebounceMs)):u2c(this,a,b)))};
var u2c=function(a,b,c){b.onShow.next();var d=m2c(a.connectedOverlayHelper,b.elementRef,l2c[b.aceTooltipPosition]);a.overlayRef=a.overlay.create(d);var e;((e=a.defaultConfig)==null?0:e.panelClass)&&a.overlayRef.addPanelClass(a.defaultConfig.panelClass);b.aceTooltipPanelClass&&a.overlayRef.addPanelClass(b.aceTooltipPanelClass);c=Yg({providers:[{provide:"tooltipRef",useValue:b},{provide:"triggerElement",useValue:c.target}]});a.overlayRef.attach(new Nz(JI,void 0,c));a.overlayRef.keydownEvents().pipe(zf(a.onDestroy)).subscribe(function(f){f.key===
"Escape"&&a.hideTooltip()});a.visibleTooltipRef=b},t2c=function(a){var b=document.createElement("div");b.classList.add("cdk-overlay-backdrop");b.classList.add("cdk-overlay-dark-backdrop");b.classList.add("cdk-overlay-backdrop-showing");var c=a.overlayRef.hostElement;c.insertBefore(b,c.firstChild);a.backdrop=b};
PI.prototype.hideTooltip=function(){this.tooltipRenderTimeoutId&&clearTimeout(this.tooltipRenderTimeoutId);if(this.overlayRef){var a=this.visibleTooltipRef;if(a&&a.modal){this.backdrop&&this.backdrop.parentNode&&(this.backdrop.parentNode.removeChild(this.backdrop),this.backdrop=void 0);a.modal=!1;a.onChange.next();var b=this.accessibleModalManager,c=b.overlayContextStack[b.overlayContextStack.length-1];if(c&&this.overlayRef===c.overlayRef){do b2c(b.overlayContextStack.pop()),c=b.overlayContextStack[b.overlayContextStack.length-
1];while(c&&!c.overlayRef.hasAttached())}n2c(this);a.focusableElementRef?a.focusableElementRef.nativeElement.focus():a.elementRef.nativeElement.focus()}a&&a.onHide.next();this.overlayRef&&(this.overlayRef.detach(),this.overlayRef.dispose());this.visibleTooltipRef=this.overlayRef=void 0}};var n2c=function(a){a.focusTrap&&(a.focusTrap.destroy(),a.focusTrap=void 0)};PI.\u0275fac=function(a){return new (a||PI)(Xc(Tz),Xc(OI),Xc(FI),Xc(kz),Xc(Rg),Xc(c2c,8))};
PI.\u0275prov=Dc({token:PI,factory:PI.\u0275fac,providedIn:"root"});(function(){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!ra.requestAnimationFrame;++c)ra.requestAnimationFrame=ra[b+"RequestAnimationFrame"],ra.cancelAnimationFrame=ra[b+"CancelAnimationFrame"]||ra[b+"CancelRequestAnimationFrame"];if(!ra.requestAnimationFrame){var d=0;ra.requestAnimationFrame=function(e){var f=(new Date).getTime(),g=Math.max(0,16-(f-d));d=f+g;return ra.setTimeout(function(){e(f+g)},g)};ra.cancelAnimationFrame||(ra.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var v2c=[[],[]],w2c=0,x2c=!1,y2c=0,A2c=function(a,b){var c=y2c++,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(){arguments.length>0?(d.args||(d.args=[]),d.args.length=0,d.args.push.apply(d.args,arguments),d.args.push(d.state)):d.args&&d.args.length!=0?(d.args[0]=d.state,d.args.length=1):d.args=[d.state];d.isScheduled||(d.isScheduled=!0,v2c[w2c].push(d));x2c||(x2c=!0,window.requestAnimationFrame(z2c))}},z2c=
function(){x2c=!1;var a=v2c[w2c],b=a.length;w2c=(w2c+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 QI=function(a,b,c,d,e,f,g,k){this.tooltipManager=a;this.ariaDescriber=b;this.ariaLabeller=c;this.elementRef=d;this.aceTooltipTemplateData={};this.aceTooltipDisabled=this.aceTooltipRich=!1;this.aceTooltipTapToShow=void 0;this.aceTooltipAlwaysShowOnFocus=this.aceTooltipInteractive=!1;this.onChange=new qf;this.onShow=new qf;this.onHide=new qf;this.isInitialized=!1;this.aceTooltipPosition=(e===void 0?"bottom":e)||"bottom";this.aceTooltipVisibleOnOverlayHover=f!==!1;this.shouldMockAnimationFrames=
!!g;this.aceTooltipRenderDebounceMs=k!=null?k:0};QI.prototype.ngOnDestroy=function(){o2c(this.tooltipManager,this)};QI.prototype.ngOnChanges=function(){this.onChange.next()};
QI.prototype.ngAfterViewInit=function(){var a=this.elementRef.nativeElement;this.isInitialized=!0;B2c(this);if(this.acePreventEventPropagation)for(var b=m(["click","keydown"]),c=b.next();!c.done;c=b.next())a.addEventListener(c.value,function(d){if(!(d instanceof KeyboardEvent&&d.key!=="Enter"&&d.key!=="Space")){d.preventDefault();d.stopPropagation();var e=new d.constructor(d.type,d);Object.defineProperty(e,"target",{writable:!1,value:d.target});document.dispatchEvent(e)}})};
var B2c=function(a,b){var c=typeof b==="string"||a.ariaRelationship==="description"||a.ariaRelationship==="label";if(a.isInitialized&&c){var d;c=function(){var f=a.elementRef.nativeElement;if(!((f.matches?f.matches("[tabindex], a[href], area[href], iframe, input, textarea, select, button"):Array.from(document.querySelectorAll("[tabindex], a[href], area[href], iframe, input, textarea, select, button")).includes(f))&&yIa(f))){var g=g===void 0?!1:g;for(var k=[],l=f.querySelectorAll("[tabindex], a[href], area[href], iframe, input, textarea, select, button"),
r=0;r<l.length;++r){var w=l[r];(yIa(w)||g)&&k.push(w)}f=k[0]||f}d=f};var e=function(){if(typeof b==="string"){hz(a.ariaDescriber,d,b);var f=d;if(X1c(f,b)){var g=CI.get(b);g.referenceCount--;jIa(f,g.messageElement.id);f.removeAttribute("ace-labelledby-host")}typeof b==="string"&&(f=CI.get(b))&&f.referenceCount===0&&(f=(f=CI.get(b))&&f.messageElement,DI&&f&&DI.removeChild(f),CI.delete(b));DI&&DI.childNodes.length===0&&W1c()}if(a.ariaRelationship==="description")a.aceTooltipInteractive||typeof a.content!==
"string"||gz(a.ariaDescriber,d,a.content);else if(a.ariaRelationship==="label"&&typeof a.content==="string"){g=a.ariaLabeller;f=d;var k=a.content;if(typeof k!=="string")fIa(k),CI.set(k,{messageElement:k,referenceCount:0});else if(!CI.has(k)){var l=g.document.createElement("div");fIa(l);l.textContent=k;l.setAttribute("aria-hidden","false");if(!DI){var r=g.document.getElementById(U1c);r&&r.parentNode.removeChild(r);DI=g.document.createElement("div");DI.id=U1c;DI.setAttribute("aria-hidden","true");DI.style.display=
"none";g.document.body.appendChild(DI)}DI.appendChild(l);CI.set(k,{messageElement:l,referenceCount:0})}X1c(f,k)||(g=CI.get(k),iIa(f,g.messageElement.id),f.setAttribute("ace-labelledby-host",""),g.referenceCount++)}};a.shouldMockAnimationFrames?(c(),e()):A2c({measure:c,mutate:e})()}};
da.Object.defineProperties(QI.prototype,{aceTooltip:{configurable:!0,enumerable:!0,set:function(a){var b=this.content;if(a){var c=this.tooltipManager,d=this.elementRef.nativeElement,e=c.tooltips.get(d)||{};e.enabledTooltip=this;c.tooltips.set(d,e);if(a instanceof dg||typeof a==="string")this.content=a;else for(c=m(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,this[d]=a[d];B2c(this,b)}else o2c(this.tooltipManager,this)},get:function(){return this.content}},ariaRelationship:{configurable:!0,
enumerable:!0,get:function(){return this.aceTooltipDisabled?"none":this.elementRef.nativeElement.tagName==="ACE-ICON"||this.elementRef.nativeElement.hasAttribute("mat-icon-button")?this.ariaLabelAttribute?"none":"label":"description"}},ariaLabelAttribute:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement.getAttribute("aria-label")}}});QI.\u0275fac=function(a){return new (a||QI)(Ve(PI),Ve(fz),Ve(EI),Ve(Hd),Ve(FUc,8),Ve(GUc,8),Ve(HUc,8),Ve(IUc,8))};
QI.\u0275dir=af({type:QI,selectors:[["","aceTooltip",""],["","cfcTooltip",""]],hostVars:6,hostBindings:function(a,b){a&2&&wg("cfc-tooltip",!0)("ace-tooltip-disable-user-select-on-touch-device",!b.aceTooltipDisabled)("cfc-tooltip-disable-user-select-on-touch-device",!b.aceTooltipDisabled)},inputs:{aceTooltip:"aceTooltip",aceTooltipTemplateData:"aceTooltipTemplateData",aceTooltipRich:"aceTooltipRich",aceTooltipDisabled:"aceTooltipDisabled",aceTooltipPosition:"aceTooltipPosition",aceTooltipTapToShow:"aceTooltipTapToShow",
aceTooltipInteractive:"aceTooltipInteractive",aceTooltipInteractiveDialogAriaLabel:"aceTooltipInteractiveDialogAriaLabel",acePreventEventPropagation:"acePreventEventPropagation",aceTooltipAlwaysShowOnFocus:"aceTooltipAlwaysShowOnFocus",aceTooltipAction:"aceTooltipAction",aceTooltipPanelClass:"aceTooltipPanelClass"},standalone:!1,features:[jx]});var RI=function(){};RI.\u0275fac=function(a){return new (a||RI)};RI.\u0275mod=$e({type:RI});RI.\u0275inj=Fc({imports:[by,Wz]});var SI=function(){};SI.\u0275fac=function(a){return new (a||SI)};SI.\u0275mod=$e({type:SI});SI.\u0275inj=Fc({imports:[iA,Ky]});var TI=function(){};TI.\u0275fac=function(a){return new (a||TI)};TI.\u0275mod=$e({type:TI});TI.\u0275inj=Fc({imports:[by,RI,BI,SI,Wz,hD]});var C2c=function(){oG.apply(this,arguments)};Y(C2c,oG);
C2c.prototype.drawInternal=function(a){if(a.currentValue){var b=a.currentValue;a=b.data;var c=b.state;b=b.config;if(a&&c&&b)if(c.highlightedAnnotation){if(this.canvas.style.left="0px",this.canvas.style.top="0px",bl(this.canvas,this.base,c.chartHeight,c.chartWidth),a=a.find(function(f){return f.annotationId===c.highlightedAnnotation})){var d=a.start;a=a.end;b=c.domainMap(d);d=c.domainMap(a!=null?a:d);this.ctx.fillStyle=Zk("var(--ac-sys-color-annotation-outline-hover, #3C4043)",this.base);this.ctx.strokeStyle=
Zk("var(--ac-sys-color-annotation-outline-hover, #3C4043)",this.base);var e={top:c.bodyTop,bottom:c.bodyBottom,left:c.bodyLeft,right:c.bodyRight};b>e.right||(a===void 0||d-b<1?FIa(this.ctx,b,e):AIa(this.ctx,b,d,e))}}else al(this.canvas,void 0,this.base)}};var D2c=new ik({getKey:function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId+",xAxisId:"+a.xAxisId},getSelector:function(a,b){return ie([b.getSelector(TSc,a),b.getSelector(uG,a)]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return Zj(c,d,function(e,f){if(e!==void 0&&f!==void 0&&(f=Xk(Object.assign({},f,{unit:"ms_since_epoch"}),e.margins.left,e.width-e.margins.right)))return{chartHeight:e.height,chartWidth:e.width,bodyTop:e.margins.top,bodyBottom:e.height-e.margins.bottom,
bodyLeft:e.margins.left,bodyRight:e.width-e.margins.right,domainMap:f}})}))}});var E2c=function(){oG.apply(this,arguments);this.lastAnnotationSpans=[];this.lastBodyBottom=this.lastBodyTop=null;this.minAnnotationWidth=0};Y(E2c,oG);
E2c.prototype.drawInternal=function(a){if(a.currentValue){var b=a.currentValue,c=b.data;a=b.state;var d=b.config;if(a&&d){b=[];var e=1,f={top:a.bodyTop,bottom:a.bodyBottom,left:a.bodyLeft,right:a.bodyRight};this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.chartHeight,a.chartWidth);var g=[],k;c=(k=c==null?void 0:c.sort(function(R,V){return R.start-V.start}))!=null?k:[];k=void 0;c=m(c);for(var l=c.next();!l.done;l=c.next()){var r=l.value,w=r.start,x=r.end,C=r.isOngoing;
l=r.annotationId;var H=d.styleProvider.getStyle(r.style);r=w=a.domainMap(w);H=H.color;this.ctx.fillStyle=Zk(H,this.base);this.ctx.strokeStyle=Zk(H,this.base);w>f.right||(x!==void 0||C?(r=C?a.bodyRight+1:a.domainMap(x),r-w<this.minAnnotationWidth&&w<f.right&&r>f.left&&(x=(this.minAnnotationWidth-r+w)/2,w-x<f.left?(x=w-f.left+x,w=f.left,r=Math.min(r+x,f.right)):r+x>f.right?(x=f.right-r+x,r=f.right,w=Math.max(w-x,f.left)):(w-=x,r+=x)),d.newVisuals?zIa(this.ctx,w,r,f):BIa(this.ctx,this.base,w,r,f)):d.newVisuals?
d.pointClustering?k!==void 0&&w-k.x0<3?(k.count++,k.x1=w):(C=x=void 0,e=Math.max(e,(C=(x=k)==null?void 0:x.count)!=null?C:1),k={count:1,colors:new Set([H]),x0:w,x1:w},b.push(k)):DIa(this.ctx,w,f):CIa(this.ctx,this.base,w,f),g.push({annotationId:l,left:Math.max(w-2,a.bodyLeft),right:Math.min(r+2,a.bodyRight)}))}if(d.newVisuals&&d.pointClustering){var J,O;e=Math.max(e,(O=(J=k)==null?void 0:J.count)!=null?O:1);J=m(b);for(O=J.next();!O.done;O=J.next())O=O.value,e===1&&DIa(this.ctx,O.x0,f),d=Math.ceil(b.length/
(f.right-f.left)),d=d<.1?.375:d<.2?.3:d<.3?.225:.15,EIa(this.ctx,this.base,(O.x0+O.x1)/2,f,O.colors,O.count/e*(.75-d)+d)}this.lastBodyTop=a.bodyTop;this.lastBodyBottom=a.bodyBottom;this.lastAnnotationSpans=g.sort(function(R,V){return R.left-V.left})}}};
var F2c=function(a,b){var c=b.x;b=b.y;if(!a.lastBodyTop||b<a.lastBodyTop||!a.lastBodyBottom||b>a.lastBodyBottom)return[];b=[];a=m(a.lastAnnotationSpans);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.annotationId,f=d.right;c>=d.left&&c<=f&&b.push(e)}return b};var G2c={style:"default",color:"var(--ac-sys-color-annotation-on-surface, #202124)",icon:"info"},UI=function(){this.fallbackAnnotationStyle=G2c;this.annotationStyleRegistry=new Map;this.annotationIconRegistry=new Map;this.stylesUpdated$=this.stylesUpdated=new qf;this.setStyles(JUc);for(var a=m(KUc.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.annotationIconRegistry.set(b,KUc.get(b));this.stylesUpdated.next()};h=UI.prototype;h.setIcon=function(a,b){this.annotationIconRegistry.set(a,b);this.stylesUpdated.next()};
h.getIcon=function(a){var b;return(b=this.annotationIconRegistry.get(a))!=null?b:""};h.setStyle=function(a,b){this.annotationStyleRegistry.set(a,b);this.stylesUpdated.next()};h.setStyles=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.annotationStyleRegistry.set(b.style,b);this.stylesUpdated.next()};h.getStyle=function(a){var b;return(b=this.annotationStyleRegistry.get(a))!=null?b:this.fallbackAnnotationStyle};UI.\u0275fac=function(a){return new (a||UI)};
UI.\u0275prov=Dc({token:UI,factory:UI.\u0275fac,providedIn:"root"});var H2c=["projectedContent"],QIa=function(a,b){return{left:a,top:b}},RIa=function(a){return{$implicit:a}},SIa=function(a){return{width:a}},LIa=function(a,b){return{fill:a,left:b}},VI=function(a,b,c,d,e){AG.call(this,a,b,c,!0);var f=this;this.annotationStyleService=d;this.ngZone=e;this.data=null;this.tooltipPosition="bottom";this.pointClustering=this.newVisuals=!1;this.dataSubject=new Mj(this.data);this.iconStrokeColor="var(--ac-sys-color-annotation-surface, #FFF)";this.configSubject=new Mj({newVisuals:this.newVisuals,
pointClustering:this.pointClustering,styleProvider:this.annotationStyleService});this.highlightedAnnotationSubject=new Mj(null);this.annotationClusterSubject=new Mj([]);this.annotationClusterObservable=this.annotationClusterSubject.pipe(mf(0),xk(this.ngZone));this.iconSize=20;this.groupedIconOffset=8;this.ve={AnnotationButton:213894};this.annotationView=new E2c(a.nativeElement);this.annotationHighlightView=new C2c(a.nativeElement);this.redrawableViews=[this.annotationView,this.annotationHighlightView];
d.stylesUpdated$.pipe(zf(this.destroyed)).subscribe(function(){f.configSubject.next({newVisuals:f.newVisuals,pointClustering:f.pointClustering,styleProvider:f.annotationStyleService})})};Y(VI,AG);VI.\u0275dir=AG.\u0275dir;
VI.prototype.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});var b=this.selectorFactoryToObservable(D2c);ie([this.dataObservable,b,this.configObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;d=d.next().value;var f;return{data:c.currentValue,config:(f=d.currentValue)!=null?f:null,state:e!=null?e:null}}),xf(null),tf(),A(gk),Cf(this.scopeObservable),zf(this.destroyed)).subscribe(function(c){var d=
m(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawFromSelection",changes:c,viewHandler:function(e){a.annotationView.draw(e)},scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});ie([this.dataObservable,b,this.highlightedAnnotationSubject,this.configObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;return{data:c.currentValue,
config:d.currentValue,state:e?Object.assign({},e,{highlightedAnnotation:f}):null}}),xf(null),tf(),A(gk),Cf(this.scopeObservable),zf(this.destroyed)).subscribe(function(c){var d=m(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawHoverEffects",changes:c,viewHandler:function(e){a.newVisuals&&a.annotationHighlightView.draw(e)},scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});ie([this.dataObservable,
this.scopeObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return{data:c.currentValue,scope:d}}),xf(null),tf(),A(gk),zf(this.destroyed)).subscribe(function(c){var d,e;a.chart.scheduleChangeHandler({mergeKey:(((d=c.currentValue)==null?void 0:d.scope.layerId)||a.layerId)+"-setMarginRequirement",changes:c,componentHandler:function(f){var g;if(f.currentValue){var k=f.currentValue;f=k.scope;k=((g=k.data)==null?0:g.length)?a.newVisuals?28:33:0;g=[iG({chartGroupId:f.chartGroupId,
chartId:f.chartId,layerId:f.layerId,reservedMargins:{top:k}})]}else g=[];return g},scope:((e=c.currentValue)==null?void 0:e.scope)||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});ie([this.dataObservable,b,this.configObservable,this.scopeObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;return{data:c.currentValue,config:f.currentValue,scope:d,state:e!=null?e:null}}),xf(null),
tf(),A(gk),zf(this.destroyed)).subscribe(function(c){var d,e;a.chart.scheduleChangeHandler({mergeKey:(((d=c.currentValue)==null?void 0:d.scope.layerId)||a.layerId)+"-drawIcons",changes:c,componentHandler:function(f){a.newVisuals?(f=HIa(f,a.annotationStyleService,a.severityMap),a.annotationClusterSubject.next(f)):(f=JIa(f,a.annotationStyleService),a.annotationClusterSubject.next(f))},scope:((e=c.currentValue)==null?void 0:e.scope)||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,
yAxisId:a.yAxisId}})});VF(this.chart,"chart",function(c){return a.onMouseMove(c)},this.destroyed)};VI.prototype.onMouseMove=function(a){var b=[];a=BG(this,a);a=F2c(this.annotationView,a);var c;b.push(EYc({chartId:this.chartId,layerId:this.layerId,annotations:(c=a==null?void 0:a.map(function(d){return{annotationId:d}}))!=null?c:[]}));return b};
var PIa=function(a,b,c){c===void 0?(OIa(a,b),b.annotationIds.length===1&&(a.highlightedAnnotation=b.annotationIds[0])):a.highlightedAnnotation=b.annotationIds[c]},OIa=function(a,b){a.scopeObservable.pipe(lf(1)).subscribe(function(c){a.store.dispatch(DYc({chartId:c.chartId,layerId:c.layerId,annotations:b.annotationIds.map(function(d){return{annotationId:d}})}))})};VI.prototype.ngAfterViewInit=function(){for(var a=m(this.data||[]),b=a.next();!b.done&&!b.value.annotationContent;b=a.next());};
VI.prototype.ngOnChanges=function(a){AG.prototype.ngOnChanges.call(this,a);"data"in a&&this.dataSubject.next(this.data);"newVisuals"in a&&(this.iconSize=this.newVisuals?18:20);("styles"in a||"newVisuals"in a||"pointClustering"in a)&&this.configSubject.next({newVisuals:this.newVisuals,pointClustering:this.pointClustering,styleProvider:this.annotationStyleService})};
VI.prototype.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);UF(this.chart,[YUc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId})])};
da.Object.defineProperties(VI.prototype,{styles:{configurable:!0,enumerable:!0,set:function(a){this.annotationStyleService.setStyles(a)}},highlightedAnnotation:{configurable:!0,enumerable:!0,set:function(a){this.highlightedAnnotationSubject.next(a)},get:function(){return this.highlightedAnnotationSubject.value}},minWidth:{configurable:!0,enumerable:!0,set:function(a){this.annotationView.minAnnotationWidth=Math.max(0,a)}}});VI.\u0275fac=function(a){return new (a||VI)(Ve(Hd),Ve(TF),Ve(gG),Ve(UI),Ve(Rg))};
VI.\u0275cmp=D({type:VI,selectors:[["ac-annotation"]],viewQuery:function(a,b){a&1&&hg(H2c,5);if(a&2){var c;lg(c=mg())&&(b.projectedContent=c.first)}},hostAttrs:[1,"composable-layer","ac-annotation"],inputs:{data:"data",styles:"styles",tooltipContentTemplate:"tooltipContentTemplate",clusterActionTemplate:"clusterActionTemplate",tooltipPosition:"tooltipPosition",newVisuals:"newVisuals",pointClustering:"pointClustering",severityMap:"severityMap",highlightedAnnotation:"highlightedAnnotation",minWidth:"minWidth"},
features:[Ef,jx],ngContentSelectors:["*"],decls:6,vars:3,consts:function(){return[["tooltipContent",""],["projectedContent",""],["projectedTooltipContents",""],["mat-button","","aria-label","Click to view annotation detail","class","annotation-cluster-button","aceTooltipPanelClass","ac-annotation-tooltip",3,"annotation-cluster-button","new-annotation-cluster-button","ngStyle","aceTooltip","aceTooltipTemplateData","aceTooltipInteractive","aceTooltipPosition","ve","veClick","click","mouseenter","mouseleave",
4,"ngFor","ngForOf"],["mat-button","","aria-label","Click to view annotation detail","aceTooltipPanelClass","ac-annotation-tooltip",1,"annotation-cluster-button",3,"click","mouseenter","mouseleave","ngStyle","aceTooltip","aceTooltipTemplateData","aceTooltipInteractive","aceTooltipPosition","ve","veClick"],[1,"button-content"],["class","annotation-count",4,"ngIf"],[1,"icon-group",3,"ngStyle"],[4,"ngFor","ngForOf"],[1,"annotation-count"],[3,"ngStyle"],["viewBox","0 0 24 24"],"stroke-width 3 fill-rule evenodd clip-rule evenodd".split(" "),
["fill-rule","evenodd","clip-rule","evenodd"],[4,"ngIf","ngIfElse"],[1,"cluster-content",3,"mouseover","mouseout"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]]},template:function(a,b){a&1&&(bg(),E(0,TIa,6,22,"button",3),T(1,"async"),E(2,fJa,3,2,"ng-template",null,0,Mg)(4,gJa,1,0,"ng-template",null,1,Mg));a&2&&I("ngForOf",U(1,1,b.annotationClusterObservable))},dependencies:[gB,Mx,Nx,Rx,Ox,Px,Qx,Sx,TI,QI,gD,Tx],styles:['.composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}.annotation-cluster-button[mat-button][_ngcontent-%COMP%]{position:absolute;line-height:18px;font-size:12px;padding:3px 4px;min-width:unset;z-index:9;background:rgba(0,0,0,0);font-weight:700;color:var(--ac-sys-color-annotation-on-surface-variant, #4f4f4f);height:26px}.annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]{display:flex;flex-direction:row}.annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]   .icon-group[_ngcontent-%COMP%]{position:relative;height:20px}.annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]   .icon-group[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:absolute;height:20px;width:20px}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]{position:absolute;line-height:18px;font-size:12px;padding:2px 3px;min-width:unset;z-index:9;background:rgba(0,0,0,0);font-weight:700;color:var(--ac-sys-color-annotation-on-surface-variant, #4f4f4f);height:26px;border:1px solid var(--ac-sys-color-annotation-outline, rgba(0, 0, 0, 0.125))}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]{display:flex;flex-direction:row}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]   .icon-group[_ngcontent-%COMP%]{position:relative;height:18px}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]   .icon-group[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:absolute;height:18px;width:18px}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]     span.mat-mdc-button-touch-target{height:unset}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]::before{content:"";width:0px;height:0px;position:absolute;z-index:9;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-top:4px solid var(--ac-sys-color-annotation-outline, rgba(0, 0, 0, 0.125));border-bottom:4px solid rgba(0,0,0,0);text-align:center;top:100%}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]::after{content:"";width:0px;height:0px;position:absolute;z-index:9;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-top:4px solid var(--ac-sys-color-annotation-tail, #fff);border-bottom:4px solid rgba(0,0,0,0);text-align:center;top:calc(100% - 1px)}  .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-overlay-simple,   .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-overlay-rich{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);background:var(--ac-sys-color-extensions-surface, #fff)}  .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-close-button{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);background:var(--ac-sys-color-extensions-surface, #fff)}  .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-close-button:hover .mat-button-ripple{background:var(--ac-sys-color-extensions-neutral, #bdbdbd);z-index:0}  .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-close-button:hover .mat-button-wrapper{position:relative;z-index:1}/*# sourceMappingURL=ac_annotation.css.map */'],
changeDetection:0});var WI=function(a,b,c){AG.call(this,a,b,c);this.color="transparent";this.canvas=document.createElement("canvas");this.marginTop=this.marginLeft=this.width=this.height=0;this.canvas.setAttribute("aria-hidden","true");this.canvas.style.position="absolute";b=this.canvas.getContext("2d");if(!b)throw Error("Ec");this.ctx=b;a.nativeElement.appendChild(this.canvas)};Y(WI,AG);WI.\u0275dir=AG.\u0275dir;h=WI.prototype;h.ngOnInit=function(){AG.prototype.ngOnInit.call(this);this.setup({})};
h.drawInternal=function(){this.canvas.style.left=this.marginLeft+"px";this.canvas.style.top=this.marginTop+"px";bl(this.canvas,this.canvas,this.height,this.width,this.color)};h.onResizeChange=function(a,b){var c;if(a=b==null?void 0:(c=b.state)==null?void 0:c.resize)this.marginLeft=a.margins.left,this.marginTop=a.margins.top,this.width=a.width-a.margins.left-a.margins.right,this.height=a.height-a.margins.top-a.margins.bottom,this.drawInternal()};
h.ngOnChanges=function(a){AG.prototype.ngOnChanges.call(this,a);"color"in a&&this.drawInternal()};h.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this)};WI.\u0275fac=function(a){return new (a||WI)(Ve(Hd),Ve(TF),Ve(gG))};WI.\u0275cmp=D({type:WI,selectors:[["ac-background"]],inputs:{color:"color"},features:[Ef,jx],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var I2c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalCompositeOperation:"source-over"},XI=function(){pG.apply(this,arguments);this.fullDrawDebounceId=null};Y(XI,pG);h=XI.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onXAxisChange=function(a,b){Uk(a)&&this.drawInternal(b)};
h.onResizeChange=function(a,b){var c=this;qk(a)&&(rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),qG(this,b,this.canvas,this.ctx),this.fullDrawDebounceId=setTimeout(function(){nG(c,c.canvas);c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){rl(a)&&this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.unpack=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize,e=c.xAxis,f=c.yAxis;c=c.brush;if(!(d&&e&&f&&c))return null;var g=d.width,k=d.height,l=d.margins.top,r=d.height-d.margins.bottom,w=d.margins.left,x=d.width-d.margins.right,C=sl(f,l,r,b?b.unit:null),H=Xk(e,w,x,b==null?void 0:b.xAxisUnit);e=Yk(e,w,x,b==null?void 0:b.xAxisUnit);return H&&C&&e?{data:b,config:a,colorMap:function(){return"var(--ac-sys-color-chart-on-surface, #000)"},marginTop:d.margins.top,marginLeft:d.margins.left,
canvasWidth:g,canvasHeight:k,bodyTop:l,bodyBottom:r,bodyLeft:w,bodyRight:x,bodyWidth:x-w,bodyHeight:r-l,dataMap:function(J){var O=J.x,R=J.y0,V=J.y1;if(R==null||V==null)throw Error("Jc`"+JSON.stringify(J));return[H(O.valueOf()),C(R),C(V)]},inverseDomainMap:e,brushing:c.brushing||!1}:null};
h.drawInternal=function(a){if(a=this.unpack(a)){this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null);this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);var b=new Path2D;b.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);this.ctx.clip(b);b=[];if(a.data&&a.data.series.length>0&&a.data.series.length<=2){b=a.data;a:{var c=b.series;switch(c.length){case 1:c=m(c).next().value;c=hJa(iJa(c),c);break a;
case 2:var d=m(c);c=d.next().value;d=d.next().value;c=hJa(c,d);break a;default:throw Error("Ic");}}b=Object.assign({},b,{series:[c]}).series}b.length&&J2c(this,b,a.dataMap,a.colorMap,a.config)}};
var J2c=function(a,b,c,d,e){a.ctx.save();$k(a.ctx,I2c,a.base);if(e.showBand){b=m(b);for(var f=b.next(),g={};!f.done;g={color$jscomp$20:void 0},f=b.next())switch(f=f.value,g.color$jscomp$20=d(f),e.pointConnectionMethod){case "always":K2c(f,function(k){return function(l){a.drawLineAlwaysConnect(l,c,k.color$jscomp$20)}}(g),e.outputPeriodMs||Infinity,jJa);break;case "zero_fill":K2c(f,function(k){return function(l){a.drawLineZeroFill(l,c,k.color$jscomp$20,e.outputPeriodMs)}}(g),e.outputPeriodMs||Infinity,
jJa);break;case "never":throw Error("Kc");default:a.drawLineGapDetection(f,c,g.color$jscomp$20,e.outputPeriodMs)}}a.ctx.restore()};XI.prototype.drawLineGapDetection=function(a,b,c,d){var e=this;K2c(a,function(f){e.drawLineAlwaysConnect(f,b,c)},d||Infinity,function(f,g,k){return Ul(f,g,k)||jJa(f,g,k)})};
var K2c=function(a,b,c,d){d=d===void 0?Ul:d;c=c!=null?c:Infinity;c=c===void 0?Infinity:c;d=d===void 0?Ul:d;var e=a.shiftedData;d=kJa(a.data,c,d);c=e&&kJa(e,c);c=c===void 0?[]:c;d=m(d);for(e=d.next();!e.done;e=d.next())b(Object.assign({},a,{data:e.value}));d=m(c);for(c=d.next();!c.done;c=d.next())b(Object.assign({},a,{shiftedData:c.value}))};XI.prototype.drawLineAlwaysConnect=function(a,b,c){this.drawLineZeroFill(a,b,c,Infinity)};
XI.prototype.drawLineZeroFill=function(a,b,c,d,e){e=e===void 0?{}:e;a=a.data;if(a.length){d=d||Infinity;this.ctx.save();this.ctx.beginPath();var f=Zk(c,this.base);typeof f==="string"&&f.length===7?(this.ctx.strokeStyle=f+"60",this.ctx.fillStyle=f+"20"):(this.ctx.strokeStyle=c,this.ctx.fillStyle=c);c=a[0];f=m(cl(b(c),e.lineWidth));c=f.next().value;f.next();f=f.next().value;this.ctx.moveTo(c,f);for(var g=1;g<a.length;g++){var k=a[g-1];c=a[g];var l=m(cl(b(c),e.lineWidth));f=l.next().value;l.next();l=
l.next().value;if(k&&Ul(k,c,d)){k=new Date(k.x.valueOf()+d);for(var r={x:k,y:0,y0:0,y1:0};k<c.x;k.setMilliseconds(k.getMilliseconds()+d)){var w=m(cl(b(r),e.lineWidth)),x=w.next().value;w=w.next().value;this.ctx.lineTo(x,w)}}this.ctx.lineTo(f,l)}for(c=a.length-1;c>=0;c--){k=a[c+1];f=a[c];l=m(cl(b(f),e.lineWidth));g=l.next().value;l=l.next().value;if(k&&Ul(k,f,d))for(k=new Date(k.x.valueOf()-d),r={x:k,y:0,y0:0,y1:0};k>f.x;k.setMilliseconds(k.getMilliseconds()-d))w=m(cl(b(r),e.lineWidth)),x=w.next().value,
w=w.next().value,this.ctx.lineTo(x,w);this.ctx.lineTo(g,l)}this.ctx.stroke();this.ctx.fill();this.ctx.restore()}};XI.prototype.getValuesAtPosition=function(a,b){a=this.unpack(a);if(a==null||!a.data)return null;var c;b=(c=a.inverseDomainMap(b.x-a.marginLeft))==null?void 0:c.valueOf();return Gl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection)};
XI.prototype.getValuesAtTime=function(a,b){a=this.unpack(a);return a!=null&&a.data?Gl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection):null};var YI=function(a,b,c){AG.call(this,a,b,c);this.showBand=!0;this.loading=!1;this.outputPeriodMsInternal=this.alignmentPeriodMs=this.error=null;this.pointConnectionMethod="gap_detection";this.useLegacyGapDetection=!1;this.configSubject=new Mj({outputPeriodMs:this.outputPeriodMs,pointConnectionMethod:this.pointConnectionMethod,showBand:this.showBand,useLegacyGapDetection:this.useLegacyGapDetection});this.dataSubject=new Mj(null);this.xAxisRequirement=this.yAxisRequirement=null;this.isMouseOver=!1;this.updateHoverValuesTriggerSubject=
new uf(1);this.bandView=new XI(a.nativeElement);this.views.push(this.bandView)};Y(YI,AG);YI.\u0275dir=AG.\u0275dir;h=YI.prototype;
h.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);this.setup({configObservable:this.configSubject,dataObservable:this.dataSubject});this.updateHoverValuesTriggerSubject.pipe(Bf(10),zf(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});this.chart.mouseEnterObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});VF(this.chart,"chart",function(b){a.onMouseMove(b);return[]},this.destroyed);this.chart.mouseLeaveObservable.pipe(zf(this.destroyed)).subscribe(function(){a.onMouseLeave()});
this.chart.mouseClickObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onClick(b)})};h.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
h.ngOnChanges=function(a){AG.prototype.ngOnChanges.call(this,a);var b=[];("outputPeriodMs"in a||"pointConnectionMethod"in a||"alignmentPeriodMs"in a||"showBand"in a||"useLegacyGapDetection"in a)&&this.configSubject.next({outputPeriodMs:this.outputPeriodMs,pointConnectionMethod:this.pointConnectionMethod,showBand:this.showBand,useLegacyGapDetection:this.useLegacyGapDetection});"loading"in a&&b.push(EG(this,this.loading,"Band"));"error"in a&&b.push(FG(this,this.error,this.hasData()));UF(this.chart,
b)};
h.onDataChange=function(a,b){var c=a.currentValue,d=b.scope,e=b.state,f=[];if(a.previousValue!==c){if(e){var g=e.xAxis;g&&(this.yAxisRequirement=vAa(c,g.min,g.max))}this.xAxisRequirement=zAa(a.currentValue);f.push(CG(this,this.yAxisRequirement));f.push(DG(this,this.xAxisRequirement));f.push(wH({chartId:d.chartId,layerId:d.layerId,yAxisId:d.yAxisId,xAxisId:d.xAxisId,valueType:1,unit:(c==null?void 0:c.unit)||null,alignmentPeriodMs:this.alignmentPeriodMs||void 0,outputPeriodMs:this.outputPeriodMs||void 0}))}var k,
l;(e==null?0:(k=e.xAxisPin)==null?0:k.xPos)&&(e==null?0:(l=e.xAxisPin)==null?0:l.locked)&&(a=this.bandView.getValuesAtTime(b,e.xAxisPin.xPos),(a=this.updateTimeSeriesValues(a,0))&&f.push(a));f.length&&this.store.dispatch(dk({actions:f}))};h.onXAxisChange=function(a,b){b=b.data;var c=a.currentValue,d=[];Uk(a)&&c&&(this.yAxisRequirement=vAa(b,c.min,c.max),d.push(CG(this,this.yAxisRequirement)));return d};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.bandView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null);if(!a)return;(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};h.onClick=function(a){var b=this,c=BG(this,a);this.withLatest(function(d){d=b.bandView.getValuesAtPosition(d,c);(d=b.updateTimeSeriesValues(d,2))&&b.store.dispatch(d)})};
h.onMouseEnter=function(){this.isMouseOver=!0};h.onMouseMove=function(a){this.isMouseOver&&(a=BG(this,a),this.updateHoverValuesTriggerSubject.next(a))};h.onMouseLeave=function(){this.isMouseOver=!1};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.bandView.getValuesAtPosition(c,a);(c=b.updateTimeSeriesValues(c,1))&&b.store.dispatch(c)})};
h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;a&&(c=uH({chartId:d.chartId,layerId:d.layerId,valueType:1,timeKey:b,values:a.values,timeRange:a.timeRange}))});return c};h.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);UF(this.chart,[CG(this,null),DG(this,null),FG(this,null,!1),EG(this,!1,"Band")])};
da.Object.defineProperties(YI.prototype,{data:{configurable:!0,enumerable:!0,set:function(a){this.dataSubject.next(a)}},outputPeriodMs:{configurable:!0,enumerable:!0,set:function(a){this.outputPeriodMsInternal=a},get:function(){var a;return(a=this.outputPeriodMsInternal)!=null?a:this.alignmentPeriodMs}}});YI.\u0275fac=function(a){return new (a||YI)(Ve(Hd),Ve(TF),Ve(gG))};
YI.\u0275cmp=D({type:YI,selectors:[["ac-band"]],hostAttrs:[1,"composable-layer","ac-band"],inputs:{data:"data",showBand:"showBand",loading:"loading",error:"error",alignmentPeriodMs:"alignmentPeriodMs",outputPeriodMs:"outputPeriodMs",pointConnectionMethod:"pointConnectionMethod",useLegacyGapDetection:"useLegacyGapDetection"},features:[Ef,jx],decls:0,vars:0,template:function(){},styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}\n/*# sourceMappingURL=ac_band.css.map */"],
changeDetection:0});var L2c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:0},M2c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:3},ZI=function(a,b){pG.call(this,a);this.queueService=b;this.drawnRects=[];this.drawnStacks=new Map;this.shapeCanvas=document.createElement("canvas");this.fullDrawDebounceId=null;this.gutterRatioInternal=.35;this.enableManualLatencyTracking=!1;this.forceMinHeight=
0;this.shapeCanvas.setAttribute("aria-hidden","true");this.shapeCanvas.style.position="absolute";b=this.shapeCanvas.getContext("2d");if(!b)throw Error("Ec");this.shapeCtx=b;a.appendChild(this.shapeCanvas)};Y(ZI,pG);h=ZI.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onXAxisChange=function(a,b){Uk(a)&&this.drawInternal(b)};
h.onResizeChange=function(a,b){var c=this;qk(a)&&(rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),qG(this,b,this.canvas,this.ctx),qG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=setTimeout(function(){nG(c,c.canvas);nG(c,c.shapeCanvas);c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){rl(a)&&this.drawInternal(b)};h.onSeriesSelectionChange=function(a,b){pBa(a)&&this.drawInternal(b)};
h.onColorMapChange=function(a,b){this.drawInternal(b)};h.getValuesAtTime=function(a,b){if(!b)return null;var c;a=(c=a.data)==null?void 0:c.series;if(!a)return null;var d=null;c=a.map(function(e){var f=N2c(b,e);if(f&&!d){var g;d={x:f.x.valueOf(),x0:(g=f.x0)==null?void 0:g.valueOf()}}return{value:f,seriesId:e.id}});return d?{values:c,timeRange:d}:null};var N2c=function(a,b){return(b=b.data.find(function(c){return c.x0==null||c.x==null?!1:c.x0.valueOf()<=a&&c.x.valueOf()>a}))?b:null};
ZI.prototype.getValuesAtXPosition=function(a,b){a:{a=this.drawnRects;for(var c=0,d=a.length-1;c<=d;){var e=Math.floor((d+c)/2),f=a[e],g=Math.ceil(this.halfGutterInverseRatio*f.width),k=f.left+f.width+g;if(b>=f.left-g){if(b<k){b=a[e];break a}c=e+1}else d=e-1}b=null}b=b?this.getStackForRect(b):null;if(!b)return null;var l,r,w;return{values:O2c(b),timeRange:{x:(l=b[0])==null?void 0:l.metadata.point.x.valueOf(),x0:(r=b[0])==null?void 0:(w=r.metadata.point.x0)==null?void 0:w.valueOf()}}};
var O2c=function(a){return a.map(function(b){return{seriesId:b.metadata.series.id,value:b.metadata.point}})};h=ZI.prototype;h.getRectAtPosition=function(a){return mJa(this.drawnRects,a)};h.getStackForRect=function(a){return this.drawnStacks.get(a.left)||null};
h.getSeriesIdsBetween=function(a,b,c){c=this.getRectAtPosition(c);if(!c)return null;var d=this.getStackForRect(c);if(!d)return null;c=[];var e=!1;d=m(d);for(var f=d.next();!f.done;f=d.next()){f=f.value.metadata;if(f.series.id===a||f.series.id===b)if(e){c.push(f.series.id);break}else e=!0;e&&c.push(f.series.id)}return c};
h.unpackForClearing=function(a){var b=a.data,c=a.state,d=a.config;if(!c||!d)return null;var e=c.resize;if(!e)return null;a=e.width;var f=e.height,g=e.margins.top,k=e.height-e.margins.bottom,l=e.margins.left;e=e.width-e.margins.right;c=!b||!d.colorStrategy.isReady||d.colorStrategy.isReady(b,c);return{data:b,canvasWidth:a,canvasHeight:f,bodyLeft:l,bodyTop:g,bodyBottom:k,bodyRight:e,bodyWidth:e-l,bodyHeight:k-g,bounds:{top:g,right:e,bottom:k,left:l},isColorMapReady:c}};
h.unpackForDrawing=function(a){var b=this.unpackForClearing(a),c=a.scope,d=a.data,e=a.state,f=a.config;if(!e||!f||!b)return null;a=e.xAxis;var g=e.yAxis,k=e.brush,l=e.seriesSelection,r=b.bodyLeft,w=b.bodyRight;if(!(a&&g&&k&&l))return null;var x=sl(g,b.bodyTop,b.bodyBottom,d?d.unit:null);g=Xk(a,r,w,d==null?void 0:d.xAxisUnit);r=Yk(a,r,w,d==null?void 0:d.xAxisUnit);if(a.min===null||a.max===null||!g||!x||!r)return null;c=l.byLayer.entities[c.layerId];x=this.createPointToRectMap(g,x);var C=f.colorStrategy;
d=C.getShape&&(d==null?0:d.series.length)&&d.series.length>1?function(O){return C.getShape(O,e)}:null;l=Object.values(l.byLayer.entities).filter(function(O){return!!O}).some(function(O){return O.selectedSeries.length||O.hoveredSeries.length});var H,J;return Object.assign({},b,{colorMap:function(O){return Hl(f.colorStrategy.getColor(O,e))},shapeMap:d,shapeBoundingBox:f.colorStrategy.shapeBoundingBox,hideSymbolShapes:f.hideSymbolShapes,pointToRectMap:x,brushing:k.brushing||!1,hoveredSeries:(c==null?
void 0:c.hoveredSeries)||[],selectedSeries:(c==null?void 0:c.selectedSeries)||[],anySeriesSelectedOrHovered:l,inverseDomainMap:r,domainMap:g,xAxisMin:(H=a==null?void 0:a.min)!=null?H:null,xAxisMax:(J=a==null?void 0:a.max)!=null?J:null,gutterRatio:f.gutterRatio,verticalBarPadding:f.verticalBarPadding})};
h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";bl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.drawnRects=[];this.drawnStacks.clear();var b=new Path2D;b.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);this.ctx.clip(b);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),a=this.unpackForDrawing(a))){this.gutterRatio=a.gutterRatio!==void 0?a.gutterRatio:.35;var c=!a.brushing&&a.anySeriesSelectedOrHovered,d=Object.assign({},L2c,{globalAlpha:c?.15:1});this.shapeCtx.globalAlpha=c?.15:1;var e;c=(e=a.data)==null?void 0:e.series;if(c==null?0:c.length){if(e=a.shapeMap){for(var f=new Set,g=m(c),k=g.next();!k.done;k=
g.next())f.add(e(k.value));c.length>f.size&&(e=null)}this.drawBars(c,a.pointToRectMap,a.colorMap,e,a.shapeBoundingBox,a.bounds,d,void 0,a.verticalBarPadding,a.hideSymbolShapes)}d=Array.from(this.drawnStacks.keys()).sort(function(l,r){return l-r});d=m(d);for(c=d.next();!c.done;c=d.next())c=c.value,e=this.drawnStacks.get(c)||[],e.sort(function(l,r){return l.top-r.top}),this.drawnStacks.set(c,e),this.drawnRects=this.drawnRects.concat(e);a.xAxisMin!==null&&a.xAxisMax!==null&&mG(this,a.xAxisMin,a.xAxisMax);
a=performance.now();this.enableManualLatencyTracking&&lG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}};
h.drawBars=function(a,b,c,d,e,f,g,k,l,r){this.ctx.save();$k(this.ctx,g,this.base);$k(this.shapeCtx,M2c,this.base);g=a.map(function(ua){return[ua.id,ua.data.map(function(ia,Ga){return b(ia,ua,Ga)})]});oJa(nJa(g),l);a=k?a.filter(function(ua){return k.has(ua.id)}):a;a=m(a);l=a.next();for(var w={};!l.done;w={series$jscomp$67:void 0,rects:void 0},l=a.next()){w.series$jscomp$67=l.value;l=c(w.series$jscomp$67);this.ctx.fillStyle=Zk(l,this.base);this.shapeCtx.fillStyle=Zk(l,this.base);l=d&&d(w.series$jscomp$67);
w.rects=[];var x=g.findIndex(function(ua){return function(ia){return m(ia).next().value===ua.series$jscomp$67.id}}(w));x>-1&&(w.rects=g[x][1],g.splice(x,1));if(k){x=k.get(w.series$jscomp$67.id);var C=void 0,H=void 0;if((C=x)==null?0:(H=C.datumIndices)==null?0:H.length)w.rects=x.datumIndices.map(function(ua){return function(ia){return ua.rects[ia.index]}}(w))}C=void 0;x=!((C=k)==null||!C.get(w.series$jscomp$67.id));H=C=null;w=m(w.rects);for(var J=w.next();!J.done;J=w.next()){J=J.value;this.ctx.fillRect(J.left,
J.top,J.width,J.height);if(l){var O=lJa(J,e),R=O.x,V=O.y,ca=O.shapeWidth,na=O.shapeHeight;O=O.scalingFactor;C===null&&(C=ca<=10);C||r||!(x||na<J.height)||this.drawShapeWithinBounds(R,V,f,l,O)}R=J.left+J.width;R<=f.right&&(H===null||H.left+H.width<R)&&(H=J);this.drawnStacks.set(J.left,(this.drawnStacks.get(J.left)||[]).concat([J]))}l&&C&&H&&!r&&this.drawShape(H.left+H.width+8,H.top+H.height/2,l,e?16.8/e.width:1)}this.ctx.restore()};
h.createPointToRectMap=function(a,b){var c=this;return function(d,e,f){var g=d.y1||d.y,k=d.y0||0;if(g<k){var l=m([g,k]);k=l.next().value;g=l.next().value}l=Math.round(b(g));var r=Math.round(b(k))-l;r<c.forceMinHeight&&g!==k&&(l-=c.forceMinHeight-r,r=c.forceMinHeight);var w;k=a(((w=d.x0)!=null?w:d.x).valueOf());w=a(d.x.valueOf());g=w-k;k=Math.round(k+g*c.halfGutterRatio);return{top:l,left:k,height:r,width:Math.max(Math.round(w-g*c.halfGutterRatio)-k,1),metadata:{point:d,series:e,index:f}}}};
h.drawShape=function(a,b,c,d){this.shapeCtx.moveTo(a,b);a=jBa(a,b,c,d);this.shapeCtx.save();this.shapeCtx.globalAlpha=1;this.shapeCtx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.lineWidth=d!==void 0?d>=.6?3:d>=.4?2:1:3;this.shapeCtx.stroke(a);this.shapeCtx.fill(a);this.shapeCtx.restore();this.shapeCtx.fill(a)};
h.drawShapeWithinBounds=function(a,b,c,d,e){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e)};h.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};
da.Object.defineProperties(ZI.prototype,{gutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal},set:function(a){this.gutterRatioInternal=a}},halfGutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal/2}},halfGutterInverseRatio:{configurable:!0,enumerable:!0,get:function(){return 1/(1-this.halfGutterRatio)-1}}});var P2c=function(){ZI.apply(this,arguments)};Y(P2c,ZI);P2c.prototype.onSeriesSelectionChange=function(a,b){this.drawInternal(b)};
P2c.prototype.drawInternal=function(a){if(this.clearInternal(a)&&(a=this.unpackForDrawing(a))){this.gutterRatio=a.gutterRatio!==void 0?a.gutterRatio:.35;var b=[];if(!a.brushing&&a.hoveredSeries.length){var c=[].concat(q(new Set(a.hoveredSeries.flatMap(function(f){return f.datumIndices||[]}).map(function(f){return f.index}))));b=a.selectedSeries.map(function(f){return Object.assign({},f,{datumIndices:c.map(function(g){return{index:g}})})}).concat(a.hoveredSeries)}else b=a.selectedSeries;b=b.reduce(function(f,
g){return f.set(g.seriesId,g)},new Map);var d,e=(d=a.data)==null?void 0:d.series;(e==null?0:e.length)&&this.drawBars(e,a.pointToRectMap,a.colorMap,a.shapeMap,a.shapeBoundingBox,a.bounds,L2c,b,a.verticalBarPadding);a.xAxisMin!==null&&a.xAxisMax!==null&&mG(this,a.xAxisMin,a.xAxisMax)}};var Q2c={clickSelect:!0,hoverHighlight:!0},$I=function(a,b,c,d,e,f,g,k){AG.call(this,a,b,c);this.modalService=d;this.interactionService=e;this.instrumentationService=f;this.ngZone=k;this.data=null;this.loading=!1;this.error=null;this.outputPeriodMsInternal=void 0;this.layerName="";this.colorStrategyInternal=new BH;this.enableManualLatencyTracking=this.refactorA11yNavInstructions=this.hideSymbolShapes=!1;this.forceMinHeight=0;this.isBucketedData=!1;this.onSelect=new Ti;this.dataSubject=new Mj(this.data);
this.configSubject=new Mj({colorStrategy:this.colorStrategy,hideSymbolShapes:this.hideSymbolShapes,gutterRatio:this.gutterRatio,isBucketedData:this.isBucketedData});this.updateGridTriggerSubject=new qf;this.gridGeneratorSubject=new Mj(null);this.defaultColumnMaskGeneratorSubject=new Mj(function(){return[]});this.xAxisRequirement=this.derivedMinMaxBand=this.yAxisRequirement=null;this.interactionsInternal=Q2c;this.isShiftKeyDown=this.isMetaKeyDown=this.isCtrlKeyDown=!1;this.shiftSelectingFromSeriesId=
null;this.isMouseOver=!1;this.updateHoverValuesTriggerSubject=new uf(1);this.syncActionsBuffer=this.dataTypeError=null;this.colorRecalculationAttemptsRemaining=2;this.gridGeneratorObservable=this.gridGeneratorSubject.pipe(mf(0),xk(this.ngZone));this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(mf(0),xk(this.ngZone));this.layerType="graphic";this.barView=new ZI(a.nativeElement,g);this.views.push(this.barView);this.views.push(new P2c(a.nativeElement));this.bindDrawInstrumentation()};
Y($I,AG);$I.\u0275dir=AG.\u0275dir;
$I.prototype.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject.pipe(A(function(b){return b?rJa(b,!1):null}),ula(),Dha()),configObservable:this.configSubject});this.barView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);this.barView.forceMinHeight=Math.max(0,this.forceMinHeight);this.updateGridTriggerSubject.pipe(jf(500),zf(this.destroyed)).subscribe(function(b){var c=void 0;a.gridGeneratorSubject.next(function(){c===void 0&&
(c=a.generateGrid(b));return c})});this.updateHoverValuesTriggerSubject.pipe(Bf(10),zf(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});this.chart.mouseEnterObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});VF(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);this.chart.mouseLeaveObservable.pipe(zf(this.destroyed)).subscribe(function(){a.onMouseLeave()});this.chart.mouseClickObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onClick(b)});
this.chart.keyDownObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onKeyDown(b)});this.chart.keyUpObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onKeyUp(b)})};
$I.prototype.onDataChange=function(a,b){var c=this,d=a.previousValue,e=a.currentValue,f=b.scope,g=b.state,k=[];this.derivedMinMaxBand=yAa(e);if(d!==e){if(g==null?0:g.xAxis)d=Ok(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,g.xAxis.min,g.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,g.xAxis.unit||null),Pk(this.yAxisRequirement,d)&&(this.yAxisRequirement=d,k.push(CG(this,this.yAxisRequirement)));this.xAxisRequirement=this.isBucketedData?R2c(this,e):zAa(a.currentValue);k.push(CG(this,this.yAxisRequirement));
k.push(DG(this,this.xAxisRequirement));k.push(wH({chartId:f.chartId,layerId:f.layerId,yAxisId:f.yAxisId,xAxisId:f.xAxisId,valueType:1,unit:(e==null?void 0:e.unit)||null,legendTemplate:this.legendTemplate,alignmentPeriodMs:this.alignmentPeriodMs||void 0,outputPeriodMs:this.outputPeriodMs||void 0}));k.push(vH({chartId:f.chartId,layerId:f.layerId,series:(e==null?void 0:e.series.map(function(H,J){var O;return{seriesId:H.id,name:(O=H.name)!=null?O:H.id,drawnAs:2,stackingIndex:e.series.length-1-J,dataSeriesMetadata:H.metadata,
statsModeSummaryValue:H.statsModeSummaryValue,legendTemplate:H.legendTemplate}}))||[]}));if(g&&e){if(a=GG(this.colorStrategy,f,e,g))this.store.dispatch(a),this.colorRecalculationAttemptsRemaining=2;this.withLatest(function(H){(H=H.state)&&k.push(c.createSetSeriesColorMetadataAction(f,e,H))});(a=this.updateMostRecentValues(b))&&k.push(a)}var l;if(a=g==null?void 0:(l=g.seriesSelection)==null?void 0:l.byLayer.entities[f.layerId]){l=a.selectedSeries;a=a.hoveredSeries;var r,w=new Set((r=e==null?void 0:
e.series.map(function(H){return H.id}))!=null?r:[]);r=l.filter(function(H){return w.has(H.seriesId)});r.length!==l.length&&k.push($G({chartId:f.chartId,layerId:f.layerId,series:r}));r=a.filter(function(H){return w.has(H.seriesId)});r.length!==a.length&&k.push(bH({chartId:f.chartId,layerId:f.layerId,series:r}))}this.updateGridTriggerSubject.next(b)}var x,C;(g==null?0:(x=g.xAxisPin)==null?0:x.xPos)&&(g==null?0:(C=g.xAxisPin)==null?0:C.locked)&&(b=this.barView.getValuesAtTime(b,g.xAxisPin.xPos),(b=this.updateTimeSeriesValues(b,
0))&&k.push(b));return k};var R2c=function(a,b){if((b==null?0:b.series)&&b.series.length>0){var c=b.series[0];if(c.data.length>0){var d=c.data[0],e=c.data[c.data.length-1],f,g=((f=d.x0)!=null?f:d.x).valueOf();f=e.x.valueOf();c=c.data.length>1?(e.x.valueOf()-d.x.valueOf())/(c.data.length-1):void 0;var k;b=(k=b.unit)!=null?k:null;return{id:a.layerId,priority:1,min:g,max:f,unit:b,bucketWidth:c}}}return null};h=$I.prototype;
h.bindDrawInstrumentation=function(){var a=this;kG(this.barView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;var e=!a.loading;a.scopeObservable.pipe(lf(1)).subscribe(function(f){var g=f.chartId;f=f.layerId;RG(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});RG(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})})};h.onResizeChange=function(a,b){qk(a)&&this.updateGridTriggerSubject.next(b)};
h.onYAxisChange=function(a,b){rl(a)&&this.updateGridTriggerSubject.next(b)};
h.onXAxisChange=function(a,b){var c=this,d=[];if(Uk(a)){var e=b.data,f=b.state;if(f==null?0:f.xAxis)e=Ok(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,f.xAxis.min,f.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,f.xAxis.unit||null),Pk(this.yAxisRequirement,e)&&(this.yAxisRequirement=e,d.push(CG(this,this.yAxisRequirement)));(e=this.updateMostRecentValues(b))&&d.push(e)}(Uk(a)||Vk(a)||Wk(a))&&this.updateGridTriggerSubject.next(b);if(bBa(a)){var g=void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var k=
null;g===void 0&&(c.gridGeneratorSubject.pipe(lf(1)).subscribe(function(l){k=l&&l()}),g=c.generateDefaultColumnMask(b,k));return g})}return d};h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.barView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null);(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};
h.onColorMapChange=function(a,b){var c=this,d=b.scope,e=b.data;a=b.state;var f=[];e&&a&&(this.colorRecalculationAttemptsRemaining>0&&(a=GG(this.colorStrategy,d,e,a))&&(this.store.dispatch(a),this.colorRecalculationAttemptsRemaining--),this.withLatest(function(g){(g=g.state)&&f.push(c.createSetSeriesColorMetadataAction(d,e,g))}));return f};h.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
h.ngOnChanges=function(a){AG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||SEa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(FG(this,this.error,this.hasData()))):(this.dataSubject.next(null),this.dataTypeError={name:"InvalidRequestError",code:400,displayMessage:"Only numeric data can be drawn as a bar chart. The data provided cannot be drawn.",message:"Only numeric data can be drawn as a bar chart. The data provided cannot be drawn.",
details:{isTimeout:!1}},b.push(FG(this,this.dataTypeError,!1))));"isBucketedData"in a&&(this.xAxisRequirement=this.isBucketedData?R2c(this,this.data):zAa(this.data),b.push(DG(this,this.xAxisRequirement)));("outputPeriodMs"in a||"colorStrategy"in a||"alignmentPeriodMs"in a||"gutterRatio"in a||"verticalBarPadding"in a||"hideSymbolShapes"in a||"isBucketedData"in a)&&this.configSubject.next({outputPeriodMs:this.outputPeriodMs,colorStrategy:this.colorStrategy,gutterRatio:this.gutterRatio,verticalBarPadding:this.verticalBarPadding,
hideSymbolShapes:this.hideSymbolShapes,isBucketedData:this.isBucketedData});"loading"in a&&b.push(EG(this,this.loading,"Bar"));"forceMinHeight"in a&&(this.barView.forceMinHeight=Math.max(0,this.forceMinHeight));"error"in a&&b.push(FG(this,this.error,this.hasData()));UF(this.chart,b)};
h.onFocusedCellChange=function(a){var b=this,c=m(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;var k=f.config;b.gridGeneratorSubject.pipe(lf(1)).subscribe(function(l){if(l=l&&l()){var r=d!==null?l.rows[d]:null,w=e!==null?l.columns[e]:null;if(a.focusedCell){b.store.dispatch($G({chartId:g.chartId,layerId:g.layerId,series:r?[{seriesId:r.metadata.seriesId}]:[]}));var x;r=(x=w==null?void 0:w.metadata.timeMs)!=null?x:null;r!==null&&(k==null?0:k.outputPeriodMs)&&
(r-=((k==null?void 0:k.outputPeriodMs)||0)/2);var C;b.store.dispatch(JG({chartGroupId:g.chartGroupId,position:(C=r)!=null?C:null}));b.store.dispatch(KG({chartGroupId:g.chartGroupId,locked:!!w}))}b.store.dispatch(bH({chartId:g.chartId,layerId:g.layerId,series:[]}));d!==null&&e!==null&&(x=l.values[d][e],b.store.dispatch(HG({chartId:g.chartId,lastInteraction:{focus:x.position.x}})),b.store.dispatch(IG({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:x.position.y}})))}})})};
h.onGridCellActivate=function(a){this.modalService.focus(0,a)};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.barView.getValuesAtXPosition(c,a.x);(c=b.updateTimeSeriesValues(c,1))&&(b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c))})};
h.updateMostRecentValues=function(a){var b=a.data,c=a.config,d,e,f=(d=a.state)==null?void 0:(e=d.xAxis)==null?void 0:e.max;if(!f||!c)return null;b=b==null?void 0:b.series.reduce(function(g,k){k=k.data;var l,r=zl(k,f,Al((l=c.outputPeriodMs)!=null?l:null));return(l=k[r])&&(g===null||Math.abs(f-l.x.valueOf())<Math.abs(f-g.x.valueOf()))?l:g},null);return(a=this.barView.getValuesAtTime(a,b&&b.x0!==void 0?(b.x.valueOf()+b.x0.valueOf())/2:f))?this.updateTimeSeriesValues(a,3):null};
h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;var e,f;c=uH({chartId:d.chartId,layerId:d.layerId,valueType:1,timeKey:b,values:(e=a==null?void 0:a.values)!=null?e:[],timeRange:(f=a==null?void 0:a.timeRange)!=null?f:void 0})});return c};h.onMouseEnter=function(){this.isMouseOver=!0};
h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=BG(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlight(a);this.updateHoverValuesTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};h.onMouseLeave=function(){this.isMouseOver=!1;this.interactions.hoverHighlight&&this.hoverHighlight(null)};
h.onClick=function(a){var b=this,c=BG(this,a),d=!1;this.withLatest(function(e){var f=e.state,g=e.data;if(f&&g){var k=f.seriesSelection,l=f.brush;f=f.resize;if(k&&l&&!l.brushing&&f&&REa(c,f)){k=k.byLayer.entities[e.scope.layerId];var r=b.barView.getRectAtPosition(c);k=k?k.selectedSeries.map(function(w){return w.seriesId}):[];if(r==null?0:r.metadata.series.id)g=g.series.find(function(w){return w.id===r.metadata.series.id}),b.onSelect.emit(g);b.interactions.clickSelect&&(g=[],l=xl.ve.LineDeselectToggle,
r&&(l=xl.ve.LineSelectToggle,k.length===1&&k.includes(r.metadata.series.id)?(g=[],l=xl.ve.LineDeselectToggle):b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&k.length>0?(g=b.barView.getSeriesIdsBetween(b.shiftSelectingFromSeriesId,r.metadata.series.id,c)||[r.metadata.series.id],l=xl.ve.LineMultiSelectToggle):b.isPrimaryModifierKeyDown?(g=k.includes(r.metadata.series.id)?k.filter(function(w){return w!==r.metadata.series.id}):k.concat([r.metadata.series.id]),l=xl.ve.LineSpecificSelectToggle):(g=[r.metadata.series.id],
l=xl.ve.LineSelectToggle)),b.shiftSelectingFromSeriesId=(r==null?void 0:r.metadata.series.id)||null,k.length===0&&g.length===1&&(d=!0),b.store.dispatch($G({chartId:e.scope.chartId,layerId:e.scope.layerId,series:g.map(function(w){return{seriesId:w}})})),wl(b.interactionService,"click",l,b.el.nativeElement),b.onMouseMove(a))}}});this.withLatest(function(e){e=b.barView.getValuesAtXPosition(e,c.x);var f=b.updateTimeSeriesValues(e,2);f&&b.store.dispatch(f);d&&(e=b.updateTimeSeriesValues(e,4))&&b.store.dispatch(e)})};
h.onKeyDown=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};h.onKeyUp=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};
h.generateGrid=function(a){var b=a.data;var c=a.state;a=a.config;if(!b||!c)return null;var d=c.xAxis,e=c.resize;c=c.yAxis;if(!d||!e||!c)return null;var f=Xk(d,e.margins.left,e.width-e.margins.right,b.xAxisUnit),g=b.unit,k=c.unit,l=sl(c,e.margins.top,e.height-e.margins.bottom,g),r=d.tickIncrement||null,w=d.timezoneOffset,x=d.timeZoneId;if(!f||!l)return null;e={top:e.margins.top,right:e.width-e.margins.right,bottom:e.height-e.margins.bottom,left:e.margins.left};var C,H,J,O;return fEa({data:b,xAxisState:d,
yAxisState:c,rowFormatter:cEa(b.series,this.legendTemplate),columnFormatter:function(R){return{label:nl({position:R,tickIncrement:r,timeZone:Gk(w,x)}),value:R}},valueFormatter:aEa(g,k),positionMap:eEa(f,l,e,{outputPeriodMs:(a==null?void 0:a.outputPeriodMs)||void 0,centerInOutputPeriod:!0,widthMultiplier:1-this.barView.gutterRatio}),audioChartContext:d.min!==null&&d.max!==null&&c.min!==null&&c.max!==null?{xAxis:{ticks:d.ticks.map(function(R){return R.value}),min:(C=d.min)!=null?C:void 0,max:(H=d.max)!=
null?H:void 0},yAxis:{min:(J=c.min)!=null?J:void 0,max:(O=c.max)!=null?O:void 0}}:void 0})};h.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?YDa({ticks:a.ticks,grid:b}):[]:[]};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope;if(c=c.state){var e=c.brush,f=c.seriesSelection;if(e&&f&&!e.panning){e=a&&b.barView.getRectAtPosition(a);var g,k;c=(c==null?void 0:(g=c.seriesSelection)==null?void 0:(k=g.byLayer.entities[d.layerId])==null?void 0:k.hoveredSeries)||[];g=e?[{seriesId:e.metadata.series.id,datumIndices:[{index:e.metadata.index}]}]:[];hl(c,g)&&(d=bH({chartId:d.chartId,layerId:d.layerId,series:g}),b.syncActionsBuffer?b.syncActionsBuffer.push(d):
b.store.dispatch(d))}}})};h.createSetSeriesColorMetadataAction=function(a,b,c){var d=this;return vH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:2,color:Hl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c),legendTemplate:e.legendTemplate}})})};h.getLayerTitle=function(){return this.layerName?"Bar "+this.layerName:"Bar"};
h.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);UF(this.chart,[CG(this,null),DG(this,null),FG(this,null,!1),EG(this,!1,"Bar")])};
da.Object.defineProperties($I.prototype,{outputPeriodMs:{configurable:!0,enumerable:!0,set:function(a){this.outputPeriodMsInternal=a},get:function(){var a;return(a=this.outputPeriodMsInternal)!=null?a:this.alignmentPeriodMs}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||this.colorStrategyInternal},get:function(){return this.colorStrategyInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},Q2c,
a)},get:function(){return this.interactionsInternal}},isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return ol?this.isMetaKeyDown:this.isCtrlKeyDown}}});$I.\u0275fac=function(a){return new (a||$I)(Ve(Hd),Ve(TF),Ve(gG),Ve(rH),Ve(xl),Ve(QG),Ve(UG),Ve(Rg))};
$I.\u0275cmp=D({type:$I,selectors:[["ac-bar"]],hostAttrs:[1,"composable-layer","ac-bar"],inputs:{data:"data",loading:"loading",error:"error",alignmentPeriodMs:"alignmentPeriodMs",outputPeriodMs:"outputPeriodMs",layerName:"layerName",colorStrategy:"colorStrategy",interactions:"interactions",legendTemplate:"legendTemplate",gutterRatio:"gutterRatio",verticalBarPadding:"verticalBarPadding",hideSymbolShapes:"hideSymbolShapes",refactorA11yNavInstructions:"refactorA11yNavInstructions",enableManualLatencyTracking:"enableManualLatencyTracking",
forceMinHeight:"forceMinHeight",isBucketedData:"isBucketedData"},outputs:{onSelect:"onSelect"},features:[Ef,jx],decls:3,vars:9,consts:[[3,"onFocusedCellChange","onGridCellActivate","onFocus","onBlur","gridGenerator","columnMaskGenerator","chartTitle","layerTitle","refactorA11yNavInstructions"]],template:function(a,b){a&1&&(K(0,"ac-accessibility-grid",0),T(1,"async"),T(2,"async"),N("onFocusedCellChange",function(c){return b.onFocusedCellChange(c)})("onGridCellActivate",function(c){return b.onGridCellActivate(c)})("onFocus",
function(c){return b.onFocus(c)})("onBlur",function(c){return b.onBlur(c)}),L());a&2&&I("gridGenerator",U(1,5,b.gridGeneratorObservable))("columnMaskGenerator",U(2,7,b.defaultColumnMaskGeneratorObservable))("chartTitle",b.chart.title)("layerTitle",b.getLayerTitle())("refactorA11yNavInstructions",b.refactorA11yNavInstructions)},dependencies:[yH,Tx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_bar.css.map */"],
changeDetection:0});var S2c=kk(lk,function(a,b,c){if(b&&a&&a.categories&&c)return c==="vertical"?(b.bodyRight-b.bodyLeft)/a.categories.length:(b.bodyBottom-b.bodyTop)/a.categories.length},PVc,JF,wG),T2c=kk(lk,function(a,b,c,d,e){if(a&&a.categories&&b&&c&&d!==void 0&&e!==void 0)return a.categories.map(function(f,g){return{label:f,value:(c==="vertical"?d:e)+(.5+g)*b}})},PVc,S2c,wG,LSc,KSc),U2c=kk(mk,function(a,b,c,d,e){if(a&&a.bodyWidth>0&&a.chartHeight>0&&c!==void 0)return{bodyTop:a.bodyTop,bodyLeft:a.bodyLeft,bodyRight:a.bodyRight,
bodyBottom:a.bodyBottom,chartWidth:a.chartWidth,chartHeight:a.chartHeight,axisTopEdge:c,ticks:b!=null?b:[],yAxisOrientation:e!=null?e:"vertical",gutterRatio:d!=null?d:0}},JF,T2c,kk(cza,function(a,b){if(a!==void 0)return Math.max(a+((b==null?void 0:b.bottom)||0),0)},NSc,SSc),OVc,wG);var V2c=function(){oG.apply(this,arguments);this.lastDrawnState=null};Y(V2c,oG);
V2c.prototype.drawInternal=function(a){var b=a.currentValue;if(b&&(a=b.state,b=b.config,a&&b)){var c=a.bodyLeft,d=a.bodyRight,e=a.bodyBottom,f=a.bodyTop,g=a.chartHeight,k=a.chartWidth,l=a.ticks,r=a.axisTopEdge;if(a.yAxisOrientation==="vertical"){this.canvas.style.left="0px";this.canvas.style.top=r+"px";var w=W2c(this,l,k);e=!b.hideLabels&&w.some(function(x){return x.drawOnSecondRow});bl(this.canvas,this.base,e?33:20,k);b.hideLabels?X2c(this,c,d,l):(Y2c(this,w),X2c(this,c,d,w))}else this.canvas.style.left=
"0px",this.canvas.style.top="0px",bl(this.canvas,this.base,g,k),c=(w=b.actualWidth)!=null?w:50,b.hideLabels||Z2c(this,l,g,c),$2c(this,e,f,c,l);this.lastDrawnState=a}};
var $2c=function(a,b,c,d,e){var f=F_c;f=f===void 0?{}:f;a.ctx.save();$k(a.ctx,f,a.base);a.ctx.save();a.ctx.beginPath();a.ctx.moveTo.apply(a.ctx,q(cl([d,b],f.lineWidth)));a.ctx.lineTo.apply(a.ctx,q(cl([d,c],f.lineWidth)));a.ctx.stroke();a.ctx.restore();a.ctx.beginPath();b=m(e.length?e:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value.value,a.ctx.moveTo.apply(a.ctx,q(cl([d-5,c],f.lineWidth))),a.ctx.lineTo.apply(a.ctx,q(cl([d,c],f.lineWidth)));a.ctx.stroke();a.ctx.restore()},
X2c=function(a,b,c,d){var e=NG;e=e===void 0?{}:e;a.ctx.save();$k(a.ctx,e,a.base);a.ctx.save();a.ctx.beginPath();a.ctx.moveTo.apply(a.ctx,q(cl([b,0],e.lineWidth)));a.ctx.lineTo.apply(a.ctx,q(cl([c,0],e.lineWidth)));a.ctx.stroke();a.ctx.restore();a.ctx.beginPath();b=m(d.length?d:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value,d=c.drawOnSecondRow?18:5,a.ctx.moveTo.apply(a.ctx,q(cl([c.value,0],e.lineWidth))),a.ctx.lineTo.apply(a.ctx,q(cl([c.value,d],e.lineWidth)));
a.ctx.stroke();a.ctx.restore()},Z2c=function(a,b,c,d){var e=F_c;e=e===void 0?{}:e;var f=[];a.ctx.save();$k(a.ctx,e,a.base);d=d-5-8;e=0;b=m(b);for(var g=b.next();!g.done;g=b.next()){var k=g=g.value,l=k.label;k=k.value;var r=a.ctx.measureText(l);r.width>d&&(l=a3c(a,l,r.width,d));var w=r.actualBoundingBoxAscent-r.actualBoundingBoxDescent;r=k-w/2;w=k+w/2;r<0||r<e+6||w>c||(dl(a.ctx,l,d,k),e=w,f.push(g))}a.ctx.restore()},a3c=function(a,b,c,d){if(c<=d)return b;c=Math.floor(b.length/2);if(c<=1)return b;for(;c>
0;c--){var e=b.slice(0,c)+"..."+b.slice(-c);if(a.ctx.measureText(e).width<d)return e}return b.charAt(0)+"..."},Y2c=function(a,b){var c=NG;c=c===void 0?{}:c;a.ctx.save();$k(a.ctx,c,a.base);b=m(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d=c.labelCenterValue,e=c.truncatedLabel;c.drawOnSecondRow?dl(a.ctx,e,d,21):dl(a.ctx,e,d,8)}a.ctx.restore()},W2c=function(a,b,c){for(var d=[],e=0;e<b.length;e++){var f=b[e-1],g=b[e+1],k=b[e],l=k.label;k=k.value;var r=a.ctx.measureText(l).width,w=Math.min(f?Math.abs(k-
f.value)/2:k,g?Math.abs(g.value-k)/2:c-k)*2-6,x=void 0,C=k;if(r>w){var H=void 0;x=void 0;var J=(x=(H=f)==null?void 0:H.value)!=null?x:0,O=x=void 0;H=(O=(x=g)==null?void 0:x.value)!=null?O:c;f=f?Math.abs(k-f.value):k;x=g?Math.abs(g.value-k):c-k;g=Math.min(f,x)*2-6;x=a3c(a,l,r,f+x-6);r>g&&(C=(J+H)/2)}J=void 0;d.push({label:l,value:k,labelCenterValue:C,widerThanCollisionSafeWidth:r>w,truncatedLabel:(J=x)!=null?J:l,drawOnSecondRow:!1})}for(a=0;a<d.length;a++)b=d[a-1],c=d[a+1],l=e=void 0,d[a].drawOnSecondRow=
!(a%2===0||!(((e=b)==null?0:e.widerThanCollisionSafeWidth)||((l=c)==null?0:l.widerThanCollisionSafeWidth)));return d},b3c=function(a,b,c){return W2c(a,b,c).some(function(d){return d.drawOnSecondRow})};V2c.prototype.withinBody=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyTop,e=c.bodyRight,f=c.bodyBottom;return a>=c.bodyLeft&&a<=e&&b>=d&&b<=f};
V2c.prototype.getCategory=function(a){if(!this.lastDrawnState)return null;var b=this.lastDrawnState.ticks;if(b.length===0)return null;if(b.length===1)return b[0].label;for(var c=(b[1].value-b[0].value)/2,d=0,e=b.length-1;d<=e;){var f=Math.floor((d+e)/2),g=Math.abs(b[f].value-a);if(g<c){if(g<c*(1-this.lastDrawnState.gutterRatio))return b[f].label;break}else b[f].value>a?e=f-1:d=f+1}return null};var aJ=function(a,b,c){AG.call(this,a,b,c,!0);this.tickStrategy=LAa;this.hideTickLabels=!1;this.dataSubject=new Mj(null);this.configSubject=new Mj({});this.rulerCanvas=document.createElement("canvas");this.rulerCanvasCtx=this.rulerCanvas.getContext("2d");this.yAxisOrientationSubject=new Mj("vertical");this.maxVerticalAxisWidth=50;this.initialized=!1;this.layerType="axis";this.axisView=new V2c(a.nativeElement);this.redrawableViews=[this.axisView]};Y(aJ,AG);aJ.\u0275dir=AG.\u0275dir;
aJ.prototype.onCategoricalAxisChange=function(){var a=this,b=[];this.withLatest(function(c){var d=c.scope;c=c.state;var e;if(c==null?0:(e=c.categoricalAxis)==null?0:e.categories){var f;e=(c==null?void 0:(f=c.categoricalAxis)==null?void 0:f.categories.reduce(function(g,k){return Math.max(g,a.rulerCanvasCtx.measureText(k).width)},0))+10+8;a.lastVerticalAxisDynamicWidth!==e&&(a.lastVerticalAxisDynamicWidth=e,b.push(a.createMarginRequirementAction(d,a.yAxisOrientation,e,a.lastUseDoubleHeightCheck)))}});
return b};
aJ.prototype.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);this.initialized=!0;var b=[];this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});VF(this.chart,"chart",function(e){return a.onMouseMove(e)},this.destroyed);this.gutterRatio!==void 0&&this.withLatest(function(e){e=e.scope;e=LVc({chartGroupId:e.chartGroupId,chartId:e.chartId,xAxisId:a.xAxisId,gutterRatio:a.gutterRatio});b.push(e)});this.selectorFactoryToObservable(wG).pipe(xf("vertical"),zf(this.destroyed)).subscribe(function(e){e&&
a.yAxisOrientationSubject.next(e)});this.withLatest(function(e){b.push(a.createMarginRequirementAction(e.scope,a.yAxisOrientation,a.lastVerticalAxisDynamicWidth,a.lastUseDoubleHeightCheck))});var c;TUc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},(c=this.tickStrategy)!=null?c:LAa,this.tickOptions);c=this.selectorFactoryToObservable(U2c);ie([c,this.configObservable]).pipe(A(function(e){var f=m(e);e=f.next().value;return{data:null,config:f.next().value.currentValue,
state:e!=null?e:null}}),xf(null),tf(),A(gk),Cf(this.scopeObservable),zf(this.destroyed)).subscribe(function(e){var f=m(e);e=f.next().value;f=f.next().value;a.chart.scheduleChangeHandler({mergeKey:(f.layerId||a.layerId)+"-drawFromSelection",changes:e,viewHandler:function(g){a.axisView.draw(g)},scope:f||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});this.scopeObservable.pipe(xf(null),tf(),A(gk),zf(this.destroyed)).subscribe(function(e){var f=
e.previousValue;(e=e.currentValue)&&(f==null?void 0:f.layerId)!==(e==null?void 0:e.layerId)&&UF(a.chart,[GF({chartGroupId:e.chartGroupId,chartId:e.chartId,previousLayerId:f==null?void 0:f.layerId,currentLayerId:e.layerId})])});c=this.selectorFactoryToObservable(PSc);var d=this.selectorFactoryToObservable(T2c);ie([this.scopeObservable,this.yAxisOrientationSubject,c,d]).pipe(zf(this.destroyed)).subscribe(function(e){var f=m(e);e=f.next().value;var g=f.next().value;var k=f.next().value;if(f=f.next().value)a.lastVerticalAxisDynamicWidth=
c3c(a,f);f&&k!==void 0&&(a.lastUseDoubleHeightCheck=b3c(a.axisView,f,k));a.maxVerticalAxisWidth=k?Math.round(k*.3):50;UF(a.chart,[a.createMarginRequirementAction(e,g,a.lastVerticalAxisDynamicWidth,a.lastUseDoubleHeightCheck)])});UF(this.chart,b)};aJ.prototype.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);var a=DG(this,null);this.store.dispatch(dk({actions:[YUc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId}),a]}))};
aJ.prototype.onMouseMove=function(a){var b=[];a=BG(this,a);if(this.axisView.withinBody(a.x,a.y)){var c=this.axisView,d=null;c.lastDrawnState&&(d=c.getCategory(c.lastDrawnState.yAxisOrientation==="vertical"?a.x:a.y));b.push(XWc({chartId:this.chartId,lastInteraction:{hover:d}}))}else b.push(XWc({chartId:this.chartId,lastInteraction:{hover:null}}));return b};var c3c=function(a,b){return b.reduce(function(c,d){return Math.max(c,a.rulerCanvasCtx.measureText(d.label).width)},0)+10+8};
aJ.prototype.ngOnChanges=function(a){var b=this;AG.prototype.ngOnChanges.call(this,a);var c=[];this.initialized&&(("tickStrategy"in a||"tickOptions"in a)&&TUc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},this.tickStrategy,this.tickOptions),"gutterRatio"in a&&this.withLatest(function(d){d=d.scope;d=LVc({chartGroupId:d.chartGroupId,chartId:d.chartId,xAxisId:b.xAxisId,gutterRatio:b.gutterRatio});c.push(d)}),"hideTickLabels"in a&&this.withLatest(function(d){c.push(b.createMarginRequirementAction(d.scope,
b.yAxisOrientation,b.lastVerticalAxisDynamicWidth,b.lastUseDoubleHeightCheck))}),UF(this.chart,c))};
aJ.prototype.createMarginRequirementAction=function(a,b,c,d){c=Math.min(this.maxVerticalAxisWidth,c!=null?c:this.maxVerticalAxisWidth);d={bottom:this.hideTickLabels?6:d?33:20};b==="horizontal"?(d={left:c},this.configSubject.next({actualWidth:c,hideLabels:this.hideTickLabels}),b={top:10,bottom:10}):(this.configSubject.next({hideLabels:this.hideTickLabels}),b={left:10,right:10});return iG({chartGroupId:a.chartGroupId,chartId:a.chartId,layerId:a.layerId,reservedMargins:d,overlappingMargins:b})};
da.Object.defineProperties(aJ.prototype,{yAxisOrientation:{configurable:!0,enumerable:!0,get:function(){return this.yAxisOrientationSubject.value}}});aJ.\u0275fac=function(a){return new (a||aJ)(Ve(Hd),Ve(TF),Ve(gG))};
aJ.\u0275cmp=D({type:aJ,selectors:[["ac-categorical-axis"]],hostAttrs:[1,"composable-layer","ac-catgorical-axis"],inputs:{tickStrategy:"tickStrategy",tickOptions:"tickOptions",gutterRatio:"gutterRatio",hideTickLabels:"hideTickLabels"},features:[Ef,jx],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var d3c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:0},e3c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:3},bJ=function(a,b){pG.call(this,a);this.barsStrategy=b;this.drawnRects=[];this.drawnCategories=new Map;this.shapeCanvas=document.createElement("canvas");this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1;this.shapeCanvas.setAttribute("aria-hidden",
"true");this.shapeCanvas.style.position="absolute";b=this.shapeCanvas.getContext("2d");if(!b)throw Error("Ec");this.shapeCtx=b;a.appendChild(this.shapeCanvas)};Y(bJ,pG);h=bJ.prototype;h.updateStrategy=function(a,b){this.barsStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.onResizeChange=function(a,b){var c=this;qk(a)&&(gza(a)||rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),qG(this,b,this.canvas,this.ctx),qG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=setTimeout(function(){nG(c,c.canvas);nG(c,c.shapeCanvas);c.drawInternal(b)},250)))};h.onSeriesSelectionChange=function(a,b){pBa(a)&&this.drawInternal(b)};
h.onCategoricalAxisChange=function(a,b){a:{var c=a.previousValue;if(a=a.currentValue){var d,e;if(!c||((d=a.categories)==null?void 0:d.length)!==((e=c.categories)==null?void 0:e.length)){c=!0;break a}var f,g;for(d=0;d<((g=(f=a.categories)==null?void 0:f.length)!=null?g:0);++d){var k=e=void 0;if(((e=c.categories)==null?void 0:e[d])!==((k=a.categories)==null?void 0:k[d])){c=!0;break a}}}c=!1}c&&this.drawInternal(b)};h.onYAxisChange=function(a,b){rl(a)&&this.drawInternal(b)};
h.onColorMapChange=function(a,b){this.drawInternal(b)};h.getValuesAtPosition=function(a,b){a=this.unpack(a);if(!a||!a.reverseCategoryMap)return null;b=this.barsStrategy.getCategory(b,a.reverseCategoryMap);if(!b)return null;a=this.drawnCategories.get(b);return{values:f3c(a!=null?a:[]),category:b}};var f3c=function(a){return a.map(function(b){return{seriesId:b.metadata.series.id,value:b.metadata.point}})};h=bJ.prototype;
h.getRectAtPosition=function(a){return this.barsStrategy.getBarAtPosition(this.drawnRects,a)};h.getStackForRect=function(a){return this.drawnCategories.get(a.metadata.point.x)||null};h.getSeriesIdsBetween=function(a,b,c){c=this.getRectAtPosition(c);if(!c)return null;var d=this.getStackForRect(c);if(!d)return null;c=[];var e=!1;d=m(d);for(var f=d.next();!f.done;f=d.next()){f=f.value.metadata;if(f.series.id===a||f.series.id===b)if(e){c.push(f.series.id);break}else e=!0;e&&c.push(f.series.id)}return c};
h.unpack=function(a){var b=a.scope,c=a.data,d=a.state,e=a.config;if(!c||!d||!e)return null;var f=d.resize,g=d.categoricalAxis,k=d.yAxis;a=d.brush;var l=d.seriesSelection;if(!(f&&g&&k&&a&&l))return null;g=f.width;var r=f.height,w=f.margins.top,x=f.height-f.margins.bottom,C=f.margins.left;f=f.width-f.margins.right;k=this.barsStrategy.getRangeMap(k,w,x,C,f,c?c.unit:null);if(!e.categoryMap||!k||!e.laneWidth)return null;k=this.barsStrategy.createPointToRectMap(c,e.categoryMap,k,e.laneWidth,e.gutterRatio);
var H=e.colorStrategy.getShape,J=H&&(c==null?0:c.series.length)&&c.series.length>1?function(R){return H(R,d)}:null;b=l.byLayer.entities[b.layerId];var O=!c||!e.colorStrategy.isReady||e.colorStrategy.isReady(c,d);l=Object.values(l.byLayer.entities).filter(function(R){return!!R}).some(function(R){return R.selectedSeries.length||R.hoveredSeries.length});return{data:c,colorMap:function(R){return Hl(e.colorStrategy.getColor(R,d))},isColorMapReady:O,shapeMap:J,shapeBoundingBox:e.colorStrategy.shapeBoundingBox,
reverseCategoryMap:e.reverseCategoryMap,canvasWidth:g,canvasHeight:r,bodyLeft:C,bodyTop:w,bodyWidth:f-C,bodyHeight:x-w,bounds:{top:w,right:f,bottom:x,left:C},brushing:a.brushing||!1,hoveredSeries:(b==null?void 0:b.hoveredSeries)||[],selectedSeries:(b==null?void 0:b.selectedSeries)||[],anySeriesSelectedOrHovered:l,pointToRectMap:k,verticalBarPadding:e.verticalBarPadding,hideSymbolShapes:e.hideSymbolShapes}};
h.drawInternal=function(a){var b=performance.now();if((a=this.unpack(a))&&a.isColorMapReady){this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";bl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.drawnRects=[];this.drawnCategories.clear();this.ctx.save();var c=new Path2D;c.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);this.ctx.clip(c);var d=!a.brushing&&
a.anySeriesSelectedOrHovered;c=Object.assign({},d3c,{globalAlpha:d?.5:1});this.shapeCtx.globalAlpha=d?.5:1;var e,f=(e=a.data)==null?void 0:e.series;if(f==null?0:f.length){if(e=a.shapeMap){d=new Set;f=m(f);for(var g=f.next();!g.done;g=f.next())d.add(e(g.value))}this.drawBars(a.data,a.pointToRectMap,a.colorMap,a.shapeMap,a.shapeBoundingBox,a.bounds,c,void 0,a.verticalBarPadding,a.hideSymbolShapes)}this.ctx.restore();this.barsStrategy.sortDrawnCategories(this.drawnCategories);this.drawnRects=this.barsStrategy.getSortedFlattenedRects(this.drawnCategories);
a=performance.now();this.enableManualLatencyTracking&&lG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}};
h.drawBars=function(a,b,c,d,e,f,g,k,l,r){this.ctx.save();$k(this.ctx,g,this.base);$k(this.shapeCtx,e3c,this.base);g=k?a==null?void 0:a.series.filter(function(Ga){return k.has(Ga.id)}):a==null?void 0:a.series;g=m(g!=null?g:[]);for(var w=g.next(),x={};!w.done;x={series$jscomp$84:void 0,rects$jscomp$2:void 0},w=g.next()){x.series$jscomp$84=w.value;w=c(x.series$jscomp$84);this.ctx.fillStyle=Zk(w,this.base);this.shapeCtx.fillStyle=Zk(w,this.base);w=d&&d(x.series$jscomp$84);x.rects$jscomp$2=x.series$jscomp$84.data.map(function(Ga){return function(ha,
sa){return b(ha,Ga.series$jscomp$84,sa)}}(x));if(k){var C=k.get(x.series$jscomp$84.id),H=void 0,J=void 0;if((H=C)==null?0:(J=H.datumIndices)==null?0:J.length)x.rects$jscomp$2=C.datumIndices.map(function(Ga){return function(ha){return Ga.rects$jscomp$2[ha.index]}}(x))}H=void 0;C=!((H=k)==null||!H.get(x.series$jscomp$84.id));J=H=null;for(var O=m(x.rects$jscomp$2),R=O.next();!R.done;R=O.next())if(R=R.value){var V=void 0;l&&l<R.height&&x.series$jscomp$84.id!==((V=a)==null?void 0:V.series[0].id)?this.ctx.fillRect(R.left,
R.top+l,R.width,R.height-l):this.ctx.fillRect(R.left,R.top,R.width,R.height);if(w){var ca=this.barsStrategy.getShapeParams(R,e);V=ca.x;var na=ca.y,ua=ca.shapeWidth,ia=ca.shapeHeight;ca=ca.scalingFactor;H===null&&(H=ua<=10);H||r||!C&&!this.barsStrategy.isBarLongEnoughForShape(R,ua,ia)||this.drawShapeWithinBounds(V,na,f,w,ca)}J=this.barsStrategy.lastRectWithinBounds(R,J,f);g3c(this,R)}this.barsStrategy.shouldDrawBoundaryShapes&&w&&H&&J&&(x=this.barsStrategy.getBoundaryShapeParams(J,e),this.drawShape(x.x,
x.y,w,x.scalingFactor))}this.ctx.restore()};h.drawShape=function(a,b,c,d){this.shapeCtx.moveTo(a,b);a=jBa(a,b,c,d);this.shapeCtx.save();this.shapeCtx.globalAlpha=1;this.shapeCtx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.lineWidth=d!==void 0?d>=.6?3:d>=.4?2:1:3;this.shapeCtx.stroke(a);this.shapeCtx.fill(a);this.shapeCtx.restore();this.shapeCtx.fill(a)};
h.drawShapeWithinBounds=function(a,b,c,d,e){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e)};var g3c=function(a,b){var c=b.metadata.point.x;a.drawnCategories.set(c,(a.drawnCategories.get(c)||[]).concat([b]))};bJ.prototype.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var h3c=function(){bJ.apply(this,arguments)};Y(h3c,bJ);h3c.prototype.onSeriesSelectionChange=function(a,b){this.drawInternal(b)};
h3c.prototype.drawInternal=function(a){if((a=this.unpack(a))&&a.isColorMapReady){this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";bl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);var b=new Path2D;b.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);this.ctx.clip(b);b=[];if(a.hoveredSeries.length){var c=[].concat(q(new Set(a.hoveredSeries.flatMap(function(d){return d.datumIndices||
[]}).map(function(d){return d.index}))));b=a.selectedSeries.map(function(d){return Object.assign({},d,{datumIndices:c.map(function(e){return{index:e}})})}).concat(a.hoveredSeries)}else b=a.selectedSeries;b=b.reduce(function(d,e){return d.set(e.seriesId,e)},new Map);this.drawBars(a.data,a.pointToRectMap,a.colorMap,a.shapeMap,a.shapeBoundingBox,a.bounds,d3c,b,a.verticalBarPadding,a.hideSymbolShapes)}};var i3c=function(){this.gutterRatioInternal=.35};h=i3c.prototype;h.getRangeMap=function(a,b,c,d,e,f){return sl(a,e,d,f)};h.createPointToRectMap=function(a,b,c,d,e){var f=this;return function(g,k,l){var r,w=(r=g.y1)!=null?r:g.y,x;r=(x=g.y0)!=null?x:0;w<r&&(w=m([w,r]),r=w.next().value,w=w.next().value);f.gutterRatio=e!=null?e:.35;x=d-f.gutterRatio*d;r=Math.round(c(r));w=Math.round(c(w))-r;var C=b(g.x);return C===null?null:{top:Math.round(C-x/2),left:r,height:x,width:w,metadata:{point:g,series:k,index:l}}}};
h.getCategory=function(a,b){var c;return(c=b(a.y))!=null?c:null};h.getBarAtPosition=function(a,b){var c=this.halfGutterInverseRatio;c=c===void 0?0:c;for(var d=0,e=a.length-1,f=null;d<=e;){var g=Math.floor((e+d)/2),k=a[g],l=k.left,r=k.top,w=k.height;k=k.width;var x=Math.ceil(c*w);w=r+w+x;if(b.y>=r-x)if(b.y<w)if(b.x>=l)if(b.x<l+k){f=a[g];break}else d=g+1;else e=g-1;else d=g+1;else e=g-1}return f};
h.sortDrawnCategories=function(a){for(var b=m(a.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.get(c)||[];d.sort(function(e,f){return e.left-f.left});a.set(c,d)}};h.getSortedFlattenedRects=function(a){var b=Array.from(a.keys()).sort(function(e,f){return a.get(e)[0].top-a.get(f)[0].top}),c=[];b=m(b);for(var d=b.next();!d.done;d=b.next())d=a.get(d.value)||[],c=c.concat(d);return c};
h.getShapeParams=function(a,b){var c=Math.min(16.8,a.height*.5);return{x:a.left+a.width/2,y:a.top+a.height/2,shapeWidth:c,shapeHeight:c,scalingFactor:b?c/b.width:1}};h.getBoundaryShapeParams=function(a,b){return{x:a.left+a.width/2,y:a.top+a.height+8,scalingFactor:b?16.8/b.width:1}};h.isBarLongEnoughForShape=function(a,b){return a.width>b};
h.lastRectWithinBounds=function(a,b,c){return a!==null&&a.top+a.height<=c.bottom?b===null||b.top+b.height>c.bottom?a:a.top+a.height>b.top+b.height?a:b:b!==null&&b.top+b.height<=c.bottom?b:null};
da.Object.defineProperties(i3c.prototype,{gutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal},set:function(a){this.gutterRatioInternal=a}},halfGutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatio/2}},halfGutterInverseRatio:{configurable:!0,enumerable:!0,get:function(){return 1/(1-this.halfGutterRatio)-1}},shouldDrawBoundaryShapes:{configurable:!0,enumerable:!0,get:function(){return!0}}});
var cJ=function(){this.gutterRatioInternal=.35};h=cJ.prototype;h.getRangeMap=function(a,b,c,d,e,f){return sl(a,b,c,f)};h.createPointToRectMap=function(a,b,c,d,e){var f=this;return function(g,k,l){var r,w=(r=g.y1)!=null?r:g.y,x;r=(x=g.y0)!=null?x:0;w<r&&(x=m([w,r]),r=x.next().value,w=x.next().value);f.gutterRatio=e!=null?e:.35;x=d-f.gutterRatio*d;w=Math.round(c(w));r=Math.round(c(r))-w;var C=b(g.x);return C===null?null:{top:w,left:Math.round(C-x/2),height:r,width:x,metadata:{point:g,series:k,index:l}}}};
h.getCategory=function(a,b){var c;return(c=b(a.x))!=null?c:null};h.getBarAtPosition=function(a,b){return mJa(a,b,this.halfGutterInverseRatio)};h.sortDrawnCategories=function(a){for(var b=m(a.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.get(c)||[];d.sort(function(e,f){return e.top-f.top});a.set(c,d)}};
h.getSortedFlattenedRects=function(a){var b=Array.from(a.keys()).sort(function(e,f){return a.get(e)[0].left-a.get(f)[0].left}),c=[];b=m(b);for(var d=b.next();!d.done;d=b.next())d=a.get(d.value)||[],c=c.concat(d);return c};h.getShapeParams=function(a,b){return lJa(a,b)};h.getBoundaryShapeParams=function(a,b){return{x:a.left+a.width+8,y:a.top+a.height/2,scalingFactor:b?16.8/b.width:1}};h.isBarLongEnoughForShape=function(a,b,c){return a.height>c};
h.lastRectWithinBounds=function(a,b,c){return a!==null&&a.left+a.width<=c.right?b===null||b.left+b.width>c.right?a:a.left+a.width>b.left+b.width?a:b:b!==null&&b.left+b.width<=c.right?b:null};
da.Object.defineProperties(cJ.prototype,{gutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal},set:function(a){this.gutterRatioInternal=a}},halfGutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatio/2}},halfGutterInverseRatio:{configurable:!0,enumerable:!0,get:function(){return 1/(1-this.halfGutterRatio)-1}},shouldDrawBoundaryShapes:{configurable:!0,enumerable:!0,get:function(){return!0}}});
var dJ=function(){this.gutterRatioInternal=.35};h=dJ.prototype;h.getRangeMap=function(a,b,c,d,e,f){return sl(a,b,c,f)};
h.createPointToRectMap=function(a,b,c,d,e){function f(l){return a.series.findIndex(function(r){return r.id===l.id})}var g=this,k=a.series.length;return function(l,r,w){g.gutterRatio=e!=null?e:.35;var x=d-g.gutterRatio*d,C=Math.round(c(l.y)),H=Math.round(c(0));C>H&&(C=m([C,H]),H=C.next().value,C=C.next().value);H-=C;var J=b(l.x);if(J===null)return null;J=Math.round(J-x/2);x=x/k-1;var O=f(r);return{top:C,left:J+O*(x+1),height:H,width:x,metadata:{point:l,series:r,index:w}}}};
h.getCategory=function(a,b){var c;return(c=b(a.x))!=null?c:null};h.getBarAtPosition=function(a,b){return mJa(a,b,this.halfGutterInverseRatio)};h.sortDrawnCategories=function(a){for(var b=m(a.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.get(c)||[];d.sort(function(e,f){return e.left-f.left});a.set(c,d)}};
h.getSortedFlattenedRects=function(a){var b=Array.from(a.keys()).sort(function(e,f){return a.get(e)[0].left-a.get(f)[0].left}),c=[];b=m(b);for(var d=b.next();!d.done;d=b.next())d=a.get(d.value)||[],c=c.concat(d);return c};h.getShapeParams=function(a,b){return lJa(a,b)};h.getBoundaryShapeParams=function(a,b){return{x:a.left+a.width+8,y:a.top+a.height/2,scalingFactor:b?16.8/b.width:1}};h.isBarLongEnoughForShape=function(a,b,c){return a.height>c};
h.lastRectWithinBounds=function(a,b,c){return a!==null&&a.left+a.width<=c.right?b===null||b.left+b.width>c.right?a:a.left+a.width>b.left+b.width?a:b:b!==null&&b.left+b.width<=c.right?b:null};
da.Object.defineProperties(dJ.prototype,{gutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal},set:function(a){this.gutterRatioInternal=a}},halfGutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatio/2}},halfGutterInverseRatio:{configurable:!0,enumerable:!0,get:function(){return 1/(1-this.halfGutterRatio)-1}},shouldDrawBoundaryShapes:{configurable:!0,enumerable:!0,get:function(){return!1}}});var j3c={clickSelect:!0,hoverHighlight:!0},eJ=function(a,b,c,d){AG.call(this,a,b,c);var e=this;this.interactionService=d;this.data=null;this.loading=!1;this.unstackedSubject=new Mj(!1);this.colorStrategyInternal=new BH;this.enableManualLatencyTracking=this.hideSymbolShapes=!1;this.onSelect=new Ti;this.dataSubject=new Mj(this.data);this.configSubject=new Mj({colorStrategy:this.colorStrategy});this.userConfigSubject=new Mj({colorStrategy:this.colorStrategy,verticalBarPadding:this.verticalBarPadding,
hideSymbolShapes:this.hideSymbolShapes});this.categoricalAxisRequirement=this.yAxisRequirement=null;this.interactionsInternal=j3c;this.isShiftKeyDown=this.isMetaKeyDown=this.isCtrlKeyDown=!1;this.shiftSelectingFromSeriesId=null;this.isMouseOver=!1;this.updateHoverValuesTriggerSubject=new uf(1);this.syncActionsBuffer=null;this.colorRecalculationAttemptsRemaining=2;this.layerType="graphic";this.categoricalBarView=new bJ(a.nativeElement,this.unstacked?new dJ:new cJ);this.views.push(this.categoricalBarView);
this.categoricalBarSelectedView=new h3c(a.nativeElement,this.unstacked?new dJ:new cJ);this.views.push(this.categoricalBarSelectedView);this.stackedDataObservable=this.dataSubject.pipe(A(function(f){return f?rJa(f,!1):null}),vf({bufferSize:1,refCount:!0}));a=this.selectorFactoryToObservable(wG);ie([this.unstackedSubject,a]).pipe(zf(this.destroyed)).subscribe(function(f){f=m(f);var g=f.next().value;var k=f.next().value;e.withLatest(function(l){var r=k==="horizontal"?new i3c:g?new dJ:new cJ;e.categoricalBarView.updateStrategy(r,
l);e.categoricalBarSelectedView.updateStrategy(r,l)})});this.unstackedSubject.pipe(zf(this.destroyed)).subscribe(function(f){e.withLatest(function(g){e.categoricalBarView.updateStrategy(f?new dJ:new cJ,g);e.categoricalBarSelectedView.updateStrategy(f?new dJ:new cJ,g)})})};Y(eJ,AG);eJ.\u0275dir=AG.\u0275dir;h=eJ.prototype;
h.ngOnChanges=function(a){AG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&this.dataSubject.next(this.data);("colorStrategy"in a||"verticalBarPadding"in a||"hideSymbolShapes"in a)&&this.userConfigSubject.next({colorStrategy:this.colorStrategy,verticalBarPadding:this.verticalBarPadding,hideSymbolShapes:this.hideSymbolShapes});"loading"in a&&b.push(EG(this,this.loading,"Categorical Bar"));UF(this.chart,b)};
h.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);UF(this.chart,[CG(this,null),OWc(this,null),FG(this,null,!1),EG(this,!1,"Categorical Bar")])};
h.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.unstackedSubject.pipe(yf(function(e){return e?a.dataSubject:a.stackedDataObservable})),configObservable:this.configSubject});this.categoricalBarView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);var b=this.selectorFactoryToObservable(T2c),c=this.selectorFactoryToObservable(S2c),d=this.selectorFactoryToObservable(OVc);ie([b,c,d,this.userConfigSubject]).pipe(zf(this.destroyed)).subscribe(function(e){e=
m(e);var f=e.next().value;var g=e.next().value;var k=e.next().value;e=e.next().value;a.configSubject.next(Object.assign({},e,{categoryMap:function(l){var r,w;return(w=(r=f==null?void 0:f.find(function(x){return x.label===l}))==null?void 0:r.value)!=null?w:null},reverseCategoryMap:function(l){if(!g)return null;var r,w;return(w=(r=f==null?void 0:f.find(function(x){return Math.abs(x.value-l)<=g*(1-(k!=null?k:0))/2}))==null?void 0:r.label)!=null?w:null},laneWidth:g,gutterRatio:k}))});this.updateHoverValuesTriggerSubject.pipe(Bf(10),
zf(this.destroyed)).subscribe(function(e){a.updateHoverValues(e)});this.chart.mouseEnterObservable.pipe(zf(this.destroyed)).subscribe(function(e){a.onMouseEnter(e)});VF(this.chart,"chart",function(e){return a.onMouseMove(e)},this.destroyed);this.chart.mouseLeaveObservable.pipe(zf(this.destroyed)).subscribe(function(){a.onMouseLeave()});this.chart.mouseClickObservable.pipe(zf(this.destroyed)).subscribe(function(e){a.onClick(e)});this.chart.keyDownObservable.pipe(zf(this.destroyed)).subscribe(function(e){a.onKeyDown(e)});
this.chart.keyUpObservable.pipe(zf(this.destroyed)).subscribe(function(e){a.onKeyUp(e)})};
h.onDataChange=function(a,b){var c=a.currentValue,d=b.scope;b=b.state;var e=[];if(a.previousValue!==c&&(a=DAa(c),Pk(this.yAxisRequirement,a)&&(this.yAxisRequirement=a,e.push(CG(this,this.yAxisRequirement))),this.categoricalAxisRequirement=CAa(c),e.push(OWc(this,this.categoricalAxisRequirement)),e.push(wH({chartId:d.chartId,layerId:d.layerId,yAxisId:d.yAxisId,xAxisId:d.xAxisId,valueType:3,unit:(c==null?void 0:c.unit)||null})),e.push(vH({chartId:d.chartId,layerId:d.layerId,series:(c==null?void 0:c.series.map(function(f,
g){var k;return{seriesId:f.id,name:(k=f.name)!=null?k:f.id,drawnAs:2,stackingIndex:c.series.length-1-g,dataSeriesMetadata:f.metadata,statsModeSummaryValue:f.statsModeSummaryValue,legendTemplate:f.legendTemplate}}))||[]})),b&&c)){if(a=GG(this.colorStrategy,d,c,b))e.push(a),this.colorRecalculationAttemptsRemaining=2;e.push(this.createSetSeriesColorMetadataAction(d,c,b))}UF(this.chart,e)};
h.onColorMapChange=function(a,b){a=b.scope;var c=b.data;b=b.state;var d=[];if(c&&b){if(this.colorRecalculationAttemptsRemaining>0){var e=GG(this.colorStrategy,a,c,b);e&&(d.push(e),this.colorRecalculationAttemptsRemaining--)}d.push(this.createSetSeriesColorMetadataAction(a,c,b))}return d};var k3c=function(a,b){var c=null;a.withLatest(function(d){d=d.scope;var e;c=uH({chartId:d.chartId,layerId:d.layerId,valueType:3,timeKey:2,values:(e=b==null?void 0:b.values)!=null?e:[]})});return c};h=eJ.prototype;
h.onMouseEnter=function(){this.isMouseOver=!0};h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=BG(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlight(a);this.updateHoverValuesTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};h.onMouseLeave=function(){this.isMouseOver=!1;this.interactions.hoverHighlight&&this.hoverHighlight(null)};
h.onClick=function(a){var b=this,c=BG(this,a);this.withLatest(function(d){var e=d.state,f=d.data;if(e&&f){var g=e.seriesSelection,k=e.brush;e=e.resize;if(g&&k&&!k.brushing&&e&&REa(c,e)){g=g.byLayer.entities[d.scope.layerId];var l=b.categoricalBarView.getRectAtPosition(c);g=g?g.selectedSeries.map(function(r){return r.seriesId}):[];(l==null?0:l.metadata.series.id)&&(f=f.series.find(function(r){return r.id===l.metadata.series.id}))&&b.onSelect.emit(Object.assign({},f,{point:l.metadata.point}));b.interactions.clickSelect&&
(f=[],k=xl.ve.LineDeselectToggle,l&&(k=xl.ve.LineSelectToggle,g.length===1&&g.includes(l.metadata.series.id)?(f=[],k=xl.ve.LineDeselectToggle):b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&g.length>0?(f=b.categoricalBarView.getSeriesIdsBetween(b.shiftSelectingFromSeriesId,l.metadata.series.id,c)||[l.metadata.series.id],k=xl.ve.LineMultiSelectToggle):b.isPrimaryModifierKeyDown?(f=g.includes(l.metadata.series.id)?g.filter(function(r){return r!==l.metadata.series.id}):g.concat([l.metadata.series.id]),
k=xl.ve.LineSpecificSelectToggle):(f=[l.metadata.series.id],k=xl.ve.LineSelectToggle)),b.shiftSelectingFromSeriesId=(l==null?void 0:l.metadata.series.id)||null,b.store.dispatch($G({chartId:d.scope.chartId,layerId:d.scope.layerId,series:f.map(function(r){return{seriesId:r}})})),wl(b.interactionService,"click",k,b.el.nativeElement),b.onMouseMove(a))}}});this.withLatest(function(d){d=b.categoricalBarView.getValuesAtPosition(d,c);(d=k3c(b,d))&&b.store.dispatch(d)})};
h.onKeyDown=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};h.onKeyUp=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope,e=c.state;if(e){c=a&&b.categoricalBarView.getRectAtPosition(a);var f,g;e=(e==null?void 0:(f=e.seriesSelection)==null?void 0:(g=f.byLayer.entities[d.layerId])==null?void 0:g.hoveredSeries)||[];f=c?[{seriesId:c.metadata.series.id,datumIndices:[{index:c.metadata.index}]}]:[];hl(e,f)&&(d=bH({chartId:d.chartId,layerId:d.layerId,series:f}),b.syncActionsBuffer?b.syncActionsBuffer.push(d):b.store.dispatch(d))}})};
h.createSetSeriesColorMetadataAction=function(a,b,c){var d=this;return vH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:2,color:Hl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c),legendTemplate:e.legendTemplate}})})};
h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){var d=b.categoricalBarView.getValuesAtPosition(c,a),e,f;c=uH({chartId:c.scope.chartId,layerId:c.scope.layerId,valueType:3,timeKey:1,values:(e=d==null?void 0:d.values)!=null?e:[],category:(f=d==null?void 0:d.category)!=null?f:void 0});b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c)})};
da.Object.defineProperties(eJ.prototype,{unstacked:{configurable:!0,enumerable:!0,set:function(a){this.unstackedSubject.next(a)},get:function(){return this.unstackedSubject.value}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||this.colorStrategyInternal},get:function(){return this.colorStrategyInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},j3c,a)},get:function(){return this.interactionsInternal}},
isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return ol?this.isMetaKeyDown:this.isCtrlKeyDown}}});eJ.\u0275fac=function(a){return new (a||eJ)(Ve(Hd),Ve(TF),Ve(gG),Ve(xl))};
eJ.\u0275cmp=D({type:eJ,selectors:[["ac-categorical-bar"]],hostAttrs:[1,"composable-layer","ac-categorical-bar"],inputs:{data:"data",loading:"loading",unstacked:"unstacked",colorStrategy:"colorStrategy",interactions:"interactions",hideSymbolShapes:"hideSymbolShapes",verticalBarPadding:"verticalBarPadding",enableManualLatencyTracking:"enableManualLatencyTracking"},outputs:{onSelect:"onSelect"},features:[Ef,jx],decls:0,vars:0,template:function(){},styles:["/*# sourceMappingURL=ac_categorical_bar.css.map */"],
changeDetection:0});var l3c={useNonBlockingErrors:!1},fJ=function(a,b,c,d,e,f){AG.call(this,a,b,c,!0);this.ngZone=d;this.instrumentationService=e;this.changeDetectorRef=f;this.errorsSubject=new Mj([]);this.signalTimeoutId=null;this.installAgentHandled=!1;this.data=null;this.errorsObservable=this.errorsSubject.pipe(mf(0),xk(this.ngZone));this.stylesSubject=new Mj(l3c);this.resizeStateSubject=new uf(1);this.isAgentMetricObservable=this.selectorFactoryToObservable(mWc).pipe(A(function(g){var k,l,r,w,x,C,H,J,O,R,V,ca,na,
ua,ia,Ga,ha,sa,xa,Qa;return(g==null?void 0:(k=g.dataSets)==null?void 0:(l=k[0])==null?void 0:(r=l.timeSeriesFilter)==null?void 0:(w=r.filter)==null?void 0:w.includes("agent.googleapis.com"))||(g==null?void 0:(x=g.dataSets)==null?void 0:(C=x[0])==null?void 0:(H=C.timeSeriesQuery)==null?void 0:H.includes("agent.googleapis.com"))||(g==null?void 0:(J=g.dataSets)==null?void 0:(O=J[0])==null?void 0:(R=O.timeSeriesFilterRatio)==null?void 0:(V=R.numeratorFilter)==null?void 0:(ca=V.filter)==null?void 0:ca.includes("agent.googleapis.com"))||
(g==null?void 0:(na=g.dataSets)==null?void 0:(ua=na[0])==null?void 0:(ia=ua.timeSeriesFilterRatio)==null?void 0:(Ga=ia.denominatorFilter)==null?void 0:(ha=Ga.filter)==null?void 0:ha.includes("agent.googleapis.com"))||(g==null?void 0:(sa=g.dataSets)==null?void 0:(xa=sa[0])==null?void 0:(Qa=xa.prometheusQuery)==null?void 0:Qa.includes("agent_googleapis_com"))}));this.styleObservable=ce({});this.ve={InstallAgentButton:114988};this.opsAgentInstallPrompt='Requires <a href="https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent" target="_blank">Ops Agent</a>';
this.errorDismissedSubject=new Mj(!1);this.errorDismissedObservable=te(this.errorDismissedSubject,this.errorsSubject.pipe(A(function(){return!1}),wf(1)));this.useNonBlockingStylingObservable=ce(!1);this.installAgentRequest=new Ti;m3c(this)};Y(fJ,AG);fJ.\u0275dir=AG.\u0275dir;
var m3c=function(a){a.selectorFactoryToObservable(aWc).pipe(zf(a.destroyed)).subscribe(function(b){var c;b=(c=b==null?void 0:b.statuses)!=null?c:[];a.errorsSubject.next(yJa(b).filter(function(d){return d.details.dashboardError!=="DASHBOARD_FILTER_APPLICATION_FAILED"}));n3c(a,b.filter(function(d){return!d.success}))});a.selectorFactoryToObservable(HSc).pipe(xf(null),A(function(b){return b!=null?b:null}),tf(),A(gk),zf(a.destroyed)).subscribe(function(b){b&&qk(b)&&(a.resizeStateSubject.next(b.currentValue),
a.changeDetectorRef.detectChanges())})};fJ.prototype.ngOnChanges=function(a){AG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(b=b.concat(o3c(this,this.data)));UF(this.chart,b)};
var p3c=function(a){a.signalTimeoutId!=null&&(clearTimeout(a.signalTimeoutId),a.signalTimeoutId=null)},n3c=function(a,b){p3c(a);a.signalTimeoutId=setTimeout(function(){p3c(a);for(var c=performance.now(),d=m(b),e=d.next();!e.done;e=d.next())if(e=e.value,e.layerId&&e.layerId!==a.layerId){var f=void 0,g=void 0,k=void 0,l=void 0;RG(a.instrumentationService,{type:"error-display",timestamp:c,layerId:e.layerId,chartId:a.chartId,layerType:"graphic",metadata:{name:((f=e)==null?void 0:(g=f.error)==null?void 0:
g.name)||"unknown",message:((k=e)==null?void 0:(l=k.error)==null?void 0:l.message)||"unknown"}})}},0)};
fJ.prototype.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);this.setup({});this.installAgentHandled=this.installAgentRequest.observers.length>0;this.useNonBlockingStylingObservable=ie([this.stylesSubject,this.isAgentMetricObservable]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return!(!b.useNonBlockingErrors||a.installAgentHandled&&c)}));this.styleObservable=ie([this.resizeStateSubject,this.useNonBlockingStylingObservable]).pipe(A(function(b){b=m(b);var c=b.next().value;
var d=b.next().value;return(c==null?0:c.margins)?(b=c.margins,c=a.chartGroupId==="tex-chart-group"&&c.width<736||a.chartGroupId!=="tex-chart-group"&&c.width-b.left-b.right<160,d&&!c?(c=a.chartGroupId==="tex-chart-group"?Math.max(184,b.left+32):b.left+32,d=b.right+(c-b.left),{marginLeft:c+"px",marginRight:d+"px",marginTop:b.top+"px",marginBottom:b.bottom+"px",width:"calc(100% - "+(c+d)+"px)",height:"auto",maxHeight:"calc(100% - "+(b.top+b.bottom)+"px)"}):{marginLeft:b.left+"px",marginRight:b.right+
"px",marginTop:b.top+"px",marginBottom:b.bottom+"px",width:"calc(100% - "+(b.left+b.right)+"px)",height:"calc(100% - "+(b.top+b.bottom)+"px)",maxHeight:"calc(100% - "+(b.top+b.bottom)+"px)"}):{}}),xk(this.ngZone))};fJ.prototype.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);p3c(this);this.store.dispatch(dk({actions:o3c(this,null)}))};
var o3c=function(a,b){var c=[];if(b&&b.length){b=m(b);for(var d=b.next();!d.done;d=b.next())c.push(WVc({chartId:a.chartId,layerId:a.layerId,sourceId:a.objectiveLayerId,success:!1,error:d.value}))}else c.push(XVc({chartId:a.chartId,sourceId:a.objectiveLayerId}));return c};da.Object.defineProperties(fJ.prototype,{styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesSubject.next(Object.assign({},l3c,a))},get:function(){return this.stylesSubject.getValue()}}});
fJ.\u0275fac=function(a){return new (a||fJ)(Ve(Hd),Ve(TF),Ve(gG),Ve(Rg),Ve(QG),Ve(Cx))};
fJ.\u0275cmp=D({type:fJ,selectors:[["ac-error"]],hostAttrs:[1,"composable-layer","ac-error"],inputs:{data:"data",styles:"styles"},outputs:{installAgentRequest:"installAgentRequest"},features:[Ef,jx],decls:2,vars:3,consts:function(){return[["defaultMessage",""]," Install ",[4,"ngIf"],["class","ac-error-container",3,"nonblocking","ngStyle",4,"ngIf"],[1,"ac-error-container",3,"ngStyle"],[1,"ac-error-text"],[4,"ngIf","ngIfElse"],["svgIcon","ac:info",1,"icon","mat-18"],[3,"innerHTML"],["mat-raised-button",
"",1,"install-button",3,"click","ve","veClick"],["svgIcon","ac:warning"],[1,"error-text-wrapper"],["mat-icon-button","","class","close-button","aria-label","Dismiss error",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Dismiss error",1,"close-button",3,"click"],["svgIcon","ac:close"]]},template:function(a,b){a&1&&(E(0,EJa,3,3,"ng-container",2),T(1,"async"));a&2&&I("ngIf",U(1,1,b.errorsObservable))},dependencies:[gB,iB,Jy,Nx,Rx,gD,Tx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-error[_nghost-%COMP%]   .ac-error-container[_ngcontent-%COMP%]{width:100%;height:100%;background-color:var(--ac-sys-color-extensions-overlay,hsla(0,0%,100%,.5));display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;position:relative;z-index:9}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]{height:auto;max-height:100%;background-color:transparent}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]   .ac-error-text[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-neutral-container,#f1f3f4);border-radius:0 0 4px 4px;margin:auto;padding:0 4px;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;width:auto;max-width:100%}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]   .ac-error-text[_ngcontent-%COMP%]   span.error-text-wrapper[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;max-height:100px}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]   .ac-error-text[_ngcontent-%COMP%]   button.close-button[_ngcontent-%COMP%]{height:20px;width:20px;padding:2px;border:none;outline:none;margin-left:8px;z-index:9}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]   .ac-error-text[_ngcontent-%COMP%]   button.close-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     svg{height:16px;width:16px}.ac-error[_nghost-%COMP%]   .ac-error-text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:13px;font-weight:400;text-align:center;text-shadow:none;width:100%;margin:auto 10px}.ac-error[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:16px;width:16px;font-size:16px;margin-right:8px;vertical-align:text-top}.ac-error[_nghost-%COMP%]   button.install-button[_ngcontent-%COMP%]{margin-left:12px;color:var(--ac-sys-color-extensions-primary,#3367d6);text-transform:uppercase}\n/*# sourceMappingURL=ac_error.css.map */"],
changeDetection:0});var gJ=function(a){oG.call(this,a);this.arcRadius=200;this.canvasWidth=400;this.canvasHeight=200;this.maxThresholdValue=0;this.centerY=this.centerX=200;this.thresholdRenderedContexts=[];this.currentValueRenderedContexts=[];this.thresholdsDict=new Map};Y(gJ,oG);
var q3c=function(a){return(a.arcRadius-.14*a.arcRadius)*2},s3c=function(a,b,c){var d=[];if(!c||!b||c.minValue>a.maxThresholdValue)return d;var e=a.arcRadius,f=Math.PI,g=0,k=a.maxThresholdValue-c.minValue;b.forEach(function(l){g=(l.upperBound-l.lowerBound)/k*Math.PI;l={arcRadius:e,startAngle:f,endAngle:f+g,arcData:l,filledColor:r3c(l.category)};f+=g;d.push(l)});return d},r3c=function(a){switch(a){case 0:return"var(--ac-sys-color-chart-unfilled, #F1F3F4)";case 1:return"var(--ac-sys-color-status-success, #188038)";
case 2:return"var(--ac-sys-color-status-warning, #e37400)";case 3:return"var(--ac-sys-color-status-error, #d93025)";case 4:return"var(--ac-sys-color-chart-unfilled, #F1F3F4)";default:return"var(--ac-sys-color-chart-unfilled, #F1F3F4)"}},t3c=function(a,b){var c=new Map;if(b==null)return c;b=b.thresholds;if(b.length===0)return c;b.forEach(function(f){c.set(f.upperBound,f.category)});b=Array.from(c.keys()).sort(function(f,g){return f-g});if(b.length===0)return c;a.maxThresholdValue=b[b.length-1];a=new Map;
b=m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c.get(d);e&&a.set(d,e)}return a},u3c=function(a){a=a.series[0];if(!a||a.data.length===0)throw Error("Lc");var b=a.id.toString(),c=a.data[0].y;if(isNaN(c))throw Error("Mc");return{id:b,ref:a,value:c,name:a.name||""}},w3c=function(a,b,c){var d=[];if(!c||!b)return d;var e=c.thresholds;if(e.length===0)return d;var f=v3c(e);try{var g=u3c(b),k=g.id,l=g.ref,r=c.minValue;a.thresholdsDict.forEach(function(w,x){var C=f.get(x)||"";d.push({id:k,lowerBound:r,
upperBound:x,label:C,ref:l,category:w});r=x});return d}catch(w){return[]}},v3c=function(a){var b=new Map;a.forEach(function(c){b.set(c.upperBound,c.label)});return b};gJ.prototype.clearWithBackground=function(a){al(this.canvas,a,this.base)};gJ.prototype.updateCanvasSize=function(){nG(this,this.canvas);bl(this.canvas,this.base,this.canvasHeight,this.canvasWidth)};
var x3c=function(a,b){if(b=b.currentValue){var c=b.state.chartWidth;a.canvasHeight=b.state.chartHeight;a.canvasWidth=c;a.arcRadius=Math.min(a.canvasWidth/2,a.canvasHeight);a.centerX=a.canvasWidth/2;a.centerY=a.canvasHeight/2+a.arcRadius/2;a.updateCanvasSize()}},y3c=function(a,b,c){var d=b.arcRadius,e=b.startAngle,f=b.endAngle,g=b.filledColor;a.ctx.save();b=new Path2D;a.ctx.fillStyle=Zk(g,a.base);a.ctx.lineCap="round";a.ctx.translate(.5,.5);c=d-c;a.ctx.beginPath();b.moveTo(a.centerX,a.centerY);b.arc(a.centerX,
a.centerY,c,e,f);a.ctx.fill(b);a.ctx.closePath();a.ctx.beginPath();a.ctx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",a.base);a.ctx.lineWidth=2;a.ctx.moveTo(a.centerX+c*Math.cos(e),a.centerY+c*Math.sin(e));a.ctx.lineTo(a.centerX,a.centerY);a.ctx.stroke();a.ctx.moveTo(a.centerX+c*Math.cos(f),a.centerY+c*Math.sin(f));a.ctx.lineTo(a.centerX,a.centerY);a.ctx.stroke();a.ctx.closePath();a.ctx.restore()},z3c=function(a,b,c){a.ctx.save();a.ctx.beginPath();a.ctx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",
a.base);a.ctx.globalAlpha=c!=null?c:1;a.ctx.arc(a.centerX,a.centerY,a.arcRadius-b,Math.PI,2*Math.PI);a.ctx.fill();a.ctx.closePath();a.ctx.restore()},A3c=function(a){a.currentValueRenderedContexts.forEach(function(b){y3c(a,b,.03*a.arcRadius*2)})},B3c=function(a){a.thresholdRenderedContexts.forEach(function(b){y3c(a,b,0)})},C3c=function(a,b){gJ.call(this,a);this.afterRenderHook=b;this.canvas.className="ac-gauge-view__canvas"};Y(C3c,gJ);
var D3c=function(a,b,c){var d=null,e=Math.sqrt(Math.pow(b-a.centerX,2)+Math.pow(c-a.centerY,2));if(e>a.arcRadius)return d;var f=a.arcRadius-a.arcRadius*.02*2;a.thresholdRenderedContexts.forEach(function(g){var k=a.centerX;if(f<=e&&e<=a.arcRadius){var l=Math.atan2(Math.abs(c-a.centerY),Math.abs(b-k));k=b<=k?l+Math.PI:2*Math.PI-l;k=k>=g.startAngle&&k<=g.endAngle}else k=!1;k&&(d=g)});return d};
C3c.prototype.drawInternal=function(a){var b=a.currentValue;if(b){var c=b.config;if(b.state&&c){x3c(this,a);if(b){this.thresholdsDict=t3c(this,b.config);a:{a=b.data;c=b.config;var d=[];if(a==null)var e=d;else{try{var f=u3c(a),g=f.id,k=f.ref,l=f.value,r=f.name,w=l>this.maxThresholdValue?this.maxThresholdValue:l,x=c.minValue;b:{for(var C=this.thresholdsDict.keys(),H=m(C),J=H.next();!J.done;J=H.next()){var O=J.value;if(w<=O){var R=this.thresholdsDict.get(O)||0;break b}}R=0}var V={id:g,lowerBound:w,upperBound:this.maxThresholdValue,
label:r,ref:k,category:4};d.push({id:g,lowerBound:x,upperBound:w,label:r,ref:k,category:R});d.push(V);e=d;break a}catch(na){e=[];break a}e=void 0}}this.currentValueRenderedContexts=s3c(this,e,b.config)}this.currentValueRenderedContexts=this.currentValueRenderedContexts;b&&(this.thresholdsDict=t3c(this,b.config),this.thresholdRenderedContexts=s3c(this,w3c(this,b.data,b.config),b.config));this.thresholdRenderedContexts=this.thresholdRenderedContexts;B3c(this);z3c(this,.02*this.arcRadius*2);A3c(this);
z3c(this,.14*this.arcRadius*2);lG(this);var ca;(ca=this.afterRenderHook)==null||ca.call(this)}}};var E3c=function(a){return a.currentValueRenderedContexts.length===0?null:a.currentValueRenderedContexts[0].arcData.category};var F3c=function(a){gJ.call(this,a);this.canvas.className="ac-gauge-view__selected-canvas"};Y(F3c,gJ);
F3c.prototype.drawInternal=function(a){var b=a.currentValue;if(b){var c=b.state;b=b.config;c&&b&&(c.selectedThreshold?(this.canvas.style.left="0px",this.canvas.style.top="0px",x3c(this,a),bl(this.canvas,this.base,c.chartHeight,c.chartWidth),z3c(this,0,.6),y3c(this,c.selectedThreshold,0),a=.02*this.arcRadius*2,this.ctx.save(),this.ctx.beginPath(),this.ctx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.arc(this.centerX,this.centerY,this.arcRadius-a,Math.PI,2*Math.PI),this.ctx.globalCompositeOperation=
"destination-out",this.ctx.fill(),this.ctx.globalCompositeOperation="source-over",this.ctx.closePath(),this.ctx.restore(),z3c(this,a,.6)):al(this.canvas,void 0,this.base))}};var G3c=kk(mk,function(a){if(a&&a.chartWidth>0&&a.chartHeight>0)return{chartWidth:a.chartWidth,chartHeight:a.chartHeight}},JF);var H3c=["labelBodyRef"],I3c=["labelViewRef"],J3c=["labelUnitRef"],hJ=function(a,b,c,d){AG.call(this,a,b,c);this.cdRef=d;this.statusColor=this.unitLabel=this.currentValueLabel=null;this.showUnitAboveValue=!1;this.data=null;this.loading=!1;this.error=null;this.thresholds=[];this.minValue=0;this.unitOverride=null;this.currentValueThresholdCategory=new Ti;this.dataSubject=new Mj(null);this.selectedThresholdSubject=new Mj(null);this.layerType="graphic";this.gaugeView=new C3c(this.el.nativeElement,this.updateLabels.bind(this));
this.configSubject=new Mj({thresholds:this.thresholds,minValue:this.minValue});this.gaugeSelectedView=new F3c(this.el.nativeElement);this.redrawableViews=[this.gaugeView,this.gaugeSelectedView]};Y(hJ,AG);hJ.\u0275dir=AG.\u0275dir;
hJ.prototype.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});VF(this.chart,"chart",function(c){return a.onMouseMove(c)},this.destroyed);this.chart.mouseLeaveObservable.pipe(zf(this.destroyed)).subscribe(function(){a.onMouseLeave()});var b=this.selectorFactoryToObservable(G3c);ie([b,this.configObservable,this.dataObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;return{data:d.next().value.currentValue,
config:e.currentValue,state:c!=null?c:null}}),xf(null),tf(),A(gk),Cf(this.scopeObservable),zf(this.destroyed)).subscribe(function(c){var d=m(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawFromSelection",changes:c,viewHandler:function(e){a.gaugeView.draw(e);a.currentValueThresholdCategory.emit(E3c(a.gaugeView))},scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});ie([this.configObservable,
this.dataObservable,b,this.selectedThresholdSubject]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;return{data:e.currentValue,config:c.currentValue,state:f?Object.assign({},f,{selectedThreshold:d}):null}}),xf(null),tf(),A(gk),Cf(this.scopeObservable),zf(this.destroyed)).subscribe(function(c){var d=m(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawHoverEffects",changes:c,viewHandler:function(e){a.gaugeSelectedView.draw(e)},
scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});this.scopeObservable.pipe(xf(null),tf(),A(gk),zf(this.destroyed)).subscribe(function(c){var d=c.previousValue;(c=c.currentValue)&&(d==null?void 0:d.layerId)!==(c==null?void 0:c.layerId)&&UF(a.chart,[GF({chartGroupId:c.chartGroupId,chartId:c.chartId,previousLayerId:d==null?void 0:d.layerId,currentLayerId:c.layerId})])});this.updateLabels()};
hJ.prototype.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};hJ.prototype.ngOnChanges=function(a){AG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&this.dataSubject.next(this.data);("minValue"in a||"thresholds"in a)&&this.configSubject.next({thresholds:this.thresholds,minValue:this.minValue});"loading"in a&&b.push(EG(this,this.loading,"Gauge"));"error"in a&&b.push(FG(this,this.error,this.hasData()));UF(this.chart,b)};
hJ.prototype.updateLabels=function(){var a,b,c,d,e=(d=(a=this.data)==null?void 0:(b=a.series[0])==null?void 0:(c=b.data[0])==null?void 0:c.y)!=null?d:null,f,g;a=(g=this.unitOverride||((f=this.data)==null?void 0:f.unit))!=null?g:null;e=uAa(e,a);if(e.value){if(this.currentValueLabel=e.value,this.unitLabel=e.unit&&!sAa(e.unit)?" "+e.unit:e.unit,this.currentValueLabel.length+this.unitLabel.length>7&&this.unitLabel&&!sAa(this.unitLabel)?this.showUnitAboveValue=!0:this.showUnitAboveValue=!1,e=E3c(this.gaugeView))this.statusColor=
r3c(e)}else this.unitLabel=this.currentValueLabel="";this.cdRef.markForCheck();a:{if(this.labelViewRef){if(q3c(this.gaugeView)===0)break a;e=this.gaugeView;this.labelViewRef.nativeElement.style.bottom=e.canvasHeight-(e.canvasHeight/2+e.arcRadius/2)+"px";this.labelViewRef.nativeElement.style.width=q3c(this.gaugeView)+"px"}this.cdRef.detectChanges()}};
var K3c=function(a,b){if(b===""||b==="{not_a_unit}")b="1";var c=pAa({min:0,max:a,unit:b},tAa).unit,d=!c||aAa(c)?"":(Ik(c)&&Hk(c)||Pza("")).key||"unitless";if(a===0)d=Nk(0,d);else{a=Lk(b,c,a);if(!a)return"";d=Nk(a,d)}return d};
hJ.prototype.onMouseMove=function(a){var b=[];a=BG(this,a);if(a=D3c(this.gaugeView,a.x,a.y)){var c,d,e=(d=this.unitOverride||((c=this.data)==null?void 0:c.unit))!=null?d:null,f;c={label:(f=a.arcData.label)!=null?f:L3c(a.arcData.category),lowerBound:K3c(a.arcData.lowerBound,e!=null?e:""),upperBound:K3c(a.arcData.upperBound,e!=null?e:"")};this.selectedThreshold=a;b.push(YWc({chartId:this.chartId,lastInteraction:{hover:c}}))}else this.selectedThreshold=null,b.push(YWc({chartId:this.chartId,lastInteraction:{hover:null}}));
return b};hJ.prototype.onMouseLeave=function(){this.selectedThreshold=null};var L3c=function(a){switch(a){case 2:return"Warning";case 3:return"Danger";case 1:return"Normal";default:return""}};hJ.prototype.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this)};da.Object.defineProperties(hJ.prototype,{selectedThreshold:{configurable:!0,enumerable:!0,set:function(a){this.selectedThresholdSubject.next(a)},get:function(){return this.selectedThresholdSubject.value}}});
hJ.\u0275fac=function(a){return new (a||hJ)(Ve(Hd),Ve(TF),Ve(gG),Ve(Cx))};
hJ.\u0275cmp=D({type:hJ,selectors:[["ac-gauge"]],viewQuery:function(a,b){a&1&&(hg(H3c,5),hg(I3c,5),hg(J3c,5));if(a&2){var c;lg(c=mg())&&(b.labelBodyRef=c.first);lg(c=mg())&&(b.labelViewRef=c.first);lg(c=mg())&&(b.labelUnitRef=c.first)}},hostAttrs:[1,"composable-layer","ac-gauge"],inputs:{data:"data",loading:"loading",error:"error",thresholds:"thresholds",minValue:"minValue",unitOverride:"unitOverride",selectedThreshold:"selectedThreshold"},outputs:{currentValueThresholdCategory:"currentValueThresholdCategory"},
features:[Ef,jx],decls:4,vars:4,consts:[["labelViewRef",""],["labelUnitRef",""],["labelBodyRef",""],[1,"ac-gauge__label-view"],["class","ac-gauge__label-unit",4,"ngIf"],["class","ac-gauge__label-body",3,"title",4,"ngIf"],[1,"ac-gauge__label-unit"],[1,"ac-gauge__label-body",3,"title"],[4,"ngIf"]],template:function(a,b){a&1&&(K(0,"div",3,0),E(2,FJa,3,1,"span",4)(3,HJa,4,3,"span",5),L());a&2&&(vg("color",b.statusColor),B(2),I("ngIf",b.showUnitAboveValue),B(),I("ngIf",b.currentValueLabel))},dependencies:[Nx],
styles:["[_nghost-%COMP%]{display:flex;flex-direction:row;position:absolute;width:100%;height:100%;align-items:stretch}.ac-gauge__label-view[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%, 0%);align-items:center;display:flex;flex-direction:column;white-space:nowrap;line-height:normal;container-type:inline-size}.ac-gauge__label-unit[_ngcontent-%COMP%]{font-size:10cqw;font-weight:500;display:inline-block}.ac-gauge__label-body[_ngcontent-%COMP%]{font-size:15cqw;font-weight:500;display:inline-block}.ac-gauge__threshold-view[_ngcontent-%COMP%]{display:block;position:absolute;width:max-content}/*# sourceMappingURL=ac_gauge.css.map */"],
changeDetection:0});var M3c=Uj("[AC] Set layer colorScale",Wj());var iJ=function(a,b,c){CVc.call(this,a,b);this.queueService=c};Y(iJ,CVc);h=iJ.prototype;h.onXAxisChange=function(a,b){Uk(a)&&((a=AVc(this,b))?this.pan(a):this.drawScheduler.schedule(b))};h.onResizeChange=function(a,b){this.drawScheduler.schedule(b)};h.onYAxisChange=function(a,b){var c=a.previousValue,d,e=(d=a.currentValue)==null?void 0:d.position;c=c==null?void 0:c.position;(rl(a)||e!==c)&&this.drawScheduler.schedule(b)};h.onColorScaleChange=function(a,b){this.drawScheduler.schedule(b)};
h.onConfigChange=function(a,b){this.drawScheduler.schedule(b)};h.resizeCanvas=function(a,b){var c;if(b=(c=b.state)==null?void 0:c.resize){c=b.width-b.margins.left-b.margins.right;var d=b.height-b.margins.top-b.margins.bottom;a.style.left=b.margins.left+"px";a.style.top=b.margins.top+"px";bl(a,this.base,d,c)}};
var N3c=function(a){var b=a.state,c=a.config;if(!b||!c)return{};c=b.resize;var d=b.xAxis;b=b.yAxis;if(!c||!d||!b)return{};var e=c.width-c.margins.left-c.margins.right,f=c.height-c.margins.top-c.margins.bottom,g=d.min,k=d.max,l=b.min,r=b.max;c=b.scaleType;var w=b.absoluteMin;if(g===null||k===null||l===null||r===null)return{};var x,C=Kk(b.unit||"1",((x=a.data)==null?void 0:x.unit)||"1")||1;return{xMap:function(H){return Sk(g,k,0,e,H.valueOf())},yMap:c===1?function(H){return H===-Infinity?f:H===Infinity?
0:aBa(l,r,f,0,H,w,C)}:function(H){return Sk(l*C,r*C,f,0,H)}}},O3c=function(a,b,c,d){d=m(tl(a.y,b).map(d));b=d.next().value;d=d.next().value;var e=c(a.x);a=c(a.x0||a.x);c=e-a;b-=d;c<1&&(a-=.5,c=1);b<1&&(d-=.5,b=1);return{x:a,y:d,width:c,height:b}};var P3c={globalAlpha:1,globalCompositeOperation:"source-over"},Q3c=[[38,50,56],[25,53,172],[62,78,184],[103,52,186],[143,25,172],[218,19,95],[255,12,62],[255,109,0],[246,181,0],[255,255,0],[255,255,255]],jJ=function(a,b){iJ.call(this,a,b);this.bgCanvas=document.createElement("canvas");this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1;this.bgCanvas.setAttribute("aria-hidden","true");this.bgCanvas.style.position="absolute";b=this.bgCanvas.getContext("2d");if(!b)throw Error("Ec");this.bgCtx=
b;a.insertBefore(this.bgCanvas,this.canvas)};Y(jJ,iJ);jJ.prototype.onResizeChange=function(a,b){var c=this;qk(a)&&(rk(a)?this.drawScheduler.schedule(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),qG(this,b,this.canvas,this.ctx,!0),qG(this,b,this.bgCanvas,this.bgCtx,!0),this.fullDrawDebounceId=setTimeout(function(){nG(c,c.canvas);nG(c,c.bgCanvas);c.drawScheduler.schedule(b)},250)))};
jJ.prototype.unpack=function(a){var b=a.data,c=a.state;if(!b||!c||!b.series[0])return null;a=b.series[0];var d=a.data,e=c.resize,f=c.xAxis;c=c.yAxis;if(!e||!f||!c)return null;f=Yk(f,e.margins.left,e.width-e.margins.right);b=UBa(c,e.margins.top,e.height-e.margins.bottom,b.unit);return f&&b?{series:a,points:d,inverseDomainMap:f,ascending:d.length?d[d.length-1].x.valueOf()-d[0].x.valueOf()>0:!1,inverseRangeMap:b}:null};
var R3c=function(a,b,c){a=a.unpack(b);if(!a)return null;if(!a.points.length)return[];b=a.inverseDomainMap(c.x);c=a.inverseRangeMap(c.y);if(!b||!c)return null;b=zl(a.points,b.valueOf(),Al(null));var d=a.points[b];if(!d||!d.y.bucketCounts)return null;c=JJa(d,c);return[{seriesId:a.series.id,datumIndices:[{index:b,bucketIndex:c}],ignoreSeriesForHighlighting:!0}]};
jJ.prototype.getValuesAtTime=function(a,b){a=this.unpack(a);if(b===null||!a)return null;if(!a.points.length)return{values:[],timeRange:null};b=zl(a.points,b,Al(null));return{values:[{seriesId:a.series.id,value:a.points[b]}],timeRange:{x:a.points[b].x.valueOf()}}};jJ.prototype.getValuesAtXPosition=function(a,b){var c=this.unpack(a);return c?this.getValuesAtTime(a,c.inverseDomainMap(b)):null};
var S3c=function(a,b,c){if(a=a.unpack(b))if(b=a.inverseDomainMap(c.x),c=a.inverseRangeMap(c.y),b&&c&&(b=zl(a.points,b.valueOf(),Al(null)),(a=a.points[b])&&a.y.bucketCounts))return JJa(a,c)};
jJ.prototype.drawInternal=function(a){var b=performance.now(),c=a.data,d=a.state,e=a.config,f=a.scope;if(d&&e){var g=d.xAxis,k=d.colorScale;if(d.resize&&k){this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null);var l,r=(l=k.byLayer.entities[f.layerId])!=null?l:{layerId:f.layerId,max:0,min:0,colorPivots:[[38,50,56]]};this.fullDrawDebounceId&&clearTimeout(this.fullDrawDebounceId);this.resizeCanvas(this.canvas,a);this.resizeCanvas(this.bgCanvas,a);d=function(H){return Hl(e.colorStrategy.getColor(H,
r))};e.skipZeroValues||T3c(this,d(0));f=N3c(a);a=f.xMap;f=f.yMap;if(a&&f){c=c==null?void 0:c.series;this.ctx.save();$k(this.ctx,P3c,this.base);if(c&&c.length>0){var w,x,C;U3c(this,c[0],a,f,d,(x=e.skipZeroValues)!=null?x:!1,(C=(w=e.styles)==null?void 0:w.renderBucketGap)!=null?C:!1)}this.ctx.restore();g&&g.min!==null&&g.max!==null&&mG(this,g.min,g.max);g=performance.now();this.enableManualLatencyTracking&&lG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:g})}}}};
var T3c=function(a,b){$k(a.bgCtx,P3c,a.base);al(a.bgCanvas,b,a.base)},U3c=function(a,b,c,d,e,f,g){if(b.data.length){a.ctx.save();var k=g?function(C){return{x:C.x+1,y:C.y+1,width:C.width-1,height:C.height-1,color:C.color}}:function(C){return Object.assign({},C,{x:Math.floor(C.x),width:Math.ceil(C.width)})};b=b.data.flatMap(function(C){for(var H=[],J=C.y.bucketCounts,O=0;J&&O<J.length;O++)if(!(f&&J[O]<=0)){var R=O3c(C,O,c,d);H.push(Object.assign({},R,{color:e(J[O])}))}return H.map(k)});b=m(b);for(g=
b.next();!g.done;g=b.next()){g=g.value;var l=g.x,r=g.y,w=g.width,x=g.height;a.ctx.fillStyle=Zk(g.color,a.base);a.ctx.fillRect(l,r,w,x)}a.ctx.restore()}};jJ.prototype.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var V3c=Object.freeze({lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)"}),W3c=function(a,b,c){iJ.call(this,a,b,c)};Y(W3c,iJ);
W3c.prototype.drawInternal=function(a){var b,c,d,e;if(((b=a.config)==null?0:(c=b.interactions)==null?0:c.clickSelect)||((d=a.config)==null?0:(e=d.interactions)==null?0:e.hoverHighlight))if(this.resizeCanvas(this.canvas,a),al(this.canvas,"transparent",this.base),a=this.unpack(a))b=a.rect,$k(this.ctx,a.drawingOptions,this.base),this.ctx.strokeRect(b.x,b.y,b.width,b.height)};W3c.prototype.onSeriesSelectionChange=function(a,b){this.drawScheduler.schedule(b)};
W3c.prototype.unpack=function(a){var b=a.scope.layerId,c,d,e=(c=a.data)==null?void 0:(d=c.series)==null?void 0:d[0],f,g,k,l,r,w,x,C;c=a==null?void 0:(f=a.state)==null?void 0:(g=f.seriesSelection)==null?void 0:(k=g.byLayer)==null?void 0:(l=k.entities)==null?void 0:(r=l[b])==null?void 0:(w=r.selectedSeries)==null?void 0:(x=w[0])==null?void 0:(C=x.datumIndices)==null?void 0:C[0];if(!c){var H,J,O,R,V,ca,na,ua;c=a==null?void 0:(H=a.state)==null?void 0:(J=H.seriesSelection)==null?void 0:(O=J.byLayer)==
null?void 0:(R=O.entities)==null?void 0:(V=R[b])==null?void 0:(ca=V.hoveredSeries)==null?void 0:(na=ca[0])==null?void 0:(ua=na.datumIndices)==null?void 0:ua[0]}if(e&&c&&(f=c.bucketIndex,f!==void 0&&(e=e.data[c.index],k=N3c(a),g=k.xMap,k=k.yMap,g&&k))){e=O3c(e,f,g,k);var ia,Ga,ha,sa;f=(ia=a.state)==null?void 0:(Ga=ia.colorScale)==null?void 0:(ha=Ga.byLayer)==null?void 0:(sa=ha.entities)==null?void 0:sa[b];var xa;a=f?(xa=a.config)==null?void 0:xa.colorStrategy.getColor(0,f):void 0;xa=Object.assign({},
V3c);a&&!Array.isArray(a)&&(xa.strokeStyle=a,xa.filter="invert()");return{drawingOptions:xa,rect:e}}};var X3c=Object.freeze({renderBucketGap:!1}),Y3c=Object.freeze({clickSelect:!1,hoverHighlight:!1}),kJ=function(a,b,c,d,e,f,g){AG.call(this,a,b,c);this.instrumentationService=d;this.modalService=e;this.ngZone=g;this.data=null;this.loading=!1;this.error=null;this.colorPivots=Q3c;this.colorStrategy=WYc;this.layerName="";this.enableManualLatencyTracking=this.skipZeroValues=this.refactorA11yNavInstructions=!1;this.onSelect=new Ti;this.dataSubject=new Mj(this.data);this.configSubject=new Mj({colorStrategy:this.colorStrategy,
skipZeroValues:this.skipZeroValues,styles:this.styles,interactions:this.interactions});this.updateGridTriggerSubject=new qf;this.gridGeneratorSubject=new Mj(null);this.maxBucketCount=this.xAxisRequirement=this.yAxisRequirement=null;this.isMouseOver=!1;this.syncActionsBuffer=this.dataTypeError=null;this.gridGeneratorObservable=this.gridGeneratorSubject.pipe(mf(0),xk(this.ngZone));this.defaultColumnMaskGeneratorSubject=new Mj(function(){return[]});this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(mf(0),
xk(this.ngZone));this.updateHoverSelectionTriggerSubject=new uf(1);this.updateHoverValuesTriggerSubject=new uf(1);this.stylesInternal=X3c;this.interactionsInternal=Y3c;this.layerType="graphic";this.heatmapView=new jJ(a.nativeElement,this.ngZone,f);this.heatmapViewSelected=new W3c(a.nativeElement,this.ngZone,f);this.views.push(this.heatmapView,this.heatmapViewSelected);this.bindDrawInstrumentation()};Y(kJ,AG);kJ.\u0275dir=AG.\u0275dir;h=kJ.prototype;
h.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.heatmapView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);this.updateGridTriggerSubject.pipe(Bf(500),zf(this.destroyed)).subscribe(function(b){var c=void 0;a.gridGeneratorSubject.next(function(){c===void 0&&(c=a.generateGrid(b));return c})});this.updateHoverValuesTriggerSubject.pipe(Bf(10),zf(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});
this.updateHoverSelectionTriggerSubject.pipe(Bf(10),zf(this.destroyed)).subscribe(function(b){Z3c(a,b)});this.chart.mouseEnterObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});VF(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);this.chart.mouseLeaveObservable.pipe(zf(this.destroyed)).subscribe(function(){a.onMouseLeave()});this.chart.mouseClickObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onClick(b)})};
h.bindDrawInstrumentation=function(){var a=this;kG(this.heatmapView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;var e=!a.loading;a.scopeObservable.pipe(lf(1)).subscribe(function(f){var g=f.chartId;f=f.layerId;RG(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});RG(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})})};
h.onDataChange=function(a,b){var c=b.scope,d=b.state,e=a.currentValue,f=[];a.previousValue!==e&&(f.push(wH({chartId:c.chartId,layerId:c.layerId,yAxisId:c.yAxisId,xAxisId:c.xAxisId,valueType:2,unit:(e==null?void 0:e.unit)||null,legendTemplate:this.legendTemplate,alignmentPeriodMs:this.alignmentPeriodMs||void 0})),f.push(vH({chartId:c.chartId,layerId:c.layerId,series:(e==null?void 0:e.series.map(function(l){var r;return{seriesId:l.id,name:(r=l.name)!=null?r:l.id,drawnAs:3,dataSeriesMetadata:l.metadata}}))||
[]})),e?(this.yAxisRequirement=$3c(e),f.push(CG(this,this.yAxisRequirement)),this.xAxisRequirement=a4c(e),f.push(DG(this,this.xAxisRequirement)),a=b4c(e),a!==this.maxBucketCount&&f.push(c4c(this,a))):f.push(c4c(this,0)),this.updateGridTriggerSubject.next(b));var g,k;(d==null?0:(g=d.xAxisPin)==null?0:g.xPos)&&(d==null?0:(k=d.xAxisPin)==null?0:k.locked)&&(b=this.heatmapView.getValuesAtTime(b,d.xAxisPin.xPos),(b=this.updateTimeSeriesValues((b==null?void 0:b.values)||null,(b==null?void 0:b.timeRange)||
null,0))&&f.push(b));UF(this.chart,f)};h.onResizeChange=function(a,b){qk(a)&&this.updateGridTriggerSubject.next(b)};h.onYAxisChange=function(a,b){rl(a)&&this.updateGridTriggerSubject.next(b)};h.onColorScaleChange=function(a,b){a=b.scope;var c,d,e=(c=b.state)==null?void 0:(d=c.colorScale)==null?void 0:d.byLayer.entities[a.layerId];if(e&&e.max!==this.maxBucketCount)for(this.maxBucketCount=e.max,c=m(this.views),d=c.next();!d.done;d=c.next())d.value.draw({currentValue:b.data,previousValue:b.data},b)};
h.onXAxisChange=function(a,b){var c=this;(Uk(a)||Vk(a)||Wk(a))&&this.updateGridTriggerSubject.next(b);if(bBa(a)){var d=void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var e=null;d===void 0&&(c.gridGeneratorSubject.pipe(lf(1)).subscribe(function(f){e=f&&f()}),d=c.generateDefaultColumnMask(b,e));return d})}};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f,g;a=this.heatmapView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:(g=f.xPos)==null?void 0:g.valueOf())||null);var k,l;(f=this.updateTimeSeriesValues((k=a==null?void 0:a.values)!=null?k:null,(l=a==null?void 0:a.timeRange)!=null?l:null,0))&&c.push(f)}return c};h.onMouseEnter=function(){this.isMouseOver=!0};
h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=BG(this,a);this.syncActionsBuffer=[];this.updateHoverSelectionTriggerSubject.next(a);this.updateHoverValuesTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};h.onMouseLeave=function(){var a=this;this.isMouseOver=!1;this.withLatest(function(b){a.store.dispatch(bH({chartId:b.scope.chartId,layerId:b.scope.layerId,series:[]}))})};
h.onClick=function(a){var b=this,c=BG(this,a);this.withLatest(function(d){var e=b.heatmapView.getValuesAtXPosition(d,c.x),f=S3c(b.heatmapView,d,c),g,k,l=b.updateTimeSeriesValues((g=e==null?void 0:e.values)!=null?g:null,(k=e==null?void 0:e.timeRange)!=null?k:null,2,f);l&&b.store.dispatch(l);var r;if((r=b.interactions)==null?0:r.clickSelect){e=R3c(b.heatmapView,d,c);var w,x,C,H,J;f=(w=d.state)==null?void 0:(x=w.seriesSelection)==null?void 0:(C=x.byLayer)==null?void 0:(H=C.entities)==null?void 0:(J=
H[d.scope.layerId])==null?void 0:J.selectedSeries;if(RJa(e,f))b.store.dispatch(aH({chartId:d.scope.chartId,layerId:d.scope.layerId})),b.onSelect.emit(void 0);else{w={chartId:d.scope.chartId,layerId:d.scope.layerId,series:e!=null?e:[]};b.store.dispatch($G(w));var O,R;if(w.series&&((O=d.data)==null?0:O.series)&&((R=w.series[0].datumIndices)==null?void 0:R[0].bucketIndex)!==void 0){var V,ca,na;b.onSelect.emit({series:(V=d.data.series)==null?void 0:V[0],bucketIndex:(ca=w.series[0].datumIndices)==null?
void 0:ca[0].bucketIndex,index:(na=w.series[0].datumIndices)==null?void 0:na[0].index})}}}})};
h.onFocusedCellChange=function(a){var b=this,c=m(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;b.gridGeneratorSubject.pipe(lf(1)).subscribe(function(k){if(k=k&&k()){var l=e!==null?k.columns[e]:null,r=e!==null?k.columns[e-1]:null;if(a.focusedCell){var w,x=(w=l==null?void 0:l.metadata.timeMs)!=null?w:null,C;w=(C=r==null?void 0:r.metadata.timeMs)!=null?C:null;x!==null&&w!==null&&(x=(x+w)/2);b.store.dispatch(JG({chartGroupId:g.chartGroupId,position:x}));
b.store.dispatch(KG({chartGroupId:g.chartGroupId,locked:!!l}))}d!==null&&e!==null&&(C=k.values[d][e],b.store.dispatch(HG({chartId:g.chartId,lastInteraction:{focus:C.position.x}})),b.store.dispatch(IG({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:C.position.y}})))}})})};h.onGridCellActivate=function(a){this.modalService.focus(0,a)};
h.generateGrid=function(a){var b=a.data;var c=a.state;if(!b||!c)return null;a=c.xAxis;var d=c.resize;c=c.yAxis;if(!a||!d||!c)return null;var e=Xk(a,d.margins.left,d.width-d.margins.right,b.xAxisUnit),f=b.unit,g=c.unit;d=sl(c,d.margins.top,d.height-d.margins.bottom,f);var k=a.tickIncrement||null,l=a.timezoneOffset,r=a.timeZoneId;return e&&d?QJa({data:b,xAxisState:a,yAxisState:c,rowFormatter:LJa(f,g,c.maximumFractionDigits),columnFormatter:function(w){return{label:nl({position:w,tickIncrement:k,timeZone:Gk(l,
r)}),value:w}},valueFormatter:PJa(),positionMap:NJa(e,d)}):null};var Z3c=function(a,b){a.withLatest(function(c){var d=R3c(a.heatmapView,c,b);c=bH({chartId:c.scope.chartId,layerId:c.scope.layerId,series:d||[]});a.syncActionsBuffer?a.syncActionsBuffer.push(c):a.store.dispatch(c)})};
kJ.prototype.updateHoverValues=function(a){var b=this;this.withLatest(function(c){var d=b.heatmapView.getValuesAtXPosition(c,a.x);c=S3c(b.heatmapView,c,a);var e,f,g=b.updateTimeSeriesValues((e=d==null?void 0:d.values)!=null?e:null,(f=d==null?void 0:d.timeRange)!=null?f:null,1,c);g&&(b.syncActionsBuffer?b.syncActionsBuffer.push(g):b.store.dispatch(g))})};
kJ.prototype.updateTimeSeriesValues=function(a,b,c,d){var e=null;this.withLatest(function(f){f=f.scope;var g=(a!=null?a:[]).map(function(k){return k.value===null?k:Object.assign({},k,{value:Object.assign({},k.value,{bucketIndex:d})})});e=uH({chartId:f.chartId,layerId:f.layerId,valueType:2,timeKey:c,values:g,timeRange:b!=null?b:void 0})});return e};
var $3c=function(a){if(!a)return null;for(var b=-Infinity,c=Infinity,d=Infinity,e=m(a.series),f=e.next();!f.done;f=e.next()){f=m(f.value.data);for(var g=f.next();!g.done;g=f.next()){var k=g.value.y,l=k.bucketCounts;g=void 0;if((g=l)==null?0:g.length){var r=tl(k,l.length-1);g=r[1];if(g===Infinity){var w=m(tl(k,l.length-2)),x=w.next().value;w=w.next().value;x!==null&&w!==null?g=w+(w-x)*2:g=r[0]}l.length&&l[0]>0?(l=tl(k,0),r=l[0],r===-Infinity&&(x=m(tl(k,1)),k=x.next().value,x=x.next().value,k!==null&&
x!==null?r=k-(x-k)/2:r=l[1])):(l=tl(k,1),r=l[0]);k=void 0;b=Math.max(b,(k=g)!=null?k:b);g=void 0;c=Math.min(c,(g=r)!=null?g:c);d=Math.min(d,Math.abs(r||l[1]||d))}}}return b===-Infinity||c===Infinity?null:{priority:1,absoluteMin:d,min:c,max:b,unit:a.unit||null}},a4c=function(a){if(!a)return null;var b=-Infinity,c=Infinity,d=!1;a=m(a.series);for(var e=a.next();!e.done;e=a.next())e=e.value.data,e.length!==0&&(d=e[e.length-1],b=Math.max(b,e[0].x.valueOf()),c=Math.min(c,(d.x0||d.x).valueOf()),d=!0);return d?
{priority:1,min:c,max:b,unit:"ms_since_epoch"}:null},b4c=function(a){var b=1;a=m(a.series);for(var c=a.next();!c.done;c=a.next()){c=m(c.value.data);for(var d=c.next();!d.done;d=c.next())d=d.value,d.y&&d.y.bucketCounts&&(b=Math.max(b,Math.max.apply({},d.y.bucketCounts)))}return b};kJ.prototype.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?YDa({ticks:a.ticks,grid:b}):[]:[]};
kJ.prototype.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
kJ.prototype.ngOnChanges=function(a){AG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||TEa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(FG(this,this.error,this.hasData()))):(this.dataSubject.next(null),this.dataTypeError={name:"InvalidRequestError",code:400,displayMessage:"Only distribution data can be drawn as a heatmap chart. The data provided cannot be drawn.",message:"Only distribution data can be drawn as a heatmap chart. The data provided cannot be drawn.",
details:{isTimeout:!1}},b.push(FG(this,this.dataTypeError,!1))));("colorStrategy"in a||"skipZeroValues"in a||"styles"in a||"interactions"in a)&&this.configSubject.next({colorStrategy:this.colorStrategy,skipZeroValues:this.skipZeroValues,styles:this.styles,interactions:this.interactions});if("colorPivots"in a){this.colorPivots=a.colorPivots.currentValue;var c=this.data?b4c(this.data):0;b.push(c4c(this,c))}"loading"in a&&b.push(EG(this,this.loading,"Heatmap"));"error"in a&&b.push(FG(this,this.error,
this.hasData()));UF(this.chart,b)};var c4c=function(a,b){return M3c({chartId:a.chartId,layerId:a.layerId,max:b,min:0,colorPivots:a.colorPivots})};kJ.prototype.getLayerTitle=function(){return this.layerName?"Heatmap "+this.layerName:"Heatmap"};kJ.prototype.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);UF(this.chart,[CG(this,null),DG(this,null),FG(this,null,!1),EG(this,!1,"Heatmap")])};
da.Object.defineProperties(kJ.prototype,{styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesInternal=Object.assign({},X3c,a)},get:function(){return this.stylesInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},Y3c,a)},get:function(){return this.interactionsInternal}}});kJ.\u0275fac=function(a){return new (a||kJ)(Ve(Hd),Ve(TF),Ve(gG),Ve(QG),Ve(rH),Ve(UG),Ve(Rg))};
kJ.\u0275cmp=D({type:kJ,selectors:[["ac-heatmap"]],hostAttrs:[1,"composable-layer","ac-heatmap"],inputs:{data:"data",loading:"loading",error:"error",alignmentPeriodMs:"alignmentPeriodMs",colorPivots:"colorPivots",colorStrategy:"colorStrategy",layerName:"layerName",legendTemplate:"legendTemplate",refactorA11yNavInstructions:"refactorA11yNavInstructions",skipZeroValues:"skipZeroValues",styles:"styles",enableManualLatencyTracking:"enableManualLatencyTracking",interactions:"interactions"},outputs:{onSelect:"onSelect"},
features:[Ef,jx],decls:3,vars:9,consts:[[3,"onFocusedCellChange","onGridCellActivate","onFocus","onBlur","gridGenerator","columnMaskGenerator","chartTitle","layerTitle","refactorA11yNavInstructions"]],template:function(a,b){a&1&&(K(0,"ac-accessibility-grid",0),T(1,"async"),T(2,"async"),N("onFocusedCellChange",function(c){return b.onFocusedCellChange(c)})("onGridCellActivate",function(c){return b.onGridCellActivate(c)})("onFocus",function(c){return b.onFocus(c)})("onBlur",function(c){return b.onBlur(c)}),
L());a&2&&I("gridGenerator",U(1,5,b.gridGeneratorObservable))("columnMaskGenerator",U(2,7,b.defaultColumnMaskGeneratorObservable))("chartTitle",b.chart.title)("layerTitle",b.getLayerTitle())("refactorA11yNavInstructions",b.refactorA11yNavInstructions)},dependencies:[yH,Tx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_heatmap.css.map */"],changeDetection:0});var d4c=new dd("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");new dd("mat-progress-bar-location",{providedIn:"root",factory:function(){var a=p(Rh),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}}});
var lJ=function(){var a=this;this._elementRef=p(Hd);this._ngZone=p(Rg);this._changeDetectorRef=p(Cx);this._renderer=p(ci);this._defaultColor="primary";this._bufferValue=this._value=0;this.animationEnd=new Ti;this._mode="determinate";this._transitionendHandler=function(d){a.animationEnd.observers.length!==0&&d.target&&d.target.classList.contains("mdc-linear-progress__primary-bar")&&(a.mode!=="determinate"&&a.mode!=="buffer"||a._ngZone.run(function(){return a.animationEnd.next({value:a.value})}))};
var b=wra(),c=p(d4c,{optional:!0});this._isNoopAnimation=b==="di-disabled";b==="reduced-motion"&&this._elementRef.nativeElement.classList.add("mat-progress-bar-reduced-motion");c&&(c.color&&(this.color=this._defaultColor=c.color),this.mode=c.mode||this.mode)};h=lJ.prototype;h.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._cleanupTransitionEnd=a._renderer.listen(a._elementRef.nativeElement,"transitionend",a._transitionendHandler)})};
h.ngOnDestroy=function(){var a;(a=this._cleanupTransitionEnd)==null||a.call(this)};h._getPrimaryBarTransform=function(){return"scaleX("+(this._isIndeterminate()?1:this.value/100)+")"};h._getBufferBarFlexBasis=function(){return(this.mode==="buffer"?this.bufferValue:100)+"%"};h._isIndeterminate=function(){return this.mode==="indeterminate"||this.mode==="query"};
da.Object.defineProperties(lJ.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color||this._defaultColor},set:function(a){this._color=a}},value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._value=Math.max(0,Math.min(100,a||0));this._changeDetectorRef.markForCheck()}},bufferValue:{configurable:!0,enumerable:!0,get:function(){return this._bufferValue||0},set:function(a){this._bufferValue=Math.max(0,Math.min(100,a||0));this._changeDetectorRef.markForCheck()}},
mode:{configurable:!0,enumerable:!0,get:function(){return this._mode},set:function(a){this._mode=a;this._changeDetectorRef.markForCheck()}}});lJ.\u0275fac=function(a){return new (a||lJ)};
lJ.\u0275cmp=D({type:lJ,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(a,b){a&2&&(If("aria-valuenow",b._isIndeterminate()?null:b.value)("mode",b.mode),xg("mat-"+b.color),wg("_mat-animation-noopable",b._isNoopAnimation)("mdc-linear-progress--animation-ready",!b._isNoopAnimation)("mdc-linear-progress--indeterminate",b._isIndeterminate()))},inputs:{color:"color",
value:[2,"value","value",ah],bufferValue:[2,"bufferValue","bufferValue",ah],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],
template:function(a,b){a&1&&(Qf(0,"div",0),Sf(1,"div",1),F(2,SJa,1,0,"div",2),Rf(),Qf(3,"div",3),Sf(4,"span",4),Rf(),Qf(5,"div",5),Sf(6,"span",4),Rf());a&2&&(B(),vg("flex-basis",b._getBufferBarFlexBasis()),B(),G(b.mode==="buffer"?2:-1),B(),vg("transform",b._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{--mat-progress-bar-animation-multiplier: 1;display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mat-progress-bar-reduced-motion{--mat-progress-bar-animation-multiplier: 2}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mat-progress-bar-track-height, 4px),var(--mat-progress-bar-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mat-progress-bar-track-height, 4px);border-radius:var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{background-image:radial-gradient(circle, var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)) calc(var(--mat-progress-bar-track-height, 4px) / 2), transparent 0);background-repeat:repeat-x;background-size:calc(calc(var(--mat-progress-bar-track-height, 4px) / 2)*5);background-position:left;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mat-progress-bar-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-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 mdc-linear-progress-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 mdc-linear-progress-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 mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{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 mdc-linear-progress-secondary-indeterminate-translate-reverse{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 mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}\n"],
encapsulation:2,changeDetection:0});var mJ=function(){};mJ.\u0275fac=function(a){return new (a||mJ)};mJ.\u0275mod=$e({type:mJ});mJ.\u0275inj=Fc({imports:[Ky]});var e4c={fillStyle:"var(--ac-sys-color-chart-primary, #3367D6)",globalAlpha:.1},nJ=function(a){pG.call(this,a)};Y(nJ,pG);nJ.prototype.drawV1=function(a){this.drawInternal(a)};nJ.prototype.onResizeChange=function(a,b){qk(a)&&this.drawInternal(b)};nJ.prototype.onXAxisChange=function(a,b){Uk(a)&&this.drawInternal(b)};
nJ.prototype.drawInternal=function(a){var b;if((b=a.state)==null?0:b.xAxis){var c=a.data;b=a.state;var d=a.config;if(c&&b){var e=b.resize;b=b.xAxis;if(e&&b){var f=Math.max(0,e.width-e.margins.left-e.margins.right);a=(d==null?0:d.coverTopMargin)?e.height:Math.max(0,e.height-e.margins.top-e.margins.bottom);if(b=Xk(b,0,f)){this.canvas.style.left=e.margins.left+"px";this.canvas.style.top=((d==null?0:d.coverTopMargin)?0:e.margins.top)+"px";bl(this.canvas,this.base,a,f);this.ctx.save();$k(this.ctx,e4c,
this.base);if(c.paused||typeof c.domains==="boolean"&&c.domains===!0)this.ctx.beginPath(),this.ctx.rect(0,0,f,a),this.ctx.fill();else if(Array.isArray(c.domains))for(c=m(c.domains),d=c.next();!d.done;d=c.next())e=d.value,d=b(e.start.valueOf()),e=b(e.end.valueOf()),this.ctx.beginPath(),this.ctx.rect(d,0,e-d,a),this.ctx.fill();this.ctx.restore()}}}}else if((c=a.state)==null?0:c.categoricalAxis)if(b=a.data,c=a.state,a=a.config,b&&c&&(c=c.resize)){d=Math.max(0,c.width-c.margins.left-c.margins.right);
e=(a==null?0:a.coverTopMargin)?c.height:Math.max(0,c.height-c.margins.top-c.margins.bottom);this.canvas.style.left=c.margins.left+"px";this.canvas.style.top=((a==null?0:a.coverTopMargin)?0:c.margins.top)+"px";bl(this.canvas,this.base,e,d);this.ctx.save();$k(this.ctx,e4c,this.base);if(b.paused||typeof b.domains==="boolean"&&b.domains===!0)this.ctx.beginPath(),this.ctx.rect(0,0,d,e),this.ctx.fill();this.ctx.restore()}};var f4c=new Vl("Loading {chartTitle}"),oJ=function(a,b,c,d,e){AG.call(this,a,b,c);var f=this;this.cdr=d;this.ngZone=e;this.showImmediately=this.coverTopMargin=this.useProgressBar=!1;this.spinnerDiameter=40;this.bodyTop=this.bodyLeft=this.bodyWidth=this.bodyHeight=0;this.dataSubject=new Mj({domains:[],paused:!1});this.configSubject=new Mj({coverTopMargin:!1});this.showObservable=this.showSubject=new Mj(!1);this.hasShownForData=!1;this.loadingIndicatorLabel=f4c.format({chartTitle:"chart"});a=new nJ(a.nativeElement);
this.views.push(a);this.ngZoneDataObservable=this.dataObservable.pipe(mf(0),xk(this.ngZone));this.ngZoneDataObservable.pipe(A(function(g){var k;g=(k=g.currentValue)==null?void 0:k.domains;return Array.isArray(g)?g.length>0:g!=null?g:!1}),zf(this.destroyed)).subscribe(function(g){f.hasShownForData=f.hasShownForData||g;f.showImmediately&&!f.hasShownForData||f.showSubject.next(g)})};Y(oJ,AG);oJ.\u0275dir=AG.\u0275dir;
oJ.prototype.ngOnInit=function(){AG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject})};
oJ.prototype.ngOnChanges=function(a){var b=this;AG.prototype.ngOnChanges.call(this,a);"showPausedBeforeFirstLoad"in a&&this.withLatest(function(c){c=c.state;var d;b.dataSubject.next(Object.assign({},b.dataSubject.value,{paused:!(!b.showPausedBeforeFirstLoad||(c==null?0:(d=c.loading)==null?0:d.hasLoadingEverOccurred))}))});"coverTopMargin"in a&&this.configSubject.next({coverTopMargin:this.coverTopMargin});"showImmediately"in a&&(this.hasShownForData||this.showSubject.next(this.showImmediately))};
oJ.prototype.onResizeChange=function(a,b){var c=this,d;if(a=b==null?void 0:(d=b.state)==null?void 0:d.resize)this.bodyLeft=a.margins.left,this.bodyWidth=a.width-a.margins.left-a.margins.right,this.coverTopMargin?(this.bodyTop=0,this.bodyHeight=a.height):(this.bodyTop=a.margins.top,this.bodyHeight=a.height-a.margins.top-a.margins.bottom),this.spinnerDiameter=Math.max(12,Math.min(40,this.bodyHeight-16)),this.ngZone.run(function(){c.cdr.markForCheck()})};
oJ.prototype.onLoadingChange=function(a){var b=a.currentValue;a=!(!this.showPausedBeforeFirstLoad||(b==null?0:b.hasLoadingEverOccurred));if((b==null?0:b.sourceToDescriptionMap)&&(b==null?0:b.sourceToLoadingMap)){var c=g4c(b==null?void 0:b.sourceToLoadingMap,b==null?void 0:b.sourceToDescriptionMap);if(typeof c==="boolean")this.dataSubject.next({domains:c,paused:a});else{b=[];c=m(c);for(var d=c.next();!d.done;d=c.next())d=d.value,b.push({start:d.start,end:d.end,loadingDescription:d.layerNames});this.dataSubject.next({domains:b,
paused:a})}}else this.dataSubject.next({domains:[],paused:a})};
var g4c=function(a,b){for(var c=[],d=m(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=e.value;var f=a[e];if(typeof f==="boolean"){if(f===!0)return!0}else{e=b[e];f=m(f);for(var g=f.next();!g.done;g=f.next())g=g.value,c.push({start:g[0],end:g[1],layerNames:[e]})}}c.sort(function(k,l){return l.start.getTime()-k.start.getTime()});a=c.pop();for(b=[];c.length!==0;)if(a){if(d=c.pop())a.start.getTime()<=d.start.getTime()&&a.end.getTime()>=d.start.getTime()?a={start:a.start,end:d.end.getTime()>a.end.getTime()?
d.end:a.end,layerNames:Array.from(new Set(a.layerNames.concat(d.layerNames)))}:(b.push(a),a=d)}else a=c.pop();a&&b.push(a);return b};da.Object.defineProperties(oJ.prototype,{chartTitle:{configurable:!0,enumerable:!0,set:function(a){a&&(this.loadingIndicatorLabel=f4c.format({chartTitle:a}))}}});oJ.\u0275fac=function(a){return new (a||oJ)(Ve(Hd),Ve(TF),Ve(gG),Ve(Cx),Ve(Rg))};
oJ.\u0275cmp=D({type:oJ,selectors:[["ac-loading"]],hostAttrs:[1,"composable-layer","loading"],inputs:{chartTitle:"chartTitle",showPausedBeforeFirstLoad:"showPausedBeforeFirstLoad",useProgressBar:"useProgressBar",coverTopMargin:"coverTopMargin",showImmediately:"showImmediately"},features:[Ef,jx],decls:2,vars:3,consts:[["class","chart-body",3,"height","width","top","left",4,"ngIf"],[1,"chart-body"],["color","primary",3,"diameter","strokeWidth",4,"ngIf"],["mode","indeterminate","color","primary",4,"ngIf"],
["color","primary",3,"diameter","strokeWidth"],["mode","indeterminate","color","primary"]],template:function(a,b){a&1&&(E(0,VJa,3,10,"div",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.showObservable))},dependencies:[lJ,yI,Nx,Tx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}[_nghost-%COMP%]    {--mat-progress-bar-active-indicator-height: 4px;--mat-progress-bar-track-height: 4px;--mat-progress-bar-track-shape: 0;--mat-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);--mat-fab-container-shape: 50%;--mat-fab-touch-target-size: 48px;--mat-fab-extended-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);--mat-fab-extended-container-height: 48px;--mat-fab-extended-container-shape: 24px;--mat-fab-extended-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-extended-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-extended-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);--mat-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);--mat-fab-small-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);--mat-fab-small-container-shape: 50%;--mat-fab-small-touch-target-size: 48px;--mat-fab-small-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-small-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);--mat-fab-container-color: white;--mat-fab-disabled-state-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-fab-disabled-state-foreground-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-fab-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-fab-focus-state-layer-opacity: 0.12;--mat-fab-foreground-color: rgba(0, 0, 0, 0.87);--mat-fab-hover-state-layer-opacity: 0.04;--mat-fab-pressed-state-layer-opacity: 0.12;--mat-fab-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-fab-small-container-color: white;--mat-fab-small-disabled-state-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-fab-small-disabled-state-foreground-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-fab-small-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-fab-small-focus-state-layer-opacity: 0.12;--mat-fab-small-foreground-color: rgba(0, 0, 0, 0.87);--mat-fab-small-hover-state-layer-opacity: 0.04;--mat-fab-small-pressed-state-layer-opacity: 0.12;--mat-fab-small-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-fab-small-state-layer-color: rgba(0, 0, 0, 0.87);--mat-fab-state-layer-color: rgba(0, 0, 0, 0.87);--mat-fab-small-touch-target-display: block;--mat-fab-touch-target-display: block;--mat-fab-extended-label-text-font: Roboto, sans-serif;--mat-fab-extended-label-text-size: 14px;--mat-fab-extended-label-text-tracking: 0.0892857143em;--mat-fab-extended-label-text-weight: 500;--mat-button-filled-container-shape: 4px;--mat-button-filled-horizontal-padding: 16px;--mat-button-filled-icon-offset: -4px;--mat-button-filled-icon-spacing: 8px;--mat-button-filled-touch-target-size: 48px;--mat-button-outlined-container-shape: 4px;--mat-button-outlined-horizontal-padding: 15px;--mat-button-outlined-icon-offset: -4px;--mat-button-outlined-icon-spacing: 8px;--mat-button-outlined-keep-touch-target: false;--mat-button-outlined-outline-width: 1px;--mat-button-outlined-touch-target-size: 48px;--mat-button-protected-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);--mat-button-protected-container-shape: 4px;--mat-button-protected-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);--mat-button-protected-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);--mat-button-protected-horizontal-padding: 16px;--mat-button-protected-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);--mat-button-protected-icon-offset: -4px;--mat-button-protected-icon-spacing: 8px;--mat-button-protected-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-button-protected-touch-target-size: 48px;--mat-button-text-container-shape: 4px;--mat-button-text-horizontal-padding: 8px;--mat-button-text-icon-offset: 0;--mat-button-text-icon-spacing: 8px;--mat-button-text-with-icon-horizontal-padding: 8px;--mat-button-text-touch-target-size: 48px;--mat-button-tonal-container-shape: 4px;--mat-button-tonal-horizontal-padding: 16px;--mat-button-tonal-icon-offset: -4px;--mat-button-tonal-icon-spacing: 8px;--mat-button-tonal-touch-target-size: 48px;--mat-button-filled-container-color: white;--mat-button-filled-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-filled-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-filled-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-filled-focus-state-layer-opacity: 0.12;--mat-button-filled-hover-state-layer-opacity: 0.04;--mat-button-filled-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-filled-pressed-state-layer-opacity: 0.12;--mat-button-filled-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-filled-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-outlined-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-outlined-disabled-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-outlined-focus-state-layer-opacity: 0.12;--mat-button-outlined-hover-state-layer-opacity: 0.04;--mat-button-outlined-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-outlined-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-pressed-state-layer-opacity: 0.12;--mat-button-outlined-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-outlined-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-protected-container-color: white;--mat-button-protected-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-protected-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-protected-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-protected-focus-state-layer-opacity: 0.12;--mat-button-protected-hover-state-layer-opacity: 0.04;--mat-button-protected-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-protected-pressed-state-layer-opacity: 0.12;--mat-button-protected-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-protected-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-text-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-text-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-text-focus-state-layer-opacity: 0.12;--mat-button-text-hover-state-layer-opacity: 0.04;--mat-button-text-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-text-pressed-state-layer-opacity: 0.12;--mat-button-text-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-text-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-tonal-container-color: white;--mat-button-tonal-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-tonal-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-tonal-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-tonal-focus-state-layer-opacity: 0.12;--mat-button-tonal-hover-state-layer-opacity: 0.04;--mat-button-tonal-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-tonal-pressed-state-layer-opacity: 0.12;--mat-button-tonal-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-tonal-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-filled-container-height: 36px;--mat-button-filled-touch-target-display: block;--mat-button-outlined-container-height: 36px;--mat-button-outlined-touch-target-display: block;--mat-button-protected-container-height: 36px;--mat-button-protected-touch-target-display: block;--mat-button-text-container-height: 36px;--mat-button-text-touch-target-display: block;--mat-button-tonal-container-height: 36px;--mat-button-tonal-touch-target-display: block;--mat-button-filled-label-text-font: Roboto, sans-serif;--mat-button-filled-label-text-size: 14px;--mat-button-filled-label-text-tracking: 0.0892857143em;--mat-button-filled-label-text-transform: none;--mat-button-filled-label-text-weight: 500;--mat-button-outlined-label-text-font: Roboto, sans-serif;--mat-button-outlined-label-text-size: 14px;--mat-button-outlined-label-text-tracking: 0.0892857143em;--mat-button-outlined-label-text-transform: none;--mat-button-outlined-label-text-weight: 500;--mat-button-protected-label-text-font: Roboto, sans-serif;--mat-button-protected-label-text-size: 14px;--mat-button-protected-label-text-tracking: 0.0892857143em;--mat-button-protected-label-text-transform: none;--mat-button-protected-label-text-weight: 500;--mat-button-text-label-text-font: Roboto, sans-serif;--mat-button-text-label-text-size: 14px;--mat-button-text-label-text-tracking: 0.0892857143em;--mat-button-text-label-text-transform: none;--mat-button-text-label-text-weight: 500;--mat-button-tonal-label-text-font: Roboto, sans-serif;--mat-button-tonal-label-text-size: 14px;--mat-button-tonal-label-text-tracking: 0.0892857143em;--mat-button-tonal-label-text-transform: none;--mat-button-tonal-label-text-weight: 500;--mat-checkbox-disabled-selected-checkmark-color: white;--mat-checkbox-selected-focus-state-layer-opacity: 0.12;--mat-checkbox-selected-hover-state-layer-opacity: 0.04;--mat-checkbox-selected-pressed-state-layer-opacity: 0.12;--mat-checkbox-unselected-focus-state-layer-opacity: 0.12;--mat-checkbox-unselected-hover-state-layer-opacity: 0.04;--mat-checkbox-unselected-pressed-state-layer-opacity: 0.12;--mat-checkbox-touch-target-size: 48px;--mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-label-text-color: rgba(0, 0, 0, 0.87);--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #3367d6;--mat-checkbox-selected-hover-icon-color: #3367d6;--mat-checkbox-selected-icon-color: #3367d6;--mat-checkbox-selected-pressed-icon-color: #3367d6;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-checkbox-selected-focus-state-layer-color: #3367d6;--mat-checkbox-selected-hover-state-layer-color: #3367d6;--mat-checkbox-selected-pressed-state-layer-color: #3367d6;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-touch-target-display: block;--mat-checkbox-state-layer-size: 40px;--mat-checkbox-label-text-font: Roboto, sans-serif;--mat-checkbox-label-text-line-height: 20px;--mat-checkbox-label-text-size: 14px;--mat-checkbox-label-text-tracking: 0.0178571429em;--mat-checkbox-label-text-weight: 400;--mat-icon-button-icon-size: 24px;--mat-icon-button-container-shape: 50%;--mat-icon-button-touch-target-size: 48px;--mat-icon-button-disabled-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-icon-button-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-icon-button-focus-state-layer-opacity: 0.12;--mat-icon-button-hover-state-layer-opacity: 0.04;--mat-icon-button-icon-color: inherit;--mat-icon-button-pressed-state-layer-opacity: 0.12;--mat-icon-button-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-icon-button-state-layer-color: rgba(0, 0, 0, 0.87);--mat-icon-button-touch-target-display: block;--mat-autocomplete-container-shape: 4px;--mat-autocomplete-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-autocomplete-background-color: white;--mat-form-field-filled-active-indicator-height: 1px;--mat-form-field-filled-focus-active-indicator-height: 2px;--mat-form-field-filled-container-shape: 4px;--mat-form-field-outlined-outline-width: 1px;--mat-form-field-outlined-focus-outline-width: 2px;--mat-form-field-outlined-container-shape: 4px;--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-filled-caret-color: #3367d6;--mat-form-field-filled-focus-active-indicator-color: #3367d6;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-outlined-caret-color: #3367d6;--mat-form-field-outlined-focus-outline-color: #3367d6;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-disabled-input-text-placeholder-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-state-layer-color: rgba(0, 0, 0, 0.87);--mat-form-field-error-text-color: #d50000;--mat-form-field-select-option-text-color: inherit;--mat-form-field-select-disabled-option-text-color: GrayText;--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(0, 0, 0, 0.54);--mat-form-field-disabled-select-arrow-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-hover-state-layer-opacity: 0.04;--mat-form-field-focus-state-layer-opacity: 0.12;--mat-form-field-filled-container-color: #f6f6f6;--mat-form-field-filled-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-form-field-filled-label-text-color: rgba(0, 0, 0, 0.54);--mat-form-field-filled-hover-label-text-color: rgba(0, 0, 0, 0.54);--mat-form-field-filled-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-filled-input-text-color: rgba(0, 0, 0, 0.87);--mat-form-field-filled-disabled-input-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-filled-input-text-placeholder-color: rgba(0, 0, 0, 0.54);--mat-form-field-filled-error-hover-label-text-color: #d50000;--mat-form-field-filled-error-focus-label-text-color: #d50000;--mat-form-field-filled-error-label-text-color: #d50000;--mat-form-field-filled-error-caret-color: #d50000;--mat-form-field-filled-active-indicator-color: rgba(0, 0, 0, 0.54);--mat-form-field-filled-disabled-active-indicator-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-form-field-filled-hover-active-indicator-color: rgba(0, 0, 0, 0.87);--mat-form-field-filled-error-active-indicator-color: #d50000;--mat-form-field-filled-error-focus-active-indicator-color: #d50000;--mat-form-field-filled-error-hover-active-indicator-color: #d50000;--mat-form-field-outlined-label-text-color: rgba(0, 0, 0, 0.54);--mat-form-field-outlined-hover-label-text-color: rgba(0, 0, 0, 0.87);--mat-form-field-outlined-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-outlined-input-text-color: rgba(0, 0, 0, 0.87);--mat-form-field-outlined-disabled-input-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-outlined-input-text-placeholder-color: rgba(0, 0, 0, 0.54);--mat-form-field-outlined-error-caret-color: #d50000;--mat-form-field-outlined-error-focus-label-text-color: #d50000;--mat-form-field-outlined-error-label-text-color: #d50000;--mat-form-field-outlined-error-hover-label-text-color: #d50000;--mat-form-field-outlined-outline-color: rgba(0, 0, 0, 0.38);--mat-form-field-outlined-disabled-outline-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-form-field-outlined-hover-outline-color: rgba(0, 0, 0, 0.87);--mat-form-field-outlined-error-focus-outline-color: #d50000;--mat-form-field-outlined-error-hover-outline-color: #d50000;--mat-form-field-outlined-error-outline-color: #d50000;--mat-form-field-container-height: 56px;--mat-form-field-filled-label-display: block;--mat-form-field-container-vertical-padding: 16px;--mat-form-field-filled-with-label-container-padding-top: 24px;--mat-form-field-filled-with-label-container-padding-bottom: 8px;--mat-form-field-container-text-font: Roboto, sans-serif;--mat-form-field-container-text-line-height: 24px;--mat-form-field-container-text-size: 16px;--mat-form-field-container-text-tracking: 0.03125em;--mat-form-field-container-text-weight: 400;--mat-form-field-outlined-label-text-populated-size: 16px;--mat-form-field-subscript-text-font: Roboto, sans-serif;--mat-form-field-subscript-text-line-height: 20px;--mat-form-field-subscript-text-size: 12px;--mat-form-field-subscript-text-tracking: 0.0333333333em;--mat-form-field-subscript-text-weight: 400;--mat-form-field-filled-label-text-font: Roboto, sans-serif;--mat-form-field-filled-label-text-size: 16px;--mat-form-field-filled-label-text-tracking: 0.03125em;--mat-form-field-filled-label-text-weight: 400;--mat-form-field-outlined-label-text-font: Roboto, sans-serif;--mat-form-field-outlined-label-text-size: 16px;--mat-form-field-outlined-label-text-tracking: 0.03125em;--mat-form-field-outlined-label-text-weight: 400;--mat-app-background-color: #fafafa;--mat-app-text-color: rgba(0, 0, 0, 0.87);--mat-app-elevation-shadow-level-0: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-6: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, 0.2), 0px 9px 12px 1px rgba(0, 0, 0, 0.14), 0px 3px 16px 2px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, 0.2), 0px 11px 15px 1px rgba(0, 0, 0, 0.14), 0px 4px 20px 3px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 13px 19px 2px rgba(0, 0, 0, 0.14), 0px 5px 24px 4px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, 0.2), 0px 14px 21px 2px rgba(0, 0, 0, 0.14), 0px 5px 26px 4px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, 0.2), 0px 15px 22px 2px rgba(0, 0, 0, 0.14), 0px 6px 28px 5px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, 0.2), 0px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, 0.2), 0px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, 0.2), 0px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, 0.2), 0px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, 0.2), 0px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mat-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-option-selected-state-label-text-color: #3367d6;--mat-option-label-text-color: rgba(0, 0, 0, 0.87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-optgroup-label-text-color: rgba(0, 0, 0, 0.87);--mat-pseudo-checkbox-full-selected-icon-color: #3367d6;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #3367d6;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-option-label-text-font: Roboto, sans-serif;--mat-option-label-text-line-height: 24px;--mat-option-label-text-size: 16px;--mat-option-label-text-tracking: 0.03125em;--mat-option-label-text-weight: 400;--mat-optgroup-label-text-font: Roboto, sans-serif;--mat-optgroup-label-text-line-height: 24px;--mat-optgroup-label-text-size: 16px;--mat-optgroup-label-text-tracking: 0.03125em;--mat-optgroup-label-text-weight: 400;--mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, 0.87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, 0.54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, 0.54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-focused-arrow-color: #3367d6;--mat-select-invalid-arrow-color: #d50000;--mat-select-arrow-transform: translateY(-8px);--mat-select-trigger-text-font: Roboto, sans-serif;--mat-select-trigger-text-line-height: 24px;--mat-select-trigger-text-size: 16px;--mat-select-trigger-text-tracking: 0.03125em;--mat-select-trigger-text-weight: 400;--mat-progress-spinner-active-indicator-width: 4px;--mat-progress-spinner-size: 48px;--mat-progress-spinner-active-indicator-color: #3367d6;--mat-menu-container-shape: 4px;--mat-menu-divider-bottom-spacing: 0;--mat-menu-divider-top-spacing: 0;--mat-menu-item-spacing: 16px;--mat-menu-item-icon-size: 24px;--mat-menu-item-leading-spacing: 16px;--mat-menu-item-trailing-spacing: 16px;--mat-menu-item-with-icon-leading-spacing: 16px;--mat-menu-item-with-icon-trailing-spacing: 16px;--mat-menu-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-menu-item-label-text-color: rgba(0, 0, 0, 0.87);--mat-menu-item-icon-color: rgba(0, 0, 0, 0.87);--mat-menu-item-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-menu-item-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-menu-container-color: white;--mat-menu-divider-color: rgba(0, 0, 0, 0.12);--mat-menu-item-label-text-font: Roboto, sans-serif;--mat-menu-item-label-text-size: 16px;--mat-menu-item-label-text-tracking: 0.03125em;--mat-menu-item-label-text-line-height: 24px;--mat-menu-item-label-text-weight: 400;--mat-tooltip-container-shape: 4px;--mat-tooltip-supporting-text-line-height: 16px;--mat-tooltip-container-color: #424242;--mat-tooltip-supporting-text-color: white;--mat-tooltip-supporting-text-font: Roboto, sans-serif;--mat-tooltip-supporting-text-size: 12px;--mat-tooltip-supporting-text-weight: 400;--mat-tooltip-supporting-text-tracking: 0.0333333333em;--mat-divider-width: 1px;--mat-divider-color: rgba(0, 0, 0, 0.12)}[_nghost-%COMP%]     .mat-mdc-progress-bar{--mat-progress-bar-active-indicator-color: #3367d6;--mat-progress-bar-track-color: rgba(51, 103, 214, 0.25)}[_nghost-%COMP%]     .mat-mdc-progress-bar.mat-accent{--mat-progress-bar-active-indicator-color: #3367d6;--mat-progress-bar-track-color: rgba(51, 103, 214, 0.25)}[_nghost-%COMP%]     .mat-mdc-progress-bar.mat-warn{--mat-progress-bar-active-indicator-color: #d50000;--mat-progress-bar-track-color: rgba(213, 0, 0, 0.25)}[_nghost-%COMP%]     .mat-mdc-fab.mat-primary, [_nghost-%COMP%]     .mat-mdc-mini-fab.mat-primary{--mat-fab-container-color: #3367d6;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-fab-small-container-color: #3367d6;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-fab.mat-accent, [_nghost-%COMP%]     .mat-mdc-mini-fab.mat-accent{--mat-fab-container-color: #3367d6;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-fab-small-container-color: #3367d6;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-fab.mat-warn, [_nghost-%COMP%]     .mat-mdc-mini-fab.mat-warn{--mat-fab-container-color: #d50000;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #d50000 12%, transparent);--mat-fab-small-container-color: #d50000;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-button.mat-primary, [_nghost-%COMP%]     .mat-mdc-unelevated-button.mat-primary, [_nghost-%COMP%]     .mat-mdc-raised-button.mat-primary, [_nghost-%COMP%]     .mat-mdc-outlined-button.mat-primary, [_nghost-%COMP%]     .mat-tonal-button.mat-primary{--mat-button-filled-container-color: #3367d6;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #3367d6;--mat-button-outlined-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-button-outlined-state-layer-color: #3367d6;--mat-button-protected-container-color: #3367d6;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #3367d6;--mat-button-text-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-button-text-state-layer-color: #3367d6;--mat-button-tonal-container-color: #3367d6;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-button.mat-accent, [_nghost-%COMP%]     .mat-mdc-unelevated-button.mat-accent, [_nghost-%COMP%]     .mat-mdc-raised-button.mat-accent, [_nghost-%COMP%]     .mat-mdc-outlined-button.mat-accent, [_nghost-%COMP%]     .mat-tonal-button.mat-accent{--mat-button-filled-container-color: #3367d6;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #3367d6;--mat-button-outlined-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-button-outlined-state-layer-color: #3367d6;--mat-button-protected-container-color: #3367d6;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #3367d6;--mat-button-text-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-button-text-state-layer-color: #3367d6;--mat-button-tonal-container-color: #3367d6;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-button.mat-warn, [_nghost-%COMP%]     .mat-mdc-unelevated-button.mat-warn, [_nghost-%COMP%]     .mat-mdc-raised-button.mat-warn, [_nghost-%COMP%]     .mat-mdc-outlined-button.mat-warn, [_nghost-%COMP%]     .mat-tonal-button.mat-warn{--mat-button-filled-container-color: #d50000;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #d50000;--mat-button-outlined-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-ripple-color: color-mix(in srgb, #d50000 12%, transparent);--mat-button-outlined-state-layer-color: #d50000;--mat-button-protected-container-color: #d50000;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #d50000;--mat-button-text-ripple-color: color-mix(in srgb, #d50000 12%, transparent);--mat-button-text-state-layer-color: #d50000;--mat-button-tonal-container-color: #d50000;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-checkbox.mat-primary{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #3367d6;--mat-checkbox-selected-hover-icon-color: #3367d6;--mat-checkbox-selected-icon-color: #3367d6;--mat-checkbox-selected-pressed-icon-color: #3367d6;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-checkbox-selected-focus-state-layer-color: #3367d6;--mat-checkbox-selected-hover-state-layer-color: #3367d6;--mat-checkbox-selected-pressed-state-layer-color: #3367d6;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, 0.87)}[_nghost-%COMP%]     .mat-mdc-checkbox.mat-warn{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #d50000;--mat-checkbox-selected-hover-icon-color: #d50000;--mat-checkbox-selected-icon-color: #d50000;--mat-checkbox-selected-pressed-icon-color: #d50000;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-checkbox-selected-focus-state-layer-color: #d50000;--mat-checkbox-selected-hover-state-layer-color: #d50000;--mat-checkbox-selected-pressed-state-layer-color: #d50000;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, 0.87)}[_nghost-%COMP%]     .mat-mdc-icon-button.mat-primary{--mat-icon-button-icon-color: #3367d6;--mat-icon-button-state-layer-color: #3367d6;--mat-icon-button-ripple-color: color-mix(in srgb, #3367d6 12%, transparent)}[_nghost-%COMP%]     .mat-mdc-icon-button.mat-accent{--mat-icon-button-icon-color: #3367d6;--mat-icon-button-state-layer-color: #3367d6;--mat-icon-button-ripple-color: color-mix(in srgb, #3367d6 12%, transparent)}[_nghost-%COMP%]     .mat-mdc-icon-button.mat-warn{--mat-icon-button-icon-color: #d50000;--mat-icon-button-state-layer-color: #d50000;--mat-icon-button-ripple-color: color-mix(in srgb, #d50000 12%, transparent)}[_nghost-%COMP%]     .mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 48px;--mat-icon-button-state-layer-size: 48px;width:var(--mat-icon-button-state-layer-size);height:var(--mat-icon-button-state-layer-size);padding:12px}[_nghost-%COMP%]     .mat-mdc-standard-chip{--mat-chip-container-shape-radius: 16px;--mat-chip-disabled-container-opacity: 0.4;--mat-chip-disabled-outline-color: transparent;--mat-chip-flat-selected-outline-width: 0;--mat-chip-focus-outline-color: transparent;--mat-chip-hover-state-layer-opacity: 0.04;--mat-chip-outline-color: transparent;--mat-chip-outline-width: 0;--mat-chip-selected-hover-state-layer-opacity: 0.04;--mat-chip-selected-trailing-action-state-layer-color: transparent;--mat-chip-trailing-action-focus-opacity: 1;--mat-chip-trailing-action-focus-state-layer-opacity: 0;--mat-chip-trailing-action-hover-state-layer-opacity: 0;--mat-chip-trailing-action-opacity: 0.54;--mat-chip-trailing-action-state-layer-color: transparent;--mat-chip-with-avatar-avatar-shape-radius: 14px;--mat-chip-with-avatar-avatar-size: 28px;--mat-chip-with-avatar-disabled-avatar-opacity: 1;--mat-chip-with-icon-disabled-icon-opacity: 1;--mat-chip-with-icon-icon-size: 18px;--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1}[_nghost-%COMP%]     .mat-mdc-standard-chip{--mat-chip-disabled-label-text-color: rgba(0, 0, 0, 0.87);--mat-chip-elevated-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-chip-elevated-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-chip-elevated-selected-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-chip-flat-disabled-selected-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-chip-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-focus-state-layer-opacity: 0.12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-label-text-color: rgba(0, 0, 0, 0.87);--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-selected-focus-state-layer-color: 0.12;--mat-chip-selected-focus-state-layer-opacity: 0.12;--mat-chip-selected-hover-state-layer-color: 0.04;--mat-chip-selected-label-text-color: rgba(0, 0, 0, 0.87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-icon-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-icon-selected-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, 0.87)}[_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary, [_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #3367d6;--mat-chip-elevated-disabled-container-color: #3367d6;--mat-chip-elevated-selected-container-color: #3367d6;--mat-chip-flat-disabled-selected-container-color: #3367d6;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-focus-state-layer-opacity: 0.12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: 0.12;--mat-chip-selected-focus-state-layer-opacity: 0.12;--mat-chip-selected-hover-state-layer-color: 0.04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}[_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent, [_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #3367d6;--mat-chip-elevated-disabled-container-color: #3367d6;--mat-chip-elevated-selected-container-color: #3367d6;--mat-chip-flat-disabled-selected-container-color: #3367d6;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-focus-state-layer-opacity: 0.12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: 0.12;--mat-chip-selected-focus-state-layer-opacity: 0.12;--mat-chip-selected-hover-state-layer-color: 0.04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}[_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn, [_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #d50000;--mat-chip-elevated-disabled-container-color: #d50000;--mat-chip-elevated-selected-container-color: #d50000;--mat-chip-flat-disabled-selected-container-color: #d50000;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-focus-state-layer-opacity: 0.12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: 0.12;--mat-chip-selected-focus-state-layer-opacity: 0.12;--mat-chip-selected-hover-state-layer-color: 0.04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}[_nghost-%COMP%]     .mat-mdc-chip.mat-mdc-standard-chip{--mat-chip-container-height: 32px}[_nghost-%COMP%]     .mat-mdc-standard-chip{--mat-chip-label-text-font: Roboto, sans-serif;--mat-chip-label-text-line-height: 20px;--mat-chip-label-text-size: 14px;--mat-chip-label-text-tracking: 0.0178571429em;--mat-chip-label-text-weight: 400}[_nghost-%COMP%]     .mat-mdc-form-field.mat-accent{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-filled-caret-color: #3367d6;--mat-form-field-filled-focus-active-indicator-color: #3367d6;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-outlined-caret-color: #3367d6;--mat-form-field-outlined-focus-outline-color: #3367d6;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #3367d6 87%, transparent)}[_nghost-%COMP%]     .mat-mdc-form-field.mat-warn{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #d50000 87%, transparent);--mat-form-field-filled-caret-color: #d50000;--mat-form-field-filled-focus-active-indicator-color: #d50000;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #d50000 87%, transparent);--mat-form-field-outlined-caret-color: #d50000;--mat-form-field-outlined-focus-outline-color: #d50000;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #d50000 87%, transparent)}[_nghost-%COMP%]     .mat-accent{--mat-option-selected-state-label-text-color: #3367d6;--mat-option-label-text-color: rgba(0, 0, 0, 0.87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent)}[_nghost-%COMP%]     .mat-warn{--mat-option-selected-state-label-text-color: #d50000;--mat-option-label-text-color: rgba(0, 0, 0, 0.87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent)}[_nghost-%COMP%]     .mat-primary{--mat-pseudo-checkbox-full-selected-icon-color: #3367d6;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #3367d6;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent)}[_nghost-%COMP%]     .mat-accent{--mat-pseudo-checkbox-full-selected-icon-color: #3367d6;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #3367d6;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent)}[_nghost-%COMP%]     .mat-warn{--mat-pseudo-checkbox-full-selected-icon-color: #d50000;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #d50000;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent)}[_nghost-%COMP%]     .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, 0.87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, 0.54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, 0.54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-focused-arrow-color: #3367d6;--mat-select-invalid-arrow-color: #d50000}[_nghost-%COMP%]     .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, 0.87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, 0.54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, 0.54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-focused-arrow-color: #d50000;--mat-select-invalid-arrow-color: #d50000}[_nghost-%COMP%]     .mat-accent{--mat-progress-spinner-active-indicator-color: #3367d6}[_nghost-%COMP%]     .mat-warn{--mat-progress-spinner-active-indicator-color: #d50000}.chart-body[_ngcontent-%COMP%]{position:absolute}.chart-body[_ngcontent-%COMP%]   mat-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:9}.chart-body[_ngcontent-%COMP%]   mat-progress-bar[_ngcontent-%COMP%]{position:absolute;z-index:9}/*# sourceMappingURL=ac_loading.css.map */"],
changeDetection:0});var pJ=function(a,b){pG.call(this,a);this.queueService=b;this.defaultSliceRadius=50;this.canvasHeight=this.canvasWidth=100;this.centerY=this.centerX=50;this.renderedContexts=[];this.donutThickness=this.fullDrawDebounceId=null};Y(pJ,pG);var i4c=function(a,b){return b?h4c(a,b):[].concat(q(a.renderedContexts))};pJ.prototype.clearWithBackground=function(a,b){al(this.canvas,a,this.base,void 0,b)};
pJ.prototype.onResizeChange=function(a,b){var c=this;qk(a)&&(a.currentValue!=null&&(this.canvasWidth=a.currentValue.width,this.canvasHeight=a.currentValue.height),rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),qG(this,b,this.canvas,this.ctx),this.fullDrawDebounceId=setTimeout(function(){c.drawInternal(b)},250)))};
var j4c=function(a,b){if(a==null)return[];var c=[],d=new Map,e=new Map,f=0;a=a.series;if(a.length===0)return[];a.forEach(function(r){if(r.data.length!==0){var w=r.id.toString(),x=r.data[0].y,C=d.get(w);x<=0||isNaN(x)||(f+=x,e.set(w,r),C!==void 0?d.set(w,C+x):d.set(w,x))}});a=m(d);for(var g=a.next();!g.done;g=a.next()){var k=m(g.value);g=k.next().value;k=k.next().value;var l=e.get(g);if(l==null)throw Error("Oc");c.push({id:g,value:k/f,rawValue:k,ref:l})}b&&c.sort(function(r,w){return r.value-w.value});
return c};pJ.prototype.drawV1=function(a){this.drawInternal(a)};pJ.prototype.onConfigChange=function(a,b){this.drawInternal(b)};pJ.prototype.onColorMapChange=function(a,b){this.drawInternal(b)};
var k4c=function(a,b){var c=b.sliceRadius;var d=b.filledColor;var e=b.startAngle;var f=b.angle;b=b.drawLine;var g=a.centerX,k=a.centerY;a.ctx.save();var l=new Path2D;a.ctx.fillStyle=Zk(d,a.base);a.ctx.lineCap="round";a.ctx.translate(.5,.5);a.ctx.beginPath();c=Math.max(c,0);l.moveTo(g,k);l.arc(g,k,c,e,e+f);a.ctx.fill(l);a.ctx.closePath();b&&(a.ctx.beginPath(),a.ctx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",a.base),a.ctx.lineWidth=2,a.ctx.moveTo(g+c*Math.cos(e),k+c*Math.sin(e)),a.ctx.lineTo(g,
k),a.ctx.stroke(),a.ctx.closePath());a.ctx.restore()};pJ.prototype.updateCanvasSize=function(){nG(this,this.canvas);this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,this.canvasHeight,this.canvasWidth)};
var h4c=function(a,b){var c=[],d=b.data,e=b.state,f=b.config,g,k=(g=b.state)==null?void 0:g.colorMap;g=f?f.startAngle:0;var l=!(f==null?0:f.useOrderGiven);g+=Math.PI;l=j4c(b.data,l);a=a.defaultSliceRadius;d=!d||!f||!f.colorStrategy.isReady||f.colorStrategy.isReady(d,e);for(e=0;e<l.length;e++){var r=l[e].id;var w=l[e].value,x=void 0,C=void 0,H=f&&d?Hl(f.colorStrategy.getColor(l[e].ref,b.state)):(C=(x=k)==null?void 0:x.colorMap[r])!=null?C:"var(--ac-sys-color-chart-unfilled, #F1F3F4)";C=void 0;x=(C=
k)==null?void 0:C.shapeMap[r];r=2*Math.PI*w;H={sliceRadius:a,filledColor:H,startAngle:g,angle:r,shape:x,drawLine:l.length>1,data:l[e]};g+=r;c.push(H)}return c},l4c=function(a){if(a.donutThickness&&a.donutThickness.unit==="px")return Math.min(Math.abs(a.donutThickness.value),a.defaultSliceRadius);var b,c=((b=a.donutThickness)==null?void 0:b.unit)==="%"?Math.abs(a.donutThickness.value)/100:.2;return a.defaultSliceRadius*Math.min(1,c)},m4c=function(a){var b=l4c(a),c=a.centerX,d=a.centerY;a.defaultSliceRadius>
b&&(a.ctx.save(),a.ctx.beginPath(),a.ctx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",a.base),a.ctx.arc(c,d,a.defaultSliceRadius-b,0,2*Math.PI),a.ctx.fill(),a.ctx.closePath(),a.ctx.restore())};
pJ.prototype.drawInternal=function(a){this.defaultSliceRadius=this.canvasWidth&&this.canvasHeight?Math.min(this.canvasWidth,this.canvasHeight)/2-10:50;this.centerX=this.canvasWidth/2;this.centerY=this.canvasHeight/2;this.updateCanvasSize();this.renderedContexts=h4c(this,a);this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null)};var n4c=function(a,b){pJ.call(this,a);this.afterRenderHook=b;this.cachePiePaths=new Map;this.isDonut=!1;this.canvas.className="ac-pie-view__canvas"};
Y(n4c,pJ);
var o4c=function(a,b,c){var d=a.canvas.getBoundingClientRect();b-=d.left;c-=d.top;d=m(a.cachePiePaths);for(var e=d.next();!e.done;e=d.next()){var f=m(e.value);e=f.next().value;var g=f=f.next().value,k=b,l=c;f=g.startAngle;var r=g.startAngle+g.angle,w=a.centerX,x=a.centerY;g=a.defaultSliceRadius;var C=a.isDonut?a.defaultSliceRadius-l4c(a):0;C===void 0&&(C=0);var H=f+(r-f)/2;var J=g*Math.cos(H);H=-g*Math.sin(H);var O=k-w,R=x-l,V=Math.sqrt(J*J+H*H),ca=Math.sqrt(O*O+R*R);J=V===0||ca===0?0:Math.acos((J*O+
H*R)/(V*ca));k=Math.sqrt(Math.pow(k-w,2)+Math.pow(l-x,2));f=(r-f)/2;if((Math.abs(J-f)<=Number.EPSILON||J<=f)&&k<=g&&k>=C)return e}return null},p4c=function(a){return a.renderedContexts.reduce(function(b,c){return b+c.data.rawValue},0)};
n4c.prototype.drawInternal=function(a){pJ.prototype.drawInternal.call(this,a);var b=a.config;this.isDonut=a=b?b.isDonut:!1;var c;this.donutThickness=(c=b==null?void 0:b.donutThickness)!=null?c:null;c=this.renderedContexts;this.cachePiePaths=new Map;for(b=0;b<c.length;b++)this.cachePiePaths.set(c[b].data.id,c[b]),k4c(this,c[b]);c.length===0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.fillStyle=Zk("var(--ac-sys-color-chart-unfilled, #F1F3F4)",this.base),this.ctx.arc(this.centerX,this.centerY,this.defaultSliceRadius,
0,2*Math.PI),this.ctx.fill(),this.ctx.closePath(),this.ctx.restore());a&&m4c(this);lG(this);var d;(d=this.afterRenderHook)==null||d.call(this)};var q4c=function(a){pJ.call(this,a);this.selectedIds=[];this.hoveredId=null;this.canvas.className="ac-pie-view__selected-canvas"};Y(q4c,pJ);
q4c.prototype.onSeriesSelectionChange=function(a,b){var c,d,e;a=(c=b.state)==null?void 0:(d=c.seriesSelection)==null?void 0:(e=d.byLayer.entities[b.scope.layerId])==null?void 0:e.hoveredSeries[0];var f,g,k;c=(f=b.state)==null?void 0:(g=f.seriesSelection)==null?void 0:(k=g.byLayer.entities[b.scope.layerId])==null?void 0:k.selectedSeries;var l;this.hoveredId=(l=a==null?void 0:a.seriesId)!=null?l:null;var r;this.selectedIds=(r=c==null?void 0:c.map(function(w){return w.seriesId}))!=null?r:[];this.hoveredId===
null&&this.selectedIds.length===0?this.canvas.style.display="none":(this.canvas.style.display="block",this.drawInternal(b))};
q4c.prototype.drawInternal=function(a){pJ.prototype.drawInternal.call(this,a);var b=a.config;a=b?b.isDonut:!1;var c;this.donutThickness=(c=b==null?void 0:b.donutThickness)!=null?c:null;c=this.selectedIds;if(this.selectedIds.length!==0||this.hoveredId!==null){b=this.renderedContexts;this.clearWithBackground("var(--ac-sys-color-chart-surface, #FFF)",.6);for(var d=0;d<b.length;d++)(c.includes(b[d].data.id)||b[d].data.id===this.hoveredId)&&k4c(this,b[d]);a&&m4c(this)}};var r4c=["summaryBodyRef"],s4c=["summaryViewRef"],qJ=function(a,b,c,d){AG.call(this,a,b,c);this.cdRef=d;this.hoveredSlice=new Ti;this.selectedSlice=new Ti;this.internalCustomizedSummary=this.summaryHeader=this.summaryFooter=this.summaryBody=null;this.updateHoveredSliceTriggerSubject=new uf(1);this.syncActionsBuffer=null;this.colorRecalculationAttemptsRemaining=2;this.loading=!1;this.error=null;this.useOrderGiven=this.showSummary=!1;this.data=null;this.isDonut=!1;this.colorStrategyInternal=new BH;
this.startAngle=0;this.donutThickness="";this.dataSubject=new Mj(null);this.selectedSliceId=null;this.configSubject=new Mj({isDonut:this.isDonut,startAngle:this.startAngle,colorStrategy:this.colorStrategyInternal,useOrderGiven:this.useOrderGiven});this.pieView=new n4c(this.el.nativeElement,this.onPieViewRendered.bind(this));this.selectedPieView=new q4c(this.el.nativeElement);this.views.push(this.pieView);this.views.push(this.selectedPieView)};Y(qJ,AG);qJ.\u0275dir=AG.\u0275dir;
qJ.prototype.onPieViewRendered=function(){t4c(this);u4c(this)};qJ.prototype.onResizeChange=function(){t4c(this)};
var t4c=function(a){if(a.isDonut&&a.summaryBodyRef){var b=a.pieView;b=b.defaultSliceRadius-l4c(b);if(b!==0){b<38?a.summaryViewRef.nativeElement.classList.add("ac-pie__summary-view--small"):a.summaryViewRef.nativeElement.classList.remove("ac-pie__summary-view--small");b=Math.min(32/a.summaryBodyRef.nativeElement.offsetHeight,Math.max(5,b*2-10)/a.summaryBodyRef.nativeElement.offsetWidth);var c=Number(window.getComputedStyle(a.summaryBodyRef.nativeElement).fontSize.split("px")[0]);a.summaryBodyRef.nativeElement.style.fontSize=
c*b+"px"}}};qJ.prototype.onColorMapChange=function(a,b){var c=b.scope,d=b.data,e=b.state;a=[];if(d&&e&&this.colorRecalculationAttemptsRemaining>0){if(c=GG(this.colorStrategy,c,d,e))a.push(c),this.store.dispatch(c),this.colorRecalculationAttemptsRemaining--;this.store.dispatch(v4c(this,b))}return a};
var w4c=function(a){a=Math.max(a,0);a=Math.min(a,360);return a*Math.PI/180},v4c=function(a,b){var c=b.scope,d=i4c(a.pieView,b);return vH({chartId:c.chartId,layerId:c.layerId,series:d.map(function(e){return{seriesId:e.data.id,name:e.data.ref.name||e.data.id,shape:e.shape,drawnAs:7,dataSeriesMetadata:e.data.ref.metadata,color:Hl(a.colorStrategy.getColor(e.data.ref,b.state))}})})},u4c=function(a){if(a.internalCustomizedSummary){var b;a.summaryHeader=(b=a.internalCustomizedSummary.header)!=null?b:null;
var c;a.summaryBody=(c=a.internalCustomizedSummary.body)!=null?c:null;var d;a.summaryFooter=(d=a.internalCustomizedSummary.footer)!=null?d:null}else{var e,f;(b=(f=(e=a.data)==null?void 0:e.unit)!=null?f:null)&&aAa(b)&&(b=bAa(b));if(b===""||b==="{not_a_unit}")b="1";b&&sAa(b)?(e="Average",f=a.pieView,f=f.renderedContexts.length===0?0:p4c(f)/f.renderedContexts.length):(e="Total",f=p4c(a.pieView));f=uAa(f,b);f.value&&f.value!=="0"?(a.summaryHeader=e,f.unit.length===1?(a.summaryBody=f.value+f.unit,a.summaryFooter=
null):(a.summaryBody=f.value,a.summaryFooter=f.unit)):(a.summaryHeader=null,a.summaryBody=null,a.summaryFooter=null)}a.cdRef.detectChanges()},x4c=function(a,b){var c=b.scope;a=i4c(a.pieView,b);return uH({chartId:c.chartId,layerId:c.layerId,valueType:1,timeKey:3,values:a.map(function(d){var e;return{value:{x:(e=d.data.rawValue)!=null?e:0,y:d.data.rawValue},seriesId:d.data.id}}),timeRange:{x:0}})},y4c=function(a,b){var c=[],d=b.scope,e,f;if(b=(e=b.state)==null?void 0:(f=e.seriesSelection)==null?void 0:
f.byLayer.entities[d.layerId]){e=b.selectedSeries;f=b.hoveredSeries;var g,k=new Set((g=a==null?void 0:a.series.map(function(l){return l.id}))!=null?g:[]);a=e.filter(function(l){return k.has(l.seriesId)});a.length!==e.length&&c.push($G({chartId:d.chartId,layerId:d.layerId,series:a}));a=f.filter(function(l){return k.has(l.seriesId)});a.length!==f.length&&c.push(bH({chartId:d.chartId,layerId:d.layerId,series:a}))}return c};
qJ.prototype.onDataChange=function(a,b){var c=[];a=a.currentValue;var d=b.scope,e=b.state;e&&a&&(d=GG(this.colorStrategy,d,a,e))&&c.push(d);var f,g;d=(g=(f=this.data)==null?void 0:f.unit)!=null?g:null;c.push(wH({xAxisId:b.scope.xAxisId,yAxisId:b.scope.yAxisId,chartId:b.scope.chartId,layerId:b.scope.layerId,valueType:1,legendTemplate:this.legendTemplate,unit:d}));c.push(CG(this,{min:0,max:1,unit:d,priority:0}));c.push(v4c(this,b));c.push(x4c(this,b));return c=c.concat(y4c(a,b))};
qJ.prototype.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
qJ.prototype.ngOnChanges=function(a){var b=this;AG.prototype.ngOnChanges.call(this,a);var c=[];"data"in a&&this.dataSubject.next(this.data);"colorStrategy"in a&&this.withLatest(function(d){var e=d.scope;d=d.state;b.data&&d&&(e=GG(b.colorStrategy,e,b.data,d))&&c.push(e)});this.configSubject.next({isDonut:this.isDonut,donutThickness:WJa(this.donutThickness),colorStrategy:this.colorStrategy,startAngle:w4c(this.startAngle),useOrderGiven:this.useOrderGiven});"loading"in a&&c.push(EG(this,this.loading,
"Pie"));"error"in a&&c.push(FG(this,this.error,this.hasData()));UF(this.chart,c)};
var z4c=function(a,b){a.selectedSliceId=b===a.selectedSliceId?null:b;a.selectedSlice.emit(a.selectedSliceId);a.withLatest(function(c){c=c.scope;a.store.dispatch($G({chartId:c.chartId,layerId:c.layerId,series:a.selectedSliceId==null?[]:[{seriesId:a.selectedSliceId}]}))})},A4c=function(a,b){a.hoveredSlice.emit(b);a.withLatest(function(c){var d=c.scope;c=bH({chartId:d.chartId,layerId:d.layerId,series:b==null?[]:[{seriesId:b}]});var e=i4c(a.pieView);d=uH({chartId:d.chartId,layerId:d.layerId,valueType:1,
timeKey:1,values:e.map(function(f){var g,k;return{value:{x:(g=f.data.rawValue)!=null?g:0,y:f.data.rawValue},seriesId:(k=f.data.id)!=null?k:""}}),timeRange:void 0});a.syncActionsBuffer?(a.syncActionsBuffer.push(c),a.syncActionsBuffer.push(d)):(a.store.dispatch(c),a.store.dispatch(d))})};
qJ.prototype.onChartMouseMove=function(a){var b=[];this.syncActionsBuffer=[];a=o4c(this.pieView,a.pageX,a.pageY);this.updateHoveredSliceTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};qJ.prototype.onChartMouseClick=function(a){a=o4c(this.pieView,a.pageX,a.pageY);z4c(this,a)};
qJ.prototype.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.updateHoveredSliceTriggerSubject.pipe(Bf(10),zf(this.destroyed)).subscribe(function(b){A4c(a,b)});VF(this.chart,"chart",this.onChartMouseMove.bind(this),this.destroyed);this.chart.mouseClickObservable.pipe(zf(this.destroyed)).subscribe(this.onChartMouseClick.bind(this));this.chart.mouseLeaveObservable.pipe(zf(this.destroyed)).subscribe(function(){A4c(a,
null)})};qJ.prototype.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);UF(this.chart,[CG(this,null)])};da.Object.defineProperties(qJ.prototype,{customizedSummary:{configurable:!0,enumerable:!0,set:function(a){this.internalCustomizedSummary=a;u4c(this)}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||new BH},get:function(){return this.colorStrategyInternal}}});qJ.\u0275fac=function(a){return new (a||qJ)(Ve(Hd),Ve(TF),Ve(gG),Ve(Cx))};
qJ.\u0275cmp=D({type:qJ,selectors:[["ac-pie"]],viewQuery:function(a,b){a&1&&(hg(r4c,5),hg(s4c,5));if(a&2){var c;lg(c=mg())&&(b.summaryBodyRef=c.first);lg(c=mg())&&(b.summaryViewRef=c.first)}},hostAttrs:[1,"composable-layer","ac-pie"],inputs:{loading:"loading",error:"error",legendTemplate:"legendTemplate",showSummary:"showSummary",useOrderGiven:"useOrderGiven",data:"data",customizedSummary:"customizedSummary",isDonut:"isDonut",colorStrategy:"colorStrategy",startAngle:"startAngle",donutThickness:"donutThickness"},
outputs:{hoveredSlice:"hoveredSlice",selectedSlice:"selectedSlice"},features:[Ef,jx],decls:1,vars:1,consts:[["summaryViewRef",""],["summaryBodyRef",""],["class","ac-pie__summary-view",4,"ngIf"],[1,"ac-pie__summary-view"],["class","ac-pie__summary-view-header",4,"ngIf"],["class","ac-pie__summary-body",3,"title",4,"ngIf"],["class","ac-pie__summary-footer",4,"ngIf"],[1,"ac-pie__summary-view-header"],[1,"ac-pie__summary-body",3,"title"],[1,"ac-pie__summary-footer"]],template:function(a,b){a&1&&E(0,$Ja,
5,3,"div",2);a&2&&I("ngIf",b.isDonut&&b.showSummary)},dependencies:[Nx],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row;position:absolute;width:100%;height:100%;align-items:stretch;color:var(--ac-sys-color-chart-on-surface, #000)}.ac-pie__summary-view[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);align-items:center;display:flex;flex-direction:column;white-space:nowrap;line-height:normal}.ac-pie__summary-view-header[_ngcontent-%COMP%]{font-size:15px;line-height:20px}.ac-pie__summary-body[_ngcontent-%COMP%]{font-size:24px;max-height:32px}.ac-pie__summary-footer[_ngcontent-%COMP%]{font-size:13px;line-height:20px}.ac-pie__summary-view--small[_ngcontent-%COMP%]   .ac-pie__summary-view-header[_ngcontent-%COMP%]{display:none}.ac-pie__summary-view--small[_ngcontent-%COMP%]   .ac-pie__summary-footer[_ngcontent-%COMP%]{display:none}/*# sourceMappingURL=ac_pie.css.map */"],
changeDetection:0});var B4c=["popupContent"],rJ=function(a,b,c,d,e){AG.call(this,a,b,c);this.overlay=d;this.viewContainerRef=e;this.positionStrategy=this.overlay.position().global();this.overlayRef=this.overlay.create(new di({positionStrategy:this.positionStrategy}))};Y(rJ,AG);rJ.\u0275dir=AG.\u0275dir;h=rJ.prototype;h.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);this.chart.mouseClickObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onMouseClick(b)})};h.ngAfterViewInit=function(){};
h.onMouseClick=function(a){this.attachHovercard();var b=25+this.overlayRef.overlayElement.offsetHeight,c=25+this.overlayRef.overlayElement.offsetWidth,d=a.clientY+15,e=a.clientX+15;a.clientY+b>window.innerHeight&&(d=Math.max(0,a.clientY-b+10));a.clientX+c>window.innerWidth&&(e=Math.max(0,a.clientX-c+10));this.positionStrategy.top(d+"px").left(e+"px");this.overlayRef.updatePosition()};h.attachHovercard=function(){this.detachHovercard();this.overlayRef.attach(new Oz(this.popupContent,this.viewContainerRef))};
h.detachHovercard=function(){this.overlayRef.hasAttached()&&this.overlayRef.detach()};rJ.\u0275fac=function(a){return new (a||rJ)(Ve(Hd),Ve(TF),Ve(gG),Ve(Tz),Ve(eg))};
rJ.\u0275cmp=D({type:rJ,selectors:[["ac-popup-card"]],viewQuery:function(a,b){a&1&&hg(B4c,5);if(a&2){var c;lg(c=mg())&&(b.popupContent=c.first)}},hostAttrs:[1,"composable-layer","ac-popup-card"],features:[Gg([{provide:AG,useExisting:rJ}]),Ef],ngContentSelectors:["*"],decls:2,vars:0,consts:[["popupContent",""],[1,"ac-popup-container"]],template:function(a){a&1&&(bg(),Gf(0,aKa,2,0,"ng-template",null,0,Mg))},styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}div.ac-popup-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:var(--ac-sys-color-extensions-surface, #fff);opacity:.9;border:1px solid var(--ac-sys-color-extensions-hairline, #dadce0);padding:12px;min-width:200px}/*# sourceMappingURL=ac_popup_card.css.map */"],
changeDetection:0});var C4c=[-Infinity,Infinity],D4c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:1.25,lineCap:"square"},E4c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:2},sJ=function(a,b){pG.call(this,a);this.queueService=b;this.shapeCanvas=document.createElement("canvas");this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1;this.cachedMappedData=[];this.cachedRawData=
null;this.dataMapping={yAxisUnit:null,yAxisMin:null,yAxisMax:null,yAxisAbsoluteMin:void 0,yAxisScaleType:0,xAxisMin:0,xAxisMax:0,xAxisUnit:null,bodyTop:0,bodyBottom:0,bodyLeft:0,bodyRight:0,dataUnit:null};this.shapeCanvas.setAttribute("aria-hidden","true");this.shapeCanvas.style.position="absolute";b=this.shapeCanvas.getContext("2d");if(!b)throw Error("Ec");this.shapeCtx=b;a.appendChild(this.shapeCanvas)};Y(sJ,pG);h=sJ.prototype;h.drawV1=function(a){this.drawInternal(a)};
h.onXAxisChange=function(a,b){Uk(a)&&this.drawInternal(b)};h.onResizeChange=function(a,b){var c=this;qk(a)&&(rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),qG(this,b,this.canvas,this.ctx),qG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=window.setTimeout(function(){nG(c,c.canvas);nG(c,c.shapeCanvas);c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){rl(a)&&this.drawInternal(b)};
h.onSeriesSelectionChange=function(a,b){pBa(a)&&this.drawInternal(b)};h.onColorMapChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};h.unpackForGetValues=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;c=c.xAxis;return d&&c&&c.min!==null&&c.max!==null?(c=Yk(c,d.margins.left,d.width-d.margins.right,b==null?void 0:b.xAxisUnit))?{data:b,config:a,inverseDomainMap:c}:null:null};
h.getValuesAtTime=function(a,b,c){a=this.unpackForGetValues(a);return a!=null&&a.data?Gl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,"default",c):null};h.getValuesAtXPosition=function(a,b,c){a=this.unpackForGetValues(a);return a?(b=a.inverseDomainMap(b))?Gl(a.data,b==null?void 0:b.valueOf(),a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,"default",c):null:null};
h.unpackForClearing=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;if(!d)return null;var e=d.width,f=d.height,g=d.margins.top,k=d.height-d.margins.bottom,l=d.margins.left;d=d.width-d.margins.right;return{isColorMapReady:!b||!a.colorStrategy.isReady||a.colorStrategy.isReady(b,c),bounds:{top:g,right:d,bottom:k,left:l},canvasWidth:e,canvasHeight:f,bodyTop:g,bodyBottom:k,bodyLeft:l,bodyRight:d,bodyWidth:d-l,bodyHeight:k-g}};
h.shouldShowShape=function(a,b,c,d,e){return a&&b&&!c&&!d||a&&e&&!c&&d?!1:!0};
h.unpackForDrawing=function(a){var b=this,c=this.unpackForClearing(a),d=a.scope,e=a.data,f=a.state,g=a.config;if(!f||!g||!c)return null;var k=c.bodyTop,l=c.bodyBottom,r=c.bodyLeft,w=c.bodyRight;a=f.xAxis;var x=f.yAxis,C=f.seriesSelection,H=f.brush,J=f.lastInteraction;if(!(a&&C&&x&&H))return null;var O=e?e.unit:null,R=sl(x,k,l,O),V=Xk(a,r,w,e==null?void 0:e.xAxisUnit),ca=Yk(a,r,w,e==null?void 0:e.xAxisUnit);if(a.min===null||a.max===null||!V||!R||!ca)return null;var na=(d=C.byLayer.entities[d.layerId])?
d.selectedSeries.map(function(pc){return pc.seriesId}):[],ua=d?d.hoveredSeries.map(function(pc){return pc.seriesId}):[],ia=Object.values(C.byLayer.entities).filter(function(pc){return!!pc}).some(function(pc){return pc.selectedSeries.length||pc.hoveredSeries.length}),Ga=function(pc){var rb=pc.x,Ob=pc.y0,ib=pc.y1;if(Ob==null||ib==null)throw Error("Pc`"+JSON.stringify(pc));return[V(rb.valueOf()),R(Ob),R(ib)]};d={yAxisUnit:x.unit,yAxisMin:x.min,yAxisMax:x.max,yAxisAbsoluteMin:x.absoluteMin,yAxisScaleType:x.scaleType,
xAxisMin:a.min,xAxisMax:a.max,xAxisUnit:a.unit,bodyTop:k,bodyBottom:l,bodyLeft:r,bodyRight:w,dataUnit:O};if(!bKa(d,this.dataMapping)||cKa(e,this.cachedRawData)){this.dataMapping=d;this.cachedRawData=e;var ha,sa;this.cachedMappedData=(sa=e==null?void 0:(ha=e.series)==null?void 0:ha.map(function(pc){return{data:pc.data.map(Ga),id:pc.id}}))!=null?sa:null}ha=this.cachedMappedData;sa=g.colorStrategy.getShape?function(pc){var rb,Ob;return b.shouldShowShape((rb=g.clickDotInteraction)!=null?rb:!1,ia,na.includes(pc.id),
ua.includes(pc.id),(Ob=g.multiselectMode)!=null?Ob:!1)?g.colorStrategy.getShape(pc,f):""}:null;var xa,Qa,bb,ub=(bb=J==null?void 0:(xa=J.domain)==null?void 0:xa.multiselectAnchor)!=null?bb:J==null?void 0:(Qa=J.domain)==null?void 0:Qa.click,Wb,lc=J==null?void 0:(Wb=J.domain)==null?void 0:Wb.hover,fc;return Object.assign({},c,{data:e,mappedData:ha,config:g,colorMap:function(pc){return Hl(g.colorStrategy.getColor(pc,f))},shapeMap:sa,shapeStateMap:function(pc){if(g.clickDotInteraction&&ub&&na.includes(pc.id)){var rb=
Bl(pc.data||[],ca(ub),null,!0);return{position:pc.data[rb],lineSelectedStatus:1}}return g.clickDotInteraction&&lc&&ua.includes(pc.id)&&!g.multiselectMode?(rb=Bl(pc.data||[],ca(lc),null,!0),{position:pc.data[rb],lineSelectedStatus:2}):{position:null,lineSelectedStatus:0}},shapeBoundingBox:g.colorStrategy.shapeBoundingBox,dataMap:Ga,inverseDomainMap:ca,selectedSeriesIds:na,hoveredSeriesIds:ua,anySeriesSelectedOrHovered:ia,brushing:H.brushing||!1,xAxisMin:a.min,xAxisMax:a.max,clickDotInteraction:(fc=
g.clickDotInteraction)!=null?fc:!1})};h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";bl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),a=this.unpackForDrawing(a))){var c=new Path2D;c.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight+1);var d=new Path2D;d.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);c={line:c,area:d};var e=a.anySeriesSelectedOrHovered&&!a.brushing;d=Object.assign({},D4c,{globalAlpha:e?.15:1});this.shapeCtx.globalAlpha=e?.15:1;var f;e=(f=
a.data)==null?void 0:f.series;if(e==null?0:e.length){if(f=a.shapeMap){for(var g=new Set,k=m(e),l=k.next();!l.done;l=k.next())g.add(f(l.value));e.length>g.size&&(f=null)}this.drawLines(e,a.dataMap,a.colorMap,f,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.config,c,d,a.clickDotInteraction)}mG(this,a.xAxisMin,a.xAxisMax);a=performance.now();this.enableManualLatencyTracking&&lG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}};
h.drawLines=function(a,b,c,d,e,f,g,k,l,r,w){this.ctx.save();$k(this.ctx,r,this.base);$k(this.shapeCtx,E4c,this.base);a=m(a);for(r=a.next();!r.done;r=a.next()){r=r.value;var x=c(r),C=d&&d(r),H=e&&e(r);switch(k.pointConnectionMethod){case "always":this.drawLineAlwaysConnect(r,b,x,C,H,f,g,l,k.lineInterpolationMethod,w);break;case "zero_fill":this.drawLineZeroFill(r,b,x,C,H,f,g,k.outputPeriodMs,k.useLegacyGapDetection,l,k.lineInterpolationMethod,w);break;case "never":throw Error("Qc");default:this.drawLineGapDetection(r,
b,x,C,H,f,g,k.outputPeriodMs,k.useLegacyGapDetection,l,k.lineInterpolationMethod,w)}}this.ctx.restore()};
h.drawLineGapDetection=function(a,b,c,d,e,f,g,k,l,r,w,x){k=k!=null?k:Infinity;var C=l;k=k===void 0?Infinity:k;C=C===void 0?!1:C;var H=a.shiftedData;l=eKa(a.data,k,C);k=H&&eKa(H,k,C);k=k===void 0?[]:k;C=F4c(l,b,g);for(H=0;H<l.length;H++)this.drawLineAlwaysConnect(Object.assign({},a,{data:l[H]}),b,c,C===H?d:null,e,f,g,r,w,x);l=F4c(k,b,g);for(C=0;C<k.length;C++)this.drawLineAlwaysConnect(Object.assign({},a,{shiftedData:k[C]}),b,c,l===C?d:null,e,f,g,r,w,x)};
h.drawLineAlwaysConnect=function(a,b,c,d,e,f,g,k,l,r){this.drawLineZeroFill(a,b,c,d,e,f,g,Infinity,!1,k,l,r)};
h.drawLineZeroFill=function(a,b,c,d,e,f,g,k,l,r,w,x){var C=C===void 0?{}:C;a=a.data;if(a.length){k=k||Infinity;this.ctx.save();this.ctx.beginPath();this.ctx.strokeStyle=Zk(c,this.base);var H=Zk(c,this.base);typeof H==="string"&&H.length===7?this.ctx.fillStyle=H+"60":this.ctx.fillStyle=H;this.shapeCtx.fillStyle=Zk(c,this.base);this.ctx.clip(r.line);for(var J=null,O=H=void 0,R=0;R<a.length;R++){var V=a[R-1],ca=a[R],na=m(cl(b(ca),C.lineWidth));c=na.next().value;na.next();var ua=na.next().value;na=c;
var ia=void 0;c=(ia=ca.tileDomain)!=null?ia:C4c;if(dKa(J,c)){if(V&&Cl(k,V,ca,l).gapDetected)for(J=new Date(V.x.valueOf()+k),ia={x:J,y:0,y0:0,y1:0};J<ca.x;J.setMilliseconds(J.getMilliseconds()+k)){var Ga=m(cl(b(ia),C.lineWidth)),ha=Ga.next().value;Ga=Ga.next().value;this.ctx.lineTo(ha,Ga);O=el(O,ha,Ga,H,g);H={x:ha,y:Ga}}switch(w){case "linear":this.ctx.lineTo(na,ua);break;case "step-before":case "step-after":V&&(V=m(cl(b(V),C.lineWidth)),J=V.next().value,V.next(),V=V.next().value,w==="step-before"?
this.ctx.lineTo(J,ua):this.ctx.lineTo(na,V));this.ctx.lineTo(na,ua);break;default:wb(w,"Unsupported interpolation method for stacked are charts")}O=el(O,na,ua,H,g)}else this.ctx.moveTo(na,ua);H={x:na,y:ua};J=c}this.ctx.stroke();x&&d&&e.position&&e.lineSelectedStatus!==0?this.drawShapeWithinBounds(b(e.position)[0],b(e.position)[2],g,d,f,e.lineSelectedStatus,x):this.drawShapeOrInterpolate(O,g,d,f,e.lineSelectedStatus,x);this.ctx.clip(r.area);for(d=a.length-1;d>=0;d--){g=a[d+1];r=a[d];e=m(cl(b(r),C.lineWidth));
c=e.next().value;f=e.next().value;e=c;x=void 0;c=(x=r.tileDomain)!=null?x:C4c;if(dKa(J,c,!0)){if(g&&Cl(k,g,r,l).gapDetected)for(x=new Date(g.x.valueOf()-k),H={x:x,y:0,y0:0,y1:0};x>r.x;x.setMilliseconds(x.getMilliseconds()-k))R=m(cl(b(H),C.lineWidth)),O=R.next().value,R=R.next().value,this.ctx.lineTo(O,R);switch(w){case "linear":this.ctx.lineTo(e,f);break;case "step-before":case "step-after":g&&(r=m(cl(b(g),C.lineWidth)),g=r.next().value,r=r.next().value,w==="step-before"?this.ctx.lineTo(e,r):this.ctx.lineTo(g,
f));this.ctx.lineTo(e,f);break;default:wb(w,"Unsupported interpolation method for stacked are charts")}}else this.ctx.moveTo(e,f);J=c}this.ctx.fill();this.ctx.restore()}};
var G4c=function(a,b,c){a=a.unpackForDrawing(b);if(a==null||!a.data||a==null||!a.mappedData)return null;var d=a.config;b=d.outputPeriodMs;d=d.useLegacyGapDetection;for(var e=a.inverseDomainMap(c.x).valueOf(),f=0;f<a.data.series.length;f++){var g=a.data.series[f],k=a.mappedData[f].data,l=zl(g.data,e,Al(b)),r=l+1,w=g.data[l],x=g.data[r];if(x&&(!b||!Cl(b,w,x,d).gapDetected)){x=m(k[l]);l=x.next().value;w=x.next().value;x=x.next().value;r=m(k[r]);var C=r.next().value;k=r.next().value;r=r.next().value;
k=Sk(l,C,w,k,c.x);if(Sk(l,C,x,r,c.x)<c.y&&c.y<k)return g.id}}return null};sJ.prototype.getSeriesIdsBetween=function(a,b,c){var d=this.unpackForDrawing(a);if(d==null||!d.data)return null;b=m([b,c].map(function(e){return d.data.series.findIndex(function(f){return f.id===e})}).sort(function(e,f){return e-f}));a=b.next().value;b=b.next().value;return d.data.series.slice(a,b+1).map(function(e){return e.id})};
var F4c=function(a,b,c){for(var d=null,e=null,f=0;f<a.length;f++){var g=a[f];if(g.length){var k=b(g[0]),l=g[g.length-1]?b(g[g.length-1]):null;if(g.some(function(w){var x=m(b(w));w=x.next().value;x=x.next().value;return w<c.left-1||w>c.right+1||x<c.top-1||x>c.bottom+1?!1:!0})){var r=g=void 0;k=Math.max(k[0],(r=(g=l)==null?void 0:g[0])!=null?r:-Infinity);if(d===null||e===null||k>e)d=f,e=k}}}return d};
sJ.prototype.drawShape=function(a,b,c,d,e,f){e=e===void 0?0:e;var g=(f=f===void 0?!1:f)?12:16.8;this.shapeCtx.moveTo(a,b);a=jBa(a,b,c,d?g/d.width:1);f&&e===1?(this.shapeCtx.save(),this.shapeCtx.globalAlpha=1,this.shapeCtx.lineWidth=3,this.shapeCtx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.save(),this.shapeCtx.globalAlpha=
1,this.shapeCtx.lineWidth=3,this.shapeCtx.strokeStyle=this.shapeCtx.fillStyle,this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.globalAlpha=.25,this.shapeCtx.fill(a),this.shapeCtx.globalAlpha=1):(this.shapeCtx.save(),this.shapeCtx.globalAlpha=1,f&&(this.shapeCtx.lineWidth=3),this.shapeCtx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",
this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.fill(a))};sJ.prototype.drawShapeWithinBounds=function(a,b,c,d,e,f,g){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e,f===void 0?0:f,g===void 0?!1:g)};
sJ.prototype.drawShapeOrInterpolate=function(a,b,c,d,e,f){if(c&&a){var g=a.x1,k=a.y1;a.x0>a.x1&&(g=a.x0,k=a.y0);g>b.right+1&&(g=b.right,k=Tk(a.x0,a.y0,a.x1,a.y1,g));k<b.top-1&&(k=b.top,g=Tk(a.y0,a.x0,a.y1,a.x1,k));k>b.bottom+1&&(k=b.bottom,g=Tk(a.y0,a.x0,a.y1,a.x1,k));this.drawShapeWithinBounds(g,k,b,c,d,e===void 0?0:e,f===void 0?!1:f)}};sJ.prototype.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var H4c=Object.assign({},D4c,{lineWidth:1.75}),I4c=function(){sJ.apply(this,arguments)};Y(I4c,sJ);I4c.prototype.onSeriesSelectionChange=function(a,b){il(a,b.scope.layerId)&&this.drawInternal(b)};
I4c.prototype.drawInternal=function(a){if(this.clearInternal(a)&&(a=this.unpackForDrawing(a))){var b=new Path2D;b.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight+1);var c=new Path2D;c.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);b={line:b,area:c};var d=a.selectedSeriesIds;a.brushing||(d=d.concat(a.hoveredSeriesIds));var e;c=(e=a.data)==null?void 0:e.series.filter(function(f){return d.includes(f.id)});(c==null?0:c.length)&&this.drawLines(c,a.dataMap,a.colorMap,a.shapeMap,a.shapeStateMap,
a.shapeBoundingBox,a.bounds,a.config,b,H4c,a.clickDotInteraction);mG(this,a.xAxisMin,a.xAxisMax)}};var J4c={clickSelect:!0,hoverHighlight:!0,clickDot:!1},tJ=function(a,b,c,d,e,f,g,k){AG.call(this,a,b,c);this.el=a;this.modalService=d;this.interactionService=e;this.instrumentationService=f;this.ngZone=k;this.data=null;this.loading=!1;this.error=null;this.pointConnectionMethod="gap_detection";this.lineInterpolationMethod="linear";this.alignmentPeriodMs=null;this.refactorA11yNavInstructions=!1;this.outputPeriodMsInternal=null;this.colorStrategyInternal=new BH;this.layerName="";this.enableManualLatencyTracking=
this.useLegacyGapDetection=!1;this.onSelect=new Ti;this.onHover=new Ti;this.onHoverEnd=new Ti;this.closestLineId=null;var l;this.configSubject=new Mj({outputPeriodMs:this.outputPeriodMs,colorStrategy:this.colorStrategy,pointConnectionMethod:this.pointConnectionMethod,lineInterpolationMethod:this.lineInterpolationMethod,useLegacyGapDetection:this.useLegacyGapDetection,clickDotInteraction:(l=this.interactions)==null?void 0:l.clickDot,multiselectMode:!1});this.dataSubject=new Mj(null);this.updateGridTriggerSubject=
new qf;this.gridGeneratorSubject=new Mj(null);this.defaultColumnMaskGeneratorSubject=new Mj(function(){return[]});this.xAxisRequirement=this.derivedMinMaxBand=this.yAxisRequirement=null;this.interactionsInternal=J4c;this.isShiftKeyDown=this.isMetaKeyDown=this.isCtrlKeyDown=!1;this.shiftSelectingFromSeriesId=null;this.isMouseOver=!1;this.hoverHighlightTriggerSubject=new uf(1);this.updateHoverValuesTriggerSubject=new uf(1);this.syncActionsBuffer=this.dataTypeError=null;this.colorRecalculationAttemptsRemaining=
2;this.nextVersion=0;this.gridGeneratorObservable=this.gridGeneratorSubject.pipe(mf(0),xk(this.ngZone));this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(mf(0),xk(this.ngZone));this.layerType="graphic";this.stackedAreaView=new sJ(this.el.nativeElement,g);this.views.push(this.stackedAreaView);this.views.push(new I4c(a.nativeElement));this.bindDrawInstrumentation()};Y(tJ,AG);tJ.\u0275dir=AG.\u0275dir;h=tJ.prototype;
h.ngOnInit=function(){var a=this;AG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject.pipe(A(function(b){return b&&rJa(b)}),A(function(b){return b?Object.assign({},b,{version:a.nextVersion++}):null}),ula(),Dha()),configObservable:this.configSubject});this.stackedAreaView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);this.updateGridTriggerSubject.pipe(jf(500),zf(this.destroyed)).subscribe(function(b){var c=void 0;a.gridGeneratorSubject.next(function(){c===
void 0&&(c=a.generateGrid(b));return c})});this.hoverHighlightTriggerSubject.pipe(Bf(10),zf(this.destroyed)).subscribe(function(b){a.hoverHighlight(b)});this.updateHoverValuesTriggerSubject.pipe(Bf(10),zf(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});this.chart.mouseEnterObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});VF(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);this.chart.mouseLeaveObservable.pipe(zf(this.destroyed)).subscribe(function(){a.onMouseLeave()});
this.chart.mouseClickObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onClick(b)});this.chart.keyDownObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onKeyDown(b)});this.chart.keyUpObservable.pipe(zf(this.destroyed)).subscribe(function(b){a.onKeyUp(b)})};h.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
h.ngOnChanges=function(a){AG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||SEa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(FG(this,this.error,this.hasData()))):(this.dataSubject.next(null),this.dataTypeError={name:"InvalidRequestError",code:400,displayMessage:"Only numeric data can be drawn as a stacked area chart. The data provided cannot be drawn.",message:"Only numeric data can be drawn as a stacked area chart. The data provided cannot be drawn.",
details:{isTimeout:!1}},b.push(FG(this,this.dataTypeError,!1))));if("pointConnectionMethod"in a||"lineInterpolationMethod"in a||"outputPeriodMs"in a||"alignmentPeriodMs"in a||"colorStrategy"in a||"useLegacyGapDetection"in a||"interactions"in a){var c;this.updateViewConfig({pointConnectionMethod:this.pointConnectionMethod,lineInterpolationMethod:this.lineInterpolationMethod,outputPeriodMs:this.outputPeriodMs,colorStrategy:this.colorStrategy,useLegacyGapDetection:this.useLegacyGapDetection,clickDotInteraction:(c=
this.interactions)==null?void 0:c.clickDot})}"loading"in a&&b.push(EG(this,this.loading,"Stacked Area"));"error"in a&&b.push(FG(this,this.error,this.hasData()));UF(this.chart,b)};
h.bindDrawInstrumentation=function(){var a=this;kG(this.stackedAreaView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;var e=!a.loading;a.scopeObservable.pipe(lf(1)).subscribe(function(f){var g=f.chartId;f=f.layerId;RG(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});RG(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})})};
h.onDataChange=function(a,b){var c=this,d=a.previousValue,e=a.currentValue,f=b.scope,g=b.state,k=[];this.derivedMinMaxBand=yAa(e);if(d!==e){if(g==null?0:g.xAxis)(a=Ok(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,g.xAxis.min,g.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,g.xAxis.unit||null))&&this.pointConnectionMethod==="zero_fill"&&(a=BAa(a)),Pk(this.yAxisRequirement,a)&&(this.yAxisRequirement=a,k.push(CG(this,this.yAxisRequirement)));this.xAxisRequirement=zAa(e);k.push(DG(this,this.xAxisRequirement));
k=k.concat(K4c(this,f,e));if(g&&e){if(a=GG(this.colorStrategy,f,e,g))this.store.dispatch(a),this.colorRecalculationAttemptsRemaining=2;this.withLatest(function(R){(R=R.state)&&k.push(c.createSetSeriesColorMetadataAction(f,e,R))});(a=this.updateMostRecentValues(b))&&k.push(a)}var l;if(a=g==null?void 0:(l=g.seriesSelection)==null?void 0:l.byLayer.entities[f.layerId]){l=a.selectedSeries;a=a.hoveredSeries;var r,w=new Set((r=e==null?void 0:e.series.map(function(R){return R.id}))!=null?r:[]);r=l.filter(function(R){return w.has(R.seriesId)});
r.length!==l.length&&k.push($G({chartId:f.chartId,layerId:f.layerId,series:r}));r=a.filter(function(R){return w.has(R.seriesId)});if(r.length!==a.length){var x,C,H=g==null?void 0:(x=g.lastInteraction)==null?void 0:(C=x.domain)==null?void 0:C.hover;H&&(r=r.map(function(R){var V,ca,na=(g==null?0:(V=g.lastInteraction)==null?0:(ca=V.domain)==null?0:ca.hover)?c.getDatumIndices(b,R.seriesId,H,!0):void 0;return Object.assign({},R,{datumIndices:na})}));k.push(bH({chartId:f.chartId,layerId:f.layerId,series:r}))}}this.updateGridTriggerSubject.next(b)}var J,
O;(g==null?0:(J=g.xAxisPin)==null?0:J.xPos)&&(g==null?0:(O=g.xAxisPin)==null?0:O.locked)&&(x=this.stackedAreaView.getValuesAtTime(b,g.xAxisPin.xPos,this.hoverRadiusMs),(x=this.updateTimeSeriesValues(x,0))&&k.push(x));return k};h.onResizeChange=function(a,b){qk(a)&&this.updateGridTriggerSubject.next(b)};h.onYAxisChange=function(a,b){rl(a)&&this.updateGridTriggerSubject.next(b)};
var K4c=function(a,b,c){return[wH({chartId:b.chartId,layerId:b.layerId,yAxisId:b.yAxisId,xAxisId:b.xAxisId,valueType:1,unit:(c==null?void 0:c.unit)||null,legendTemplate:a.legendTemplate,alignmentPeriodMs:a.alignmentPeriodMs||void 0,outputPeriodMs:a.outputPeriodMs||void 0}),vH({chartId:b.chartId,layerId:b.layerId,series:c?c.series.map(function(d,e){var f;return{seriesId:d.id,name:(f=d.name)!=null?f:d.id,drawnAs:1,stackingIndex:c.series.length-1-e,dataSeriesMetadata:d.metadata,statsModeSummaryValue:d.statsModeSummaryValue,
legendTemplate:d.legendTemplate}}):[]})]};h=tJ.prototype;
h.onXAxisChange=function(a,b){var c=this,d=[];if(Uk(a)){var e=b.data,f=b.state;if(f==null?0:f.xAxis)(e=Ok(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,f.xAxis.min,f.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,f.xAxis.unit||null))&&this.pointConnectionMethod==="zero_fill"&&(e=BAa(e)),Pk(this.yAxisRequirement,e)&&(this.yAxisRequirement=e,d.push(CG(this,this.yAxisRequirement)));(e=this.updateMostRecentValues(b))&&d.push(e)}(Uk(a)||Vk(a)||Wk(a))&&this.updateGridTriggerSubject.next(b);if(bBa(a)){var g=
void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var k=null;c.gridGeneratorSubject.pipe(lf(1)).subscribe(function(l){k=l&&l()});g===void 0&&(g=c.generateDefaultColumnMask(b,k));return g})}return d};h.onSeriesSelectionChange=function(){this.updateMultiselectMode()};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.stackedAreaView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null,this.hoverRadiusMs);(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};
h.onColorMapChange=function(a,b){var c=this,d=[],e=b.scope,f=b.data;a=b.state;f&&a&&(this.colorRecalculationAttemptsRemaining>0&&(a=GG(this.colorStrategy,e,f,a))&&(this.store.dispatch(a),this.colorRecalculationAttemptsRemaining--),this.withLatest(function(g){(g=g.state)&&d.push(c.createSetSeriesColorMetadataAction(e,f,g))}));return d};
h.onFocusedCellChange=function(a){var b=this,c=m(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;b.gridGeneratorSubject.pipe(lf(1)).subscribe(function(k){if(k=k&&k()){var l=d!==null?k.rows[d]:null,r=e!==null?k.columns[e]:null;a.focusedCell&&(b.store.dispatch($G({chartId:g.chartId,layerId:g.layerId,series:l?[{seriesId:l.metadata.seriesId}]:[]})),b.store.dispatch(JG({chartGroupId:g.chartGroupId,position:r?r.metadata.timeMs:null})),b.store.dispatch(KG({chartGroupId:g.chartGroupId,
locked:!!r})));b.store.dispatch(bH({chartId:g.chartId,layerId:g.layerId,series:[]}));d!==null&&e!==null&&(k=k.values[d][e],b.store.dispatch(HG({chartId:g.chartId,lastInteraction:{focus:k.position.x}})),b.store.dispatch(IG({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:k.position.y}})))}})})};h.onGridCellActivate=function(a){this.modalService.focus(0,a)};
h.getDatumIndices=function(a,b,c,d){d=d===void 0?!1:d;var e=a.state,f=a.data;if(e){var g;a=(g=a.data)==null?void 0:g.series.find(function(k){return k.id===b});e=b&&(e==null?0:e.xAxis)&&(e==null?0:e.resize)?Yk(e.xAxis,e.resize.margins.left,e.resize.width-e.resize.margins.right,f==null?void 0:f.xAxisUnit):null;return(c=a&&e?Bl(a.data||[],e(c),null,d):null)?[{index:c}]:void 0}};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope,e=c.state,f;if(!(e==null?0:(f=e.brush)==null?0:f.panning)){c=(f=a?G4c(b.stackedAreaView,c,a):null)&&a?b.getDatumIndices(c,f,a.x,!0):void 0;var g,k;e=(e==null?void 0:(g=e.seriesSelection)==null?void 0:(k=g.byLayer.entities[d.layerId])==null?void 0:k.hoveredSeries)||[];g=f?[{seriesId:f,datumIndices:c}]:[];hl(e,g)&&(d=bH({chartId:d.chartId,layerId:d.layerId,series:g}),b.syncActionsBuffer?b.syncActionsBuffer.push(d):b.store.dispatch(d))}})};
h.onClick=function(a){var b=this,c=BG(this,a),d=!1;this.withLatest(function(e){var f=e.config,g=e.scope,k=e.state,l=e.data;if(k&&l){var r=k.seriesSelection,w=k.resize;if(r&&w&&REa(c,w)){var x=G4c(b.stackedAreaView,e,c);r=(r=r.byLayer.entities[g.layerId])?r.selectedSeries.map(function(J){return J.seriesId}):[];if(x&&(l=l.series.find(function(J){return J.id===x}))){if(f){var C,H;l.color=(H=(C=f.colorStrategy)==null?void 0:C.getColor(l,k))!=null?H:void 0}b.onSelect.emit(l)}b.interactions.clickSelect&&
(f=[],k=xl.ve.LineDeselectToggle,x&&(r.length===1&&r.includes(x)?(f=[],k=xl.ve.LineDeselectToggle):b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&r.length>0?(f=b.stackedAreaView.getSeriesIdsBetween(e,b.shiftSelectingFromSeriesId,x,c.x)||f,k=xl.ve.LineMultiSelectToggle):b.isPrimaryModifierKeyDown?(f=r.includes(x)?r.filter(function(J){return J!==x}):[].concat(q(r),[x]),k=xl.ve.LineSpecificSelectToggle):(f=[x],k=xl.ve.LineSelectToggle)),b.shiftSelectingFromSeriesId=x,f.length===0&&b.store.dispatch(HG({chartId:g.chartId,
lastInteraction:{multiselectAnchor:null}})),r.length===0&&f.length===1&&(d=!0,b.store.dispatch(HG({chartId:g.chartId,lastInteraction:{multiselectAnchor:c.x}}))),b.store.dispatch($G({chartId:e.scope.chartId,layerId:e.scope.layerId,series:f.map(function(J){return{seriesId:J}})})),wl(b.interactionService,"click",k,b.el.nativeElement))}}});this.withLatest(function(e){e=b.stackedAreaView.getValuesAtXPosition(e,c.x,b.hoverRadiusMs);var f=b.updateTimeSeriesValues(e,2);f&&b.store.dispatch(f);d&&(e=b.updateTimeSeriesValues(e,
4))&&b.store.dispatch(e)})};var L4c=function(a,b){var c=BG(a,b);a.withLatest(function(d){var e=d.config,f=d.state,g=d.data;if(f&&g&&(d=G4c(a.stackedAreaView,d,c),d!==a.closestLineId))if(a.closestLineId=d,a.closestLineId){if(g=g.series.find(function(r){return r.id===a.closestLineId})){if(e){var k,l;g.color=(l=(k=e.colorStrategy)==null?void 0:k.getColor(g,f))!=null?l:""}a.onHover.emit(g)}}else a.onHoverEnd.emit()})};h=tJ.prototype;
h.onKeyDown=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey;this.updateMultiselectMode()};h.onKeyUp=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey;this.updateMultiselectMode()};
h.updateMultiselectMode=function(){var a=this;this.withLatest(function(b){var c,d,e,f=(d=(c=b.state)==null?void 0:c.seriesSelection)==null?void 0:(e=d.byLayer.entities[b.scope.layerId])==null?void 0:e.selectedSeries;(f==null?0:f.length)&&a.updateViewConfig({multiselectMode:f.length>0&&(a.isShiftKeyDown||a.isPrimaryModifierKeyDown)})})};h.onMouseEnter=function(){this.isMouseOver=!0};
h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;var c=BG(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlightTriggerSubject.next(c);this.updateHoverValuesTriggerSubject.next(c);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;L4c(this,a);return b};h.onMouseLeave=function(){this.isMouseOver=!1;this.interactions.hoverHighlight&&this.hoverHighlight(null);this.onHoverEnd.emit()};
h.generateGrid=function(a){var b=a.data;var c=a.state;a=a.config;if(!b||!c)return null;var d=c.xAxis,e=c.resize;c=c.yAxis;if(!d||!e||!c)return null;var f=Xk(d,e.margins.left,e.width-e.margins.right,b.xAxisUnit),g=b.unit,k=c.unit,l=sl(c,e.margins.top,e.height-e.margins.bottom,g),r=d.tickIncrement||null,w=d.timezoneOffset,x=d.timeZoneId;if(!f||!l)return null;e={top:e.margins.top,right:e.width-e.margins.right,bottom:e.height-e.margins.bottom,left:e.margins.left};var C,H,J,O;return fEa({data:b,xAxisState:d,
yAxisState:c,rowFormatter:cEa(b.series,this.legendTemplate),columnFormatter:function(R){return{label:nl({position:R,tickIncrement:r,timeZone:Gk(w,x)}),value:R}},valueFormatter:aEa(g,k),positionMap:eEa(f,l,e,{outputPeriodMs:(a==null?void 0:a.outputPeriodMs)||void 0}),audioChartContext:d.min!==null&&d.max!==null&&c.min!==null&&c.max!==null?{xAxis:{ticks:d.ticks.map(function(R){return R.value}),min:(C=d.min)!=null?C:void 0,max:(H=d.max)!=null?H:void 0},yAxis:{min:(J=c.min)!=null?J:void 0,max:(O=c.max)!=
null?O:void 0}}:void 0})};h.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?YDa({ticks:a.ticks,grid:b}):[]:[]};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.stackedAreaView.getValuesAtXPosition(c,a.x,b.hoverRadiusMs);(c=b.updateTimeSeriesValues(c,1))&&(b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c))})};
h.updateMostRecentValues=function(a){var b=a.data,c=a.state,d=a.config,e,f=c==null?void 0:(e=c.xAxis)==null?void 0:e.max,g;if(!(c==null?0:(g=c.xAxis)==null?0:g.min)||!f||!d)return null;b=b==null?void 0:b.series.reduce(function(k,l){l=l.data;var r=zl(l,f,Al(d.outputPeriodMs));return(l=l[r])&&(k===null||Math.abs(f-l.x.valueOf())<Math.abs(f-k))?l.x.valueOf():k},null);c=3E5;d.outputPeriodMs&&d.outputPeriodMs<=c&&(c=void 0);return(a=this.stackedAreaView.getValuesAtTime(a,b!=null?b:f))?this.updateTimeSeriesValues(a,
3):null};h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;var e,f;c=uH({chartId:d.chartId,layerId:d.layerId,valueType:1,timeKey:b,values:(e=a==null?void 0:a.values)!=null?e:[],timeRange:(f=a==null?void 0:a.timeRange)!=null?f:void 0})});return c};
h.createSetSeriesColorMetadataAction=function(a,b,c){var d=this;return vH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:1,color:Hl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c)}})})};h.getLayerTitle=function(){return this.layerName?"Stacked Area "+this.layerName:"Stacked Area"};
h.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);UF(this.chart,[CG(this,null),DG(this,null),EG(this,!1,"Stacked Area"),FG(this,null,!1),aH({chartId:this.chartId,layerId:this.layerId})])};h.updateViewConfig=function(a){this.configSubject.next(Object.assign({},this.configSubject.value,a))};
da.Object.defineProperties(tJ.prototype,{interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},J4c,a)},get:function(){return this.interactionsInternal}},outputPeriodMs:{configurable:!0,enumerable:!0,set:function(a){this.outputPeriodMsInternal=a},get:function(){var a;return(a=this.outputPeriodMsInternal)!=null?a:this.alignmentPeriodMs}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||this.colorStrategyInternal},
get:function(){return this.colorStrategyInternal}},isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return ol?this.isMetaKeyDown:this.isCtrlKeyDown}}});tJ.\u0275fac=function(a){return new (a||tJ)(Ve(Hd),Ve(TF),Ve(gG),Ve(rH),Ve(xl),Ve(QG),Ve(UG),Ve(Rg))};
tJ.\u0275cmp=D({type:tJ,selectors:[["ac-stacked-area"]],hostAttrs:[1,"composable-layer","ac-stacked-area"],inputs:{data:"data",loading:"loading",error:"error",interactions:"interactions",pointConnectionMethod:"pointConnectionMethod",lineInterpolationMethod:"lineInterpolationMethod",alignmentPeriodMs:"alignmentPeriodMs",hoverRadiusMs:"hoverRadiusMs",outputPeriodMs:"outputPeriodMs",refactorA11yNavInstructions:"refactorA11yNavInstructions",colorStrategy:"colorStrategy",layerName:"layerName",legendTemplate:"legendTemplate",
useLegacyGapDetection:"useLegacyGapDetection",enableManualLatencyTracking:"enableManualLatencyTracking"},outputs:{onSelect:"onSelect",onHover:"onHover",onHoverEnd:"onHoverEnd"},features:[Ef,jx],decls:3,vars:9,consts:[[3,"onGridCellActivate","onFocusedCellChange","onFocus","onBlur","gridGenerator","columnMaskGenerator","chartTitle","layerTitle","refactorA11yNavInstructions"]],template:function(a,b){a&1&&(K(0,"ac-accessibility-grid",0),T(1,"async"),T(2,"async"),N("onGridCellActivate",function(c){return b.onGridCellActivate(c)})("onFocusedCellChange",
function(c){return b.onFocusedCellChange(c)})("onFocus",function(c){return b.onFocus(c)})("onBlur",function(c){return b.onBlur(c)}),L());a&2&&I("gridGenerator",U(1,5,b.gridGeneratorObservable))("columnMaskGenerator",U(2,7,b.defaultColumnMaskGeneratorObservable))("chartTitle",b.chart.title)("layerTitle",b.getLayerTitle())("refactorA11yNavInstructions",b.refactorA11yNavInstructions)},dependencies:[yH,Tx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_stacked_area.css.map */"],
changeDetection:0});var M4c=[4,4],N4c={globalAlpha:1,lineWidth:2,lineCap:"square",font:'10px "Roboto", sans-serif'},O4c=function(a){pG.call(this,a)};Y(O4c,pG);h=O4c.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onSeriesSelectionChange=function(a,b){var c;il(a)&&((c=b.data)==null?0:c.relatedSeriesId)&&this.drawInternal(b)};h.onResizeChange=function(a,b){qk(a)&&this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.onYAxisChange=function(a,b){var c=a.previousValue,d,e=(d=a.currentValue)==null?void 0:d.position;c=c==null?void 0:c.position;(rl(a)||e!==c)&&this.drawInternal(b)};
h.drawInternal=function(a){var b=this.unpack(a);if(b&&(this.canvas.style.left="0px",this.canvas.style.top="0px",bl(this.canvas,this.base,b.canvasHeight,b.canvasWidth),b.threshold||b.threshold===0)){this.ctx.save();$k(this.ctx,Object.assign({},N4c,{globalAlpha:b.alpha}),this.base);this.ctx.fillStyle=Zk(b.color,this.base);this.ctx.strokeStyle=Zk(b.color,this.base);this.ctx.setLineDash(M4c);this.ctx.beginPath();this.ctx.moveTo(b.lineStart[0],b.lineStart[1]);this.ctx.lineTo(b.lineEnd[0],b.lineEnd[1]);
this.ctx.stroke();if(b.label!==""){a=b.label;var c=this.ctx.measureText(a).width,d=c+8,e;((e=b.labelPosition)!=null?e:b.yAxisPosition)==="right"?(e=b.lineEnd[0]+4,b.marginWidth<c&&(e+=b.marginWidth-d),c=e+d-b.canvasWidth,c>0&&(e-=c)):(e=b.lineStart[0]-Math.min(c,b.marginWidth)+4,e<0&&(e+=Math.abs(e)+8));c=e-4;b=b.lineEnd[1];this.ctx.setLineDash([]);var f=this.ctx;f.beginPath();f.moveTo(c+2,b);f.lineTo(c+d-2,b);f.quadraticCurveTo(c+d,b,c+d,b+2);f.lineTo(c+d,b+14-2);f.quadraticCurveTo(c+d,b+14,c+d-
2,b+14);f.lineTo(c+2,b+14);f.quadraticCurveTo(c,b+14,c,b+14-2);f.lineTo(c,b+2);f.quadraticCurveTo(c,b,c+2,b);f.closePath();f.fill();f.stroke();d=b+10+1;this.ctx.fillStyle=Zk("var(--ac-sys-color-chart-on-surface-inverse, #FFF)",this.base);this.ctx.fillText(a,e,d)}this.ctx.restore()}};
h.unpack=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize,e=c.yAxis;if(!d||!e)return null;var f=d.width,g=d.height,k=sl(e,0,d.height-d.margins.top-d.margins.bottom,(b==null?0:b.unit)?b.unit:null);if(!k)return null;var l,r=(l=a.valueFormatter)!=null?l:Nk;l="";b&&(b.label!==void 0?l=b.label:(l=Lk(b.unit,e.unit,b.threshold),l=l!==null?r(l,e.unit||"1",{maximumFractionDigits:9},e.min!==null&&e.max!==null&&e.unit!==null?{domain:{min:e.min,max:e.max,unit:e.unit}}:void 0):
r(b.threshold,b.unit||e.unit||"1")));r=k(b?b.threshold:0)+d.margins.top;var w=f-d.margins.right;k=cl([d.margins.left,r],N4c.lineWidth);r=cl([w,r],N4c.lineWidth);return{color:a.color,labelPosition:a.labelPosition,label:l,threshold:b==null?void 0:b.threshold,lineStart:k,lineEnd:r,canvasWidth:f,canvasHeight:g,yAxisPosition:e.position,marginWidth:e.position==="left"?d.margins.left:d.margins.right,alpha:P4c(b,c)}};
var P4c=function(a,b){var c=[];if(a==null?0:a.relatedSeriesId){var d,e=m(((d=b.seriesSelection)==null?void 0:d.byLayer.ids)||[]);for(d=e.next();!d.done;d=e.next()){d=d.value;var f=void 0,g=void 0,k=void 0,l=void 0;c=c.concat(((f=b.seriesSelection)==null?void 0:(g=f.byLayer.entities[d])==null?void 0:g.hoveredSeries.map(function(r){return r.seriesId}))||[],((k=b.seriesSelection)==null?void 0:(l=k.byLayer.entities[d])==null?void 0:l.selectedSeries.map(function(r){return r.seriesId}))||[])}}return c.length===
0||c.some(function(r){return r===(a==null?void 0:a.relatedSeriesId)})?1:.15};var Q4c=0,uJ=function(a,b,c,d){AG.call(this,a,b,c);var e=this;this.formatterService=d;this.data=null;this.color="var(--ac-sys-color-chart-threshold, #757575)";this.labelPosition=void 0;this.seriesId="ac-threshold-line-series-"+Q4c++;this.dataSubject=new Mj(this.data);this.configSubject=new Mj({color:this.color,labelPosition:this.labelPosition});this.yAxisRequirement=null;this.thresholdLineView=new O4c(a.nativeElement);this.views.push(this.thresholdLineView);this.scopeObservable.pipe(yf(function(f){return e.formatterService.getValueStrategy(f)}),
zf(this.destroyed)).subscribe(function(f){var g;e.valueFormatter=(g=f.formatShort)!=null?g:f.format;e.updateConfig()})};Y(uJ,AG);uJ.\u0275dir=AG.\u0275dir;h=uJ.prototype;h.ngOnInit=function(){AG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject})};
h.onConfigChange=function(a,b){(a=a.currentValue)&&b.data&&this.store.dispatch(vH({chartId:b.scope.chartId,layerId:b.scope.layerId,series:[{seriesId:this.seriesId,name:b.data.label||"Threshold",color:a.color,drawnAs:6}]}))};
h.onDataChange=function(a,b){a=a.currentValue;var c=b.scope,d=[];this.yAxisRequirement=a?{min:a.threshold,max:a.threshold,priority:1,unit:a.unit||null}:null;d.push(CG(this,this.yAxisRequirement));d.push(wH({chartId:b.scope.chartId,layerId:b.scope.layerId,yAxisId:b.scope.yAxisId,xAxisId:b.scope.xAxisId,valueType:1,unit:(a==null?void 0:a.unit)||null}));b.config&&d.push(vH({chartId:b.scope.chartId,layerId:b.scope.layerId,series:a?[{seriesId:this.seriesId,name:a.label||"Threshold",color:b.config.color,
drawnAs:6}]:[]}));if(a){b=m([1,0,2]);for(var e=b.next();!e.done;e=b.next())d.push(uH({chartId:c.chartId,layerId:c.layerId,valueType:1,timeKey:e.value,values:[{seriesId:this.seriesId,value:{x:new Date,y:a.threshold}}]}))}return d};h.ngOnChanges=function(a){AG.prototype.ngOnChanges.call(this,a);"data"in a&&this.dataSubject.next(this.data);("color"in a||"labelPosition"in a)&&this.updateConfig()};h.ngOnDestroy=function(){AG.prototype.ngOnDestroy.call(this);UF(this.chart,[CG(this,null)])};
h.updateConfig=function(){this.configSubject.next({color:this.color,labelPosition:this.labelPosition,valueFormatter:this.valueFormatter})};uJ.\u0275fac=function(a){return new (a||uJ)(Ve(Hd),Ve(TF),Ve(gG),Ve(fG))};
uJ.\u0275cmp=D({type:uJ,selectors:[["ac-threshold-line"]],hostAttrs:[1,"composable-layer","ac-threshold-line"],inputs:{data:"data",color:"color",labelPosition:"labelPosition"},features:[Ef,jx],decls:0,vars:0,template:function(){},styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_threshold_line.css.map */"],changeDetection:0});var R4c=rw(['<svg data-icon-name="alertIcon" viewBox="0 0 24 24" width="24" height="24"><path fill-rule="evenodd" d="M14.4 20.8H9.6c0 1.76 1.08 3.2 2.4 3.2 1.32 0 2.4-1.44 2.4-3.2zm-.808-19.041A8.003 8.003 0 0120 9.6v6.393l1.6 1.6V19.2H2.4v-1.607l1.6-1.6V9.6a8.003 8.003 0 016.408-7.841 1.6 1.6 0 113.185 0z" clip-rule="evenodd"/></svg>']),S4c=th(R4c).firstElementChild;var T4c=rw(['<svg data-icon-name="arrowDropDownIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M7 10l5 5 5-5z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),U4c=th(T4c).firstElementChild;var V4c=rw(['<svg data-icon-name="arrowRightIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M10 17l5-5-5-5v10z"/><path fill="none" d="M0 24V0h24v24H0z"/></svg>']),W4c=th(V4c).firstElementChild;var X4c=rw(['<svg data-icon-name="baselineCalendarToday24pxIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),Y4c=th(X4c).firstElementChild;var Z4c=rw(['<svg data-icon-name="callMadeIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"/></svg>']),$4c=th(Z4c).firstElementChild;var a5c=rw(['<svg data-icon-name="callReceivedIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M20 5.41L18.59 4 7 15.59V9H5v10h10v-2H8.41z"/></svg>']),b5c=th(a5c).firstElementChild;var c5c=rw(['<svg data-icon-name="checkCircleIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>']),d5c=th(c5c).firstElementChild;var e5c=rw(['<svg data-icon-name="clearIcon" viewBox="0 0 24 24" width="24" height="24"><path 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 12z"/></svg>']),f5c=th(e5c).firstElementChild;var g5c=rw(['<svg data-icon-name="closeIcon" viewBox="0 0 24 24" width="24" height="24"><path fill-rule="evenodd" 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 12z"/></svg>']),h5c=th(g5c).firstElementChild;var i5c=rw(['<svg data-icon-name="codeIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>']),j5c=th(i5c).firstElementChild;var k5c=rw(['<svg data-icon-name="copyFileIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"/></svg>']),l5c=th(k5c).firstElementChild;var m5c=rw(['<svg data-icon-name="errorIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path 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"/></svg>']),n5c=th(m5c).firstElementChild;var o5c=rw(['<svg data-icon-name="filterListIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/></svg>']),p5c=th(o5c).firstElementChild;var q5c=rw(['<svg data-icon-name="filterSmallIcon" viewBox="0 0 18 18" width="18" height="18"><path fill-rule="evenodd" d="M2 4h14v2H2V4zm2 4h10v2H4V8zm2 4h6v2H6v-2z"/></svg>']),r5c=th(q5c).firstElementChild;var s5c=rw(['<svg data-icon-name="helpOutlineIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"/></svg>']),t5c=th(s5c).firstElementChild;var u5c=rw(['<svg data-icon-name="highlightOffIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>']),v5c=th(u5c).firstElementChild;var w5c=rw(['<svg data-icon-name="infoIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path 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-6h2v6zm0-8h-2V7h2v2z"/></svg>']),x5c=th(w5c).firstElementChild;var y5c=rw(['<svg data-icon-name="infoActiveIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path 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-6h2v6zm0-8h-2V7h2v2z"/><path fill="#1a73e8" d="M16.216 4.471c0 2.806 3.036 4.559 5.467 3.156a3.643 3.643 0 001.821-3.156c0-2.807-3.037-4.56-5.466-3.158a3.648 3.648 0 00-1.822 3.158"/></svg>']),z5c=th(y5c).firstElementChild;var A5c=rw(['<svg data-icon-name="keyboardArrowDownIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"/></svg>']),B5c=th(A5c).firstElementChild;var C5c=rw(['<svg data-icon-name="keyboardArrowUpIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>']),D5c=th(C5c).firstElementChild;var E5c=rw(['<svg data-icon-name="lensIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/></svg>']),F5c=th(E5c).firstElementChild;var G5c=rw(['<svg data-icon-name="lightbulbIcon" viewBox="0 0 24 24" width="24" height="24"><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"/><path fill="#F9AB00" d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7z"/></g></svg>']),H5c=th(G5c).firstElementChild;var I5c=rw(['<svg data-icon-name="listIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),J5c=th(I5c).firstElementChild;var K5c=rw(['<svg data-icon-name="moreVertIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 8c1.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"/></svg>']),L5c=th(K5c).firstElementChild;var M5c=rw(['<svg data-icon-name="musicNoteIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/></svg>']),N5c=th(M5c).firstElementChild;var O5c=rw(['<svg data-icon-name="musicOffIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21.19 21.19L14 14l-2-2-9.2-9.2-1.41 1.42 8.79 8.79c-.06 0-.12-.01-.18-.01a3.999 3.999 0 10.01 8c2.22 0 3.99-1.79 3.99-4v-.17l5.78 5.78 1.41-1.42zM14 11.17V7h4V3h-6v6.17z"/></svg>']),P5c=th(O5c).firstElementChild;var Q5c=rw(['<svg data-icon-name="offlineBoltIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 2.02c-5.51 0-9.98 4.47-9.98 9.98s4.47 9.98 9.98 9.98 9.98-4.47 9.98-9.98S17.51 2.02 12 2.02zM11.48 20v-6.26H8L13 4v6.26h3.35L11.48 20z"/></svg>']),R5c=th(Q5c).firstElementChild;var S5c=rw(['<svg data-icon-name="openInNewIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></svg>']),T5c=th(S5c).firstElementChild;var U5c=rw(['<svg data-icon-name="pinOutlineIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M17 4v7l2 3v2h-6v5l-1 1-1-1v-5H5v-2l2-3V4c0-1.1.9-2 2-2h6c1.11 0 2 .89 2 2zM9 4v7.75L7.5 14h9L15 11.75V4H9z"/></svg>']),V5c=th(U5c).firstElementChild;var W5c=rw(['<svg data-icon-name="playArrowIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M8 5v14l11-7z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),X5c=th(W5c).firstElementChild;var Y5c=rw(['<svg data-icon-name="queryStatsIcon" viewBox="0 0 20 20" width="20" height="20"><path d="M17.917 19.167l-2.605-2.605q-.437.292-.937.428-.5.135-1.042.135-1.583 0-2.687-1.104-1.104-1.104-1.104-2.688 0-1.583 1.104-2.687 1.104-1.104 2.687-1.104 1.584 0 2.688 1.104t1.104 2.687q0 .542-.135 1.042-.136.5-.428.958l2.605 2.584zm-4.584-3.792q.855 0 1.448-.594.594-.593.594-1.448 0-.854-.594-1.448-.593-.593-1.448-.593-.854 0-1.448.593-.593.594-.593 1.448 0 .855.593 1.448.594.594 1.448.594zM2.271 15.25L.833 14.229l4.229-6.75 2.5 2.917 3.334-5.438 2.229 3.334q-.479.041-.937.135-.459.094-.876.302l-.354-.521-3.166 5.125-2.521-2.937zm13.083-6.521q-.416-.208-.875-.302-.458-.094-.937-.135l4.187-6.625 1.438 1.021z"/></svg>']),
Z5c=th(Y5c).firstElementChild;var $5c=rw(['<svg data-icon-name="selectedSeriesIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M12 1.5h10.5V12H12V1.5zm4.345 8.002l4.487-4.487-1.26-1.265-3.227 3.227-1.527-1.522-1.26 1.26 2.787 2.787zM2.25 3.75V12h8.25V3.75H2.25zM9 10.5H3.75V5.25H9v5.25z"/><path d="M2.25 12h8.25v-1.5H3.75z"/><path d="M9 5.25v5.25l1.5 1.5V3.75zM2.25 13.5v8.25h8.25V13.5H2.25zM9 20.25H3.75V15H9v5.25z"/><path d="M2.25 21.75h8.25v-1.5H3.75z"/><path d="M9 15v5.25l1.5 1.5V13.5zm3-1.5v8.25h8.25V13.5H12zm6.75 6.75H13.5V15h5.25v5.25z"/><path d="M12 21.75h8.25v-1.5H13.5z"/><path d="M18.75 15v5.25l1.5 1.5V13.5zM12 12h10.5v-1.5h-9z"/><path d="M21 3v7.5l1.5 1.5V1.5z"/></svg>']),
a6c=th($5c).firstElementChild;var b6c=rw(['<svg data-icon-name="subtitleDownChevronIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6-6-6 1.41-1.42z"/></svg>']),c6c=th(b6c).firstElementChild;var d6c=rw(['<svg data-icon-name="subtitleLeftChevronIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.42z"/></svg>']),e6c=th(d6c).firstElementChild;var f6c=rw(['<svg data-icon-name="timePinSetIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M16 5h.99L17 3H7v2h1v7l-2 2v2h5v6l1 1 1-1v-6h5v-2l-2-2z"/></svg>']),g6c=th(f6c).firstElementChild;var h6c=rw(['<svg data-icon-name="timePinUnsetIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M12 3c-4.973 0-9 4.027-9 9s4.027 9 9 9 9-4.027 9-9-4.027-9-9-9zm4.5 12.229L15.229 16.5 12 13.271 8.771 16.5 7.5 15.229 10.729 12 7.5 8.771 8.771 7.5 12 10.729 15.229 7.5 16.5 8.771 13.271 12l3.229 3.229z"/></svg>']),i6c=th(h6c).firstElementChild;var j6c=rw(['<svg data-icon-name="viewColumnIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),k6c=th(j6c).firstElementChild;var l6c=rw(['<svg data-icon-name="warningIcon" viewBox="0 0 24 24" width="24" height="24"><path fill-rule="evenodd" d="M9.022 3.497c1.316-2.303 4.636-2.303 5.952 0l7.805 13.658c1.306 2.285-.344 5.129-2.976 5.129H4.193c-2.632 0-4.282-2.843-2.976-5.129L9.022 3.497zm1.262 10.217h3.428V6.858h-3.428v6.856zm3.428 5.142h-3.428v-3.428h3.428v3.428z" clip-rule="evenodd"/></svg>']),m6c=th(l6c).firstElementChild;var n6c=rw(['<svg data-icon-name="zoomOutIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"/></svg>']),o6c=th(n6c).firstElementChild;var vJ=function(a){this.mdIconRegistry=a;a=m(Object.entries(p6c));for(var b=a.next();!b.done;b=a.next()){var c=m(b.value);b=c.next().value;var d=c.next().value;c=this.mdIconRegistry;var e=document.createElement("span");e.appendChild(d);d=(new XMLSerializer).serializeToString(e);d=d.slice(d.indexOf(">")+1,d.lastIndexOf("</"));d=qh(d);e=c._sanitizer.sanitize(1,d);if(!e)throw Error("Ta`"+d);d=Jqa(e);c._addSvgIconConfig("ac",b,new VBc("",d))}};vJ.\u0275fac=function(a){return new (a||vJ)(Xc(Iy))};
vJ.\u0275mod=$e({type:vJ});vJ.\u0275inj=Fc({});
var p6c={alert:S4c,arrow_drop_down:U4c,arrow_right:W4c,baseline_calendar_today_24px:Y4c,call_made:$4c,call_received:b5c,check_circle:d5c,clear:f5c,close:h5c,code:j5c,copy_file:l5c,error:n5c,filter_list:p5c,filter_small:r5c,help_outline:t5c,highlight_off:v5c,info:x5c,info_active:z5c,keyboard_arrow_down:B5c,keyboard_arrow_up:D5c,lens:F5c,lightbulb:H5c,list:J5c,more_vert:L5c,music_note:N5c,music_off:P5c,offline_bolt:R5c,open_in_new:T5c,pin_outline:V5c,play_arrow:X5c,query_stats:Z5c,selected_series:a6c,
subtitle_down_chevron:c6c,subtitle_left_chevron:e6c,time_pin_set:g6c,time_pin_unset:i6c,view_column:k6c,warning:m6c,zoom_out:o6c};var wJ=Xl({selectId:Bza}),q6c=ck(wJ.getInitialState({}),bk(DF,Cza(wJ,hG)),bk(xSc,Dza(wJ)),bk(FF,Bk(wJ,hG)),bk(PWc,function(a,b){var c=b.chartGroupId;return wJ.upsertOne(Object.assign({},a.entities[c]||hG,{chartGroupId:c,axis:0,brushing:!0,xPos:b.position,xPosStart:b.positionStart,panning:!1}),a)}),bk(QWc,function(a,b){b=b.chartGroupId;return wJ.upsertOne(Object.assign({},a.entities[b]||hG,{chartGroupId:b,axis:0,brushing:!1,xPos:null,xPosStart:null,panning:!1}),a)}),bk(RWc,function(a,b){var c=b.chartGroupId;
return wJ.upsertOne(Object.assign({},a.entities[c]||hG,{chartGroupId:c,xPos:b.position}),a)}),bk(SWc,function(a,b){b=b.chartGroupId;return wJ.upsertOne(Object.assign({},a.entities[b]||hG,{chartGroupId:b,axis:0,brushing:!1,panning:!0}),a)}),bk(TWc,function(a,b){b=b.chartGroupId;return wJ.upsertOne(Object.assign({},a.entities[b]||hG,{chartGroupId:b,axis:0,brushing:!1,panning:!1}),a)}),bk(UWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.yAxisId;var f=a.entities[c];return f&&f.chartId&&
f.chartId!==d?a:wJ.upsertOne(Object.assign({},f||hG,{chartGroupId:c,axis:1,brushing:!0,yAxes:(f?f.yAxes:[]).concat([{chartId:d,yAxisId:e,yPos:b.position,yPosStart:b.positionStart}]),chartId:d}),a)}),bk(VWc,function(a,b){var c=b.chartGroupId;b=b.chartId;var d=a.entities[c];return!d||d.chartId&&d.chartId===b?wJ.upsertOne(Object.assign({},d||hG,{chartGroupId:c,axis:0,brushing:!1,yAxes:[],chartId:null}),a):a}),bk(WWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.yAxisId;var f=b.position;
if((b=a.entities[c])&&(!b.chartId||b.chartId!==d))return a;var g=b?b.yAxes.filter(function(k){return k.yAxisId===e&&k.chartId===d})[0]:{};f=Object.assign({},g,{chartId:d,yAxisId:e,yPos:f});g=b?b.yAxes.filter(function(k){return k.yAxisId!==e||k.chartId!==d}):[];return wJ.upsertOne(Object.assign({},b||hG,{chartGroupId:c,yAxes:g.concat(f)}),a)})),jKa=ek(q6c);var r6c={chartGroupId:"",chartId:"",xAxisId:"chart_group",requirements:[],categories:void 0};var xJ=Xl({selectId:Gza}),s6c=ck(xJ.getInitialState({}),bk(FF,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;if(!d)return a;b=a;for(var f=m(a.ids),g=f.next();!g.done;g=f.next()){g=g.value;var k=a.entities[g];k&&k.chartGroupId===c&&k.chartId===d&&(b=xJ.mapOne({id:String(g),map:function(l){return Object.assign({},l,{chartId:e})}},b))}return b}),bk(ASc,function(a,b){var c=b.chartGroupId;var d=b.chartId;b=b.xAxisId;return a.entities[Ek(c,d,b)]?a:xJ.addOne(Object.assign({},
r6c,{chartGroupId:c,chartId:d,xAxisId:b}),a)}),bk(BSc,function(a,b){return xJ.removeOne(Ek(b.chartGroupId,b.chartId,b.xAxisId),a)}),bk(JVc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;b={id:f,categories:b.categories};var g=a.entities[Ek(c,d,e)],k=[];k=g?(f?g.requirements.filter(function(l){return l.id===void 0||l.id!==f}):g.requirements).concat([b]):[b];return xJ.upsertOne(Object.assign({},g||r6c,{chartGroupId:c,chartId:d,xAxisId:e,requirements:k}),a)}),bk(KVc,function(a,
b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;b=Ek(c,d,e);c=a.entities[b];if(!c||!c.requirements)return a;var g,k;c=(k=(g=c.requirements)==null?void 0:g.filter(function(l){return l.id!==f}))!=null?k:[];return xJ.updateOne({id:b,changes:{requirements:c}},a)}),bk(LVc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return xJ.upsertOne(Object.assign({},a.entities[Ek(c,d,e)]||r6c,{chartGroupId:c,chartId:d,xAxisId:e,gutterRatio:b.gutterRatio}),a)})),lKa=ek(s6c);var t6c={chartId:"",projectId:void 0,yAxisOrientation:"vertical"};var u6c=Xl({selectId:yk}),v6c=ck(u6c.getInitialState(),bk(FF,Bk(u6c,t6c)),bk(VUc,function(a,b){var c=b.chartId;b=b.projectId;var d;return u6c.upsertOne(Object.assign({},(d=a.entities[c])!=null?d:t6c,{chartId:c,projectId:b}),a)}),bk(WUc,function(a,b){var c=b.chartId;b=b.yAxisOrientation;var d;return u6c.upsertOne(Object.assign({},(d=a.entities[c])!=null?d:t6c,{chartId:c,yAxisOrientation:b}),a)})),nKa=ek(v6c);var w6c={layerId:"",order:0,colorMap:{},shapeMap:{}},x6c={chartId:"",byLayer:{ids:[],entities:{}},colorMap:{},shapeMap:{}};var yJ=Xl({selectId:yk}),y6c=Xl({selectId:Ck}),z6c=ck(yJ.getInitialState({}),bk(DF,zk(yJ,x6c)),bk(EF,Ak(yJ)),bk(FF,Bk(yJ,x6c)),bk(GF,Aza(yJ,y6c)),bk(RVc,function(a,b){var c=b.chartId;var d=b.layerId;var e=a.entities[c]||x6c;b=y6c.upsertOne(Object.assign({},e.byLayer.entities[d]||w6c,{layerId:d,order:b.order,colorMap:b.colorMap,shapeMap:b.shapeMap}),e.byLayer);d={};for(var f={},g=m(Object.values(b.entities)),k=g.next();!k.done;k=g.next())if(k=k.value){for(var l=m(Object.entries(k.colorMap)),r=l.next();!r.done;r=
l.next()){var w=m(r.value);r=w.next().value;w=w.next().value;d[r]=w}k=m(Object.entries(k.shapeMap));for(l=k.next();!l.done;l=k.next())r=m(l.value),l=r.next().value,r=r.next().value,f[l]=r}return yJ.upsertOne(Object.assign({},e,{chartId:c,byLayer:b,colorMap:d,shapeMap:f}),a)})),pKa=ek(z6c);var A6c={chartId:"",byLayer:{ids:[],entities:{}}},B6c={layerId:"",min:0,max:1,colorPivots:[]};var zJ=Xl({selectId:yk}),C6c=Xl({selectId:Ck}),D6c=function(a){return Object.assign({},A6c,{chartId:a||"",byLayer:C6c.getInitialState({})})},E6c=ck(zJ.getInitialState({}),bk(DF,zk(zJ,D6c())),bk(EF,Ak(zJ)),bk(FF,Bk(zJ,D6c())),bk(GF,Aza(zJ,C6c,D6c())),bk(M3c,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.min;var f=b.max;b=b.colorPivots;var g=a.entities[c];g||(g=D6c(c));(c=g.byLayer.entities[d])||(c=Object.assign({},B6c,{layerId:d,min:0,max:1,colorPivots:[]}));d=g;e=Object.assign({},c,{min:e,
max:f,colorPivots:b});e=Object.assign({},d,{byLayer:C6c.upsertOne(e,d.byLayer)});return zJ.upsertOne(e,a)})),rKa=ek(E6c);var F6c=ck({chartIdToDashboardId:{}},bk(LXc,function(a,b){var c=b.dashboardId;var d=a.chartIdToDashboardId;d=Object.assign({},d,b.chartIds.reduce(function(e,f){e[f]=c;return e},{}));return Object.assign({},a,{chartIdToDashboardId:d})})),tKa=ek(F6c);var G6c={chartId:"",statuses:[],nonblockingErrors:[]};var AJ=Xl({selectId:yk}),H6c=ck(AJ.getInitialState({}),bk(DF,zk(AJ,G6c)),bk(EF,Ak(AJ)),bk(FF,Bk(AJ,G6c)),bk(GF,function(a,b){var c=b.chartId;var d=b.previousLayerId;var e=b.currentLayerId;return(b=a.entities[c])?AJ.upsertOne(Object.assign({},b,{statuses:b.statuses.map(function(f){return f.layerId!==d?f:Object.assign({},f,{layerId:e})})}),a):a}),bk(WVc,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.error;var f=b.success;var g=b.sourceId;d={layerId:d,sourceId:g,error:e,success:f};d=(b=a.entities[c])?
b.statuses.filter(function(k){return k.sourceId!==g}).concat([d]):[d];return AJ.upsertOne(Object.assign({},G6c,b,{chartId:c,statuses:d}),a)}),bk(XVc,function(a,b){var c=b.chartId;var d=b.sourceId;b=a.entities[c];if(!b)return a;b=b.statuses.filter(function(e){return e.sourceId!==d});return AJ.updateOne({id:c,changes:{statuses:b}},a)}),bk(YVc,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.error;var f=b.sourceId;d={sourceId:f,layerId:d,error:e,success:!1};d=(b=a.entities[c])?b.nonblockingErrors.filter(function(g){return g.sourceId!==
f}).concat([d]):[d];return AJ.upsertOne(Object.assign({},G6c,b,{chartId:c,nonblockingErrors:d}),a)}),bk(ZVc,function(a,b){var c=b.chartId;var d=b.sourceId;b=a.entities[c];if(!b)return a;b=b.nonblockingErrors.filter(function(e){return e.sourceId!==d});return AJ.updateOne({id:c,changes:{nonblockingErrors:b}},a)})),vKa=ek(H6c);var I6c=Uj("[AC] Set selected exemplar for chart and layer",Wj()),J6c=Uj("[AC] Set hovered exemplar for chart and layer",Wj());var Yl=Xl({selectId:yk}),yKa=Xl({selectId:Ck}),xKa=function(a){return{chartId:a||"",byLayer:yKa.getInitialState({})}},K6c=ck(Yl.getInitialState({}),bk(DF,zk(Yl,xKa())),bk(EF,Ak(Yl)),bk(FF,Bk(Yl,xKa())),bk(GF,Aza(Yl,yKa,xKa())),bk(I6c,function(a,b){return zKa(a,b.chartId,b.layerId,{selectedExemplar:b.exemplarPoint})}),bk(J6c,function(a,b){return zKa(a,b.chartId,b.layerId,{hoveredExemplar:b.exemplarPoint})})),AKa=ek(K6c);var L6c=Object.assign({},{requirements:[]},{chartGroupId:null,chartId:null,layerId:null});var M6c=ck(L6c,bk(FF,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;a=a.requirements.map(function(f){return f.chartGroupId===c&&f.chartId===d?Object.assign({},f,{chartId:e}):f});return Object.assign({},L6c,{requirements:a},a[a.length-1])}),bk(GF,function(a,b){var c=b.chartId;var d=b.previousLayerId;var e=b.currentLayerId;a=a.requirements.map(function(f){return f.chartId===c&&f.layerId===d?Object.assign({},f,{layerId:e}):f});return Object.assign({},L6c,{requirements:a},
a[a.length-1])}),bk(bWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.layerId;a=a.requirements.filter(function(f){return f.chartGroupId!==c&&f.chartId!==d&&f.layerId!==(e||null)}).concat([{chartGroupId:c,chartId:d,layerId:e||null}]);return Object.assign({},L6c,{requirements:a},a[a.length-1])}),bk(cWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.layerId;a=a.requirements.filter(function(f){return f.chartGroupId!==c&&f.chartId!==d&&f.layerId!==(e||null)});return Object.assign({},
L6c,{requirements:a},a[a.length-1])})),CKa=ek(M6c);var N6c=ck({chartsByGroup:{},layersByGroup:{}},bk(FF,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;b=b.currentChartId;var e=Object.assign({},a.chartsByGroup),f=e[c]?new Set(e[c]):new Set;d&&f.delete(d);f.add(b);e[c]=f;return Object.assign({},a,{chartsByGroup:e})}),bk(GF,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.previousLayerId;var f=b.currentLayerId;b=a.layersByGroup[c];var g=b==null?void 0:b[d];if(!e||!g||!g.graphicLayerIds.has(e)&&!g.axisLayerIds.has(e))return a;var k=
g.graphicLayerIds;k.has(e)&&(k=new Set(k),k.delete(e),k.add(f));var l=g.axisLayerIds;l.has(e)&&(l=new Set(l),l.delete(e),l.add(f));e={};f={};return Object.assign({},a,{layersByGroup:Object.assign({},a.layersByGroup,(f[c]=Object.assign({},b,(e[d]=Object.assign({},g,{graphicLayerIds:k,axisLayerIds:l}),e)),f))})}),bk(DF,function(a,b){var c=b.chartId;b=b.chartGroupId;var d=Object.assign({},a.chartsByGroup),e=d[b]?new Set(d[b]):new Set;e.add(c);d[b]=e;return Object.assign({},a,{chartsByGroup:d})}),bk(EF,
function(a,b){var c=b.chartId;b=b.chartGroupId;var d=Object.assign({},a.chartsByGroup),e=Object.assign({},a.layersByGroup),f=d[b]?new Set(d[b]):new Set;f.delete(c);f.size>0?d[b]=f:delete d[b];f=e[b]?Object.assign({},e[b]):{};delete f[c];Object.keys(f).length>0?e[b]=f:delete e[b];return Object.assign({},a,{chartsByGroup:d,layersByGroup:e})}),bk(CSc,function(a,b){var c=b.layerId;var d=b.chartId;var e=b.chartGroupId;var f=b.layerType;if(f==null)return a;b=Object.assign({},a.layersByGroup);var g=b[e]?
Object.assign({},b[e]):{};if(g[d]){var k=g[d],l=k.graphicLayerIds;k=k.axisLayerIds;f==="graphic"?(l=new Set(l),l.add(c)):(k=new Set(k),k.add(c));g[d]=Object.assign({},g[d],{graphicLayerIds:l,axisLayerIds:k})}else f==="graphic"?(f=new Set([c]),c=new Set):(f=new Set,c=new Set([c])),g[d]={graphicLayerIds:f,axisLayerIds:c};b[e]=g;return Object.assign({},a,{layersByGroup:b})}),bk(DSc,function(a,b){var c=b.layerId;var d=b.chartId;var e=b.chartGroupId;var f=b.layerType;if(f==null)return a;b=Object.assign({},
a.layersByGroup);var g=b[e]?Object.assign({},b[e]):{};if(!g[d])return a;if(f==="graphic"){f=g[d].axisLayerIds;var k=g[d].graphicLayerIds;k=new Set(k);k.delete(c);f.size+k.size>0?g[d]={axisLayerIds:f,graphicLayerIds:k}:delete g[d]}else f=g[d].graphicLayerIds,k=g[d].axisLayerIds,k=new Set(k),k.delete(c),k.size+f.size>0?g[d]={axisLayerIds:k,graphicLayerIds:f}:delete g[d];Object.keys(g).length>0?b[e]=g:delete b[e];return Object.assign({},a,{layersByGroup:b})})),EKa=ek(N6c);var O6c=Uj("[AC] Set hover disabled",Wj());var P6c={disabled:!1};var Q6c=ck(P6c,bk(O6c,function(a,b){return Object.assign({},P6c,{disabled:b.disabled})})),GKa=ek(Q6c);var R6c={chartId:"",domain:{hover:null,click:null,focus:null,multiselectAnchor:null},category:{hover:null,click:null,focus:null,multiselectAnchor:null},byYAxis:{ids:[],entities:{}},threshold:{hover:null}},S6c={yAxisId:"right",hover:null,click:null,focus:null,multiselectAnchor:null};var T6c={hover:null,click:null},BJ=Xl({selectId:yk}),U6c=Xl({selectId:function(a){return a.yAxisId}}),V6c=ck(BJ.getInitialState({}),bk(DF,zk(BJ,R6c)),bk(EF,Ak(BJ)),bk(FF,Bk(BJ,R6c)),bk(HG,function(a,b){var c=a.entities[b.chartId];if(!c)return a;b=Object.assign({},R6c,c,{domain:Object.assign({},T6c,c.domain,b.lastInteraction)});return BJ.upsertOne(b,a)}),bk(IG,function(a,b){var c=b.chartId;var d=b.yAxisId;c=a.entities[c];if(!c)return a;b=Object.assign({},S6c,c.byYAxis.entities[d],{yAxisId:d},b.lastInteraction);
b=Object.assign({},c,{byYAxis:U6c.upsertOne(b,c.byYAxis)});return BJ.upsertOne(b,a)}),bk(XWc,function(a,b){var c=a.entities[b.chartId];if(!c)return a;b=Object.assign({},R6c,c,{category:Object.assign({},T6c,c.category,b.lastInteraction)});return BJ.upsertOne(b,a)}),bk(YWc,function(a,b){var c=a.entities[b.chartId];if(!c)return a;b=Object.assign({},R6c,c,{threshold:Object.assign({},T6c,c.threshold,b.lastInteraction)});return BJ.upsertOne(b,a)})),IKa=ek(V6c);var W6c={chartId:"",sourceToLoadingMap:{},sourceToDescriptionMap:{},loading:!1,loadingDescription:"default",hasLoadingEverOccurred:!1};var CJ=Xl({selectId:yk}),X6c=ck(CJ.getInitialState({}),bk(DF,zk(CJ,W6c)),bk(EF,Ak(CJ)),bk(FF,Bk(CJ,W6c)),bk(fWc,function(a,b){var c=b.chartId;var d=b.sourceId;var e=b.loading;var f=b.loadingDescription;b=a.entities[c];var g={};g=Object.assign({},b?b.sourceToLoadingMap:{},(g[d]=e,g));var k={};d=Object.assign({},b?b.sourceToDescriptionMap:{},(k[d]=f,k));return CJ.upsertOne(Object.assign({},W6c,b,{chartId:c,sourceToLoadingMap:g,sourceToDescriptionMap:d,loading:KKa(g),hasLoadingEverOccurred:(Array.isArray(e)?
!!e.length:!!e)||!(b==null||!b.hasLoadingEverOccurred)}),a)}),bk(gWc,function(a,b){var c=b.chartId;var d=b.sourceId;var e=a.entities[c];if(!e)return a;b=Object.keys(e.sourceToLoadingMap).filter(function(g){return g!==d}).reduce(function(g,k){var l={};return Object.assign({},g,(l[k]=e.sourceToLoadingMap[k],l))},{});var f=KKa(b);return CJ.updateOne({id:c,changes:{sourceToLoadingMap:b,loading:f}},a)})),LKa=ek(X6c);var Y6c=Uj("[AC] Sets the group ID to name map",Wj()),Z6c=Uj("[AC] Sets the instance ID to name map",Wj());var $6c={chartGroupId:"",group:{},instance:{}};var DJ=Xl({selectId:Bza}),a7c=ck(DJ.getInitialState({}),bk(DF,Cza(DJ,$6c)),bk(xSc,Dza(DJ)),bk(FF,Bk(DJ,$6c)),bk(Y6c,function(a,b){var c=b.chartGroupId;return DJ.upsertOne(Object.assign({},a.entities[c]||$6c,{chartGroupId:c,group:b.map}),a)}),bk(Z6c,function(a,b){var c=b.chartGroupId;return DJ.upsertOne(Object.assign({},a.entities[c]||$6c,{chartGroupId:c,instance:b.map}),a)})),NKa=ek(a7c);var EJ={chartGroupId:"",chartId:"",height:0,width:0,margins:{top:0,bottom:0,left:0,right:0},offsets:{top:0,left:0},requirements:[],reservedMarginsByLayer:{ids:[],entities:{}},useChartGroupHorizontalMargins:!1};var FJ=Xl({selectId:yk}),Zl=Xl({selectId:Ck}),b7c=ck(FJ.getInitialState({}),bk(DF,function(a,b){var c=b.chartGroupId;b=b.chartId;return a.entities[b]?a:FJ.addOne(Object.assign({},EJ,{chartId:b,chartGroupId:c}),a)}),bk(EF,Ak(FJ)),bk(FF,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;return d?FJ.mapOne({id:d,map:function(f){return Object.assign({},f,{chartId:e})}},a):a.entities[e]?a:FJ.addOne(Object.assign({},EJ,{chartId:e,chartGroupId:c}),a)}),bk(GF,function(a,b){var c=
b.previousLayerId;var d=b.currentLayerId;return FJ.map(function(e){return Object.assign({},e,{requirements:e.requirements.map(function(f){return f.layerId===c?Object.assign({},f,{layerId:d}):f}),reservedMarginsByLayer:Zl.map(function(f){return f.layerId===c?Object.assign({},f,{layerId:d}):f},e.reservedMarginsByLayer)})},a)}),bk(ZUc,function(a,b){var c=b.chartGroupId;var d=b.chartId;b=b.useChartGroupHorizontalMargins;var e=a.entities[d],f=e==null?void 0:e.margins,g,k=PKa((g=e==null?void 0:e.requirements)!=
null?g:[]);g=k.margins;k=k.reservedMarginsByLayer;var l=TKa(a,c,d);if(b){l=QKa(g.left,g.right,l);var r=l.right;g.left=l.left;g.right=r}return FJ.upsertOne(Object.assign({},EJ,e,{chartGroupId:c,chartId:d,useChartGroupHorizontalMargins:b,margins:g.top===(f==null?void 0:f.top)&&g.bottom===(f==null?void 0:f.bottom)&&g.left===(f==null?void 0:f.left)&&g.right===(f==null?void 0:f.right)?f:g,reservedMarginsByLayer:k}),a)}),bk(XUc,function(a,b){var c=b.chartGroupId;var d=b.chartId;return FJ.upsertOne(Object.assign({},
a.entities[d]||EJ,{chartGroupId:c,chartId:d,height:Math.ceil(b.height),width:Math.ceil(b.width),offsets:b.offsets}),a)}),bk(iG,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.layerId;var f={layerId:e,reservedMargins:b.reservedMargins,overlappingMargins:b.overlappingMargins};b=a.entities[d];var g=b==null?void 0:b.margins;f=b?b.requirements.filter(function(r){return r.layerId!==e}).concat([f]):[f];var k=PKa(f),l=k.margins;b=Object.assign({},EJ,b,{chartGroupId:c,chartId:d,requirements:f,margins:l.top===
(g==null?void 0:g.top)&&l.bottom===(g==null?void 0:g.bottom)&&l.left===(g==null?void 0:g.left)&&l.right===(g==null?void 0:g.right)?g:l,reservedMarginsByLayer:k.reservedMarginsByLayer});c=TKa(a,c,d);return FJ.upsertMany(SKa(b,c).concat([b]),a)}),bk(YUc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.layerId;b=a.entities[d];if(!b)return a;var f=b.margins,g=b.requirements.filter(function(r){return r.layerId!==e}),k=PKa(g),l=k.margins;b=Object.assign({},EJ,b,{chartGroupId:c,chartId:d,requirements:g,
margins:l.top===f.top&&l.bottom===f.bottom&&l.left===f.left&&l.right===f.right?f:l,reservedMarginsByLayer:k.reservedMarginsByLayer});c=TKa(a,c,d);return FJ.upsertMany(SKa(b,c).concat([b]),a)})),UKa=ek(b7c);var c7c={chartId:"",byLayer:{ids:[],entities:{}}},XKa={layerId:"",selectedSeries:[],hoveredSeries:[],lastClickedSeries:[],multiselectAnchorSeries:null,tooltipAnnotations:[],hoveredAnnotations:[]};var GJ=Xl({selectId:yk}),HJ=Xl({selectId:Ck}),WKa=function(a){return Object.assign({},c7c,{chartId:a||"",byLayer:HJ.getInitialState({})})},d7c=ck(GJ.getInitialState({}),bk(DF,zk(GJ,WKa())),bk(EF,Ak(GJ)),bk(FF,Bk(GJ,WKa())),bk(GF,Aza(GJ,HJ,WKa())),bk($G,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=$l(a,c,d);c=d.chartState;d=d.layerState;if(!hl(d.selectedSeries,b))return a;b=Object.assign({},d,{selectedSeries:b});b=Object.assign({},c,{byLayer:HJ.upsertOne(b,c.byLayer)});return GJ.upsertOne(b,
a)}),bk(aH,function(a,b){var c=$l(a,b.chartId,b.layerId);b=c.chartState;c=Object.assign({},c.layerState,{selectedSeries:[]});b=Object.assign({},b,{byLayer:HJ.upsertOne(c,b.byLayer)});return GJ.upsertOne(b,a)}),bk(zYc,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=$l(a,c,d);c=d.chartState;d=d.layerState;b=[].concat(q(d.selectedSeries),[b]);b=Object.assign({},d,{selectedSeries:b});b=Object.assign({},c,{byLayer:HJ.upsertOne(b,c.byLayer)});return GJ.upsertOne(b,a)}),bk(AYc,function(a,b){var c=
b.chartId;var d=b.layerId;var e=b.series;c=$l(a,c,d);b=c.chartState;c=c.layerState;d=c.selectedSeries.filter(function(f){return f.seriesId!==e.seriesId});c=Object.assign({},c,{selectedSeries:d});b=Object.assign({},b,{byLayer:HJ.upsertOne(c,b.byLayer)});return GJ.upsertOne(b,a)}),bk(bH,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=$l(a,c,d);c=d.chartState;d=d.layerState;if(!hl(d.hoveredSeries,b))return a;b=Object.assign({},d,{hoveredSeries:b});b=Object.assign({},c,{byLayer:HJ.upsertOne(b,
c.byLayer)});return GJ.upsertOne(b,a)}),bk(BYc,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=$l(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{lastClickedSeries:b});b=Object.assign({},c,{byLayer:HJ.upsertOne(b,c.byLayer)});return GJ.upsertOne(b,a)}),bk(CYc,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=$l(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{multiselectAnchorSeries:b});b=Object.assign({},c,{byLayer:HJ.upsertOne(b,c.byLayer)});return GJ.upsertOne(b,
a)}),bk(DYc,function(a,b){var c=b.chartId;var d=b.layerId;b=b.annotations;d=$l(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{tooltipAnnotations:b});b=Object.assign({},c,{byLayer:HJ.upsertOne(b,c.byLayer)});return GJ.upsertOne(b,a)}),bk(EYc,function(a,b){var c=b.chartId;var d=b.layerId;b=b.annotations;d=$l(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{hoveredAnnotations:b});b=Object.assign({},c,{byLayer:HJ.upsertOne(b,c.byLayer)});return GJ.upsertOne(b,a)})),YKa=ek(d7c);var e7c=Uj("[AC] Set Chart Spec State",Wj());var f7c=Xl({selectId:yk}),g7c={chartId:"",dataSets:[]},h7c=ck(f7c.getInitialState({}),bk(DF,zk(f7c,g7c)),bk(EF,Ak(f7c)),bk(FF,Bk(f7c,g7c)),bk(e7c,function(a,b){return f7c.upsertOne(Object.assign({},b||g7c),a)})),$Ka=ek(h7c);var am=Xl({selectId:yk}),cLa=Xl({selectId:Ck}),i7c=Xl({selectId:function(a){return a.seriesId}}),j7c=ck(am.getInitialState(),bk(DF,zk(am,bLa)),bk(EF,Ak(am)),bk(FF,Bk(am,bLa)),bk(GF,Aza(am,cLa)),bk(DSc,function(a,b){return dLa(a,b.chartId,b.layerId,function(){})}),bk(wH,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.yAxisId;var f=b.xAxisId;var g=b.valueType;var k=b.unit;var l=b.legendTemplate;var r=b.pointConnectionMethod;var w=b.alignmentPeriodMs;var x=b.outputPeriodMs;return dLa(a,c,d,function(C){return Object.assign({},
qYc,C,{layerId:d,yAxisId:e,xAxisId:f,valueType:g,unit:k,legendTemplate:l,pointConnectionMethod:r||(C==null?void 0:C.pointConnectionMethod),alignmentPeriodMs:w,outputPeriodMs:x})})}),bk(vH,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.series;return dLa(a,c,d,function(f){if(!f)return f;var g=e.map(function(k){return Object.assign({},rYc,f==null?void 0:f.bySeries.entities[k.seriesId],k)});return Object.assign({},f,{bySeries:i7c.addMany(g,i7c.getInitialState({})),layerId:d})})}),bk(uH,function(a,
b){var c=b.chartId;var d=b.layerId;var e=b.valueType;var f=b.timeKey;var g=b.values;var k=b.timeRange;var l=b.category;return dLa(a,c,d,function(r){if(!r||r.valueType!==e)return r;var w,x=(w=r.snapshotMetadata)!=null?w:{};w=eLa(x,f,k,l);var C=Object.values(r.bySeries.entities).filter(function(J){return!!J}),H=fLa(C,g,f);return x===w&&C===H?r:Object.assign({},qYc,r,{snapshotMetadata:w,bySeries:i7c.upsertMany(H,(r==null?void 0:r.bySeries)||i7c.getInitialState({})),layerId:d})})})),gLa=ek(j7c);var IJ=Xl({selectId:Gza}),k7c=ck(IJ.getInitialState({}),bk(FF,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;if(!d)return a;b=a;for(var f=m(a.ids),g=f.next();!g.done;g=f.next()){g=g.value;var k=a.entities[g];k&&k.chartGroupId===c&&k.chartId===d&&(b=IJ.mapOne({id:String(g),map:function(l){return Object.assign({},l,{chartId:e})}},b))}return b}),bk(ySc,function(a,b){var c=b.chartGroupId;var d=b.chartId;b=b.xAxisId;return a.entities[Ek(c,d,b)]?a:IJ.addOne(Object.assign({},
tWc,{chartGroupId:c,chartId:d,xAxisId:b}),a)}),bk(zSc,function(a,b){return IJ.removeOne(Ek(b.chartGroupId,b.chartId,b.xAxisId),a)}),bk(xSc,function(a,b){var c=b.chartGroupId;b=Object.values(a.entities).reduce(function(d,e){return e&&e.chartGroupId===c?d.concat([Ek(e.chartGroupId,e.chartId,e.xAxisId)]):d},[]);return IJ.removeMany(b,a)}),bk(nWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;var g=b.priority;var k=b.absoluteMin;var l=b.min;var r=b.max;var w=b.unit;var x=
b.bucketWidth;var C=b.cause;b={id:f,priority:g,absoluteMin:k,min:l,max:r,unit:w,bucketWidth:x,constraints:b.constraints};k=a.entities[Ek(c,d,e)];l=[];l=k?(f?k.requirements.filter(function(H){return H.id===void 0||H.id!==f||H.priority!==g}):k.requirements).concat([b]):[b];return IJ.upsertOne(Object.assign({},k||tWc,{chartGroupId:c,chartId:d,xAxisId:e,requirements:l,lastUpdateCausedBy:C||0}),a)}),bk(oWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.priority;var g=b.cause;
b=b.keepLastCause;c=Ek(c,d,e);d=a.entities[c];if(!d)return a;d=d.requirements.filter(function(k){return k.priority!==f});return IJ.updateOne({id:c,changes:Object.assign({},{requirements:d},b?{}:{lastUpdateCausedBy:g||0})},a)}),bk(pWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;var g=b.cause;b=b.keepLastCause;c=Ek(c,d,e);d=a.entities[c];if(!d)return a;d=d.requirements.filter(function(k){return k.id!==f});return IJ.updateOne({id:c,changes:Object.assign({},{requirements:d},
b?{}:{lastUpdateCausedBy:g||0})},a)}),bk(qWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return IJ.upsertOne(Object.assign({},a.entities[Ek(c,d,e)]||tWc,{chartGroupId:c,chartId:d,xAxisId:e,relativeTo:{xAxisId:b.relativeToId,shift:b.shift}}),a)}),bk(rWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return IJ.upsertOne(Object.assign({},a.entities[Ek(c,d,e)]||tWc,{chartGroupId:c,chartId:d,xAxisId:e,timezoneOffset:b.timezoneOffset}),a)}),bk(sWc,function(a,b){var c=
b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return IJ.upsertOne(Object.assign({},a.entities[Ek(c,d,e)]||tWc,{chartGroupId:c,chartId:d,xAxisId:e,timeZoneId:b.timeZoneId}),a)})),iLa=ek(k7c);var JJ=Xl({selectId:Bza}),l7c=ck(JJ.getInitialState({}),bk(DF,Cza(JJ,sYc)),bk(xSc,Dza(JJ)),bk(JG,function(a,b){var c=b.chartGroupId;b=b.position;var d=a.entities[c],e=0;d&&d.xPos!==null&&b!==null&&(b>d.xPos&&(e=3),b<d.xPos&&(e=2),b===d.xPos&&(e=1));return JJ.upsertOne(Object.assign({},d||sYc,{chartGroupId:c,xPos:b,directionOfTravel:e}),a)}),bk(KG,function(a,b){var c=b.chartGroupId;return JJ.upsertOne(Object.assign({},a.entities[c]||sYc,{chartGroupId:c,locked:b.locked}),a)}),bk(LG,function(a,b){var c=
b.chartGroupId;return JJ.upsertOne(Object.assign({},a.entities[c]||sYc,{chartGroupId:c,trackingNow:b.trackingNow}),a)})),kLa=ek(l7c);var Dk=Xl({selectId:function(a){return a.chartId+","+a.yAxisId}}),m7c=ck(Dk.getInitialState({}),bk(FF,function(a,b){var c=b.previousChartId;var d=b.currentChartId;return c?Dk.map(function(e){return e.chartId===c?Object.assign({},e,{chartId:d}):e},a):a}),bk($Uc,function(a,b){var c=b.chartId;var d=b.yAxisId;var e=b.id;var f=b.priority;var g=b.absoluteMin;var k=b.min;var l=b.max;var r=b.unit;var w=b.cause;b=b.constraints;r==="{not_a_unit}"&&(r="1");if(d==="right"||d==="left"){var x=d==="left"?"right":
"left",C=a.entities[c+","+x];if(C){var H=e?C.requirements.filter(function(J){return J.id===void 0||J.id!==e}):C.requirements;H.length!==C.requirements.length&&(a=Dk.upsertOne(Object.assign({},C||Eza,{chartId:c,yAxisId:x,requirements:H,lastUpdateCausedBy:w||0}),a))}}f={id:e,priority:f,absoluteMin:g,min:k,max:l,unit:r,constraints:b};g=a.entities[c+","+d];k=[];k=g?(e?g.requirements.filter(function(J){return J.id===void 0||J.id!==e}):g.requirements).concat([f]):[f];return Dk.upsertOne(Object.assign({},
g||Eza,{chartId:c,yAxisId:d,requirements:k,lastUpdateCausedBy:w||0}),a)}),bk(bVc,function(a,b){var c=b.chartId;var d=b.yAxisId;var e=b.priority;b=b.cause;var f=d?[c+","+d]:a.ids.filter(function(l){return l.startsWith(c)});d=[];f=m(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var k=a.entities[g];k&&(k=k.requirements.filter(function(l){return l.priority!==e}),d.push({id:g,changes:{requirements:k,lastUpdateCausedBy:b||0}}))}return Dk.updateMany(d,a)}),bk(cVc,function(a,b){var c=b.chartId;var d=
b.yAxisId;var e=b.id;b=b.cause;var f=c+","+d,g=a.entities[f];if(!g)return Fza()(a,{chartId:c,yAxisId:d});c=g.requirements.filter(function(k){return k.id!==e});return Dk.updateOne({id:f,changes:{requirements:c,lastUpdateCausedBy:b||0}},a)}),bk(dVc,function(a,b){var c=b.chartId;var d=b.yAxisId;return Dk.upsertOne(Object.assign({},a.entities[c+","+d]||Eza,{chartId:c,yAxisId:d,position:b.position}),a)}),bk(aVc,function(a,b){var c=b.chartId;var d=b.yAxisId;b=b.label;return Dk.upsertOne(Object.assign({},
a.entities[c+","+d]||Eza,{chartId:c,yAxisId:d,label:b&&b!=="y1Axis"&&b!=="y2Axis"?b:""}),a)})),mLa=ek(m7c);var KJ=function(){};KJ.\u0275fac=function(a){return new (a||KJ)};KJ.\u0275mod=$e({type:KJ});var n7c,o7c=void 0;o7c=o7c===void 0?{}:o7c;var p7c=[],q7c=p7c.concat,r7c,s7c=function(a,b){return Gya({brush:kKa,categoricalAxis:mKa,chart:oKa,colorMap:qKa,chartSpec:aLa,colorScale:sKa,dashboard:uKa,error:wKa,exemplarSelection:BKa,focus:DKa,hierarchy:FKa,hoverDisabled:HKa,lastInteraction:JKa,loading:MKa,map:OKa,resize:VKa,seriesSelection:ZKa,xAxisPin:lLa,timeSeries:hLa,xAxis:jLa,yAxis:nLa})(a,b)},LJ=o7c;
LJ=LJ===void 0?{}:LJ;
r7c=[{provide:cSc,multi:!0,useValue:LJ},{provide:$Rc,multi:!0,useValue:{key:"awesomecharts",reducerFactory:LJ instanceof dd||!LJ.reducerFactory?Gya:LJ.reducerFactory,metaReducers:LJ instanceof dd||!LJ.metaReducers?[]:LJ.metaReducers,initialState:LJ instanceof dd||!LJ.initialState?void 0:LJ.initialState}},{provide:dSc,deps:[cSc,$Rc],useFactory:function(a,b){return b.map(function(c,d){return a[d]instanceof dd?(d=p(a[d]),{key:c.key,reducerFactory:d.reducerFactory?d.reducerFactory:Gya,metaReducers:d.metaReducers?
d.metaReducers:[],initialState:d.initialState}):c})}},{provide:bSc,multi:!0,useValue:s7c},{provide:eSc,multi:!0,useExisting:s7c instanceof dd?s7c:bSc},{provide:fSc,multi:!0,deps:[bSc,[new Eyc(eSc)]],useFactory:function(a){return a.map(function(b){return b instanceof dd?p(b):b})}},Vya()];n7c={ngModule:CF,providers:q7c.call(p7c,q(r7c))};KJ.\u0275inj=Fc({imports:[n7c]});var t7c=[VI,WI,YI,$I,eJ,aJ,LH,WG,ZG,MH,fJ,hJ,kJ,tH,kI,qH,QH,CH,oJ,NH,rJ,nH,tJ,OH,uJ,SG,KH,qJ,Wz],MJ=function(){uF.setWhitelist("chart-analytics-events",!0);uF.setWhitelist("chart-loading-timings",!0);uF.setThrowPartials&&uF.setThrowPartials(!1)};MJ.\u0275fac=function(a){return new (a||MJ)};MJ.\u0275mod=$e({type:MJ,id:"pm_awesomecharts_module"});MJ.\u0275inj=Fc({providers:[{provide:O_c,useValue:{AcChart:WG}}],imports:[t7c,KJ,vJ,Wz]});var u7c=Tzc.get("pm_awesomecharts_module")||null;
if(u7c&&u7c!==MJ)throw Error("Ja`pm_awesomecharts_module`"+Pc(u7c)+"`"+Pc(u7c.name));Tzc.set("pm_awesomecharts_module",MJ);var v7c=["chartContainer"],NJ=function(){var a=this;this.X_AXIS_INTERACTIONS={dragZoom:!1,ctrlScrollZoom:!1,ctrlDragPan:!1,clickTimePin:!1,hoverTimePin:!1};this.Y_AXIS_INTERACTIONS={dragZoom:!1,ctrlScrollZoom:!1};this.chartContainer=Pg.apply(null,["chartContainer"].concat(q([{read:Hd}])));this.chart=Og.required.apply(Og,q([]));this.chartTitle=Zg.apply(null,[function(){var b;return(b=a.chart().getTitle())!=null?b:""}].concat(q([])));Zg.apply(null,[function(){var b=a.chart();b=ui(b,4);return b!=null?
b:""}].concat(q([])));this.yAxisLabel=Zg.apply(null,[function(){var b=a.chart();b=ui(b,5);return b!=null?b:""}].concat(q([])));this.data=Zg.apply(null,[function(){var b=a.chart();b=Bi(b,LEc,3,Ci());return rLa(b!=null?b:[])}].concat(q([])));this.legendScope=Zg.apply(null,[function(){return{chartId:a.chartTitle(),yAxisId:"left"}}].concat(q([])))};NJ.\u0275fac=function(a){return new (a||NJ)};
NJ.\u0275cmp=D({type:NJ,selectors:[["interactive-element-chart"]],viewQuery:function(a,b){a&1&&og(b.chartContainer,v7c,Hd);a&2&&pg()},inputs:{chart:[1,"chart"]},decls:12,vars:9,consts:[["chartContainer",""],[1,"gmat-subhead-2"],[3,"chartId","disableZoomAndPan"],["position","left",3,"label","interactions"],[3,"interactions"],[3,"data"],[3,"condensed","scope"]],template:function(a,b){a&1&&(K(0,"div",1),Q(1),L(),K(2,"div",null,0)(4,"ac-chart",2),M(5,"ac-y-axis",3)(6,"ac-x-axis",4)(7,"ac-line",5),K(8,
"ac-hovercard"),M(9,"ac-date-time")(10,"ac-series-snapshot"),L()(),M(11,"ac-inline-legend",6),L());a&2&&(B(),yg(b.chartTitle()),B(3),I("chartId",b.chartTitle())("disableZoomAndPan",!0),B(),I("label",b.yAxisLabel())("interactions",b.Y_AXIS_INTERACTIONS),B(),I("interactions",b.X_AXIS_INTERACTIONS),B(),I("data",b.data()),B(4),I("condensed",!0)("scope",b.legendScope()))},dependencies:[by,MJ,WG,ZG,tH,qH,CH,nH,SG,KH],styles:["[_nghost-%COMP%]{display:block}ac-chart[_ngcontent-%COMP%]{height:180px}"],changeDetection:0});var OJ=function(){};OJ.\u0275fac=function(a){return new (a||OJ)};OJ.\u0275prov=Dc({token:OJ,factory:OJ.\u0275fac,providedIn:"root"});var PJ=function(){var a=this;this.interactiveElements=Og.apply(null,q([]));this.threadService=p(FD);p(OJ);this.validatedInteractiveElements=Zg.apply(null,[function(){var b;return(b=a.interactiveElements())==null?void 0:b.filter(function(){return!0})}].concat(q([])))};PJ.prototype.handleButtonClick=function(a){zOc(this.threadService,a.getButton().getPrompt())};PJ.prototype.getButton=function(a){return a.getButton()};PJ.prototype.getChart=function(a){return a.getChart()};
PJ.\u0275fac=function(a){return new (a||PJ)};
PJ.\u0275cmp=D({type:PJ,selectors:[["interactive-elements"]],inputs:{interactiveElements:[1,"interactiveElements"]},decls:2,vars:1,consts:[["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"matTooltip"],[3,"chart"],["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"click","matTooltip"]],template:function(a,b){a&1&&(K(0,"div"),F(1,vLa,2,0),L());if(a&2){var c;B();G((c=b.validatedInteractiveElements())?1:-1,c)}},dependencies:[by,mB,kB,gB,NJ,nA,hD],
styles:[".interactive-element-button[_ngcontent-%COMP%]{border-radius:32px;margin-right:8px}"],changeDetection:0});var QJ=function(){this.isRecentSessionsVisibleSubject=new Mj(!1);this.isRecentSessionsVisible$=this.isRecentSessionsVisibleSubject.asObservable();this.messageQueue$=new qf};QJ.prototype.sendMessage=function(a,b){this.messageQueue$.next({message:a,contextMap:b})};QJ.\u0275fac=function(a){return new (a||QJ)};QJ.\u0275prov=Dc({token:QJ,factory:QJ.\u0275fac,providedIn:"root"});var w7c={clientName:"Nexus",clientLogoUrl:"https://www.gstatic.com/partnerdash/images/nexus_icon_new.svg",onboardingExamples:[{title:"Get contextual answers for Nexus",examples:[{label:"Agent capabilities",prompt:"What are some examples of questions that can be answered by this agent?"},{label:"Nexus AI",prompt:"What are some of the current AI powered features on Nexus and how can I use them in my daily work?"},{label:"My next oncall",prompt:"For all the rotations I'm oncall for, when will I next be oncall?"}]}]},
NMa=Object.assign({},w7c,{onboardingExamples:[{title:"Get contextual answers on server/app details page",examples:[{label:"What kinds of things can you do?",prompt:"What tools do you know and what are some examples of how you can use them to answer complex, multi-step questions?"},{label:"My next oncall",prompt:"For all the rotations I'm oncall for, when will I next be oncall?"},{label:"TODOs in server code",prompt:"Does my server code have any TODOs?"},{label:"High-priority oncall bugs",prompt:"Does my server have any open P0 or P1 bugs in the oncall component?"}]}]});var x7c=new dd("InteractiveElementsTemplate"),RJ=function(){this.ve={DuckieChatInteractiveElementButton:263888};this.interactiveElements=Og.apply(null,q([]));this.threadService=p(FD);p(OJ)};RJ.prototype.handleButtonClick=function(a){zOc(this.threadService,a.getButton().getPrompt())};RJ.prototype.getButton=function(a){return a.getButton()};RJ.prototype.getChart=function(a){return a.getChart()};RJ.\u0275fac=function(a){return new (a||RJ)};
RJ.\u0275cmp=D({type:RJ,selectors:[["interactive-elements"]],inputs:{interactiveElements:[1,"interactiveElements"]},decls:2,vars:1,consts:[["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"ve","veClick","veImpression"],[3,"chart"],["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"click","ve","veClick","veImpression"]],template:function(a,b){a&1&&(K(0,"div"),F(1,zLa,2,0),L());if(a&2){var c;B();G((c=b.interactiveElements())?1:-1,c)}},dependencies:[by,
mB,kB,gB,NJ,hD,gD],styles:[".interactive-element-button[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:8px}"],changeDetection:0});var y7c=new dd("GM2_DIALOG_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var SJ=function(){UA.apply(this,arguments);this.gmatDialogOptions=p(y7c);this.defaultOptions=p(fFc,{optional:!0});this.additionalClasses=["gmat-mdc-dialog"]};Y(SJ,UA);SJ.prototype.open=function(a,b){b=Object.assign({},this.defaultOptions||new $Ec,b);if(this.gmatDialogOptions.disableGmatStyle)throw Error("db");b.panelClass=Kh(b.panelClass||[]).concat(this.additionalClasses);return UA.prototype.open.call(this,a,b)};SJ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(SJ)))(b||SJ)}}();
SJ.\u0275prov=Dc({token:SJ,factory:SJ.\u0275fac,providedIn:"root"});var TJ=function(){};TJ.\u0275fac=function(a){return new (a||TJ)};TJ.\u0275mod=$e({type:TJ});TJ.\u0275inj=Fc({providers:[{provide:UA,useClass:SJ}],imports:[$A]});var ELa=function(a){return{$implicit:a}},UJ=function(){this.data=p(TA);if(!this.data)throw Error("Rc");this.iconType=this.data.dialogType;this.confirmButtonLabel=this.data.confirmButtonLabel||"OK";this.cancelButtonLabel=this.data.cancelButtonLabel||"CANCEL"};UJ.prototype.ngOnInit=function(){};UJ.\u0275fac=function(a){return new (a||UJ)};
UJ.\u0275cmp=D({type:UJ,selectors:[["confirmation-dialog"]],decls:12,vars:9,consts:[[1,"confirmation-dialog-container"],["mat-dialog-title","",1,"gmat-headline-4","dialog-title-container"],[3,"class"],[1,"dialog-title","gmat-headline-4"],[1,"gmat-body-2","dialog-content"],[1,"dialog-message"],["align","end",1,"dialog-actions"],["matButton","","data-test-id","cancel-button",3,"mat-dialog-close"],["matButton","","data-test-id","confirm-button",3,"disabled","mat-dialog-close"],[4,"ngTemplateOutlet",
"ngTemplateOutletContext"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"h6",1),F(2,ALa,2,4,"mat-icon",2),F(3,BLa,2,1,"span",3),L(),K(4,"mat-dialog-content",4),F(5,CLa,2,1,"div",5),F(6,FLa,2,4,"div"),L(),K(7,"mat-dialog-actions",6)(8,"button",7),Q(9),L(),K(10,"button",8),Q(11),L()()());if(a&2){B(2);G(b.iconType?2:-1);B();G(b.data.title?3:-1);B(2);G(b.data.message?5:-1);B();G(b.data.contentTemplate?6:-1);B(2);I("mat-dialog-close",!1);B();S(" ",b.cancelButtonLabel," ");B();var c,d,e;a=!((e=(d=(c=b.data).contentValidationFn)==
null?void 0:d.call(c))!=null?e:1);I("disabled",a)("mat-dialog-close",!0);B();S(" ",b.confirmButtonLabel," ")}},dependencies:[by,Sx,mB,kB,gB,TJ,VA,XA,ZA,YA,Ly,Jy],styles:[".dialog-template-content[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:24px}.dialog-title-container[_ngcontent-%COMP%]{padding-bottom:16px}.dialog-content[_ngcontent-%COMP%]{padding-bottom:24px}.dialog-actions[_ngcontent-%COMP%]{padding:24px}.dialog-icon[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:7px}.dialog-icon.warning[_ngcontent-%COMP%]{color:#c5221f}.dialog-icon.info[_ngcontent-%COMP%]{color:#d56e0c}.dialog-message[_ngcontent-%COMP%]{white-space:pre-line}"],
changeDetection:0});var z7c=new dd("GM2_MENU_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var VJ=function(){this.gmatOptions=p(z7c)},A7c=function(a,b){if(a.gmatOptions.disableGmatStyle)throw Error("db");b&&(b.overlayPanelClass=Kh(b.overlayPanelClass||[]).concat("gmat-mdc-menu"))};da.Object.defineProperties(VJ.prototype,{deprecatedPanel:{configurable:!0,enumerable:!0,set:function(a){A7c(this,a)}},panel:{configurable:!0,enumerable:!0,set:function(a){A7c(this,a)}}});VJ.\u0275fac=function(a){return new (a||VJ)};
VJ.\u0275dir=af({type:VJ,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],inputs:{deprecatedPanel:[0,"mat-menu-trigger-for","deprecatedPanel"],panel:[0,"matMenuTriggerFor","panel"]},standalone:!1});var WJ=function(){};WJ.\u0275fac=function(a){return new (a||WJ)};WJ.\u0275mod=$e({type:WJ});WJ.\u0275inj=Fc({imports:[jH]});var B7c=new dd("SessionActionsTemplate"),XJ=function(){this.sessionSummary=Og.required.apply(Og,q([]));this.sessionState=tIc;this.sessionSummaryService=p(nC);this.experimentsService=p(qA);this.changeDetectorRef=p(Cx);this.dialog=p(UA);this.isSessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;this.isHovered=!1;this.menuTrigger=Pg.apply(null,[iH].concat(q([])))};
XJ.prototype.toggleSessionPinnedState=function(a){a.stopPropagation();a.preventDefault();var b;(b=this.menuTrigger())==null||b.closeMenu();this.sessionSummaryService.toggleSessionPinnedState(this.sessionSummary());this.sessionSummary().sessionState=this.sessionSummary().sessionState===2?1:2};
XJ.prototype.toggleSessionArchivedState=function(a){a.stopPropagation();a.preventDefault();var b;(b=this.menuTrigger())==null||b.closeMenu();this.sessionSummaryService.toggleSessionArchivedState(this.sessionSummary());this.sessionSummary().sessionState=this.sessionSummary().sessionState===3?1:3};
XJ.prototype.deleteSession=function(a){var b=this;a.stopPropagation();a.preventDefault();SA(this.dialog.open(UJ,{data:{message:"Are you sure you want to delete this thread? Your thread cannot be retrieved again after deletion.",title:"Delete thread",confirmButtonLabel:"Delete",cancelButtonLabel:"Cancel"}})).subscribe(function(c){if(c){var d;(d=b.menuTrigger())==null||d.closeMenu();b.sessionSummaryService.deleteSession(b.sessionSummary())}})};XJ.\u0275fac=function(a){return new (a||XJ)};
XJ.\u0275cmp=D({type:XJ,selectors:[["session-actions"]],viewQuery:function(a,b){a&1&&og(b.menuTrigger,iH);a&2&&pg()},inputs:{sessionSummary:[1,"sessionSummary"]},decls:10,vars:9,consts:[["actionsMenu","matMenu"],["mat-icon-button","","aria-label","toggle session actions menu",1,"session-actions-menu-button",3,"mouseenter","mouseleave","matMenuTriggerFor"],["mat-menu-item","",1,"pin-thread-toggle",3,"click"],["mat-menu-item","",1,"delete-thread-toggle"],["mat-menu-item","",1,"archive-thread-toggle"],
["mat-menu-item","",1,"delete-thread-toggle",3,"click"],["mat-menu-item","",1,"archive-thread-toggle",3,"click"]],template:function(a,b){if(a&1){var c=t();Zf(0);K(1,"button",1);N("mouseenter",function(){u(c);return v(b.isHovered=!0)})("mouseleave",function(){u(c);return v(b.isHovered=!1)});K(2,"mat-icon");Q(3);L()();K(4,"mat-menu",null,0)(6,"button",2);N("click",function(e){u(c);return v(b.toggleSessionPinnedState(e))});Q(7);L();F(8,GLa,2,0,"button",3)(9,HLa,2,1,"button",4);L()}if(a&2){a=qg(5);var d=
b.sessionSummary().sessionState===b.sessionState.SESSION_STATE_PINNED;$f(b.sessionSummary().sessionState===b.sessionState.SESSION_STATE_ARCHIVED);B();wg("pinned",d)("is-hovered",b.isHovered);I("matMenuTriggerFor",a);B(2);yg(d&&!b.isHovered?"keep_outline":"more_vert");B(4);S(" ",d?"Unpin thread":"Pin thread"," ");B();G(b.isSessionDeletionEnabled?8:9)}},dependencies:[by,mB,kB,iB,WJ,VJ,fH,dH,iH,Ly,Jy],styles:[".session-actions-menu-button[_ngcontent-%COMP%]{display:none}.session-actions-menu-button.pinned[_ngcontent-%COMP%]{display:inline-block}.mat-mdc-list-item:hover   [_nghost-%COMP%]   .session-actions-menu-button[_ngcontent-%COMP%]{display:inline-block}"],
changeDetection:0});var C7c=["customSessionActions"],YJ=function(){this.sessionSummary=Og.required.apply(Og,q([]));this.sessionActionsTemplate=p(B7c,{optional:!0});this.customSessionActions=Pg.apply(null,["customSessionActions"].concat(q([{read:eg}])))};YJ.prototype.ngAfterViewInit=function(){this.sessionActionsTemplate&&this.customSessionActions()&&(this.componentRef=this.customSessionActions().createComponent(this.sessionActionsTemplate),this.componentRef.instance.sessionSummary=ng.apply(null,[this.sessionSummary()].concat(q([]))))};
YJ.\u0275fac=function(a){return new (a||YJ)};YJ.\u0275cmp=D({type:YJ,selectors:[["session-actions-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customSessionActions,C7c,eg);a&2&&pg()},inputs:{sessionSummary:[1,"sessionSummary"]},decls:2,vars:1,consts:[["customSessionActions",""],[3,"sessionSummary"]],template:function(a,b){a&1&&F(0,ILa,2,0,"ng-container")(1,JLa,1,1,"session-actions",1);a&2&&G(b.sessionActionsTemplate?0:1)},dependencies:[by,XJ],encapsulation:2,changeDetection:0});var D7c=new dd("GM2_LIST_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var ZJ=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};ZJ.\u0275fac=function(a){return new (a||ZJ)(Ve(D7c))};ZJ.\u0275dir=af({type:ZJ,selectors:[["mat-list"],["mat-action-list"],["mat-nav-list"],["mat-selection-list"]],hostAttrs:[1,"gmat-mdc-list"],standalone:!1});var E7c=new dd("ListOption");var $J=function(){this._elementRef=p(Hd)};$J.\u0275fac=function(a){return new (a||$J)};$J.\u0275dir=af({type:$J,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]});var aK=function(){this._elementRef=p(Hd)};aK.\u0275fac=function(a){return new (a||aK)};aK.\u0275dir=af({type:aK,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]});var bK=function(){};
bK.\u0275fac=function(a){return new (a||bK)};bK.\u0275dir=af({type:bK,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]});var cK=function(){this._listOption=p(E7c,{optional:!0})};cK.prototype._isAlignedAtStart=function(){var a;return!this._listOption||((a=this._listOption)==null?void 0:a._getTogglePosition())==="after"};cK.\u0275fac=function(a){return new (a||cK)};
cK.\u0275dir=af({type:cK,hostVars:4,hostBindings:function(a,b){a&2&&wg("mdc-list-item__start",b._isAlignedAtStart())("mdc-list-item__end",!b._isAlignedAtStart())}});var dK=function(){cK.apply(this,arguments)};Y(dK,cK);dK.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(dK)))(b||dK)}}();dK.\u0275dir=af({type:dK,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Ef]});var eK=function(){cK.apply(this,arguments)};Y(eK,cK);
eK.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(eK)))(b||eK)}}();eK.\u0275dir=af({type:eK,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Ef]});var F7c=new dd("MAT_LIST_CONFIG");var fK=function(){this._isNonInteractive=!0;this._disableRipple=!1;this._disabled=ng.apply(null,[!1].concat(q([])));this._defaultOptions=p(F7c,{optional:!0})};da.Object.defineProperties(fK.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=Lh(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled()},set:function(a){this._disabled.set(Lh(a))}}});fK.\u0275fac=function(a){return new (a||fK)};
fK.\u0275dir=af({type:fK,hostVars:1,hostBindings:function(a,b){a&2&&If("aria-disabled",b.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}});
var gK=function(){this._elementRef=p(Hd);this._ngZone=p(Rg);this._listBase=p(fK,{optional:!0});this._platform=p(Vh);this._noopAnimations=mi();this._explicitLines=null;this._disableRipple=!1;this._disabled=ng.apply(null,[!1].concat(q([])));this._subscriptions=new Pd;this._rippleRenderer=null;this._hasUnscopedTextContent=!1;p(Zh).load(cA);this.rippleConfig=p(eA,{optional:!0})||{};this._hostElement=this._elementRef.nativeElement;this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button";
this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem();this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")};h=gK.prototype;h.ngAfterViewInit=function(){this._monitorProjectedLinesAndTitle();this._updateItemLines(!0)};h.ngOnDestroy=function(){this._subscriptions.unsubscribe();this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()};h._hasIconOrAvatar=function(){return!(!this._avatars.length&&!this._icons.length)};
h._initInteractiveListItem=function(){this._hostElement.classList.add("mat-mdc-list-item-interactive");this._rippleRenderer=new ADc(this,this._ngZone,this._hostElement,this._platform,p(ye));DDc(this._rippleRenderer,this._hostElement)};h._monitorProjectedLinesAndTitle=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._subscriptions.add(te(a._lines.changes,a._titles.changes).subscribe(function(){return a._updateItemLines(!1)}))})};
h._updateItemLines=function(a){if(this._lines&&this._titles&&this._unscopedContent){a&&this._checkDomForUnscopedTextContent();var b;a=(b=this._explicitLines)!=null?b:this._inferLinesFromContent();b=this._unscopedContent.nativeElement;this._hostElement.classList.toggle("mat-mdc-list-item-single-line",a<=1);this._hostElement.classList.toggle("mdc-list-item--with-one-line",a<=1);this._hostElement.classList.toggle("mdc-list-item--with-two-lines",a===2);this._hostElement.classList.toggle("mdc-list-item--with-three-lines",
a===3);this._hasUnscopedTextContent?(a=this._titles.length===0&&a===1,b.classList.toggle("mdc-list-item__primary-text",a),b.classList.toggle("mdc-list-item__secondary-text",!a)):(b.classList.remove("mdc-list-item__primary-text"),b.classList.remove("mdc-list-item__secondary-text"))}};h._inferLinesFromContent=function(){var a=this._titles.length+this._lines.length;this._hasUnscopedTextContent&&(a+=1);return a};
h._checkDomForUnscopedTextContent=function(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(function(a){return a.nodeType!==a.COMMENT_NODE}).some(function(a){return!(!a.textContent||!a.textContent.trim())})};
da.Object.defineProperties(gK.prototype,{lines:{configurable:!0,enumerable:!0,set:function(a){this._explicitLines=Oh(a,null);this._updateItemLines(!1)}},disableRipple:{configurable:!0,enumerable:!0,get:function(){var a;return this.disabled||this._disableRipple||this._noopAnimations||!((a=this._listBase)==null||!a.disableRipple)},set:function(a){this._disableRipple=Lh(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){var a;return this._disabled()||!((a=this._listBase)==null||!a.disabled)},
set:function(a){this._disabled.set(Lh(a))}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disableRipple||!!this.rippleConfig.disabled}}});gK.\u0275fac=function(a){return new (a||gK)};
gK.\u0275dir=af({type:gK,contentQueries:function(a,b,c){a&1&&(ig(c,dK,4),ig(c,eK,4));if(a&2){var d;lg(d=mg())&&(b._avatars=d);lg(d=mg())&&(b._icons=d)}},hostVars:4,hostBindings:function(a,b){a&2&&(If("aria-disabled",b.disabled)("disabled",b._isButtonElement&&b.disabled||null),wg("mdc-list-item--disabled",b.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}});var hK=function(){this._inset=this._vertical=!1};da.Object.defineProperties(hK.prototype,{vertical:{configurable:!0,enumerable:!0,get:function(){return this._vertical},set:function(a){this._vertical=Lh(a)}},inset:{configurable:!0,enumerable:!0,get:function(){return this._inset},set:function(a){this._inset=Lh(a)}}});hK.\u0275fac=function(a){return new (a||hK)};
hK.\u0275cmp=D({type:hK,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(a,b){a&2&&(If("aria-orientation",b.vertical?"vertical":"horizontal"),wg("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-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.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 iK=function(){};iK.\u0275fac=function(a){return new (a||iK)};iK.\u0275mod=$e({type:iK});iK.\u0275inj=Fc({imports:[Ky]});var G7c=["unscopedContent"],H7c=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],I7c=new dd("SelectionList"),jK=function(){gK.apply(this,arguments);this._selectionList=p(I7c);this._changeDetectorRef=p(Cx);this.selectedChange=new Ti;this.togglePosition="after";this._inputsInitialized=this._selected=!1};Y(jK,gK);jK.\u0275dir=gK.\u0275dir;h=jK.prototype;
h.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._changeDetectorRef.markForCheck()});this._inputsInitialized=!0};h.ngOnDestroy=function(){var a=this;gK.prototype.ngOnDestroy.call(this);this.selected&&Promise.resolve().then(function(){a.selected=!1})};h.toggle=function(){this.selected=!this.selected};h.focus=function(){this._hostElement.focus()};
h.getLabel=function(){var a,b,c,d;return((d=((a=this._titles)==null?void 0:(b=a.get(0))==null?void 0:b._elementRef.nativeElement)||((c=this._unscopedContent)==null?void 0:c.nativeElement))==null?void 0:d.textContent)||""};h._hasCheckboxAt=function(a){return this._selectionList.multiple&&this._getTogglePosition()===a};h._hasRadioAt=function(a){return!this._selectionList.multiple&&this._getTogglePosition()===a&&!this._selectionList.hideSingleSelectionIndicator};
h._hasIconsOrAvatarsAt=function(a){return this._hasProjected("icons",a)||this._hasProjected("avatars",a)};h._hasProjected=function(a,b){return this._getTogglePosition()!==b&&(a==="avatars"?this._avatars.length!==0:this._icons.length!==0)};h._handleBlur=function(){this._selectionList._onTouched()};h._getTogglePosition=function(){return this.togglePosition||"after"};
h._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._changeDetectorRef.markForCheck();return!0};h._markForCheck=function(){this._changeDetectorRef.markForCheck()};
h._toggleOnInteraction=function(){this.disabled||(this._selectionList.multiple?(this.selected=!this.selected,this._selectionList._emitChangeEvent([this])):this.selected||(this.selected=!0,this._selectionList._emitChangeEvent([this])))};h._setTabindex=function(a){this._hostElement.setAttribute("tabindex",a+"")};
h._hasBothLeadingAndTrailing=function(){var a=this._hasProjected("icons","after")||this._hasProjected("avatars","after")||this._hasCheckboxAt("after")||this._hasRadioAt("after");return(this._hasProjected("avatars","before")||this._hasProjected("icons","before")||this._hasCheckboxAt("before")||this._hasRadioAt("before"))&&a};
da.Object.defineProperties(jK.prototype,{checkboxPosition:{configurable:!0,enumerable:!0,get:function(){return this.togglePosition},set:function(a){this.togglePosition=a}},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&&a!==this.value&&this._inputsInitialized&&(this.selected=!1);this._value=a}},selected:{configurable:!0,
enumerable:!0,get:function(){return this._selectionList.selectedOptions.isSelected(this)},set:function(a){a=Lh(a);a!==this._selected&&(this._setSelected(a),(a||this._selectionList.multiple)&&this._selectionList._reportValueChange())}}});jK.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(jK)))(b||jK)}}();
jK.\u0275cmp=D({type:jK,selectors:[["mat-list-option"]],contentQueries:function(a,b,c){a&1&&(ig(c,aK,5),ig(c,$J,5));if(a&2){var d;lg(d=mg())&&(b._lines=d);lg(d=mg())&&(b._titles=d)}},viewQuery:function(a,b){a&1&&hg(G7c,5);if(a&2){var c;lg(c=mg())&&(b._unscopedContent=c.first)}},hostAttrs:["role","option",1,"mat-mdc-list-item","mat-mdc-list-option","mdc-list-item"],hostVars:27,hostBindings:function(a,b){a&1&&N("blur",function(){return b._handleBlur()})("click",function(){return b._toggleOnInteraction()});
a&2&&(If("aria-selected",b.selected),wg("mdc-list-item--selected",b.selected&&!b._selectionList.multiple&&b._selectionList.hideSingleSelectionIndicator)("mdc-list-item--with-leading-avatar",b._hasProjected("avatars","before"))("mdc-list-item--with-leading-icon",b._hasProjected("icons","before"))("mdc-list-item--with-trailing-icon",b._hasProjected("icons","after"))("mat-mdc-list-option-with-trailing-avatar",b._hasProjected("avatars","after"))("mdc-list-item--with-leading-checkbox",b._hasCheckboxAt("before"))("mdc-list-item--with-trailing-checkbox",
b._hasCheckboxAt("after"))("mdc-list-item--with-leading-radio",b._hasRadioAt("before"))("mdc-list-item--with-trailing-radio",b._hasRadioAt("after"))("mat-mdc-list-item-both-leading-and-trailing",b._hasBothLeadingAndTrailing())("mat-accent",b.color!=="primary"&&b.color!=="warn")("mat-warn",b.color==="warn")("_mat-animation-noopable",b._noopAnimations))},inputs:{togglePosition:"togglePosition",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected"},outputs:{selectedChange:"selectedChange"},
exportAs:["matListOption"],features:[Gg([{provide:gK,useExisting:jK},{provide:E7c,useExisting:jK}]),Ef],ngContentSelectors:["[matListItemTitle]","[matListItemLine]","*","mat-divider","[matListItemAvatar],[matListItemIcon]"],decls:20,vars:4,consts:[["icons",""],["checkbox",""],["radio",""],["unscopedContent",""],[1,"mdc-list-item__start","mat-mdc-list-option-checkbox-before"],[1,"mdc-list-item__start","mat-mdc-list-option-radio-before"],[3,"ngTemplateOutlet"],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",
3,"cdkObserveContent"],[1,"mdc-list-item__end"],[1,"mat-focus-indicator"],[1,"mdc-checkbox"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled"],[1,"mdc-checkbox__background"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],[1,"mdc-radio"],["type","radio",1,"mdc-radio__native-control",3,"checked","disabled"],[1,"mdc-radio__background"],
[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"]],template:function(a,b){if(a&1){var c=t();bg(H7c);E(0,KLa,1,0,"ng-template",null,0,Mg)(2,LLa,6,4,"ng-template",null,1,Mg)(4,MLa,5,4,"ng-template",null,2,Mg);F(6,OLa,2,1,"span",4)(7,QLa,2,1,"span",5);F(8,SLa,1,1,null,6);K(9,"span",7);cg(10);cg(11,1);K(12,"span",8,3);N("cdkObserveContent",function(){u(c);return v(b._updateItemLines(!0))});cg(14,2);L()();F(15,ULa,2,1,"span",9)(16,WLa,2,1,"span",9);F(17,YLa,1,1,null,6);cg(18,3);M(19,"div",10)}a&
2&&(B(6),G(b._hasCheckboxAt("before")?6:b._hasRadioAt("before")?7:-1),B(2),G(b._hasIconsOrAvatarsAt("before")?8:-1),B(7),G(b._hasCheckboxAt("after")?15:b._hasRadioAt("after")?16:-1),B(2),G(b._hasIconsOrAvatarsAt("after")?17:-1))},dependencies:[Sx,bz],styles:['.mat-mdc-list-option-with-trailing-avatar.mdc-list-item,[dir=rtl] .mat-mdc-list-option-with-trailing-avatar.mdc-list-item{padding-left:0;padding-right:0}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{margin-left:16px;margin-right:16px;width:40px;height:40px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{border-radius:50%}.mat-mdc-list-option .mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mat-mdc-list-option .mdc-checkbox--disabled{cursor:default;pointer-events:none}.mat-mdc-list-option .mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mat-mdc-list-option .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mat-mdc-list-option .mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox__checkmark{color:CanvasText}}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__checkmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__checkmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mat-mdc-list-option .mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mat-mdc-list-option .mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox__mixedmark{margin:0 1px}}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-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 mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-list-option .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-list-option .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-list-option .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-list-option .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-list-option .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-list-option .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-list-option .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-list-option._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-list-option._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-list-option .mdc-checkbox__native-control,.mat-mdc-list-option .mdc-radio__native-control{display:none}@media(forced-colors: active){.mat-mdc-list-option.mdc-list-item--selected::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.mat-mdc-list-option.mdc-list-item--selected [dir=rtl]::after{right:auto;left:16px}}\n'],
encapsulation:2,changeDetection:0});var J7c=["unscopedContent"],K7c=["text"],L7c=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]];new dd("MatList");var kK=function(){fK.apply(this,arguments)};Y(kK,fK);kK.\u0275dir=fK.\u0275dir;kK.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(kK)))(b||kK)}}();
kK.\u0275cmp=D({type:kK,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Gg([{provide:fK,useExisting:kK}]),Ef],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(bg(),cg(0))},styles:['.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}\n'],
encapsulation:2,changeDetection:0});var lK=function(){gK.apply(this,arguments);this._activated=!1};Y(lK,gK);lK.\u0275dir=gK.\u0275dir;lK.prototype._getAriaCurrent=function(){return this._hostElement.nodeName==="A"&&this._activated?"page":null};lK.prototype._hasBothLeadingAndTrailing=function(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)};
da.Object.defineProperties(lK.prototype,{activated:{configurable:!0,enumerable:!0,get:function(){return this._activated},set:function(a){this._activated=Lh(a)}}});lK.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(lK)))(b||lK)}}();
lK.\u0275cmp=D({type:lK,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(a,b,c){a&1&&(ig(c,aK,5),ig(c,$J,5),ig(c,bK,5));if(a&2){var d;lg(d=mg())&&(b._lines=d);lg(d=mg())&&(b._titles=d);lg(d=mg())&&(b._meta=d)}},viewQuery:function(a,b){a&1&&(hg(J7c,5),hg(K7c,5));if(a&2){var c;lg(c=mg())&&(b._unscopedContent=c.first);lg(c=mg())&&(b._itemText=c.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(a,b){a&
2&&(If("aria-current",b._getAriaCurrent()),wg("mdc-list-item--activated",b.activated)("mdc-list-item--with-leading-avatar",b._avatars.length!==0)("mdc-list-item--with-leading-icon",b._icons.length!==0)("mdc-list-item--with-trailing-meta",b._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",b._hasBothLeadingAndTrailing())("_mat-animation-noopable",b._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[Ef],ngContentSelectors:"[matListItemAvatar],[matListItemIcon] [matListItemTitle] [matListItemLine] * [matListItemMeta] mat-divider".split(" "),
decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(a,b){if(a&1){var c=t();bg(L7c);cg(0);K(1,"span",1);cg(2,1);cg(3,2);K(4,"span",2,0);N("cdkObserveContent",function(){u(c);return v(b._updateItemLines(!0))});cg(6,3);L()();cg(7,4);cg(8,5);M(9,"div",3)}},dependencies:[bz],encapsulation:2,changeDetection:0});new dd("MatNavList");var mK=function(){fK.apply(this,arguments);this._isNonInteractive=!1};Y(mK,fK);mK.\u0275dir=fK.\u0275dir;mK.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(mK)))(b||mK)}}();
mK.\u0275cmp=D({type:mK,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Gg([{provide:fK,useExisting:mK}]),Ef],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(bg(),cg(0))},styles:['.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}\n'],encapsulation:2,
changeDetection:0});var M7c={provide:aE,useExisting:Vc(function(){return nK}),multi:!0},N7c=function(a,b){this.source=a;this.options=b},nK=function(){fK.call(this);var a=this;this._element=p(Hd);this._ngZone=p(Rg);this._renderer=p(ci);this._initialized=!1;this._destroyed=new qf;this._onChange=function(){};this.selectionChange=new Ti;this.color="accent";this.compareWith=function(d,e){return d===e};this._multiple=!0;var b,c;this._hideSingleSelectionIndicator=(c=(b=this._defaultOptions)==null?void 0:b.hideSingleSelectionIndicator)!=
null?c:!1;this.selectedOptions=new xz(this._multiple);this._onTouched=function(){};this._changeDetectorRef=p(Cx);this._selectionListDisabled=ng.apply(null,[!1].concat(q([])));this._handleFocusout=function(){setTimeout(function(){a._containsFocus()||a._resetActiveOption()})};this._handleFocusin=function(d){if(!a.disabled){var e=a._items.toArray().findIndex(function(f){return f._elementRef.nativeElement.contains(d.target)});e>-1?a._setActiveOption(e):a._resetActiveOption()}};this._isNonInteractive=
!1};Y(nK,fK);nK.\u0275dir=fK.\u0275dir;h=nK.prototype;h.ngAfterViewInit=function(){var a=this;this._initialized=!0;this._setupRovingTabindex();this._ngZone.runOutsideAngular(function(){a._listenerCleanups=[a._renderer.listen(a._element.nativeElement,"focusin",a._handleFocusin),a._renderer.listen(a._element.nativeElement,"focusout",a._handleFocusout)]});this._value&&this._setOptionsFromValues(this._value);this._watchForSelectionChange()};
h.ngOnChanges=function(a){var b=a.disabled,c=a.disableRipple;a=a.hideSingleSelectionIndicator;(c&&!c.firstChange||b&&!b.firstChange||a&&!a.firstChange)&&this._markOptionsForCheck()};h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();var b;(b=this._listenerCleanups)==null||b.forEach(function(c){return c()});this._destroyed.next();this._destroyed.complete();this._isDestroyed=!0};h.focus=function(a){this._element.nativeElement.focus(a)};h.selectAll=function(){return this._setAllOptionsSelected(!0)};
h.deselectAll=function(){return this._setAllOptionsSelected(!1)};h._reportValueChange=function(){if(this.options&&!this._isDestroyed){var a=this._getSelectedOptionValues();this._onChange(a);this._value=a}};h._emitChangeEvent=function(a){this.selectionChange.emit(new N7c(this,a))};h.writeValue=function(a){this._value=a;this.options&&this._setOptionsFromValues(a||[])};h.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck();this._markOptionsForCheck()};
h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h._watchForSelectionChange=function(){var a=this;this.selectedOptions.changed.pipe(zf(this._destroyed)).subscribe(function(b){for(var c=m(b.added),d=c.next();!d.done;d=c.next())d.value.selected=!0;b=m(b.removed);for(c=b.next();!c.done;c=b.next())c.value.selected=!1;a._containsFocus()||a._resetActiveOption()})};
h._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)})};h._getSelectedOptionValues=function(){return this.options.filter(function(a){return a.selected}).map(function(a){return a.value})};h._markOptionsForCheck=function(){this.options&&this.options.forEach(function(a){return a._markForCheck()})};
h._setAllOptionsSelected=function(a,b){var c=[];this.options.forEach(function(d){b&&d.disabled||!d._setSelected(a)||c.push(d)});c.length&&this._reportValueChange();return c};
h._handleKeydown=function(a){var b=this._keyManager.activeItem;if(a.keyCode!==13&&a.keyCode!==32||this._keyManager.isTyping()||!b||b.disabled)if(a.keyCode===65&&this.multiple&&!this._keyManager.isTyping()&&Gh(a,"ctrlKey","metaKey"))b=this.options.some(function(c){return!c.disabled&&!c.selected}),a.preventDefault(),this._emitChangeEvent(this._setAllOptionsSelected(b,!0));else this._keyManager.onKeydown(a);else a.preventDefault(),b._toggleOnInteraction()};
h._setupRovingTabindex=function(){var a=this;this._keyManager=mz(ACc(pz(new sz(this._items)))).skipPredicate(function(){return a.disabled});this._resetActiveOption();this._keyManager.change.subscribe(function(b){return a._setActiveOption(b)});this._items.changes.pipe(zf(this._destroyed)).subscribe(function(){var b=a._keyManager.activeItem;b&&a._items.toArray().indexOf(b)!==-1||a._resetActiveOption()})};
h._setActiveOption=function(a){this._items.forEach(function(b,c){return b._setTabindex(c===a?0:-1)});qz(this._keyManager,a)};h._resetActiveOption=function(){if(this.disabled)this._setActiveOption(-1);else{var a=this._items.find(function(b){return b.selected&&!b.disabled})||this._items.first;this._setActiveOption(a?this._items.toArray().indexOf(a):-1)}};h._containsFocus=function(){var a=Ih();return a&&this._element.nativeElement.contains(a)};
da.Object.defineProperties(nK.prototype,{multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){a=Lh(a);a!==this._multiple&&(this._multiple=a,this.selectedOptions=new xz(this._multiple,this.selectedOptions.selected))}},hideSingleSelectionIndicator:{configurable:!0,enumerable:!0,get:function(){return this._hideSingleSelectionIndicator},set:function(a){this._hideSingleSelectionIndicator=Lh(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._selectionListDisabled()},
set:function(a){this._selectionListDisabled.set(Lh(a));if(this._selectionListDisabled()){var b;(b=this._keyManager)==null||b.setActiveItem(-1)}}},options:{configurable:!0,enumerable:!0,get:function(){return this._items}}});nK.\u0275fac=function(a){return new (a||nK)};
nK.\u0275cmp=D({type:nK,selectors:[["mat-selection-list"]],contentQueries:function(a,b,c){a&1&&ig(c,jK,5);if(a&2){var d;lg(d=mg())&&(b._items=d)}},hostAttrs:["role","listbox",1,"mat-mdc-selection-list","mat-mdc-list-base","mdc-list"],hostVars:1,hostBindings:function(a,b){a&1&&N("keydown",function(c){return b._handleKeydown(c)});a&2&&If("aria-multiselectable",b.multiple)},inputs:{color:"color",compareWith:"compareWith",multiple:"multiple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",
disabled:"disabled"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[Gg([M7c,{provide:fK,useExisting:nK},{provide:I7c,useExisting:nK}]),Ef,jx],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(bg(),cg(0))},styles:['.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}\n'],
encapsulation:2,changeDetection:0});var O7c=function(){};O7c.\u0275fac=function(a){return new (a||O7c)};O7c.\u0275dir=af({type:O7c,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-mdc-subheader","mdc-list-group__subheader"]});var oK=function(){};oK.\u0275fac=function(a){return new (a||oK)};oK.\u0275mod=$e({type:oK});oK.\u0275inj=Fc({imports:[cz,iA,jA,Ky,iK]});var pK=function(){};pK.\u0275fac=function(a){return new (a||pK)};pK.\u0275mod=$e({type:pK});pK.\u0275inj=Fc({imports:[oK]});var P7c=new $F(3);var Q7c=new dd("GM2_PROGRESS_SPINNER_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var qK=function(a,b){var c=this;this.options=a;this.progressSpinner=b;this.destroyed=new qf;this.labelElement=document.createElement("label");if(a.disableGmatStyle)throw Error("db");this.labelElement.classList.add("cdk-visually-hidden");this.labelElement.classList.add("gmat-mdc-progress-spinner-accessible-label");this.hasAriaLabelAndRole||ZLa(b._elementRef.nativeElement).pipe(zf(this.destroyed)).subscribe(function(d){R7c(c,d[0],d[1])})};
qK.prototype.ngOnInit=function(){if(!this.hasAriaLabelAndRole){this.progressSpinner._elementRef.nativeElement.insertAdjacentElement("afterend",this.labelElement);var a=this.progressSpinner.mode==="indeterminate"?"indeterminate":this.progressSpinner.value.toString(),b,c=(b=this.ariaLabel)!=null?b:"";R7c(this,c,a)}};qK.prototype.ngOnDestroy=function(){this.labelElement.remove();this.destroyed.next();this.destroyed.complete()};
var R7c=function(a,b,c){b=c==="indeterminate"?b:b+" "+P7c.format(Number(c)/100);a.labelElement.textContent=b};
da.Object.defineProperties(qK.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.progressSpinner._elementRef.nativeElement.getAttribute("aria-label")}},ariaRole:{configurable:!0,enumerable:!0,get:function(){return this.progressSpinner._elementRef.nativeElement.getAttribute("role")}},hasAriaLabelAndRole:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.ariaLabel)==null||!a.length)&&this.ariaRole==="progressbar"}}});
qK.\u0275fac=function(a){return new (a||qK)(Ve(Q7c),Ve(yI,10))};qK.\u0275dir=af({type:qK,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:[1,"gmat-mdc-progress-spinner"],hostVars:2,hostBindings:function(a,b){a&2&&If("aria-hidden",b.hasAriaLabelAndRole?void 0:!0)("tabindex",null)},standalone:!1});var rK=function(){};rK.\u0275fac=function(a){return new (a||rK)};rK.\u0275mod=$e({type:rK});rK.\u0275inj=Fc({imports:[zI]});var S7c=["searchInput"],rMa=function(a,b){return b.sessionId},T7c=new dd("RecentSessionsTemplate"),sK=function(a,b,c,d){this.backendModelService=a;this.userStateService=b;this.duckieEventTrackerService=c;this.sessionSummaryService=d;this.showFilter=this.isShowingMoreNavItems=!1;this.navItemClicked=Ng();this.inputEl=Pg.apply(null,["searchInput"].concat(q([])));this.routingService=p(BA);this.experimentsService=p(qA);this.sessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;this.userStateLoaded$=
this.userStateService.userStateLoaded$;this.isIncognitoMode$=this.userStateService.isEnforcedPrivateMode$;this.sessionSummaries$=this.sessionSummaryService.sessionSummaries$;this.PrivacyMode=mIc;this.SessionState=tIc;this.searchText$=new Mj("");this.searchTextTrimmed$=this.searchText$.pipe(A(function(e){return e.trim()}),nf());this.filteredSessionSummaries$=ie([this.searchTextTrimmed$.pipe(jf(100)),this.sessionSummaries$]).pipe(A(function(e){e=m(e);var f=e.next().value;return e.next().value.filter(function(g){return g.title.toLowerCase().includes(f.toLowerCase())})}));
this.isLoadingSessionSummaries$=this.sessionSummaryService.isLoadingSessionSummaries$;this.numDisplayedItems=this.initialNavItems=5;this.ve={DuckieFilterRecentSessionsButton:223452};this.isGeminiModelSelected$=this.backendModelService.currentModelId$.pipe(A(function(e){return e==="duckie_on_gemini_flash_32k"}));this.currentThreadId$=this.routingService.state$.pipe(A(function(e){return e.params.id}),nf())};
sK.prototype.clearSearch=function(){this.searchText$.next("");this.inputEl()&&(this.inputEl().nativeElement.value="")};var bMa=function(a){a.clearSearch();setTimeout(function(){var b;(b=a.inputEl())==null||b.nativeElement.focus()})},iMa=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,fe(a.sessionSummaries$),2);b=c.yieldResult;a.isShowingMoreNavItems=!0;a.numDisplayedItems=b.length;ae(c)})},pMa=function(a,b){return!!b&&b===a.sessionId};
sK.\u0275fac=function(a){return new (a||sK)(Ve(lC),Ve(mC),Ve(iD),Ve(nC))};
sK.\u0275cmp=D({type:sK,selectors:[["recent-sessions"]],viewQuery:function(a,b){a&1&&og(b.inputEl,S7c);a&2&&pg()},outputs:{navItemClicked:"navItemClicked"},decls:5,vars:6,consts:[["searchInput",""],["mode","indeterminate",1,"align-self-center",3,"diameter"],[1,"nav-list","duckie-left-nav",3,"has-top-banner"],[1,"nav-list","duckie-left-nav"],["mat-subheader","",1,"nav-header","flex-row","align-items-center","text-secondary","font-google-sans","justify-content-space-between"],[1,"nav-header-left","flex-row",
"align-items-center","gap-s"],[1,"icon-m"],[1,"nav-header-right"],["mat-icon-button","","aria-label","Show filter",1,"toggle-filter-button",3,"click","ve","veClick"],[1,"search","flex-row","margin-s-y"],[1,"incognito-mode-banner","bg-primary-container","flex-row","align-items-center","justify-content-space-between","gap","padded"],["href","http://go/duckie-incognito-mode","target","_blank","mat-button","","color","primary","aria-label","Learn more",1,"learn-more-button"],["appearance","outline",1,
"full-width"],["matInput","","aria-label","Search thread titles",3,"input"],["matSuffix","","mat-icon-button","","aria-label","Clear",1,"clear-filter-button"],["matSuffix","","mat-icon-button","","aria-label","Clear",1,"clear-filter-button",3,"click"],["disabled",""],["mat-list-item","","color","primary",3,"click","activated","title"],[1,"nav-item-title","flex-row","align-items-center"],[1,"title-text"],[1,"privacy-icon","padded-xxs","icon-m"],["matListItemMeta",""],[3,"click","sessionSummary"],["mat-button",
"",1,"show-more-nav-toggle"],["mat-button","",1,"show-more-nav-toggle",3,"click"]],template:function(a,b){a&1&&(Zf(0),T(1,"async"),F(2,$La,1,1,"mat-progress-spinner",1),T(3,"async"),Kf(4,tMa,17,15,"mat-nav-list",2));a&2&&($f(U(1,1,b.isIncognitoMode$)),B(2),G(U(3,4,b.isLoadingSessionSummaries$)?2:4))},dependencies:[by,EE,mB,kB,gB,iB,pK,ZJ,mK,lK,O7c,hK,bK,rK,qK,yI,iK,TD,SD,KD,MD,GE,FE,Ly,Jy,hD,gD,lF,YJ,Tx],styles:["[_nghost-%COMP%]{font-size:14px;max-height:100%;overflow-y:auto}[_nghost-%COMP%]   .gmat-mdc-list.mat-mdc-nav-list.mat-mdc-list-base[_ngcontent-%COMP%]   a.mat-mdc-list-item[_ngcontent-%COMP%]{border-radius:30px}[_nghost-%COMP%]   .gmat-mdc-list.mat-mdc-nav-list.mat-mdc-list-base[_ngcontent-%COMP%]   a.mat-mdc-list-item[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]{max-width:calc(100% - 8px)}[_nghost-%COMP%]   .gmat-mdc-list.mat-mdc-nav-list.mat-mdc-list-base[_ngcontent-%COMP%]   a.mat-mdc-list-item[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%]   .gmat-mdc-list.mat-mdc-nav-list.mat-mdc-list-base[_ngcontent-%COMP%]   a.mat-mdc-list-item[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]   .privacy-icon[_ngcontent-%COMP%]{min-width:calc(var(--base-px, 1rem)*20)}[_nghost-%COMP%]   .gmat-mdc-list[_ngcontent-%COMP%]   .mdc-list-item.mdc-list-item--with-trailing-meta[_ngcontent-%COMP%]   .mdc-list-item__end[_ngcontent-%COMP%]{margin:0}.incognito-mode-banner[_ngcontent-%COMP%]{margin:-4px 0}.incognito-mode-banner[_ngcontent-%COMP%]   .learn-more-button[_ngcontent-%COMP%]{min-width:10ch}.show-more-nav-toggle.show-more-nav-toggle[_ngcontent-%COMP%]{width:100%;-webkit-box-pack:start;-webkit-justify-content:flex-start;-moz-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:0 8px 0 24px}.summary-pin-button[_ngcontent-%COMP%]{display:none}.mat-mdc-list-item[_ngcontent-%COMP%]:hover   .summary-pin-button[_ngcontent-%COMP%], .summary-pin-button.pinned[_ngcontent-%COMP%]{display:inline-block}.nav-header[_ngcontent-%COMP%]{margin:0;min-height:32px}.nav-header[_ngcontent-%COMP%]   .nav-header-left[_ngcontent-%COMP%]{margin-left:24px}[_nghost-%COMP%]     .search mat-form-field .mat-mdc-form-field-subscript-wrapper{display:none}.gmat-mdc-button.mat-mdc-icon-button.selected[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:var(--primary-default)}.mat-mdc-list-base.mat-mdc-list-base[_ngcontent-%COMP%]   .mdc-list-item--activated[_ngcontent-%COMP%]   [matListItemMeta][_ngcontent-%COMP%]{--mat-list-list-item-trailing-supporting-text-color:var(--tonal-blue)}mat-divider[_ngcontent-%COMP%]{margin:4px 0}.duckie-left-nav[_ngcontent-%COMP%]{padding-top:0;padding-right:16px}"],
changeDetection:0});var U7c=["customRecentSessions"],tK=function(){this.navItemClicked=Ng();this.recentSessionsTemplate=p(T7c,{optional:!0});this.customRecentSessions=Pg.apply(null,["customRecentSessions"].concat(q([{read:eg}])))};tK.prototype.ngAfterViewInit=function(){var a=this;this.recentSessionsTemplate&&this.customRecentSessions()&&(this.componentRef=this.customRecentSessions().createComponent(this.recentSessionsTemplate),this.componentRef.instance.navItemClicked.subscribe(function(){a.navItemClicked.emit()}))};
tK.\u0275fac=function(a){return new (a||tK)};tK.\u0275cmp=D({type:tK,selectors:[["recent-sessions-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customRecentSessions,U7c,eg);a&2&&pg()},outputs:{navItemClicked:"navItemClicked"},decls:2,vars:1,consts:[["customRecentSessions",""],[3,"navItemClicked"]],template:function(a,b){a&1&&F(0,uMa,2,0,"ng-container")(1,vMa,1,0,"recent-sessions");a&2&&G(b.recentSessionsTemplate?0:1)},dependencies:[by,sK],encapsulation:2,changeDetection:0});var uK=function(){};uK.\u0275fac=function(a){return new (a||uK)};uK.\u0275mod=$e({type:uK});uK.\u0275inj=Fc({imports:[sK,XJ,YJ,tK]});var V7c=new dd("GM2_TOOLTIP_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var vK=function(){if(p(V7c).disableGmatStyle)throw Error("db");var a=p(nA,{self:!0,optional:!0});a&&(a._overlayPanelClass=["gmat-mdc-tooltip"])};vK.\u0275fac=function(a){return new (a||vK)};vK.\u0275dir=af({type:vK,selectors:[["","matTooltip",""]]});var wK=function(){};wK.\u0275fac=function(a){return new (a||wK)};wK.\u0275mod=$e({type:wK});wK.\u0275inj=Fc({imports:[oA]});var W7c=new dd("NewTopicButtonTemplate"),xK=function(){this.ve={DuckieChatSideNavigationPaneNewChatButton:201125};this.threadService=p(FD);this.overridesService=p(AA);this.canStartNewThread$=this.threadService.canStartNewThread$};xK.prototype.startNewThread=function(a){a.metaKey||a.ctrlKey?ni(window,rqa("http://duckie"),"_blank"):this.threadService.startNewThread("","")};xK.\u0275fac=function(a){return new (a||xK)};
xK.\u0275cmp=D({type:xK,selectors:[["new-topic-button"]],decls:5,vars:6,consts:[["mat-fab","","extended","","appearance","fill","matTooltip","New Topic (CTRL+SHIFT+o)",1,"new-thread-button","margin",3,"click","ve","veClick","veImpression","disabled"]],template:function(a,b){a&1&&(K(0,"button",0),T(1,"async"),N("click",function(c){return b.startNewThread(c)}),K(2,"mat-icon"),Q(3,"add"),L(),Q(4,"New topic\n"),L());a&2&&I("ve",b.ve.DuckieChatSideNavigationPaneNewChatButton)("veClick",!0)("veImpression",
!0)("disabled",!U(1,4,b.canStartNewThread$))},dependencies:[by,mB,hB,lB,TJ,wK,vK,nA,Ly,Jy,hD,gD,Tx],styles:["[_nghost-%COMP%]{font-size:calc(var(--base-px, 1rem)*14)}[_nghost-%COMP%]   .new-thread-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{line-height:calc(var(--base-px, 1rem)*24)}"],changeDetection:0});var X7c=["customNewTopicButton"],yK=function(){this.newTopicButtonTemplate=p(W7c,{optional:!0});this.customNewTopicButton=Pg.apply(null,["customNewTopicButton"].concat(q([{read:eg}])))};yK.prototype.ngAfterViewInit=function(){this.newTopicButtonTemplate&&this.customNewTopicButton()&&(this.componentRef=this.customNewTopicButton().createComponent(this.newTopicButtonTemplate))};yK.\u0275fac=function(a){return new (a||yK)};
yK.\u0275cmp=D({type:yK,selectors:[["new-topic-button-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customNewTopicButton,X7c,eg);a&2&&pg()},decls:2,vars:1,consts:[["customNewTopicButton",""]],template:function(a,b){a&1&&F(0,wMa,2,0,"ng-container")(1,xMa,1,0,"new-topic-button");a&2&&G(b.newTopicButtonTemplate?0:1)},dependencies:[by,xK],encapsulation:2,changeDetection:0});var zK=function(){};zK.\u0275fac=function(a){return new (a||zK)};zK.\u0275mod=$e({type:zK});zK.\u0275inj=Fc({imports:[xK,yK]});var Y7c=new dd("BigBirdOutageTemplate"),AK=function(){};AK.prototype.onCloseBannerButtonClicked=function(){};AK.\u0275fac=function(a){return new (a||AK)};
AK.\u0275cmp=D({type:AK,selectors:[["big-bird-outage"]],decls:6,vars:0,consts:[[1,"big-bird-outage"],["href","http://go/duckie-big-bird","target","_blank"]],template:function(a){a&1&&(Qf(0,"div",0)(1,"p"),Q(2," Due to a capacity crunch, Big Bird goes offline temporarily starting 10/17. Duckie will migrate to GfG Flash. Sorry for ruffling feathers. ("),Qf(3,"a",1),Q(4,"go/duckie-big-bird"),Rf(),Q(5,"). "),Rf()())},dependencies:[by],styles:[".big-bird-outage[_ngcontent-%COMP%]{background-color:var(--tonal-fill-red);border:var(--custom-border,1px solid var(--tonal-icon-red));border-radius:var(--custom-border-radius,1em);font-size:calc(var(--base-px, 1rem)*14);font-weight:500;padding:1em}.big-bird-outage[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .big-bird-outage[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:var(--tonal-red)}"],
changeDetection:0});var Z7c=["customBigBirdOutage"],BK=function(){this.bigBirdOutageTemplate=p(Y7c,{optional:!0});this.customBigBirdOutage=Pg.apply(null,["customBigBirdOutage"].concat(q([{read:eg}])))};BK.prototype.ngAfterViewInit=function(){this.bigBirdOutageTemplate&&this.customBigBirdOutage()&&(this.componentRef=this.customBigBirdOutage().createComponent(this.bigBirdOutageTemplate))};BK.\u0275fac=function(a){return new (a||BK)};
BK.\u0275cmp=D({type:BK,selectors:[["big-bird-outage-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customBigBirdOutage,Z7c,eg);a&2&&pg()},decls:2,vars:1,consts:[["customBigBirdOutage",""]],template:function(a,b){a&1&&F(0,yMa,2,0,"ng-container")(1,zMa,1,0,"big-bird-outage");a&2&&G(b.bigBirdOutageTemplate?0:1)},dependencies:[by,AK],encapsulation:2,changeDetection:0});var $7c=new dd("GeneralAnnouncementTemplate"),CK=function(){this.userStateService=p(mC)};CK.prototype.onCloseBannerButtonClicked=function(){oIc(this.userStateService)};CK.\u0275fac=function(a){return new (a||CK)};
CK.\u0275cmp=D({type:CK,selectors:[["general-announcement"]],decls:9,vars:0,consts:[[1,"banner","chat-banner","bg-primary-container","flex-row","align-items-center","justify-content-space-between","gap","padded-left","padded-s-right"],["href","http://b/395969863","target","_blank"],[1,"banner-close-button"],["mat-icon-button","","aria-label","Close banner",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"span"),Q(2," Duckie's old model has been turned down and sessions do not automatically migrate to the new model. Please see "),
K(3,"a",1),Q(4,"b/395969863"),L()(),K(5,"div",2)(6,"button",3),N("click",function(){return b.onCloseBannerButtonClicked()}),K(7,"mat-icon"),Q(8,"close"),L()()()())},dependencies:[by,Ly,Jy],styles:[".banner[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:calc(var(--base-px, 1rem)*14);margin:0 -24px 2px;min-height:32px}.banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:var(--tonal-blue)}@media (max-width:800px){.banner[_ngcontent-%COMP%]{display:none}}.banner-close-button[_ngcontent-%COMP%]{-webkit-transform:scale(.8);transform:scale(.8)}"],
changeDetection:0});var a8c=["customGeneralAnnouncement"],DK=function(){this.generalAnnouncementTemplate=p($7c,{optional:!0});this.customGeneralAnnouncement=Pg.apply(null,["customGeneralAnnouncement"].concat(q([{read:eg}])))};DK.prototype.ngAfterViewInit=function(){this.generalAnnouncementTemplate&&this.customGeneralAnnouncement()&&(this.componentRef=this.customGeneralAnnouncement().createComponent(this.generalAnnouncementTemplate))};DK.\u0275fac=function(a){return new (a||DK)};
DK.\u0275cmp=D({type:DK,selectors:[["general-announcement-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customGeneralAnnouncement,a8c,eg);a&2&&pg()},decls:2,vars:1,consts:[["customGeneralAnnouncement",""]],template:function(a,b){a&1&&F(0,AMa,2,0,"ng-container")(1,BMa,1,0,"general-announcement");a&2&&G(b.generalAnnouncementTemplate?0:1)},dependencies:[by,CK],encapsulation:2,changeDetection:0});var b8c=new dd("IncognitoBannerTemplate"),EK=function(){};EK.\u0275fac=function(a){return new (a||EK)};
EK.\u0275cmp=D({type:EK,selectors:[["incognito-banner"]],decls:7,vars:0,consts:[[1,"banner","incognito-banner","bg-primary-container","flex-row","align-items-center","justify-content-space-between","gap","padded-left","padded-right"],[1,"banner-text","flex-row","gap-s","align-items-center","padded-s-y"],"href;http://go/duckie-incognito-mode;target;_blank;mat-button;;color;primary;aria-label;Learn more".split(";")],template:function(a){a&1&&(K(0,"div",0)(1,"div",1)(2,"mat-icon"),Q(3,"incognito"),L(),
Q(4," Incognito mode enabled. All threads will be deleted on closing this tab or window. "),L(),K(5,"a",2),Q(6," Learn more "),L()())},dependencies:[by,Ly,Jy],styles:[".banner[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:calc(var(--base-px, 1rem)*14);margin:0 -24px 2px;min-height:32px}.banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:var(--tonal-blue)}@media (max-width:800px){.banner[_ngcontent-%COMP%]{display:none}}.banner[_ngcontent-%COMP%]   .banner-text[_ngcontent-%COMP%]{min-height:32px}"],
changeDetection:0});var c8c=["customIncognitoBanner"],FK=function(){this.incognitoBannerTemplate=p(b8c,{optional:!0});this.customIncognitoBanner=Pg.apply(null,["customIncognitoBanner"].concat(q([{read:eg}])))};FK.prototype.ngAfterViewInit=function(){this.incognitoBannerTemplate&&this.customIncognitoBanner()&&(this.componentRef=this.customIncognitoBanner().createComponent(this.incognitoBannerTemplate))};FK.\u0275fac=function(a){return new (a||FK)};
FK.\u0275cmp=D({type:FK,selectors:[["incognito-banner-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customIncognitoBanner,c8c,eg);a&2&&pg()},decls:2,vars:1,consts:[["customIncognitoBanner",""]],template:function(a,b){a&1&&F(0,CMa,2,0,"ng-container")(1,DMa,1,0,"incognito-banner");a&2&&G(b.incognitoBannerTemplate?0:1)},dependencies:[by,EK],encapsulation:2,changeDetection:0});var d8c=[{label:"Search for changelists",prompt:"Show me all the authors I've reviewed CLs for in the last 30 days, with the CL number and size of largest cl, in ascending order of CL size"},{label:"Explain error message",prompt:"Explain: def run_pipeline(root): # Read inputs examples = root | recordio.ReadFromRecordIO( filepattern=build_paths(), coder=tf_example_pb.Example ) producing error: , line 47, in _get_typehint_from_coder return self._coder.to_type_hint() AttributeError: to_type_hint"},{label:"Add proto validator",
prompt:"Add a proto validator rule that count of sources must be between 1 and 2: message LeaseAccountRequest { // Where to lease the account from. // To lease a Fitbit account linked to an OTA, specify 2 sources. repeated Source sources = 2; }"},{label:"Aggregate columns in plx",prompt:"I have 2 columns one named host, the other number_of_submits. I want to aggregate them both by using ARRAY_AGG. I also want to get maximum value from number_of_submits and whatever entry was in the same row in column host."},
{label:"Write a tf.math expression",prompt:"Write a euclidean distance equation using tf.math"},{label:"Generate f1 table",prompt:"Generate a table in f1 with this data: Fields: _PARTITIONDATE: Date | project_id: string Values: - 01/01/2021 | 1 - 01/01/2021 | 2 - 01/01/2021 | 3 - 01/01/2021 | 4 - 01/02/202 | 1 - 01/02/2021 | 2 - 01/02/2021 | 3 - 01/03/202 | 1 - 01/04/202 | 1 - 01/04/202 | 5 - 01/04/202 | 6 - 01/04/202 | 7 - 01/04/202 | 8 - 01/05/202 | 8"}],e8c=[{label:"Building internal Chrome extension",
prompt:"I need to build a Chrome Extension for internal usage, any caveats or things I should know?"},{label:"Using hg rm",prompt:"I'm using hg rm to remove many obsolete files in a directory. But it is too slow and I couldn't check the progress. How to fix it?"},{label:"Shared node vs. library",prompt:"What is a difference between a shared node and library?"},{label:"Declare a new Kotlin function",prompt:"What are different ways to declare a new Kotlin function?"},{label:"Load shedding",prompt:"What is a good load shedding choice for an internal service?"},
{label:"Read experiment in Soy file",prompt:"For reading experiment in Soy file, should I use Soy injection or Soy deltemplate ?"},{label:".pbenums .pb file difference",prompt:'What is the difference between a ".pbenums" file vs a ".pb" file?'}],f8c=[{label:"Assert a list is empty in Kotlin",prompt:"Kotlin assert that the list is empty"},{label:"Sort libraries in Python ",prompt:"Sorting libraries in Python"},{label:"Test using Blaze",prompt:'How do you run the single test "fetchTableWithTags_includesTagsInResponse" in the file "google3/javatests/com/google/cloud/helix/server/job/CatalogInterfaceLocalImplTest.java" using blaze?'},
{label:"Using dreampipe with pod",prompt:"Can you use Dreampipe with Pod Batch?"},{label:"Increment protobuf int field in C++",prompt:"How to increment protobuf int field in c++?"},{label:"Boq web lite node creation",prompt:"What is generated when I create a Boq Web Lite node?"},{label:"Explain code",prompt:"Can you explain this code : ``` [add code block here] ```"},{label:"Find table to query Google Maps POIs",prompt:"What table should I query to get a list of all the POIs on Google Maps?"},{label:"Explain function",
prompt:"Explain flume::KeyProto() function."},{label:"GWS using Java 11",prompt:"Is GWS using Java 11?"},{label:"Get current date in borg config",prompt:"How do I get the current date in the borg config. Is there a method for this?"},{label:"Commit actions in Cider",prompt:"In Cider, what are the differences between sync, evolve, upload, commit, and ammend?"},{label:"Get yesterday's date in Java",prompt:"In Java, how to get yesterday's date?"},{label:"Get Corbett access",prompt:"How do I get access to Corbett?"},
{label:"Explain import statement",prompt:'Why import "//javascript/frameworks/client/data:rpc_id"?'},{label:"Confirm server creation constraints",prompt:"Boq server which listens to pubsub and writes to spanner db. Is this possible in python?"},{label:"Create unordered list in Angular Dart",prompt:"How do I use NgFor to create an unordered list in Angular Dart?"},{label:"Find boqdash backend",prompt:"Is Boq manifest service is the backend for BoqDash(or boq universe)?"},{label:"Check empty string in GoogleSQL",
prompt:"How to check whether a string is empty in googlesql?"},{label:"Provide code summary",prompt:"Explain the following in a succinct summary: [add code block here]"},{label:"Loss in Tensorflow models",prompt:"What are common reasons that a Tensorflow model would not show any change in loss?"},{label:"Explain .dwp file",prompt:"What is a .dwp file?"},{label:"Build rules in bzl",prompt:"Can a single bzl file define two build rules?"},{label:"Workspace document access",prompt:'Does sharing a Google Workspace document with "Alphabet" make the document accessible to restricted TVCs?'},
{label:"Explain code from BUILD file",prompt:'What does this part of the BUILD file mean: borgcfg_inline( name = "index_backfill_borg_inline", src = "index_backfill.borg", deps = [ ":index_backfill_template", "//production/borg/templates/lambda:time_lib", "//production/borg/templates/lambda:ubdiff_lib", ], )'},{label:"Include data file in Blaze",prompt:"How do I include a data file which my Python binary needs in Blaze?"},{label:"GKE mixer service",prompt:"How does the mixer service in GKE work?"}];var IMa=function(a,b){return b.title},GMa=function(a,b){return b.label},g8c=new dd("OnboardingExamplesTemplate"),GK=function(){var a=this;this.overridesService=p(AA);this.ve={ZeroStateSuggestionChipButton:201127};this.defaultOnboardingSections=[{title:"Coding",examples:EMa(d8c)},{title:"Planning",examples:EMa(e8c)},{title:"Learning",examples:EMa(f8c)}];this.clientConfiguration=Og.apply(null,q([]));this.exampleQuery=Ng();this.overrideOnboardingExamples=tya(this.overridesService.overrideOnboardingExamplesList$.asObservable());
this.onboardingExamples=Zg.apply(null,[function(){if(a.overrideOnboardingExamples())return a.overrideOnboardingExamples();var b;return((b=a.clientConfiguration())==null?0:b.onboardingExamples)?a.clientConfiguration().onboardingExamples:a.defaultOnboardingSections}].concat(q([])))};GK.prototype.setExampleQuery=function(a){this.exampleQuery.emit(a)};GK.\u0275fac=function(a){return new (a||GK)};
GK.\u0275cmp=D({type:GK,selectors:[["onboarding-examples"]],inputs:{clientConfiguration:[1,"clientConfiguration"]},outputs:{exampleQuery:"exampleQuery"},decls:2,vars:1,consts:[[1,"onboarding-example-container","flex-row","gap-s"],[1,"onboarding-example","bg-surface-container","rounded","padded"],[1,"onboarding-section-title","gmat-headline-6","margin-s-bottom"],[1,"flex-row","flex-row-wrap","align-items-flex-start","gap-s"],["mat-stroked-button","",1,"example-button","bg-surface-default","text-secondary",
3,"ve","veClick","veImpression"],["mat-stroked-button","",1,"example-button","bg-surface-default","text-secondary",3,"click","ve","veClick","veImpression"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,JMa,2,0),L());if(a&2){var c;B();G((c=b.onboardingExamples())?1:-1,c)}},dependencies:[by,mB,kB,gB,hD,gD],styles:[".onboarding-example[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;width:33%}@media (max-width:1280px){.onboarding-example-container[_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}.onboarding-example[_ngcontent-%COMP%]{width:auto}}@media (max-width:800px){.example-button[_ngcontent-%COMP%]{font-size:11px}.onboarding-section-title[_ngcontent-%COMP%]{font-size:16px}.onboarding-example[_ngcontent-%COMP%]:not(:first-child){display:none}}"],
changeDetection:0});var h8c=["customOnboardingExamples"],HK=function(){this.clientConfiguration=Og.apply(null,q([]));this.exampleQuery=Ng();this.onboardingExamplesTemplate=p(g8c,{optional:!0});this.customOnboardingExamples=Pg.apply(null,["customOnboardingExamples"].concat(q([{read:eg}])))};
HK.prototype.ngAfterViewInit=function(){var a=this;this.onboardingExamplesTemplate&&this.customOnboardingExamples()&&(this.componentRef=this.customOnboardingExamples().createComponent(this.onboardingExamplesTemplate),this.componentRef.instance.clientConfiguration=this.clientConfiguration,this.componentRef.instance.exampleQuery.subscribe(function(b){a.exampleQuery.emit(b)}))};HK.\u0275fac=function(a){return new (a||HK)};
HK.\u0275cmp=D({type:HK,selectors:[["onboarding-examples-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customOnboardingExamples,h8c,eg);a&2&&pg()},inputs:{clientConfiguration:[1,"clientConfiguration"]},outputs:{exampleQuery:"exampleQuery"},decls:2,vars:1,consts:[["customOnboardingExamples",""],[3,"clientConfiguration"],[3,"exampleQuery","clientConfiguration"]],template:function(a,b){a&1&&F(0,KMa,2,0,"ng-container")(1,LMa,1,1,"onboarding-examples",1);a&2&&G(b.onboardingExamplesTemplate?0:1)},dependencies:[by,
GK],encapsulation:2,changeDetection:0});var MMa=new Map([["adsprivacy",{clientName:"Ads Privacy (Beta)",clientLogoUrl:"https://g3doc.corp.google.com/company/teams/ads-privacy/logo.png",onboardingExamples:[{title:"WARNING: Duckie for Ads Privacy is in Beta.\n Duckie may answer questions related to general privacy terminology but will not have information about specific Ads data.\n Please double check the sources linked to the answers.\n If no sources are listed please disregard the Duckie answer. \n Please double check the answers with your PWG (go/pwg-ads-engagement) and/or Legal (go/whichlawyer) before using the Duckie answers as authoritative.",
examples:[{label:"Create DGAC",prompt:"How do I create a DGAC?"},{label:"Best practices",prompt:"What are the best practices to annotate data for DMA?"},{label:"Anonymized data",prompt:"What is anonymized data?"}]}]}],["datanexus",{clientName:"DataNexus",clientLogoUrl:"https://data.corp.google.com/portal/static/dm_icon.png",onboardingDescription:"DataNexus (data/) is Alphabet's central destination for discovery, understanding, and management of ML, data, and data-related assets.",onboardingExamples:[{title:"Explore DataNexus with AI assistant",
examples:[{label:"Onboard to Datanexus",prompt:"What is DataNexus?"},{label:"Register assets",prompt:"How do I register an asset via DataNexus?"},{label:"Request access",prompt:"What is the table ytdata.cd_video and how do I request access to it?"},{label:"Search for assets",prompt:"Help me find a table related to PeopleView.Persons."}]}]}],["fieldglass",{clientName:"Fieldglass",clientLogoUrl:"https://www.gstatic.com/uif/product_icons/fieldglass.svg",onboardingExamples:[{title:"Get contextual answers on Fieldglass",
examples:[{label:"Agent capabilities",prompt:"What are some examples of questions that can be answered by this agent?"}]}]}],["g3doc",{clientName:"g3doc",clientLogoUrl:"https://g3doc.corp.google.com/devtools/markdown/service/g3doc/images/logo.svg",onboardingExamples:[{title:"Get answers about the current page. Past conversations can be found at http://duckie/",examples:[{label:"Summarize",prompt:"What is this page about?"},{label:"Simplify",prompt:"Explain the basic idea in simple terms."},{label:"Edit",
prompt:"Act as a tech writer. How would you improve this doc?"},{label:"Topic specific",prompt:"How do I use this tool to..."}]}]}],["nexus",w7c],["orchestration",{clientName:"Orchestration",clientLogoUrl:"https://g3doc.corp.google.com/supplychain/hw/orchestration2/g3doc/resources/images/orchestration_2_logo.svg",onboardingDescription:"DSS Orchestration 2.0 platform helps building complex system integration workflows and provides real-time execution, alerting and monitoring.",onboardingExamples:[{title:"Get answers on DSS Orchestration",
examples:[{label:"Onboard to Orchestration",prompt:"Tell me how to onboard to DSS Orchestration 2.0 system."},{label:"Debug error message",prompt:"Help me debug this error message: [add error message here]"},{label:"Design workflow definition",prompt:"How do I design my workflow definition in Orchestration 2?"}]}]}],["sfdbg",{clientName:"SFDBG",clientLogoUrl:"https://searchdebugger.corp.google.com/static/logo.svg",onboardingDescription:"See go/sfdbg-duckie-demo to learn how to use Duckie in SFDBG.",
onboardingExamples:[{title:"Get answers on SFDBG",examples:[{label:"Onboard to SFDBG",prompt:"Tell me how to onboard to SFDBG."},{label:"How to use SFDBG",prompt:"How to issue live, eval, or past queries in SFDBG?"},{label:"How to use SFDBG for debugging",prompt:"How to use SFDBG for debugging? Explain the different tabs and what they do and how to use them."}]}]}],["sigma",{clientName:"Sigma",clientLogoUrl:"https://www.gstatic.com/uif/product_icons/sigma.svg",onboardingExamples:[{title:"Get contextual answers for Sigma",
examples:[{label:"Summarize",prompt:"Summarize the data displayed in this page."},{label:"Debug",prompt:"Analyze the data in this page. Look for problems and outliers. Suggest solutions or investigation steps."}]}]}],["spanner",{clientName:"Spanner",clientLogoUrl:"https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/database_spark/default/24px.svg",onboardingExamples:[{title:"Get contextual answers on spanner details page",examples:[{label:"Spanner schema",prompt:"Show me the schema for this database."},
{label:"Query performance",prompt:"How can I improve the performance of my slowest query?"},{label:"Database backups",prompt:"What is the status of my database backups?"},{label:"Spanner automon",prompt:"Where can I find the automon dashboard for this database?"}]}],onboardingExamplesPerPageMap:new Map}],["taskflow",{clientName:"TaskFlow",clientLogoUrl:"https://www.gstatic.com/devopsconsole/images/taskflow/taskflow_logo_v1.svg",onboardingDescription:"TaskFlow assistant is a chat support agent powered by Duckie.\n      It's a customized version of Duckie web and configured to index answers\n      only in TaskFlow g3doc, TaskFlow YAQS and other planning resources.",
onboardingExamples:[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Inbox best practices",prompt:"What are the best practices for triaging items in the inbox?"},{label:"Bulk create issues",prompt:"How do I create tasks in bulk?"},{label:"Customize your views",prompt:"How do I customize saved views?"},{label:"Configure item default types",prompt:"How can I configure the default item types for my workspace?"},{label:"Manage cross-team commitments",prompt:"How to create a customized column in TaskFlow using Buganizer fields?"}]}],
onboardingExamplesPerPageMap:new Map([["homepage",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"What is a workspace?",prompt:"What is a workspace and when should I use one?"},{label:"What is a portfolio?",prompt:"What is a portfolio and when should I use one?"},{label:"Set up workspaces",prompt:"How do I set up a workspace for my team?"}]}]],["inbox",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Remove items from the inbox",prompt:"How do I remove an item from the inbox?"},
{label:"Inbox best practices",prompt:"What are the best practices for triaging items in inbox?"},{label:"Learn about triage actions",prompt:"What are triage actions and how do I use them?"},{label:"Customize your views",prompt:"How do I create saved views?"}]}]],["iteration",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"View burndown chart",prompt:"Where can I find burndown chart?"},{label:"Iteration best practices",prompt:"What are the best practices for using iterations?"},
{label:"Recurring iteration",prompt:"How to set up recurring iterations?"},{label:"Effort estimates",prompt:"How do I set up effort estimates for my team?"},{label:"Capacity planning",prompt:"How can I do capacity planning for my team?"}]}]],["goal",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"TaskFlow and OKRs",prompt:"What are the best practices of linking goals to OKRs?"},{label:"Goals best practices",prompt:"What are the best practices for organizing goals?"}]}]],
["tag",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Tags best practices",prompt:"What are the best practices for tags?"}]}]],["saved_query",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Create a saved search",prompt:"How do I create a saved search?"},{label:"TaskFlow query reference",prompt:"Show me the TaskFlow query reference."}]}]],["portofolio_inbox",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Setup automatic triage",
prompt:"How does the inbox auto-scheduler work for portfolios?"},{label:"Learn about triage actions",prompt:"What are triage actions and how do I set them up?"},{label:"Remove items from inbox",prompt:"How do I remove items from my portfolio inbox?"}]}]],["portfolio_iteration",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Recurring iterations",prompt:"How do I set up recurring iterations for my portfolio?"}]}]]]),modelIdOverride:"taskflow_assistant"}],["webviz",{clientName:"Webviz",
clientLogoUrl:"https://webviz.corp.google.com/static/webviz_logo.svg",onboardingDescription:"Customized version of Duckie grounded in Waymo, Webviz, and your current Webviz session.",onboardingExamples:[{title:"Getting Started",examples:[{label:"What is Webviz?",prompt:"Can you tell me more about Webviz and its main uses?"},{label:"How do I load a run segment?",prompt:"How do I load a specific run segment, for example run 20210801_220454_C01335 between 100s and 120s?"},{label:"How do I find a plugin?",
prompt:"How do I find and enable the Perception plugin?"},{label:"How do I share my session?",prompt:"How do I share my current Webviz view with someone else?"},{label:"How do I debug a hard brake?",prompt:"I see a hard brake event in the timeline, how can I investigate the cause?"}]}],onboardingExamplesPerPageMap:new Map}],["xmanager",{clientName:"XManager",clientLogoUrl:"https://xmanager.corp.google.com/static/images/logo.svg",onboardingDescription:"Ask me questions about your XManager experiments, debugging, resources, and more! File a bug at go/xm-duckie-bugs if you encounter any issues.",
onboardingExamples:[{title:"Get help with XManager",examples:[{label:"What can you do?",prompt:"What can you help me with regarding XManager?"},{label:"Debug failed experiment",prompt:"My experiment failed. Can you help me find out why?"},{label:"Check resources",prompt:"Do we have any VF accelerators available in the [Allotment Name] alloc?"},{label:"Find similar issues",prompt:"Are there any known issues in Buganizer about [Error Message Snippet]?"},{label:"Compare experiments",prompt:"What are the configuration differences between experiment [ID 1] and [ID 2]?"}]}]}]]);var QMa;var IK=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new Ti;this.clickHandler=function(c){if(c instanceof MouseEvent){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}}};IK.prototype.ngOnInit=function(){this.getRoot().addEventListener(this.eventType,this.clickHandler,!0)};IK.prototype.ngOnDestroy=function(){this.getRoot().removeEventListener(this.eventType,this.clickHandler,!0)};
IK.prototype.getRoot=function(){var a;return(a=RMa(this.elementRef.nativeElement))!=null?a:document};IK.\u0275fac=function(a){return new (a||IK)(Ve(Hd))};IK.\u0275dir=af({type:IK,selectors:[["","clickOutside",""]],inputs:{eventType:[0,"clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"},standalone:!1});var JK=function(){};JK.\u0275fac=function(a){return new (a||JK)};JK.\u0275mod=$e({type:JK});JK.\u0275inj=Fc({});var i8c=Symbol("Sc"),j8c=Symbol("Tc"),KK=function(a){this.viewContainerRef=a;this.className="onedev-hovercard";this.onHide=new Ti;this[i8c]=new uf(1);this.wasTriggeredByKeyboard=!1;this.isOnHover$=new Mj(!1);this.closeHovercard$=new qf};KK.prototype.ngOnInit=function(){};var k8c=function(a){var b=a[j8c];return b?(b.loaded||(b.viewContainerRef.createEmbeddedView(b.templateRef),b.cdr.detectChanges(),b.loaded=!0),a[i8c].pipe(mf(0))):ce(void 0)};KK.\u0275fac=function(a){return new (a||KK)(Ve(eg))};
KK.\u0275cmp=D({type:KK,selectors:[["onedev-hovercard"]],viewQuery:function(a,b){a&1&&hg(dg,7);if(a&2){var c;lg(c=mg())&&(b.templateRef=c.first)}},inputs:{className:"className"},outputs:{onHide:"onHide"},exportAs:["onedevHovercard"],standalone:!1,ngContentSelectors:["*"],decls:1,vars:0,consts:[["cdkTrapFocus","",3,"clickOutside","mouseenter","mouseleave","cdkTrapFocusAutoCapture"]],template:function(a){a&1&&(bg(),E(0,SMa,2,3,"ng-template"))},dependencies:[Wy,IK],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 LK=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.cdr=c;this.loaded=!1;d[j8c]=this};LK.\u0275fac=function(a){return new (a||LK)(Ve(dg),Ve(eg),Ve(Cx),Ve(KK))};LK.\u0275dir=af({type:LK,selectors:[["","onedevHovercardLazyBody",""]],standalone:!1});var MK=function(a){this.hovercard=a;this.destroyed$=new uf(1)};MK.prototype.ngOnDestroy=function(){this.destroyed$.next()};MK.prototype.ngOnInit=function(){this.isHovercardReady$.pipe(zf(this.destroyed$)).subscribe(this.hovercard[i8c])};
MK.\u0275fac=function(a){return new (a||MK)(Ve(KK))};MK.\u0275dir=af({type:MK,selectors:[["","onedevIsHovercardReady",""]],inputs:{isHovercardReady$:[0,"onedevIsHovercardReady","isHovercardReady$"]},standalone:!1});var NK=function(){this.onAction=new Ti;this.disabled=!1};NK.prototype.handleClick=function(){this.onAction.emit()};NK.\u0275fac=function(a){return new (a||NK)};
NK.\u0275cmp=D({type:NK,selectors:[["onedev-hovercard-action"]],inputs:{disabled:"disabled"},outputs:{onAction:"onAction"},standalone:!1,ngContentSelectors:["*"],decls:2,vars:1,consts:[["mat-button","","color","primary",1,"onedev-hovercard-action",3,"click","disabled"]],template:function(a,b){a&1&&(bg(),K(0,"button",0),N("click",function(){return b.handleClick()}),cg(1),L());a&2&&I("disabled",b.disabled)},dependencies:[GI],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;-webkit-box-pack:left;-webkit-justify-content:left;-moz-box-pack:left;-ms-flex-pack:left;justify-content:left;padding:0 20px;text-align:left;width:100%}"]});var l8c={originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:10},m8c={originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-10},n8c={originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-10},o8c=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:10},l8c,n8c,{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 OK=function(){this.showDelay=600;this.hideDelay=400;this.position=o8c;this.triggerKey=[]},PK=function(a,b){var c=this;this.overlay=a;this.origin=b;this.waitFor$=void 0;this.enabled=!0;this.config=new OK;this.active=!1;this.hovercardShown$=new uf(1);this.hide$=new qf;this.hovercard$=new Mj(null);this.isHovered$=new Mj(!1);this.isKeyboardActivated$=new Mj(!1);this.destroyed$=new uf(1);this.onDocumentKeyDown=function(e){e.key==="Escape"&&(p8c(c),e.stopPropagation(),e.preventDefault())};q8c(this);
this.handleClose();var d;(d=this.waitFor$)==null||d.pipe(zf(this.destroyed$)).subscribe()},q8c=function(a){r8c(a).pipe(zf(a.destroyed$)).subscribe(function(b){(a.active=b)?a.show():a.hide()})};PK.prototype.handleClose=function(){var a=this;this.hovercard$.pipe(yf(function(b){return(b==null?void 0:b.closeHovercard$)||rx}),zf(this.destroyed$)).subscribe(function(){p8c(a)})};PK.prototype.dispose=function(){s8c(this);var a;(a=this.overlayRef)==null||a.dispose();this.destroyed$.next();this.destroyed$.complete()};
PK.prototype.isExpanded=function(){return this.hovercard$.getValue()?this.active:void 0};PK.prototype.toggle=function(a){this.isHovered$.next(a)};var p8c=function(a){a.isKeyboardActivated$.next(!1);a.isHovered$.next(!1);var b;(b=a.hovercard$.getValue())==null||b.isOnHover$.next(!1)};
PK.prototype.show=function(){var a=this;this.enabled&&this.overlayRef&&!this.overlayRef.hasAttached()&&this.hovercard$.getValue()&&(this.hovercard$.getValue().wasTriggeredByKeyboard=this.isKeyboardActivated$.value,k8c(this.hovercard$.getValue()).pipe(lf(1),zf(this.destroyed$)).subscribe(function(){a.overlayRef&&a.templatePortal&&a.overlayRef.attach(a.templatePortal);document.addEventListener("keydown",a.onDocumentKeyDown);a.hovercardShown$.next()}))};PK.prototype.hide=function(){s8c(this);this.hide$.next()};
var s8c=function(a){if(a.overlayRef&&a.overlayRef.hasAttached()){document.removeEventListener("keydown",a.onDocumentKeyDown);var b;(b=a.hovercard$.getValue())!=null&&b.onHide.emit();a.overlayRef.detach()}};PK.prototype.getPositionStrategy=function(){return Fz(Gz(Hz(Lz(this.overlay.position(),this.origin)),8),this.config.position)};
var r8c=function(a){return ie([t8c(a).pipe(xf(!1)),a.isKeyboardActivated$]).pipe(wf(1),A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b||c}),yf(function(b){var c;return((c=a.waitFor$)==null?void 0:c.pipe(kf(b)))||ce(b)}))},t8c=function(a){return a.hovercard$.pipe(yf(function(b){return ie([a.isHovered$,(b==null?void 0:b.isOnHover$)||ce(!1)]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c||d}),dla(function(c){return c?re(a.config.showDelay):re(a.config.hideDelay)}),
zf(a.destroyed$))}))};var u8c=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/events/usage";a.addNewCounter(this.metricName,dm("name"),dm("source"),{fieldType:1,fieldName:"state"})};u8c.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};u8c.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var v8c=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/events/performance";a.addNewEventMetric(this.metricName,dm("source"),dm("name"))};v8c.prototype.record=function(a,b,c){this.streamzService.record(this.metricName,a,b,c)};v8c.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var w8c=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/rpc/request_count";a.addNewCounter(this.metricName,dm("source"),dm("method_id"))};w8c.prototype.increment=function(a,b){this.streamzService.incrementCounter(this.metricName,a,b)};w8c.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var x8c=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/rpc/error_count";a.addNewCounter(this.metricName,dm("source"),dm("method_id"),{fieldType:2,fieldName:"code"})};x8c.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};x8c.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};var y8c={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);a>0;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};var B8c=function(a){a=z8c(a);for(var b=2654435769,c=2654435769,d=314159265,e=a.length,f=e,g=0,k=function(){b-=c;b-=d;b^=d>>>13;c-=d;c-=b;c^=b<<8;d-=b;d-=c;d^=c>>>13;b-=c;b-=d;b^=d>>>12;c-=d;c-=b;c^=b<<16;d-=b;d-=c;d^=c>>>5;b-=c;b-=d;b^=d>>>3;c-=d;c-=b;c^=b<<10;d-=b;d-=c;d^=c>>>15};f>=12;f-=12,g+=12)b+=A8c(a,g),c+=A8c(a,g+4),d+=A8c(a,g+8),k();d+=e;switch(f){case 11:d+=a[g+10]<<24;case 10:d+=a[g+9]<<16;case 9:d+=a[g+8]<<8;case 8:c+=a[g+7]<<24;case 7:c+=a[g+6]<<16;case 6:c+=a[g+5]<<8;case 5:c+=a[g+4];
case 4:b+=a[g+3]<<24;case 3:b+=a[g+2]<<16;case 2:b+=a[g+1]<<8;case 1:b+=a[g]}k();return y8c.toString(d)},C8c=function(a){return a},z8c=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b},A8c=function(a,b){return a[b]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};var D8c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(D8c,W);D8c.prototype.getValueCase=function(){return wo(this,E8c)};var E8c=[1,2,3];var F8c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(F8c,W);F8c.prototype.getValueCase=function(){return wo(this,G8c)};var G8c=[1,2,3];var H8c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(H8c,W);var I8c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(I8c,W);I8c.prototype.getFieldName=function(){return Uw(this,3)};I8c.prototype.setFieldName=function(a){return bx(this,3,a)};var J8c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(J8c,W);var QK=function(a,b,c,d,e,f,g){a=a===void 0?-1:a;b=b===void 0?"":b;c=c===void 0?"":c;d=d===void 0?!1:d;e=e===void 0?"":e;FB.call(this);this.logSource=a;this.componentId=b;f?c=f:(a=(new eD(a,"0")).setComponentId(b),xt(this,a),c!==""&&(a.destinationUrl=c),d&&(a.serviceWorkerScopeEnabled=!0),e&&a.setBuildLabel(e),g&&(a.network=g),c=a.build());this.transport=c};Y(QK,FB);QK.prototype.getLogSource=function(){return this.logSource};QK.prototype.getComponentId=function(){return this.componentId};
QK.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new J8c,c=[],d=0;d<a.length;d++){var e=a[d],f=new I8c;f=oj(f,1,e.metricName);var g=K8c(e);f=Gm(f,3,g);g=[];var k=[];for(var l=m(e.cellMap.keys()),r=l.next();!r.done;r=l.next())k.push(r.value.split(","));for(l=0;l<k.length;l++){r=k[l];var w=e.cellType;for(var x=e.getCells(r)||[],C=[],H=0;H<x.length;H++){var J=x[H],O=J&&J.cellValue;J=new F8c;switch(w){case 3:O=Number(O);Number.isFinite(O)&&Qo(J,1,G8c,Ib(O,0));break;case 2:fWa(J,2,G8c,Number(O))}C.push(J)}w=
C;for(x=0;x<w.length;x++){C=w[x];H=new H8c;C=Mi(H,F8c,2,C);H=r;J=[];O=L8c(e);for(var R=0;R<O.length;R++){var V=O[R],ca=H[R],na=new D8c;switch(V){case 3:Bo(na,1,E8c,String(ca));break;case 2:V=Number(ca);Number.isFinite(V)&&Qo(na,2,E8c,V==null?V:Eb(V));break;case 1:V=ca==="true",Qo(na,3,E8c,V==null?V:yb(V))}J.push(na)}Ni(C,1,J);g.push(C)}}Ni(f,4,g);c.push(f);e.clear()}Ni(b,1,c);this.transport.dispatch(b);this.transport.flush()}};var M8c=function(a){this.cellValue=a};var N8c=function(a,b,c){this.metricName=a;this.cellType=b;this.fields=c||[];this.cellMap=new Map},L8c=function(a){return a.fields.map(function(b){return b.fieldType})},K8c=function(a){return a.fields.map(function(b){return b.fieldName})};h=N8c.prototype;h.addCell=function(a){var b=$c.apply(1,arguments),c=this.getCells(b);c?c.push(new M8c(a)):this.setCell(a,b)};h.setCell=function(a){var b=this.getKey($c.apply(1,arguments));this.cellMap.set(b,[new M8c(a)])};
h.getCells=function(){var a=this.getKey($c.apply(0,arguments));return this.cellMap.has(a)?this.cellMap.get(a):void 0};h.getCell=function(){var a=this.getCells($c.apply(0,arguments));return a&&a.length?a[0]:void 0};h.clear=function(){this.cellMap.clear()};h.getKey=function(){var a=$c.apply(0,arguments);return a?a.join(","):"key"};var O8c=function(a,b){N8c.call(this,a,3,b)};Y(O8c,N8c);O8c.prototype.incrementCounter=function(){this.incrementCounterBy(1,$c.apply(0,arguments))};O8c.prototype.incrementCounterBy=function(a){var b=$c.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue);this.setCell(c+a,b)};var P8c=function(a,b){N8c.call(this,a,2,b)};Y(P8c,N8c);P8c.prototype.record=function(a){this.addCell(a,$c.apply(1,arguments))};var Q8c=function(a){FB.call(this);this.streamzLogger=a;this.invocationCount=0;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.flushTimer=new LC(this.flushInterval);this.flushTimer.listen("tick",this.snapshotAndFlush,!1,this);xt(this,this.flushTimer)};Y(Q8c,FB);var R8c=function(a){a.maybeStartFlushTimer();a.invocationCount++;a.invocationCount>=100&&a.snapshotAndFlush()};h=Q8c.prototype;
h.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(q(a)).filter(function(b){return b.cellMap.size});a.length&&this.streamzLogger.flush(a,!1);S8c(a);this.invocationCount=0;this.flushTimer.enabled&&this.flushTimer.stop()};h.addNewCounter=function(a){var b=$c.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new O8c(a,b))};h.addNewEventMetric=function(a){var b=$c.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new P8c(a,b))};
h.getMetric=function(a){return this.disabledMetrics.has(a)?void 0:this.metricMap.get(a)};h.incrementCounter=function(a){this.incrementCounterBy(a,1,$c.apply(1,arguments))};h.incrementCounterBy=function(a,b){var c=$c.apply(2,arguments),d=this.getMetric(a);d&&d instanceof O8c&&(d.incrementCounterBy(b,c),R8c(this))};h.record=function(a,b){var c=$c.apply(2,arguments),d=this.getMetric(a);d&&d instanceof P8c&&(d.record(b,c),R8c(this))};h.maybeStartFlushTimer=function(){this.flushTimer.enabled||this.flushTimer.start()};
var S8c=function(a){for(var b=0;b<a.length;b++)a[b].clear()};var T8c=new dd("PRODUCTION_ALLOWLIST",{factory:function(){return"l2YMRd lfR6bb iQyyte LhFyIb aVezrf i1iYkd dVgi5c kMzkoe pglXEd AbcbBc Yc0Dnb cvLsDf UAiaPe NdZs2d elAd5d q7HsZb kbrYBc qX517e KmD3Se w0tcsb qrMtRe".split(" ")}}),U8c=new dd("STREAMZ_PRODUCT_IDENTIFIER"),V8c=new dd("STREAMZ_ALLOWLIST_IDENTIFIER"),W8c=new dd("one_developer_workflow.streamz_service",{providedIn:"root",factory:function(){return p(Rg).runOutsideAngular(function(){var a=new QK(1503);a=new Q8c(a);a.flushInterval=1E4;a.flushTimer.setInterval(1E4);
return a})}}),RK=function(a,b,c,d,e){this.streamzService=a;this.zone=b;this.oneDeveloperWorkflowUsageMetrics=new u8c(this.streamzService);new v8c(this.streamzService);new w8c(this.streamzService);new x8c(this.streamzService);this.productIdentifier=d||window.location.hostname;this.productionAllowlist=c.map(C8c);this.allowlistIdentifier=B8c(e!=null?e:this.productIdentifier)},Y8c=function(a,b,c){a.zone.runOutsideAngular(function(){X8c(a)&&a.oneDeveloperWorkflowUsageMetrics.increment(b,a.productIdentifier,
c)})},X8c=function(a){return a.productionAllowlist.some(function(b){return a.allowlistIdentifier===b})};RK.\u0275fac=function(a){return new (a||RK)(Xc(W8c),Xc(Rg),Xc(T8c),Xc(U8c,8),Xc(V8c,8))};RK.\u0275prov=Dc({token:RK,factory:RK.\u0275fac,providedIn:"root"});var Z8c=new dd("onedevHovercardLoggingOn"),SK=function(a,b,c,d,e){var f=this;this.viewContainerRef=c;this.injector=e;this.config=new OK;this.onHovercardShown=new Ti;this.destroyed$=new uf(1);this.triggerControl=new PK(a,b);this.triggerControl.hovercardShown$.pipe(Cf(d||ce(!1)),zf(this.destroyed$)).subscribe(function(g){g=m(g);g.next();g=g.next().value;f.onHovercardShown.emit();g&&(f.clientStreamzService||(f.clientStreamzService=f.injector.get(RK)),Y8c(f.clientStreamzService,"hovercardShown",!0))})};
h=SK.prototype;h.ngOnChanges=function(a){if(a.hovercard){var b;a=(b=a.hovercard)==null?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 Oz(a.templateRef,c);b.hovercard$.next(a)}}};h.ngOnDestroy=function(){this.triggerControl.dispose();this.destroyed$.next();this.destroyed$.complete()};
h.isExpanded=function(){return this.triggerControl.isExpanded()};h.onKeyDown=function(a){if(this.config.triggerKey.includes(a.key)){var b=this.triggerControl;a.stopPropagation();a.preventDefault();b.isKeyboardActivated$.next(!0)}};h.toggle=function(a){this.triggerControl.toggle(a)};h.hide=function(){this.triggerControl.hide()};da.Object.defineProperties(SK.prototype,{enabled:{configurable:!0,enumerable:!0,set:function(a){this.triggerControl.enabled=a}}});
SK.\u0275fac=function(a){return new (a||SK)(Ve(Tz),Ve(Hd),Ve(eg),Ve(Z8c,8),Ve(ye))};
SK.\u0275dir=af({type:SK,selectors:[["","onedevHovercardTrigger",""]],hostVars:2,hostBindings:function(a,b){a&1&&N("mouseenter",function(){return b.toggle(!0)})("mouseleave",function(){return b.toggle(!1)})("keydown.alt.arrowRight",function(c){var d=b.triggerControl;c.stopPropagation();c.preventDefault();d.isKeyboardActivated$.next(!0)})("keydown",function(c){return b.onKeyDown(c)});a&2&&If("aria-haspopup",b.hovercard?"true":void 0)("aria-expanded",b.isExpanded())},inputs:{hovercard:[0,"onedevHovercardTrigger",
"hovercard"],enabled:[0,"onedevHovercardActive","enabled"],config:[0,"onedevHovercardConfig","config"]},outputs:{onHovercardShown:"onedevHovercardShown"},exportAs:["onedevHovercardTrigger"],standalone:!1,features:[jx]});var TK=function(){};TK.\u0275fac=function(a){return new (a||TK)};TK.\u0275mod=$e({type:TK});TK.\u0275inj=Fc({imports:[ez,JK,by,SI,Wz]});var $8c=new dd("GM2_CHIPS_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var UK=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};UK.\u0275fac=function(a){return new (a||UK)(Ve($8c))};
UK.\u0275dir=af({type:UK,selectors:[["mat-chip"],["mat-basic-chip"],["mat-chip-row"],["mat-basic-chip-row"],["mat-chip-option"],["mat-basic-chip-option"]],hostAttrs:[1,"gmat-mdc-chip"],hostVars:14,hostBindings:function(a,b){a&2&&wg("gmat-input-chip",b.appearance==="input")("gmat-filter-chip",b.appearance==="hairline-filter"||b.appearance==="protected-filter")("gmat-suggestive-chip",b.appearance==="hairline-suggestive"||b.appearance==="protected-suggestive")("gmat-assistive-chip",b.appearance==="hairline-assistive"||
b.appearance==="protected-assistive")("gmat-hairline-chip",b.appearance==="input"||b.appearance==="hairline-filter"||b.appearance==="hairline-suggestive"||b.appearance==="hairline-assistive")("gmat-protected-chip",b.appearance==="protected-filter"||b.appearance==="protected-suggestive"||b.appearance==="protected-assistive")("gmat-selectable-chip",b.appearance==="input"||b.appearance==="hairline-filter"||b.appearance==="protected-filter")},inputs:{appearance:"appearance"},standalone:!1});var a9c=new dd("mat-chips-default-options",{providedIn:"root",factory:function(){return{separatorKeyCodes:[13]}}}),b9c=new dd("MatChipAvatar"),c9c=new dd("MatChipTrailingIcon"),d9c=new dd("MatChipEdit"),e9c=new dd("MatChipRemove"),f9c=new dd("MatChip");var VK=function(){this._elementRef=p(Hd);this._parentChip=p(f9c);this._isPrimary=!0;this._disabled=this._isLeading=!1;this.tabIndex=-1;this._allowFocusWhenDisabled=!1;p(Zh).load(cA);this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")};VK.prototype._getDisabledAttribute=function(){return this.disabled&&!this._allowFocusWhenDisabled?"":null};VK.prototype.focus=function(){this._elementRef.nativeElement.focus()};
da.Object.defineProperties(VK.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){var a;return this._disabled||((a=this._parentChip)==null?void 0:a.disabled)||!1},set:function(a){this._disabled=a}}});VK.\u0275fac=function(a){return new (a||VK)};
VK.\u0275dir=af({type:VK,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(a,b){a&2&&(If("disabled",b._getDisabledAttribute())("aria-disabled",b.disabled),wg("mdc-evolution-chip__action--primary",b._isPrimary)("mdc-evolution-chip__action--secondary",!b._isPrimary)("mdc-evolution-chip__action--trailing",!b._isPrimary&&!b._isLeading))},inputs:{disabled:[2,"disabled","disabled",
$g],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?-1:ah(a)}],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}});var WK=function(){VK.apply(this,arguments)};Y(WK,VK);WK.prototype._getTabindex=function(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()};WK.prototype._handleClick=function(a){!this.disabled&&this._isPrimary&&(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};
WK.prototype._handleKeydown=function(a){a.keyCode!==13&&a.keyCode!==32||this.disabled||!this._isPrimary||this._parentChip._isEditing||(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};WK.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(WK)))(b||WK)}}();
WK.\u0275dir=af({type:WK,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(a,b){a&1&&N("click",function(c){return b._handleClick(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&(If("tabindex",b._getTabindex()),wg("mdc-evolution-chip__action--presentational",!1))},features:[Ef]});var g9c=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],XK=function(){this._changeDetectorRef=p(Cx);this._elementRef=p(Hd);this._tagName=p(Dyc);this._ngZone=p(Rg);this._focusMonitor=p(Ny);this._globalRippleOptions=p(eA,{optional:!0});this._document=p(Rh);this._onFocus=new qf;this._onBlur=new qf;this.role=null;this._hasFocusInternal=!1;this._animationsDisabled=mi();this.id=p(ai).getId("mat-mdc-chip-");this.ariaDescription=
this.ariaLabel=null;this._hadFocusOnRemove=this._chipListDisabled=!1;this.removable=!0;this._disabled=this.disableRipple=this.highlighted=!1;this.removed=new Ti;this.destroyed=new Ti;this.basicChipAttrName="mat-basic-chip";this._rippleLoader=p(lA);this._injector=p(ye);var a=p(Zh);a.load(cA);a.load(Ry);this._monitorFocus();var b;(b=this._rippleLoader)==null||KDc(b,this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})};h=XK.prototype;h._hasFocus=function(){return this._hasFocusInternal};
h.ngOnInit=function(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName};h.ngAfterViewInit=function(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label");this._pendingFocus&&(this._pendingFocus=!1,this.focus())};h.ngAfterContentInit=function(){var a=this;this._actionChanges=te(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
h.ngDoCheck=function(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())};h.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);var a;(a=this._rippleLoader)==null||JDc(a,this._elementRef.nativeElement);var b;(b=this._actionChanges)==null||b.unsubscribe();this.destroyed.emit({chip:this});this.destroyed.complete()};h.remove=function(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))};
h._isRippleDisabled=function(){var a;return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!((a=this._globalRippleOptions)==null||!a.disabled)};h._hasTrailingIcon=function(){return!(!this.trailingIcon&&!this.removeIcon)};h._handleKeydown=function(a){if(a.keyCode===8&&!a.repeat||a.keyCode===46)a.preventDefault(),this.remove()};h.focus=function(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)};
h._getSourceAction=function(a){return this._getActions().find(function(b){b=b._elementRef.nativeElement;return b===a||b.contains(a)})};h._getActions=function(){var a=[];this.editIcon&&a.push(this.editIcon);this.primaryAction&&a.push(this.primaryAction);this.removeIcon&&a.push(this.removeIcon);return a};h._handlePrimaryActionInteraction=function(){};h._hasInteractiveActions=function(){return this._getActions().length>0};h._edit=function(){};
h._monitorFocus=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b=b!==null;b!==a._hasFocusInternal&&((a._hasFocusInternal=b)?a._onFocus.next({chip:a}):(a._changeDetectorRef.markForCheck(),setTimeout(function(){return a._ngZone.run(function(){return a._onBlur.next({chip:a})})})))})};
da.Object.defineProperties(XK.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this._value!==void 0?this._value:this._textElement.textContent.trim()},set:function(a){this._value=a}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||this._chipListDisabled},set:function(a){this._disabled=a}}});XK.\u0275fac=function(a){return new (a||XK)};
XK.\u0275cmp=D({type:XK,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(a,b,c){a&1&&(ig(c,b9c,5),ig(c,d9c,5),ig(c,c9c,5),ig(c,e9c,5),ig(c,b9c,5),ig(c,c9c,5),ig(c,d9c,5),ig(c,e9c,5));if(a&2){var d;lg(d=mg())&&(b.leadingIcon=d.first);lg(d=mg())&&(b.editIcon=d.first);lg(d=mg())&&(b.trailingIcon=d.first);lg(d=mg())&&(b.removeIcon=d.first);lg(d=mg())&&(b._allLeadingIcons=d);lg(d=mg())&&(b._allTrailingIcons=d);lg(d=mg())&&(b._allEditIcons=
d);lg(d=mg())&&(b._allRemoveIcons=d)}},viewQuery:function(a,b){a&1&&hg(WK,5);if(a&2){var c;lg(c=mg())&&(b.primaryAction=c.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(a,b){a&1&&N("keydown",function(c){return b._handleKeydown(c)});a&2&&(Pf("id",b.id),If("role",b.role)("aria-label",b.ariaLabel),xg("mat-"+(b.color||"primary")),wg("mdc-evolution-chip",!b._isBasicChip)("mdc-evolution-chip--disabled",b.disabled)("mdc-evolution-chip--with-trailing-action",b._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",
b.leadingIcon)("mdc-evolution-chip--with-primary-icon",b.leadingIcon)("mdc-evolution-chip--with-avatar",b.leadingIcon)("mat-mdc-chip-with-avatar",b.leadingIcon)("mat-mdc-chip-highlighted",b.highlighted)("mat-mdc-chip-disabled",b.disabled)("mat-mdc-basic-chip",b._isBasicChip)("mat-mdc-standard-chip",!b._isBasicChip)("mat-mdc-chip-with-trailing-icon",b._hasTrailingIcon())("_mat-animation-noopable",b._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,
"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",$g],highlighted:[2,"highlighted","highlighted",$g],disableRipple:[2,"disableRipple","disableRipple",$g],disabled:[2,"disabled","disabled",$g]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Gg([{provide:f9c,useExisting:XK}])],ngContentSelectors:["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],decls:8,vars:2,
consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(a,b){a&1&&(bg(g9c),M(0,"span",0),K(1,"span",1)(2,"span",2),F(3,TMa,2,0,"span",3),K(4,"span",4),cg(5),
M(6,"span",5),L()()(),F(7,UMa,2,0,"span",6));a&2&&(B(3),G(b.leadingIcon?3:-1),B(4),G(b._hasTrailingIcon()?7:-1))},dependencies:[VK],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}\n'],
encapsulation:2,changeDetection:0});var YK=function(){this._elementRef=p(Hd);this._changeDetectorRef=p(Cx);this._dir=p(bi,{optional:!0});this._lastDestroyedFocusedChipIndex=null;this._destroyed=new qf;this._defaultRole="presentation";this._disabled=!1;this.tabIndex=0;this._explicitRole=null;this._chipActions=new gg};h=YK.prototype;h.ngAfterViewInit=function(){this._setUpFocusManagement();this._trackChipSetChanges();this._trackDestroyedFocusedChip()};
h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._chipActions.destroy();this._destroyed.next();this._destroyed.complete()};h._hasFocusedChip=function(){return this._chips&&this._chips.some(function(a){return a._hasFocus()})};h._syncChipsState=function(){var a=this,b;(b=this._chips)==null||b.forEach(function(c){c._chipListDisabled=a._disabled;c._changeDetectorRef.markForCheck()})};h.focus=function(){};h._handleKeydown=function(a){if(this._originatesFromChip(a))this._keyManager.onKeydown(a)};
h._isValidIndex=function(a){return a>=0&&a<this._chips.length};h._allowFocusEscape=function(){var a=this,b=this._elementRef.nativeElement.tabIndex;b!==-1&&(this._elementRef.nativeElement.tabIndex=-1,setTimeout(function(){return a._elementRef.nativeElement.tabIndex=b}))};h._getChipStream=function(a){var b=this;return this._chips.changes.pipe(xf(null),yf(function(){return te.apply(null,q(b._chips.map(a)))}))};
h._originatesFromChip=function(a){for(a=a.target;a&&a!==this._elementRef.nativeElement;){if(a.classList.contains("mat-mdc-chip"))return!0;a=a.parentElement}return!1};
h._setUpFocusManagement=function(){var a=this;this._chips.changes.pipe(xf(this._chips)).subscribe(function(c){var d=[];c.forEach(function(e){return e._getActions().forEach(function(f){return d.push(f)})});a._chipActions.reset(d);kg(a._chipActions)});this._keyManager=pz(oz(nz(new sz(this._chipActions)),this._dir?this._dir.value:"ltr")).skipPredicate(function(c){return a._skipPredicate(c)});this.chipFocusChanges.pipe(zf(this._destroyed)).subscribe(function(c){(c=c.chip._getSourceAction(document.activeElement))&&
qz(a._keyManager,c)});var b;(b=this._dir)==null||b.change.pipe(zf(this._destroyed)).subscribe(function(c){return oz(a._keyManager,c)})};h._skipPredicate=function(a){return a.disabled};h._trackChipSetChanges=function(){var a=this;this._chips.changes.pipe(xf(null),zf(this._destroyed)).subscribe(function(){a.disabled&&Promise.resolve().then(function(){return a._syncChipsState()});a._redirectDestroyedChipFocus()})};
h._trackDestroyedFocusedChip=function(){var a=this;this.chipDestroyedChanges.pipe(zf(this._destroyed)).subscribe(function(b){var c=a._chips.toArray().indexOf(b.chip),d=b.chip._hasFocus();b=b.chip._hadFocusOnRemove&&a._keyManager.activeItem&&b.chip._getActions().includes(a._keyManager.activeItem);d=d||b;a._isValidIndex(c)&&d&&(a._lastDestroyedFocusedChipIndex=c)})};
h._redirectDestroyedChipFocus=function(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){var a=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1);a=this._chips.toArray()[a];a.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():a.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}};
da.Object.defineProperties(YK.prototype,{chipFocusChanges:{configurable:!0,enumerable:!0,get:function(){return this._getChipStream(function(a){return a._onFocus})}},chipDestroyedChanges:{configurable:!0,enumerable:!0,get:function(){return this._getChipStream(function(a){return a.destroyed})}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=a;this._syncChipsState()}},empty:{configurable:!0,enumerable:!0,get:function(){return!this._chips||
this._chips.length===0}},role:{configurable:!0,enumerable:!0,get:function(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole},set:function(a){this._explicitRole=a}},focused:{configurable:!0,enumerable:!0,get:function(){return this._hasFocusedChip()}}});YK.\u0275fac=function(a){return new (a||YK)};
YK.\u0275cmp=D({type:YK,selectors:[["mat-chip-set"]],contentQueries:function(a,b,c){a&1&&ig(c,XK,5);if(a&2){var d;lg(d=mg())&&(b._chips=d)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(a,b){a&1&&N("keydown",function(c){return b._handleKeydown(c)});a&2&&If("role",b.role)},inputs:{disabled:[2,"disabled","disabled",$g],role:"role",tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ah(a)}]},ngContentSelectors:["*"],decls:2,vars:0,consts:[["role",
"presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&1&&(bg(),Qf(0,"div",0),cg(1),Rf())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder{opacity:1}.mat-mdc-chip-set+input.mat-mdc-chip-input{margin-left:0;margin-right:0}\n"],
encapsulation:2,changeDetection:0});var ZK=function(){};ZK.\u0275fac=function(a){return new (a||ZK)};ZK.\u0275dir=af({type:ZK,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:["role","img",1,"mat-mdc-chip-avatar","mdc-evolution-chip__icon","mdc-evolution-chip__icon--primary"],features:[Gg([{provide:b9c,useExisting:ZK}])]});var $K=function(){VK.apply(this,arguments);this._isPrimary=!1};Y($K,VK);$K.\u0275fac=function(){var a;return function(b){return(a||(a=Fd($K)))(b||$K)}}();
$K.\u0275dir=af({type:$K,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:["aria-hidden","true",1,"mat-mdc-chip-trailing-icon","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],features:[Gg([{provide:c9c,useExisting:$K}]),Ef]});var h9c=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],aL=function(){XK.apply(this,arguments);this._defaultOptions=p(a9c,{optional:!0});this.chipListSelectable=!0;this._chipListMultiple=!1;var a,b;this._chipListHideSingleSelectionIndicator=(b=(a=this._defaultOptions)==null?void 0:a.hideSingleSelectionIndicator)!=null?b:!1;this._selectable=!0;this._selected=!1;this.basicChipAttrName="mat-basic-chip-option";this.selectionChange=
new Ti};Y(aL,XK);h=aL.prototype;h.ngOnInit=function(){XK.prototype.ngOnInit.call(this);this.role="presentation"};h.select=function(){this._setSelectedState(!0,!1,!0)};h.deselect=function(){this._setSelectedState(!1,!1,!0)};h._handlePrimaryActionInteraction=function(){this.disabled||(this.focus(),this.selectable&&this._setSelectedState(!this.selected,!0,!0))};h._hasLeadingGraphic=function(){return this.leadingIcon?!0:!this._chipListHideSingleSelectionIndicator||this._chipListMultiple};
h._setSelectedState=function(a,b,c){a!==this.selected&&(this._selected=a,c&&this.selectionChange.emit({source:this,isUserInput:b,selected:this.selected}),this._changeDetectorRef.markForCheck())};
da.Object.defineProperties(aL.prototype,{selectable:{configurable:!0,enumerable:!0,get:function(){return this._selectable&&this.chipListSelectable},set:function(a){this._selectable=a;this._changeDetectorRef.markForCheck()}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._setSelectedState(a,!1,!0)}},ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.selectable?this.selected.toString():null}}});
aL.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(aL)))(b||aL)}}();
aL.\u0275cmp=D({type:aL,selectors:[["mat-basic-chip-option"],["","mat-basic-chip-option",""],["mat-chip-option"],["","mat-chip-option",""]],hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-option"],hostVars:37,hostBindings:function(a,b){a&2&&(Pf("id",b.id),If("tabindex",null)("aria-label",null)("aria-description",null)("role",b.role),wg("mdc-evolution-chip",!b._isBasicChip)("mdc-evolution-chip--filter",!b._isBasicChip)("mdc-evolution-chip--selectable",!b._isBasicChip)("mat-mdc-chip-selected",b.selected)("mat-mdc-chip-multiple",
b._chipListMultiple)("mat-mdc-chip-disabled",b.disabled)("mat-mdc-chip-with-avatar",b.leadingIcon)("mdc-evolution-chip--disabled",b.disabled)("mdc-evolution-chip--selected",b.selected)("mdc-evolution-chip--selecting",!b._animationsDisabled)("mdc-evolution-chip--with-trailing-action",b._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",b.leadingIcon)("mdc-evolution-chip--with-primary-graphic",b._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",b.leadingIcon)("mat-mdc-chip-highlighted",
b.highlighted)("mat-mdc-chip-with-trailing-icon",b._hasTrailingIcon()))},inputs:{selectable:[2,"selectable","selectable",$g],selected:[2,"selected","selected",$g]},outputs:{selectionChange:"selectionChange"},features:[Gg([{provide:XK,useExisting:aL},{provide:f9c,useExisting:aL}]),Ef],ngContentSelectors:["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],decls:8,vars:6,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],
["matChipAction","","role","option",3,"_allowFocusWhenDisabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"mdc-evolution-chip__checkmark"],["viewBox","-2 -3 30 30","focusable","false","aria-hidden","true",1,"mdc-evolution-chip__checkmark-svg"],["fill","none","stroke","currentColor","d",
"M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-evolution-chip__checkmark-path"]],template:function(a,b){a&1&&(bg(h9c),M(0,"span",0),K(1,"span",1)(2,"button",2),F(3,VMa,5,0,"span",3),K(4,"span",4),cg(5),M(6,"span",5),L()()(),F(7,WMa,2,0,"span",6));a&2&&(B(2),I("_allowFocusWhenDisabled",!0),If("aria-description",b.ariaDescription)("aria-label",b.ariaLabel)("aria-selected",b.ariaSelected),B(),G(b._hasLeadingGraphic()?3:-1),B(4),G(b._hasTrailingIcon()?7:-1))},dependencies:[WK],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}\n'],
encapsulation:2,changeDetection:0});var i9c=function(a,b){this.source=a;this.value=b},j9c={provide:aE,useExisting:Vc(function(){return bL}),multi:!0},bL=function(){YK.apply(this,arguments);this._onTouched=function(){};this._onChange=function(){};this._defaultRole="listbox";this._defaultOptions=p(a9c,{optional:!0});this._multiple=!1;this.ariaOrientation="horizontal";this._selectable=!0;this.compareWith=function(c,d){return c===d};this.required=!1;var a,b;this._hideSingleSelectionIndicator=(b=(a=this._defaultOptions)==null?void 0:a.hideSingleSelectionIndicator)!=
null?b:!1;this.change=new Ti;this._chips=void 0};Y(bL,YK);h=bL.prototype;
h.ngAfterContentInit=function(){var a=this;this._chips.changes.pipe(xf(null),zf(this._destroyed)).subscribe(function(){a.value!==void 0&&Promise.resolve().then(function(){a._setSelectionByValue(a.value,!1)});a._syncListboxProperties()});this.chipBlurChanges.pipe(zf(this._destroyed)).subscribe(function(){return a._blur()});this.chipSelectionChanges.pipe(zf(this._destroyed)).subscribe(function(b){a.multiple||a._chips.forEach(function(c){c!==b.source&&c._setSelectedState(!1,!1,!1)});b.isUserInput&&a._propagateChanges()})};
h.focus=function(){if(!this.disabled){var a=this._getFirstSelectedChip();a&&!a.disabled?a.focus():this._chips.length>0?this._keyManager._setActiveItemByIndex(0,1):this._elementRef.nativeElement.focus()}};h.writeValue=function(a){a!=null?this.value=a:this.value=void 0};h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this.disabled=a};
h._setSelectionByValue=function(a,b){var c=this;b=b===void 0?!0:b;this._clearSelection();Array.isArray(a)?a.forEach(function(d){return c._selectValue(d,b)}):this._selectValue(a,b)};h._blur=function(){var a=this;this.disabled||setTimeout(function(){a.focused||a._markAsTouched()})};h._keydown=function(a){a.keyCode===9&&YK.prototype._allowFocusEscape.call(this)};h._markAsTouched=function(){this._onTouched();this._changeDetectorRef.markForCheck()};
h._propagateChanges=function(){var a=null;Array.isArray(this.selected)?a=this.selected.map(function(b){return b.value}):a=this.selected?this.selected.value:void 0;this._value=a;this.change.emit(new i9c(this,a));this._onChange(a);this._changeDetectorRef.markForCheck()};h._clearSelection=function(a){this._chips.forEach(function(b){b!==a&&b.deselect()})};
h._selectValue=function(a,b){var c=this,d=this._chips.find(function(e){return e.value!=null&&c.compareWith(e.value,a)});d&&(b?d._setSelectedState(!0,!0,!0):d.select());return d};h._syncListboxProperties=function(){var a=this;this._chips&&Promise.resolve().then(function(){a._chips.forEach(function(b){b._chipListMultiple=a.multiple;b.chipListSelectable=a._selectable;b._chipListHideSingleSelectionIndicator=a.hideSingleSelectionIndicator;b._changeDetectorRef.markForCheck()})})};
h._getFirstSelectedChip=function(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected};h._skipPredicate=function(){return!1};
da.Object.defineProperties(bL.prototype,{multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){this._multiple=a;this._syncListboxProperties()}},selected:{configurable:!0,enumerable:!0,get:function(){var a=this._chips.toArray().filter(function(b){return b.selected});return this.multiple?a:a[0]}},selectable:{configurable:!0,enumerable:!0,get:function(){return this._selectable},set:function(a){this._selectable=a;this._syncListboxProperties()}},hideSingleSelectionIndicator:{configurable:!0,
enumerable:!0,get:function(){return this._hideSingleSelectionIndicator},set:function(a){this._hideSingleSelectionIndicator=a;this._syncListboxProperties()}},chipSelectionChanges:{configurable:!0,enumerable:!0,get:function(){return this._getChipStream(function(a){return a.selectionChange})}},chipBlurChanges:{configurable:!0,enumerable:!0,get:function(){return this._getChipStream(function(a){return a._onBlur})}},value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._chips&&
this._chips.length&&this._setSelectionByValue(a,!1);this._value=a}}});bL.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(bL)))(b||bL)}}();
bL.\u0275cmp=D({type:bL,selectors:[["mat-chip-listbox"]],contentQueries:function(a,b,c){a&1&&ig(c,aL,5);if(a&2){var d;lg(d=mg())&&(b._chips=d)}},hostAttrs:[1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:10,hostBindings:function(a,b){a&1&&N("focus",function(){return b.focus()})("blur",function(){return b._blur()})("keydown",function(c){return b._keydown(c)});a&2&&(Pf("tabIndex",b.disabled||b.empty?-1:b.tabIndex),If("role",b.role)("aria-required",b.role?b.required:null)("aria-disabled",
b.disabled.toString())("aria-multiselectable",b.multiple)("aria-orientation",b.ariaOrientation),wg("mat-mdc-chip-list-disabled",b.disabled)("mat-mdc-chip-list-required",b.required))},inputs:{multiple:[2,"multiple","multiple",$g],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",$g],compareWith:"compareWith",required:[2,"required","required",$g],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",$g],value:"value"},
outputs:{change:"change"},features:[Gg([j9c]),Ef],ngContentSelectors:["*"],decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&1&&(bg(),Qf(0,"div",0),cg(1),Rf())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder{opacity:1}.mat-mdc-chip-set+input.mat-mdc-chip-input{margin-left:0;margin-right:0}\n"],
encapsulation:2,changeDetection:0});var cL=function(){};cL.\u0275fac=function(a){return new (a||cL)};cL.\u0275mod=$e({type:cL});cL.\u0275inj=Fc({providers:[bA,{provide:a9c,useValue:{separatorKeyCodes:[13]}}],imports:[iA,Ky]});var dL=function(){};dL.\u0275fac=function(a){return new (a||dL)};dL.\u0275mod=$e({type:dL});dL.\u0275inj=Fc({imports:[cL]});var bNa=function(a){return{configuration:a}},iNa=function(a,b){return b.agentId},k9c=new dd("OnboardingTemplate"),eL=function(a,b,c,d){var e=this;this.userStateService=a;this.conversationAgentsService=b;this.overridesService=c;this.threadService=d;this.experimentsService=p(qA);this.communicationService=p(iC);this.configurationKey=Og.apply(null,q([]));this.pageId=Og.apply(null,q([]));this.dynamicDuckieMModelId=Cw.modelId;this.duckieBigBird=Aw.agentId;this.agentSelectorEnabled=!1;this.sVsMGooseModelEnabled=
this.experimentsService.sVsMGooseModelEnabled;this.exampleQuery="";this.duckieBigBirdStrikeEnabled=this.experimentsService.duckieBigBirdStrikeEnabled;this.clientConfiguration=Zg.apply(null,[function(){var f=PMa(e.configurationKey()||""),g=e.pageId()||"";f&&e.communicationService.setParentIntegrator(!0);var k,l;if((k=f)==null?0:(l=k.onboardingExamplesPerPageMap)==null?0:l.has(g))f=Object.assign({},f,{onboardingExamples:f.onboardingExamplesPerPageMap.get(g)});return f}].concat(q([])));this.showOnboardingExamples=
Zg.apply(null,[function(){var f;return((f=e.clientConfiguration())==null?void 0:f.onboardingExamples)!==void 0||!e.experimentsService.sVsMGooseModelEnabled&&!e.experimentsService.experimentalDuckieAgentEnabled}].concat(q([])));this.routingService=p(BA);this.userStateLoaded$=this.userStateService.userStateLoaded$;this.showIncognitoBanner$=this.userStateService.isEnforcedPrivateMode$;this.showGeneralAnnouncementBanner$=new Mj(!1);this.agentSelectorEnabled=this.conversationAgentsService.duckieConversationAgentEnabled;
this.availableConversationAgents$=this.conversationAgentsService.availableConversationAgents$;this.currentConversationAgent$=this.conversationAgentsService.currentConversationAgent$};eL.prototype.ngOnInit=function(){var a=this;return y(function(b){if(b.nextAddress==1)return l9c(a),z(b,m9c(a),2);n9c(a);return z(b,o9c(a),0)})};
var l9c=function(a){a.routingService.queryParams.pipe(lf(1)).subscribe(function(b){var c=b.agenticSearch;b=b.bigBird;b=b!==void 0&&b!=="false";var d=[];c!==void 0&&c!=="false"&&d.push(Bw.agentDisplayName);b&&d.push(Aw.agentDisplayName);d.length>0&&kNa(a,{value:d})})},m9c=function(a){var b,c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,rIc(a.userStateService),2);c=(b=g.yieldResult)!=null?b:[];a.duckieBigBirdStrikeEnabled&&((d=c)==null?0:d.includes(1))&&(c=c.filter(function(k){return k!==
1}));e=c.includes(1);f=c.includes(2);e&&f?a.conversationAgentsService.currentConversationAgentInternal.next(Cw):c.length===1&&e?a.conversationAgentsService.currentConversationAgentInternal.next(Aw):c.length===1&&f&&a.conversationAgentsService.currentConversationAgentInternal.next(Bw);ae(g)})},kNa=function(a,b){b=Array.isArray(b.value)&&b.value.length!==0?b.value.length===1?b.value[0]===Bw.agentDisplayName?Bw:Aw:Cw:swc;var c=a.getDuckieModelPreferences(b);a.conversationAgentsService.currentConversationAgentInternal.next(b);
sIc(a.userStateService,c)};eL.prototype.getDuckieModelPreferences=function(a){switch(a){case Bw:return[2];case Aw:return[1];case Cw:return[1,2];default:return[0]}};
var n9c=function(a){a.routingService.queryParams.pipe(lf(1)).subscribe(function(b){var c=b.conversationAgentId;c&&(b=vwc.find(function(d){return d.agentId===c}))&&a.conversationAgentsService.currentConversationAgentInternal.next(b)})},o9c=function(a){var b;return y(function(c){return(b=a.routingService.snapshot.queryParams.q)?z(c,a.addMessage(b),0):c.return()})};
eL.prototype.addMessage=function(a){var b=this,c,d,e,f,g;return y(function(k){return k.nextAddress==1?(d=(c=b.routingService.snapshot.queryParams.preamble)!=null?c:void 0,f=(e=b.routingService.snapshot.queryParams.parentUrl)!=null?e:void 0,d&&b.overridesService.addPreamble(d),f&&(b.overridesService.overrideParentUrl=f),g={},z(k,oMa(b.routingService,"",{queryParams:(g.q=null,g.preamble=null,g.parentUrl=null,g),queryParamsHandling:"merge"}),2)):z(k,yOc(b.threadService,a),0)})};
eL.prototype.setExampleQuery=function(a){this.exampleQuery=a};eL.\u0275fac=function(a){return new (a||eL)(Ve(mC),Ve(jC),Ve(AA),Ve(FD))};
eL.\u0275cmp=D({type:eL,selectors:[["onboarding"]],hostAttrs:[1,"flex-column","full-height"],inputs:{configurationKey:[1,"configurationKey"],pageId:[1,"pageId"]},decls:14,vars:11,consts:[["customOnboarding",""],["customOnboardingClientLogo",""],["dynamicRagHovercard",""],["mppHovercard",""],[1,"onboarding-section"],[1,"margin-s-top",3,"submitMessage","inputText"],[1,"onboarding-header","margin-y","gmat-headline-1"],[3,"exampleQuery","clientConfiguration"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],
[1,"agent-selector","flex-column","align-items-center"],["id","agent-selector-description",1,"agent-selector-description"],[1,"agent-chips-wrapper","flex-row","align-items-center"],["multiple","","aria-labelledby","agent-selector-description",1,"agent-selector-chips",3,"change"],[1,"onedev-hovercard-content","padded-s","rounded-full","font-google-sans","type-xs"],[1,"onedev-hovercard-body"],[1,"type-s","margin-xs-top"],[1,"margin-xs-bottom"],[1,"medium","type-xs","margin-s-top","margin-xs-bottom"],
[1,"flex-spacer"],["appearance","input",3,"onedevHovercardTrigger","disabled","selected","class"],["appearance","input",3,"onedevHovercardTrigger","disabled","selected"],["matChipAvatar","",1,"agent-selector-chip-icon"],[1,"custom-onboarding","flex-column","align-items-center","gap-xs","margin-bottom","margin-auto-x","justify-content-center","text-center"],[1,"client-name","gmat-headline-5"],[1,"client-description","gmat-body-3","text-secondary"],[1,"client-logo"],["alt","Client logo","height","44",
"width","44",3,"src"]],template:function(a,b){if(a&1){var c=t();K(0,"div",4);F(1,XMa,1,0,"incognito-banner-wrapper");T(2,"async");T(3,"async");F(4,YMa,1,0,"general-announcement-wrapper");T(5,"async");F(6,$Ma,2,1)(7,fNa,5,3);L();F(8,lNa,31,3);K(9,"message-input-wrapper",5);N("submitMessage",function(d){u(c);return v(b.addMessage(d))});L();E(10,pNa,5,3,"ng-template",null,0,Mg)(12,qNa,2,1,"ng-template",null,1,Mg)}a&2&&(B(),G(U(2,5,b.userStateLoaded$)&&U(3,7,b.showIncognitoBanner$)?1:-1),B(3),G(U(5,9,
b.showGeneralAnnouncementBanner$)?4:-1),B(2),G(b.showOnboardingExamples()?7:6),B(2),G(b.communicationService.hasParentIntegratorValue||!b.agentSelectorEnabled&&!b.sVsMGooseModelEnabled?-1:8),B(),I("inputText",b.exampleQuery))},dependencies:[by,Sx,DK,dL,UK,ZK,bL,aL,wK,TK,KK,SK,FK,Ly,Jy,nF,HK,pF,BK,Tx],styles:[".onboarding-section[_ngcontent-%COMP%]{overflow-y:auto;border-radius:16px}@media (max-width:800px){.onboarding-section[_ngcontent-%COMP%]{padding-top:0}}.custom-onboarding[_ngcontent-%COMP%]{margin-top:8vh;width:80%}.custom-onboarding[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{width:5%}@media (max-width:800px){.gmat-mdc-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix){padding:0 16px}.onboarding-header[_ngcontent-%COMP%]{font-size:calc(var(--base-px, 1rem)*23)}}.onboarding-section[_ngcontent-%COMP%], message-input[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}.agent-selector[_ngcontent-%COMP%]{container-type:inline-size;padding-top:48px}.agent-selector[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0}.agent-selector[_ngcontent-%COMP%]   .agent-selector-chip-icon[_ngcontent-%COMP%]{color:var(--primary-default)}.agent-selector[_ngcontent-%COMP%]   .agent-selector-description[_ngcontent-%COMP%]{max-width:65cqw;margin:1em 0;font-size:.85em;text-align:center}.agent-selector[_ngcontent-%COMP%]   .agent-selector-description[_ngcontent-%COMP%]   a[_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;white-space:nowrap}  .onedev-hovercard{background-color:var(--page-bg);border-radius:16px}.client-name[_ngcontent-%COMP%]{margin:0}"],
changeDetection:0});var p9c=["customOnboarding"],fL=function(){this.configurationKey=Og.apply(null,q([]));this.pageId=Og.apply(null,q([]));this.onboardingTemplate=p(k9c,{optional:!0});this.customOnboarding=Pg.apply(null,["customOnboarding"].concat(q([{read:eg}])))};
fL.prototype.ngAfterViewInit=function(){this.onboardingTemplate&&this.customOnboarding()&&(this.componentRef=this.customOnboarding().createComponent(this.onboardingTemplate),this.componentRef.instance.configurationKey=this.configurationKey,this.componentRef.instance.pageId=this.pageId)};fL.\u0275fac=function(a){return new (a||fL)};
fL.\u0275cmp=D({type:fL,selectors:[["onboarding-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customOnboarding,p9c,eg);a&2&&pg()},inputs:{configurationKey:[1,"configurationKey"],pageId:[1,"pageId"]},decls:4,vars:1,consts:[["customOnboarding",""],[1,"container","margin-auto-x"],[1,"onboarding","bg-surface-default","bordered","rounded","flex-column","justify-content-flex-end"],[3,"configurationKey","pageId"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2),F(2,rNa,2,0,"ng-container")(3,sNa,1,2,
"onboarding",3),L()());a&2&&(B(2),G(b.onboardingTemplate?2:3))},dependencies:[by,eL],styles:[".container[_ngcontent-%COMP%]{max-width:1240px;min-width:300px;height:calc(100% - var(--base-px, 1rem)*16)}@media (max-width:800px){.container[_ngcontent-%COMP%]{height:100%}}.onboarding[_ngcontent-%COMP%]{box-shadow:0 6px 10px 4px var(--elevation),0 2px 3px 0 var(--elevation);-moz-box-sizing:border-box;box-sizing:border-box;height:calc(100% - var(--base-px, 1rem)*16);margin:.75em;padding-bottom:12px;position:relative}@media (max-width:800px){.onboarding[_ngcontent-%COMP%]{box-shadow:none;border:none;border-radius:0;margin:0;height:100%}}\n/*# sourceMappingURL=onboarding_wrapper.css.map */"],
changeDetection:0});var gL=function(){};gL.\u0275fac=function(a){return new (a||gL)};gL.\u0275mod=$e({type:gL});gL.\u0275inj=Fc({imports:[eL,oF,EK,CK,GK,pF,FK,DK,HK,fL,AK,BK]});var hL=function(){dB.call(this);this.hoverDelayMs=500;this.activity=new qf;this.attachMouseEventListeners(this.elementRef.nativeElement)};Y(hL,dB);h=hL.prototype;h.ngOnInit=function(){dB.prototype.ngOnInit.call(this);this.listenForOpenEvents(this.hoverDelayMs)};
h.listenForOpenEvents=function(a){var b=this,c=this.openStatusChange.pipe(Xka(function(){return b.activity.pipe(jf(a))}));c.pipe(zf(this.destroyed)).subscribe(function(d){d?b.openDialog():b.closeDialog()});this.openings.pipe(ue(function(d){return d&&b.beforeOpened.observers.length>0}),Dla(function(){return c.pipe(ue(function(d){return!d}))}),zf(this.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})})};
h.attachMouseEventListeners=function(a){var b=this;this.stackManager&&this.stackManager.unregisterEvent().pipe(jf(this.hoverDelayMs),zf(this.destroyed)).subscribe(function(){a.matches(":hover")||b.viewContainerRef.element.nativeElement.matches(":hover")?b.openingDialog():b.closingDialog()});this.ngZone.runOutsideAngular(function(){pe(a,"mouseenter").pipe(zf(b.destroyed)).subscribe(function(){b.openingDialog()});pe(a,"click").pipe(zf(b.destroyed)).subscribe(function(c){c.target.closest("[xapInlineDialogClose]")?
b.closingDialog():(b.openingDialog(),b.openDialog())});pe(a,"mouseleave").pipe(zf(b.destroyed)).subscribe(function(){b.closingDialog()});pe(a,"mousemove").pipe(zf(b.destroyed)).subscribe(function(){b.activity.next()})})};h.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){pe(a,"keydown").pipe(zf(b.destroyed)).subscribe(function(c){switch(c.key){case "Escape":var d;((d=b.overlayRef)==null?0:d.hasAttached())&&c.stopPropagation();b.closeDialog()}})})};
h.openingDialog=function(){this.disabled||(this.openStatusChange.next(!0),this.activity.next())};h.closingDialog=function(){this.openStatusChange.next(!1);this.activity.next()};h.createOverlayConfig=function(a){return new di(Object.assign({},this.overlayDimensions,{positionStrategy:dB.prototype.createPositionStrategy.call(this,a),scrollStrategy:xFc(this),panelClass:this.panelClassInternal}))};hL.\u0275fac=function(a){return new (a||hL)};
hL.\u0275dir=af({type:hL,selectors:[["","xapInlineDialog",""]],hostAttrs:[1,"xap-inline-dialog"],inputs:{dialog:[0,"xapInlineDialog","dialog"],disabled:[0,"xapInlineDialogDisabled","disabled"],hoverDelayMs:"hoverDelayMs"},exportAs:["xapInlineDialog"],features:[Ef]});var q9c=["*"],r9c=function(){return".xap-icon-trigger,.xap-text-trigger{pointer-events:auto}.xap-text-trigger{-webkit-text-decoration-line:underline;-moz-text-decoration-line:underline;text-decoration-line:underline;-webkit-text-decoration-style:dashed;-moz-text-decoration-style:dashed;text-decoration-style:dashed;-webkit-text-decoration-color:var(--xap-color-outline,#80868b);-moz-text-decoration-color:var(--xap-color-outline,#80868b);text-decoration-color:var(--xap-color-outline,#80868b);text-underline-position:under;text-underline-offset:1px}"},
iL=function(){this.disabled=!1};iL.\u0275fac=function(a){return new (a||iL)};iL.\u0275cmp=D({type:iL,selectors:[["xap-text-trigger"]],hostAttrs:["role","button"],hostVars:4,hostBindings:function(a,b){a&2&&(If("tabindex",b.disabled?-1:0)("aria-disabled",b.disabled?!0:!1),wg("xap-text-trigger",!b.disabled))},inputs:{disabled:[0,"xapInlineDialogDisabled","disabled"]},ngContentSelectors:q9c,decls:1,vars:0,template:function(a){a&1&&(bg(),cg(0))},styles:[r9c()],encapsulation:2,changeDetection:0});
var jL=function(){this.disabled=!1};jL.\u0275fac=function(a){return new (a||jL)};jL.\u0275cmp=D({type:jL,selectors:[["xap-icon-trigger"]],hostAttrs:["role","button","tabindex","0",1,"xap-icon-trigger"],inputs:{disabled:[0,"xapInlineDialogDisabled","disabled"]},ngContentSelectors:q9c,decls:1,vars:0,template:function(a){a&1&&(bg(),cg(0))},styles:[r9c()],encapsulation:2,changeDetection:0});var s9c=function(){};s9c.\u0275fac=function(a){return new (a||s9c)};
s9c.\u0275cmp=D({type:s9c,selectors:[["private-content-divider-tooltip"]],decls:10,vars:3,consts:[["dividerTooltip",""],[1,"private-content-divider","flex-row","align-items-center","justify-content-center","margin-s-bottom","gap-s"],[1,"divider-line"],["tabindex","0","role","button","aria-label","Private content","dialogLabel","Private content tooltip",1,"flex-row","align-items-center","justify-content-center","padded-xs","gap-s",3,"xapInlineDialog","hoverDelayMs","dialogTabIndex"],[1,"divider-text"],
[1,"private-content-icon","padded-xxs","icon-s","rounded-full"],[1,"tooltip-container","gap","padded","bg-surface-container","flex-column"]],template:function(a){a&1&&(K(0,"div",1),M(1,"span",2),K(2,"div",3)(3,"span",4),Q(4,"History is off "),L(),K(5,"mat-icon",5),Q(6,"privacy_tip"),L()(),M(7,"span",2),L(),E(8,tNa,2,0,"ng-template",null,0,Mg));a&2&&(a=qg(9),B(2),I("xapInlineDialog",a)("hoverDelayMs",100)("dialogTabIndex",0))},dependencies:[by,Ly,Jy,mB,hL],styles:["[_nghost-%COMP%]   .private-content-divider[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-top:-8px}[_nghost-%COMP%]   .private-content-divider[_ngcontent-%COMP%]   .divider-line[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;height:1px;background:var(--tonal-icon-grey)}[_nghost-%COMP%]   .private-content-divider[_ngcontent-%COMP%]   .divider-text[_ngcontent-%COMP%]{font-size:calc(var(--base-px, 1rem)*13)}[_nghost-%COMP%]   .private-content-divider[_ngcontent-%COMP%]   .private-content-icon[_ngcontent-%COMP%]{color:var(--tonal-green);background:var(--tonal-fill-green)}"],
changeDetection:0});var t9c=new dd("GM2_CHECKBOX_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var kL=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};kL.\u0275fac=function(a){return new (a||kL)(Ve(t9c))};kL.\u0275dir=af({type:kL,selectors:[["mat-checkbox"]],hostAttrs:[1,"gmat-mdc-checkbox"],standalone:!1});var lL=function(){};lL.\u0275fac=function(a){return new (a||lL)};lL.\u0275mod=$e({type:lL});lL.\u0275inj=Fc({providers:[{provide:B0c,useValue:{color:"primary"}}],imports:[iI]});var mL=function(){this.dialogRef=p(RA);this.userStateService=p(mC);this.threadService=p(FD);this.allowPersonalResults$=this.userStateService.allowPersonalResults$.pipe(ue(Rd));this.initialAllowPersonalResults=this.userStateService.allowPersonalResults$.getValue();this.userAllowedPersonalResults=this.userStateService.allowPersonalResults$.getValue()};mL.\u0275fac=function(a){return new (a||mL)};
mL.\u0275cmp=D({type:mL,selectors:[["user-privacy-settings-dialog"]],decls:25,vars:3,consts:[[1,"bg-surface-container","gap","padded-xs"],["mat-dialog-title",""],[1,"settings-message-content"],["href","http://go/duckie-access-protected-results","target","_blank"],[1,"flex-row","justify-content-center"],[1,"flex-row","align-items-center","gap",3,"change","checked"],["fontSet","google-symbols"],["align","end"],[1,"flex-row","gap-s"],"mat-button  color primary mat-dialog-close ".split(" "),["mat-button",
"","color","primary",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"h1",1),Q(2,"Settings"),L(),K(3,"mat-dialog-content")(4,"div",2),Q(5," Protected results increase the relevance of Duckie\u2019s answers to your questions. Protected results\u2014except for URLs\u2014 won\u2019t be logged or used for retraining. "),M(6,"br")(7,"br"),Q(8," To opt-out, uncheck the box. "),K(9,"a",3),Q(10," Learn more."),L()(),M(11,"br")(12,"br"),K(13,"div",4)(14,"mat-checkbox",5),T(15,"async"),N("change",function(c){return b.userAllowedPersonalResults=
c.checked}),K(16,"mat-icon",6),Q(17,"shield_person"),L(),Q(18," Use protected results "),L()()(),K(19,"mat-dialog-actions",7)(20,"div",8)(21,"button",9),Q(22,"Cancel"),L(),K(23,"button",10),N("click",function(){b.userAllowedPersonalResults!==b.initialAllowPersonalResults&&(pIc(b.userStateService,b.userAllowedPersonalResults),b.threadService.startNewThread());b.dialogRef.close()}),Q(24,"Done"),L()()()());a&2&&(B(14),I("checked",U(15,1,b.allowPersonalResults$)))},dependencies:[by,mB,kB,gB,lL,kL,hI,
TJ,VA,XA,ZA,YA,wK,Ly,Jy,Tx],styles:["[_nghost-%COMP%]{font-family:Google Sans,sans-serif;background-color:var(--tonal-fill-blue)}"],changeDetection:0});var u9c={maxWidth:300,disableClose:!0};var nL=function(a){this.dialog=a};nL.prototype.openUserPrivacySettingsDialog=function(){this.dialog.open(mL,u9c)};nL.\u0275fac=function(a){return new (a||nL)(Ve(UA))};
nL.\u0275cmp=D({type:nL,selectors:[["private-content-tooltip"]],decls:5,vars:3,consts:[["privateContentTooltip",""],["tabindex","0","role","button","aria-label","Private content","dialogLabel","Private content tooltip",1,"private-content-indicator","flex-row","align-items-center","justify-content-center","padded-xs","rounded-full",3,"xapInlineDialog","hoverDelayMs","dialogTabIndex"],[1,"private-content-icon","icon-m"],[1,"tooltip-container","gap","padded","bg-surface-container","flex-column"],[1,
"tooltip-actions","flex-row","gap-s"],["mat-button","","color","primary",3,"click"]],template:function(a){a&1&&(K(0,"div",1)(1,"mat-icon",2),Q(2,"privacy_tip"),L()(),E(3,uNa,6,0,"ng-template",null,0,Mg));a&2&&(a=qg(4),I("xapInlineDialog",a)("hoverDelayMs",100)("dialogTabIndex",0))},dependencies:[by,Ly,Jy,mB,kB,gB,hL],styles:['[_nghost-%COMP%]   .tooltip-container[_ngcontent-%COMP%]{max-width:300px}[_nghost-%COMP%]   .tooltip-container[_ngcontent-%COMP%]   .tooltip-actions[_ngcontent-%COMP%]{margin-left:-8px}[_nghost-%COMP%]   .private-content-indicator[_ngcontent-%COMP%]{background:var(--tonal-fill-green);margin:0 8px}[_nghost-%COMP%]   .private-content-indicator[_ngcontent-%COMP%]:before{content:"";display:block;position:absolute;width:48px;height:48px;border-radius:50%}[_nghost-%COMP%]   .private-content-indicator[_ngcontent-%COMP%]   .private-content-icon[_ngcontent-%COMP%]{color:var(--tonal-green)}'],
changeDetection:0});var v9c=new dd("GM2_TABS_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1,appearance:"primary"}}});var w9c=function(a){this._items=a};w9c.prototype.hide=function(){this._items.forEach(function(a){return x9c(a)});this._currentItem=void 0};
var z9c=function(a,b){var c=a._items.find(function(g){return g.elementRef.nativeElement===b}),d=a._currentItem;if(c!==d&&(d==null||x9c(d),c)){var e,f;d=d==null?void 0:(f=(e=d.elementRef.nativeElement).getBoundingClientRect)==null?void 0:f.call(e);y9c(c,d);a._currentItem=c}},oL=function(){this._elementRef=p(Hd);this._fitToContent=!1},y9c=function(a,b){var c=a._elementRef.nativeElement;if(b&&c.getBoundingClientRect&&a._inkBarContentElement){var d=c.getBoundingClientRect(),e=b.width/d.width;b=b.left-
d.left;c.classList.add("mdc-tab-indicator--no-transition");a._inkBarContentElement.style.setProperty("transform","translateX("+b+"px) scaleX("+e+")");c.getBoundingClientRect();c.classList.remove("mdc-tab-indicator--no-transition");c.classList.add("mdc-tab-indicator--active");a._inkBarContentElement.style.setProperty("transform","")}else c.classList.add("mdc-tab-indicator--active")},x9c=function(a){a._elementRef.nativeElement.classList.remove("mdc-tab-indicator--active")};oL.prototype.ngOnInit=function(){this._createInkBarElement()};
oL.prototype.ngOnDestroy=function(){var a;(a=this._inkBarElement)==null||a.remove();this._inkBarElement=this._inkBarContentElement=null};oL.prototype._createInkBarElement=function(){var a=this._elementRef.nativeElement.ownerDocument||document,b=this._inkBarElement=a.createElement("span");a=this._inkBarContentElement=a.createElement("span");b.className="mdc-tab-indicator";a.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline";b.appendChild(this._inkBarContentElement);this._appendInkBarElement()};
oL.prototype._appendInkBarElement=function(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)};da.Object.defineProperties(oL.prototype,{fitInkBarToContent:{configurable:!0,enumerable:!0,get:function(){return this._fitToContent},set:function(a){this._fitToContent!==a&&(this._fitToContent=a,this._inkBarElement&&this._appendInkBarElement())}}});oL.\u0275fac=function(a){return new (a||oL)};
oL.\u0275dir=af({type:oL,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",$g]}});new dd("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(a){return{left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"}}}});var A9c={passive:!0},pL=function(){var a=this;this._elementRef=p(Hd);this._changeDetectorRef=p(Cx);this._viewportRuler=p(Qh);this._dir=p(bi,{optional:!0});this._ngZone=p(Rg);this._platform=p(Vh);this._sharedResizeObserver=p(OD);this._injector=p(ye);this._renderer=p(ci);this._animationsDisabled=mi();this._scrollDistance=0;this._selectedIndexChanged=!1;this._destroyed=new qf;this._showPaginationControls=!1;this._disableScrollBefore=this._disableScrollAfter=!0;this._stopScrolling=new qf;this.disablePagination=
!1;this._selectedIndex=0;this.selectFocusedIndex=new Ti;this.indexFocused=new Ti;this._eventCleanups=this._ngZone.runOutsideAngular(function(){return[a._renderer.listen(a._elementRef.nativeElement,"mouseleave",function(){return a._stopInterval()})]})};h=pL.prototype;
h.ngAfterViewInit=function(){var a=this;this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",function(){return a._handlePaginatorPress("before")},A9c),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",function(){return a._handlePaginatorPress("after")},A9c))};
h.ngAfterContentInit=function(){var a=this,b=this._dir?this._dir.change:ce("ltr"),c=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(jf(32),zf(this._destroyed)),d=this._viewportRuler.change(150).pipe(zf(this._destroyed)),e=function(){a.updatePagination();a._alignInkBarToSelectedTab()};this._keyManager=mz(pz(oz(new sz(this._items),this._getLayoutDirection()))).skipPredicate(function(){return!1});qz(this._keyManager,Math.max(this._selectedIndex,0));Ee(e,{injector:this._injector});
te(b,d,c,this._items.changes,this._itemsResized()).pipe(zf(this._destroyed)).subscribe(function(){a._ngZone.run(function(){Promise.resolve().then(function(){a._scrollDistance=Math.max(0,Math.min(a._getMaxScrollDistance(),a._scrollDistance));e()})});var f;(f=a._keyManager)==null||oz(f,a._getLayoutDirection())});this._keyManager.change.subscribe(function(f){a.indexFocused.emit(f);a._setTabFocus(f)})};
h._itemsResized=function(){var a=this;return typeof ResizeObserver!=="function"?se:this._items.changes.pipe(xf(this._items),yf(function(b){return new Td(function(c){return a._ngZone.runOutsideAngular(function(){var d=new ResizeObserver(function(e){return c.next(e)});b.forEach(function(e){return d.observe(e.elementRef.nativeElement)});return function(){d.disconnect()}})})}),wf(1),ue(function(b){return b.some(function(c){return c.contentRect.width>0&&c.contentRect.height>0})}))};
h.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())};
h.ngOnDestroy=function(){this._eventCleanups.forEach(function(b){return b()});var a;(a=this._keyManager)==null||a.destroy();this._destroyed.next();this._destroyed.complete();this._stopScrolling.complete()};h._handleKeydown=function(a){if(!Gh(a))switch(a.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){var b=this._items.get(this.focusIndex);b&&!b.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(a))}break;default:(b=this._keyManager)==null||b.onKeydown(a)}};
h._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()}))};h.updatePagination=function(){this._checkPaginationEnabled();this._checkScrollingControls();this._updateTabScrollPosition()};h._isValidIndex=function(a){return this._items?!!this._items.toArray()[a]:!0};
h._setTabFocus=function(a){this._showPaginationControls&&this._scrollToLabel(a);this._items&&this._items.length&&(this._items.toArray()[a].focus(),a=this._tabListContainer.nativeElement,a.scrollLeft=this._getLayoutDirection()=="ltr"?0:a.scrollWidth-a.offsetWidth)};h._getLayoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};
h._updateTabScrollPosition=function(){if(!this.disablePagination){var a=this.scrollDistance;this._tabList.nativeElement.style.transform="translateX("+Math.round(this._getLayoutDirection()==="ltr"?-a:a)+"px)";if(this._platform.TRIDENT||this._platform.EDGE)this._tabListContainer.nativeElement.scrollLeft=0}};h._scrollHeader=function(a){return this._scrollTo(this._scrollDistance+(a=="before"?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)};
h._handlePaginatorClick=function(a){this._stopInterval();this._scrollHeader(a)};
h._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;this._getLayoutDirection()=="ltr"?c=b+d:(c=this._tabListInner.nativeElement.offsetWidth-b,b=c-d);d=this.scrollDistance;a=this.scrollDistance+a;b<d?this.scrollDistance-=d-b:c>a&&(this.scrollDistance+=Math.min(c-a,b-d))}}};
h._checkPaginationEnabled=function(){if(this.disablePagination)this._showPaginationControls=!1;else{var a=this._tabListInner.nativeElement.scrollWidth-this._elementRef.nativeElement.offsetWidth>=5;a||(this.scrollDistance=0);a!==this._showPaginationControls&&(this._showPaginationControls=a,this._changeDetectorRef.markForCheck())}};
h._checkScrollingControls=function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())};h._getMaxScrollDistance=function(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0};
h._alignInkBarToSelectedTab=function(){var a=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null;(a=a?a.elementRef.nativeElement:null)?z9c(this._inkBar,a):this._inkBar.hide()};h._stopInterval=function(){this._stopScrolling.next()};
h._handlePaginatorPress=function(a,b){var c=this;b&&b.button!=null&&b.button!==0||(this._stopInterval(),re(650,100).pipe(zf(te(this._stopScrolling,this._destroyed))).subscribe(function(){var d=c._scrollHeader(a),e=d.maxScrollDistance;d=d.distance;(d===0||d>=e)&&c._stopInterval()}))};
h._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}};
da.Object.defineProperties(pL.prototype,{selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){a=isNaN(a)?0:a;this._selectedIndex!=a&&(this._selectedIndexChanged=!0,this._selectedIndex=a,this._keyManager&&qz(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)}}});pL.\u0275fac=function(a){return new (a||pL)};pL.\u0275dir=af({type:pL,inputs:{disablePagination:[2,"disablePagination","disablePagination",$g],selectedIndex:[2,"selectedIndex","selectedIndex",ah]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}});var B9c=["content"],rL=function(){Rz.call(this);this._host=p(qL);this._ngZone=p(Rg);this._leavingSub=this._centeringSub=Pd.EMPTY};Y(rL,Rz);
rL.prototype.ngOnInit=function(){var a=this;Rz.prototype.ngOnInit.call(this);this._centeringSub=this._host._beforeCentering.pipe(xf(this._host._isCenterPosition())).subscribe(function(b){a._host._content&&b&&!a.hasAttached()&&a._ngZone.run(function(){Promise.resolve().then();a.attach(a._host._content)})});this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){a._host.preserveContent||a._ngZone.run(function(){return a.detach()})})};
rL.prototype.ngOnDestroy=function(){Rz.prototype.ngOnDestroy.call(this);this._centeringSub.unsubscribe();this._leavingSub.unsubscribe()};rL.\u0275fac=function(a){return new (a||rL)};rL.\u0275dir=af({type:rL,selectors:[["","matTabBodyHost",""]],features:[Ef]});
var qL=function(){var a=this;this._elementRef=p(Hd);this._dir=p(bi,{optional:!0});this._ngZone=p(Rg);this._injector=p(ye);this._renderer=p(ci);this._diAnimationsDisabled=mi();this._dirChangeSubscription=Pd.EMPTY;this._onCentering=new Ti;this._beforeCentering=new Ti;this._afterLeavingCenter=new Ti;this._onCentered=new Ti(!0);this.animationDuration="500ms";this.preserveContent=!1;if(this._dir){var b=p(Cx);this._dirChangeSubscription=this._dir.change.subscribe(function(c){a._computePositionAnimationState(c);
b.markForCheck()})}};h=qL.prototype;h.ngOnInit=function(){var a=this;this._bindTransitionEvents();this._position==="center"&&(this._setActiveClass(!0),Ee(function(){return a._onCentering.emit(a._elementRef.nativeElement.clientHeight)},{injector:this._injector}));this._initialized=!0};h.ngOnDestroy=function(){clearTimeout(this._fallbackTimer);var a;(a=this._eventCleanups)==null||a.forEach(function(b){return b()});this._dirChangeSubscription.unsubscribe()};
h._bindTransitionEvents=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._elementRef.nativeElement,c=function(d){var e;d.target===((e=a._contentElement)==null?void 0:e.nativeElement)&&(a._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),d.type==="transitionend"&&a._transitionDone())};a._eventCleanups=[a._renderer.listen(b,"transitionstart",function(d){var e;d.target===((e=a._contentElement)==null?void 0:e.nativeElement)&&(a._elementRef.nativeElement.classList.add("mat-tab-body-animating"),
a._transitionStarted())}),a._renderer.listen(b,"transitionend",c),a._renderer.listen(b,"transitioncancel",c)]})};h._transitionStarted=function(){clearTimeout(this._fallbackTimer);var a=this._position==="center";this._beforeCentering.emit(a);a&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)};h._transitionDone=function(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()};
h._setActiveClass=function(a){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",a)};h._getLayoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};h._isCenterPosition=function(){return this._positionIndex===0};
h._computePositionAnimationState=function(a){var b=this;a=a===void 0?this._getLayoutDirection():a;this._previousPosition=this._position;this._position=this._positionIndex<0?a=="ltr"?"left":"right":this._positionIndex>0?a=="ltr"?"right":"left":"center";this._animationsDisabled()?this._simulateTransitionEvents():!this._initialized||this._position!=="center"&&this._previousPosition!=="center"||(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(function(){return setTimeout(function(){return b._simulateTransitionEvents()},
100)}))};h._simulateTransitionEvents=function(){var a=this;this._transitionStarted();Ee(function(){return a._transitionDone()},{injector:this._injector})};h._animationsDisabled=function(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"};da.Object.defineProperties(qL.prototype,{position:{configurable:!0,enumerable:!0,set:function(a){this._positionIndex=a;this._computePositionAnimationState()}}});qL.\u0275fac=function(a){return new (a||qL)};
qL.\u0275cmp=D({type:qL,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&(hg(rL,5),hg(B9c,5));if(a&2){var c;lg(c=mg())&&(b._portalHost=c.first);lg(c=mg())&&(b._contentElement=c.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(a,b){a&2&&If("inert",b._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",
_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(a,b){a&1&&(K(0,"div",1,0),E(2,vNa,0,0,"ng-template",2),L());a&2&&wg("mat-tab-body-content-left",b._position==="left")("mat-tab-body-content-right",b._position==="right")("mat-tab-body-content-can-animate",b._position==="center"||b._previousPosition==="center")},dependencies:[rL,wz],styles:[".mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)}\n"],
encapsulation:2});var C9c=new dd("MAT_TABS_CONFIG");var D9c=new dd("MatTabContent"),sL=function(){this.template=p(dg)};sL.\u0275fac=function(a){return new (a||sL)};sL.\u0275dir=af({type:sL,selectors:[["","matTabContent",""]],features:[Gg([{provide:D9c,useExisting:sL}])]});var tL=function(){oL.apply(this,arguments);this.elementRef=p(Hd);this.disabled=!1};Y(tL,oL);tL.prototype.focus=function(){this.elementRef.nativeElement.focus()};tL.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(tL)))(b||tL)}}();tL.\u0275dir=af({type:tL,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(a,b){a&2&&(If("aria-disabled",!!b.disabled),wg("mat-mdc-tab-disabled",b.disabled))},inputs:{disabled:[2,"disabled","disabled",$g]},features:[Ef]});var E9c=["tabListContainer"],F9c=["tabList"],G9c=["tabListInner"],H9c=["nextPaginator"],I9c=["previousPaginator"],uL=function(){pL.apply(this,arguments);this.disableRipple=!1};Y(uL,pL);uL.\u0275dir=pL.\u0275dir;uL.prototype.ngAfterContentInit=function(){this._inkBar=new w9c(this._items);pL.prototype.ngAfterContentInit.call(this)};uL.prototype._itemSelected=function(a){a.preventDefault()};uL.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(uL)))(b||uL)}}();
uL.\u0275cmp=D({type:uL,selectors:[["mat-tab-header"]],contentQueries:function(a,b,c){a&1&&ig(c,tL,4);if(a&2){var d;lg(d=mg())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(hg(E9c,7),hg(F9c,7),hg(G9c,7),hg(H9c,5),hg(I9c,5));if(a&2){var c;lg(c=mg())&&(b._tabListContainer=c.first);lg(c=mg())&&(b._tabList=c.first);lg(c=mg())&&(b._tabListInner=c.first);lg(c=mg())&&(b._nextPaginator=c.first);lg(c=mg())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(a,
b){a&2&&wg("mat-mdc-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-mdc-tab-header-rtl",b._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",$g]},features:[Ef],ngContentSelectors:["*"],decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination",
"mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(a,b){if(a&1){var c=t();bg();K(0,"div",5,0);N("click",function(){u(c);
return v(b._handlePaginatorClick("before"))})("mousedown",function(d){u(c);return v(b._handlePaginatorPress("before",d))})("touchend",function(){u(c);return v(b._stopInterval())});M(2,"div",6);L();K(3,"div",7,1);N("keydown",function(d){u(c);return v(b._handleKeydown(d))});K(5,"div",8,2);N("cdkObserveContent",function(){u(c);return v(b._onContentChanges())});K(7,"div",9,3);cg(9);L()()();K(10,"div",10,4);N("mousedown",function(d){u(c);return v(b._handlePaginatorPress("after",d))})("click",function(){u(c);
return v(b._handlePaginatorClick("after"))})("touchend",function(){u(c);return v(b._stopInterval())});M(12,"div",6);L()}a&2&&(wg("mat-mdc-tab-header-pagination-disabled",b._disableScrollBefore),I("matRippleDisabled",b._disableScrollBefore||b.disableRipple),B(3),wg("_mat-animation-noopable",b._animationsDisabled),B(2),If("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby||null),B(5),wg("mat-mdc-tab-header-pagination-disabled",b._disableScrollAfter),I("matRippleDisabled",b._disableScrollAfter||
b.disableRipple))},dependencies:[fA,bz],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}\n"],
encapsulation:2});var J9c=new dd("MatTabLabel"),K9c=new dd("MAT_TAB"),vL=function(){Qz.apply(this,arguments);this._closestTab=p(K9c,{optional:!0})};Y(vL,Qz);vL.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(vL)))(b||vL)}}();vL.\u0275dir=af({type:vL,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Gg([{provide:J9c,useExisting:vL}]),Ef]});var L9c=new dd("MAT_TAB_GROUP"),wL=function(){this._viewContainerRef=p(eg);this._closestTabGroup=p(L9c,{optional:!0});this.disabled=!1;this._explicitContent=void 0;this.textLabel="";this._contentPortal=this.id=null;this._stateChanges=new qf;this.origin=this.position=null;this.isActive=!1;p(Zh).load(cA)};wL.prototype.ngOnChanges=function(a){(a.hasOwnProperty("textLabel")||a.hasOwnProperty("disabled"))&&this._stateChanges.next()};wL.prototype.ngOnDestroy=function(){this._stateChanges.complete()};
wL.prototype.ngOnInit=function(){this._contentPortal=new Oz(this._explicitContent||this._implicitContent,this._viewContainerRef)};wL.prototype._setTemplateLabelInput=function(a){a&&a._closestTab===this&&(this._templateLabel=a)};da.Object.defineProperties(wL.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}}});
wL.\u0275fac=function(a){return new (a||wL)};
wL.\u0275cmp=D({type:wL,selectors:[["mat-tab"]],contentQueries:function(a,b,c){a&1&&(ig(c,vL,5),ig(c,sL,7,dg));if(a&2){var d;lg(d=mg())&&(b.templateLabel=d.first);lg(d=mg())&&(b._explicitContent=d.first)}},viewQuery:function(a,b){a&1&&hg(dg,7);if(a&2){var c;lg(c=mg())&&(b._implicitContent=c.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(a){a&2&&If("id",null)},inputs:{disabled:[2,"disabled","disabled",$g],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,
"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Gg([{provide:K9c,useExisting:wL}]),jx],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(bg(),Gf(0,wNa,1,0,"ng-template"))},encapsulation:2});var M9c=["tabBodyWrapper"],N9c=["tabHeader"],xL=function(){this._elementRef=p(Hd);this._changeDetectorRef=p(Cx);this._ngZone=p(Rg);this._tabBodySubscription=this._tabLabelSubscription=this._tabsSubscription=Pd.EMPTY;this._diAnimationsDisabled=mi();this._tabs=new gg;this._indexToSelect=0;this._lastFocusedTabIndex=null;this._tabBodyWrapperHeight=0;this._fitInkBarToContent=!1;this.stretchTabs=!0;this.alignTabs=null;this.dynamicHeight=!1;this._selectedIndex=null;this.headerPosition="above";this.preserveContent=
this.disableRipple=this.disablePagination=!1;this.selectedIndexChange=new Ti;this.focusChange=new Ti;this.animationDone=new Ti;this.selectedTabChange=new Ti(!0);this._isServer=!p(Vh).isBrowser;var a=p(C9c,{optional:!0});this._groupId=p(ai).getId("mat-tab-group-");this.animationDuration=a&&a.animationDuration?a.animationDuration:"500ms";this.disablePagination=a&&a.disablePagination!=null?a.disablePagination:!1;this.dynamicHeight=a&&a.dynamicHeight!=null?a.dynamicHeight:!1;(a==null?void 0:a.contentTabIndex)!=
null&&(this.contentTabIndex=a.contentTabIndex);this.preserveContent=!(a==null||!a.preserveContent);this.fitInkBarToContent=a&&a.fitInkBarToContent!=null?a.fitInkBarToContent:!1;this.stretchTabs=a&&a.stretchTabs!=null?a.stretchTabs:!0;this.alignTabs=a&&a.alignTabs!=null?a.alignTabs:null};h=xL.prototype;
h.ngAfterContentChecked=function(){var a=this,b=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=b){var c=this._selectedIndex==null;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;a._selectedIndex==null||e.position!=0||e.origin||(e.origin=b-a._selectedIndex)});this._selectedIndex!==b&&(this._selectedIndex=b,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())};
h.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()})};
h.ngAfterViewInit=function(){var a=this;this._tabBodySubscription=this._tabBodies.changes.subscribe(function(){return a._bodyCentered(!0)})};h._subscribeToAllTabChanges=function(){var a=this;this._allTabs.changes.pipe(xf(this._allTabs)).subscribe(function(b){a._tabs.reset(b.filter(function(c){return c._closestTabGroup===a||!c._closestTabGroup}));kg(a._tabs)})};h.ngOnDestroy=function(){this._tabs.destroy();this._tabsSubscription.unsubscribe();this._tabLabelSubscription.unsubscribe();this._tabBodySubscription.unsubscribe()};
h.updatePagination=function(){this._tabHeader&&this._tabHeader.updatePagination()};h._focusChanged=function(a){this._lastFocusedTabIndex=a;this.focusChange.emit(this._createChangeEvent(a))};h._createChangeEvent=function(a){var b=new O9c;b.index=a;this._tabs&&this._tabs.length&&(b.tab=this._tabs.toArray()[a]);return b};h._subscribeToTabLabels=function(){var a=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe();this._tabLabelSubscription=te.apply(null,q(this._tabs.map(function(b){return b._stateChanges}))).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
h._clampTabIndex=function(a){return Math.min(this._tabs.length-1,Math.max(a||0,0))};h._getTabLabelId=function(a,b){return a.id||this._groupId+"-label-"+b};h._getTabContentId=function(a){return this._groupId+"-content-"+a};
h._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")}else this._tabBodyWrapperHeight=a};h._removeTabBodyWrapperHeight=function(){var a=this,b=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=b.clientHeight;b.style.height="";this._ngZone.run(function(){return a.animationDone.emit()})};
h._handleClick=function(a,b,c){b.focusIndex=c;a.disabled||(this.selectedIndex=c)};h._getTabIndex=function(a){var b,c=(b=this._lastFocusedTabIndex)!=null?b:this.selectedIndex;return a===c?0:-1};h._tabFocusChanged=function(a,b){a&&a!=="mouse"&&a!=="touch"&&(this._tabHeader.focusIndex=b)};h._bodyCentered=function(a){var b=this;if(a){var c;(c=this._tabBodies)==null||c.forEach(function(d,e){return d._setActiveClass(e===b._selectedIndex)})}};
h._animationsDisabled=function(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"};
da.Object.defineProperties(xL.prototype,{fitInkBarToContent:{configurable:!0,enumerable:!0,get:function(){return this._fitInkBarToContent},set:function(a){this._fitInkBarToContent=a;this._changeDetectorRef.markForCheck()}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){this._indexToSelect=isNaN(a)?null:a}},animationDuration:{configurable:!0,enumerable:!0,get:function(){return this._animationDuration},set:function(a){var b=a+"";this._animationDuration=
/^\d+$/.test(b)?a+"ms":b}},contentTabIndex:{configurable:!0,enumerable:!0,get:function(){return this._contentTabIndex},set:function(a){this._contentTabIndex=isNaN(a)?null:a}},backgroundColor:{configurable:!0,enumerable:!0,get:function(){return this._backgroundColor},set:function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-tabs-with-background","mat-background-"+this.backgroundColor);a&&b.add("mat-tabs-with-background","mat-background-"+a);this._backgroundColor=a}}});
xL.\u0275fac=function(a){return new (a||xL)};
xL.\u0275cmp=D({type:xL,selectors:[["mat-tab-group"]],contentQueries:function(a,b,c){a&1&&ig(c,wL,5);if(a&2){var d;lg(d=mg())&&(b._allTabs=d)}},viewQuery:function(a,b){a&1&&(hg(M9c,5),hg(N9c,5),hg(qL,5));if(a&2){var c;lg(c=mg())&&(b._tabBodyWrapper=c.first);lg(c=mg())&&(b._tabHeader=c.first);lg(c=mg())&&(b._tabBodies=c)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(a,b){a&2&&(If("mat-align-tabs",b.alignTabs),xg("mat-"+(b.color||"primary")),vg("--mat-tab-animation-duration",
b.animationDuration),wg("mat-mdc-tab-group-dynamic-height",b.dynamicHeight)("mat-mdc-tab-group-inverted-header",b.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",b.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",$g],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",$g],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",$g],selectedIndex:[2,"selectedIndex","selectedIndex",ah],headerPosition:"headerPosition",
animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ah],disablePagination:[2,"disablePagination","disablePagination",$g],disableRipple:[2,"disableRipple","disableRipple",$g],preserveContent:[2,"preserveContent","preserveContent",$g],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",
selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Gg([{provide:L9c,useExisting:xL}])],ngContentSelectors:["*"],decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],
[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered",
"_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(a,b){if(a&1){var c=t();bg();K(0,"mat-tab-header",3,0);N("indexFocused",function(d){u(c);return v(b._focusChanged(d))})("selectFocusedIndex",function(d){u(c);return v(b.selectedIndex=d)});Nf(2,ANa,8,17,"div",4,Mf);L();F(4,BNa,1,0);K(5,"div",5,1);Nf(7,CNa,1,10,"mat-tab-body",6,Mf);L()}a&2&&(I("selectedIndex",b.selectedIndex||0)("disableRipple",b.disableRipple)("disablePagination",b.disablePagination),
Hf("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby),B(2),Of(b._tabs),B(2),G(b._isServer?4:-1),B(),wg("_mat-animation-noopable",b._animationsDisabled()),B(2),Of(b._tabs))},dependencies:[uL,tL,Py,fA,Rz,qL],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}\n'],
encapsulation:2});var O9c=function(){};var P9c=["tabListContainer"],Q9c=["tabList"],R9c=["tabListInner"],S9c=["nextPaginator"],T9c=["previousPaginator"],U9c=["*"],yL=function(){var a=p(C9c,{optional:!0});pL.call(this);this._focusedItem=ng.apply(null,[null].concat(q([])));this._fitInkBarToContent=new Mj(!1);this.stretchTabs=!0;this._disableRipple=ng.apply(null,[!1].concat(q([])));this.color="primary";this.disablePagination=a&&a.disablePagination!=null?a.disablePagination:!1;this.fitInkBarToContent=a&&a.fitInkBarToContent!=null?a.fitInkBarToContent:
!1;this.stretchTabs=a&&a.stretchTabs!=null?a.stretchTabs:!0};Y(yL,pL);yL.\u0275dir=pL.\u0275dir;yL.prototype._itemSelected=function(){};
yL.prototype.ngAfterContentInit=function(){var a=this;this._inkBar=new w9c(this._items);this._items.changes.pipe(xf(null),zf(this._destroyed)).subscribe(function(){return V9c(a)});pL.prototype.ngAfterContentInit.call(this);this._keyManager.change.pipe(xf(null),zf(this._destroyed)).subscribe(function(){var b;return a._focusedItem.set(((b=a._keyManager)==null?void 0:b.activeItem)||null)})};yL.prototype.ngAfterViewInit=function(){pL.prototype.ngAfterViewInit.call(this)};
var V9c=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.tabPanel&&(a.tabPanel._activeTabId=b[c].id);a._focusedItem.set(b[c]);a._changeDetectorRef.markForCheck();return}a.selectedIndex=-1}};yL.prototype._getRole=function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")};yL.prototype._hasFocus=function(a){var b;return((b=this._keyManager)==null?void 0:b.activeItem)===a};
da.Object.defineProperties(yL.prototype,{fitInkBarToContent:{configurable:!0,enumerable:!0,get:function(){return this._fitInkBarToContent.value},set:function(a){this._fitInkBarToContent.next(a);this._changeDetectorRef.markForCheck()}},animationDuration:{configurable:!0,enumerable:!0,get:function(){return this._animationDuration},set:function(a){var b=a+"";this._animationDuration=/^\d+$/.test(b)?a+"ms":b}},backgroundColor:{configurable:!0,enumerable:!0,get:function(){return this._backgroundColor},
set:function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-tabs-with-background","mat-background-"+this.backgroundColor);a&&b.add("mat-tabs-with-background","mat-background-"+a);this._backgroundColor=a}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple()},set:function(a){this._disableRipple.set(a)}}});yL.\u0275fac=function(a){return new (a||yL)};
yL.\u0275cmp=D({type:yL,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(a,b,c){a&1&&ig(c,zL,5);if(a&2){var d;lg(d=mg())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(hg(P9c,7),hg(Q9c,7),hg(R9c,7),hg(S9c,5),hg(T9c,5));if(a&2){var c;lg(c=mg())&&(b._tabListContainer=c.first);lg(c=mg())&&(b._tabList=c.first);lg(c=mg())&&(b._tabListInner=c.first);lg(c=mg())&&(b._nextPaginator=c.first);lg(c=mg())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-mdc-tab-nav-bar","mat-mdc-tab-header"],hostVars:17,
hostBindings:function(a,b){a&2&&(If("role",b._getRole()),vg("--mat-tab-animation-duration",b.animationDuration),wg("mat-mdc-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-mdc-tab-header-rtl",b._getLayoutDirection()=="rtl")("mat-mdc-tab-nav-bar-stretch-tabs",b.stretchTabs)("mat-primary",b.color!=="warn"&&b.color!=="accent")("mat-accent",b.color==="accent")("mat-warn",b.color==="warn")("_mat-animation-noopable",b._animationsDisabled))},inputs:{fitInkBarToContent:[2,"fitInkBarToContent",
"fitInkBarToContent",$g],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",$g],animationDuration:"animationDuration",backgroundColor:"backgroundColor",disableRipple:[2,"disableRipple","disableRipple",$g],color:"color",tabPanel:"tabPanel"},exportAs:["matTabNavBar","matTabNav"],features:[Ef],attrs:["mat-tab-nav-bar",""],ngContentSelectors:U9c,decls:13,vars:6,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination",
"mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-link-container",3,"keydown"],[1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-links"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(a,b){if(a&1){var c=t();bg();K(0,"div",5,0);N("click",function(){u(c);return v(b._handlePaginatorClick("before"))})("mousedown",
function(d){u(c);return v(b._handlePaginatorPress("before",d))})("touchend",function(){u(c);return v(b._stopInterval())});M(2,"div",6);L();K(3,"div",7,1);N("keydown",function(d){u(c);return v(b._handleKeydown(d))});K(5,"div",8,2);N("cdkObserveContent",function(){u(c);return v(b._onContentChanges())});K(7,"div",9,3);cg(9);L()()();K(10,"div",10,4);N("mousedown",function(d){u(c);return v(b._handlePaginatorPress("after",d))})("click",function(){u(c);return v(b._handlePaginatorClick("after"))})("touchend",
function(){u(c);return v(b._stopInterval())});M(12,"div",6);L()}a&2&&(wg("mat-mdc-tab-header-pagination-disabled",b._disableScrollBefore),I("matRippleDisabled",b._disableScrollBefore||b.disableRipple),B(10),wg("mat-mdc-tab-header-pagination-disabled",b._disableScrollAfter),I("matRippleDisabled",b._disableScrollAfter||b.disableRipple))},dependencies:[fA,bz],styles:[".mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-links{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}\n"],
encapsulation:2});
var zL=function(){oL.call(this);var a=this;this._tabNavBar=p(yL);this.elementRef=p(Hd);this._focusMonitor=p(Ny);this._destroyed=new qf;this._isActive=!1;this._tabIndex=Zg.apply(null,[function(){return a._tabNavBar._focusedItem()===a?a.tabIndex:-1}].concat(q([])));this.disabled=!1;this._disableRipple=ng.apply(null,[!1].concat(q([])));this.tabIndex=0;this.id=p(ai).getId("mat-tab-link-");p(Zh).load(cA);var b=p(eA,{optional:!0}),c=p(new kx("tabindex"),{optional:!0});this.rippleConfig=b||{};this.tabIndex=
c==null?0:parseInt(c)||0;mi()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0});this._tabNavBar._fitInkBarToContent.pipe(zf(this._destroyed)).subscribe(function(d){a.fitInkBarToContent=d})};Y(zL,oL);zL.\u0275dir=oL.\u0275dir;h=zL.prototype;h.focus=function(){this.elementRef.nativeElement.focus()};h.ngAfterViewInit=function(){this._focusMonitor.monitor(this.elementRef)};h.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete();oL.prototype.ngOnDestroy.call(this);this._focusMonitor.stopMonitoring(this.elementRef)};
h._handleFocus=function(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)};h._handleKeydown=function(a){if(a.keyCode===32||a.keyCode===13)this.disabled?a.preventDefault():this._tabNavBar.tabPanel&&(a.keyCode===32&&a.preventDefault(),this.elementRef.nativeElement.click())};h._getAriaControls=function(){var a;return this._tabNavBar.tabPanel?(a=this._tabNavBar.tabPanel)==null?void 0:a.id:this.elementRef.nativeElement.getAttribute("aria-controls")};
h._getAriaSelected=function(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")};h._getAriaCurrent=function(){return this.active&&!this._tabNavBar.tabPanel?"page":null};h._getRole=function(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")};
da.Object.defineProperties(zL.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this._isActive},set:function(a){a!==this._isActive&&(this._isActive=a,V9c(this._tabNavBar))}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple()},set:function(a){this._disableRipple.set(a)}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}});
zL.\u0275fac=function(a){return new (a||zL)};
zL.\u0275cmp=D({type:zL,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(a,b){a&1&&N("focus",function(){return b._handleFocus()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(If("aria-controls",b._getAriaControls())("aria-current",b._getAriaCurrent())("aria-disabled",b.disabled)("aria-selected",b._getAriaSelected())("id",b.id)("tabIndex",b._tabIndex())("role",b._getRole()),wg("mat-mdc-tab-disabled",
b.disabled)("mdc-tab--active",b.active))},inputs:{active:[2,"active","active",$g],disabled:[2,"disabled","disabled",$g],disableRipple:[2,"disableRipple","disableRipple",$g],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ah(a)}],id:"id"},exportAs:["matTabLink"],features:[Ef],attrs:["mat-tab-link",""],ngContentSelectors:U9c,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],
template:function(a,b){a&1&&(bg(),M(0,"span",0)(1,"div",1),K(2,"span",2)(3,"span",3),cg(4),L()());a&2&&(B(),I("matRippleTrigger",b.elementRef.nativeElement)("matRippleDisabled",b.rippleDisabled))},dependencies:[fA],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}\n'],
encapsulation:2,changeDetection:0});var W9c=function(){this.id=p(ai).getId("mat-tab-nav-panel-")};W9c.\u0275fac=function(a){return new (a||W9c)};W9c.\u0275cmp=D({type:W9c,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(a,b){a&2&&If("aria-labelledby",b._activeTabId)("id",b.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:U9c,decls:1,vars:0,template:function(a){a&1&&(bg(),cg(0))},encapsulation:2,changeDetection:0});var AL=function(){};AL.\u0275fac=function(a){return new (a||AL)};AL.\u0275mod=$e({type:AL});AL.\u0275inj=Fc({imports:[Ky]});var BL=function(a,b,c){this.options=a;this.changeDetectorRef=b;this.tabGroup=c;this.appearance=this.options.appearance};da.Object.defineProperties(BL.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this.cachedAppearance},set:function(a){this.cachedAppearance!==a&&(this.cachedAppearance=a,this.tabGroup.fitInkBarToContent=a==="primary",this.changeDetectorRef.markForCheck())}}});BL.\u0275fac=function(a){return new (a||BL)(Ve(v9c),Ve(Cx),Ve(xL))};
BL.\u0275dir=af({type:BL,selectors:[["mat-tab-group"]],hostVars:4,hostBindings:function(a,b){a&2&&wg("gmat-mdc-tabs-primary",b.appearance==="primary")("gmat-mdc-tabs-secondary",b.appearance==="secondary")},inputs:{appearance:"appearance"},standalone:!1});var CL=function(a,b,c){this.options=a;this.changeDetectorRef=b;this.tabNav=c;if(this.options.disableGmatStyle)throw Error("db");this.appearance=this.options.appearance};
da.Object.defineProperties(CL.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this.cachedAppearance},set:function(a){this.cachedAppearance!==a&&(this.cachedAppearance=a,this.tabNav.fitInkBarToContent=a==="primary",this.changeDetectorRef.markForCheck())}}});CL.\u0275fac=function(a){return new (a||CL)(Ve(v9c),Ve(Cx),Ve(yL))};
CL.\u0275dir=af({type:CL,selectors:[["","mat-tab-nav-bar",""]],hostVars:4,hostBindings:function(a,b){a&2&&wg("gmat-mdc-tabs-primary",b.appearance==="primary")("gmat-mdc-tabs-secondary",b.appearance==="secondary")},inputs:{appearance:"appearance"},standalone:!1});var DL=function(){};DL.\u0275fac=function(a){return new (a||DL)};DL.\u0275mod=$e({type:DL});DL.\u0275inj=Fc({imports:[AL]});var X9c=new dd("CdkAccordion"),EL=function(){this._stateChanges=new qf;this._openCloseAllActions=new qf;this.id=p(ai).getId("cdk-accordion-");this.multi=!1};EL.prototype.closeAll=function(){this._openCloseAllActions.next(!1)};EL.prototype.ngOnChanges=function(a){this._stateChanges.next(a)};EL.prototype.ngOnDestroy=function(){this._stateChanges.complete();this._openCloseAllActions.complete()};EL.\u0275fac=function(a){return new (a||EL)};
EL.\u0275dir=af({type:EL,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",$g]},exportAs:["cdkAccordion"],features:[Gg([{provide:X9c,useExisting:EL}]),jx]});var FL=function(){this.accordion=p(X9c,{optional:!0,skipSelf:!0});this._changeDetectorRef=p(Cx);this._expansionDispatcher=p(yz);this._openCloseAllSubscription=Pd.EMPTY;this.closed=new Ti;this.opened=new Ti;this.destroyed=new Ti;this.expandedChange=new Ti;this.id=p(ai).getId("cdk-accordion-child-");this._expanded=!1;this._disabled=ng.apply(null,[!1].concat(q([])));this._removeUniqueSelectionListener=function(){}};h=FL.prototype;
h.ngOnInit=function(){var a=this;this._removeUniqueSelectionListener=this._expansionDispatcher.listen(function(b,c){a.accordion&&!a.accordion.multi&&a.accordion.id===c&&a.id!==b&&(a.expanded=!1)});this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())};h.ngOnDestroy=function(){this.opened.complete();this.closed.complete();this.destroyed.emit();this.destroyed.complete();this._removeUniqueSelectionListener();this._openCloseAllSubscription.unsubscribe()};
h.toggle=function(){this.disabled||(this.expanded=!this.expanded)};h.close=function(){this.disabled||(this.expanded=!1)};h.open=function(){this.disabled||(this.expanded=!0)};h._subscribeToOpenCloseAllActions=function(){var a=this;return this.accordion._openCloseAllActions.subscribe(function(b){a.disabled||(a.expanded=b)})};
da.Object.defineProperties(FL.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){return this._expanded},set:function(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.set(a)}}});
FL.\u0275fac=function(a){return new (a||FL)};FL.\u0275dir=af({type:FL,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",$g],disabled:[2,"disabled","disabled",$g]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Gg([{provide:X9c,useValue:void 0}])]});var GL=function(){};GL.\u0275fac=function(a){return new (a||GL)};GL.\u0275mod=$e({type:GL});GL.\u0275inj=Fc({});var Y9c=new dd("MAT_ACCORDION");var Z9c=new dd("MAT_EXPANSION_PANEL");var HL=function(){this._template=p(dg);this._expansionPanel=p(Z9c,{optional:!0})};HL.\u0275fac=function(a){return new (a||HL)};HL.\u0275dir=af({type:HL,selectors:[["ng-template","matExpansionPanelContent",""]]});var $9c=["body"],a$c=["bodyWrapper"],b$c=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],c$c=new dd("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),IL=function(){FL.call(this);var a=this;this._viewContainerRef=p(eg);this._animationsDisabled=mi();this._document=p(Rh);this._ngZone=p(Rg);this._elementRef=p(Hd);this._renderer=p(ci);this._hideToggle=!1;this.afterExpand=new Ti;this.afterCollapse=new Ti;this._inputChanges=new qf;this.accordion=p(Y9c,{optional:!0,skipSelf:!0});this._headerId=p(ai).getId("mat-expansion-panel-header-");
this._transitionEndListener=function(c){var d=c.target;c=c.propertyName;var e;d===((e=a._bodyWrapper)==null?void 0:e.nativeElement)&&c==="grid-template-rows"&&a._ngZone.run(function(){a.expanded?a.afterExpand.emit():a.afterCollapse.emit()})};var b=p(c$c,{optional:!0});this._expansionDispatcher=p(yz);b&&(this.hideToggle=b.hideToggle)};Y(IL,FL);IL.\u0275dir=FL.\u0275dir;h=IL.prototype;h._hasSpacing=function(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1};
h._getExpandedState=function(){return this.expanded?"expanded":"collapsed"};h.toggle=function(){this.expanded=!this.expanded};h.close=function(){this.expanded=!1};h.open=function(){this.expanded=!0};h.ngAfterContentInit=function(){var a=this;this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(xf(null),ue(function(){return a.expanded&&!a._portal}),lf(1)).subscribe(function(){a._portal=new Oz(a._lazyContent._template,a._viewContainerRef)});this._setupAnimationEvents()};
h.ngOnChanges=function(a){this._inputChanges.next(a)};h.ngOnDestroy=function(){FL.prototype.ngOnDestroy.call(this);var a;(a=this._cleanupTransitionEnd)==null||a.call(this);this._inputChanges.complete()};h._containsFocus=function(){if(this._body){var a=this._document.activeElement,b=this._body.nativeElement;return a===b||b.contains(a)}return!1};
h._setupAnimationEvents=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._animationsDisabled?(a.opened.subscribe(function(){return a._ngZone.run(function(){return a.afterExpand.emit()})}),a.closed.subscribe(function(){return a._ngZone.run(function(){return a.afterCollapse.emit()})})):setTimeout(function(){var b=a._elementRef.nativeElement;a._cleanupTransitionEnd=a._renderer.listen(b,"transitionend",a._transitionEndListener);b.classList.add("mat-expansion-panel-animations-enabled")},
200)})};da.Object.defineProperties(IL.prototype,{hideToggle:{configurable:!0,enumerable:!0,get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(a){this._hideToggle=a}},togglePosition:{configurable:!0,enumerable:!0,get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(a){this._togglePosition=a}}});IL.\u0275fac=function(a){return new (a||IL)};
IL.\u0275cmp=D({type:IL,selectors:[["mat-expansion-panel"]],contentQueries:function(a,b,c){a&1&&ig(c,HL,5);if(a&2){var d;lg(d=mg())&&(b._lazyContent=d.first)}},viewQuery:function(a,b){a&1&&(hg($9c,5),hg(a$c,5));if(a&2){var c;lg(c=mg())&&(b._body=c.first);lg(c=mg())&&(b._bodyWrapper=c.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(a,b){a&2&&wg("mat-expanded",b.expanded)("mat-expansion-panel-spacing",b._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",$g],
togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Gg([{provide:Y9c,useValue:void 0},{provide:Z9c,useExisting:IL}]),Ef,jx],ngContentSelectors:["mat-expansion-panel-header","*","mat-action-row"],decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(a,
b){a&1&&(bg(b$c),cg(0),K(1,"div",2,0)(3,"div",3,1)(5,"div",4),cg(6,1),E(7,DNa,0,0,"ng-template",5),L(),cg(8,2),L()());a&2&&(B(),If("inert",b.expanded?null:""),B(2),I("id",b.id),If("aria-labelledby",b._headerId),B(4),I("cdkPortalOutlet",b._portal))},dependencies:[Rz],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:var(--mat-expansion-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.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,changeDetection:0});var d$c=function(){};d$c.\u0275fac=function(a){return new (a||d$c)};d$c.\u0275dir=af({type:d$c,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var e$c=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],JL=function(){var a=this;this.panel=p(IL,{host:!0});this._element=p(Hd);this._focusMonitor=p(Ny);this._changeDetectorRef=p(Cx);this._parentChangeSubscription=Pd.EMPTY;this.tabIndex=0;p(Zh).load(cA);var b=this.panel,c=p(c$c,{optional:!0}),d=p(new kx("tabindex"),{optional:!0}),e=b.accordion?b.accordion._stateChanges.pipe(ue(function(f){return!(!f.hideToggle&&!f.togglePosition)})):se;this.tabIndex=parseInt(d||"")||0;this._parentChangeSubscription=
te(b.opened,b.closed,e,b._inputChanges.pipe(ue(function(f){return!!(f.hideToggle||f.disabled||f.togglePosition)}))).subscribe(function(){return a._changeDetectorRef.markForCheck()});b.closed.pipe(ue(function(){return b._containsFocus()})).subscribe(function(){return Oy(a._focusMonitor,a._element,"program")});c&&(this.expandedHeight=c.expandedHeight,this.collapsedHeight=c.collapsedHeight)};h=JL.prototype;h._toggle=function(){this.disabled||this.panel.toggle()};h._isExpanded=function(){return this.panel.expanded};
h._getExpandedState=function(){return this.panel._getExpandedState()};h._getPanelId=function(){return this.panel.id};h._getTogglePosition=function(){return this.panel.togglePosition};h._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled};h._getHeaderHeight=function(){var a=this.panel.expanded;return a&&this.expandedHeight?this.expandedHeight:!a&&this.collapsedHeight?this.collapsedHeight:null};
h._keydown=function(a){switch(a.keyCode){case 32:case 13:Gh(a)||(a.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a)}};h.focus=function(a,b){a?Oy(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};h.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._element).subscribe(function(b){b&&a.panel.accordion&&a.panel.accordion._handleHeaderFocus(a)})};
h.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._element)};da.Object.defineProperties(JL.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.panel.disabled}}});JL.\u0275fac=function(a){return new (a||JL)};
JL.\u0275cmp=D({type:JL,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(a,b){a&1&&N("click",function(){return b._toggle()})("keydown",function(c){return b._keydown(c)});a&2&&(If("id",b.panel._headerId)("tabindex",b.disabled?-1:b.tabIndex)("aria-controls",b.panel.id)("aria-expanded",b.panel.expanded)("aria-disabled",b.panel.disabled),vg("height",b._getHeaderHeight()),wg("mat-expanded",b.panel.expanded)("mat-expansion-toggle-indicator-after",
b._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",b._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ah(a)}]},ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],"xmlns;http://www.w3.org/2000/svg;viewBox;0 -960 960 960;aria-hidden;true;focusable;false".split(";"),["d",
"M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(a,b){a&1&&(bg(e$c),Qf(0,"span",0),cg(1),cg(2,1),cg(3,2),Rf(),F(4,ENa,3,0,"span",1));a&2&&(wg("mat-content-hide-toggle",!b._showToggle()),B(4),G(b._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}\n'],
encapsulation:2,changeDetection:0});var f$c=function(){};f$c.\u0275fac=function(a){return new (a||f$c)};f$c.\u0275dir=af({type:f$c,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var KL=function(){};KL.\u0275fac=function(a){return new (a||KL)};KL.\u0275dir=af({type:KL,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var LL=function(){EL.apply(this,arguments);this._ownHeaders=new gg;this.hideToggle=!1;this.displayMode="default";this.togglePosition="after"};Y(LL,EL);LL.prototype.ngAfterContentInit=function(){var a=this;this._headers.changes.pipe(xf(this._headers)).subscribe(function(b){a._ownHeaders.reset(b.filter(function(c){return c.panel.accordion===a}));kg(a._ownHeaders)});this._keyManager=pz(mz(new sz(this._ownHeaders)))};LL.prototype._handleHeaderKeydown=function(a){this._keyManager.onKeydown(a)};
LL.prototype._handleHeaderFocus=function(a){qz(this._keyManager,a)};LL.prototype.ngOnDestroy=function(){EL.prototype.ngOnDestroy.call(this);var a;(a=this._keyManager)==null||a.destroy();this._ownHeaders.destroy()};LL.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(LL)))(b||LL)}}();
LL.\u0275dir=af({type:LL,selectors:[["mat-accordion"]],contentQueries:function(a,b,c){a&1&&ig(c,JL,5);if(a&2){var d;lg(d=mg())&&(b._headers=d)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-accordion-multi",b.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",$g],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[Gg([{provide:Y9c,useExisting:LL}]),Ef]});var ML=function(){};ML.\u0275fac=function(a){return new (a||ML)};ML.\u0275mod=$e({type:ML});ML.\u0275inj=Fc({imports:[GL,Sz,Ky]});var g$c=function(){},oOa=function(a){switch(a){case 0:return"EXECUTION_STATUS_UNKNOWN";case 1:return"SUCCESS";case 2:return"NO_APPROPRIATE_TOOL";case 3:return"PLANNING_ERROR";case 4:return"CODE_EXECUTION_ERROR";case 5:return"TOOL_EXECUTION_ERROR";case 6:return"AGENT_NOT_FOUND";default:return wb(a,"unexpected planner status!")}};g$c.\u0275fac=function(a){return new (a||g$c)};
g$c.\u0275cmp=D({type:g$c,selectors:[["message-metadata"]],inputs:{messageData:"messageData"},decls:1,vars:1,consts:[["class","gmat-subhead-3 metadata-content",4,"ngIf"],[1,"gmat-subhead-3","metadata-content"],["mat-stretch-tabs","false","color","primary",3,"selectedIndex"],["label","model_id"],["label","lm_prefix"],["label","factuality_metadata"],[4,"ngFor","ngForOf"],["label","scores"],["label","model_override_options"],["label","citation resources",4,"ngIf"],["label","execution_metadata"],[4,"ngIf"],
["label","citation resources"],[1,"type-xs"],[1,"metadata-heading"],[1,"planner-content"],[1,"planner-code"]],template:function(a,b){a&1&&E(0,uOa,25,8,"div",0);a&2&&I("ngIf",b.messageData.responseMetadata)},dependencies:[by,Mx,Nx,DE,lL,DL,BL,wL,xL,ML,IL,JL,KL],styles:[".metadata-content[_ngcontent-%COMP%]{border:dashed red;font-size:14px;padding:16px;white-space:pre-line}.metadata-content[_ngcontent-%COMP%]   .metadata-heading[_ngcontent-%COMP%]{font-weight:700;margin:.5em 0}.metadata-content[_ngcontent-%COMP%]   .planner-code[_ngcontent-%COMP%], .metadata-content[_ngcontent-%COMP%]   .planner-content[_ngcontent-%COMP%]{margin-left:2em;font-size:.9em;font-family:monospace}"],
changeDetection:0});var h$c={NO_ERROR:1,NO_REWRITE_NO_REASON:2,SOURCE_URL_NO_REWRITE:3,NO_REASONS:4,SOURCE_URL_INVALID:5,1:"NO_ERROR",2:"NO_REWRITE_NO_REASON",3:"SOURCE_URL_NO_REWRITE",4:"NO_REASONS",5:"SOURCE_URL_INVALID"};var i$c=new dd("SourceUrlsFormTemplate"),NL=function(){this.showWarning=Og.apply(null,[!1].concat(q([])));this.invalidFeedbackFormEnum=h$c;this.error=1;this.rewriteSourcesList=[""]},xOa=function(a){return(a==null?void 0:a.length)>0},yOa=function(a,b){b=b.length<5?!0:DEc.test(b)||EEc.test(b);a.error=b?1:5;return b};NL.\u0275fac=function(a){return new (a||NL)};
NL.\u0275cmp=D({type:NL,selectors:[["source-urls-form"]],inputs:{showWarning:[1,"showWarning"]},decls:13,vars:2,consts:function(){return[" Enter a valid website url or go link (https://example.com) ",[1,"header-with-tooltip"],[1,"gmat-subhead-1"],["mat-icon-button","","matTooltip","URLs to pages with the correct answer.\n      Provide URLs to specific sections if citing from g3docs.","aria-label","Please provide URLs to pages with the correct answer.",1,"small"],[1,"help-icon","icon-s"],[1,"font-google-sans-text",
"type-xs","padded-s-bottom"],[1,"rewrite-source"],["color","primary","mat-button","",3,"click","disabled"],[1,"rewrite-source-input-row"],["appearance","outline","color","primary",1,"rewrite-source-input"],["matInput","","type","url",3,"ngModelChange","name","ngModel"],["mat-icon-button","","aria-label","Remove this source",1,"remove-source-input-button",3,"click","disabled"],[1,"invalid-rewrite-source-input"]]},template:function(a,b){a&1&&(K(0,"div",1)(1,"p",2),Q(2,"Additional knowledge sources"),
L(),K(3,"button",3)(4,"mat-icon",4),Q(5,"help"),L()()(),F(6,vOa,2,0,"div",5),Nf(7,zOa,10,5,"div",6,Lf),K(9,"button",7),N("click",function(){b.rewriteSourcesList.push("")}),K(10,"mat-icon"),Q(11,"add"),L(),Q(12,"Add\n"),L());a&2&&(B(6),G(b.showWarning()?6:-1),B(),Of(b.rewriteSourcesList),B(2),I("disabled",!xOa(b.rewriteSourcesList[b.rewriteSourcesList.length-1])))},dependencies:[by,DE,xj,fE,mE,mB,kB,gB,iB,dL,UD,HD,SD,KD,ID,HE,VD,FE,wK,vK,nA,Ly,Jy,ZD],styles:["[_nghost-%COMP%]:not(:empty){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;gap:8px;margin:8px 0;position:relative}[_nghost-%COMP%]:not(:empty)   mat-form-field[_ngcontent-%COMP%]{margin-bottom:4px}[_nghost-%COMP%]:not(:empty)   button[_ngcontent-%COMP%]{-webkit-align-self:baseline;-ms-flex-item-align:baseline;align-self:baseline}[_nghost-%COMP%]     mat-form-field .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint-wrapper{padding:0}.heading[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.feedback-form-submit[_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;gap:16px;-webkit-box-pack:end;-webkit-justify-content:end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:end}.header-with-tooltip[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:4px}.help-button[_ngcontent-%COMP%]{text-align:center;text-decoration:none}.help-icon[_ngcontent-%COMP%]{color:var(--text-secondary)}.invalid-form-error[_ngcontent-%COMP%]{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;font-size:14px;margin-right:auto}.invalid-rewrite-source-input[_ngcontent-%COMP%]{font-size:14px}.rewrite-source[_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}.rewrite-source-input[_ngcontent-%COMP%]{max-height:50px;width:100%}.rewrite-source-input-header[_ngcontent-%COMP%]{color:var(--text-secondary);font-family:Google Sans,Roboto;font-size:14px;margin-bottom:8px}.rewrite-source-input-row[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}"],
changeDetection:0});var j$c=["customSourceUrlsForm"],k$c=["defaultSourceUrlsForm"],OL=function(){this.showWarning=Og.apply(null,[!1].concat(q([])));this.sourceUrlsFormTemplate=p(i$c,{optional:!0});this.customSourceUrlsForm=Pg.apply(null,["customSourceUrlsForm"].concat(q([{read:eg}])));this.defaultSourceUrlsForm=Pg.apply(null,["defaultSourceUrlsForm"].concat(q([{read:NL}])))};
OL.prototype.ngAfterViewInit=function(){this.sourceUrlsFormTemplate&&this.customSourceUrlsForm()&&(this.componentRef=this.customSourceUrlsForm().createComponent(this.sourceUrlsFormTemplate),this.componentRef.instance.showWarning=this.showWarning)};OL.prototype.getError=function(){if(this.componentRef)return this.componentRef.instance.error;var a,b;return(b=(a=this.defaultSourceUrlsForm())==null?void 0:a.error)!=null?b:1};OL.\u0275fac=function(a){return new (a||OL)};
OL.\u0275cmp=D({type:OL,selectors:[["source-urls-form-wrapper"]],viewQuery:function(a,b){a&1&&(og(b.customSourceUrlsForm,j$c,eg),og(b.defaultSourceUrlsForm,k$c,NL));a&2&&pg(2)},inputs:{showWarning:[1,"showWarning"]},decls:2,vars:1,consts:[["customSourceUrlsForm",""],["defaultSourceUrlsForm",""],[3,"showWarning"]],template:function(a,b){a&1&&F(0,AOa,2,0,"ng-container")(1,BOa,2,1,"source-urls-form",2);a&2&&G(b.sourceUrlsFormTemplate?0:1)},dependencies:[by,NL],encapsulation:2,changeDetection:0});var l$c=["sourceUrlsFormWrapper"],m$c=["feedbackHeader"],COa=new Map([["incorrect_info","Factual errors"],["incorrect_url","Broken/incorrect links"],["repetitive","Repetitive"],["irrelevant","Irrelevant information"],["hallucinated_api","Hallucinated libraries / APIs etc"],["incomplete_answer","Incomplete answer"],["followup_not_understood","Didn't understand followup"],["not_protected_content","Not protected"],["poor_use_of_tools","Poor use of tools"]]),n$c=new Map([["incorrect","incorrect_info"],
["incorrect_url","incorrect_url"],["repetitive","repetitive"],["irrelevant","irrelevant"],["hallucinated_api","hallucinated_api"],["incomplete_answer","incomplete_answer"],["followup_not_understood","followup_not_understood"],["not_protected_content","not_protected_content"],["poor_use_of_tools","poor_use_of_tools"]]),o$c=new dd("FeedbackReasonsFormTemplate"),PL=function(a,b){this.userStateService=a;this.conversationAgentsService=b;this.experimentsService=p(qA);this.sessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;
this.sourceUrlsFormWrapper=Pg.apply(null,["sourceUrlsFormWrapper"].concat(q([])));this.feedbackHeader=Pg.apply(null,["feedbackHeader"].concat(q([])));this.messageData=Og.required.apply(Og,q([]));this.hasPrivateContent=Og.required.apply(Og,q([]));this.close=Ng();this.submit=Ng();this.invalidFeedbackFormEnum=h$c;this.rewrittenResponse=this.otherReason="";this.isIncognitoMode$=this.userStateService.isEnforcedPrivateMode$;this.reasonChips="hallucinated_api incomplete_answer followup_not_understood incorrect_info incorrect_url irrelevant repetitive".split(" ");
this.error=1;this.selectedReasons=[];this.rewriteSourcesList=[""];this.ve={DuckieChatNegativeFeedbackCancelButton:201123}};
PL.prototype.ngOnInit=function(){var a,b=(a=this.messageData().feedback)==null?void 0:a.getFeedbackLabelsList();if(b)for(a=m(b),b=a.next();!b.done;b=a.next())b=b.value,n$c.has(b)&&this.selectedReasons.push(n$c.get(b));var c;if((c=this.messageData().feedback)==null?0:c.getFeedbackReason())this.otherReason=this.messageData().feedback.getFeedbackReason();var d;if((d=this.messageData().rewrite)==null?0:ui(d,2))c=this.messageData().rewrite,this.rewrittenResponse=ui(c,2);var e;if((e=this.messageData().rewrite)==
null?0:e.getSourceLinkList()){var f;this.rewriteSourcesList=((f=this.messageData().rewrite)==null?void 0:f.getSourceLinkList().slice())||[]}this.messageData().hasPrivateContent&&this.reasonChips.push("not_protected_content");e=this.conversationAgentsService;kC(e).modelId!==Bw.modelId&&kC(e).modelId!==twc.modelId&&kC(e).modelId!==uwc.modelId||this.reasonChips.push("poor_use_of_tools")};PL.prototype.ngAfterViewInit=function(){var a;(a=this.feedbackHeader())==null||a.nativeElement.scrollIntoView()};
PL.prototype.getIndex=function(a){return a};PL.\u0275fac=function(a){return new (a||PL)(Ve(mC),Ve(jC))};
PL.\u0275cmp=D({type:PL,selectors:[["feedback-reasons-form"]],viewQuery:function(a,b){a&1&&(og(b.sourceUrlsFormWrapper,l$c),og(b.feedbackHeader,m$c));a&2&&pg(2)},inputs:{messageData:[1,"messageData"],hasPrivateContent:[1,"hasPrivateContent"]},outputs:{close:"close",submit:"submit"},decls:18,vars:7,consts:function(){return[["feedbackHeader",""],["otherReasons",""],["sourceUrlsFormWrapper",""]," \ufffd0\ufffd ",[1,"heading"],[1,"gmat-subhead-1"],["mat-icon-button","","aria-label","Close feedback form",
1,"close-button",3,"click"],["multiple","","aria-label","Select feedback reasons",3,"change"],["appearance","hairline-filter",3,"value","selected"],[1,"feedback-form-submit"],[1,"invalid-form-error"],["mat-stroked-button","","color","primary",3,"click","ve","veClick","veImpression"],["mat-raised-button","","color","primary",3,"click"],[3,"showWarning"],["appearance","outline","floatLabel","auto"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","2","placeholder","Share what could be improved in the response",
"aria-label","Other negative feedback reason(s)",1,"other-reasons-input",3,"ngModelChange","ngModel"]]},template:function(a,b){if(a&1){var c=t();K(0,"div",4)(1,"p",5,0);Q(3,"Reasons for feedback (Select all that apply)");L();K(4,"button",6);N("click",function(){u(c);return v(b.close.emit())});K(5,"mat-icon");Q(6," close ");L()()();K(7,"mat-chip-listbox",7);N("change",function(d){u(c);b.selectedReasons=d.value;return v()});Nf(8,DOa,2,3,"mat-chip-option",8,Mf);L();F(10,GOa,2,1);T(11,"async");K(12,"div",
9);F(13,HOa,2,1,"mat-error",10);K(14,"button",11);N("click",function(){u(c);return v(b.close.emit())});Q(15," Cancel ");L();K(16,"button",12);N("click",function(){u(c);if(b.otherReason.length===0&&b.selectedReasons.length===0)b.error=4;else if(!b.sourceUrlsFormWrapper()||b.sourceUrlsFormWrapper().getError()===1){var d,e;if((d=b.sourceUrlsFormWrapper())==null)d=void 0;else if(d.componentRef)d=d.componentRef.instance.rewriteSourcesList;else{var f,g;d=(g=(f=d.defaultSourceUrlsForm())==null?void 0:f.rewriteSourcesList)!=
null?g:[]}f=(e=d)!=null?e:[];b.submit.emit({feedbackReason:b.otherReason||void 0,feedbackLabels:b.selectedReasons,rewrittenResponse:"",rewrittenResponseSources:f})}return v()});Q(17," Submit ");L()()}a&2&&(B(8),Of(b.reasonChips),B(2),G(U(11,5,b.isIncognitoMode$)?-1:10),B(3),G(b.error!==b.invalidFeedbackFormEnum.NO_ERROR?13:-1),B(),I("ve",b.ve.DuckieChatNegativeFeedbackCancelButton)("veClick",!0)("veImpression",!0))},dependencies:[by,DE,xj,fE,mE,mB,kB,gB,iB,dL,UK,bL,aL,UD,HD,SD,KD,ID,HE,VD,FE,YD,wK,
Ly,Jy,OL,ZD,hD,gD,Tx],styles:["[_nghost-%COMP%]:not(:empty){border:1px solid var(--hairline);border-radius: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;gap:8px;margin-top:8px;padding:12px 24px;position:relative}[_nghost-%COMP%]:not(:empty)   mat-chip-listbox[_ngcontent-%COMP%], [_nghost-%COMP%]:not(:empty)   mat-form-field[_ngcontent-%COMP%]{margin-bottom:4px}[_nghost-%COMP%]:not(:empty)   button[_ngcontent-%COMP%]{-webkit-align-self:baseline;-ms-flex-item-align:baseline;align-self:baseline}.heading[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.feedback-form-submit[_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;gap:16px;-webkit-box-pack:end;-webkit-justify-content:end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:end}.header-with-tooltip[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:8px}.help-button[_ngcontent-%COMP%]{text-align:center;text-decoration:none}.help-icon[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:16px;height:16px}.invalid-form-error[_ngcontent-%COMP%]{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;font-size:14px;margin-right:auto}.invalid-rewrite-source-input[_ngcontent-%COMP%]{font-size:14px}.rewrite-source[_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}.rewrite-source-input[_ngcontent-%COMP%]{max-height:50px;width:100%}.rewrite-source-input-header[_ngcontent-%COMP%]{color:var(--text-secondary);font-family:Google Sans,Roboto;font-size:14px;margin-bottom:8px}.rewrite-source-input-row[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}"],
changeDetection:0});var p$c=["customFeedbackReasonsForm"],QL=function(){this.messageData=Og.required.apply(Og,q([]));this.hasPrivateContent=Og.required.apply(Og,q([]));this.close=Ng();this.submit=Ng();this.feedbackReasonsFormTemplate=p(o$c,{optional:!0});this.customFeedbackReasonsForm=Pg.apply(null,["customFeedbackReasonsForm"].concat(q([{read:eg}])))};
QL.prototype.ngAfterViewInit=function(){var a=this;this.feedbackReasonsFormTemplate&&this.customFeedbackReasonsForm()&&(this.componentRef=this.customFeedbackReasonsForm().createComponent(this.feedbackReasonsFormTemplate),this.componentRef.instance.messageData=this.messageData,this.componentRef.instance.hasPrivateContent=this.hasPrivateContent,this.componentRef.instance.close.subscribe(function(){a.close.emit()}),this.componentRef.instance.submit.subscribe(function(b){a.submit.emit(b)}))};
QL.\u0275fac=function(a){return new (a||QL)};
QL.\u0275cmp=D({type:QL,selectors:[["feedback-reasons-form-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customFeedbackReasonsForm,p$c,eg);a&2&&pg()},inputs:{messageData:[1,"messageData"],hasPrivateContent:[1,"hasPrivateContent"]},outputs:{close:"close",submit:"submit"},decls:2,vars:1,consts:[["customFeedbackReasonsForm",""],[3,"messageData","hasPrivateContent"],[3,"close","submit","messageData","hasPrivateContent"]],template:function(a,b){a&1&&F(0,IOa,2,0,"ng-container")(1,JOa,1,2,"feedback-reasons-form",
1);a&2&&G(b.feedbackReasonsFormTemplate?0:1)},dependencies:[by,PL],encapsulation:2,changeDetection:0});var RL=function(){};RL.prototype.create=function(){var a=eta();return new iIc(a,{withCredentials:!0,suppressCorsPreflight:!0})};RL.\u0275fac=function(a){return new (a||RL)};RL.\u0275prov=Dc({token:RL,factory:RL.\u0275fac,providedIn:"root"});var SL=function(a){this.duckieBackendServicePromiseClientFactory=a;this.client=this.duckieBackendServicePromiseClientFactory.create()};SL.prototype.provideFeedback=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.provideFeedback(a),2):c.return(c.yieldResult)})};SL.prototype.provideRewrite=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.provideRewrite(a),2):c.return(c.yieldResult)})};SL.\u0275fac=function(a){return new (a||SL)(Xc(RL))};
SL.\u0275prov=Dc({token:SL,factory:SL.\u0275fac,providedIn:"root"});var q$c=new dd("FeedbackWithRewriteTemplate"),TL=function(a,b,c,d){this.userStateService=a;this.threadService=b;this.duckieEventTrackerService=c;this.duckieFeedbackService=d;this.messageData=Og.required.apply(Og,q([]));this.currFeedbackId="";this.hasFeedbackFormContent=this.wasFeedbackSubmitted=this.showReasonsForm=!1;this.currFeedback=new JA;this.currRewrite=new yi;this.confirmationMessage="Thank you for your feedback, it helps improve Duckie";this.isIncognitoMode$=this.userStateService.isEnforcedPrivateMode$;
this.hasPrivateContent$=this.threadService.currentThread$.pipe(A(function(e){return e?e.privacyMode===2:!1}));this.ve={DuckieChatResponseUpvoteButton:201122,DuckieChatResponseDownvoteButton:201121}};TL.prototype.ngOnInit=function(){var a;if((a=this.messageData().feedback)==null||!a.getIsDeleted()){var b;(b=this.messageData().feedback)==null||b.getFeedbackType();this.currFeedback=this.messageData().feedback}this.messageData().rewrite&&(this.currRewrite=this.messageData().rewrite)};
TL.prototype.provideRewrite=function(a){var b=this,c,d,e;return y(function(f){c=b.messageData().id;d=(new eGc).setText(a.rewrittenResponse).setMessageId(c);a.rewrittenResponseSources.length>0&&(e=a.rewrittenResponseSources.filter(function(g){return g.length>0}),d.addAllSourceLink(e));b.currRewrite=XEc(new yi,d.getText()).setSourceLinkList(d.getSourceLinkList());b.wasFeedbackSubmitted=!0;return z(f,b.duckieFeedbackService.provideRewrite(d),0)})};
TL.prototype.provideFeedback=function(a,b){var c=this,d,e,f,g,k,l,r,w;return y(function(x){if(x.nextAddress==1)return d=c.messageData().id,e=(new AB).setFeedbackType(a?1:2).setMessageId(d),c.hasFeedbackFormContent=((f=b)==null?void 0:f.feedbackReason)!==void 0||((g=b)==null?void 0:g.feedbackLabels.length)>0,((k=b)==null?0:k.feedbackReason)&&e.setFeedbackReason(b.feedbackReason),((l=b)==null?void 0:l.feedbackLabels.length)>0&&e.setFeedbackLabelsList((r=b)==null?void 0:r.feedbackLabels),((w=b)==null?
void 0:w.rewrittenResponseSources.length)>0?z(x,c.provideRewrite(b),2):x.jumpTo(2);jD(c.duckieEventTrackerService,a?201122:201121,c.messageData());c.wasFeedbackSubmitted=!0;return z(x,c.duckieFeedbackService.provideFeedback(e).then(function(C){c.currFeedbackId=C.getFeedbackId();c.currFeedback=(new JA).setFeedbackLabelsList(e.getFeedbackLabelsList()).setFeedbackReason(e.getFeedbackReason()).setFeedbackType(e.getFeedbackType()).setFeedbackId(c.currFeedbackId)}),0)})};
TL.\u0275fac=function(a){return new (a||TL)(Ve(mC),Ve(FD),Ve(iD),Ve(SL))};
TL.\u0275cmp=D({type:TL,selectors:[["feedback-with-rewrite"]],inputs:{messageData:[1,"messageData"]},decls:6,vars:5,consts:[[1,"vote-row"],["mat-icon-button","","aria-label","Provide feedback",3,"click","ve","veClick","veImpression"],[1,"feedback-confirmation"],[3,"messageData","hasPrivateContent"],[1,"gmat-body-2"],[3,"close","submit","messageData","hasPrivateContent"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"button",1),N("click",function(){b.showReasonsForm=!0;b.provideFeedback(!1)}),K(2,"mat-icon"),
Q(3,"feedback"),L()(),F(4,KOa,3,1,"div",2),L(),F(5,LOa,2,4,"feedback-reasons-form-wrapper",3));a&2&&(B(),I("ve",b.ve.DuckieChatResponseDownvoteButton)("veClick",!0)("veImpression",!0),B(3),G(b.hasFeedbackFormContent?4:-1),B(),G(b.showReasonsForm?5:-1))},dependencies:[by,QL,mB,kB,iB,iK,Ly,Jy,hD,gD,Tx],styles:["button[_ngcontent-%COMP%]{overflow:hidden}.gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;color:var(--text-secondary);font-size:20px;padding:2px}.gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon.is-selected[_ngcontent-%COMP%]{color:var(--primary-default)}.gmat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]{--mat-button-text-state-layer-color:var(--text-secondary);--mat-button-text-label-text-color:var(--text-secondary);--private-gmat-button-text-stateful-color:var(--primary-default)}.gmat-mdc-button.mat-mdc-button.mat-unthemed.is-selected[_ngcontent-%COMP%]{color:var(--primary-default)}.feedback-confirmation[_ngcontent-%COMP%]{margin-left:16px}.vertical-divider[_ngcontent-%COMP%]{height:24px;border-width:medium;border-color:var(--hairline)}.vote-row[_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}.vote-row[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Google Sans,Roboto;margin-right:4px}"],
changeDetection:0});var r$c=["customFeedbackWithRewrite"],UL=function(){this.messageData=Og.required.apply(Og,q([]));this.feedbackWithRewriteTemplate=p(q$c,{optional:!0});this.customFeedbackWithRewrite=Pg.apply(null,["customFeedbackWithRewrite"].concat(q([{read:eg}])))};UL.prototype.ngAfterViewInit=function(){this.feedbackWithRewriteTemplate&&this.customFeedbackWithRewrite()&&(this.componentRef=this.customFeedbackWithRewrite().createComponent(this.feedbackWithRewriteTemplate),this.componentRef.instance.messageData=this.messageData)};
UL.\u0275fac=function(a){return new (a||UL)};UL.\u0275cmp=D({type:UL,selectors:[["feedback-with-rewrite-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customFeedbackWithRewrite,r$c,eg);a&2&&pg()},inputs:{messageData:[1,"messageData"]},decls:2,vars:1,consts:[["customFeedbackWithRewrite",""],[3,"messageData"]],template:function(a,b){a&1&&F(0,MOa,2,0,"ng-container")(1,NOa,1,1,"feedback-with-rewrite",1);a&2&&G(b.feedbackWithRewriteTemplate?0:1)},dependencies:[by,TL],encapsulation:2,changeDetection:0});var s$c=["customInteractiveElements"],VL=function(){this.interactiveElements=Og.apply(null,q([]));this.interactiveElementsTemplate=p(x7c,{optional:!0});this.customInteractiveElements=Pg.apply(null,["customInteractiveElements"].concat(q([{read:eg}])))};
VL.prototype.ngAfterViewInit=function(){this.interactiveElementsTemplate&&this.customInteractiveElements()&&(this.componentRef=this.customInteractiveElements().createComponent(this.interactiveElementsTemplate),this.componentRef.instance.interactiveElements=ng.apply(null,[this.interactiveElements()].concat(q([]))))};VL.\u0275fac=function(a){return new (a||VL)};
VL.\u0275cmp=D({type:VL,selectors:[["interactive-elements-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customInteractiveElements,s$c,eg);a&2&&pg()},inputs:{interactiveElements:[1,"interactiveElements"]},decls:2,vars:1,consts:[["customInteractiveElements",""],[3,"interactiveElements"]],template:function(a,b){a&1&&F(0,OOa,2,0,"ng-container")(1,POa,1,1,"interactive-elements",1);a&2&&G(b.interactiveElementsTemplate?0:1)},dependencies:[by,RJ],encapsulation:2,changeDetection:0});var WL=function(a){this.dialog=a};WL.prototype.openUserPrivacySettingsDialog=function(){this.dialog.open(mL,u9c)};WL.\u0275fac=function(a){return new (a||WL)(Ve(UA))};
WL.\u0275cmp=D({type:WL,selectors:[["private-citation-chip-tooltip"]],decls:5,vars:3,consts:[["privateCitationTooltip",""],["tabindex","0","role","button","aria-label","Personal citation information","dialogLabel","Personal citation tooltip",1,"citation-chip","text-secondary","flex-row","align-items-center","gap-xs","rounded-full","bordered","padded-xs-x",3,"xapInlineDialog","hoverDelayMs","dialogTabIndex"],[1,"tooltip-container","gap","padded","bg-surface-container","flex-column"],[1,"tooltip-actions",
"flex-row","gap-s"],["mat-button","","color","primary",3,"click"]],template:function(a){a&1&&(K(0,"div",1)(1,"mat-icon"),Q(2,"privacy_tip"),L()(),E(3,QOa,5,0,"ng-template",null,0,Mg));a&2&&(a=qg(4),I("xapInlineDialog",a)("hoverDelayMs",100)("dialogTabIndex",0))},dependencies:[by,Ly,Jy,mB,kB,gB,hL],styles:["[_nghost-%COMP%]   .tooltip-container[_ngcontent-%COMP%]{max-width:300px}[_nghost-%COMP%]   .tooltip-container[_ngcontent-%COMP%]   .tooltip-actions[_ngcontent-%COMP%]{margin-left:-8px}"],changeDetection:0});var t$c=new dd("MessageCitationsTemplate"),u$c=function(a){var b=this;this.duckieEventTrackerService=a;this.messageData=Og.required.apply(Og,q([]));this.citedNonRecitationDocuments=Zg.apply(null,[function(){var c,d;return(d=(c=b.messageData().relatedResources)==null?void 0:c.flatMap(function(e){var f,g;return(g=(f=km(e))==null?void 0:lm(f).filter(function(k){return!xi(k,OEc,8)}))!=null?g:[]}))!=null?d:[]}].concat(q([])));this.recitationSources=Zg.apply(null,[function(){var c,d;return(d=(c=b.messageData().relatedResources)==
null?void 0:c.flatMap(function(e){var f,g;return(g=(f=km(e))==null?void 0:lm(f).filter(function(k){return xi(k,OEc,8)}))!=null?g:[]}))!=null?d:[]}].concat(q([])));this.ve={DuckieChatResponseCitationLink:201128};this.experimentsService=p(qA)},YOa=function(a){a=a.getTitle()||a.getUrl();return a.length>30?a.substring(0,27)+"...":a},VOa=function(a,b){var c=a.messageData().id;if(c){var d,e=a.duckieEventTrackerService,f=new cm;var g=new qC;var k=b.getUrl();g=oj(g,1,k);k=b.getIconUrl();g=oj(g,3,k);mMa(e,
nMa(bJc(f,g.setIsPrivateDocument(b.getIsPrivateDocument())).setMessageId(c).setSessionId((d=a.messageData().sessionId)!=null?d:"")),201128)}};u$c.\u0275fac=function(a){return new (a||u$c)(Ve(iD))};
u$c.\u0275cmp=D({type:u$c,selectors:[["message-citations"]],inputs:{messageData:[1,"messageData"]},decls:2,vars:2,consts:[[1,"references-title","gmat-subhead-2"],[1,"citation-item","flex-row","align-items-center","gap-s","padded-s-bottom"],["aria-hidden","true","fontSet","google-symbols",1,"external-icon"],["aria-hidden","true","alt","Icon for this cited website.",1,"citation-icon",3,"src"],["target","_blank",3,"click","href","ve","veClick","veImpression"],[1,"external-chip","citation-chip","flex-row",
"align-items-center","gap-xs","rounded-full"],[1,"margin-xs-left"],[1,"recitation-sources-list","margin-xs-top"],[1,"citation-item"],[1,"flex-row","align-items-center","gap-s","type-xs"]],template:function(a,b){a&1&&(F(0,XOa,4,0),F(1,$Oa,5,0));a&2&&(G(b.citedNonRecitationDocuments().length>0?0:-1),B(),G(b.experimentsService.recitationCheckingEnabled&&b.recitationSources().length>0?1:-1))},dependencies:[by,Ly,Jy,WL,hD,gD],styles:[".references-title[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:12px;padding:8px 0}.external-icon[_ngcontent-%COMP%]{font-size:18px;height:18px;margin:-1px;padding-right:8px;width:18px}.citation-icon[_ngcontent-%COMP%]{height:16px;padding-right:8px;width:16px}.citation-item[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.external-chip[_ngcontent-%COMP%]{background-color:var(--tonal-fill-yellow);border:1px solid var(--tonal-yellow)}.external-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--tonal-icon-yellow)}.execution-metadata-container[_ngcontent-%COMP%]{max-width:680px}.recitation-sources-list[_ngcontent-%COMP%]{-webkit-padding-start:12px;-moz-padding-start:12px;padding-inline-start:12px}.recitation-sources-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]::marker{font-size:.8em}.no-sources-content[_ngcontent-%COMP%]{color:var(--text-default);font-size:12px;font-weight:400;line-height:16px}"],
changeDetection:0});var v$c=["customMessageCitations"],XL=function(){this.messageData=Og.required.apply(Og,q([]));this.messageCitationsTemplate=p(t$c,{optional:!0});this.customMessageCitations=Pg.apply(null,["customMessageCitations"].concat(q([{read:eg}])))};XL.prototype.ngAfterViewInit=function(){this.messageCitationsTemplate&&this.customMessageCitations()&&(this.componentRef=this.customMessageCitations().createComponent(this.messageCitationsTemplate),this.componentRef.instance.messageData=ng.apply(null,[this.messageData()].concat(q([]))))};
XL.\u0275fac=function(a){return new (a||XL)};XL.\u0275cmp=D({type:XL,selectors:[["message-citations-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customMessageCitations,v$c,eg);a&2&&pg()},inputs:{messageData:[1,"messageData"]},decls:2,vars:1,consts:[["customMessageCitations",""],[3,"messageData"]],template:function(a,b){a&1&&F(0,aPa,2,0,"ng-container")(1,bPa,1,1,"message-citations",1);a&2&&G(b.messageCitationsTemplate?0:1)},dependencies:[by,u$c],encapsulation:2,changeDetection:0});var YL=function(){this.expansionStates=new Map};YL.prototype.isExpanded=function(a){var b;return(b=this.expansionStates.get(a))!=null?b:!1};YL.\u0275fac=function(a){return new (a||YL)};YL.\u0275prov=Dc({token:YL,factory:YL.\u0275fac,providedIn:"root"});var ZL=function(){this.duckieLoadingPhrases="Quacking the code...;Getting my ducks in a row...;Paddling through the algorithms...;Ruffling some feathers in the neural net...;Waddling towards an answer...;This might be a wild goose chase... hold on.;Just winging it...;Consulting the pond of knowledge...;Don't get your feathers in a ruffle...;Filtering the data stream...;Hope this response fits the bill...;Compiling the quack-end...;My logic is im-peck-able.;Putting this on your bill...;Diving deep for the best data...;Everything is just ducky.;Warming up the breadcrumb processors...;What time do I wake up? At the quack of dawn.;Let's get this bread... crumb of information.;Preening my algorithms...;Making sure this isn't a fowl response...;This is some fowl language... (the code, I mean).;Taking to this like a duck to water...;Letting bad data roll off like water off a duck's back.;No need to duck and cover, I'm on it.;I'm no sitting duck, I'm processing!;What's a duck's favorite ballet? The Nutquacker.;Why was the duck a good detective? He always quacked the case.;Sorting the pecking order of information...;Deploying the rubber duck for debugging...;This response is anything but poultry.;Fetching results from the duck-umentation...;Down-loading the necessary files...;I've got a bill-ion ideas... narrowing it down.;Flapping my wings at ludicrous speed...;Migrating south for the winter... I mean, to a different server.;Don't worry, I'm a professional quack.;Let me take a quack at it.;Quack-ulating the possibilities...;Checking the web... feet and internet.;This is sure to quack you up.;I find your request... duck-lightful.;This is going swimmingly.;I'm feeling quite buoyant about this query.;One moment, preening my code.;Just hatching a new idea...;Don't count your ducks before they've hatched.;This better be all it's quacked up to be.;Running a bill-d... I mean, build.;Aflack-ing the servers for information...;I'm not just winging it, I have a plan!;Quacking the code;Loading quack-er-jack style;Preparing for the quack-ening;Making a quick quack-stop;Awaiting the final quack of approval;The server is singing a honking good tune;Getting the honk-key to the files;The little peep of success is coming;This is going to be quack-tastic;Just a moment, I'm quack-sperimenting;Running a quack-diagnosis;Thinking... *paddles silently*;The server is making happy honks;About to quack open the results;Data streams are quacking along;The data is about to peep out;Finishing the final quack-ter of the load;Making sure all the duckweed is cleared;The server is in a puddle of thought;Putting on my gaiters;Thinking with grace and paddling underneath;Time to dive into the next task;Splish-splash, thinking fast;Warming up the brood of results".split(";")},
w$c=function(a){return a.duckieLoadingPhrases[Math.floor(Math.random()*a.duckieLoadingPhrases.length)]};ZL.\u0275fac=function(a){return new (a||ZL)};ZL.\u0275prov=Dc({token:ZL,factory:ZL.\u0275fac,providedIn:"root"});var fPa=function(a){return{parts:a}},lPa=function(a){return{part:a}},x$c=new dd("MessagePartsTemplate"),$L=function(a,b){var c=this;this.elementRef=a;this.markdownService=b;this.executionMetadata=Og.required.apply(Og,q([]));this.executionMetadata$=rya(this.executionMetadata);this.hasRedactions=Og.required.apply(Og,q([]));this.shouldExpand=Og.apply(null,[!1].concat(q([])));this.isStreamingThoughts=Og.required.apply(Og,q([]));this.isStreamingThoughts$=rya(this.isStreamingThoughts);this.phrasePool$=
this.executionMetadata$.pipe(A(function(d){return y$c(c,d)}),nf(function(d,e){return d.length!==e.length?!1:d.every(function(f,g){return f.text===e[g].text&&f.isFunctionCall===e[g].isFunctionCall})}),xf([]));this.messageParts=new Mj([]);this.experimentsService=p(qA);this.jokesService=p(ZL);this.messagePartsService=p(YL);this.id=Dsa();this.messagePartData=new Mj({id:this.id,isExpanded:this.shouldExpand(),hiddenMessageParts:[],hasAnyThought:!1});this.messagePartsElement=this.elementRef.nativeElement;
this.duckieLoadingPhrase$=ie([this.phrasePool$,this.isStreamingThoughts$]).pipe(yf(function(d){var e=m(d);d=e.next().value;if(!e.next().value)return ce(w$c(c.jokesService));d=[].concat(q(d));var f=function(g){return g.length>0?g.shift():{text:w$c(c.jokesService),isFunctionCall:!1}};e=f(d);return ce({phrase:e,queue:d}).pipe(mla(function(g){return re(5E3).pipe(A(function(){return{phrase:f(g.queue),queue:g.queue}}))}),A(function(g){return g.phrase.text}))}),xf(w$c(this.jokesService)),nf())};
$L.prototype.ngOnChanges=function(){var a=this,b,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:if(!a.executionMetadata()){k.jumpTo(0);break}b=z$c(a,a.executionMetadata());c=m(b);d=c.next();case 3:if(d.done){k.jumpTo(5);break}e=d.value;if(!e.text){k.jumpTo(4);break}return z(k,A$c(a,e.text),7);case 7:e.html=k.yieldResult;case 4:d=c.next();k.jumpTo(3);break;case 5:a.messageParts.next(b),g=(f=a.messagePartsService.isExpanded(a.id))!=null?f:!a.hasRedactions()&&a.shouldExpand(),a.messagePartsService.expansionStates.set(a.id,
g),a.messagePartData.next({id:a.id,isExpanded:g,hiddenMessageParts:b,hasAnyThought:b.some(function(l){return l.isThought})}),ae(k)}})};
var y$c=function(a,b){var c=[];c.push({text:w$c(a.jokesService),isFunctionCall:!1});b&&z$c(a,b).forEach(function(d){d.functionCalls.forEach(function(e){var f=c.push,g=e.name;e=Array.from(e.args.entries());var k="";if(e.length>0){var l=m(e[0]);k=l.next().value;l=l.next().value;l.startsWith('"')&&l.endsWith('"')&&(l=l.slice(1,-1));k=" ("+k+': "'+l+'")';e.length>1&&(k+="...")}f.call(c,{text:"Executing: "+g+k,isFunctionCall:!0})})});return c},z$c=function(a,b){var c=[];(b==null?void 0:Bi(b,IA,9,Ci()).flatMap(function(d){return d.getPartsList()})).forEach(function(d){var e=
[],f,g=(f=d.getText())!=null?f:"";if(d.hasFunctionCall()){var k=new Map;f=d.getFunctionCall().getName();var l,r;(r=(l=d.getFunctionCall().getArgs())==null?void 0:wc(l,1,DA,Vb))==null||r.forEach(function(w,x){w=B$c(a,w);k.set(x,w)});e.push({name:f,args:k})}c.push({text:g,functionCalls:e,isThought:d.getThought()})});return c},B$c=function(a,b){var c="";if(b.hasStringValue())c='"'+b.getStringValue()+'"';else if($Wa(b,EA))c=String(em(b,Hi(b,EA,2)));else if(fyc(b,Hi(b,EA,4))!=null)c=String(Fi(b,Hi(b,EA,
4)));else if(Qi(b,FA,6,EA)){var d;c="["+((d=bm(b,FA,6,EA))==null?void 0:d.getValuesList().map(function(g){return B$c(a,g)}).join(", "))+"]"}else if(Qi(b,CA,5,EA)){var e=[],f;(f=bm(b,CA,5,EA))==null||wc(f,1,DA,Vb).forEach(function(g,k){e.push(k+": "+B$c(a,g))});c="{"+e.join(", ")+"}"}return c},A$c=function(a,b){return y(function(c){return c.nextAddress==1?z(c,FMc(a.markdownService,b),2):c.return(c.yieldResult||Bh(b))})};$L.\u0275fac=function(a){return new (a||$L)(Ve(Hd),Ve(oD))};
$L.\u0275cmp=D({type:$L,selectors:[["message-parts"]],inputs:{executionMetadata:[1,"executionMetadata"],hasRedactions:[1,"hasRedactions"],shouldExpand:[1,"shouldExpand"],isStreamingThoughts:[1,"isStreamingThoughts"]},features:[jx],decls:6,vars:3,consts:[["messagePartContent",""],["functionCallDisplay",""],[1,"padding-xs","rounded-s","message-parts-container"],[1,"gmat-body-2","flex-row"],["matButton","","aria-label","Toggle Duckie thoughts panel","aria-controls","duckie-thoughts-content",1,"thinking-button",
3,"click"],["iconPositionEnd",""],["id","duckie-thoughts-content",1,"rounded-s","function-calls-panel"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mode","indeterminate",1,"thinking-button-spinner","align-self-center","margin-auto-y","margin-s-right",3,"diameter"],[1,"padded-top","fit-content-width","message-part-text","gmat-body-2",3,"innerHtml"],[1,"function-call-wrapper","flex-column","gap-s","margin-s-top"],[1,"function-call"],[1,"gmat-body-2"],[1,"bold"],[1,"flex-column"],[1,"kv-pair",
"margin-s-left","gmat-body-2"],[1,"key"],[1,"value"]],template:function(a,b){a&1&&(F(0,jPa,2,1),T(1,"async"),E(2,oPa,2,0,"ng-template",null,0,Mg)(4,rPa,3,0,"ng-template",null,1,Mg));if(a&2){var c;G((c=U(1,1,b.messagePartData))?0:-1,c)}},dependencies:[by,Sx,mB,kB,gB,Ly,Jy,wK,rK,qK,yI,Tx],styles:["[_ngcontent-%COMP%]: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}.mat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]{background:var(--tonal-fill-grey)}.mat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]     .mdc-button__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.function-calls-panel[_ngcontent-%COMP%]{background:var(--tonal-fill-grey);max-height:1000vh;overflow:auto}.function-calls-panel.hidden[_ngcontent-%COMP%]{max-height:0;margin:0}.function-calls-panel.hidden[_ngcontent-%COMP%]   .function-call-wrapper[_ngcontent-%COMP%]{max-height:0;overflow:hidden}.thinking-button[_ngcontent-%COMP%]{margin-bottom:16px;padding-left:16px;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}.function-call-wrapper[_ngcontent-%COMP%]{background:var(--tonal-fill-grey);padding:8px;overflow:auto hidden;margin-top:0;max-height:1000vh}.function-call-wrapper[_ngcontent-%COMP%]   .function-call[_ngcontent-%COMP%]   .kv-pair[_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;gap:4px}.function-call-wrapper[_ngcontent-%COMP%]   .function-call[_ngcontent-%COMP%]   .kv-pair[_ngcontent-%COMP%]   .key[_ngcontent-%COMP%]{color:var(--tonal-purple)}.function-call-wrapper[_ngcontent-%COMP%]   .function-call[_ngcontent-%COMP%]   .kv-pair[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{color:var(--tonal-green)}.function-call-wrapper.hidden[_ngcontent-%COMP%]{max-height:0;margin:0}.function-call-wrapper.hidden[_ngcontent-%COMP%]   .function-call-wrapper[_ngcontent-%COMP%]{max-height:0;overflow:hidden}.thinking-button-spinner[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}.message-parts-container[_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}.message-parts-container[_ngcontent-%COMP%]   .expand-button[_ngcontent-%COMP%]{border-radius:24px;border:none;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;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;width:28px;height:20px;margin-inline:2px;margin:0;padding:1px 6px}.message-parts-container[_ngcontent-%COMP%]   .expand-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:var(--text-default);font-size:1.125em;font-weight:500;line-height:normal;width:auto;height:auto;-webkit-transform:translateY(1px);transform:translateY(1px);-webkit-transition:-webkit-transform 333ms;transition:-webkit-transform 333ms;transition:transform 333ms;transition:transform 333ms,-webkit-transform 333ms}.message-parts-container[_ngcontent-%COMP%]   .expand-button.is-expanded[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.message-parts-container[_ngcontent-%COMP%]     .message-part-text>:last-child{display:inline-block}.message-parts-container[_ngcontent-%COMP%]     .message-part-text>p:last-child{display:inline}"],
changeDetection:0});var C$c=["customMessageParts"],aM=function(){this.executionMetadata=Og.required.apply(Og,q([]));this.hasRedactions=Og.required.apply(Og,q([]));this.shouldExpand=Og.apply(null,[!1].concat(q([])));this.isStreamingThoughts=Og.apply(null,[!1].concat(q([])));this.messagePartsTemplate=p(x$c,{optional:!0});this.customMessageParts=Pg.apply(null,["customMessageParts"].concat(q([{read:eg}])))};
aM.prototype.ngAfterViewInit=function(){this.messagePartsTemplate&&this.customMessageParts()&&(this.componentRef=this.customMessageParts().createComponent(this.messagePartsTemplate),this.componentRef.instance.executionMetadata=ng.apply(null,[this.executionMetadata()].concat(q([]))),this.componentRef.instance.hasRedactions=ng.apply(null,[this.hasRedactions()].concat(q([]))),this.componentRef.instance.shouldExpand=ng.apply(null,[this.shouldExpand()].concat(q([]))))};
aM.\u0275fac=function(a){return new (a||aM)};
aM.\u0275cmp=D({type:aM,selectors:[["message-parts-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customMessageParts,C$c,eg);a&2&&pg()},inputs:{executionMetadata:[1,"executionMetadata"],hasRedactions:[1,"hasRedactions"],shouldExpand:[1,"shouldExpand"],isStreamingThoughts:[1,"isStreamingThoughts"]},decls:2,vars:1,consts:[["customMessageParts",""],[3,"executionMetadata","hasRedactions","shouldExpand","isStreamingThoughts"]],template:function(a,b){a&1&&F(0,sPa,2,0,"ng-container")(1,tPa,1,4,"message-parts",
1);a&2&&G(b.messagePartsTemplate?0:1)},dependencies:[by,$L],encapsulation:2,changeDetection:0});var D$c=function(){};D$c.\u0275fac=function(a){return new (a||D$c)};
D$c.\u0275cmp=D({type:D$c,selectors:[["typing-dots"]],hostAttrs:[1,"flex-row","gap"],decls:4,vars:0,consts:[[1,"typing"]],template:function(a){a&1&&(Qf(0,"span",0),Sf(1,"span")(2,"span")(3,"span"),Rf())},styles:['.typing[_ngcontent-%COMP%]{height:24px;position:relative;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;background:var(--tonal-fill-grey);border-radius:30px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:0 8px;gap:4px;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}@media (max-width:800px){.typing[_ngcontent-%COMP%]{margin-bottom:8px}}.typing[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;-webkit-animation:_ngcontent-%COMP%_blink 1.5s infinite;animation:_ngcontent-%COMP%_blink 1.5s infinite;-webkit-animation-fill-mode:both;animation-fill-mode:both;background:var(--tonal-grey);border-radius:50%;content:"";height:4px;width:4px}.typing[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.2s;animation-delay:.2s}.typing[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}.use-compact-view[_nghost-%COMP%]   .typing[_ngcontent-%COMP%]{margin-bottom:8px}@-webkit-keyframes _ngcontent-%COMP%_blink{0%{opacity:.1}20%{opacity:1}to{opacity:.1}}@keyframes _ngcontent-%COMP%_blink{0%{opacity:.1}20%{opacity:1}to{opacity:.1}}'],changeDetection:0});var E$c=new dd("MessageTemplate"),bM=function(a,b){var c=this;this.elementRef=a;this.threadService=b;this.messageData=Og.required.apply(Og,q([]));this.useCompactView=Og.apply(null,[!1].concat(q([])));this.snackBar=p(rB);this.overridesService=p(AA);this.duckieEventTrackerService=p(iD);this.duckieFeedbackService=p(SL);this.avatarUrl="https://moma-teams-photos.corp.google.com/photos/me?sz=32";this.codeBlocksUpdated=this.graphvizElementsUpdated=!1;this.hasHiddenMessages=Zg.apply(null,[function(){var d=
c.messageData();return!d.isUser&&!!d.executionMetadata&&Bi(d.executionMetadata,IA,9,Ci()).length>0}].concat(q([])));this.experimentsService=p(qA);this.recitationSources=Zg.apply(null,[function(){var d,e;return(e=(d=c.messageData().relatedResources)==null?void 0:d.flatMap(function(f){var g,k;return(k=(g=km(f))==null?void 0:lm(g).filter(function(l){return xi(l,OEc,8)}))!=null?k:[]}))!=null?e:[]}].concat(q([])));this.agentDisplayName=Zg.apply(null,[function(){if(!c.messageData().isUser)return c.overridesService.overrideAgentMessageDisplayName}].concat(q([])));
this.agentIconUrl=Zg.apply(null,[function(){c.messageData()}].concat(q([])));this.messageElement=this.elementRef.nativeElement;this.isDuckieThinking$=this.threadService.isDuckieThinking$;this.showResponseMetadata$=this.overridesService.debugDisplayOptions$.pipe(A(function(d){return d.showResponseMetadata}))};
bM.prototype.ngAfterViewChecked=function(){var a=this;return y(function(b){var c=Array.from(a.messageElement.querySelectorAll("message .text-container a"));c=m(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.getAttribute("target")===null&&d.setAttribute("target","_blank"),d.querySelector("del")!==null&&d.setAttribute("title","Broken link");a.codeBlocksUpdated||F$c(a);if(!a.messageData().isUser&&!a.graphvizElementsUpdated&&(c=a.messageData().text)){d=Array.from(a.messageElement.querySelectorAll("g3mark-svg"));
c=[].concat(q(c.matchAll(/```dot\n([\s\S]*?)\n```/g)));d=m(d.entries());for(var e=d.next();!e.done;e=d.next()){var f=m(e.value);e=f.next().value;var g=f=f.next().value;f=document.createElement("div");f.classList.add("control-bar");g.appendChild(f);var k=f;g=g.dataset.graphId;g="https://graphviz.corp.google.com/#"+(g===void 0?"":g);var l=document.createElement("a");l.classList.add("open-in-new-tab-button");l.title="Open graphviz in new tab";l.ariaDisabled="false";l.target="_blank";Dra(l,g);k.appendChild(l);
G$c(a,f,c[e][1])}a.graphvizElementsUpdated=!0}ae(b)})};
var F$c=function(a){var b=Array.from(a.messageElement.querySelectorAll("message .text-container pre")).filter(function(c){var d=c.parentElement;c=d==null?void 0:d.classList.contains("execution-metadata-code");d=d==null?void 0:d.classList.contains("dot-error");return!(c||d)});b.length>0&&(H$c(a,b),a.codeBlocksUpdated=!0)},H$c=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=document.createElement("div");d.classList.add("code-block-addition-container");var e=void 0,f=((e=
c.querySelector("code"))==null?void 0:e.textContent)||"";I$c(a,c,d,f);J$c(a,c,d,f);f=void 0;e=Array.from(((f=c.querySelector("code"))==null?void 0:f.classList)||[]);f="CODE BLOCK";e.length>0&&(f=e.filter(function(g){return g.startsWith("language-")})[0].slice(9).toUpperCase());e=document.createElement("div");e.classList.add("code-title");e.textContent=f;f=document.createElement("span");f.classList.add("spacer");d.prepend(e,f);c.prepend(d)}},J$c=function(a,b,c,d){if(!b.querySelector(".copy-button")){var e=
document.createElement("button");e.classList.add("copy-button");e.setAttribute("aria-label","Copy code to clipboard");e.addEventListener("click",function(){var f,g,k;return y(function(l){if(l.nextAddress==1)return window.isSecureContext&&d?z(l,navigator.clipboard.writeText(d||""),3):l.jumpTo(0);if(l.nextAddress!=4)return f=document.createElement("div"),f.classList.add("copy-confirmation"),f.textContent="Copied to clipboard",f.setAttribute("role","alert"),b.appendChild(f),setTimeout(function(){b.removeChild(f)},
5E3),g=a.messageData().id,k=(new AB).setFeedbackType(3).setMessageId(g),z(l,a.duckieFeedbackService.provideFeedback(k),4);jD(a.duckieEventTrackerService,201931,a.messageData());ae(l)})});c.appendChild(e)}},I$c=function(a,b,c,d){b.querySelector("code").classList.contains("language-sql")&&(b=document.createElement("a"),b.classList.add("plx-button"),b.tabIndex=0,b.title="Open in Plx",b.ariaDisabled="false",b.target="_blank",window.isSecureContext&&d&&(d="https://plx.corp.google.com/scripts2/?a=go&engine=F1&sql="+
encodeURIComponent(d),Dra(b,d)),b.addEventListener("click",function(){return y(function(e){jD(a.duckieEventTrackerService,204817,a.messageData());ae(e)})}),c.appendChild(b))},G$c=function(a,b,c){var d=document.createElement("button");d.classList.add("copy-button");d.title="Copy Graphviz code to clipboard";b.appendChild(d);d.addEventListener("click",function(){var e,f,g;return y(function(k){if(k.nextAddress==1)return window.isSecureContext&&c?z(k,navigator.clipboard.writeText(c),3):k.jumpTo(0);if(k.nextAddress!=
4)return e=document.createElement("div"),e.classList.add("copy-confirmation"),e.textContent="Copied to clipboard",b.appendChild(e),setTimeout(function(){b.removeChild(e)},5E3),f=a.messageData().id,g=(new AB).setFeedbackType(3).setMessageId(f),z(k,a.duckieFeedbackService.provideFeedback(g),4);jD(a.duckieEventTrackerService,252593,a.messageData());ae(k)})})},JPa=function(a){var b=b===void 0?!0:b;var c=c===void 0?!1:c;var d,e,f,g;return y(function(k){if(k.nextAddress==1)return f=e=d="",b&&(d=a.getSourcesMarkdown()),
c&&(e=K$c(a)),g=a.messageData().text||"",e.length>0&&(f+="### Thinking:\n\n"+e+"\n\n### Response:\n\n"),g.length>0&&(f+=g),d.length>0&&(f+="\n\n### Sources:\n"+d),Wd(k,2),z(k,navigator.clipboard.writeText(f),4);if(k.nextAddress!=2)return a.snackBar.open("Copied message text to clipboard.","Dismiss",{duration:2E3}),dt(k,0);$d(k);a.snackBar.open("Failed to copy message text to clipboard.","Dismiss",{duration:4E3});ae(k)})};
bM.prototype.getSourcesMarkdown=function(){var a="",b,c;(b=this.messageData())==null||(c=b.relatedResources)==null||c.forEach(function(d){var e;(d=(e=km(d))==null?void 0:lm(e))&&d.length>0&&d.forEach(function(f){a+="\n* ["+f.getTitle().trim()+"]("+f.getUrl()+")"})});return a};
var K$c=function(a){var b="",c,d,e;(e=(c=a.messageData())==null?void 0:(d=c.executionMetadata)==null?void 0:Bi(d,IA,9,Ci()).flatMap(function(f){return f.getPartsList()}))==null||e.forEach(function(f){var g;f=(g=f.getText())!=null?g:"";f.length>0&&(b+=f+"\n\n")});return b};bM.\u0275fac=function(a){return new (a||bM)(Ve(Hd),Ve(FD))};
bM.\u0275cmp=D({type:bM,selectors:[["message"]],hostAttrs:[1,"flex-row","gap","margin-bottom"],hostVars:6,hostBindings:function(a,b){a&2&&wg("is-user",b.messageData().isUser)("is-duckie",!b.messageData().isUser)("use-compact-view",b.useCompactView())},inputs:{messageData:[1,"messageData"],useCompactView:[1,"useCompactView"]},decls:15,vars:11,consts:[["alt","Profile img for me",1,"user",3,"src"],["alt","Duckie logo",1,"duckie-logo","padded-xs",3,"src","custom-logo"],[1,"text-container","flex-column",
"gap-xs","full-width"],[1,"name","gmat-subhead-2"],[3,"hidden","executionMetadata","hasRedactions","shouldExpand","isStreamingThoughts"],[1,"recitation-sources-banner","margin-bottom","gmat-body-2","gap-s","type-s","padded-s","margin-s-top","align-items-center"],[1,"message-text","italic","gmat-body-2"],[1,"message-text","gmat-body-2","raw-text-only"],[3,"interactiveElements"],[3,"use-compact-view"],[1,"message-actions","flex-row","align-items-center"],["alt","Duckie logo",1,"duckie-logo","padded-xs",
3,"src"],[1,"warning-icon"],["href","http://go/code-ai-policy-faq","target","_blank",1,"type-s","flex-row","align-items-center","gap-xs","open-in-new-icon"],["inline",""],[1,"message-text","gmat-body-2",3,"innerHtml"],[3,"messageData"],["mat-icon-button","","aria-label","Copy message to clipboard","matTooltip","Copy message",1,"copy-message-button",3,"click"]],template:function(a,b){a&1&&(F(0,uPa,1,1,"img",0)(1,vPa,1,3,"img",1),K(2,"div",2)(3,"h3",3),F(4,wPa,1,0)(5,xPa,1,1),L(),M(6,"message-parts-wrapper",
4),F(7,yPa,8,0,"div",5),F(8,APa,2,2)(9,BPa,2,0,"p",6)(10,CPa,2,1,"p",7)(11,DPa,1,1,"interactive-elements-wrapper",8)(12,EPa,1,2,"typing-dots",9),F(13,HPa,3,4),F(14,KPa,5,1,"div",10),L());if(a&2){var c;G(b.messageData().isUser?0:1);B(4);G(b.messageData().isUser?4:5);B(2);I("hidden",!b.hasHiddenMessages())("executionMetadata",b.messageData().executionMetadata)("hasRedactions",b.messageData().hasRedactions)("shouldExpand",!1)("isStreamingThoughts",b.messageData().isStreamingThoughts);B();G(b.experimentsService.recitationCheckingEnabled&&
b.recitationSources().length>0?7:-1);B();G((c=b.messageData().textHtml)?8:b.messageData().hasRedactions?9:b.messageData().isUser?10:b.messageData().interactiveElements&&b.messageData().interactiveElements.length>0?11:12,c);B(5);G(!b.messageData().isUser&&b.messageData().text?13:-1);B();G(b.messageData().text?14:-1)}},dependencies:[by,UL,VL,mB,kB,iB,Ly,Jy,XL,g$c,aM,D$c,Tx],styles:['[_ngcontent-%COMP%]: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}[_nghost-%COMP%]{scroll-margin-top:8px}@media (max-width:800px){.is-user[_nghost-%COMP%]{padding:12px 12px 0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;background-color:var(--primary-container);border-radius:20px 4px 20px 20px}.is-duckie[_nghost-%COMP%]{padding:8px 8px 0}.duckie-logo[_ngcontent-%COMP%], .user[_ngcontent-%COMP%]{display:none}.name[_ngcontent-%COMP%]{width:0;height:0;overflow:hidden;margin:0;padding:0;position:absolute}}.use-compact-view.is-user[_nghost-%COMP%]{padding:12px 12px 0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;background-color:var(--primary-container);border-radius:20px 4px 20px 20px}.use-compact-view.is-user[_nghost-%COMP%]   .message-actions[_ngcontent-%COMP%]{display:none}.use-compact-view.is-duckie[_nghost-%COMP%]{padding:8px 8px 0}.use-compact-view[_nghost-%COMP%]   .duckie-logo[_ngcontent-%COMP%], .use-compact-view[_nghost-%COMP%]   .user[_ngcontent-%COMP%]{display:none}.use-compact-view[_nghost-%COMP%]   .name[_ngcontent-%COMP%]{width:0;height:0;overflow:hidden;margin:0;padding:0;position:absolute}.name.gmat-subhead-2[_ngcontent-%COMP%]{margin:unset}.duckie-logo[_ngcontent-%COMP%]{border-radius:24px;height:24px;width:24px;background-color:var(--tonal-fill-blue)}.custom-logo.duckie-logo[_ngcontent-%COMP%]{border-radius:32px;height:32px;width:32px;mix-blend-mode:luminosity;opacity:.5;padding:0}.user[_ngcontent-%COMP%]{border-radius:32px;height:32px;width:32px}.user-text[_ngcontent-%COMP%]{white-space:pre-wrap}.message-text[_ngcontent-%COMP%]{font-family:Google Sans,Roboto;overflow-wrap:anywhere;margin:0;white-space:normal}.message-text.raw-text-only[_ngcontent-%COMP%]{white-space:pre-wrap;-webkit-padding-after:.8em;padding-block-end:.8em}.message-text[_ngcontent-%COMP%]     p{word-break:break-word}.message-text[_ngcontent-%COMP%]     hr{height:0;border:0;border-top:1px solid var(--hairline)}.message-text[_ngcontent-%COMP%]     h1, .message-text[_ngcontent-%COMP%]     h2, .message-text[_ngcontent-%COMP%]     h3, .message-text[_ngcontent-%COMP%]     h4, .message-text[_ngcontent-%COMP%]     h5{font-weight:500}.message-text[_ngcontent-%COMP%]     h1{font-size:160%;font-weight:700}.message-text[_ngcontent-%COMP%]     h2{font-size:160%}.message-text[_ngcontent-%COMP%]     h3{font-size:140%}.message-text[_ngcontent-%COMP%]     h4{font-size:120%}.message-text[_ngcontent-%COMP%]     h5{font-size:100%}.message-text[_ngcontent-%COMP%]     h1, .message-text[_ngcontent-%COMP%]     h2, .message-text[_ngcontent-%COMP%]     h3, .message-text[_ngcontent-%COMP%]     h4, .message-text[_ngcontent-%COMP%]     h5{margin:0;-webkit-margin-before:.8em;margin-block-start:.8em;-webkit-margin-after:.8em;margin-block-end:.8em}.message-text[_ngcontent-%COMP%]     blockquote, .message-text[_ngcontent-%COMP%]     hr, .message-text[_ngcontent-%COMP%]     ol, .message-text[_ngcontent-%COMP%]     p, .message-text[_ngcontent-%COMP%]     ul{margin:0;-webkit-margin-before:.8em;margin-block-start:.8em;-webkit-margin-after:.8em;margin-block-end:.8em}.message-text[_ngcontent-%COMP%]    >:first-child{-webkit-margin-before:0;margin-block-start:0}.message-text[_ngcontent-%COMP%]     ol, .message-text[_ngcontent-%COMP%]     ul{-webkit-padding-start:calc(var(--base-px, 1rem)*2);-moz-padding-start:calc(var(--base-px, 1rem)*2);padding-inline-start:calc(var(--base-px, 1rem)*2)}.message-text[_ngcontent-%COMP%]     blockquote{background-color:var(--markdown-blockquote-background);border-left:4px solid var(--markdown-blockquote-border);color:var(--text-secondary);overflow:hidden;padding-left:8px}.message-text[_ngcontent-%COMP%]     ul{list-style:initial}.message-text[_ngcontent-%COMP%]     ul ul{list-style:circle}.message-text[_ngcontent-%COMP%]     ul ul ul{list-style:square}.message-text[_ngcontent-%COMP%]     ol ol, .message-text[_ngcontent-%COMP%]     ol ul, .message-text[_ngcontent-%COMP%]     ul ol, .message-text[_ngcontent-%COMP%]     ul ul{margin:0}.message-text[_ngcontent-%COMP%]     li{-webkit-margin-after:.2em;margin-block-end:.2em}.message-text[_ngcontent-%COMP%]     code, .message-text[_ngcontent-%COMP%]     pre{background-color:var(--surface-secondary);border-radius:2px;font-family:Roboto Mono,monospace}.message-text[_ngcontent-%COMP%]     pre{border:1px solid var(--hairline);overflow-x:auto}.message-text[_ngcontent-%COMP%]     code{color:var(--markdown-code);padding:0 2px}.message-text[_ngcontent-%COMP%]     pre code{color:var(--text-high-contrast);padding:0}.message-text[_ngcontent-%COMP%]     pre{padding:8px 16px}.message-text[_ngcontent-%COMP%]     pre, .message-text[_ngcontent-%COMP%]     pre code{line-height:1.5}.message-text[_ngcontent-%COMP%]     img{max-width:100%}.message-text[_ngcontent-%COMP%]     a, .message-text[_ngcontent-%COMP%]     a code{color:var(--primary-default);text-decoration:none}.message-text[_ngcontent-%COMP%]     a code:visited, .message-text[_ngcontent-%COMP%]     a:visited{color:var(--markdown-link-visited)}.message-text[_ngcontent-%COMP%]     pre code a{color:inherit;text-decoration:underline}.message-text[_ngcontent-%COMP%]     a:hover{text-decoration:underline}.message-text[_ngcontent-%COMP%]     a:focus{outline:1px auto -webkit-focus-ring-color}.message-text[_ngcontent-%COMP%]     table{border-collapse:collapse;margin:1em 0}.message-text[_ngcontent-%COMP%]     td, .message-text[_ngcontent-%COMP%]     th{background-color:var(--surface-default);border:1px solid var(--hairline);padding:4px 8px;vertical-align:top}.message-text[_ngcontent-%COMP%]     th{text-align:left;vertical-align:bottom;word-break:keep-all}.message-text[_ngcontent-%COMP%]     div.table-overflow{overflow-x:auto}.message-text[_ngcontent-%COMP%]     input[type=checkbox]{vertical-align:middle}.message-text[_ngcontent-%COMP%]     ol, .message-text[_ngcontent-%COMP%]     ul{-webkit-padding-start:calc(var(--base-px, 1rem)*16);-moz-padding-start:calc(var(--base-px, 1rem)*16);padding-inline-start:calc(var(--base-px, 1rem)*16)}.message-text[_ngcontent-%COMP%]     img:not(.citation-item){display:none}.message-text[_ngcontent-%COMP%]     pre{overflow-wrap:anywhere;position:relative;white-space:pre-wrap;border-radius:16px;border:none;padding:0 1em 1em}.message-text[_ngcontent-%COMP%]     .dot-error pre{color:var(--tonal-red);background:var(--tonal-fill-red)}.message-text[_ngcontent-%COMP%]     .dot-error pre:before{content:"Graphviz error: \\a";font-weight:700}.message-text[_ngcontent-%COMP%]     .code-block-addition-container{background-color:var(--tonal-fill-blue);border-bottom:3px solid var(--page-bg);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:.5em;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;height:2em;margin:0 -1em .5em;padding:.25em 1em}.message-text[_ngcontent-%COMP%]     .copy-button, .message-text[_ngcontent-%COMP%]     .open-in-new-tab-button, .message-text[_ngcontent-%COMP%]     .plx-button{background-color:transparent;background-size:1.125em;background-repeat:no-repeat;background-position-x:8px;background-position-y:8px;border:none;border-radius:100%;width:32px;height:32px}.message-text[_ngcontent-%COMP%]     .copy-button:hover, .message-text[_ngcontent-%COMP%]     .open-in-new-tab-button:hover, .message-text[_ngcontent-%COMP%]     .plx-button:hover{background-color:var(--hover);cursor:pointer}.message-text[_ngcontent-%COMP%]     .open-in-new-tab-button{background-image:url(https://www.gstatic.com/devnotify/open_in_new.svg);background-size:1.4em;background-position-x:7px;background-position-y:7px}.message-text[_ngcontent-%COMP%]     .open-in-new-tab-button.disabled{opacity:.5}.message-text[_ngcontent-%COMP%]     .copy-button{background-image:url(https://www.gstatic.com/devnotify/content_copy_icon.svg)}.message-text[_ngcontent-%COMP%]     .plx-button{background-image:url(https://static.corp.google.com/plx/favicons/plx_favicon_v2.png)}.message-text[_ngcontent-%COMP%]     .code-title{color:var(--text-secondary);font-family:Google Sans,Roboto;font-size:.8em;font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.message-text[_ngcontent-%COMP%]     .copy-confirmation{background:var(--tonal-fill-green);border:1px solid var(--tonal-tint-green);border-radius:8px;color:var(--tonal-green);font-family:Google Sans,Roboto;font-size:12px;padding:4px 8px;margin-bottom:32px;position:absolute;right:10px;top:10px}.message-text[_ngcontent-%COMP%]     g3mark-svg{display:block;max-width:90cqw;border:1px solid var(--hairline);border-radius:8px;position:relative;margin-bottom:32px}.message-text[_ngcontent-%COMP%]     g3mark-svg div:has(svg){overflow:auto;border-radius:8px}.message-text[_ngcontent-%COMP%]     g3mark-svg .control-bar{position:absolute;bottom:-36px;right:0;width:100%;border-radius:20px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:8px;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;height:32px}.message-text[_ngcontent-%COMP%]     g3mark-svg .control-bar .copy-confirmation{right:8px;top:-36px}.message-text[_ngcontent-%COMP%]     p{white-space:pre-line}.message-text[_ngcontent-%COMP%]     p+p{margin-top:.75rem}.message-text[_ngcontent-%COMP%]     .g3mark-callout{position:relative;padding:.25em 2em;border-style:solid;border-color:transparent;border-width:0 0 0 3px;margin:.5em auto;width:90%}.message-text[_ngcontent-%COMP%]     .g3mark-callout .g3mark-callout__keyword{font-weight:500}.message-text[_ngcontent-%COMP%]     .g3mark-callout p{white-space:unset}.message-text[_ngcontent-%COMP%]     .g3mark-callout a{text-decoration:underline;padding:.2em .3em;border-radius:.3em;margin:0 -.3em}.message-text[_ngcontent-%COMP%]     .g3mark-callout a:focus, .message-text[_ngcontent-%COMP%]     .g3mark-callout a:hover{color:color-mix(in srgb,currentColor,var(--text-default) 50%);background-color:color-mix(in srgb,var(--page-bg),transparent 40%)}.message-text[_ngcontent-%COMP%]     blockquote.g3mark-callout{padding-top:1em;padding-bottom:1em}.message-text[_ngcontent-%COMP%]     blockquote.g3mark-callout .g3mark-callout__icon+*{margin-top:0}.message-text[_ngcontent-%COMP%]     blockquote.g3mark-callout :last-child{margin-bottom:0}.message-text[_ngcontent-%COMP%]     .g3mark-callout__icon:before{position:absolute;font-size:1.25em;font-family:Google Symbols;left:.4em;top:.8em}.message-text[_ngcontent-%COMP%]     .g3mark-callout-note{background-color:var(--tonal-fill-blue);border-left-color:var(--tonal-blue);color:var(--tonal-blue)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-note a{color:var(--tonal-blue)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-note .g3mark-callout__icon:before{content:"bookmark"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-tip{background-color:var(--tonal-fill-green);border-left-color:var(--tonal-green);color:var(--tonal-green)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-tip a{color:var(--tonal-green)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-tip .g3mark-callout__icon:before{content:"grade"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-warning{background-color:var(--tonal-fill-red);border-left-color:var(--tonal-red);color:var(--tonal-red)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-warning a{color:var(--tonal-red)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-warning .g3mark-callout__icon:before{content:"warning"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-fixme, .message-text[_ngcontent-%COMP%]     .g3mark-callout-todo{background-color:var(--tonal-fill-grey);border-left-color:var(--tonal-grey);color:var(--tonal-grey)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-fixme a, .message-text[_ngcontent-%COMP%]     .g3mark-callout-todo a{color:var(--tonal-grey)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-fixme .g3mark-callout__icon:before, .message-text[_ngcontent-%COMP%]     .g3mark-callout-todo .g3mark-callout__icon:before{content:"error_outline"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-question{background-color:var(--tonal-fill-cyan);border-left-color:var(--tonal-cyan);color:var(--tonal-cyan)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-question a{color:var(--tonal-cyan)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-question .g3mark-callout__icon:before{content:"help"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-important{background-color:var(--tonal-fill-orange);border-left-color:var(--tonal-orange);color:var(--tonal-orange)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-important a{color:var(--tonal-orange)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-important .g3mark-callout__icon:before{content:"priority_high"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-summary, .message-text[_ngcontent-%COMP%]     .g3mark-callout-tldr{background-color:var(--tonal-fill-purple);border-left-color:var(--tonal-purple);color:var(--tonal-purple)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-summary a, .message-text[_ngcontent-%COMP%]     .g3mark-callout-tldr a{color:var(--tonal-purple)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-summary .g3mark-callout__icon:before, .message-text[_ngcontent-%COMP%]     .g3mark-callout-tldr .g3mark-callout__icon:before{content:"sms"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-best_practice{background-color:var(--tonal-fill-green);border-left-color:var(--tonal-green);color:var(--tonal-green)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-best_practice a{color:var(--tonal-green)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-best_practice .g3mark-callout__icon:before{content:"check_circle"}message-metadata[_ngcontent-%COMP%]{container-type:inline-size}.message-actions[_ngcontent-%COMP%]{margin-left:-16px}.message-actions[_ngcontent-%COMP%]   .copy-message-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;color:var(--text-secondary);font-size:20px;padding:2px}.recitation-sources-banner[_ngcontent-%COMP%]{background-color:var(--tonal-fill-yellow);display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}.recitation-sources-banner[_ngcontent-%COMP%]   .warning-icon[_ngcontent-%COMP%]{color:var(--tonal-yellow);font-variation-settings:"FILL" 1}.open-in-new-icon[_ngcontent-%COMP%]{margin-left:auto}.dark-mode   [_nghost-%COMP%]     .copy-button, .dark-mode   [_nghost-%COMP%]     .open-in-new-tab-button{-webkit-filter:invert(1);filter:invert(1)}.dark-mode   [_nghost-%COMP%]     .copy-button:hover, .dark-mode   [_nghost-%COMP%]     .open-in-new-tab-button:hover{background-color:var(--tonal-grey)}.dark-mode   [_nghost-%COMP%]     .message-text .plx-button:hover{background-color:var(--tonal-tint-grey)}'],
changeDetection:0});var L$c=["customMessage"],cM=function(){this.messageData=Og.required.apply(Og,q([]));this.useCompactView=Og.apply(null,[!1].concat(q([])));this.messageTemplate=p(E$c,{optional:!0});this.elementRef=p(Hd);this.customMessage=Pg.apply(null,["customMessage"].concat(q([{read:eg}])))};
cM.prototype.ngAfterViewInit=function(){this.messageTemplate&&this.customMessage()&&(this.componentRef=this.customMessage().createComponent(this.messageTemplate),this.componentRef.instance.messageData=ng.apply(null,[this.messageData()].concat(q([]))),this.componentRef.instance.useCompactView=ng.apply(null,[this.useCompactView()].concat(q([]))))};cM.\u0275fac=function(a){return new (a||cM)};
cM.\u0275cmp=D({type:cM,selectors:[["message-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customMessage,L$c,eg);a&2&&pg()},hostAttrs:[1,"width-almost-full"],hostVars:2,hostBindings:function(a,b){a&2&&wg("use-compact-view",b.useCompactView())},inputs:{messageData:[1,"messageData"],useCompactView:[1,"useCompactView"]},decls:2,vars:1,consts:[["customMessage",""],[3,"messageData","useCompactView"]],template:function(a,b){a&1&&F(0,LPa,2,0,"ng-container")(1,MPa,1,2,"message",1);a&2&&G(b.messageTemplate?
0:1)},dependencies:[by,bM],styles:["[_nghost-%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}"],changeDetection:0});var dM=function(a,b){this.threadService=a;this.dialogRef=b;this.thread=p(TA).thread;this.inputValue="";M$c(this)},M$c=function(a){y(function(b){a.inputValue=a.thread.title;ae(b)})};dM.prototype.updateTitle=function(){this.inputValue.length>0&&(sOc(this.threadService,this.inputValue),this.dialogRef.close())};dM.\u0275fac=function(a){return new (a||dM)(Ve(FD),Ve(RA))};
dM.\u0275cmp=D({type:dM,selectors:[["rename-chat-dialog"]],decls:17,vars:2,consts:[["mat-dialog-title",""],["appearance","outline","color","primary"],["matInput","","required","",3,"ngModelChange","ngModel"],["matIconSuffix","","mat-icon-button","","aria-label","clear",3,"click"],["aria-label","cancel"],["align","end"],["mat-flat-button","","mat-dialog-close",""],["mat-flat-button","","color","primary",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1,"Rename chat"),L(),K(2,"mat-dialog-content")(3,
"mat-form-field",1)(4,"mat-label"),Q(5,"Title"),L(),K(6,"input",2),Cg("ngModelChange",function(c){Bg(b.inputValue,c)||(b.inputValue=c);return c}),L(),K(7,"mat-error"),Q(8,"This field is required"),L(),K(9,"button",3),N("click",function(){b.inputValue=""}),K(10,"mat-icon",4),Q(11,"cancel"),L()()()(),K(12,"mat-dialog-actions",5)(13,"button",6),Q(14," Cancel "),L(),K(15,"button",7),N("click",function(){return b.updateTitle()}),Q(16," Save "),L()());a&2&&(B(6),Ag("ngModel",b.inputValue),B(9),I("disabled",
b.inputValue.length<1))},dependencies:[DE,xj,fE,yE,mE,mB,kB,gB,iB,TJ,VA,XA,ZA,YA,UD,HD,SD,KD,ID,MD,HE,VD,FE,Ly,Jy],styles:["[_nghost-%COMP%]{display:block;width:max(250 * var(--base-px,1rem),40vw)}.mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:12px}mat-form-field.mat-mdc-form-field[_ngcontent-%COMP%]{margin-top:4px;width:100%}mat-dialog-actions[_ngcontent-%COMP%]{margin:10px}"],changeDetection:0});var N$c=function(a,b,c,d){this.opacity=1;this.age=0;this.x=a;this.y=b;this.size=Math.random()*(c.maxSize-c.minSize)+c.minSize;var e,f;a=Math.random()*((e=c.spread)!=null?e:0)-((f=c.spread)!=null?f:0)/2;var g;e=(((g=c.angle)!=null?g:0)+a)*(Math.PI/180);var k,l;g=((k=c.speed)!=null?k:0)*((l=c.speedVariation)!=null?l:0);var r;k=((r=c.speed)!=null?r:0)+Math.random()*g*2-g;this.vx=Math.cos(e)*k;this.vy=Math.sin(e)*k*-1;this.rotation=Math.random()*360;this.rotationSpeed=(Math.random()*2-1)*c.rotationSpeed;
var w,x,C;this.duration=Math.random()*(((w=c.maxDuration)!=null?w:0)-((x=c.minDuration)!=null?x:0))+((C=c.minDuration)!=null?C:0);this.gravity=c.gravity;this.drag=c.drag;var H;this.rotation3d=(H=c.rotation3d)!=null?H:!1;this.rotationY=Math.random()*360;this.type=d[Math.floor(Math.random()*d.length)];switch(this.type){case "svg":break;case "emoji":break;case "shape":this.shape=c.shapes[Math.floor(Math.random()*c.shapes.length)];this.color=c.colors[Math.floor(Math.random()*c.colors.length)];this.cacheKey=
this.shape+"_"+this.color;break;default:console.warn("Unknown particle type: "+this.type)}};N$c.prototype.update=function(a){var b=a/(1E3/60);this.vx*=Math.pow(1-this.drag,b);this.vy*=Math.pow(1-this.drag,b);this.vy+=this.gravity*b;this.x+=this.vx*b;this.y+=this.vy*b;this.age+=a/1E3;this.rotation+=this.rotationSpeed*b;this.rotation3d&&(this.rotationY+=this.rotationSpeed*b);a=Math.min(this.age/this.duration,1);this.opacity=a>.6?1-(a-.6)/.4:1};
var eM=function(){this.particleCache=new Map;this.svgCache=new Map;this.emojiCache=new Map;this.particles=[];this.animationFrameId=null;this.lastFrameTime=0;this.canvasInitialized=!1;this.config={particleCount:100,angle:90,colors:"#ff6b6b #4ecdc4 #45b7d1 #f9ca24 #6c5ce7 #ff9ff3 #54a0ff".split(" "),svgs:[],emojis:[],shapes:["square","circle","triangle","star"],minSize:5,maxSize:20,speed:40,speedVariation:.5,spread:90,minDuration:1,maxDuration:3,rotationSpeed:5,rotation3d:!0,gravity:.5,drag:.15}},P$c=
function(a,b){b.forEach(function(c){O$c(a,c)})};eM.prototype.setConfig=function(a){this.config=Object.assign({},this.config,a)};eM.prototype.getConfig=function(){return Object.assign({},this.config)};
eM.prototype.launch=function(a,b,c){var d=this;c=c===void 0?this.config:c;Q$c(this);if(this.context&&!this.prefersReducedMotion){var e=Object.assign({},this.config,c),f,g,k=(g=(f=e.x)!=null?f:a)!=null?g:window.innerWidth/2,l,r,w=(r=(l=e.y)!=null?l:b)!=null?r:window.innerHeight/2,x=[];e.svgs&&e.svgs.length>0&&x.push("svg");e.emojis&&e.emojis.length>0&&x.push("emoji");x.length===0&&e.shapes&&e.shapes.length>0&&x.push("shape");a=[];e.svgs&&e.svgs.length>0&&(b=[].concat(q(new Set(e.svgs))),a.push.apply(a,
q(b.map(function(C){return O$c(d,C)}))));e.emojis&&e.emojis.length>0&&(b=[].concat(q(new Set(e.emojis))),a.push.apply(a,q(b.map(function(C){return R$c(d,C)}))));a.length>0?Promise.all(a).then(function(){S$c(d,k,w,e,x)}):S$c(this,k,w,e,x)}};
var S$c=function(a,b,c,d,e){if(e.length!==0){for(var f=[],g=0;g<d.particleCount;g++){var k=new N$c(b,c,d,e);switch(k.type){case "svg":k.svgImage=a.svgCache.get(d.svgs[Math.floor(Math.random()*d.svgs.length)]);break;case "emoji":k.emojiImage=a.emojiCache.get(d.emojis[Math.floor(Math.random()*d.emojis.length)]);break;case "shape":break;default:console.warn("Unknown particle type: "+k.type)}f.push(k)}a.particles.push.apply(a.particles,q(f));a.animationFrameId||(a.lastFrameTime=performance.now(),T$c(a))}},
Q$c=function(a){a.canvasInitialized||(a.canvas=document.createElement("canvas"),a.canvas.classList.add("confetti-canvas"),a.canvas.style.position="fixed",a.canvas.style.top="0",a.canvas.style.left="0",a.canvas.style.width="100%",a.canvas.style.height="100%",a.canvas.style.pointerEvents="none",a.canvas.style.zIndex="10000",a.canvas.style.transform="translateZ(0)",document.body.appendChild(a.canvas),a.context=a.canvas.getContext("2d"),a.resizeCanvas(),window!==void 0&&window.addEventListener&&window.addEventListener("resize",
function(){a.resizeCanvas()}),a.canvasInitialized=!0)};eM.prototype.resizeCanvas=function(){this.canvas&&(this.canvas.width=window.innerWidth,this.canvas.height=window.innerHeight)};
var T$c=function(a){if(a.context){var b=performance.now(),c=b-a.lastFrameTime;a.lastFrameTime=b;a.context&&a.context.clearRect(0,0,a.canvas.width,a.canvas.height);b=[];for(var d=m(a.particles),e=d.next();!e.done;e=d.next())e=e.value,e.update(c),e.age>=e.duration||(b.push(e),U$c(a,e));a.particles=b;a.particles.length>0?a.animationFrameId=requestAnimationFrame(function(){T$c(a)}):a.animationFrameId=null}else a.animationFrameId=null},U$c=function(a,b){if(a.context){if(b.type==="shape"&&b.cacheKey&&!a.particleCache.has(b.cacheKey)){var c=
b.cacheKey,d=document.createElement("canvas"),e=d.getContext("2d");d.width=64;d.height=64;e.fillStyle=b.color;e.translate(32,32);switch(b.shape){case "circle":e.beginPath();e.arc(0,0,32,0,2*Math.PI);e.fill();break;case "triangle":e.beginPath();e.moveTo(0,-32);e.lineTo(32,32);e.lineTo(-32,32);e.closePath();e.fill();break;case "star":var f=Math.PI/2*3,g=Math.PI/5;e.beginPath();e.moveTo(0,-32);for(var k=0;k<5;k++){var l=Math.cos(f)*32;var r=Math.sin(f)*32;e.lineTo(l,r);f+=g;l=Math.cos(f)*16;r=Math.sin(f)*
16;e.lineTo(l,r);f+=g}e.lineTo(0,-32);e.closePath();e.fill();break;case "square":e.fillRect(-32,-32,64,64);break;default:console.warn("Unknown particle shape: "+b.shape)}a.particleCache.set(c,d)}a.context.save();a.context.globalAlpha=b.opacity;a.context.translate(b.x,b.y);a.context.rotate(b.rotation*Math.PI/180);b.rotation3d&&a.context.scale(1,Math.cos(b.rotationY*Math.PI/180));switch(b.type){case "emoji":var w=b.emojiImage;break;case "svg":w=b.svgImage;break;case "shape":w=a.particleCache.get(b.cacheKey);
break;default:console.warn("Unknown particle type: "+b.type)}w&&a.context.drawImage(w,-b.size/2,-b.size/2,b.size,b.size);a.context.restore()}},V$c=function(a,b,c){return new Promise(function(d){var e=new Image,f=(new TextEncoder).encode(b);f=String.fromCharCode.apply(String,q(f));f="data:image/svg+xml;base64,"+btoa(f);e.onload=function(){a.svgCache.set(c,e);d(e)};e.onerror=function(){console.error("Error loading SVG from data URL: "+c);d(new Image)};e.src=f})},O$c=function(a,b){return a.svgCache.has(b)?
Promise.resolve(a.svgCache.get(b)):b.trim().startsWith("<svg")?V$c(a,b,b):fetch(b).then(function(c){if(!c.ok)throw Error("Uc`"+c.status);return c.text()}).then(function(c){return V$c(a,c,b)}).catch(function(c){console.error("Error fetching SVG: "+b,c);return new Image})},R$c=function(a,b){return new Promise(function(c){if(a.emojiCache.has(b))c(a.emojiCache.get(b));else try{var d=document.createElement("canvas"),e=d.getContext("2d");if(e){d.width=64;d.height=64;e.font="51.2px sans-serif";e.textAlign=
"center";e.textBaseline="middle";e.fillText(b,32,32);var f=new Image;f.onload=function(){a.emojiCache.set(b,f);c(f)};f.onerror=function(){console.error("Error loading emoji image generated from canvas: "+b);c(new Image)};f.src=d.toDataURL()}else c(new Image)}catch(g){console.error("Error creating emoji image: "+b,g),c(new Image)}})};da.Object.defineProperties(eM.prototype,{prefersReducedMotion:{configurable:!0,enumerable:!0,get:function(){return typeof window==="undefined"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}}});
eM.\u0275fac=function(a){return new (a||eM)};eM.\u0275prov=Dc({token:eM,factory:eM.\u0275fac,providedIn:"root"});var W$c={HELPFULNESS_UNSPECIFIED:0,HELPFUL:1,UNHELPFUL:2,DISMISSED:3};var X$c=new dd("SessionHelpfulButtonTemplate"),fM=function(){var a=this;this.closeButton=Ng();this.messageFeedbackUpdate=Ng();this.helpfulness=W$c;this.messageData=Og.apply(null,[null].concat(q([])));this.configurationKey=Og.apply(null,q([]));this.pageId=Og.apply(null,q([]));this.confirmationMessage="Thank you for your feedback, it helps improve Duckie";this.timeoutId=this.helpfulnessSelected=0;this.confettiService=p(eM);this.duckieFeedbackService=p(SL);this.clientConfiguration=Zg.apply(null,[function(){var b;
return PMa((b=a.configurationKey())!=null?b:"")}].concat(q([])));this.experimentsService=p(qA);this.feedbackAnimationsEnabled=this.experimentsService.feedbackAnimationsEnabled;this.showConfetti=Zg.apply(null,[function(){return a.clientConfiguration()===void 0&&a.feedbackAnimationsEnabled}].concat(q([])));this.positiveFeedbackConfettiOptions={particleCount:40,minDuration:1,maxDuration:2,minSize:28,maxSize:48,svgs:["https://www.gstatic.com/devnotify/duckie_margin.svg"]};this.negativeFeedbackConfettiOptions=
{particleCount:12,gravity:.15,drag:.05,speed:12,speedVariation:.5,spread:160,minSize:32,maxSize:48,minDuration:1.5,maxDuration:2.5,rotationSpeed:4,rotation3d:!1,colors:[],shapes:[],svgs:['<svg width="172" height="174" viewBox="0 0 172 174" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M83.9115 12.9936C103.049 12.9936 126.247 18.7611 128.102 46.2294C128.197 47.6055 128.237 48.7792 128.237 49.9125C128.237 59.6532 126.227 67.4916 122.267 73.2052C118.287 78.9457 112.311 82.7503 104.007 84.8279C98.5631 86.1905 92.175 86.8246 83.9115 86.8246C74.2653 86.8246 67.0609 86.0624 61.2192 84.4299C46.2574 80.2409 39.5859 69.5895 39.5859 49.9057C39.5859 24.7243 53.6708 12.9936 83.9115 12.9936Z" fill="#C735FC" style="fill:#C735FC;fill:color(display-p3 0.7801 0.2078 0.9882);fill-opacity:1;"/> <path d="M58.7334 86.4356C59.3135 86.6251 59.9041 86.8063 60.5067 86.975C66.6742 88.6985 74.1478 89.4675 83.9116 89.4676C92.2992 89.4675 98.9214 88.825 104.648 87.3915C105.353 87.2152 106.042 87.0254 106.719 86.8245C109.898 87.9133 112.784 89.3219 115.333 91.1264C124.676 97.0695 130.672 106.908 130.672 122.206C130.672 155.05 108.203 161.006 82.4481 161.006C59.9312 161.006 42.6149 157.188 36.564 138.881C29.643 138.146 23.7067 135.825 18.9039 131.656C15.9493 129.093 11.956 124.323 15.1939 124.418C21.6898 124.6 28.6846 122.225 34.2969 119.635C34.9374 104.23 41.3569 94.7243 51.668 89.3428C53.8646 88.1674 56.2305 87.2107 58.7334 86.4356Z" fill="#C735FC" style="fill:#C735FC;fill:color(display-p3 0.7801 0.2078 0.9882);fill-opacity:1;"/> <path d="M131.192 48.1451C136.797 52.0981 147.449 58.3985 158.181 58.1692C161.797 58.0882 163.389 62.7495 160.529 64.9688C152.029 71.5593 139.192 78.3454 124.878 74.9726C129.134 68.7598 131.232 60.6246 131.232 50.3577C131.232 49.6292 131.212 48.8872 131.185 48.1451H131.192Z" fill="#E67225" style="fill:#E67225;fill:color(display-p3 0.9020 0.4471 0.1451);fill-opacity:1;"/> <path d="M90.6447 33.4708C86.0771 34.474 82.3253 36.8714 79.445 40.6142C78.8732 41.3572 79.0108 42.4213 79.7522 42.9911C80.4936 43.5609 81.5582 43.4206 82.1299 42.6776C84.5286 39.5606 87.5879 37.6117 91.3634 36.7825C95.0407 35.9748 98.4766 36.4325 101.745 38.1536C104.925 39.8283 107.146 42.279 108.468 45.5516C109.752 48.7321 109.86 51.8869 108.809 55.0886C107.789 58.1963 105.933 60.5606 103.208 62.2475C100.566 63.8826 97.7778 64.4642 94.7755 64.0211C91.8696 63.5921 89.5061 62.312 87.6136 60.1588C85.7848 58.078 84.8669 55.7167 84.8189 53.0121C84.7726 50.4033 85.5483 48.1507 87.1546 46.1794C88.7009 44.2816 90.6139 43.1401 92.9482 42.702C95.1904 42.2812 97.2311 42.6207 99.1465 43.7144C100.982 44.7624 102.214 46.2244 102.905 48.1446C103.566 49.9792 103.555 51.7383 102.894 53.4966C102.264 55.1713 101.216 56.388 99.7184 57.2186C98.2967 58.0068 96.8649 58.2282 95.3521 57.9194C93.9224 57.6276 92.8263 56.9453 91.9845 55.8558C91.1927 54.8312 90.8568 53.7459 90.924 52.5355C90.987 51.4036 91.3828 50.505 92.1112 49.7537C92.7878 49.0558 93.5356 48.7062 94.4099 48.6344C95.2159 48.5683 95.8549 48.7592 96.4194 49.1848C96.9354 49.5738 97.1958 50.0102 97.2951 50.5373C97.3851 51.0149 97.3061 51.3536 97.112 51.659C96.9367 51.9347 96.7771 52.0208 96.6037 52.0605C96.5963 52.0622 96.5892 52.0634 96.5825 52.0648C96.3879 51.3399 95.7245 50.8088 94.9381 50.8142C94.0019 50.8206 93.2461 51.5849 93.2499 52.5212C93.2541 53.5505 93.7934 54.3436 94.5181 54.8518C95.3833 55.4587 96.3817 55.5876 97.3516 55.3656C98.4811 55.1071 99.3643 54.4283 99.9719 53.4725C100.664 52.3843 100.864 51.1586 100.627 49.901C100.362 48.4949 99.6102 47.3385 98.4652 46.4752C97.2033 45.5238 95.7311 45.1246 94.1415 45.2551C92.4093 45.3973 90.9036 46.1348 89.68 47.3969C88.3588 48.7597 87.6452 50.4416 87.5388 52.3566C87.4247 54.409 88.0291 56.2896 89.2995 57.9337C90.6528 59.685 92.4679 60.7932 94.6654 61.2418C96.9939 61.717 99.2479 61.3519 101.356 60.183C103.58 58.9498 105.161 57.0923 106.067 54.6825C107.02 52.1501 107.022 49.5602 106.096 46.9878C105.125 44.2933 103.35 42.2056 100.834 40.7688C98.2057 39.2681 95.3463 38.8037 92.3316 39.3695C89.1912 39.9588 86.5719 41.5339 84.5285 44.0417C82.4047 46.6483 81.3686 49.6866 81.4289 53.0816C81.4915 56.6028 82.7169 59.7303 85.0642 62.4012C87.4944 65.1662 90.5874 66.8317 94.2715 67.3755C98.0792 67.9376 101.674 67.1793 104.986 65.1294C108.404 63.0139 110.764 59.995 112.03 56.1384C113.335 52.1639 113.191 48.1852 111.612 44.2748C109.987 40.25 107.207 37.194 103.331 35.1526C99.3458 33.0539 95.0925 32.4938 90.6447 33.4708Z" fill="black" style="fill:black;fill-opacity:1;"/> </svg>'],
emojis:["\ud83d\ude21","\u2049\ufe0f","\u203c\ufe0f","\u2753"]};P$c(this.confettiService,this.positiveFeedbackConfettiOptions.svgs)};fM.prototype.ngOnChanges=function(a){a=a.messageData;if(a.firstChange||!a.firstChange&&a.previousValue.sessionId!==a.currentValue.sessionId){var b,c,d;this.helpfulnessSelected=(d=(b=this.messageData())==null?void 0:(c=b.feedback)==null?void 0:c.getHelpfulness())!=null?d:0}};
var Y$c=function(a){clearTimeout(a.timeoutId);a.closeButton.emit()},$$c=function(a,b,c,d){d=d===void 0?!1:d;a.helpfulnessSelected=b===1?a.helpfulnessSelected===1?0:1:b===2?a.helpfulnessSelected===2?0:2:b;a.showConfetti()&&c&&(a.helpfulnessSelected===1?a.confettiService.launch(c.clientX,c.clientY,a.positiveFeedbackConfettiOptions):a.helpfulnessSelected===2&&a.confettiService.launch(c.clientX,c.clientY,a.negativeFeedbackConfettiOptions));a.duckieFeedbackService.provideFeedback(bGc(Z$c(a),a.helpfulnessSelected));
clearTimeout(a.timeoutId);var e,f;a.messageFeedbackUpdate.emit({messageId:(f=(e=a.messageData())==null?void 0:e.id)!=null?f:"",helpfulness:a.helpfulnessSelected});d?Y$c(a):a.timeoutId=setTimeout(function(){Y$c(a)},3E3)},Z$c=function(a){var b,c,d=(new AB).setMessageId((b=a.messageData())==null?void 0:b.id).setSessionId((c=a.messageData())==null?void 0:c.sessionId).setFeedbackType(0),e;a=(e=a.messageData())==null?void 0:e.feedback;if(!a)return d;a.hasFeedbackType()&&d.setFeedbackType(a.getFeedbackType());
a.hasFeedbackReason()&&d.setFeedbackReason(a.getFeedbackReason());a.getFeedbackLabelsList().length>0&&d.addAllFeedbackLabels(a.getFeedbackLabelsList());return d};fM.\u0275fac=function(a){return new (a||fM)};
fM.\u0275cmp=D({type:fM,selectors:[["session-helpful-button"]],hostAttrs:[1,"align-self-center"],inputs:{messageData:[1,"messageData"],configurationKey:[1,"configurationKey"],pageId:[1,"pageId"]},outputs:{closeButton:"closeButton",messageFeedbackUpdate:"messageFeedbackUpdate"},features:[jx],decls:12,vars:7,consts:[[1,"font-google-sans-text","gmat-body-2","session-helpful-button"],[1,"message-text"],["mat-icon-button","","aria-label","Session is helpful",1,"helpful-button",3,"click"],["mat-icon-button",
"","aria-label","Session is not helpful",1,"not-helpful-button",3,"click"],["mat-icon-button","","aria-label","Close session helpful prompt",1,"close-helpfulness-button",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"span",1),Q(2),L(),K(3,"button",2),N("click",function(c){return $$c(b,b.helpfulness.HELPFUL,c)}),K(4,"mat-icon"),Q(5),L()(),K(6,"button",3),N("click",function(c){return $$c(b,b.helpfulness.UNHELPFUL,c)}),K(7,"mat-icon"),Q(8),L()(),K(9,"button",4),N("click",function(){return $$c(b,
b.helpfulness.DISMISSED,void 0,!0)}),K(10,"mat-icon"),Q(11," close "),L()()());a&2&&(B(2),S(" ",b.helpfulnessSelected===b.helpfulness.HELPFUL||b.helpfulnessSelected===b.helpfulness.UNHELPFUL?b.confirmationMessage:"Is this conversation helpful?"," "),B(2),wg("is-selected",b.helpfulnessSelected===b.helpfulness.HELPFUL),B(),S(" ",b.helpfulnessSelected===b.helpfulness.HELPFUL?"thumb_up_filled":"thumb_up"," "),B(2),wg("is-selected",b.helpfulnessSelected===b.helpfulness.UNHELPFUL),B(),S(" ",b.helpfulnessSelected===
b.helpfulness.UNHELPFUL?"thumb_down_filled":"thumb_down"," "))},dependencies:[by,Ly,Jy,mB,kB,iB],styles:['.session-helpful-button[_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;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:calc(var(--base-px, 1rem)*12);padding:calc(var(--base-px, 1rem)*4) calc(var(--base-px, 1rem)*4) calc(var(--base-px, 1rem)*6) calc(var(--base-px, 1rem)*16);box-shadow:0 1px 2px 0 var(--elevation),0 1px 3px 1px var(--elevation);height:auto}.session-helpful-button[_ngcontent-%COMP%]   .message-text[_ngcontent-%COMP%]{margin-right:calc(var(--base-px, 1rem)*8)}.session-helpful-button[_ngcontent-%COMP%]   .gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]{width:calc(var(--base-px, 1rem)*36);height:calc(var(--base-px, 1rem)*36)}.session-helpful-button[_ngcontent-%COMP%]   .gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:calc(var(--base-px, 1rem)*18);height:calc(var(--base-px, 1rem)*18);font-size:calc(var(--base-px, 1rem)*18)}.session-helpful-button[_ngcontent-%COMP%]   .gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon.is-selected[_ngcontent-%COMP%]{color:var(--text-high-contrast);font-variation-settings:"FILL" 1}'],
changeDetection:0});var aad=["customSessionHelpfulButton"],gM=function(){this.messageData=Og.apply(null,q([]));this.messageFeedbackUpdate=Ng();this.closeButton=Ng();this.sessionHelpfulButtonTemplate=p(X$c,{optional:!0});this.customSessionHelpfulButton=Pg.apply(null,["customSessionHelpfulButton"].concat(q([{read:eg}])))};
gM.prototype.ngAfterViewInit=function(){var a=this;this.sessionHelpfulButtonTemplate&&this.customSessionHelpfulButton()&&(this.componentRef=this.customSessionHelpfulButton().createComponent(this.sessionHelpfulButtonTemplate),this.componentRef.instance.messageData=ng.apply(null,[this.messageData()].concat(q([]))),this.componentRef.instance.closeButton.subscribe(function(){a.closeButton.emit()}),this.componentRef.instance.messageFeedbackUpdate.subscribe(function(b){a.messageFeedbackUpdate.emit(b)}))};
gM.\u0275fac=function(a){return new (a||gM)};
gM.\u0275cmp=D({type:gM,selectors:[["session-helpful-button-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customSessionHelpfulButton,aad,eg);a&2&&pg()},hostAttrs:[1,"align-self-center"],inputs:{messageData:[1,"messageData"]},outputs:{messageFeedbackUpdate:"messageFeedbackUpdate",closeButton:"closeButton"},decls:2,vars:1,consts:[["customSessionHelpfulButton",""],[3,"messageData"],[3,"closeButton","messageFeedbackUpdate","messageData"]],template:function(a,b){a&1&&F(0,NPa,2,0,"ng-container")(1,OPa,1,
1,"session-helpful-button",1);a&2&&G(b.sessionHelpfulButtonTemplate?0:1)},dependencies:[by,fM],encapsulation:2,changeDetection:0});var bad=new dd("ThreadSourceHeaderTemplate"),cad={imgSrc:"https://moma.corp.google.com/images/new_logo/color/moma_n_favicon.svg",imgAlt:"Moma logo",title:"From Moma search"},dad={imgSrc:"https://static.corp.google.com/yaqs/static/img/logo/yaqs_32x32.svg",imgAlt:"YAQS logo",title:"From YAQS"},hM=function(){this.thread=Og.required.apply(Og,q([]));this.config=null};
hM.prototype.ngOnChanges=function(a){a=a.thread;(a.firstChange||!a.firstChange&&a.previousValue.threadSource!==a.currentValue.threadSource)&&ead(this)};hM.prototype.ngOnInit=function(){ead(this)};var ead=function(a){switch(a.thread().threadSource){case "MOMA":a.config=cad;break;case "YAQS":a.config=dad;break;default:a.config=null}};hM.\u0275fac=function(a){return new (a||hM)};
hM.\u0275cmp=D({type:hM,selectors:[["thread-source-header"]],inputs:{thread:[1,"thread"]},features:[jx],decls:1,vars:1,consts:[[1,"flex-row","align-items-center","gap-s","margin-xs-top","text-secondary","gmat-caption","font-google-sans-text","medium"],["height","12","width","12",3,"src","alt"]],template:function(a,b){a&1&&F(0,PPa,3,3,"div",0);a&2&&G(b.config?0:-1)},encapsulation:2,changeDetection:0});var fad=["customThreadSourceHeader"],iM=function(){this.thread=Og.required.apply(Og,q([]));this.threadSourceHeaderTemplate=p(bad,{optional:!0});this.customThreadSourceHeader=Pg.apply(null,["customThreadSourceHeader"].concat(q([{read:eg}])))};iM.prototype.ngAfterViewInit=function(){this.threadSourceHeaderTemplate&&this.customThreadSourceHeader()&&(this.componentRef=this.customThreadSourceHeader().createComponent(this.threadSourceHeaderTemplate),this.componentRef.instance.thread=ng.apply(null,[this.thread()].concat(q([]))))};
iM.\u0275fac=function(a){return new (a||iM)};iM.\u0275cmp=D({type:iM,selectors:[["thread-source-header-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customThreadSourceHeader,fad,eg);a&2&&pg()},inputs:{thread:[1,"thread"]},decls:2,vars:1,consts:[["customThreadSourceHeader",""],[3,"thread"]],template:function(a,b){a&1&&F(0,QPa,2,0,"ng-container")(1,RPa,1,1,"thread-source-header",1);a&2&&G(b.threadSourceHeaderTemplate?0:1)},dependencies:[by,hM],encapsulation:2,changeDetection:0});var lQa=function(a,b){return b.trackingId},gad=new dd("ThreadTemplate"),jM=function(){var a=this;this.useCompactView=Og.apply(null,[!1].concat(q([])));this.dialog=p(UA);this.viewContainerRef=p(eg);this.snackBar=p(rB);this.routingService=p(BA);this.liveAnnouncer=p(dz);this.userStateService=p(mC);this.duckieEventTrackerService=p(iD);this.experimentsService=p(qA);this.userContextService=p(oC);this.threadService=p(FD);this.overridesService=p(AA);this.conversationAgentsService=p(jC);this.messagePartsService=
p(YL);this.sessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;this.DYNAMIC_DUCKIE_AGENT_INFO=Bw;this.DYNAMIC_DUCKIE_M_AGENT_INFO=Cw;this.M_DUCKIE_AGENT_INFO=Aw;this.SESSION_STATE_DEPRECATED=4;this.duckieBigBirdOutageEnabled=this.experimentsService.duckieBigBirdStrikeEnabled;this.showBigBirdOutageBanner=!1;this.maxVisibleUserProvidedContextCount=3;this.shouldShowSessionHelpfulButton=this.showExpandedContext=!1;this.followUpQuestion="";this.showExperimentalAgentBanner=!1;this.experimentalAgentIds=
[];this.messages=uoa.apply(null,[cM].concat(q([])));this.prevThreadLength=0;this.isIncognitoMode$=this.userStateService.isEnforcedPrivateMode$;this.thread$=this.threadService.currentThread$.pipe(Af(function(b){if(b){if(a.prevThreadLength<b.messages.length)had(a);else{var c;if(c=b.messages.length>0&&!b.messages[b.messages.length-1].isStreamingThoughts){c=a.messagePartsService;var d=[].concat(q(c.expansionStates.keys()))[c.expansionStates.size-1];c=!c.isExpanded(d)}c&&had(a)}a.shouldShowSessionHelpfulButton=
iad(a,b);a.prevThreadLength=b.messages.length}}),vf({bufferSize:1,refCount:!0}));this.hasPrivateContent$=this.thread$.pipe(A(function(b){return b?b.privacyMode===2:!1}));this.firstPrivateContentMessageIndex$=this.thread$.pipe(A(function(b){return b?b.messages.findIndex(function(c){return c.hasPrivateContent}):-1}));this.userProvidedContext$=this.thread$.pipe(A(function(b){return b?YIc(b):[]}));this.lastDuckieMessage$=this.thread$.pipe(A(function(b){if(b&&(b=b.messages.slice().reverse().find(function(c){return!c.isUser&&
c.id}),b!==null&&b))return b}));this.isLoadingThread$=this.threadService.isLoadingThread$.pipe(vf({bufferSize:1,refCount:!0}));this.destroyed$=new uf(1);this.ve={ZeroStateSuggestionChipButton:201127}};
jM.prototype.ngOnInit=function(){var a=this;this.thread$.pipe(zf(this.destroyed$)).subscribe(function(c){var d=!(c==null||!c.serverId);!a.routingService.snapshot.params.id&&d&&oMa(a.routingService,c.serverId,{replaceUrl:!0});c&&c.conversationAgentId&&(a.showExperimentalAgentBanner=a.experimentalAgentIds.includes(c.conversationAgentId))});this.routingService.params.pipe(zf(this.destroyed$)).subscribe(function(c){var d,e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:return z(x,fe(a.thread$),
2);case 2:return d=x.yieldResult,f=(e=d)==null?void 0:e.serverId,g=c.id,f&&g&&g===f?x.return():g?(Wd(x,9),z(x,qOc(a.threadService,g),11)):z(x,fe(a.threadService.isLoadingThread$),5);case 5:return k=x.yieldResult,z(x,fe(a.threadService.isDuckieThinking$),6);case 6:l=x.yieldResult;if(k||l){x.jumpTo(0);break}return z(x,zIc(a.routingService),0);case 11:dt(x,0);break;case 9:if(w=r=$d(x),w.code!==5)x.jumpTo(0);else return a.snackBar.open("Thread not found.","Dismiss"),z(x,zIc(a.routingService),0)}})});
var b=!1;this.threadService.isDuckieThinking$.pipe(zf(this.destroyed$),nf()).subscribe(function(c){c?(a.liveAnnouncer.announce("Thinking...","polite"),b=!0):b&&(a.liveAnnouncer.announce("Reply ready.","polite"),b=!1)})};jM.prototype.addMessage=function(a){var b=this;return y(function(c){return z(c,zOc(b.threadService,a),0)})};
var UPa=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,fe(a.thread$),2);b=c.yieldResult;if(!b)return c.return();a.dialog.open(dM,{panelClass:"rename-chat-dialog-panel",data:{thread:b},viewContainerRef:a.viewContainerRef});ae(c)})},had=function(a){requestAnimationFrame(function(){var b;(b=a.messages().slice().reverse().find(function(c){return c.messageData().isUser}))==null||b.elementRef.nativeElement.scrollIntoView()})},oQa=function(a,b){return y(function(c){return z(c,BOc(a.threadService,
b.messageId,b.helpfulness),0)})},iad=function(a,b){var c=b.messages.length>=2&&!b.messages[b.messages.length-1].hasRedactions&&!b.messages.some(function(d){return d&&d.feedback&&(d.feedback.getHelpfulness()===1||d.feedback.getHelpfulness()===2||d.feedback.getHelpfulness()===3)});c&&jad(a,b);return c},jad=function(a,b){var c,d=(c=b.serverId)!=null?c:"",e;b=(e=b.messages[b.messages.length-1].id)!=null?e:"";b.length>0&&(a=a.duckieEventTrackerService,e=new cm,c=new qC,c=Oi(c,6,!0),mMa(a,nMa(bJc(e,c).setMessageId(b).setSessionId(d)),
256701))},kQa=function(a){var b=b===void 0?!0:b;var c,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:return d=c="",e="###### *Disclaimer: Duckie can make mistakes. Consider double-checking its responses.*",f=a.thread$.pipe(A(function(r){if(!r)return"";c=r.title||"# Untitled";r.serverId&&b&&(d="\n[Duckie Link](https://duckie.corp.google.com/thread/"+r.serverId+")");return r.messages.map(function(w){var x=(w.isUser?"## User:":"## Duckie:")+"\n\n"+w.text;w=a.getSourcesMarkdown(w);w.length>
0&&(x+="\n\n### Sources:\n"+w);return x}).join("\n\n")})),z(l,fe(f),2);case 2:return g=l.yieldResult,k="# "+c+d+"\n\n"+g+"\n\n"+e,Wd(l,3),z(l,navigator.clipboard.writeText(k),5);case 5:a.snackBar.open("Copied conversation to clipboard.","Dismiss",{duration:2E3});dt(l,0);break;case 3:$d(l),a.snackBar.open("Failed to copy to clipboard.","Dismiss",{duration:4E3}),ae(l)}})};
jM.prototype.getSourcesMarkdown=function(a){var b="",c;(c=a.relatedResources)==null||c.forEach(function(d){var e;(d=(e=km(d))==null?void 0:lm(e))&&d.length>0&&d.forEach(function(f){b+="\n* ["+f.getTitle().trim()+"]("+f.getUrl()+")"})});return b};jM.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};jM.\u0275fac=function(a){return new (a||jM)};
jM.\u0275cmp=D({type:jM,selectors:[["thread"]],viewQuery:function(a,b){a&1&&og(b.messages,cM);a&2&&pg()},hostVars:2,hostBindings:function(a,b){a&2&&wg("use-compact-view",b.useCompactView())},inputs:{useCompactView:[1,"useCompactView"]},decls:8,vars:10,consts:[["shareMenu","matMenu"],["mode","indeterminate",1,"align-self-center","margin-auto-y",3,"diameter"],[3,"messageData"],[1,"margin-s-top",3,"submitMessage","inputText"],[1,"thread-heading","padded-s-y","border-bottom"],[3,"thread"],[1,"thread-title-container",
"flex-row"],[1,"thread-title"],["appearance","input","disabled",""],[1,"right-side-buttons"],["mat-icon-button","","aria-label","sharing options",1,"sharing-menu-button",3,"matMenuTriggerFor"],["fontSet","google-symbols"],["mat-menu-item","",3,"click"],[1,"duckie-warning-banner","flex-row","align-items-center","gap","padded-s-bottom"],[1,"user-context-bar"],[1,"duckie-experiment-banner"],[1,"incognito-mode-banner","bg-primary-container","flex-row","align-items-center","gap"],["id","expanded-contexts-view",
1,"expanded-contexts-view"],[1,"banner-wrapper"],[1,"thread-container","flex-column","full-width","margin-bottom"],["mat-icon-button","","aria-label","Rename chat",1,"rename-chat-button"],["role","button","matTooltip","Title edit has been disabled as your\n                personal results are used in this thread",3,"matTooltipDisabled"],["mat-icon-button","","aria-label","Rename chat",1,"rename-chat-button",3,"disabled"],["mat-icon-button","","aria-label","Rename chat",1,"rename-chat-button",3,"click"],
["matTooltip","This thread is using a deprecated model and cannot be continued.","matTooltipShowDelay","500"],[1,"user-context-bar-title","gmat-subhead-2"],["matTooltipClass","context-tooltip",3,"label","iconUrl","linkUrl","matTooltip"],[1,"more-context-counter"],[1,"spacer"],["mat-icon-button","","aria-label","Expand context","aria-controls","expanded-contexts-view",1,"expand-context-button",3,"click"],["matTooltipShowDelay","500",3,"matTooltip"],["href","http://go/duckie-incognito-mode","target",
"_blank","mat-button","","color","primary","aria-label","Learn more",1,"learn-more-button"],[1,"context-item"],["alt","context.imgAlt",3,"src"],["target","_blank",3,"href"],[3,"messageData","useCompactView"],[3,"closeButton","messageFeedbackUpdate","messageData"]],template:function(a,b){if(a&1){var c=t();Zf(0);T(1,"async");F(2,SPa,1,1,"mat-progress-spinner",1);T(3,"async");Kf(4,nQa,3,4);F(5,pQa,2,3,"session-helpful-button-wrapper",2);T(6,"async");K(7,"message-input-wrapper",3);N("submitMessage",function(d){u(c);
return v(b.addMessage(d))});L()}a&2&&($f(U(1,3,b.userProvidedContext$)),B(2),G(U(3,6,b.isLoadingThread$)?2:4),B(3),G(b.shouldShowSessionHelpfulButton&&!U(6,8,b.threadService.isDuckieThinking$)?5:-1),B(2),I("inputText",b.followUpQuestion))},dependencies:[by,DE,mB,kB,gB,iB,dL,UK,bL,aL,rK,qK,yI,wK,vK,nA,Ly,Jy,jH,fH,dH,iH,nL,s9c,hD,pA,oA,cM,nF,gM,iM,BK,Tx],styles:['@charset "UTF-8";[_nghost-%COMP%]{height:100%;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;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.thread-container[_ngcontent-%COMP%], .thread-heading[_ngcontent-%COMP%], message-input[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}.thread-container[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;overflow:auto;padding-top:24px;container-type:inline-size}.thread-heading[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-bottom:auto;min-height:48px}@media (max-width:800px){.thread-heading[_ngcontent-%COMP%]{display:none}}.thread-heading[_ngcontent-%COMP%]   .duckie-on-gemini-banner[_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;gap:4px;background:var(--tonal-fill-yellow);padding:4px 24px;margin:0 -24px -8px}.thread-heading[_ngcontent-%COMP%]   .duckie-warning-banner[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;background:var(--tonal-fill-red);color:var(--tonal-red);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:4px;padding:4px 24px;margin:0 -24px -8px}.thread-heading[_ngcontent-%COMP%]   .duckie-experiment-banner[_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;gap:4px;background:-webkit-gradient(linear,left top,right top,from(var(--duckie-experiment-banner-color-1)),to(var(--duckie-experiment-banner-color-2)));background:-webkit-linear-gradient(left,var(--duckie-experiment-banner-color-1) 0,var(--duckie-experiment-banner-color-2) 100%);background:linear-gradient(90deg,var(--duckie-experiment-banner-color-1) 0,var(--duckie-experiment-banner-color-2) 100%);font-size:.9em;padding:4px 24px;margin:0 -24px -8px}.thread-heading[_ngcontent-%COMP%]   .incognito-mode-banner[_ngcontent-%COMP%]{padding:4px 24px;margin:0 -24px -8px}.banner-wrapper[_ngcontent-%COMP%]{--custom-border-radius:0;--custom-border:0;-webkit-box-flex:1;-webkit-flex:1 0 auto;-moz-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}.use-compact-view[_nghost-%COMP%]   .thread-heading[_ngcontent-%COMP%]   thread-source-header-wrapper[_ngcontent-%COMP%]{display:none}.use-compact-view[_nghost-%COMP%]   .thread-heading[_ngcontent-%COMP%]   .thread-title-container[_ngcontent-%COMP%]{display:none}.user-context-bar[_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;gap:4px}.user-context-bar[_ngcontent-%COMP%]   .user-context-bar-title[_ngcontent-%COMP%]{margin-right:8px}.user-context-bar[_ngcontent-%COMP%]   .more-context-counter[_ngcontent-%COMP%]{font-size:12px;font-weight:500;border:1px solid var(--hairline);border-radius:16px;padding:2px 8px}.expanded-contexts-view[_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:8px 24px;gap:8px;max-height:200px;overflow:auto}.expanded-contexts-view[_ngcontent-%COMP%]   .context-item[_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;gap:8px;container-type:inline-size}.expanded-contexts-view[_ngcontent-%COMP%]   .context-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;height:20px}.expanded-contexts-view[_ngcontent-%COMP%]   .context-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{direction:rtl;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;max-width:90cqw}.expanded-contexts-view[_ngcontent-%COMP%]   .context-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:after{content:"\u200e"}.thread-title[_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;min-height:48px;width:100%}.thread-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-family:Google Sans;font-size:22px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-title[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:4px}.thread-title[_ngcontent-%COMP%]   .right-side-buttons[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1 0 auto;-moz-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}  .context-tooltip .mat-mdc-tooltip-surface{max-width:60vw}'],
changeDetection:0});var kad=["customThread"],kM=function(){this.threadTemplate=p(gad,{optional:!0});this.customThread=Pg.apply(null,["customThread"].concat(q([{read:eg}])));this.useCompactView=Og.apply(null,[!1].concat(q([])))};kM.prototype.ngAfterViewInit=function(){this.threadTemplate&&this.customThread()&&(this.componentRef=this.customThread().createComponent(this.threadTemplate),this.componentRef.instance.useCompactView=ng.apply(null,[this.useCompactView()].concat(q([]))))};
kM.\u0275fac=function(a){return new (a||kM)};
kM.\u0275cmp=D({type:kM,selectors:[["thread-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customThread,kad,eg);a&2&&pg()},inputs:{useCompactView:[1,"useCompactView"]},decls:4,vars:1,consts:[["customThread",""],[1,"container","margin-auto-x"],[1,"thread","bg-surface-default","bordered","rounded","flex-column","justify-content-flex-end"],[3,"useCompactView"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2),F(2,qQa,2,0,"ng-container")(3,rQa,1,1,"thread",3),L()());a&2&&(B(2),G(b.threadTemplate?2:
3))},dependencies:[jM],styles:["[_nghost-%COMP%]{overflow:hidden}.container[_ngcontent-%COMP%]{max-width:1240px;min-width:300px;height:calc(100% - var(--base-px, 1rem)*16)}@media (max-width:800px){.container[_ngcontent-%COMP%]{height:100%}}.thread[_ngcontent-%COMP%]{box-shadow:0 6px 10px 4px var(--elevation),0 2px 3px 0 var(--elevation);-moz-box-sizing:border-box;box-sizing:border-box;height:calc(100% - var(--base-px, 1rem)*16);margin:.75em;padding-bottom:12px;position:relative}@media (max-width:800px){.thread[_ngcontent-%COMP%]{box-shadow:none;border:none;border-radius:0;margin:0;height:100%}}.use-compact-view[_nghost-%COMP%]   .container[_ngcontent-%COMP%]{height:100%}.use-compact-view[_nghost-%COMP%]   .thread[_ngcontent-%COMP%]{box-shadow:none;border:none;border-radius:0;margin:0;height:100%}\n/*# sourceMappingURL=thread_wrapper.css.map */"],
changeDetection:0});var lM=function(){};lM.\u0275fac=function(a){return new (a||lM)};lM.\u0275mod=$e({type:lM});lM.\u0275inj=Fc({imports:[jM,kM,iM]});var lad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lad,W);var mad=function(a,b){this.url=a;this.httpClient=b};Y(mad,vMc);mad.prototype.makeRequest=function(a){return this.httpClient.request("POST",this.url+a.path,{headers:new mh({"Content-Type":"text/plain"}),body:a.body,observe:"body",responseType:"json",withCredentials:!0})};var nad=new dd("url of g3mark service api"),mM=function(){};mM.\u0275fac=function(a){return new (a||mM)};mM.\u0275mod=$e({type:mM});mM.\u0275inj=Fc({providers:[{provide:BMc,useFactory:function(a,b){return new mad(a,b)},deps:[nad,By]}],imports:[Dy]});var nM=function(){};nM.\u0275fac=function(a){return new (a||nM)};nM.\u0275mod=$e({type:nM});nM.\u0275inj=Fc({providers:[{provide:nad,useFactory:function(){return window.g3mark_service_url||"https://g3mark-service.corp.google.com"}},oD],imports:[mM]});UHa(VHa(function(){}));var oad={provide:OYc,deps:[Tz],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};Hh({passive:!0});var oM=function(){};oM.\u0275fac=function(a){return new (a||oM)};oM.\u0275mod=$e({type:oM});oM.\u0275inj=Fc({providers:[oad],imports:[by,iA,Wz,Cz,Ky]});var pad=[[["","onedevOptOutButton",""]],[["","mat-icon-button",""]]],pM=function(a){var b=this;this.zone=a;this.openedByKeyboard=!1;this.resizeObserver=new ResizeObserver(function(){b.zone.run(function(){var c=[];for(var d=c.concat,e=Array.from(b.triggers),f=Array.from(b.triggerElements),g=Math.max(e.length,f.length),k=[],l=0;l<g;l++)k.push([e[l],f[l]]);c=d.call(c,q(k),[[b.showMoreTrigger,b.showMoreElement]]);c=m(c);for(d=c.next();!d.done;d=c.next())e=m(d.value),d=e.next().value,e=e.next().value,
Number(e.nativeElement.offsetWidth===0)^Number(b.showMoreTrigger.menuOpen&&d!==b.showMoreTrigger)&&d.closeMenu();qad(b)})})};pM.prototype.ngOnInit=function(){};pM.prototype.ngAfterViewInit=function(){if(this.mdcButtons.length>0&&this.mdcButtons.some(function(a){return!a.nativeElement.classList.contains("gmat-mdc-button")}))throw Error("Vc");rad(this)};pM.prototype.ngOnDestroy=function(){this.resizeObserver.disconnect()};
var sad=function(a){qad(a);var b=a.openedByKeyboard?"keyboard":"mouse";a.openedByKeyboard=!1;setTimeout(function(){NYc(a.showMoreMenu,b)})},rad=function(a){for(var b=m([].concat(q(a.buttons),[a.showMoreElement])),c=b.next();!c.done;c=b.next())a.resizeObserver.observe(c.value.nativeElement)},qad=function(a){a=m(a.showMoreMenu._directDescendantItems);for(var b=a.next();!b.done;b=a.next())b=b.value,b.disabled=b._getHostElement().offsetWidth===0};
da.Object.defineProperties(pM.prototype,{menu:{configurable:!0,enumerable:!0,set:function(a){a.panelClass="onedev-appbar-menu";this.showMoreMenu=a}}});pM.\u0275fac=function(a){return new (a||pM)(Ve(Rg))};
pM.\u0275cmp=D({type:pM,selectors:[["onedev-mdc-button-group"]],contentQueries:function(a,b,c){a&1&&(ig(c,iH,4),ig(c,iH,4,Hd),ig(c,kB,4,Hd),ig(c,gB,4,Hd));if(a&2){var d;lg(d=mg())&&(b.triggers=d);lg(d=mg())&&(b.triggerElements=d);lg(d=mg())&&(b.buttons=d);lg(d=mg())&&(b.mdcButtons=d)}},viewQuery:function(a,b){a&1&&(hg(iH,5),hg(iH,5,Hd));if(a&2){var c;lg(c=mg())&&(b.showMoreTrigger=c.first);lg(c=mg())&&(b.showMoreElement=c.first)}},hostVars:2,hostBindings:function(a){a&2&&vg("display","flex")},inputs:{menu:"menu"},
ngContentSelectors:["[onedevOptOutButton]","[mat-icon-button]"],decls:5,vars:1,consts:[["mat-icon-button","","aria-label","show more",1,"show-more",3,"keydown.enter","keydown.space","menuOpened","matMenuTriggerFor"]],template:function(a,b){a&1&&(bg(pad),cg(0),cg(1,1),K(2,"button",0),N("keydown.enter",function(){b.openedByKeyboard=!0})("keydown.space",function(){b.openedByKeyboard=!0})("menuOpened",function(){return sad(b)}),K(3,"mat-icon"),Q(4,"more_vert"),L()());a&2&&(B(2),I("matMenuTriggerFor",
b.showMoreMenu))},dependencies:[mB,kB,iB,Ly,Jy,WJ,VJ,iH],styles:["/*\n * @fileoverview Contains SCSS for button_group.scss so that it can be easily\n * tested. Media queries are unable to be mocked in tests.\n */\n.onedev-appbar-menu [mat-menu-item] {\n  -webkit-box-align: center;\n  -webkit-align-items: center;\n     -moz-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  color: var(--text-default, black);\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -moz-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n.onedev-appbar-menu [mat-menu-item] mat-icon {\n  line-height: 24px;\n}\n\n@media (max-width: 960px) {\n  onedev-button-group [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button].show-more {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)),\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)),\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)),\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) ~ [mat-icon-button].show-more,\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+2):not(.show-more):not(:nth-last-child(2):nth-child(2)),\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+2):not(.show-more):not(:nth-last-child(2):nth-child(2)) {\n    display: none;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+2):not(.show-more):not(:nth-last-child(2):nth-child(2)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+2):not(.show-more):not(:nth-last-child(2):nth-child(2)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  .onedev-appbar-menu [mat-menu-item]:nth-child(-n+0),\n  .onedev-appbar-menu [onedevOptOutMenuItem] ~ [mat-menu-item]:nth-child(1) {\n    display: none;\n  }\n  onedev-button-group [onedevOptOutButton],\n  onedev-mdc-button-group [onedevOptOutButton] {\n    display: none;\n  }\n}\n@media (min-width: 961px) and (max-width: 1280px) {\n  onedev-button-group [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button].show-more {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)),\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)),\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)),\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) ~ [mat-icon-button].show-more,\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+4):not(.show-more):not(:nth-last-child(2):nth-child(4)),\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+4):not(.show-more):not(:nth-last-child(2):nth-child(4)) {\n    display: none;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+4):not(.show-more):not(:nth-last-child(2):nth-child(4)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+4):not(.show-more):not(:nth-last-child(2):nth-child(4)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  .onedev-appbar-menu [mat-menu-item]:nth-child(-n+2),\n  .onedev-appbar-menu [onedevOptOutMenuItem] ~ [mat-menu-item]:nth-child(3) {\n    display: none;\n  }\n}\n@media (min-width: 1281px) {\n  onedev-button-group [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button].show-more {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)),\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)),\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)),\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) ~ [mat-icon-button].show-more,\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+6):not(.show-more):not(:nth-last-child(2):nth-child(6)),\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+6):not(.show-more):not(:nth-last-child(2):nth-child(6)) {\n    display: none;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+6):not(.show-more):not(:nth-last-child(2):nth-child(6)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+6):not(.show-more):not(:nth-last-child(2):nth-child(6)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  .onedev-appbar-menu [mat-menu-item]:nth-child(-n+4),\n  .onedev-appbar-menu [onedevOptOutMenuItem] ~ [mat-menu-item]:nth-child(5) {\n    display: none;\n  }\n}\n"],
encapsulation:2});var qM=function(){};qM.\u0275fac=function(a){return new (a||qM)};qM.\u0275mod=$e({type:qM});qM.\u0275inj=Fc({imports:[by,SI,Ly,oM,pM]});var rM=function(){};rM.\u0275fac=function(a){return new (a||rM)};rM.\u0275mod=$e({type:rM});rM.\u0275inj=Fc({imports:[qM]});var tad=["*"],uad=["content"],vad=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],wad=new dd("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),xad=new dd("MAT_DRAWER_CONTAINER"),tM=function(){var a=p(Hd),b=p(Sh),c=p(Rg);wz.call(this,a,b,c);this._platform=p(Vh);this._changeDetectorRef=p(Cx);this._container=p(sM)};Y(tM,wz);tM.\u0275dir=wz.\u0275dir;tM.prototype.ngAfterContentInit=function(){var a=this;this._container._contentMarginChanges.subscribe(function(){a._changeDetectorRef.markForCheck()})};
tM.prototype._shouldBeHidden=function(){if(this._platform.isBrowser)return!1;var a=this._container,b=a.start;a=a.end;return b!=null&&b.mode!=="over"&&b.opened||a!=null&&a.mode!=="over"&&a.opened};tM.\u0275fac=function(a){return new (a||tM)};
tM.\u0275cmp=D({type:tM,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(a,b){a&2&&(vg("margin-left",b._container._contentMargins.left,"px")("margin-right",b._container._contentMargins.right,"px"),wg("mat-drawer-content-hidden",b._shouldBeHidden()))},features:[Gg([{provide:wz,useExisting:tM}]),Ef],ngContentSelectors:tad,decls:1,vars:0,template:function(a){a&1&&(bg(),cg(0))},encapsulation:2,changeDetection:0});
var uM=function(){var a=this;this._elementRef=p(Hd);this._focusTrapFactory=p(Vy);this._focusMonitor=p(Ny);this._platform=p(Vh);this._ngZone=p(Rg);this._renderer=p(ci);this._interactivityChecker=p(Qy);this._doc=p(Rh);this._container=p(xad,{optional:!0});this._elementFocusedBeforeDrawerWasOpened=this._focusTrap=null;this._position="start";this._mode="over";this._disableClose=!1;this._opened=ng.apply(null,[!1].concat(q([])));this._animationStarted=new qf;this._animationEnd=new qf;this.openedChange=new Ti(!0);
this._openedStream=this.openedChange.pipe(ue(function(b){return b}),A(function(){}));this.openedStart=this._animationStarted.pipe(ue(function(){return a.opened}),kf());this._closedStream=this.openedChange.pipe(ue(function(b){return!b}),A(function(){}));this.closedStart=this._animationStarted.pipe(ue(function(){return!a.opened}),kf());this._destroyed=new qf;this.onPositionChanged=new Ti;this._modeChanged=new qf;this._injector=p(ye);this._changeDetectorRef=p(Cx);this._handleTransitionEvent=function(b){b.target===
a._elementRef.nativeElement&&a._ngZone.run(function(){b.type==="transitionrun"?a._animationStarted.next(b):(b.type==="transitionend"&&a._setIsAnimating(!1),a._animationEnd.next(b))})};this.openedChange.pipe(zf(this._destroyed)).subscribe(function(b){b?(a._elementFocusedBeforeDrawerWasOpened=a._doc.activeElement,a._takeFocus()):a._isFocusWithinDrawer()&&a._restoreFocus(a._openedVia||"program")});this._ngZone.runOutsideAngular(function(){var b=a._elementRef.nativeElement;pe(b,"keydown").pipe(ue(function(c){return c.keyCode===
27&&!a.disableClose&&!Gh(c)}),zf(a._destroyed)).subscribe(function(c){return a._ngZone.run(function(){a.close();c.stopPropagation();c.preventDefault()})});a._eventCleanups=[a._renderer.listen(b,"transitionrun",a._handleTransitionEvent),a._renderer.listen(b,"transitionend",a._handleTransitionEvent),a._renderer.listen(b,"transitioncancel",a._handleTransitionEvent)]});this._animationEnd.subscribe(function(){a.openedChange.emit(a.opened)})};h=uM.prototype;
h._forceFocus=function(a,b){var c=this;this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var d=function(){e();f();a.removeAttribute("tabindex")},e=c._renderer.listen(a,"blur",d),f=c._renderer.listen(a,"mousedown",d)}));a.focus(b)};h._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};
h._takeFocus=function(){var a=this;if(this._focusTrap){var b=this._elementRef.nativeElement;switch(this.autoFocus){case !1:case "dialog":break;case !0:case "first-tabbable":Ee(function(){a._focusTrap.focusInitialElement()||typeof b.focus!=="function"||b.focus()},{injector:this._injector});break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}};
h._restoreFocus=function(a){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?Oy(this._focusMonitor,this._elementFocusedBeforeDrawerWasOpened,a):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)};h._isFocusWithinDrawer=function(){var a=this._doc.activeElement;return!!a&&this._elementRef.nativeElement.contains(a)};
h.ngAfterViewInit=function(){this._isAttached=!0;this._position==="end"&&this._updatePositionInParent("end");this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())};
h.ngOnDestroy=function(){this._eventCleanups.forEach(function(c){return c()});var a;(a=this._focusTrap)==null||a.destroy();var b;(b=this._anchor)==null||b.remove();this._anchor=null;this._animationStarted.complete();this._animationEnd.complete();this._modeChanged.complete();this._destroyed.next();this._destroyed.complete()};h.open=function(a){return this.toggle(!0,a)};h.close=function(){return this.toggle(!1)};h._closeViaBackdropClick=function(){return this._setOpen(!1,!0,"mouse")};
h.toggle=function(a,b){(a=a===void 0?!this.opened:a)&&b&&(this._openedVia=b);b=this._setOpen(a,!a&&this._isFocusWithinDrawer(),this._openedVia||"program");a||(this._openedVia=null);return b};
h._setOpen=function(a,b,c){var d=this;if(a===this.opened)return Promise.resolve(a?"open":"close");this._opened.set(a);var e;((e=this._container)==null?0:e._transitionsEnabled)?this._setIsAnimating(!0):setTimeout(function(){d._animationStarted.next();d._animationEnd.next()});this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",a);!a&&b&&this._restoreFocus(c);this._changeDetectorRef.markForCheck();this._updateFocusTrapState();return new Promise(function(f){d.openedChange.pipe(lf(1)).subscribe(function(g){return f(g?
"open":"close")})})};h._setIsAnimating=function(a){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",a)};h._getWidth=function(){return this._elementRef.nativeElement.offsetWidth||0};h._updateFocusTrapState=function(){if(this._focusTrap){var a;this._focusTrap.enabled=!((a=this._container)==null||!a.hasBackdrop)&&this.opened}};
h._updatePositionInParent=function(a){if(this._platform.isBrowser){var b=this._elementRef.nativeElement,c=b.parentNode;a==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),c.insertBefore(this._anchor,b)),c.appendChild(b)):this._anchor&&this._anchor.parentNode.insertBefore(b,this._anchor)}};
da.Object.defineProperties(uM.prototype,{position:{configurable:!0,enumerable:!0,get:function(){return this._position},set:function(a){a=a==="end"?"end":"start";a!==this._position&&(this._isAttached&&this._updatePositionInParent(a),this._position=a,this.onPositionChanged.emit())}},mode:{configurable:!0,enumerable:!0,get:function(){return this._mode},set:function(a){this._mode=a;this._updateFocusTrapState();this._modeChanged.next()}},disableClose:{configurable:!0,enumerable:!0,get:function(){return this._disableClose},
set:function(a){this._disableClose=Lh(a)}},autoFocus:{configurable:!0,enumerable:!0,get:function(){var a=this._autoFocus;return a==null?this.mode==="side"?"dialog":"first-tabbable":a},set:function(a){if(a==="true"||a==="false"||a==null)a=Lh(a);this._autoFocus=a}},opened:{configurable:!0,enumerable:!0,get:function(){return this._opened()},set:function(a){this.toggle(Lh(a))}}});uM.\u0275fac=function(a){return new (a||uM)};
uM.\u0275cmp=D({type:uM,selectors:[["mat-drawer"]],viewQuery:function(a,b){a&1&&hg(uad,5);if(a&2){var c;lg(c=mg())&&(b._content=c.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(a,b){a&2&&(If("align",null)("tabIndex",b.mode!=="side"?"-1":null),vg("visibility",b._container||b.opened?null:"hidden"),wg("mat-drawer-end",b.position==="end")("mat-drawer-over",b.mode==="over")("mat-drawer-push",b.mode==="push")("mat-drawer-side",b.mode==="side"))},inputs:{position:"position",mode:"mode",
disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:tad,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(a){a&1&&(bg(),K(0,"div",1,0),cg(2),L())},dependencies:[wz],encapsulation:2,changeDetection:0});
var sM=function(){var a=this;this._dir=p(bi,{optional:!0});this._element=p(Hd);this._ngZone=p(Rg);this._changeDetectorRef=p(Cx);this._animationDisabled=mi();this._transitionsEnabled=!1;this._drawers=new gg;this._autosize=p(wad);this.backdropClick=new Ti;this._destroyed=new qf;this._doCheckSubject=new qf;this._contentMargins={left:null,right:null};this._contentMarginChanges=new qf;this._injector=p(ye);var b=p(Vh),c=p(Qh),d;(d=this._dir)==null||d.change.pipe(zf(this._destroyed)).subscribe(function(){a._validateDrawers();
vM(a)});c.change().pipe(zf(this._destroyed)).subscribe(function(){return vM(a)});!this._animationDisabled&&b.isBrowser&&this._ngZone.runOutsideAngular(function(){setTimeout(function(){a._element.nativeElement.classList.add("mat-drawer-transition");a._transitionsEnabled=!0},200)})};
sM.prototype.ngAfterContentInit=function(){var a=this;this._allDrawers.changes.pipe(xf(this._allDrawers),zf(this._destroyed)).subscribe(function(b){a._drawers.reset(b.filter(function(c){return!c._container||c._container===a}));kg(a._drawers)});this._drawers.changes.pipe(xf(null)).subscribe(function(){a._validateDrawers();a._drawers.forEach(function(b){a._watchDrawerToggle(b);a._watchDrawerPosition(b);a._watchDrawerMode(b)});(!a._drawers.length||a._isDrawerOpen(a._start)||a._isDrawerOpen(a._end))&&
vM(a);a._changeDetectorRef.markForCheck()});this._ngZone.runOutsideAngular(function(){a._doCheckSubject.pipe(jf(10),zf(a._destroyed)).subscribe(function(){return vM(a)})})};sM.prototype.ngOnDestroy=function(){this._contentMarginChanges.complete();this._doCheckSubject.complete();this._drawers.destroy();this._destroyed.next();this._destroyed.complete()};sM.prototype.open=function(){this._drawers.forEach(function(a){return a.open()})};sM.prototype.close=function(){this._drawers.forEach(function(a){return a.close()})};
var vM=function(a){var b=0,c=0;if(a._left&&a._left.opened)if(a._left.mode=="side")b+=a._left._getWidth();else if(a._left.mode=="push"){var d=a._left._getWidth();b+=d;c-=d}a._right&&a._right.opened&&(a._right.mode=="side"?c+=a._right._getWidth():a._right.mode=="push"&&(d=a._right._getWidth(),c+=d,b-=d));b=b||null;c=c||null;if(b!==a._contentMargins.left||c!==a._contentMargins.right)a._contentMargins={left:b,right:c},a._ngZone.run(function(){return a._contentMarginChanges.next(a._contentMargins)})};
h=sM.prototype;h.ngDoCheck=function(){var a=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return a._doCheckSubject.next()})};h._watchDrawerToggle=function(a){var b=this;a._animationStarted.pipe(zf(this._drawers.changes)).subscribe(function(){vM(b);b._changeDetectorRef.markForCheck()});a.mode!=="side"&&a.openedChange.pipe(zf(this._drawers.changes)).subscribe(function(){return b._setContainerClass(a.opened)})};
h._watchDrawerPosition=function(a){var b=this;a.onPositionChanged.pipe(zf(this._drawers.changes)).subscribe(function(){Ee({read:function(){return b._validateDrawers()}},{injector:b._injector})})};h._watchDrawerMode=function(a){var b=this;a._modeChanged.pipe(zf(te(this._drawers.changes,this._destroyed))).subscribe(function(){vM(b);b._changeDetectorRef.markForCheck()})};h._setContainerClass=function(a){var b=this._element.nativeElement.classList;a?b.add("mat-drawer-container-has-open"):b.remove("mat-drawer-container-has-open")};
h._validateDrawers=function(){var a=this;this._start=this._end=null;this._drawers.forEach(function(b){b.position=="end"?a._end=b:a._start=b});this._right=this._left=null;this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)};h._isPushed=function(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"};
h._onBackdropClicked=function(){this.backdropClick.emit();this._closeModalDrawersViaBackdrop()};h._closeModalDrawersViaBackdrop=function(){var a=this;[this._start,this._end].filter(function(b){return b&&!b.disableClose&&a._drawerHasBackdrop(b)}).forEach(function(b){return b._closeViaBackdropClick()})};h._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)};
h._isDrawerOpen=function(a){return a!=null&&a.opened};h._drawerHasBackdrop=function(a){return this._backdropOverride==null?!!a&&a.mode!=="side":this._backdropOverride};
da.Object.defineProperties(sM.prototype,{start:{configurable:!0,enumerable:!0,get:function(){return this._start}},end:{configurable:!0,enumerable:!0,get:function(){return this._end}},autosize:{configurable:!0,enumerable:!0,get:function(){return this._autosize},set:function(a){this._autosize=Lh(a)}},hasBackdrop:{configurable:!0,enumerable:!0,get:function(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)},set:function(a){this._backdropOverride=a==null?null:Lh(a)}},scrollable:{configurable:!0,
enumerable:!0,get:function(){return this._userContent||this._content}}});sM.\u0275fac=function(a){return new (a||sM)};
sM.\u0275cmp=D({type:sM,selectors:[["mat-drawer-container"]],contentQueries:function(a,b,c){a&1&&(ig(c,tM,5),ig(c,uM,5));if(a&2){var d;lg(d=mg())&&(b._content=d.first);lg(d=mg())&&(b._allDrawers=d)}},viewQuery:function(a,b){a&1&&hg(tM,5);if(a&2){var c;lg(c=mg())&&(b._userContent=c.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-drawer-container-explicit-backdrop",b._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},
exportAs:["matDrawerContainer"],features:[Gg([{provide:xad,useExisting:sM}])],ngContentSelectors:["mat-drawer","mat-drawer-content","*"],decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(a,b){a&1&&(bg(vad),F(0,sQa,1,2,"div",0),cg(1),cg(2,1),F(3,tQa,2,0,"mat-drawer-content"));a&2&&(G(b.hasBackdrop?0:-1),B(3),G(b._content?-1:3))},dependencies:[tM],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}\n"],
encapsulation:2,changeDetection:0});var yad=["*"],zad=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],wM=function(){tM.apply(this,arguments)};Y(wM,tM);wM.\u0275dir=tM.\u0275dir;wM.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(wM)))(b||wM)}}();wM.\u0275cmp=D({type:wM,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Gg([{provide:wz,useExisting:wM}]),Ef],ngContentSelectors:yad,decls:1,vars:0,template:function(a){a&1&&(bg(),cg(0))},encapsulation:2,changeDetection:0});
var xM=function(){uM.apply(this,arguments);this._fixedInViewport=!1;this._fixedBottomGap=this._fixedTopGap=0};Y(xM,uM);
da.Object.defineProperties(xM.prototype,{fixedInViewport:{configurable:!0,enumerable:!0,get:function(){return this._fixedInViewport},set:function(a){this._fixedInViewport=Lh(a)}},fixedTopGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedTopGap},set:function(a){this._fixedTopGap=Oh(a)}},fixedBottomGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedBottomGap},set:function(a){this._fixedBottomGap=Oh(a)}}});
xM.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(xM)))(b||xM)}}();
xM.\u0275cmp=D({type:xM,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(a,b){a&2&&(If("tabIndex",b.mode!=="side"?"-1":null)("align",null),vg("top",b.fixedInViewport?b.fixedTopGap:null,"px")("bottom",b.fixedInViewport?b.fixedBottomGap:null,"px"),wg("mat-drawer-end",b.position==="end")("mat-drawer-over",b.mode==="over")("mat-drawer-push",b.mode==="push")("mat-drawer-side",b.mode==="side")("mat-sidenav-fixed",b.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",
fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Gg([{provide:uM,useExisting:xM}]),Ef],ngContentSelectors:yad,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(a){a&1&&(bg(),K(0,"div",1,0),cg(2),L())},dependencies:[wz],encapsulation:2,changeDetection:0});var yM=function(){sM.apply(this,arguments);this._content=this._allDrawers=void 0};Y(yM,sM);
yM.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(yM)))(b||yM)}}();
yM.\u0275cmp=D({type:yM,selectors:[["mat-sidenav-container"]],contentQueries:function(a,b,c){a&1&&(ig(c,wM,5),ig(c,xM,5));if(a&2){var d;lg(d=mg())&&(b._content=d.first);lg(d=mg())&&(b._allDrawers=d)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-drawer-container-explicit-backdrop",b._backdropOverride)},exportAs:["matSidenavContainer"],features:[Gg([{provide:xad,useExisting:yM},{provide:sM,useExisting:yM}]),Ef],ngContentSelectors:["mat-sidenav",
"mat-sidenav-content","*"],decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(a,b){a&1&&(bg(zad),F(0,uQa,1,2,"div",0),cg(1),cg(2,1),F(3,vQa,2,0,"mat-sidenav-content"));a&2&&(G(b.hasBackdrop?0:-1),B(3),G(b._content?-1:3))},dependencies:[wM],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}\n"],
encapsulation:2,changeDetection:0});var zM=function(){};zM.\u0275fac=function(a){return new (a||zM)};zM.\u0275mod=$e({type:zM});zM.\u0275inj=Fc({imports:[Cz,Ky,Cz]});var AM=function(){var a=this;this.routingService=p(BA);this.communicationService=p(iC);this.backendModelService=p(lC);this.conversationAgentsService=p(jC);this.chatStateService=p(QJ);this.threadService=p(FD);this.destroyRef=p(Ce);this.useExperimentalOrcasAgent=Og.apply(null,[!1].concat(q([])));this.query=Og.apply(null,q([]));this.contextValues=Og.apply(null,[void 0].concat(q([])));this.onboardingExamples=Og.apply(null,[void 0].concat(q([])));this.isDarkMode=Og.apply(null,[!1].concat(q([])));this.configurationKey=
"nexus";this.DuckieView=zEc;this.activeView$=this.routingService.activeView$;this.isRecentSessionsVisible$=this.chatStateService.isRecentSessionsVisible$;var b=p(AA);b.overrideAgentMessageDisplayName="Production Agent";b.overrideDisclaimer="Production Agent can make mistakes. Consider double-checking its responses.";this.threadService.isDuckieSourceEmbedded=!0;ef(function(){var c=a.conversationAgentsService,d=a.useExperimentalOrcasAgent()?xwc:wwc;c.currentConversationAgentInternal.next(d)});ef(function(){a.query()&&
requestAnimationFrame(function(){a.sendQuestion(a.query())})});ef(function(){var c=a.communicationService,d=a.isDarkMode();c.overridesService.isDarkMode$.next(d)});ef(function(){var c,d=(c=a.onboardingExamples())!=null?c:new lad;a.communicationService.setOnboardingExamplesList(d)});ef(function(){var c=a.contextValues();c!=null&&a.communicationService.setAppProvidedContext(c)})};
AM.prototype.ngOnInit=function(){var a=this,b,c=(b=PMa(this.configurationKey))==null?void 0:b.modelIdOverride;c&&this.backendModelService.currentModelIdInternal.next(c);this.chatStateService.messageQueue$.asObservable().pipe(Tj(this.destroyRef)).subscribe(function(d){if(d.contextMap){var e=d.contextMap,f;var g=(f=a.contextValues())==null?void 0:f.clone();if(e){f=[];e=m(e.entries());for(var k=e.next();!k.done;k=e.next()){var l=m(k.value);k=l.next().value;l=l.next().value;f.push((new xA).setName(k).setStringValue(l))}e=
g==null?void 0:g.getValuesList()[0];var r;k=(new wA).setValuesList([].concat(q((e==null?void 0:(r=bm(e,wA,3,yA))==null?void 0:r.getValuesList())||[]),f));e?(Wo(e,3,yA,k),g.setValuesList([e].concat(g.getValuesList().slice(1)))):g=k}g!=null&&a.communicationService.setAppProvidedContext(g);a.sendQuestion(d.message);d=a.contextValues();d!=null&&a.communicationService.setAppProvidedContext(d)}else a.sendQuestion(d.message)})};
AM.prototype.sendQuestion=function(a){lIc(a);document.getElementById("ask-duckie-submit").dispatchEvent(new Event("click",{bubbles:!0}))};AM.\u0275fac=function(a){return new (a||AM)};
AM.\u0275cmp=D({type:AM,selectors:[["gpp-agent-chat"]],inputs:{useExperimentalOrcasAgent:[1,"useExperimentalOrcasAgent"],query:[1,"query"],contextValues:[1,"contextValues"],onboardingExamples:[1,"onboardingExamples"],isDarkMode:[1,"isDarkMode"]},features:[Gg([{provide:k9c,useValue:qF},{provide:x7c,useValue:PJ}])],decls:9,vars:14,consts:[[1,"chat-container"],[3,"configurationKey"],[3,"useCompactView"],[1,"recent-sessions-container"],[3,"navItemClicked"]],template:function(a,b){a&1&&(K(0,"div")(1,"div",
0),T(2,"async"),F(3,wQa,1,1,"onboarding-wrapper",1),T(4,"async"),Kf(5,xQa,1,1,"thread-wrapper",2),L(),K(6,"div",3),T(7,"async"),K(8,"recent-sessions",4),N("navItemClicked",function(){b.chatStateService.isRecentSessionsVisibleSubject.next(!1)}),L()()());if(a&2){var c;xg(Eg("gpp-agent-container ",b.isDarkMode()?"dark-mode":"light-mode"));B();wg("hidden",!!U(2,8,b.isRecentSessionsVisible$));B(2);G((c=U(4,10,b.activeView$))===b.DuckieView.ONBOARDING?3:c===b.DuckieView.THREAD?5:-1);B(3);wg("hidden",!U(7,
12,b.isRecentSessionsVisible$))}},dependencies:[zK,gL,fL,by,rM,mB,wK,nM,iK,Ly,zM,sK,lM,kM,uK,Tx],styles:["[_ngcontent-%COMP%]: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}.dark-mode[_ngcontent-%COMP%], .light-mode[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root{--app-bar-bg:#fff;--base-fg:#000;--button-disabled-bg:rgba(0,0,0,.12);--elevation:rgba(0,0,0,.2);--hairline:var(--grey-300);--hover:rgba(0,0,0,.06);--icon:var(--grey-700);--input-field-bg:var(--grey-100);--input-field-disabled-bg:#f5f6f7;--page-bg:#fff;--surface-default:#fff;--surface-secondary:var(--grey-50);--text-default:var(--grey-900);--text-high-contrast:var(--grey-900);--text-disabled:rgba(0,0,0,.26);--text-inverse:#fff;--text-secondary:var(--grey-700);--tooltip-bg:rgba(97,97,97,.9);--overlay-backdrop:rgba(0,0,0,.32);--button-disabled-text:var(--text-disabled);--button-focused-bg:var(--hover);--button-raised-bg:var(--surface-default);--button-selected:var(--blue-100);--button-selected-disabled-bg:var(--input-field-bg);--button-toggle-disabled-bg:var(--button-disabled-bg);--chip-unselected-bg:var(--surface-default);--hint-text:var(--text-disabled);--list-option-disabled-bg:var(--button-disabled-bg);--slider-min:var(--text-default);--slider-off-active:var(--button-disabled-text);--slider-off:var(--button-disabled-text);--slider-toggle-track:rgba(25,103,210,.54);--slider-toggle-track-warn:rgba(217,48,37,.54);--primary-default:var(--blue-600);--primary-low-contrast:var(--blue-500);--primary-high-contrast:var(--blue-700);--warn-default:var(--red-600);--warn-low-contrast:var(--red-500);--warn-high-contrast:var(--red-700);--snackbar-background:var(--grey-900);--snackbar-text:var(--grey-200);--snackbar-action-text:var(--blue-300);--snackbar-error-background:var(--red-900);--snackbar-error-text:var(--white);--snackbar-error-action-text:var(--blue-200);--radio-disabled-outline:var(--grey-800);--tonal-blue:#185abc;--tonal-cyan:#007b83;--tonal-green:#137333;--tonal-grey:#5f6368;--tonal-orange:#bd4800;--tonal-pink:#d01884;--tonal-purple:#9334e6;--tonal-red:#d42521;--tonal-yellow:#8f6b00;--tonal-fill-blue:#f2f6ff;--tonal-fill-cyan:#ebfcfe;--tonal-fill-green:#edfbf1;--tonal-fill-grey:#f4f5f6;--tonal-fill-orange:#fff3e9;--tonal-fill-pink:#fff2f9;--tonal-fill-purple:#f9f3ff;--tonal-fill-red:#fff2f1;--tonal-fill-yellow:#fff8e4;--tonal-tint-blue:#f9fbff;--tonal-tint-cyan:#f6fdfe;--tonal-tint-green:#f7fdf9;--tonal-tint-grey:#f9fafb;--tonal-tint-orange:#fff9f5;--tonal-tint-pink:#fff9fc;--tonal-tint-purple:#fcf9ff;--tonal-tint-red:#fff8f7;--tonal-tint-yellow:#fffcf3;--tonal-icon-blue:#2672e3;--tonal-icon-cyan:#34989d;--tonal-icon-green:#2b923d;--tonal-icon-grey:#878787;--tonal-icon-orange:#d46f17;--tonal-icon-pink:#f127ab;--tonal-icon-purple:#ad61f5;--tonal-icon-red:#e51d19;--tonal-icon-yellow:#9c8c30;--default-surface:var(--surface-default);--default-text:var(--text-default);--disabled-text:var(--text-disabled);--inverse-text:var(--text-inverse);--secondary-surface:var(--surface-secondary);--secondary-text:var(--text-secondary)}.dark-mode[_ngcontent-%COMP%]{--app-bar-bg:var(--grey-900);--base-fg:#fff;--button-disabled-bg:hsla(0,0%,100%,.12);--button-disabled-text:hsla(0,0%,100%,.26);--button-selected:rgba(138,180,248,.24);--elevation:rgba(0,0,0,.5);--hairline:var(--grey-700);--hover:hsla(0,0%,100%,.08);--icon:var(--grey-300);--input-field-bg:#28292c;--input-field-disabled-bg:#27292c;--page-bg:var(--grey-900);--surface-default:#28292c;--surface-secondary:#000;--text-default:var(--grey-200);--text-high-contrast:#fff;--text-disabled:hsla(0,0%,100%,.26);--text-inverse:#000;--text-secondary:var(--grey-400);--tooltip-bg:hsla(0,0%,100%,.9);--overlay-backdrop:rgba(0,0,0,.5);--primary-default:var(--blue-300);--primary-low-contrast:var(--blue-500);--primary-high-contrast:var(--blue-200);--warn-default:var(--red-300);--warn-low-contrast:var(--red-500);--warn-high-contrast:var(--red-200);--slider-toggle-track:rgba(138,180,248,.54);--slider-toggle-track-warn:hsla(5,81%,73%,.54);--snackbar-background:var(--white);--snackbar-text:var(--grey-900);--snackbar-action-text:var(--blue-600);--snackbar-error-background:var(--red-50);--snackbar-error-text:#000;--snackbar-error-action-text:var(--blue-700);--radio-disabled-outline:var(--grey-200);--tonal-blue:#99befa;--tonal-cyan:#78d9ec;--tonal-green:#81c995;--tonal-grey:#c7c7c7;--tonal-orange:#fcad70;--tonal-pink:#ff8bcb;--tonal-purple:#ca94fa;--tonal-red:#f28b82;--tonal-yellow:#fdd663;--tonal-fill-blue:#2a3952;--tonal-fill-cyan:#24424a;--tonal-fill-green:#274031;--tonal-fill-grey:#36383a;--tonal-fill-orange:#513724;--tonal-fill-pink:#502941;--tonal-fill-purple:#3e2b52;--tonal-fill-red:#4e2b2a;--tonal-fill-yellow:#453b1f;--tonal-tint-blue:#252d3b;--tonal-tint-cyan:#223339;--tonal-tint-green:#23302a;--tonal-tint-grey:#2b2c2f;--tonal-tint-orange:#382c24;--tonal-tint-pink:#382532;--tonal-tint-purple:#2f263b;--tonal-tint-red:#362627;--tonal-tint-yellow:#322e22;--tonal-icon-blue:#7391f2;--tonal-icon-cyan:#39bcd5;--tonal-icon-green:#55c374;--tonal-icon-grey:#a4a4a4;--tonal-icon-orange:#fb9546;--tonal-icon-pink:#fc78c1;--tonal-icon-purple:#ad61f5;--tonal-icon-red:#fa7775;--tonal-icon-yellow:#f4ce5d;--default-surface:var(--surface-default);--default-text:var(--text-default);--disabled-text:var(--text-disabled);--inverse-text:var(--text-inverse);--secondary-surface:var(--surface-secondary);--secondary-text:var(--text-secondary)}.themed[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{color:var(--text-default);background-color:var(--page-bg)}  html{--base-px:1px}  .gpp-agent-container{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:100%}  .gpp-agent-container .full-width{width:100%}  .gpp-agent-container .full-height{height:100%}  .gpp-agent-container body .bg-page-bg{background-color:var(--page-bg)}  .gpp-agent-container body .bg-surface-default{background-color:var(--surface-default)}  .gpp-agent-container body .bg-surface-container{background-color:var(--surface-container)}  .gpp-agent-container body .bg-primary-container{background-color:var(--primary-container)}  .gpp-agent-container .bordered{border:1px solid var(--hairline)}  .gpp-agent-container .border-bottom{border-bottom:1px solid var(--hairline)}  .gpp-agent-container .border-top{border-top:1px solid var(--hairline)}  .gpp-agent-container body .text-secondary{color:var(--text-secondary)}  .gpp-agent-container body .text-high-contrast{color:var(--text-high-contrast)}  .gpp-agent-container .italic{font-style:italic}  .gpp-agent-container .bold{font-weight:700}  .gpp-agent-container .medium{font-weight:500}  .gpp-agent-container .font-google-sans{font-family:Google Sans,sans-serif}  .gpp-agent-container .font-roboto{font-family:Roboto,sans-serif}  .gpp-agent-container .type-s{font-size:calc(var(--base-px, 1rem)*13)}  .gpp-agent-container .type-xs{font-size:calc(var(--base-px, 1rem)*12)}  .gpp-agent-container .text-center{text-align:center}  .gpp-agent-container .font-google-sans-text{font-family:Google Sans Text,Helvetica,Arial}  .gpp-agent-container .font-google-symbols{font-family:Google Symbols}  .gpp-agent-container .rounded{border-radius:16px}  .gpp-agent-container .rounded-full{border-radius:10000px}  .gpp-agent-container .rounded-s{border-radius:8px}  .gpp-agent-container .rounded-xs{border-radius:4px}  .gpp-agent-container .flex-column{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}  .gpp-agent-container .flex-row{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}  .gpp-agent-container .flex-row-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}  .gpp-agent-container .flex-spacer{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}  .gpp-agent-container .align-items-center{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}  .gpp-agent-container .align-items-flex-start{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}  .gpp-agent-container .align-self-center{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}  .gpp-agent-container .justify-content-flex-end{-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}  .gpp-agent-container .justify-content-space-between{-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}  .gpp-agent-container .justify-content-center{-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}  .gpp-agent-container .gap{gap:16px}  .gpp-agent-container .gap-s{gap:8px}  .gpp-agent-container .gap-xs{gap:4px}  .gpp-agent-container .spacer{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}  .gpp-agent-container .margin{margin:16px}  .gpp-agent-container .margin-top{margin-top:16px}  .gpp-agent-container .margin-s-top{margin-top:8px}  .gpp-agent-container .margin-xs-top{margin-top:4px}  .gpp-agent-container .margin-bottom{margin-bottom:16px}  .gpp-agent-container .margin-s-bottom{margin-bottom:8px}  .gpp-agent-container .margin-xs-bottom{margin-bottom:4px}  .gpp-agent-container .margin-left{margin-left:16px}  .gpp-agent-container .margin-s-left{margin-left:8px}  .gpp-agent-container .margin-xs-left{margin-left:4px}  .gpp-agent-container .margin-right{margin-right:16px}  .gpp-agent-container .margin-s-right{margin-right:8px}  .gpp-agent-container .margin-xs-right{margin-right:4px}  .gpp-agent-container .margin-y{margin-top:16px;margin-bottom:16px}  .gpp-agent-container .margin-s-y{margin-top:8px;margin-bottom:8px}  .gpp-agent-container .margin-xs-y{margin-top:4px;margin-bottom:4px}  .gpp-agent-container .margin-x{margin-left:16px;margin-right:16px}  .gpp-agent-container .margin-s-x{margin-left:8px;margin-right:8px}  .gpp-agent-container .margin-auto-y{margin-top:auto;margin-bottom:auto}  .gpp-agent-container .margin-auto-x{margin-left:auto;margin-right:auto}  .gpp-agent-container .padded{padding:16px}  .gpp-agent-container .padded-s{padding:8px}  .gpp-agent-container .padded-xs{padding:4px}  .gpp-agent-container .padded-xxs{padding:2px}  .gpp-agent-container .padded-top{padding-top:16px}  .gpp-agent-container .padded-s-top{padding-top:8px}  .gpp-agent-container .padded-xs-top{padding-top:4px}  .gpp-agent-container .padded-s-y{padding-bottom:8px;padding-top:8px}  .gpp-agent-container .padded-xs-x{padding-left:4px;padding-right:4px}  .gpp-agent-container .padded-s-x{padding-left:8px;padding-right:8px}  .gpp-agent-container .padded-m-left{padding-left:24px}  .gpp-agent-container .padded-left{padding-left:16px}  .gpp-agent-container .padded-s-left{padding-left:8px}  .gpp-agent-container .padded-xs-left{padding-left:4px}  .gpp-agent-container .padded-right{padding-right:16px}  .gpp-agent-container .padded-s-right{padding-right:8px}  .gpp-agent-container .padded-xs-bottom{padding-bottom:4px}  .gpp-agent-container .padded-s-bottom{padding-bottom:8px}  .gpp-agent-container .width-almost-full{width:90%}  .gpp-agent-container body .gmat-mdc-button.mat-mdc-button-base.small{--mat-icon-button-state-layer-size:24px;--mat-icon-button-icon-size:24px;line-height:24px}  .gpp-agent-container body .gmat-mdc-button.mat-mdc-button-base.medium{--mat-icon-button-state-layer-size:32px;--mat-icon-button-icon-size:32px;line-height:32px}  .gpp-agent-container body .mat-icon-button.small{width:24px;height:24px;line-height:24px}  .gpp-agent-container body .mat-icon-button.medium{width:32px;height:32px;line-height:32px}  .gpp-agent-container body .icon-s,   .gpp-agent-container body .icon-s>mat-icon{width:calc(var(--base-px, 1rem)*18);height:calc(var(--base-px, 1rem)*18);font-size:calc(var(--base-px, 1rem)*18)}  .gpp-agent-container body .icon-m,   .gpp-agent-container body .icon-m>mat-icon{width:calc(var(--base-px, 1rem)*20);height:calc(var(--base-px, 1rem)*20);font-size:calc(var(--base-px, 1rem)*20)}  .gpp-agent-container .chat-container.hidden,   .gpp-agent-container .recent-sessions-container.hidden{display:none}  .gpp-agent-container .chat-container{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;width:100%}  .gpp-agent-container .chat-container thread-wrapper{width:100%}  .gpp-agent-container .chat-container thread-wrapper .duckie-link-following{display:none}  .gpp-agent-container .chat-container .container>.onboarding,   .gpp-agent-container .chat-container .container>.thread{box-shadow:none;margin:0;padding-bottom:0;height:100%}  .gpp-agent-container .chat-container .container>.onboarding .onboarding-section,   .gpp-agent-container .chat-container .container>.onboarding .thread-container,   .gpp-agent-container .chat-container .container>.onboarding .thread-heading,   .gpp-agent-container .chat-container .container>.onboarding message-input,   .gpp-agent-container .chat-container .container>.thread .onboarding-section,   .gpp-agent-container .chat-container .container>.thread .thread-container,   .gpp-agent-container .chat-container .container>.thread .thread-heading,   .gpp-agent-container .chat-container .container>.thread message-input{padding-left:0;padding-right:0}  .gpp-agent-container .chat-container .container>.onboarding .thread-heading,   .gpp-agent-container .chat-container .container>.thread .thread-heading{min-height:0}  .gpp-agent-container .chat-container .container .reminder-blurb{border-radius:8px;font-size:12px;padding:0 1em}  .gpp-agent-container .chat-container .container .duckie-disclaimer{font-size:10px;margin:0}  .gpp-agent-container .recent-sessions-container{width:100%}  .gpp-agent-container.light-mode{--primary-container:#d3e3fd;--on-primary-container:#041e49;--surface-container:#f0f4f9;--surface-secondary:#f8f9fa;--secondary-container:#c2e7ff;--duckie-experiment-banner-color-1:#d7e6ff;--duckie-experiment-banner-color-2:#dce2ff;--graphviz-bg-fill:transparent;--graphviz-text-default:#3c4043;--graphviz-stroke-default:#3c4043;--graphviz-cluster-stroke:#616161}  .gpp-agent-container.dark-mode{--primary-container:#0842a0;--on-primary-container:#d3e3fd;--surface-container:#1e1f20;--surface-secondary:#000;--secondary-container:#004a77;--duckie-experiment-banner-color-1:#0842a0;--duckie-experiment-banner-color-2:#55226e;--graphviz-text-default:#e8eaed;--graphviz-stroke-default:#e8eaed;--graphviz-cluster-stroke:#dadce0}"],
changeDetection:0});var BM=function(){this.screenshotLinkFollowingEnabled=this.userProvidedContextEnabled=this.responseMetadataEnabled=!0;this.experimentalDuckieAgentEnabled=this.sVsMGooseModelEnabled=!1;this.userProvidedContextDriveEnabled=this.userProvidedContextYaqsEnabled=this.displayDuckieThoughtsEnabled=!0;this.feedbackAnimationsEnabled=this.duckieBigBirdStrikeEnabled=this.duckieSessionDeletionEnabled=this.userProvidedContextIrmEnabled=this.duckieStreamingMvpEnabled=this.userProvidedContextGerritEnabled=this.userProvidedContextGoLinkEnabled=
this.recitationCheckingEnabled=this.userProvidedContextGobEnabled=!1};Y(BM,qA);BM.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(BM)))(b||BM)}}();BM.\u0275prov=Dc({token:BM,factory:BM.\u0275fac,providedIn:"root"});var CM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(CM,W);CM.prototype.getId=function(){return ui(this,1)};CM.prototype.setId=function(a){return Fm(this,1,a)};CM.prototype.getSourceId=function(){return wi(this,2)};CM.prototype.setSourceId=function(a){return Hm(this,2,a)};var Aad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Aad,W);h=Aad.prototype;h.getUrl=function(){return ui(this,1)};h.setUrl=function(a){return Fm(this,1,a)};h.getHeight=function(){return Bm(this,2)};h.setHeight=function(a){return an(this,2,a)};h.getWidth=function(){return Bm(this,3)};h.setWidth=function(a){return an(this,3,a)};var DM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(DM,W);DM.prototype.hasDuration=function(){return xi(this,dn,2)};var Bad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bad,W);var Cad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cad,W);h=Cad.prototype;h.getEmailList=function(){return Cm(this,1,Ci())};h.setEmailList=function(a){return Gm(this,1,a)};h.addEmail=function(a){return zc(this,1,Sb,a,void 0,Tb)};h.removeEmail=function(a){return zc(this,1,Sb,void 0,a,Tb,void 0,1,!1,!0)};h.getEmail=function(){return Uw(this,1)};h.setEmail=function(a){return bx(this,1,a)};h.getGroupId=function(a){return Uw(this,2,a)};
h.setGroupId=function(a){bx(this,2,a)};var Dad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dad,W);var Ead=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ead,W);Ead.prototype.getDownloadUrl=function(){return ui(this,5)};var Fad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fad,W);var Gad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gad,W);var Had=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Had,W);Had.prototype.getPhotoId=function(){return ui(this,1)};var Iad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Iad,W);var Jad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jad,W);var EM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(EM,W);EM.prototype.getAgentId=function(){return wi(this,3)};EM.prototype.setAgentId=function(a){return Hm(this,3,a)};var FM=[2,4,5,6,7];var Kad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kad,W);Kad.prototype.setReferrerUrl=function(a){return Fm(this,2,a)};var GM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(GM,W);h=GM.prototype;h.getId=function(){return X(this,CM,1)};h.setId=function(a){return Mi(this,CM,1,a)};h.getName=function(){return ui(this,2)};h.setName=function(a){return Fm(this,2,a)};h.getDescription=function(){return ui(this,3)};h.setDescription=function(a){return Fm(this,3,a)};h.getParentId=function(){return ui(this,4)};h.setParentId=function(a){return Fm(this,4,a)};h.getType=function(){return wi(this,6)};
h.setType=function(a){return Hm(this,6,a)};h.getMimeType=function(){return ui(this,7)};h.setMimeType=function(a){return Fm(this,7,a)};h.getUrl=function(){return ui(this,8)};h.setUrl=function(a){return Fm(this,8,a)};h.getIconUrl=function(){return ui(this,11)};h.setIconUrl=function(a){return Fm(this,11,a)};var HM=function(a){return Bi(a,Aad,10,Ci())};h=GM.prototype;h.getLastModifiedTimestamp=function(){return X(this,Si,12)};h.getVideoMetadata=function(){return X(this,DM,34)};
h.hasVideoMetadata=function(){return xi(this,DM,34)};h.setOwnedByMe=function(a){return Yo(this,39,a)};h.getOwner=function(){return Uw(this,40)};h.setOwner=function(a){return bx(this,40,a)};h.getStarred=function(){return Fi(this,44)};h.getVersion=function(){return pn(this,45)};h.setVersion=function(a){return Io(this,45,a)};var IM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(IM,W);h=IM.prototype;h.getShared=function(){return Fi(this,1)};
h.setShared=function(a){Yo(this,1,a)};h.getVideoMetadata=function(){return X(this,DM,3)};h.hasVideoMetadata=function(){return xi(this,DM,3)};h.getDownloadUrl=function(){return ui(this,10)};var Lad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lad,W);Lad.prototype.getLabel=function(){return ui(this,2)};Lad.prototype.setLabel=function(a){return Fm(this,2,a)};var Mad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mad,W);h=Mad.prototype;h.getStatus=function(){return wi(this,1)};h.setStatus=function(a){return Hm(this,1,a)};h.getItemList=function(a){return Bi(this,GM,2,Ci(a))};h.addItem=function(a,b){return Np(this,2,GM,a,b)};h.setItem=function(a,b){return Gw(this,2,GM,a,b)};h.removeItem=function(a){return Kw(this,2,GM,a)};h.getItemCount=function(){return zi(this,GM,2)};
h.getInternalOnlyV1ViewInfo=function(){return X(this,Lad,7)};var JM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(JM,W);h=JM.prototype;h.getSourceId=function(){return wi(this,1)};h.setSourceId=function(a){return Hm(this,1,a)};h.getName=function(){return ui(this,8)};h.setName=function(a){return Fm(this,8,a)};h.getInternalOnlyV1ViewInfo=function(){return X(this,Lad,18)};var Nad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nad,W);h=Nad.prototype;h.getCommand=function(){return wi(this,1)};h.setCommand=function(a){return Hm(this,1,a)};h.getSource=function(){return X(this,JM,2)};h.setSource=function(a){return Mi(this,JM,2,a)};h.hasSource=function(){return xi(this,JM,2)};h.getSourceOrUndefined=function(){return ayc(this,JM,2)};h.setVisible=function(a){return Yo(this,5,a)};h.getItemList=function(a){return Bi(this,GM,7,Ci(a))};
h.addItem=function(a,b){return Np(this,7,GM,a,b)};h.setItem=function(a,b){return Gw(this,7,GM,a,b)};h.removeItem=function(a){return Kw(this,7,GM,a)};h.getItemCount=function(){return zi(this,GM,7)};h.getQuery=function(){return ui(this,8)};h.setQuery=function(a){return Fm(this,8,a)};h.clearQuery=function(){Hw(this,8)};h.getAppId=function(){return ui(this,9)};h.setAppId=function(a){Fm(this,9,a)};var Oad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Oad,W);h=Oad.prototype;h.getCommand=function(){return wi(this,1)};h.setCommand=function(a){return Hm(this,1,a)};h.getItemList=function(a){return Bi(this,GM,4,Ci(a))};h.addItem=function(a,b){return Np(this,4,GM,a,b)};h.setItem=function(a,b){return Gw(this,4,GM,a,b)};h.removeItem=function(a){return Kw(this,4,GM,a)};h.getItemCount=function(){return zi(this,GM,4)};var Pad=vi(Oad);var Qad=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/load_time";a.addNewEventMetric(this.metricName,dm("action"),dm("frontend_access_mode"),dm("environment_type"))};Qad.prototype.record=function(a,b,c,d){this.streamzService.record(this.metricName,a,b,c,d)};Qad.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var Rad=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/user_action_counts";a.addNewCounter(this.metricName,dm("action"),dm("frontend_access_mode"),dm("environment_type"))};Rad.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};Rad.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var Sad=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/user_latency";a.addNewEventMetric(this.metricName,dm("action"),dm("frontend_access_mode"),dm("environment_type"))};Sad.prototype.record=function(a,b,c,d){this.streamzService.record(this.metricName,a,b,c,d)};Sad.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};var KM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(KM,W);KM.prototype.getResourcePath=function(){return ui(this,2)};KM.prototype.setResourcePath=function(a){return Fm(this,2,a)};var Tad=function(a){this.servicePromise_=a;a.then(mj(function(){},this),function(){},this)},Uad=function(a,b,c){return a.servicePromise_.then(function(d){var e=d[b];if(!e)throw Error("Wc`"+b);return e.apply(d,c)})},Xad=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];e=Vad(a,b).then(function(f){return f.apply(null,d)},function(f){f=Error("Xc`"+b+"`"+a+"`"+f,{cause:f});delete Wad[b];return TJc(f)});return new Tad(e)},Wad={},Vad=function(a,b){var c=
Wad[b];if(c)return c;c=(c=Su(b))?SJc(c):(new FC(function(d,e){var f=(new xC(document)).createElement("SCRIPT");f.async=!0;oi(f,vh(a instanceof pJc&&a.constructor===pJc&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===oJc?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"));f.onload=f.onreadystatechange=function(){f.readyState&&f.readyState!="loaded"&&f.readyState!="complete"||d()};f.onerror=function(g){e(Error("Yc`"+b+"`"+a,{cause:g}))};(document.head||
document.getElementsByTagName("head")[0]).appendChild(f)})).then(function(){var d=Su(b);if(!d)throw Error("Zc`"+b+"`"+a);return d});return Wad[b]=c};var Yad={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},$ad=function(){var a=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=yQa(function(){return y(function(b){if(b.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?b.return(Promise.resolve()):z(b,Zad(a),2);a.rsaForList.length>
0&&document.addEventListener("click",a.requestAccessForHelpPanel);ae(b)})});this.requestAccessForHelpPanel=function(){if(!(a.rsaForPromises.length>0)){for(var b=m(a.rsaForList),c=b.next();!c.done;c=b.next()){c=c.value;try{a.rsaForPromises.push(document.requestStorageAccessFor(c))}catch(d){}}Promise.all(a.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){a.reset()})}}};$ad.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var Zad=function(a){var b,c,d,e;return y(function(f){switch(f.nextAddress){case 1:b=m(Object.values(Yad)),c=b.next();case 2:if(c.done){f.jumpTo(0);break}d=c.value;Wd(f,5);return z(f,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:d}),7);case 7:e=f.yieldResult;e.state!=="granted"&&a.rsaForList.push(d);dt(f,3);break;case 5:$d(f);f.jumpTo(0);break;case 3:c=b.next(),f.jumpTo(2)}})};(new $ad).initialize();var abd=function(a){this.loader_=a};abd.prototype.startFeedback=function(a){Uad(this.loader_,"startFeedback",arguments)};abd.prototype.requestSurvey=function(a){Uad(this.loader_,"requestSurvey",arguments).thenCatch(function(){},this)};abd.prototype.presentSurvey=function(a){Uad(this.loader_,"presentSurvey",arguments).thenCatch(function(){},this)};var bbd=new pJc(nJc,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");Vad(bbd,"help.service.Lazy.create").thenCatch(function(){});var cbd={ACCESS_LEVEL_UNSPECIFIED:"ACCESS_LEVEL_UNSPECIFIED",INTERNAL:"INTERNAL",EXTERNAL_PARTNER:"EXTERNAL_PARTNER",EXTERNAL_PUBLIC:"EXTERNAL_PUBLIC"},yVa={0:"ACCESS_LEVEL_UNSPECIFIED",1:"INTERNAL",2:"EXTERNAL_PARTNER",3:"EXTERNAL_PUBLIC"},dbd={},AVa=(dbd.ACCESS_LEVEL_UNSPECIFIED=0,dbd.INTERNAL=1,dbd.EXTERNAL_PARTNER=2,dbd.EXTERNAL_PUBLIC=3,dbd),ebd={ACTION_TYPE_UNSPECIFIED:"ACTION_TYPE_UNSPECIFIED",ADD:"ADD",REMOVE:"REMOVE"},fbd={},a0a=(fbd.ACTION_TYPE_UNSPECIFIED=0,fbd.ADD=1,fbd.REMOVE=2,fbd),
N3a={0:"CATEGORY_UNSPECIFIED",1:"OWNER",2:"COLLABORATOR",3:"FOLLOWING"},iTa={0:"CHANGELIST_SIGNAL_UNSPECIFIED",1:"THREAD_MENTIONS_ME",2:"IDLE_FOR_HOURS",3:"AUTHOR_GOING_OOO",4:"NEEDS_ATTENTION",5:"NUDGED",6:"READY_TO_SUBMIT",7:"CHANGELIST_MANUAL_SIGNAL",8:"CHANGELIST_SNOOZE_EXPIRED"},LM={},$Sa=(LM.CHANGELIST_SIGNAL_UNSPECIFIED=0,LM.THREAD_MENTIONS_ME=1,LM.IDLE_FOR_HOURS=2,LM.AUTHOR_GOING_OOO=3,LM.NEEDS_ATTENTION=4,LM.NUDGED=5,LM.READY_TO_SUBMIT=6,LM.CHANGELIST_MANUAL_SIGNAL=7,LM.CHANGELIST_SNOOZE_EXPIRED=
8,LM),R3a={0:"CHANGELIST_SIGNAL_UNSPECIFIED",1:"THREAD_MENTIONS_ME",2:"IDLE_FOR_HOURS",3:"AUTHOR_GOING_OOO",4:"NEEDS_ATTENTION",5:"NUDGED",6:"READY_TO_SUBMIT",7:"CHANGELIST_MANUAL_SIGNAL",8:"CHANGELIST_SNOOZE_EXPIRED"},MM={},k4a=(MM.CHANGELIST_SIGNAL_UNSPECIFIED=0,MM.THREAD_MENTIONS_ME=1,MM.IDLE_FOR_HOURS=2,MM.AUTHOR_GOING_OOO=3,MM.NEEDS_ATTENTION=4,MM.NUDGED=5,MM.READY_TO_SUBMIT=6,MM.CHANGELIST_MANUAL_SIGNAL=7,MM.CHANGELIST_SNOOZE_EXPIRED=8,MM),zRa={COMMENT_FORMATTING_MODE_UNSPECIFIED:"COMMENT_FORMATTING_MODE_UNSPECIFIED",
PLAIN_FORMATTING_MODE:"PLAIN_FORMATTING_MODE",MARKDOWN_FORMATTING_MODE:"MARKDOWN_FORMATTING_MODE",LITERAL_FORMATTING_MODE:"LITERAL_FORMATTING_MODE"},jSa={0:"COMMENT_FORMATTING_MODE_UNSPECIFIED",1:"PLAIN_FORMATTING_MODE",2:"MARKDOWN_FORMATTING_MODE",3:"LITERAL_FORMATTING_MODE"},gbd={},GSa=(gbd.COMMENT_FORMATTING_MODE_UNSPECIFIED=0,gbd.PLAIN_FORMATTING_MODE=1,gbd.MARKDOWN_FORMATTING_MODE=2,gbd.LITERAL_FORMATTING_MODE=3,gbd),NXa={0:"CONFIDENCE_LEVEL_UNSPECIFIED",1:"VERY_HIGH",2:"HIGH",3:"MEDIUM",4:"LOW"},
NM={},PXa=(NM.CONFIDENCE_LEVEL_UNSPECIFIED=0,NM.VERY_HIGH=1,NM.HIGH=2,NM.MEDIUM=3,NM.LOW=4,NM),hbd={DAY_TYPE_UNSPECIFIED:"DAY_TYPE_UNSPECIFIED",CALENDAR:"CALENDAR",BUSINESS:"BUSINESS"},GWa={0:"DAY_TYPE_UNSPECIFIED",1:"CALENDAR",2:"BUSINESS"},ibd={},IWa=(ibd.DAY_TYPE_UNSPECIFIED=0,ibd.CALENDAR=1,ibd.BUSINESS=2,ibd),hXa={0:"DELETION_REASON_UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"RESTRICTED",4:"RETENTION",5:"ACCOUNT_CAPABILITIES"},OM={},oXa=(OM.DELETION_REASON_UNSPECIFIED=0,OM.USER_REQUEST=1,OM.ABUSE=
2,OM.RESTRICTED=3,OM.RETENTION=4,OM.ACCOUNT_CAPABILITIES=5,OM),jbd={COMFORTABLE:"COMFORTABLE",COZY:"COZY",COMPACT:"COMPACT"},RRa={1:"COMFORTABLE",2:"COZY",3:"COMPACT"},kbd={},DSa=(kbd.COMFORTABLE=1,kbd.COZY=2,kbd.COMPACT=3,kbd),y4a={0:"NO_DETAILED_TYPE",1:"UNRESTRICTED_GOOGLER",2:"TVC",3:"EXTERNAL",4:"PUBLIC",5:"ISSUE_CREATION_ONLY"},K3a={0:"DRIVE_FILE_TYPE_UNSPECIFIED",1:"DOCUMENT",2:"SPREADSHEET",3:"PRESENTATION"},gTa={0:"DRIVE_SIGNAL_UNSPECIFIED",1:"TAGGED_IN_COMMENT",2:"REQUIRES_APPROVAL",3:"COMMENTS_REQUIRE_ATTENTION",
4:"DRIVE_MANUAL_SIGNAL",5:"DRIVE_SNOOZE_EXPIRED"},PM={},WSa=(PM.DRIVE_SIGNAL_UNSPECIFIED=0,PM.TAGGED_IN_COMMENT=1,PM.REQUIRES_APPROVAL=2,PM.COMMENTS_REQUIRE_ATTENTION=3,PM.DRIVE_MANUAL_SIGNAL=4,PM.DRIVE_SNOOZE_EXPIRED=5,PM),P3a={0:"DRIVE_SIGNAL_UNSPECIFIED",1:"TAGGED_IN_COMMENT",2:"REQUIRES_APPROVAL",3:"COMMENTS_REQUIRE_ATTENTION",4:"DRIVE_MANUAL_SIGNAL",5:"DRIVE_SNOOZE_EXPIRED"},QM={},i4a=(QM.DRIVE_SIGNAL_UNSPECIFIED=0,QM.TAGGED_IN_COMMENT=1,QM.REQUIRES_APPROVAL=2,QM.COMMENTS_REQUIRE_ATTENTION=3,
QM.DRIVE_MANUAL_SIGNAL=4,QM.DRIVE_SNOOZE_EXPIRED=5,QM),iWa={0:"EDIT_SIGNIFICANCE_UNSPECIFIED",1:"SILENT",2:"MINOR",3:"MAJOR",4:"BULK",5:"CLOSING"},RM={},mWa=(RM.EDIT_SIGNIFICANCE_UNSPECIFIED=0,RM.SILENT=1,RM.MINOR=2,RM.MAJOR=3,RM.BULK=4,RM.CLOSING=5,RM),rqb={0:"ELIGIBILITY_STATE_UNSPECIFIED",1:"INELIGIBLE",2:"ELIGIBLE_NOT_STARTED",3:"EXISTING",4:"INELIGIBLE_EXISTING"},iSa={0:"UNKNOWN_PRIORITY",4:"CLOSURE_ONLY",1:"MINIMAL",2:"IMPORTANT",3:"ALL"},SM={},Hn=(SM.UNKNOWN_PRIORITY=0,SM.CLOSURE_ONLY=4,SM.MINIMAL=
1,SM.IMPORTANT=2,SM.ALL=3,SM),lbd={ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED:"ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",THUMBS_UP:"THUMBS_UP",THUMBS_DOWN:"THUMBS_DOWN",OPEN:"OPEN",CLOSE:"CLOSE",COPY:"COPY",CLOSE_AS_DUPLICATE:"CLOSE_AS_DUPLICATE",ISSUE_HOVERCARD:"ISSUE_HOVERCARD",GO_TO_ISSUE:"GO_TO_ISSUE",DELETE:"DELETE",VIEW:"VIEW",IMPRESSION:"IMPRESSION",COPY_DEEP_LINK:"COPY_DEEP_LINK"},TM={},yYa=(TM.ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED=0,TM.THUMBS_UP=1,TM.THUMBS_DOWN=2,TM.OPEN=3,TM.CLOSE=4,TM.COPY=5,TM.CLOSE_AS_DUPLICATE=
6,TM.ISSUE_HOVERCARD=7,TM.GO_TO_ISSUE=8,TM.DELETE=9,TM.VIEW=10,TM.IMPRESSION=11,TM.COPY_DEEP_LINK=12,TM),QRa={0:"DEFAULT",1:"ASSIGNMENT",2:"RESPONSE",3:"CLOSURE"},mbd={},CSa=(mbd.DEFAULT=0,mbd.ASSIGNMENT=1,mbd.RESPONSE=2,mbd.CLOSURE=3,mbd),nbd={EVENT_TYPE_UNSPECIFIED:"EVENT_TYPE_UNSPECIFIED",EVENT_TYPE_IMPRESSION:"EVENT_TYPE_IMPRESSION",EVENT_TYPE_VIEW:"EVENT_TYPE_VIEW",EVENT_TYPE_ACCEPT:"EVENT_TYPE_ACCEPT",EVENT_TYPE_PARTIALLY_ACCEPT:"EVENT_TYPE_PARTIALLY_ACCEPT",EVENT_TYPE_REJECT:"EVENT_TYPE_REJECT",
EVENT_TYPE_OPEN:"EVENT_TYPE_OPEN",EVENT_TYPE_CLOSE:"EVENT_TYPE_CLOSE",EVENT_TYPE_THUMBS_UP:"EVENT_TYPE_THUMBS_UP",EVENT_TYPE_THUMBS_DOWN:"EVENT_TYPE_THUMBS_DOWN",EVENT_TYPE_COPY:"EVENT_TYPE_COPY",EVENT_TYPE_FEEDBACK:"EVENT_TYPE_FEEDBACK",EVENT_TYPE_DELETE:"EVENT_TYPE_DELETE",EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION:"EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION",EVENT_TYPE_CLOSE_AS_DUPLICATE:"EVENT_TYPE_CLOSE_AS_DUPLICATE",EVENT_TYPE_ISSUE_HOVERCARD:"EVENT_TYPE_ISSUE_HOVERCARD",EVENT_TYPE_GO_TO_ISSUE:"EVENT_TYPE_GO_TO_ISSUE",
EVENT_TYPE_COPY_DEEP_LINK:"EVENT_TYPE_COPY_DEEP_LINK"},UM={},obd=(UM.EVENT_TYPE_UNSPECIFIED=0,UM.EVENT_TYPE_IMPRESSION=5,UM.EVENT_TYPE_VIEW=1,UM.EVENT_TYPE_ACCEPT=2,UM.EVENT_TYPE_PARTIALLY_ACCEPT=6,UM.EVENT_TYPE_REJECT=3,UM.EVENT_TYPE_OPEN=7,UM.EVENT_TYPE_CLOSE=8,UM.EVENT_TYPE_THUMBS_UP=9,UM.EVENT_TYPE_THUMBS_DOWN=10,UM.EVENT_TYPE_COPY=11,UM.EVENT_TYPE_FEEDBACK=12,UM.EVENT_TYPE_DELETE=13,UM.EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION=4,UM.EVENT_TYPE_CLOSE_AS_DUPLICATE=14,UM.EVENT_TYPE_ISSUE_HOVERCARD=
15,UM.EVENT_TYPE_GO_TO_ISSUE=16,UM.EVENT_TYPE_COPY_DEEP_LINK=17,UM),pbd={},x0a=(pbd.QUERY_UNSPECIFIED=0,pbd.QUERY_TRIAGE_PHASE=1,pbd.QUERY_CLUSTER=2,pbd),qbd={},A0a=(qbd.SORT_UNSPECIFIED=0,qbd.SORT_TRIAGE_PHASE=1,qbd),VM={},rbd=(VM.FEATURE_UNSPECIFIED=0,VM.FEATURE_ISSUE_DEDUPLICATION=1,VM.FEATURE_HOTLIST=2,VM.FEATURE_ISSUE_DEDUPLICATION_BATCH=3,VM.FEATURE_NEEDS_INFO=4,VM.FEATURE_COMPONENT_ROUTING=5,VM.FEATURE_ANY_ISSUE_EDIT=11,VM.FEATURE_INSIGHT=6,VM.FEATURE_ATTACHMENT_ANALYSIS=7,VM.FEATURE_SIMILAR_ISSUES=
8,VM.FEATURE_SUMMARY=10,VM.FEATURE_HELP_ME_FIX=9,VM),k_b={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",70:"INSIGHT",
71:"ATTACHMENT_ANALYSIS",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",69:"ATTACHMENT_COUNT",43:"DUPLICATE_COUNT",44:"VOTE_COUNT",45:"COMMENT_COUNT",46:"CC_COUNT",47:"ARCHIVED",48:"MIN_SLO_TARGET",49:"EFFORT_LABEL",50:"EFFORT_VALUE",51:"MENTION",52:"VOTE",53:"EFFORT_TOTAL_OPEN",54:"EFFORT_TOTAL_COMPLETE",55:"COLLABORATOR",56:"COLLABORATOR_COUNT",
57:"TRACKER_ID",58:"ACCESS_LEVEL",59:"DESCENDANT_COUNT",60:"OPEN_DESCENDANT_COUNT",61:"ONE_DAY_VIEW_COUNT",62:"SEVEN_DAY_VIEW_COUNT",63:"THIRTY_DAY_VIEW_COUNT",64:"STAFFING_USER",65:"STAFFING_USER_COUNT",66:"STAFFING_PLACEHOLDER",67:"STAFFING_PLACEHOLDER_COUNT",68:"ESCALATION_OWNER"},tZa={0:"FIELD_ORDERING_UNSPECIFIED",1:"INHERITED",2:"CUSTOMIZED"},sbd={},tbd=(sbd.FIELD_ORDERING_UNSPECIFIED=0,sbd.INHERITED=1,sbd.CUSTOMIZED=2,sbd),WYa={0:"FIELD_STATE_UNSPECIFIED",1:"INHERIT",2:"DISABLED",3:"ENABLED"},
ubd={},vbd=(ubd.UNSPECIFIED_FORMATTING_AUDIENCE=0,ubd.INTERNAL=1,ubd.EXTERNAL=2,ubd),Um={UNSPECIFIED_FORMATTING_MODE:"UNSPECIFIED_FORMATTING_MODE",PLAIN:"PLAIN",MARKDOWN:"MARKDOWN",LITERAL:"LITERAL"},BZa={0:"UNSPECIFIED_FORMATTING_MODE",1:"PLAIN",2:"MARKDOWN",3:"LITERAL"},hTa={0:"GERRIT_CHANGE_SIGNAL_UNSPECIFIED",1:"GERRIT_CHANGE_NEEDS_ATTENTION",2:"GERRIT_CHANGE_READY_TO_SUBMIT",3:"GERRIT_MANUAL_SIGNAL",4:"GERRIT_SNOOZE_EXPIRED"},WM={},YSa=(WM.GERRIT_CHANGE_SIGNAL_UNSPECIFIED=0,WM.GERRIT_CHANGE_NEEDS_ATTENTION=
1,WM.GERRIT_CHANGE_READY_TO_SUBMIT=2,WM.GERRIT_MANUAL_SIGNAL=3,WM.GERRIT_SNOOZE_EXPIRED=4,WM),a4a={0:"GERRIT_CHANGE_SIGNAL_UNSPECIFIED",1:"GERRIT_CHANGE_NEEDS_ATTENTION",2:"GERRIT_CHANGE_READY_TO_SUBMIT",3:"GERRIT_MANUAL_SIGNAL",4:"GERRIT_SNOOZE_EXPIRED"},XM={},m4a=(XM.GERRIT_CHANGE_SIGNAL_UNSPECIFIED=0,XM.GERRIT_CHANGE_NEEDS_ATTENTION=1,XM.GERRIT_CHANGE_READY_TO_SUBMIT=2,XM.GERRIT_MANUAL_SIGNAL=3,XM.GERRIT_SNOOZE_EXPIRED=4,XM),jTa={0:"GOOGLE_TASKS_SIGNAL_UNSPECIFIED",1:"DUE_SOON",2:"DUE_DATE_EXPIRED",
3:"GOOGLE_TASKS_MANUAL_SIGNAL",4:"GOOGLE_TASKS_SNOOZE_EXPIRED"},YM={},bTa=(YM.GOOGLE_TASKS_SIGNAL_UNSPECIFIED=0,YM.DUE_SOON=1,YM.DUE_DATE_EXPIRED=2,YM.GOOGLE_TASKS_MANUAL_SIGNAL=3,YM.GOOGLE_TASKS_SNOOZE_EXPIRED=4,YM),wbd={INVOLVEMENT_UNSPECIFIED:"INVOLVEMENT_UNSPECIFIED",HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",ZERO:"ZERO"},kTa={0:"IRM_SIGNAL_UNSPECIFIED",1:"IRM_MANUAL_SIGNAL",2:"IRM_SNOOZE_EXPIRED",3:"IRM_SEND_POSTMORTEM_FOR_REVIEW",4:"IRM_REVIEW_POSTMORTEM"},ZM={},dTa=(ZM.IRM_SIGNAL_UNSPECIFIED=0,
ZM.IRM_MANUAL_SIGNAL=1,ZM.IRM_SNOOZE_EXPIRED=2,ZM.IRM_SEND_POSTMORTEM_FOR_REVIEW=3,ZM.IRM_REVIEW_POSTMORTEM=4,ZM),wFb={0:"ISSUE_CATEGORY_UNSPECIFIED",1:"ISSUE_CATEGORY_UNSUPPORTED",2:"ISSUE_CATEGORY_STACK_TRACES",3:"ISSUE_CATEGORY_ADS",4:"ISSUE_CATEGORY_GAR",5:"ISSUE_CATEGORY_PIXEL",6:"ISSUE_CATEGORY_BORG_SRE",7:"ISSUE_CATEGORY_CLOUD_SRE",8:"ISSUE_CATEGORY_GCP",9:"ISSUE_CATEGORY_DIALER",10:"ISSUE_CATEGORY_EDSENSE",11:"ISSUE_CATEGORY_VERTEX_AI_SUPPORT",12:"ISSUE_CATEGORY_CLOUD_AI_RETAIL_SUPPORT",13:"ISSUE_CATEGORY_ANDROID_BLUE_SIGHT",
14:"ISSUE_CATEGORY_ANDROID_COASTGUARD",15:"ISSUE_CATEGORY_CORE_PROCUREMENT_WORKS",16:"ISSUE_CATEGORY_NEXUS_ERROR_HELPER",17:"ISSUE_CATEGORY_CORE_BOQ_WEB",18:"ISSUE_CATEGORY_CORE_WIPEOUT_COMPLIANCE",19:"ISSUE_CATEGORY_ANDROID_SILICON_ENGPROD",20:"ISSUE_CATEGORY_CORE_LOGS_SRE",21:"ISSUE_CATEGORY_GEO_DATA_ACCESS_API_ONBOARDING",22:"ISSUE_CATEGORY_CLOUD_NETWORKING_STAGING",23:"ISSUE_CATEGORY_FIREBASE_MESSAGING",24:"ISSUE_CATEGORY_GAR_MOBILE_PLATFORM",25:"ISSUE_CATEGORY_CLOUD_VERTEX_VECTOR_SEARCH",26:"ISSUE_CATEGORY_GCS_METERING_SUPPORT",
27:"ISSUE_CATEGORY_WCAG_WEB_PLATFORM",28:"ISSUE_CATEGORY_DEFAULT_DEBUG_DEITY",29:"ISSUE_CATEGORY_THREAD_NETWORK",30:"ISSUE_CATEGORY_EDACLOUD_OPS",31:"ISSUE_CATEGORY_MESSAGES_ENGOPS_TRIAGE",32:"ISSUE_CATEGORY_BAP_SRE",33:"ISSUE_CATEGORY_GCP_RIDGELINE_ENGINEERING",34:"ISSUE_CATEGORY_GCBP_WEB",35:"ISSUE_CATEGORY_YOUTUBE_ORCA",36:"ISSUE_CATEGORY_CLOUD_PLATFORM_APIGEE",37:"ISSUE_CATEGORY_FITBIT_LABS",38:"ISSUE_CATEGORY_RVOS_WOOF_OOBE",39:"ISSUE_CATEGORY_ASTRO_MIDDLEWARE",40:"ISSUE_CATEGORY_CORE_SRE_STANDARDIZED_ENGAGEMENTS",
41:"ISSUE_CATEGORY_YOUTUBE_CREATOR_RECOMMENDATION_PLATFORM"},xbd={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",INCIDENT:"INCIDENT",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",ESCALATION_OWNER:"ESCALATION_OWNER",CUSTOM_FIELD:"CUSTOM_FIELD",POSITION:"POSITION",VOTE_COUNT:"VOTE_COUNT",DUPLICATE_COUNT:"DUPLICATE_COUNT",CC_COUNT:"CC_COUNT",COLLABORATOR_COUNT:"COLLABORATOR_COUNT",MODIFIED_BY:"MODIFIED_BY",LAST_MODIFIER:"LAST_MODIFIER",
ARCHIVED:"ARCHIVED",MIN_SLO:"MIN_SLO",ASSIGNMENT_SLO:"ASSIGNMENT_SLO",RESPONSE_SLO:"RESPONSE_SLO",CLOSURE_SLO:"CLOSURE_SLO",TEAM:"TEAM",ESTIMATE:"ESTIMATE",ESTIMATE_TOTAL_OPEN:"ESTIMATE_TOTAL_OPEN",ESTIMATE_TOTAL_COMPLETE:"ESTIMATE_TOTAL_COMPLETE",ACCESS_LEVEL:"ACCESS_LEVEL",DESCENDANT_COUNT:"DESCENDANT_COUNT",OPEN_DESCENDANT_COUNT:"OPEN_DESCENDANT_COUNT",ONE_DAY_VIEW_COUNT:"ONE_DAY_VIEW_COUNT",SEVEN_DAY_VIEW_COUNT:"SEVEN_DAY_VIEW_COUNT",THIRTY_DAY_VIEW_COUNT:"THIRTY_DAY_VIEW_COUNT",RELATIVE_MODIFIED_TIME:"RELATIVE_MODIFIED_TIME",
ALERTS:"ALERTS",TIMEFRAME:"TIMEFRAME",PROGRESS:"PROGRESS",TRIAGER:"TRIAGER",ENRICHMENT_CATEGORIES:"ENRICHMENT_CATEGORIES"},hSa={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",58:"INCIDENT",32:"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:"CANONICAL_ISSUE_ID",51:"ESCALATION_OWNER",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",33:"MIN_SLO",35:"ASSIGNMENT_SLO",36:"RESPONSE_SLO",37:"CLOSURE_SLO",39:"TEAM",40:"ESTIMATE",41:"ESTIMATE_TOTAL_OPEN",42:"ESTIMATE_TOTAL_COMPLETE",45:"ACCESS_LEVEL",46:"DESCENDANT_COUNT",47:"OPEN_DESCENDANT_COUNT",48:"ONE_DAY_VIEW_COUNT",49:"SEVEN_DAY_VIEW_COUNT",
50:"THIRTY_DAY_VIEW_COUNT",52:"RELATIVE_MODIFIED_TIME",53:"ALERTS",54:"TIMEFRAME",55:"PROGRESS",56:"TRIAGER",57:"ENRICHMENT_CATEGORIES"},$M={},OSa=($M.ISSUE_ID=1,$M.COMPONENT_PATH=2,$M.TYPE=3,$M.STATUS=4,$M.PRIORITY=5,$M.SEVERITY=6,$M.REPORTER=7,$M.ASSIGNEE=8,$M.VERIFIER=9,$M.CC=10,$M.COLLABORATOR=43,$M.CHANGELIST=11,$M.INCIDENT=58,$M.POSTMORTEM=32,$M.BLOCKING_ISSUE_ID=12,$M.BLOCKED_BY_ISSUE_ID=13,$M.CREATED_TIME=14,$M.MODIFIED_TIME=15,$M.RESOLVED_TIME=16,$M.VERIFIED_TIME=17,$M.DELETION_TIME=38,$M.TITLE=
18,$M.FOUND_IN_VERSION=19,$M.TARGETED_TO_VERSION=20,$M.VERIFIED_IN_VERSION=21,$M.IN_PROD=22,$M.CANONICAL_ISSUE_ID=23,$M.ESCALATION_OWNER=51,$M.CUSTOM_FIELD=24,$M.POSITION=25,$M.VOTE_COUNT=26,$M.DUPLICATE_COUNT=27,$M.CC_COUNT=28,$M.COLLABORATOR_COUNT=44,$M.MODIFIED_BY=29,$M.LAST_MODIFIER=30,$M.ARCHIVED=31,$M.MIN_SLO=33,$M.ASSIGNMENT_SLO=35,$M.RESPONSE_SLO=36,$M.CLOSURE_SLO=37,$M.TEAM=39,$M.ESTIMATE=40,$M.ESTIMATE_TOTAL_OPEN=41,$M.ESTIMATE_TOTAL_COMPLETE=42,$M.ACCESS_LEVEL=45,$M.DESCENDANT_COUNT=46,
$M.OPEN_DESCENDANT_COUNT=47,$M.ONE_DAY_VIEW_COUNT=48,$M.SEVEN_DAY_VIEW_COUNT=49,$M.THIRTY_DAY_VIEW_COUNT=50,$M.RELATIVE_MODIFIED_TIME=52,$M.ALERTS=53,$M.TIMEFRAME=54,$M.PROGRESS=55,$M.TRIAGER=56,$M.ENRICHMENT_CATEGORIES=57,$M),ybd={},aN=(ybd.ISSUE_RELATIONSHIP_TYPE_UNSPECIFIED=0,ybd.CHILD=1,ybd.DEPENDENCY=2,ybd.LINKED=3,ybd),fTa={0:"ISSUE_SIGNAL_UNSPECIFIED",1:"NEAR_SLO",2:"COMMENT_MENTIONS_ME",8:"MENTIONED_NEEDS_RESPONSE",3:"BLOCKERS_CLOSED",4:"NEWLY_BLOCKING",5:"NEEDS_REPORTER_INPUT",6:"REPLIED_TO_MENTION",
7:"NEWLY_ASSIGNED_TO_ME",9:"ISSUE_MANUALLY_SIGNALED",10:"ISSUE_SNOOZE_EXPIRED",11:"CONFIGURABLE_ALERT"},bN={},USa=(bN.ISSUE_SIGNAL_UNSPECIFIED=0,bN.NEAR_SLO=1,bN.COMMENT_MENTIONS_ME=2,bN.MENTIONED_NEEDS_RESPONSE=8,bN.BLOCKERS_CLOSED=3,bN.NEWLY_BLOCKING=4,bN.NEEDS_REPORTER_INPUT=5,bN.REPLIED_TO_MENTION=6,bN.NEWLY_ASSIGNED_TO_ME=7,bN.ISSUE_MANUALLY_SIGNALED=9,bN.ISSUE_SNOOZE_EXPIRED=10,bN.CONFIGURABLE_ALERT=11,bN),X3a={0:"ISSUE_SIGNAL_UNSPECIFIED",1:"NEAR_SLO",2:"COMMENT_MENTIONS_ME",8:"MENTIONED_NEEDS_RESPONSE",
3:"BLOCKERS_CLOSED",4:"NEWLY_BLOCKING",5:"NEEDS_REPORTER_INPUT",6:"REPLIED_TO_MENTION",7:"NEWLY_ASSIGNED_TO_ME",9:"ISSUE_MANUALLY_SIGNALED",10:"ISSUE_SNOOZE_EXPIRED",11:"CONFIGURABLE_ALERT"},cN={},g4a=(cN.ISSUE_SIGNAL_UNSPECIFIED=0,cN.NEAR_SLO=1,cN.COMMENT_MENTIONS_ME=2,cN.MENTIONED_NEEDS_RESPONSE=8,cN.BLOCKERS_CLOSED=3,cN.NEWLY_BLOCKING=4,cN.NEEDS_REPORTER_INPUT=5,cN.REPLIED_TO_MENTION=6,cN.NEWLY_ASSIGNED_TO_ME=7,cN.ISSUE_MANUALLY_SIGNALED=9,cN.ISSUE_SNOOZE_EXPIRED=10,cN.CONFIGURABLE_ALERT=11,cN),
X0a={0:"ISSUE_SUMMARY_TYPE_UNSPECIFIED",1:"COMMENTS_SHORT",2:"COMMENTS_LONG"},zbd={},Abd=(zbd.ISSUE_SUMMARY_TYPE_UNSPECIFIED=0,zbd.COMMENTS_SHORT=1,zbd.COMMENTS_LONG=2,zbd),j_b={0:"NODE_JOIN_TYPE_UNSPECIFIED",1:"AND",2:"OR",3:"ERR",4:"NIL"},Bbd={UNKNOWN_SUBSCRIPTION:"UNKNOWN_SUBSCRIPTION",UNSUBSCRIBED:"UNSUBSCRIBED",SUBSCRIBED_CLOSURE_ONLY:"SUBSCRIBED_CLOSURE_ONLY",SUBSCRIBED_MAJOR_UPDATES:"SUBSCRIBED_MAJOR_UPDATES",SUBSCRIBED_ALL_UPDATES:"SUBSCRIBED_ALL_UPDATES"},uXa={0:"UNKNOWN_SUBSCRIPTION",1:"UNSUBSCRIBED",
2:"SUBSCRIBED_CLOSURE_ONLY",3:"SUBSCRIBED_MAJOR_UPDATES",4:"SUBSCRIBED_ALL_UPDATES"},dN={},g0a=(dN.UNKNOWN_SUBSCRIPTION=0,dN.UNSUBSCRIBED=1,dN.SUBSCRIBED_CLOSURE_ONLY=2,dN.SUBSCRIBED_MAJOR_UPDATES=3,dN.SUBSCRIBED_ALL_UPDATES=4,dN),I_a={0:"UNSPECIFIED",1:"ADD",2:"REMOVE"},Cbd={},D_a=(Cbd.UNSPECIFIED=0,Cbd.ADD=1,Cbd.REMOVE=2,Cbd),l_b={0:"OPERATOR_UNSPECIFIED",1:"EQ",2:"GT",3:"LT",4:"GE",5:"LE"},Qdc={0:"UNKNOWN_PERMISSION",1:"OPEN_TO_JOIN"},x4a={0:"PRINCIPAL_TYPE_UNSPECIFIED",1:"NON_GAIA",2:"USER",3:"GROUP",
4:"ALIAS"},Dbd={PRIORITY_UNSPECIFIED:"PRIORITY_UNSPECIFIED",P0:"P0",P1:"P1",P2:"P2",P3:"P3",P4:"P4"},yp={0:"PRIORITY_UNSPECIFIED",1:"P0",2:"P1",3:"P2",4:"P3",5:"P4"},eN={},lXa=(eN.PRIORITY_UNSPECIFIED=0,eN.P0=1,eN.P1=2,eN.P2=3,eN.P3=4,eN.P4=5,eN),Ebd={REACTION_TYPE_UNSPECIFIED:"REACTION_TYPE_UNSPECIFIED",UPVOTE:"UPVOTE"},Fbd={},Gbd=(Fbd.REACTION_TYPE_UNSPECIFIED=0,Fbd.UPVOTE=1,Fbd),fN={},Hbd=(fN.UNSPECIFIED=0,fN.USER_REQUEST=1,fN.ABUSE=2,fN.RESTRICTED=3,fN.RETENTION=4,fN.ACCOUNT_CAPABILITIES=5,fN),
gN={},WXa=(gN.REJECTION_REASON_UNSPECIFIED=0,gN.REVERSED=1,gN.SIMILAR=2,gN.NOT_SIMILAR=3,gN.OTHER=4,gN),Ibd={},F0a=(Ibd.UNSPECIFIED_RELATION=0,Ibd.AND=1,Ibd.OR=2,Ibd),Jbd={RESTRICTION_SEVERITY_UNSPECIFIED:"RESTRICTION_SEVERITY_UNSPECIFIED",NONE_DETECTED:"NONE_DETECTED",RESTRICTED:"RESTRICTED",RESTRICTED_PLUS:"RESTRICTED_PLUS"},Kbd={RETENTION_UNSPECIFIED:"RETENTION_UNSPECIFIED",COMPONENT_DEFAULT:"COMPONENT_DEFAULT",INDEFINITE:"INDEFINITE"},iXa={0:"RETENTION_UNSPECIFIED",1:"COMPONENT_DEFAULT",2:"INDEFINITE"},
Lbd={UNSPECIFIED_RETENTION:"UNSPECIFIED_RETENTION",BUGANIZER_DEFAULT:"BUGANIZER_DEFAULT",CUSTOM_PERIOD:"CUSTOM_PERIOD",INDEFINITE_RETENTION:"INDEFINITE_RETENTION"},PVa={0:"UNSPECIFIED_RETENTION",1:"BUGANIZER_DEFAULT",2:"CUSTOM_PERIOD",3:"INDEFINITE_RETENTION"},Mbd={},RVa=(Mbd.UNSPECIFIED_RETENTION=0,Mbd.BUGANIZER_DEFAULT=1,Mbd.CUSTOM_PERIOD=2,Mbd.INDEFINITE_RETENTION=3,Mbd),Bqb={0:"RUN_STATUS_UNSPECIFIED",1:"RUN_STATUS_IN_PROGRESS",2:"RUN_STATUS_SUCCESS",3:"RUN_STATUS_FAILURE"},fSa={0:"UNSPECIFIED",
1:"COMPONENT",2:"TEAM"},Nbd={},LSa=(Nbd.UNSPECIFIED=0,Nbd.COMPONENT=1,Nbd.TEAM=2,Nbd),Obd={},Pbd=(Obd.SENTIMENT_UNSPECIFIED=0,Obd.SENTIMENT_POSITIVE=1,Obd.SENTIMENT_NEGATIVE=2,Obd),Qbd={SEVERITY_UNSPECIFIED:"SEVERITY_UNSPECIFIED",S0:"S0",S1:"S1",S2:"S2",S3:"S3",S4:"S4"},fXa={0:"SEVERITY_UNSPECIFIED",1:"S0",2:"S1",3:"S2",4:"S3",5:"S4"},hN={},mXa=(hN.SEVERITY_UNSPECIFIED=0,hN.S0=1,hN.S1=2,hN.S2=3,hN.S3=4,hN.S4=5,hN),e_b={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",16:"TODAY"},Pdc={0:"UNKNOWN",1:"NORMAL",2:"LARGE",3:"HUGE",4:"ENORMOUS"},eXa={0:"SLO_SNOOZE_TYPE_UNSPECIFIED",1:"STARTS_ON",2:"ASSIGNMENT_ETA",3:"RESPONSE_ETA",4:"CLOSURE_ETA"},iN={},pXa=(iN.SLO_SNOOZE_TYPE_UNSPECIFIED=0,iN.STARTS_ON=1,iN.ASSIGNMENT_ETA=2,iN.RESPONSE_ETA=3,iN.CLOSURE_ETA=4,iN),sZa={0:"SLO_SOURCE_UNSPECIFIED",1:"USER",2:"BUGSCOPE"},Rbd={},KWa=(Rbd.SLO_SOURCE_UNSPECIFIED=
0,Rbd.USER=1,Rbd.BUGSCOPE=2,Rbd),aWa={0:"STANDARD_FIELD_UNSPECIFIED",1:"REPORTER",2:"ASSIGNEE",3:"VERIFIER",4:"CC",5:"TYPE",6:"STATUS",7:"PRIORITY",8:"SEVERITY",9:"CHANGELISTS",10:"PENDING_CHANGELISTS",11:"POSTMORTEMS",12:"FOUND_IN",13:"TARGETED_TO",14:"VERIFIED_IN",15:"IN_PRODUCTION",16:"SLO_STATUS",17:"TEAM",18:"COLLABORATORS",19:"INCIDENTS"},jN={},cWa=(jN.STANDARD_FIELD_UNSPECIFIED=0,jN.REPORTER=1,jN.ASSIGNEE=2,jN.VERIFIER=3,jN.CC=4,jN.TYPE=5,jN.STATUS=6,jN.PRIORITY=7,jN.SEVERITY=8,jN.CHANGELISTS=
9,jN.PENDING_CHANGELISTS=10,jN.POSTMORTEMS=11,jN.FOUND_IN=12,jN.TARGETED_TO=13,jN.VERIFIED_IN=14,jN.IN_PRODUCTION=15,jN.SLO_STATUS=16,jN.TEAM=17,jN.COLLABORATORS=18,jN.INCIDENTS=19,jN),v1a={STATE_UNSPECIFIED:"STATE_UNSPECIFIED",PENDING:"PENDING",MERGED:"MERGED"},rXa={0:"STATE_UNSPECIFIED",1:"PENDING",2:"MERGED"},Sbd={},sXa=(Sbd.STATE_UNSPECIFIED=0,Sbd.PENDING=1,Sbd.MERGED=2,Sbd),Tbd={STATUS_UNSPECIFIED:"STATUS_UNSPECIFIED",NEW:"NEW",ASSIGNED:"ASSIGNED",ACCEPTED:"ACCEPTED",FIXED:"FIXED",VERIFIED:"VERIFIED",
NOT_REPRODUCIBLE:"NOT_REPRODUCIBLE",INTENDED_BEHAVIOR:"INTENDED_BEHAVIOR",OBSOLETE:"OBSOLETE",INFEASIBLE:"INFEASIBLE",DUPLICATE:"DUPLICATE",INACTIVE:"INACTIVE"},xp={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",11:"INACTIVE"},kN={},kXa=(kN.STATUS_UNSPECIFIED=0,kN.NEW=1,kN.ASSIGNED=2,kN.ACCEPTED=3,kN.FIXED=4,kN.VERIFIED=5,kN.NOT_REPRODUCIBLE=6,kN.INTENDED_BEHAVIOR=7,kN.OBSOLETE=8,
kN.INFEASIBLE=9,kN.DUPLICATE=10,kN.INACTIVE=11,kN),Ubd={TASK_RESOURCE_TYPE_UNSPECIFIED:"TASK_RESOURCE_TYPE_UNSPECIFIED",CHANGELIST:"CHANGELIST",DRIVE:"DRIVE",ISSUE:"ISSUE",LAUNCH:"LAUNCH",GERRIT:"GERRIT",GOOGLE_TASKS:"GOOGLE_TASKS",IRM:"IRM"},oSa={0:"UNKNOWN_SOURCE",1:"WTDM",2:"NON_WTDM",3:"CRITIQUE",4:"DRIVE",5:"BUGANIZER",6:"ARIANE",7:"GERRIT",8:"GOOGLE_TASKS",9:"IRM"},lN={},eTa=(lN.UNKNOWN_SOURCE=0,lN.WTDM=1,lN.NON_WTDM=2,lN.CRITIQUE=3,lN.DRIVE=4,lN.BUGANIZER=5,lN.ARIANE=6,lN.GERRIT=7,lN.GOOGLE_TASKS=
8,lN.IRM=9,lN),uRa={0:"THEME_UNSPECIFIED",1:"GOOGLE",2:"OPEN_SOURCE"},Vbd={UNSPECIFIED:"UNSPECIFIED",NEW:"NEW",CONFIRMED:"CONFIRMED",IN_PROGRESS:"IN_PROGRESS",FIXED:"FIXED",WONT_FIX:"WONT_FIX"},n_a={0:"UNSPECIFIED",1:"NEW",2:"CONFIRMED",3:"IN_PROGRESS",4:"FIXED",5:"WONT_FIX"},mN={},q_a=(mN.UNSPECIFIED=0,mN.NEW=1,mN.CONFIRMED=2,mN.IN_PROGRESS=3,mN.FIXED=4,mN.WONT_FIX=5,mN),Wbd={TRIAGE_SUBPHASE_UNSPECIFIED:"TRIAGE_SUBPHASE_UNSPECIFIED",NEEDS_INFO:"NEEDS_INFO",PENDING_TRIAGE:"PENDING_TRIAGE",REPORTER_RESPONDED:"REPORTER_RESPONDED",
PENDING_OWNER:"PENDING_OWNER",EXPECTED:"EXPECTED",PLANNED:"PLANNED",COMMITTED:"COMMITTED",REOPENED:"REOPENED"},o_a={0:"TRIAGE_SUBPHASE_UNSPECIFIED",1:"NEEDS_INFO",2:"PENDING_TRIAGE",3:"REPORTER_RESPONDED",4:"PENDING_OWNER",5:"EXPECTED",6:"PLANNED",7:"COMMITTED",8:"REOPENED"},nN={},r_a=(nN.TRIAGE_SUBPHASE_UNSPECIFIED=0,nN.NEEDS_INFO=1,nN.PENDING_TRIAGE=2,nN.REPORTER_RESPONDED=3,nN.PENDING_OWNER=4,nN.EXPECTED=5,nN.PLANNED=6,nN.COMMITTED=7,nN.REOPENED=8,nN),p_b={0:"QUERY_BUILDER_RESPONSE_TYPE_UNSPECIFIED",
1:"AND",2:"OR"},hWa={0:"TYPE_UNSPECIFIED",1:"TEXT",2:"DATE",3:"ENUM",4:"NUMERIC",9:"TEAM",10:"PRODUCT",11:"USER",5:"REPEATED_TEXT",6:"REPEATED_DATE",7:"REPEATED_ENUM",8:"REPEATED_NUMERIC",12:"REPEATED_TEAM",13:"REPEATED_PRODUCT",14:"REPEATED_USER"},oN={},lWa=(oN.TYPE_UNSPECIFIED=0,oN.TEXT=1,oN.DATE=2,oN.ENUM=3,oN.NUMERIC=4,oN.TEAM=9,oN.PRODUCT=10,oN.USER=11,oN.REPEATED_TEXT=5,oN.REPEATED_DATE=6,oN.REPEATED_ENUM=7,oN.REPEATED_NUMERIC=8,oN.REPEATED_TEAM=12,oN.REPEATED_PRODUCT=13,oN.REPEATED_USER=14,
oN),Xbd={TYPE_UNSPECIFIED:"TYPE_UNSPECIFIED",BUG:"BUG",FEATURE_REQUEST:"FEATURE_REQUEST",CUSTOMER_ISSUE:"CUSTOMER_ISSUE",INTERNAL_CLEANUP:"INTERNAL_CLEANUP",PROCESS:"PROCESS",VULNERABILITY:"VULNERABILITY",PRIVACY_ISSUE:"PRIVACY_ISSUE",PORTFOLIO:"PORTFOLIO",PROGRAM:"PROGRAM",PROJECT:"PROJECT",FEATURE:"FEATURE",MILESTONE:"MILESTONE",EPIC:"EPIC",STORY:"STORY",TASK:"TASK"},pN={},M_a=(pN.TYPE_UNSPECIFIED=0,pN.BUG=1,pN.FEATURE_REQUEST=2,pN.CUSTOMER_ISSUE=3,pN.INTERNAL_CLEANUP=4,pN.PROCESS=5,pN.VULNERABILITY=
6,pN.PRIVACY_ISSUE=7,pN.PORTFOLIO=8,pN.PROGRAM=9,pN.PROJECT=10,pN.FEATURE=11,pN.MILESTONE=12,pN.EPIC=13,pN.STORY=14,pN.TASK=15,pN),Ybd={TYPE_UNSPECIFIED:"TYPE_UNSPECIFIED",ISSUE_DEDUPLICATION:"ISSUE_DEDUPLICATION",HOTLIST:"HOTLIST",ISSUE_DEDUPLICATION_BATCH:"ISSUE_DEDUPLICATION_BATCH",NEEDS_INFO:"NEEDS_INFO",COMPONENT_ROUTING:"COMPONENT_ROUTING",ANY_ISSUE_EDIT:"ANY_ISSUE_EDIT"},MXa={0:"TYPE_UNSPECIFIED",1:"ISSUE_DEDUPLICATION",2:"HOTLIST",3:"ISSUE_DEDUPLICATION_BATCH",4:"NEEDS_INFO",5:"COMPONENT_ROUTING",
6:"ANY_ISSUE_EDIT"},qN={},IXa=(qN.TYPE_UNSPECIFIED=0,qN.ISSUE_DEDUPLICATION=1,qN.HOTLIST=2,qN.ISSUE_DEDUPLICATION_BATCH=3,qN.NEEDS_INFO=4,qN.COMPONENT_ROUTING=5,qN.ANY_ISSUE_EDIT=6,qN),rN={},VXa=(rN.TYPE_UNSPECIFIED=0,rN.VIEWED=1,rN.PARTIALLY_ACCEPTED=4,rN.ACCEPTED=2,rN.REJECTED=3,rN),sN={},Zbd=(sN.USER_ACTIVITY_TYPE_UNDEFINED=0,sN.VIEW=1,sN.RELOAD=2,sN.EDIT=3,sN.MARK_AS_READ_OR_UNREAD=4,sN),g_b={0:"VALUE_TYPE_UNSPECIFIED",1:"NOT",2:"OR",3:"AND",4:"RANGE",5:"SIMPLE"},$bd={},acd=($bd.VIEW_UNSPECIFIED=
0,$bd.BASIC=1,$bd.FULL=2,$bd);var VWa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(VWa,W);VWa.prototype.getStartDate=function(){return X(this,$m,4)};var rp=[1,2];var Jo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jo,W);Jo.prototype.getStatus=function(){return wi(this,1)};Jo.prototype.setStatus=function(a){return Hm(this,1,a)};Jo.prototype.getReason=function(){return wi(this,2)};Jo.prototype.setReason=function(a){return Hm(this,2,a)};var Ap=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ap,W);var mp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mp,W);h=mp.prototype;h.getStartTime=function(){return X(this,Si,1)};h.setStartTime=function(a){Mi(this,Si,1,a)};h.getEndTime=function(){return X(this,Si,2)};h.setEndTime=function(a){Mi(this,Si,2,a)};h.hasEndTime=function(){return xi(this,Si,2)};h.getObjective=function(){return X(this,dn,4)};h.setObjective=function(a){return Mi(this,dn,4,a)};h.getBusinessDays=function(){return Bm(this,5)};
h.setBusinessDays=function(a){return an(this,5,a)};h.getDayType=function(){return wi(this,6)};h.setDayType=function(a){return Hm(this,6,a)};var Iq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Iq,W);var Jq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jq,W);Jq.prototype.getSourceIssueIdsList_asString=function(){return Qm(this,1)};Jq.prototype.setSourceIssueIdsList=function(a){return tr(this,1,a)};var BXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(BXa,W);var Eo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Eo,W);Eo.prototype.getAccessLevel=function(){return wi(this,1)};Eo.prototype.setAccessLevel=function(a){return Hm(this,1,a)};var XVa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(XVa,W);var Fo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fo,W);Fo.prototype.getSeverity=function(){return wi(this,1)};Fo.prototype.setSeverity=function(a){return Hm(this,1,a)};var Lp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lp,W);var Ko=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ko,W);Ko.prototype.getRetentionPeriod=function(){return X(this,dn,1)};var Mo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mo,W);h=Mo.prototype;h.getAttachmentId_asString=function(){return tn(this,1)};h.setAttachmentId=function(a){return Io(this,1,a)};h.getLength=function(){return pn(this,3)};h.getFilename=function(){return ui(this,4)};h.setFilename=function(a){return Fm(this,4,a)};h.getEntityStatus=function(){return X(this,Jo,6)};h.setEntityStatus=function(a){return Mi(this,Jo,6,a)};h.getEtag=function(){return Sn(this,7)};
h.setEtag=function(a){return No(this,7,a)};h.getContentVerdict=function(){return X(this,Lp,10)};h.setContentVerdict=function(a){Mi(this,Lp,10,a)};h.getRestrictedRetentionState=function(){return X(this,Ko,11)};h.setRestrictedRetentionState=function(a){Mi(this,Ko,11,a)};h.getRestrictedRetention=function(){return wi(this,12)};h.setRestrictedRetention=function(a){return Hm(this,12,a)};var Uo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Uo,W);Uo.prototype.getValuesList=function(a){return Bi(this,$m,1,Ci(a))};Uo.prototype.setValuesList=function(a){return Ni(this,1,a)};Uo.prototype.setValues=function(a,b){Gw(this,1,$m,a,b)};var To=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(To,W);To.prototype.getValuesList=function(a){return qc(this,1,xb,Ci(a))};To.prototype.setValuesList=function(a){return xc(this,1,a,wca)};To.prototype.getValues=function(a){var b=qc(this,1,xb,3,!0);hb(b,a);return b[a]};To.prototype.setValues=function(a,b){zc(this,1,wca,b,a,xb,void 0,1)};var So=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(So,W);So.prototype.getValuesList=function(a){return Cm(this,1,Ci(a))};So.prototype.setValuesList=function(a){return Gm(this,1,a)};So.prototype.getValues=function(a){return Uw(this,1,a)};So.prototype.setValues=function(a,b){bx(this,1,a,b)};var Em=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Em,W);Em.prototype.getEmailAddress=function(){return ui(this,1)};var Vo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vo,W);h=Vo.prototype;h.getValueCase=function(){return wo(this,Ro)};h.getCustomFieldId=function(){return pn(this,1)};h.getCustomFieldId_asString=function(){return tn(this,1)};h.setCustomFieldId=function(a){return Io(this,1,a)};h.getDateValue=function(){return bm(this,$m,3,Ro)};h.getDisplayString=function(){return ui(this,10)};var Ro=[2,3,4,5,6,7,8,9,12,13,14,15,16,17];var Xo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xo,W);h=Xo.prototype;h.getCustomFieldId=function(){return pn(this,1)};h.getCustomFieldId_asString=function(){return tn(this,1)};h.setCustomFieldId=function(a){return Io(this,1,a)};h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return tn(this,2)};h.setComponentId=function(a){return Io(this,2,a)};h.getType=function(){return wi(this,3)};h.setType=function(a){return Hm(this,3,a)};
h.getName=function(){return ui(this,5)};h.setName=function(a){return Fm(this,5,a)};h.getDescription=function(){return ui(this,6)};h.setDescription=function(a){return Fm(this,6,a)};h.getEnumValues=function(a){return Uw(this,8,a)};h.setFieldSignificance=function(a){return Hm(this,9,a)};h.getShared=function(){return Fi(this,11)};h.setShared=function(a){Yo(this,11,a)};var Po=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Po,W);Po.prototype.getCustomFieldId=function(){return pn(this,Hi(this,Oo,1))};Po.prototype.getCustomFieldId_asString=function(){return tn(this,Hi(this,Oo,1))};Po.prototype.setCustomFieldId=function(a){return Qo(this,1,Oo,Ib(a,0))};Po.prototype.hasCustomFieldId=function(){var a=Hi(this,Oo,1);return Nb(fm(this,a))!=null};var Oo=[1,2];var lp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lp,W);lp.prototype.getCount=function(){return pn(this,2)};lp.prototype.setCount=function(a){return Io(this,2,a)};lp.prototype.getType=function(){return wi(this,4)};lp.prototype.setType=function(a){return Hm(this,4,a)};var bp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bp,W);var ip=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ip,W);ip.prototype.getContent=function(){return X(this,El,1)};ip.prototype.setContent=function(a){return Mi(this,El,1,a)};ip.prototype.hasContent=function(){return xi(this,El,1)};var hp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hp,W);hp.prototype.getContent=function(){return X(this,El,1)};hp.prototype.setContent=function(a){return Mi(this,El,1,a)};hp.prototype.hasContent=function(){return xi(this,El,1)};var gp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gp,W);gp.prototype.getContent=function(){return X(this,El,2)};gp.prototype.setContent=function(a){return Mi(this,El,2,a)};gp.prototype.hasContent=function(){return xi(this,El,2)};var yWa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yWa,W);var jp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jp,W);jp.prototype.getKindCase=function(){return wo(this,fp)};var fp=[1,2,3];var bcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bcd,W);bcd.prototype.getState=function(){return wi(this,2)};bcd.prototype.setState=function(a){return Hm(this,2,a)};var Kp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kp,W);h=Kp.prototype;h.getIssueId=function(){return pn(this,6)};h.getIssueId_asString=function(){return tn(this,6)};h.setIssueId=function(a){return Io(this,6,a)};h.getCommentNumber=function(){return Bm(this,7)};h.setCommentNumber=function(a){return an(this,7,a)};h.getComment=function(){return ui(this,1)};h.setComment=function(a){return Fm(this,1,a)};h.getFormattedComment=function(){return X(this,jp,16)};
h.setFormattedComment=function(a){Mi(this,jp,16,a)};h.hasFormattedComment=function(){return xi(this,jp,16)};h.getMentionsList=function(a){return Bi(this,bcd,14,Ci(a))};h.getFormattingMode=function(){return wi(this,9)};h.setFormattingMode=function(a){return Hm(this,9,a)};h.getAttachmentsList=function(){return Bi(this,Mo,2,Ci())};h.setAttachmentsList=function(a){return Ni(this,2,a)};h.addAllAttachments=function(a){Mp(this,2,Mo,a)};h.getModifiedTime=function(){return X(this,Si,4)};
h.setModifiedTime=function(a){return Mi(this,Si,4,a)};h.getEntityStatus=function(){return X(this,Jo,5)};h.setEntityStatus=function(a){return Mi(this,Jo,5,a)};h.getVersion=function(){return Bm(this,8)};h.setVersion=function(a){return an(this,8,a)};h.getContentVerdict=function(){return X(this,Lp,10)};h.setContentVerdict=function(a){Mi(this,Lp,10,a)};h.getRestrictedRetentionState=function(){return X(this,Ko,11)};h.setRestrictedRetentionState=function(a){Mi(this,Ko,11,a)};
h.getRestrictedRetention=function(){return wi(this,12)};h.setRestrictedRetention=function(a){return Hm(this,12,a)};h.getEtag=function(){return Sn(this,15)};h.setEtag=function(a){return No(this,15,a)};var Bp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bp,W);h=Bp.prototype;h.getChangeNumber=function(){return pn(this,3)};h.getChangeNumber_asLegacyNumberOrString=function(){return Cp(this,3)};h.setChangeNumber=function(a){return Io(this,3,a)};h.getState=function(){return wi(this,4)};h.setState=function(a){return Hm(this,4,a)};var Do=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Do,W);Do.prototype.getAccessLevel=function(){return wi(this,1)};Do.prototype.setAccessLevel=function(a){return Hm(this,1,a)};var sp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sp,W);sp.prototype.getRole=function(){return wi(this,1)};sp.prototype.setRole=function(a){return Hm(this,1,a)};sp.prototype.getCount=function(){return em(this,2)};sp.prototype.setCount=function(a){return qp(this,2,a)};var UWa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(UWa,W);h=UWa.prototype;h.getUser=function(){return X(this,Em,1)};h.setUser=function(a){return Mi(this,Em,1,a)};h.hasUser=function(){return xi(this,Em,1)};h.getRole=function(){return wi(this,2)};h.setRole=function(a){return Hm(this,2,a)};h.getIsLead=function(){return Fi(this,3)};h.setIsLead=function(a){return Yo(this,3,a)};var pp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pp,W);pp.prototype.getUser=function(){return bm(this,UWa,1,tp)};pp.prototype.setUser=function(a){return Wo(this,1,tp,a)};pp.prototype.hasUser=function(){return Qi(this,UWa,1,tp)};pp.prototype.getPlaceholder=function(){return bm(this,sp,2,tp)};var tp=[1,2];var up=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(up,W);var zp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zp,W);h=zp.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return tn(this,1)};h.setComponentId=function(a){return Io(this,1,a)};h.getType=function(){return wi(this,2)};h.setType=function(a){return Hm(this,2,a)};h.getStatus=function(){return wi(this,3)};h.setStatus=function(a){return Hm(this,3,a)};h.getPriority=function(){return wi(this,4)};
h.setPriority=function(a){return Hm(this,4,a)};h.getSeverity=function(){return wi(this,5)};h.setSeverity=function(a){return Hm(this,5,a)};h.getTitle=function(){return ui(this,6)};h.setTitle=function(a){return Fm(this,6,a)};h.getReporter=function(){return X(this,Em,7)};h.setReporter=function(a){Mi(this,Em,7,a)};h.getAssignee=function(){return X(this,Em,8)};h.setAssignee=function(a){return Mi(this,Em,8,a)};h.clearAssignee=function(){return Hw(this,8)};h.getVerifier=function(){return X(this,Em,9)};
h.setVerifier=function(a){Mi(this,Em,9,a)};h.clearVerifier=function(){return Hw(this,9)};h.getCcsList=function(){return Bi(this,Em,10,Ci())};h.setCcsList=function(a){Ni(this,10,a)};h.addAllCcs=function(a){Mp(this,10,Em,a)};h.setCcs=function(a,b){return Gw(this,10,Em,a,b)};h.getCollaboratorsList=function(){return Bi(this,Em,31,Ci())};h.setCollaboratorsList=function(a){Ni(this,31,a)};h.addAllCollaborators=function(a){Mp(this,31,Em,a)};h.setCollaborators=function(a,b){return Gw(this,31,Em,a,b)};
h.getStaffing=function(){return X(this,up,36)};h.setStaffing=function(a){Mi(this,up,36,a)};h.getCanonicalIssueId_asString=function(){return tn(this,11)};h.setCanonicalIssueId=function(a){Io(this,11,a)};h.getBlockedByIssueIdsList=function(){return Qw(this,12,1)};h.getBlockedByIssueIdsList_asString=function(){return Qm(this,12)};h.setBlockedByIssueIdsList=function(a){tr(this,12,a)};h.addAllBlockedByIssueIds=function(a){ax(this,12,a)};h.getBlockingIssueIdsList=function(){return Qw(this,13,1)};
h.getBlockingIssueIdsList_asString=function(){return Qm(this,13)};h.setBlockingIssueIdsList=function(a){tr(this,13,a)};h.addAllBlockingIssueIds=function(a){ax(this,13,a)};h.getHotlistIdsList_asLegacyNumberOrString=function(a){return K4a(this,14,Ci(a))};h.getHotlistIdsList_asString=function(){return Qm(this,14)};h.setHotlistIdsList=function(a){return tr(this,14,a)};h.addHotlistIds=function(a,b){return $w(this,14,a,b)};h.addAllHotlistIds=function(a){ax(this,14,a)};
h.removeHotlistIds=function(a){return hyc(this,14,a)};h.getCustomFieldsList=function(){return Bi(this,Vo,15,Ci())};h.setCustomFieldsList=function(a){return Ni(this,15,a)};h.addCustomFields=function(a){Np(this,15,Vo,a)};h.getCodeChangesList=function(a){return Cm(this,16,Ci(a))};h.setCodeChangesList=function(a){Gm(this,16,a)};h.addAllCodeChanges=function(a){wq(this,16,a)};h.setCodeChanges=function(a,b){return bx(this,16,a,b)};h.getGerritChangesList=function(){return Bi(this,Bp,35,Ci())};
h.setGerritChangesList=function(a){Ni(this,35,a)};h.addAllGerritChanges=function(a){Mp(this,35,Bp,a)};h.getInProd=function(){return Fi(this,20)};h.setInProd=function(a){Yo(this,20,a)};h.getIsArchived=function(){return Fi(this,21)};h.setIsArchived=function(a){return Yo(this,21,a)};h.getDuplicateIssueIdsList_asString=function(){return Qm(this,22)};h.setDuplicateIssueIdsList=function(a){tr(this,22,a)};h.getIsDeleted=function(){return Fi(this,23)};h.setIsDeleted=function(a){Yo(this,23,a)};
h.setDeletionReason=function(a){Hm(this,24,a)};h.getEntityStatus=function(){return X(this,Jo,25)};h.setEntityStatus=function(a){return Mi(this,Jo,25,a)};h.getSloSnoozeUntil=function(){return X(this,Si,26)};h.setSloSnoozeUntil=function(a){Mi(this,Si,26,a)};h.getSloEndTime=function(){return X(this,Si,34)};h.setSloEndTime=function(a){Mi(this,Si,34,a)};h.hasSloEndTime=function(){return xi(this,Si,34)};h.setSloSnoozeType=function(a){Hm(this,30,a)};h.getRetention=function(){return wi(this,28)};
h.setRetention=function(a){return Hm(this,28,a)};h.getEffort=function(){return X(this,Ap,29)};h.setEffort=function(a){Mi(this,Ap,29,a)};h.hasEffort=function(){return xi(this,Ap,29)};h.getAccessLimit=function(){return X(this,Do,32)};h.setAccessLimit=function(a){return Mi(this,Do,32,a)};var f0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(f0a,W);f0a.prototype.setNotificationSubscription=function(a){return Hm(this,4,a)};var zXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zXa,W);var yXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yXa,W);h=yXa.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return vn(this,1,a)};h.getCommentNumber=function(){return Bm(this,2)};h.setCommentNumber=function(a){return En(this,2,a)};var CXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(CXa,W);var xXa=[1,2];var wp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wp,W);h=wp.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getFormattingMode=function(){return wi(this,4)};h.setFormattingMode=function(a){return Hm(this,4,a)};h.getAuthor=function(){return X(this,Em,5)};h.setAuthor=function(a){Mi(this,Em,5,a)};h.hasAuthor=function(){return xi(this,Em,5)};
h.getUpdateTime=function(){return X(this,Si,6)};h.setUpdateTime=function(a){Mi(this,Si,6,a)};h.hasUpdateTime=function(){return xi(this,Si,6)};h.getVersion=function(){return Bm(this,7)};h.setVersion=function(a){return an(this,7,a)};h.getEntityStatus=function(){return X(this,Jo,8)};h.setEntityStatus=function(a){return Mi(this,Jo,8,a)};var Hp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hp,W);h=Hp.prototype;h.getIssueId=function(){return pn(this,2)};h.getIssueId_asString=function(){return tn(this,2)};h.setIssueId=function(a){return Io(this,2,a)};h.getIssueState=function(){return X(this,zp,3)};h.setIssueState=function(a){return Mi(this,zp,3,a)};h.getIssueComment=function(){return X(this,Kp,4)};h.setIssueComment=function(a){Mi(this,Kp,4,a)};h.hasIssueComment=function(){return xi(this,Kp,4)};
h.getAttachmentsList=function(){return Bi(this,Mo,18,Ci())};h.setAttachmentsList=function(a){return Ni(this,18,a)};h.addAllAttachments=function(a){Mp(this,18,Mo,a)};h.getDescription=function(){return X(this,Kp,44)};h.setDescription=function(a){return Mi(this,Kp,44,a)};h.hasDescription=function(){return xi(this,Kp,44)};h.getStatusUpdate=function(){return X(this,wp,43)};h.setStatusUpdate=function(a){Mi(this,wp,43,a)};h.hasStatusUpdate=function(){return xi(this,wp,43)};
h.getCreatedTime=function(){return X(this,Si,5)};h.setCreatedTime=function(a){return Mi(this,Si,5,a)};h.getModifiedTime=function(){return X(this,Si,6)};h.setModifiedTime=function(a){return Mi(this,Si,6,a)};h.getMajorModifiedTime=function(){return X(this,Si,35)};h.setMajorModifiedTime=function(a){return Mi(this,Si,35,a)};h.getResolvedTime=function(){return X(this,Si,7)};h.setResolvedTime=function(a){return Mi(this,Si,7,a)};h.getVerifiedTime=function(){return X(this,Si,8)};
h.setVerifiedTime=function(a){return Mi(this,Si,8,a)};h.getUserData=function(){return X(this,f0a,9)};h.getParentIssueIdsList_asString=function(){return Qm(this,37)};h.setParentIssueIdsList=function(a){return tr(this,37,a)};h.getAccessLimit=function(){return X(this,Eo,11)};h.setAccessLimit=function(a){return Mi(this,Eo,11,a)};h.getVersion=function(){return Bm(this,12)};h.setVersion=function(a){return an(this,12,a)};h.getEtag=function(){return Sn(this,13)};h.setEtag=function(a){return No(this,13,a)};
h.getCustomFieldsList=function(){return Bi(this,Xo,15,Ci())};h.setCustomFieldsList=function(a){return Ni(this,15,a)};h.addCustomFields=function(a){Np(this,15,Xo,a)};h.getSloStatus=function(){return X(this,Iq,16)};h.setSloStatus=function(a){Mi(this,Iq,16,a)};h.getSloId_asLegacyNumberOrString=function(){return Cp(this,17)};h.getSloId_asString=function(){return tn(this,17)};h.setSloId=function(a){return Io(this,17,a)};h.getTeamId=function(){return pn(this,33)};
h.getTeamId_asLegacyNumberOrString=function(){return Cp(this,33)};h.getTeamId_asString=function(){return tn(this,33)};h.setTeamId=function(a){return Io(this,33,a)};h.getEscalationOwner=function(){return X(this,Em,48)};h.setEscalationOwner=function(a){Mi(this,Em,48,a)};h.getRetentionState=function(){return X(this,Ko,29)};h.setRetentionState=function(a){Mi(this,Ko,29,a)};h.getAncestorsMap=function(){return wc(this,38,Jq,Ub)};h.getChildIssueCount=function(){return Bm(this,39)};
h.setChildIssueCount=function(a){return an(this,39,a)};h.getDescendantIssueCount=function(){return Bm(this,45)};h.setDescendantIssueCount=function(a){return an(this,45,a)};h.getOpenDescendantIssueCount=function(){return Bm(this,46)};h.setOpenDescendantIssueCount=function(a){return an(this,46,a)};h.getIsArchived=function(){return Fi(this,40)};h.setIsArchived=function(a){return Yo(this,40,a)};h.getTrackerId=function(){return pn(this,42)};h.getTrackerId_asString=function(){return tn(this,42)};
h.setTrackerId=function(a){Io(this,42,a)};var tN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tN,W);tN.prototype.getCode=function(){return wi(this,1)};tN.prototype.setCode=function(a){return Gn(this,1,a)};tN.prototype.getCodeOrUndefined=function(){return vp(this,1)};var Ov=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,1)};Y(Ov,W);var uN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uN,W);h=uN.prototype;h.getLoggingId=function(){return ui(this,1)};h.setLoggingId=function(a){oj(this,1,a)};h.getValue=function(){return em(this,2)};h.setValue=function(a){return Zw(this,2,a)};h.hasValue=function(){return fm(this,2,void 0,void 0,xb)!=null};var mw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mw,W);mw.prototype.getEncryptionSupport=function(){return wi(this,1)};mw.prototype.getCertificateStatus=function(){return wi(this,2)};mw.prototype.getCertificateExpirySec=function(){return pn(this,3)};var vN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vN,W);h=vN.prototype;h.getDisplayName=function(){return ui(this,1)};h.setDisplayName=function(a){return oj(this,1,a)};h.getGivenName=function(){return ui(this,2)};h.setGivenName=function(a){return oj(this,2,a)};h.hasGivenName=function(){return im(this,2)};h.getFamilyName=function(){return ui(this,3)};h.setFamilyName=function(a){return oj(this,3,a)};h.hasFamilyName=function(){return im(this,3)};
h.getSourceType=function(){return wi(this,4)};h.setSourceType=function(a){return Gn(this,4,a)};var ccd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ccd,W);h=ccd.prototype;h.getUrl=function(){return ui(this,1)};h.setUrl=function(a){return oj(this,1,a)};h.hasUrl=function(){return im(this,1)};h.getType=function(){return wi(this,2)};h.setType=function(a){return Gn(this,2,a)};h.hasType=function(){return jm(this,2)};h.getSourceType=function(){return wi(this,3)};h.setSourceType=function(a){return Gn(this,3,a)};h.getGlyph=function(){return ui(this,4)};
h.setGlyph=function(a){return oj(this,4,a)};var nw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nw,W);nw.prototype.getReachabilityStatus=function(){return wi(this,1)};nw.prototype.getClientData=function(){return ui(this,2)};nw.prototype.hasClientData=function(){return im(this,2)};var wN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wN,W);wN.prototype.getAltText=function(){return ui(this,1)};wN.prototype.setAltText=function(a){return oj(this,1,a)};wN.prototype.getIconUrl=function(){return ui(this,2)};wN.prototype.setIconUrl=function(a){return oj(this,2,a)};var xN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xN,W);h=xN.prototype;h.getTargetType=function(){return wi(this,1,18)};h.getValue=function(){return ui(this,2)};h.setValue=function(a){return oj(this,2,a)};h.hasValue=function(){return im(this,2)};h.getName=function(){return X(this,vN,3)};h.setName=function(a){return Mi(this,vN,3,a)};h.hasName=function(){return xi(this,vN,3)};h.getNameOrUndefined=function(){return ayc(this,vN,3)};
h.getPhoto=function(){return X(this,ccd,4)};h.setPhoto=function(a){Mi(this,ccd,4,a)};h.hasPhoto=function(){return xi(this,ccd,4)};h.getProfileId=function(){return Uw(this,5)};h.setProfileId=function(a){return bx(this,5,a)};h.getContactId=function(){return Uw(this,6)};h.setContactId=function(a){return bx(this,6,a)};h.getIsMe=function(){return Fi(this,7)};h.setIsMe=function(a){return Oi(this,7,a)};h.getAffinity=function(){return X(this,uN,8)};h.hasAffinity=function(){return xi(this,uN,8)};
h.getEmailSecurityInfo=function(){return X(this,mw,9)};h.setEmailSecurityInfo=function(a){Mi(this,mw,9,a)};h.getOrgState=function(){return wi(this,10)};h.setOrgState=function(a){Gn(this,10,a)};h.getDataSource=function(){return wi(this,11)};h.setDataSource=function(a){return Gn(this,11,a)};h.hasDataSource=function(){return jm(this,11)};h.getDescription=function(){return ui(this,12)};h.setDescription=function(a){return oj(this,12,a)};h.hasDescription=function(){return im(this,12)};
h.getTagList=function(){return Bi(this,wN,14,Ci())};h.setTagList=function(a){Ni(this,14,a)};h.addTag=function(a){Np(this,14,wN,a)};h.getExtendedData=function(){return X(this,Ov,15)};h.setExtendedData=function(a){Mi(this,Ov,15,a)};h.hasExtendedData=function(){return xi(this,Ov,15)};h.getCanonicalValue=function(){return ui(this,16)};h.setCanonicalValue=function(a){return oj(this,16,a)};h.hasCanonicalValue=function(){return im(this,16)};h.getReachabilityInfo=function(){return X(this,nw,17)};
h.setReachabilityInfo=function(a){Mi(this,nw,17,a)};var yN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yN,W);h=yN.prototype;h.getResultType=function(){return wi(this,1,7)};h.setResultType=function(a){return Gn(this,1,a)};h.getTargetList=function(){return Bi(this,xN,2,Ci())};h.setTarget=function(a){Gw(this,2,xN,a)};h.getTargetCount=function(){return zi(this,xN,2)};h.getMemberList=function(){return Bi(this,yN,3,Ci())};h.getTotalMemberCount=function(){return Bm(this,4)};h.getIsBoosted=function(){return Fi(this,5)};
h.setIsBoosted=function(a){Oi(this,5,a)};h.getAffinity=function(){return X(this,uN,6)};h.hasAffinity=function(){return xi(this,uN,6)};h.getExtendedData=function(){return X(this,Ov,7)};h.setExtendedData=function(a){Mi(this,Ov,7,a)};h.hasExtendedData=function(){return xi(this,Ov,7)};var dcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dcd,W);var ecd=function(a,b){Ni(a,1,b)};h=dcd.prototype;h.setResult=function(a,b){return Gw(this,1,yN,a,b)};h.getMetadata=function(){return X(this,tN,2)};h.getMutableMetadata=function(){return Ii(this,tN,2)};h.setMetadata=function(a){Mi(this,tN,2,a)};h.hasMetadata=function(){return xi(this,tN,2)};var IQa=Object.prototype.hasOwnProperty;var fcd={SINGLE_VALUE:"SINGLE_VALUE",COLLECTION:"COLLECTION",USER_COLLECTION:"USER_COLLECTION",LINKED_COLLECTION:"LINKED_COLLECTION",CUSTOM_FIELD:"CUSTOM_FIELD",STATUS_UPDATE:"STATUS_UPDATE"},Wdc=new Set([{alias:"googlers_unrestricted"},{alias:"google_domain"}].map(function(a){return"ALIAS:"+a.alias})),gcd={ASSIGNEE:"assignee",ATTACHMENTS:"attachments",BLOCKED_BY_ISSUE_ID:"blockedByIssueId",BLOCKING_ISSUE_ID:"blockingIssueId",CCS:"ccs",CHANGELISTS:"changelists",COLLABORATORS:"collaborators",COMMENT:"comment",
COMPONENT_ID:"componentId",CUSTOM_FIELD:"customField",DELETION_REASON:"deletionReason",DUPLICATE_OF_ISSUE_ID:"duplicateOfIssueId",EFFORT_ESTIMATE:"effortEstimate",FOUND_IN_VERSION:"foundInVersion",GERRIT_CHANGES:"gerritChanges",HOTLISTS:"hotlists",IN_PROD:"inProd",IS_ARCHIVED:"isArchived",IS_DELETED:"isDeleted",PARENT_ID:"parentId",PRIORITY:"priority",READ_STATE:"readState",REPORTER:"reporter",SEVERITY:"severity",SLO_END_TIME:"sloEndTime",SLO_SNOOZE_TYPE:"sloSnoozeType",SLO_START_TIME:"sloStartTime",
STAFFING:"staffing",STATUS:"status",TARGETED_TO_VERSION:"targetedToVersion",TITLE:"title",TYPE:"type",VERIFIED_IN_VERSION:"verifiedInVersion",VERIFIER:"verifier"},hcd={AGGREGATION_TYPE_UNSPECIFIED:"AGGREGATION_TYPE_UNSPECIFIED",SUM:"SUM",MAX:"MAX"},icd={ASSIGNED_TO_ME_AND_OPEN:"ASSIGNED_TO_ME_AND_OPEN",ASSIGNED_TO_ME:"ASSIGNED_TO_ME",OPEN:"OPEN",FIXED:"FIXED",BROAD_IN_PROGRESS:"BROAD_IN_PROGRESS",NEWLY_FILED:"NEWLY_FILED",RECENTLY_ACTIVE:"RECENTLY_ACTIVE",HIGH_PRIORITY:"HIGH_PRIORITY",TRENDING:"TRENDING",
PROGRESS:"PROGRESS"};var T1a=new Map([[1,"Bug"],[3,"Customer Issue"],[13,"Epic"],[11,"Feature"],[2,"Feature Request"],[4,"Internal Cleanup"],[12,"Milestone"],[7,"Privacy Issue"],[5,"Process"],[9,"Program"],[10,"Project"],[14,"Story"],[15,"Task"],[0,"Unspecified"],[6,"Vulnerability"]]),$q=new Map([[1,"New"],[2,"Assigned"],[3,"In Progress (Accepted)"],[4,"Fixed"],[5,"Fixed (Verified)"],[6,"Won't fix (Not reproducible)"],[7,"Won't fix (Intended behavior)"],[8,"Won't fix (Obsolete)"],[9,"Won't fix (Infeasible)"],[11,"Inactive"],
[10,"Duplicate"],[0,""]]),zN=new Map([[1,"New"],[2,"Assigned"],[3,"In Progress"],[4,"Fixed"],[5,"Verified"],[6,"Can't Repro"],[7,"WAI"],[8,"Obsolete"],[9,"Infeasible"],[11,"Inactive"],[10,"Duplicate"],[0,""]]),jcd=new Map([[1,"High"],[2,"Medium"],[3,"Low"],[4,"Zero"],[0,"--"]]),AN=new Map([[1,"SWE"],[2,"SRE"],[3,"PM"],[4,"T/PgM"],[5,"UX"],[6,"UXD"],[7,"UXR"],[8,"DataSci"],[9,"L&D"],[10,"DevRel"],[11,"TW"],[12,"GTM"],[13,"CE"],[14,"Other"],[0,"--"]]),BN=new Map([[1,"Software Engineer (SWE)"],[2,"Site Reliability Engineer (SRE)"],
[3,"Product Manager (PM)"],[4,"Technical Program Manager (T/PgM)"],[5,"User Experience (UX)"],[6,"User Experience Designer (UXD)"],[7,"User Experience Researcher (UXR)"],[8,"Data Scientist (DataSci)"],[9,"Learning & Development (L&D)"],[10,"Developer Relations (DevRel)"],[11,"Technical Writer (TW)"],[12,"Go To Market (GTM)"],[13,"Customer Engagement (CE)"],[14,"Other"],[0,"--"]]);var kcd=new Map([["STATUS_UNSPECIFIED",zN.get(0)],["NEW",zN.get(1)],["ASSIGNED",zN.get(2)],["ACCEPTED",zN.get(3)],["FIXED",zN.get(4)],["VERIFIED",zN.get(5)],["DUPLICATE",zN.get(10)],["INFEASIBLE",zN.get(9)],["INACTIVE",zN.get(11)],["NOT_REPRODUCIBLE",zN.get(6)],["OBSOLETE",zN.get(8)],["INTENDED_BEHAVIOR",zN.get(7)]]),lcd={New:1,Assigned:2,"In Progress (Accepted)":3,Fixed:4,Verified:5},dUa=new Map([["STATUS_UNSPECIFIED",0],["NEW",10],["ASSIGNED",20],["ACCEPTED",30],["FIXED",40],["VERIFIED",50],["DUPLICATE",
60],["INFEASIBLE",70],["INACTIVE",75],["NOT_REPRODUCIBLE",80],["OBSOLETE",90],["INTENDED_BEHAVIOR",100]]),CN={},mcd=(CN.ASSIGNED=!0,CN.ACCEPTED=!0,CN.FIXED=!0,CN.VERIFIED=!0,CN.DUPLICATE=!0,CN.INFEASIBLE=!0,CN.INACTIVE=!0,CN.NOT_REPRODUCIBLE=!0,CN.OBSOLETE=!0,CN.INTENDED_BEHAVIOR=!0,CN),zm=new Map([["STATUS_UNSPECIFIED",$q.get(0)],["NEW",$q.get(1)],["ASSIGNED",$q.get(2)],["ACCEPTED",$q.get(3)],["FIXED",$q.get(4)],["VERIFIED",$q.get(5)],["DUPLICATE",$q.get(10)],["INFEASIBLE",$q.get(9)],["INACTIVE",
$q.get(11)],["NOT_REPRODUCIBLE",$q.get(6)],["OBSOLETE",$q.get(8)],["INTENDED_BEHAVIOR",$q.get(7)]]),DN={},ncd=(DN.P0="P0",DN.P1="P1",DN.P2="P2",DN.P3="P3",DN.P4="P4",DN.PRIORITY_UNSPECIFIED="--",DN),EN={},oUa=(EN.P0=0,EN.P1=10,EN.P2=20,EN.P3=30,EN.P4=40,EN.PRIORITY_UNSPECIFIED=99,EN),FN={},ocd=(FN.S0="S0",FN.S1="S1",FN.S2="S2",FN.S3="S3",FN.S4="S4",FN.SEVERITY_UNSPECIFIED="--",FN),pcd=new Map([["STATUS_UNSPECIFIED","issue-status-wont-fix"],["NEW","issue-status-new"],["ASSIGNED","issue-status-assigned"],
["ACCEPTED","issue-status-accepted"],["FIXED","issue-status-fixed"],["VERIFIED","issue-status-verified"],["DUPLICATE","issue-status-duplicate"],["INFEASIBLE","issue-status-wont-fix"],["INACTIVE","issue-status-wont-fix"],["NOT_REPRODUCIBLE","issue-status-wont-fix"],["OBSOLETE","issue-status-wont-fix"],["INTENDED_BEHAVIOR","issue-status-wont-fix"]]),GN={},oo=(GN.INVOLVEMENT_UNSPECIFIED=jcd.get(0),GN.HIGH=jcd.get(1),GN.MEDIUM=jcd.get(2),GN.LOW=jcd.get(3),GN.ZERO=jcd.get(4),GN),HN={},Yq=(HN.JOB_ROLE_UNSPECIFIED=
AN.get(0),HN.SWE=AN.get(1),HN.SRE=AN.get(2),HN.PM=AN.get(3),HN.TPGM=AN.get(4),HN.UX=AN.get(5),HN.UXD=AN.get(6),HN.UXR=AN.get(7),HN.DATASCI=AN.get(8),HN.LD=AN.get(9),HN.DEVREL=AN.get(10),HN.TW=AN.get(11),HN.GTM=AN.get(12),HN.CE=AN.get(13),HN.OTHER=AN.get(14),HN),IN={},JN=(IN.JOB_ROLE_UNSPECIFIED=BN.get(0),IN.SWE=BN.get(1),IN.SRE=BN.get(2),IN.PM=BN.get(3),IN.TPGM=BN.get(4),IN.UX=BN.get(5),IN.UXD=BN.get(6),IN.UXR=BN.get(7),IN.DATASCI=BN.get(8),IN.LD=BN.get(9),IN.DEVREL=BN.get(10),IN.TW=BN.get(11),IN.GTM=
BN.get(12),IN.CE=BN.get(13),IN.OTHER=BN.get(14),IN);var eRa=Am("NEW",!0,"FORBIDDEN",10),fRa=Am("ASSIGNED",!0,"REQUIRED",20),gRa=Am("ACCEPTED",!0,"REQUIRED",30),hRa=Am("FIXED",!1,"REQUIRED",40),iRa=Am("VERIFIED",!1,"REQUIRED",50),jRa=Am("DUPLICATE",!1,"ALLOWED",60),kRa=Am("INFEASIBLE",!1,"ALLOWED",70),oRa=Am("INACTIVE",!1,"ALLOWED",75),lRa=Am("NOT_REPRODUCIBLE",!1,"ALLOWED",80),mRa=Am("OBSOLETE",!1,"ALLOWED",90),nRa=Am("INTENDED_BEHAVIOR",!1,"ALLOWED",100),io=new Map(pRa().map(function(a){return[a.status,a]})),qcd=pRa().map(function(a){return{value:a.status,
displayText:a.displayValue}}),rcd=new Set(pRa().filter(function(a){return a.assigneeRequirement==="REQUIRED"}));var tRa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tRa,W);tRa.prototype.getLogoUrl=function(){return ui(this,1)};tRa.prototype.getTheme=function(){return wi(this,2)};tRa.prototype.setTheme=function(a){Hm(this,2,a)};var KN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(KN,W);h=KN.prototype;h.getTrackerId=function(){return pn(this,1)};h.getTrackerId_asString=function(){return tn(this,1)};h.setTrackerId=function(a){Io(this,1,a)};h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return tn(this,2)};h.setComponentId=function(a){return Io(this,2,a)};h.getName=function(){return ui(this,3)};h.setName=function(a){return Fm(this,3,a)};
h.getInternalBaseUrl=function(){return ui(this,8)};h.getExternalBaseUrl=function(){return ui(this,9)};h.getEtag=function(){return Sn(this,7)};h.setEtag=function(a){return No(this,7,a)};var Vn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Vn.messageId)};Y(Vn,W);Vn.prototype.getIt=function(){return X(this,KN,9,jb)};Vn.prototype.setIt=function(a){return Mi(this,KN,9,a,jb)};Vn.messageId="b.Tracker";var LN={showFullHistory:void 0,useCodefont:void 0,resultsPerPage:50,displayColumns:void 0,sortColumns:void 0,notificationPreferences:{reportedPriority:"IMPORTANT",assignedPriority:"ALL",verifiedPriority:"IMPORTANT",ccdPriority:"IMPORTANT",collaboratorPriority:"IMPORTANT",starredPriority:"IMPORTANT",excludeChangesByMe:!0,unsubscribeFromAll:!1,enableV2Prefs:!1},listViewPreferences:{showHotlists:!1,wrapTitles:!1,wrapComponents:!1,showStatusIcons:!1,rtlComponentPath:!1},layoutPreferences:{leftSidebarWidth:220,
expandIssueSlo:!1},dateTimePreferences:{calendarFormat:"MMM d, yyyy",timeFormat:"hh:mma",timeZone:"",sloEtaViewAs:"DEFAULT"},themePreferences:{density:"COMFORTABLE"},homepagePreferences:{resourceType:void 0,resourceId:void 0},keyboardPreferences:{enableAllHotkeys:!0},commentFormattingPreferences:{},bugScreensaverPreferences:{announcementDismissed:!1,enableBugScreensaver:!1},g3nPreferences:{},teamWarningPreferences:{componentTeamWarnings:[]},dismissalTimestamps:{},showRecentEventsFirst:!1,commentFilterPreferences:{commentFilter:void 0},
showInlineImages:!0,missionControlPreferences:{}};var Ls=function(a,b){this.low_=a|0;this.high_=b|0},MN=function(a){return a.high_*4294967296+(a.low_>>>0)};h=Ls.prototype;h.isSafeInteger=function(){var a=this.high_>>21;return a==0||a==-1&&!(this.low_==0&&this.high_==-2097152)};
h.toString=function(a){a=a||10;if(a<2||36<a)throw Error("ad`"+a);if(this.isSafeInteger()){var b=MN(this);return a==10?""+b:b.toString(a)}b=14-(a>>2);var c=Math.pow(a,b),d=NN(c,c/4294967296);c=this.div(d);d=Math.abs(MN(ON(this,c.multiply(d))));var e=a==10?""+d:d.toString(a);e.length<b&&(e="0000000000000".slice(e.length-b)+e);d=MN(c);return(a==10?d:d.toString(a))+e};h.isZero=function(){return this.low_==0&&this.high_==0};h.equals=function(a){return a==null?!1:this.low_==a.low_&&this.high_==a.high_};
h.compare=function(a){return this.high_==a.high_?this.low_==a.low_?0:this.low_>>>0>a.low_>>>0?1:-1:this.high_>a.high_?1:-1};var PN=function(a){var b=~a.low_+1|0;return NN(b,~a.high_+!b|0)};Ls.prototype.add=function(a){var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,e=a.high_>>>16,f=a.high_&65535,g=a.low_>>>16;a=(this.low_&65535)+(a.low_&65535);g=(a>>>16)+(d+g);d=g>>>16;d+=c+f;return NN((g&65535)<<16|a&65535,((d>>>16)+(b+e)&65535)<<16|d&65535)};var ON=function(a,b){return a.add(PN(b))};
h=Ls.prototype;h.multiply=function(a){if(this.isZero())return this;if(a.isZero())return a;var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,e=this.low_&65535,f=a.high_>>>16,g=a.high_&65535,k=a.low_>>>16;a=a.low_&65535;var l=e*a;var r=(l>>>16)+d*a;var w=r>>>16;r=(r&65535)+e*k;w+=r>>>16;w+=c*a;var x=w>>>16;w=(w&65535)+d*k;x+=w>>>16;w=(w&65535)+e*g;x=x+(w>>>16)+(b*a+c*k+d*g+e*f)&65535;return NN((r&65535)<<16|l&65535,x<<16|w&65535)};
h.div=function(a){if(a.isZero())throw Error("bd");if(this.high_<0){if(this.equals(scd)){if(a.equals(tcd)||a.equals(ucd))return scd;if(a.equals(scd))return tcd;var b=this.high_;b=NN(this.low_>>>1|b<<31,b>>1);b=b.div(a).shiftLeft(1);if(b.equals(vcd))return a.high_<0?tcd:ucd;var c=ON(this,a.multiply(b));return b.add(c.div(a))}return a.high_<0?PN(this).div(PN(a)):PN(PN(this).div(a))}if(this.isZero())return vcd;if(a.high_<0)return a.equals(scd)?vcd:PN(this.div(PN(a)));b=vcd;for(c=this;c.compare(a)>=0;){var d=
Math.max(1,Math.floor(MN(c)/MN(a))),e=Math.ceil(Math.log(d)/Math.LN2);e=e<=48?1:Math.pow(2,e-48);for(var f=QN(d),g=f.multiply(a);g.high_<0||g.compare(c)>0;)d-=e,f=QN(d),g=f.multiply(a);f.isZero()&&(f=tcd);b=b.add(f);c=ON(c,g)}return b};h.and=function(a){return NN(this.low_&a.low_,this.high_&a.high_)};h.or=function(a){return NN(this.low_|a.low_,this.high_|a.high_)};h.xor=function(a){return NN(this.low_^a.low_,this.high_^a.high_)};
h.shiftLeft=function(a){a&=63;if(a==0)return this;var b=this.low_;return a<32?NN(b<<a,this.high_<<a|b>>>32-a):NN(0,b<<a-32)};
var QN=function(a){return a>0?a>=0x7fffffffffffffff?wcd:new Ls(a,a/4294967296):a<0?a<=-0x7fffffffffffffff?scd:PN(new Ls(-a,-a/4294967296)):vcd},NN=function(a,b){return new Ls(a,b)},Ns=function(a,b){if(a.charAt(0)=="-")return PN(Ns(a.substring(1),b));var c=parseInt(a,b||10);if(c<=9007199254740991)return new Ls(c%4294967296|0,c/4294967296|0);if(a.length==0)throw Error("cd");if(a.indexOf("-")>=0)throw Error("dd`"+a);b=b||10;if(b<2||36<b)throw Error("ad`"+b);c=QN(Math.pow(b,8));for(var d=vcd,e=0;e<a.length;e+=
8){var f=Math.min(8,a.length-e),g=parseInt(a.substring(e,e+f),b);f<8?(f=QN(Math.pow(b,f)),d=d.multiply(f).add(QN(g))):(d=d.multiply(c),d=d.add(QN(g)))}return d},vcd=NN(0,0),tcd=NN(1,0),ucd=NN(-1,-1),wcd=NN(4294967295,2147483647),scd=NN(0,2147483648);var sn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sn,W);sn.prototype.getOpen=function(){return Fi(this,1,!0)};sn.prototype.setOpen=function(a){return Oi(this,1,a)};var WRa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(WRa,W);var aSa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aSa,W);var URa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(URa,W);var Ln=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ln,W);h=Ln.prototype;h.getType=function(){return wi(this,1,1)};h.setType=function(a){return Gn(this,1,a)};h.hasType=function(){return jm(this,1)};h.getCustomFieldId=function(){return pn(this,2)};h.getCustomFieldId_asString=function(){return tn(this,2)};h.setCustomFieldId=function(a){return vn(this,2,a)};h.hasCustomFieldId=function(){return on(this,2)};var In=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(In,W);In.prototype.getTimeZone=function(){return ui(this,5)};In.prototype.setTimeZone=function(a){return oj(this,5,a)};In.prototype.hasTimeZone=function(){return im(this,5)};var Kn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kn,W);Kn.prototype.getColumnList=function(){return Bi(this,Ln,1,Ci())};Kn.prototype.setColumnList=function(a){return Ni(this,1,a)};Kn.prototype.setColumn=function(a){return Gw(this,1,Ln,a)};var BSa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(BSa,W);var PRa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(PRa,W);var Mn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mn,W);Mn.prototype.getColumn=function(){return X(this,Ln,1)};Mn.prototype.setColumn=function(a){return Mi(this,Ln,1,a)};var Fn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fn,W);Fn.prototype.getColumnList=function(){return Bi(this,Mn,1,Ci())};Fn.prototype.setColumnList=function(a){return Ni(this,1,a)};Fn.prototype.setColumn=function(a){return Gw(this,1,Mn,a)};var mn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mn,W);mn.prototype.getDensity=function(){return wi(this,1,1)};mn.prototype.setDensity=function(a){return Gn(this,1,a)};var XRa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(XRa,W);var ESa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ESa,W);ESa.prototype.setResourceId=function(a){Jn(this,2,a)};var TRa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TRa,W);var An=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(An,W);An.prototype.getSignal=function(){return wi(this,1)};An.prototype.setSignal=function(a){return Gn(this,1,a)};An.prototype.getChecked=function(){return Fi(this,2)};An.prototype.setChecked=function(a){return Oi(this,2,a)};var yn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yn,W);yn.prototype.getSignal=function(){return wi(this,1)};yn.prototype.setSignal=function(a){return Gn(this,1,a)};yn.prototype.getChecked=function(){return Fi(this,2)};yn.prototype.setChecked=function(a){return Oi(this,2,a)};var zn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zn,W);zn.prototype.getSignal=function(){return wi(this,1)};zn.prototype.setSignal=function(a){return Gn(this,1,a)};zn.prototype.getChecked=function(){return Fi(this,2)};zn.prototype.setChecked=function(a){return Oi(this,2,a)};var Bn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bn,W);Bn.prototype.getSignal=function(){return wi(this,1)};Bn.prototype.setSignal=function(a){return Gn(this,1,a)};Bn.prototype.getChecked=function(){return Fi(this,2)};Bn.prototype.setChecked=function(a){return Oi(this,2,a)};var Cn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cn,W);Cn.prototype.getSignal=function(){return wi(this,1)};Cn.prototype.setSignal=function(a){return Gn(this,1,a)};Cn.prototype.getChecked=function(){return Fi(this,2)};Cn.prototype.setChecked=function(a){return Oi(this,2,a)};var xn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xn,W);xn.prototype.getSignal=function(){return wi(this,1)};xn.prototype.setSignal=function(a){return Gn(this,1,a)};xn.prototype.getChecked=function(){return Fi(this,2)};xn.prototype.setChecked=function(a){return Oi(this,2,a)};var rn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rn,W);rn.prototype.getCollapsedMap=function(){return vc(this,2,Vca)};var QSa=function(a,b){cx(a,7,b)},SSa=function(a,b){cx(a,8,b)};rn.prototype.getMyTasksSources=function(){return Vw(this,8)};var TSa=function(a,b){Ni(a,18,b)},VSa=function(a,b){Ni(a,19,b)},XSa=function(a,b){Ni(a,20,b)},ZSa=function(a,b){Ni(a,21,b)},aTa=function(a,b){Ni(a,22,b)},cTa=function(a,b){Ni(a,24,b)};var ORa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ORa,W);var un=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(un,W);un.prototype.getTeamId=function(){return pn(this,1)};un.prototype.getTeamId_asLegacyNumberOrString=function(){return Cp(this,1)};un.prototype.getTeamId_asString=function(){return tn(this,1)};un.prototype.setTeamId=function(a){return vn(this,1,a)};var dSa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dSa,W);var lSa=function(a,b){return tr(a,1,b)},mSa=function(a,b){Mi(a,Si,2,b)},kSa=function(a,b){return Ni(a,3,b)};var qn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qn,W);qn.prototype.getComponentId=function(){return pn(this,1)};qn.prototype.getComponentId_asString=function(){return tn(this,1)};qn.prototype.setComponentId=function(a){return vn(this,1,a)};qn.prototype.hasComponentId=function(){return on(this,1)};var YRa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YRa,W);var PSa=function(a,b){Ni(a,1,b)};var Dn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,500)};Y(Dn,W);h=Dn.prototype;h.getDisplayColumns=function(){return X(this,Kn,4)};h.setDisplayColumns=function(a){Mi(this,Kn,4,a)};h.getSortColumns=function(){return X(this,Fn,6)};h.getLayoutPreferences=function(){return X(this,BSa,10)};h.getDateTimePreferences=function(){return X(this,In,11)};h.getHomepagePreferences=function(){return X(this,ESa,13)};h.getCollapsedMap=function(){return vc(this,27,Vca)};
h.getShowInlineImages=function(){return Fi(this,29)};var xcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xcd,W);xcd.prototype.getValueCase=function(){return wo(this,ycd)};var ycd=[1,2];var zcd=[0,ycd,sEc,xEc];var RN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(RN,W);RN.prototype.getValueCase=function(){return wo(this,SN)};RN.prototype.getStringValue=function(){return yo(this,5,SN)};RN.prototype.setStringValue=function(a){return Bo(this,5,SN,a)};RN.prototype.hasStringValue=function(){return lr(this,5,SN)!=null};var SN=[2,3,4,5,6,8];var Acd=[0,SN,kEc,lEc,pEc,jEc,sEc,vEc,WEc,rEc,vEc,zcd];var Bcd=[0,rEc];var Ccd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ccd,W);Ccd.prototype.getExperimentToken=function(){return Sn(this,3)};var Dcd=[0,Bcd,tEc,Acd,wEc,-1];var Ecd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ecd,W);var Fcd=vi(Ecd);var Gcd=Asa(Ecd,[0,tEc,Dcd]);var oTa=function(a){this.usesDefaultPayload=!1;a?(a=Gcd(a),a=Bi(a,Ccd,1,Ci())[0]):(this.usesDefaultPayload=!0,a=oea("TSDtV",window),a=Fcd("["+a.substring(4)),a=Bi(a,Ccd,1,Ci())[0]);if(a)for(var b=m(Bi(a,RN,2,Ci())),c=b.next();!c.done;c=b.next())if(Qi(c.value,Rq,6,SN))throw Error();if(a){b={};c=m(Bi(a,RN,2,Ci()));for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=pn(e,1).toString();switch(e.getValueCase()){case 3:b[d]=Fi(e,Hi(e,SN,3));break;case 2:b[d]=Ym(pn(e,Hi(e,SN,2)));break;case 4:b[d]=em(e,
Hi(e,SN,4));break;case 5:b[d]=e.getStringValue();break;case 6:b[d]=bm(e,Rq,6,SN);break;case 8:e=Qmb(e,xcd,Hi(e,SN,8));switch(e.getValueCase()){case 1:b[d]=yo(e,1,ycd);break;default:throw Error("ed`"+e.getValueCase());}break;default:throw Error("ed`"+e.getValueCase());}}}else b={};this.flagDict=b;this.token=a?a.getExperimentToken():null};oTa.prototype.getFlag=function(a){return!this.usesDefaultPayload||a.key in this.flagDict?a.ctor(this.flagDict[a.key]):a.defaultValue};
oTa.prototype.getExperimentToken=function(){return this.token};var Pn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Pn,W);h=Pn.prototype;h.getAppName=function(){return ui(this,2)};h.getDocumentationBaseUrl=function(){return ui(this,3)};h.getEnvironmentType=function(){return ui(this,5)};h.setEnvironmentType=function(a){return oj(this,5,a)};h.getOnePickUrl=function(){return ui(this,7)};h.getOnePickSecretToken=function(){return ui(this,12)};h.getCommentNumberLimit=function(){return Bm(this,8)};
h.getCreateComponentRedirectDelay=function(){return em(this,9)};h.getCreateRestrictedSubresourcesComponentIds=function(){return eyc(this,13)};h.getIndefiniteRetentionComponentsAllowlist=function(){return eyc(this,20)};h.getGppLlmChatComponentAllowlist=function(){return eyc(this,30)};h.getInternalBaseUrl=function(){return ui(this,24)};h.getExternalBaseUrl=function(){return ui(this,25)};var Rn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rn,W);h=Rn.prototype;h.getEmail=function(){return ui(this,1)};h.setEmail=function(a){return oj(this,1,a)};h.hasEmail=function(){return im(this,1)};h.getSessionIdentifier=function(){return ui(this,3)};h.getUserTypeLabel=function(){return ui(this,5)};var Tn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Tn.messageId)};Y(Tn,W);Tn.prototype.getId=function(){return ui(this,1,void 0,jb)};Tn.prototype.setId=function(a){return oj(this,1,a,jb)};Tn.messageId="b.TimeZoneData";var Un=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Un.messageId)};Y(Un,W);h=Un.prototype;h.getMessage=function(){return ui(this,1,void 0,jb)};h.setMessage=function(a){return oj(this,1,a,jb)};h.getMessageId=function(){return ui(this,2,void 0,jb)};h.setMessageId=function(a){return oj(this,2,a,jb)};h.hasMessageId=function(){return im(this,2,jb)};h.getTagsList=function(a){return Cm(this,4,Ci(a),jb)};h.getTags=function(a){return Uw(this,4,a,jb)};Un.messageId="b.Announcement";var Qn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qn,W);Qn.prototype.getAnnouncement=function(){return X(this,Un,2)};var mTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mTa,W);h=mTa.prototype;h.getUser=function(){return X(this,Rn,1)};h.setUser=function(a){return Mi(this,Rn,1,a)};h.hasUser=function(){return xi(this,Rn,1)};h.getConfig=function(){return X(this,Pn,2)};h.setConfig=function(a){Mi(this,Pn,2,a)};h.getXsrfToken=function(){return ui(this,3)};h.getCspNonce=function(){return ui(this,8)};h.getFrontendAccessMode=function(){return ui(this,4)};
h.setFrontendAccessMode=function(a){return oj(this,4,a)};h.getMustAcknowledgeTerms=function(){return Fi(this,5)};h.getShowNewFeaturesDialog=function(){return Fi(this,6)};h.getUserPreferences=function(){return X(this,Dn,7)};h.getAppBaseHref=function(){return ui(this,10)};h.getTracker=function(){return X(this,Vn,11)};h.getPassiveLoginIframeUrl=function(){return X(this,pTa,12)};var nTa=window,On;var lTa;var wTa=RegExp("^[^\\.\\s]{2}\\.{3}@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$","i"),vTa=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])?$","i"),Hcd=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])?","i"),Icd=RegExp("^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*(?:@?(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.?)*)?$",
"i"),ATa=["@twosync.google.com","@twosync-src.google.com","@twosync-loas.google.com"];var PTa=new WeakMap;var lUa=Wn().user.email,tUa=new WeakMap,vUa=new WeakMap;var Jcd=new Map;var TN=function(){this.snackBar=p(rB)};TN.prototype.open=function(a){var b=a.message;var c=a.dismissLabel;var d=a.actionLabel;var e=a.duration;a=a.snackbarType;c={dismissLabel:c,actionLabel:d,snackbarType:a};typeof b==="string"?c.message=b:c.htmlMessage=b;switch(a){case "ERROR":b="error";break;default:b=void 0}b={data:c,panelClass:b};e&&(b.duration=e);return this.snackBar.openFromComponent(Kcd,b)};TN.\u0275fac=function(a){return new (a||TN)};TN.\u0275prov=Dc({token:TN,factory:TN.\u0275fac,providedIn:"root"});
var Kcd=function(){this.data=p(nB);this.snackBarRef=p(oB)};Kcd.\u0275fac=function(a){return new (a||Kcd)};
Kcd.\u0275cmp=D({type:Kcd,selectors:[["ng-component"]],standalone:!1,decls:7,vars:3,consts:[[1,"snackbar-content"],[1,"message",3,"innerHtml"],[1,"message"],[1,"actions"],["type","button","mat-button",""],"type button mat-icon-button  aria-label Dismiss".split(" "),["type","button","mat-button","",3,"click"],["type","button","mat-icon-button","","aria-label","Dismiss",3,"click"],["svgIcon","close"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,JUa,1,1,"span",1)(2,KUa,2,1,"span",2),K(3,"div",3),F(4,
LUa,2,1,"button",4),F(5,MUa,2,1,"button",4)(6,NUa,2,0,"button",5),L()());a&2&&(B(),G(b.data.htmlMessage?1:2),B(3),G(b.data.actionLabel?4:-1),B(),G(b.data.dismissLabel?5:6))},dependencies:[Jy,kB,gB,iB],styles:[".snackbar-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;word-break:break-word}button[_ngcontent-%COMP%]:not(.mat-mdc-icon-button){height:24px;line-height:24px;padding:0 10px}.mat-mdc-icon-button[_ngcontent-%COMP%]{line-height:24px}.actions[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;margin-left:5px;align-items:center}/*# sourceMappingURL=snackbar_content.css.map */"]});var UN=function(){this.snackbar=p(TN)};UN.prototype.dismiss=function(){this.lastSnackbar&&this.lastSnackbar.dismiss()};var Rr=function(a,b,c){a.open({message:b,duration:c===void 0?1E4:c})},Lcd=function(a,b,c){a.open({message:b,duration:c===void 0?1E4:c})};UN.prototype.showWarning=function(a,b){this.open({message:a,duration:b===void 0?0:b,snackbarType:"ERROR"})};UN.prototype.open=function(a){return this.lastSnackbar=a=this.snackbar.open(a)};UN.\u0275fac=function(a){return new (a||UN)};
UN.\u0275prov=Dc({token:UN,factory:UN.\u0275fac,providedIn:"root"});var VN=function(a,b){this.key=a;this.defaultValue=b;this.flagNameForDebugging=void 0};VN.prototype.ctor=function(a){return typeof a==="boolean"?a:this.defaultValue};var dVa={enableBulkEditCaptchaUi:new VN("45735884",!1),enableCustomFieldTypeProductUI:new VN("45735720",!1),enableCustomFieldTypeTeamUI:new VN("45735719",!1),enableCustomFieldTypeUserUI:new VN("45735721",!1),enableDuckieLlmChat:new VN("45736883",!1),enableIrmIntegrationMenu:new VN("45735414",!1),enableNonWtdmFieldPerTypeVisibility:new VN("45735818",!1),enableSidebarIlpIcon:new VN("45735074",!1),enableSloLockingUi:new VN("45735860",!1),enableTrackersAccountHack:new VN("45735864",!1),enableTriageRecommendationComments:new VN("45735207",
!1),readUnreadOptOut:new VN("45736751",!1),runQueryForSidebarIssueCount:new VN("45735865",!0),testClientSideFlag:new VN("45732428",!0),testFlagForClientMigration:new VN("45733424",!1)},Mcd=[].concat(q("canSeeAnnouncementBanner enableAddViewCountColumnsOnIlp enableCLsInHumanFilterView enableChromeWizard enableCodeMentionsUi enableCommentHistoryUi enableComponentAutomationCheck enableEscalationOwnerRolloutUi enableEstado enableEstimatedEffortExternalUi enableExpandedScopeIssuePicker enableGerritChanges enableGppLlmChat enableHelpMeFixSidebar enableInactiveUserContent enableInlineImageAttachments enableInteractiveMarkdownCheckboxes enableIrmTasks enableIssueExperimentalFields enableMarkdownInlineImages enableNeedsInfoUi enableNexusLinking enablePlaybook enablePushUpdatesClient enableRefreshSsoPopup enableRollupStatsUi enableRostersChecks enableSignInAnonymousAccessDenied enableSloDelegatesUi enableSloEndTime enableSloReportEmail enableStaffingFieldEnhancementsUi enableStaleTasks enableSuggestTitle enableSummaryBasedSimilarIssuesUI enableTailwind enableTailwindMissionControl enableTeamAdmin enableTeamScope enableTemplateInheritance enableTriageAutomationBe enableViewDismissedTasks enableWaldoAvailability enableWhatsNewDialog majorReleaseNotesUpdated reportErrors weAreHiring TEST_ONLY_flag1 TEST_ONLY_flag2 TEST_ONLY_flag3 TEST_ONLY_flag4".split(" ")),
q(Object.keys(dVa)));var OUa=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};var Ncd={clear:function(){},getItem:function(){return null},removeItem:function(){},setItem:function(){},length:0,key:function(){return null}},ro=Ncd;try{ro=window.localStorage||Ncd}catch(a){}
var Ocd=function(a){return function(){var b=ro.getItem(a);if(b!=null)return b=Number(b),isNaN(b)?void 0:b}},XUa=function(a){return function(){var b=ro.getItem(a);if(b!=null)return String(b)}},Pcd=function(a){return function(b){b==null?ro.removeItem(a):ro.setItem(a,String(b))}},Qcd=function(a){return function(b){b==null?ro.removeItem(a):ro.setItem(a,b)}},Rcd=function(a){return function(){var b=so(a)();TUa(a)(!b);return!b}},to=function(a){return function(){var b=ro.getItem(a);if(b!=null)try{return JSON.parse(b)}catch(c){console.warn("JSON.parse("+
a+")"),console.warn(c)}}},uo=function(a){return function(b){b==null?ro.removeItem(a):ro.setItem(a,JSON.stringify(b))}};var cVa=SUa(function(){var a,b=((a=ZUa())==null?void 0:a.overrides)||[];return new Map(b.map(function(c){return[c.flagName,c.value]}))});var uu=function(){this.session=Wn()};h=uu.prototype;h.getAppBaseHref=function(){return this.session.appBaseHref};h.userRequiresCaptcha=function(){return this.session.userRequiresCaptcha};h.getFrontendAccessMode=function(){return qTa(this.session)};h.isExternalSession=function(){return this.getFrontendAccessMode()!=="INTERNAL"};h.isInternalSession=function(){return this.getFrontendAccessMode()==="INTERNAL"};
var WN=function(a){return a.getFrontendAccessMode()==="PARTNER"},XN=function(a){return a.getFrontendAccessMode()==="PUBLIC"};uu.prototype.isNonPublicSession=function(){return this.getFrontendAccessMode()!=="PUBLIC"};var Scd=function(a){var b=a.getUserEmail().split("@")[1];return b?a.session.config.trustedEmailDomainsAllowlist.includes("@"+b):!1};uu.prototype.getFlag=function(a){return eVa(a,this.session.config)};var Tcd=function(a){return Mcd.filter(function(b){return a.getFlag(b)})};
uu.prototype.isAnonymous=function(){return this.session.user.anonymous};uu.prototype.getUserEmail=function(){return this.session.user.email||""};uu.prototype.getSessionIdentifier=function(){return this.session.user.sessionIdentifier||"0"};uu.prototype.getTracker=function(){var a;return(a=this.session.tracker)!=null?a:void 0};var rs=function(a){return!!a.session.tracker};uu.prototype.getPassiveLoginIframeUrl=function(){return this.session.passiveLoginIframeUrl};
uu.prototype.getMustAcknowledgeTerms=function(){return this.session.mustAcknowledgeTerms};uu.prototype.getShowNewFeaturesDialog=function(){return this.session.showNewFeaturesDialog};uu.prototype.getEnvironmentType=function(){return this.session.config.environmentType||"QA"};var xs=function(a){a:{a=a.session.config.environmentType||"QA";switch(a){case "NIGHTLY":case "PROD":a=!0;break a;case "QA":case "DEV":a=!1;break a;default:wb(a,"Unknown environment type.")}a=void 0}return a};h=uu.prototype;
h.getAppBaseUrl=function(a){return(a===void 0?0:a)||!this.isInternalSession()?xs(this)?"https://issuetracker.google.com/":"https://issuetracker-qa.corp.google.com/":xs(this)?"http://b/":"http://b-qa/"};h.getOnePickUrl=function(){return this.session.config.onePickUrl};h.getAppName=function(){return this.session.config.appName};h.getCommentNumberLimit=function(){return this.session.config.commentNumberLimit};h.getCreateComponentRedirectDelay=function(){return this.session.config.createComponentRedirectDelay};
h.getDocumentationBaseUrl=function(){return this.session.config.documentationBaseUrl};h.getInternalBaseUrl=function(){return this.session.config.internalBaseUrl};h.getExternalBaseUrl=function(){return this.session.config.externalBaseUrl};h.getUserPreferences=function(){return this.session.userPreferences};h.getXsrfToken=function(){return this.session.xsrfToken};h.getOnePickSecretToken=function(){return this.session.config.onePickSecretToken};h.getCreateRestrictedSubresourcesComponentIds=function(){return this.session.config.createRestrictedSubresourcesComponentIds};
h.getIndefiniteRetentionComponentsAllowlist=function(){return this.session.config.indefiniteRetentionComponentsAllowlist};h.getCspNonce=function(){return this.session.cspNonce};h.getAnnouncement=function(){return this.session.preload.announcement};h.getUserTypeLabel=function(){return this.session.user.userTypeLabel||"UNKNOWN"};h.getGppLlmChatComponentAllowlist=function(){return new Set(this.session.config.gppLlmChatComponentAllowlist)};uu.\u0275fac=function(a){return new (a||uu)};
uu.\u0275prov=Dc({token:uu,factory:uu.\u0275fac,providedIn:"root"});var ZN=function(){this.activeSession=p(uu);this.clientFactory=p(YN);this.client=this.clientFactory.create(this.getServiceEndpoint())};ZN.prototype.generateAnswers=function(a){var b=this;return this.activeSession.isExternalSession()?rx:ne(function(){return b.client.generateAnswers((new wB).setDuckieClient(9).setText(a).setConversationHistory((new MA).setPrivacyMode(2)).setConversationAgent((new GA).setAgentId("a2a:buganizer_agent")))}).pipe(A(gVa()))};
ZN.prototype.getServiceEndpoint=function(){switch(this.activeSession.getEnvironmentType()){case "NIGHTLY":return"https://staging-ml4answers-googleapis.corp.google.com";case "PROD":return"https://ml4answers-googleapis.corp.google.com";default:return"https://autopush-ml4answers-googleapis.corp.google.com"}};ZN.\u0275fac=function(a){return new (a||ZN)};ZN.\u0275prov=Dc({token:ZN,factory:ZN.\u0275fac,providedIn:"root"});var YN=function(){};
YN.prototype.create=function(a){return new iIc(a,{withCredentials:!0,suppressCorsPreflight:!0})};YN.\u0275fac=function(a){return new (a||YN)};YN.\u0275prov=Dc({token:YN,factory:YN.\u0275fac,providedIn:"root"});var jVa=new Set([].concat(q(Object.values({ACCESS_LIMIT:"access_limit",ASSIGNEE:"assignee",BLOCKED_BY_ISSUE_IDS:"blocked_by_issue_ids",BLOCKING_ISSUE_IDS:"blocking_issue_ids",CANONICAL_ISSUE_ID:"canonical_issue_id",CCS:"ccs",COLLABORATORS:"collaborators",CHILD_ISSUE_IDS:"child_issue_ids",CODE_CHANGES:"code_changes",GERRIT_CHANGES:"gerrit_changes",COMPONENT_ID:"component_id",CUSTOM_FIELDS:"custom_fields",DELETION_REASON:"deletion_reason",DUPLICATE_ISSUE_IDS:"duplicate_issue_ids",EFFORT:"effort",ENTITY_STATUS:"entity_status",
FOUND_IN_VERSIONS:"found_in_versions",HOTLIST_IDS:"hotlist_ids",INCIDENTS:"incidents",IN_PROD:"in_prod",IS_ARCHIVED:"is_archived",IS_DELETED:"is_deleted",PARENT_ISSUE_IDS:"parent_issue_ids",STAFFING:"staffing",STAFFING_PLANNED_ALLOCATIONS:"staffing.planned_allocations",POSTMORTEMS:"postmortems",PRIORITY:"priority",RETENTION:"retention",REPORTER:"reporter",SEVERITY:"severity",SLO_SNOOZE_UNTIL:"slo_snooze_until",SLO_END_TIME:"slo_end_time",SLO_SNOOZE_TYPE:"slo_snooze_type",STATUS:"status",TARGETED_TO_VERSIONS:"targeted_to_versions",
TITLE:"title",TYPE:"type",VERIFIER:"verifier",VERIFIED_IN_VERSIONS:"verified_in_versions"}))));var $N={},nVa=($N[1]="issue_id",$N[3]="type",$N[4]="status",$N[5]="priority",$N[6]="severity",$N[18]="title",$N[15]="modified_time",$N[14]="created_time",$N[17]="verified_time",$N[16]="resolved_time",$N[38]="deletion_time",$N[13]="blocked_by_issue_ids",$N[12]="blocking_issue_ids",$N[26]="vote_count",$N[28]="cc_count",$N[44]="collaborators_count",$N[2]="component_path",$N[27]="duplicate_count",$N[10]="ccs",$N[43]="collaborators",$N[11]="code_changes",$N[58]="incidents",$N[32]="postmortems",$N[8]="assignee",
$N[9]="verifier",$N[7]="reporter",$N[19]="found_in_versions",$N[20]="targeted_to_versions",$N[21]="verified_in_versions",$N[22]="in_prod",$N[30]="last_modifier",$N[25]="position",$N[24]="custom_field",$N[29]="modified_by",$N[31]="archived",$N[23]="canonical_issue_id",$N[33]="min_slo",$N[35]="assignment_slo",$N[36]="response_slo",$N[37]="closure_slo",$N[39]="team",$N[40]="estimate",$N[41]="estimate_total_open",$N[42]="estimate_total_complete",$N[45]="access_level",$N[46]="descendant_count",$N[47]=
"open_descendant_count",$N[48]="one_day_view_count",$N[49]="seven_day_view_count",$N[50]="thirty_day_view_count",$N[51]="escalation_owner",$N[52]="relative_modified_time",$N[53]="alerts",$N[54]="timeframe",$N[55]="progress",$N[56]="triager",$N[57]="enrichment_categories",$N),aO={},pVa=(aO.issue_id=1,aO.type=3,aO.status=4,aO.priority=5,aO.severity=6,aO.title=18,aO.modified_time=15,aO.created_time=14,aO.verified_time=17,aO.resolved_time=16,aO.deletion_time=38,aO.blocked_by_issue_ids=13,aO.blocking_issue_ids=
12,aO.vote_count=26,aO.cc_count=28,aO.collaborators_count=44,aO.component_path=2,aO.duplicate_count=27,aO.ccs=10,aO.collaborators=43,aO.code_changes=11,aO.postmortems=32,aO.assignee=8,aO.verifier=9,aO.reporter=7,aO.found_in_versions=19,aO.targeted_to_versions=20,aO.verified_in_versions=21,aO.in_prod=22,aO.last_modifier=30,aO.position=25,aO.custom_field=24,aO.modified_by=29,aO.archived=31,aO.canonical_issue_id=23,aO.min_slo=33,aO.assignment_slo=35,aO.response_slo=36,aO.closure_slo=37,aO.team=39,aO.estimate=
40,aO.estimate_total_open=41,aO.estimate_total_complete=42,aO.access_level=45,aO.descendant_count=46,aO.open_descendant_count=47,aO.one_day_view_count=48,aO.seven_day_view_count=49,aO.thirty_day_view_count=50,aO.escalation_owner=51,aO.relative_modified_time=52,aO.alerts=53,aO.timeframe=54,aO.progress=55,aO.triager=56,aO.enrichment_categories=57,aO);var Fp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fp,W);Fp.prototype.getDisplayColumns=function(){return Uw(this,1)};Fp.prototype.setDisplayColumns=function(a){bx(this,1,a)};var Q_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Q_a,W);h=Q_a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getIssueAccessLimit=function(){return X(this,Do,2)};h.setIssueAccessLimit=function(a){Mi(this,Do,2,a)};h.setAddedCollaboratorsList=function(a){Ni(this,3,a)};h.setRemovedCollaboratorsList=function(a){Ni(this,4,a)};var Ao=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ao,W);h=Ao.prototype;h.getUser=function(){return bm(this,Em,1,xo)};h.setUser=function(a){return Wo(this,1,xo,a)};h.hasUser=function(){return Qi(this,Em,1,xo)};h.getGroup=function(){return bm(this,Em,2,xo)};h.setGroup=function(a){Wo(this,2,xo,a)};var xo=[1,2,3];var Ucd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ucd,W);h=Ucd.prototype;h.getAppendersList=function(){return Bi(this,Ao,6,Ci())};h.setAppendersList=function(a){return Ni(this,6,a)};h.getReadersList=function(){return Bi(this,Ao,8,Ci())};h.setReadersList=function(a){return Ni(this,8,a)};h.setImplicitAccess=function(a){return Hm(this,10,a)};var Vcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vcd,W);h=Vcd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getIssueAccessLimit=function(){return X(this,Do,2)};h.setIssueAccessLimit=function(a){Mi(this,Do,2,a)};h.setAddedCollaboratorsList=function(a){Ni(this,3,a)};h.setRemovedCollaboratorsList=function(a){Ni(this,4,a)};var Ho=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ho,W);Ho.prototype.getResourcePath=function(){return ui(this,2)};Ho.prototype.setResourcePath=function(a){return Fm(this,2,a)};Ho.prototype.getRestrictionSeverity=function(){return wi(this,3)};var q0a=function(a){return Hm(a,5,2)};var Lo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lo,W);var $o=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($o,W);$o.prototype.getLabel=function(){return ui(this,1)};$o.prototype.setLabel=function(a){return Fm(this,1,a)};$o.prototype.getValue=function(){return em(this,2)};$o.prototype.setValue=function(a){return qp(this,2,a)};var uWa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uWa,W);var tWa=function(a,b){return Ni(a,1,b)};uWa.prototype.setOptions=function(a,b){return Gw(this,1,$o,a,b)};var rWa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rWa,W);var qWa=function(a,b){return qp(a,1,b)};var Zo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zo,W);h=Zo.prototype;h.getInherit=function(){return Fi(this,1)};h.setInherit=function(a){return Yo(this,1,a)};h.getId=function(){return pn(this,2)};h.getId_asLegacyNumberOrString=function(){return Cp(this,2)};h.getId_asString=function(){return tn(this,2)};h.setId=function(a){return Io(this,2,a)};h.getName=function(){return ui(this,3)};h.setName=function(a){return Fm(this,3,a)};
var pWa=function(a,b){Wo(a,4,kq,b)},sWa=function(a,b){Wo(a,5,kq,b)};Zo.prototype.getCustomFieldId=function(){return pn(this,100)};Zo.prototype.getCustomFieldId_asString=function(){return tn(this,100)};Zo.prototype.setCustomFieldId=function(a){return Io(this,100,a)};var kq=[4,5];var np=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(np,W);h=np.prototype;h.getInherit=function(){return Fi(this,1)};h.setInherit=function(a){return Yo(this,1,a)};h.getSource=function(){return wi(this,2)};h.setSource=function(a){return Hm(this,2,a)};h.getId=function(){return pn(this,3)};h.getId_asLegacyNumberOrString=function(){return Cp(this,3)};h.getId_asString=function(){return tn(this,3)};h.setId=function(a){return Io(this,3,a)};
h.getSourceTeamId_asString=function(){return tn(this,5)};h.setSourceTeamId=function(a){Io(this,5,a)};h.getComment=function(){return ui(this,4)};h.setComment=function(a){return Fm(this,4,a)};h.getEscalationOwner=function(){return X(this,Em,7)};h.setEscalationOwner=function(a){Mi(this,Em,7,a)};h.setInheritEscalationOwner=function(a){Yo(this,8,a)};var op=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(op,W);h=op.prototype;h.getMetric=function(){return wi(this,1)};h.getDayType=function(){return wi(this,4)};h.setDayType=function(a){return Hm(this,4,a)};h.getObjective=function(){return X(this,dn,3)};h.setObjective=function(a){return Mi(this,dn,3,a)};h.getBusinessDays=function(){return Bm(this,5)};h.setBusinessDays=function(a){return an(this,5,a)};var vr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vr,W);h=vr.prototype;h.getSloId_asLegacyNumberOrString=function(){return Cp(this,1)};h.getSloId_asString=function(){return tn(this,1)};h.setSloId=function(a){return Io(this,1,a)};h.getParentId=function(){return pn(this,2)};h.setParentId=function(a){return Io(this,2,a)};h.getName=function(){return ui(this,3)};h.setName=function(a){return Fm(this,3,a)};h.getDescription=function(){return ui(this,4)};
h.setDescription=function(a){return Fm(this,4,a)};h.addRules=function(a,b){return Np(this,5,op,a,b)};h.removeRules=function(a){return Kw(this,5,op,a)};h.getIsArchived=function(){return Fi(this,7)};h.setIsArchived=function(a){return Yo(this,7,a)};var p0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(p0a,W);p0a.prototype.getTemplateId=function(){return pn(this,2)};p0a.prototype.setTemplateId=function(a){return Io(this,2,a)};var o0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(o0a,W);h=o0a.prototype;h.getIssue=function(){return X(this,Hp,1)};h.setIssue=function(a){return Mi(this,Hp,1,a)};h.setSignificanceOverride=function(a){return Hm(this,4,a)};h.getContentJudgement=function(){return X(this,Ho,5)};h.setContentJudgement=function(a){return Mi(this,Ho,5,a)};var Ep=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ep,W);h=Ep.prototype;h.getHotlistId=function(){return pn(this,1)};h.setHotlistId=function(a){return Io(this,1,a)};h.getName=function(){return ui(this,2)};h.setName=function(a){return Fm(this,2,a)};h.getDescription=function(){return ui(this,3)};h.setDescription=function(a){return Fm(this,3,a)};h.getArchived=function(){return Fi(this,4)};h.setArchived=function(a){return Yo(this,4,a)};
h.getDefaultOrderBy=function(){return ui(this,5)};h.setDefaultOrderBy=function(a){return Fm(this,5,a)};h.getDisplayPreferences=function(){return X(this,Fp,6)};h.setDisplayPreferences=function(a){return Mi(this,Fp,6,a)};h.getCreatedTime=function(){return X(this,Si,7)};h.setCreatedTime=function(a){return Mi(this,Si,7,a)};h.getModifiedTime=function(){return X(this,Si,8)};h.setModifiedTime=function(a){return Mi(this,Si,8,a)};h.getOwnersList=function(){return Bi(this,Em,9,Ci())};
h.setOwnersList=function(a){return Ni(this,9,a)};h.getEtag=function(){return Sn(this,10)};h.setEtag=function(a){return No(this,10,a)};var TXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TXa,W);h=TXa.prototype;h.getAddMask=function(){return X(this,Cq,1)};h.getMutableAddMask=function(){return Ii(this,Cq,1)};h.setAddMask=function(a){return Mi(this,Cq,1,a)};h.getAdd=function(){return X(this,zp,2)};h.setAdd=function(a){return Mi(this,zp,2,a)};h.getComment=function(){return X(this,Kp,3)};h.setComment=function(a){return Mi(this,Kp,3,a)};h.getRemoveMask=function(){return X(this,Cq,5)};
h.getMutableRemoveMask=function(){return Ii(this,Cq,5)};h.setRemoveMask=function(a){return Mi(this,Cq,5,a)};h.getRemove=function(){return X(this,zp,6)};h.setRemove=function(a){return Mi(this,zp,6,a)};var QXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(QXa,W);h=QXa.prototype;h.getText=function(){return ui(this,1)};h.setText=function(a){return Fm(this,1,a)};h.getFormattingMode=function(){return wi(this,2)};h.setFormattingMode=function(a){return Hm(this,2,a)};h.getCreateTime=function(){return X(this,Si,4)};h.setCreateTime=function(a){return Mi(this,Si,4,a)};var Wcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wcd,W);Wcd.prototype.getIssue=function(){return X(this,Hp,1)};Wcd.prototype.setIssue=function(a){return Mi(this,Hp,1,a)};Wcd.prototype.getRecommendation=function(){return ui(this,2)};Wcd.prototype.setRecommendation=function(a){return Fm(this,2,a)};var KXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(KXa,W);KXa.prototype.getName=function(){return ui(this,1)};KXa.prototype.setName=function(a){return Fm(this,1,a)};KXa.prototype.getEntriesList=function(){return Bi(this,Wcd,3,Ci())};var Jp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jp,W);h=Jp.prototype;h.getContentCase=function(){return wo(this,Ip)};h.getName=function(){return ui(this,1)};h.setName=function(a){return Fm(this,1,a)};h.getSource=function(){return ui(this,2)};h.setSource=function(a){return Fm(this,2,a)};h.getResource=function(){return ui(this,3)};h.setResource=function(a){return Fm(this,3,a)};h.getType=function(){return wi(this,4)};h.setType=function(a){return Hm(this,4,a)};
h.getRecommendation=function(){return ui(this,5)};h.setRecommendation=function(a){return Fm(this,5,a)};h.getScore=function(){return em(this,6)};h.setScore=function(a){return qp(this,6,a)};h.getConfidence=function(){return wi(this,7)};h.setConfidence=function(a){return Hm(this,7,a)};h.getCreateTime=function(){return X(this,Si,8)};h.setCreateTime=function(a){return Mi(this,Si,8,a)};h.getIssueModification=function(){return bm(this,TXa,12,Ip)};h.setIssueModification=function(a){Wo(this,12,Ip,a)};
h.getRationale=function(){return X(this,QXa,13)};h.setRationale=function(a){Mi(this,QXa,13,a)};var Ip=[9,10,11,12];var Op=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Op,W);Op.prototype.getType=function(){return wi(this,2)};Op.prototype.setType=function(a){return Hm(this,2,a)};Op.prototype.getIssueModification=function(){return bm(this,TXa,4,Xcd)};Op.prototype.setIssueModification=function(a){Wo(this,4,Xcd,a)};var Xcd=[4];var Ycd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ycd,W);h=Ycd.prototype;h.getResources=function(a){return Uw(this,1,a)};h.getTypesList=function(){return wn(this,2,Ci())};h.setTypesList=function(a){return cx(this,2,a)};h.setMinConfidence=function(a){Hm(this,3,a)};h.setView=function(a){return Hm(this,4,a)};var aYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aYa,W);h=aYa.prototype;h.getParent=function(){return ui(this,1)};h.setParent=function(a){return Fm(this,1,a)};h.getType=function(){return wi(this,2)};h.setType=function(a){return Hm(this,2,a)};h.getResource=function(){return ui(this,3)};h.setResource=function(a){return Fm(this,3,a)};h.getRecommendationsList=function(){return Bi(this,Jp,4,Ci())};h.setRecommendationsList=function(a){return Ni(this,4,a)};var Zcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zcd,W);h=Zcd.prototype;h.getParent=function(){return ui(this,1)};h.setParent=function(a){return Fm(this,1,a)};h.getType=function(){return wi(this,2)};h.setType=function(a){return Hm(this,2,a)};h.setRequestsList=function(a){return Ni(this,3,a)};h.addAndReturnRequests=function(){return Ac(this,3,aYa)};var UXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(UXa,W);UXa.prototype.getParent=function(){return ui(this,1)};UXa.prototype.setParent=function(a){return Fm(this,1,a)};var $cd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($cd,W);h=$cd.prototype;h.getResource=function(){return ui(this,1)};h.setResource=function(a){return Fm(this,1,a)};h.getType=function(){return wi(this,2)};h.setType=function(a){return Hm(this,2,a)};h.setMinConfidence=function(a){Hm(this,3,a)};h.setPageSize=function(a){return an(this,4,a)};h.setPageToken=function(a){return Fm(this,5,a)};h.setView=function(a){return Hm(this,6,a)};var bO=function(){},cO=function(){};var dO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,dO.messageId)};Y(dO,W);dO.prototype.getParent=function(){return ui(this,1,void 0,jb)};dO.prototype.setParent=function(a){return Fm(this,1,a,jb)};dO.prototype.setRequestsList=function(a){return Ni(this,2,a,jb)};dO.prototype.addAndReturnRequests=function(){return Ac(this,2,UXa,jb)};dO.messageId="b.BatchCreateUserEngagementsRequest";var add=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,add.messageId)};Y(add,W);add.prototype.getRecommendationsList=function(){return Bi(this,Jp,1,Ci(),jb)};add.prototype.setRecommendationsList=function(a){return Ni(this,1,a,jb)};add.messageId="b.BatchLookupTopTopRecommendationsResponse";var bdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,bdd.messageId)};Y(bdd,W);bdd.prototype.getRecommendationsList=function(){return Bi(this,Jp,1,Ci(),jb)};bdd.prototype.setRecommendationsList=function(a){return Ni(this,1,a,jb)};bdd.messageId="b.BatchReplaceRecommendationsResponse";var eO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,eO.messageId)};Y(eO,W);eO.prototype.getRecommendationsList=function(){return Bi(this,Jp,1,Ci(),jb)};eO.prototype.setRecommendationsList=function(a){return Ni(this,1,a,jb)};eO.prototype.getNextPageToken=function(){return ui(this,2,void 0,jb)};eO.prototype.getTotalSize=function(){return pn(this,3,void 0,jb)};eO.messageId="b.LookupRecommendationsResponse";var fO=function(){this.executor=p(bO)};fO.prototype.lookupRecommendations=function(a){var b=(new $cd).setResource(a.resource).setType(IXa[a.type]).setPageSize(a.pageSize).setPageToken(a.pageToken).setView(acd[a.view]);a.minConfidence!==void 0&&b.setMinConfidence(PXa[a.minConfidence]);return this.executor.post({url:"action/recommendations/lookup",body:b,responseConstructor:eO}).pipe(A(YXa))};
fO.prototype.batchLookupTopRecommendations=function(a){var b=new Ycd;b=Gm(b,1,a.resources).setTypesList(a.types.map(JXa));a.minConfidence!==void 0&&b.setMinConfidence(PXa[a.minConfidence]);a.view!==void 0&&b.setView(acd[a.view]);return this.executor.post({url:"action/recommendations/batch",body:b,responseConstructor:add}).pipe(A(ZXa))};
fO.prototype.createUserEngagements=function(a){a=(new dO).setRequestsList(a.map(XXa));return this.executor.post({url:"action/recommendations/engagements/batch",body:a,responseConstructor:null})};fO.prototype.batchReplaceRecommendations=function(a){var b=(new Zcd).setRequestsList(a.requests.map(bYa));a.parent&&b.setParent(a.parent);a.type&&b.setType(IXa[a.type]);return this.executor.post({url:"action/recommendations/batchReplace",body:b,responseConstructor:bdd}).pipe(A($Xa))};
fO.\u0275fac=function(a){return new (a||fO)};fO.\u0275prov=Dc({token:fO,factory:fO.\u0275fac,providedIn:"root"});var mO=function(){this.observableApi=p(fO)};mO.prototype.lookupRecommendations=function(a){return fe(this.observableApi.lookupRecommendations(a))};mO.prototype.batchLookupTopRecommendations=function(a){return fe(this.observableApi.batchLookupTopRecommendations(a))};mO.prototype.createUserEngagements=function(a){return fe(this.observableApi.createUserEngagements(a))};
mO.prototype.batchReplaceRecommendations=function(a){return fe(this.observableApi.batchReplaceRecommendations(a))};mO.\u0275fac=function(a){return new (a||mO)};mO.\u0275prov=Dc({token:mO,factory:mO.\u0275fac,providedIn:"root"});var cq=function(a){return"issues/"+a},rt=function(a){var b;return(b=a.match(/issues\/(\d+)/))==null?void 0:b[1]},zwb=function(a){var b;return(b=a.match(/hotlists\/(\d+)/))==null?void 0:b[1]};var cdd=function(a){var b=Error.call(this,a);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.data={message:a};Object.setPrototypeOf(this,this.constructor.prototype)};Y(cdd,Error);var nO=function(){};h=nO.prototype;h.debug=function(){Vm.apply(null,q($c.apply(0,arguments)))};h.error=function(){DRa.apply(null,q($c.apply(0,arguments)))};h.info=function(){Wm.apply(null,q($c.apply(0,arguments)))};h.log=function(){CRa.apply(null,q($c.apply(0,arguments)))};h.warn=function(){Xm.apply(null,q($c.apply(0,arguments)))};nO.\u0275fac=function(a){return new (a||nO)};nO.\u0275prov=Dc({token:nO,factory:nO.\u0275fac,providedIn:"root"});var ddd=Symbol("Ad"),edd=Symbol("Bd"),fdd=Symbol("Cd"),oO=function(){};oO.prototype.schedule=function(a,b){b=b===void 0?0:b;var c=qo(),d=c.promise;b=setTimeout(function(){try{var e=a()}catch(f){c.reject(f);d[fdd]=!0;return}c.resolve(e);d[fdd]=!0},b);d[ddd]=b;d[edd]=c.reject;d[fdd]=!1;return c.promise};oO.prototype.cancel=function(a){var b=a[ddd];if(b==null||a[fdd])return!1;clearTimeout(b);var c;(c=a[edd])==null||c.call(a,Error("Dd"));return a[fdd]=!0};oO.\u0275fac=function(a){return new (a||oO)};
oO.\u0275prov=Dc({token:oO,factory:oO.\u0275fac,providedIn:"root"});var pO=function(){this.butterBar=p(UN);this.activeSession=p(uu);this.$log=p(nO);this.timeout=p(oO)};
pO.prototype.errorHandler=function(a,b){var c=this;this.timeout.schedule(function(){var d=b.status===403?"Access denied for: "+c.activeSession.getUserEmail():b.status===429?"Request throttled for: "+c.activeSession.getUserEmail()+". Please wait a few seconds and try again.":Qp(b)?Qp(b):b.status===404?"Invalid ID.":b.status===401?"No authorization found. Please refresh the page.":"Unknown HTTP error "+b.status+". Please copy your data and refresh the page.";c.$log.error(d,b);c.butterBar.showWarning(d)})};
var qO=function(a,b){a.$log.warn(b);a.butterBar.showWarning(b)},rO=function(a,b){if(Pp(b))a.errorHandler(null,b);else throw b;};pO.\u0275fac=function(a){return new (a||pO)};pO.\u0275prov=Dc({token:pO,factory:pO.\u0275fac,providedIn:"root"});var gdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gdd,W);h=gdd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.setPageSize=function(a){return an(this,2,a)};h.setPageToken=function(a){return Fm(this,3,a)};var hdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,hdd.messageId)};Y(hdd,W);hdd.prototype.getIt=function(){return X(this,gdd,4,jb)};hdd.prototype.setIt=function(a){return Mi(this,gdd,4,a,jb)};hdd.messageId="b.AggregateIssueDescendantsRequest";var idd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(idd,W);h=idd.prototype;h.getPriority=function(){return wi(this,1)};h.setPriority=function(a){return Hm(this,1,a)};h.getIssueIdsList=function(){return Qw(this,2,1)};h.getIssueIdsList_asString=function(){return Qm(this,2)};h.setIssueIdsList=function(a){return tr(this,2,a)};h.addIssueIds=function(a){return $w(this,2,a)};h.setIssueIds=function(a){zc(this,2,Hb,void 0,a,Nb,void 0,1)};var jdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jdd,W);h=jdd.prototype;h.getStatus=function(){return wi(this,1)};h.setStatus=function(a){return Hm(this,1,a)};h.getIssueIdsList=function(){return Qw(this,2,1)};h.getIssueIdsList_asString=function(){return Qm(this,2)};h.setIssueIdsList=function(a){return tr(this,2,a)};h.addIssueIds=function(a){return $w(this,2,a)};h.setIssueIds=function(a){zc(this,2,Hb,void 0,a,Nb,void 0,1)};var kdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kdd,W);h=kdd.prototype;h.getIssueIdsList=function(){return Qw(this,3,1)};h.getIssueIdsList_asString=function(){return Qm(this,3)};h.setIssueIdsList=function(a){return tr(this,3,a)};h.addIssueIds=function(a){return $w(this,3,a)};h.setIssueIds=function(a){zc(this,3,Hb,void 0,a,Nb,void 0,1)};h.getCollaboratorsList=function(){return Bi(this,Em,8,Ci())};h.setCollaboratorsList=function(a){Ni(this,8,a)};
h.addAllCollaborators=function(a){Mp(this,8,Em,a)};h.setCollaborators=function(a,b){return Gw(this,8,Em,a,b)};h.getCodeChangesList=function(a){return Cm(this,9,Ci(a))};h.setCodeChangesList=function(a){Gm(this,9,a)};h.addAllCodeChanges=function(a){wq(this,9,a)};h.setCodeChanges=function(a,b){return bx(this,9,a,b)};h.getGerritChangesList=function(){return Bi(this,Bp,13,Ci())};h.setGerritChangesList=function(a){Ni(this,13,a)};h.addAllGerritChanges=function(a){Mp(this,13,Bp,a)};
h.getBlockedByIssueIdsList=function(){return Qw(this,10,1)};h.getBlockedByIssueIdsList_asString=function(){return Qm(this,10)};h.setBlockedByIssueIdsList=function(a){tr(this,10,a)};h.addAllBlockedByIssueIds=function(a){ax(this,10,a)};h.getBlockingIssueIdsList=function(){return Qw(this,11,1)};h.getBlockingIssueIdsList_asString=function(){return Qm(this,11)};h.setBlockingIssueIdsList=function(a){tr(this,11,a)};h.addAllBlockingIssueIds=function(a){ax(this,11,a)};var ldd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ldd,W);ldd.prototype.getNextPageToken=function(){return ui(this,4)};var mdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,mdd.messageId)};Y(mdd,W);mdd.prototype.getIt=function(){return X(this,ldd,3,jb)};mdd.prototype.setIt=function(a){return Mi(this,ldd,3,a,jb)};mdd.messageId="b.AggregateIssueDescendantsResponse";var sO=function(){this.executor=p(bO)};
sO.prototype.get=function(a){var b=(new hdd).setIt((new gdd).setIssueId(a));return this.executor.post({url:"action/issues/aggregateIssueDescendants",body:b,responseConstructor:mdd}).pipe(A(function(c){var d=c.getIt();d=Bm(d,2);var e=c.getIt();e=Bm(e,3);c=c.getIt();var f=X(c,kdd,1);if(f){var g,k,l,r,w,x,C,H,J,O;c={_rootId:a,issueIds:f.getIssueIdsList().map(Ym).map(Mm).filter(Pm),aggregatedStatus:(w=Bi(f,jdd,4,Ci()).map(dYa).filter(Pm))!=null?w:[],aggregatedPriority:(x=Bi(f,idd,12,Ci()).map(eYa).filter(Pm))!=
null?x:[],reporters:(C=(g=Bi(f,Em,5,Ci()))==null?void 0:g.map(Km))!=null?C:[],assignees:(H=(k=Bi(f,Em,6,Ci()))==null?void 0:k.map(Km))!=null?H:[],verifiers:(J=(l=Bi(f,Em,7,Ci()))==null?void 0:l.map(Km))!=null?J:[],collaborators:(O=(r=f.getCollaboratorsList())==null?void 0:r.map(Km))!=null?O:[],changelists:f.getCodeChangesList(Jm),gerritChanges:f.getGerritChangesList().map(gXa),blockedByIssueIds:f.getBlockedByIssueIdsList().map(Ym).map(Mm).filter(Pm),blockingIssueIds:f.getBlockingIssueIdsList().map(Ym).map(Mm).filter(Pm),
descendantCount:d,openDescendantCount:e}}else c=void 0;return c}))};sO.\u0275fac=function(a){return new (a||sO)};sO.\u0275prov=Dc({token:sO,factory:sO.\u0275fac,providedIn:"root"});var ndd=function(a){this.isEqual=a===void 0?function(){return!1}:a;this.values$=new uf(1);this.distinctValues$=new uf(1);this.lastValue=void 0;this.empty=!0};ndd.prototype.next=function(a){this.values$.next(a);!this.empty&&this.isEqual(a,this.lastValue)||this.distinctValues$.next(a);this.lastValue=a;this.empty=!1};var odd=function(a,b){this.data=a;this.cfg=b;this.lastValidated=Date.now()};h=odd.prototype;h.age=function(){return Date.now()-this.lastValidated};h.isFresh=function(){return this.age()<this.cfg.freshUntil};h.isAncient=function(){return this.age()>this.cfg.ancientAfter};h.getStatus=function(){return this.isFresh()?"fresh":this.isAncient()?"ancient":"uncertain"};h.toString=function(){var a=String(this.data);return Math.ceil(this.age()/1E3)+"s old -- "+a};
var pdd=function(a){this.cfg=a;this.cache=new Map},rdd=function(a,b){a=qdd(a,b);return a==null?Infinity:a},qdd=function(a,b){var c;return(c=a.get(b,!0))==null?void 0:c.age()};pdd.prototype.isFresh=function(a){return rdd(this,a)<this.cfg.freshUntil};var sdd=function(a,b){return rdd(a,b)<=a.cfg.ancientAfter};h=pdd.prototype;h.isAncient=function(){var a=qdd(this);return a?a>this.cfg.ancientAfter:!1};h.getStatus=function(a){a=this.get(a,!0);if(a!=null)return a.getStatus()};
h.has=function(a,b){return!!this.get(a,b===void 0?!1:b)};h.get=function(a,b){b=b===void 0?!1:b;var c=this.cache.get(a);if(c!=null)return c.age()>this.cfg.ancientAfter&&!b&&this.cache.delete(a),this.cache.get(a)};h.getData=function(a,b){var c;return(c=this.get(a,b===void 0?!1:b))==null?void 0:c.data};h.set=function(a,b){this.cache.set(a,new odd(b,this.cfg))};h.touch=function(a){var b=this.cache.get(a);b&&this.cache.set(a,new odd(b.data,this.cfg))};
h.validate=function(a,b,c,d){d=d===void 0?!1:d;if(!this.has(a,d))return!1;a=this.getData(a,d);return c(a,b)};h.debug=function(){return Object.assign({},this.cfg,{count:this.cache.size,keys:this.cache.keys()})};h.toString=function(){return Array.from(this.cache,function(a){a=m(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 tdd={trustMemory:!0},udd=function(){},MQa=["startIndex","totalSize","curPageToken","nextPageToken","prevPageToken"],vdd=function(a){this.ids=[];Object.assign(this,a)};Y(vdd,udd);vdd.prototype.toString=function(){return JSON.stringify(Object.assign({},this,{ids:"["+this.ids.join(",")+"]"}))};
var wdd={freshUntil:1E4,ancientAfter:792E5},tO=function(a){var b=this;a=a===void 0?{}:a;this.error$=new qf;this.watchOneError=function(c){typeof c==="number"&&(c=String(c));return b.error$.pipe(ue(function(d){return d.idOrKey===c}))};this.memoryWasSet$=new qf;this.collectiveMemoryWasSet$=new qf;this.valsById=new Map;this.collectionsById=new Map;this.setsByLabel=new Map;this.inFlightGets$=new Mj(Object.freeze({}));this.inFlightSaves$=new Mj(Object.freeze({}));this.getting$=this.inFlightGets$.pipe(A(gYa));
this.saving$=this.inFlightSaves$.pipe(A(gYa));this.thinking$=ie(this.getting$,this.saving$).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c||d}),nf());this.gotOne=function(c){return function(d,e){e=e===void 0?{}:e;e=e.doNotTrack?fYa:xdd({label:c,value:qdd(b.memory,c)},b.recordType);b.memory.validate(c,d,b.isEqual)?(e("one-isSame"),b.memory.touch(c)):(e("one-isChanged"),b.memoryWasSet$.next(),b.memory.set(c,d));ydd(b,c).next(d)}};this.gotSet=function(c){return function(d){for(var e=
m(d),f=e.next();!f.done;f=e.next())f=f.value,b.gotOne(b.idForRecord(f))(f,{doNotTrack:!0});zdd(b,c).next(d)}};this.gotAll=function(c){return function(d){for(var e=xdd({label:c,value:qdd(b.collectiveMemory,c)},b.recordType),f=m(d.results),g=f.next();!g.done;g=f.next())g=g.value,b.gotOne(b.idForRecord(g))(g,{doNotTrack:!0});f=b.normalize(d);b.collectiveMemory.validate(c,f,LQa);b.collectiveMemory.set(c,f);b.collectiveMemoryWasSet$.next();e("all-isChanged");(e=b.collectionsById.get(c))?(d=Add(b,f,d.results),
e.next(d)):CRa(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});e==null&&Xm("Fridge<"+b.recordType+"> Couldn't find a record for id "+d+". (among "+c.length+" records)");return e}};this.debug=function(){return{recordType:b.recordType,isThinking:b.isThinking(),inFlightGets:Object.entries(b.inFlightGets()).map(function(c){var d=m(c);c=d.next().value;d=d.next().value;
return c+": "+d}).join(", "),inFlightSaves:Object.entries(b.inFlightSaves()).map(function(c){var d=m(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((c.message===void 0?"":c.message).match("Default no-op for Fridge"))return!1}return!0}};this.canSave=this.implementsFn();this.icons={fetchOne:"\ud83d\udcbf",fetchAll:"\ud83d\udcdc",__doCreate:"\ud83c\udf1f",
doSave:"\u270f\ufe0f",no:"\u274c"};this.isThinking=function(c){return b.isSaving(c)||b.isGetting(c)};this.isSaving=function(c){return c==null?gYa(b.inFlightSaves()):!!b.inFlightSaves()[c]};this.isSaving$=function(c){return b.inFlightSaves$.pipe(A(function(d){return!!d[c]}),nf())};this.isGetting=function(c){return c==null?gYa(b.inFlightGets()):!!b.inFlightGets()[c]};this.save=function(c){var d=b.idForRecord(c);if(d==null)throw Error("Ed");c=b.doSave(c).pipe(mf(0,Dr),ula(),Dha());b.setIsSaving(d);b.subscriptions.add(c.subscribe(b.gotOne(d),
b.gotErr(d,b.inFlightSaves$),Bdd(d,b.inFlightSaves$)));return c};this.setIsSaving=function(c){var d={};hYa(b.inFlightSaves$,(d[c]=!0,d))};this.clearIsSaving=function(c){iYa(b.inFlightSaves$,c)};this.setIsGetting=function(c){var d={};hYa(b.inFlightGets$,(d[c]=!0,d))};this.clearIsGetting=function(c){iYa(b.inFlightGets$,c)};this.peekAllRecords=function(){return Array.from(b.memory.cache.entries(),function(c){c=m(c);c.next();return c.next().value.data}).filter(Pm)};this.poke.bind(this);this.subscriptions=
new Pd;this.memory=new pdd(Object.assign({},wdd,a));this.collectiveMemory=new pdd(Object.assign({},wdd,a))};h=tO.prototype;h.fetchOne=function(){throw Error("Fd");};h.fetchAll=function(){throw Error("Gd");};h.fetchSet=function(){throw Error("Hd");};h.doSave=function(){throw Error("Id");};h.copy=function(){throw Error("Jd");};h.isEqual=function(a,b){return LQa(a,b,100)};h.inFlightGets=function(){return this.inFlightGets$.getValue()};h.inFlightSaves=function(){return this.inFlightSaves$.getValue()};
var Cdd=function(a,b,c){c=c===void 0?{}:c;var d=c.trustMemory;var e=c.trustUncertainMemory;c=xdd({label:b,value:qdd(a.memory,b)},a.recordType);d=d&&a.memory.isFresh(b);e=e&&sdd(a.memory,b);if(d||e)return c("one-trustMemory"),c=a.memory.getData(b),oYa(c);if(a.inFlightGets()[b])return c("one-inFlight"),c=ydd(a,b),nYa(c.values$).then(oYa);c("one-fetch");try{var f=a.fetchOne(b).pipe(lf(1),mf(0,Dr))}catch(g){f=de(function(){return g})}a.setIsGetting(b);return new Promise(function(g,k){a.subscriptions.add(f.subscribe(function(l){a.gotOne(b)(l);
g(l)},function(l){a.gotErr(b,a.inFlightGets$)(l);k(l)},Bdd(b,a.inFlightGets$)))})},Fdd=function(a,b,c){c=(c===void 0?{}:c).trustMemory;var d="["+[].concat(q(b)).sort().join("-")+"]",e=xdd({label:d},a.recordType);if(c&&Ddd(a,b))Edd(a,b),e("set-trustMemory");else if(a.inFlightGets()[d])e("set-inFlight");else if(b.every(function(k){return a.inFlightGets()[k]}))Promise.all(b.map(function(k){k=ydd(a,k);return nYa(k.values$)})).then(function(k){return k.filter(Pm)}).then(a.gotSet(b));else{e("set-fetch");
try{var f=a.fetchSet(b).pipe(lf(1),mf(0,Dr))}catch(k){f=de(function(){return k})}c={};c=(c[d]=!0,c);e=m(b);for(var g=e.next();!g.done;g=e.next())c[g.value]=!0;hYa(a.inFlightGets$,c);a.subscriptions.add(f.subscribe(a.gotSet(b),function(k){jYa(a.inFlightGets$,b);a.gotErr(d,a.inFlightGets$)(k)},function(){jYa(a.inFlightGets$,[d].concat(q(b)))}))}},Ddd=function(a,b){return b.every(function(c){return a.memory.isFresh(c)})},Edd=function(a,b){var c=Gdd(a,b).filter(Pm);zdd(a,b).next(c)};
tO.prototype.getAll=function(a,b){b=(b===void 0?{}:b).trustMemory;var c=kYa(a),d=xdd({label:c,value:qdd(this.collectiveMemory,c)},this.recordType);if(b&&this.collectiveMemory.isFresh(c)){d("all-trustMemory");a=this.collectiveMemory.getData(c);var e=Hdd(this,a);e.results.length!==a.ids.length&&Xm("Fridge<"+this.recordType+"> getAll thinks the collectiveMemory cache is fresh, but only found "+e.results.length+"/"+a.ids.length+" things in the normalized record cache");return Promise.resolve(e)}if(this.inFlightGets()[c])return d("all-inFlight"),
a=Idd(this,a),nYa(a.values$);d("all-fetch");try{e=this.fetchAll(a).pipe(lf(1),mf(0,Dr))}catch(f){e=de(function(){return f})}this.setIsGetting(c);this.subscriptions.add(e.subscribe(this.gotAll(c),this.gotErr(c,this.inFlightGets$),Bdd(c,this.inFlightGets$)));a=Idd(this,a);return nYa(a.values$)};tO.prototype.gotErr=function(a,b){var c=this;return function(d){d=Object.assign({},{idOrKey:a},d);DRa(a+" gotErr()",d);iYa(b,a);JSON.stringify(d,null,2);c.error$.next(d)}};
var Bdd=function(a,b){return function(){iYa(b,a)}};tO.prototype.normalize=function(a){var b=a.results.map(this.idForRecord);return new vdd(Object.assign({},mYa(a),{ids:b}))};
var Add=function(a,b,c){a=b.ids.map(a.dereferenceOne(c)).filter(Boolean);return Object.assign({},mYa(b),{results:a})},Hdd=function(a,b){var c=Gdd(a,b.ids).filter(Pm);return Add(a,b,c)},Gdd=function(a,b){return b.map(function(c){return a.memory.getData(c)})},Idd=function(a,b){b=kYa(b);return lYa(a.collectionsById,b,new ndd)},zdd=function(a,b){b="["+[].concat(q(b)).sort().join("-")+"]";return lYa(a.setsByLabel,b,new ndd)},ydd=function(a,b){var c=new ndd(a.isEqual),d=a.memory.getData(b);d!=null&&c.next(d);
return lYa(a.valsById,b,c)};h=tO.prototype;h.watch=function(a,b){b=b===void 0?tdd:b;if(a==null)throw Error("Kd`"+a+"`"+this.recordType);typeof b==="number"&&(b=tdd);typeof a==="number"&&(a=String(a));var c=ydd(this,a);Cdd(this,a,b).catch(function(){});return c.distinctValues$.asObservable()};h.watchSet=function(a,b){b=b===void 0?tdd:b;typeof b==="number"&&(b=tdd);if(a.length===0)return ce([]);a=a.map(function(d){return typeof d==="number"?String(d):d});var c=zdd(this,a);Fdd(this,a,b);return c.values$.asObservable()};
h.watchMany=function(a,b){b=b===void 0?tdd:b;a=Object.assign({},this.defaultQuery,a);var c=Idd(this,a);this.getAll(a,b);return c.values$.asObservable()};h.peek=function(a){if(a!=null)return this.memory.getData(String(a),!0)};h.poke=function(a,b){return a==null?Promise.reject(Error("Kd`"+a+"`"+this.recordType)):Cdd(this,String(a),b)};
var Jdd=function(a,b){return b==null?Promise.resolve({results:[]}):a.getAll(Object.assign({},a.defaultQuery,b),void 0)},Kdd=function(a,b){return["string","number"].includes(typeof b)?a.memory.getStatus(String(b)):a.collectiveMemory.getStatus(kYa(b))};tO.prototype.announce=function(a,b){b=b===void 0?{}:b;if(a!=null){var c=this.idForRecord(a);if(c==null)throw Error("Ld");this.gotOne(c)(a,Object.assign({},{doNotTrack:!0},b))}};
tO.prototype.invalidate=function(a){a==null?(this.memory.cache.clear(),this.collectiveMemory.cache.clear()):["string","number"].includes(typeof a)?this.memory.cache.delete(String(a)):this.collectiveMemory.cache.delete(kYa(a))};tO.prototype.manualUpdate=function(a,b,c){c=c===void 0?{}:c;if(c.evenWhenInFlight!==void 0&&c.evenWhenInFlight||!this.inFlightGets()[a])if(a=this.copy(this.memory.getData(String(a))))b(a),this.announce(a)};tO.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};
var xdd=function(a,b){for(var c=m(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,a[d]==null&&delete a[d];return function(e){var f=a;f=f===void 0?{}:f;Ldd&&Vm("Fridge<"+b+">::trackEvent('"+e+"')",f)}},uO=function(){tO.apply(this,arguments);this.defaultQuery={}};Y(uO,tO);var Ldd=!1;var vO=function(){uO.call(this);this.api=p(sO);this.recordType="AggregatedIssueMetadata";this.isEqual=mm;this.idForRecord=function(a){return a._rootId}};Y(vO,uO);vO.prototype.fetchOne=function(a){return this.api.get(a)};vO.\u0275fac=function(a){return new (a||vO)};vO.\u0275prov=Dc({token:vO,factory:vO.\u0275fac,providedIn:"root"});var Nr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Nr.messageId)};Y(Nr,W);Nr.prototype.getIt=function(){return X(this,Ho,6,jb)};Nr.prototype.setIt=function(a){return Mi(this,Ho,6,a,jb)};Nr.messageId="b.ContentJudgement";var tYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tYa,W);tYa.prototype.getContent=function(){return ui(this,1)};tYa.prototype.setContent=function(a){return Fm(this,1,a)};tYa.prototype.getFormattedContent=function(){return X(this,jp,2)};var vYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vYa,W);h=vYa.prototype;h.getIssueIdsList=function(){return Qw(this,1,1)};h.getIssueIdsList_asString=function(){return Qm(this,1)};h.setIssueIdsList=function(a){return tr(this,1,a)};h.addIssueIds=function(a){return $w(this,1,a)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Nb,void 0,1)};var Mdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mdd,W);Mdd.prototype.getContent=function(){return ui(this,1)};Mdd.prototype.setContent=function(a){return Fm(this,1,a)};Mdd.prototype.getFormattedContent=function(){return X(this,jp,2)};var Ndd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ndd,W);h=Ndd.prototype;h.getContentCase=function(){return wo(this,uYa)};h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getCategory=function(){return ui(this,2)};h.setCategory=function(a){return Fm(this,2,a)};h.getSummary=function(){return bm(this,Mdd,5,uYa)};h.hasSummary=function(){return Qi(this,Mdd,5,uYa)};
h.getAuthor=function(){return X(this,Em,6)};h.setAuthor=function(a){Mi(this,Em,6,a)};h.hasAuthor=function(){return xi(this,Em,6)};h.getTimestamp=function(){return X(this,Si,7)};h.setTimestamp=function(a){return Mi(this,Si,7,a)};h.hasTimestamp=function(){return xi(this,Si,7)};var uYa=[3,4,5];var Tp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Tp,W);h=Tp.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getCategory=function(){return ui(this,2)};h.setCategory=function(a){return Fm(this,2,a)};h.getAttachmentId_asString=function(){return tn(this,3)};h.setAttachmentId=function(a){return Io(this,3,a)};h.getFeedbackType=function(){return wi(this,4)};
h.setFeedbackType=function(a){return Hm(this,4,a)};var Odd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Odd,W);h=Odd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getAttachmentId_asString=function(){return tn(this,2)};h.setAttachmentId=function(a){return Io(this,2,a)};h.getCategory=function(){return ui(this,3)};h.setCategory=function(a){return Fm(this,3,a)};var Pdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Pdd,W);h=Pdd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getCategory=function(){return ui(this,3)};h.setCategory=function(a){return Fm(this,3,a)};var Qdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qdd,W);h=Qdd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getAttachmentId_asString=function(){return tn(this,2)};h.setAttachmentId=function(a){return Io(this,2,a)};h.getCategory=function(){return ui(this,3)};h.setCategory=function(a){return Fm(this,3,a)};var Rdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rdd,W);Rdd.prototype.getQuery=function(){return ui(this,1)};Rdd.prototype.setQuery=function(a){return Fm(this,1,a)};Rdd.prototype.clearQuery=function(){Hw(this,1)};var Sdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Sdd,W);Sdd.prototype.getQuery=function(){return ui(this,1)};Sdd.prototype.setQuery=function(a){return Fm(this,1,a)};Sdd.prototype.clearQuery=function(){Hw(this,1)};var Tdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Tdd,W);Tdd.prototype.getName=function(){return ui(this,1)};Tdd.prototype.setName=function(a){return Fm(this,1,a)};var Udd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Udd,W);Udd.prototype.getFeedback=function(){return X(this,Tp,1)};Udd.prototype.setFeedback=function(a){return Mi(this,Tp,1,a)};Udd.prototype.hasFeedback=function(){return xi(this,Tp,1)};var wO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,wO.messageId)};Y(wO,W);wO.messageId="f.mt";var Vdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vdd,W);h=Vdd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getAttachmentId_asString=function(){return tn(this,2)};h.setAttachmentId=function(a){return Io(this,2,a)};h.getCategory=function(){return ui(this,3)};h.setCategory=function(a){return Fm(this,3,a)};h.getContent=function(){return ui(this,4)};
h.setContent=function(a){return Fm(this,4,a)};h.getFormattedContent=function(){return X(this,jp,5)};h.getAuthor=function(){return X(this,Em,6)};h.setAuthor=function(a){Mi(this,Em,6,a)};h.hasAuthor=function(){return xi(this,Em,6)};h.getTimestamp=function(){return X(this,Si,7)};h.setTimestamp=function(a){return Mi(this,Si,7,a)};h.hasTimestamp=function(){return xi(this,Si,7)};h.getContentVerdict=function(){return X(this,Lp,8)};h.setContentVerdict=function(a){Mi(this,Lp,8,a)};var Wdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Wdd.messageId)};Y(Wdd,W);Wdd.messageId="b.GetAttachmentEnrichmentResponse";var Xdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xdd,W);h=Xdd.prototype;h.getName=function(){return ui(this,1)};h.setName=function(a){return oj(this,1,a)};h.hasName=function(){return im(this,1)};h.getNameOrUndefined=function(){return Sw(this,1)};h.getDisplayName=function(){return ui(this,2)};h.setDisplayName=function(a){return oj(this,2,a)};h.getDescription=function(){return ui(this,3)};h.setDescription=function(a){return oj(this,3,a)};
h.hasDescription=function(){return im(this,3)};var Ydd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ydd.messageId)};Y(Ydd,W);Ydd.prototype.getCategory=function(){return X(this,Xdd,1,jb)};Ydd.prototype.setCategory=function(a){return Mi(this,Xdd,1,a,jb)};Ydd.messageId="b.GetEnrichmentCategoryResponse";var Zdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zdd,W);var xO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xO.messageId)};Y(xO,W);xO.prototype.getResponse=function(){return X(this,Zdd,1,jb)};xO.prototype.getMutableResponse=function(){return Ii(this,Zdd,1,void 0,jb)};xO.prototype.hasResponse=function(){return xi(this,Zdd,1,jb)};xO.messageId="b.ListAttachmentEnrichmentsResponse";var $dd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($dd,W);var yO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,yO.messageId)};Y(yO,W);yO.prototype.getResponse=function(){return X(this,$dd,1,jb)};yO.prototype.getMutableResponse=function(){return Ii(this,$dd,1,void 0,jb)};yO.prototype.hasResponse=function(){return xi(this,$dd,1,jb)};yO.messageId="b.ListIssueEnrichmentsResponse";var zO=function(){this.executor=p(bO)},aed=function(a,b){var c=(new Tdd).setName(b);return a.executor.post({url:"action/enrichment_category/"+b+"/get",body:c,responseConstructor:Ydd}).pipe(A(function(d){return d.getCategory()}),A(sYa))},bed=function(a,b){var c="issueid:"+b;c=(new Sdd).setQuery(c);return a.executor.post({url:"action/issues/"+b+"/listIssueEnrichments",body:c,responseConstructor:yO}).pipe(A(function(d){d=d.getResponse();return Bi(d,Ndd,1,Ci()).map(wYa)}))},ced=function(a,b,c){var d=
(new Pdd).setIssueId(b).setCategory(c);return a.executor.post({url:"action/issues/"+b+"/enrichments/"+c+"/delete",body:d,responseConstructor:wO}).pipe(A(function(){}))},ded=function(a,b,c,d,e){var f={};e&&(f["X-Restricted-Content-Limit"]=String(pYa(e)));e=(new Qdd).setIssueId(b).setAttachmentId(c).setCategory(d);return a.executor.post({url:"action/issues/"+b+"/attachments/"+c+"/categories/"+d,options:{headers:f},body:e,responseConstructor:Wdd}).pipe(A(function(g){return xYa(X(g,Vdd,1,jb))}))},eed=
function(a,b){var c="issueid:"+b;c=(new Rdd).setQuery(c);return a.executor.post({url:"action/issues/"+b+"/listAttachmentEnrichments",body:c,responseConstructor:xO}).pipe(A(function(d){d=d.getResponse();return Bi(d,Vdd,1,Ci()).map(xYa)}))},fed=function(a,b,c,d){var e=(new Odd).setIssueId(b).setAttachmentId(c).setCategory(d);return a.executor.post({url:"action/issues/"+b+"/attachments/"+c+"/enrichments/"+d+"/delete",body:e,responseConstructor:wO}).pipe(A(function(){}))};
zO.prototype.submitEnrichmentFeedback=function(a){var b=(new Udd).setFeedback(zYa(a));return this.executor.post({url:"action/issues/"+a.issueId+"/submitEnrichmentFeedback",body:b,responseConstructor:wO}).pipe(A(function(){}))};zO.\u0275fac=function(a){return new (a||zO)};zO.\u0275prov=Dc({token:zO,factory:zO.\u0275fac,providedIn:"root"});var AO=function(){uO.call(this);this.api=p(zO);this.recordType="AttachmentEnrichmentsForIssue";this.idForRecord=function(a){return a.issueId};this.isEqual=mm};Y(AO,uO);AO.prototype.fetchOne=function(a){return eed(this.api,a).pipe(A(function(b){return{issueId:a,enrichments:b}}))};AO.\u0275fac=function(a){return new (a||AO)};AO.\u0275prov=Dc({token:AO,factory:AO.\u0275fac,providedIn:"root"});var Up=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Up,W);h=Up.prototype;h.getSavedSearchId=function(){return pn(this,1)};h.getSavedSearchId_asString=function(){return tn(this,1)};h.setSavedSearchId=function(a){return Io(this,1,a)};h.getName=function(){return ui(this,2)};h.setName=function(a){return Fm(this,2,a)};h.getDescription=function(){return ui(this,3)};h.setDescription=function(a){return Fm(this,3,a)};h.getQuery=function(){return ui(this,4)};
h.setQuery=function(a){return Fm(this,4,a)};h.clearQuery=function(){Hw(this,4)};h.getDefaultOrderBy=function(){return ui(this,5)};h.setDefaultOrderBy=function(a){return Fm(this,5,a)};h.getDisplayPreferences=function(){return X(this,Fp,6)};h.setDisplayPreferences=function(a){return Mi(this,Fp,6,a)};h.getOwnersList=function(){return Bi(this,Em,7,Ci())};h.setOwnersList=function(a){return Ni(this,7,a)};var Wp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wp,W);h=Wp.prototype;h.getHotlistId=function(){return pn(this,1)};h.setHotlistId=function(a){return Io(this,1,a)};h.getHotlist=function(){return X(this,Ep,2)};h.setHotlist=function(a){return Mi(this,Ep,2,a)};h.hasHotlist=function(){return xi(this,Ep,2)};var Yp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Yp,W);h=Yp.prototype;h.getSavedSearchId=function(){return pn(this,1)};h.getSavedSearchId_asString=function(){return tn(this,1)};h.setSavedSearchId=function(a){return Io(this,1,a)};h.getSavedSearch=function(){return X(this,Up,2)};h.setSavedSearch=function(a){return Mi(this,Up,2,a)};h.hasSavedSearch=function(){return xi(this,Up,2)};var Zp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zp,W);Zp.prototype.getBookmarkGroupId_asString=function(){return tn(this,1)};Zp.prototype.setBookmarkGroupId=function(a){return Io(this,1,a)};Zp.prototype.getBookmarkGroup=function(){return X(this,$p,2)};Zp.prototype.setBookmarkGroup=function(a){return Mi(this,$p,2,a)};var Xp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xp,W);h=Xp.prototype;
h.getHotlist=function(){return bm(this,Wp,1,Vp)};h.setHotlist=function(a){return Wo(this,1,Vp,a)};h.hasHotlist=function(){return Qi(this,Wp,1,Vp)};h.getSavedSearch=function(){return bm(this,Yp,2,Vp)};h.setSavedSearch=function(a){return Wo(this,2,Vp,a)};h.hasSavedSearch=function(){return Qi(this,Yp,2,Vp)};h.getBookmarkGroup=function(){return bm(this,Zp,3,Vp)};h.setBookmarkGroup=function(a){return Wo(this,3,Vp,a)};var $p=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};
Y($p,W);h=$p.prototype;h.getBookmarkGroupId_asString=function(){return tn(this,1)};h.setBookmarkGroupId=function(a){return Io(this,1,a)};h.getName=function(){return ui(this,2)};h.setName=function(a){return Fm(this,2,a)};h.getDescription=function(){return ui(this,3)};h.setDescription=function(a){return Fm(this,3,a)};h.getArchived=function(){return Fi(this,4)};h.setArchived=function(a){return Yo(this,4,a)};h.addItems=function(a,b){return Np(this,5,Xp,a,b)};h.setItems=function(a){Gw(this,5,Xp,a)};
h.removeItems=function(a){return Kw(this,5,Xp,a)};h.getOwnersList=function(){return Bi(this,Em,6,Ci())};h.setOwnersList=function(a){return Ni(this,6,a)};var Vp=[1,2,3];var BO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,BO.messageId)};Y(BO,W);BO.prototype.getIt=function(){return X(this,$p,10,jb)};BO.prototype.setIt=function(a){return Mi(this,$p,10,a,jb)};BO.messageId="b.BookmarkGroup";var ged=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ged.messageId)};Y(ged,W);ged.messageId="b.BookmarkGroupListResponse";var CO=function(){this.executor=p(cO)};CO.prototype.get=function(a){return this.executor.get({url:"action/bookmark_groups/"+a,responseConstructor:BO}).then(IYa)};CO.prototype.query=function(a){return this.executor.get({url:"action/bookmark_groups",options:{params:{q:a}},responseConstructor:ged}).then(JYa)};CO.prototype.create=function(a){a=(new BO).setIt((new $p).setName(a.name).setDescription(a.description));return this.executor.post({url:"action/bookmark_groups",body:a,responseConstructor:BO}).then(IYa)};
CO.prototype.update=function(a){var b=(new BO).setIt(EYa(a));return this.executor.post({url:"action/bookmark_groups/"+a.bookmarkGroupId,body:b,responseConstructor:BO}).then(IYa)};CO.\u0275fac=function(a){return new (a||CO)};CO.\u0275prov=Dc({token:CO,factory:CO.\u0275fac,providedIn:"root"});var DO=function(){uO.call(this,{freshUntil:3E5});this.bookmarkGroupApi=p(CO);this.recordType="bookmarkGroup";this.idForRecord=function(a){return String(a.bookmarkGroupId)}};Y(DO,uO);DO.prototype.fetchOne=function(a){var b=this;return ne(function(){return b.bookmarkGroupApi.get(a)})};DO.prototype.fetchSet=function(a){var b=this;return ie(a.map(function(c){return b.fetchOne(c)}))};DO.\u0275fac=function(a){return new (a||DO)};DO.\u0275prov=Dc({token:DO,factory:DO.\u0275fac,providedIn:"root"});var hed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,hed.messageId)};Y(hed,W);h=hed.prototype;h.getAuthor=function(){return ui(this,1,void 0,jb)};h.setAuthor=function(a){oj(this,1,a,jb)};h.hasAuthor=function(){return im(this,1,jb)};h.getDescription=function(){return ui(this,2,void 0,jb)};h.setDescription=function(a){return oj(this,2,a,jb)};h.hasDescription=function(){return im(this,2,jb)};h.getPending=function(){return Fi(this,3,void 0,jb)};
h.getTimestamp=function(){return pn(this,4,void 0,jb)};h.setTimestamp=function(a){return vn(this,4,a,void 0,jb)};h.hasTimestamp=function(){return on(this,4,jb)};hed.messageId="b.ChangelistDetailsResponse";var ied=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ied,W);h=ied.prototype;h.getIssueIdsList=function(){return Qw(this,1,1)};h.getIssueIdsList_asString=function(){return Qm(this,1)};h.setIssueIdsList=function(a){return xc(this,1,a,Hb)};h.addIssueIds=function(a){return zc(this,1,Hb,a,void 0,Pb)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Pb,void 0,1)};var jed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,jed.messageId)};Y(jed,W);h=jed.prototype;h.getQuery=function(){return X(this,ied,1,jb)};h.setQuery=function(a){return Mi(this,ied,1,a,jb)};h.clearQuery=function(){Hw(this,1,jb)};h.hasQuery=function(){return xi(this,ied,1,jb)};h.getNextPageToken=function(){return ui(this,2,void 0,jb)};jed.messageId="b.ListChangelistsRequest";var LYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(LYa,W);h=LYa.prototype;h.getAuthor=function(){return ui(this,1)};h.setAuthor=function(a){oj(this,1,a)};h.hasAuthor=function(){return im(this,1)};h.getChangelistNumber=function(){return Bm(this,2)};h.getPending=function(){return Fi(this,3)};h.getTimestamp=function(){return X(this,Si,4)};h.setTimestamp=function(a){return Mi(this,Si,4,a)};h.hasTimestamp=function(){return xi(this,Si,4)};
h.getIssueIdsList=function(){return Qw(this,5,1)};h.getIssueIdsList_asString=function(){return Qm(this,5)};h.setIssueIdsList=function(a){return xc(this,5,a,Hb)};h.addIssueIds=function(a){return zc(this,5,Hb,a,void 0,Pb)};h.setIssueIds=function(a){zc(this,5,Hb,void 0,a,Pb,void 0,1)};var ked=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ked.messageId)};Y(ked,W);ked.prototype.getNextPageToken=function(){return ui(this,2,void 0,jb)};ked.messageId="b.ListChangelistsResponse";var led=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,led.messageId)};Y(led,W);led.messageId="b.PendingChangelistsResponse";var EO=function(){this.executor=p(bO)};EO.prototype.getPendingChangelistsForIssue=function(a){return this.executor.get({url:"action/issues/"+a+"/pending_changelists",responseConstructor:led}).pipe(A(KYa))};EO.prototype.getChangelistDetails=function(a){return this.executor.get({url:"/action/changelists/"+a,responseConstructor:hed}).pipe(A(OYa))};
var med=function(a,b){var c=new jed,d=c.setQuery;b=(new ied).setIssueIdsList(b);b=Gn(b,2,2);c=d.call(c,b);return a.executor.post({url:"action/changelists/list",body:c,responseConstructor:ked}).pipe(A(NYa))};EO.\u0275fac=function(a){return new (a||EO)};EO.\u0275prov=Dc({token:EO,factory:EO.\u0275fac,providedIn:"root"});var FO=function(){this.changelistResources=p(EO)};FO.prototype.getPendingChangelistsForIssue=function(a){return fe(this.changelistResources.getPendingChangelistsForIssue(a))};
FO.prototype.getChangelistDetails=function(a){return fe(this.changelistResources.getChangelistDetails(a))};FO.\u0275fac=function(a){return new (a||FO)};FO.\u0275prov=Dc({token:FO,factory:FO.\u0275fac,providedIn:"root"});var GO=function(){tO.call(this);this.api=p(EO);this.defaultQuery={};this.recordType="Changelist";this.idForRecord=function(a){return String(a.changelistNumber)}};Y(GO,tO);GO.prototype.fetchAll=function(a){if(a=a.pendingForIssues)return a.length===0?ce({results:[]}):med(this.api,a).pipe(A(function(b){var c;return{results:(c=b.changelists)!=null?c:[]}}));throw Error("Od");};GO.\u0275fac=function(a){return new (a||GO)};GO.\u0275prov=Dc({token:GO,factory:GO.\u0275fac,providedIn:"root"});var HO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,HO.messageId)};Y(HO,W);HO.prototype.getIt=function(){return X(this,Eo,2,jb)};HO.prototype.setIt=function(a){return Mi(this,Eo,2,a,jb)};HO.messageId="b.AccessLimit";var IO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,IO.messageId)};Y(IO,W);IO.prototype.getIt=function(){return X(this,Ucd,13,jb)};IO.prototype.setIt=function(a){return Mi(this,Ucd,13,a,jb)};IO.messageId="b.AccessPolicy";var ned={ISSUE_ID:"issueId",ATTACHMENT_ID:"attachmentId",COMPONENT_ID:"componentId",GROUP_ID:"groupId",HOTLIST_ID:"hotlistId",SAVED_SEARCH_ID:"savedSearchId",SLO_ID:"sloId",TEAM_ID:"teamId",TRIAGE_ID:"triageId",SETTINGS_TAB:"settingsTab"},qs={home:{routeDeclarationPath:"home",makeHref:function(){return"/home"}},viewDashboard:{routeDeclarationPath:"dashboard/:groupId",makeHref:function(a){return"/dashboard/"+a}},triageSettings:{routeDeclarationPath:"triage",makeHref:function(){return"/triage"}},viewTriageDashboard:{routeDeclarationPath:"teams/:teamId/triage/:triageId/dashboard",
makeHref:function(a,b){return"/teams/"+a+"/triage/"+b+"/dashboard"}},viewIssueThemes:{routeDeclarationPath:"teams/:teamId/triage/:triageId/issue-themes",makeHref:function(a,b){return"/teams/"+a+"/triage/"+b+"/issue-themes"}},viewTriage:{routeDeclarationPath:"teams/:teamId/triage/:triageId/:phase/:subphase",makeHref:function(a,b,c,d){return"/teams/"+a+"/triage/"+b+"/"+(c===void 0?"new":c)+"/"+(d===void 0?"all":d)}},createSlo:{routeDeclarationPath:"slos/new",makeHref:function(){return"/slos/new"}},
viewSlo:{routeDeclarationPath:"slos/:sloId",makeHref:function(a){return"/slos/"+a}},editSlo:{routeDeclarationPath:"slos/:sloId/edit",makeHref:function(a){return"/slos/"+a+"/edit"}},listSlos:{routeDeclarationPath:"slos",makeHref:function(){return"/slos"}},listHotlists:{routeDeclarationPath:"hotlists",makeHref:function(){return"/hotlists"}},createHotlist:{routeDeclarationPath:"hotlists/new",makeHref:function(){return"/hotlists/new"}},viewHotlist:{routeDeclarationPath:"hotlists/:hotlistId",makeHref:function(a){return"/hotlists/"+
a}},editHotlist:{routeDeclarationPath:"hotlists/:hotlistId/edit",makeHref:function(a){return"/hotlists/"+a+"/edit"}},viewIssue:{routeDeclarationPath:"issues/:issueId",makeHref:function(a){return"/issues/"+a}},listIssues:{routeDeclarationPath:"issues",makeHref:function(a){return a==null?"/issues":"/issues?"+VYa(a)}},listIssuesRecent:{routeDeclarationPath:"recent",makeHref:function(){return"/recent"}},createIssue:{routeDeclarationPath:"issues/new",makeHref:function(a){return a==null?"/issues/new":"/issues/new?"+
VYa(a)}},createIssueChromeWizard:{routeDeclarationPath:"issues/wizard",makeHref:function(){return"/issues/wizard"}},issueDependencies:{makeHref:function(a){return"/issues/"+a+"/dependencies"}},createComponent:{routeDeclarationPath:"components/new",makeHref:function(a){return a==null?"/components/new":"/components/new?"+VYa({parentId:a})}},editComponent:{routeDeclarationPath:"components/:componentId/edit",makeHref:function(a){return"/components/"+a+"/edit"}},editComponentAccess:{routeDeclarationPath:"components/:componentId/edit#access",
makeHref:function(a){return"/components/"+a+"/edit#access"}},editComponentFields:{routeDeclarationPath:"components/:componentId/edit#customFields",makeHref:function(a){return"/components/"+a+"/edit#customFields"}},editComponentTemplates:{routeDeclarationPath:"components/:componentId/edit#templates",makeHref:function(a){return"/components/"+a+"/edit#templates"}},editComponentFieldConfigurations:{routeDeclarationPath:"components/:componentId/edit#fieldVisibility",makeHref:function(a){return"/components/"+
a+"/edit#fieldVisibility"}},listComponentsGlobal:{routeDeclarationPath:"components/all",makeHref:function(){return"/components/all"}},listComponents:{routeDeclarationPath:"components",makeHref:function(){return"/components"}},editTeam:{routeDeclarationPath:"teams/:teamId/edit",makeHref:function(a,b){return"/teams/"+a+"/edit#"+b}},createBookmarkGroup:{routeDeclarationPath:"bookmark-groups/new",makeHref:function(){return"/bookmark-groups/new"}},viewBookmarkGroup:{routeDeclarationPath:"bookmark-groups/:groupId",
makeHref:function(a){return"/bookmark-groups/"+a}},editBookmarkGroup:{routeDeclarationPath:"bookmark-groups/:groupId/edit",makeHref:function(a){return"/bookmark-groups/"+a+"/edit"}},viewSavedSearch:{routeDeclarationPath:"savedsearches/:savedSearchId",makeHref:function(a){return"/savedsearches/"+a}},editSavedSearch:{routeDeclarationPath:"savedsearches/:savedSearchId/edit",makeHref:function(a){return"/savedsearches/"+a+"/edit"}},settings:{routeDeclarationPath:"settings",makeHref:function(){return"/settings"}},
settingsTab:{routeDeclarationPath:"settings/:settingsTab?",makeHref:function(a){return"/settings/"+a}},viewAttachment:{routeDeclarationPath:"viewattachment/:issueId/:attachmentId",makeHref:function(a,b,c){return"/viewattachment/"+a+"/"+b+"?"+VYa({mimeType:c})}}};var oed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,oed.messageId)};Y(oed,W);oed.messageId="b.CheckPermissionResponse";var JO=function(){this.executor=p(bO)};h=JO.prototype;h.get=function(a,b){a=Sp(dq(a,b));return this.executor.get({url:"action/access_policies/"+a,responseConstructor:IO}).pipe(A(RYa))};
h.update=function(a,b,c){a=Sp(dq(a,b));var d;b=new IO;var e=b.setIt;c=Object.assign({},c,{implicitAccess:(d=c.implicitAccess)!=null?d:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null});var f,g,k,l,r,w;d=new Ucd;var x=((f=c.admins)!=null?f:[]).map(Co);f=Ni(d,2,x).setAppendersList(((g=c.appenders)!=null?g:[]).map(Co));g=((k=c.editors)!=null?k:[]).map(Co);k=Ni(f,4,g).setReadersList(((l=c.readers)!=null?l:[]).map(Co));l=((r=c.restrictedReaders)!=null?r:[]).map(Co);
r=Ni(k,11,l);l=((w=c.restrictedPlusReaders)!=null?w:[]).map(Co);w=Ni(r,12,l);if(c.implicitAccess){r=w.setImplicitAccess;a:switch(c.implicitAccess){case "IMPLICIT_ACCESS_UNSPECIFIED":c=0;break a;case "ALLOW":c=1;break a;case "DENY":c=2;break a;default:throw Error("id");}r.call(w,c)}b=e.call(b,w);return this.executor.post({url:"action/access_policies/"+a,body:b,responseConstructor:IO}).pipe(A(RYa))};
h.checkPermission=function(a,b,c,d){a=Sp(a.join(","));b=Sp(b);c=Sp(dq(c,d));return this.executor.get({url:"action/check_permission/"+a+"/"+b+"/"+c,responseConstructor:oed}).pipe(A(QYa))};h.setAccessLimit=function(a,b,c){a=Sp(dq(a,b));c=(new HO).setIt(BVa(c));return this.executor.post({url:"action/access_limits/"+a,body:c,responseConstructor:HO}).pipe(A(PYa))};h.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).pipe(A(function(b){return b.implicitAccess==="ALLOW"}))};
JO.\u0275fac=function(a){return new (a||JO)};JO.\u0275prov=Dc({token:JO,factory:JO.\u0275fac,providedIn:"root"});var KO=function(){this.observableApi=p(JO)};h=KO.prototype;h.get=function(a,b){return fe(this.observableApi.get(a,b))};h.update=function(a,b,c){return fe(this.observableApi.update(a,b,c))};h.checkPermission=function(a,b,c,d){return fe(this.observableApi.checkPermission(a,b,c,d))};h.setAccessLimit=function(a,b,c){return fe(this.observableApi.setAccessLimit(a,b,c))};
h.checkComponentImplicitAccessEnabled=function(a){return fe(this.observableApi.checkComponentImplicitAccessEnabled(a))};KO.\u0275fac=function(a){return new (a||KO)};KO.\u0275prov=Dc({token:KO,factory:KO.\u0275fac,providedIn:"root"});var LO=function(){uO.call(this);this.accessPolicyApi=p(JO);this.recordType="componentAccessPolicy";this.isEqual=mm;this.idForRecord=function(a){return a.id}};Y(LO,uO);LO.prototype.fetchOne=function(a){return this.accessPolicyApi.get("COMPONENT",a).pipe(A(function(b){return Object.assign({},{id:a},b)}),gf(function(){return ce(void 0)}))};LO.prototype.doSave=function(a){var b=a.id;return this.accessPolicyApi.update("COMPONENT",b,a).pipe(A(function(c){return Object.assign({},{id:b},c)}))};
LO.\u0275fac=function(a){return new (a||LO)};LO.\u0275prov=Dc({token:LO,factory:LO.\u0275fac,providedIn:"root"});var MO=function(){};MO.prototype.adapt=function(a){var b,c=new ped(a.call.bind(a),a.split.bind(a),(b=a.bufferTimeMs)!=null?b:500,a.maxBatchSize||100);return c.get.bind(c)};MO.\u0275fac=function(a){return new (a||MO)};MO.\u0275prov=Dc({token:MO,factory:MO.\u0275fac,providedIn:"root"});
var ped=function(a,b,c,d){var e=this;this.batchCall=a;this.batchSplit=b;this.bufferTimeMs=c;this.maxBatchSize=d;this.inputSubject=new qf;this.inputs$=this.inputSubject.pipe(Yka(this.inputSubject.pipe(ff(this.bufferTimeMs,Dr))));this.removeDuplicates=A(function(f){return[].concat(q(new Set(f)))});this.limitInputSize=A(function(f){for(var g=m(f.slice(e.maxBatchSize)),k=g.next();!k.done;k=g.next())e.inputSubject.next(k.value);return new Set(f.slice(0,e.maxBatchSize))});this.makeBatchCalls=Sd(ke(function(f){try{return e.batchCall(f).pipe(lf(1),
A(function(g){return{inputs:f,batchResponse:g,error:void 0}}),gf(function(g){return ce({inputs:f,batchResponse:void 0,error:g})}))}catch(g){return ce({inputs:f,batchResponse:void 0,error:g})}}),yla());this.batchResults$=this.inputs$.pipe(this.removeDuplicates,this.limitInputSize,this.makeBatchCalls)};
ped.prototype.get=function(a){var b=this;return new Td(function(c){c=b.batchResults$.pipe(ue(function(d){return d.inputs.has(a)}),lf(1),A(function(d){if(!d.error&&d.batchResponse)return b.batchSplit(a,d.batchResponse);throw d.error;})).subscribe(c);b.inputSubject.next(a);return c})};var pZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pZa,W);pZa.prototype.getFieldId=function(){return X(this,Po,1)};pZa.prototype.setFieldId=function(a){return Mi(this,Po,1,a)};var eq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eq,W);eq.prototype.getFieldId=function(){return X(this,Po,1)};eq.prototype.setFieldId=function(a){return Mi(this,Po,1,a)};eq.prototype.getState=function(){return wi(this,2)};eq.prototype.setState=function(a){return Hm(this,2,a)};var YYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YYa,W);var cZa=function(a,b){return cx(a,1,b)};YYa.prototype.getIssueTypes=function(){return Vw(this,1)};var qed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qed,W);var fq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fq,W);h=fq.prototype;h.getName=function(){return ui(this,1)};h.setName=function(a){return Fm(this,1,a)};h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return tn(this,2)};h.setComponentId=function(a){return Io(this,2,a)};var aZa=function(a,b){return Ni(a,3,b)},dZa=function(a){var b=new qed;Wo(a,4,ZYa,b)},bZa=function(a,b){Wo(a,5,ZYa,b)},ZYa=[4,5];var iq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iq,W);h=iq.prototype;h.getInherit=function(){return Fi(this,1)};h.setInherit=function(a){return Yo(this,1,a)};h.getId=function(){return pn(this,2)};h.getId_asLegacyNumberOrString=function(){return Cp(this,2)};h.getId_asString=function(){return tn(this,2)};h.setId=function(a){return Io(this,2,a)};var hq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hq,W);h=hq.prototype;h.getInherit=function(){return Fi(this,1)};h.setInherit=function(a){return Yo(this,1,a)};h.getId=function(){return pn(this,2)};h.getId_asLegacyNumberOrString=function(){return Cp(this,2)};h.getId_asString=function(){return tn(this,2)};h.setId=function(a){return Io(this,2,a)};h.getSourceTeamId_asString=function(){return tn(this,4)};h.setSourceTeamId=function(a){Io(this,4,a)};
h.getComment=function(){return ui(this,3)};h.setComment=function(a){return Fm(this,3,a)};var gq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gq,W);h=gq.prototype;h.getVersion=function(){return Bm(this,1)};h.setVersion=function(a){return an(this,1,a)};h.getSlo=function(){return X(this,hq,2)};h.setSlo=function(a){return Mi(this,hq,2,a)};h.hasSlo=function(){return xi(this,hq,2)};h.getEscalationOwner=function(){return X(this,Em,6)};h.setEscalationOwner=function(a){Mi(this,Em,6,a)};h.getDefaultEscalationOwner=function(){return X(this,Em,7)};
h.setInheritEscalationOwner=function(a){Yo(this,8,a)};var gZa=[9,10];var iZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iZa,W);h=iZa.prototype;h.getUser=function(){return X(this,Em,1)};h.setUser=function(a){return Mi(this,Em,1,a)};h.hasUser=function(){return xi(this,Em,1)};h.getIsLead=function(){return Fi(this,2)};h.setIsLead=function(a){return Yo(this,2,a)};var red=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(red,W);h=red.prototype;h.getId=function(){return pn(this,1)};h.getId_asLegacyNumberOrString=function(){return Cp(this,1)};h.getId_asString=function(){return tn(this,1)};h.setId=function(a){return Io(this,1,a)};h.getPathIdsList_asString=function(){return Qm(this,2)};h.setPathIdsList=function(a){return tr(this,2,a)};h.getName=function(){return ui(this,3)};h.setName=function(a){return Fm(this,3,a)};
h.getPathNamesList=function(a){return Cm(this,4,Ci(a))};h.setPathNamesList=function(a){return Gm(this,4,a)};h.getMembersList=function(){return Bi(this,iZa,6,Ci())};h.setMembersList=function(a){return Ni(this,6,a)};h.getDescription=function(){return ui(this,8)};h.setDescription=function(a){return Fm(this,8,a)};var nZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nZa,W);h=nZa.prototype;h.getTeamId=function(){return pn(this,1)};h.getTeamId_asLegacyNumberOrString=function(){return Cp(this,1)};h.getTeamId_asString=function(){return tn(this,1)};h.setTeamId=function(a){return Io(this,1,a)};h.getScore=function(){return em(this,2)};h.setScore=function(a){return qp(this,2,a)};var jq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jq,W);jq.prototype.getComponentPathNames=function(a){return Uw(this,2,a)};jq.prototype.getFieldConfigsV2List=function(){return Bi(this,fq,6,Ci())};jq.prototype.setFieldConfigsV2List=function(a){return Ni(this,6,a)};var mq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mq,W);h=mq.prototype;h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return tn(this,2)};h.setComponentId=function(a){return Io(this,2,a)};h.getName=function(){return ui(this,4)};h.setName=function(a){return Fm(this,4,a)};h.getDescription=function(){return ui(this,5)};h.setDescription=function(a){return Fm(this,5,a)};h.getIsArchived=function(){return Fi(this,8)};
h.setIsArchived=function(a){return Yo(this,8,a)};h.getAccessLimit=function(){return X(this,Eo,9)};h.setAccessLimit=function(a){return Mi(this,Eo,9,a)};h.setCommentEditState=function(a){return Hm(this,10,a)};h.getSlo=function(){return X(this,np,13)};h.setSlo=function(a){return Mi(this,np,13,a)};h.hasSlo=function(){return xi(this,np,13)};h.getTeam=function(){return X(this,iq,16)};h.setTeam=function(a){Mi(this,iq,16,a)};h.hasTeam=function(){return xi(this,iq,16)};
h.getEffortSpec=function(){return X(this,Zo,18)};h.getTeamSuggestionsList=function(){return Bi(this,nZa,19,Ci())};h.setTeamSuggestionsList=function(a){Ni(this,19,a)};h.getTrackerId=function(){return pn(this,20)};h.getTrackerId_asString=function(){return tn(this,20)};h.setTrackerId=function(a){Io(this,20,a)};var DZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(DZa,W);h=DZa.prototype;h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return tn(this,2)};h.setComponentId=function(a){return Io(this,2,a)};h.getTemplateId=function(){return pn(this,3)};h.setTemplateId=function(a){return Io(this,3,a)};h.getName=function(){return ui(this,4)};h.setName=function(a){return Fm(this,4,a)};h.getDescription=function(){return ui(this,5)};
h.setDescription=function(a){return Fm(this,5,a)};h.getIssueState=function(){return X(this,zp,6)};h.setIssueState=function(a){return Mi(this,zp,6,a)};h.getComment=function(){return ui(this,7)};h.setComment=function(a){return Fm(this,7,a)};h.getFormattingMode=function(){return wi(this,8)};h.setFormattingMode=function(a){return Hm(this,8,a)};var NO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(NO,W);NO.prototype.getComponentId=function(){return pn(this,2)};NO.prototype.getComponentId_asString=function(){return tn(this,2)};NO.prototype.setComponentId=function(a){return Io(this,2,a)};var nq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,nq.messageId)};Y(nq,W);nq.prototype.getIt=function(){return X(this,mq,28,jb)};nq.prototype.setIt=function(a){return Mi(this,mq,28,a,jb)};nq.messageId="b.Component";var sed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,sed.messageId)};Y(sed,W);sed.prototype.getIt=function(){return X(this,NO,1,jb)};sed.prototype.setIt=function(a){return Mi(this,NO,1,a,jb)};sed.messageId="b.ListPopularRoutingComponentsRequest";var oq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oq,W);oq.prototype.getIt=function(){return X(this,DZa,7)};oq.prototype.setIt=function(a){return Mi(this,DZa,7,a)};var ted=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ted.messageId)};Y(ted,W);ted.messageId="b.UpdateComponentSloRequest";var ued=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ued.messageId)};Y(ued,W);ued.messageId="b.UpdateComponentTeamRequest";var ved=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ved.messageId)};Y(ved,W);ved.prototype.setComponent=function(a){return Mi(this,nq,1,a,jb)};ved.messageId="b.CreateComponentResponse";var wed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,wed.messageId)};Y(wed,W);wed.prototype.setComponent=function(a,b){return Gw(this,1,nq,a,b,jb)};wed.messageId="b.ListComponentsResponse";var xed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xed,W);xed.prototype.getComponentsList=function(){return Bi(this,mq,1,Ci())};var yed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,yed.messageId)};Y(yed,W);yed.prototype.getIt=function(){return X(this,xed,1,jb)};yed.prototype.setIt=function(a){return Mi(this,xed,1,a,jb)};yed.messageId="b.ListPopularRoutingComponentsResponse";var IZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(IZa,W);IZa.prototype.getComponentPath=function(){return ui(this,1)};var zed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,zed.messageId)};Y(zed,W);zed.messageId="b.SubcomponentsResponse";var OO=function(){this.executor=p(bO);this.activeSession=p(uu)};h=OO.prototype;h.get=function(a){return this.query({id:[a]}).pipe(A(function(b){return b.length?b[0]:null}))};h.getChildren=function(a,b){a={parentId:a};if(b===void 0?0:b)a.includearchived=!0;return this.query(a)};h.getDescendants=function(a){return this.executor.get({url:"action/components/"+a+"/descendants",responseConstructor:zed}).pipe(A(JZa))};
h.getPopularRoutingTargets=function(a){var b=this.executor,c=b.post;a=(new sed).setIt((new NO).setComponentId(a));return c.call(b,{url:"/action/components/popular_targets",body:a,responseConstructor:yed}).pipe(A(GZa))};h.fetchComponent=function(a){return this.executor.get({url:"action/components/"+a,responseConstructor:nq}).pipe(A(lq))};
h.query=function(a){var b={};a.id&&(b.id=a.id);a.parentId&&(b.parentId=a.parentId);a.query&&(b.query=a.query);a.includearchived&&(b.includearchived="true");var c;(a=(c=this.activeSession.getTracker())==null?void 0:c.trackerId)&&(b.currentTrackerId=a);return this.executor.get({url:"action/components",options:{params:b},responseConstructor:wed}).pipe(A(FZa))};
h.create=function(a){a=yZa(a);return this.executor.post({url:"action/components",body:a,responseConstructor:ved}).pipe(A(function(b){return lq(X(b,nq,1,jb))}))};
h.update=function(a){var b=a.componentId,c=new nq,d=c.setIt,e=(new mq).setComponentId(a.componentId);e=Io(e,3,a.parentComponentId).setName(a.name).setDescription(a.description).setIsArchived(a.archived);if(a.componentPathInfo){var f=a.componentPathInfo,g=new jq;f.componentPathId&&tr(g,1,f.componentPathId);if(f.componentPathName){var k=f.componentPathName.map(String);Gm(g,2,k)}f.allCustomField&&(f=f.allCustomField.map(nWa),Ni(g,5,f));Mi(e,jq,7,g)}a.accessLimit&&e.setAccessLimit(BVa(a.accessLimit));
a.commentEditState&&e.setCommentEditState(a.commentEditState==="ENABLED"?1:2);Io(e,6,String(a.defaultTemplateId));a.slo&&e.setSlo(LWa(a.slo));a.retentionSettings&&(g=SVa(a.retentionSettings),Mi(e,Lo,15,g));a.fieldOrdering&&Hm(e,17,tbd[a.fieldOrdering]);a.effortSpec&&(g=vWa(a.effortSpec),Mi(e,Zo,18,g));a.team&&e.setTeam(lZa(a.team));var l;e.setTeamSuggestionsList(((l=a.teamSuggestions)!=null?l:[]).map(oZa));a.spamProtection!=="SPAM_PROTECTION_UNSPECIFIED"&&Hm(e,21,rZa(a.spamProtection));a=d.call(c,
e);return this.executor.post({url:"action/components/"+b,body:a,responseConstructor:nq}).pipe(A(lq))};h.move=function(a,b){return this.executor.post({url:"action/components/"+a+"/move",body:null,options:{params:{parentId:b}},responseConstructor:nq}).pipe(A(lq))};h.updateSlo=function(a,b){var c=new ted;b=LWa(b);c=Mi(c,np,2,b,jb);return this.executor.post({url:"action/components/"+a+"/updateSlo",body:c,responseConstructor:nq}).pipe(A(lq))};
h.updateTeam=function(a,b){var c=new ued;b=lZa(Object.assign({},b));c=Mi(c,iq,2,b,jb);return this.executor.post({url:"action/components/"+a+"/updateTeam",body:c,responseConstructor:nq}).pipe(A(lq))};OO.\u0275fac=function(a){return new (a||OO)};OO.\u0275prov=Dc({token:OO,factory:OO.\u0275fac,providedIn:"root"});var PO=function(){this.observableApi=p(OO)};h=PO.prototype;h.get=function(a){return fe(this.observableApi.get(a))};
h.getChildren=function(a,b){return fe(this.observableApi.getChildren(a,b===void 0?!1:b))};h.getDescendants=function(a){return fe(this.observableApi.getDescendants(a))};h.getPopularRoutingTargets=function(a){return fe(this.observableApi.getPopularRoutingTargets(a))};h.fetchComponent=function(a){return fe(this.observableApi.fetchComponent(a))};h.query=function(a){return fe(this.observableApi.query(a))};h.create=function(a){return fe(this.observableApi.create(a))};h.update=function(a){return fe(this.observableApi.update(a))};
h.move=function(a,b){return fe(this.observableApi.move(a,b))};h.updateSlo=function(a,b){return fe(this.observableApi.updateSlo(a,b))};h.updateTeam=function(a,b){return fe(this.observableApi.updateTeam(a,b))};PO.\u0275fac=function(a){return new (a||PO)};PO.\u0275prov=Dc({token:PO,factory:PO.\u0275fac,providedIn:"root"});var RO=function(){uO.call(this,{freshUntil:12E4,ancientAfter:6048E5});this.batchedComponentApi=p(QO);this.recordType="component";this.idForRecord=function(a){return a.componentId}};Y(RO,uO);RO.prototype.fetchOne=function(a){return a==="0"?ce(void 0):this.batchedComponentApi.get(a).pipe(gf(function(){return ce(void 0)}))};RO.prototype.fetchSet=function(a){var b=this;return ie(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(Pm)}))};
RO.\u0275fac=function(a){return new (a||RO)};RO.\u0275prov=Dc({token:RO,factory:RO.\u0275fac,providedIn:"root"});var QO=function(){var a=this;this.observableComponentApi=p(OO);this.batchApiAdapter=p(MO);this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(b){return a.call(b)},split:function(b,c){return a.splitBatch(b,c)}})};
QO.prototype.call=function(a){return a.size===1?this.observableComponentApi.fetchComponent([].concat(q(a))[0]).pipe(A(function(b){return new Map(b?[[b.componentId,b]]:[])})):this.observableComponentApi.query({id:[].concat(q(a))}).pipe(A(function(b){return new Map(b.map(function(c){return[c.componentId,c]}))}))};QO.prototype.splitBatch=function(a,b){return b.get(a)};QO.\u0275fac=function(a){return new (a||QO)};QO.\u0275prov=Dc({token:QO,factory:QO.\u0275fac,providedIn:"root"});var Aed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Aed.messageId)};Y(Aed,W);Aed.messageId="b.ListTemplatesResponse";var Bed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Bed.messageId)};Y(Bed,W);Bed.messageId="b.TemplateResponse";var SO=function(){this.executor=p(bO)};h=SO.prototype;h.get=function(a,b){return this.executor.get({url:"action/components/"+a+"/templates/"+b,responseConstructor:Bed}).pipe(A(KZa))};h.query=function(a){return this.executor.get({url:"action/components/"+a+"/templates",responseConstructor:Aed}).pipe(A(LZa))};h.create=function(a,b){b=EZa(b);return this.executor.post({url:"action/components/"+a+"/templates",responseConstructor:Bed,body:b}).pipe(A(KZa))};
h.update=function(a,b,c){c=EZa(c);return this.executor.post({url:"action/components/"+a+"/templates/"+b,responseConstructor:Bed,body:c}).pipe(A(KZa))};h.delete=function(a,b){return this.executor.delete({url:"action/components/"+a+"/templates/"+b,responseConstructor:null})};SO.\u0275fac=function(a){return new (a||SO)};SO.\u0275prov=Dc({token:SO,factory:SO.\u0275fac,providedIn:"root"});var TO=function(){this.observableApi=p(SO)};h=TO.prototype;
h.get=function(a,b){return fe(this.observableApi.get(a,b))};h.query=function(a){return fe(this.observableApi.query(a))};h.create=function(a,b){return fe(this.observableApi.create(a,b))};h.update=function(a,b,c){return fe(this.observableApi.update(a,b,c))};h.delete=function(a,b){return fe(this.observableApi.delete(a,b))};TO.\u0275fac=function(a){return new (a||TO)};TO.\u0275prov=Dc({token:TO,factory:TO.\u0275fac,providedIn:"root"});var UO=function(){this.bookmarkGroupModified=new qf;this.commentSubmitted=new qf;this.commentRendered=new qf;this.componentModified=new qf;this.contactChipsRevertChanges=new qf;this.customFieldsModified=new qf;this.dashboardPanels={moveDown:new qf,moveUp:new qf,moveToTop:new qf,moveToBottom:new qf,remove:new qf};this.favoritesModified=new qf;this.hotlistCreated=new qf;this.onClickAppMenuIcon=new qf;this.openEditField=new qf;this.sidebarWidthChanged=new qf;this.hotlistChanged=new qf;this.savedSearchModified=
new qf;this.sidebarUpdated=new qf;this.topBarEvents={browseComponents:new qf,manageHotlists:new qf,manageSlos:new qf,setDensity:new qf,openSettings:new qf};this.templateModified=new qf;this.issueViewed=new qf;this.issueEdited=new qf;this.focusCommentBox=new qf;this.scrollToCommentBox=new qf;this.recaptchaSubmitted=new qf;this.missionControlTaskCount=new Mj(void 0);this.openIssueDetailsPageSidebar=new qf;this.closeIssueDetailsPageSidebar=new qf;this.didShowIssueHovercard=new qf};
UO.\u0275fac=function(a){return new (a||UO)};UO.\u0275prov=Dc({token:UO,factory:UO.\u0275fac,providedIn:"root"});var VO=function(){hF.apply(this,arguments)};Y(VO,hF);da.Object.defineProperties(VO.prototype,{routerLinkObj:{configurable:!0,enumerable:!0,set:function(a){this.queryParams=a.queryParams;this.routerLink=a.path;this.fragment=a.fragment}}});VO.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(VO)))(b||VO)}}();VO.\u0275dir=af({type:VO,selectors:[["a","routerLinkObj",""],["area","routerLinkObj",""]],inputs:{routerLinkObj:"routerLinkObj"},standalone:!1,features:[Ef]});var Ced=function(){};
Ced.\u0275fac=function(a){return new (a||Ced)};Ced.\u0275mod=$e({type:Ced});Ced.\u0275inj=Fc({imports:[lF]});var WO=function(){};WO.\u0275fac=function(a){return new (a||WO)};WO.\u0275mod=$e({type:WO});WO.\u0275inj=Fc({imports:[by,Ly,lF,Ced]});var XO=function(){uO.call(this,{freshUntil:3E5,ancientAfter:6048E5});var a=this;this.templatesApi=p(TO);this.appEvents=p(UO);this.recordType="componentTemplates";this.idForRecord=function(b){return b.componentId};this.defaultTemplate$=function(b){return a.watch(b).pipe(ue(Pm),A(function(c){return c.templates}),A(function(c){var d;return(d=c.find(function(e){return e.default}))!=null?d:c[0]}))};this.appEvents.templateModified.pipe(ue(function(b){return!!b&&b!=="0"})).subscribe(function(b){a.poke(b)})};
Y(XO,uO);XO.prototype.fetchOne=function(a){var b=this;return ne(function(){return b.templatesApi.query(a).then(function(c){return{componentId:a,templates:c}})})};XO.\u0275fac=function(a){return new (a||XO)};XO.\u0275prov=Dc({token:XO,factory:XO.\u0275fac,providedIn:"root"});var Ded=function(a,b){this.childIterator_=a[ra.Symbol.iterator]();this.mapFn_=b};Ded.prototype[Symbol.iterator]=function(){return this};Ded.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 Eed=function(a,b){return new Ded(a,b)};var Fed=function(){};Fed.prototype.next=function(){return Ged};var Ged={done:!0,value:void 0};Fed.prototype.__iterator__=function(){return this};var Ied=function(a){if(a instanceof YO||a instanceof Hed||a instanceof ZO)return a;if(typeof a.next=="function")return new YO(function(){return a});if(typeof a[Symbol.iterator]=="function")return new YO(function(){return a[Symbol.iterator]()});if(typeof a.__iterator__=="function")return new YO(function(){return a.__iterator__()});throw Error("Rd");},YO=function(a){this.func_=a};YO.prototype.__iterator__=function(){return new Hed(this.func_())};YO.prototype[Symbol.iterator]=function(){return new ZO(this.func_())};
YO.prototype.toEs6=function(){return new ZO(this.func_())};var Hed=function(a){this.iter_=a};Y(Hed,Fed);Hed.prototype.next=function(){return this.iter_.next()};Hed.prototype[Symbol.iterator]=function(){return new ZO(this.iter_)};Hed.prototype.toEs6=function(){return new ZO(this.iter_)};var ZO=function(a){YO.call(this,function(){return a});this.iter_=a};Y(ZO,YO);ZO.prototype.next=function(){return this.iter_.next()};var $O=function(a,b){this.map_={};this.keys_=[];this.version_=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("fb");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};h=$O.prototype;h.getCount=function(){return this.size};h.getValues=function(){Jed(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};h.getKeys=function(){Jed(this);return this.keys_.concat()};h.containsKey=function(a){return this.has(a)};
h.has=function(a){return Ked(this.map_,a)};h.equals=function(a,b){if(this===a)return!0;if(this.size!=a.getCount())return!1;b=b||Led;Jed(this);for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var Led=function(a,b){return a===b};$O.prototype.isEmpty=function(){return this.size==0};$O.prototype.clear=function(){this.map_={};this.version_=this.size=this.keys_.length=0};$O.prototype.remove=function(a){return this.delete(a)};
$O.prototype.delete=function(a){return Ked(this.map_,a)?(delete this.map_[a],--this.size,this.version_++,this.keys_.length>2*this.size&&Jed(this),!0):!1};var Jed=function(a){if(a.size!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];Ked(a.map_,d)&&(a.keys_[c++]=d);b++}a.keys_.length=c}if(a.size!=a.keys_.length){b={};for(d=c=0;c<a.keys_.length;){var e=a.keys_[c];Ked(b,e)||(a.keys_[d++]=e,b[e]=1);c++}a.keys_.length=d}};h=$O.prototype;
h.get=function(a,b){return Ked(this.map_,a)?this.map_[a]:b};h.set=function(a,b){Ked(this.map_,a)||(this.size+=1,this.keys_.push(a),this.version_++);this.map_[a]=b};h.addAll=function(a){if(a instanceof $O)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])};h.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)}};h.clone=function(){return new $O(this)};
h.transpose=function(){for(var a=new $O,b=0;b<this.keys_.length;b++){var c=this.keys_[b];a.set(this.map_[c],c)}return a};h.keys=function(){return Ied(this.__iterator__(!0)).toEs6()};h.values=function(){return Ied(this.__iterator__(!1)).toEs6()};h.entries=function(){var a=this;return Eed(this.keys(),function(b){return[b,a.get(b)]})};
h.__iterator__=function(a){Jed(this);var b=0,c=this.version_,d=this,e=new Fed;e.next=function(){if(c!=d.version_)throw Error("Sd");if(b>=d.keys_.length)return Ged;var f=d.keys_[b++];return{value:a?f:d.map_[f],done:!1}};return e};var Ked=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Ned=function(a,b){this.maxCount_=a||null;this.cache_=!0;this.evictionCallback_=b;this.map_=new $O;this.head_=new Med("");this.head_.next=this.head_.prev=this.head_},Ped=function(a,b){(b=a.map_.get(b))&&a.cache_&&(b.remove(),Oed(a,b));return b};h=Ned.prototype;h.get=function(a,b){return(a=Ped(this,a))?a.value:b};h.set=function(a,b){var c=Ped(this,a);c?c.value=b:(c=new Med(a,b),this.map_.set(a,c),Oed(this,c))};h.peek=function(){return this.head_.next.value};h.shift=function(){return Qed(this,this.head_.next)};
h.pop=function(){return Qed(this,this.head_.prev)};h.remove=function(a){return(a=this.map_.get(a))?(this.removeNode(a),!0):!1};h.removeNode=function(a){a.remove();this.map_.remove(a.key)};h.getCount=function(){return this.map_.getCount()};h.isEmpty=function(){return this.map_.isEmpty()};h.getKeys=function(){return this.map(function(a,b){return b})};h.getValues=function(){return this.map(function(a){return a})};h.contains=function(a){return this.some(function(b){return b==a})};h.containsKey=function(a){return this.map_.containsKey(a)};
h.clear=function(){Red(this,0)};h.forEach=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)a.call(b,c.value,c.key,this)};h.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};h.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};h.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 Oed=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);a.maxCount_!=null&&Red(a,a.maxCount_)},Red=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)}},Qed=function(a,b){a.head_!=b&&a.removeNode(b);return b.value},Med=function(a,b){this.key=a;this.value=b};
Med.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var aP=function(){this.caches=new Map};aP.prototype.create=function(a,b){if(this.caches.has(a))throw Error("Td`"+a);b=new Sed(b==null?void 0:b.capacity);this.caches.set(a,b);return b};aP.prototype.get=function(a){return this.caches.get(a)};aP.\u0275fac=function(a){return new (a||aP)};aP.\u0275prov=Dc({token:aP,factory:aP.\u0275fac,providedIn:"root"});var Sed=function(a){this.lruCache=new Ned(a)};Sed.prototype.get=function(a){return this.lruCache.get(a)};
Sed.prototype.put=function(a,b){b!==void 0&&this.lruCache.set(a,b);return b};Sed.prototype.remove=function(a){this.lruCache.remove(a)};Sed.prototype.removeAll=function(){this.lruCache.clear()};var pq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,pq.messageId)};Y(pq,W);pq.prototype.getIt=function(){return X(this,Ep,18,jb)};pq.prototype.setIt=function(a){return Mi(this,Ep,18,a,jb)};pq.messageId="b.Hotlist";var Ted=RegExp("action/issues/([0-9]+)/"),Ued=new dd("ETAG_URL_TRANSFORMERS"),Ved=["POST","PUT","DELETE"],cP=function(){this.etagStore=p(bP)};cP.prototype.intercept=function(a,b){if(Ved.includes(a.method)){var c=this.etagStore.getEtag(a);c&&a.headers&&(a=a.clone({headers:a.headers.set("If-Match",c)}))}Ted.exec(a.url);return Wed(this,a,b)};var Wed=function(a,b,c){return c.handle(b).pipe(Af(function(d){d instanceof wy&&(d=d.headers,d.has("etag")&&a.etagStore.setEtag(b,d.get("etag")))}))};
cP.\u0275fac=function(a){return new (a||cP)};cP.\u0275prov=Dc({token:cP,factory:cP.\u0275fac,providedIn:"root"});var bP=function(){this.transformers=p(Ued,{optional:!0});this.etagStore={}};bP.prototype.setEtag=function(a,b){b!=null&&(a=Xed(this,a.url),this.etagStore[a]=b)};bP.prototype.getEtag=function(a){a=Xed(this,a.url);return this.etagStore[a]};var Xed=function(a,b){var c;a=m((c=a.transformers)!=null?c:[]);for(c=a.next();!c.done;c=a.next())if(c=c.value,(c=c(b))&&c!==b)return c;return b};
bP.\u0275fac=function(a){return new (a||bP)};bP.\u0275prov=Dc({token:bP,factory:bP.\u0275fac,providedIn:"root"});var Yed={provide:ABc,useExisting:cP,multi:!0};var Gp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gp,W);h=Gp.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getPosition=function(){return Bm(this,2)};h.setPosition=function(a){return an(this,2,a)};h.getIssue=function(){return X(this,Hp,3)};h.setIssue=function(a){return Mi(this,Hp,3,a)};var Zed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zed,W);h=Zed.prototype;h.getHotlistId=function(){return pn(this,1)};h.setHotlistId=function(a){return Io(this,1,a)};h.setOrderBy=function(a){return Fm(this,2,a)};h.setPageSize=function(a){return an(this,3,a)};h.setPageToken=function(a){return Fm(this,4,a)};h.getFilter=function(){return ui(this,5)};h.setFilter=function(a){return Fm(this,5,a)};h.setView=function(a){return Hm(this,6,a)};
h.setIssueDescriptionView=function(a){return Hm(this,7,a)};h.getQuery=function(){return ui(this,8)};h.setQuery=function(a){return Fm(this,8,a)};h.clearQuery=function(){Hw(this,8)};var $ed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($ed,W);h=$ed.prototype;h.getHotlistId=function(){return pn(this,1)};h.setHotlistId=function(a){return Io(this,1,a)};h.getIssueId=function(){return pn(this,2)};h.getIssueId_asString=function(){return tn(this,2)};h.setIssueId=function(a){return Io(this,2,a)};var afd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,afd.messageId)};Y(afd,W);afd.prototype.getIt=function(){return X(this,Zed,1,jb)};afd.prototype.setIt=function(a){return Mi(this,Zed,1,a,jb)};afd.messageId="b.ListHotlistEntriesRequest";var dP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dP,W);dP.prototype.getNextPageToken=function(){return ui(this,2)};dP.prototype.getTotalSize=function(){return Bm(this,3)};dP.prototype.getTotalSizeAccurate=function(){return Fi(this,4)};dP.prototype.getMaySkipResults=function(){return Fi(this,5)};var bfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,bfd.messageId)};Y(bfd,W);bfd.prototype.getIt=function(){return X(this,dP,1,jb)};bfd.prototype.setIt=function(a){return Mi(this,dP,1,a,jb)};bfd.messageId="b.ListHotlistEntriesResponse";var eP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,eP.messageId)};Y(eP,W);eP.prototype.addHotlists=function(a){Np(this,1,pq,a,void 0,jb)};eP.prototype.removeHotlists=function(a){return Kw(this,1,pq,a,jb)};eP.messageId="b.ListHotlistsResponse";var gP=function(){this.hotlistApi=p(fP);var a=p(aP);this.hotlistCache=a.get("hotlists-second-level-cache")||a.create("hotlists-second-level-cache",{capacity:1E3})};h=gP.prototype;h.get=function(a){var b=this.hotlistCache.get(String(a))||this.hotlistApi.get(a);return this.hotlistCache.put(String(a),b)};h.repositionHotlistIssue=function(a,b,c){return this.hotlistApi.repositionHotlistIssue(a,b,c)};h.createHotlist=function(a,b){return this.hotlistApi.createHotlist(a,b)};h.queryHotlists=function(a){return this.hotlistApi.queryHotlists(a)};
h.archiveHotlist=function(a,b){return this.hotlistApi.archiveHotlist(a,b)};h.updateMetadata=function(a,b){return this.hotlistApi.updateMetadata(a,b)};h.getPagedHotlistContent=function(a,b,c,d,e){return this.hotlistApi.getPagedHotlistContent(a,b,c,d,e)};gP.\u0275fac=function(a){return new (a||gP)};gP.\u0275prov=Dc({token:gP,factory:gP.\u0275fac,providedIn:"root"});var hP=function(){this.executor=p(bO);this.etagStore=p(bP);this.bufferTimeMs=50};
hP.prototype.call=function(a){a=Array.from(a,function(b){return String(b)});return a.length===0?ce(new Map):a.length===1?this.executor.get({url:"action/hotlists/"+a[0],responseConstructor:pq}).pipe(A(qq),A(function(b){var c=new Map;c.set(String(b.hotlistId),b);return c})):this.executor.get({url:"action/hotlists",responseConstructor:eP,options:{params:{id:a}}}).pipe(A(function(b){var c=new Map;b=m(Bi(b,pq,1,Ci(),jb).map(qq));for(var d=b.next();!d.done;d=b.next())d=d.value,c.set(String(d.hotlistId),
d);return c}))};hP.prototype.split=function(a,b){if(b=b.get(a)){var c=b.etag;if(c){var d=this.etagStore;c!=null&&(a=Xed(d,"action/hotlists/"+a),d.etagStore[a]=c)}}return b};hP.\u0275fac=function(a){return new (a||hP)};hP.\u0275prov=Dc({token:hP,factory:hP.\u0275fac,providedIn:"root"});var iP=function(){this.executor=p(bO);this.batchApiConfig=p(hP);this.batchApiAdapter=p(MO);this.adaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig)};h=iP.prototype;
h.get=function(a){var b=this;return this.adaptedGet(String(a)).pipe(yf(function(c){return c?ce(c):b.executor.get({url:"action/hotlists/"+a,responseConstructor:pq}).pipe(A(qq))}))};h.bulkLoad=function(a){var b=this;return a.length===0?ce([]):oe(a.map(function(c){return b.adaptedGet(String(c))})).pipe(A(function(c){return c.filter(Pm)}))};
h.repositionHotlistIssue=function(a,b,c){var d=(new $ed).setHotlistId(Number(a)).setIssueId(b);b=(new Gp).setIssueId(Number(b)).setPosition(c);d=Mi(d,Gp,3,b);return this.executor.put({url:"action/hotlists/"+a+"/entry",body:d,responseConstructor:null})};h.createHotlist=function(a,b){a=(new Ep).setName(a);b&&a.setDescription(b);return this.executor.post({url:"action/hotlists",body:(new pq).setIt(a),responseConstructor:pq}).pipe(A(qq))};
h.queryHotlists=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:eP,options:{params:{q:a}}}).pipe(A(function(b){var c;return((c=Bi(b,pq,1,Ci(),jb))!=null?c:[]).map(qq)}))};h.archiveHotlist=function(a,b){return this.executor.post({url:"action/hotlists/"+a+"/archive",body:MZa(b),responseConstructor:pq}).pipe(A(qq))};
h.updateMetadata=function(a,b){var c={};b.etag&&(c["If-Match"]=String(b.etag));return this.executor.post({url:"action/hotlists/"+a,body:MZa(b),options:{headers:c},responseConstructor:pq}).pipe(A(qq))};
h.getPagedHotlistContent=function(a,b,c,d,e){var f={};e&&(f.trackerIds=e);d=d.map(function(g){return{field:{type:g.fieldId.type,customFieldId:g.fieldId.customFieldId,customFieldName:g.fieldId.customFieldName},direction:g.direction}});b=(new Zed).setHotlistId(a).setOrderBy(uVa(d)).setPageSize(c).setPageToken("start_index:"+c*(b-1));return this.executor.post({url:"action/hotlists/"+a+"/entries",options:{params:Object.assign({},f)},body:(new afd).setIt(b),responseConstructor:bfd}).pipe(A(function(g){return HXa(g.getIt())}))};
iP.\u0275fac=function(a){return new (a||iP)};iP.\u0275prov=Dc({token:iP,factory:iP.\u0275fac,providedIn:"root"});var fP=function(){this.observableApi=p(iP)};h=fP.prototype;h.get=function(a){return fe(this.observableApi.get(a))};h.bulkLoad=function(a){return fe(this.observableApi.bulkLoad(a))};h.repositionHotlistIssue=function(a,b,c){return fe(this.observableApi.repositionHotlistIssue(a,b,c))};h.createHotlist=function(a,b){return fe(this.observableApi.createHotlist(a,b))};h.queryHotlists=function(a){return fe(this.observableApi.queryHotlists(a))};
h.archiveHotlist=function(a,b){return fe(this.observableApi.archiveHotlist(a,b))};h.updateMetadata=function(a,b){return fe(this.observableApi.updateMetadata(a,b))};h.getPagedHotlistContent=function(a,b,c,d,e){return fe(this.observableApi.getPagedHotlistContent(a,b,c,d,e))};fP.\u0275fac=function(a){return new (a||fP)};fP.\u0275prov=Dc({token:fP,factory:fP.\u0275fac,providedIn:"root"});var NZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(NZa,W);NZa.prototype.getIt=function(){return X(this,Xp,6)};NZa.prototype.setIt=function(a){return Mi(this,Xp,6,a)};var cfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,cfd.messageId)};Y(cfd,W);cfd.messageId="b.Favorite";var dfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,dfd.messageId)};Y(dfd,W);dfd.prototype.getComponentsList=function(){return Bi(this,nq,1,Ci(),jb)};dfd.messageId="b.UserRecentComponentResponse";var jP=function(){this.executor=p(bO)};h=jP.prototype;h.getUserBookmarks=function(){return this.executor.post({url:"action/getUserBookmarks",body:null,responseConstructor:BO}).pipe(A(function(a){return HYa(a.getIt())}))};h.getRecentComponents=function(){return this.executor.get({url:"action/current_user/recent_components",responseConstructor:dfd}).pipe(A(zZa))};h.getUserBookmark=function(a,b){return this.executor.get({url:"action/favorites/"+a+"/"+b,responseConstructor:cfd}).pipe(A(OZa))};
h.addUserBookmark=function(a){a=(new NZa).setIt(GYa(a));return this.executor.post({url:"action/favorites",body:a,responseConstructor:cfd}).pipe(A(OZa))};h.removeUserBookmark=function(a){return this.executor.post({url:"action/removeUserBookmark",body:GYa(a),responseConstructor:null})};
var efd=function(a,b,c){var d={};d.id=String(b);c.voted!==null&&(d.vote=String(!!c.voted));c.starred!==null&&(d.star=String(!!c.starred));c.notificationSubscription!==null&&(d.subscription=c.notificationSubscription);return a.executor.post({url:"action/current_user/issue_data",body:null,options:{params:d},responseConstructor:null})};jP.\u0275fac=function(a){return new (a||jP)};jP.\u0275prov=Dc({token:jP,factory:jP.\u0275fac,providedIn:"root"});var kP=function(){this.observableApi=p(jP)};h=kP.prototype;
h.getUserBookmarks=function(){return fe(this.observableApi.getUserBookmarks())};h.getRecentComponents=function(){return fe(this.observableApi.getRecentComponents())};h.getUserBookmark=function(a,b){return fe(this.observableApi.getUserBookmark(a,b))};h.addUserBookmark=function(a){return fe(this.observableApi.addUserBookmark(a))};h.removeUserBookmark=function(a){return fe(this.observableApi.removeUserBookmark(a))};kP.\u0275fac=function(a){return new (a||kP)};
kP.\u0275prov=Dc({token:kP,factory:kP.\u0275fac,providedIn:"root"});var lP=function(){uO.call(this,{freshUntil:3E5});this.observableHotlistResources=p(iP);this.recordType="hotlist";this.idForRecord=function(a){return String(a.hotlistId)}};Y(lP,uO);lP.prototype.fetchOne=function(a){return a?this.observableHotlistResources.get(a).pipe(gf(function(b){return b.status===403?ce(void 0):de(function(){return b})})):ce(void 0)};lP.prototype.fetchSet=function(a){return this.observableHotlistResources.bulkLoad(a.filter(Boolean)).pipe(A(function(b){return(b!=null?b:[]).filter(Pm)}))};
lP.prototype.doSave=function(a){return this.observableHotlistResources.updateMetadata(a.hotlistId,a)};lP.\u0275fac=function(a){return new (a||lP)};lP.\u0275prov=Dc({token:lP,factory:lP.\u0275fac,providedIn:"root"});var rq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rq,W);rq.prototype.getIt=function(){return X(this,Up,12)};rq.prototype.setIt=function(a){return Mi(this,Up,12,a)};var ffd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ffd.messageId)};Y(ffd,W);ffd.prototype.setSearch=function(a,b){Gw(this,1,rq,a,b,jb)};ffd.messageId="b.BatchGetSearchesResponse";var mP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,mP.messageId)};Y(mP,W);mP.prototype.getSearch=function(){return X(this,rq,1,jb)};mP.prototype.setSearch=function(a){Mi(this,rq,1,a,jb)};mP.prototype.clearSearch=function(){Hw(this,1,jb)};mP.messageId="b.SearchResponse";var nP=function(){this.jspbExecutor=p(bO)};h=nP.prototype;h.get=function(a){return this.jspbExecutor.get({url:"action/saved_searches/"+a,responseConstructor:mP}).pipe(A(QZa))};h.batchGet=function(a){if(a.length>500)throw Error("Ud");return this.jspbExecutor.get({url:"action/saved_searches?"+a.map(function(b){return"id="+b}).join("&"),responseConstructor:ffd}).pipe(A(RZa))};
h.create=function(a,b){a=(new rq).setIt((new Up).setName(a).setQuery(b));return this.jspbExecutor.post({url:"action/saved_searches",body:a,responseConstructor:mP}).pipe(A(QZa))};h.update=function(a,b){b=(new rq).setIt(BYa(b));return this.jspbExecutor.post({url:"action/saved_searches/"+a,body:b,responseConstructor:mP}).pipe(A(QZa))};h.delete=function(a){return this.jspbExecutor.delete({url:"action/saved_searches/"+a,responseConstructor:null})};nP.\u0275fac=function(a){return new (a||nP)};
nP.\u0275prov=Dc({token:nP,factory:nP.\u0275fac,providedIn:"root"});var oP=function(){this.observableResources=p(nP)};h=oP.prototype;h.get=function(a){return fe(this.observableResources.get(a))};h.batchGet=function(a){return fe(this.observableResources.batchGet(a))};h.create=function(a,b){return fe(this.observableResources.create(a,b))};h.update=function(a,b){return fe(this.observableResources.update(a,b))};h.delete=function(a){return fe(this.observableResources.delete(a))};
oP.\u0275fac=function(a){return new (a||oP)};oP.\u0275prov=Dc({token:oP,factory:oP.\u0275fac,providedIn:"root"});var pP=function(){uO.call(this);this.savedSearchApi=p(nP);this.recordType="savedSearch";this.idForRecord=function(a){return String(a.searchId)}};Y(pP,uO);pP.prototype.fetchOne=function(a){return this.savedSearchApi.get(a)};pP.prototype.fetchSet=function(a){return this.savedSearchApi.batchGet(a)};pP.\u0275fac=function(a){return new (a||pP)};pP.\u0275prov=Dc({token:pP,factory:pP.\u0275fac,providedIn:"root"});var qP=function(){uO.call(this,{freshUntil:3E5});var a=this;this.userApi=p(jP);this.hotlistApi=p(iP);this.bookmarkGroupApi=p(CO);this.appEvents=p(UO);this.hotlistFridge=p(lP);this.savedSearchFridge=p(pP);this.bookmarkGroupFridge=p(DO);this.activeSession=p(uu);this.recordType="user-bookmark";this.isEqual=mm;this.idForRecord=function(b){return b.id};this.pokeAll=function(){a.poke("current-user-bookmark-id",void 0)};te(this.appEvents.hotlistChanged,this.appEvents.hotlistCreated,this.appEvents.bookmarkGroupModified,
this.appEvents.savedSearchModified,this.appEvents.favoritesModified).subscribe(function(){a.poke("current-user-bookmark-id")})};Y(qP,uO);var gfd=function(a){var b=a.activeSession.getUserEmail();return b?a.hotlistApi.queryHotlists("include_archived:true owner:"+b):ce([])},hfd=function(a){var b=a.activeSession.getUserEmail();return b?ne(function(){return a.bookmarkGroupApi.query("include_archived:true owner:"+b)}):ce([])};
qP.prototype.fetchOne=function(){var a=this;return oe([this.userApi.getUserBookmarks(),gfd(this),hfd(this)]).pipe(Af(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;c=m(c);for(var e=c.next();!e.done;e=c.next())a.bookmarkGroupFridge.announce(e.value);c=m(b.bookmarkGroups);for(e=c.next();!e.done;e=c.next())a.bookmarkGroupFridge.announce(e.value);d=m(d);for(c=d.next();!c.done;c=d.next())a.hotlistFridge.announce(c.value);d=m(b.hotlists);for(c=d.next();!c.done;c=d.next())a.hotlistFridge.announce(c.value);
b=m(b.savedSearches);for(d=b.next();!d.done;d=b.next())a.savedSearchFridge.announce(d.value)}),A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;d=h_a([].concat(q(b.hotlists),q(d)),[].concat(q(b.bookmarkGroups),q(c)),b.savedSearches);return i_a(d,b)}))};
var ifd=function(a){return a.watch("current-user-bookmark-id",void 0).pipe(ue(Pm))},rP=function(a){return ifd(a).pipe(A(function(b){var c,d=(c=b==null?void 0:b.hotlists)!=null?c:[],e;b=(e=b==null?void 0:b.bookmarkGroups.flatMap(function(f){return f.sublinks}).filter(Pm).filter(function(f){return f.resourceType==="HOTLIST"}))!=null?e:[];return[].concat(q(b),q(d))}),A(function(b){return sq(b,function(c){return c.id})}),A(function(b){return f_a(b)}),A(function(b){return b.map(function(c){return c.id})}),
yf(function(b){return a.hotlistFridge.watchSet(b)}))},jfd=function(a){return ifd(a).pipe(A(function(b){var c;return(c=b==null?void 0:b.savedSearches.map(function(d){return d.id}))!=null?c:[]}),A(function(b){return b.filter(Pm)}),yf(function(b){return a.savedSearchFridge.watchSet(b)}))};qP.\u0275fac=function(a){return new (a||qP)};qP.\u0275prov=Dc({token:qP,factory:qP.\u0275fac,providedIn:"root"});
var f_a=gn(function(a){return a.name},jn,"ASCENDING"),e_a=gn(function(a){return a.name},jn,"ASCENDING"),g_a=gn(function(a){return a.name},jn,"ASCENDING");var k_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(k_a,W);k_a.prototype.getIt=function(){return X(this,Xo,14)};k_a.prototype.setIt=function(a){return Mi(this,Xo,14,a)};var Gq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gq,W);Gq.prototype.getIt=function(){return X(this,Vo,13)};Gq.prototype.setIt=function(a){return Mi(this,Vo,13,a)};var sP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,sP.messageId)};Y(sP,W);sP.prototype.getIt=function(){return X(this,Xo,2,jb)};sP.prototype.setIt=function(a){return Mi(this,Xo,2,a,jb)};sP.messageId="b.CustomFieldResponse";var kfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kfd,W);h=kfd.prototype;h.getCustomFieldsList=function(){return Bi(this,Xo,1,Ci())};h.setCustomFieldsList=function(a){return Ni(this,1,a)};h.addCustomFields=function(a){Np(this,1,Xo,a)};h.getNextPageToken=function(){return ui(this,2)};h.getTotalSize=function(){return Bm(this,3)};var lfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,lfd.messageId)};Y(lfd,W);lfd.prototype.getIt=function(){return X(this,kfd,4,jb)};lfd.prototype.setIt=function(a){return Mi(this,kfd,4,a,jb)};lfd.messageId="b.ListCustomFieldsResponse";var tP=function(){this.executor=p(bO)};h=tP.prototype;h.get=function(a){return this.executor.get({url:"action/custom_fields/"+Number(a),responseConstructor:sP}).pipe(A(j_a))};h.getResource=function(a){return this.executor.get({url:"action/custom_fields/"+a,responseConstructor:sP}).pipe(A(j_a))};h.create=function(a,b){b=l_a(b);return this.executor.post({url:"action/custom_fields",options:{params:{componentId:a}},body:b,responseConstructor:sP}).pipe(A(j_a))};
h.update=function(a,b,c){b=Number(b);c=l_a(c);return this.executor.post({url:"action/custom_fields/"+b,options:{params:{componentId:a}},body:c,responseConstructor:sP}).pipe(A(j_a))};h.delete=function(a,b){return this.executor.delete({url:"action/custom_fields/"+Number(b),options:{params:{componentId:a}},responseConstructor:null})};
h.query=function(a){return this.executor.get({url:"action/custom_fields",options:{params:{query:a.query,trackerIds:a.trackerIds,pageSize:a.pageSize||0,pageToken:a.pageToken||""}},responseConstructor:lfd}).pipe(A(m_a))};tP.\u0275fac=function(a){return new (a||tP)};tP.\u0275prov=Dc({token:tP,factory:tP.\u0275fac,providedIn:"root"});var uP=function(){this.observableApi=p(tP)};h=uP.prototype;h.get=function(a){return fe(this.observableApi.get(a))};h.getResource=function(a){return fe(this.observableApi.getResource(a))};
h.create=function(a,b){return fe(this.observableApi.create(a,b))};h.update=function(a,b,c){return fe(this.observableApi.update(a,b,c))};h.delete=function(a,b){return fe(this.observableApi.delete(a,b))};h.query=function(a){return fe(this.observableApi.query(a))};uP.\u0275fac=function(a){return new (a||uP)};uP.\u0275prov=Dc({token:uP,factory:uP.\u0275fac,providedIn:"root"});var vP=function(){uO.call(this,{freshUntil:18E5,ancientAfter:2592E6});this.api=p(tP);this.recordType="customFieldResource";this.idForRecord=function(a){return String(a.customFieldId)}};Y(vP,uO);vP.prototype.fetchOne=function(a){return this.api.getResource(a).pipe(gf(function(b){console.error("error fetching custom field "+a,b);return ce(void 0)}))};vP.\u0275fac=function(a){return new (a||vP)};vP.\u0275prov=Dc({token:vP,factory:vP.\u0275fac,providedIn:"root"});var wP=function(){uO.call(this);this.api=p(zO);this.recordType="EnrichmentCategory";this.idForRecord=function(a){return a.name};this.isEqual=mm};Y(wP,uO);wP.prototype.fetchOne=function(a){return aed(this.api,a)};wP.prototype.fetchSet=function(a){var b=this;return ie(a.map(function(c){return b.fetchOne(c)}))};wP.\u0275fac=function(a){return new (a||wP)};wP.\u0275prov=Dc({token:wP,factory:wP.\u0275fac,providedIn:"root"});var uq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uq,W);var vq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vq.messageId)};Y(vq,W);h=vq.prototype;h.getId=function(){return pn(this,1,void 0,jb)};h.getId_asLegacyNumberOrString=function(){return Cp(this,1,void 0,jb)};h.getId_asString=function(){return tn(this,1,void 0,jb)};h.setId=function(a){return vn(this,1,a,void 0,jb)};h.setTriage=function(a){return Mi(this,uq,2,a,jb)};vq.messageId="b.IssueExperiments";var yq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yq,W);yq.prototype.getName=function(){return ui(this,1)};yq.prototype.setName=function(a){return oj(this,1,a)};yq.prototype.hasName=function(){return im(this,1)};yq.prototype.getNameOrUndefined=function(){return Sw(this,1)};var H_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(H_a,W);h=H_a.prototype;h.getPhasesList=function(){return wn(this,1,Ci())};h.setPhasesList=function(a){return cx(this,1,a)};h.getSubphasesList=function(){return wn(this,2,Ci())};h.setSubphasesList=function(a){return cx(this,2,a)};h.getValue=function(){return X(this,Vo,3)};h.setValue=function(a){return Mi(this,Vo,3,a)};h.hasValue=function(){return xi(this,Vo,3)};var zq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zq,W);zq.prototype.getCustomFieldId=function(){return pn(this,1)};zq.prototype.getCustomFieldId_asString=function(){return tn(this,1)};zq.prototype.setCustomFieldId=function(a){return vn(this,1,a)};zq.prototype.hasCustomFieldId=function(){return on(this,1)};var B_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(B_a,W);h=B_a.prototype;h.getHotlistIdsList_asLegacyNumberOrString=function(a){return K4a(this,1,Ci(a))};h.getHotlistIdsList_asString=function(){return Qm(this,1)};h.setHotlistIdsList=function(a){return tr(this,1,a)};h.addHotlistIds=function(a,b){return $w(this,1,a,b)};h.addAllHotlistIds=function(a){ax(this,1,a)};h.removeHotlistIds=function(a){return hyc(this,1,a)};h.getPhasesList=function(){return wn(this,3,Ci())};
h.setPhasesList=function(a){return cx(this,3,a)};h.getSubphasesList=function(){return wn(this,4,Ci())};h.setSubphasesList=function(a){return cx(this,4,a)};var t_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(t_a,W);var y_a=[1,2];var xq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xq,W);h=xq.prototype;h.getScope=function(){return ui(this,1)};h.setScope=function(a){return oj(this,1,a)};h.setConfig=function(a){Gw(this,3,t_a,a)};h.getId=function(){return pn(this,4)};h.getId_asLegacyNumberOrString=function(){return Cp(this,4)};h.getId_asString=function(){return tn(this,4)};h.setId=function(a){return vn(this,4,a)};h.getDisplayName=function(){return ui(this,5)};
h.setDisplayName=function(a){return oj(this,5,a)};h.getDisplayColumns=function(){return X(this,Kn,6)};h.setDisplayColumns=function(a){Mi(this,Kn,6,a)};var xP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xP.messageId)};Y(xP,W);h=xP.prototype;h.getId=function(){return pn(this,1,void 0,jb)};h.getId_asLegacyNumberOrString=function(){return Cp(this,1,void 0,jb)};h.getId_asString=function(){return tn(this,1,void 0,jb)};h.setId=function(a){return vn(this,1,a,void 0,jb)};h.setTriage=function(a){return Gw(this,2,xq,a,void 0,jb)};xP.messageId="b.TeamExperiments";var O_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(O_a,W);h=O_a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getAddMask=function(){return X(this,Cq,2)};h.getMutableAddMask=function(){return Ii(this,Cq,2)};h.setAddMask=function(a){return Mi(this,Cq,2,a)};h.getAdd=function(){return X(this,zp,3)};h.setAdd=function(a){return Mi(this,zp,3,a)};
h.getRemoveMask=function(){return X(this,Cq,4)};h.getMutableRemoveMask=function(){return Ii(this,Cq,4)};h.setRemoveMask=function(a){return Mi(this,Cq,4,a)};h.getRemove=function(){return X(this,zp,5)};h.setRemove=function(a){return Mi(this,zp,5,a)};h.getIssueComment=function(){return X(this,Kp,6)};h.setIssueComment=function(a){Mi(this,Kp,6,a)};h.hasIssueComment=function(){return xi(this,Kp,6)};h.setSignificanceOverride=function(a){return Hm(this,7,a)};var Nq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nq,W);Nq.prototype.getQuery=function(){return ui(this,1)};Nq.prototype.setQuery=function(a){return Fm(this,1,a)};Nq.prototype.clearQuery=function(){Hw(this,1)};var yP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yP,W);yP.prototype.getIssueId=function(){return pn(this,1)};yP.prototype.getIssueId_asString=function(){return tn(this,1)};yP.prototype.setIssueId=function(a){return Io(this,1,a)};var X_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(X_a,W);h=X_a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return tn(this,2)};h.setComponentId=function(a){return Io(this,2,a)};var E0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(E0a,W);E0a.prototype.getRelation=function(){return wi(this,1)};E0a.prototype.setRelation=function(a){return Hm(this,1,a)};var D0a=function(a,b){return Yo(a,2,b)};var mfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mfd,W);h=mfd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getReason=function(){return wi(this,2)};h.setReason=function(a){return Hm(this,2,a)};h.setSignificanceOverride=function(a){return Hm(this,3,a)};var t0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(t0a,W);h=t0a.prototype;h.getQuery=function(){return ui(this,1)};h.setQuery=function(a){return Fm(this,1,a)};h.clearQuery=function(){Hw(this,1)};h.setOrderBy=function(a){return Fm(this,2,a)};h.setPageSize=function(a){return an(this,3,a)};h.setPageToken=function(a){return Fm(this,4,a)};h.setView=function(a){return Hm(this,5,a)};h.setIssueDescriptionView=function(a){return Hm(this,6,a)};var U_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(U_a,W);h=U_a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return tn(this,2)};h.setComponentId=function(a){return Io(this,2,a)};h.setSignificanceOverride=function(a){return Hm(this,3,a)};var Fq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fq,W);Fq.prototype.getIssueId=function(){return pn(this,1)};Fq.prototype.getIssueId_asString=function(){return tn(this,1)};Fq.prototype.setIssueId=function(a){return Io(this,1,a)};var zP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zP,W);zP.prototype.getIssueId=function(){return pn(this,1)};zP.prototype.getIssueId_asString=function(){return tn(this,1)};zP.prototype.setIssueId=function(a){return Io(this,1,a)};zP.prototype.setSignificanceOverride=function(a){return Hm(this,2,a)};var k0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(k0a,W);h=k0a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getRetention=function(){return wi(this,2)};h.setRetention=function(a){return Hm(this,2,a)};h.setSignificanceOverride=function(a){return Hm(this,3,a)};var nfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,nfd.messageId)};Y(nfd,W);nfd.prototype.getIt=function(){return X(this,mfd,3,jb)};nfd.prototype.setIt=function(a){return Mi(this,mfd,3,a,jb)};nfd.messageId="b.DeleteIssueRequest";var z0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(z0a,W);var $_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($_a,W);h=$_a.prototype;h.getFieldName=function(){return ui(this,1)};h.setFieldName=function(a){return oj(this,1,a)};h.getValue=function(){return ui(this,2)};h.setValue=function(a){return oj(this,2,a)};h.hasValue=function(){return im(this,2)};h.getCustomFieldValue=function(){return X(this,Gq,5)};h.setCustomFieldValue=function(a){return Mi(this,Gq,5,a)};h.clearCustomFieldValue=function(){return Hw(this,5)};var Dq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Dq.messageId)};Y(Dq,W);Dq.prototype.getIt=function(){return X(this,Q_a,5,jb)};Dq.prototype.setIt=function(a){return Mi(this,Q_a,5,a,jb)};Dq.messageId="b.GetRetainedAccessPrincipalsRequest";var Kq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Kq.messageId)};Y(Kq,W);Kq.prototype.getIt=function(){return X(this,Gp,4,jb)};Kq.prototype.setIt=function(a){return Mi(this,Gp,4,a,jb)};Kq.messageId="b.HotlistIssue";var Pq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Pq,W);Pq.prototype.getIt=function(){return X(this,Hp,23)};Pq.prototype.setIt=function(a){return Mi(this,Hp,23,a)};var n0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(n0a,W);n0a.prototype.getIt=function(){return X(this,o0a,6)};n0a.prototype.setIt=function(a){return Mi(this,o0a,6,a)};var c0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(c0a,W);c0a.prototype.getIt=function(){return X(this,O_a,7)};c0a.prototype.setIt=function(a){return Mi(this,O_a,7,a)};var Lq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lq,W);Lq.prototype.setTrackerIdsList=function(a){return xc(this,6,a,Hb)};Lq.prototype.getIt=function(){return X(this,t0a,7)};Lq.prototype.setIt=function(a){return Mi(this,t0a,7,a)};var w0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(w0a,W);var v0a=function(a,b){return Mi(a,Lq,1,b)},y0a=function(a,b){Ni(a,3,b)},B0a=function(a,b){Mi(a,vq,4,b)},C0a=function(a,b){Mi(a,E0a,5,b)};var W_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(W_a,W);W_a.prototype.getIt=function(){return X(this,X_a,4)};W_a.prototype.setIt=function(a){return Mi(this,X_a,4,a)};var Mq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Mq.messageId)};Y(Mq,W);Mq.prototype.getIt=function(){return X(this,Nq,4,jb)};Mq.prototype.setIt=function(a){return Mi(this,Nq,4,a,jb)};Mq.messageId="b.ListRecentEventsForIssuesRequest";var ofd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ofd.messageId)};Y(ofd,W);ofd.prototype.getIt=function(){return X(this,yP,3,jb)};ofd.prototype.setIt=function(a){return Mi(this,yP,3,a,jb)};ofd.messageId="b.MarkAsVulnerabilityRequest";var T_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(T_a,W);T_a.prototype.getIt=function(){return X(this,U_a,4)};T_a.prototype.setIt=function(a){return Mi(this,U_a,4,a)};var AP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,AP.messageId)};Y(AP,W);AP.prototype.getIt=function(){return X(this,wp,9,jb)};AP.prototype.setIt=function(a){return Mi(this,wp,9,a,jb)};AP.messageId="b.StatusUpdate";var Eq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Eq.messageId)};Y(Eq,W);Eq.prototype.getIt=function(){return X(this,Fq,3,jb)};Eq.prototype.setIt=function(a){return Mi(this,Fq,3,a,jb)};Eq.messageId="b.UnCcUserActionRequest";var pfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,pfd.messageId)};Y(pfd,W);pfd.prototype.getIt=function(){return X(this,zP,2,jb)};pfd.prototype.setIt=function(a){return Mi(this,zP,2,a,jb)};pfd.messageId="b.UndeleteIssueRequest";var qfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,qfd.messageId)};Y(qfd,W);qfd.prototype.getIt=function(){return X(this,Vcd,5,jb)};qfd.prototype.setIt=function(a){return Mi(this,Vcd,5,a,jb)};qfd.messageId="b.UpdateIssueAccessLimitRequest";var e0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(e0a,W);e0a.prototype.setSignificanceOverride=function(a){return Gn(this,4,a)};var l0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(l0a,W);l0a.prototype.getIt=function(){return X(this,k0a,5)};l0a.prototype.setIt=function(a){return Mi(this,k0a,5,a)};var L0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(L0a,W);h=L0a.prototype;h.getIssueIdsList=function(){return Qw(this,2,1)};h.getIssueIdsList_asString=function(){return Qm(this,2)};h.setIssueIdsList=function(a){return xc(this,2,a,Hb)};h.addIssueIds=function(a){return zc(this,2,Hb,a,void 0,Pb)};h.setIssueIds=function(a){zc(this,2,Hb,void 0,a,Pb,void 0,1)};var rfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rfd,W);rfd.prototype.setSignificanceOverride=function(a){return oj(this,3,a)};var i1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(i1a,W);var g1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(g1a,W);var sfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sfd,W);sfd.prototype.getField=function(){return ui(this,1)};var f1a=[3,4];var o1a=new ql("M/d/yyyy");var r1a=new RegExp(/^(?:https?:\/\/)?([\w-]+)-review\./.source+/(?:googlesource|git\.corp\.google)\.com/.source+/\/c\/([\w-\/\.]+)\/\+\/(\d{1,20})/.source+/(?:[^\d].*)?$/.source);var y1a=new Set(["blockedById","blockingId","duplicateId","parentIssueIds","childIssueIds"]);var f2a=function(){this.updates=[];this.hasInitialUpdate=!1;this.summary=[]},g2a=function(a,b){a.updates.push(b);a.hasInitialUpdate=a.hasInitialUpdate||b.version===0;a.author=a.author||b.author;a.statusUpdate=b.statusUpdate||a.statusUpdate;var c;a.firstUpdateVersion=(c=a.firstUpdateVersion)!=null?c:b.version;b.comment&&(a.comment=b.comment,a.commentTimestamp=b.timestamp);return a},V1a=function(a,b){a.summary.push.apply(a.summary,q(b))},c2a=function(a){var b=tfd(a,a.updates.flatMap(Q1a)),c=ufd(a,b),
d=c.preDiffs,e=c.postDiffs;c=a.updates.flatMap(function(k){return k.attachments});var f;d={attachments:c,preDiffs:d,postDiffs:e,modifiedDate:$n(a.commentTimestamp||((f=a.updates[0])==null?void 0:f.timestamp)),userPerformingAction:Zq(a.author),userPerformingActionUser:a.author,version:a.firstUpdateVersion,isMajorEvent:!!a.comment||!!c.length||a.hasInitialUpdate||b.some(function(k){return k.important}),statusUpdate:a.statusUpdate,taggedSummary:a.summary,issueId:a.updates[0].issueId,isCommentEvent:!!a.comment};
if(a.comment){d.commentContentVerdict=a.comment.commentContentVerdict;var g;d.commentDeletionStatus=(g=a.comment.entityStatus)==null?void 0:g.status;d.commentEtag=a.comment.etag;d.commentLastModifiedAtDate=a.comment.lastModified?Math.round($n(bn(en(a.comment.lastModified)))):void 0;d.commentNumber=a.comment.commentNumber;d.commentReactions=a.comment.commentReactions;d.commentRedacted=a.comment.redacted;d.commentRetention=a.comment.piiRetention;d.commentRetentionState=a.comment.piiRetentionState;d.commentVersion=
a.comment.version;d.formattedComment=a.comment.formattedComment;d.formattingMode=a.comment.formattingMode;d.lastCommentEditorUser=a.comment.lastEditorUser;d.unlinkifiedComment=a.comment.unlinkifiedComment}return d},ufd=function(a,b){if(!a.comment)return{preDiffs:b,postDiffs:[]};var c=b.filter(function(d){return d.timestamp<$n(a.commentTimestamp)});b=b.filter(function(d){return d.timestamp>=$n(a.commentTimestamp)});return{preDiffs:c,postDiffs:b}},tfd=function(a,b){return a.hasInitialUpdate?b.filter(function(c){return c.name===
"isArchived"&&c.newValue==="false"||c.name==="inProd"&&c.newValue==="false"?!1:!0}):b};var $1a=gn(function(a){return a.modifiedDate},hn),e2a=gn(function(a){return a.version},hn);var BP=function(){this.timeout=p(oO)};BP.prototype.adapt=function(a){return new vfd(this.timeout,a)};BP.\u0275fac=function(a){return new (a||BP)};BP.\u0275prov=Dc({token:BP,factory:BP.\u0275fac,providedIn:"root"});var vfd=function(a,b){this.timeout=a;this.bulkGet=b;this.batchedInputs=[[]];this.batchedDeferreds=[[]];this.isBatchScheduled=!1};
vfd.prototype.get=function(a){var b=qo(),c=this.batchedInputs[this.batchedInputs.length-1],d=this.batchedDeferreds[this.batchedDeferreds.length-1];c.length<100?(c.push(a),d.push(b)):(this.batchedInputs.push([a]),this.batchedDeferreds.push([b]));this.isBatchScheduled||wfd(this);return b.promise};
var wfd=function(a){a.isBatchScheduled=!0;a.timeout.schedule(function(){for(var b={},c=0;c<a.batchedInputs.length;b={batchedDeferred:void 0},c++){var d=a.batchedInputs[c];b.batchedDeferred=a.batchedDeferreds[c];a.bulkGet(d).then(function(e){return function(f){for(var g=0;g<e.batchedDeferred.length;g++)e.batchedDeferred[g].resolve(f[g])}}(b),function(e){return function(f){for(var g=m(e.batchedDeferred),k=g.next();!k.done;k=g.next())k.value.reject(f)}}(b))}a.batchedInputs=[[]];a.batchedDeferreds=[[]];
a.isBatchScheduled=!1})};var br=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,br.messageId)};Y(br,W);br.prototype.getResource=function(){return ui(this,1,void 0,jb)};br.prototype.setResource=function(a){return oj(this,1,a,jb)};br.prototype.getRelation=function(){return wi(this,2,void 0,jb)};br.prototype.setRelation=function(a){return Gn(this,2,a,jb)};br.messageId="b.ResourceRelation";var xfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xfd.messageId)};Y(xfd,W);xfd.messageId="b.UserAccessBatchResponse";var CP=function(){this.resourceNamePattern=RegExp("^((components|issues|hotlists|savedSearches|bookmarkGroups|templates|slos|teams)\\/\\d+|components\\/\\d+\\/slo|components\\/\\d+\\/issueDefaults|teams\\/\\d+\\/slo|issues\\/\\d+\\/(attachments|comments)\\/\\d+)$")};CP.prototype.validate=function(a){return this.resourceNamePattern.test(a)};CP.\u0275fac=function(a){return new (a||CP)};CP.\u0275prov=Dc({token:CP,factory:CP.\u0275fac,providedIn:"root"});
var DP=function(){var a=this;this.rawUserAccess=p(yfd);this.resourceNameValidator=p(CP);this.bulkApiAdapter=p(BP);this.accesses={};this.accessGetter=this.bulkApiAdapter.adapt(function(b){return zfd(a,b)})},zfd=function(a,b){return Afd(a,b).then(function(c){return i2a(b,c)})},EP=function(a,b,c){return a.resourceNameValidator.validate(c)?Bfd(a,b,c):Promise.reject(Error("ae`"+c))},Cfd=function(a,b){return a.resourceNameValidator.validate(b)?Promise.all([Bfd(a,"admin",b),Bfd(a,"writer",b),Bfd(a,"appender",
b),Bfd(a,"reader",b)]).then(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;return{admin:c,writer:e,appender:f,reader:d}}):Promise.reject(Error("ae`"+b))},Afd=function(a,b){var c=[],d=[];b=m(b);for(var e=b.next();!e.done;e=b.next())e=e.value,c.push(e.relation),d.push(e.resourceName);return fe(a.rawUserAccess.executor.get({url:"action/user_access",options:{params:{relations:c.join(","),resourceNames:d.join(",")}},responseConstructor:xfd}).pipe(A(h2a)))},
Bfd=function(a,b,c){var d=b+"/"+c,e=a.accesses[d];if(e)return e;b=a.accessGetter.get({relation:b,resourceName:c}).then(function(f){return f==null?!1:f});a.accesses[d]=b;b.then(function(){delete a.accesses[d]});return b};DP.\u0275fac=function(a){return new (a||DP)};DP.\u0275prov=Dc({token:DP,factory:DP.\u0275fac,providedIn:"root"});var yfd=function(){this.executor=p(bO)};yfd.\u0275fac=function(a){return new (a||yfd)};yfd.\u0275prov=Dc({token:yfd,factory:yfd.\u0275fac,providedIn:"root"});var Dfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dfd,W);h=Dfd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getSummaryType=function(){return wi(this,2)};h.setSummaryType=function(a){return Hm(this,2,a)};var Efd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Efd,W);h=Efd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getSummaryType=function(){return wi(this,2)};h.setSummaryType=function(a){return Hm(this,2,a)};var FP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(FP,W);FP.prototype.setMaxResults=function(a){return an(this,1,a)};FP.prototype.setView=function(a){return Hm(this,2,a)};FP.prototype.setIssueDescriptionView=function(a){return Hm(this,3,a)};var Ffd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ffd,W);h=Ffd.prototype;h.getIssueIdsList=function(){return Qw(this,1,1)};h.getIssueIdsList_asString=function(){return Qm(this,1)};h.setIssueIdsList=function(a){return tr(this,1,a)};h.addIssueIds=function(a){return $w(this,1,a)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Nb,void 0,1)};h.setView=function(a){return Hm(this,2,a)};h.setIssueDescriptionView=function(a){return Hm(this,3,a)};var Gfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gfd,W);h=Gfd.prototype;h.getComponentId=function(){return pn(this,5)};h.getComponentId_asString=function(){return tn(this,5)};h.setComponentId=function(a){return Io(this,5,a)};h.getTitle=function(){return ui(this,6)};h.setTitle=function(a){return Fm(this,6,a)};h.getComment=function(){return ui(this,7)};h.setComment=function(a){return Fm(this,7,a)};h.getAttachmentsList=function(){return Bi(this,Mo,8,Ci())};
h.setAttachmentsList=function(a){return Ni(this,8,a)};h.addAllAttachments=function(a){Mp(this,8,Mo,a)};h.setSignificanceOverride=function(a){return Hm(this,2,a)};h.getTemplateId=function(){return pn(this,4)};h.setTemplateId=function(a){return Io(this,4,a)};var Hfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hfd,W);h=Hfd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.setView=function(a){return Hm(this,2,a)};h.setIssueDescriptionView=function(a){return Hm(this,3,a)};var Ifd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ifd,W);h=Ifd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.setTargetIdsList=function(a){return tr(this,2,a)};h.setSignificanceOverride=function(a){return Hm(this,3,a)};var Jfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jfd,W);h=Jfd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.setTargetIdsList=function(a){return tr(this,2,a)};h.setSignificanceOverride=function(a){return Hm(this,3,a)};var Kfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kfd,W);h=Kfd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.setTargetId=function(a){return Io(this,2,a)};h.setSignificanceOverride=function(a){return Hm(this,3,a)};var Lfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lfd,W);h=Lfd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.setTargetIdsList=function(a){return tr(this,2,a)};h.setSignificanceOverride=function(a){return Hm(this,3,a)};var Mfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mfd,W);h=Mfd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.setTargetIdsList=function(a){return tr(this,2,a)};h.setSignificanceOverride=function(a){return Hm(this,3,a)};var Nfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nfd,W);h=Nfd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.setTargetId=function(a){return Io(this,2,a)};h.setSignificanceOverride=function(a){return Hm(this,3,a)};var GP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,GP.messageId)};Y(GP,W);GP.prototype.getIt=function(){return X(this,Ffd,3,jb)};GP.prototype.setIt=function(a){return Mi(this,Ffd,3,a,jb)};GP.messageId="b.BatchGetIssuesRequest";var Ofd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ofd,W);Ofd.prototype.getIssuesList=function(){return Bi(this,Hp,1,Ci())};var HP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,HP.messageId)};Y(HP,W);HP.prototype.getIt=function(){return X(this,Ofd,2,jb)};HP.prototype.setIt=function(a){return Mi(this,Ofd,2,a,jb)};HP.messageId="b.BatchGetIssuesResponse";var O0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(O0a,W);h=O0a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return nn(this,1)};h.setIssueId=function(a){return Jn(this,1,a)};h.getMessage=function(){return ui(this,2)};h.setMessage=function(a){return oj(this,2,a)};var Pfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Pfd.messageId)};Y(Pfd,W);Pfd.prototype.setErrors=function(a,b){Gw(this,2,O0a,a,b,jb)};Pfd.messageId="b.BulkEditResponse";var Qfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Qfd.messageId)};Y(Qfd,W);Qfd.prototype.getIt=function(){return X(this,Dfd,1,jb)};Qfd.prototype.setIt=function(a){return Mi(this,Dfd,1,a,jb)};Qfd.messageId="b.GenerateIssueSummaryRequest";var Rfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rfd,W);h=Rfd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getSummaryType=function(){return wi(this,2)};h.setSummaryType=function(a){return Hm(this,2,a)};h.getModelVersion=function(){return Bm(this,3)};h.setModelVersion=function(a){return an(this,3,a)};h.getIssueVersion=function(){return Bm(this,7)};
h.setIssueVersion=function(a){return an(this,7,a)};h.getVersion=function(){return Bm(this,4)};h.setVersion=function(a){return an(this,4,a)};h.getSummary=function(){return ui(this,5)};var Sfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Sfd.messageId)};Y(Sfd,W);Sfd.prototype.getIt=function(){return X(this,Rfd,1,jb)};Sfd.prototype.setIt=function(a){return Mi(this,Rfd,1,a,jb)};Sfd.messageId="b.GenerateIssueSummaryResponse";var Tfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Tfd.messageId)};Y(Tfd,W);Tfd.prototype.getIt=function(){return X(this,Rfd,4,jb)};Tfd.prototype.setIt=function(a){return Mi(this,Rfd,4,a,jb)};Tfd.messageId="b.GetIssueSummaryResponse";var IP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(IP,W);IP.prototype.getReadersList=function(){return Bi(this,Ao,1,Ci())};IP.prototype.setReadersList=function(a){return Ni(this,1,a)};IP.prototype.getAppendersList=function(){return Bi(this,Ao,2,Ci())};IP.prototype.setAppendersList=function(a){return Ni(this,2,a)};var Ufd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ufd.messageId)};Y(Ufd,W);Ufd.prototype.getIt=function(){return X(this,IP,4,jb)};Ufd.prototype.setIt=function(a){return Mi(this,IP,4,a,jb)};Ufd.messageId="b.GetRetainedAccessPrincipalsResponse";var JP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,JP.messageId)};Y(JP,W);JP.prototype.getIssueId=function(){return pn(this,1,void 0,jb)};JP.prototype.getIssueId_asString=function(){return nn(this,1,void 0,jb)};JP.prototype.setIssueId=function(a){return Jn(this,1,a,void 0,jb)};JP.messageId="b.IssueCreateResponse";var hr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,hr.messageId)};Y(hr,W);hr.prototype.getIssue=function(){return X(this,Pq,1,jb)};hr.prototype.setIssue=function(a){return Mi(this,Pq,1,a,jb)};hr.messageId="b.IssueFetchResponse";var Vfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vfd,W);h=Vfd.prototype;h.getIssuesList=function(){return Bi(this,Hp,1,Ci())};h.getNextPageToken=function(){return ui(this,2)};h.getTotalSize=function(){return Bm(this,3)};h.getTotalSizeAccurate=function(){return Fi(this,4)};h.getMaySkipResults=function(){return Fi(this,5)};var KP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,KP.messageId)};Y(KP,W);KP.prototype.getIt=function(){return X(this,Vfd,6,jb)};KP.prototype.setIt=function(a){return Mi(this,Vfd,6,a,jb)};KP.messageId="b.IssueSearchResponse";var Wfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wfd,W);h=Wfd.prototype;h.getIssueId=function(){return pn(this,10)};h.getIssueId_asString=function(){return tn(this,10)};h.setIssueId=function(a){return Io(this,10,a)};h.getAuthor=function(){return X(this,Em,1)};h.setAuthor=function(a){Mi(this,Em,1,a)};h.hasAuthor=function(){return xi(this,Em,1)};h.getTimestamp=function(){return X(this,Si,2)};h.setTimestamp=function(a){return Mi(this,Si,2,a)};
h.hasTimestamp=function(){return xi(this,Si,2)};h.getIssueComment=function(){return X(this,Kp,3)};h.setIssueComment=function(a){Mi(this,Kp,3,a)};h.hasIssueComment=function(){return xi(this,Kp,3)};h.getCommentNumber=function(){return Bm(this,4)};h.setCommentNumber=function(a){return an(this,4,a)};h.getAttachmentsList=function(){return Bi(this,Mo,8,Ci())};h.setAttachmentsList=function(a){return Ni(this,8,a)};h.addAllAttachments=function(a){Mp(this,8,Mo,a)};
h.getStatusUpdate=function(){return X(this,wp,9)};h.setStatusUpdate=function(a){Mi(this,wp,9,a)};h.hasStatusUpdate=function(){return xi(this,wp,9)};h.getFieldUpdatesList=function(){return Bi(this,sfd,6,Ci())};h.getVersion=function(){return Bm(this,7)};h.setVersion=function(a){return an(this,7,a)};var Xfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Xfd.messageId)};Y(Xfd,W);Xfd.messageId="b.ListIssueEventsResponse";var Yfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Yfd.messageId)};Y(Yfd,W);Yfd.prototype.getIt=function(){return X(this,FP,1,jb)};Yfd.prototype.setIt=function(a){return Mi(this,FP,1,a,jb)};Yfd.messageId="b.ListRecentIssuesRequest";var Zfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zfd,W);Zfd.prototype.getIssuesList=function(){return Bi(this,Hp,1,Ci())};var $fd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,$fd.messageId)};Y($fd,W);$fd.prototype.getIt=function(){return X(this,Zfd,2,jb)};$fd.prototype.setIt=function(a){return Mi(this,Zfd,2,a,jb)};$fd.messageId="b.ListRecentIssuesResponse";var i0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(i0a,W);h=i0a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return nn(this,1)};h.setIssueId=function(a){return Jn(this,1,a)};h.getStatus=function(){return wi(this,2)};h.setStatus=function(a){return Gn(this,2,a)};h.hasStatus=function(){return jm(this,2)};h.getTitle=function(){return ui(this,3)};h.setTitle=function(a){return oj(this,3,a)};
h.getVersion=function(){return Bm(this,4)};h.setVersion=function(a){return En(this,4,a)};h.getVersionOrUndefined=function(){return Rw(this,4)};h.getIsArchived=function(){return Fi(this,5)};h.setIsArchived=function(a){return Oi(this,5,a)};var agd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,agd.messageId)};Y(agd,W);agd.messageId="b.RelatedIssuesResponse";var LP=function(){this.executor=p(bO);this.userAccess=p(DP);this.activeSession=p(uu)};h=LP.prototype;
h.createIssue=function(a){var b=this;return ne(function(){return EP(b.userAccess,"writer","components/"+a.snapshot.componentId+"/issueDefaults")}).pipe(yf(function(c){if(c){var d=r0a(a);var e={};a.recaptchaToken&&(e["G-Recaptcha-Response-Token"]=a.recaptchaToken);d=b.executor.post({url:"action/issues",body:d,options:{headers:e},responseConstructor:JP}).pipe(A(s0a))}else{c=(new Gfd).setComponentId(a.snapshot.componentId).setTitle(a.snapshot.title).setComment(a.snapshot.comment);var f=kp(a.snapshot.formattingMode);
c=Hm(c,9,f).setAttachmentsList((e=(d=a.attachments)==null?void 0:d.map(YVa))!=null?e:[]).setTemplateId(a.templateId);d={};a.recaptchaToken&&(d["G-Recaptcha-Response-Token"]=a.recaptchaToken);d=b.executor.post({url:"action/issues/template",body:c,options:{headers:d},responseConstructor:JP}).pipe(A(s0a))}return d}))};
h.createIssueWithWizard=function(a){var b=r0a(a),c={};a.recaptchaToken&&(c["G-Recaptcha-Response-Token"]=a.recaptchaToken);return this.executor.post({url:"action/issues/wizard",body:b,options:{headers:c},responseConstructor:JP}).pipe(A(s0a))};h.getIssueFull=function(a){var b={},c,d=(c=this.activeSession.getTracker())==null?void 0:c.trackerId;d&&(b.currentTrackerId=d);return this.executor.get({url:"action/issues/"+a,options:{params:b},responseConstructor:hr}).pipe(A(function(e){return Oq(e)}))};
h.getIssueBasic=function(a){var b={},c,d=(c=this.activeSession.getTracker())==null?void 0:c.trackerId;d&&(b.currentTrackerId=d);c=(new Hfd).setIssueId(a).setView(1).setIssueDescriptionView(1);return this.executor.post({url:"action/issues/"+a+"/getIssue",options:{params:b},body:c,responseConstructor:hr}).pipe(A(function(e){return Oq(e)}))};
h.batchGetIssuesFull=function(a){a=(new GP).setIt((new Ffd).setIssueIdsList(a.map(Lm).filter(Pm)).setView(2).setIssueDescriptionView(2));return this.executor.post({url:"action/issues/batch",body:a,responseConstructor:HP}).pipe(A(function(b){return b.getIt().getIssuesList().map(DXa)}))};h.batchGetIssues=function(a){a=(new GP).setIt((new Ffd).setIssueIdsList(a.map(Lm).filter(Pm)).setView(1).setIssueDescriptionView(1));return this.executor.post({url:"action/issues/batch",body:a,responseConstructor:HP}).pipe(A(function(b){return b.getIt().getIssuesList().map(Dp)}))};
h.updateIssue=function(a,b){b.actions=b.actions.filter(function(c){return c.fieldName!=="componentId"});b=d0a(b);return this.executor.post({url:"action/issues/"+a,body:b,responseConstructor:hr}).pipe(A(function(c){return Oq(c)}))};h.moveIssueExternal=function(a,b){b=Y_a(b);return this.executor.post({url:"action/issues/"+a+"/external_move",body:b,responseConstructor:hr}).pipe(A(function(c){return Oq(c)}))};
h.moveIssue=function(a,b){b=V_a(b);return this.executor.post({url:"action/issues/"+a+"/move",body:b,responseConstructor:hr}).pipe(A(function(c){return Oq(c)}))};h.unCcUser=function(a){var b=S_a(a);return this.executor.post({url:"action/issues/"+a+"/unccuser",body:b,responseConstructor:hr}).pipe(A(function(c){return Oq(c)}))};
h.updateAccessLimit=function(a,b,c,d){var e=new qfd,f=e.setIt,g=(new Vcd).setIssueId(a);b&&(b=wVa(b),g.setIssueAccessLimit(b));c&&g.setAddedCollaboratorsList(c.map(Im));d&&g.setRemovedCollaboratorsList(d.map(Im));c=f.call(e,g);return this.executor.post({url:"action/issues/"+a+"/accessLimit",body:c,responseConstructor:null})};
h.getRetainedAccessPrincipals=function(a,b,c,d){b=R_a(a,b,c,d);return this.executor.post({url:"action/issues/"+a+"/retainedAccessPrincipals",body:b,responseConstructor:Ufd}).pipe(A(function(e){e=e.getIt();return{readers:e.getReadersList().map(zo),appenders:e.getAppendersList().map(zo),writers:Bi(e,Ao,3,Ci()).map(zo)}}))};
h.markAsVulnerability=function(a,b){var c=(new yP).setIssueId(Number(a));b&&(b=b.map(Im),Ni(c,2,b));c=(new ofd).setIt(c);return this.executor.post({url:"action/issues/"+a+"/markAsVulnerability",body:c,responseConstructor:null})};
h.relateIssue=function(a,b){if(b.relation==="BLOCKING"&&b.actionType==="ADD")return this.addBlocking(a,b.targetIds);if(b.relation==="BLOCKING"&&b.actionType==="REMOVE")return this.removeBlocking(a,b.targetIds);if(b.relation==="BLOCKED_BY"&&b.actionType==="ADD")return this.addBlockedBy(a,b.targetIds);if(b.relation==="BLOCKED_BY"&&b.actionType==="REMOVE")return this.removeBlockedBy(a,b.targetIds);if(b.relation==="DUPLICATE"&&b.actionType==="ADD")return this.markAsDuplicate(a,b.targetIds[0]);if(b.relation===
"DUPLICATE"&&b.actionType==="REMOVE")return bgd(this,a);throw Error("be");};h.addBlocking=function(a,b){b=(new Jfd).setIssueId(Number(a)).setTargetIdsList(b.map(Lm).filter(Pm));return this.executor.post({url:"action/issues/"+a+"/add_blocking",body:b,responseConstructor:hr}).pipe(A(function(c){return Oq(c)}))};h.removeBlocking=function(a,b){b=(new Mfd).setIssueId(Number(a)).setTargetIdsList(b.map(Lm).filter(Pm));return this.executor.post({url:"action/issues/"+a+"/remove_blocking",body:b,responseConstructor:hr}).pipe(A(function(c){return Oq(c)}))};
h.addBlockedBy=function(a,b){b=(new Ifd).setIssueId(Number(a)).setTargetIdsList(b.map(Lm).filter(Pm));return this.executor.post({url:"action/issues/"+a+"/add_blocked_by",body:b,responseConstructor:hr}).pipe(A(function(c){return Oq(c)}))};h.removeBlockedBy=function(a,b){b=(new Lfd).setIssueId(Number(a)).setTargetIdsList(b.map(Lm).filter(Pm));return this.executor.post({url:"action/issues/"+a+"/remove_blocked_by",body:b,responseConstructor:hr}).pipe(A(function(c){return Oq(c)}))};
h.markAsDuplicate=function(a,b){b=(new Kfd).setIssueId(Number(a)).setTargetId(Number(b));return this.executor.post({url:"action/issues/"+a+"/mark_as_duplicate",body:b,responseConstructor:hr}).pipe(A(function(c){return Oq(c)}))};var bgd=function(a,b){var c=(new Nfd).setIssueId(Number(b));return a.executor.post({url:"action/issues/"+b+"/unmark_as_duplicate",body:c,responseConstructor:hr}).pipe(A(function(d){return Oq(d)}))};
LP.prototype.updateIssueHotlists=function(a,b){b=h0a(b);return this.executor.post({url:"action/issues/"+a+"/hotlists",body:b,responseConstructor:hr}).pipe(A(function(c){return Oq(c)}))};LP.prototype.updateIssueRetention=function(a,b){b=m0a(b);return this.executor.post({url:"action/issues/"+a+"/update_retention",body:b,responseConstructor:hr}).pipe(A(function(c){return Oq(c)}))};
LP.prototype.listIssues=function(a,b){b=b===void 0?{}:b;a=u0a(a,b);return this.executor.post({url:"action/issues/list",body:a,responseConstructor:KP}).pipe(A(W0a))};var cgd=function(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?{}:d;b=G0a(b,c,d);return a.executor.post({url:"action/issues/list_with_experiments",body:b,responseConstructor:KP}).pipe(A(W0a))},dgd=function(a,b){var c=new FP;b&&c.setMaxResults(b);b=(new Yfd).setIt(c);return a.executor.post({url:"action/issues/recent",body:b,responseConstructor:$fd}).pipe(A(function(d){return d.getIt().getIssuesList().map(function(e){return Dp(e)})}))};
LP.prototype.issueBulkEdit=function(a,b){var c={};b&&(c["G-Recaptcha-Response-Token"]=b);b=new rfd;var d=a.bulkEditOps.map(M0a);Ni(b,4,d);a.significanceOverride&&b.setSignificanceOverride(a.significanceOverride);return this.executor.post({url:"action/issues/bulk_edit",body:b,responseConstructor:Pfd,options:{headers:c}}).pipe(A(P0a))};
LP.prototype.getRelatedIssues=function(a){var b={};a.q&&(b.q=a.q);a.s&&(b.s=a.s);a.count&&(b.count=String(a.count));a.p&&(b.p=String(a.p));a.trackerId&&(b.trackerId=a.trackerId);var c="action/related";a.resourceType&&(c+="/"+a.resourceType,a.resourceId&&(c+="/"+a.resourceId));return this.executor.get({url:c,options:{params:b},responseConstructor:agd}).pipe(A(j0a))};
var fgd=function(a,b){var c,d;return a.executor.get({url:"action/issues/"+b+"/events",options:{params:{currentTrackerId:(d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId)!=null?d:""}},responseConstructor:Xfd}).pipe(A(function(e){return egd(e,!1)}))},ggd=function(a,b){b=I0a(b);return a.executor.post({url:"action/issues/list/events",body:b,responseConstructor:Xfd}).pipe(A(function(c){return egd(c,!0)}))};
LP.prototype.getIssueSummary=function(a,b){b=(new Efd).setIssueId(Number(a)).setSummaryType(Abd[b]);return this.executor.post({url:"action/issues/"+a+"/getSummary",body:b,responseConstructor:Tfd}).pipe(A(function(c){return Y0a(c.getIt())}))};
var hgd=function(a,b){var c=(new Dfd).setIssueId(b).setSummaryType(Abd.COMMENTS_LONG);c=(new Qfd).setIt(c);return a.executor.post({url:"action/issues/"+b+"/generateSummary",body:c,responseConstructor:Sfd}).pipe(A(function(d){return Y0a(d.getIt())}))},egd=function(a,b){a=Bi(a,Wfd,2,Ci(),jb).map(e1a);return b?a2a(a):Z1a(a)};LP.\u0275fac=function(a){return new (a||LP)};LP.\u0275prov=Dc({token:LP,factory:LP.\u0275fac,providedIn:"root"});var MP=function(){this.observableApi=p(LP)};h=MP.prototype;
h.createIssue=function(a){return fe(this.observableApi.createIssue(a))};h.createIssueWithWizard=function(a){return fe(this.observableApi.createIssueWithWizard(a))};h.getIssueFull=function(a){return fe(this.observableApi.getIssueFull(a))};h.getIssueBasic=function(a){return fe(this.observableApi.getIssueBasic(a))};h.batchGetIssuesFull=function(a){return fe(this.observableApi.batchGetIssuesFull(a))};h.batchGetIssues=function(a){return fe(this.observableApi.batchGetIssues(a))};
h.updateIssue=function(a,b){return fe(this.observableApi.updateIssue(a,b))};h.moveIssueExternal=function(a,b){return fe(this.observableApi.moveIssueExternal(a,b))};h.moveIssue=function(a,b){return fe(this.observableApi.moveIssue(a,b))};h.unCcUser=function(a){return fe(this.observableApi.unCcUser(a))};h.updateAccessLimit=function(a,b,c,d){return fe(this.observableApi.updateAccessLimit(a,b,c,d))};
h.getRetainedAccessPrincipals=function(a,b,c,d){return fe(this.observableApi.getRetainedAccessPrincipals(a,b,c,d))};h.markAsVulnerability=function(a,b){return fe(this.observableApi.markAsVulnerability(a,b))};h.relateIssue=function(a,b){return fe(this.observableApi.relateIssue(a,b))};h.updateIssueHotlists=function(a,b){return fe(this.observableApi.updateIssueHotlists(a,b))};h.updateIssueRetention=function(a,b){return fe(this.observableApi.updateIssueRetention(a,b))};
h.listIssues=function(a,b){b=b===void 0?{}:b;return fe(this.observableApi.listIssues(a,b))};h.issueBulkEdit=function(a,b){return fe(this.observableApi.issueBulkEdit(a,b))};h.getRelatedIssues=function(a){return fe(this.observableApi.getRelatedIssues(a))};MP.\u0275fac=function(a){return new (a||MP)};MP.\u0275prov=Dc({token:MP,factory:MP.\u0275fac,providedIn:"root"});var igd={ACTIVE:0,DISMISSED:1,SNOOZED:2,0:"ACTIVE",1:"DISMISSED",2:"SNOOZED"};var NP=function(){uO.call(this);this.observableIssueResources=p(LP);this.recordType="eventsForIssue";this.idForRecord=function(a){return a.id}};Y(NP,uO);NP.prototype.isEqual=function(a,b){return(a==null?void 0:a.id)!==(b==null?void 0:b.id)?!1:YTa(a==null?void 0:a.events,b==null?void 0:b.events)};NP.prototype.copy=function(a){return a&&nm(a)};NP.prototype.fetchOne=function(a){return fgd(this.observableIssueResources,a).pipe(A(function(b){return{id:a,events:b}}))};
NP.prototype.fetchSet=function(a){var b=this;return ie(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(Pm)}))};NP.\u0275fac=function(a){return new (a||NP)};NP.\u0275prov=Dc({token:NP,factory:NP.\u0275fac,providedIn:"root"});var jgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jgd,W);h=jgd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getCommentNumbers=function(){return Tw(this,2)};h.setView=function(a){return Hm(this,3,a)};var kgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,kgd.messageId)};Y(kgd,W);kgd.prototype.getIt=function(){return X(this,jgd,4,jb)};kgd.prototype.setIt=function(a){return Mi(this,jgd,4,a,jb)};kgd.messageId="b.BatchGetIssueCommentsRequest";var lgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lgd,W);lgd.prototype.getIssueCommentsList=function(){return Bi(this,Kp,1,Ci())};var mgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,mgd.messageId)};Y(mgd,W);mgd.prototype.getIt=function(){return X(this,lgd,2,jb)};mgd.prototype.setIt=function(a){return Mi(this,lgd,2,a,jb)};mgd.messageId="b.BatchGetIssueCommentsResponse";var OP=function(){this.jspbExecutor=p(bO);this.activeSession=p(uu)};OP.prototype.batchGet=function(a,b){var c=new kgd,d=c.setIt;a=(new jgd).setIssueId(Number(a));b=xc(a,2,b,Eb);c=d.call(c,b.setView(2));var e;(d=(e=this.activeSession.getTracker())==null?void 0:e.trackerId)&&Jn(c,3,d,void 0,jb);return this.jspbExecutor.post({url:"action/comments/batch",responseConstructor:mgd,body:c}).pipe(A(Q0a))};OP.\u0275fac=function(a){return new (a||OP)};OP.\u0275prov=Dc({token:OP,factory:OP.\u0275fac,providedIn:"root"});var PP=function(){uO.call(this);var a=this;this.issueCommentsBatchApi=p(OP);this.batchApiAdapter=p(MO);this.recordType="formattedCommentsForIssue";this.idForRecord=function(b){return b.id.issueId+"-"+b.id.commentId};this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,maxBatchSize:500,call:function(b){return a.call(b)},split:function(b,c){return a.splitBatch(b,c)}})};Y(PP,uO);
PP.prototype.fetchSet=function(a){var b=this,c=a[0].split("-")[0];return ie(a.map(function(d){return b.get(d)})).pipe(A(function(d){var e=[];d=m(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value){var g=void 0,k={issueId:c,commentId:(g=f.commentNumber)!=null?g:0};e.push({id:k,formattedComment:f})}return e}))};
PP.prototype.call=function(a){var b="",c=[];a=m(a);for(var d=a.next();!d.done;d=a.next()){var e=m(d.value.split("-"));d=e.next().value;e=e.next().value;b!==""&&b===d?c.push(Number(e)):b===""&&(b=d,c.push(Number(e)))}return this.issueCommentsBatchApi.batchGet(b,c).pipe(A(function(f){var g=b,k=new Map;f=m(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var r=void 0,w=Number(g)+"-"+((r=l.commentNumber)!=null?r:0);k.set(w,l)}return k}))};PP.prototype.splitBatch=function(a,b){return b.get(a)};
PP.\u0275fac=function(a){return new (a||PP)};PP.\u0275prov=Dc({token:PP,factory:PP.\u0275fac,providedIn:"root"});var QP=function(){uO.call(this);this.accessPolicyApi=p(JO);this.recordType="hotlistAccessPolicy";this.isEqual=mm;this.idForRecord=function(a){return a.id}};Y(QP,uO);QP.prototype.fetchOne=function(a){return this.accessPolicyApi.get("HOTLIST",a).pipe(A(function(b){return Object.assign({},{id:a},b)}))};QP.prototype.doSave=function(a){var b=a.id;return this.accessPolicyApi.update("HOTLIST",b,a).pipe(A(function(c){return Object.assign({},{id:b},c)}))};QP.\u0275fac=function(a){return new (a||QP)};
QP.\u0275prov=Dc({token:QP,factory:QP.\u0275fac,providedIn:"root"});var RP=function(){uO.call(this);this.api=p(zO);this.recordType="IssueEnrichmentsForIssue";this.idForRecord=function(a){return a.issueId};this.isEqual=mm};Y(RP,uO);RP.prototype.fetchOne=function(a){return bed(this.api,a).pipe(A(function(b){return{issueId:a,enrichments:b}}))};RP.\u0275fac=function(a){return new (a||RP)};RP.\u0275prov=Dc({token:RP,factory:RP.\u0275fac,providedIn:"root"});var ngd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ngd,W);h=ngd.prototype;h.getIssueIdsList=function(){return Qw(this,1,1)};h.getIssueIdsList_asString=function(){return Qm(this,1)};h.setIssueIdsList=function(a){return tr(this,1,a)};h.addIssueIds=function(a){return $w(this,1,a)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Nb,void 0,1)};var ogd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ogd,W);h=ogd.prototype;h.getIssueIdsList=function(){return Qw(this,1,1)};h.getIssueIdsList_asString=function(){return Qm(this,1)};h.setIssueIdsList=function(a){return tr(this,1,a)};h.addIssueIds=function(a){return $w(this,1,a)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Nb,void 0,1)};var pgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pgd,W);pgd.prototype.setExperiments=function(a){return Gw(this,1,vq,a)};var qgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,qgd.messageId)};Y(qgd,W);qgd.prototype.getIt=function(){return X(this,pgd,1,jb)};qgd.prototype.setIt=function(a){return Mi(this,pgd,1,a,jb)};qgd.messageId="b.BatchGetIssueExperimentsResponse";var rgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rgd,W);h=rgd.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return tn(this,1)};h.setComponentId=function(a){return Io(this,1,a)};h.getType=function(){return wi(this,2)};h.setType=function(a){return Hm(this,2,a)};h.getPriority=function(){return wi(this,3)};h.setPriority=function(a){return Hm(this,3,a)};h.getSeverity=function(){return wi(this,4)};
h.setSeverity=function(a){return Hm(this,4,a)};h.getStatus=function(){return wi(this,5)};h.setStatus=function(a){return Hm(this,5,a)};h.getReporter=function(){return X(this,Em,6)};h.setReporter=function(a){Mi(this,Em,6,a)};h.getAssignee=function(){return X(this,Em,7)};h.setAssignee=function(a){return Mi(this,Em,7,a)};h.clearAssignee=function(){return Hw(this,7)};h.getVerifier=function(){return X(this,Em,8)};h.setVerifier=function(a){Mi(this,Em,8,a)};h.clearVerifier=function(){return Hw(this,8)};
h.getCcsList=function(){return Bi(this,Em,9,Ci())};h.setCcsList=function(a){Ni(this,9,a)};h.addAllCcs=function(a){Mp(this,9,Em,a)};h.setCcs=function(a,b){return Gw(this,9,Em,a,b)};h.getCollaboratorsList=function(){return Bi(this,Em,23,Ci())};h.setCollaboratorsList=function(a){Ni(this,23,a)};h.addAllCollaborators=function(a){Mp(this,23,Em,a)};h.setCollaborators=function(a,b){return Gw(this,23,Em,a,b)};h.getStaffing=function(){return X(this,up,27)};h.setStaffing=function(a){Mi(this,up,27,a)};
h.getHotlistIdsList_asLegacyNumberOrString=function(a){return K4a(this,10,Ci(a))};h.getHotlistIdsList_asString=function(){return Qm(this,10)};h.setHotlistIdsList=function(a){return tr(this,10,a)};h.addHotlistIds=function(a,b){return $w(this,10,a,b)};h.addAllHotlistIds=function(a){ax(this,10,a)};h.removeHotlistIds=function(a){return hyc(this,10,a)};h.getBlockedByIssueIdsList=function(){return Qw(this,11,1)};h.getBlockedByIssueIdsList_asString=function(){return Qm(this,11)};
h.setBlockedByIssueIdsList=function(a){tr(this,11,a)};h.addAllBlockedByIssueIds=function(a){ax(this,11,a)};h.getBlockingIssueIdsList=function(){return Qw(this,12,1)};h.getBlockingIssueIdsList_asString=function(){return Qm(this,12)};h.setBlockingIssueIdsList=function(a){tr(this,12,a)};h.addAllBlockingIssueIds=function(a){ax(this,12,a)};h.getCanonicalIssueId_asString=function(){return tn(this,13)};h.setCanonicalIssueId=function(a){Io(this,13,a)};
h.getDuplicateIssueIdsList_asString=function(){return Qm(this,14)};h.setDuplicateIssueIdsList=function(a){tr(this,14,a)};h.getInProd=function(){return Fi(this,15)};h.setInProd=function(a){Yo(this,15,a)};h.getSloSnoozeUntil=function(){return X(this,Si,16)};h.setSloSnoozeUntil=function(a){Mi(this,Si,16,a)};h.getSloEndTime=function(){return X(this,Si,25)};h.setSloEndTime=function(a){Mi(this,Si,25,a)};h.hasSloEndTime=function(){return xi(this,Si,25)};h.getRetention=function(){return wi(this,17)};
h.setRetention=function(a){return Hm(this,17,a)};h.getEntityStatus=function(){return X(this,Jo,18)};h.setEntityStatus=function(a){return Mi(this,Jo,18,a)};h.getIsArchived=function(){return Fi(this,19)};h.setIsArchived=function(a){return Yo(this,19,a)};h.getEffort=function(){return X(this,Ap,24)};h.setEffort=function(a){Mi(this,Ap,24,a)};h.hasEffort=function(){return xi(this,Ap,24)};h.getAccessLimit=function(){return X(this,Do,26)};h.setAccessLimit=function(a){return Mi(this,Do,26,a)};var sgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sgd,W);h=sgd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getIssueState=function(){return X(this,rgd,2)};h.setIssueState=function(a){return Mi(this,rgd,2,a)};h.getVersion=function(){return Bm(this,3)};h.setVersion=function(a){return an(this,3,a)};h.getEtag=function(){return Sn(this,16)};
h.setEtag=function(a){return No(this,16,a)};h.getCreatedTime=function(){return X(this,Si,4)};h.setCreatedTime=function(a){return Mi(this,Si,4,a)};h.getModifiedTime=function(){return X(this,Si,5)};h.setModifiedTime=function(a){return Mi(this,Si,5,a)};h.getMajorModifiedTime=function(){return X(this,Si,14)};h.setMajorModifiedTime=function(a){return Mi(this,Si,14,a)};h.getResolvedTime=function(){return X(this,Si,6)};h.setResolvedTime=function(a){return Mi(this,Si,6,a)};
h.getVerifiedTime=function(){return X(this,Si,7)};h.setVerifiedTime=function(a){return Mi(this,Si,7,a)};h.getSloId_asLegacyNumberOrString=function(){return Cp(this,9)};h.getSloId_asString=function(){return tn(this,9)};h.setSloId=function(a){return Io(this,9,a)};h.getSloStatus=function(){return X(this,Iq,10)};h.setSloStatus=function(a){Mi(this,Iq,10,a)};h.getTeamId=function(){return pn(this,13)};h.getTeamId_asLegacyNumberOrString=function(){return Cp(this,13)};
h.getTeamId_asString=function(){return tn(this,13)};h.setTeamId=function(a){return Io(this,13,a)};h.getRetentionState=function(){return X(this,Ko,11)};h.setRetentionState=function(a){Mi(this,Ko,11,a)};h.getAccessLimit=function(){return X(this,Eo,12)};h.setAccessLimit=function(a){return Mi(this,Eo,12,a)};h.getParentIssueIdsList_asString=function(){return Qm(this,17)};h.setParentIssueIdsList=function(a){return tr(this,17,a)};h.getAncestorsMap=function(){return wc(this,19,Jq,Ub)};
h.getChildIssueCount=function(){return Bm(this,20)};h.setChildIssueCount=function(a){return an(this,20,a)};h.getDescendantIssueCount=function(){return Bm(this,21)};h.setDescendantIssueCount=function(a){return an(this,21,a)};h.getOpenDescendantIssueCount=function(){return Bm(this,22)};h.setOpenDescendantIssueCount=function(a){return an(this,22,a)};h.getIsArchived=function(){return Fi(this,18)};h.setIsArchived=function(a){return Yo(this,18,a)};var tgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,tgd.messageId)};Y(tgd,W);tgd.prototype.getIt=function(){return X(this,sgd,14,jb)};tgd.prototype.setIt=function(a){return Mi(this,sgd,14,a,jb)};tgd.messageId="b.IssueMetadata";var ugd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ugd,W);ugd.prototype.getIt=function(){return X(this,ogd,4)};ugd.prototype.setIt=function(a){return Mi(this,ogd,4,a)};var vgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vgd,W);var wgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,wgd.messageId)};Y(wgd,W);wgd.prototype.getIt=function(){return X(this,vgd,2,jb)};wgd.prototype.setIt=function(a){return Mi(this,vgd,2,a,jb)};wgd.messageId="b.UpdateIssueReadTimestampResponse";var SP=function(){this.executor=p(cO)};SP.prototype.delete=function(a,b){b=(new nfd).setIt((new mfd).setIssueId(Number(a)).setReason(Hbd[MVa(b)]));return this.executor.post({url:"action/issues/"+a+"/delete",body:b,responseConstructor:null})};SP.prototype.undelete=function(a){var b=(new pfd).setIt((new zP).setIssueId(Number(a)));return this.executor.post({url:"action/issues/"+a+"/undelete",body:b,responseConstructor:null})};
SP.prototype.getMetadata=function(a){return this.executor.get({url:"action/issues/"+a+"/metadata",responseConstructor:tgd}).then(S0a)};SP.prototype.markRead=function(a,b,c){b=b===void 0?!0:b;c=c===void 0?"USER_ACTIVITY_TYPE_UNDEFINED":c;var d=new ugd,e=d.setIt;a=(new ogd).setIssueIdsList(a.map(Number));b=Yo(a,2,b);c=Hm(b,3,Zbd[c]);d=e.call(d,c);return this.executor.post({url:"action/issues/read_timestamp",body:d,responseConstructor:wgd}).then(R0a)};
var xgd=function(a,b){return a.executor.get({url:"action/issues/"+b+"/experiments",responseConstructor:vq}).then(p_a).then(function(c){return Object.assign({},c,{id:b})})},ygd=function(a,b){var c=(new ngd).setIssueIdsList(b.map(Number));return a.executor.post({url:"action/issues/batch_experiments",body:c,responseConstructor:qgd}).then(function(d){d=d.getIt();return Bi(d,vq,1,Ci()).map(p_a)}).then(function(d){var e=eo(d,function(f){return f.id});return b.map(function(f){var g;return(g=e.get(f))!=null?
g:cr(f)})})},zgd=function(a,b){return a.executor.post({url:"action/issues/"+b.id+"/experiments",body:s_a(b),responseConstructor:vq}).then(p_a)};SP.\u0275fac=function(a){return new (a||SP)};SP.\u0275prov=Dc({token:SP,factory:SP.\u0275fac,providedIn:"root"});var UP=function(){uO.call(this,{freshUntil:6E4});this.activeSession=p(uu);this.batchApiAdapter=p(MO);this.batchApiConfig=p(TP);this.issueService=p(SP);this.recordType="issue-experimental-fields";this.idForRecord=function(a){return a.id};this.isEqual=mm;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig);this.isEnabled=this.activeSession.getFlag("enableIssueExperimentalFields")&&this.activeSession.isInternalSession()};Y(UP,uO);
UP.prototype.fetchOne=function(a){var b=this;return this.isEnabled?ne(function(){return b.batchAdaptedGet(a)}).pipe(gf(function(){return ce(void 0)})):ce(void 0)};UP.prototype.fetchSet=function(a){var b=this;return ie(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(Pm)}))};UP.prototype.copy=function(a){return a&&nm(a)};
UP.prototype.updateOrInsert=function(a,b){var c=this,d,e,f,g;return y(function(k){if(k.nextAddress==1){if(!c.isEnabled)return k.return(cr(a));c.manualUpdate(a,function(l){b(l!=null?l:cr(a))});return z(k,fe(c.batchAdaptedGet(a)),2)}if(k.nextAddress!=3)return d=k.yieldResult,f=(e=c.copy(d))!=null?e:cr(a),b(f),z(k,zgd(c.issueService,f),3);g=k.yieldResult;c.announce(g);return k.return(g)})};UP.\u0275fac=function(a){return new (a||UP)};UP.\u0275prov=Dc({token:UP,factory:UP.\u0275fac,providedIn:"root"});
var TP=function(){this.issueService=p(SP);this.maxBatchSize=100;this.bufferTimeMs=0};TP.prototype.call=function(a){var b=this;return ne(function(){return ygd(b.issueService,[].concat(q(a)))}).pipe(A(function(c){return eo(c,function(d){return d.id})}))};TP.prototype.split=function(a,b){var c;return(c=b.get(a))!=null?c:cr(a)};TP.\u0275fac=function(a){return new (a||TP)};TP.\u0275prov=Dc({token:TP,factory:TP.\u0275fac,providedIn:"root"});var VP=function(){this.refreshRequest=new qf};VP.prototype.getObservable=function(){return this.refreshRequest};var Bgd=function(a,b){return Agd(a,function(){return b})},Agd=function(a,b){return a.getObservable().pipe(xf(void 0)).pipe(yf(function(){return b()}))};VP.\u0275fac=function(a){return new (a||VP)};VP.\u0275prov=Dc({token:VP,factory:VP.\u0275fac,providedIn:"root"});var XP=function(){uO.call(this);var a=this;this.batchApiAdapter=p(MO);this.refreshMonitor=p(VP);this.issueBatchConfig=p(WP);this.issueApi=p(LP);this.issueExperimentalFieldsFridge=p(UP);this.recordType="issue-basic";this.idForRecord=function(b){return String(b.issueId)};this.isEqual=mm;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.issueBatchConfig);this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(XP,uO);h=XP.prototype;h.fetchOne=function(a){return this.batchAdaptedGet(a)};
h.fetchSet=function(a){var b=this;return ie(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(Pm)}))};
h.fetchAll=function(a){var b=a.custom;var c=a.filter;var d=a.pageSize;a={s:a.sort,count:d};if(b==="viewed")return dgd(this.issueApi,d).pipe(A(function(e){return{results:e}}),gf(function(e){Wm("issueFullFridge -> listRecentIssues() API error",e);return ce({results:[]})}));if(b==="byExperimentalPhase"&&c)return c=m(c.split("____b-internal____")),b=c.next().value,c=c.next().value,d=cr("0"),d.triage.phase=c,cgd(this.issueApi,b,a,{queryType:"QUERY_TRIAGE_PHASE",experimentalFields:d,concatenator:{relation:"AND"}}).pipe(A(function(e){return{results:e.issues,
totalSize:e.numTotalResults}}));if(c)return this.issueApi.listIssues(c,a).pipe(A(function(e){return{results:e.issues,totalSize:e.numTotalResults}}));throw Error("ce");};h.copy=function(a){return a&&nm(a)};h.watch=function(a,b){return ie([uO.prototype.watch.call(this,a,b),this.issueExperimentalFieldsFridge.watch(a)]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return t2a([c],[d])[0]}))};
h.watchSet=function(a,b){return ie([uO.prototype.watchSet.call(this,a,b),this.issueExperimentalFieldsFridge.watchSet(a)]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return t2a(c,d)}))};h.watchMany=function(a,b){var c=this;return uO.prototype.watchMany.call(this,a,b).pipe(yf(function(d){return c.issueExperimentalFieldsFridge.watchSet(d.results.map(c.idForRecord)).pipe(A(function(e){return t2a(d.results,e)}),A(function(e){return Object.assign({},d,{results:e})}))}))};
h.peek=function(a){var b=uO.prototype.peek.call(this,a);a=this.issueExperimentalFieldsFridge.peek(a);return t2a([b],[a])[0]};h.poke=function(a,b){var c=this,d,e,f,g,k,l;return y(function(r){if(r.nextAddress==1)return d=m,z(r,Promise.all([uO.prototype.poke.call(c,a,b),c.issueExperimentalFieldsFridge.poke(a,b)]),2);e=d(r.yieldResult);f=e.next().value;g=e.next().value;k=f;l=g;return r.return(t2a([k],[l])[0])})};XP.\u0275fac=function(a){return new (a||XP)};
XP.\u0275prov=Dc({token:XP,factory:XP.\u0275fac,providedIn:"root"});var WP=function(){this.issueApi=p(LP);this.maxBatchSize=100;this.bufferTimeMs=0};WP.prototype.call=function(a){var b=this;if(a.size===1){var c=[].concat(q(a))[0];return this.issueApi.getIssueBasic(c).pipe(A(function(d){return new Map([[c,d]])}))}return ne(function(){return b.issueApi.batchGetIssues([].concat(q(a)))}).pipe(A(function(d){return eo(d,function(e){return e.issueId})}))};WP.prototype.split=function(a,b){return b.get(a)};
WP.\u0275fac=function(a){return new (a||WP)};WP.\u0275prov=Dc({token:WP,factory:WP.\u0275fac,providedIn:"root"});var u2a=window,M2a=function(){return{count:0,duration:0,transferSize:0,cacheHits:0,cacheHitRate:0}},Cgd=function(a){if(v2a())try{window.performance.mark(a)}catch(b){console.warn("route_performance",b)}};var O2a=so("debug-logging")(),F2a=window,Dgd,L2a=!1,N2a={};var R2a=Ocd("last-visit"),S2a=Ocd("last-visit-count"),U2a=Pcd("last-visit"),T2a=Pcd("last-visit-count");Date.now==null&&(Date.now=function(){return(new Date).getTime()});var Egd=function(){this.activeSession=p(uu);this.transport=(new eD(2523,this.activeSession.getSessionIdentifier())).build()};Egd.\u0275fac=function(a){return new (a||Egd)};Egd.\u0275prov=Dc({token:Egd,factory:Egd.\u0275fac,providedIn:"root"});var Fgd=function(){var a=new eD(852,"0");a.setComponentId("");a.useSendBeaconForFinalFlush();a.useGetRequestForFinalFlush();a.sendBeaconApiEnabled=!0;a=new QK(852,void 0,void 0,void 0,void 0,a.build());a=this.service=new Q8c(a);a.flushInterval=3E3;a.flushTimer.setInterval(3E3)};Fgd.\u0275fac=function(a){return new (a||Fgd)};Fgd.\u0275prov=Dc({token:Fgd,factory:Fgd.\u0275fac,providedIn:"root"});var Ggd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ggd,W);var Hgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hgd,W);var Igd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Igd,W);h=Igd.prototype;h.setUserAction=function(a){return Gn(this,1,a)};h.getIssueId=function(){return pn(this,3)};h.getIssueId_asString=function(){return tn(this,3)};h.setIssueId=function(a){return vn(this,3,a)};h.getEnvironmentType=function(){return ui(this,4)};h.setEnvironmentType=function(a){return oj(this,4,a)};h.getFrontendAccessMode=function(){return ui(this,5)};
h.setFrontendAccessMode=function(a){return oj(this,5,a)};var Jgd=so("debug-logging")(),YP=function(){this.activeSession=p(uu);this.streamz=p(Fgd);this.clearcutTransport=p(Egd);this.pageLoadTime=new Qad(this.streamz.service);this.userLatency=new Sad(this.streamz.service);this.userActionCounter=new Rad(this.streamz.service);this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType()};
YP.prototype.timePageLoad=function(a,b){this.pageLoadTime.record(a,b,this.frontendAccessMode,this.environmentType);Jgd&&console.log("Clearcut stub",{action:b,duration:a})};var ZP=function(a,b,c){a.userLatency.record(b,c,a.frontendAccessMode,a.environmentType);Jgd&&console.log("Clearcut stub",{action:c,duration:b})},Kgd=function(a,b){a.userActionCounter.increment(b,a.frontendAccessMode,a.environmentType);Jgd&&console.log("Clearcut stub",{action:b})};YP.\u0275fac=function(a){return new (a||YP)};
YP.\u0275prov=Dc({token:YP,factory:YP.\u0275fac,providedIn:"root"});var Lgd=uo("journey-log"),Mgd=to("journey-log"),Ngd=[{matcher:RegExp("ssue__edit"),outputEvent:"edit"},{matcher:RegExp("ssue__addComment"),outputEvent:"comment"},{matcher:RegExp("ssue__light-ixn"),outputEvent:"ixn"},{matcher:RegExp("ssue__copyIssueId"),outputEvent:"ixn"},{matcher:RegExp("global-search__.*__.*text"),outputEvent:"ilp-search"},{matcher:RegExp("global-search__.*__filters"),outputEvent:"ilp-filter"}],Ogd={startEvents:["ilp-search"],successEvents:["edit","ixn","comment"],abortEvents:["ilp-filter",
"idle"],successMarker:"SUCCESS-search",count:["nav"]},Pgd=function(){this.clearcut=p(YP)},Qgd=function(a,b){var c=c===void 0?Date.now():c;var d,e=(d=Mgd())!=null?d:[];e.push([b,c]);e.length>100&&(e=e.slice(-100));Lgd(e);if(Ogd.successEvents.includes(b)){b=e;c=Ogd.abortEvents;d=Ogd.successEvents;e=Ogd.startEvents;for(var f=Ogd.successMarker,g,k=b.length-1;k>=0;k--){var l=m(b[k]),r=l.next().value;l=l.next().value;if(c.includes(r))break;if(f===r)break;if(d.includes(r)){if(g&&w)break;var w=l}else w&&
e.includes(r)&&(g=l)}w=g&&w?[g,w]:void 0;w&&(w=m(w),g=w.next().value,w=w.next().value-g,ZP(a.clearcut,w,W2a("journey","global-search-text")),dr("journey","global-search-text","duration",w),Qgd(a,Ogd.successMarker))}};Pgd.\u0275fac=function(a){return new (a||Pgd)};Pgd.\u0275prov=Dc({token:Pgd,factory:Pgd.\u0275fac,providedIn:"root"});var Rgd=function(){var a=this;this.clearcut=p(YP);this.onMeasurement=function(b){b.getEntries().forEach(a.sendToClearcut)};this.sendToClearcut=function(b){var c=b.name;c&&c.startsWith("GTM-")||(b=Math.round(b.duration),c!=null&&(isNaN(b)||a.clearcut.timePageLoad&&a.clearcut.timePageLoad(b,c)))}},Sgd=function(a){v2a()&&(a.observer!=null&&a.observer.disconnect(),a.observer=new u2a.PerformanceObserver(a.onMeasurement),a.observer.observe({entryTypes:["measure"]}))};
Rgd.\u0275fac=function(a){return new (a||Rgd)};Rgd.\u0275prov=Dc({token:Rgd,factory:Rgd.\u0275fac,providedIn:"root"});var X2a={},Tgd={logInfo:function(){console.log(Z2a());console.log("\nDuplicate Requests:");console.table(Y2a())},getCounts:function(){return X2a},getDupes:Y2a,getAggregates:Z2a};var Ugd={attributes:!1,childList:!0,subtree:!0},$P=function(){var a=this;this.ngZone=p(Rg);this.router=p(fF);this.activatedRoute=p(Lj);this.dom$=new qf;this.cdr$=this.ngZone.onStable;this.xhr$=new qf;this.render$=te(this.dom$,this.cdr$);this.renderSettled$=this.render$.pipe(jf(200));this.navigatedTo$=this.router.events.pipe(ue(a3a),A(function(){return $2a(a.activatedRoute.snapshot)}));this.navigatedTo$.pipe(yf(function(b){return a.renderSettled$.pipe(lf(1),A(function(){return b}))}),vf(1));this.domObserver=
new MutationObserver(function(){return void a.dom$.next()})},Vgd=function(a){a.domObserver.disconnect();a.domObserver.observe(document.body,Ugd)};$P.prototype.intercept=function(a,b){var c=a.method+" "+a.urlWithParams;X2a[c]=~~X2a[c]+1;this.xhr$.next(c);return b.handle(a)};$P.\u0275fac=function(a){return new (a||$P)};$P.\u0275prov=Dc({token:$P,factory:$P.\u0275fac,providedIn:"root"});var Wgd={provide:ABc,useExisting:$P,multi:!0};var aQ=function(){Ti.apply(this,arguments)};Y(aQ,Ti);aQ.create=Ti.create;aQ.prototype.emit=function(a){Ti.prototype.emit.call(this,a)};var Z=function(){this.destroyed$=new uf(1);this.subscriptions=new Pd};Z.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};Z.\u0275fac=function(a){return new (a||Z)};Z.\u0275dir=af({type:Z});var bQ=function(){this.cdr=p(Cx);this.zone=p(Rg);this.destroyed=!1};bQ.prototype.ngOnDestroy=function(){this.destroyed=!0};bQ.prototype.detectChanges=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.detectChanges()})};bQ.prototype.markForCheck=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.markForCheck()})};bQ.\u0275fac=function(a){return new (a||bQ)};bQ.\u0275prov=Dc({token:bQ,factory:bQ.\u0275fac});var cQ=function(){Z.apply(this,arguments);var a=this;this.ngZone=p(Rg);this.activeSubject$=new Mj(!1);this.active$=this.activeSubject$.pipe(nf(),zf(this.destroyed$),c3a(this.ngZone));this.onUserEvent=xHc(function(){a.activeSubject$.next(!0);Xgd(a)},200);this.onVisibilityChange=function(){document.visibilityState==="hidden"?(a.activeSubject$.next(!1),clearTimeout(a.activeTimeoutId)):(a.activeSubject$.next(!0),Xgd(a))}};Y(cQ,Z);cQ.\u0275dir=Z.\u0275dir;
cQ.prototype.install=function(){var a=this;if(document.visibilityState==="visible")this.onUserEvent();this.ngZone.runOutsideAngular(function(){window.addEventListener("click",a.onUserEvent);window.addEventListener("keydown",a.onUserEvent);window.addEventListener("mousemove",a.onUserEvent);window.addEventListener("wheel",a.onUserEvent);window.addEventListener("touchstart",a.onUserEvent);window.addEventListener("focus",a.onUserEvent)});document.addEventListener("visibilitychange",this.onVisibilityChange)};
cQ.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);clearTimeout(this.activeTimeoutId);window.removeEventListener("click",this.onUserEvent);window.removeEventListener("keydown",this.onUserEvent);window.removeEventListener("mousemove",this.onUserEvent);window.removeEventListener("wheel",this.onUserEvent);window.removeEventListener("touchstart",this.onUserEvent);window.removeEventListener("focus",this.onUserEvent);document.removeEventListener("visibilitychange",this.onVisibilityChange)};
var Xgd=function(a){clearTimeout(a.activeTimeoutId);a.activeTimeoutId=setTimeout(function(){a.activeSubject$.next(!1)},1E4)};cQ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(cQ)))(b||cQ)}}();cQ.\u0275prov=Dc({token:cQ,factory:cQ.\u0275fac,providedIn:"root"});var Ygd=[Pj,Rj,Qj],dQ=function(){Z.call(this);var a=this;this.router=p(fF);this.routeChangeStart=new qf;this.routeChangeSuccess=new qf;this.locationChangeStart=new qf;this.locationChangeSuccess=new qf;this.routeUpdate=new qf;this.viewContentLoaded=new qf;this.navigationEnd$=this.router.events.pipe(ue(a3a));this.navigationOver$=this.router.events.pipe(ue(function(c){return Ygd.some(function(d){return c instanceof d})}));Zgd(this,uxa).subscribe(function(c){a.routeChangeStart.next({params:Object.assign({},
c.snapshot.queryParams,c.snapshot.params)})});var b=Zgd(this,$Pc);te(this.navigationOver$.pipe(kf(rx)),this.routeChangeStart.pipe(kf(b))).pipe(yf(Rd),ue(function(c){return c.snapshot.routeConfig.isRootRoute}),A(function(c){return{params:Object.assign({},c.snapshot.queryParams,c.snapshot.params)}}),zf(this.destroyed$)).subscribe(function(c){a.routeChangeSuccess.next(c)});Zgd(this,gr).pipe(A(function(c){return c.url}),nf()).subscribe(function(){a.locationChangeStart.next()});Zgd(this,Pj).pipe(A(function(c){return c.url}),
nf()).subscribe(function(){a.locationChangeSuccess.next()});b=p(Lj).queryParams.pipe(Cf(Zgd(this,SPc)));te(this.routeChangeStart.pipe(kf(rx)),this.navigationOver$.pipe(kf(b))).pipe(yf(Rd),zf(this.destroyed$)).subscribe(function(c){c=m(c);c.next();c=c.next().value;a.routeUpdate.next({params:c.state.root.params})});Zgd(this,Pj).subscribe(function(){a.viewContentLoaded.next()})};Y(dQ,Z);dQ.\u0275dir=Z.\u0275dir;
var Zgd=function(a,b){return a.router.events.pipe(ue(function(c){return c instanceof b}),A(function(c){return c}),zf(a.destroyed$))};dQ.\u0275fac=function(a){return new (a||dQ)};dQ.\u0275prov=Dc({token:dQ,factory:dQ.\u0275fac,providedIn:"root"});var $gd=so("onedev-darkmode"),eQ=function(){var a=p(dQ),b=p(uu),c=p(Lj);Z.call(this);var d=this;this.journeyTracker=p(Pgd);this.preapply=function(){return function(k){return function(l,r){d.trackEvent("editIssue",k,l,r)}}};V2a();P2a(b.getUserTypeLabel());b=b.getUserPreferences();er("dimension7",$gd()?"dark":"default");var e;er("dimension3",(e=b.themePreferences)==null?void 0:e.density);e=b.showFullHistory?"fh":"comments";var f;if((f=b.commentFilterPreferences)==null?0:f.commentFilter){var g;e=(g=
b.commentFilterPreferences)==null?void 0:g.commentFilter}er("dimension2",e);er("dimension5",b.showRecentEventsFirst?"newestFirst":"oldestFirst");this.subscriptions.add(a.viewContentLoaded.pipe(xf(void 0)).subscribe(function(){var k=$2a(c.snapshot);Q2a("page_location",k);I2a("page_view",{page_path:k})}))};Y(eQ,Z);eQ.\u0275dir=Z.\u0275dir;
eQ.prototype.trackEvent=function(a,b,c,d){dr(a,b,c,typeof d==="boolean"?d?1:0:d);d=this.journeyTracker;a=W2a(a,b,c);b=m(Ngd);for(c=b.next();!c.done;c=b.next()){c=c.value;var e=c.outputEvent;if(a.match(c.matcher)){Qgd(d,e);break}}};var ahd=function(a,b,c){I2a("timing",Object.assign({},{timing_category:"userAction",timing_var:a,timing_value:b},c!==void 0?{timing_label:c}:{}))},bhd=function(a,b){a.trackEvent("editIssue","updateStatus",b)};eQ.\u0275fac=function(a){return new (a||eQ)};
eQ.\u0275prov=Dc({token:eQ,factory:eQ.\u0275fac,providedIn:"root"});var e3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(e3a,W);var chd=!1;var gQ=function(){uO.call(this);var a=this;this.batchApiAdapter=p(MO);this.issueApi=p(LP);this.userResources=p(jP);this.refreshMonitor=p(VP);this.issueService=p(SP);this.activeSession=p(uu);this.hotlistFridge=p(lP);this.analytics=p(eQ);this.issueExperimentalFieldsFridge=p(UP);this.issueFullBatchConfig=p(fQ);this.issueFridge=p(XP);this.recordType="issue-full";this.idForRecord=function(c){return String(c.issueId)};this.isEqual=mm;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.issueFullBatchConfig);
if(chd)var b=void 0;else chd=!0,b=g3a();b&&this.announce(b);this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(gQ,uO);h=gQ.prototype;h.announce=function(a,b){uO.prototype.announce.call(this,h3a(a));this.issueFridge.announce(xUa(a),b)};
h.fetchOne=function(a){var b=this;this.issueFridge.setIsGetting(a);return this.batchAdaptedGet(a).pipe(Af(function(c){b.issueFridge.clearIsGetting(a);b.issueFridge.announce(xUa(c))}),A(function(c){return h3a(c)}),gf(function(c){b.issueFridge.clearIsGetting(a);return de(function(){return c})}))};h.fetchSet=function(a){var b=this;return ie(a.map(function(c){return b.fetchOne(c).pipe(gf(function(){return ce(void 0)}))})).pipe(A(function(c){return c.filter(Pm)}))};
h.watch=function(a,b){return ie([uO.prototype.watch.call(this,a,b),this.issueFridge.watch(a,b)]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return yUa(d,c)}))};h.watchSet=function(a){return ie([uO.prototype.watchSet.call(this,a),this.issueFridge.watchSet(a)]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d=eo(c,function(e){return e.issueId});return b.map(function(e){return yUa(d.get(e.issueId),e)})}),A(function(b){return b.filter(Pm)}))};
h.peek=function(a){var b=uO.prototype.peek.call(this,a);a=this.issueFridge.peek(a);return yUa(a,b)};h.poke=function(a,b){var c=this;return y(function(d){return d.nextAddress==1?z(d,Promise.all([uO.prototype.poke.call(c,a,b),c.issueFridge.poke(a,b)]),2):d.return(c.peek(a))})};h.manualUpdate=function(a,b){if(a=(a=this.peek(a))&&nm(a))b(a),this.announce(a)};h.copy=function(a){return a&&nm(a)};
var dhd=function(a,b,c){a.analytics.trackEvent("issue","light-ixn","star");var d={starred:c,voted:null,notificationSubscription:null};XN(a.activeSession)&&(d.voted=c);return efd(a.userResources,b,d).pipe(Af(function(){a.manualUpdate(b,function(e){e.userData&&(e.userData.starred=c,XN(a.activeSession)&&(e.userData.voted=c))})}))},ehd=function(a,b,c){a.analytics.trackEvent("issue","light-ixn","vote",c);return efd(a.userResources,b,{voted:c,starred:null,notificationSubscription:null}).pipe(Af(function(){a.manualUpdate(b,
function(d){d.userData&&(d.userData.voted=c)})}))};gQ.prototype.setNotificationSubscription=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1)return c.analytics.trackEvent("issue","light-ixn","notifs",Number(b)),d={voted:null,starred:null,notificationSubscription:b},z(e,fe(efd(c.userResources,a,d)),2);c.manualUpdate(a,function(f){f.userData&&(f.userData.notificationSubscription=b)});ae(e)})};
var fhd=function(a,b,c){a.analytics.trackEvent("issue","edit","title");var d={issueId:b,actions:[{fieldName:"title",value:c}]};a.manualUpdate(b,function(e){e.snapshot[0].title=c});return a.issueApi.updateIssue(b,d).pipe(Af(function(e){e&&a.announce(e)}))};gQ.prototype.removeHotlists=function(a,b){return this.updateHotlists(a,[],b)};
gQ.prototype.updateHotlists=function(a,b,c){var d=this,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1){d.analytics.trackEvent("issue","edit","hotlists");e={removeHotlistIds:c,addHotlistIds:b,hotlistIssue:{issueId:a}};f=m([].concat(q(b),q(c)));for(g=f.next();!g.done;g=f.next())k=g.value,d.hotlistFridge.setIsSaving(k);Wd(w,2);return z(w,fe(d.issueApi.updateIssueHotlists(a,e)).finally(function(){for(var x=m([].concat(q(b),q(c))),C=x.next();!C.done;C=x.next())d.hotlistFridge.clearIsSaving(C.value)}),
4)}if(w.nextAddress!=2)return(l=w.yieldResult)&&d.announce(l),w.return(l);r=$d(w);d.poke(a);throw r;})};var hhd=function(a,b,c){return ghd(a,"ADD","DUPLICATE",c,[b]).then(function(){c!=null&&bhd(a.analytics,"DUPLICATE");return a.poke(b)})};h=gQ.prototype;h.removeDuplicate=function(a,b){var c=this;return ghd(this,"REMOVE","DUPLICATE",b,[a]).then(function(){return c.poke(a)})};h.addBlocking=function(a,b){return ghd(this,"ADD","BLOCKING",a,b)};
h.removeBlocking=function(a,b){return ghd(this,"REMOVE","BLOCKING",a,b)};h.addBlockedBy=function(a,b){return ghd(this,"ADD","BLOCKED_BY",a,b)};h.removeBlockedBy=function(a,b){return ghd(this,"REMOVE","BLOCKED_BY",a,b)};
var ghd=function(a,b,c,d,e){if(e.length===0||d==null)return Promise.resolve(void 0);a.analytics.trackEvent("issue","edit","relation",Number(c));b={relation:c,issueId:d,targetIds:e,actionType:b};ihd(a,b);var f=[d].concat(q(e));e=m(f);for(c=e.next();!c.done;c=e.next())a.setIsSaving(c.value);return fe(a.issueApi.relateIssue(d,b)).then(function(g){g&&a.announce(g)}).catch(function(g){a.poke(d);throw g;}).finally(function(){for(var g=m(f),k=g.next();!k.done;k=g.next())a.clearIsSaving(k.value)})},hQ=function(a,
b,c){c=c===void 0?{}:c;var d=c.markRead===void 0?!0:c.markRead;var e=c.eagerUpdate===void 0?!0:c.eagerUpdate;var f=c.userActivityType===void 0?"USER_ACTIVITY_TYPE_UNDEFINED":c.userActivityType;var g,k,l,r;return y(function(w){if(w.nextAddress==1)return a.activeSession.isAnonymous()?w.return():z(w,a.issueService.markRead(b,d,f),2);g=w.yieldResult;if(e)for(k=m(b),l=k.next();!l.done;l=k.next())r=l.value,a.manualUpdate(String(r),function(x){x.userData&&(x.userData.lastViewedTimeMicros=g.readTimestamp)});
return w.return(g.readTimestamp?Math.round(g.readTimestamp/1E3):void 0)})},ihd=function(a,b){a.manualUpdate(b.issueId,function(c){switch(b.relation){case "BLOCKED_BY":if(b.actionType==="ADD"){var d;c.snapshot[0].blockedByIssueId=[].concat(q((d=c.snapshot[0].blockedByIssueId)!=null?d:[]),q(b.targetIds.map(String)))}else if(b.actionType==="REMOVE"){var e,f;c.snapshot[0].blockedByIssueId=(f=(e=c.snapshot[0].blockedByIssueId)==null?void 0:e.filter(function(g){return!b.targetIds.includes(String(g))}))!=
null?f:[]}}})};gQ.\u0275fac=function(a){return new (a||gQ)};gQ.\u0275prov=Dc({token:gQ,factory:gQ.\u0275fac,providedIn:"root"});var fQ=function(){this.issueApi=p(LP);this.maxBatchSize=100;this.bufferTimeMs=0};fQ.prototype.call=function(a){var b=this;if(a.size===1){var c=[].concat(q(a))[0];return this.issueApi.getIssueFull(c).pipe(A(function(d){return new Map([[c,d]])}))}return ne(function(){return b.issueApi.batchGetIssuesFull([].concat(q(a)))}).pipe(A(function(d){return eo(d,function(e){return e.issueId})}))};
fQ.prototype.split=function(a,b){return b.get(a)};fQ.\u0275fac=function(a){return new (a||fQ)};fQ.\u0275prov=Dc({token:fQ,factory:fQ.\u0275fac,providedIn:"root"});var iQ=function(){uO.call(this);var a=this;this.api=p(fO);this.activeSession=p(uu);this.refreshMonitor=p(VP);this.recordType="issue-recommendation";this.isEqual=mm;this.idForRecord=function(b){return b.issueId+"-"+b.recommendationType};this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(iQ,uO);h=iQ.prototype;
h.fetchOne=function(a){if(this.activeSession.isExternalSession())return ce(void 0);a=j3a(a);var b=a.issueId,c=a.recommendationType;return c==="NEEDS_INFO"&&!this.activeSession.getFlag("enableNeedsInfoUi")||c==="ANY_ISSUE_EDIT"&&!this.activeSession.getFlag("enablePlaybook")?ce(void 0):this.api.lookupRecommendations({resource:"issues/"+b,type:c,minConfidence:"MEDIUM",view:"FULL",pageSize:10}).pipe(A(function(d){return{issueId:b,recommendationType:c,recommendations:d.recommendations}}),gf(function(d){console.error("IssueRecommendationFridge error",
d);return ce(void 0)}))};
h.fetchSet=function(a){if(this.activeSession.isExternalSession())return ce([]);var b=a.map(function(c){return j3a(c)});a=tq(b.map(function(c){return"issues/"+c.issueId}));b=new Set(b.map(function(c){return c.recommendationType}));this.activeSession.getFlag("enableNeedsInfoUi")||b.delete("NEEDS_INFO");this.activeSession.getFlag("enablePlaybook")||b.delete("ANY_ISSUE_EDIT");return b.size===0?ce([]):this.api.batchLookupTopRecommendations({resources:a,types:[].concat(q(b)),view:"FULL"}).pipe(A(function(c){return c.recommendations.map(function(d){return{issueId:rt(d.resource),recommendationType:d.type,
recommendations:[d]}})}))};h.watch=function(a){if(!a.includes("-"))throw Error("de");return uO.prototype.watch.call(this,a)};h.poke=function(a){if(!a.includes("-"))throw Error("ee");return uO.prototype.poke.call(this,a)};h.watchSet=function(a){if(a.some(function(b){return!b.includes("-")}))throw Error("fe");return uO.prototype.watchSet.call(this,a)};iQ.\u0275fac=function(a){return new (a||iQ)};iQ.\u0275prov=Dc({token:iQ,factory:iQ.\u0275fac,providedIn:"root"});var ir=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ir,W);var jhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jhd,W);h=jhd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.setRelationshipType=function(a){return Hm(this,2,a)};h.getIssueRelationship=function(){return X(this,ir,3)};h.setIssueRelationship=function(a){return Mi(this,ir,3,a)};h.setSignificanceOverride=function(a){return Hm(this,4,a)};var khd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(khd,W);h=khd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.setRelationshipType=function(a){return Hm(this,2,a)};h.setRequestsList=function(a){return Ni(this,3,a)};h.addAndReturnRequests=function(){return Ac(this,3,jhd)};h.setSignificanceOverride=function(a){return Hm(this,4,a)};var lhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lhd,W);h=lhd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.setRelationshipType=function(a){return Hm(this,2,a)};h.setSignificanceOverride=function(a){return Hm(this,4,a)};var mhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mhd,W);h=mhd.prototype;h.setRelationshipType=function(a){return Hm(this,1,a)};h.getSourceIssueIdsList_asString=function(){return Qm(this,2)};h.setSourceIssueIdsList=function(a){return tr(this,2,a)};h.getQuery=function(){return ui(this,3)};h.setQuery=function(a){return Fm(this,3,a)};h.clearQuery=function(){Hw(this,3)};var jQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jQ,W);var nhd=function(a,b){return tr(a,1,b)};jQ.prototype.setRelationshipType=function(a){return Hm(this,2,a)};var ohd=function(a,b){return an(a,3,b)},phd=function(a,b){return an(a,4,b)};jQ.prototype.getQuery=function(){return ui(this,5)};jQ.prototype.setQuery=function(a){return Fm(this,5,a)};jQ.prototype.clearQuery=function(){Hw(this,5)};var qhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,qhd.messageId)};Y(qhd,W);qhd.prototype.getIt=function(){return X(this,khd,5,jb)};qhd.prototype.setIt=function(a){return Mi(this,khd,5,a,jb)};qhd.messageId="b.BatchCreateIssueRelationshipsRequest";var rhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,rhd.messageId)};Y(rhd,W);rhd.prototype.getIssueRelationshipsList=function(){return Bi(this,ir,1,Ci(),jb)};rhd.messageId="b.BatchCreateIssueRelationshipsResponse";var shd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,shd.messageId)};Y(shd,W);shd.prototype.getIt=function(){return X(this,lhd,5,jb)};shd.prototype.setIt=function(a){return Mi(this,lhd,5,a,jb)};shd.messageId="b.BatchDeleteIssueRelationshipsRequest";var thd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,thd.messageId)};Y(thd,W);thd.prototype.getIt=function(){return X(this,mhd,4,jb)};thd.prototype.setIt=function(a){return Mi(this,mhd,4,a,jb)};thd.messageId="b.BatchGetIssueRelationshipsRequest";var uhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uhd,W);uhd.prototype.getIssueRelationshipsList=function(){return Bi(this,ir,1,Ci())};uhd.prototype.getTotalSize=function(){return Bm(this,2)};var vhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vhd.messageId)};Y(vhd,W);vhd.messageId="b.BatchGetIssueRelationshipsResponse";var whd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,whd.messageId)};Y(whd,W);whd.prototype.getIssueRelationship=function(){return X(this,ir,1,jb)};whd.prototype.setIssueRelationship=function(a){return Mi(this,ir,1,a,jb)};whd.messageId="b.CreateIssueRelationshipResponse";var xhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xhd.messageId)};Y(xhd,W);xhd.prototype.getIt=function(){return X(this,jQ,6,jb)};xhd.prototype.setIt=function(a){return Mi(this,jQ,6,a,jb)};xhd.messageId="b.GetIssueDescendantsRequest";var yhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,yhd.messageId)};Y(yhd,W);yhd.messageId="b.GetIssueDescendantsResponse";var zhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,zhd.messageId)};Y(zhd,W);zhd.prototype.getIssueRelationshipsList=function(){return Bi(this,ir,1,Ci(),jb)};zhd.messageId="b.ListIssueRelationshipsResponse";var Ahd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ahd.messageId)};Y(Ahd,W);Ahd.prototype.getIssueRelationship=function(){return X(this,ir,1,jb)};Ahd.prototype.setIssueRelationship=function(a){return Mi(this,ir,1,a,jb)};Ahd.messageId="b.UpdateIssueRelationshipResponse";var kQ=function(){this.executor=p(bO)};h=kQ.prototype;h.list=function(a,b){return this.executor.get({url:"action/issues/"+a+"/relationships?relationshipType="+aN[b],responseConstructor:zhd}).pipe(A(function(c){return c.getIssueRelationshipsList().map(l3a)}))};h.create=function(a,b,c){b=aN[b];c=k3a(c);return this.executor.post({url:"action/issues/"+a+"/relationships?relationshipType="+b,body:c,responseConstructor:whd}).pipe(A(function(d){return l3a(d.getIssueRelationship())}))};
h.update=function(a,b,c){b=aN[b];var d=k3a(c);return this.executor.put({url:"action/issues/"+a+"/relationships/"+c.targetIssueId+"?relationshipType="+b,body:d,responseConstructor:Ahd}).pipe(A(function(e){return l3a(e.getIssueRelationship())}))};h.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/relationships/"+c+"?relationshipType="+aN[b],responseConstructor:null})};
h.batchGet=function(a,b){b=aN[b];a=(new thd).setIt((new mhd).setSourceIssueIdsList(a).setRelationshipType(b).setQuery(this.getQuery(void 0)));return this.executor.post({url:"action/issues/batch_relationships",body:a,responseConstructor:vhd}).pipe(A(function(c){return Bi(c,uhd,1,Ci(),jb).map(m3a)}))};
var Bhd=function(a,b,c){var d=aN.CHILD;c=c.map(function(e){e=k3a(e);return(new jhd).setIssueRelationship(e)});b=(new qhd).setIt((new khd).setIssueId(b).setRelationshipType(d).setSignificanceOverride(c.length>1?4:0).setRequestsList(c));return a.executor.post({url:"action/issues/relationships_batchCreate",body:b,responseConstructor:rhd}).pipe(A(function(e){return e.getIssueRelationshipsList().map(l3a)}))},Chd=function(a,b,c){var d=aN.CHILD,e=new shd,f=e.setIt;b=(new lhd).setIssueId(b).setRelationshipType(d);
c=tr(b,3,c);e=f.call(e,c);return a.executor.post({url:"action/issues/relationships_batchDelete",body:e,responseConstructor:null})};
kQ.prototype.getDescendants=function(a){var b=a.issueIds;var c=a.relationshipType;var d=a.includeArchived;var e=a.depthLimit;a=a.prefixSizeLimit;c=aN[c];b=(new xhd).setIt(phd(ohd(nhd(new jQ,b).setRelationshipType(c).setQuery(this.getQuery(d)),e),a));return this.executor.post({url:"action/issues/descendants",body:b,responseConstructor:yhd}).pipe(A(function(f){var g=new Map;f=m(wc(f,1,uhd,Ub,jb).entries());for(var k=f.next();!k.done;k=f.next()){var l=m(k.value);k=l.next().value;l=l.next().value;g.set(String(k),
m3a(l))}return g}))};kQ.prototype.getQuery=function(a){return a?"include_archived:true":"include_archived:false"};kQ.\u0275fac=function(a){return new (a||kQ)};kQ.\u0275prov=Dc({token:kQ,factory:kQ.\u0275fac,providedIn:"root"});var lQ={},Dhd=(lQ.BUG="BUG",lQ.FEATURE_REQUEST="FEATURE_REQUEST",lQ.CUSTOMER_ISSUE="CUSTOMER_ISSUE",lQ.INTERNAL_CLEANUP="INTERNAL_CLEANUP",lQ.PROCESS="PROCESS",lQ.VULNERABILITY="VULNERABILITY",lQ.PRIVACY_ISSUE="PRIVACY_ISSUE",lQ.EPIC="STORY",lQ.STORY="TASK",lQ.TASK="TASK",lQ.PROJECT="TASK",lQ.FEATURE="TASK",lQ.MILESTONE="TASK",lQ.PROGRAM="PROJECT",lQ);var mQ=function(){tO.call(this,{freshUntil:6E4,ancientAfter:792E5});var a=this;this.issueRelationshipService=p(kQ);this.issueFullFridge=p(gQ);this.refreshMonitor=p(VP);this.recordType="issueRelationships";this.idForRecord=function(b){return b.issueId};this.isEqual=mm;this.activeMoveOperation$=new Mj(new Set);this.defaultQuery={type:"descendants",depth:1};this.assignParentToIssues=QUa(function(b,c){return Ehd(a,b,c)});this.assignParentToOneIssue=function(b,c){return Ehd(a,String(b),[{issueId:c}])};
this.moveChildrenInAPI=PUa(function(b){return a.moveChildrenInAPISequentially(b)});this.moveChildrenInAPISequentially=QUa(function(b){var c,d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,na,ua,ia,Ga,ha,sa,xa,Qa,bb;return y(function(ub){switch(ub.nextAddress){case 1:d=s3a(b);if(d.length===0)return ub.return();e=d.map(function(Wb){return Wb.issues.map(function(lc){return lc.parentId})}).flat();f=d.map(function(Wb){return Wb.newParentId});g=tq([].concat(q(e),q(f)));k=m(g);for(l=k.next();!l.done;l=k.next())r=l.value,
a.setIsSaving(r);Wd(ub,2);w=m(d);x=w.next();case 4:if(x.done){dt(ub,3);break}C=x.value;H=m(C.newRelations);J=H.next();O={};case 7:if(J.done){x=w.next();ub.jumpTo(4);break}O.newRelation=J.value;R=C.issues.find(function(Wb){return function(lc){return lc.issueId===Wb.newRelation.targetIssueId}}(O)).parentId;return C.newParentId===R?z(ub,fe(a.issueRelationshipService.update(C.newParentId,"CHILD",{afterIssueId:O.newRelation.afterIssueId,targetIssueId:O.newRelation.targetIssueId})),8):z(ub,fe(a.issueRelationshipService.create(C.newParentId,
"CHILD",{afterIssueId:O.newRelation.afterIssueId,targetIssueId:O.newRelation.targetIssueId})).catch(function(Wb){var lc,fc;if(!(Wb==null?0:(lc=Wb.error)==null?0:(fc=lc.details)==null?0:fc.includes("ALREADY_EXISTS")))throw Wb;}),12);case 12:return z(ub,fe(a.issueRelationshipService.delete(R,"CHILD",O.newRelation.targetIssueId)),8);case 8:O={newRelation:void 0};J=H.next();ub.jumpTo(7);break;case 2:c=V=$d(ub);case 3:ca=a.activeMoveOperation$.value;na=m(b.map(function(Wb){return Wb.eventTimestamps}).flat());
for(ua=na.next();!ua.done;ua=na.next())ia=ua.value,ca.delete(ia);a.activeMoveOperation$.next(ca);Ga=m(g);for(ha=Ga.next();!ha.done;ha=Ga.next())sa=ha.value,a.clearIsSaving(sa);Promise.all(g.map(function(Wb){return a.poke(Wb)}));xa=m(d);for(Qa=xa.next();!Qa.done;Qa=xa.next())bb=Qa.value,c&&bb.done.reject(c),bb.done.resolve();ae(ub)}})});this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(mQ,tO);
mQ.prototype.fetchOne=function(a){var b=this;return Fhd(this,function(){return b.issueRelationshipService.list(a,"CHILD").pipe(A(function(c){return{issueId:a,relatedChildren:c,totalChildCount:c.length}}),gf(function(c){return Pp(c)&&c.status===403?ce(void 0):de(function(){return c})}))})};
mQ.prototype.fetchAll=function(a){var b=this;switch(a.type){case "descendants":var c,d=[].concat(q((c=a.ids)!=null?c:[]));return d.length===0?ce({results:[]}):Fhd(this,function(){return b.issueRelationshipService.getDescendants({issueIds:d,relationshipType:"CHILD",includeArchived:!!a.includeArchived,depthLimit:a.depth,prefixSizeLimit:500}).pipe(A(n3a),A(function(e){return{results:e}}))});default:wb(a.type)}};mQ.prototype.copy=function(a){return a&&nm(a)};
var Fhd=function(a,b){var c=function(){return a.activeMoveOperation$.pipe(ue(function(d){return d.size===0}),yf(function(){return b()}),yf(function(d){return a.activeMoveOperation$.value.size===0?ce(d):c()}),lf(1))};return c()},Ghd=function(a,b){return a.watch(b).pipe(yf(function(c){return c&&c.totalChildCount===c.relatedChildren.length?ce(c):a.watch(b,{trustMemory:!1})}))},Hhd=function(a,b,c){return a.watchMany({type:"descendants",ids:new Set([b]),depth:c===void 0?100:c})},Ihd=function(a,b,c){return Jdd(a,
{type:"descendants",ids:new Set([b]),depth:c===void 0?100:c})};
mQ.prototype.unlinkFromParent=function(a,b,c){c=c===void 0?!1:c;var d=this,e;return y(function(f){switch(f.nextAddress){case 1:d.issueFullFridge.manualUpdate(b,function(g){--g.childIssueCount});d.issueFullFridge.manualUpdate(a,function(g){g.parentIssueIds=g.parentIssueIds.filter(function(k){return k!==b})});d.manualUpdate(b,function(g){var k=g.relatedChildren;g.relatedChildren=r3a(k,a);g.totalChildCount-=k.length-g.relatedChildren.length});if(c)return f.return();Wd(f,2);return z(f,fe(d.issueRelationshipService.delete(b,
"CHILD",a)),4);case 4:dt(f,0);break;case 2:return e=$d(f),z(f,Promise.all([d.poke(b),d.issueFullFridge.poke(b),d.issueFullFridge.poke(a)]),5);case 5:throw e;}})};
var Ehd=function(a,b,c){var d,e,f,g,k,l,r,w,x;return y(function(C){switch(C.nextAddress){case 1:d=[];e=[];f=[];if(c.length===0)return C.return({added:d,notAdded:e});g=Jhd(a,b);k=c.map(function(H,J){var O=H.afterIssueId==="-1"?g:H.afterIssueId;return{targetIssueId:H.issueId,afterIssueId:J?c[J-1].issueId:O}});Khd(a,b,k);l=m(k);r=l.next();case 2:if(r.done){C.jumpTo(4);break}w=r.value;Wd(C,5);return z(C,fe(a.issueRelationshipService.create(b,"CHILD",{targetIssueId:w.targetIssueId,afterIssueId:w.afterIssueId})),
7);case 7:d.push(w.targetIssueId);dt(C,3);break;case 5:x=$d(C);if(!Pp(x))throw x;f.push(x);e.push(w.targetIssueId);case 3:r=l.next();C.jumpTo(2);break;case 4:return Promise.all([a.poke(b),a.issueFullFridge.poke(b)]),C.return(Object.assign({},{added:d,notAdded:e},f.length?{errors:f}:{}))}})},Khd=function(a,b,c){var d=0;a.manualUpdate(b,function(e){var f=q3a(e.relatedChildren,c);d=f.length-e.relatedChildren.length;e.relatedChildren=f;e.totalChildCount+=d},{evenWhenInFlight:!0});a.issueFullFridge.manualUpdate(b,
function(e){e.childIssueCount+=d},{evenWhenInFlight:!0})},Lhd=function(a,b,c){var d,e,f,g,k,l,r,w,x,C,H,J;return y(function(O){if(O.nextAddress==1)return d=[],e=[],f=[],c.length===0?O.return({added:d,notAdded:e}):z(O,Promise.allSettled(c.map(function(R){return fe(a.issueRelationshipService.create(R,"CHILD",{targetIssueId:b,afterIssueId:Jhd(a,R)}))})),2);g=O.yieldResult;k=m(g.entries());for(l=k.next();!l.done;l=k.next())r=l.value,w=m(r),x=w.next().value,C=w.next().value,H=x,J=C,J.status==="fulfilled"&&
d.push(c[H]),J.status==="rejected"&&(e.push(c[H]),f.push(J.reason));Promise.all(c.map(function(R){return a.poke(R)}));return O.return({added:d,notAdded:e,errors:f})})},Mhd=function(a,b,c){var d=b.parentId,e=Date.now();a.activeMoveOperation$.next(a.activeMoveOperation$.value.add(e));for(var f=m(c),g=f.next(),k={};!g.done;k={issue$jscomp$52:void 0},g=f.next())k.issue$jscomp$52=g.value,a.manualUpdate(k.issue$jscomp$52.parentId,function(V){return function(ca){ca.relatedChildren=r3a(ca.relatedChildren,
V.issue$jscomp$52.issueId);--ca.totalChildCount}}(k));var l=void 0,r;if((r=b.position)==null?0:r.issueId){var w;if(((w=b.position)==null?void 0:w.position)==="after")l=b.position.issueId;else{var x;if(((x=b.position)==null?void 0:x.position)==="before"){var C,H;f=(H=(C=a.memory.getData(d))==null?void 0:C.relatedChildren)!=null?H:[];C=m(f.entries());for(H=C.next();!H.done;H=C.next())if(g=m(H.value),H=g.next().value,g=g.next().value,g.targetIssueId===b.position.issueId){b=void 0;l=(b=f[H-1])==null?
void 0:b.targetIssueId;break}}}}var J=c.map(function(V,ca){return{targetIssueId:V.issueId,afterIssueId:ca?c[ca-1].issueId:l}});Kdd(a,d)!==void 0?a.manualUpdate(d,function(V){V.relatedChildren=q3a(V.relatedChildren,J);V.totalChildCount+=J.length},{evenWhenInFlight:!0}):a.announce({issueId:d,relatedChildren:q3a([],J),totalChildCount:J.length});b=new OUa;var O,R;a.moveChildrenInAPI({newParentId:d,newRelations:J,issues:c,eventTimestamps:[e],newParentChildrenSnapshot:(R=(O=a.memory.getData(d))==null?void 0:
O.relatedChildren)!=null?R:[],done:b});return b.promise},Jhd=function(a,b){var c;a=(c=a.memory.getData(b))==null?void 0:c.relatedChildren;var d;return a==null?void 0:(d=a[(a==null?NaN:a.length)-1])==null?void 0:d.targetIssueId};mQ.\u0275fac=function(a){return new (a||mQ)};mQ.\u0275prov=Dc({token:mQ,factory:mQ.\u0275fac,providedIn:"root"});var Nhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nhd,W);var nQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nQ,W);nQ.prototype.getTrackerId=function(){return pn(this,2)};nQ.prototype.getTrackerId_asString=function(){return tn(this,2)};nQ.prototype.setTrackerId=function(a){vn(this,2,a)};nQ.prototype.setFilterSignalsList=function(a){return cx(this,3,a)};var kr=new Set("READY_TO_SUBMIT NEEDS_ATTENTION THREAD_MENTIONS_ME CHANGELIST_MANUAL_SIGNAL CHANGELIST_SNOOZE_EXPIRED TAGGED_IN_COMMENT REQUIRES_APPROVAL DRIVE_MANUAL_SIGNAL DRIVE_SNOOZE_EXPIRED GERRIT_CHANGE_NEEDS_ATTENTION GERRIT_CHANGE_READY_TO_SUBMIT GERRIT_MANUAL_SIGNAL GERRIT_SNOOZE_EXPIRED DUE_SOON DUE_DATE_EXPIRED GOOGLE_TASKS_MANUAL_SIGNAL GOOGLE_TASKS_SNOOZE_EXPIRED ISSUE_SIGNAL_UNSPECIFIED NEAR_SLO COMMENT_MENTIONS_ME MENTIONED_NEEDS_RESPONSE BLOCKERS_CLOSED NEWLY_BLOCKING NEEDS_REPORTER_INPUT REPLIED_TO_MENTION NEWLY_ASSIGNED_TO_ME ISSUE_MANUALLY_SIGNALED ISSUE_SNOOZE_EXPIRED CONFIGURABLE_ALERT IRM_MANUAL_SIGNAL IRM_SNOOZE_EXPIRED IRM_SEND_POSTMORTEM_FOR_REVIEW IRM_REVIEW_POSTMORTEM".split(" "));var Ohd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ohd,W);h=Ohd.prototype;h.getIterationId_asString=function(){return tn(this,1)};h.getWorkspaceId=function(){return pn(this,2)};h.getWorkspaceId_asString=function(){return tn(this,2)};h.getType=function(){return wi(this,3)};h.setType=function(a){return Hm(this,3,a)};h.getName=function(){return ui(this,4)};h.setName=function(a){return Fm(this,4,a)};h.getHotlistId=function(){return pn(this,7)};
h.setHotlistId=function(a){return Io(this,7,a)};h.getStatus=function(){return wi(this,8)};h.setStatus=function(a){return Hm(this,8,a)};h.getTagsList=function(a){return wn(this,9,Ci(a))};h.getTags=function(a){return Vw(this,9,a)};h.setVelocity=function(a){return qp(this,11,a)};h.getStartTime=function(){return X(this,Si,12)};h.setStartTime=function(a){Mi(this,Si,12,a)};h.getEndTime=function(){return X(this,Si,13)};h.setEndTime=function(a){Mi(this,Si,13,a)};
h.hasEndTime=function(){return xi(this,Si,13)};h.getEtag=function(){return ui(this,18)};h.setEtag=function(a){return Fm(this,18,a)};var oQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oQ,W);oQ.prototype.setContextsList=function(a){return cx(this,1,a)};oQ.prototype.addContexts=function(a){return zc(this,1,Cb,a,void 0,Db)};oQ.prototype.getContexts=function(a){return Vw(this,1,a)};var Phd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Phd,W);var Qhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qhd,W);var Rhd=function(a){var b=new Qhd;return Ni(b,1,a)};var pQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pQ,W);pQ.prototype.getTitle=function(){return ui(this,2)};pQ.prototype.setTitle=function(a){return Fm(this,2,a)};var Shd=function(a,b){return Fm(a,3,b)},Thd=function(a,b){return Io(a,4,b)},Uhd=function(a,b){return Fm(a,5,b)};pQ.prototype.getClientId=function(){return Bm(this,6)};pQ.prototype.setClientId=function(a){return an(this,6,a)};pQ.prototype.getWorkspaceId=function(){return ui(this,7)};var Vhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Vhd.messageId)};Y(Vhd,W);Vhd.prototype.setTaskIdsList=function(a){return Gm(this,1,a,jb)};Vhd.messageId="mc.BatchUpdateTasksDismissStateRequest";var Whd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Whd.messageId)};Y(Whd,W);Whd.prototype.setTaskIdsList=function(a){return Gm(this,1,a,jb)};Whd.messageId="mc.BatchUpdateTasksManualSignalStateRequest";var Xhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Xhd.messageId)};Y(Xhd,W);Xhd.prototype.setTaskIdsList=function(a){return Gm(this,1,a,jb)};Xhd.prototype.setTaskStatus=function(a){return Hm(this,2,a,jb)};Xhd.messageId="mc.BatchUpdateTaskSnoozeStateRequest";var Yhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Yhd,W);Yhd.prototype.setFilterSignalsList=function(a){return cx(this,1,a)};var Zhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zhd,W);Zhd.prototype.setFilterSignalsList=function(a){return cx(this,1,a)};var $hd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($hd,W);$hd.prototype.setFilterSignalsList=function(a){return cx(this,1,a)};var aid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aid,W);aid.prototype.getCommentId=function(){return ui(this,2)};aid.prototype.setCommentId=function(a){return Fm(this,2,a)};var bid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bid,W);bid.prototype.setTaskResourceTypesList=function(a){return cx(this,1,a)};bid.prototype.setMaxTaskAgeDays=function(a){return an(this,2,a)};bid.prototype.setIssueFilters=function(a){return Mi(this,nQ,3,a)};var cid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cid,W);cid.prototype.setFilterSignalsList=function(a){return cx(this,1,a)};var did=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(did,W);did.prototype.setFilterSignalsList=function(a){return cx(this,1,a)};var eid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eid,W);eid.prototype.setTaskResourceTypesList=function(a){return cx(this,1,a)};eid.prototype.setMaxTaskAgeDays=function(a){return an(this,2,a)};eid.prototype.setIssueFilters=function(a){return Mi(this,nQ,4,a)};var fid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fid,W);fid.prototype.getId=function(){return ui(this,1)};fid.prototype.setId=function(a){return Fm(this,1,a)};fid.prototype.getTitle=function(){return ui(this,2)};fid.prototype.setTitle=function(a){return Fm(this,2,a)};var gid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gid,W);var qQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,qQ.messageId)};Y(qQ,W);qQ.prototype.getResponse=function(){return X(this,gid,1,jb)};qQ.prototype.getMutableResponse=function(){return Ii(this,gid,1,void 0,jb)};qQ.prototype.hasResponse=function(){return xi(this,gid,1,jb)};qQ.messageId="b.GetGoogleTasksTaskListsResponse";var rQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rQ,W);rQ.prototype.getCommentId=function(){return ui(this,1)};rQ.prototype.setCommentId=function(a){return Fm(this,1,a)};rQ.prototype.getContent=function(){return ui(this,3)};rQ.prototype.setContent=function(a){return Fm(this,3,a)};var sQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,sQ.messageId)};Y(sQ,W);sQ.prototype.getResponse=function(){return X(this,rQ,1,jb)};sQ.prototype.getMutableResponse=function(){return Ii(this,rQ,1,void 0,jb)};sQ.prototype.hasResponse=function(){return xi(this,rQ,1,jb)};sQ.messageId="b.LatestDriveMentionResponse";var tQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tQ,W);tQ.prototype.getCreatedTimestamp=function(){return pn(this,1)};tQ.prototype.setOwnedByMe=function(a){return Yo(this,3,a)};tQ.prototype.getMimeType=function(){return ui(this,15)};tQ.prototype.setMimeType=function(a){return Fm(this,15,a)};var hid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hid,W);h=hid.prototype;h.setResourceId=function(a){Fm(this,17,a)};h.getTitle=function(){return ui(this,2)};h.setTitle=function(a){return Fm(this,2,a)};h.getLastModifiedTimestamp=function(){return pn(this,3)};h.getIconName=function(){return ui(this,10)};h.getExternalLink=function(){return ui(this,16)};h.getIsDeleted=function(){return Fi(this,19)};h.setIsDeleted=function(a){Yo(this,19,a)};
h.getDriveResource=function(){return bm(this,tQ,5,iid)};h.hasDriveResource=function(){return Qi(this,tQ,5,iid)};var iid=[5,6,7,8,9,18,22,23,24];var jid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jid,W);jid.prototype.getName=function(){return ui(this,1)};jid.prototype.setName=function(a){return Fm(this,1,a)};jid.prototype.getContent=function(){return ui(this,2)};jid.prototype.setContent=function(a){return Fm(this,2,a)};var kid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kid,W);h=kid.prototype;h.getTaskId=function(){return ui(this,1)};h.setTaskStatus=function(a){return Hm(this,3,a)};h.getResource=function(){return X(this,hid,6)};h.setResource=function(a){return Mi(this,hid,6,a)};h.getNote=function(){return X(this,jid,22)};h.getCreatedTimestamp=function(){return pn(this,7)};var lid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lid,W);lid.prototype.getTask=function(){return X(this,kid,1)};lid.prototype.hasTask=function(){return xi(this,kid,1)};var uQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,uQ.messageId)};Y(uQ,W);uQ.prototype.getResponse=function(){return X(this,lid,1,jb)};uQ.prototype.getMutableResponse=function(){return Ii(this,lid,1,void 0,jb)};uQ.prototype.hasResponse=function(){return xi(this,lid,1,jb)};uQ.messageId="b.TasksCreateGoogleTasksResponse";var mid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mid,W);var L3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(L3a,W);h=L3a.prototype;h.getPriority=function(){return wi(this,1)};h.setPriority=function(a){return Hm(this,1,a)};h.getAccessLevel=function(){return wi(this,2)};h.setAccessLevel=function(a){return Hm(this,2,a)};h.getHotlistIdsList_asLegacyNumberOrString=function(a){return K4a(this,3,Ci(a))};h.getHotlistIdsList_asString=function(){return Qm(this,3)};h.setHotlistIdsList=function(a){return tr(this,3,a)};
h.addHotlistIds=function(a,b){return $w(this,3,a,b)};h.addAllHotlistIds=function(a){ax(this,3,a)};h.removeHotlistIds=function(a){return hyc(this,3,a)};var I3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(I3a,W);I3a.prototype.getCategory=function(){return wi(this,1)};I3a.prototype.setCategory=function(a){return Hm(this,1,a)};var F3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(F3a,W);h=F3a.prototype;h.getTaskId=function(){return ui(this,1)};h.getTitle=function(){return ui(this,3)};h.setTitle=function(a){return Fm(this,3,a)};h.getCreatedTimestamp=function(){return X(this,Si,4)};h.getLastModifiedTimestamp=function(){return X(this,Si,5)};h.getExternalLink=function(){return ui(this,6)};h.getDriveResource=function(){return bm(this,mid,8,M3a)};
h.hasDriveResource=function(){return Qi(this,mid,8,M3a)};var M3a=[8,9,10,11,12,16,17];var nid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nid,W);var oid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,oid.messageId)};Y(oid,W);oid.prototype.getResponsesList=function(){return Bi(this,nid,1,Ci(),jb)};oid.messageId="b.TasksMyTasksResponse";var pid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pid,W);pid.prototype.getCommentNumber=function(){return Tw(this,1)};pid.prototype.setCommentNumber=function(a){return zc(this,1,Eb,void 0,a,Fb,void 0,1)};var Y3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Y3a,W);var W3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(W3a,W);h=W3a.prototype;h.getDataCase=function(){return wo(this,Z3a)};h.clearData=function(){return Iw(this,Z3a)};h.getSignal=function(){return wi(this,1)};h.setSignal=function(a){return Hm(this,1,a)};h.getCommentNumbers=function(){return bm(this,pid,2,Z3a)};var Z3a=[2,3];var T3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(T3a,W);T3a.prototype.getComeBackTimestamp=function(){return X(this,Si,1)};var V3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(V3a,W);V3a.prototype.getComeBackTimestamp=function(){return X(this,Si,2)};var S3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(S3a,W);S3a.prototype.hasFutureAvailability=function(){return Qi(this,V3a,1,U3a)};var U3a=[1,2];var mr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mr,W);mr.prototype.getDataCase=function(){return wo(this,qid)};mr.prototype.clearData=function(){return Iw(this,qid)};mr.prototype.getSignal=function(){return wi(this,1)};mr.prototype.setSignal=function(a){return Hm(this,1,a)};var qid=[2,3];var O3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(O3a,W);h=O3a.prototype;h.getDataCase=function(){return wo(this,Q3a)};h.clearData=function(){return Iw(this,Q3a)};h.getSignal=function(){return wi(this,1)};h.setSignal=function(a){return Hm(this,1,a)};h.getCommentId=function(){return yo(this,2,Q3a)};h.setCommentId=function(a){return Bo(this,2,Q3a,a)};var Q3a=[2];var $3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($3a,W);$3a.prototype.getSignal=function(){return wi(this,1)};$3a.prototype.setSignal=function(a){return Hm(this,1,a)};var b4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(b4a,W);b4a.prototype.getSignal=function(){return wi(this,1)};b4a.prototype.setSignal=function(a){return Hm(this,1,a)};var c4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(c4a,W);c4a.prototype.getSignal=function(){return wi(this,1)};c4a.prototype.setSignal=function(a){return Hm(this,1,a)};var D3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(D3a,W);h=D3a.prototype;h.getTimestamp=function(){return X(this,Si,1)};h.setTimestamp=function(a){return Mi(this,Si,1,a)};h.hasTimestamp=function(){return xi(this,Si,1)};h.getUrl=function(){return X(this,hm,2)};h.setUrl=function(a){return Mi(this,hm,2,a)};h.hasUrl=function(){return xi(this,hm,2)};var jr=[3,4,5,6,7,9,10];var z3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(z3a,W);z3a.prototype.getTask=function(){return X(this,F3a,1)};z3a.prototype.hasTask=function(){return xi(this,F3a,1)};var rid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rid,W);var sid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,sid.messageId)};Y(sid,W);sid.prototype.getResponsesList=function(){return Bi(this,rid,1,Ci(),jb)};sid.messageId="b.TasksNeedsAttentionResponse";var tid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tid,W);tid.prototype.getRationale=function(){return ui(this,2)};tid.prototype.setRationale=function(a){oj(this,2,a)};var vQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vQ,W);vQ.prototype.getValue=function(){return Bm(this,1)};vQ.prototype.setValue=function(a){return En(this,1,a)};vQ.prototype.hasValue=function(){return kn(this,1)};var wQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wQ,W);wQ.prototype.getUrl=function(){return X(this,hm,2)};wQ.prototype.setUrl=function(a){return Mi(this,hm,2,a)};wQ.prototype.hasUrl=function(){return xi(this,hm,2)};var v3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(v3a,W);h=v3a.prototype;h.getId=function(){return ui(this,1)};h.setId=function(a){return oj(this,1,a)};h.getTitle=function(){return ui(this,2)};h.setTitle=function(a){return oj(this,2,a)};h.getUrl=function(){return X(this,hm,3)};h.setUrl=function(a){return Mi(this,hm,3,a)};h.hasUrl=function(){return xi(this,hm,3)};h.getDescription=function(){return ui(this,4)};h.setDescription=function(a){return oj(this,4,a)};
h.hasDescription=function(){return im(this,4)};h.getPriority=function(){return X(this,Nhd,5)};h.setPriority=function(a){return Mi(this,Nhd,5,a)};h.getScore=function(){return X(this,vQ,6)};h.setScore=function(a){return Mi(this,vQ,6,a)};h.getConfidence=function(){return X(this,tid,10)};h.setConfidence=function(a){return Mi(this,tid,10,a)};var uid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uid,W);h=uid.prototype;h.getId=function(){return ui(this,1)};h.setId=function(a){return oj(this,1,a)};h.getTitle=function(){return ui(this,2)};h.setTitle=function(a){return oj(this,2,a)};h.getUrl=function(){return X(this,hm,3)};h.setUrl=function(a){return Mi(this,hm,3,a)};h.hasUrl=function(){return xi(this,hm,3)};h.getDescription=function(){return ui(this,4)};h.setDescription=function(a){return oj(this,4,a)};
h.hasDescription=function(){return im(this,4)};h.getPriority=function(){return X(this,Nhd,5)};h.setPriority=function(a){return Mi(this,Nhd,5,a)};h.getScore=function(){return X(this,vQ,6)};h.setScore=function(a){return Mi(this,vQ,6,a)};var x3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(x3a,W);h=x3a.prototype;h.getUri=function(){return X(this,KM,1)};h.setUri=function(a){return Mi(this,KM,1,a)};h.getUrl=function(){return X(this,hm,2)};h.setUrl=function(a){return Mi(this,hm,2,a)};h.hasUrl=function(){return xi(this,hm,2)};h.getLabel=function(){return ui(this,3)};h.setLabel=function(a){return oj(this,3,a)};h.hasLabel=function(){return im(this,3)};var t3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(t3a,W);h=t3a.prototype;h.getUri=function(){return X(this,KM,2)};h.setUri=function(a){return Mi(this,KM,2,a)};h.getObjective=function(){return X(this,uid,1)};h.setObjective=function(a){return Mi(this,uid,1,a)};h.getTeam=function(){return X(this,wQ,3)};h.setTeam=function(a){Mi(this,wQ,3,a)};h.hasTeam=function(){return xi(this,wQ,3)};var vid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vid,W);var xQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xQ.messageId)};Y(xQ,W);xQ.prototype.getResponse=function(){return X(this,vid,1,jb)};xQ.prototype.getMutableResponse=function(){return Ii(this,vid,1,void 0,jb)};xQ.prototype.hasResponse=function(){return xi(this,vid,1,jb)};xQ.messageId="b.TeamObjectivesResponse";var u4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(u4a,W);var wid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wid,W);wid.prototype.getIssue=function(){return X(this,Hp,1)};wid.prototype.setIssue=function(a){return Mi(this,Hp,1,a)};var xid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xid,W);xid.prototype.getIssue=function(){return bm(this,wid,1,yid)};xid.prototype.setIssue=function(a){return Wo(this,1,yid,a)};var yid=[1];var nr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nr,W);nr.prototype.getId=function(){return ui(this,1)};nr.prototype.setId=function(a){return Fm(this,1,a)};nr.prototype.getPayloadOrUndefined=function(){return ayc(this,xid,9)};var zid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zid,W);zid.prototype.getWorkspaceId=function(){return pn(this,1)};zid.prototype.getWorkspaceId_asString=function(){return tn(this,1)};zid.prototype.getType=function(){return wi(this,2)};zid.prototype.setType=function(a){return Hm(this,2,a)};var Aid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Aid,W);Aid.prototype.getTypedWorkspaceIdsList=function(){return Bi(this,zid,1,Ci())};Aid.prototype.getIterationIdsList_asString=function(){return Qm(this,2)};var Bid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bid,W);Bid.prototype.getEmail=function(){return ui(this,1)};Bid.prototype.setEmail=function(a){return Fm(this,1,a)};var pr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pr,W);pr.prototype.getId=function(){return ui(this,1)};pr.prototype.setId=function(a){return Fm(this,1,a)};pr.prototype.getVersion=function(){return ui(this,2)};pr.prototype.setVersion=function(a){return Fm(this,2,a)};var Cid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cid,W);h=Cid.prototype;h.getWorkspaceId=function(){return pn(this,1)};h.getWorkspaceId_asString=function(){return tn(this,1)};h.getName=function(){return ui(this,2)};h.setName=function(a){return Fm(this,2,a)};h.getTimeZone=function(){return X(this,pr,8)};h.setTimeZone=function(a){return Mi(this,pr,8,a)};h.hasTimeZone=function(){return xi(this,pr,8)};h.getMembersList=function(){return Bi(this,Bid,9,Ci())};
h.setMembersList=function(a){return Ni(this,9,a)};h.getUpdateTime=function(){return X(this,Si,12)};h.setUpdateTime=function(a){Mi(this,Si,12,a)};h.hasUpdateTime=function(){return xi(this,Si,12)};h.getBookmarkGroupId_asString=function(){return tn(this,14)};h.setBookmarkGroupId=function(a){return Io(this,14,a)};h.getTeamId=function(){return ui(this,20)};h.setTeamId=function(a){return Fm(this,20,a)};var Did=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Did,W);Did.prototype.getWorkspacesMap=function(){return wc(this,1,Cid,Ub)};Did.prototype.getIterationsMap=function(){return wc(this,2,Ohd,Ub)};var t4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(t4a,W);h=t4a.prototype;h.getContextsMap=function(){return wc(this,1,Aid,Vb)};h.getData=function(){return X(this,Did,2)};h.setData=function(a){return Mi(this,Did,2,a)};h.clearData=function(){return Hw(this,2)};h.hasData=function(){return xi(this,Did,2)};h.getFilter=function(){return X(this,oQ,3)};h.setFilter=function(a){return Mi(this,oQ,3,a)};var Eid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Eid,W);var yQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,yQ.messageId)};Y(yQ,W);yQ.prototype.getResponse=function(){return X(this,Eid,1,jb)};yQ.prototype.getMutableResponse=function(){return Ii(this,Eid,1,void 0,jb)};yQ.prototype.hasResponse=function(){return xi(this,Eid,1,jb)};yQ.messageId="b.WorkItemsResponse";var Fid=[1,2],zQ=function(){this.executor=p(bO);this.activeSession=p(uu)},Gid=function(a,b,c){c=c===void 0?!0:c;b=(new Vhd).setTaskIdsList(b);c=Yo(b,2,c,jb);return a.executor.post({url:"action/tasks/dismiss",body:c,responseConstructor:null})},Hid=function(a,b,c){c=c===void 0?!0:c;b=(new Whd).setTaskIdsList(b);c=Yo(b,2,c,jb);return a.executor.post({url:"action/tasks/manual_signal",body:c,responseConstructor:null})},Iid=function(a,b,c){b=(new Xhd).setTaskIdsList(b);if(c!==void 0){var d=b.setTaskStatus(2);
c=cn(c);Mi(d,Si,3,c,jb)}else b.setTaskStatus(0);return a.executor.post({url:"action/tasks/snooze",body:b,responseConstructor:null})},Jid=function(a,b,c,d,e){b=(new eid).setTaskResourceTypesList(b.map(d4a));c=Hm(b,3,e4a(d)).setMaxTaskAgeDays(c);b=new nQ;var f;d=(f=a.activeSession.getTracker())==null?void 0:f.trackerId;b.setTrackerId(d);c.setIssueFilters(b);b.setFilterSignalsList(e.buganizerSignals.map(h4a));var g=(new Zhd).setFilterSignalsList(e.driveSignals.map(j4a)),k=(new Yhd).setFilterSignalsList(e.changelistSignals.map(l4a));
d=(new $hd).setFilterSignalsList(e.gerritSignals.map(n4a));f=(new cid).setFilterSignalsList(e.googleTasksSignals.map(o4a));b=c.setIssueFilters(b);b=Mi(b,Zhd,5,g);b=Mi(b,Yhd,6,k);d=Mi(b,$hd,7,d);Mi(d,cid,8,f);a.activeSession.getFlag("enableIrmTasks")&&(e=(new did).setFilterSignalsList(e.irmSignals.map(p4a)),Mi(c,did,9,e));return a.executor.post({url:"action/tasks/needs_attention",responseConstructor:sid,body:c}).pipe(A(B3a))},Kid=function(a,b,c,d){var e=new nQ;d=Hm(e,1,f4a(d));var f;e=(f=a.activeSession.getTracker())==
null?void 0:f.trackerId;d.setTrackerId(e);b=(new bid).setTaskResourceTypesList(b.map(d4a)).setMaxTaskAgeDays(c).setIssueFilters(d);return a.executor.post({url:"action/tasks/my_tasks",responseConstructor:oid,body:b}).pipe(A(G3a))},Lid=function(a,b){if(!b.length)return ce([]);var c=new Phd;b=Gm(c,1,b);c=(new oQ).setContextsList(Fid);b=Mi(b,oQ,2,c);return a.executor.post({url:"action/work_items/batch_get_work_items",responseConstructor:yQ,body:b}).pipe(A(v4a))},Mid=function(a,b){if(!b.length)return ce([]);
b=b.map(function(c){return(new KM).setResourcePath(c)});b=Rhd(b);return a.executor.post({url:"action/okrs/batch_get_okrs",body:b,responseConstructor:xQ}).pipe(A(y3a))};
zQ.prototype.saveGTask=function(a){a=Thd(Uhd(Shd((new pQ).setTitle(a.title),a.details),a.taskListId),a.dueDateMs);return this.executor.post({url:"action/tasks/create_gtask",body:a,responseConstructor:uQ}).pipe(A(function(b){var c,d;b=(c=b.getResponse())==null?void 0:(d=c.getTask())==null?void 0:d.getTaskId();if(!b)throw Error("ge");return b}))};
var Nid=function(a){return a.executor.get({url:"action/tasks/get_gtask_task_lists",responseConstructor:qQ}).pipe(A(function(b){var c,d;return((d=(c=b.getResponse())==null?void 0:Bi(c,fid,1,Ci()))!=null?d:[]).map(function(e){return{id:e.getId(),title:e.getTitle()}})}))};zQ.\u0275fac=function(a){return new (a||zQ)};zQ.\u0275prov=Dc({token:zQ,factory:zQ.\u0275fac,providedIn:"root"});var Oid={sources:["CHANGELIST","DRIVE","ISSUE"],maxTaskAgeDays:30,issueFilter:"ISSUE_TYPE_GROUPS_UNSPECIFIED"},AQ=function(){tO.call(this);this.api=p(zQ);this.recordType="myTasks";this.idForRecord=function(a){return a.taskId};this.defaultQuery=Oid};Y(AQ,tO);AQ.prototype.fetchAll=function(a){return a.sources.length===0?ce({results:[]}):Kid(this.api,a.sources,a.maxTaskAgeDays,a.issueFilter).pipe(A(function(b){b=b===void 0?[]:b;return{results:b}}))};AQ.\u0275fac=function(a){return new (a||AQ)};
AQ.\u0275prov=Dc({token:AQ,factory:AQ.\u0275fac,providedIn:"root"});var qub=["assigned-to-me","recent-stuff-i-follow"],Pid=["BUGANIZER","CRITIQUE","DRIVE"],Qid=["BUGANIZER"],Rid=["NON_WTDM","WTDM","CRITIQUE","DRIVE"],Sid={BUGANIZER:{displayName:"Buganizer",externalDisplayName:"IssueTracker",filterType:"BUGANIZER",tooltipText:"Buganizer issues of all types"},NON_WTDM:{displayName:"Bugs",filterType:"NON_WTDM",tooltipText:"Issue types including bug, feature request, customer issue, internal cleanup, process, vulnerability, and privacy issue"},WTDM:{displayName:"Work tracking",
filterType:"WTDM",tooltipText:"Issue types including project, milestone, feature, epic, story, and task"},CRITIQUE:{displayName:"Critique",filterType:"CRITIQUE",tooltipText:"CLs from Critique"},DRIVE:{displayName:"Drive",filterType:"DRIVE",tooltipText:"Drive files including Google Docs, Sheets, Slides"},ARIANE:{displayName:"Launch",filterType:"ARIANE",tooltipText:"Launches and related action items"},GERRIT:{displayName:"Gerrit",filterType:"GERRIT",tooltipText:"Gerrit changes"},GOOGLE_TASKS:{displayName:"Google Tasks",
filterType:"GOOGLE_TASKS",tooltipText:"Google Tasks"},IRM:{displayName:"IRM",filterType:"IRM",tooltipText:"Incidents managed through IRM"}},Tid={buganizerSignals:"NEAR_SLO COMMENT_MENTIONS_ME MENTIONED_NEEDS_RESPONSE BLOCKERS_CLOSED NEWLY_BLOCKING NEEDS_REPORTER_INPUT REPLIED_TO_MENTION NEWLY_ASSIGNED_TO_ME ISSUE_MANUALLY_SIGNALED ISSUE_SNOOZE_EXPIRED CONFIGURABLE_ALERT".split(" "),driveSignals:["TAGGED_IN_COMMENT","REQUIRES_APPROVAL","DRIVE_MANUAL_SIGNAL","DRIVE_SNOOZE_EXPIRED"],changelistSignals:["THREAD_MENTIONS_ME",
"NEEDS_ATTENTION","READY_TO_SUBMIT","CHANGELIST_MANUAL_SIGNAL","CHANGELIST_SNOOZE_EXPIRED"],gerritSignals:["GERRIT_CHANGE_NEEDS_ATTENTION","GERRIT_CHANGE_READY_TO_SUBMIT","GERRIT_MANUAL_SIGNAL","GERRIT_SNOOZE_EXPIRED"],googleTasksSignals:["DUE_SOON","DUE_DATE_EXPIRED","GOOGLE_TASKS_MANUAL_SIGNAL","GOOGLE_TASKS_SNOOZE_EXPIRED"],irmSignals:["IRM_SEND_POSTMORTEM_FOR_REVIEW","IRM_REVIEW_POSTMORTEM","IRM_MANUAL_SIGNAL","IRM_SNOOZE_EXPIRED"]},Uid={buganizerSignals:"COMMENT_MENTIONS_ME MENTIONED_NEEDS_RESPONSE BLOCKERS_CLOSED NEWLY_BLOCKING NEEDS_REPORTER_INPUT REPLIED_TO_MENTION NEWLY_ASSIGNED_TO_ME ISSUE_MANUALLY_SIGNALED ISSUE_SNOOZE_EXPIRED CONFIGURABLE_ALERT".split(" "),
driveSignals:[],changelistSignals:[],gerritSignals:[],googleTasksSignals:[],irmSignals:[]},Vid;Vid={filter:"((assignee:me OR reporter:me OR modifier:me OR commenter:me OR collaborator:me) OR star:true) (parentid:any OR descendantcount>0) modified:90d",pageSize:250,sort:"modified_time:desc"};var Wid={sources:["CHANGELIST","DRIVE","ISSUE"],signalFilter:0,maxTaskAgeDays:30,filterSignals:Tid},BQ=function(){tO.call(this);this.api=p(zQ);this.recordType="needsAttentionTask";this.idForRecord=function(a){return a.task.taskId};this.defaultQuery=Wid};Y(BQ,tO);BQ.prototype.fetchAll=function(a){return a.sources.length===0?ce({results:[]}):Jid(this.api,a.sources,a.maxTaskAgeDays,a.signalFilter,a.filterSignals).pipe(A(function(b){b=b===void 0?[]:b;return{results:b}}))};
BQ.\u0275fac=function(a){return new (a||BQ)};BQ.\u0275prov=Dc({token:BQ,factory:BQ.\u0275fac,providedIn:"root"});var CQ=function(){uO.call(this);this.userAccess=p(DP);this.recordType="permissions";this.idForRecord=function(a){return a.id}};Y(CQ,uO);CQ.prototype.fetchOne=function(a){return this.fetchSet([a]).pipe(A(function(b){return m(b).next().value}))};CQ.prototype.fetchSet=function(a){var b=this;return ie(a.map(function(c){return ne(function(){return Cfd(b.userAccess,c).then(function(d){return Object.assign({},d,{id:c})})})}))};CQ.\u0275fac=function(a){return new (a||CQ)};
CQ.\u0275prov=Dc({token:CQ,factory:CQ.\u0275fac,providedIn:"root"});var w4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(w4a,W);var Xid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Xid.messageId)};Y(Xid,W);Xid.messageId="b.PrincipalTypeInfoBatchResponse";var EQ=function(){this.principalResources=p(DQ);this.bulkApiAdapter=p(BP);this.principalTypeGetter=this.bulkApiAdapter.adapt(Yid(this,!1));this.principalTypeWithDetailGetter=this.bulkApiAdapter.adapt(Yid(this,!0))},Yid=function(a,b){return function(c){return Zid(a.principalResources,c,b).then(function(d){return A4a(c,d)})}};EQ.prototype.get=function(a){return FQ(this,a,!1)};
var FQ=function(a,b,c){return(c?a.principalTypeWithDetailGetter.get(b):a.principalTypeGetter.get(b)).then(function(d){return d!=null?d:B4a()})};EQ.\u0275fac=function(a){return new (a||EQ)};EQ.\u0275prov=Dc({token:EQ,factory:EQ.\u0275fac,providedIn:"root"});
var DQ=function(){this.executor=p(cO)},Zid=function(a,b,c){if(b.length===0)return Promise.resolve({});var d={};d.email=tq(b);c&&(d.includeDetailedUserType="true");return a.executor.get({url:"action/principal_types",options:{params:d},responseConstructor:Xid}).then(z4a).then(function(e){for(var f={},g=m(b),k=g.next();!k.done;k=g.next()){k=k.value;var l=void 0;f[k]=(l=e[k])!=null?l:B4a()}return f})};DQ.\u0275fac=function(a){return new (a||DQ)};DQ.\u0275prov=Dc({token:DQ,factory:DQ.\u0275fac,providedIn:"root"});var GQ=function(){uO.call(this,{freshUntil:36E5,ancientAfter:864E5});this.principalTypesApi=p(EQ);this.recordType="principalTypes";this.idForRecord=function(a){return a.email}};Y(GQ,uO);GQ.prototype.fetchOne=function(a){var b=this;return ne(function(){return b.principalTypesApi.get(a)}).pipe(A(function(c){return Object.assign({},{email:a},c)}),gf(function(){return ce(void 0)}))};GQ.prototype.fetchSet=function(a){var b=this;return ie(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(Pm)}))};
GQ.\u0275fac=function(a){return new (a||GQ)};GQ.\u0275prov=Dc({token:GQ,factory:GQ.\u0275fac,providedIn:"root"});var HQ=function(){uO.call(this);this.api=p(LP);this.recordType="recentEventsForIssues";this.idForRecord=function(a){return a.id.query+"-"+a.id.pageSize}};Y(HQ,uO);HQ.prototype.isEqual=function(a,b){return(a==null?void 0:a.id.query)!==(b==null?void 0:b.id.query)||(a==null?void 0:a.id.pageSize)!==(b==null?void 0:b.id.pageSize)?!1:YTa(a==null?void 0:a.events,b==null?void 0:b.events)};
HQ.prototype.fetchOne=function(a){var b=m(a.split("___")),c=b.next().value;b=b.next().value;Lm(b)||console.error("RecentEventsForIssuesFridge failed to parse maximumSize from query, using default. input: '"+a+"'");var d,e=(d=Lm(b))!=null?d:50;return ggd(this.api,{query:c,maximumSize:e,minimumSignificance:"MAJOR"}).pipe(A(function(f){return{id:{query:c,pageSize:e},events:f}}))};HQ.\u0275fac=function(a){return new (a||HQ)};HQ.\u0275prov=Dc({token:HQ,factory:HQ.\u0275fac,providedIn:"root"});var $id=["ASSIGNMENT","RESPONSE","CLOSURE"],ajd=new Map([["ASSIGNMENT","Assignment"],["RESPONSE","Response"],["CLOSURE","Closure"]]),bjd=new Map([["name","Name"],["description","Description"],["parentId","Parent ID"],["elements","SLO rules"]]),rZb=new Map([["DAY_TYPE_UNSPECIFIED","Calendar"],["CALENDAR","Calendar"],["BUSINESS","Business"]]);var sr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sr,W);h=sr.prototype;h.getId=function(){return pn(this,1)};h.getId_asLegacyNumberOrString=function(){return Cp(this,1)};h.getId_asString=function(){return tn(this,1)};h.setId=function(a){return vn(this,1,a)};h.getFrequency=function(){return wi(this,3)};h.setFrequency=function(a){return Hm(this,3,a)};h.getOrdinal=function(){return Bm(this,4)};h.setOrdinal=function(a){return an(this,4,a)};
h.getTimeZone=function(){return X(this,pr,5)};h.setTimeZone=function(a){return Mi(this,pr,5,a)};h.hasTimeZone=function(){return xi(this,pr,5)};h.getTimeOfDay=function(){return X(this,qr,6)};h.setTimeOfDay=function(a){return Mi(this,qr,6,a)};h.setDaysRemaining=function(a){return qp(this,7,a)};h.getTypesList=function(){return wn(this,8,Ci())};h.setTypesList=function(a){return cx(this,8,a)};var cjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cjd,W);h=cjd.prototype;h.getTeamId=function(){return pn(this,1)};h.getTeamId_asLegacyNumberOrString=function(){return Cp(this,1)};h.getTeamId_asString=function(){return tn(this,1)};h.setTeamId=function(a){return Io(this,1,a)};h.getEffectiveSloEditPolicy=function(){return wi(this,3)};var ur=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ur.messageId)};Y(ur,W);ur.prototype.getIt=function(){return X(this,vr,10,jb)};ur.prototype.setIt=function(a){return Mi(this,vr,10,a,jb)};ur.messageId="b.SloState";var djd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(djd,W);djd.prototype.getQuery=function(){return ui(this,1)};djd.prototype.setQuery=function(a){return Fm(this,1,a)};djd.prototype.clearQuery=function(){Hw(this,1)};var rr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rr,W);rr.prototype.getComponentId=function(){return pn(this,1)};rr.prototype.getComponentId_asString=function(){return tn(this,1)};rr.prototype.setComponentId=function(a){return Io(this,1,a)};rr.prototype.getEffectiveSloEditPolicy=function(){return wi(this,2)};var ejd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ejd.messageId)};Y(ejd,W);ejd.messageId="b.GetComponentSloEditPolicyResponse";var fjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,fjd.messageId)};Y(fjd,W);fjd.prototype.getTeamSloEditPolicy=function(){return X(this,cjd,1,jb)};fjd.messageId="b.GetTeamSloEditPolicyResponse";var gjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gjd,W);var hjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,hjd.messageId)};Y(hjd,W);hjd.prototype.getIt=function(){return X(this,gjd,1,jb)};hjd.prototype.setIt=function(a){return Mi(this,gjd,1,a,jb)};hjd.messageId="b.ListSlosResponse";var ijd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ijd.messageId)};Y(ijd,W);ijd.prototype.getTeamSloEditPolicy=function(){return X(this,cjd,1,jb)};ijd.messageId="b.UpdateTeamSloEditPolicyResponse";var IQ=function(){this.activeSession=p(uu);this.executor=p(bO)};h=IQ.prototype;h.get=function(a){return this.executor.get({url:"action/slos/"+a,responseConstructor:ur}).pipe(A(N4a))};h.getOwnedSlos=function(){return this.search("owner:"+this.activeSession.getUserEmail()+" include_archived:true")};h.search=function(a){a=(new djd).setQuery(a);return this.executor.post({url:"action/listSlos",body:a,responseConstructor:hjd}).pipe(A(function(b){b=b.getIt();b=Bi(b,vr,1,Ci());return(b!=null?b:[]).map(MWa)}))};
h.create=function(a){a=O4a(a);return this.executor.post({url:"action/slos",body:a,responseConstructor:ur}).pipe(A(N4a))};h.update=function(a){var b=a.sloId;a=O4a(a);return this.executor.post({url:"action/slos/"+b,body:a,responseConstructor:ur}).pipe(A(N4a))};IQ.\u0275fac=function(a){return new (a||IQ)};IQ.\u0275prov=Dc({token:IQ,factory:IQ.\u0275fac,providedIn:"root"});
var JQ=function(){this.observableSlosService=p(IQ);var a=p(aP),b;this.slosCache=(b=a.get("slos-second-level-cache"))!=null?b:a.create("slos-second-level-cache",{capacity:25})};h=JQ.prototype;h.get=function(a){var b=this.slosCache.get(a);return b!==void 0?b:this.slosCache.put(String(a),fe(this.observableSlosService.get(a)))};h.getOwnedSlos=function(){return fe(this.observableSlosService.getOwnedSlos())};h.search=function(a){return fe(this.observableSlosService.search(a))};h.create=function(a){return fe(this.observableSlosService.create(a))};
h.update=function(a){return fe(this.observableSlosService.update(a))};JQ.\u0275fac=function(a){return new (a||JQ)};JQ.\u0275prov=Dc({token:JQ,factory:JQ.\u0275fac,providedIn:"root"});var KQ=function(){uO.call(this);this.observableSlosService=p(IQ);this.recordType="slo";this.idForRecord=function(a){return a.sloId}};Y(KQ,uO);h=KQ.prototype;h.fetchOne=function(a){return this.observableSlosService.get(a)};h.getOwnedSlos=function(){return this.observableSlosService.getOwnedSlos()};h.search=function(a){return this.observableSlosService.search(a)};h.create=function(a){return this.observableSlosService.create(a)};h.update=function(a){return this.observableSlosService.update(a)};
KQ.\u0275fac=function(a){return new (a||KQ)};KQ.\u0275prov=Dc({token:KQ,factory:KQ.\u0275fac,providedIn:"root"});var jjd=function(a,b){this.rawGet=a;this.cacheSize=b;this.lruCache=new Ned(this.cacheSize,function(c,d){d.subscription.unsubscribe()})};jjd.prototype.get=function(a){var b=this;return new Td(function(c){var d=b.lruCache.get(a);d||(d=kjd(b,a));return d.obs$.subscribe(c)})};
var kjd=function(a,b){var c=a.rawGet(b).pipe(vf({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 ljd(c,d);a.lruCache.set(b,c);return c},ljd=function(a,b){this.obs$=a;this.subscription=b};var LQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,LQ.messageId)};Y(LQ,W);LQ.prototype.getIt=function(){return X(this,red,14,jb)};LQ.prototype.setIt=function(a){return Mi(this,red,14,a,jb)};LQ.messageId="b.TeamState";var mjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mjd,W);h=mjd.prototype;h.getPathIdsList_asString=function(){return Qm(this,1)};h.setPathIdsList=function(a){return xc(this,1,a,Hb)};h.getPathNamesList=function(a){return Cm(this,2,Ci(a))};h.setPathNamesList=function(a){return Gm(this,2,a)};h.getId=function(){return pn(this,3)};h.getId_asLegacyNumberOrString=function(){return cyc(this,3)};h.getId_asString=function(){return nn(this,3)};
h.setId=function(a){return Jn(this,3,a)};h.getName=function(){return ui(this,4)};h.setName=function(a){return oj(this,4,a)};h.hasName=function(){return im(this,4)};h.getNameOrUndefined=function(){return Sw(this,4)};h.getDescription=function(){return ui(this,5)};h.setDescription=function(a){return oj(this,5,a)};h.hasDescription=function(){return im(this,5)};var njd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(njd,W);h=njd.prototype;h.getId=function(){return pn(this,1)};h.getId_asLegacyNumberOrString=function(){return cyc(this,1)};h.getId_asString=function(){return nn(this,1)};h.setId=function(a){return Jn(this,1,a)};h.getName=function(){return ui(this,2)};h.setName=function(a){return oj(this,2,a)};h.hasName=function(){return im(this,2)};h.getNameOrUndefined=function(){return Sw(this,2)};
h.getDescription=function(){return ui(this,3)};h.setDescription=function(a){return oj(this,3,a)};h.hasDescription=function(){return im(this,3)};var ojd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ojd,W);ojd.prototype.setTeamIdsList=function(a){return tr(this,1,a)};ojd.prototype.setView=function(a){return Hm(this,2,a)};var pjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,pjd.messageId)};Y(pjd,W);pjd.prototype.setTeamIdsList=function(a){return xc(this,1,a,Hb,jb)};pjd.messageId="b.BatchChildTeamsRequest";var qjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qjd,W);var rjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,rjd.messageId)};Y(rjd,W);rjd.messageId="b.BatchChildTeamsResponse";var sjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sjd,W);var tjd=function(a){return Bi(a,red,1,Ci())};var MQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,MQ.messageId)};Y(MQ,W);MQ.prototype.getIt=function(){return X(this,sjd,2,jb)};MQ.prototype.setIt=function(a){return Mi(this,sjd,2,a,jb)};MQ.messageId="b.BatchGetTeamsResponse";var ujd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ujd.messageId)};Y(ujd,W);ujd.prototype.getTeamSuggestionsList=function(){return Bi(this,mjd,1,Ci(),jb)};ujd.prototype.setTeamSuggestionsList=function(a){Ni(this,1,a,jb)};ujd.messageId="b.TeamSuggestionResult";var vjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vjd.messageId)};Y(vjd,W);vjd.prototype.getIt=function(){return X(this,hq,3,jb)};vjd.prototype.setIt=function(a){return Mi(this,hq,3,a,jb)};vjd.messageId="b.UpdateTeamSloRequest";var OQ=function(){var a=this;this.executor=p(bO);this.teamsBatchApiConfig=p(NQ);this.batchApiAdapter=p(MO);this.batchAdaptedGet=this.batchApiAdapter.adapt(this.teamsBatchApiConfig);this.memoizingTeamStateMap=new jjd(function(b){return a.batchAdaptedGet(b)},100)};OQ.prototype.get=function(a){return this.executor.get({url:"action/teams/"+a,responseConstructor:LQ}).pipe(A(Q4a))};OQ.prototype.getTeam=function(a){return this.memoizingTeamStateMap.get(a)};
var PQ=function(a,b){return a.getTeam(b).pipe(A(function(c){return c!=null?c:S4a(b)}),gf(function(){return ce(S4a(b))}))},wjd=function(a,b){b=b.filter(function(c){return c!=="0"}).map(function(c){return a.getTeam(c)});return oe(b).pipe(A(function(c){var d=new Map;c=m(c);for(var e=c.next();!e.done;e=c.next())(e=e.value)&&d.set(e.teamId,e);return d}))};
OQ.prototype.getChildTeams=function(a){a=(new pjd).setTeamIdsList(a);return this.executor.post({url:"action/child_teams",body:a,responseConstructor:rjd}).pipe(A(function(b){b=[].concat(q(wc(b,1,qjd,Vb,jb).entries()));return new Map(b.map(function(c){var d=m(c);c=d.next().value;d=d.next().value;d=Bi(d,njd,1,Ci());return[c,d.map(P4a)]}))}))};
var QQ=function(a,b){return a.executor.get({url:"action/suggest_teams",options:{params:{query:b}},responseConstructor:ujd}).pipe(A(function(c){return c.getTeamSuggestionsList().map(R4a)}))},xjd=function(a,b){return a.executor.get({url:"action/teams/"+b+"/experiments",responseConstructor:xP}).pipe(A(w_a))},yjd=function(a,b){a=a.executor;var c=a.post,d="action/teams/"+b.id+"/experiments",e=b.triage.map(J_a);var f=b.playbooks.map(x_a);b=(new xP).setId(b.id);b=Mp(b,2,xq,e,jb);f=Mp(b,3,yq,f,jb);return c.call(a,
{url:d,body:f,responseConstructor:xP}).pipe(A(w_a))},zjd=function(a,b,c){return b==="0"?ce(!1):a.memoizingTeamStateMap.get(b).pipe(A(function(d){return(d==null?void 0:d.members.find(function(e){return e&&wm(e.user)===c}))!==void 0}))},Ajd=function(a,b){b=(new ojd).setTeamIdsList([].concat(q(b))).setView(2);return a.executor.post({url:"action/batchGetTeams",responseConstructor:MQ,body:b}).pipe(A(function(c){return tjd(c.getIt())}),A(function(c){return new Map(c.map(function(d){var e,f;return[String(d.getId()),
(f=Zm((e=X(d,gq,7))==null?void 0:pn(e,3)))!=null?f:0]}))}))};
OQ.prototype.updateTeam=function(a){var b=new LQ,c=new red,d,e,f=c.setId(Number(a.teamId)).setName(a.name).setDescription(a.description).setPathNamesList(a.pathNames).setPathIdsList((d=a.pathIds)==null?void 0:d.map(Lm).filter(Pm));d=Gm(f,5,a.collapsedPathNames).setMembersList((e=a.members)==null?void 0:e.map(jZa));Yo(d,9,a.deleted);e=new gq;d=a.extra;e.setVersion(a.version).setSlo(kZa(a.slo)).setInheritEscalationOwner(!0);(d==null?0:d.escalationOwner)&&e.setEscalationOwner(Im(d.escalationOwner));
if(d==null?0:d.defaultEscalationOwner)f=Im(d.defaultEscalationOwner),Mi(e,Em,7,f);if(d==null?0:d.escalationOwnerOverride)d.escalationOwnerOverride.emailAddress===""?(d=new PFc,Wo(e,10,gZa,d)):(d=Im(d.escalationOwnerOverride),Wo(e,9,gZa,d));Mi(c,gq,7,e);b.setIt(c);return this.executor.post({url:"action/teams/"+a.teamId,body:b,responseConstructor:LQ}).pipe(A(Q4a))};OQ.\u0275fac=function(a){return new (a||OQ)};OQ.\u0275prov=Dc({token:OQ,factory:OQ.\u0275fac,providedIn:"root"});
var NQ=function(){this.executor=p(bO)};NQ.prototype.call=function(a){a=(new ojd).setTeamIdsList([].concat(q(a))).setView(1);return this.executor.post({url:"action/batchGetTeams",responseConstructor:MQ,body:a}).pipe(A(function(b){return tjd(b.getIt()).map(hZa)}),A(function(b){return eo(b,function(c){return c.teamId})}),gf(function(){return ce(new Map)}))};NQ.prototype.split=function(a,b){return b.get(a)};NQ.\u0275fac=function(a){return new (a||NQ)};NQ.\u0275prov=Dc({token:NQ,factory:NQ.\u0275fac,providedIn:"root"});var RQ=function(){tO.call(this);this.teamsApi=p(OQ);this.defaultQuery={};this.recordType="TeamDigest";this.idForRecord=function(a){var b;return(b=a.teamId)!=null?b:"NO_ID"}};Y(RQ,tO);RQ.prototype.fetchAll=function(a){if(a.myTeams)return QQ(this.teamsApi,"").pipe(A(function(b){b=b===void 0?[]:b;return{results:b}}));throw Error("me");};RQ.\u0275fac=function(a){return new (a||RQ)};RQ.\u0275prov=Dc({token:RQ,factory:RQ.\u0275fac,providedIn:"root"});var SQ=function(){uO.call(this,{freshUntil:6E4});this.activeSession=p(uu);this.teamsApi=p(OQ);this.recordType="team-experimental-fields";this.idForRecord=function(a){return a.id};this.isEqual=mm;this.isEnabled=(this.activeSession.getFlag("enableTeamScope")||this.activeSession.getFlag("enablePlaybook"))&&this.activeSession.isInternalSession()};Y(SQ,uO);
SQ.prototype.fetchOne=function(a){var b=this;return this.isEnabled?ne(function(){return xjd(b.teamsApi,a).pipe(A(function(c){return c!=null?c:T4a(a)}),gf(function(){return ce(void 0)}))}):ce(void 0)};SQ.prototype.fetchSet=function(a){var b=this;return ie(a.map(function(c){return b.watch(c)})).pipe(A(function(c){return c.filter(Pm)}))};SQ.prototype.copy=function(a){return a&&nm(a)};
SQ.prototype.updateOrInsert=function(a,b){var c=this,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:if(!c.isEnabled)return k.return(T4a(a));c.manualUpdate(a,function(l){b(l!=null?l:T4a(a))});return z(k,fe(xjd(c.teamsApi,a)),2);case 2:return d=k.yieldResult,f=(e=c.copy(d))!=null?e:T4a(a),b(f),z(k,fe(yjd(c.teamsApi,f)),3);case 3:if(g=k.yieldResult){k.jumpTo(4);break}return z(k,c.poke(a),5);case 5:throw Error("ne");case 4:return c.announce(g),k.return(g)}})};
SQ.\u0275fac=function(a){return new (a||SQ)};SQ.\u0275prov=Dc({token:SQ,factory:SQ.\u0275fac,providedIn:"root"});var TQ=function(){uO.call(this);this.teamsApi=p(OQ);this.recordType="team";this.idForRecord=function(a){return a.teamId}};Y(TQ,uO);TQ.prototype.fetchOne=function(a){return a==="0"?ce(void 0):this.teamsApi.getTeam(a).pipe(gf(function(){return ce(void 0)}))};TQ.prototype.fetchSet=function(a){var b=this;return ie(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(Pm)}))};TQ.\u0275fac=function(a){return new (a||TQ)};TQ.\u0275prov=Dc({token:TQ,factory:TQ.\u0275fac,providedIn:"root"});var Bjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bjd,W);Bjd.prototype.setTrackerIdsList=function(a){return tr(this,1,a)};var Cjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cjd,W);Cjd.prototype.getTrackersList=function(){return Bi(this,KN,1,Ci())};var Djd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Djd.messageId)};Y(Djd,W);Djd.prototype.getIt=function(){return X(this,Cjd,9,jb)};Djd.prototype.setIt=function(a){return Mi(this,Cjd,9,a,jb)};Djd.messageId="b.BatchGetTrackersResponse";var Ejd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ejd,W);Ejd.prototype.getTrackersList=function(){return Bi(this,KN,1,Ci())};Ejd.prototype.getNextPageToken=function(){return ui(this,2)};Ejd.prototype.getTotalSize=function(){return Bm(this,3)};var Fjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Fjd.messageId)};Y(Fjd,W);Fjd.prototype.getIt=function(){return X(this,Ejd,4,jb)};Fjd.prototype.setIt=function(a){return Mi(this,Ejd,4,a,jb)};Fjd.messageId="b.ListTrackersResponse";var UQ=function(){this.jspbExecutor=p(bO)};UQ.prototype.get=function(a){return this.jspbExecutor.get({url:"action/trackers/"+a,responseConstructor:Vn}).pipe(A(wRa))};UQ.prototype.batchGet=function(a){a=(new Bjd).setTrackerIdsList(a);return this.jspbExecutor.post({url:"action/trackers/batch",responseConstructor:Djd,body:a}).pipe(A(xRa))};
UQ.prototype.query=function(a,b,c){return this.jspbExecutor.get({url:"action/trackers",responseConstructor:Fjd,options:{params:{query:a,pageSize:String(b),pageToken:c===void 0?"":c}}}).pipe(A(yRa))};UQ.\u0275fac=function(a){return new (a||UQ)};UQ.\u0275prov=Dc({token:UQ,factory:UQ.\u0275fac,providedIn:"root"});var VQ=function(){uO.call(this,{freshUntil:36E5,ancientAfter:2592E5});this.trackerApi=p(UQ);this.activeSession=p(uu);this.recordType="tracker";this.idForRecord=function(a){return a.trackerId};Gjd(this)};Y(VQ,uO);var Gjd=function(a){var b=a.activeSession.getTracker();b&&a.announce(b)};VQ.prototype.fetchOne=function(a){return this.trackerApi.get(a)};VQ.prototype.fetchSet=function(a){return this.trackerApi.batchGet(a)};
VQ.prototype.fetchAll=function(a){var b,c;return this.trackerApi.query((b=a.filter)!=null?b:"",(c=a.pageSize)!=null?c:0,a.pageToken).pipe(A(function(d){var e;return{results:(e=d==null?void 0:d.trackers)!=null?e:[]}}))};VQ.\u0275fac=function(a){return new (a||VQ)};VQ.\u0275prov=Dc({token:VQ,factory:VQ.\u0275fac,providedIn:"root"});var WQ=function(){Z.apply(this,arguments);this.router=p(fF);this.activatedRoute=p(Lj);this.params={};this.routeParams$=new Mj({});this.issueId$=this.routeParams$.pipe(A(function(a){return a.issueId}),nf());this.assignParams.bind(this)};Y(WQ,Z);WQ.\u0275dir=Z.\u0275dir;
var Hjd=function(a){a.activatedRoute.queryParams.pipe(zf(a.destroyed$)).subscribe(function(b){a.assignParams(a.routeParams$.value,b)});a.router.events.pipe(ue(function(b){return b instanceof uxa}),A(function(b){return b}),zf(a.destroyed$)).subscribe(function(b){b=b.snapshot;var c=a.assignParams,d={},e=b;do d=Object.assign({},e.params,d),e=e.parent;while(e&&e!==e.root);c.call(a,d,b.queryParams)})},Ijd=function(a,b){return a.routeParams$.pipe(A(function(c){return c[b]}))};
WQ.prototype.assignParams=function(a,b){for(var c=m(Object.keys(this.params)),d=c.next();!d.done;d=c.next())delete this.params[U4a(d.value)];this.routeParams$.next(a);b=m(Object.entries(b));for(c=b.next();!c.done;c=b.next())d=m(c.value),c=d.next().value,d=d.next().value,this.params[U4a(c)]=d;a=m(Object.entries(a));for(b=a.next();!b.done;b=a.next())c=m(b.value),b=c.next().value,c=c.next().value,this.params[U4a(b)]=c};WQ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(WQ)))(b||WQ)}}();
WQ.\u0275prov=Dc({token:WQ,factory:WQ.\u0275fac,providedIn:"root"});var XQ=function(){var a=p(dQ);Z.call(this);var b=this;this.paramsService=p(WQ);this.issueFullFridge=p(gQ);this.componentIdOverride$=new Mj(null);this.hotlistIdOverride$=new Mj(null);this.issueIdOverride$=new Mj(null);this.teamIdOverride$=new Mj(null);this.routeIssueId$=this.paramsService.issueId$.pipe(A(W4a),vf({refCount:!0,bufferSize:1}));this.routeComponentId$=Ijd(this.paramsService,"componentId").pipe(nf());this.routeHotlistId$=Ijd(this.paramsService,"hotlistId").pipe(nf());this.routeTeamId$=Ijd(this.paramsService,
"teamId").pipe(nf());this.issueId$=ie([this.issueIdOverride$,this.routeIssueId$]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c||d}),A(W4a),nf(),vf({refCount:!0,bufferSize:1}));this.componentIdFromIssueId$=this.issueId$.pipe(yf(function(c){return c?b.issueFullFridge.watch(c):ce(void 0)}),A(function(c){return c==null?void 0:c.snapshot[0].componentId}));this.teamIdFromIssueId$=this.issueId$.pipe(yf(function(c){return c?b.issueFullFridge.watch(c):ce(void 0)}),A(function(c){var d;
return c==null?void 0:(d=c.aggregatedData)==null?void 0:d.teamId}));this.componentId$=ie([this.componentIdOverride$,this.routeComponentId$,this.componentIdFromIssueId$]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;d=d.next().value;return c||e||d||null}),nf(),vf({refCount:!0,bufferSize:1}));this.teamId$=ie([this.teamIdOverride$,this.routeTeamId$,this.teamIdFromIssueId$]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;d=d.next().value;return c||e||d}),A(W4a),
nf(),vf({refCount:!0,bufferSize:1}));this.hotlistId$=ie([this.hotlistIdOverride$,this.routeHotlistId$]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c||d}),A(V4a),nf(),vf({refCount:!0,bufferSize:1}));this.subscriptions.add(a.routeChangeSuccess.subscribe(function(){b.componentIdOverride$.next(null);b.hotlistIdOverride$.next(null);b.issueIdOverride$.next(null);b.teamIdOverride$.next(null)}));this.subscriptions.add(this.componentId$.subscribe(function(c){er("dimension4",c)}));
this.subscriptions.add(this.teamId$.subscribe(function(c){er("dimension1",c)}))};Y(XQ,Z);XQ.\u0275dir=Z.\u0275dir;XQ.prototype.getComponentId=function(){return this.componentId$};XQ.prototype.getHotlistId=function(){return this.hotlistId$};XQ.prototype.getIssueId=function(){return this.issueId$};XQ.prototype.getTeamId=function(){return this.teamId$};XQ.\u0275fac=function(a){return new (a||XQ)};XQ.\u0275prov=Dc({token:XQ,factory:XQ.\u0275fac,providedIn:"root"});var YQ=function(){var a=this;this.issueFullFridge=p(gQ);this.teamFridge=p(TQ);this.componentFridge=p(RO);this.eventsForIssue=p(NP);this.activatedRoute=p(Lj);this.contextSensitiveRegistry=p(XQ);this.id$=this.contextSensitiveRegistry.getIssueId().pipe(A(function(b){return b||void 0}));this.urlComment$=this.activatedRoute.fragment.pipe(A(O5a),vf({refCount:!0,bufferSize:1}));this.issueJs$=this.id$.pipe(yf(function(b){return b?a.issueFullFridge.watch(b):ce(void 0)}),vf({refCount:!0,bufferSize:1}));this.eventsJs$=
this.id$.pipe(yf(function(b){return b?a.eventsForIssue.watch(b):ce(void 0)}),A(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.starred$=this.issueJs$.pipe(A(b5a));this.lastViewedTimeMicros$=this.issueJs$.pipe(A(c5a));this.lastViewedTimeMicros$.pipe(A(function(b){return!b}));this.title$=this.issueJs$.pipe(A(d5a));this.issueJs$.pipe(A(v5a));this.accessLimitLevel$=this.issueJs$.pipe(A(l5a));this.voted$=this.issueJs$.pipe(A(w5a));this.status$=this.issueJs$.pipe(A(e5a));this.priority$=
this.issueJs$.pipe(A(f5a));this.assignee$=this.issueJs$.pipe(A(g5a));this.issueJs$.pipe(A(h5a));this.teamId$=this.issueJs$.pipe(A(i5a));this.team$=this.teamId$.pipe(yf(function(b){return b?a.teamFridge.watch(b):ce(void 0)}),vf({refCount:!0,bufferSize:1}));this.ccUsers$=this.issueJs$.pipe(A(k5a));this.collaboratorsUsers$=this.issueJs$.pipe(A(m5a));this.issueJs$.pipe(A(function(b){var c,d;return(d=(c=ho(b))==null?void 0:c.severity)!=null?d:void 0}));this.type$=this.issueJs$.pipe(A(n5a));this.issueJs$.pipe(A(o5a));
this.issueJs$.pipe(A(p5a));this.issueJs$.pipe(A(q5a));this.postmortems$=this.issueJs$.pipe(A(r5a));this.postmortems$.pipe(A(function(b){return b.length>0}));this.issueJs$.pipe(A(s5a));this.effort$=this.issueJs$.pipe(A(t5a));this.staffing$=this.issueJs$.pipe(A(u5a));this.isDeleted$=this.issueJs$.pipe(A(y5a));this.accessLevel$=this.issueJs$.pipe(A(A5a));this.modifiedTime$=this.issueJs$.pipe(A(B5a));this.issueJs$.pipe(A(D5a));this.retentionState$=this.issueJs$.pipe(A(G5a));this.canonicalIssueId$=this.issueJs$.pipe(A(E5a));
this.sloStatus$=this.issueJs$.pipe(A(function(b){var c;return b==null?void 0:(c=b.aggregatedData)==null?void 0:c.sloStatus}));this.sloId$=this.issueJs$.pipe(A(H5a));this.createdTimeMicros$=this.issueJs$.pipe(A(I5a));this.componentId$=this.issueJs$.pipe(A(j5a));this.component$=this.componentId$.pipe(yf(function(b){return b?a.componentFridge.watch(b):ce(void 0)}));this.teamSuggestions$=this.component$.pipe(A(function(b){var c;return(c=b==null?void 0:b.teamSuggestions)!=null?c:[]}));this.effortSpec$=
this.component$.pipe(A(J5a));this.isEffortEnabled$=this.component$.pipe(A(K5a));this.component$.pipe(A(L5a))};YQ.\u0275fac=function(a){return new (a||YQ)};YQ.\u0275prov=Dc({token:YQ,factory:YQ.\u0275fac,providedIn:"root"});var M5a=RegExp("comment([0-9]+)"),N5a=RegExp("comment[0-9]+version([0-9]+)");var Jjd={admin:!1,writer:!0,appender:!0,reader:!0},$Q=function(){var a=this;this.issueDetailsBrain=p(YQ);this.permissionsFridge=p(CQ);this.activeSession=p(uu);this.accessPolicyApi=p(KO);this.errorHandler=p(pO);this.userAccess=p(DP);this.currentUserEmail=this.activeSession.getUserEmail();this.currentUserEmailPattern=new RegExp("^"+Yr(this.currentUserEmail).replace("@","(\\+.*)?@")+"$");this.issueId$=this.issueDetailsBrain.id$;this.issuePermissions$=this.issueId$.pipe(yf(function(c){return c?a.permissionsFridge.watch(cq(c)):
ce(void 0)}),A(function(c){return c!=null?c:Jjd}),xf(Jjd),vf({bufferSize:1,refCount:!0}));this.hasAclToView$=this.issuePermissions$.pipe(A(function(c){return!!c.reader}));this.hasAclToEdit$=this.issuePermissions$.pipe(A(function(c){return!!c.writer}));this.hasAclToEdit=function(){return!!Br(a.hasAclToEdit$)};this.hasAclToComment$=this.issuePermissions$.pipe(A(function(c){return!!c.appender}));this.hasAclToComment=function(){return!!Br(a.hasAclToComment$)};this.hasAclToAdmin$=this.issuePermissions$.pipe(A(function(c){return!!c.admin}));
this.hasAclToAdmin=function(){return!!Br(a.hasAclToAdmin$)};this.isCurrentUserCCd$=this.issueDetailsBrain.ccUsers$.pipe(xf([]),A(function(c){return c.some(function(d){return ZQ(a,d.emailAddress)})}));this.isCurrentUserCCd=function(){return!!Br(a.isCurrentUserCCd$)};this.isCurrentUserCollaborator$=this.issueDetailsBrain.collaboratorsUsers$.pipe(xf([]),A(function(c){return c.some(function(d){return ZQ(a,d.emailAddress)})}));this.isCurrentUserCollaborator=function(){return!!Br(a.isCurrentUserCollaborator$)};
this.isAllowedToEditCC$=this.hasAclToEdit$;ie([this.hasAclToEdit$,this.isCurrentUserCCd$]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c?d?"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(xf(void 0),nf(),yf(function(c){return c?a.accessPolicyApi.checkComponentImplicitAccessEnabled(c):ce(!1)}),gf(function(c){if(c.status===403)return ce(!0);
a.errorHandler.errorHandler(null,c);return ce(!1)}),vf({bufferSize:1,refCount:!0}));this.isImplicitAccessEnabled=function(){return!!Br(a.isImplicitAccessEnabled$)};this.canDeleteIssue$=this.hasAclToAdmin$;this.canUndeleteIssue$=ie([this.issueDetailsBrain.isDeleted$,this.canDeleteIssue$]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c&&d}));this.userIsComponentAdmin$=this.issueDetailsBrain.componentId$.pipe(xf(void 0),nf(),yf(function(c){return c?EP(a.userAccess,"admin","components/"+
c):ce(!1)}),gf(function(c){a.errorHandler.errorHandler(null,c);return ce(!1)}),vf({bufferSize:1,refCount:!0}));this.accessLevel$=this.issueDetailsBrain.accessLevel$.pipe(xf(void 0));this.accessLevel=function(){return Br(a.accessLevel$)};this.accessLimitLevel$=this.issueDetailsBrain.accessLimitLevel$;this.isWithinExternalComponent$=this.accessLevel$.pipe(A(function(c){return!(!c||c==="INTERNAL")}));this.audience$=this.isWithinExternalComponent$.pipe(A(function(c){return c?"EXTERNAL":"INTERNAL"}));
this.audience=function(){return Br(a.audience$)};this.canChangeCommentRetention$=this.hasAclToEdit$;var b=p(Ce);this.issuePermissions$.pipe(Tj(b)).subscribe();this.isImplicitAccessEnabled$.pipe(Tj(b)).subscribe();this.userIsComponentAdmin$.pipe(Tj(b)).subscribe()},ZQ=function(a,b){return(b==null?void 0:b.search(a.currentUserEmailPattern))===0};h=$Q.prototype;
h.canUndeleteComment=function(a){return go(a)&&a.commentDeletionStatus==="DELETED"?this.hasAclToAdmin()?ce(!0):tm(a.lastCommentEditorUser)!==this.activeSession.getUserEmail()?ce(!1):this.hasAclToComment$:ce(!1)};h.canDeleteComment=function(a){return go(a)&&a.commentDeletionStatus==="ACTIVE"?wm(a.userPerformingActionUser)===this.activeSession.getUserEmail()?ce(!0):this.hasAclToAdmin$:ce(!1)};
h.canEditComment$=function(a){var b=this;return ie([this.issueDetailsBrain.component$,this.hasAclToEdit$,this.hasAclToComment$]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;d=d.next().value;return c!==void 0&&c.commentEditState==="ENABLED"&&a.commentDeletionStatus!=="DELETED"&&a.commentDeletionStatus!=="PURGED"&&a.commentNumber?a.commentNumber===1?e:d&&wm(a.userPerformingActionUser)===b.activeSession.getUserEmail():!1}))};
h.canDeleteAttachment$=function(a,b){return a?(a=a.entityStatus)&&"ACTIVE"===a.status?ZQ(this,b)?ce(!0):this.hasAclToAdmin$:ce(!1):ce(!1)};h.canUndeleteAttachment$=function(a,b){return a?(a=a.entityStatus)&&"DELETED"===a.status?ZQ(this,b)?ce(!0):this.hasAclToAdmin$:ce(!1):ce(!1)};$Q.\u0275fac=function(a){return new (a||$Q)};$Q.\u0275prov=Dc({token:$Q,factory:$Q.\u0275fac,providedIn:"root"});var aR=function(a){a=a===void 0?[]:a;this.internalValue$=new Mj(new Set);this.value$=this.internalValue$.asObservable().pipe(A(function(b){return new Set(b)}),nf(mm),vf({refCount:!0,bufferSize:1}));this.reset(a)};h=aR.prototype;h.reset=function(a){this.value.clear();a=m(a);for(var b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value)};
h.add=function(){for(var a=m($c.apply(0,arguments)),b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value);return this};h.clear=function(){this.value.clear();this.internalValue$.next(this.value)};h.delete=function(a){a=this.value.delete(a);this.internalValue$.next(this.value);return a};h.has=function(a){return this.value.has(a)};var Cs=function(a,b){return a.internalValue$.pipe(A(function(c){return c.has(b)}),nf())};aR.prototype[Symbol.iterator]=function(){return this.value.values()};
aR.prototype.toString=function(){return"[ReactiveSet](["+[].concat(q(this.value.values())).join(", ")+"])"};aR.prototype.indexOf=function(a){return[].concat(q(this.value.values())).indexOf(a)};
da.Object.defineProperties(aR.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.value}},size:{configurable:!0,enumerable:!0,get:function(){return this.value.size}},size$:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.pipe(A(function(a){return a.size}),nf())}}});var bR={},Kjd=(bR.ISSUE_DEDUPLICATION=new Set(["VERY_HIGH"]),bR.ISSUE_DEDUPLICATION_BATCH=new Set(["VERY_HIGH"]),bR.NEEDS_INFO=new Set(["VERY_HIGH"]),bR.COMPONENT_ROUTING=new Set(["VERY_HIGH"]),bR.HOTLIST=new Set(["VERY_HIGH"]),bR.ANY_ISSUE_EDIT=new Set(["VERY_HIGH"]),bR.TYPE_UNSPECIFIED=new Set([]),bR),cR=function(){this.activeSession=p(uu);this.issuePermissionService=p($Q);this.issueFridge=p(XP);this.issueRecommendationFridge=p(iQ);this.refreshMonitor=p(VP);this.hiddenRecommendationIds=new aR},
Mjd=function(a,b){return Agd(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ISSUE_DEDUPLICATION")}).pipe(yf(function(c){return Ljd(a,c==null?void 0:c.recommendations)}))},Njd=function(a,b){return Agd(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ISSUE_DEDUPLICATION_BATCH")}).pipe(yf(function(c){return Ljd(a,c==null?void 0:c.recommendations)}))},Ojd=function(a,b){return Agd(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-NEEDS_INFO")}).pipe(yf(function(c){return Ljd(a,
c==null?void 0:c.recommendations)}))},Pjd=function(a,b){return Agd(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-COMPONENT_ROUTING")}).pipe(yf(function(c){return Ljd(a,c==null?void 0:c.recommendations)}))},Qjd=function(a,b){return Agd(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ANY_ISSUE_EDIT")}).pipe(yf(function(c){return Ljd(a,c==null?void 0:c.recommendations)}))},Ljd=function(a,b){if(!b||!b.length)return ce(void 0);b=b.map(function(c){return Rjd(a,
c).pipe(A(function(d){return d?c:void 0}))});return ie(b).pipe(A(function(c){return c.filter(Pm)[0]}))},Rjd=function(a,b){if(!a.activeSession.isInternalSession())return ce(!1);var c=Kjd[b.type];if(!c||!c.has(b.confidence))return ce(!1);c=rt(b.resource);if(!c)return ce(!1);c=a.issueFridge.watch(c);return ie([c,a.issuePermissionService.hasAclToEdit$,Cs(a.hiddenRecommendationIds,b.name)]).pipe(A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;e=e.next().value;return Sjd(a,{recommendation:b,
hasAclToEdit:f,issue:d,shouldHide:e})}))},Sjd=function(a,b){var c=b.recommendation;var d=b.hasAclToEdit;var e=b.issue;if(!d||b.shouldHide)return!1;switch(c.type){case "ISSUE_DEDUPLICATION":var f;return jo(e)&&!!(c==null?0:(f=c.content)==null?0:f.recommendedIssue);case "HOTLIST":return!0;case "ISSUE_DEDUPLICATION_BATCH":var g;return jo(e)&&!!(c==null?0:(g=c.content)==null?0:g.issueDeduplicationBatch);case "NEEDS_INFO":if(!a.activeSession.getFlag("enableNeedsInfoUi"))return!1;var k,l;return((k=c.content)==
null?0:(l=k.issueModification)==null?0:l.addState)&&wm(g5a(e))!==wm(c.content.issueModification.addState.assigneeUser)?!0:!1;case "COMPONENT_ROUTING":var r,w;return((r=c.content)==null?0:(w=r.issueModification)==null?0:w.addState)&&c.content.issueModification.addState.componentId!==e.snapshot[0].componentId?!0:!1;case "ANY_ISSUE_EDIT":if(!a.activeSession.getFlag("enablePlaybook"))return!1;var x,C,H,J;return((x=c.content)==null?0:(C=x.issueModification)==null?0:C.addState)||((H=c.content)==null?0:
(J=H.issueModification)==null?0:J.removeState)?!0:!1;default:return!1}};cR.\u0275fac=function(a){return new (a||cR)};cR.\u0275prov=Dc({token:cR,factory:cR.\u0275fac,providedIn:"root"});var dR=function(){this.activeSession=p(uu);this.butterBar=p(UN);this.teamExperimentalFieldsFridge=p(SQ);this.duckieService=p(ZN);this.errorHandler=p(pO);this.issueFridge=p(XP);this.recommendationsApi=p(mO);this.recommendationTriggerService=p(cR);this.executionCache=new Mj(new Map);this.sourceId=this.activeSession.getEnvironmentType()==="QA"?"1109":"1463"},Ujd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return Tjd(a),z(e,a.teamExperimentalFieldsFridge.updateOrInsert("8953708121",
function(f){if(f.playbooks.some(function(g){return g.searchQuery===b.searchQuery}))throw Error("pe");f.playbooks.push(b)}),2);c=e.yieldResult;d=sba(c.playbooks,function(f){return f.searchQuery===b.searchQuery});if(!d)throw Error("qe");return e.return(d)})},Vjd=function(a,b){return a.teamExperimentalFieldsFridge.watch("8953708121").pipe(A(function(c){return c==null?void 0:c.playbooks.find(function(d){return d.searchQuery===b})}))},Wjd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return Tjd(a),
z(e,a.teamExperimentalFieldsFridge.updateOrInsert("8953708121",function(f){if(!f.playbooks.some(function(g){return g.searchQuery===b.searchQuery}))throw Error("re");f.playbooks=f.playbooks.map(function(g){return g.searchQuery===b.searchQuery?b:g})}),2);c=e.yieldResult;d=c.playbooks.find(function(f){return f.searchQuery===b.searchQuery});if(!d)throw Error("qe");return e.return(d)})},$jd=function(a,b,c){var d,e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:Tjd(a);if(!b.instructions)throw Error("se");
if(!b.searchQuery)throw Error("te");if(!c.length)return x.return([]);d="Triage these bugs: "+c.join(", ")+"\nwith playbook:\n===Start Of Playbook===\n"+b.instructions+"\n===End Of Playbook===";Wd(x,2);return z(x,fe(a.duckieService.generateAnswers(d)),4);case 4:return e=x.yieldResult,f=e.response,g=HUa(f,a.sourceId),z(x,Xjd(a,g),5);case 5:return k=x.yieldResult,z(x,Yjd(a,k),6);case 6:return l=x.yieldResult,r=l.recommendations,a.executionCache.value.set(b.searchQuery,eo(r,function(C){return rt(C.resource)})),
a.executionCache.next(a.executionCache.value),Zjd(a,r.length),x.return(k);case 2:return w=$d(x),w instanceof Error&&(console.error(w),qO(a.errorHandler,"Error connecting to Duckie. Please try again.")),x.return([])}})},akd=function(a,b,c){return a.executionCache.pipe(lf(1),yf(function(d){var e;return(d=(e=d.get(c))==null?void 0:e.get(b))?ce(d):Qjd(a.recommendationTriggerService,b)}),yf(function(d){return d?Cs(a.recommendationTriggerService.hiddenRecommendationIds,d.name).pipe(A(function(e){return e?
void 0:d})):ce(void 0)}))},Yjd=function(a,b){var c,d;return y(function(e){c=b.filter(function(f){return f.type==="ANY_ISSUE_EDIT"});if(c.length===0)return e.return({recommendations:[]});d=c.map(function(f){return{parent:"recommendationSources/"+a.sourceId,type:"ANY_ISSUE_EDIT",resource:f.resource,recommendations:[f]}});return e.return(a.recommendationsApi.batchReplaceRecommendations({parent:"recommendationSources/"+a.sourceId,type:"ANY_ISSUE_EDIT",requests:d}))})},Tjd=function(a){if(!a.teamExperimentalFieldsFridge.isEnabled)throw Error("ue");
},Xjd=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return c=b.map(function(g){return rt(g.resource)}),z(f,Promise.all(c.map(function(g){return fe(a.issueFridge.watch(g))})),2);d=f.yieldResult;e=eo(d,function(g){return g.issueId});return f.return(b.map(function(g){var k=rt(g.resource);if(k&&(k=e.get(k)))return FUa(g,k)}).filter(Pm).filter(function(g){return!EUa(g)}))})},Zjd=function(a,b){b===0?Rr(a.butterBar,"Playbook execution complete. No recommendations generated."):Rr(a.butterBar,
"Playbook execution complete. Generated "+b+" recommendation(s).")};dR.\u0275fac=function(a){return new (a||dR)};dR.\u0275prov=Dc({token:dR,factory:dR.\u0275fac,providedIn:"root"});var bkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bkd,W);h=bkd.prototype;h.getFormattingMode=function(){return wi(this,1)};h.setFormattingMode=function(a){return Hm(this,1,a)};h.getSource=function(){return ui(this,2)};h.setSource=function(a){return Fm(this,2,a)};h.getIssueId=function(){return pn(this,3)};h.getIssueId_asString=function(){return tn(this,3)};h.setIssueId=function(a){return Io(this,3,a)};h.getIdPrefix=function(){return ui(this,4)};
h.setIdPrefix=function(a){return Fm(this,4,a)};var ckd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ckd.messageId)};Y(ckd,W);ckd.prototype.getIt=function(){return X(this,bkd,8,jb)};ckd.prototype.setIt=function(a){return Mi(this,bkd,8,a,jb)};ckd.messageId="b.FormatCommentRequest";var eR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eR,W);eR.prototype.getFormattedComment=function(){return X(this,jp,1)};eR.prototype.setFormattedComment=function(a){Mi(this,jp,1,a)};eR.prototype.hasFormattedComment=function(){return xi(this,jp,1)};eR.prototype.getMentionsList=function(a){return Bi(this,bcd,2,Ci(a))};var dkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,dkd.messageId)};Y(dkd,W);dkd.prototype.getIt=function(){return X(this,eR,3,jb)};dkd.prototype.setIt=function(a){return Mi(this,eR,3,a,jb)};dkd.messageId="b.FormatCommentResponse";var fR=function(){this.executor=p(bO);this.activeSession=p(uu)};fR.prototype.format=function(a){return a.formattingMode==="LITERAL"||a.comment.trim()===""?R5a(a):ekd(this,a).pipe(A(Q5a))};
var ekd=function(a,b){var c,d=(new bkd).setFormattingMode(kp(b.formattingMode)).setSource(b.comment).setIssueId((c=Lm(b.issueId))!=null?c:0).setIdPrefix(b.idPrefix);c=b.audience==="EXTERNAL";var e=a.activeSession.getTracker();c=c?(e==null?void 0:e.externalBaseUrl)||a.activeSession.getExternalBaseUrl():(e==null?void 0:e.internalBaseUrl)||a.activeSession.getInternalBaseUrl();d=Fm(d,5,c);b=Hm(d,6,vbd[b.audience]);return a.executor.post({url:"action/formatComment",body:(new ckd).setIt(b),responseConstructor:dkd})};
fR.\u0275fac=function(a){return new (a||fR)};fR.\u0275prov=Dc({token:fR,factory:fR.\u0275fac,providedIn:"root"});var fkd=function(){this.executor=p(bO)},gkd=function(a,b){return a.executor.post({url:"action/current_user/preferences",responseConstructor:Dn,body:MSa(b)}).pipe(A(function(c){return gSa(c)}))};fkd.\u0275fac=function(a){return new (a||fkd)};fkd.\u0275prov=Dc({token:fkd,factory:fkd.\u0275fac,providedIn:"root"});var hR=function(){var a=this;this.userPreferencesManagerBase=p(gR);this.activeSession=p(uu);this.destroyed$=new uf(1);this.preferencesSubject$=this.userPreferencesManagerBase.preferences$;this.preferences$=this.preferencesSubject$.pipe(A(nm));this.commentFormattingPreferences$=this.preferences$.pipe(A(function(b){return b.commentFormattingPreferences||{}}));this.lastPublishFormattingMode$=this.commentFormattingPreferences$.pipe(A(function(b){return b.lastPublishMode}),A(Tm),nf());this.commentCreateOverride$=
this.commentFormattingPreferences$.pipe(A(function(b){return b.commentCreateOverride}),A(Tm),A(function(b){return b==="UNSPECIFIED_FORMATTING_MODE"?void 0:b}),nf());this.isCommentCreateOverrideSet$=this.commentCreateOverride$.pipe(A(function(b){return b==="LITERAL"}),nf());this.commentDisplayOverride$=this.commentFormattingPreferences$.pipe(A(function(b){return b.commentDisplayOverride}),A(Tm),A(function(b){return b==="UNSPECIFIED_FORMATTING_MODE"?void 0:b}),nf());this.isCommentDisplayOverrideSet$=
this.commentDisplayOverride$.pipe(A(function(b){return b==="LITERAL"}),nf());this.currentCommentFormattingMode$=ie([this.isCommentCreateOverrideSet$,this.lastPublishFormattingMode$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b&&a.activeSession.isInternalSession()?"LITERAL":c}));this.isCreateCommentFormatLiteral$=this.currentCommentFormattingMode$.pipe(A(function(b){return b==="LITERAL"}));this.themePreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.themePreferences)!=
null?c:nm(LN.themePreferences)}),Cr());this.listViewPreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.listViewPreferences)!=null?c:nm(LN.listViewPreferences)}),Cr());this.layoutPreferences$=this.preferences$.pipe(A(function(b){return a.getLayoutPreferences(b)}),Cr());this.dateTimePreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.dateTimePreferences)!=null?c:nm(LN.dateTimePreferences)}),Cr());this.homepagePreferences$=this.preferences$.pipe(A(function(b){return a.getHomepagePreferences(b)}),
Cr());this.keyboardPrefs$=this.preferences$.pipe(A(function(b){var c;return(c=b.keyboardPreferences)!=null?c:nm(LN.keyboardPreferences)}),Cr());this.displayColumnsPreferences$=this.preferences$.pipe(A(function(b){var c,d;return(d=(c=b.displayColumns)==null?void 0:c.column)!=null?d:[]}),Cr());this.sortColumnsPreferences$=this.preferences$.pipe(A(function(b){var c,d;return(d=(c=b.sortColumns)==null?void 0:c.column)!=null?d:[]}),Cr());this.bugScreensaverPreferences$=this.preferences$.pipe(A(function(b){var c;
return(c=b.bugScreensaverPreferences)!=null?c:nm(LN.bugScreensaverPreferences)}),Cr());this.teamWarningPreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.teamWarningPreferences)!=null?c:nm(LN.teamWarningPreferences)}),Cr());this.commentFilterPreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.commentFilterPreferences)!=null?c:nm(LN.commentFilterPreferences)}),Cr());this.codeFont$=this.preferences$.pipe(A(function(b){return!!b.useCodefont}),nf());this.autoCcOnComment$=
this.preferences$.pipe(A(function(b){var c;return(c=b.autoCcOnComment)!=null?c:!1}),nf());this.showFullHistory$=this.preferences$.pipe(A(function(b){return!!b.showFullHistory}),nf());this.resultsPerPage$=this.preferences$.pipe(A(function(b){var c;return(c=b.resultsPerPage)!=null?c:LN.resultsPerPage}),nf());this.showRecentEventsFirst$=this.preferences$.pipe(A(function(b){return!!b.showRecentEventsFirst}),nf());this.showInlineImages$=this.preferences$.pipe(A(function(b){var c;return(c=b.showInlineImages)!=
null?c:LN.showInlineImages}),nf())};hR.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};hR.prototype.save=function(a){return this.userPreferencesManagerBase.save(a)};
var hkd=function(a,b){b=Object.assign({},a.getLayoutPreferences(a.preferencesSubject$.value),b);return a.save({layoutPreferences:b}).pipe(A(a.getLayoutPreferences))},ikd=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return b==="LITERAL"?f.return():z(f,fe(a.preferences$),2);c=f.yieldResult;if(((d=c.commentFormattingPreferences)==null?void 0:d.lastPublishMode)===ARa(b))return f.return();e=Object.assign({},c.commentFormattingPreferences||{},{lastPublishMode:ARa(b)});return z(f,fe(a.save({commentFormattingPreferences:e})),
0)})},jkd=function(a,b){return a.save({homepagePreferences:b}).pipe(A(a.getHomepagePreferences))};hR.prototype.getDateTimePreferences=function(){var a;return(a=(void 0).dateTimePreferences)!=null?a:nm(LN.dateTimePreferences)};var kkd=function(a,b){b=Object.assign({},a.preferencesSubject$.value.collapsed,b);return a.save({collapsed:b})},lkd=function(a,b){var c;return(c=a.preferencesSubject$.value.collapsed)==null?void 0:c[b]};
hR.prototype.saveResultsPerPage=function(a){return this.save({resultsPerPage:a}).pipe(A(function(b){var c;return(c=b.resultsPerPage)!=null?c:LN.resultsPerPage}))};var mkd=function(a,b){return a.save({displayColumns:{column:b}}).pipe(A(function(c){var d,e;return(e=(d=c.displayColumns)==null?void 0:d.column)!=null?e:[]}))};hR.prototype.saveSortColumns=function(a){return this.save({sortColumns:{column:a}}).pipe(A(function(b){var c,d;return(d=(c=b.sortColumns)==null?void 0:c.column)!=null?d:[]}))};
var nkd=function(a,b){return a.save({teamWarningPreferences:b}).pipe(A(function(c){var d;return(d=c.teamWarningPreferences)!=null?d:nm(LN.teamWarningPreferences)}))};hR.prototype.getLayoutPreferences=function(a){var b;return(b=a.layoutPreferences)!=null?b:nm(LN.layoutPreferences)};hR.prototype.getHomepagePreferences=function(a){var b;return(b=a.homepagePreferences)!=null?b:nm(LN.homepagePreferences)};var iR=function(a){return nm(a.preferencesSubject$.getValue())};
hR.\u0275fac=function(a){return new (a||hR)};hR.\u0275prov=Dc({token:hR,factory:hR.\u0275fac,providedIn:"root"});var gR=function(){this.activeSession=p(uu);this.userPreferencesResources=p(fkd);this.preferences$=new Mj(nm(LN));var a=this.preferences$.value,b=this.activeSession.getUserPreferences();b&&(a=Object.assign({},a,b),okd(a));this.preferences$.next(a)};
gR.prototype.save=function(a){var b=this;return this.activeSession.isAnonymous()?ce(pkd(this,a)):gkd(this.userPreferencesResources,a).pipe(A(function(){return pkd(b,a)}))};
var pkd=function(a,b){var c=nm(a.preferences$.value);c=Object.assign({},c,b);okd(c);a.preferences$.next(c);return c},okd=function(a){a.dateTimePreferences&&(a.dateTimePreferences.calendarFormat||(a.dateTimePreferences.calendarFormat=LN.dateTimePreferences.calendarFormat),a.dateTimePreferences.timeFormat||(a.dateTimePreferences.timeFormat=LN.dateTimePreferences.timeFormat),a.dateTimePreferences.sloEtaViewAs||(a.dateTimePreferences.sloEtaViewAs=LN.dateTimePreferences.sloEtaViewAs));!a.notificationPreferences||
a.notificationPreferences.collaboratorPriority&&a.notificationPreferences.collaboratorPriority!=="UNKNOWN_PRIORITY"||(a.notificationPreferences.collaboratorPriority=LN.notificationPreferences.collaboratorPriority)};gR.\u0275fac=function(a){return new (a||gR)};gR.\u0275prov=Dc({token:gR,factory:gR.\u0275fac,providedIn:"root"});var jR=function(){this.userPreferencesManager=p(hR);this.codefont$=this.userPreferencesManager.codeFont$};jR.\u0275fac=function(a){return new (a||jR)};jR.\u0275prov=Dc({token:jR,factory:jR.\u0275fac,providedIn:"root"});var qkd=new dd("formatting mode",{factory:function(){return"UNSPECIFIED_FORMATTING_MODE"}});var rkd=["child"],kR=function(){this.codefont=p(jR)};kR.prototype.ngOnInit=function(){};kR.prototype.ngOnChanges=function(){Xn(this.child.nativeElement,this.content.content)};kR.\u0275fac=function(a){return new (a||kR)};
kR.\u0275cmp=D({type:kR,selectors:[["b-literal-format-presenter"]],viewQuery:function(a,b){a&1&&hg(rkd,7);if(a&2){var c;lg(c=mg())&&(b.child=c.first)}},inputs:{content:"content"},standalone:!1,features:[Gg([{provide:qkd,useValue:"LITERAL"}]),jx],decls:3,vars:4,consts:[["child",""],[1,"type-m","child"]],template:function(a,b){a&1&&(M(0,"div",1,0),T(2,"async"));a&2&&wg("codefont",U(2,2,b.codefont.codefont$))},dependencies:[Tx],styles:[".child[_ngcontent-%COMP%] { white-space: pre-wrap; }"],changeDetection:0});var lR=new dd("buganizerWindow",{factory:function(){return window}});var mR=function(){this.window=p(lR)};mR.prototype.openInNewTab=function(a){a=zh(a);ni(this.window,a,"_blank")};var Er=function(a,b){b=zh(b);ni(a.window,b)},skd=function(a,b){a=a.window.location;b=Ah(b);b!==void 0&&(a.href=b)};mR.\u0275fac=function(a){return new (a||mR)};mR.\u0275prov=Dc({token:mR,factory:mR.\u0275fac,providedIn:"root"});var nR=function(){};nR.\u0275fac=function(a){return new (a||nR)};nR.\u0275cmp=D({type:nR,selectors:[["b-glue"]],standalone:!1,ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"no-wrapping"]],template:function(a){a&1&&(bg(),K(0,"span",0),cg(1),L())},styles:['.no-wrapping[_ngcontent-%COMP%] {\n  white-space: nowrap;\n}\n\n.no-wrapping[_ngcontent-%COMP%]::after {\n  content: "\\002060"\n}'],changeDetection:0});var tkd=function(a,b){this._document=b;var c=this._textarea=this._document.createElement("textarea"),d=c.style;d.position="fixed";d.top=d.opacity="0";d.left="-999em";c.setAttribute("aria-hidden","true");c.value=a;c.readOnly=!0;(this._document.fullscreenElement||this._document.body).appendChild(c)};tkd.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};
tkd.prototype.destroy=function(){var a=this._textarea;a&&(a.remove(),this._textarea=void 0)};var oR=function(){this._document=p(Rh)};oR.prototype.copy=function(a){a=new tkd(a,this._document);var b=a.copy();a.destroy();return b};oR.\u0275fac=function(a){return new (a||oR)};oR.\u0275prov=Dc({token:oR,factory:oR.\u0275fac,providedIn:"root"});new dd("CDK_COPY_TO_CLIPBOARD_CONFIG");var ukd=["el"],pR=function(){this.clipboard=p(oR);this.snackBar=p(rB);this.domSafe=p(mR);this.scrollStrategy=p(Ez).close();this.opened=!1};pR.prototype.getNgContentParentEl=function(){return this.el.nativeElement};pR.prototype.hide=function(){this.opened=!1};pR.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};pR.\u0275fac=function(a){return new (a||pR)};
pR.\u0275cmp=D({type:pR,selectors:[["b-broken-link"]],viewQuery:function(a,b){a&1&&hg(ukd,7);if(a&2){var c;lg(c=mg())&&(b.el=c.first)}},inputs:{originalHref:"originalHref"},standalone:!1,ngContentSelectors:["*"],decls:8,vars:4,consts:[["trigger","cdkOverlayOrigin"],["el",""],["cdkOverlayOrigin","","aria-haspopup","true",1,"broken",3,"click"],["svgIcon","link-off",1,"broken","icon-s"],["cdkConnectedOverlay","","cdkConnectedOverlayPanelClass","tooltip-panel",3,"overlayOutsideClick","detach","cdkConnectedOverlayPush",
"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayScrollStrategy"],["cdkTrapFocus","","cdkTrapFocusAutoCapture","",1,"b-bubble","flex-kids-y"],[1,"flex-kids-x"],["type","button","mat-button","","matTooltip","Copy to clipboard","aria-label","Copy URL to clipboard",1,"tiny",3,"click"],["svgIcon","copy"],[3,"click","href"]],template:function(a,b){if(a&1){var c=t();bg();K(0,"a",2,0);N("click",function(d){u(c);d.preventDefault();d.stopPropagation();b.opened=!0;return v()});K(2,
"b-glue");M(3,"mat-icon",3);L();K(4,"span",null,1);cg(6);L()();E(7,U5a,1,1,"ng-template",4);N("overlayOutsideClick",function(){u(c);return v(b.hide())})("detach",function(){u(c);return v(b.hide())})}a&2&&(a=qg(1),B(7),I("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.opened)("cdkConnectedOverlayScrollStrategy",b.scrollStrategy))},dependencies:[Wy,Jy,Vz,Uz,nR,kB,gB,vK,nA],styles:["mat-icon.broken[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}a.broken[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}.b-bubble[_ngcontent-%COMP%]{display:flex;border-width:1px;border-style:solid;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;box-shadow:0 4px 8px 3px rgba(0,0,0,.1);padding:9px;background-color:#fff;background-color:var(--surface-default)}.b-bubble[_ngcontent-%COMP%]   .gmat-caption[_ngcontent-%COMP%]{max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.b-bubble[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:4px}  .tooltip-panel{display:inline-block;margin:.1em}"],
changeDetection:0});var vkd=function(){this.checked=!1;this.disabled=!0;this.startPos="";this.checkedChange=new aQ};vkd.\u0275fac=function(a){return new (a||vkd)};
vkd.\u0275cmp=D({type:vkd,selectors:[["b-checkbox-widget"]],inputs:{checked:"checked",disabled:"disabled",startPos:"startPos"},outputs:{checkedChange:"checkedChange"},standalone:!1,decls:1,vars:2,consts:[[3,"change","disabled","checked"]],template:function(a,b){a&1&&(K(0,"mat-checkbox",0),N("change",function(c){return b.checkedChange.emit(c.checked)}),L());a&2&&I("disabled",b.disabled)("checked",b.checked)},dependencies:[kL,hI],encapsulation:2,changeDetection:0});var a6a="entity agent_name borg_user borg_job cell task_index task_attempt_uid project_id resource.type start_time end_time rpc_server_service_name rpc_client_service_name lpc_service_name rpc_server_method_name rpc_client_method_name lpc_method_name status_code severity min_latency max_latency text_payload log_text_payload site_path has_sampled_trace snippet log_name process_name thread_id trace_id span_id job_uid local_process_id data_id label insert_id".split(" "),cca={EQUALS:"=",NOT_EQUALS:"!=",
REGEX_MATCH:"=~",NOT_REGEX_MATCH:"!~",CONTAINS:":"},Z5a="entity agent_name borg_user borg_job cell rpc_server_service_name rpc_client_service_name lpc_service_name rpc_server_method_name rpc_client_method_name lpc_method_name status_code text_payload log_text_payload site_path snippet log_name process_name thread_id trace_id span_id job_uid local_process_id data_id label".split(" "),Y5a="start_time end_time min_latency max_latency severity status_code task_index task_attempt_uid".split(" "),$5a=["has_sampled_trace"];var qR=function(){this.changes=new qf;this.openCalendarLabel="Open calendar";this.closeCalendarLabel="Close calendar";this.prevMonthLabel="Previous month";this.nextMonthLabel="Next month";this.prevYearLabel="Previous year";this.nextYearLabel="Next year";this.prevMultiYearLabel="Previous 24 years";this.nextMultiYearLabel="Next 24 years";this.switchToMonthViewLabel="Choose date";this.switchToMultiYearViewLabel="Choose month and year";this.comparisonDateLabel="Comparison range"};
qR.prototype.formatYearRange=function(a,b){return a+" \u2013 "+b};qR.prototype.formatYearRangeLabel=function(a,b){return a+" to "+b};qR.\u0275fac=function(a){return new (a||qR)};qR.\u0275prov=Dc({token:qR,factory:qR.\u0275fac,providedIn:"root"});var i6a=function(a,b){return b.id},wkd=0,xkd=function(a,b,c,d,e,f,g){e=e===void 0?{}:e;this.value=a;this.displayValue=b;this.ariaLabel=c;this.enabled=d;this.cssClasses=e;this.compareValue=f===void 0?a:f;this.rawValue=g;this.id=wkd++},ykd={passive:!1,capture:!0},zkd={passive:!0,capture:!0},Akd={passive:!0},rR=function(){var a=this;this._elementRef=p(Hd);this._ngZone=p(Rg);this._platform=p(Vh);this._intl=p(qR);this._focusActiveCellAfterViewChecked=!1;this.numCols=7;this.activeCell=0;this.isRange=!1;
this.cellAspectRatio=1;this.previewEnd=this.previewStart=null;this.selectedValueChange=new Ti;this.previewChange=new Ti;this.activeDateChange=new Ti;this.dragStarted=new Ti;this.dragEnded=new Ti;this._didDragSinceMouseDown=!1;this._injector=p(ye);this.comparisonDateAccessibleName=this._intl.comparisonDateLabel;this._trackRow=function(d){return d};this._enterHandler=function(d){if(a._skipNextFocus&&d.type==="focus")a._skipNextFocus=!1;else if(d.target&&a.isRange){var e=a._getCellFromElement(d.target);
e&&a._ngZone.run(function(){return a.previewChange.emit({value:e.enabled?e:null,event:d})})}};this._touchmoveHandler=function(d){if(a.isRange){var e=p6a(d),f=e?a._getCellFromElement(e):null;e!==d.target&&(a._didDragSinceMouseDown=!0);l6a(d.target)&&d.preventDefault();a._ngZone.run(function(){return a.previewChange.emit({value:(f==null?0:f.enabled)?f:null,event:d})})}};this._leaveHandler=function(d){a.previewEnd!==null&&a.isRange&&(d.type!=="blur"&&(a._didDragSinceMouseDown=!0),!d.target||!a._getCellFromElement(d.target)||
d.relatedTarget&&a._getCellFromElement(d.relatedTarget)||a._ngZone.run(function(){return a.previewChange.emit({value:null,event:d})}))};this._mousedownHandler=function(d){if(a.isRange){a._didDragSinceMouseDown=!1;var e=d.target&&a._getCellFromElement(d.target);e&&a._isInRange(e.compareValue)&&a._ngZone.run(function(){a.dragStarted.emit({value:e.rawValue,event:d})})}};this._mouseupHandler=function(d){if(a.isRange){var e=l6a(d.target);e?e.closest(".mat-calendar-body")===a._elementRef.nativeElement&&
a._ngZone.run(function(){var f=a._getCellFromElement(e),g;a.dragEnded.emit({value:(g=f==null?void 0:f.rawValue)!=null?g:null,event:d})}):a._ngZone.run(function(){a.dragEnded.emit({value:null,event:d})})}};this._touchendHandler=function(d){(d=p6a(d))&&a._mouseupHandler({target:d})};var b=p(ci),c=p(ai);this._startDateLabelId=c.getId("mat-calendar-body-start-");this._endDateLabelId=c.getId("mat-calendar-body-end-");this._comparisonStartDateLabelId=c.getId("mat-calendar-body-comparison-start-");this._comparisonEndDateLabelId=
c.getId("mat-calendar-body-comparison-end-");p(Zh).load(cA);this._ngZone.runOutsideAngular(function(){var d=a._elementRef.nativeElement;d=[b.listen(d,"touchmove",a._touchmoveHandler,ykd),b.listen(d,"mouseenter",a._enterHandler,zkd),b.listen(d,"focus",a._enterHandler,zkd),b.listen(d,"mouseleave",a._leaveHandler,zkd),b.listen(d,"blur",a._leaveHandler,zkd),b.listen(d,"mousedown",a._mousedownHandler,Akd),b.listen(d,"touchstart",a._mousedownHandler,Akd)];a._platform.isBrowser&&d.push(b.listen("window",
"mouseup",a._mouseupHandler),b.listen("window","touchend",a._touchendHandler));a._eventCleanups=d})};h=rR.prototype;h.ngAfterViewChecked=function(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)};h._cellClicked=function(a,b){this._didDragSinceMouseDown||a.enabled&&this.selectedValueChange.emit({value:a.value,event:b})};h._emitActiveDateChange=function(a,b){a.enabled&&this.activeDateChange.emit({value:a.value,event:b})};
h._isSelected=function(a){return this.startValue===a||this.endValue===a};h.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+"%"};h.ngOnDestroy=function(){this._eventCleanups.forEach(function(a){return a()})};
h._isActiveCell=function(a,b){b=a*this.numCols+b;a&&(b-=this._firstRowOffset);return b==this.activeCell};h._focusActiveCell=function(a){var b=this;a=a===void 0?!0:a;Ee(function(){setTimeout(function(){var c=b._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(a||(b._skipNextFocus=!0),c.focus())})},{injector:this._injector})};h._scheduleFocusActiveCellAfterViewChecked=function(){this._focusActiveCellAfterViewChecked=!0};
h._isRangeStart=function(a){return m6a(a,this.startValue,this.endValue)};h._isRangeEnd=function(a){return n6a(a,this.startValue,this.endValue)};h._isInRange=function(a){return o6a(a,this.startValue,this.endValue,this.isRange)};h._isComparisonStart=function(a){return m6a(a,this.comparisonStart,this.comparisonEnd)};
h._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)};h._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)};
h._isComparisonEnd=function(a){return n6a(a,this.comparisonStart,this.comparisonEnd)};h._isInComparisonRange=function(a){return o6a(a,this.comparisonStart,this.comparisonEnd,this.isRange)};h._isComparisonIdentical=function(a){return this.comparisonStart===this.comparisonEnd&&a===this.comparisonStart};h._isPreviewStart=function(a){return m6a(a,this.previewStart,this.previewEnd)};h._isPreviewEnd=function(a){return n6a(a,this.previewStart,this.previewEnd)};
h._isInPreview=function(a){return o6a(a,this.previewStart,this.previewEnd,this.isRange)};
h._getDescribedby=function(a){if(!this.isRange)return null;if(this.startValue===a&&this.endValue===a)return this._startDateLabelId+" "+this._endDateLabelId;if(this.startValue===a)return this._startDateLabelId;if(this.endValue===a)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(a===this.comparisonStart&&a===this.comparisonEnd)return this._comparisonStartDateLabelId+" "+this._comparisonEndDateLabelId;if(a===this.comparisonStart)return this._comparisonStartDateLabelId;
if(a===this.comparisonEnd)return this._comparisonEndDateLabelId}return null};h._getCellFromElement=function(a){var b=l6a(a);if(b&&(a=b.getAttribute("data-mat-row"),b=b.getAttribute("data-mat-col"),a&&b)){var c;return((c=this.rows[parseInt(a)])==null?void 0:c[parseInt(b)])||null}return null};rR.\u0275fac=function(a){return new (a||rR)};
rR.\u0275cmp=D({type:rR,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",
endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[jx],attrs:["mat-calendar-body",""],decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",
1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(a,b){a&1&&(F(0,f6a,3,6,"tr",0),Nf(1,j6a,4,1,"tr",1,e6a,!0),K(3,"span",2),Q(4),L(),K(5,"span",2),Q(6),L(),K(7,"span",2),Q(8),L(),K(9,"span",2),Q(10),
L());a&2&&(G(b._firstRowOffset<b.labelMinRequiredCells?0:-1),B(),Of(b.rows),B(2),I("id",b._startDateLabelId),B(),S(" ",b.startDateAccessibleName,"\n"),B(),I("id",b._endDateLabelId),B(),S(" ",b.endDateAccessibleName,"\n"),B(),I("id",b._comparisonStartDateLabelId),B(),zg(" ",b.comparisonDateAccessibleName," ",b.startDateAccessibleName,"\n"),B(),I("id",b._comparisonEndDateLabelId),B(),zg(" ",b.comparisonDateAccessibleName," ",b.endDateAccessibleName,"\n"))},dependencies:[Lx],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color, var(--mat-sys-primary))}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-body-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-datepicker-calendar-body-label-text-color, var(--mat-sys-on-surface))}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;margin:0;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size));-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}}\n'],
encapsulation:2,changeDetection:0});var sR=function(a,b){this.selection=a;this._adapter=b;this.selectionChanged=this._selectionChanged=new qf;this.selection=a};sR.prototype.updateSelection=function(a,b){var c=this.selection;this.selection=a;this._selectionChanged.next({selection:a,source:b,oldValue:c})};sR.prototype.ngOnDestroy=function(){this._selectionChanged.complete()};sR.prototype._isValidDateInstance=function(a){return nDc(a)&&this._adapter.isValid(a)};sR.\u0275fac=function(){We()};sR.\u0275prov=Dc({token:sR,factory:sR.\u0275fac});
var tR=function(a){sR.call(this,null,a)};Y(tR,sR);tR.prototype.add=function(a){sR.prototype.updateSelection.call(this,a,this)};tR.prototype.isValid=function(){return this.selection!=null&&this._isValidDateInstance(this.selection)};tR.prototype.isComplete=function(){return this.selection!=null};tR.prototype.clone=function(){var a=new tR(this._adapter);a.updateSelection(this.selection,this);return a};tR.\u0275fac=function(a){return new (a||tR)(Xc(Xz))};tR.\u0275prov=Dc({token:tR,factory:tR.\u0275fac});
var Bkd={provide:sR,useFactory:function(){return p(sR,{optional:!0,skipSelf:!0})||new tR(p(Xz))}};var Ckd=new dd("MAT_DATE_RANGE_SELECTION_STRATEGY");var Dkd=function(a,b){return b.id},Ekd=0,uR=function(){this._changeDetectorRef=p(Cx);this._dateFormats=p(aA,{optional:!0});this._dateAdapter=p(Xz,{optional:!0});this._dir=p(bi,{optional:!0});this._rangeStrategy=p(Ckd,{optional:!0});this._rerenderSubscription=Pd.EMPTY;this.activeDrag=null;this.selectedChange=new Ti;this._userSelection=new Ti;this.dragStarted=new Ti;this.dragEnded=new Ti;this.activeDateChange=new Ti;this._monthLabel=ng.apply(null,[""].concat(q([])));this._weeks=ng.apply(null,[[]].concat(q([])));
this._firstWeekOffset=ng.apply(null,[0].concat(q([])));this._rangeStart=ng.apply(null,[null].concat(q([])));this._rangeEnd=ng.apply(null,[null].concat(q([])));this._comparisonRangeStart=ng.apply(null,[null].concat(q([])));this._comparisonRangeEnd=ng.apply(null,[null].concat(q([])));this._previewStart=ng.apply(null,[null].concat(q([])));this._previewEnd=ng.apply(null,[null].concat(q([])));this._isRange=ng.apply(null,[!1].concat(q([])));this._todayDate=ng.apply(null,[null].concat(q([])));this._weekdays=
ng.apply(null,[[]].concat(q([])));p(Zh).load(Ry);this._activeDate=new ao};h=uR.prototype;h.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(xf(null)).subscribe(function(){return a._init()})};h.ngOnChanges=function(a){var b=a.comparisonStart||a.comparisonEnd;b&&!b.firstChange&&this._setRanges(this.selected);a.activeDrag&&!this.activeDrag&&this._clearPreview()};h.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
h._dateSelected=function(a){var b=a.value,c=this._getDateFromDayOfMonth(b),d;(d=this._getDateInCurrentMonth(this._selected))===b&&d===b||this.selectedChange.emit(c);this._userSelection.emit({value:c,event:a.event});this._clearPreview();this._changeDetectorRef.markForCheck()};h._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a.value);$z(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this._activeDate)};
h._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=vR(this._activeDate,c?1:-1);break;case 39:this.activeDate=vR(this._activeDate,c?-1:1);break;case 38:this.activeDate=vR(this._activeDate,-7);break;case 40:this.activeDate=vR(this._activeDate,7);break;case 36:this.activeDate=vR(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=vR(this._activeDate,aUc(this._activeDate)-this._dateAdapter.getDate(this._activeDate));
break;case 33:this.activeDate=a.altKey?wR(this._activeDate,-1):xR(this._activeDate,-1);break;case 34:this.activeDate=a.altKey?wR(this._activeDate,1):xR(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0;this._canSelect(this._activeDate)&&a.preventDefault();return;case 27:this._previewEnd()==null||Gh(a)||(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:a}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:a})),a.preventDefault(),
a.stopPropagation());return;default:return}$z(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};h._handleCalendarBodyKeyup=function(a){if(a.keyCode===32||a.keyCode===13)this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:a}),this._selectionKeyPressed=!1};
h._init=function(){this._setRanges(this.selected);this._todayDate.set(this._getCellCompareValue(new ao));this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.locale.SHORTMONTHS[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());var a=yR(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((7+a.getDay()-this._dateAdapter.getFirstDayOfWeek())%
7);this._initWeekdays();this._createWeekCells();this._changeDetectorRef.markForCheck()};h._focusActiveCell=function(a){this._matCalendarBody._focusActiveCell(a)};h._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
h._previewChanged=function(a){var b=a.event;a=a.value;if(this._rangeStrategy){a=a?a.rawValue:null;var c=this._rangeStrategy.createPreview(a,this.selected,b);this._previewStart.set(this._getCellCompareValue(c.start));this._previewEnd.set(this._getCellCompareValue(c.end));if(this.activeDrag&&a){var d,e;if(c=(e=(d=this._rangeStrategy).createDrag)==null?void 0:e.call(d,this.activeDrag.value,this.selected,a,b))this._previewStart.set(this._getCellCompareValue(c.start)),this._previewEnd.set(this._getCellCompareValue(c.end))}}};
h._dragEnded=function(a){if(this.activeDrag)if(a.value){var b,c,d=(b=this._rangeStrategy)==null?void 0:(c=b.createDrag)==null?void 0:c.call(b,this.activeDrag.value,this.selected,a.value,a.event);this.dragEnded.emit({value:d!=null?d:null,event:a.event})}else this.dragEnded.emit({value:null,event:a.event})};h._getDateFromDayOfMonth=function(a){return yR(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a)};
h._initWeekdays=function(){var a=this._dateAdapter.getFirstDayOfWeek(),b=Fkd(this._dateAdapter,"narrow"),c=Fkd(this._dateAdapter,"long").map(function(d,e){return{long:d,narrow:b[e],id:Ekd++}});this._weekdays.set(c.slice(a).concat(c.slice(0,a)))};
h._createWeekCells=function(){for(var a=aUc(this.activeDate),b=Gkd,c=[[]],d=0,e=this._firstWeekOffset();d<a;d++,e++){e==7&&(c.push([]),e=0);var f=yR(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),d+1),g=this._shouldEnableDate(f),k=this._dateAdapter.format(f,this._dateFormats.display.dateA11yLabel),l=this.dateClass?this.dateClass(f,"month"):void 0;c[c.length-1].push(new xkd(d+1,b[d],k,g,l,this._getCellCompareValue(f),f))}this._weeks.set(c)};
h._shouldEnableDate=function(a){return!!a&&(!this.minDate||$z(this._dateAdapter,a,this.minDate)>=0)&&(!this.maxDate||$z(this._dateAdapter,a,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(a))};h._getDateInCurrentMonth=function(a){return a&&this._hasSameMonthAndYear(a,this.activeDate)?this._dateAdapter.getDate(a):null};h._hasSameMonthAndYear=function(a,b){return!(!a||!b||this._dateAdapter.getMonth(a)!=this._dateAdapter.getMonth(b)||this._dateAdapter.getYear(a)!=this._dateAdapter.getYear(b))};
h._getCellCompareValue=function(a){if(a){var b=this._dateAdapter.getYear(a),c=this._dateAdapter.getMonth(a);return(new Date(b,c,this._dateAdapter.getDate(a))).getTime()}return null};h._isRtl=function(){return this._dir&&this._dir.value==="rtl"};h._setRanges=function(a){this._rangeStart.set(this._getCellCompareValue(a));this._rangeEnd.set(this._rangeStart());this._isRange.set(!1);this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart));this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))};
h._canSelect=function(a){return!this.dateFilter||this.dateFilter(a)};h._clearPreview=function(){this._previewStart.set(null);this._previewEnd.set(null)};
da.Object.defineProperties(uR.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=Yz(this._dateAdapter,Zz(this._dateAdapter,a))||new ao;this._activeDate=oDc(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=Yz(this._dateAdapter,Zz(this._dateAdapter,a));
this._setRanges(this._selected)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Yz(this._dateAdapter,Zz(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Yz(this._dateAdapter,Zz(this._dateAdapter,a))}}});uR.\u0275fac=function(a){return new (a||uR)};
uR.\u0275cmp=D({type:uR,selectors:[["mat-month-view"]],viewQuery:function(a,b){a&1&&hg(rR,5);if(a&2){var c;lg(c=mg())&&(b._matCalendarBody=c.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",
_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[jx],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue",
"endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(a,b){a&1&&(K(0,"table",0)(1,"thead",1)(2,"tr"),Nf(3,q6a,5,2,"th",2,Dkd),L(),K(5,"tr",3),M(6,"th",4),L()(),K(7,"tbody",5),N("selectedValueChange",function(c){return b._dateSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("previewChange",function(c){return b._previewChanged(c)})("dragStarted",
function(c){return b.dragStarted.emit(c)})("dragEnded",function(c){return b._dragEnded(c)})("keyup",function(c){return b._handleCalendarBodyKeyup(c)})("keydown",function(c){return b._handleCalendarBodyKeydown(c)}),L()());a&2&&(B(3),Of(b._weekdays()),B(4),I("label",b._monthLabel())("rows",b._weeks())("todayValue",b._todayDate())("startValue",b._rangeStart())("endValue",b._rangeEnd())("comparisonStart",b._comparisonRangeStart())("comparisonEnd",b._comparisonRangeEnd())("previewStart",b._previewStart())("previewEnd",
b._previewEnd())("isRange",b._isRange())("labelMinRequiredCells",3)("activeCell",b._dateAdapter.getDate(b.activeDate)-1)("startDateAccessibleName",b.startDateAccessibleName)("endDateAccessibleName",b.endDateAccessibleName))},dependencies:[rR],encapsulation:2,changeDetection:0});var zR=function(){this._changeDetectorRef=p(Cx);this._dateAdapter=p(Xz,{optional:!0});this._dir=p(bi,{optional:!0});this._rerenderSubscription=Pd.EMPTY;this.selectedChange=new Ti;this.yearSelected=new Ti;this.activeDateChange=new Ti;this._years=ng.apply(null,[[]].concat(q([])));this._todayYear=ng.apply(null,[0].concat(q([])));this._selectedYear=ng.apply(null,[null].concat(q([])));this._activeDate=new ao};h=zR.prototype;h.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(xf(null)).subscribe(function(){return a._init()})};
h.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};h._init=function(){var a=this;this._todayYear.set(this._dateAdapter.getYear(new ao));for(var b=this._dateAdapter.getYear(this._activeDate)-t6a(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),c=[],d=0,e=[];d<24;d++)e.push(b+d),e.length==4&&(c.push(e.map(function(f){return a._createCellForYear(f)})),e=[]);this._years.set(c);this._changeDetectorRef.markForCheck()};
h._yearSelected=function(a){var b=a.value;a=yR(b,0,1);b=this._getDateFromYear(b);this.yearSelected.emit(a);this.selectedChange.emit(b)};h._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromYear(a.value);$z(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
h._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=wR(this._activeDate,c?1:-1);break;case 39:this.activeDate=wR(this._activeDate,c?-1:1);break;case 38:this.activeDate=wR(this._activeDate,-4);break;case 40:this.activeDate=wR(this._activeDate,4);break;case 36:this.activeDate=wR(this._activeDate,-t6a(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=wR(this._activeDate,24-t6a(this._dateAdapter,
this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=wR(this._activeDate,a.altKey?-240:-24);break;case 34:this.activeDate=wR(this._activeDate,a.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}$z(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate);this._focusActiveCellAfterViewChecked();a.preventDefault()};
h._handleCalendarBodyKeyup=function(a){if(a.keyCode===32||a.keyCode===13)this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:a}),this._selectionKeyPressed=!1};h._getActiveCell=function(){return t6a(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)};h._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};h._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
h._getDateFromYear=function(a){var b=this._dateAdapter.getMonth(this.activeDate);var c=yR(a,b,1);c=aUc(c);return yR(a,b,Math.min(this._dateAdapter.getDate(this.activeDate),c))};h._createCellForYear=function(a){var b=yR(a,0,1),c=""+b.getFullYear();b=this.dateClass?this.dateClass(b,"multi-year"):void 0;return new xkd(a,c,c,this._shouldEnableYear(a),b)};
h._shouldEnableYear=function(a){if(a===void 0||a===null||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=yR(a,0,1);this._dateAdapter.getYear(b)==a;b=vR(b,1))if(this.dateFilter(b))return!0;return!1};h._isRtl=function(){return this._dir&&this._dir.value==="rtl"};h._setSelectedYear=function(a){this._selectedYear.set(null);a&&this._selectedYear.set(this._dateAdapter.getYear(a))};
da.Object.defineProperties(zR.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=Yz(this._dateAdapter,Zz(this._dateAdapter,a))||new ao;this._activeDate=oDc(this._dateAdapter,a,this.minDate,this.maxDate);s6a(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=Yz(this._dateAdapter,Zz(this._dateAdapter,
a));this._setSelectedYear(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Yz(this._dateAdapter,Zz(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Yz(this._dateAdapter,Zz(this._dateAdapter,a))}}});zR.\u0275fac=function(a){return new (a||zR)};
zR.\u0275cmp=D({type:zR,selectors:[["mat-multi-year-view"]],viewQuery:function(a,b){a&1&&hg(rR,5);if(a&2){var c;lg(c=mg())&&(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,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(a,b){a&1&&(K(0,"table",0)(1,"thead",1)(2,"tr"),M(3,"th",2),L()(),K(4,"tbody",3),N("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)}),L()());a&2&&(B(4),I("rows",b._years())("todayValue",b._todayYear())("startValue",b._selectedYear())("endValue",b._selectedYear())("numCols",4)("cellAspectRatio",4/7)("activeCell",b._getActiveCell()))},dependencies:[rR],encapsulation:2,changeDetection:0});var AR=function(){this._changeDetectorRef=p(Cx);this._dateFormats=p(aA,{optional:!0});this._dateAdapter=p(Xz,{optional:!0});this._dir=p(bi,{optional:!0});this._rerenderSubscription=Pd.EMPTY;this.selectedChange=new Ti;this.monthSelected=new Ti;this.activeDateChange=new Ti;this._months=ng.apply(null,[[]].concat(q([])));this._yearLabel=ng.apply(null,[""].concat(q([])));this._todayMonth=ng.apply(null,[null].concat(q([])));this._selectedMonth=ng.apply(null,[null].concat(q([])));this._activeDate=new ao};
h=AR.prototype;h.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(xf(null)).subscribe(function(){return a._init()})};h.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};h._monthSelected=function(a){a=a.value;var b=yR(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(b);a=this._getDateFromMonth(a);this.selectedChange.emit(a)};
h._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromMonth(a.value);$z(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
h._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=xR(this._activeDate,c?1:-1);break;case 39:this.activeDate=xR(this._activeDate,c?-1:1);break;case 38:this.activeDate=xR(this._activeDate,-4);break;case 40:this.activeDate=xR(this._activeDate,4);break;case 36:this.activeDate=xR(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=xR(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));
break;case 33:this.activeDate=wR(this._activeDate,a.altKey?-10:-1);break;case 34:this.activeDate=wR(this._activeDate,a.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}$z(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};
h._handleCalendarBodyKeyup=function(a){if(a.keyCode===32||a.keyCode===13)this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:a}),this._selectionKeyPressed=!1};
h._init=function(){var a=this;this._setSelectedMonth(this.selected);this._todayMonth.set(this._getMonthInCurrentYear(new ao));this._yearLabel.set(""+this.activeDate.getFullYear());var b=this._dateAdapter.locale.SHORTMONTHS;this._months.set([[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()};h._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};
h._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};h._getMonthInCurrentYear=function(a){return a&&this._dateAdapter.getYear(a)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(a):null};h._getDateFromMonth=function(a){var b=yR(this._dateAdapter.getYear(this.activeDate),a,1);b=aUc(b);return yR(this._dateAdapter.getYear(this.activeDate),a,Math.min(this._dateAdapter.getDate(this.activeDate),b))};
h._createCellForMonth=function(a,b){var c=yR(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 xkd(a,b.toLocaleUpperCase(),d,this._shouldEnableMonth(a),c)};
h._shouldEnableMonth=function(a){var b=this._dateAdapter.getYear(this.activeDate);if(a===void 0||a===null||this._isYearAndMonthAfterMaxDate(b,a)||this._isYearAndMonthBeforeMinDate(b,a))return!1;if(!this.dateFilter)return!0;for(b=yR(b,a,1);this._dateAdapter.getMonth(b)==a;b=vR(b,1))if(this.dateFilter(b))return!0;return!1};h._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};
h._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};h._isRtl=function(){return this._dir&&this._dir.value==="rtl"};h._setSelectedMonth=function(a){this._selectedMonth.set(this._getMonthInCurrentYear(a))};
da.Object.defineProperties(AR.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=Yz(this._dateAdapter,Zz(this._dateAdapter,a))||new ao;this._activeDate=oDc(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=Yz(this._dateAdapter,
Zz(this._dateAdapter,a));this._setSelectedMonth(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Yz(this._dateAdapter,Zz(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Yz(this._dateAdapter,Zz(this._dateAdapter,a))}}});AR.\u0275fac=function(a){return new (a||AR)};
AR.\u0275cmp=D({type:AR,selectors:[["mat-year-view"]],viewQuery:function(a,b){a&1&&hg(rR,5);if(a&2){var c;lg(c=mg())&&(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,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(a,b){a&1&&(K(0,"table",0)(1,"thead",1)(2,"tr"),M(3,"th",2),L()(),K(4,"tbody",3),N("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)}),L()());a&2&&(B(4),I("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:[rR],encapsulation:2,changeDetection:0});var CR=function(){var a=this;this._intl=p(qR);this.calendar=p(BR);this._dateAdapter=p(Xz,{optional:!0});this._dateFormats=p(aA,{optional:!0});this._periodButtonLabelId=p(ai).getId("mat-calendar-period-label-");p(Zh).load(Ry);var b=p(Cx);this._updateLabels();this.calendar.stateChanges.subscribe(function(){a._updateLabels();b.markForCheck()})},Hkd=function(a){return a.calendar.minDate?!a.calendar.minDate||!a._isSameView(a.calendar.activeDate,a.calendar.minDate):!0};
CR.prototype._updateLabels=function(){var a=this.calendar,b=this._intl,c=this._dateAdapter;a.currentView==="month"?(this._periodButtonText=c.format(a.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=c.format(a.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=b.switchToMultiYearViewLabel,this._prevButtonLabel=b.prevMonthLabel,this._nextButtonLabel=b.nextMonthLabel):a.currentView==="year"?(this._periodButtonText=
""+a.activeDate.getFullYear(),this._periodButtonDescription=""+a.activeDate.getFullYear(),this._periodButtonLabel=b.switchToMonthViewLabel,this._prevButtonLabel=b.prevYearLabel,this._nextButtonLabel=b.nextYearLabel):(this._periodButtonText=b.formatYearRange.apply(b,q(this._formatMinAndMaxYearLabels())),this._periodButtonDescription=b.formatYearRangeLabel.apply(b,q(this._formatMinAndMaxYearLabels())),this._periodButtonLabel=b.switchToMonthViewLabel,this._prevButtonLabel=b.prevMultiYearLabel,this._nextButtonLabel=
b.nextMultiYearLabel)};CR.prototype._isSameView=function(a,b){return this.calendar.currentView=="month"?this._dateAdapter.getYear(a)==this._dateAdapter.getYear(b)&&this._dateAdapter.getMonth(a)==this._dateAdapter.getMonth(b):this.calendar.currentView=="year"?this._dateAdapter.getYear(a)==this._dateAdapter.getYear(b):s6a(this._dateAdapter,a,b,this.calendar.minDate,this.calendar.maxDate)};
CR.prototype._formatMinAndMaxYearLabels=function(){var a=this._dateAdapter.getYear(this.calendar.activeDate)-t6a(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),b=a+24-1;a=""+yR(a,0,1).getFullYear();b=""+yR(b,0,1).getFullYear();return[a,b]};
da.Object.defineProperties(CR.prototype,{periodButtonText:{configurable:!0,enumerable:!0,get:function(){return this._periodButtonText}},periodButtonDescription:{configurable:!0,enumerable:!0,get:function(){return this._periodButtonDescription}},periodButtonLabel:{configurable:!0,enumerable:!0,get:function(){return this._periodButtonLabel}},prevButtonLabel:{configurable:!0,enumerable:!0,get:function(){return this._prevButtonLabel}},nextButtonLabel:{configurable:!0,enumerable:!0,get:function(){return this._nextButtonLabel}}});
CR.\u0275fac=function(a){return new (a||CR)};
CR.\u0275cmp=D({type:CR,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:["*"],decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton",
"","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],"viewBox;0 0 24 24;focusable;false;aria-hidden;true".split(";"),["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(a,b){a&1&&(bg(),K(0,"div",0)(1,"div",1)(2,"span",2),Q(3),L(),K(4,"button",
3),N("click",function(){b.calendar.currentView=b.calendar.currentView=="month"?"multi-year":"month"}),K(5,"span",4),Q(6),L(),yd(),K(7,"svg",5),M(8,"polygon",6),L()(),zd(),M(9,"div",7),cg(10),K(11,"button",8),N("click",function(){Hkd(b)&&(b.calendar.activeDate=b.calendar.currentView=="month"?xR(b.calendar.activeDate,-1):wR(b.calendar.activeDate,b.calendar.currentView=="year"?-1:-24))}),yd(),K(12,"svg",9),M(13,"path",10),L()(),zd(),K(14,"button",11),N("click",function(){b.calendar.maxDate&&b._isSameView(b.calendar.activeDate,
b.calendar.maxDate)||(b.calendar.activeDate=b.calendar.currentView=="month"?xR(b.calendar.activeDate,1):wR(b.calendar.activeDate,b.calendar.currentView=="year"?1:24))}),yd(),K(15,"svg",9),M(16,"path",12),L()()()());a&2&&(B(2),I("id",b._periodButtonLabelId),B(),yg(b.periodButtonDescription),B(),If("aria-label",b.periodButtonLabel)("aria-describedby",b._periodButtonLabelId),B(2),yg(b.periodButtonText),B(),wg("mat-calendar-invert",b.calendar.currentView!=="month"),B(4),I("disabled",!Hkd(b))("matTooltip",
b.prevButtonLabel),If("aria-label",b.prevButtonLabel),B(3),I("disabled",!(!b.calendar.maxDate||!b._isSameView(b.calendar.activeDate,b.calendar.maxDate)))("matTooltip",b.nextButtonLabel),If("aria-label",b.nextButtonLabel))},dependencies:[gB,iB,nA],encapsulation:2,changeDetection:0});
var BR=function(){var a=this;this._dateAdapter=p(Xz,{optional:!0});this._dateFormats=p(aA,{optional:!0});this._changeDetectorRef=p(Cx);this._elementRef=p(Hd);this._moveFocusOnNextTick=!1;this.startView="month";this.selectedChange=new Ti;this.yearSelected=new Ti;this.monthSelected=new Ti;this.viewChanged=new Ti(!0);this._userSelection=new Ti;this._userDragDrop=new Ti;this._activeDrag=null;this.stateChanges=new qf;this._intlChanges=p(qR).changes.subscribe(function(){a._changeDetectorRef.markForCheck();
a.stateChanges.next()})};h=BR.prototype;h.ngAfterContentInit=function(){this._calendarHeaderPortal=new Nz(this.headerComponent||CR);this.activeDate=this.startAt||new ao;this._currentView=this.startView};h.ngAfterViewChecked=function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this._getCurrentViewComponent()._focusActiveCell(!1))};h.ngOnDestroy=function(){this._intlChanges.unsubscribe();this.stateChanges.complete()};
h.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._elementRef.nativeElement.contains(Ih())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init());this.stateChanges.next()};
h._dateSelected=function(a){var b=a.value;b&&!this._dateAdapter.sameDate(b,this.selected)&&this.selectedChange.emit(b);this._userSelection.emit(a)};h._yearSelectedInMultiYearView=function(a){this.yearSelected.emit(a)};h._monthSelectedInYearView=function(a){this.monthSelected.emit(a)};h._goToDateInView=function(a,b){this.activeDate=a;this.currentView=b};h._dragStarted=function(a){this._activeDrag=a};h._dragEnded=function(a){this._activeDrag&&(a.value&&this._userDragDrop.emit(a),this._activeDrag=null)};
h._getCurrentViewComponent=function(){return this.monthView||this.yearView||this.multiYearView};
da.Object.defineProperties(BR.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt},set:function(a){this._startAt=Yz(this._dateAdapter,Zz(this._dateAdapter,a))}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=Yz(this._dateAdapter,Zz(this._dateAdapter,a))}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Yz(this._dateAdapter,Zz(this._dateAdapter,a))}},
maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Yz(this._dateAdapter,Zz(this._dateAdapter,a))}},activeDate:{configurable:!0,enumerable:!0,get:function(){return this._clampedActiveDate},set:function(a){this._clampedActiveDate=oDc(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.stateChanges.next(),this.viewChanged.emit(b))}}});BR.\u0275fac=function(a){return new (a||BR)};
BR.\u0275cmp=D({type:BR,selectors:[["mat-calendar"]],viewQuery:function(a,b){a&1&&(hg(uR,5),hg(AR,5),hg(zR,5));if(a&2){var c;lg(c=mg())&&(b.monthView=c.first);lg(c=mg())&&(b.yearView=c.first);lg(c=mg())&&(b.multiYearView=c.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",
startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Gg([Bkd]),jx],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate",
"dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter",
"maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(a,b){a&1&&(E(0,u6a,0,0,"ng-template",0),K(1,"div",1),F(2,v6a,1,11,"mat-month-view",2)(3,w6a,1,6,"mat-year-view",3)(4,x6a,1,6,"mat-multi-year-view",3),L());if(a&2){var c;I("cdkPortalOutlet",b._calendarHeaderPortal);B(2);G((c=b.currentView)==="month"?2:c==="year"?3:c==="multi-year"?4:-1)}},dependencies:[Rz,Py,uR,AR,zR],styles:['.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.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 Ikd=function(a,b){this.target=a;this.targetElement=b;this.value=this.target.value},DR=function(){var a=this;this._elementRef=p(Hd);this._dateAdapter=p(Xz,{optional:!0});this._dateFormats=p(aA,{optional:!0});this.dateChange=new Ti;this.dateInput=new Ti;this.stateChanges=new qf;this._onTouched=function(){};this._validatorOnChange=function(){};this._cvaOnChange=function(){};this._localeSubscription=this._valueChangesSubscription=Pd.EMPTY;this._parseValidator=function(){return a._lastValueValid?null:
{matDatepickerParse:{text:a._elementRef.nativeElement.value}}};this._filterValidator=function(b){b=Yz(a._dateAdapter,Zz(a._dateAdapter,b.value));return!b||a._matchesFilter(b)?null:{matDatepickerFilter:!0}};this._minValidator=function(b){b=Yz(a._dateAdapter,Zz(a._dateAdapter,b.value));var c=a._getMinDate();return!c||!b||$z(a._dateAdapter,c,b)<=0?null:{matDatepickerMin:{min:c,actual:b}}};this._maxValidator=function(b){b=Yz(a._dateAdapter,Zz(a._dateAdapter,b.value));var c=a._getMaxDate();return!c||!b||
$z(a._dateAdapter,c,b)>=0?null:{matDatepickerMax:{max:c,actual:b}}};this._lastValueValid=!1;this._localeSubscription=this._dateAdapter.localeChanges.subscribe(function(){a._assignValueProgrammatically(a.value)})};h=DR.prototype;h._getValidators=function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]};
h._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 Ikd(b,b._elementRef.nativeElement)),b.dateChange.emit(new Ikd(b,b._elementRef.nativeElement)))})};
h.ngAfterViewInit=function(){this._isInitialized=!0};h.ngOnChanges=function(a){a:{var b=this._dateAdapter,c=Object.keys(a);c=m(c);for(var d=c.next();!d.done;d=c.next()){var e=a[d.value];d=e.previousValue;e=e.currentValue;if(nDc(d)&&nDc(e)){if(!b.sameDate(d,e)){a=!0;break a}}else{a=!0;break a}}a=!1}a&&this.stateChanges.next(void 0)};h.ngOnDestroy=function(){this._valueChangesSubscription.unsubscribe();this._localeSubscription.unsubscribe();this.stateChanges.complete()};
h.registerOnValidatorChange=function(a){this._validatorOnChange=a};h.validate=function(a){return this._validator?this._validator(a):null};h.writeValue=function(a){this._assignValueProgrammatically(a)};h.registerOnChange=function(a){this._cvaOnChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this.disabled=a};
h._onKeydown=function(a){var b=["ctrlKey","shiftKey","metaKey"];Gh(a,"altKey")&&a.keyCode===40&&b.every(function(c){return!Gh(a,c)})&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),a.preventDefault())};
h._onInput=function(a){a=a.target.value;var b=this._lastValueValid,c=this._dateAdapter.parse(a,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(c);c=Yz(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 Ikd(this,this._elementRef.nativeElement)))};
h._onChange=function(){this.dateChange.emit(new Ikd(this,this._elementRef.nativeElement))};h._onBlur=function(){this.value&&this._formatValue(this.value);this._onTouched()};h._formatValue=function(a){this._elementRef.nativeElement.value=a!=null?this._dateAdapter.format(a,this._dateFormats.display.dateInput):""};h._assignValue=function(a){this._model?(this._assignValueToModel(a),this._pendingValue=null):this._pendingValue=a};h._isValidValue=function(a){return!a||this._dateAdapter.isValid(a)};
h._parentDisabled=function(){return!1};h._assignValueProgrammatically=function(a){a=Zz(this._dateAdapter,a);this._lastValueValid=this._isValidValue(a);a=Yz(this._dateAdapter,a);this._assignValue(a);this._formatValue(a)};h._matchesFilter=function(a){var b=this._getDateFilter();return!b||b(a)};
da.Object.defineProperties(DR.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||!1},set:function(a){var b=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0));a&&this._isInitialized&&b.blur&&b.blur()}}});
DR.\u0275fac=function(a){return new (a||DR)};DR.\u0275dir=af({type:DR,inputs:{value:"value",disabled:[2,"disabled","disabled",$g]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[jx]});var Jkd=new dd("mat-datepicker-scroll-strategy",{providedIn:"root",factory:function(){var a=p(ye);return function(){return Th(a)}}}),ER=function(){var a=this;this._elementRef=p(Hd);this._animationsDisabled=mi();this._changeDetectorRef=p(Cx);this._globalModel=p(sR);this._dateAdapter=p(Xz);this._ngZone=p(Rg);this._rangeSelectionStrategy=p(Ckd,{optional:!0});this._animationDone=new qf;this._isAnimating=!1;this._actionsPortal=null;this._handleAnimationEvent=function(d){var e=a._elementRef.nativeElement;
d.target===e&&d.animationName.startsWith("_mat-datepicker-content")&&(clearTimeout(a._animationFallback),a._isAnimating=d.type==="animationstart",e.classList.toggle("mat-datepicker-content-animating",a._isAnimating),a._isAnimating||a._animationDone.next())};p(Zh).load(Ry);this._closeButtonText=p(qR).closeCalendarLabel;if(!this._animationsDisabled){var b=this._elementRef.nativeElement,c=p(ci);this._eventCleanups=this._ngZone.runOutsideAngular(function(){return[c.listen(b,"animationstart",a._handleAnimationEvent),
c.listen(b,"animationend",a._handleAnimationEvent),c.listen(b,"animationcancel",a._handleAnimationEvent)]})}};h=ER.prototype;h.ngAfterViewInit=function(){var a=this;this._stateChanges=this.datepicker.stateChanges.subscribe(function(){a._changeDetectorRef.markForCheck()});this._calendar._getCurrentViewComponent()._focusActiveCell(!1)};
h.ngOnDestroy=function(){clearTimeout(this._animationFallback);var a;(a=this._eventCleanups)==null||a.forEach(function(c){return c()});var b;(b=this._stateChanges)==null||b.unsubscribe();this._animationDone.complete()};h._handleUserSelection=function(a){var b=this._model.selection;a=a.value;!a||this._dateAdapter.sameDate(a,b)||this._model.add(a);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()};
h._handleUserDragDrop=function(a){this._model.updateSelection(a.value,this)};h._startExitAnimation=function(){var a=this;this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit");this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(function(){a._isAnimating||a._animationDone.next()},200))};h._getSelected=function(){return this._model.selection};
h._applyPendingSelection=function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)};h._assignActions=function(a,b){this._model=a?this._globalModel.clone():this._globalModel;this._actionsPortal=a;b&&this._changeDetectorRef.detectChanges()};ER.\u0275fac=function(a){return new (a||ER)};
ER.\u0275cmp=D({type:ER,selectors:[["mat-datepicker-content"]],viewQuery:function(a,b){a&1&&hg(BR,5);if(a&2){var c;lg(c=mg())&&(b._calendar=c.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(a,b){a&2&&(xg(b.color?"mat-"+b.color:""),wg("mat-datepicker-content-touch",b.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!b._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",
1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"mat-calendar",1),N("yearSelected",
function(d){return b.datepicker._selectYear(d)})("monthSelected",function(d){return b.datepicker._selectMonth(d)})("viewChanged",function(d){return b.datepicker._viewChanged(d)})("_userSelection",function(d){return b._handleUserSelection(d)})("_userDragDrop",function(d){return b._handleUserDragDrop(d)}),L(),E(2,y6a,0,0,"ng-template",2),K(3,"button",3),N("focus",function(){return b._closeButtonFocused=!0})("blur",function(){return b._closeButtonFocused=!1})("click",function(){return b.datepicker.close()}),
Q(4),L()());if(a&2){wg("mat-datepicker-content-container-with-custom-header",b.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",b._actionsPortal);var c;If("aria-modal",!0)("aria-labelledby",(c=b._dialogLabelId)!=null?c:void 0);B();xg(b.datepicker.panelClass);I("id",b.datepicker.id)("startAt",b.datepicker.startAt)("startView",b.datepicker.startView)("minDate",b.datepicker._getMinDate())("maxDate",b.datepicker._getMaxDate())("dateFilter",b.datepicker._getDateFilter())("headerComponent",
b.datepicker.calendarHeaderComponent)("selected",b._model.selection)("dateClass",b.datepicker.dateClass)("comparisonStart",b.comparisonStart)("comparisonEnd",b.comparisonEnd)("startDateAccessibleName",b.startDateAccessibleName)("endDateAccessibleName",b.endDateAccessibleName);B();I("cdkPortalOutlet",b._actionsPortal);B();wg("cdk-visually-hidden",!b._closeButtonFocused);I("color",b.color||"primary");B();yg(b._closeButtonText)}},dependencies:[Wy,BR,Rz,gB],styles:["@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],
encapsulation:2,changeDetection:0});
var FR=function(){var a=this;this._injector=p(ye);this._viewContainerRef=p(eg);this._dateAdapter=p(Xz,{optional:!0});this._dir=p(bi,{optional:!0});this._model=p(sR);this._animationsDisabled=mi();this._scrollStrategy=p(Jkd);this._inputStateChanges=Pd.EMPTY;this._document=p(Rh);this.startView="month";this.touchUi=!1;this.xPosition="start";this.yPosition="below";this.restoreFocus=!0;this.yearSelected=new Ti;this.monthSelected=new Ti;this.viewChanged=new Ti(!0);this.openedStream=new Ti;this.closedStream=
new Ti;this._opened=!1;this.id=p(ai).getId("mat-datepicker-");this._focusedElementBeforeOpen=null;this._backdropHarnessClass=this.id+"-backdrop";this.stateChanges=new qf;this._changeDetectorRef=p(Cx);this._model.selectionChanged.subscribe(function(){a._changeDetectorRef.markForCheck()})};h=FR.prototype;h._getMinDate=function(){return this.datepickerInput&&this.datepickerInput.min};h._getMaxDate=function(){return this.datepickerInput&&this.datepickerInput.max};
h._getDateFilter=function(){return this.datepickerInput&&this.datepickerInput.dateFilter};h.ngOnChanges=function(a){(a=a.xPosition||a.yPosition)&&!a.firstChange&&this._overlayRef&&(a=this._overlayRef.getConfig().positionStrategy,a instanceof Uh&&(this._setConnectedPositions(a),this.opened&&this._overlayRef.updatePosition()));this.stateChanges.next(void 0)};h.ngOnDestroy=function(){this._destroyOverlay();this.close();this._inputStateChanges.unsubscribe();this.stateChanges.complete()};h.select=function(a){this._model.add(a)};
h._selectYear=function(a){this.yearSelected.emit(a)};h._selectMonth=function(a){this.monthSelected.emit(a)};h._viewChanged=function(a){this.viewChanged.emit(a)};var Kkd=function(a,b){a._inputStateChanges.unsubscribe();a.datepickerInput=b;a._inputStateChanges=b.stateChanges.subscribe(function(){return a.stateChanges.next(void 0)});return a._model};h=FR.prototype;
h.open=function(){var a;this._opened||this.disabled||((a=this._componentRef)==null?0:a.instance._isAnimating)||(this._focusedElementBeforeOpen=Ih(),this._openOverlay(),this._opened=!0,this.openedStream.emit())};
h.close=function(){var a=this,b;if(this._opened&&((b=this._componentRef)==null||!b.instance._isAnimating)){var c=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus==="function";b=function(){a._opened&&(a._opened=!1,a.closedStream.emit())};if(this._componentRef){var d=this._componentRef,e=d.instance,f=d.location;e._animationDone.pipe(lf(1)).subscribe(function(){var g=a._document.activeElement;!c||g&&g!==a._document.activeElement&&!f.nativeElement.contains(g)||
a._focusedElementBeforeOpen.focus();a._focusedElementBeforeOpen=null;a._destroyOverlay()});e._startExitAnimation()}c?setTimeout(b):b()}};h._applyPendingSelection=function(){var a,b;(a=this._componentRef)==null||(b=a.instance)==null||b._applyPendingSelection()};
h._forwardContentValues=function(a){a.datepicker=this;a.color=this.color;var b=this.datepickerInput;b=b._formField?b._formField.getLabelId():b._elementRef.nativeElement.getAttribute("aria-labelledby");a._dialogLabelId=b;a._assignActions(this._actionsPortal,!1)};
h._openOverlay=function(){var a=this;this._destroyOverlay();var b=this.touchUi,c=new Nz(ER,this._viewContainerRef),d=this._overlayRef=ki(this._injector,new di({positionStrategy:b?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[b?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:b?mra(this._injector):this._scrollStrategy(),panelClass:"mat-datepicker-"+(b?"dialog":"popup"),disableAnimations:this._animationsDisabled}));
this._getCloseStream(d).subscribe(function(e){e&&e.preventDefault();a.close()});d.keydownEvents().subscribe(function(e){var f=e.keyCode;f!==38&&f!==40&&f!==37&&f!==39&&f!==33&&f!==34||e.preventDefault()});this._componentRef=d.attach(c);this._forwardContentValues(this._componentRef.instance);b||Ee(function(){d.updatePosition()},{injector:this._injector})};h._destroyOverlay=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)};h._getDialogStrategy=function(){return gDc(Jz(new Iz(this._injector)))};
h._getDropdownStrategy=function(){var a=eDc(Gz(Hz(fDc(Xh(this._injector,this.datepickerInput.getConnectedOverlayOrigin()),".mat-datepicker-content"),!1),8));return this._setConnectedPositions(a)};
h._setConnectedPositions=function(a){var b=this.xPosition==="end"?"end":"start",c=b==="start"?"end":"start",d=this.yPosition==="above"?"bottom":"top",e=d==="top"?"bottom":"top";return Fz(a,[{originX:b,originY:e,overlayX:b,overlayY:d},{originX:b,originY:d,overlayX:b,overlayY:e},{originX:c,originY:e,overlayX:c,overlayY:d},{originX:c,originY:d,overlayX:c,overlayY:e}])};
h._getCloseStream=function(a){var b=this,c=["ctrlKey","shiftKey","metaKey"];return te(a.backdropClick(),a._detachments,a.keydownEvents().pipe(ue(function(d){return d.keyCode===27&&!Gh(d)||b.datepickerInput&&Gh(d,"altKey")&&d.keyCode===38&&c.every(function(e){return!Gh(d,e)})})))};
da.Object.defineProperties(FR.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.value:null)},set:function(a){this._startAt=Yz(this._dateAdapter,Zz(this._dateAdapter,a))}},color:{configurable:!0,enumerable:!0,get:function(){var a;(a=this._color)||(this.datepickerInput?(a=this.datepickerInput,a=a._formField?a._formField.color:void 0):a=void 0);return a},set:function(a){this._color=a}},disabled:{configurable:!0,enumerable:!0,
get:function(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(a){a!==this._disabled&&(this._disabled=a,this.stateChanges.next(void 0))}},panelClass:{configurable:!0,enumerable:!0,get:function(){return this._panelClass},set:function(a){var b=b===void 0?/\s+/:b;var c=[];if(a!=null)for(a=Array.isArray(a)?a:(""+a).split(b),a=m(a),b=a.next();!b.done;b=a.next())(b=(""+b.value).trim())&&c.push(b);this._panelClass=c}},opened:{configurable:!0,
enumerable:!0,get:function(){return this._opened},set:function(a){a?this.open():this.close()}}});FR.\u0275fac=function(a){return new (a||FR)};
FR.\u0275dir=af({type:FR,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",$g],disabled:[2,"disabled","disabled",$g],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",$g],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",$g]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},
features:[jx]});var Lkd={provide:aE,useExisting:Vc(function(){return GR}),multi:!0},Mkd={provide:bE,useExisting:Vc(function(){return GR}),multi:!0},GR=function(){DR.call(this);this._formField=p(YOc,{optional:!0});this._openedSubscription=this._closedSubscription=Pd.EMPTY;this._ariaOwns=ng.apply(null,[null].concat(q([])));this._validator=uva(DR.prototype._getValidators.call(this))};Y(GR,DR);h=GR.prototype;h.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef};
h.ngOnDestroy=function(){DR.prototype.ngOnDestroy.call(this);this._closedSubscription.unsubscribe();this._openedSubscription.unsubscribe()};h._openPopup=function(){this._datepicker&&this._datepicker.open()};h._getValueFromModel=function(a){return a};h._assignValueToModel=function(a){this._model&&this._model.updateSelection(a,this)};h._getMinDate=function(){return this._min};h._getMaxDate=function(){return this._max};h._getDateFilter=function(){return this._dateFilter};
h._shouldHandleChangeEvent=function(a){return a.source!==this};
da.Object.defineProperties(GR.prototype,{matDatepicker:{configurable:!0,enumerable:!0,set:function(a){var b=this;a&&(this._datepicker=a,this._ariaOwns.set(a.opened?a.id:null),this._closedSubscription=a.closedStream.subscribe(function(){b._onTouched();b._ariaOwns.set(null)}),this._openedSubscription=a.openedStream.subscribe(function(){b._ariaOwns.set(a.id)}),this._registerModel(Kkd(a,this)))}},min:{configurable:!0,enumerable:!0,get:function(){return this._min},set:function(a){a=Yz(this._dateAdapter,
Zz(this._dateAdapter,a));this._dateAdapter.sameDate(a,this._min)||(this._min=a,this._validatorOnChange())}},max:{configurable:!0,enumerable:!0,get:function(){return this._max},set:function(a){a=Yz(this._dateAdapter,Zz(this._dateAdapter,a));this._dateAdapter.sameDate(a,this._max)||(this._max=a,this._validatorOnChange())}},dateFilter:{configurable:!0,enumerable:!0,get:function(){return this._dateFilter},set:function(a){var b=this._matchesFilter(this.value);this._dateFilter=a;this._matchesFilter(this.value)!==
b&&this._validatorOnChange()}}});GR.\u0275fac=function(a){return new (a||GR)};
GR.\u0275dir=af({type:GR,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(a,b){a&1&&N("input",function(c){return b._onInput(c)})("change",function(){return b._onChange()})("blur",function(){return b._onBlur()})("keydown",function(c){return b._onKeydown(c)});a&2&&(Pf("disabled",b.disabled),If("aria-haspopup",b._datepicker?"dialog":null)("aria-owns",b._ariaOwns())("min",b.min?b.min.toIsoString(!0):null)("max",b.max?b.max.toIsoString(!0):
null)("data-mat-calendar",b._datepicker?b._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Gg([Lkd,Mkd,{provide:HPc,useExisting:GR}]),Ef]});var Nkd=["button"],Okd=[[["","matDatepickerToggleIcon",""]]],Pkd=function(){};Pkd.\u0275fac=function(a){return new (a||Pkd)};Pkd.\u0275dir=af({type:Pkd,selectors:[["","matDatepickerToggleIcon",""]]});var HR=function(){this._intl=p(qR);this._changeDetectorRef=p(Cx);this._stateChanges=Pd.EMPTY;var a=p(new kx("tabindex"),{optional:!0});this.tabIndex=(a=Number(a))||a===0?a:null};h=HR.prototype;h.ngOnChanges=function(a){a.datepicker&&this._watchStateChanges()};h.ngOnDestroy=function(){this._stateChanges.unsubscribe()};
h.ngAfterContentInit=function(){this._watchStateChanges()};h._open=function(a){this.datepicker&&!this.disabled&&(this.datepicker.open(),a.stopPropagation())};
h._watchStateChanges=function(){var a=this,b=this.datepicker?this.datepicker.stateChanges:ce(),c=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:ce(),d=this.datepicker?te(this.datepicker.openedStream,this.datepicker.closedStream):ce();this._stateChanges.unsubscribe();this._stateChanges=te(this._intl.changes,b,c,d).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
da.Object.defineProperties(HR.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(a){this._disabled=a}}});HR.\u0275fac=function(a){return new (a||HR)};
HR.\u0275cmp=D({type:HR,selectors:[["mat-datepicker-toggle"]],contentQueries:function(a,b,c){a&1&&ig(c,Pkd,5);if(a&2){var d;lg(d=mg())&&(b._customIcon=d.first)}},viewQuery:function(a,b){a&1&&hg(Nkd,5);if(a&2){var c;lg(c=mg())&&(b._button=c.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(a,b){a&1&&N("click",function(c){return b._open(c)});a&2&&(If("tabindex",null)("data-mat-calendar",b.datepicker?b.datepicker.id:null),wg("mat-datepicker-toggle-active",b.datepicker&&
b.datepicker.opened)("mat-accent",b.datepicker&&b.datepicker.color==="accent")("mat-warn",b.datepicker&&b.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",$g],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[jx],ngContentSelectors:["[matDatepickerToggleIcon]"],decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],
["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 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 16H5V8h14v11zM7 10h5v5H7z"]],template:function(a,b){a&1&&(bg(Okd),K(0,"button",1,0),F(2,z6a,2,0,":svg:svg",2),cg(3),L());a&2&&(I("tabIndex",b.disabled?-1:b.tabIndex)("disabled",b.disabled)("disableRipple",b.disableRipple),If("aria-haspopup",
b.datepicker?"dialog":null)("aria-label",b.ariaLabel||b._intl.openCalendarLabel)("aria-expanded",b.datepicker?b.datepicker.opened:null),B(2),G(b._customIcon?-1:2))},dependencies:[iB],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}}\n"],
encapsulation:2,changeDetection:0});var IR=function(){FR.apply(this,arguments)};Y(IR,FR);IR.\u0275dir=FR.\u0275dir;IR.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(IR)))(b||IR)}}();IR.\u0275cmp=D({type:IR,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Gg([Bkd,{provide:FR,useExisting:IR}]),Ef],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var JR=function(){};JR.\u0275fac=function(a){return new (a||JR)};JR.\u0275mod=$e({type:JR});JR.\u0275inj=Fc({providers:[qR],imports:[jB,Wz,ez,Sz,ER,HR,CR,Ky,Cz]});var A6a=new Map([["zwieback_id:","zwieback"],["android_id:","android"],["anonymous_id:","anonymous"]]);var Qkd=["el"],F6a=function(a,b){return b.label},KR=function(){Z.apply(this,arguments);this.domSafe=p(mR);this.clipboard=p(oR);this.snackBar=p(rB);this.activeSession=p(uu);this.contextSensitiveRegistry=p(XQ);this.formattingMode=p(qkd);this.analytics=p(eQ);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.scrollStrategy=p(Ez).close();this.urls=[];this.enableNexusLinking=this.activeSession.getFlag("enableNexusLinking")&&this.activeSession.isInternalSession();this.opened=!1};Y(KR,Z);
KR.\u0275dir=Z.\u0275dir;
KR.prototype.ngOnInit=function(){this.urls=[{label:this.originalHref,originalHref:this.originalHref,href:this.href}];if(this.enableNexusLinking){var a=Ar(this.contextSensitiveRegistry.getIssueId());a:{var b=this.originalHref;try{var c=null,d=(new URL(b)).hostname;switch(d.includes("analog")?"Analog":d.includes("sherlog")?"Sherlog":d.includes("eye3")?"Third Eye":"PRODUCT_UNSPECIFIED"){case "Analog":var e=new URL("https://nexus.corp.google.com/debug/dashboard");var f=new URL(b);if(f.searchParams.has("text_query")){var g=
f.searchParams.get("text_query");var k=f.searchParams.get("time_range");if(k==null)var l=[];else{var r=k.split("/");if(r.length!==2)l=[];else{var w=(new Date(r[1])).getTime()*1E3;l=[Fr("start_time","=",[(new Date(r[0])).getTime()*1E3]),Fr("end_time","=",[w])]}}f=[];var x=f.concat,C=q(l);l=[];for(var H,J=[],O=m(g.matchAll(/NOT\s\(source_location.file = "(?<file>[^)]+)" source_location.line = "(?<line>[0-9]+)"\)/gm)),R=O.next();!R.done;R=O.next()){var V=R.value;J.push(V[1]+":"+V[2])}(H=J.length>0?Fr("site_path",
"!=",J):null)&&l.push(H);O=void 0;for(var ca=m(g.matchAll(/(?<key>[^\s=!~]+)[\s]*(?<operator>=~?|![=~])[\s]*(?<value>"[^"\\]*(?:\\.[^"\\]*)*"|[^\s"]+)/gm)),na=ca.next();!na.done;na=ca.next()){var ua=na.value,ia=ua[1];var Ga=ua[2];var ha=dca()(Ga)?Ga:void 0;g=ha;var sa=ua[3];if(sa.length>=2&&sa.charAt(0)==='"'&&sa.charAt(sa.length-1)==='"')var xa=sa.substring(1,sa.length-1);else if(sa==="true"||sa==="false")xa=sa==="true";else{var Qa=Number(sa);xa=hca(Qa)?Qa:void 0}R=xa;if(g)if(ia!=="source_location.file"||
H){ia==="source_location.line"&&O&&(O=Fr("site_path",O.operator,[O.values[0]+":"+R]));var bb=d6a(ia);bb&&l.push(Fr(bb,g,[Y5a.includes(bb)?Number(R):R]))}else O=Fr("site_path",g,[R])}O&&l.push(O);var ub=x.call(f,C,q(l))}else{if(f.searchParams.get("storage")==="borglocal")throw Error("we");x=[];J=m(f.searchParams);for(var Wb=J.next();!Wb.done;Wb=J.next()){var lc=m(Wb.value),fc=lc.next().value,pc=lc.next().value,rb=c6a(fc,pc,f.searchParams);rb&&x.push.apply(x,q(rb))}ub=x}e.searchParams.set("filters",
X5a(ub));e.searchParams.set("scope","Borg");e.searchParams.set("tab","rdl");c=e;break;case "Sherlog":if(b.startsWith("http://sherlog/_")){var Ob=new URL("https://nexus.corp.google.com/trace/"+b.replace("http://sherlog/_",""));Ob.searchParams.set("action","expandsherlog");c=Ob}else{var ib=new URL(b);if(ib.pathname.includes("workflow")){var $b=ib.searchParams,rc,Ec=encodeURIComponent((rc=$b.get("dataid"))!=null?rc:""),Rb=new URL("https://nexus.corp.google.com/trace/"+Ec),Bc=B6a(ib);Rb.searchParams.set("account",
Bc.account);Rb.searchParams.set("account_type",Bc.accountType);var Rc;Rb.searchParams.set("version",(Rc=$b.get("version"))!=null?Rc:"");var Cd;Rb.searchParams.set("pipeline",(Cd=$b.get("config"))!=null?Cd:"");Rb.searchParams.set("trace_type","sherlog");c=Rb}else c=null}break;default:var Yc="";break a}a=a!=null?a:void 0;c==null?Yc="":(c.searchParams.set("origin_type","buganizer"),a&&(a.startsWith("b/")||(a="b/"+a),c.searchParams.set("origin_id",a)),Yc=c.toString());break a}catch(je){Yc="";break a}Yc=
void 0}Yc&&this.urls.push({label:"Open in Nexus",originalHref:Yc,href:Yc,icon:"nexus-logo"})}};KR.prototype.ngAfterViewInit=function(){var a=this;this.cdkConnectedOverlay.attach.pipe(zf(this.destroyed$)).subscribe(function(){var b=a.cdkConnectedOverlay.overlayRef.overlayElement;b&&(b=b.querySelector("a"))&&b.focus()})};KR.prototype.getNgContentParentEl=function(){return this.el.nativeElement};
var Rkd=function(a){if(a.urls.length>1)return!0;if(a.formattingMode==="PLAIN")return!1;var b=a.getNgContentParentEl(),c,d;if(d=sTa(b))a=a.originalHref,b=(c=b.textContent)!=null?c:"",d=b===a||a.startsWith("mailto:")&&a.substring(7)===b?!0:!1;return!d};KR.prototype.hide=function(){this.opened=!1};KR.prototype.openLink=function(a,b){tTa(a)||(a.preventDefault(),a.stopPropagation(),Er(this.domSafe,b))};KR.prototype.copyToClipboard=function(a){this.clipboard.copy(a);this.snackBar.open("URL copied","",{duration:2E3})};
var Skd=function(a){var b="externalLinkPopup";a.urls.find(function(c){return c.label==="Open in Nexus"})&&(b="externalLinkPopupNexus");a.analytics.trackEvent("issue","click",b)};KR.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(KR)))(b||KR)}}();
KR.\u0275cmp=D({type:KR,selectors:[["b-external-hyperlink-widget"]],viewQuery:function(a,b){a&1&&(hg(Qkd,7),hg(Vz,7));if(a&2){var c;lg(c=mg())&&(b.el=c.first);lg(c=mg())&&(b.cdkConnectedOverlay=c.first)}},inputs:{originalHref:"originalHref",href:"href"},standalone:!1,features:[Ef],ngContentSelectors:["*"],decls:7,vars:9,consts:[["trigger","cdkOverlayOrigin"],["el",""],["cdkOverlayOrigin","",1,"keep-focus-ring",3,"click","href","rel"],["cdkConnectedOverlay","","cdkConnectedOverlayPanelClass","tooltip-panel",
3,"detach","overlayOutsideClick","cdkConnectedOverlayPush","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayScrollStrategy"],["svgIcon","link",1,"icon-s"],["cdkTrapFocus","","cdkTrapFocusAutoCapture","",1,"b-bubble"],[1,"gmat-caption"],["role","img",1,"icon-s",3,"svgIcon"],["target","_blank",1,"keep-focus-ring",3,"click","href","rel"],["type","button","mat-button","","matTooltip","Copy to clipboard","aria-label","Copy URL to clipboard",1,"tiny",3,"click"],["svgIcon","copy"]],
template:function(a,b){if(a&1){var c=t();bg();K(0,"a",2,0);N("click",function(d){u(c);tTa(d)||(d.preventDefault(),d.stopPropagation(),Rkd(b)?(Skd(b),b.opened=!0):b.openLink(d,b.href));return v()});F(2,C6a,2,0,"b-glue");K(3,"span",null,1);cg(5);L()();E(6,H6a,1,1,"ng-template",3);N("detach",function(){u(c);return v(b.hide())})("overlayOutsideClick",function(){u(c);return v(b.hide())})}a&2&&(a=qg(1),wg("needs-contextual-popup",Rkd(b)),I("href",b.originalHref,Ne)("rel",b.EXTERNAL_LINK_REL),B(2),G(Rkd(b)?
2:-1),B(4),I("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.opened)("cdkConnectedOverlayScrollStrategy",b.scrollStrategy))},dependencies:[Wy,Jy,Vz,Uz,nR,kB,gB,vK,nA],styles:[".tooltip-panel{display:inline-block;margin:.1em}[_nghost-%COMP%] > a.needs-contextual-popup[_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%]{align-items:center;display:flex;max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.b-bubble[_ngcontent-%COMP%]   .gmat-caption[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin:0 2px}.b-bubble[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:4px;--mat-button-text-icon-spacing: 0}.b-bubble[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.final){margin-right:4px}"],
changeDetection:0});var Tkd=function(){this.session=p(uu);this.userPreferencesManager=p(hR)};Tkd.\u0275fac=function(a){return new (a||Tkd)};Tkd.\u0275prov=Dc({token:Tkd,factory:Tkd.\u0275fac,providedIn:"root"});var Ukd=new dd("IssueCard");var LR=function(){};LR.prototype.visit=function(){};LR.\u0275fac=function(a){return new (a||LR)};LR.\u0275prov=Dc({token:LR,factory:LR.\u0275fac,providedIn:"root"});var Vkd=["el"],Wkd=function(){this.viewContainerRef=p(eg)};Wkd.\u0275fac=function(a){return new (a||Wkd)};Wkd.\u0275dir=af({type:Wkd,selectors:[["","issueCardHost",""]],standalone:!1});var MR=function(){Z.apply(this,arguments);this.issueReferenceResolver=p(LR);this.issueCard=p(Ukd,{optional:!0});this.hovercardReady=new uf(1)};Y(MR,Z);MR.\u0275dir=Z.\u0275dir;MR.prototype.ngOnInit=function(){};
MR.prototype.ngAfterViewInit=function(){var a=this;this.issueCardHost.changes.pipe(zf(this.destroyed$)).subscribe(function(b){a.issueCard&&b.length!==0&&(b=a.issueCardHost.first.viewContainerRef.createComponent(a.issueCard),b.instance.issueId=a.issueId,b.instance.init.pipe(lf(1),zf(a.destroyed$)).subscribe(a.hovercardReady),b.changeDetectorRef.detectChanges())})};
MR.prototype.visit=function(a){if(!tTa(a))if(this.commentNumber)this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+this.commentNumber,event:a});else{var b=this.href.indexOf("#");if(b!==-1&&(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})}};MR.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(MR)))(b||MR)}}();
MR.\u0275cmp=D({type:MR,selectors:[["b-issue-reference-widget"]],viewQuery:function(a,b){a&1&&(hg(Vkd,7),hg(Wkd,5));if(a&2){var c;lg(c=mg())&&(b.el=c.first);lg(c=mg())&&(b.issueCardHost=c)}},inputs:{href:"href",issueId:"issueId",commentNumber:"commentNumber"},standalone:!1,features:[Ef],ngContentSelectors:["*"],decls:6,vars:3,consts:[["issueHovercard","onedevHovercard"],["el",""],[3,"onedevIsHovercardReady",4,"onedevHovercardLazyBody"],[1,"keep-focus-ring",3,"click","onedevHovercardTrigger","onedevHovercardActive",
"href"],[3,"onedevIsHovercardReady"],["issueCardHost",""]],template:function(a,b){if(a&1){var c=t();bg();K(0,"onedev-hovercard",null,0);E(2,I6a,2,1,"div",2);L();K(3,"a",3,1);N("click",function(d){u(c);return v(b.visit(d))});cg(5);L()}a&2&&(a=qg(1),B(3),I("onedevHovercardTrigger",a)("onedevHovercardActive",!!b.issueCard)("href",b.href,Ne))},dependencies:[KK,LK,SK,MK,Wkd],encapsulation:2,changeDetection:0});var Xkd=["NEW","CONFIRMED","IN_PROGRESS","FIXED","WONT_FIX"],NR={},Ykd=(NR.UNSPECIFIED=[],NR.NEW=["PENDING_TRIAGE","REPORTER_RESPONDED","NEEDS_INFO"],NR.CONFIRMED=["PENDING_OWNER"],NR.IN_PROGRESS=["EXPECTED","PLANNED","COMMITTED"],NR.FIXED=["REOPENED"],NR.WONT_FIX=["REOPENED"],NR),OR={},Zkd=(OR.TRIAGE_SUBPHASE_UNSPECIFIED="Unspecified",OR.NEEDS_INFO="Needs more info",OR.PENDING_TRIAGE="Pending triage",OR.PENDING_OWNER="Pending owner",OR.REPORTER_RESPONDED="Reporter responded",OR.EXPECTED="Expected",
OR.PLANNED="Planned",OR.COMMITTED="Committed",OR.REOPENED="Reopened",OR),PR={},$kd=(PR.TRIAGE_SUBPHASE_UNSPECIFIED="unspecified",PR.NEEDS_INFO="needs-info",PR.PENDING_TRIAGE="pending-triage",PR.PENDING_OWNER="pending-owner",PR.REPORTER_RESPONDED="reporter-responded",PR.EXPECTED="expected",PR.PLANNED="planned",PR.COMMITTED="committed",PR.REOPENED="reopened",PR),ald=KTa(LTa($kd)),QR={},Gt=(QR.UNSPECIFIED="unspecified",QR.NEW="new",QR.CONFIRMED="confirmed",QR.IN_PROGRESS="in-progress",QR.FIXED="fixed",
QR.WONT_FIX="wont-fix",QR),bld=KTa(LTa(Gt)),at=new Map([["NEW","New"],["CONFIRMED","Confirmed"],["IN_PROGRESS","In progress"],["FIXED","Fixed"],["WONT_FIX","Won't fix"]]),cld={},dld=(cld.NEW="status:new modified:7d",cld.CONFIRMED="status:assigned modified:7d",cld.IN_PROGRESS="status:accepted modified:30d",cld.FIXED="status:fixed|verified modified:30d",cld.WONT_FIX="status:infeasible|not_reproducible|obsolete|duplicate modified:30d",cld),eld=[{type:"PRIORITY"},{type:"TITLE"},{type:"ALERTS"},{type:"RELATIVE_MODIFIED_TIME"},
{type:"ISSUE_ID"}],RR={},fld=(RR.UNSPECIFIED=eld,RR.NEW=[{type:"TRIAGER"},{type:"PRIORITY"},{type:"TITLE"},{type:"ALERTS"},{type:"COMPONENT_PATH"},{type:"RELATIVE_MODIFIED_TIME"},{type:"ISSUE_ID"}],RR.CONFIRMED=eld,RR.IN_PROGRESS=eld,RR.FIXED=eld,RR.WONT_FIX=eld,RR);var gld=new Set([1049953,209989]);var hld=new aR,ild=hld.value$.pipe(kf(),jf(0,Dr));var jld=Wn().user.email,kld={key:"USER_RESPONDED",displayAs:"User responded",emoji:"\u21a9\ufe0f",tooltip:"Reporter responded with more info",check:function(a){return Hr(a)==="REPORTER_RESPONDED"},chipColor:"blue",showCount:!0},lld={key:"OUT_OF_SLO",displayAs:"Out of SLO",emoji:"\u2757\ufe0f",tooltip:"Out of SLO",check:function(a){return GTa(a.snapshot[0].sloEndTime)&&(!a.snapshot[0].sloStartTime||GTa(a.snapshot[0].sloStartTime))},chipColor:"red",showCount:!0},mld={key:"INACTIVE_1Y",displayAs:"\ud83d\udc0c Inactive",
emoji:"\ud83d\udc0c",check:function(a){return Date.now()-a.aggregatedData.modifiedTimeMicros/1E3>315576E5},tooltip:"Issues that have not been modified in 1 year",showCount:!0},nld={key:"PAST_DEADLINE",displayAs:"Past deadline",emoji:"\u231b\ufe0f",check:function(a){var b,c;a=bo((b=a.snapshot[0].customField)==null?void 0:(c=b.find(function(d){return gld.has(d.customFieldId)}))==null?void 0:c.dateValue);return!!a&&a<new Date},tooltip:"End date custom field is in the past.",chipColor:"red",showCount:!0},
old={key:"REOPENED",displayAs:"Reopened",emoji:"\u26a0\ufe0f",check:function(a){var b,c;return jo(a)&&(((b=a.experimentalFields)==null?void 0:b.triage.phase)==="FIXED"||((c=a.experimentalFields)==null?void 0:c.triage.phase)==="WONT_FIX")},tooltip:"Issues that were triaged as closed by the team, but someone else reopened.",chipColor:"blue",showCount:!0},pld={key:"MY_ISSUES",displayAs:"My issues",emoji:"\ud83c\udf1f",check:function(a){var b;return jo(a)&&(((b=a.experimentalFields)==null?void 0:b.triage.triagerEmail)===
jld||UTa(a)===jld)},tooltip:"Issues for which you are triager, or assigned to you.",showCount:!0},qld={key:"TRENDING",displayAs:"Trending",emoji:"\ud83d\udd25",check:function(a){return!!hld.has(a.issueId)},queryFragment:'(no server query available for "is trending")',tooltip:"Unusually high view activity",chipColor:"purple",showCount:!0},rld={key:"LAST_30_DAYS",displayAs:"Last 30 days",emoji:"\ud83c\udf31",check:function(a){return Date.now()-a.aggregatedData.modifiedTimeMicros/1E3<=2592E6},queryFragment:"modified:30d",
tooltip:"Issues modified in the last 30 days"},sld={key:"NEEDS_ATTENTION",displayAs:"Needs attention",emoji:"",check:function(a){var b,c;return(c=(b=IHb.get("NEW"))==null?void 0:b.some(function(d){return K6a(a,d)}))!=null?c:!1},tooltip:"Issues which are actionable and important.",showCount:!0},tld={key:"HIGH_PRIORITY",displayAs:"High priority",emoji:"",check:function(a){return a.snapshot[0].priority==="P0"||a.snapshot[0].priority==="P1"},tooltip:"Issues which user marked as p0/p1.",chipColor:"orange",
showCount:!0},uld={key:"NOT_ASSIGNED",displayAs:"Not assigned",emoji:"",check:function(a){return UTa(a)==null},tooltip:"Issues which have empty assignee.",chipColor:"green",showCount:!0},vld=new Map([["NEW",[sld,pld,rld]],["CONFIRMED",[qld,mld,rld]],["IN_PROGRESS",[lld,nld,rld]],["FIXED",[rld]],["WONT_FIX",[rld]]]),IHb=new Map([["NEW",[tld,lld,kld]],["CONFIRMED",[qld,lld,mld,tld]],["IN_PROGRESS",[lld,nld,uld]],["FIXED",[old]],["WONT_FIX",[old]]]),wld={INACTIVE_1Y:mld,INACTIVE_2W:{key:"INACTIVE_2W",
displayAs:"Inactive",emoji:"\ud83d\udc0c",check:function(a){return Date.now()-a.aggregatedData.modifiedTimeMicros/1E3>12096E5},tooltip:"Not modified in 2 weeks",showCount:!0},LAST_30_DAYS:rld,MY_ISSUES:pld,NEEDS_ATTENTION:sld,NEEDS_MORE_INFO:{key:"NEEDS_MORE_INFO",displayAs:"Needs more info",emoji:"\u2139\ufe0f",check:function(a){return Hr(a)==="NEEDS_INFO"},tooltip:"Waiting for more information from the reporter.",chipColor:"green",showCount:!0},OUT_OF_SLO:lld,PAST_DEADLINE:nld,REOPENED:old,TRENDING:qld,
USER_RESPONDED:kld,HIGH_PRIORITY:tld,NOT_ASSIGNED:uld};var SR=function(){Z.apply(this,arguments);this.teamsService=p(OQ);this.activeSession=p(uu);this.teamMembers=new Map;this.teamChildren=new Map};Y(SR,Z);SR.\u0275dir=Z.\u0275dir;
var zld=function(a,b,c){return a.activeSession.getFlag("enableTeamScope")&&a.activeSession.isInternalSession()&&b&&c&&Zn(c)?xld(a,b).pipe(yf(function(d){return d.has(c)?ce(!0):yld(a,b).pipe(yf(function(e){return e.length===0?ce(!1):oe(e.map(function(f){return zld(a,f,c)})).pipe(A(function(f){return f.some(Boolean)}))}))})):ce(!1)},yld=function(a,b){if(a.teamChildren.has(b))return a.teamChildren.get(b);var c=new uf(1);a.subscriptions.add(a.teamsService.getChildTeams([b]).pipe(A(function(d){var e,f;
return(f=(e=d.get(b))==null?void 0:e.map(function(g){return g.id}))!=null?f:[]})).subscribe(c));a.teamChildren.set(b,c);return c},xld=function(a,b){if(a.teamMembers.has(b))return a.teamMembers.get(b);var c=new uf(1);a.subscriptions.add(a.teamsService.getTeam(b).pipe(A(function(d){var e;return(e=d==null?void 0:d.members)!=null?e:[]}),A(function(d){return d.map(function(e){return wm(e==null?void 0:e.user)}).filter(Pm)}),A(function(d){return new Set(d)})).subscribe(c));a.teamMembers.set(b,c);return c};
SR.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(SR)))(b||SR)}}();SR.\u0275prov=Dc({token:SR,factory:SR.\u0275fac,providedIn:"root"});var TR=function(){this.issueFridge=p(XP);this.issueExperimentalFieldsFridge=p(UP);this.activeSession=p(uu);this.teamMembershipService=p(SR)},Eld=function(a,b,c){var d,e,f,g,k,l;y(function(r){switch(r.nextAddress){case 1:return z(r,a.issueFridge.poke(b),2);case 2:d=r.yieldResult;if(!d)return r.return();Wd(r,3);e=c.some(function(w){return["comment","attachments"].includes(w.fieldName)});if(!e){r.jumpTo(5);break}return z(r,Ald(a,d),5);case 5:if(a.activeSession.getFlag("enableTriageAutomationBe"))return r.return();
f=c.some(function(w){return w.fieldName==="assignee"});if(!f){r.jumpTo(7);break}return z(r,Bld(a,d),7);case 7:g=c.some(function(w){return w.fieldName==="status"});if(!g){r.jumpTo(9);break}return z(r,Cld(a,d),9);case 9:k=c.some(function(w){return w.fieldName==="changelists"||w.fieldName==="gerritChanges"});if(!k){r.jumpTo(11);break}return z(r,Dld(a,d),11);case 11:dt(r,0);break;case 3:l=$d(r),console.error(l),ae(r)}})},Ald=function(a,b){return y(function(c){return Gr(b)!=="NEW"||Hr(b)!=="NEEDS_INFO"||
a.activeSession.getUserEmail()!==wm(b.snapshot[0].reporterUser)?c.jumpTo(0):z(c,a.issueExperimentalFieldsFridge.updateOrInsert(b.issueId,function(d){d.triage.subphase="REPORTER_RESPONDED"}),0)})},Bld=function(a,b){var c,d;return y(function(e){switch(e.nextAddress){case 1:if(Gr(b)!=="NEW"||!b.snapshot[0].assigneeUser||a.activeSession.getUserEmail()===wm(b.snapshot[0].assigneeUser)||wm(b.snapshot[0].assigneeUser)!==wm(b.snapshot[0].reporterUser)){e.jumpTo(2);break}return z(e,a.issueExperimentalFieldsFridge.updateOrInsert(b.issueId,
function(f){f.triage.subphase="NEEDS_INFO"}),2);case 2:if(Gr(b)!=="NEW"||Hr(b)!=="PENDING_TRIAGE"||wm(b.snapshot[0].assigneeUser)===wm(b.snapshot[0].reporterUser)||a.activeSession.getUserEmail()===wm(b.snapshot[0].assigneeUser)||(c=b.aggregatedData)==null||!c.teamId){e.jumpTo(4);break}return z(e,fe(zld(a.teamMembershipService,String(b.aggregatedData.teamId),a.activeSession.getUserEmail())),5);case 5:d=e.yieldResult;if(!d){e.jumpTo(4);break}return z(e,a.issueExperimentalFieldsFridge.updateOrInsert(b.issueId,
function(f){f.triage.phase="CONFIRMED";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),4);case 4:if(Gr(b)!=="NEW"||a.activeSession.getUserEmail()!==wm(b.snapshot[0].assigneeUser))e.jumpTo(0);else return z(e,a.issueExperimentalFieldsFridge.updateOrInsert(b.issueId,function(f){f.triage.triagerEmail=a.activeSession.getUserEmail()}),0)}})},Cld=function(a,b){return y(function(c){return c.nextAddress==1?b.snapshot[0].status!=="ACCEPTED"?c.jumpTo(2):z(c,a.issueExperimentalFieldsFridge.updateOrInsert(b.issueId,
function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):b.snapshot[0].status!=="NOT_REPRODUCIBLE"&&b.snapshot[0].status!=="INTENDED_BEHAVIOR"&&b.snapshot[0].status!=="OBSOLETE"&&b.snapshot[0].status!=="INFEASIBLE"?c.jumpTo(0):z(c,a.issueExperimentalFieldsFridge.updateOrInsert(b.issueId,function(d){d.triage.phase="WONT_FIX";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),0)})},Dld=function(a,b){return y(function(c){return Gr(b)!=="NEW"&&Gr(b)!=="CONFIRMED"?c.jumpTo(0):
z(c,a.issueExperimentalFieldsFridge.updateOrInsert(b.issueId,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),0)})};TR.\u0275fac=function(a){return new (a||TR)};TR.\u0275prov=Dc({token:TR,factory:TR.\u0275fac,providedIn:"root"});var UR=function(){Z.apply(this,arguments);var a=this;this.issueFridge=p(XP);this.teamFridge=p(TQ);this.recentIssues$=ne(function(){return a.issueFridge.watchMany({filter:"modified:60d (modifier:me | assignee:me)",pageSize:500})});this.recentTeamIds$=this.recentIssues$.pipe(A(function(b){return b.results}),A(function(b){return b.map(function(c){var d;return(d=c.aggregatedData)==null?void 0:d.teamId}).filter(Pm).filter(Boolean).map(String)}));this.mostActiveTeamIds$=this.recentTeamIds$.pipe(A(function(b){return ZZa(b,
function(c){return c})}),A(function(b){return b.filter(function(c){return c.length>=2})}),A(function(b){return b.sort(function(c,d){return d.length-c.length})}),A(function(b){return b.map(function(c){return c[0]})}));this.mostActiveTeams$=this.mostActiveTeamIds$.pipe(yf(function(b){return a.teamFridge.watchSet(b).pipe(A(function(c){var d=eo(c,function(e){return e.teamId});return b.map(function(e){return{teamId:e,team:d.get(e)}})}))}),vf({refCount:!0,bufferSize:1}))};Y(UR,Z);UR.\u0275dir=Z.\u0275dir;
UR.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(UR)))(b||UR)}}();UR.\u0275prov=Dc({token:UR,factory:UR.\u0275fac,providedIn:"root"});var VR=function(){var a=this;this.teamFridge=p(TQ);this.userPrefsManager=p(hR);this.teamUserActivity=p(UR);this.activeSession=p(uu);this.destroyRef=p(Ce);this.enableTeamScope=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();this.scopePrefs$=this.userPrefsManager.preferences$.pipe(A(function(b){var c;return(c=b==null?void 0:b.scopePreferences)!=null?c:{starredTeams:[],starredTriageViews:[]}}));this.starredTeamIds$=this.scopePrefs$.pipe(A(function(b){return b.starredTeams}));
this.starredTeamIds$.pipe(A(function(b){return b.map(function(c){var d=a.teamFridge.watch(c);return{teamId:c,name$:d.pipe(A(function(e){return(e==null?void 0:e.name)||c})),team$:d}})}));this.starredTriageViews$=this.scopePrefs$.pipe(A(function(b){return b.starredTriageViews}));this.starredTriageViews$.pipe(A(function(b){return b.map(function(c){return c})}));this.starredTeamIds=[];this.starredTriageViews=[];Fld(this);this.starredTeamIds$.pipe(Tj(this.destroyRef)).subscribe(function(b){a.starredTeamIds=
b});this.starredTriageViews$.pipe(Tj(this.destroyRef)).subscribe(function(b){a.starredTriageViews=b})},Fld=function(a){var b,c,d,e;y(function(f){switch(f.nextAddress){case 1:return a.enableTeamScope?z(f,fe(a.scopePrefs$),2):f.return();case 2:b=f.yieldResult;if(b.lastAutomaticStarsUpdate)return f.return();if(!b.starredTeams.length){f.jumpTo(3);break}return z(f,a.save({lastAutomaticStarsUpdate:JRa(Date.now())}),4);case 4:return f.return();case 3:return z(f,fe(a.teamUserActivity.mostActiveTeams$),5);
case 5:return c=f.yieldResult,d=c.slice(0,3).map(function(g){return g.teamId}),e=d.map(function(g){return{teamId:g,triageId:"0"}}),z(f,a.save({lastAutomaticStarsUpdate:JRa(Date.now()),starredTeams:d,starredTriageViews:e}),0)}})};VR.prototype.save=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return z(d,fe(b.scopePrefs$),2);c=d.yieldResult;return z(d,fe(b.userPrefsManager.save({scopePreferences:Object.assign({},c,a)})),0)})};
VR.prototype.toggle=function(a){return this.starredTeamIds.includes(a)?this.save({starredTeams:this.starredTeamIds.filter(function(b){return b!==a})}):this.save({starredTeams:[].concat(q(this.starredTeamIds),[a])})};VR.prototype.reset=function(){var a=this;return y(function(b){return z(b,a.save({lastAutomaticStarsUpdate:void 0,starredTeams:[]}),0)})};
var Gld=function(a,b,c){if(a.starredTriageViews.some(function(e){return e.triageId===b&&e.teamId===c})){var d=[].concat(q(a.starredTriageViews)).filter(function(e){return e.triageId!==b||e.teamId!==c});return a.save({starredTriageViews:d})}return a.save({starredTriageViews:[].concat(q(a.starredTriageViews),[{teamId:c,triageId:b}])})};VR.\u0275fac=function(a){return new (a||VR)};VR.\u0275prov=Dc({token:VR,factory:VR.\u0275fac,providedIn:"root"});var Hld={CHANGE_COMPONENT:"CHANGE_COMPONENT",SET_WONT_FIX:"SET_WONT_FIX",MARK_AS_DUPLICATE:"MARK_AS_DUPLICATE",SET_CONFIRMED:"SET_CONFIRMED",SET_FIXED:"SET_FIXED",SET_IN_PROGRESS:"SET_IN_PROGRESS",SET_NEEDS_INFO:"SET_NEEDS_INFO",SET_NEW:"SET_NEW",SET_PENDING_OWNER:"SET_PENDING_OWNER",SET_EXPECTED:"SET_EXPECTED",SET_PLANNED:"SET_PLANNED",SET_COMMITTED:"SET_COMMITTED"},Ild={key:"SET_NEEDS_INFO",displayAs:"Needs more info",fieldsToShow:["ASSIGNEE","CUSTOM_FIELDS","COMMENT"]},Jld={key:"SET_CONFIRMED",
displayAs:"Confirmed",fieldsToShow:"COMMENT SEVERITY PRIORITY TYPE HOTLISTS ASSIGNEE COLLABORATORS CC_LIST CUSTOM_FIELDS".split(" ")},Kld={key:"SET_PENDING_OWNER",displayAs:"Pending owner",fieldsToShow:["COMMENT"]},Lld={key:"SET_IN_PROGRESS",displayAs:"In progress",fieldsToShow:["COMMENT","SEVERITY","PRIORITY","TYPE","ASSIGNEE"],showAssignToSelf:!0},Mld={key:"SET_EXPECTED",displayAs:"Expected",fieldsToShow:["COMMENT"],showAssignToSelf:!0},Nld={key:"SET_PLANNED",displayAs:"Planned",fieldsToShow:["COMMENT"],
showAssignToSelf:!0},Old={key:"SET_COMMITTED",displayAs:"Committed",fieldsToShow:["COMMENT"],showAssignToSelf:!0},Pld={key:"SET_WONT_FIX",displayAs:"Won't fix",fieldsToShow:["STATUS","COMMENT"],automaticChanges:[{field:"STATUS",value:"INTENDED_BEHAVIOR"}]},Qld={key:"SET_NEW",displayAs:"New",fieldsToShow:["CUSTOM_FIELDS","STATUS","COMMENT"],automaticChanges:[{field:"STATUS",value:"NEW"}]},Rld={key:"SET_FIXED",displayAs:"Fixed",fieldsToShow:["COMMENT","STATUS","CODE_CHANGES"],automaticChanges:[{field:"STATUS",
value:"FIXED"}]},Sld={key:"CHANGE_COMPONENT",displayAs:"Route",fieldsToShow:["COMMENT","COMPONENT","HOTLISTS","ASSIGNEE"]},Tld=new Map([["NEW",[Sld,{key:"MARK_AS_DUPLICATE",displayAs:"Mark as duplicate"}]],["CONFIRMED",[]],["IN_PROGRESS",[]],["FIXED",[]],["WONT_FIX",[]]]);var WR={displayAs:"Open",queryAtom:"status:open",tooltip:'Issues that match "status:open"'};var Vld=function(a,b,c,d,e,f){var g=this;this.teamId=a;this.triageId=b;this.teamFridge=c;this.issueFullFridge=d;this.issueFridge=e;this.teamExperimentalFieldsFridge=f;this.isLoading$=new Mj(!1);this.setLoading=function(){g.isLoading$.next(!0)};this.setNotLoading=function(){g.isLoading$.next(!1)};this.team$=ne(function(){return ce(g.teamId)}).pipe(Af(this.setLoading),yf(function(k){return g.teamFridge.watch(k)}),Af(this.setNotLoading),vf({refCount:!0,bufferSize:1}));this.teamName$=this.team$.pipe(A(function(k){return(k==
null?void 0:k.name)||g.teamId}));this.teamExperiments$=ne(function(){return ce(g.teamId)}).pipe(Af(this.setLoading),yf(function(k){return g.teamExperimentalFieldsFridge.watch(k)}),Af(this.setNotLoading),vf({refCount:!0,bufferSize:1}));this.triageScope$=this.teamExperiments$.pipe(A(function(k){var l,r;return(k==null?void 0:(l=k.triage.find(function(w){return w.id===Number(g.triageId)}))==null?void 0:(r=l.scope)==null?void 0:r.trim())||"teamid:"+g.teamId+"+"}),vf({refCount:!0,bufferSize:1}));this.teamTriageViewExperiments$=
this.teamExperiments$.pipe(A(function(k){return k==null?void 0:k.triage.find(function(l){return""+l.id===g.triageId})}));this.triageFieldConfigs$=this.teamTriageViewExperiments$.pipe(A(function(k){var l;return(l=k==null?void 0:k.config)!=null?l:[]}));this.byPhase=new Map(Xkd.map(function(k){return[k,Uld(g,k)]}));this.allIssues$=ie([].concat(q(this.byPhase.values())).map(function(k){return k.issues$})).pipe(A(function(k){return k.flat()}),A(function(k){return sq(k,function(l){return l.issueId})}),
vf({refCount:!0,bufferSize:1}));this.triageName$=ie([this.teamName$,this.teamExperiments$]).pipe(A(function(k){var l=m(k);k=l.next().value;l=l.next().value;l=l==null?void 0:l.triage.find(function(r){return r.id===Number(g.triageId)});return Ir(k,l)}))};Vld.prototype.phase=function(a){return this.byPhase.get(a)};
var Uld=function(a,b){var c=a.triageScope$.pipe(A(function(l){l=Kr(l,"modified:365d");l=Kr(l,"-status:duplicate");switch(b){case "NEW":case "CONFIRMED":case "IN_PROGRESS":l=Kr(l,"status:open")}return[l,b].join("____b-internal____")}),nf()),d=c.pipe(A(Q6a),Af(a.setLoading),yf(function(l){return a.issueFridge.watchMany(l)}),Af(a.setNotLoading),vf({refCount:!0,bufferSize:1})),e=d.pipe(A(function(l){return l.results}),A(function(l){return l.map(function(r){return r.issueId})}),nf(mm)).pipe(yf(function(l){return l.length?
ie(l.map(function(r){return a.issueFridge.watch(r)})):ce([])}));d=d.pipe(A(function(l){var r;return(r=l.totalSize)!=null?r:0}));e=e.pipe(A(function(l){return R6a(l,b)}),vf({refCount:!0,bufferSize:1}));var f=e.pipe(A(function(l){return J6a(l).length})),g=ie([e,f,ild]).pipe(A(function(l){var r=m(l);l=r.next().value;r=r.next().value;return L6a(l,IHb.get(b)).length+r}),A(function(l){return l===0?"":l>=250?"250+":""+l}));d=ie([d,f]).pipe(A(function(l){var r=m(l);l=r.next().value;r=r.next().value;return l+
r}));var k;return{phase:b,displayName:(k=at.get(b))!=null?k:"",query$:c,issues$:e,attentionCount$:g,totalCount$:d}};
Vld.prototype.reload=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.setLoading(),z(c,Promise.all(tq([].concat(q(a.byPhase.values())).map(function(d){return Br(d.query$)})).map(function(d){return Jdd(a.issueFridge,Q6a(d))})),2);if(c.nextAddress!=3)return b=c.yieldResult,z(c,Promise.all(tq(b.flatMap(function(d){return d.results}).map(function(d){return d.issueId})).map(function(d){return a.issueFullFridge.poke(d)})),3);a.setNotLoading();ae(c)})};
var Wld=function(a,b,c){return a.triageFieldConfigs$.pipe(A(function(d){d=d||[];var e=[];d=m(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value,f.type==="CUSTOM_FIELD"){f=f.customFieldConfig;var g=f.defaultValues.find(function(k){var l;if(b&&((l=k.phases)==null||!l.includes(b)))return!1;var r;return!c||(r=k.subphases)!=null&&r.includes(c)?!0:!1});g&&e.push({customFieldId:f.customFieldId,defaultValues:[g]})}return e}))},Xld=function(a,b,c){return a.triageFieldConfigs$.pipe(A(function(d){var e=[];
d=m(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value,f.type==="HOTLIST"){f=f.hotlistConfig;var g=void 0;if(!b||(g=f.phases)!=null&&g.includes(b))g=void 0,(!c||(g=f.subphases)!=null&&g.includes(c))&&e.push(f)}return e}))},YR=function(){this.teamFridge=p(TQ);this.issueFullFridge=p(gQ);this.issueFridge=p(XP);this.teamExperimentalFieldsFridge=p(SQ);this.cache=new Map};YR.prototype.get=function(a,b){var c=a+":"+b,d;this.cache.set(c,(d=this.cache.get(c))!=null?d:this.create(a,b));return this.cache.get(c)};
YR.prototype.create=function(a,b){return new Vld(a,b,this.teamFridge,this.issueFullFridge,this.issueFridge,this.teamExperimentalFieldsFridge)};YR.\u0275fac=function(a){return new (a||YR)};YR.\u0275prov=Dc({token:YR,factory:YR.\u0275fac,providedIn:"root"});var ZR=function(){this.triageDataFactory=p(YR);this.isSidebarOpen$=new Mj(!1);this.internalCurrentIssueIds$=new Mj([]);this.currentIssueIds$=this.internalCurrentIssueIds$.pipe(nf(mm));this.currentIssueId$=this.currentIssueIds$.pipe(A(function(a){return a[0]}),nf());this.internalSelectedIssueIds$=new Mj([]);this.selectedIssueIds$=this.internalSelectedIssueIds$.pipe(nf(mm));this.mode=0};ZR.prototype.openSidebar=function(){this.isSidebarOpen$.next(!0)};ZR.prototype.closeSidebar=function(){this.isSidebarOpen$.next(!1)};
ZR.prototype.setIssueIds=function(a){this.internalCurrentIssueIds$.next(a);this.internalSelectedIssueIds$.next([])};ZR.prototype.setMode=function(a){this.mode=a};ZR.\u0275fac=function(a){return new (a||ZR)};ZR.\u0275prov=Dc({token:ZR,factory:ZR.\u0275fac,providedIn:"root"});var Yld={ACTIVATION:0,SELECTION:1,0:"ACTIVATION",1:"SELECTION"};var Zld=function(){this.issueId="";this.customFieldMap={};this.currentUserEmail="";this.type=this.componentId=this.user=this.originalIssue=null;this.status="NEW";this.severity=this.priority=null;this.title="";this.verifierUser=this.verifier=this.assigneeUser=this.assignee=this.reporterUser=this.reporter=null;this.cc=[];this.ccUsers=[];this.collaborators=[];this.collaboratorsUsers=[];this.hotlistId=this.verifiedInVersion=this.targetedToVersion=this.foundInVersion=this.postmortems=this.gerritChanges=
this.changelist=this.blockingIssueId=this.blockedByIssueId=this.duplicateOfIssueId=this.staffing=null;this.customField=[];this.duplicateIssueId=this.deletionReason=this.isDeleted=null;this.isArchived=this.inProd=!1;this.effortEstimate=this.sloSnoozeType=this.sloEndTime=this.sloStartTime=null};
Zld.prototype.setData=function(a){a=$ld(a);this.originalIssue=nm(a);var b=nm(this.originalIssue.snapshot[0]);this.issueId=a.issueId;this.assignee=tm(b.assigneeUser);this.assigneeUser=b.assigneeUser;this.blockedByIssueId=b.blockedByIssueId;this.blockingIssueId=b.blockingIssueId;this.ccUsers=vm(b.ccUsers);this.cc=this.ccUsers.map(tm);this.collaboratorsUsers=vm(b.collaboratorsUsers);this.collaborators=this.collaboratorsUsers.map(tm);this.staffing=b.staffing;this.changelist=b.changelist;this.gerritChanges=
b.gerritChanges;this.componentId=b.componentId;this.deletionReason=b.deletionReason;this.duplicateIssueId=b.duplicateIssueId;this.duplicateOfIssueId=b.duplicateOfIssueId;this.foundInVersion=b.foundInVersion;this.hotlistId=b.hotlistId;this.inProd=b.inProd;this.isArchived=b.isArchived;this.isDeleted=b.isDeleted;this.postmortems=b.postmortems;this.priority=b.priority;this.reporter=tm(b.reporterUser);this.reporterUser=b.reporterUser;this.severity=b.severity;this.status=b.status||"NEW";this.targetedToVersion=
b.targetedToVersion;this.title=b.title;this.type=b.type;this.verifiedInVersion=b.verifiedInVersion;this.verifier=tm(b.verifierUser);this.verifierUser=b.verifierUser;this.sloStartTime=b.sloStartTime;this.sloEndTime=b.sloEndTime;this.sloSnoozeType=b.sloSnoozeType;var c,d;this.effortEstimate=(d=(c=b.effort)==null?void 0:c.estimate)!=null?d:null;this.escalationOwner=a.escalationOwner;this.customField=[];b&&(this.customField=(b.customField||[]).filter(function(e){return e}).map(function(e){return new amd(e)}));
c=m(a.customFields);a=c.next();for(d={};!a.done;d={fieldResource:void 0},a=c.next())d.fieldResource=a.value,a=d.fieldResource.allowedValue?d.fieldResource.allowedValue.map(function(e){return{value:e,displayText:e}}):null,(b=this.customField.find(function(e){return function(f){return f.customFieldId===e.fieldResource.customFieldId}}(d)))?(b.type=d.fieldResource.type,b.customFieldName=d.fieldResource.name,b.choices=a,this.customFieldMap[String(d.fieldResource.customFieldId)]=b):(b=new amd({customFieldId:d.fieldResource.customFieldId}),
b.type=d.fieldResource.type,b.customFieldName=d.fieldResource.name,b.choices=a,this.customFieldMap[String(d.fieldResource.customFieldId)]=b)};
var $ld=function(a){a=nm(a);var b=a.snapshot[0];b.status=b.status||"NEW";b.blockingIssueId=b.blockingIssueId||[];b.componentId=b.componentId;b.changelist=b.changelist||[];b.gerritChanges=b.gerritChanges||[];b.postmortems=b.postmortems||[];b.blockedByIssueId=b.blockedByIssueId||[];b.foundInVersion=b.foundInVersion||[];b.hotlistId=b.hotlistId||[];b.targetedToVersion=b.targetedToVersion||[];b.verifiedInVersion=b.verifiedInVersion||[];b.customField=b.customField||[];b.deletionReason=b.deletionReason||
null;b.duplicateOfIssueId=b.duplicateOfIssueId||null;b.isDeleted=b.isDeleted||!1;return a},bmd=function(a,b){switch(b.fieldName){case "assignee":a.setAssignee(b.value||"");break;case "attachments":break;case "blockedByIssueId":if(b.actionType==="REMOVE"){var c,d,e=new Set((d=(c=b.value)==null?void 0:c.split(","))!=null?d:[]),f,g;a.blockedByIssueId=(g=(f=a.blockedByIssueId)==null?void 0:f.filter(function(dh){return!e.has(dh)}))!=null?g:[]}else{var k,l,r=(l=(k=b.value)==null?void 0:k.split(","))!=null?
l:[],w;a.blockedByIssueId=tq([].concat(q((w=a.blockedByIssueId)!=null?w:[]),q(r)))}break;case "blockingIssueId":if(b.actionType==="REMOVE"){var x,C,H=new Set((C=(x=b.value)==null?void 0:x.split(","))!=null?C:[]),J,O;a.blockingIssueId=(O=(J=a.blockingIssueId)==null?void 0:J.filter(function(dh){return!H.has(dh)}))!=null?O:[]}else{var R,V,ca=(V=(R=b.value)==null?void 0:R.split(","))!=null?V:[],na;a.blockingIssueId=tq([].concat(q((na=a.blockingIssueId)!=null?na:[]),q(ca)))}break;case "ccs":if(b.actionType===
"REMOVE"){var ua,ia,Ga=new Set((ia=(ua=b.value)==null?void 0:ua.split(","))!=null?ia:[]),ha,sa;a.cc=(sa=(ha=a.cc)==null?void 0:ha.filter(function(dh){return!Ga.has(dh)}))!=null?sa:[]}else{var xa,Qa,bb=(Qa=(xa=b.value)==null?void 0:xa.split(","))!=null?Qa:[],ub;a.cc=tq([].concat(q((ub=a.cc)!=null?ub:[]),q(bb)))}break;case "changelists":if(b.actionType==="REMOVE"){var Wb,lc,fc=new Set((lc=(Wb=b.value)==null?void 0:Wb.split(","))!=null?lc:[]),pc,rb;a.changelist=(rb=(pc=a.changelist)==null?void 0:pc.filter(function(dh){return!fc.has(dh)}))!=
null?rb:[]}else{var Ob,ib,$b=(ib=(Ob=b.value)==null?void 0:Ob.split(","))!=null?ib:[],rc;a.changelist=tq([].concat(q((rc=a.changelist)!=null?rc:[]),q($b)))}break;case "collaborators":if(b.actionType==="REMOVE"){var Ec,Rb,Bc=new Set((Rb=(Ec=b.value)==null?void 0:Ec.split(","))!=null?Rb:[]),Rc,Cd;a.collaborators=(Cd=(Rc=a.collaborators)==null?void 0:Rc.filter(function(dh){return!Bc.has(dh)}))!=null?Cd:[]}else{var Yc,je,bf=(je=(Yc=b.value)==null?void 0:Yc.split(","))!=null?je:[],Ue;a.collaborators=tq([].concat(q((Ue=
a.collaborators)!=null?Ue:[]),q(bf)))}break;case "comment":break;case "componentId":a.componentId=b.value||null;break;case "customField":var fg=b.customFieldValue,Nw,cp,Dj,Rm,Hq=fg.textValue||fg.dateValue||fg.enumValue||fg.numericValue||((Nw=fg.repeatedTextValue)==null?void 0:Nw.values)||((cp=fg.repeatedDateValue)==null?void 0:cp.values)||((Dj=fg.repeatedEnumValue)==null?void 0:Dj.values)||((Rm=fg.repeatedNumericValue)==null?void 0:Rm.values)||null;a.setCustomField(fg.customFieldId,Hq);break;case "deletionReason":b.actionType===
"REMOVE"?a.deletionReason=null:a.deletionReason=b.value;break;case "duplicateOfIssueId":a.duplicateOfIssueId=b.value||null;break;case "effortEstimate":a.effortEstimate=b.value||null;break;case "foundInVersion":if(b.actionType==="REMOVE"){var Ow,fk,Sm=new Set((fk=(Ow=b.value)==null?void 0:Ow.split(","))!=null?fk:[]),dp,Pw;a.foundInVersion=(Pw=(dp=a.foundInVersion)==null?void 0:dp.filter(function(dh){return!Sm.has(dh)}))!=null?Pw:[]}else{var bF,Dl,cF=(Dl=(bF=b.value)==null?void 0:bF.split(","))!=null?
Dl:[],kX;a.foundInVersion=tq([].concat(q((kX=a.foundInVersion)!=null?kX:[]),q(cF)))}break;case "gerritChanges":if(b.actionType==="REMOVE"){var m9,n9,yqa=new Set((n9=(m9=b.value)==null?void 0:m9.split(","))!=null?n9:[]),lX;a.gerritChanges=((lX=a.gerritChanges)!=null?lX:[]).map(function(dh){return Vq(dh)}).filter(function(dh){return!yqa.has(dh)}).map(Wq).filter(Pm)}else{var cy,dy,mX=(dy=(cy=b.value)==null?void 0:cy.split(","))!=null?dy:[],gO,o9=((gO=a.gerritChanges)!=null?gO:[]).map(function(dh){return Vq(dh)});
a.gerritChanges=tq([].concat(q(o9),q(mX))).map(Wq).filter(Pm)}break;case "hotlists":if(b.actionType==="REMOVE"){var p9,hO,DH=new Set((hO=(p9=b.value)==null?void 0:p9.split(",").map(Number))!=null?hO:[]),EH,nX;a.hotlistId=(nX=(EH=a.hotlistId)==null?void 0:EH.filter(function(dh){return!DH.has(dh)}))!=null?nX:[]}else{var oX,ZB,wr=(ZB=(oX=b.value)==null?void 0:oX.split(",").map(Number))!=null?ZB:[],Vj;a.hotlistId=tq([].concat(q((Vj=a.hotlistId)!=null?Vj:[]),q(wr)))}break;case "inProd":a.inProd=b.value===
"true";break;case "isArchived":a.isArchived=b.value==="true";break;case "isDeleted":a.isDeleted=b.value==="true";break;case "parentId":break;case "priority":a.priority=b.value;break;case "readState":break;case "reporter":a.reporter=b.value||"";break;case "severity":a.severity=b.value;break;case "sloEndTime":var jl=b.value?Lm(b.value):null;jl?a.sloEndTime={seconds:jl,nanos:0}:a.sloEndTime=null;break;case "sloSnoozeType":b.value?a.sloSnoozeType=b.value:a.sloSnoozeType=null;break;case "sloStartTime":if(b.actionType===
"REMOVE")a.sloStartTime=null;else{var $B=Lm(b.value);$B?a.sloStartTime={seconds:$B,nanos:0}:a.sloStartTime=null}break;case "staffing":var Ys;a.staffing=(Ys=b.staffingValue)!=null?Ys:null;break;case "status":a.setStatus(b.value);break;case "targetedToVersion":if(b.actionType==="REMOVE"){var xr,jO,pX=new Set((jO=(xr=b.value)==null?void 0:xr.split(","))!=null?jO:[]),Ev,FH;a.targetedToVersion=(FH=(Ev=a.targetedToVersion)==null?void 0:Ev.filter(function(dh){return!pX.has(dh)}))!=null?FH:[]}else{var kO,
Fv,qX=(Fv=(kO=b.value)==null?void 0:kO.split(","))!=null?Fv:[],Go;a.targetedToVersion=tq([].concat(q((Go=a.targetedToVersion)!=null?Go:[]),q(qX)))}break;case "title":a.title=b.value||"";break;case "type":a.type=b.value;break;case "verifiedInVersion":if(b.actionType==="REMOVE"){var bC,ey,kl=new Set((ey=(bC=b.value)==null?void 0:bC.split(","))!=null?ey:[]),yr,ll;a.verifiedInVersion=(ll=(yr=a.verifiedInVersion)==null?void 0:yr.filter(function(dh){return!kl.has(dh)}))!=null?ll:[]}else{var Gv,Hv,Zs=(Hv=
(Gv=b.value)==null?void 0:Gv.split(","))!=null?Hv:[],lO;a.verifiedInVersion=tq([].concat(q((lO=a.verifiedInVersion)!=null?lO:[]),q(Zs)))}break;case "verifier":a.verifier=b.value||null;break;default:wb(b.fieldName)}},fmd=function(a){for(var b=[],c=m(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next()){d=d.value;var e=cmd(a,d.customFieldId);if(!mm(e?Tq(e):null,Tq(d))){if(e=Uq(d))d.textValue="";b.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}}if(a.originalIssue){c=
a.originalIssue.snapshot[0];$R(tm(c.assigneeUser),a.assignee,"assignee",b);$R(c.componentId,a.componentId,"componentId",b);$R(c.deletionReason,a.deletionReason,"deletionReason",b);$R(c.duplicateOfIssueId,a.duplicateOfIssueId,"duplicateOfIssueId",b);$R(c.inProd,a.inProd,"inProd",b);$R(c.isArchived,a.isArchived,"isArchived",b);$R(c.isDeleted,a.isDeleted,"isDeleted",b);$R(c.priority,a.priority,"priority",b);$R(tm(c.reporterUser),a.reporter,"reporter",b);$R(c.severity,a.severity,"severity",b);$R(c.status,
a.status,"status",b);$R(c.title,a.title,"title",b);$R(c.type,a.type,"type",b);$R(tm(c.verifierUser),a.verifier,"verifier",b);var f,g,k,l;$R((k=(f=c.sloStartTime)==null?void 0:f.seconds)!=null?k:null,(l=(g=a.sloStartTime)==null?void 0:g.seconds)!=null?l:null,"sloStartTime",b);var r,w,x,C;$R((x=(r=c.sloEndTime)==null?void 0:r.seconds)!=null?x:null,(C=(w=a.sloEndTime)==null?void 0:w.seconds)!=null?C:null,"sloEndTime",b);$R(c.sloSnoozeType,a.sloSnoozeType,"sloSnoozeType",b);var H,J;$R((J=(H=c.effort)==
null?void 0:H.estimate)!=null?J:null,a.effortEstimate,"effortEstimate",b);aS(vm(c.ccUsers).map(tm),a.cc,"ccs",b);aS(vm(c.collaboratorsUsers).map(tm),a.collaborators,"collaborators",b);dmd(c.staffing,a.staffing,b);aS(c.changelist,a.changelist,"changelists",b);emd(c.gerritChanges,a.gerritChanges,b);aS(c.blockedByIssueId,a.blockedByIssueId,"blockedByIssueId",b);aS(c.blockingIssueId,a.blockingIssueId,"blockingIssueId",b);aS(c.foundInVersion,a.foundInVersion,"foundInVersion",b);aS(c.targetedToVersion,
a.targetedToVersion,"targetedToVersion",b);aS(c.verifiedInVersion,a.verifiedInVersion,"verifiedInVersion",b);aS(c.hotlistId,a.hotlistId,"hotlists",b)}return b.length?{issueId:a.issueId,actions:b}:null},$R=function(a,b,c,d){a!==b&&d.push({fieldName:c,value:b!=null?String(b):void 0})},aS=function(a,b,c,d){var e=XQa(b||[],new Set(a));a=XQa(a||[],new Set(b));e.length&&d.push({fieldName:c,value:e.join(","),actionType:"ADD"});a.length&&d.push({fieldName:c,value:a.join(","),actionType:"REMOVE"})},emd=function(a,
b,c){var d=u1a(b!=null?b:[],a!=null?a:[]);a=u1a(a!=null?a:[],b!=null?b:[]).filter(function(e){return e.state!=="PENDING"});d.length&&c.push({fieldName:"gerritChanges",gerritChangeValue:d,actionType:"ADD"});a.length&&c.push({fieldName:"gerritChanges",gerritChangeValue:a,actionType:"REMOVE"})},dmd=function(a,b,c){var d,e=BUa((d=b==null?void 0:b.plannedAllocations)!=null?d:[]),f,g=BUa((f=a==null?void 0:a.plannedAllocations)!=null?f:[]);a=[].concat(q(e.entries())).filter(function(k){var l=m(k);k=l.next().value;
l=l.next().value;var r,w=new (Function.prototype.bind.apply(Set,[null,((r=g.get(k))!=null?r:[]).map(function(x){return po(x)})]));return!g.has(k)||l.some(function(x){return!w.has(po(x))})}).map(function(k){k=m(k);k.next();return k.next().value});b=a.map(function(k){var l=k[0];return l.user?po(l,k.length>1):l.placeholder?"Placeholder: "+l.placeholder.count+" "+l.placeholder.role:""}).join(", ");d=[].concat(q(g.entries())).filter(function(k){k=m(k).next().value;return!e.has(k)}).map(function(k){k=m(k);
k.next();return k.next().value});f=d.map(function(k){k=m(k).next().value;if(k.user){var l;return(l=k.user.user)==null?void 0:l.emailAddress}return k.placeholder?"Placeholder: "+k.placeholder.role:""}).join(", ");a.length&&c.push({fieldName:"staffing",staffingValue:{plannedAllocations:a.flat()},actionType:"ADD",value:b});d.length&&c.push({fieldName:"staffing",staffingValue:{plannedAllocations:d.flat()},actionType:"REMOVE",value:f})};h=Zld.prototype;
h.setCustomField=function(a,b){a=String(a);if(this.customFieldMap[a]){var c=this.customFieldMap[a].type;if(c)switch(c){case "TYPE_UNSPECIFIED":break;case "TEXT":this.customFieldMap[a].textValue=b||"";break;case "DATE":this.customFieldMap[a].dateValue=b||void 0;break;case "ENUM":this.customFieldMap[a].enumValue=b||"";break;case "NUMERIC":this.customFieldMap[a].numericValue=b;break;case "REPEATED_TEXT":this.customFieldMap[a].repeatedTextValue={values:b};break;case "REPEATED_DATE":this.customFieldMap[a].repeatedDateValue=
{values:b};break;case "REPEATED_ENUM":this.customFieldMap[a].repeatedEnumValue={values:b};break;case "REPEATED_NUMERIC":this.customFieldMap[a].repeatedNumericValue={values:b};break;default:Xm("Unexpected custom field type: "+c)}}};
h.setCustomFieldValue=function(a,b){a=String(a);if(this.customFieldMap[a]){var c=this.customFieldMap[a].type;if(c)switch(c){case "TYPE_UNSPECIFIED":break;case "TEXT":this.customFieldMap[a].textValue=b.textValue||"";break;case "DATE":this.customFieldMap[a].dateValue=b.dateValue||void 0;break;case "ENUM":this.customFieldMap[a].enumValue=b.enumValue||"";break;case "NUMERIC":this.customFieldMap[a].numericValue=b.numericValue;break;case "REPEATED_TEXT":this.customFieldMap[a].repeatedTextValue=b.repeatedTextValue;
break;case "REPEATED_DATE":this.customFieldMap[a].repeatedDateValue=b.repeatedDateValue;break;case "REPEATED_ENUM":this.customFieldMap[a].repeatedEnumValue=b.repeatedEnumValue;break;case "REPEATED_NUMERIC":this.customFieldMap[a].repeatedNumericValue=b.repeatedNumericValue;break;default:Xm("Unexpected custom field type: "+c)}}};h.setIsDeleted=function(a){this.isDeleted=a};h.setIsArchived=function(a){this.isArchived=a};h.setDeletionReason=function(a){this.deletionReason=a};
h.setReporter=function(a){this.reporter=a};h.setType=function(a){this.type=a};h.setPriority=function(a){this.priority=a};h.setSeverity=function(a){this.severity=a};h.setAssignee=function(a){this.assignee=a;a=io.get(this.status);!this.assignee&&this.originalIssue&&(a==null?void 0:a.assigneeRequirement)==="REQUIRED"?this.status="NEW":this.assignee&&this.status!=="FIXED"&&this.status!=="VERIFIED"&&(this.status="ASSIGNED")};
h.setVerifier=function(a){this.verifier=a;!this.verifier&&this.originalIssue&&tm(this.originalIssue.snapshot[0].verifierUser)&&this.originalIssue.snapshot[0].status==="VERIFIED"&&(this.status="FIXED")};
h.setStatus=function(a){this.status=a;a=io.get(this.status);(a==null?void 0:a.assigneeRequirement)==="FORBIDDEN"&&this.assigneeUser?this.assignee="":(a==null?void 0:a.assigneeRequirement)!=="REQUIRED"||this.assigneeUser||(this.assignee=this.currentUserEmail);this.status!=="VERIFIED"||this.verifier||(this.verifier=this.currentUserEmail)};h.setInProd=function(a){this.inProd=a};h.setCollaborators=function(a){this.collaborators=a};h.setStaffing=function(a){this.staffing=a};
h.setSloEndTime=function(a){this.sloEndTime=a};h.setSloSnoozeType=function(a){this.sloSnoozeType=a};h.setCodeChanges=function(a){var b=[],c=[];a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Wq(d);e?b.push(e):c.push(d)}this.changelist=c!=null?c:[];this.gerritChanges=b!=null?b:[]};
var cmd=function(a,b){return a.originalIssue?(a=(a.originalIssue.snapshot[0].customField||[]).find(function(c){return c.customFieldId===b}))?a:null:null},Mlb=function(a,b){var c=[];b!==void 0&&!b&&a.changelist&&c.push.apply(c,q(a.changelist));a.gerritChanges&&c.push.apply(c,q(a.gerritChanges.filter(function(d){return d.state==="MERGED"}).map(function(d){return Vq(d)})));return c},gmd=function(a){return a.gerritChanges?a.gerritChanges.filter(function(b){return b.state==="PENDING"}).map(function(b){return Vq(b)}):
[]},amd=function(a){this.choices=this.customFieldName=this.type=null;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};
amd.prototype.isRepeated=function(){return this.type==null?!1:["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};var hmd=new Map([["assignee",function(a,b){a.assigneeUser=xm(b.assignee)}],["ccs",function(a,b){a.ccUsers=b.cc.map(xm).filter(Pm)}],["changelists",function(a,b){a.changelist=b.changelist}],["hotlists",function(a,b){a.hotlistId=b.hotlistId}],["reporter",function(a,b){a.reporterUser=xm(b.reporter)}],["verifier",function(a,b){a.verifierUser=xm(b.verifier)}],["componentId",function(a,b){a.componentId=b.componentId}],["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}],["status",function(a,b){a.status=b.status}],["title",function(a,b){a.title=b.title}],["type",function(a,b){a.type=b.type}],["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 bS=function(){this.$window=p(lR)};bS.\u0275fac=function(a){return new (a||bS)};bS.\u0275prov=Dc({token:bS,factory:bS.\u0275fac,providedIn:"root"});var cS=function(){this.session=p(uu);this.baseDocumentationUrl=this.session.getDocumentationBaseUrl()},ms=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control":a.baseDocumentationUrl+"/concepts/access-control"},imd=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control#hotlists":a.baseDocumentationUrl+"/concepts/access-control#hotlists"};
cS.prototype.getIssueAccessLimit=function(){return this.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control.md?cl=head#issue_access_limits":this.baseDocumentationUrl+"/concepts/issues#issue_access_limits"};
var jmd=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/automation-access":ms(a)},Wgb=function(a){if(!a.session.isExternalSession())return"http://go/buganizer-external-access"},kmd=function(a){if(!a.session.isExternalSession())return"http://go/buganizer-public-access"},lmd=function(a){if(a=kmd(a))return a+"#recommended-access-settings"},mmd=function(a){if(a=kmd(a))return a+"#fully-public-component"},nmd=function(a){return a.session.isExternalSession()?
a.baseDocumentationUrl+"#terms_of_service":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/public-access#spam"},P4b=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/guides/manage-component#enabling-comment-editing"},qu=function(){return"http://go/buganizer-retention"};cS.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 ddc=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/custom-fields"},omd=function(a){return a.session.isInternalSession()?"http://go/delete-comments-attachments":""};cS.\u0275fac=function(a){return new (a||cS)};cS.\u0275prov=Dc({token:cS,factory:cS.\u0275fac,providedIn:"root"});var pmd=function(){this.dialogRef=p(RA);this.data=p(TA);this.confirmButtonTheme=this.data.isDestructive?"warn":"primary";var a;this.cancelButtonText=(a=this.data.cancelButtonText)!=null?a:"Cancel";var b;this.confirmButtonText=(b=this.data.confirmButtonText)!=null?b:"Confirm";var c;this.showCancelButton=(c=this.data.showCancelButton)!=null?c:!0};pmd.\u0275fac=function(a){return new (a||pmd)};
pmd.\u0275cmp=D({type:pmd,selectors:[["b-confirmation-dialog"]],standalone:!1,decls:7,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"medium",3,"click","color"],["type","button","mat-button","",1,"medium",3,"click"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1),L(),M(2,"div",1),K(3,"div",2),F(4,S6a,2,1,"button",3),K(5,"button",4),N("click",
function(){return b.dialogRef.close(!0)}),Q(6),L()());a&2&&(B(),yg(b.data.title),B(),I("innerHTML",b.data.content,Me),B(2),G(b.showCancelButton?4:-1),B(),I("color",b.confirmButtonTheme),B(),S(" ",b.confirmButtonText," "))},dependencies:[kB,gB,XA,ZA,YA],encapsulation:2});var dS=function(){this.dialog=p(UA)},qmd=function(a,b){return new Promise(function(c){a.open(Object.assign({},b,{onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}}))})};
dS.prototype.open=function(a){var b=a.title;var c=a.content;var d=a.onConfirm;var e=a.onDismiss;SA(this.dialog.open(pmd,{data:{title:b,content:c,isDestructive:a.isDestructive,cancelButtonText:a.cancelButtonText,confirmButtonText:a.confirmButtonText,showCancelButton:a.showCancelButton},maxWidth:"500px"})).subscribe(function(f){f?d==null||d():e==null||e()})};dS.\u0275fac=function(a){return new (a||dS)};dS.\u0275prov=Dc({token:dS,factory:dS.\u0275fac,providedIn:"root"});var eS=function(){this.activeSession=p(uu);this.documentationLinks=p(cS);this.confirmationDialogService=p(dS)},smd=function(a,b){return new Promise(function(c){rmd(a,b,function(){c(!0)},function(){c(!1)})})},rmd=function(a,b,c,d){if(a.activeSession.isExternalSession())c&&c();else{var e="",f=Bh("");if(b==="VULNERABILITY")e="Set the issue type to \u201cVulnerability\u201d?",b={},f=Dh([Bh('A security "Vulnerability" is a weakness in software and hardware components that, when exploited, results in a negative impact to confidentiality, integrity, or availability. \n\nThis issue type is subject to stricter SLOs than other types. Please refer to the security guidelines for more information on on proper usage.\n\n',
{preserveNewlines:!0}),Eh("a",(b.href="http://goto.google.com/vulnerability-slo",b.target="_blank",b),"Learn more")]);else if(b==="PRIVACY_ISSUE"){e="Set the issue type to \u201cPrivacy Issue\u201d?";b={};f={};var g={};f=Dh([Bh('The "Privacy Issue" type tracks situations in which Google systems risk falling out of alignment with internal privacy  standards and requirements, and is subject to stricter SLOs than other types. ',{preserveNewlines:!0}),Eh("a",(b.href="http://goto.google.com/pib-slo",b.target=
"_blank",b),"Learn more"),Bh(".\n\nDO NOT use this type to file ",{preserveNewlines:!0}),Eh("a",(f.href="http://goto.google.com/incident-response-policy",f.target="_blank",f),"privacy incidents"),Bh(". Incidents should be filed at ",{preserveNewlines:!0}),Eh("a",(g.href="http://goto.google.com/privacy-incidents",g.target="_blank",g),"go/privacy-incidents"),Bh(".\n\nDO NOT use this type unless you are on one of the following teams or have been specifically requested by one of these teams to file a Privacy Issue bug: Privacy Incident Management, Privacy Investigations, Privacy Remediation.",
{preserveNewlines:!0})])}a.confirmationDialogService.open({title:e,content:f,onConfirm:c!=null?c:function(){},onDismiss:d!=null?d:function(){}})}};eS.\u0275fac=function(a){return new (a||eS)};eS.\u0275prov=Dc({token:eS,factory:eS.\u0275fac,providedIn:"root"});var tmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,tmd.messageId)};Y(tmd,W);tmd.messageId="b.TimeZoneDataList";var fS=function(){var a=this;this.executor=p(bO);this.activeSession=p(uu);this.cachedDisplayNames=void 0;this.memoizedTimezones=new jjd(function(b){a:{var c=m(a.activeSession.session.preload.timezones);for(var d=c.next();!d.done;d=c.next())if(d=d.value,b===d.timeZoneId_){c=d;break a}c=void 0}return c?ce(c):a.executor.get({url:"action/timezone/"+encodeURIComponent(b),responseConstructor:Tn}).pipe(A(qRa))},10)};fS.prototype.get=function(a){return this.memoizedTimezones.get(a)};
var umd=function(a){return a.cachedDisplayNames?ce(nm(a.cachedDisplayNames)):a.executor.get({url:"action/timezone",responseConstructor:tmd}).pipe(A(function(b){b=Bi(b,Tn,1,Ci(),jb).map(function(c){c=qRa(c);var d=RTc(Rk(c,new Date));return{id:c.timeZoneId_,displayName:"("+d+") - "+c.timeZoneId_,gmt:d}});return a.cachedDisplayNames=b}))};fS.\u0275fac=function(a){return new (a||fS)};fS.\u0275prov=Dc({token:fS,factory:fS.\u0275fac,providedIn:"root"});var vmd=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"],["PROGRAM","A set of related large scale work efforts"],["PROJECT","Goal-driven effort"],["FEATURE","A collection of work"],["MILESTONE","An important achievement"],["EPIC","A large collection of work"],
["STORY","A small collection of work"],["TASK","A small unit of work"],["TYPE_UNSPECIFIED","Unspecified"]]),wmd=["P0","P1","P2","P3","P4"],xmd="NEW ASSIGNED ACCEPTED FIXED VERIFIED NOT_REPRODUCIBLE INTENDED_BEHAVIOR OBSOLETE INFEASIBLE DUPLICATE INACTIVE".split(" "),ymd="BUG FEATURE_REQUEST CUSTOMER_ISSUE INTERNAL_CLEANUP PROCESS VULNERABILITY PRIVACY_ISSUE PROGRAM PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" "),zmd=["HIGH","MEDIUM","LOW","ZERO"],Amd=["SWE","SRE","PM","TPGM","UX"],Bmd="SWE SRE PM TPGM UX UXD UXR DATASCI LD DEVREL TW GTM CE OTHER".split(" "),
Cmd=["S0","S1","S2","S3","S4"],Dmd=new Map([["PRIORITY_UNSPECIFIED","(Unspecified Priority)"],["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"]]),Emd=new Map([["TYPE_UNSPECIFIED","(Unspecified Issue Type)"],["BUG","Bug"],["FEATURE_REQUEST","Feature Request"],["CUSTOMER_ISSUE","Customer Issue"],["INTERNAL_CLEANUP","Internal Cleanup"],["PROCESS","Process"],["VULNERABILITY","Vulnerability"],["PRIVACY_ISSUE","Privacy Issue"],["PROGRAM","Program"],["PROJECT","Project"],["FEATURE","Feature"],
["MILESTONE","Milestone"],["EPIC","Epic"],["STORY","Story"],["TASK","Task"]]),Fmd=new Map([["TYPE_UNSPECIFIED","report"],["BUG","bug_report_24px"],["CUSTOMER_ISSUE","contact_phone_24px"],["EPIC","beenhere_24px"],["FEATURE","stars_24px"],["FEATURE_REQUEST","reviews_24px"],["INTERNAL_CLEANUP","cleaning_services_24px"],["MILESTONE","outlined_flag_24px"],["PRIVACY_ISSUE","lock_outline_24px"],["PROCESS","retweet_24px"],["PROGRAM","work_outline_24px"],["PROJECT","description_24px"],["STORY","3p_24px"],
["TASK","assignment_turned_in_24px"],["VULNERABILITY","privacy_tip_24px"]]),V6a=new Set("PROGRAM PROJECT MILESTONE FEATURE EPIC STORY TASK".split(" ")),Gmd=ymd.map(function(a){return{value:a,displayText:ym(a),altText:vmd.get(a),icon:Fmd.get(a),group:W6a(a)?1:0}}),gS=function(){this.priorities=wmd;this.severities=Cmd;this.editIssueTypes=ymd;this.editIssueTypeChoices=Gmd;this.issueTypesDisplayNames=Emd;this.issueTypesShortDescriptions=vmd;this.issuePrioritiesDisplayNames=Dmd;this.issueTypeIcons=Fmd;
this.supportedTimeZones=[{name:"Local time",id:""},{name:"UTC",id:"UTC"},{name:"America/Los_Angeles",id:"America/Los_Angeles"}];this.isWTDMType=W6a};gS.\u0275fac=function(a){return new (a||gS)};gS.\u0275prov=Dc({token:gS,factory:gS.\u0275fac,providedIn:"root"});var hS=function(){var a=p(hR),b=p(fS),c=p(gS);Z.call(this);var d=this;this.errorHandler=p(pO);this.cachedFormatters=new Map;this.userPrefs=LN.dateTimePreferences;this.formatPrefChange$=new qf;this.userTimeZone=null;this.timeZones={};Promise.all(c.supportedTimeZones.map(function(e){if(e.id==="")return Promise.resolve({name:"",timeZone:null});var f=b.get(e.id).pipe(zf(d.destroyed$));return fe(f).then(function(g){return{name:e.name,timeZone:g}})})).then(function(e){e=m(e);for(var f=e.next();!f.done;f=
e.next())f=f.value,d.timeZones[f.name]=f.timeZone;a.preferences$.pipe(zf(d.destroyed$)).subscribe(function(g){g.dateTimePreferences&&(g=g.dateTimePreferences,d.userPrefs=g,d.userTimeZone=d.timeZones[g.timeZone],d.formatPrefChange$.next())})}).catch(function(e){d.errorHandler.errorHandler(null,e)})};Y(hS,Z);hS.\u0275dir=Z.\u0275dir;hS.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d||(d=new ql(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};
var Hmd=function(a,b){return a.formatPrefChange$.subscribe(b)};hS.prototype.formatUserCalendar=function(a){return this.format(this.userPrefs.calendarFormat,this.userTimeZone,a)};hS.prototype.formatUserTime=function(a){return this.format(this.userPrefs.timeFormat,this.userTimeZone,a)};hS.\u0275fac=function(a){return new (a||hS)};hS.\u0275prov=Dc({token:hS,factory:hS.\u0275fac,providedIn:"root"});var iS=function(){this.dateFormatter=p(hS)};
iS.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(Sq(a)):"";if(a.enumValue)return a.enumValue;if(a.numericValue||a.numericValue===0)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(Sq(c))}).join(", ");if(a.repeatedEnumValue)return a.repeatedEnumValue.values.join(", ");
if(a.repeatedNumericValue)return a.repeatedNumericValue.values.join(", ")}return""};iS.\u0275fac=function(a){return new (a||iS)};iS.\u0275prov=Dc({token:iS,factory:iS.\u0275fac,providedIn:"root"});var jS=function(){this.customFieldFormatter=p(iS);this.hotlistFridge=p(lP);this.FIELD_TEXT_MAP={assignee:"Assignee",type:"Issue Type",componentId:"Component ID",duplicateOfIssueId:"Canonical Issue ID",inProd:"In Prod",priority:"Priority",severity:"Severity",status:"Status",title:"Title",verifier:"Verifier",effortEstimate:"Estimated Effort",sloStartTime:"SLO Start Time",sloEndTime:"SLO End Time",blockingIssueId:"Blocked Issues",ccs:"CCs",changelists:"Changelists",gerritChanges:"Gerrit changes",blockedByIssueId:"Blocking Issues",
foundInVersion:"Found In",hotlists:"Hotlists",targetedToVersion:"Targeted To",verifiedInVersion:"Verified In"};this.ENUM_FIELDS=["type","status"]},Kmd=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?"":d;var e;b.bulkEditOps&&(e=U6a(b.bulkEditOps));var f=b.actions||[];!f.length&&b.bulkEditOps&&(f=T6a(b.bulkEditOps));b=Imd(f).map(function(g){return Jmd(a,g,c,d)});b=b.filter(Boolean);if(!b.length)return"Issue(s) updated.";b=b.join(", ");return b=e?e.length==1?b+" on 1 issue.":b+(" on "+e.length+" issues."):
b+"."},Imd=function(a){var b=[],c=[];a=m(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d.fieldName==="status"?c.push(d):b.push(d);return b.concat(c)},Jmd=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?"":d;var e=a.FIELD_TEXT_MAP[b.fieldName]||b.fieldName,f=b.value||"<none>";b.customFieldValue?(d=b.customFieldValue,e=c[d.customFieldId].name||c[d.customFieldId].customFieldName,f=a.customFieldFormatter.format(d)||"<none>"):b.fieldName==="effortEstimate"&&d?e=d:e=a.FIELD_TEXT_MAP[b.fieldName]||
b.fieldName;b.fieldName==="hotlists"?f=b.value.split(",").map(function(g){var k,l;return(k=(l=a.hotlistFridge.peek(String(g)))==null?void 0:l.name)?"'"+k+"'":g}).join(","):a.ENUM_FIELDS.includes(b.fieldName)&&(f=f?gj(f.replace(/_/g," ").toLowerCase()):"");return b.actionType==="ADD"&&b.fieldName==="hotlists"?(f=f.replace(/,/g,", "),"Added issue to Hotlist ["+f+"]"):b.actionType==="REMOVE"&&b.fieldName==="hotlists"?(f=f.replace(/,/g,", "),"Removed issue from Hotlist ["+f+"]"):b.actionType==="ADD"&&
b.fieldName==="parentId"?"Added child issue(s) to parent ["+f+"]":b.actionType==="REMOVE"&&b.fieldName==="parentId"?"Unlinked child issue(s) from parent ["+f+"]":b.actionType||b.fieldName!=="status"?b.actionType||b.fieldName!=="comment"?b.actionType||b.fieldName!=="attachments"?b.actionType||b.fieldName!=="sloStartTime"?b.actionType||b.fieldName!=="sloEndTime"?b.actionType==="ADD"&&b.gerritChangeValue?(f=b.gerritChangeValue.map(function(g){return g.changeNumber}).join(", "),'"'+f+'" added to '+e):
b.actionType==="REMOVE"&&b.gerritChangeValue?(f=b.gerritChangeValue.map(function(g){return g.changeNumber}).join(", "),'"'+f+'" removed from '+e):b.actionType!=="ADD"||b.customFieldValue?b.actionType!=="REMOVE"||b.customFieldValue?b.fieldName==="isArchived"?b.value==="true"?"Archived successfully":"Unarchived successfully":e+' set to "'+f+'"':(f=f.replace(/,/g,", "),'"'+f+'" removed from '+e):(f=f.replace(/,/g,", "),'"'+f+'" added to '+e):b.value?"SLO End Time Set":"SLO End Time Unset":b.value?"SLO Start Time Set":
"SLO Start Time Unset":"":"Comment added":'Status set to "'+io.get(b.value).displayValue+'"'};jS.\u0275fac=function(a){return new (a||jS)};jS.\u0275prov=Dc({token:jS,factory:jS.\u0275fac,providedIn:"root"});var Y6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Y6a,W);Y6a.prototype.getContentJudgement=function(){return X(this,Nr,2)};Y6a.prototype.setContentJudgement=function(a){return Mi(this,Nr,2,a)};var Lmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lmd,W);Lmd.prototype.getIssueId=function(){return pn(this,1)};Lmd.prototype.getIssueId_asString=function(){return nn(this,1)};Lmd.prototype.setIssueId=function(a){return Jn(this,1,a)};var Mmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mmd,W);h=Mmd.prototype;h.getFilename=function(){return ui(this,1)};h.setFilename=function(a){return oj(this,1,a)};h.getMimeType=function(){return ui(this,2)};h.setMimeType=function(a){return oj(this,2,a)};h.getSize=function(){return pn(this,5)};h.setSize=function(a){return vn(this,5,a)};var kS=function(){this.activeSession=p(uu)},Nmd=function(a){var b;if((a=(b=a.activeSession.getTracker())==null?void 0:b.trackerId)&&a!=="0")return[a]},ft=function(a,b,c,d){c=c===void 0?a.activeSession.getTracker():c;d=d===void 0?!1:d;c?(d=d===void 0?!1:d,a=a.activeSession.isInternalSession()&&!d&&c.internalBaseUrl?c.internalBaseUrl+"/"+b:c.externalBaseUrl?c.externalBaseUrl+"/"+b:Omd(a,b,!0,c.trackerId,d)):a=Omd(a,b,!1,"",d);return a},Omd=function(a,b,c,d,e){c=c===void 0?!1:c;d=d===void 0?"":d;a=a.activeSession.getAppBaseUrl(e===
void 0?!1:e);return c?a+b+"?tracker="+d:a+b},ju=function(a,b){var c=a.activeSession.getTracker();if(!b||!c)return b;var d;a=(d=b.componentPathId)!=null?d:[];var e;d=(e=b.componentPathName)!=null?e:[];e=c.componentId;e=a.includes(e)?a.indexOf(e):a.length;return{componentPathId:a.slice(e),componentPathName:d.slice(e),fieldConfigsMap:b.fieldConfigsMap,fieldConfigsV2Map:b.fieldConfigsV2Map}},Pmd=function(a,b){return b?a.filter(function(c){return c.trackerId===b}):a};
kS.\u0275fac=function(a){return new (a||kS)};kS.\u0275prov=Dc({token:kS,factory:kS.\u0275fac,providedIn:"root"});var lS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,lS.messageId)};Y(lS,W);lS.prototype.getIt=function(){return X(this,Mo,14,jb)};lS.prototype.setIt=function(a){return Mi(this,Mo,14,a,jb)};lS.messageId="b.Attachment";var mS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,mS.messageId)};Y(mS,W);mS.prototype.getAttachmentsList=function(){return Bi(this,lS,1,Ci(),jb)};mS.prototype.setAttachmentsList=function(a){return Ni(this,1,a,jb)};mS.prototype.addAllAttachments=function(a){Mp(this,1,lS,a,jb)};mS.messageId="b.CreateAttachmentsResponse";var Qmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Qmd.messageId)};Y(Qmd,W);Qmd.prototype.getErrorMessage=function(){return ui(this,2,void 0,jb)};Qmd.prototype.setErrorMessage=function(a){oj(this,2,a,jb)};Qmd.messageId="b.EncryptedMediaResponse";var nS=function(){this.executor=p(cO);this.httpClient=p(By);this.activeSession=p(uu);this.trackerHelpers=p(kS)},Rmd=function(a,b){var c=(new Mmd).setFilename(b.filename).setMimeType(b.mimeType);b.encryptedBlobId!=null&&oj(c,3,b.encryptedBlobId);oj(c,4,b.docId);b.size!=null&&c.setSize(b.size);return a.executor.post({url:"action/issues/drive_attachment",body:c,responseConstructor:Qmd}).then(X6a)},Tmd=function(a,b,c){var d=Smd(a)+("/download/attachment/"+b+"/"+c);return ne(function(){return fetch(d,
{credentials:"include",mode:"no-cors"})}).pipe(yf(function(){return a.httpClient.get(d,{observe:"events",responseType:"arraybuffer",withCredentials:!0}).pipe(A(function(e){if(e instanceof wy&&e.body)return e.body}))}))},Smd=function(a){var b=/(g?bugs-qa\.chromium\.org)/,c=/g-issues\.(.*)\.(.*)\/$/,d=/[^-]issues\.(.*)\.(.*)\/$/,e=ft(a.trackerHelpers,"");return b.test(e)?"https://usercontent."+b.exec(e)[1]:c.test(e)?(a=c.exec(e),"https://usercontent.g-issues."+a[1]+"."+a[2]):d.test(e)?(a=d.exec(e),
"https://usercontent.issues."+a[1]+"."+a[2]):a.activeSession.isInternalSession()?xs(a.activeSession)?"https://buganizer.usercontent.corp.google.com":"https://buganizer-qa.usercontent.corp.google.com":WN(a.activeSession)?xs(a.activeSession)?"https://partnerissuetracker.usercontent.corp.google.com":"https://partnerissuetracker-qa.usercontent.corp.google.com":xs(a.activeSession)?"https://issuetracker.usercontent.google.com":"https://issuetracker-qa.usercontent.corp.google.com"};
nS.\u0275fac=function(a){return new (a||nS)};nS.\u0275prov=Dc({token:nS,factory:nS.\u0275fac,providedIn:"root"});var oS=function(){this.executor=p(cO)};oS.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})};oS.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:lS}).then($6a)};
oS.\u0275fac=function(a){return new (a||oS)};oS.\u0275prov=Dc({token:oS,factory:oS.\u0275fac,providedIn:"root"});var Umd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Umd,W);h=Umd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getComment=function(){return X(this,Kp,2)};h.setComment=function(a){return Mi(this,Kp,2,a)};h.setSignificanceOverride=function(a){return Hm(this,3,a)};h.getContentJudgement=function(){return X(this,Ho,4)};
h.setContentJudgement=function(a){return Mi(this,Ho,4,a)};var Vmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vmd,W);h=Vmd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getCommentNumber=function(){return Bm(this,2)};h.setCommentNumber=function(a){return an(this,2,a)};var Wmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wmd,W);h=Wmd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getCommentNumber=function(){return Bm(this,2)};h.setCommentNumber=function(a){return an(this,2,a)};h.getComment=function(){return X(this,Kp,3)};h.setComment=function(a){return Mi(this,Kp,3,a)};var Xmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xmd,W);h=Xmd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getCommentNumber=function(){return Bm(this,2)};h.setCommentNumber=function(a){return an(this,2,a)};h.getRestrictedRetention=function(){return wi(this,3)};h.setRestrictedRetention=function(a){return Hm(this,3,a)};var pS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,pS.messageId)};Y(pS,W);pS.prototype.getIt=function(){return X(this,bp,2,jb)};pS.prototype.setIt=function(a){return Mi(this,bp,2,a,jb)};pS.messageId="b.CommentReaction";var Ymd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ymd,W);Ymd.prototype.getIt=function(){return X(this,Umd,5)};Ymd.prototype.setIt=function(a){return Mi(this,Umd,5,a)};var qS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,qS.messageId)};Y(qS,W);qS.prototype.getIt=function(){return X(this,Kp,19,jb)};qS.prototype.setIt=function(a){return Mi(this,Kp,19,a,jb)};qS.messageId="b.IssueComment";var Zmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zmd,W);Zmd.prototype.getIssueCommentsList=function(){return Bi(this,Kp,1,Ci())};var $md=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,$md.messageId)};Y($md,W);$md.prototype.getIt=function(){return X(this,Zmd,2,jb)};$md.prototype.setIt=function(a){return Mi(this,Zmd,2,a,jb)};$md.messageId="b.ListIssueCommentHistoryResponse";var and=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(and,W);and.prototype.getIt=function(){return X(this,Wmd,5)};and.prototype.setIt=function(a){return Mi(this,Wmd,5,a)};var bnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bnd,W);bnd.prototype.getIt=function(){return X(this,Xmd,4)};bnd.prototype.setIt=function(a){return Mi(this,Xmd,4,a)};var rS=function(){this.executor=p(bO)};h=rS.prototype;h.get=function(a,b,c){var d={};c&&(d["X-Restricted-Content-Limit"]=String(pYa(c)));return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:d},responseConstructor:qS}).pipe(A(T0a))};
h.create=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);b=(new Umd).setIssueId(a).setComment((new Kp).setComment(b).setFormattingMode(kp(c)));d&&b.setContentJudgement(HVa(d));d=(new Ymd).setIt(b);return this.executor.post({url:"action/issues/"+a+"/comment",body:d,responseConstructor:null,options:{headers:f}})};
h.update=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);b=(new and).setIt((new Wmd).setIssueId(a).setCommentNumber(b).setComment((new Kp).setComment(c).setFormattingMode(kp(d))));return this.executor.post({url:"action/issues/"+a+"/updateComment",body:b,options:{headers:f},responseConstructor:null})};h.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})};
h.undelete=function(a,b,c){var d={};c!==void 0&&(d.comment_version=String(c));return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/undelete",body:null,options:{params:d},responseConstructor:qS}).pipe(A(T0a))};h.listHistory=function(a,b){var c=(new Vmd).setIssueId(a).setCommentNumber(b);return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/listIssueCommentHistory",body:c,responseConstructor:$md}).pipe(A(U0a))};
h.updateCommentReaction=function(a){var b=a.issueId;var c=a.commentId;var d=a.reactionType;var e=a.hasReacted;var f;a=new pS;var g=a.setIt,k=new bp;d=(new lp).setType((f=Gbd[d])!=null?f:0);f=Yo(d,1,e);f=g.call(a,Np(k,2,lp,f));return this.executor.post({url:"action/issues/"+b+"/comment/"+c+"/updateReaction",body:f,responseConstructor:pS}).pipe(A(V0a))};
h.updateRetention=function(a,b,c){c=(new bnd).setIt((new Xmd).setIssueId(a).setCommentNumber(b).setRestrictedRetention(UVa(c)));return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/update_retention",body:c,responseConstructor:qS}).pipe(A(T0a))};rS.\u0275fac=function(a){return new (a||rS)};rS.\u0275prov=Dc({token:rS,factory:rS.\u0275fac,providedIn:"root"});var sS=function(){this.observableApi=p(rS)};h=sS.prototype;h.get=function(a,b,c){return fe(this.observableApi.get(a,b,c))};
h.create=function(a,b,c,d,e){return fe(this.observableApi.create(a,b,c,d,e))};h.update=function(a,b,c,d,e){return fe(this.observableApi.update(a,b,c,d,e))};h.delete=function(a,b,c,d){return fe(this.observableApi.delete(a,b,c,d))};h.undelete=function(a,b,c){return fe(this.observableApi.undelete(a,b,c))};h.listHistory=function(a,b){return fe(this.observableApi.listHistory(a,b))};h.updateCommentReaction=function(a){return fe(this.observableApi.updateCommentReaction(a))};
h.updateRetention=function(a,b,c){return fe(this.observableApi.updateRetention(a,b,c))};sS.\u0275fac=function(a){return new (a||sS)};sS.\u0275prov=Dc({token:sS,factory:sS.\u0275fac,providedIn:"root"});var cnd=function(){this.dialogRef=p(RA);this.data=p(TA);this.documentationLinks=p(cS);this.userEmails=this.data.userEmails;this.readMoreLink=this.documentationLinks.baseDocumentationUrl+"/concepts/access-control#explicit_access_warnings"};cnd.prototype.close=function(a){this.dialogRef.close(a)};cnd.\u0275fac=function(a){return new (a||cnd)};
cnd.\u0275cmp=D({type:cnd,selectors:[["confirm-no-access-dialog"]],standalone:!1,decls:19,vars:1,consts:[[1,"dialog-container"],["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"help-label"],["target","_blank",3,"href"],["type","button","mat-button","","color","primary",3,"click"],["type","button","mat-button","","color","primary","cdkFocusInitial","",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"h1",1),Q(2,"User may not have access"),L(),K(3,"section",2)(4,
"p"),Q(5," The following user(s) may not be able to edit, interact with, or get notifications about this issue: "),L(),K(6,"ul"),Nf(7,b7a,2,1,"li",null,Mf),L(),K(9,"section"),Q(10,"Continue anyway?"),L()(),K(11,"footer",3)(12,"div",4)(13,"a",5),Q(14,"Learn more"),L()(),K(15,"button",6),N("click",function(){return b.close(!0)}),Q(16,"Continue"),L(),K(17,"button",7),N("click",function(){return b.close(!1)}),Q(18,"Cancel"),L()()());a&2&&(B(7),Of(b.userEmails),B(6),I("href",b.readMoreLink,Ne))},dependencies:[kB,
gB,XA,ZA,YA],styles:["ul[_ngcontent-%COMP%]{list-style:disc;margin-bottom:10px}"]});var tS=function(){this.matDialogService=p(UA);this.analytics=p(eQ);this.butterBar=p(UN);this.logger=p(nO);this.accessPolicy=p(KO)},end=function(a,b){var c=b.componentId;var d=b.userEmails;var e=b.relation;var f=b.analyticsEventLabel;var g,k,l;return y(function(r){switch(r.nextAddress){case 1:if(d.every(function(w){return w.length===0}))return r.return(!0);Wd(r,2);return z(r,dnd(a,c,d,e),4);case 4:g=r.yieldResult;if(g.length===0)return r.return(!0);a.analytics.trackEvent("addUserWithoutAccess","warn",
f);return z(r,a.confirm(g,e),5);case 5:k=r.yieldResult;if(!k)return Rr(a.butterBar,"Save cancelled.",4E3),a.analytics.trackEvent("addUserWithoutAccess","cancel",f),r.return(!1);a.analytics.trackEvent("addUserWithoutAccess","proceed",f);return r.return(!0);case 2:return l=$d(r),a.logger.error(l),r.return(!1)}})},dnd=function(a,b,c,d){var e;return y(function(f){if(f.nextAddress==1)return z(f,a.accessPolicy.checkPermission(c,d,"ISSUE_DEFAULTS",b),2);e=f.yieldResult;return f.return([].concat(q(e.noAccessEmails||
[]),q(e.unknownEmails||[])))})};tS.prototype.confirm=function(a,b){var c=this,d,e,f;return y(function(g){if(g.nextAddress==1)return d={userEmails:a,relation:b},e=c.matDialogService.open(cnd,{width:"400px",data:d}),z(g,fe(SA(e)),2);f=g.yieldResult;return g.return(!!f)})};tS.\u0275fac=function(a){return new (a||tS)};tS.\u0275prov=Dc({token:tS,factory:tS.\u0275fac,providedIn:"root"});var fnd=function(a,b){this.size=a;this.name=b;this.transferredBytes=0;this.errorMessage="";this.blobRef=null;this.state=1};fnd.prototype.cancel=function(){this.state=4};var gnd={UPLOADING:1,COMPLETE:2,ERROR:3,CANCELLED:4,1:"UPLOADING",2:"COMPLETE",3:"ERROR",4:"CANCELLED"};var uS=function(a,b){this.initialComment=a=a===void 0?"":a;this.fromTemplate=b===void 0?!1:b;this.uploads=[];this.formattingMode="PLAIN";this.value=a};uS.prototype.reset=function(){this.value="";hnd(this)};var hnd=function(a){for(var b=m(a.uploads),c=b.next();!c.done;c=b.next())c.value.cancel();a.uploads=[]},ind=function(a){return a.fromTemplate&&a.initialComment===a.value};
uS.prototype.getAttachments=function(){for(var a=[],b=m(this.uploads),c=b.next();!c.done;c=b.next())c=c.value,c.state===2&&c.blobRef&&a.push(nm(c.blobRef));return a};uS.prototype.hasContent=function(){return!(!this.value&&!this.uploads.length)};var jnd=function(a){return!a.isEmpty()&&!y5b(a)};uS.prototype.isEmpty=function(){return!this.value&&!knd(this)};
var y5b=function(a){return a.uploads.some(function(b){return b.state===1||b.state===3})},knd=function(a){return a.uploads.some(function(b){return b.state===2})};var vS=function(){var a=this;this.userPreferencesManager=p(hR);this.timeZonesApi=p(fS);this.cachedFormatters=new Ned(100);this.userDatePrefs$=this.userPreferencesManager.dateTimePreferences$;this.userCalendarFormat$=this.userDatePrefs$.pipe(A(function(b){return b.calendarFormat||"MMM d, yyyy"}));this.userTimeFormat$=this.userDatePrefs$.pipe(A(function(b){return b.timeFormat||"hh:mma"}));this.userTimeZone$=this.userDatePrefs$.pipe(yf(function(b){return b.timeZone?a.timeZonesApi.get(b.timeZone):ce(void 0)}))};
vS.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d===void 0&&(d=new ql(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};vS.prototype.formatUserCalendar=function(a){var b=this;return ie([this.userCalendarFormat$,this.userTimeZone$]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
vS.prototype.formatUserTime=function(a){var b=this;return ie([this.userTimeFormat$,this.userTimeZone$]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
var lnd=function(a,b){return ie([a.userCalendarFormat$,a.userTimeFormat$,a.userTimeZone$]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;d=d.next().value;return a.format(c+" "+e,d,b)}))},mnd=function(a,b,c){return c?a.timeZonesApi.get(c).pipe(A(function(d){return a.format("yyyy-MM-dd HH:mm:ss Z",d,b)})):ce(a.format("yyyy-MM-dd HH:mm:ss Z",void 0,b))},Tpb=function(a,b){var c=void 0;c=c===void 0?0:c;b=b===void 0?!1:b;var d=new pm;c&&d.setTime(c);c=new pm;c.setTime(a);if(c.getTime()<
d.getTime())return"Expired";a=(c.getFullYear()-d.getFullYear())*12+(c.getMonth()-d.getMonth());var e=c.getDate()-d.getDate();e<0&&(a--,d=d.clone(),d.add(new XF("m",a)),e=Math.floor((c.getTime()-d.getTime())/864E5));d=new XF(Math.floor(a/12),a%12,e);if(d.years>=1)return c=d.years>1?"s":"",d.months===0&&d.days===0?b?d.years+" year"+c:d.years+"Y":b?d.years+" year"+c+" +":d.years+"Y+";if(d.months>=1)return c=d.months>1?"s":"",d.days===0?b?d.months+" month"+c:d.months+"M":b?d.months+" month"+c+" +":d.months+
"M+";c=d.days>1?"s":"";return b?d.days+" day"+c:d.days+"D"};vS.\u0275fac=function(a){return new (a||vS)};vS.\u0275prov=Dc({token:vS,factory:vS.\u0275fac,providedIn:"root"});var wS=new dd("routeParams",{factory:function(){return p(WQ).params}});var xS=function(){this.routeParams=p(wS);this.issueComments=p(sS);this.draftStore=p(bS);this.errorHandler=p(pO);this.activeSession=p(uu);this.dateFormatter=p(vS)};
xS.prototype.get=function(a){var b=this;if(this.routeParams.comment)return ce(this.routeParams.comment);var c=this.routeParams.template_issue;if(c){var d=Number(this.routeParams.template_comment)||1;return ne(function(){return nnd(b,c,d,b.routeParams.do_attribution)})}return a?ce(this.draftStore.$window.sessionStorage.getItem(Lr(a))||""):ce("")};
var nnd=function(a,b,c,d){var e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:return Wd(x,2),z(x,a.issueComments.get(b,c),4);case 4:return e=x.yieldResult,f=e.unlinkifiedComment,g=e.formattedComment,k="",f?k=f:g&&(k=uTa(g)),z(x,fe(a.dateFormatter.formatUserCalendar(new Date(Number(e.lastModified)/1E3))),5);case 5:return l=x.yieldResult,d?(r="> From issue "+b+" on "+l+":",x.return(r+"\n\n"+k)):x.return(k);case 2:return w=$d(x),rO(a.errorHandler,w),x.return("")}})};
xS.\u0275fac=function(a){return new (a||xS)};xS.\u0275prov=Dc({token:xS,factory:xS.\u0275fac,providedIn:"root"});var ond=function(a,b,c,d,e){var f=this;this.issueId=a;this.defaultCommentSource=b;this.issueFullFridge=c;this.activeSession=d;this.userPreferencesManager=e;this.comment=function(){return Br(f.comment$)};this.judgementForNewContent=function(){return Br(f.judgementForNewContent$)};this.issue$=this.issueFullFridge.watch(this.issueId);this.componentId$=this.issue$.pipe(A(function(g){return g==null?void 0:g.snapshot[0].componentId}),nf());this.comment$=this.defaultCommentSource.get(this.issueId).pipe(xf(""),
nf(),Cf(this.userPreferencesManager.currentCommentFormattingMode$),A(function(g){var k=m(g);g=k.next().value;k=k.next().value;g=new uS(g);g.formattingMode=k;return g}),vf({bufferSize:1,refCount:!0}));this.createRestrictedResourcesComponentIds=this.activeSession.getCreateRestrictedSubresourcesComponentIds();this.componentJudgementForNewContent$=this.componentId$.pipe(A(function(g){if(g&&f.createRestrictedResourcesComponentIds.includes(g))return{severity:"RESTRICTED",judgementReason:"None Specified"}}),
vf({bufferSize:1,refCount:!0}));this.userDefinedJudgementForNewContent$=new Mj(void 0);this.judgementForNewContent$=ie([this.componentJudgementForNewContent$.pipe(xf(void 0)),this.userDefinedJudgementForNewContent$]).pipe(A(function(g){var k=m(g);g=k.next().value;k=k.next().value;return k!=null?k:g}),vf({bufferSize:1,refCount:!0}))};ond.prototype.setJudgementForNewContent=function(a){this.userDefinedJudgementForNewContent$.next(a)};
var pnd=function(a){var b=a.comment(),c,d=((c=a.judgementForNewContent())==null?void 0:c.severity)==="NONE_DETECTED"?void 0:a.judgementForNewContent();a=b.value;c=b.formattingMode;var e=[];b=m(b.uploads);for(var f=b.next();!f.done;f=b.next())f=f.value,f.state===2&&f.blobRef&&(f=nm({attachment:f.blobRef}),d&&(f.contentJudgement={severity:d.severity,judgementReason:d.judgementReason}),e.push(f));return{judgementForNewContent:d,commentText:a,formattingMode:c,attachmentsWithJudgements:e}},qnd=function(a){var b=
pnd(a),c=b.attachmentsWithJudgements;a={issueId:a.issueId,actions:[]};b.commentText&&a.actions.push({fieldName:"comment"});c.length&&a.actions.push({fieldName:"attachments"});return a},yS=function(){this.defaultCommentSource=p(xS);this.issueFullFridge=p(gQ);this.activeSession=p(uu);this.userPreferencesManager=p(hR)};yS.prototype.create=function(a){return new ond(a,this.defaultCommentSource,this.issueFullFridge,this.activeSession,this.userPreferencesManager)};
yS.\u0275fac=function(a){return new (a||yS)};yS.\u0275prov=Dc({token:yS,factory:yS.\u0275fac,providedIn:"root"});var f7a=[{customFieldId:1049928,name:"Start Date"},{customFieldId:1049953,name:"End Date"},{customFieldId:1049954,name:"Risk"},{customFieldId:1255458,name:"Commitment Level"},{customFieldId:1350993,name:"Requirements doc"},{customFieldId:1350984,name:"Design doc"},{customFieldId:1351039,name:"Mocks url"}],g7a=[{customFieldId:192850,name:"Start Date"},{customFieldId:192876,name:"End Date"},{customFieldId:194618,name:"Risk"},{customFieldId:207778,name:"Commitment Level"},{customFieldId:218363,name:"Requirements doc"},
{customFieldId:218337,name:"Design doc"},{customFieldId:218261,name:"Mocks url"}];var zS=function(){};zS.prototype.isSloStartTimeApplied=function(a){return!!a&&a.seconds>Date.now()/1E3};
var AS=function(a){return!!a&&!!a.targetTime&&a.targetTime.seconds!==0},rnd=function(a){return AS(a.assignmentBounds)||AS(a.responseBounds)||AS(a.closureBounds)},snd=function(a,b){switch(b){case "ASSIGNMENT":return AS(a.assignmentBounds);case "RESPONSE":return AS(a.responseBounds);case "CLOSURE":return AS(a.closureBounds);default:return rnd(a)}},tnd=function(a){if(!a)return null;var b=[],c=[];a.assignmentBounds&&i7a(b,c,a.assignmentBounds,"ASSIGNMENT");a.responseBounds&&i7a(b,c,a.responseBounds,"RESPONSE");
a.closureBounds&&i7a(b,c,a.closureBounds,"CLOSURE");return b.length>0?(b.sort(j7a),b[0]):c.length>0?(c.sort(j7a),{sloBounds:c[0].sloBounds,sloMetric:""}):null};zS.\u0275fac=function(a){return new (a||zS)};zS.\u0275prov=Dc({token:zS,factory:zS.\u0275fac,providedIn:"root"});var und=function(a,b,c,d,e){var f=this;this.issueId=a;this.issueFullFridge=b;this.constants=c;this.activeSession=d;this.sloStatusHelpersService=e;this.enableNonWtdmFieldPerTypeVisibility=this.activeSession.getFlag("enableNonWtdmFieldPerTypeVisibility")||!1;var g=h7a({isInternal:this.activeSession.isInternalSession(),isProd:xs(this.activeSession)});this.showSloStatus=this.activeSession.isInternalSession();this.showChangelists=!this.activeSession.isExternalSession();this.issue$=this.issueFullFridge.watch(this.issueId);
this.issueSnapshot$=this.issue$.pipe(A(function(k){return k==null?void 0:k.snapshot[0]}));this.hasSloDefined$=this.issue$.pipe(A(function(k){var l;return k==null?void 0:(l=k.aggregatedData)==null?void 0:l.sloStatus}),A(function(k){return!!k&&rnd(k)}));this.isWtdmType$=this.issueSnapshot$.pipe(A(function(k){return(k==null?void 0:k.type)!=null&&f.constants.isWTDMType(k.type)}));this.isForgottenFourPrimary$=this.isWtdmType$.pipe(A(function(k){return!k&&!f.enableNonWtdmFieldPerTypeVisibility}));this.isSloStatusPrimary$=
ie([this.hasSloDefined$,this.isWtdmType$]).pipe(A(function(k){var l=m(k);k=l.next().value;l=l.next().value;return k||!l}));this.isSeverityPrimary$=this.isWtdmType$.pipe(A(function(k){return!k}));this.isChangelistPrimary$=ie([this.isWtdmType$,this.issueSnapshot$]).pipe(A(function(k){var l=m(k);k=l.next().value;l=l.next().value;var r;return!k||!!(l==null?0:(r=l.changelist)==null?0:r.length)||(l==null?void 0:l.type)==="STORY"||(l==null?void 0:l.type)==="TASK"}));this.customFields$=this.issue$.pipe(A(function(k){var l;
return(l=k==null?void 0:k.customFields)!=null?l:[]}));this.visibleFields$=this.issue$.pipe(A(function(k){var l;return(l=k==null?void 0:k.visibleFields)!=null?l:[]}));this.visibleFieldIds$=this.visibleFields$.pipe(A(function(k){return k.map(function(l){return l.customFieldId}).filter(Pm)}),A(function(k){return new Set(k)}),vf({refCount:!0,bufferSize:1}));this.visibleGlobalCustomFields$=ie([this.customFields$,this.visibleFieldIds$]).pipe(A(function(k){var l=m(k);k=l.next().value;var r=l.next().value;
return new Map(k.filter(function(w){return w.shared&&r.has(w.customFieldId)}).map(function(w){return[w.customFieldId,w]}))}),A(function(k){return g.map(function(l){return k.get(l.customFieldId)}).filter(Pm)}),vf({refCount:!0,bufferSize:1}));this.visibleCustomFields$=ie([this.visibleFieldIds$,this.customFields$]).pipe(A(function(k){k=m(k);var l=k.next().value;return k.next().value.filter(function(r){return!r.shared&&l.has(r.customFieldId)})}),vf({refCount:!0,bufferSize:1}));this.hiddenCustomFields$=
ie([this.visibleFieldIds$,this.customFields$]).pipe(A(function(k){k=m(k);var l=k.next().value;return k.next().value.filter(function(r){return!l.has(r.customFieldId)})}),vf({refCount:!0,bufferSize:1}));this.hiddenFieldCount$=ie([this.isForgottenFourPrimary$,this.isSeverityPrimary$,this.isSloStatusPrimary$,this.isChangelistPrimary$,this.hiddenCustomFields$]).pipe(A(function(k){var l=m(k);k=l.next().value;var r=l.next().value;var w=l.next().value;var x=l.next().value;l=l.next().value;return(k?0:4)+(r?
0:1)+(!f.showSloStatus||w?0:1)+(!f.showChangelists||x?0:2)+l.length}),vf({refCount:!0,bufferSize:1}));this.hasHiddenFields$=this.hiddenFieldCount$.pipe(A(function(k){return k>0}));this.showHiddenFieldsLabel$=this.hiddenFieldCount$.pipe(A(function(k){return k===1?"Show 1 additional field":"Show "+k+" additional fields"}))},BS=function(){this.issueFullFridge=p(gQ);this.constants=p(gS);this.activeSession=p(uu);this.sloStatusHelpersService=p(zS)};
BS.prototype.create=function(a){return new und(a,this.issueFullFridge,this.constants,this.activeSession,this.sloStatusHelpersService)};BS.\u0275fac=function(a){return new (a||BS)};BS.\u0275prov=Dc({token:BS,factory:BS.\u0275fac,providedIn:"root"});var CS=function(){Z.apply(this,arguments);this.analytics=p(eQ);this.clearcut=p(YP);this.userActivity=p(cQ);this.stopActivityTracking$=new qf;this.issueToTrackingState=new Map;this.getState=co(this.issueToTrackingState,k7a);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");this.onUserActiveStatusUpdate.bind(this)};Y(CS,Z);
CS.\u0275dir=Z.\u0275dir;var vnd=function(a,b){a.getState(b);a.userActivity.active$.pipe(nf(),zf(a.stopActivityTracking$)).subscribe(function(c){return void a.onUserActiveStatusUpdate(b,c)})},Tr=function(a,b,c){var d=a.getState(b);c&&(d.editCount++,a.trackEdit(c.label,c.value));d.firstActionSeen||(b=a.getState(b),c=Date.now()-b.startTime,a.trackFirstAction("time-to-action",c),wnd(a,c,"idp-time-to-action",b.variations),d.firstActionSeen=!0)};
CS.prototype.onUserActiveStatusUpdate=function(a,b){var c=this.getState(a),d=Date.now()-c.sessionStartTime;if(b)c.sessionStartTime=Date.now();else if(!(d<1E3)){ZP(this.clearcut,d,"idp-session-time");b=this.clearcut;var e=c.sessionStartTime;d=Date.now();a=(new Igd).setIssueId(a).setUserAction(1).setEnvironmentType(b.environmentType).setFrontendAccessMode(b.frontendAccessMode);var f=new Hgd,g=new Ggd;e=gyc(g,1,e);d=gyc(e,2,d);d=Mi(f,Ggd,1,d);a=Mi(a,Hgd,2,d);b.clearcutTransport.transport.dispatch(a);
c.sessionStartTime=Date.now()}};var nu=function(a,b,c){a.getState(b).variations.add(c)},wnd=function(a,b,c,d){ZP(a.clearcut,b,c);d=m(d);for(var e=d.next();!e.done;e=d.next())ZP(a.clearcut,b,c+"-"+e.value)};CS.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(CS)))(b||CS)}}();CS.\u0275prov=Dc({token:CS,factory:CS.\u0275fac,providedIn:"root"});var xnd={type:"TAKE",displayText:"Assign to me",description:"Assign issue to yourself"},ynd={type:"DEFAULT_ASSIGNEE",displayText:"Assign to default",description:"Use the component's default assignee"},znd={type:"START",displayText:"Start work",description:"Change issue status to '"+zm.get("ACCEPTED")+"'"},And={type:"FIX",displayText:"Mark fixed",description:"Change issue status to '"+zm.get("FIXED")+"'"},Bnd={type:"VERIFY",displayText:"Verify",description:"Change issue status to '"+zm.get("VERIFIED")+
"'"},Cnd={type:"REOPEN",displayText:"Re-open",description:"Change issue status back to '"+zm.get("ASSIGNED")+"'"};var End=function(a,b,c,d){var e=this;this.issueId=a;this.activeSession=b;this.issueFullFridge=c;this.componentTemplatesFridge=d;this.defaultAssigneeQuickActionEnabled=this.activeSession.isInternalSession();this.issue$=this.issueFullFridge.watch(this.issueId).pipe(vf({bufferSize:1,refCount:!0}));this.issueSnapshot$=this.issue$.pipe(A(function(f){return f==null?void 0:f.snapshot[0]}));this.currentAssignee$=this.issueSnapshot$.pipe(A(function(f){return(f==null?void 0:f.assigneeUser)&&wm(f.assigneeUser)}),
A(Mm));this.defaultAssigneeForComponent$=this.issueSnapshot$.pipe(A(function(f){return f==null?void 0:f.componentId}),nf(),yf(function(f){return f?e.componentTemplatesFridge.defaultTemplate$(String(f)):ce(void 0)}),A(function(f){return f&&wm(f.snapshot.assigneeUser)}),vf({bufferSize:1,refCount:!0}));this.issueAssigneeQuickAction$=ie([this.currentAssignee$,this.defaultAssigneeForComponent$]).pipe(A(function(f){var g=m(f);f=g.next().value;g=g.next().value;return e.defaultAssigneeQuickActionEnabled&&
g&&f!==g?ynd:void 0}));this.issueStatusQuickAction$=this.issueSnapshot$.pipe(A(function(f){return f&&Dnd(e,f)}))},Fnd=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1){switch(c.type){case "TAKE":b.status==="NEW"&&(b.status="ASSIGNED");b.assignee=a.activeSession.getUserEmail();break;case "DEFAULT_ASSIGNEE":return e.jumpTo(2);case "START":b.status="ACCEPTED";break;case "FIX":b.status="FIXED";break;case "VERIFY":b.status="VERIFIED";break;case "REOPEN":b.status=b.assignee?"ASSIGNED":"NEW";
break;default:wb(c.type)}return e.jumpTo(0)}if(e.nextAddress!=4)return z(e,fe(a.defaultAssigneeForComponent$),4);if(d=e.yieldResult)b.status==="NEW"&&(b.status="ASSIGNED"),b.assignee=d;return e.jumpTo(0)})},Dnd=function(a,b){a=a.activeSession.getUserEmail();var c=b.status;if(wm(b.verifierUser)===a&&c==="FIXED")return Bnd;if(wm(b.assigneeUser)===a)switch(c){case "ASSIGNED":return znd;case "ACCEPTED":return And;default:return Cnd}switch(c){case "NEW":return xnd;case "ASSIGNED":return xnd;case "ACCEPTED":return xnd;
default:return Cnd}},DS=function(){this.activeSession=p(uu);this.issueFullFridge=p(gQ);this.componentTemplatesFridge=p(XO)};DS.prototype.create=function(a){return new End(a,this.activeSession,this.issueFullFridge,this.componentTemplatesFridge)};DS.\u0275fac=function(a){return new (a||DS)};DS.\u0275prov=Dc({token:DS,factory:DS.\u0275fac,providedIn:"root"});var Gnd={COMMENT_EDIT:"commentEdit",RETENTION:"retention",SUBSCRIBE:"subscribe",UNDELETE_ATTACHMENT:"undeleteAttachment",DELETE_ATTACHMENT:"deleteAttachment",COMMENT_UNDELETE:"commentUndelete",COMMENT_DELETE:"commentDelete"},Hnd=function(){this.fields=new aR};Hnd.prototype.get=function(a){return this.fields.has(l7a(a))};
var Ind=function(a,b){return Cs(a.fields,l7a(b))},Sr=function(a,b){a.fields.add(l7a(b))},ES=function(a,b){a.fields.delete(l7a(b))},Jnd=function(a){var b=[],c=[],d=[];a=m(a.fields);for(var e=a.next();!e.done;e=a.next())if(e=e.value,typeof e==="string"&&e.startsWith("customField:"))b.push(e.split(":")[1]);else{var f=void 0,g=Gnd,k=(f=Jcd.get(g))!=null?f:new Set(Object.values(g));Jcd.set(g,k);k.has(e)?d.push(e):c.push(e)}return{fields:c,extraFields:d,customFields:b}};var m7a={QA:{157:[{emailAddress:"security@chromium.org"}]},PROD:{157:[{emailAddress:"security@chromium.org"}]}};var FS=function(){};FS.prototype.transform=function(a){return o7a(a)};FS.\u0275fac=function(a){return new (a||FS)};FS.\u0275pipe=cf({name:"appendDomain",type:FS,pure:!0,standalone:!1});var s7a={"\u2705":"good","\u26a0\ufe0f":"warn","\u26a0":"warn","\u26d4":"bad","\u274c":"bad","\ud83d\uded1":"bad","\ud83d\udeab":"bad"},u7a=RegExp("(^|[/;,\\-\\s])+(\\d+)","g"),v7a=RegExp("(b|b-qa|issues)\\/(\\d+)","g"),Knd=/[\u200b\u2060\u200c\u200d]/u;var GS=function(){var a=this;this.activeSession=p(uu);this.butterBar=p(UN);this.issueInteractionsTracking=p(CS);this.issueApi=p(MP);this.componentFridge=p(RO);this.permissionsFridge=p(CQ);this.eventsForIssueFridge=p(NP);this.statusMessages=p(jS);this.errorHandler=p(pO);this.confirmationDialogService=p(dS);this.principalTypes=p(EQ);this.issuePermissionService=p($Q);this.accessPolicy=p(KO);this.issueTypeDialog=p(eS);this.logger=p(nO);this.issueFullFridge=p(gQ);this.confirmNoAccessService=p(tS);this.issueService=
p(SP);this.attachmentsMember=p(oS);this.userPreferencesManager=p(hR);this.issueComments=p(sS);this.draftStore=p(bS);this.attachmentApi=p(nS);this.issueFieldsFactory=p(BS);this.issueQuickActionsFactory=p(DS);this.issueCommentDraftFactory=p(yS);this.implicitTriageService=p(TR);this.analytics=p(eQ);this.isSavingMap=new Map;this.savingState=co(this.isSavingMap,function(){return new Hnd});this.issueFieldsMap=new Map;this.issueFields=co(this.issueFieldsMap,function(b){return a.issueFieldsFactory.create(b)});
this.issueQuickActionsMap=new Map;this.issueQuickActions=co(this.issueQuickActionsMap,function(b){return a.issueQuickActionsFactory.create(b)});this.editableIssueMap=new Map;this.editableIssue$=co(this.editableIssueMap,function(b){return Lnd(a,b)});this.editableIssue=function(b){return a.editableIssue$(b).value};this.subscriptions=new Map;this.getSubscription=co(this.subscriptions,function(){return new Pd});this.issueCommentDraftMap=new Map;this.issueCommentDraft=co(this.issueCommentDraftMap,function(b){var c=
a.issueCommentDraftFactory.create(b);a.getSubscription(b).add(c.judgementForNewContent$.subscribe());return c});this.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY={saveCommentDraft:this.saveCommentDraft.bind(this)}};GS.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()};
GS.prototype.updateComponent=function(a,b,c,d){var e=this,f,g,k,l,r,w;return y(function(x){if(x.nextAddress==1)return f=e.editableIssue(a),f.componentId=b,(g=Mnd(e,f))&&g.actions&&g.actions.length?z(x,e.getRetentionState(a),2):x.return();k=x.yieldResult;Nnd(e,g);l={issueId:a,componentId:b};r=Object.assign({},l,{setLimitViewTrusted:d});w=c?e.issueApi.moveIssueExternal(a,r):e.issueApi.moveIssue(a,l);return x.return(Ond(e,w,g,{originalRetentionState:k}))})};
var RSb=function(a,b,c){var d,e;return y(function(f){if(!c)return a.butterBar.showWarning("Reporter can't be empty."),f.return();d=a.editableIssue(b);d.setReporter(c);return f.return((e=HS(a,d))!=null?e:Promise.resolve())})},Pnd=function(a,b,c,d){var e,f,g,k,l,r;return y(function(w){switch(w.nextAddress){case 1:e=AQa(c);if(!e)return a.logger.warn("unknown issue type: "+c),w.return();f=a.editableIssue(b);if(e!=="VULNERABILITY"&&e!=="PRIVACY_ISSUE"){w.jumpTo(2);break}return z(w,smd(a.issueTypeDialog,
e),3);case 3:if(g=w.yieldResult,!g)return w.return();case 2:if(!d||e!=="VULNERABILITY"){w.jumpTo(4);break}k=n7a(a.activeSession.getEnvironmentType(),d);if(k===void 0){w.jumpTo(4);break}Wd(w,6);return z(w,a.issueApi.markAsVulnerability(b,k),8);case 8:a.permissionsFridge.poke(cq(b));a.issueFullFridge.poke(b);dt(w,7);break;case 6:l=$d(w),rO(a.errorHandler,l);case 7:return w.return(Promise.resolve());case 4:return f.setType(e),w.return((r=HS(a,f))!=null?r:Promise.resolve())}})},TSb=function(a,b,c){var d,
e,f;return y(function(g){d=zQa(c);if(!d)return a.logger.warn("unknown priority: "+c),g.return();e=a.editableIssue(b);e.setPriority(d);return g.return((f=HS(a,e))!=null?f:Promise.resolve())})},Rnd=function(a,b,c){var d,e,f;return y(function(g){d=a.editableIssue(b);d.duplicateOfIssueId=c;d.status="DUPLICATE";e=Mnd(a,d);return e?(f=e.actions.find(function(k){return k.fieldName==="duplicateOfIssueId"&&!ya(k.value||"")}))&&f.value?g.return(Qnd(a,b,{actionIssueId:f.value,implicitAppenders:d.cc,implicitEditors:[],
isDeduping:!0,isRemovingSelfFromCc:!1,requestData:e})):g.return():g.return()})},Snd=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.setStatus(c);return f.return((e=HS(a,d))!=null?e:Promise.resolve())})},Tnd=function(a,b,c){var d,e,f;return y(function(g){if(g.nextAddress==1){if(!c)return g.return();d=a.editableIssue(b);e=a.issueQuickActions(b);return z(g,Fnd(e,d,c),2)}return g.return((f=HS(a,d))!=null?f:Promise.resolve())})},SRb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);
var g;d.effortEstimate=(g=c==null?void 0:c.estimate)!=null?g:null;return f.return((e=HS(a,d))!=null?e:Promise.resolve())})},BSb=function(a,b,c){var d,e,f;return y(function(g){d=a.editableIssue(b);e=ZQa(c,!1);d.foundInVersion=e;return g.return((f=HS(a,d))!=null?f:Promise.resolve())})},FSb=function(a,b,c){var d,e,f;return y(function(g){d=a.editableIssue(b);e=ZQa(c,!1);d.verifiedInVersion=e;return g.return((f=HS(a,d))!=null?f:Promise.resolve())})},DSb=function(a,b,c){var d,e,f;return y(function(g){d=
a.editableIssue(b);e=ZQa(c,!1);d.targetedToVersion=e;return g.return((f=HS(a,d))!=null?f:Promise.resolve())})},HSb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.setInProd(c);return f.return((e=HS(a,d))!=null?e:Promise.resolve())})},wSb=function(a,b,c){var d,e,f;return y(function(g){d=BQa(c);if(!d)return a.logger.warn("unknown severity: "+c),g.return();e=a.editableIssue(b);e.setSeverity(d);return g.return((f=HS(a,e))!=null?f:Promise.resolve())})};
GS.prototype.updateSloStartTime=function(a,b){var c=this,d,e;return y(function(f){d=c.editableIssue(a);d.sloStartTime=b;return f.return((e=HS(c,d))!=null?e:Promise.resolve())})};GS.prototype.updateSloEndTime=function(a,b){var c=this,d,e;return y(function(f){d=c.editableIssue(a);d.setSloEndTime(b);return f.return((e=HS(c,d))!=null?e:Promise.resolve())})};
var ySb=function(a,b,c){var d,e,f;y(function(g){d=a.editableIssue(b);d.changelist=(e=c)!=null?e:[];return g.return((f=HS(a,d))!=null?f:Promise.resolve())})},zSb=function(a,b,c){var d,e,f;y(function(g){d=a.editableIssue(b);d.gerritChanges=(e=c)!=null?e:[];return g.return((f=HS(a,d))!=null?f:Promise.resolve())})};GS.prototype.updateCustomField=function(a,b,c){var d=this,e,f;return y(function(g){e=d.editableIssue(a);e.setCustomField(b,c);return g.return((f=HS(d,e))!=null?f:Promise.resolve())})};
var XSb=function(a,b,c){var d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?z(k,Und(a,b,"verifier",[c]),5):z(k,end(a.confirmNoAccessService,{componentId:d.componentId,userEmails:[c],relation:"writer",analyticsEventLabel:"verifier"}),4);case 4:e=k.yieldResult;if(!e)return k.return();k.jumpTo(3);break;case 5:if(f=k.yieldResult,!f)return k.return();case 3:return d.setVerifier(c),k.return((g=HS(a,d))!=null?g:Promise.resolve())}})},
VSb=function(a,b,c){var d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?z(k,Und(a,b,"assignee",[c]),5):z(k,end(a.confirmNoAccessService,{componentId:d.componentId,userEmails:[c],relation:"writer",analyticsEventLabel:"assignee"}),4);case 4:e=k.yieldResult;if(!e)return k.return();k.jumpTo(3);break;case 5:if(f=k.yieldResult,!f)return k.return();case 3:return d.setAssignee(c),k.return((g=HS(a,d))!=null?g:Promise.resolve())}})},
Vnd=function(a,b,c){var d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return z(r,Und(a,b,"CC",c),5);e=YZa(d.cc,c);f=e.added;return z(r,end(a.confirmNoAccessService,{componentId:d.componentId,userEmails:f,relation:"reader",analyticsEventLabel:"cc"}),4);case 4:g=r.yieldResult;if(!g)return r.return();r.jumpTo(3);break;case 5:if(k=r.yieldResult,!k)return r.return();case 3:return d.cc=c,r.return((l=HS(a,d))!=null?
l:Promise.resolve())}})},Wnd=function(a,b,c){var d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return z(r,Und(a,b,"collaborators",c),5);e=YZa(d.collaborators,c);f=e.added;return z(r,end(a.confirmNoAccessService,{componentId:d.componentId,userEmails:f,relation:"reader",analyticsEventLabel:"collaborators"}),4);case 4:g=r.yieldResult;if(!g)return r.return();r.jumpTo(3);break;case 5:if(k=r.yieldResult,!k)return r.return();
case 3:return d.setCollaborators(c),r.return((l=HS(a,d))!=null?l:Promise.resolve())}})},Xnd=function(a,b,c){var d;return y(function(e){d=a.editableIssue(b);d.setStaffing(c);return e.return(HS(a,d))})};GS.prototype.unarchive=function(a){var b=this,c,d;return y(function(e){c=b.editableIssue(a);c.setIsArchived(!1);return e.return((d=HS(b,c))!=null?d:Promise.resolve())})};
GS.prototype.updateIssueRetention=function(a,b){var c=this,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return d={issueId:a,retention:b},e=c.savingState(a),Sr(e,"retention"),Wd(g,2,3),z(g,c.issueApi.updateIssueRetention(a,d),5);case 5:return z(g,c.issueFullFridge.poke(a),6);case 6:Rr(c.butterBar,"Issue retention updated to "+b+".",4E3);case 3:Xd(g);ES(e,"retention");Zd(g,0);break;case 2:f=$d(g),rO(c.errorHandler,f),g.jumpTo(3)}})};
var Ynd=function(a,b){var c,d,e;return y(function(f){c=a.editableIssue(b);c.setIsDeleted(!0);c.setDeletionReason("ABUSE");d=Mnd(a,c);if(!d||!d.actions)return f.jumpTo(0);Nnd(a,d);e=a.issueService.delete(b,"ABUSE");return z(f,Ond(a,e,d),0)})},N9b=function(a,b){var c,d,e;return y(function(f){c=a.editableIssue(b);c.setIsDeleted(!1);c.setDeletionReason(null);d=Mnd(a,c);if(!d||!d.actions)return f.jumpTo(0);Nnd(a,d);e=a.issueService.undelete(b);return z(f,Ond(a,e,d),0)})};
GS.prototype.updateSubscription=function(a,b){var c=this,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:return d=c.savingState(a),z(l,fe(c.issueFullFridge.watch(a,{trustUncertainMemory:!0})),2);case 2:e=l.yieldResult;g=(f=e)==null?void 0:f.userData;if(g==null||d.get("subscribe"))return l.return();Wd(l,3,4);Sr(d,"subscribe");return z(l,c.issueFullFridge.setNotificationSubscription(a,b),4);case 4:Xd(l);ES(d,"subscribe");Zd(l,0);break;case 3:k=$d(l),rO(c.errorHandler,k),l.jumpTo(4)}})};
var Znd=function(a,b,c){var d,e;y(function(f){switch(f.nextAddress){case 1:d=a.savingState(b);if(!c.attachmentId||c.attachmentId==="0"||d.get("undeleteAttachment"))return f.return();Wd(f,2,3);Rr(a.butterBar,"Restoring attachment...");Sr(d,"undeleteAttachment");return z(f,a.attachmentsMember.undelete(b.toString(),c),5);case 5:Rr(a.butterBar,"Attachment restored."),a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b);case 3:Xd(f);ES(d,"undeleteAttachment");Zd(f,0);break;case 2:e=$d(f),rO(a.errorHandler,
e),f.jumpTo(3)}})},$nd=function(a,b,c,d){var e,f;return y(function(g){switch(g.nextAddress){case 1:e=a.savingState(b);if(!c.attachmentId||c.attachmentId==="0"||e.get("deleteAttachment"))return g.return();Wd(g,2,3);Rr(a.butterBar,"Deleting attachment...");Sr(e,"deleteAttachment");return z(g,a.attachmentsMember.delete(b,c,d),5);case 5:Rr(a.butterBar,"Attachment deleted."),a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b);case 3:Xd(g);ES(e,"deleteAttachment");Zd(g,0);break;case 2:f=$d(g),rO(a.errorHandler,
f),g.jumpTo(3)}})};
GS.prototype.saveCommentDraft=function(a,b){var c=this,d=this.issueCommentDraft(a),e=d.comment(),f=pnd(d);if(!f.commentText&&!f.attachmentsWithJudgements.length)return Promise.resolve();var g=qnd(d);Nnd(this,g);return Ond(this,function(){return y(function(k){switch(k.nextAddress){case 1:return z(k,aod(c,a),2);case 2:if(!f.commentText){k.jumpTo(3);break}c.activeSession.isExternalSession()&&bod(c,a);return z(k,c.issueComments.create(String(a),f.commentText,f.formattingMode,f.judgementForNewContent,b),
4);case 4:e.reset(),c.draftStore.$window.sessionStorage.removeItem(Lr(a));case 3:if(!f.attachmentsWithJudgements.length){k.jumpTo(5);break}var l=c.attachmentApi;var r=f.attachmentsWithJudgements,w=(new Lmd).setIssueId(String(a));r!==void 0&&(r=r.map(Z6a),Ni(w,3,r));l=l.executor.post({url:"action/issues/"+a+"/attachments",body:w,responseConstructor:mS}).then(a7a);return z(k,l,6);case 6:e.reset();case 5:return d.setJudgementForNewContent(),k.return(c.issueFullFridge.poke(a))}})}(),g)};
var aod=function(a,b){var c,d;return y(function(e){if(!iR(a.userPreferencesManager).autoCcOnComment||!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.isCurrentUserCCd())return e.return();var f=c=a.editableIssue(b),g=[].concat(q(c.cc),[a.activeSession.getUserEmail()]);f.cc=g;d={issueId:b,actions:[{fieldName:"ccs",value:a.activeSession.getUserEmail(),actionType:"ADD"}]};return z(e,a.issueApi.updateIssue(b,d),0)})},Lnd=function(a,b){var c=a.issueFullFridge.watch(b).pipe(A(function(e){var f=
new Zld;e&&(e=cod(a,e),f.currentUserEmail=a.activeSession.getUserEmail(),f.setData(e));return f})),d=new Mj(new Zld);a.getSubscription(b).add(c.subscribe(d));return d},HS=function(a,b){function c(H){k=H}function d(H){l=H}var e=b.issueId,f=Mnd(a,b);if(!f)return null;for(var g=!1,k=[],l=[],r=e,w=m(f.actions),x=w.next();!x.done;x=w.next()){x=x.value;var C=x.value||"";if(x.actionType!=="REMOVE")switch(x.fieldName){case "ccs":c(C.split(",").filter(Boolean));break;case "verifier":case "assignee":case "collaborators":d(C.split(",").filter(Boolean));
break;case "duplicateOfIssueId":ya(C)||(k=b.cc,r=String(C),g=!0)}}return Qnd(a,e,{actionIssueId:r,implicitAppenders:k,implicitEditors:l,isDeduping:g,isRemovingSelfFromCc:f.actions.length===1&&f.actions[0].fieldName==="ccs"&&f.actions[0].actionType==="REMOVE"&&a.activeSession.getUserEmail()===f.actions[0].value,requestData:f})},Qnd=function(a,b,c){var d=c.actionIssueId;var e=c.implicitAppenders;var f=c.implicitEditors;var g=c.isDeduping;var k=c.isRemovingSelfFromCc;var l=c.requestData;var r,w,x,C,
H,J,O,R,V,ca,na,ua,ia,Ga;return y(function(ha){switch(ha.nextAddress){case 1:return z(ha,Promise.all([dod(a,e,"appender",d),dod(a,f,"writer",d)]),2);case 2:r=ha.yieldResult;w=m(r);x=w.next().value;C=w.next().value;H=x;J=C;O=H.noAccessEmails||[];R=J.noAccessEmails||[];V=[].concat(q(O),q(R));if(V.length===0)return ha.return(eod(a,l,g,k));Wd(ha,3);return z(ha,Promise.all(V.map(function(sa){return fod(a,sa)})),5);case 5:return ca=ha.yieldResult,na=r2a({userPrincipals:ca,newEditors:R,newImplicitUsers:V,
isExternalSession:a.activeSession.isExternalSession(),issueId:b,actionIssueId:d}),ua=na.title,ia=na.content,z(ha,qmd(a.confirmationDialogService,{title:ua,content:Bh(ia),confirmButtonText:"Allow"}),6);case 6:if(Ga=ha.yieldResult)return ha.return(eod(a,l,g,k));a.permissionsFridge.poke(cq(b));a.issueFullFridge.poke(b);dt(ha,0);break;case 3:$d(ha),a.butterBar.showWarning("Could not determine email type."),ae(ha)}})},eod=function(a,b,c,d){Nnd(a,b);var e=b.issueId;c?(c=a.editableIssue(String(e)),e=a.issueApi.relateIssue(e,
{issueId:e,targetIds:[c.duplicateOfIssueId],actionType:"ADD",relation:"DUPLICATE"})):e=d?a.issueApi.unCcUser(b.issueId):a.issueApi.updateIssue(e,b);return Ond(a,e,b)},dod=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?null:f;if(e&&!f)throw Error("De");var g=e?"ISSUE_DEFAULTS":"ISSUE";d=e?f:d;e={noAccessEmails:[]};return b.length!==0&&a.issuePermissionService.isImplicitAccessEnabled()?a.accessPolicy.checkPermission(b.map(o7a),c,g,d):Promise.resolve(e)},cod=function(a,b){var c=b.issueId,d=a.isSavingMap.get(c),
e;a=(e=a.editableIssueMap.get(c))==null?void 0:e.value;if(!a||!d)return b;b=nm(b);e=Ia(b.snapshot);c=Jnd(d);d=c.customFields;c=m(c.fields);for(var f=c.next();!f.done;f=c.next()){var g=void 0;(g=hmd.get(f.value))==null||g(e,a)}d=m(d);f=d.next();for(c={};!f.done;c={customFieldId$jscomp$16:void 0},f=d.next())f=f.value,c.customFieldId$jscomp$16=rm(f),c=(e.customField||[]).find(function(k){return function(l){return l.customFieldId===k.customFieldId$jscomp$16}}(c)),f=a.customFieldMap[f],c&&f&&(c.textValue=
f.textValue,c.dateValue=f.dateValue,c.enumValue=f.enumValue,c.numericValue=f.numericValue);return b},Mnd=function(a,b){var c=fmd(b);if(!c)return null;var d=a.isSavingMap.get(String(b.issueId));c.actions=c.actions.filter(function(e){return!(d==null?0:d.get(y7a(e)))});return c.actions.length?c:null},Nnd=function(a,b){var c=String(b.issueId);Rr(a.butterBar,"Saving...",0);var d=b.actions.map(function(e){return e.fieldName}).join(",");Tr(a.issueInteractionsTracking,c,{label:d});a=a.savingState(c);b=m(b.actions);
for(c=b.next();!c.done;c=b.next())Sr(a,y7a(c.value))},Ond=function(a,b,c,d){var e,f;return y(function(g){switch(g.nextAddress){case 1:return Wd(g,2),z(g,b,4);case 4:return e=g.yieldResult,hQ(a.issueFullFridge,[c.issueId],{eagerUpdate:!1,userActivityType:"EDIT"}).finally(function(){var k=String(c.issueId);a.issueFullFridge.poke(k);a.eventsForIssueFridge.poke(k)}),z(g,god(a,c,e,d),5);case 5:dt(g,0);break;case 2:f=$d(g),hod(a,c,f),ae(g)}})},god=function(a,b,c,d){var e=(d===void 0?{}:d).originalRetentionState;
var f,g,k,l;return y(function(r){f=a.savingState(String(b.issueId));g=m(b.actions);for(k=g.next();!k.done;k=g.next())l=k.value,ES(f,y7a(l));Eld(a.implicitTriageService,b.issueId,b.actions);return c?z(r,iod(a,b,e),0):r.jumpTo(0)})},hod=function(a,b,c){var d=String(b.issueId),e=a.savingState(d);b=m(b.actions);for(var f=b.next();!f.done;f=b.next())ES(e,y7a(f.value));a.permissionsFridge.poke(cq(d));a.issueFullFridge.poke(d);Pp(c)&&c.status===403&&Qp(c)?qO(a.errorHandler,Qp(c)):rO(a.errorHandler,c)},iod=
function(a,b,c){var d,e,f,g,k,l,r,w,x,C,H;return y(function(J){switch(J.nextAddress){case 1:return z(J,a.getEffortSpec(String(b.issueId)),2);case 2:d=J.yieldResult;e=a.editableIssue(String(b.issueId));k=Kmd(a.statusMessages,b,e.customFieldMap,(g=(f=d)==null?void 0:f.name)!=null?g:"");if(!c){J.jumpTo(3);break}return z(J,Promise.all([a.getRetentionState(String(b.issueId)),a.getRetention(String(b.issueId))]),4);case 4:l=J.yieldResult;r=m(l);w=r.next().value;x=r.next().value;C=w;H=x;if(H!=="INDEFINITE"&&
c&&C){var O=c.retentionPeriod?BTa(Math.floor(c.retentionPeriod.seconds*1E3/864E5)):"indefinite";var R=C.retentionPeriod?BTa(Math.floor(C.retentionPeriod.seconds*1E3/864E5)):"indefinite";O=O===R?"":" Issue retention period changed from "+O+" to "+R+"."}else O="";k+=O;case 3:Rr(a.butterBar,k),ae(J)}})},Und=function(a,b,c,d){return y(function(e){if(e.nextAddress==1){var f=a.editableIssue(b);var g=a.activeSession.getUserEmail();f=new Map([["CC",f.cc],["collaborators",f.collaborators],["assignee",f.assignee?
[f.assignee]:[]],["verifier",f.verifier?[f.verifier]:[]]]);(new Set([].concat(q(f.values())).flat())).has(g)?(f.set(c,d),g=!(new Set([].concat(q(f.values())).flat())).has(g)):g=!1;e=g?z(e,jod(a,b,a.editableIssue(b).componentId,c),2):e.return(!0)}else e=e.return(e.yieldResult);return e})},jod=function(a,b,c,d){var e;return y(function(f){if(f.nextAddress==1)return z(f,dod(a,[a.activeSession.getUserEmail()],"reader",b,!0,c),2);e=f.yieldResult;return e.noAccessEmails&&e.noAccessEmails.length!==0?f.return(qmd(a.confirmationDialogService,
{title:"Removing yourself from "+d+" may revoke your access to the issue",content:Bh("This issue is in a component with Expanded Access enabled, and you do not have access to view this issue by default. Removing yourself from "+d+" may also remove your ability to view the issue. Are you sure you would like to do this?")})):f.return(!0)})};GS.prototype.getRetentionState=function(a){return fe(this.issueFullFridge.watch(a).pipe(A(G5a)))};GS.prototype.getRetention=function(a){return fe(this.issueFullFridge.watch(a).pipe(A(D5a)))};
GS.prototype.getEffortSpec=function(a){var b=this;return fe(this.issueFullFridge.watch(a).pipe(A(j5a),yf(function(c){return c?b.componentFridge.watch(c):ce(void 0)}),A(J5a)))};var fod=function(a,b){return y(function(c){return a.activeSession.isExternalSession()?c.return({principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}):c.return(FQ(a.principalTypes,b,!0))})};
GS.prototype.ngOnDestroy=function(){this.isSavingMap.clear();this.issueFieldsMap.clear();this.issueQuickActionsMap.clear();this.editableIssueMap.clear();for(var a=m(this.subscriptions.values()),b=a.next();!b.done;b=a.next())b.value.unsubscribe();this.subscriptions.clear()};
var bod=function(a,b){var c,d,e,f,g,k,l,r,w,x;y(function(C){if(C.nextAddress==1)return z(C,fe(a.issueFullFridge.watch(b)),2);if(C.nextAddress!=3)return(c=C.yieldResult)&&(d=c.aggregatedData)!=null&&d.createdTimeMicros?z(C,fe(a.eventsForIssueFridge.watch(b)),3):C.return();e=C.yieldResult;if(!e)return C.return();f=a.activeSession.getUserEmail();g=kod(a,e.events,f);k=a.getLabel(c,g,f);x=Date.now()-Math.max((l=c.aggregatedData)==null?void 0:l.createdTimeMicros,(w=(r=g)==null?void 0:r.modifiedDate)!=null?
w:0);a.analytics.trackEvent("comment","create",k,x);ae(C)})};GS.prototype.getLabel=function(a,b,c){if(!b)return"global";var d,e,f=((d=a.snapshot[0].assigneeUser)==null?void 0:d.emailAddress)===((e=a.snapshot[0].reporterUser)==null?void 0:e.emailAddress),g;a=c===((g=a.snapshot[0].assigneeUser)==null?void 0:g.emailAddress);var k;b=(b==null?void 0:(k=b.userPerformingActionUser)==null?void 0:k.emailAddress)!==c;c=a&&b;return f&&c?"needs-reporter-input":c?"newly-assigned-to-me":"global"};
var kod=function(a,b,c){return lod(b,function(d){var e;if(((e=d.userPerformingActionUser)==null?void 0:e.emailAddress)!==c&&d.preDiffs.some(function(g){return g.name==="assignee"&&g.newValue===a.activeSession.getUserEmail()}))return!0;var f;return((f=d.userPerformingActionUser)==null?void 0:f.emailAddress)===c?!0:!1})},lod=function(a,b){for(var c=a.length-1;c>=0;c--)if(b(a[c]))return a[c]};GS.\u0275fac=function(a){return new (a||GS)};GS.\u0275prov=Dc({token:GS,factory:GS.\u0275fac,providedIn:"root"});var IS=function(){Z.apply(this,arguments);this.issueDetailsBrain=p(YQ);this.issuePermissionService=p($Q);this.editIssueService=p(GS);this.assigneeInProgress$=new uf(1);this.ccInProgress$=new uf(1);this.id$=this.issueDetailsBrain.id$;this.assigneeUpdate$=this.issueDetailsBrain.issueJs$.pipe(A(function(a){return UTa(a)||""}));this.ccUpdate$=this.issueDetailsBrain.issueJs$.pipe(A(function(a){var b;return um((b=ho(a))==null?void 0:b.ccUsers)||[]}));this.assignee$=this.assigneeUpdate$.pipe(vf({refCount:!0,
bufferSize:1}));this.cc$=this.ccUpdate$.pipe(vf({refCount:!0,bufferSize:1}));this.assigneeUpdating$=this.assigneeInProgress$;this.ccUpdating$=this.ccInProgress$;this.editAccess$=this.issuePermissionService.hasAclToEdit$};Y(IS,Z);IS.\u0275dir=Z.\u0275dir;
var mod=function(a,b){var c,d,e;return y(function(f){switch(f.nextAddress){case 1:return z(f,fe(a.id$),2);case 2:c=f.yieldResult;if(!c)return f.return();a.assigneeInProgress$.next(!0);d=b.action==="remove_user"?"":b.email;Wd(f,3,4);return z(f,VSb(a.editIssueService,c,d),6);case 6:return z(f,fe(a.assigneeUpdate$.pipe(ue(function(g){g=b.email===g;return b.action==="set_user"?g:!g}),ve(6E4))),4);case 4:Xd(f);a.assigneeInProgress$.next(!1);Zd(f,0);break;case 3:throw e=$d(f),e;}})},nod=function(a,b){var c,
d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return z(k,fe(a.id$),2);case 2:c=k.yieldResult;if(!c)return k.return();d=a.editIssueService.editableIssue(c);e=d.cc.includes(b.email);f=void 0;b.action!=="set_user"||e?b.action==="remove_user"&&e&&(f=Vnd(a.editIssueService,c,d.cc.filter(function(l){return l!==b.email}))):f=Vnd(a.editIssueService,c,[].concat(q(d.cc),[b.email]));if(!f)return k.return();Wd(k,3,4);a.ccInProgress$.next(!0);return z(k,f,6);case 6:return z(k,fe(a.ccUpdate$.pipe(ue(function(l){l=
l.includes(b.email);return b.action==="set_user"?l:!l}),ve(6E4))),4);case 4:Xd(k);a.ccInProgress$.next(!1);Zd(k,0);break;case 3:throw g=$d(k),g;}})};IS.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(IS)))(b||IS)}}();IS.\u0275prov=Dc({token:IS,factory:IS.\u0275fac});var ood=function(a){return["chip","gmat-caption",a]},pod=function(){this.variant="grey";this.isTall=!1};pod.\u0275fac=function(a){return new (a||pod)};
pod.\u0275cmp=D({type:pod,selectors:[["onedev-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("tall",b.isTall)},inputs:{variant:"variant",isTall:"isTall"},standalone:!1,ngContentSelectors:["*"],decls:3,vars:3,consts:[[3,"ngClass"],[1,"centering"]],template:function(a,b){a&1&&(bg(),K(0,"div",0)(1,"div",1),cg(2),L()());a&2&&I("ngClass",Ig(1,ood,b.variant))},dependencies:[Lx],styles:["[_nghost-%COMP%]{--chip-grey-bg:var(--grey-100,#f1f3f4);--chip-blue-bg:var(--blue-50,#e8f0fe);--chip-red-bg:var(--red-50,#fce8e6);--chip-yellow-bg:var(--yellow-50,#fef7e0);--chip-green-bg:var(--green-50,#e6f4ea);--chip-orange-bg:var(--orange-50,#feefe3);--chip-pink-bg:var(--pink-50,#fde7f3);--chip-purple-bg:var(--purple-50,#f3e8fd);--chip-cyan-bg:var(--cyan-50,#e4f7fb);--chip-grey-icon:var(--grey-700,#5f6368);--chip-blue-icon:var(--blue-700,#1967d2);--chip-red-icon:var(--red-700,#c5221f);--chip-yellow-icon:#9b5400;--chip-green-icon:var(--green-800,#137333);--chip-orange-icon:#9b5400;--chip-pink-icon:var(--pink-800,#b80672);--chip-purple-icon:var(--purple-700,#8430ce);--chip-cyan-icon:var(--cyan-900,#007b83);--chip-text:var(--text-default,#202124)}.tall[_nghost-%COMP%]   .chip[_ngcontent-%COMP%]{border-radius:12px;height:24px;font-weight:500}.tall[_nghost-%COMP%]   .chip[_ngcontent-%COMP%]   .centering[_ngcontent-%COMP%]{height:16px;margin-right:4px}body.dark-mode[_nghost-%COMP%], body.dark-mode   [_nghost-%COMP%]{--chip-grey-bg:#505357;--chip-blue-bg:#314972;--chip-red-bg:#6c322f;--chip-yellow-bg:#725d1e;--chip-green-bg:#2c553a;--chip-orange-bg:#714625;--chip-pink-bg:#702f55;--chip-purple-bg:#523272;--chip-cyan-bg:#275e6b;--chip-grey-icon:var(--grey-200,#e8eaed);--chip-blue-icon:var(--blue-200,#aecbfa);--chip-red-icon:var(--red-200,#f6aea9);--chip-yellow-icon:var(--yellow-200,#fde293);--chip-green-icon:var(--green-200,#a8dab5);--chip-orange-icon:var(--orange-200,#fdc69c);--chip-pink-icon:var(--pink-200,#fba9d6);--chip-purple-icon:var(--purple-200,#d7aefb);--chip-cyan-icon:var(--cyan-200,#a1e4f2);--chip-text:var(--white,#fff)}.chip[_ngcontent-%COMP%]{background-color:var(--chip-grey-bg);border-radius:10px;color:var(--chip-text);display:inline-block;height:20px;padding:0 6px}.chip[_ngcontent-%COMP%]   .centering[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;line-height:12px;margin-bottom:4px;margin-top:4px}.chip.yellow[_ngcontent-%COMP%]{background-color:var(--chip-yellow-bg)}.chip.green[_ngcontent-%COMP%]{background-color:var(--chip-green-bg)}.chip.blue[_ngcontent-%COMP%]{background-color:var(--chip-blue-bg)}.chip.orange[_ngcontent-%COMP%]{background-color:var(--chip-orange-bg)}.chip.pink[_ngcontent-%COMP%]{background-color:var(--chip-pink-bg)}.chip.cyan[_ngcontent-%COMP%]{background-color:var(--chip-cyan-bg)}.chip.red[_ngcontent-%COMP%]{background-color:var(--chip-red-bg)}.chip.purple[_ngcontent-%COMP%]{background-color:var(--chip-purple-bg)}.chip.none[_ngcontent-%COMP%]{background-color:transparent;color:inherit}"],
changeDetection:0});var qod=function(a){this.chip=a};qod.\u0275fac=function(a){return new (a||qod)(Ve(pod))};qod.\u0275dir=af({type:qod,selectors:[["","onedevChipIcon",""]],hostVars:10,hostBindings:function(a,b){a&2&&vg("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")},standalone:!1});var JS=function(){};JS.\u0275fac=function(a){return new (a||JS)};JS.\u0275mod=$e({type:JS});JS.\u0275inj=Fc({imports:[by]});var rod=function(){};rod.\u0275fac=function(a){return new (a||rod)};rod.\u0275cmp=D({type:rod,selectors:[["","onedevDot",""]],hostVars:1,hostBindings:function(a){a&2&&If("aria-hidden",!0)},standalone:!1,attrs:["onedevDot",""],decls:1,vars:0,template:function(a){a&1&&Q(0,"\u00a0\u00b7\u00a0")},encapsulation:2});var sod=function(){};sod.\u0275fac=function(a){return new (a||sod)};sod.\u0275mod=$e({type:sod});sod.\u0275inj=Fc({});var tod=[[["","onedev-additional-content",""]],[["onedev-hovercard-action"]]],uod=function(a){return{"with-avatar":a}},vod=function(){};vod.prototype.ngOnInit=function(){};vod.\u0275fac=function(a){return new (a||vod)};
vod.\u0275cmp=D({type:vod,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&&(bg(tod),K(0,"div",0)(1,"div",1)(2,"div",2),E(3,z7a,1,2,"img",3),K(4,"div",4),Q(5),L(),E(6,A7a,2,1,"div",5),L(),E(7,B7a,4,1,"div",6),K(8,"div",7),E(9,F7a,7,3,"ng-container",8)(10,G7a,4,1,"ng-container",8)(11,H7a,23,5,"ng-container",8),cg(12),L()(),cg(13,1),L());a&2&&(B(2),I("ngClass",Ig(8,uod,b.person.imageUrl)),B(),I("ngIf",b.person.imageUrl),B(2),yg(b.person.name||b.person.email),B(),I("ngIf",b.person.name),B(),I("ngIf",b.outOfOfficeDescription),B(2),I("ngIf",b.person.title||b.person.department),
B(),I("ngIf",b.person.location),B(),I("ngIf",b.person.ldap))},dependencies:[JS,pod,qod,by,Lx,Nx,sod,rod,Ly,Jy],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-card-title-max-height:48px}.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:var(--onedev-card-title-max-height);overflow:hidden}.onedev-hovercard-content .onedev-hovercard-body .chips{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:12px}.onedev-hovercard-content .onedev-hovercard-body mat-icon{color:var(--onedev-card-icon);font-size:18px;height:18px;width:18px}.onedev-hovercard-content .onedev-hovercard-body .content{display:grid;grid-template-columns:18px auto;grid-gap:12px 20px;margin:0;margin-top:12px}.onedev-hovercard-content .onedev-hovercard-body .content .detail{margin-top:2px;overflow-wrap:anywhere}.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}.onedev-hovercard-content .avatar{border-radius:50%;object-fit:cover;height:48px;width:48px}"],
encapsulation:2,changeDetection:0});var wod=new dd("API_VERSION"),xod=new dd("REQUEST_SERVICE for people-pa_api_client"),yod={$Xgafv:"$.xgafv",abuseCheckParamsRfaChecks:"abuseCheckParams.rfaChecks",access_token:"access_token",affinityType:"affinityType",alt:"alt",authDelegationContextContactsEncryptedOwnerId:"authDelegationContext.contacts.encryptedOwnerId",authDelegationContextDelegationType:"authDelegationContext.delegationType",authDelegationContextGriffinObfuscatedOwnerId:"authDelegationContext.griffin.obfuscatedOwnerId",authDelegationContextMadisonMadisonGaiaId:"authDelegationContext.madison.madisonGaiaId",
authDelegationContextMadisonObfuscatedMadisonId:"authDelegationContext.madison.obfuscatedMadisonId",authDelegationContextObfuscatedOwnerId:"authDelegationContext.obfuscatedOwnerId",authDelegationContextUnicornObfuscatedOwnerId:"authDelegationContext.unicorn.obfuscatedOwnerId",backgroundPhotoContactId:"backgroundPhotoContactId",backgroundPhotoProfileId:"backgroundPhotoProfileId",blockDirection:"blockDirection",callback:"callback",canonicalPhone:"canonicalPhone",client:"client",clientId:"client.id",
clientVersionClientAgent:"clientVersion.clientAgent",clientVersionClientType:"clientVersion.clientType",clientVersionClientVersion:"clientVersion.clientVersion",clientVersionGmsCoreContextAppManagementContext:"clientVersion.gmsCoreContext.appManagementContext",clientVersionGmsCoreContextIsFirstParty:"clientVersion.gmsCoreContext.isFirstParty",clientVersionGmsCoreContextPackageName:"clientVersion.gmsCoreContext.packageName",clientVersionGmsCoreContextPackageSignature:"clientVersion.gmsCoreContext.packageSignature",
consentOptionsStrategy:"consentOptions.strategy",consistencyOptionsConsistentReadOverrideType:"consistencyOptions.consistentReadOverrideType",consistencyOptionsDirectoryConsistencyOptionsDirectoryVersionToken:"consistencyOptions.directoryConsistencyOptions.directoryVersionToken",consistencyOptionsLevel:"consistencyOptions.level",consistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",consistencyOptionsLevelOptionsExactTimestamp:"consistencyOptions.levelOptions.exactTimestamp",
consistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",contactId:"contactId",contactListType:"contactListType",contactLookupOptionsEmailLookupType:"contactLookupOptions.emailLookupType",container:"container",containerId:"containerId",containerIds:"containerIds",contextAllowedRequesterState:"context.allowedRequesterState",contextAuthDelegationContextContactsEncryptedOwnerId:"context.authDelegationContext.contacts.encryptedOwnerId",
contextAuthDelegationContextDelegationType:"context.authDelegationContext.delegationType",contextAuthDelegationContextGriffinObfuscatedOwnerId:"context.authDelegationContext.griffin.obfuscatedOwnerId",contextAuthDelegationContextMadisonMadisonGaiaId:"context.authDelegationContext.madison.madisonGaiaId",contextAuthDelegationContextMadisonObfuscatedMadisonId:"context.authDelegationContext.madison.obfuscatedMadisonId",contextAuthDelegationContextObfuscatedOwnerId:"context.authDelegationContext.obfuscatedOwnerId",
contextAuthDelegationContextUnicornObfuscatedOwnerId:"context.authDelegationContext.unicorn.obfuscatedOwnerId",contextClientType:"context.clientType",contextClientVersionClientAgent:"context.clientVersion.clientAgent",contextClientVersionClientType:"context.clientVersion.clientType",contextClientVersionClientVersion:"context.clientVersion.clientVersion",contextClientVersionGmsCoreContextAppManagementContext:"context.clientVersion.gmsCoreContext.appManagementContext",contextClientVersionGmsCoreContextIsFirstParty:"context.clientVersion.gmsCoreContext.isFirstParty",
contextClientVersionGmsCoreContextPackageName:"context.clientVersion.gmsCoreContext.packageName",contextClientVersionGmsCoreContextPackageSignature:"context.clientVersion.gmsCoreContext.packageSignature",contextConsistencyContextBase64EncodedZookie:"context.consistencyContext.base64EncodedZookie",contextConsistencyContextDirectoryVersionToken:"context.consistencyContext.directoryVersionToken",contextConsistencyContextFbsRequireAllImportantWritesUpToTime:"context.consistencyContext.fbsRequireAllImportantWritesUpToTime",
contextConsistencyContextFbsVersionInfo:"context.consistencyContext.fbsVersionInfo",contextConsistencyOptionsConsistentReadOverrideType:"context.consistencyOptions.consistentReadOverrideType",contextConsistencyOptionsDirectoryConsistencyOptionsDirectoryVersionToken:"context.consistencyOptions.directoryConsistencyOptions.directoryVersionToken",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",coreIdParamsEnforceEdsConditionEnforceEdsType:"coreIdParams.enforceEdsCondition.enforceEdsType",coreIdParamsIdentityAclOptionsContextConfigName:"coreIdParams.identityAclOptions.context.configName",
coreIdParamsIdentityAclOptionsContextObjectId:"coreIdParams.identityAclOptions.context.objectId",coreIdParamsIdentityAclOptionsContextObjectPart:"coreIdParams.identityAclOptions.context.objectPart",coreIdParamsIdentityAclOptionsContextZookie:"coreIdParams.identityAclOptions.context.zookie",coreIdParamsIdentityAclOptionsGroupServiceContextGroupName:"coreIdParams.identityAclOptions.groupServiceContext.groupName",coreIdParamsIdentityAclOptionsGroupServiceContextOwnerGaiaId:"coreIdParams.identityAclOptions.groupServiceContext.ownerGaiaId",
coreIdParamsIdentityAclOptionsGroupServiceContextZookie:"coreIdParams.identityAclOptions.groupServiceContext.zookie",coreIdParamsIdentityAclOptionsMode:"coreIdParams.identityAclOptions.mode",coreIdParamsIgnoreAclConditionIgnoreAclConditionType:"coreIdParams.ignoreAclCondition.ignoreAclConditionType",coreIdParamsProfileAccessTokensInteractionTokens:"coreIdParams.profileAccessTokens.interactionTokens",coreIdParamsUseRealtimeNotificationExpandedAcls:"coreIdParams.useRealtimeNotificationExpandedAcls",
coreNameCoreProfileFirstName:"coreName.coreProfileFirstName",coreNameCoreProfileLastName:"coreName.coreProfileLastName",customLookupType:"customLookupType",dataFormatsAffinityFormatsScoreFormat:"dataFormats.affinityFormats.scoreFormat",dataFormatsProfilePhotoOptionsCorpHeaderPreference:"dataFormats.profilePhotoOptions.corpHeaderPreference",dataFormatsProfilePhotoOptionsPrivateUrlFormat:"dataFormats.profilePhotoOptions.privateUrlFormat",dataJoinParamsPhoneStalenessSpec:"dataJoinParams.phoneStalenessSpec",
dataJoinParamsProfileJoinType:"dataJoinParams.profileJoinType",dedupeOption:"dedupeOption",delayFullSync:"delayFullSync",delegatedGroupIdDelegatedGroupId:"delegatedGroupId.delegatedGroupId",deleteContacts:"deleteContacts",deleteTrashedContacts:"deleteTrashedContacts",deletionContextMutationContextAndroidDeviceInfoId:"deletionContext.mutationContext.androidDeviceInfo.id",deletionContextMutationContextHostAppInfoHostAppName:"deletionContext.mutationContext.hostAppInfo.hostAppName",deletionContextMutationContextSource:"deletionContext.mutationContext.source",
deletionContextMutationContextThirdPartyInfoClientName:"deletionContext.mutationContext.thirdPartyInfo.clientName",deletionContextMutationContextThirdPartyInfoProjectNumber:"deletionContext.mutationContext.thirdPartyInfo.projectNumber",deletionContextMutationContextTimestamp:"deletionContext.mutationContext.timestamp",deviceId:"deviceId",deviceIdentifierClientInstanceId:"deviceIdentifier.clientInstanceId",deviceIdentityDeviceId:"deviceIdentity.deviceId",dryRunOptionsConsistencyOptionsConsistentReadOverrideType:"dryRunOptions.consistencyOptions.consistentReadOverrideType",
dryRunOptionsConsistencyOptionsDirectoryConsistencyOptionsDirectoryVersionToken:"dryRunOptions.consistencyOptions.directoryConsistencyOptions.directoryVersionToken",dryRunOptionsConsistencyOptionsLevel:"dryRunOptions.consistencyOptions.level",dryRunOptionsConsistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"dryRunOptions.consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",dryRunOptionsConsistencyOptionsLevelOptionsExactTimestamp:"dryRunOptions.consistencyOptions.levelOptions.exactTimestamp",
dryRunOptionsConsistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"dryRunOptions.consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",dryRunOptionsDryRunMode:"dryRunOptions.dryRunMode",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",getPeopleRequestAbuseCheckParamsRfaChecks:"getPeopleRequest.abuseCheckParams.rfaChecks",getPeopleRequestContextAllowedRequesterState:"getPeopleRequest.context.allowedRequesterState",getPeopleRequestContextAuthDelegationContextContactsEncryptedOwnerId:"getPeopleRequest.context.authDelegationContext.contacts.encryptedOwnerId",getPeopleRequestContextAuthDelegationContextDelegationType:"getPeopleRequest.context.authDelegationContext.delegationType",
getPeopleRequestContextAuthDelegationContextGriffinObfuscatedOwnerId:"getPeopleRequest.context.authDelegationContext.griffin.obfuscatedOwnerId",getPeopleRequestContextAuthDelegationContextMadisonMadisonGaiaId:"getPeopleRequest.context.authDelegationContext.madison.madisonGaiaId",getPeopleRequestContextAuthDelegationContextMadisonObfuscatedMadisonId:"getPeopleRequest.context.authDelegationContext.madison.obfuscatedMadisonId",getPeopleRequestContextAuthDelegationContextObfuscatedOwnerId:"getPeopleRequest.context.authDelegationContext.obfuscatedOwnerId",
getPeopleRequestContextAuthDelegationContextUnicornObfuscatedOwnerId:"getPeopleRequest.context.authDelegationContext.unicorn.obfuscatedOwnerId",getPeopleRequestContextClientType:"getPeopleRequest.context.clientType",getPeopleRequestContextClientVersionClientAgent:"getPeopleRequest.context.clientVersion.clientAgent",getPeopleRequestContextClientVersionClientType:"getPeopleRequest.context.clientVersion.clientType",getPeopleRequestContextClientVersionClientVersion:"getPeopleRequest.context.clientVersion.clientVersion",
getPeopleRequestContextClientVersionGmsCoreContextAppManagementContext:"getPeopleRequest.context.clientVersion.gmsCoreContext.appManagementContext",getPeopleRequestContextClientVersionGmsCoreContextIsFirstParty:"getPeopleRequest.context.clientVersion.gmsCoreContext.isFirstParty",getPeopleRequestContextClientVersionGmsCoreContextPackageName:"getPeopleRequest.context.clientVersion.gmsCoreContext.packageName",getPeopleRequestContextClientVersionGmsCoreContextPackageSignature:"getPeopleRequest.context.clientVersion.gmsCoreContext.packageSignature",
getPeopleRequestContextConsistencyContextDirectoryVersionToken:"getPeopleRequest.context.consistencyContext.directoryVersionToken",getPeopleRequestContextConsistencyOptionsConsistentReadOverrideType:"getPeopleRequest.context.consistencyOptions.consistentReadOverrideType",getPeopleRequestContextConsistencyOptionsDirectoryConsistencyOptionsDirectoryVersionToken:"getPeopleRequest.context.consistencyOptions.directoryConsistencyOptions.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",getPeopleRequestCoreIdParamsEnforceEdsConditionEnforceEdsType:"getPeopleRequest.coreIdParams.enforceEdsCondition.enforceEdsType",getPeopleRequestCoreIdParamsIdentityAclOptionsContextConfigName:"getPeopleRequest.coreIdParams.identityAclOptions.context.configName",
getPeopleRequestCoreIdParamsIdentityAclOptionsContextObjectId:"getPeopleRequest.coreIdParams.identityAclOptions.context.objectId",getPeopleRequestCoreIdParamsIdentityAclOptionsContextObjectPart:"getPeopleRequest.coreIdParams.identityAclOptions.context.objectPart",getPeopleRequestCoreIdParamsIdentityAclOptionsContextZookie:"getPeopleRequest.coreIdParams.identityAclOptions.context.zookie",getPeopleRequestCoreIdParamsIdentityAclOptionsGroupServiceContextGroupName:"getPeopleRequest.coreIdParams.identityAclOptions.groupServiceContext.groupName",
getPeopleRequestCoreIdParamsIdentityAclOptionsGroupServiceContextOwnerGaiaId:"getPeopleRequest.coreIdParams.identityAclOptions.groupServiceContext.ownerGaiaId",getPeopleRequestCoreIdParamsIdentityAclOptionsGroupServiceContextZookie:"getPeopleRequest.coreIdParams.identityAclOptions.groupServiceContext.zookie",getPeopleRequestCoreIdParamsIdentityAclOptionsMode:"getPeopleRequest.coreIdParams.identityAclOptions.mode",getPeopleRequestCoreIdParamsIgnoreAclConditionIgnoreAclConditionType:"getPeopleRequest.coreIdParams.ignoreAclCondition.ignoreAclConditionType",
getPeopleRequestCoreIdParamsProfileAccessTokensInteractionTokens:"getPeopleRequest.coreIdParams.profileAccessTokens.interactionTokens",getPeopleRequestCoreIdParamsUseRealtimeNotificationExpandedAcls:"getPeopleRequest.coreIdParams.useRealtimeNotificationExpandedAcls",getPeopleRequestDataFormatsAffinityFormatsScoreFormat:"getPeopleRequest.dataFormats.affinityFormats.scoreFormat",getPeopleRequestDataFormatsProfilePhotoOptionsCorpHeaderPreference:"getPeopleRequest.dataFormats.profilePhotoOptions.corpHeaderPreference",
getPeopleRequestDataFormatsProfilePhotoOptionsPrivateUrlFormat:"getPeopleRequest.dataFormats.profilePhotoOptions.privateUrlFormat",getPeopleRequestDedupeOption:"getPeopleRequest.dedupeOption",getPeopleRequestExtensionSetExtendedRequestDataPeopleBackendExtensionApplication:"getPeopleRequest.extensionSet.extendedRequestData.peopleBackendExtension.application",getPeopleRequestExtensionSetExtensionNames:"getPeopleRequest.extensionSet.extensionNames",getPeopleRequestIncludeFieldAcl:"getPeopleRequest.includeFieldAcl",
getPeopleRequestIncludedProfileStates:"getPeopleRequest.includedProfileStates",getPeopleRequestMergedPersonSourceOptionsCertificateParamsRequestCertificates:"getPeopleRequest.mergedPersonSourceOptions.certificateParams.requestCertificates",getPeopleRequestMergedPersonSourceOptionsDataJoinParamsPhoneStalenessSpec:"getPeopleRequest.mergedPersonSourceOptions.dataJoinParams.phoneStalenessSpec",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",getPeopleRequestMergedPersonSourceOptionsReplaceIantWithGiant:"getPeopleRequest.mergedPersonSourceOptions.replaceIantWithGiant",getPeopleRequestPersonId:"getPeopleRequest.personId",getPeopleRequestRequestConfigContextConfigKey:"getPeopleRequest.requestConfigContext.configKey",getPeopleRequestRequestConfigContextVersion:"getPeopleRequest.requestConfigContext.version",
getPeopleRequestRequestMaskCustomRequestMask:"getPeopleRequest.requestMask.customRequestMask",getPeopleRequestRequestMaskGuestUserEmailDisplayOption:"getPeopleRequest.requestMask.guestUserEmailDisplayOption",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",getPeopleRequestRequestMaskProductContactGroup:"getPeopleRequest.requestMask.productContactGroup",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",invalidatePriorTokens:"invalidatePriorTokens",key:"key",listFilterParamsContainer:"listFilterParams.container",listFilterParamsExcludeUnreachablePeople:"listFilterParams.excludeUnreachablePeople",matchType:"matchType",maxContacts:"maxContacts",mergedPersonSourceOptionsCertificateParamsRequestCertificates:"mergedPersonSourceOptions.certificateParams.requestCertificates",
mergedPersonSourceOptionsDataJoinParamsPhoneStalenessSpec:"mergedPersonSourceOptions.dataJoinParams.phoneStalenessSpec",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",mergedPersonSourceOptionsReplaceIantWithGiant:"mergedPersonSourceOptions.replaceIantWithGiant",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",phoneBasedAclParamsReaderPhone:"phoneBasedAclParams.readerPhone",phoneLookupQuotaOptionsQuotaBypassTokenOptions:"phoneLookupQuotaOptions.quotaBypassTokenOptions",phoneLookupQuotaOptionsQuotaBypassTokens:"phoneLookupQuotaOptions.quotaBypassTokens",phoneLookupQuotaOptionsQuotaLimitBehavior:"phoneLookupQuotaOptions.quotaLimitBehavior",phones:"phones",
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",
profileUpdateOptionsNameAbuseOption:"profileUpdateOptions.nameAbuseOption",query:"query",quotaFilterType:"quotaFilterType",quotaUser:"quotaUser",requestConfigContextConfigKey:"requestConfigContext.configKey",requestConfigContextVersion:"requestConfigContext.version",requestMask:"requestMask",requestMaskCustomRequestMask:"requestMask.customRequestMask",requestMaskGuestUserEmailDisplayOption:"requestMask.guestUserEmailDisplayOption",requestMaskImageUrlType:"requestMask.imageUrlType",requestMaskIncludeContainer:"requestMask.includeContainer",
requestMaskIncludeField:"requestMask.includeField",requestMaskIncludePeopleInCommon:"requestMask.includePeopleInCommon",requestMaskPersonAttribute:"requestMask.personAttribute",requestMaskPhotoOptionsPrivateUrlFormat:"requestMask.photoOptions.privateUrlFormat",requestMaskProductContactGroup:"requestMask.productContactGroup",requestOptionsProfilePhotoOptionsCorpHeaderPreference:"requestOptions.profilePhotoOptions.corpHeaderPreference",requestOptionsProfilePhotoOptionsPrivateUrlFormat:"requestOptions.profilePhotoOptions.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"},KS=function(a,b,c){this.gapiVersion=
a;this.gapiVersion=a==null?"v2":a;this.$apiClient=new sMc(b,c)};KS.prototype.list=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;return uMc(this.$apiClient,{body:null,httpMethod:"GET",methodId:"people_pa.people.lookup.list",path:"/"+this.gapiVersion+"/people/lookup",queryParams:Aua(a,yod,b)})};KS.\u0275fac=function(a){return new (a||KS)(Xc(wod,8),Xc(xod),Xc(qMc,8))};KS.\u0275prov=Dc({token:KS,factory:KS.\u0275fac,providedIn:"root"});var zod=function(){};
zod.\u0275fac=function(a){return new (a||zod)};zod.\u0275prov=Dc({token:zod,factory:function(a){return KS.\u0275fac(a)},providedIn:"root"});var Aod=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v2":a;this.$apiClient=new sMc(b,c)};Aod.\u0275fac=function(a){return new (a||Aod)(Xc(wod,8),Xc(xod),Xc(qMc,8))};Aod.\u0275prov=Dc({token:Aod,factory:Aod.\u0275fac,providedIn:"root"});var Bod=function(){};Bod.\u0275fac=function(a){return new (a||Bod)};
Bod.\u0275prov=Dc({token:Bod,factory:function(a){return Aod.\u0275fac(a)},providedIn:"root"});var I7a=/.*@google.com/,Cod=new dd("onedevPeopleServiceConfig"),Dod={},LS=function(){},Fod=function(a,b){return Eod(a,[b]).pipe(A(function(c){return c[0]}))};LS.\u0275fac=function(a){return new (a||LS)};LS.\u0275prov=Dc({token:LS,factory:LS.\u0275fac});
var MS=function(a,b,c){var d=this;this.lookupApiClient=a;this.destroy$=new qf;this.config=Dod;c&&c.pipe(Af(function(e){window.gapi&&e.accessToken&&window.gapi.auth.setToken({access_token:e.accessToken})}),zf(this.destroy$)).subscribe({next:function(e){d.config=e}})};Y(MS,LS);
var Eod=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","GOOGLE_GROUP"],sources:["PROFILE_SOURCE"],access_token:a.config.accessToken}).pipe(A(function(c){return M7a(b,c)}))};MS.prototype.ngOnDestroy=function(){this.destroy$.next()};MS.\u0275fac=function(a){return new (a||MS)(Xc(zod),Xc(Bod),Xc(Cod,8))};
MS.\u0275prov=Dc({token:MS,factory:MS.\u0275fac});var God=function(){};God.\u0275fac=function(a){return new (a||God)};God.\u0275mod=$e({type:God});God.\u0275inj=Fc({providers:[MS,{provide:LS,useExisting:MS}]});var Hod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.dayOfWeek=a.dayOfWeek==null?null:a.dayOfWeek;this.Serializable$values.periodStartMinutes=a.periodStartMinutes==null?null:a.periodStartMinutes;this.Serializable$values.periodEndMinutes=a.periodEndMinutes==null?null:a.periodEndMinutes};Y(Hod,rj);Hod.prototype.getPartialClassMetadata=function(){return{keys:["dayOfWeek","periodEndMinutes","periodStartMinutes"]}};
da.Object.defineProperties(Hod.prototype,{dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return kD(this,"dayOfWeek")?qj(this,"dayOfWeek"):0},set:function(a){this.Serializable$values.dayOfWeek=a}},periodEndMinutes:{configurable:!0,enumerable:!0,get:function(){return kD(this,"periodEndMinutes")?qj(this,"periodEndMinutes"):0},set:function(a){this.Serializable$values.periodEndMinutes=a}},periodStartMinutes:{configurable:!0,enumerable:!0,get:function(){return kD(this,"periodStartMinutes")?qj(this,
"periodStartMinutes"):0},set:function(a){this.Serializable$values.periodStartMinutes=a}}});var Iod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.userIds=a.userIds==null?null:a.userIds;this.Serializable$values.debugOptions=a.debugOptions==null?null:a.debugOptions};Y(Iod,rj);Iod.prototype.getPartialClassMetadata=function(){return{arrays:{userIds:NS},keys:["debugOptions","userIds"],objects:{debugOptions:Jod}}};
da.Object.defineProperties(Iod.prototype,{debugOptions:{configurable:!0,enumerable:!0,get:function(){return kD(this,"debugOptions")?qj(this,"debugOptions"):this.debugOptions=new Jod},set:function(a){this.Serializable$values.debugOptions=a}},userIds:{configurable:!0,enumerable:!0,get:function(){return kD(this,"userIds")?qj(this,"userIds"):this.userIds=[]},set:function(a){this.Serializable$values.userIds=a}}});
var Kod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.results=a.results==null?null:a.results};Y(Kod,rj);Kod.prototype.getPartialClassMetadata=function(){return{arrays:{results:Lod},keys:["results"]}};
da.Object.defineProperties(Kod.prototype,{hasResults:{configurable:!0,enumerable:!0,get:function(){return qj(this,"results")!==null}},results:{configurable:!0,enumerable:!0,get:function(){return kD(this,"results")?qj(this,"results"):this.results=[]},set:function(a){this.Serializable$values.results=a}}});
var Mod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.eventSummary=a.eventSummary==null?null:a.eventSummary;this.Serializable$values.occupiedUntil=a.occupiedUntil==null?null:a.occupiedUntil;this.Serializable$values.nextAvailable=a.nextAvailable==null?null:a.nextAvailable;this.Serializable$values.committedUntil=a.committedUntil==null?null:a.committedUntil};Y(Mod,rj);
Mod.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","nextAvailable","occupiedUntil"]}};
da.Object.defineProperties(Mod.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return kD(this,"committedUntil")?qj(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return kD(this,"eventSummary")?qj(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return kD(this,"nextAvailable")?qj(this,
"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return kD(this,"occupiedUntil")?qj(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});
var Nod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.location=a.location==null?null:a.location;this.Serializable$values.geoCoordinates=a.geoCoordinates==null?null:a.geoCoordinates;this.Serializable$values.label=a.label==null?null:a.label};Y(Nod,rj);Nod.prototype.getPartialClassMetadata=function(){return{keys:["geoCoordinates","label","location"],objects:{geoCoordinates:Ood}}};
da.Object.defineProperties(Nod.prototype,{geoCoordinates:{configurable:!0,enumerable:!0,get:function(){return kD(this,"geoCoordinates")?qj(this,"geoCoordinates"):this.geoCoordinates=new Ood},set:function(a){this.Serializable$values.geoCoordinates=a}},label:{configurable:!0,enumerable:!0,get:function(){return kD(this,"label")?qj(this,"label"):""},set:function(a){this.Serializable$values.label=a}},location:{configurable:!0,enumerable:!0,get:function(){return kD(this,"location")?qj(this,"location"):
""},set:function(a){this.Serializable$values.location=a}}});var Pod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.occupiedUntil=a.occupiedUntil==null?null:a.occupiedUntil;this.Serializable$values.committedUntil=a.committedUntil==null?null:a.committedUntil;this.Serializable$values.nextAvailable=a.nextAvailable==null?null:a.nextAvailable};Y(Pod,rj);Pod.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","nextAvailable","occupiedUntil"]}};
da.Object.defineProperties(Pod.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return kD(this,"committedUntil")?qj(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return kD(this,"nextAvailable")?qj(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return kD(this,"occupiedUntil")?qj(this,
"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var Qod=function(){this.Serializable$values={}};Y(Qod,rj);Qod.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var Rod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.eventSummary=a.eventSummary==null?null:a.eventSummary;this.Serializable$values.inMeetingsUntil=a.inMeetingsUntil==null?null:a.inMeetingsUntil;this.Serializable$values.occupiedUntil=a.occupiedUntil==null?null:a.occupiedUntil;this.Serializable$values.committedUntil=a.committedUntil==null?null:a.committedUntil;this.Serializable$values.nextAvailable=a.nextAvailable==null?null:a.nextAvailable};Y(Rod,rj);
Rod.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","inMeetingsUntil","nextAvailable","occupiedUntil"]}};
da.Object.defineProperties(Rod.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return kD(this,"committedUntil")?qj(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return kD(this,"eventSummary")?qj(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},inMeetingsUntil:{configurable:!0,enumerable:!0,get:function(){return kD(this,"inMeetingsUntil")?qj(this,
"inMeetingsUntil"):""},set:function(a){this.Serializable$values.inMeetingsUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return kD(this,"nextAvailable")?qj(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return kD(this,"occupiedUntil")?qj(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var Sod=function(){this.Serializable$values={}};Y(Sod,rj);
Sod.prototype.getPartialClassMetadata=function(){return{keys:[]}};var Ood=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.latitude=a.latitude==null?null:a.latitude;this.Serializable$values.longitude=a.longitude==null?null:a.longitude};Y(Ood,rj);Ood.prototype.getPartialClassMetadata=function(){return{keys:["latitude","longitude"]}};
da.Object.defineProperties(Ood.prototype,{latitude:{configurable:!0,enumerable:!0,get:function(){return kD(this,"latitude")?qj(this,"latitude"):0},set:function(a){this.Serializable$values.latitude=a}},longitude:{configurable:!0,enumerable:!0,get:function(){return kD(this,"longitude")?qj(this,"longitude"):0},set:function(a){this.Serializable$values.longitude=a}}});var Tod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeZone=a.timeZone==null?null:a.timeZone};
Y(Tod,rj);Tod.prototype.getPartialClassMetadata=function(){return{keys:["timeZone"]}};da.Object.defineProperties(Tod.prototype,{timeZone:{configurable:!0,enumerable:!0,get:function(){return kD(this,"timeZone")?qj(this,"timeZone"):""},set:function(a){this.Serializable$values.timeZone=a}}});
var Uod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.experimentalBuildingId=a.experimentalBuildingId==null?null:a.experimentalBuildingId;this.Serializable$values.experimentalDeskId=a.experimentalDeskId==null?null:a.experimentalDeskId;this.Serializable$values.experimentalFloorId=a.experimentalFloorId==null?null:a.experimentalFloorId;this.Serializable$values.label=a.label==null?null:a.label};Y(Uod,rj);
Uod.prototype.getPartialClassMetadata=function(){return{keys:["experimentalBuildingId","experimentalDeskId","experimentalFloorId","label"]}};
da.Object.defineProperties(Uod.prototype,{experimentalBuildingId:{configurable:!0,enumerable:!0,get:function(){return kD(this,"experimentalBuildingId")?qj(this,"experimentalBuildingId"):""},set:function(a){this.Serializable$values.experimentalBuildingId=a}},experimentalDeskId:{configurable:!0,enumerable:!0,get:function(){return kD(this,"experimentalDeskId")?qj(this,"experimentalDeskId"):""},set:function(a){this.Serializable$values.experimentalDeskId=a}},experimentalFloorId:{configurable:!0,enumerable:!0,
get:function(){return kD(this,"experimentalFloorId")?qj(this,"experimentalFloorId"):""},set:function(a){this.Serializable$values.experimentalFloorId=a}},label:{configurable:!0,enumerable:!0,get:function(){return kD(this,"label")?qj(this,"label"):""},set:function(a){this.Serializable$values.label=a}}});
var Vod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=a.comeBackTime==null?null:a.comeBackTime;this.Serializable$values.eventSummary=a.eventSummary==null?null:a.eventSummary;this.Serializable$values.committedUntil=a.committedUntil==null?null:a.committedUntil};Y(Vod,rj);Vod.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime","committedUntil","eventSummary"]}};
da.Object.defineProperties(Vod.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return kD(this,"comeBackTime")?qj(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}},committedUntil:{configurable:!0,enumerable:!0,get:function(){return kD(this,"committedUntil")?qj(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return kD(this,"eventSummary")?qj(this,"eventSummary"):
""},set:function(a){this.Serializable$values.eventSummary=a}}});var Wod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=a.comeBackTime==null?null:a.comeBackTime};Y(Wod,rj);Wod.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime"]}};
da.Object.defineProperties(Wod.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return kD(this,"comeBackTime")?qj(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}}});var Xod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.code=a.code==null?null:a.code;this.Serializable$values.message=a.message==null?null:a.message;this.Serializable$values.details=a.details==null?null:a.details};Y(Xod,rj);
Xod.prototype.getPartialClassMetadata=function(){return{keys:["code","details","message"],objectMaps:{details:{ctor:null,isPropertyArray:!0,isSerializable:!1,isValueArray:!1}}}};
da.Object.defineProperties(Xod.prototype,{code:{configurable:!0,enumerable:!0,get:function(){return kD(this,"code")?qj(this,"code"):0},set:function(a){this.Serializable$values.code=a}},details:{configurable:!0,enumerable:!0,get:function(){return kD(this,"details")?qj(this,"details"):this.details=[]},set:function(a){this.Serializable$values.details=a}},message:{configurable:!0,enumerable:!0,get:function(){return kD(this,"message")?qj(this,"message"):""},set:function(a){this.Serializable$values.message=
a}}});var OS=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.startTime=a.startTime==null?null:a.startTime;this.Serializable$values.endTime=a.endTime==null?null:a.endTime};Y(OS,rj);OS.prototype.getPartialClassMetadata=function(){return{keys:["endTime","startTime"]}};
da.Object.defineProperties(OS.prototype,{endTime:{configurable:!0,enumerable:!0,get:function(){return kD(this,"endTime")?qj(this,"endTime"):""},set:function(a){this.Serializable$values.endTime=a}},startTime:{configurable:!0,enumerable:!0,get:function(){return kD(this,"startTime")?qj(this,"startTime"):""},set:function(a){this.Serializable$values.startTime=a}}});
var Yod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.overrideCurrentTime=a.overrideCurrentTime==null?null:a.overrideCurrentTime;this.Serializable$values.computationDuration=a.computationDuration==null?null:a.computationDuration};Y(Yod,rj);Yod.prototype.getPartialClassMetadata=function(){return{keys:["computationDuration","overrideCurrentTime"]}};
da.Object.defineProperties(Yod.prototype,{computationDuration:{configurable:!0,enumerable:!0,get:function(){return kD(this,"computationDuration")?qj(this,"computationDuration"):""},set:function(a){this.Serializable$values.computationDuration=a}},overrideCurrentTime:{configurable:!0,enumerable:!0,get:function(){return kD(this,"overrideCurrentTime")?qj(this,"overrideCurrentTime"):""},set:function(a){this.Serializable$values.overrideCurrentTime=a}}});
var Zod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.nextCommitmentTime=a.nextCommitmentTime==null?null:a.nextCommitmentTime;this.Serializable$values.nextCommitmentStatus=a.nextCommitmentStatus==null?null:a.nextCommitmentStatus};Y(Zod,rj);Zod.prototype.getPartialClassMetadata=function(){return{keys:["nextCommitmentStatus","nextCommitmentTime"],objects:{nextCommitmentStatus:PS}}};
da.Object.defineProperties(Zod.prototype,{nextCommitmentStatus:{configurable:!0,enumerable:!0,get:function(){return kD(this,"nextCommitmentStatus")?qj(this,"nextCommitmentStatus"):this.nextCommitmentStatus=new PS},set:function(a){this.Serializable$values.nextCommitmentStatus=a}},nextCommitmentTime:{configurable:!0,enumerable:!0,get:function(){return kD(this,"nextCommitmentTime")?qj(this,"nextCommitmentTime"):""},set:function(a){this.Serializable$values.nextCommitmentTime=a}}});
var $od=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=a.timeRange==null?null:a.timeRange};Y($od,rj);$od.prototype.getPartialClassMetadata=function(){return{keys:["timeRange"],objects:{timeRange:OS}}};da.Object.defineProperties($od.prototype,{timeRange:{configurable:!0,enumerable:!0,get:function(){return kD(this,"timeRange")?qj(this,"timeRange"):this.timeRange=new OS},set:function(a){this.Serializable$values.timeRange=a}}});
var apd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.availabilities=a.availabilities==null?null:a.availabilities;this.Serializable$values.workingHours=a.workingHours==null?null:a.workingHours;this.Serializable$values.nextPollTime=a.nextPollTime==null?null:a.nextPollTime};Y(apd,rj);apd.prototype.getPartialClassMetadata=function(){return{arrays:{availabilities:bpd},keys:["availabilities","nextPollTime","workingHours"],objects:{workingHours:cpd}}};
da.Object.defineProperties(apd.prototype,{availabilities:{configurable:!0,enumerable:!0,get:function(){return kD(this,"availabilities")?qj(this,"availabilities"):this.availabilities=[]},set:function(a){this.Serializable$values.availabilities=a}},nextPollTime:{configurable:!0,enumerable:!0,get:function(){return kD(this,"nextPollTime")?qj(this,"nextPollTime"):""},set:function(a){this.Serializable$values.nextPollTime=a}},workingHours:{configurable:!0,enumerable:!0,get:function(){return kD(this,"workingHours")?
qj(this,"workingHours"):this.workingHours=new cpd},set:function(a){this.Serializable$values.workingHours=a}}});var Jod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.forceEnableUserStatusCache=a.forceEnableUserStatusCache==null?null:a.forceEnableUserStatusCache;this.Serializable$values.timeSettings=a.timeSettings==null?null:a.timeSettings};Y(Jod,rj);Jod.prototype.getPartialClassMetadata=function(){return{keys:["forceEnableUserStatusCache","timeSettings"],objects:{timeSettings:Yod}}};
da.Object.defineProperties(Jod.prototype,{forceEnableUserStatusCache:{configurable:!0,enumerable:!0,get:function(){return kD(this,"forceEnableUserStatusCache")?qj(this,"forceEnableUserStatusCache"):!1},set:function(a){this.Serializable$values.forceEnableUserStatusCache=a}},timeSettings:{configurable:!0,enumerable:!0,get:function(){return kD(this,"timeSettings")?qj(this,"timeSettings"):this.timeSettings=new Yod},set:function(a){this.Serializable$values.timeSettings=a}}});
var Lod=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.userId=a.userId==null?null:a.userId;this.Serializable$values.status=a.status==null?null:a.status;this.Serializable$values.userAvailabilities=a.userAvailabilities==null?null:a.userAvailabilities};Y(Lod,rj);Lod.prototype.getPartialClassMetadata=function(){return{keys:["status","userAvailabilities","userId"],objects:{status:Xod,userAvailabilities:apd,userId:NS}}};
da.Object.defineProperties(Lod.prototype,{hasStatus:{configurable:!0,enumerable:!0,get:function(){return qj(this,"status")!==null}},status:{configurable:!0,enumerable:!0,get:function(){return kD(this,"status")?qj(this,"status"):this.status=new Xod},set:function(a){this.Serializable$values.status=a}},hasUserAvailabilities:{configurable:!0,enumerable:!0,get:function(){return qj(this,"userAvailabilities")!==null}},userAvailabilities:{configurable:!0,enumerable:!0,get:function(){return kD(this,"userAvailabilities")?
qj(this,"userAvailabilities"):this.userAvailabilities=new apd},set:function(a){this.Serializable$values.userAvailabilities=a}},hasUserId:{configurable:!0,enumerable:!0,get:function(){return qj(this,"userId")!==null}},userId:{configurable:!0,enumerable:!0,get:function(){return kD(this,"userId")?qj(this,"userId"):this.userId=new NS},set:function(a){this.Serializable$values.userId=a}}});
var bpd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=a.timeRange==null?null:a.timeRange;this.Serializable$values.status=a.status==null?null:a.status;this.Serializable$values.contexts=a.contexts==null?null:a.contexts};Y(bpd,rj);bpd.prototype.getPartialClassMetadata=function(){return{keys:["contexts","status","timeRange"],objects:{contexts:dpd,status:PS,timeRange:OS}}};
da.Object.defineProperties(bpd.prototype,{hasContexts:{configurable:!0,enumerable:!0,get:function(){return qj(this,"contexts")!==null}},contexts:{configurable:!0,enumerable:!0,get:function(){return kD(this,"contexts")?qj(this,"contexts"):this.contexts=new dpd},set:function(a){this.Serializable$values.contexts=a}},hasStatus:{configurable:!0,enumerable:!0,get:function(){return qj(this,"status")!==null}},status:{configurable:!0,enumerable:!0,get:function(){return kD(this,"status")?qj(this,"status"):
this.status=new PS},set:function(a){this.Serializable$values.status=a}},timeRange:{configurable:!0,enumerable:!0,get:function(){return kD(this,"timeRange")?qj(this,"timeRange"):this.timeRange=new OS},set:function(a){this.Serializable$values.timeRange=a}}});
var dpd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.workingElsewhere=a.workingElsewhere==null?null:a.workingElsewhere;this.Serializable$values.upcomingOoo=a.upcomingOoo==null?null:a.upcomingOoo;this.Serializable$values.localTime=a.localTime==null?null:a.localTime;this.Serializable$values.upcomingCommitmentContext=a.upcomingCommitmentContext==null?null:a.upcomingCommitmentContext};Y(dpd,rj);
dpd.prototype.getPartialClassMetadata=function(){return{keys:["localTime","upcomingCommitmentContext","upcomingOoo","workingElsewhere"],objects:{localTime:Tod,upcomingCommitmentContext:Zod,upcomingOoo:$od,workingElsewhere:epd}}};
da.Object.defineProperties(dpd.prototype,{hasLocalTime:{configurable:!0,enumerable:!0,get:function(){return qj(this,"localTime")!==null}},localTime:{configurable:!0,enumerable:!0,get:function(){return kD(this,"localTime")?qj(this,"localTime"):this.localTime=new Tod},set:function(a){this.Serializable$values.localTime=a}},upcomingCommitmentContext:{configurable:!0,enumerable:!0,get:function(){return kD(this,"upcomingCommitmentContext")?qj(this,"upcomingCommitmentContext"):this.upcomingCommitmentContext=
new Zod},set:function(a){this.Serializable$values.upcomingCommitmentContext=a}},upcomingOoo:{configurable:!0,enumerable:!0,get:function(){return kD(this,"upcomingOoo")?qj(this,"upcomingOoo"):this.upcomingOoo=new $od},set:function(a){this.Serializable$values.upcomingOoo=a}},workingElsewhere:{configurable:!0,enumerable:!0,get:function(){return kD(this,"workingElsewhere")?qj(this,"workingElsewhere"):this.workingElsewhere=new epd},set:function(a){this.Serializable$values.workingElsewhere=a}}});
var NS=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.obfuscatedGaiaId=a.obfuscatedGaiaId==null?null:a.obfuscatedGaiaId;this.Serializable$values.email=a.email==null?null:a.email};Y(NS,rj);NS.prototype.getPartialClassMetadata=function(){return{keys:["email","obfuscatedGaiaId"]}};
da.Object.defineProperties(NS.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return kD(this,"email")?qj(this,"email"):""},set:function(a){this.Serializable$values.email=a}},obfuscatedGaiaId:{configurable:!0,enumerable:!0,get:function(){return kD(this,"obfuscatedGaiaId")?qj(this,"obfuscatedGaiaId"):""},set:function(a){this.Serializable$values.obfuscatedGaiaId=a}}});
var fpd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.homeLocation=a.homeLocation==null?null:a.homeLocation;this.Serializable$values.customLocation=a.customLocation==null?null:a.customLocation;this.Serializable$values.officeLocation=a.officeLocation==null?null:a.officeLocation};Y(fpd,rj);fpd.prototype.getPartialClassMetadata=function(){return{keys:["customLocation","homeLocation","officeLocation"],objects:{customLocation:Nod,homeLocation:Qod,officeLocation:Uod}}};
da.Object.defineProperties(fpd.prototype,{customLocation:{configurable:!0,enumerable:!0,get:function(){return kD(this,"customLocation")?qj(this,"customLocation"):this.customLocation=new Nod},set:function(a){this.Serializable$values.customLocation=a}},homeLocation:{configurable:!0,enumerable:!0,get:function(){return kD(this,"homeLocation")?qj(this,"homeLocation"):this.homeLocation=new Qod},set:function(a){this.Serializable$values.homeLocation=a}},officeLocation:{configurable:!0,enumerable:!0,get:function(){return kD(this,
"officeLocation")?qj(this,"officeLocation"):this.officeLocation=new Uod},set:function(a){this.Serializable$values.officeLocation=a}}});
var PS=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.inactive=a.inactive==null?null:a.inactive;this.Serializable$values.doNotDisturb=a.doNotDisturb==null?null:a.doNotDisturb;this.Serializable$values.outsideWorkingHours=a.outsideWorkingHours==null?null:a.outsideWorkingHours;this.Serializable$values.outOfOffice=a.outOfOffice==null?null:a.outOfOffice;this.Serializable$values.inMeeting=a.inMeeting==null?null:a.inMeeting;this.Serializable$values.calendarBusy=a.calendarBusy==
null?null:a.calendarBusy};Y(PS,rj);PS.prototype.getPartialClassMetadata=function(){return{keys:"calendarBusy doNotDisturb inMeeting inactive outOfOffice outsideWorkingHours".split(" "),objects:{calendarBusy:Mod,doNotDisturb:Pod,inMeeting:Rod,inactive:Sod,outOfOffice:Vod,outsideWorkingHours:Wod}}};
da.Object.defineProperties(PS.prototype,{calendarBusy:{configurable:!0,enumerable:!0,get:function(){return kD(this,"calendarBusy")?qj(this,"calendarBusy"):this.calendarBusy=new Mod},set:function(a){this.Serializable$values.calendarBusy=a}},doNotDisturb:{configurable:!0,enumerable:!0,get:function(){return kD(this,"doNotDisturb")?qj(this,"doNotDisturb"):this.doNotDisturb=new Pod},set:function(a){this.Serializable$values.doNotDisturb=a}},inMeeting:{configurable:!0,enumerable:!0,get:function(){return kD(this,
"inMeeting")?qj(this,"inMeeting"):this.inMeeting=new Rod},set:function(a){this.Serializable$values.inMeeting=a}},inactive:{configurable:!0,enumerable:!0,get:function(){return kD(this,"inactive")?qj(this,"inactive"):this.inactive=new Sod},set:function(a){this.Serializable$values.inactive=a}},hasOutOfOffice:{configurable:!0,enumerable:!0,get:function(){return qj(this,"outOfOffice")!==null}},outOfOffice:{configurable:!0,enumerable:!0,get:function(){return kD(this,"outOfOffice")?qj(this,"outOfOffice"):
this.outOfOffice=new Vod},set:function(a){this.Serializable$values.outOfOffice=a}},outsideWorkingHours:{configurable:!0,enumerable:!0,get:function(){return kD(this,"outsideWorkingHours")?qj(this,"outsideWorkingHours"):this.outsideWorkingHours=new Wod},set:function(a){this.Serializable$values.outsideWorkingHours=a}}});var epd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.location=a.location==null?null:a.location};Y(epd,rj);
epd.prototype.getPartialClassMetadata=function(){return{keys:["location"],objects:{location:fpd}}};da.Object.defineProperties(epd.prototype,{location:{configurable:!0,enumerable:!0,get:function(){return kD(this,"location")?qj(this,"location"):this.location=new fpd},set:function(a){this.Serializable$values.location=a}}});var cpd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.availableTime=a.availableTime==null?null:a.availableTime};Y(cpd,rj);
cpd.prototype.getPartialClassMetadata=function(){return{arrays:{availableTime:Hod},keys:["availableTime"]}};da.Object.defineProperties(cpd.prototype,{availableTime:{configurable:!0,enumerable:!0,get:function(){return kD(this,"availableTime")?qj(this,"availableTime"):this.availableTime=[]},set:function(a){this.Serializable$values.availableTime=a}}});var gpd=new dd("API_VERSION"),hpd=new dd("REQUEST_SERVICE for waldo_service_api"),QS=function(){};QS.\u0275fac=function(a){return new (a||QS)};
QS.\u0275mod=$e({type:QS});QS.\u0275inj=Fc({});var ipd={$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"},jpd=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v1alpha":a;this.$apiClient=new sMc(b,c)};jpd.\u0275fac=function(a){return new (a||jpd)(Xc(gpd,8),Xc(hpd),Xc(qMc,8))};
jpd.\u0275prov=Dc({token:jpd,factory:jpd.\u0275fac});var kpd=function(){};kpd.\u0275fac=function(a){return new (a||kpd)};kpd.\u0275prov=Dc({token:kpd,factory:function(a){return jpd.\u0275fac(a)},providedIn:QS});/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var RS=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};
RS.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof RS&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;a?b.cancel(a):(b.branches_--,b.branches_<=0&&b.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new lpd(this))}};RS.prototype.continue_=function(a,b){this.blocked_=!1;mpd(this,a,b)};
var mpd=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;npd(a)},ppd=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new opd(a);a.silentlyCanceled_=!1}};RS.prototype.callback=function(a){ppd(this);mpd(this,!0,a)};RS.prototype.errback=function(a){ppd(this);mpd(this,!1,a)};RS.prototype.addCallback=function(a,b){return qpd(this,a,null,b)};RS.prototype.finally=function(a){var b=this;return rpd(new Promise(function(c,d){qpd(b,function(e){a();c(e)},function(e){a();d(e)})}))};
var qpd=function(a,b,c,d){var e=a.fired_;e||(b===c?b=c=MB(b):(b=MB(b),c=MB(c)));a.sequence_.push([b,c,d]);e&&npd(a);return a};RS.prototype.then=function(a,b,c){var d,e,f=new FC(function(g,k){e=g;d=k});qpd(this,e,function(g){g instanceof lpd?f.cancel():d(g);return spd},this);return f.then(a,b,c)};RS.prototype.$goog_Thenable=!0;RS.prototype.branch=function(a){var b=new RS;qpd(this,b.callback,b.errback,b);a&&(b.parent_=this,this.branches_++);return b};
RS.prototype.isError=function(a){return a instanceof Error};
var tpd=function(a){return Wwc(a.sequence_,function(b){return typeof b[1]==="function"})},spd={},npd=function(a){if(a.unhandledErrorId_&&a.fired_&&tpd(a)){var b=a.unhandledErrorId_,c=upd[b];c&&(ra.clearTimeout(c.id_),delete upd[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],g=e[1];e=e[2];if(f=a.hadError_?g:f)try{var k=f.call(e||a.defaultScope_,b);k===spd&&(k=void 0);k!==void 0&&
(a.hadError_=a.hadError_&&(k==b||a.isError(k)),a.result_=b=k);if(OJc(b)||typeof ra.Promise==="function"&&b instanceof ra.Promise)d=!0,a.blocked_=!0}catch(l){b=l,a.hadError_=!0,tpd(a)||(c=!0)}}a.result_=b;d&&(k=mj(a.continue_,a,!0),d=mj(a.continue_,a,!1),b instanceof RS?(qpd(b,k,d),b.blocking_=!0):b.then(k,d));c&&(b=new vpd(b),upd[b.id_]=b,a.unhandledErrorId_=b.id_)},rpd=function(a){var b=new RS;a.then(function(c){b.callback(c)},function(c){b.errback(c)});return b},opd=function(){pa.call(this)};
yw(opd,pa);opd.prototype.message="Deferred has already fired";opd.prototype.name="AlreadyCalledError";var lpd=function(){pa.call(this)};yw(lpd,pa);lpd.prototype.message="Deferred was canceled";lpd.prototype.name="CanceledError";var vpd=function(a){this.id_=ra.setTimeout(mj(this.throwError,this),0);this.error_=a};vpd.prototype.throwError=function(){delete upd[this.id_];throw this.error_;};var upd={};var R7a=function(a,b){var c=b||{};b=c.document||document;var d=wh(a).toString(),e=(new xC(b)).createElement("SCRIPT"),f={script_:e,timeout_:void 0},g=new RS(wpd,f),k=null,l=c.timeout!=null?c.timeout:5E3;l>0&&(k=window.setTimeout(function(){xpd(e,!0);g.errback(new ypd(1,"Timeout reached for loading script "+d))},l),f.timeout_=k);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(xpd(e,c.cleanupWhenDone||!1,k),g.callback(null))};e.onerror=function(){xpd(e,
!0,k);g.errback(new ypd(0,"Error while loading script "+d))};f=c.attributes||{};tta(f,{type:"text/javascript",charset:"UTF-8"});rJc(e,f);oi(e,a);zpd(b).appendChild(e);return g},zpd=function(a){var b=yC("HEAD",a);return b&&b.length!==0?b[0]:a.documentElement},wpd=function(){if(this&&this.script_){var a=this.script_;a&&a.tagName=="SCRIPT"&&xpd(a,!0,this.timeout_)}},xpd=function(a,b,c){c!=null&&ra.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){CC(a)},
0)},ypd=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);pa.call(this,c);this.code=a};yw(ypd,pa);var N7a=null,T7a=new WeakMap;var SS=function(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?{}:d;var e=this;this.gapiUrl=a;this.gapiKey=b;this.gapiConfigUpdates=c;this.gapiAuthParams=d;this.gapi=ne(function(){return P7a().then(function(f){f=f||window.gapi;e.setGapiConfig(f);return V7a(f,{apiKey:e.gapiKey,clientId:e.gapiAuthParams.clientId,scope:e.gapiAuthParams.scope}).then(function(){return f})})})};Y(SS,vMc);
SS.prototype.makeRequest=function(a){var b=this;return this.gapi.pipe(ke(function(c){var d=ce(void 0);b.gapiAuthParams.minAuthTokenTimeRemaining!==void 0&&(d=Vd(U7a(c,b.gapiAuthParams.minAuthTokenTimeRemaining)));return d.pipe(ke(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}))}))}))};
SS.prototype.parseResponse=function(a){return new Td(function(b){a.then(function(c){c.result===!1&&c.body!=null?b.next({data:c.body}):b.next(c.result);b.complete()},function(c){b.error(c.result)})})};SS.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&S7a(a,b,this.gapiConfigUpdates[b])};var Apd=function(a,b,c,d,e){d=d===void 0?{}:d;e=e===void 0?{}:e;SS.call(this,a,c,d,e);this.waldoApiKey=b};Y(Apd,SS);Apd.prototype.makeRequest=function(a){var b=SS.prototype.makeRequest,c=b.call;(a.queryParams||(a.queryParams={})).key=this.waldoApiKey;return c.call(b,this,a)};var TS=function(a){var b=this;this.apiStub=a;this.result=new qf;this.destroyed=new uf(1);this.trigger=new qf;this.batchedTrigger=this.trigger.pipe(Yka(this.trigger.pipe(ff(200))));this.responseHandler=function(c){if(c.hasResults){c=m(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){var f=e.status.outOfOffice;if(f.comeBackTime){var g=
f=new Date(f.comeBackTime),k=new Date;f=k.getFullYear()===g.getFullYear()&&k.getMonth()===g.getMonth()&&k.getDate()===g.getDate()?"at "+f.toLocaleString("en-Us",{hour:"numeric",minute:"2-digit",hour12:!0}):"on "+(f.getFullYear()!==(new Date).getFullYear()?f.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric",year:"numeric"}):f.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric"}));f=" - back "+f}else f="";f="Out of Office"+f}else f="";b.result.next({emailAddress:d,
availability:f,timezone:e.hasContexts&&e.contexts.hasLocalTime?e.contexts.localTime.timeZone:""})}else b.result.next({emailAddress:d,availability:"",timezone:""})}}};this.batchedTrigger.pipe(zf(this.destroyed)).subscribe(function(c){c=[].concat(q(new Set(c)));Bpd(b,c.slice(0,100));c=m(c.slice(100));for(var d=c.next();!d.done;d=c.next())b.trigger.next(d.value)})},Bpd=function(a,b){var c,d;y(function(e){for(var f=new Iod,g=[],k=m(b),l=k.next();!l.done;l=k.next()){l=l.value;var r=new NS;r.email=l;g.push(r)}f.userIds=
g;c=f;f=a.apiStub;var w=w===void 0?{}:w;var x=x===void 0?{}:x;d=uMc(f.$apiClient,{body:c,httpMethod:"POST",methodId:"waldo_service_api_from_stubby_sandbox.useravailabilities.batchget",path:"/"+f.gapiVersion+"/useravailabilities:batchget",queryParams:Aua(w,ipd,x),responseCtor:Kod});d.pipe(zf(a.destroyed)).subscribe(a.responseHandler);ae(e)})},Cpd=function(a,b){if(!b)return ce({emailAddress:b,availability:"",timezone:""});a.trigger.next(b);return a.result.pipe(ue(function(c){return c.emailAddress===
b}))},Dpd=function(a,b){return Cpd(a,b).pipe(A(function(c){return c.availability}))};TS.prototype.ngOnDestroy=function(){this.destroyed.next()};TS.\u0275fac=function(a){return new (a||TS)(Xc(kpd))};TS.\u0275prov=Dc({token:TS,factory:TS.\u0275fac});var Epd=function(){var a=this;this.waldoAvailabilityService=p(TS);this.user="";this.userSubject=new uf(1);this.availability=this.userSubject.pipe(yf(function(b){return Dpd(a.waldoAvailabilityService,b)}))};Epd.prototype.ngOnChanges=function(){this.userSubject.next(this.user)};Epd.\u0275fac=function(a){return new (a||Epd)};
Epd.\u0275cmp=D({type:Epd,selectors:[["waldo-availability-chip"]],inputs:{user:"user"},standalone:!1,features:[jx],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&&(E(0,W7a,6,3,"div",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.availability))},dependencies:[Nx,Tx],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 Fpd=function(a){this.proxiedService=a};Y(Fpd,vMc);Fpd.prototype.makeRequest=function(a){var b=this;return ne(function(){return b.proxiedService.makeRequest(a)})};var Gpd=new dd("environment"),Hpd={"client/cors":!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0},US=function(){};US.\u0275fac=function(a){return new (a||US)};US.\u0275mod=$e({type:US});US.\u0275inj=Fc({imports:[by,QS]});var Ipd=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,y,z]|-testonly)?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(lh[3-6]\\.(googleadsserving\\.cn|xn--9kr7l\\.com))|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/",
"i"),Jpd=/^(https?:)?\/\/sp[1-4]\.((ggpht)|(googleusercontent))\.com\//i,Kpd=/^(https?:)?\/\/(qa(-red|-blue)?|dev2?|image-dev)(-|\.)lighthouse(-auth)?\.sandbox\.google\.com\//i,Lpd=/^(https?:)?\/\/lighthouse-(qa(-red|-blue)?|dev2)\.corp\.google\.com\//i,Mpd=function(a){return Ipd.test(a)||Jpd.test(a)||Kpd.test(a)||Lpd.test(a)};var Npd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Npd,W);h=Npd.prototype;h.getSize=function(){return Ww(this,1)};h.setSize=function(a){return En(this,1,a)};h.getWidth=function(){return Ww(this,12)};h.setWidth=function(a){return En(this,12,a)};h.getHeight=function(){return Ww(this,13)};h.setHeight=function(a){return En(this,13,a)};h.setStretch=function(a){return Oi(this,33,a)};h.setCrop=function(a){return Oi(this,2,a)};
h.setCircleCrop=function(a){return Oi(this,51,a)};h.setImageCrop=function(a){return Oi(this,32,a)};h.setSmartCrop=function(a){return Oi(this,19,a)};h.setSmartCropNoClip=function(a){return Oi(this,52,a)};h.setSmartCropUseFace=function(a){return Oi(this,67,a)};h.setDetectFaces=function(a){Oi(this,80,a)};h.setCenterCrop=function(a){return Oi(this,20,a)};h.setPad=function(a){return Oi(this,60,a)};h.setDownload=function(a){Oi(this,3,a)};h.setHtml=function(a){Oi(this,4,a)};
h.setObjectId=function(a){gyc(this,7,a)};h.setLooseFaceCrop=function(a){return Oi(this,65,a)};h.setFaceCropVersion=function(a){En(this,94,a)};h.setFrameId=function(a){gyc(this,29,a)};h.setTileX=function(a){En(this,9,a)};h.setTileY=function(a){En(this,10,a)};h.setTileZoom=function(a){En(this,11,a)};h.setTileGeneration=function(a){Oi(this,14,a)};h.setForceTileGeneration=function(a){Oi(this,34,a)};h.setTilePyramidAsProto=function(a){Oi(this,72,a)};h.setExpirationTime=function(a){En(this,15,a)};
h.setExpirationTimeInMinutes=function(a){En(this,107,a)};h.setImageFilter=function(a){return oj(this,16,a)};h.setKillAnimation=function(a){return Oi(this,17,a)};h.setUnfiltered=function(a){Oi(this,18,a)};h.setUnfilteredWithTransforms=function(a){Oi(this,45,a)};h.setIncludeMetadata=function(a){Oi(this,22,a)};h.setIncludePublicMetadata=function(a){Oi(this,54,a)};h.setStripGoogleData=function(a){Oi(this,82,a)};h.setPreserveGoogleData=function(a){Oi(this,83,a)};
h.setStripMetadata=function(a){Oi(this,93,a)};h.setStripGeoinfo=function(a){Oi(this,95,a)};h.setEsPortraitApprovedOnly=function(a){return Oi(this,21,a)};h.setBypassTakedown=function(a){Oi(this,23,a)};h.getToken=function(){return Fl(this,24)};h.setToken=function(a){oj(this,24,a)};h.hasToken=function(){return im(this,24)};h.setVersionedToken=function(a){oj(this,36,a)};h.setSkipRefererCheck=function(a){Oi(this,6,a)};h.setRotate=function(a){return En(this,26,a)};
h.setHorizontalFlip=function(a){Oi(this,30,a)};h.setVerticalFlip=function(a){Oi(this,31,a)};h.getOverlay=function(){return Nv(this,27)};h.setOverlay=function(a){return Oi(this,27,a)};h.setQueryString=function(a){oj(this,28,a)};h.setRequestJpeg=function(a){return Oi(this,57,a)};h.setRequestPng=function(a){return Oi(this,58,a)};h.setRequestGif=function(a){Oi(this,59,a)};h.setRequestAvif=function(a){Oi(this,103,a)};h.setRequestWebp=function(a){return Oi(this,35,a)};
h.setRequestWebpUnlessMaybeTransparent=function(a){Oi(this,41,a)};h.setRequestAnimatedWebp=function(a){Oi(this,64,a)};h.setNoWebp=function(a){Oi(this,48,a)};h.setRequestH264=function(a){return Oi(this,49,a)};h.setLossy=function(a){Oi(this,97,a)};h.setNoOverlay=function(a){return Oi(this,37,a)};h.setBorderSize=function(a){En(this,38,a)};h.setBorderRadius=function(a){En(this,86,a)};h.setBorderColor=function(a){En(this,39,a)};h.setBackgroundColor=function(a){En(this,87,a)};
h.setPadColor=function(a){En(this,88,a)};h.setSubstitutionColor=function(a){En(this,89,a)};h.setNoSilhouette=function(a){Oi(this,40,a)};h.setFocusBlur=function(a){En(this,42,a)};h.setFocalPlane=function(a){En(this,43,a)};h.setQualityLevel=function(a){return En(this,44,a)};h.setQualityBucket=function(a){return En(this,62,a)};h.setNoUpscale=function(a){Oi(this,46,a)};h.setPreserveAspectRatio=function(a){Oi(this,61,a)};h.setForceTransformation=function(a){Oi(this,50,a)};
h.setNoDefaultImage=function(a){Oi(this,53,a)};h.setNoCorrectExifOrientation=function(a){Oi(this,55,a)};h.setSelectFrameNumber=function(a){En(this,56,a)};h.setVideoFormat=function(a){En(this,63,a)};h.setVideoMultiFormat=function(a){oj(this,81,a)};h.setVideoManifest=function(a){Oi(this,98,a)};h.setDownloadVideo=function(a){Oi(this,90,a)};h.setVideoBegin=function(a){vn(this,68,a)};h.setVideoLength=function(a){vn(this,69,a)};h.setMatchVersion=function(a){Oi(this,66,a)};
h.setImageDigest=function(a){Oi(this,70,a)};h.setInternalClient=function(a){En(this,71,a)};h.setMonogram=function(a){Oi(this,73,a)};h.setForceMonogram=function(a){return Oi(this,84,a)};h.setMonogramDogfood=function(a){Oi(this,91,a)};h.setIgnoreLowResProfilePhoto=function(a){Oi(this,96,a)};h.setAutoloop=function(a){Oi(this,74,a)};h.getImageVersion=function(){return Xw(this,75)};h.setImageVersion=function(a){vn(this,75,a)};h.setPitchDegrees=function(a){Zw(this,76,a)};
h.setYawDegrees=function(a){Zw(this,77,a)};h.setRollDegrees=function(a){Zw(this,78,a)};h.setFovDegrees=function(a){Zw(this,79,a)};h.setBadge=function(a){En(this,85,a)};h.setColorProfile=function(a){En(this,92,a)};h.setToneMap=function(a){Oi(this,113,a)};h.setNoToneMap=function(a){Oi(this,114,a)};h.setDeepCrop=function(a){oj(this,99,a)};h.setRequestVideoFast=function(a){Oi(this,100,a)};h.setVideoFormatFilters=function(a){oj(this,102,a)};h.setDummyCacheKeyModifier=function(a){Oi(this,104,a)};
h.setGainMap=function(a){Oi(this,105,a)};h.setNoGainMap=function(a){Oi(this,106,a)};h.setForceCookieRedirect=function(a){Oi(this,108,a)};h.setStoryboardLevel=function(a){En(this,109,a)};h.setStoryboardMosaic=function(a){En(this,110,a)};h.setPregenTimestamps=function(a){oj(this,111,a)};h.setClientExperimentLabel=function(a){oj(this,112,a)};h.setMediaProvenance=function(a){En(this,115,a)};var VS=function(a){this.value_=void 0;this.childNodes_={};a&&this.setAll(a)};VS.prototype.set=function(a,b){Opd(this,a,b,!1)};VS.prototype.setValue=function(a){this.value_=a};VS.prototype.add=function(a,b){Opd(this,a,b,!0)};var Opd=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 VS);a=a.childNodes_[f]}if(d&&a.value_!==void 0)throw Error("Fe`"+b);a.value_=c};
VS.prototype.setAll=function(a){var b=DHc(a);a=CHc(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};var Ppd=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;return a};VS.prototype.get=function(a){return(a=Ppd(this,a))?a.value_:void 0};VS.prototype.getValues=function(){var a=[];Qpd(this,a);return a};var Qpd=function(a,b){a.value_!==void 0&&b.push(a.value_);for(var c in a.childNodes_)Qpd(a.childNodes_[c],b)};
VS.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]}Rpd(c,a,b)}else Rpd(this,"",b);return b};var Rpd=function(a,b,c){a.value_!==void 0&&c.push(b);for(var d in a.childNodes_)Rpd(a.childNodes_[d],b+d,c)};h=VS.prototype;h.containsKey=function(a){return this.get(a)!==void 0};h.clear=function(){this.childNodes_={};this.value_=void 0};
h.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("Ge`"+a);c.push([b,e]);b=b.childNodes_[e]}a=b.value_;for(delete b.value_;c.length>0;)if(d=c.pop(),b=d[0],d=d[1],b.childNodes_[d].isEmpty())delete b.childNodes_[d];else break;return a};h.clone=function(){return new VS(this)};
h.getCount=function(){var a=this.getValues();if(a.getCount&&typeof a.getCount=="function")a=a.getCount();else if(Na(a)||typeof a==="string")a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a};h.isEmpty=function(){return this.value_===void 0&&nta(this.childNodes_)};var Upd=function(){if(!Spd){var a=Spd=new VS,b;for(b in Tpd)a.add(b,Tpd[b])}},Spd,WS=function(a,b){this.types=a;this.setters=b},Tpd={a:new WS([3,0],[function(a,b){a.setEsPortraitApprovedOnly(b)},function(a,b){a.setSelectFrameNumber(b)}]),al:new WS([3],[function(a,b){a.setAutoloop(b)}]),b:new WS([3,0],[function(a,b){a.setBypassTakedown(b)},function(a,b){a.setBorderSize(b)}]),ba:new WS([0],[function(a,b){a.setBadge(b)}]),bc:new WS([0],[function(a,b){a.setBackgroundColor(b)}]),br:new WS([0],[function(a,
b){a.setBorderRadius(b)}]),c:new WS([3,0],[function(a,b){a.setCrop(b)},function(a,b){a.setBorderColor(b)}]),cc:new WS([3],[function(a,b){a.setCircleCrop(b)}]),ci:new WS([3],[function(a,b){a.setImageCrop(b)}]),ckm:new WS([3],[function(a,b){a.setDummyCacheKeyModifier(b)}]),cp:new WS([0],[function(a,b){a.setColorProfile(b)}]),cr:new WS([3],[function(a,b){a.setForceCookieRedirect(b)}]),cv:new WS([0],[function(a,b){a.setFaceCropVersion(b)}]),d:new WS([3],[function(a,b){a.setDownload(b)}]),dc:new WS([5],
[function(a,b){a.setDeepCrop(b)}]),df:new WS([3],[function(a,b){a.setDetectFaces(b)}]),dv:new WS([3],[function(a,b){a.setDownloadVideo(b)}]),e:new WS([0],[function(a,b){a.setExpirationTime(b)}]),em:new WS([0],[function(a,b){a.setExpirationTimeInMinutes(b)}]),f:new WS([4],[function(a,b){a.setImageFilter(b)}]),fg:new WS([3],[function(a,b){a.setForceTileGeneration(b)}]),fh:new WS([3],[function(a,b){a.setHorizontalFlip(b)}]),fm:new WS([3],[function(a,b){a.setForceMonogram(b)}]),fo:new WS([2],[function(a,
b){a.setFovDegrees(b)}]),ft:new WS([3],[function(a,b){a.setForceTransformation(b)}]),fv:new WS([3],[function(a,b){a.setVerticalFlip(b)}]),g:new WS([3],[function(a,b){a.setTileGeneration(b)}]),gce:new WS([4],[function(a,b){a.setClientExperimentLabel(b)}]),gd:new WS([3],[function(a,b){a.setPreserveGoogleData(b)}]),gm:new WS([3],[function(a,b){a.setGainMap(b)}]),h:new WS([3,0],[function(a,b){a.setHtml(b)},function(a,b){a.setHeight(b)}]),i:new WS([3],[function(a,b){a.setIncludeMetadata(b)}]),ic:new WS([0],
[function(a,b){a.setInternalClient(b)}]),id:new WS([3],[function(a,b){a.setImageDigest(b)}]),il:new WS([3],[function(a,b){a.setIgnoreLowResProfilePhoto(b)}]),ip:new WS([3],[function(a,b){a.setIncludePublicMetadata(b)}]),iv:new WS([0],[function(a,b){a.setImageVersion(b)}]),j:new WS([1],[function(a,b){a.setFrameId(b)}]),k:new WS([3,0],[function(a,b){a.setKillAnimation(b)},function(a,b){a.setFocusBlur(b)}]),l:new WS([0],[function(a,b){a.setQualityLevel(b)}]),lf:new WS([3],[function(a,b){a.setLooseFaceCrop(b)}]),
lo:new WS([3],[function(a,b){a.setLossy(b)}]),m:new WS([0],[function(a,b){a.setVideoFormat(b)}]),md:new WS([3],[function(a,b){a.setMonogramDogfood(b)}]),mm:new WS([4],[function(a,b){a.setVideoMultiFormat(b)}]),mo:new WS([3],[function(a,b){a.setMonogram(b)}]),mp:new WS([0],[function(a,b){a.setMediaProvenance(b)}]),mv:new WS([3],[function(a,b){a.setMatchVersion(b)}]),n:new WS([3],[function(a,b){a.setCenterCrop(b)}]),nc:new WS([3],[function(a,b){a.setNoCorrectExifOrientation(b)}]),nd:new WS([3],[function(a,
b){a.setNoDefaultImage(b)}]),ng:new WS([3],[function(a,b){a.setStripGeoinfo(b)}]),ngm:new WS([3],[function(a,b){a.setNoGainMap(b)}]),no:new WS([3],[function(a,b){a.setNoOverlay(b)}]),ns:new WS([3],[function(a,b){a.setNoSilhouette(b)}]),nt0:new WS([4],[function(a,b){a.setVersionedToken(b)}]),ntm:new WS([3],[function(a,b){a.setNoToneMap(b)}]),nu:new WS([3],[function(a,b){a.setNoUpscale(b)}]),nw:new WS([3],[function(a,b){a.setNoWebp(b)}]),o:new WS([1,3],[function(a,b){a.setObjectId(b)},function(a,b){a.setOverlay(b)}]),
p:new WS([3,0],[function(a,b){a.setSmartCrop(b)},function(a,b){a.setFocalPlane(b)}]),pa:new WS([3],[function(a,b){a.setPreserveAspectRatio(b)}]),pc:new WS([0],[function(a,b){a.setPadColor(b)}]),pd:new WS([3],[function(a,b){a.setPad(b)}]),pf:new WS([3],[function(a,b){a.setSmartCropUseFace(b)}]),pg:new WS([3],[function(a,b){a.setTilePyramidAsProto(b)}]),pi:new WS([2],[function(a,b){a.setPitchDegrees(b)}]),pp:new WS([3],[function(a,b){a.setSmartCropNoClip(b)}]),pt:new WS([4],[function(a,b){a.setPregenTimestamps(b)}]),
q:new WS([4],[function(a,b){a.setQueryString(b)}]),r:new WS([3,0],[function(a,b){a.setSkipRefererCheck(b)},function(a,b){a.setRotate(b)}]),ra:new WS([3],[function(a,b){a.setRequestAvif(b)}]),rf:new WS([3],[function(a,b){a.setRequestVideoFast(b)}]),rg:new WS([3],[function(a,b){a.setRequestGif(b)}]),rh:new WS([3],[function(a,b){a.setRequestH264(b)}]),rj:new WS([3],[function(a,b){a.setRequestJpeg(b)}]),ro:new WS([2],[function(a,b){a.setRollDegrees(b)}]),rp:new WS([3],[function(a,b){a.setRequestPng(b)}]),
rw:new WS([3],[function(a,b){a.setRequestWebp(b)}]),rwa:new WS([3],[function(a,b){a.setRequestAnimatedWebp(b)}]),rwu:new WS([3],[function(a,b){a.setRequestWebpUnlessMaybeTransparent(b)}]),s:new WS([3,0],[function(a,b){a.setStretch(b)},function(a,b){a.setSize(b)}]),sb:new WS([0],[function(a,b){a.setStoryboardMosaic(b)}]),sc:new WS([0],[function(a,b){a.setSubstitutionColor(b)}]),sg:new WS([3],[function(a,b){a.setStripGoogleData(b)}]),sl:new WS([0],[function(a,b){a.setStoryboardLevel(b)}]),sm:new WS([3],
[function(a,b){a.setStripMetadata(b)}]),t:new WS([4],[function(a,b){a.setToken(b)}]),tm:new WS([3],[function(a,b){a.setToneMap(b)}]),u:new WS([3],[function(a,b){a.setUnfiltered(b)}]),ut:new WS([3],[function(a,b){a.setUnfilteredWithTransforms(b)}]),v:new WS([0],[function(a,b){a.setQualityBucket(b)}]),vb:new WS([0],[function(a,b){a.setVideoBegin(b)}]),vf:new WS([4],[function(a,b){a.setVideoFormatFilters(b)}]),vl:new WS([0],[function(a,b){a.setVideoLength(b)}]),vm:new WS([3],[function(a,b){a.setVideoManifest(b)}]),
w:new WS([0],[function(a,b){a.setWidth(b)}]),x:new WS([0],[function(a,b){a.setTileX(b)}]),y:new WS([0],[function(a,b){a.setTileY(b)}]),ya:new WS([2],[function(a,b){a.setYawDegrees(b)}]),z:new WS([0],[function(a,b){a.setTileZoom(b)}])};
Upd.prototype.parse=function(a){var b=new Npd,c=new Npd;if(a=="")a=!0;else{a=a.split("-");for(var d=!0,e=0;e<a.length;e++){var f=a[e];if(f.length==0)d=!1;else{var g=f,k=!1;var l=g;var r=g.charAt(0);r!=r.toLowerCase()&&(k=!0,l=g.charAt(0).toLowerCase()+g.substring(1));var w=Spd;for(r=1;r<=l.length;++r){var x=w,C=l.substring(0,r);if(C.length==0?x.isEmpty():!Ppd(x,C))break}l=r==1?null:(l=w.get(l.substring(0,r-1)))?{option:g.substring(0,r-1),value:g.substring(r-1),signed:k,attributes:l}:null;if(l){g=
[];k=[];r=!1;for(w=0;w<l.attributes.types.length;w++){x=l.attributes.types[w];var H=l.value;C=e;if(l.signed&&x==1)for(var J=H.length;J<12&&C<a.length-1;)H+="-"+a[C+1],J=H.length,++C;else if(x==2)for(;C<a.length-1&&a[C+1].match(/^[\d\.]/);)H+="-"+a[C+1],++C;J=l.attributes.setters[w];H=Vpd(this,x)(l.option,H,b,c,J);if(H===null){r=!0;e=C;break}else g.push(x),k.push(H)}if(!r)for(l=0;l<k.length;l++)w=g[l],H=k[l],Wpd(this,w)(f,H);d=d&&r}else d=!1}}a=d}return new Xpd(b,c,a)};
var Ypd=function(a,b,c,d,e,f){e(c,b);a=a.charAt(0);f=f(a==a.toUpperCase());e(d,f)};h=Upd.prototype;h.parseAndSetIntOption_=function(a,b,c,d,e){if(b=="")return 0;b=rm(b);if(isNaN(b))return 1;Ypd(a,b,c,d,e,Number);return null};h.logIntParseError_=function(){};h.parseAndSetFloatOption_=function(a,b,c,d,e){if(b=="")return 0;b=vo(b);if(isNaN(b))return 1;Ypd(a,b,c,d,e,Number);return null};h.logFloatParseError_=function(){};
h.parseAndSetBoolOption_=function(a,b,c,d,e){if(b!="")return 2;Ypd(a,!0,c,d,e,Boolean);return null};h.logBoolParseError_=function(){};h.parseAndSetStringOption_=function(a,b,c,d,e){if(b=="")return 0;Ypd(a,b,c,d,e,function(f){return f?"1":""});return null};h.logStringParseError_=function(){};h.parseAndSetUint64Base64Option_=function(a,b,c,d,e){if(b=="")return 0;Ypd(a,b,c,d,e,function(f){return f?1:0});return null};
var Vpd=function(a,b){switch(b){case 0:return mj(a.parseAndSetIntOption_,a);case 2:return mj(a.parseAndSetFloatOption_,a);case 3:return mj(a.parseAndSetBoolOption_,a);case 4:return mj(a.parseAndSetStringOption_,a);case 1:return mj(a.parseAndSetUint64Base64Option_,a);default:return function(){}}},Wpd=function(a,b){switch(b){case 0:return mj(a.logIntParseError_,a);case 2:return mj(a.logFloatParseError_,a);case 3:return mj(a.logBoolParseError_,a);case 4:case 1:return mj(a.logStringParseError_,a);default:return function(){}}},
Xpd=function(a,b,c){this.valueProto_=a;this.signatureFlagProto_=b;this.valid_=c};Xpd.prototype.isValid=function(){return this.valid_};h=X7a.prototype;h.buffer_="";h.set=function(a){this.buffer_=""+a};h.append=function(a,b,c){this.buffer_+=String(a);if(b!=null)for(var d=1;d<arguments.length;d++)this.buffer_+=arguments[d];return this};h.clear=function(){this.buffer_=""};h.getLength=function(){return this.buffer_.length};h.toString=function(){return this.buffer_};var Y7a=function(a){this.parser_=null;this.components_=[];this.parsedOptions_=null;Zpd(this,a)};Y7a.prototype.getParsedOptions=function(){return this.parsedOptions_};var $pd=function(a){a.parser_==null&&(a.parser_=new Upd);return a.parser_},Zpd=function(a,b){a.parsedOptions_=b?typeof b==="string"?$pd(a).parse(b):b:$pd(a).parse("")},XS=function(a,b){return a==b?!1:!0};h=Y7a.prototype;
h.setEsPortraitApprovedOnly=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,21),Nv(b.signatureFlagProto_,21))&&c.setEsPortraitApprovedOnly(a);return this};h.setSelectFrameNumber=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,56),Ww(b.signatureFlagProto_,56))&&c.setSelectFrameNumber(a)};h.setAutoloop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,74),Nv(b.signatureFlagProto_,74))&&c.setAutoloop(a)};
h.setBypassTakedown=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,23),Fi(b.signatureFlagProto_,23))&&c.setBypassTakedown(a)};h.setBorderSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,38),Ww(b.signatureFlagProto_,38))&&c.setBorderSize(a)};h.setBadge=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,85),Ww(b.signatureFlagProto_,85))&&c.setBadge(a)};
h.setBackgroundColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,87),Ww(b.signatureFlagProto_,87))&&c.setBackgroundColor(a)};h.setBorderRadius=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,86),Ww(b.signatureFlagProto_,86))&&c.setBorderRadius(a)};h.setCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,2),Fi(b.signatureFlagProto_,2))&&c.setCrop(a);return this};
h.setBorderColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,39),Ww(b.signatureFlagProto_,39))&&c.setBorderColor(a)};h.setCircleCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,51),Nv(b.signatureFlagProto_,51))&&c.setCircleCrop(a);return this};h.setImageCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,32),Nv(b.signatureFlagProto_,32))&&c.setImageCrop(a);return this};
h.setDummyCacheKeyModifier=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,104),Nv(b.signatureFlagProto_,104))&&c.setDummyCacheKeyModifier(a)};h.setColorProfile=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,92),Ww(b.signatureFlagProto_,92))&&c.setColorProfile(a)};h.setForceCookieRedirect=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,108),Nv(b.signatureFlagProto_,108))&&c.setForceCookieRedirect(a)};
h.setFaceCropVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,94),Ww(b.signatureFlagProto_,94))&&c.setFaceCropVersion(a)};h.setDownload=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,3),Fi(b.signatureFlagProto_,3))&&c.setDownload(a)};h.setDeepCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fl(c,99),Fl(b.signatureFlagProto_,99))&&c.setDeepCrop(a)};
h.setDetectFaces=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,80),Nv(b.signatureFlagProto_,80))&&c.setDetectFaces(a)};h.setDownloadVideo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,90),Nv(b.signatureFlagProto_,90))&&c.setDownloadVideo(a)};h.setExpirationTime=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,15),Ww(b.signatureFlagProto_,15))&&c.setExpirationTime(a)};
h.setExpirationTimeInMinutes=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,107),Ww(b.signatureFlagProto_,107))&&c.setExpirationTimeInMinutes(a)};h.setImageFilter=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fl(c,16),Fl(b.signatureFlagProto_,16))&&c.setImageFilter(a);return this};h.setForceTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,34),Fi(b.signatureFlagProto_,34))&&c.setForceTileGeneration(a)};
h.setHorizontalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,30),Nv(b.signatureFlagProto_,30))&&c.setHorizontalFlip(a)};h.setForceMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,84),Nv(b.signatureFlagProto_,84))&&c.setForceMonogram(a);return this};h.setFovDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Yw(c,79),Yw(b.signatureFlagProto_,79))&&c.setFovDegrees(a)};
h.setForceTransformation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,50),Nv(b.signatureFlagProto_,50))&&c.setForceTransformation(a)};h.setVerticalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,31),Nv(b.signatureFlagProto_,31))&&c.setVerticalFlip(a)};h.setTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,14),Fi(b.signatureFlagProto_,14))&&c.setTileGeneration(a)};
h.setClientExperimentLabel=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fl(c,112),Fl(b.signatureFlagProto_,112))&&c.setClientExperimentLabel(a)};h.setPreserveGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,83),Nv(b.signatureFlagProto_,83))&&c.setPreserveGoogleData(a)};h.setGainMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,105),Nv(b.signatureFlagProto_,105))&&c.setGainMap(a)};
h.setHtml=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,4),Fi(b.signatureFlagProto_,4))&&c.setHtml(a)};h.setHeight=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,c.getHeight(),b.signatureFlagProto_.getHeight())&&c.setHeight(a);return this};h.setIncludeMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,22),Nv(b.signatureFlagProto_,22))&&c.setIncludeMetadata(a)};
h.setInternalClient=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,71),Ww(b.signatureFlagProto_,71))&&c.setInternalClient(a)};h.setImageDigest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,70),Nv(b.signatureFlagProto_,70))&&c.setImageDigest(a)};h.setIgnoreLowResProfilePhoto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,96),Nv(b.signatureFlagProto_,96))&&c.setIgnoreLowResProfilePhoto(a)};
h.setIncludePublicMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,54),Nv(b.signatureFlagProto_,54))&&c.setIncludePublicMetadata(a)};h.setImageVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,c.getImageVersion(),b.signatureFlagProto_.getImageVersion())&&c.setImageVersion(a)};h.setFrameId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Mw(c,29,Xv),Mw(b.signatureFlagProto_,29,Xv))&&c.setFrameId(a)};
h.setKillAnimation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,17),Nv(b.signatureFlagProto_,17))&&c.setKillAnimation(a);return this};h.setFocusBlur=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,42),Ww(b.signatureFlagProto_,42))&&c.setFocusBlur(a)};h.setQualityLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,44),Ww(b.signatureFlagProto_,44))&&c.setQualityLevel(a);return this};
h.setLooseFaceCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,65),Nv(b.signatureFlagProto_,65))&&c.setLooseFaceCrop(a);return this};h.setLossy=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,97),Nv(b.signatureFlagProto_,97))&&c.setLossy(a)};h.setVideoFormat=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,63),Ww(b.signatureFlagProto_,63))&&c.setVideoFormat(a)};
h.setMonogramDogfood=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,91),Nv(b.signatureFlagProto_,91))&&c.setMonogramDogfood(a)};h.setVideoMultiFormat=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fl(c,81),Fl(b.signatureFlagProto_,81))&&c.setVideoMultiFormat(a)};h.setMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,73),Nv(b.signatureFlagProto_,73))&&c.setMonogram(a)};
h.setMediaProvenance=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,115),Ww(b.signatureFlagProto_,115))&&c.setMediaProvenance(a)};h.setMatchVersion=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,66),Nv(b.signatureFlagProto_,66))&&c.setMatchVersion(a)};h.setCenterCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,20),Fi(b.signatureFlagProto_,20))&&c.setCenterCrop(a);return this};
h.setNoCorrectExifOrientation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,55),Nv(b.signatureFlagProto_,55))&&c.setNoCorrectExifOrientation(a)};h.setNoDefaultImage=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,53),Nv(b.signatureFlagProto_,53))&&c.setNoDefaultImage(a)};h.setStripGeoinfo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,95),Nv(b.signatureFlagProto_,95))&&c.setStripGeoinfo(a)};
h.setNoGainMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,106),Nv(b.signatureFlagProto_,106))&&c.setNoGainMap(a)};h.setNoOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,37),Fi(b.signatureFlagProto_,37))&&c.setNoOverlay(a);return this};h.setNoSilhouette=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,40),Nv(b.signatureFlagProto_,40))&&c.setNoSilhouette(a)};
h.setVersionedToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fl(c,36),Fl(b.signatureFlagProto_,36))&&c.setVersionedToken(a)};h.setNoToneMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,114),Nv(b.signatureFlagProto_,114))&&c.setNoToneMap(a)};h.setNoUpscale=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,46),Nv(b.signatureFlagProto_,46))&&c.setNoUpscale(a)};
h.setNoWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,48),Fi(b.signatureFlagProto_,48))&&c.setNoWebp(a)};h.setObjectId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Mw(c,7,Xv),Mw(b.signatureFlagProto_,7,Xv))&&c.setObjectId(a)};h.setOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,c.getOverlay(),b.signatureFlagProto_.getOverlay())&&c.setOverlay(a);return this};
h.setSmartCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,19),Fi(b.signatureFlagProto_,19))&&c.setSmartCrop(a);return this};h.setFocalPlane=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,43),Ww(b.signatureFlagProto_,43))&&c.setFocalPlane(a)};h.setPreserveAspectRatio=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,61),Nv(b.signatureFlagProto_,61))&&c.setPreserveAspectRatio(a)};
h.setPadColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,88),Ww(b.signatureFlagProto_,88))&&c.setPadColor(a)};h.setPad=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,60),Nv(b.signatureFlagProto_,60))&&c.setPad(a);return this};h.setSmartCropUseFace=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,67),Fi(b.signatureFlagProto_,67))&&c.setSmartCropUseFace(a);return this};
h.setTilePyramidAsProto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,72),Fi(b.signatureFlagProto_,72))&&c.setTilePyramidAsProto(a)};h.setPitchDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Yw(c,76),Yw(b.signatureFlagProto_,76))&&c.setPitchDegrees(a)};h.setSmartCropNoClip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,52),Fi(b.signatureFlagProto_,52))&&c.setSmartCropNoClip(a);return this};
h.setPregenTimestamps=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fl(c,111),Fl(b.signatureFlagProto_,111))&&c.setPregenTimestamps(a)};h.setQueryString=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fl(c,28),Fl(b.signatureFlagProto_,28))&&c.setQueryString(a)};h.setSkipRefererCheck=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,6),Fi(b.signatureFlagProto_,6))&&c.setSkipRefererCheck(a)};
h.setRotate=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,26),Ww(b.signatureFlagProto_,26))&&c.setRotate(a);return this};h.setRequestAvif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,103),Fi(b.signatureFlagProto_,103))&&c.setRequestAvif(a)};h.setRequestVideoFast=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,100),Nv(b.signatureFlagProto_,100))&&c.setRequestVideoFast(a)};
h.setRequestGif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,59),Nv(b.signatureFlagProto_,59))&&c.setRequestGif(a)};h.setRequestH264=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,49),Fi(b.signatureFlagProto_,49))&&c.setRequestH264(a);return this};h.setRequestJpeg=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,57),Nv(b.signatureFlagProto_,57))&&c.setRequestJpeg(a);return this};
h.setRollDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Yw(c,78),Yw(b.signatureFlagProto_,78))&&c.setRollDegrees(a)};h.setRequestPng=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,58),Nv(b.signatureFlagProto_,58))&&c.setRequestPng(a);return this};h.setRequestWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,35),Fi(b.signatureFlagProto_,35))&&c.setRequestWebp(a);return this};
h.setRequestAnimatedWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,64),Fi(b.signatureFlagProto_,64))&&c.setRequestAnimatedWebp(a)};h.setRequestWebpUnlessMaybeTransparent=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fi(c,41),Fi(b.signatureFlagProto_,41))&&c.setRequestWebpUnlessMaybeTransparent(a)};h.setStretch=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,33),Nv(b.signatureFlagProto_,33))&&c.setStretch(a);return this};
h.setSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};h.setStoryboardMosaic=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,110),Ww(b.signatureFlagProto_,110))&&c.setStoryboardMosaic(a)};h.setSubstitutionColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,89),Ww(b.signatureFlagProto_,89))&&c.setSubstitutionColor(a)};
h.setStripGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,82),Nv(b.signatureFlagProto_,82))&&c.setStripGoogleData(a)};h.setStoryboardLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,109),Ww(b.signatureFlagProto_,109))&&c.setStoryboardLevel(a)};h.setStripMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,93),Nv(b.signatureFlagProto_,93))&&c.setStripMetadata(a)};
h.setToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,c.getToken(),b.signatureFlagProto_.getToken())&&c.setToken(a)};h.setToneMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,113),Nv(b.signatureFlagProto_,113))&&c.setToneMap(a)};h.setUnfiltered=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,18),Nv(b.signatureFlagProto_,18))&&c.setUnfiltered(a)};
h.setUnfilteredWithTransforms=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,45),Nv(b.signatureFlagProto_,45))&&c.setUnfilteredWithTransforms(a)};h.setQualityBucket=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,62),Ww(b.signatureFlagProto_,62))&&c.setQualityBucket(a);return this};h.setVideoBegin=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Xw(c,68),Xw(b.signatureFlagProto_,68))&&c.setVideoBegin(a)};
h.setVideoFormatFilters=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Fl(c,102),Fl(b.signatureFlagProto_,102))&&c.setVideoFormatFilters(a)};h.setVideoLength=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Xw(c,69),Xw(b.signatureFlagProto_,69))&&c.setVideoLength(a)};h.setVideoManifest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XS(a,Nv(c,98),Nv(b.signatureFlagProto_,98))&&c.setVideoManifest(a)};
h.setWidth=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&c.setWidth(a);return this};h.setTileX=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,9),Ww(b.signatureFlagProto_,9))&&c.setTileX(a)};h.setTileY=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,10),Ww(b.signatureFlagProto_,10))&&c.setTileY(a)};
h.setYawDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Yw(c,77),Yw(b.signatureFlagProto_,77))&&c.setYawDegrees(a)};h.setTileZoom=function(a){var b=this.parsedOptions_,c=b.valueProto_;XS(a,Ww(c,11),Ww(b.signatureFlagProto_,11))&&c.setTileZoom(a)};h.setOptions=function(a){Zpd(this,a);return this};
h.build=function(){this.components_.length=0;var a=this.parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;YS(this,"s",b.getSize(),a.getSize());YS(this,"w",b.getWidth(),a.getWidth());ZS(this,"c",Fi(b,2),Fi(a,2));ZS(this,"d",Fi(b,3),Fi(a,3));YS(this,"h",b.getHeight(),a.getHeight());ZS(this,"s",Nv(b,33),Nv(a,33));ZS(this,"h",Fi(b,4),Fi(a,4));ZS(this,"p",Fi(b,19),Fi(a,19));ZS(this,"pp",Fi(b,52),Fi(a,52));ZS(this,"pf",Fi(b,67),Fi(a,67));ZS(this,"n",Fi(b,20),Fi(a,20));YS(this,"r",Ww(b,26),Ww(a,26));
ZS(this,"r",Fi(b,6),Fi(a,6));ZS(this,"o",b.getOverlay(),a.getOverlay());var c=Mw(b,7,Xv);$S(this,"o",c,Mw(a,7,Xv));c=Mw(b,29,Xv);$S(this,"j",c,Mw(a,29,Xv));YS(this,"x",Ww(b,9),Ww(a,9));YS(this,"y",Ww(b,10),Ww(a,10));YS(this,"z",Ww(b,11),Ww(a,11));ZS(this,"g",Fi(b,14),Fi(a,14));YS(this,"e",Ww(b,15),Ww(a,15));$S(this,"f",Fl(b,16),Fl(a,16));ZS(this,"k",Nv(b,17),Nv(a,17));ZS(this,"u",Nv(b,18),!0);ZS(this,"ut",Nv(b,45),!0);ZS(this,"i",Nv(b,22),!0);ZS(this,"a",Nv(b,21),Nv(a,21));ZS(this,"b",Fi(b,23),Fi(a,
23));YS(this,"b",Ww(b,38),Ww(a,38));YS(this,"c",Ww(b,39),Ww(a,39),16,8);$S(this,"q",Fl(b,28),Fl(a,28));ZS(this,"fh",Nv(b,30),Nv(a,30));ZS(this,"fv",Nv(b,31),Nv(a,31));ZS(this,"fg",Fi(b,34),Fi(a,34));ZS(this,"ci",Nv(b,32),Nv(a,32));$S(this,"t",b.getToken(),a.getToken());$S(this,"nt0",Fl(b,36),Fl(a,36));ZS(this,"rw",Fi(b,35),Fi(a,35));ZS(this,"rwu",Fi(b,41),Fi(a,41));ZS(this,"rwa",Fi(b,64),Fi(a,64));ZS(this,"nw",Fi(b,48),Fi(a,48));ZS(this,"rh",Fi(b,49),Fi(a,49));ZS(this,"no",Fi(b,37),Fi(a,37));ZS(this,
"ns",Nv(b,40),Nv(a,40));YS(this,"k",Ww(b,42),Ww(a,42));YS(this,"p",Ww(b,43),Ww(a,43));YS(this,"l",Ww(b,44),Ww(a,44));YS(this,"v",Ww(b,62),Ww(a,62));ZS(this,"nu",Nv(b,46),Nv(a,46));ZS(this,"ft",Nv(b,50),Nv(a,50));ZS(this,"cc",Nv(b,51),Nv(a,51));ZS(this,"nd",Nv(b,53),Nv(a,53));ZS(this,"ip",Nv(b,54),Nv(a,54));ZS(this,"nc",Nv(b,55),Nv(a,55));YS(this,"a",Ww(b,56),Ww(a,56));ZS(this,"rj",Nv(b,57),Nv(a,57));ZS(this,"rp",Nv(b,58),Nv(a,58));ZS(this,"rg",Nv(b,59),Nv(a,59));ZS(this,"pd",Nv(b,60),Nv(a,60));ZS(this,
"pa",Nv(b,61),Nv(a,61));YS(this,"m",Ww(b,63),Ww(a,63));YS(this,"vb",Xw(b,68),Xw(a,68));YS(this,"vl",Xw(b,69),Xw(a,69));ZS(this,"lf",Nv(b,65),Nv(a,65));ZS(this,"mv",Nv(b,66),Nv(a,66));ZS(this,"id",Nv(b,70),Nv(a,70));YS(this,"ic",Ww(b,71),!0);ZS(this,"pg",Fi(b,72),Fi(a,72));ZS(this,"mo",Nv(b,73),Nv(a,73));ZS(this,"al",Nv(b,74),Nv(a,74));YS(this,"iv",b.getImageVersion(),a.getImageVersion());YS(this,"pi",Yw(b,76),Yw(a,76));YS(this,"ya",Yw(b,77),Yw(a,77));YS(this,"ro",Yw(b,78),Yw(a,78));YS(this,"fo",Yw(b,
79),Yw(a,79));ZS(this,"df",Nv(b,80),Nv(a,80));$S(this,"mm",Fl(b,81),Fl(a,81));ZS(this,"sg",Nv(b,82),Nv(a,82));ZS(this,"gd",Nv(b,83),Nv(a,83));ZS(this,"fm",Nv(b,84),Nv(a,84));YS(this,"ba",Ww(b,85),Ww(a,85));YS(this,"br",Ww(b,86),Ww(a,86));YS(this,"bc",Ww(b,87),Ww(a,87),16,8);YS(this,"pc",Ww(b,88),Ww(a,88),16,8);YS(this,"sc",Ww(b,89),Ww(a,89),16,8);ZS(this,"dv",Nv(b,90),Nv(a,90));ZS(this,"md",Nv(b,91),Nv(a,91));YS(this,"cp",Ww(b,92),Ww(a,92));ZS(this,"sm",Nv(b,93),Nv(a,93));YS(this,"cv",Ww(b,94),Ww(a,
94));ZS(this,"ng",Nv(b,95),Nv(a,95));ZS(this,"il",Nv(b,96),Nv(a,96));ZS(this,"lo",Nv(b,97),Nv(a,97));ZS(this,"vm",Nv(b,98),Nv(a,98));$S(this,"dc",Fl(b,99),Fl(a,99));ZS(this,"rf",Nv(b,100),Nv(a,100));$S(this,"vf",Fl(b,102),Fl(a,102));ZS(this,"ra",Fi(b,103),Fi(a,103));ZS(this,"ckm",Nv(b,104),Nv(a,104));ZS(this,"gm",Nv(b,105),Nv(a,105));ZS(this,"ngm",Nv(b,106),Nv(a,106));YS(this,"em",Ww(b,107),Ww(a,107));ZS(this,"cr",Nv(b,108),Nv(a,108));YS(this,"sl",Ww(b,109),Ww(a,109));YS(this,"sb",Ww(b,110),Ww(a,
110));$S(this,"pt",Fl(b,111),Fl(a,111));$S(this,"gce",Fl(b,112),Fl(a,112));ZS(this,"tm",Nv(b,113),Nv(a,113));ZS(this,"ntm",Nv(b,114),Nv(a,114));YS(this,"mp",Ww(b,115),Ww(a,115));return this.components_.join("-")};
var YS=function(a,b,c,d,e,f){if(c!=null){var g=e==void 0||e!=10&&e!=16?10:e;c=Number(c).toString(g);e=new X7a;e.append(g==16?"0x":"");g=e.append;f==void 0?f="":(f-=c.length,f=f<=0?"":WGc("0",f));g.call(e,f);e.append(c);aqd(a,b,e.toString(),!!Number(d))}},ZS=function(a,b,c,d){c&&aqd(a,b,"",!!d)},$S=function(a,b,c,d){c&&aqd(a,b,String(c),!!Number(d))},aqd=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));a.components_.push(b+c)};yw(Or,Y7a);h=Or.prototype;h.setCrop=function(a){a&&aT(this);return Or.superClass_.setCrop.call(this,a)};h.setHeight=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return Or.superClass_.setHeight.call(this,a)};h.setStretch=function(a){a&&aT(this);return Or.superClass_.setStretch.call(this,a)};h.setQualityLevel=function(a){return Or.superClass_.setQualityLevel.call(this,a)};h.setImageFilter=function(a){a&&(a=a.replace(";",":"));return Or.superClass_.setImageFilter.call(this,a)};
h.setImageCrop=function(a){a&&aT(this);return Or.superClass_.setImageCrop.call(this,a)};h.setCircleCrop=function(a){a&&aT(this);return Or.superClass_.setCircleCrop.call(this,a)};h.setSize=function(a){Oa(a)&&(a=Math.max(a.width,a.height));a=a==null||a<0?void 0:a;a!=null&&(this.setWidth(),this.setHeight());return Or.superClass_.setSize.call(this,a)};h.setSmartCrop=function(a){a&&aT(this);return Or.superClass_.setSmartCrop.call(this,a)};
h.setSmartCropNoClip=function(a){a&&aT(this);return Or.superClass_.setSmartCropNoClip.call(this,a)};h.setSmartCropUseFace=function(a){a&&aT(this);return Or.superClass_.setSmartCropUseFace.call(this,a)};h.setCenterCrop=function(a){a&&aT(this);return Or.superClass_.setCenterCrop.call(this,a)};h.setPad=function(a){a&&aT(this);return Or.superClass_.setPad.call(this,a)};h.setWidth=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return Or.superClass_.setWidth.call(this,a)};
var aT=function(a){a.setCenterCrop();a.setCircleCrop();a.setCrop();a.setImageCrop();a.setPad();a.setSmartCrop();a.setSmartCropNoClip();a.setSmartCropUseFace()};Or.prototype.build=function(){var a=this.getParsedOptions().valueProto_;Nv(a,18)||Nv(a,45)?a.getSize()||this.setSize(0):(a=this.getParsedOptions().valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.setHeight(),this.setWidth(),aT(this)));return Or.superClass_.build.call(this)};var bqd=/^[^\/]*\/\//,bT=function(a,b){b=b===void 0?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(bqd))&&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_=zt(a,!0);this.isFreeformUrl_=b;this.valid_=!0;this.obfuscated_=!1},cqd=function(a,b){a.pathPrefix_=a.pathPrefix_?a.pathPrefix_+("/"+b):b},cT=function(a){if(a.components_==void 0){var b=a.uri_.getPath().substring(1);
a.pathPrefix_=null;if(a.isFreeformUrl_){a.components_=[];if((b.match(/=/g)||[]).length>1)return a.valid_=!1,a.components_;var c=b.indexOf("=");c!=-1?(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;b>2&&a.components_[0]=="u"&&(cqd(a,a.components_[0]+"/"+a.components_[1]),a.components_.shift(),a.components_.shift(),b-=2);if(b==0||b==4||b>7)return a.valid_=!1,a.components_;if(b==2)cqd(a,
a.components_[0]);else if(a.components_[0]=="image")cqd(a,a.components_[0]);else if(b==7||b==3)return a.valid_=!1,a.components_;if(b<=3){a.obfuscated_=!0;b==3&&(cqd(a,a.components_[1]),a.components_.shift(),--b);--b;c=a.components_[b];var d=c.indexOf("=");d!=-1&&(a.components_[b]=c.substr(0,d),a.components_.push(c.substr(d+1)))}}return a.components_};bT.prototype.isValid=function(){cT(this);return this.valid_};var dqd=function(a){cT(a);return a.obfuscated_},eqd=function(a){cT(a);return a.isFreeformUrl_};
bT.prototype.getDomain=function(){var a=this.uri_.port_;return this.uri_.getDomain()+(a?":"+a:"")};bT.prototype.getQuery=function(){return this.uri_.queryData_.toString()};var fqd=function(a){cT(a);a.pathPrefix_==void 0&&(a.pathPrefix_=null);return a.pathPrefix_};bT.prototype.hasOptions=function(){switch(cT(this).length){case 7:return!0;case 6:return fqd(this)==null;case 5:return!1;case 3:return!0;case 2:return fqd(this)==null;case 1:return!1;default:return!1}};
var dT=function(a,b){if(eqd(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=cT(a)[b]}else if(dqd(a))a:{var c=fqd(a)!=null?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=cT(a)[b]}else a:{c=fqd(a)!=null?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=cT(a)[b]}return a};h=bT.prototype;h.getObfuscatedGaiaId=function(){this.obfuscatedGaiaId_==void 0&&(this.obfuscatedGaiaId_=dT(this,0));return this.obfuscatedGaiaId_};h.getPhotoId=function(){this.photoId_==void 0&&(this.photoId_=dT(this,1));return this.photoId_};h.getImageVersion=function(){this.imageVersion_==void 0&&(this.imageVersion_=dT(this,2));return this.imageVersion_};h.getOptions=function(){this.options_==void 0&&(this.options_=dT(this,4));return this.options_};
h.getFilename=function(){this.filename_==void 0&&(this.filename_=dT(this,5));return this.filename_};var a8a=function(){};a8a.prototype.parse=function(a,b){return new Z7a(a,b===void 0?!1:b)};var Z7a=function(a,b){bT.call(this,a,b===void 0?!1:b)};Y(Z7a,bT);Z7a.prototype.getParsedOptions=function(){if(this.parsedOptions_==void 0){var a=this.getOptions();a||(a="");this.parsedOptions_=(new Upd).parse(a)}return this.parsedOptions_};yw(Pr,Or);var $7a;Pr.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Pr.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var a=Pr.superClass_.build.call(this),b=[];fqd(this.parsedImageUrl_)!=null&&b.push(fqd(this.parsedImageUrl_));var c=eqd(this.parsedImageUrl_);if(dqd(this.parsedImageUrl_)){var d=this.parsedImageUrl_;d.obfuscatedData_==void 0&&(d.obfuscatedData_=dT(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;e.freeformUrlPath_===void 0&&(e.freeformUrlPath_=dT(e,7));
d.call(b,e.freeformUrlPath_);a&&b.push(a)}else b.push(this.parsedImageUrl_.getObfuscatedGaiaId()),b.push(this.parsedImageUrl_.getPhotoId()),b.push(this.parsedImageUrl_.getImageVersion()),d=b.push,e=this.parsedImageUrl_,e.signature_==void 0&&(e.signature_=dT(e,3)),d.call(b,e.signature_),a&&b.push(a),b.push(this.parsedImageUrl_.getFilename());a=zt(this.protocolPrefix_+this.domain_+"/"+(c?b.join("="):b.join("/"))+(this.query_?"?"+this.query_:"")).toString();a.startsWith("%3a//")&&(a=a.replace("%3a//",
"://"));return a};var gqd=/\/\/lh[3-6]\./,hqd=function(a,b,c,d){if(!a||!Mpd(String(a)))return String(a||"");a=String(a);d===void 0&&(d=1);b=Math.ceil((b||0)*d);c=Math.ceil((c||0)*d);d=b==c;a=a.replace(gqd,"//lh3.");return(new Pr(a)).setSize(d?c:void 0).setWidth(d?void 0:b).setHeight(d?void 0:c).setCrop(!1).setKillAnimation(!1).setEsPortraitApprovedOnly(!1).setSmartCrop(!0).setCenterCrop().setOverlay(!1).setNoOverlay(!1).setRequestWebp().setQualityBucket().setImageFilter().setLooseFaceCrop().setForceMonogram().setRequestPng().setRequestJpeg().setRequestH264().setPad().build()};var iqd=[[["onedev-hovercard-action"]],[["","onedev-additional-content",""]]],eT=function(a,b){var c=this;this.peopleService=a;this.waldoService=b;this.enableWaldo=!1;this.providedEmail$=new uf(1);this.person$=this.providedEmail$.pipe(yf(function(d){return Fod(c.peopleService,d)}),A(function(d){if(d){var e=Object,f=e.assign;if(d.imageUrl){var g=d.imageUrl;if(Mpd(g)){var k=new Pr(g);k.setSize(48).setCrop(!0);g=k.build()||g}}else g=d.imageUrl;d=f.call(e,{},d,{imageUrl:g})}return d}),vf(1));this.outOfOfficeDescription$=
new uf;this.init=new uf(1);this.destroyed$=new uf(1)};eT.prototype.ngOnInit=function(){var a=this;this.person$.pipe(lf(1),zf(this.destroyed$)).subscribe(function(){a.init.next()});this.enableWaldo&&jqd(this)};var jqd=function(a){a.waldoService&&a.person$.pipe(yf(function(b){return b?Dpd(a.waldoService,b.email):ce("")}),zf(a.destroyed$)).subscribe(function(b){a.outOfOfficeDescription$.next(b)})};
da.Object.defineProperties(eT.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.emailInternal},set:function(a){this.emailInternal=a;this.providedEmail$.next(a)}}});eT.\u0275fac=function(a){return new (a||eT)(Ve(LS),Ve(TS,8))};
eT.\u0275cmp=D({type:eT,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&&(bg(iqd),E(0,b8a,4,4,"onedev-person-hovercard-body",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.person$))},dependencies:[by,Nx,God,vod,US,Tx],encapsulation:2,
changeDetection:0});var kqd=[[["onedev-hovercard-action"],["",8,"actions"]]],fT=function(){};fT.prototype.ngOnInit=function(){};fT.\u0275fac=function(a){return new (a||fT)};
fT.\u0275cmp=D({type:fT,selectors:[["b-person-card"]],inputs:{email:"email"},standalone:!1,ngContentSelectors:["onedev-hovercard-action, .actions"],decls:1,vars:0,consts:[["cardBody",""],[3,"email","enableWaldo","onedevIsHovercardReady",4,"onedevHovercardLazyBody"],[3,"email","enableWaldo","onedevIsHovercardReady"]],template:function(a){a&1&&(bg(kqd),E(0,c8a,3,3,"onedev-person-hovercard",1))},dependencies:[eT,LK,MK],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 gT=function(){this.isNonObfuscatedEmail=Zn};gT.\u0275fac=function(a){return new (a||gT)};
gT.\u0275cmp=D({type:gT,selectors:[["b-person-hovercard"]],inputs:{email:"email"},standalone:!1,ngContentSelectors:["*"],decls:4,vars:1,consts:[["content",""],["card",""],["role","button","tabindex","0",1,"keep-focus-ring",3,"onedevHovercardTrigger","onedevHovercardActive"],[4,"ngTemplateOutlet"],[3,"email"]],template:function(a,b){a&1&&(bg(),F(0,e8a,5,4)(1,g8a,1,1,"ng-container"),E(2,h8a,1,0,"ng-template",null,0,Mg));a&2&&G(b.email&&b.isNonObfuscatedEmail(b.email)?0:1)},dependencies:[Sx,KK,SK,fT],
encapsulation:2,changeDetection:0});var hT=function(){Z.apply(this,arguments);this.domSafe=p(mR);this.cdr=p(bQ,{self:!0});this.actionService=p(IS,{optional:!0});this.currentAssignee="";this.currentCc=[];this.ccActionDisabled=this.assigneeActionDisabled=!1};Y(hT,Z);hT.\u0275dir=Z.\u0275dir;
hT.prototype.ngOnInit=function(){var a=this;if(this.actionService){var b;(b=this.actionService)==null||b.assignee$.pipe(zf(this.destroyed$)).subscribe(function(d){a.currentAssignee=d;a.cdr.detectChanges()});var c;(c=this.actionService)==null||c.cc$.pipe(zf(this.destroyed$)).subscribe(function(d){a.currentCc=d;a.cdr.detectChanges()})}};
var i8a=function(a){if(a.actionService&&!a.assigneeActionDisabled){a.assigneeActionDisabled=!0;var b=a.email===a.currentAssignee?"remove_user":"set_user";dr("personCard","assigneeAction",b);mod(a.actionService,{email:a.email,action:b}).finally(function(){a.assigneeActionDisabled=!1})}},j8a=function(a){if(a.actionService&&!a.ccActionDisabled){a.ccActionDisabled=!0;var b=a.currentCc.includes(a.email)?"remove_user":"set_user";dr("personCard","ccAction",b);nod(a.actionService,{email:a.email,action:b}).finally(function(){a.ccActionDisabled=
!1})}};hT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(hT)))(b||hT)}}();
hT.\u0275cmp=D({type:hT,selectors:[["b-issue-person-card"]],inputs:{email:"email"},standalone:!1,features:[Gg([bQ]),Ef],decls:6,vars:4,consts:[[3,"email"],[1,"actions"],[3,"click"],[3,"onAction","disabled"]],template:function(a,b){a&1&&(K(0,"b-person-card",0),F(1,k8a,9,8,"ng-container",1),T(2,"async"),K(3,"onedev-hovercard-action",2),N("click",function(c){dr("personCard","showAssignedIssuesAction");var d=qs.listIssues.makeHref({q:"assignee:"+b.email+" status:open"});c.ctrlKey||c.metaKey?b.domSafe.openInNewTab(d):
skd(b.domSafe,d)}),K(4,"span"),Q(5,"Show assigned issues"),L()()());a&2&&(I("email",b.email),B(),G(b.actionService&&U(2,2,b.actionService.editAccess$)?1:-1))},dependencies:[NK,fT,Tx],encapsulation:2,changeDetection:0});var lqd=function(){this.activeSession=p(uu);this.isMentioningMe=!1};lqd.prototype.ngOnInit=function(){this.activeSession.isInternalSession()?this.username=this.email.replace(/@google.com$/,""):this.username=this.email};lqd.\u0275fac=function(a){return new (a||lqd)};
lqd.\u0275cmp=D({type:lqd,selectors:[["b-mention-chip-widget"]],inputs:{email:"email",isMentioningMe:"isMentioningMe"},standalone:!1,decls:6,vars:5,consts:[["el",""],["card",""],[1,"mention",3,"onedevHovercardTrigger"],[3,"email"]],template:function(a,b){a&1&&(K(0,"span",2,0),Q(2),L(),K(3,"onedev-hovercard",null,1),M(5,"b-issue-person-card",3),L());a&2&&(a=qg(4),wg("me",b.isMentioningMe),I("onedevHovercardTrigger",a),B(2),S("@",b.username),B(3),I("email",b.email))},dependencies:[hT,KK,SK],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 l8a=RegExp("^https?:\\/\\/((?:screenshot\\.googleplex\\.com|screenshot\\.corp\\.google\\.com|3p-screenshot\\.corp\\.google\\.com|screen\\.corp\\.google\\.com|screenshot|screen)\\/([\\w-]+)(?:\\.png)?$)"),m8a=RegExp("^http(?:s?):\\/\\/(?:za|za\\.corp\\.google\\.com|alerts|plx-alerts\\.corp\\.google\\.com)\\/chart(?:\\/?)\\?(.*)"),q8a=RegExp("^(https?:\\/\\/)(www\\.)?(go|goto|goto\\.google\\.com)\\/([A-Za-z0-9-]+$)"),n8a=RegExp("^https:\\/\\/static\\.corp\\.google\\.com\\/");var iT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,iT.messageId)};Y(iT,W);iT.prototype.getUrl=function(){return ui(this,1,void 0,jb)};iT.prototype.setUrl=function(a){return oj(this,1,a,jb)};iT.prototype.hasUrl=function(){return im(this,1,jb)};iT.messageId="b.ImageRedirectRequest";var jT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,jT.messageId)};Y(jT,W);jT.prototype.getUrl=function(){return ui(this,1,void 0,jb)};jT.prototype.setUrl=function(a){return oj(this,1,a,jb)};jT.prototype.hasUrl=function(){return im(this,1,jb)};jT.messageId="b.ImageRedirectResponse";var mqd=function(){this.executor=p(bO)},nqd=function(a,b){b=(new iT).setUrl(b);return a.executor.post({url:"action/imageRedirect",body:b,responseConstructor:jT}).pipe(A(function(c){return c.getUrl()}))};mqd.\u0275fac=function(a){return new (a||mqd)};mqd.\u0275prov=Dc({token:mqd,factory:mqd.\u0275fac,providedIn:"root"});var kT=function(){var a=this;this.imageRedirector=p(mqd);this.src$=new Mj("");this.showImage$=new Mj(!1);this.error$=new Mj(!1);this.srcTruncated$=this.src$.pipe(A(function(b){var c=b;c=c===void 0?"":c;var d=d===void 0?48:d;b=[].concat(q(c));if(b.length<=d)d=c;else{var e=Math.floor(d/2);c=b.slice(0,e-1).join("");d=b.slice(-(e-(d%2!==0?1:2))).join("");String.prototype.trimEnd!=null&&String.prototype.trimStart!=null&&(c=c.trimEnd(),d=d.trimStart());d=c+"..."+d}return d}));this.srcRedirected$=ie([this.src$,
this.showImage$]).pipe(ue(function(b){b=m(b);b.next();return b.next().value}),yf(function(b){var c=m(b).next().value;return(b=s8a(c,!0))?ce(b):nqd(a.imageRedirector,c).pipe(gf(function(){a.error$.next(!0);return c}))}))};kT.prototype.trigger=function(a){a.preventDefault();a.stopPropagation();this.showImage$.next(!0)};
da.Object.defineProperties(kT.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}}});kT.\u0275fac=function(a){return new (a||kT)};
kT.\u0275cmp=D({type:kT,selectors:[["b-secure-image-widget"]],inputs:{showByDefault:"showByDefault",src:"src",alt:"alt"},standalone:!1,decls:3,vars:3,consts:[["svgIcon","broken-image",1,"icon-l",3,"matTooltip"],[3,"src"],["tabindex","0",1,"normal-link",3,"href","title"],["tabindex","0",1,"normal-link",3,"click","keydown.enter","href","title"],["svgIcon","image",1,"icon-s"]],template:function(a,b){a&1&&(F(0,x8a,3,3),T(1,"async"),Kf(2,y8a,2,4,"mat-icon",0));a&2&&G(U(1,1,b.error$)===!1?0:2)},dependencies:[Jy,
vK,nA,nR,Tx],styles:["a[_ngcontent-%COMP%]{word-break:break-all;margin:0 2px}a[_ngcontent-%COMP%]:hover{text-decoration:underline}mat-icon[_ngcontent-%COMP%]{vertical-align:middle;line-height:18px;margin-top:-3px;margin-right:1px}img[_ngcontent-%COMP%]{max-width:100%}/*# sourceMappingURL=secure_image.css.map */"],changeDetection:0});var oqd={HIDE:"HIDE",COLLAPSE:"COLLAPSE",SHOW:"SHOW"},pqd=function(){var a=this;this.activeSession=p(uu);this.userPreferencesManager=p(hR);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.DisplayMode=oqd;this.src$=new Mj("");this.isMarkdownImage$=new Mj(!1);this.displayMode$=ie([this.src$,this.userPreferencesManager.showInlineImages$,this.isMarkdownImage$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return b&&a.activeSession.isInternalSession()?
!d&&c?"COLLAPSE":d?"SHOW":"HIDE":"HIDE"}),xf("HIDE"))};da.Object.defineProperties(pqd.prototype,{src:{configurable:!0,enumerable:!0,set:function(a){this.src$.next(a)},get:function(){return this.src$.value}},isMarkdownImage:{configurable:!0,enumerable:!0,set:function(a){this.isMarkdownImage$.next(a)},get:function(){return this.isMarkdownImage$.value}}});pqd.\u0275fac=function(a){return new (a||pqd)};
pqd.\u0275cmp=D({type:pqd,selectors:[["b-trusted-image"]],inputs:{src:"src",isMarkdownImage:"isMarkdownImage",alt:"alt"},standalone:!1,decls:2,vars:3,consts:[[3,"src","alt","showByDefault"],["target","_blank",3,"href","rel"],[1,"thumbnail",3,"src","alt","showByDefault"]],template:function(a,b){a&1&&(F(0,B8a,3,3),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.src$))?0:-1,c)}},dependencies:[kT,Tx],styles:["[_nghost-%COMP%]   b-secure-image-widget.thumbnail[_ngcontent-%COMP%]{display:inline-block;margin-top:8px;margin-bottom:8px;max-width:70%}[_nghost-%COMP%]     b-secure-image-widget.thumbnail img{border:2px solid;border-color:#e8eaed;border-color:var(--c200);border-radius:8px;min-width:18px;min-height:18px;max-width:100%;max-height:350px}/*# sourceMappingURL=trusted_image.css.map */"],
changeDetection:0});var lT=function(){this.content=sj;this.canEditComment=!1;this.checkboxChange=new aQ;this.appRef=p(Wg);this.flags=p(Tkd);this.session=p(uu);this.viewContainerRef=p(eg);this.elementRef=p(Hd);this.destroyRef=p(Ce);this.allComponentRefs=[]};
lT.prototype.ngOnChanges=function(){qqd(this);Xn(this.elementRef.nativeElement,this.content);for(var a=this.elementRef.nativeElement,b=this.viewContainerRef,c=a.querySelectorAll("*"),d=0;d<c.length;d++){var e=c[d],f=e.dataset.bId;f&&(e.id=f)}c=m(a.querySelectorAll("a"));for(d=c.next();!d.done;d=c.next())if(d=d.value,(f=d.getAttribute("href"))&&o8a(f)&&d&&sTa(d)&&f===d.textContent&&(e=d.nextSibling,rqd(this,d,f,void 0,b),f=void 0,(f=e)!=null&&f.textContent&&(f=e.textContent.match(/(^[^\w]+)/))))f=
f[1],e.textContent=e.textContent.substring(f.length),e=document.createElement("span"),e.textContent=f,d.insertAdjacentElement("afterend",e);c=a.querySelectorAll("*[data-b-widget]");for(d=0;d<c.length;d++)switch(e=c[d],e.dataset.bWidget){case "image":f=e;e=b;var g=f.dataset.bImgSrc,k=f.dataset.bImgRedirectedSrc;C8a(f);if(g){var l=f.dataset.bImgAlt;if(o8a(g))rqd(this,f,g,l,e,!0);else if(this.flags.session.getFlag("enableMarkdownInlineImages"))e=this.createComponent(kT,f,e).instance,e.src=g,l&&(e.alt=
l);else{var r=document.createElement("a");l?r.appendChild(document.createTextNode(l)):r.appendChild(document.createTextNode(g));f.appendChild(r);sqd(this,r,g,k||g,e)}}break;case "checkbox":f=b;l=e.dataset.bCheckboxChecked!=null;C8a(e);tqd(this,e,l,f);break;case "url":f=b;l=e.dataset.bOriginalHref;g=e.dataset.bRedirectedHref;l&&g&&(e.removeAttribute("href"),sqd(this,e,l,g,f));break;case "broken-url":if(l=e.dataset.bOriginalHref)for(f=e,e=Array.from(f.childNodes),f=this.createComponent(pR,f,b).instance,
f.originalHref=l,f=f.getNgContentParentEl(),e=m(e),l=e.next();!l.done;l=e.next())f.appendChild(l.value);break;case "mention":f=void 0;l=e;g=b;e="";((f=l.textContent)==null?void 0:f[0])==="@"&&(e=l.textContent.slice(1));C8a(l);f=this.createComponent(lqd,l,g).instance;f.email=e;f.isMentioningMe=this.session.getUserEmail()===e;break;case "issue-reference":if(l=e.href,g=e.dataset.bIssueId,k=e.dataset.bCommentNumber,l&&g){f=void 0;r=Number(k);k=Array.from(e.childNodes);var w=document.createElement("span");
(f=e.parentNode)==null||f.insertBefore(w,e);f=this.createComponent(MR,w,b).instance;f.href=l;f.issueId=g;f.commentNumber=r;f=f.el.nativeElement;l=m(k);for(g=l.next();!g.done;g=l.next())f.appendChild(g.value);e.remove()}}b=a.querySelectorAll("a");for(c=0;c<b.length;c++)d=b[c],d.getAttribute("target")||d.setAttribute("target","_self");b=a.querySelectorAll("table");for(c=0;c<b.length;c++)d=b[c],d.parentNode&&(e=document.createElement("div"),e.classList.add("table-overflow"),e.tabIndex=-1,d.parentNode.insertBefore(e,
d),e.appendChild(d));a=m(a.querySelectorAll("pre"));for(b=a.next();!b.done;b=a.next())b.value.tabIndex=-1};lT.prototype.ngOnDestroy=function(){qqd(this)};
var rqd=function(a,b,c,d,e,f){f=f===void 0?!1:f;var g=b;b instanceof HTMLAnchorElement&&(g=document.createElement("span"),b.insertAdjacentElement("afterend",g));a=a.createComponent(pqd,g,e).instance;a.src=c;a.alt=d;a.isMarkdownImage=f},tqd=function(a,b,c,d){var e,f=(e=b.dataset.bCheckboxStartpos)!=null?e:"";b=a.createComponent(vkd,b,d).instance;b.checked=c;b.disabled=a.session.userRequiresCaptcha()||!a.canEditComment||!a.session.getFlag("enableInteractiveMarkdownCheckboxes");b.startPos=f;b.checkedChange.pipe(Tj(a.destroyRef)).subscribe(function(g){a.checkboxChange.emit({checked:g,
startPos:f})})},sqd=function(a,b,c,d,e){var f=Array.from(b.childNodes);a=a.createComponent(KR,b,e).instance;a.originalHref=c;a.href=d;c=a.getNgContentParentEl();f=m(f);for(d=f.next();!d.done;d=f.next())c.appendChild(d.value)};lT.prototype.createComponent=function(a,b,c){a=Zoa(a,{environmentInjector:this.appRef.injector,elementInjector:c.injector});b.appendChild(a.location.nativeElement);Szc(this.appRef,a.hostView);this.allComponentRefs.push(a);return a};
var qqd=function(a){for(var b=m(a.allComponentRefs),c=b.next();!c.done;c=b.next())c.value.destroy();a.allComponentRefs=[]};lT.\u0275fac=function(a){return new (a||lT)};lT.\u0275dir=af({type:lT,selectors:[["","applyDynamicComponents",""]],inputs:{content:[0,"applyDynamicComponents","content"],canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},features:[jx]});var mT=function(){this.codefont=p(jR);this.canEditComment=!1;this.checkboxChange=new aQ};mT.prototype.ngOnInit=function(){};mT.\u0275fac=function(a){return new (a||mT)};
mT.\u0275cmp=D({type:mT,selectors:[["b-markdown-format-presenter"]],inputs:{content:"content",canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},standalone:!1,features:[Gg([{provide:qkd,useValue:"MARKDOWN"}])],decls:3,vars:6,consts:[["child",""],[1,"type-m","markdown-display",3,"checkboxChange","applyDynamicComponents","canEditComment"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1,0);T(2,"async");N("checkboxChange",function(d){u(c);return v(b.checkboxChange.emit(d))});
L()}a&2&&(wg("codefont",U(2,4,b.codefont.codefont$)),I("applyDynamicComponents",b.content.content)("canEditComment",b.canEditComment))},dependencies:[lT,Tx],styles:[':root{--blue-50: #e8f0fe;--blue-100: #d2e3fc;--blue-200: #aecbfa;--blue-300: #8ab4f8;--blue-400: #669df6;--blue-500: #4285f4;--blue-600: #1a73e8;--blue-700: #1967d2;--blue-800: #185abc;--blue-900: #174ea6;--blue: var(--blue-600);--red-50: #fce8e6;--red-100: #fad2cf;--red-200: #f6aea9;--red-300: #f28b82;--red-400: #ee675c;--red-500: #ea4335;--red-600: #d93025;--red-700: #c5221f;--red-800: #b31412;--red-900: #a50e0e;--red: var(--red-600);--yellow-50: #fef7e0;--yellow-100: #feefc3;--yellow-200: #fde293;--yellow-300: #fdd663;--yellow-400: #fcc934;--yellow-500: #fbbc04;--yellow-600: #f9ab00;--yellow-700: #f29900;--yellow-800: #ea8600;--yellow-900: #e37400;--yellow: var(--yellow-600);--green-50: #e6f4ea;--green-100: #ceead6;--green-200: #a8dab5;--green-300: #81c995;--green-400: #5bb974;--green-500: #34a853;--green-600: #1e8e3e;--green-700: #188038;--green-800: #137333;--green-900: #0d652d;--green: var(--green-600);--white: #fff;--grey-50: #f8f9fa;--grey-100: #f1f3f4;--grey-200: #e8eaed;--grey-300: #dadce0;--grey-400: #bdc1c6;--grey-500: #9aa0a6;--grey-600: #80868b;--grey-700: #5f6368;--grey-800: #3c4043;--grey-900: #202124;--black: var(--grey-900);--orange-50: #feefe3;--orange-100: #fedfc8;--orange-200: #fdc69c;--orange-300: #fcad70;--orange-400: #fa903e;--orange-500: #fa7b17;--orange-600: #e8710a;--orange-700: #d56e0c;--orange-800: #c26401;--orange-900: #b06000;--pink-50: #fde7f3;--pink-100: #fdcfe8;--pink-200: #fba9d6;--pink-300: #ff8bcb;--pink-400: #ff63b8;--pink-500: #f439a0;--pink-600: #e52592;--pink-700: #c92786;--pink-800: #b80672;--pink-900: #9c166b;--purple-50: #f3e8fd;--purple-100: #e9d2fd;--purple-200: #d7aefb;--purple-300: #c58af9;--purple-400: #af5cf7;--purple-500: #a142f4;--purple-600: #9334e6;--purple-700: #8430ce;--purple-800: #7627bb;--purple-900: #681da8;--cyan-50: #e4f7fb;--cyan-100: #cbf0f8;--cyan-200: #a1e4f2;--cyan-300: #78d9ec;--cyan-400: #4ecde6;--cyan-500: #24c1e0;--cyan-600: #12b5cb;--cyan-700: #129eaf;--cyan-800: #098591;--cyan-900: #007b83}.markdown-display{word-break:break-word;overflow-wrap:break-word}.markdown-display p{word-break:break-word}.markdown-display hr{height:0;border:0;border-top:1px solid var(--hairline)}.markdown-display h1,.markdown-display h2,.markdown-display h3,.markdown-display h4,.markdown-display h5{font-weight:500}.markdown-display h1{font-size:160%;font-weight:700}.markdown-display h2{font-size:160%}.markdown-display h3{font-size:140%}.markdown-display h4{font-size:120%}.markdown-display h5{font-size:100%}.markdown-display h1,.markdown-display h2,.markdown-display h3,.markdown-display h4,.markdown-display h5{margin:0;margin-block-start:.8em;margin-block-end:.8em}.markdown-display p,.markdown-display blockquote,.markdown-display hr,.markdown-display ul,.markdown-display ol{margin:0;margin-block-start:.8em;margin-block-end:.8em}.markdown-display>*:first-child{margin-block-start:0}.markdown-display ul,.markdown-display ol{padding-inline-start:2rem}.markdown-display blockquote{background-color:var(--markdown-blockquote-background);border-left:4px solid var(--markdown-blockquote-border);color:var(--text-secondary);overflow:hidden;padding-left:8px}.markdown-display ul{list-style:initial}.markdown-display ul ul{list-style:circle}.markdown-display ul ul ul{list-style:square}.markdown-display ul ul,.markdown-display ol ol,.markdown-display ul ol,.markdown-display ol ul{margin:0}.markdown-display li{margin-block-end:.2em}.markdown-display code,.markdown-display pre{background-color:var(--surface-secondary);border-radius:2px;font-family:WorkAroundWebKitAndMozilla,monospace}.markdown-display pre{border:1px solid var(--hairline);overflow-x:auto}.markdown-display code{color:var(--markdown-code);padding:0 2px}.markdown-display pre code{color:var(--text-high-contrast);padding:0}.markdown-display pre{padding:8px 16px}.markdown-display pre,.markdown-display pre code{line-height:1.5}.markdown-display img{max-width:100%}.markdown-display a,.markdown-display a code{color:var(--primary-default);text-decoration:none}.markdown-display a:visited,.markdown-display a code:visited{color:var(--markdown-link-visited)}.markdown-display pre code a{color:inherit;text-decoration:underline}.markdown-display a:hover{text-decoration:underline}.markdown-display a:focus{outline:-webkit-focus-ring-color auto 1px}.markdown-display table{border-collapse:collapse;margin:1em 0}.markdown-display td,.markdown-display th{background-color:var(--surface-default);border:1px solid var(--hairline);padding:4px 8px;vertical-align:top}.markdown-display th{text-align:left;vertical-align:bottom;word-break:keep-all}.markdown-display div.table-overflow{overflow-x:auto}.markdown-display input[type=checkbox]{vertical-align:middle}.markdown-display section.footnotes{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;margin-top:2.5em;border-top:1px solid #dadce0}.markdown-display sup.footnote-ref::before{content:"["}.markdown-display sup.footnote-ref::after{content:"]"}.markdown-display .footnote-backref{text-decoration:none}.markdown-display .footnote-backref>a{text-decoration:none}.markdown-display .align-left{text-align:left}.markdown-display .align-right{text-align:right}.markdown-display .align-center{text-align:center}.markdown-display .align-justify{text-align:justify}.markdown-display .g3mark-callout{position:relative}.markdown-display .g3mark-callout .g3mark-callout__icon{display:none}.markdown-display summary{cursor:pointer}.markdown-display code{white-space:break-spaces}.markdown-display pre code{white-space:pre}body:not(.dark-mode) .markdown-display .stx-plain{color:inherit}body:not(.dark-mode) .markdown-display .stx-keyword{color:#708}body:not(.dark-mode) .markdown-display .stx-keyword-strong{color:inherit}body:not(.dark-mode) .markdown-display .stx-string{color:#080}body:not(.dark-mode) .markdown-display .stx-comment{color:#800}body:not(.dark-mode) .markdown-display .stx-number{color:#164}body:not(.dark-mode) .markdown-display .stx-macro{color:#555}body:not(.dark-mode) .markdown-display .stx-class{color:inherit}body:not(.dark-mode) .markdown-display .stx-const{color:inherit}body:not(.dark-mode) .markdown-display .stx-escape-sequence{color:inherit}body:not(.dark-mode) .markdown-display .stx-deprecated{text-decoration:inherit}body:not(.dark-mode) .markdown-display .stx-doc-tag{text-decoration:inherit}body:not(.dark-mode) .markdown-display .stx-task-tag{font-weight:inherit}body:not(.dark-mode) .markdown-display .stx-atom{color:#219}body:not(.dark-mode) .markdown-display .stx-definition{color:blue}body:not(.dark-mode) .markdown-display .stx-type-id{color:#085}body:not(.dark-mode) .markdown-display .stx-qualifier{color:#555}body:not(.dark-mode) .markdown-display .stx-local-ref{color:#05a}body:not(.dark-mode) .markdown-display .stx-md-entity{color:#708}body:not(.dark-mode) .markdown-display .stx-md-bold{font-weight:bold}body:not(.dark-mode) .markdown-display .stx-md-italic{font-style:italic}body:not(.dark-mode) .markdown-display .stx-md-link{color:#080}body:not(.dark-mode) .markdown-display .stx-md-code{color:#555}body:not(.dark-mode) .markdown-display .stx-comment .stx-md-link,body:not(.dark-mode) .markdown-display .stx-comment .stx-md-code{color:#800}body:not(.dark-mode) .markdown-display pre .chl{border:1px solid #ffca28;background-color:#fff59d;padding:1px 0;margin:0 -1px}body:not(.dark-mode) .markdown-display .g3mark-callout{margin:1rem 0;padding:.5rem .5rem .5rem 2rem}body:not(.dark-mode) .markdown-display .g3mark-callout p:first-of-type{margin-top:0}body:not(.dark-mode) .markdown-display .g3mark-callout p:last-child{margin-bottom:0}body:not(.dark-mode) .markdown-display .g3mark-callout blockquote{font-family:inherit;font-weight:inherit;font-size:inherit;letter-spacing:inherit;line-height:inherit;padding-left:initial;border-left:initial;margin:0}body:not(.dark-mode) .markdown-display .g3mark-callout__keyword{font-weight:bold}body:not(.dark-mode) .markdown-display .g3mark-callout__icon::before{position:absolute;font-size:1.25rem;font-family:"Material Icons","Google Material Icons","Google Symbols";margin-left:-1.5rem}body:not(.dark-mode) .markdown-display .g3mark-callout-tldr .g3mark-callout__icon::before,body:not(.dark-mode) .markdown-display .g3mark-callout-summary .g3mark-callout__icon::before{color:#174ea6;content:"sms"}body:not(.dark-mode) .markdown-display .g3mark-callout-todo .g3mark-callout__icon::before,body:not(.dark-mode) .markdown-display .g3mark-callout-fixme .g3mark-callout__icon::before{color:#202124;content:"error_outline"}body:not(.dark-mode) .markdown-display .g3mark-callout-tip .g3mark-callout__icon::before{color:#0d652d;content:"grade"}body:not(.dark-mode) .markdown-display .g3mark-callout-best_practice .g3mark-callout__icon::before{color:#0d652d;content:"check_circle"}body:not(.dark-mode) .markdown-display .g3mark-callout-note .g3mark-callout__icon::before{color:#202124;content:"bookmark"}body:not(.dark-mode) .markdown-display .g3mark-callout-warning .g3mark-callout__icon::before{color:#a50e0e;content:"warning"}body:not(.dark-mode) .markdown-display .g3mark-callout-important .g3mark-callout__icon::before{color:#b06000;content:"priority_high"}body:not(.dark-mode) .markdown-display .g3mark-callout-question .g3mark-callout__icon::before{color:#174ea6;content:"help"}body:not(.dark-mode) .markdown-display .g3mark-callout-tldr,body:not(.dark-mode) .markdown-display .g3mark-callout-summary{border-color:#669df6;background:#e8f0fe;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-todo,body:not(.dark-mode) .markdown-display .g3mark-callout-fixme{border-color:#bdc1c6;background:#f8f9fa;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-tip,body:not(.dark-mode) .markdown-display .g3mark-callout-best_practice{border-color:#5bb974;background:#e6f4ea;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-note{border-color:#bdc1c6;background:#f8f9fa;color:#202124;background:#f1f3f4}body:not(.dark-mode) .markdown-display .g3mark-callout-warning{border-color:#ee675c;background:#fce8e6;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-important{border-color:#fa903e;background:#feefe3;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-question{border-color:#669df6;background:#e8f0fe;color:#202124}body.dark-mode .markdown-display .stx-plain{color:inherit}body.dark-mode .markdown-display .stx-keyword{color:#d8884b}body.dark-mode .markdown-display .stx-keyword-strong{color:inherit}body.dark-mode .markdown-display .stx-string{color:#97c67b}body.dark-mode .markdown-display .stx-comment{color:#8c9292}body.dark-mode .markdown-display .stx-number{color:#79a9c4}body.dark-mode .markdown-display .stx-macro{color:#9dbed9}body.dark-mode .markdown-display .stx-class{color:inherit}body.dark-mode .markdown-display .stx-const{color:inherit}body.dark-mode .markdown-display .stx-escape-sequence{color:inherit}body.dark-mode .markdown-display .stx-deprecated{text-decoration:inherit}body.dark-mode .markdown-display .stx-doc-tag{text-decoration:inherit}body.dark-mode .markdown-display .stx-task-tag{font-weight:inherit}body.dark-mode .markdown-display .stx-atom{color:#cf7ea9}body.dark-mode .markdown-display .stx-definition{color:#75b3db}body.dark-mode .markdown-display .stx-type-id{color:#eede7b}body.dark-mode .markdown-display .stx-qualifier{color:#97c67b}body.dark-mode .markdown-display .stx-local-ref{color:#aac6e3}body.dark-mode .markdown-display .stx-md-entity{color:#d8884b}body.dark-mode .markdown-display .stx-md-bold{font-weight:bold}body.dark-mode .markdown-display .stx-md-italic{font-style:italic}body.dark-mode .markdown-display .stx-md-link{color:#d8884b}body.dark-mode .markdown-display .stx-md-code{color:#d8884b}body.dark-mode .markdown-display .stx-comment .stx-md-link,body.dark-mode .markdown-display .stx-comment .stx-md-code{color:#89b2cd}body.dark-mode .markdown-display pre .chl{border:1px solid #ffca28;background-color:#6a5619;padding:1px 0;margin:0 -1px}body.dark-mode .markdown-display .g3mark-callout{margin:1rem 0;padding:.5rem .5rem .5rem 2rem}body.dark-mode .markdown-display .g3mark-callout p:first-of-type{margin-top:0}body.dark-mode .markdown-display .g3mark-callout p:last-child{margin-bottom:0}body.dark-mode .markdown-display .g3mark-callout blockquote{font-family:inherit;font-weight:inherit;font-size:inherit;letter-spacing:inherit;line-height:inherit;padding-left:initial;border-left:initial;margin:0}body.dark-mode .markdown-display .g3mark-callout__keyword{font-weight:bold}body.dark-mode .markdown-display .g3mark-callout__icon::before{position:absolute;font-size:1.25rem;font-family:"Material Icons","Google Material Icons","Google Symbols";margin-left:-1.5rem}body.dark-mode .markdown-display .g3mark-callout-tldr .g3mark-callout__icon::before,body.dark-mode .markdown-display .g3mark-callout-summary .g3mark-callout__icon::before{color:#174ea6;content:"sms"}body.dark-mode .markdown-display .g3mark-callout-todo .g3mark-callout__icon::before,body.dark-mode .markdown-display .g3mark-callout-fixme .g3mark-callout__icon::before{color:#202124;content:"error_outline"}body.dark-mode .markdown-display .g3mark-callout-tip .g3mark-callout__icon::before{color:#0d652d;content:"grade"}body.dark-mode .markdown-display .g3mark-callout-best_practice .g3mark-callout__icon::before{color:#0d652d;content:"check_circle"}body.dark-mode .markdown-display .g3mark-callout-note .g3mark-callout__icon::before{color:#202124;content:"bookmark"}body.dark-mode .markdown-display .g3mark-callout-warning .g3mark-callout__icon::before{color:#a50e0e;content:"warning"}body.dark-mode .markdown-display .g3mark-callout-important .g3mark-callout__icon::before{color:#b06000;content:"priority_high"}body.dark-mode .markdown-display .g3mark-callout-question .g3mark-callout__icon::before{color:#174ea6;content:"help"}body.dark-mode .markdown-display .g3mark-callout-todo,body.dark-mode .markdown-display .g3mark-callout-fixme,body.dark-mode .markdown-display .g3mark-callout-tldr,body.dark-mode .markdown-display .g3mark-callout-tip,body.dark-mode .markdown-display .g3mark-callout-note,body.dark-mode .markdown-display .g3mark-callout-warning,body.dark-mode .markdown-display .g3mark-callout-important,body.dark-mode .markdown-display .g3mark-callout-best_practice,body.dark-mode .markdown-display .g3mark-callout-summary,body.dark-mode .markdown-display .g3mark-callout-question{border-color:#fff;background:#3c4043;color:#fff}/*# sourceMappingURL=markdown_format_presenter.css.map */\n'],
encapsulation:2,changeDetection:0});var uqd=["child"],vqd=function(){return"[_nghost-%COMP%]     a:visited{color:#7627bb;color:var(--link-visited)}"},nT=function(){this.codefont=p(jR)};nT.prototype.ngOnInit=function(){};nT.\u0275fac=function(a){return new (a||nT)};
nT.\u0275cmp=D({type:nT,selectors:[["b-plain-format-presenter"]],inputs:{content:"content"},standalone:!1,features:[Gg([{provide:qkd,useValue:"PLAIN"}])],decls:4,vars:4,consts:[[1,"type-m"],[3,"section"]],template:function(a,b){a&1&&(K(0,"div",0),T(1,"async"),Nf(2,D8a,1,1,"b-plain-format-section",1,Mf),L());a&2&&(wg("codefont",U(1,2,b.codefont.codefont$)),B(2),Of(b.content.plainSection))},dependencies:function(){return[wqd,Tx]},styles:[vqd()],changeDetection:0});var wqd=function(){};
wqd.prototype.ngOnInit=function(){};wqd.\u0275fac=function(a){return new (a||wqd)};wqd.\u0275cmp=D({type:wqd,selectors:[["b-plain-format-section"]],inputs:{section:"section"},standalone:!1,decls:3,vars:1,consts:[[3,"section"]],template:function(a,b){a&1&&(Tf(0),F(1,E8a,1,1,"b-plain-format-quoted-section",0)(2,F8a,1,1,"b-plain-format-unquoted-section",0),Uf());a&2&&(B(),G(b.section.isQuoted?1:2))},dependencies:function(){return[oT,xqd]},encapsulation:2,changeDetection:0});
var oT=function(){this.showQuote=!1;this.childId="plainFormatQuotedSection"+ ++yqd};oT.prototype.ngOnInit=function(){};oT.prototype.ngOnChanges=function(){G8a(this)};var G8a=function(a){var b=a.child.nativeElement;if(a.showQuote)Xn(b,a.section.content);else for(;b.lastChild;)b.lastChild.remove()};oT.\u0275fac=function(a){return new (a||oT)};
oT.\u0275cmp=D({type:oT,selectors:[["b-plain-format-quoted-section"]],viewQuery:function(a,b){a&1&&hg(uqd,7);if(a&2){var c;lg(c=mg())&&(b.child=c.first)}},inputs:{section:"section"},standalone:!1,features:[jx],decls:5,vars:2,consts:[["child",""],["tabindex","0","role","button","aria-expanded","true",1,"showhide","muted"],["tabindex","0","role","button","aria-expanded","false",1,"showhide","muted"],[1,"child",3,"id"],["tabindex","0","role","button","aria-expanded","true",1,"showhide","muted",3,"click"],
["tabindex","0","role","button","aria-expanded","false",1,"showhide","muted",3,"click"]],template:function(a,b){a&1&&(K(0,"div"),F(1,H8a,2,1,"a",1)(2,I8a,2,1,"a",2),M(3,"div",3,0),L());a&2&&(B(),G(b.showQuote?1:2),B(2),I("id",b.childId))},styles:[vqd()],changeDetection:0});var yqd=0,xqd=function(){};xqd.prototype.ngOnInit=function(){};xqd.\u0275fac=function(a){return new (a||xqd)};
xqd.\u0275cmp=D({type:xqd,selectors:[["b-plain-format-unquoted-section"]],inputs:{section:"section"},standalone:!1,decls:1,vars:1,consts:[[1,"child",3,"applyDynamicComponents"]],template:function(a,b){a&1&&M(0,"div",0);a&2&&I("applyDynamicComponents",b.section.content)},dependencies:[lT],encapsulation:2,changeDetection:0});var pT=function(){this.canEditComment=!1;this.checkboxChange=new aQ;this.contentRendered=new aQ};pT.prototype.ngOnInit=function(){};pT.prototype.ngAfterViewInit=function(){this.contentRendered.emit()};pT.\u0275fac=function(a){return new (a||pT)};
pT.\u0275cmp=D({type:pT,selectors:[["b-formatted-comment-presenter"]],inputs:{formattedComment:"formattedComment",canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange",contentRendered:"contentRendered"},standalone:!1,decls:3,vars:3,consts:[[3,"content"],[3,"content","canEditComment"],[3,"checkboxChange","content","canEditComment"]],template:function(a,b){a&1&&(F(0,J8a,1,1,"b-literal-format-presenter",0),F(1,K8a,1,2,"b-markdown-format-presenter",1),F(2,L8a,1,1,"b-plain-format-presenter",
0));if(a&2){var c,d,e;G((c=b.formattedComment.literalFormat)?0:-1,c);B();G((d=b.formattedComment.markdownFormat)?1:-1,d);B();G((e=b.formattedComment.plainFormat)?2:-1,e)}},dependencies:[kR,mT,nT],encapsulation:2,changeDetection:0});var qT=function(){Z.apply(this,arguments);var a=this;this.formatter=p(fR);this.issueIdInternal="";this.audience="EXTERNAL";this.formattingMode="LITERAL";this.params$=new uf(1);this.formattedResult$=this.params$.pipe(jf(200),yf(function(b){return a.formatter.format(b).pipe(zqd,gf(function(){var c={literalFormat:{content:Bh(b.comment)}};return ce({formattedComment:c,isFallback:!0})}))}))};Y(qT,Z);qT.\u0275dir=Z.\u0275dir;
qT.prototype.ngOnInit=function(){var a=this;this.comment$&&this.subscriptions.add(this.comment$.subscribe(function(b){a.params$.next({comment:b,issueId:a.issueIdInternal,audience:a.audience!=null?a.audience:"EXTERNAL",formattingMode:a.formattingMode,idPrefix:a.getIdPrefix()})}))};qT.prototype.ngOnChanges=function(){this.comment!=null&&this.params$.next({comment:this.comment,issueId:this.issueIdInternal,audience:this.audience!=null?this.audience:"EXTERNAL",formattingMode:this.formattingMode,idPrefix:this.getIdPrefix()})};
qT.prototype.getIdPrefix=function(){return this.idPrefix||"b"+this.issueIdInternal+"-draft"};da.Object.defineProperties(qT.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueIdInternal=a||""}}});qT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(qT)))(b||qT)}}();
qT.\u0275cmp=D({type:qT,selectors:[["b-live-preview"]],inputs:{comment:"comment",comment$:"comment$",issueId:"issueId",audience:"audience",formattingMode:"formattingMode",idPrefix:"idPrefix"},standalone:!1,features:[Ef,jx],decls:2,vars:3,consts:[[1,"md-preview",3,"invisible","error"],[1,"md-preview"],[3,"formattedComment"]],template:function(a,b){a&1&&(F(0,M8a,2,5,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.formattedResult$))?0:-1,c)}},dependencies:[pT,Tx],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:rgb(253.5,243.5,242.5);background-color:var(--bad-bg-pale);box-shadow:inset 0 0 0 1px #ea4335;box-shadow:inset 0 0 0 1px var(--bad)}[_nghost-%COMP%]     .markdown-display pre, [_nghost-%COMP%]     .markdown-display code{background-color:#f1f3f4;background-color:var(--c100)}.bv2-note-container-note   [_nghost-%COMP%]   .md-preview[_ngcontent-%COMP%]{min-height:0;margin-top:0;padding:0;background-color:rgba(0,0,0,0)}/*# sourceMappingURL=live_preview.css.map */"],
changeDetection:0});var zqd=A(function(a){return{formattedComment:a,isFallback:!1}});var Aqd=/^\s*(?:hotlistid|h):(\d+)\s*$/i,Bqd=/(?:\s|^)(?:componentid|c):(\d+)\s*/i,Cqd=/^\s*savedsearchid:(\d+)\s*$/i,rT=function(){Z.call(this);var a=this;this.$log=p(nO);this.activeSession=p(uu);this.contextSensitiveRegistry=p(XQ);this.analytics=p(eQ);this.currentQuery="";this.currentTrackerScope=[];this.queryState$=new Mj({query:"",cursorPosition:void 0,setViaInteraction:!1});this.currentTrackerIdList$=ne(function(){var b;return ce((b=a.activeSession.getTracker())==null?void 0:b.trackerId)}).pipe(A(function(b){return b?
[b]:[]}));this.selectedTrackerIds$=new qf;this.trackerScope$=te(this.currentTrackerIdList$,this.selectedTrackerIds$);this.searchHandlerStack=[];this.searchTriggered$=new qf;this.subscriptions.add(this.queryState$.pipe(zf(this.destroyed$)).subscribe(function(b){a.currentQuery=b.query;(b=a.currentQuery.match(Bqd))?a.contextSensitiveRegistry.componentIdOverride$.next(b[1]):a.contextSensitiveRegistry.componentIdOverride$.next(null);(b=a.currentQuery.match(Aqd))?a.contextSensitiveRegistry.hotlistIdOverride$.next(Number(b[1])):
a.contextSensitiveRegistry.hotlistIdOverride$.next(null)}));this.subscriptions.add(this.trackerScope$.pipe(zf(this.destroyed$)).subscribe(function(b){a.currentTrackerScope=b}))};Y(rT,Z);rT.\u0275dir=Z.\u0275dir;rT.prototype.clear=function(){Dqd(this,"")};var Dqd=function(a,b){a.queryState$.next({query:b,cursorPosition:void 0,setViaInteraction:!1})},Eqd=function(a){return"assignee:"+a+" status:open"},Fqd=function(a,b){return a.currentQuery===Eqd("me")||a.currentQuery===Eqd(b===void 0?"":b)};
rT.prototype.getStarred=function(){return"star:true"};rT.prototype.isStarred=function(){return this.currentQuery===this.getStarred()};var Gqd=function(a){return"verifier:"+a+" status:open | status:fixed"},Hqd=function(a){return(a=a.currentQuery.match(Aqd))?Number(a[1]):0},Iqd=function(a){return(a=a.currentQuery.match(Cqd))?a[1]:void 0},Jqd=function(a){return(a=a.currentQuery.match(Bqd))?a[1]:void 0};rT.prototype.track=function(a,b,c){this.analytics.trackEvent("global-search",a,b,c)};
var Kqd=function(a,b){a.searchHandlerStack.push(b);return function(){La(a.searchHandlerStack,b)}};rT.\u0275fac=function(a){return new (a||rT)};rT.\u0275prov=Dc({token:rT,factory:rT.\u0275fac,providedIn:"root"});var Lqd=function(a,b){return[a,b]},sT=function(){this.size=this.name=""};sT.prototype.ngOnInit=function(){};sT.\u0275fac=function(a){return new (a||sT)};
sT.\u0275cmp=D({type:sT,selectors:[["b-icon"]],inputs:{name:"name",size:"size"},standalone:!1,decls:1,vars:6,consts:[[3,"svgIcon"]],template:function(a,b){a&1&&M(0,"mat-icon",0);a&2&&(xg(Jg(3,Lqd,b.name,b.size)),I("svgIcon",b.name))},dependencies:[Jy],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%]{--mat-icon-button-icon-size: 18px;height:18px;width:18px}[_nghost-%COMP%]   .large[_ngcontent-%COMP%]{height:24px;width:24px}'],changeDetection:0});var Mqd=["input"],Nqd=["formField"],Oqd=function(a,b){this.source=a;this.value=b},Pqd={provide:aE,useExisting:Vc(function(){return tT}),multi:!0},Qqd=new dd("MatRadioGroup"),Rqd=new dd("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent",disabledInteractive:!1}}}),tT=function(){this._changeDetector=p(Cx);this._value=null;this._name=p(ai).getId("mat-radio-group-");this._selected=null;this._isInitialized=!1;this._labelPosition="after";this._required=this._disabled=
!1;this._controlValueAccessorChangeFn=function(){};this.onTouched=function(){};this.change=new Ti;this._disabledInteractive=!1};h=tT.prototype;h._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)};h.ngAfterContentInit=function(){var a=this;this._isInitialized=!0;this._buttonChanges=this._radios.changes.subscribe(function(){a.selected&&!a._radios.find(function(b){return b===a.selected})&&(a._selected=null)})};
h.ngOnDestroy=function(){var a;(a=this._buttonChanges)==null||a.unsubscribe()};h._touch=function(){if(this.onTouched)this.onTouched()};h._updateRadioButtonNames=function(){var a=this;this._radios&&this._radios.forEach(function(b){b.name=a.name;b._markForCheck()})};
h._updateSelectedRadioFromValue=function(){var a=this,b=this._selected!==null&&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)}))};h._emitChangeEvent=function(){this._isInitialized&&this.change.emit(new Oqd(this._selected,this._value))};h._markRadiosForCheck=function(){this._radios&&this._radios.forEach(function(a){return a._markForCheck()})};h.writeValue=function(a){this.value=a;this._changeDetector.markForCheck()};
h.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};h.registerOnTouched=function(a){this.onTouched=a};h.setDisabledState=function(a){this.disabled=a;this._changeDetector.markForCheck()};
da.Object.defineProperties(tT.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=a==="before"?"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=a;this._markRadiosForCheck()}},required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=a;this._markRadiosForCheck()}},disabledInteractive:{configurable:!0,
enumerable:!0,get:function(){return this._disabledInteractive},set:function(a){this._disabledInteractive=a;this._markRadiosForCheck()}}});tT.\u0275fac=function(a){return new (a||tT)};
tT.\u0275dir=af({type:tT,selectors:[["mat-radio-group"]],contentQueries:function(a,b,c){a&1&&ig(c,uT,5);if(a&2){var d;lg(d=mg())&&(b._radios=d)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",$g],required:[2,"required","required",$g],disabledInteractive:[2,"disabledInteractive","disabledInteractive",$g]},outputs:{change:"change"},exportAs:["matRadioGroup"],
features:[Gg([Pqd,{provide:Qqd,useExisting:tT}])]});
var uT=function(){var a=this;this._elementRef=p(Hd);this._changeDetector=p(Cx);this._focusMonitor=p(Ny);this._radioDispatcher=p(yz);this._defaultOptions=p(Rqd,{optional:!0});this._ngZone=p(Rg);this._renderer=p(ci);this.id=this._uniqueId=p(ai).getId("mat-radio-");this.disableRipple=!1;this.tabIndex=0;this.change=new Ti;this._checked=!1;this._value=null;this._removeUniqueSelectionListener=function(){};this._noopAnimations=mi();this._injector=p(ye);this._onInputClick=function(f){a.disabled&&a.disabledInteractive&&
f.preventDefault()};p(Zh).load(cA);var b=p(Qqd,{optional:!0}),c=p(new kx("tabindex"),{optional:!0});this.radioGroup=b;var d,e;this._disabledInteractive=(e=(d=this._defaultOptions)==null?void 0:d.disabledInteractive)!=null?e:!1;c&&(this.tabIndex=ah(c,0))};h=uT.prototype;h.focus=function(a,b){b?Oy(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};h._markForCheck=function(){this._changeDetector.markForCheck()};
h.ngOnInit=function(){var a=this;if(this.radioGroup){if(this.checked=this.radioGroup.value===this._value)this.radioGroup.selected=this;this.name=this.radioGroup.name}this._removeUniqueSelectionListener=this._radioDispatcher.listen(function(b,c){b!==a.id&&c===a.name&&(a.checked=!1)})};h.ngDoCheck=function(){this._updateTabIndex()};
h.ngAfterViewInit=function(){var a=this;this._updateTabIndex();this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){!b&&a.radioGroup&&a.radioGroup._touch()});this._ngZone.runOutsideAngular(function(){a._cleanupClick=a._renderer.listen(a._inputElement.nativeElement,"click",a._onInputClick)})};h.ngOnDestroy=function(){var a;(a=this._cleanupClick)==null||a.call(this);this._focusMonitor.stopMonitoring(this._elementRef);this._removeUniqueSelectionListener()};
h._emitChangeEvent=function(){this.change.emit(new Oqd(this,this._value))};h._isRippleDisabled=function(){return this.disableRipple||this.disabled};h._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()))};
h._onTouchTargetClick=function(a){this._onInputInteraction(a);if(!this.disabled||this.disabledInteractive){var b;(b=this._inputElement)==null||b.nativeElement.focus()}};h._setDisabled=function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())};
h._updateTabIndex=function(){var a=this,b=this.radioGroup;var c=b&&b.selected&&!this.disabled?b.selected===this?this.tabIndex:-1:this.tabIndex;if(c!==this._previousTabIndex){var d,e=(d=this._inputElement)==null?void 0:d.nativeElement;e&&(e.setAttribute("tabindex",c+""),this._previousTabIndex=c,Ee(function(){queueMicrotask(function(){if(b&&b.selected&&b.selected!==a&&document.activeElement===e){var f;(f=b.selected)==null||f._inputElement.nativeElement.focus();document.activeElement===e&&a._inputElement.nativeElement.blur()}})},
{injector:this._injector}))}};
da.Object.defineProperties(uT.prototype,{checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(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,this.radioGroup!==null&&(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||this.radioGroup!==null&&this.radioGroup.disabled},set:function(a){this._setDisabled(a)}},required:{configurable:!0,
enumerable:!0,get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){a!==this._required&&this._changeDetector.markForCheck();this._required=a}},color:{configurable:!0,enumerable:!0,get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"},set:function(a){this._color=a}},disabledInteractive:{configurable:!0,enumerable:!0,get:function(){return this._disabledInteractive||this.radioGroup!==
null&&this.radioGroup.disabledInteractive},set:function(a){this._disabledInteractive=a}},inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}}});uT.\u0275fac=function(a){return new (a||uT)};
uT.\u0275cmp=D({type:uT,selectors:[["mat-radio-button"]],viewQuery:function(a,b){a&1&&(hg(Mqd,5),hg(Nqd,7,Hd));if(a&2){var c;lg(c=mg())&&(b._inputElement=c.first);lg(c=mg())&&(b._rippleTrigger=c.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(a,b){a&1&&N("focus",function(){return b._inputElement.nativeElement.focus()});a&2&&(If("id",b.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),wg("mat-primary",b.color==="primary")("mat-accent",
b.color==="accent")("mat-warn",b.color==="warn")("mat-mdc-radio-checked",b.checked)("mat-mdc-radio-disabled",b.disabled)("mat-mdc-radio-disabled-interactive",b.disabledInteractive)("_mat-animation-noopable",b._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",$g],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==
null?0:ah(a)}],checked:[2,"checked","checked",$g],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",$g],required:[2,"required","required",$g],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",$g]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:["*"],decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type",
"radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(a,b){if(a&1){var c=t();bg();K(0,"div",2,0)(2,"div",3)(3,"div",4);N("click",function(d){u(c);
return v(b._onTouchTargetClick(d))});L();K(4,"input",5,1);N("change",function(d){u(c);return v(b._onInputInteraction(d))});L();K(6,"div",6);M(7,"div",7)(8,"div",8);L();K(9,"div",9);M(10,"div",10);L()();K(11,"label",11);cg(12);L()()}a&2&&(I("labelPosition",b.labelPosition),B(2),wg("mdc-radio--disabled",b.disabled),B(2),I("id",b.inputId)("checked",b.checked)("disabled",b.disabled&&!b.disabledInteractive)("required",b.required),If("name",b.name)("value",b.value)("aria-label",b.ariaLabel)("aria-labelledby",
b.ariaLabelledby)("aria-describedby",b.ariaDescribedby)("aria-disabled",b.disabled&&b.disabledInteractive?"true":null),B(5),I("matRippleTrigger",b._rippleTrigger.nativeElement)("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0),B(2),I("for",b.inputId))},dependencies:[fA,dA],styles:['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],
encapsulation:2,changeDetection:0});var Sqd=new dd("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1}}});var Tqd=["switch"],Uqd=function(a,b){this.source=a;this.checked=b},vT=function(){this._elementRef=p(Hd);this._focusMonitor=p(Ny);this._changeDetectorRef=p(Cx);this.defaults=p(Sqd);this._onChange=function(){};this._onTouched=function(){};this._validatorOnChange=function(){};this._checked=!1;this._noopAnimations=mi();this.name=null;this.labelPosition="after";this.ariaLabelledby=this.ariaLabel=null;this.disableRipple=this.disabled=!1;this.tabIndex=0;this.change=new Ti;this.toggleChange=new Ti;p(Zh).load(cA);
var a=p(new kx("tabindex"),{optional:!0}),b=this.defaults;this.tabIndex=a==null?0:parseInt(a)||0;this.color=b.color||"accent";this.id=this._uniqueId=p(ai).getId("mat-mdc-slide-toggle-");var c;this.hideIcon=(c=b.hideIcon)!=null?c:!1;var d;this.disabledInteractive=(d=b.disabledInteractive)!=null?d:!1;this._labelId=this._uniqueId+"-label"};h=vT.prototype;h._createChangeEvent=function(a){return new Uqd(this,a)};h.focus=function(){this._switchElement.nativeElement.focus()};
h.ngAfterContentInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b==="keyboard"||b==="program"?(a._focused=!0,a._changeDetectorRef.markForCheck()):b||Promise.resolve().then(function(){a._focused=!1;a._onTouched();a._changeDetectorRef.markForCheck()})})};h.ngOnChanges=function(a){a.required&&this._validatorOnChange()};h.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};h.writeValue=function(a){this.checked=!!a};
h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.validate=function(a){return this.required&&a.value!==!0?{required:!0}:null};h.registerOnValidatorChange=function(a){this._validatorOnChange=a};h.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck()};h.toggle=function(){this.checked=!this.checked;this._onChange(this.checked)};h._emitChangeEvent=function(){this._onChange(this.checked);this.change.emit(this._createChangeEvent(this.checked))};
h._handleClick=function(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new Uqd(this,this.checked))))};h._getAriaLabelledBy=function(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId};
da.Object.defineProperties(vT.prototype,{buttonId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-button"}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){this._checked=a;this._changeDetectorRef.markForCheck()}},inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}}});vT.\u0275fac=function(a){return new (a||vT)};
vT.\u0275cmp=D({type:vT,selectors:[["mat-slide-toggle"]],viewQuery:function(a,b){a&1&&hg(Tqd,5);if(a&2){var c;lg(c=mg())&&(b._switchElement=c.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(a,b){a&2&&(Pf("id",b.id),If("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),xg(b.color?"mat-"+b.color:""),wg("mat-mdc-slide-toggle-focused",b._focused)("mat-mdc-slide-toggle-checked",b.checked)("_mat-animation-noopable",b._noopAnimations))},inputs:{name:"name",
id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",$g],color:"color",disabled:[2,"disabled","disabled",$g],disableRipple:[2,"disableRipple","disableRipple",$g],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ah(a)}],checked:[2,"checked","checked",$g],hideIcon:[2,"hideIcon","hideIcon",$g],disabledInteractive:[2,"disabledInteractive",
"disabledInteractive",$g]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Gg([{provide:aE,useExisting:Vc(function(){return vT}),multi:!0},{provide:bE,useExisting:vT,multi:!0}]),jx],ngContentSelectors:["*"],decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],
[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",
1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(a,b){if(a&1){var c=t();bg();K(0,"div",1)(1,"button",2,0);N("click",function(){u(c);return v(b._handleClick())});M(3,"div",3)(4,"span",4);K(5,"span",5)(6,"span",6)(7,"span",7);M(8,"span",8);L();K(9,"span",9);M(10,"span",10);L();F(11,R8a,5,0,"span",11);L()()();K(12,"label",12);N("click",function(d){u(c);return v(d.stopPropagation())});cg(13);L()()}a&2&&(a=qg(2),I("labelPosition",b.labelPosition),B(),wg("mdc-switch--selected",
b.checked)("mdc-switch--unselected",!b.checked)("mdc-switch--checked",b.checked)("mdc-switch--disabled",b.disabled)("mat-mdc-slide-toggle-disabled-interactive",b.disabledInteractive),I("tabIndex",b.disabled&&!b.disabledInteractive?-1:b.tabIndex)("disabled",b.disabled&&!b.disabledInteractive),If("id",b.buttonId)("name",b.name)("aria-label",b.ariaLabel)("aria-labelledby",b._getAriaLabelledBy())("aria-describedby",b.ariaDescribedby)("aria-required",b.required||null)("aria-checked",b.checked)("aria-disabled",
b.disabled&&b.disabledInteractive?"true":null),B(9),I("matRippleTrigger",a)("matRippleDisabled",b.disableRipple||b.disabled)("matRippleCentered",!0),B(),G(b.hideIcon?-1:11),B(),I("for",b.buttonId),If("id",b._labelId))},dependencies:[fA,dA],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mat-slide-toggle-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mat-slide-toggle-track-height, 32px);border-radius:var(--mat-slide-toggle-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mat-slide-toggle-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-slide-toggle-track-outline-width, 2px);border-color:var(--mat-slide-toggle-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-slide-toggle-selected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-slide-toggle-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mat-slide-toggle-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mat-slide-toggle-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mat-slide-toggle-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mat-slide-toggle-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mat-slide-toggle-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mat-slide-toggle-handle-width);height:var(--mat-slide-toggle-handle-height);border-radius:var(--mat-slide-toggle-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-slide-toggle-unselected-handle-size, 16px);height:var(--mat-slide-toggle-unselected-handle-size, 16px);margin:var(--mat-slide-toggle-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-slide-toggle-selected-handle-size, 24px);height:var(--mat-slide-toggle-selected-handle-size, 24px);margin:var(--mat-slide-toggle-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-slide-toggle-with-icon-handle-size, 24px);height:var(--mat-slide-toggle-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-slide-toggle-pressed-handle-size, 28px);height:var(--mat-slide-toggle-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mat-slide-toggle-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mat-slide-toggle-state-layer-size, 40px);height:var(--mat-slide-toggle-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-hover-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-focus-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1;transform:translateZ(0)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mat-slide-toggle-unselected-icon-size, 16px);height:var(--mat-slide-toggle-unselected-icon-size, 16px);fill:var(--mat-slide-toggle-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mat-slide-toggle-selected-icon-size, 16px);height:var(--mat-slide-toggle-selected-icon-size, 16px);fill:var(--mat-slide-toggle-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-slide-toggle-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-slide-toggle-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-slide-toggle-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-slide-toggle-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-slide-toggle-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-slide-toggle-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mat-slide-toggle-disabled-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-slide-toggle-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-slide-toggle-touch-target-size, 48px);width:100%;transform:translate(-50%, -50%);display:var(--mat-slide-toggle-touch-target-display, block)}[dir=rtl] .mat-mdc-slide-toggle-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],
encapsulation:2,changeDetection:0});var wT=new dd("CDK_TABLE");new dd("text-column-options");var xT=function(){this.template=p(dg)};xT.\u0275fac=function(a){return new (a||xT)};xT.\u0275dir=af({type:xT,selectors:[["","cdkCellDef",""]]});var yT=function(){this.template=p(dg)};yT.\u0275fac=function(a){return new (a||yT)};yT.\u0275dir=af({type:yT,selectors:[["","cdkHeaderCellDef",""]]});var zT=function(){this.template=p(dg)};zT.\u0275fac=function(a){return new (a||zT)};zT.\u0275dir=af({type:zT,selectors:[["","cdkFooterCellDef",""]]});
var AT=function(){this._table=p(wT,{optional:!0});this._stickyEnd=this._sticky=this._hasStickyChanged=!1};AT.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};AT.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};AT.prototype._updateColumnCssClassName=function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]};
AT.prototype._setNameInput=function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())};
da.Object.defineProperties(AT.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}},sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}},stickyEnd:{configurable:!0,enumerable:!0,get:function(){return this._stickyEnd},set:function(a){a!==this._stickyEnd&&(this._stickyEnd=a,this._hasStickyChanged=!0)}}});
AT.\u0275fac=function(a){return new (a||AT)};AT.\u0275dir=af({type:AT,selectors:[["","cdkColumnDef",""]],contentQueries:function(a,b,c){a&1&&(ig(c,xT,5),ig(c,yT,5),ig(c,zT,5));if(a&2){var d;lg(d=mg())&&(b.cell=d.first);lg(d=mg())&&(b.headerCell=d.first);lg(d=mg())&&(b.footerCell=d.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",$g],stickyEnd:[2,"stickyEnd","stickyEnd",$g]},features:[Gg([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:AT}])]});
var Vqd=function(a,b){b.nativeElement.classList.add.apply(b.nativeElement.classList,q(a._columnCssClassName))},BT=function(){Vqd.call(this,p(AT),p(Hd))};Y(BT,Vqd);BT.\u0275fac=function(a){return new (a||BT)};BT.\u0275dir=af({type:BT,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Ef]});
var CT=function(){var a=p(AT),b=p(Hd);Vqd.call(this,a,b);var c;(a=(c=a._table)==null?void 0:c._getCellRole())&&b.nativeElement.setAttribute("role",a)};Y(CT,Vqd);CT.\u0275fac=function(a){return new (a||CT)};CT.\u0275dir=af({type:CT,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[Ef]});var DT=function(){var a=p(AT),b=p(Hd);Vqd.call(this,a,b);var c;(a=(c=a._table)==null?void 0:c._getCellRole())&&b.nativeElement.setAttribute("role",a)};Y(DT,Vqd);
DT.\u0275fac=function(a){return new (a||DT)};DT.\u0275dir=af({type:DT,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Ef]});var ET=function(){this.template=p(dg);this._differs=p(Fx)};ET.prototype.ngOnChanges=function(a){this._columnsDiffer||(a=a.columns&&a.columns.currentValue||[],this._columnsDiffer=this._differs.find(a).create(),this._columnsDiffer.diff(a))};ET.\u0275fac=function(a){return new (a||ET)};ET.\u0275dir=af({type:ET,features:[jx]});var FT=function(){ET.call(this,p(dg),p(Fx));this._table=p(wT,{optional:!0});this._sticky=this._hasStickyChanged=!1};Y(FT,ET);
FT.prototype.ngOnChanges=function(a){ET.prototype.ngOnChanges.call(this,a)};FT.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};FT.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};da.Object.defineProperties(FT.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}}});FT.\u0275fac=function(a){return new (a||FT)};
FT.\u0275dir=af({type:FT,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",$g]},features:[Ef,jx]});var GT=function(){ET.call(this,p(dg),p(Fx));this._table=p(wT,{optional:!0});this._sticky=this._hasStickyChanged=!1};Y(GT,ET);GT.prototype.ngOnChanges=function(a){ET.prototype.ngOnChanges.call(this,a)};GT.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};
GT.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};da.Object.defineProperties(GT.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}}});GT.\u0275fac=function(a){return new (a||GT)};GT.\u0275dir=af({type:GT,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",$g]},features:[Ef,jx]});
var HT=function(){ET.call(this,p(dg),p(Fx));this._table=p(wT,{optional:!0})};Y(HT,ET);HT.\u0275fac=function(a){return new (a||HT)};HT.\u0275dir=af({type:HT,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[Ef]});var IT=function(){this._viewContainer=p(eg);IT.mostRecentCellOutlet=this};IT.prototype.ngOnDestroy=function(){IT.mostRecentCellOutlet===this&&(IT.mostRecentCellOutlet=null)};IT.mostRecentCellOutlet=null;
IT.\u0275fac=function(a){return new (a||IT)};IT.\u0275dir=af({type:IT,selectors:[["","cdkCellOutlet",""]]});var Wqd=function(){};Wqd.\u0275fac=function(a){return new (a||Wqd)};Wqd.\u0275cmp=D({type:Wqd,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&&Vf(0,0)},dependencies:[IT],encapsulation:2});var Xqd=function(){};Xqd.\u0275fac=function(a){return new (a||Xqd)};
Xqd.\u0275cmp=D({type:Xqd,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Vf(0,0)},dependencies:[IT],encapsulation:2});var Yqd=function(){};Yqd.\u0275fac=function(a){return new (a||Yqd)};
Yqd.\u0275cmp=D({type:Yqd,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Vf(0,0)},dependencies:[IT],encapsulation:2});var JT=function(){this.templateRef=p(dg);this._contentClassNames=["cdk-no-data-row","cdk-row"];this._cellClassNames=["cdk-cell","cdk-no-data-cell"];this._cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell"};JT.\u0275fac=function(a){return new (a||JT)};
JT.\u0275dir=af({type:JT,selectors:[["ng-template","cdkNoDataRow",""]]});var Zqd=new dd("CDK_SPL");var $qd=["top","bottom","left","right"],ard=function(a,b,c,d,e,f,g){var k=this;c=c===void 0?!0:c;d=d===void 0?!0:d;this._isNativeHtmlTable=a;this._stickCellCss=b;this._isBrowser=c;this._needsPositionStickyOnElement=d;this.direction=e;this._positionListener=f;this._tableInjector=g;this._elemSizeCache=new WeakMap;var l;this._resizeObserver=((l=globalThis)==null?0:l.ResizeObserver)?new globalThis.ResizeObserver(function(r){return k._updateCachedSizes(r)}):null;this._updatedStickyColumnsParamsToReplay=
[];this._stickyColumnsReplayTimeout=null;this._cachedCellWidths=[];this._destroyed=!1;this._borderCellCss={top:b+"-border-elem-top",bottom:b+"-border-elem-bottom",left:b+"-border-elem-left",right:b+"-border-elem-right"}},brd=function(a,b,c){(c.includes("left")||c.includes("right"))&&a._removeFromStickyColumnReplayQueue(b);var d=[];b=m(b);for(var e=b.next();!e.done;e=b.next())e=e.value,e.nodeType===e.ELEMENT_NODE&&d.push.apply(d,[e].concat(q(Array.from(e.children))));Ee({write:function(){for(var f=
m(d),g=f.next();!g.done;g=f.next())a._removeStickyStyle(g.value,c)}},{injector:a._tableInjector})},crd=function(a,b,c,d,e,f){e=e===void 0?!0:e;f=f===void 0?!0:f;if(b.length&&a._isBrowser&&(c.some(function(V){return V})||d.some(function(V){return V}))){var g=b[0],k=g.children.length,l=a.direction==="rtl",r=l?"right":"left",w=l?"left":"right",x=c.lastIndexOf(!0),C=d.indexOf(!0),H,J,O;f&&a._updateStickyColumnReplayQueue({rows:[].concat(q(b)),stickyStartStates:[].concat(q(c)),stickyEndStates:[].concat(q(d))});
Ee({earlyRead:function(){H=a._getCellWidths(g,e);J=a._getStickyStartColumnPositions(H,c);O=a._getStickyEndColumnPositions(H,d)},write:function(){for(var V=m(b),ca=V.next();!ca.done;ca=V.next()){ca=ca.value;for(var na=0;na<k;na++){var ua=ca.children[na];c[na]&&a._addStickyStyle(ua,r,J[na],na===x);d[na]&&a._addStickyStyle(ua,w,O[na],na===C)}}a._positionListener&&H.some(function(ia){return!!ia})&&(a._positionListener.stickyColumnsUpdated({sizes:x===-1?[]:H.slice(0,x+1).map(function(ia,Ga){return c[Ga]?
ia:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:C===-1?[]:H.slice(C).map(function(ia,Ga){return d[Ga+C]?ia:null}).reverse()}))}},{injector:a._tableInjector})}else{(l=a._positionListener)==null||l.stickyColumnsUpdated({sizes:[]});var R;(R=a._positionListener)==null||R.stickyEndColumnsUpdated({sizes:[]})}},drd=function(a,b,c,d){if(a._isBrowser){var e=d==="bottom"?b.slice().reverse():b,f=d==="bottom"?c.slice().reverse():c,g=[],k=[],l=[];Ee({earlyRead:function(){for(var r=0,w=0;r<e.length;r++)if(f[r]){g[r]=
w;var x=e[r];l[r]=a._isNativeHtmlTable?Array.from(x.children):[x];x=a._retrieveElementSize(x).height;w+=x;k[r]=x}},write:function(){for(var r=f.lastIndexOf(!0),w=0;w<e.length;w++)if(f[w])for(var x=g[w],C=w===r,H=m(l[w]),J=H.next();!J.done;J=H.next())a._addStickyStyle(J.value,d,x,C);if(d==="top"){var O;(O=a._positionListener)==null||O.stickyHeaderRowsUpdated({sizes:k,offsets:g,elements:l})}else{var R;(R=a._positionListener)==null||R.stickyFooterRowsUpdated({sizes:k,offsets:g,elements:l})}}},{injector:a._tableInjector})}},
erd=function(a,b,c){a._isNativeHtmlTable&&Ee({write:function(){var d=b.querySelector("tfoot");d&&(c.some(function(e){return!e})?a._removeStickyStyle(d,["bottom"]):a._addStickyStyle(d,"bottom",0,!1))}},{injector:a._tableInjector})};h=ard.prototype;h.destroy=function(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout);var a;(a=this._resizeObserver)==null||a.disconnect();this._destroyed=!0};
h._removeStickyStyle=function(a,b){if(a.classList.contains(this._stickCellCss)){for(var c=m(b),d=c.next();!d.done;d=c.next())d=d.value,a.style[d]="",a.classList.remove(this._borderCellCss[d]);$qd.some(function(e){return b.indexOf(e)===-1&&a.style[e]})?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}};
h._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; ")};h._getCalculatedZIndex=function(a){for(var b={top:100,bottom:10,left:1,right:1},c=0,d=m($qd),e=d.next();!e.done;e=d.next())e=e.value,a.style[e]&&(c+=b[e]);return c?""+c:""};
h._getCellWidths=function(a,b){if(b!==void 0&&!b&&this._cachedCellWidths.length)return this._cachedCellWidths;b=[];a=a.children;for(var c=0;c<a.length;c++)b.push(this._retrieveElementSize(a[c]).width);return this._cachedCellWidths=b};h._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};h._getStickyEndColumnPositions=function(a,b){for(var c=[],d=0,e=a.length;e>0;e--)b[e]&&(c[e]=d,d+=a[e]);return c};
h._retrieveElementSize=function(a){var b=this._elemSizeCache.get(a);if(b)return b;b=a.getBoundingClientRect();b={width:b.width,height:b.height};if(!this._resizeObserver)return b;this._elemSizeCache.set(a,b);this._resizeObserver.observe(a,{box:"border-box"});return b};h._updateStickyColumnReplayQueue=function(a){this._removeFromStickyColumnReplayQueue(a.rows);this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(a)};
h._removeFromStickyColumnReplayQueue=function(a){var b=new Set(a);a=m(this._updatedStickyColumnsParamsToReplay);for(var c=a.next();!c.done;c=a.next())c=c.value,c.rows=c.rows.filter(function(d){return!b.has(d)});this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(function(d){return!!d.rows.length})};
h._updateCachedSizes=function(a){var b=this,c=!1;a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=((e=d.borderBoxSize)==null?0:e.length)?{width:d.borderBoxSize[0].inlineSize,height:d.borderBoxSize[0].blockSize}:{width:d.contentRect.width,height:d.contentRect.height};e=void 0;f.width!==((e=this._elemSizeCache.get(d.target))==null?void 0:e.width)&&S8a(d.target)&&(c=!0);this._elemSizeCache.set(d.target,f)}c&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&
clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(function(){if(!b._destroyed){for(var g=m(b._updatedStickyColumnsParamsToReplay),k=g.next();!k.done;k=g.next())k=k.value,crd(b,k.rows,k.stickyStartStates,k.stickyEndStates,!0,!1);b._updatedStickyColumnsParamsToReplay=[];b._stickyColumnsReplayTimeout=null}},0))};var frd=[[["caption"]],[["colgroup"],["col"]],"*"],grd=function(){this.viewContainer=p(eg);this.elementRef=p(Hd);var a=p(wT);a._rowOutlet=this;a._outletAssigned()};grd.\u0275fac=function(a){return new (a||grd)};grd.\u0275dir=af({type:grd,selectors:[["","rowOutlet",""]]});var hrd=function(){this.viewContainer=p(eg);this.elementRef=p(Hd);var a=p(wT);a._headerRowOutlet=this;a._outletAssigned()};hrd.\u0275fac=function(a){return new (a||hrd)};
hrd.\u0275dir=af({type:hrd,selectors:[["","headerRowOutlet",""]]});var ird=function(){this.viewContainer=p(eg);this.elementRef=p(Hd);var a=p(wT);a._footerRowOutlet=this;a._outletAssigned()};ird.\u0275fac=function(a){return new (a||ird)};ird.\u0275dir=af({type:ird,selectors:[["","footerRowOutlet",""]]});var jrd=function(){this.viewContainer=p(eg);this.elementRef=p(Hd);var a=p(wT);a._noDataRowOutlet=this;a._outletAssigned()};jrd.\u0275fac=function(a){return new (a||jrd)};
jrd.\u0275dir=af({type:jrd,selectors:[["","noDataRowOutlet",""]]});
var KT=function(){var a=this;this._differs=p(Fx);this._changeDetectorRef=p(Cx);this._elementRef=p(Hd);this._dir=p(bi,{optional:!0});this._platform=p(Vh);this._viewRepeater=p(MCc);this._viewportRuler=p(Qh);this._stickyPositioningListener=p(Zqd,{optional:!0,skipSelf:!0});this._document=p(Rh);this._onDestroy=new qf;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._hasInitialized=this._hasAllOutlets=this._isShowingNoDataRow=!1;this._cellRoleInternal=void 0;this._fixedLayout=this._multiTemplateDataRows=!1;this.contentChanged=new Ti;this.viewChange=new Mj({start:0,end:Number.MAX_VALUE});this._injector=p(ye);p(new kx("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role",
"table");this._isServer=!this._platform.isBrowser;this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE";this._dataDiffer=this._differs.find([]).create(function(b,c){return a.trackBy?a.trackBy(c.dataIndex,c.data):c})};h=KT.prototype;h._getCellRole=function(){var a=this._elementRef.nativeElement.getAttribute("role");return a==="grid"||a==="treegrid"?"gridcell":"cell"};
h.ngOnInit=function(){var a=this;this._setupStickyStyler();this._viewportRuler.change().pipe(zf(this._onDestroy)).subscribe(function(){a._forceRecalculateCellWidths=!0})};h.ngAfterContentInit=function(){this._hasInitialized=!0};h.ngAfterContentChecked=function(){this._canRender()&&this._render()};
h.ngOnDestroy=function(){var a;(a=this._stickyStyler)==null||a.destroy();var b,c,d;[(b=this._rowOutlet)==null?void 0:b.viewContainer,(c=this._headerRowOutlet)==null?void 0:c.viewContainer,(d=this._footerRowOutlet)==null?void 0:d.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(function(e){e==null||e.clear()});this._headerRowDefs=[];this._footerRowDefs=[];this._defaultRowDef=null;this._onDestroy.next();
this._onDestroy.complete();jra(this.dataSource)&&this.dataSource.disconnect(this)};
var lrd=function(a){a._renderRows=a._getAllRenderRows();var b=a._dataDiffer.diff(a._renderRows);if(b){var c=a._rowOutlet.viewContainer;a._viewRepeater.applyChanges(b,c,function(d,e,f){return a._getEmbeddedViewArgs(d.item,f)},function(d){return d.item.data},function(d){d.operation===1&&d.context&&a._renderCellTemplateForItem(d.record.item.rowDef,d.context)});a._updateRowIndexContext();eAc(b,function(d){c.get(d.currentIndex).context.$implicit=d.item.data});a._updateNoDataRow();a.contentChanged.next();
krd(a)}else a._updateNoDataRow(),a.contentChanged.next()},mrd=function(a){var b=a._getRenderedRows(a._headerRowOutlet);if(a._isNativeHtmlTable){var c=X8a(a._headerRowOutlet,"thead");c&&(c.style.display=b.length?"":"none")}c=a._headerRowDefs.map(function(d){return d.sticky});brd(a._stickyStyler,b,["top"]);drd(a._stickyStyler,b,c,"top");a._headerRowDefs.forEach(function(d){return d.resetStickyChanged()})},nrd=function(a){var b=a._getRenderedRows(a._footerRowOutlet);if(a._isNativeHtmlTable){var c=X8a(a._footerRowOutlet,
"tfoot");c&&(c.style.display=b.length?"":"none")}c=a._footerRowDefs.map(function(d){return d.sticky});brd(a._stickyStyler,b,["bottom"]);drd(a._stickyStyler,b,c,"bottom");erd(a._stickyStyler,a._elementRef.nativeElement,c);a._footerRowDefs.forEach(function(d){return d.resetStickyChanged()})},krd=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)brd(a._stickyStyler,
[].concat(q(b),q(c),q(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=[],g=0;g<c.length;g++)a._renderRows[g].rowDef===e&&f.push(c[g]);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()})};h=KT.prototype;
h._outletAssigned=function(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())};h._canRender=function(){return this._hasAllOutlets&&this._hasInitialized};
h._render=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&&this._rowDefs.length>0&&!this._renderChangeSubscription?
this._observeRenderChanges():this._stickyColumnStylesNeedReset&&krd(this);this._checkStickyStates()};
h._getAllRenderRows=function(){var a=[],b=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;if(!this._data)return a;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],g=this._cachedRenderRowsMap.get(f.data);g.has(f.rowDef)?g.get(f.rowDef).push(f):g.set(f.rowDef,[f]);a.push(f)}}return a};
h._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}})};h._cacheColumnDefs=function(){var a=this;this._columnDefsByName.clear();W8a(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(b){a._columnDefsByName.has(b.name);a._columnDefsByName.set(b.name,b)})};
h._cacheRowDefs=function(){this._headerRowDefs=W8a(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs);this._footerRowDefs=W8a(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs);this._rowDefs=W8a(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);this._defaultRowDef=this._rowDefs.filter(function(a){return!a.when})[0]};
h._renderUpdatedColumns=function(){var a=function(d,e){e=!!e._columnsDiffer.diff(e.columns);return d||e},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};
h._switchDataSource=function(a){this._data=[];jra(this.dataSource)&&this.dataSource.disconnect(this);this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null);a||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear());this._dataSource=a};
h._observeRenderChanges=function(){var a=this;if(this.dataSource){var b;jra(this.dataSource)?b=this.dataSource.connect(this):we(this.dataSource)?b=this.dataSource:Array.isArray(this.dataSource)&&(b=ce(this.dataSource));this._renderChangeSubscription=b.pipe(zf(this._onDestroy)).subscribe(function(c){a._data=c||[];lrd(a)})}};
h._forceRenderHeaderRows=function(){var a=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear();this._headerRowDefs.forEach(function(b,c){return a._renderRow(a._headerRowOutlet,b,c)});mrd(this)};h._forceRenderFooterRows=function(){var a=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear();this._footerRowDefs.forEach(function(b,c){return a._renderRow(a._footerRowOutlet,b,c)});nrd(this)};
h._addStickyColumnStyles=function(a,b){var c=this,d=Array.from((b==null?void 0: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});crd(this._stickyStyler,a,b,d,!this._fixedLayout||this._forceRecalculateCellWidths)};h._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};
h._getRowDefs=function(a,b){if(this._rowDefs.length==1)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};h._getEmbeddedViewArgs=function(a,b){return{templateRef:a.rowDef.template,context:{$implicit:a.data},index:b}};
h._renderRow=function(a,b,c,d){d=d===void 0?{}:d;a=a.viewContainer.createEmbeddedView(b.template,d,c);this._renderCellTemplateForItem(b,d);return a};h._renderCellTemplateForItem=function(a,b){a=m(this._getCellTemplates(a));for(var c=a.next();!c.done;c=a.next())c=c.value,IT.mostRecentCellOutlet&&IT.mostRecentCellOutlet._viewContainer.createEmbeddedView(c,b);this._changeDetectorRef.markForCheck()};
h._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=b===0;d.last=b===c-1;d.even=b%2===0;d.odd=!d.even;this.multiTemplateDataRows?(d.dataIndex=this._renderRows[b].dataIndex,d.renderIndex=b):d.index=this._renderRows[b].dataIndex}};
h._getCellTemplates=function(a){var b=this;return a&&a.columns?Array.from(a.columns,function(c){c=b._columnDefsByName.get(c);return a instanceof FT?c.headerCell.template:a instanceof GT?c.footerCell.template:c.cell.template}):[]};h._forceRenderDataRows=function(){this._dataDiffer.diff([]);this._rowOutlet.viewContainer.clear();lrd(this)};
h._checkStickyStates=function(){var a=function(b,c){return b||c.hasStickyChanged()};this._headerRowDefs.reduce(a,!1)&&mrd(this);this._footerRowDefs.reduce(a,!1)&&nrd(this);Array.from(this._columnDefsByName.values()).reduce(a,!1)&&(this._stickyColumnStylesNeedReset=!0,krd(this))};
h._setupStickyStyler=function(){var a=this;this._stickyStyler=new ard(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,this._dir?this._dir.value:"ltr",this._stickyPositioningListener,this._injector);(this._dir?this._dir.change:ce()).pipe(zf(this._onDestroy)).subscribe(function(b){a._stickyStyler.direction=b;krd(a)})};h._getOwnDefs=function(a){var b=this;return a.filter(function(c){return!c._table||c._table===b})};
h._updateNoDataRow=function(){var a=this._customNoDataRow||this._noDataRow;if(a){var b=this._rowOutlet.viewContainer.length===0;if(b!==this._isShowingNoDataRow){var c=this._noDataRowOutlet.viewContainer;if(b){c=c.createEmbeddedView(a.templateRef);var d=c.rootNodes[0];if(c.rootNodes.length===1&&(d==null?void 0:d.nodeType)===this._document.ELEMENT_NODE)for(d.setAttribute("role","row"),d.classList.add.apply(d.classList,q(a._contentClassNames)),c=d.querySelectorAll(a._cellSelector),d=0;d<c.length;d++)c[d].classList.add.apply(c[d].classList,
q(a._cellClassNames))}else c.clear();this._isShowingNoDataRow=b;this._changeDetectorRef.markForCheck()}}};
da.Object.defineProperties(KT.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=a;this._rowOutlet&&this._rowOutlet.viewContainer.length&&
(this._forceRenderDataRows(),krd(this))}},fixedLayout:{configurable:!0,enumerable:!0,get:function(){return this._fixedLayout},set:function(a){this._fixedLayout=a;this._stickyColumnStylesNeedReset=this._forceRecalculateCellWidths=!0}}});KT.\u0275fac=function(a){return new (a||KT)};
KT.\u0275cmp=D({type:KT,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(a,b,c){a&1&&(ig(c,JT,5),ig(c,AT,5),ig(c,HT,5),ig(c,FT,5),ig(c,GT,5));if(a&2){var d;lg(d=mg())&&(b._noDataRow=d.first);lg(d=mg())&&(b._contentColumnDefs=d);lg(d=mg())&&(b._contentRowDefs=d);lg(d=mg())&&(b._contentHeaderRowDefs=d);lg(d=mg())&&(b._contentFooterRowDefs=d)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(a,b){a&2&&wg("cdk-table-fixed-layout",b.fixedLayout)},inputs:{trackBy:"trackBy",
dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",$g],fixedLayout:[2,"fixedLayout","fixedLayout",$g]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Gg([{provide:wT,useExisting:KT},{provide:MCc,useClass:NCc},{provide:Zqd,useValue:null}])],ngContentSelectors:["caption","colgroup, col","*"],decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a,
b){a&1&&(bg(frd),cg(0),cg(1,1),F(2,T8a,1,0),F(3,U8a,7,0)(4,V8a,4,0));a&2&&(B(2),G(b._isServer?2:-1),B(),G(b._isNativeHtmlTable?3:4))},dependencies:[hrd,grd,jrd,ird],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});var ord=function(){};ord.\u0275fac=function(a){return new (a||ord)};ord.\u0275mod=$e({type:ord});ord.\u0275inj=Fc({imports:[Dz]});var LT=function(){xT.apply(this,arguments)};Y(LT,xT);LT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(LT)))(b||LT)}}();LT.\u0275dir=af({type:LT,selectors:[["","matCellDef",""]],features:[Gg([{provide:xT,useExisting:LT}]),Ef]});var MT=function(){yT.apply(this,arguments)};Y(MT,yT);MT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(MT)))(b||MT)}}();MT.\u0275dir=af({type:MT,selectors:[["","matHeaderCellDef",""]],features:[Gg([{provide:yT,useExisting:MT}]),Ef]});
var NT=function(){zT.apply(this,arguments)};Y(NT,zT);NT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(NT)))(b||NT)}}();NT.\u0275dir=af({type:NT,selectors:[["","matFooterCellDef",""]],features:[Gg([{provide:zT,useExisting:NT}]),Ef]});var OT=function(){AT.apply(this,arguments)};Y(OT,AT);OT.prototype._updateColumnCssClassName=function(){AT.prototype._updateColumnCssClassName.call(this);this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)};
da.Object.defineProperties(OT.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}}});OT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(OT)))(b||OT)}}();OT.\u0275dir=af({type:OT,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Gg([{provide:AT,useExisting:OT},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:OT}]),Ef]});var PT=function(){BT.apply(this,arguments)};Y(PT,BT);
PT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(PT)))(b||PT)}}();PT.\u0275dir=af({type:PT,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[Ef]});var QT=function(){CT.apply(this,arguments)};Y(QT,CT);QT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(QT)))(b||QT)}}();
QT.\u0275dir=af({type:QT,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[Ef]});var RT=function(){DT.apply(this,arguments)};Y(RT,DT);RT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(RT)))(b||RT)}}();RT.\u0275dir=af({type:RT,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[Ef]});var ST=function(){FT.apply(this,arguments)};Y(ST,FT);ST.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(ST)))(b||ST)}}();ST.\u0275dir=af({type:ST,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",$g]},features:[Gg([{provide:FT,useExisting:ST}]),Ef]});var TT=function(){GT.apply(this,arguments)};Y(TT,GT);TT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(TT)))(b||TT)}}();
TT.\u0275dir=af({type:TT,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",$g]},features:[Gg([{provide:GT,useExisting:TT}]),Ef]});var UT=function(){HT.apply(this,arguments)};Y(UT,HT);UT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(UT)))(b||UT)}}();
UT.\u0275dir=af({type:UT,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Gg([{provide:HT,useExisting:UT}]),Ef]});var VT=function(){};Y(VT,Wqd);VT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(VT)))(b||VT)}}();
VT.\u0275cmp=D({type:VT,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Gg([{provide:Wqd,useExisting:VT}]),Ef],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Vf(0,0)},dependencies:[IT],encapsulation:2});var WT=function(){};Y(WT,Xqd);WT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(WT)))(b||WT)}}();
WT.\u0275cmp=D({type:WT,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[Gg([{provide:Xqd,useExisting:WT}]),Ef],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Vf(0,0)},dependencies:[IT],encapsulation:2});var XT=function(){};Y(XT,Yqd);XT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(XT)))(b||XT)}}();
XT.\u0275cmp=D({type:XT,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Gg([{provide:Yqd,useExisting:XT}]),Ef],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Vf(0,0)},dependencies:[IT],encapsulation:2});
var YT=function(){JT.call(this);this._cellSelector="td, mat-cell, [mat-cell], .mat-cell";this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row");this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")};Y(YT,JT);YT.\u0275fac=function(a){return new (a||YT)};YT.\u0275dir=af({type:YT,selectors:[["ng-template","matNoDataRow",""]],features:[Gg([{provide:JT,useExisting:YT}]),Ef]});var prd=[[["caption"]],[["colgroup"],["col"]],"*"],ZT=function(){KT.apply(this,arguments);this.stickyCssClass="mat-mdc-table-sticky";this.needsPositionStickyOnElement=!1};Y(ZT,KT);ZT.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(ZT)))(b||ZT)}}();
ZT.\u0275cmp=D({type:ZT,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mdc-table-fixed-layout",b.fixedLayout)},exportAs:["matTable"],features:[Gg([{provide:KT,useExisting:ZT},{provide:wT,useExisting:ZT},{provide:MCc,useClass:NCc},{provide:Zqd,useValue:null}]),Ef],ngContentSelectors:["caption","colgroup, col","*"],decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",
1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a,b){a&1&&(bg(prd),cg(0),cg(1,1),F(2,Y8a,1,0),F(3,Z8a,7,0)(4,$8a,4,0));a&2&&(B(2),G(b._isServer?2:-1),B(),G(b._isNativeHtmlTable?3:4))},dependencies:[hrd,grd,jrd,ird],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:var(--mat-table-header-container-height, 56px)}mat-row{min-height:var(--mat-table-row-item-container-height, 52px)}mat-footer-row{min-height:var(--mat-table-footer-container-height, 52px)}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}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}\n"],
encapsulation:2});var qrd={SUGGESTIONS:0,AUTOMATIC_ACTIONS:1,0:"SUGGESTIONS",1:"AUTOMATIC_ACTIONS"},$T=function(){Z.apply(this,arguments);var a=this;this.data=p(TA);this.playbookService=p(dR);this.matDialogRef=p(RA);this.changeDetectorRef=p(Cx);this.appSearchState=p(rT);this.FormattingMode=Um;this.showSettings=this.isEditing=!1;this.searchQuery$=ne(function(){return a.data.searchQuery?ce(a.data.searchQuery):a.appSearchState.queryState$.pipe(A(function(b){return b.query}))});this.playbook$=this.searchQuery$.pipe(yf(function(b){return b?
Vjd(a.playbookService,b):ce(void 0)}));this.draftPlaybook={name:"",instructions:"",searchQuery:this.data.searchQuery};this.unimplementedPlaybookData={enablePlaybook:!0,agentMode:0,clusterSuggestions:!1,statsInterval:2};this.AgentMode=qrd;this.statsIntervalOptions=[0,1,2,3];this.displayedColumns=["triageActions","acceptanceRate","accuracy"];this.dataSource=[{triageActions:"Dedupe",acceptanceRate:"2/8 (25%)",accuracy:"33%"},{triageActions:"Component change",acceptanceRate:"7/10 (70%)",accuracy:"43%"},
{triageActions:"Priority change",acceptanceRate:"6/12 (50%)",accuracy:"62%"},{triageActions:"Severity change",acceptanceRate:"2/10 (20%)",accuracy:"12%"},{triageActions:"Type change",acceptanceRate:"3/8 (38%)",accuracy:"74%"},{triageActions:"Assign to reporter",acceptanceRate:"5/16 (31%)",accuracy:"48%"},{triageActions:"Close as \u201cWon\u2019t fix\u201d",acceptanceRate:"6/9 (67%)",accuracy:"34%"}]};Y($T,Z);$T.\u0275dir=Z.\u0275dir;
$T.prototype.ngOnInit=function(){var a=this;this.playbook$.pipe(zf(this.destroyed$)).subscribe(function(b){b&&(a.originalPlaybook=b,a.draftPlaybook=nm(b),b.instructions&&(a.formattedComment={markdownFormat:{content:Bh(b.instructions)}}),a.changeDetectorRef.detectChanges())})};$T.prototype.hasChanges=function(){return!mm(this.originalPlaybook,this.draftPlaybook)};
var rrd=function(a){return y(function(b){if(b.nextAddress==1)return a.hasChanges()?a.originalPlaybook?z(b,Wjd(a.playbookService,a.draftPlaybook),3):z(b,Ujd(a.playbookService,a.draftPlaybook),3):b.return();a.matDialogRef.close();a.isEditing=!1;ae(b)})},d9a=function(a){switch(a){case 0:return"All time";case 1:return"Last day";case 2:return"Last 7 days";case 3:return"Last 30 days";default:return wb(a)}};$T.\u0275fac=function(){var a;return function(b){return(a||(a=Fd($T)))(b||$T)}}();
$T.\u0275cmp=D({type:$T,selectors:[["b-playbook-dialog"]],standalone:!1,features:[Ef],decls:19,vars:3,consts:[["textarea",""],["statsSelector","matMenu"],["mat-dialog-title",""],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","matTooltip","Close","aria-label","Close",1,"pos-tr",3,"click"],["svgIcon","clear",1,"icon-s"],[1,"flex-kids-x","gap-l","full-height"],[1,"flex-kids-y","grow-1","gap-s"],[1,"uppercase","muted"],["cdkFocusInitial","","aria-label","Playbook instructions","placeholder",
"Move issues related to X to component Y.",1,"grow-1",3,"ngModel"],[1,"flex-kids-y","gap-s"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","aria-label","Save playbook","color","primary",3,"click","disabled"],["cdkFocusInitial","","aria-label","Playbook instructions","placeholder","Move issues related to X to component Y.",1,"grow-1",3,"ngModelChange","ngModel"],[1,"unset-background",3,"comment","formattingMode"],[1,"flex-kids-x"],["mat-button","",1,"align-self-flex-end","edit",
3,"click"],[1,"flex-kids-y","gap"],[3,"ngModelChange","ngModel"],[1,"flex-kids-x","gap","align-items-center"],["type","text","disabled","","aria-label","Playbook scope",1,"grow-1","rounded",3,"ngModel"],[1,"flex-kids-x","gap"],["aria-label","Agent mode",1,"flex-kids-x","gap",3,"ngModelChange","ngModel"],[3,"value"],[1,"flex-kids-x","gap","align-items-center","margin-top"],["type","button","mat-stroked-button","","color","primary",1,"small","gmat-button",3,"matMenuTriggerFor"],[1,"margin-xs-right"],
["name","arrow-dropdown","size","small"],["type","button","mat-menu-item",""],["mat-table","",3,"dataSource"],["matColumnDef","triageActions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","acceptanceRate"],["matColumnDef","accuracy"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["type","button","mat-menu-item","",3,"click"],["svgIcon","done",1,"icon-s"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",
""],["mat-row",""]],template:function(a,b){a&1&&(K(0,"div",2)(1,"div",3)(2,"h1"),Q(3,"Triage agent"),L(),K(4,"button",4),N("click",function(){return b.matDialogRef.close()}),M(5,"mat-icon",5),L()()(),K(6,"mat-dialog-content")(7,"div",6)(8,"div",7)(9,"h4",8),Q(10,"Playbook"),L(),F(11,a9a,2,1,"textarea",9)(12,c9a,4,1),L(),F(13,n9a,42,11,"div",10),L()(),K(14,"mat-dialog-actions",11)(15,"button",12),N("click",function(){return b.matDialogRef.close()}),Q(16,"Cancel"),L(),K(17,"button",13),N("click",function(){return rrd(b)}),
Q(18,"Save"),L()());a&2&&(B(11),G(b.isEditing?11:12),B(2),G(b.showSettings?13:-1),B(4),I("disabled",!b.hasChanges()))},dependencies:[Jy,qT,xj,fE,mE,kB,gB,iB,XA,ZA,YA,sT,fH,dH,iH,tT,uT,vT,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,nA],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}textarea[_ngcontent-%COMP%]{resize:none}h1[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%]     div.mat-mdc-dialog-title:before{height:0}[_nghost-%COMP%]     b-live-preview.unset-background .md-preview{background:unset}input[_ngcontent-%COMP%]{padding:4px 8px}b-live-preview[_ngcontent-%COMP%]{max-height:90%;overflow:scroll}.disclaimer[_ngcontent-%COMP%]{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;font-style:italic}"],
changeDetection:0});var aU=function(){this.matDialog=p(UA)};aU.prototype.open=function(a){return fe(SA(this.matDialog.open($T,{width:"80vw",height:"80vh",maxWidth:"1200px",maxHeight:"800px",data:{searchQuery:a}})))};aU.\u0275fac=function(a){return new (a||aU)};aU.\u0275prov=Dc({token:aU,factory:aU.\u0275fac,providedIn:"root"});var srd=function(a){this.allowExecution=a;this.queue=[]};srd.prototype.addTask=function(a){this.queue.push(a);trd(this)};var trd=function(a){if(a.queue.length!==0)if(a.allowExecution()){var b=m(a.queue),c=b.next().value;a.queue=hj(b);c();trd(a)}else setTimeout(function(){trd(a)},0)};var bU=function(){var a=this;this.location=p(hi);this.platformLocation=p(fy);this.activatedRoute=p(Lj);this.router=p(fF);this.scheduler=new srd(function(){return!Oc(a.router.navigationTransitions.currentNavigation)})};bU.prototype.hash=function(a,b){typeof a!=="undefined"&&urd(this,a!=null?a:"",b);var c;return(c=this.activatedRoute.snapshot.fragment)!=null?c:""};var urd=function(a,b,c){b=b===void 0?"":b;c=c===void 0?!1:c;a.addTask(function(){a.router.navigate([],{fragment:b,replaceUrl:c})})};
bU.prototype.path=function(a,b){typeof a!=="undefined"&&this.setPath(a,b);return this.getPath()};var vrd=function(a,b){a.path(b,!0)};h=bU.prototype;h.getPath=function(){var a=m(this.location.path().split("?")).next().value;return m(a.split("#")).next().value};h.setPath=function(a,b){var c=this;a=a===void 0?"":a;b=b===void 0?!1:b;this.addTask(function(){c.router.navigate([a],{replaceUrl:b,queryParamsHandling:"preserve"})});return this};
h.search=function(a,b,c){typeof a!=="undefined"&&this.setSearch(a,b,c);return this.getSearch()};h.getSearch=function(){return o9a(this.activatedRoute.snapshot.queryParamMap)};h.setSearch=function(a,b,c){var d=this;c=c===void 0?!1:c;this.addTask(function(){var e={};d.router.navigate([],{relativeTo:d.activatedRoute,queryParams:(e[a]=b,e),queryParamsHandling:"merge",replaceUrl:c})})};h.replaceUrl=function(a){return this.setUrl(a,!0)};
h.setUrl=function(a,b){var c=this;b=b===void 0?!1:b;return new Promise(function(d,e){c.addTask(function(){Ft(c.router,a,{replaceUrl:b}).then(d).catch(e)})})};h.getUrl=function(){return this.location.path(!0)};h.addTask=function(a){this.scheduler.addTask(a)};bU.\u0275fac=function(a){return new (a||bU)};bU.\u0275prov=Dc({token:bU,factory:bU.\u0275fac,providedIn:"root"});var cU=function(){this.ariaLabel="loading";this.SIZE_SMALL=16;this.SIZE_LARGE=36;this.DIAMETER_SMALL=2};cU.\u0275fac=function(a){return new (a||cU)};cU.\u0275cmp=D({type:cU,selectors:[["b-spinner"]],inputs:{large:"large",ariaLabel:"ariaLabel"},standalone:!1,decls:2,vars:2,consts:[[1,"large",3,"diameter"],[1,"small",3,"diameter","strokeWidth"]],template:function(a,b){a&1&&(F(0,p9a,1,2,"mat-spinner",0),F(1,q9a,1,3,"mat-spinner",1));a&2&&(G(b.large?0:-1),B(),G(b.large?-1:1))},dependencies:[qK,yI],styles:[".muted[_nghost-%COMP%]     .mat-mdc-progress-spinner circle, .muted[_nghost-%COMP%]     .mat-mdc-progress-spinner circle{stroke:rgba(0,0,0,.4)}[_nghost-%COMP%]     .mat-mdc-progress-spinner circle, [_nghost-%COMP%]     .mat-mdc-progress-spinner circle{stroke:var(--text-primary)}.large[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;margin-left:-18px;margin-top:-18px}[_nghost-%COMP%]{animation-delay:150ms;animation-duration:200ms;animation-name:_ngcontent-%COMP%_fade-in;animation-timing-function:linear;animation-fill-mode:both;display:inline-block;vertical-align:middle}[_nghost-%COMP%]     mat-spinner.small{margin-top:-2px}@keyframes _ngcontent-%COMP%_fade-in{0%{opacity:0}100%{opacity:1}}/*# sourceMappingURL=spinner.css.map */"]});var wrd={EMPTY:0,EXISTS:1,RUNNING:2,COMPLETE:3,0:"EMPTY",1:"EXISTS",2:"RUNNING",3:"COMPLETE"},dU=function(){var a=this;this.playbookService=p(dR);this.bLocation=p(bU);this.playbookDialogService=p(aU);this.appSearchState=p(rT);this.issueIds=[];this.PlaybookState=wrd;this.playbookState=0;this.searchQuery$=this.appSearchState.queryState$.pipe(A(function(b){return b.query||void 0}));this.playbook$=this.searchQuery$.pipe(yf(function(b){return b?Vjd(a.playbookService,b):ce(void 0)}))};
dU.prototype.ngOnInit=function(){var a=this;this.playbook$.subscribe(function(b){b&&(a.playbookState=1)})};var t9a=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,fe(a.playbook$),2);if(c.nextAddress!=3){b=c.yieldResult;if(!b)throw Error("He");a.playbookState=2;return z(c,$jd(a.playbookService,b,a.issueIds),3)}a.playbookState=3;ae(c)})};
dU.prototype.openDialog=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,fe(a.searchQuery$),2);b=c.yieldResult;a.playbookDialogService.open(b);ae(c)})};dU.\u0275fac=function(a){return new (a||dU)};
dU.\u0275cmp=D({type:dU,selectors:[["playbook-controls"]],inputs:{issueIds:"issueIds"},standalone:!1,decls:2,vars:1,consts:[["mat-button",""],["mat-button","",3,"click"],["svgIcon","edit-outline",1,"triage-rules","icon-m"],[1,"running"],["svgIcon","format_list_bulleted_spark_24px",1,"triage-rules","icon-m"]],template:function(a,b){a&1&&F(0,r9a,3,0,"button",0)(1,v9a,5,1);a&2&&G(b.playbookState===b.PlaybookState.EMPTY?0:1)},dependencies:[Jy,cU,kB,gB],styles:["[_nghost-%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}.mat-icon.triage-rules[_ngcontent-%COMP%]{height:unset;margin-right:4px}.running[_ngcontent-%COMP%]{display:inline-block;padding:4px;font-family:Google Sans,Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500;color:var(--text-muted);text-wrap:nowrap}"],
changeDetection:0});var xrd=function(){this.text="..."};xrd.\u0275fac=function(a){return new (a||xrd)};
xrd.\u0275cmp=D({type:xrd,selectors:[["ai-spinner"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("large",b.large)},inputs:{large:"large",text:"text"},standalone:!1,decls:2,vars:1,template:function(a,b){a&1&&(K(0,"label"),Q(1),L());a&2&&(B(),S(" ",b.text," "))},styles:["[_nghost-%COMP%]{padding:2px 6px}.large[_nghost-%COMP%]{line-height:42px;min-width:80px;padding-left:16px;padding-right:16px;text-align:center}[_nghost-%COMP%]{display:inline-block;border-radius:4px;padding-left:4px;padding-right:4px;-webkit-animation:_ngcontent-%COMP%_ai-shimmer 2.1s linear infinite;animation:_ngcontent-%COMP%_ai-shimmer 2.1s linear infinite;background:-webkit-linear-gradient(315deg,var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted),var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted)) 50%/800% 800%;background:linear-gradient(135deg,var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted),var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted)) 50%/800% 800%}@-webkit-keyframes _ngcontent-%COMP%_ai-shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}@keyframes _ngcontent-%COMP%_ai-shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}label[_ngcontent-%COMP%]{color:#0a0a0a;mix-blend-mode:color-burn}.dark-mode   [_nghost-%COMP%]     label{color:#e9e9e9;mix-blend-mode:color-dodge}\n/*# sourceMappingURL=ai_spinner.css.map */"],changeDetection:0});var eU=function(){};eU.\u0275fac=function(a){return new (a||eU)};eU.\u0275mod=$e({type:eU});eU.\u0275inj=Fc({imports:[WO,rK]});var yrd=function(){};yrd.\u0275fac=function(a){return new (a||yrd)};yrd.\u0275mod=$e({type:yrd});yrd.\u0275inj=Fc({imports:[Ly,eU,mB]});var fU=function(){this.prefs=p(hR);this.links=p(cS);this.change=new aQ;this.checked$=new Mj(!1);this.disabled$=new Mj(!1);this.mdHelpLink=this.links.session.isInternalSession()?"http://go/buganizer-markdown-quickstart":"https://commonmark.org/help/"},zrd=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return c=b.checked?"MARKDOWN":"PLAIN",z(d,ikd(a.prefs,c),2);a.change.emit(c);ae(d)})};
da.Object.defineProperties(fU.prototype,{initialValue:{configurable:!0,enumerable:!0,set:function(a){this.checked$.next(a==="MARKDOWN");this.disabled$.next(a==="LITERAL")}}});fU.\u0275fac=function(a){return new (a||fU)};
fU.\u0275cmp=D({type:fU,selectors:[["b-markdown-toggle"]],inputs:{initialValue:"initialValue"},outputs:{change:"change"},standalone:!1,decls:5,vars:7,consts:[["aria-label","Use markdown for this comment","matTooltip","Use Markdown for this comment",3,"change","checked","disabled"],["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&&(K(0,"mat-checkbox",
0),T(1,"async"),T(2,"async"),N("change",function(e){return zrd(b,e)}),Q(3," Markdown\n"),L(),F(4,w9a,2,2,"a",1));if(a&2){var c,d;I("checked",(c=U(1,3,b.checked$))!=null?c:!1)("disabled",(d=U(2,5,b.disabled$))!=null?d:!1);B(4);G(b.mdHelpLink?4:-1)}},dependencies:[kL,hI,Jy,kB,iB,vK,nA,Tx],encapsulation:2,changeDetection:0});var gU=function(){var a=this;this.errorHandler=p(pO);this.eventsForIssueFridge=p(NP);this.issueFullFridge=p(gQ);this.issueCommentsService=p(sS);this.issueInteractionsTracking=p(CS);this.butterBar=p(UN);this.editIssueService=p(GS);this.formattedCommentsForIssueFridge=p(PP);this.rawComment$=new qf;this.issueId="";this.commentNumber=0;this.rawComment="";var b=0;this.rawComment$.pipe(A(function(c){return{comment:c,id:b+=1}}),jf(800),ke(function(c){return a.doSave(c.comment,c.id)}),ue(function(c){return c===
b})).subscribe(function(){Ard(a)})};gU.prototype.ngOnDestroy=function(){this.rawComment$.complete()};gU.prototype.initialize=function(a,b){this.issueId=a;this.commentNumber=b};gU.prototype.pending=function(){var a,b;return(b=(a=this.savingState)==null?void 0:a.get("commentEdit"))!=null?b:!1};
gU.prototype.doSave=function(a,b){var c=this,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return Wd(g,2),z(g,c.issueCommentsService.update(c.issueId,(d=c.commentNumber)!=null?d:0,a,"MARKDOWN",""),4);case 4:dt(g,3);break;case 2:e=$d(g),rO(c.errorHandler,e),(f=c.savingState)==null||ES(f,"commentEdit");case 3:return g.return(b)}})};
var Ard=function(a){Rr(a.butterBar,"Comment edit successful.",4E3);a.eventsForIssueFridge.manualUpdate(a.issueId,function(c){c.events=TTa(c.events,a.commentNumber,{formattedComment:void 0,unlinkifiedComment:a.rawComment,formattingMode:"MARKDOWN"})});a.issueFullFridge.poke(a.issueId);a.formattedCommentsForIssueFridge.invalidate(a.issueId+"-"+a.commentNumber);a.eventsForIssueFridge.poke(a.issueId);var b;(b=a.savingState)==null||ES(b,"commentEdit")};gU.\u0275fac=function(a){return new (a||gU)};
gU.\u0275prov=Dc({token:gU,factory:gU.\u0275fac});var hU=function(){var a=p(hR);Z.call(this);var b=this;this.activeSession=p(uu);this.appEvents=p(UO);this.markdownCheckboxService=p(gU);this.init=new aQ;this.canEditComment=!1;this.formattedComment=null;this.FormattingMode=Um;this.activeSession.isInternalSession()&&a.commentDisplayOverride$.pipe(zf(this.destroyed$)).subscribe(function(c){b.formattingModeOverride=c})};Y(hU,Z);hU.\u0275dir=Z.\u0275dir;
hU.prototype.ngOnInit=function(){var a;this.markdownCheckboxService.initialize(this.issueId,(a=this.note.commentNumber)!=null?a:0)};
hU.prototype.ngOnChanges=function(a){if(a.note&&!this.markdownCheckboxService.pending()){this.rawComment=this.note.unlinkifiedComment||"";this.markdownCheckboxService.rawComment=this.rawComment;var b;this.formattedComment=(b=this.note.formattedComment)!=null?b:null}this.audience=this.issueAccessLevel&&this.issueAccessLevel==="INTERNAL"?"INTERNAL":"EXTERNAL";this.note.commentNumber&&(this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber)};
hU.prototype.ngAfterViewInit=function(){this.appEvents.commentRendered.next({issueId:this.issueId,commentNumber:this.note.commentNumber});this.init.next(this)};hU.\u0275fac=function(a){return new (a||hU)};
hU.\u0275cmp=D({type:hU,selectors:[["b-note-container"]],inputs:{note:"note",issueAccessLevel:"issueAccessLevel",formattingMode:"formattingMode",issueId:"issueId",canEditComment:"canEditComment"},outputs:{init:"init"},standalone:!1,features:[Gg([gU]),Ef,jx],decls:4,vars:1,consts:[[1,"bv2-note-container","bv2-event-note"],[1,"bv2-note-container-note"],[3,"formattedComment","canEditComment"],[3,"comment","issueId","audience","formattingMode","idPrefix"],[3,"checkboxChange","formattedComment","canEditComment"]],
template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),F(2,x9a,1,2,"b-formatted-comment-presenter",2)(3,y9a,1,5,"b-live-preview",3),L()());if(a&2){B(2);if(a=b.formattedComment)a=b.formattedComment,a=!a||b.formattingModeOverride?!1:a.literalFormat&&b.formattingMode==="LITERAL"||a.plainFormat&&b.formattingMode==="PLAIN"||a.markdownFormat&&b.formattingMode==="MARKDOWN"?!0:!1;G(a?2:3)}},dependencies:[pT,qT],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 iU=function(){};iU.\u0275fac=function(a){return new (a||iU)};iU.\u0275mod=$e({type:iU});iU.\u0275inj=Fc({imports:[WO,eT,TK]});var jU=function(){};jU.\u0275fac=function(a){return new (a||jU)};jU.\u0275mod=$e({type:jU});jU.\u0275inj=Fc({imports:[WO,TK,iU]});var Ur=function(a,b){this.char=a;this.modifiers=b};var Brd={category:"Edit Issue Page",keys:[Vr("r")],displayAs:"Shift+r",description:"Refresh"},Crd={category:"Issue List",keys:["u",Vr("r")],displayAs:"u / Shift+r",description:"Refresh search results"},Xr={ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE:{category:"Edit Issue Page",keys:[Vr("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_TO_P0:{category:"Issue Priority Picker",
keys:["0"],displayAs:"p - 0",description:"Mark issue as priority P0"},CHANGE_ISSUE_PRIORITY_TO_P1:{category:"Issue Priority Picker",keys:["1"],displayAs:"p - 1",description:"Mark issue as priority P1"},CHANGE_ISSUE_PRIORITY_TO_P2:{category:"Issue Priority Picker",keys:["2"],displayAs:"p - 2",description:"Mark issue as priority P2"},CHANGE_ISSUE_PRIORITY_TO_P3:{category:"Issue Priority Picker",keys:["3"],displayAs:"p - 3",description:"Mark issue as priority P3"},CHANGE_ISSUE_PRIORITY_TO_P4:{category:"Issue Priority Picker",
keys:["4"],displayAs:"p - 4",description:"Mark issue as priority P4"},CHANGE_ISSUE_STATUS_TO_ACCEPTED:{category:"Issue Status Picker",keys:["p"],displayAs:"t - p",description:'Change issue status to "In progress (Accepted)"'},CHANGE_ISSUE_STATUS_TO_ASSIGNED:{category:"Issue Status Picker",keys:["a"],displayAs:"t - a",description:'Change issue status to "Assigned"'},CHANGE_ISSUE_STATUS_TO_DUPLICATE:{category:"Issue Status Picker",keys:["d"],displayAs:"t - d",description:'Change issue status to "Duplicate"'},
CHANGE_ISSUE_STATUS_TO_FIXED:{category:"Issue Status Picker",keys:["f"],displayAs:"t - f",description:'Change issue status "Fixed"'},CHANGE_ISSUE_STATUS_TO_INACTIVE:{category:"Issue Status Picker",keys:["s"],displayAs:"t - s",description:'Change issue status to "Inactive"'},CHANGE_ISSUE_STATUS_TO_INFEASIBLE:{category:"Issue Status Picker",keys:["i"],displayAs:"t - i",description:'Change issue status to "Won\'t fix (Infeasible)"'},CHANGE_ISSUE_STATUS_TO_INTENDED_BEHAVIOR:{category:"Issue Status Picker",
keys:["w"],displayAs:"t - w",description:'Change issue status to "Won\'t fix (Intended behavior)"'},CHANGE_ISSUE_STATUS_TO_NEW:{category:"Issue Status Picker",keys:["n"],displayAs:"t - n",description:'Change issue status to "New"'},CHANGE_ISSUE_STATUS_TO_NOT_REPRODUCIBLE:{category:"Issue Status Picker",keys:["r"],displayAs:"t - r",description:'Change issue status to "Won\'t fix (Not reproducible)"'},CHANGE_ISSUE_STATUS_TO_OBSOLETE:{category:"Issue Status Picker",keys:["o"],displayAs:"t - o",description:'Change issue status to "Won\'t fix (Obsolete)"'},
CHANGE_ISSUE_STATUS_TO_VERIFIED:{category:"Issue Status Picker",keys:["v"],displayAs:"t - v",description:'Change issue status to "Fixed (Verified)"'},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","l"],displayAs:"i, l",description:"Highlight issue ID"},OPEN_HOTLIST_PICKER:{category:"Edit Issue Page",keys:["h"],displayAs:"h",
description:"Edit hotlists"},OPEN_ISSUE_ACCESS_LIMITS_DIALOG:{category:"Edit Issue Page",keys:["m"],displayAs:"m",description:"Manage issue access limits"},OPEN_ISSUE_PRIORITY_MENU:{category:"Edit Issue Page",keys:["p"],displayAs:"p <n>",description:"Mark issue as priority [0-4]"},OPEN_ISSUE_STATUS_MENU:{category:"Edit Issue Page",keys:["t"],displayAs:"t",description:"Opens the menu to change the issue status"},REFRESH_ISSUE:Brd,REFRESH_ISSUE_LIST:Crd,TOGGLE_LEFT_SIDEBAR:{category:"General",keys:["<"],
displayAs:"<",description:"Toggle left sidebar"},TOGGLE_MARK_AS_DUPLICATE:{category:"Edit Issue Page",keys:["d"],displayAs:"d",description:"Mark/unmark issue as duplicate"},TOGGLE_RIGHT_SIDEBAR:{category:"General",keys:[">"],displayAs:">",description:"Toggle right sidebar"},TOGGLE_STAR:{category:"Edit Issue Page",keys:["s"],displayAs:"s",description:"Star/Unstar this issue"}};/*

 Copyright 2016 Craig Campbell

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

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

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

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

 @version 1.6.0
 @url craig.is/killing/mice
*/
(function(a,b,c){function d(J,O,R){J.addEventListener?J.addEventListener(O,R,!1):J.attachEvent("on"+O,R)}function e(J){if("keypress"==J.type){var O=String.fromCharCode(J.which);J.shiftKey||(O=O.toLowerCase());return O}return r[J.which]?r[J.which]:w[J.which]?w[J.which]:String.fromCharCode(J.which).toLowerCase()}function f(J){return"shift"==J||"ctrl"==J||"alt"==J||"meta"==J}function g(J,O){var R,V=[];"+"===J?J=["+"]:(J=J.replace(/\+{2}/g,"+plus"),J=J.split("+"));for(R=0;R<J.length;++R){var ca=J[R];
C[ca]&&(ca=C[ca]);O&&"keypress"!=O&&x[ca]&&(ca=x[ca],V.push("shift"));f(ca)&&V.push(ca)}J=ca;R=O;if(!R){if(!H){H={};for(var na in r)95<na&&112>na||r.hasOwnProperty(na)&&(H[r[na]]=na)}R=H[J]?"keydown":"keypress"}"keypress"==R&&V.length&&(R="keydown");return{key:ca,modifiers:V,action:R}}function k(J,O){return null===J||J===b?!1:J===O?!0:k(J.parentNode,O)}function l(J){function O(bb){bb=bb||{};var ub=!1,Wb;for(Wb in Ga)bb[Wb]?ub=!0:Ga[Wb]=0;ub||(Qa=!1)}function R(bb,ub,Wb,lc,fc,pc){var rb,Ob,ib=[],$b=
Wb.type;if(!ia._callbacks[bb])return[];"keyup"==$b&&f(bb)&&(ub=[bb]);for(rb=0;rb<ia._callbacks[bb].length;++rb)if(Ob=ia._callbacks[bb][rb],(lc||!Ob.seq||Ga[Ob.seq]==Ob.level)&&$b==Ob.action){var rc;(rc="keypress"==$b&&!Wb.metaKey&&!Wb.ctrlKey)||(rc=Ob.modifiers,rc=ub.sort().join(",")===rc.sort().join(","));rc&&(rc=lc&&Ob.seq==lc&&Ob.level==pc,(!lc&&Ob.combo==fc||rc)&&ia._callbacks[bb].splice(rb,1),ib.push(Ob))}return ib}function V(bb,ub,Wb,lc){ia.stopCallback(ub,ub.target||ub.srcElement,Wb,lc)||!1!==
bb(ub,Wb)||(ub.preventDefault?ub.preventDefault():ub.returnValue=!1,ub.stopPropagation?ub.stopPropagation():ub.cancelBubble=!0)}function ca(bb){"number"!==typeof bb.which&&(bb.which=bb.keyCode);var ub=e(bb);if(ub)if("keyup"==bb.type&&sa===ub)sa=!1;else{var Wb=ia,lc=Wb.handleKey,fc=[];bb.shiftKey&&fc.push("shift");bb.altKey&&fc.push("alt");bb.ctrlKey&&fc.push("ctrl");bb.metaKey&&fc.push("meta");lc.call(Wb,ub,fc,bb)}}function na(bb,ub,Wb,lc){function fc(ib){return function(){Qa=ib;++Ga[bb];clearTimeout(ha);
ha=setTimeout(O,1E3)}}function pc(ib){V(Wb,ib,bb);"keyup"!==lc&&(sa=e(ib));setTimeout(O,10)}for(var rb=Ga[bb]=0;rb<ub.length;++rb){var Ob=rb+1===ub.length?pc:fc(lc||g(ub[rb+1]).action);ua(ub[rb],Ob,lc,bb,rb)}}function ua(bb,ub,Wb,lc,fc){ia._directMap[bb+":"+Wb]=ub;bb=bb.replace(/\s+/g," ");var pc=bb.split(" ");1<pc.length?na(bb,pc,ub,Wb):(Wb=g(bb,Wb),ia._callbacks[Wb.key]=ia._callbacks[Wb.key]||[],R(Wb.key,Wb.modifiers,{type:Wb.action},lc,bb,fc),ia._callbacks[Wb.key][lc?"unshift":"push"]({callback:ub,
modifiers:Wb.modifiers,action:Wb.action,seq:lc,level:fc,combo:bb}))}var ia=this;J=J||b;if(!(ia instanceof l))return new l(J);ia.target=J;ia._callbacks={};ia._directMap={};var Ga={},ha,sa=!1,xa=!1,Qa=!1;ia._handleKey=function(bb,ub,Wb){var lc=R(bb,ub,Wb),fc;ub={};var pc=0,rb=!1;for(fc=0;fc<lc.length;++fc)lc[fc].seq&&(pc=Math.max(pc,lc[fc].level));for(fc=0;fc<lc.length;++fc)lc[fc].seq?lc[fc].level==pc&&(rb=!0,ub[lc[fc].seq]=1,V(lc[fc].callback,Wb,lc[fc].combo,lc[fc].seq)):rb||V(lc[fc].callback,Wb,lc[fc].combo);
lc="keypress"==Wb.type&&xa;Wb.type!=Qa||f(bb)||lc||O(ub);xa=rb&&"keydown"==Wb.type};ia._bindMultiple=function(bb,ub,Wb){for(var lc=0;lc<bb.length;++lc)ua(bb[lc],ub,Wb)};d(J,"keypress",ca);d(J,"keydown",ca);d(J,"keyup",ca)}if(a){var r={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"},w={106:"*",107:"+",109:"-",110:".",
111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},x={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},C={option:"alt",command:"meta","return":"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},H;for(c=1;20>c;++c)r[111+c]="f"+c;for(c=0;9>=c;++c)r[c+96]=c;l.prototype.bind=function(J,O,R){J=J instanceof Array?
J:[J];this._bindMultiple.call(this,J,O,R);return this};l.prototype.unbind=function(J,O){return this.bind.call(this,J,function(){},O)};l.prototype.trigger=function(J,O){if(this._directMap[J+":"+O])this._directMap[J+":"+O]({},J);return this};l.prototype.reset=function(){this._callbacks={};this._directMap={};return this};l.prototype.stopCallback=function(J,O){return-1<(" "+O.className+" ").indexOf(" mousetrap ")||k(O,this.target)?!1:"INPUT"==O.tagName||"SELECT"==O.tagName||"TEXTAREA"==O.tagName||O.isContentEditable};
l.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};l.addKeycodes=function(J){for(var O in J)J.hasOwnProperty(O)&&(r[O]=J[O]);H=null};l.init=function(){var J=l(b),O;for(O in J)"_"!==O.charAt(0)&&(l[O]=function(R){return function(){return J[R].apply(J,arguments)}}(O))};l.init();a.Mousetrap=l;"undefined"!==typeof module&&module.exports&&(module.exports=l);"function"===typeof define&&define.amd&&define(function(){return l})}})("undefined"!==typeof window?window:null,"undefined"!==
typeof window?document:null);/*

 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 Drd=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||""};
da.Object.defineProperties(Drd.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++)e[f]==="mod"&&(window.navigator&&window.navigator.platform.indexOf("Mac")>=0?e[f]="command":e[f]="ctrl"),e[f]=d[e[f]]||e[f];a[c]=e.join(" + ")}this._formatted=
a}return this._formatted}}});var Erd=new dd("HotkeyOptions");var kU=function(a){this.options=a;this.hotkeys=[];this.pausedHotkeys=[];this.cheatSheetToggle=new qf;this.preventIn=["INPUT","SELECT","TEXTAREA"];Mousetrap.prototype.stopCallback=function(b,c){return(" "+c.className+" ").indexOf(" mousetrap ")>-1?!1:c.contentEditable&&c.contentEditable==="true"};this.mousetrap=new Mousetrap;this.options.disableCheatSheet||this.add(new Drd(this.options.cheatSheetHotkey||"?",function(){this.cheatSheetToggle.next()}.bind(this),[],this.options.cheatSheetDescription||
"Show / hide this help menu"));this.options.cheatSheetCloseEsc&&this.add(new Drd("esc",function(){this.cheatSheetToggle.next(!1)}.bind(this),["HOTKEYS-CHEATSHEET"],this.options.cheatSheetCloseEscDescription||"Hide this help menu"))};h=kU.prototype;
h.add=function(a,b){var c=this;if(Array.isArray(a)){for(var d=[],e=m(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(g,k){var l=!0;if(g){var r=g.target,w=r.nodeName.toUpperCase();(" "+r.className+" ").indexOf(" mousetrap ")>-1?l=!0:c.preventIn.indexOf(w)>-1&&a.allowIn.map(function(x){return x.toUpperCase()}).indexOf(w)===-1&&(l=!1)}if(l)return a.callback.apply(c,[g,k])},b);return a};
h.remove=function(a){var b=[];if(!a){a=m(this.hotkeys);for(var c=a.next();!c.done;c=a.next())b.push(this.remove(c.value));return b}if(Array.isArray(a)){a=m(a);for(c=a.next();!c.done;c=a.next())b.push(this.remove(c.value));return b}b=this.hotkeys.indexOf(a);return b>-1?(this.hotkeys.splice(b,1),this.mousetrap.unbind(a.combo),a):null};
h.get=function(a){if(!a)return this.hotkeys;if(Array.isArray(a)){var b=[];a=m(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(this.hotkeys[b].combo.indexOf(a)>-1)return this.hotkeys[b];return null};h.pause=function(a){if(!a)return this.pause(this.hotkeys);if(Array.isArray(a)){var b=[];a=m(a.slice());for(var c=a.next();!c.done;c=a.next())b.push(this.pause(c.value));return b}this.remove(a);this.pausedHotkeys.push(a);return a};
h.unpause=function(a){if(!a)return this.unpause(this.pausedHotkeys);if(Array.isArray(a)){var b=[];a=m(a.slice());for(var c=a.next();!c.done;c=a.next())b.push(this.unpause(c.value));return b}b=this.pausedHotkeys.indexOf(a);return b>-1?(this.add(a),this.pausedHotkeys.splice(b,1)):null};h.reset=function(){this.mousetrap.reset()};kU.\u0275fac=function(a){return new (a||kU)(Xc(Erd))};kU.\u0275prov=Dc({token:kU,factory:kU.\u0275fac});var Frd=function(){};Frd.\u0275fac=function(a){return new (a||Frd)};Frd.\u0275mod=$e({type:Frd});Frd.\u0275inj=Fc({imports:[by]});var Grd;var Hrd="combobox grid group listbox menu menubar radiogroup row rowgroup tablist textbox toolbar tree treegrid".split(" "),Ird=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},lU=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;c===""||c==void 0?(Grd||(c={},Grd=(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=Grd,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)},Jrd=function(a,b){a=a.getAttribute("aria-"+b);return a==null||a==void 0?"":String(a)},mU=function(a,b){var c="";b&&(c=b.id);lU(a,"activedescendant",c)},Krd=function(a,b){lU(a,"label",b)};var nU=function(){var a=p(dQ),b=p(hR);Z.call(this);var c=this;this.rawHotkeysService=p(kU);this.ngZone=p(Rg);this.enabled=!0;this.paused=!1;this.hotkeyGroups=new Map;b.keyboardPrefs$.pipe(zf(this.destroyed$)).subscribe(function(d){d&&(c.enabled=!!d.enableAllHotkeys)});a.routeChangeStart.pipe(zf(this.destroyed$)).subscribe(function(){c.unpause()});this.rawHotkeysService.mousetrap.stopCallback=function(d,e){if(!c.enabled||c.paused)e=!0;else if((" "+e.className+" ").includes(" mousetrap ")||e.classList.contains("has-hotkey"))e=
!1;else{if(d=e.getAttribute)d=e.getAttribute("role")||null,d=Ka(Hrd,d);e=d||e.contentEditable==="true"||e.tagName==="INPUT"&&e.type==="text"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"||Lrd(e)?!0:!1}return e};this.destroyed$.subscribe(function(){Mrd(c)})};Y(nU,Z);nU.\u0275dir=Z.\u0275dir;nU.prototype.isEnabled=function(){return this.enabled};nU.prototype.isPaused=function(){return this.paused};
var oU=function(a,b){var c=b.title;var d=b.hotkeys;var e;b=(e=a.hotkeyGroups.get(c))!=null?e:[];a.hotkeyGroups.set(c,[].concat(q(b),q(d)));Nrd(a);return function(){var f=new Set(d.map(function(l){return l.onPress})),g,k=((g=a.hotkeyGroups.get(c))!=null?g:[]).filter(function(l){return!f.has(l.onPress)});k.length?a.hotkeyGroups.set(c,k):a.hotkeyGroups.delete(c);Nrd(a)}},Mrd=function(a){var b=[].concat(q(a.rawHotkeysService.hotkeys));b=m(b);for(var c=b.next();!c.done;c=b.next())a.rawHotkeysService.remove(c.value);
a.rawHotkeysService.reset()},Nrd=function(a){Mrd(a);for(var b=m(a.hotkeyGroups.values()),c=b.next();!c.done;c=b.next()){c=Ord(a,c.value);c=m(c);for(var d=c.next(),e={};!d.done;e={binding$jscomp$9:void 0},d=c.next())e.binding$jscomp$9=d.value,d=new Drd(D9a(e.binding$jscomp$9.key),function(f){return function(g){a.ngZone.run(function(){f.binding$jscomp$9.command()});g.stopPropagation();return!1}}(e),e.binding$jscomp$9.allowIn),a.rawHotkeysService.add(d)}},Lrd=function(a){return[].concat(q(document.getElementsByClassName("cdk-overlay-pane"))).filter(function(b){return b.style.position===
"static"}).some(function(b){return b.contains(a)})},Ord=function(a,b){var c=[];b=m(b);for(var d=b.next(),e={};!d.done;e={hotkeySpec:void 0},d=b.next()){e.hotkeySpec=d.value;d=m(e.hotkeySpec.keys.entries());for(var f=d.next(),g={};!f.done;g={index$jscomp$5699:void 0},f=d.next()){var k=m(f.value);f=k.next().value;k=k.next().value;g.index$jscomp$5699=f;c.push(new Prd(k,function(l,r){return function(){a.ngZone.run(function(){l.hotkeySpec.onPress(r.index$jscomp$5699)})}}(e,g),e.hotkeySpec.allowIn))}}Eba(c,
function(l,r){return l.strokeLength>r.strokeLength?-1:l.strokeLength<r.strokeLength?1:0});return c};nU.prototype.pause=function(){this.paused=!0};nU.prototype.unpause=function(){this.paused=!1};var Qrd=function(a){return[].concat(q(a.hotkeyGroups.entries())).map(function(b){var c=m(b);b=c.next().value;c=c.next().value;return{title:b,hotkeys:sq(c,E9a)}})};nU.\u0275fac=function(a){return new (a||nU)};nU.\u0275prov=Dc({token:nU,factory:nU.\u0275fac,providedIn:"root"});
var Prd=function(a,b,c){c=c===void 0?[]:c;this.key=a;this.command=b;this.allowIn=c;a instanceof Array&&(this.strokeLength=a.length);this.strokeLength=1};var pU=function(){Z.apply(this,arguments);this.hotkeys=p(nU);this.tooltip=p(nA,{optional:!0});this.hotkeyEnabled=!0;this.onHotkey=new aQ};Y(pU,Z);pU.prototype.ngOnChanges=function(a){if("matTooltip"in a&&this.tooltip&&this.hotkeyEnabled&&this.hotkey){var b;a=(b=this.hotkey.displayAs)!=null?b:this.hotkey.keys.join("+");this.tooltip.message=this.matTooltip+" (Shortcut: "+a+")"}};
pU.prototype.ngOnInit=function(){var a=this;this.hotkey&&this.hotkeyEnabled&&this.subscriptions.add(oU(this.hotkeys,{title:this.hotkey.category,hotkeys:[Object.assign({},this.hotkey,{onPress:function(b){a.onHotkey.next(b)}})]}))};pU.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(pU)))(b||pU)}}();
pU.\u0275dir=af({type:pU,selectors:[["","hotkey",""]],hostVars:2,hostBindings:function(a,b){a&2&&wg("has-hotkey",b.hotkey)},inputs:{hotkey:"hotkey",hotkeyEnabled:"hotkeyEnabled",matTooltip:"matTooltip"},outputs:{onHotkey:"onHotkey"},standalone:!1,features:[Ef,jx]});var qU=function(){};qU.\u0275fac=function(a){return new (a||qU)};qU.\u0275mod=$e({type:qU});qU.\u0275inj=Fc({});var rU=function(){this.segments=[];this.clickMain=new aQ;this.clickSegment=new aQ};rU.prototype.ngOnInit=function(){};da.Object.defineProperties(rU.prototype,{showMoreButton:{configurable:!0,enumerable:!0,get:function(){return this.segments.length>0}}});rU.\u0275fac=function(a){return new (a||rU)};
rU.\u0275cmp=D({type:rU,selectors:[["b-fab-segmented"]],inputs:{label:"label",icon:"icon",segments:"segments",href:"href"},outputs:{clickMain:"clickMain",clickSegment:"clickSegment"},standalone:!1,decls:5,vars:6,consts:[["createMenu","matMenu"],[1,"shrink-wrap"],["mat-button","","role","button",1,"main","button-xl",3,"click"],[1,"icon-xl",3,"svgIcon"],["type","button","mat-button","","aria-label","More options",1,"more","button-xl","square-left",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown"],
["mat-menu-item","",3,"href"],["mat-menu-item","",3,"click","href"]],template:function(a,b){a&1&&(K(0,"span",1)(1,"a",2),N("click",function(){return b.clickMain.emit(b.label)}),M(2,"mat-icon",3),Q(3),L(),F(4,I9a,6,1),L());a&2&&(B(),wg("square-right",b.showMoreButton),If("href",b.href||void 0,Ne),B(),I("svgIcon",b.icon),B(),S(" ",b.label," "),B(),G(b.showMoreButton?4:-1))},dependencies:[Jy,kB,gB,VJ,fH,dH,iH],styles:["a.gmat-mdc-button.mat-mdc-button[_ngcontent-%COMP%]:not([disabled]){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;-webkit-transition:box-shadow .2s ease-in-out;transition:box-shadow .2s ease-in-out;background-color:#fff;background-color:var(--fab-button-bg);box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 1px 3px 1px rgba(0,0,0,.15)}.shrink-wrap[_ngcontent-%COMP%]:hover{box-shadow:0 1px 3px 0 rgba(0,0,0,.3),0 4px 8px 3px rgba(0,0,0,.15)}.mat-mdc-button[_ngcontent-%COMP%]{border-radius:24px}.mat-mdc-button[_ngcontent-%COMP%]   mat-icon.icon-xl[_ngcontent-%COMP%]{--mat-button-text-icon-spacing:4px;height:36px;width:36px}.main[_ngcontent-%COMP%]{padding-left:10px;padding-right:24px}.main.square-right[_ngcontent-%COMP%]{padding-right:8px}.gmat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]{--mat-button-text-state-layer-color:var(--base-fg)}.gmat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]:focus, .gmat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]:hover{color:#202124;color:var(--text-default);--private-gmat-button-text-stateful-color:var(--text-default)}.gmat-mdc-button.mat-mdc-button.more[_ngcontent-%COMP%]{padding-right:10px;padding-left:4px;min-width:0;color:#80868b;color:var(--gfx-muted)}.gmat-mdc-button.mat-mdc-button.more[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{line-height:24px;height:24px;width:24px;--mat-button-text-icon-spacing:0px}.more[_ngcontent-%COMP%]{-webkit-transition:border .2s ease-in-out;transition:border .2s ease-in-out;border-left:1px solid transparent}.shrink-wrap[_ngcontent-%COMP%]:hover   .more[_ngcontent-%COMP%]{border-left:1px solid;border-left-color:#dadce0;border-left-color:var(--divider)}\n/*# sourceMappingURL=fab_segmented.css.map */"]});var Rrd=function(a,b){return b.value},Srd=function(){this.choices=[];this.value="";this.valueChange=new aQ};Srd.\u0275fac=function(a){return new (a||Srd)};
Srd.\u0275cmp=D({type:Srd,selectors:[["button-toggle"]],inputs:{choices:"choices",value:"value"},outputs:{valueChange:"valueChange"},standalone:!1,decls:2,vars:0,consts:[["type","button","mat-button","","color","primary","role","radio",1,"medium",3,"disableRipple","matTooltip"],["type","button","mat-button","","color","primary","role","radio",1,"medium",3,"click","disableRipple","matTooltip"],[1,"icon-s",3,"svgIcon"]],template:function(a,b){a&1&&Nf(0,K9a,3,5,"button",0,Rrd);a&2&&Of(b.choices)},dependencies:[Jy,
kB,gB,vK,nA],styles:["[_nghost-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;border-radius:4px;box-shadow:inset 0 0 0 1px #dadce0;box-shadow:inset 0 0 0 1px var(--divider)}button[_ngcontent-%COMP%]   .icon-s[_ngcontent-%COMP%]{margin-top:-6px}.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[_ngcontent-%COMP%]{min-width:24px}.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[aria-checked=true][_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);color:#fff;color:var(--text-inverse)}.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[_ngcontent-%COMP%]{border-radius:0;padding:0 8px;box-shadow:1px 0 0 0 #dadce0;box-shadow:1px 0 0 0 var(--divider)}.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[_ngcontent-%COMP%]:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px;padding-left:12px}.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[_ngcontent-%COMP%]:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px;padding-right:12px}.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[_ngcontent-%COMP%]:last-of-type, .gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[aria-checked=true][_ngcontent-%COMP%]{box-shadow:none}\n/*# sourceMappingURL=button_toggle.css.map */"]});var Trd=[rU,Srd],sU=function(){};sU.\u0275fac=function(a){return new (a||sU)};sU.\u0275mod=$e({type:sU});sU.\u0275inj=Fc({imports:[WO,mB,WJ,wK]});var Urd=function(){};Urd.prototype.onPressBack=function(){var a;(a=window.history)==null||a.back()};Urd.\u0275fac=function(a){return new (a||Urd)};
Urd.\u0275cmp=D({type:Urd,selectors:[["empty-toolbar"]],standalone:!1,decls:3,vars:0,consts:[[1,"button-bar","flex-kids-x","align-items-center","border-bottom","padded-s"],["type","button","mat-icon-button","","color","primary","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward"]],template:function(a,b){a&1&&(K(0,"section",0)(1,"button",1),N("click",function(){return b.onPressBack()}),M(2,"mat-icon",2),L()())},dependencies:[Jy,kB,iB,vK,nA],styles:[".button-bar[_ngcontent-%COMP%] {\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var tU=function(){Z.call(this);this.templateRef=p(dg);this.viewContainer=p(eg);this.cdr=p(Cx);this.isViewInitialized=!1;this.viewContainer.createEmbeddedView(this.templateRef)};Y(tU,Z);tU.prototype.ngAfterViewInit=function(){this.isViewInitialized=!0};
da.Object.defineProperties(tU.prototype,{refreshable:{configurable:!0,enumerable:!0,set:function(a){var b=this;a.pipe(zf(this.destroyed$)).subscribe(function(){b.isViewInitialized&&(b.viewContainer.clear(),b.viewContainer.createEmbeddedView(b.templateRef),b.cdr.detectChanges())})}}});tU.\u0275fac=function(a){return new (a||tU)};tU.\u0275dir=af({type:tU,selectors:[["","refreshable",""]],inputs:{refreshable:"refreshable"},standalone:!1,features:[Ef]});var uU=function(){var a=this;this.cdr=p(bQ,{self:!0});this.events=p(UO);this.ngZone=p(Rg);this.HOTKEYS=Xr;this.lastOpenPosition=this.width=220;this.direction="ltr";this.maxWidth=700;this.widthChanged=new aQ;this.widthAtDragStart=this.width;this.startDragging=function(b){a.dragStart=b;a.widthAtDragStart=a.width};this.minSnapWidth=185;this.onMousemove=function(b){if(a.isDragging)a.onDrag(b.pageX)};this.onMouseup=function(){a.dragStart=void 0;a.cdr.markForCheck()};this.broadcastWidthChange=QB(function(b){a.widthChanged.emit(b);
a.events.sidebarWidthChanged.next(b)},400);this.trackKeyboardResizing=QB(function(){dr("sidebar","resizeKeyboard")},2E3)};uU.prototype.ngOnInit=function(){var a=this;this.ngZone.runOutsideAngular(function(){document.addEventListener("mousemove",a.onMousemove)});document.addEventListener("mouseup",this.onMouseup,!0)};uU.prototype.ngOnDestroy=function(){document.removeEventListener("mousemove",this.onMousemove);document.removeEventListener("mouseup",this.onMouseup,!0)};
uU.prototype.onDrag=function(a){this.setWidth(this.widthAtDragStart+(a-(this.dragStart||0))*(this.isLTR?1:-1));this.cdr.markForCheck()};var M9a=function(a,b){var c=a.width+b;c<a.minSnapWidth&&(c=b<0?0:a.minSnapWidth);a.setWidth(c);a.trackKeyboardResizing()};uU.prototype.toggle=function(){this.setWidth(this.isClosed?this.lastOpenPosition:0)};
uU.prototype.setWidth=function(a){var b=this.minSnapWidth,c=this.maxWidth;a=a<90?20:a<b?b:Math.min(a,c===void 0?700:c);a>=this.minSnapWidth&&(this.lastOpenPosition=a);this.width=a;this.broadcastWidthChange(a);this.cdr.markForCheck()};
da.Object.defineProperties(uU.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);a==="open"?b=this.lastOpenPosition:Number.isNaN(b)&&(b=220);this.setWidth(b)}},isLTR:{configurable:!0,enumerable:!0,get:function(){return this.direction==="ltr"}},isClosed:{configurable:!0,
enumerable:!0,get:function(){return this.width<this.minSnapWidth}},isDragging:{configurable:!0,enumerable:!0,get:function(){return this.dragStart!=null}}});uU.\u0275fac=function(a){return new (a||uU)};
uU.\u0275cmp=D({type:uU,selectors:[["b-resizable-sidebar"]],hostVars:2,hostBindings:function(a,b){a&2&&xg(b.direction)},inputs:{minWidth:"minWidth",direction:"direction",size:"size",maxWidth:"maxWidth"},outputs:{widthChanged:"widthChanged"},standalone:!1,features:[Gg([bQ])],ngContentSelectors:["*"],decls:5,vars:11,consts:[["cdkScrollable","",1,"inner"],[1,"content"],["type","button","mat-icon-button","","aria-label","Open Sidebar","matTooltip","Open Sidebar",1,"openSidebarButton","xs",3,"class","isClosed",
"hotkey"],["tabindex","0","role","slider","aria-label","Resize side navigation bar","aria-orientation","horizontal",1,"resizeHandle",3,"hotkey"],["type","button","mat-icon-button","","aria-label","Open Sidebar","matTooltip","Open Sidebar",1,"openSidebarButton","xs",3,"click","onHotkey","hotkey"],[3,"svgIcon"],["tabindex","0","role","slider","aria-label","Resize side navigation bar","aria-orientation","horizontal",1,"resizeHandle",3,"onHotkey","mousedown","keyup.arrowleft","keyup.arrowright","keyup.space",
"keyup.enter","dblclick","hotkey"]],template:function(a,b){a&1&&(bg(),K(0,"div",0)(1,"div",1),cg(2),L(),F(3,L9a,2,6,"button",2)(4,N9a,1,3,"div",3),L());a&2&&(xg(b.direction),vg("width",b.width+"px"),wg("isDragging",b.isDragging)("isClosed",b.isClosed),B(),vg("width",b.lastOpenPosition+"px"),B(2),G(b.isClosed?3:4))},dependencies:[Jy,pU,kB,iB,vK,nA,wz],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}.openSidebarButton[_ngcontent-%COMP%]{z-index:2;position:absolute;bottom:0;top:0;margin:auto;transform:rotateZ(180deg)}.openSidebarButton.ltr[_ngcontent-%COMP%]{right:0}.openSidebarButton.rtl[_ngcontent-%COMP%]{left:0}.resizeHandle[_ngcontent-%COMP%]:hover, .resizeHandle[_ngcontent-%COMP%]:focus, .isClosed[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 1px 50%}.resizeHandle[_ngcontent-%COMP%]:hover, .resizeHandle[_ngcontent-%COMP%]:focus{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}/*# sourceMappingURL=resizable_sidebar.css.map */'],
changeDetection:0});var Vrd=new dd("intersectionObserverFactory",{factory:function(){return function(a,b){return new IntersectionObserver(a,b)}}}),Wrd=new dd("isScrolledOnScreen",{factory:function(){return{fully:O9a,partially:P9a}}}),vU=function(){this.intersectionObserverBuilder=p(Vrd);this.isScrolledOnScreen=p(Wrd)};vU.prototype.getObservable=function(a,b){b=b===void 0?!1:b;return window.IntersectionObserver!=null?Q9a(a,this.intersectionObserverBuilder,this.isScrolledOnScreen,b):R9a(a,this.isScrolledOnScreen,b)};
var Xrd=function(a,b,c){var d=c===void 0?{}:c;c=d.emitOnPartial===void 0?!1:d.emitOnPartial;var e=d.durationOnScreenMs===void 0?0:d.durationOnScreenMs;d={cumulativeTime:0,wasPreviouslyOnScreen:!1,lastTimestamp:Date.now()};return a.getObservable(b,c).pipe(xla(function(f,g){return{cumulativeTime:f.cumulativeTime+(f.wasPreviouslyOnScreen?Date.now()-f.lastTimestamp:0),wasPreviouslyOnScreen:g,lastTimestamp:Date.now()}},d),yf(function(f){if(e===0&&f.wasPreviouslyOnScreen)return ce(void 0);var g=e-f.cumulativeTime;
return g<0?ce(void 0):f.wasPreviouslyOnScreen?ce(void 0).pipe(mf(g)):rx}),A(function(){}),lf(1))};vU.\u0275fac=function(a){return new (a||vU)};vU.\u0275prov=Dc({token:vU,factory:vU.\u0275fac,providedIn:"root"});var wU=function(){};wU.prototype.onClick=function(a,b){Yrd(b)&&a.preventDefault()};var Yrd=function(a){if(window.getSelection){var b=window.getSelection();if(b&&!b.isCollapsed&&a.contains(b.focusNode))return!0}return!1};wU.\u0275fac=function(a){return new (a||wU)};wU.\u0275dir=af({type:wU,selectors:[["","selectionPreventsClick",""]],hostBindings:function(a,b){a&1&&N("click",function(c){return b.onClick(c,c.target)})},standalone:!1});q(Trd);var xU=function(){};xU.\u0275fac=function(a){return new (a||xU)};xU.\u0275mod=$e({type:xU});xU.\u0275inj=Fc({imports:[WO,qU,mB,wK,Cz,sU]});var Zrd=new dd("GM2_SELECT_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var yU=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};yU.\u0275fac=function(a){return new (a||yU)(Ve(Zrd))};yU.\u0275dir=af({type:yU,selectors:[["mat-select"]],hostAttrs:[1,"gmat-mdc-select"],standalone:!1});var $rd={provide:d0c,deps:[[new Fyc,new Gyc,new Eyc(d0c)],[new Fyc,new Eyc(Zrd)]],useFactory:function(a,b){return!b||b.disableGmatStyle?a||{}:a?Object.assign({},a,{overlayPanelClass:Kh(a.overlayPanelClass).concat("gmat-mdc-select")}):{overlayPanelClass:"gmat-mdc-select"}}},zU=function(){};zU.\u0275fac=function(a){return new (a||zU)};zU.\u0275mod=$e({type:zU});zU.\u0275inj=Fc({providers:[$rd],imports:[VH,UD]});var asd=new dd("GM2_SNACK_BAR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var AU=function(){rB.apply(this,arguments);this.additionalClasses=["gmat-mdc-snack-bar"];this.gmatOptions=p(asd)};Y(AU,rB);AU.prototype.openFromComponent=function(a,b){a=rB.prototype.openFromComponent.call(this,a,b);b=a.containerInstance._elementRef.nativeElement.closest(".cdk-overlay-pane");if(this.gmatOptions.disableGmatStyle)throw Error("db");b==null||b.classList.add.apply(b.classList,q(this.additionalClasses));return a};
AU.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(AU)))(b||AU)}}();AU.\u0275prov=Dc({token:AU,factory:AU.\u0275fac});var BU=function(){};BU.\u0275fac=function(a){return new (a||BU)};BU.\u0275mod=$e({type:BU});BU.\u0275inj=Fc({providers:[{provide:rB,useClass:AU}],imports:[sB]});var CU=function(){};CU.\u0275fac=function(a){return new (a||CU)};CU.\u0275mod=$e({type:CU});CU.\u0275inj=Fc({imports:[ez,lL,BU,WO,Wz,xU,zU,DL,mB,wK,iU,jU,TK]});var bsd=function(a,b){return[a,b]},csd=[[["b-callout-body"]],[["b-callout-actions"]]],DU=function(){this.messageType="info";this.format="default"};DU.prototype.getIconName=function(){if(this.iconOverride!=null)return this.iconOverride;switch(this.messageType){case "caution":return"warning";case "success":return"success";case "error":return"alert";default:return"info"}};DU.\u0275fac=function(a){return new (a||DU)};
DU.\u0275cmp=D({type:DU,selectors:[["b-callout"]],hostVars:5,hostBindings:function(a,b){a&2&&xg(Jg(2,bsd,b.messageType,b.format).join(" "))},inputs:{messageType:"messageType",format:"format",iconOverride:"iconOverride"},standalone:!1,ngContentSelectors:["b-callout-body","b-callout-actions"],decls:6,vars:1,consts:[[1,"callout"],["role","alert",1,"content"],[3,"svgIcon"],[1,"actions"]],template:function(a,b){a&1&&(bg(csd),K(0,"div",0)(1,"div",1),M(2,"mat-icon",2),cg(3),L(),K(4,"div",3),cg(5,1),L()());
a&2&&(B(2),I("svgIcon",b.getIconName()))},dependencies:[Jy],styles:["[_nghost-%COMP%]{display:block;border-radius:8px;color:#3c4043;color:var(--c800);padding:8px 4px}[_nghost-%COMP%]     .mat-mdc-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%]{display:flex;align-items:center;flex-grow:1}.actions[_ngcontent-%COMP%]{flex-grow:1}[_nghost-%COMP%]     b-callout-actions{display:flex;flex-wrap:nowrap;gap:4px;justify-content:flex-end}mat-icon[_ngcontent-%COMP%]{margin-left:4px;margin-right:8px}.callout[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:36px;flex-wrap:wrap}.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%]    .gmat-mdc-button.mat-mdc-button, .info[_nghost-%COMP%]    .mat-stroked-button, .info[_nghost-%COMP%]    .mat-mdc-outlined-button, .info[_nghost-%COMP%]    .mat-icon-button{color:#1a73e8;color:var(--link);--mat-button-text-state-layer-color: var(--link)}.info[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):hover, .info[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):focus{color:#1a73e8;color:var(--link)}.info[_nghost-%COMP%]    .mat-flat-button, .info[_nghost-%COMP%]    .mat-mdc-unelevated-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%]    .gmat-mdc-button.mat-mdc-button, .archived[_nghost-%COMP%]    .mat-stroked-button, .archived[_nghost-%COMP%]    .mat-mdc-outlined-button, .archived[_nghost-%COMP%]    .mat-icon-button, .caution[_nghost-%COMP%]    .mat-button, .caution[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button, .caution[_nghost-%COMP%]    .mat-stroked-button, .caution[_nghost-%COMP%]    .mat-mdc-outlined-button, .caution[_nghost-%COMP%]    .mat-icon-button{color:rgba(0,0,0,.7);color:var(--text-warn);--mat-button-text-state-layer-color: var(--text-warn)}.archived[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):hover, .archived[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):focus, .caution[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):hover, .caution[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):focus{color:rgba(0,0,0,.7);color:var(--text-warn)}.archived[_nghost-%COMP%]    .mat-flat-button, .archived[_nghost-%COMP%]    .mat-mdc-unelevated-button, .archived[_nghost-%COMP%]    .mat-raised-button, .caution[_nghost-%COMP%]    .mat-flat-button, .caution[_nghost-%COMP%]    .mat-mdc-unelevated-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:rgb(253.5,243.5,242.5);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%]    .gmat-mdc-button.mat-mdc-button, .error[_nghost-%COMP%]    .mat-stroked-button, .error[_nghost-%COMP%]    .mat-mdc-outlined-button, .error[_nghost-%COMP%]    .mat-icon-button{color:#c5221f;color:var(--bad-link);--mat-button-text-state-layer-color: var(--bad-link)}.error[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):hover, .error[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):focus{color:#c5221f;color:var(--bad-link)}.error[_nghost-%COMP%]    .mat-flat-button, .error[_nghost-%COMP%]    .mat-mdc-unelevated-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%]    .gmat-mdc-button.mat-mdc-button, .success[_nghost-%COMP%]    .mat-stroked-button, .success[_nghost-%COMP%]    .mat-mdc-outlined-button, .success[_nghost-%COMP%]    .mat-icon-button{color:#1e8e3e;color:var(--good-link);--mat-button-text-state-layer-color: var(--good-link)}.success[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):hover, .success[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):focus{color:#1e8e3e;color:var(--good-link)}.success[_nghost-%COMP%]    .mat-flat-button, .success[_nghost-%COMP%]    .mat-mdc-unelevated-button, .success[_nghost-%COMP%]    .mat-raised-button{background-color:#34a853;background-color:var(--good);color:#fff;color:var(--text-inverse)}/*# sourceMappingURL=callout.css.map */"]});
var EU=function(){};EU.\u0275fac=function(a){return new (a||EU)};EU.\u0275dir=af({type:EU,selectors:[["b-callout-body"],["b-callout-actions"]],standalone:!1});var FU=function(){};FU.\u0275fac=function(a){return new (a||FU)};FU.\u0275mod=$e({type:FU});FU.\u0275inj=Fc({imports:[WO]});var GU=function(){};GU.\u0275fac=function(a){return new (a||GU)};GU.\u0275mod=$e({type:GU});GU.\u0275inj=Fc({imports:[WO]});var HU=function(){};HU.\u0275fac=function(a){return new (a||HU)};HU.\u0275mod=$e({type:HU});HU.\u0275inj=Fc({imports:[iA,uT,Ky]});var IU=function(){};IU.\u0275fac=function(a){return new (a||IU)};IU.\u0275mod=$e({type:IU});IU.\u0275inj=Fc({imports:[vT,Ky]});var JU=function(){};JU.\u0275fac=function(a){return new (a||JU)};JU.\u0275mod=$e({type:JU});JU.\u0275inj=Fc({imports:[ord,Ky]});var dsd=function(){};dsd.\u0275fac=function(a){return new (a||dsd)};dsd.\u0275mod=$e({type:dsd});dsd.\u0275inj=Fc({imports:[WO,FU,CU,DE,mB,TJ,GU,GE,jH,HU,IU,JU,oA]});var esd=new Set(["INACTIVE","NOT_REPRODUCIBLE","INFEASIBLE","OBSOLETE","INTENDED_BEHAVIOR"]),KU=function(){this.recommendation=void 0;this.isParentRowActive=!1;this.onClick=new aQ};
KU.prototype.getText=function(a){if(!a)return"Suggestion";switch(a==null?void 0:a.type){case "COMPONENT_ROUTING":case "HOTLIST":return"Reroute";case "ISSUE_DEDUPLICATION":return"Dedupe";case "ANY_ISSUE_EDIT":var b=a.content;if(b&&b.issueModification){a=b.issueModification.addState;var c=b.issueModification.removeMask;b=new Set([].concat(q(b.issueModification.addMask),q(c)));a=(a==null?void 0:a.status)==="DUPLICATE"?"Dedupe":(a==null?0:a.status)&&esd.has(a.status)?"Clean up":b.has("componentId")||
b.has("hotlists")||b.has("assignee")||b.has("ccs")?"Reroute":b.has("priority")||b.has("severity")?"Reprioritize":"Suggestion"}else a="Suggestion";return a;default:return"Suggestion"}};KU.prototype.handleClick=function(){this.onClick.emit()};KU.prototype.handleKeydown=function(a){if(a.key==="Enter"||a.key===" ")a.preventDefault(),a.stopPropagation(),this.onClick.emit()};KU.\u0275fac=function(a){return new (a||KU)};
KU.\u0275cmp=D({type:KU,selectors:[["recommendation-chip"]],inputs:{recommendation:"recommendation",isParentRowActive:"isParentRowActive"},outputs:{onClick:"onClick"},standalone:!1,decls:1,vars:1,consts:[["type","button",1,"recommendation-chip",3,"aria-label","hovered"],["type","button",1,"recommendation-chip",3,"click","keydown","aria-label"],["svgIcon","devai",1,"icon-s"],[1,"recommendation-text"]],template:function(a,b){a&1&&F(0,S9a,4,4,"button",0);a&2&&G(b.recommendation?0:-1)},dependencies:[Jy],
styles:[".recommendation-chip[_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;padding:2px 8px;border-radius:16px;border:1px solid;border-color:#dadce0;border-color:var(--c300);color:#5f6368;color:var(--c700);font-size:.8125rem;font-weight:500;line-height:20px;white-space:nowrap;background-color:#fff}.recommendation-chip[_ngcontent-%COMP%]   .recommendation-text[_ngcontent-%COMP%]{display:none}.recommendation-chip.hovered[_ngcontent-%COMP%], .recommendation-chip[_ngcontent-%COMP%]:focus, .recommendation-chip[_ngcontent-%COMP%]:hover{cursor:pointer}.recommendation-chip.hovered[_ngcontent-%COMP%]   .recommendation-text[_ngcontent-%COMP%], .recommendation-chip[_ngcontent-%COMP%]:focus   .recommendation-text[_ngcontent-%COMP%], .recommendation-chip[_ngcontent-%COMP%]:hover   .recommendation-text[_ngcontent-%COMP%]{display:inline;padding-left:4px}"],
changeDetection:0});var fsd=function(){};fsd.\u0275fac=function(a){return new (a||fsd)};fsd.\u0275mod=$e({type:fsd});fsd.\u0275inj=Fc({imports:[WO,Ly]});var U9a=function(a,b){return b.key},LU=function(){this.phase=void 0;this.actions=[Qld,Jld,Lld,Rld,Pld];this.onSelect=new aQ},W9a=function(a){var b=P();return b.phase==="NEW"&&a===Qld?[Ild]:b.phase==="CONFIRMED"&&a===Jld?[Kld]:b.phase==="IN_PROGRESS"&&a===Lld?[Mld,Nld,Old]:[]};LU.\u0275fac=function(a){return new (a||LU)};
LU.\u0275cmp=D({type:LU,selectors:[["triage-action-selector"]],inputs:{phase:"phase"},outputs:{onSelect:"onSelect"},standalone:!1,decls:6,vars:1,consts:[["phaseSelector","matMenu"],["type","button","mat-button","",1,"gmat-button",3,"matMenuTriggerFor"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item","",1,"subAction"],["type","button","mat-menu-item","",1,"subAction",3,"click"]],template:function(a,b){a&1&&(K(0,"button",1),Q(1,"Change triage phase"),L(),K(2,"mat-menu",
null,0),Nf(4,X9a,4,3,null,null,U9a),L());a&2&&(a=qg(3),I("matMenuTriggerFor",a),B(4),Of(b.actions))},dependencies:[kB,gB,VJ,fH,dH,iH],styles:["button.subAction[_ngcontent-%COMP%]{padding-left:32px}"],changeDetection:0});var gsd=["button"],MU=function(){this.color="primary";this.format="hairline";this.disabled=!1;this.size="medium";this.onAction=new aQ};MU.prototype.onClick=function(a){this.onAction.emit(a)};MU.prototype.focus=function(){this.nativeButton.focus()};MU.\u0275fac=function(a){return new (a||MU)};
MU.\u0275cmp=D({type:MU,selectors:[["b-button"]],viewQuery:function(a,b){a&1&&hg(gsd,5);if(a&2){var c;lg(c=mg())&&(b.nativeButton=c.first)}},inputs:{color:"color",format:"format",disabled:"disabled",size:"size",bAriaLabel:"bAriaLabel",bAriaExpanded:"bAriaExpanded",tooltip:"tooltip"},outputs:{onAction:"onAction"},standalone:!1,ngContentSelectors:["*"],decls:7,vars:1,consts:[["buttonContent",""],["button",""],["type","button","mat-stroked-button","",3,"color","disabled","class","matTooltip"],["type",
"button","mat-button","",3,"color","disabled","class","matTooltip"],["type","button","mat-flat-button","",3,"color","disabled","class","matTooltip"],["type","button","mat-icon-button","",3,"color","disabled","class","matTooltip"],["type","button","mat-stroked-button","",3,"click","color","disabled","matTooltip"],[4,"ngTemplateOutlet"],["type","button","mat-button","",3,"click","color","disabled","matTooltip"],["type","button","mat-flat-button","",3,"click","color","disabled","matTooltip"],["type",
"button","mat-icon-button","",3,"click","color","disabled","matTooltip"]],template:function(a,b){a&1&&(bg(),E(0,Y9a,1,0,"ng-template",null,0,Mg),F(2,$9a,3,8,"button",2)(3,b$a,3,8,"button",3)(4,d$a,3,8,"button",4)(5,f$a,3,8,"button",5)(6,h$a,3,8,"button",2));if(a&2){var c;B(2);G((c=b.format)==="hairline"?2:c==="flat"?3:c==="fill"?4:c==="icon"?5:6)}},dependencies:[kB,gB,iB,vK,nA,Sx],encapsulation:2,changeDetection:0});var NU=function(){};NU.\u0275fac=function(a){return new (a||NU)};NU.\u0275mod=$e({type:NU});NU.\u0275inj=Fc({imports:[mB,wK,WO]});var hsd=new dd("GM2_SLIDE_TOGGLE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var OU=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};OU.\u0275fac=function(a){return new (a||OU)(Ve(hsd))};OU.\u0275dir=af({type:OU,selectors:[["mat-slide-toggle"]],hostAttrs:[1,"gmat-mdc-slide-toggle"],standalone:!1});var PU=function(){};PU.\u0275fac=function(a){return new (a||PU)};PU.\u0275mod=$e({type:PU});PU.\u0275inj=Fc({providers:[{provide:Sqd,useValue:{color:"primary"}}],imports:[IU]});var isd=0,QU=function(){this.id="b-slide-toggle-"+ ++isd;this.ariaLabel=this.label="";this.labelPosition="before";this.model=!1;this.tooltip=void 0;this.disabled=!1;this.modelChange=new aQ};QU.\u0275fac=function(a){return new (a||QU)};
QU.\u0275cmp=D({type:QU,selectors:[["b-slide-toggle"]],hostAttrs:[1,"vertical-centered"],inputs:{id:"id",label:"label",ariaLabel:[0,"aria-label","ariaLabel"],labelPosition:"labelPosition",model:"model",tooltip:"tooltip",disabled:"disabled"},outputs:{modelChange:"modelChange"},standalone:!1,decls:2,vars:7,consts:[[3,"change","id","disabled","checked","aria-label","matTooltip","labelPosition"]],template:function(a,b){a&1&&(K(0,"mat-slide-toggle",0),N("change",function(d){b.model=d.checked;b.modelChange.emit(d.checked)}),
Q(1),L());if(a&2){I("id",b.id)("disabled",b.disabled)("checked",b.model);Hf("aria-label",b.ariaLabel||b.label);var c;I("matTooltip",(c=b.tooltip)!=null?c:"")("labelPosition",b.label?b.labelPosition:"after");B();yg(b.label)}},dependencies:[OU,vT,vK,nA],styles:["mat-slide-toggle[_ngcontent-%COMP%] { vertical-align: middle; }"],changeDetection:0});var RU=function(){};RU.\u0275fac=function(a){return new (a||RU)};RU.\u0275mod=$e({type:RU});RU.\u0275inj=Fc({imports:[PU,wK]});var SU=function(){this.refreshMonitor=p(VP);this.coinonly=null};SU.\u0275fac=function(a){return new (a||SU)};SU.\u0275cmp=D({type:SU,selectors:[["b-availability-chip"]],inputs:{user:"user",coinonly:"coinonly"},standalone:!1,decls:1,vars:1,consts:[[3,"refreshable"],[3,"user"]],template:function(a,b){a&1&&E(0,j$a,1,1,"ng-template",0);a&2&&I("refreshable",b.refreshMonitor.getObservable())},dependencies:[Epd,tU],styles:["waldo-availability-chip[_ngcontent-%COMP%] { margin-left: 5px; }"],changeDetection:0});var TU=function(){};TU.\u0275fac=function(a){return new (a||TU)};TU.\u0275mod=$e({type:TU});TU.\u0275inj=Fc({imports:[US,WO,xU]});var jsd=["spanElement"],UU=function(){this.modelValue="";this.maxWidth=0;this.disabled=!1;this.displayString=""};UU.prototype.ngOnChanges=function(a){if(a.modelValue||a.disabled)this.displayString=this.modelValue||""};UU.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)+"...")};
UU.prototype.getTooltip=function(){return this.displayString!==this.modelValue?this.modelValue:""};UU.\u0275fac=function(a){return new (a||UU)};
UU.\u0275cmp=D({type:UU,selectors:[["b-truncated-span"]],viewQuery:function(a,b){a&1&&hg(jsd,5);if(a&2){var c;lg(c=mg())&&(b.spanElement=c.first)}},inputs:{modelValue:"modelValue",maxWidth:"maxWidth",disabled:"disabled"},standalone:!1,features:[jx],decls:2,vars:2,consts:[["spanElement",""],[3,"matTooltip","innerHtml"]],template:function(a,b){a&1&&M(0,"span",1,0);a&2&&I("matTooltip",b.getTooltip())("innerHtml",b.displayString,Me)},dependencies:[vK,nA],encapsulation:2});var VU=function(){};VU.\u0275fac=function(a){return new (a||VU)};VU.\u0275mod=$e({type:VU});VU.\u0275inj=Fc({imports:[WO,wK]});var WU=function(){};WU.prototype.transform=function(a){if(Zn(a))return a};WU.\u0275fac=function(a){return new (a||WU)};WU.\u0275pipe=cf({name:"omitObfuscatedEmail",type:WU,pure:!0,standalone:!1});var ksd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ksd,W);ksd.prototype.getDisplayName=function(){return ui(this,1)};ksd.prototype.setDisplayName=function(a){return oj(this,1,a)};ksd.prototype.getPhotoUrl=function(){return ui(this,2)};var lsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,lsd.messageId)};Y(lsd,W);lsd.messageId="b.UserProfileBatchResponse";var YU=function(){var a=this;this.userProfilesBatchApiConfig=p(XU);this.batchApiAdapter=p(MO);this.batchAdaptedGet=this.batchApiAdapter.adapt(this.userProfilesBatchApiConfig);this.memoizingUserProfileMap=new jjd(function(b){return a.batchAdaptedGet(b)},100)};YU.prototype.get=function(a){return this.memoizingUserProfileMap.get(a)};YU.\u0275fac=function(a){return new (a||YU)};YU.\u0275prov=Dc({token:YU,factory:YU.\u0275fac,providedIn:"root"});var XU=function(){this.executor=p(bO)};
XU.prototype.call=function(a){return this.executor.get({url:"action/user_profiles",options:{params:{usernames:[].concat(q(a)).join(",")}},responseConstructor:lsd}).pipe(gf(function(){return ce(new lsd)}))};XU.prototype.split=function(a,b){return(a=wc(b,1,ksd,Vb,jb).get(a))?{photoUrl:a.getPhotoUrl(),highResolutionPhotoUrl:ui(a,3),displayName:a.getDisplayName()}:void 0};XU.\u0275fac=function(a){return new (a||XU)};XU.\u0275prov=Dc({token:XU,factory:XU.\u0275fac,providedIn:"root"});var x$a={"alertmanager-buganizer-handler@prod.google.com":"https://g3doc.corp.google.com/production/borg/alertmanager/g3doc/templates/AlertManager-darkred.png","android-ftslo-regression-actuator@prod.google.com":"https://g3doc.corp.google.com/company/teams/dx-velocity/images/atn_favicon.png","apphosting-stubby-api--s-7egoogle-2ecom-3agitwatcher@prod.google.com":"https://gstatic.com/buganizer/img/v2/gerrit_logo.svg","blunderbuss-prod@prod.google.com":"https://moma.corp.google.com/team_logos/f5955dadc5abc82300946ee12bf0b610",
"boq-android-culprit-assistant@prod.google.com":"https://g3doc.corp.google.com/wireless/android/engprod/culpritassistant/g3doc/images/aca_logo.png?cl=head","bugjuggler-beta@google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler-beta@prod.google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler@google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler@prod.google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head",
"chrome-devtools-continuous-blintz@prod.google.com":"https://gstatic.com/chrome/devtools/images/chrome_devtools_logo.svg","chrome-devtools-daily-blintz@prod.google.com":"https://gstatic.com/chrome/devtools/images/chrome_devtools_logo.svg","dx-workflow-gitwatcher@prod.google.com":"https://gstatic.com/buganizer/img/v2/gerrit_logo.svg","gado-bug-service@prod.google.com":"https://g3doc.corp.google.com/hardware/gchips/productivity/g3doc/koala/images/buganizer_profile_picture.png","koalassistant@prod.google.com":"https://g3doc.corp.google.com/platforms/networking/orion/octave/g3doc/images/koalassistant.png?cl=head",
"mendel-toolbox@google.com":"https://g3doc.corp.google.com/experiments/mendel/g3doc/logo_mendel_bkg-green_32px.svg?cl=head","modem-explorer-jobs@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","modem-tools-bug-workbench@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","octave-services-koalassistant@prod.google.com":"https://g3doc.corp.google.com/platforms/networking/orion/octave/g3doc/images/koalassistant.png?cl=head",
"piper-bugupdater@google.com":"https://static.corp.google.com/devtools/codereview/new_logo_only.svg","piper-bugupdater@prod.google.com":"https://static.corp.google.com/devtools/codereview/new_logo_only.svg","pixel-camera-astro-robo-michael@prod.google.com":"https://g3doc.corp.google.com/company/teams/pixel-camera-astro/images/robo-michael.jpg?cl=head","pixel-modem-alcedo-issue-sync-server-dev-jobs@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","pixel-modem-alcedo-issue-sync-server@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg",
"pixel-modem-tools-bug-traffic-control@prod.google.com":"https://static.corp.google.com/sdlc_riemann/riemann_logo.svg","pixel-modem-tools-issue-classifier-be@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","pixel-modem-tools-ltp-be@prod.google.com":"https://static.corp.google.com/modem-tools/ltp/logo.svg","pmw-data-prod-jobs@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","prefilter-fetcher-jobs-dev@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg",
"pte-pqm-bugbot-dev-jobs@prod.google.com":"https://g3doc.corp.google.com/wireless/android/pixel/testing/bugbot/g3doc/bugbot_logo.png?cl=head","pte-pqm-bugbot@prod.google.com":"https://g3doc.corp.google.com/wireless/android/pixel/testing/bugbot/g3doc/bugbot_logo.png?cl=head","spur-workflows@prod.google.com":"https://g3doc.corp.google.com/security/spur/g3doc/spur_logo.jpg?cl=head","supply-chain-hw-dam2-async@prod.google.com":"https://g3doc.corp.google.com/supplychain/hw/dam2/g3doc/images/beaver.png?cl=head",
"support-bugs-automation-jobs@prod.google.com":"https://g3doc.corp.google.com/enterprise/support/cloud/support_bugs_automation/g3doc/img/sba_logo_new.png?cl=head"},msd={"android-ftslo-regression-actuator@prod.google.com":"Android Test Notifier","apphosting-stubby-api--s-7egoogle-2ecom-3agitwatcher@prod.google.com":"GitWatcher","blunderbuss-prod@prod.google.com":"Blunderbuss","boq-android-culprit-assistant@prod.google.com":"Culprit Assistant","bug-agent-ads-dqm-alert-handler@system.gserviceaccount.com":"Ads DQM Alert Handler Agent",
"bug-agent-ai-summary@system.gserviceaccount.com":"AI Summary Agent","bug-agent-anabase@system.gserviceaccount.com":"BAP Anabase Agent","bug-agent-anr-agent@system.gserviceaccount.com":"ANR Agent","bug-agent-baseline-validation@system.gserviceaccount.com":"Baseline Validation Agent","bug-agent-buganizer-cleanup@system.gserviceaccount.com":"Buganizer Cleanup Bot","bug-agent-bugwise@system.gserviceaccount.com":"Bugwise Agent","bug-agent-chrome-moderation@system.gserviceaccount.com":"Chrome Moderation Agent",
"bug-agent-culprit-assistant@system.gserviceaccount.com":"Culprit Assistant Agent","bug-agent-fatal-exception-agent@system.gserviceaccount.com":"Fatal Exception Agent","bug-agent-geminet@system.gserviceaccount.com":"Packet Capture Agent","bug-agent-launcher-assigner@system.gserviceaccount.com":"Assigner Agent","bug-agent-native-crash-agent@system.gserviceaccount.com":"Native Crash Agent","bug-agent-ooo-reassignment-agent@system.gserviceaccount.com":"OOO Reassignment Agent","bug-agent-playbooks@system.gserviceaccount.com":"Playbooks Agent",
"bug-agent-primes-bug-enrichment@system.gserviceaccount.com":"Primes Bug Enrichment Agent","bug-agent-sample-module@system.gserviceaccount.com":"Sample Module Agent","bug-agent-slo@system.gserviceaccount.com":"SLO Agent","bug-agent-watchdog-agent@system.gserviceaccount.com":"Watchdog Agent","bug-agent-zombie-auto-triage@system.gserviceaccount.com":"Zombie Auto Triage Agent","bugcorder@prod.google.com":"Bug Agent Platform","chrome-devtools-continuous-blintz@prod.google.com":"Chrome DevTools Bot","chrome-devtools-daily-blintz@prod.google.com":"Chrome DevTools Bot",
"dx-workflow-gitwatcher@prod.google.com":"GitWatcher","gado-bug-service@prod.google.com":"Gado Bug Service","pixel-modem-tools-bug-traffic-control@prod.google.com":"Riemann Bug Traffic Control\ud83d\udea6","pmw-data-prod-jobs@prod.google.com":"Riemann Bug Bot","supply-chain-hw-dam2-async@prod.google.com":"DAM Agent","support-bugs-automation-jobs@prod.google.com":"Support Bugs Automation"};var nsd=new dd("overrideDisplayMap",{factory:function(){return msd}}),ZU=function(){var a=this;this.session=p(uu);this.userProfiles=p(YU);this.overrideDisplayMap=p(nsd);this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1;this.user$=new uf(1);this.showEmail$=new Mj(!1);this.isNonObfuscatedEmail=Zn;this.userProfile$=this.user$.pipe(yf(function(b){return a.userProfiles.get(wm(b))})).pipe(xf(void 0));this.content$=ie([this.user$,this.userProfile$,this.showEmail$]).pipe(A(function(b){var c=
m(b);b=c.next().value;var d=c.next().value;c=c.next().value;var e=wm(b),f=a.overrideDisplayMap[wm(b)];b=f?f:(d==null?void 0:d.displayName)||tm(b);return c&&e!==b?e+" ("+b+")":b}));this.vars$=ie([this.user$,this.content$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return{user:b,email:wm(b),content:c}}));this.enableWaldoAvailability=this.session.getFlag("enableWaldoAvailability")&&this.session.isInternalSession()};
da.Object.defineProperties(ZU.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.user$.next(a)}},showEmail:{configurable:!0,enumerable:!0,set:function(a){this.showEmail$.next(a)}}});ZU.\u0275fac=function(a){return new (a||ZU)};
ZU.\u0275cmp=D({type:ZU,selectors:[["b-user-display-name"]],inputs:{user:"user",showEmail:"showEmail",availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled"},standalone:!1,decls:2,vars:3,consts:[["displayName",""],["card",""],["coinonly","",3,"user"],["role","button",1,"keep-focus-ring",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"]],template:function(a,b){a&1&&(F(0,q$a,4,1),T(1,"async"));if(a&2){var c;G((c=
U(1,1,b.vars$))?0:-1,c)}},dependencies:[Sx,SU,hT,KK,SK,Tx],encapsulation:2,changeDetection:0});var $U=function(){this.model={};this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1};$U.prototype.getDisplayString=function(){return tm(this.model)};$U.prototype.getEmailAddress=function(){return wm(this.model)||""};$U.\u0275fac=function(a){return new (a||$U)};
$U.\u0275cmp=D({type:$U,selectors:[["b-user-display"]],inputs:{model:"model",availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled"},standalone:!1,decls:3,vars:1,consts:[[3,"user","hovercardEnabled","availabilityChipEnabled","hovercardFocusEnabled"]],template:function(a,b){a&1&&(Tf(0),F(1,r$a,1,4,"b-user-display-name",0)(2,s$a,2,1,"span"),Uf());a&2&&(B(),G(cRa(b.model)&&b.getEmailAddress()&&b.model?1:2))},dependencies:[ZU],
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 aV=function(){var a=this;this.userProfiles=p(YU);this.activeSession=p(uu);this.teamMembershipService=p(SR);this.email$=new uf(1);this.isNonObfuscatedEmail=Zn;this.teamId$=new Mj(void 0);this.userProfile$=this.email$.pipe(yf(function(b){return b?a.userProfiles.get(b).pipe(xf(void 0)):ce(void 0)}));this.vars$=ie([this.email$,this.userProfile$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(!c)return{email:b,showImage:!1,src:void 0,srcset:void 0};var d=!c.photoUrl,e=d?void 0:
c.photoUrl,f;d?f=void 0:f=c.highResolutionPhotoUrl?c.highResolutionPhotoUrl+" 2x":c.photoUrl+" 1x";return{email:b,showImage:!d,src:e,srcset:f}}));this.isTeamMember$=ie([this.teamId$,this.email$]).pipe(yf(function(b){var c=m(b);b=c.next().value;c=c.next().value;return zld(a.teamMembershipService,b,c)}),xf(!1),gf(function(){return ce(!1)}))},B$a=function(a,b){return!b||a.activeSession.isExternalSession()?!1:x$a[b]!==void 0};
da.Object.defineProperties(aV.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){Zn(a)?this.email$.next(a):this.email$.next(void 0)}},teamId:{configurable:!0,enumerable:!0,set:function(a){this.teamId$.next(a!=null?a:void 0)}},tiny:{configurable:!0,enumerable:!0,get:function(){return this.size==="tiny"}},small:{configurable:!0,enumerable:!0,get:function(){return this.size==="small"}},medium:{configurable:!0,enumerable:!0,get:function(){return this.size==="medium"}},hasTeam:{configurable:!0,
enumerable:!0,get:function(){return!!this.teamId$.value}}});aV.\u0275fac=function(a){return new (a||aV)};
aV.\u0275cmp=D({type:aV,selectors:[["b-user-image"]],hostVars:8,hostBindings:function(a,b){a&2&&wg("tiny",b.tiny)("small",b.small)("medium",b.medium)("hasTeam",b.hasTeam)},inputs:{email:"email",size:"size",teamId:"teamId"},standalone:!1,decls:2,vars:3,consts:[["imageDisplay",""],["card",""],["role","img","aria-label","user avatar",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],["alt","",1,"user-avatar","material","robo-avatar",3,"src"],[1,"user-avatar","material",3,"team-member","anonymous"],
[1,"user-avatar","material"],["alt","",3,"src","srcset"]],template:function(a,b){a&1&&(F(0,D$a,4,1),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.vars$))?0:-1,c)}},dependencies:[Sx,hT,KK,SK,Tx],styles:['.material.user-avatar.anonymous[_ngcontent-%COMP%]{border:1px solid;border-color:#bdc1c6;border-color:var(--c400);border-radius:50%;background-image:url("https://www.gstatic.com/buganizer/img/v0/logo_avatar_anonymous.svg");background-repeat:no-repeat;background-position:center;background-size:cover}img[_ngcontent-%COMP%]{border-radius:50%;vertical-align:middle}.material.user-avatar.robo-avatar[_ngcontent-%COMP%]{border-radius:0;object-fit:contain}[_nghost-%COMP%]{display:inline-flex;vertical-align:middle;align-items:center}.tiny[_nghost-%COMP%]   img[_ngcontent-%COMP%]{width:12px;max-height:12px}.tiny[_nghost-%COMP%]   .user-avatar.anonymous[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:12px;height:12px;border:none;box-shadow:inset 0 0 0 1px #dadce0;box-shadow:inset 0 0 0 1px var(--divider)}.tiny.hasTeam[_nghost-%COMP%]{text-align:center}.tiny.hasTeam[_nghost-%COMP%]   span[_ngcontent-%COMP%]{width:16px}.tiny.hasTeam[_nghost-%COMP%]   .team-member[_ngcontent-%COMP%]{border:2px solid var(--team-member-gfx);box-sizing:border-box;border-radius:50%;display:block}.tiny.hasTeam[_nghost-%COMP%]   .team-member[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border:2px solid rgba(0,0,0,0);box-sizing:border-box}.small[_nghost-%COMP%]   img[_ngcontent-%COMP%]{max-width:18px;max-height:18px}.small[_nghost-%COMP%]   .user-avatar.anonymous[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:18px;height:18px;border:none;box-shadow:inset 0 0 0 1px #dadce0;box-shadow:inset 0 0 0 1px var(--divider)}.small.hasTeam[_nghost-%COMP%]{text-align:center}.small.hasTeam[_nghost-%COMP%]   span[_ngcontent-%COMP%]{width:22px}.small.hasTeam[_nghost-%COMP%]   .team-member[_ngcontent-%COMP%]{border:2px solid var(--team-member-gfx);box-sizing:border-box;border-radius:50%;display:block}.small.hasTeam[_nghost-%COMP%]   .team-member[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border:2px solid rgba(0,0,0,0);box-sizing:border-box}.medium[_nghost-%COMP%]   img[_ngcontent-%COMP%]{max-width:24px;max-height:24px}.medium[_nghost-%COMP%]   .user-avatar.anonymous[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:24px;height:24px;border:none;box-shadow:inset 0 0 0 1px #dadce0;box-shadow:inset 0 0 0 1px var(--divider)}.medium.hasTeam[_nghost-%COMP%]{text-align:center}.medium.hasTeam[_nghost-%COMP%]   span[_ngcontent-%COMP%]{width:28px}.medium.hasTeam[_nghost-%COMP%]   .team-member[_ngcontent-%COMP%]{border:2px solid var(--team-member-gfx);box-sizing:border-box;border-radius:50%;display:block}.medium.hasTeam[_nghost-%COMP%]   .team-member[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border:2px solid rgba(0,0,0,0);box-sizing:border-box}'],
changeDetection:0});var osd=function(){this.transform=E$a};osd.\u0275fac=function(a){return new (a||osd)};osd.\u0275pipe=cf({name:"toNewEmailPreference",type:osd,pure:!0,standalone:!1});var bV=function(){this.transform=F$a};bV.\u0275fac=function(a){return new (a||bV)};bV.\u0275pipe=cf({name:"enumToHuman",type:bV,pure:!0,standalone:!1});var psd=function(){this.transform=G$a};psd.\u0275fac=function(a){return new (a||psd)};psd.\u0275pipe=cf({name:"arrayToHuman",type:psd,pure:!0,standalone:!1});var cV=function(){};
cV.prototype.transform=function(a,b){return sh(H$a(a,b)).toString()};cV.\u0275fac=function(a){return new (a||cV)};cV.\u0275pipe=cf({name:"boldPrefixMatches",type:cV,pure:!0,standalone:!1});var dV=function(){this.transform=I$a};dV.\u0275fac=function(a){return new (a||dV)};dV.\u0275pipe=cf({name:"yesNo",type:dV,pure:!0,standalone:!1});var qsd=function(){this.transform=J$a};qsd.\u0275fac=function(a){return new (a||qsd)};qsd.\u0275pipe=cf({name:"teamPath",type:qsd,pure:!0,standalone:!1});
var rsd=function(){this.transform=K$a};rsd.\u0275fac=function(a){return new (a||rsd)};rsd.\u0275pipe=cf({name:"humanFileSize",type:rsd,pure:!0,standalone:!1});var ssd=function(){this.transform=M$a};ssd.\u0275fac=function(a){return new (a||ssd)};ssd.\u0275pipe=cf({name:"omitObfuscatedEmail",type:ssd,pure:!0,standalone:!1});var tsd=function(){this.transform=N$a};tsd.\u0275fac=function(a){return new (a||tsd)};tsd.\u0275pipe=cf({name:"toString",type:tsd,pure:!0,standalone:!1});
var usd=function(){this.transform=O$a};usd.\u0275fac=function(a){return new (a||usd)};usd.\u0275pipe=cf({name:"csv",type:usd,pure:!0,standalone:!1});var vsd=function(){};vsd.prototype.transform=function(a,b,c){a=b.indexOf(a);if(a<0)return!0;c=a+c;return!(c>=0&&c<b.length)};vsd.\u0275fac=function(a){return new (a||vsd)};vsd.\u0275pipe=cf({name:"isOutOfBounds",type:vsd,pure:!0,standalone:!1});var eV=function(){};eV.prototype.transform=function(a){return xm(a)};
eV.\u0275fac=function(a){return new (a||eV)};eV.\u0275pipe=cf({name:"emailToUser",type:eV,pure:!0,standalone:!1});var fV=function(){};fV.\u0275fac=function(a){return new (a||fV)};fV.\u0275mod=$e({type:fV});fV.\u0275inj=Fc({});var wsd=function(){this.session=p(uu);this.isNonObfuscatedEmail=Zn;this.getEmailDisplayString=W$a;this.email="";this.withProfile=!0;this.enableWaldoAvailability=this.session.getFlag("enableWaldoAvailability")&&this.session.isInternalSession()};wsd.\u0275fac=function(a){return new (a||wsd)};
wsd.\u0275cmp=D({type:wsd,selectors:[["b-user-email"]],inputs:{email:"email",withProfile:"withProfile",ldapOnly:"ldapOnly"},standalone:!1,decls:7,vars:3,consts:[["emailDisplay",""],["card",""],[1,"bv2-email-with-profile-container"],[1,"bv2-email-with-profile-avatar",3,"email"],[1,"bv2-email-with-profile-waldo"],["role","button",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],["coinonly","",3,"user"]],template:function(a,b){a&1&&(K(0,"span",2),F(1,P$a,1,1,"b-user-image",3),F(2,R$a,5,
3)(3,T$a,1,1,"ng-container"),E(4,U$a,2,1,"ng-template",null,0,Mg),F(6,V$a,3,3,"span",4),L());a&2&&(B(),G(b.withProfile?1:-1),B(),G(b.isNonObfuscatedEmail(b.email)?2:3),B(4),G(b.enableWaldoAvailability?6:-1))},dependencies:[Sx,SU,hT,KK,SK,aV,eV],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 gV=function(){Z.apply(this,arguments);var a=this;this.teamsService=p(OQ);this.session=p(uu);this.principalTypesFridge=p(GQ);this.teamId="";this.enableGroupIcon=this.enableSmallChip=!1;this.providedTeamId$=new uf(1);this.providedUser$=new uf(1);this.providedEmail$=new uf(1);this.isNonObfuscatedEmail=Zn;this.userToDisplayString=tm;this.isGroup$=this.providedEmail$.pipe(yf(function(b){return a.principalTypesFridge.watch(b)}),ue(Pm),A(function(b){return b.principalType==="GROUP"}));this.fetchedTeam$=
this.providedTeamId$.pipe(yf(function(b){return PQ(a.teamsService,b)}));this.detailedUserType$=this.providedUser$.pipe(A(function(b){b=b?b.aliases||[]:[];return b.includes("googlers_unrestricted")?"UNRESTRICTED_GOOGLER":b.includes("google_domain")?"TVC":b.includes("issue_creation_only_accounts")?"ISSUE_CREATION_ONLY":b.includes("external_partners")?"EXTERNAL":b.includes("public_non_google")?"PUBLIC":"NO_DETAILED_TYPE"}),xf("NO_DETAILED_TYPE"));this.isTeamMember$=ie([this.providedTeamId$,this.providedEmail$]).pipe(yf(function(b){var c=
m(b);b=c.next().value;c=c.next().value;return zjd(a.teamsService,b,c)}),xf(!1),gf(function(){return ce(!1)}));this.teamUser$=this.fetchedTeam$.pipe(A(function(b){return"Member of "+b.name}));this.groupMembershipType$=ie([this.detailedUserType$,this.isTeamMember$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b==="PUBLIC"?"PUBLIC_USER":b==="EXTERNAL"?"PARTNER_USER":c?"INTERNAL_TEAM_MEMBER":"INTERNAL_NON_TEAM_MEMBER"}));this.enableWaldoAvailability=this.session.getFlag("enableWaldoAvailability")&&
this.session.isInternalSession();this.userTypeClass$=this.groupMembershipType$.pipe(A(function(b){return a.enableSmallChip?"user-chip-small":b&&b!=="INTERNAL_NON_TEAM_MEMBER"?"user-chip":"user-chip-without-icon"}));this.userChipType$=this.groupMembershipType$.pipe(A(function(b){if(b&&b!=="INTERNAL_NON_TEAM_MEMBER"){if(b==="INTERNAL_TEAM_MEMBER")return"team-member-chip";if(b==="PARTNER_USER")return"partner-chip";if(b==="PUBLIC_USER")return"public-chip"}else return"internal-non-team-member-chip";return""}));
this.shouldShowIcon$=this.groupMembershipType$.pipe(A(function(b){return b&&b!=="INTERNAL_NON_TEAM_MEMBER"}));this.iconName$=this.groupMembershipType$.pipe(A(function(b){if(b&&b!=="INTERNAL_NON_TEAM_MEMBER"){if(b==="INTERNAL_TEAM_MEMBER")return"people-outline";if(b==="PARTNER_USER")return"enterprise";if(b==="PUBLIC_USER")return"public"}return""}));this.iconToolTip$=this.groupMembershipType$.pipe(Cf(this.teamUser$),A(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(b&&b!=="INTERNAL_NON_TEAM_MEMBER"){if(b===
"INTERNAL_TEAM_MEMBER")return c;if(b==="PARTNER_USER")return"Partner user";if(b==="PUBLIC_USER")return"Public user"}return""}))};Y(gV,Z);gV.\u0275dir=Z.\u0275dir;gV.prototype.ngOnInit=function(){};gV.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)};gV.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(gV)))(b||gV)}}();
gV.\u0275cmp=D({type:gV,selectors:[["b-user-membership-chip"]],inputs:{user:"user",email:"email",teamId:"teamId",enableSmallChip:"enableSmallChip",enableGroupIcon:"enableGroupIcon"},standalone:!1,features:[Ef,jx],decls:10,vars:14,consts:[["emailDisplay",""],["card",""],[3,"user","hovercardFocusEnabled","availabilityChipEnabled"],[3,"svgIcon","matTooltip"],["coinonly","",3,"user"],["name","group_24px","size","small"],["size","tiny",3,"email"],["tabindex","0","role","button",1,"keep-focus-ring","overflow-hidden",
"overflow-ellipsis",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],[1,"user-chip-name"]],template:function(a,b){a&1&&(K(0,"span"),T(1,"async"),K(2,"span"),T(3,"async"),F(4,Z$a,3,3),F(5,$$a,2,5,"b-user-display-name",2)(6,hab,4,1),F(7,iab,3,6,"mat-icon",3),T(8,"async"),L()(),F(9,jab,1,1,"b-availability-chip",4));if(a&2){var c;xg((c=U(1,8,b.userTypeClass$))!=null?c:"");B(2);var d;xg((d=U(3,10,b.userChipType$))!=null?d:"");B(2);G(b.enableSmallChip?4:-1);B();G(b.enableSmallChip?6:5);B(2);
G(U(8,12,b.shouldShowIcon$)?7:-1);B(2);G(b.enableWaldoAvailability&&!b.enableSmallChip?9:-1)}},dependencies:[Sx,Jy,SU,sT,vK,nA,hT,KK,SK,aV,ZU,Tx,eV],styles:[".user-chip-without-icon[_ngcontent-%COMP%]{display:inline-block;height:1.75em;white-space:nowrap}.user-chip-without-icon[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:bold;height:20px;letter-spacing:.2px;line-height:20px}.user-chip-without-icon[_ngcontent-%COMP%]   .internal-non-team-member-chip[_ngcontent-%COMP%]{align-items:center;display:flex;height:1.75em;line-height:1.75em;padding:0 8px}.user-chip[_ngcontent-%COMP%]{display:inline-block;height:1.75em;white-space:nowrap}.user-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{flex-shrink:0;height:16px;margin-left:3%;padding:0 14px 0 0;position:relative;width:16px}.user-chip[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:bold;height:20px;letter-spacing:.2px;line-height:20px;padding:0 0 0 8px}.team-member-chip[_ngcontent-%COMP%]{background-color:#e8f0fe;background-color:var(--team-member-bg);min-width:0;align-items:center;border-radius:24px;display:flex;height:1.75em;line-height:1.75em;padding:0 0px 0 0px}.team-member-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#1967d2;color:var(--team-member-gfx)}.partner-chip[_ngcontent-%COMP%]{background-color:#ffdeb5;background-color:var(--partner-bg);min-width:0;align-items:center;border-radius:24px;display:flex;height:1.75em;line-height:1.75em;padding:0 0px 0 0px}.partner-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#202124;color:var(--partner-text)}.partner-chip[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%], .partner-chip[_ngcontent-%COMP%]   .user-chip-name[_ngcontent-%COMP%]{color:#202124;color:var(--partner-text)}.public-chip[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg);min-width:0;align-items:center;border-radius:24px;display:flex;height:1.75em;line-height:1.75em;padding:0 0px 0 0px}.public-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#202124;color:var(--public-text)}.public-chip[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%], .public-chip[_ngcontent-%COMP%]   .user-chip-name[_ngcontent-%COMP%]{color:#202124;color:var(--public-text)}.user-chip-small[_ngcontent-%COMP%]{display:flex;height:1.25em;line-height:1.25em}.user-chip-small[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{flex-shrink:0;height:11px;padding:0 0 1px 2px;width:11px}.user-chip-small[_ngcontent-%COMP%]   .internal-non-team-member-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px;min-width:0}.user-chip-small[_ngcontent-%COMP%]   .internal-non-team-member-chip[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.12);background-color:var(--user-bg-focus)}.user-chip-small[_ngcontent-%COMP%]   .team-member-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px}.user-chip-small[_ngcontent-%COMP%]   .partner-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px}.user-chip-small[_ngcontent-%COMP%]   .public-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px}.user-chip-name[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:normal;height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;letter-spacing:.3px;line-height:16px;padding:0 0 0 2px}[_nghost-%COMP%]{min-width:0}[_nghost-%COMP%]     b-icon{width:12px}[_nghost-%COMP%]     b-icon mat-icon{width:inherit}[_nghost-%COMP%]     b-icon mat-icon svg{width:12px;height:16px}"],
changeDetection:0});var hV=function(){};hV.\u0275fac=function(a){return new (a||hV)};hV.\u0275mod=$e({type:hV});hV.\u0275inj=Fc({imports:[WO,TU,GU,wK,iU,jU,TK,fV]});var xsd=function(a,b,c,d){Uy.call(this,a,b,c,d,!0);var e=this;this.escapeSubject$=new qf;this.startAnchorListener=function(){e.escapeSubject$.next(0);return!0};this.endAnchorListener=function(){e.escapeSubject$.next(1);return!0};Ty(this)};Y(xsd,Uy);var iV=function(){this.checker=p(Qy);this.ngZone=p(Rg);this.document=p(Rh)};iV.prototype.create=function(a){return new xsd(a,this.checker,this.ngZone,this.document)};iV.\u0275fac=function(a){return new (a||iV)};
iV.\u0275prov=Dc({token:iV,factory:iV.\u0275fac,providedIn:"root"});var ysd=["content"],jV=function(){Z.apply(this,arguments);this.focusEscapeNotifierFactory=p(iV);this.trapFocus=this.required=!1;this.renderPanel=this.noneButtonEnabled=this.todayButtonEnabled=!0;this.includeTimePicker=!1;this.dateChange=new aQ;this.dateTimeChange=new aQ;this.cancelClicked=new aQ;this.saveClicked=new aQ;this.dateSelectionChange=new aQ;this.focusEscaped=new aQ;this.timeFormControl=new lE("",vj)};Y(jV,Z);jV.\u0275dir=Z.\u0275dir;
jV.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){pab(a)});this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(zf(this.destroyed$)).subscribe(function(b){if(a.trapFocus)if(b===0){var c;(c=a.focusEscapeNotifier)==null||mCc(c)}else{var d;(d=a.focusEscapeNotifier)==null||Sy(d)}else a.focusEscaped.emit(b)});oab(this,this.dateTime)};
var nab=function(a,b){a.date=b;a.dateTime=l1a(b,a.timeFormControl.value);a.dateSelectionChange.emit(b)};jV.prototype.saveChanges=function(){this.includeTimePicker&&(this.dateTime=l1a(this.dateTime,this.timeFormControl.value),this.dateTimeChange.emit(this.dateTime));this.dateChange.emit(this.date)};var pab=function(a){var b=a.includeTimePicker?a.dateTime:a.date;if(b=b instanceof ao?b:CTa(b))a.calendar.activeDate=b;a.calendar._getCurrentViewComponent()._focusActiveCell(!1)};
jV.prototype.showPicker=function(a){a instanceof HTMLInputElement&&a.showPicker()};var oab=function(a,b){var c=new ql("HH:mm");a.timeFormControl.setValue(a.includeTimePicker&&b?c.format(b):"")};jV.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(jV)))(b||jV)}}();
jV.\u0275cmp=D({type:jV,selectors:[["b-date-time-picker-content"]],viewQuery:function(a,b){a&1&&(hg(BR,7),hg(ysd,7));if(a&2){var c;lg(c=mg())&&(b.calendar=c.first);lg(c=mg())&&(b.content=c.first)}},inputs:{required:"required",date:"date",dateTime:"dateTime",trapFocus:"trapFocus",todayButtonEnabled:"todayButtonEnabled",noneButtonEnabled:"noneButtonEnabled",renderPanel:"renderPanel",includeTimePicker:"includeTimePicker",calendarButtonRow:"calendarButtonRow"},outputs:{dateChange:"dateChange",dateTimeChange:"dateTimeChange",
cancelClicked:"cancelClicked",saveClicked:"saveClicked",dateSelectionChange:"dateSelectionChange",focusEscaped:"focusEscaped"},standalone:!1,features:[Ef],decls:15,vars:11,consts:[["content",""],[1,"b-optional-calendar-button-row"],[3,"selectedChange","selected","startAt"],["appearance","outline"],[1,"actions"],[1,"b-calendar-button-row"],["type","button","mat-button","",1,"cancel",3,"click"],["type","button","mat-button","",1,"save",3,"click"],[4,"ngTemplateOutlet"],["type","time","matInput","",
"aria-label","Time Picker","required","",1,"time-input",3,"focus","formControl"],["type","button","mat-button","",1,"today"],["type","button","mat-button","",1,"none"],["type","button","mat-button","",1,"today",3,"click"],["type","button","mat-button","",1,"none",3,"click"]],template:function(a,b){if(a&1){var c=t();K(0,"div",null,0)(2,"div",1);F(3,lab,1,1,"ng-container");L();K(4,"mat-calendar",2);T(5,"toDateTime");T(6,"toDateTime");N("selectedChange",function(d){u(c);return v(nab(b,d))});L();F(7,
mab,2,1,"mat-form-field",3);K(8,"div",4);F(9,sab,4,2,"div",1);K(10,"div",5)(11,"button",6);N("click",function(){u(c);return v(b.cancelClicked.emit())});Q(12,"Cancel");L();K(13,"button",7);N("click",function(){u(c);b.saveChanges();return v(b.saveClicked.emit())});Q(14,"Save");L()()()()}a&2&&(wg("container",b.renderPanel),B(3),G(b.calendarButtonRow?3:-1),B(),I("selected",b.includeTimePicker?b.dateTime:U(5,7,b.date))("startAt",b.includeTimePicker?b.dateTime:U(6,9,b.date)),B(3),G(b.includeTimePicker?
7:-1),B(2),G(b.todayButtonEnabled||b.noneButtonEnabled?9:-1))},dependencies:function(){return[Sx,kB,gB,BR,hK,xj,fE,yE,sE,SD,FE,zsd]},styles:[".b-optional-calendar-button-row[_ngcontent-%COMP%]{margin:0 1rem}.actions[_ngcontent-%COMP%]{text-align:end}.actions[_ngcontent-%COMP%]   div.b-optional-calendar-button-row[_ngcontent-%COMP%]{width:fit-content;margin:auto;align-content:center}.container[_ngcontent-%COMP%]{box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3),0px 2px 6px 2px rgba(0, 0, 0, 0.15);padding:4px;border-radius:8px;background-color:#fff;background-color:var(--surface-default)}mat-calendar[_ngcontent-%COMP%]{width:288px;height:342px}mat-form-field[_ngcontent-%COMP%]{--mat-form-field-container-height: 20px;width:100px;margin:18px}.dark-mode   [_nghost-%COMP%]   input[type=time][_ngcontent-%COMP%]{color-scheme:dark}input[type=time][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{background-color:#fff;background-color:var(--surface-default)}/*# sourceMappingURL=date_time_picker_content.css.map */"]});
var zsd=function(){};zsd.prototype.transform=function(a){var b;return(b=CTa(a))!=null?b:void 0};zsd.\u0275fac=function(a){return new (a||zsd)};zsd.\u0275pipe=cf({name:"toDateTime",type:zsd,pure:!0,standalone:!1});var Asd=[{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"}],kV=function(){Z.call(this);var a=this;this.overlay=p(Tz);this.element=p(Hd);this.hostEl=p(Hd);this.openOnEnter=this.openOnClick=!0;this.includeTimePicker=this.required=this.focusTrapHost=!1;this.selectedChange=new aQ;this.selectedDateTimeChange=
new aQ;this.dateSelectionChange=new aQ;this.includeTimePickerChange=new aQ;this.onClose=new aQ;this.opened=!1;this.destroyed$.subscribe(function(){var b;(b=a.overlayRef)==null||b.dispose()})};Y(kV,Z);h=kV.prototype;h.onHostEnter=function(a){this.openOnEnter&&this.open();a.preventDefault();a.stopPropagation()};h.onClickHost=function(a){this.openOnClick&&this.open();a.preventDefault();a.stopPropagation()};
h.open=function(){this.opened||(this.overlayRef=this.createOverlay(),this.attach(),this.opened=!0)};h.close=function(a){a=a===void 0?!1:a;if(this.opened){var b;(b=this.overlayRef)==null||b.dispose();this.overlayRef=void 0;this.opened=!1;a||this.hostEl.nativeElement.focus();this.onClose.emit()}};h.onHostTab=function(a){this.focusTrapHost&&this.pickerContent&&this.pickerContent.focusEscapeNotifier&&(Sy(this.pickerContent.focusEscapeNotifier),a.preventDefault())};
h.onHostShiftTab=function(a){this.focusTrapHost&&this.pickerContent&&this.pickerContent.focusEscapeNotifier&&(mCc(this.pickerContent.focusEscapeNotifier),a.preventDefault())};h.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};
h.attach=function(){var a=this,b=new Nz(jV),c;this.pickerContent=(c=this.overlayRef)==null?void 0:c.attach(b).instance;var d;(d=this.overlayRef)==null||d.updatePosition();setTimeout(function(){a.connectValues()})};h.getPositionStrategy=function(){return Fz(Gz(Hz(Lz(this.overlay.position(),this.element)),8),Asd)};h.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
h.connectValues=function(){var a=this;if(this.pickerContent&&this.overlayRef){var b=te(this.overlayRef._detachments,this.destroyed$);this.pickerContent.date=this.selected;this.pickerContent.dateTime=this.selectedDateTime;this.pickerContent.required=this.required;this.pickerContent.trapFocus=!this.focusTrapHost;(this.pickerContent.includeTimePicker=this.includeTimePicker)&&oab(this.pickerContent,this.selectedDateTime);this.focusTrapHost&&this.pickerContent.focusEscaped.pipe(zf(b)).subscribe(function(){setTimeout(function(){return a.element.nativeElement.focus()})});
this.pickerContent.dateChange.pipe(zf(b)).subscribe(function(c){a.selectedChange.emit(c)});this.pickerContent.dateTimeChange.pipe(zf(b)).subscribe(function(c){a.selectedDateTimeChange.emit(c)});this.pickerContent.dateSelectionChange.pipe(zf(b)).subscribe(function(c){a.dateSelectionChange.emit(c)});te(this.pickerContent.saveClicked,this.pickerContent.cancelClicked,this.overlayRef.backdropClick(),this.overlayRef.keydownEvents().pipe(ue(function(c){return c.code==="Escape"}))).pipe(zf(b)).subscribe(function(){a.close()})}};
kV.\u0275fac=function(a){return new (a||kV)};
kV.\u0275dir=af({type:kV,selectors:[["","bDateTimePickerToggle",""]],hostAttrs:["aria-haspopup","true"],hostVars:1,hostBindings:function(a,b){a&1&&N("click",function(c){return b.onClickHost(c)})("keydown.enter",function(c){return b.onHostEnter(c)})("keydown.tab",function(c){return b.onHostTab(c)})("keydown.shift.tab",function(c){return b.onHostShiftTab(c)});a&2&&If("aria-expanded",b.opened||void 0)},inputs:{openOnClick:"openOnClick",openOnEnter:"openOnEnter",focusTrapHost:[0,"bDateTimePickerToggleFocusTrapHost",
"focusTrapHost"],required:[0,"bDateTimePickerToggleRequired","required"],selected:[0,"bDateTimePickerToggleSelected","selected"],selectedDateTime:[0,"bDateTimePickerToggleSelectedDateTime","selectedDateTime"],includeTimePicker:[0,"bDateTimePickerToggleIncludeTimePicker","includeTimePicker"]},outputs:{selectedChange:"bDateTimePickerToggleSelectedChange",selectedDateTimeChange:"bDateTimePickerToggleSelectedDateTimeChange",dateSelectionChange:"bDateTimePickerToggleDateSelectionChange",includeTimePickerChange:"bDateTimePickerToggleIncludeTimePickerChange",
onClose:"bDateTimePickerToggleOnClose"},exportAs:["bDateTimePickerToggle"],standalone:!1,features:[Ef]});var Bsd=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Csd=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Dsd=function(a){this.patternParts_=[];this.dateTimeSymbols_=WF;typeof a=="number"?this.applyStandardPattern_(a):this.applyPattern_(a)};
Dsd.prototype.applyPattern_=function(a){for(var b=!1,c="",d=0;d<a.length;d++){var e=a.charAt(d);if(Bsd.test(e))for(c.length>0&&(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("GyMdkHmsSEDabBhKzZvQL".indexOf(e)>=0){c.length>0&&(this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),
c="");for(var f=a.charAt(d),g=d+1;g<a.length&&a.charAt(g)==f;)g++;f=g-d;f<=0?g=!1:(g="MydhHmsSDkK".indexOf(e),g=g>0||g==0&&f<3);this.patternParts_.push({text:e,count:f,abutStart:!1,numeric:g});d+=f-1}else e=="'"?d+1<a.length&&a.charAt(d+1)=="'"?(c+="'",d++):b=!0:c+=e}c.length>0&&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};Dsd.prototype.applyStandardPattern_=function(a){a>11&&(a=10);if(a<4)var b=this.dateTimeSymbols_.DATEFORMATS[a];else a<8?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)};
Dsd.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(f.count>0&&("abBhHkKm".indexOf(f.text.charAt(0))<0||f.count>2||f.abutStart))throw Error("Ie`"+f.text.charAt(0));}f=new Esd;c=[0];f.dayPeriodIndex=-1;for(var g=0;g<this.patternParts_.length&&!(d&&c[0]>=a.length);g++){if(this.patternParts_[g].count==0){a:{var k=a;var l=c,r=this.patternParts_[g],w=d;if(r.text.match(Bsd)!=null){if(r=l[0],
Fsd(k,l),l[0]>r){k=!0;break a}}else{if(k.indexOf(r.text,l[0])==l[0]){l[0]+=r.text.length;k=!0;break a}if(w&&r.text.indexOf(k.substring(l[0]))==0){l[0]+=k.length-l[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[g].abutStart){a:{l=a;r=c;w=g;var x=r[0],C=0;for(k=w;k<this.patternParts_.length;k++){var H=this.patternParts_[k],J=H.count;if(J===0)break;if(k==w&&(J-=C,C++,J==0)){k=0;break a}var O=k>w&&H.numeric,R=r[0];if(!Gsd(this,l,r,H,J,f,!1)||O&&r[0]-R<J)k=w-1,r[0]=x}k-=w}if(k<=0)return 0;
g+=k-1}else if(!Gsd(this,a,c,this.patternParts_[g],0,f,d))return 0}a:{a=e;if(b==null)throw Error("Je");f.era!=void 0&&f.year!=void 0&&f.era==0&&f.year>0&&(f.year=-(f.year-1));f.year!=void 0&&b.setFullYear(f.year);d=b.getDate();b.setDate(1);f.month!=void 0&&b.setMonth(f.month);f.day!=void 0?b.setDate(f.day):(e=XTc(b.getFullYear(),b.getMonth()),b.setDate(d>e?e:d));typeof b.setHours==="function"&&(f.hours==void 0&&(f.hours=b.getHours()),f.hours<12&&(f.ampm!=void 0&&f.ampm>0?f.hours+=12:f.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(f.dayPeriodName)||["night1","night2"].includes(f.dayPeriodName)&&f.hours>=6)&&(f.hours+=12)),b.setHours(f.hours));typeof b.setMinutes==="function"&&f.minutes!=void 0&&b.setMinutes(f.minutes);typeof b.setSeconds==="function"&&f.seconds!=void 0&&b.setSeconds(f.seconds);typeof b.setMilliseconds==="function"&&f.milliseconds!=void 0&&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&&f.hours>=24||f.minutes&&f.minutes>=60||f.seconds&&f.seconds>=60||f.milliseconds&&f.milliseconds>=1E3))b=!1;else{f.tzOffset!=void 0&&b.setTime(b.getTime()+(f.tzOffset-b.getTimezoneOffset())*60*1E3);f.ambiguousYear&&(a=new Date,a.setFullYear(a.getFullYear()-80),b.getTime()<a.getTime()&&b.setFullYear(a.getFullYear()+100));if(f.dayOfWeek!=void 0)if(f.day==void 0)f=(7+f.dayOfWeek-b.getDay())%7,f>3&&(f-=7),a=b.getMonth(),b.setDate(b.getDate()+f),b.getMonth()!=
a&&b.setDate(b.getDate()+(f>0?-7:7));else if(f.dayOfWeek!=b.getDay()){b=!1;break a}b=!0}}return b?c[0]:0};
var Gsd=function(a,b,c,d,e,f,g){Fsd(b,c);if(d.numeric&&e>0&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return Hsd(b,c,[a.dateTimeSymbols_.ERAS],function(k){return f.era=k}),!0;case "M":case "L":return Isd(a,b,c,e,d,f);case "E":return Hsd(b,c,[a.dateTimeSymbols_.WEEKDAYS,a.dateTimeSymbols_.SHORTWEEKDAYS],function(k){return f.dayOfWeek=k});case "B":case "b":return e=[],a=[[].concat(a.dateTimeSymbols_.AMPMS)],e.push("isAm"),e.push("isPm"),b=Hsd(b,c,a,function(k){return f.dayPeriodIndex=
k},g),f.dayPeriodName=e[f.dayPeriodIndex],g?b:!0;case "a":return b=Hsd(b,c,[a.dateTimeSymbols_.AMPMS],function(k){return f.ampm=k},g),g?b:!0;case "y":return Jsd(a,b,c,d,e,f);case "Q":return Hsd(b,c,[a.dateTimeSymbols_.QUARTERS,a.dateTimeSymbols_.SHORTQUARTERS],function(k){f.month=k*3;f.day=1});case "d":return Ksd(a,b,c,d,e,function(k){f.day=k}),!0;case "S":return Lsd(a,b,c,e,f);case "h":case "K":case "H":case "k":return b=Ksd(a,b,c,d,e,function(k){f.hours=d.text.charAt(0)==="h"&&k===12?0:k},g),g?
b:!0;case "m":return b=Ksd(a,b,c,d,e,function(k){f.minutes=k},g),g?b:!0;case "s":return Ksd(a,b,c,d,e,function(k){f.seconds=k}),!0;case "z":case "Z":case "v":return Msd(a,b,c,f);default:return!1}},Jsd=function(a,b,c,d,e,f){var g=c[0];e=Nsd(a,b,c,e);e===null&&(e=Nsd(a,b,c,0,!0));if(e===null)return!1;e>=0&&c[0]-g==2&&d.count==2?(a=e,b=(new Date).getFullYear()-80,c=b%100,f.ambiguousYear=a==c,a+=Math.floor(b/100)*100+(a<c?100:0),f.year=a):f.year=e;return!0},Isd=function(a,b,c,d,e,f){return e.numeric&&
Ksd(a,b,c,e,d,function(g){f.month=g-1})?!0:Hsd(b,c,[a.dateTimeSymbols_.MONTHS,a.dateTimeSymbols_.STANDALONEMONTHS,a.dateTimeSymbols_.SHORTMONTHS,a.dateTimeSymbols_.STANDALONESHORTMONTHS],function(g){f.month=g})},Lsd=function(a,b,c,d,e){var f=c[0];a=Nsd(a,b,c,d);if(a===null)return!1;c=c[0]-f;e.milliseconds=c<3?a*Math.pow(10,3-c):Math.round(a/Math.pow(10,c-3));return!0},Msd=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=Nsd(a,b,c,0,!0);
if(f===null)return!1;if(c[0]<b.length&&b.charAt(c[0])==":"){var g=f*60;c[0]++;f=Nsd(a,b,c,0);if(f===null)return!1;g+=f}else g=f,g=g<24&&c[0]-e<=3?g*60:g%100+g/100*60;d.tzOffset=-g;return!0},Ksd=function(a,b,c,d,e,f,g){g=g||!1;var k=c[0];a=Nsd(a,b,c,e);if(a===null)return!1;if(g&&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},Hsd=function(a,b,c,d,e){e=e||!1;for(var f,g=0;g<c.length;g++){f=b;for(var k=c[g],l=e,r=0,w=null,x=a.substring(f[0]).toLowerCase(),C=
0;C<k.length;C++){var H=k[C].toLowerCase();if(l&&H.indexOf(x)==0){r=x.length;w=C;break}k[C].length>r&&x.indexOf(H)==0&&(r=k[C].length,w=C)}w!==null&&(f[0]+=r);f=w;if(f!==null)return d(f),!0}return!1},Fsd=function(a,b){(a=a.substring(b[0]).match(Csd))&&(b[0]+=a[0].length)},Nsd=function(a,b,c,d,e){b=d>0?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 g=b.charCodeAt(f)-a.dateTimeSymbols_.ZERODIGIT;d.push(0<=g&&g<=9?String.fromCharCode(g+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)},Esd=function(){};Esd.prototype.ambiguousYear=!1;var Gkd=Array(31).fill(0).map(function(a,b){return""+(b+1)}),lV=function(){var a=Xz.apply(this,arguments)||this;a.locale=WF;return a};Y(lV,Xz);lV.prototype.setLocale=function(){throw Error("Ke");};lV.prototype.getYear=function(a){return a.getYear()};lV.prototype.getMonth=function(a){return a.getMonth()};lV.prototype.getDate=function(a){return a.getDate()};var Fkd=function(a,b){switch(b){case "long":return a.locale.WEEKDAYS;case "narrow":return a.locale.NARROWWEEKDAYS;default:return a.locale.SHORTWEEKDAYS}};
lV.prototype.getFirstDayOfWeek=function(){return(this.locale.FIRSTDAYOFWEEK+1)%7};lV.prototype.clone=function(a){return a.clone()};var yR=function(a,b,c){return new ao(a,b,c)};lV.prototype.parse=function(a,b){if(a===""||typeof a!=="string")return null;b=new Dsd(a.match(/\d{3,}/)?b:b.replace("yyyy","yy"));var c=new ao(new Date(a));b.parse(a,c);return c};lV.prototype.format=function(a,b){if(!this.isValid(a))throw Error("Le");return(new ql(b)).format(a)};
var wR=function(a,b){a=a.clone();a.add(new XF(b));return a},xR=function(a,b){a=a.clone();a.add(new XF(0,b));return a},vR=function(a,b){a=a.clone();a.add(new XF(0,0,b));return a},nDc=function(a){return a instanceof ao};h=lV.prototype;h.isValid=function(a){return!isNaN(a.getTime())};h.invalid=function(){return new ao(NaN)};h.sameDate=function(a,b){return a&&b?(new pm(a)).equals(b):!1};h.getHours=function(a){return a.getHours()};h.getMinutes=function(a){return a.getMinutes()};h.getSeconds=function(a){return a.getSeconds()};
h.setTime=function(a,b,c,d){a=this.clone(a);a.setHours(b);a.setMinutes(c);a.setSeconds(d);a.setMilliseconds(0);return a};lV.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(lV)))(b||lV)}}();lV.\u0275prov=Dc({token:lV,factory:lV.\u0275fac});var Osd=WF.DATEFORMATS[3];Osd=Osd.replace(/yyyy/,"yy").replace(/yy/,"yyyy");Osd==="M/d/yyyy"&&(Osd="MM/dd/yyyy");var Psd=WF.TIMEFORMATS.at(-1),Qsd={parse:{dateInput:Osd,timeInput:Psd},display:{dateInput:Osd,monthYearLabel:cG.YEAR_MONTH_ABBR,dateA11yLabel:cG.MONTH_DAY_YEAR_MEDIUM,monthYearA11yLabel:cG.YEAR_MONTH_FULL,timeInput:Psd,timeOptionLabel:Psd}};var mV=function(){};mV.\u0275fac=function(a){return new (a||mV)};mV.\u0275mod=$e({type:mV});mV.\u0275inj=Fc({providers:[{provide:Xz,useClass:lV},{provide:aA,useValue:Qsd}]});var nV=function(){};nV.\u0275fac=function(a){return new (a||nV)};nV.\u0275mod=$e({type:nV});nV.\u0275inj=Fc({imports:[WO,mB,JR,iK,ez,DE,EE,TD,GE,mV]});var Rsd=["popupField"],Ssd=["fieldContent"],Tsd=["popupOverlay"],Usd=["overlayContent"],xab=function(a){return{q:a}},Vsd=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"}],oV=function(){Z.apply(this,arguments);this.cdr=p(bQ,{self:!0});this.element=p(Hd);this.overlay=p(Tz);this.viewContainerRef=p(eg);this.dateFormatter=p(hS);this.activeSession=p(uu);this.constants=p(gS);this.appEvents=p(UO);this.IssuePriority=Dbd;this.googDateValue=null;this.autocompleteActive=!1;this.readonlyTooltip=
this.displayIcon=this.displayValue=null;this.textBuffer="";this.enableTeamAnnotations=this.activeSession.isInternalSession();this.isActive=this.multiline=this.enableWaldoAvailability=!1;this.title=this.name="";this.displayValueOverride=this.value=null;this.teamId="";this.clearable=!1;this.choices=[];this.customFieldId=0;this.showEnumTitle=!1;this.valueChange=new aQ;this.disabled=this.readonly=!1;this.tooltip="";this.showAvailability=this.showHotkeyHint=this.truncate=!1};Y(oV,Z);oV.\u0275dir=Z.\u0275dir;
h=oV.prototype;h.ngOnInit=function(){var a=this;this.enableWaldoAvailability=this.activeSession.getFlag("enableWaldoAvailability")&&this.activeSession.isInternalSession()&&this.showAvailability;this.subscriptions.add(this.appEvents.openEditField.subscribe(function(b){b!==a&&a.isActive&&(a.isActive=!1,Wsd(a),a.cdr.detectChanges())}));this.subscriptions.add(Hmd(this.dateFormatter,function(){Xsd(a);a.cdr.detectChanges()}));this.destroyed$.subscribe(function(){Wsd(a)})};
h.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.overlayRef&&this.overlayRef.dispose()};h.ngOnChanges=function(a){["value","type","displayValueOverride","choices"].some(function(b){return b in a})&&Xsd(this)};h.ngAfterViewInit=function(){this.popupField&&(this.overlayRef=this.overlay.create({positionStrategy:this.getPositionStrategy(),scrollStrategy:this.overlay.scrollStrategies.reposition()}))};
h.getPositionStrategy=function(){return Fz(Gz(Hz(Lz(this.overlay.position(),this.fieldContent).setOrigin(this.fieldContent),!1),5),Vsd)};
var Wsd=function(a){var b;((b=a.overlayRef)==null?0:b.hasAttached())&&a.overlayRef.detach()},Eab=function(a,b){switch(b.keyCode){case 13:case 32:b.stopPropagation();b.preventDefault();Zr(a,b,!0,!1);break;case 27:b.stopPropagation(),Zr(a,b,!1,!0)}},Zr=function(a,b,c,d){if((b==null?0:b.target)&&"nodeName"in b.target&&b.target.nodeName==="A"||a.type==="ENUM"&&a.choices.length===0)b==null||b.stopPropagation();else{if(!c||a.disabled||a.readonly){if(a.isActive=!1,Wsd(a),d){var e;(e=a.popupField)==null||
e.nativeElement.focus()}}else if(a.appEvents.openEditField.next(a),a.isActive=!0,a.textBuffer=a.value!=null?String(a.value):"",a.type=="DATE"&&(c=a.value,a.googDateValue=c?Sq(c):null),a.type==="ENUM"&&a.enumMenuTrigger.openMenu(),a.type!=="ENUM"){Ysd(a);var f=a.element.nativeElement;pe(document,"click").pipe(ue(function(g){return!f.contains(g.target)}),lf(1),zf(a.overlayRef._detachments),zf(a.destroyed$)).subscribe(function(){Zr(a,null,!1,!1)})}b==null||b.stopPropagation();a.cdr.detectChanges()}};
oV.prototype.schedule=function(a){var b=qe.schedule(a);this.destroyed$.subscribe(function(){b.unsubscribe()})};oV.prototype.getDisplayValue=function(a){return this.displayValue===null?a:this.displayValue};
var Xsd=function(a){var b=a.value;a.displayIcon=null;switch(a.type){case "ENUM":if(a.title==="Type"){var c;a.displayIcon=(c=a.constants.issueTypeIcons.get(b))!=null?c:null}(c=a.choices.find(function(d){return d.value==b}))?(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(Sq(b)):a.displayValue=null;a.readonlyTooltip=
null;break;default:a.displayValueOverride?a.displayValue=a.displayValueOverride:a.displayValue=b?String(b):null,a.readonlyTooltip=null}};oV.prototype.setFieldValue=function(a){this.disabled||this.readonly||(this.type==="DATE"&&a&&(a=j1a(a)),this.type==="NUMERIC"&&a===""&&(a=null),mm(this.value,a)?this.type==="ENUM"&&Zr(this,null,!1,!0):(Zr(this,null,!1,!0),this.value=a,this.valueChange.emit(this.value)))};
var abb=function(a){if(a.type===void 0)throw Error("Me");a.type==="NUMERIC"&&(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("Ne");default:wb(a.type,"FieldType")}};oV.prototype.clearFieldValue=function(){this.value=null;this.valueChange.emit(this.value);Zr(this,null,!1,!0)};
var Ysd=function(a){Wsd(a);var b=a.overlayRef.attach(new Oz(a.popupOverlay,a.viewContainerRef)).rootNodes[0];a.schedule(function(){if(a.type==="TEXT"||a.type==="NUMERIC"){var c=b.querySelector("textarea, input");c&&(c.focus(),c.select())}else a.type==="DATE"&&(c=b.querySelector(".goog-date-picker"))&&c.focus()})};oV.prototype.getTooltip=function(){return this.readonly?this.readonlyTooltip||"":this.tooltip?this.tooltip:this.title?"Set "+this.title:""};
oV.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(oV)))(b||oV)}}();
oV.\u0275cmp=D({type:oV,selectors:[["b-edit-field"]],viewQuery:function(a,b){a&1&&(hg(iH,5),hg(Rsd,5),hg(Ssd,5),hg(Tsd,5),hg(Usd,5));if(a&2){var c;lg(c=mg())&&(b.enumMenuTrigger=c.first);lg(c=mg())&&(b.popupField=c.first);lg(c=mg())&&(b.fieldContent=c.first);lg(c=mg())&&(b.popupOverlay=c.first);lg(c=mg())&&(b.overlayContent=c.first)}},inputs:{multiline:"multiline",name:"name",title:"title",type:"type",value:"value",displayValueOverride:"displayValueOverride",teamId:"teamId",clearable:"clearable",
choices:"choices",customFieldId:"customFieldId",showEnumTitle:"showEnumTitle",readonly:"readonly",disabled:"disabled",tooltip:"tooltip",truncate:"truncate",showHotkeyHint:"showHotkeyHint",showAvailability:"showAvailability"},outputs:{valueChange:"valueChange"},standalone:!1,features:[Gg([bQ]),Ef,jx],decls:12,vars:4,consts:[["enumMenu","matMenu"],["renderFieldContent",""],["popupOverlay",""],["popupField","","tooltip","matTooltip"],["fieldContent",""],["overlayContent",""],[1,"bv2-issue-metadata-field"],
["role","button",1,"keep-focus-ring",3,"class","bv2-disabled","bv2-readonly","matTooltip"],[3,"class","bv2-disabled","bv2-readonly","matTooltip"],[1,"bv2-issue-metadata-footer"],[1,"keep-focus-ring"],["matMenuContent",""],["role","button",1,"keep-focus-ring",3,"click","keydown","keydown.escape","matTooltip"],[3,"class"],[1,"bv2-editable-value"],[1,"bv2-editable-value",3,"matMenuTriggerFor"],[1,"overflow-ellipsis"],[1,"bv2-editable-value",3,"menuClosed","matMenuTriggerFor"],[4,"ngTemplateOutlet"],
["routerLink","/issues",1,"subtle-link",3,"queryParams"],["type","button","mat-button","","aria-haspopup","true","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"menuClosed","matMenuTriggerFor"],[3,"matTooltip"],[1,"keep-focus-ring",3,"modelChange","disabled","aria-label","model"],[3,"click"],["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",3,"b-menu-item-checked","disabled"],["type","button",
"mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",3,"click","disabled"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"click","onHotkey","disabled","hotkey"],[1,"flex-kids-x","align-items-center","gap-s"],[1,"icon-s","b-icon-prefix",3,"svgIcon"],[1,"muted","plain-monospace","margin-left-auto","padded-s-left"],[1,"bv2-editable-value",3,"keydown","click"],[1,"icon-s","muted",3,"svgIcon"],[1,"bv2-metadata-field-value",
3,"p0","p1","maxWidth","modelValue","disabled"],[1,"bv2-metadata-field-value",3,"class","maxWidth","modelValue","disabled"],[1,"chippy",3,"maxWidth","modelValue","disabled"],[1,"bv2-metadata-field-value",3,"maxWidth","modelValue","disabled"],[1,"bv2-edit-button"],[1,"issue-metadata-field-dropdown-icon"],[1,"issue-metadata-field-edit-icon"],["svgIcon","arrow-dropdown"],["svgIcon","edit-outline"],["role","dialog"],[1,"bv2-text-field-edit"],[3,"dateSelectionChange","saveClicked","cancelClicked","required",
"date"],[1,"bv2-text-field-edit",3,"click"],["spellcheck","false",3,"ngModel"],["step","any","spellcheck","false",3,"ngModel"],[1,"bv2-text-edit-dialog-buttons"],["type","button","mat-flat-button","","color","primary",1,"medium","field-popup-button",3,"click","disabled","matTooltip"],["svgIcon","done"],["type","button","mat-stroked-button","","color","primary",1,"medium","field-popup-button",3,"click","matTooltip"],["svgIcon","close"],["spellcheck","false",3,"ngModelChange","keydown","ngModel"],["step",
"any","spellcheck","false",3,"ngModelChange","keydown","ngModel"]],template:function(a,b){a&1&&(K(0,"div")(1,"div",6),F(2,Fab,6,15,"div",7),F(3,Hab,3,13,"div",8),M(4,"div",9),L(),K(5,"mat-menu",10,0),E(7,Nab,3,1,"ng-template",11),L()(),E(8,Xab,12,6,"ng-template",null,1,Mg)(10,ebb,6,4,"ng-template",null,2,Mg));a&2&&(B(),wg("active",b.isActive&&!b.readonly&&!b.disabled),B(),G(b.type!=="BOOL"?2:-1),B(),G(b.type==="BOOL"?3:-1))},dependencies:[Sx,Jy,hF,jV,xj,fE,mE,pU,kB,gB,VJ,fH,dH,eH,iH,vK,nA,QU,UU,hK,
Ux],styles:[".bv2-text-edit-dialog-buttons[_ngcontent-%COMP%]   .mat-mdc-unelevated-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{--mat-button-filled-icon-spacing: 0px;--mat-button-filled-icon-offset: 0px}.bv2-text-edit-dialog-buttons[_ngcontent-%COMP%]   .mat-mdc-outlined-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{--mat-button-outlined-icon-spacing: 0px;--mat-button-outlined-icon-offset: 0px}",".bv2-issue-metadata-field-edit[_ngcontent-%COMP%] { position: relative; }"]});
var pV={ENUM:"ENUM",BOOL:"BOOL",DATE:"DATE",TEXT:"TEXT",NUMERIC:"NUMERIC"},qV=function(){};qV.\u0275fac=function(a){return new (a||qV)};qV.\u0275mod=$e({type:qV});qV.\u0275inj=Fc({imports:[TU,NU,WO,nV,DE,qU,mB,WJ,wK,RU,iU,fV,VU,hV,iK]});var gbb=[["year",31536E3],["month",2592E3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]],hbb={year:"yr",month:"mo",week:"w",day:"d",hour:"h",minute:"m",second:"s"};var Zsd=[{name:"local",id:""},{name:"UTC",id:"UTC"},{name:"MTV",id:"America/Los_Angeles"}],$sd=Symbol("Oe"),atd=Symbol("Oe"),rV=function(){var a=this;this.dateFormatter=p(vS);this.paddingLeftPx=5;this.timestampMs$=new uf(1);this.timestampIso$=this.timestampMs$.pipe(A(function(b){return b?(new Date(b)).toISOString():""}));this.timestampDate$=this.timestampMs$.pipe(A(function(b){if(b!==void 0)return new Date(b)}));this[$sd]=this.timestampDate$.pipe(yf(function(b){if(b===void 0)return ce("");var c=b.getTime()/
1E3;switch(a.mode){case "date":return a.dateFormatter.formatUserCalendar(b);case "time":return a.dateFormatter.formatUserTime(b);case "datetime":return lnd(a.dateFormatter,b);case "relativepast":return b=$r(c),ce(b);case "relativepastshort":var d;return ce((d=$r(c,!0))!=null?d:"");case "relativepasttiny":var e;return ce((e=$r(c,!0,1))!=null?e:"");default:return wb(a.mode)}}));this[atd]=this.timestampDate$.pipe(yf(function(b){return b===void 0?ce(""):ie(Zsd.map(function(c){return mnd(a.dateFormatter,
b,c.id).pipe(A(function(d){return{formatted:d,tzName:c.name}}))})).pipe(btd)}));this.vars$=ie([this[$sd],this[atd]]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return{formatted:b,title:c}}))};rV.prototype.ngOnInit=function(){};
da.Object.defineProperties(rV.prototype,{timestamp:{configurable:!0,enumerable:!0,set:function(a){var b=this.timestampMs$,c=b.next;a=a!=null?typeof a==="number"?a:typeof a==="string"?Date.parse(a):a.seconds*1E3:void 0;a=a==null||isNaN(a)?void 0:a;c.call(b,a)}},date:{configurable:!0,enumerable:!0,set:function(a){a&&this.timestampMs$.next(a.valueOf())}}});rV.\u0275fac=function(a){return new (a||rV)};
rV.\u0275cmp=D({type:rV,selectors:[["b-formatted-date-time"]],inputs:{timestamp:"timestamp",date:"date",mode:"mode",paddingLeftPx:"paddingLeftPx"},standalone:!1,decls:2,vars:3,consts:[[3,"title","style"],[3,"title"]],template:function(a,b){a&1&&(F(0,ibb,3,8,"time",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.vars$))?0:-1,c)}},dependencies:[Tx],encapsulation:2,changeDetection:0});
var btd=Sd(A(function(a){var b=new Map;a=m(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(),function(e){return e.formatted+" ("+e.tzNames.join("/")+")"}).join("\n")}));var sV=function(){Z.apply(this,arguments);var a=this;this.changelistApi=p(EO);this.emailToUser=xm;this.providedChangelistId$=new uf(1);this.changelist$=this.providedChangelistId$.pipe(yf(function(b){return a.changelistApi.getChangelistDetails(b)}),vf({refCount:!0,bufferSize:1}));this.init=new uf(1)};Y(sV,Z);sV.\u0275dir=Z.\u0275dir;sV.prototype.ngOnInit=function(){var a=this;this.changelist$.pipe(lf(1),zf(this.destroyed$)).subscribe(function(){a.init.next()})};
sV.prototype.ngOnChanges=function(a){a.changelistId&&this.providedChangelistId$.next(this.changelistId)};sV.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(sV)))(b||sV)}}();
sV.\u0275cmp=D({type:sV,selectors:[["b-changelist-card"]],inputs:{changelistId:"changelistId"},outputs:{init:"init"},standalone:!1,features:[Ef,jx],decls:4,vars:3,consts:[["role","dialog","aria-label","Changelist hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"card"],[3,"href"],[1,"author"],[1,"description"],[3,"innerHTML"],[3,"user","hovercardEnabled"],["mode","datetime",1,"float-right",3,"timestamp"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),F(2,mbb,16,5,"div",
2),T(3,"async"),L()());if(a&2){var c;B(2);G((c=U(3,1,b.changelist$))?2:-1,c)}},dependencies:[ZU,rV,Tx,eV],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 tV=function(){this.analytics=p(eQ);this.config=Object.assign({},new OK,{showDelay:400,hideDelay:400,position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-20}]})};tV.prototype.ngOnInit=function(){};tV.prototype.trackClick=function(){this.analytics.trackEvent("editIssue","click","changelistChip")};tV.\u0275fac=function(a){return new (a||tV)};
tV.\u0275cmp=D({type:tV,selectors:[["b-changelist-chip"]],inputs:{changelistId:"changelistId"},standalone:!1,decls:7,vars:5,consts:[["card","onedevHovercard"],["cardBody",""],["target","_blank",1,"bv2-metadata-link",3,"click","href","onedevHovercardTrigger","onedevHovercardConfig"],[1,"suffix"],[3,"onedevIsHovercardReady","changelistId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","changelistId"]],template:function(a,b){if(a&1){var c=t();K(0,"a",2);N("click",function(){u(c);return v(b.trackClick())});
Q(1);K(2,"span",3);Q(3,"CL");L()();K(4,"onedev-hovercard",null,0);E(6,nbb,2,2,"b-changelist-card",4);L()}a&2&&(a=qg(5),I("href","http://critique.corp.google.com/"+b.changelistId,Ne)("onedevHovercardTrigger",a)("onedevHovercardConfig",b.config),If("aria-label","Changelist "+b.changelistId),B(),S(" ",b.changelistId," "))},dependencies:[KK,LK,SK,MK,sV],styles:["[_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--c100);color:#185abc;color:var(--link-high-contrast);border-radius:12px;margin:1px 0;padding:0 8px}[_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]   .suffix[_ngcontent-%COMP%]{color:#202124;color:var(--text);border-left:1px solid;border-left-color:#bdc1c6;border-left-color:var(--c400);padding-left:5px;margin-left:2px}[_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]:active, [_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]:hover{background-color:#e8eaed;background-color:var(--c200);text-decoration:none}.dark-mode   [_nghost-%COMP%]     .bv2-metadata-link{background-color:#e8eaed;background-color:var(--c200);color:#1a73e8;color:var(--link)}.dark-mode   [_nghost-%COMP%]     .bv2-metadata-link:active, .dark-mode   [_nghost-%COMP%]     .bv2-metadata-link:hover{background-color:#dadce0;background-color:var(--c300)}\n/*# sourceMappingURL=changelist_chip.css.map */"]});var uV=function(){this.activeSession=p(uu);this.analytics=p(eQ);this.gerritUrl="";this.isInternal=this.activeSession.getFrontendAccessMode()==="INTERNAL"};uV.prototype.ngOnInit=function(){};uV.prototype.ngOnChanges=function(a){a.change&&(this.gerritUrl=Vq(this.change,this.isInternal))};uV.prototype.trackClick=function(){this.analytics.trackEvent("editIssue","click","gerritChangesChip")};uV.\u0275fac=function(a){return new (a||uV)};
uV.\u0275cmp=D({type:uV,selectors:[["b-gerrit-change-chip"]],inputs:{change:[0,"gerritChange","change"]},standalone:!1,features:[jx],decls:5,vars:8,consts:[["target","_blank",1,"bv2-metadata-link",3,"click","href"],[1,"suffix"]],template:function(a,b){a&1&&(K(0,"a",0),N("click",function(){return b.trackClick()}),Q(1),K(2,"span",1),Q(3),T(4,"titlecase"),L()());a&2&&(If("aria-label",Fg("",b.change.host," ",b.change.changeNumber)),I("href",b.gerritUrl,Ne),B(),S(" ",b.change.changeNumber," "),B(2),yg(U(4,
6,b.change.host)))},dependencies:[Vx],styles:["[_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--c100);color:#185abc;color:var(--link-high-contrast);border-radius:12px;margin:1px 0;padding:0 8px}[_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]   .suffix[_ngcontent-%COMP%]{color:#202124;color:var(--text);border-left:1px solid;border-left-color:#bdc1c6;border-left-color:var(--c400);padding-left:5px;margin-left:2px}[_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]:active, [_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]:hover{background-color:#e8eaed;background-color:var(--c200);text-decoration:none}.dark-mode   [_nghost-%COMP%]     .bv2-metadata-link{background-color:#e8eaed;background-color:var(--c200);color:#1a73e8;color:var(--link)}.dark-mode   [_nghost-%COMP%]     .bv2-metadata-link:active, .dark-mode   [_nghost-%COMP%]     .bv2-metadata-link:hover{background-color:#dadce0;background-color:var(--c300)}\n/*# sourceMappingURL=gerrit_change_chip.css.map */"]});var vV=function(){this.activeSession=p(uu);this.gerritChange=this.changelist=void 0;this.enableGerritChanges=this.activeSession.getFlag("enableGerritChanges")};vV.prototype.ngOnInit=function(){};vV.prototype.ngOnChanges=function(a){a.codeChange&&((a=Wq(this.codeChange))?(this.changelist=void 0,this.gerritChange=a):(this.gerritChange=void 0,this.changelist=Number(this.codeChange)))};vV.\u0275fac=function(a){return new (a||vV)};
vV.\u0275cmp=D({type:vV,selectors:[["b-code-change-chip"]],inputs:{codeChange:"codeChange"},standalone:!1,features:[jx],decls:2,vars:1,consts:[[3,"changelistId"],[3,"gerritChange"]],template:function(a,b){a&1&&F(0,obb,1,1,"b-changelist-chip",0)(1,pbb,1,1,"b-gerrit-change-chip",1);a&2&&G(b.changelist?0:b.enableGerritChanges&&b.gerritChange?1:-1)},dependencies:[tV,uV],encapsulation:2});var wV=function(){};wV.\u0275fac=function(a){return new (a||wV)};wV.\u0275mod=$e({type:wV});wV.\u0275inj=Fc({imports:[WO]});var ctd=function(){this.id=0};ctd.\u0275fac=function(a){return new (a||ctd)};
ctd.\u0275cmp=D({type:ctd,selectors:[["changelist-link-plain"]],inputs:{id:"id"},standalone:!1,decls:5,vars:3,consts:[["card","onedevHovercard"],["cardBody",""],["target","_blank",1,"cl-link",3,"href","onedevHovercardTrigger"],[3,"onedevIsHovercardReady","changelistId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","changelistId"]],template:function(a,b){a&1&&(K(0,"a",2),Q(1),L(),K(2,"onedev-hovercard",null,0),E(4,qbb,2,2,"b-changelist-card",3),L());a&2&&(a=qg(3),I("href","http://critique.corp.google.com/"+
b.id,Ne)("onedevHovercardTrigger",a),B(),S(" cl/",b.id,"\n"))},dependencies:[KK,LK,SK,MK,sV],encapsulation:2});var xV=function(){};xV.\u0275fac=function(a){return new (a||xV)};xV.\u0275mod=$e({type:xV});xV.\u0275inj=Fc({imports:[WO,fV,hV,TK,wV]});var dtd=function(){};dtd.\u0275fac=function(a){return new (a||dtd)};dtd.\u0275mod=$e({type:dtd});dtd.\u0275inj=Fc({imports:[WO,TK,xV]});var yV=function(){Z.apply(this,arguments);var a=this;this.dialogRef=p(RA);this.data=p(TA);this.searchQuery$=new qf;this.hasPendingChanges=this.usePreviousSelectedValues=!1;this.originalSelectedValues=new Set(this.data.selectedValues);this.selectedValues=new Set(this.originalSelectedValues);this.previousSelectedValues=new Set(this.selectedValues);this.saveBtnLabel="Save";this.saveBtnTooltip="Save (Shift + Enter)";this.matchedValues$=this.searchQuery$.pipe(jf(300),nf(),A(function(b){if(b.trim()!==""){var c=
b.toLowerCase();return a.data.allowedValues.filter(function(d){return za(d.toLowerCase(),c)})}return etd(a)}))};Y(yV,Z);yV.\u0275dir=Z.\u0275dir;var etd=function(a){var b=a.data.allowedValues.filter(function(c){return!a.originalSelectedValues.has(c)});return[].concat(q(a.originalSelectedValues),q(b))};
yV.prototype.changeSelection=function(a){var b=this;a=a.options;this.previousSelectedValues=new Set(this.selectedValues);a.forEach(function(d){d.selected?b.selectedValues.add(d.value):b.selectedValues.delete(d.value)});a=EQa(this.originalSelectedValues,this.selectedValues);this.hasPendingChanges=!!a;var c=m(sbb(a));a=c.next().value;c=c.next().value;this.saveBtnLabel=a;this.saveBtnTooltip=c};var ftd=function(a){a.dialogRef.close(a.usePreviousSelectedValues?a.previousSelectedValues:a.selectedValues)};
yV.prototype.closeDialog=function(){this.dialogRef.close()};yV.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(yV)))(b||yV)}}();
yV.\u0275cmp=D({type:yV,selectors:[["b-custom-repeated-enum-dialog"]],hostBindings:function(a,b){a&1&&N("keydown.meta.enter",function(){return ftd(b)})("keydown.shift.enter",function(){return ftd(b)})("keydown.control.enter",function(){return ftd(b)})},standalone:!1,features:[Ef],decls:18,vars:10,consts:[["customRepeatedEnumSearchBox",""],["content",""],["mat-dialog-title",""],[1,"search-container"],["svgIcon","search"],["type","search",1,"search-box",3,"click","input","placeholder"],["mat-dialog-content",
"",1,"search-results"],[3,"selectionChange","keydown.meta.enter","keydown.shift.enter","keydown.control.enter"],["checkboxPosition","before",3,"selected","value","height"],["type","button","mat-button","","mat-dialog-close","","tooltip","Close dialog","aria-label","Close dialog","role","button",3,"click"],["type","button","mat-flat-button","","color","primary",3,"click","mat-dialog-close","matTooltip","disabled"],["checkboxPosition","before",3,"selected","value"]],template:function(a,b){if(a&1){var c=
t();K(0,"header",2)(1,"h2");Q(2);L();K(3,"div",3);M(4,"mat-icon",4);K(5,"input",5,0);N("click",function(){u(c);var e=qg(6);b.searchQuery$.next(e.value);return v()})("input",function(){u(c);var e=qg(6);b.searchQuery$.next(e.value);return v()});L()()();K(7,"section",6,1)(9,"mat-selection-list",7);N("selectionChange",function(e){u(c);return v(b.changeSelection(e))})("keydown.meta.enter",function(){u(c);return v(b.usePreviousSelectedValues=!0)})("keydown.shift.enter",function(){u(c);return v(b.usePreviousSelectedValues=
!0)})("keydown.control.enter",function(){u(c);return v(b.usePreviousSelectedValues=!0)});Nf(10,rbb,2,5,"mat-list-option",8,Mf);T(12,"async");L()();K(13,"mat-dialog-actions")(14,"button",9);N("click",function(){u(c);return v(b.closeDialog())});Q(15," Cancel ");L();K(16,"button",10);N("click",function(){u(c);return v(ftd(b))});Q(17);L()()}if(a&2){B(2);S("Search for ",b.data.customFieldTitle);B(3);I("placeholder","Type to filter "+b.data.customFieldTitle+" values");If("aria-label","Filter "+b.data.customFieldTitle+
" values");B(5);var d;Of((d=U(12,8,b.matchedValues$))!=null?d:etd(b));B(6);I("mat-dialog-close",!0)("matTooltip",b.saveBtnTooltip)("disabled",!b.hasPendingChanges);If("aria-label",b.saveBtnTooltip);B();S(" ",b.saveBtnLabel," ")}},dependencies:[Jy,kB,gB,VA,XA,ZA,YA,ZJ,nK,jK,vK,nA,Tx],styles:["[_nghost-%COMP%]     .mat-mdc-dialog-content{width:500px;overflow-y:overlay}[_nghost-%COMP%]     .mat-mdc-dialog-title{margin:0}[_nghost-%COMP%]     .mat-mdc-dialog-title::before{height:unset}[_nghost-%COMP%]     .mat-mdc-dialog-title h2{margin-top:0;margin-bottom:8px}[_nghost-%COMP%]     .search-container{background-color:#f1f3f4;background-color:var(--main-search-bg);display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:8px;width:100%;height:40px}[_nghost-%COMP%]     .search-container mat-icon{margin-left:8px}[_nghost-%COMP%]     .search-container input.search-box{color:#202124;color:var(--text-high-contrast);outline:none;border:none;background-color:rgba(0,0,0,0);margin-left:5px;height:100%;width:100%;padding-right:4px}[_nghost-%COMP%]     .mat-mdc-list-base{margin:0 -24px}[_nghost-%COMP%]     .mat-mdc-list-item{font-size:.8125rem}[_nghost-%COMP%]     .mat-mdc-list-item .mat-mdc-list-item-unscoped-content{overflow-wrap:break-word;white-space:normal}"]});
var zV=function(){this.dialog=p(UA);this.dialogRef=null};zV.prototype.open=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1)return c={panelClass:"no-jitter",data:a,ariaLabel:"Custom repeated enum dialog"},b.dialogRef=b.dialog.open(yV,c),z(e,fe(SA(b.dialogRef)),2);d=e.yieldResult;return e.return(Promise.resolve(d))})};zV.prototype.isOpen=function(){return this.dialogRef?this.dialogRef.getState()===0:!1};zV.\u0275fac=function(a){return new (a||zV)};
zV.\u0275prov=Dc({token:zV,factory:zV.\u0275fac,providedIn:"root"});var gtd=function(){};gtd.\u0275fac=function(a){return new (a||gtd)};gtd.\u0275mod=$e({type:gtd});gtd.\u0275inj=Fc({imports:[WO,DE,mB,TJ,pK,wK]});var htd=0,AV=function(){Z.call(this);var a=this;this.teamsService=p(OQ);this.ROUTES=qs;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.linkFocused=new aQ;this.linkBlurred=new aQ;this.teamName=this.teamId;this.teamLogoUrl=this.teamDescription="";this.providedTeamId$=new uf(1);this.teamLinkId="b-team-link-content-"+htd;this.fetchedTeam$=this.providedTeamId$.pipe(nf(),ue(function(b){return b!=="0"}),yf(function(b){return PQ(a.teamsService,b)}));this.isTeamFetched$=this.fetchedTeam$.pipe(A(function(){return!0}),
xf(!1));this.fetchedTeam$.pipe(zf(this.destroyed$)).subscribe(function(b){a.teamName=b.name;a.teamDescription=b.description;a.teamLogoUrl="https://moma-teams-photos.corp.google.com/logo/"+b.teamId});htd++};Y(AV,Z);AV.\u0275dir=Z.\u0275dir;AV.prototype.ngOnInit=function(){};AV.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};AV.prototype.trackClick=function(a){dr("teamCard","click",a,1)};
AV.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};AV.\u0275fac=function(a){return new (a||AV)};
AV.\u0275cmp=D({type:AV,selectors:[["b-team-card"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},outputs:{linkFocused:"linkFocused",linkBlurred:"linkBlurred"},standalone:!1,features:[Ef,jx],decls:21,vars:9,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,"click","routerLink"],["type","button","mat-button","",1,"primary","hovercard-action"],["target","_blank","aria-label","View team in Moma",3,"click","href"],["type","button","mat-button","",1,"gmat-button","primary","hovercard-action"],["svgIcon","pop-out",1,"icon-xxs"],["aria-label",
"View team association on component",3,"href"],["aria-label","View team association on component",3,"click","href"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"div",2),M(3,"img",3),K(4,"div",4)(5,"div",5),M(6,"mat-icon",6),Q(7),L(),K(8,"div",7),Q(9),L()()(),K(10,"p",8),Q(11),L(),K(12,"div",9)(13,"a",10),N("click",function(){return b.trackClick("viewTeamSettingsPage")}),K(14,"button",11),Q(15,"View team settings"),L()(),K(16,"a",12),N("click",function(){return b.trackClick("viewTeamInMoma")}),
K(17,"button",13),Q(18,"View team in Moma "),M(19,"mat-icon",14),L()(),F(20,tbb,3,1,"a",15),L()()());a&2&&(B(3),If("src",b.teamLogoUrl,Ne),B(4),S(" Team: ",b.teamName," "),B(2),S("Team ID: ",b.teamId),B(2),yg(b.teamDescription),B(2),I("routerLink",Eg("/teams/",b.teamId,"/edit")),B(3),I("href",Eg("https://moma.corp.google.com/team/",b.teamId),Ne),B(4),G(b.componentId?20:-1))},dependencies:[Jy,hF,kB,gB],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 BV=function(){};BV.\u0275fac=function(a){return new (a||BV)};BV.\u0275mod=$e({type:BV});BV.\u0275inj=Fc({imports:[WO,mB]});var itd=0,CV=function(){Z.call(this);var a=this;this.teamsService=p(OQ);this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.providedTeamId$=new uf(1);this.teamLinkId="b-team-link-content-"+itd++;this.teamName=this.teamId;this.fetchedTeam$=this.providedTeamId$.pipe(nf(),ue(function(b){return b!=="0"}),yf(function(b){return PQ(a.teamsService,b)}));this.isTeamFetched$=this.fetchedTeam$.pipe(A(function(){return!0}),xf(!1));this.fetchedTeam$.pipe(zf(this.destroyed$)).subscribe(function(b){a.teamName=
b.name})};Y(CV,Z);CV.\u0275dir=Z.\u0275dir;CV.prototype.ngOnInit=function(){};CV.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};CV.prototype.trackClick=function(a){dr("teamCard","click",a,1)};CV.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};CV.\u0275fac=function(a){return new (a||CV)};
CV.\u0275cmp=D({type:CV,selectors:[["b-team-display"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},standalone:!1,features:[Ef,jx],decls:7,vars:5,consts:[["card","onedevHovercard"],[3,"componentId","teamId"],["target","_blank",1,"card-anchor","keep-focus-ring",3,"href","onedevHovercardTrigger"],[3,"onedevHovercardTrigger"],["target","_blank",1,"card-anchor","keep-focus-ring",3,"click",
"href","onedevHovercardTrigger"],["svgIcon","pop-out",1,"icon-xs"],[1,"animated-loading-bar"]],template:function(a,b){a&1&&(F(0,wbb,2,2),T(1,"async"),Kf(2,zbb,2,2),K(3,"onedev-hovercard",null,0),Tf(5),M(6,"b-team-card",1),Uf(),L());a&2&&(G(b.teamId!="0"&&U(1,3,b.isTeamFetched$)?0:2),B(6),I("componentId",b.componentId)("teamId",b.teamId.toString()))},dependencies:[Jy,KK,SK,AV,Tx],encapsulation:2});var DV=function(){};DV.\u0275fac=function(a){return new (a||DV)};DV.\u0275mod=$e({type:DV});DV.\u0275inj=Fc({imports:[WO,TK,BV]});var jtd=0,EV=function(){this.elementRef=p(Hd);this.titleWhenExpanded=this.titleWhenCollapsed="";this.isExpanded=!1;this.iconName="";this.hasCompactTitleBar=!1;this.ariaLabel="";this.counter=jtd++;this.headerId="b-collapsible-panel-header-"+this.counter;this.id="b-collapsible-panel-"+this.counter};EV.prototype.toggleExpansion=function(){var a=this;this.isExpanded||setTimeout(function(){return a.elementRef.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})},200);this.isExpanded=!this.isExpanded};
da.Object.defineProperties(EV.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"}}});EV.\u0275fac=function(a){return new (a||EV)};
EV.\u0275cmp=D({type:EV,selectors:[["collapsible-panel"],["b-collapsible-panel"]],inputs:{titleWhenCollapsed:"titleWhenCollapsed",titleWhenExpanded:"titleWhenExpanded",isExpanded:"isExpanded",iconName:"iconName",hasCompactTitleBar:"hasCompactTitleBar",ariaLabel:"ariaLabel",title:"title"},standalone:!1,ngContentSelectors:["*"],decls:8,vars:14,consts:[[1,"collapsible-panel"],["type","button",1,"title-bar","unstyled-button",3,"click","mouseup","aria-label"],["size","small",1,"icon",3,"name"],[1,"title"],
[1,"horizontal-line"],["svgIcon","arrow-down",1,"icon-s"],["role","region",1,"content"]],template:function(a,b){a&1&&(bg(),K(0,"div",0)(1,"button",1),N("click",function(){return b.toggleExpansion()})("mouseup",function(){b.elementRef.nativeElement.querySelector(".title-bar").blur()}),F(2,Abb,1,1,"b-icon",2),F(3,Bbb,2,1,"span",3),F(4,Cbb,2,0,"div",4),M(5,"mat-icon",5),L(),K(6,"div",6),cg(7),L()());a&2&&(B(),wg("compact",b.hasCompactTitleBar),Hf("aria-label",Eg("",b.ariaLabel?b.ariaLabel+", ":"","collapsible panel")),
If("id",b.headerId)("aria-expanded",b.isExpanded)("aria-controls",b.id),B(),G(b.iconName?2:-1),B(),G(b.hasCompactTitleBar&&b.isExpanded?-1:3),B(),G(b.hasCompactTitleBar?4:-1),B(),I("@expandCollapseIcon",b.expandedState),B(),I("@expandCollapseContent",b.expandedState),If("id",b.id)("aria-labelledby",b.headerId))},dependencies:[Jy,sT],styles:['.collapsible-panel[_ngcontent-%COMP%]   .title-bar[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500;color:#1a73e8;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:row;padding:4px 4px 4px 7px;margin:6px 0px 6px 12px;width:calc(100% - 18px);border-radius:4px;transition:200ms background-color}.collapsible-panel[_ngcontent-%COMP%]   .title-bar[_ngcontent-%COMP%]:focus{background-color:#e8f0fe;background-color:var(--primary-c50)}.collapsible-panel[_ngcontent-%COMP%]   .title-bar[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex-grow:1}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);padding:0;margin:0;font-size:.75rem;letter-spacing:.025em;width:100%}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex-grow:0;margin-left:3px}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]   b-icon[_ngcontent-%COMP%]{min-width:20px}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]   .horizontal-line[_ngcontent-%COMP%]{border-bottom:1px solid var(--text-disabled);flex-grow:1;height:.8vh;margin-left:8px;margin-right:10px}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]   .icon-s[_ngcontent-%COMP%]{margin-right:-3px}.collapsible-panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{overflow:hidden}'],
data:{animation:[Zsa("expandCollapseContent",[Xi("expanded",Vi({height:"*",visibility:"visible"})),Xi("collapsed",Vi({height:"0",visibility:"hidden"})),Yi("expanded <=> collapsed",[Ui("200ms")])]),Zsa("expandCollapseIcon",[Xi("expanded",Vi({transform:"rotate(-180deg)"})),Xi("collapsed",Vi({transform:"*"})),Yi("expanded <=> collapsed",[Ui("200ms")])])]}});var FV=function(){};FV.\u0275fac=function(a){return new (a||FV)};FV.\u0275mod=$e({type:FV});FV.\u0275inj=Fc({imports:[WO,GU]});var GV=function(){};GV.\u0275fac=function(a){return new (a||GV)};GV.\u0275mod=$e({type:GV});GV.\u0275inj=Fc({});var HV=function(){};HV.\u0275fac=function(a){return new (a||HV)};HV.\u0275mod=$e({type:HV});HV.\u0275inj=Fc({});var ktd=new dd("CDK_DRAG_CONFIG");var ltd={capture:!0},mtd={passive:!1,capture:!0},ntd=function(){};ntd.\u0275fac=function(a){return new (a||ntd)};ntd.\u0275cmp=D({type:ntd,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}\n"],encapsulation:2,changeDetection:0});
var IV=function(){var a=this;this._ngZone=p(Rg);this._document=p(Rh);this._styleLoader=p(Zh);this._renderer=p(Ye).createRenderer(null,null);this._scroll=new qf;this._dropInstances=new Set;this._dragInstances=new Set;this._activeDragInstances=ng.apply(null,[[]].concat(q([])));this._draggingPredicate=function(b){return b.isDragging()};this._domNodesToDirectives=null;this.pointerMove=new qf;this.pointerUp=new qf;this._preventDefaultWhileDragging=function(b){a._activeDragInstances().length>0&&b.preventDefault()};
this._persistentTouchmoveListener=function(b){a._activeDragInstances().length>0&&(a._activeDragInstances().some(a._draggingPredicate)&&b.preventDefault(),a.pointerMove.next(b))}},otd=function(a,b){a._dropInstances.has(b)||a._dropInstances.add(b)},ptd=function(a,b){a._dragInstances.add(b);a._dragInstances.size===1&&a._ngZone.runOutsideAngular(function(){var c;(c=a._cleanupDocumentTouchmove)==null||c.call(a);a._cleanupDocumentTouchmove=a._renderer.listen(a._document,"touchmove",a._persistentTouchmoveListener,
mtd)})},rtd=function(a,b){a._dragInstances.delete(b);qtd(a,b);if(a._dragInstances.size===0){var c;(c=a._cleanupDocumentTouchmove)==null||c.call(a)}};
IV.prototype.startDragging=function(a,b){var c=this;if(!(this._activeDragInstances().indexOf(a)>-1)&&(this._styleLoader.load(ntd),this._activeDragInstances.update(function(f){return[].concat(q(f),[a])}),this._activeDragInstances().length===1)){b=b.type.startsWith("touch");var d=function(f){return c.pointerUp.next(f)},e=[["scroll",function(f){return c._scroll.next(f)},ltd],["selectstart",this._preventDefaultWhileDragging,mtd]];b?e.push(["touchend",d,ltd],["touchcancel",d,ltd]):e.push(["mouseup",d,
ltd]);b||e.push(["mousemove",function(f){return c.pointerMove.next(f)},mtd]);this._ngZone.runOutsideAngular(function(){c._globalListeners=e.map(function(f){var g=m(f);f=g.next().value;var k=g.next().value;g=g.next().value;return c._renderer.listen(c._document,f,k,g)})})}};var qtd=function(a,b){a._activeDragInstances.update(function(c){var d=c.indexOf(b);return d>-1?(c.splice(d,1),[].concat(q(c))):c});a._activeDragInstances().length===0&&a._clearGlobalListeners()};
IV.prototype.isDragging=function(a){return this._activeDragInstances().indexOf(a)>-1};IV.prototype.scrolled=function(a){var b=this,c=[this._scroll];a&&a!==this._document&&c.push(new Td(function(d){return b._ngZone.runOutsideAngular(function(){var e=b._renderer.listen(a,"scroll",function(f){b._activeDragInstances().length&&d.next(f)},ltd);return function(){e()}})}));return te.apply(null,q(c))};
var std=function(a,b,c){a._domNodesToDirectives!=null||(a._domNodesToDirectives=new WeakMap);a._domNodesToDirectives.set(b,c)},ttd=function(a,b){var c;(c=a._domNodesToDirectives)==null||c.delete(b)},utd=function(a,b){var c;return((c=a._domNodesToDirectives)==null?void 0:c.get(b))||null};
IV.prototype.ngOnDestroy=function(){var a=this;this._dragInstances.forEach(function(b){return rtd(a,b)});this._dropInstances.forEach(function(b){a._dropInstances.delete(b)});this._domNodesToDirectives=null;this._clearGlobalListeners();this.pointerMove.complete();this.pointerUp.complete()};IV.prototype._clearGlobalListeners=function(){var a;(a=this._globalListeners)==null||a.forEach(function(b){return b()});this._globalListeners=void 0};IV.\u0275fac=function(a){return new (a||IV)};
IV.\u0275prov=Dc({token:IV,factory:IV.\u0275fac,providedIn:"root"});var vtd=new dd("CDK_DRAG_PARENT");var wtd=new dd("CdkDragHandle"),JV=function(){this.element=p(Hd);this._parentDrag=p(vtd,{optional:!0,skipSelf:!0});this._dragDropRegistry=p(IV);this._stateChanges=new qf;this._disabled=!1;var a;(a=this._parentDrag)==null||a._addHandle(this)};JV.prototype.ngAfterViewInit=function(){if(!this._parentDrag)for(var a=this.element.nativeElement.parentElement;a;){var b=utd(this._dragDropRegistry,a);if(b){this._parentDrag=b;b._addHandle(this);break}a=a.parentElement}};
JV.prototype.ngOnDestroy=function(){var a;(a=this._parentDrag)==null||a._removeHandle(this);this._stateChanges.complete()};da.Object.defineProperties(JV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=a;this._stateChanges.next(this)}}});JV.\u0275fac=function(a){return new (a||JV)};
JV.\u0275dir=af({type:JV,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",$g]},features:[Gg([{provide:wtd,useExisting:JV}])]});var Hbb=0;var xtd=function(a){this._document=a;this.positions=new Map};xtd.prototype.clear=function(){this.positions.clear()};xtd.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:Ibb(c)})})};
var ytd=function(a,b){var c=Jh(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,g=b.left-d;a.positions.forEach(function(k,l){k.clientRect&&c!==l&&c.contains(l)&&Kbb(k.clientRect,f,g)});b.top=e;b.left=d;return{top:f,left:g}};xtd.prototype.getViewportScrollPosition=function(){return{top:window.scrollY,left:window.scrollX}};var ztd=new Set(["position"]),Atd=function(a,b,c,d,e,f,g,k,l,r){this._document=a;this._rootElement=b;this._direction=c;this._initialDomRect=d;this._previewTemplate=e;this._previewClass=f;this._pickupPositionOnPage=g;this._initialTransform=k;this._zIndex=l;this._renderer=r};h=Atd.prototype;h.attach=function(a){this._preview=this._createPreview();a.appendChild(this._preview);"showPopover"in this._preview&&this._preview.showPopover()};
h.destroy=function(){this._preview.remove();var a;(a=this._previewEmbeddedView)==null||a.destroy();this._preview=this._previewEmbeddedView=null};h.setTransform=function(a){this._preview.style.transform=a};h.getBoundingClientRect=function(){return this._preview.getBoundingClientRect()};h.addClass=function(a){this._preview.classList.add(a)};h.addEventListener=function(a,b){return this._renderer.listen(this._preview,a,b)};
h._createPreview=function(){var a=this._previewTemplate,b=this._previewClass,c=a?a.template:null;if(c&&a){var d=a.matchSize?this._initialDomRect:null;c=a.viewContainer.createEmbeddedView(c,a.context);c.detectChanges();var e=Mbb(c,this._document);this._previewEmbeddedView=c;a.matchSize?Sbb(e,d):e.style.transform=Rbb(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else e=Gbb(this._rootElement),Sbb(e,this._initialDomRect),this._initialTransform&&(e.style.transform=this._initialTransform);
Nbb(e.style,{"pointer-events":"none",margin:"showPopover"in e?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},ztd);as(e,!1);e.classList.add("cdk-drag-preview");e.setAttribute("popover","manual");e.setAttribute("dir",this._direction);b&&(Array.isArray(b)?b.forEach(function(f){return e.classList.add(f)}):e.classList.add(b));return e};da.Object.defineProperties(Atd.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this._preview}}});var Btd={passive:!0},Ctd={passive:!1},Dtd={passive:!1,capture:!0},Obb=new Set(["position"]),Gtd=function(a,b,c,d,e,f,g){var k=this;this._config=b;this._document=c;this._ngZone=d;this._viewportRuler=e;this._dragDropRegistry=f;this._renderer=g;this._anchor=null;this._passiveTransform={x:0,y:0};this._activeTransform={x:0,y:0};this._hasStartedDragging=ng.apply(null,[!1].concat(q([])));this._moveEvents=new qf;this._resizeSubscription=this._scrollSubscription=this._pointerUpSubscription=this._pointerMoveSubscription=
Pd.EMPTY;this._boundaryElement=null;this._nativeInteractionsEnabled=!0;this._handles=[];this._disabledHandles=new Set;this._direction="ltr";this.lockAxis=null;this.dragStartDelay=0;this.scale=1;this._disabled=!1;this.beforeStarted=new qf;this.started=new qf;this.released=new qf;this.ended=new qf;this.entered=new qf;this.exited=new qf;this.dropped=new qf;this.moved=this._moveEvents;this._pointerDown=function(l){k.beforeStarted.next();if(k._handles.length){var r=k._getTargetHandle(l);!r||k._disabledHandles.has(r)||
k.disabled||k._initializeDragSequence(r,l)}else k.disabled||k._initializeDragSequence(k._rootElement,l)};this._pointerMove=function(l){var r=k._getPointerPositionOnPage(l);if(k._hasStartedDragging()){l.cancelable&&l.preventDefault();var w=k._getConstrainedPointerPosition(r);k._hasMoved=!0;k._lastKnownPointerPosition=r;k._updatePointerDirectionDelta(w);if(k._dropContainer)k._updateActiveDropContainer(w,r);else{r=k.constrainPosition?k._initialDomRect:k._pickupPositionOnPage;var x=k._activeTransform;
x.x=w.x-r.x+k._passiveTransform.x;x.y=w.y-r.y+k._passiveTransform.y;k._applyRootElementTransform(x.x,x.y)}k._moveEvents.observers.length&&k._ngZone.run(function(){k._moveEvents.next({source:k,pointerPosition:w,event:l,distance:k._getDragDistance(w),delta:k._pointerDirectionDelta})})}else Math.abs(r.x-k._pickupPositionOnPage.x)+Math.abs(r.y-k._pickupPositionOnPage.y)>=k._config.dragStartThreshold&&((r=Date.now()>=k._dragStartTime+k._getDragStartDelay(l),x=k._dropContainer,r)?x&&(x.isDragging()||x._activeSiblings.size>
0)||(l.cancelable&&l.preventDefault(),k._hasStartedDragging.set(!0),k._ngZone.run(function(){return k._startDragSequence(l)})):k._endDragSequence(l))};this._pointerUp=function(l){k._endDragSequence(l)};this._nativeDragStart=function(l){if(k._handles.length){var r=k._getTargetHandle(l);!r||k._disabledHandles.has(r)||k.disabled||l.preventDefault()}else k.disabled||l.preventDefault()};Etd(Ftd(this,a),b.parentDragRef||null);this._parentPositions=new xtd(c);ptd(f,this)};
Gtd.prototype.getPlaceholderElement=function(){return this._placeholder};Gtd.prototype.getRootElement=function(){return this._rootElement};
var Htd=function(a){return a.isDragging()?a.getPlaceholderElement():a.getRootElement()},Itd=function(a,b){a._handles=b.map(function(d){return Nh(d)});a._handles.forEach(function(d){return as(d,a.disabled)});a._toggleNativeDragInteractions();var c=new Set;a._disabledHandles.forEach(function(d){a._handles.indexOf(d)>-1&&c.add(d)});a._disabledHandles=c},Ftd=function(a,b){var c=Nh(b);if(c!==a._rootElement){a._removeRootElementListeners();var d=a._renderer;a._rootElementCleanups=a._ngZone.runOutsideAngular(function(){return[d.listen(c,
"mousedown",a._pointerDown,Ctd),d.listen(c,"touchstart",a._pointerDown,Btd),d.listen(c,"dragstart",a._nativeDragStart,Ctd)]});a._initialTransform=void 0;a._rootElement=c}typeof SVGElement!=="undefined"&&a._rootElement instanceof SVGElement&&(a._ownerSVGElement=a._rootElement.ownerSVGElement);return a},Jtd=function(a,b){a._boundaryElement=b?Nh(b):null;a._resizeSubscription.unsubscribe();b&&(a._resizeSubscription=a._viewportRuler.change(10).subscribe(function(){return a._containInsideBoundaryOnResize()}));
return a},Etd=function(a,b){a._parentDragRef=b};h=Gtd.prototype;
h.dispose=function(){this._removeRootElementListeners();if(this.isDragging()){var a;(a=this._rootElement)==null||a.remove()}var b;(b=this._marker)==null||b.remove();this._destroyPreview();this._destroyPlaceholder();rtd(this._dragDropRegistry,this);this._removeListeners();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._marker=this._parentDragRef=null};h.isDragging=function(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)};h.reset=function(){this._rootElement.style.transform=this._initialTransform||"";this._activeTransform={x:0,y:0};this._passiveTransform={x:0,y:0}};
h.withDirection=function(a){this._direction=a;return this};h._withDropContainer=function(a){this._dropContainer=a};h.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)};h._sortFromLastPointerPosition=function(){var a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)};
h._removeListeners=function(){this._pointerMoveSubscription.unsubscribe();this._pointerUpSubscription.unsubscribe();this._scrollSubscription.unsubscribe();var a;(a=this._cleanupShadowRootSelectStart)==null||a.call(this);this._cleanupShadowRootSelectStart=void 0};h._destroyPreview=function(){var a;(a=this._preview)==null||a.destroy();this._preview=null};
h._destroyPlaceholder=function(){var a;(a=this._anchor)==null||a.remove();var b;(b=this._placeholder)==null||b.remove();var c;(c=this._placeholderRef)==null||c.destroy();this._placeholder=this._anchor=this._placeholderRef=null};
h._endDragSequence=function(a){var b=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),qtd(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();
qtd(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();qtd(this._dragDropRegistry,this)}};
h._startDragSequence=function(a){var b=this;Wbb(a)&&(this._lastTouchEventTime=Date.now());this._toggleNativeDragInteractions();var c=this._getShadowRoot(),d=this._dropContainer;c&&this._ngZone.runOutsideAngular(function(){b._cleanupShadowRootSelectStart=b._renderer.listen(c,"selectstart",Xbb,Dtd)});if(d){var e=this._rootElement,f=e.parentNode,g=this._placeholder=this._createPlaceholderElement(),k=this._marker=this._marker||this._document.createComment("");f.insertBefore(k,e);this._initialTransform=
e.style.transform||"";this._preview=new Atd(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1E3,this._renderer);this._preview.attach(this._getPreviewInsertionPoint(f,c));Pbb(e,!1);this._document.body.appendChild(f.replaceChild(g,e));this.started.next({source:this,event:a});d.start();this._initialContainer=d;this._initialIndex=d.getItemIndex(this)}else this.started.next({source:this,
event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(d?d._scrollableElements:[])};
h._initializeDragSequence=function(a,b){var c=this;this._parentDragRef&&b.stopPropagation();var d=this.isDragging(),e=Wbb(b),f=!e&&b.button!==0,g=this._rootElement,k=Jh(b),l=!e&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();e=e?Lqa(b):Kqa(b);k&&k.draggable&&b.type==="mousedown"&&b.preventDefault();d||f||l||e||(this._handles.length&&(d=g.style,this._rootElementTapHighlight=d.webkitTapHighlightColor||"",d.webkitTapHighlightColor="transparent"),this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),
this._removeListeners(),this._initialDomRect=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(r){return c._updateOnScroll(r)}),this._boundaryElement&&(this._boundaryRect=Ibb(this._boundaryElement)),this._pickupPositionInElement=
(d=this._previewTemplate)&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,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))};
h._cleanupDragArtifacts=function(a){var b=this;Pbb(this._rootElement,!0);this._marker.parentNode.replaceChild(this._rootElement,this._marker);this._destroyPreview();this._destroyPlaceholder();this._initialDomRect=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),g=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:g,distance:f,dropPoint:e,event:a});c.drop(b,d,b._initialIndex,b._initialContainer,g,f,e,a);b._dropContainer=b._initialContainer})};
h._updateActiveDropContainer=function(a,b){var c=this;var d=a.x;var 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(){var g=c._dropContainer.getItemIndex(c),k;g=((k=c._dropContainer.getItemAtIndex(g+1))==null?void 0:Htd(k))||null;c.exited.next({item:c,container:c._dropContainer});c._dropContainer.exit(c);
c._conditionallyInsertAnchor(f,c._dropContainer,g);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))};
h._animatePreviewToPlaceholder=function(){var a=this;if(!this._hasMoved)return Promise.resolve();var b=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating");this._applyPreviewTransform(b.left,b.top);var c=Vbb(this._preview._preview);return c===0?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(d){var e=function(k){if(!k||a._preview&&Jh(k)===a._preview.element&&k.propertyName==="transform")g(),d(),clearTimeout(f)},f=setTimeout(e,
c*1.5),g=a._preview.addEventListener("transitionend",e)})})};h._createPlaceholderElement=function(){var a=this._placeholderTemplate,b=a?a.template:null;b?(this._placeholderRef=a.viewContainer.createEmbeddedView(b,a.context),this._placeholderRef.detectChanges(),a=Mbb(this._placeholderRef,this._document)):a=Gbb(this._rootElement);a.style.pointerEvents="none";a.classList.add("cdk-drag-placeholder");return a};
h._getPointerPositionInElement=function(a,b,c){b=(b=b===this._rootElement?null:b)?b.getBoundingClientRect():a;c=Wbb(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)}};
h._getPointerPositionOnPage=function(a){var b=this._getViewportScrollPosition(),c=Wbb(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}};
h._getConstrainedPointerPosition=function(a){var b=this._dropContainer?this._dropContainer.lockAxis:null,c=this.constrainPosition?this.constrainPosition(a,this,this._initialDomRect,this._pickupPositionInElement):a;a=c.x;c=c.y;if(this.lockAxis==="x"||b==="x")c=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0);else if(this.lockAxis==="y"||b==="y")a=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0);if(this._boundaryRect){var d=
this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement;b=d.x;var e=d.y;d=this._boundaryRect;var f=this._getPreviewRect(),g=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(g,Math.min(e,c))}return{x:a,y:c}};
h._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};
h._toggleNativeDragInteractions=function(){if(this._rootElement&&this._handles){var a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,as(this._rootElement,a))}};h._removeRootElementListeners=function(){var a;(a=this._rootElementCleanups)==null||a.forEach(function(b){return b()});this._rootElementCleanups=void 0};
h._applyRootElementTransform=function(a,b){var c=1/this.scale;a=Rbb(a*c,b*c);b=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=b.transform&&b.transform!="none"?b.transform:"");b.transform=Qbb(a,this._initialTransform)};h._applyPreviewTransform=function(a,b){var c,d=((c=this._previewTemplate)==null?0:c.template)?void 0:this._initialTransform;this._preview.setTransform(Qbb(Rbb(a,b),d))};
h._getDragDistance=function(a){var b=this._pickupPositionOnPage;return b?{x:a.x-b.x,y:a.y-b.y}:{x:0,y:0}};h._cleanupCachedDimensions=function(){this._boundaryRect=this._previewRect=void 0;this._parentPositions.clear()};
h._containInsideBoundaryOnResize=function(){var a=this._passiveTransform,b=a.x;a=a.y;if(!(b===0&&a===0||this.isDragging())&&this._boundaryElement){var c=this._rootElement.getBoundingClientRect(),d=this._boundaryElement.getBoundingClientRect();if(!(d.width===0&&d.height===0||c.width===0&&c.height===0)){var e=d.left-c.left,f=c.right-d.right,g=d.top-c.top,k=c.bottom-d.bottom;d.width>c.width?(e>0&&(b+=e),f>0&&(b-=f)):b=0;d.height>c.height?(g>0&&(a+=g),k>0&&(a-=k)):a=0;b===this._passiveTransform.x&&a===
this._passiveTransform.y||this.setFreeDragPosition({y:a,x:b})}}};h._getDragStartDelay=function(a){var b=this.dragStartDelay;return typeof b==="number"?b:Wbb(a)?b.touch:b?b.mouse:0};
h._updateOnScroll=function(a){var b=ytd(this._parentPositions,a);b&&(a=Jh(a),this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&Kbb(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)))};
h._getViewportScrollPosition=function(){var a;return((a=this._parentPositions.positions.get(this._document))==null?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()};h._getShadowRoot=function(){this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Wqa(this._rootElement));return this._cachedShadowRoot};
h._getPreviewInsertionPoint=function(a,b){var c=this._previewContainer||"global";return c==="parent"?a:c==="global"?(a=this._document,b||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body):Nh(c)};h._getPreviewRect=function(){this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect);return this._previewRect};
h._getTargetHandle=function(a){return this._handles.find(function(b){return a.target&&(a.target===b||b.contains(a.target))})};h._conditionallyInsertAnchor=function(a,b,c){if(a===this._initialContainer){var d;(d=this._anchor)==null||d.remove();this._anchor=null}else if(b===this._initialContainer&&b.hasAnchor){var e;a=(e=this._anchor)!=null?e:this._anchor=Gbb(this._placeholder);a.classList.remove("cdk-drag-placeholder");a.classList.add("cdk-drag-anchor");a.style.transform="";c?c.before(a):Nh(b.element).appendChild(a)}};
da.Object.defineProperties(Gtd.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(a){a!==this._disabled&&(this._disabled=a,this._toggleNativeDragInteractions(),this._handles.forEach(function(b){return as(b,a)}))}}});var Ktd=function(a,b){this._document=a;this._dragDropRegistry=b;this._previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};this._relatedNodes=[]};h=Ktd.prototype;h.start=function(a){var b=this._element.childNodes;this._relatedNodes=[];for(var c=0;c<b.length;c++){var d=b[c];this._relatedNodes.push([d,d.nextSibling])}this.withItems(a)};
h.sort=function(a,b,c,d){var e=this._getItemIndexFromPointerPosition(a,b,c),f=this._previousSwap;if(e===-1||this._activeItems[e]===a)return null;var g=this._activeItems[e];if(f.drag===g&&f.overlaps&&f.deltaX===d.x&&f.deltaY===d.y)return null;var k=this.getItemIndex(a),l=a.getPlaceholderElement();a=g.getRootElement();e>k?a.after(l):a.before(l);bs(this._activeItems,k,e);b=this._getRootNode().elementFromPoint(b,c);f.deltaX=d.x;f.deltaY=d.y;f.drag=g;f.overlaps=a===b||a.contains(b);return{previousIndex:k,
currentIndex:e}};h.enter=function(a,b,c,d){var e=this._activeItems.indexOf(a);e>-1&&this._activeItems.splice(e,1);d=d==null||d<0?this._getItemIndexFromPointerPosition(a,b,c):d;d===-1&&(d=this._getClosestItemIndexToPointer(a,b,c));(b=this._activeItems[d])&&!this._dragDropRegistry.isDragging(b)?(this._activeItems.splice(d,0,a),b.getRootElement().before(a.getPlaceholderElement())):(this._activeItems.push(a),this._element.appendChild(a.getPlaceholderElement()))};
h.withItems=function(a){this._activeItems=a.slice()};h.withSortPredicate=function(a){this._sortPredicate=a};h.reset=function(){for(var a=this._element,b=this._previousSwap,c=this._relatedNodes.length-1;c>-1;c--){var d=m(this._relatedNodes[c]),e=d.next().value;d=d.next().value;e.parentNode===a&&e.nextSibling!==d&&(d===null?a.appendChild(e):d.parentNode===a&&a.insertBefore(e,d))}this._relatedNodes=[];this._activeItems=[];b.drag=null;b.deltaX=b.deltaY=0;b.overlaps=!1};h.getActiveItemsSnapshot=function(){return this._activeItems};
h.getItemIndex=function(a){return this._activeItems.indexOf(a)};h.getItemAtIndex=function(a){return this._activeItems[a]||null};h.updateOnScroll=function(){var a=this;this._activeItems.forEach(function(b){a._dragDropRegistry.isDragging(b)&&b._sortFromLastPointerPosition()})};h.withElementContainer=function(a){a!==this._element&&(this._element=a,this._rootNode=void 0)};
h._getItemIndexFromPointerPosition=function(a,b,c){var d=this._getRootNode().elementFromPoint(Math.floor(b),Math.floor(c));b=d?this._activeItems.findIndex(function(e){e=e.getRootElement();return d===e||e.contains(d)}):-1;return b!==-1&&this._sortPredicate(b,a)?b:-1};h._getRootNode=function(){this._rootNode||(this._rootNode=Wqa(this._element)||this._document);return this._rootNode};
h._getClosestItemIndexToPointer=function(a,b,c){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;for(var d=Infinity,e=-1,f=0;f<this._activeItems.length;f++){var g=this._activeItems[f];g!==a&&(g=g.getRootElement().getBoundingClientRect(),g=Math.hypot(b-g.x,c-g.y),g<d&&(d=g,e=f))}return e};var Ltd=function(a){this._dragDropRegistry=a;this._itemPositions=[];this.orientation="vertical";this._previousSwap={drag:null,delta:0,overlaps:!1}};h=Ltd.prototype;h.start=function(a){this.withItems(a)};
h.sort=function(a,b,c,d){var e=this._itemPositions,f=this._getItemIndexFromPointerPosition(a,b,c,d);if(f===-1&&e.length>0)return null;var g=this.orientation==="horizontal",k=e.findIndex(function(J){return J.drag===a}),l=e[f],r=l.clientRect,w=k>f?1:-1,x=this._getItemOffsetPx(e[k].clientRect,r,w),C=this._getSiblingOffsetPx(k,e,w),H=e.slice();bs(e,k,f);e.forEach(function(J,O){if(H[O]!==J){var R=J.drag===a;O=R?x:C;R=R?a.getPlaceholderElement():J.drag.getRootElement();J.offset+=O;var V=Math.round(1/J.drag.scale*
J.offset);g?(R.style.transform=Qbb("translate3d("+V+"px, 0, 0)",J.initialTransform),Kbb(J.clientRect,0,O)):(R.style.transform=Qbb("translate3d(0, "+V+"px, 0)",J.initialTransform),Kbb(J.clientRect,O,0))}});this._previousSwap.overlaps=Jbb(r,b,c);this._previousSwap.drag=l.drag;this._previousSwap.delta=g?d.x:d.y;return{previousIndex:k,currentIndex:f}};
h.enter=function(a,b,c,d){d=d==null||d<0?this._getItemIndexFromPointerPosition(a,b,c):d;var e=this._activeDraggables,f=e.indexOf(a),g=a.getPlaceholderElement(),k=e[d];k===a&&(k=e[d+1]);!k&&(d==null||d===-1||d<e.length-1)&&this._shouldEnterAsFirstChild(b,c)&&(k=e[0]);f>-1&&e.splice(f,1);k&&!this._dragDropRegistry.isDragging(k)?(b=k.getRootElement(),b.parentElement.insertBefore(g,b),e.splice(d,0,a)):(this._element.appendChild(g),e.push(a));g.style.transform="";this._cacheItemPositions()};
h.withItems=function(a){this._activeDraggables=a.slice();this._cacheItemPositions()};h.withSortPredicate=function(a){this._sortPredicate=a};
h.reset=function(){var a=this,b;(b=this._activeDraggables)==null||b.forEach(function(c){var d=c.getRootElement();if(d){var e,f=(e=a._itemPositions.find(function(g){return g.drag===c}))==null?void 0:e.initialTransform;d.style.transform=f||""}});this._itemPositions=[];this._activeDraggables=[];this._previousSwap.drag=null;this._previousSwap.delta=0;this._previousSwap.overlaps=!1};h.getActiveItemsSnapshot=function(){return this._activeDraggables};
h.getItemIndex=function(a){return this._getVisualItemPositions().findIndex(function(b){return b.drag===a})};h.getItemAtIndex=function(a){var b;return((b=this._getVisualItemPositions()[a])==null?void 0:b.drag)||null};h.updateOnScroll=function(a,b){var c=this;this._itemPositions.forEach(function(d){Kbb(d.clientRect,a,b)});this._itemPositions.forEach(function(d){d=d.drag;c._dragDropRegistry.isDragging(d)&&d._sortFromLastPointerPosition()})};h.withElementContainer=function(a){this._element=a};
h._cacheItemPositions=function(){var a=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(function(b){var c=Htd(b);return{drag:b,offset:0,initialTransform:c.style.transform||"",clientRect:Ibb(c)}}).sort(function(b,c){return a?b.clientRect.left-c.clientRect.left:b.clientRect.top-c.clientRect.top})};h._getVisualItemPositions=function(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions};
h._getItemOffsetPx=function(a,b,c){var d=this.orientation==="horizontal",e=d?b.left-a.left:b.top-a.top;c===-1&&(e+=d?b.width-a.width:b.height-a.height);return e};h._getSiblingOffsetPx=function(a,b,c){var d=this.orientation==="horizontal",e=b[a].clientRect;a=b[a+c*-1];b=e[d?"width":"height"]*c;if(a){var f=d?"left":"top";d=d?"right":"bottom";b=c===-1?b-(a.clientRect[f]-e[d]):b+(e[f]-a.clientRect[d])}return b};
h._shouldEnterAsFirstChild=function(a,b){if(!this._activeDraggables.length)return!1;var c=this._itemPositions,d=this.orientation==="horizontal";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};
h._getItemIndexFromPointerPosition=function(a,b,c,d){var e=this,f=this.orientation==="horizontal",g=this._itemPositions.findIndex(function(k){var l=k.drag;k=k.clientRect;if(l===a)return!1;if(d){var r=f?d.x:d.y;if(l===e._previousSwap.drag&&e._previousSwap.overlaps&&r===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 g!==-1&&this._sortPredicate(g,a)?g:-1};var Ntd=function(a,b,c,d,e){var f=this;this._dragDropRegistry=b;this._ngZone=d;this._viewportRuler=e;this.sortingDisabled=this.disabled=!1;this.lockAxis=null;this.autoScrollDisabled=!1;this.autoScrollStep=2;this.hasAnchor=!1;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.beforeStarted=new qf;this.entered=new qf;this.exited=new qf;this.dropped=new qf;this.sorted=new qf;this.receivingStarted=new qf;this.receivingStopped=new qf;this._isDragging=!1;this._draggables=
[];this._siblings=[];this._activeSiblings=new Set;this._viewportScrollSubscription=Pd.EMPTY;this._horizontalScrollDirection=this._verticalScrollDirection=0;this._stopScrollTimers=new qf;this._cachedShadowRoot=null;this._scrollableElements=[];this._direction="ltr";this._startScrollInterval=function(){f._stopScrolling();Yha(0,fzc).pipe(zf(f._stopScrollTimers)).subscribe(function(){var g=f._scrollNode,k=f.autoScrollStep;f._verticalScrollDirection===1?g.scrollBy(0,-k):f._verticalScrollDirection===2&&
g.scrollBy(0,k);f._horizontalScrollDirection===1?g.scrollBy(-k,0):f._horizontalScrollDirection===2&&g.scrollBy(k,0)})};a=this.element=Nh(a);this._document=c;Mtd(this,"vertical").withElementContainer(a);otd(b,this);this._parentPositions=new xtd(c)};h=Ntd.prototype;
h.dispose=function(){this._stopScrolling();this._stopScrollTimers.complete();this._viewportScrollSubscription.unsubscribe();this.beforeStarted.complete();this.entered.complete();this.exited.complete();this.dropped.complete();this.sorted.complete();this.receivingStarted.complete();this.receivingStopped.complete();this._activeSiblings.clear();this._scrollNode=null;this._parentPositions.clear();this._dragDropRegistry._dropInstances.delete(this)};h.isDragging=function(){return this._isDragging};
h.start=function(){this._draggingStarted();this._notifyReceivingSiblings()};h.enter=function(a,b,c,d){this._draggingStarted();d==null&&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)})};h.exit=function(a){this._reset();this.exited.next({item:a,container:this})};
h.drop=function(a,b,c,d,e,f,g,k){k=k===void 0?{}:k;this._reset();this.dropped.next({item:a,currentIndex:b,previousIndex:c,container:this,previousContainer:d,isPointerOverContainer:e,distance:f,dropPoint:g,event:k})};h.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 a.indexOf(d)===-1})?this._reset():this._sortStrategy.withItems(this._draggables))};
h.withDirection=function(a){this._direction=a;this._sortStrategy instanceof Ltd&&(this._sortStrategy.direction=a);return this};h.connectedTo=function(a){this._siblings=a.slice();return this};
var Mtd=function(a,b){if(b==="mixed")a._sortStrategy=new Ktd(a._document,a._dragDropRegistry);else{var c=new Ltd(a._dragDropRegistry);c.direction=a._direction;c.orientation=b;a._sortStrategy=c}a._sortStrategy.withElementContainer(a._container);a._sortStrategy.withSortPredicate(function(d,e){return a.sortPredicate(d,e,a)});return a},Otd=function(a,b){var c=a._container;a._scrollableElements=b.indexOf(c)===-1?[c].concat(q(b)):b.slice()};h=Ntd.prototype;
h.withElementContainer=function(a){if(a!==this._container){var b=this._scrollableElements.indexOf(this._container),c=this._scrollableElements.indexOf(a);b>-1&&this._scrollableElements.splice(b,1);c>-1&&this._scrollableElements.splice(c,1);this._sortStrategy&&this._sortStrategy.withElementContainer(a);this._cachedShadowRoot=null;this._scrollableElements.unshift(a);this._container=a}};h.getItemIndex=function(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)};
h.getItemAtIndex=function(a){return this._isDragging?this._sortStrategy.getItemAtIndex(a):this._draggables[a]||null};h._sortItem=function(a,b,c,d){!this.sortingDisabled&&this._domRect&&Lbb(this._domRect,b,c)&&(b=this._sortStrategy.sort(a,b,c,d))&&this.sorted.next({previousIndex:b.previousIndex,currentIndex:b.currentIndex,container:this,item:a})};
h._startScrollingIfNecessary=function(a,b){var c=this;if(!this.autoScrollDisabled){var d=0,e=0;this._parentPositions.positions.forEach(function(l,r){if(r!==c._document&&l.clientRect&&!k&&Lbb(l.clientRect,a,b)){var w=l.clientRect;l=Ybb(w,b);w=Zbb(w,a);var x=0,C=0;if(l){var H=r.scrollTop;l===1?H>0&&(x=1):r.scrollHeight-H>r.clientHeight&&(x=2)}w&&(l=r.scrollLeft,c._direction==="rtl"?w===2?l<0&&(C=2):r.scrollWidth+l>r.clientWidth&&(C=1):w===1?l>0&&(C=1):r.scrollWidth-l>r.clientWidth&&(C=2));l=m([x,C]);
d=l.next().value;e=l.next().value;if(d||e)k=r}});if(!d&&!e){var f=this._viewportRuler.getViewportSize(),g=f.width;f=f.height;g={width:g,height:f,top:0,right:g,bottom:f,left:0};d=Ybb(g,b);e=Zbb(g,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())}};
h._stopScrolling=function(){this._stopScrollTimers.next()};h._draggingStarted=function(){var a=this._container.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()};
h._cacheParentPositions=function(){this._parentPositions.cache(this._scrollableElements);this._domRect=this._parentPositions.positions.get(this._container).clientRect};h._reset=function(){var a=this;this._isDragging=!1;var b=this._container.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()};
h._isOverContainer=function(a,b){return this._domRect!=null&&Jbb(this._domRect,a,b)};h._getSiblingContainerFromPosition=function(a,b,c){return this._siblings.find(function(d){return d._canReceive(a,b,c)})};h._canReceive=function(a,b,c){return this._domRect&&Jbb(this._domRect,b,c)&&this.enterPredicate(a,this)?(a=this._getShadowRoot().elementFromPoint(b,c))?a===this._container||this._container.contains(a):!1:!1};
h._startReceiving=function(a,b){var c=this,d=this._activeSiblings;!d.has(a)&&b.every(function(e){return c.enterPredicate(e,c)||c._draggables.indexOf(e)>-1})&&(d.add(a),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:a,receiver:this,items:b}))};h._stopReceiving=function(a){this._activeSiblings.delete(a);this._viewportScrollSubscription.unsubscribe();this.receivingStopped.next({initiator:a,receiver:this})};
h._listenToScrollEvents=function(){var a=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(b){a.isDragging()?(b=ytd(a._parentPositions,b))&&a._sortStrategy.updateOnScroll(b.top,b.left):a._activeSiblings.size>0&&a._cacheParentPositions()})};h._getShadowRoot=function(){this._cachedShadowRoot||(this._cachedShadowRoot=Wqa(this._container)||this._document);return this._cachedShadowRoot};
h._notifyReceivingSiblings=function(){var a=this,b=this._sortStrategy.getActiveItemsSnapshot().filter(function(c){return c.isDragging()});this._siblings.forEach(function(c){return c._startReceiving(a,b)})};var Ptd={dragStartThreshold:5,pointerDirectionChangeThreshold:5},KV=function(){this._document=p(Rh);this._ngZone=p(Rg);this._viewportRuler=p(Qh);this._dragDropRegistry=p(IV);this._renderer=p(Ye).createRenderer(null,null)};KV.prototype.createDrag=function(a,b){b=b===void 0?Ptd:b;return new Gtd(a,b,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)};KV.\u0275fac=function(a){return new (a||KV)};KV.\u0275prov=Dc({token:KV,factory:KV.\u0275fac,providedIn:"root"});var Qtd=new dd("CdkDropList"),LV=function(){var a=this;this.element=p(Hd);this.dropContainer=p(Qtd,{optional:!0,skipSelf:!0});this._ngZone=p(Rg);this._viewContainerRef=p(eg);this._dir=p(bi,{optional:!0});this._changeDetectorRef=p(Cx);this._selfHandle=p(wtd,{optional:!0,self:!0});this._parentDrag=p(vtd,{optional:!0,skipSelf:!0});this._dragDropRegistry=p(IV);this._destroyed=new qf;this._handles=new Mj([]);this.lockAxis=null;this.scale=1;this.started=new Ti;this.released=new Ti;this.ended=new Ti;this.entered=
new Ti;this.exited=new Ti;this.dropped=new Ti;this.moved=new Td(function(d){var e=a._dragRef.moved.pipe(A(function(f){return{source:a,pointerPosition:f.pointerPosition,event:f.event,delta:f.delta,distance:f.distance}})).subscribe(d);return function(){e.unsubscribe()}});this._injector=p(ye);var b=this.dropContainer,c=p(ktd,{optional:!0});this._dragRef=p(KV).createDrag(this.element,{dragStartThreshold:c&&c.dragStartThreshold!=null?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&c.pointerDirectionChangeThreshold!=
null?c.pointerDirectionChangeThreshold:5,zIndex:c==null?void 0:c.zIndex});this._dragRef.data=this;std(this._dragDropRegistry,this.element.nativeElement,this);c&&this._assignDefaults(c);b&&(b.addItem(this),b._dropListRef.beforeStarted.pipe(zf(this._destroyed)).subscribe(function(){a._dragRef.scale=a.scale}));this._syncInputs(this._dragRef);this._handleEvents(this._dragRef)};h=LV.prototype;h.getPlaceholderElement=function(){return this._dragRef.getPlaceholderElement()};h.getRootElement=function(){return this._dragRef.getRootElement()};
h.reset=function(){this._dragRef.reset()};h.setFreeDragPosition=function(a){this._dragRef.setFreeDragPosition(a)};h.ngAfterViewInit=function(){var a=this;Ee(function(){a._updateRootElement();a._setupHandlesListener();a._dragRef.scale=a.scale;a.freeDragPosition&&a._dragRef.setFreeDragPosition(a.freeDragPosition)},{injector:this._injector})};
h.ngOnChanges=function(a){var b=a.rootElementSelector;a=a.freeDragPosition;b&&!b.firstChange&&this._updateRootElement();this._dragRef.scale=this.scale;a&&!a.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)};
h.ngOnDestroy=function(){var a=this;this.dropContainer&&this.dropContainer.removeItem(this);ttd(this._dragDropRegistry,this.element.nativeElement);this._ngZone.runOutsideAngular(function(){a._handles.complete();a._destroyed.next();a._destroyed.complete();a._dragRef.dispose()})};h._addHandle=function(a){var b=this._handles.getValue();b.push(a);this._handles.next(b)};h._removeHandle=function(a){var b=this._handles.getValue();a=b.indexOf(a);a>-1&&(b.splice(a,1),this._handles.next(b))};
h._setPreviewTemplate=function(a){this._previewTemplate=a};h._resetPreviewTemplate=function(a){a===this._previewTemplate&&(this._previewTemplate=null)};h._setPlaceholderTemplate=function(a){this._placeholderTemplate=a};h._resetPlaceholderTemplate=function(a){a===this._placeholderTemplate&&(this._placeholderTemplate=null)};
h._updateRootElement=function(){var a=this.element.nativeElement,b=a;if(this.rootElementSelector){var c;b=a.closest!==void 0?a.closest(this.rootElementSelector):(c=a.parentElement)==null?void 0:c.closest(this.rootElementSelector)}Ftd(this._dragRef,b||a)};h._getBoundaryElement=function(){var a=this.boundaryElement;return a?typeof a==="string"?this.element.nativeElement.closest(a):Nh(a):null};
h._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.scale=b.scale;
a.dragStartDelay=typeof d==="object"&&d?d:Oh(d);a.constrainPosition=b.constrainPosition;a.previewClass=b.previewClass;d=Jtd(a,b._getBoundaryElement());d._placeholderTemplate=e;d._previewTemplate=f;d._previewContainer=b.previewContainer||"global";c&&a.withDirection(c.value)}});a.beforeStarted.pipe(lf(1)).subscribe(function(){if(b._parentDrag)a._parentDragRef=b._parentDrag._dragRef;else for(var c=b.element.nativeElement.parentElement;c;){var d=utd(b._dragDropRegistry,c);if(d){a._parentDragRef=d._dragRef;
break}c=c.parentElement}})};
h._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})})};
h._assignDefaults=function(a){var b=a.lockAxis,c=a.dragStartDelay,d=a.constrainPosition,e=a.previewClass,f=a.boundaryElement,g=a.draggingDisabled,k=a.rootElementSelector;a=a.previewContainer;this.disabled=g==null?!1:g;this.dragStartDelay=c||0;this.lockAxis=b||null;d&&(this.constrainPosition=d);e&&(this.previewClass=e);f&&(this.boundaryElement=f);k&&(this.rootElementSelector=k);a&&(this.previewContainer=a)};
h._setupHandlesListener=function(){var a=this;this._handles.pipe(Af(function(b){b=b.map(function(c){return c.element});a._selfHandle&&a.rootElementSelector&&b.push(a.element);Itd(a._dragRef,b)}),yf(function(b){return te.apply(null,q(b.map(function(c){return c._stateChanges.pipe(xf(c))})))}),zf(this._destroyed)).subscribe(function(b){var c=a._dragRef,d=b.element.nativeElement;b.disabled?!c._disabledHandles.has(d)&&c._handles.indexOf(d)>-1&&(c._disabledHandles.add(d),as(d,!0)):c._disabledHandles.has(d)&&
(c._disabledHandles.delete(d),as(d,c.disabled))})};da.Object.defineProperties(LV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!(!this.dropContainer||!this.dropContainer.disabled)},set:function(a){this._disabled=a;this._dragRef.disabled=this._disabled}}});LV.\u0275fac=function(a){return new (a||LV)};
LV.\u0275dir=af({type:LV,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(a,b){a&2&&wg("cdk-drag-disabled",b.disabled)("cdk-drag-dragging",b._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition",
"freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",$g],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",ah]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Gg([{provide:vtd,
useExisting:LV}]),jx]});var Rtd=new dd("CdkDropListGroup");var MV=function(){var a=this;this.element=p(Hd);this._changeDetectorRef=p(Cx);this._scrollDispatcher=p(Sh);this._dir=p(bi,{optional:!0});this._group=p(Rtd,{optional:!0,skipSelf:!0});this._destroyed=new qf;this.connectedTo=[];this.id=p(ai).getId("cdk-drop-list-");this.lockAxis=null;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.dropped=new Ti;this.entered=new Ti;this.exited=new Ti;this.sorted=new Ti;this._unsortedItems=new Set;var b=p(KV),c=p(ktd,{optional:!0});
this._dropListRef=new Ntd(this.element,b._dragDropRegistry,b._document,b._ngZone,b._viewportRuler);this._dropListRef.data=this;c&&this._assignDefaults(c);this._dropListRef.enterPredicate=function(d,e){return a.enterPredicate(d.data,e.data)};this._dropListRef.sortPredicate=function(d,e,f){return a.sortPredicate(d,e.data,f.data)};this._setupInputSyncSubscription(this._dropListRef);this._handleEvents(this._dropListRef);MV._dropLists.push(this);this._group&&this._group._items.add(this)};
MV.prototype.addItem=function(a){this._unsortedItems.add(a);a._dragRef._withDropContainer(this._dropListRef);this._dropListRef.isDragging()&&this._syncItemsWithRef(Std(this).map(function(b){return b._dragRef}))};MV.prototype.removeItem=function(a){this._unsortedItems.delete(a);this._latestSortedRefs&&(a=this._latestSortedRefs.indexOf(a._dragRef),a>-1&&(this._latestSortedRefs.splice(a,1),this._syncItemsWithRef(this._latestSortedRefs)))};
var Std=function(a){return Array.from(a._unsortedItems).sort(function(b,c){return Htd(b._dragRef).compareDocumentPosition(Htd(c._dragRef))&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})};h=MV.prototype;h.ngOnDestroy=function(){var a=MV._dropLists.indexOf(this);a>-1&&MV._dropLists.splice(a,1);this._group&&this._group._items.delete(this);this._latestSortedRefs=void 0;this._unsortedItems.clear();this._dropListRef.dispose();this._destroyed.next();this._destroyed.complete()};
h._setupInputSyncSubscription=function(a){var b=this;this._dir&&this._dir.change.pipe(xf(this._dir.value),zf(this._destroyed)).subscribe(function(c){return a.withDirection(c)});a.beforeStarted.subscribe(function(){var c=Kh(b.connectedTo).map(function(e){return typeof e==="string"?MV._dropLists.find(function(f){return f.id===e}):e});b._group&&b._group._items.forEach(function(e){c.indexOf(e)===-1&&c.push(e)});if(!b._scrollableParentsResolved){var d=JCc(b._scrollDispatcher,b.element).map(function(e){return e.elementRef.nativeElement});
Otd(b._dropListRef,d);b._scrollableParentsResolved=!0}b.elementContainerSelector&&a.withElementContainer(b.element.nativeElement.querySelector(b.elementContainerSelector));a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.sortingDisabled=b.sortingDisabled;a.autoScrollDisabled=b.autoScrollDisabled;a.autoScrollStep=Oh(b.autoScrollStep,2);a.hasAnchor=b.hasAnchor;Mtd(a.connectedTo(c.filter(function(e){return e&&e!==b}).map(function(e){return e._dropListRef})),b.orientation)})};
h._handleEvents=function(a){var b=this;a.beforeStarted.subscribe(function(){b._syncItemsWithRef(Std(b).map(function(c){return c._dragRef}));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()});te(a.receivingStarted,a.receivingStopped).subscribe(function(){return b._changeDetectorRef.markForCheck()})};
h._assignDefaults=function(a){var b=a.lockAxis,c=a.draggingDisabled,d=a.sortingDisabled,e=a.listAutoScrollDisabled;a=a.listOrientation;this.disabled=c==null?!1:c;this.sortingDisabled=d==null?!1:d;this.autoScrollDisabled=e==null?!1:e;this.orientation=a||"vertical";this.lockAxis=b||null};h._syncItemsWithRef=function(a){this._latestSortedRefs=a;this._dropListRef.withItems(a)};
da.Object.defineProperties(MV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(a){this._dropListRef.disabled=this._disabled=a}}});MV._dropLists=[];MV.\u0275fac=function(a){return new (a||MV)};
MV.\u0275dir=af({type:MV,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(a,b){a&2&&(If("id",b.id),wg("cdk-drop-list-disabled",b.disabled)("cdk-drop-list-dragging",b._dropListRef.isDragging())("cdk-drop-list-receiving",b._dropListRef._activeSiblings.size>0))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis",
"lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",$g],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",$g],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",$g],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor",
"hasAnchor",$g]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[Gg([{provide:Rtd,useValue:void 0},{provide:Qtd,useExisting:MV}])]});new dd("CdkDragPlaceholder");new dd("CdkDragPreview");var NV=function(){};NV.\u0275fac=function(a){return new (a||NV)};NV.\u0275mod=$e({type:NV});NV.\u0275inj=Fc({providers:[KV],imports:[Cz]});var Ttd=["addLink"],Utd=["showFewer"],Vtd=["showMore"],Wtd=["editButton"],Xtd=["removeButton"],Ytd=[[["",8,"value-action"]]],bcb=function(a,b){return{item:a,$index:b}},vcb=function(a){return{q:a}},Ztd=[Object.assign({},Lcb("start","bottom"),Mcb("start","top"),{offsetY:8}),Object.assign({},Lcb("center","bottom"),Mcb("center","top"),{offsetY:8}),Object.assign({},Lcb("end","bottom"),Mcb("end","top"),{offsetY:8}),Object.assign({},Lcb("start","top"),Mcb("start","bottom"),{offsetY:-8}),Object.assign({},
Lcb("end","top"),Mcb("end","bottom"),{offsetY:-8})],OV=function(){Z.apply(this,arguments);var a=this;this.cdr=p(bQ,{self:!0});this.dateFormatter=p(hS);this.analytics=p(eQ);this.liveAnnouncer=p(dz);this.principalTypesFridge=p(GQ);this.issuePermissionService=p($Q);this.activeSession=p(uu);this.customRepeatedEnumDialogService=p(zV);this.OVERLAY_POSITION_LIST=Ztd;this.defaultLineCount=Number.POSITIVE_INFINITY;this.isDefaultOrAllowedValues=this.preventDuplicates=this.readonly=!1;this.values=null;this.providedValues$=
new uf(1);this.showInternalOnlyFieldBadge=!1;this.userMap=new Map;this.enumChoices=null;this.sortedEnumChoices=[];this.enumPendingValues=new Set;this.isUser=this.isActive=!1;this.valuesChange=new aQ;this.showingAll=this.listFieldDisabled=!1;this.tooltip=this.title="";this.isExpanded=this.isCollapsible=this.truncate=!1;this.collapsiblePanelTitle=this.iconName="";this.customFieldId=0;this.isRequired=!1;this.inputValidator=null;this.checkAccessLimits=!1;this.toggleAccessLimits=new aQ;this.enableTeamAnnotations=
this.activeSession.isInternalSession();this.environmentType=this.activeSession.getEnvironmentType();this.teamId=this.invalidMessage="";this.isString=PQa;this.enableGerritChanges=this.activeSession.getFlag("enableGerritChanges");this.groups$=this.providedValues$.pipe(yf(function(b){return a.extractGroups(b)}),xf(new Set));this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.focusOnTitle=!1};Y(OV,Z);OV.\u0275dir=Z.\u0275dir;
OV.prototype.ngOnChanges=function(a){if(a.values){var b;this.providedValues$.next((b=this.values)!=null?b:[])}a.showInternalOnlyFieldBadge&&(this.showInternalOnlyFieldBadge=a.showInternalOnlyFieldBadge.currentValue)};OV.prototype.ngOnInit=function(){icb(this)};
var icb=function(a){a.sortedEnumChoices=[].concat(q(a.enumChoices||[])).sort(function(b){b=b.value;var c,d=((c=a.values)==null?0:c.includes(b))?1:0,e;return(((e=a.values)==null?0:e.includes(b))?1:0)-d})},jcb=function(a){var b=a.values||[],c=[].concat(q(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})},lcb=function(a){var b;return y(function(c){if(c.nextAddress==
1)return a.customRepeatedEnumDialogService.isOpen()?c.return():z(c,a.customRepeatedEnumDialogService.open({customFieldTitle:a.title,allowedValues:$td(a),selectedValues:a.values}),2);(b=c.yieldResult)&&aud(a,Array.from(b));ae(c)})},cs=function(a){return a.type==="REPEATED_ENUM"&&a.sortedEnumChoices.length>1E3};OV.prototype.showCodeChanges=function(a){a=!!Wq(a);return this.type==="CODE_CHANGES"&&(!a||this.enableGerritChanges)};
var $td=function(a){return a.sortedEnumChoices.map(function(b){return b.displayText})},aud=function(a,b){var c,d=(c=a.values)!=null?c:[];c=b.filter(function(f){return!d.includes(f)});var e=d.filter(function(f){return!b.includes(f)});if(c.length||e.length)a.values=b,a.valuesChange.emit({values:a.values,added:c,removed:e});a.closeAddPopup(!0);Dcb(a)&&ds(a,!0)};h=OV.prototype;h.isCustomField=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
h.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((d=b.values)==null?0:d.length){d=Math.min(a,b.values.length-1);var e,f,g;(e=b.removeButtons)==null||(f=e.get(d))==null||(g=f.nativeElement)==null||g.focus()}else{var k,l;(k=b.addLinkEl)==null||(l=k.nativeElement)==null||l.focus()}})};
h.addItems=function(a){var b=[];this.values=this.values||[];if(a)if(this.type==="REPEATED_DATE"){var c=j1a(a);this.preventDuplicates&&this.values.find(function(g){return mm(g,c)})||b.push(c)}else if(this.type==="REPEATED_NUMERIC"&&QQa(this.values)&&QQa(b))a=Number(a),this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(om(this.values)&&om(b))if(this.isCustomField())this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(!this.isCustomField()){a=m(a.split(/[,; ]/));for(var d=
a.next();!d.done;d=a.next()){var e=d=d.value;if(this.type==="CODE_CHANGES"){var f=!!Wq(d);this.enableGerritChanges&&f?e=d:e=w1a(d)}e&&!this.values.includes(e)&&b.push(e)}}this.isDefaultOrAllowedValues&&this.type!=="REPEATED_DATE"||this.closeAddPopup(!0);b.length!==0&&(this.values=[].concat(q(this.values),q(b)),this.valuesChange.emit({values:this.values,added:b}))};h.onDrop=function(a){bs(this.values,a.previousIndex,a.currentIndex);this.valuesChange.emit({values:this.values})};
h.closeAddPopup=function(a){var b,c=m((b=this.menuTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())b.value.closeMenu();var d;c=m((d=this.popupTriggers)!=null?d:[]);for(d=c.next();!d.done;d=c.next())this.closeInlineDialog(d.value);a&&this.addLinkEl&&this.addLinkEl.nativeElement.focus()};h.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};
var ds=function(a,b,c){c==null||c.stopPropagation();c==null||c.preventDefault();a.showingAll=b;a.cdr.markForCheck();a.schedule(function(){var d,e,f;(d=(f=a.showFewer)!=null?f:a.showMore)==null||(e=d.nativeElement)==null||e.focus()})},Dcb=function(a){return!!a.values&&a.values.length>a.defaultLineCount+1},dcb=function(a){return a.values&&a.type==="REPEATED_DATE"?a.values.map(function(b){return a.dateFormatter.formatUserCalendar(Sq(b))}):a.values&&a.type==="TEAM"?a.values:a.values&&a.type==="WORKSPACES"?
a.values:a.values&&a.type==="REPEATED_ENUM"?a.values:a.displayValuesOverride||(a.values||[]).map(function(b){return PQa(b)?b:OQa(b)?""+b:a.dateFormatter.formatUserCalendar(Sq(b))})};h=OV.prototype;
h.textPopupSubmit=function(a,b){var c=this,d,e,f;return y(function(g){if(g.nextAddress==1)return c.inputValidator?z(g,c.inputValidator(a.value.input),3):g.jumpTo(2);g.nextAddress!=2&&(c.invalidMessage=g.yieldResult,c.cdr.markForCheck());if(!a.valid||c.invalidMessage)return g.return();d=a.value.input;(e=a)==null||e.reset();(f=b.querySelector("input"))==null||f.focus();c.addItems(d);ae(g)})};h.trackClick=function(a){this.analytics.trackEvent("linkField","click",a)};h.getUser=function(a){return this.userMap.get(a)};
h.schedule=function(a){this.subscriptions.add(qe.schedule(a))};h.getAriaLabel=function(){if(!this.values||this.values.length===0)return this.title+" is empty";var a=this.title+" has "+this.values.length+" ";switch(this.type){case "REPEATED_DATE":a+="date";break;default:a+="item"}this.values.length>1&&(a+="s");return a};var Fcb=function(a,b){return b.displayText+", "+(a.enumPendingValues.has(b.value)?"selected":"not selected")};
OV.prototype.extractGroups=function(a){if(!this.isUser)return ce(new Set([]));var b=function(c){return c.principalType==="GROUP"};return this.principalTypesFridge.watchSet(a).pipe(A(function(c){return new Set(c.filter(b).map(function(d){return d.email}))}))};OV.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(OV)))(b||OV)}}();
OV.\u0275cmp=D({type:OV,selectors:[["b-list-field"]],viewQuery:function(a,b){a&1&&(hg(Ttd,5),hg(Utd,5),hg(Vtd,5),hg(Wtd,5,Hd),hg(Xtd,5),hg(iH,5),hg(eB,5));if(a&2){var c;lg(c=mg())&&(b.addLinkEl=c.first);lg(c=mg())&&(b.showFewer=c.first);lg(c=mg())&&(b.showMore=c.first);lg(c=mg())&&(b.editButton=c.first);lg(c=mg())&&(b.removeButtons=c);lg(c=mg())&&(b.menuTriggers=c);lg(c=mg())&&(b.popupTriggers=c)}},inputs:{defaultLineCount:"defaultLineCount",readonly:"readonly",preventDuplicates:"preventDuplicates",
isDefaultOrAllowedValues:"isDefaultOrAllowedValues",values:"values",showInternalOnlyFieldBadge:"showInternalOnlyFieldBadge",displayValuesOverride:"displayValuesOverride",enumChoices:"enumChoices",isUser:"isUser",listFieldDisabled:"listFieldDisabled",showingAll:"showingAll",title:"title",type:"type",tooltip:"tooltip",truncate:"truncate",isCollapsible:"isCollapsible",isExpanded:"isExpanded",iconName:"iconName",collapsiblePanelTitle:"collapsiblePanelTitle",customFieldId:"customFieldId",isRequired:"isRequired",
inputValidator:"inputValidator",checkAccessLimits:"checkAccessLimits",teamId:"teamId"},outputs:{valuesChange:"valuesChange",toggleAccessLimits:"toggleAccessLimits"},standalone:!1,features:[Gg([bQ]),Ef,jx],ngContentSelectors:[".value-action"],decls:23,vars:28,consts:[["addLink",""],["itemRenderer",""],["metadataTools",""],["enumPopup","matMenu"],["textPopup",""],["datePopup",""],["editButton",""],["removeButton",""],["showFewer",""],["showMore",""],["textPopupForm","ngForm","formEl",""],["tabindex",
"0",1,"bv2-issue-metadata-field-inner",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],[1,"bv2-editable-title",3,"focusin","focusout","matTooltip","matTooltipPosition","matTooltipDisabled"],["svgIcon","shield_person_24px","matTooltip","Visible to internal only","aria-label","Visible to internal only",1,"icon-xs","internal-only-badge"],["cdkDropList","",1,"list-field-content",3,"cdkDropListDropped","cdkDropListDisabled"],[3,"isExpanded","iconName","hasCompactTitleBar","title"],[1,"bv2-field-user-action-footer"],
["matMenuContent",""],["cdkDrag",""],[3,"ngTemplateOutlet"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[1,"no-value"],["type","button","mat-button","","dialogLabel","Add a new item to the list","matTooltip","Add a new item to the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","overlayPositions"],["type","button","mat-button","","panelClass","bv2-add-item-bubble","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link",
"tiny",3,"xapInlineDialogClick","dialogLabel","overlayPositions","matTooltip"],["type","button","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"],["type","button","mat-button","","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny"],["type","button","mat-button","","aria-haspopup","true","matTooltip","Select items in the list",
"tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"menuOpened","menuClosed","matMenuTriggerFor"],["type","button","mat-button","","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"click"],["type","button","mat-button","","panelClass","bv2-add-item-bubble","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"beforeOpened","xapInlineDialogClick","dialogLabel","overlayPositions",
"matTooltip"],[1,"flex-kids-x","flex-cross-axis-centered","flex-wrappable"],[1,"bv2-issue-metadata-list-item"],[1,"overflow-ellipsis",3,"matTooltip"],["type","button",1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"disabled","matTooltip"],[1,"float-clear"],[3,"codeChange"],["target","_blank",1,"bv2-metadata-link",3,"href"],[3,"teamId","componentId"],["target","_blank",1,"bv2-metadata-link",3,"click","href"],["routerLink","/issues",1,"subtle-link",3,"click","queryParams"],[3,"maxWidth",
"modelValue","disabled"],["type","button",1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"click","disabled","matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],[1,"bv2-metadata-tool"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],["mat-menu-item",
"","type","button","role","menuitemcheckbox",3,"disabled","b-menu-item-checked"],["mat-menu-item","","type","button","role","menuitemcheckbox",3,"click","disabled"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],[3,"ngSubmit"],["name","input","ngModel","","required","","step","any","aria-expanded","true","autofocus","",3,"type"],[1,"bv2-list-field-addition-dialog-buttons"],["mat-flat-button","","type","submit",1,"medium","field-popup-button",3,"disabled"],["svgIcon","done"],["mat-stroked-button",
"","type","button",1,"medium","field-popup-button",3,"click"],["svgIcon","close"],[3,"dateChange","cancelClicked","required","renderPanel"]],template:function(a,b){if(a&1){var c=t();bg(Ytd);K(0,"div")(1,"div",11)(2,"div",12);N("focusin",function(){u(c);return v(b.focusOnTitle=!0)})("focusout",function(){u(c);return v(b.focusOnTitle=!1)});F(3,$bb,2,1,"label");F(4,acb,1,0,"mat-icon",13);L();K(5,"div",14);N("cdkDropListDropped",function(d){u(c);return v(b.onDrop(d))});F(6,ecb,4,5,"collapsible-panel",
15)(7,hcb,4,2);K(8,"div",16,0);F(10,qcb,3,1);cg(11);L()()();E(12,Acb,1,1,"ng-template",null,1,Mg)(14,Ecb,2,2,"ng-template",null,2,Mg);K(16,"mat-menu",null,3);E(18,Hcb,2,0,"ng-template",17);L();E(19,Jcb,12,9,"ng-template",null,4,Mg)(21,Kcb,1,2,"ng-template",null,5,Mg);L()}a&2&&(wg("bv2-issue-metadata-list-field",!b.showInternalOnlyFieldBadge)("bv2-issue-metadata-field",!b.showInternalOnlyFieldBadge)("internal-only",b.showInternalOnlyFieldBadge)("empty-list-field-indication",b.isRequired&&!(b.values==
null?0:b.values.length))("active",b.isActive&&!b.listFieldDisabled&&!b.readonly),B(),wg("bv2-disabled",b.listFieldDisabled)("bv2-readonly",b.readonly),I("matTooltip",b.tooltip)("matTooltipPosition","left")("matTooltipDisabled",cs(b)),If("aria-label",b.getAriaLabel()),B(),I("matTooltip",b.tooltip)("matTooltipPosition","left")("matTooltipDisabled",!cs(b)),B(),G(b.title?3:-1),B(),G(b.showInternalOnlyFieldBadge?4:-1),B(),wg("draggable",(b.values==null?null:b.values.length)&&b.isDefaultOrAllowedValues),
I("cdkDropListDisabled",!b.isDefaultOrAllowedValues),B(),G(b.isCollapsible||cs(b)?6:7),B(4),G(b.readonly?-1:10))},dependencies:[Sx,Jy,hF,ID,jV,nE,xj,fE,gE,yE,mE,kE,kB,gB,vK,nA,UU,MV,LV,bB,aB,eB,VJ,fH,dH,eH,iH,EV,CV,vV],styles:["xap-dialog-layout[_ngcontent-%COMP%]{padding:16px}xap-dialog-layout-content[_ngcontent-%COMP%]{padding:0}.list-field-content.draggable[_ngcontent-%COMP%]{cursor:grab}.list-field-content.draggable[_ngcontent-%COMP%]:active{cursor:grabbing}.bv2-editable-title[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{word-break:normal;overflow-wrap:anywhere}b-icon[_ngcontent-%COMP%]{margin-bottom:4px}.internal-only[_ngcontent-%COMP%]{background-color:#f4f5f6;background-color:var(--tonal-fill-grey);margin:5px;border-radius:4px;padding:5px 15px}.internal-only[_ngcontent-%COMP%]   .internal-only-badge[_ngcontent-%COMP%]{color:#188038;color:var(--good-bg-inverse);transform:translate(5px, 5px)}[_nghost-%COMP%]     .bv2-field-user-action-footer span{width:max-content;display:flex}[_nghost-%COMP%]     b-icon.group-icon{width:12px;margin-top:1px}[_nghost-%COMP%]     b-icon.group-icon mat-icon{width:inherit}[_nghost-%COMP%]     b-icon.group-icon mat-icon svg{width:12px;height:16px}[_nghost-%COMP%]     b-icon.disabled-icon mat-icon svg{color:#bdc1c6;color:var(--text-disabled)}"]});
var bud={CODE_CHANGES:"CODE_CHANGES",POSTMORTEMS:"POSTMORTEMS",REPEATED_TEXT:"REPEATED_TEXT",REPEATED_DATE:"REPEATED_DATE",REPEATED_ENUM:"REPEATED_ENUM",REPEATED_NUMERIC:"REPEATED_NUMERIC",TEAM:"TEAM",WORKSPACES:"WORKSPACES"},PV=function(){};PV.\u0275fac=function(a){return new (a||PV)};PV.\u0275mod=$e({type:PV});PV.\u0275inj=Fc({imports:[WO,GU,HE,xV,nV,DE,mB,wK,iU,BV,VU,hV,NV,GV,HV,WJ,FV,HV,DV,dtd,gtd]});var cud=new RegExp("ALIAS:("+Object.values({GOOGLERS_UNRESTRICTED:"googlers_unrestricted",GOOGLE_DOMAIN:"google_domain",PUBLIC_NON_GOOGLE:"public_non_google",PUBLIC:"public"}).join("|")+")");var dud=Vi({opacity:"0"}),eud=ue(function(a){return a}),fud=Sd(nf(),eud,kf()),gud=new dd("xap-bubble UX style"),QV=function(a){var b=this;this.activity=new qf;this.openedSubject=new Mj(!1);this.destroy=new uf;this.overlayPositions=[];this.overlayPanelClass="";this.hoverDelayMs=50;this.beforeShow=this.beforeOpened=new Ti;this.onOpened=new Ti;this.bubbleStyle=a||"xap-bubble-md1";this.opened=this.openedSubject.pipe(Xka(function(){return b.activity.pipe(jf(b.hoverDelayMs))}));a=zf(this.destroy);this.opened.pipe(fud,
a).subscribe(this.onOpened);this.openedSubject.pipe(eud,Dla(function(){return b.opened.pipe(ue(function(c){return!c}))}),a).subscribe(function(){b.beforeOpened.emit()})};QV.prototype.ngOnDestroy=function(){this.destroy.next();this.destroy.complete()};QV.prototype.toggle=function(a){this.openedSubject.next(a);this.activity.next()};QV.\u0275fac=function(a){return new (a||QV)(Ve(gud,8))};
QV.\u0275cmp=D({type:QV,selectors:[["xap-bubble"]],inputs:{panelTemplate:"panelTemplate",overlayPositions:"overlayPositions",overlayPanelClass:"overlayPanelClass",hoverDelayMs:"hoverDelayMs"},outputs:{beforeOpened:"beforeOpened",beforeShow:"beforeShow",onOpened:"opened"},standalone:!1,ngContentSelectors:["*"],decls:5,vars:7,consts:[["trigger","cdkOverlayOrigin"],["cdkOverlayOrigin","",1,"xap-bubble-trigger",3,"mouseenter","mouseleave","mousemove","ngClass"],["cdkConnectedOverlay","","cdkConnectedOverlayPush",
"true",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],[1,"xap-bubble-panel",3,"mouseenter","mouseleave","mousemove","ngClass"],[4,"ngTemplateOutlet"]],template:function(a,b){if(a&1){var c=t();bg();K(0,"span",1,0);N("mouseenter",function(){u(c);return v(b.toggle(!0))})("mouseleave",function(){u(c);return v(b.toggle(!1))})("mousemove",function(){u(c);b.activity.next();return v()});cg(2);L();E(3,Qcb,2,3,"ng-template",2);T(4,"async")}a&
2&&(a=qg(1),I("ngClass",b.bubbleStyle),B(3),I("cdkConnectedOverlayPanelClass",b.overlayPanelClass)("cdkConnectedOverlayPositions",b.overlayPositions)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",U(4,5,b.opened)))},dependencies:[Lx,Sx,Vz,Uz,Tx],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:[Zsa("fade",[Yi(":enter",[dud,Ui("225ms")]),Yi(":leave",[Ui("195ms",dud)])])]}});var RV=function(){this.activeSession=p(uu);this.documentationLinks=p(cS);this.labelOnlyMode=this.compactMode=!1;this.chipText=this.bubbleText=this.chipClass=""};
RV.prototype.ngOnChanges=function(){if(this.accessLevel)switch(this.accessLevel){case "EXTERNAL_PARTNER":this.chipClass="partner";this.chipText=this.compactMode?"Partners":"Visible to Partners";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.chipText=this.compactMode?"Public":"Visible to Public";this.bubbleText='Components and issues designated as "Visible to Public" can be\n                shared with any external user.';
break;default:this.chipText=this.bubbleText=this.chipClass=""}};RV.\u0275fac=function(a){return new (a||RV)};
RV.\u0275cmp=D({type:RV,selectors:[["b-component-access-level-indicator"]],inputs:{accessLevel:"accessLevel",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode"},standalone:!1,features:[jx],decls:1,vars:1,consts:[["popup",""],[1,"chippy","rounded",3,"class","xs"],[3,"panelTemplate"],[1,"chippy","rounded"],[1,"chippy","rounded","nowrap"],[1,"bubble"],["target","_blank",3,"href"]],template:function(a,b){a&1&&F(0,Ucb,2,1);if(a&2){if(a=b.accessLevel)a=b.activeSession.isInternalSession()?b.accessLevel===
"EXTERNAL_PARTNER"||b.accessLevel==="EXTERNAL_PUBLIC":WN(b.activeSession)?b.accessLevel==="EXTERNAL_PUBLIC":!1;G(a?0:-1)}},dependencies:[QV],styles:[".chippy[_ngcontent-%COMP%]{margin-right:8px}.chippy.partner[_ngcontent-%COMP%]{background-color:#ffdeb5;background-color:var(--partner-bg);color:#202124;color:var(--partner-text);box-shadow:inset 0 0 0 2px var(--partner-outline)}.chippy.public[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg);color:#202124;color:var(--public-text);box-shadow:inset 0 0 0 2px var(--public-outline)}.chippy.xs[_ngcontent-%COMP%]{box-shadow:none;margin-right:4px}.bubble[_ngcontent-%COMP%]{width:300px}"],
changeDetection:0});var hud=qs.listIssues.makeHref,iud=qs.createIssue.makeHref,SV=function(){Z.apply(this,arguments);var a=this;this.componentFridge=p(RO);this.activeSession=p(uu);this.providedComponentId$=new uf(1);this.component$=this.providedComponentId$.pipe(yf(function(b){return a.componentFridge.watch(b)}),vf({refCount:!0,bufferSize:1}));this.init=new uf(1);this.isAnonymous=this.activeSession.isAnonymous()};Y(SV,Z);SV.\u0275dir=Z.\u0275dir;
SV.prototype.ngOnInit=function(){var a=this;this.providedComponentId$.next(this.componentId);this.recentIssuesUrl=hud({q:"status:open componentid:"+this.componentId,s:"created_time:desc"});this.createIssueUrl=iud()+"?component="+this.componentId;this.viewComponentUrl=qs.editComponent.makeHref(this.componentId);this.component$.pipe(lf(1),zf(this.destroyed$)).subscribe(function(){a.init.next()})};SV.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(SV)))(b||SV)}}();
SV.\u0275cmp=D({type:SV,selectors:[["b-component-card"]],inputs:{componentId:"componentId"},outputs:{init:"init"},standalone:!1,features:[Ef],decls:4,vars:3,consts:[["role","dialog","aria-label","Component Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[3,"accessLevel","labelOnlyMode"],["tabindex","0",1,"keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),F(2,Wcb,15,8),T(3,"async"),L()());if(a&2){var c;B(2);G((c=U(3,1,b.component$))?2:-1,c)}},dependencies:[RV,
Tx],styles:["[_nghost-%COMP%]{max-width:400px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}"]});var TV=function(){this.trackerHelpers=p(kS);this.componentPath=[];this.isArchived=!1;this.label="Component";this.openTab=""};da.Object.defineProperties(TV.prototype,{componentPathInfo:{configurable:!0,enumerable:!0,set:function(a){a=ju(this.trackerHelpers,a);this.componentPath=this.componentPathsLinkTo==="settings"?Zcb(a,Z4a):Zcb(a)}}});TV.\u0275fac=function(a){return new (a||TV)};
TV.\u0275cmp=D({type:TV,selectors:[["b-component-breadcrumb"]],inputs:{componentPathsLinkTo:"componentPathsLinkTo",componentPathInfo:"componentPathInfo",isArchived:"isArchived",label:"label",openTab:"openTab"},standalone:!1,decls:7,vars:2,consts:[["card","onedevHovercard"],["role","navigation","aria-labelledby","breadcrumb-label",1,"breadcrumb"],["id","breadcrumb-label"],[1,"breadcrumb-items"],[1,"breadcrumb-item"],[1,"breadcrumb-archived-indicator"],[1,"keep-focus-ring",3,"onedevHovercardTrigger",
"routerLinkObj"],[3,"componentId"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"p",2),Q(2),L(),K(3,"span",3),Nf(4,Xcb,6,4,"span",4,Mf),F(6,Ycb,2,0,"span",5),L()());a&2&&(B(2),S("",b.label,":"),B(2),Of(b.componentPath),B(2),G(b.isArchived?6:-1))},dependencies:[VO,KK,SK,SV],encapsulation:2});var UV=function(){Z.apply(this,arguments);var a=this;this.componentFridge=p(RO);this.trackerHelpers=p(kS);this.recentIssuesInComponent=zr;this.componentId$=new uf(1);this.hidePath=!1;this.error$=this.componentFridge.error$.pipe(ue(function(b){return String(b.idOrKey)===a.componentIdInternal}));this.rawComponent$=this.componentId$.pipe(ue(Pm),yf(function(b){return a.componentFridge.watch(b)}),ue(Pm));this.component$=te(this.error$,this.rawComponent$).pipe(A(function(b){return b.componentId&&b.name?
b:{componentId:b.idOrKey,name:"(unknown)"}}));this.isArchived$=this.component$.pipe(A(function(b){return b.archived}));this.componentPath$=this.component$.pipe(A(function(b){b=ju(a.trackerHelpers,b.componentPathInfo);return Zcb(b)}));this.init=new uf(1);this.routes$=this.componentId$.pipe(A(function(b){return{createIssue:Y4a(b),componentSettings:Z4a(b),recentIssues:zr(b)}}))};Y(UV,Z);UV.\u0275dir=Z.\u0275dir;UV.prototype.ngOnInit=function(){var a=this;this.component$.pipe(lf(1),zf(this.destroyed$)).subscribe(function(){a.init.next()})};
da.Object.defineProperties(UV.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentIdInternal=a;this.componentId$.next(a)}}});UV.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(UV)))(b||UV)}}();
UV.\u0275cmp=D({type:UV,selectors:[["b-component-path-card"]],inputs:{componentId:"componentId",hidePath:"hidePath"},outputs:{init:"init"},standalone:!1,features:[Ef],decls:7,vars:7,consts:[["role","dialog","aria-label","Component Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"component-path","squared","b-chip","s","margin-s-bottom"],[1,"flex-kids-y","padded-s-top","actions"],[3,"routerLinkObj"],[1,"flex-kids-x"],["svgIcon","folder",1,"icon-xs"],[1,"type-s"],[1,"id-text",
"flex-kids-x","gap-s","align-items-center"],[3,"accessLevel","labelOnlyMode"],["aria-label","View recent open issues","mat-button","",1,"primary",3,"routerLinkObj"],["aria-label","View component settings","mat-button","",1,"primary",3,"routerLinkObj"],["aria-label","Create issue in this component","mat-button","",1,"primary",3,"routerLinkObj"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),F(2,cdb,6,5,"div",2),F(3,ddb,10,5),T(4,"async"),F(5,edb,7,3,"div",3),T(6,"async"),L()());if(a&2){var c,
d;B(2);G(b.hidePath?-1:2);B();G((c=U(4,3,b.component$))?3:-1,c);B(2);G((d=U(6,5,b.routes$))?5:-1,d)}},dependencies:[Jy,VO,kB,gB,RV,Tx],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 fdb={QA:"124156",NIGHTLY:"190923",PROD:"190923"};new Promise(function(){});var VV=function(){var a=p(aP),b=p(BP),c=p(RO);Z.call(this);var d=this;this.componentApi=p(PO);this.appEvents=p(UO);this.activeSession=p(uu);this.components=a.get("components-second-level-cache")||a.create("components-second-level-cache",{capacity:25});this.subscriptions.add(this.appEvents.componentModified.subscribe(function(e){d.components.removeAll();c.invalidate(e)}));this.componentGetter=b.adapt(function(e){var f=Ma(e);Bba(f);return d.componentApi.query({id:f}).then(function(g){var k={};g=m(g);
for(var l=g.next();!l.done;l=g.next())(l=l.value)&&(k[l.componentId]=l);return e.map(function(r){return k[r]||null})})})};Y(VV,Z);VV.\u0275dir=Z.\u0275dir;h=VV.prototype;h.get=function(a){var b=this.components.get(a);if(b!=null)return b;b=this.componentGetter.get(a).then(function(c){return c!=null?c:Promise.reject(new cdd("Could not load details for component "+a))});return this.components.put(a,b)};
h.create=function(a){var b=this;return this.componentApi.create(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};h.update=function(a){var b=this;return this.componentApi.update(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};h.move=function(a,b){var c=this;return this.componentApi.move(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};
h.updateSlo=function(a,b){var c=this;return this.componentApi.updateSlo(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};h.updateTeam=function(a,b){var c=this;return this.componentApi.updateTeam(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};h.getChildren=function(a,b){return this.componentApi.getChildren(a,b===void 0?!1:b)};h.getDescendants=function(a){return this.componentApi.getDescendants(a)};
h.getUncached=function(a){this.components.remove(a);return this.componentApi.fetchComponent(a)};h.search=function(a,b){var c={query:a};if(b===void 0?0:b)c.includearchived=!0;return jud(this,a,this.componentApi.query(c))};
var jud=function(a,b,c){if(b.match(/^\s*android\s*$/i)){var d=gdb(a.activeSession.getEnvironmentType());if(d)return ns({publicComponent:a.get(d),rest:c}).then(function(e){var f=[e.publicComponent];e=m(e.rest);for(var g=e.next();!g.done;g=e.next())g=g.value,g.componentId!==d&&f.push(g);return f})}return c};
VV.prototype.bulkLoad=function(a){var b=this,c=a.filter(function(f){return!b.components.get(f)});Bba(c);if(c.length){a=this.componentApi.query({id:c}).then(function(f){var g={};f=m(f);for(var k=f.next();!k.done;k=f.next())(k=k.value)&&(g[k.componentId]=k);return g});c=m(c);for(var d=c.next(),e={};!d.done;e={id$jscomp$430:void 0},d=c.next())e.id$jscomp$430=d.value,this.components.put(e.id$jscomp$430,a.then(function(f){return function(g){return g[f.id$jscomp$430]?g[f.id$jscomp$430]:Promise.reject(new cdd("Could not load details for component "+
f.id$jscomp$430))}}(e)))}};VV.\u0275fac=function(a){return new (a||VV)};VV.\u0275prov=Dc({token:VV,factory:VV.\u0275fac,providedIn:"root"});var kud=rw(["https://www.gstatic.com/buganizer/gfx/","/",""]),WV=rw(["https://www.gstatic.com/buganizer/img/v2/",""]),lud=Fh(kud,"2025-10-22-5f0daa77","all-icons.svg"),mud=Fh(WV,"empty_blocker_light.png"),nud=Fh(WV,"empty_blocker_dark.png"),oud=Fh(WV,"empty_child_light.png"),pud=Fh(WV,"empty_child_dark.png"),qud=Fh(WV,"robot_sleeping.png"),rud=Fh(WV,"tea_light.png"),sud=Fh(WV,"tea_dark.png"),tud=Fh(WV,"space_empty_state.png"),uud=Fh(WV,"eg_work_area.png"),vud=Fh(WV,"empty_triage.png");Fh(WV,"gerrit_logo.svg");var XV=function(){this.ICON_URL=lud;this.LOGO_LIGHT="https://www.gstatic.com/buganizer/img/v3/logo_light.svg";this.LOGO_PURPLE="https://www.gstatic.com/buganizer/img/v2/logo_purple.svg";this.EMPTY_BLOCKER_LIGHT=mud;this.EMPTY_BLOCKER_DARK=nud;this.EMPTY_CHILD_LIGHT=oud;this.EMPTY_CHILD_DARK=pud;this.ROBOT_SLEEPING=qud;this.TEA_LIGHT=rud;this.TEA_DARK=sud;this.SPACE_EMPTY_STATE=tud;this.WORK_AREA_EXAMPLE_ILLUSTRATION=uud;this.EMPTY_TRIAGE=vud};XV.\u0275fac=function(a){return new (a||XV)};
XV.\u0275prov=Dc({token:XV,factory:XV.\u0275fac,providedIn:"root"});var YV=function(){this.activeSession=p(uu);this.documentationLinks=p(cS);this.trackerHelpers=p(kS);this.imageUrls=p(XV);this.compactMode=!1;this.showHovercard=!0;this.isGlobalBuganizer=!1;this.logoDark=this.logoLight=this.extendedName=this.name=this.redirectUrl=""};
YV.prototype.ngOnChanges=function(a){if(a.tracker||a.isGlobalBuganizer){this.redirectUrl=this.isGlobalBuganizer?Omd(this.trackerHelpers,""):ft(this.trackerHelpers,"",this.tracker);this.name=this.getName();this.extendedName=this.isGlobalBuganizer?this.name:"the "+this.name+" Tracker";if(this.isGlobalBuganizer)a=this.imageUrls.LOGO_LIGHT;else{var b,c;if((b=this.tracker)==null?0:(c=b.branding)==null?0:c.logoUrl){var d,e,f;a=(f=(d=this.tracker)==null?void 0:(e=d.branding)==null?void 0:e.logoUrl)!=null?
f:""}else a="https://www.gstatic.com/buganizer/img/v3/logo_light.svg"}this.logoLight=a;if(this.isGlobalBuganizer)d="https://www.gstatic.com/buganizer/img/v3/logo_dark.svg";else{var g;d=(g=this.logoLight)!=null?g:""}this.logoDark=d}};YV.prototype.getName=function(){if(this.isGlobalBuganizer)return this.activeSession.getAppName();var a,b;return(b=(a=this.tracker)==null?void 0:a.name)!=null?b:""};YV.\u0275fac=function(a){return new (a||YV)};
YV.\u0275cmp=D({type:YV,selectors:[["b-tracker-chip"]],inputs:{tracker:"tracker",compactMode:"compactMode",showHovercard:"showHovercard",isGlobalBuganizer:"isGlobalBuganizer"},standalone:!1,features:[jx],decls:1,vars:1,consts:[["card","onedevHovercard"],["type","button",1,"chippy","rounded",3,"onedevHovercardTrigger","onedevHovercardActive"],["alt","",1,"logo","light-only",3,"src"],["alt","",1,"logo","dark-only",3,"src"],[1,"name"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],
[1,"flex-kids-y","padded-s-top","actions"],["mat-button","","target","_blank",1,"primary",3,"href"]],template:function(a,b){a&1&&F(0,kdb,15,12);a&2&&G(b.tracker||b.isGlobalBuganizer?0:-1)},dependencies:[KK,SK,kB,gB],styles:[".dark-mode   [_nghost-%COMP%]    , .light-mode   [_nghost-%COMP%]    , :root   [_nghost-%COMP%]    {--tracker-chip-bg:#d5e2fa}.dark-mode   [_nghost-%COMP%]    {--tracker-chip-bg:#283143}.chippy[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast);margin-right:8px;background:var(--tracker-chip-bg);display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding-right:8px;vertical-align:middle;border:0;box-shadow:none}.chippy[_ngcontent-%COMP%]:focus{outline:1px solid var(--primary)}.logo[_ngcontent-%COMP%]{width:16px;height:16px}.name[_ngcontent-%COMP%]{margin-left:4px}.chippy.xs[_ngcontent-%COMP%]{margin-right:4px;padding:0 4px;min-height:15px}.chippy.xs[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{width:14px;height:14px}.onedev-hovercard-body[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.onedev-hovercard-body[_ngcontent-%COMP%]   .hovertext[_ngcontent-%COMP%]{margin-bottom:1em}.onedev-hovercard-body[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}.onedev-hovercard-body[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:-8px}"],
changeDetection:0});var ZV=function(){var a=this;this.activeSession=p(uu);this.trackerFridge=p(VQ);this.compactMode=!1;this.showHovercard=!0;this.trackerId$=new Mj(void 0);this.tracker$=this.trackerId$.pipe(yf(function(b){return b?a.trackerFridge.watch(b).pipe(gf(function(){return ce(void 0)})):ce(void 0)}));this.isCurrentTracker$=this.trackerId$.pipe(A(function(b){var c,d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId;return d?d===b:!b}))};ZV.prototype.ngOnChanges=function(a){a.trackerId&&this.trackerId$.next(this.trackerId)};
da.Object.defineProperties(ZV.prototype,{isGlobalBuganizer:{configurable:!0,enumerable:!0,get:function(){return!this.trackerId$.value}}});ZV.\u0275fac=function(a){return new (a||ZV)};
ZV.\u0275cmp=D({type:ZV,selectors:[["b-tracker-chip-smart"]],inputs:{trackerId:"trackerId",compactMode:"compactMode",showHovercard:"showHovercard"},standalone:!1,features:[jx],decls:2,vars:3,consts:[[3,"tracker","compactMode","showHovercard","isGlobalBuganizer"]],template:function(a,b){a&1&&(F(0,ldb,2,6,"b-tracker-chip",0),T(1,"async"));a&2&&G(U(1,1,b.isCurrentTracker$)===!1?0:-1)},dependencies:[YV,Tx],encapsulation:2,changeDetection:0});var $V=function(){this.showFolderSpecialIcon=!1;this.mode="default";this.query="";this.selectComponentId=new aQ;this.expandComponent=new aQ;this.goBack=new aQ};$V.prototype.ngOnInit=function(){};$V.prototype.expand=function(a,b){b.preventDefault();b.stopPropagation();this.expandComponent.emit(a)};$V.prototype.back=function(a){a.preventDefault();a.stopPropagation();this.goBack.emit()};$V.\u0275fac=function(a){return new (a||$V)};
$V.\u0275cmp=D({type:$V,selectors:[["component-row"]],inputs:{showFolderSpecialIcon:"showFolderSpecialIcon",componentOption:"componentOption",mode:"mode",query:"query"},outputs:{selectComponentId:"selectComponentId",expandComponent:"expandComponent",goBack:"goBack"},standalone:!1,decls:11,vars:7,consts:[[1,"container"],["svgIcon","history"],"type;button;mat-icon-button;;aria-label;Return to search results;matTooltip;Return to search results".split(";"),["type","button","mat-icon-button","",1,"expand-button",
3,"matTooltip"],[1,"content"],[1,"margin-s-right"],[1,"archived-indicator"],[3,"accessLevel","labelOnlyMode"],[3,"trackerId","showHovercard"],["type","button","mat-icon-button","","aria-label","Return to search results","matTooltip","Return to search results",3,"mousedown"],["svgIcon","back"],["type","button","mat-icon-button","",1,"expand-button",3,"mousedown","matTooltip"],[3,"svgIcon"],[1,"subtle-link",3,"innerHtml"],[1,"subtle-link",3,"mousedown","innerHtml"],[1,"subtle-link"],[1,"subtle-link",
3,"mousedown"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,mdb,1,0,"mat-icon",1)(2,ndb,2,0,"button",2)(3,odb,2,3,"button",3),K(4,"div",4)(5,"span",5),F(6,tdb,2,0)(7,vdb,1,1),F(8,wdb,2,0,"span",6),L(),M(9,"b-component-access-level-indicator",7)(10,"b-tracker-chip-smart",8),L()());a&2&&(B(),G(!0===(b.mode=="recent"||b.mode=="popular")?1:!0===(b.mode=="tree")?2:3),B(5),G(b.mode!=="leaf"?6:7),B(2),G(b.componentOption.archived?8:-1),B(),I("accessLevel",b.componentOption.accessLimit==null?null:b.componentOption.accessLimit.accessLevel)("labelOnlyMode",
!0),B(),I("trackerId",b.componentOption.trackerId)("showHovercard",!1))},dependencies:[Jy,kB,iB,vK,nA,ZV,RV,cV,tsd],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-mdc-icon-button[_ngcontent-%COMP%]{width:20px;height:20px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;line-height:18px}.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{--mat-icon-button-icon-size:18px;height:18px;width:18px;line-height:18px}.archived-indicator[_ngcontent-%COMP%]{margin-left:4px;color:#ea4335;color:var(--bad)}\n/*# sourceMappingURL=component_row.css.map */"]});var aW=function(a,b,c,d,e,f,g,k,l,r,w,x){var C=this;this.userApi=a;this.userAccess=b;this.componentApi=c;this.componentActions=d;this.teamsService=e;this.analytics=f;this.destroyed$=g;this.config=k;this.trackerHelpers=l;this.activeSession=r;this.issueRecommendationFridge=w;this.componentFridge=x;this.includeArchived=!1;this.searchQuery$=new Mj("");this.debouncedSearchQuery$=this.searchQuery$.pipe(jf(250));this.state$=new Mj("default");this.listUpdated$=new qf;this.componentsLoading=this.teamsLoading=
!1;this.teamScope$=new Mj(void 0);this.componentOptions=[];this.childTeamsMap=new Map;this.componentCountMap=new Map;this.rawPopularComponents=[];this.popularComponents=[];this.rawRecentComponents=[];this.recentComponents=[];this.recommendedComponents=[];this.recommendedComponentToRecommendation=new Map;this.myTeams$=new Mj([]);this.showAllTeams$=new Mj(!1);this.showAllTeamsDistinct$=this.showAllTeams$.pipe(nf());this.teamOptions$=new Mj([]);this.filteredTeamOptions$=ie([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(A(function(H){var J=
m(H);H=J.next().value;return J.next().value?H:H.slice(0,5)}));this.hasHiddenTeams$=ie([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(A(function(H){var J=m(H);H=J.next().value;J=J.next().value;return H.length>5&&!J}));this.newChildTeams$=new Mj([]);this.teamsDisplayed$=te(this.myTeams$,this.teamOptions$,this.newChildTeams$,this.teamScope$.pipe(A(function(H){return H?[H]:[]}))).pipe(A(function(H){return H.map(function(J){return J.id})}));this.requestIndex=0;this.unseenTeamChildTeamsMap$=this.teamsDisplayed$.pipe(A(function(H){return H.filter(function(J){return!C.childTeamsMap.has(J)})}),
ue(function(H){return H.length>0}),yf(function(H){return C.teamsService.getChildTeams(H)}),A(Adb));this.unseenTeamComponentCountMap$=this.teamsDisplayed$.pipe(A(function(H){return H.filter(function(J){return!C.componentCountMap.has(J)})}),ue(function(H){return H.length>0}),yf(function(H){return Ajd(C.teamsService,H)}));this.componentIdSelected$=new uf(1);this.lastProcessedIndex=-1;this.ootbSourceId=this.activeSession.getEnvironmentType()==="PROD"?"recommendationSources/1385":"recommendationSources/1057"};
aW.prototype.init=function(a,b,c){var d=this;a=a===void 0?!1:a;this.issueId=c;wud(this,b===void 0?null:b,c);ie([this.debouncedSearchQuery$.pipe(wf(a?1:0)),this.state$]).pipe(zf(this.destroyed$)).subscribe(function(e){var f=m(e);e=f.next().value;f=f.next().value;d.showAllTeams$.next(!1);f==="default"?e?d.state$.next("global"):(d.componentOptions=[],d.teamOptions$.next([]),d.listUpdated$.next()):f==="global"?e?(d.includeTeamData()&&xud(d,e),yud(d,e)):d.state$.next("default"):f==="team_scope"?d.teamScope$.value&&
(d.teamOptions$.next([]),yud(d,"teamid:"+d.teamScope$.value.id+" "+e)):f==="component_scope"&&d.componentScope&&zud(d,d.componentScope.id)});this.debouncedSearchQuery$.pipe(Cf(this.state$),zf(this.destroyed$)).subscribe(function(e){var f=m(e);e=f.next().value;f.next().value==="component_scope"&&d.state$.next(e?"global":"default")});this.unseenTeamChildTeamsMap$.pipe(zf(this.destroyed$)).subscribe(function(e){e=m(e.entries());for(var f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;
g=g.next().value;d.childTeamsMap.set(f,g)}});this.unseenTeamComponentCountMap$.pipe(zf(this.destroyed$)).subscribe(function(e){e=m(e.entries());for(var f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;g=g.next().value;d.componentCountMap.set(f,g)}})};aW.prototype.includeTeamData=function(){return this.config.includeTeamData&&!rs(this.activeSession)};
var wud=function(a,b,c){b=b===void 0?null:b;a.componentsLoading=!0;var d=Promise.resolve(b!==null?EP(a.userAccess,"reader","components/"+b.componentId+"/issueDefaults"):!1).then(function(f){return f?a.componentApi.getPopularRoutingTargets(b.componentId).then(function(g){g=g.filter(function(k){return a.filterTrackerComponents(k)});g=Aud(a,g);a.rawPopularComponents=g;a.listUpdated$.next()}):Promise.resolve()}),e=a.userApi.getRecentComponents().then(function(f){f=f.filter(function(g){return a.filterTrackerComponents(g)});
f=Aud(a,f);a.rawRecentComponents=f});c=c?Bud(a,c).then(function(f){a.recommendedComponents=f}):Promise.resolve();Promise.all([d,e,c]).finally(function(){var f=new Set(a.recommendedComponents.map(function(k){return k.id}));a.popularComponents=a.rawPopularComponents.filter(function(k){return!f.has(k.id)});var g=new Set(a.popularComponents.map(function(k){return k.id}));a.recentComponents=a.rawRecentComponents.filter(function(k){return!g.has(k.id)&&!f.has(k.id)});a.listUpdated$.next();a.componentsLoading=
!1});a.includeTeamData()&&(a.teamsLoading=!0,QQ(a.teamsService,"").pipe(zf(a.destroyed$)).subscribe(function(f){a.myTeams$.next(f.map(xdb));a.listUpdated$.next();a.teamsLoading=!1},function(){a.teamsLoading=!1}))},Bud=function(a,b){a.recommendedComponentToRecommendation.clear();return fe(a.issueRecommendationFridge.watch(b+"-COMPONENT_ROUTING").pipe(lf(1),A(function(c){var d;return(d=c==null?void 0:c.recommendations)!=null?d:[]}),A(function(c){return c.filter(function(d){return d.source===a.ootbSourceId})}),
yf(function(c){if(c.length===0)return ce([]);c=c.map(function(d){var e=d.recommendation.split("/");(e=e.length===2&&e[0]==="components"?e[1]:null)&&a.recommendedComponentToRecommendation.set(e,d);return e}).filter(function(d){return!!d});if(c.length===0)return ce([]);c=[].concat(q(new Set(c)));return ie(c.map(function(d){return a.componentFridge.watch(d).pipe(gf(function(){return ce(void 0)}))}))}),A(function(c){return Aud(a,c.filter(function(d){return!!d}))}),gf(function(){return ce([])}),zf(a.destroyed$)))};
aW.prototype.filterTrackerComponents=function(a){var b;return!rs(this.activeSession)||a.trackerId===((b=this.activeSession.getTracker())==null?void 0:b.trackerId)};aW.prototype.selectOption=function(a){a.type==="component"?efb(this,a.id):a.type==="team"?Udb(this,a):console.warn("invalid option selected")};
var efb=function(a,b){a.analytics.trackEvent("componentPicker","autocomplete-select",Cud(a,b));var c=new Map;c.set("combined",[].concat(q(a.recommendedComponents),q(a.popularComponents),q(a.recentComponents)));c.set("recommended",a.recommendedComponents);c.set("popular",a.rawPopularComponents);c.set("recent",a.rawRecentComponents);c=m(c);for(var d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;for(var f=null,g=0;g<e.length;g++){var k=void 0;if(b===((k=e[g])==null?
void 0:k.id)){f=g+1;break}}f!=null?a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"Success"):(g=void 0,((g=e)==null?void 0:g.length)>0?a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"FailureNoMatch"):a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"FailureNoSuggestion"));f!=null&&(f===1&&a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"N1"),f<=5&&a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"N5"),f<=10&&a.analytics.trackEvent("componentPicker",
"suggestionSuccess",d+"N10"))}a.recommendedComponentToRecommendation.get(b);a.componentIdSelected$.next(b);a.state$.next("global")},Cud=function(a,b){if(a.state$.value==="default")return a.recommendedComponents.some(function(e){return b===e.id})?"recommended-component":a.popularComponents.some(function(e){return b===e.id})?"popular-component":"recent-component";if(a.state$.value==="global")return"global-search";if(a.state$.value==="component_scope")return"component-scope";if(a.state$.value==="team_scope"){var c,
d=(c=a.teamScope$.value)==null?void 0:c.id;return a.myTeams$.value.some(function(e){return e.id===d})?"my-team":"team-scope"}return""};aW.prototype.expandComponent=function(a){this.componentScope=a;this.state$.next("component_scope")};
var Meb=function(a,b){a.componentActions.get(b).then(function(c){var d=ju(a.trackerHelpers,c.componentPathInfo);a.componentScope=zdb(c,d);a.state$.next("component_scope")})},Leb=function(a){a.componentScope=void 0;a.searchQuery$.value?a.state$.next("global"):a.state$.next("default")},Udb=function(a,b){a.teamScope$.next(Object.assign({},b,{expanded:!1}));a.state$.next("team_scope");a.searchQuery$.next("");b.pathNames||Vdb(a,b.id)},Vdb=function(a,b){a.teamsLoading=!0;QQ(a.teamsService,b).pipe(zf(a.destroyed$)).subscribe(function(c){c=
c.map(xdb);if(c.length===1){c=c[0];var d,e=c.id!==((d=a.teamScope$.value)==null?void 0:d.id);a.teamScope$.next(c);a.teamsLoading=!1;e&&a.state$.next("team_scope")}},function(){a.teamsLoading=!1})},Dud=function(a){if(a.teamScope$.value&&a.teamScope$.value.pathIds&&!(a.teamScope$.value.pathIds.length<2)){var b=a.teamScope$.value.pathIds;Vdb(a,b[b.length-2])}};aW.prototype.getChildTeams=function(a){var b;return(b=this.childTeamsMap.get(a))!=null?b:[]};
aW.prototype.hasNoComponent=function(a){return this.componentCountMap.has(a)?this.componentCountMap.get(a)===0:!1};
var Beb=function(a,b){b.expanded=!1;a.listUpdated$.next()},Ceb=function(a,b){b.expanded=!0;a.listUpdated$.next();a.newChildTeams$.next(a.getChildTeams(b.id))},Feb=function(a){a.teamScope$.next(void 0);a.searchQuery$.next("");a.state$.next("default")},xud=function(a,b){b.length>1&&(a.teamsLoading=!0,QQ(a.teamsService,b).pipe(zf(a.destroyed$)).subscribe(function(c){a.teamOptions$.next(c.map(xdb));a.teamsLoading=!1;a.listUpdated$.next()},function(){a.teamsLoading=!1}))},yud=function(a,b){if(b.length>
1){a.componentsLoading=!0;var c=a.requestIndex++;a.componentActions.search(b,a.includeArchived).then(function(d){c>a.lastProcessedIndex&&(a.lastProcessedIndex=c,a.componentOptions=Aud(a,d));a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1})}},zud=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=Aud(a,d),a.listUpdated$.next())}).finally(function(){a.componentsLoading=
!1})},Aud=function(a,b){return b.map(function(c){var d=ju(a.trackerHelpers,c.componentPathInfo);return zdb(c,d)})};var Eud=0,bW=function(){this.changeDetectorRef=p(Cx);this.elementRef=p(Hd);this.active=!1;this.id="b-component-picker-option-"+Eud++};bW.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};bW.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};bW.\u0275fac=function(a){return new (a||bW)};
bW.\u0275dir=af({type:bW,selectors:[["","listOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Pf("id",b.id),wg("active",b.active))},inputs:{data:"data",listOrder:"listOrder"},standalone:!1});var cW=function(){this.query="";this.hasNoComponent=this.compact=this.allowSegmentSelection=!1;this.selectTeamId=new aQ};cW.prototype.getLogoUrl=function(){return"https://moma-teams-photos.corp.google.com/logo/"+this.teamOption.id};cW.prototype.ngOnInit=function(){};cW.\u0275fac=function(a){return new (a||cW)};
cW.\u0275cmp=D({type:cW,selectors:[["team-row"]],inputs:{teamOption:"teamOption",query:"query",allowSegmentSelection:"allowSegmentSelection",compact:"compact",hasNoComponent:"hasNoComponent"},outputs:{selectTeamId:"selectTeamId"},standalone:!1,decls:5,vars:7,consts:[[1,"container"],["alt",""],[1,"content"],[1,"name-row"],[1,"path"],[1,"team-name",3,"innerHtml"],[1,"no-component-label"],[1,"subtle-link"],[1,"subtle-link",3,"mousedown"],[1,"team-name"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,
Bdb,1,1,"img",1),K(2,"div",2),F(3,Ddb,4,5,"div",3),F(4,Ldb,3,0,"div",4),L()());a&2&&(wg("no-component",b.hasNoComponent)("compact",b.compact),B(),G(b.compact?-1:1),B(2),G(b.compact?-1:3),B(),G(b.teamOption.pathNames&&b.teamOption.pathNames.length?4:-1))},dependencies:[cV],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 Fud=new dd("GM2_PROGRESS_BAR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var Gud=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};Gud.\u0275fac=function(a){return new (a||Gud)(Ve(Fud))};Gud.\u0275dir=af({type:Gud,selectors:[["mat-progress-bar"]],hostAttrs:[1,"gmat-mdc-progress-bar"],standalone:!1});var Hud=["container"],Iud=["inputBox"],Jud=["dropdownTemplate"],Kud=["dropdown"],beb=function(a){return{mode:"recommended",$implicit:a}},feb=function(a){return{mode:"popular",$implicit:a}},ieb=function(a){return{mode:"recent",$implicit:a}},veb=function(a){return{mode:"default",$implicit:a}},peb=function(a){return[a]},oeb=function(a,b){return{team:a,level:0,order:b}},Jeb=function(a,b){return{mode:"default",$implicit:a,teamScope:b}},Geb=function(){return[0]},yeb=function(a){return[0,a]},Peb=function(a){return{mode:"leaf",
$implicit:a}},Veb=function(a,b,c){return{team:a,level:b,order:c}},Lud=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Mud=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],dW=function(){Z.apply(this,arguments);this.overlay=p(Tz);this.viewContainerRef=p(eg);this.userApi=p(kP);this.componentApi=p(PO);this.componentActions=p(VV);this.teamsService=
p(OQ);this.userAccess=p(DP);this.analytics=p(eQ);this.activeSession=p(uu);this.issueRecommendationFridge=p(iQ);this.componentFridge=p(RO);this.trackerHelpers=p(kS);this.cdr=p(Cx);this.placeholder="";this.isRequired=!1;this.ariaLabel="";this.checkAdminAccess=this.showOverlayAbove=!1;this.accessCheckComplete=new aQ;this.shouldFocus=!1;this.touched=new aQ;this.selectedComponentChange=new aQ;this.dropdownClosed=new aQ;this.checkingAccess=this.hasAccess=!1;this.isExternal=this.activeSession.isExternalSession();
this.searchState=new aW(this.userApi,this.userAccess,this.componentApi,this.componentActions,this.teamsService,this.analytics,this.destroyed$,{includeTeamData:!this.isExternal},this.trackerHelpers,this.activeSession,this.issueRecommendationFridge,this.componentFridge);this.componentLoading=this.isDropdownOpen=!1};Y(dW,Z);dW.\u0275dir=Z.\u0275dir;
dW.prototype.ngOnInit=function(){var a=this;this.searchState.init(!!this.selectedComponent,this.selectedComponent,this.issueId);this.searchState.componentIdSelected$.pipe(zf(this.destroyed$)).subscribe(function(b){a.componentLoading=!0;a.componentActions.get(b).then(function(c){a.selectedComponent=c;Nud(a);a.componentLoading=!1;a.close(!0);a.selectedComponentChange.emit(c)})},function(){a.componentLoading=!1});te(this.searchState.debouncedSearchQuery$,this.searchState.state$).pipe(zf(this.destroyed$)).subscribe(function(){a.clearActiveItem()})};
dW.prototype.isLoading=function(){return this.componentLoading||this.searchState.componentsLoading||this.searchState.teamsLoading};
var Nud=function(a){if(a.selectedComponent){var b=ju(a.trackerHelpers,a.selectedComponent.componentPathInfo);b=zdb(a.selectedComponent,b);a.searchState.searchQuery$.next(b.componentPath.length?b.componentPath[b.componentPath.length-1].pathText:"")}else a.searchState.searchQuery$.next("")},Oud=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}};h=dW.prototype;h.ngOnChanges=function(a){a.selectedComponent&&(Nud(this),this.checkAdminAccess&&this.selectedComponent&&Pud(this,this.selectedComponent))};h.ngOnDestroy=function(){this.close();Z.prototype.ngOnDestroy.call(this)};
h.ngAfterViewInit=function(){var a=this;this.keyManager=mz(nz(new rz(this.listOptions)));this.searchState.listUpdated$.pipe(zf(this.destroyed$)).subscribe(function(){a.cdr.markForCheck()});this.listOptions.changes.pipe(zf(this.destroyed$)).subscribe(function(b){var c=b.toArray();b=c.filter(function(e){return e.listOrder==null});c=c.filter(function(e){return e.listOrder!=null}).sort(ofb);b=[].concat(q(c),q(b));a.listOptions.reset(b);var d;if((d=a.keyManager)==null?0:d.activeItem)d=b.indexOf(a.keyManager.activeItem),
d>-1&&d!==a.keyManager.activeItemIndex&&a.keyManager.setActiveItem(d)});this.shouldFocus&&setTimeout(function(){a.inputBox.nativeElement.focus()})};h.open=function(){this.isDropdownOpen||(this.isDropdownOpen=!0,this.dropdownOverlayRef=this.createOverlay(),this.attach())};
h.close=function(a){a=a===void 0?!1:a;this.isDropdownOpen&&this.dropdownOverlayRef&&(this.searchState.searchQuery$.value||(this.selectedComponent=void 0,this.selectedComponentChange.emit(void 0)),this.searchState.state$.value==="team_scope"&&Feb(this.searchState),this.isDropdownOpen=!1,this.dropdownOverlayRef.dispose(),this.dropdownOverlayRef=void 0,this.clearActiveItem(),this.dropdownClosed.emit(),this.analytics.trackEvent("componentPicker","close",a?"with-selection":"without-selection"))};
h.clearQuery=function(){this.searchState.searchQuery$.next("");this.isDropdownOpen||this.inputBox.nativeElement.focus()};var Qud=function(a){var b,c,d;return(d=(b=a.keyManager)==null?void 0:(c=b.activeItem)==null?void 0:c.id)!=null?d:void 0};
dW.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),Oud(this)):(this.open(),setTimeout(function(){var d;(d=b.keyManager)==null||CCc(d);Oud(b)}));break;case "ArrowDown":this.isDropdownOpen?(this.keyManager.onKeydown(a),Oud(this)):(this.open(),setTimeout(function(){var d;(d=b.keyManager)!=null&&d._setActiveItemByIndex(0,1);Oud(b)}));break;case "Enter":this.keyManager.activeItem&&
(this.searchState.teamScope$.value===this.keyManager.activeItem.data?Feb(this.searchState):this.searchState.selectOption(this.keyManager.activeItem.data),a.preventDefault());break;case "ArrowRight":if(this.keyManager.activeItem){var c=this.keyManager.activeItem.data;c.type==="team"?(a.preventDefault(),Ceb(this.searchState,c)):c.type==="component"&&(a.preventDefault(),this.searchState.expandComponent(c))}break;case "ArrowLeft":this.keyManager.activeItem&&this.keyManager.activeItem.data.type==="team"&&
(a.preventDefault(),this.searchState.teamScope$.value!==this.keyManager.activeItem.data||this.searchState.teamScope$.value.expanded?Beb(this.searchState,this.keyManager.activeItem.data):Dud(this.searchState));this.searchState.state$.value==="component_scope"&&(a.preventDefault(),Leb(this.searchState));break;case "Backspace":case "Delete":this.keyManager.activeItem&&this.searchState.teamScope$.value===this.keyManager.activeItem.data&&(Feb(this.searchState),a.preventDefault());break;default:this.touched.emit(),
this.isDropdownOpen||this.open()}};var ps=function(a){a.preventDefault();a.stopPropagation()},Pud=function(a,b){a.checkingAccess=!0;a.hasAccess=!1;EP(a.userAccess,"admin","components/"+b.componentId).then(function(c){a.checkingAccess=!1;a.accessCheckComplete.emit(c);a.hasAccess=c})};h=dW.prototype;
h.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;return this.overlay.create(new di({positionStrategy:a,scrollStrategy:b,panelClass:["b-team-component-picker-dropdown","gmat-elevation-z3"],width:(c=this.container.nativeElement)==null?void 0:c.offsetWidth}))};h.attach=function(){var a=new Oz(this.dropdownTemplateRef,this.viewContainerRef),b;(b=this.dropdownOverlayRef)==null||b.attach(a);var c;(c=this.dropdownOverlayRef)==null||c.updatePosition()};
h.getPositionStrategy=function(){var a=this.showOverlayAbove?Mud:Lud;return Fz(dDc(Hz(Lz(this.overlay.position(),this.container),!1),!1),a)};h.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};h.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&(this.keyManager.setActiveItem(-1),this.dropdown&&(this.dropdown.nativeElement.scrollTop=0))};
da.Object.defineProperties(dW.prototype,{includeArchived:{configurable:!0,enumerable:!0,set:function(a){this.searchState.includeArchived=a}}});dW.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(dW)))(b||dW)}}();
dW.\u0275cmp=D({type:dW,selectors:[["b-team-component-picker"]],viewQuery:function(a,b){a&1&&(hg(Hud,7),hg(Iud,7),hg(Jud,7),hg(Kud,5),hg(bW,5));if(a&2){var c;lg(c=mg())&&(b.container=c.first);lg(c=mg())&&(b.inputBox=c.first);lg(c=mg())&&(b.dropdownTemplateRef=c.first);lg(c=mg())&&(b.dropdown=c.first);lg(c=mg())&&(b.listOptions=c)}},inputs:{placeholder:"placeholder",isRequired:"isRequired",ariaLabel:"ariaLabel",showOverlayAbove:"showOverlayAbove",issueId:"issueId",selectedComponent:"selectedComponent",
checkAdminAccess:"checkAdminAccess",shouldFocus:"shouldFocus",includeArchived:"includeArchived"},outputs:{accessCheckComplete:"accessCheckComplete",touched:"touched",selectedComponentChange:"selectedComponentChange",dropdownClosed:"dropdownClosed"},standalone:!1,features:[Ef,jx],decls:13,vars:10,consts:[["container",""],["inputBox",""],["dropdownTemplate",""],["teamTreeItem",""],["componentList",""],["dropdown",""],[1,"container","pseudo-input"],["type","text","role","combobox","autocomplete","off",
"spellcheck","false","aria-autocomplete","list",1,"override",3,"ngModelChange","keydown","click","focus","blur","ngModel","placeholder","required"],"type;button;mat-icon-button;;tabindex;-1;matTooltip;Clear component;aria-label;Clear component".split(";"),["type","button","mat-icon-button","","tabindex","-1","matTooltip","Clear component","aria-label","Clear component",3,"mousedown"],["svgIcon","clear"],[1,"bv2-picker-checking"],[1,"bv2-picker-error"],["target","_blank",3,"href"],[1,"dropdown",3,
"mousedown"],[1,"progress-bar-container"],["mode","indeterminate"],[1,"dropdown-content"],["role","tree"],[1,"section-header"],["role","treeitem","listOption","",1,"list-option",3,"data"],["role","treeitem","listOption","",1,"list-option",3,"mousedown","data"],[3,"selectTeamId","teamOption","query","hasNoComponent"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","tabindex","-1",1,"unstyled","expand-team-line-button"],["type","button","tabindex","-1",1,"unstyled","expand-team-line-button",
3,"mousedown"],["svgIcon","arrow-down"],[1,"team-scope-container"],["listOption","",1,"team-scope",3,"data","listOrder"],[3,"selectTeamId","teamOption","query","compact","allowSegmentSelection"],["type","button","tabindex","-1","mat-icon-button","","matTooltip","Clear team filter",1,"small","clear-filter",3,"mousedown"],["svgIcon","close"],[1,"team-scope-child-teams"],[1,"component-scope-container"],[1,"title"],["mode","tree",3,"goBack","selectComponentId","componentOption"],["role","treeitem","listOption",
"",1,"list-option",3,"mousedown","listOrder","data"],[1,"team-row-container"],["type","button","mat-icon-button","","aria-label","Show child teams",1,"arrow-button"],["type","button","mat-icon-button","","aria-label","Show child teams",1,"arrow-button",3,"mousedown"],["svgIcon","arrow-dropdown"],["role","listbox"],["role","option","listOption","",1,"list-option",3,"data"],["svgIcon","spark_24px",1,"icon-spark"],["role","option","listOption","",1,"list-option",3,"mousedown","data"],[3,"selectComponentId",
"expandComponent","showFolderSpecialIcon","componentOption","query","mode"],[1,"empty-list","muted"],["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){if(a&1){var c=t();K(0,"div",6,0)(2,"input",7,1);T(4,"async");N("ngModelChange",function(d){u(c);return v(b.searchState.searchQuery$.next(d))})("keydown",function(d){u(c);return v(b.handleKeydown(d))})("click",function(){u(c);
b.open();return v(b.touched.emit())})("focus",function(){u(c);return v(b.open())})("blur",function(){u(c);return v(b.close())});L();F(5,Mdb,2,0,"button",8);L();F(6,Qdb,3,1,"div");E(7,Seb,6,2,"ng-template",null,2,Mg)(9,Yeb,5,11,"ng-template",null,3,Mg)(11,nfb,2,1,"ng-template",null,4,Mg)}a&2&&(a=qg(3),B(2),I("ngModel",U(4,8,b.searchState.searchQuery$))("placeholder",b.placeholder)("required",b.isRequired),If("aria-label",b.ariaLabel+(b.selectedComponent?" Component selected. Change.":" Choose component"))("aria-expanded",
b.isDropdownOpen)("aria-activedescendant",Qud(b)),B(3),G(a.value?5:-1),B(),G(b.checkAdminAccess?6:-1))},dependencies:[Sx,Jy,xj,fE,yE,mE,kB,iB,hK,vK,nA,Gud,lJ,cW,$V,bW,Tx],styles:[".container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;min-width:380px;height:28px}.container[_ngcontent-%COMP%]:focus-within{border:2px solid;border-color:#1a73e8;border-color:var(--primary)}input[_ngcontent-%COMP%]{width:100%;border:0;outline:none;background-color:#fff;background-color:var(--input-field-bg);color:#202124;color:var(--text-high-contrast)}input[_ngcontent-%COMP%]:focus{border:0;outline:none}.dropdown[_ngcontent-%COMP%]{width:100%;max-height:500px;overflow:auto}.dropdown-content[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:5px 0 10px}.progress-bar-container[_ngcontent-%COMP%]{height:8px;border-radius:4px;overflow:hidden}mat-divider[_ngcontent-%COMP%]{width:100%;margin-top:16px;margin-bottom:16px}  .b-team-component-picker-dropdown{border-radius:4px;background-color:#fff;background-color:var(--surface-default)}.section-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:2px 14px}.section-header[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-left:auto}.section-header[_ngcontent-%COMP%]   .icon-spark[_ngcontent-%COMP%]{color:var(--primary-c600);font-size:1.125rem;height:18px;padding-right:4px;width:18px}.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-mdc-button-persistent-ripple{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-mdc-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:20px}.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{--mat-icon-button-icon-size:16px;height:16px;width:16px;line-height:16px}.mat-mdc-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 Rud=function(){this.warningChunks=[]};Rud.prototype.ngOnInit=function(){var a=this.warningText,b=tfb(a,"EXTERNAL_PUBLIC")||tfb(a,"EXTERNAL_PARTNER");this.warningChunks=b?[{text:a.substring(0,b.startOfMatch)},{accessLevel:b.accessLevel},{text:a.substring(b.endOfMatch)}]:[{text:a}]};Rud.\u0275fac=function(a){return new (a||Rud)};
Rud.\u0275cmp=D({type:Rud,selectors:[["b-component-move-warning-content"]],inputs:{warningText:"warningText"},standalone:!1,decls:3,vars:0,consts:[[3,"accessLevel"]],template:function(a,b){a&1&&(K(0,"div"),Nf(1,rfb,3,1,"span",null,Mf),L());a&2&&(B(),Of(b.warningChunks))},dependencies:[RV],encapsulation:2});var sfb=new Map([["EXTERNAL_PUBLIC","visible to public users"],["EXTERNAL_PARTNER","visible to external partners"]]);var eW=function(){this.data=p(TA);this.documentationLinks=p(cS);this.dialogRef=p(RA);var a=this.documentationLinks;this.learnMore=a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/access-control":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-dos-donts#moving-issues-to-a-new-component";this.acknowledged=!0;this.header=this.data.response.warningHeader;this.warning=this.data.response.warning;this.isExternalMove=this.data.response.isExternalMove;this.isLimitNoneIssueTrackerMove=
this.data.isLimitNoneIssueTrackerMove;this.setLimitViewTrusted=this.isExternalMove&&this.isLimitNoneIssueTrackerMove;this.isAllowed=this.data.response.isAllowed;this.callbacks=this.data.callbacks;this.isExternalMove&&!this.isLimitNoneIssueTrackerMove&&(this.acknowledged=!1)};eW.prototype.allow=function(){var a;(a=this.dialogRef)==null||a.close();this.isAllowed&&this.acknowledged&&this.callbacks.allow(this.setLimitViewTrusted)};
eW.prototype.cancel=function(){var a;(a=this.dialogRef)==null||a.close();this.callbacks.cancel()};eW.\u0275fac=function(a){return new (a||eW)};
eW.\u0275cmp=D({type:eW,selectors:[["b-component-move-warning"]],standalone:!1,decls:13,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"component-move-warning-text"],[3,"warningText"],["target","_blank"],["type","button","mat-button","","mat-dialog-close","",1,"medium",3,"click"],["type","button","mat-flat-button","","cdkFocusInitial","",3,"disabled"],["aria-labelledby","issue-access-limit-radio-label",3,"ngModelChange","ngModel"],[1,"margin-s-bottom",3,"value"],[3,"value"],[3,
"ngModelChange","ngModel"],["type","button","mat-flat-button","","cdkFocusInitial","",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1),L(),K(2,"div",1)(3,"div",2),M(4,"b-component-move-warning-content",3),L(),M(5,"br"),K(6,"a",4),Q(7,"Learn more"),L(),F(8,wfb,3,1,"div"),L(),K(9,"mat-dialog-actions")(10,"button",5),N("click",function(){return b.cancel()}),Q(11," Cancel "),L(),F(12,xfb,2,1,"button",6),L());a&2&&(B(),yg(b.header),B(3),I("warningText",b.warning),B(2),If("href",b.learnMore,
Ne),B(2),G(b.isExternalMove&&b.isAllowed?8:-1),B(4),G(b.isAllowed?12:-1))},dependencies:[fE,mE,kB,gB,tT,uT,kL,hI,VA,XA,ZA,YA,Rud],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-right: 8px;\n    }"],changeDetection:0});var Sud=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Sud.messageId)};Y(Sud,W);Sud.messageId="b.CompareComponentAccessResponse";var fW=function(){this.executor=p(cO)};fW.prototype.check=function(a,b,c){return this.executor.get({url:"action/compare_component_access/"+a+"/"+b,options:{params:{issueId:c}},responseConstructor:Sud}).then(AZa)};fW.\u0275fac=function(a){return new (a||fW)};fW.\u0275prov=Dc({token:fW,factory:fW.\u0275fac,providedIn:"root"});var gW=function(){this.issueInteractionsTracking=p(CS);this.issueFullFridge=p(gQ);this.componentFridge=p(RO);this.butterBar=p(UN);this.compareComponentAccess=p(fW);this.matDialogService=p(UA);this.editIssueService=p(GS);this.activeSession=p(uu)};
gW.prototype.updateComponent=function(a,b){var c=this,d,e,f,g,k,l,r,w,x,C,H,J;return y(function(O){switch(O.nextAddress){case 1:Tr(c.issueInteractionsTracking,a,{label:"changeComponent"});if(!b)return O.return(!1);d=m;return z(O,Promise.all([fe(c.issueFullFridge.watch(a)),fe(c.componentFridge.watch(b))]),2);case 2:e=d(O.yieldResult);f=e.next().value;g=e.next().value;k=f;l=g;if(!k)return c.butterBar.showWarning("Could not load issue "+a),O.return(!1);if(!l)return c.butterBar.showWarning("Could not load component "+
b),O.return(!1);r=k.snapshot[0].componentId;return r===b?O.return(!1):z(O,c.compareComponentAccess.check(r,b,a),3);case 3:w=O.yieldResult;x=!!l.trackerId;C=k.snapshot[0].issueAccessLimitLevel==="LIMIT_NONE";H=x&&C;J={allow:!1,setLimitViewTrusted:!1};if(!w.warning){O.jumpTo(4);break}return z(O,Tud(c,w,H),5);case 5:if(J=O.yieldResult,!J.allow)return O.return(!1);case 4:return z(O,c.editIssueService.updateComponent(a,b,w.isExternalMove,J.setLimitViewTrusted),6);case 6:return O.return(!0)}})};
var Tud=function(a,b,c){c=c===void 0?!1:c;return new Promise(function(d){SA(a.matDialogService.open(eW,{width:"580px",data:{response:b,isLimitNoneIssueTrackerMove:c,callbacks:{allow:function(e){d({allow:!0,setLimitViewTrusted:e})},cancel:function(){d({allow:!1,setLimitViewTrusted:!1})}}}})).subscribe(function(){d({allow:!1,setLimitViewTrusted:!1})})})};gW.\u0275fac=function(a){return new (a||gW)};gW.\u0275prov=Dc({token:gW,factory:gW.\u0275fac,providedIn:"root"});var hW=function(){this.bLocation=p(bU);this.listIssues=qs.listIssues.makeHref;this.createIssue=qs.createIssue.makeHref};hW.prototype.viewSavedSearch=function(a,b){return yfb(qs.viewSavedSearch.routeDeclarationPath,{id:a,params:b})};var Uud=function(a,b){b=b.charAt(0)!=="/"?"/"+b:b;a=a.bLocation.getUrl();a=new Os(a);b=new Os(b);return a.getPath()===b.getPath()&&WB(a.queryData_.toString())===WB(b.queryData_.toString())};h=hW.prototype;h.createBookmarkGroup=function(){return qs.createBookmarkGroup.routeDeclarationPath};
h.viewBookmarkGroup=function(a){return yfb(qs.viewBookmarkGroup.routeDeclarationPath,{id:a})};h.editBookmarkGroup=function(a){return ts(qs.editBookmarkGroup.routeDeclarationPath,{id:a})};h.editSavedSearch=function(a){return ts(qs.editSavedSearch.routeDeclarationPath,{id:a})};h.dashboard=function(a){return ts(qs.viewDashboard.routeDeclarationPath,{id:a})};
h.getBaseUrl=function(){var a=this.bLocation.platformLocation.href;a=a.slice(0,a.length-this.bLocation.getUrl().length);a.charAt(a.length-1)==="/"&&(a=a.slice(0,a.length-1));return a};h.settings=function(a){return a?ts(qs.settingsTab.routeDeclarationPath,{id:a,token:":settingsTab?"}):ts(qs.settings.routeDeclarationPath)};h.home=function(){return ts(qs.home.routeDeclarationPath,{params:void 0})};hW.\u0275fac=function(a){return new (a||hW)};hW.\u0275prov=Dc({token:hW,factory:hW.\u0275fac,providedIn:"root"});var Vud=function(){this.documentationLinks=p(cS)};Vud.\u0275fac=function(a){return new (a||Vud)};
Vud.\u0275cmp=D({type:Vud,selectors:[["b-issue-component-retention-dialog"]],standalone:!1,decls:12,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a){a&1&&(K(0,"h1",0),Q(1,"Apply component retention settings?"),
L(),K(2,"div",1)(3,"p"),Q(4," This issue is currently retained indefinitely. If you select this option, this issue will be scheduled for deletion based on the component retention settings. "),L(),K(5,"a",2),Q(6,"Learn more"),L()(),K(7,"div",3)(8,"button",4),Q(9," Cancel "),L(),K(10,"button",5),Q(11," OK "),L()());a&2&&(B(5),I("href",qu(),Ne),B(3),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},dependencies:[VA,XA,ZA,YA,kB,gB],encapsulation:2});var Wud=function(){this.documentationLinks=p(cS);this.data=p(TA);this.deletionReasons=this.data.deletionReasons;this.attachmentId=this.data.attachmentId};Wud.\u0275fac=function(a){return new (a||Wud)};
Wud.\u0275cmp=D({type:Wud,selectors:[["b-issue-delete-attachment-dialog"]],standalone:!1,decls:15,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Deletion Reasons Help Link","target","_blank",1,"icon-s",3,"href"],[3,"ngModelChange","ngModel"],[3,"value","disabled"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action",3,"mat-dialog-close",
"disabled"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1),L(),K(2,"div",1)(3,"span"),Q(4," Please select the reason for deleting this attachment. "),K(5,"a",2),Q(6," \u00a0Learn more "),L()(),K(7,"mat-radio-group",3),Cg("ngModelChange",function(c){Bg(b.selectedReason,c)||(b.selectedReason=c);return c}),Nf(8,Ffb,3,4,"mat-radio-button",4,Mf),L()(),K(10,"div",5)(11,"button",6),Q(12," Cancel "),L(),K(13,"button",7),Q(14," Delete "),L()());a&2&&(B(),S("Delete attachment ",b.attachmentId),B(4),I("href",
omd(b.documentationLinks),Ne),B(2),Ag("ngModel",b.selectedReason),B(),Of(b.deletionReasons),B(5),I("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[VA,XA,ZA,YA,kB,gB,fE,mE,tT,uT],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var Xud=function(){this.documentationLinks=p(cS);this.data=p(TA);this.deletionReasons=this.data.deletionReasons;this.commentNumber=this.data.commentNumber;this.issueId=this.data.issueId};Xud.\u0275fac=function(a){return new (a||Xud)};
Xud.\u0275cmp=D({type:Xud,selectors:[["b-issue-delete-comment-dialog"]],standalone:!1,decls:15,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Deletion Reasons Help Link","target","_blank",1,"icon-s",3,"href"],[3,"ngModelChange","ngModel"],[3,"value","disabled"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action",3,"mat-dialog-close",
"disabled"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1),L(),K(2,"div",1)(3,"label"),Q(4,"Please select the reason for deleting this comment."),L(),K(5,"a",2),Q(6," \u00a0Learn more "),L(),K(7,"mat-radio-group",3),Cg("ngModelChange",function(c){Bg(b.selectedReason,c)||(b.selectedReason=c);return c}),Nf(8,Hfb,3,4,"mat-radio-button",4,Mf),L()(),K(10,"div",5)(11,"button",6),Q(12," Cancel "),L(),K(13,"button",7),Q(14," Delete "),L()());a&2&&(B(),zg("Delete Comment #",b.commentNumber," of Issue ",b.issueId),
B(4),I("href",omd(b.documentationLinks),Ne),B(2),Ag("ngModel",b.selectedReason),B(),Of(b.deletionReasons),B(5),I("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[VA,XA,ZA,YA,kB,gB,fE,mE,tT,uT],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var Yud=function(){this.documentationLinks=p(cS);this.activeSession=p(uu);this.REMOVAL_URL=Ifb(this.activeSession.isInternalSession())};Yud.\u0275fac=function(a){return new (a||Yud)};
Yud.\u0275cmp=D({type:Yud,selectors:[["b-issue-flag-as-spam-dialog"]],standalone:!1,decls:19,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",1,"keep-underline",3,"href"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Report spam?"),
L(),K(2,"div",1)(3,"p"),Q(4," This will remove the issue from search results, and it will be deleted after 30 days. For more information on remediating spam at scale, "),K(5,"a",2),Q(6,"see here"),L(),Q(7,". "),L(),M(8,"p"),K(9,"p"),Q(10," To delete PII or other sensitive content, "),K(11,"a",2),Q(12,"file a support request"),L(),Q(13,". "),L()(),K(14,"div",3)(15,"button",4),Q(16," Cancel "),L(),K(17,"button",5),Q(18," Report spam "),L()());a&2&&(B(5),I("href",nmd(b.documentationLinks),Ne),B(6),I("href",
b.REMOVAL_URL,Ne),B(4),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},dependencies:[VA,XA,ZA,YA,kB,gB],encapsulation:2});var Zud=function(){this.documentationLinks=p(cS);this.indefiniteRetentionAcknowledged=!1};Zud.\u0275fac=function(a){return new (a||Zud)};
Zud.\u0275cmp=D({type:Zud,selectors:[["b-issue-indefinite-retention-dialog"]],standalone:!1,decls:28,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["cdkFocusInitial","",3,"change","checked"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action",3,"mat-dialog-close","disabled"]],template:function(a,b){a&1&&(K(0,"h1",
0),Q(1,"Retain issue indefinitely?"),L(),K(2,"div",1)(3,"p"),Q(4," Are you sure you want to override any component retention settings, and retain this issue indefinitely? "),L(),K(5,"p")(6,"b"),Q(7,"Please note indefinite retention is not appropriate in many circumstances."),L(),M(8,"br"),Q(9," Before selecting this option, you should make sure at least one of the following is true: "),L(),K(10,"ul")(11,"li"),Q(12," There is no personal data, user data, or any other forms of sensitive data being stored in this issue. "),
L(),K(13,"li"),Q(14," You have a process in place to manually delete this issue within an approved period of time. "),L(),K(15,"li"),Q(16," Legal and Privacy have approved this non-standard retention period. "),L()(),M(17,"p"),K(18,"p")(19,"a",2),Q(20,"Learn more"),L()(),K(21,"mat-checkbox",3),N("change",function(c){return b.indefiniteRetentionAcknowledged=c.checked}),Q(22," I acknowledge "),L()(),K(23,"div",4)(24,"button",5),Q(25," Cancel "),L(),K(26,"button",6),Q(27," OK "),L()());a&2&&(B(19),I("href",
qu(),Ne),B(2),I("checked",b.indefiniteRetentionAcknowledged),B(3),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0)("disabled",!b.indefiniteRetentionAcknowledged))},dependencies:[VA,XA,ZA,YA,kB,gB,kL,hI],styles:[".mat-mdc-dialog-content[_ngcontent-%COMP%] { max-height: unset; overflow: unset; }","ul[_ngcontent-%COMP%] { list-style: disc }"]});var iW=function(){Z.apply(this,arguments);this.userPreferencesManager=p(hR);this.timestamps$=this.userPreferencesManager.preferences$.pipe(A(function(a){var b;return(b=a.dismissalTimestamps)!=null?b:void 0}))};Y(iW,Z);iW.\u0275dir=Z.\u0275dir;var $ud=function(a,b){return a.timestamps$.pipe(A(function(c){return c?!!c[b]:!1}))};iW.prototype.isDismissed=function(a){return fe($ud(this,a))};
iW.prototype.dismiss=function(a){var b=this;return this.timestamps$.pipe(lf(1),A(function(c){var d={};return{dismissalTimestamps:Object.assign({},c,(d[a]=new Date(Date.now()),d))}}),yf(function(c){return b.userPreferencesManager.save(c)}),A(function(c){if(c.dismissalTimestamps&&c.dismissalTimestamps[a])return c.dismissalTimestamps[a]}))};iW.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(iW)))(b||iW)}}();iW.\u0275prov=Dc({token:iW,factory:iW.\u0275fac,providedIn:"root"});var jW=function(){Z.apply(this,arguments);this.data=p(TA);this.dialogRef=p(RA);this.dismissalService=p(iW);this.dontShowAgain=!1};Y(jW,Z);jW.\u0275dir=Z.\u0275dir;jW.prototype.confirm=function(){var a=this,b;return y(function(c){if(c.nextAddress==1){if(!a.dontShowAgain)return c.jumpTo(2);b=Jfb(a.data.action);return z(c,fe(a.dismissalService.dismiss(b)),2)}a.dialogRef.close(!0);ae(c)})};jW.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(jW)))(b||jW)}}();
jW.\u0275cmp=D({type:jW,selectors:[["b-share-email-confirmation-dialog"]],standalone:!1,features:[Ef],decls:9,vars:2,consts:[["mat-dialog-content",""],[3,"innerHTML"],[3,"change","checked"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0),M(1,"div",1),K(2,"mat-checkbox",2),N("change",function(c){return b.dontShowAgain=c.checked}),
Q(3," Don't show this again "),L()(),K(4,"div",3)(5,"button",4),N("click",function(){return b.dialogRef.close(!1)}),Q(6," Cancel "),L(),K(7,"button",5),N("click",function(){return b.confirm()}),Q(8," Confirm "),L()());a&2&&(B(),I("innerHTML",b.data.content,Me),B(),I("checked",b.dontShowAgain))},dependencies:[ZA,YA,kB,gB,kL,hI],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-top: 12px;\n      padding-bottom: 12px;\n    }"]});var avd=function(){};avd.\u0275fac=function(a){return new (a||avd)};avd.\u0275mod=$e({type:avd});avd.\u0275inj=Fc({imports:[ez,WO,TJ,mB,HE,DE,UD,HU,eU,DL,lL]});var bvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bvd,W);bvd.prototype.getAttachmentId_asString=function(){return tn(this,1)};bvd.prototype.setAttachmentId=function(a){return Io(this,1,a)};bvd.prototype.getCategory=function(){return ui(this,2)};bvd.prototype.setCategory=function(a){return Fm(this,2,a)};var cvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cvd,W);cvd.prototype.getCategory=function(){return ui(this,1)};cvd.prototype.setCategory=function(a){return Fm(this,1,a)};var dvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dvd,W);dvd.prototype.getRecommendation=function(){return ui(this,1)};dvd.prototype.setRecommendation=function(a){return Fm(this,1,a)};var evd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(evd,W);h=evd.prototype;h.getSummaryType=function(){return wi(this,1)};h.setSummaryType=function(a){return Hm(this,1,a)};h.getModelVersion=function(){return Bm(this,2)};h.setModelVersion=function(a){return an(this,2,a)};h.getIssueVersion=function(){return Bm(this,3)};h.setIssueVersion=function(a){return an(this,3,a)};var kW=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kW,W);var fvd=[1,2,3,4];var gvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gvd,W);h=gvd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getFeature=function(){return wi(this,2)};h.setFeature=function(a){return Hm(this,2,a)};h.getEventType=function(){return wi(this,3)};h.setEventType=function(a){return Hm(this,3,a)};var hvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hvd,W);hvd.prototype.setEvents=function(a,b){return Gw(this,1,gvd,a,b)};var lW=function(){this.executor=p(bO)};lW.prototype.logIssueUserEventForRecommendation=function(a,b,c,d){d=ivd(d);return this.logIssueUserEvent(a,b,c,d)};lW.prototype.logIssueUserEventForRecommendations=function(a){a=a.map(function(b){var c=b.issueId,d=b.feature,e=b.eventType;b=ivd(b.recommendationName);c=(new gvd).setIssueId(c).setFeature(rbd[d]).setEventType(obd[e]);return Mi(c,kW,6,b)});return jvd(this,a)};
lW.prototype.logIssueUserEventForIssueEnrichment=function(a,b,c,d){var e=new kW;d=(new cvd).setCategory(d);e=Wo(e,3,fvd,d);return this.logIssueUserEvent(a,b,c,e)};lW.prototype.logIssueUserEvent=function(a,b,c,d){a=(new gvd).setIssueId(a).setFeature(rbd[b]).setEventType(obd[c]);d=Mi(a,kW,6,d);return jvd(this,[d])};
var jvd=function(a,b){a=a.executor;var c=a.post,d=new hvd;b=Mp(d,1,gvd,b);return c.call(a,{url:"action/issues/batch_log_event",body:b,responseConstructor:null})},ivd=function(a){var b=new kW;a=(new dvd).setRecommendation(a);return Wo(b,2,fvd,a)};lW.\u0275fac=function(a){return new (a||lW)};lW.\u0275prov=Dc({token:lW,factory:lW.\u0275fac,providedIn:"root"});var Mfb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mfb,W);h=Mfb.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.setEmbeddingType=function(a){Hm(this,7,a)};h.getScope=function(){return ui(this,2)};h.setScope=function(a){return Fm(this,2,a)};h.setScopeSortOrder=function(a){return Fm(this,3,a)};h.setMaxResults=function(a){return an(this,4,a)};
h.setView=function(a){return Hm(this,5,a)};h.setIssueDescriptionView=function(a){return Hm(this,6,a)};var Kfb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kfb,W);h=Kfb.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.setEmbeddingType=function(a){Hm(this,6,a)};h.getScope=function(){return ui(this,2)};h.setScope=function(a){return Fm(this,2,a)};h.setScopeSortOrder=function(a){return Fm(this,4,a)};h.setMaxResults=function(a){return an(this,5,a)};var us=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,us.messageId)};Y(us,W);us.prototype.getIt=function(){return X(this,Kfb,1,jb)};us.prototype.setIt=function(a){return Mi(this,Kfb,1,a,jb)};us.messageId="b.LookupSimilarIssuesRequest";var kvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kvd,W);h=kvd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getScore=function(){return em(this,2)};h.setScore=function(a){return qp(this,2,a)};var lvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lvd,W);var mvd=function(a){return Bi(a,Hp,1,Ci())},nvd=function(a){return Bi(a,kvd,2,Ci())};var ovd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ovd.messageId)};Y(ovd,W);ovd.prototype.getIt=function(){return X(this,lvd,3,jb)};ovd.prototype.setIt=function(a){return Mi(this,lvd,3,a,jb)};ovd.messageId="b.LookupSimilarIssuesResponse";var vs=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vs.messageId)};Y(vs,W);vs.prototype.getIt=function(){return X(this,Mfb,1,jb)};vs.prototype.setIt=function(a){return Mi(this,Mfb,1,a,jb)};vs.messageId="b.RetrieveSimilarIssuesRequest";var pvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pvd,W);pvd.prototype.getIssuesList=function(){return Bi(this,Hp,1,Ci())};var qvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,qvd.messageId)};Y(qvd,W);qvd.prototype.getIt=function(){return X(this,pvd,1,jb)};qvd.prototype.setIt=function(a){return Mi(this,pvd,1,a,jb)};qvd.messageId="b.RetrieveSimilarIssuesResponse";var rvd={},svd=(rvd[WR.queryAtom]=!0,rvd),mW=function(){this.executor=p(bO)},tvd=function(a,b){return a.executor.post({url:"action/lookup_similar_issues",body:Lfb(b),responseConstructor:ovd}).pipe(A(function(c){var d=mvd(c.getIt()).map(DXa);c=nvd(c.getIt()).map(function(e){return e.getScore()});return{similarIssues:d,scores:c}}))},uvd=function(a,b){return a.executor.post({url:"action/retrieve_similar_issues",body:Nfb(b),responseConstructor:qvd}).pipe(A(function(c){return{similarIssues:c.getIt().getIssuesList().map(DXa),
scores:[]}}))},vvd=function(a,b,c,d,e,f){d=d===void 0?new Set:d;e={maxResults:e===void 0?7:e,scopeSortOrder:"vote_count desc"};(f===void 0?0:f)?e.scope=void 0:e.scope=Kr.apply(null,[Jr("modified","365d")].concat(q(Array.from(d,function(g){return g.queryAtom}))));c==null?e.issueId=Number(b):e.keyword=c;return tvd(a,e)},wvd=function(a,b,c,d){d=d===void 0?new Set:d;return tvd(a,{issueId:Number(b),maxResults:7,scope:Kr.apply(null,[Jr("-id",b),Jr("id",c)].concat(q(Array.from(d,function(e){return e.queryAtom}).filter(function(e){return svd[e]}))))})};
mW.\u0275fac=function(a){return new (a||mW)};mW.\u0275prov=Dc({token:mW,factory:mW.\u0275fac,providedIn:"root"});var xvd=gn(function(a){var b,c;return(c=a==null?void 0:(b=a.aggregatedData)==null?void 0:b.voteCount)!=null?c:0},hn),yvd=new Set([WR]),nW=function(){this.issueFullFridge=p(gQ);this.issueFridge=p(XP);this.similarIssuesApi=p(mW);this.analytics=p(eQ);this.recentlyViewedIds$=this.issueFridge.watchMany({custom:"viewed",pageSize:50}).pipe(A(function(a){return a.results.map(function(b){return b.issueId})}));this.componentIdToRecentCanonicals=new Map},zvd=function(a,b,c,d){c=c===void 0?yvd:c;d=vvd(a.similarIssuesApi,
b,void 0,c,void 0,d===void 0?!1:d);var e=ce([]).pipe(mf(5E3));e=aia(e,a.recentlyViewedIds$).pipe(yf(function(f){return wvd(a.similarIssuesApi,b,f,c)}));return ie([d,e]).pipe(A(function(f){var g=m(f);f=g.next().value;g=g.next().value;return Ofb(f,g)}),A(function(f){return f.similarIssues.map(function(g,k){return Object.assign({},g,{score:f.scores[k]})})}),A(function(f){return f.slice(0,7)}),gf(function(f){Xm("IssuePickerSearchService::searchSimilarIssuesById() error: ",f);var g,k,l=(k=f==null?void 0:
(g=f.error)==null?void 0:g.status)!=null?k:f==null?void 0:f.status;a.analytics.trackEvent("issue-picker-svc","error","by-id",l);return ce([])}))},Bvd=function(a,b,c,d,e){c=c===void 0?yvd:c;return b.trim()?d==="canonical"?vvd(a.similarIssuesApi,e==null?void 0:e.id,b,c).pipe(A(function(f){return f.similarIssues.map(function(g,k){return Object.assign({},g,{score:f.scores[k]})})}),gf(function(f){Xm("IssuePickerSearchService::searchSimilarIssues() error: ",f);var g,k,l=(k=f==null?void 0:(g=f.error)==null?
void 0:g.status)!=null?k:f==null?void 0:f.status;a.analytics.trackEvent("issue-picker-svc","error","by-text",l);return ce([])})):Avd(a,b):ce(void 0)};
nW.prototype.search=function(a,b,c,d){var e=this;if(!a.trim())return ce(void 0);if(b==="canonical"){b=Cvd(this,a,d);d=Dvd(this,d).pipe(yf(function(g){return e.issueFridge.watchMany({filter:Kr(a,Jr("-id",c==null?void 0:c.id),Jr("status","open"),Jr("componentid",g)),pageSize:10})}),A(function(g){return g==null?void 0:g.results}));var f=this.issueFridge.watchMany({filter:Kr(a,Jr("-id",c==null?void 0:c.id)),pageSize:10,sort:"modified_time:desc"}).pipe(A(function(g){return g==null?void 0:g.results}),xf([]));
return ie([b,d,f]).pipe(A(function(g){return sq(g.flat(),function(k){return k.issueId})}),A(function(g){return g.slice(0,10)}),A(function(g){return xvd(g,"DESCENDING")}))}return Avd(this,a)};
var Avd=function(a,b){return a.issueFridge.watchMany({filter:b,pageSize:10}).pipe(A(function(c){return c==null?void 0:c.results}))},Cvd=function(a,b,c){return c&&c!=="0"?Evd(a,c).pipe(yf(function(d){return d.length===0?ce([]):a.issueFridge.watchMany({filter:Kr(b,Jr("id",d),Jr("status","open")),pageSize:10}).pipe(A(function(e){return e==null?void 0:e.results}))})):ce([])},Evd=function(a,b){if(!b||b==="0")return ce([]);if(a.componentIdToRecentCanonicals.has(b))return a.componentIdToRecentCanonicals.get(b);
var c=a.issueFridge.watchMany({filter:Kr(Jr("componentid",b,!0),Jr("status","duplicate")),sort:"modified_time:desc",pageSize:250}).pipe(A(function(d){return d==null?void 0:d.results}),A(function(d){return d.map(function(e){return e.snapshot[0].duplicateOfIssueId})}),A(function(d){return tq(d.filter(Pm))}),vf({bufferSize:1,refCount:!0}));a.componentIdToRecentCanonicals.set(b,c);return c},Dvd=function(a,b){return b&&b!=="0"?Evd(a,b).pipe(yf(function(c){return a.issueFullFridge.watchSet(c)}),A(function(c){return c.map(function(d){return d.snapshot[0].componentId})}),
A(function(c){return[b].concat(q(c.filter(Pm)))}),A(tq),vf({bufferSize:1,refCount:!0})):ce([])};nW.\u0275fac=function(a){return new (a||nW)};nW.\u0275prov=Dc({token:nW,factory:nW.\u0275fac,providedIn:"root"});var oW=function(){};oW.\u0275fac=function(a){return new (a||oW)};oW.\u0275cmp=D({type:oW,selectors:[["b-async-data-placeholder"]],inputs:{isReady:"isReady"},standalone:!1,ngContentSelectors:["*"],decls:2,vars:1,consts:[[1,"animated-loading-bar"]],template:function(a,b){a&1&&(bg(),F(0,Pfb,1,0)(1,Qfb,1,0,"div",0));a&2&&G(b.isReady?0:1)},encapsulation:2});var pW=function(){this.mode="datetime";this.isDataLoaded=!1};pW.prototype.ngOnChanges=function(){var a;if((a=this.issue)==null?0:a.aggregatedData){var b;this.createdTime=((b=this.issue)==null?NaN:b.aggregatedData.createdTimeMicros)/1E3}this.isDataLoaded=this.issue!=null};pW.\u0275fac=function(a){return new (a||pW)};
pW.\u0275cmp=D({type:pW,selectors:[["b-issue-created-time-cell"]],inputs:{issue:"issue",mode:"mode"},standalone:!1,features:[jx],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"],[3,"mode","timestamp","paddingLeftPx"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Rfb,1,3,"b-formatted-date-time",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.createdTime?1:-1))},dependencies:[oW,rV],encapsulation:2,changeDetection:0});var qW=function(){this.relayOnly=!1;this.keydown$=new qf};qW.prototype.onKeydown=function(a){this.relayOnly||this.keydown$.next(a)};da.Object.defineProperties(qW.prototype,{tabindex:{configurable:!0,enumerable:!0,get:function(){return this.relayOnly?null:"0"}}});qW.\u0275fac=function(a){return new (a||qW)};
qW.\u0275dir=af({type:qW,selectors:[["","onedevKeyEventReceiver",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("keydown",function(c){return b.onKeydown(c)});a&2&&If("tabindex",b.tabindex)},inputs:{relayOnly:"relayOnly"},standalone:!1});var Fvd=0,rW=function(a){this.keyEventReceiver=a;this.id="onedev-popup-panel-"+Fvd;this.closePanel$=new uf(1);Fvd++};rW.prototype.processKeydown=function(a){this.keyEventReceiver&&this.keyEventReceiver.keydown$.next(a);var b=a.code;(b==="Escape"||a.altKey&&b==="ArrowUp")&&this.closePanel$.next()};rW.\u0275fac=function(a){return new (a||rW)(Ve(qW,8))};
rW.\u0275cmp=D({type:rW,selectors:[["onedev-popup-panel"]],viewQuery:function(a,b){a&1&&hg(dg,7);if(a&2){var c;lg(c=mg())&&(b.templateRef=c.first)}},inputs:{className:"className"},exportAs:["onedevPopupPanel"],standalone:!1,ngContentSelectors:["*"],decls:1,vars:0,consts:[[1,"onedev-popup-panel","gmat-elevation-z2",3,"keydown"]],template:function(a){a&1&&(bg(),E(0,Sfb,2,3,"ng-template"))},styles:[".onedev-popup-panel{background-color:var(--surface-default,#fff);border-radius:4px;overflow:auto}.onedev-popup-panel:focus{outline:0}"],
encapsulation:2});var sW=function(a,b,c,d,e){this.overlay=a;this.element=b;this.viewContainerRef=c;this.focusTrapFactory=d;this.cdr=e;this.disabled=!1;this.closeOnBackdropClick=!0;this.opened=new Ti;this.closed=new Ti;this.isOpen=!1;this.destroyed$=new uf(1);this.closingActionsSubscription=Pd.EMPTY};sW.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
sW.prototype.open=function(){var a=this;this.disabled||this.isOpen||(this.overlayRef=this.createOverlay(),this.templatePortal=new Oz(this.popupPanel.templateRef,this.viewContainerRef),this.overlayRef.attach(this.templatePortal),this.closingActionsSubscription=Gvd(this).pipe(zf(this.destroyed$)).subscribe(function(){a.close()}),this.trapFocus(),this.isOpen=!0,this.opened.emit())};
sW.prototype.close=function(){if(this.isOpen){this.isOpen=!1;var a;if((a=this.overlayRef)==null?0:a.hasAttached())this.overlayRef.detach(),this.overlayRef.dispose();this.focusTrap&&this.focusTrap.destroy();this.closingActionsSubscription.unsubscribe();this.element.nativeElement.focus();this.closed.emit();this.cdr.markForCheck()}};
sW.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 Gvd=function(a){var b=a.overlayRef.backdropClick(),c=a.overlayRef._detachments,d=a.popupPanel.closePanel$;return a.closeOnBackdropClick?te(b,c,d):te(c,d)};
sW.prototype.trapFocus=function(){this.overlayRef&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.hostElement),this.focusTrap.focusInitialElement())};
sW.prototype.getPositionStrategy=function(){return Fz(Gz(Hz(Lz(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"}])};sW.prototype.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
da.Object.defineProperties(sW.prototype,{onedevPopupPanelTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.popupPanel},set:function(a){this.popupPanel=a}}});sW.\u0275fac=function(a){return new (a||sW)(Ve(Tz),Ve(Hd),Ve(eg),Ve(kz),Ve(Cx))};
sW.\u0275dir=af({type:sW,selectors:[["","onedevPopupPanelTrigger",""]],hostAttrs:["aria-haspopup","true"],hostVars:3,hostBindings:function(a,b){a&2&&If("aria-disabled",b.disabled)("aria-expanded",b.isOpen||null)("aria-controls",b.isOpen?b.popupPanel.id:null)},inputs:{onedevPopupPanelTriggerFor:"onedevPopupPanelTriggerFor",disabled:[0,"onedevPopupPanelTriggerDisabled","disabled"],closeOnBackdropClick:[0,"onedevPopupPanelTriggerCloseOnBackdropClick","closeOnBackdropClick"]},outputs:{opened:"onedevPopupPanelTriggerOpened",
closed:"onedevPopupPanelTriggerClosed"},exportAs:["onedevPopupPanelTrigger"]});var tW=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(uu);this.trackerHelpers=p(kS);this.clipboard=p(oR);this.butterBar=p(UN);this.componentId=void 0;this.issueTitle=this.issueId="";this.disabled=this.isExternalIssue=!1;this.showCopyOptions=this.enableHotkeys=!0;this.isOpen=!1;this.HOTKEYS=Xr;this.copyIssueId=yHc(function(){a.clipboard.copy(a.issueId);Rr(a.butterBar,"Issue ID copied",2E3)})};Y(tW,Z);tW.\u0275dir=Z.\u0275dir;var ws=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};
tW.prototype.getIssueUrl=function(){return this.getAppBaseUrl(this.isExternalIssue)};tW.prototype.getAppBaseUrl=function(a){return ft(this.trackerHelpers,this.issueId,void 0,a===void 0?!1:a)};tW.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(tW)))(b||tW)}}();
tW.\u0275cmp=D({type:tW,selectors:[["b-issue-id-picker"]],viewQuery:function(a,b){a&1&&hg(sW,5);if(a&2){var c;lg(c=mg())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue",disabled:"disabled",enableHotkeys:"enableHotkeys",showCopyOptions:"showCopyOptions"},standalone:!1,features:[Ef],decls:4,vars:6,consts:[["trigger","onedevPopupPanelTrigger"],["contentPanel","onedevPopupPanel"],["issueIdField",""],["issueUrlField",
""],["urlAndTitleField",""],["issueShortlinkField",""],["issueEmailField",""],["todoCommentField",""],["type","button","matTooltip","Copy issue ID","disableRipple","true",1,"unstyled","square-right","issue-id",3,"click","mousedown"],["svgIcon","copy",1,"icon-xs","invisible"],["type","button","matTooltip","Show links for this issue","onedevPopupPanelTrigger","","disableRipple","true",1,"unstyled","square-left",3,"onHotkey","onedevPopupPanelTriggerOpened","onedevPopupPanelTriggerClosed","click","onedevPopupPanelTriggerFor",
"hotkey","hotkeyEnabled"],["svgIcon","arrow-dropdown",1,"icon-xs"],["role","region"],["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,"onHotkey","focus","hotkey","hotkeyEnabled"],[1,"muted","shortcut"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy ID","matTooltip","Copy ID",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],
["svgIcon","copy",1,"icon-s"],["type","text","readonly","","id","id-details-issue-url-field",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy URL","matTooltip","Copy URL",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],["type","text","readonly","","id","id-details-url-and-title-field",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy text",
"matTooltip","Copy text",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],["type","text","readonly","","id","id-details-issue-shortlink-field",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy shortlink","matTooltip","Copy shortlink",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],["type","text","readonly","","id","id-details-issue-email-field","matTooltip","Email this address to add comments to this issue",
1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy email","matTooltip","Copy email",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],["type","text","readonly","","id","id-details-todo-comment-field","matTooltip","TODO comment for code",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy comment","matTooltip","Copy comment",1,"copy",3,"onHotkey",
"click","hotkey","hotkeyEnabled"]],template:function(a,b){a&1&&(K(0,"button",8),N("click",function(){return b.copyIssueId()})("mousedown",function(){return b.copyIssueId()}),Q(1),F(2,Tfb,1,0,"mat-icon",9),L(),F(3,dgb,6,5));a&2&&(wg("square-right",b.showCopyOptions),If("aria-label","Copy issue number "+b.issueId),B(),S(" ",b.issueId," "),B(),G(b.showCopyOptions?-1:2),B(),G(b.showCopyOptions?3:-1))},dependencies:[Wy,Jy,pU,kB,iB,vK,nA,rW,sW],styles:["[_nghost-%COMP%]{border-radius:4px;font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;display:inline-block;user-select:none;white-space:nowrap;line-height:22px}button[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.issue-id[_ngcontent-%COMP%]{padding:0 3px}@media(forced-colors: active){.issue-id[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider)}.issue-id[_ngcontent-%COMP%]:focus-visible{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}}.shortcut[_ngcontent-%COMP%]{font-family:WorkAroundWebKitAndMozilla,monospace;padding-left:8px;white-space:nowrap}button.issue-id[_ngcontent-%COMP%]:hover   mat-icon[_ngcontent-%COMP%], button.issue-id[_ngcontent-%COMP%]:focus-visible   mat-icon[_ngcontent-%COMP%]{visibility:visible}button[_ngcontent-%COMP%]{cursor:pointer;border-radius:4px;user-select:text}button[_ngcontent-%COMP%]:hover, button[_ngcontent-%COMP%]:focus-visible{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}button.square-left[_ngcontent-%COMP%]{border-left:1px solid;border-left-color:#fff;border-left-color:var(--background)}@media(forced-colors: active){button.square-left[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider)}button.square-left[_ngcontent-%COMP%]:focus-visible{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}}mat-icon[_ngcontent-%COMP%]{margin-top:-2px;color:#3c4043;color:var(--gfx)}  .onedev-popup-panel .issue-id-picker-popup{padding:10px}  .onedev-popup-panel .issue-id-picker-popup .id-details-row{display:flex;flex-direction:row;align-items:center}  .onedev-popup-panel .issue-id-picker-popup .id-details-row label{flex-basis:110px;font-family:Roboto,Arial,sans-serif;font-size:.8125rem;color:#5f6368;color:var(--text-muted)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row .value{flex-grow:1;font-family:Roboto,Arial,sans-serif;display:inline-block;width:345px;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;outline:none;padding:5px;margin-left:5px}  .onedev-popup-panel .issue-id-picker-popup .id-details-row .value:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row button.copy{cursor:pointer;color:#1a73e8;color:var(--link)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row button.copy .mat-mdc-button-persistent-ripple{border-radius:inherit}"],
changeDetection:0});var uW=function(){};uW.prototype.ngOnInit=function(){};uW.prototype.onClick=function(a){a.stopPropagation()};uW.\u0275fac=function(a){return new (a||uW)};
uW.\u0275cmp=D({type:uW,selectors:[["b-issue-id-cell"]],hostBindings:function(a,b){a&1&&N("click",function(c){return b.onClick(c)})},inputs:{id:"id"},standalone:!1,decls:2,vars:2,consts:[[3,"isReady"],[3,"issueId","showCopyOptions"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,egb,1,2,"b-issue-id-picker",1),L());a&2&&(I("isReady",!!b.id),B(),G(b.id?1:-1))},dependencies:[oW,tW],encapsulation:2,changeDetection:0});var vW=function(){this.IssuePriority=Dbd},Hvd=function(a){a=a.issuePriority;if(a==null)return"";switch(a){case "P0":return"priority-1";case "P1":return"priority-2";case "P2":return"priority-3";case "P3":return"priority-4";case "P4":return"priority-5";default:return""}};vW.\u0275fac=function(a){return new (a||vW)};
vW.\u0275cmp=D({type:vW,selectors:[["b-issue-priority-display"]],inputs:{issuePriority:"issuePriority"},standalone:!1,decls:2,vars:3,consts:[[1,"p-chip"]],template:function(a,b){a&1&&(K(0,"span",0),Q(1),L());a&2&&(xg(Hvd(b)),B(),a=b.issuePriority,S(" ",a==null?"--":ncd[a]," "))},styles:["/*# sourceMappingURL=issue_priority_display.css.map */"],changeDetection:0});var Ivd=function(){this.priority=this.issue=null;this.isDataLoaded=!1};Ivd.prototype.ngOnChanges=function(){var a,b;this.priority=((a=this.issue)==null?void 0:(b=a.snapshot[0])==null?void 0:b.priority)||null;this.isDataLoaded=this.issue!==null};Ivd.\u0275fac=function(a){return new (a||Ivd)};
Ivd.\u0275cmp=D({type:Ivd,selectors:[["b-issue-priority-cell"]],inputs:{issue:"issue"},standalone:!1,features:[jx],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"],[3,"issuePriority"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,fgb,1,1,"b-issue-priority-display",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.priority?1:-1))},dependencies:[oW,vW],encapsulation:2,changeDetection:0});var wW=function(){this.changelistFridge=p(GO);this.IssueStatus=Tbd;this.STATUS_JS_FULL_TEXT=zm;this.STATUS_JS_TERSE=kcd;this.isFixed=aUa;this.issue=null;this.isDataLoaded=!1};wW.prototype.ngOnChanges=function(){if(this.showPendingFix&&this.issue){var a=this.changelistFridge.peekAllRecords(),b;this.pendingFixCl=kgb(a,(b=this.issue)==null?void 0:b.issueId)}var c,d;this.status=((c=this.issue)==null?void 0:(d=c.snapshot[0])==null?void 0:d.status)||void 0;this.isDataLoaded=this.issue!==null};
wW.\u0275fac=function(a){return new (a||wW)};
wW.\u0275cmp=D({type:wW,selectors:[["b-issue-status-cell"]],inputs:{issue:"issue",showPendingFix:"showPendingFix"},standalone:!1,features:[jx],decls:3,vars:2,consts:[[3,"isReady"],["target","_blank",3,"class","href","matTooltip"],["target","_blank",3,"href","matTooltip"],[3,"class","title"],[3,"title"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,ggb,2,8,"a",1)(2,jgb,1,1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.pendingFixCl&&!b.isFixed(b.issue)?1:2))},dependencies:[oW,
vK,nA],encapsulation:2,changeDetection:0});var xW=function(){this.el=p(Hd);this.bFocus=!0;this.nativeElement=this.el.nativeElement};xW.prototype.ngOnInit=function(){Jvd(this)};xW.prototype.ngOnChanges=function(){Jvd(this)};var Jvd=function(a){setTimeout(function(){a.bFocus&&a.nativeElement.focus()})};xW.\u0275fac=function(a){return new (a||xW)};xW.\u0275dir=af({type:xW,selectors:[["","bFocus",""]],inputs:{bFocus:"bFocus"},standalone:!1,features:[jx]});var yW=function(){};yW.\u0275fac=function(a){return new (a||yW)};yW.\u0275mod=$e({type:yW});
yW.\u0275inj=Fc({});var zW=function(){this.activeSession=p(uu);this.issueApi=p(MP);this.analytics=p(eQ);this.errorHandler=p(pO);this.onCc=new aQ};zW.prototype.ngOnInit=function(){};
zW.prototype.toggle=function(){var a=this;this.analytics.trackEvent("issueCard","click","cc "+(this.ccState?"REMOVE":"ADD"));this.onCc.emit(!this.ccState);this.ccState?(this.ccState=!1,this.issueApi.unCcUser(this.issueId).then(function(){}).catch(function(b){a.ccState=!0;a.errorHandler.errorHandler(null,b)})):(this.ccState=!0,this.issueApi.updateIssue(this.issueId,{issueId:this.issueId,actions:[{fieldName:"ccs",value:this.activeSession.getUserEmail(),actionType:"ADD"}]}).then(function(){}).catch(function(b){a.ccState=
!1;a.errorHandler.errorHandler(null,b)}))};zW.\u0275fac=function(a){return new (a||zW)};zW.\u0275cmp=D({type:zW,selectors:[["b-cc-button"]],inputs:{issueId:"issueId",ccState:"ccState"},outputs:{onCc:"onCc"},standalone:!1,decls:3,vars:1,consts:[["type","button","mat-button","",1,"medium",3,"click"]],template:function(a,b){a&1&&(K(0,"button",0),N("click",function(){return b.toggle()}),F(1,lgb,2,0,"ng-container")(2,mgb,2,0,"ng-container"),L());a&2&&(B(),G(b.ccState?1:2))},dependencies:[kB,gB],encapsulation:2});var wv=function(a,b){this.name_=b||"";this.address=a||""},Kvd=/"/g,Lvd=/\\"/g,Mvd=/\\/g,Nvd=/\\\\/g,Ovd=RegExp("^[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,63}$"),Pvd=new RegExp("["+jta({LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"}).join("")+"]","g");wv.prototype.getName=function(){return this.name_};wv.prototype.setName=function(a){this.name_=a};wv.prototype.toString=function(){return Qvd(this,'()<>@:\\".[],;')};
var Qvd=function(a,b){var c=a.getName();c=c.replace(Kvd,"");a:{for(var d=c,e=0;e<b.length;e++)if(za(d,b[e])){b=!0;break a}b=!1}b&&(c='"'+c.replace(Mvd,"\\\\")+'"');return c==""?a.address:a.address==""?c:c+" <"+a.address+">"};wv.prototype.isValid=function(){return Ovd.test(this.address)};
var lv=function(a){var b=Rvd;a=a.replace(Pvd,"");for(var c="",d="",e=0;e<a.length;){var f=a;var g=e,k=f.charAt(g),l='"<(['.indexOf(k);if(l==-1||Svd(f,g))f=k;else{l='">)]'.charAt(l);for(var r=f.indexOf(l,g+1);r>=0&&Svd(f,r);)r=f.indexOf(l,r+1);f=r>=0?f.substring(g,r+1):k}f.charAt(0)=="<"&&f.indexOf(">")!=-1?(d=f.indexOf(">"),d=f.substring(1,d)):d==""&&(c+=f);e+=f.length}d==""&&c.indexOf("@")!=-1&&(d=c,c="");c=UGc(c);c=VGc(c,"'");c=VGc(c,'"');c=c.replace(Lvd,'"');c=c.replace(Nvd,"\\");d=UGc(d);return new b(d,
c)},Svd=function(a,b){if(a.charAt(b)!='"')return!1;var c=0;for(--b;b>=0&&a.charAt(b)=="\\";b--)c++;return c%2!=0};var Rvd=function(a,b){wv.call(this,a,b)};yw(Rvd,wv);var Tvd=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}$");Rvd.prototype.isValid=function(){return Uvd(this.address)};var Uvd=function(a){return a==null?!1:Tvd.test(a)};Rvd.prototype.toString=function(){return Qvd(this,'()<>@:\\".[],;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a')};var Vvd=/[^a-z0-9]+/ig,Wvd=[9,11,10,12,13,14,19],Xvd=[9,19,11],Yvd=[1,6],Zvd=[2,7],$vd=[3,8],awd=[1,2,6,7,8,9,11,10,12,13,14,18,19],qvc=[3,4,5,17,20],Jv=function(a,b,c){this.type_=a;this.normalizedValue_=ys(b);this.originalValue_=ys(c===void 0?b:c)};Jv.prototype.getType=function(){return this.type_};Jv.prototype.getValue=function(){return this.normalizedValue_};Jv.prototype.getOriginalValue=function(){return this.originalValue_};
var Bv=function(a){return Wvd.includes(a.getType())},bwd=function(a){return Xvd.includes(a.getType())},cwd=function(a){return Yvd.includes(a.getType())},ovc=function(a,b){switch(a){case 1:return Cv(b);case 6:return new Jv(6,ys(b).toLowerCase(),b);case 2:return ltc(b);case 7:return ntc(b);case 3:return qtc(b);case 8:return new Jv(8,ys(b).toLowerCase(),b);case 5:return new Jv(5,ys(b).toLowerCase(),b);case 4:return rtc(b);case 9:return dwd(b);case 12:return new Jv(12,ys(b),b);case 13:return new Jv(13,
ys(b),b);case 14:return new Jv(14,ys(b),b);case 10:return new Jv(10,ys(b),b);case 11:return new Jv(11,ys(b),b);case 18:return pvc(b);case 19:return new Jv(19,ys(b),b);case 20:return new Jv(20,ys(b),b);case 17:return ewd;default:return new Jv(0,b)}},Cv=function(a){return new Jv(1,ys(a).toLowerCase(),a)},ltc=function(a){var b=ys(a).toLowerCase().replace(Vvd,"");return new Jv(2,b,a)},qtc=function(a){var b=ys(a).toLowerCase();return b==="me"?ewd:new Jv(3,b,a)},rtc=function(a){return new Jv(4,ys(a).toLowerCase(),
a)},ntc=function(a){var b=ys(a).toLowerCase().replace(Vvd,"");return new Jv(7,b,a)},dwd=function(a){return new Jv(9,ys(a).toLowerCase(),a)},pvc=function(a){return new Jv(18,ys(a),a)},vv=function(a){var b=a.indexOf(":");return ovc(b>0?parseInt(a.substring(0,b),10):0,a.substring(b+1))};Jv.prototype.toString=function(){return this.type_+":"+this.normalizedValue_};Jv.prototype.serialize=function(){return this.type_+":"+this.originalValue_};
Jv.prototype.equals=function(a){return a?this===a?!0:this.type_===a.type_&&this.normalizedValue_===a.normalizedValue_:!1};var fwd=function(a){switch(a.getType()){case 1:case 6:return Uvd(a.originalValue_);case 2:case 7:return a=a.originalValue_.replace(Vvd,""),a.length>=3&&a[0]>="0"&&a[0]<="9";case 3:case 8:return!!ys(a.originalValue_);default:return!0}},Lv=ovc(0,""),ewd=new Jv(17,"me");var dv=function(){this.filter_=null;this.boostIds_=[];this.primingTimeoutMillis_=1E3;this.searchMaxResults_=this.suggestMaxResults_=this.searchFormat_=this.suggestFormat_=this.queryScope_=0;this.slots_=[];this.entryPoint_=0;this.filterEmptyExplodingGroups_=!0;this.selectedCustomProviderNames_=null};h=dv.prototype;h.getFilter=function(){return this.filter_};h.setFilter=function(a){this.filter_=a;return this};h.setQueryScope=function(a){this.queryScope_=a;return this};h.getQueryScope=function(){return this.queryScope_};
h.getEntryPoint=function(){return this.entryPoint_};h.setEntryPoint=function(a){this.entryPoint_=a;return this};h.getSuggestFormat=function(){return this.suggestFormat_};h.getSearchFormat=function(){return this.searchFormat_};h.getSuggestMaxResults=function(){return this.suggestMaxResults_};h.getSearchMaxResults=function(){return this.searchMaxResults_};
h.clone=function(){var a=new dv;a.filter_=this.filter_;a.filterEmptyExplodingGroups_=this.filterEmptyExplodingGroups_;a.boostIds_=this.boostIds_;a.primingTimeoutMillis_=this.primingTimeoutMillis_;a.queryScope_=this.queryScope_;a.slots_=this.slots_;a.entryPoint_=this.entryPoint_;a.suggestFormat_=this.suggestFormat_;a.searchFormat_=this.searchFormat_;a.suggestMaxResults_=this.suggestMaxResults_;a.searchMaxResults_=this.searchMaxResults_;a.selectedCustomProviderNames_=this.selectedCustomProviderNames_;
return a};var hw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hw,W);hw.prototype.getEntryPoint=function(){return wi(this,5)};hw.prototype.setEntryPoint=function(a){return Gn(this,5,a)};var iw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iw,W);iw.prototype.getEntryPoint=function(){return wi(this,1)};iw.prototype.setEntryPoint=function(a){return Gn(this,1,a)};var AW=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(AW,W);AW.prototype.getQuery=function(){return ui(this,1)};AW.prototype.setQuery=function(a){return oj(this,1,a)};AW.prototype.clearQuery=function(){Hw(this,1)};AW.prototype.hasQuery=function(){return im(this,1)};var gwd=function(a,b){vn(a,3,b)};AW.prototype.getAffinityVersion=function(){return Bm(this,7)};AW.prototype.setAffinityVersion=function(a){En(this,7,a)};
AW.prototype.getAffinityVersionOrUndefined=function(){return Rw(this,7)};var iwd=function(a){var b=hwd();Zw(a,8,b)};h=AW.prototype;h.getInstanceId=function(){return ui(this,11)};h.setInstanceId=function(a){return oj(this,11,a)};h.clearInstanceId=function(){Hw(this,11)};h.hasInstanceId=function(){return im(this,11)};h.getInstanceIdOrUndefined=function(){return Sw(this,11)};var cw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cw,W);h=cw.prototype;h.getPersonLoggingId=function(){return ui(this,1)};h.setPersonLoggingId=function(a){oj(this,1,a)};h.getFieldLoggingId=function(){return ui(this,2)};h.setFieldLoggingId=function(a){oj(this,2,a)};h.setFieldValue=function(a){return oj(this,3,a)};h.clearFieldValue=function(){return Hw(this,3)};h.getName=function(){return ui(this,4)};h.setName=function(a){return oj(this,4,a)};
h.hasName=function(){return im(this,4)};h.getNameOrUndefined=function(){return Sw(this,4)};h.getContactId=function(){return ui(this,5)};h.setContactId=function(a){return oj(this,5,a)};h.getProfileId=function(){return ui(this,6)};h.getProfileId_legacyNullable=function(){return Fl(this,6)};h.setProfileId=function(a){return oj(this,6,a)};h.hasProfileId=function(){return im(this,6)};h.getFieldType=function(){return wi(this,7)};h.getIsPlaceholder=function(){return Fi(this,10)};
h.setIsPlaceholder=function(a){Oi(this,10,a)};h.getGroupId=function(){return ui(this,11)};h.setGroupId=function(a){oj(this,11,a)};h.hasGroupId=function(){return im(this,11)};h.getIsBoosted=function(){return Fi(this,12)};h.setIsBoosted=function(a){Oi(this,12,a)};var bw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bw,W);h=bw.prototype;h.getProvenance=function(){return wi(this,3)};h.setProvenance=function(a){return Gn(this,3,a)};h.getContext=function(){return wi(this,5)};h.getExistingSelectionsCount=function(){return Bm(this,6)};h.setExistingSelectionsCount=function(a){En(this,6,a)};var aw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aw,W);aw.prototype.getInfo=function(){return X(this,cw,1)};var Yu=function(a){return X(a,bw,2)};aw.prototype.getSessionState=function(){return X(this,AW,3)};aw.prototype.setSessionState=function(a){return Mi(this,AW,3,a)};aw.prototype.hasSessionState=function(){return xi(this,AW,3)};var Zv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zv,W);h=Zv.prototype;h.getType=function(){return wi(this,1)};h.setType=function(a){return Gn(this,1,a)};h.hasType=function(){return jm(this,1)};h.getValue=function(){return ui(this,2)};h.setValue=function(a){return oj(this,2,a)};h.hasValue=function(){return im(this,2)};var jwd=function(a){this.delegate_=a};h=jwd.prototype;h.getDelegate=function(){return this.delegate_};h.getId=function(){return this.delegate_.getId()};h.getTargetType=function(){return this.delegate_.getTargetType()};h.getValue=function(){return this.delegate_.getValue()};h.getDisplayValue=function(){return this.delegate_.getDisplayValue()};h.getCanonicalValue=function(){return this.delegate_.getCanonicalValue()};h.getDescription=function(){return this.delegate_.getDescription()};h.getName=function(){return this.delegate_.getName()};
h.getPhoto=function(){return this.delegate_.getPhoto()};h.getTagList=function(){return this.delegate_.getTagList()};h.getSourceIdList=function(){return this.delegate_.getSourceIdList()};h.getProfileId=function(){return this.delegate_.getProfileId()};h.getContactId=function(){return this.delegate_.getContactId()};h.getLoggingToken=function(){return this.delegate_.getLoggingToken()};h.getIsMe=function(){return this.delegate_.getIsMe()};h.getOrgState=function(){return this.delegate_.getOrgState()};
h.getEmailSecurityInfo=function(){return this.delegate_.getEmailSecurityInfo()};h.getDataSource=function(){return this.delegate_.getDataSource()};h.getOriginatingField=function(){return this.delegate_.getOriginatingField()};h.getReachabilityInfo=function(){return this.delegate_.getReachabilityInfo()};h.getExtendedData=function(){return this.delegate_.getExtendedData()};var Utc=function(){this.familyName_=this.givenName_=this.displayName_="";this.sourceType_=0};h=Utc.prototype;h.getDisplayName=function(){return this.displayName_};h.setDisplayName=function(a){this.displayName_=a||"";return this};h.getGivenName=function(){return this.givenName_};h.setGivenName=function(a){this.givenName_=a||"";return this};h.getFamilyName=function(){return this.familyName_};h.setFamilyName=function(a){this.familyName_=a||"";return this};h.getSourceType=function(){return this.sourceType_};
h.setSourceType=function(a){this.sourceType_=a||0;return this};var kwd=function(a,b){this.delegate_=a;this.name_=b};Y(kwd,jwd);kwd.prototype.getName=function(){return this.name_};var BW=function(a){this.delegate_=a};h=BW.prototype;h.getDelegate=function(){return this.delegate_};h.getResultType=function(){return this.delegate_.getResultType()};h.getTargetList=function(){return this.delegate_.getTargetList()};h.getMemberList=function(){return this.delegate_.getMemberList()};h.getTotalMemberCount=function(){return this.delegate_.getTotalMemberCount()};h.getPrimaryTarget=function(){return this.delegate_.getPrimaryTarget()};h.getDisplayName=function(){return this.delegate_.getDisplayName()};
h.getDisplayValue=function(){return this.delegate_.getDisplayValue()};h.getDescription=function(){return this.delegate_.getDescription()};h.getPhotoUrl=function(){return this.delegate_.getPhotoUrl()};h.getIsBoosted=function(){return this.delegate_.getIsBoosted()};h.getMatchInfo=function(){return this.delegate_.getMatchInfo()};h.getExtendedData=function(){return this.delegate_.getExtendedData()};var ngb=function(a){this.delegate_=a};Y(ngb,BW);h=ngb.prototype;h.getPrimaryTarget=function(){return this.getTargetList()[0]};h.getDisplayName=function(){var a=this.getPrimaryTarget();return a?(a=a.getName())?a.getDisplayName():"":""};h.getPhotoUrl=function(){var a=this.getPrimaryTarget();return a?(a=a.getPhoto())?a.getUrl():"":""};h.getDisplayValue=function(){var a=this.getPrimaryTarget();return a?a.getDisplayValue():""};
h.getDescription=function(){var a=this.getPrimaryTarget();return a?a.getDescription():""};var ogb=function(a,b){this.delegate_=a;this.targets_=b};Y(ogb,BW);ogb.prototype.getTargetList=function(){return this.targets_};var Vtc=function(){this.url_="";this.sourceType_=this.type_=0;this.glyph_=""};h=Vtc.prototype;h.getUrl=function(){return this.url_};h.setUrl=function(a){this.url_=a||"";return this};h.getType=function(){return this.type_};h.setType=function(a){this.type_=a;return this};h.getSourceType=function(){return this.sourceType_};h.setSourceType=function(a){this.sourceType_=a||0;return this};h.getGlyph=function(){return this.glyph_};h.setGlyph=function(a){this.glyph_=a||"";return this};
var lwd=(new Vtc).setType(1).setUrl("https://lh3.googleusercontent.com/a/default-user"),mwd=new Vtc;var CW=function(){};CW.prototype.filterResult=function(a){var b=this,c=a.getTargetList().filter(function(d){return!b.shouldRemove(d)});return c.length===0?null:c.length===a.getTargetList().length?a:zs(new ogb(a,c))};CW.prototype.reset=function(){};var qgb=function(a){this.types_=a};Y(qgb,CW);qgb.prototype.shouldRemove=function(a){return!this.types_.includes(a.getTargetType())};qgb.prototype.reset=function(){};var sgb=function(a){this.sourceIds_=a.filter(function(b){return qvc.includes(b.getType())}).map(String);this.targetIds_=a.filter(function(b){return awd.includes(b.getType())}).map(String)};Y(sgb,CW);sgb.prototype.shouldRemove=function(a){var b=this;return!this.targetIds_.includes(String(a.getId()))&&a.getSourceIdList().every(function(c){return!b.sourceIds_.includes(String(c))})};
var nwd=function(a){this.sources_=a};Y(nwd,CW);nwd.prototype.shouldRemove=function(a){return!this.sources_.includes(a.getDataSource())};var ugb=function(a){this.filters_=a};ugb.prototype.filterResult=function(a){for(var b=m(this.filters_),c=b.next();!c.done;c=b.next())if(a=c.value.filterResult(a),!a)return null;return a};ugb.prototype.reset=function(a){for(var b=m(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var wgb=function(a){this.filters_=a};
wgb.prototype.filterResult=function(a){for(var b=m(this.filters_),c=b.next();!c.done;c=b.next())if(c=c.value.filterResult(a))return c;return null};wgb.prototype.reset=function(a){for(var b=m(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var owd=vgb();var pwd=new dd("PeoplekitClientConfig"),qwd=function(a){this.matcher=a};Y(qwd,CW);qwd.prototype.shouldRemove=function(a){return a.getTargetType()===1&&this.matcher(a.getValue())};var DW=function(a){var b=this;this.injector=a;this.clientDarkmode$=this.clientDarkmodeSubject=new Mj(!1);this.localDarkmode=!1;this.clientStreamzService=null;this.loadLocalDarkmode=function(){b.localDarkmode=window.localStorage.getItem("onedev-darkmode")!=null;rwd(b,b.localDarkmode);b.clientStreamzService&&Y8c(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")}};DW.prototype.enableUsageTracking=function(){this.clientStreamzService=this.injector.get(RK)};var rwd=function(a,b){a.clientDarkmodeSubject.next(b);document.body.classList.toggle("dark-mode",b)};DW.\u0275fac=function(a){return new (a||DW)(Xc(ye))};DW.\u0275prov=Dc({token:DW,factory:DW.\u0275fac});var swd=vgb(rgb(1),xgb(function(){return new nwd($c.apply(0,arguments))}(3),new qwd(function(a){return a.includes("-pager")||a.includes("+pager")||a.includes("-oncall")||a.includes("+oncall")||a.includes("lifeguard-ng")}))),EW=function(){this.theme=p(DW)};EW.prototype.getTheme=function(){return this.theme.clientDarkmodeSubject.getValue()?1:0};
var twd=function(a){return a.map(function(b){return b.result().getPrimaryTarget().getValue()})},Dgb=function(a){return{moveAutocompleteAboveAnchorIfOffscreen:!0,density:2,theme:a.getTheme(),autoActivateFirstSearchResult:!0,showSuggestions:!1}};EW.\u0275fac=function(a){return new (a||EW)};EW.\u0275prov=Dc({token:EW,factory:EW.\u0275fac,providedIn:"root"});var uwd=function(a,b){this.apiEnv_=a;this.experimentsConfig_=b};var vwd=function(a){this.profileId_=a};vwd.prototype.getProfileId=function(){return this.profileId_};var wwd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wwd,W);h=wwd.prototype;h.setMaxResults=function(a){return En(this,1,a)};h.getQuery=function(){return ui(this,2)};h.setQuery=function(a){return oj(this,2,a)};h.clearQuery=function(){Hw(this,2)};h.hasQuery=function(){return im(this,2)};var xwd=function(){this.dynamicDataProviders_=[];this.staticDataProviders_=[]};var ywd=Object.freeze({preferOauth:!1}),FW=Object.freeze({userProfileId:"",apiEnv:4,userEmail:"",clearcut:ywd});var zwd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,1)};Y(zwd,W);var Awd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Awd,W);h=Awd.prototype;h.getExperimentIdsList=function(a){return Dm(this,1,Ci(a))};h.setExperimentIdsList=function(a){return xc(this,1,a,Eb)};h.getExperimentIds=function(){return Tw(this,1)};h.setExperimentIds=function(a){zc(this,1,Eb,void 0,a,Fb,void 0,1)};h.getProfileId=function(){return ui(this,2)};h.getProfileId_legacyNullable=function(){return Fl(this,2)};h.setProfileId=function(a){return oj(this,2,a)};
h.hasProfileId=function(){return im(this,2)};var Bwd=function(){},Cwd=function(){return!1},Dwd=function(){this.experiments_=(new Awd).setProfileId(FW.userProfileId);this.peopleApiEnv_=FW.apiEnv;this.delegatorId_=this.userEmail_="";this.userKeys_=new Set;this.onAuthError_=Bwd;this.offlineStorage_=null;this.apiKey_=this.clearcutUrl_="";this.isOffline_=Cwd;this.customDataConfig_=null;this.isOrgStateEnabled_=!1;var a=FW.userEmail;this.userEmail_=a||"";a&&this.userKeys_.add(String(Cv(a)))};h=Dwd.prototype;h.getUserEmail=function(){return this.userEmail_};
h.getPeopleApiEnv=function(){return this.peopleApiEnv_};h.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};h.getExperiments=function(){return this.experiments_};h.getAuthErrorHandler=function(){return this.onAuthError_};h.setClearcutUrl=function(a){this.clearcutUrl_=a};h.getClearcutUrl=function(){return this.clearcutUrl_};h.getApiKey=function(){return this.apiKey_};h.setApiKey=function(a){this.apiKey_=a;return this};var GW=function(a,b){b!=null||(b=p(Rg));var c=new Dwd;a.peopleApiEnv&&c.setPeopleApiEnv(a.peopleApiEnv);a.customAuthHeaders&&(c.customAuthHeaders_=a.customAuthHeaders);a.profileId&&c.getExperiments().setProfileId(a.profileId);if(a.dynamicDataProviders||a.staticDataProviders){var d=new xwd;a.dynamicDataProviders&&(d.dynamicDataProviders_=a.dynamicDataProviders);a.staticDataProviders&&(d.staticDataProviders_=a.staticDataProviders);c.customDataConfig_=d}b=b.runOutsideAngular(function(){var e=a.peopleStoreClient.create(c);
e.warmUpCache();return{peopleStore:e,environmentConfig:new uwd(c.getPeopleApiEnv(),new vwd(""))}});this.peopleStore=b.peopleStore;this.environmentConfig=b.environmentConfig};GW.\u0275fac=function(a){return new (a||GW)(Xc(pwd),Xc(Rg))};GW.\u0275prov=Dc({token:GW,factory:GW.\u0275fac});var Ewd=["multiUserInput"],Fwd=function(a){this.component=a;this.name="Buganizer ACL Autocomplete Entries"};Fwd.prototype.getPosition=function(){return 2};Fwd.prototype.warmUpCache=function(){var a=new dcd;ecd(a,this.component.additionalContactsFn().map(function(b){var c=(new yN).setResultType(7),d=(new xN).setValue(b.id);b=Gn(d,1,18).setName((new vN).setDisplayName(b.text));Np(c,2,xN,b);return c}));return Promise.resolve(a)};Fwd.prototype.needsWarmUp=function(){return!1};
var HW=function(){Z.apply(this,arguments);var a=this;this.element=p(Hd);this.principalTypes=p(EQ);this.activeSession=p(uu);this.documentationLinks=p(cS);this.appEvents=p(UO);this.cdr=p(bQ,{self:!0});this.hotkeys=p(nU);this.autocompleteConfigService=p(EW);this.usersChange=new aQ(!0);this.includeViewAliases=this.removeContainerDivTabIndex=this.includeAliases=!1;this.maxUserAllowed=-1;this.customValidators={};this.detailedUserValidators={};this.placeholderText=this.ariaLabel="";this.isValid=new aQ;this.sessionOptions=
(new dv).setFilter(xgb(swd,rgb(18)));this.typedText="";this.items=[];this.additionalContactsFn=function(){return Gwd(a)};this.isFocused=!1;this.selectedChipIndex=-1;this.$element=this.element.nativeElement;this.validators={};this.violations=new Set};Y(HW,Z);HW.\u0275dir=Z.\u0275dir;
HW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.appEvents.contactChipsRevertChanges.subscribe(function(){a.typedText=""}));this.subscriptions.add(oU(this.hotkeys,{title:"Manage Component Page",hotkeys:[{keys:[],displayAs:"Right Arrow (>)",description:"Move the Cursor to Input Field",onPress:function(){}}]}));this.validators=Object.assign({},{validateGaia:function(b,c){return Hwd(c)},validateInternalAccessLevel:function(b,c){return Iwd(a,c)},validateExternalAccessLevel:function(b,
c){return Jwd(a,c)}},this.customValidators)};HW.prototype.ngOnChanges=function(a){if(a.users||a.containerChips)this.items=Kwd(this,this.users),Lwd(this)};var Lwd=function(a){var b=[].concat(q(a.items)),c=Mwd(b),d=Nwd(b);b=a.validate(c,d,b);a.isValid.emit(b);a.users&&mm(a.users,c)||(a.users=c,b&&a.usersChange.emit(c))};
HW.prototype.validate=function(a,b,c){for(var d=new Set,e=m(Object.entries(this.validators)),f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;g=g.next().value;g(a,c)||d.add(f)}a=m(Object.entries(this.detailedUserValidators));for(c=a.next();!c.done;c=a.next())e=m(c.value),c=e.next().value,e=e.next().value,e(b)||d.add(c);this.violations=d;return this.violations.size===0};
var Bgb=function(a){!a.isWidgetDisabled()&&Owd(a)&&(a.isFocused=!0,a.textInputElement.nativeElement.focus())},zgb=function(a){As(a,a.selectedChipIndex)&&(a.items[a.selectedChipIndex].isSelected=!1);a.selectedChipIndex=-1};HW.prototype.isWidgetDisabled=function(){return this.$element.classList.contains("disabled")||!!this.$element.hasAttribute("disabled")};var Owd=function(a){var b,c;return a.maxUserAllowed<0||((c=(b=a.users)==null?void 0:b.length)!=null?c:0)<a.maxUserAllowed};
HW.prototype.removeItem=function(a){this.isWidgetDisabled()||!As(this,a)||this.items[a].isReadonly||(zgb(this),this.items.splice(a,1),Lwd(this))};HW.prototype.setAccessLevel=function(a){this.accessLevel=a};
var Gwd=function(a){return Pwd(a).map(function(b){return{text:bRa(b),id:es({alias:b})}})},Pwd=function(a){if(!a.includeAliases||XN(a.activeSession))return[];var b=["googlers_unrestricted"];if(a.accessLevel===void 0||a.accessLevel==="EXTERNAL_PUBLIC")b.push("public_non_google"),a.includeViewAliases&&b.push("public");return b},Cgb=function(a,b){b&&(b=cud.test(b)?Qwd(a,b):Rwd(a,b),a.items.push(b));a.typedText="";Lwd(a)},As=function(a,b){return b>=0&&b<a.items.length},Qwd=function(a,b){var c=c===void 0?
!1:c;var d=Ocb(b);if(d.alias===void 0)throw Error("Re`"+b);b=d.alias;d=bRa(b);return new Swd("ALIAS",b,d,null,c,a)},Twd=function(a,b){b=o7a(b);var c=new Swd("GROUP",b,b,null,!1,a);FQ(a.principalTypes,b,!0).then(function(d){c.detailedUserType=d.detailedUserType;Lwd(a)});return c},Uwd=function(a,b){var c=c===void 0?!1:c;b=o7a(b);var d=new Swd("USER",b,b,null,c,a);FQ(a.principalTypes,b,!0).then(function(e){d.detailedUserType=e.detailedUserType;Lwd(a)});return d},Rwd=function(a,b){var c=c===void 0?!1:
c;b=o7a(b);var d=new Swd("PRINCIPAL_TYPE_UNSPECIFIED",b,b,null,c,a);FQ(a.principalTypes,b,!0).then(function(e){d.principalType=e.principalType;d.detailedUserType=e.detailedUserType;Lwd(a)});return d},Vwd=function(a,b,c){return new Swd("PRINCIPAL_TYPE_UNSPECIFIED","",b,c,!0,a)};HW.prototype.getAccessLevel=function(){return this.accessLevel};HW.prototype.getAppName=function(){return this.activeSession.getAppName()};
HW.prototype.onKeyDown=function(a){a.keyCode===8?As(this,this.selectedChipIndex)?(As(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex),a.stopPropagation(),a.preventDefault()):this.typedText===""&&this.items.length>0&&this.removeItem(this.items.length-1):a.keyCode===46?As(this,this.selectedChipIndex)&&As(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex):a.keyCode===39&&Bgb(this)};
var Kwd=function(a,b){b=(b||[]).map(function(d){return Wwd(a,d)});if(a.containerChips){var c=a.containerChips.filter(function(d){return d.values!==void 0&&Array.isArray(d.values)&&d.values.length>0}).map(function(d){return Vwd(a,d.displayText,d.values.map(function(e){return Wwd(a,e)}))});return[].concat(q(c),q(b))}return b},Wwd=function(a,b){var c=b.split(":");if(c.length!==2)throw Error("Se`"+b);var d=c[0];if(d!=="USER"&&d!=="GROUP"&&d!=="ALIAS")throw Error("Se`"+b);return d==="ALIAS"?Qwd(a,b):d===
"USER"?Uwd(a,c[1]):Twd(a,c[1])},Mwd=function(a){return(a||[]).filter(function(b){return b.principalType!=="PRINCIPAL_TYPE_UNSPECIFIED"}).map(function(b){return b.principalType+":"+b.value})},Nwd=function(a){return(a||[]).filter(function(b){return b.detailedUserType!=="NO_DETAILED_TYPE"}).map(function(b){return b.detailedUserType+":"+b.value})},Hwd=function(a){return!a.some(function(b){return b.isNonGaiaChip()})},Iwd=function(a,b){return a.accessLevel!=="INTERNAL"?!0:!b.some(function(c){return c.isInternalAccessViolated()})},
Jwd=function(a,b){return a.accessLevel!=="EXTERNAL_PARTNER"?!0:!b.some(function(c){return c.isExternalPartnerAccessViolated()})};HW.prototype.selectAutocomplete=function(a){a.length>0&&(this.typedText=a[0].result().getPrimaryTarget().getValue(),Cgb(this,this.typedText.split(",")[0].trim()),this.isFocused=!1,this.cdr.markForCheck())};HW.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(HW)))(b||HW)}}();
HW.\u0275cmp=D({type:HW,selectors:[["b-multi-user-input"]],viewQuery:function(a,b){a&1&&hg(Ewd,5);if(a&2){var c;lg(c=mg())&&(b.textInputElement=c.first)}},hostBindings:function(a,b){a&1&&N("keydown",function(c){return b.onKeyDown(c)})},inputs:{users:"users",containerChips:"containerChips",accessLevel:"accessLevel",includeAliases:"includeAliases",idForInputBox:"idForInputBox",removeContainerDivTabIndex:"removeContainerDivTabIndex",includeViewAliases:"includeViewAliases",maxUserAllowed:"maxUserAllowed",
customValidators:"customValidators",detailedUserValidators:"detailedUserValidators",ariaLabel:"ariaLabel",placeholderText:"placeholderText"},outputs:{usersChange:"usersChange",isValid:"isValid"},standalone:!1,features:[Gg([bQ,GW,{provide:pwd,useFactory:function(){var a=p(HW),b=p(pwd,{skipSelf:!0}),c;return Object.assign({},b,{staticDataProviders:[].concat(q((c=b.staticDataProviders)!=null?c:[]),[new Fwd(a)])})}}]),Ef,jx],decls:17,vars:15,consts:[["multiUserInput",""],["role","list",1,"bv2-multi-user-input",
"keep-focus-ring",3,"click"],["id","input-description","hidden","",1,"screen-reader-only"],["role","listitem",1,"bv2-user-chip"],["b-adaptive-width-input","","tabindex","0","peoplekitAutocomplete","","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay","ngModel","disabled","placeholder"],["role","alert",1,"bv2-multi-user-errors"],[3,"chipSelection","chipClear","chipRemove","isReadonly","isSelected",
"isWidgetDisabled","principalType","detailedUserType","nestedChips","value","displayText","accessLevel"],["b-adaptive-width-input","","tabindex","0","peoplekitAutocomplete","","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"peoplekitAutocompleteSelectionChange","ngModelChange","focus","blur","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay","ngModel","disabled","placeholder"],["target","_blank"]],template:function(a,b){a&1&&(K(0,"div",
1),N("click",function(){return Bgb(b)}),K(1,"div",2),Q(2," Press tab to navigate through users and right arrow to go to input section "),L(),K(3,"div"),Nf(4,Agb,2,9,"div",3,Mf),F(6,Egb,2,6,"input",4),L()(),K(7,"div",5),F(8,Fgb,4,1,"span"),F(9,Ggb,2,0,"span"),F(10,Hgb,2,0,"span"),F(11,Igb,2,0,"span"),F(12,Jgb,2,0,"span"),F(13,Kgb,2,0,"span"),F(14,Lgb,2,0,"span"),F(15,Mgb,2,0,"span"),F(16,Ngb,2,0,"span"),L());if(a&2){wg("focused",b.isFocused);var c;If("tabindex",b.removeContainerDivTabIndex?-1:0)("aria-label",
(c=b.idForInputBox)!=null?c:0);B(4);Of(b.items);B(2);G(Owd(b)?6:-1);B();If("aria-hidden",b.violations.size===0);B();G(b.violations.has("noRestrictedPlusGroups")?8:-1);B();G(b.violations.has("validateGaia")?9:-1);B();G(b.violations.has("validateInternalAccessLevel")?10:-1);B();G(b.violations.has("validateExternalAccessLevel")?11:-1);B();G(b.violations.has("escalationOwnerNotUser")?12:-1);B();G(b.violations.has("escalationOwnerNotGoogler")?13:-1);B();G(b.violations.has("userNotInGoogleDomain")?14:-1);
B();G(b.violations.has("userAlreadySelected")?15:-1);B();G(b.violations.has("isNotUserType")?16:-1)}},styles:[".bv2-multi-user-embedded-input[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);color:#202124;color:var(--text-high-contrast)}.bv2-multi-user-input[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:1px;cursor:text;min-height:27px;padding:6px;width:600px}.bv2-multi-user-input[_ngcontent-%COMP%]:hover{box-shadow:inset 0px 1px 2px rgba(0,0,0,.1)}.bv2-multi-user-input.focused[_ngcontent-%COMP%]{box-shadow:inset 0px 1px 2px rgba(0,0,0,.3);border-color:#1a73e8;border-color:var(--primary)}.bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[_ngcontent-%COMP%]{border:0;display:inline-block;height:24px;min-width:100px;max-width:500px;width:100%;outline:none;padding-left:5px}.bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]{cursor:default;display:inline-block;font-size:.8125rem;padding:3px;padding-top:2px;vertical-align:top}.ng-invalid[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-high-contrast)}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]{border-color:#dadce0;border-color:var(--divider);color:#5f6368;color:var(--text-muted);cursor:initial}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[disabled][_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[disabled][_ngcontent-%COMP%]{background-color:#fff;background-color:var(--surface-default);display:none}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]   span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]   span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]{display:none}.disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]:hover, [disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]:hover{border-color:#dadce0;border-color:var(--divider);box-shadow:none}.bv2-multi-user-errors[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad);font-size:.8125rem;line-height:18px;margin:0 0 1em;padding:9px 0}/*# sourceMappingURL=multi_user_input.css.map */"]});
var Swd=function(a,b,c,d,e,f){this.principalType=a;this.detailedUserType="NO_DETAILED_TYPE";this.value=b;this.displayText=c;this.nestedChips=d;this.isSelected=!1;this.isReadonly=e;this.parentController=f};h=Swd.prototype;
h.getTooltip=function(){if(this.principalType!=="ALIAS")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 users, excluding the google.com domain.";case "public":return"All users";default:throw Error("Te`"+this.value);}};
h.isGroupChip=function(){return this.principalType==="GROUP"};h.isPublicChip=function(){return this.principalType==="ALIAS"&&["public_non_google","public"].includes(this.value)};h.isDomainChip=function(){return this.principalType==="ALIAS"&&["googlers_unrestricted","google_domain"].includes(this.value)};h.isExternalChip=function(){return this.detailedUserType==="EXTERNAL"||this.detailedUserType==="PUBLIC"||this.isPublicChip()};h.isNonGaiaChip=function(){return this.principalType==="NON_GAIA"};
h.isContainerChip=function(){return this.nestedChips!==null};h.isInternalAccessViolated=function(){return this.parentController.getAccessLevel()==="INTERNAL"&&(this.isExternalChip()||this.isPublicChip())};h.isExternalPartnerAccessViolated=function(){return this.parentController.getAccessLevel()==="EXTERNAL_PARTNER"&&this.isPublicChip()};h.isUserChip=function(){return this.principalType==="USER"};var IW={type:"no_indicator",displayText:""},Xwd={type:"visible_to_listed_partners",displayText:"Visible to listed partners",displayTextCompact:"Listed partners",explanation:"This issue is not visible to all partners, but it is visible to partners listed on the issue."},Rgb={type:"visible_to_listed_public_users",displayText:"Visible to listed users",displayTextCompact:"Listed users",explanation:"This issue is not visible to all public, but it is visible to public users listed on the issue."},Ywd={type:"visible_to_partners",
displayText:"Visible to partners",displayTextCompact:"Partners",explanation:"This issue is visible to partner users."},Ogb={type:"visible_to_public",displayText:"Visible to public",displayTextCompact:"Public",explanation:"This issue is visible to the public."},JW=function(){this.issueFullFridge=p(gQ);this.componentAccessPolicyFridge=p(LO);this.activeSession=p(uu)},axd=function(a,b,c){var d=a.issueFullFridge.watch(b);b=ne(function(){return c?ce(c):d.pipe(A(function(e){return e==null?void 0:e.snapshot[0].componentId}))}).pipe(yf(function(e){return e?
a.componentAccessPolicyFridge.watch(e):ce(void 0)}));return ie([d,b]).pipe(A(function(e){var f=m(e);e=f.next().value;f=f.next().value;var g,k;var l=(k=e==null?void 0:e.snapshot[0].issueAccessLimitLevel)!=null?k:void 0;k=e==null?void 0:(g=e.accessLimit)==null?void 0:g.accessLevel;if(XN(a.activeSession))g=IW;else if(WN(a.activeSession))g=Zwd(l,k,f);else if(a.activeSession.isInternalSession())g=$wd(l,k,f);else throw Error("Ue");return g}))},Zwd=function(a,b,c){switch(b){case "INTERNAL":return IW;case "EXTERNAL_PARTNER":return IW;
case "EXTERNAL_PUBLIC":return Sgb(a,c);case "ACCESS_LEVEL_UNSPECIFIED":return IW;default:return IW}},$wd=function(a,b,c){switch(b){case "INTERNAL":return IW;case "EXTERNAL_PARTNER":return a&&Qgb(a)?Xwd:Ywd;case "EXTERNAL_PUBLIC":return Sgb(a,c);case "ACCESS_LEVEL_UNSPECIFIED":return IW;default:return IW}};JW.\u0275fac=function(a){return new (a||JW)};JW.\u0275prov=Dc({token:JW,factory:JW.\u0275fac,providedIn:"root"});var KW=function(){Z.apply(this,arguments);var a=this;this.accessIndicatorService=p(JW);this.documentationLinks=p(cS);this.issueFullFridge=p(gQ);this.issueApi=p(LP);this.compactMode=!1;this.issueId$=new uf;this.accessIndicator$=this.issueId$.pipe(yf(function(b){return axd(a.accessIndicatorService,b)}));this.chipClass$=this.accessIndicator$.pipe(A(function(b){return b.type}));this.chipText$=this.accessIndicator$.pipe(A(function(b){return a.compactMode?b.displayTextCompact||b.displayText:b.displayText}));
this.bubbleText$=this.accessIndicator$.pipe(A(function(b){return b.explanation}));this.shouldShowIndicator$=this.accessIndicator$.pipe(A(function(b){return b.type!=="no_indicator"}));this.issue$=this.issueId$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));this.viewers$=ie([this.issue$,this.accessIndicator$]).pipe(jf(0,Dr),yf(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(!b||!Ygb(c.type))return ce([]);var d,e;return a.issueApi.getRetainedAccessPrincipals(b==null?void 0:b.issueId,
(e=b==null?void 0:(d=b.snapshot[0])==null?void 0:d.issueAccessLimitLevel)!=null?e:"LIMIT_NONE",[],[]).pipe(A(function(f){f=[].concat(q(hs(f.writers)),q(hs(f.appenders)),q(hs(f.readers)));return[].concat(q(new Set(f)))}))}),vf({refCount:!0,bufferSize:1}));this.showHovercard$=this.viewers$.pipe(A(function(b){return!!b.length}),ue(Boolean),A(function(){}));this.loadTooltip$=new uf(1);this.tooltipText$=this.loadTooltip$.pipe(yf(function(){return a.viewers$}),A(function(b){return b.length?"Press Alt + Right arrow for more details":
""}));this.loadTooltipOnce=RUa(function(){a.loadTooltip$.next()})};Y(KW,Z);KW.\u0275dir=Z.\u0275dir;KW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.tooltipText$.subscribe(function(b){b&&(a.matTooltip.message=b,a.matTooltip.show())}))};da.Object.defineProperties(KW.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});KW.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(KW)))(b||KW)}}();
KW.\u0275cmp=D({type:KW,selectors:[["b-issue-visibility-chip"]],viewQuery:function(a,b){a&1&&hg(nA,5);if(a&2){var c;lg(c=mg())&&(b.matTooltip=c.first)}},inputs:{issueId:"issueId",compactMode:"compactMode"},standalone:!1,features:[Ef],decls:2,vars:3,consts:[["tooltip","matTooltip"],["card","onedevHovercard"],["tabindex","0",1,"chippy","rounded","nowrap","keep-focus-ring",3,"focus","blur","onedevHovercardTrigger","matTooltipDisabled","matTooltip"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],
[1,"issue-visibility-chip-bubble"],["target","_blank",3,"href"],[3,"onedevIsHovercardReady",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady"],["idForInputBox","Users who can view",3,"users"]],template:function(a,b){a&1&&(F(0,Xgb,15,18),T(1,"async"));a&2&&G(U(1,1,b.shouldShowIndicator$)?0:-1)},dependencies:[HW,KK,LK,SK,MK,vK,nA,Tx],styles:[".chippy[_ngcontent-%COMP%]{margin-right:8px}.chippy[_ngcontent-%COMP%]:hover, .chippy[_ngcontent-%COMP%]:focus, .chippy[_ngcontent-%COMP%]:focus-visible, .chippy[_ngcontent-%COMP%]:focus-within{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color;outline-offset:2px}.chippy.visible_to_partners[_ngcontent-%COMP%]{background-color:#ffdeb5;background-color:var(--partner-bg);color:#202124;color:var(--partner-text);box-shadow:inset 0 0 0 2px var(--partner-outline)}.chippy.visible_to_listed_partners[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);background-color:var(--partner-listed-bg);color:#202124;color:var(--partner-text);box-shadow:inset 0 0 0 2px var(--partner-listed-outline)}.chippy.visible_to_public[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg);color:#202124;color:var(--public-text);box-shadow:inset 0 0 0 2px var(--public-outline)}.chippy.visible_to_listed_public_users[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);background-color:var(--public-listed-bg);color:#202124;color:var(--public-text);box-shadow:inset 0 0 0 2px var(--public-listed-outline)}  .issue-visibility-chip-bubble a{color:#1a73e8;color:var(--link)}  .issue-visibility-chip-bubble a:visited{color:#7627bb;color:var(--link-visited)}  .issue-visibility-chip-bubble div.bv2-multi-user-input{width:auto}"],
changeDetection:0});var LW=function(){Z.apply(this,arguments);this.errorHandler=p(pO);this.issueFullFridge=p(gQ);this.upvoted=!1;this.voteCount=0;this.onVote=new aQ;this.tooltip="Indicate that you are affected by this issue";this.isSaving=!1};Y(LW,Z);LW.\u0275dir=Z.\u0275dir;
LW.prototype.onClick=function(){var a=this;if(this.issueId!=null&&!this.isSaving){var b=(this.upvoted=!this.upvoted)?1:-1;this.voteCount+=b;this.onVote.emit(this.upvoted);this.isSaving=!0;ehd(this.issueFullFridge,String(this.issueId),this.upvoted).pipe(lf(1),zf(this.destroyed$)).subscribe(function(){a.isSaving=!1},function(c){a.isSaving=!1;a.errorHandler.errorHandler(null,c);a.upvoted=!a.upvoted;a.voteCount-=b})}};LW.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(LW)))(b||LW)}}();
LW.\u0275cmp=D({type:LW,selectors:[["b-app-vote-button"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("no-votes",b.voteCount<=0)},inputs:{issueId:"issueId",upvoted:"upvoted",voteCount:"voteCount"},outputs:{onVote:"onVote"},standalone:!1,features:[Ef],decls:4,vars:6,consts:[["type","button","mat-button","",1,"small",3,"click","matTooltip"],["svgIcon","exposure_plus_1_24px",1,"icon-m"],[3,"title"]],template:function(a,b){a&1&&(K(0,"button",0),N("click",function(){return b.onClick()}),M(1,"mat-icon",
1),K(2,"output",2),Q(3),L()());a&2&&(I("matTooltip",b.upvoted?"Remove vote: I am not impacted":"Vote: I am impacted"),If("aria-pressed",b.upvoted)("aria-label","Vote count "+b.voteCount),B(2),I("title",Eg("",b.voteCount," votes on this issue")),B(),S(" ",b.voteCount>99999?"99999+":b.voteCount," "))},dependencies:[Jy,kB,gB,vK,nA],styles:["[_nghost-%COMP%]{display:inline-block;margin-right:12px}.gmat-mdc-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-mdc-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;margin:0}.gmat-mdc-button[_ngcontent-%COMP%]:hover{box-shadow:inset 0 0 0 1px #d2e3fc;box-shadow:inset 0 0 0 1px var(--primary-c100)}.gmat-mdc-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-mdc-button[aria-pressed=true][_ngcontent-%COMP%]:hover{background-color:#4285f4;background-color:var(--primary-btn-bg-hover)}button.gmat-mdc-button.mat-mdc-button[aria-pressed=true][_ngcontent-%COMP%]{color:#fff;color:var(--text-inverse)}button.gmat-mdc-button.mat-mdc-button[aria-pressed=true][_ngcontent-%COMP%]:hover, button.gmat-mdc-button.mat-mdc-button[aria-pressed=true][_ngcontent-%COMP%]:focus{--private-gmat-button-text-stateful-color: var(--text-inverse)}.bv2-material   [_nghost-%COMP%]     button.gmat-mdc-button:not(.mat-mdc-icon-button).small{padding:0 4px}output[_ngcontent-%COMP%]{display:inline-block;box-sizing:border-box;height:20px;line-height:20px;min-width:20px;border-radius:10px;margin-left:4px;margin-right:-16px;transform:translate(0, -33%);padding:0 4px;font-weight:500;font-size:.75rem;text-align:center;background-color:#188038;background-color:var(--good-bg-inverse);color:#fff;color:var(--text-inverse);box-shadow:0 0 0 1px #fff;box-shadow:0 0 0 1px var(--background);position:relative;z-index:1}[_nghost-%COMP%], output[_ngcontent-%COMP%]{transition:margin-right .1s ease-out}.no-votes[_nghost-%COMP%]{margin-right:2px}.no-votes[_nghost-%COMP%]   output[_ngcontent-%COMP%]{margin-right:-22px;visibility:hidden}/*# sourceMappingURL=app_vote_button.css.map */"],
changeDetection:0});var lhb=function(){return[]},MW=function(){Z.apply(this,arguments);var a=this;this.cdr=p(bQ,{self:!0});this.activeSession=p(uu);this.analytics=p(eQ);this.relationshipService=p(kQ);this.issueFullFridge=p(gQ);this.butterBar=p(UN);this.STATUS_JS_FULL_TEXT=zm;this.ISSUE_PRIORITY_TEXT_JS=ncd;this.ISSUE_PRIORITY_ENUM=Dbd;this.ROUTES=qs;this.providedIssueId$=new uf(1);this.issue$=this.providedIssueId$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}),ue(Pm));this.FormattingMode=Um;this.init=new uf(1)};
Y(MW,Z);MW.\u0275dir=Z.\u0275dir;MW.prototype.ngOnInit=function(){var a=this;this.providedIssueId$.next(this.issueId);this.issue$.pipe(zf(this.destroyed$)).subscribe(function(b){a.issue=b;a.firstEvent=b.description&&K0a(b.description,b);a.cdr.markForCheck();a.init.next()})};MW.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};
MW.prototype.getNote=function(){var a,b;return{commentNumber:1,unlinkifiedComment:((a=this.firstEvent)==null?void 0:a.unlinkifiedComment)||"",formattedComment:(b=this.firstEvent)==null?void 0:b.formattedComment}};
var khb=function(a,b){return um(b).includes(a.activeSession.getUserEmail())},fhb=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return c=a.issueId,a.issueFullFridge.manualUpdate(b,function(e){var f=e.parentIssueIds.indexOf(c);f<0||(e.parentIssueIds.splice(f,1),Object.assign({},e))}),Wd(d,2,3),z(d,fe(a.relationshipService.delete(c,"CHILD",b)),3);if(d.nextAddress!=2)return Xd(d),a.issueFullFridge.poke(b),Zd(d,0);$d(d);a.butterBar.showWarning("Error removing the parent issue.");return d.jumpTo(3)})};
MW.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(MW)))(b||MW)}}();
MW.\u0275cmp=D({type:MW,selectors:[["b-issue-card"]],inputs:{issueId:"issueId",location:"location",childContextId:"childContextId"},outputs:{init:"init"},standalone:!1,features:[Gg([bQ]),Ef],decls:2,vars:1,consts:[["role","dialog","aria-label","Issue Hovercard",1,"onedev-hovercard-content"],[1,"bv2-hovercard-wide"],[3,"href"],[1,"bv2-issue-card-title"],[1,"issue-card-id-snippets"],[3,"issueId"],[1,"priority-status"],[1,"bv2-priority"],[1,"issue-card-buttons","margin-y"],[3,"onCc","issueId","ccState"],
["type","button","mat-button","","matTooltip","Remove the parent/child relationship with this issue",1,"medium"],[1,"bv2-issue-card-comment"],[3,"model","hovercardEnabled"],[3,"issueId","voteCount","upvoted"],["type","button","mat-button","","matTooltip","Remove the parent/child relationship with this issue",1,"medium",3,"click"],["mode","date",1,"float-right",3,"timestamp"],[3,"issueId","issueAccessLevel","formattingMode","note"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,mhb,22,17,"div",1),
L());if(a&2){var c;B();G((c=b.issue&&b.issue.snapshot[0])?1:-1,c)}},dependencies:[kB,gB,vK,nA,$U,rV,hU,LW,KW,zW],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 bxd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bxd,W);h=bxd.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return tn(this,1)};h.setComponentId=function(a){return Io(this,1,a)};h.getText=function(){return ui(this,2)};h.setText=function(a){return Fm(this,2,a)};var cxd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,cxd.messageId)};Y(cxd,W);cxd.prototype.getIt=function(){return X(this,bxd,3,jb)};cxd.prototype.setIt=function(a){return Mi(this,bxd,3,a,jb)};cxd.messageId="b.CheckBannedWordsRequest";var dxd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dxd,W);var exd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,exd.messageId)};Y(exd,W);exd.prototype.getIt=function(){return X(this,dxd,2,jb)};exd.prototype.setIt=function(a){return Mi(this,dxd,2,a,jb)};exd.messageId="b.CheckBannedWordsResponse";var NW=function(){this.executor=p(bO)};NW.prototype.checkBannedWords=function(a){a=(new cxd).setIt((new bxd).setComponentId(Number(a.componentId)).setText(a.text));return this.executor.post({url:"action/check_banned_words",body:a,responseConstructor:exd}).pipe(A(nhb))};NW.\u0275fac=function(a){return new (a||NW)};NW.\u0275prov=Dc({token:NW,factory:NW.\u0275fac,providedIn:"root"});var OW=function(){this.observableApi=p(NW)};OW.prototype.checkBannedWords=function(a){return fe(this.observableApi.checkBannedWords(a))};
OW.\u0275fac=function(a){return new (a||OW)};OW.\u0275prov=Dc({token:OW,factory:OW.\u0275fac,providedIn:"root"});var PW=function(){Z.apply(this,arguments);this.bannedWordsApi=p(OW);this.activeSession=p(uu);this.errorHandler=p(pO);this.analytics=p(eQ);this.matchedPatterns=[];this.warningState$=new Mj("INITIAL");this.isUserInternal=this.activeSession.isInternalSession();this.showWarning$=this.warningState$.pipe(A(function(a){return a==="SHOW_WARNING"}))};Y(PW,Z);PW.\u0275dir=Z.\u0275dir;
PW.prototype.check=function(a,b,c){var d=this;return y(function(e){if(!d.isUserInternal||!b||!c)return e.return(!0);switch(d.warningState$.value){case "INITIAL":return e.return(fxd(d,c,a));case "SHOW_WARNING":return d.warningState$.next("SKIP_WARNING"),d.analytics.trackEvent("bannedWords","skipBannedWordsCheck",Bs(d)),e.return(!0);default:return e.return(!0)}})};
var fxd=function(a,b,c){var d,e;return y(function(f){if(f.nextAddress==1)return Wd(f,2),z(f,a.bannedWordsApi.checkBannedWords({componentId:b,text:c}),4);if(f.nextAddress!=2)return d=f.yieldResult,d.matchedPatterns.length>0?(a.matchedPatterns=d.matchedPatterns,a.warningState$.next("SHOW_WARNING"),a.analytics.trackEvent("bannedWords","failBannedWordsCheck",Bs(a)),f.return(!1)):f.return(!0);e=$d(f);rO(a.errorHandler,e);return f.return(!0)})},Bs=function(a){return a.matchedPatterns.join(", ")};
PW.prototype.showWarning=function(){return this.warningState$.value==="SHOW_WARNING"};PW.prototype.reset=function(){this.matchedPatterns=[];this.warningState$.next("INITIAL")};PW.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(PW)))(b||PW)}}();PW.\u0275prov=Dc({token:PW,factory:PW.\u0275fac});var gxd=["issueTitleCellInputEl"],QW=function(){this.appEvents=p(UO);this.issueFullFridge=p(gQ);this.issuePermissionService=p($Q);this.bannedWordsChecker=p(PW);this.savingTitle=!1;this.issue=null;this.isEditMode=this.enableHovercard=this.useButtonToNavigate=!1;this.onCancel=new aQ;this.onSave=new aQ;this.issueNavigated=new aQ;this.title="";this.isDataLoaded=!1;this.link=""};
QW.prototype.ngOnChanges=function(){var a,b;this.title=((a=this.issue)==null?void 0:(b=a.snapshot[0])==null?void 0:b.title)||"";this.isDataLoaded=this.issue!==null;var c,d;this.link=this.getIssueUrl((d=(c=this.issue)==null?void 0:c.issueId)!=null?d:"")};var rhb=function(a,b){b.stopPropagation();var c;if((c=a.issue)==null?0:c.issueId){var d;a.issueNavigated.emit((d=a.issue)==null?void 0:d.issueId)}};QW.prototype.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):qs.viewIssue.makeHref(a)};
var ohb=function(a){var b,c=(b=a.issue)==null?void 0:b.issueId;c!=null&&a.appEvents.didShowIssueHovercard.next(c)},yhb=function(a){var b,c;return y(function(d){if(d.nextAddress==1){if(!a.title||a.savingTitle||((b=a.issue)==null?void 0:b.issueId)==null)return d.return();a.savingTitle=!0;Yd(d,2);return z(d,a.bannedWordsChecker.check(a.title,a.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",a.issue.snapshot[0].componentId),4)}if(d.nextAddress!=2)return c=d.yieldResult,c?z(d,hxd(a),2):(a.issueTitleCellInputEl.nativeElement.focus(),
d.jumpTo(2));Xd(d);a.savingTitle=!1;return Zd(d,0)})},hxd=function(a){return y(function(b){if(b.nextAddress==1)return a.bannedWordsChecker.reset(),Yd(b,2),z(b,fe(fhd(a.issueFullFridge,a.issue.issueId,a.title.trim())),2);Xd(b);a.onSave.emit();return Zd(b,0)})};QW.\u0275fac=function(a){return new (a||QW)};
QW.\u0275cmp=D({type:QW,selectors:[["b-issue-title-cell"]],viewQuery:function(a,b){a&1&&hg(gxd,5);if(a&2){var c;lg(c=mg())&&(b.issueTitleCellInputEl=c.first)}},hostAttrs:[1,"flex-kids-x","line-clamp-3"],hostVars:2,hostBindings:function(a,b){a&2&&wg("isEditMode",b.isEditMode)},inputs:{issue:"issue",issueUrlFactory:"issueUrlFactory",useButtonToNavigate:"useButtonToNavigate",anchorTarget:"anchorTarget",enableHovercard:"enableHovercard",trailingChip:"trailingChip",isEditMode:"isEditMode"},outputs:{onCancel:"onCancel",
onSave:"onSave",issueNavigated:"issueNavigated"},standalone:!1,features:[Gg([PW]),jx],decls:12,vars:9,consts:[["issueHovercard","onedevHovercard"],["editableIssueTitle",""],["issueTitleCellInputEl",""],[1,"title","title-location","gap-s",3,"isReady"],[3,"trackerId","compactMode"],[1,"b-chip","s","margin-s-left",3,"class","matTooltip"],[3,"issueId"],[1,"banned-words-warning","break-word"],[1,"line-clamp-3",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"line-clamp-3"],["mat-icon-button","",
"tabindex","0","matTooltip","Open issue in a new tab","aria-label","Open issue",1,"small","visible-on-row-active","hover-link","pop-out-link",3,"keydown","click","routerLink","target"],["svgIcon","pop-out",1,"icon-s"],[1,"line-clamp-3",3,"onedevHovercardShown","onedevHovercardTrigger","onedevHovercardActive"],[4,"ngTemplateOutlet"],[1,"b-chip","s","margin-s-left",3,"matTooltip"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",
1,"color-bad-text","keep-underline"],[1,"hover-link","line-clamp-3","break-word",3,"routerLink","target","onedevHovercardTrigger","onedevHovercardActive"],["type","text","placeholder","Enter a new title",1,"grow-1",3,"input","ngModelChange","keydown","bFocus","ngModel"],["id","save-button","type","button","mat-stroked-button","","color","primary","format","fill","size","small","title","Change issue title","matTooltip","(Shortcut: Enter)",3,"onAction","disabled"],["id","cancel-button","type","button",
"mat-stroked-button","","format","flat","size","small","title","Cancel","matTooltip","(Shortcut: Esc)",3,"onAction","disabled"],[1,"hover-link","line-clamp-3","break-word",3,"keydown","click","onedevHovercardShown","routerLink","target","onedevHovercardTrigger","onedevHovercardActive"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",3),M(1,"b-tracker-chip-smart",4),F(2,shb,4,3)(3,uhb,1,1,"ng-container"),F(4,vhb,2,7,"span",5),L(),K(5,"onedev-hovercard",null,0),F(7,whb,1,1,"b-issue-card",
6),L(),F(8,xhb,4,1,"p",7),T(9,"async"),E(10,Bhb,2,1,"ng-template",null,1,Mg));if(a&2){var c;I("isReady",b.isDataLoaded);B();I("trackerId",b.issue==null?null:b.issue.trackerId)("compactMode",!0);B();G(b.useButtonToNavigate?2:3);B(2);G((c=b.trailingChip)?4:-1,c);B(3);G(b.enableHovercard&&b.issue?7:-1);B();G(U(9,7,b.bannedWordsChecker.showWarning$)?8:-1)}},dependencies:[oW,Sx,Jy,hF,MU,xW,xj,fE,mE,kB,iB,vK,nA,KK,SK,MW,ZV,Tx],styles:[".title[_ngcontent-%COMP%]{padding-top:7px;padding-bottom:6px;display:flex;flex-direction:row;align-items:center}.isEditMode[_nghost-%COMP%]{margin-left:-10px}.isEditMode[_nghost-%COMP%]   .title[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}a[_ngcontent-%COMP%]{color:inherit}.banned-words-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-text);padding-left:9px}b-async-data-placeholder[_ngcontent-%COMP%]   input[type=text].banned-words-warning[_ngcontent-%COMP%], b-async-data-placeholder[_ngcontent-%COMP%]   input[type=text].banned-words-warning[_ngcontent-%COMP%]:focus, b-async-data-placeholder[_ngcontent-%COMP%]   input[type=text].banned-words-warning[_ngcontent-%COMP%]:focus-within{border-color:#c5221f;border-color:var(--bad-gfx);color:#c5221f;color:var(--bad-text)}"],
changeDetection:0});var RW=function(a,b){this.checker=a;this.document=b};RW.prototype.focusFirstFocusableElement=function(a){(a=ixd(this,a,!0))&&a.focus()};var ixd=function(a,b,c){if((c===void 0||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?ixd(a,b[c]):null;if(d)return d}return null};RW.\u0275fac=function(a){return new (a||RW)(Xc(Qy),Xc(Rh))};RW.\u0275prov=Dc({token:RW,factory:RW.\u0275fac,providedIn:"root"});var SW=function(){this.elementRef=p(Hd);this.interactivityHelper=p(RW)};SW.prototype.ngOnInit=function(){};SW.prototype.focus=function(){this.element.contains(document.activeElement)||this.interactivityHelper.focusFirstFocusableElement(this.element)};da.Object.defineProperties(SW.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});SW.\u0275fac=function(a){return new (a||SW)};
SW.\u0275dir=af({type:SW,selectors:[["tr","row",""]],inputs:{row:"row"},exportAs:["tableRowDirective"],standalone:!1});var TW=function(){};TW.\u0275fac=function(a){return new (a||TW)};TW.\u0275mod=$e({type:TW});TW.\u0275inj=Fc({});var jxd=function(a,b){sz.call(this,a);this.directives=a;this.isEqual=b};Y(jxd,sz);var Ds=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return z(d,fe(a.directives.changes.pipe(xf(a.directives.toArray()),A(function(e){return e.find(function(f){return a.isEqual(f.row,b)})}),ue(Boolean),ve(3E3))),2);c=d.yieldResult;a.setActiveItem(c);ae(d)})};var kxd=new dd("GM2_TABLE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var UW=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};UW.\u0275fac=function(a){return new (a||UW)(Ve(kxd))};UW.\u0275dir=af({type:UW,selectors:[["table","mat-table",""],["mat-table"]],hostAttrs:[1,"gmat-mdc-table"],standalone:!1});var lxd=["componentSearchMenuTrigger"],mxd=["searchInput"],nxd={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1},oxd={SIMILAR_ISSUES:"Similar issues",SEARCH_RESULTS:"Search results",SEMANTIC_SEARCH_RESULTS:"Semantic search results",ISSUE_IDS:"Issue IDs"},pxd={},qxd=(pxd["Similar issues"]="similar",pxd["Search results"]="exact",pxd["Semantic search results"]="semantic",pxd["Issue IDs"]="id",pxd),rxd={SEMANTIC_SEARCH:"Smart search",EXACT_MATCH:"Exact match"},VW=function(){Z.apply(this,
arguments);var a=this;this.dialogRef=p(RA);this.initialData=p(TA);this.issueFullFridge=p(gQ);this.issuePickerSearchService=p(nW);this.analytics=p(eQ);this.activeSession=p(uu);this.componentFridge=p(RO);this.teamFridge=p(TQ);this.domSafe=p(mR);this.elRef=p(Hd);this.focusTrapFactory=p(kz);this.userPreferencesManager=p(hR);this.enrichmentApi=p(zO);this.issueUserEventsService=p(lW);this.destroyRef=p(Ce);this.enableExpandedScopeIssuePicker=this.activeSession.getFlag("enableExpandedScopeIssuePicker");this.EnrichmentFeedbackType=
lbd;this.isInternalSession=this.activeSession.isInternalSession();this.data=Object.assign({},nxd,this.initialData);var b;this.currentComponentId=(b=this.data.componentId)!=null?b:void 0;this.currentIssueId$=ne(function(){var d;return((d=a.data.currentResource)==null?void 0:d.type)==="issue"?ce(a.data.currentResource.id):rx});this.currentIssue$=this.currentIssueId$.pipe(yf(function(d){return a.issueFullFridge.watch(d)}),vf({bufferSize:1,refCount:!0}));this.team$=this.currentIssue$.pipe(yf(function(d){var e,
f;return(d==null?0:(e=d.aggregatedData)==null?0:e.teamId)?a.teamFridge.watch(d==null?void 0:(f=d.aggregatedData)==null?void 0:f.teamId):ce(void 0)}),vf({bufferSize:1,refCount:!0}));this.DEFAULT_PREFERENCES={open:!0,searchScope:"COMPONENT",componentScope:this.currentComponentId,includeDescendants:!1};this.assistiveIssuePickerPreferences$=this.userPreferencesManager.preferences$.pipe(A(function(d){var e,f;return(f=a.currentComponentId?d==null?void 0:(e=d.assistiveIssuePickerPreferences)==null?void 0:
e.get(a.currentComponentId):void 0)!=null?f:a.DEFAULT_PREFERENCES}));this.hasCustomPreferences$=this.userPreferencesManager.preferences$.pipe(A(function(d){if(!a.currentComponentId)return!1;var e;return(d=d==null?void 0:(e=d.assistiveIssuePickerPreferences)==null?void 0:e.get(a.currentComponentId))?!mm(d,a.DEFAULT_PREFERENCES):!1}),nf(),vf({bufferSize:1,refCount:!0}));this.showFiltersSubject=new Mj(!1);this.showFilters$=this.showFiltersSubject.asObservable();var c;this.originIsBulk=(c=this.data.originIsBulk)!=
null?c:!1;this.openFilterEnabled$=this.assistiveIssuePickerPreferences$.pipe(A(function(d){return d.open}));this.selectedScope$=this.assistiveIssuePickerPreferences$.pipe(A(function(d){return d.searchScope}));this.includeDescendants$=this.assistiveIssuePickerPreferences$.pipe(A(function(d){return d.includeDescendants}));this.component$=this.assistiveIssuePickerPreferences$.pipe(yf(function(d){return d.componentScope?a.componentFridge.watch(d.componentScope):ce(void 0)}));this.selectedIssues=new aR;
this.tableColumns="single-selection title id priority status duplicateCount votes createdTime".split(" ");this.issueUrlFactory=qs.viewIssue.makeHref;this.trackByIssueId=function(d,e){return e.issueId};this.searchText$=new Mj("");this.searchTextTrimmed$=this.searchText$.pipe(A(function(d){return d.trim()}),nf());this.idsInSearchText$=this.searchTextTrimmed$.pipe(A(w7a),A(tq),A(function(d){return d.filter(function(e){return e.length>=4})}),nf(mm));this.issuesWithIdMatches$=this.idsInSearchText$.pipe(yf(function(d){return a.issueFullFridge.watchSet(d)}),
Af(function(){a.isLoading=!1}),vf({bufferSize:1,refCount:!0}));this.openFilter=WR;this.teamFilter=this.componentFilter=void 0;this.defaultChoices$=this.issueFullFridge.watchSet(this.data.defaultChoices.map(function(d){return d.resourceId})).pipe(ue(Pm));this.selectedFilters$=new aR([]);this.similarIssues$=ie([this.currentIssueId$,this.selectedFilters$.value$,this.searchTextTrimmed$,this.showFilters$]).pipe(jf(0,Dr),ue(function(d){d=m(d);d.next();d.next();return d.next().value===""&&a.data.defaultChoices.length===
0}),Af(function(){a.isLoading=!0}),yf(function(d){var e=m(d);d=e.next().value;var f=e.next().value;e.next();return e.next().value?zvd(a.issuePickerSearchService,d,f):zvd(a.issuePickerSearchService,d,void 0,!0)}),Af(function(){a.isLoading=!1}),vf({bufferSize:1,refCount:!0}));this.SearchSource=rxd;this.selectedSearchSource$=new Mj("Smart search");this.searchResults$=ie([this.searchTextTrimmed$.pipe(Af(function(){a.isLoading=!0}),jf(200)),this.selectedFilters$.value$.pipe(Af(function(){a.isLoading=!0})),
this.selectedSearchSource$]).pipe(yf(function(d){var e=m(d);d=e.next().value;var f=e.next().value;return e.next().value==="Smart search"?(a.analytics.trackEvent("assistive-issue-picker","semantic-search-"+a.data.edgeType),Bvd(a.issuePickerSearchService,d,f,a.data.edgeType,a.data.currentResource)):a.issuePickerSearchService.search(d,a.data.edgeType,a.data.currentResource,a.currentComponentId)}),Af(function(){a.isLoading=!1}),vf({bufferSize:1,refCount:!0}));this.idsToAutoSelect$=this.issuesWithIdMatches$.pipe(A(function(d){return d.length!==
1?[]:[d[0].issueId]}),nf(mm),Af(function(d){d.length===0&&(a.isPasteResultInSuggestion=!1);var e,f=(e=Ar(a.similarIssues$))!=null?e:[];a.isPasteResultInSuggestion=f.map(function(g){return g.issueId}).includes(d[0])}),vf({bufferSize:1,refCount:!0}));this.TableDataSource=oxd;this.tableDataSource="Search results";this.issues$=ie([this.searchTextTrimmed$,this.issuesWithIdMatches$,this.similarIssues$.pipe(xf([])),this.selectedSearchSource$,this.defaultChoices$]).pipe(yf(function(d){var e=m(d);d=e.next().value;
var f=e.next().value;var g=e.next().value;var k=e.next().value;e=e.next().value;return f.length===1?(a.tableDataSource="Issue IDs",a.issuesWithIdMatches$):d?(a.tableDataSource=k==="Smart search"?"Semantic search results":"Search results",a.searchResults$):e&&e.length>0?(a.tableDataSource="Similar issues",a.defaultChoices$):g?(g.length>0&&(a.tableDataSource="Similar issues"),a.similarIssues$):ce(void 0)}),nf());this.correctedDisplayedRows=new gg;this.isPasteResultInSuggestion=this.isLoading=!1};
Y(VW,Z);VW.\u0275dir=Z.\u0275dir;VW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.idsToAutoSelect$.subscribe(function(b){a.selectedIssues.reset(b)}));this.subscriptions.add(this.hasCustomPreferences$.pipe(pf()).subscribe(function(b){a.showFiltersSubject.next(!a.enableExpandedScopeIssuePicker||b)}));this.data.edgeType==="canonical"&&this.subscriptions.add(Evd(this.issuePickerSearchService,this.currentComponentId).subscribe());sxd(this)};
var sxd=function(a){var b,c,d,e,f,g,k,l,r,w,x,C,H;y(function(J){if(J.nextAddress==1)return b=m,z(J,Promise.all([fe(a.openFilterEnabled$),fe(a.component$),fe(a.team$),fe(a.selectedScope$),fe(a.includeDescendants$)]),2);c=b(J.yieldResult);d=c.next().value;e=c.next().value;f=c.next().value;g=c.next().value;k=c.next().value;l=d;r=e;w=f;x=g;C=k;l&&a.selectedFilters$.add(a.openFilter);if(r){a.componentFilter=P6a(r,C);if(H=x==="COMPONENT"||x==="UNSPECIFIED")a.selectedScopeFilter=a.componentFilter,a.selectedFilters$.add(a.componentFilter);
a.selectedComponent=r}w&&(a.teamFilter=O6a(w,C),x==="TEAM"&&(a.selectedScopeFilter=a.teamFilter,a.selectedFilters$.add(a.teamFilter)));ae(J)})};VW.prototype.ngAfterViewInit=function(){this.focusManager=pz(new jxd(this.correctedDisplayedRows,function(a,b){return a.issueId===b.issueId}));this.trapFocus()};VW.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);var a;(a=this.focusTrap)==null||a.destroy()};
VW.prototype.openFilterChanged=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return a?b.selectedFilters$.add(WR):b.selectedFilters$.delete(WR),z(d,fe(b.assistiveIssuePickerPreferences$),2);c=d.yieldResult;return z(d,txd(b,Object.assign({},c,{open:a!==void 0})),0)})};
var txd=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return z(d,fe(a.userPreferencesManager.preferences$.pipe(A(function(e){return new Map(e.assistiveIssuePickerPreferences)}))),2);c=d.yieldResult;a.currentComponentId&&(c.set(a.currentComponentId,b),a.subscriptions.add(a.userPreferencesManager.save({assistiveIssuePickerPreferences:c}).subscribe()));ae(d)})},Lhb=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1){if(!a.componentFilter||!a.teamFilter||a.selectedScopeFilter===
b)return f.return();a.selectedScopeFilter=b;c=new Set(a.selectedFilters$.value);(d=b===a.componentFilter)?(c.add(a.componentFilter),c.delete(a.teamFilter)):(c.add(a.teamFilter),c.delete(a.componentFilter));a.selectedFilters$.reset(c);return z(f,fe(a.assistiveIssuePickerPreferences$),2)}e=f.yieldResult;return z(f,txd(a,Object.assign({},e,{searchScope:d?"COMPONENT":"TEAM"})),0)})},Thb=function(a){var b,c,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:return z(l,fe(a.includeDescendants$),
2);case 2:return b=!l.yieldResult,z(l,fe(a.assistiveIssuePickerPreferences$),3);case 3:return c=l.yieldResult,z(l,txd(a,Object.assign({},c,{includeDescendants:b})),4);case 4:return z(l,fe(a.component$),5);case 5:return d=l.yieldResult,z(l,fe(a.team$),6);case 6:e=l.yieldResult;if(!d)return l.return();f=P6a(d,b);g=new Set(a.selectedFilters$.value);if(!a.componentFilter)return l.return();g.has(a.componentFilter)&&(g.delete(a.componentFilter),g.add(f),a.selectedScopeFilter=f);a.componentFilter=f;e&&(k=
O6a(e,b),a.teamFilter&&g.has(a.teamFilter)&&(g.delete(a.teamFilter),g.add(k),a.selectedScopeFilter=k),a.teamFilter=k);a.selectedFilters$.reset(g);ae(l)}})},wib=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return z(e,os(0),2);c=new Map(a.displayedRows.toArray().map(function(f){return[f.row.issueId,f]}));d=b.map(function(f){return c.get(f.issueId)}).filter(Pm);a.correctedDisplayedRows.reset(d);kg(a.correctedDisplayedRows);ae(e)})};
VW.prototype.onPressConfirm=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1){if(!a.selectedIssues.size)return d.return();b=[].concat(q(a.selectedIssues));c={selectedIssueIds:b};a.dialogRef.close(c);return z(d,uxd(a,b[0]),2)}return z(d,vxd(a,b[0]),0)})};VW.prototype.onPressCancel=function(){this.dialogRef.close()};VW.prototype.selectIssue=function(a){this.selectedIssues.reset([a])};
VW.prototype.onRowKeydown=function(a,b,c){if(a===0&&c.key==="ArrowUp")this.inputEl.nativeElement.focus(),c.preventDefault();else this.focusManager.onKeydown(c)};
var Phb=function(a,b){var c,d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:a.trigger.closeMenu();if(!a.componentFilter)return r.return();if(c=!b){r.jumpTo(2);break}return z(r,fe(a.component$),3);case 3:c=r.yieldResult===b;case 2:if(c)return r.return();d=P6a;e=b;return z(r,fe(a.includeDescendants$),4);case 4:return f=d(e,r.yieldResult),a.selectedScopeFilter=f,z(r,fe(a.assistiveIssuePickerPreferences$),5);case 5:return g=r.yieldResult,z(r,txd(a,Object.assign({},g,{componentScope:b.componentId})),
6);case 6:return k=Set,z(r,fe(a.selectedFilters$.value$),7);case 7:l=new k(r.yieldResult),l.delete(a.componentFilter),l.add(f),a.componentFilter=f,a.selectedFilters$.reset(l),a.analytics.trackEvent("assistive-issue-picker","component-scope-changed","component-id: "+b.componentId),ae(r)}})},Hhb=function(a){return y(function(b){if(b.nextAddress==1)return z(b,fe(a.component$),2);a.selectedComponent=b.yieldResult;ae(b)})},vxd=function(a,b){var c,d,e,f,g,k,l;return y(function(r){if(r.nextAddress==1)return a.data.edgeType!==
"canonical"?r.return():z(r,fe(a.issueFullFridge.watch(b)),2);if(r.nextAddress!=3)return(c=r.yieldResult)?z(r,wxd(a,b),3):r.return();d=r.yieldResult;e=qxd[a.tableDataSource];a.analytics.trackEvent("assistive-issue-picker","picked-c-canonical",d?e+"-hit":e+"-miss",d?1:0);a.analytics.trackEvent("assistive-issue-picker","picked-canonical","dupe-count",(g=(f=c.snapshot[0].duplicateIssueId)==null?void 0:f.length)!=null?g:0);a.analytics.trackEvent("assistive-issue-picker","picked-canonical","plus-one-count",
(l=(k=c.aggregatedData)==null?void 0:k.voteCount)!=null?l:0);ae(r)})};VW.prototype.trapFocus=function(){this.focusTrap=this.focusTrapFactory.create(this.elRef.nativeElement);nCc(this.focusTrap)};
var uxd=function(a,b){var c,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:return z(l,fe(a.similarIssues$),2);case 2:d=(c=l.yieldResult)!=null?c:[];e=d.find(function(r){return r.issueId===b});f=!!e;g=qxd[a.tableDataSource];if(d.length===0){a.analytics.trackEvent("assistive-issue-picker","empty-hit-rate-"+a.data.edgeType,g+"-empty");l.jumpTo(0);break}a.analytics.trackEvent("assistive-issue-picker","hit-rate-"+a.data.edgeType,f?g+"-hit":g+"-miss",f?1:0);if(!f){l.jumpTo(0);break}if(a.tableDataSource!==
"Similar issues"){l.jumpTo(5);break}return z(l,fe(a.currentIssueId$),6);case 6:k=l.yieldResult,a.enrichmentApi.submitEnrichmentFeedback({issueId:String(k),category:"Buganizer",feedbackType:"CLOSE_AS_DUPLICATE"}).pipe(Tj(a.destroyRef)).subscribe(),a.issueUserEventsService.logIssueUserEvent(k,"FEATURE_SIMILAR_ISSUES","EVENT_TYPE_CLOSE_AS_DUPLICATE").pipe(Tj(a.destroyRef)).subscribe();case 5:a.analytics.trackEvent("assistive-issue-picker","picked-"+a.data.edgeType,"suggestion-rank",d.indexOf(e)+1),e.score&&
a.analytics.trackEvent("assistive-issue-picker","picked-"+a.data.edgeType,"suggestion-score",e.score),ae(l)}})},wxd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1){if(a.data.edgeType!=="canonical")return e.return(!1);c=Set;return z(e,fe(Evd(a.issuePickerSearchService,a.currentComponentId)),2)}d=new c(e.yieldResult);return e.return(d.has(b))})};VW.prototype.openLearnMore=function(){this.domSafe.openInNewTab("http://go/b-mark-as-duplicate")};
var Jhb=function(a){return a.startsWith("Component:")?"Component":a};VW.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(VW)))(b||VW)}}();
VW.\u0275cmp=D({type:VW,selectors:[["assistive-issue-picker-dialog"]],viewQuery:function(a,b){a&1&&(hg(lxd,5),hg(mxd,5),hg(SW,5));if(a&2){var c;lg(c=mg())&&(b.trigger=c.first);lg(c=mg())&&(b.inputEl=c.first);lg(c=mg())&&(b.displayedRows=c)}},hostBindings:function(a,b){a&1&&N("keydown.control.enter",function(){return b.onPressConfirm()})("keydown.meta.enter",function(){return b.onPressConfirm()})},standalone:!1,features:[Ef],decls:29,vars:21,consts:[["searchInput",""],["teamComponentMenu","matMenu"],
["componentSearchMenu","matMenu"],["menuTrigger","matMenuTrigger"],["componentSearchMenuTrigger","matMenuTrigger"],["mat-dialog-title",""],[1,"heading","flex-kids-x","gap-xxs","align-items-center","padded-s-y","heading-m"],["svgIcon","merge_type_24px",1,"rotate-180","green"],[1,"search-field","margin-s-bottom","flex-kids-x","align-items-center","heading-xs"],["cdkFocusInitial","","placeholder","Search by title, contents, or id",3,"keydown.arrowdown","input","keydown.enter"],[1,"padded-s",3,"selectionChange",
"value"],["matTooltip","Searches by semantic similarity of the query. Does not support search atoms (like 'status:open')","matTooltipPosition","left",3,"value"],["matTooltip","Searches by the exact query text. Supports search atoms (like 'status:open')","matTooltipPosition","left",3,"value"],[1,"flex-kids-x","align-items-center","margin-s-bottom","gap-s"],[1,"center-text","padded","margined","pos-rel"],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",
"cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","confirm",3,"click","disabled"],[1,"heading","flex-kids-y","gap-s","border-bottom","padded-bottom","margin-s-bottom"],[1,"type-xs"],[1,"heading-s","line-clamp-3"],["svgIcon","search_spark_24px",1,"icon-m"],["svgIcon","search",1,"icon-m"],["aria-label","Filter open issues",3,"change"],["appearance","hairline-filter",1,"open-filter-chip",3,"selected","value"],[3,"matTooltip"],["xPosition","before"],["matMenuContent",
""],["xPosition","after"],["aria-label","Include subcomponents or subteams",3,"change"],["appearance","hairline-filter",1,"include-descendants-chip",3,"selected"],["matTooltip","Include subcomponents or subteams"],["type","button","mat-button","",1,"component-picker-action-buttons","toggle-filters",3,"click"],"type;button;mat-icon-button;;matTooltip;Learn more;aria-label;help".split(";"),["aria-label","Scope search to component or team",3,"selectable"],["appearance","hairline-filter","aria-label",
"Select search scope","matTooltip","Select Component or Team scope","selected","","color","primary","role","button",1,"team-component-filters",3,"keydown.enter","keyup.space","matMenuTriggerFor"],["matChipTrailingIcon","","svgIcon","arrow-dropdown",1,"dropdown-icon"],["aria-label","Scope search to component",3,"selectable"],["appearance","hairline-filter","aria-label","Select search scope","matTooltip","Search for a component","selected","","color","primary","role","button",1,"component-search-filter",
3,"keydown.enter","keyup.space","menuOpened","matMenuTriggerFor"],["type","button","mat-menu-item","","matTooltipPosition","right",1,"component-filter",3,"matTooltip"],["type","button","mat-menu-item","","matTooltipPosition","right",1,"team-filter",3,"matTooltip"],["type","button","mat-menu-item","","matTooltipPosition","right",1,"component-filter",3,"click","matTooltip"],["svgIcon","done"],["type","button","mat-menu-item","","matTooltipPosition","right",1,"team-filter",3,"click","matTooltip"],[3,
"click","keydown.tab","keydown.shift.tab"],[1,"component-search-menu-item"],["tabindex","0",3,"selectedComponentChange","selectedComponent","placeholder","shouldFocus","isRequired"],[1,"component-picker-action-buttons"],["type","button","mat-button","","color","primary",1,"choose-picker-button","small",3,"click","disabled"],["type","button","mat-button","","color","primary",1,"cancel-picker-button","small",3,"click"],["type","button","mat-icon-button","","matTooltip","Learn more","aria-label","help",
3,"click"],["svgIcon","help-outline"],["text","Finding similar issues...",3,"large"],["text","Searching..."],["ariaLabel","Loading results",1,"margined","inline-block"],["messageType","info","iconOverride","lightbulb_24px"],[1,"heading-xs"],["mat-table","",1,"full-width",3,"dataSource","trackBy"],[1,"center-text","padded"],["href","http://go/b-mark-as-duplicate","target","\u201d_blank\u201d"],["svgIcon","spark_24px","color","primary",1,"valign-middle"],["mat-table","",1,"full-width",3,"contentChanged",
"dataSource","trackBy"],["matColumnDef","single-selection"],["mat-header-cell","",4,"matHeaderCellDef"],["aria-label","Select issue",3,"change"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","id"],["matColumnDef","priority"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","status",4,"matHeaderCellDef"],["matColumnDef","duplicateCount"],["mat-cell","","class","center-text",4,"matCellDef"],["matColumnDef","votes"],["mat-header-cell","","matTooltip","Votes",
4,"matHeaderCellDef"],["matColumnDef","createdTime"],["mat-header-cell","","mat-sort-header","createdTime",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"row","keydown","keydown.enter","focusin","click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[1,"a11y-only"],["mat-cell",""],["tabindex","0",3,"checked","aria-label","value"],["anchorTarget","_blank",3,"issue","issueUrlFactory","useButtonToNavigate","enableHovercard"],[3,"id"],[3,
"issue"],["mat-header-cell","","mat-sort-header","status"],["mat-cell","",1,"center-text"],["mat-header-cell","","matTooltip","Votes"],["svgIcon","exposure_plus_1_24px",1,"icon-xs"],["mat-header-cell","","mat-sort-header","createdTime"],["mode","relativepastshort",3,"issue"],["mat-header-row",""],["mat-row","",1,"clickable",3,"keydown","keydown.enter","focusin","click","row"],[1,"margined","inline-block"]],template:function(a,b){if(a&1){var c=t();K(0,"div",5);F(1,Dhb,2,3);K(2,"div",6);M(3,"mat-icon",
7);K(4,"span");Q(5,"Close as duplicate of:");L()();K(6,"header",8);F(7,Ghb,2,1);T(8,"async");K(9,"input",9,0);N("keydown.arrowdown",function(){u(c);return v(b.focusManager.setActiveItem(0))})("input",function(){u(c);var f=qg(10);return v(b.searchText$.next(f.value))})("keydown.enter",function(){u(c);return v(b.onPressConfirm())});L();K(11,"mat-select",10);T(12,"async");N("selectionChange",function(f){u(c);b.selectedSearchSource$.next(f.value);return v()});K(13,"mat-option",11);Q(14);L();K(15,"mat-option",
12);Q(16);L()()();F(17,Whb,2,3);T(18,"async");Kf(19,Yhb,4,1,"div",13);L();F(20,bib,5,3,"div",14);F(21,zib,5,4,"div",15);T(22,"async");K(23,"div",16)(24,"button",17);N("click",function(){u(c);return v(b.onPressCancel())});Q(25," Cancel ");L();K(26,"button",18);T(27,"async");N("click",function(){u(c);return v(b.onPressConfirm())});Q(28," Close as duplicate ");L()()}if(a&2){var d,e;B();G(b.originIsBulk?-1:1);B(6);G((d=U(8,11,b.selectedSearchSource$))?7:-1,d);B(4);I("value",U(12,13,b.selectedSearchSource$));
B(2);I("value",b.SearchSource.SEMANTIC_SEARCH);B();S(" ",b.SearchSource.SEMANTIC_SEARCH," ");B();I("value",b.SearchSource.EXACT_MATCH);B();S(" ",b.SearchSource.EXACT_MATCH," ");B();G(U(18,15,b.showFilters$)?17:19);B(3);G(b.isLoading?20:-1);B();G((e=U(22,17,b.issues$))?21:-1,e);B(5);I("disabled",!U(27,19,b.selectedIssues.size$))}},dependencies:[Jy,UK,bL,aL,$K,pW,uW,Ivd,wW,QW,kB,gB,iB,XA,ZA,YA,VJ,fH,dH,eH,iH,tT,uT,yU,TH,hA,UW,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,vK,nA,xrd,cU,SW,DU,EU,dW,Tx],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.mat-mdc-dialog-title[_ngcontent-%COMP%]{margin:0}.heading[_ngcontent-%COMP%]{padding-left:4px}.mat-mdc-menu-item[_ngcontent-%COMP%]{height:auto}.search-field[_ngcontent-%COMP%]{position:relative}.search-field[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{position:absolute;top:9px;left:5px}.search-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:40px;width:100%;min-width:320px;background-color:#f1f3f4;background-color:var(--main-search-bg);color:#202124;color:var(--text-high-contrast);border-radius:8px;border:none;padding:0 16px;padding-left:40px;padding-right:140px}.search-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus-visible{box-shadow:inset 0 0 0 2px #1a73e8;box-shadow:inset 0 0 0 2px var(--primary);outline:none}.search-field[_ngcontent-%COMP%]   mat-select[_ngcontent-%COMP%]{position:absolute;right:8px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-radius:8px}.search-field[_ngcontent-%COMP%]   mat-select[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.search-field[_ngcontent-%COMP%]   mat-select[_ngcontent-%COMP%]:focus-visible{box-shadow:inset 0 0 0 2px #1a73e8;box-shadow:inset 0 0 0 2px var(--primary);outline:none}[_nghost-%COMP%]     .mat-mdc-select-arrow, [_nghost-%COMP%]     .mat-mdc-select-value{color:#1a73e8;color:var(--primary)}@media (forced-colors:active){[_nghost-%COMP%]   .mat-mdc-dialog-actions[_ngcontent-%COMP%]   -shadowcsshost     button.gmat-mdc-button{border:1px solid;border-color:#dadce0;border-color:var(--divider)}[_nghost-%COMP%]   .mat-mdc-dialog-actions[_ngcontent-%COMP%]   -shadowcsshost     button.gmat-mdc-button:focus{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}}[_nghost-%COMP%]   .mat-mdc-dialog-actions[_ngcontent-%COMP%]   -shadowcsshost     button.gmat-mdc-button:not([disabled]):focus{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color;border-radius:2px;outline-offset:3px}.mat-mdc-table[_ngcontent-%COMP%]{background-color:inherit;margin:4px 0}.mat-mdc-table[_ngcontent-%COMP%]   .mat-column-title[_ngcontent-%COMP%]{min-width:250px;max-width:24vw}.mat-mdc-table[_ngcontent-%COMP%]   .mat-column-id[_ngcontent-%COMP%]{margin-right:-8px}.mat-mdc-table[_ngcontent-%COMP%]   .mat-column-single-selection[_ngcontent-%COMP%]{padding-left:6px}.mat-mdc-table[_ngcontent-%COMP%]   .mat-column-votes[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:5px}.component-search-menu-item[_ngcontent-%COMP%]{padding:0 5px}.component-picker-action-buttons[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding:5px}.dropdown-icon[_ngcontent-%COMP%]{cursor:pointer}\n/*# sourceMappingURL=assistive_issue_picker_dialog.css.map */"],
changeDetection:0});var xxd=function(){this.enrichmentCategoryFridge=p(wP);this.enrichmentCategoryNames=[]},Dib=function(a,b){return b==="Buganizer"?ce({enableHovercard:!1,displayName:b,description:""}):a.enrichmentCategoryFridge.watch(b).pipe(A(function(c){var d,e;return{enableHovercard:!0,displayName:(d=c==null?void 0:c.displayName)!=null?d:b,description:(e=c==null?void 0:c.description)!=null?e:""}}),xf({enableHovercard:!0,displayName:b,description:""}))};xxd.\u0275fac=function(a){return new (a||xxd)};
xxd.\u0275cmp=D({type:xxd,selectors:[["b-enrichment-categories-cell"]],inputs:{enrichmentCategoryNames:"enrichmentCategoryNames"},standalone:!1,decls:2,vars:0,consts:[["categoryInfoCard","onedevHovercard"],["role","button",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"]],template:function(a,b){a&1&&Nf(0,Eib,2,3,null,null,Mf);a&2&&Of(b.enrichmentCategoryNames)},dependencies:[KK,SK,Tx],encapsulation:2,changeDetection:0});var yxd=function(){this.expandable=this.issue=null;this.expanded=!1;this.level=0;this.isEditMode=!1;this.onSaveOutput=new aQ;this.onCancelOutput=new aQ;this.expansionChange=new aQ;this.title=""};yxd.prototype.ngOnChanges=function(){var a,b;this.title=((a=this.issue)==null?void 0:(b=a.snapshot[0])==null?void 0:b.title)||""};yxd.\u0275fac=function(a){return new (a||yxd)};
yxd.\u0275cmp=D({type:yxd,selectors:[["b-expandable-issue-title-cell"]],viewQuery:function(a,b){a&1&&hg(QW,7);if(a&2){var c;lg(c=mg())&&(b.issueTitleCell=c.first)}},inputs:{issue:"issue",expandable:"expandable",expanded:"expanded",level:"level",isEditMode:"isEditMode"},outputs:{onSaveOutput:"onSaveOutput",onCancelOutput:"onCancelOutput",expansionChange:"expansionChange"},standalone:!1,features:[jx],decls:4,vars:5,consts:[[1,"flex-kids-x","align-items-center"],["type","button","mat-icon-button","",
1,"medium","expander",3,"collapsed"],[1,"leaf"],[1,"grow-1",3,"onSave","onCancel","issue","isEditMode"],["type","button","mat-icon-button","",1,"medium","expander",3,"click"],["name","arrow-dropdown","size","small"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,Fib,2,3,"button",1)(2,Gib,1,0,"div",2),K(3,"b-issue-title-cell",3),N("onSave",function(){return b.onSaveOutput.emit()})("onCancel",function(){return b.onCancelOutput.emit()}),L()());a&2&&(vg("margin-left",b.level*24,"px"),B(),G(b.expandable?
1:2),B(2),I("issue",b.issue)("isEditMode",b.isEditMode))},dependencies:[kB,iB,sT,QW],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 WW=function(){this.tooltip=this.displayText=this.chipColor=""};WW.\u0275fac=function(a){return new (a||WW)};
WW.\u0275cmp=D({type:WW,selectors:[["b-signal-chip"]],inputs:{chipColor:"chipColor",icon:"icon",displayText:"displayText",tooltip:"tooltip"},decls:3,vars:6,consts:[["role","button","tabindex","0",3,"matTooltip"],[1,"vertical-centered","icon-s",3,"svgIcon"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,Hib,1,1,"mat-icon",1),Q(2),L());a&2&&(xg("signal-chip type-button "+b.chipColor),I("matTooltip",b.tooltip),If("aria-label",b.tooltip),B(),G(b.icon?1:-1),B(),S(" ",b.displayText,"\n"))},dependencies:[vK,
nA,Jy],styles:[".signal-chip[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);padding:2px 12px;border-radius:32px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;text-align:center;white-space:nowrap}.signal-chip.blue[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg);border:1px solid;border-color:#185abc;border-color:var(--blue-text);color:#185abc;color:var(--blue-text)}.signal-chip.green[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg);border:1px solid;border-color:#137333;border-color:var(--green-text);color:#137333;color:var(--green-text)}.signal-chip.orange[_ngcontent-%COMP%]{background-color:#fff3e9;background-color:var(--orange-bg);border:1px solid;border-color:#bd4800;border-color:var(--orange-text);color:#bd4800;color:var(--orange-text)}.signal-chip.pink[_ngcontent-%COMP%]{background-color:#fff2f9;background-color:var(--pink-bg);border:1px solid;border-color:#d01884;border-color:var(--pink-text);color:#d01884;color:var(--pink-text)}.signal-chip.purple[_ngcontent-%COMP%]{background-color:#f9f3ff;background-color:var(--purple-bg);border:1px solid;border-color:#9334e6;border-color:var(--purple-text);color:#9334e6;color:var(--purple-text)}.signal-chip.red[_ngcontent-%COMP%]{background-color:#fff2f1;background-color:var(--red-bg);border:1px solid;border-color:#d42521;border-color:var(--red-text);color:#d42521;color:var(--red-text)}"],
changeDetection:0});var XW=function(){this.issueService=p(SP);this.issueExperimentalFieldsFridge=p(UP);this.isDataLoaded=!1;this.alerts=[]};XW.prototype.ngOnInit=function(){};var Jib=function(a){return a.alerts.filter(function(b){return K6a(a.issue,b)})};
XW.prototype.dismissAlert=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.issue.issueId?z(c,fe(a.issueExperimentalFieldsFridge.watch(a.issue.issueId)),2):c.return();b=c.yieldResult;if(!b)return c.return();b.triage.dismissed={seconds:Date.now()/1E3,nanos:0};return z(c,zgd(a.issueService,b),0)})};XW.\u0275fac=function(a){return new (a||XW)};
XW.\u0275cmp=D({type:XW,selectors:[["b-issue-alerts-cell"]],inputs:{issue:"issue",alerts:"alerts"},standalone:!1,decls:6,vars:3,consts:[["tooltipTemplate",""],[1,"chip-container","flex-kids-x","gap-xs","align-items-center"],[1,"truncated-alerts-chip",3,"xapInlineDialog"],[3,"chipColor","displayText","tooltip"],["type","button","mat-icon-button","","ariaLabel","Dismiss","matTooltip","Dismiss this alert",1,"xs",3,"click","mousedown"],["svgIcon","issue-status-wont-fix","color","primary",1,"dismiss-icon"],
[1,"tooltip-chip-container","flex-kids-x"],["svgIcon","issue-status-wont-fix","color","primary",1,"tooltip-dismiss-icon"]],template:function(a,b){a&1&&(K(0,"div",1),Zf(1),F(2,Iib,3,3),F(3,Kib,2,2,"div",2),L(),E(4,Mib,4,0,"ng-template",null,0,Mg));a&2&&(B(),a=$f(Jib(b)[0]),B(),G(a?2:-1),B(),G(Jib(b).slice(1).length?3:-1))},dependencies:[Jy,kB,iB,vK,nA,WW,bB,aB,hL],styles:["b-signal-chip[_ngcontent-%COMP%]:not(:last-of-type){margin-right:8px}.dismiss-icon[_ngcontent-%COMP%]{opacity:0;margin-bottom:1px}.dismiss-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .dismiss-icon[_ngcontent-%COMP%]{opacity:1;color:#1a73e8;color:var(--primary);background-color:unset}.truncated-alerts-chip[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);padding:2px 12px;border-radius:32px;width:fit-content;text-align:center;white-space:nowrap}.tooltip-chip-container[_ngcontent-%COMP%]{margin-right:8px;margin-bottom:8px}.tooltip-chip-container[_ngcontent-%COMP%]   b-signal-chip[_ngcontent-%COMP%]{margin-right:8px}.tooltip-dismiss-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--primary)}"],
changeDetection:0});var YW=function(){this.issue=null;this.isDataLoaded=!1};YW.prototype.ngOnChanges=function(){var a;this.assignee=M$a(wm((a=this.issue)==null?void 0:a.snapshot[0].assigneeUser)||void 0);this.isDataLoaded=this.issue!==null};YW.\u0275fac=function(a){return new (a||YW)};
YW.\u0275cmp=D({type:YW,selectors:[["b-issue-assignee-cell"]],inputs:{issue:"issue"},standalone:!1,features:[jx],decls:2,vars:2,consts:[[3,"isReady"],[3,"email"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Nib,2,2,"b-person-hovercard",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.assignee?1:-1))},dependencies:[oW,gT],encapsulation:2,changeDetection:0});var ZW=function(){this.issue=null;this.componentId=this.teamId="";this.isDataLoaded=!1};ZW.prototype.ngOnChanges=function(){var a,b,c;this.teamId=((a=this.issue)==null?void 0:(b=a.aggregatedData)==null?void 0:(c=b.teamId)==null?void 0:c.toString())||"";var d,e;this.componentId=String((d=this.issue)==null?void 0:(e=d.snapshot[0])==null?void 0:e.componentId)||"";this.isDataLoaded=this.issue!==null};ZW.\u0275fac=function(a){return new (a||ZW)};
ZW.\u0275cmp=D({type:ZW,selectors:[["b-issue-team-cell"]],inputs:{issue:"issue"},standalone:!1,features:[jx],decls:2,vars:2,consts:[[3,"isReady"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Oib,1,3,"b-team-display",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.teamId?1:-1))},dependencies:[oW,CV],encapsulation:2,changeDetection:0});var $W=function(){this.activeSession=p(uu);this.issueExperimentalFieldsFridge=p(UP);this.analytics=p(eQ)};$W.prototype.ngOnInit=function(){};$W.prototype.claim=function(){var a=this;this.issueExperimentalFieldsFridge.updateOrInsert(this.issue.issueId,function(b){b.triage.triagerEmail=a.activeSession.getUserEmail()});this.analytics.trackEvent("triageIssue","claim")};$W.\u0275fac=function(a){return new (a||$W)};
$W.\u0275cmp=D({type:$W,selectors:[["b-issue-triager-cell"]],inputs:{issue:"issue"},standalone:!1,decls:2,vars:1,consts:[["size","medium",1,"align-with-btn",3,"email"],["type","button","mat-button","",1,"gmat-button","small","align-with-hr"],["type","button","mat-button","",1,"gmat-button","small","align-with-hr",3,"click","mousedown"]],template:function(a,b){a&1&&F(0,Pib,1,1,"b-user-image",0)(1,Qib,2,0,"button",1);if(a&2){var c;G((c=b.issue.experimentalFields==null?null:b.issue.experimentalFields.triage==
null?null:b.issue.experimentalFields.triage.triagerEmail)?0:1,c)}},dependencies:[kB,gB,aV],styles:[".align-with-hr[_ngcontent-%COMP%] {\n      margin-left: -8px;\n    }\n    .align-with-btn[_ngcontent-%COMP%] {\n      padding-left: 8px;\n    }"],changeDetection:0});var aX=function(){this.type=this.issue=null;this.isDataLoaded=!1};aX.prototype.ngOnChanges=function(){var a,b;this.type=((a=this.issue)==null?void 0:(b=a.snapshot[0])==null?void 0:b.type)||null;this.isDataLoaded=this.issue!==null};aX.\u0275fac=function(a){return new (a||aX)};
aX.\u0275cmp=D({type:aX,selectors:[["b-issue-type-cell"]],inputs:{issue:"issue"},standalone:!1,features:[jx],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Rib,3,3,"ng-container"),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.type?1:-1))},dependencies:[oW,bV],encapsulation:2,changeDetection:0});var zxd=function(){};zxd.prototype.transform=function(a){return $Va(a)};zxd.\u0275fac=function(a){return new (a||zxd)};zxd.\u0275pipe=cf({name:"toCustomFieldTypeDisplayValue",type:zxd,pure:!0,standalone:!1});var bX=function(){};bX.prototype.transform=function(a,b){var c;a=(c=a.split("@"))==null?void 0:c[0];b&&a.length>b&&(b=(b-3)/2,a=a.substring(0,b)+"..."+a.substring(a.length-b));return a+"@"};bX.\u0275fac=function(a){return new (a||bX)};bX.\u0275pipe=cf({name:"shortenEmail",type:bX,pure:!0,standalone:!1});var cX=function(){};cX.prototype.transform=function(a){if(!a||!a.length)return"";var b=(new Set(a.filter(function(c){return!!c.user}).map(function(c){return no(c)}))).size;b=b>0?"Users: "+b:"";a=a.filter(function(c){return!!c.placeholder}).map(function(c){var d=c.placeholder.role;return c.placeholder.count+" "+(d&&d!=="JOB_ROLE_UNSPECIFIED"?Yq[d]:"Other")});a=a.length>0?"Placeholders: "+a.join(", "):"";return b+(b&&a?", ":"")+a};cX.\u0275fac=function(a){return new (a||cX)};
cX.\u0275pipe=cf({name:"staffingSummary",type:cX,pure:!0,standalone:!1});var dX=function(){};dX.\u0275fac=function(a){return new (a||dX)};dX.\u0275mod=$e({type:dX});dX.\u0275inj=Fc({imports:[WO]});var eX=function(){};eX.\u0275fac=function(a){return new (a||eX)};eX.\u0275mod=$e({type:eX});eX.\u0275inj=Fc({imports:[by,Wz]});var fX=function(){};fX.\u0275fac=function(a){return new (a||fX)};fX.\u0275mod=$e({type:fX});fX.\u0275inj=Fc({imports:[WO,dX,eX]});var gX=function(){this.el=p(Hd);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)};gX.prototype.onInput=function(){this.resize(this.el.nativeElement.value)};
gX.prototype.ngOnDestroy=function(){document.body.removeChild(this.shadowInput)};gX.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"};gX.\u0275fac=function(a){return new (a||gX)};
gX.\u0275dir=af({type:gX,selectors:[["","b-adaptive-width-input",""]],hostBindings:function(a,b){a&1&&N("input",function(){return b.onInput()})},inputs:{minWidth:"minWidth",maxWidth:"maxWidth"},standalone:!1});var Axd=function(){};Axd.\u0275fac=function(a){return new (a||Axd)};Axd.\u0275mod=$e({type:Axd});Axd.\u0275inj=Fc({});var hX=function(){this.activeSession=p(uu);this.sessionIsExternal=this.activeSession.isExternalSession()};hX.prototype.shouldShowLinks=function(){return!this.sessionIsExternal&&!!Zn(this.email)};hX.prototype.getName=function(){return this.email===void 0?"":this.email.split("@")[0]};hX.\u0275fac=function(a){return new (a||hX)};
hX.\u0275cmp=D({type:hX,selectors:[["b-group-email-card"]],inputs:{email:"email"},standalone:!1,ngContentSelectors:["*"],decls:4,vars:1,consts:[["content",""],["card",""],["role","button","tabindex","0",1,"keep-focus-ring",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["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"],[1,"bv2-group-email-card-links-container"],["target","_blank",1,"bv2-group-email-card-link",3,"href"]],template:function(a,b){a&1&&(bg(),F(0,Wib,16,5)(1,Yib,1,1,"ng-container"),E(2,Zib,1,0,"ng-template",null,0,Mg));a&2&&G(Zn(b.email)?0:1)},dependencies:[Sx,Jy,KK,SK],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{--onedev-card-background: var(--surface-default, rgb(255, 255, 255));--onedev-card-title-text: var(--text-default, rgb(32, 33, 36));--onedev-card-icon: var(--icon, rgb(95, 99, 104));--onedev-card-secondary-text: var(--text-secondary, rgb(95, 99, 104));--onedev-card-link-color: var(--primary-default, rgb(26, 115, 232));--onedev-card-title-max-height: 48px}.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:var(--onedev-card-title-max-height);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;overflow-wrap:anywhere}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]:empty{margin-top:0px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .subcontent[_ngcontent-%COMP%]:not(:last-child){margin-bottom:8px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:var(--onedev-card-secondary-text);padding:0 8px 0 0}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .dot-separated-list[_ngcontent-%COMP%]{display:inline;list-style-type:none;margin:0;padding:0}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .dot-separated-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:inline}.onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.bv2-group-email-card[_ngcontent-%COMP%]{margin:-15px -20px -20px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]{padding:15px 60px 20px 15px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;vertical-align:middle}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]   .bv2-group-email-card-email[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);padding:10px 15px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]   .bv2-group-email-card-link[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]   .bv2-group-email-card-link[_ngcontent-%COMP%]:hover, .bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]   .bv2-group-email-card-link[_ngcontent-%COMP%]:active{text-decoration:underline}/*# sourceMappingURL=group_email_card.css.map */"]});
var iX=function(){};iX.\u0275fac=function(a){return new (a||iX)};iX.\u0275mod=$e({type:iX});iX.\u0275inj=Fc({imports:[WO,TK]});var Bxd=function(){this.dialogTabIndex=0;this.displayText="";this.overlaySizeConfig={maxHeight:"unset",maxWidth:600}};Bxd.\u0275fac=function(a){return new (a||Bxd)};
Bxd.\u0275cmp=D({type:Bxd,selectors:[["b-text-with-tooltip"]],inputs:{dialogTabIndex:"dialogTabIndex",displayText:"displayText"},standalone:!1,ngContentSelectors:["*"],decls:4,vars:5,consts:[["tooltipTemplate",""],[3,"dialogLabel","dialogTabIndex","overlaySize","xapInlineDialog"]],template:function(a,b){a&1&&(bg(),K(0,"xap-text-trigger",1),Q(1),L(),E(2,$ib,3,0,"ng-template",null,0,Mg));a&2&&(a=qg(3),I("dialogLabel",b.displayText)("dialogTabIndex",0)("overlaySize",b.overlaySizeConfig)("xapInlineDialog",
a),B(),S(" ",b.displayText,"\n"))},dependencies:[bB,aB,hL,iL],styles:["/*# sourceMappingURL=text_with_tooltip.css.map */"],changeDetection:0});var Cxd=function(){};Cxd.\u0275fac=function(a){return new (a||Cxd)};Cxd.\u0275mod=$e({type:Cxd});Cxd.\u0275inj=Fc({imports:[bB,iL]});var jX=function(){Z.apply(this,arguments);this.activeSession=p(uu);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 aQ;this.chipClear=new aQ;this.chipRemove=new aQ};Y(jX,Z);jX.\u0275dir=Z.\u0275dir;h=jX.prototype;h.isPublicChip=function(){return this.principalType==="ALIAS"&&["public_non_google","public"].includes(this.value)};
h.isNonGaiaChip=function(){return this.principalType==="NON_GAIA"};h.isContainerChip=function(){return this.nestedChips!==null};h.isUserChip=function(){return this.principalType==="USER"};h.isGroupChip=function(){return this.principalType==="GROUP"};h.isDomainChip=function(){return this.principalType==="ALIAS"&&["googlers_unrestricted","google_domain"].includes(this.value)};h.isExternalChip=function(){return this.detailedUserType==="EXTERNAL"||this.detailedUserType==="PUBLIC"||this.isPublicChip()};
h.isExternalPartnerAccessViolated=function(){return this.accessLevel==="EXTERNAL_PARTNER"&&this.isPublicChip()};h.isInternalAccessViolated=function(){return this.accessLevel==="INTERNAL"&&(this.isExternalChip()||this.isPublicChip())};
h.getTooltip=function(){if(this.principalType!=="ALIAS")return this.displayText;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 users, excluding the google.com domain.";case "public":return"All users";default:throw Error("Te`"+this.value);}};
var Dxd=function(a){if(a.isGroupChip())return"group";if(a.isDomainChip())return"acl-alias-domain";if(a.isPublicChip())return"public"};jX.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(jX)))(b||jX)}}();
jX.\u0275cmp=D({type:jX,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"},standalone:!1,features:[Ef],decls:8,vars:17,consts:[[1,"bv2-user-chip-item",3,"focus","blur"],[1,"alias-icon"],
[3,"svgIcon"],[1,"user-chip-name"],[3,"email"],[3,"dialogTabIndex","displayText"],["role","button","tabindex","0",1,"user-chip-x","keep-focus-ring",3,"matTooltip"],[1,"bv2-user-chip-nested-content-container","flex-kids-x","flex-wrap"],[1,"bv2-user-chip"],[3,"value","detailedUserType","principalType","accessLevel","displayText"],["role","button","tabindex","0",1,"user-chip-x","keep-focus-ring",3,"click","keydown.enter","matTooltip"],["svgIcon","close"]],template:function(a,b){a&1&&(K(0,"span",0),N("focus",
function(){return b.chipSelection.emit()})("blur",function(){return b.chipClear.emit()}),K(1,"span",1),F(2,ajb,1,1,"mat-icon",2),L(),K(3,"div",3),F(4,bjb,2,2,"b-person-hovercard",4),F(5,cjb,2,2,"b-group-email-card",4),F(6,gjb,3,3,"b-text-with-tooltip",5),L(),F(7,hjb,2,3,"div",6),L());if(a&2){var c;wg("bv2-user-chip-external",b.isExternalChip())("bv2-user-chip-non-gaia",b.isNonGaiaChip())("bv2-user-chip-not-accessible",b.isInternalAccessViolated()||b.isExternalPartnerAccessViolated())("bv2-user-chip-container",
b.isContainerChip())("selected",b.isSelected)("readonly",b.isReadonly);B(2);G((c=Dxd(b))?2:-1,c);B(2);G(b.isUserChip()?4:-1);B();G(b.isGroupChip()?5:-1);B();G(b.isUserChip()||b.isGroupChip()?-1:6);B();G(b.isReadonly||b.isWidgetDisabled?-1:7)}},dependencies:[Jy,vK,nA,gT,hX,Bxd,jX],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.selected[_ngcontent-%COMP%]   .bv2-user-chip-nested-content[_ngcontent-%COMP%], span.bv2-user-chip-item[_ngcontent-%COMP%]:hover:not(.selected)   .bv2-user-chip-nested-content[_ngcontent-%COMP%], span.bv2-user-chip-item.selected[_ngcontent-%COMP%]:not(:hover)   .bv2-user-chip-nested-content[_ngcontent-%COMP%]{display:block}span.bv2-user-chip-item[_ngcontent-%COMP%]:not(.selected)   .bv2-user-chip-nested-content[_ngcontent-%COMP%], span.bv2-user-chip-item[_ngcontent-%COMP%]:not(:hover)   .bv2-user-chip-nested-content[_ngcontent-%COMP%]{display:none}span.bv2-user-chip-item[_ngcontent-%COMP%]:active, span.bv2-user-chip-item.selected[_ngcontent-%COMP%], span.bv2-user-chip-item.selected[_ngcontent-%COMP%]:hover, span.bv2-user-chip-item.selected[_ngcontent-%COMP%]:active, span.bv2-user-chip-item.readonly[_ngcontent-%COMP%]:active, span.bv2-user-chip-item.readonly.selected[_ngcontent-%COMP%], span.bv2-user-chip-item.readonly.selected[_ngcontent-%COMP%]:hover, span.bv2-user-chip-item.readonly.selected[_ngcontent-%COMP%]:active{border-color:#1a73e8;border-color:var(--primary)}span.bv2-user-chip-item.readonly[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}span.bv2-user-chip-item.readonly[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]{display:none}span.bv2-user-chip-item.bv2-user-chip-external[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg)}span.bv2-user-chip-item.bv2-user-chip-non-gaia[_ngcontent-%COMP%]{border:1px dashed;border-color:#ea4335;border-color:var(--bad)}span.bv2-user-chip-item.bv2-user-chip-not-accessible[_ngcontent-%COMP%]{border:1px solid;border-color:#ea4335;border-color:var(--bad)}span.bv2-user-chip-item.bv2-user-chip-container[_ngcontent-%COMP%]{cursor:pointer}span.bv2-user-chip-item.bv2-user-chip-container[_ngcontent-%COMP%] > .user-chip-name[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);border-style:dashed;height:14px}.bv2-user-chip-nested-content-container[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]{padding:4px}/*# sourceMappingURL=contact_chip.css.map */"]});var rX=function(a,b,c,d,e,f,g){this.clientConfig=a;this.document=b;this.peopleKitService=c;this.inputEl=d;this.zone=e;this.renderer=f;this.destroyRef=g;this.selectionChange=new Ti;this.sessionOptions=(new dv).setFilter(Exd);this.inputSearchDelay=200;this.inputChanged$=new uf(1)};h=rX.prototype;h.ngOnDestroy=function(){this.autocomplete.dispose()};
h.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);ygb(b,this.config);this.zone.runOutsideAngular(function(){var c;a.autocomplete=(c=a.clientConfig.autocompleteFactory)==null?void 0:c.create(a.getAnchor(),a.inputEl.nativeElement,a.peopleKitService.peopleStore,b,a.sessionOptions)});this.autocomplete.subscribeToSelectionChanged(function(c){a.zone.run(function(){a.selectionChange.emit(c)});a.autocomplete.report(4)});this.inputChanged$.pipe(jf(this.inputSearchDelay),
Tj(this.destroyRef)).subscribe(function(){a.search()})};h.getAnchor=function(){if(!this.peopleKitService.autocompleteAnchor){var a=this.renderer.createElement("div");this.peopleKitService.autocompleteAnchor=a;this.renderer.addClass(a,"peoplekit-autocomplete-anchor");var b;((b=RMa(this.inputEl.nativeElement))!=null?b:this.document.body).append(a)}return this.peopleKitService.autocompleteAnchor};
h.search=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.search(a.inputEl.nativeElement.value,a.inputEl.nativeElement)})};h.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};rX.\u0275fac=function(a){return new (a||rX)(Ve(pwd),Ve(Rh),Ve(GW),Ve(Hd),Ve(Rg),Ve(ci),Ve(Ce))};
rX.\u0275dir=af({type:rX,selectors:[["input","peoplekitAutocomplete",""]],hostBindings:function(a,b){a&1&&N("input",function(){return b.inputChanged$.next()})("focus",function(){return b.search()})("blur",function(){return b.cancel()})},inputs:{config:[0,"peoplekitAutocompleteConfig","config"],sessionOptions:[0,"peoplekitSearchSessionOptions","sessionOptions"],inputSearchDelay:[0,"peoplekitAutocompleteInputSearchDelay","inputSearchDelay"]},outputs:{selectionChange:"peoplekitAutocompleteSelectionChange"},
exportAs:["peoplekitAutocomplete"]});var Exd=rgb(1);var sX=function(){this.selectionChange=new Ti;this.sessionOptions=(new dv).setFilter(Fxd);this.clientConfig=p(pwd);this.document=p(Rh);this.peopleKitService=p(GW);this.elementRef=p(Hd);this.zone=p(Rg);this.renderer=p(ci);this.destroyRef=p(Ce);this.queryChanged$=new uf(1)};
sX.prototype.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);ygb(b,this.config);this.autocomplete=this.zone.runOutsideAngular(function(){var c,d=(c=a.clientConfig.autocompleteFactory)==null?void 0:c.create(a.getAnchor(),a.elementRef.nativeElement,a.peopleKitService.peopleStore,b,a.sessionOptions);d.subscribeToSelectionChanged(function(e){a.zone.run(function(){a.selectionChange.emit(e)});a.autocomplete.report(4)});return d});
this.destroyRef.onDestroy(function(){a.zone.runOutsideAngular(function(){a.autocomplete.dispose()})});this.queryChanged$.pipe(Tj(this.destroyRef)).subscribe(function(c){c!==void 0&&a.search(c)})};
sX.prototype.getAnchor=function(){if(this.peopleKitService.autocompleteAnchor)return this.peopleKitService.autocompleteAnchor;var a=this.renderer.createElement("div");this.peopleKitService.autocompleteAnchor=a;this.renderer.addClass(a,"peoplekit-autocomplete-anchor");var b;((b=RMa(this.elementRef.nativeElement))!=null?b:this.document.body).append(a);return a};sX.prototype.search=function(a){var b=this;this.zone.runOutsideAngular(function(){b.autocomplete.search(a,b.elementRef.nativeElement)})};
sX.prototype.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};da.Object.defineProperties(sX.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){this.queryChanged$.next(a)}}});sX.\u0275fac=function(a){return new (a||sX)};
sX.\u0275dir=af({type:sX,selectors:[["","peoplekitManualAutocomplete",""]],inputs:{config:[0,"peoplekitAutocompleteConfig","config"],sessionOptions:[0,"peoplekitSearchSessionOptions","sessionOptions"],query:"query"},outputs:{selectionChange:"peoplekitAutocompleteSelectionChange"},exportAs:["peoplekitManualAutocomplete"]});var Fxd=rgb(1);var tX=function(){};tX.\u0275fac=function(a){return new (a||tX)};tX.\u0275mod=$e({type:tX});tX.\u0275inj=Fc({});var uX=function(){};uX.\u0275fac=function(a){return new (a||uX)};uX.\u0275mod=$e({type:uX});uX.\u0275inj=Fc({imports:[WO,DE,wK,iU,iX,fV,Axd,tX,Cxd]});noa(HW,[xj,fE,mE,gX,rX,jX],[]);var vX=function(){};vX.\u0275fac=function(a){return new (a||vX)};vX.\u0275mod=$e({type:vX});vX.\u0275inj=Fc({imports:[WO,dX,uX,TK,wK]});var wX=function(){};wX.\u0275fac=function(a){return new (a||wX)};wX.\u0275mod=$e({type:wX});wX.\u0275inj=Fc({imports:[WO,mB,wK]});var xX=function(){};xX.\u0275fac=function(a){return new (a||xX)};xX.\u0275mod=$e({type:xX});xX.\u0275inj=Fc({providers:[{provide:Ukd,useValue:MW}],imports:[WO,fX,mB,wK,hV,wV,CU,wX,vX]});var yX=function(){};yX.\u0275fac=function(a){return new (a||yX)};yX.\u0275mod=$e({type:yX});yX.\u0275inj=Fc({imports:[WO]});var Gxd={provide:MDc,deps:[Tz],useFactory:function(a){return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}},Hxd=Hh({passive:!0}),zX=function(a,b,c,d,e,f,g,k,l,r,w,x){var C=this;this._overlay=a;this._elementRef=b;this._scrollDispatcher=c;this._viewContainerRef=d;this._ngZone=e;this._platform=f;this._ariaDescriber=g;this._focusMonitor=k;this._dir=r;this._defaultOptions=w;this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=this._positionAtOrigin=
!1;this._viewportMargin=8;this._cssClassPrefix="mat";this.touchGestures="auto";this._message="";this._passiveListeners=[];this._destroyed=new qf;this._scrollStrategy=l;this._document=x;w&&(this._showDelay=w.showDelay,this._hideDelay=w.hideDelay,w.position&&(this.position=w.position),w.positionAtOrigin&&(this.positionAtOrigin=w.positionAtOrigin),w.touchGestures&&(this.touchGestures=w.touchGestures));r.change.pipe(zf(this._destroyed)).subscribe(function(){C._overlayRef&&C._updatePosition(C._overlayRef)})};
h=zX.prototype;h.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(zf(this._destroyed)).subscribe(function(b){b?b==="keyboard"&&a._ngZone.run(function(){return a.show()}):a._ngZone.run(function(){return a.hide(0)})})};
h.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=m(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,Hxd)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();hz(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
h.show=function(a,b){var c=this;a=a===void 0?this.showDelay:a;if(this.disabled||!this.message||this._isTooltipVisible()){var d;(d=this._tooltipInstance)==null||d._cancelPendingAnimations()}else b=this._createOverlay(b),this._detach(),this._portal=this._portal||new Nz(this._tooltipComponent,this._viewContainerRef),b=this._tooltipInstance=b.attach(this._portal).instance,b._triggerElement=this._elementRef.nativeElement,b._mouseLeaveHideDelay=this._hideDelay,b.afterHidden().pipe(zf(this._destroyed)).subscribe(function(){return c._detach()}),
this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),b.show(a)};h.hide=function(a){a=a===void 0?this.hideDelay:a;var b=this._tooltipInstance;b&&(b.isVisible()?b.hide(a):(b._cancelPendingAnimations(),this._detach()))};h.toggle=function(a){this._isTooltipVisible()?this.hide():this.show(void 0,a)};h._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
h._createOverlay=function(a){var b=this;if(this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!a)&&c._origin instanceof Hd)return this._overlayRef;this._detach()}c=JCc(this._scrollDispatcher,this._elementRef);a=bDc(Gz(Hz(fDc(Lz(this._overlay.position(),this.positionAtOrigin?a||this._elementRef:this._elementRef),"."+this._cssClassPrefix+"-tooltip"),!1),this._viewportMargin),c);a.positionChanges.pipe(zf(this._destroyed)).subscribe(function(e){b._updateCurrentPositionClass(e.connectionPair);
b._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&b._tooltipInstance.isVisible()&&b._ngZone.run(function(){return b.hide(0)})});this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:this._cssClassPrefix+"-tooltip-panel",scrollStrategy:this._scrollStrategy()});this._updatePosition(this._overlayRef);this._overlayRef._detachments.pipe(zf(this._destroyed)).subscribe(function(){return b._detach()});this._overlayRef.outsidePointerEvents().pipe(zf(this._destroyed)).subscribe(function(){var e;
return(e=b._tooltipInstance)==null?void 0:e._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(zf(this._destroyed)).subscribe(function(e){b._isTooltipVisible()&&e.keyCode===27&&!Gh(e)&&(e.preventDefault(),e.stopPropagation(),b._ngZone.run(function(){return b.hide(0)}))});var d;((d=this._defaultOptions)==null?0:d.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(this._cssClassPrefix+"-tooltip-panel-non-interactive");return this._overlayRef};
h._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach();this._tooltipInstance=null};h._updatePosition=function(a){a=a.getConfig().positionStrategy;var b=this._getOrigin(),c=this._getOverlayPosition();Fz(a,[this._addOffset(Object.assign({},b.main,c.main)),this._addOffset(Object.assign({},b.fallback,c.fallback))])};h._addOffset=function(a){return a};
h._getOrigin=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above"||b=="below")var c={originX:"center",originY:b=="above"?"top":"bottom"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={originX:"start",originY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={originX:"end",originY:"center"};a=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:a.x,originY:a.y}}};
h._getOverlayPosition=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above")var c={overlayX:"center",overlayY:"bottom"};else if(b=="below")c={overlayX:"center",overlayY:"top"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={overlayX:"end",overlayY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={overlayX:"start",overlayY:"center"};a=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:a.x,overlayY:a.y}}};
h._updateTooltipMessage=function(){var a=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(lf(1),zf(this._destroyed)).subscribe(function(){a._tooltipInstance&&a._overlayRef.updatePosition()}))};h._setTooltipClass=function(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())};
h._invertPosition=function(a,b){this.position==="above"||this.position==="below"?b==="top"?b="bottom":b==="bottom"&&(b="top"):a==="end"?a="start":a==="start"&&(a="end");return{x:a,y:b}};
h._updateCurrentPositionClass=function(a){var b=a.overlayY,c=a.originX;a=a.originY;b=b==="center"?this._dir&&this._dir.value==="rtl"?c==="end"?"left":"right":c==="start"?"left":"right":b==="bottom"&&a==="top"?"above":"below";if(b!==this._currentPosition){if(c=this._overlayRef)a=this._cssClassPrefix+"-tooltip-panel-",c.removePanelClass(a+this._currentPosition),c.addPanelClass(a+b);this._currentPosition=b}};
h._setupPointerEnterEventsIfNeeded=function(){var a=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(b){a._setupPointerExitEventsIfNeeded();var c=void 0;b.x!==void 0&&b.y!==void 0&&(c=b);a.show(void 0,c)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(b){var c,d=(b=(c=b.targetTouches)==null?void 0:
c[0])?{x:b.clientX,y:b.clientY}:void 0;a._setupPointerExitEventsIfNeeded();clearTimeout(a._touchstartTimeout);a._touchstartTimeout=setTimeout(function(){return a.show(void 0,d)},500)}])),this._addListeners(this._passiveListeners))};
h._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&&((e=a._overlayRef)==null?0:e.overlayElement.contains(d))||a.hide()}],["wheel",function(d){return a._wheelListener(d)}]);else if(this.touchGestures!=="off"){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,q(b))}};h._addListeners=function(a){var b=this;a.forEach(function(c){var d=m(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,Hxd)})};h._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
h._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()}};
h._disableNativeGesturesIfNecessary=function(){var a=this.touchGestures;if(a!=="off"){var b=this._elementRef.nativeElement,c=b.style;if(a==="on"||b.nodeName!=="INPUT"&&b.nodeName!=="TEXTAREA")c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none";a!=="on"&&b.draggable||(c.webkitUserDrag="none");c.touchAction="none";c.webkitTapHighlightColor="transparent"}};
da.Object.defineProperties(zX.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;(b=this._tooltipInstance)==null||b.show(0);this._overlayRef.updatePosition()}}},positionAtOrigin:{configurable:!0,enumerable:!0,get:function(){return this._positionAtOrigin},set:function(a){this._positionAtOrigin=Lh(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=Lh(a))?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},showDelay:{configurable:!0,enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=Oh(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=Oh(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},message:{configurable:!0,enumerable:!0,
get:function(){return this._message},set:function(a){var b=this;hz(this._ariaDescriber,this._elementRef.nativeElement,this._message,"tooltip");this._message=a!=null?String(a).trim():"";!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){gz(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)}}});zX.\u0275fac=function(){We()};
zX.\u0275dir=af({type:zX,inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},standalone:!1});
var AX=function(a,b){this._changeDetectorRef=a;this._isVisible=this._closeOnInteraction=!1;this._onHide=new qf;this._animationsDisabled=b==="NoopAnimations"};h=AX.prototype;h.show=function(a){var b=this;this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};
h.hide=function(a){var b=this;this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId=setTimeout(function(){b._toggleVisibility(!1);b._hideTimeoutId=void 0},a)};h.afterHidden=function(){return this._onHide};h.isVisible=function(){return this._isVisible};h.ngOnDestroy=function(){this._cancelPendingAnimations();this._onHide.complete();this._triggerElement=null};h._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)};h._markForCheck=function(){this._changeDetectorRef.markForCheck()};
h._handleMouseLeave=function(a){(a=a.relatedTarget)&&this._triggerElement.contains(a)||(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))};h._onShow=function(){};h._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};
h._cancelPendingAnimations=function(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=this._hideTimeoutId=void 0};h._finalizeAnimation=function(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()};
h._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&&typeof getComputedStyle==="function"&&(c=getComputedStyle(b),c.getPropertyValue("animation-duration")==="0s"||c.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0);a&&this._onShow();this._animationsDisabled&&(b.classList.add("_mat-animation-noopable"),this._finalizeAnimation(a))};
AX.\u0275fac=function(a){return new (a||AX)(Ve(Cx),Ve(ji,8))};AX.\u0275dir=af({type:AX,standalone:!1});var Ixd=["tooltip"],CX=function(a,b,c,d,e,f,g,k,l,r,w,x){zX.call(this,a,b,c,d,e,f,g,k,l,r,w,x);this._tooltipComponent=BX};Y(CX,zX);CX.\u0275fac=function(a){return new (a||CX)(Ve(Tz),Ve(Hd),Ve(Sh),Ve(eg),Ve(Rg),Ve(Vh),Ve(fz),Ve(Ny),Ve(MDc),Ve(bi,8),Ve(NDc,8),Ve(Rh))};CX.\u0275dir=af({type:CX,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-tooltip-disabled",b.disabled)},exportAs:["matTooltip"],standalone:!1,features:[Ef]});
var BX=function(a,b,c){AX.call(this,a,c);this._showAnimation="mat-tooltip-show";this._hideAnimation="mat-tooltip-hide";this._isHandset=b.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")};Y(BX,AX);BX.\u0275dir=AX.\u0275dir;BX.\u0275fac=function(a){return new (a||BX)(Ve(Cx),Ve(Yy),Ve(ji,8))};
BX.\u0275cmp=D({type:BX,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&hg(Ixd,7);if(a&2){var c;lg(c=mg())&&(b._tooltip=c.first)}},hostAttrs:["aria-hidden","true"],hostVars:3,hostBindings:function(a,b){a&1&&N("mouseleave",function(c){return b._handleMouseLeave(c)});a&2&&(If("mat-id-collision",null),vg("zoom",b.isVisible()?1:null))},standalone:!1,features:[Ef],decls:4,vars:6,consts:[["tooltip",""],[1,"mat-tooltip",3,"animationend","ngClass"]],template:function(a,b){if(a&1){var c=
t();K(0,"div",1,0);T(2,"async");N("animationend",function(e){u(c);return v(b._handleAnimationEnd(e))});Q(3);L()}if(a&2){var d;wg("mat-tooltip-handset",(d=U(2,4,b._isHandset))==null?null:d.matches);I("ngClass",b.tooltipClass);B(3);yg(b.message)}},dependencies:[Lx,Tx],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;-webkit-transform:scale(0);transform:scale(0)}.mat-tooltip._mat-animation-noopable{-webkit-animation:none;animation:none;-webkit-transform:scale(1);transform:scale(1)}@media (forced-colors:active){.mat-tooltip{outline:1px solid}}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@-webkit-keyframes mat-tooltip-show{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0)}50%{opacity:.5;-webkit-transform:scale(.99);transform:scale(.99)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes mat-tooltip-show{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0)}50%{opacity:.5;-webkit-transform:scale(.99);transform:scale(.99)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes mat-tooltip-hide{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}.mat-tooltip-show{-webkit-animation:mat-tooltip-show .2s cubic-bezier(0,0,.2,1) forwards;animation:mat-tooltip-show .2s cubic-bezier(0,0,.2,1) forwards}.mat-tooltip-hide{-webkit-animation:mat-tooltip-hide .1s cubic-bezier(0,0,.2,1) forwards;animation:mat-tooltip-hide .1s cubic-bezier(0,0,.2,1) forwards}"],
encapsulation:2,changeDetection:0});var DX=function(){};DX.\u0275fac=function(a){return new (a||DX)};DX.\u0275mod=$e({type:DX});DX.\u0275inj=Fc({providers:[Gxd],imports:[ez,by,Wz,Ky,Cz]});var EX=function(){};EX.\u0275fac=function(a){return new (a||EX)};EX.\u0275mod=$e({type:EX});EX.\u0275inj=Fc({imports:[by,Wz,Sz,SI,DX,ez,JK]});var FX=function(){};FX.\u0275fac=function(a){return new (a||FX)};FX.\u0275mod=$e({type:FX});FX.\u0275inj=Fc({imports:[ez,WO,qU,mB,wK,EX]});var Jxd=function(){var a=this;this.componentFridge=p(RO);this.trackerHelpers=p(kS);this.issue$=new uf(1);this.isLoaded$=this.issue$.pipe(A(function(b){return b!==null}));this.componentId$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].componentId)||void 0}));this.component$=this.componentId$.pipe(yf(function(b){return b?a.componentFridge.watch(b):ce(void 0)}));this.componentName$=ie([this.componentId$,this.component$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;
return c?(b=ju(a.trackerHelpers,c.componentPathInfo))&&b.componentPathName?b.componentPathName[b.componentPathName.length-1].toString():"":b||""}))};da.Object.defineProperties(Jxd.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){this.issue$.next(a)}}});Jxd.\u0275fac=function(a){return new (a||Jxd)};
Jxd.\u0275cmp=D({type:Jxd,selectors:[["b-issue-component-name-cell"]],inputs:{issue:"issue"},standalone:!1,decls:4,vars:6,consts:[[3,"isReady"],[1,"nowrap","overflow-ellipsis",3,"matTooltip"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),T(1,"async"),F(2,ijb,2,2,"span",1),T(3,"async"),L());if(a&2){var c;I("isReady",U(1,2,b.isLoaded$));B(2);G((c=U(3,4,b.componentName$))?2:-1,c)}},dependencies:[oW,vK,nA,Tx],encapsulation:2,changeDetection:0});var Kxd=function(){this.issue=null;this.isDataLoaded=!1};Kxd.prototype.ngOnChanges=function(){var a;this.reporter=M$a(wm((a=this.issue)==null?void 0:a.snapshot[0].reporterUser)||void 0);this.isDataLoaded=this.issue!==null};Kxd.\u0275fac=function(a){return new (a||Kxd)};
Kxd.\u0275cmp=D({type:Kxd,selectors:[["b-issue-reporter-cell"]],inputs:{issue:"issue"},standalone:!1,features:[jx],decls:2,vars:2,consts:[[3,"isReady"],[3,"email"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,jjb,2,2,"b-person-hovercard",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.reporter?1:-1))},dependencies:[oW,gT],encapsulation:2,changeDetection:0});var Lxd=["theInput"],Mxd=function(){this.placeholder=this.value="";this.readonly=!1;this.autoFocus=!0;this.valueChange=new aQ;this.commit=new aQ};Mxd.prototype.ngAfterViewInit=function(){this.autoFocus&&this.input.nativeElement.focus()};Mxd.\u0275fac=function(a){return new (a||Mxd)};
Mxd.\u0275cmp=D({type:Mxd,selectors:[["b-text-input-cell"]],viewQuery:function(a,b){a&1&&hg(Lxd,5);if(a&2){var c;lg(c=mg())&&(b.input=c.first)}},inputs:{value:"value",placeholder:"placeholder",readonly:"readonly",autoFocus:"autoFocus"},outputs:{valueChange:"valueChange",commit:"commit"},standalone:!1,decls:2,vars:7,consts:[["theInput",""],["type","text",3,"keydown.enter","ngModelChange","placeholder","disabled","ngModel"]],template:function(a,b){if(a&1){var c=t();K(0,"input",1,0);N("keydown.enter",
function(d){u(c);b.readonly||b.commit.emit(d);return v()})("ngModelChange",function(d){u(c);return v(b.valueChange.emit(d))});L()}a&2&&(wg("readonly",b.readonly)("override",b.readonly),I("placeholder",b.placeholder)("disabled",b.readonly)("ngModel",b.value))},dependencies:[xj,fE,mE],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 GX=function(){};GX.\u0275fac=function(a){return new (a||GX)};GX.\u0275mod=$e({type:GX});GX.\u0275inj=Fc({imports:[WO,TK,mB]});var HX=function(){};HX.\u0275fac=function(a){return new (a||HX)};HX.\u0275mod=$e({type:HX});HX.\u0275inj=Fc({imports:[WO]});var IX=function(){};IX.\u0275fac=function(a){return new (a||IX)};IX.\u0275mod=$e({type:IX});IX.\u0275inj=Fc({imports:[HX,fV,WO,NU,wV,yW,DE,mB,wK,TK,GU,xX,FX,yX,iU,DV,GX,WW,hV,bB]});var JX=function(){};JX.\u0275fac=function(a){return new (a||JX)};JX.\u0275mod=$e({type:JX});JX.\u0275inj=Fc({imports:[mJ]});var KX=function(){};KX.\u0275fac=function(a){return new (a||KX)};KX.\u0275mod=$e({type:KX});KX.\u0275inj=Fc({imports:[WO,DE,mB,iK,wK,JX,TJ,Wz,Sz,GX,ez,fV,fX]});var LX=function(){};LX.\u0275fac=function(a){return new (a||LX)};LX.\u0275mod=$e({type:LX});LX.\u0275inj=Fc({imports:[JU]});var Nxd=function(){};Nxd.\u0275fac=function(a){return new (a||Nxd)};Nxd.\u0275mod=$e({type:Nxd});Nxd.\u0275inj=Fc({imports:[WO,dL,DL,IX,mB,TJ,WJ,HU,zU,LX,wK,eU,TW,FU,KX]});var MX=function(){this.issuesApi=p(MP)};MX.prototype.get=function(a){return this.issuesApi.getRelatedIssues({resourceType:a.resourceType===void 0?null:a.resourceType,resourceId:a.resourceId===void 0?null:a.resourceId,q:a.query,trackerId:a.trackerId===void 0?null:a.trackerId,s:a.sort===void 0?null:a.sort,count:a.count===void 0?null:a.count,p:a.page===void 0?null:a.page})};MX.\u0275fac=function(a){return new (a||MX)};MX.\u0275prov=Dc({token:MX,factory:MX.\u0275fac,providedIn:"root"});var Oxd=new dd("GM2_AUTOCOMPLETE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var Pxd=["panel"],Qxd=function(a,b){this.source=a;this.option=b},Rxd=new dd("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}}),NX=function(){this._changeDetectorRef=p(Cx);this._elementRef=p(Hd);this._defaults=p(Rxd);this._animationsDisabled=mi();this._activeOptionChanges=Pd.EMPTY;this._isOpen=this.showPanel=!1;this.displayWith=null;this.optionSelected=
new Ti;this.opened=new Ti;this.closed=new Ti;this.optionActivated=new Ti;this.id=p(ai).getId("mat-autocomplete-");p(Vh);this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption;this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption;this.requireSelection=!!this._defaults.requireSelection;var a;this._hideSingleSelectionIndicator=(a=this._defaults.hideSingleSelectionIndicator)!=null?a:!1};h=NX.prototype;h._setColor=function(a){this._color=a;this._changeDetectorRef.markForCheck()};
h._syncParentProperties=function(){if(this.options)for(var a=m(this.options),b=a.next();!b.done;b=a.next())b.value._changeDetectorRef.markForCheck()};h.ngAfterContentInit=function(){var a=this;this._keyManager=mz(new rz(this.options)).skipPredicate(this._skipPredicate);this._activeOptionChanges=this._keyManager.change.subscribe(function(b){a.isOpen&&a.optionActivated.emit({source:a,option:a.options.toArray()[b]||null})});this._setVisibility()};
h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._activeOptionChanges.unsubscribe()};h._setScrollTop=function(a){this.panel&&(this.panel.nativeElement.scrollTop=a)};h._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0};h._setVisibility=function(){var a;this.showPanel=!((a=this.options)==null||!a.length);this._changeDetectorRef.markForCheck()};h._emitSelectEvent=function(a){this.optionSelected.emit(new Qxd(this,a))};
h._getPanelAriaLabelledby=function(a){return this.ariaLabel?null:this.ariaLabelledby?(a?a+" ":"")+this.ariaLabelledby:a};h._skipPredicate=function(){return!1};
da.Object.defineProperties(NX.prototype,{isOpen:{configurable:!0,enumerable:!0,get:function(){return this._isOpen&&this.showPanel}},classList:{configurable:!0,enumerable:!0,set:function(a){this._classList=a;this._elementRef.nativeElement.className=""}},hideSingleSelectionIndicator:{configurable:!0,enumerable:!0,get:function(){return this._hideSingleSelectionIndicator},set:function(a){this._hideSingleSelectionIndicator=a;this._syncParentProperties()}}});NX.\u0275fac=function(a){return new (a||NX)};
NX.\u0275cmp=D({type:NX,selectors:[["mat-autocomplete"]],contentQueries:function(a,b,c){a&1&&(ig(c,hA,5),ig(c,qDc,5));if(a&2){var d;lg(d=mg())&&(b.options=d);lg(d=mg())&&(b.optionGroups=d)}},viewQuery:function(a,b){a&1&&(hg(dg,7),hg(Pxd,5));if(a&2){var c;lg(c=mg())&&(b.template=c.first);lg(c=mg())&&(b.panel=c.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,
"autoActiveFirstOption","autoActiveFirstOption",$g],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",$g],requireSelection:[2,"requireSelection","requireSelection",$g],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",$g],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",$g]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},
exportAs:["matAutocomplete"],features:[Gg([{provide:pDc,useExisting:NX}])],ngContentSelectors:["*"],decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(a){a&1&&(bg(),Gf(0,kjb,3,17,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}\n"],
encapsulation:2,changeDetection:0});var Sxd={provide:aE,useExisting:Vc(function(){return OX}),multi:!0},Txd=new dd("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:function(){var a=p(ye);return function(){return Th(a)}}}),OX=function(){var a=this;this._environmentInjector=p(Xe);this._element=p(Hd);this._injector=p(ye);this._viewContainerRef=p(eg);this._zone=p(Rg);this._changeDetectorRef=p(Cx);this._dir=p(bi,{optional:!0});this._formField=p(YOc,{optional:!0,host:!0});this._viewportRuler=p(Qh);this._scrollStrategy=p(Txd);
this._renderer=p(ci);this._animationsDisabled=mi();this._defaults=p(Rxd,{optional:!0});this._componentDestroyed=!1;this._initialized=new qf;this._manuallyFloatingLabel=!1;this._viewportSubscription=Pd.EMPTY;this._breakpointObserver=p(Yy);this._handsetLandscapeSubscription=Pd.EMPTY;this._canOpenOnNextFocus=!0;this._closeKeyEventStream=new qf;var b;this._overlayPanelClass=Kh(((b=this._defaults)==null?void 0:b.overlayPanelClass)||[]);this._windowBlurHandler=function(){a._canOpenOnNextFocus=a.panelOpen||
!a._hasFocus()};this._onChange=function(){};this._onTouched=function(){};this.position="auto";this.autocompleteAttribute="off";this._aboveClass="mat-mdc-autocomplete-panel-above";this._overlayAttached=!1;this.optionSelections=ne(function(){var c=a.autocomplete?a.autocomplete.options:null;return c?c.changes.pipe(xf(c),yf(function(){return te.apply(null,q(c.map(function(d){return d.onSelectionChange})))})):a._initialized.pipe(yf(function(){return a.optionSelections}))});this._handlePanelKeydown=function(c){if(c.keyCode===
27&&!Gh(c)||c.keyCode===38&&Gh(c,"altKey")){if(a._pendingAutoselectedOption){var d;a._updateNativeInputValue((d=a._valueBeforeAutoSelection)!=null?d:"");a._pendingAutoselectedOption=null}a._closeKeyEventStream.next();a._resetActiveItem();c.stopPropagation();c.preventDefault()}};this._trackedModal=null};OX.prototype.ngAfterViewInit=function(){this._initialized.next();this._initialized.complete();this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)};
OX.prototype.ngOnChanges=function(a){a.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())};OX.prototype.ngOnDestroy=function(){var a;(a=this._cleanupWindowBlur)==null||a.call(this);this._handsetLandscapeSubscription.unsubscribe();this._viewportSubscription.unsubscribe();this._componentDestroyed=!0;this._destroyPanel();this._closeKeyEventStream.complete();this._clearFromModal()};
var LHb=function(a){a._resetLabel();a._overlayAttached&&(a.panelOpen&&a._zone.run(function(){a.autocomplete.closed.emit()}),a.autocomplete._latestOpeningTrigger===a&&(a.autocomplete._isOpen=!1,a.autocomplete._latestOpeningTrigger=null),a._overlayAttached=!1,a._pendingAutoselectedOption=null,a._overlayRef&&a._overlayRef.hasAttached()&&(a._overlayRef.detach(),a._closingActionsSubscription.unsubscribe()),a._updatePanelState(),a._componentDestroyed||a._changeDetectorRef.detectChanges(),a._trackedModal&&
Ph(a._trackedModal,"aria-owns",a.autocomplete.id))};h=OX.prototype;h.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()};
h._getOutsideClickStream=function(){var a=this;return new Td(function(b){var c=function(e){var f=Jh(e),g=a._formField?a._formField.getConnectedOverlayOrigin().nativeElement:null,k=a.connectedTo?a.connectedTo.elementRef.nativeElement:null;!a._overlayAttached||f===a._element.nativeElement||a._hasFocus()||g&&g.contains(f)||k&&k.contains(f)||!a._overlayRef||a._overlayRef.overlayElement.contains(f)||b.next(e)},d=[a._renderer.listen("document","click",c),a._renderer.listen("document","auxclick",c),a._renderer.listen("document",
"touchend",c)];return function(){d.forEach(function(e){return e()})}})};h.writeValue=function(a){var b=this;Promise.resolve(null).then(function(){return b._assignOptionValue(a)})};h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this._element.nativeElement.disabled=a};
h._handleKeydown=function(a){var b=a.keyCode,c=Gh(a);b!==27||c||a.preventDefault();this._valueOnLastKeydown=this._element.nativeElement.value;if(this.activeOption&&b===13&&this.panelOpen&&!c)this.activeOption._selectViaInteraction(),this._resetActiveItem(),a.preventDefault();else if(this.autocomplete){var d=this.autocomplete._keyManager.activeItem,e=b===38||b===40;if(b===9||e&&!c&&this.panelOpen)this.autocomplete._keyManager.onKeydown(a);else e&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown);
if(e||this.autocomplete._keyManager.activeItem!==d)this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value))}};
h._handleInput=function(a){var b=a.target;a=b.value;b.type==="number"&&(a=a==""?null:parseFloat(a));if(this._previousValue!==a){this._previousValue=a;this._pendingAutoselectedOption=null;this.autocomplete&&this.autocomplete.requireSelection||this._onChange(a);if(!a)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){var c;if(b=(c=this.autocomplete.options)==null?void 0:c.find(function(e){return e.selected}))c=this._getDisplayValue(b.value),a!==c&&
b.deselect(!1)}if(this._canOpen()&&this._hasFocus()){var d;a=(d=this._valueOnLastKeydown)!=null?d:this._element.nativeElement.value;this._valueOnLastKeydown=null;this._openPanelInternal(a)}}};h._handleFocus=function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0};h._handleClick=function(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()};
h._hasFocus=function(){return Ih()===this._element.nativeElement};h._floatLabel=function(a){this._formField&&this._formField.floatLabel==="auto"&&((a===void 0?0:a)?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)};h._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)};
h._subscribeToClosingActions=function(){var a=this,b=new Td(function(f){Ee(function(){f.next()},{injector:a._environmentInjector})}),c,d,e=(d=(c=this.autocomplete.options)==null?void 0:c.changes.pipe(Af(function(){return aDc(a._positionStrategy)}),mf(0)))!=null?d:ce();return te(b,e).pipe(yf(function(){return a._zone.run(function(){var f=a.panelOpen;a._resetActiveItem();a._updatePanelState();a._changeDetectorRef.detectChanges();a.panelOpen&&a._overlayRef.updatePosition();f!==a.panelOpen&&(a.panelOpen?
a._emitOpened():a.autocomplete.closed.emit());return a.panelClosingActions})}),lf(1)).subscribe(function(f){return a._setValueAndClose(f)})};h._emitOpened=function(){this.autocomplete.opened.emit()};h._destroyPanel=function(){this._overlayRef&&(LHb(this),this._overlayRef.dispose(),this._overlayRef=null)};h._getDisplayValue=function(a){var b=this.autocomplete;return b&&b.displayWith?b.displayWith(a):a};
h._assignOptionValue=function(a){var b=this._getDisplayValue(a);a==null&&this._clearPreviousSelectedOption(null,!1);this._updateNativeInputValue(b!=null?b:"")};h._updateNativeInputValue=function(a){this._formField?this._formField._control.value=a:this._element.nativeElement.value=a;this._previousValue=a};
h._setValueAndClose=function(a){var b=this.autocomplete;(a=a?a.source:this._pendingAutoselectedOption)?(this._clearPreviousSelectedOption(a),this._assignOptionValue(a.value),this._onChange(a.value),b._emitSelectEvent(a),this._element.nativeElement.focus()):b.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null));LHb(this)};
h._clearPreviousSelectedOption=function(a,b){var c,d;(c=this.autocomplete)==null||(d=c.options)==null||d.forEach(function(e){e!==a&&e.selected&&e.deselect(b)})};h._openPanelInternal=function(a){a=a===void 0?this._element.nativeElement.value:a;this._attachOverlay(a);this._floatLabel();this._trackedModal&&dra(this._trackedModal,"aria-owns",this.autocomplete.id)};
h._attachOverlay=function(a){var b=this,c=this._overlayRef;if(c)this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()});else{var d;this._portal=new Oz(this.autocomplete.template,this._viewContainerRef,{id:(d=this._formField)==null?void 0:d.getLabelId()});this._overlayRef=c=ki(this._injector,this._getOverlayConfig());this._viewportSubscription=this._viewportRuler.change().subscribe(function(){b.panelOpen&&c&&c.updateSize({width:b._getPanelWidth()})});
this._handsetLandscapeSubscription=this._breakpointObserver.observe("(max-width: 959.98px) and (orientation: landscape)").subscribe(function(f){f.matches?Gz(cDc(Hz(b._positionStrategy,!0),!0),8):Gz(cDc(Hz(b._positionStrategy,!1),!1),0)})}c&&!c.hasAttached()&&(c.attach(this._portal),this._valueOnAttach=a,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());a=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0;this.autocomplete._latestOpeningTrigger=
this;var e;this.autocomplete._setColor((e=this._formField)==null?void 0:e.color);this._updatePanelState();this._applyModalPanelOwnership();this.panelOpen&&a!==this.panelOpen&&this._emitOpened()};
h._updatePanelState=function(){this.autocomplete._setVisibility();if(this.panelOpen){var a=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=a.keydownEvents().subscribe(this._handlePanelKeydown));this._outsideClickSubscription||(this._outsideClickSubscription=a.outsidePointerEvents().subscribe())}else{(a=this._keydownSubscription)==null||a.unsubscribe();var b;(b=this._outsideClickSubscription)==null||b.unsubscribe();this._keydownSubscription=this._outsideClickSubscription=null}};
h._getOverlayConfig=function(){var a,b,c;return new di({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:(c=this._dir)!=null?c:void 0,hasBackdrop:(a=this._defaults)==null?void 0:a.hasBackdrop,backdropClass:((b=this._defaults)==null?void 0:b.backdropClass)||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})};
h._getOverlayPosition=function(){var a=dDc(Hz(Xh(this._injector,this._getConnectedElement()),!1),!1);this._setStrategyPositions(a);return this._positionStrategy=a};
h._setStrategyPositions=function(a){var b=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-autocomplete-panel-above"}];b=this.position==="above"?c:this.position==="below"?b:[].concat(q(b),q(c));Fz(a,b)};
h._getConnectedElement=function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element};h._getPanelWidth=function(){return this.autocomplete.panelWidth||this._getHostWidth()};h._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width};
h._resetActiveItem=function(){var a=this.autocomplete;if(a.autoActiveFirstOption){for(var b=-1,c=0;c<a.options.length;c++)if(!a.options.get(c).disabled){b=c;break}a._keyManager.setActiveItem(b)}else a._keyManager.setActiveItem(-1)};h._canOpen=function(){var a=this._element.nativeElement;return!a.readOnly&&!a.disabled&&!this.autocompleteDisabled};
h._scrollToOption=function(a){var b=this.autocomplete,c=Bra(a,b.options,b.optionGroups);a===0&&c===1?b._setScrollTop(0):b.panel&&(a=b.options.toArray()[a])&&(a=a._getHostElement(),b._setScrollTop(Cra(a.offsetTop,a.offsetHeight,b._getScrollTop(),b.panel.nativeElement.offsetHeight)))};
h._applyModalPanelOwnership=function(){var a=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(a){var b=this.autocomplete.id;this._trackedModal&&Ph(this._trackedModal,"aria-owns",b);dra(a,"aria-owns",b);this._trackedModal=a}};h._clearFromModal=function(){this._trackedModal&&(Ph(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)};
da.Object.defineProperties(OX.prototype,{panelOpen:{configurable:!0,enumerable:!0,get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},panelClosingActions:{configurable:!0,enumerable:!0,get:function(){var a=this;return te(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ue(function(){return a._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef._detachments.pipe(ue(function(){return a._overlayAttached})):
ce()).pipe(A(function(b){return b instanceof GDc?b:null}))}},activeOption:{configurable:!0,enumerable:!0,get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}});OX.\u0275fac=function(a){return new (a||OX)};
OX.\u0275dir=af({type:OX,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(a,b){a&1&&N("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&&If("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-controls",b.autocompleteDisabled||!b.panelOpen?null:b.autocomplete==null?null:b.autocomplete.id)("aria-haspopup",b.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo",
"connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",$g]},exportAs:["matAutocompleteTrigger"],features:[Gg([Sxd]),jx]});var PX=function(){};PX.\u0275fac=function(a){return new (a||PX)};PX.\u0275mod=$e({type:PX});PX.\u0275inj=Fc({imports:[Wz,kA,Cz,kA,Ky]});var QX=function(){if(p(Oxd).disableGmatStyle)throw Error("db");var a=p(OX,{self:!0,optional:!0});a&&a._overlayPanelClass.push("gmat-mdc-autocomplete")};QX.\u0275fac=function(a){return new (a||QX)};QX.\u0275dir=af({type:QX,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],standalone:!1});var RX=function(){Z.apply(this,arguments);var a=this;this.cdr=p(bQ,{self:!0});this.paths=p(hW);this.issueFullFridge=p(gQ);this.relatedIssues=p(MX);this.errorHandler=p(pO);this.domSafe=p(mR);this.activeSession=p(uu);this.STATUS_ICON=pcd;this.entrySelect=new aQ;this.selectedIssues=[];this.asyncChoices=[];this.choices=[];this.currentQuery="";this.hasLoadedResults=!0;this.searchingForSelf=!1;this.queryInternal="";this.queryChange=new aQ;this.getTextToPutInInputOnSelect=function(){return a.query}};
Y(RX,Z);RX.\u0275dir=Z.\u0275dir;RX.prototype.ngOnInit=function(){var a=this;this.queryChange.pipe(jf(250),zf(this.destroyed$)).subscribe(function(b){a.doSearch(b)})};RX.prototype.ngOnChanges=function(a){a.defaultChoices&&(this.choices=[].concat(q(this.defaultChoices),q(this.asyncChoices)))};RX.prototype.selectIssue=function(a){Uxd(this,[a])};
var Wxd=function(a){var b=a.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});if(Vxd(b))return b;b=a;a.startsWith("b/")?b=a.substring(2):a.startsWith("http://b/")&&(b=a.substring(9));return Q8a(b)?[b]:[]},Vxd=function(a){return!a.some(function(b){return!Q8a(b)})};RX.prototype.search=function(a){typeof a==="string"&&(this.query=a)};
RX.prototype.doSearch=function(a){this.currentQuery=a;this.searchingForSelf=!1;if(a==="")Xxd(this);else{var b=Wxd(a);b.length===1||b.length>1&&this.allowMultipleIds?(this.lastSearchType="id",Yxd(this,b,a)):(this.lastSearchType="query",Zxd(this,a))}};
var Xxd=function(a){a.choices=a.defaultChoices;a.asyncChoices=[];a.hasLoadedResults=!0;Uxd(a,[])},Uxd=function(a,b){a.selectedIssues=b;a.entrySelect.emit(a.selectedIssues);var c;(c=a.autocomplete)==null||LHb(c)},Yxd=function(a,b,c){var d;((d=a.currentResource)==null?void 0:d.type)==="issue"&&b.length===1&&b[0]===a.currentResource.id?(a.searchingForSelf=!0,Xxd(a)):(a.choices=$xd(a,b),a.hasLoadedResults=!1,a.issueFullFridge.watchSet(b).pipe(lf(1),zf(a.destroyed$)).subscribe(function(e){if(a.currentQuery===
c){var f=e.reduce(function(g,k){var l=Ia(k.snapshot);return g.set(k.issueId,{resourceId:k.issueId,displayText:l.title,status:l.status,relations:[]})},new Map);Bba(b);e=b.map(function(g){return f.get(g)});e.includes(void 0)?a.asyncChoices=[]:a.asyncChoices=e;a.choices=[].concat(q(a.choices),q(a.asyncChoices));Uxd(a,a.asyncChoices);a.hasLoadedResults=!0;a.cdr.detectChanges()}},function(){a.asyncChoices=[];a.hasLoadedResults=!0;a.cdr.detectChanges()}))},Zxd=function(a,b){a.choices=ayd(a,b);a.hasLoadedResults=
!1;if(ya(b))a.hasLoadedResults=!0;else{var c=byd(b,a.defaultChoices),d,e,f;a.relatedIssues.get({query:c,trackerId:(d=a.activeSession.getTracker())==null?void 0:d.trackerId,resourceType:(e=a.currentResource)==null?void 0:e.type,resourceId:(f=a.currentResource)==null?void 0:f.id,nonParallelRequest:!0}).then(function(g){a.currentQuery===b&&(g=g.issueDigests.map(function(k){return{resourceId:k.issueId,displayText:k.title,status:k.status,relations:[]}}),a.choices=[].concat(q(a.choices),q(g)),a.cdr.detectChanges())},
function(g){a.errorHandler.errorHandler(null,g)}).finally(function(){a.hasLoadedResults=!0})}},$xd=function(a,b){return a.defaultChoices.filter(function(c){return c.resourceId.toString().startsWith(b[0])})},ayd=function(a,b){return ya(b)?a.defaultChoices:a.defaultChoices.filter(function(c){return c.displayText.toLowerCase().startsWith(b.toLowerCase())})};RX.prototype.getIssueLink=function(a){return ss(a.resourceId)};
var qjb=function(a){return a.relations.map(function(b){return cyd.get(b)}).filter(function(b){return!!b}).join("/")},byd=function(a,b){if(b.length===0)return a;b=b.map(function(c){return c.resourceId}).join("|");return a+" -id:("+b+")"};RX.prototype.onEnter=function(a){var b;((b=this.autocomplete)==null?0:b.panelOpen)&&a.stopPropagation()};da.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(){var a;return function(b){return(a||(a=Fd(RX)))(b||RX)}}();
RX.\u0275cmp=D({type:RX,selectors:[["b-simple-issue-picker"]],viewQuery:function(a,b){a&1&&hg(OX,5);if(a&2){var c;lg(c=mg())&&(b.autocomplete=c.first)}},inputs:{defaultChoices:"defaultChoices",currentResource:"currentResource",allowMultipleIds:"allowMultipleIds"},outputs:{entrySelect:"entrySelect",queryChange:"queryChange"},standalone:!1,features:[Gg([MX,bQ]),Ef,jx],decls:10,vars:7,consts:[["auto","matAutocomplete"],["issueHovercard","onedevHovercard"],["cardBody",""],[1,"bv2-issue-picker"],[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,"ngModelChange","keydown.enter","keydown.alt.arrowright","ngModel","matAutocomplete"],[1,"issue-picker","base-resource-picker",3,"optionActivated","optionSelected","displayWith"],["disabled",""],["disabled","",1,"bv2-resource-picker-message"],[1,"bv2-resource-picker-item",
"bv2-issue-picker-item",3,"value"],[1,"bv2-issue-picker-message"],[1,"spinner-container"],[3,"large"],["role","region","tabindex","0"],[1,"icon-s","margin-none",3,"svgIcon"],[1,"bv2-issue-picker-issue-id",3,"title"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],["mat-icon-button","","aria-label","Go to issue page.","data-stable","issue-pop-out","target","_blank",1,"small","bv2-issue-picker-pop-out",3,"click","onedevHovercardTrigger","href"],["svgIcon","pop-out",1,"icon-s"],[1,
"bv2-issue-picker-relations"],[1,"bv2-issue-picker-description",3,"title","innerHTML"],[3,"onedevIsHovercardReady","issueId"]],template:function(a,b){if(a&1){var c=t();K(0,"div",3);F(1,ljb,3,0,"div");K(2,"div",4)(3,"input",5);N("ngModelChange",function(d){u(c);return v(b.search(d))})("keydown.enter",function(d){u(c);return v(b.onEnter(d))})("keydown.alt.arrowright",function(){u(c);b.activeChoice&&b.domSafe.openInNewTab(b.getIssueLink(b.activeChoice));return v()});L();K(4,"mat-autocomplete",6,0);N("optionActivated",
function(d){u(c);b.activeChoice=d.option==null?null:d.option.value;return v()})("optionSelected",function(d){u(c);return v(b.selectIssue(d.option.value))});F(6,mjb,3,1,"mat-option",7);F(7,njb,2,0,"mat-option",8);Nf(8,rjb,14,15,"mat-option",9,Mf);L()()()}a&2&&(a=qg(5),B(),G(b.searchingForSelf?1:-1),B(2),I("ngModel",b.query)("matAutocomplete",a),If("aria-label",b.selectedIssues.length>0?"issue "+b.selectedIssues[0].resourceId+" selected. Change.":"Choose issue"),B(),I("displayWith",b.getTextToPutInInputOnSelect),
B(2),G(b.query===""||b.hasLoadedResults?-1:6),B(),G(b.query!==""&&b.hasLoadedResults&&b.choices.length===0?7:-1),B(),Of(b.choices))},dependencies:[Jy,xj,fE,mE,KK,LK,SK,MK,MW,QX,NX,hA,OX,kB,iB,cU,cV],styles:['b-simple-issue-picker input{width:450px}b-simple-issue-picker .bv2-issue-picker-message{color:#c5221f;color:var(--text-bad);padding:5px;text-align:center}.mat-mdc-autocomplete-panel.issue-picker{max-height:400px;width:450px}.mat-mdc-autocomplete-panel.issue-picker .mat-mdc-option{font-size:inherit;line-height:inherit;white-space:inherit;height:auto;min-height:40px;padding:10px}.mat-mdc-autocomplete-panel.issue-picker .mat-mdc-option .mdc-list-item__primary-text{flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-mdc-autocomplete-panel.issue-picker .bv2-resource-picker-item{cursor:pointer;padding:10px}.mat-mdc-autocomplete-panel.issue-picker .bv2-resource-picker-item:hover,.mat-mdc-autocomplete-panel.issue-picker .bv2-resource-picker-item.selected{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.mat-mdc-autocomplete-panel.issue-picker .bv2-resource-picker-message{color:#5f6368;color:var(--muted);padding:5px;text-align:center}.mat-mdc-autocomplete-panel.issue-picker .mat-icon.margin-none{vertical-align:bottom}.mat-mdc-autocomplete-panel.issue-picker .margin-none{margin:0}.mat-mdc-autocomplete-panel.issue-picker .bv2-issue-picker-relations{color:#5f6368;color:var(--muted);float:right;font-style:italic}.mat-mdc-autocomplete-panel.issue-picker .bv2-issue-picker-issue-id{margin-left:5px;opacity:.8}.mat-mdc-autocomplete-panel.issue-picker .bv2-issue-picker-description{margin-left:20px}.mat-mdc-autocomplete-panel.issue-picker .bv2-issue-picker-pop-out{float:right;visibility:hidden}.mat-mdc-autocomplete-panel.issue-picker .bv2-resource-picker-item:hover .bv2-issue-picker-pop-out,.mat-mdc-autocomplete-panel.issue-picker .bv2-resource-picker-item.selected .bv2-issue-picker-pop-out{visibility:visible}.mat-mdc-autocomplete-panel.issue-picker .spinner-container{height:40px}[mat-dialog-content] .bv2-rel-issue-bubble-issue-picker{padding-bottom:5px}[mat-dialog-content] .bv2-rel-issue-id-link{margin-left:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[mat-dialog-content] .bv2-rel-issue-title-link span{display:inline-block}[mat-dialog-content] .bv2-rel-issue-title-link span.bv2-rel-issue-title-link-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:350px;vertical-align:middle;text-decoration:underline}[mat-dialog-content] .bv2-rel-issue-error{color:#c5221f;color:var(--bad-text)}[mat-dialog-content] .bv2-rel-issue-narrow-to-component{color:#1a73e8;color:var(--text-primary);float:left;height:32px;margin-top:7px;width:28px}[mat-dialog-content] .bv2-rel-issue-issue-picker{float:left;margin-top:10px;vertical-align:top}[mat-dialog-content] .bv2-rel-issue-text{float:left;width:370px}[mat-dialog-content] .bv2-rel-issue-apply-button{float:right}[mat-dialog-content] .bv2-rel-issue-preview-link{float:left;margin:0px}[mat-dialog-content] .bv2-rel-issue-row,[mat-dialog-content] .bv2-rel-issue-issue-picker-full-width{width:475px}[mat-dialog-content] .bv2-rel-issue-search{margin-top:10px;clear:both}[mat-dialog-content] .bv2-narrow-search-comp-btn{background:no-repeat url("https://www.gstatic.com/buganizer/img/v0/filter.png");background-position:center center;background-size:20px 16px;cursor:pointer;display:inline-block;height:25px;opacity:.8;vertical-align:middle;width:25px}[mat-dialog-content] .bv2-narrow-search-comp-btn[aria-checked=true]{opacity:.2}\n'],
encapsulation:2});var cyd=new Map([["BLOCKED_BY","blocked"],["BLOCKING","blocking"],["DUPLICATE","duplicate"]]);var dyd=function(){this.dialogRef=p(RA);this.params=p(WQ);this.DEFAULTS={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1};this.originalData=p(TA);this.data=Object.assign({},this.DEFAULTS,this.originalData);this.queryRestriction=this.data.componentId?"componentid:"+this.data.componentId+"+":"";this.isQueryRestricted=!1;this.selectedIssues=[]},vjb=function(a){if(a.queryRestriction!==""&&a.issuePicker!=null){var b=a.issuePicker.query;a.issuePicker.query=a.isQueryRestricted?b.replace(new RegExp(Yr(a.queryRestriction)+
" ?"),""):a.queryRestriction+" "+b}};h=dyd.prototype;h.onQueryChange=function(a){this.isQueryRestricted=this.queryRestriction!==""&&a.includes(this.queryRestriction)};h.onEnter=function(){if(this.selectedIssues.length!==0)this.onPressConfirm()};h.onEscape=function(){this.dialogRef.close()};h.onPressConfirm=function(){var a,b={selectedIssueIds:this.selectedIssues.map(function(c){return c.resourceId}),lastSearchType:(a=this.issuePicker)==null?void 0:a.lastSearchType};this.dialogRef.close(b)};
h.onPressCancel=function(){this.dialogRef.close()};dyd.\u0275fac=function(a){return new (a||dyd)};
dyd.\u0275cmp=D({type:dyd,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&hg(RX,5);if(a&2){var c;lg(c=mg())&&(b.issuePicker=c.first)}},hostBindings:function(a,b){a&1&&N("keydown.escape",function(){return b.onEscape()})},standalone:!1,decls:15,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-rel-issue-text"],[1,"bv2-rel-issue-preview-link"],[1,"bv2-rel-issue-search"],[1,"bv2-rel-issue-bubble-issue-picker"],[1,"bv2-rel-issue-narrow-to-component"],[1,"bv2-rel-issue-issue-picker",
3,"keydown.enter","entrySelect","queryChange","defaultChoices","currentResource","allowMultipleIds"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","confirm",3,"click","disabled"],["target","_blank",1,"bv2-rel-issue-id-link",3,"href"],["target","_blank",1,"keep-underline","bv2-rel-issue-title-link",3,"href"],[1,"bv2-rel-issue-title-link-txt"],["svgIcon","pop-out",1,"icon-xs"],["role","checkbox",
"tabindex","0","aria-label","Include subcomponents",1,"bv2-narrow-search-comp-btn","keep-focus-ring",3,"click","keyup.space","matTooltip"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1),L(),K(2,"div",1)(3,"div",2),F(4,tjb,3,0,"div",3),F(5,ujb,6,3,"div",3),L(),K(6,"div",4)(7,"div",5),F(8,wjb,2,2,"div",6),K(9,"b-simple-issue-picker",7),N("keydown.enter",function(){return b.onEnter()})("entrySelect",function(c){b.selectedIssues=c})("queryChange",function(c){return b.onQueryChange(c)}),L()()()(),K(10,
"div",8)(11,"button",9),N("click",function(){return b.onPressCancel()}),Q(12," Cancel "),L(),K(13,"button",10),N("click",function(){return b.onPressConfirm()}),Q(14," Confirm "),L()());a&2&&(B(),S(" ",b.data.title,"\n"),B(3),G(b.selectedIssues.length>1?4:-1),B(),G(b.selectedIssues.length===1?5:-1),B(3),G(b.queryRestriction?8:-1),B(),wg("bv2-rel-issue-issue-picker-full-width",!!b.queryRestriction),I("defaultChoices",b.data.defaultChoices)("currentResource",b.data.currentResource)("allowMultipleIds",
b.data.allowMultipleIds),B(4),I("disabled",!b.selectedIssues.length))},dependencies:[Jy,kB,gB,XA,ZA,YA,vK,nA,RX],encapsulation:2});var SX=function(){};SX.\u0275fac=function(a){return new (a||SX)};SX.\u0275mod=$e({type:SX});SX.\u0275inj=Fc({imports:[PX]});var eyd=function(){};eyd.\u0275fac=function(a){return new (a||eyd)};eyd.\u0275mod=$e({type:eyd});eyd.\u0275inj=Fc({imports:[fV,WO,DE,TK,xX,SX,mB,TJ,wK,eU]});var fyd=new dd("XapHatsSurveyApiKey"),gyd=new dd("XapHatsSurveyLocale"),hyd=new dd("XapHatsSurveyWindow"),iyd=new dd("XapHatsSurveyListnrProductId");var jyd=new Map([[0,1],[1,2]]),kyd={anchor:1,verticalMargin:0,horizontalMargin:0},TX=function(a,b,c,d,e){var f=function(){var g={apiKey:a,locale:c!=null?c:"en-US",window:d};g=Xad(bbd,"help.service.Lazy.create",b,{apiKey:g.apiKey||g.apiKey,asxUiUri:g.asxUiUri||g.asxUiUri,environment:g.environment||g.environment,flow:g.flow||g.flow,frdProductData:g.frdProductData||g.frdProductData,frdProductDataSerializedJspb:g.frdProductDataSerializedJspb||g.frdProductDataSerializedJspb,helpCenterPath:g.helpCenterPath||
g.helpCenterPath,locale:g.locale||g.locale||"en-US".replace(/-/g,"_"),nonce:g.nonce||g.nonce,productData:g.productData||g.productData,receiverUri:g.receiverUri||g.receiverUri,renderApiUri:g.renderApiUri||g.renderApiUri,theme:g.theme||g.theme,window:g.window||g.window});return new abd(g)};this.helpService=e?e.runOutsideAngular(f):f()},lyd=function(a,b){var c=c===void 0?{}:c;var d=d===void 0?{}:d;var e=d.anonymous?void 0:d.authUser||0;return(new Td(function(f){a.helpService.requestSurvey({triggerId:b,
enableTestingMode:d.enableTestingMode,enableFeedback1pEndpoint:d.enableFeedback1pEndpoint,nonProd:d.nonProd,thirdPartyDomainSupportEnabled:d.thirdPartyDomainSupportEnabled,callback:function(g){g.surveyData!=null&&f.next(g.surveyData);f.complete()},authuser:e})})).pipe(yf(function(f){return new Td(function(g){var k;a.helpService.presentSurvey({surveyData:f,colorScheme:d.theme?jyd.get(d.theme):1,authuser:e,customZIndex:(k=d.zIndex)!=null?k:1E4,customLogoUrl:d.customLogoUrl,productData:c,parentDomElementId:d.parentDomElementId,
listener:{surveyClosed:function(){g.complete()},surveyPositioning:function(){return Object.assign({},kyd,d.placement)}}});g.next(f.surveyMetadata)})}))};TX.\u0275fac=function(a){return new (a||TX)(Xc(fyd),Xc(iyd),Xc(gyd,8),Xc(hyd,8),Xc(Rg,8))};TX.\u0275prov=Dc({token:TX,factory:TX.\u0275fac,providedIn:"root"});var UX=function(){this.dialog=p(UA);this.analytics=p(eQ);this.hatsService=p(TX);this.activeSession=p(uu)};
UX.prototype.open=function(a,b){var c=this,d=myd(a),e=d.dialog,f=d.config;return new Promise(function(g){SA(c.dialog.open(e,f)).subscribe(function(k){var l,r=(l=k==null?void 0:k.selectedIssueIds)!=null?l:[],w;k=(w=k==null?void 0:k.lastSearchType)!=null?w:"";w=[a.originIsBulk?"bulk":void 0,r.length>1?"search-multi":"search",a.edgeType].filter(Boolean).join("-");c.analytics.trackEvent("issuePicker",w,k);b==null||b(r);g(r);c.activeSession.isInternalSession()&&k==="id"&&lyd(c.hatsService,"etC5mMepi0g6pPHSLo10TaNs15gn").pipe(lf(1)).subscribe()})})};
var myd=function(a){var b={panelClass:"no-jitter",data:a};return a.edgeType==="canonical"?(b.width="60vw",b.minWidth="800px",{dialog:VW,config:b}):{dialog:dyd,config:b}};UX.\u0275fac=function(a){return new (a||UX)};UX.\u0275prov=Dc({token:UX,factory:UX.\u0275fac,providedIn:"root"});var nyd=function(){};nyd.\u0275fac=function(a){return new (a||nyd)};nyd.\u0275mod=$e({type:nyd});nyd.\u0275inj=Fc({imports:[eyd,Nxd]});var oyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oyd,W);oyd.prototype.getContentJudgement=function(){return X(this,Ho,1)};oyd.prototype.setContentJudgement=function(a){return Mi(this,Ho,1,a)};var pyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pyd,W);pyd.prototype.getContentJudgement=function(){return X(this,Ho,1)};pyd.prototype.setContentJudgement=function(a){return Mi(this,Ho,1,a)};var qyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,qyd.messageId)};Y(qyd,W);qyd.prototype.getIt=function(){return X(this,oyd,4,jb)};qyd.prototype.setIt=function(a){return Mi(this,oyd,4,a,jb)};qyd.messageId="b.CreateContentJudgementRequest";var ryd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ryd,W);var syd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,syd.messageId)};Y(syd,W);syd.prototype.getIt=function(){return X(this,ryd,2,jb)};syd.prototype.setIt=function(a){return Mi(this,ryd,2,a,jb)};syd.messageId="b.ListContentJudgementsResponse";var tyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,tyd.messageId)};Y(tyd,W);tyd.prototype.getIt=function(){return X(this,pyd,2,jb)};tyd.prototype.setIt=function(a){return Mi(this,pyd,2,a,jb)};tyd.messageId="b.UpdateContentJudgementRequest";var VX=function(){this.executor=p(bO)};VX.prototype.create=function(a,b,c){var d=new qyd,e=d.setIt,f=new oyd,g=f.setContentJudgement;a=q0a(FVa({resourcePath:a,severity:b,judgementReason:c,contentJudgementId:void 0}));a=Hm(a,6,2);d=e.call(d,g.call(f,a));return this.executor.post({url:"action/content_judgements",body:d,responseConstructor:Nr}).pipe(A(rYa))};
VX.prototype.update=function(a){var b=q0a(FVa(a));b=Hw(b,9);b=(new tyd).setIt((new pyd).setContentJudgement(b));return this.executor.post({url:"action/content_judgements/"+a.contentJudgementId,body:b,responseConstructor:Nr}).pipe(A(rYa))};VX.prototype.list=function(a){return this.executor.get({url:"action/content_judgements",options:{params:{resource_path:a}},responseConstructor:syd}).pipe(A(function(b){b=b.getIt();return Bi(b,Ho,1,Ci()).map(GVa)}))};VX.\u0275fac=function(a){return new (a||VX)};
VX.\u0275prov=Dc({token:VX,factory:VX.\u0275fac,providedIn:"root"});var WX=function(){var a=this;this.dialogRef=p(RA);this.documentationLinks=p(cS);this.contentJudgements=p(VX);this.activeSession=p(uu);this.data=p(TA);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.RestrictionSeverity=Jbd;this.loaded=!1;this.minimumSeverity="RESTRICTION_SEVERITY_UNSPECIFIED";this.severity=this.data.severity;this.data.resourcePath?this.contentJudgements.list(this.data.resourcePath).subscribe(function(b){var c="RESTRICTION_SEVERITY_UNSPECIFIED";b=m(b);for(var d=b.next();!d.done;d=
b.next())d=d.value,wm(d.judge)===a.activeSession.getUserEmail()?uyd(a,d):vyd(d.severity,c)&&(c=d.severity);a.minimumSeverity=c;vyd(a.minimumSeverity,a.severity)&&(a.severity=a.minimumSeverity);a.loaded=!0}):(uyd(this,this.data.contentJudgement),this.loaded=!0)};WX.prototype.canInteract=function(){return this.loaded&&(this.data.hasAclToCreate||!!this.judgement)};
var vyd=function(a,b){return xjb(a)>xjb(b)},uyd=function(a,b){if(a.judgement=b)a.severity=b.severity},wyd=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.";
vyd(a.minimumSeverity,"NONE_DETECTED")&&(b+=" You can only select a restriction level equal or greater than the severity already given by other users.");return b};WX.prototype.getContentJudgement=function(){var a;this.judgement?a=Object.assign({},this.judgement):a={contentJudgementId:void 0,resourcePath:void 0,severity:"RESTRICTION_SEVERITY_UNSPECIFIED",judgementReason:""};a.severity=this.severity;a.judgementReason="None specified";return a};
WX.prototype.onSaveClick=function(){var a=this;if(this.data.resourcePath){if(this.judgement==null){this.contentJudgements.create(this.data.resourcePath,this.severity,"None specified").subscribe(function(){a.dialogRef.close({contentJudgement:a.getContentJudgement()})});return}if(this.judgement.severity!==this.severity||this.judgement.judgementReason!=="None specified"){this.contentJudgements.update(this.getContentJudgement()).subscribe(function(){a.dialogRef.close({contentJudgement:a.getContentJudgement()})});
return}}this.dialogRef.close({contentJudgement:this.getContentJudgement()})};WX.prototype.onNoClick=function(){this.dialogRef.close(null)};WX.\u0275fac=function(a){return new (a||WX)};
WX.\u0275cmp=D({type:WX,selectors:[["b-content-judgement-dialog"]],standalone:!1,decls:28,vars:11,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],["mat-dialog-content",""],["id","restriction-radio-group-label"],["target","_blank","aria-label","Learn more about restricted access",1,"keep-focus-ring",3,"rel"],["aria-labelledby","restriction-radio-group-label",3,"ngModelChange","ngModel"],[1,"restriction-radio","restriction-none",3,"value","disabled"],[1,"restriction-radio","restriction-pii",
3,"value","disabled"],[1,"restriction-radio","restriction-spii",3,"value","disabled"],["type","button","mat-button","",1,"medium","content-judgement-dialog-cancel",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","content-judgement-dialog-confirm",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"header",0)(1,"h1"),M(2,"mat-icon",1),K(3,"div"),Q(4," Set restriction "),L()()(),K(5,"section",2)(6,"label",3),Q(7),K(8,"a",4),Q(9," Learn More "),
L()(),K(10,"mat-radio-group",5),Cg("ngModelChange",function(c){Bg(b.severity,c)||(b.severity=c);return c}),K(11,"mat-radio-button",6),Q(12," No restriction "),K(13,"div"),Q(14,' Users with "View issues" can access. '),L()(),K(15,"mat-radio-button",7),Q(16," Restricted "),K(17,"div"),Q(18,' Users with "View restricted content" can access. '),L()(),K(19,"mat-radio-button",8),Q(20," Restricted+ "),K(21,"div"),Q(22,' Users with "View restricted+ content" can access. '),L()()()(),K(23,"mat-dialog-actions")(24,
"button",9),N("click",function(){return b.onNoClick()}),Q(25," Cancel "),L(),K(26,"button",10),N("click",function(){return b.onSaveClick()}),Q(27," Set "),L()());a&2&&(B(7),S(" ",wyd(b)," "),B(),I("rel",b.EXTERNAL_LINK_REL),If("href",b.documentationLinks.getRestrictedAccessHelpLink(),Ne),B(2),Ag("ngModel",b.severity),B(),I("value",b.RestrictionSeverity.NONE_DETECTED)("disabled",!b.canInteract()||vyd(b.minimumSeverity,b.RestrictionSeverity.NONE_DETECTED)),B(4),I("value",b.RestrictionSeverity.RESTRICTED)("disabled",
!b.canInteract()||vyd(b.minimumSeverity,b.RestrictionSeverity.RESTRICTED)),B(4),I("value",b.RestrictionSeverity.RESTRICTED_PLUS)("disabled",!b.canInteract()||vyd(b.minimumSeverity,b.RestrictionSeverity.RESTRICTED_PLUS)),B(7),I("disabled",!b.canInteract()))},dependencies:[Jy,kB,gB,XA,ZA,YA,tT,uT,fE,mE],styles:["h1[_ngcontent-%COMP%]{text-align:center}.restriction-radio[_ngcontent-%COMP%]{display:block;margin:10px;padding:4px;line-height:1.5em}.restriction-radio[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}/*# sourceMappingURL=content_judgement_dialog.css.map */"]});var XX=function(){this.dialogRef=p(RA);this.documentationLinks=p(cS);this.data=p(TA);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.resource=this.data.resource;this.piiRetention=this.data.piiRetention;this.acknowledgeToMatchIssueRetention=!1};XX.prototype.canInteract=function(){return!xyd(this)||this.acknowledgeToMatchIssueRetention};var xyd=function(a){return a.piiRetention==="INDEFINITE"};XX.prototype.onSaveClick=function(){this.dialogRef.close(1)};XX.prototype.onNoClick=function(){this.dialogRef.close(0)};
XX.\u0275fac=function(a){return new (a||XX)};
XX.\u0275cmp=D({type:XX,selectors:[["b-update-retention-dialog"]],standalone:!1,decls:19,vars:6,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],["mat-dialog-content",""],["target","_blank","aria-label","Learn more about component retention",3,"rel"],[3,"ngModel"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","update-retention-dialog-cancel",3,"click"],["type","button","mat-button","","color","primary","cdkFocusInitial","",1,"dialog-primary-action","medium",
"update-retention-dialog-confirm",3,"click","disabled"],[3,"ngModelChange","ngModel"]],template:function(a,b){a&1&&(K(0,"h1",0),M(1,"mat-icon",1),K(2,"div"),F(3,yjb,2,1,"span")(4,zjb,2,0,"span"),L()(),K(5,"div",2),F(6,Ajb,8,1,"span")(7,Bjb,3,2,"span"),K(8,"span")(9,"a",3),Q(10," Learn More "),L()(),K(11,"div")(12,"span"),F(13,Cjb,2,1,"mat-checkbox",4),L()()(),K(14,"div",5)(15,"button",6),N("click",function(){return b.onNoClick()}),Q(16," Cancel "),L(),K(17,"button",7),N("click",function(){return b.onSaveClick()}),
Q(18," Save "),L()());a&2&&(B(3),G(xyd(b)?3:4),B(3),G(xyd(b)?6:7),B(3),I("rel",b.EXTERNAL_LINK_REL),If("href",qu(),Ne),B(4),G(xyd(b)?13:-1),B(4),I("disabled",!b.canInteract()))},dependencies:[Jy,kB,gB,XA,ZA,YA,kL,hI,fE,mE],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-mdc-dialog-content[_ngcontent-%COMP%]{overflow:inherit}/*# sourceMappingURL=update_retention_dialog.css.map */"]});var yyd=function(){this.activeSession=p(uu);this.errorHandler=p(pO);this.eventsForIssueFridge=p(NP);this.issueFullFridge=p(gQ);this.issueCommentsService=p(sS);this.issueInteractionsTracking=p(CS);this.butterBar=p(UN);this.editIssueService=p(GS);this.formattedCommentsForIssueFridge=p(PP);this.userPreferencesManager=p(hR)},zyd=function(a,b){var c=b.issueId;var d=b.newCommentId;var e=b.newComment;var f=b.newCommentFormattingMode;var g=b.recaptchaToken;var k,l;y(function(r){switch(r.nextAddress){case 1:k=
a.editIssueService.savingState(c);if(!e.trim())return a.butterBar.showWarning("New comment cannot be empty."),r.return();Sr(k,"commentEdit");Rr(a.butterBar,"Saving comment edit...",0);Tr(a.issueInteractionsTracking,c,{label:d===1?"description":"comment"});Wd(r,2,3);return z(r,a.issueCommentsService.update(c,d,e,f,g),5);case 5:Rr(a.butterBar,"Comment edit successful.",4E3),a.eventsForIssueFridge.manualUpdate(c,function(w){w.events=TTa(w.events,d,{formattedComment:void 0,unlinkifiedComment:e,formattingMode:f})}),
a.issueFullFridge.poke(c),a.formattedCommentsForIssueFridge.invalidate(c+"-"+d),a.eventsForIssueFridge.poke(c);case 3:Xd(r);ES(k,"commentEdit");Zd(r,0);break;case 2:l=$d(r),rO(a.errorHandler,l),r.jumpTo(3)}})};yyd.\u0275fac=function(a){return new (a||yyd)};yyd.\u0275prov=Dc({token:yyd,factory:yyd.\u0275fac,providedIn:"root"});var Ayd=function(a,b,c,d){this.objectId=a;this.version=b;this.payload=c;this.isReplay=d===void 0?!1:d},Byd=function(){},Cyd=function(a){this.timestampMicros=a};Djb.prototype.reset=function(){this.currentMaxDelayMs_=this.initialMaxDelayMs_;this.inRetryMode_=!1};var Dyd=function(a){var b=0;a.inRetryMode_&&(b=a.random_()*.2,b=Math.ceil((1-b)*a.currentMaxDelayMs_),a.currentMaxDelayMs_<a.maxDelayMs_&&(a.currentMaxDelayMs_*=2,a.currentMaxDelayMs_>a.maxDelayMs_&&(a.currentMaxDelayMs_=a.maxDelayMs_)));a.inRetryMode_=!0;return b};var YX=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YX,W);var Fyd=function(){var a=new YX;return Qo(a,1,Eyd,yb(!0))},Gyd=function(){var a=new YX;return Qo(a,2,Eyd,yb(!0))},Eyd=[1,2,3,15];var Rjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rjb,W);var Qjb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qjb,W);var Ks=[1,2,3,4,5,6,7,8,9,10,11,12,13];var Js=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Js,W);Js.prototype.getPartsList=function(){return Bi(this,Qjb,1,Ci())};Js.prototype.addParts=function(a){return Np(this,1,Qjb,a)};var Is=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Is,W);Is.prototype.getName=function(){return $v(this,1,Hyd)};Is.prototype.setName=function(a){return Bo(this,1,Hyd,a)};Is.prototype.hasName=function(){return lr(this,1,Hyd)!=null};Is.prototype.getNameOrUndefined=function(){return lr(this,1,Hyd)};var Hyd=[1,2];var Iyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Iyd,W);h=Iyd.prototype;h.setProject=function(a){Mi(this,Is,1,a)};h.getOwner=function(){return X(this,YX,2)};h.setOwner=function(a){return Mi(this,YX,2,a)};h.getPath=function(){return X(this,Js,3)};h.setPath=function(a){return Mi(this,Js,3,a)};h.hasPath=function(){return xi(this,Js,3)};var Jyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jyd,W);h=Jyd.prototype;h.setProject=function(a){Mi(this,Is,1,a)};h.getOwner=function(){return X(this,YX,2)};h.setOwner=function(a){return Mi(this,YX,2,a)};h.getPrefix=function(){return X(this,Js,3)};h.setPrefix=function(a){Mi(this,Js,3,a)};var ZX=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ZX,W);ZX.prototype.getVersion=function(){return Ww(this,1)};ZX.prototype.setVersion=function(a){return En(this,1,a)};ZX.prototype.getVersionOrUndefined=function(){return Rw(this,1)};var Kyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kyd,W);h=Kyd.prototype;h.getHeader=function(){return X(this,ZX,4)};h.hasHeader=function(){return xi(this,ZX,4)};h.getStartTimeMicros_asString=function(){return nn(this,1)};h.setStartTimeMicros=function(a){return Jn(this,1,a)};h.getPrefix=function(){return bm(this,Jyd,6,Lyd)};h.setPrefix=function(a){Wo(this,6,Lyd,a)};var Lyd=[2,3,6];var Myd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Myd,W);var Nyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nyd,W);Nyd.prototype.setAffinitization=function(a){Gn(this,2,a)};Nyd.prototype.getAffinitizationOrUndefined=function(){return vp(this,2)};Nyd.prototype.getStartTimeMicros_asString=function(){return tn(this,4)};Nyd.prototype.setStartTimeMicros=function(a){return vn(this,4,a)};var Oyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Oyd,W);var Pyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Pyd,W);h=Pyd.prototype;h.setStreamId=function(a){return Jn(this,1,a)};h.getStreamIdOrUndefined_asString=function(){return Lw(this,1)};h.getOpen=function(){return bm(this,Kyd,2,Qyd)};h.setOpen=function(a){return Wo(this,2,Qyd,a)};h.getClose=function(){return bm(this,Oyd,3,Qyd)};h.setClose=function(a){Wo(this,3,Qyd,a)};h.hasClose=function(){return Qi(this,Oyd,3,Qyd)};h.setAffinitization=function(a){Gn(this,4,a)};
h.getAffinitizationOrUndefined=function(){return vp(this,4)};var Qyd=[2,3];var Ryd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ryd,W);Ryd.prototype.setRequestsList=function(a){return Ni(this,1,a)};Ryd.prototype.addAndReturnRequests=function(){return Ac(this,1,Pyd)};var Syd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Syd,W);Syd.prototype.getChannelId=function(){return ui(this,1)};Syd.prototype.setChannelId=function(a){return oj(this,1,a)};var Tyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Tyd,W);var $X=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($X,W);$X.prototype.getCode=function(){return wi(this,1)};$X.prototype.setCode=function(a){return Gn(this,1,a)};$X.prototype.getCodeOrUndefined=function(){return vp(this,1)};var Uyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Uyd,W);var Vyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vyd,W);h=Vyd.prototype;h.getPayloadOrUndefined=function(){return fm(this,2,void 0,void 0,uc)};h.getVersion=function(){return Xw(this,3)};h.setVersion=function(a){return Jn(this,3,a)};h.getVersionOrUndefined=function(){return Qb(fm(this,3))};h.getVersionOrUndefined_asString=function(){return Lw(this,3)};var Wyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wyd,W);var Xyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xyd,W);var Yyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Yyd,W);Yyd.prototype.getStart=function(){return bm(this,Xyd,1,Zyd)};Yyd.prototype.setStart=function(a){return Wo(this,1,Zyd,a)};Yyd.prototype.hasChanges=function(){return Qi(this,Wyd,2,Zyd)};var Zyd=[1,2,3,5];var $yd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($yd,W);$yd.prototype.getChannelId=function(){return ui(this,1)};$yd.prototype.setChannelId=function(a){return oj(this,1,a)};var azd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(azd,W);azd.prototype.getStatus=function(){return X(this,UEc,1)};azd.prototype.setStatus=function(a){return Mi(this,UEc,1,a)};azd.prototype.hasStatus=function(){return xi(this,UEc,1)};var bzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bzd,W);h=bzd.prototype;h.setStreamId=function(a){return Jn(this,1,a)};h.getStreamIdOrUndefined_asString=function(){return Lw(this,1)};h.getClose=function(){return bm(this,azd,3,czd)};h.setClose=function(a){Wo(this,3,czd,a)};h.hasClose=function(){return Qi(this,azd,3,czd)};var czd=[2,3,4];var dzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dzd,W);dzd.prototype.getResponsesList=function(){return Bi(this,bzd,1,Ci())};dzd.prototype.getStatus=function(){return X(this,$X,2)};dzd.prototype.setStatus=function(a){return Mi(this,$X,2,a)};dzd.prototype.hasStatus=function(){return xi(this,$X,2)};var ezd=function(){GB.call(this,"d")};yw(ezd,GB);var fzd=function(){GB.call(this,"c")};yw(fzd,GB);var gzd=function(a,b,c,d){this.uri=a;this.authMethod=b;this.useFetchApi=c;this.addDomainPrefix=d},hzd=function(a){var b=a.uri.clone();a.addDomainPrefix&&UB(b,Math.floor(Math.random()*10).toString()+"-"+b.getDomain());return b},izd=function(a,b,c,d,e){this.channelMessageHandler=a;this.channelStatusHandler=b;this.config=c;this.channelCreator=d;this.state=0;this.channelHandler=new zu;this.channel=this.createWebChannel(e)};
izd.prototype.createWebChannel=function(a){var b=this;a={sendRawJson:!0,messageContentType:"application/json+protobuf",httpSessionIdParam:void 0,messageUrlParams:Object.assign({},{gsessionid:a},this.config.authMethod.getQueryParameters()),detectBufferingProxy:!0,useFetchStreams:this.config.useFetchApi,messageHeaders:this.config.authMethod.getHeaders(),supportsCrossDomainXhr:this.config.authMethod.usesCredentialedRequests()};a=this.channelCreator(hzd(this.config).toString(),a);this.channelHandler.listen(a,
"a",function(){b.channelStatusHandler.onOpen()});this.channelHandler.listen(a,"b",function(){b.channelStatusHandler.onClose((new jzd(b.channel.channel_)).getLastStatusCode());b.state=2;b.channel.removeAllListeners();b.channelHandler.removeAll()});this.channelHandler.listen(a,"d",function(c){if(c.data&&Array.isArray(c.data)&&c.data.length===1)if(c.metadataKey&&c.metadataKey==="status"){c=nea(EB,c.data[0][0]);var d=b.channelStatusHandler;c.getCode()!==0&&(d.channelEventCallback(new kzd(c)),d.handleError(c))}else c=
nea(dzd,c.data[0]),b.channelMessageHandler(c)});this.channelHandler.listen(a,"c",function(c){b.channelStatusHandler.onError(c,(new jzd(b.channel.channel_)).getLastStatusCode());c.status!==0&&(b.state=2)});return a};izd.prototype.open=function(){this.state===0&&(this.state=1,this.channel.open())};izd.prototype.close=function(){this.state!==2&&this.channel.close()};izd.prototype.send=function(a){a=a.serialize();this.channel.send(a)};var lzd,mzd=(new ZX).setVersion(9);lzd=Gn(mzd,2,5);var Fs=function(a){this.rep=a};Fs.prototype.equals=function(a){return this.rep===a.rep};var nzd=function(){var a=8;a=a===void 0?1:a;this.max=8;this.lastAddedTimestampMs=Date.now();this.tokens=a};nzd.prototype.update=function(){var a=Date.now(),b=this.tokens+(a-this.lastAddedTimestampMs)/3E5;this.tokens>=b||(this.tokens=Math.min(b,this.max),this.lastAddedTimestampMs=a)};var ozd=function(){},pzd=function(){},qzd=function(){},rzd=function(){},szd=function(){},tzd=function(){},uzd=function(a){this.error=a},kzd=function(a){this.status=a};var Sjb=function(a,b){this.seconds=a;this.nanos=b},Tjb=function(a){var b=new Si;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},Yjb=function(a){try{var b=Number(a.getSeconds()),c=a.getNanos();if(b<-62135596800)throw Error("We`"+b);if(253402300800<=b)throw Error("Xe`"+b);if(c<0)throw Error("Ye`"+c);if(1E9<=c)throw Error("Ze`"+c);if(!Number.isInteger(b))throw Error("$e`"+b);if(!Number.isInteger(c))throw Error("af`"+c);return new Sjb(b,c)}catch(d){return null}};
Sjb.prototype.equals=function(a){return this.seconds===a.seconds&&this.nanos===a.nanos};var Es=function(a,b){this.value=a;this.isDecreasing=!!b};
Es.prototype.equals=function(a){if(this.value===null)var b=a.value===null;else if(this.value instanceof Fs)b=a.value instanceof Fs?this.value.equals(a.value):!1;else if(this.isDecreasing!==a.isDecreasing)b=!1;else if(typeof this.value==="string"||typeof this.value==="number")b=this.value===a.value;else if(this.value instanceof Ls)b=a.value instanceof Ls?this.value.equals(a.value):!1;else if(this.value instanceof Uint8Array)if(a.value instanceof Uint8Array)a:if(b=this.value,a=a.value,b.length!==a.length)b=
!1;else{for(var c=0;c<b.length;++c)if(b[c]!==a[c]){b=!1;break a}b=!0}else b=!1;else b=this.value instanceof Sjb?a.value instanceof Sjb?this.value.equals(a.value):!1:!1;return b};var Ms=function(a,b){this.parts=a;this.isPrivate=b},Vjb=function(){for(var a=[],b=m($c.apply(0,arguments)),c=b.next();!c.done;c=b.next())c=c.value,c instanceof Es?a.push(c):a.push(new Es(c));return new Ms(a,!1)};
Ms.prototype.equals=function(a){var b;if(b=this.parts.length===a.parts.length)a:if(this.isPrivate!==a.isPrivate||this.parts.length>a.parts.length)b=!1;else{for(b=0;b<this.parts.length;++b)if(!this.parts[b].equals(a.parts[b])){b=!1;break a}b=!0}return b};var vzd=function(){},Kjb=function(a,b){this.apiKey=a;this.authUser=b};h=Kjb.prototype;h.getHeaders=function(){var a={},b;(b=Ppc([]))?(b=b.split(" "),b={scheme:b[0],hash:b[1]}):b=null;b!=null&&(a.Authorization=b.scheme+" "+b.hash,a["X-Goog-AuthUser"]=String(this.authUser||0));return a};h.getQueryParameters=function(){return{key:this.apiKey}};h.domainType=function(){return 0};h.usesCredentialedRequests=function(){return!0};h.getAuthUser=function(){return this.authUser};
var Hjb=function(a){this.oauthTokens=a};h=Hjb.prototype;h.getHeaders=function(){var a={};a.Authorization="OAuth "+this.oauthTokens.getValue();return a};h.getQueryParameters=function(){return{}};h.domainType=function(){return 1};h.usesCredentialedRequests=function(){return!0};h.getAuthUser=function(){};var Jjb=function(a){this.apiKey=a};h=Jjb.prototype;h.getHeaders=function(){return{}};h.getQueryParameters=function(){return{key:this.apiKey}};h.domainType=function(){return 1};
h.usesCredentialedRequests=function(){return!1};h.getAuthUser=function(){};var Ijb=function(a,b){this.apiKey=a;this.oauthTokens=b};h=Ijb.prototype;h.getHeaders=function(){return{Authorization:"Bearer "+this.oauthTokens.getValue()}};h.getQueryParameters=function(){return{key:this.apiKey}};h.domainType=function(){return 0};h.usesCredentialedRequests=function(){return!0};h.getAuthUser=function(){};var wzd=function(a,b,c){var d=Error.call(this,b);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;this.message=b;this.status=c;Object.setPrototypeOf(this,wzd.prototype);this.name="XhrError"};Y(wzd,Error);var xzd=function(a,b){b=b===void 0?Njb():b;this.baseUri=a;this.xhrIo=b};xzd.prototype.post=function(a,b,c,d){d=d===void 0?{}:d;return this.request("POST",a,b,c,d)};
var yzd=function(a,b){a.endsWith("/")&&(a=a.substring(0,a.length-1));b.startsWith("/")&&(b=b.substring(1));return a+"/"+b};
xzd.prototype.request=function(a,b,c,d,e){var f=this,g=new Os(this.baseUri);g.setPath(yzd(g.getPath(),b));if(e.queryParams){b=m(Object.entries(e.queryParams));for(var k=b.next();!k.done;k=b.next()){var l=m(k.value);k=l.next().value;l=l.next().value;Bt(g,k,l)}}var r={"Content-type":"application/json+protobuf"};Object.assign(r,e.extraHeaders);var w=c.serialize();return new Promise(function(x,C){var H;f.xhrIo.send(g,function(){var J=this.getStatus()===-1?void 0:this.getStatus();if(this.isSuccess())try{x(Csa(d,
this.getResponseText()))}catch(O){C(new wzd(4,"Failed to deserialize response from "+g+": "+this.getResponseText(),J))}else C(new wzd(this.getLastErrorCode(),this.getLastError(),J))},a,w,r,(H=e.timeoutMs)!=null?H:2E4,e.withCredentials)})};var zzd=null,Azd=function(){return zzd=zzd||new jj},Bzd=function(a){GB.call(this,"serverreachability",a)};yw(Bzd,GB);var Czd=function(a){var b=Azd();b.dispatchEvent(new Bzd(b,a))},Dzd=function(a,b){GB.call(this,"statevent",a);this.stat=b};yw(Dzd,GB);var aY=function(a){var b=Azd();b.dispatchEvent(new Dzd(b,a))},Ezd=function(a,b,c){GB.call(this,"timingevent",a);this.size=b;this.rtt=c};yw(Ezd,GB);
var Fzd=function(a,b,c){var d=Azd();d.dispatchEvent(new Ezd(d,a,b,c))},Gzd=function(a,b){if(typeof a!=="function")throw Error("cf");return ra.setTimeout(function(){a()},b)};var bY=function(){this.redactEnabled_=!0};bY.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Hzd=function(a,b,c,d,e,f){a.info(function(){if(a.redactEnabled_)if(f){var g="";for(var k=f.split("&"),l=0;l<k.length;l++){var r=k[l].split("=");if(r.length>1){var w=r[0];r=r[1];var x=w.split("_");g=x.length>=2&&x[1]=="type"?g+(w+"="+r+"&"):g+(w+"=redacted&")}}}else g=null;else g=f;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+g})},Izd=function(a,b,c,d,e,f,g){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+f+" "+g})},Kzd=function(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+
b+"): "+Jzd(a,c)+(d?" "+d:"")})},Lzd=function(a,b){a.info(function(){return"TIMEOUT: "+b})};bY.prototype.debug=function(){};bY.prototype.info=function(){};bY.prototype.warning=function(){};
var Jzd=function(a,b){if(!a.redactEnabled_)return b;if(!b)return null;try{var c=JSON.parse(b);if(c)for(var d=0;d<c.length;d++)if(Array.isArray(c[d])){var e=c[d];if(!(e.length<2)){var f=e[1];if(Array.isArray(f)&&!(f.length<1)){var g=f[0];if(g!="noop"&&g!="stop"&&g!="close")for(var k=1;k<f.length;k++)f[k]=""}}}return(new MGc).serialize(c)}catch(l){return a.debug("Exception parsing expected JS array - probably was not JS"),b}};var cY=function(a,b,c,d,e){this.channel_=a;this.channelDebug_=b;this.sid_=c;this.rid_=d;this.retryId_=e||1;this.eventHandler_=new zu(this);this.timeout_=45E3;this.extraHeaders_=null;this.successful_=!1;this.postData_=this.requestUri_=this.baseUri_=this.type_=this.requestStartTime_=this.watchDogTimeoutTime_=this.watchDogTimerId_=null;this.pendingMessages_=[];this.xmlHttp_=null;this.xmlHttpChunkStart_=0;this.lastError_=this.verb_=null;this.lastStatusCode_=-1;this.cancelled_=!1;this.readyStateChangeThrottleMs_=
0;this.readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new Mzd},Mzd=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},Nzd=function(a,b){switch(a){case 0:return"Non-200 return code ("+b+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Ozd={},Pzd={};
cY.prototype.setExtraHeaders=function(a){this.extraHeaders_=a};cY.prototype.setTimeout=function(a){this.timeout_=a};cY.prototype.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};cY.prototype.getPendingMessages=function(){return this.pendingMessages_};
var Rzd=function(a,b,c){a.type_=1;a.baseUri_=NHc(b.clone());a.postData_=c;a.decodeChunks_=!0;Qzd(a,null)},Qzd=function(a,b){a.requestStartTime_=Date.now();Szd(a);a.requestUri_=a.baseUri_.clone();var c=a.requestUri_,d=a.retryId_;Array.isArray(d)||(d=[String(d)]);c.queryData_.setValues("t",d);a.xmlHttpChunkStart_=0;c=a.channel_.supportsCrossDomainXhrs_;a.fetchResponseState_=new Mzd;a.xmlHttp_=Tzd(a.channel_,c?b:null,!a.postData_);a.readyStateChangeThrottleMs_>0&&(a.readyStateChangeThrottle_=new $Kc(mj(a.xmlHttpHandler_,
a,a.xmlHttp_),a.readyStateChangeThrottleMs_));a.eventHandler_.listen(a.xmlHttp_,"readystatechange",a.readyStateChangeHandler_);b=a.extraHeaders_?bj(a.extraHeaders_):{};a.postData_?(a.verb_||(a.verb_="POST"),b["Content-Type"]="application/x-www-form-urlencoded",a.xmlHttp_.send(a.requestUri_,a.verb_,a.postData_,b)):(a.verb_="GET",a.xmlHttp_.send(a.requestUri_,a.verb_,null,b));Czd(1);Hzd(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,a.postData_)};
cY.prototype.readyStateChangeHandler_=function(a){a=a.target;var b=this.readyStateChangeThrottle_;b&&a.getReadyState()==3?(this.channelDebug_.debug("Throttling readystatechange."),b.fire()):this.xmlHttpHandler_(a)};cY.prototype.xmlHttpHandler_=function(a){try{a==this.xmlHttp_?Uzd(this):this.channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),Vzd(this)}finally{}};
var Uzd=function(a){var b=a.xmlHttp_.getReadyState(),c=a.xmlHttp_.getLastErrorCode(),d=a.xmlHttp_.getStatus();if(!(b<3||b==3&&!Vzd(a))){a.cancelled_||b!=4||c==7||(c==8||d<=0?Czd(3):Czd(2));Wzd(a);var e=a.xmlHttp_.getStatus();a.lastStatusCode_=e;c=Xzd(a);Vzd(a)||a.channelDebug_.debug(function(){return"No response text for uri "+a.requestUri_+" status "+e});a.successful_=e==200;Izd(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,b,e);if(a.successful_){if(a.decodeInitialResponse_&&!a.initialResponseDecoded_)if(d=
Yzd(a))Kzd(a.channelDebug_,a.rid_,d,"Initial handshake response via X-HTTP-Initial-Response"),a.initialResponseDecoded_=!0,Zzd(a,d);else{a.successful_=!1;a.lastError_=3;aY(12);a.channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+a.rid_+")");dY(a);$zd(a);return}a.decodeChunks_?aAd(a,b,c):(Kzd(a.channelDebug_,a.rid_,c,null),Zzd(a,c));b==4&&dY(a);a.successful_&&!a.cancelled_&&(b==4?bAd(a.channel_,a):(a.successful_=!1,Szd(a)))}else a.xmlHttp_.getResponseHeaders(),e==400&&c.indexOf("Unknown SID")>
0?(a.lastError_=3,aY(12),a.channelDebug_.warning("XMLHTTP Unknown SID ("+a.rid_+")")):(a.lastError_=0,aY(13),a.channelDebug_.warning("XMLHTTP Bad status "+e+" ("+a.rid_+")")),dY(a),$zd(a)}},Yzd=function(a){return a.xmlHttp_&&(a=xta(a.xmlHttp_,"X-HTTP-Initial-Response"))&&!ya(a)?a:null},Xzd=function(a){if(!cAd(a))return a.xmlHttp_.getResponseText();var b=a.xmlHttp_.getResponse();if(b==="")return"";var c="",d=b.length,e=a.xmlHttp_.getReadyState()==4;if(!a.fetchResponseState_.textDecoder){if(typeof TextDecoder===
"undefined")return dY(a),$zd(a),"";a.fetchResponseState_.textDecoder=new ra.TextDecoder}for(var f=0;f<d;f++)a.fetchResponseState_.responseArrivedForFetch=!0,c+=a.fetchResponseState_.textDecoder.decode(b[f],{stream:!(e&&f==d-1)});b.length=0;a.fetchResponseState_.responseBuffer+=c;a.xmlHttpChunkStart_=0;return a.fetchResponseState_.responseBuffer},Vzd=function(a){return a.xmlHttp_?a.fetchResponseState_.responseArrivedForFetch?!0:!(!a.xmlHttp_.getResponseText()&&!a.xmlHttp_.getResponse()):!1},cAd=function(a){return a.xmlHttp_?
a.verb_=="GET"&&a.type_!=2&&a.channel_.usesFetchStreams_:!1},aAd=function(a,b,c){for(var d=!0,e;!a.cancelled_&&a.xmlHttpChunkStart_<c.length;)if(e=dAd(a,c),e==Pzd){b==4&&(a.lastError_=4,aY(14),d=!1);Kzd(a.channelDebug_,a.rid_,null,"[Incomplete Response]");break}else if(e==Ozd){a.lastError_=4;aY(15);Kzd(a.channelDebug_,a.rid_,c,"[Invalid Chunk]");d=!1;break}else Kzd(a.channelDebug_,a.rid_,e,null),Zzd(a,e);cAd(a)&&a.xmlHttpChunkStart_!=0&&(a.fetchResponseState_.responseBuffer=a.fetchResponseState_.responseBuffer.slice(a.xmlHttpChunkStart_),
a.xmlHttpChunkStart_=0);b!=4||c.length!=0||a.fetchResponseState_.responseArrivedForFetch||(a.lastError_=1,aY(16),d=!1);a.successful_=a.successful_&&d;d?c.length>0&&!a.firstByteReceived_&&(a.firstByteReceived_=!0,b=a.channel_,b.backChannelRequest_==a&&b.detectBufferingProxy_&&!b.bpDetectionDone_&&(b.channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+c.length),eAd(b),b.bpDetectionDone_=!0,aY(11))):(Kzd(a.channelDebug_,a.rid_,c,"[Invalid Chunked Response]"),dY(a),$zd(a))},dAd=
function(a,b){var c=a.xmlHttpChunkStart_,d=b.indexOf("\n",c);if(d==-1)return Pzd;c=Number(b.substring(c,d));if(isNaN(c))return Ozd;d+=1;if(d+c>b.length)return Pzd;b=b.slice(d,d+c);a.xmlHttpChunkStart_=d+c;return b};cY.prototype.cancel=function(){this.cancelled_=!0;dY(this)};
var Szd=function(a){a.watchDogTimeoutTime_=Date.now()+a.timeout_;fAd(a,a.timeout_)},fAd=function(a,b){if(a.watchDogTimerId_!=null)throw Error("df");a.watchDogTimerId_=Gzd(mj(a.onWatchDogTimeout_,a),b)},Wzd=function(a){a.watchDogTimerId_&&(ra.clearTimeout(a.watchDogTimerId_),a.watchDogTimerId_=null)};
cY.prototype.onWatchDogTimeout_=function(){this.watchDogTimerId_=null;var a=Date.now();a-this.watchDogTimeoutTime_>=0?(Lzd(this.channelDebug_,this.requestUri_),this.type_!=2&&(Czd(3),aY(17)),dY(this),this.lastError_=2,$zd(this)):(this.channelDebug_.warning("WatchDog timer called too early"),fAd(this,this.watchDogTimeoutTime_-a))};
var $zd=function(a){a.channel_.isClosed()||a.cancelled_||bAd(a.channel_,a)},dY=function(a){Wzd(a);Zi(a.readyStateChangeThrottle_);a.readyStateChangeThrottle_=null;a.eventHandler_.removeAll();if(a.xmlHttp_){var b=a.xmlHttp_;a.xmlHttp_=null;b.abort();b.dispose()}};h=cY.prototype;h.getLastError=function(){return this.lastError_};h.getLastStatusCode=function(){return this.lastStatusCode_};h.getSessionId=function(){return this.sid_};h.getRequestId=function(){return this.rid_};h.getXhr=function(){return this.xmlHttp_};
var Zzd=function(a,b){try{var c=a.channel_;if(c.state_!=0&&(c.backChannelRequest_==a||gAd(c.forwardChannelRequestPool_,a)))if(!a.initialResponseDecoded_&&gAd(c.forwardChannelRequestPool_,a)&&c.state_==3){try{var d=c.wireCodec_.parser_.parse(b)}catch(na){d=null}if(Array.isArray(d)&&d.length==3){var e=d;if(e[0]==0)a:if(c.channelDebug_.debug("Server claims our backchannel is missing."),c.backChannelTimerId_)c.channelDebug_.debug("But we are currently starting the request.");else{if(c.backChannelRequest_)if(c.backChannelRequest_.requestStartTime_+
3E3<a.requestStartTime_)hAd(c),iAd(c);else break a;else c.channelDebug_.warning("We do not have a BackChannel established");jAd(c);aY(18)}else{c.lastPostResponseArrayId_=e[1];var f=c.lastPostResponseArrayId_-c.lastArrayId_;if(0<f){var g=e[2];c.channelDebug_.debug(g+" bytes (in "+f+" arrays) are outstanding on the BackChannel");g<37500&&c.enableStreaming_&&c.backChannelRetryCount_==0&&!c.deadBackChannelTimerId_&&(c.deadBackChannelTimerId_=Gzd(mj(c.onBackChannelDead_,c),6E3))}}if(kAd(c.forwardChannelRequestPool_)<=
1&&c.forwardChannelFlushedCallback_){try{c.forwardChannelFlushedCallback_()}catch(na){}c.forwardChannelFlushedCallback_=void 0}}else c.channelDebug_.debug("Bad POST response data returned"),eY(c,11)}else if((a.initialResponseDecoded_||c.backChannelRequest_==a)&&hAd(c),!ya(b))for(e=c.wireCodec_.parser_.parse(b),f=0;f<e.length;f++){var k=e[f],l=k[0];if(l<=c.lastArrayId_)c.channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+l+", lastArrayId: "+c.lastArrayId_);else if(l>
c.lastArrayId_+1&&c.lastArrayId_>-1&&c.channelDebug_.warning("Received non-consecutive message with arrayId: "+l+", lastArrayId: "+c.lastArrayId_),c.lastArrayId_=l,k=k[1],c.state_==2)if(k[0]=="c"){c.sid_=k[1];c.hostPrefix_=c.correctHostPrefix(k[2]);var r=k[3];r!=null&&(c.channelVersion_=r,c.channelDebug_.info("VER="+c.channelVersion_));var w=k[4];w!=null&&(c.serverVersion_=w,c.channelDebug_.info("SVER="+c.serverVersion_));var x=k[5];x!=null&&typeof x==="number"&&x>0&&(g=1.5*x,c.backChannelRequestTimeoutMs_=
g,c.channelDebug_.info("backChannelRequestTimeoutMs_="+g));g=c;var C=a.getXhr();if(C){var H=xta(C,"X-Client-Wire-Protocol");if(H){var J=g.forwardChannelRequestPool_;b=H;!J.requestPool_&&(za(b,"spdy")||za(b,"quic")||za(b,"h2"))&&(J.maxSize_=J.maxPoolSizeConfigured_,J.requestPool_=new Set,J.request_&&(lAd(J,J.request_),J.request_=null))}if(g.httpSessionIdParam_){var O=xta(C,"X-HTTP-Session-Id");O?(g.httpSessionId_=O,Bt(g.forwardChannelUri_,g.httpSessionIdParam_,O)):g.channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response")}}c.state_=
3;c.handler_&&c.handler_.channelOpened();c.detectBufferingProxy_&&(c.handshakeRttMs_=Date.now()-a.requestStartTime_,c.channelDebug_.info("Handshake RTT: "+c.handshakeRttMs_+"ms"));g=c;b=a;var R=d=g,V=mAd(R,R.supportsCrossDomainXhrs_?g.hostPrefix_:null,g.path_);R.channelDebug_.debug("GetBackChannelUri: "+V);d.backChannelUri_=V;if(b.initialResponseDecoded_){g.channelDebug_.debug("Upgrade the handshake request to a backchannel.");nAd(g.forwardChannelRequestPool_,b);d=b;var ca=g.backChannelRequestTimeoutMs_;
ca&&d.setTimeout(ca);d.watchDogTimerId_&&(Wzd(d),Szd(d));g.backChannelRequest_=b}else oAd(g);c.outgoingMaps_.length>0&&pAd(c)}else k[0]!="stop"&&k[0]!="close"||eY(c,7);else c.state_==3&&(k[0]=="stop"||k[0]=="close"?k[0]=="stop"?eY(c,7):c.disconnect():k[0]!="noop"&&c.handler_&&c.handler_.channelHandleArray(k),c.backChannelRetryCount_=0)}Czd(4)}catch(na){}};var qAd=function(a,b){this.mapId=a;this.map=b;this.context=null};var rAd=function(a){this.maxPoolSizeConfigured_=a||10;ra.PerformanceNavigationTiming?(a=ra.performance.getEntriesByType("navigation"),a=a.length>0&&(a[0].nextHopProtocol=="hq"||a[0].nextHopProtocol=="h2")):a=!!(ra.chrome&&ra.chrome.loadTimes&&ra.chrome.loadTimes()&&ra.chrome.loadTimes().wasFetchedViaSpdy);this.maxSize_=a?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.maxSize_>1&&(this.requestPool_=new Set);this.request_=null;this.pendingMessages_=[]},sAd=function(a){return a.request_?!0:
a.requestPool_?a.requestPool_.size>=a.maxSize_:!1},kAd=function(a){return a.request_?1:a.requestPool_?a.requestPool_.size:0},gAd=function(a,b){return a.request_?a.request_==b:a.requestPool_?a.requestPool_.has(b):!1},lAd=function(a,b){a.requestPool_?a.requestPool_.add(b):a.request_=b},nAd=function(a,b){a.request_&&a.request_==b?a.request_=null:a.requestPool_&&a.requestPool_.has(b)&&a.requestPool_.delete(b)};
rAd.prototype.cancel=function(){this.pendingMessages_=this.getPendingMessages();if(this.request_)this.request_.cancel(),this.request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var a=m(this.requestPool_.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.requestPool_.clear()}};
rAd.prototype.getPendingMessages=function(){if(this.request_!=null)return this.pendingMessages_.concat(this.request_.getPendingMessages());if(this.requestPool_!=null&&this.requestPool_.size!==0){for(var a=this.pendingMessages_,b=m(this.requestPool_.values()),c=b.next();!c.done;c=b.next())a=a.concat(c.value.getPendingMessages());return a}return Ma(this.pendingMessages_)};var tAd=function(a,b){a.pendingMessages_=a.pendingMessages_.concat(b)};var uAd=function(a,b){var c=new bY;c.debug("TestLoadImage: loading "+a);if(ra.Image){var d=new Image;d.onload=ww(fY,c,"TestLoadImage: loaded",!0,b,d);d.onerror=ww(fY,c,"TestLoadImage: error",!1,b,d);d.onabort=ww(fY,c,"TestLoadImage: abort",!1,b,d);d.ontimeout=ww(fY,c,"TestLoadImage: timeout",!1,b,d);ra.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);d.src=a}else b(!1)},vAd=function(a,b){var c=new bY,d=new AbortController,e=setTimeout(function(){d.abort();fY(c,"TestPingServer: timeout",!1,
b)},1E4);fetch(a,{signal:d.signal}).then(function(f){clearTimeout(e);f.ok?fY(c,"TestPingServer: ok",!0,b):fY(c,"TestPingServer: server error",!1,b)}).catch(function(){clearTimeout(e);fY(c,"TestPingServer: error",!1,b)})},fY=function(a,b,c,d,e){try{a.debug(b),e&&(e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null),d(c)}catch(f){}};var wAd=function(){this.replacer_=void 0};wAd.prototype.stringify=function(a){return ra.JSON.stringify(a,this.replacer_)};wAd.prototype.parse=function(a){return ra.JSON.parse(a,void 0)};var xAd=function(){this.parser_=new wAd};var yAd=function(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b},gY=function(a){this.serverVersion_=0;this.outgoingMaps_=[];this.channelDebug_=new bY;this.hostPrefix_=this.backChannelUri_=this.forwardChannelUri_=this.path_=this.backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.extraHeaders_=null;this.nextMapId_=this.nextRid_=0;this.failFast_=yAd("failFast",!1,a);this.enableStreaming_=
this.deadBackChannelTimerId_=this.backChannelTimerId_=this.forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.lastPostResponseArrayId_=this.lastArrayId_=-1;this.backChannelAttemptId_=this.backChannelRetryCount_=this.forwardChannelRetryCount_=0;this.baseRetryDelayMs_=yAd("baseRetryDelayMs",5E3,a);this.retryDelaySeedMs_=yAd("retryDelaySeedMs",1E4,a);this.forwardChannelMaxRetries_=yAd("forwardChannelMaxRetries",2,a);this.forwardChannelRequestTimeoutMs_=
yAd("forwardChannelRequestTimeoutMs",2E4,a);this.xmlHttpFactory_=a&&a.xmlHttpFactory||void 0;this.networkTestUrl_=a&&a.networkTestUrl||void 0;this.usesFetchStreams_=a&&a.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.readyStateChangeThrottleMs_=0;this.supportsCrossDomainXhrs_=a&&a.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new rAd(a&&a.concurrentRequestLimit);this.wireCodec_=new xAd;this.fastHandshake_=a&&a.fastHandshake||!1;this.encodeInitMessageHeaders_=
a&&a.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=a&&a.blockingHandshake||!1;a&&a.disableRedact&&this.channelDebug_.disableRedact();a&&a.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&a&&a.detectBufferingProxy||!1;this.longPollingTimeout_=
void 0;a&&a.longPollingTimeout&&a.longPollingTimeout>0&&(this.longPollingTimeout_=a.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};h=gY.prototype;h.channelVersion_=8;h.state_=1;
h.connect=function(a,b,c,d){this.channelDebug_.debug("connect()");aY(0);this.path_=a;this.extraParams_=b||{};c&&d!==void 0&&(this.extraParams_.OSID=c,this.extraParams_.OAID=d);this.enableStreaming_=this.allowStreamingMode_;this.channelDebug_.debug("connectChannel_()");a=mAd(this,null,this.path_);this.channelDebug_.debug("GetForwardChannelUri: "+a);this.forwardChannelUri_=a;pAd(this)};
h.disconnect=function(){this.channelDebug_.debug("disconnect()");zAd(this);if(this.state_==3){var a=this.nextRid_++,b=this.forwardChannelUri_.clone();Bt(b,"SID",this.sid_);Bt(b,"RID",a);Bt(b,"TYPE","terminate");AAd(this,b);a=new cY(this,this.channelDebug_,this.sid_,a);a.type_=2;a.baseUri_=NHc(b.clone());b=!1;if(ra.navigator&&ra.navigator.sendBeacon)try{b=ra.navigator.sendBeacon(a.baseUri_.toString(),"")}catch(c){}!b&&ra.Image&&((new Image).src=a.baseUri_,b=!0);b||(a.xmlHttp_=Tzd(a.channel_,null),
a.xmlHttp_.send(a.baseUri_));a.requestStartTime_=Date.now();Szd(a)}BAd(this)};h.getSessionId=function(){return this.sid_};
var iAd=function(a){a.backChannelRequest_&&(eAd(a),a.backChannelRequest_.cancel(),a.backChannelRequest_=null)},zAd=function(a){iAd(a);a.backChannelTimerId_&&(ra.clearTimeout(a.backChannelTimerId_),a.backChannelTimerId_=null);hAd(a);a.forwardChannelRequestPool_.cancel();a.forwardChannelTimerId_&&(typeof a.forwardChannelTimerId_==="number"&&ra.clearTimeout(a.forwardChannelTimerId_),a.forwardChannelTimerId_=null)};h=gY.prototype;h.setExtraHeaders=function(a){this.extraHeaders_=a};
h.getHttpSessionId=function(){return this.httpSessionId_};h.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};h.getHandler=function(){return this.handler_};h.isClosed=function(){return this.state_==0};h.getState=function(){return this.state_};h.getLastStatusCode=function(){return this.errorResponseStatusCode_};
var pAd=function(a){sAd(a.forwardChannelRequestPool_)||a.forwardChannelTimerId_||(a.forwardChannelTimerId_=!0,DC(a.onStartForwardChannelTimer_,a),a.forwardChannelRetryCount_=0)},DAd=function(a,b){if(kAd(a.forwardChannelRequestPool_)>=a.forwardChannelRequestPool_.maxSize_-(a.forwardChannelTimerId_?1:0))return!1;if(a.forwardChannelTimerId_)return a.channelDebug_.debug("Use the retry request that is already scheduled."),a.outgoingMaps_=b.getPendingMessages().concat(a.outgoingMaps_),!0;if(a.state_==1||
a.state_==2||a.forwardChannelRetryCount_>=(a.failFast_?0:a.forwardChannelMaxRetries_))return!1;a.channelDebug_.debug("Going to retry POST");a.forwardChannelTimerId_=Gzd(mj(a.onStartForwardChannelTimer_,a,b),CAd(a,a.forwardChannelRetryCount_));a.forwardChannelRetryCount_++;return!0};
gY.prototype.onStartForwardChannelTimer_=function(a){if(this.forwardChannelTimerId_)if(this.forwardChannelTimerId_=null,this.channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!a){this.channelDebug_.debug("open_()");this.nextRid_=Math.floor(Math.random()*1E5);a=this.nextRid_++;var b=new cY(this,this.channelDebug_,"",a),c=this.extraHeaders_;this.initHeaders_&&(c?(c=bj(c),tta(c,this.initHeaders_)):c=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||
(b.setExtraHeaders(c),c=null);var d;if(this.fastHandshake_)a:{for(var e=d=0;e<this.outgoingMaps_.length;e++){b:{var f=this.outgoingMaps_[e];if("__data__"in f.map&&(f=f.map.__data__,typeof f==="string")){f=f.length;break b}f=void 0}if(f===void 0)break;d+=f;if(d>4096){d=e;break a}if(d===4096||e===this.outgoingMaps_.length-1){d=e+1;break a}}d=1E3}else d=1E3;d=EAd(this,b,d);e=this.forwardChannelUri_.clone();Bt(e,"RID",a);Bt(e,"CVER",22);this.httpSessionIdParam_&&Bt(e,"X-HTTP-Session-Id",this.httpSessionIdParam_);
AAd(this,e);c&&(this.encodeInitMessageHeaders_?d="headers="+NB(QHc(c))+"&"+d:this.httpHeadersOverwriteParam_&&RHc(e,this.httpHeadersOverwriteParam_,c));lAd(this.forwardChannelRequestPool_,b);this.blockingHandshake_&&Bt(e,"TYPE","init");this.fastHandshake_?(Bt(e,"$req",d),Bt(e,"SID","null"),b.decodeInitialResponse_=!0,Rzd(b,e,null)):Rzd(b,e,d);this.state_=2}}else this.state_==3&&(a?FAd(this,a):this.outgoingMaps_.length==0?this.channelDebug_.debug("startForwardChannel_ returned: nothing to send"):sAd(this.forwardChannelRequestPool_)||
(FAd(this),this.channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var FAd=function(a,b){var c;b?c=b.getRequestId():c=a.nextRid_++;var d=a.forwardChannelUri_.clone();Bt(d,"SID",a.sid_);Bt(d,"RID",c);Bt(d,"AID",a.lastArrayId_);AAd(a,d);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&RHc(d,a.httpHeadersOverwriteParam_,a.extraHeaders_);c=new cY(a,a.channelDebug_,a.sid_,c,a.forwardChannelRetryCount_+1);a.httpHeadersOverwriteParam_===null&&c.setExtraHeaders(a.extraHeaders_);b&&(a.outgoingMaps_=b.getPendingMessages().concat(a.outgoingMaps_));b=EAd(a,c,1E3);c.setTimeout(Math.round(a.forwardChannelRequestTimeoutMs_*
.5)+Math.round(a.forwardChannelRequestTimeoutMs_*.5*Math.random()));lAd(a.forwardChannelRequestPool_,c);Rzd(c,d,b)},AAd=function(a,b){a.extraParams_&&$i(a.extraParams_,function(c,d){Bt(b,d,c)});a.handler_&&$i({},function(c,d){Bt(b,d,c)})},EAd=function(a,b,c){c=Math.min(a.outgoingMaps_.length,c);var d=a.handler_?mj(a.handler_.badMapError,a.handler_,a):null;a:{for(var e=a.outgoingMaps_,f=-1;;){var g=["count="+c];f==-1?c>0?(f=e[0].mapId,g.push("ofs="+f)):f=0:g.push("ofs="+f);for(var k=!0,l=0;l<c;l++){var r=
e[l].mapId,w=e[l].map;r-=f;if(r<0)f=Math.max(0,e[l].mapId-100),k=!1;else try{r="req"+r+"_"||"";try{var x=w instanceof Map?w:Object.entries(w);for(var C=m(x),H=C.next();!H.done;H=C.next()){var J=m(H.value),O=J.next().value,R=J.next().value,V=R;Oa(R)&&(V=(new MGc).serialize(R));g.push(r+O+"="+encodeURIComponent(V))}}catch(ca){throw g.push(r+"type="+encodeURIComponent("_badmap")),ca;}}catch(ca){d&&d(w)}}if(k){x=g.join("&");break a}}x=void 0}a=a.outgoingMaps_.splice(0,c);b.pendingMessages_=a;return x},
oAd=function(a){a.backChannelRequest_||a.backChannelTimerId_||(a.backChannelAttemptId_=1,DC(a.onStartBackChannelTimer_,a),a.backChannelRetryCount_=0)},jAd=function(a){if(a.backChannelRequest_||a.backChannelTimerId_||a.backChannelRetryCount_>=3)return!1;a.channelDebug_.debug("Going to retry GET");a.backChannelAttemptId_++;a.backChannelTimerId_=Gzd(mj(a.onStartBackChannelTimer_,a),CAd(a,a.backChannelRetryCount_));a.backChannelRetryCount_++;return!0};
gY.prototype.onStartBackChannelTimer_=function(){this.backChannelTimerId_=null;GAd(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.backChannelRequest_==null||this.handshakeRttMs_<=0)this.channelDebug_.warning("Skip bpDetectionTimerId_ "+this.backChannelRequest_+" "+this.handshakeRttMs_);else{var a=4*this.handshakeRttMs_;this.channelDebug_.info("BP detection timer enabled: "+a);this.bpDetectionTimerId_=Gzd(mj(this.onBpDetectionTimer_,this),a)}};
gY.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.channelDebug_.info("BP detection timeout reached.");if(this.backChannelRequest_.getXhr()!=null){var a=this.backChannelRequest_.getXhr().getResponseText();a&&this.channelDebug_.warning("Timer should have been cancelled : "+a)}this.channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=!1;this.bpDetectionDone_=!0;aY(10);iAd(this);GAd(this)}else this.channelDebug_.warning("Invalid operation.")};
var eAd=function(a){a.bpDetectionTimerId_!=null&&(a.channelDebug_.debug("Cancel the BP detection timer."),ra.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)},GAd=function(a){a.channelDebug_.debug("Creating new HttpRequest");a.backChannelRequest_=new cY(a,a.channelDebug_,a.sid_,"rpc",a.backChannelAttemptId_);a.httpHeadersOverwriteParam_===null&&a.backChannelRequest_.setExtraHeaders(a.extraHeaders_);a.backChannelRequest_.setReadyStateChangeThrottle(a.readyStateChangeThrottleMs_);var b=
a.backChannelUri_.clone();Bt(b,"RID","rpc");Bt(b,"SID",a.sid_);Bt(b,"AID",a.lastArrayId_);Bt(b,"CI",a.enableStreaming_?"0":"1");!a.enableStreaming_&&a.longPollingTimeout_&&Bt(b,"TO",a.longPollingTimeout_);Bt(b,"TYPE","xmlhttp");AAd(a,b);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&RHc(b,a.httpHeadersOverwriteParam_,a.extraHeaders_);a.backChannelRequestTimeoutMs_&&a.backChannelRequest_.setTimeout(a.backChannelRequestTimeoutMs_);var c=a.backChannelRequest_,d=a.hostPrefix_;c.type_=1;c.baseUri_=NHc(b.clone());
c.postData_=null;c.decodeChunks_=!0;Qzd(c,d);a.channelDebug_.debug("New Request created")};gY.prototype.correctHostPrefix=function(a){return this.handler_?this.handler_.correctHostPrefix(a):a};gY.prototype.onBackChannelDead_=function(){this.deadBackChannelTimerId_!=null&&(this.deadBackChannelTimerId_=null,iAd(this),jAd(this),aY(19))};
var hAd=function(a){a.deadBackChannelTimerId_!=null&&(ra.clearTimeout(a.deadBackChannelTimerId_),a.deadBackChannelTimerId_=null)},bAd=function(a,b){a.channelDebug_.debug("Request complete");var c=null;if(a.backChannelRequest_==b){hAd(a);eAd(a);a.backChannelRequest_=null;var d=2}else if(gAd(a.forwardChannelRequestPool_,b))c=b.getPendingMessages(),nAd(a.forwardChannelRequestPool_,b),d=1;else return;if(a.state_!=0)if(b.successful_)d==1?(Fzd(b.postData_?b.postData_.length:0,Date.now()-b.requestStartTime_,
a.forwardChannelRetryCount_),pAd(a)):oAd(a);else{var e=b.getLastStatusCode(),f=b.getLastError();if(f==3||f==0&&e>0)a.channelDebug_.debug("Not retrying due to error type"),e>200&&(a.errorResponseStatusCode_=b.getLastStatusCode());else{a.channelDebug_.debug(function(){return"Maybe retrying, last error: "+Nzd(f,a.errorResponseStatusCode_)});if(d==1&&DAd(a,b)||d==2&&jAd(a))return;a.channelDebug_.debug("Exceeded max number of retries")}c&&c.length>0&&tAd(a.forwardChannelRequestPool_,c);a.channelDebug_.debug("Error: HTTP request failed");
switch(f){case 1:eY(a,5);break;case 4:eY(a,10);break;case 3:eY(a,6);break;default:eY(a,2)}}},CAd=function(a,b){var c=a.baseRetryDelayMs_+Math.floor(Math.random()*a.retryDelaySeedMs_);a.isActive()||(a.channelDebug_.debug("Inactive channel"),c*=2);return c*b},eY=function(a,b){a.channelDebug_.info("Error code "+b);if(b==2){var c=mj(a.testNetworkCallback_,a),d=a.networkTestUrl_,e=!d;d=new Os(d||"//www.google.com/images/cleardot.gif");ra.location&&ra.location.protocol=="http"||TB(d,"https");NHc(d);e?uAd(d.toString(),
c):vAd(d.toString(),c)}else aY(2);a.onError_(b)};gY.prototype.testNetworkCallback_=function(a){a?(this.channelDebug_.info("Successfully pinged google.com"),aY(2)):(this.channelDebug_.info("Failed to ping google.com"),aY(1))};gY.prototype.onError_=function(a){this.channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.channelError(a);BAd(this);zAd(this)};
var BAd=function(a){a.state_=0;a.nonAckedMapsAtChannelClose_=[];if(a.handler_){var b=a.forwardChannelRequestPool_.getPendingMessages();if(b.length!=0||a.outgoingMaps_.length!=0)a.channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+b.length+", outgoing: "+a.outgoingMaps_.length}),xba(a.nonAckedMapsAtChannelClose_,b),xba(a.nonAckedMapsAtChannelClose_,a.outgoingMaps_),a.forwardChannelRequestPool_.pendingMessages_.length=0,Ma(a.outgoingMaps_),a.outgoingMaps_.length=0;a.handler_.channelClosed()}},
mAd=function(a,b,c){var d=zt(c);d.getDomain()!=""?(b&&UB(d,b+"."+d.getDomain()),VB(d,d.port_)):(d=ra.location,d=OHc(d.protocol,null,b?b+"."+d.hostname:d.hostname,+d.port,c));b=a.httpSessionIdParam_;c=a.getHttpSessionId();b&&c&&Bt(d,b,c);Bt(d,"VER",a.channelVersion_);AAd(a,d);return d},Tzd=function(a,b,c){if(b&&!a.supportsCrossDomainXhrs_)throw Error("ef");b=a.usesFetchStreams_&&!a.xmlHttpFactory_?new Gs(new RB({streamBinaryChunks:c})):new Gs(a.xmlHttpFactory_);b.withCredentials_=a.supportsCrossDomainXhrs_;
return b};gY.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};var HAd=function(){};h=HAd.prototype;h.channelOpened=function(){};h.channelHandleArray=function(){};h.channelError=function(){};h.channelClosed=function(){};h.isActive=function(){return!0};h.badMapError=function(){};h.correctHostPrefix=function(a){return a};var IAd=function(){};IAd.prototype.createWebChannel=function(a,b){return new hY(a,b)};
var hY=function(a,b){jj.call(this);this.channel_=new gY(b);this.url_=a;this.messageUrlParams_=b&&b.messageUrlParams||null;a=b&&b.messageHeaders||null;b&&b.clientProtocolHeaderRequired&&(a?a["X-Client-Protocol"]="webchannel":a={"X-Client-Protocol":"webchannel"});this.channel_.setExtraHeaders(a);a=b&&b.initMessageHeaders||null;b&&b.messageContentType&&(a?a["X-WebChannel-Content-Type"]=b.messageContentType:a={"X-WebChannel-Content-Type":b.messageContentType});b&&b.clientProfile&&(a?a["X-WebChannel-Client-Profile"]=
b.clientProfile:a={"X-WebChannel-Client-Profile":b.clientProfile});this.channel_.initHeaders_=a;(a=b&&b.httpHeadersOverwriteParam)&&!ya(a)&&(this.channel_.httpHeadersOverwriteParam_=a);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!ya(b)&&(this.channel_.httpSessionIdParam_=b,kta(this.messageUrlParams_,b)&&pta(this.messageUrlParams_,b));this.channelHandler_=new JAd(this)};yw(hY,jj);
hY.prototype.open=function(){this.channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.channel_.supportsCrossDomainXhrs_=!0);this.channel_.connect(this.url_,this.messageUrlParams_||void 0)};hY.prototype.close=function(){this.channel_.disconnect()};hY.prototype.send=function(a){var b=this.channel_;if(typeof a==="string"){var c={};c.__data__=a;a=c}else this.sendRawJson_&&(c={},c.__data__=(new MGc).serialize(a),a=c);b.outgoingMaps_.push(new qAd(b.nextMapId_++,a));b.state_==3&&pAd(b)};
hY.prototype.disposeInternal=function(){this.channel_.handler_=null;delete this.channelHandler_;this.channel_.disconnect();delete this.channel_;hY.superClass_.disposeInternal.call(this)};var KAd=function(a){ezd.call(this);a.__headers__&&(this.headers=a.__headers__,this.statusCode=a.__status__,delete a.__headers__,delete a.__status__);var b=a.__sm__;if(b){a:{for(var c in b){a=c;break a}a=void 0}this.data=(this.metadataKey=a)?rta(b,this.metadataKey):b}else this.data=a};yw(KAd,ezd);
var LAd=function(a){fzd.call(this);this.status=1;this.errorCode=a};yw(LAd,fzd);var JAd=function(a){this.channel_=a};yw(JAd,HAd);JAd.prototype.channelOpened=function(){this.channel_.dispatchEvent("a")};JAd.prototype.channelHandleArray=function(a){this.channel_.dispatchEvent(new KAd(a))};JAd.prototype.channelError=function(a){this.channel_.dispatchEvent(new LAd(a))};JAd.prototype.channelClosed=function(){this.channel_.dispatchEvent("b")};var jzd=function(a){this.channel_=a};
jzd.prototype.getHttpSessionId=function(){return this.channel_.getHttpSessionId()};jzd.prototype.commit=function(a){this.channel_.forwardChannelFlushedCallback_=a};jzd.prototype.getLastStatusCode=function(){return this.channel_.getLastStatusCode()};var MAd=function(){this.changeList=[]};MAd.prototype.add=function(a){this.changeList.push(a)};
var NAd=function(){var a=a===void 0?Date:a;var b=b===void 0?QN(a.now()*1E3):b;this.clock=a;this.clientStartMicros=b},OAd=function(a,b,c){this.authMethod=b;this.jspbClient=new xzd(a,c)},PAd=function(a,b,c,d){var e,f,g,k,l,r,w;return y(function(x){if(x.nextAddress==1){e=new NAd;var C=new Myd;C=Mi(C,Kyd,1,b);f=En(C,4,c);if(d){if(d.rttMicros==null)throw Error("gf");C=MN(d.rttMicros)/1E6;C=Zw(f,2,C);var H=d.clockOffsetMicros!=null?QN(d.clock.now()*1E3).add(d.clockOffsetMicros):void 0;H=(g=H)==null?void 0:
g.toString();vn(C,3,H)}return z(x,a.jspbClient.post("/v1/chooseServer",f,Nyd,Gjb(a.authMethod)),2)}k=x.yieldResult;C=e;H=Ns(k.getStartTimeMicros_asString());var J=Ns(tn(k,5)),O=QN(C.clock.now()*1E3),R=ON(J,H);C.rttMicros=ON(ON(O,C.clientStartMicros),R);C.clockOffsetMicros=ON(ON(H,C.clientStartMicros).add(J),O).div(QN(2));l=Sw(k,1);if(l==null)throw Error("hf");return x.return({gsessionid:l,affinitization:(r=k.getAffinitizationOrUndefined())!=null?r:0,initialConnectionDelayMillis:(w=Rw(k,3))!=null?
w:0,timeEstimator:e})})},QAd=function(a,b,c){this.authMethod=b;this.jspbClient=new xzd(a,c)},RAd=function(a,b,c){var d,e;return y(function(f){if(f.nextAddress==1){if(a.authMethod instanceof Jjb)return f.return(Promise.resolve());d=(new Syd).setChannelId(c);e=Gjb(a.authMethod);e.queryParams==null&&(e.queryParams={});e.queryParams.gsessionid=b;e.timeoutMs=1E4;Wd(f,2);return z(f,a.jspbClient.post("/v1/refreshCreds",d,Tyd,e),4)}if(f.nextAddress!=2)return dt(f,0);$d(f);ae(f)})},SAd=function(a,b,c){this.project=
a;this.interestSet=b;this.knowledgeTimestamp=c;this.hasRecurred=!1;this.resyncMillis=Date.now()},iY=function(a,b){var c=this;this.channelDeps=a;this.options=b;this.refreshCredsTimerScheduled=!1;this.causalStreams=new Map;this.limboStreams=new Map;this.nonCausalStreams=new Map;this.newStreamSubject=new qf;this.streamNumber=0;this.rawStatus=new qf;this.status=new Mj(new EB);this.skipBackoff=new nzd;this.recentResyncs=[];this.hasConnected=!1;this.consecutiveThrottledConnections=0;this.channelStatHandler=
new zu;this.channelEventCallback=function(f){Promise.resolve().then(function(){var g,k;(k=(g=c.options).channelEventCallback)==null||k.call(g,f)}).catch(function(){})};this.options.channelEventCallback&&this.channelStatHandler.listen(Azd(),"statevent",function(f){c.channelEventCallback(f)});this.rawStatus.pipe(dla(function(f){return f.getCode()===0?Promise.resolve():new Promise(function(g){Hs(g,500)})})).subscribe(this.status);this.delayGenerator=new Djb;var d,e;this.reconnectHint=(e=(d=b.reconnectHint)==
null?void 0:d.pipe(gf(function(){return rx}),cla(rx)))!=null?e:rx;TAd(this)},UAd=function(a,b,c){b=b.then(function(d){var e=!1;switch(d.domainType()){case 2:case 0:var f=a.firstPartyUri;e=a.addDomainPrefix;break;case 1:f=a.thirdPartyUri;break;default:f=new Os}var g=f.clone().setPath(yzd(f.getPath(),"/multi-watch/channel")),k=new gzd(g,d,c.xmlHttpFactory!==void 0,e);return{serverChooser:new OAd(f,d,Njb(c.xmlHttpFactory)),credentialRefresher:new QAd(f,d,Njb(c.xmlHttpFactory)),channelCreator:function(l,
r,w){l=new izd(l,r,k,function(x,C){return(new IAd).createWebChannel(x,C)},w);l.open();return l}}});return new iY(b,c)},VAd=function(a,b){return Math.max(Math.min(a,b!=null?b:a)+(24E4+4E4*Math.random())-a,0)},WAd=function(a){var b;Hs(function(){a.channelDeps.then(function(c){var d,e;((d=a.channelState)==null?void 0:d.channelId)!=null&&((e=a.channelState)==null?void 0:e.lastRefreshTime)!=null&&Date.now()>=a.channelState.lastRefreshTime+24E4?(RAd(c.credentialRefresher,a.channelState.gsessionid,a.channelState.channelId).catch(function(){}),
a.channelState.lastRefreshTime=Date.now(),WAd(a)):a.refreshCredsTimerScheduled=!1})},VAd(Date.now(),(b=a.channelState)==null?void 0:b.lastRefreshTime))};iY.prototype.handleClose=function(a,b){var c=this.causalStreams.get(a)||this.limboStreams.get(a)||this.nonCausalStreams.get(a);c&&(b.getCodeOrUndefined()===0?c.observer.complete():c.observer.error(b),this.causalStreams.delete(a),this.limboStreams.delete(a),this.nonCausalStreams.delete(a))};
var XAd=function(a){for(var b=0,c=Date.now();b<a.recentResyncs.length;)c>=a.recentResyncs[b].resyncMillis+6E4?a.recentResyncs.splice(b):++b},YAd=function(a,b){return a.recentResyncs.find(function(c){var d;if(d=c.project===b.project)c=c.interestSet,d=b.interestSet,d=c instanceof Ms&&d instanceof Ms?c.equals(d):!1;return d})};iY.prototype.onOpen=function(){this.channelEventCallback(new szd);var a=(new EB).setCode(0);try{this.rawStatus.next(a)}catch(b){}};
iY.prototype.onClose=function(){this.channelEventCallback(new tzd);this.channelState=void 0;TAd(this)};iY.prototype.onError=function(a,b){this.channelEventCallback(new uzd(a));a=(new EB).setCode(Mjb(b));this.handleError(a)};
iY.prototype.handleError=function(a){this.channelState==null||this.channelState.hasReceivedMessage||a.getCode()!==14||this.consecutiveThrottledConnections++;try{this.rawStatus.next(a)}catch(c){}a=m(this.causalStreams.values());for(var b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2;a=m(this.nonCausalStreams.values());for(b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2};
var aBd=function(a,b,c){if(a.channelState){var d=ZAd(c.project,c.interestSet);if(c instanceof $Ad){var e=d.setStartTimeMicros(c.knowledgeTimestamp.toString());Oi(e,8,c.knowledgeTimestampChosenByPunctual)}Gn(d,9,c.streamInitiationReason);c.streamInitiationReason=0;c=new Ryd;c.addAndReturnRequests().setStreamId(b.toString()).setOpen(d).setAffinitization(a.channelState.affinitization);a.channelState.channel.send(c)}},ZAd=function(a,b){var c=new Kyd;c=Mi(c,ZX,4,lzd);if(b instanceof Ms){var d=new Iyd;
a!=null&&d.setProject(Pjb(a));d.setOwner(b.isPrivate?Gyd():Fyd()).setPath(Ujb(b));Wo(c,2,Lyd,d)}else d=new Jyd,a!=null&&d.setProject(Pjb(a)),d.setOwner(b.root.isPrivate?Gyd():Fyd()).setPrefix(Ujb(b.root)),c.setPrefix(d);return c},bBd=function(a,b){var c=new Ryd;c.addAndReturnRequests().setStreamId(b.toString()).setClose(new Oyd);a.channelState&&a.channelState.channel.send(c);a.causalStreams.delete(b);a.limboStreams.delete(b);a.nonCausalStreams.delete(b)},TAd=function(a){var b=Dyd(a.delayGenerator);
Ojb(b).pipe(vla(a.reconnectHint.pipe(pf(function(){var c=a.skipBackoff;c.update();c.tokens<1?c=!1:(c.tokens--,c=!0);return c})))).subscribe(function(){a.channelDeps.then(function(c){a.channelEventCallback(new ozd);cBd(a,c.serverChooser).then(function(d){a.channelEventCallback(new pzd);a.serverTimeEstimator=d.timeEstimator;Hs(function(){a.hasConnected=!0;dBd(a,c.channelCreator,d)},a.hasConnected?0:d.initialConnectionDelayMillis)},function(d){var e=(new EB).setCode(2);d instanceof wzd?(e.setMessage(d.message),
d.status&&e.setCode(Mjb(d.status)),d.status===503&&a.consecutiveThrottledConnections++):e.setMessage(d.toString());a.channelEventCallback(new qzd);try{a.rawStatus.next(e)}catch(f){}TAd(a)})},function(c){c=(new EB).setCode(13).setMessage(c.toString());a.rawStatus.next(c)})})},cBd=function(a,b){var c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1)return z(l,eBd(a),2);c=l.yieldResult;d=m(c);e=d.next().value;f=d.next().value;g=e;k=f;return l.return(PAd(b,ZAd(g,k),a.consecutiveThrottledConnections,
a.serverTimeEstimator))})},eBd=function(a){var b,c,d,e,f,g,k;return y(function(l){b=[a.causalStreams,a.limboStreams,a.nonCausalStreams];c=m(b);for(d=c.next();!d.done;d=c.next())for(e=d.value,f=m(e.values()),g=f.next();!g.done;g=f.next())return k=g.value,l.return([k.project,k.interestSet]);return z(l,fe(a.newStreamSubject.asObservable().pipe(pf())),1)})},dBd=function(a,b,c){a.channelEventCallback(new rzd);a.channelState={channel:b(function(f){for(var g=m(f.getResponsesList()),k=g.next();!k.done;k=
g.next()){var l=a,r=k.value;l.channelState!=null&&(l.channelState.hasReceivedMessage=!0);l.consecutiveThrottledConnections=0;k=r.getStreamIdOrUndefined_asString();if(k!=null)if(k=Number(k),r.hasClose()){a:{if(r=r.getClose())if(r=r.getStatus())break a;r=void 0}r&&l.handleClose(k,r)}else if(r=bm(r,Yyd,2,czd))switch(wo(r,Zyd)){case 1:if(r=l.causalStreams.get(k)){try{r.observer.next(new Byd)}catch(R){}l.causalStreams.delete(k);l.limboStreams.set(k,r.start())}break;case 3:a:{if(r=bm(r,Uyd,3,Zyd))if(r=
Lw(r,1),r!=null){var w=new Cyd(Ns(r));break a}w=void 0}if(w&&(r=k,k=w,(w=l.limboStreams.get(r))?(w=w.advance(k.timestampMicros),l.limboStreams.delete(r),l.nonCausalStreams.set(r,w),l=w):l=l.nonCausalStreams.get(r),l)){r=l;w=k.timestampMicros;w>r.knowledgeTimestamp&&(r.knowledgeTimestamp=w,r.knowledgeTimestampChosenByPunctual=!0);try{l.observer.next(k)}catch(R){}}break;case 2:k=l.nonCausalStreams.get(k)||l.limboStreams.get(k);if(!k)break;l=k.interestSet;if(w=bm(r,Wyd,2,Zyd)){r=new MAd;w=m(Bi(w,Vyd,
1,Ci()));for(var x=w.next();!x.done;x=w.next()){x=x.value;var C=X(x,Js,6),H=x.getVersionOrUndefined_asString();if(C&&H!=null){var J=void 0,O=(J=x.getPayloadOrUndefined())==null?void 0:ysa(J);J=O==null?void 0:O;(C=Zjb(l,C))&&r.add(new Ayd(C,Ns(H),J,!!zb(fm(x,7))))}}l=r}else l=void 0;if(l)for(l=m(l.changeList),r=l.next();!r.done;r=l.next()){r=r.value;r=new Ayd(r.objectId,r.version,r.payload,r.isReplay);try{k.observer.next(r)}catch(R){}}break;case 5:if(k=l.causalStreams.get(k)||l.limboStreams.get(k)||
l.nonCausalStreams.get(k)){k instanceof $Ad&&(XAd(l),(r=YAd(l,k))?(r.hasRecurred=!0,r.knowledgeTimestamp=k.knowledgeTimestamp,r.resyncMillis=Date.now()):l.recentResyncs.push(new SAd(k.project,k.interestSet,k.knowledgeTimestamp)));try{k.observer.complete()}catch(R){}}}}if(f.hasStatus())switch(f.getStatus().getCodeOrUndefined()){case 1:g=m(a.causalStreams.values());for(k=g.next();!k.done;k=g.next())k.value.streamInitiationReason=3;g=m(a.nonCausalStreams.values());for(k=g.next();!k.done;k=g.next())k.value.streamInitiationReason=
3;a.channelState&&a.channelState.channel.close()}xi(f,$yd,3)&&a.channelState&&(a.channelState.channelId=X(f,$yd,3).getChannelId(),a.channelState.lastRefreshTime=Date.now(),a.refreshCredsTimerScheduled||(WAd(a),a.refreshCredsTimerScheduled=!0))},a,c.gsessionid),affinitization:c.affinitization,gsessionid:c.gsessionid,hasReceivedMessage:!1};b=[].concat(Array.from(a.causalStreams.entries())).concat(Array.from(a.nonCausalStreams.entries()));b.sort(function(f,g){return f[0]-g[0]});b=m(b);for(c=b.next();!c.done;c=
b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;aBd(a,c,d)}b=m(a.limboStreams);for(c=b.next();!c.done;c=b.next())c=m(c.value),c.next(),c.next().value.observer.complete();a.limboStreams.clear();var e=a.channelState;Hs(function(){a.channelState===e&&a.delayGenerator.reset()},45E3)};
iY.prototype.watch=function(a,b){var c=this;b=b===void 0?{}:b;return new Td(function(d){var e=++c.streamNumber,f,g=(f=b.projectOverride)!=null?f:c.options.defaultProject;d=new fBd(d,g,a);c.causalStreams.set(e,d);c.newStreamSubject.next({});aBd(c,e,d);return function(){bBd(c,e)}})};
iY.prototype.watchWithStartTime=function(a,b,c){var d=this;c=c===void 0?{}:c;return new Td(function(e){var f=++d.streamNumber,g,k=(g=c.projectOverride)!=null?g:d.options.defaultProject,l=new $Ad(e,k,a,b,!1);XAd(d);if((e=YAd(d,l))&&(e.hasRecurred||b.compare(e.knowledgeTimestamp)<=0)){var r=!0;Hs(function(){r&&l.observer.complete()},6E4);return function(){r=!1}}d.nonCausalStreams.set(f,l);d.newStreamSubject.next({});aBd(d,f,l);return function(){bBd(d,f)}})};
var fBd=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c;this.streamInitiationReason=1};fBd.prototype.start=function(){return new gBd(this.observer,this.project,this.interestSet)};var gBd=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c};gBd.prototype.advance=function(a){return new $Ad(this.observer,this.project,this.interestSet,a,!0)};
var $Ad=function(a,b,c,d,e){this.observer=a;this.project=b;this.interestSet=c;this.knowledgeTimestamp=d;this.knowledgeTimestampChosenByPunctual=e;this.streamInitiationReason=1};var hBd={firstPartyUri:new Os("https://signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new Os("https://signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1},iBd={firstPartyUri:new Os("https://punctual.corp.google.com/punctual"),thirdPartyUri:new Os,addDomainPrefix:!1},jBd={firstPartyUri:new Os("https://punctual-dev.corp.google.com/punctual"),thirdPartyUri:new Os("https://signaler-staging.sandbox.google.com/punctual"),addDomainPrefix:!1},kBd=new Map([["corp",iBd],["prod",hBd],["prod-up",
iBd],["preprod-dynamite-alpha-us",Ps("preprod-dynamite-alpha-us")],["preprod-dynamite-alpha-eu",Ps("preprod-dynamite-alpha-eu")],["preprod-dynamite-beta-us",Ps("preprod-dynamite-beta-us")],["preprod-dynamite-beta-eu",Ps("preprod-dynamite-beta-eu")],["preprod-dynamite-gamma-us",Ps("preprod-dynamite-gamma-us")],["preprod-dynamite-gamma-eu",Ps("preprod-dynamite-gamma-eu")],["preprod-qual-dynamite-perftest",Ps("preprod-qual-dynamite-perftest")],["prod-dynamite-prod-00-eu",Ps("prod-dynamite-prod-00-eu")],
["prod-dynamite-prod-01-eu",Ps("prod-dynamite-prod-01-eu")],["prod-dynamite-prod-00-us",Ps("prod-dynamite-prod-00-us")],["prod-dynamite-prod-01-us",Ps("prod-dynamite-prod-01-us")],["prod-dynamite-prod-02-us",Ps("prod-dynamite-prod-02-us")],["prod-dynamite-prod-03-us",Ps("prod-dynamite-prod-03-us")],["prod-dynamite-prod-04-us",Ps("prod-dynamite-prod-04-us")],["prod-dynamite-prod-05-us",Ps("prod-dynamite-prod-05-us")],["prod-dynamite-prod-06-us",Ps("prod-dynamite-prod-06-us")],["prod-dynamite-prod-07-us",
Ps("prod-dynamite-prod-07-us")],["prod-dynamite-prod-08-us",Ps("prod-dynamite-prod-08-us")],["prod-dynamite-prod-09-us",Ps("prod-dynamite-prod-09-us")],["dynamite-alpha-us",Qs("preprod","alpha-us")],["dynamite-alpha-eu",Qs("preprod","alpha-eu")],["dynamite-beta-us",Qs("preprod","beta-us")],["dynamite-beta-eu",Qs("preprod","beta-eu")],["dynamite-gamma-us",Qs("preprod","gamma-us")],["dynamite-gamma-eu",Qs("preprod","gamma-eu")],["dynamite-prod-00-us",Qs("prod","prod-00-us")],["dynamite-prod-00-eu",
Qs("prod","prod-00-eu")],["dynamite-prod-01-us",Qs("prod","prod-01-us")],["dynamite-prod-01-eu",Qs("prod","prod-01-eu")],["dynamite-prod-02-us",Qs("prod","prod-02-us")],["dynamite-prod-03-us",Qs("prod","prod-03-us")],["dynamite-prod-04-us",Qs("prod","prod-04-us")],["dynamite-prod-05-us",Qs("prod","prod-05-us")],["dynamite-prod-06-us",Qs("prod","prod-06-us")],["dynamite-prod-07-us",Qs("prod","prod-07-us")],["dynamite-prod-08-us",Qs("prod","prod-08-us")],["dynamite-prod-09-us",Qs("prod","prod-09-us")],
["ytprod",{firstPartyUri:new Os("https://signaler-pa.youtube.com/punctual"),thirdPartyUri:new Os("https://signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1}],["dev",jBd]]);var lBd=function(a){this.projectPath=a;this.authParams=new vzd;this.fetchApi=!1};lBd.prototype.setApiKey=function(a){this.authParams.apiKey=a;return this};lBd.prototype.useFetchApi=function(a){this.fetchApi=!0;this.worker=a;return this};
lBd.prototype.build=function(){var a=Ljb(this.authParams),b=this.projectPath;if(!b.startsWith("/punctual/"))throw Error("jf`"+b);var c=b.substring(10).split("/");if(c.length!==2)throw Error("kf`"+b);b=m(c);c=b.next().value;b=b.next().value;if(c.startsWith("custom:"))c=new Os(decodeURIComponent(c.substring(7))),c.setPath("/punctual"),c={firstPartyUri:c,thirdPartyUri:c,addDomainPrefix:!1};else{var d=kBd.get(c);if(!d)throw Error("lf`"+c);c=d}var e;this.fetchApi&&(e=new RB({worker:this.worker}));return UAd(c,
a,{reconnectHint:this.reconnectHint,defaultProject:b,xmlHttpFactory:e,channelEventCallback:this.channelEventCallback})};var mBd={watch:function(){return rx},watchWithStartTime:function(){return rx},status:rx},jY=function(){this.activeSession=p(uu);if(this.activeSession.getFlag("enablePushUpdatesClient")){switch(this.activeSession.getEnvironmentType()){case "PROD":case "NIGHTLY":var a="AIzaSyDBL0cdQ7zgltPyAYPmzKE4X2t2_S_wW8w";var b="/punctual/prod/buganizer";break;case "QA":a="AIzaSyCpeBtg5BChNlEw-O4F0WpVJWgk_CFEY6I";b="/punctual/prod/buganizer-qa";break;default:a="ANVavNKXeiME5gTvC0_SzcTVHNYBMU50fWn-NpE",b="/punctual/dev/buganizer-test"}this.punctualClient=
(new lBd(b)).setApiKey(a).build()}else this.punctualClient=mBd};jY.prototype.watch=function(a,b){return this.punctualClient.watch(Vjb(String(a),b)).pipe(ue(function(c){return c instanceof Ayd}))};jY.\u0275fac=function(a){return new (a||jY)};jY.\u0275prov=Dc({token:jY,factory:jY.\u0275fac,providedIn:"root"});var kY=function(){this.punctualService=p(jY);this.stream=new qf;this.isPaused=!1;this.closeStream$=new qf};kY.prototype.resume=function(){this.isPaused=!1};var nBd=function(a,b){a.issueId!==b&&(a.closeStream$.next(),a.stream=new qf,a.issueId=b,a.resume(),a.watch(b).subscribe(a.stream));return a.stream};kY.prototype.watch=function(a){var b=this;return this.punctualService.watch("new-comment-issue",a).pipe(ue(function(){var c=!b.isPaused;b.resume();return c}),jf(1E3),zf(this.closeStream$))};
kY.\u0275fac=function(a){return new (a||kY)};kY.\u0275prov=Dc({token:kY,factory:kY.\u0275fac,providedIn:"root"});var oBd=function(a,b){this.displayText=a;this.value=b;this.enabled=!0;this.disabledReason=""};var lY=function(){Z.call(this);this.window=p(lR);this.scrolledOnScreenService=p(vU);this.elementRef=p(Hd);this.onAutoResize=new aQ;this.el=this.elementRef.nativeElement;this.cloneEl=this.el.cloneNode();this.cloneEl.removeAttribute("id");this.cloneEl.removeAttribute("name");this.cloneEl.removeAttribute("aria-label");this.cloneEl.setAttribute("aria-hidden","");this.cloneEl.removeAttribute("data-stable");this.cloneEl.setAttribute("data-cloned-for-auto-resize","");this.cloneEl.style.height="auto";this.cloneEl.style.visibility=
"hidden";this.cloneEl.style.position="absolute";this.cloneEl.style.left="0";this.cloneEl.style.top="0";this.cloneEl.style.zIndex="-9999";this.cloneEl.style.overflowY="hidden";this.window.document.body.appendChild(this.cloneEl)};Y(lY,Z);lY.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.scrolledOnScreenService.getObservable(this.el,!0).subscribe(function(b){b&&pBd(a,0)}));this.autoResize&&this.subscriptions.add(this.autoResize.subscribe(function(){pBd(a,2)}))};
lY.prototype.onInput=function(){pBd(this,1)};
var pBd=function(a,b){for(var c=a.window.getComputedStyle(a.el),d=m("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=Yn(d.getPropertyValue("border-top-width"))+Yn(d.getPropertyValue("padding-top"))+c.scrollHeight+Yn(d.getPropertyValue("padding-bottom"))+Yn(d.getPropertyValue("border-bottom-width"))+
24;Number.isNaN(c)||(e=Yn(d.getPropertyValue("max-height")),d=Yn(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})))};lY.prototype.ngOnDestroy=function(){this.cloneEl.parentElement&&this.cloneEl.parentElement.removeChild(this.cloneEl);Z.prototype.ngOnDestroy.call(this)};lY.\u0275fac=function(a){return new (a||lY)};
lY.\u0275dir=af({type:lY,selectors:[["textarea","autoResize",""]],hostBindings:function(a,b){a&1&&N("input",function(){return b.onInput()})},inputs:{autoResize:"autoResize"},outputs:{onAutoResize:"onAutoResize"},standalone:!1,features:[Ef]});var qBd=new dd("isMac",{factory:function(){return gv}}),rBd=function(){this.isMac=p(qBd);this.textarea=p(Hd).nativeElement;this.macPasteWorkaroundActivated=new aQ};
rBd.prototype.handlePaste=function(a){if(this.isMac&&this.textarea){var b,c=(b=this.textarea.selectionStart)!=null?b:0;if(c!==0&&this.textarea.value[c-1]==="@"){var d;b=(d=this.textarea.selectionEnd)!=null?d:0;var e,f;d=(f=(e=a.clipboardData)==null?void 0:e.getData("text/plain"))!=null?f:"";d!==""&&(a.stopPropagation(),a.preventDefault(),this.textarea.setRangeText(d,c,b),a=c+d.length,this.textarea.setSelectionRange(a,a),this.textarea.focus(),this.textarea.dispatchEvent(new Event("input")),this.macPasteWorkaroundActivated.emit())}}};
rBd.\u0275fac=function(a){return new (a||rBd)};rBd.\u0275dir=af({type:rBd,selectors:[["textarea","macPasteWorkaround",""]],hostBindings:function(a,b){a&1&&N("paste",function(c){return b.handlePaste(c)})},outputs:{macPasteWorkaroundActivated:"macPasteWorkaroundActivated"},standalone:!1});var mY=function(){this.activeSession=p(uu);this.issuePermissionService=p($Q);this.window=p(lR);this.userPreferencesManager=p(hR);this.placeholderPrefix="@";this.candidateDenylist=new Set;this.isMentionAutocompleteEnabled=function(){throw Error("mf");};this.getHiddenInput=function(){throw Error("mf");};this.getAutocompleteUnderlay=function(){throw Error("mf");};this.getTextarea=function(){throw Error("mf");};this.focusOnComponent=function(){throw Error("mf");};this.emitContentChange=function(){throw Error("mf");
};this.autocompleteUserName=new Mj("");this.autocompleteUserName$=this.autocompleteUserName.pipe(nf());this.autocompleteTop=new Mj(0);this.autocompleteTop$=this.autocompleteTop.pipe(nf());this.autocompleteLeft=new Mj(0);this.autocompleteLeft$=this.autocompleteLeft.pipe(nf());this.scrollPosition=0;this.taggingInProgress=new Mj(!1);this.taggingInProgress$=this.taggingInProgress.pipe(nf());this.wordInfo={wordStart:0,wordEnd:0,word:""}};h=mY.prototype;
h.initialize=function(a){this.placeholderPrefix=a.placeholderPrefix;var b;this.candidateDenylist=new Set((b=a.candidateDenylist)!=null?b:[]);this.isMentionAutocompleteEnabled=a.isMentionAutocompleteEnabled;this.getHiddenInput=a.getHiddenInput;this.getAutocompleteUnderlay=a.getAutocompleteUnderlay;this.getTextarea=a.getTextarea;this.focusOnComponent=a.focusOnComponent;this.emitContentChange=a.emitContentChange};
h.findWordAroundCursor=function(){var a=this.getTextarea().selectionStart;this.wordInfo=bkb(this.getTextarea().value,a!=null?a:0)};h.textAreaContainerElKeyDown=function(a){a.key==="Escape"&&(this.taggingInProgress.next(!1),this.focusOnComponent())};
h.textAreaKeyDown=function(a){if(sBd(a)&&this.taggingInProgress.value&&this.isMentionAutocompleteEnabled()&&this.taggingInProgress.value){a==null||a.preventDefault();var b;(b=this.getHiddenInput())==null||b.focus();b=a.code;var c=a.key,d=a.keyCode,e=a.which;a=new KeyboardEvent("keydown",{charCode:a.charCode,metaKey:a.metaKey,type:a.type,code:c==="Enter"?"Tab":b,key:c==="Enter"?"Tab":c,keyCode:c==="Enter"?9:d,which:c==="Enter"?9:e});var f;(f=this.getHiddenInput())==null||f.dispatchEvent(a)}};
h.textAreaKeyUp=function(a){if(!sBd(a))if(a=a.target,this.scrollPosition=a.scrollTop,this.findWordAroundCursor(),ekb(this,this.wordInfo.word)){a=a.selectionStart;if(this.isMentionAutocompleteEnabled()&&!this.taggingInProgress.value){var b=this.getAutocompleteUnderlay();if(b){b.textContent=this.getTextarea().value;var c=this.getAutocompleteUnderlay(),d=this.getTextarea(),e="height width font-family margin line-height padding border".split(" ");if(c&&d){d=this.window.getComputedStyle(d);e=m(e);for(var f=
e.next();!f.done;f=e.next()){f=f.value;var g=d.getPropertyValue(f);c.style.setProperty(f,g)}}this.synchronizeScrolling()}b=b==null?void 0:b.firstChild;c=b==null?void 0:b.textContent;b&&c&&a&&(c=new Range,c.setStart(b,a),c.setEnd(b,a),a=document.createElement("span"),c.deleteContents(),c.insertNode(a),b=a.getBoundingClientRect(),this.autocompleteTop.next(b.top),this.autocompleteLeft.next(b.left),a.remove())}this.taggingInProgress.next(!0);if(this.isMentionAutocompleteEnabled()){this.autocompleteUserName.next(this.wordInfo.word.slice(this.placeholderPrefix.length));
var k;(k=this.getHiddenInput())==null||k.dispatchEvent(new KeyboardEvent("keydown"))}}else this.taggingInProgress.next(!1)};var sBd=function(a){return a.key==="ArrowDown"||a.key==="ArrowUp"||a.key==="Enter"||a.key==="Escape"||a.key==="Tab"};mY.prototype.synchronizeScrolling=function(){var a=this.getAutocompleteUnderlay(),b=this.getTextarea();a&&b&&(a.scrollTop=b.scrollTop)};
mY.prototype.escapeKeyupAnywhere=function(a){var b=a.key;a=a.target.classList.contains("autocomplete-hidden-input");b==="Escape"&&a&&(this.taggingInProgress.next(!1),this.focusOnComponent())};var ekb=function(a,b){if(b===a.placeholderPrefix)return!0;if(!b.startsWith(a.placeholderPrefix))return!1;b=b.slice(a.placeholderPrefix.length);return a.candidateDenylist.has(b)?!1:Icd.test(b)&&!Hcd.test(b)};mY.\u0275fac=function(a){return new (a||mY)};mY.\u0275prov=Dc({token:mY,factory:mY.\u0275fac});
var $jb=/[\s,]/gu,akb=/[\s,]|$/u;var tBd=["textarea"],uBd=["hiddenInput"],vBd=["autocompleteUnderlay"],nY=function(){Z.apply(this,arguments);var a=this;this.codefont=p(jR);this.activeSession=p(uu);this.issuePermissionService=p($Q);this.autocompleteLogic=p(mY);this.userPreferencesManager=p(hR);this.autocompleteConfigService=p(EW);this.darkmodeService=p(DW);this.refresh$=this.darkmodeService.clientDarkmode$.pipe(A(function(){}));this.textareaClass=[];this.isLiteralModeSupported=this.enableMentionsAutocomplete=this.canEditIssuesInComponent=
this.disabled=!1;this.contentChange=new aQ;this.focus=new aQ;this.blur=new aQ;this.autoResize=new aQ;this.manualResize$=new aQ;this.autocompleteTop$=this.autocompleteLogic.autocompleteTop$;this.autocompleteLeft$=this.autocompleteLogic.autocompleteLeft$;this.taggingInProgress$=this.autocompleteLogic.taggingInProgress$;this.autocompleteUserName$=this.autocompleteLogic.autocompleteUserName$;this.sessionOptions=(new dv).setFilter(swd);this.isCreateCommentFormatLiteral=!1;this.shouldShowMentionsNotSupportedWarning$=
this.autocompleteLogic.taggingInProgress$.pipe(A(function(b){return a.enableMentionsAutocomplete&&XN(a.activeSession)?!(a.issueId?a.issuePermissionService.hasAclToEdit():a.canEditIssuesInComponent)&&b:!1}))};Y(nY,Z);nY.\u0275dir=Z.\u0275dir;nY.prototype.getConfig=function(){return Dgb(this.autocompleteConfigService)};
nY.prototype.ngOnChanges=function(){var a=this;this.autocompleteLogic.initialize({placeholderPrefix:"@",isMentionAutocompleteEnabled:function(){return a.isMentionAutocompleteEnabled()},getTextarea:function(){return a.getTextarea()},focusOnComponent:function(){a.focusOnComponent()},emitContentChange:function(){a.emitContentChange()},getHiddenInput:function(){var b;return(b=a.hiddenInputRef)==null?void 0:b.nativeElement},getAutocompleteUnderlay:function(){var b;return(b=a.autocompleteUnderlayRef)==
null?void 0:b.nativeElement}})};nY.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.codefont.codefont$.subscribe(function(b){b?a.getTextarea().classList.add("codefont"):a.getTextarea().classList.remove("codefont")}));this.subscriptions.add(this.userPreferencesManager.isCreateCommentFormatLiteral$.subscribe(function(b){a.isCreateCommentFormatLiteral=b}));wBd(this)};
var wBd=function(a){ie([a.taggingInProgress$,a.autocompleteUserName$]).pipe(mf(0),zf(a.destroyed$)).subscribe(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(b){var d;if((d=a.hiddenInputRef)==null?0:d.nativeElement)if(d=a.hiddenInputRef.nativeElement,d.value!==c){d.value=c;var e;(e=a.hiddenInputRef)==null||e.nativeElement.dispatchEvent(new Event("input"))}}})};h=nY.prototype;h.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.focus.complete();this.blur.complete();this.manualResize$.complete()};
h.emitContentChange=function(){this.contentChange.emit(this.getTextarea().value)};h.focusOnComponent=function(){this.getTextarea().focus()};h.setValue=function(a){this.getTextarea().value!==a&&(this.getTextarea().value=a,this.manualResize$.next())};h.getTextarea=function(){return this.textareaRef.nativeElement};h.textAreaContainerElKeyDown=function(a){this.autocompleteLogic.textAreaContainerElKeyDown(a)};h.textAreaKeyDown=function(a){this.autocompleteLogic.textAreaKeyDown(a)};h.textAreaKeyUp=function(a){this.autocompleteLogic.textAreaKeyUp(a)};
h.escapeKeyupAnywhere=function(a){this.autocompleteLogic.escapeKeyupAnywhere(a)};h.synchronizeScrolling=function(){this.autocompleteLogic.synchronizeScrolling()};var xBd=function(a){setTimeout(function(){a.autocompleteLogic.taggingInProgress.next(!1)})};
nY.prototype.isMentionAutocompleteEnabled=function(){return this.isLiteralModeSupported&&this.isCreateCommentFormatLiteral||!this.enableMentionsAutocomplete?!1:XN(this.activeSession)?this.issueId?this.issuePermissionService.hasAclToEdit():this.canEditIssuesInComponent:!0};nY.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(nY)))(b||nY)}}();
nY.\u0275cmp=D({type:nY,selectors:[["b-comment-draft-textarea"]],viewQuery:function(a,b){a&1&&(hg(tBd,7),hg(uBd,5),hg(vBd,5));if(a&2){var c;lg(c=mg())&&(b.textareaRef=c.first);lg(c=mg())&&(b.hiddenInputRef=c.first);lg(c=mg())&&(b.autocompleteUnderlayRef=c.first)}},hostBindings:function(a,b){a&1&&N("click",function(){return xBd(b)},Rga)("keyUp",function(c){return b.escapeKeyupAnywhere(c)},Rga)},inputs:{textareaClass:"textareaClass",disabled:"disabled",placeholder:"placeholder",idForAriaLabel:"idForAriaLabel",
audience:"audience",issueId:"issueId",canEditIssuesInComponent:"canEditIssuesInComponent",enableMentionsAutocomplete:"enableMentionsAutocomplete",isLiteralModeSupported:"isLiteralModeSupported"},outputs:{contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize"},standalone:!1,features:[Gg([mY]),Ef,jx],decls:13,vars:22,consts:[["commentBoxContainer",""],["textarea",""],["hiddenInput",""],["autocompleteUnderlay",""],[1,"pos-rel","comment-box-container",3,"keydown"],["aria-label",
"Comment box - add your comment","cdkFocusInitial","","macPasteWorkaround","",3,"input","focus","blur","onAutoResize","keydown","keyup","scroll","autoResize","disabled"],[1,"bv2-literal-mode-warning"],["id","mentions-warning","role","alert",1,"bv2-validation-error-banner"],[1,"autocomplete-input-container"],[3,"refreshable"],["contentEditable","true",1,"autocomplete-underlay"],[1,"bv2-literal-mode-warning-icon"],["svgIcon","verified_user_24px",1,"icon-xxs"],["href","http://go/buganizer-literal-mode",
"target","_blank"],[1,"bv2-validation-error"],["type","text","tabIndex","-1","inert","","autocomplete","off","spellcheck","off","peoplekitAutocomplete","",1,"autocomplete-hidden-input",3,"peoplekitAutocompleteSelectionChange","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"]],template:function(a,b){if(a&1){var c=t();K(0,"div",4,0);N("keydown",function(d){u(c);return v(b.textAreaContainerElKeyDown(d))});K(2,"textarea",5,1);N("input",function(){u(c);
return v(b.emitContentChange())})("focus",function(d){u(c);return v(b.focus.emit(d))})("blur",function(d){u(c);return v(b.blur.emit(d))})("onAutoResize",function(d){u(c);return v(b.autoResize.emit(d))})("keydown",function(d){u(c);return v(b.textAreaKeyDown(d))})("keyup",function(d){u(c);return v(b.textAreaKeyUp(d))})("scroll",function(){u(c);return v(b.synchronizeScrolling())});L();F(4,ckb,8,0,"div",6);F(5,dkb,3,0,"div",7);T(6,"async");K(7,"span",8);T(8,"async");T(9,"async");F(10,gkb,1,1,null,9);
T(11,"async");L();F(12,hkb,2,0,"div",10);L()}a&2&&(B(2),xg(b.textareaClass),I("autoResize",b.manualResize$)("disabled",b.disabled),If("placeholder",b.placeholder)("id",b.idForAriaLabel),B(2),G(b.isLiteralModeSupported&&b.isCreateCommentFormatLiteral?4:-1),B(),G(U(6,14,b.shouldShowMentionsNotSupportedWarning$)?5:-1),B(2),vg("top",U(8,16,b.autocompleteTop$)+"px")("left",U(9,18,b.autocompleteLeft$)+"px"),B(3),G(b.isMentionAutocompleteEnabled()&&U(11,20,b.taggingInProgress$)?10:-1),B(2),G(b.isMentionAutocompleteEnabled()?
12:-1))},dependencies:[Jy,tU,rX,lY,rBd,Tx],styles:["textarea.banned-words-warning[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-gfx)}.bv2-literal-mode-warning[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg);margin-bottom:12px;margin-top:8px;padding:8px}.bv2-literal-mode-warning-icon[_ngcontent-%COMP%]{display:inline;font-weight:bold;color:#1967d2;color:var(--primary-c700);margin-right:16px}/*# sourceMappingURL=comment_draft_textarea.css.map */"],changeDetection:0});var oY=function(){Z.apply(this,arguments);var a=this;this.cdr=p(bQ,{self:!0});this.ref=p(Hd);this.events=p(UO);this.previewDisabled=!1;this.selectedIndex=0;this.render=function(){var b=a.matTabGroup;b._tabHeader&&b._tabHeader._alignInkBarToSelectedTab();a.cdr.markForCheck()}};Y(oY,Z);oY.\u0275dir=Z.\u0275dir;oY.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.events.commentSubmitted.subscribe(function(){a.matTabGroup.selectedIndex=0}))};
oY.prototype.synchronizeHeight=function(a){this.ref.nativeElement.querySelector("mat-tab-group").style.height=a+8+48+"px"};oY.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(oY)))(b||oY)}}();
oY.\u0275cmp=D({type:oY,selectors:[["b-comment-draft-tab-group"]],viewQuery:function(a,b){a&1&&hg(xL,7);if(a&2){var c;lg(c=mg())&&(b.matTabGroup=c.first)}},inputs:{editArea:"editArea",previewArea:"previewArea",previewDisabled:"previewDisabled"},standalone:!1,features:[Gg([bQ]),Ef],decls:5,vars:5,consts:[[1,"small","no-border",3,"animationDone","selectedIndexChange","dynamicHeight","selectedIndex"],["label","Edit"],[4,"ngTemplateOutlet"],["label","Preview",3,"disabled"]],template:function(a,b){a&1&&
(K(0,"mat-tab-group",0),N("animationDone",function(){setTimeout(b.render,2E3)})("selectedIndexChange",function(c){return b.selectedIndex=c}),K(1,"mat-tab",1),E(2,ikb,1,0,"ng-container",2),L(),K(3,"mat-tab",3),E(4,jkb,1,0,"ng-container",2),L()());a&2&&(I("dynamicHeight",!1)("selectedIndex",b.selectedIndex),B(2),I("ngTemplateOutlet",b.editArea),B(),I("disabled",b.previewDisabled),B(),I("ngTemplateOutlet",b.previewArea))},dependencies:[Sx,BL,wL,xL],styles:["[_nghost-%COMP%]     mat-tab-header{margin-left:8px;margin-bottom:16px}/*# sourceMappingURL=comment_draft_tab_group.css.map */"],
changeDetection:0});
var pY=function(){Z.apply(this,arguments);this.codefont=p(jR);this.ngZone=p(Rg);this.prefs=p(hR);this.hotkeys=p(nU);this.isMarkdown$=this.prefs.lastPublishFormattingMode$.pipe(A(function(a){return a==="MARKDOWN"}));this.idPrefix="b-draft";this.content="";this.textareaClass=[];this.disabled=!1;this.audience="EXTERNAL";this.isLiteralModeSupported=this.enableMentionsAutocomplete=this.canEditIssuesInComponent=!1;this.init=new aQ;this.contentChange=new aQ;this.focus=new aQ;this.blur=new aQ;this.autoResize=
new aQ;this.onSubmit=new aQ};Y(pY,Z);pY.\u0275dir=Z.\u0275dir;pY.prototype.ngOnChanges=function(){this.commentDraftTextarea&&this.commentDraftTextarea.setValue(this.content)};
pY.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 yBd=function(a){a.ngZone.run(function(){if(a.commentDraftTabGroup){var b=a.commentDraftTabGroup;b.selectedIndex=0;b.render()}a.commentDraftTextarea&&a.commentDraftTextarea.focusOnComponent()})};pY.prototype.synchronizeHeight=function(a){this.commentDraftTabGroup&&this.commentDraftTabGroup.synchronizeHeight(a.newHeight)};pY.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(pY)))(b||pY)}}();
pY.\u0275cmp=D({type:pY,selectors:[["b-comment-draft"]],viewQuery:function(a,b){a&1&&(hg(nY,5),hg(oY,5));if(a&2){var c;lg(c=mg())&&(b.commentDraftTextarea=c.first);lg(c=mg())&&(b.commentDraftTabGroup=c.first)}},inputs:{content:"content",textareaClass:"textareaClass",disabled:"disabled",placeholder:"placeholder",audience:"audience",idForAriaLabel:"idForAriaLabel",issueId:"issueId",canEditIssuesInComponent:"canEditIssuesInComponent",enableMentionsAutocomplete:"enableMentionsAutocomplete",isLiteralModeSupported:"isLiteralModeSupported"},
outputs:{init:"init",contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize",onSubmit:"onSubmit"},standalone:!1,features:[Ef,jx],decls:2,vars:13,consts:[[3,"autoResize","keydown.control.enter","keydown.meta.enter","textareaClass","disabled","placeholder","idForAriaLabel","audience","issueId","canEditIssuesInComponent","enableMentionsAutocomplete","isLiteralModeSupported"]],template:function(a,b){a&1&&(K(0,"b-comment-draft-textarea",0),T(1,"async"),N("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()}),L());a&2&&(wg("draft-markdown",U(1,11,b.isMarkdown$)),I("textareaClass",b.textareaClass)("disabled",b.disabled)("placeholder",b.placeholder)("idForAriaLabel",b.idForAriaLabel)("audience",b.audience)("issueId",b.issueId)("canEditIssuesInComponent",b.canEditIssuesInComponent)("enableMentionsAutocomplete",b.enableMentionsAutocomplete)("isLiteralModeSupported",b.isLiteralModeSupported))},
dependencies:[nY,Tx],styles:["body   [_nghost-%COMP%]     textarea{resize:none;border-color:var(--text-secondary)}body   [_nghost-%COMP%]     textarea, body   [_nghost-%COMP%]     .autocomplete-underlay{max-height:40vh;min-height:130px;margin:0;width:100%;display:block;margin-bottom:8px}body   [_nghost-%COMP%]     .comment-box-container:focus-within textarea:not(:focus){padding:4px 1px 1px 7px;border:2px solid;border-color:#1a73e8;border-color:var(--primary)}body   [_nghost-%COMP%]     .autocomplete-underlay{width:100%;height:100%;position:absolute;top:0;left:0;z-index:-2;box-sizing:border-box;visibility:hidden;overflow-y:scroll;white-space:pre-line;pointer-events:none}body   [_nghost-%COMP%]     .autocomplete-input-container{position:fixed;z-index:-1;pointer-events:none}body   [_nghost-%COMP%]     .autocomplete-hidden-input{position:fixed}body   [_nghost-%COMP%]     .autocomplete-input-container .autocomplete-hidden-input{height:18px !important;line-height:18px !important;border:0 !important;margin:0 !important;padding:0 !important;opacity:0 !important}body   [_nghost-%COMP%]     .autocomplete-input-container .autocomplete-hidden-input:focus{outline:none !important;border:0 !important;padding:0 !important}body   [_nghost-%COMP%]     textarea.codefont, body   [_nghost-%COMP%]     .draft-markdown textarea{font-family:WorkAroundWebKitAndMozilla,monospace}.good[_nghost-%COMP%]     textarea:focus{border-color:#34a853;border-color:var(--good)}.warn[_nghost-%COMP%]     textarea:focus{border-color:#fcc934;border-color:var(--warn)}.bad[_nghost-%COMP%]     textarea:focus{border-color:#ea4335;border-color:var(--bad)}/*# sourceMappingURL=comment_draft.css.map */"],
changeDetection:0});var zBd=["captchaContainer"],qY=function(){this.ngZone=p(Rg);this.window=p(lR);this.darkmodeService=p(DW);this.appEvents=p(UO);this.analytics=p(eQ);this.onUpdate=new aQ;this.destroyed$=new uf(1)};qY.prototype.ngOnInit=function(){var a=this;this.appEvents.recaptchaSubmitted.pipe(zf(this.destroyed$)).subscribe(function(){a.reset();a.onUpdate.emit("")})};
qY.prototype.ngAfterViewInit=function(){var a=this;this.onUpdate.emit("");var b;(b=this.window.recaptchaAsync)==null||b.then(function(c){var d=a.darkmodeService.clientDarkmodeSubject.getValue();a.widgetId=c.render(a.captchaContainer.nativeElement,{sitekey:"6Ley9F4iAAAAAIwZf9W4ujzph90roM2zldPodcjv",callback:function(e){a.ngZone.run(function(){a.onUpdate.emit(e);a.analytics.trackEvent("recaptchaToken","create")})},"expired-callback":function(){a.ngZone.run(function(){a.onUpdate.emit("");a.analytics.trackEvent("recaptchaToken",
"expire")})},theme:d?"dark":"light"})})};qY.prototype.ngOnDestroy=function(){this.reset();this.destroyed$.next()};qY.prototype.reset=function(){var a=this;if(this.widgetId!==void 0){var b;(b=this.window.recaptchaAsync)==null||b.then(function(c){c.reset(a.widgetId)})}};qY.\u0275fac=function(a){return new (a||qY)};
qY.\u0275cmp=D({type:qY,selectors:[["b-recaptcha"]],viewQuery:function(a,b){a&1&&hg(zBd,5);if(a&2){var c;lg(c=mg())&&(b.captchaContainer=c.first)}},outputs:{onUpdate:"onUpdate"},standalone:!1,decls:2,vars:0,consts:[["captchaContainer",""]],template:function(a){a&1&&M(0,"div",null,0)},encapsulation:2});var rY=function(){var a=this;this.checks=[];this.didTriggerBeforeUnloadHandler=!1;this.beforeUnloadEventHandler=function(b){if(a.checks.some(function(c){return c.dataChanged()}))return a.didTriggerBeforeUnloadHandler=!0,b.preventDefault(),b.returnValue="","You have unsaved changes in your form.";a.didTriggerBeforeUnloadHandler=!1};this.onUnload=function(){if(a.didTriggerBeforeUnloadHandler){var b;(b=a.didConfirm)==null||b.call(a)}};window.addEventListener("beforeunload",this.beforeUnloadEventHandler);
window.addEventListener("unload",this.onUnload)};rY.prototype.ngOnDestroy=function(){this.checks=[];window.removeEventListener("beforeunload",this.beforeUnloadEventHandler);window.removeEventListener("unload",this.onUnload)};var sY=function(a,b,c){var d={dataChanged:b,triggerOnSearch:c};a.checks.push(d);return new Pd(function(){a.checks=a.checks.filter(function(e){return e!==d})})};
rY.prototype.canDeactivate=function(a,b,c,d){a:{a=zt(c.url).getPath()===zt(d.url).getPath();b=m(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?ABd(this)?(this.checks=[],!0):!1:!0};var ABd=function(a){var b=window.confirm("You have unsaved changes; are you sure you want to navigate away without saving?");if(b){var c;(c=a.didConfirm)==null||c.call(a)}return b};
rY.\u0275fac=function(a){return new (a||rY)};rY.\u0275prov=Dc({token:rY,factory:rY.\u0275fac,providedIn:"root"});var BBd=function(a){return[a]},tY=function(){this.matDialog=p(UA)};
tY.prototype.show=function(a){var b=a.issueId;var c=a.audience;var d=a.componentId;var e=a.text===void 0?"":a.text;var f=a.formattingMode===void 0?"PLAIN":a.formattingMode;var g=a.commentNumber;var k=a.dialogTitle;this.dialog=this.matDialog.open(uY,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{issueId:b,componentId:d,audience:c,commentNumber:g,text:e,formattingMode:f,dialogTitle:k!=null?k:"Editing Comment #"+g+" of Issue "+b,showPiiWarning:a.showPiiWarning===void 0?!0:a.showPiiWarning}});
return fe(SA(this.dialog))};tY.\u0275fac=function(a){return new (a||tY)};tY.\u0275prov=Dc({token:tY,factory:tY.\u0275fac,providedIn:"root"});
var uY=function(){Z.apply(this,arguments);this.activeSession=p(uu);this.originalData=p(TA);this.dialogRef=p(RA);this.bannedWordsChecker=p(PW);this.checkBeforeExit=p(rY);this.MARKDOWN="MARKDOWN";this.contentRemovalRequestLink=this.activeSession.isInternalSession()?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202";this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.recaptchaResponse="";this.dataDraft=Object.assign({},
this.originalData)};Y(uY,Z);uY.\u0275dir=Z.\u0275dir;h=uY.prototype;h.ngOnInit=function(){var a=this;this.subscriptions.add(sY(this.checkBeforeExit,function(){return a.isModified()},!1));this.dialogRef.keydownEvents().pipe(zf(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(zf(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};h.closeIfUnmodified=function(){this.isModified()||this.dialogRef.close()};
h.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};h.isModified=function(){return!mm(this.dataDraft,this.originalData)};
h.closeDialogForSave=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return a.isModified()?z(e,a.bannedWordsChecker.check(a.dataDraft.text,a.dataDraft.audience==="EXTERNAL",a.dataDraft.componentId),2):e.return();(b=e.yieldResult)?(d={text:a.dataDraft.text,formattingMode:a.dataDraft.formattingMode},a.enableRecaptcha&&(d.recaptchaToken=a.recaptchaResponse),a.dialogRef.close(d)):(c=a.commentDraft)==null||yBd(c);ae(e)})};
uY.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(uY)))(b||uY)}}();
uY.\u0275cmp=D({type:uY,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&hg(pY,5);if(a&2){var c;lg(c=mg())&&(b.commentDraft=c.first)}},standalone:!1,features:[Gg([PW]),Ef],decls:18,vars:27,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],[3,"contentChange","onSubmit","content","audience","textareaClass","enableMentionsAutocomplete","isLiteralModeSupported"],[1,"banned-words-warning","break-word"],[1,"inline-block",3,"change","initialValue"],[3,"comment","issueId","audience",
"formattingMode"],["mat-dialog-actions",""],["type","button","mat-button","",3,"mat-dialog-close"],["type","button","mat-flat-button","",1,"save",3,"click","disabled","color"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"],[1,"recaptcha-container"],[3,"onUpdate"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1),L(),K(2,"section",
1),F(3,kkb,6,1,"p",2),K(4,"b-comment-draft",3),T(5,"async"),Cg("contentChange",function(c){Bg(b.dataDraft.text,c)||(b.dataDraft.text=c);return c}),N("onSubmit",function(){return b.closeDialogForSave()})("contentChange",function(){b.bannedWordsChecker.reset()}),L(),F(6,lkb,4,1,"p",4),T(7,"async"),K(8,"b-markdown-toggle",5),N("change",function(c){return b.dataDraft.formattingMode=c}),L(),F(9,mkb,1,4,"b-live-preview",6),L(),F(10,nkb,3,0,"section"),K(11,"footer",7)(12,"button",8),Q(13," Cancel "),L(),
K(14,"button",9),T(15,"async"),N("click",function(){return b.closeDialogForSave()}),Q(16),T(17,"async"),L()());a&2&&(B(),yg(b.originalData.dialogTitle),B(2),G(b.originalData.showPiiWarning?3:-1),B(),Ag("content",b.dataDraft.text),I("audience",b.originalData.audience)("textareaClass",Ig(25,BBd,U(5,17,b.bannedWordsChecker.showWarning$)?"banned-words-warning":""))("enableMentionsAutocomplete",!0)("isLiteralModeSupported",!1),B(2),G(U(7,19,b.bannedWordsChecker.showWarning$)?6:-1),B(2),wg("margin-bottom",
(b.dataDraft==null?null:b.dataDraft.formattingMode)!==b.MARKDOWN),I("initialValue",b.originalData.formattingMode),B(),G(b.dataDraft.formattingMode===b.MARKDOWN?9:-1),B(),G(b.enableRecaptcha?10:-1),B(2),I("mat-dialog-close",void 0),B(2),I("disabled",!b.isModified()||!b.isCaptchaValid())("color",U(15,21,b.bannedWordsChecker.showWarning$)?"warn":"primary"),B(2),S(" ",U(17,23,b.bannedWordsChecker.showWarning$)?"Save Anyway":"Save"," "))},dependencies:[VA,XA,ZA,YA,kB,gB,fU,qT,pY,qY,Tx],styles:[".recaptcha-container[_ngcontent-%COMP%]{float:right;padding-top:8px}.banned-words-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-text)}\n/*# sourceMappingURL=edit_comment_dialog.css.map */"],
changeDetection:0});var vY=function(){this.dismissalService=p(iW);this.editIssueService=p(GS);this.butterBar=p(UN);this.issuePermissionService=p($Q);this.issueCommentService=p(yyd);this.editCommentDialogService=p(tY);this.issueFullFridge=p(gQ);this.matDialogService=p(UA);this.paths=p(hW);this.analytics=p(eQ);this.domSafe=p(mR);this.confirmationDialogService=p(dS);this.issueComments=p(sS);this.errorHandler=p(pO);this.eventsForIssueFridge=p(NP);this.componentFridge=p(RO);this.commentFormatter=p(fR);this.confirmNoAccessService=
p(tS);this.activeSession=p(uu);this.appEvents=p(UO);this.issuePicker=p(UX);this.eventsForIssueWatcher=p(kY);this.issueInteractionsTracking=p(CS)},Ysb=function(a,b,c){var d,e,f,g,k,l,r,w,x,C;return y(function(H){if(H.nextAddress==1)return z(H,fe(a.issueFullFridge.watch(b)),2);if(H.nextAddress!=3){d=H.yieldResult;g=(f=(e=d)==null?void 0:e.snapshot[0].componentId)!=null?f:void 0;k=a.editIssueService.savingState(b);if(k.get("commentEdit"))return H.return();l=c.commentNumber;if(!l)return H.return();a.butterBar.dismiss();
w=(r=a.issuePermissionService.audience())!=null?r:"EXTERNAL";return z(H,a.editCommentDialogService.show({issueId:b,audience:w,componentId:g,text:(x=c.unlinkifiedComment)!=null?x:void 0,formattingMode:c.formattingMode,commentNumber:l}),3)}C=H.yieldResult;if(C==null)return H.return();zyd(a.issueCommentService,{issueId:b,newCommentId:l,newComment:C.text,newCommentFormattingMode:C.formattingMode,recaptchaToken:C.recaptchaToken});ae(H)})},DBd=function(a,b,c){var d,e,f;return y(function(g){if(g.nextAddress==
1)return c?z(g,CBd(a,b),2):g.return();if(g.nextAddress!=3)return d={title:"Choose target issue",defaultChoices:g.yieldResult,allowMultipleIds:!1,currentResource:{id:b,type:"issue"},edgeType:"copyComment"},z(g,a.issuePicker.open(d),3);e=g.yieldResult;if((f=e)==null?0:f.length){var k=ss(e[0],{template_issue:b,template_comment:c,do_attribution:!0});a.analytics.trackEvent("editIssue","copyComment");a.domSafe.openInNewTab(k)}ae(g)})},CBd=function(a,b){function c(V){return x.get(V)}var d,e,f,g,k,l,r,w,
x,C,H,J,O,R;return y(function(V){if(V.nextAddress==1)return z(V,fe(a.issueFullFridge.watch(b)),2);if(V.nextAddress!=3){d=V.yieldResult;if(!d)return V.return([]);f=(e=d.snapshot[0].duplicateIssueId)!=null?e:[];k=(g=d.snapshot[0].blockingIssueId)!=null?g:[];r=(l=d.snapshot[0].blockedByIssueId)!=null?l:[];return z(V,fe(a.issueFullFridge.watchSet(tq([].concat(q(f),q(k),q(r))))),3)}w=V.yieldResult;x=new Map(w.map(function(ca){return[ca.issueId,ca]}));C=r.map(c).filter(Pm).map(okb("BLOCKED_BY"));H=k.map(c).filter(Pm).map(okb("BLOCKING"));
J=f.map(c).filter(Pm).map(okb("DUPLICATE"));O=[].concat(q(C),q(H),q(J));R=pkb(O);return V.return(R)})},FBd=function(a,b,c){var d;return y(function(e){return e.nextAddress==1?c?z(e,qmd(a.confirmationDialogService,{title:"Restore comment # "+c+"?",content:Bh("Are you sure you want to restore this comment?")}),2):e.return():(d=e.yieldResult)?z(e,EBd(a,b,c),0):e.return()})},EBd=function(a,b,c){var d,e;return y(function(f){switch(f.nextAddress){case 1:d=a.editIssueService.savingState(b);if(d.get("commentUndelete"))return f.return();
Rr(a.butterBar,"Restoring comment...",0);Wd(f,2,3);Sr(d,"commentUndelete");return z(f,a.issueComments.undelete(b,c),5);case 5:Rr(a.butterBar,"Comment restored successfully.");case 3:Xd(f);ES(d,"commentUndelete");a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b);Zd(f,0);break;case 2:e=$d(f),Rr(a.butterBar,"Comment restoration failed."),rO(a.errorHandler,e),f.jumpTo(3)}})},IBd=function(a,b,c,d){var e,f,g,k;return y(function(l){if(l.nextAddress==1){if(!c)return l.return();e=a.editIssueService.savingState(b);
return e.get("commentDelete")?l.return():z(l,GBd(a,b),2)}return l.nextAddress!=3?(f=l.yieldResult,a.butterBar.dismiss(),z(l,fe(SA(a.matDialogService.open(Xud,{width:"560px",data:{commentNumber:c,issueId:b,deletionReasons:f}}))),3)):(g=l.yieldResult)?z(l,HBd(a,b,c,g.value,(k=d)!=null?k:""),0):l.jumpTo(0)})},HBd=function(a,b,c,d,e){var f,g;return y(function(k){switch(k.nextAddress){case 1:f=a.editIssueService.savingState(b);if(f.get("commentDelete"))return k.return();Wd(k,2,3);Rr(a.butterBar,"Deleting comment...",
0);Sr(f,"commentDelete");return z(k,a.issueComments.delete(b,c,d,e),5);case 5:Rr(a.butterBar,"Comment deleted. Deleted items may be restored within 30 days."),a.eventsForIssueFridge.poke(b);case 3:Xd(k);ES(f,"commentDelete");a.issueFullFridge.poke(b);Zd(k,0);break;case 2:g=$d(k),Rr(a.butterBar,"Comment deletion failed."),rO(a.errorHandler,g),k.jumpTo(3)}})},GBd=function(a,b){var c,d,e,f,g,k,l,r;return y(function(w){switch(w.nextAddress){case 1:return z(w,fe(a.issueFullFridge.watch(b,{trustUncertainMemory:!0})),
2);case 2:c=w.yieldResult;e=((d=c)==null?void 0:d.snapshot[0].componentId)||void 0;if(!e){f=void 0;w.jumpTo(3);break}return z(w,fe(a.componentFridge.watch(e)),4);case 4:f=w.yieldResult;case 3:return g=f,k=new oBd("Other","USER_REQUEST"),g&&g.commentEditState!=="DISABLED"||(k.enabled=!1,k.disabledReason="comment editing must be enabled"),l=new oBd("Spam or Abuse","ABUSE"),a.issuePermissionService.accessLevel()!=="EXTERNAL_PUBLIC"&&(l.enabled=!1,l.disabledReason="available on Public components"),r=
new oBd("Personally Identifiable Information","RESTRICTED"),w.return([r,l,k])}})},JBd=function(a,b,c){var d,e;return y(function(f){if(f.nextAddress==1)return d=ZQ(a.issuePermissionService,wm(c.userPerformingActionUser)),a.analytics.trackEvent("restrictedContent","updateContentJudgement","comment"),z(f,a.showContentJudgementDialog({severity:Rp(c.commentContentVerdict),resourcePath:"issues/"+b+"/comments/"+c.commentNumber,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||d}),2);if(e=f.yieldResult)c.commentContentVerdict=
{piiVerdict:{severity:e.contentJudgement.severity}},a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b),hQ(a.issueFullFridge,[b],{markRead:!0,userActivityType:"EDIT"});ae(f)})};vY.prototype.showContentJudgementDialog=function(a){return fe(SA(this.matDialogService.open(WX,{panelClass:"no-jitter",width:"500px",data:a})))};
var KBd=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1)return z(e,fe(SA(a.matDialogService.open(XX,{width:"500px",data:{resource:b,piiRetention:c}}))),2);d=e.yieldResult;return e.return(d===1)})},LBd=function(a,b,c,d){var e;y(function(f){if(f.nextAddress==1){if(d==null)return f.return();a.analytics.trackEvent("restrictedContent","updateContentJudgement","attachment");return z(f,a.showContentJudgementDialog({severity:Rp(d.contentVerdict),resourcePath:"issues/"+b+"/attachments/"+d.attachmentId,
hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||c}),2)}if(e=f.yieldResult)d.contentVerdict={piiVerdict:{severity:e.contentJudgement.severity}},a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b),hQ(a.issueFullFridge,[b],{markRead:!0,userActivityType:"EDIT"});ae(f)})};
vY.prototype.showDeleteAttachmentDialog=function(a,b){var c=this,d,e,f,g,k,l;y(function(r){if(r.nextAddress==1){d=c.editIssueService.savingState(a);if(d.get("deleteAttachment")||!b.attachmentId||b.attachmentId==="0")return r.return();e=fe;f=c.matDialogService;g=f.open;k=Wud;return z(r,GBd(c,a),3)}return r.nextAddress!=2?z(r,e(SA(g.call(f,k,{width:"560px",data:{deletionReasons:r.yieldResult,attachmentId:b.attachmentId}}))),2):(l=r.yieldResult)?z(r,$nd(c.editIssueService,a,b,l.value),0):r.jumpTo(0)})};
var MBd=function(a,b){var c=b.issueId;var d=b.componentId;var e=b.comment;var f,g,k;return y(function(l){if(l.nextAddress==1){if(XN(a.activeSession)&&!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.hasAclToEdit()&&a.issuePermissionService.isImplicitAccessEnabled())return l.return(!0);Wd(l,2);var r=a.commentFormatter;var w={comment:e.value,issueId:c,audience:(f=a.issuePermissionService.audience())!=null?f:"EXTERNAL",formattingMode:e.formattingMode,idPrefix:"b"+c+"-draft"};r=w.formattingMode===
"LITERAL"||w.comment.trim()===""?ce([]):ekd(r,w).pipe(A(P5a));return z(l,fe(r),4)}if(l.nextAddress!=2)return g=l.yieldResult,l.return(end(a.confirmNoAccessService,{componentId:d,userEmails:g,relation:"reader",analyticsEventLabel:"mention"}));k=$d(l);rO(a.errorHandler,k);return l.return(!1)})},NBd=function(a,b){b=b===void 0?"comment":b;var c,d,e;return y(function(f){if(f.nextAddress==1)return(c=a.issuePermissionService.accessLevel())&&c==="INTERNAL"||a.issuePermissionService.hasAclToEdit()||a.activeSession.isInternalSession()||
WN(a.activeSession)?f.return(!0):z(f,a.dismissalService.isDismissed(Jfb(b)),2);if(d=f.yieldResult)return f.return(!0);switch(b){case "comment":e=Bh("Commenting on this bug report means your email address will be shared with the team that works on this product.");break;case "reaction":e=Bh("Reacting to this comment means your email address will be shared with the team that works on this product.");break;default:wb(b)}return f.return(fe(SA(a.matDialogService.open(jW,{width:"500px",data:{content:e,action:b}}))))})};
vY.prototype.submitCommentBox=function(a,b,c,d){var e=this,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:f=e.editIssueService.savingState(b);if(!e.issuePermissionService.hasAclToComment()||!jnd(c)||f.get("comment"))return r.return(!1);Sr(f,"comment");g=function(){ES(f,"comment")};return z(r,MBd(e,{issueId:b,componentId:a,comment:c}),2);case 2:return k=r.yieldResult,k?z(r,NBd(e),3):(g(),r.return(!1));case 3:l=r.yieldResult;if(!l)return g(),r.return(!1);e.analytics.trackEvent("editIssue",
"addComment",c.formattingMode==="MARKDOWN"?"markdown":"non markdown");Tr(e.issueInteractionsTracking,b);e.eventsForIssueWatcher.isPaused=!0;return z(r,e.editIssueService.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY.saveCommentDraft(b,d).finally(function(){g();e.appEvents.commentSubmitted.next(b)}),4);case 4:return r.return(!0)}})};
vY.prototype.showNewContentJudgementDialog=function(a){var b=this,c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1)return c=b.editIssueService.issueCommentDraft(a),d=c.judgementForNewContent(),g=(f=(e=d)==null?void 0:e.severity)!=null?f:"NONE_DETECTED",z(l,b.showContentJudgementDialog({severity:g,contentJudgement:void 0,hasAclToCreate:!0}),2);(k=l.yieldResult)&&c.setJudgementForNewContent(k.contentJudgement);ae(l)})};
vY.prototype.updateCommentReaction=function(a){var b=this,c;return y(function(d){return d.nextAddress==1?a.hasReacted?z(d,NBd(b,"reaction"),3):d.jumpTo(2):d.nextAddress==2||(c=d.yieldResult,c)?d.return(b.issueComments.updateCommentReaction(a)):d.return(void 0)})};vY.\u0275fac=function(a){return new (a||vY)};vY.\u0275prov=Dc({token:vY,factory:vY.\u0275fac,providedIn:"root"});var wY=function(){this.editIssueService=p(GS);this.issuePicker=p(UX);this.analytics=p(eQ);this.butterBar=p(UN)},OBd=function(a,b){var c,d,e,f,g,k,l;return y(function(r){if(r.nextAddress==1)return b=String(b),c=a.editIssueService.editableIssue(b),d=c.status,c.setStatus("DUPLICATE"),e={title:"Mark issue as duplicate of:",currentResource:{id:b,type:"issue"},componentId:c.componentId,allowMultipleIds:!1,edgeType:"canonical"},f=(new Date).getTime(),z(r,a.issuePicker.open(e),2);if(r.nextAddress!=3){g=r.yieldResult;
if((k=g)==null||!k.length)return c.status=d,r.return("DISMISSED");if(b===g[0])return c.status=d,a.butterBar.showWarning("Cannot set issue as a duplicate of itself"),r.return("DISMISSED");l=(new Date).getTime()-f;a.analytics.trackEvent("issuePicker","duplicate duration","<"+Math.min(2*Math.ceil(l/2E3),600)+"s",l);a.analytics.trackEvent("editIssue","setCanonicalIssue");bhd(a.analytics,"DUPLICATE");return z(r,Rnd(a.editIssueService,b,g[0]),3)}return r.return("DUPLICATE")})};
wY.\u0275fac=function(a){return new (a||wY)};wY.\u0275prov=Dc({token:wY,factory:wY.\u0275fac,providedIn:"root"});var Dkb=function(a,b){return b.id},xY=function(){var a=this;this.componentFridge=p(RO);this.issueEditComponentService=p(gW);this.trackerHelpers=p(kS);this.activeSession=p(uu);this.cdr=p(Cx);this.componentId$=new uf(1);this.readOnly=!1;this.linkifyComponentNames=!0;this.showPickerOverlayAbove=!1;this.handleSave=!0;this.compactMode$=new Mj(!1);this.componentChanged=new aQ;this.displayValueOverride="";this.editing=!1;this.component$=this.componentId$.pipe(yf(function(b){return a.componentFridge.watch(b).pipe(xf(void 0))}));
this.isArchived$=this.component$.pipe(A(function(b){return b==null?void 0:b.archived}));this.showPublicIndicator$=this.component$.pipe(A(function(b){var c;b=b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel;return b==null||a.activeSession.isExternalSession()?!1:a.activeSession.isInternalSession()||WN(a.activeSession)?b==="EXTERNAL_PUBLIC":!1}));this.showPartnerIndicator$=this.component$.pipe(A(function(b){var c;b=b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel;return b==null||
a.activeSession.isExternalSession()||WN(a.activeSession)?!1:a.activeSession.isInternalSession()?b==="EXTERNAL_PARTNER":!1}));this.folder$=ie([this.showPublicIndicator$,this.showPartnerIndicator$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b?{icon:"folder_shared_24px",tooltip:"Public component. Issues can be made visible to public Google Search."}:c?{icon:"folder_shared_24px",tooltip:"Partner component. Issues can be made visible to Google partners."}:rs(a.activeSession)?
{icon:"folder_special_24px",tooltip:"This component is inside a tracker"}:{icon:"folder",tooltip:""}}),xf({icon:"folder",tooltip:""}));this.componentPath$=ie([this.componentId$,this.component$,this.compactMode$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;if(d==null)return Zcb({componentPathId:[b]});b=ju(a.trackerHelpers,d.componentPathInfo);b=Zcb(b);if(c){c=[];d=0;for(var e=b.length-1;e>=0;e--){var f=b[e],g=e===b.length-1?48:32;if(d>=g)break;var k=String(f.name),
l=void 0;if(d+[].concat(q(k)).length>g){var r=g-d;g="";k=k===void 0?"":k;r=r===void 0?48:r;g=g===void 0?"...":g;l=[].concat(q(k));l.length<=r||(k=r-[].concat(q(g)).length,k=l.slice(-k).join(""),String.prototype.trimStart!=null&&(k=k.trimStart()),k=g+k);l=!0}d+=[].concat(q(k)).length;c.unshift(Object.assign({},f,{name:k,isTruncated:l}));if(l)break}b.length>c.length&&(c[0].isSpliced=!0);b=c}return b}));this.isEmpty$=this.component$.pipe(A(function(b){return!b}));this.isThinkingAndEmpty$=ie([this.componentFridge.thinking$,
this.isEmpty$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b&&c}));this.isReady$=this.isThinkingAndEmpty$.pipe(A(function(b){return!b}))};xY.prototype.ngOnInit=function(){};var Jkb=function(a,b){a.editing=!1;(b=b==null?void 0:b.componentId)&&(a.handleSave?a.issueEditComponentService.updateComponent(a.issueId,b):a.componentChanged.emit(b))};
da.Object.defineProperties(xY.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.componentId$.next(a)}},compactMode:{configurable:!0,enumerable:!0,set:function(a){this.compactMode$.next(a)}}});xY.\u0275fac=function(a){return new (a||xY)};
xY.\u0275cmp=D({type:xY,selectors:[["b-component-breadcrumb-chip"]],inputs:{componentId:"componentId",issueId:"issueId",readOnly:"readOnly",linkifyComponentNames:"linkifyComponentNames",popoutLink:"popoutLink",showPickerOverlayAbove:"showPickerOverlayAbove",handleSave:"handleSave",compactMode:"compactMode",displayValueOverride:"displayValueOverride"},outputs:{componentChanged:"componentChanged"},standalone:!1,decls:2,vars:1,consts:[["card",""],["cardBody",""],[3,"isReady"],["placeholder","Choose Component",
3,"selectedComponent","isRequired","shouldFocus","showOverlayAbove","issueId"],[1,"b-chip","squared","s"],["title","Component folder path",1,"icon-xs",3,"svgIcon","matTooltip"],[1,"component-path"],["type","button","mat-icon-button","","aria-label","Change Component","matTooltip","Change Component",1,"edit-btn"],["mat-icon-button","","aria-label","View Component (Link opens in a new window)","matTooltip","View Component","target","_blank",1,"small","pop-out-btn",3,"routerLinkObj"],["href","javascript:void(0);",
"title","Show all Components","aria-label","Show all Components","role","button",1,"subtle-link"],[4,"onedevHovercardLazyBody"],["href","javascript:void(0);","title","Show all Components","aria-label","Show all Components","role","button",1,"subtle-link",3,"click"],["aria-hidden","true"],[1,"subtle-link",3,"routerLinkObj","onedevHovercardTrigger","muted"],[1,"subtle-link",3,"routerLinkObj","onedevHovercardTrigger"],[1,"plain-component-name",3,"muted"],[1,"plain-component-name"],[3,"onedevIsHovercardReady",
"componentId"],["type","button","mat-icon-button","","aria-label","Change Component","matTooltip","Change Component",1,"edit-btn",3,"click"],["svgIcon","edit-outline",1,"icon-xxs"],["svgIcon","pop-out",1,"icon-xs"],["placeholder","Choose Component",3,"selectedComponentChange","dropdownClosed","selectedComponent","isRequired","shouldFocus","showOverlayAbove","issueId"]],template:function(a,b){a&1&&F(0,Ikb,13,22,"b-async-data-placeholder",2)(1,Kkb,2,7,"b-team-component-picker",3);a&2&&G(b.editing?1:
0)},dependencies:[oW,Jy,VO,kB,iB,dW,KK,LK,SK,MK,vK,nA,UV,Tx],styles:["[_nghost-%COMP%]     b-async-data-placeholder{display:inline-block;height:22px}a[_ngcontent-%COMP%], .plain-component-name[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%], .edit-btn[_ngcontent-%COMP%], .pop-out-btn[_ngcontent-%COMP%]{vertical-align:middle}mat-icon[_ngcontent-%COMP%]:first-of-type{margin-right:3px}.b-chip[_ngcontent-%COMP%]{margin-right:0}.edit-btn[_ngcontent-%COMP%], .pop-out-btn[_ngcontent-%COMP%]{height:22px;width:22px;line-height:22px;margin-right:-4px;margin-left:4px;border-radius:4px;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid;border-left-color:#fff;border-left-color:var(--background)}.edit-btn[_ngcontent-%COMP%]     .mat-mdc-button-persistent-ripple, .pop-out-btn[_ngcontent-%COMP%]     .mat-mdc-button-persistent-ripple{border-radius:inherit}.edit-btn[_ngcontent-%COMP%]:hover, .pop-out-btn[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.edit-btn[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%], .pop-out-btn[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-top:-3px}.partner[_ngcontent-%COMP%]{background-color:#fff3e9;background-color:var(--partner-component-breadcrumb-bg);color:#202124;color:var(--partner-text);box-shadow:inset 0 0 0 2px var(--partner-component-breadcrumb-outline)}.public[_ngcontent-%COMP%]{background-color:#fff8e4;background-color:var(--public-component-breadcrumb-bg);color:#202124;color:var(--public-text);box-shadow:inset 0 0 0 2px var(--public-component-breadcrumb-outline)}.public[_ngcontent-%COMP%]   .edit-btn[_ngcontent-%COMP%], .public[_ngcontent-%COMP%]   .pop-out-btn[_ngcontent-%COMP%], .partner[_ngcontent-%COMP%]   .edit-btn[_ngcontent-%COMP%], .partner[_ngcontent-%COMP%]   .pop-out-btn[_ngcontent-%COMP%]{border-left-color:rgba(0,0,0,0)}.issue-editor-false   [_nghost-%COMP%]     .edit-btn{display:none}"],
changeDetection:0});var Mkb={accessLevel:"LIMIT_NONE",title:"Default access",descriptionWithExpandedAccess:"Assignee, verifier and collaborators may edit. CCs can comment. Regular component-level permission settings apply.",descriptionNoExpandedAccess:"Issue access determined by component-level permission settings.",icon:"acl-alias-domain"},PBd={accessLevel:"LIMIT_VIEW_TRUSTED",title:"Limited visibility + Google",descriptionWithExpandedAccess:'Same as "limited visibility", but also allow Googlers to access, according to their component-level permissions.',
descriptionNoExpandedAccess:'Same as "limited visibility", but also allow Googlers to access, according to their component-level permissions.',icon:"visibility-off"},Lkb=[Mkb,{accessLevel:"LIMIT_APPEND",title:"Limited commenting",descriptionWithExpandedAccess:"Only the assignee, verifier and collaborators may edit. CCs can comment. Issue admins retain full access. Visibility is unchanged.",descriptionNoExpandedAccess:"Only added users may edit or comment if their component-level permissions allow. Issue admins retain full access. Visibility is unchanged.",
icon:"comments_disabled_24px"},{accessLevel:"LIMIT_VIEW",title:"Limited visibility",descriptionWithExpandedAccess:"Only added users may access. The assignee, verifier and collaborators may edit. CCs can comment.",descriptionNoExpandedAccess:"Only added users may access. They have their normal access as defined by the component-level permissions.",icon:"visibility-off"},PBd];var yY=function(){Z.call(this);var a=this;this.defaultAccessLimitLevel$=new uf(1);this.disabled=!0;this.implicitAccessEnabled=!1;this.updatedAccessLimitLevel=new aQ;this.selectedDisplay$=new Mj(null);this.displays=Lkb;this.disabledDropdownTooltip="Only users with Issue Admin permission can adjust restriction levels.";this.currentIssueAccessLimitLevelDisplay$=ie([this.selectedDisplay$,this.defaultAccessLimitLevel$]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c?c:QBd(a,d)}));
this.issueAccessLimitLevelDisplayTitle$=this.currentIssueAccessLimitLevelDisplay$.pipe(A(function(c){return c.title}));var b=p(Ce);this.defaultAccessLimitLevel$.pipe(Tj(b)).subscribe(function(c){a.selectedDisplay$.next(QBd(a,c))})};Y(yY,Z);yY.\u0275dir=Z.\u0275dir;var QBd=function(a,b){a=m(a.displays);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.accessLevel===b)return c;return Mkb};da.Object.defineProperties(yY.prototype,{defaultAccessLimitLevel:{configurable:!0,enumerable:!0,set:function(a){this.defaultAccessLimitLevel$.next(a)}}});
yY.\u0275fac=function(a){return new (a||yY)};
yY.\u0275cmp=D({type:yY,selectors:[["b-issue-access-limits-dropdown"]],inputs:{defaultAccessLimitLevel:"defaultAccessLimitLevel",disabled:"disabled",implicitAccessEnabled:"implicitAccessEnabled"},outputs:{updatedAccessLimitLevel:"updatedAccessLimitLevel"},standalone:!1,features:[Ef],decls:14,vars:9,consts:[["accessLimitsMenu","matMenu"],[1,"access-limits-dropdown"],["mat-button","","mat-stroked-button","","dropdown-menu-button","","type","button",1,"access-limits-dropdown-button","gmat-mdc-button",
"small",3,"matMenuTriggerFor","disabled"],[1,"selected-access-limit-level-title"],["svgIcon","acl-alias-domain",1,"icon-s"],[1,"selected-access-limit-level-title-text"],["iconPositionEnd","","svgIcon","arrow-dropdown",1,"icon-s"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",1,"icon-s","valign-middle",3,"matTooltip"],[1,"access-limit-level-options"],["type","button","mat-menu-item","",1,"access-limit-level-option"],["type","button","mat-menu-item","",1,"access-limit-level-option",
3,"click"],[1,"access-limit-level-title"],[1,"icon-s",3,"svgIcon"],[1,"access-limit-level-title-text"],[1,"access-limit-level-description"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"button",2),T(2,"async"),K(3,"span",3),M(4,"mat-icon",4),K(5,"span",5),Q(6),T(7,"async"),L()(),M(8,"mat-icon",6),L(),F(9,Okb,1,1,"mat-icon",7),K(10,"mat-menu",8,0),Nf(12,Pkb,7,3,"button",9,Mf),L()());if(a&2){var c;a=qg(11);B();I("matMenuTriggerFor",a)("disabled",b.disabled);var d;If("aria-label","Issue Access level, "+
((d=(c=U(2,5,b.selectedDisplay$))==null?null:c.title)!=null?d:"Default access"));B(5);S(" ",U(7,7,b.issueAccessLimitLevelDisplayTitle$)," ");B(3);G(b.disabled?9:-1);B(3);Of(b.displays)}},dependencies:[Jy,kB,gB,VJ,fH,dH,iH,vK,nA,Tx],styles:[".bv2-material.d-compact .mat-mdc-menu-item.access-limit-level-option{height:fit-content;line-height:12px}.bv2-material.d-cozy .mat-mdc-menu-item.access-limit-level-option{height:fit-content;line-height:16px}.mat-mdc-menu-panel.access-limit-level-options{min-width:320px}.mat-mdc-menu-item.access-limit-level-option{--mat-menu-item-with-icon-leading-spacing: 0px;--mat-menu-item-with-icon-trailing-spacing: 0px;height:fit-content;line-height:20px}.mat-mdc-menu-item.access-limit-level-option:focus,.mat-mdc-menu-item.access-limit-level-option:focus-within{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}.mat-mdc-menu-item.access-limit-level-option .mat-icon.icon-s{margin-right:2px}.access-limits-dropdown{padding:5px 0px}.access-limits-dropdown mat-icon{vertical-align:middle;color:#202124;color:var(--text-default)}.access-limits-dropdown>mat-icon{padding-left:3px}.access-limits-dropdown-button:disabled{background-color:var(--disabled-bg);color:var(--text-disabled)}.access-limit-level-option{padding:5px 0px}.access-limit-level-option:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);cursor:pointer}.access-limit-level-title{padding:0px 10px;white-space:nowrap}.access-limit-level-title mat-icon{vertical-align:text-bottom}.access-limit-level-description{padding:0px 15px 0px 35px;color:#5f6368;color:var(--text-muted);white-space:normal}.access-limit-level-options mat-icon{color:#202124;color:var(--text-default)}.selected-access-limit-level-title{color:#202124;color:var(--text-default);font-size:small}.selected-access-limit-level-title-text{padding:0px 6px}\n"],
encapsulation:2});var zY=function(){Z.apply(this,arguments);var a=this;this.errorHandler=p(pO);this.activeSession=p(uu);this.issueApi=p(MP);this.issueFullFridge=p(gQ);this.componentFridge=p(RO);this.trackerFridge=p(VQ);this.eventsForIssueFridge=p(NP);this.issuePermissionService=p($Q);this.snackBar=p(rB);this.dialogRef=p(RA);this.data=p(TA);this.analytics=p(eQ);this.confirmationDialogService=p(dS);this.jspbPrincipalTypes=p(DQ);this.defaultAccessLimitLevel="LIMIT_NONE";this.COLLABORATOR_GROUPS_TOOLTIP="Collaborator groups are trusted groups that are configured by tracker admins only. Select and add these groups if they should be given collaborator access to this issue.";
this.writers=[];this.appenders=[];this.readers=[];this.currentUserEmail=this.activeSession.getUserEmail();this.isImplicitAccessEnabled$=this.issuePermissionService.isImplicitAccessEnabled$;this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.issueId=this.data.issueId;this.issue$=this.issueFullFridge.watch(this.issueId);this.currentAccessLimitLevel$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].issueAccessLimitLevel)!=null?c:a.defaultAccessLimitLevel}));
this.updatedAccessLimitLevel$=new Mj(this.defaultAccessLimitLevel);this.hasAccessLimitLevelSelectionChanged$=ie([this.currentAccessLimitLevel$,this.updatedAccessLimitLevel$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b!==c}));this.componentId=this.data.componentId;this.component$=this.componentFridge.watch(this.componentId);this.trackerId$=this.component$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.tracker$=this.trackerId$.pipe(yf(function(b){return b?
a.trackerFridge.watch(b):ce(void 0)}));this.collaboratorGroupsEmailToDetailsMap=new Map;this.addedCollaboratorGroups=new Set;this.removedCollaboratorGroups=new Set;this.expandedAccessTooltip$=this.isImplicitAccessEnabled$.pipe(A(function(b){return b?"This component has expanded access enabled. Assignees, verifiers, and collaborators can edit issues, and CC'd users can add comments.":"This component has expanded access disabled. Being listed on the issue does not confer any additional access privileges."}))};
Y(zY,Z);zY.\u0275dir=Z.\u0275dir;
zY.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.currentAccessLimitLevel$.subscribe(function(b){a.updatedAccessLimitLevel$.next(b);Qkb(a,b)}));this.subscriptions.add(ie([this.tracker$,this.issue$]).subscribe(function(b){var c=m(b);b=c.next().value;c=c.next().value;a.updateCollaboratorGroups(b,c)}));this.subscriptions.add(this.hasAccessLimitLevelSelectionChanged$.subscribe(function(b){a.dialogRef.disableClose=b}));this.analytics.trackEvent("issueAccessLimits","view","issue_access_limits_dialog:"+
this.issueId)};
zY.prototype.updateCollaboratorGroups=function(a,b){var c=this,d,e,f,g;y(function(k){if(k.nextAddress==1){c.collaboratorGroupsEmailToDetailsMap.clear();c.addedCollaboratorGroups.clear();c.removedCollaboratorGroups.clear();if(a&&a.collaboratorGroups)for(d=m(a.collaboratorGroups),e=d.next();!e.done;e=d.next())f=e.value,f.emailAddress&&c.collaboratorGroupsEmailToDetailsMap.set(f.emailAddress,{user:f,specifiedOnIssue:!1});return b&&b.snapshot&&b.snapshot[0].collaboratorsUsers?z(k,RBd(c,b.snapshot[0].collaboratorsUsers),
3):k.jumpTo(0)}g=k.yieldResult;g.forEach(function(l){c.collaboratorGroupsEmailToDetailsMap.set(l.emailAddress,{user:l,specifiedOnIssue:!0})});ae(k)})};
var RBd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=b.map(function(f){return f.emailAddress}).filter(Pm),z(e,Zid(a.jspbPrincipalTypes,c,!1),2);d=e.yieldResult;return e.return(b.filter(function(f){if(!f.emailAddress)return!1;var g;return((g=d[f.emailAddress])==null?void 0:g.principalType)==="GROUP"}))})},SBd=function(a){return a?"Expanded access on":"Expanded access off"},Tkb=function(a,b){return a.addedCollaboratorGroups.size>0||a.removedCollaboratorGroups.size>0||b===
!0},Qkb=function(a,b){a.addedCollaboratorGroups.size>0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_added_dryrun:"+a.issueId);a.removedCollaboratorGroups.size>0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_removed_dryrun:"+a.issueId);a.issueApi.getRetainedAccessPrincipals(a.issueId,b,Array.from(a.addedCollaboratorGroups),Array.from(a.removedCollaboratorGroups)).then(function(c){a.writers=hs(c.writers);a.appenders=hs(c.appenders);a.readers=hs(c.readers)},function(c){rO(a.errorHandler,
c)})};h=zY.prototype;h.manageComponentAccessRouterLink=function(a){return{path:"/components/"+a+"/manage",fragment:"access"}};h.closeDialog=function(){this.dialogRef.close()};h.onEnter=function(){this.onPressSave()};h.onEscape=function(){this.dialogRef.close()};
h.onPressSave=function(){var a=this,b=es({user:{emailAddress:this.currentUserEmail}});if(this.writers.includes(b)||this.appenders.includes(b)||this.readers.includes(b))this.save();else{b="You will lose access";var c="You will no longer be able to access this issue. Are you sure you want to proceed?";this.writers.length===0&&this.appenders.length===0&&this.readers.length===0&&(b="Issue will be orphaned",c="No one will be able to access this issue. We strongly recommend maintaining at least one user with access. Are you sure you still want to proceed?");
this.confirmationDialogService.open({title:b,content:Bh(c),onConfirm:function(){a.save()}})}};
h.save=function(){var a=this;this.dialogRef.close();this.issueApi.updateAccessLimit(this.issueId,this.updatedAccessLimitLevel$.value,Array.from(this.addedCollaboratorGroups),Array.from(this.removedCollaboratorGroups)).then(function(){a.didSave();a.analytics.trackEvent("issueAccessLimits","update","issue_access_limits_dialog:"+a.updatedAccessLimitLevel$.value);a.addedCollaboratorGroups.size>0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_added:"+a.issueId);a.removedCollaboratorGroups.size>
0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_removed:"+a.issueId)},function(b){rO(a.errorHandler,b)})};h.didSave=function(){this.snackBar.open("Successfully saved access configuration",void 0,{duration:2500});this.issueFullFridge.poke(this.issueId);this.eventsForIssueFridge.poke(this.issueId)};h.onPressCancel=function(){this.dialogRef.close()};zY.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(zY)))(b||zY)}}();
zY.\u0275cmp=D({type:zY,selectors:[["b-issue-access-limits-dialog"]],hostBindings:function(a,b){a&1&&N("keydown.escape",function(){return b.onEscape()})},standalone:!1,features:[Ef],decls:38,vars:43,consts:[[1,"bv2-issue-limits-title"],[1,"lock-circle"],["svgIcon","lock","color","text-primary"],[1,"issue-limits-dialog-title-txt"],[3,"issueId","componentId","compactMode","popoutLink","readOnly","linkifyComponentNames"],[1,"expanded-access"],[1,"expanded-access-txt"],["svgIcon","help-outline","tabindex",
"0","aria-hidden","false","aria-label","Help","role","button",1,"icon-s","valign-middle",3,"matTooltip"],[3,"updatedAccessLimitLevel","disabled","defaultAccessLimitLevel","implicitAccessEnabled"],[1,"user-display-area"],[1,"limit-users-title"],["idForInputBox","Users who can edit, comment, and view",3,"users","includeAliases","includeViewAliases"],["idForInputBox","Users who can comment and view",3,"users","includeAliases","includeViewAliases"],["idForInputBox","Users who can only view",3,"users",
"includeAliases","includeViewAliases"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","close"],[1,"collaborator-groups-title"],[1,"collaborator-groups-checkboxes"],[1,"collaborator-group-checkbox",3,"id","name","checked"],[1,"collaborator-group-checkbox",3,"click","change","id","name","checked"],["type","button","mat-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","confirm",3,"click","disabled"],["type","button","mat-button",
"",1,"medium","close",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"span",1),M(2,"mat-icon",2),L(),K(3,"h2",3),Q(4,"Issue access level"),L()(),K(5,"mat-dialog-content")(6,"div"),M(7,"b-component-breadcrumb-chip",4),K(8,"span",5),T(9,"async"),K(10,"span",6),Q(11),T(12,"async"),L(),M(13,"mat-icon",7),T(14,"async"),L()(),K(15,"b-issue-access-limits-dropdown",8),T(16,"async"),T(17,"async"),T(18,"async"),N("updatedAccessLimitLevel",function(g){b.updatedAccessLimitLevel$.next(g);Qkb(b,g)}),L(),
F(19,Skb,8,4),T(20,"async"),K(21,"div",9)(22,"div")(23,"div",10),Q(24,"Users who can edit, comment, and view"),L(),M(25,"b-multi-user-input",11),L(),K(26,"div")(27,"div",10),Q(28,"Users who can comment and view"),L(),M(29,"b-multi-user-input",12),L(),K(30,"div")(31,"div",10),Q(32,"Users who can only view"),L(),M(33,"b-multi-user-input",13),L()()(),K(34,"div",14),F(35,Ukb,5,3),T(36,"async"),Kf(37,Vkb,2,0,"button",15),L());if(a&2){B(7);I("issueId",b.issueId)("componentId",b.data.componentId)("compactMode",
!0)("popoutLink",b.manageComponentAccessRouterLink)("readOnly",!0)("linkifyComponentNames",!1);B();wg("expanded-access-on",U(9,27,b.isImplicitAccessEnabled$));B(3);var c;yg(SBd((c=U(12,29,b.isImplicitAccessEnabled$))!=null?c:!1));B(2);var d;I("matTooltip",(d=U(14,31,b.expandedAccessTooltip$))!=null?d:"");B(2);var e,f;I("disabled",!U(16,33,b.hasAclToAdmin$))("defaultAccessLimitLevel",(e=U(17,35,b.currentAccessLimitLevel$))!=null?e:b.defaultAccessLimitLevel)("implicitAccessEnabled",(f=U(18,37,b.isImplicitAccessEnabled$))!=
null?f:!1);B(4);G(b.collaboratorGroupsEmailToDetailsMap.size>0&&U(20,39,b.hasAclToAdmin$)?19:-1);B(6);I("users",b.writers)("includeAliases",!1)("includeViewAliases",!1);If("disabled",!0);B(4);I("users",b.appenders)("includeAliases",!1)("includeViewAliases",!1);If("disabled",!0);B(4);I("users",b.readers)("includeAliases",!1)("includeViewAliases",!1);If("disabled",!0);B(2);G(U(36,41,b.hasAclToAdmin$)?35:37)}},dependencies:[yY,Jy,xY,kB,gB,ZA,YA,vK,nA,HW,kL,hI,Tx,Yx],styles:[".issue-limits-dialog-title-txt[_ngcontent-%COMP%]{padding:0 20px;font-size:1.4rem;line-height:2rem}.user-display-area[_ngcontent-%COMP%]{min-height:400px}.limit-users-title[_ngcontent-%COMP%]{font-weight:400;color:#202124;color:var(--text-default);padding-bottom:5px;font-size:1rem}.bv2-issue-limits-title[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;font-weight:400;padding:20px 24px 0}.limit-option[_ngcontent-%COMP%]{padding:10px 0}.limit-option[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);cursor:pointer}.limit-title[_ngcontent-%COMP%]{padding:0 20px;white-space:nowrap}.selected-limit-title[_ngcontent-%COMP%]{padding:0 5px 0 10px;color:#202124;color:var(--text-default);font-size:small}.limit-description[_ngcontent-%COMP%]{padding:0 40px}.limit-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}b-component-breadcrumb-chip[_ngcontent-%COMP%]{margin-right:16px}.expanded-access[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);border-color:#c5221f;border-color:var(--text-bad);border-radius:3px;padding:5px;background-color:var(--bad-bg);vertical-align:middle}.expanded-access[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-bottom:1px}.expanded-access-on[_ngcontent-%COMP%]{border-color:#188038;border-color:var(--text-good);background-color:var(--good-bg)}.lock-circle[_ngcontent-%COMP%]{border:solid;border-color:#1a73e8;border-color:var(--primary);border-radius:50%;background-color:var(--primary);color:#fff;color:var(--background);padding:12px;display:inline-block}.edit-btn[_ngcontent-%COMP%], .issue-limits-component-id[_ngcontent-%COMP%], a[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%]{vertical-align:middle}b-issue-access-limits-dropdown[_ngcontent-%COMP%]{display:block;padding:20px 0}.mat-mdc-checkbox[_ngcontent-%COMP%]{padding-right:5px}.collaborator-groups-title[_ngcontent-%COMP%]{padding:0 5px 5px 0;font-size:1rem}.collaborator-groups-checkboxes[_ngcontent-%COMP%]{padding:5px 10px 20px 0}div.disabled[_ngcontent-%COMP%]{color:var(--text-disabled)}.collaborator-groups-email[_ngcontent-%COMP%]{padding-right:20px}.expanded-access-txt[_ngcontent-%COMP%], .issue-limits-component-id[_ngcontent-%COMP%]{padding:5px}\n/*# sourceMappingURL=issue_access_limits_dialog.css.map */"]});
var AY=function(){this.dialog=p(UA);this.dialogRef=null};AY.prototype.open=function(a){this.dialogRef=this.dialog.open(zY,{panelClass:"no-jitter",data:a,ariaLabel:"Issue access level"})};AY.prototype.isOpen=function(){return this.dialogRef?this.dialogRef.getState()===0:!1};AY.\u0275fac=function(a){return new (a||AY)};AY.\u0275prov=Dc({token:AY,factory:AY.\u0275fac,providedIn:"root"});var BY=function(){this.buttonRef=p(Hd);this.toRefocus=!1};BY.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}))};BY.\u0275fac=function(a){return new (a||BY)};
BY.\u0275dir=af({type:BY,selectors:[["button","disabled","","focusBack",""]],inputs:{disabled:"disabled"},standalone:!1,features:[jx]});var CY=function(){this.activeSession=p(uu);this.cdr=p(Cx);this.disabled=this.starred=!1;this.acceptInput=!0;this.starMessage="Star the issue";this.unStarMessage="Un-star the issue";this.starClicked=new aQ;this.isAnonymous=this.activeSession.isAnonymous()};h=CY.prototype;h.onClick=function(a){a.stopPropagation();this.acceptInput&&(this.starClicked.emit(!!this.starred),this.cdr.markForCheck())};h.onEnter=function(a){this.onClick(a)};h.isDisabled=function(){return this.isAnonymous||this.disabled};
h.getLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starred?this.unStarMessage:this.starMessage};h.getAriaLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starMessage};CY.\u0275fac=function(a){return new (a||CY)};
CY.\u0275cmp=D({type:CY,selectors:[["b-star-toggle"]],inputs:{starred:"starred",disabled:"disabled",acceptInput:"acceptInput",starMessage:"starMessage",unStarMessage:"unStarMessage"},outputs:{starClicked:"starClicked"},standalone:!1,decls:4,vars:7,consts:[["tooltip","matTooltip"],[1,"inline-block",3,"matTooltip"],["type","button","mat-icon-button","","focusBack","","role","checkbox",1,"small",3,"keydown.enter","click","focus","blur","disabled"],[1,"icon-s",3,"svgIcon"]],template:function(a,b){if(a&
1){var c=t();K(0,"div",1,0)(2,"button",2);N("keydown.enter",function(d){u(c);return v(b.onEnter(d))})("click",function(d){u(c);return v(b.onClick(d))})("focus",function(){u(c);var d=qg(1);return v(d.show())})("blur",function(){u(c);var d=qg(1);return v(d.hide())});M(3,"mat-icon",3);L()()}a&2&&(I("matTooltip",b.getLabel()),B(2),wg("starred",b.starred),I("disabled",b.isDisabled()),If("aria-label",b.getAriaLabel())("aria-checked",b.starred),B(),I("svgIcon",b.starred?"star-filled":"star-empty"))},dependencies:[Jy,
kB,iB,vK,nA,BY],styles:["[_nghost-%COMP%]{opacity:.9;text-align:center}[_nghost-%COMP%]:hover{opacity:1}[_nghost-%COMP%]   button.mat-mdc-icon-button[_ngcontent-%COMP%]{color:#80868b;color:var(--gfx-muted)}[_nghost-%COMP%]   button.mat-mdc-icon-button.starred[_ngcontent-%COMP%]{color:#e37400;color:var(--favorite-star)}[_nghost-%COMP%]   button.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px;margin-right:initial}"],changeDetection:0});var DY=function(){this.activeSession=p(uu);this.ROUTES=qs;this.isCompact=!1;this.starClicked=new aQ;this.currentUserEmail=this.activeSession.getUserEmail()};DY.prototype.ngOnInit=function(){};DY.prototype.isDirectAdmin=function(a){return a?um(a.adminUsers).includes(this.currentUserEmail):!1};DY.prototype.shouldShowStar=function(a){return!this.isDirectAdmin(a)&&!a.archived};DY.\u0275fac=function(a){return new (a||DY)};
DY.\u0275cmp=D({type:DY,selectors:[["hotlist-matlist-option"]],inputs:{hotlist:"hotlist",isCompact:"isCompact",starredHotlists:"starredHotlists",isSavingStar:"isSavingStar"},outputs:{starClicked:"starClicked"},standalone:!1,decls:1,vars:1,consts:[[1,"hotlist-link-and-star","flex-kids-x","align-items-center","gap-xs"],[1,"valign-middle",3,"starMessage","unStarMessage","acceptInput","starred"],[1,"spacer"],["target","_blank",1,"keep-focus-ring",3,"click","keydown.enter","matTooltip","routerLink"],["svgIcon",
"pop-out",1,"icon-s"],[1,"valign-middle",3,"starClicked","starMessage","unStarMessage","acceptInput","starred"]],template:function(a,b){a&1&&F(0,Ykb,5,5,"span",0);a&2&&G(b.hotlist?0:-1)},dependencies:[Jy,hF,CY,vK,nA,Tx],styles:[".hotlist-link-and-star[_ngcontent-%COMP%]{height:50px}.hotlist-link-and-star[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .hotlist-link-and-star[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:17px;line-height:17px}.hotlist-link-and-star[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-right:2px}.hotlist-link-and-star[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px}.hotlist-link-and-star[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{width:24px}\n/*# sourceMappingURL=hotlist_matlist_option.css.map */"],
changeDetection:0});var TBd=function(){this.tokens=new Map};TBd.prototype.add=function(a,b){var c=this.tokens.get(a);c?c.push(b):this.tokens.set(a,[b]);return this};TBd.prototype.build=function(){var a=this,b=Array.from(this.tokens.keys()).sort();return new UBd(b.map(function(c){return{token:c,labels:a.tokens.get(c)}}))};var UBd=function(a){this.sortedEntries=a};
UBd.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};UBd.prototype.search=function(a){var b=new Set;a=m(this.match(a));for(var c=a.next();!c.done;c=a.next()){c=m(c.value.labels);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b};
var VBd=function(a,b){if(b.length===0)return new Set;for(var c=a.search(b[0]),d=1;d<b.length&&c.size>0;d++){var e=[].concat(q(a.search(b[d]))).filter(function(f){return c.has(f)});c=new Set(e)}return c};var WBd=function(a){this.hotlists=a;var b=new TBd,c=new TBd;a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=((e=d.name)==null?0:e.trim())?q7a(d.name.toLowerCase()):[];e=m(f);for(f=e.next();!f.done;f=e.next())b.add(f.value,d);e=void 0;f=((e=d.description)==null?0:e.trim())?q7a(d.description.toLowerCase()):[];e=m(f);for(f=e.next();!f.done;f=e.next())c.add(f.value,d)}this.nameTokenMatcher=b.build();this.descriptionTokenMatcher=c.build();this.positions=new Map(this.hotlists.map(function(g,
k){return[g,k]}))};
WBd.prototype.search=function(a){a=a.toLowerCase();for(var b=new Set,c=m(this.hotlists),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=(e=d.name)==null?void 0:e.toLowerCase(),g=void 0;e=(g=d.description)==null?void 0:g.toLowerCase();g=d.hotlistId;var k=void 0,l=void 0;(RQa(a)&&String(g).includes(a)||((k=f)==null?0:k.includes(a))||((l=e)==null?0:l.includes(a)))&&b.add(d)}a=q7a(a);c=m(VBd(this.nameTokenMatcher,a));for(d=c.next();!d.done;d=c.next())b.add(d.value);a=m(VBd(this.descriptionTokenMatcher,a));
for(c=a.next();!c.done;c=a.next())b.add(c.value);return XBd(this,b)};var XBd=function(a,b){return[].concat(q(b)).sort(function(c,d){c=a.positions.get(c);d=a.positions.get(d);return c===d?0:c<d?-1:1})};var YBd=function(){this.innerHeight$=me(ne(function(){return ce(window.innerHeight)}),pe(window,"resize").pipe(A(function(){return window.innerHeight})))};YBd.\u0275fac=function(a){return new (a||YBd)};YBd.\u0275prov=Dc({token:YBd,factory:YBd.\u0275fac,providedIn:"root"});var nlb=function(a,b){return b.hotlistId},ZBd={USER:"USER",ISSUE:"ISSUE",RECOMMENDED:"RECOMMENDED"},EY=function(){Z.call(this);var a=this;this.dialogRef=p(RA);this.data=p(TA);this.paths=p(hW);this.hotlistFridge=p(lP);this.currentUserBookmarksFridge=p(qP);this.hotlistApi=p(gP);this.snackBar=p(rB);this.appEvents=p(UO);this.errorHandler=p(pO);this.userApi=p(kP);this.windowHeight=p(YBd);this.permissionsFridge=p(CQ);this.activeSession=p(uu);this.isInternalSession=this.activeSession.isInternalSession();
this.HotlistType=ZBd;this.NO_ACCESS_MESSAGE="You don't have permissions to add/remove issues on this hotlist.";this.showCreateNewPane=!1;this.query$=new Mj("");this.debouncedQuery$=this.query$.pipe(jf(100),xf(""));this.hotlists=[];var b;this.allHotlistIds=new Set([].concat(q(this.data.selectedHotlistIds),q((b=this.data.partiallySelectedHotlistIds)!=null?b:[])));this.selectedHotlistIds=new Set(this.data.selectedHotlistIds);this.partiallySelectedHotlistIds=new Set(this.data.partiallySelectedHotlistIds);
var c;this.selectedHotlistIdsMap=Alb((c=this.data.selectedHotlistIdsMap)!=null?c:new Map);var d;this.originalSelectedHotlistIdsMap=Alb((d=this.data.selectedHotlistIdsMap)!=null?d:new Map);zlb(this.data);this.originalIds=new Set(this.data.selectedHotlistIds);this.pristine=!0;this.saveBtnLabel="Save";this.saveBtnTooltip="Save your hotlist choices (Shift + Enter)";this.hotlistUnderEdit=new jE({name:new lE("",vj),description:new lE("")});this.starredHotlists=new aR;this.isSavingStar=new aR;this.userHotlists$=
rP(this.currentUserBookmarksFridge).pipe(A(function(e){return e.sort(xlb)}));this.issueHotlists$=this.hotlistFridge.watchSet(Array.from(this.allHotlistIds)).pipe(A(function(e){return e.sort(xlb)}));this.combineHotlistsWithPermissions=A(function(e){var f=a.permissionsFridge.watchSet(e.map(function(g){return"hotlists/"+g.hotlistId}));return e.map(function(g,k){return Object.assign({},g,{permissions$:f.pipe(A(function(l){return l[k]}))})})});this.recommendedHotlists$=this.data.recommendedHotlists$;this.hotlists$=
ie([this.issueHotlists$,this.recommendedHotlists$,this.userHotlists$]).pipe(A(function(e){var f=m(e);e=f.next().value;var g=f.next().value;f=f.next().value;return[].concat(q(e.map(function(k){return Object.assign({},k,{type:"ISSUE"})})),q(g.map(function(k){return Object.assign({},k,{type:"RECOMMENDED"})})),q(f.map(function(k){return Object.assign({},k,{type:"USER"})})))}),A(SZa(function(e){return e.hotlistId})),A(function(e){return e.filter(Pm)}),this.combineHotlistsWithPermissions,vf({bufferSize:1,
refCount:!0}));this.hotlistQuerySearcher$=this.hotlists$.pipe(A(function(e){return new WBd(e)}),vf({bufferSize:1,refCount:!0}));this.forceShowOverflow$=new qf;this.matchedHotlists$=ie([this.debouncedQuery$,this.hotlistQuerySearcher$,this.hotlists$]).pipe(A(function(e){var f=m(e);e=f.next().value;var g=f.next().value;f=f.next().value;return e.trim()!==""?g.search(e):f}),vf({bufferSize:1,refCount:!0}));this.visibleHotlists$=ie([this.matchedHotlists$,te(this.matchedHotlists$.pipe(A(function(){return!1})),
this.forceShowOverflow$)]).pipe(A(function(e){var f=m(e);e=f.next().value;f=f.next().value;return e.length>200&&!f?e.slice(0,200):e}),vf({bufferSize:1,refCount:!0}));this.isOverflowMode$=ie([this.matchedHotlists$,this.visibleHotlists$]).pipe(A(function(e){var f=m(e);e=f.next().value;f=f.next().value;return e.length!==f.length}));this.showLoadById$=this.query$.pipe(A(function(e){e=e.trim();return!a.allHotlistIds.has(Number(e))&&RQa(e)}));this.showCreateNew$=ie([this.query$,this.matchedHotlists$]).pipe(A(function(e){var f=
m(e);e=f.next().value;f=f.next().value;return ylb(e,f)}));this.compactNumberOfHotlistsToShow$=this.windowHeight.innerHeight$.pipe(A(function(e){return Math.max(1,Math.floor(e*.5/24))}),nf());this.compactNumberOfHotlistsToShow$.pipe(A(function(e){return e*24}));this.subscriptions.add(this.hotlists$.subscribe(function(e){a.hotlists=e;e=m(e);for(var f=e.next();!f.done;f=e.next())a.allHotlistIds.add(f.value.hotlistId)}))};Y(EY,Z);EY.\u0275dir=Z.\u0275dir;
EY.prototype.ngOnInit=function(){var a=this;$Bd(this);this.query$.pipe(zf(this.destroyed$)).subscribe(function(){a.hotlistUnderEdit.setValue({name:a.query$.value,description:""})})};
EY.prototype.onCheckboxChange=function(a,b){a.checked?this.selectedHotlistIds.add(b):this.selectedHotlistIds.delete(b);for(var c=m(this.selectedHotlistIdsMap.values()),d=c.next();!d.done;d=c.next())d=d.value,a.checked?d.add(b):d.delete(b);a=EQa(this.originalIds,this.selectedHotlistIds);b=[];c=m(this.selectedHotlistIdsMap.entries());for(d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;var f=e.next().value;e=void 0;(d=EQa(f,(e=this.originalSelectedHotlistIdsMap.get(d))!=null?e:new Set))&&
b.push(d)}this.pristine=!a&&b.length===0;var g;b=(g=a==null?void 0:a.added.length)!=null?g:0;var k;g=(k=a==null?void 0:a.removed.length)!=null?k:0;g=m(a?b>0&&g===0?["Add ("+b+")","Add "+b+" hotlist(s)"]:b===0&&g>0?["Remove ("+g+")","Remove "+g+" hotlist(s)"]:["Save","Save all changes ("+b+" added, "+g+" removed)"]:["Save","(No changes)"]);k=g.next().value;g=g.next().value;this.saveBtnLabel=k;this.saveBtnTooltip=g};
var Rs=function(a){a.dialogRef.close({selectedHotlistIds:a.selectedHotlistIds,selectedHotlistIdsMap:a.selectedHotlistIdsMap})},ulb=function(a){var b;return(a=(b=a.hotlistUnderEdit.get("name"))==null?void 0:b.value)?a:""},aCd=function(a){var b;return(a=(b=a.hotlistUnderEdit.get("description"))==null?void 0:b.value)?a:""},tlb=function(a){a.snackBar.open("Saving hotlist...","dismiss",{duration:0});var b=ulb(a),c=aCd(a);a.hotlistApi.createHotlist(b,c).then(function(d){a.snackBar.open('Hotlist "'+d.name+
"'\" saved.","dismiss",{duration:3E3});var e=d.hotlistId;a.appEvents.hotlistChanged.next({hotlistId:e});a.selectedHotlistIds.add(e);a.selectedHotlistIdsMap.forEach(function(f){f.add(e)});a.dialogRef.close({selectedHotlistIds:a.selectedHotlistIds,selectedHotlistIdsMap:a.selectedHotlistIdsMap})}).catch(function(d){a.errorHandler.errorHandler(null,d)})},$Bd=function(a){fe(ifd(a.currentUserBookmarksFridge)).then(function(b){a.starredHotlists.clear();for(var c=m(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=m(b.bookmarkGroups);for(c=b.next();!c.done;c=b.next())for(c=m(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)})};
EY.prototype.toggleStar=function(a){var b=this,c,d,e;return y(function(f){switch(f.nextAddress){case 1:c=b.starredHotlists.has(a);d={resourceType:"HOTLIST",resourceId:a};Wd(f,2,3);b.isSavingStar.add(a);if(c)return b.starredHotlists.delete(a),z(f,b.userApi.removeUserBookmark(d),3);b.starredHotlists.add(a);return z(f,b.userApi.addUserBookmark(d),3);case 3:Xd(f);b.isSavingStar.delete(a);Zd(f,4);break;case 2:e=$d(f);rO(b.errorHandler,e);f.jumpTo(3);break;case 4:b.appEvents.hotlistChanged.next(),b.appEvents.favoritesModified.next(),
ae(f)}})};var alb=function(a,b){a.hotlistApi.get(b).then(function(c){a.hotlists.push(c);a.selectedHotlistIds.add(c.hotlistId);Rs(a)}).catch(function(c){a.errorHandler.errorHandler(null,c)})};EY.\u0275fac=function(a){return new (a||EY)};
EY.\u0275cmp=D({type:EY,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&N("keydown.meta.enter",function(){return Rs(b)})("keydown.shift.enter",function(){return Rs(b)})("keydown.control.enter",function(){return Rs(b)})},standalone:!1,features:[Ef],decls:11,vars:2,consts:[["createNewHotlistBtn",""],["createNewHotlistPane",""],["searchBox",""],["content",""],["tooltip","matTooltip"],["type","button","mat-button","","mat-dialog-close","","tooltip","Dismiss modal","aria-label","Dismiss modal",
"role","button",3,"click"],["type","button","mat-flat-button","","color","primary",3,"mat-dialog-close","matTooltip","disabled"],[4,"ngTemplateOutlet"],["mat-dialog-title",""],[1,"search-container"],["svgIcon","search"],["type","search","spellcheck","false","autocomplete","off","aria-label","Filter hotlists","placeholder","Type to filter hotlists from your sidebar",1,"search-box",3,"input"],["mat-dialog-content","",1,"search-results"],["type","button",1,"load-from-id-btn"],["type","button",1,"create-new-hotlist-btn"],
["type","button",1,"load-from-id-btn",3,"click"],[1,"muted"],["type","button",1,"create-new-hotlist-btn",3,"click"],[1,"grid-two-col"],["aria-label","Hotlists","role","listbox"],[1,"column-1"],[3,"matTooltip"],[1,"hotlist-actions-column"],[1,"full-width",3,"has-description","hotlist","isCompact","starredHotlists","isSavingStar"],[1,"margin-top","kids-x"],[3,"class"],["role","option",1,"hotlist-list-item",3,"height"],["svgIcon","issue-status-new",1,"icon-s","vertical-centered"],["svgIcon","star-filled",
1,"icon-s","canned-search-icon"],[1,"icon-s"],["role","option",1,"hotlist-list-item",3,"focus","blur"],[1,"flex-kids-x","align-items-center"],["role","checkbox",3,"change","value","checked","disabled","indeterminate"],[1,"hotlist-matlist-option"],[1,"title-line"],[1,"overflow-ellipsis"],[1,"line-clamp-2","muted","type-s"],["role","checkbox",3,"click","change","value","checked","disabled","indeterminate"],[1,"full-width",3,"starClicked","hotlist","isCompact","starredHotlists","isSavingStar"],["type",
"button",1,"force-show-overflow-btn",3,"click"],["type","button","mat-flat-button","","color","primary",3,"click","mat-dialog-close","matTooltip","disabled"],["type","button","mat-flat-button","","color","primary","matTooltip","Create new hotlist","aria-label","Create",3,"click","disabled"],["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){if(a&1){var c=t();F(0,$kb,1,1,"ng-container")(1,plb,15,9);K(2,"mat-dialog-actions")(3,"button",5);N("click",function(){u(c);b.dialogRef.close();return v()});Q(4," Cancel ");L();F(5,rlb,1,1,"ng-container")(6,slb,2,5,"button",6);L();E(7,vlb,2,1,"ng-template",null,0,Mg)(9,wlb,14,1,"ng-template",null,1,Mg)}a&2&&(G(b.showCreateNewPane?0:1),B(5),G(b.showCreateNewPane?5:6))},dependencies:[Sx,Jy,VA,XA,ZA,
YA,kL,hI,kB,gB,ZJ,kK,lK,nE,xj,fE,gE,yE,uE,tE,vK,nA,DY,Tx],styles:[".left-padding[_ngcontent-%COMP%]{padding-left:10px}[_nghost-%COMP%]     .mat-mdc-dialog-content{width:500px;overflow-y:overlay}[_nghost-%COMP%]     .mat-mdc-dialog-title{margin:0}[_nghost-%COMP%]     .mat-mdc-dialog-title::before{height:unset}[_nghost-%COMP%]     .mat-mdc-dialog-title h2{margin-top:0;margin-bottom:8px}[_nghost-%COMP%]     .search-container{background-color:#f1f3f4;background-color:var(--main-search-bg);display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:8px;width:100%;height:40px}[_nghost-%COMP%]     .search-container mat-icon{margin-left:8px}[_nghost-%COMP%]     .search-container input.search-box{color:#202124;color:var(--text-high-contrast);outline:none;border:none;background-color:rgba(0,0,0,0);margin-left:5px;height:100%;width:100%;padding-right:4px}[_nghost-%COMP%]     .search-results mat-list{width:425px}[_nghost-%COMP%]     .search-results .hotlist-actions-column{padding:8px 0}[_nghost-%COMP%]     .search-results mat-list-item .title-line{display:flex;align-items:center;justify-content:space-between;height:24px}[_nghost-%COMP%]     .search-results mat-list-item a, [_nghost-%COMP%]     .search-results mat-list-item mat-icon{height:17px;line-height:17px}[_nghost-%COMP%]     .search-results mat-list-item p{font-size:.75rem;margin-top:-2px;line-height:1.2}[_nghost-%COMP%]     .create-new-hotlist-btn, [_nghost-%COMP%]     .load-from-id-btn, [_nghost-%COMP%]     .force-show-overflow-btn{background:none;border:none;text-align:left;min-height:34px;padding-left:38px}[_nghost-%COMP%]     .create-new-hotlist-btn:hover, [_nghost-%COMP%]     .load-from-id-btn:hover, [_nghost-%COMP%]     .force-show-overflow-btn:hover{cursor:pointer;background-color:rgba(0,0,0,.04);background-color:var(--hover)}[_nghost-%COMP%]     .create-hotlist-pane label{display:block;color:#5f6368;color:var(--muted);font-weight:500}[_nghost-%COMP%]     .create-hotlist-pane input, [_nghost-%COMP%]     .create-hotlist-pane textarea{width:100%;box-sizing:border-box}[_nghost-%COMP%]     mat-list-item .title-line p{font-size:.8125rem}[_nghost-%COMP%]     .mat-mdc-list-base{margin:0 -24px}[_nghost-%COMP%]     .mat-list-item.mat-list-item .mat-list-item-content .mat-list-text{padding-left:12px}[_nghost-%COMP%]     mat-list mat-list-item{padding:0}[_nghost-%COMP%]     mat-list mat-list-item mat-checkbox{padding:11px}[_nghost-%COMP%]     mat-list mat-list-item .hotlist-matlist-option{width:100%}[_nghost-%COMP%]     mat-list-item.hotlist-list-item{padding-left:0}[_nghost-%COMP%]     hotlist-matlist-option{display:block}[_nghost-%COMP%]     .has-description{height:72px}/*# sourceMappingURL=hotlist_picker_modal.css.map */"],
changeDetection:0});var FY=function(){this.dialog=p(UA);this.issueFullFridge=p(gQ);this.eventsForIssueFridge=p(NP);this.errorHandler=p(pO);this.issueRecommendationFridge=p(iQ);this.recommendationsApi=p(mO);this.issueUserEventsService=p(lW);this.activeSession=p(uu);this.analytics=p(eQ)},cCd=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,fe(b),2);c=g.yieldResult;e=(d=c)==null?void 0:d.snapshot[0].hotlistId;if(!e||!c)return g.return();a.analytics.trackEvent("hotlistPicker","open","IDP");f=
String(c.issueId);return z(g,bCd(a,f,e),0)})},bCd=function(a,b,c,d){d=d===void 0?!0:d;var e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:return e=dCd(a,b),f=e.pipe(A(function(C){return C.map(function(H){var J;return(J=H.content)==null?void 0:J.recommendedHotlist}).filter(Pm)}),Af(function(C){C.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","hotlistPicker")})),g=new Map,g.set(b,new Set(c)),z(x,eCd(a,c,f),2);case 2:k=x.yieldResult;if(k==null||!k.hotlistDiff)return x.return();
l=k.hotlistDiff;r=l.added.map(String);w=l.removed.map(String);if(!d){x.jumpTo(3);break}return z(x,a.updateHotlists(b,r,w),4);case 4:return z(x,fCd(a,b,e,r),3);case 3:return x.return({addedIds:r,removedIds:w})}})},gCd=function(a,b){var c=!1;c=c===void 0?!0:c;var d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,na,ua,ia,Ga,ha,sa,xa,Qa,bb,ub,Wb,lc,fc;return y(function(pc){switch(pc.nextAddress){case 1:d=new Map;e=m(b.values());for(f=e.next();!f.done;f=e.next())if(g=f.value)for(k=m(g),l=k.next();!l.done;l=k.next())r=
l.value,d.has(r)?(w=void 0,x=(w=d.get(r))!=null?w:0,x++,d.set(r,x)):d.set(r,1);C=b.size;H=[];J=[];O=m(d.entries());for(R=O.next();!R.done;R=O.next())V=R.value,ca=m(V),na=ca.next().value,ua=ca.next().value,ia=na,Ga=ua,Ga<C?H.push(ia):Ga===C&&J.push(ia);return z(pc,eCd(a,J,ce([]),b,H),2);case 2:ha=pc.yieldResult;if(ha==null)return pc.return();if(!c){pc.jumpTo(3);break}sa=m(ha.issueMapDiffs.entries());xa=sa.next();case 4:if(xa.done){pc.jumpTo(3);break}Qa=xa.value;bb=m(Qa);ub=bb.next().value;Wb=bb.next().value;
lc=ub;fc=Wb;return z(pc,a.updateHotlists(lc,fc.added.map(String),fc.removed.map(String)),5);case 5:xa=sa.next();pc.jumpTo(4);break;case 3:return pc.return(ha)}})};FY.prototype.updateHotlists=function(a,b,c){var d=this,e;return y(function(f){if(f.nextAddress==1)return Wd(f,2,3),z(f,d.issueFullFridge.updateHotlists(a,b,c),3);if(f.nextAddress!=2)return Xd(f),d.eventsForIssueFridge.poke(a),Zd(f,0);e=$d(f);rO(d.errorHandler,e);return f.jumpTo(3)})};
var eCd=function(a,b,c,d,e){var f,g,k,l,r,w,x,C,H,J,O,R,V,ca,na,ua,ia,Ga,ha;return y(function(sa){if(sa.nextAddress==1)return f={selectedHotlistIds:b,recommendedHotlists$:c,selectedHotlistIdsMap:d,partiallySelectedHotlistIds:e},g={panelClass:"no-jitter",data:f,ariaLabel:"Search for Hotlists"},k=a.dialog.open(EY,g),z(sa,fe(SA(k)),2);l=sa.yieldResult;if(!l)return sa.return(Promise.resolve());r=l.selectedHotlistIds;w=l.selectedHotlistIdsMap;x=EQa(new Set(b),new Set(r));C=new Map;if(d&&w)for(H=m(w.entries()),
J=H.next();!J.done;J=H.next())O=J.value,R=m(O),V=R.next().value,ca=R.next().value,na=V,ua=ca,ia=void 0,Ga=EQa((ia=d.get(na))!=null?ia:new Set,ua),ha=void 0,C.set(na,(ha=Ga)!=null?ha:{added:[],removed:[]});return sa.return(Promise.resolve({hotlistDiff:x,issueMapDiffs:C}))})},dCd=function(a,b){return b&&a.activeSession.isInternalSession()?a.issueRecommendationFridge.watch(b+"-HOTLIST").pipe(A(function(c){return(c==null?void 0:c.recommendations)||[]})):ce([])},fCd=function(a,b,c,d){var e,f,g,k;return y(function(l){if(l.nextAddress==
1)return z(l,fe(c),2);if(l.nextAddress!=3){e=l.yieldResult;f=e.filter(function(r){var w,x;return(r=(w=r.content)==null?void 0:(x=w.recommendedHotlist)==null?void 0:x.hotlistId)&&d.includes(String(r))});g=f.map(function(r){return{parent:r.name,userEngagement:{type:"ACCEPTED"}}});if(g.length===0)return l.return();a.analytics.trackEvent("hotlistRecommendation","accept","hotlistPicker");return z(l,a.recommendationsApi.createUserEngagements(g),3)}k=f.map(function(r){return{issueId:b,feature:"FEATURE_HOTLIST",
eventType:"EVENT_TYPE_ACCEPT",recommendationName:r.name}});return z(l,fe(a.issueUserEventsService.logIssueUserEventForRecommendations(k)),0)})};FY.\u0275fac=function(a){return new (a||FY)};FY.\u0275prov=Dc({token:FY,factory:FY.\u0275fac,providedIn:"root"});var hCd={ASSIGNEE:"ASSIGNEE",CC_LIST:"CC_LIST",CODE_CHANGES:"CODE_CHANGES",COLLABORATORS:"COLLABORATORS",COMMENT:"COMMENT",COMPONENT:"COMPONENT",CUSTOM_FIELDS:"CUSTOM_FIELDS",HOTLISTS:"HOTLISTS",PRIORITY:"PRIORITY",SEVERITY:"SEVERITY",STATUS:"STATUS",TYPE:"TYPE"},GY=function(){Z.apply(this,arguments);var a=this;this.butterBar=p(UN);this.componentTemplatesFridge=p(XO);this.errorHandler=p(pO);this.triageService=p(ZR);this.issueApi=p(MP);this.issueFullFridge=p(gQ);this.editIssueService=p(GS);this.hotlistPickerService=
p(FY);this.issueCommentDialogsService=p(vY);this.issueLimits=p(AY);this.issuePermissionService=p($Q);this.jspbPrincipalTypes=p(DQ);this.statusMessages=p(jS);this.constants=p(gS);this.activeSession=p(uu);this.issueEditComponentService=p(gW);this.IssueFieldKey=hCd;this.HOTKEYS=Xr;this.FieldType=pV;this.ListFieldType=bud;this.IssueType=Xbd;this.IssueSeverity=Qbd;this.IssuePriority=Dbd;this.IssueStatus=Tbd;this.codeChangesValidator=x1a;this.overlayPositionList=[{originX:"start",originY:"top",overlayX:"start",
overlayY:"bottom",offsetY:-8},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:-8}];this.componentId$=new Mj(void 0);this.issueId$=this.triageService.currentIssueId$.pipe(ue(Pm),nf());this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.defaultAssigneeForComponent$=this.componentId$.pipe(yf(function(b){return b?a.componentTemplatesFridge.defaultTemplate$(String(b)):ce(void 0)}),A(function(b){return b&&wm(b.snapshot.assigneeUser)}));this.issueIds$=ie([this.triageService.currentIssueIds$,
this.triageService.selectedIssueIds$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return c.length?c:b}));this.issues$=this.issueIds$.pipe(yf(function(b){return a.issueFullFridge.watchSet(b)}));this.editableIssues$=this.issueIds$.pipe(A(function(b){return b.map(function(c){return a.editIssueService.editableIssue(c)})}));this.editableIssue$=this.editableIssues$.pipe(A(function(b){return b[0]}));this.areEditableIssuesLoaded$=this.editableIssues$.pipe(A(function(b){return b.every(function(c){return c.issueId!==
""})}));this.fieldMultipleValueMap$=ie([this.editableIssues$,this.areEditableIssuesLoaded$]).pipe(A(function(b){var c=m(b);b=c.next().value;if(!c.next().value)return new Map;Ts(a,b);return a.doesFieldHaveMultipleValues}));this.isCurrentUserCollaborator=this.isCurrentUserCcd=!1;this.hotlistIds=[];this.hotlistIdsMap=new Map;this.MULTIPLE_FIELD_VALUES_LABEL="Multiple values";this.MULTIPLE_COMPONENT_SELECTED_LABEL="Multiple components selected";this.customFieldMap={};this.doesFieldHaveMultipleValues=
new Map([["ASSIGNEE",!1],["COLLABORATORS",!1],["CC_LIST",!1],["COMPONENT",!1],["SEVERITY",!1],["PRIORITY",!1],["STATUS",!1],["TYPE",!1]]);this.customFieldBulkEditOps=[];this.fields=[];this.automaticChanges=[];this.showAssignToSelf=!1;this.showAssignToDefault=!0;this.expandCommentBox=!1;this.subphase=this.phase=void 0;this.cancelAction=new aQ;this.completeAction=new aQ;this.typeChoices=this.constants.editIssueTypeChoices;this.severityChoices=this.constants.severities.map(function(b){return{value:b,
displayText:b}});this.priorityChoices=this.constants.priorities.map(function(b){return{value:b,displayText:b,hotkey:F9a(b)}});this.statusChoices=qcd.filter(function(b){return b.value!=="DUPLICATE"}).map(function(b){return Object.assign({},b,{hotkey:G9a(b.value)})});this.showAssigneeChips$=ie([this.hasAclToEdit$,this.defaultAssigneeForComponent$,this.editableIssue$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return a.sessionIsInternal&&b&&(a.showAssignToDefault||
a.showAssignToSelf)?a.showAssignToDefault&&d||a.showAssignToSelf&&c.assignee!==a.currentUserEmail?!0:!1:!1}));this.currentUserEmail=this.activeSession.getUserEmail();this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.isSaving$=new Mj(!1);this.showCommentInput=!1;this.collaboratorUserPrincipalValidator=function(b){var c,d,e;return y(function(f){if(f.nextAddress==1){if(!b)return f.return("This field is required");c=b.split(",").map(function(g){return g.trim()}).filter(Boolean);
return z(f,Zid(a.jspbPrincipalTypes,c,!1),2)}d=f.yieldResult;e=c.find(function(g){var k;return((k=d[g])==null?void 0:k.principalType)!=="USER"});return f.return(e?"You can only add users to collaborators.":"")})}};Y(GY,Z);GY.\u0275dir=Z.\u0275dir;h=GY.prototype;
h.ngOnInit=function(){for(var a=m(this.automaticChanges),b=a.next();!b.done;b=a.next())iCd(this,b.value);this.showCommentInput=this.expandCommentBox;a=Br(this.editableIssue$);this.componentId=a.componentId||void 0;this.componentId$.next(this.componentId);Ss(this,a);Us(this,a)};h.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);var a=Ar(this.issueId$);a&&this.editIssueService.clear(a)};
h.setSeverity=function(a,b){for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.setSeverity(b);Ts(this,a)};h.setPriority=function(a,b){for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.setPriority(b);Ts(this,a)};h.setAssignee=function(a,b){for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.setAssignee(b);Ts(this,a)};h.setType=function(a,b){for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.setType(b);Ts(this,a)};
h.setStatus=function(a,b){for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.setStatus(b);Ts(this,a)};h.setComponent=function(a,b){this.componentId=b;this.componentId$.next(b);for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.componentId=b;Ts(this,a)};h.setCodeChanges=function(a,b){a=m(a);for(var c=a.next();!c.done;c=a.next())c.value.setCodeChanges(b)};h.setCcs=function(a,b){b=[].concat(q(new Set(b.newUsers)));for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.cc=b;Us(this,a[0])};
h.setCollaborators=function(a,b){b=[].concat(q(new Set(b.newUsers)));for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.setCollaborators(b);Ss(this,a[0])};
var Ylb=function(a,b){for(var c=a.activeSession.getUserEmail(),d=m(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.cc.filter(function(g){return g!==c});e.cc=f}Us(a,b[0]);Ts(a,b)},Tlb=function(a,b){for(var c=a.activeSession.getUserEmail(),d=m(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.collaborators.filter(function(g){return g!==c});e.setCollaborators(f)}Ss(a,b[0]);Ts(a,b)},Ulb=function(a,b,c){for(var d=m(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.collaborators.filter(function(g){return!c.includes(g)});
e.setCollaborators(f)}Ss(a,b[0]);Ts(a,b)},Zlb=function(a,b,c){for(var d=m(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.cc.filter(function(g){return!c.includes(g)});e.cc=f}Us(a,b[0]);Ts(a,b)},amb=function(a,b){for(var c=m(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.cc;a.isCurrentUserCcd?(e=e.filter(function(f){return!ZQ(a.issuePermissionService,f)}),d.cc=e):(e.push(a.activeSession.getUserEmail()),d.cc=e)}Us(a,b[0])};
GY.prototype.toggleCollaborators=function(a){for(var b=this,c=m(a),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.collaborators;this.isCurrentUserCollaborator?(e=e.filter(function(f){return!ZQ(b.issuePermissionService,f)}),d.setCollaborators(e)):(e.push(this.activeSession.getUserEmail()),d.setCollaborators(e))}Ss(this,a[0])};
var Us=function(a,b){a.isCurrentUserCcd=b.cc.includes(a.activeSession.getUserEmail())},Ss=function(a,b){a.isCurrentUserCollaborator=b.collaborators.includes(a.activeSession.getUserEmail())},emb=function(a,b){return a.automaticChanges.find(function(c){return c.field===b})},jCd=function(a,b){var c=[];b=m(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.componentId&&a.componentId!==d.componentId&&c.push({issueIds:[d.issueId],actions:[{fieldName:"componentId",value:String(a.componentId)}]});return c};
GY.prototype.save=function(a){var b=this,c,d,e,f,g,k,l,r,w,x;return y(function(C){if(C.nextAddress==1){b.isSaving$.next(!0);c=a[0];d=a.map(function(H){return fmd(H)}).flat().filter(function(H){return H!==null});e=d.map(function(H){return{issueIds:[H.issueId],actions:H.actions}});f=jCd(b,a);e.push.apply(e,q(f));g=a.map(function(H){return H.issueId});(k=kCd(b,c.issueId)?{fieldName:"comment",value:b.editIssueService.issueCommentDraft(c.issueId).comment().value}:null)&&e.push({issueIds:g,actions:[k]});
b.customFieldBulkEditOps.length&&e.push.apply(e,q(b.customFieldBulkEditOps));l=m(a);for(r=l.next();!r.done;r=l.next())w=r.value,x=w.customFieldMap,Object.assign(b.customFieldMap,x);return z(C,b.sendBulkEditRequest(e),2)}if(C.nextAddress!=3)return z(C,b.updateHotlists(),3);b.isSaving$.next(!1);b.completeAction.emit(g);ae(C)})};GY.prototype.toggleAccessLimits=function(a){this.issueLimits.isOpen()||this.componentId&&this.issueLimits.open({componentId:this.componentId,issueId:a})};
var Ts=function(a,b){var c=b[0],d=b.some(function(e){return e.severity!==c.severity});a.doesFieldHaveMultipleValues.set("SEVERITY",d);d=b.some(function(e){return e.priority!==c.priority});a.doesFieldHaveMultipleValues.set("PRIORITY",d);d=b.some(function(e){return e.status!==c.status});a.doesFieldHaveMultipleValues.set("STATUS",d);d=b.some(function(e){return e.type!==c.type});a.doesFieldHaveMultipleValues.set("TYPE",d);d=b.some(function(e){return e.assignee!==c.assignee});a.doesFieldHaveMultipleValues.set("ASSIGNEE",
d);d=b.some(function(e){return e.componentId!==c.componentId});a.doesFieldHaveMultipleValues.set("COMPONENT",d);d=b.some(function(e){return!WZa(e.cc,c.cc)});a.doesFieldHaveMultipleValues.set("CC_LIST",d);b=b.some(function(e){return!WZa(e.collaborators,c.collaborators)});a.doesFieldHaveMultipleValues.set("COLLABORATORS",b)},kCd=function(a,b){b=a.editIssueService.issueCommentDraft(b).comment();return a.showCommentInput&&!!b.value},Qlb=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return a.showCommentInput=
!1,z(d,os(0),2);(c=b)==null||c.focus();ae(d)})},iCd=function(a,b){var c,d;y(function(e){switch(e.nextAddress){case 1:return z(e,fe(a.editableIssue$),2);case 2:c=e.yieldResult;d=b.field;switch(d){case "STATUS":c.setStatus(b.value);break;case "ASSIGNEE":c.setAssignee(b.value);break;case "COMMENT":return e.jumpTo(3);default:wb(d)}e.jumpTo(0);break;case 3:return z(e,a.setComment(b.value),5);case 5:e.jumpTo(0)}})};
GY.prototype.setComment=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,fe(b.triageService.currentIssueId$),2);c=f.yieldResult;if(!c)return f.return();d=b.editIssueService.issueCommentDraft(c).comment();if(d.value)return f.return();e=d.value;d.value=a;b.destroyed$.subscribe(function(){var g=b.editIssueService.issueCommentDraft(c).comment();g.value===a&&(g.value=e)});ae(f)})};
GY.prototype.updateHotlists=function(){var a=this,b,c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return(b=a.fields.includes("HOTLISTS"))?z(g,fe(a.issues$),2):g.return();case 2:c=g.yieldResult;if(!c||!c.length)return g.return();d=m(c);e=d.next();case 3:if(e.done){g.jumpTo(0);break}f=e.value;return z(g,lCd(a,f),4);case 4:e=d.next(),g.jumpTo(3)}})};
var lCd=function(a,b){var c,d,e,f;return y(function(g){e=(c=b.snapshot[0])==null?void 0:(d=c.hotlistId)==null?void 0:d.map(String);return e?(f=a.hotlistIdsMap.get(b.issueId))?z(g,a.hotlistPickerService.updateHotlists(b.issueId,f.added.map(function(k){return k.toString()}),f.removed.map(function(k){return k.toString()})),0):g.return():g.return()})};
GY.prototype.sendBulkEditRequest=function(a){var b=this,c;return y(function(d){c={bulkEditOps:a};Rr(b.butterBar,"Saving changes...",0);return d.return(b.issueApi.issueBulkEdit(c).then(function(e){e.errors&&e.errors.length?(e=AUa(e.errors),b.butterBar.showWarning("Failed to update issue(s) "+e+".")):(e=Kmd(b.statusMessages,c,b.customFieldMap))?Rr(b.butterBar,e):Rr(b.butterBar,"Saved "+U6a(a).length+" issue(s).")}).catch(function(e){b.errorHandler.errorHandler(null,e)}))})};
GY.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(GY)))(b||GY)}}();
GY.\u0275cmp=D({type:GY,selectors:[["verify-fields"]],inputs:{fields:"fields",automaticChanges:"automaticChanges",showAssignToSelf:"showAssignToSelf",showAssignToDefault:"showAssignToDefault",expandCommentBox:"expandCommentBox",phase:"phase",subphase:"subphase"},outputs:{cancelAction:"cancelAction",completeAction:"completeAction"},standalone:!1,features:[Ef],decls:2,vars:3,consts:[["priorityField",""],["assigneeField",""],["typeField",""],["statusField",""],["postCommentComponent",""],["addCommentButton",
""],[1,"bv2-issue-metadata","overflow"],[1,"full-width","padded-s-top","flex-kids-x","gap"],[1,"flex-kids-x","gap","margin-top"],["type","button","mat-flat-button","",1,"gmat-button",3,"click","disabled"],["type","button","mat-button","",1,"gmat-button",3,"click"],[1,"flex-1",3,"name","title","type","tooltip","value","choices","readonly","displayValueOverride"],[1,"flex-1",3,"name","title","type","tooltip","value","choices","hotkey","readonly","displayValueOverride"],[3,"phase","subphase"],[1,"flex-1",
3,"editableIssue","hasMultipleIssues","phase","subphase"],[1,"flex-kids-y","full-width"],[1,"flex-1",3,"name","title","type","value","choices","readonly","displayValueOverride"],[1,"flex-1",3,"name","title","type","value","choices","showHotkeyHint","hotkey","readonly","displayValueOverride"],[1,"bv2-issue-metadata-field","bv2-issue-metadata-field-inner","flex-1"],[1,"flex-1"],[3,"issueId","automaticChange"],[1,"flex-1",3,"valueChange","name","title","type","tooltip","value","choices","readonly","displayValueOverride"],
[1,"flex-1",3,"onHotkey","valueChange","name","title","type","tooltip","value","choices","hotkey","readonly","displayValueOverride"],[3,"hotlistIdsChange","hotlistIdsMapChange","phase","subphase"],[1,"flex-1",3,"onCustomFieldBulkEdit","editableIssue","hasMultipleIssues","phase","subphase"],[1,"flex-1","flex-kids-x","align-items-center","gap"],[1,"flex-1",3,"onHotkey","valueChange","emailChange","name","title","hotkey","displayValueOverride","value"],[1,"assign-chips"],["type","button","mat-stroked-button",
"","aria-label","Assign to me",1,"small","add-assignee-btn",3,"matTooltip"],["type","button","mat-stroked-button","",1,"small","add-assignee-btn",3,"disabled","hotkey","matTooltip"],["type","button","mat-stroked-button","",1,"small","add-assignee-btn",3,"click","onHotkey","disabled","hotkey","matTooltip"],[1,"icon-xs","margin-xs-right",3,"svgIcon"],["type","button","mat-stroked-button","","aria-label","Assign to me",1,"small","add-assignee-btn",3,"click","onHotkey","matTooltip"],["svgIcon","add",
1,"icon-xs","margin-xs-right"],[1,"flex-1",3,"valueChange","name","title","type","value","choices","readonly","displayValueOverride"],[1,"flex-1",3,"onHotkey","valueChange","name","title","type","value","choices","showHotkeyHint","hotkey","readonly","displayValueOverride"],[1,"flex-1",3,"readonly","defaultLineCount","title","inputValidator","type","values"],[1,"flex-1",3,"valuesChange","readonly","defaultLineCount","title","inputValidator","type","values"],[1,"bv2-editable-title"],[3,"componentChanged",
"issueId","componentId","compactMode","handleSave","showPickerOverlayAbove","displayValueOverride"],[3,"commentSubmitted","issueId","showActionsAfterPreview","showCommentButton"],[1,"flex-1",3,"title","subtitle","inputValidator","isAllowedToEditCollection"],[1,"flex-1",3,"title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","overlayPosition","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isCurrentUserInCollection",
"isAllowedToEditCollection","iconName","inputValidator","checkAccessLimits"],[1,"flex-1",3,"addCurrentUser","removeCurrentUser","onAddUsers","onRemoveUsers","title","subtitle","inputValidator","isAllowedToEditCollection"],[1,"flex-1",3,"userInclusionToggle","valueChange","toggleAccessLimits","title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","overlayPosition","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isCurrentUserInCollection",
"isAllowedToEditCollection","iconName","inputValidator","checkAccessLimits"],[1,"flex-1",3,"title","subtitle","isAllowedToEditCollection"],[1,"flex-1",3,"title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","overlayPosition","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isCurrentUserInCollection","isAllowedToEditCollection","iconName"],[1,"flex-1",3,"addCurrentUser","removeCurrentUser","onAddUsers","onRemoveUsers",
"title","subtitle","isAllowedToEditCollection"],[1,"flex-1",3,"userInclusionToggle","valueChange","title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","overlayPosition","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isCurrentUserInCollection","isAllowedToEditCollection","iconName"]],template:function(a,b){a&1&&(F(0,imb,2,3),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issues$))?0:-1,c)}},styles:["[_nghost-%COMP%]     .bv2-issue-metadata{padding:0}[_nghost-%COMP%]     .bv2-issue-metadata .bv2-issue-metadata-field.bv2-issue-metadata-field{margin:0}[_nghost-%COMP%]     .bv2-issue-metadata onedev-edit-field{margin:0!important}[_nghost-%COMP%]     .bv2-issue-metadata onedev-edit-field onedev-field-label{width:unset;min-width:75px}[_nghost-%COMP%]     .bv2-issue-metadata onedev-edit-field onedev-user-picker button{padding-left:9px}[_nghost-%COMP%]     .bv2-issue-metadata .bv2-issue-metadata-list-field .no-value{display:none}[_nghost-%COMP%]     .bv2-issue-metadata .bv2-editable-title{width:unset}[_nghost-%COMP%]     b-post-comment{margin-bottom:0}[_nghost-%COMP%]     b-post-comment .bv2-comment-box-container .bv2-comment-toolbar{margin:0}[_nghost-%COMP%]     b-post-comment .md-preview{margin-top:0}[_nghost-%COMP%]     b-post-comment .bv2-edit-issue-add-comment{padding-top:0}.hotlist-container[_ngcontent-%COMP%]{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:2px;line-height:20px;max-height:72px;overflow-y:auto}.add-assignee-btn[_ngcontent-%COMP%], .add-hotlists-btn[_ngcontent-%COMP%], button.gmat-mdc-button[_ngcontent-%COMP%]:not(.mat-mdc-icon-button).add-hotlists-btn{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text);background-color:#fff;background-color:var(--surface-default);line-height:22px;height:22px;min-width:22px;padding:0 8px;border-radius:11px;margin-right:4px}.add-hotlists-btn.mat-mdc-outlined-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:4px}.bv2-issue-metadata[_ngcontent-%COMP%]{max-height:50vh;padding-right:10px}"]});var HY=function(){Z.apply(this,arguments);this.TriageActionKey=Hld;this.TriagePhase=Vbd;this.TriageSubphase=Wbd;this.CONFIRM_ACTION=Jld;this.SET_IN_PROGRESS=Lld;this.SET_FIXED=Rld;this.CHANGE_COMPONENT=Sld;this.NEEDS_MORE_INFO=Ild;this.SET_WONT_FIX=Pld;this.SET_NEW=Qld;this.SET_PENDING_OWNER=Kld;this.SET_EXPECTED=Mld;this.SET_PLANNED=Nld;this.SET_COMMITTED=Old;this.needsInfoAutomaticChanges=[];this.cancelAction=new aQ;this.finalizeAction=new aQ};Y(HY,Z);HY.\u0275dir=Z.\u0275dir;
HY.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(HY)))(b||HY)}}();
HY.\u0275cmp=D({type:HY,selectors:[["secondary-footer"]],inputs:{needsInfoAutomaticChanges:"needsInfoAutomaticChanges",selectedTriageAction:"selectedTriageAction"},outputs:{cancelAction:"cancelAction",finalizeAction:"finalizeAction"},standalone:!1,features:[Ef],decls:33,vars:1,consts:[["setNeedsInfo",""],["setConfirmed",""],["setPendingOwner",""],["changeComponent",""],["setInProgress",""],["setExpected",""],["setPlanned",""],["setCommitted",""],["setFixed",""],["setNew",""],["setWontFix",""],[4,
"ngTemplateOutlet"],[1,"flex-kids-y","full-width"],[1,"heading-s"],[3,"cancelAction","completeAction","fields","phase","subphase","automaticChanges","expandCommentBox","showAssignToDefault","showAssignToSelf"],[3,"cancelAction","completeAction","fields","phase"],[3,"cancelAction","completeAction","fields","phase","showAssignToSelf"],[3,"cancelAction","completeAction","fields","phase","automaticChanges"],[3,"cancelAction","completeAction","fields","automaticChanges"]],template:function(a,b){a&1&&(F(0,
kmb,1,1,"ng-container")(1,mmb,1,1,"ng-container")(2,omb,1,1,"ng-container")(3,qmb,1,1,"ng-container")(4,smb,1,1,"ng-container")(5,umb,1,1,"ng-container")(6,wmb,1,1,"ng-container")(7,ymb,1,1,"ng-container")(8,Amb,1,1,"ng-container")(9,Cmb,1,1,"ng-container")(10,Emb,1,1,"ng-container"),E(11,Fmb,4,7,"ng-template",null,0,Mg)(13,Gmb,4,2,"ng-template",null,1,Mg)(15,Hmb,4,2,"ng-template",null,2,Mg)(17,Imb,4,2,"ng-template",null,3,Mg)(19,Jmb,4,3,"ng-template",null,4,Mg)(21,Kmb,4,3,"ng-template",null,5,Mg)(23,
Lmb,4,3,"ng-template",null,6,Mg)(25,Mmb,4,3,"ng-template",null,7,Mg)(27,Nmb,4,3,"ng-template",null,8,Mg)(29,Omb,4,3,"ng-template",null,9,Mg)(31,Pmb,4,2,"ng-template",null,10,Mg));if(a&2){var c;G((c=b.selectedTriageAction)===b.TriageActionKey.SET_NEEDS_INFO?0:c===b.TriageActionKey.SET_CONFIRMED?1:c===b.TriageActionKey.SET_PENDING_OWNER?2:c===b.TriageActionKey.SET_WONT_FIX?3:c===b.TriageActionKey.SET_IN_PROGRESS?4:c===b.TriageActionKey.SET_EXPECTED?5:c===b.TriageActionKey.SET_PLANNED?6:c===b.TriageActionKey.SET_COMMITTED?
7:c===b.TriageActionKey.SET_FIXED?8:c===b.TriageActionKey.CHANGE_COMPONENT?9:c===b.TriageActionKey.SET_NEW?10:-1)}},dependencies:[Sx,GY],encapsulation:2,changeDetection:0});var IY=function(){this.issueExperimentalFieldsFridge=p(UP)},mCd=function(a,b,c){var d;return y(function(e){switch(e.nextAddress){case 1:switch(c){case "SET_NEEDS_INFO":return e.jumpTo(2);case "SET_CONFIRMED":return e.jumpTo(3);case "SET_PENDING_OWNER":return e.jumpTo(4);case "SET_NEW":return e.jumpTo(5);case "SET_IN_PROGRESS":return e.jumpTo(6);case "SET_EXPECTED":return e.jumpTo(7);case "SET_PLANNED":return e.jumpTo(8);case "SET_COMMITTED":return e.jumpTo(9);case "SET_FIXED":return e.jumpTo(10);
case "CHANGE_COMPONENT":return e.jumpTo(11);case "SET_WONT_FIX":return e.jumpTo(12);case "MARK_AS_DUPLICATE":throw Error("nf");default:wb(c)}e.jumpTo(13);break;case 2:return z(e,a.setNeedsInfo(b),14);case 14:d=e.yieldResult;e.jumpTo(13);break;case 3:return z(e,a.setConfirmed(b),15);case 15:d=e.yieldResult;e.jumpTo(13);break;case 4:return z(e,a.setPendingOwner(b),16);case 16:d=e.yieldResult;e.jumpTo(13);break;case 5:return z(e,a.setNew(b),17);case 17:d=e.yieldResult;e.jumpTo(13);break;case 6:return z(e,
a.setInProgress(b),18);case 18:d=e.yieldResult;e.jumpTo(13);break;case 7:return z(e,a.setExpected(b),19);case 19:d=e.yieldResult;e.jumpTo(13);break;case 8:return z(e,a.setPlanned(b),20);case 20:d=e.yieldResult;e.jumpTo(13);break;case 9:return z(e,a.setCommitted(b),21);case 21:d=e.yieldResult;e.jumpTo(13);break;case 10:return z(e,a.setFixed(b),22);case 22:d=e.yieldResult;e.jumpTo(13);break;case 11:return z(e,a.setNew(b),23);case 23:d=e.yieldResult;e.jumpTo(13);break;case 12:return z(e,a.setWontFix(b),
24);case 24:d=e.yieldResult;e.jumpTo(13);break;case 13:return e.return(d)}})};h=IY.prototype;h.setNeedsInfo=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="NEW";f.triage.subphase="NEEDS_INFO"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setConfirmed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="CONFIRMED";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setPendingOwner=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="CONFIRMED";f.triage.subphase="PENDING_OWNER"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setInProgress=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setExpected=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="EXPECTED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setPlanned=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="PLANNED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setCommitted=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="COMMITTED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setFixed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="FIXED";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setNew=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="NEW";f.triage.triagerEmail=void 0;f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setWontFix=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="WONT_FIX";f.triage.triagerEmail=void 0;f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};IY.\u0275fac=function(a){return new (a||IY)};IY.\u0275prov=Dc({token:IY,factory:IY.\u0275fac,providedIn:"root"});var nCd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nCd,W);h=nCd.prototype;h.getId=function(){return ui(this,3)};h.setId=function(a){return Fm(this,3,a)};h.getName=function(){return ui(this,1)};h.setName=function(a){return Fm(this,1,a)};h.getArgs=function(){return X(this,CA,2)};h.getType=function(){return wi(this,7)};h.setType=function(a){return Hm(this,7,a)};var oCd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oCd,W);var pCd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pCd,W);h=pCd.prototype;h.getDataCase=function(){return wo(this,JY)};h.clearData=function(){return Iw(this,JY)};h.getText=function(){return yo(this,2,JY)};h.setText=function(a){return Bo(this,2,JY,a)};h.hasText=function(){return lr(this,2,JY)!=null};h.getFunctionCall=function(){return bm(this,nCd,4,JY)};h.hasFunctionCall=function(){return Qi(this,nCd,4,JY)};h.getThought=function(){return Fi(this,11)};
h.getVideoMetadata=function(){return bm(this,oCd,14,qCd)};h.hasVideoMetadata=function(){return Qi(this,oCd,14,qCd)};var JY=[2,3,4,5,6,7,9,10,15,17,18],qCd=[14];var KY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(KY,W);KY.prototype.getPartsList=function(){return Bi(this,pCd,1,Ci())};KY.prototype.addParts=function(a){return Np(this,1,pCd,a)};KY.prototype.getRole=function(){return ui(this,2)};KY.prototype.setRole=function(a){return Fm(this,2,a)};var rCd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rCd,W);var sCd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sCd,W);h=sCd.prototype;h.setModel=function(a){return Fm(this,1,a)};h.setSystemInstruction=function(a){Mi(this,KY,8,a)};h.getSessionId=function(){return pn(this,12)};h.setSessionId=function(a){return vn(this,12,a)};h.hasSessionId=function(){return on(this,12)};h.setRequestContext=function(a){Mi(this,rCd,17,a)};var Smb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Smb,W);h=Smb.prototype;h.getIndex=function(){return Bm(this,3)};h.setIndex=function(a){En(this,3,a)};h.getContent=function(){return X(this,KY,1)};h.setContent=function(a){return Mi(this,KY,1,a)};h.hasContent=function(){return xi(this,KY,1)};var Rmb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rmb,W);h=Rmb.prototype;h.setCandidates=function(a,b){return Gw(this,1,Smb,a,b)};h.getModelVersion=function(){return ui(this,4)};h.setModelVersion=function(a){return Fm(this,4,a)};h.getResponseId=function(){return ui(this,5)};h.setResponseId=function(a){return Fm(this,5,a)};var tCd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,tCd.messageId)};Y(tCd,W);tCd.messageId="b.GenerateContentResponse";var uCd=function(){this.executor=p(cO)};uCd.\u0275fac=function(a){return new (a||uCd)};uCd.\u0275prov=Dc({token:uCd,factory:uCd.\u0275fac,providedIn:"root"});var LY=function(){var a=this;this.geminiApi=p(uCd);this.issueFridge=p(XP);this.issueFullFridge=p(gQ);this.getLlmResponse=SUa(function(b,c){var d,e;return y(function(f){if(f.nextAddress==1){d={prompt:b};var g=a.geminiApi;var k;var l=(new sCd).setModel((k=d.model)!=null?k:"models/gemini-1.5-flash");k=(new KY).addParts((new pCd).setText(d.prompt));l=Np(l,2,KY,k);g=g.executor.post({url:"/action/gemini/generate",options:{params:{feature:c}},body:l,responseConstructor:tCd}).then(Tmb);return z(f,g,2)}e=
f.yieldResult;return f.return(e.output)})})},vCd=function(a,b){return b.length<3?ce("Unknown (cluster is too small)"):ne(function(){return a.issueFridge.watchSet(b)}).pipe(yf(function(c){c="Analyze the following list of topics and summarize them into one common theme.Please respond in 2 to 3 words, plain text no markdown. Here's the list of topics: "+c.map(function(d){return d.snapshot[0].title}).join("\n");return a.getLlmResponse(c,"CLUSTER_TITLE")}))},xCd=function(a,b,c){return ne(function(){return ie(b.map(function(d){return a.issueFridge.watchSet(d)})).pipe(yf(function(d){d=
d.map(function(e){return e.map(function(f){return f.snapshot[0].title})});return wCd(a,d,c)}))})},wCd=function(a,b,c){var d="";b=m(b);for(var e=b.next();!e.done;e=b.next())e=e.value,d+=c?"{team name: "+c+", titles:["+e.join(",")+"]}\n":"titles:["+e.join(",")+"]\n";var f='You are a software engineer at Google. Your task is to summarize a cluster of bugs ,tasks,\n        alerts and feature requests into a theme so that the reader can decide if they need to investigate them deeper.\n        All the bugs, tasks, alerts and feature requests come from the same team.\n        Theme names follows these rules:\n        1. In two to three words\n        2. Title Case: Every word starts with a capital letter (e.g., "Foo Bar"). Acronyms are allowed, e.g. "SRE Frontend".\n        3. Do not include the team name in the result.\n        Example Input:\n        {team name: Buganizer, titles: [dark mode needs more contrast, it is very hard to read text in dark mode, Please increase the contract of dark mode}\n        Example output:  Dark mode readability\n\n        Please follow the above rules and output the theme names in a list, split by \',\'. Make sure the output is in the same order as the input.\n        '+
d;return ne(function(){return a.getLlmResponse(f,"CLUSTER_TITLE")}).pipe(A(function(g){return g.split(",")}))},yCd=function(a,b){return b.length<3?ce("Unknown (cluster is too small)"):ne(function(){return a.issueFullFridge.watchSet(b)}).pipe(yf(function(c){var d,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1)return d="<START>",e="<END>",f=c.map(function(x){var C;return"Task b/"+x.issueId+' has title "'+x.snapshot[0].title+'" and has description "'+((C=x.description)==null?void 0:C.unlinkifiedComment.substring(0,
100))+'"'}).join("\n"),g="\nYou are a world-class technical lead and manager in software engineering, tasked with summarizing a set of issues using data from a issue tracking tool. You will receive a list of issues including titles and descriptions.\n\nGeneral Information:\n\nIssues: Issues are stored in a system called Buganizer and are usually referred as b/<id>. All b/<id> are references to the same issue. http://b/<id> can be used to refer to a issue in summary.\n\nSteps to Follow:\n\n1. Understand Issue Context: Use the issue title and description to understand the nature of the issue. DO NOT include the titles or specific names of issues in the summary.\n2. Generate Summary:\n  - Start with a high-level overview of the issues, in one small sentence, focusing on the key accomplishments and outcomes. Summarize the issues and their impact, using concise and informative language. Don't include introductory phrases and additional formatting. Skip this if you don't find a common theme. Don't hallucinate.\n  - Use the format "+
d+" and "+e+" tags for the summary without additional headers.\n  - If you need to reference issues in the summary, you may do so by their IDs as http://b/<id>\n\nImportant: Ensure the summary is concise, informative, and does not include any issue titles or names.\n\nIssues, title and description:\n\n"+f+"\n\nOutput:\n",z(w,a.getLlmResponse(g,"CLUSTER_DESCRIPTION"),2);k=w.yieldResult;l=k.indexOf(d);r=k.indexOf(e);return w.return(k.substring(l+d.length,r).trim())})}))};
LY.\u0275fac=function(a){return new (a||LY)};LY.\u0275prov=Dc({token:LY,factory:LY.\u0275fac,providedIn:"root"});var zCd=rw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback-dark-mode.md"]),ACd=rw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback.md"]),BCd=rw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback-dark-mode.md"]),CCd=rw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback.md"]),DCd=function(){var a=this;this.dialogRef=p(RA);this.darkmodeService=p(DW);this.data=
p(TA);this.contentLoaded=!1;this.docUrl$=this.darkmodeService.clientDarkmode$.pipe(A(function(b){switch(a.data.type){case "HOMEPAGE":return b?Fh(zCd):Fh(ACd);default:return b?Fh(BCd):Fh(CCd)}}))};DCd.\u0275fac=function(a){return new (a||DCd)};
DCd.\u0275cmp=D({type:DCd,selectors:[["b-feedback-dialog"]],standalone:!1,decls:9,vars:4,consts:[["mat-dialog-content",""],["frameborder","0","allowtransparency","true",3,"loading","src"],["diameter","60"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"click"],["type","button","mat-flat-button","","cdkFocusInitial","","color","primary",1,"medium","dialog-primary-action",3,"click"],["frameborder","0","allowtransparency","true",3,"load","src"]],template:function(a,b){a&1&&
(K(0,"div",0),F(1,Umb,1,3,"iframe",1),T(2,"async"),F(3,Vmb,1,0,"mat-spinner",2),L(),K(4,"div",3)(5,"button",4),N("click",function(){return b.dialogRef.close(!1)}),Q(6," Cancel "),L(),K(7,"button",5),N("click",function(){return b.dialogRef.close(!0)}),Q(8," File a new issue "),L()());if(a&2){var c;B();G((c=U(2,2,b.docUrl$))?1:-1,c);B(2);G(b.contentLoaded?-1:3)}},dependencies:[ZA,YA,kB,gB,qK,yI,Tx],styles:["iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:0}.loading[_ngcontent-%COMP%]{display:none}.mat-mdc-dialog-content[_ngcontent-%COMP%]{display:flex;flex-grow:1;position:relative;justify-content:center;align-items:center}"],
changeDetection:0});var Xs=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xs,W);h=Xs.prototype;h.getEnableSsEngine=function(){return Fi(this,2)};h.getEnableAwr=function(){return Fi(this,3)};h.getAlohaAutoGaRollout=function(){return Fi(this,5)};h.getEnableConfigurator=function(){return Fi(this,6)};h.getEnableMweb=function(){return Fi(this,7)};var FCd=function(){var a=ECd();return Yo(a,7,!0)};Xs.prototype.getEnableCtlConsentCheckbox=function(){return Fi(this,8)};
Xs.prototype.getEnableIframe=function(){return Fi(this,9)};var ECd=function(){var a=new Xs;a=Yo(a,5,!0);a=Yo(a,2,!0);a=Yo(a,4,!1);a=Yo(a,8,!0);return Yo(a,9,!0)};Xs.prototype.getEnableScreenshotNudge=function(){return Fi(this,10)};var GCd=function(){var a=FCd();return Yo(a,10,!0)};Xs.prototype.getEnableWebStartupConfigEndpoint=function(){return Fi(this,11)};Xs.prototype.getEnableJunkNudge=function(){return Fi(this,12)};var nnb=function(){var a=GCd();return Yo(a,12,!0)};h=Xs.prototype;
h.getEnableConfiguratorLocale=function(){return Fi(this,13)};h.getEnableTinyNoPointer=function(){return Fi(this,14)};h.getEnableSupportSessionLogging=function(){return Fi(this,15)};h.getEnableFileUploadForScreenshot=function(){return Fi(this,16)};h.getEnableDirectDeflectionForSingleCategory=function(){return Fi(this,17)};h.getEnableImageSanitization=function(){return Fi(this,18)};h.getEnableAlohaBinarySplit=function(){return Fi(this,19)};h.getEnableDbFeedbackIntents=function(){return Fi(this,20)};
h.getEnableMarkMandatoryFieldsWithRequired=function(){return Fi(this,21)};h.getEnableFeedbackCategoryCustomUi=function(){return Fi(this,22)};h.getEnableRealtimeCtl=function(){return Fi(this,23)};var mnb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mnb,W);var Wmb=[/https:\/\/sandbox\.google\.com\/tools\/feedback/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/inapp/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/tools\/feedback/,/https:\/\/.*\.googleusercontent\.com\/inapp/];var Ymb="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 Zmb=rw(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),$mb=rw(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Ws=function(){var a=Error.call(this,"Form is either loading or already opened");this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="DuplicateFormError"};Y(Ws,Error);var bnb,enb,cnb,fnb;var HCd=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||ra,e=d.document,f=a.nonce||Fra(d.document);f&&!a.nonce&&(a.nonce=f);if(a.flow=="help"){var g=Su("document.location.href",d);!a.helpCenterContext&&g&&(a.helpCenterContext=g.substring(0,1200));g=!0;if(b&&JSON&&JSON.stringify){var k=JSON.stringify(b);(g=k.length<=1200)&&(a.psdJson=k)}g||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.feedbackServerUri||"//www.google.com/tools/feedback";if(g=d.GOOGLE_FEEDBACK_START)g.apply(d,
b);else{d=c+"/load.js?";for(var l in a)b=a[l],b==null||Oa(b)||(d+=encodeURIComponent(l)+"="+encodeURIComponent(b)+"&");a=kj(e).createElement("SCRIPT");f&&a.setAttribute("nonce",f);oi(a,vh(d));e.body.appendChild(a)}},ICd=function(a,b,c,d){var e,f;return y(function(g){e=c||ra;var k=a.serverEnvironment==="DEV",l=c||ra;l=a.nonce||Fra(l.document);k={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket,triggerId:a.triggerId},callbacks:{onClose:a.callback,onLoad:a.onLoadCallback},formContent:{locale:a.locale,
disableScreenshot:a.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:a.abuseLink,additionalDataConsent:a.additionalDataConsent},initializationData:{isLocalServer:k,nonce:l,useNightlyRelease:k,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,
submissionServerUri:a.feedbackServerUri,colorScheme:a.colorScheme},extraData:{productVersion:a.productVersion,authUser:a.authuser,configuratorId:a.configuratorId,customZIndex:a.customZIndex,tinyNoPointer:a.tinyNoPointer,allowNonLoggedInFeedback:a.allowNonLoggedInFeedback,enableAnonymousFeedback:a.enableAnonymousFeedback}};b&&(l=new Map(Object.entries(b)),k.extraData.productSpecificData=l);f=k;return z(g,jnb(f,d,e),0)})},JCd=function(a,b,c){try{if(a.flow==="help"){var d=a.helpCenterPath.replace(/^\//,
"");ni(c||window,"https://support.google.com/"+d)}else a.flow==="submit"?HCd(a,b,c):onb(a.productId,a.feedbackServerUri).then(function(e){e=X(e,Xs,1);var f=!$wc||(e==null?void 0:e.getEnableMweb()),g=!a.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&f&&g?ICd(a,b,c,e).catch(function(k){!k||k instanceof Ws||HCd(a,b,c)}):HCd(a,b,c)},function(e){!e||e instanceof Ws||HCd(a,b,c)})}catch(e){ICd(a,b,c,null).catch(function(f){!f||f instanceof Ws||HCd(a,b,c)})}};
xw("userfeedback.api.startFeedback",JCd);var KCd={width:"500px",maxHeight:"80vh",autoFocus:!0},LCd=new Date,MY=function(){this.activeSession=p(uu);this.matDialog=p(UA);this.reportStartTime=new Date};MY.prototype.startFeedback=function(){var a=this;this.reportStartTime=new Date;this.activeSession.isInternalSession()?SA(this.matDialog.open(DCd,Object.assign({},KCd,{height:"640px",data:{type:"DEFAULT"}}))).subscribe(function(b){b&&MCd(a)}):MCd(this)};
var flc=function(a){a.reportStartTime=new Date;a.activeSession.isInternalSession()?SA(a.matDialog.open(DCd,Object.assign({},KCd,{height:"400px",data:{type:"HOMEPAGE"}}))).subscribe(function(b){b&&MCd(a)}):MCd(a)},MCd=function(a){var b={productId:92912,nonce:a.activeSession.getCspNonce(),productVersion:"buganizer.frontend_20251102.11_p0"};b.bucket=rs(a.activeSession)?"buganizer-trackers-feedback":"buganizer3-feedback";var c=[].concat(q([]),q(Tcd(a.activeSession))).join(", ");c={userType:a.activeSession.getUserTypeLabel(),
flags:c};if(rs(a.activeSession)){var d,e;c.trackerId=(e=(d=a.activeSession.getTracker())==null?void 0:d.trackerId)!=null?e:""}c.initialLoadTime=pnb(LCd);c.reportStartTime=pnb(a.reportStartTime);JCd(b,c)};MY.\u0275fac=function(a){return new (a||MY)};MY.\u0275prov=Dc({token:MY,factory:MY.\u0275fac,providedIn:"root"});var NCd=["actionsMenuIconButton"],NY=function(){this.buttonLabel="";this.buttonIcon="more-settings-vertical";this.buttonSize="medium";this.menuClass="actions-menu"};NY.prototype.onAction=function(a,b){return y(function(c){if(c.nextAddress==1)return z(c,os(0),2);if(a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1)return c.return();b.type!=="action"&&b.type!=="select"||b.action(a);ae(c)})};NY.prototype.ngOnInit=function(){};NY.\u0275fac=function(a){return new (a||NY)};
NY.\u0275cmp=D({type:NY,selectors:[["b-actions-menu"]],viewQuery:function(a,b){a&1&&hg(NCd,5);if(a&2){var c;lg(c=mg())&&(b.actionsMenuIconButton=c.first)}},inputs:{menuItems:"menuItems",buttonLabel:"buttonLabel",buttonIcon:"buttonIcon",buttonSize:"buttonSize",header:"header",menuClass:"menuClass"},standalone:!1,decls:7,vars:5,consts:[["menu","matMenu"],["actionsMenuIconButton",""],["submenu","matMenu"],["type","button","mat-icon-button","","aria-haspopup","true",3,"class","matTooltip","matMenuTriggerFor"],
[1,"b-actions-menu-panel"],[1,"bv2-menu-header"],["type","button","mat-icon-button","","aria-haspopup","true",3,"matTooltip","matMenuTriggerFor"],[1,"icon-s",3,"svgIcon"],["type","button","mat-menu-item","",3,"matMenuTriggerFor"],[1,"hint"],["type","button","mat-menu-item","",3,"disabled","class"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked","disabled","class"],["type","button","mat-menu-item","",3,"click","mouseup","disabled"],["type","button","mat-menu-item",
"","role","menuitemcheckbox",3,"click","mouseup","disabled"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"]],template:function(a,b){a&1&&(F(0,qnb,3,6,"button",3),K(1,"mat-menu",null,0)(3,"div",4),F(4,rnb,2,1,"div",5),Nf(5,Fnb,2,2,null,null,Lf),L()());a&2&&(G(b.menuItems.length>0?0:-1),B(),xg(Eg("",b.menuClass,"-menu")),B(3),G(b.header?4:-1),B(),Of(b.menuItems))},dependencies:[VJ,fH,dH,iH,Jy,kB,iB,vK,nA],styles:["[_nghost-%COMP%]{display:inline-block}.mat-mdc-menu-item[_ngcontent-%COMP%]{align-items:center;display:flex}.mat-mdc-menu-item[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:8px}.mat-mdc-menu-item[_ngcontent-%COMP%]   .hint[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin-left:auto;padding-left:16px}  .b-actions-menu-panel .mat-mdc-menu-item[disabled]{pointer-events:auto}/*# sourceMappingURL=actions_menu.css.map */"],
changeDetection:0});var OCd={type:"action",label:"Report illegal content"},PCd={type:"submenu",label:"View as"},QCd={type:"action",label:"Restriction settings..."},RCd={type:"action",label:"Show editing history"};var OY=function(){Z.apply(this,arguments);var a=this;this.triageService=p(ZR);this.llmService=p(LY);this.issueFridge=p(XP);this.issueFullFridge=p(gQ);this.issuePermissionService=p($Q);this.issuePicker=p(UX);this.issueApi=p(MP);this.errorHandler=p(pO);this.butterBar=p(UN);this.domSafe=p(mR);this.analytics=p(eQ);this.triagePhaseService=p(IY);this.userFeedback=p(MY);this.isClosed=ZTa;this.thumbsDownClicked=this.thumbsUpClicked=this.hasReacted=!1;this.trackBy=function(b,c){return c.id};this.issueIds$=
this.triageService.currentIssueIds$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.issue$=this.issueIds$.pipe(yf(function(b){return a.issueFridge.watch(b[0])}));this.issuePhase$=this.issue$.pipe(A(Gr));this.title$=this.issueIds$.pipe(yf(function(b){return vCd(a.llmService,b)}));this.clusterDescription$=this.issueIds$.pipe(yf(function(b){return yCd(a.llmService,b)}));this.rows$=this.issueIds$.pipe(A(function(b){return b.map(function(c){return{id:c,issue$:a.issueFridge.watch(c)}})}));
this.searchUrl$=this.issueIds$.pipe(A(function(b){return{path:"/issues",params:{q:"id:("+b.join("|")+")"}}}));this.refreshTable=new aQ;this.checkedIssueIds=new aR;this.areAllChecked$=ie([this.issueIds$,this.checkedIssueIds.value$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;return b.every(function(e){return d.has(e)})}));this.tableColumns=["checkbox","title","phase","relativeModifiedTime","menu"];this.displaySecondaryFooter=!1};Y(OY,Z);OY.\u0275dir=Z.\u0275dir;h=OY.prototype;
h.ngOnInit=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,fe(a.issueIds$),2);b=c.yieldResult;a.checkedIssueIds.reset(b);ae(c)})};h.toggleAll=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return z(d,fe(b.issueIds$),2);c=d.yieldResult;a.checked?b.checkedIssueIds.reset(c):b.checkedIssueIds.reset([]);ae(d)})};
h.openDupeDialog=function(){var a=this,b,c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1){b=[].concat(q(a.checkedIssueIds));if(!b||!b.length)return l.return();c=zUa;return z(l,fe(a.issueFridge.watchSet(b)),2)}if(l.nextAddress!=3)return d=c(l.yieldResult),e=m,z(l,a.issuePicker.open({componentId:d||null,allowMultipleIds:!1,currentResource:{id:b[0],type:"issue"},edgeType:"canonical",originIsBulk:!0}),3);f=e(l.yieldResult);return(k=g=f.next().value)?z(l,a.markAsDuplicate(k,b),0):l.return()})};
h.getMenuItems=function(a){var b=this;return[{type:"action",label:"Go to issue",action:function(){b.domSafe.openInNewTab(qs.viewIssue.makeHref(a.id))},title:"Go to issue",icon:"arrow-forward"},{type:"action",label:"Mark selected issues as duplicate of this one",action:function(){var c=[].concat(q(b.checkedIssueIds));b.markAsDuplicate(a.id,c.filter(function(d){return d!==a.id}))},title:"Mark selected issues as duplicate of this one",icon:"issue-status-duplicate"}]};
h.markAsDuplicate=function(a,b){var c=this,d,e,f;return y(function(g){switch(g.nextAddress){case 1:d=b.filter(function(k){return k!==a});if(!d.length)return g.return();e={bulkEditOps:[{actions:[{fieldName:"duplicateOfIssueId",value:a}],issueIds:b}]};Wd(g,2,3);Rr(c.butterBar,"Saving...");return z(g,c.issueApi.issueBulkEdit(e),5);case 5:Rr(c.butterBar,"Marked "+b.length+" issues as duplicate.");case 3:return Xd(g),z(g,Promise.all([].concat(q(b.map(function(k){return c.issueFridge.poke(k)})),[c.issueFridge.poke(a)])),
6);case 6:Zd(g,0);break;case 2:f=$d(g),rO(c.errorHandler,f),g.jumpTo(3)}})};h.cancelAction=function(){this.displaySecondaryFooter=!1};h.finalizeSecondaryAction=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1)return b.displaySecondaryFooter=!1,(c=b.selectedTriageAction)?z(e,mCd(b.triagePhaseService,a,c),2):e.return();d=e.yieldResult;b.displaySecondaryFooter=!1;b.announceUpdate(a,d);ae(e)})};h.sendFeedback=function(){MCd(this.userFeedback)};
h.trackThumbsUp=function(){this.thumbsUpClicked=this.hasReacted=!0;this.analytics.trackEvent("issueCluster","accept","trendingThemes")};h.trackThumbsDown=function(){this.thumbsDownClicked=this.hasReacted=!0;this.analytics.trackEvent("issueCluster","reject","trendingThemes")};
h.openSecondaryActionFooter=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return c=[].concat(q(b.checkedIssueIds)),b.triageService.internalSelectedIssueIds$.next(c),a!=="MARK_AS_DUPLICATE"?d.jumpTo(2):z(d,b.openDupeDialog(),3);if(d.nextAddress!=2)return d.return();b.selectedTriageAction=a;b.displaySecondaryFooter=!0;ae(d)})};h.announceUpdate=function(a,b){if(b&&b.length)for(a=m(a),b=a.next();!b.done;b=a.next())this.issueFullFridge.poke(b.value);this.refreshTable.emit()};
OY.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(OY)))(b||OY)}}();
OY.\u0275cmp=D({type:OY,selectors:[["cluster-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},standalone:!1,features:[Ef],decls:48,vars:25,consts:[[1,"container","bg-secondary","flex-kids-y"],[1,"flex-kids-x","space-between","border-bottom","bg-main","align-items-center"],["chipColor","purple","displayText","Trending themes","icon","issue-status-new","tooltip","Trending theme identified by AI",1,"margin-s-left"],["type","button","mat-icon-button","","matTooltip","Close sidebar","aria-label",
"Close sidebar",1,"gmat-button","margin-left-auto",3,"click"],["svgIcon","close"],[1,"content","flex-kids-y","margin-s"],[1,"flex-kids-x","space-between","full-width"],[1,"heading-m"],[1,"type-s"],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","matTooltip","Send feedback for the trending themes","aria-label","send feedback for the trending themes",1,"feedback-button",3,"click"],["svgIcon","feedback-outline",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Trending themes are helpful",
"aria-label","thumb up",1,"feedback-button",3,"click","disabled"],["svgIcon","thumb_up_24px",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Trending themes are not helpful","aria-label","thumb down",1,"feedback-button",3,"click","disabled"],["svgIcon","thumb_down_24px",1,"icon-s"],[1,"bg-main","rounded","bordered","flex-kids-y","margin-s-y","gap-xs"],[1,"description","border-bottom","padded"],[1,"padded"],[1,"muted"],["mat-table","",1,"full-width",3,"dataSource","trackBy"],["matColumnDef",
"checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","phase"],["matColumnDef","relativeModifiedTime"],["mat-header-cell","","mat-sort-header","relativeModifiedTime","start","desc","class","nowrap",4,"matHeaderCellDef"],["mat-cell","","class","nowrap",4,"matCellDef"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"closed",4,"matRowDef","matRowDefColumns"],["mat-button","","color","primary",
1,"small","width-fit-content","margin-s-top",3,"routerLink","queryParams"],[1,"bg-main","carded","flex-kids-x","align-items-center","margin-s"],[1,"muted","uppercase"],[1,"margin-s-top"],["mat-header-cell",""],["gmat-checkbox","",3,"change","checked","indeterminate"],["mat-cell",""],["gmat-checkbox","",3,"change","checked"],["anchorTarget","_blank",3,"issue","enableHovercard"],[1,"chippy"],["mat-header-cell","","mat-sort-header","relativeModifiedTime","start","desc",1,"nowrap"],["mat-cell","",1,"nowrap"],
[3,"timestamp","mode","paddingLeftPx"],["buttonLabel","More options","buttonIcon","more-settings-vertical","menuClass","issue-cluster-options",3,"click","menuItems"],["mat-header-row",""],["mat-row",""],[1,"full-width",3,"selectedTriageAction"],[1,"full-width",3,"cancelAction","finalizeAction","selectedTriageAction"],[3,"onSelect","phase"],["type","button","mat-button","","matTooltip","Mark selected issues as duplicate",1,"gmat-button",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"div",
0)(1,"div",1),M(2,"b-signal-chip",2),K(3,"button",3),N("click",function(){return b.triageService.closeSidebar()}),M(4,"mat-icon",4),L()(),K(5,"div",5)(6,"div",6)(7,"h3",7),Q(8),T(9,"async"),T(10,"async"),L(),M(11,"span",8),K(12,"div",9)(13,"button",10),N("click",function(){return b.sendFeedback()}),M(14,"mat-icon",11),L(),K(15,"button",12),N("click",function(){return b.trackThumbsUp()}),M(16,"mat-icon",13),L(),K(17,"button",14),N("click",function(){return b.trackThumbsDown()}),M(18,"mat-icon",15),
L()()(),K(19,"div",16),F(20,Inb,5,1,"div",17),T(21,"async"),K(22,"div",18)(23,"span",19),Q(24,"Select issues to take action"),L(),K(25,"table",20),Tf(26,21),E(27,Jnb,4,6,"th",22)(28,Knb,3,3,"td",23),Uf(),Tf(29,24),E(30,Lnb,2,0,"th",22)(31,Mnb,3,4,"td",23),Uf(),Tf(32,25),E(33,Nnb,2,0,"th",22)(34,Qnb,3,3,"td",23),Uf(),Tf(35,26),E(36,Rnb,2,0,"th",27)(37,Unb,3,3,"td",28),Uf(),Tf(38,29),E(39,Vnb,1,0,"th",22)(40,Wnb,2,1,"td",23),Uf(),E(41,Xnb,1,0,"tr",30)(42,Ynb,2,4,"tr",31),L(),F(43,Znb,2,2,"a",32),T(44,
"async"),L()()(),K(45,"div",33),F(46,bob,2,1),T(47,"async"),L()());if(a&2){var c,d,e,f;B(8);zg("",U(9,15,b.title$)," (",(c=U(10,17,b.issueIds$))==null?null:c.length," issues)");B(7);I("disabled",b.hasReacted);B();wg("has-reacted-icon",b.thumbsUpClicked);B();I("disabled",b.hasReacted);B();wg("has-reacted-icon",b.thumbsDownClicked);B(2);G((d=U(21,19,b.clusterDescription$))?20:-1,d);B(5);I("dataSource",b.rows$)("trackBy",b.trackBy);B(16);I("matHeaderRowDef",b.tableColumns);B();I("matRowDefColumns",b.tableColumns);
B();G((e=U(44,21,b.searchUrl$))?43:-1,e);B(3);G((f=U(47,23,b.issuePhase$))?46:-1,f)}},dependencies:[NY,Jy,hF,rV,kB,gB,iB,kL,hI,UW,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,vK,nA,QW,WW,HY,LU,Tx],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.container[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden;position:absolute}.content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;overflow:hidden auto}tr.closed[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--row-fixed-bg)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}  div.mat-mdc-menu-panel.issue-cluster-options-menu{max-width:350px}  div.mat-mdc-menu-panel.issue-cluster-options-menu .mat-mdc-menu-content button.mat-mdc-menu-item{width:350px}.feedback-button[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;color:#3c4043;color:var(--gfx);min-width:20px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px}.feedback-button[_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}"]});var PY=function(){var a=this;this.data=p(TA);this.cdr=p(bQ,{self:!0});this.codefont=p(jR);this.location=p(hi);this.paths=p(hW);this.userFeedback=p(MY);this.errorHandler=p(pO);this.issueId=this.data.issueId;this.commentNumber=this.data.commentNumber;this.commentVersion=this.data.commentVersion;this.history=[];this.diffView=this.isLoading=!0;this.data.commentHistory.then(function(b){a.history=b}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
PY.prototype.updateUrl=function(a,b){a.stopPropagation();a=ss(this.issueId)+("#comment"+this.commentNumber+"version"+b);this.location.replaceState(a)};PY.prototype.startFeedback=function(){this.userFeedback.startFeedback()};PY.\u0275fac=function(a){return new (a||PY)};
PY.\u0275cmp=D({type:PY,selectors:[["comment-history-dialog"]],standalone:!1,features:[Gg([bQ])],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"diff-checkbox"],[3,"change","checked"],[1,"dialog-feedback",3,"click"],[1,"float-clear"],[1,"bv2-view-loading"],[1,"comment-history-list"],"type button mat-button  mat-dialog-close ".split(" "),[1,"comment-version",3,"comment-version-open"],[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"],[1,"muted","float-right","float-clear"],[1,"type-xs",3,"innerHtml"],[1,"type-xs"],[1,"comment-version-email"],[3,"email"],[3,"click","id"],[1,"comment-version-preview"],[1,"comment-version-preview","deleted"],[1,"comment-version-restricted"],[1,"comment-version-content","deleted"],[1,"comment-version-content",3,"codefont","innerHtml"],[1,"comment-version-content",3,"innerHtml"]],template:function(a,b){a&1&&(K(0,"h2",
0),Q(1),L(),K(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",2),N("change",function(c){return b.diffView=c.checked}),Q(5," Show Diff "),L()(),K(6,"a",3),N("click",function(){return b.startFeedback()}),Q(7,"Feedback"),L(),M(8,"br",4),F(9,cob,2,0,"div",5)(10,rob,3,0,"ul",6),L(),K(11,"mat-dialog-actions")(12,"button",7),Q(13,"Close"),L()());a&2&&(B(),S("History for Comment #",b.commentNumber),B(3),I("checked",b.diffView),B(5),G(b.isLoading?9:10))},dependencies:[rV,kL,hI,kB,gB,VA,XA,ZA,YA,gT,cU,
aV,$U,Tx,FS,WU],styles:[".comment-history-list[_ngcontent-%COMP%]{overflow:auto;padding:0}.comment-version[_ngcontent-%COMP%]{position:relative;background-color:#f1f3f4;background-color:var(--c100);border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);padding:8px 5px}.comment-version-open[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--surface-default);color:#202124;color:var(--text)}.comment-version[_ngcontent-%COMP%] > .bv2-event-user-image-cell[_ngcontent-%COMP%]{padding-top:8px;padding-left:5px}.comment-version-email[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.comment-version-preview[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.comment-version-restricted[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);font-style:italic}.comment-version-header[_ngcontent-%COMP%]{cursor:pointer;margin-left:40px}.comment-version-content[_ngcontent-%COMP%]{cursor:auto;margin:20px 0 10px 40px;white-space:pre-wrap}.comment-version[_ngcontent-%COMP%]   .deleted[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);font-style:italic}.comment-version[_ngcontent-%COMP%] + .comment-version[_ngcontent-%COMP%]{border-top:0}.comment-version[_ngcontent-%COMP%]   .bv2-event-user-image-cell[_ngcontent-%COMP%]{margin:0}.dialog-feedback[_ngcontent-%COMP%]{float:right}.diff-checkbox[_ngcontent-%COMP%]{float:right;margin-right:10px;margin-left:10px}b-formatted-date-time[_ngcontent-%COMP%]{float:right}[_nghost-%COMP%]     .diff-added{background-color:#ceead6;background-color:var(--good-bg)}[_nghost-%COMP%]     .diff-removed{background-color:#fce8e6;background-color:var(--bad-bg);text-decoration:line-through}/*# sourceMappingURL=comment_history_dialog.css.map */"],
changeDetection:0});var sob=function(){},bt=function(a,b,c,d,e){typeof e=="undefined"&&(e=(new Date).getTime()+1E3);if(b==null||c==null)throw Error("rf");if(b==c)return b?[[0,b]]:[];typeof d=="undefined"&&(d=!0);var f=SCd(b,c),g=b.substring(0,f);b=b.substring(f);c=c.substring(f);f=TCd(b,c);var k=b.substring(b.length-f);b=b.substring(0,b.length-f);c=c.substring(0,c.length-f);b=UCd(a,b,c,d,e);g&&b.unshift([0,g]);k&&b.push([0,k]);VCd(a,b);return b},UCd=function(a,b,c,d,e){if(!b)return[[1,c]];if(!c)return[[-1,b]];var f=
b.length>c.length?b:c,g=b.length>c.length?c:b,k=f.indexOf(g);if(k!=-1)return a=[[1,f.substring(0,k)],[0,g],[1,f.substring(k+g.length)]],b.length>c.length&&(a[0][0]=a[2][0]=-1),a;if(g.length==1)return[[-1,b],[1,c]];if(f=WCd(b,c))return c=f[1],g=f[3],b=f[4],f=bt(a,f[0],f[2],d,e),a=bt(a,c,g,d,e),f.concat([[0,b]],a);if(d&&b.length>100&&c.length>100){b=XCd(b,c);c=b.lineArray;b=bt(a,b.chars1,b.chars2,!1,e);for(d=0;d<b.length;d++){f=b[d][1];g=[];for(k=0;k<f.length;k++)g[k]=c[f.charCodeAt(k)];b[d][1]=g.join("")}tob(a,
b);b.push([0,""]);f=d=c=0;for(k=g="";c<b.length;){switch(b[c][0]){case 1:f++;k+=b[c][1];break;case -1:d++;g+=b[c][1];break;case 0:if(d>=1&&f>=1){b.splice(c-d-f,d+f);c=c-d-f;d=bt(a,g,k,!1,e);for(f=d.length-1;f>=0;f--)b.splice(c,0,d[f]);c+=d.length}d=f=0;k=g=""}c++}b.pop();a=b}else a:{d=b.length;f=c.length;g=Math.ceil((d+f)/2);k=2*g;for(var l=Array(k),r=Array(k),w=0;w<k;w++)l[w]=-1,r[w]=-1;l[g+1]=0;r[g+1]=0;w=d-f;for(var x=w%2!=0,C=0,H=0,J=0,O=0,R=0;R<g&&!((new Date).getTime()>e);R++){for(var V=-R+
C;V<=R-H;V+=2){var ca=g+V;var na=V==-R||V!=R&&l[ca-1]<l[ca+1]?l[ca+1]:l[ca-1]+1;for(var ua=na-V;na<d&&ua<f&&b.charAt(na)==c.charAt(ua);)na++,ua++;l[ca]=na;if(na>d)H+=2;else if(ua>f)C+=2;else if(x&&(ca=g+w-V,ca>=0&&ca<k&&r[ca]!=-1)){var ia=d-r[ca];if(na>=ia){a=YCd(a,b,c,na,ua,e);break a}}}for(V=-R+J;V<=R-O;V+=2){ca=g+V;ia=V==-R||V!=R&&r[ca-1]<r[ca+1]?r[ca+1]:r[ca-1]+1;for(na=ia-V;ia<d&&na<f&&b.charAt(d-ia-1)==c.charAt(f-na-1);)ia++,na++;r[ca]=ia;if(ia>d)O+=2;else if(na>f)J+=2;else if(!x&&(ca=g+w-V,
ca>=0&&ca<k&&l[ca]!=-1&&(na=l[ca],ua=g+na-ca,ia=d-ia,na>=ia))){a=YCd(a,b,c,na,ua,e);break a}}}a=[[-1,b],[1,c]]}return a},YCd=function(a,b,c,d,e,f){var g=b.substring(d),k=c.substring(e);b=bt(a,b.substring(0,d),c.substring(0,e),!1,f);a=bt(a,g,k,!1,f);return b.concat(a)},XCd=function(a,b){function c(g){for(var k="",l=0,r=-1,w=d.length;r<g.length-1;){r=g.indexOf("\n",l);r==-1&&(r=g.length-1);var x=g.substring(l,r+1);(e.hasOwnProperty?e.hasOwnProperty(x):e[x]!==void 0)?k+=String.fromCharCode(e[x]):(w==
f&&(x=g.substring(l),r=g.length),k+=String.fromCharCode(w),e[x]=w,d[w++]=x);l=r+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}},SCd=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},TCd=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},ZCd=function(a,b){var c=a.length,d=b.length;if(c==0||d==0)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(f==-1)return d;e+=f;if(f==0||a.substring(c-e)==b.substring(0,e))d=e,e++}},WCd=function(a,b){function c(k,l,r){for(var w=k.substring(r,r+Math.floor(k.length/4)),x=-1,C="",
H,J,O,R;(x=l.indexOf(w,x+1))!=-1;){var V=SCd(k.substring(r),l.substring(x)),ca=TCd(k.substring(0,r),l.substring(0,x));C.length<ca+V&&(C=l.substring(x-ca,x)+l.substring(x,x+V),H=k.substring(0,r-ca),J=k.substring(r+V),O=l.substring(0,x-ca),R=l.substring(x+V))}return C.length*2>=k.length?[H,J,O,R,C]:null}var d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(d.length<4||e.length*2<d.length)return null;var f=c(d,e,Math.ceil(d.length/4));d=c(d,e,Math.ceil(d.length/2));var g;if(f||d)d?g=f?f[4].length>d[4].length?
f:d:d:g=f;else return null;a.length>b.length?(a=g[0],b=g[1],f=g[2],d=g[3]):(f=g[0],d=g[1],a=g[2],b=g[3]);return[a,b,f,d,g[4]]},tob=function(a,b){for(var c=!1,d=[],e=0,f=null,g=0,k=0,l=0,r=0,w=0;g<b.length;)b[g][0]==0?(d[e++]=g,k=r,l=w,w=r=0,f=b[g][1]):(b[g][0]==1?r+=b[g][1].length:w+=b[g][1].length,f&&f.length<=Math.max(k,l)&&f.length<=Math.max(r,w)&&(b.splice(d[e-1],0,[-1,f]),b[d[e-1]+1][0]=1,e--,e--,g=e>0?d[e-1]:-1,w=r=l=k=0,f=null,c=!0)),g++;c&&VCd(a,b);$Cd(b);for(g=1;g<b.length;){if(b[g-1][0]==
-1&&b[g][0]==1){a=b[g-1][1];c=b[g][1];d=ZCd(a,c);e=ZCd(c,a);if(d>=e){if(d>=a.length/2||d>=c.length/2)b.splice(g,0,[0,c.substring(0,d)]),b[g-1][1]=a.substring(0,a.length-d),b[g+1][1]=c.substring(d),g++}else if(e>=a.length/2||e>=c.length/2)b.splice(g,0,[0,a.substring(0,e)]),b[g-1][0]=1,b[g-1][1]=c.substring(0,c.length-e),b[g+1][0]=-1,b[g+1][1]=a.substring(e),g++;g++}g++}},$Cd=function(a){function b(x,C){if(!x||!C)return 6;var H=x.charAt(x.length-1),J=C.charAt(0),O=H.match(aDd),R=J.match(aDd),V=O&&H.match(bDd),
ca=R&&J.match(bDd);H=V&&H.match(cDd);J=ca&&J.match(cDd);x=H&&x.match(dDd);C=J&&C.match(eDd);return x||C?5:H||J?4:O&&!V&&ca?3:V||ca?2:O||R?1:0}for(var c=1;c<a.length-1;){if(a[c-1][0]==0&&a[c+1][0]==0){var d=a[c-1][1],e=a[c][1],f=a[c+1][1],g=TCd(d,e);if(g){var k=e.substring(e.length-g);d=d.substring(0,d.length-g);e=k+e.substring(0,e.length-g);f=k+f}g=d;k=e;for(var l=f,r=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 w=b(d,e)+b(e,f);w>=r&&(r=
w,g=d,k=e,l=f)}a[c-1][1]!=g&&(g?a[c-1][1]=g:(a.splice(c-1,1),c--),a[c][1]=k,l?a[c+1][1]=l:(a.splice(c+1,1),c--))}c++}},aDd=/[^a-zA-Z0-9]/,bDd=/\s/,cDd=/[\r\n]/,dDd=/\n\r?\n$/,eDd=/^\r?\n\r?\n/,VCd=function(a,b){b.push([0,""]);for(var c=0,d=0,e=0,f="",g="",k;c<b.length;)switch(b[c][0]){case 1:e++;g+=b[c][1];c++;break;case -1:d++;f+=b[c][1];c++;break;case 0:d+e>1?(d!==0&&e!==0&&(k=SCd(g,f),k!==0&&(c-d-e>0&&b[c-d-e-1][0]==0?b[c-d-e-1][1]+=g.substring(0,k):(b.splice(0,0,[0,g.substring(0,k)]),c++),g=g.substring(k),
f=f.substring(k)),k=TCd(g,f),k!==0&&(b[c][1]=g.substring(g.length-k)+b[c][1],g=g.substring(0,g.length-k),f=f.substring(0,f.length-k))),d===0?b.splice(c-e,d+e,[1,g]):e===0?b.splice(c-d,d+e,[-1,f]):b.splice(c-d-e,d+e,[-1,f],[1,g]),c=c-d-e+(d?1:0)+(e?1:0)+1):c!==0&&b[c-1][0]==0?(b[c-1][1]+=b[c][1],b.splice(c,1)):c++,d=e=0,g=f=""}b[b.length-1][1]===""&&b.pop();d=!1;for(c=1;c<b.length-1;)b[c-1][0]==0&&b[c+1][0]==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&&VCd(a,b)};var QY=function(){this.analytics=p(eQ);this.issueComments=p(sS);this.dialogManager=p(UA)};QY.prototype.show=function(a,b,c){var d=this,e;return y(function(f){if(d.dialog&&d.dialog.getState()!==2)return f.return();d.analytics.trackEvent("commentHistoryModal","open");e={issueId:a,commentNumber:b,commentVersion:c,commentHistory:fDd(d,a,b,c)};d.dialog=d.dialogManager.open(PY,{data:e,width:"50vw"});return f.return(fe(SA(d.dialog)))})};
var fDd=function(a,b,c,d){return a.issueComments.listHistory(b,c).then(function(e){var f=e.length>0?e[0].unlinkifiedComment:"",g=e.length>0?e[0].formattingMode:"",k=!1,l=[];e=m(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var w=vob(r);w||k?(f=gDd(r.unlinkifiedComment),g=gDd(r.formattingMode)):(f=uob(f,r.unlinkifiedComment),k=r.formattingMode,g=g===k?gDd(k):Dh([gDd(g,"diff-removed"),gDd(k,"diff-added")]));k=r.unlinkifiedComment===void 0?"":r.unlinkifiedComment;var x=r.version,C=r.commentContentVerdict;
l.push({unlinkifiedComment:k,lastEditorUser:r.lastEditorUser,version:x,formattingMode:r.formattingMode,formattingModeDiff:g,lastModified:Number(r.lastModified)/1E3,open:x<25,preview:k.length<=48?k:k.substring(0,45)+"...",diff:f,restricted:C&&C.piiVerdict&&C.piiVerdict.severity!=="NONE_DETECTED"||!1,deleted:vob(r)});f=r.unlinkifiedComment;g=r.formattingMode;k=w}d>-1?l[d].open=!0:l[0].open=!0;return l})},gDd=function(a,b){return Eh("span",b?{"class":b}:void 0,a)};
QY.\u0275fac=function(a){return new (a||QY)};QY.\u0275prov=Dc({token:QY,factory:QY.\u0275fac,providedIn:"root"});var RY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,RY.messageId)};Y(RY,W);RY.prototype.getUrl=function(){return ui(this,1,void 0,jb)};RY.prototype.setUrl=function(a){return oj(this,1,a,jb)};RY.prototype.hasUrl=function(){return im(this,1,jb)};RY.messageId="b.AttachmentUrlResponse";var SY=function(){this.executor=p(cO)};SY.prototype.get=function(a,b,c,d){if(!a||!b)return Promise.reject(Error("tf"));var e={};d&&(e["X-Restricted-Content-Limit"]=String(pYa(d)));return this.executor.get({url:"action/issues/"+a+"/attachments/"+b+"/url",options:{headers:e,params:{download:String(c)}},responseConstructor:RY}).then(function(f){return f.getUrl()})};SY.\u0275fac=function(a){return new (a||SY)};SY.\u0275prov=Dc({token:SY,factory:SY.\u0275fac,providedIn:"root"});var TY=function(){this.templateRef=p(dg);this.viewContainer=p(eg);this.activeSession=p(uu);this.isInternal=this.activeSession.isInternalSession()};TY.prototype.ngOnInit=function(){this.isInternal&&this.viewContainer.createEmbeddedView(this.templateRef)};TY.\u0275fac=function(a){return new (a||TY)};TY.\u0275dir=af({type:TY,selectors:[["","internalOnly",""]],standalone:!1});var UY=function(){this.dialogRef=p(RA);this.data=p(TA);this.userAccess=p(DP);this.attachmentsUrl=p(SY);this.butterBar=p(UN);this.domSafe=p(mR);this.documentationLinks=p(cS);this.changeDetectorRef=p(bQ,{self:!0});this.attachment=this.data.attachment;this.issueId=this.data.issueId;this.isLoading=!0;this.hasViewAccess=!1;this.download=this.data.download};UY.prototype.ngOnInit=function(){this.changeDetectorRef.detectChanges();this.setHasViewAccess()};
UY.prototype.setHasViewAccess=function(){var a=this;this.isLoading=!0;xob(this)?(this.hasViewAccess=!1,EP(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)};UY.prototype.getRestrictionSeverity=function(){var a=this.attachment.contentVerdict;if(a&&(a=a.piiVerdict))return a.severity};
var xob=function(a){return(a=a.getRestrictionSeverity())?a!=="NONE_DETECTED":!1},hDd=function(a){var b=a.download&&VQa(a.attachment.contentType);a.attachmentsUrl.get(a.issueId,a.attachment.attachmentId,b,a.getRestrictionSeverity()).then(function(c){b?skd(a.domSafe,c):a.domSafe.openInNewTab(c);a.close()},function(){a.butterBar.showWarning("Failed to load attachment. Please refresh and try again.");a.close()})};UY.prototype.close=function(){this.dialogRef.close();this.changeDetectorRef.detectChanges()};
UY.prototype.getRestrictedAccessHelpLink=function(){return this.documentationLinks.getRestrictedAccessHelpLink()};UY.\u0275fac=function(a){return new (a||UY)};
UY.\u0275cmp=D({type:UY,selectors:[["b-attachment-download-dialog"]],standalone:!1,features:[Gg([bQ])],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"],["diameter","60",1,"centered-spinner"],["mat-dialog-actions",""],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",1,"dialog-primary-action",
3,"click","disabled"],["target","_blank","aria-label","Learn more about restricted access in Buganizer.",3,"href"],[1,"no-access-warning"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Access Attachment"),L(),K(2,"div",1)(3,"div",2),Q(4," Are you sure you would like to access the following attachment? "),L(),M(5,"br"),K(6,"div",3)(7,"div",4),M(8,"mat-icon",5),L(),K(9,"div",6),Q(10),L()(),M(11,"br"),E(12,yob,2,1,"ng-container",7),F(13,zob,3,0,"div",2),L(),F(14,Aob,1,0,"mat-spinner",8),K(15,"div",
9)(16,"button",10),N("click",function(){return b.close()}),Q(17," Cancel "),L(),K(18,"button",11),N("click",function(){return hDd(b)}),Q(19," Continue "),L()());a&2&&(B(10),S(" ",b.attachment.filename," "),B(3),G(b.isLoading||b.hasViewAccess?-1:13),B(),G(b.isLoading?14:-1),B(4),I("disabled",!b.hasViewAccess))},dependencies:[Jy,kB,gB,XA,ZA,YA,qK,yI,TY],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 iDd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iDd,W);h=iDd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return tn(this,1)};h.setIssueId=function(a){return Io(this,1,a)};h.getAttachmentId_asString=function(){return tn(this,2)};h.setAttachmentId=function(a){return Io(this,2,a)};h.getRestrictedRetention=function(){return wi(this,3)};h.setRestrictedRetention=function(a){return Hm(this,3,a)};var jDd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jDd,W);jDd.prototype.getIt=function(){return X(this,iDd,4)};jDd.prototype.setIt=function(a){return Mi(this,iDd,4,a)};var VY=function(){this.executor=p(bO)};VY.prototype.updateRetention=function(a,b,c){c=(new jDd).setIt((new iDd).setIssueId(a).setAttachmentId(Number(b)).setRestrictedRetention(UVa(c)));return this.executor.post({url:"action/issues/"+a+"/attachments/"+b+"/update_retention",body:c,responseConstructor:lS}).pipe(A($6a))};VY.\u0275fac=function(a){return new (a||VY)};VY.\u0275prov=Dc({token:VY,factory:VY.\u0275fac,providedIn:"root"});var kDd;var lDd=Symbol("uf"),mDd=Symbol("vf"),nDd=Symbol("wf"),oDd=/^[a-z0-9-_]{6,30}$/,pDd="productID must match the expression: "+oDd;var ct=Object.assign({},{REPORTING_ENABLED:!0,REPORTING_URL_PREFIX:"https://csp.withgoogle.com/csp/lcreport/",SCF_REPORTING_PRODUCTION_ID:"scf-rendered-content",SCF_REPORTING_TEST_ID:"scf-rendered-content-test",PRODUCT_IDS_ALLOWLIST:["looker-studio","careerscms","translate-web"],TEST_PRODUCT_IDS:["scf-demo","test-product"],CRASH_SAMPLE_RATE:1,HEARTBEAT_SAMPLE_RATE:.01,ENABLE_COLLECTING_NETWORK_INFO:!1}),Cob={};yw(et,Fob);for(var qDd=[],rDd=0;rDd<63;rDd++)qDd[rDd]=0;var sDd=[].concat(128,qDd);et.prototype.reset=function(){this.total_=this.inChunk_=0;this.hash_=ra.Int32Array?new Int32Array(this.initHashBlocks_):Ma(this.initHashBlocks_)};
var tDd=function(a){for(var b=a.chunk_,c=a.w_,d=0,e=0;e<b.length;)c[d++]=b[e]<<24|b[e+1]<<16|b[e+2]<<8|b[e+3],e=d*4;for(b=16;b<64;b++)d=c[b-15]|0,e=c[b-2]|0,c[b]=((c[b-16]|0)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3)|0)+((c[b-7]|0)+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)|0)|0;b=a.hash_[0]|0;d=a.hash_[1]|0;e=a.hash_[2]|0;for(var f=a.hash_[3]|0,g=a.hash_[4]|0,k=a.hash_[5]|0,l=a.hash_[6]|0,r=a.hash_[7]|0,w=0;w<64;w++){var x=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&d^b&e^d&e)|0,C=(r+((g>>>6|g<<26)^
(g>>>11|g<<21)^(g>>>25|g<<7))|0)+(((g&k^~g&l)+(Gob[w]|0)|0)+(c[w]|0)|0)|0;r=l;l=k;k=g;g=f+C|0;f=e;e=d;d=b;b=C+x|0}a.hash_[0]=a.hash_[0]+b|0;a.hash_[1]=a.hash_[1]+d|0;a.hash_[2]=a.hash_[2]+e|0;a.hash_[3]=a.hash_[3]+f|0;a.hash_[4]=a.hash_[4]+g|0;a.hash_[5]=a.hash_[5]+k|0;a.hash_[6]=a.hash_[6]+l|0;a.hash_[7]=a.hash_[7]+r|0};
et.prototype.update=function(a,b){b===void 0&&(b=a.length);var c=0,d=this.inChunk_;if(typeof a==="string")for(;c<b;)this.chunk_[d++]=a.charCodeAt(c++),d==this.blockSize&&(tDd(this),d=0);else if(Na(a))for(;c<b;){var e=a[c++];if(!("number"==typeof e&&0<=e&&255>=e&&e==(e|0)))throw Error("zf");this.chunk_[d++]=e;d==this.blockSize&&(tDd(this),d=0)}else throw Error("Af");this.inChunk_=d;this.total_+=b};
et.prototype.digest=function(){var a=[],b=this.total_*8;this.inChunk_<56?this.update(sDd,56-this.inChunk_):this.update(sDd,this.blockSize-(this.inChunk_-56));for(var c=63;c>=56;c--)this.chunk_[c]=b&255,b/=256;tDd(this);for(c=b=0;c<this.numHashBlocks_;c++)for(var d=24;d>=0;d-=8)a[b++]=this.hash_[c]>>d&255;return a};
var Hob=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Gob;yw(Job,et);var Iob=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];var Lob=new TextEncoder,Mob=Lob.encode("$@#|").buffer;var uDd=["allow-same-origin","allow-scripts","allow-forms","allow-popups"],vDd=new TextEncoder,wDd={},xDd=function(){var a=this;this.productID="buganizer";this.shimOptions=void 0;this.renderCalled=!1;this.shimIframe=document.createElement("iframe");if(!oDd.test("buganizer"))throw Error(pDd);if(!Tob())throw Error("Df");wDd.shimBlobUrlFactory!==void 0&&(this.shimBlobUrlFactory=wDd.shimBlobUrlFactory);this.attachedPromise=new Promise(function(b){a.shimIframe.addEventListener("load",function(){b()},{once:!0});
a.shimIframe.addEventListener("error",function(){b()},{once:!0})})},yDd=function(a,b,c){if(!a.shimIframe||!a.shimIframe.contentWindow)throw Error("Ef");var d=new MessageChannel;a.shimIframe.contentWindow.postMessage(b,c,[d.port2]);return new Promise(function(e){d.port1.onmessage=function(f){f=f.data;if(f.type==="msg")f.message==="Reloading iframe"&&e();else if(f.type==="error")throw Error(f.message);}})},ADd=function(a,b,c,d){y(function(e){return e.return(zDd(a,b,c,d))})},zDd=function(a,b,c,d,e){var f,
g,k,l,r,w,x,C,H,J,O,R,V,ca,na,ua,ia,Ga,ha,sa,xa,Qa,bb,ub,Wb,lc,fc,pc,rb,Ob,ib,$b,rc;return y(function(Ec){switch(Ec.nextAddress){case 1:g=!((f=e)==null||!f.withoutSandbox);l=!((k=e)==null||!k.ignoreUrlFragment);if(a.renderCalled)throw Error("Ff");if(!g&&((r=a.shimOptions)==null?void 0:(w=r.pdfViewer)==null?void 0:w[nDd])!==void 0&&c.toLowerCase()==="application/pdf"&&b instanceof ArrayBuffer)return Ec.return(BDd(a,b,d,a.shimOptions.pdfViewer[nDd]));a.renderCalled=!0;H=(C=(x=a.shimOptions)==null?void 0:
x.sandbox)!=null?C:uDd;c.toLowerCase()==="application/pdf"||g||(a.shimIframe.sandbox.add.apply(a.shimIframe.sandbox,q(H)),a.shimIframe.sandbox.add("allow-scripts"),a.shimIframe.sandbox.add("allow-same-origin"));O=(J=a.shimOptions)==null?void 0:J.useSubtleCrypto;ca=(V=a.shimOptions)==null?void 0:V.enableBrowserCaching;ua=l?void 0:(na=a.shimOptions)==null?void 0:na.urlFragment;if(!ca){R=Pob().buffer;Ec.jumpTo(2);break}if(ca===!0)return z(Ec,Oob({useSubtleCrypto:O,parts:[b,location.pathname]}),7);if(typeof ca!==
"object"||!ca[mDd])throw Error("Gf");return z(Ec,Kob(vDd.encode(ca[mDd]).buffer,O),6);case 6:R=Ec.yieldResult;Ec.jumpTo(2);break;case 7:R=Ec.yieldResult;case 2:return ia=window.origin,z(Ec,Rob({product:a.productID,salt:R,useSubtleCrypto:O,trustedOrigin:ia,version:Number("825039400")}),8);case 8:Ga=Ec.yieldResult;ha=Sob({trustedOrigin:ia,fileHash:Ga,version:"825039400",product:a.productID,cache:!!ca});sa=(new URL(ha)).origin;a.shimBlobUrlFactory!==void 0?(xa=a.shimBlobUrlFactory(ha),Qa=URL.createObjectURL(xa),
a.shimIframe.src=Qa,sa=(new URL(Qa)).origin):a.shimIframe.src=ha;((bb=a.shimOptions)==null?void 0:bb.useShadowDom)===lDd?(ub=document.createElement("safe-content-frame"),Wb=ub.attachShadow({mode:"open"}),a.shimIframe.part.add("shim-iframe"),Wb.appendChild(a.shimIframe),d.appendChild(ub)):d.appendChild(a.shimIframe);if(!Bob(a.productID))return z(Ec,a.attachedPromise,10);lc=new Promise(function(Rb,Bc){setTimeout(function(){a.shimIframe.parentNode&&a.shimIframe.contentWindow?Bc(Error("yf")):Bc(Error("Ef"))},
15E3)});Wd(Ec,11);return z(Ec,Promise.race([a.attachedPromise,lc]),13);case 13:dt(Ec,10);break;case 11:return fc=$d(Ec),z(Ec,Eob(fc,a.productID,sa,"attachedPromise"),14);case 14:throw fc;case 10:pc=!1;Ob=new Promise(function(Rb){a.shimIframe.addEventListener("load",function(){pc=!0;Rb(rb)},{once:!0})});rb={sendMessage:function(Rb,Bc){if(!a.shimIframe||!a.shimIframe.contentWindow)throw Error("Ef");a.shimIframe.contentWindow.postMessage(Rb,sa,Bc)},origin:sa,fullyLoadedPromise:Ob,fullyLoadedPromiseWithTimeout:Uob(Ob,
function(){return pc})};ib=yDd(a,{body:b,mimeType:c,salt:R,urlFragment:ua},sa);if(!Bob(a.productID))return z(Ec,ib,17);$b=new Promise(function(Rb,Bc){setTimeout(function(){a.shimIframe.parentNode&&a.shimIframe.contentWindow?Bc(Error("yf")):Bc(Error("Ef"))},7E3)});Wd(Ec,18);return z(Ec,Promise.race([ib,$b]),20);case 20:Dob(a.productID,"heartbeat",sa);dt(Ec,17);break;case 18:return rc=$d(Ec),z(Ec,Eob(rc,a.productID,sa,"sendShimMessagePromise"),21);case 21:throw rc;case 17:return Ec.return(rb)}})},BDd=
function(a,b,c,d){var e,f,g,k,l,r,w,x;return y(function(C){if(C.nextAddress==1)return f=(e=a.shimOptions)==null?void 0:e.urlFragment,g='<!DOCTYPE html><html><head><meta charset="utf-8">\n    <script>'+xEa(kDd||(kDd=wZc('[null,null,null,null,null,"(function(){\'use strict\';let h\\u003d!1;function k(a){if(!a||typeof a!\\u003d\\u003d\\"object\\"\\u0026\\u0026typeof a!\\u003d\\u003d\\"function\\")throw Error(\\"Invalid PDF viewer message\\");const f\\u003da.action,d\\u003da.file,e\\u003da.filename;a\\u003da.urlFragment;if(typeof f!\\u003d\\u003d\\"string\\")throw Error(\\"Invalid PDF viewer message\\");if(a!\\u003d\\u003dvoid 0\\u0026\\u0026typeof a!\\u003d\\u003d\\"string\\")throw Error(\\"Invalid PDF viewer message\\");if(typeof e!\\u003d\\u003d\\"string\\")throw Error(\\"Invalid PDF viewer message\\");if(!(d instanceof ArrayBuffer))throw Error(\\"Invalid PDF viewer message\\");return{action:f,file:d,filename:e,urlFragment:a}}\\nfunction m(a){const {action:f,file:d,filename:e,urlFragment:l}\\u003dk(a.data);if(a.source!\\u003d\\u003dwindow.parent)throw Error(\\"Only messages from parent are allowed\\");const g\\u003da.ports[0];if(f\\u003d\\u003d\\u003d\\"renderPdf\\"\\u0026\\u0026!h){if(d\\u003d\\u003d\\u003dvoid 0)throw Error(\\"Invalid PDF viewer message\\");a\\u003dURL.createObjectURL(new Blob([d],{type:\\"application/pdf\\"}));var b\\u003de\\u003d\\u003d\\u003d\\"__SCF_TEST_NO_PDF_SUPPORT__\\";if(b||navigator.pdfViewerEnabled\\u003d\\u003d\\u003d!1){const c\\u003ddocument.createElement(\\"a\\");c.href\\u003da;c.download\\u003db?\\"test.pdf\\":e.replace(/[^a-zA-Z0-9._-]/g,\\"_\\");c.textContent\\u003d\\n`Download ${c.download}`;c.style.cssText\\u003d\\"background-color: #1a73e8; color: white; text-decoration: none; padding: 10px 24px; border-radius: 4px;\\";document.body.style.cssText\\u003d\\"display: flex; justify-content: center; align-items: center; height: 100vh; font-family: sans-serif; margin: 0;\\";document.body.replaceChildren(c);g\\u0026\\u0026g.postMessage(\\"Native PDF viewer not supported\\")}else b\\u003ddocument.createElement(\\"iframe\\"),a\\u003dnew URL(a),l\\u0026\\u0026(a.hash\\u003dl),b.src\\u003da.href,b.style.cssText\\u003d\\"position:absolute; top:0; left:0; bottom:0; right:0; width:100vw; height:100vh; border:none; margin:0; padding:0; z-index:999999;\\",\\nb.onload\\u003d()\\u003d\\u003e{g\\u0026\\u0026g.postMessage(\\"Iframe with the PDF loaded\\")},document.body.replaceChildren(b);h\\u003d!0;window.removeEventListener(\\"message\\",m)}}window.addEventListener(\\"message\\",m);}).call(this);\\n"]')))+
"\x3c/script></head><body></body></html>",z(C,zDd(a,g,"text/html; charset=utf-8",c,{withoutSandbox:!0,ignoreUrlFragment:!0}),2);if(C.nextAddress!=3)return k=C.yieldResult,z(C,k.fullyLoadedPromiseWithTimeout(3E4),3);l=!1;r=new MessageChannel;x=new Promise(function(H){r.port1.onmessage=function(J){if(J.data==="Iframe with the PDF loaded"||J.data==="Native PDF viewer not supported")l=!0,H(w)}});w={sendMessage:k.sendMessage,origin:k.origin,fullyLoadedPromise:x,fullyLoadedPromiseWithTimeout:Uob(x,function(){return l})};
k.sendMessage({action:"renderPdf",file:b,filename:d,urlFragment:f},[r.port2]);return C.return(w)})};var CDd=["attachmentContent"],WY=function(){Z.apply(this,arguments);this.attachmentsApi=p(nS)};Y(WY,Z);WY.\u0275dir=Z.\u0275dir;WY.prototype.ngOnInit=function(){DDd(this)};var DDd=function(a){a.subscriptions.add(Tmd(a.attachmentsApi,a.issueId,a.attachmentId).subscribe(function(b){b&&ADd(new xDd,b,a.mimeType,a.container.nativeElement)}))};WY.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(WY)))(b||WY)}}();
WY.\u0275cmp=D({type:WY,selectors:[["attachment-preview"]],viewQuery:function(a,b){a&1&&hg(CDd,5);if(a&2){var c;lg(c=mg())&&(b.container=c.first)}},inputs:{issueId:"issueId",attachmentId:"attachmentId",mimeType:"mimeType"},standalone:!1,features:[Ef],decls:2,vars:0,consts:[["attachmentContent",""],[1,"full-width","full-height"]],template:function(a){a&1&&M(0,"div",1,0)},styles:["[_nghost-%COMP%]     iframe{border:0;height:100%;width:100%}/*# sourceMappingURL=attachment_preview.css.map */"]});var XY=function(){this.inlinedAttachmentSet=new Set};XY.prototype.getCount=function(){return this.inlinedAttachmentSet.size};XY.\u0275fac=function(a){return new (a||XY)};XY.\u0275prov=Dc({token:XY,factory:XY.\u0275fac,providedIn:"root"});var EDd=function(){this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.isGreyedOut=!0;this.linkUrl=this.displayName="";this.useCustomHandler=this.linkEnabled=!1;this.customHandler=new aQ};EDd.prototype.handleClick=function(a){this.useCustomHandler&&(a.preventDefault(),this.customHandler.emit())};EDd.\u0275fac=function(a){return new (a||EDd)};
EDd.\u0275cmp=D({type:EDd,selectors:[["b-conditional-link"]],inputs:{isGreyedOut:"isGreyedOut",displayName:"displayName",linkUrl:"linkUrl",linkEnabled:"linkEnabled",useCustomHandler:"useCustomHandler"},outputs:{customHandler:"customHandler"},standalone:!1,decls:2,vars:2,consts:[[3,"muted"],["target","_blank",1,"normal-link",3,"href","rel"],["target","_blank",1,"normal-link",3,"click","href","rel"]],template:function(a,b){a&1&&(F(0,Vob,2,3,"span",0),F(1,Wob,2,3,"a",1));a&2&&(G(b.isGreyedOut||!b.linkEnabled?
0:-1),B(),G(!b.isGreyedOut&&b.linkEnabled?1:-1))},encapsulation:2,changeDetection:0});var YY=function(){this.tooltipRegistry={}};YY.prototype.showTooltip=function(a){return this.tooltipRegistry[a]?!1:this.tooltipRegistry[a]=!0};YY.\u0275fac=function(a){return new (a||YY)};YY.\u0275prov=Dc({token:YY,factory:YY.\u0275fac,providedIn:"root"});var ZY=function(){Qz.apply(this,arguments)};Y(ZY,Qz);ZY.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(ZY)))(b||ZY)}}();ZY.\u0275dir=af({type:ZY,selectors:[["","expandable-tab-content",""]],standalone:!1,features:[Ef]});var $Y=function(){Qz.apply(this,arguments)};Y($Y,Qz);$Y.\u0275fac=function(){var a;return function(b){return(a||(a=Fd($Y)))(b||$Y)}}();$Y.\u0275dir=af({type:$Y,selectors:[["","expandable-tab-header",""]],standalone:!1,features:[Ef]});
var aZ=function(){Qz.apply(this,arguments)};Y(aZ,Qz);aZ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(aZ)))(b||aZ)}}();aZ.\u0275dir=af({type:aZ,selectors:[["","expandable-tab-icon",""]],standalone:!1,features:[Ef]});var bZ=function(){};bZ.prototype.ngOnInit=function(){};bZ.\u0275fac=function(a){return new (a||bZ)};
bZ.\u0275cmp=D({type:bZ,selectors:[["expandable-tab"]],contentQueries:function(a,b,c){a&1&&(ig(c,$Y,5,dg),ig(c,ZY,5,dg),ig(c,aZ,5,dg));if(a&2){var d;lg(d=mg())&&(b.tabHeaderTemplate=d.first);lg(d=mg())&&(b.tabContentTemplate=d.first);lg(d=mg())&&(b.tabIconTemplate=d.first)}},inputs:{key:"key",ariaLabel:"ariaLabel"},standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var Zob=function(a){return{tab:a}},hpb=function(a){return{allTabsExpanded:a}},upb=function(){return[]},FDd=function(a,b){return b.key},cZ=function(){Z.apply(this,arguments);this.internalTabKeys$=new Mj([]);this.ariaLabel="";this.openTabCallback=function(){return y(function(a){return a.return(!0)})};this.openAllTabsCallback=function(){return y(function(a){return a.return(!0)})};this.expandableTabsTitle="";this.internalExpandedTabs=new aR;this.showIcons=this.showMultiple=!0;this.visibleExpandedTabs$=
ie([this.internalTabKeys$,this.internalExpandedTabs.value$]).pipe(A(function(a){var b=m(a);a=b.next().value;var c=b.next().value;return a.filter(function(d){return c.has(d)})}));this.expandedTabsChanged=new aQ;this.contentShownChanged=new aQ;this.showAllClicked=new aQ;this.tabs$=new Mj([]);this.allTabsExpanded$=ie([this.tabs$,this.internalExpandedTabs.value$]).pipe(A(function(a){var b=m(a);a=b.next().value;var c=b.next().value;return a.every(function(d){return c.has(d.key)})}))};Y(cZ,Z);
cZ.\u0275dir=Z.\u0275dir;
cZ.prototype.ngAfterContentInit=function(){var a=this;this.subscriptions.add(this.internalTabs.changes.pipe(xf(void 0),A(function(){return a.internalTabs.toArray()}),A(function(b){return new Map(b.map(function(c){return[c.key,c]}))}),yf(function(b){return ie([ce(b),a.internalTabKeys$])}),A(function(b){b=m(b);var c=b.next().value;return b.next().value.map(function(d){return Object.assign({},{key:d},c.get(d))})})).subscribe(this.tabs$));this.subscriptions.add(ie([this.internalTabKeys$,this.internalExpandedTabs.value$]).pipe(A(function(b){var c=
m(b);b=c.next().value;c=c.next().value;return FQa(new Set(b),new Set(c))}),nf(mm)).subscribe(function(b){a.contentShownChanged.emit(b)}))};cZ.prototype.ngOnInit=function(){};
var epb=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return(c=a.internalExpandedTabs.has(b))?(a.internalExpandedTabs.delete(b),d.jumpTo(2)):z(d,a.openTabCallback(b),3);if(d.nextAddress!=2){if(!d.yieldResult)return d.return();a.showMultiple||a.internalExpandedTabs.clear();a.internalExpandedTabs.add(b)}a.expandedTabsChanged.emit(new Set(a.internalExpandedTabs));ae(d)})};
cZ.prototype.showAll=function(){var a=this;return y(function(b){if(b.nextAddress==1)return z(b,a.openAllTabsCallback(a.tabKeys),2);if(!b.yieldResult)return b.return();a.internalExpandedTabs.add.apply(a.internalExpandedTabs,q(a.tabs$.value.map(function(c){return c.key})));a.expandedTabsChanged.emit(new Set(a.internalExpandedTabs));ae(b)})};cZ.prototype.hideAll=function(){this.internalExpandedTabs.clear();this.expandedTabsChanged.emit(new Set(this.internalExpandedTabs))};
cZ.prototype.toggleAll=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,fe(a.allTabsExpanded$),2);if(c.nextAddress!=4)return(b=c.yieldResult)?(a.hideAll(),c.jumpTo(0)):z(c,a.showAll(),4);a.showAllClicked.emit(void 0);ae(c)})};
da.Object.defineProperties(cZ.prototype,{tabKeys:{configurable:!0,enumerable:!0,set:function(a){this.internalTabKeys$.next([].concat(q(a)))},get:function(){return this.internalTabKeys$.value}},expandedTabs:{configurable:!0,enumerable:!0,set:function(a){if(!this.showMultiple&&a.length>1)throw Error("Hf");this.internalExpandedTabs.reset(a)},get:function(){return[].concat(q(this.internalExpandedTabs))}}});cZ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(cZ)))(b||cZ)}}();
cZ.\u0275cmp=D({type:cZ,selectors:[["expandable-tabs"]],contentQueries:function(a,b,c){a&1&&ig(c,bZ,5);if(a&2){var d;lg(d=mg())&&(b.internalTabs=d)}},inputs:{tabKeys:"tabKeys",ariaLabel:"ariaLabel",openTabCallback:"openTabCallback",openAllTabsCallback:"openAllTabsCallback",expandableTabsTitle:"expandableTabsTitle",expandedTabs:"expandedTabs",showMultiple:"showMultiple",showIcons:"showIcons"},outputs:{expandedTabsChanged:"expandedTabsChanged",contentShownChanged:"contentShownChanged",showAllClicked:"showAllClicked"},
standalone:!1,features:[Ef],decls:15,vars:7,consts:[["headerText",""],["spacer",""],[1,"tabs-row","flex-kids-x"],[1,"expandable-tabs-title"],["role","tablist","aria-multiselectable","true",1,"expandable-tabs","flex-kids-x"],["type","button","mat-button","","role","tab",1,"expandable-tab","keep-focus-ring",3,"has-icon","expanded"],[1,"margin-left-auto","shrink-0"],[1,"expandable-tabs-contents"],["type","button","mat-button","","role","tab",1,"expandable-tab","keep-focus-ring",3,"click"],["svgIcon",
"done",1,"icon-s"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["type","button","mat-button","",1,"small",3,"expandable-tabs-hide-all","expandable-tabs-show-all"],["type","button","mat-button","",1,"small",3,"click"],["type","button","mat-button","",1,"small","expandable-tabs-hide-all"],["type","button","mat-button","",1,"small","expandable-tabs-show-all",3,"click"],["iconPositionEnd","","svgIcon","arrow_outward_24px",1,"icon-s"],["type","button","mat-button","",1,"small",
"expandable-tabs-hide-all",3,"click"],["role","tabpanel",3,"class","id"],["role","tabpanel",3,"id"],[1,"spacer"]],template:function(a,b){a&1&&(K(0,"div",2),F(1,Xob,2,2,"span",3),K(2,"div",4),Nf(3,fpb,9,21,"button",5,FDd),T(5,"async"),L(),K(6,"div",6),F(7,ipb,2,5)(8,kpb,5,4),L()(),K(9,"div",7),Nf(10,wpb,2,3,null,null,FDd),T(12,"async"),L(),E(13,Bpb,2,1,"ng-template",null,0,Mg));a&2&&(B(),G(b.expandableTabsTitle?1:-1),B(),If("aria-label",b.ariaLabel),B(),Of(U(5,3,b.tabs$)),B(4),G(b.showMultiple?7:8),
B(3),Of(U(12,5,b.tabs$)))},dependencies:[Sx,Jy,kB,gB,Tx],styles:[".expandable-tabs[_ngcontent-%COMP%]{gap:8px}.expandable-tab[_ngcontent-%COMP%]{padding:4px 12px;border-radius:16px;border:1px solid;border-color:#dadce0;border-color:var(--c300);color:#3c4043;color:var(--c800)}.expandable-tab.has-icon[_ngcontent-%COMP%]{padding-left:8px}.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-mdc-button{line-height:unset;height:auto}[_nghost-%COMP%]     .expandable-tab.mat-mdc-button .mat-icon{margin-right:4px}.expandable-tabs.flex-kids-x[_ngcontent-%COMP%]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.expandable-tabs-title[_ngcontent-%COMP%]{margin-right:8px}.expandable-tab-content[_ngcontent-%COMP%]{margin-left:8px;margin-right:8px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.expandable-tab-content[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:4px;color:#202124;color:var(--c900);margin:16px 0}.expandable-tab-content[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{margin-top:8px}.expandable-tab-content[_ngcontent-%COMP%]:not(:last-child){padding-bottom:16px;border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}\n/*# sourceMappingURL=expandable_tabs.css.map */"],
changeDetection:0});var GDd={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 dZ=function(a,b,c){var d=this;this.document=a;this.focusTrapFactory=b;this.elementRef=c;this.dismiss=new Ti;this.action=new Ti;this.pointerPosition=2;this.color="blue";this.actionBtnIcon=this.actionBtnText="";this.Position=GDd;this.width=272;this.previouslyFocusedElement=null;this.dismissIfEscape=function(e){e.key==="Escape"&&d.dismissTooltip()};this.setPreviouslyFocusedElement=function(){var e=d.document.activeElement;e!=null&&e.closest("onedev-feature-tooltip-body")||(d.previouslyFocusedElement=
d.document.activeElement)};this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement,{defer:!0});this.document.addEventListener("keydown",this.dismissIfEscape);this.document.addEventListener("focusin",this.setPreviouslyFocusedElement)};dZ.prototype.ngAfterContentInit=function(){Ty(this.focusTrap);this.setPreviouslyFocusedElement();nCc(this.focusTrap)};
dZ.prototype.ngOnDestroy=function(){this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement);this.focusTrap.destroy()};
dZ.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)};da.Object.defineProperties(dZ.prototype,{widthOffset:{configurable:!0,enumerable:!0,set:function(a){this.width=272+a*64}}});
dZ.\u0275fac=function(a){return new (a||dZ)(Ve(Rh),Ve(kz),Ve(Hd))};
dZ.\u0275cmp=D({type:dZ,selectors:[["onedev-feature-tooltip-body"]],hostVars:16,hostBindings:function(a,b){a&2&&wg("pointer-top-left",b.pointerPosition===b.Position.TOP_LEFT)("pointer-top-right",b.pointerPosition===b.Position.TOP_RIGHT)("pointer-bottom-left",b.pointerPosition===b.Position.BOTTOM_LEFT)("pointer-bottom-right",b.pointerPosition===b.Position.BOTTOM_RIGHT)("pointer-left-top",b.pointerPosition===b.Position.LEFT_TOP)("pointer-left-bottom",b.pointerPosition===b.Position.LEFT_BOTTOM)("pointer-right-top",
b.pointerPosition===b.Position.RIGHT_TOP)("pointer-right-bottom",b.pointerPosition===b.Position.RIGHT_BOTTOM)},inputs:{pointerPosition:"pointerPosition",widthOffset:"widthOffset",color:"color",actionBtnText:"actionBtnText",actionBtnIcon:"actionBtnIcon"},outputs:{dismiss:"dismiss",action:"action"},standalone:!1,features:[Gg([{provide:wCc,useValue:{preventFocus:function(){},allowFocus:function(){}}},kz])],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,"click","color"],["mat-button","",1,"action-button",3,"click"],[1,"action-button-wrapper"],["class","action-button-icon",4,"ngIf"],[1,"action-button-icon"]],template:function(a,b){a&1&&(bg(),K(0,"div",0)(1,"div",1),M(2,"div",2),L(),cg(3),K(4,
"div",3),E(5,Dpb,4,2,"button",4),K(6,"button",5),N("click",function(){return b.dismissTooltip()}),Q(7," Got it "),L()()());a&2&&(vg("width",b.width,"px"),I("ngClass",b.color),B(5),I("ngIf",b.actionBtnText),B(),I("color",b.color==="white"?"primary":""))},dependencies:[Wy,Lx,Nx,GI,Jy],styles:[".overlay-container{overflow:hidden}.dark-mode,:root{--tooltip-white-bg:var(--surface-default,#fff);--tooltip-blue-bg:var(--blue-700,#1967d2);--tooltip-white-text:var(--grey-800,#3c4043);--tooltip-blue-text:var(--text-inverse,#fff);--tooltip-shadow-color:rgba(0,0,0,.2)}.dark-mode{--tooltip-white-bg:var(--surface-default,#28292c);--tooltip-blue-bg:var(--blue-300,#8ab4f8);--tooltip-white-text:var(--grey-300,#dadce0);--tooltip-blue-text:var(--text-inverse,#000);--tooltip-shadow-color:rgba(0,0,0,.5)}.tooltip-body{padding:24px;border-radius:8px;color:var(--tooltip-text);background-color:var(--tooltip-bg);position:relative;--pointer-edge-offset:24px;--pointer-width:18px;--pointer-height:12px;--pointer-container-height:30px;--pointer-container-width:calc(var(--pointer-edge-offset)*2 + var(--pointer-width));--pointer-adjustment:-9px;box-shadow:0 1px 3px 0 var(--tooltip-shadow-color),0 4px 8px 3px var(--tooltip-shadow-color)}.tooltip-body.blue{--tooltip-text:var(--tooltip-blue-text);--tooltip-bg:var(--tooltip-blue-bg)}.tooltip-body.white{--tooltip-text:var(--tooltip-white-text);--tooltip-bg:var(--tooltip-white-bg)}.tooltip-body .button-row{margin-top:16px;text-align:right}.tooltip-body .button-row>button{height:36px}.tooltip-body .button-row .close-button{color:var(--tooltip-bg);margin-left:16px;width:88px}.tooltip-body .button-row .action-button{padding-left:8px;padding-right:8px}.tooltip-body .button-row .action-button .action-button-wrapper{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.tooltip-body .button-row .action-button .action-button-wrapper .action-button-icon{font-size:18px;height:18px;padding-left:8px;width:18px}.tooltip-body .pointer-container{position:absolute;overflow:hidden;pointer-events:none}.tooltip-body .pointer-container .pointer{width:16px;height:16px;position:absolute;background-color:var(--tooltip-bg)}.tooltip-body .tooltip-title{margin:0 4px 0 0}.pointer-bottom-left .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-bottom-left .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-bottom-left .tooltip-body{margin-bottom:var(--pointer-height)}.pointer-bottom-left .pointer{box-shadow:2px 2px 8px 3px var(--tooltip-shadow-color);top:var(--pointer-adjustment)}.pointer-bottom-left .pointer-container{bottom:calc(var(--pointer-container-height)*-1)}.pointer-bottom-left .pointer-container{left:0}.pointer-bottom-right .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-bottom-right .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-bottom-right .tooltip-body{margin-bottom:var(--pointer-height)}.pointer-bottom-right .pointer{box-shadow:2px 2px 8px 3px var(--tooltip-shadow-color);top:var(--pointer-adjustment)}.pointer-bottom-right .pointer-container{bottom:calc(var(--pointer-container-height)*-1)}.pointer-bottom-right .pointer-container{right:0}.pointer-top-left .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-top-left .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-top-left .tooltip-body{margin-top:var(--pointer-height)}.pointer-top-left .pointer{box-shadow:-1px -1px 3px 0 var(--tooltip-shadow-color);bottom:var(--pointer-adjustment)}.pointer-top-left .pointer-container{top:calc(var(--pointer-container-height)*-1)}.pointer-top-left .pointer-container{left:0}.pointer-top-right .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-top-right .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-top-right .tooltip-body{margin-top:var(--pointer-height)}.pointer-top-right .pointer{box-shadow:-1px -1px 3px 0 var(--tooltip-shadow-color);bottom:var(--pointer-adjustment)}.pointer-top-right .pointer-container{top:calc(var(--pointer-container-height)*-1)}.pointer-top-right .pointer-container{right:0}.pointer-left-top .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-left-top .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-left-top .tooltip-body{margin-left:var(--pointer-height)}.pointer-left-top .pointer{box-shadow:2px 2px 5px 0 var(--tooltip-shadow-color);right:var(--pointer-adjustment)}.pointer-left-top .pointer-container{left:calc(var(--pointer-container-height)*-1)}.pointer-left-top .pointer-container{top:0}.pointer-left-bottom .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-left-bottom .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-left-bottom .tooltip-body{margin-left:var(--pointer-height)}.pointer-left-bottom .pointer{box-shadow:2px 2px 5px 0 var(--tooltip-shadow-color);right:var(--pointer-adjustment)}.pointer-left-bottom .pointer-container{left:calc(var(--pointer-container-height)*-1)}.pointer-left-bottom .pointer-container{bottom:0}.pointer-right-top .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-right-top .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-right-top .tooltip-body{margin-right:var(--pointer-height)}.pointer-right-top .pointer{left:var(--pointer-adjustment);box-shadow:1px -1px 8px 3px var(--tooltip-shadow-color)}.pointer-right-top .pointer-container{right:calc(var(--pointer-container-height)*-1)}.pointer-right-top .pointer-container{top:0}.pointer-right-bottom .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-right-bottom .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-right-bottom .tooltip-body{margin-right:var(--pointer-height)}.pointer-right-bottom .pointer{left:var(--pointer-adjustment);box-shadow:1px -1px 8px 3px var(--tooltip-shadow-color)}.pointer-right-bottom .pointer-container{right:calc(var(--pointer-container-height)*-1)}.pointer-right-bottom .pointer-container{bottom:0}"],
encapsulation:2,changeDetection:0});var eZ=function(){};eZ.\u0275fac=function(a){return new (a||eZ)};eZ.\u0275mod=$e({type:eZ});eZ.\u0275inj=Fc({});var fZ=function(){this.anchorMap=new Map},HDd=function(a,b){if(a.anchorMap.has(b))return a.anchorMap.get(b);var c={created$:new uf(1),destroyed$:new qf,dismissTooltip$:new qf};a.anchorMap.set(b,c);return c},IDd=function(a,b,c){HDd(a,b).created$.next(c)},JDd=function(a,b){HDd(a,b).destroyed$.next();HDd(a,b).created$.next(void 0)};fZ.prototype.dismissTooltip=function(){HDd(this).dismissTooltip$.next()};fZ.\u0275fac=function(a){return new (a||fZ)};fZ.\u0275prov=Dc({token:fZ,factory:fZ.\u0275fac,providedIn:eZ});var gZ={TOP_LEFT:{pointerPosition:2,connectedPosition:{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-12}},TOP_CENTER_RIGHT:{pointerPosition:2,connectedPosition:{originX:"center",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-33}},TOP_CENTER_LEFT:{pointerPosition:3,connectedPosition:{originX:"center",originY:"top",overlayX:"end",overlayY:"bottom",offsetX:33}},TOP_RIGHT:{pointerPosition:3,connectedPosition:{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",
offsetX:12}},RIGHT_TOP:{pointerPosition:4,connectedPosition:{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetY:-12}},RIGHT_CENTER_BOTTOM:{pointerPosition:4,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"top",offsetY:-33}},RIGHT_CENTER_TOP:{pointerPosition:5,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom",offsetY:33}},RIGHT_BOTTOM:{pointerPosition:5,connectedPosition:{originX:"end",originY:"bottom",overlayX:"start",
overlayY:"bottom",offsetY:12}},LEFT_BOTTOM:{pointerPosition:7,connectedPosition:{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom",offsetY:12}},LEFT_CENTER_BOTTOM:{pointerPosition:6,connectedPosition:{originX:"start",originY:"center",overlayX:"end",overlayY:"top",offsetY:-33}},LEFT_CENTER_TOP:{pointerPosition:7,connectedPosition:{originX:"start",originY:"center",overlayX:"end",overlayY:"bottom",offsetY:33}},LEFT_TOP:{pointerPosition:6,connectedPosition:{originX:"start",originY:"top",
overlayX:"end",overlayY:"top",offsetY:-12}},BOTTOM_LEFT:{pointerPosition:0,connectedPosition:{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-12}},BOTTOM_CENTER_RIGHT:{pointerPosition:0,connectedPosition:{originX:"center",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-33}},BOTTOM_CENTER_LEFT:{pointerPosition:1,connectedPosition:{originX:"center",originY:"bottom",overlayX:"end",overlayY:"top",offsetX:33}},BOTTOM_RIGHT:{pointerPosition:1,connectedPosition:{originX:"end",
originY:"bottom",overlayX:"end",overlayY:"top",offsetX:12}}},KDd=[gZ.TOP_CENTER_RIGHT,gZ.TOP_CENTER_LEFT,gZ.BOTTOM_CENTER_RIGHT,gZ.BOTTOM_CENTER_LEFT],LDd=[gZ.TOP_LEFT,gZ.TOP_RIGHT,gZ.BOTTOM_LEFT,gZ.BOTTOM_RIGHT],MDd=[gZ.LEFT_CENTER_BOTTOM,gZ.LEFT_CENTER_TOP,gZ.RIGHT_CENTER_BOTTOM,gZ.RIGHT_CENTER_TOP],NDd=[gZ.LEFT_TOP,gZ.LEFT_BOTTOM,gZ.RIGHT_TOP,gZ.RIGHT_BOTTOM];var hZ=function(){};hZ.\u0275fac=function(a){return new (a||hZ)};hZ.\u0275mod=$e({type:hZ});hZ.\u0275inj=Fc({});var ODd=function(){},QDd=function(a,b){return PDd(a,b).map(function(c){return c.connectedPosition})},RDd=function(a,b,c){a=PDd(a,b).find(function(d){return d.connectedPosition===c});if(!a)throw Error("If`"+JSON.stringify(c));return a.pointerPosition},PDd=function(a,b){b=SDd(b).filter(function(c){return!a.includes(c)});return a.concat(b)},SDd=function(a){var b,c=a==null?void 0:(b=a.nativeElement)==null?void 0:b.clientWidth,d;a=a==null?void 0:(d=a.nativeElement)==null?void 0:d.clientHeight;return(c!==
void 0&&c<60?KDd:LDd).concat(a!==void 0&&a<60?MDd:NDd)};ODd.\u0275fac=function(a){return new (a||ODd)};ODd.\u0275prov=Dc({token:ODd,factory:ODd.\u0275fac,providedIn:hZ});var TDd=["template"],iZ=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 qf;this.customPositions=[];this.widthOffset=0;this.color="blue";this.hasBackdrop=!1;this.actionBtnIcon=this.actionBtnText="";this.dismiss=new Ti;this.beforeShown=new Ti;this.action=new Ti;this.pointerPosition=0;this.destroyed$=new uf;this.init$=new uf;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 g;(g=f.overlayRef)==null||g.dispose();f.overlayRef=void 0}};iZ.prototype.ngOnChanges=function(a){if(a.customPositions){var b;(b=this.overlayRef)==null||YCc(b,UDd(this))}};
iZ.prototype.ngOnInit=function(){var a=HDd(this.anchorService,this.tooltipId),b=a.destroyed$,c=a.dismissTooltip$;VDd(this,a.created$);b.pipe(zf(this.destroyed$)).subscribe(this.hideFeatureTooltip);WDd(this,c)};iZ.prototype.ngAfterViewInit=function(){this.init$.next()};iZ.prototype.ngOnDestroy=function(){this.hideFeatureTooltip();this.destroyed$.next()};
var VDd=function(a,b){a.open$.pipe(Ala(a.init$),Af(function(){a.beforeShown.emit()}),yf(function(){return b.pipe(zf(a.dismiss))}),zf(a.destroyed$),ue(function(c){return!!c&&!a.isVisible()})).subscribe(function(c){a.showFeatureTooltip(c)})},WDd=function(a,b){b.pipe(zf(a.destroyed$),ue(function(){return a.isVisible()})).subscribe(function(){a.hideFeatureTooltip();a.dismiss.emit()})};
iZ.prototype.showFeatureTooltip=function(a){this.anchor=a;a=a.nativeElement;if(this.hasBackdrop){var b=a.style,c=b.position;this.savedAnchorStyles={zIndex:b.zIndex,position:c};if(c==="static"||c==="")a.style.position="relative";a.style.zIndex="1001"}this.overlayRef=this.overlay.create({positionStrategy:UDd(this),scrollStrategy:this.getScrollStrategy(),minWidth:"fit-content",hasBackdrop:this.hasBackdrop});var d;(d=this.overlayRef)==null||d.attach(new Oz(this.templateRef,this.containerRef))};
iZ.prototype.getScrollStrategy=function(){var a=this.overlay.scrollStrategies;return this.hasBackdrop?a.block():a.reposition()};iZ.prototype.getPositionStrategy=function(){if(!this.anchor)throw Error("Jf");return Fz(Lz(this.overlay.position(),this.anchor),QDd(this.customPositions,this.anchor))};
var UDd=function(a){var b=a.getPositionStrategy();b.positionChanges.subscribe(function(c){a.ngZone.run(function(){a.pointerPosition=RDd(a.customPositions,a.anchor,c.connectionPair);a.changeDetectorRef.markForCheck()})});return b};iZ.prototype.isVisible=function(){return!!this.overlayRef};iZ.\u0275fac=function(a){return new (a||iZ)(Ve(fZ),Ve(Tz),Ve(eg),Ve(Rg),Ve(Cx),Ve(ODd))};
iZ.\u0275cmp=D({type:iZ,selectors:[["onedev-feature-tooltip"]],viewQuery:function(a,b){a&1&&hg(TDd,5);if(a&2){var c;lg(c=mg())&&(b.templateRef=c.first)}},inputs:{tooltipId:"tooltipId",open$:"open$",customPositions:"customPositions",widthOffset:"widthOffset",color:"color",hasBackdrop:"hasBackdrop",actionBtnText:"actionBtnText",actionBtnIcon:"actionBtnIcon"},outputs:{dismiss:"dismiss",beforeShown:"beforeShown",action:"action"},standalone:!1,features:[jx],ngContentSelectors:["*"],decls:2,vars:0,consts:[["template",
""],[3,"action","dismiss","actionBtnText","actionBtnIcon","color","pointerPosition","widthOffset"]],template:function(a){a&1&&(bg(),E(0,Epb,2,5,"ng-template",null,0,Mg))},dependencies:[dZ],encapsulation:2,changeDetection:0});var jZ=function(){};jZ.\u0275fac=function(a){return new (a||jZ)};jZ.\u0275mod=$e({type:jZ});jZ.\u0275inj=Fc({});var kZ=function(){this.observedValues=new Map};kZ.prototype.getValue=function(a){a=window.localStorage.getItem(a);return ce(a?JSON.parse(a):null)};kZ.prototype.getValues=function(a){return ce(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))};kZ.prototype.setValue=function(a,b){window.localStorage.setItem(a,JSON.stringify(b));var c;(c=this.observedValues.get(a))==null||c.set(b);return ce(void 0)};
kZ.\u0275fac=function(a){return new (a||kZ)};kZ.\u0275prov=Dc({token:kZ,factory:kZ.\u0275fac,providedIn:"root"});var XDd=new dd("Feature Tooltip Controller Config"),lZ=function(a,b,c){this.config=a;this.keyValueStore=b;this.injector=c;this.clientStreamzService=this.config.enableUsageTracking?this.injector.get(RK):void 0;this.lastTooltipKey="onedev.lastTooltipTime."+this.config.productName;var d;this.config.shownMetricName=(d=this.config.shownMetricName)!=null?d:"tooltipShown";var e;this.config.hiddenMetricName=(e=this.config.hiddenMetricName)!=null?e:"tooltipHidden"},YDd=function(a){return a.keyValueStore.getValue(a.lastTooltipKey).pipe(A(function(b){return b===
null?!0:(new Date).getTime()-b>=a.config.cooldownMilliseconds}))};lZ.prototype.hideTooltip=function(a){var b;(b=this.clientStreamzService)==null||Y8c(b,this.config.hiddenMetricName,!0);oe([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue(ZDd(this,a),"HIDDEN")]).pipe(kf())};
var $Dd=function(a,b){a.keyValueStore.getValue(ZDd(a,b)).pipe(ue(function(c){return c!=="SHOWING"})).subscribe(function(){a.keyValueStore.setValue(ZDd(a,b),"HIDDEN")})},bEd=function(a,b,c){var d=c.map(function(e){return ZDd(a,e)});return a.keyValueStore.getValues(d).pipe(A(function(e){return aEd(a,b,c,e)}))};
lZ.prototype.showTooltip=function(a){var b;(b=this.clientStreamzService)==null||Y8c(b,this.config.shownMetricName,!0);return oe([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue(ZDd(this,a),"SHOWING")]).pipe(kf())};var aEd=function(a,b,c,d){return c.filter(function(e){e=d.get(ZDd(a,e));return e===b||b==="UNSEEN"&&e===null})},ZDd=function(a,b){return"onedev.tooltips."+a.config.productName+"."+b};
lZ.\u0275fac=function(a){return new (a||lZ)(Xc(XDd),Xc(kZ),Xc(ye))};lZ.\u0275prov=Dc({token:lZ,factory:lZ.\u0275fac,providedIn:jZ});var mZ=function(a){var b=this;this.featureTooltipService=a;this.showTooltip$=ce(void 0);this.destroyed$=new uf;this.getCurrentlyShowingTooltips=function(){return bEd(b.featureTooltipService,"SHOWING",cEd(b))}};
mZ.prototype.ngAfterContentInit=function(){var a=this,b=this.showTooltip$.pipe(yf(this.getCurrentlyShowingTooltips),yf(function(c){return c.length>0?ce(c[0]):ce(void 0).pipe(dEd(a),eEd(a))}),A(function(c){return fEd(a,c)}),ue(function(c){return!!c}),A(function(c){return c}),vf({bufferSize:1,refCount:!0}));gEd(this,b);b.pipe(zf(this.destroyed$)).subscribe(function(c){c.open$.next();a.featureTooltipService.showTooltip(c.tooltipId)})};mZ.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var dEd=function(a){return Sd(yf(function(){return YDd(a.featureTooltipService)}),ue(Rd))},eEd=function(a){return Sd(yf(function(){return bEd(a.featureTooltipService,"UNSEEN",cEd(a))}),ue(function(b){return b.length>0}),A(function(b){return b[0]}))},gEd=function(a,b){b.pipe(yf(function(c){return c.dismiss.pipe(kf(c.tooltipId))}),zf(a.destroyed$)).subscribe(function(c){a.featureTooltipService.hideTooltip(c)})},cEd=function(a){return a.tooltips.map(function(b){return b.tooltipId})},fEd=function(a,b){return a.tooltips.find(function(c){return c.tooltipId===
b})};mZ.\u0275fac=function(a){return new (a||mZ)(Ve(lZ))};mZ.\u0275cmp=D({type:mZ,selectors:[["onedev-feature-tooltip-controller"]],contentQueries:function(a,b,c){a&1&&ig(c,iZ,4);if(a&2){var d;lg(d=mg())&&(b.tooltips=d)}},inputs:{showTooltip$:"showTooltip$"},standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var nZ=function(a,b){this.anchorService=a;this.element=b;this.hideTooltipWhenAnchorNotVisible=!1};nZ.prototype.ngOnInit=function(){var a=this;this.hideTooltipWhenAnchorNotVisible?(this.intersectionObserver=new IntersectionObserver(function(b){m(b).next().value.isIntersecting?IDd(a.anchorService,a.tooltipId,a.element):JDd(a.anchorService,a.tooltipId)}),this.intersectionObserver.observe(this.element.nativeElement)):IDd(this.anchorService,this.tooltipId,this.element)};
nZ.prototype.ngOnDestroy=function(){JDd(this.anchorService,this.tooltipId);var a;(a=this.intersectionObserver)==null||a.disconnect()};nZ.\u0275fac=function(a){return new (a||nZ)(Ve(fZ),Ve(Hd))};nZ.\u0275dir=af({type:nZ,selectors:[["","onedevTooltipAnchor",""]],inputs:{tooltipId:[0,"onedevTooltipAnchor","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible"},standalone:!1});var oZ=function(a,b,c){var d=this;this.featureTooltipService=a;this.renderer=b;this.elementRef=c;this.preventTooltipFromShowing=function(){$Dd(d.featureTooltipService,d.tooltipId)}};oZ.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};oZ.prototype.ngOnDestroy=function(){var a;(a=this.unsubscribeFromEvent)==null||a.call(this)};
da.Object.defineProperties(oZ.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){var b;(b=this.unsubscribeFromEvent)==null||b.call(this);this.unsubscribeFromEvent=this.renderer.listen(this.elementRef.nativeElement,a,this.preventTooltipFromShowing)}}});oZ.\u0275fac=function(a){return new (a||oZ)(Ve(lZ),Ve(ci),Ve(Hd))};
oZ.\u0275dir=af({type:oZ,selectors:[["","onedevTooltipPreventer",""]],inputs:{tooltipId:[0,"onedevTooltipPreventer","tooltipId"],event:[0,"onedevPreventTooltipOn","event"]},standalone:!1});var hEd=new dd("TooltipAnchor"),iEd=new dd("TooltipPeventer"),pZ=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)};pZ.prototype.ngOnInit=function(){this.tooltipPreventer.ngOnInit();this.tooltipAnchor.ngOnInit()};
pZ.prototype.ngOnDestroy=function(){this.tooltipPreventer.ngOnDestroy();this.tooltipAnchor.ngOnDestroy()};da.Object.defineProperties(pZ.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}}});
pZ.\u0275fac=function(a){return new (a||pZ)(Ve(lZ),Ve(fZ),Ve(Hd),Ve(ci),Ve(hEd),Ve(iEd))};pZ.\u0275dir=af({type:pZ,selectors:[["","onedevFeatureTooltip",""]],inputs:{tooltipId:[0,"onedevFeatureTooltip","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible",event:[0,"onedevPreventTooltipOn","event"]},standalone:!1,features:[Gg([{provide:hEd,useValue:nZ},{provide:iEd,useValue:oZ}])]});var jEd=function(){this.className="gmat-subtitle-1 tooltip-title"};jEd.\u0275fac=function(a){return new (a||jEd)};jEd.\u0275dir=af({type:jEd,selectors:[["","onedevTooltipTitle",""]],hostVars:2,hostBindings:function(a,b){a&2&&xg(b.className)},standalone:!1});var Fpb=function(a,b){return[a,b]},qZ=function(){Z.apply(this,arguments);this.analytics=p(eQ);this.enrichmentApi=p(zO);this.enrichmentCategoryFridge=p(wP);this.attachmentEnrichmentFridge=p(AO);this.issueUserEventsService=p(lW);this.confirmationDialogService=p(dS);this.destroyRef=p(Ce);this.issuePermissionService=p($Q);this.documentationLinks=p(cS);this.canDeleteEnrichments$=new Mj(!1);this.enrichmentCategoryToContent=new Map;this.enrichmentCategoryToLoading=new Map;this.restrictedDialogContentHtml=
Bh("You are about to access enrichments for an attachment\n    marked as restricted. Access will be logged and audited.\n    You must delete any data used locally when finished with\n    business use. ");this.requiredDialogLearnMoreHtml=Eh("a",{href:zh(this.documentationLinks.getRestrictedAccessHelpLink()),target:"_blank"},"Learn More");this.restrictedDialogHtml=Ch([this.restrictedDialogContentHtml,this.requiredDialogLearnMoreHtml]);this.openTabs=new Set;this.categoryToRestriction=new Map;this.cdr=
p(bQ);this.featureTooltipRegistry=p(YY);this.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID="attachmentEnrichmentsFeatureTooltip";this.TOOLTIP_POSITIONS=gZ;this.showFeatureTooltip=this.featureTooltipRegistry.showTooltip("attachmentEnrichmentsFeatureTooltip");this.CATEGORY_INFO_HOVERCARD_CONFIG=Object.assign({},new OK,{position:[n8c]});this.someEnrichmentsRestricted=!1;this.categoryToActionMenuItems=new Map;this.hasReactedToEnrichment={};this.thumbsUpClickedForEnrichment={};this.thumbsDownClickedForEnrichment=
{}};Y(qZ,Z);qZ.\u0275dir=Z.\u0275dir;h=qZ.prototype;
h.ngOnInit=function(){var a=this;this.enrichmentCategoryToContent.clear();this.attachmentEnrichments.forEach(function(b){var c,d,e;a.categoryToRestriction.set(b.category,(e=(c=b.contentVerdict)==null?void 0:(d=c.piiVerdict)==null?void 0:d.severity)!=null?e:"NONE_DETECTED");var f,g;((f=b.contentVerdict)==null?void 0:(g=f.piiVerdict)==null?void 0:g.severity)!=="NONE_DETECTED"?a.someEnrichmentsRestricted=!0:a.enrichmentCategoryToContent.set(b.category,{content:b.content,formattedContent:b.formattedContent})});
this.issuePermissionService.hasAclToAdmin$.pipe(Tj(this.destroyRef)).subscribe(function(b){a.canDeleteEnrichments$.next(b);a.initializeMenuItems()})};h.initializeMenuItems=function(){var a=this;this.attachmentEnrichments.forEach(function(b){var c=[];a.canDeleteEnrichments$.value&&c.push({type:"action",action:function(){a.showDeleteAttachmentDialog(b.category)},label:"Delete enrichment..."});a.categoryToActionMenuItems.set(b.category,c)})};
h.showDeleteAttachmentDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete Enrichment",content:Bh("You are about to delete enrichment "+a+" on attachment "+this.attachmentId+". This action cannot be undone."),onConfirm:function(){fed(b.enrichmentApi,b.issueId,b.attachmentId,a).pipe(Tj(b.destroyRef)).subscribe(function(){b.logIssueUserEvent(b.issueId,"EVENT_TYPE_DELETE",b.attachmentId,a,"DELETE");b.attachmentEnrichmentFridge.poke(b.issueId)})}})};
h.openAllTabsCallback=function(a){var b=this,c;return y(function(d){if(!b.someEnrichmentsRestricted||a.every(function(e){return b.enrichmentCategoryToContent.has(e)}))return d.return(!0);c=qo();b.confirmationDialogService.open({title:"Access Enrichment",content:b.restrictedDialogHtml,onConfirm:function(){a.forEach(function(e){b.categoryToRestriction.get(e)!=="NONE_DETECTED"&&kEd(b,e)});c.resolve(!0)},onDismiss:function(){c.resolve(!1)}});return d.return(c.promise)})};
h.openTabCallback=function(a){var b=this;return y(function(c){return b.categoryToRestriction.get(a)==="NONE_DETECTED"?c.return(!0):c.return(b.openAllTabsCallback([a]))})};
var kEd=function(a,b){a.enrichmentCategoryToLoading.set(b,!0);ded(a.enrichmentApi,a.issueId,a.attachmentId,b,a.categoryToRestriction.get(b)).pipe(Tj(a.destroyRef)).subscribe(function(c){a.enrichmentCategoryToContent.set(b,{content:c.content,formattedContent:c.formattedContent});a.enrichmentCategoryToLoading.set(b,!1);a.cdr.detectChanges()})},lEd=function(a,b){[].concat(q(b)).filter(function(c){return!a.openTabs.has(c)}).forEach(function(c){a.openTabs.add(c);a.trackEvent("open",a.issueId+"_"+a.attachmentId+
"_"+c);a.logIssueUserEvent(a.issueId,"EVENT_TYPE_OPEN",a.attachmentId,c,"OPEN")});[].concat(q(a.openTabs)).filter(function(c){return!b.has(c)}).forEach(function(c){a.openTabs.delete(c);a.trackEvent("close",a.issueId+"_"+a.attachmentId+"_"+c);a.logIssueUserEvent(a.issueId,"EVENT_TYPE_CLOSE",a.attachmentId,c,"CLOSE")})};h=qZ.prototype;h.isLoading=function(a){var b;return(b=this.enrichmentCategoryToLoading.get(a))!=null?b:!1};
h.copyContent=function(a){var b,c=(b=this.enrichmentCategoryToContent.get(a.category))==null?void 0:b.content;c&&(navigator.clipboard.writeText(c),this.trackEvent("copy",Spb(a)),this.logIssueUserEvent(a.issueId,"EVENT_TYPE_COPY",a.attachmentId,a.category,"COPY"))};h.hasReacted=function(a){return this.hasReactedToEnrichment[a.category]?this.hasReactedToEnrichment[a.category]:!1};
h.thumbsUpClicked=function(a){return this.thumbsUpClickedForEnrichment[a.category]?this.thumbsUpClickedForEnrichment[a.category]:!1};h.thumbsDownClicked=function(a){return this.thumbsDownClickedForEnrichment[a.category]?this.thumbsDownClickedForEnrichment[a.category]:!1};
h.trackThumbsUp=function(a){this.hasReactedToEnrichment[a.category]=!0;this.thumbsUpClickedForEnrichment[a.category]=!0;this.trackEvent("accept",Spb(a));this.logIssueUserEvent(a.issueId,"EVENT_TYPE_THUMBS_UP",a.attachmentId,a.category,"THUMBS_UP")};h.trackThumbsDown=function(a){this.hasReactedToEnrichment[a.category]=!0;this.thumbsDownClickedForEnrichment[a.category]=!0;this.trackEvent("reject",Spb(a));this.logIssueUserEvent(a.issueId,"EVENT_TYPE_THUMBS_DOWN",a.attachmentId,a.category,"THUMBS_DOWN")};
h.logIssueUserEvent=function(a,b,c,d,e){e={issueId:a,attachmentId:c,category:d,feedbackType:e};var f=this.issueUserEventsService,g=new kW;c=(new bvd).setAttachmentId(c).setCategory(d);c=Wo(g,4,fvd,c);f.logIssueUserEvent(a,"FEATURE_ATTACHMENT_ANALYSIS",b,c).pipe(Tj(this.destroyRef)).subscribe();this.enrichmentApi.submitEnrichmentFeedback(e).pipe(Tj(this.destroyRef)).subscribe()};h.trackEvent=function(a,b){this.analytics.trackEvent("attachmentEnrichment",a,b)};
var mEd=function(a){return a.attachmentEnrichments.map(function(b){return b.category})},Hpb=function(a,b){return a.enrichmentCategoryFridge.watch(b).pipe(A(function(c){var d;return(d=c==null?void 0:c.displayName)!=null?d:b}),xf(b))},Ppb=function(a,b){return a.enrichmentCategoryFridge.watch(b).pipe(A(function(c){var d;return(d=c==null?void 0:c.description)!=null?d:""}),xf(""))};qZ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(qZ)))(b||qZ)}}();
qZ.\u0275cmp=D({type:qZ,selectors:[["b-attachment-enrichments"]],inputs:{issueId:"issueId",attachmentId:"attachmentId",attachmentEnrichments:"attachmentEnrichments"},standalone:!1,features:[Gg([bQ]),Ef],decls:5,vars:7,consts:[["categoryInfoCard","onedevHovercard"],[3,"onedevFeatureTooltip","hideTooltipWhenAnchorNotVisible"],["expandableTabsTitle","Attachment Analysis",3,"expandedTabsChanged","tabKeys","ariaLabel","openTabCallback","openAllTabsCallback"],[3,"key","ariaLabel"],[3,"customPositions",
"tooltipId"],["onedevTooltipTitle",""],["expandable-tab-header",""],["expandable-tab-content",""],[1,"attachment-enrichment-table"],[1,"attachment-enrichment-headers"],[1,"attachment-enrichment-header-email"],[3,"model"],["svgIcon","info",1,"icon-xs",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],[1,"attachment-enrichment-header-date-icons"],[1,"attachment-enrichment-header-date"],["mode","datetime",
3,"timestamp"],["type","button","mat-icon-button","","matTooltip","Copy","aria-label","copy attachment enrichment content",1,"feedback-button","copy-attachment-enrichment",3,"click"],["svgIcon","copy",1,"icon-xs"],["type","button","mat-icon-button","","aria-label","thumb up",1,"feedback-button","thumbs-up-attachment-enrichment",3,"click","disabled"],["svgIcon","thumb_up_24px",1,"icon-xs"],["type","button","mat-icon-button","","aria-label","thumb down",1,"feedback-button","thumbs-down-attachment-enrichment",
3,"click","disabled"],["svgIcon","thumb_down_24px",1,"icon-xs"],[1,"bv2-issue-attachment-overflow-menu"],[1,"attachment-enrichment-content"],["colspan","2"],[1,"issue-detail-actions",3,"menuItems","buttonLabel","matTooltip"],[3,"content"]],template:function(a,b){a&1&&(F(0,Gpb,5,5,"onedev-feature-tooltip-controller"),K(1,"div",1)(2,"expandable-tabs",2),N("expandedTabsChanged",function(c){return lEd(b,c)}),Nf(3,Rpb,3,2,"expandable-tab",3,Mf),L()());a&2&&(G(b.showFeatureTooltip?0:-1),B(),I("onedevFeatureTooltip",
b.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID)("hideTooltipWhenAnchorNotVisible",!0),B(),I("tabKeys",mEd(b))("ariaLabel","Attachment enrichments for attachment id "+b.attachmentId)("openTabCallback",b.openTabCallback.bind(b))("openAllTabsCallback",b.openAllTabsCallback.bind(b)),B(),Of(b.attachmentEnrichments))},dependencies:[Jy,NY,kR,mT,nT,rV,bZ,ZY,$Y,cZ,kB,iB,vK,nA,KK,SK,iZ,mZ,pZ,jEd,$U,cU,Tx],styles:[".attachment-enrichment-table[_ngcontent-%COMP%]{border:1px solid var(--hairline);border-collapse:collapse;border-radius:4px}tr.attachment-enrichment-headers[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:1px solid var(--hairline);padding:0px 10px;color:var(--muted);font-size:95%}tr.attachment-enrichment-headers[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .attachment-enrichment-header-email[_ngcontent-%COMP%]{text-align:left}.attachment-enrichment-header-date-icons[_ngcontent-%COMP%]{text-align:right}.attachment-enrichment-header-date-icons[_ngcontent-%COMP%]   .attachment-enrichment-header-date[_ngcontent-%COMP%]{padding-right:4px}tr.attachment-enrichment-content[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:var(--c100);padding:10px}.feedback-button[_ngcontent-%COMP%]{width:fit-content}.feedback-button[_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}mat-icon[_ngcontent-%COMP%]{vertical-align:middle;padding:0px 4px}[_nghost-%COMP%]     mat-icon{color:var(--muted)}"]});var rZ=function(){this.documentationLinks=p(cS);this.dateFormatter=p(vS);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.retentionModel=Kbd;this.label="Restricted";this.contentType="item"};rZ.prototype.getIcon=function(){return nEd(this)?"delete-alert":"delete-clock"};rZ.prototype.getRetentionPeriod=function(){return this.retentionState&&this.retentionState.retentionPeriod?BTa(Math.floor(this.retentionState.retentionPeriod.seconds*1E3/864E5)):""};
var Upb=function(a){var b=new Date(864E13);return a.retentionState&&a.retentionState.scheduledDeletionTime?new Date($n(a.retentionState.scheduledDeletionTime)||b):b},nEd=function(a){return a.retentionState&&a.retentionState.scheduledDeletionTime?$n(a.retentionState.scheduledDeletionTime)-Date.now()<12096E5:!1};rZ.\u0275fac=function(a){return new (a||rZ)};
rZ.\u0275cmp=D({type:rZ,selectors:[["b-restricted-chip"]],inputs:{label:"label",contentType:"contentType",retention:"retention",retentionState:"retentionState"},standalone:!1,decls:7,vars:5,consts:[["bubble",""],["popup",""],[1,"bubble",3,"panelTemplate"],["tabindex","0","aria-label","Display retention information","aria-haspopup","dialog","role","button",1,"chip","nowrap",3,"focus","blur"],[1,"icon-s",3,"svgIcon"],[1,"popup"],["target","_blank",3,"rel"]],template:function(a,b){if(a&1){var c=t();
K(0,"xap-bubble",2,0)(2,"div",3);N("focus",function(){u(c);var d=qg(1);return v(d.toggle(!0))})("blur",function(){u(c);var d=qg(1);return v(d.toggle(!1))});M(3,"mat-icon",4);Q(4);L();E(5,aqb,8,4,"ng-template",null,1,Mg);L()}a&2&&(a=qg(6),I("panelTemplate",a),B(2),wg("warning",nEd(b)),B(),I("svgIcon",b.getIcon()),B(),S(" ",b.label," "))},dependencies:[Jy,QV,Wx],styles:[".chip[_ngcontent-%COMP%]{display:inline-block;border-radius:1em;font-size:.8125rem;font-weight:400;line-height:1.8em;padding:0 .6em;margin:0 .6em;background-color:#e8eaed;background-color:var(--chip-bg);color:#202124;color:var(--text-high-contrast)}.chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:text-top}.chip.warning[_ngcontent-%COMP%]{background-color:#fcad70;background-color:var(--expiring-bg);color:rgba(0,0,0,.7);color:var(--expiring-text)}.popup[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{line-height:1.5em !important}.popup[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:last-child{margin-bottom:0}/*# sourceMappingURL=restricted_chip.css.map */"],
changeDetection:0});var cqb=vh(""),oEd=function(){this.port=this.iframe=null;this.deferredMessages=[]};oEd.prototype.load=function(){var a=this,b=pEd();this.iframe=dqb(b);qEd().then(function(){a.iframe&&document.body.appendChild(a.iframe)});return bqb(this.iframe,b).then(function(c){for(a.port=c.ports[0];a.deferredMessages.length>0;)c=a.deferredMessages.shift(),a.port.postMessage(c.data,c.transferables)})};
oEd.prototype.exec=function(a,b){var c=this;return new Promise(function(d,e){var f=new MessageChannel;f.port1.onmessage=function(x){f.port1.onmessage=null;x=x.data;x.error!=null?e(new EvalError(x.error)):d(x.result)};for(var g=[],k=[],l=[],r=m(b!=null?b:[]),w=r.next();!w.done;w=r.next())w=w.value,g.push(w.name),k.push(w.value),w.transfer&&l.push(w.value);g={code:a,paramNames:g,values:k};c.port?c.port.postMessage(g,[f.port2].concat(q(l))):c.deferredMessages.push({data:g,transferables:[f.port2].concat(q(l))})})};
oEd.prototype.dispose=function(){this.iframe!=null&&(this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe),this.iframe=null)};var pEd=function(){var a=(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(16));return Array.prototype.join.call(a,".")},qEd=function(){return new Promise(function(a){document.readyState!="loading"?a():JB(document,"DOMContentLoaded",function(){a()})})};var rEd={useFilePicker:!1},sEd,sZ=function(a){this.options=a=a===void 0?rEd:a;tEd(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.sandbox=new oEd)};sZ.download=function(a,b,c,d){c=c===void 0?"":c;d=d===void 0?rEd:d;return y(function(e){if(e.nextAddress==1)return z(e,uEd(a,b,c,d),2);if(e.yieldResult)return e.return();sEd||(sEd=new sZ,sEd.init());return z(e,vEd(sEd,a,b,c),0)})};
sZ.prototype.init=function(){var a=this;return y(function(b){return a.sandbox==null?b.return():z(b,a.sandbox.load(),0)})};sZ.prototype.download=function(a,b,c){c=c===void 0?"":c;var d=this;return y(function(e){return e.nextAddress==1?z(e,uEd(a,b,c,d.options),2):e.yieldResult?e.return():z(e,vEd(d,a,b,c),0)})};
var vEd=function(a,b,c,d){d=d===void 0?"":d;var e,f;return y(function(g){switch(g.nextAddress){case 1:e=b instanceof Blob?b:new Blob([b],{type:d});if(typeof navigator.msSaveOrOpenBlob!=="function"){g.jumpTo(2);break}navigator.msSaveOrOpenBlob(e,c);return z(g,eqb(),3);case 3:return g.return();case 2:if(!Fa()||$aa(pba(),16)>=0||!fba()&&(!Da("iPad")&&!Da("iPhone")||gba()||fba()||(Ea()?0:Da("Coast"))||eba()||!Da("AppleWebKit"))){g.jumpTo(4);break}f=new FileReader;f.onload=function(){var k=Vs(document,
"A"),l=zh(String(f.result));Dra(k,l);k.download=c;k.click()};f.readAsDataURL(e);return z(g,eqb(),5);case 5:return g.return();case 4:return a.sandbox==null&&(a.sandbox=new oEd,a.sandbox.load()),z(g,a.sandbox.exec('var url=URL.createObjectURL(blob);var a=document.createElement("a");if(!("download" in a)){throw new Error("Downloading not supported on this browser");}a.href=url;a.download=filename;document.body.appendChild(a);a.click();setTimeout(function(){document.body.removeChild(a);URL.revokeObjectURL(url);},250);',
[{name:"blob",value:e,transfer:!1},{name:"filename",value:c,transfer:!1}]),6);case 6:return z(g,eqb(),0)}})},uEd=function(a,b,c,d){c=c===void 0?"":c;d=d===void 0?rEd:d;var e;return y(function(f){switch(f.nextAddress){case 1:if(!tEd(d))return f.return(!1);Wd(f,2);return z(f,wEd(a,b,c),4);case 4:dt(f,3);break;case 2:e=$d(f);if(e instanceof DOMException&&e.name==="SecurityError")return f.return(!1);throw e;case 3:return f.return(!0)}})},tEd=function(a){a=a===void 0?rEd:a;return a.useFilePicker&&!!window.showSaveFilePicker},
wEd=function(a,b,c){c=c===void 0?"":c;var d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:var l={suggestedName:b},r;(r=b.match(/\..+$/))?(r=r[0],r=r.length>16?null:r):r=null;if(r){var w={},x=c;x=x.replace(/;[^]*/,"");l.types=[{description:"*"+r,accept:(w[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(x)?x:"*/*"]=[r],w)}]}d=l;Wd(k,2);return z(k,window.showSaveFilePicker(d),4);case 4:e=k.yieldResult;dt(k,3);break;case 2:f=$d(k);if(f instanceof DOMException&&f.name==="AbortError")return k.return();
throw f;case 3:return z(k,e.createWritable(),5);case 5:return g=k.yieldResult,Yd(k,6),z(k,g.write(a),6);case 6:return Xd(k),z(k,g.close(),9);case 9:Zd(k,7);break;case 7:return k.return()}})};sZ.prototype.dispose=function(){this.sandbox!=null&&this.sandbox.dispose()};xw("SafeDownloader",sZ);var tZ=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(uu);this.documentationLinks=p(cS);this.domSafe=p(mR);this.matDialogService=p(UA);this.attachmentService=p(VY);this.cdr=p(bQ,{self:!0});this.differs=p(Gx);this.paths=p(hW);this.userAccess=p(DP);this.butterBar=p(UN);this.errorHandler=p(pO);this.analytics=p(eQ);this.clipboard=p(oR);this.issueCommentDialogsService=p(vY);this.issuePermissionService=p($Q);this.editIssueService=p(GS);this.snackBar=p(rB);this.trackerHelpers=p(kS);this.attachmentCountService=
p(XY);this.attachmentsApi=p(nS);this.attachmentEnrichmentFridge=p(AO);this.routeParams=p(wS);this.attachmentEnrichments$=ne(function(){return a.activeSession.isInternalSession()?a.attachmentEnrichmentFridge.watch(a.issueId):ce(void 0)}).pipe(A(function(b){return(b==null?void 0:b.enrichments.filter(function(c){var d,e;return c.attachmentId===((d=a.attachment)==null?void 0:(e=d.attachmentId)==null?void 0:e.toString())}))||[]}));this.hasViewAccess=!1;this.actionMenuItems=[];this.attachmentRetentionSaveInProgress=
!1;this.enableInactiveUserContent=this.activeSession.getFlag("enableInactiveUserContent");this.enableInlineImageAttachments=this.activeSession.getFlag("enableInlineImageAttachments");this.canDeleteAttachment$=new Mj(!1);this.canUndeleteAttachment$=new Mj(!1)};Y(tZ,Z);tZ.\u0275dir=Z.\u0275dir;h=tZ.prototype;
h.ngOnInit=function(){var a=this;this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create());var b;this.attachmentRetentionOverride=(b=this.attachment)==null?void 0:b.piiRetention;this.initializeMenuItems();xEd(this);this.issuePermissionService.canDeleteAttachment$(this.attachment,this.attachmentUploader).pipe(zf(this.destroyed$)).subscribe(function(c){a.canDeleteAttachment$.next(c);a.initializeMenuItems()});this.issuePermissionService.canUndeleteAttachment$(this.attachment,
this.attachmentUploader).pipe(zf(this.destroyed$)).subscribe(function(c){a.canUndeleteAttachment$.next(c);a.initializeMenuItems()});this.destroyed$.subscribe(function(){var c;((c=a.attachment)==null?0:c.attachmentId)&&a.attachmentCountService.inlinedAttachmentSet.delete(a.attachment.attachmentId)})};h.ngDoCheck=function(){this.attachmentDiffer&&this.attachmentDiffer.diff(this.attachment)&&this.initializeMenuItems()};
h.ngOnChanges=function(a){this.setHasViewAccess();a.attachment&&this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create())};
h.initializeMenuItems=function(){var a=this;this.actionMenuItems=[];var b;if((b=this.attachment)==null?0:b.attachmentId)this.canDeleteAttachment$.value&&this.actionMenuItems.push({type:"action",action:function(){a.showDeleteAttachmentDialog()},label:"Delete attachment..."}),this.canUndeleteAttachment$.value&&this.actionMenuItems.push({type:"action",action:function(){Znd(a.editIssueService,a.issueId,a.attachment)},label:"Restore attachment"});this.actionMenuItems.push({type:"action",action:function(){LBd(a.issueCommentDialogsService,
a.issueId,a.attachmentUploader===a.activeSession.getUserEmail(),a.attachment)},label:"Restriction settings..."});if(this.isRestricted()&&this.isActive()&&this.activeSession.isInternalSession()){var c=this.attachmentRetentionOverride==="COMPONENT_DEFAULT";this.actionMenuItems.push({type:"action",action:function(){var d=c?"INDEFINITE":"COMPONENT_DEFAULT";KBd(a.issueCommentDialogsService,"attachment",d).then(function(e){e&&yEd(a,d)})},label:c?"Match issue retention...":"Revert to component retention..."})}this.cdr.markForCheck()};
h.setHasViewAccess=function(){var a=this;this.isRestricted()?this.attachment==null?this.hasViewAccess=!1:(this.hasViewAccess=!1,EP(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b;a.cdr.detectChanges()})):this.hasViewAccess=!0};h.getFilename=function(){var a;return((a=this.attachment)==null?void 0:a.filename)||""};h.getSize=function(){var a;return((a=this.attachment)==null?void 0:a.length)||0};
var iqb=function(a,b){b=b===void 0?!0:b;var c;if((c=a.attachment)==null||!c.attachmentId)throw Error("Lf");if(a.enableInactiveUserContent){if(b)return Smd(a.attachmentsApi)+"/download/attachment/"+a.issueId+"/"+a.attachment.attachmentId+"?download=true";var d;return qs.viewAttachment.makeHref(a.issueId,a.attachment.attachmentId,(d=a.attachment.contentType)!=null?d:"")}c="action/issues/"+a.issueId.toString()+"/attachments/"+a.attachment.attachmentId.toString();a=a.paths.getBaseUrl()+"/"+c;return dHc(a,
"download",b)};tZ.prototype.isActive=function(){var a;if((a=this.attachment)==null||!a.attachmentId||this.attachment.attachmentId==="0")return!1;var b;return((b=this.attachment.entityStatus)==null?void 0:b.status)==="ACTIVE"};tZ.prototype.viewAttachment=function(){this.isRestricted()?zEd(this,!1):this.domSafe.openInNewTab(iqb(this,!1))};
var kqb=function(a){var b,c=(b=a.attachment)==null?void 0:b.attachmentId,d,e=(d=a.attachment)==null?void 0:d.filename,f,g=(f=a.attachment)==null?void 0:f.contentType;a.isRestricted()?zEd(a,!0):a.enableInactiveUserContent?a.subscriptions.add(Tmd(a.attachmentsApi,a.issueId,c.toString()).subscribe(function(k){k&&sZ.download(k,e,g)})):a.domSafe.openInNewTab(iqb(a,!0))};tZ.prototype.isRestricted=function(){return this.getRestrictionSeverity()!=="NONE_DETECTED"};
tZ.prototype.getRestrictionSeverity=function(){var a;return Rp((a=this.attachment)==null?void 0:a.contentVerdict)};tZ.prototype.getRestrictedLabel=function(){return qYa(this.getRestrictionSeverity())};var hqb=function(a){return(a=a.getRestrictionSeverity())?"bv2-restricted-content-limit-"+pYa(a):""},zEd=function(a,b){a.analytics.trackEvent("restrictedContent","viewRestrictedContent","attachment");a.matDialogService.open(UY,{width:"400px",data:{attachment:a.attachment,issueId:a.issueId,download:b}})};
tZ.prototype.showDeleteAttachmentDialog=function(){var a;(a=this.attachment)!=null&&a.attachmentId&&this.issueCommentDialogsService.showDeleteAttachmentDialog(this.issueId,this.attachment)};
var yEd=function(a,b){var c;(c=a.attachment)!=null&&c.attachmentId?(a.analytics.trackEvent("restrictedContent","updateRetention","attachment"),a.attachmentRetentionSaveInProgress=!0,a.attachmentService.updateRetention(a.issueId,a.attachment.attachmentId,b).pipe(zf(a.destroyed$)).subscribe({next:function(d){a.attachmentRetentionSaveInProgress=!1;a.attachment&&(a.attachment.piiRetention=d.piiRetention,a.attachment.piiRetentionState=d.piiRetentionState);Rr(a.butterBar,"Attachment retention updated",
4E3);a.attachmentRetentionOverride=b==="INDEFINITE"?"INDEFINITE":"COMPONENT_DEFAULT";a.initializeMenuItems();a.cdr.detectChanges()},error:function(){a.attachmentRetentionSaveInProgress=!1;qO(a.errorHandler,"Attachment retention update failed")}})):qO(a.errorHandler,"Attachment id is missing")},xEd=function(a){var b,c,d;y(function(e){(b=a.routeParams.downloadAttachment)&&b===((c=a.attachment)==null?void 0:c.attachmentId)&&(d=a.routeParams.download==="true",zEd(a,d));ae(e)})};
tZ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(tZ)))(b||tZ)}}();
tZ.\u0275cmp=D({type:tZ,selectors:[["b-attachment-viewer"]],inputs:{attachment:"attachment",issueId:"issueId",attachmentUploader:"attachmentUploader"},standalone:!1,features:[Gg([bQ]),Ef,jx],decls:19,vars:12,consts:[["restrictedAccessHelp",""],[1,"bv2-issue-attachment-image"],["name","file-present","size","large",1,"bv2-issue-attachment-icon"],[1,"flex-kids-y"],[1,"bv2-issue-attachment-filename"],[1,"bv2-issue-event-attachment-info","flex-kids-x","align-items-center"],[3,"label","retentionState",
"contentType"],[1,"bv2-issue-attachment-overflow-menu"],[1,"flex-kids-x","align-items-center"],[3,"class"],[3,"panelTemplate"],[1,"bv2-restricted-access-help-icon","help-icon"],[2,"display","none",3,"issueId","attachmentId","mimeType"],[1,"issue-detail-actions",3,"menuItems","buttonLabel","matTooltip"],[3,"customHandler","isGreyedOut","displayName","linkUrl","linkEnabled","useCustomHandler"],[1,"bv2-issue-attachment-link","icon-button-container"],["type","button","aria-label","Copy link to attachment",
"color","primary","mat-icon-button","","matTooltip","Copy link to attachment","matTooltipPosition","above",1,"bv2-issue-copy-attachment-link",3,"click"],["name","link","size","small"],["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"],[3,"issueId","attachmentId","attachmentEnrichments"]],template:function(a,b){a&1&&(K(0,"div",1),M(1,"b-icon",2),L(),K(2,
"div",3)(3,"div",4),Q(4),K(5,"span",5),F(6,fqb,1,3,"b-restricted-chip",6),F(7,gqb,2,3,"span",7),L()(),K(8,"div",8),Q(9),F(10,jqb,2,8,"span",9),F(11,lqb,5,8),K(12,"xap-bubble",10),F(13,mqb,3,3,"span",11),E(14,nqb,4,1,"ng-template",null,0,Mg),L(),F(16,oqb,1,3,"attachment-preview",12),L(),F(17,qqb,1,1),T(18,"async"),L());if(a&2){var c;a=qg(15);B(4);S(" ",b.getFilename()," ");B(2);G(b.isRestricted()?6:-1);B();G(b.actionMenuItems.length>0?7:-1);B(2);S(" ",K$a(b.getSize())," ");B();var d;var e=b.isActive()&&
VQa((d=b.attachment)==null?void 0:d.contentType);G(e?10:-1);B();G(b.isActive()?11:-1);B();I("panelTemplate",a);B();G(b.isRestricted()&&!b.hasViewAccess?13:-1);B(3);var f,g,k;if(d=!(!(b.enableInlineImageAttachments&&b.hasViewAccess&&b.isActive()&&((f=b.attachment)==null?0:f.contentType)&&((g=b.attachment)==null?0:g.contentType.startsWith("image/")))||((k=b.attachment)==null?0:k.contentType.startsWith("image/svg")))){var l;((l=b.attachment)==null?0:l.attachmentId)?(f=b.attachmentCountService,g=b.attachment.attachmentId,
f.inlinedAttachmentSet.has(g)?f=!0:f.getCount()<12?(f.inlinedAttachmentSet.add(g),f=!0):f=!1):f=!1;d=f}G(d?16:-1);B();G((c=U(18,10,b.attachmentEnrichments$))?17:-1,c)}},dependencies:[qZ,WY,Jy,NY,EDd,sT,kB,iB,vK,nA,rZ,QV,Tx],styles:[".icon-button-container[_ngcontent-%COMP%]{--mat-icon-button-touch-target-display: none;margin-bottom:2px}.icon-button-container[_ngcontent-%COMP%]   .mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{--mdc-icon-button-state-layer-size: 36px;--mat-icon-button-state-layer-size: 36px;width:var(--mat-icon-button-state-layer-size);height:var(--mat-icon-button-state-layer-size);padding:6px}"],
changeDetection:0});var AEd="monitoring.corp.google.com irm.corp.google.com rollouts.corp.google.com nexus.corp.google.com sherlog analog nexus rpcstudio".split(" ").map(function(a){return a.toLowerCase()}),uZ=function(){var a=this;this.activeSession=p(uu);this.contextSensitiveRegistry=p(XQ);this.issueFullFridge=p(gQ);this.eventsForIssueFridge=p(NP);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(nf());this.issue$=this.issueId$.pipe(yf(function(b){return b?a.issueFullFridge.watch(b):ce(void 0)}));this.issueDescription$=
this.issueId$.pipe(yf(function(b){return b?a.eventsForIssueFridge.watch(b):ce(void 0)}),A(function(b){var c;return(b==null?0:(c=b.events)==null?0:c.length)&&b.events.length>0&&b.events[0].commentNumber&&b.events[0].commentNumber>-1?b.events[0]:void 0}));this.doesDescriptionContainKeyword$=this.issueDescription$.pipe(A(function(b){var c;if(c=!(b==null||!b.unlinkifiedComment))a:{if(b=b.unlinkifiedComment){b=b.toLowerCase();c=m(AEd);for(var d=c.next();!d.done;d=c.next())if(b.includes(d.value)){c=!0;
break a}}c=!1}return c}));this.isIssueComponentInGppLlmChatComponentAllowlist$=this.issue$.pipe(A(function(b){var c;if(!(b==null?0:(c=b.snapshot[0])==null?0:c.componentId))return!1;b=b.snapshot[0].componentId;return a.activeSession.getGppLlmChatComponentAllowlist().has(String(b))}));this.isLlmChatEnabled$=this.isGppLlmChatEnabled$=this.activeSession.isInternalSession()&&this.activeSession.getFlag("enableGppLlmChat")?ie([this.isIssueComponentInGppLlmChatComponentAllowlist$,this.doesDescriptionContainKeyword$]).pipe(A(function(b){var c=
m(b);b=c.next().value;c=c.next().value;return b&&c})):ce(!1);this.contextValuesForDuckieRag$=this.issueId$.pipe(A(function(b){var c=[(new xA).setName("application_name").setStringValue("Buganizer"),(new xA).setName("application_description").setStringValue("Buganizer is an internal tool for tracking issues.")];b&&c.push((new xA).setName("page_specific_context").setStringValue("The user is viewing Buganizer issue "+b+". Use tools to obtain information about the issue."));b=new wA;var d=b.setValuesList,
e=(new xA).setName("page_detail").setDescription("Information about the webpage the user is calling the agent from.\nThis is relevant because we can make different assumptions about the user's implied intents and topics based on the application they're in.");c=(new wA).setValuesList(c);c=Wo(e,3,yA,c);return d.call(b,[c])}))};uZ.\u0275fac=function(a){return new (a||uZ)};uZ.\u0275prov=Dc({token:uZ,factory:uZ.\u0275fac,providedIn:"root"});var BEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,BEd.messageId)};Y(BEd,W);h=BEd.prototype;h.getIssueIdsList=function(){return Qw(this,1,1,jb)};h.getIssueIdsList_asString=function(){return Qm(this,1,jb)};h.setIssueIdsList=function(a){return tr(this,1,a,jb)};h.addIssueIds=function(a){return $w(this,1,a,void 0,jb)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Nb,jb,1)};BEd.messageId="tailwind.BatchGetIssueRunStatusRequest";var lt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,lt.messageId)};Y(lt,W);lt.prototype.getIssueId=function(){return pn(this,1,void 0,jb)};lt.prototype.getIssueId_asString=function(){return tn(this,1,void 0,jb)};lt.prototype.setIssueId=function(a){return vn(this,1,a,void 0,jb)};lt.prototype.getRunId=function(){return ui(this,2,void 0,jb)};lt.messageId="tailwind.IssueRunStatus";var CEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,CEd.messageId)};Y(CEd,W);CEd.messageId="tailwind.BatchGetIssueRunStatusResponse";var vZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vZ.messageId)};Y(vZ,W);vZ.prototype.getIssueId=function(){return pn(this,1,void 0,jb)};vZ.prototype.getIssueId_asString=function(){return tn(this,1,void 0,jb)};vZ.prototype.setIssueId=function(a){return vn(this,1,a,void 0,jb)};vZ.messageId="tailwind.CreateRunRequest";var gt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,gt.messageId)};Y(gt,W);gt.prototype.getRunId=function(){return ui(this,1,void 0,jb)};gt.prototype.getIssueId=function(){return pn(this,2,void 0,jb)};gt.prototype.getIssueId_asString=function(){return tn(this,2,void 0,jb)};gt.prototype.setIssueId=function(a){return vn(this,2,a,void 0,jb)};gt.messageId="tailwind.RunMetadata";var DEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,DEd.messageId)};Y(DEd,W);DEd.messageId="tailwind.GetIssueEligibilityResponse";var wZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,wZ.messageId)};Y(wZ,W);wZ.prototype.getIssueId=function(){return pn(this,1,void 0,jb)};wZ.prototype.getIssueId_asString=function(){return tn(this,1,void 0,jb)};wZ.prototype.setIssueId=function(a){return vn(this,1,a,void 0,jb)};wZ.messageId="tailwind.RetryRunRequest";var wqb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,wqb.messageId)};Y(wqb,W);wqb.messageId="tailwind.RunResultsValidation";var ht=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ht.messageId)};Y(ht,W);ht.prototype.getEntriesList=function(){return Cm(this,1,Ci(),jb)};ht.prototype.getEntries=function(a){return Uw(this,1,a,jb)};ht.messageId="tailwind.RunSummarySection";var EEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,EEd.messageId)};Y(EEd,W);EEd.messageId="tailwind.RunSummary";var kt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,kt.messageId)};Y(kt,W);kt.prototype.getName=function(){return ui(this,1,void 0,jb)};kt.prototype.setName=function(a){return oj(this,1,a,jb)};kt.prototype.hasName=function(){return im(this,1,jb)};kt.prototype.getNameOrUndefined=function(){return Sw(this,1,jb)};kt.messageId="tailwind.RunTrajectoryStepFunctionCall";var jt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,jt.messageId)};Y(jt,W);jt.prototype.getText=function(){return ui(this,1,void 0,jb)};jt.prototype.setText=function(a){return oj(this,1,a,jb)};jt.prototype.hasText=function(){return im(this,1,jb)};jt.messageId="tailwind.RunTrajectoryStep";var it=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,it.messageId)};Y(it,W);it.prototype.getPrompt=function(){return ui(this,1,void 0,jb)};it.messageId="tailwind.RunTrajectory";var xZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xZ.messageId)};Y(xZ,W);xZ.prototype.getSummary=function(){return X(this,EEd,1,jb)};xZ.prototype.hasSummary=function(){return xi(this,EEd,1,jb)};xZ.messageId="tailwind.RunResults";var FEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,FEd.messageId)};Y(FEd,W);h=FEd.prototype;h.getMetadata=function(){return X(this,gt,1,jb)};h.getMutableMetadata=function(){return Ii(this,gt,1,void 0,jb)};h.setMetadata=function(a){Mi(this,gt,1,a,jb)};h.hasMetadata=function(){return xi(this,gt,1,jb)};h.getResults=function(){return X(this,xZ,3,jb)};h.hasResults=function(){return xi(this,xZ,3,jb)};FEd.messageId="tailwind.Run";var yZ=function(){this.executor=p(bO)};yZ.prototype.getIssueEligibility=function(a){return this.executor.get({url:"action/tailwind/eligibility/"+a,responseConstructor:DEd}).pipe(A(tqb))};yZ.prototype.createRun=function(a){return this.executor.post({url:"action/tailwind/create_run",body:(new vZ).setIssueId(a),responseConstructor:gt}).pipe(A(sqb))};
yZ.prototype.retryRun=function(a){var b=this.executor,c=b.post;var d=(new wZ).setIssueId(a.issueId);d=oj(d,2,a.userInstructions,jb);a=oj(d,3,a.previousRunId,jb);return c.call(b,{url:"action/tailwind/retry_run",body:a,responseConstructor:gt}).pipe(A(sqb))};
var GEd=function(a,b){return a.executor.get({url:"action/tailwind/get_run/"+encodeURIComponent(b),responseConstructor:FEd}).pipe(A(xqb))},HEd=function(a,b){b=(new BEd).setIssueIdsList(b);return a.executor.post({url:"action/tailwind/batch_get_run_statuses",body:b,responseConstructor:CEd}).pipe(A(Aqb))};yZ.\u0275fac=function(a){return new (a||yZ)};yZ.\u0275prov=Dc({token:yZ,factory:yZ.\u0275fac,providedIn:"root"});var IEd=function(a){this.maxEntries=a;this.dataStore=new Map};IEd.prototype.getKeys=function(){return Array.from(this.dataStore.keys())};
var JEd=function(a,b){for(a.dataStore.has(b)&&a.dataStore.delete(b);a.dataStore.size>=a.maxEntries;)a.dataStore.delete(a.dataStore.keys().next().value);a.dataStore.set(b,void 0)},KEd=function(a){return Array.from(a.dataStore.keys()).join(",")},LEd=function(a,b){var c;b=(c=b==null?void 0:b.split(","))!=null?c:[];a.dataStore.clear();c=m(b);for(b=c.next();!b.done;b=c.next())a.dataStore.set(b.value,void 0)};IEd.prototype.hasKey=function(a){return this.dataStore.has(a)};var MEd={INITIAL:0,GENERATING:1,LOADING:2,GENERATION_SUCCESS:3,ERROR:4,GENERATION_SUCCESS_INELIGIBLE:5,GENERATION_FAILED_INELIGIBLE:6,HIDDEN:7,0:"INITIAL",1:"GENERATING",2:"LOADING",3:"GENERATION_SUCCESS",4:"ERROR",5:"GENERATION_SUCCESS_INELIGIBLE",6:"GENERATION_FAILED_INELIGIBLE",7:"HIDDEN"},zZ={},NEd=(zZ[0]={message:"Use AI to fix this issue"},zZ[1]={message:"Generating suggestion. It could take a while. Please check back later and refresh your page."},zZ[2]={message:"Loading AI suggested fix status."},
zZ[3]={message:"Fix ready for review."},zZ[4]={message:"AI was unable to fix this issue. You can try again on another issue."},zZ[5]={message:"A previously generated fix exists. This issue is not eligible for regenerating."},zZ[6]={message:"A previously failed generation exists. This issue is not eligible for regenerating."},zZ[7]={message:"Not eligible for AI fix."},zZ),AZ=function(){var a=this;this.activeSession=p(uu);this.tailwindApi=p(yZ);this.contextSensitiveRegistry=p(XQ);this.ignoredIssuesCache=
new IEd(100);this.pollingObservable=null;this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(A(Nm),nf(),vf({bufferSize:1,refCount:!0}));this.runForCurrentIssue$=new Mj(void 0);this.isEnabledForCurrentIssue$=this.issueId$.pipe(yf(function(c){return c&&a.activeSession.getFlag("enableTailwind")&&a.activeSession.isInternalSession()&&!a.ignoredIssuesCache.hasKey(c)?a.tailwindApi.getIssueEligibility(c).pipe(A(function(d){return d.eligibilityState==="ELIGIBLE_NOT_STARTED"||d.eligibilityState===
"EXISTING"||d.eligibilityState==="INELIGIBLE_EXISTING"}),gf(function(){return ce(!1)})):ce(!1)}),vf({bufferSize:1,refCount:!0}));var b=XUa("llm_suggested_bug_fix_ignored_issues")();LEd(this.ignoredIssuesCache,b!=null?b:void 0)},PEd=function(a,b){if(a.pollingObservable)return a.pollingObservable;a.pollingObservable=ne(function(){return GEd(a.tailwindApi,b)}).pipe(Af(function(c){c.metadata!==void 0&&a.runForCurrentIssue$.next(c)}),A(function(c){if(c.metadata===void 0)throw Error("Mf");return OEd(c)?
3:4}),Eqb(),gf(function(c){return c.message==="Not completed"?ce(1):ce(4)}),of(function(){a.pollingObservable=null}));return a.pollingObservable},QEd=function(a,b){return a.tailwindApi.getIssueEligibility(b).pipe(yf(function(c){switch(c.eligibilityState){case "INELIGIBLE":return ce(7);case "ELIGIBLE_NOT_STARTED":return ce(0);case "EXISTING":case "INELIGIBLE_EXISTING":return GEd(a.tailwindApi,c.runMetadata.runId).pipe(Af(function(d){d.metadata!==void 0&&a.runForCurrentIssue$.next(d)}),A(function(d){return d.metadata!==
void 0?OEd(d)?c.eligibilityState==="EXISTING"?3:5:c.eligibilityState==="EXISTING"?4:6:1}),gf(function(){return ce(4)}),xf(2));default:return ce(0)}}),lf(2),gf(function(){return ce(4)}))};AZ.prototype.createRun=function(a){return this.tailwindApi.createRun(a)};AZ.prototype.retryRun=function(a,b,c){return this.tailwindApi.retryRun({issueId:a,userInstructions:b,previousRunId:c})};var OEd=function(a){var b;a=Number((b=a.results)==null?void 0:b.oclNumber);return!Number.isNaN(a)&&a>0};
AZ.\u0275fac=function(a){return new (a||AZ)};AZ.\u0275prov=Dc({token:AZ,factory:AZ.\u0275fac,providedIn:"root"});var REd=function(){this.llmChatService=p(uZ);this.appEvents=p(UO);this.llmSuggestedBugFixService=p(AZ);this.showButton$=ie([this.llmChatService.isLlmChatEnabled$,this.llmSuggestedBugFixService.isEnabledForCurrentIssue$]).pipe(A(function(a){var b=m(a);a=b.next().value;b=b.next().value;return a&&!b}))};REd.prototype.openSidebar=function(){this.appEvents.openIssueDetailsPageSidebar.next()};REd.\u0275fac=function(a){return new (a||REd)};
REd.\u0275cmp=D({type:REd,selectors:[["llm-chat-open-button"]],standalone:!1,decls:2,vars:3,consts:["mat-stroked-button;;aria-label;Open chat sidebar;matTooltip;Open chat sidebar".split(";"),["mat-stroked-button","","aria-label","Open chat sidebar","matTooltip","Open chat sidebar",3,"click"],["svgIcon","chat_spark_24px","color","primary",1,"icon-s"]],template:function(a,b){a&1&&(F(0,Fqb,3,0,"button",0),T(1,"async"));a&2&&G(U(1,1,b.showButton$)?0:-1)},dependencies:[Jy,kB,gB,nA,Tx],encapsulation:2,
changeDetection:0});var SEd=function(){this.dialogRef=p(RA);this.documentationLinks=p(cS);this.data=p(TA);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc"};SEd.prototype.onNoClick=function(){this.dialogRef.close(!1)};SEd.\u0275fac=function(a){return new (a||SEd)};
SEd.\u0275cmp=D({type:SEd,selectors:[["b-restricted-confirmation-dialog"]],standalone:!1,decls:12,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank","aria-label","Learn more about restricted access",3,"rel"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","restricted-confirmation-dialog-cancel",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","dialog-primary-action","restricted-confirmation-dialog-confirm",
3,"mat-dialog-close"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1),L(),K(2,"div",1)(3,"p"),Q(4),K(5,"a",2),Q(6," Learn More "),L()()(),K(7,"div",3)(8,"button",4),N("click",function(){return b.onNoClick()}),Q(9," Cancel "),L(),K(10,"button",5),Q(11," Confirm "),L()());a&2&&(B(),yg(b.data.title),B(3),S(" ",b.data.content," "),B(),I("rel",b.EXTERNAL_LINK_REL),If("href",b.documentationLinks.getRestrictedAccessHelpLink(),Ne),B(5),I("mat-dialog-close",!0))},dependencies:[kB,gB,VA,XA,ZA,YA],encapsulation:2});var BZ=function(){this.dialog=p(UA);this.documentationLinks=p(cS);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.disabled=!1;this.onConfirm=new aQ};
BZ.prototype.openDialog=function(){var a=this;SA(this.dialog.open(SEd,{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()})};BZ.\u0275fac=function(a){return new (a||BZ)};
BZ.\u0275cmp=D({type:BZ,selectors:[["b-restricted-comment-placeholder"]],inputs:{disabled:"disabled"},outputs:{onConfirm:"onConfirm"},standalone:!1,decls:5,vars:3,consts:[["type","button","mat-stroked-button","","color","primary",1,"small","restricted-comment-load",3,"click","disabled"],["target","_blank","aria-label","Learn more about restricted access",3,"rel"]],template:function(a,b){a&1&&(K(0,"span")(1,"button",0),N("click",function(){return b.openDialog()}),Q(2," Show Restricted Content "),L(),
K(3,"a",1),Q(4," Learn More "),L()());a&2&&(B(),I("disabled",b.disabled),B(2),I("rel",b.EXTERNAL_LINK_REL),If("href",b.documentationLinks.getRestrictedAccessHelpLink(),Ne))},dependencies:[kB,gB],styles:[".mat-mdc-outlined-button[_ngcontent-%COMP%]{margin-right:1em}/*# sourceMappingURL=restricted_comment_placeholder.css.map */"],changeDetection:0});var CZ=function(){};CZ.\u0275fac=function(a){return new (a||CZ)};CZ.\u0275mod=$e({type:CZ});CZ.\u0275inj=Fc({imports:[WJ,WO,mB,wK]});var TEd=["commentActionsMenu"],UEd=["editDescription"],brb=function(){return[]},DZ=function(){Z.apply(this,arguments);var a=this;this.eventsForIssue=p(NP);this.userPreferencesManager=p(hR);this.issueFullFridge=p(gQ);this.issueReferenceResolver=p(LR);this.activeSession=p(uu);this.commentService=p(rS);this.errorHandler=p(pO);this.analytics=p(eQ);this.butterBar=p(UN);this.userAccess=p(DP);this.issueCommentDialogsService=p(vY);this.issuePermissionService=p($Q);this.commentHistoryDialogService=p(QY);this.dateFormatter=
p(vS);this.domSafe=p(mR);this.FormattingMode=Um;this.emailToUser=xm;this.id$=new uf(1);this.issue$=this.id$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}),vf({bufferSize:1,refCount:!0}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.firstEventOverride$=new Mj(void 0);this.firstEvent$=this.firstEventOverride$.pipe(yf(function(b){return b?ce(b):a.issue$.pipe(ue(Pm),A(function(c){if(c.description)var d=K0a(c.description,
c);else{var e,f;d={attachments:[],preDiffs:[],postDiffs:[],modifiedDate:IRa(en((f=(e=c.aggregatedData)==null?void 0:e.createdTimeMicros)!=null?f:0)),userPerformingActionUser:void 0,userPerformingAction:"<none>",commentVersion:void 0,version:void 0,commentLastModifiedAtDate:void 0,commentRedacted:void 0,commentContentVerdict:void 0,commentRetentionState:void 0,commentDeletionStatus:void 0,commentRetention:void 0,lastCommentEditorUser:void 0,commentEtag:void 0,commentNumber:void 0,isCommentEvent:!0,
unlinkifiedComment:"",formattingMode:void 0,isMajorEvent:!0,statusUpdate:void 0,taggedSummary:void 0,formattedComment:void 0,commentReactions:void 0,issueId:c.issueId}}return d}))})).pipe(vf({bufferSize:1,refCount:!0}));this.firstNote$=this.firstEvent$.pipe(A(function(b){return b}));this.hasDescription$=this.firstEvent$.pipe(A(function(b){return!!b&&QTa(b)}));this.isDisplayCommentFormatLiteral$=this.userPreferencesManager.isCommentDisplayOverrideSet$;this.formattingModeOverride$=new Mj(void 0);this.formattingMode$=
this.formattingModeOverride$.pipe(yf(function(b){return b?ce(b):a.firstEvent$.pipe(ue(Pm),A(function(c){var d;return(d=c.formattingMode)!=null?d:"PLAIN"}),nf())}));this.isRedacted$=this.firstEvent$.pipe(A(function(b){var c;return(c=b==null?void 0:b.commentRedacted)!=null?c:!1}));this.isDeleted$=this.firstEvent$.pipe(A(function(b){return(b==null?void 0:b.commentDeletionStatus)==="DELETED"}));this.shouldShowRestrictedPlaceholder$=ie([this.isRedacted$,this.isDeleted$]).pipe(A(function(b){var c=m(b);
b=c.next().value;c=c.next().value;return!(!b||c)}));this.isRestricted$=this.firstEvent$.pipe(A(function(b){return Rp(b==null?void 0:b.commentContentVerdict)}),A(function(b){if(b==null)return!1;switch(b){case "NONE_DETECTED":case "RESTRICTION_SEVERITY_UNSPECIFIED":return!1;case "RESTRICTED":case "RESTRICTED_PLUS":return!0;default:wb(b)}}));this.commentRetentionOverride$=this.firstEvent$.pipe(A(function(b){return b==null?void 0:b.commentRetention}));this.commentHistoryEnabled=this.activeSession.getFlag("enableCommentHistoryUi");
this.isShowCommentHistoryActionInMenu$=ie([this.firstEvent$,this.isRedacted$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return!(!(a.activeSession.getFlag("enableCommentHistoryUi")&&((b==null?void 0:b.commentVersion)||0)>0)||c)}));this.canEditComment$=this.firstEvent$.pipe(yf(function(b){return b?a.issuePermissionService.canEditComment$(b):ce(!1)}),vf({refCount:!0,bufferSize:1}));this.mayReadPii$=this.isRestricted$.pipe(yf(function(b){return b?VEd(a):ce(void 0)}));this.reporterUser$=
this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.snapshot[0])==null?void 0:c.reporterUser}));this.currentReporterEmail$=this.reporterUser$.pipe(A(function(b){return wm(b)||""}));this.allEvents$=this.id$.pipe(yf(function(b){return a.eventsForIssue.watch(b)}));this.attachments$=this.allEvents$.pipe(A(function(b){var c,d;return(d=b==null?void 0:(c=b.events[0])==null?void 0:c.attachments)!=null?d:[]}));this.initialReporterEmail$=this.allEvents$.pipe(A(function(b){return b==null?void 0:
b.events[0]}),A(function(b){b=m((b==null?void 0:b.postDiffs)||[]);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.name==="reporter")return c.newValue||"";return""}));this.onBehalfOfEmail$=ie([this.initialReporterEmail$,this.currentReporterEmail$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b||c}));this.originalAuthor$=this.allEvents$.pipe(A(function(b){return b==null?void 0:b.events[0]}),A(function(b){return b==null?void 0:b.userPerformingActionUser}));this.originalAuthorEmail$=
this.originalAuthor$.pipe(A(wm));this.isAuthorNotReporter$=ie([this.originalAuthorEmail$,this.onBehalfOfEmail$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b!==c}));this.lastNonCreatorCommentEditorUser$=ie([this.firstEvent$.pipe(ue(Pm)),this.onBehalfOfEmail$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d;if(c.next().value!==((d=b.lastCommentEditorUser)==null?void 0:d.emailAddress)){var e;return(e=b.lastCommentEditorUser)!=null?e:void 0}}));this.editedTooltipText$=
this.firstEvent$.pipe(ue(Pm),yf(function(b){var c="Last edited";b.lastCommentEditorUser&&(c+=" by "+tm(b.lastCommentEditorUser));return b.commentLastModifiedAtDate?lnd(a.dateFormatter,new Date(b.commentLastModifiedAtDate)).pipe(A(function(d){return c+" on "+d})):ce(c)}));this.formattingModeMenuItems$=this.formattingMode$.pipe(A(function(b){var c={};return c.PLAIN={type:"select",action:function(){a.formattingModeOverride$.next("PLAIN")},label:"Classic",selected:b==="PLAIN"},c.MARKDOWN={type:"select",
action:function(){a.formattingModeOverride$.next("MARKDOWN")},label:"Markdown",selected:b==="MARKDOWN"},c.LITERAL={type:"select",action:function(){a.formattingModeOverride$.next("LITERAL")},label:"Source",selected:b==="LITERAL"},c}));this.commentActionMenuItems$=ie({isDisplayCommentFormatLiteral:this.isDisplayCommentFormatLiteral$,formattingModeMenuItems:this.formattingModeMenuItems$,event:this.firstEvent$,canEditComment:this.canEditComment$,isRedacted:this.isRedacted$,isRestricted:this.isRestricted$,
isDeleted:this.isDeleted$,accessLevel:this.accessLevel$,isShowCommentHistoryActionInMenu:this.isShowCommentHistoryActionInMenu$,canDeleteComment:this.firstEvent$.pipe(yf(function(b){return a.issuePermissionService.canDeleteComment(b)})),canUndeleteComment:this.firstEvent$.pipe(yf(function(b){return a.issuePermissionService.canUndeleteComment(b)})),canSeeRestrictionSettings:this.issuePermissionService.hasAclToView$,canChangeCommentRetention:this.issuePermissionService.canChangeCommentRetention$,commentRetentionOverride:this.commentRetentionOverride$}).pipe(A(function(b){var c=
b.isDisplayCommentFormatLiteral;var d=b.formattingModeMenuItems;var e=b.event;var f=b.canEditComment;var g=b.isRedacted;var k=b.isRestricted;var l=b.isDeleted;var r=b.accessLevel;var w=b.isShowCommentHistoryActionInMenu;var x=b.canDeleteComment;var C=b.canUndeleteComment;var H=b.canSeeRestrictionSettings;var J=b.canChangeCommentRetention;b=b.commentRetentionOverride;var O=[];c||O.push(Object.assign({},PCd,{items:[d.PLAIN,d.MARKDOWN,d.LITERAL]}));f&&e&&O.push({type:"action",action:function(){Ysb(a.issueCommentDialogsService,
a.id,e).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit description...",disabled:g});w&&e&&O.push(Object.assign({},RCd,{action:function(){e.commentNumber&&a.showCommentHistoryDialog(e.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));e&&x&&O.push({type:"action",action:function(){e.commentEtag&&IBd(a.issueCommentDialogsService,a.id,1,e.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete description"});
e&&C&&O.push({type:"action",action:function(){FBd(a.issueCommentDialogsService,a.id,1).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore description"});e&&H&&O.push(Object.assign({},QCd,{action:function(){JBd(a.issueCommentDialogsService,a.id,e).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));if(k&&J&&!l&&a.activeSession.isInternalSession()){var R=b==="COMPONENT_DEFAULT";O.push({type:"action",action:function(){var V=R?"INDEFINITE":"COMPONENT_DEFAULT";
KBd(a.issueCommentDialogsService,"comment",V).then(function(ca){a.commentActionsMenu.actionsMenuIconButton.focus();ca&&a.updateCommentRetention(V)})},label:R?"Match issue retention...":"Revert to component retention..."})}Gnb({userIsExternal:!a.activeSession.isInternalSession(),issueIsExternal:r!=="INTERNAL"})&&O.push(Object.assign({},OCd,{action:function(){var V=Hnb({bugId:a.id,comment:1});a.domSafe.openInNewTab(V)}}));return O}))};Y(DZ,Z);DZ.\u0275dir=Z.\u0275dir;
var VEd=function(a){return a.id$.pipe(yf(function(b){return ne(function(){return EP(a.userAccess,"reader","issues/"+b+"/comments/1").catch(function(c){Xm("error: ",c);return!1})})}))};
DZ.prototype.updateCommentRetention=function(a){var b=this,c,d;y(function(e){if(e.nextAddress==1)return z(e,fe(b.firstEvent$),2);if(e.nextAddress!=3)return c=e.yieldResult,z(e,fe(b.id$),3);d=e.yieldResult;c&&!c.commentNumber&&qO(b.errorHandler,"Comment number is missing");b.analytics.trackEvent("restrictedContent","updateRetention","comment");d&&c&&b.commentService.updateRetention(d,c.commentNumber||0,a).pipe(zf(b.destroyed$)).subscribe({next:function(){b.eventsForIssue.poke(d);Rr(b.butterBar,"Comment retention updated",
4E3)},error:function(){qO(b.errorHandler,"Comment retention update failed")}});ae(e)})};
DZ.prototype.loadRestrictedComment=function(a,b){var c=this;this.analytics.trackEvent("restrictedContent","viewRestrictedContent","comment");var d=b.commentNumber||0,e=Rp(b.commentContentVerdict);a&&this.commentService.get(a,d,e).pipe(lf(1),zf(this.destroyed$)).subscribe(function(f){f=STa(b,f);c.firstEventOverride$.next(f)},function(f){var g;c.butterBar.showWarning("Error showing comment "+d+": "+((g=f.error)==null?void 0:g.message))})};
DZ.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.id,a,-1)};var Gqb=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,fe(a.firstEvent$),2);if(c.nextAddress!=3)return(b=c.yieldResult)?z(c,Ysb(a.issueCommentDialogsService,a.id,b),3):c.return();a.editDescriptionButton.focus();ae(c)})};da.Object.defineProperties(DZ.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)},get:function(){return Br(this.id$)}}});
DZ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(DZ)))(b||DZ)}}();
DZ.\u0275cmp=D({type:DZ,selectors:[["b-issue-description"]],viewQuery:function(a,b){a&1&&(hg(TEd,5),hg(UEd,5));if(a&2){var c;lg(c=mg())&&(b.commentActionsMenu=c.first);lg(c=mg())&&(b.editDescriptionButton=c.first)}},inputs:{id:"id"},standalone:!1,features:[Ef],decls:3,vars:3,consts:[["commentActionsMenu",""],["editDescription",""],["card",""],["lastEditorCard",""],["id","comment1",1,"flex-kids-x","comment1"],["svgIcon","description_24px","color","primary",1,"margin-xs-right","shrink-0"],[1,"flex-1-hemmed"],
[1,"b-description-heading","flex-kids-x"],[1,"flex-1"],[1,"uppercase","inline-block","margin-xs-right"],["type","button","mat-stroked-button","","color","primary","aria-label","Edit description",1,"update-button","small","margin-xs-right"],[1,"keep-focus-ring","first-comment",3,"routerLinkObj"],[1,"muted",3,"matTooltip"],["mode","datetime",1,"margin-s-right",3,"timestamp"],[1,"issue-detail-actions",3,"buttonLabel","menuItems"],[1,"display-block","margin-s-top"],[1,"description-deleted"],["type","button",
"mat-stroked-button","","color","primary","aria-label","Edit description",1,"update-button","small","margin-xs-right",3,"click"],[3,"onedevHovercardTrigger","model"],[3,"email"],[3,"user","showEmail"],[1,"keep-focus-ring","first-comment",3,"click","routerLinkObj"],[1,"critical-feature",3,"disabled"],[1,"critical-feature",3,"onConfirm","disabled"],[1,"muted","critical-feature"],[1,"critical-feature",3,"issueId","issueAccessLevel","note","formattingMode","canEditComment"],[1,"margin-s-y","border-top",
"bv2-issue-event-attachments"],[1,"margin-s-y","bv2-issue-event-attachment",3,"id"],[3,"issueId","attachment","attachmentUploader"]],template:function(a,b){a&1&&(F(0,crb,28,27,"div",4),T(1,"async"),Kf(2,drb,1,0,"b-spinner"));if(a&2){var c;G((c=U(1,1,b.firstEvent$))?0:2,c)}},dependencies:[NY,tZ,hU,Jy,VO,rV,KK,SK,hT,REd,kB,gB,vK,nA,BZ,cU,ZU,$U,eV,Tx],styles:["[_nghost-%COMP%]{display:block}.description-deleted[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-style:italic}.first-comment[_ngcontent-%COMP%]:hover{text-decoration:underline}"],
changeDetection:0});var WEd=function(){this.reactionState$=new uf(1);this.issueId="";this.emails$=this.reactionState$.pipe(ue(Pm),A(function(a){return a.recentResponders.map(wm).filter(function(b){return b!==""}).slice(0,5)}))};da.Object.defineProperties(WEd.prototype,{reactionState:{configurable:!0,enumerable:!0,set:function(a){a&&this.reactionState$.next(a)}}});WEd.\u0275fac=function(a){return new (a||WEd)};
WEd.\u0275cmp=D({type:WEd,selectors:[["b-comment-reaction-responders-card"]],inputs:{reactionState:"reactionState",issueId:"issueId",commentNumber:"commentNumber"},standalone:!1,decls:5,vars:2,consts:[["role","dialog","tabindex","0","aria-label","Comment Reactions Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),Nf(2,grb,5,2,"div",null,Mf),T(4,"async"),L()());a&2&&(B(2),Of(U(4,0,b.emails$)))},dependencies:[Tx],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto;max-width:400px}.normal-link.unstyled-button[_ngcontent-%COMP%]{color:#1a73e8;color:var(--link)}"]});var XEd=function(){};XEd.\u0275fac=function(a){return new (a||XEd)};XEd.\u0275cmp=D({type:XEd,selectors:[["b-comment-edit-timestamp-message"]],inputs:{event:"event"},standalone:!1,decls:1,vars:1,consts:[["mode","datetime",3,"timestamp"]],template:function(a,b){a&1&&F(0,irb,6,2);a&2&&G(b.event.commentLastModifiedAtDate?0:-1)},dependencies:[rV],encapsulation:2,changeDetection:0});var YEd=function(){this.texts=[]};YEd.prototype.getIssueId=function(a){return a.text};YEd.\u0275fac=function(a){return new (a||YEd)};YEd.\u0275cmp=D({type:YEd,selectors:[["b-tagged-text"]],inputs:{texts:"texts"},standalone:!1,decls:2,vars:0,consts:[[3,"email","withProfile"],[3,"href","issueId"]],template:function(a,b){a&1&&Nf(0,mrb,3,1,null,null,Lf);a&2&&Of(b.texts)},dependencies:[MR,wsd],encapsulation:2,changeDetection:0});var ZEd=function(){this.hotlists=p(lP);this.ROUTES=qs};ZEd.\u0275fac=function(a){return new (a||ZEd)};ZEd.\u0275cmp=D({type:ZEd,selectors:[["hotlist-link"]],inputs:{id:"id"},standalone:!1,decls:3,vars:4,consts:[[3,"href"]],template:function(a,b){a&1&&(K(0,"a",0),Q(1),T(2,"async"),L());if(a&2){var c;I("href",b.ROUTES.viewHotlist.makeHref(b.id),Ne);B();yg(((c=U(2,2,b.hotlists.watch(b.id)))==null?null:c.name)||b.id)}},dependencies:[Tx],encapsulation:2,changeDetection:0});var $Ed=function(){var a=this;this.componentFridge=p(RO);this.id$=new uf(1);this.name$=this.id$.pipe(nf(),yf(function(b){return a.componentFridge.watch(b).pipe(A(function(c){var d=c?(c=(d=c.componentPathInfo)==null?void 0:d.componentPathName)?c.join(" > "):b:b;return d}))}))};$Ed.prototype.ngOnChanges=function(){this.id$.next(this.id)};$Ed.\u0275fac=function(a){return new (a||$Ed)};
$Ed.\u0275cmp=D({type:$Ed,selectors:[["plain-component-path"]],inputs:{id:"id"},standalone:!1,features:[jx],decls:6,vars:4,consts:[["thisHovercard","onedevHovercard"],["cardBody",""],[3,"onedevHovercardTrigger"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"]],template:function(a,b){a&1&&(K(0,"span",2),Q(1),T(2,"async"),L(),K(3,"onedev-hovercard",null,0),E(5,prb,3,2,"ng-container",3),L());a&2&&(a=qg(4),I("onedevHovercardTrigger",a),B(),yg(U(2,2,b.name$)||b.id))},dependencies:[KK,
LK,SK,MK,SV,Tx],encapsulation:2,changeDetection:0});var gsb=function(a,b,c){return{diff:a,change:b,isLast:c}},EZ=function(){Z.apply(this,arguments);this.activeSession=p(uu);this.preferences=p(hR);this.emailToUser=xm;this.customFieldMap={};this.effortEnabled=!0;this.isStringArray=om;this.isLinkedItemArray=C1a;this.isIssueDiff=z1a;this.isHotlistDiff=A1a;this.DiffType=fcd};Y(EZ,Z);EZ.\u0275dir=Z.\u0275dir;
var aFd=function(a){if(a.internalDiffs.length<2)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((c=b.timestamp)!=null?c:0)<=((d=a.timestamp)!=null?d:0)},bFd=function(a){if(a.internalDiffs.length<2)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((c=b.timestamp)!=null?c:0)>=((d=a.timestamp)!=
null?d:0)};EZ.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(ue(Pm),zf(this.destroyed$)).subscribe(function(b){a.internalDiffs.length<2||(b&&aFd(a)||!b&&bFd(a))&&a.internalDiffs.reverse()})};
var ssb=function(a,b,c){return rta(b,c)==="<none>"?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&a.customFieldMap[b.customFieldId].type==="DATE"?!0:!1},tsb=function(a,b,c){return rta(b,c)==="<none>"?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&a.customFieldMap[b.customFieldId].type==="REPEATED_DATE"?!0:!1};EZ.prototype.asNumber=function(a){return Number(a)};
EZ.prototype.customFieldName=function(a){if(a.customFieldId){var b;return((b=this.customFieldMap[a.customFieldId])==null?void 0:b.customFieldName)||"customfield"+a.customFieldId}return""};da.Object.defineProperties(EZ.prototype,{diffs:{configurable:!0,enumerable:!0,set:function(a){this.internalDiffs=[].concat(q(a))}}});EZ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(EZ)))(b||EZ)}}();
EZ.\u0275cmp=D({type:EZ,selectors:[["b-issue-event-details"]],inputs:{diffs:"diffs",customFieldMap:"customFieldMap",effortSpecName:"effortSpecName",effortEnabled:"effortEnabled"},standalone:!1,features:[Ef],decls:5,vars:0,consts:[["changeCollection",""],[1,"bv2-event-details"],[1,"bv2-diff-row"],["mode","time",1,"float-right",3,"timestamp"],[1,"bv2-diff-detail"],[3,"id"],[1,"bv2-diff-arrow"],[3,"user","showEmail"],["mode","date",3,"timestamp"],[3,"bv2-diff-newvalue-nextline"],[4,"ngTemplateOutlet",
"ngTemplateOutletContext"],["title","For more detail, click on the three-dot menu near status update"],[1,"muted","inline-block","margin-none","unhandled-diff-type"],[3,"href","issueId"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(K(0,"div",1),Nf(1,Jsb,2,1,"div",2,Lf),L(),E(3,Psb,1,1,"ng-template",null,0,Mg));a&2&&(B(),Of(b.internalDiffs))},dependencies:[Sx,rV,ZU,MR,ZEd,$Ed,Xx,eV],styles:["/*# sourceMappingURL=issue_event_details.css.map */"],changeDetection:0});var FZ=function(){var a=p(hR);Z.call(this);var b=this;a.commentDisplayOverride$.pipe(zf(this.destroyed$)).subscribe(function(c){b.formattingModeOverride=c})};Y(FZ,Z);FZ.\u0275dir=Z.\u0275dir;FZ.prototype.ngOnInit=function(){};
FZ.prototype.ngOnChanges=function(){this.rawComment=this.note.unlinkifiedComment||"";this.summaryType==="CRITIQUE"?cFd(this):this.summaryType==="GERRIT"&&dFd(this);this.audience=this.issueAccessLevel&&this.issueAccessLevel==="INTERNAL"?"INTERNAL":"EXTERNAL";this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber};
var cFd=function(a){if(a.rawComment.split("\n").slice(0,3).filter(Boolean).length<2)a.rawComment=p7a(a.rawComment,250);else{var b=a.rawComment.split("\n").filter(function(c){c=c.trim();return c!==""&&c!=="BEGIN_PUBLIC"&&c!=="END_PUBLIC"}).slice(0,2);a.rawComment=eFd(a,b)}},dFd=function(a){var b=a.rawComment.split("\n");if(b.length>9){var c=b.slice(0,8).filter(Boolean).map(function(g){return g.trim()}),d=c[0],e=c[1],f=c[3];c=c[5];b=b.at(-2);a.rawComment=eFd(a,[d,e,f,"Gerrit change: "+b,"",c])}},eFd=
function(a,b){return a.formattingMode==="MARKDOWN"||a.formattingModeOverride==="MARKDOWN"?b.join("\n\n"):b.join("\n")};FZ.\u0275fac=function(a){return new (a||FZ)};
FZ.\u0275cmp=D({type:FZ,selectors:[["b-summarized-note-container"]],inputs:{note:"note",issueId:"issueId",formattingMode:"formattingMode",summaryType:"summaryType",issueAccessLevel:"issueAccessLevel"},standalone:!1,features:[Ef,jx],decls:1,vars:5,consts:[[3,"comment","issueId","audience","formattingMode","idPrefix"]],template:function(a,b){a&1&&M(0,"b-live-preview",0);a&2&&I("comment",b.rawComment)("issueId",b.issueId)("audience",b.audience)("formattingMode",b.formattingModeOverride||b.formattingMode)("idPrefix",
b.idPrefix)},dependencies:[qT],styles:["[_nghost-%COMP%]     b-live-preview .md-preview{background-color:#fff;background-color:var(--background);padding:0}"]});var fFd=["commentActionsMenu"],gFd=["commentReactionButton"],atb=function(){return[]},gtb=function(){return{unlinkifiedComment:""}},hFd=[{label:"Classic",mode:"PLAIN"},{label:"Markdown",mode:"MARKDOWN"},{label:"Source",mode:"LITERAL"}],GZ=function(){Z.apply(this,arguments);var a=this;this.documentationLinks=p(cS);this.activeSession=p(uu);this.issueReferenceResolver=p(LR);this.commentService=p(rS);this.el=p(Hd);this.userAccess=p(DP);this.butterBar=p(UN);this.errorHandler=p(pO);this.analytics=p(eQ);
this.userPreferencesManager=p(hR);this.issueDetailsBrain=p(YQ);this.editIssueService=p(GS);this.issuePermissionService=p($Q);this.commentHistoryDialogService=p(QY);this.issueCommentDialogsService=p(vY);this.dateFormatter=p(vS);this.paths=p(hW);this.domSafe=p(mR);this.eventsForIssueFridge=p(NP);this.isSummarized=!1;this.userToLossyEmail=wm;this.issueId$=new uf(1);this.distinctIssueId$=this.issueId$.pipe(nf());this.event$=new uf(1);this.deobfuscatedEvent$=new Mj(void 0);this.isCommentEvent=go;this.isNonObfuscatedEmail=
Zn;this.isInternalSession=this.activeSession.isInternalSession();this.enableTeamAnnotations=this.activeSession.isInternalSession();this.formattingModeOverride$=new Mj(void 0);this.formattingMode$=ie({event:this.event$,formattingModeOverride:this.formattingModeOverride$}).pipe(A(function(b){var c=b.event;return(b=b.formattingModeOverride)?b:c.formattingMode&&c.formattingMode!=="UNSPECIFIED_FORMATTING_MODE"?c.formattingMode:"PLAIN"}));this.commentRetentionOverride$=new Mj(null);this.wasSummarized$=
new Mj(!1);this.formattingModeMenuItems$=this.formattingMode$.pipe(A(function(b){return hFd.map(function(c){return{type:"select",action:function(){a.formattingModeOverride$.next(c.mode)},label:c.label,selected:b===c.mode}})}));this.isDisplayCommentFormatLiteral$=this.userPreferencesManager.isCommentDisplayOverrideSet$;this.canonicalIssueId$=this.issueDetailsBrain.canonicalIssueId$;this.canEditComment$=this.event$.pipe(yf(function(b){return a.issuePermissionService.canEditComment$(b)}),vf({refCount:!0,
bufferSize:1}));this.commentHistoryEnabled=this.activeSession.getFlag("enableCommentHistoryUi");this.commentReactionsEnabled=this.activeSession.isInternalSession();this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.teamId$=this.issueDetailsBrain.teamId$;this.issue$=this.distinctIssueId$.pipe(yf(function(b){return a.editIssueService.editableIssue$(b)}));this.modifiedDateDisplay$=this.event$.pipe(A(function(b){return new Date(b.modifiedDate)}),
yf(function(b){return lnd(a.dateFormatter,b)}));this.ariaLabelHeading$=ie([this.event$,this.modifiedDateDisplay$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(b==null)b="";else{var d=[];b.commentNumber&&d.push("Comment #"+b.commentNumber);b.userPerformingActionUser&&d.push(tm(b.userPerformingActionUser));d.push("Modified: "+c);b=d.join(", ")}return b}));this.ReactionType=Ebd;this.upvoteReactionCount$=this.event$.pipe(A(function(b){var c,d,e;return(e=(c=b.commentReactions)==
null?void 0:(d=c.get("UPVOTE"))==null?void 0:d.count)!=null?e:0}));this.upvoteReactionCountDisplayString$=this.upvoteReactionCount$.pipe(A(function(b){return b&&b!==0?b>999?"999+":String(b):null}));this.noUpvoteReactions$=this.upvoteReactionCount$.pipe(A(function(b){return b===0}));this.commentReactionsHovercardConfig=Object.assign({},new OK,{position:[n8c]});this.commentReactionIsSaving=!1;this.FormattingMode=Um;this.commentActionMenuItems$=ie({event:this.event$,isDisplayCommentFormatLiteral:this.isDisplayCommentFormatLiteral$,
formattingModeMenuItems:this.formattingModeMenuItems$,canEditComment:this.canEditComment$,canDeleteComment:this.event$.pipe(yf(function(b){return a.issuePermissionService.canDeleteComment(b)})),canUndeleteComment:this.event$.pipe(yf(function(b){return a.issuePermissionService.canUndeleteComment(b)})),canonicalIssueId:this.canonicalIssueId$,deobfuscatedEvent:this.deobfuscatedEvent$,canSeeRestrictionSettings:this.issuePermissionService.hasAclToView$,canChangeCommentRetention:this.issuePermissionService.canChangeCommentRetention$,
commentRetentionOverride:this.commentRetentionOverride$}).pipe(A(function(b){var c=b.event;var d=b.isDisplayCommentFormatLiteral;var e=b.formattingModeMenuItems;var f=b.canEditComment;var g=b.canDeleteComment;var k=b.canUndeleteComment;var l=b.canonicalIssueId;var r=b.deobfuscatedEvent;var w=b.canSeeRestrictionSettings;var x=b.canChangeCommentRetention;b=b.commentRetentionOverride;var C=[];if(!a.isCommentEvent(c))return C;d||e&&C.push(Object.assign({},PCd,{items:e}));f&&C.push({type:"action",action:function(){Ysb(a.issueCommentDialogsService,
String(a.issueId),r||c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit comment",disabled:a.isRedacted()});a.isShowCommentHistoryActionInMenu()&&C.push(Object.assign({},RCd,{action:function(){c.commentNumber&&a.showCommentHistoryDialog(c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));!l||a.isDeleted()||a.activeSession.isAnonymous()||C.push({type:"action",action:function(){var J=ss(l,{template_issue:a.issueId,template_comment:c.commentNumber,
do_attribution:!0});a.domSafe.openInNewTab(J);a.commentActionsMenu.actionsMenuIconButton.focus()},label:"Copy to canonical issue",disabled:a.isRedacted()});a.isDeleted()||a.activeSession.isAnonymous()||C.push({type:"action",action:function(){DBd(a.issueCommentDialogsService,String(a.issueId),c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Copy comment to",disabled:a.isRedacted()});g&&C.push({type:"action",action:function(){IBd(a.issueCommentDialogsService,
String(a.issueId),c.commentNumber,c.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete comment"});k&&C.push({type:"action",action:function(){FBd(a.issueCommentDialogsService,String(a.issueId),c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore comment"});w&&C.push(Object.assign({},QCd,{action:function(){JBd(a.issueCommentDialogsService,String(a.issueId),c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));
if(a.isRestricted(c)&&x&&!a.isDeleted()){var H=b==="COMPONENT_DEFAULT";C.push({type:"action",action:function(){var J=H?"INDEFINITE":"COMPONENT_DEFAULT";KBd(a.issueCommentDialogsService,"comment",J).then(function(O){a.commentActionsMenu.actionsMenuIconButton.focus();O&&a.updateCommentRetention(J)})},label:H?"Match issue retention":"Revert to component retention"})}Gnb({userIsExternal:!a.isInternalSession,issueIsExternal:a.issueAccessLevel!=="INTERNAL"})&&C.push(Object.assign({},OCd,{action:function(){c.commentNumber==
null&&Xm("unable to buildLegalReportingUrl() correctly without an event.commentNumber");var J,O=Hnb({bugId:c.issueId,comment:(J=c.commentNumber)!=null?J:0});a.domSafe.openInNewTab(O)}}));return C}));this.eventAsNote$=ie([this.deobfuscatedEvent$,this.event$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;b=b||c;var d;return{commentNumber:b.commentNumber,unlinkifiedComment:(d=b.unlinkifiedComment)!=null?d:"",formattedComment:b.formattedComment}}));this.mayReadPii$=this.event$.pipe(yf(function(b){return go(b)&&
a.isRestricted(b)?ne(function(){var c=EP(a.userAccess,"reader","issues/"+a.issueId+"/comments/"+b.commentNumber);c.catch(function(d){Xm("error: ",d);return!1});return c}):ce(void 0)}));this.showRecentEventsFirst$=this.userPreferencesManager.showRecentEventsFirst$;this.showFullHistoryFromFiltering$=this.userPreferencesManager.commentFilterPreferences$.pipe(A(function(b){var c;return(c=b.commentFilter)!=null?c:""}));this.isFullHistoryPreference$=this.showFullHistoryFromFiltering$.pipe(A(function(b){return b===
"FULL_HISTORY"}));this.preEventDiffs$=ie([this.event$,this.showRecentEventsFirst$]).pipe(A(function(b){var c=m(b);b=c.next().value;return c.next().value?b.postDiffs:b.preDiffs}));this.postEventDiffs$=ie([this.event$,this.showRecentEventsFirst$]).pipe(A(function(b){var c=m(b);b=c.next().value;return c.next().value?b.preDiffs:b.postDiffs}));this.hasAclToUpvoteReact$=ie([this.event$,this.issuePermissionService.hasAclToComment$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d,e;
return((d=b.commentReactions)==null?void 0:(e=d.get("UPVOTE"))==null?void 0:e.hasReacted)||c}));this.showCommentReactionHovercard$=ie([this.issuePermissionService.hasAclToEdit$,this.upvoteReactionCount$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b&&c>0&&c<=5}));this.isShowingCommentTimestamp$=this.isFullHistoryPreference$.pipe(A(function(b){return b&&ytb(a)&&(a.event.preDiffs.length>0||a.event.postDiffs.length>0)}));this.getCommentNumberLink=function(b){return X4a(a.issueId,
{comment:b})}};Y(GZ,Z);GZ.\u0275dir=Z.\u0275dir;h=GZ.prototype;h.ngOnInit=function(){this.event.commentNumber&&this.el.nativeElement.setAttribute("id","comment"+this.event.commentNumber);var a;this.commentRetentionOverride$.next((a=this.event.commentRetention)!=null?a:null)};
h.updateCommentRetention=function(a){var b=this;this.event.commentNumber||qO(this.errorHandler,"Comment number is missing");this.analytics.trackEvent("restrictedContent","updateRetention","comment");this.commentService.updateRetention(this.issueId,this.event.commentNumber||0,a).pipe(zf(this.destroyed$)).subscribe({next:function(c){b.event=Object.assign({},b.event,{commentRetention:c.piiRetention,commentRetentionState:c.piiRetentionState});Rr(b.butterBar,"Comment retention updated",4E3);b.commentRetentionOverride$.next(a===
"INDEFINITE"?"INDEFINITE":"COMPONENT_DEFAULT")},error:function(){qO(b.errorHandler,"Comment retention update failed")}})};h.ngOnChanges=function(a){a.issueId&&this.issueId$.next(String(this.issueId));a=a.event;var b;if(b=a&&this.deobfuscatedEvent$.value)b=a.previousValue,a=a.currentValue,b=(b==null?void 0:b.commentVersion)!==(a==null?void 0:a.commentVersion)||(b==null?void 0:b.commentContentVerdict)!==(a==null?void 0:a.commentContentVerdict);b&&this.deobfuscatedEvent$.next(void 0)};
h.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};h.getRestrictedLabel=function(){return qYa(Rp(this.event.commentContentVerdict))};h.isRestricted=function(a){a=Rp(a.commentContentVerdict);switch(a){case "NONE_DETECTED":case "RESTRICTION_SEVERITY_UNSPECIFIED":return!1;case "RESTRICTED":case "RESTRICTED_PLUS":return!0;default:wb(a)}};h.isDeleted=function(){return this.event.commentDeletionStatus==="DELETED"};
h.isRedacted=function(){var a;return((a=this.event)==null?void 0:a.commentRedacted)&&!this.deobfuscatedEvent$.value};
h.loadRestrictedComment=function(){var a=this;this.analytics.trackEvent("restrictedContent","viewRestrictedContent","comment");var b=this.event.commentNumber||0;this.commentService.get(String(this.issueId),b,Rp(this.event.commentContentVerdict)).pipe(lf(1)).subscribe(function(c){a.deobfuscatedEvent$.next(STa(a.event,c))},function(c){var d;a.butterBar.showWarning("Error showing comment "+b+": "+((d=c.error)==null?void 0:d.message))})};
h.isShowCommentHistoryActionInMenu=function(){return!(!(this.commentHistoryEnabled&&(this.event.commentVersion||0)>0)||this.isRedacted())};var ytb=function(a){return go(a.event)&&a.event.isCommentEvent};GZ.prototype.getSummaryType=function(){return mo(this.event)?"GERRIT":"CRITIQUE"};GZ.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.issueId,a,-1)};
var ptb=function(a){var b,c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,fe(a.hasAclToUpvoteReact$),2);if(g.nextAddress!=3){b=g.yieldResult;if(!b)return g.return();a.commentReactionIsSaving=!0;c=rtb(a,"UPVOTE");return z(g,a.issueCommentDialogsService.updateCommentReaction({issueId:a.issueId,commentId:(d=a.event.commentNumber)!=null?d:2,reactionType:"UPVOTE",hasReacted:!c}),3)}e=g.yieldResult;a.commentReactionIsSaving=!1;if(!e)return g.return();f=a.event;f.commentReactions=e;a.event$.next(f);
a.eventsForIssueFridge.manualUpdate(a.issueId,function(k){var l;k.events=TTa(k.events,(l=a.event.commentNumber)!=null?l:2,{commentReactions:e})});a.analytics.trackEvent("editIssue","click",c?"removeUpvoteReaction":"addUpvoteReaction");ae(g)})},rtb=function(a,b){var c,d,e;return(e=(c=a.event.commentReactions)==null?void 0:(d=c.get(b))==null?void 0:d.hasReacted)!=null?e:!1},qtb=function(a,b){var c;a=(c=a.event.commentReactions)==null?void 0:c.get(b);if(!a)return"Comment reaction button";b=b==="UPVOTE"?
"Thumbs up":"";a.count===1?b+=", "+a.count+" reaction":a.count>1&&(b+=", "+a.count+" reactions");a.hasReacted&&(b+=", reacted");return b};da.Object.defineProperties(GZ.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){this.internalEvent=a;this.event$.next(a)},get:function(){return this.internalEvent}}});GZ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(GZ)))(b||GZ)}}();
GZ.\u0275cmp=D({type:GZ,selectors:[["b-history-event"]],viewQuery:function(a,b){a&1&&(hg(fFd,5),hg(gFd,5));if(a&2){var c;lg(c=mg())&&(b.commentActionsMenu=c.first);lg(c=mg())&&(b.commentReactionButton=c.first)}},inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",isSummarized:"isSummarized",event:"event"},standalone:!1,features:[Ef,jx],decls:2,vars:3,consts:[["emailDisplay",""],["card",""],["commentActionsMenu",""],["commentReactionButton",""],["commentReactionCard","onedevHovercard"],[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"],[1,"bv2-event-user-name",3,"model"],[1,"bv2-event-user-id"],["type","button","matTooltip","Edit Comment","aria-label","Edit Comment",1,"bv2-edit-comment-button"],[1,"bv2-event-info"],["content-type","comment",3,"label","retention","retentionState"],["mode","datetime",3,"timestamp"],[1,"issue-detail-actions",3,"buttonLabel","menuItems"],[1,"float-clear"],[1,
"bv2-event-major-status"],[3,"diffs","customFieldMap","effortSpecName","effortEnabled"],[1,"bv2-event-note-container","critical-feature"],[1,"flex-kids-x","space-between"],[1,"muted","italic"],[3,"disabled"],[1,"flex-kids-y","flex-1-hemmed"],[3,"issueId","issueAccessLevel","note","formattingMode","canEditComment"],["type","button","mat-button","",1,"summarized-note-button"],[1,"flex-kids-y","justify-space-between"],[1,"comment-timestamp"],["mode","time",1,"muted","type-s",3,"timestamp"],[1,"align-self-flex-end"],
[1,"bv2-event-note-edit-timestamp"],[1,"margin-s-y","border-top","bv2-issue-event-attachments"],["role","button",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],[1,"keep-focus-ring","vertical-centered","comment-number",3,"click","routerLinkObj"],["type","button","matTooltip","Edit Comment","aria-label","Edit Comment",1,"bv2-edit-comment-button",3,"click"],[3,"texts"],[3,"onConfirm","disabled"],[3,"issueId","issueAccessLevel","note","summaryType","formattingMode"],["type","button","mat-button",
"",1,"summarized-note-button",3,"click"],["svgIcon","arrow-down",1,"icon-m"],["svgIcon","arrow-up",1,"icon-m"],["type","button","mat-stroked-button","","disabledInteractive","",1,"comment-reaction-button",3,"click","ariaLabel","aria-disabled","disabled","onedevHovercardTrigger","onedevHovercardConfig","onedevHovercardActive"],["svgIcon","thumb_up_filled_24px",1,"icon-s","has-reacted-icon"],["svgIcon","thumb_up_24px",1,"icon-s"],[3,"reactionState","issueId","commentNumber"],[3,"event"],[3,"click"],
[1,"margin-s-y","bv2-issue-event-attachment",3,"id"],[3,"issueId","attachment","attachmentUploader"]],template:function(a,b){a&1&&(F(0,ztb,43,32),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issue$))?0:-1,c)}},dependencies:[NY,tZ,hU,Sx,Jy,VO,rV,KK,SK,EZ,hT,rZ,BZ,aV,$U,gV,vK,nA,FZ,kB,gB,WEd,XEd,YEd,Tx],styles:[".bv2-event-user[_ngcontent-%COMP%]{font-weight:400;margin:0;margin-bottom:12px}.bv2-event-user[_ngcontent-%COMP%]   b-user-membership-chip[_ngcontent-%COMP%]{margin-left:-8px}.bv2-event-user   .d-cozy[_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%], .d-cozy   [_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%]{margin-bottom:10px}.bv2-event-user   .d-compact[_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%], .d-compact   [_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%]{margin-bottom:8px}.summarized-note-button[_ngcontent-%COMP%]{color:#202124;color:var(--text-default);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin-top:8px;margin-left:-22px}.summarized-note-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{padding-right:8px}.gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix){-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;color:#3c4043;color:var(--gfx);min-width:20px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px;margin-right:6px}.gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix)   mat-icon[_ngcontent-%COMP%]{margin-right:4px;margin-left:0}.gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix)   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix):focus:enabled:not(.comment-reaction-button[aria-disabled=true]), .gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix):hover:enabled:not(.comment-reaction-button[aria-disabled=true]){box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 1px 3px 1px rgba(0,0,0,.15)}[_nghost-%COMP%]   .gmat-mdc-button.mat-mdc-outlined-button.comment-reaction-button[aria-disabled=true][_ngcontent-%COMP%]{cursor:default;color:#bdc1c6;color:var(--text-disabled);--private-gmat-button-outlined-stateful-color:var(--text-disabled);--mat-button-outlined-hover-state-layer-opacity:0;--mat-button-outlined-focus-state-layer-opacity:0;--mat-button-outlined-pressed-state-layer-opacity:0}[_nghost-%COMP%]   .gmat-mdc-button.mat-mdc-outlined-button.comment-reaction-button[aria-disabled=true][_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:rgba(26,115,232,.4);color:var(--hover-btn)}.gmat-mdc-button.no-upvote-reactions.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix){border:0;margin-right:2px}.gmat-mdc-button.no-upvote-reactions.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix)   mat-icon[_ngcontent-%COMP%]{margin-right:0;--mat-button-outlined-icon-offset:0}.comment-timestamp[_ngcontent-%COMP%]{-webkit-box-flex:0.92;-webkit-flex:0.92;-moz-box-flex:0.92;-ms-flex:0.92;flex:0.92}.comment-timestamp.hasCommentTimestamp[_ngcontent-%COMP%]{margin-top:14px}.comment-number[_ngcontent-%COMP%]:hover{text-decoration:underline}\n/*# sourceMappingURL=history_event.css.map */"],
changeDetection:0});var HZ=function(){};HZ.prototype.watch=function(a,b){b=b===void 0?document.documentElement:b;return me(ne(function(){return ce(document.getElementById(a))}),SYa(b,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0}).pipe(A(function(){return document.getElementById(a)}))).pipe(ue(Pm),lf(1))};HZ.\u0275fac=function(a){return new (a||HZ)};HZ.\u0275prov=Dc({token:HZ,factory:HZ.\u0275fac,providedIn:"root"});var IZ=function(){this.idWatch=p(HZ)},iFd=function(a,b){var c=b.elementId;var d=b.parentElement;var e=b.scrollableContainerId;var f=b.scrollPadding===void 0?0:b.scrollPadding;return a.idWatch.watch(c,d).pipe(lf(1),A(function(g){g.scrollIntoView();if(g=document.getElementById(e))g.scrollTop-=f}))};IZ.\u0275fac=function(a){return new (a||IZ)};IZ.\u0275prov=Dc({token:IZ,factory:IZ.\u0275fac,providedIn:"root"});var jFd={FULL:"full",SUMMARIZED:"summarized",FOLDED:"folded",HIDDEN:"hidden"},kFd=RegExp("(comment|attachment)([0-9]+)"),JZ=function(){Z.apply(this,arguments);var a=this;this.formattedCommentsForIssueFridge=p(PP);this.preferences=p(hR);this.eventsForIssue=p(NP);this.dynamicScrollIntoView=p(IZ);this.bLocation=p(bU);this.elementRef=p(Hd);this.routerEvents=p(dQ);this.analytics=p(eQ);this.teamFridge=p(TQ);this.issueFullFridge=p(gQ);this.activeSession=p(uu);this.issueId$=new uf(1);this.internalIssueId=
"";this.eventDisplayModes=jFd;this.internalEvents=[];this.showRecentEventsFirst=null;this.currentFilterLevel="FULL_HISTORY";this.issue$=this.issueId$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));this.events$=new uf(1);this.commentsToFormat$=new uf(1);this.eventDisplayMode=new Map;this.commentNumbersDisplayed=new Set;this.foldedCommentsCounts=new Map;this.authoritativeEmails=new Set;this.authoritativeEmails$=this.preferences.commentFilterPreferences$.pipe(yf(function(b){var c=new Set;return b.commentFilter!==
"TEAM_AND_ASSIGNEE"?ce(c):a.issue$.pipe(yf(function(d){var e;if((d==null?void 0:(e=d.snapshot[0].assigneeUser)==null?void 0:e.emailAddress)!==void 0){var f;c.add(d==null?void 0:(f=d.snapshot[0].assigneeUser)==null?void 0:f.emailAddress)}var g;if((d==null?void 0:(g=d.snapshot[0].verifierUser)==null?void 0:g.emailAddress)!==void 0){var k;c.add(d==null?void 0:(k=d.snapshot[0].verifierUser)==null?void 0:k.emailAddress)}var l;if((d==null?void 0:(l=d.aggregatedData)==null?void 0:l.teamId)===void 0)return ce(c);
var r;return lFd(a,String(d==null?void 0:(r=d.aggregatedData)==null?void 0:r.teamId)).pipe(yf(function(w){w=m(w);for(var x=w.next();!x.done;x=w.next())c.add(x.value);return ce(c)}))}))}));this.isLoading$=ie([this.formattedCommentsForIssueFridge.thinking$,this.eventsForIssue.thinking$]).pipe(mf(0),A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b||c}));this.sendAnalytics=QB(function(){var b=[].concat(q(document.querySelectorAll(".bv2-event-note, .bv2-event-major-status"))).map(function(c){return c.innerText}).join("").length;
a.analytics.trackEvent("editIssue","updateCommentThread","visibleCharCount",b)},200);this.scrollToCommentOrAttachment=QB(function(){var b=a.bLocation.hash();if(b&&a.lastHashScrolled!==b&&a.internalEvents){var c,d=m((c=b.match(kFd))!=null?c:[]);d.next();c=d.next().value;var e=d.next().value;d=c;var f=e;if(b==="lastcomment"){d=XTa(a.internalEvents);if(d===-1)return;f=String(d);d="comment"}if(d&&f){c=a.internalEvents.findIndex(function(k){return k.commentNumber===Number(f)});e=c>-1;var g=a.internalEvents.flatMap(function(k){return k.attachments}).some(function(k){return k.attachmentId===
f});if(e||g)e&&a.eventDisplayMode.get(c)==="folded"&&(a.eventDisplayMode.set(c,"full"),mFd(a,c)),g&&(c=a.internalEvents.findIndex(function(k){return k.attachments.findIndex(function(l){return l.attachmentId===f})>-1}),a.eventDisplayMode.get(c)||(a.eventDisplayMode.set(c,"full"),mFd(a,c))),iFd(a.dynamicScrollIntoView,{elementId:d+f,parentElement:a.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Af(function(){a.lastHashScrolled=b}),zf(a.destroyed$)).subscribe()}else iFd(a.dynamicScrollIntoView,
{elementId:b,parentElement:a.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Af(function(){a.lastHashScrolled=b}),zf(a.destroyed$)).subscribe()}},200)};Y(JZ,Z);JZ.\u0275dir=Z.\u0275dir;
JZ.prototype.ngOnInit=function(){var a=this;this.authoritativeEmails$.pipe(zf(this.destroyed$)).subscribe(function(b){a.authoritativeEmails=b});this.preferences.showRecentEventsFirst$.pipe(ue(Pm),nf(),zf(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst!==b&&(a.showRecentEventsFirst=b,nFd(a))});ie([this.events$,this.preferences.commentFilterPreferences$,this.authoritativeEmails$]).pipe(zf(this.destroyed$)).subscribe(function(b){b=m(b);var c=b.next().value;var d=b.next().value;var e=
b.next().value;b=[];if(d.commentFilter)for(a.currentFilterLevel=d.commentFilter,oFd(a,c,d.commentFilter,e),pFd(a),c=m(a.commentNumbersDisplayed.values()),d=c.next();!d.done;d=c.next())b.push(a.internalIssueId+"-"+d.value);else for(c=m(c),d=c.next();!d.done;d=c.next())(d=d.value)&&d.commentNumber&&b.push(a.internalIssueId+"-"+d.commentNumber);a.commentsToFormat$.next(b)});this.commentsToFormat$.pipe(ue(Pm),yf(function(b){return a.formattedCommentsForIssueFridge.watchSet(b)}),zf(this.destroyed$)).subscribe(function(b){qFd(a,
b)});this.routerEvents.navigationEnd$.pipe(zf(this.destroyed$)).subscribe(function(){a.internalEvents&&a.internalEvents.length!==0&&a.scrollToCommentOrAttachment()})};
var qFd=function(a,b){for(var c={i$jscomp$991:0};c.i$jscomp$991<a.internalEvents.length;c={i$jscomp$991:c.i$jscomp$991},c.i$jscomp$991++)if(Ftb(a.eventDisplayMode.get(c.i$jscomp$991))&&go(a.internalEvents[c.i$jscomp$991])){var d=b.find(function(e){return function(f){return f.id.commentId===a.internalEvents[e.i$jscomp$991].commentNumber}}(c));d&&(a.internalEvents[c.i$jscomp$991]=Object.assign({},a.internalEvents[c.i$jscomp$991],{formattedComment:d.formattedComment.formattedComment,formattingMode:d.formattedComment.formattingMode}))}nFd(a)},
oFd=function(a,b,c,d){a.eventDisplayMode.clear();a.commentNumbersDisplayed.clear();a.foldedCommentsCounts.clear();switch(c){case "FULL_HISTORY":for(c=0;c<b.length;c++){var e=rFd(b[c]);a.eventDisplayMode.set(c,e?"full":"hidden");go(b[c])&&b[c].commentNumber&&e&&(e=void 0,a.commentNumbersDisplayed.add((e=b[c].commentNumber)!=null?e:0))}break;case "ALL_COMMENTS":for(c=0;c<b.length;c++)e=sFd(b[c]),a.eventDisplayMode.set(c,e?"full":"hidden"),go(b[c])&&b[c].commentNumber&&e&&(e=void 0,a.commentNumbersDisplayed.add((e=
b[c].commentNumber)!=null?e:0));break;case "HUMAN_ONLY":tFd(a,b,function(f){var g;return(g=xTa(f.userPerformingAction)&&f.isMajorEvent)!=null?g:!0});break;case "TEAM_AND_ASSIGNEE":tFd(a,b,function(f){var g;return(g=d.has(f.userPerformingAction)&&f.isMajorEvent)!=null?g:!0});break;default:for(c=0;c<b.length;c++)a.eventDisplayMode.set(c,"full"),go(b[c])&&b[c].commentNumber&&(e=void 0,a.commentNumbersDisplayed.add((e=b[c].commentNumber)!=null?e:0))}a.sendAnalytics()},pFd=function(a){if(a.currentFilterLevel!==
"FULL_HISTORY")for(var b=0;b<a.internalEvents.length;b++){var c=a.internalEvents[b];go(c)&&(lo(c)||c!=null&&c.formattingMode&&c.formattingMode!=="MARKDOWN"&&mo(c))&&(a.activeSession.getFlag("enableCLsInHumanFilterView")||a.currentFilterLevel!=="HUMAN_ONLY"&&a.currentFilterLevel!=="TEAM_AND_ASSIGNEE")&&(a.eventDisplayMode.set(b,"summarized"),mFd(a,b))}},tFd=function(a,b,c){for(var d=0,e=0,f=0,g=0;g<b.length;g++){var k=c(b[g]);a.eventDisplayMode.set(g,k?"full":"folded");if(k){if(d>0||e>0)a.foldedCommentsCounts.has(f)||
a.foldedCommentsCounts.set(f,{commentFoldedCount:d,eventFoldedCount:e});e=d=0;go(b[g])&&b[g].commentNumber&&(k=void 0,a.commentNumbersDisplayed.add((k=b[g].commentNumber)!=null?k:0))}else{if(go(b[g])&&b[g].commentNumber||RTa(b[g]))d++,f=g;e++}}if(d>0||e>0)b=XTa(a.internalEvents)===1?a.showRecentEventsFirst?0:a.internalEvents.length:uFd(a),a.foldedCommentsCounts.set(b,{commentFoldedCount:d,eventFoldedCount:e})},uFd=function(a){return rba(a.internalEvents,function(b){var c;return(c=b.isMajorEvent)!=
null?c:!1})},rFd=function(a){return go(a)&&a.isCommentEvent||RTa(a)||a.preDiffs.length>0||a.postDiffs.length>0},sFd=function(a){var b;return((b=a.isMajorEvent)!=null?b:!1)&&(go(a)&&a.isCommentEvent||RTa(a)||a.preDiffs.length>0||a.postDiffs.length>0)},nFd=function(a){if(!(a.internalEvents.length<2)){if(a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate<=vFd(a,a.internalEvents).modifiedDate||!a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate>=vFd(a,a.internalEvents).modifiedDate){a.internalEvents.reverse();
var b;oFd(a,a.internalEvents,(b=a.currentFilterLevel)!=null?b:"FULL_HISTORY",a.authoritativeEmails);pFd(a)}a.internalEvents&&a.internalEvents.length!==0&&a.scrollToCommentOrAttachment()}},vFd=function(a,b){var c;return(c=b.find(function(d){return a.internalEvents[0].modifiedDate!==d.modifiedDate}))!=null?c:b[1]};JZ.prototype.trackEventByVersion=function(a,b){return b.version};
var mFd=function(a,b){if(a.foldedCommentsCounts.has(b)){var c,d,e=(d=(c=a.foldedCommentsCounts.get(b))==null?void 0:c.commentFoldedCount)!=null?d:0,f,g;c=(g=(f=a.foldedCommentsCounts.get(b))==null?void 0:f.eventFoldedCount)!=null?g:0;e>1&&a.foldedCommentsCounts.set(b-1,{commentFoldedCount:e-1,eventFoldedCount:c-1});a.foldedCommentsCounts.delete(b)}else for(e=new Map([].concat(q(a.foldedCommentsCounts.entries())).sort(function(k,l){return k[0]-l[0]})),e=m(e.entries()),f=e.next();!f.done;f=e.next())if(g=
m(f.value),f=g.next().value,g=g.next().value,f>b){if(g.commentFoldedCount-(f-b)===0)a.foldedCommentsCounts.set(f,{commentFoldedCount:g.commentFoldedCount-1,eventFoldedCount:g.eventFoldedCount-1});else{e=0;for(c=b;c<f;c++)(go(a.internalEvents[c])||RTa(a.internalEvents[c]))&&e++;a.foldedCommentsCounts.set(f,{commentFoldedCount:e,eventFoldedCount:f-b});a.foldedCommentsCounts.set(b-1,{commentFoldedCount:g.commentFoldedCount-e-1,eventFoldedCount:g.eventFoldedCount-(f-b)-1});a.foldedCommentsCounts.delete(b)}break}},
Ftb=function(a){return a==="summarized"||a==="full"},lFd=function(a,b){var c=new Set;return a.teamFridge.watch(b).pipe(A(function(d){if(d!==void 0){d=m(d.members.map(function(f){return f.user.emailAddress}).filter(Pm));for(var e=d.next();!e.done;e=d.next())c.add(e.value)}return c}))};
da.Object.defineProperties(JZ.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){a&&(this.internalIssueId=a,this.issueId$.next(a))}},events:{configurable:!0,enumerable:!0,set:function(a){if(a&&a.length>0){var b=a;a=[].concat(q(b));b=Object.assign({},b[0],{attachments:[],commentNumber:void 0,formattedComment:void 0,taggedSummary:[],isMajorEvent:!1});a[0]=b}a&&!WZa(this.internalEvents,a)&&(this.internalEvents=a,this.events$.next(a))}}});
JZ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(JZ)))(b||JZ)}}();
JZ.\u0275cmp=D({type:JZ,selectors:[["b-event-stream"]],inputs:{issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",issueId:"issueId",events:"events"},standalone:!1,features:[Ef],decls:7,vars:6,consts:[[1,"padded","margined"],[1,"bv2-edit-issue-history-stream"],[1,"fold-indication"],[1,"bv2-event"],["type","button","mat-stroked-button","","color","primary",3,"click"],[1,"horizontal-divider"],[3,"issueId","issueAccessLevel","event","isSummarized"]],template:function(a,b){a&1&&(F(0,
Atb,2,0,"aside",0),T(1,"async"),K(2,"div",1),Nf(3,Gtb,2,2,null,null,b.trackEventByVersion,!0),L(),F(5,Htb,2,0,"aside",0),T(6,"async"));a&2&&(G(b.showRecentEventsFirst&&U(1,2,b.isLoading$)?0:-1),B(3),Of(b.internalEvents),B(2),G(!b.showRecentEventsFirst&&U(6,4,b.isLoading$)?5:-1))},dependencies:[GZ,kB,gB,cU,Tx],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;vertical-align:middle}[_nghost-%COMP%]     .initial-diffs .bv2-event-details{margin-top:16px}.bv2-event[_ngcontent-%COMP%]:last-of-type{border-bottom:none}.bv2-edit-issue-history-stream[_ngcontent-%COMP%] > .fold-indication[_ngcontent-%COMP%]:first-child{margin-top:16px}.fold-indication[_ngcontent-%COMP%]{margin-top:-12px;position:relative;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.fold-indication[_ngcontent-%COMP%]   .horizontal-divider[_ngcontent-%COMP%]{border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);-webkit-box-flex:1;-webkit-flex:auto;-moz-box-flex:1;-ms-flex:auto;flex:auto}.fold-indication[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:1px solid;border-color:#1a73e8;border-color:var(--primary);background-color:#fff;background-color:var(--background);line-height:16px;height:24px;padding:0 8px}.fold-indication[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus, .fold-indication[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{border:1px solid;border-color:#1a73e8;border-color:var(--primary)}"]});var KZ=function(){Z.apply(this,arguments);this.preferences=p(hR);this.activeSession=p(uu);this.clearcut=p(YP);this.analytics=p(eQ);this.selectedFilter=null;var a=this.activeSession.isInternalSession();Ktb.description=a?"Including CLs, Blunderbuss, etc.":"Including all automated comments";this.filters=wFd;this.showRecentEventsFirst=!1};Y(KZ,Z);KZ.\u0275dir=Z.\u0275dir;
KZ.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(ue(Pm),zf(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.preferences.commentFilterPreferences$.pipe(zf(this.destroyed$)).subscribe(function(b){b.commentFilter?a.selectedFilter=Ntb(b.commentFilter):(a.selectedFilter=iR(a.preferences).showFullHistory?Jtb:Ktb,a.preferences.save({commentFilterPreferences:{commentFilter:a.selectedFilter.commentFilterType}}).pipe(zf(a.destroyed$)).subscribe())})};
KZ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(KZ)))(b||KZ)}}();
KZ.\u0275cmp=D({type:KZ,selectors:[["b-event-stream-header"]],standalone:!1,features:[Ef],decls:13,vars:4,consts:[[1,"flex-kids-x","flex-spread"],[1,"uppercase"],[1,"flex-kids-x"],["appearance","outline","subscriptSizing","dynamic",1,"filter-select"],[3,"valueChange","selectionChange","value"],[1,"filter-option",3,"value"],["type","button","mat-stroked-button","","color","primary",1,"sort-order-button",3,"click"],["matButtonIcon","",1,"sort-order-arrow","icon-xs",3,"svgIcon"],[1,"filter-option-name"],
[1,"filter-option-description"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"h4",1),Q(2,"Comments"),L(),K(3,"div",2)(4,"mat-form-field",3)(5,"mat-select",4),Cg("valueChange",function(c){Bg(b.selectedFilter,c)||(b.selectedFilter=c);return c}),N("selectionChange",function(c){c=c.value;b.preferences.save({commentFilterPreferences:{commentFilter:c.commentFilterType}}).pipe(zf(b.destroyed$)).subscribe();b.analytics.trackEvent("editIssue","click",c.commentFilterType)}),K(6,"mat-select-trigger"),Q(7),L(),
Nf(8,Itb,5,3,"mat-option",5,Mf),L()(),K(10,"button",6),N("click",function(){var c=!b.showRecentEventsFirst;Kgd(b.clearcut,"click_recentFirst_"+c);b.preferences.save({showRecentEventsFirst:c}).pipe(zf(b.destroyed$)).subscribe()}),M(11,"mat-icon",7),Q(12),L()()());a&2&&(B(5),Ag("value",b.selectedFilter),B(2),yg(b.selectedFilter==null?null:b.selectedFilter.displayName),B(),Of(b.filters),B(3),I("svgIcon",b.showRecentEventsFirst?"arrow-upward":"arrow-downward"),B(),S(" ",b.showRecentEventsFirst?"Newest first":
"Oldest first"," "))},dependencies:[Jy,kB,gB,HD,SD,yU,TH,UH,hA],styles:[".gmat-mdc-button.mat-mdc-outlined-button.sort-order-button[_ngcontent-%COMP%]{height:24px;line-height:24px;padding-left:6px;padding-right:10px}.sort-order-arrow[_ngcontent-%COMP%]{--mat-button-outlined-icon-spacing:4px;--mat-button-outlined-icon-offset:0;height:16px;width:16px;line-height:16px}[_nghost-%COMP%]     .filter-select{max-width:175px;margin-right:8px}[_nghost-%COMP%]     .filter-select .mat-mdc-form-field{min-width:70px}[_nghost-%COMP%]     .mat-mdc-form-field-flex .mat-mdc-form-field-infix{min-height:auto;border-top-width:8px;padding:0}[_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-mdc-select-arrow{color:#1967d2;color:var(--primary-c700)}  .mat-mdc-select-panel .mat-mdc-option.filter-option{height:48px}.filter-option[_ngcontent-%COMP%]   .filter-option-name[_ngcontent-%COMP%], [_nghost-%COMP%]     .mat-mdc-select-value .filter-option-name{line-height:20px;font-size:.94rem}.filter-option[_ngcontent-%COMP%]   .filter-option-description[_ngcontent-%COMP%], [_nghost-%COMP%]     .mat-mdc-select-value .filter-option-description{line-height:20px;color:#5f6368;color:var(--text-muted);font-size:.8125rem}  .mat-mdc-select-panel .mat-mdc-option.filter-option.mat-mdc-option-active{background-color:#e8f0fe;background-color:var(--selected-bg-muted)}  .mat-mdc-select-panel .mat-mdc-option.filter-option.mat-mdc-option-active .filter-option-name{color:#174ea6;color:var(--primary-c900)}  .mat-mdc-select-panel .mat-mdc-option.filter-option.mat-mdc-option-active .filter-option-description,   .mat-mdc-select-panel .mat-mdc-option.filter-option.mat-mdc-option-active .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked:after{color:#185abc;color:var(--primary-high-contrast)}"]});
var Jtb={name:"Full history",description:"Including everything with audit trail",displayName:"Full history",commentFilterType:"FULL_HISTORY"},Ktb={name:"All comments and updates",description:"Including CLs, Blunderbuss, etc.",displayName:"All comments",commentFilterType:"ALL_COMMENTS"},Ltb={name:"Users' comments",description:"All human generated comments",displayName:"Users",commentFilterType:"HUMAN_ONLY"},Mtb={name:"Team and assignee comments",description:"Issue's owning team and assignee",displayName:"Team and assignee",
commentFilterType:"TEAM_AND_ASSIGNEE"},wFd=[Jtb,Ktb,Ltb,Mtb];var LZ=function(){this.admins=[]};LZ.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId;this.admins=um(this.hotlist.adminUsers)};LZ.\u0275fac=function(a){return new (a||LZ)};
LZ.\u0275cmp=D({type:LZ,selectors:[["b-hotlist-card"]],inputs:{hotlist:"hotlist"},standalone:!1,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&&(K(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),Q(5),L()(),K(6,"ul")(7,"li"),Q(8),L(),K(9,"li"),Q(10),L()(),K(11,"div")(12,"p"),Q(13),L()()()()());a&2&&(B(4),I("href",b.url,Ne),B(),yg(b.hotlist.name),B(3),S("ID: ",b.hotlist.hotlistId),B(2),
zg("",b.admins.length===1?"Admin":"Admins",": ",b.admins.join(", ")),B(3),yg(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 MZ=function(){this.ROUTES=qs;this.showHovercard=this.removable=!0;this.disabled=!1;this.removeHotlist=new aQ};MZ.prototype.getAriaLabel=function(a){return"hotlist: "+a.name};MZ.\u0275fac=function(a){return new (a||MZ)};
MZ.\u0275cmp=D({type:MZ,selectors:[["b-hotlist-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("removable",b.removable)},inputs:{hotlist:"hotlist",removable:"removable",showHovercard:"showHovercard",disabled:"disabled"},outputs:{removeHotlist:"removeHotlist"},standalone:!1,decls:1,vars:1,consts:[["card","onedevHovercard"],[1,"chip",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"name"],[1,"keep-focus-ring",3,"href"],["mat-icon-button","","type","button",3,"invisible"],[3,"hotlist"],
["mat-icon-button","","type","button",3,"click"],["svgIcon","close"]],template:function(a,b){a&1&&F(0,Ptb,8,9);a&2&&G(b.hotlist?0:-1)},dependencies:[Jy,KK,SK,LZ,kB,iB],styles:["[_nghost-%COMP%]{margin-right:8px;display:inline-block;vertical-align:middle;white-space:nowrap}[_nghost-%COMP%]     mat-icon svg{height:50%;width:50%}.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-mdc-icon-button[_ngcontent-%COMP%]{height:25px;width:25px;line-height:25px;--mat-icon-button-icon-size: 24px}.chip[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}.removable[_nghost-%COMP%]   .chip[_ngcontent-%COMP%]{padding-right:0}"]});var NZ=function(){var a=this;this.hotlists=p(lP);this.userAccess=p(DP);this.id$=new uf(1);this.removeHotlist=new aQ;this.removable=!0;this.removable$=this.id$.pipe(yf(function(b){return a.removable!=="check-acl"?ce(a.removable):EP(a.userAccess,"appender","hotlists/"+b)}));this.hotlist$=this.id$.pipe(yf(function(b){return a.hotlists.watch(b)}));this.isDisabled$=ie([this.id$,this.id$.pipe(yf(this.hotlists.isSaving$))]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b==null?!1:
c?!0:!1}))};da.Object.defineProperties(NZ.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.idInternal=String(a);this.id$.next(String(a))}}});NZ.\u0275fac=function(a){return new (a||NZ)};
NZ.\u0275cmp=D({type:NZ,selectors:[["b-hotlist-chip-smart"]],inputs:{id:"id",removable:"removable"},outputs:{removeHotlist:"removeHotlist"},standalone:!1,decls:4,vars:9,consts:[[3,"removeHotlist","hotlist","disabled","removable"]],template:function(a,b){a&1&&(K(0,"b-hotlist-chip",0),T(1,"async"),T(2,"async"),T(3,"async"),N("removeHotlist",function(){b.idInternal==null?Xm("Missing id"):b.removeHotlist.emit()}),L());if(a&2){var c;I("hotlist",U(1,3,b.hotlist$))("disabled",U(2,5,b.isDisabled$)===!0)("removable",
(c=U(3,7,b.removable$))!=null?c:!1)}},dependencies:[MZ,Tx],encapsulation:2,changeDetection:0});var xFd=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],yFd=new dd("MAT_CARD_CONFIG"),zFd=function(){var a;this.appearance=((a=p(yFd,{optional:!0}))==null?void 0:a.appearance)||"raised"};zFd.\u0275fac=function(a){return new (a||zFd)};
zFd.\u0275cmp=D({type:zFd,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(a,b){a&2&&wg("mat-mdc-card-outlined",b.appearance==="outlined")("mdc-card--outlined",b.appearance==="outlined")("mat-mdc-card-filled",b.appearance==="filled")("mdc-card--filled",b.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(bg(),cg(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-elevated-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mat-card-outlined-container-color, var(--mat-sys-surface));border-radius:var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium));border-width:var(--mat-card-outlined-outline-width, 1px);border-color:var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mat-card-outlined-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mat-mdc-card-filled{background-color:var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest));border-radius:var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-filled-container-elevation, var(--mat-sys-level0))}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}\n'],
encapsulation:2,changeDetection:0});var AFd=function(){};AFd.\u0275fac=function(a){return new (a||AFd)};AFd.\u0275dir=af({type:AFd,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]});var BFd=function(){this.align="start"};BFd.\u0275fac=function(a){return new (a||BFd)};
BFd.\u0275dir=af({type:BFd,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-mdc-card-actions-align-end",b.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]});var CFd=function(){};CFd.\u0275fac=function(a){return new (a||CFd)};
CFd.\u0275cmp=D({type:CFd,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n      [mat-card-title], [mat-card-subtitle],\n      [matCardTitle], [matCardSubtitle]","*"],decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(a){a&1&&(bg(xFd),cg(0),Qf(1,"div",0),cg(2,1),Rf(),cg(3,2))},encapsulation:2,changeDetection:0});var OZ=function(){Z.apply(this,arguments);this.onAccept=new aQ;this.onDismiss=new aQ};Y(OZ,Z);OZ.\u0275dir=Z.\u0275dir;OZ.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId};OZ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(OZ)))(b||OZ)}}();
OZ.\u0275cmp=D({type:OZ,selectors:[["b-hotlist-recommendation-card"]],inputs:{hotlist:"hotlist"},outputs:{onAccept:"onAccept",onDismiss:"onDismiss"},standalone:!1,features:[Ef],decls:16,vars:3,consts:[[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body","hotlist-recommendation-card"],[1,"title"],[1,"name"],["target","_blank",3,"href"],[1,"description"],[1,"actions"],["type","button","mat-button","","color","primary",1,"medium","accept-button",3,"click"],["type","button","mat-button","","color",
"basic",1,"medium","dismiss-button",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"mat-card-header",2),Q(3," Suggested hotlist"),L(),K(4,"mat-card-content")(5,"h3",3)(6,"a",4),Q(7),L()(),K(8,"div",5)(9,"p"),Q(10),L()()(),K(11,"mat-card-actions",6)(12,"button",7),N("click",function(){return b.onAccept.emit(b.hotlist.hotlistId)}),Q(13,"Accept"),L(),K(14,"button",8),N("click",function(){return b.onDismiss.emit()}),Q(15,"Dismiss"),L()()()());a&2&&(B(6),I("href",b.url,Ne),B(),yg(b.hotlist.name),
B(3),yg(b.hotlist.description))},dependencies:[kB,gB,BFd,AFd,CFd],styles:['.onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.hotlist-recommendation-card[_ngcontent-%COMP%]{display:flex;width:200px;flex-direction:column;align-items:flex-start;border-radius:8px}.hotlist-recommendation-card[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;font-weight:500;font-size:.875rem;line-height:1.25rem;letter-spacing:.8px;text-transform:uppercase}.hotlist-recommendation-card[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%]{width:190px}.hotlist-recommendation-card[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{margin:5px 0;font-family:"Google Sans",Roboto,Arial,sans-serif;font-weight:500;font-size:1rem;line-height:1.5rem}.hotlist-recommendation-card[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-family:Roboto,Arial,sans-serif;font-size:.75rem;font-weight:400;letter-spacing:.025em;line-height:1rem;max-height:40px;overflow:hidden scroll}.hotlist-recommendation-card[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:flex;align-items:center;margin:10px 0 0;justify-content:space-evenly;width:inherit}']});var PZ=function(){this.issueFullFridge=p(gQ);this.recommendationsApi=p(mO);this.issueUserEventsService=p(lW);this.analytics=p(eQ);this.issueRecommendationFridge=p(iQ);this.ROUTES=qs;this.updateHotlistsInstantly=this.showHovercard=!0;this.onAccept=new aQ;this.hovercardConfig={showDelay:250,hideDelay:250,position:[l8c],triggerKey:[]}};PZ.prototype.getAriaLabel=function(a){return"suggested hotlist: "+a.name};
PZ.prototype.addHotlist=function(a){var b=this;return y(function(c){return c.nextAddress==1?b.issueId==null?c.return():b.updateHotlistsInstantly?z(c,b.issueFullFridge.updateHotlists(b.issueId,[a.toString()],[]),2):c.jumpTo(2):c.nextAddress!=4?(b.onAccept.emit(),b.analytics.trackEvent("hotlistRecommendation","accept",b.analyticsLabel),z(c,b.recommendationsApi.createUserEngagements([{parent:b.recommendationId,userEngagement:{type:"ACCEPTED"}}]),4)):z(c,fe(b.issueUserEventsService.logIssueUserEventForRecommendation(b.issueId,
"FEATURE_HOTLIST","EVENT_TYPE_ACCEPT",b.recommendationId)),0)})};
var Qtb=function(a){return y(function(b){if(b.nextAddress==1){if(a.issueId==null)return b.return();a.analytics.trackEvent("hotlistRecommendation","dismiss",a.analyticsLabel);return z(b,a.recommendationsApi.createUserEngagements([{parent:a.recommendationId,userEngagement:{type:"REJECTED"}}]),2)}return b.nextAddress!=3?z(b,fe(a.issueUserEventsService.logIssueUserEventForRecommendation(a.issueId,"FEATURE_HOTLIST","EVENT_TYPE_REJECT",a.recommendationId)),3):z(b,a.issueRecommendationFridge.poke(a.issueId+
"-HOTLIST"),0)})};PZ.\u0275fac=function(a){return new (a||PZ)};
PZ.\u0275cmp=D({type:PZ,selectors:[["b-hotlist-recommendation-chip"]],inputs:{hotlist:"hotlist",recommendationId:"recommendationId",issueId:"issueId",analyticsLabel:"analyticsLabel",showHovercard:"showHovercard",updateHotlistsInstantly:"updateHotlistsInstantly"},outputs:{onAccept:"onAccept"},standalone:!1,decls:1,vars:1,consts:[["card","onedevHovercard"],[1,"chip",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],["type","button","mat-icon-button","",1,"add-button","vertical-centered",
3,"click"],["svgIcon","add"],["svgIcon","issue-status-new",1,"vertical-centered"],[1,"name"],[1,"keep-focus-ring",3,"href"],[3,"onAccept","onDismiss","hotlist"]],template:function(a,b){a&1&&F(0,Rtb,11,10);a&2&&G(b.hotlist?0:-1)},dependencies:[Jy,kB,iB,KK,SK,OZ],styles:["[_nghost-%COMP%]{margin-right:8px;display:inline-block;vertical-align:middle;white-space:nowrap}[_nghost-%COMP%]     mat-icon svg{width:50%}.chip[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);display:inline-flex;align-items:center;height:18px;font-size:.75rem;font-weight:normal;border-style:dashed;border-width:.5px;border-color:var(--border-color);border-radius:100px}.chip[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]{height:25px;width:25px;line-height:25px;--mat-icon-button-icon-size: 24px}.chip[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}"]});var DFd=[[["","before",""]]],Vtb=function(a,b){return b.name},QZ=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(uu);this.issueFullFridge=p(gQ);this.issueInteractionsTracking=p(CS);this.errorHandler=p(pO);this.eventsForIssueFridge=p(NP);this.liveAnnouncer=p(dz);this.hotlistPickerService=p(FY);this.issueRecommendationFridge=p(iQ);this.analytics=p(eQ);this.isInternalSession=this.activeSession.isInternalSession();this.HOTKEYS=Xr;this.issueId$=new uf(1);this.issue$=this.issueId$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));
this.hotlistIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].hotlistId)!=null?c:[]}));this.recommendations$=this.issueId$.pipe(yf(function(b){return a.issueRecommendationFridge.watch(b+"-HOTLIST")}),A(function(b){return((b==null?void 0:b.recommendations)||[]).filter(function(c){return c.confidence==="VERY_HIGH"}).filter(Pm).slice(0,2)}));this.textOfHotlistBtn$=this.hotlistIds$.pipe(A(function(b){return b.length}),A(function(b){return b<=5?"Add Hotlist":""}))};Y(QZ,Z);
QZ.\u0275dir=Z.\u0275dir;QZ.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.hotlistIds$.subscribe(function(){if(a.isInternalSession){var b=Br(a.issueId$);a.issueRecommendationFridge.poke(b+"-HOTLIST")}}));this.subscriptions.add(this.recommendations$.subscribe(function(b){b.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","IDP")}))};QZ.prototype.openHotlistModal=function(){var a=this;return y(function(b){return z(b,cCd(a.hotlistPickerService,a.issue$),0)})};
var Stb=function(a,b){var c,d;return y(function(e){switch(e.nextAddress){case 1:return z(e,fe(a.issueId$),2);case 2:return c=e.yieldResult,Tr(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1}),Wd(e,3,4),z(e,a.issueFullFridge.removeHotlists(c,[String(b)]),6);case 6:return z(e,a.liveAnnouncer.announce("Hotlist removed successfully"),4);case 4:Xd(e);a.eventsForIssueFridge.poke(c);Zd(e,0);break;case 3:d=$d(e),rO(a.errorHandler,d),e.jumpTo(4)}})};
da.Object.defineProperties(QZ.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});QZ.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(QZ)))(b||QZ)}}();
QZ.\u0275cmp=D({type:QZ,selectors:[["b-issue-hotlists"]],inputs:{issueId:"issueId"},standalone:!1,features:[Ef],ngContentSelectors:["[before]"],decls:2,vars:3,consts:[[1,"hotlist-container","chip-container"],["type","button","mat-stroked-button","","aria-label","Add Hotlist","matTooltip","Add Hotlist",1,"small","add-hotlists-btn",3,"onHotkey","click","hotkey"],["svgIcon","add",1,"icon-xs"],["removable","check-acl",3,"id"],["removable","check-acl",3,"removeHotlist","id"],["analyticsLabel","IDP",3,
"hotlist","recommendationId","issueId"]],template:function(a,b){a&1&&(bg(DFd),F(0,Ytb,11,11,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.hotlistIds$))?0:-1,c)}},dependencies:[Jy,NZ,PZ,pU,kB,gB,Tx],styles:[".add-hotlists-btn[_ngcontent-%COMP%], button.gmat-mdc-button[_ngcontent-%COMP%]:not(.mat-mdc-icon-button).add-hotlists-btn{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text);background-color:#fff;background-color:var(--surface-default);line-height:22px;height:22px;min-width:22px;padding:0 8px;border-radius:11px}.add-hotlists-btn.icon-only[_ngcontent-%COMP%]{--mat-button-outlined-icon-spacing: 0px;--mat-button-outlined-icon-offset: 0px}.add-hotlists-btn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);--mat-button-outlined-icon-spacing: 2px;width:16px;height:16px;line-height:16px}.hotlist-container[_ngcontent-%COMP%]{max-height:72px;overflow-y:auto;padding-bottom:5px;align-items:center;align-self:start;display:flex;flex-wrap:wrap;gap:8px;line-height:22px}[_nghost-%COMP%]     .chip-container b-hotlist-chip, [_nghost-%COMP%]     .chip-container b-hotlist-recommendation-chip, [_nghost-%COMP%]     .chip-container .b-chip{margin-right:0}"]});var EFd=["issueTitleEl"],FFd=["issueTitleInputEl"],RZ=function(){this.issuePermissionService=p($Q);this.issueFullFridge=p(gQ);this.bannedWordsChecker=p(PW);this.disabled=!1;this.titleChanged=new aQ;this.isSaving=this.isEditMode=!1},Ztb=function(a){a.isEditMode=!a.isEditMode;a.isEditMode?setTimeout(function(){a.issueTitleInputEl.nativeElement.focus()},0):a.bannedWordsChecker.reset()};
RZ.prototype.saveTitle=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return(c=(b=a.issueTitleInputEl)==null?void 0:b.nativeElement.value)&&a.isModified(c)?z(e,a.bannedWordsChecker.check(c,a.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",a.componentId),3):e.jumpTo(2);if(e.nextAddress!=2){d=e.yieldResult;if(!d)return a.issueTitleInputEl.nativeElement.focus(),e.return();GFd(a,c.trim());a.bannedWordsChecker.reset()}a.isEditMode=!1;ae(e)})};
var GFd=function(a,b){y(function(c){a.isSaving=!0;return z(c,fe(fhd(a.issueFullFridge,a.issueId,b)).finally(function(){a.isSaving=!1;a.titleChanged.next(b)}),0)})};RZ.prototype.isModified=function(a){return a!==this.titlePlain};RZ.prototype.onInputBlur=function(){this.bannedWordsChecker.showWarning()||this.saveTitle()};
da.Object.defineProperties(RZ.prototype,{title:{configurable:!0,enumerable:!0,set:function(a){this.titlePlain=a=a!=null?a:void 0;this.titleTruncated=p7a(a,300);this.isLongTitle=a==null?!1:a.length>=300}}});RZ.\u0275fac=function(a){return new (a||RZ)};
RZ.\u0275cmp=D({type:RZ,selectors:[["issue-title"]],viewQuery:function(a,b){a&1&&(hg(EFd,5),hg(FFd,5));if(a&2){var c;lg(c=mg())&&(b.issueTitleEl=c.first);lg(c=mg())&&(b.issueTitleInputEl=c.first)}},inputs:{title:"title",componentId:"componentId",issueId:"issueId",disabled:"disabled",hasAclToEdit:"hasAclToEdit"},outputs:{titleChanged:"titleChanged"},standalone:!1,features:[Gg([PW])],decls:6,vars:7,consts:[["issueTitleInputEl",""],["issueTitleEl",""],[1,"issue-title-container","flex-kids-x"],["subscriptSizing",
"dynamic",1,"full-width",3,"banned-words-warning"],[1,"heading-m"],["type","button","mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"small","align-self-center",3,"disabled"],[1,"banned-words-warning","break-word"],["subscriptSizing","dynamic",1,"full-width"],["matInput","","aria-label","Enter a new title",1,"heading-m","full-width",3,"keydown","blur","value"],["type","button","mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",
1,"small","align-self-center",3,"click","disabled"],["svgIcon","edit-outline",1,"icon-xxs"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"]],template:function(a,b){a&1&&(K(0,"div",2),F(1,$tb,4,5,"mat-form-field",3)(2,aub,3,2,"h3",4),F(3,bub,2,1,"button",5),L(),F(4,cub,4,1,"p",6),T(5,"async"));a&2&&(wg("full-width",b.isEditMode),B(),G(b.isEditMode?1:2),B(2),G(b.hasAclToEdit?3:-1),B(),G(U(5,5,
b.bannedWordsChecker.showWarning$)?4:-1))},dependencies:[Jy,kB,iB,vK,nA,HD,SD,VD,FE,Tx],styles:["[_nghost-%COMP%]{display:flex;align-items:center}h3[_ngcontent-%COMP%]{vertical-align:middle;margin-bottom:-1px;word-break:break-word}[_nghost-%COMP%]     mat-form-field{min-width:200px;max-width:100%;padding-bottom:8px}[_nghost-%COMP%]     mat-form-field .mat-mdc-text-field-wrapper{padding-left:0}[_nghost-%COMP%]     mat-form-field .mat-mdc-form-field-infix{min-height:initial;padding:0;height:22px}[_nghost-%COMP%]     mat-form-field .mat-mdc-form-field-infix .mat-mdc-form-field-input-control{font-size:1.125rem}[_nghost-%COMP%]     .gmat-mdc-form-field.mat-primary.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled){background-color:rgba(0,0,0,0)}[_nghost-%COMP%]     .gmat-mdc-form-field.mat-primary.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--text-high-contrast)}.issue-title-container[_ngcontent-%COMP%]{display:inline-flex}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--c700);margin-top:-2px}.banned-words-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-text)}"],
changeDetection:0});var HFd={FOCUS_SYNC:"FOCUS_SYNC",REMAIN_ACTIVE:"REMAIN_ACTIVE"},IFd={DISABLED:"DISABLED",INTERNAL_SORT:"INTERNAL_SORT",EXTERNAL_SORT:"EXTERNAL_SORT"},JFd={ALL:"ALL",NONE:"NONE"},KFd=new Map([["SEVEN_DAY_VIEW_COUNT","7d Views"],["ALERTS","Alerts"],["ASSIGNEE","Assignee"],["CHANGELIST","CLs"],["COMPONENT_PATH","Component"],["CREATED_TIME","Created"],["DUPLICATE_COUNT","Dupes"],["ENRICHMENT_CATEGORIES","Source"],["ISSUE_ID","ID"],["MODIFIED_TIME","Last Modified"],["PRIORITY","P"],["PROGRESS","Progress"],
["RELATIVE_MODIFIED_TIME","Modified"],["REPORTER","Reporter"],["STATUS","Status"],["TEAM","Team"],["TIMEFRAME","Timeframe"],["TITLE","Title"],["TRIAGER","Triager"],["TYPE","Type"],["VOTE_COUNT","+1s"]]),LFd=[{type:"TITLE"},{type:"TYPE"},{type:"TEAM"},{type:"ISSUE_ID"},{type:"ASSIGNEE"},{type:"STATUS"}],MFd=[{type:"TITLE"},{type:"TYPE"},{type:"ISSUE_ID"},{type:"ASSIGNEE"},{type:"STATUS"}],NFd=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}],
OFd=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"PROGRESS"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}],PFd=[{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"ISSUE_ID"}],QFd={modes:{assignee:"avatar-if-open",modifiedTime:"relativepast"},rowLimit:15},RFd={showActiveIndicator:!0,enableDragging:!0,showMenu:!0,modes:{assignee:"avatar-if-open"},hideColumnHeaders:!0};var SZ=function(){this.liveAnnouncer=p(dz);this.originalItems=[];this.allowRemoval=!1;this.itemsOutput=new aQ;this.hasChanges=new aQ(!1);this.items=[];this.grabbed=!1};SZ.prototype.ngOnInit=function(){this.originalItems.forEach(function(a){a.enabled===void 0&&(a.enabled=!0);return a});this.items=nm(this.originalItems)};var SFd=function(a){a.items.sort(function(b,c){return b.name.localeCompare(c.name)});a.detectChanges()};
SZ.prototype.drop=function(a){bs(this.items,a.previousIndex,a.currentIndex);this.detectChanges()};var eub=function(a,b){return b>0?(bs(a.items,b,b-1),a.detectChanges(),!0):!1},fub=function(a,b){return b<a.items.length-1?(bs(a.items,b,b+1),a.detectChanges(),!0):!1};SZ.prototype.trackByFn=function(){return-1};SZ.prototype.onFocus=function(a){this.liveAnnouncer.announce(this.items[a].name+" focused at position "+(a+1)+" of "+this.items.length+". Press space to grab the item.")};
SZ.prototype.onKeyDown=function(a,b){if(!(a.target instanceof HTMLInputElement&&a.target.type==="checkbox"))switch(a.key){case " ":a.preventDefault();TFd(this,b);break;case "Tab":this.grabbed&&TFd(this,b);break;case "ArrowUp":UFd(this,a);break;case "ArrowDown":UFd(this,a)}};
var TFd=function(a,b){a.grabbed?(a.grabbed=!1,a.grabbedIndex=void 0,a.liveAnnouncer.announce(a.items[b].name+" dropped at position "+(b+1)+" of "+a.items.length+".")):(a.grabbed=!0,a.grabbedIndex=b,a.liveAnnouncer.announce(a.items[b].name+" grabbed at position "+(b+1)+" of "+a.items.length+". Press up and down arrow to move the item."))},UFd=function(a,b){if(a.grabbed){var c=document.activeElement;if(c&&a.grabbedIndex!==void 0){if(b.key==="ArrowUp"){if(eub(a,a.grabbedIndex)){var d=c.previousElementSibling;
a.grabbedIndex--}}else fub(a,a.grabbedIndex)&&(d=c.nextElementSibling,a.grabbedIndex++);d&&(d.focus(),a.liveAnnouncer.announce(a.items[a.grabbedIndex].name+" moved to position "+(a.grabbedIndex+1)+" of "+a.items.length+". Press space to drop the item."))}}};SZ.prototype.detectChanges=function(){var a=!mm(this.items,this.originalItems);this.itemsOutput.emit(this.items);this.hasChanges.emit(a)};SZ.\u0275fac=function(a){return new (a||SZ)};
SZ.\u0275cmp=D({type:SZ,selectors:[["b-reorder-items"]],inputs:{originalItems:"originalItems",allowRemoval:"allowRemoval"},outputs:{itemsOutput:"items",hasChanges:"hasChanges"},standalone:!1,decls:3,vars:0,consts:[["cdkDropList","",3,"cdkDropListDropped"],["cdkDrag","","tabindex","0"],["cdkDrag","","tabindex","0",3,"keydown","focus"],[3,"checked","aria-label"],["cdkDragHandle","","svgIcon","drag-indicator",1,"drag-handle"],[1,"arrows"],["type","button","mat-icon-button","","aria-label","Move the item up",
3,"click"],["svgIcon","arrow-up"],["type","button","mat-icon-button","","aria-label","Move the item down",3,"click"],["svgIcon","arrow-down"],[3,"change","checked","aria-label"]],template:function(a,b){a&1&&(K(0,"ol",0),N("cdkDropListDropped",function(c){return b.drop(c)}),Nf(1,gub,10,8,"li",1,b.trackByFn,!0),L());a&2&&(B(),Of(b.items))},dependencies:[Jy,MV,LV,JV,kB,iB,hI],styles:["ol[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}li[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);font-size:.8125rem;padding:10px;display:-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}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%]{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.2,1);transition:-webkit-transform .25s cubic-bezier(0,0,.2,1);transition:transform .25s cubic-bezier(0,0,.2,1);transition:transform .25s cubic-bezier(0,0,.2,1),-webkit-transform .25s cubic-bezier(0,0,.2,1)}"],
changeDetection:0});var VFd=function(){this.data=p(TA);this.dialogRef=p(RA);this.originalColumns=this.data.columnItems;this.columns=[].concat(q(this.originalColumns));this.hasChanges=!1};VFd.prototype.onClose=function(){this.dialogRef.close(this.columns)};VFd.\u0275fac=function(a){return new (a||VFd)};
VFd.\u0275cmp=D({type:VFd,selectors:[["b-configure-columns-dialog"]],standalone:!1,decls:12,vars:3,consts:[["reorderItems",""],["mat-dialog-title",""],[1,"flex-kids-x","space-between","align-items-center"],[1,"margin-none"],["mat-dialog-content",""],[3,"items","hasChanges","originalItems","allowRemoval"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action","save",
3,"click","disabled"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"div",2)(2,"h1",3);Q(3," Customize columns for triage view ");L()()();K(4,"div",4)(5,"b-reorder-items",5,0);N("items",function(d){u(c);return v(b.columns=d)})("hasChanges",function(d){u(c);return v(b.hasChanges=d)});L()();K(7,"div",6)(8,"button",7);N("click",function(){u(c);return v(b.dialogRef.close())});Q(9," Cancel ");L();K(10,"button",8);N("click",function(){u(c);return v(b.onClose())});Q(11," Save ");L()()}a&2&&(B(5),
I("originalItems",b.originalColumns)("allowRemoval",!0),B(5),I("disabled",!b.hasChanges))},dependencies:[SZ,kB,gB,XA,ZA,YA],encapsulation:2,changeDetection:0});var TZ=function(){this.JOINING_ARROW="\u2192";this.showIcon=!0};da.Object.defineProperties(TZ.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){if(a!=null){var b=sUa(1049928)(a);this.startDate=bo(b==null?void 0:b.dateValue);a=sUa(1049953)(a);this.endDate=bo(a==null?void 0:a.dateValue);this.startDateShortStr=FTa(this.startDate);this.endDateShortStr=FTa(this.endDate)}}}});TZ.\u0275fac=function(a){return new (a||TZ)};
TZ.\u0275cmp=D({type:TZ,selectors:[["issue-timeframe"]],inputs:{issue:"issue",showIcon:"showIcon"},standalone:!1,decls:1,vars:1,consts:[[1,"flex-kids-x","align-items-center"],["svgIcon","calendar_month_24px","title","Start date and/or end date for this project",1,"icon-m","margin-xs-right"],[1,"margin-xs-right","date",3,"title"],[1,"date",3,"title"],[1,"muted"]],template:function(a,b){a&1&&F(0,lub,5,3,"div",0);a&2&&G(b.startDate||b.endDate?0:-1)},dependencies:[Jy,Wx],styles:["[_nghost-%COMP%] {\n      white-space: nowrap;\n    }\n    .date[_ngcontent-%COMP%] {\n      display: inline-block;\n    }"],
changeDetection:0});var UZ=function(){this.makePie=nub;this.total=this.closed=0;this.useXofYLabel=!1};da.Object.defineProperties(UZ.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){a!=null&&(this.total=a.descendantCount,this.closed=this.total-a.openDescendantCount)}}});UZ.\u0275fac=function(a){return new (a||UZ)};
UZ.\u0275cmp=D({type:UZ,selectors:[["progress-pie"]],inputs:{issue:"issue",closed:"closed",total:"total"},standalone:!1,decls:1,vars:1,consts:[[1,"flex-kids-x","align-items-center",3,"title"],[1,"flex-kids-x","align-items-center",3,"click","title"],[1,"pie","margin-s-right"]],template:function(a,b){a&1&&F(0,wub,7,14,"div",0);a&2&&G(b.total>0?0:-1)},dependencies:[Zx],encapsulation:2,changeDetection:0});var WFd=Wn().user.email,qt={ASSIGNED_TO_ME_AND_OPEN:{key:"ASSIGNED_TO_ME_AND_OPEN",displayAs:"Assigned to me",check:function(a){var b,c=(b=a.snapshot[0].assigneeUser)==null?void 0:b.emailAddress;return c?c===WFd&&jo(a):!1},queryFragment:"assignee:me status:open",tooltip:"Open issues with me as the assignee"},ASSIGNED_TO_ME:{key:"ASSIGNED_TO_ME",displayAs:"Assigned to me",check:function(a){var b;return(a=(b=a.snapshot[0].assigneeUser)==null?void 0:b.emailAddress)?a===WFd:!1},queryFragment:"assignee:me",
tooltip:"Issues with me as the assignee"},OPEN:{key:"OPEN",displayAs:"Open",check:function(a){return jo(a)},queryFragment:"status:open",tooltip:'Issues that match "status:open"'},FIXED:{key:"FIXED",displayAs:"Fixed",check:aUa,queryFragment:"status:fixed"},BROAD_IN_PROGRESS:{key:"BROAD_IN_PROGRESS",displayAs:"Assigned",check:function(a){return $Ta(a,"ASSIGNED")||$Ta(a,"ACCEPTED")},queryFragment:"status:(assigned | accepted)",tooltip:"Issues that are either in progress or assigned to someone"},NEWLY_FILED:{key:"NEWLY_FILED",
displayAs:"Newly filed",check:function(a){var b=b===void 0?6048E5:b;var c=Date.now(),d,e,f=((e=(d=a.aggregatedData)==null?void 0:d.createdTimeMicros)!=null?e:0)/1E3;return c-f<b&&!(a.version>0)&&jo(a)},queryFragment:"created:7d commentcount<2 status:open",tooltip:"Open issues created in the last seven days that have not been modified"},RECENTLY_ACTIVE:{key:"RECENTLY_ACTIVE",displayAs:"Recently active",check:function(a){var b=b===void 0?6048E5:b;var c=Date.now(),d,e=((d=a.majorModifiedTimeMicros)!=
null?d:0)/1E3;return c-e<b&&a.version>0&&jo(a)},queryFragment:"modified:7d commentcount>1 status:open",tooltip:'Open issues with edits or comments in the last seven days (excluding "creation")'},HIGH_PRIORITY:{key:"HIGH_PRIORITY",displayAs:"High Priority",check:function(a){var b=["P0","P1"];b=b===void 0?[]:b;return b.includes(nUa(a))&&jo(a)},queryFragment:"priority:(p0 | p1) status:open",tooltip:"Open issues that are P0 or P1"},TRENDING:{key:"TRENDING",displayAs:"Trending",check:function(a,b,c){return wUa(b,
c)},queryFragment:'(no server query available for "is trending")',tooltip:"Issues with unusually high view activity"},PROGRESS:{key:"PROGRESS",displayAs:"Progress",check:function(a){return a.descendantCount>0},queryFragment:"descendantcount>0",tooltip:"Issues with child subtasks"}};var XFd=function(){this.changes=new qf};XFd.\u0275fac=function(a){return new (a||XFd)};XFd.\u0275prov=Dc({token:XFd,factory:XFd.\u0275fac,providedIn:"root"});var YFd=new dd("MAT_SORT_DEFAULT_OPTIONS"),VZ=function(a){this._defaultOptions=a;this._initializedStream=new uf(1);this.sortables=new Map;this._stateChanges=new qf;this.start="asc";this._direction="";this.disabled=!1;this.sortChange=new Ti;this.initialized=this._initializedStream};h=VZ.prototype;h.register=function(a){this.sortables.set(a.id,a)};h.deregister=function(a){this.sortables.delete(a.id)};
h.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=(d=(c=a==null?void 0:a.disableClear)!=null?c:this.disableClear)!=null?d:!((b=this._defaultOptions)==null||!b.disableClear);b=["asc","desc"];(a.start||this.start)=="desc"&&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})};h.ngOnInit=function(){this._initializedStream.next()};
h.ngOnChanges=function(){this._stateChanges.next()};h.ngOnDestroy=function(){this._stateChanges.complete();this._initializedStream.complete()};da.Object.defineProperties(VZ.prototype,{direction:{configurable:!0,enumerable:!0,get:function(){return this._direction},set:function(a){this._direction=a}}});VZ.\u0275fac=function(a){return new (a||VZ)(Ve(YFd,8))};
VZ.\u0275dir=af({type:VZ,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",$g],disabled:[2,"matSortDisabled","disabled",$g]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[jx]});var ZFd=["*",[["","matSortHeaderIcon",""]]],WZ=function(){this._intl=p(XFd);this._sort=p(VZ,{optional:!0});this._columnDef=p("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});this._changeDetectorRef=p(Cx);this._focusMonitor=p(Ny);this._elementRef=p(Hd);this._ariaDescriber=p(fz,{optional:!0});this._animationsDisabled=mi();this._recentlyCleared=ng.apply(null,[null].concat(q([])));this.arrowPosition="after";this.disabled=!1;this._sortActionDescription="Sort";p(Zh).load(cA);var a=p(YFd,{optional:!0});if(a==
null?0:a.arrowPosition)this.arrowPosition=a==null?void 0:a.arrowPosition};h=WZ.prototype;h.ngOnInit=function(){var a=this;!this.id&&this._columnDef&&(this.id=this._columnDef.name);this._sort.register(this);this._renderChanges=te(this._sort._stateChanges,this._sort.sortChange).subscribe(function(){return a._changeDetectorRef.markForCheck()});this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container");this._updateSortActionDescription(this._sortActionDescription)};
h.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(){Promise.resolve().then(function(){return a._recentlyCleared.set(null)})})};h.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._sort.deregister(this);var a;(a=this._renderChanges)==null||a.unsubscribe();if(this._sortButton){var b;(b=this._ariaDescriber)==null||hz(b,this._sortButton,this._sortActionDescription)}};
h._toggleOnInteraction=function(){if(!this._isDisabled()){var a=this._isSorted(),b=this._sort.direction;this._sort.sort(this);this._recentlyCleared.set(a&&!this._isSorted()?b:null)}};h._handleKeydown=function(a){if(a.keyCode===32||a.keyCode===13)a.preventDefault(),this._toggleOnInteraction()};h._isSorted=function(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")};h._isDisabled=function(){return this._sort.disabled||this.disabled};
h._getAriaSortAttribute=function(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"};h._renderArrow=function(){return!this._isDisabled()||this._isSorted()};h._updateSortActionDescription=function(a){if(this._sortButton){var b;(b=this._ariaDescriber)==null||hz(b,this._sortButton,this._sortActionDescription);var c;(c=this._ariaDescriber)==null||gz(c,this._sortButton,a)}this._sortActionDescription=a};
da.Object.defineProperties(WZ.prototype,{sortActionDescription:{configurable:!0,enumerable:!0,get:function(){return this._sortActionDescription},set:function(a){this._updateSortActionDescription(a)}}});WZ.\u0275fac=function(a){return new (a||WZ)};
WZ.\u0275cmp=D({type:WZ,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(a,b){a&1&&N("click",function(){return b._toggleOnInteraction()})("keydown",function(c){return b._handleKeydown(c)})("mouseleave",function(){return b._recentlyCleared.set(null)});a&2&&(If("aria-sort",b._getAriaSortAttribute()),wg("mat-sort-header-disabled",b._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled",
"disabled",$g],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",$g]},exportAs:["matSortHeader"],attrs:["mat-sort-header",""],ngContentSelectors:["*","[matSortHeaderIcon]"],decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],"viewBox;0 -960 960 960;focusable;false;aria-hidden;true".split(";"),["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(a,
b){a&1&&(bg(ZFd),Qf(0,"div",0)(1,"div",1),cg(2),Rf(),F(3,Aub,3,0,"div",2),Rf());a&2&&(wg("mat-sort-header-sorted",b._isSorted())("mat-sort-header-position-before",b.arrowPosition==="before")("mat-sort-header-descending",b._sort.direction==="desc")("mat-sort-header-ascending",b._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",b._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",b._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",b._animationsDisabled),
If("tabindex",b._isDisabled()?null:0)("role",b._isDisabled()?null:"button"),B(3),G(b._renderArrow()?3:-1))},styles:[".mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;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-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow>svg,.mat-sort-header-arrow [matSortHeaderIcon]{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(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}\n"],
encapsulation:2,changeDetection:0});var $Fd={showActiveIndicator:!0,showMenu:!0,menu:{includeGoToIssueItem:!0},sortMode:"INTERNAL_SORT",activeRowMode:"FOCUS_SYNC"},XZ=function(){Z.call(this);var a=this;this.issueFridge=p(XP);this.router=p(fF);this.domSafe=p(mR);this.llmService=p(LY);this.matDialog=p(UA);this.cdr=p(bQ,{self:!0});this.isOpen=function(b){return jo(b)};this.isSingleIssue=function(b,c){return c.issueIds.length===1};this.isMultiIssue=function(b,c){return c.issueIds.length>1};this.isClosed=ZTa;this.isUnread=cUa;this.getAssigneeString=
function(b){var c,d;b=wm(b==null?void 0:(c=b.snapshot)==null?void 0:(d=c[0])==null?void 0:d.assigneeUser);return Zn(b)?b:void 0};this.userToLossyEmail=wm;this.toMatSortDirection=KRa;this.idsToString=twb;this.ClickTargetsForNavigation=JFd;this.SortMode=IFd;this.ActiveRowMode=HFd;this.IssueFieldType=xbd;this.selection=new xz(!0,[]);this.issueIds$=new Mj([]);this.menuItemFactory=function(){return[]};this.showReadStatus=!1;this.alerts=[];this.enrichmentCategoriesFunction=function(){return[]};this.optionsInternal=
$Fd;this.activeIssueChange=new aQ;this.rowClick=new aQ;this.sortChange=new aQ;this.columnsChange=new aQ;this.selectedIssuesChange=new aQ;this.issueNavigated=new aQ;this.rowLimit$=new Mj(this.options.rowLimit);this.DEFAULT_DATETIME_MODE="datetime";this.DEFAULT_MENU_OPTIONS={buttonIcon:"more-settings-vertical",buttonLabel:"More options"};this.internalFilters=new aR;this.goToIssueItemFactory=function(b){return{type:"action",label:"Go to issue",action:function(c){a.navigateToIssue(c,b)},title:"Go to issue",
icon:"arrow-forward"}};this.customFieldIds=[];this.customFieldNames=new Map;this.dataColumns=[];this.tableColumns=[];this.columnItems=[];this.editableColumns=!1;this.activeSort$=new Mj(void 0);this.allRows$=this.issueIds$.pipe(Cr(),A(function(b){return b.map(function(c){return{issueIds:c,issue$:c.length===1?te(a.issueFridge.watch(c[0]),a.issueFridge.watchOneError(c[0]).pipe(A(function(){}))):ce(void 0),summaryTitle$:ne(function(){return vCd(a.llmService,c)})}})}),vf({refCount:!0,bufferSize:1}));this.allIssues$=
this.allRows$.pipe(yf(function(b){return ie(b.map(function(c){return c.issue$}))}),A(function(b){return b.filter(Pm)}),nf(),vf({bufferSize:1,refCount:!0}));this.allIssuesAreLoaded$=this.allRows$.pipe(yf(function(b){return ie(b.map(function(c){return c.issue$.pipe(xf(null))}))}),A(function(b){return b.every(function(c){return c!==null})}),nf(),vf({bufferSize:1,refCount:!0}));this.unarchivedRows$=this.allRows$.pipe(hf(this.allIssuesAreLoaded$),A(function(b){var c=m(b);b=c.next().value;return c.next().value?
b.filter(function(d){var e;return!((e=ko(d))==null?0:e.isArchived)}):b}));this.unarchivedRows$.pipe(A(function(b){return b.length}));this.sortRows=Sd(hf(this.activeSort$,this.allIssuesAreLoaded$),A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;return c.next().value&&a.options.sortMode==="INTERNAL_SORT"?uwb(b,d):b}));this.filterRows=Sd(hf(this.internalFilters.value$),yf(function(b){b=m(b);var c=b.next().value;var d=b.next().value;return d.size===0?ce(c):ie(c.map(function(e){return e.issue$})).pipe(A(function(e){return c.filter(function(f,
g){return e[g]?xub(d,g,e):!0})}))}));this.limitRows=Sd(hf(this.rowLimit$),A(function(b){var c=m(b);b=c.next().value;return(c=c.next().value)?b.slice(0,c):b}));this.filteredRows$=this.unarchivedRows$.pipe(this.filterRows);this.trendingChipsById$=this.unarchivedRows$.pipe(hf(this.allIssuesAreLoaded$),A(function(b){b=m(b);var c=b.next().value;if(b.next().value){b=c.map(ko).map(function(g){return g==null?void 0:g.userActivityStats});b={views24h:b.map(function(g){var k;return(k=g==null?void 0:g.oneDayViewCount)!=
null?k:0}),views7d:b.map(function(g){var k;return(k=g==null?void 0:g.sevenDayViewCount)!=null?k:0}),views30d:b.map(function(g){var k;return(k=g==null?void 0:g.thirtyDayViewCount)!=null?k:0})};var d={};c=m(c.entries());for(var e=c.next();!e.done;e=c.next()){var f=m(e.value);e=f.next().value;f=f.next().value.issueIds;(e=vwb(b,e))&&(d[f[0]]=e)}return d}}));this.rows$=this.filteredRows$.pipe(this.limitRows,this.sortRows);this.rowCountAfterFilters$=this.unarchivedRows$.pipe(this.filterRows,A(function(b){return b.length}));
this.hiddenRowCount$=ie([this.unarchivedRows$,this.rows$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b.length-c.length}),nf());this.trackBy=function(b,c){return twb(c.issueIds)};this.correctedDisplayedRows=new gg;this.correctedRows$=ne(function(){return ie([a.rows$,a.displayedRows.changes.pipe(xf(void 0))])}).pipe(jf(0),A(function(b){b=m(b).next().value;var c=new Map(a.displayedRows.map(function(d){return[twb(d.row.issueIds),d]}));return b.map(function(d){return c.get(twb(d.issueIds))}).filter(Pm)}));
this.dataColumns=[].concat(q(LFd));this.tableColumns=this.getRenderableColumns(this.dataColumns);this.columnItems=aGd(this,this.dataColumns)};Y(XZ,Z);XZ.\u0275dir=Z.\u0275dir;XZ.prototype.getMenuItems=function(a){var b=[],c;((c=this.options.menu)==null?0:c.includeGoToIssueItem)&&b.push(this.goToIssueItemFactory(a));b.push.apply(b,q(this.menuItemFactory(a)));return b};
var cGd=function(a,b){var c,d;return y(function(e){c=b.filter(function(f){return f.type==="CUSTOM_FIELD"});a.customFieldIds=sq(c.map(function(f){return f.customFieldId}),function(f){return f});d=a.customFieldIds.filter(function(f){return!a.customFieldNames.has(f)||a.customFieldNames.get(f)===""+f});return d.length?z(e,bGd(a,d),0):e.jumpTo(0)})},bGd=function(a,b){var c,d,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1)return z(w,fe(a.allIssues$),2);c=w.yieldResult;d=m(b);e=d.next();for(f={};!e.done;f=
{id$jscomp$511:void 0},e=d.next()){f.id$jscomp$511=e.value;g=m(c);for(k=g.next();!k.done;k=g.next())if(l=k.value,r=l.customFields.find(function(x){return function(C){return C.customFieldId===x.id$jscomp$511}}(f))){a.customFieldNames.set(f.id$jscomp$511,r.name);break}a.customFieldNames.has(f.id$jscomp$511)||a.customFieldNames.set(f.id$jscomp$511,""+f.id$jscomp$511)}ae(w)})};
XZ.prototype.getRenderableColumns=function(a){var b=[];this.options.showActiveIndicator&&b.push("active-indicator");this.options.enableSelection&&b.push("selection");this.options.enableDragging&&b.push("drag-handle");this.editableColumns&&b.push("edit-columns-button");a=a.map(function(c){return c.type==="CUSTOM_FIELD"?"CUSTOM_FIELD-"+c.customFieldId:c.type});b.push.apply(b,q(a));this.options.showMenu&&b.push("menu");return b};
var aGd=function(a,b){var c=function(g,k){if(g.type==="CUSTOM_FIELD"){var l;var r=(l=a.customFieldNames.get(g.customFieldId))!=null?l:""+g.customFieldId}else{var w;r=(w=KFd.get(g.type))!=null?w:g.type}return{name:r,data:g,enabled:k}};b=b.map(function(g){return c(g,!0)});var d,e,f=(e=(d=a.options.optionalColumns)==null?void 0:d.map(function(g){return c(g,!1)}))!=null?e:[];d=[].concat(q(b),q(f));return sq(d,function(g){return g.name})};XZ.prototype.ngOnInit=function(){this.initialSort&&this.activeSort$.next(this.initialSort)};
XZ.prototype.ngAfterViewInit=function(){var a=this;this.correctedRows$.pipe(zf(this.destroyed$)).subscribe(function(b){a.correctedDisplayedRows.reset(b);kg(a.correctedDisplayedRows);var c;((c=a.focusManager)==null?0:c.activeItem)&&qz(a.focusManager,a.focusManager.activeItem)});this.focusManager=pz(new jxd(this.correctedDisplayedRows,swb));this.focusManager.change.pipe(zf(this.destroyed$)).subscribe(function(){var b,c,d,e=(b=a.focusManager)==null?void 0:(c=b.activeItem)==null?void 0:(d=c.row)==null?
void 0:d.issueIds;e&&a.activeIssueChange.emit(e)})};var gwb=function(a,b,c){var d;(d=a.focusManager)==null||d.setActiveItem(c);var e;a.rowClick.emit((e=c.row)==null?void 0:e.issueIds);var f;d=(f=a.options.navigationOptions)==null?void 0:f.clickTargets;switch(d){case void 0:case "ALL":var g;a.navigateToIssue(b,(g=c.row)==null?void 0:g.issueIds[0]);break;case "NONE":break;default:wb(d)}};h=XZ.prototype;h.getDisplayName=function(a){var b;return(b=KFd.get(a))!=null?b:a};
h.navigateToIssue=function(a,b){if(b&&!a.defaultPrevented&&!(a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1)&&(this.issueNavigated.emit(b),a.target.tagName!=="A")){b=this.getIssueUrl(b);var c;((c=this.options.navigationOptions)==null?0:c.alwaysOpenNewTab)||bq(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Er(this.domSafe,b):Ft(this.router,b)}};h.onRowKeydown=function(a,b){var c;(c=this.focusManager)==null||c.onKeydown(b)};
h.onSortChange=function(a){var b=a.direction;b=b!==""?b==="asc"?"ASCENDING":"DESCENDING":void 0;a=b&&a.active?{column:a.active,direction:b}:void 0;this.activeSort$.next(a);this.sortChange.emit(a)};h.toggleAllRows=function(a){if(Jub(this,a))this.selection.clear();else{a=m(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.isSingleIssue(0,b)&&this.selection.select(b.issueIds[0])}this.selectedIssuesChange.emit(this.selection)};
var jwb=function(a){return a.tableColumns.map(function(b){return b==="TITLE"?"multi-issue-title":b==="PRIORITY"?"multi-issue-icon":b==="selection"?"multi-issue-selection":b})},Jub=function(a,b){b=b.filter(function(c){return a.isSingleIssue(0,c)}).length;return a.selection.selected.length===b};XZ.prototype.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):qs.viewIssue.makeHref(a)};
var Dub=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return b=a.matDialog.open(VFd,{width:"500px",autoFocus:!1,data:{columnItems:a.columnItems}}),z(d,fe(SA(b)),2);if(d.nextAddress!=3){c=d.yieldResult;if(!c)return d.return();a.columnItems=c;a.dataColumns=a.columnItems.filter(function(e){return e.enabled}).map(function(e){return e.data});return z(d,cGd(a,a.dataColumns),3)}a.tableColumns=a.getRenderableColumns(a.dataColumns);a.columnsChange.emit(a.dataColumns);ae(d)})};
XZ.prototype.getCustomFieldName=function(a){var b;return(b=this.customFieldNames.get(a))!=null?b:String(a)};XZ.prototype.getCustomFieldValue=function(a,b){a=a.snapshot[0];if(!a)return"--";var c;return(a=(c=a.customField)==null?void 0:c.find(function(d){return d.customFieldId===b}))?q1a(a):"--"};
da.Object.defineProperties(XZ.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(a.map(function(b){return Array.isArray(b)?b:[b]}))}},options:{configurable:!0,enumerable:!0,set:function(a){var b=this;this.optionsInternal=Object.assign({},$Fd,a);this.rowLimit$.next(a.rowLimit);var c;cGd(this,[].concat(q(this.dataColumns),q((c=this.options.optionalColumns)!=null?c:[]))).then(function(){b.tableColumns=b.getRenderableColumns(b.dataColumns);b.columnItems=aGd(b,b.dataColumns);
b.cdr.detectChanges()})},get:function(){return this.optionsInternal}},filters:{configurable:!0,enumerable:!0,set:function(a){this.internalFilters.reset(a!=null?a:[])}},tableColumnsInput:{configurable:!0,enumerable:!0,set:function(a){var b=this;this.dataColumns=a;cGd(this,this.dataColumns).then(function(){b.tableColumns=b.getRenderableColumns(a);b.columnItems=aGd(b,a);b.cdr.detectChanges()})}}});XZ.\u0275fac=function(a){return new (a||XZ)};
XZ.\u0275cmp=D({type:XZ,selectors:[["b-issues-table"]],viewQuery:function(a,b){a&1&&hg(SW,5);if(a&2){var c;lg(c=mg())&&(b.displayedRows=c)}},inputs:{issueIds:"issueIds",menuItemFactory:"menuItemFactory",initialSort:"initialSort",teamId:"teamId",showReadStatus:"showReadStatus",alerts:"alerts",enrichmentCategoriesFunction:"enrichmentCategoriesFunction",options:"options",issueUrlFactory:"issueUrlFactory",filters:"filters",tableColumnsInput:[0,"tableColumns","tableColumnsInput"],editableColumns:"editableColumns"},
outputs:{activeIssueChange:"activeIssueChange",rowClick:"rowClick",sortChange:"sortChange",columnsChange:"columnsChange",selectedIssuesChange:"selectedIssuesChange",issueNavigated:"issueNavigated"},standalone:!1,features:[Gg([bQ]),Ef],decls:3,vars:4,consts:[["directive","tableRowDirective"],["mat-table","","matSort","",1,"full-width",3,"dataSource","trackBy","hide-header","matSortDisabled","matSortActive","matSortDirection"],[1,"muted","margin-s-top","flex-kids-x","align-items-center"],["mat-table",
"","matSort","",1,"full-width",3,"matSortChange","dataSource","trackBy","matSortDisabled","matSortActive","matSortDirection"],["matColumnDef","active-indicator"],["mat-header-cell","",4,"matHeaderCellDef"],["tabindex","-1","mat-cell","",4,"matCellDef"],["matColumnDef","edit-columns-button"],[3,"matColumnDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","selection"],["matColumnDef","multi-issue-selection"],["matColumnDef","multi-issue-title"],["mat-header-cell","",3,"mat-sort-header",4,"matHeaderCellDef"],
["mat-header-cell","","title","Priority",3,"mat-sort-header",4,"matHeaderCellDef"],["matColumnDef","multi-issue-icon"],["mat-header-cell","","title","",4,"matHeaderCellDef"],["mat-header-cell","","start","desc",3,"mat-sort-header",4,"matHeaderCellDef"],["mat-header-cell","","start","desc","class","nowrap",3,"mat-sort-header",4,"matHeaderCellDef"],["mat-cell","","class","nowrap",4,"matCellDef"],["mat-header-cell","","class","nowrap",4,"matHeaderCellDef"],["mat-header-cell","","title","Timeframe is populated by the 'Start Date' and 'End Date' fields",
3,"mat-sort-header",4,"matHeaderCellDef"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","selectionPreventsClick","","class","clickable",3,"row","closed","active","click","mouseup","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","","selectionPreventsClick","","class","clickable",3,"row","active","click","mouseup","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-header-cell",""],["tabindex","-1","mat-cell",
""],["type","button","color","neutral","mat-button","","matTooltip","Edit table columns",1,"edit-columns","small","visible-on-row-active",3,"click"],["color","secondary","svgIcon","add_column_left_24px",1,"edit-columns","icon-m"],["mat-cell",""],[3,"id"],["aria-label","Select all issues",3,"change","checked","indeterminate"],[3,"click","change","checked"],[3,"issueNavigated","issue","issueUrlFactory","enableHovercard","useButtonToNavigate","trailingChip","anchorTarget"],["mat-header-cell","",3,"mat-sort-header"],
[3,"issue"],["size","medium",3,"email"],["mat-header-cell","","title","Priority",3,"mat-sort-header"],[3,"issuePriority"],["mat-header-cell","","title",""],["matTooltip","Trending theme identified by AI","svgIcon","auto_tab_group_24px",1,"icon-s","display-block"],[3,"title"],["mat-header-cell","","start","desc",3,"mat-sort-header"],[3,"issue","mode"],[3,"timestamp","mode","paddingLeftPx"],["mat-header-cell","","start","desc",1,"nowrap",3,"mat-sort-header"],["mat-cell","",1,"nowrap"],["mat-header-cell",
"",1,"nowrap"],"chipColor;purple;displayText;Trending themes;icon;issue-status-new;tooltip;Trending theme identified by AI".split(";"),[3,"alerts","issue"],["mat-header-cell","","title","Timeframe is populated by the 'Start Date' and 'End Date' fields",3,"mat-sort-header"],[3,"issue","showIcon"],[3,"click","buttonLabel","buttonIcon","menuItems"],[3,"enrichmentCategoryNames"],["mat-header-row",""],["mat-row","","selectionPreventsClick","",1,"clickable",3,"click","mouseup","focusin","keydown","row"],
["type","button",1,"link-button"],["type","button",1,"link-button",3,"click"]],template:function(a,b){a&1&&(F(0,kwb,89,36,"table",1),T(1,"async"),F(2,rwb,3,3,"div",2));if(a&2){var c;G((c=U(1,2,b.rows$))?0:-1,c);B(2);G(b.options.rowLimit?2:-1)}},dependencies:[NY,Jy,rV,kB,gB,kL,hI,UW,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,vK,nA,vW,xxd,YW,XW,Jxd,pW,uW,Kxd,wW,ZW,QW,$W,aX,VZ,WZ,UZ,TZ,wU,WW,SW,aV,Tx],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0px}.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0px}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}tr.mat-mdc-row[_ngcontent-%COMP%]   .mat-column-active-indicator[_ngcontent-%COMP%]{cursor:pointer;display:table-cell;padding:0 1.5px;width:0}tr.mat-mdc-row[_ngcontent-%COMP%]:focus-within   .mat-column-active-indicator[_ngcontent-%COMP%], tr.mat-mdc-row.active[_ngcontent-%COMP%]   .mat-column-active-indicator[_ngcontent-%COMP%]{outline:none;background-color:#4285f4;background-color:var(--primary-c500)}[_nghost-%COMP%]     .hide-header thead{display:none}[_nghost-%COMP%]     .mat-mdc-row:hover .dismiss-icon, [_nghost-%COMP%]     .mat-mdc-row:focus-visible .dismiss-icon, [_nghost-%COMP%]     .dismiss-btn.cdk-keyboard-focused .dismiss-icon{opacity:1;color:#1a73e8;color:var(--primary);background-color:unset}tr.closed[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--row-fixed-bg)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{color:#1a73e8;color:var(--link)}.display-block[_ngcontent-%COMP%]{display:block}.edit-columns[_ngcontent-%COMP%]{position:absolute;right:0;padding-right:8px;margin:-14px 4px -14px auto}"],
changeDetection:0});var YZ=function(){Z.call(this);var a=this;this.issueFullFridge=p(gQ);this.eventsForIssueFridge=p(NP);this.snackBar=p(TN);this.analytics=p(eQ);this.hostElement=p(Hd);this.appEvents=p(UO);this.enrichmentApi=p(zO);this.issueUserEventsService=p(lW);this.activeSession=p(uu);this.scrolledOnScreenService=p(vU);this.destroyRef=p(Ce);this.similarIssueIds$=new uf(1);this.similarIssuesEnrichments$=new uf(1);this.limit=3;this.issueIds$=ie([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(A(function(b){var c=
m(b);b=c.next().value;c=c.next().value;return[].concat(q(c.map(function(d){var e,f;return(f=(e=d.similarIssues)==null?void 0:e.issueIds)!=null?f:[]}).flat()),q(b))}),A(function(b){return b.slice(0,a.limit)}),Af(function(b){a.mostRecentIssueIds=b}));this.mostRecentIssueIds=[];this.tableColumns$=this.similarIssuesEnrichments$.pipe(A(function(b){var c=[{type:"TITLE"},{type:"DUPLICATE_COUNT"},{type:"VOTE_COUNT"},{type:"CREATED_TIME"}];b.some(function(d){var e,f;return(e=d.similarIssues)==null?void 0:
(f=e.issueIds)==null?void 0:f.length})&&c.push({type:"ENRICHMENT_CATEGORIES"});return c}));this.issueIdToCategories$=ie([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(A(function(b){b=m(b);var c=b.next().value;var d=b.next().value;b=new Map;d=m(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,g=void 0,k=m((g=(f=e.similarIssues)==null?void 0:f.issueIds)!=null?g:[]);for(f=k.next();!f.done;f=k.next()){f=f.value;g=void 0;var l=(g=b.get(f))!=null?g:[];l.push(e.category);b.set(f,
l)}}c=m(c);for(d=c.next();!d.done;d=c.next())d=d.value,e=void 0,k=(e=b.get(d))!=null?e:[],k.push("Buganizer"),b.set(d,k);return b}));this.issueTableData$=ie([this.issueIds$,this.issueIdToCategories$,this.tableColumns$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return{issueIds:b,tableColumns:c,categoriesFunction:function(e){var f;return(f=d.get(e))!=null?f:[]}}}));this.EnrichmentFeedbackType=lbd;this.EventType=nbd;this.tableOptions={showActiveIndicator:!1,
modes:{createdTime:"date"},enableIssueHovercard:!0,showMenu:!0,menu:{includeGoToIssueItem:!1}};this.menuItemFactory=function(b){return[{type:"action",label:"Close current issue as duplicate of this row",action:function(){dGd(a,b)}}]};this.gotErr=function(b){a.snackBar.open({message:Qp(b)||"Error with network request",snackbarType:"ERROR"})};this.subscriptions.add(this.appEvents.didShowIssueHovercard.subscribe(function(b){if(a.mostRecentIssueIds.includes(b)){var c;(c=a.analytics)==null||c.trackEvent("similar-issues-idp",
"hovercard");wwb(a,"EVENT_TYPE_ISSUE_HOVERCARD",b,"ISSUE_HOVERCARD")}}))};Y(YZ,Z);YZ.\u0275dir=Z.\u0275dir;
YZ.prototype.ngOnInit=function(){var a=this;this.hostElement.nativeElement.addEventListener("click",this.captureAnyClick,!0);ie([this.similarIssueIds$,this.similarIssuesEnrichments$,Xrd(this.scrolledOnScreenService,this.hostElement.nativeElement,{durationOnScreenMs:3E3})]).pipe(lf(1)).subscribe(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c.next();b.length>0&&a.submitEnrichmentFeedback("EVENT_TYPE_VIEW","Buganizer","VIEW");b=m(d);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=
c=void 0;(e=(c=d.similarIssues)==null?void 0:c.issueIds.length)!=null&&e&&a.submitEnrichmentFeedback("EVENT_TYPE_VIEW",d.category,"VIEW")}})};YZ.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.captureAnyClick,!0)};
var dGd=function(a,b){var c=String(a.issueIdInternal);c&&hhd(a.issueFullFridge,b,c).then(function(){return y(function(d){eGd(a,b);eGd(a,c);a.snackBar.open({message:"Issue closed as duplicate",actionLabel:"Undo"}).afterDismissed().subscribe(function(e){e.dismissedByAction&&fGd(a,b,c)});a.analytics.trackEvent("similar-issues-idp","closeAsDuplicate","fromSummaryWidget");wwb(a,"EVENT_TYPE_CLOSE_AS_DUPLICATE",b,"CLOSE_AS_DUPLICATE");ae(d)})}).catch(a.gotErr)},fGd=function(a,b,c){a.issueFullFridge.removeDuplicate(b,
c).then(function(){eGd(a,b);eGd(a,c);a.snackBar.open({message:"Un-marked issue as duplicate"})}).catch(a.gotErr);a.analytics.trackEvent("similar-issues-idp","undoCloseAsDuplicate","fromSummaryWidget")},eGd=function(a,b){a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b)};YZ.prototype.captureAnyClick=function(){var a;(a=this.analytics)==null||a.trackEvent("similar-issues-idp","any-click")};
var wwb=function(a,b,c,d){var e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1)return z(w,fe(a.issueIdToCategories$),2);e=w.yieldResult;g=(f=e.get(c))!=null?f:[];k=m(g);for(l=k.next();!l.done;l=k.next())r=l.value,a.submitEnrichmentFeedback(b,r,d);ae(w)})};
YZ.prototype.submitEnrichmentFeedback=function(a,b,c){var d=String(this.issueIdInternal);this.activeSession.isInternalSession()&&this.enrichmentApi.submitEnrichmentFeedback({issueId:d,category:b,feedbackType:c}).pipe(Tj(this.destroyRef)).subscribe();b==="Buganizer"?this.issueUserEventsService.logIssueUserEvent(d,"FEATURE_SIMILAR_ISSUES",a).pipe(Tj(this.destroyRef)).subscribe():this.issueUserEventsService.logIssueUserEventForIssueEnrichment(d,"FEATURE_SIMILAR_ISSUES",a,b).pipe(Tj(this.destroyRef)).subscribe()};
da.Object.defineProperties(YZ.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueIdInternal=Number(a)}},similarIssueIds:{configurable:!0,enumerable:!0,set:function(a){this.similarIssueIds$.next(a.map(function(b){return String(b)}))},get:function(){throw Error("Nf");}},similarIssuesEnrichments:{configurable:!0,enumerable:!0,set:function(a){this.similarIssuesEnrichments$.next(a)},get:function(){throw Error("Of");}}});YZ.\u0275fac=function(a){return new (a||YZ)};
YZ.\u0275cmp=D({type:YZ,selectors:[["suggested-similar-issues"]],inputs:{issueId:"issueId",similarIssueIds:"similarIssueIds",similarIssuesEnrichments:"similarIssuesEnrichments",limit:"limit"},standalone:!1,features:[Ef],decls:3,vars:3,consts:[[3,"issueIds","tableColumns","options","enrichmentCategoriesFunction","menuItemFactory"],[3,"issueNavigated","issueIds","tableColumns","options","enrichmentCategoriesFunction","menuItemFactory"]],template:function(a,b){a&1&&(F(0,xwb,1,5,"b-issues-table",0),T(1,
"async"),Kf(2,ywb,2,0,"div"));if(a&2){var c;G((c=U(1,1,b.issueTableData$))?0:2,c)}},dependencies:[XZ,cU,Tx],encapsulation:2});var ZZ={},gGd=(ZZ.assignee="single_value",ZZ.attachments="collection",ZZ.blockedByIssueId="collection",ZZ.blockingIssueId="collection",ZZ.ccs="collection",ZZ.changelists="collection",ZZ.collaborators="collection",ZZ.comment="single_value",ZZ.componentId="single_value",ZZ.customField="any_value",ZZ.deletionReason="single_value",ZZ.duplicateOfIssueId="single_value",ZZ.effortEstimate="single_value",ZZ.foundInVersion="collection",ZZ.gerritChanges="collection",ZZ.hotlists="collection",ZZ.inProd="single_value",
ZZ.isArchived="single_value",ZZ.isDeleted="single_value",ZZ.parentId="collection",ZZ.priority="single_value",ZZ.readState="single_value",ZZ.reporter="single_value",ZZ.severity="single_value",ZZ.sloEndTime="single_value",ZZ.sloSnoozeType="single_value",ZZ.sloStartTime="single_value",ZZ.staffing="single_value",ZZ.status="single_value",ZZ.targetedToVersion="collection",ZZ.title="single_value",ZZ.type="single_value",ZZ.verifiedInVersion="collection",ZZ.verifier="single_value",ZZ),Jwb=new Set(Object.entries(gGd).filter(function(a){a=
m(a);a.next();return a.next().value==="collection"}).map(function(a){return m(a).next().value})),Iwb=new Set("componentId priority reporter severity status title type".split(" "));var $Z={},Bwb=($Z.TYPE_UNSPECIFIED=new Set([]),$Z.ISSUE_DEDUPLICATION=new Set([]),$Z.HOTLIST=new Set([]),$Z.ISSUE_DEDUPLICATION_BATCH=new Set([]),$Z.NEEDS_INFO=new Set(["comment"]),$Z.COMPONENT_ROUTING=new Set("componentId priority severity type assignee hotlists".split(" ")),$Z.ANY_ISSUE_EDIT=new Set("componentId priority severity type assignee hotlists comment".split(" ")),$Z),a_={},Cwb=(a_.TYPE_UNSPECIFIED=new Set([]),a_.ISSUE_DEDUPLICATION=new Set([]),a_.HOTLIST=new Set([]),a_.ISSUE_DEDUPLICATION_BATCH=
new Set(["duplicateOfIssueId"]),a_.NEEDS_INFO=new Set(["comment"]),a_.COMPONENT_ROUTING=new Set("componentId priority severity type assignee hotlists ccs".split(" ")),a_.ANY_ISSUE_EDIT=new Set("comment componentId priority severity type assignee hotlists ccs status".split(" ")),a_);var hGd=new Set(["NEEDS_INFO","COMPONENT_ROUTING","ANY_ISSUE_EDIT"]),b_={},iGd=(b_.TYPE_UNSPECIFIED="FEATURE_UNSPECIFIED",b_.ISSUE_DEDUPLICATION="FEATURE_ISSUE_DEDUPLICATION",b_.HOTLIST="FEATURE_HOTLIST",b_.ISSUE_DEDUPLICATION_BATCH="FEATURE_ISSUE_DEDUPLICATION_BATCH",b_.NEEDS_INFO="FEATURE_NEEDS_INFO",b_.COMPONENT_ROUTING="FEATURE_COMPONENT_ROUTING",b_.ANY_ISSUE_EDIT="FEATURE_ANY_ISSUE_EDIT",b_),c_=function(){this.api=p(fO);this.butterBar=p(UN);this.editIssueService=p(GS);this.issueUserEventsService=
p(lW);this.analytics=p(eQ);this.errorHandler=p(pO);this.issueFridge=p(XP);this.issueFullFridge=p(gQ);this.editIssueComponentService=p(gW);this.issueCommentDialogsService=p(vY);this.recommendationTriggerService=p(cR);this.issueApi=p(MP);this.activeSession=p(uu);this.contextSensitiveRegistry=p(XQ)},mGd=function(a,b){var c=b.recommendation;var d=b.originalActions;var e=b.acceptedActions;var f=b.disableLogging===void 0?!1:b.disableLogging;var g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:return d=
d.filter(Fwb),e=e.filter(Fwb),Wd(x,2,3),c.type==="ISSUE_DEDUPLICATION_BATCH"?z(x,jGd(a,e),6):z(x,kGd(a,e),6);case 6:if(f){x.jumpTo(9);break}return z(x,lGd(a,c,d,e),9);case 9:a.recommendationTriggerService.hiddenRecommendationIds.add(c.name);case 3:Xd(x);g=tq(e.map(function(C){return C.issueId}));k=m(g);for(l=k.next();!l.done;l=k.next())r=l.value,a.editIssueService.clear(r);Zd(x,0);break;case 2:w=$d(x),rO(a.errorHandler,w),x.jumpTo(3)}})},oGd=function(a,b){var c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return a.analytics.trackEvent("editIssue",
"reject",Kwb(b)),b.type==="ISSUE_DEDUPLICATION_BATCH"?(c=new Set,c.add(b.name),d=[{issueId:rt(b.resource),recommendationName:b.name}],(e=b.content)==null||(f=e.issueDeduplicationBatch)==null||f.entries.forEach(function(l){c.has(l.recommendation)||(c.add(l.recommendation),d.push({issueId:l.issue.issueId,recommendationName:l.recommendation}))}),g=Array.from(c,function(l){return{parent:l,userEngagement:{type:"REJECTED"}}}),z(k,fe(a.api.createUserEngagements(g)),6)):z(k,nGd(a,"REJECTED",b),4);case 4:return z(k,
a.logIssueUserEventForRecommendation(b,"EVENT_TYPE_REJECT"),3);case 6:return z(k,a.logIssueUserEventForRecommendations("FEATURE_ISSUE_DEDUPLICATION_BATCH","EVENT_TYPE_REJECT",d),3);case 3:a.recommendationTriggerService.hiddenRecommendationIds.add(b.name),ae(k)}})},jGd=function(a,b){var c,d;return y(function(e){if(!b.length)return e.return();c={issueIds:b.map(function(f){return f.issueId}),actions:[{fieldName:"duplicateOfIssueId",value:b[0].value,actionType:"ADD"}]};d={bulkEditOps:[c]};Rr(a.butterBar,
"Marking "+b.length+" issues as duplicates...");return z(e,a.issueApi.issueBulkEdit(d).then(function(f){f.errors&&f.errors.length?(f=AUa(f.errors),a.butterBar.showWarning("Failed to mark issue(s) as duplicates: "+f+".")):Rr(a.butterBar,"Marked "+b.length+" issue(s) as duplicates.");fe(a.contextSensitiveRegistry.getIssueId()).then(function(g){g&&a.issueFridge.poke(g)})}),0)})},kGd=function(a,b){var c,d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,na,ua,ia,Ga,ha,sa,xa;return y(function(Qa){switch(Qa.nextAddress){case 1:if(!b.length)return Qa.return();
c=tq(b.map(function(bb){return bb.issueId}));return z(Qa,Promise.all(c.map(function(bb){return fe(a.issueFridge.watch(bb))})),2);case 2:d=Qa.yieldResult.filter(Pm);if(d.length!==c.length)throw Error("Qf");e=new Map;f=m(d);for(g=f.next();!g.done;g=f.next())k=g.value,l=a.editIssueService.editableIssue(k.issueId),l.setData(k),e.set(k.issueId,l);r=b.filter(function(bb){return bb.fieldName!=="componentId"&&bb.fieldName!=="comment"&&bb.fieldName!=="hotlists"});w=m(r);for(x=w.next();!x.done;x=w.next())C=
x.value,H=e.get(C.issueId),bmd(H,C);return z(Qa,Promise.all(Array.from(e.values(),function(bb){return HS(a.editIssueService,bb)})),3);case 3:J=b.filter(function(bb){return bb.fieldName==="comment"}),O=m(J),R=O.next();case 4:if(R.done){ia=b.filter(function(bb){return bb.fieldName==="hotlists"});if(!(ia.length>0)){Qa.jumpTo(8);break}return z(Qa,pGd(a,e.get(ia[0].issueId),ia),8)}V=R.value;if(!V.value){Qa.jumpTo(5);break}ca=a.editIssueService.issueCommentDraft(V.issueId).comment();ca.value=V.value;na=
void 0;ca.formattingMode=(na=V.formattingMode)!=null?na:"PLAIN";ua=e.get(V.issueId);return z(Qa,a.issueCommentDialogsService.submitCommentBox(String(ua.componentId),ua.issueId,ca),5);case 5:R=O.next();Qa.jumpTo(4);break;case 8:Ga=b.filter(function(bb){return bb.fieldName==="componentId"}),ha=m(Ga),sa=ha.next();case 10:if(sa.done){Qa.jumpTo(0);break}xa=sa.value;return z(Qa,a.editIssueComponentService.updateComponent(xa.issueId,xa.value||null),11);case 11:sa=ha.next(),Qa.jumpTo(10)}})},qGd=function(a,
b){y(function(c){a.analytics.trackEvent("editIssue","view",Kwb(b)+"-initialization");ae(c)})},rGd=function(a,b){y(function(c){return c.nextAddress==1?(a.analytics.trackEvent("editIssue","view",Kwb(b)),z(c,a.logIssueUserEventForRecommendation(b,"EVENT_TYPE_VIEW"),2)):z(c,nGd(a,"VIEWED",b),0)})},lGd=function(a,b,c,d){var e,f,g,k,l,r,w,x;return y(function(C){return C.nextAddress==1?(a.analytics.trackEvent("editIssue","accept",Kwb(b)),e=mm(c,d),f=void 0,hGd.has(b.type)&&(f=Hwb(d)),b.type==="ISSUE_DEDUPLICATION_BATCH"?
(g=new Set,g.add(b.name),k=[{issueId:rt(b.resource),recommendationName:b.name}],l=new Set(d.map(function(H){return H.issueId})),(r=b.content)==null||(w=r.issueDeduplicationBatch)==null||w.entries.filter(function(H){return l.has(H.issue.issueId)}).forEach(function(H){g.has(H.recommendation)||(g.add(H.recommendation),k.push({issueId:H.issue.issueId,recommendationName:H.recommendation}))}),x=Array.from(g,function(H){return{parent:H,userEngagement:{type:"ACCEPTED"}}}),z(C,fe(a.api.createUserEngagements(x)),
6)):z(C,nGd(a,e?"ACCEPTED":"PARTIALLY_ACCEPTED",b,f),4)):C.nextAddress!=6?z(C,a.logIssueUserEventForRecommendation(b,e?"EVENT_TYPE_ACCEPT":"EVENT_TYPE_PARTIALLY_ACCEPT"),0):z(C,a.logIssueUserEventForRecommendations("FEATURE_ISSUE_DEDUPLICATION_BATCH","EVENT_TYPE_ACCEPT",k),0)})},nGd=function(a,b,c,d){var e,f;return y(function(g){if(g.nextAddress==1)return Wd(g,2),e=c.name,z(g,fe(a.api.createUserEngagements([{parent:e,userEngagement:{type:b,issueModification:d}}])),4);if(g.nextAddress!=2)return dt(g,
0);f=$d(g);rO(a.errorHandler,f);ae(g)})};c_.prototype.logIssueUserEventForRecommendation=function(a,b){var c=this,d,e,f;return y(function(g){if(g.nextAddress==1){d=rt(a.resource);if(!d||c.activeSession.isExternalSession())return g.return();Wd(g,2);e=iGd[a.type];return e==="FEATURE_UNSPECIFIED"?g.jumpTo(4):z(g,fe(c.issueUserEventsService.logIssueUserEventForRecommendation(d,e,b,a.name)),4)}if(g.nextAddress!=2)return dt(g,0);f=$d(g);rO(c.errorHandler,f);ae(g)})};
c_.prototype.logIssueUserEventForRecommendations=function(a,b,c){var d=this,e,f;return y(function(g){if(g.nextAddress==1)return e=c.map(function(k){return{issueId:k.issueId,feature:a,eventType:b,recommendationName:k.recommendationName}}),Wd(g,2),z(g,fe(d.issueUserEventsService.logIssueUserEventForRecommendations(e)),4);if(g.nextAddress!=2)return dt(g,0);f=$d(g);rO(d.errorHandler,f);ae(g)})};
var pGd=function(a,b,c){var d,e,f,g,k,l,r,w,x,C,H,J,O;return y(function(R){f=new Set((e=(d=b.hotlistId)==null?void 0:d.map(String))!=null?e:[]);g=c.filter(function(V){return V.actionType==="ADD"}).flatMap(function(V){var ca,na;return(na=(ca=V.value)==null?void 0:ca.split(","))!=null?na:[]}).filter(Boolean);k=c.filter(function(V){return V.actionType==="REMOVE"}).flatMap(function(V){var ca,na;return(na=(ca=V.value)==null?void 0:ca.split(","))!=null?na:[]}).filter(Boolean);l=new Set;r=new Set;w=m(g);
for(x=w.next();!x.done;x=w.next())C=x.value,f.has(C)||l.add(C);H=m(k);for(J=H.next();!J.done;J=H.next())O=J.value,f.has(O)&&r.add(O);return l.size>0||r.size>0?z(R,a.issueFullFridge.updateHotlists(b.issueId,[].concat(q(l)),[].concat(q(r))),0):R.jumpTo(0)})};c_.\u0275fac=function(a){return new (a||c_)};c_.\u0275prov=Dc({token:c_,factory:c_.\u0275fac,providedIn:"root"});var sGd=function(a,b){return b.issueId},tGd=new Set(["duplicateOfIssueId"]),d_=function(){var a=this;this.clipboard=p(oR);this.eventsForIssueFridge=p(NP);this.issueFridge=p(XP);this.paths=p(hW);this.snackBar=p(rB);this.excludedActions=new Set;this.canonicalIssueId$=new Mj("");this.issue$=function(b){return a.issueFridge.watch(b)};this.hiddenActionCount=0;this.showExpansionOption=!1;this.draftActions=[];this.actionsToAccept=new aQ;this.canonicalIssue$=this.canonicalIssueId$.pipe(yf(function(b){return a.issue$(b)}));
this.canonicalEvents$=this.canonicalIssue$.pipe(yf(function(b){return(b==null?0:b.issueId)?a.eventsForIssueFridge.watch(b.issueId):ce(void 0)}),A(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.canonicalComments$=this.canonicalEvents$.pipe(A(function(b){return b.filter(go)}));this.canonicalDuplicates$=this.canonicalIssue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}))};
d_.prototype.copyIssueId=function(a){this.clipboard.copy(a);this.snackBar.open("Issue ID copied","",{duration:2E3})};d_.prototype.getIssueLink=function(a){return ss(a)};
var Wwb=function(a,b){if(!(a.draftActions.length<1)){var c=a.draftActions.find(function(d){return d.issueId===b});c&&(a.excludedActions.add(c.actionKey),a.draftActions=a.draftActions.filter(function(d){return!a.excludedActions.has(d.actionKey)}),uGd(a),a.updateActionsToAccept(),vGd(a))}},Vwb=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,fe(a.canonicalIssueId$),2);c=g.yieldResult;if(!c)return g.return();d=m(a.draftActions);for(e=d.next();!e.done;e=d.next())f=e.value,
f.issueId===b.issueId&&(f.issueId=c),f.value=b.issueId,f.isDirty=!0;a.canonicalIssueId$.next(b.issueId);a.updateActionsToAccept();ae(g)})},uGd=function(a){a=m(a.draftActions);for(var b=a.next();!b.done;b=a.next())b.value.isDirty=!0},wGd=function(a,b,c){b=eo(b,function(g){return g.actionKey});var d=[];c=c.filter(function(g){return!a.excludedActions.has(g.actionKey)});c=m(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=b.get(e.actionKey);f&&f.isDirty?d.push(f):d.push(e)}return nm(d)};
d_.prototype.updateActionsToAccept=function(){var a=this;this.actionsToAccept.emit(this.draftActions.filter(function(b){return!a.excludedActions.has(b.actionKey)}))};var vGd=function(a){a.draftActions.length<=6?a.showExpansionOption=!1:a.hiddenActionCount=a.draftActions.length-5};
da.Object.defineProperties(d_.prototype,{actions:{configurable:!0,enumerable:!0,set:function(a){var b=this,c=this.draftActions.length===0;this.draftActions=wGd(this,this.draftActions,a).filter(function(f){return tGd.has(f.fieldName)});var d,e=(d=this.draftActions[0])==null?void 0:d.value;e&&(this.canonicalIssueId$.next(e),this.draftActions=this.draftActions.filter(function(f){return f.issueId!==e}));a=this.draftActions.findIndex(function(f){return f.issueId===b.currentIssue.issueId});a>0&&(a=this.draftActions.splice(a,
1)[0],this.draftActions.unshift(a));this.draftActions.length<=6?this.showExpansionOption=!1:(c&&(this.showExpansionOption=!0),this.hiddenActionCount=this.draftActions.length-5);this.updateActionsToAccept()}}});d_.\u0275fac=function(a){return new (a||d_)};
d_.\u0275cmp=D({type:d_,selectors:[["b-dedupe-actions-component"]],inputs:{currentIssue:"currentIssue",actions:"actions"},outputs:{actionsToAccept:"actionsToAccept"},standalone:!1,decls:6,vars:4,consts:[["canonicalHovercard","onedevHovercard"],["canonicalCardBody",""],["duplicateHovercard","onedevHovercard"],["duplicateCardBody",""],[1,"flex-kids-y","gap-xs"],[1,"flex-kids-x","align-items-center"],[1,"circle","shrink-0"],[1,"shrink-0",3,"id"],["target","_blank",1,"title","hover-link","overflow-ellipsis",
3,"href"],[1,"bold",3,"onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[1,"current-issue-chip","shrink-0"],[1,"margin-left-auto","shrink-0"],[3,"onedevIsHovercardReady","issueId"],[1,"dupe-issue","flex-kids-x","full-width","align-items-center"],[1,"pos-rel"],[1,"icon-container"],[1,"connector"],["svgIcon","tab_close_24px",1,"icon-s","shrink-0"],["target","_blank",1,"hover-link","overflow-ellipsis",3,"href"],["role","button",3,"onedevHovercardTrigger"],[1,
"actions","shrink-0","margin-left-auto"],["type","button","mat-icon-button","","matTooltip","Make this issue the canonical issue",1,"small","include",3,"click"],["svgIcon","vertical_align_top_24px",1,"icon-xs"],["type","button","mat-icon-button","","matTooltip","Remove this issue",1,"small","include",3,"click","disabled"],["svgIcon","close",1,"icon-xs"],[1,"curved-arrow"],["mat-button","","color","primary",1,"more-issues",3,"click"]],template:function(a,b){a&1&&(K(0,"div",4),F(1,Qwb,2,3),T(2,"async"),
Nf(3,Ywb,2,3,null,null,sGd),F(5,Zwb,4,2,"div"),L());if(a&2){var c;B();G((c=U(2,2,b.canonicalIssueId$))?1:-1,c);B(2);a=b.draftActions;Of(b.showExpansionOption?a.slice(0,5):a);B(2);G(b.showExpansionOption?5:-1)}},dependencies:[Jy,kB,gB,iB,vK,nA,KK,LK,SK,MK,MW,uW,Tx],styles:[".hover-link[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}.hover-link[_ngcontent-%COMP%]:focus, .hover-link[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link);text-decoration:underline}.current-issue-chip[_ngcontent-%COMP%]{color:var(--primary-c800);font-size:.75rem;font-weight:700;background:var(--primary-c100);padding:2px 8px;margin-left:8px;border-radius:4px}.dupe-issue[_ngcontent-%COMP%]{color:var(--text-secondary);padding-left:10px}.dupe-issue[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:6px;margin-right:2px;vertical-align:middle}.circle[_ngcontent-%COMP%]{width:8px;height:8px;background:var(--primary-c800);border-radius:4px;display:inline-block;margin-right:2px}.curved-arrow[_ngcontent-%COMP%]{-webkit-transform:rotate(90deg);transform:rotate(90deg);display:inline-block;margin:-14px 0 0 -13px;position:absolute;font-size:15px}.icon-container[_ngcontent-%COMP%]{position:relative}.icon-container[_ngcontent-%COMP%]   .connector[_ngcontent-%COMP%]{border:1px solid;border-color:var(--text-secondary);position:absolute;height:7px;top:-8px;left:14px}.more-issues[_ngcontent-%COMP%]{color:var(--text-secondary)}"],
changeDetection:0});var e_=function(){};var xGd=["popOverContent"],f_=function(a,b){this.overlay=a;this.viewContainerRef=b;this.newlineWithEnterKey=this.displayUnder=!1;this.hasBackdrop=!0;this.fitToViewport=!1;this.width=this.maxWidth=this.minWidth=null;this.saveDisabled=Og.apply(null,[!1].concat(q([])));this.closedWithAction=new Ti;this.isOpen=!1;this.destroyed$=new uf(1);this.backdropClickSubscription=Pd.EMPTY};f_.prototype.ngOnInit=function(){};f_.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
f_.prototype.open=function(){var a=this;this.isOpen||(this.overlayRef=this.createOverlay(),this.attach(),this.isOpen=!0,this.backdropClickSubscription=this.overlayRef.backdropClick().pipe(zf(this.destroyed$)).subscribe(function(){bxb(a)}))};f_.prototype.close=function(){this.isOpen&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=void 0,this.isOpen=!1,this.backdropClickSubscription.unsubscribe())};
var axb=function(a){a.closedWithAction.emit(0);a.close()},bxb=function(a){a.closedWithAction.emit(1);a.close()};h=f_.prototype;h.processKeydown=function(a){switch(a.key){case "Escape":bxb(this);a.stopPropagation();break;case "Enter":if(this.newlineWithEnterKey){if(a.metaKey||a.ctrlKey)axb(this),a.stopPropagation(),a.preventDefault()}else a.shiftKey||(axb(this),a.stopPropagation(),a.preventDefault())}};
h.createOverlay=function(){var a,b=this.width||8+Math.max((a=this.minWidth)!=null?a:0,this.anchor.offsetWidth);a=this.getPositionStrategy();var c=this.getScrollStrategy();b=this.overlay.create({positionStrategy:a,scrollStrategy:c,hasBackdrop:this.hasBackdrop,backdropClass:"onedev-pop-over-edit-panel-backdrop",panelClass:"onedev-pop-over-edit-panel",width:this.maxWidth?Math.min(b,this.maxWidth):b});b.overlayElement.setAttribute("role","dialog");b.overlayElement.setAttribute("aria-label","Pop over edit panel");
return b};h.attach=function(){var a=new Oz(this.contentTemplateRef,this.viewContainerRef),b;(b=this.overlayRef)==null||b.attach(a);var c;(c=this.overlayRef)==null||c.updatePosition()};h.getPositionStrategy=function(){var a=dDc(Hz(Lz(this.overlay.position(),this.anchor),this.fitToViewport),this.fitToViewport);a._offsetX=-4;a._offsetY=this.displayUnder?this.anchor.offsetHeight:-4;return Fz(a,yGd)};h.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
f_.\u0275fac=function(a){return new (a||f_)(Ve(Tz),Ve(eg))};
f_.\u0275cmp=D({type:f_,selectors:[["onedev-pop-over-edit-panel"]],viewQuery:function(a,b){a&1&&hg(xGd,7);if(a&2){var c;lg(c=mg())&&(b.contentTemplateRef=c.first)}},inputs:{anchor:"anchor",editorTemplate:"editorTemplate",displayUnder:"displayUnder",newlineWithEnterKey:"newlineWithEnterKey",hasBackdrop:"hasBackdrop",fitToViewport:"fitToViewport",minWidth:"minWidth",maxWidth:"maxWidth",width:"width",saveDisabled:[1,"saveDisabled"]},outputs:{closedWithAction:"closedWithAction"},exportAs:["onedevPopOverEditPanel"],
standalone:!1,decls:2,vars:0,consts:[["popOverContent",""],["cdkTrapFocus","",1,"pop-over-edit-panel-content","content","gmat-elevation-z2",3,"keydown","cdkTrapFocusAutoCapture"],[1,"edit-field"],[4,"ngTemplateOutlet"],[1,"actions"],["mat-button","","type","button","color","primary",1,"save",3,"click","disabled"],["type","button","mat-button","","color","primary",1,"cancel",3,"click"]],template:function(a){a&1&&E(0,cxb,8,3,"ng-template",null,0,Mg)},dependencies:[Sx,Wy,GI],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 yGd=[{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 zGd=["popOver"],AGd=["inputBox"],g_=function(a){this.defaultAutocompleteConfig=a;this.displayUnder=!1;this.initialInputValue="";this.required=this.openPopOverOnInit=!1;this.minWidth=null;this.closed=new Ti;this.inputValue=new lE("",{nonNullable:!0});this.sessionOptions=BGd;this.mergedAutocompleteConfig=Object.assign({},CGd,this.defaultAutocompleteConfig)};h=g_.prototype;h.ngOnInit=function(){this.inputValue._assignValidators(this.required?[vj]:[])};
h.ngAfterViewInit=function(){this.openPopOverOnInit&&this.openPopOver(this.initialInputValue)};h.ngOnChanges=function(a){a.autocompleteConfig&&(this.mergedAutocompleteConfig=Object.assign({},CGd,this.defaultAutocompleteConfig,this.autocompleteConfig))};h.selectAutocomplete=function(a){a.length>0&&this.inputValue.setValue(a[0].result().getPrimaryTarget().getValue())};
h.openPopOver=function(a){var b=this;this.inputValue.setValue(a);this.popOver.open();setTimeout(function(){var c;(c=b.inputBox)==null||c.nativeElement.select()})};h.onPopOverClose=function(a){this.inputValue.valid&&a===0?this.closed.emit(this.inputValue.value):this.closed.emit(void 0);this.inputValue.setValue("")};g_.\u0275fac=function(a){return new (a||g_)(Ve(DGd,8))};
g_.\u0275cmp=D({type:g_,selectors:[["onedev-user-picker-panel","anchor",""]],viewQuery:function(a,b){a&1&&(hg(zGd,7),hg(AGd,5));if(a&2){var c;lg(c=mg())&&(b.popOver=c.first);lg(c=mg())&&(b.inputBox=c.first)}},inputs:{anchor:"anchor",autocompleteConfig:"autocompleteConfig",displayUnder:"displayUnder",initialInputValue:"initialInputValue",openPopOverOnInit:"openPopOverOnInit",required:"required",minWidth:"minWidth"},outputs:{closed:"closed"},standalone:!1,features:[jx],attrs:["anchor",""],decls:4,vars:5,
consts:[["popOver","onedevPopOverEditPanel"],["autocompleteTemplate",""],["inputBox",""],[3,"closedWithAction","anchor","displayUnder","editorTemplate","saveDisabled","minWidth"],["peoplekitAutocomplete","",3,"peoplekitAutocompleteSelectionChange","required","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","formControl"]],template:function(a,b){if(a&1){var c=t();K(0,"onedev-pop-over-edit-panel",3,0);N("closedWithAction",function(d){u(c);return v(b.onPopOverClose(d))});L();E(2,dxb,2,4,
"ng-template",null,1,Mg)}a&2&&(a=qg(3),I("anchor",b.anchor)("displayUnder",b.displayUnder)("editorTemplate",a)("saveDisabled",b.inputValue.invalid)("minWidth",b.minWidth))},dependencies:[xj,fE,yE,f_,rX,sE],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 DGd=new dd("user-picker-autocomplete-config"),CGd={showSuggestions:!0,moveAutocompleteAboveAnchorIfOffscreen:!0,density:2},BGd=(new dv).setFilter(vgb(rgb(1),new qwd(function(a){return a.indexOf("-pager")>=0||a.indexOf("+pager")>=0||a.indexOf("-oncall")>=0||a.indexOf("+oncall")>=0||a.indexOf("lifeguard-ng")>=0})));var gxb=function(a){return{$implicit:a}},EGd=0,h_=function(){this.val="";this.required=this.disabled=!1;this.minWidth=null;this.emailChange=new Ti;this.displayUnder=!1;this.displayValueOverride="";this.popOverOpen=this.active=!1;this.contentId="onedev-user-picker-"+EGd;this.onChange=function(){};this.onTouched=function(){};EGd++};Y(h_,e_);h=h_.prototype;h.openPopOver=function(){this.disabled||(this.onTouched(),this.popOver.openPopOver(this.email),this.popOverOpen=!0)};
h.onPopOverClose=function(a){a!=null&&a!==this.email&&(this.onChange(a),this.emailChange.emit(a),this.email=a);this.popOverOpen=!1};h.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};h.writeValue=function(a){a!=null&&(this.val=a)};h.isActive=function(){return this.active||this.popOverOpen};h.registerOnChange=function(a){this.onChange=a};h.registerOnTouched=function(a){this.onTouched=a};h.setDisabledState=function(a){this.disabled=a};
da.Object.defineProperties(h_.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});h_.\u0275fac=function(a){return new (a||h_)};
h_.\u0275cmp=D({type:h_,selectors:[["onedev-user-picker"]],viewQuery:function(a,b){a&1&&hg(g_,7);if(a&2){var c;lg(c=mg())&&(b.popOver=c.first)}},inputs:{email:"email",disabled:"disabled",required:"required",minWidth:"minWidth",labelledById:"labelledById",selectedUserTemplate:"selectedUserTemplate",autocompleteConfig:"autocompleteConfig",anchor:"anchor",displayUnder:"displayUnder",displayValueOverride:"displayValueOverride"},outputs:{emailChange:"emailChange"},exportAs:["onedevUserPicker"],standalone:!1,
features:[Gg([{provide:e_,useExisting:Vc(function(){return h_}),multi:!0},{provide:aE,useExisting:Vc(function(){return h_}),multi:!0}]),Ef],decls:7,vars:12,consts:[["button",""],["type","button",1,"unstyled-button",3,"focus","blur","click"],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"closed","displayUnder","anchor","autocompleteConfig","required","minWidth"],[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){if(a&1){var c=t();K(0,"button",1,0);N("focus",function(){u(c);return v(b.active=!0)})("blur",function(){u(c);return v(b.active=!1)})("click",function(){u(c);return v(b.openPopOver())});F(2,exb,1,1)(3,hxb,1,4,"ng-container")(4,ixb,1,1);E(5,jxb,2,0,"svg",2);
L();K(6,"onedev-user-picker-panel",3);N("closed",function(d){u(c);return v(b.onPopOverClose(d))});L()}a&2&&(a=qg(1),wg("active",b.isActive()),If("tabindex",b.disabled?-1:null)("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy()),B(2),G(b.displayValueOverride?2:b.selectedUserTemplate?3:4),B(3),I("ngIf",!b.disabled),B(),I("displayUnder",b.displayUnder)("anchor",b.anchor||a)("autocompleteConfig",b.autocompleteConfig)("required",b.required)("minWidth",b.minWidth))},dependencies:[Nx,Sx,g_],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 FGd=["picker"],i_=function(){this.autocompleteConfigService=p(EW);this.disabled=!1;this.emailChange=new aQ;this.displayValueOverride="";this.minWidth=180;this.userEmail=""};Y(i_,e_);i_.prototype.openPopOver=function(){this.picker.openPopOver()};i_.prototype.isActive=function(){return this.picker.isActive()};da.Object.defineProperties(i_.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.userJs=a;this.userEmail=wm(a)||""},get:function(){return this.userJs}}});
i_.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(i_)))(b||i_)}}();
i_.\u0275cmp=D({type:i_,selectors:[["b-user-picker"]],viewQuery:function(a,b){a&1&&hg(FGd,7);if(a&2){var c;lg(c=mg())&&(b.picker=c.first)}},inputs:{user:"user",teamId:"teamId",disabled:"disabled",labelledById:"labelledById",anchor:"anchor",displayValueOverride:"displayValueOverride",minWidth:"minWidth"},outputs:{emailChange:"emailChange"},exportAs:["bUserPicker"],standalone:!1,features:[Gg([{provide:e_,useExisting:Vc(function(){return i_}),multi:!0}]),Ef],decls:4,vars:9,consts:[["picker","onedevUserPicker"],
["userChip",""],[3,"emailChange","anchor","displayUnder","email","disabled","labelledById","selectedUserTemplate","autocompleteConfig","displayValueOverride","minWidth"],[3,"user","email","teamId","enableSmallChip"]],template:function(a,b){if(a&1){var c=t();K(0,"onedev-user-picker",2,0);N("emailChange",function(d){u(c);b.userJs=xm(d);b.userEmail=d;b.emailChange.emit(d);return v()});L();E(2,lxb,1,1,"ng-template",null,1,Mg)}a&2&&(a=qg(3),I("anchor",b.anchor)("displayUnder",!0)("email",b.userEmail)("disabled",
b.disabled)("labelledById",b.labelledById)("selectedUserTemplate",a)("autocompleteConfig",Dgb(b.autocompleteConfigService))("displayValueOverride",b.displayValueOverride)("minWidth",b.minWidth))},dependencies:[gV,h_],styles:["[_nghost-%COMP%]     .user-chip-small, [_nghost-%COMP%]     .internal-non-team-member-chip{width:100%}  .peoplekit-autocomplete-anchor{z-index:1001}/*# sourceMappingURL=user_picker.css.map */"]});var rxb=function(a){return{group:a,fieldName:"Assignee"}},wxb=function(a){return{group:a,fieldName:"Priority"}},Axb=function(a){return{group:a,fieldName:"Comment"}},Fxb=function(a){return{group:a,fieldName:"Component"}},Nxb=function(a){return{group:a,fieldName:"Hotlist"}},Wxb=function(a){return{group:a,fieldName:"CCs"}},Zxb=function(a){return{group:a,fieldName:"Status"}},Pxb=function(a,b){return b.actionKey},GGd=new Set("assignee comment componentId hotlists priority ccs status".split(" ")),j_=function(){var a=
this;this.issueFridge=p(XP);this.constants=p(gS);this.editCommentDialogService=p(tY);this.issuePermissionService=p($Q);this.hotlistFridge=p(lP);this.hotlistPickerService=p(FY);this.includeCommentByDefault=!0;this.draftActions=[];this.issue$=function(b){return a.issueFridge.watch(b)};this.hotlist$=function(b){return a.hotlistFridge.watch(b)};this.formattingAudience$=this.issuePermissionService.audience$;this.actionsToAccept=new aQ;this.groupTrackBy=function(b){return b.map(function(c){return c.actionKey}).join(",")};
this.split=function(b){var c;return(c=b==null?void 0:b.split(","))!=null?c:[]};this.priorityChoices=this.constants.priorities.map(function(b){return{value:b,displayText:b}});this.statusChoices=qcd;this.dirtyCommentActions=new Set;this.excludedActions=new Set;this.IssueFieldName=gcd;this.IssuePriority=Dbd;this.IssueStatus=Tbd;this.FormattingMode=Um;this.ActionType=ebd;this.FieldType=pV;this.emailToUser=xm;this.userToLossyEmail=wm;this.getTeamId=i5a;this.getComponentId=j5a;this.getReporter=h5a;this.getAssignee=
g5a;this.getPriority=f5a;this.getStatus=e5a};j_.prototype.ngOnChanges=function(){this.draftActions=gyb(this.draftActions,this.actions).filter(function(a){return GGd.has(a.fieldName)});this.updateActionsToAccept()};var HGd=function(a){return ZZa(a,function(b){return b.fieldName})},txb=function(a,b,c){IGd(a,b,function(d){d.value=String(c)})};j_.prototype.hasHotlist=function(a,b){var c,d;return(d=(c=a.snapshot[0].hotlistId)==null?void 0:c.includes(Number(b)))!=null?d:!1};
var Txb=function(a,b){var c,d;return(d=(c=a.snapshot[0].ccUsers)==null?void 0:c.find(function(e){return e.emailAddress===b}))!=null?d:!1},IGd=function(a,b,c){b&&(a.draftActions=a.draftActions.map(function(d){if(d.actionKey!==b.actionKey)return d;d=nm(d);c(d);d.isDirty=!0;return d}),a.updateActionsToAccept())},zxb=function(a,b,c){var d,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1)return e=(d=a.issuePermissionService.audience())!=null?d:"EXTERNAL",k=(g=(f=c)==null?void 0:f.snapshot[0].componentId)!=
null?g:void 0,z(w,a.editCommentDialogService.show({issueId:b.issueId,audience:e,componentId:k,text:b.value,formattingMode:(l=b.formattingMode)!=null?l:"PLAIN",showPiiWarning:!1,dialogTitle:"Edit draft comment"}),2);(r=w.yieldResult)&&IGd(a,b,function(x){x.value=r.text;x.formattingMode=r.formattingMode});ae(w)})};
j_.prototype.openHotlistPicker=function(a){var b=this,c,d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,na,ua,ia,Ga,ha,sa,xa,Qa,bb,ub;return y(function(Wb){if(Wb.nextAddress==1)return c=a[0].issueId,z(Wb,fe(b.issue$(c)),2);if(Wb.nextAddress!=3)return d=Wb.yieldResult,k=(g=(e=d)==null?void 0:(f=e.snapshot[0].hotlistId)==null?void 0:f.map(String))!=null?g:[],l=a.find(function(lc){return lc.actionType==="ADD"}),r=a.find(function(lc){return lc.actionType==="REMOVE"}),H=new Set((C=(w=l)==null?void 0:(x=w.value)==null?
void 0:x.split(","))!=null?C:[]),V=new Set((R=(J=r)==null?void 0:(O=J.value)==null?void 0:O.split(","))!=null?R:[]),ca=[].concat(q(k),q(H)).filter(function(lc){return!V.has(lc)}),z(Wb,bCd(b.hotlistPickerService,a[0].issueId,ca.map(Number),!1),3);na=Wb.yieldResult;if(!na)return Wb.return();ua=na;ia=ua.addedIds;Ga=ua.removedIds;ha=m(Ga);for(sa=ha.next();!sa.done;sa=ha.next())xa=sa.value,H.delete(xa),V.add(xa);Qa=m(ia);for(bb=Qa.next();!bb.done;bb=Qa.next())ub=bb.value,H.add(ub),V.delete(ub);IGd(b,l,
function(lc){lc.value=[].concat(q(H)).join(",")});IGd(b,r,function(lc){lc.value=[].concat(q(V)).join(",")});ae(Wb)})};j_.prototype.updateActionsToAccept=function(){var a=this,b=this.draftActions.filter(function(c){return!a.excludedActions.has(c.actionKey)}).filter(Fwb);this.includeCommentByDefault||(b=b.filter(function(c){return c.fieldName!=="comment"||a.dirtyCommentActions.has(c.actionKey)}));this.actionsToAccept.emit(b)};j_.\u0275fac=function(a){return new (a||j_)};
j_.\u0275cmp=D({type:j_,selectors:[["b-issue-actions-component"]],inputs:{actions:"actions",includeCommentByDefault:"includeCommentByDefault"},outputs:{actionsToAccept:"actionsToAccept"},standalone:!1,features:[jx],decls:5,vars:0,consts:[["excludeButton",""],["assigneePicker",""],["priorityPicker",""],["componentPicker",""],["statusPicker",""],[1,"flex-kids-y","gap-s"],[1,"row","flex-kids-x","gap-xs","align-items-center",3,"excluded","hide-comment"],[1,"row","flex-kids-x","gap-xs","align-items-center"],
[1,"field-name"],[1,"field-value","gap-xs","flex-kids-x","align-items-center","flex-wrap"],[3,"emailChange","user","displayValueOverride","teamId","disabled"],[1,"note"],[1,"buttons","margin-left-auto"],[3,"user","teamId","disabled"],[1,"muted"],["svgIcon","arrow-forward","color","primary",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Edit assignee","aria-label","Edit assignee",1,"small",3,"click","disabled"],["svgIcon","edit-outline",1,"icon-xxs"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],
[1,"field-value","gap-xs","flex-kids-x","align-items-center"],[3,"valueChange","type","value","choices","readonly"],[3,"type","value","choices","readonly"],["type","button","mat-icon-button","","matTooltip","Edit priority","aria-label","Edit priority",1,"small",3,"click","disabled"],[3,"comment","issueId","audience","formattingMode"],["type","button","mat-icon-button","","matTooltip","Edit comment","aria-label","Edit comment",1,"small","edit-comment",3,"click","disabled"],[3,"componentChanged","issueId",
"componentId","compactMode","handleSave","showPickerOverlayAbove","readOnly"],[3,"issueId","componentId","compactMode","readOnly"],["type","button","mat-icon-button","","matTooltip","Edit component","aria-label","Edit component",1,"small",3,"click","disabled"],[1,"flex-kids-x","align-items-center"],["matTooltip","Adding hotlist","svgIcon","add",1,"good","icon-xs"],[3,"hotlist","removable"],["matTooltip","Removing hotlist","svgIcon","remove_24px",1,"bad","icon-xs"],["type","button","mat-icon-button",
"","matTooltip","Edit hotlists","aria-label","Edit hotlists",1,"small",3,"click","disabled"],["matTooltip","Adding CC","svgIcon","add",1,"good","icon-xs"],["matTooltip","Removing CC","svgIcon","remove_24px",1,"bad","icon-xs"],["type","button","mat-icon-button","",1,"small","include",3,"matTooltip"],["type","button","mat-icon-button","",1,"small","exclude",3,"matTooltip"],["type","button","mat-icon-button","",1,"small","include",3,"click","matTooltip"],["svgIcon","done",1,"icon-xxs"],["type","button",
"mat-icon-button","",1,"small","exclude",3,"click","matTooltip"],["svgIcon","close",1,"icon-xxs"]],template:function(a,b){a&1&&(K(0,"div",5),Nf(1,byb,5,9,"div",6,mxb,!0),L(),E(3,fyb,2,2,"ng-template",null,0,Mg));a&2&&(B(),Of(HGd(b.draftActions)))},dependencies:[Sx,Jy,qT,xY,oV,kB,iB,vK,nA,MZ,i_,Tx,eV],styles:["[_nghost-%COMP%]     onedev-user-picker>button{width:unset;padding:0;min-height:unset}[_nghost-%COMP%]     div.md-preview{background-color:unset;margin:unset;padding:0}[_nghost-%COMP%]     b-edit-field .bv2-edit-button, [_nghost-%COMP%]     b-user-picker .edit-icon{display:none}[_nghost-%COMP%]     b-hotlist-chip .chip{padding:0;padding-left:2px;background-color:unset}b-user-picker[_ngcontent-%COMP%]{width:unset;margin-right:-6px}.field-name[_ngcontent-%COMP%]{min-width:100px;min-height:24px;line-height:24px;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start}.buttons[_ngcontent-%COMP%]{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;visibility:hidden}[_nghost-%COMP%]:focus-within   .buttons[_ngcontent-%COMP%], [_nghost-%COMP%]:hover   .buttons[_ngcontent-%COMP%]{visibility:visible}.row[_ngcontent-%COMP%]{min-height:24px}.row.hide-comment[_ngcontent-%COMP%]{min-height:unset}.good[_ngcontent-%COMP%]{color:#188038;color:var(--text-good)}.bad[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad)}[_nghost-%COMP%]     .excluded .field-name, [_nghost-%COMP%]     .excluded .field-value *{color:#bdc1c6;color:var(--text-disabled);text-decoration:line-through}.note[_ngcontent-%COMP%]{border-radius:4px;color:#1967d2;color:var(--primary-c700);background-color:#e8f0fe;background-color:var(--primary-c50);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;text-transform:uppercase;padding:2px 4px;font-weight:500;letter-spacing:.05rem}"],
changeDetection:0});var hyb=function(){return[]},JGd=new Map(["componentId","hotlists","priority","assignee","comment"].map(function(a,b){return[a,b]})),KGd=gn(function(a){var b;return(b=JGd.get(a.fieldName))!=null?b:Infinity},hn,"ASCENDING"),k_=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(uu);this.recommendationsService=p(c_);this.documentationLinks=p(cS);this.domSafe=p(mR);this.checkBeforeExit=p(rY);this.issueFridge=p(XP);this.scrolledOnScreenService=p(vU);this.cdr=p(Cx);this.elementRef=p(Hd);
this.includeComment=this.activeSession.getFlag("enableTriageRecommendationComments");this.RecommendationType=Ybd;this.recommendation$=new uf(1);this.disableLogging=!1;this.issueId$=this.recommendation$.pipe(A(function(b){return rt(b==null?void 0:b.resource)}));this.currentIssue$=this.issueId$.pipe(yf(function(b){return b?a.issueFridge.watch(b):ce(void 0)}));this.actions=[];this.actions$=ie([this.recommendation$,this.currentIssue$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;
d&&b.type==="ISSUE_DEDUPLICATION_BATCH"&&(b=nm(b),b.content.issueDeduplicationBatch.recommendedCanonicalIssue||(b.content.issueDeduplicationBatch.recommendedCanonicalIssue=d));b=nm(b);if(d){var e=LGd[b.type];if(e){var f,g,k;c=new Set((k=(f=b.content)==null?void 0:(g=f.issueModification)==null?void 0:g.addMask)!=null?k:[]);var l,r,w;f=new Set((w=(l=b.content)==null?void 0:(r=l.issueModification)==null?void 0:r.removeMask)!=null?w:[]);l=new Set([].concat(q(c),q(f)));var x,C;if((x=b.content)==null?0:
(C=x.issueModification)==null?0:C.addState)b.content.issueModification.addState=Object.assign({},d.snapshot[0],b.content.issueModification.addState);var H,J;if((H=b.content)==null?0:(J=H.issueModification)==null?0:J.addMask)for(x=m(e),C=x.next();!C.done;C=x.next())C=C.value,l.has(C)||b.content.issueModification.addMask.push(C);var O;e.has("comment")&&((O=b.content)==null?0:O.issueModification)&&!b.content.issueModification.comment&&(b.content.issueModification.comment={issueId:d.issueId,commentNumber:0,
formattedComment:void 0,lastEditorUser:void 0,lastModified:0,version:0,unlinkifiedComment:"",formattingMode:"PLAIN",entityStatus:void 0,piiRetentionState:void 0,piiRetention:void 0,redacted:!1,etag:void 0,commentReactions:new Map});O=m(l);for(d=O.next();!d.done;d=O.next())d=d.value,Jwb.has(d)&&(c.has(d)||(C=x=void 0,(x=b.content)==null||(C=x.issueModification)==null||C.addMask.push(d)),f.has(d)||(C=x=void 0,(x=b.content)==null||(C=x.issueModification)==null||C.removeMask.push(d)))}}return Dwb(b)}),
A(function(b){return KGd(b,"ASCENDING")}));this.actionsToAccept=[];this.isSaving$=new Mj(!1)};Y(k_,Z);k_.\u0275dir=Z.\u0275dir;
k_.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(sY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()&&a.recommendation.type!=="ISSUE_DEDUPLICATION_BATCH"&&a.recommendation.type!=="ISSUE_DEDUPLICATION"},!0));this.disableLogging||(qGd(this.recommendationsService,this.recommendation),this.subscriptions.add(ie([Xrd(this.scrolledOnScreenService,this.elementRef.nativeElement,{durationOnScreenMs:3E3})]).pipe(lf(1)).subscribe(function(){rGd(a.recommendationsService,a.recommendation)})));
this.subscriptions.add(this.actions$.subscribe(function(b){a.actions=b}))};k_.prototype.updateActionsToAccept=function(a){this.actionsToAccept=a;this.cdr.detectChanges()};k_.prototype.accept=function(a){var b=this;return y(function(c){if(c.nextAddress==1)return b.isSaving$.next(!0),z(c,mGd(b.recommendationsService,{recommendation:a,acceptedActions:b.actionsToAccept,originalActions:b.actions,disableLogging:b.disableLogging}),2);b.isSaving$.next(!1);ae(c)})};
k_.prototype.reject=function(a){var b=this;return y(function(c){if(c.nextAddress==1)return b.isSaving$.next(!0),z(c,oGd(b.recommendationsService,a),2);b.isSaving$.next(!1);ae(c)})};
var MGd=function(a,b){switch(b.type){case "ISSUE_DEDUPLICATION":var c,d,e;return"Accept changes and close current issue as duplicate of "+((c=b.content)==null?void 0:(d=c.recommendedIssue)==null?void 0:(e=d.snapshot[0])==null?void 0:e.title);case "ISSUE_DEDUPLICATION_BATCH":return a.actionsToAccept.length>1?"Close "+a.actionsToAccept.length+" issues as duplicates":"Close "+a.actionsToAccept.length+" issue as duplicate";default:return"Accept changes"}},NGd=function(a){switch(a.type){case "ISSUE_DEDUPLICATION":var b,
c,d;return"Reject recommendation to mark current issue as duplicate of "+((b=a.content)==null?void 0:(c=b.recommendedIssue)==null?void 0:(d=c.snapshot[0])==null?void 0:d.title);default:return"Reject recommendation"}};k_.prototype.openLink=function(a){this.domSafe.openInNewTab(a)};k_.prototype.hasUnsavedChanges=function(){return this.actionsToAccept.some(function(a){return a.isDirty})};
da.Object.defineProperties(k_.prototype,{recommendation:{configurable:!0,enumerable:!0,set:function(a){this.recommendation$.next(a)},get:function(){return Br(this.recommendation$)}}});k_.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(k_)))(b||k_)}}();
k_.\u0275cmp=D({type:k_,selectors:[["b-recommendation"]],inputs:{recommendation:"recommendation",disableLogging:"disableLogging"},standalone:!1,features:[Ef],decls:18,vars:16,consts:[[1,"flex-kids-y","gap-s","rounded","container"],[3,"actions","includeCommentByDefault"],[1,"flex-kids-x","space-between","full-width"],[1,"actions","flex-kids-x","gap-s","align-items-center","padded-s-bottom","full-width"],["type","button","mat-flat-button","","color","primary",1,"accept","keep-focus-ring",3,"click",
"disabled"],["svgIcon","done",1,"icon-s"],["type","button","mat-button","","mainSegment","","color","primary",1,"reject","small",3,"click","disabled"],["svgIcon","close",1,"icon-s"],[1,"margin-left-auto"],[1,"flex-kids-x"],[3,"currentIssue","actions"],[3,"actionsToAccept","currentIssue","actions"],[3,"actionsToAccept","actions","includeCommentByDefault"],[1,"flex-kids-x","gap-s","margin-s-bottom"],[3,"formattedComment","canEditComment"],["type","button","mat-icon-button","","aria-label","help",1,
"feedback-button",3,"click"],["svgIcon","help-outline",1,"icon-s"]],template:function(a,b){if(a&1){var c=t();K(0,"div",0);F(1,jyb,2,3)(2,kyb,2,5,"b-issue-actions-component",1);F(3,nyb,6,1);K(4,"div",2)(5,"div",3)(6,"button",4);T(7,"async");N("click",function(){u(c);return v(b.accept(b.recommendation))});M(8,"mat-icon",5);Q(9);L();K(10,"button",6);T(11,"async");N("click",function(){u(c);return v(b.reject(b.recommendation))});M(12,"mat-icon",7);Q(13," Reject ");L();F(14,oyb,1,0,"b-spinner",8);T(15,
"async");L();Zf(16);F(17,pyb,3,0,"div",9);L()()}if(a&2){B();G(b.recommendation.type===b.RecommendationType.ISSUE_DEDUPLICATION_BATCH||b.recommendation.type===b.RecommendationType.ISSUE_DEDUPLICATION?1:2);B(2);G(b.recommendation.rationale?3:-1);B(3);I("disabled",U(7,9,b.isSaving$)||b.actionsToAccept.length===0);If("aria-label",MGd(b,b.recommendation));B(3);a:switch(b.recommendation.type){case "ISSUE_DEDUPLICATION":a="Close issue as duplicate";break a;case "ISSUE_DEDUPLICATION_BATCH":a=b.actionsToAccept.length>
1?"Close "+b.actionsToAccept.length+" issues as duplicates":"Close "+b.actionsToAccept.length+" issue as duplicate";break a;default:a="Accept changes"}S(" ",a," ");B();I("disabled",U(11,11,b.isSaving$));If("aria-label",NGd(b.recommendation));B(4);G(U(15,13,b.isSaving$)?14:-1);B(2);a:{switch(b.recommendation.type){case "ISSUE_DEDUPLICATION":a="https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/mark-as-duplicate";break a}a=void 0}a=$f(a);B();G(a?17:-1)}},dependencies:[Jy,pT,kB,
gB,iB,hK,cU,d_,j_,Tx],styles:[".container[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg);padding:8px 16px}.container[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{margin-left:auto}[_nghost-%COMP%]     .actions button{height:26px;line-height:unset}.feedback-button[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;color:#3c4043;color:var(--gfx);min-width:20px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px}"],
changeDetection:0});var OGd={},LGd=(OGd.COMPONENT_ROUTING=new Set(["componentId","hotlists","priority","assignee"]),OGd.NEEDS_INFO=new Set(["comment"]),OGd);var PGd=function(){this.isReady=!1};PGd.\u0275fac=function(a){return new (a||PGd)};PGd.\u0275cmp=D({type:PGd,selectors:[["onedev-async-data-placeholder"]],inputs:{isReady:"isReady"},standalone:!1,ngContentSelectors:["*"],decls:2,vars:2,consts:[["class","loading-indicator",4,"ngIf"],[4,"ngIf"],[1,"loading-indicator"]],template:function(a,b){a&1&&(bg(),E(0,qyb,1,0,"div",0)(1,ryb,2,0,"ng-container",1));a&2&&(I("ngIf",!b.isReady),B(),I("ngIf",b.isReady))},dependencies:[Nx],styles:["[_nghost-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.loading-indicator[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_opacity-gradient .5s linear 0s infinite alternate;animation:_ngcontent-%COMP%_opacity-gradient .5s linear 0s infinite alternate;background-image:-webkit-gradient(linear,left top,right top,from(#f1f3f4),to(#dadce0));background-image:-webkit-linear-gradient(left,#f1f3f4,#dadce0);background-image:linear-gradient(90deg,#f1f3f4,#dadce0);border-radius:3px;height:10px;width:80px;display:inline-block}@-webkit-keyframes _ngcontent-%COMP%_opacity-gradient{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_opacity-gradient{0%{opacity:0}to{opacity:1}}"]});var QGd=function(){this.warning=""};QGd.\u0275fac=function(a){return new (a||QGd)};
QGd.\u0275cmp=D({type:QGd,selectors:[["onedev-warning-icon"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("is-present",b.warning)},inputs:{warning:"warning"},standalone:!1,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&&E(0,syb,2,
1,"svg",0);a&2&&I("ngIf",b.warning)},dependencies:[Nx,CX],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 RGd=["*",[["","actions",""]]],SGd=[[["onedev-field-label"]],[["onedev-field-value"]]],TGd=0,l_=function(){this.thinking=!1;this.warning=this.labelTooltip="";this.id="onedev-field-label-"+TGd;TGd++};l_.\u0275fac=function(a){return new (a||l_)};
l_.\u0275cmp=D({type:l_,selectors:[["onedev-field-label"]],hostVars:1,hostBindings:function(a,b){a&2&&If("id",b.id)},inputs:{thinking:"thinking",labelTooltip:"labelTooltip",warning:"warning"},standalone:!1,ngContentSelectors:["*"],decls:4,vars:3,consts:[[3,"isReady"],[1,"label",3,"matTooltip"],[3,"warning"]],template:function(a,b){a&1&&(bg(),K(0,"onedev-async-data-placeholder",0)(1,"span",1),cg(2),L(),M(3,"onedev-warning-icon",2),L());a&2&&(I("isReady",!b.thinking),B(),I("matTooltip",b.labelTooltip),
B(2),I("warning",b.warning))},dependencies:[PGd,CX,QGd],styles:["[_nghost-%COMP%]{line-height:29px;font-size:13px}span.label[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]});var UGd=function(){this.thinking=!1};UGd.\u0275fac=function(a){return new (a||UGd)};
UGd.\u0275cmp=D({type:UGd,selectors:[["onedev-field-value"]],inputs:{thinking:"thinking"},standalone:!1,ngContentSelectors:["*","[actions]"],decls:3,vars:1,consts:[[3,"isReady"]],template:function(a,b){a&1&&(bg(RGd),K(0,"onedev-async-data-placeholder",0),cg(1),cg(2,1),L());a&2&&I("isReady",!b.thinking)},dependencies:[PGd],encapsulation:2});var m_=function(){this.labelPosition="left"};
m_.prototype.ngAfterContentInit=function(){var a=this;setTimeout(function(){a.field&&a.label&&(a.field.labelledById=a.label.id)})};m_.\u0275fac=function(a){return new (a||m_)};
m_.\u0275cmp=D({type:m_,selectors:[["onedev-edit-field"]],contentQueries:function(a,b,c){a&1&&(ig(c,e_,5),ig(c,l_,7));if(a&2){var d;lg(d=mg())&&(b.field=d.first);lg(d=mg())&&(b.label=d.first)}},inputs:{labelPosition:"labelPosition"},standalone:!1,ngContentSelectors:["onedev-field-label","onedev-field-value"],decls:3,vars:4,consts:[[1,"wrapper"]],template:function(a,b){a&1&&(bg(SGd),K(0,"div",0),cg(1),cg(2,1),L());a&2&&wg("active",b.field==null?null:b.field.isActive())("top-label",b.labelPosition===
"top")},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 VGd=["traditionalEditorField"],WGd=["peopleKitUserPicker"],n_=function(){this.activeSession=p(uu);this.issuePermissionService=p($Q);this.issueDetailsBrain=p(YQ);this.elementRef=p(Hd);this.cdr=p(Cx);this.title=this.name="";this.value=null;this.valueChange=new aQ;this.emailChange=new aQ;this.displayValueOverride="";this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.teamId$=this.issueDetailsBrain.teamId$;this.FieldType=
pV};n_.prototype.emailToUser=function(a){return Om(xm(a))};n_.prototype.emitValueChange=function(){this.valueChange.emit({editField:void 0,newEmail:void 0});this.cdr.markForCheck()};n_.prototype.openEditor=function(){var a;(a=this.peopleKitUserPicker)==null||a.openPopOver()};n_.\u0275fac=function(a){return new (a||n_)};
n_.\u0275cmp=D({type:n_,selectors:[["b-single-user-control"]],viewQuery:function(a,b){a&1&&(hg(VGd,5),hg(WGd,5));if(a&2){var c;lg(c=mg())&&(b.traditionalEditorField=c.first);lg(c=mg())&&(b.peopleKitUserPicker=c.first)}},inputs:{name:"name",title:"title",value:"value",user:"user",anchor:"anchor",isSaving:"isSaving",displayValueOverride:"displayValueOverride"},outputs:{valueChange:"valueChange",emailChange:"emailChange"},standalone:!1,decls:10,vars:14,consts:[["peopleKitUserPicker",""],[3,"thinking"],
[3,"emailChange","anchor","user","teamId","disabled","displayValueOverride"],[3,"user"]],template:function(a,b){if(a&1){var c=t();K(0,"onedev-edit-field")(1,"onedev-field-label");Q(2);L();K(3,"onedev-field-value",1)(4,"b-user-picker",2,0);T(6,"emailToUser");T(7,"async");T(8,"async");N("emailChange",function(g){u(c);b.emailChange.emit(g);b.cdr.markForCheck();return v()});L();F(9,tyb,1,1,"b-availability-chip",3);L()()}if(a&2){B(2);yg(b.title);B();I("thinking",!!b.isSaving);B();var d,e,f;I("anchor",
(d=b.anchor)!=null?d:b.elementRef.nativeElement)("user",(e=b.user)!=null?e:U(6,8,b.value||""))("teamId",(f=U(7,10,b.teamId$))!=null?f:"")("disabled",!U(8,12,b.hasAclToEdit$))("displayValueOverride",b.displayValueOverride);B(5);G(b.user?9:-1)}},dependencies:[SU,l_,UGd,m_,i_,eV,Tx],encapsulation:2});var XGd=[[["","expansion-panel-header",""]],"*"],o_=function(){this.instance=o_.instanceCounter;this.expanded=!1};o_.prototype.ngOnInit=function(){o_.instanceCounter++};o_.prototype.toggle=function(){this.expanded=!this.expanded};o_.instanceCounter=0;o_.\u0275fac=function(a){return new (a||o_)};
o_.\u0275cmp=D({type:o_,selectors:[["b-expansion-panel"]],inputs:{expanded:"expanded"},exportAs:["expansionPanel"],standalone:!1,ngContentSelectors:["[expansion-panel-header]","*"],decls:6,vars:7,consts:[[1,"flex-kids-y"],["role","button","tabindex","0","aria-disabled","false",1,"header","flex-kids-x","padded-s","clickable-row",3,"click","keydown.enter","keydown.space","keyup.space","id"],["type","button","mat-icon-button","","aria-label","Toggle expansion state",1,"small","margin-left-auto",3,"click"],
["svgIcon","arrow-down",1,"icon-m"],["role","region",1,"content",3,"id"]],template:function(a,b){a&1&&(bg(XGd),K(0,"div",0)(1,"div",1),N("click",function(){return b.toggle()})("keydown.enter",function(){return b.toggle()})("keydown.space",function(c){return c.preventDefault()})("keyup.space",function(){return b.toggle()}),cg(2),K(3,"button",2),N("click",function(c){b.toggle();return c.stopPropagation()}),M(4,"mat-icon",3),L()(),F(5,uyb,2,3,"div",4),L());a&2&&(wg("expanded",b.expanded),B(),I("id",
Eg("expansion-panel-header-",b.instance)),If("aria-controls","expansion-panel-content-"+b.instance)("aria-expanded",b.expanded),B(4),G(b.expanded?5:-1))},dependencies:[Jy,kB,iB],styles:[".header[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.header[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}.expanded[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.content[_ngcontent-%COMP%]{padding:4px 12px 12px}\n/*# sourceMappingURL=expansion_panel.css.map */"]});var Jyb=function(){return[]},Pyb=function(a,b){return b.key},p_=function(){Z.apply(this,arguments);var a=this;this.issueFridge=p(XP);this.issueFullFridge=p(gQ);this.eventsForIssueFridge=p(NP);this.paramsService=p(WQ);this.issueExperimentalFieldsFridge=p(UP);this.issuePermissionService=p($Q);this.triageService=p(ZR);this.activeSession=p(uu);this.errorHandler=p(pO);this.preferences=p(hR);this.similarIssuesApi=p(mW);this.issueMarkAsDuplicateDialogService=p(wY);this.analytics=p(eQ);this.recommendationTriggerService=
p(cR);this.refreshMonitor=p(VP);this.enableSummaryBasedSimilarIssuesUI=this.activeSession.getFlag("enableSummaryBasedSimilarIssuesUI");this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");this.issueId$=this.triageService.currentIssueId$.pipe(ue(Pm),nf());this.PHASE_TO_ACTIONS=Tld;this.TriagePhase=Vbd;this.MAX_SIMILAR_ISSUES=10;this.displaySecondaryFooter=!1;this.refreshTable=new aQ;this.teamId$=Ijd(this.paramsService,"teamId").pipe(nf(),ue(Pm));this.triageViewId=this.paramsService.params.triageId;
this.phaseUrlSlug=this.paramsService.params.phase;this.data$=this.teamId$.pipe(A(function(b){return a.triageService.triageDataFactory.get(b,a.triageViewId)}));this.triageScope$=this.data$.pipe(yf(function(b){return b.triageScope$}));this.issue$=this.issueId$.pipe(yf(function(b){return a.issueFridge.watch(b)}));this.canonicalIssueId$=this.issue$.pipe(A(function(b){var c,d;return(d=b==null?void 0:(c=b.snapshot[0])==null?void 0:c.duplicateOfIssueId)!=null?d:void 0}));this.experimentalFields$=this.issueId$.pipe(yf(function(b){return a.issueExperimentalFieldsFridge.watch(b)}));
this.reporterUser$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.snapshot[0])==null?void 0:c.reporterUser}));this.reporterEmail$=this.reporterUser$.pipe(A(function(b){return wm(b)||""}));this.triagerEmail$=this.experimentalFields$.pipe(A(function(b){var c;return b==null?void 0:(c=b.triage)==null?void 0:c.triagerEmail}));this.triager$=this.triagerEmail$.pipe(A(function(b){return xm(b)}));this.issuePhase$=this.issue$.pipe(A(Gr));this.issuePhaseDisplay$=this.issuePhase$.pipe(A(function(b){var c;
return(c=b&&at.get(b))!=null?c:""}));this.issueSubphase$=this.issue$.pipe(A(Hr));this.issueSubphaseDisplay$=this.issueSubphase$.pipe(A(function(b){var c;return(c=b&&Zkd[b])!=null?c:""}));this.events$=this.issueId$.pipe(yf(function(b){return a.eventsForIssueFridge.watch(b)}),A(function(b){return(b==null?void 0:b.events)||[]}));this.comments$=this.events$.pipe(A(function(b){return b.filter(go).slice(1)}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==
null?void 0:c.accessLevel}));this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.enableInlineScreenshots$=this.preferences.showInlineImages$.pipe(A(Boolean),xf(!0));this.similarIssueIds$=ie([this.issueId$,this.triageScope$]).pipe(yf(function(b){var c=m(b);b=c.next().value;c=c.next().value;return uvd(a.similarIssuesApi,{issueId:Number(b),scope:c+" status:open",embeddingType:a.enableSummaryBasedSimilarIssuesUI?2:1})}),A(function(b){return b.similarIssues}),A(function(b){return b.map(function(c){return c.issueId})}),
A(function(b){return b.slice(0,10)}),vf({bufferSize:1,refCount:!0}));this.needsInfoAutomaticChanges$=this.reporterEmail$.pipe(A(function(b){return[{field:"ASSIGNEE",value:b},{field:"COMMENT",value:"Hi @"+b+", "}]}));this.teamId$.pipe(yf(function(b){return Xld(a.triageService.triageDataFactory.get(b,a.triageViewId),"NEW")}),A(function(b){var c=[].concat(q(Qld.fieldsToShow));if(b==null?0:b.length)b=c.findIndex(function(d){return d==="STATUS"}),c.splice(b+1,0,"HOTLISTS");return c}));this.dedupeCanonicalRecommendation$=
this.issueId$.pipe(yf(function(b){return Mjd(a.recommendationTriggerService,b)}),vf({bufferSize:1,refCount:!0}));this.dedupeBatchRecommendation$=this.issueId$.pipe(yf(function(b){return Njd(a.recommendationTriggerService,b)}),vf({bufferSize:1,refCount:!0}));this.dedupeRecommendation$=ie([this.dedupeCanonicalRecommendation$,this.dedupeBatchRecommendation$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b!=null?b:c}),vf({bufferSize:1,refCount:!0}));this.triageRecommendation$=
this.issueId$.pipe(yf(function(b){return Qjd(a.recommendationTriggerService,b)}),vf({bufferSize:1,refCount:!0}))};Y(p_,Z);p_.\u0275dir=Z.\u0275dir;h=p_.prototype;h.ngOnInit=function(){var a=this;this.subscriptions.add(this.refreshMonitor.getObservable().pipe(Cf(this.issueId$)).subscribe(function(b){b=m(b);b.next();b=b.next().value;a.eventsForIssueFridge.poke(b)}))};
h.setNeedsInfo=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="NEW";d.triage.subphase="NEEDS_INFO"}),2):c.return(c.yieldResult)})};h.setConfirmed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="CONFIRMED";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
h.setPendingOwner=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="CONFIRMED";d.triage.subphase="PENDING_OWNER"}),2):c.return(c.yieldResult)})};h.setInProgress=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
h.setExpected=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="EXPECTED"}),2):c.return(c.yieldResult)})};h.setPlanned=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="PLANNED"}),2):c.return(c.yieldResult)})};
h.setCommitted=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="COMMITTED"}),2):c.return(c.yieldResult)})};h.setFixed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="FIXED";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
h.setNew=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="NEW";d.triage.triagerEmail=void 0;d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
h.setWontFix=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="WONT_FIX";d.triage.triagerEmail=void 0;d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
h.openSecondaryActionFooter=function(a,b){var c=this;return y(function(d){if(d.nextAddress==1)return a!=="MARK_AS_DUPLICATE"?d.jumpTo(2):z(d,OBd(c.issueMarkAsDuplicateDialogService,b),3);if(d.nextAddress!=2)return c.analytics.trackEvent("triageIssue","changePhase",c.phaseUrlSlug+"_"+a),d.return();c.selectedTriageAction=a;c.displaySecondaryFooter=!0;c.announceUpdate(void 0,b);ae(d)})};
h.finalizeSecondaryAction=function(a){var b=this,c,d,e;return y(function(f){switch(f.nextAddress){case 1:if(!b.selectedTriageAction)return f.return();c=b.selectedTriageAction;d=a[0];switch(c){case "SET_NEEDS_INFO":return f.jumpTo(2);case "SET_CONFIRMED":return f.jumpTo(3);case "SET_PENDING_OWNER":return f.jumpTo(4);case "SET_NEW":return f.jumpTo(5);case "SET_IN_PROGRESS":return f.jumpTo(6);case "SET_EXPECTED":return f.jumpTo(7);case "SET_PLANNED":return f.jumpTo(8);case "SET_COMMITTED":return f.jumpTo(9);
case "SET_FIXED":return f.jumpTo(10);case "CHANGE_COMPONENT":return f.jumpTo(11);case "SET_WONT_FIX":return f.jumpTo(12);case "MARK_AS_DUPLICATE":throw Error("nf");default:wb(c)}f.jumpTo(13);break;case 2:return z(f,b.setNeedsInfo(d),14);case 14:e=f.yieldResult;f.jumpTo(13);break;case 3:return z(f,b.setConfirmed(d),15);case 15:e=f.yieldResult;f.jumpTo(13);break;case 4:return z(f,b.setPendingOwner(d),16);case 16:e=f.yieldResult;f.jumpTo(13);break;case 5:return z(f,b.setNew(d),17);case 17:e=f.yieldResult;
f.jumpTo(13);break;case 6:return z(f,b.setInProgress(d),18);case 18:e=f.yieldResult;f.jumpTo(13);break;case 7:return z(f,b.setExpected(d),19);case 19:e=f.yieldResult;f.jumpTo(13);break;case 8:return z(f,b.setPlanned(d),20);case 20:e=f.yieldResult;f.jumpTo(13);break;case 9:return z(f,b.setCommitted(d),21);case 21:e=f.yieldResult;f.jumpTo(13);break;case 10:return z(f,b.setFixed(d),22);case 22:e=f.yieldResult;f.jumpTo(13);break;case 11:return z(f,b.setNew(d),23);case 23:e=f.yieldResult;f.jumpTo(13);
break;case 12:return z(f,b.setWontFix(d),24);case 24:e=f.yieldResult;f.jumpTo(13);break;case 13:b.displaySecondaryFooter=!1,b.announceUpdate(e,d),b.analytics.trackEvent("triageIssue","changePhase",b.phaseUrlSlug+"_"+c),ae(f)}})};h.announceUpdate=function(a,b){a&&(this.issueFullFridge.poke(b),this.refreshTable.emit())};h.cancelAction=function(){this.selectedTriageAction=void 0;this.displaySecondaryFooter=!1};
var zyb=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return b&&b.length>0&&((c=b)==null||!c.endsWith("@google.com"))?(qO(a.errorHandler,"Only Googlers can be triagers."),e.return()):z(e,fe(a.issueId$),2);d=e.yieldResult;return z(e,a.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.triagerEmail=b}),0)})};p_.prototype.claim=function(){zyb(this,this.activeSession.getUserEmail());this.analytics.trackEvent("triageIssue","claim")};
p_.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(p_)))(b||p_)}}();
p_.\u0275cmp=D({type:p_,selectors:[["issue-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},standalone:!1,features:[Ef],decls:2,vars:3,consts:[["canonicalHovercard","onedevHovercard"],["canonicalCardBody",""],["triagerFieldAnchor",""],["triagerField",""],["expansionPanel",""],["card",""],[1,"container","bg-secondary","flex-kids-y"],[1,"top-bar","flex-kids-x","space-between","border-bottom","bg-main"],[1,"flex-kids-x","align-items-center","margin-s-left","gap-s"],[3,"issueId","showCopyOptions"],
[1,"flex-kids-x","align-items-center"],[1,"actions"],["mat-icon-button","","tabindex","0","target","_blank","matTooltip","Open issue in a new tab","aria-label","Open issue",1,"small","hover-link",3,"href"],["svgIcon","pop-out",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Close sidebar","aria-label","Close sidebar",1,"gmat-button",3,"click"],["svgIcon","close"],[1,"muted"],[1,"chippy"],[1,"chippy",3,"onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],
[3,"onedevIsHovercardReady","issueId"],["type","button","mat-button","","matTooltip","Set myself as the triager",1,"gmat-button","small"],["size","small",3,"email"],[1,"flex-1","triagerField",3,"valueChange","emailChange","name","anchor","title","value","user"],["type","button","mat-icon-button","","matTooltip","Edit triager","aria-label","Edit triager",1,"small","align-self-center",3,"click"],["svgIcon","edit-outline",1,"icon-xxs"],["type","button","mat-button","","matTooltip","Set myself as the triager",
1,"gmat-button","small",3,"click"],[1,"content","flex-kids-y"],[1,"title","margin-s"],[3,"title","issueId","componentId","hasAclToEdit"],[1,"margin-s-top","flex-kids-x","gap-s"],[1,"b-chip","issue-type","nowrap"],[1,"priority"],[3,"issuePriority"],[3,"vertical"],[3,"issueId"],[1,"rounded","bordered","margin-s","margin-top-none","bg-main",3,"expanded"],["expansion-panel-header",""],[1,"flex-kids-x","align-items-center","gap-xs","full-width"],["svgIcon","description_24px","color","primary",1,"margin-xs-right",
"shrink-0"],[1,"uppercase","margin-xs-right","muted"],[3,"id"],[1,"flex-kids-x","align-items-center","grow-1","margin-s-right"],["svgIcon","chat_24px","color","primary",1,"margin-xs-right","shrink-0"],[1,"uppercase","margin-xs-right","muted","nowrap"],[1,"margin-left-auto"],[3,"issueId","events","issueAccessLevel","showFullHistory"],["svgIcon","spark_24px","color","primary",1,"margin-xs-right","shrink-0"],[1,"uppercase","muted"],["svgIcon","info",1,"margin-left-auto","icon-s",3,"matTooltip"],[1,"triage-actions",
"bg-main","carded","flex-kids-x","align-items-center","margin-s"],[3,"onedevHovercardTrigger","model"],[3,"email"],[1,"margin-left-auto",3,"click"],["svgIcon","tab_close_24px","color","primary",1,"margin-xs-right","shrink-0"],[1,"rounded",3,"recommendation"],[3,"issueId","similarIssueIds","similarIssuesEnrichments","limit"],[1,"full-width",3,"needsInfoAutomaticChanges","selectedTriageAction"],[1,"full-width",3,"cancelAction","finalizeAction","needsInfoAutomaticChanges","selectedTriageAction"],[3,
"onSelect","phase"],["type","button","mat-button","",1,"gmat-button",3,"disabled"],["type","button","mat-button","",1,"gmat-button",3,"click","disabled"]],template:function(a,b){a&1&&(F(0,Tyb,19,19,"div",6),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issueId$))?0:-1,c)}},dependencies:[Jy,KZ,JZ,o_,kB,gB,iB,vK,nA,KK,LK,SK,MK,MW,DZ,QZ,tW,hT,vW,RZ,hK,k_,n_,YZ,HY,aV,$U,LU,bV,Tx],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden;position:absolute}[_nghost-%COMP%]     .triagerField onedev-field-label{min-width:unset}[_nghost-%COMP%]     .triagerField onedev-edit-field{margin:0}.triagerField[_ngcontent-%COMP%]{visibility:hidden;width:0}.content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;overflow:hidden auto}.content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .issue-type[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary);border:1px solid;border-color:#5f6368;border-color:var(--icon);font-family:Google Sans,Roboto,Arial,sans-serif;margin-right:0}.content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .priority[_ngcontent-%COMP%]{margin-top:1px}.content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .hotlist-container[_ngcontent-%COMP%]{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:2px;line-height:18px;max-height:64px;overflow-y:auto}[_nghost-%COMP%]     .comment1>mat-icon{display:none}[_nghost-%COMP%]     .comment1 .b-description-heading{display:none}[_nghost-%COMP%]     .comment1 .bv2-event-note{margin-top:4px}[_nghost-%COMP%]     b-event-stream-header h4{display:none}[_nghost-%COMP%]     .bv2-edit-issue-history-stream{padding-left:0}[_nghost-%COMP%]     .bv2-event-content-cell{padding-top:8px;padding-left:4px;padding-right:0}"]});var YGd=function(){var a=this;this.activeSession=p(uu);this.issueExperimentalFieldsFridge=p(UP);this.triageService=p(ZR);this.currentUserEmail=this.activeSession.getUserEmail();this.issueIds$=this.triageService.currentIssueIds$;this.onToggleClaim$=new Mj(void 0);this.hasUserClaimedIssues$=ie([this.issueIds$,this.onToggleClaim$]).pipe(A(function(b){var c=m(b);b=c.next().value;c.next();return b}),yf(function(b){return a.issueExperimentalFieldsFridge.watchSet(b)}),A(function(b){return b.every(function(c){var d;
return((d=c.triage)==null?void 0:d.triagerEmail)===a.currentUserEmail})}));this.buttonText$=ie([this.hasUserClaimedIssues$]).pipe(A(function(b){return m(b).next().value?"Unclaim":"Claim"}));this.isSaving=!1},Uyb=function(a,b,c){var d,e,f;return y(function(g){switch(g.nextAddress){case 1:a.isSaving=!0,d=m(b),e=d.next();case 2:if(e.done){g.jumpTo(4);break}f=e.value;return z(g,a.issueExperimentalFieldsFridge.updateOrInsert(f,function(k){k.triage.triagerEmail=c?void 0:a.currentUserEmail}),3);case 3:e=
d.next();g.jumpTo(2);break;case 4:a.isSaving=!1,a.onToggleClaim$.next(),ae(g)}})};YGd.\u0275fac=function(a){return new (a||YGd)};
YGd.\u0275cmp=D({type:YGd,selectors:[["claim-issues-button"]],standalone:!1,decls:2,vars:3,consts:[["type","button","mat-button","",1,"gmat-button",3,"ariaLabel","disabled"],["type","button","mat-button","",1,"gmat-button",3,"click","ariaLabel","disabled"]],template:function(a,b){a&1&&(F(0,Vyb,6,8,"button",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issueIds$))?0:-1,c)}},dependencies:[kB,gB,Tx],encapsulation:2,changeDetection:0});var czb=function(a,b){return b.key},q_=function(){Z.apply(this,arguments);var a=this;this.triageService=p(ZR);this.analytics=p(eQ);this.butterBar=p(UN);this.errorHandler=p(pO);this.issueApi=p(MP);this.issueFridge=p(XP);this.issueFullFridge=p(gQ);this.issuePermissionService=p($Q);this.issuePicker=p(UX);this.paramsService=p(WQ);this.triagePhaseService=p(IY);this.phaseUrlSlug=this.paramsService.params.phase;this.issueIds$=this.triageService.currentIssueIds$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;
this.PHASE_TO_ACTIONS=Tld;this.TriagePhase=Vbd;this.displaySecondaryFooter=!1;this.issue$=this.issueIds$.pipe(yf(function(b){return a.issueFridge.watch(b[0])}));this.issuePhase$=this.issue$.pipe(A(Gr));this.issuePhaseDisplay$=this.issuePhase$.pipe(A(function(b){var c;return(c=b&&at.get(b))!=null?c:""}));this.issues$=this.issueIds$.pipe(yf(function(b){return a.issueFridge.watchSet(b)}));this.issueSubphases$=this.issues$.pipe(A(function(b){return b.map(function(c){return Hr(c)}).filter(function(c){return c!==
void 0})}));this.issueSubphasesDisplay$=this.issueSubphases$.pipe(A(function(b){b=b.map(function(c){var d;return(d=Zkd[c])!=null?d:""});return tq(b)}));this.refreshTable=new aQ};Y(q_,Z);q_.\u0275dir=Z.\u0275dir;h=q_.prototype;
h.openDupeDialog=function(){var a=this,b,c,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:return z(l,fe(a.issueIds$),2);case 2:b=l.yieldResult;if(!b||!b.length)return l.return();c=zUa;return z(l,fe(a.issueFridge.watchSet(b)),3);case 3:return d=c(l.yieldResult),e=m,z(l,a.issuePicker.open({componentId:d||null,allowMultipleIds:!1,currentResource:{id:b[0],type:"issue"},edgeType:"canonical",originIsBulk:!0}),4);case 4:return f=e(l.yieldResult),(k=g=f.next().value)?z(l,a.markAsDuplicate(k,
b),0):l.return()}})};h.openSecondaryActionFooter=function(a){var b=this;return y(function(c){if(c.nextAddress==1)return a!=="MARK_AS_DUPLICATE"?c.jumpTo(2):z(c,b.openDupeDialog(),3);if(c.nextAddress!=2)return b.analytics.trackEvent("triageIssue","changePhase",b.phaseUrlSlug+"_"+a),c.return();b.selectedTriageAction=a;b.displaySecondaryFooter=!0;ae(c)})};h.cancelAction=function(){this.displaySecondaryFooter=!1};h.closeSidebar=function(){this.triageService.closeSidebar();this.triageService.setMode(0)};
h.finalizeSecondaryAction=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1){if(!b.selectedTriageAction)return e.return();c=b.selectedTriageAction;return z(e,mCd(b.triagePhaseService,a,c),2)}d=e.yieldResult;b.displaySecondaryFooter=!1;b.announceUpdate(a,d);ae(e)})};
h.markAsDuplicate=function(a,b){var c=this,d,e,f;return y(function(g){if(g.nextAddress==1){d=b.filter(function(k){return k!==a});if(!d.length)return g.return();e={bulkEditOps:[{actions:[{fieldName:"duplicateOfIssueId",value:a}],issueIds:b}]};Wd(g,2);Rr(c.butterBar,"Saving...");return z(g,c.issueApi.issueBulkEdit(e),4)}if(g.nextAddress!=2)return Rr(c.butterBar,"Marked "+b.length+" issues as duplicate."),c.announceUpdate(b),c.closeSidebar(),dt(g,0);f=$d(g);rO(c.errorHandler,f);return z(g,Promise.all([].concat(q(b.map(function(k){return c.issueFridge.poke(k)})),
[c.issueFridge.poke(a)])),0)})};h.announceUpdate=function(a,b){if(b&&b.length)for(a=m(a),b=a.next();!b.done;b=a.next())this.issueFullFridge.poke(b.value);this.refreshTable.emit()};q_.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(q_)))(b||q_)}}();
q_.\u0275cmp=D({type:q_,selectors:[["selection-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},standalone:!1,features:[Ef],decls:15,vars:12,consts:[[1,"container","bg-secondary","flex-kids-y"],[1,"border-bottom","bg-main","align-items-center","flex-kids-x"],[1,"margin-s-left","margin-s-right"],["type","button","mat-icon-button","","matTooltip","Close sidebar","aria-label","Close sidebar",1,"gmat-button","margin-left-auto",3,"click"],["svgIcon","close"],[1,"content","flex-kids-y"],[1,"heading-m",
"margin-s"],[1,"bg-main","carded","flex-kids-x","align-items-center","margin-s"],[1,"muted"],[1,"chippy"],[1,"chippy","margin-s-right"],[1,"full-width",3,"selectedTriageAction"],[1,"full-width",3,"cancelAction","finalizeAction","selectedTriageAction"],[3,"onSelect","phase"],["type","button","mat-button","",1,"gmat-button",3,"disabled"],["type","button","mat-button","",1,"gmat-button",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),F(2,Wyb,5,1,"div",2),T(3,"async"),F(4,
Zyb,1,1),T(5,"async"),K(6,"button",3),N("click",function(){return b.closeSidebar()}),M(7,"mat-icon",4),L()(),K(8,"div",5)(9,"h3",6),Q(10),T(11,"async"),L(),K(12,"div",7),F(13,fzb,2,3),T(14,"async"),L()()());if(a&2){var c,d,e,f;B(2);G((c=U(3,4,b.issuePhaseDisplay$))?2:-1,c);B(2);G((d=U(5,6,b.issueSubphasesDisplay$))?4:-1,d);B(6);S("",(e=U(11,8,b.issueIds$))==null?null:e.length," issues");B(3);G((f=U(14,10,b.issueIds$))?13:-1,f)}},dependencies:[Jy,kB,gB,iB,vK,nA,YGd,HY,LU,Tx],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden;position:absolute}.content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;overflow:hidden auto}\n/*# sourceMappingURL=selection_triage_sidebar.css.map */"],
changeDetection:0});var r_=function(){var a=this;this.editIssueService=p(GS);this.issueFridge=p(XP);this.IssueFieldKey=hCd;this.issueId$=new uf(1);this.automaticChange$=new uf(1);this.editableIssue$=this.issueId$.pipe(yf(function(b){return a.editIssueService.editableIssue$(b)}),vf({refCount:!0,bufferSize:1}));this.undone=!1;this.text$=ie([this.editableIssue$,this.automaticChange$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;a:{var d=c.field;switch(d){case "STATUS":b="Auto changed status";break a;
case "ASSIGNEE":b=c.value===b.reporter?"Auto assigned to reporter":"Auto assigned";break a;case "COMMENT":b="";break a;default:wb(d)}b=void 0}return b}))};r_.prototype.ngOnInit=function(){};
r_.prototype.undo=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return b=a.automaticChange.field,z(e,fe(a.editableIssue$),2);if(e.nextAddress!=3)return c=e.yieldResult,z(e,fe(a.issueFridge.watch(a.issueId)),3);d=e.yieldResult;if(!d)return e.return();switch(b){case "STATUS":c.setStatus(d.snapshot[0].status);break;case "ASSIGNEE":c.setAssignee(tm(d.snapshot[0].assigneeUser));break;case "COMMENT":throw Error("Rf");default:wb(b)}a.undone=!0;ae(e)})};
da.Object.defineProperties(r_.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return Br(this.issueId$)}},automaticChange:{configurable:!0,enumerable:!0,set:function(a){this.automaticChange$.next(a)},get:function(){return Br(this.automaticChange$)}}});r_.\u0275fac=function(a){return new (a||r_)};
r_.\u0275cmp=D({type:r_,selectors:[["automatic-change-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&vg("display",b.automaticChange.field===b.IssueFieldKey.COMMENT||b.undone?"none":"block")},inputs:{issueId:"issueId",automaticChange:"automaticChange"},standalone:!1,decls:7,vars:3,consts:[[1,"b-chip","blue","flex-kids-x","align-items-center","gap-xs"],["matTooltip","System suggestion","svgIcon","pen_spark_24px",1,"icon-s","margin-xs-right","color-text"],[1,"color-text"],["type","button","mat-button",
"",1,"gmat-button","small",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0),M(1,"mat-icon",1),K(2,"span",2),Q(3),T(4,"async"),L(),K(5,"button",3),N("click",function(){return b.undo()}),Q(6,"Undo"),L()());a&2&&(B(3),yg(U(4,1,b.text$)))},dependencies:[Jy,kB,gB,vK,nA,Tx],encapsulation:2,changeDetection:0});var ZGd=["pickerToggle"],s_=function(){this.customAriaLabelledBy=this.customFormId=void 0;this.required=!1;this.valueChange=new aQ};s_.\u0275fac=function(a){return new (a||s_)};
s_.\u0275cmp=D({type:s_,selectors:[["b-date-time-input"]],viewQuery:function(a,b){a&1&&hg(ZGd,7);if(a&2){var c;lg(c=mg())&&(b.pickerToggle=c.first)}},inputs:{customFormId:"customFormId",customAriaLabelledBy:"customAriaLabelledBy",value:"value",required:"required"},outputs:{valueChange:"valueChange"},exportAs:["bDateTimeInput"],standalone:!1,decls:4,vars:6,consts:[["pickerToggle","bDateTimePickerToggle"],["mat-stroked-button","","type","button","bDateTimePickerToggle","",3,"bDateTimePickerToggleSelectedChange",
"id","bDateTimePickerToggleRequired","bDateTimePickerToggleSelected","bDateTimePickerToggleFocusTrapHost"],["mode","date",3,"date"]],template:function(a,b){if(a&1){var c=t();K(0,"button",1,0);N("bDateTimePickerToggleSelectedChange",function(d){u(c);b.value=d;b.valueChange.emit(d);return v()});F(2,gzb,1,1,"b-formatted-date-time",2)(3,hzb,2,0,"ng-container");L()}a&2&&(I("id",b.customFormId)("bDateTimePickerToggleRequired",b.required)("bDateTimePickerToggleSelected",b.value)("bDateTimePickerToggleFocusTrapHost",
!1),If("aria-labelledby",b.customAriaLabelledBy),B(2),G(b.value?2:3))},dependencies:[kV,rV,kB,gB],styles:["/*# sourceMappingURL=date_time_input.css.map */"]});var $Gd=["filterInput"],t_=function(){Z.apply(this,arguments);this.dateFormatter=p(hS);this.enumChoices=[];this.onSave=new aQ;this.valueMap=new Map;this.sortedValues=[];this.filterValue=null;this.currentSelectedDate=void 0};Y(t_,Z);t_.\u0275dir=Z.\u0275dir;h=t_.prototype;h.ngOnInit=function(){this.initValues()};h.ngOnChanges=function(a){a.originalValueMap&&this.initValues()};h.ngAfterViewInit=function(){var a=this,b;(b=this.trigger)==null||b.menuOpened.pipe(yf(function(){return re(0)}),zf(this.destroyed$)).subscribe(function(){a.focusFilterBox()})};
h.showMenu=function(){this.trigger.openMenu()};h.closeMenu=function(){this.trigger.closeMenu()};h.focusFilterBox=function(){var a;(a=this.filterElement)==null||a.nativeElement.focus()};var aHd=function(a){return a.filterValue&&a.type!=="REPEATED_DATE"?a.sortedValues.filter(function(b){return a.getDisplayString(b).includes(String(a.filterValue))}):a.sortedValues};h=t_.prototype;
h.addValue=function(){var a=this.filterValue;this.filterValue=null;a&&!this.valueMap.get(a)&&(this.valueMap.set(a,!0),this.sortValues(),this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()}))};h.changeSelection=function(a){this.focusFilterBox();var b=this.valueMap.get(a);b?this.valueMap.set(a,!1):b===!1?(b=this.originalValueMap.get(a)===null,this.valueMap.set(a,b?null:!0)):this.valueMap.set(a,!0);this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()})};
h.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||b!==void 0?c!==b:!1})};h.initValues=function(){this.valueMap=new Map(this.originalValueMap||[]);this.enumChoices=this.enumChoices||[];for(var a=m(this.enumChoices),b=a.next();!b.done;b=a.next())b=b.value,this.valueMap.has(b)||this.valueMap.set(b,!1);this.sortValues()};
h.sortValues=function(){var a=this;this.sortedValues=Array.from(this.valueMap.keys()).sort(function(b,c){b=a.valueMap.get(b);c=a.valueMap.get(c);return(c?1:c===!1?-1:0)-(b?1:b===!1?-1:0)})};var jzb=function(a){return!!a.filterValue&&a.type!=="REPEATED_ENUM"&&a.type!=="REPEATED_DATE"};t_.prototype.getDisplayString=function(a){return this.type==="REPEATED_DATE"?this.dateFormatter.formatUserCalendar(TQa(a)):a};t_.prototype.getLabel=function(){return this.valueChanged()?"Changed":"Unchanged"};
t_.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(t_)))(b||t_)}}();
t_.\u0275cmp=D({type:t_,selectors:[["b-bulk-repeated-field-picker"]],viewQuery:function(a,b){a&1&&(hg(iH,5),hg($Gd,5));if(a&2){var c;lg(c=mg())&&(b.trigger=c.first);lg(c=mg())&&(b.filterElement=c.first)}},inputs:{type:"type",originalValueMap:"originalValueMap",enumChoices:"enumChoices"},outputs:{onSave:"onSave"},standalone:!1,features:[Ef,jx],decls:14,vars:6,consts:[["customFieldMenu","matMenu"],["filterInput",""],["mat-button","","type","button",1,"medium","primary",3,"matMenuTriggerFor"],["name",
"arrow-dropdown","size","small"],["role","option",1,"multi-edit-menuitem",3,"title"],[1,"filter"],["mat-input","","step","any",3,"type","ngModel","placeholder"],["mat-menu-item",""],[3,"change","click","checked","indeterminate"],["mat-input","","step","any",3,"keydown","click","ngModelChange","type","ngModel","placeholder"],["mat-menu-item","",3,"click"],[3,"valueChange","value"],["mat-menu-item","","aria-label","Add a date value","tabindex","0","aria-haspopup","true",3,"click"]],template:function(a,
b){a&1&&(K(0,"button",2)(1,"span"),Q(2),L(),M(3,"b-icon",3),L(),K(4,"mat-menu",null,0),Nf(6,izb,3,4,"div",4,Mf),M(8,"mat-divider"),K(9,"div",5),F(10,kzb,2,3,"input",6),L(),F(11,lzb,1,0,"mat-divider"),F(12,mzb,2,0,"div",7),F(13,nzb,4,1,"div"),L());a&2&&(a=qg(5),I("matMenuTriggerFor",a),B(2),yg(b.getLabel()),B(4),Of(aHd(b)),B(4),G(b.type!=="REPEATED_DATE"?10:-1),B(),G(jzb(b)?11:-1),B(),G(jzb(b)?12:-1),B(),G(b.type==="REPEATED_DATE"?13:-1))},dependencies:[VJ,fH,dH,iH,hK,sT,kB,gB,kL,hI,xj,fE,mE,s_],styles:[".multi-edit-menuitem[_ngcontent-%COMP%]{padding:0 5px}.filter[_ngcontent-%COMP%]{padding:0 5px}/*# sourceMappingURL=bulk_repeated_field_picker.css.map */"]});var bHd=0,u_=function(a){this.changeDetectorRef=a;this.active=!1;this.id="b-list-option-"+bHd;bHd+=1};u_.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};u_.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};u_.\u0275fac=function(a){return new (a||u_)(Ve(Cx))};
u_.\u0275dir=af({type:u_,selectors:[["","onedevListOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Pf("id",b.id),wg("active",b.active))},inputs:{option:"option"},exportAs:["onedevListOption"],standalone:!1});var cHd=function(){};cHd.\u0275fac=function(a){return new (a||cHd)};cHd.\u0275mod=$e({type:cHd});cHd.\u0275inj=Fc({});var qzb=function(a){return{$implicit:a}},v_=function(a){var b=this;this.includeEmptyOption=this.disabled=!1;this.emptyOptionValue=void 0;this.showFilterBar=!1;this.options$=new Mj([]);this.filterText$=new Mj("");this.filteredOptions$=ie([this.options$,this.filterText$]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;return b.filterFunction!==void 0&&b.filterFunction!==null?c.filter(function(f){return b.filterFunction(e,f)}):c}));this.valueChange=new Ti;this.selected=new Ti;this.destroyed$=
new uf(1);a&&this.handleKeydown(a.keydown$)};h=v_.prototype;h.ngOnInit=function(){};h.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};h.ngAfterViewInit=function(){this.keyManager=nz(mz(new rz(this.viewOptions)))};h.ngOnChanges=function(a){a.value&&dHd(this);a.options&&this.options$.next(this.options)};h.isSelected=function(a){return this.value===a};h.select=function(a){this.disabled||(this.isSelected(a)||this.valueChange.emit(a),this.selected.emit())};
var dHd=function(a){if(a.keyManager)if(a.includeEmptyOption&&a.isSelected(a.emptyOptionValue))a.keyManager.setActiveItem(0);else{var b=a.options.findIndex(function(c){return a.isSelected(c)});b!==-1&&(a.keyManager.setActiveItem(a.includeEmptyOption?b+1:b),eHd(a))}};v_.prototype.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&this.keyManager.setActiveItem(-1)};
v_.prototype.handleKeydown=function(a){var b=this;a.pipe(zf(this.destroyed$)).subscribe(function(c){if(!b.disabled&&b.keyManager){var d=c.code;d==="ArrowUp"||d==="ArrowDown"?(c.preventDefault(),b.keyManager.onKeydown(c),eHd(b)):d==="Home"||d==="End"?(c.preventDefault(),d==="Home"?b.keyManager._setActiveItemByIndex(0,1):CCc(b.keyManager),eHd(b)):d!=="Enter"&&d!=="Space"||!b.keyManager.activeItem||(c.preventDefault(),b.select(b.keyManager.activeItem.option))}})};
var eHd=function(a){var b,c;if(a=(b=a.keyManager)==null?void 0:(c=b.activeItem)==null?void 0:c.id){var d;(d=document.getElementById(a))==null||d.scrollIntoView({block:"nearest"})}};v_.\u0275fac=function(a){return new (a||v_)(Ve(qW,8))};
v_.\u0275cmp=D({type:v_,selectors:[["onedev-selectable-list"]],viewQuery:function(a,b){a&1&&hg(u_,5);if(a&2){var c;lg(c=mg())&&(b.viewOptions=c)}},hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(a,b){a&1&&N("focus",function(){return dHd(b)})("blur",function(){return b.clearActiveItem()});a&2&&(a=b.keyManager&&b.keyManager.activeItem?b.keyManager.activeItem.id:void 0,If("aria-activedescendant",a)("aria-disabled",b.disabled)("aria-label",b.label))},inputs:{value:"value",options:"options",
optionTemplate:"optionTemplate",disabled:"disabled",includeEmptyOption:"includeEmptyOption",emptyOptionValue:"emptyOptionValue",label:"label",showFilterBar:"showFilterBar",filterFunction:"filterFunction"},outputs:{valueChange:"valueChange",selected:"selected"},standalone:!1,features:[jx],decls:3,vars:4,consts:[["filterEl",""],["optionDisplay",""],["customOptionDisplay",""],["emptyOption",""],["class","filter-bar","onedevListOption","",4,"ngIf"],[4,"ngIf"],["onedevListOption","",1,"filter-bar"],["xmlns",
"http://www.w3.org/2000/svg","viewBox","0 0 24 24"],["d","M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"],["placeholder","Type to filter","spellcheck","false",3,"input"],["role","option","onedevListOption","",3,"option","click",4,"ngIf"],[4,"ngFor","ngForOf"],["role","option","onedevListOption","",3,"click","option"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],["aria-label","empty"]],template:function(a,b){a&1&&(E(0,ozb,5,0,"div",4)(1,Bzb,5,2,"ng-container",5),T(2,"async"));
a&2&&(I("ngIf",b.showFilterBar),B(),I("ngIf",U(2,2,b.filteredOptions$)))},dependencies:[Mx,Nx,Sx,u_,Tx],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)}.filter-bar[_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);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;border-bottom:1px solid var(--hairline,#dadce0)}.filter-bar[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{height:18px;width:18px;color:var(--icon,#5f6368);fill:currentColor}.filter-bar[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;background-color:var(--surface-default,#fff);color:var(--text-default,#202124);outline:none;width:100%;padding-left:4px}"],
changeDetection:0});var fHd=["trigger"],Dzb=function(a){return{$implicit:a}},gHd=0,w_=function(){this.includeEmptyOption=this.disabled=!1;this.emptyOptionValue=void 0;this.showFilterBar=!1;this.popupMaxHeight=300;this.label="";this.valueChange=new Ti;this.closed=new Ti;this.displayArrowIcon=!0;this.openPopupOnInit=!1;this.required=Og.apply(null,[!1].concat(q([])));this.focused=!1;this.contentId="onedev-single-select-"+gHd;this.onChange=function(){};this.onTouched=function(){};gHd++};Y(w_,e_);h=w_.prototype;
h.ngOnInit=function(){};h.ngAfterViewInit=function(){this.openPopupOnInit&&(this.popupTrigger.open(),this.focused=!0)};h.writeValue=function(a){this.val=a};h.onSelectionChange=function(a){a!==this.val&&(this.onChange(a),this.value=a,this.valueChange.emit(a))};h.isActive=function(){return this.popupTrigger.isOpen||this.focused};h.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};h.registerOnChange=function(a){this.onChange=a};
h.registerOnTouched=function(a){this.onTouched=a};var hHd=function(a){var b="";a.label&&(b+=a.label+", ");a.required()&&(b+="required, ");return b};w_.prototype.setDisabledState=function(a){this.disabled=a};da.Object.defineProperties(w_.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});w_.\u0275fac=function(a){return new (a||w_)};
w_.\u0275cmp=D({type:w_,selectors:[["onedev-single-select"]],viewQuery:function(a,b){a&1&&hg(fHd,7);if(a&2){var c;lg(c=mg())&&(b.popupTrigger=c.first)}},inputs:{value:"value",options:"options",disabled:"disabled",includeEmptyOption:"includeEmptyOption",emptyOptionValue:"emptyOptionValue",showFilterBar:"showFilterBar",filterFunction:"filterFunction",popupMaxHeight:"popupMaxHeight",label:"label",labelledById:"labelledById",valueTemplate:"valueTemplate",optionTemplate:"optionTemplate",displayArrowIcon:"displayArrowIcon",
openPopupOnInit:"openPopupOnInit",required:[1,"required"]},outputs:{valueChange:"valueChange",closed:"closed"},standalone:!1,features:[Gg([{provide:aE,useExisting:Vc(function(){return w_}),multi:!0},{provide:e_,useExisting:Vc(function(){return w_}),multi:!0}]),Ef],decls:13,vars:22,consts:[["trigger","onedevPopupPanelTrigger"],["optionTemplateOrTextLabel",""],["textLabel",""],["panel","onedevPopupPanel"],["emptyValue",""],["type","button","onedevPopupPanelTrigger","",3,"focus","blur","click","closed",
"onedevPopupPanelTriggerDisabled","disabled","onedevPopupPanelTriggerFor"],[1,"cdk-visually-hidden"],[4,"ngIf","ngIfElse"],["class","arrow-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],["onedevKeyEventReceiver","",3,"relayOnly"],["tabindex","0",1,"single-select-panel",3,"valueChange","selected","value","includeEmptyOption","emptyOptionValue","options","optionTemplate","label","showFilterBar","filterFunction"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["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=t();K(0,"button",5,0);N("focus",function(){u(c);return v(b.focused=!0)})("blur",function(){u(c);return v(b.focused=!1)})("click",function(){u(c);var e=qg(1);return v(e.open())})("closed",function(){u(c);b.closed.emit();b.onTouched();return v()});K(2,"span",6);Q(3);L();E(4,Ezb,2,4,"ng-container",7)(5,Hzb,1,2,"ng-template",null,1,Mg)(7,Kzb,3,2,"ng-template",
null,2,Mg)(9,Lzb,2,0,"svg",8);L();K(10,"onedev-popup-panel",9,3)(12,"onedev-selectable-list",10);N("valueChange",function(e){u(c);return v(b.onSelectionChange(e))})("selected",function(){u(c);var e=qg(1);return v(e.close())});L()()}if(a&2){a=qg(6);var d=qg(11);wg("active",b.isActive());I("onedevPopupPanelTriggerDisabled",b.disabled)("disabled",b.disabled)("onedevPopupPanelTriggerFor",d);If("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());B(3);yg(hHd(b));B();I("ngIf",b.valueTemplate)("ngIfElse",
a);B(5);I("ngIf",b.displayArrowIcon);B();I("relayOnly",!0);B(2);vg("max-height",b.popupMaxHeight,"px");I("value",b.value)("includeEmptyOption",b.includeEmptyOption)("emptyOptionValue",b.emptyOptionValue)("options",b.options)("optionTemplate",b.optionTemplate)("label",b.label)("showFilterBar",b.showFilterBar)("filterFunction",b.filterFunction)}},dependencies:[Nx,Sx,qW,v_,rW,sW],styles:["[_nghost-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}button[_ngcontent-%COMP%]{background:none;border:1px solid transparent;color:var(--text-default,#202124);padding:4px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px;font-size:13px;padding:4px 4px 4px 6px;text-align:start}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.arrow-icon[_ngcontent-%COMP%]{margin-left:auto;width:18px;height:18px;color:var(--icon,#5f6368);fill:currentColor}.single-select-panel[_ngcontent-%COMP%]{display:block;min-width:85px}.single-select-panel[_ngcontent-%COMP%]:focus{outline:0}"]});var Tzb=function(){return[]},x_=function(){this.data=p(TA);this.dialogRef=p(RA);this.customFields=[];this.originalCustomFields=new Map;this.repeatedCustomFieldsMap=new Map;this.issues=this.data;this.bulkEditOps=[]};h=x_.prototype;
h.ngOnInit=function(){for(var a=new Map,b=null,c=m(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=m(Object.keys(d)),g=f.next();!g.done;g=f.next())g=g.value,b.set(rm(g),e[g]||void 0)}f=m(b);for(g=f.next();!g.done;g=f.next()){var k=m(g.value);g=k.next().value;k=k.next().value;var l=d[g],r=e[g],w=void 0,x=(w=l)==null?void 0:w.type;if(l)if(x==="REPEATED_DATE"||x==="REPEATED_ENUM"||x==="REPEATED_NUMERIC"||x==="REPEATED_TEXT"){k=
this.repeatedCustomFieldsMap.get(g)||new Map;l=k.size===0;r=iHd(r);w=Array.from(k.keys()).concat(r);w=m(w);for(x=w.next();!x.done;x=w.next())x=x.value,r.includes(x)?k.has(x)||k.set(x,l||null):k.set(x,null);this.repeatedCustomFieldsMap.set(g,k)}else(!r&&k!==void 0||r&&!mm(r,k))&&b.set(g,null);else b.delete(g)}d=m(Object.entries(d));for(e=d.next();!e.done;e=d.next())f=m(e.value),e=f.next().value,f=f.next().value,a.set(Number(e),nm(f))}this.customFields=Array.from(b.keys(),function(C){return a.get(C)}).filter(function(C){return C});
this.customFields=this.customFields.map(function(C){var H=b.get(C.customFieldId);C.hasMultipleValues=H===null;H?C=Object.assign(H,C):C.hasMultipleValues||C.type!=="ENUM"||(C.enumValue="");return C});c=m(this.customFields);for(d=c.next();!d.done;d=c.next())d=d.value,this.originalCustomFields.set(d.customFieldId,nm(d))};
h.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}};h.getCustomFieldName=function(a){return a.name};h.isCustomFieldRequired=function(a){return a.required};h.getCustomFieldAllowedValues=function(a){return a.allowedValue};h.getCustomFieldType=function(a){return a.type};
var Ozb=function(a){return"bv2-custom-field-"+a.customFieldId+"-label"},iHd=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()}):[]},Rzb=function(a){return a?Sq(a):null},Vzb=function(a,b,c){for(var d=m(a.bulkEditOps),e=d.next();!e.done;e=d.next())e=e.value,e.actions=e.actions.filter(function(w){return w.customFieldValue.customFieldId!==
b});a.bulkEditOps=a.bulkEditOps.filter(function(w){return w.actions.length});if(c.valueChanged){d=m(a.issues);var f=d.next();for(e={};!f.done;e={issueValues$jscomp$1:void 0,action$jscomp$220:void 0},f=d.next()){f=f.value;var g=mta(f.customFieldValueMap,function(w){return w.customFieldId===b});e.issueValues$jscomp$1=iHd(g);c.valueMap.forEach(function(w){return function(x,C){x&&!w.issueValues$jscomp$1.includes(C)?w.issueValues$jscomp$1.push(C):x===!1&&(w.issueValues$jscomp$1=w.issueValues$jscomp$1.filter(function(H){return H!==
C}))}}(e));g=a.originalCustomFields.get(b).type;var k=[],l=[];g=="REPEATED_DATE"?k=e.issueValues$jscomp$1.map(function(w){return j1a(TQa(w))}):g=="REPEATED_NUMERIC"&&(l=e.issueValues$jscomp$1.map(function(w){return Number(w)}));var r={customFieldId:b};switch(g){case "REPEATED_TEXT":r.repeatedTextValue={values:e.issueValues$jscomp$1};break;case "REPEATED_DATE":r.repeatedDateValue={values:k};break;case "REPEATED_ENUM":r.repeatedEnumValue={values:e.issueValues$jscomp$1};break;case "REPEATED_NUMERIC":r.repeatedNumericValue=
{values:l}}e.action$jscomp$220={fieldName:"customField",customFieldValue:r,actionType:Uq(r)?"REMOVE":"ADD"};g=a.bulkEditOps.findIndex(function(w){return function(x){return x.actions.some(function(C){return mm(w.action$jscomp$220,C)})}}(e));g!==-1?a.bulkEditOps[g].issueIds.push(f.issueId):a.bulkEditOps.push({actions:[e.action$jscomp$220],issueIds:[f.issueId]})}}},jHd=function(a){var b=a.customFields.filter(function(k){return!k.type.includes("REPEATED")&&!mm(k,a.originalCustomFields.get(k.customFieldId))}),
c=[];b=m(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d={customFieldId:e.customFieldId};switch(e.type){case "TEXT":d.textValue=e.textValue;break;case "DATE":d.dateValue=e.dateValue||void 0;break;case "ENUM":d.enumValue=e.enumValue;break;case "NUMERIC":var f=void 0;d.numericValue=(f=e.numericValue)!=null?f:void 0}if(e=Uq(d))d.textValue="";c.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}if(c.length){var g=a.issues.map(function(k){return k.issueId});b=a.bulkEditOps.findIndex(function(k){return Gba(g,
k.issueIds)});b!==-1?a.bulkEditOps[b].actions=a.bulkEditOps[b].actions.concat(c):a.bulkEditOps.push({actions:c,issueIds:g})}};x_.\u0275fac=function(a){return new (a||x_)};
x_.\u0275cmp=D({type:x_,selectors:[["b-bulk-custom-field-dialog"]],standalone:!1,decls:11,vars:1,consts:[["mat-dialog-title",""],[1,"bv2-create-adv-field"],["mat-button","","mat-dialog-close","","type","button",3,"class"],["mat-flat-button","","type","button","color","primary",1,"medium","dialog-primary-action","save",3,"click"],[1,"bv2-top-field-label"],["matTooltipPosition","right",3,"matTooltip"],["name","customInput","placeholder","no value","type","text",3,"ngModel"],["step","any","name","customInput",
"type","number",3,"ngModel"],[3,"value","options","labelledById"],[3,"type","originalValueMap","enumChoices"],["name","customInput","placeholder","no value","type","text",3,"ngModelChange","ngModel"],["step","any","name","customInput","type","number",3,"ngModelChange","ngModel"],[3,"valueChange","value","required","customAriaLabelledBy","customFormId"],[3,"valueChange","value","options","labelledById"],[3,"onSave","type","originalValueMap","enumChoices"],["title","Clear values",3,"click"]],template:function(a,
b){a&1&&(K(0,"h2",0),Q(1,"Update custom fields"),L(),K(2,"mat-dialog-content"),F(3,Mzb,2,0,"div"),Nf(4,Zzb,7,5,"div",1,Mf),L(),K(6,"mat-dialog-actions")(7,"button",2),N("class",function(){return b.dialogRef.close()}),Q(8,"Cancel"),L(),K(9,"button",3),N("click",function(){jHd(b);b.bulkEditOps.length?b.dialogRef.close(b.bulkEditOps):b.dialogRef.close()}),Q(10," Save "),L()());a&2&&(B(3),G(b.customFields.length===0?3:-1),B(),Of(b.customFields))},dependencies:[VA,XA,ZA,YA,w_,t_,xj,oE,fE,mE,s_,kB,gB,vK,
nA],encapsulation:2});var cAb=function(){return[]},y_=function(){this.disabled=this.readonly=!1;this.save=new aQ},kHd=function(a){return a.issue.customFieldMap[a.field.customFieldId]};y_.prototype.getDisplayValue=function(){var a,b,c=(b=(a=kHd(this).displayValues)==null?void 0:a[0])!=null?b:null;c==="0.0"&&(c="0");return c};y_.prototype.getTooltip=function(){var a=this.field.customFieldId;a=this.field.shared?"(Shared Field "+a+". see go/b-scf)":"[ID: "+a+"]";var b;return((b=this.field.description)!=null?b:"")+" "+a};
var bAb=function(a){return(a=Tq(kHd(a)))&&a.values===void 0?a:null},$zb=function(a){return(a=Tq(kHd(a)))&&a.values!==void 0?a.values:null};da.Object.defineProperties(y_.prototype,{isShared:{configurable:!0,enumerable:!0,get:function(){return this.field.shared}}});y_.\u0275fac=function(a){return new (a||y_)};
y_.\u0275cmp=D({type:y_,selectors:[["b-custom-field-editor"]],viewQuery:function(a,b){a&1&&hg(oV,5);if(a&2){var c;lg(c=mg())&&(b.editField=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&wg("is-shared-field",b.isShared)},inputs:{issue:"issue",field:"field",readonly:"readonly",disabled:"disabled"},outputs:{save:"save"},standalone:!1,decls:1,vars:1,consts:[[3,"readonly","defaultLineCount","title","type","customFieldId","tooltip","values","displayValuesOverride","enumChoices","listFieldDisabled"],
[3,"readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","customFieldId"],[3,"valuesChange","readonly","defaultLineCount","title","type","customFieldId","tooltip","values","displayValuesOverride","enumChoices","listFieldDisabled"],[3,"valueChange","readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","customFieldId"]],template:function(a,b){a&1&&F(0,eAb,2,1);if(a&
2){var c;G((c=kHd(b))?0:-1,c)}},dependencies:[OV,oV],encapsulation:2});var z_=function(){};z_.\u0275fac=function(a){return new (a||z_)};z_.\u0275mod=$e({type:z_});z_.\u0275inj=Fc({imports:[WO,PV,qV]});var fAb=function(){this.assignee=this.reporter=this.team=null;this.assigneeEmail=void 0;this.verifier=null;this.verifierEmail=void 0;this.duplicateOfIssueId=this.inProd=this.verifiedInVersion=this.targetedToVersion=this.foundInVersion=this.lastViewedTime=this.verifiedTime=this.resolvedTime=this.blockedByIssueId=this.blockingIssueId=this.hotlistId=this.postmortem=this.changelist=this.collaborator=this.cc=null;this.customFieldMap={};this.customFieldNameToIdMap={};this.customFieldValueMap={};this.lastModifier=
this.ccCount=this.collaboratorCount=this.duplicateCount=this.voteCount=null;this.isClosed=this.isRead=this.selected=!1;this.escalationOwner=this.issueAccessLevel=this.sloEndTime=this.sloStartTime=this.sloStatus=this.position=this.effort=null};var A_=function(){Z.apply(this,arguments);var a=this;this.componentFridge=p(RO);this.editIssueService=p(GS);this.issueFridge=p(XP);this.matDialog=p(UA);this.paramsService=p(WQ);this.triageService=p(ZR);this.hasMultipleIssues=!1;this.subphase=this.phase=void 0;this.onCustomFieldBulkEdit=new aQ;this.issueId$=this.triageService.currentIssueId$;this.issueIds$=this.triageService.currentIssueIds$;this.teamId=this.paramsService.params.teamId;this.triageViewId=this.paramsService.params.triageId;this.issues$=
this.issueIds$.pipe(yf(function(b){return a.issueFridge.watchSet(b)}));this.components$=this.issues$.pipe(yf(function(b){b=b.map(function(c){return c.snapshot[0].componentId}).filter(function(c){return c!==null});return a.componentFridge.watchSet(b)}));this.bulkEditUpdate$=new Mj([]);this.issueRows$=ie([this.issues$,this.components$]).pipe(A(function(b){b=m(b);var c=b.next().value;b=b.next().value;var d=[];c=m(c);for(var e=c.next(),f={};!e.done;f={issue$jscomp$233:void 0},e=c.next())f.issue$jscomp$233=
e.value,e=b.find(function(g){return function(k){return k.componentId===g.issue$jscomp$233.snapshot[0].componentId}}(f)),d.push(hAb(f.issue$jscomp$233,e));return d}));this.updatedIssueRows$=ie([this.issueRows$,this.bulkEditUpdate$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return c.length?lHd(b,c):b}));this.customFieldConfigs$=Wld(this.triageService.triageDataFactory.get(this.teamId,this.triageViewId),this.phase,this.subphase);this.visibleCustomFields$=this.issueId$.pipe(yf(function(b){return b?
a.editIssueService.issueFields(b).visibleCustomFields$:ce(void 0)}));this.customFields$=ie([this.visibleCustomFields$,this.customFieldConfigs$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d=(c==null?void 0:c.map(function(e){return e.customFieldId}))||[];if(b=b==null?void 0:b.filter(function(e){return d.includes(String(e.customFieldId))}))return b}),vf({refCount:!0,bufferSize:1}))};Y(A_,Z);A_.\u0275dir=Z.\u0275dir;
A_.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.customFieldConfigs$.subscribe(function(b){if(b){b=m(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a.editableIssue.setCustomFieldValue(Number(c.customFieldId),c.defaultValues[0].value)}}))};
var iAb=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=a.matDialog.open(x_,{data:b,width:"500px"}),z(e,fe(SA(c)),2);d=e.yieldResult;if(!d)return e.return();a.onCustomFieldBulkEdit.emit(d);a.bulkEditUpdate$.next(d);ae(e)})};A_.prototype.updateCustomField=function(a,b){this.editableIssue.setCustomField(a,b)};
var lHd=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issueIds;d=m(d.actions);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.fieldName==="customField"&&(e=e.customFieldValue))for(var f=e.customFieldId,g=m(c),k=g.next(),l={};!k.done;l={issueId$jscomp$345:void 0},k=g.next())l.issueId$jscomp$345=k.value,(k=a.find(function(r){return function(w){return w.issueId===r.issueId$jscomp$345}}(l)))&&(k.customFieldValueMap[f]=e)}return a};
A_.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(A_)))(b||A_)}}();
A_.\u0275cmp=D({type:A_,selectors:[["triage-custom-fields-editor"]],inputs:{editableIssue:"editableIssue",hasMultipleIssues:"hasMultipleIssues",phase:"phase",subphase:"subphase"},outputs:{onCustomFieldBulkEdit:"onCustomFieldBulkEdit"},standalone:!1,features:[Ef],decls:2,vars:1,consts:[[1,"bv2-issue-metadata-list-field","bv2-issue-metadata-field"],[1,"bv2-issue-metadata-field-inner","align-items-center"],[1,"bv2-editable-title"],["type","button","mat-button","",1,"gmat-button",3,"click"],[3,"issue",
"field"],[3,"save","issue","field"]],template:function(a,b){a&1&&F(0,kAb,2,3)(1,mAb,3,2);a&2&&G(b.hasMultipleIssues?0:1)},dependencies:[y_,kB,gB,Tx],encapsulation:2,changeDetection:0});var mHd=["input"],B_=function(){this.internalValue="";this.autocompleteConfigService=p(EW);this.destroyRef=p(Ce);this.darkmodeService=p(DW);this.refresh$=te(this.darkmodeService.clientDarkmode$).pipe(A(function(){}));this.wordInfo={wordStart:0,wordEnd:0,word:""};this.placeholder=this.ariaLabel="";this.candidateDenylist=[];this.sessionOptions=(new dv).setFilter(swd);this.valueChange=new aQ};h=B_.prototype;
h.handleSelectionChange=function(a){var b,c=(b=this.inputRef)==null?void 0:b.nativeElement;c&&(this.findWordAroundCursor(),a=twd(a).join(", "),nHd.test(c.value.substring(this.wordInfo.wordEnd))||(a+=", "),c.setRangeText(a,this.wordInfo.wordStart,this.wordInfo.wordEnd),c.selectionStart=this.wordInfo.wordStart+a.length,c.selectionEnd=this.wordInfo.wordStart+a.length,this.emitValueChange())};h.emitValueChange=function(){var a,b=(a=this.inputRef)==null?void 0:a.nativeElement;b&&this.valueChange.emit(b.value)};
h.focus=function(){var a;(a=this.inputRef)==null||a.nativeElement.focus()};h.cancel=function(){this.manualAutocomplete.cancel()};h.findWordAroundCursor=function(){var a,b=(a=this.inputRef)==null?void 0:a.nativeElement.selectionStart;a=this.wordInfo;var c,d;this.wordInfo=bkb((d=(c=this.inputRef)==null?void 0:c.nativeElement.value)!=null?d:"",b!=null?b:0);return a.word!==this.wordInfo.word||a.wordStart!==this.wordInfo.wordStart||a.wordEnd!==this.wordInfo.wordEnd};
da.Object.defineProperties(B_.prototype,{value:{configurable:!0,enumerable:!0,set:function(a){this.internalValue=a}}});B_.\u0275fac=function(a){return new (a||B_)};
B_.\u0275cmp=D({type:B_,selectors:[["b-peoplekit-multi"]],viewQuery:function(a,b){a&1&&(hg(mHd,5),hg(sX,5));if(a&2){var c;lg(c=mg())&&(b.inputRef=c.first);lg(c=mg())&&(b.manualAutocomplete=c.first)}},hostBindings:function(a,b){a&1&&N("selectionchange",function(){b.inputRef&&document.activeElement===b.inputRef.nativeElement&&b.findWordAroundCursor()&&b.manualAutocomplete.cancel()},Rga)},inputs:{ariaLabel:"ariaLabel",placeholder:"placeholder",candidateDenylist:"candidateDenylist",value:"value"},outputs:{valueChange:"valueChange"},
standalone:!1,decls:1,vars:1,consts:[["input",""],[3,"refreshable"],["type","text","autocomplete","off","spellcheck","off","aria-expanded","true","peoplekitManualAutocomplete","",3,"input","blur","peoplekitAutocompleteSelectionChange","placeholder","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions"]],template:function(a,b){a&1&&E(0,nAb,2,5,"ng-template",1);a&2&&I("refreshable",b.refresh$)},dependencies:[xj,fE,mE,tU,sX],styles:["input[_ngcontent-%COMP%] {width: 100%}"],changeDetection:0});
var nHd=/^\s*,/u;var oHd=["peoplekitMulti"],C_=function(){this.cdr=p(Cx);this.activeSession=p(uu);this.destroyRef=p(Ce);this.autocompleteConfigService=p(EW);this.actionName="Addition";this.inputValidator=null;this.title="";this.onAddItems=new aQ;this.onCancel=new aQ;this.newlySelectedUsersString=this.invalidMessage=""};
C_.prototype.textPopupSubmit=function(a){var b=this,c,d;return y(function(e){c=b.newlySelectedUsersString;d=ne(function(){return b.inputValidator?b.inputValidator(c):ce("")});d.pipe(lf(1),Tj(b.destroyRef)).subscribe(function(f){b.invalidMessage=f;if(a.valid&&!b.invalidMessage){a==null||a.reset();var g;(g=b.peoplekitMulti)==null||g.focus();b.onAddItems.emit(c);b.newlySelectedUsersString=""}b.cdr.markForCheck()});ae(e)})};C_.\u0275fac=function(a){return new (a||C_)};
C_.\u0275cmp=D({type:C_,selectors:[["b-person-lookup-form"]],viewQuery:function(a,b){a&1&&hg(oHd,5,B_);if(a&2){var c;lg(c=mg())&&(b.peoplekitMulti=c.first)}},inputs:{actionName:"actionName",isAllowedToEditCollection:"isAllowedToEditCollection",inputValidator:"inputValidator",title:"title"},outputs:{onAddItems:"onAddItems",onCancel:"onCancel"},standalone:!1,decls:11,vars:11,consts:[["textPopupForm","ngForm","formEl",""],["peoplekitMulti",""],[3,"ngSubmit"],["aria-expanded","true",3,"valueChange"],
[1,"bv2-list-field-addition-dialog-buttons"],["mat-flat-button","","type","submit",1,"medium","field-popup-button",3,"disabled"],["svgIcon","done"],["mat-stroked-button","","type","button",1,"medium","field-popup-button",3,"click"],["svgIcon","close"]],template:function(a,b){if(a&1){var c=t();K(0,"form",2,0);N("ngSubmit",function(){u(c);var d=qg(1),e=qg(2);return v(b.textPopupSubmit(d,e))});K(3,"b-peoplekit-multi",3,1);N("valueChange",function(d){u(c);return v(b.newlySelectedUsersString=d)});L();
K(5,"div",4)(6,"button",5);M(7,"mat-icon",6);L();K(8,"button",7);N("click",function(){u(c);return v(b.onCancel.emit())});M(9,"mat-icon",8);L()();F(10,oAb,2,4,"mat-error");L()}a&2&&(a=qg(1),B(3),If("aria-label",Fg("",b.actionName," to ",b.title)),B(3),If("aria-label",Fg("Apply ",b.actionName," to ",b.title)),I("disabled",!a.valid||!b.isAllowedToEditCollection),B(2),If("aria-label",Fg("Discard ",b.actionName," to ",b.title)),B(2),G(b.invalidMessage?10:-1))},dependencies:[Jy,nE,gE,kE,kB,gB,ID,B_],encapsulation:2,
changeDetection:0});var pHd=["addButton"],qHd=["removeButton"],D_=function(){this.inputValidator=null;this.title=this.subtitle="";this.addCurrentUser=new aQ;this.removeCurrentUser=new aQ;this.onAddUsers=new aQ;this.onRemoveUsers=new aQ};D_.prototype.closeAddPopup=function(){var a,b=m((a=this.popupTriggers)!=null?a:[]);for(a=b.next();!a.done;a=b.next())this.closeInlineDialog(a.value)};var rAb=function(a){var b,c=m((b=a.popupTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())a.closeInlineDialog(b.value)};
D_.prototype.handleAddItems=function(a){qAb(a,this.onAddUsers);this.closeAddPopup()};D_.prototype.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};var qAb=function(a,b){a&&(a=a.split(/[,; ]/).filter(function(c){return!!c}),a.length&&b.emit(a))};D_.\u0275fac=function(a){return new (a||D_)};
D_.\u0275cmp=D({type:D_,selectors:[["triage-edit-user-buttons"]],viewQuery:function(a,b){a&1&&(hg(pHd,5),hg(qHd,5),hg(eB,5));if(a&2){var c;lg(c=mg())&&(b.addButtonEl=c.first);lg(c=mg())&&(b.removeButtonEl=c.first);lg(c=mg())&&(b.popupTriggers=c)}},inputs:{inputValidator:"inputValidator",isAllowedToEditCollection:"isAllowedToEditCollection",subtitle:"subtitle",title:"title"},outputs:{addCurrentUser:"addCurrentUser",removeCurrentUser:"removeCurrentUser",onAddUsers:"onAddUsers",onRemoveUsers:"onRemoveUsers"},
standalone:!1,decls:22,vars:12,consts:[["addButton",""],["removeButton",""],["addUsersPopup",""],["removeUsersPopup",""],[1,"bv2-issue-metadata-list-field","bv2-issue-metadata-field"],[1,"bv2-issue-metadata-field-inner","align-items-center"],[1,"bv2-editable-title"],[1,"subtitle"],[1,"flex-kids-x","gap"],["type","button","mat-button","",1,"small",3,"xapInlineDialogClick","dialogLabel"],["type","button","mat-button","",1,"gmat-button","small",3,"click","disabled"],[3,"onAddItems","onCancel","actionName",
"inputValidator","isAllowedToEditCollection","title"]],template:function(a,b){if(a&1){var c=t();K(0,"div",4)(1,"div",5)(2,"div",6)(3,"label");Q(4);L()();K(5,"div",7);Q(6);L();K(7,"div",8)(8,"button",9,0);Q(10," Add ");L();K(11,"button",9,1);Q(13," Remove ");L();K(14,"button",10);N("click",function(){u(c);return v(b.addCurrentUser.emit())});Q(15," Add me ");L();K(16,"button",10);N("click",function(){u(c);return v(b.removeCurrentUser.emit())});Q(17," Remove me ");L()()()();E(18,pAb,3,4,"ng-template",
null,2,Mg)(20,sAb,3,4,"ng-template",null,3,Mg)}if(a&2){a=qg(19);var d=qg(21);B(4);S(" ",b.title," ");B(2);yg(b.subtitle);B(2);I("dialogLabel",Eg("Add users to ",b.title))("xapInlineDialogClick",a);B(3);I("dialogLabel",Eg("Remove users from ",b.title))("xapInlineDialogClick",d);B(3);I("disabled",!b.isAllowedToEditCollection);If("aria-label","Add me to "+b.title);B(2);I("disabled",!b.isAllowedToEditCollection);If("aria-label","Remove me from "+b.title)}},dependencies:[kB,gB,C_,bB,aB,eB],styles:[".subtitle[_ngcontent-%COMP%]{cursor:default}.subtitle[_ngcontent-%COMP%]:hover{cursor:default}\n/*# sourceMappingURL=edit_user_buttons.css.map */"],
changeDetection:0});var zAb=function(a,b){return b.name},E_=function(){Z.apply(this,arguments);var a=this;this.hotlistPickerService=p(FY);this.issueFullFridge=p(gQ);this.paramsService=p(WQ);this.triageService=p(ZR);this.issueRecommendationFridge=p(iQ);this.analytics=p(eQ);this.hotlistIdsChange=new aQ;this.hotlistIdsMapChange=new aQ;this.areAllHotlistsEqual=!0;this.hasMultipleIssues=!1;this.hotlistIdSet=new Set;this.selectedHotlistIdsMap=new Map;this.subphase=this.phase=void 0;this.triageViewId=this.paramsService.params.triageId;
this.teamId=this.paramsService.params.teamId;this.issueId$=this.triageService.currentIssueId$.pipe(ue(Pm),nf());this.issue$=this.issueId$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));this.issueIds$=this.triageService.currentIssueIds$.pipe(ue(Pm),nf());this.issues$=this.issueIds$.pipe(yf(function(b){return a.issueFullFridge.watchSet(b)}));this.recommendations$=this.issueId$.pipe(yf(function(b){return a.issueRecommendationFridge.watch(b+"-HOTLIST")}),A(function(b){return((b==null?void 0:
b.recommendations)||[]).filter(function(c){return c.confidence==="VERY_HIGH"}).filter(Pm).slice(0,2)}))};Y(E_,Z);E_.\u0275dir=Z.\u0275dir;
E_.prototype.ngOnInit=function(){var a=this,b,c,d,e,f,g,k,l,r,w,x,C,H,J,O;return y(function(R){if(R.nextAddress==1)return z(R,fe(a.issue$),2);if(R.nextAddress!=3)return b=R.yieldResult,z(R,fe(a.issues$),3);d=(c=R.yieldResult)!=null?c:[];a.hasMultipleIssues=d.length>1;l=(k=(e=b)==null?void 0:(f=e.snapshot[0])==null?void 0:(g=f.hotlistId)==null?void 0:g.map(String))!=null?k:[];a.hotlistIdSet=new Set(l);a.hotlistIdsChange.emit([].concat(q(a.hotlistIdSet)));r=m(d);for(w=r.next();!w.done;w=r.next())x=
w.value,J=H=C=void 0,O=(J=(C=x)==null?void 0:(H=C.snapshot[0])==null?void 0:H.hotlistId)!=null?J:[],a.selectedHotlistIdsMap.set(x.issueId.toString(),new Set(O.map(String)));a.areAllHotlistsEqual=rHd(a);a.subscriptions.add(Xld(a.triageService.triageDataFactory.get(a.teamId,a.triageViewId),a.phase,a.subphase).subscribe(function(V){var ca=[],na=[];V=m(V);for(var ua=V.next();!ua.done;ua=V.next())ua=ua.value,ua.operation==="ADD"&&ca.push.apply(ca,q(ua.hotlistIds)),ua.operation==="REMOVE"&&na.push.apply(na,
q(ua.hotlistIds));ca.length&&a.addHotlists(ca);na.length&&a.removeHotlists(na)}));a.subscriptions.add(a.recommendations$.pipe(lf(1)).subscribe(function(V){V.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","Triage")}));ae(R)})};E_.prototype.openHotlistModal=function(){this.hasMultipleIssues?BAb(this):sHd(this)};
var sHd=function(a){var b,c,d,e,f;y(function(g){if(g.nextAddress==1)return z(g,fe(a.issueId$),2);if(g.nextAddress!=3)return b=g.yieldResult,z(g,bCd(a.hotlistPickerService,b,[].concat(q(a.hotlistIdSet)).map(Number),!1),3);c=g.yieldResult;if(!c)return g.return();d=c;e=d.addedIds;f=d.removedIds;e.length>0&&a.addHotlists(e);f.length>0&&a.removeHotlists(f);ae(g)})},BAb=function(a){var b,c,d,e,f,g,k,l,r,w,x,C,H;return y(function(J){if(J.nextAddress==1)return z(J,fe(a.issueIds$),2);if(J.nextAddress!=3){b=
J.yieldResult;c=new Map;d=m(a.selectedHotlistIdsMap.entries());for(e=d.next();!e.done;e=d.next())f=e.value,g=m(f),k=g.next().value,l=g.next().value,r=k,w=l,c.set(r,new Set([].concat(q(w)).map(Number)));return z(J,gCd(a.hotlistPickerService,c),3)}x=J.yieldResult;if(!x)return J.return();tHd(a,x);a.areAllHotlistsEqual=rHd(a);a.areAllHotlistsEqual&&((C=a.selectedHotlistIdsMap.get(b[0]))?(H=[].concat(q(C)).map(String),a.hotlistIdSet=new Set(H)):a.hotlistIdSet.clear());ae(J)})};
E_.prototype.addHotlists=function(a){for(var b=m(a),c=b.next();!c.done;c=b.next())this.hotlistIdSet.add(c.value);this.updateSelectedHotlists(function(d){for(var e=m(a),f=e.next();!f.done;f=e.next())d.add(f.value)});this.hotlistIdsChange.emit([].concat(q(this.hotlistIdSet)))};E_.prototype.removeHotlists=function(a){for(var b=m(a),c=b.next();!c.done;c=b.next())this.hotlistIdSet.delete(c.value);this.updateSelectedHotlists(function(d){for(var e=m(a),f=e.next();!f.done;f=e.next())d.delete(f.value)});this.hotlistIdsChange.emit([].concat(q(this.hotlistIdSet)))};
var wAb=function(a,b){var c,d,e,f=b==null?void 0:(c=b.content)==null?void 0:(d=c.recommendedHotlist)==null?void 0:(e=d.hotlistId)==null?void 0:e.toString();f&&!a.hotlistIdSet.has(f)&&a.hotlistIdSet.add(f);a.updateSelectedHotlists(function(g){f&&g.add(f)});a.hotlistIdsChange.emit([].concat(q(a.hotlistIdSet)))},rHd=function(a){if(a.selectedHotlistIdsMap.size<2)return!0;var b=[].concat(q(a.selectedHotlistIdsMap.values()));a=b[0];b=m(b);for(var c=b.next();!c.done;c=b.next())if(!CQa(a,c.value))return!1;
return!0},tHd=function(a,b){b=b.issueMapDiffs;for(var c=m(b.values()),d=c.next(),e={};!d.done;e={added$jscomp$13:void 0,removed$jscomp$8:void 0},d=c.next())d=d.value,e.added$jscomp$13=d.added,e.removed$jscomp$8=d.removed,a.updateSelectedHotlists(function(f){return function(g){for(var k=m(f.added$jscomp$13),l=k.next();!l.done;l=k.next())g.add(l.value.toString());k=m(f.removed$jscomp$8);for(l=k.next();!l.done;l=k.next())g.delete(l.value.toString())}}(e));a.hotlistIdsMapChange.emit(b)};
E_.prototype.updateSelectedHotlists=function(a){var b=[].concat(q(this.selectedHotlistIdsMap.values()));b=m(b);for(var c=b.next();!c.done;c=b.next())a(c.value)};E_.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(E_)))(b||E_)}}();
E_.\u0275cmp=D({type:E_,selectors:[["triage-hotlists-editor"]],inputs:{phase:"phase",subphase:"subphase"},outputs:{hotlistIdsChange:"hotlistIdsChange",hotlistIdsMapChange:"hotlistIdsMapChange"},standalone:!1,features:[Ef],decls:2,vars:3,consts:[[1,"bv2-issue-metadata-field","bv2-issue-metadata-field-inner","flex-1"],[1,"bv2-editable-title"],[1,"flex-1","hotlist-container","bv2-editable-value","align-items-center"],["type","button","mat-stroked-button","","aria-label","Add Hotlist","matTooltip","Add Hotlist",
1,"small","add-hotlists-btn",3,"click"],["svgIcon","add",1,"icon-xs","margin-xs-right"],[1,"multiple-values"],[3,"id"],[3,"removeHotlist","id"],["analyticsLabel","Triage",3,"hotlist","recommendationId","issueId","updateHotlistsInstantly"],["analyticsLabel","Triage",3,"onAccept","hotlist","recommendationId","issueId","updateHotlistsInstantly"]],template:function(a,b){a&1&&(F(0,CAb,12,4,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issue$))?0:-1,c)}},dependencies:[Jy,kB,gB,vK,nA,NZ,PZ,Tx],styles:["button.add-hotlists-btn[_ngcontent-%COMP%]{margin-right:8px}"]});var F_=function(){var a=this;this.elementRef=p(Hd);this.eventType="click";this.clickOutside=new aQ;this.clickHandler=function(b){var c=b.target instanceof Element?b.target:b.target instanceof Node?b.target.parentElement:null;c&&(c.closest(".cdk-overlay-container")||a.elementRef.nativeElement.contains(c)||a.clickOutside.emit(b))}};F_.prototype.ngOnInit=function(){document.addEventListener(this.eventType,this.clickHandler,!0)};
F_.prototype.ngOnDestroy=function(){document.removeEventListener(this.eventType,this.clickHandler,!0)};F_.\u0275fac=function(a){return new (a||F_)};F_.\u0275dir=af({type:F_,selectors:[["","clickOutside",""]],inputs:{eventType:[0,"clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"},standalone:!1});var G_=function(){};G_.\u0275fac=function(a){return new (a||G_)};G_.\u0275mod=$e({type:G_});G_.\u0275inj=Fc({});var H_=function(){};H_.\u0275fac=function(a){return new (a||H_)};H_.\u0275mod=$e({type:H_});H_.\u0275inj=Fc({imports:[lL,WO,DE,Wz,G_,xU,zU,DL,mB,wK,GU,tX]});var uHd=function(){};uHd.\u0275fac=function(a){return new (a||uHd)};uHd.\u0275mod=$e({type:uHd});uHd.\u0275inj=Fc({imports:[WO,mB,fX]});var I_=function(){};I_.\u0275fac=function(a){return new (a||I_)};I_.\u0275mod=$e({type:I_});I_.\u0275inj=Fc({imports:[HX,WO,mB,KX,TK,wK,uHd]});var J_=function(){};J_.\u0275fac=function(a){return new (a||J_)};J_.\u0275mod=$e({type:J_});J_.\u0275inj=Fc({imports:[Ky]});var vHd=function(){};vHd.\u0275fac=function(a){return new (a||vHd)};vHd.\u0275mod=$e({type:vHd});vHd.\u0275inj=Fc({imports:[WO,mB,J_]});var K_=function(){};K_.\u0275fac=function(a){return new (a||K_)};K_.\u0275mod=$e({type:K_});K_.\u0275inj=Fc({imports:[WO,mB,TK,vHd]});var L_=function(){};L_.\u0275fac=function(a){return new (a||L_)};L_.\u0275mod=$e({type:L_});L_.\u0275inj=Fc({imports:[WO]});var M_=function(){};M_.\u0275fac=function(a){return new (a||M_)};M_.\u0275mod=$e({type:M_});M_.\u0275inj=Fc({imports:[WO,TK,L_,K_,mB]});var N_=function(){};N_.\u0275fac=function(a){return new (a||N_)};N_.\u0275mod=$e({type:N_});N_.\u0275inj=Fc({imports:[by,ez,Wz,Sz,SI]});var wHd=function(){};wHd.\u0275fac=function(a){return new (a||wHd)};wHd.\u0275mod=$e({type:wHd});wHd.\u0275inj=Fc({imports:[by,DE,N_,tX,EE]});var O_=function(){};O_.\u0275fac=function(a){return new (a||O_)};O_.\u0275mod=$e({type:O_});O_.\u0275inj=Fc({imports:[WO,hV,wHd]});var P_=function(){this.elementRef=p(Hd);this.autocompleteConfigService=p(EW);this.destroyRef=p(Ce);this.darkmodeService=p(DW);this.refresh$=te(this.darkmodeService.clientDarkmode$).pipe(A(function(){}));this.name=this.email=this.ariaLabel="";this.cdkFocusInitial=this.disabled=this.required=this.asMatInput=!1;this.emailChange=new aQ;this.sessionOptions=(new dv).setFilter(swd);this.id="peoplekit-single-"+P_.nextId++;this.stateChanges=new qf;this.placeholderInternal="";this.ngControl=null;this.errorState=
this.focused=!1;this.controlType="peoplekit-single";this.describedByIds=[]};P_.prototype.getConfig=function(){return Dgb(this.autocompleteConfigService)};var DAb=function(a,b){b.length>0&&a.emailChange.emit(b[0].result().getPrimaryTarget().getValue())};P_.prototype.onFocusIn=function(){this.focused||(this.focused=!0,this.stateChanges.next())};var EAb=function(a,b){a.elementRef.nativeElement.contains(b.relatedTarget)||(a.focused=!1,a.stateChanges.next())};
P_.prototype.setDescribedByIds=function(a){this.describedByIds=a;this.stateChanges.next()};P_.prototype.onContainerClick=function(){};
da.Object.defineProperties(P_.prototype,{placeholder:{configurable:!0,enumerable:!0,get:function(){return this.placeholderInternal},set:function(a){this.placeholderInternal=a;this.stateChanges.next()}},value:{configurable:!0,enumerable:!0,set:function(a){this.email=a!=null?a:"";this.stateChanges.next()},get:function(){return this.email}},shouldLabelFloat:{configurable:!0,enumerable:!0,get:function(){return this.focused||!this.empty}},empty:{configurable:!0,enumerable:!0,get:function(){return!this.email}}});
P_.nextId=0;P_.\u0275fac=function(a){return new (a||P_)};
P_.\u0275cmp=D({type:P_,selectors:[["b-peoplekit-single"]],hostVars:1,hostBindings:function(a,b){a&2&&Pf("id",b.id)},inputs:{ariaLabel:"ariaLabel",email:"email",name:"name",asMatInput:"asMatInput",required:"required",disabled:"disabled",cdkFocusInitial:"cdkFocusInitial",placeholder:"placeholder"},outputs:{emailChange:"emailChange"},standalone:!1,features:[Gg([{provide:ND,useExisting:P_}])],decls:1,vars:1,consts:[[3,"refreshable"],["matInput","","type","text","autocomplete","off","peoplekitAutocomplete",
"",3,"name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"],["type","text","autocomplete","off","peoplekitAutocomplete","",3,"name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"],["matInput","","type","text","autocomplete","off","peoplekitAutocomplete","",3,"ngModelChange","peoplekitAutocompleteSelectionChange",
"focusin","focusout","name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"],["type","text","autocomplete","off","peoplekitAutocomplete","",3,"ngModelChange","peoplekitAutocompleteSelectionChange","focusin","focusout","name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"]],template:function(a,b){a&1&&
E(0,HAb,2,1,"ng-template",0);a&2&&I("refreshable",b.refresh$)},dependencies:[xj,fE,yE,mE,tU,rX,VD,FE],styles:["input[_ngcontent-%COMP%] { width: 100%; }"],changeDetection:0});var Q_=function(){};Q_.\u0275fac=function(a){return new (a||Q_)};Q_.\u0275mod=$e({type:Q_});Q_.\u0275inj=Fc({imports:[WO,DE,xU,tX,HE]});var xHd=new dd("SearchBarClientConfig");var yHd=function(a){var b=new Dwd;a.peopleApiEnv&&b.setPeopleApiEnv(a.peopleApiEnv);a.apiKey&&b.setApiKey(a.apiKey);this.peopleStore=a.peopleStoreClient.create(b);this.peopleStore.warmUpCache();this.environmentConfig=new uwd(b.getPeopleApiEnv(),new vwd(""))};yHd.\u0275fac=function(a){return new (a||yHd)(Xc(xHd))};yHd.\u0275prov=Dc({token:yHd,factory:yHd.\u0275fac});var R_=function(){};R_.\u0275fac=function(a){return new (a||R_)};R_.\u0275mod=$e({type:R_});R_.\u0275inj=Fc({imports:[by]});var S_=function(){};S_.\u0275fac=function(a){return new (a||S_)};S_.\u0275mod=$e({type:S_});S_.\u0275inj=Fc({imports:[WO,DE,mB,UD,GU,R_,O_,Q_]});var zHd=function(a){this.uploadUrl_=a};var AHd=function(){jj.call(this)};yw(AHd,jj);var T_=function(a){GB.call(this,a)};yw(T_,GB);var U_=function(a){GB.call(this,a)};yw(U_,GB);var BHd=function(a,b){this.name_=a;this.inputElement_=b};BHd.prototype.getName=function(){return this.name_};var CHd=function(){this.maxChunkSize_=1073741824;this.retryOnHttpClientErrorEnabled_=!0};var V_=function(){jj.call(this);this.name_="closure_frame"+DHd++;this.iframesForDisposal_=[];EHd[this.name_]=this},W_;yw(V_,jj);var EHd={},DHd=0,FHd=function(a,b){var c=kj(a);EHc(b,function(d,e){Array.isArray(d)||(d=[d]);Ja(d,function(f){f=c.createDom("INPUT",{type:"hidden",name:e,value:f});a.appendChild(f)})})};h=V_.prototype;h.form_=null;h.iframe_=null;h.iframeName_=null;h.nextIframeId_=0;h.active_=!1;h.complete_=!1;h.success_=!1;h.lastUri_=null;h.lastContent_=null;h.lastErrorCode_=0;
h.iframeDisposalTimer_=null;
h.send=function(a,b,c,d){if(this.active_)throw Error("Sf");this.lastUri_=a=new Os(a);b=b?b.toUpperCase():"GET";c&&NHc(a);W_||(W_=uJc("FORM"),W_.acceptCharset="utf-8",c=W_.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(W_));this.form_=W_;b=="GET"&&FHd(this.form_,a.queryData_);d&&FHd(this.form_,d);c=a.toString();d=this.form_;c=Ah(new xh(c===null?"null":c===void 0?"undefined":c));c!==void 0&&(d.action=c);this.form_.method=
b;GHd(this);HHd(this)};h.abort=function(a){if(this.active_){var b=IHd(this);if(b)if(IB(b))b.removeAllListeners();else if(b=FGc(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),f=0;f<e.length;++f)LB(e[f])&&++c}this.success_=this.active_=this.complete_=!1;this.lastErrorCode_=a||7;this.dispatchEvent("abort");JHd(this)}};
h.disposeInternal=function(){this.active_&&this.abort();V_.superClass_.disposeInternal.call(this);this.iframe_&&KHd(this);HHd(this);delete this.errorChecker_;this.lastUri_=this.lastContent_=this.form_=null;this.lastErrorCode_=0;delete EHd[this.name_]};h.isComplete=function(){return this.complete_};h.isSuccess=function(){return this.success_};h.isActive=function(){return this.active_};h.getResponseText=function(){return this.lastContent_};h.getResponseJson=function(){return LGc(this.lastContent_)};
h.getLastUri=function(){return this.lastUri_};h.getLastErrorCode=function(){return this.lastErrorCode_};h.getLastError=function(){return KGc(this.lastErrorCode_)};
var GHd=function(a){a.active_=!0;a.complete_=!1;a.lastErrorCode_=0;a.iframeName_=a.name_+"_"+(a.nextIframeId_++).toString(36);a.iframe_=kj(a.form_).createDom("IFRAME",{name:a.iframeName_,id:a.iframeName_});var b=a.iframe_.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";ej?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");kj(a.form_).document_.body.appendChild(a.iframe_);b=a.iframeName_+"_inner";var c=yJc(a.iframe_);if(document.baseURI){var d=Kt(b);
d=vta('<head><base href="'+Kt(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>')}else d=Kt(b),d=qh('<body><iframe id="'+d+'" name="'+d+'"></iframe>');c.write(sh(d));lj(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=yC("TEXTAREA",a.form_);for(var e=0,f=d.length;e<f;e++){var g=d[e].value,k=[];DJc(d[e],k,!1);k.join("")!=g&&(zJc(d[e],g),d[e].value=g)}d=c.importNode(a.form_,!0);d.target=b;d.action=a.form_.action;c.body.appendChild(d);e=yC("SELECT",a.form_);f=yC("SELECT",
d);g=0;for(k=e.length;g<k;g++)for(var l=yC("OPTION",e[g]),r=yC("OPTION",f[g]),w=0,x=l.length;w<x;w++)r[w].selected=l[w].selected;e=yC("INPUT",a.form_);f=yC("INPUT",d);g=0;for(k=e.length;g<k;g++)if(e[g].type=="file"&&e[g].value!=f[g].value){a.form_.target=b;d=a.form_;break}try{a.errorHandled_=!1,d.submit(),c.close(),fj&&setTimeout(a.testForFirefoxSilentError_.bind(a),250)}catch(C){KB(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),a.handleError_(2)}};
V_.prototype.onIframeLoaded_=function(){KB(IHd(this),"load",this.onIframeLoaded_,!1,this);try{var a=this.iframe_?yJc(IHd(this)):null;this.complete_=!0;this.active_=!1;try{var b=a.body;this.lastContent_=b.textContent||b.innerText}catch(e){var c=1}var d;c||typeof this.errorChecker_!="function"||(d=this.errorChecker_(a))&&(c=4);c?this.handleError_(c):(this.success_=!0,this.lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),JHd(this))}catch(e){this.handleError_(1)}};
V_.prototype.handleError_=function(a){this.errorHandled_||(this.active_=this.success_=!1,this.complete_=!0,this.lastErrorCode_=a,this.dispatchEvent("complete"),this.dispatchEvent("error"),JHd(this),this.errorHandled_=!0)};
var JHd=function(a){KHd(a);HHd(a);a.form_=null;a.dispatchEvent("ready")},KHd=function(a){var b=a.iframe_;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.iframesForDisposal_.push(b));a.iframeDisposalTimer_&&(clearTimeout(a.iframeDisposalTimer_),a.iframeDisposalTimer_=null);fj?a.iframeDisposalTimer_=setTimeout(a.disposeIframes_.bind(a),2E3):a.disposeIframes_();a.iframe_=null;a.iframeName_=null};
V_.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var a=this.iframesForDisposal_.pop();CC(a)}};var HHd=function(a){a.form_&&a.form_==W_&&BC(a.form_)},IHd=function(a){return a.iframe_?yJc(a.iframe_).getElementById(a.iframeName_+"_inner"):null};
V_.prototype.testForFirefoxSilentError_=function(){if(this.active_){var a=this.iframe_?yJc(IHd(this)):null;a&&!uoc(a,"documentUri")?(KB(IHd(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?this.handleError_(3):this.handleError_(9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};var LHd=function(a,b,c,d,e){jj.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 Os(a);Bt(a,"upload_protocol","multipart");this.url_=a.toString();this.request_=new V_;this.state_="Ready";this.errorDescription_=
null;this.eventHandler_=new zu(this);xt(this,this.eventHandler_);this.eventHandler_.listen(this.request_,"success",this.onTransferSuccess_);this.eventHandler_.listen(this.request_,"error",this.onTransferError_)};Y(LHd,AHd);h=LHd.prototype;h.run=function(){this.state_="Transferring";var a=this.request_,b=this.form_;if(a.active_)throw Error("Sf");var c=new Os(this.url_||b.action);a.lastUri_=c;a.form_=b;b=a.form_;c=Ah(c.toString());c!==void 0&&(b.action=c);GHd(a)};h.getBytesTransferred=function(){return null};
h.getResponseCode=function(){return null};h.getErrorType=function(){return null};h.getResponseHeaders=function(){return null};h.getResponseText=function(){return this.request_&&this.request_.getResponseText()||null};h.getErrorDescription=function(){return this.errorDescription_};h.cancel=function(){this.request_&&this.request_.abort();this.state_="Cancelled";this.dispatchEvent(new T_("i"))};h.pause=function(){};h.unpause=function(){};h.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new T_("f"))};
h.onTransferError_=function(){this.errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new T_("h"))};var OHd=function(a,b){a.name!==void 0?(this.name=a.name,this.code=MHd[a.name]):(this.code=a=a.code,this.name=NHd(a));pa.call(this,TGc("%s %s",this.name,b))};yw(OHd,pa);
var NHd=function(a){var b=lta(MHd,function(c){return a==c});if(b===void 0)throw Error("Tf`"+a);return b},X_={},MHd=(X_.AbortError=3,X_.EncodingError=5,X_.InvalidModificationError=9,X_.InvalidStateError=7,X_.NotFoundError=1,X_.NotReadableError=4,X_.NoModificationAllowedError=6,X_.PathExistsError=12,X_.QuotaExceededError=10,X_.SecurityError=2,X_.SyntaxError=8,X_.TypeMismatchError=11,X_);var PHd=function(a,b){GB.call(this,a.type,b);this.event_=a};yw(PHd,GB);var QHd=function(a,b,c){c===void 0&&(c=a.size);return a.slice?a.slice(b,c):null};ij(function(){if(!ra.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return b.size!=100?!1:!0});var RHd=ij(function(){if(!ra.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return QHd(b,0,1)===null?!1:!0});var SHd=function(){jj.call(this);this.reader_=new FileReader;this.reader_.onloadstart=mj(this.dispatchProgressEvent_,this);this.reader_.onprogress=mj(this.dispatchProgressEvent_,this);this.reader_.onload=mj(this.dispatchProgressEvent_,this);this.reader_.onabort=mj(this.dispatchProgressEvent_,this);this.reader_.onerror=mj(this.dispatchProgressEvent_,this);this.reader_.onloadend=mj(this.dispatchProgressEvent_,this)};yw(SHd,jj);h=SHd.prototype;
h.abort=function(){try{this.reader_.abort()}catch(a){throw new OHd(a,"aborting read");}};h.getReadyState=function(){return this.reader_.readyState};h.getError=function(){return this.reader_.error&&new OHd(this.reader_.error,"reading file")};h.dispatchProgressEvent_=function(a){this.dispatchEvent(new PHd(a,this))};h.disposeInternal=function(){SHd.superClass_.disposeInternal.call(this);delete this.reader_};h.readAsBinaryString=function(a){this.reader_.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.reader_.readAsArrayBuffer(a)};
h.readAsText=function(a,b){this.reader_.readAsText(a,b)};var THd=function(a){var b=new RS;a.listen("loadend",ww(function(c,d){var e=d.reader_.result,f=d.getError();e==null||f?c.errback(f):c.callback(e);d.dispose()},b,a));return b};var Y_=function(){Gs.call(this)};Y(Y_,Gs);Y_.prototype.createXhr=function(){var a=Gs.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=mj(this.onProgress_,this));return a};Y_.prototype.onProgress_=function(a){this.dispatchEvent(a)};var UHd=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},WHd=function(a,b){var c=a.attempt_+1;if(a.maxAttempts_>0&&c>a.maxAttempts_)return!1;c==0?b():a.delayCallId_=Hs(function(){a.delayCallId_=null;b()},VHd(a),a);a.attempt_=c;return!0};UHd.prototype.reset=function(){this.delayCallId_&&ra.clearTimeout(this.delayCallId_);this.attempt_=-1};var VHd=function(a){var b=250*Math.pow(2,a.attempt_);a.maxDelayMs_>=0&&(b=Math.min(b,a.maxDelayMs_));return b};var JAb=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var XHd=function(a){jj.call(this);a=a||new CHd;this.request_=this.state_=null;this.withCredentials_=!1;this.transferHandle_=null;this.offset_=this.bytesTransferred_=0;this.retryIterator_=new UHd;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.errorType_=this.errorDescription_=null;this.eventHandler_=new zu(this);xt(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};yw(XHd,AHd);h=XHd.prototype;h.run=function(){Z_(this)};h.getBytesTransferred=function(){return this.bytesTransferred_};h.getResponseCode=function(){return this.responseCode_};
h.getResponseHeaders=function(){return this.responseHeaders_};h.getResponseText=function(){return this.responseText_};h.getErrorDescription=function(){return this.errorDescription_};h.getErrorType=function(){return this.errorType_};
h.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.eventHandler_.removeAll();this.request_&&this.request_.abort();this.retryIterator_.reset();var a=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(a==="Upload"||a==="Query")a=new Y_,a.withCredentials_=this.withCredentials_,a.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.bytesTransferred_=0;this.dispatchEvent(new T_("i"))}};
h.pause=function(){this.pauseRequested_=!0};h.unpause=function(){this.pauseRequested_=!1;this.state_==="Paused"&&(this.state_=this.stateAfterUnpausing_,this.stateAfterUnpausing_=null,YHd(this))};
var Z_=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):WHd(a.retryIterator_,function(){return YHd(a)})||a0(a,1,"Transfer encountered too many consecutive failures.")},YHd=function(a){switch(a.state_){case "Start":a.start_();break;case "Upload":var b=a.transferHandle_.uploadUrl_,c=a.blob_.size;if(RHd()){var d=a.chunkSize_;var e=a.offset_+d>=c;c=QHd(a.blob_,a.offset_,e?c:a.offset_+d)}else a.offset_=0,c=a.blob_,e=!0;a.request_=new Y_;a.request_.withCredentials_=
a.withCredentials_;a.eventHandler_.removeAll();a.eventHandler_.listen(a.request_,"progress",a.onUploadProgress_);d=mj(a.onUploadComplete_,a,a.offset_+c.size,e);a.eventHandler_.listen(a.request_,"complete",d);a.lastCommandResponseCode_=null;a.dispatchEvent(new U_("k"));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("Uf");}},a0=function(a,
b,c){a.state_="Error";a.errorDescription_=c;a.errorType_=b;a.dispatchEvent(new T_("h"))};h=XHd.prototype;
h.start_=function(){this.request_=new Y_;var a=bj(this.headers_);this.blob_.size!=null&&(a["Content-Length"]=this.blob_.size);a=KAb(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 U_("k"))};
h.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new U_("l"));ZHd(b)?$Hd(this,b):aId(b)?(b=st(a.target.getAllResponseHeaders()),this.dispatchEvent(new T_("g")),a=tt(b,"X-Goog-Upload-URL"),b=(b=tt(b,"X-Goog-Upload-Chunk-Granularity"))?parseInt(b,10):1,a===void 0||isNaN(b)||b<=0?a0(this,2,"Server returned invalid headers."):(this.chunkSize_=Math.floor(this.maxChunkSize_/b)*b,this.transferHandle_=new zHd(a),this.dispatchEvent(new T_("j")),this.state_=
"Upload",this.retryIterator_.reset(),Z_(this))):Z_(this)};h.onUploadProgress_=function(a){this.bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new T_("e"))};
h.onUploadComplete_=function(a,b,c){var d=this,e,f;return y(function(g){switch(g.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new U_("l"));if(d.retryOnHttpClientErrorEnabled_?bId(e)||e.getStatus()==404:ZHd(e))return d.bytesTransferred_=a,$Hd(d,e),g.return();if(aId(e)){g.jumpTo(2);break}if(!(f=d.detectCorruptedBlobEnabled_)){g.jumpTo(3);break}return z(g,cId(d),4);case 4:f=g.yieldResult;case 3:if(f)return a0(d,3,"Blob has been modified or corrupted."),g.return();
d.requireUploadRequestModification_=e.getStatus()==400;d.state_="Query";Z_(d);return g.return();case 2:if(b)return a0(d,4,"Got a non-final success response after issuing a finalize command."),g.return();d.bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();Z_(d);return g.return()}})};
h.query_=function(){this.request_=new Y_;this.eventHandler_.removeAll();this.eventHandler_.listen(this.request_,"complete",this.onQueryComplete_);var a=Object.assign({},this.headers_||{},{"X-Goog-Upload-Command":"query"});this.request_.send(this.transferHandle_.uploadUrl_,"POST","",a);this.lastCommandResponseCode_=null;this.dispatchEvent(new U_("k"))};
h.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new U_("l"));ZHd(b)?(b.getStatus()===200&&(this.bytesTransferred_=this.blob_.size),$Hd(this,b)):aId(b)?(a=st(a.target.getAllResponseHeaders()),a=parseInt(tt(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?a0(this,5,"Server did not respond with current offset."):a<this.offset_?a0(this,6,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+a+"."):this.requireUploadRequestModification_&&
this.offset_===a?a0(this,7,"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",Z_(this))):Z_(this)};
var $Hd=function(a,b){a.responseCode_=b.getStatus();var c=st(b.getAllResponseHeaders());a.responseHeaders_=LAb(c);a.responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new T_("f"))},aId=function(a){var b=a.getStatus();a=st(a.getAllResponseHeaders());a=tt(a,"X-Goog-Upload-Status");return b===200&&a==="active"},bId=function(a){a=st(a.getAllResponseHeaders());return tt(a,"X-Goog-Upload-Status")==="final"},ZHd=function(a){if(bId(a))return!0;a=a.getStatus();return a>=400&&a<
500},cId=function(a){var b;return y(function(c){if(c.nextAddress==1){if(!a.blob_||a.originalBlobSize_<=0)return c.return(!1);if(a.blob_.size!==a.originalBlobSize_)return c.return(!0);Wd(c,2);if(b=QHd(a.blob_,0,1)){var d=new SHd,e=THd(d);d.readAsBinaryString(b);c=z(c,e,4)}else c=c.return(!0);return c}if(c.nextAddress!=2)return c.return(a.blob_.size!==a.originalBlobSize_);$d(c);return c.return(!0)})};var dId=function(a,b,c,d,e,f){jj.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 pm;this.boundary_="uploader-"+iBb()+"-"+a.toIsoString();this.transferRequest_=null;this.bytesTransferred_=0;this.responseText_=this.responseHeaders_=this.responseCode_=null;this.state_="Ready";this.errorDescription_=null;this.eventHandler_=new zu(this);xt(this,this.eventHandler_)};Y(dId,AHd);h=dId.prototype;
h.run=function(){var a=bj(this.headers_);this.payload_.length!=null&&(a["Content-Length"]=this.payload_.length);a=KAb(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Y_;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)};h.getBytesTransferred=function(){return this.bytesTransferred_};h.getResponseCode=function(){return this.responseCode_};
h.getResponseHeaders=function(){return this.responseHeaders_};h.getResponseText=function(){return this.responseText_};h.getErrorDescription=function(){return this.errorDescription_};h.getErrorType=function(){return null};h.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new T_("i")))};h.pause=function(){};h.unpause=function(){};
h.onTransferProgress_=function(a){this.bytesTransferred_=Math.max(0,a.loaded-this.metadataOverhead_);this.dispatchEvent(new T_("e"))};h.onTransferComplete_=function(a){var b=a.target.getStatus();b===void 0||b===-1?(this.errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new T_("h"))):(this.responseCode_=b,a=a.target,b=st(a.getAllResponseHeaders()),this.responseHeaders_=LAb(b),this.responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new T_("f")))};var eId=function(){},fId=function(a,b,c,d,e){e=e===void 0?!1:e;if(c instanceof BHd)return new LHd(a,"POST",b,c.inputElement_,d);if(typeof c==="string"||c instanceof String)return new dId(a,"POST",b,c,d);var f=new XHd(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 gId=new dd("ScottyUploaderConfigFactory"),hId=new dd("ScottyUploader",{factory:function(){return new eId}}),b0=function(a,b){this.uploader=a;this.configFactory=b;this.internalTransferStatus=new qf;this.transferStatus=this.internalTransferStatus.asObservable()};
b0.prototype.upload=function(a,b){var c=this;b=b===void 0?this.configFactory.create(a):b;a=fId(b.url,b.headers||{},a,b.metadata||"",!!b.withCredentials);this.transferSubscription&&!b.allowSimultaneousUpload&&this.transferSubscription.unsubscribe();this.transferSubscription=te(pe(a,"g"),pe(a,"e"),pe(a,"j"),pe(a,"h"),pe(a,"f"),pe(a,"i")).pipe(zf(pe(a,"f").pipe(mf(0)))).subscribe(function(d){c.internalTransferStatus.next(d)});a.run()};b0.\u0275fac=function(a){return new (a||b0)(Xc(hId),Xc(gId))};
b0.\u0275prov=Dc({token:b0,factory:b0.\u0275fac});var iId=function(a){this.name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};iId.prototype.getDirectory=function(a){return this.directoryMap_[a]};iId.prototype.getName=function(){return this.name_};var Gsc={},c0=function(a,b){var c=Gu(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},yt=function(a,b){return c0(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},koc=function(a){return yt(a,"position")},Iu=function(a,b,c){if(b instanceof Eu){var d=b.x;b=b.y}else d=b,b=c;a.style.left=jId(d,!1);a.style.top=jId(b,!1)},voc=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,
right:0,bottom:0}}},epc=function(a){var b=Gu(a),c=yt(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(a.nodeType==11&&a.host&&(a=a.host),c=yt(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return null},soc=function(a){for(var b=new nj(0,Infinity,Infinity,0),c=kj(a),d=c.document_.body,e=c.document_.documentElement,f=sJc(c.document_);a=
epc(a);)if((!ej||a.clientHeight!=0||a!=d)&&a!=d&&a!=e&&yt(a,"overflow")!="visible"){var g=Cu(a),k=new Eu(a.clientLeft,a.clientTop);g.x+=k.x;g.y+=k.y;b.top=Math.max(b.top,g.y);b.right=Math.min(b.right,g.x+a.clientWidth);b.bottom=Math.min(b.bottom,g.y+a.clientHeight);b.left=Math.max(b.left,g.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 b.top>=0&&b.left>=0&&b.bottom>
b.top&&b.right>b.left?b:null},fpc=function(a,b){b=b||sJc(document);var c=b||sJc(document);var d=Cu(a),e=Cu(c),f=c0(c,"borderLeftWidth");var g=c0(c,"borderRightWidth");var k=c0(c,"borderTopWidth"),l=c0(c,"borderBottomWidth");g=new nj(parseFloat(k),parseFloat(g),parseFloat(l),parseFloat(f));c==sJc(document)?(f=d.x-c.scrollLeft,d=d.y-c.scrollTop):(f=d.x-e.x-g.left,d=d.y-e.y-g.top);a=kId(a);e=c.clientHeight-a.height;g=c.scrollLeft;k=c.scrollTop;g+=Math.min(f,Math.max(f-(c.clientWidth-a.width),0));k+=
Math.min(d,Math.max(d-e,0));c=new Eu(g,k);b.scrollLeft=c.x;b.scrollTop=c.y},Cu=function(a){var b=Gu(a),c=new Eu(0,0);if(a==(b?Gu(b):document).documentElement)return c;a=voc(a);b=IJc(kj(b));c.x=a.left+b.x;c.y=a.top+b.y;return c},lId=function(a,b,c){if(b instanceof wC)c=b.height,b=b.width;else if(c==void 0)throw Error("Vf");a.style.width=jId(b,!0);a.style.height=jId(c,!0)},jId=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a},mId=function(a){return xoc(a)},xoc=function(a){var b=
kId;if(yt(a,"display")!="none")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},kId=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=ej&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=voc(a),new wC(a.right-a.left,a.bottom-a.top)):new wC(b,c)},roc=function(a){var b=Cu(a);a=xoc(a);return new Hu(b.x,b.y,a.width,a.height)},nId=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="+Number(b)*100+")")},Ct=function(a,b){a.style.display=b?"":"none"},Du=function(a){return"rtl"==yt(a,"direction")},oId=function(a){var b=c0(a,"marginLeft"),c=c0(a,"marginRight"),d=c0(a,"marginTop");a=c0(a,"marginBottom");return new nj(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var qId=function(a,b,c){b=b===void 0?"single_file":b;c=c===void 0?[]:c;jj.call(this);this.overlayTarget_=a;this.parentOverlay_=a!=null?a.parentNode:Vs(document,"scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=pId(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};Y(qId,jj);
var pId=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");lj(e,"change",a.onFilesSelected_,!1,a);c==="multiple_file"&&(e.multiple="true");c==="single_directory"&&(e.webkitdirectory="true");d.length>0&&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(a.overlayTarget_!=
null)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),Iu(e,new Eu(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};qId.prototype.click=function(){this.overlay_.click()};
qId.prototype.onFilesSelected_=function(a){a:{try{var b=(new XMLHttpRequest).upload!==void 0;break a}catch(r){}b=!1}if(b){var c;a=Array.from((c=a.target.files)!=null?c:[]);c=[];if(this.selectorType_==="single_directory"&&(ej||Zwc||fj)){c=new iId("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(b=0;b<a.length;b++)for(var d=a[b],e=d.webkitRelativePath.split("/"),f=c,g=0;g<e.length;g++){var k=e[g];if(g==e.length-1){k!="."&&f.files_.push(d);break}var l=f.getDirectory(k);l==void 0&&(k=l=
new iId(k),f.directoryMap_[k.getName()]=k,f.directories_.push(k));f=l}c=c.directories_}this.dispatchEvent(new rId(a,c,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new rId([],[],new BHd(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=pId(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var sId={SINGLE_FILE_SELECTION:"single_file",MULTIPLE_FILE_SELECTION:"multiple_file",SINGLE_DIRECTORY_SELECTION:"single_directory"},rId=function(a,b){GB.call(this,"q");this.files=a;this.directories=b};Y(rId,GB);var d0=function(a,b){this.elementRef=a;this.ngZone=b;this.destroyed=new uf(1);this.supportedFileExtensions=null;this.fileExtensionRejected=new Ti;this.maxFileSize=null;this.fileSizeRejected=new Ti;this.fileSelected=new Ti;this.fileNameLengthRejected=new Ti};
d0.prototype.ngAfterViewInit=function(){var a=this;this.getOverlay().pipe(yf(function(b){return te(pe(b,"m"),pe(b,"q"))}),zf(this.destroyed)).subscribe(function(b){a.ngZone.run(function(){a:{if(a.supportedFileExtensions){var c=m(b.files);for(var d=c.next();!d.done;d=c.next()){d=d.value.name;var e=d.lastIndexOf(".");if(!a.supportedFileExtensions.includes(e!==-1?d.substr(e+1).toLowerCase():"")){c=!1;break a}}}c=!0}if(c){a:{if(a.maxFileSize)for(c=m(b.files),d=c.next();!d.done;d=c.next())if(d.value.size>
a.maxFileSize){c=!1;break a}c=!0}if(c){a:{if(a.maxFileNameLength)for(c=m(b.files),d=c.next();!d.done;d=c.next())if(d.value.name.length>a.maxFileNameLength){c=!1;break a}c=!0}c?a.fileSelected.emit(b):a.fileNameLengthRejected.emit(b)}else a.fileSizeRejected.emit(b)}else a.fileExtensionRejected.emit(b)})});this.getOverlay().subscribe(function(b){pe(b,"o").subscribe(function(){a.ngZone.run(function(){})})});this.getOverlay().subscribe(function(b){pe(b,"p").subscribe(function(){a.ngZone.run(function(){})})})};
d0.prototype.ngOnDestroy=function(){this.destroyed.next(!0);this.destroyed.complete()};d0.\u0275fac=function(a){return new (a||d0)(Ve(Hd),Ve(Rg))};d0.\u0275dir=af({type:d0,inputs:{supportedFileExtensions:"supportedFileExtensions",maxFileSize:"maxFileSize",maxFileNameLength:"maxFileNameLength"},outputs:{fileExtensionRejected:"fileExtensionRejected",fileSizeRejected:"fileSizeRejected",fileSelected:"fileSelected",fileNameLengthRejected:"fileNameLengthRejected"}});var e0=function(a,b){d0.call(this,a,b);this.overlay=this.fileSelectorOverlay=null};Y(e0,d0);
e0.prototype.getOverlay=function(){var a=this;this.overlay||(this.overlay=this.ngZone.runOutsideAngular(function(){return te(pe(a.elementRef.nativeElement,"mouseover"),pe(a.elementRef.nativeElement,"focus")).pipe(pf(),zf(a.destroyed),A(function(){a.fileSelectorOverlay=new qId(a.elementRef.nativeElement,a.selectorType,tId(a));a.fileSelectorOverlay.overlay_.style.display="none";return a.fileSelectorOverlay}),vf(1))}));return this.overlay};e0.prototype.onClick=function(){this.fileSelectorOverlay&&this.fileSelectorOverlay.click()};
var tId=function(a){return(a.supportedFileExtensions||[]).map(function(b){return"."+b})};e0.\u0275fac=function(a){return new (a||e0)(Ve(Hd),Ve(Rg))};e0.\u0275dir=af({type:e0,hostBindings:function(a,b){a&1&&N("click",function(){return b.onClick()})},inputs:{selectorType:"selectorType"},features:[Ef]});var f0=function(a,b,c){e0.call(this,a,b);this.uploader=c;this.disableAutoUploadInternal=!1};Y(f0,e0);
f0.prototype.ngOnInit=function(){var a=this;this.fileSelected.pipe(zf(this.destroyed),ue(function(){return!a.disableAutoUpload})).subscribe(function(b){b=m(b.files);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;(d=a.uploader)==null||d.upload(c)}})};da.Object.defineProperties(f0.prototype,{disableAutoUpload:{configurable:!0,enumerable:!0,get:function(){return this.disableAutoUploadInternal},set:function(a){this.disableAutoUploadInternal=Lh(a)}}});
f0.\u0275fac=function(a){return new (a||f0)(Ve(Hd),Ve(Rg),Ve(b0,8))};f0.\u0275dir=af({type:f0,selectors:[["","xapUploaderTrigger",""],["","xapScottyUploaderTrigger",""]],inputs:{disableAutoUpload:"disableAutoUpload"},features:[Ef]});var uId=function(){this.SelectorType=sId;this.includeTextLabel=this.disabled=!1;this.onSelect=new aQ},MAb=function(a,b){if(b=b.files){b=m(b);for(var c=b.next();!c.done;c=b.next())a.onSelect.emit(c.value)}};uId.\u0275fac=function(a){return new (a||uId)};
uId.\u0275cmp=D({type:uId,selectors:[["b-attachment-selector"]],inputs:{disabled:"disabled",includeTextLabel:"includeTextLabel"},outputs:{onSelect:"onSelect"},standalone:!1,decls:3,vars:1,consts:[[1,"goog-inline-block","vertical-centered"],["type","button","mat-icon-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"selectorType","disableAutoUpload","disabled"],["type","button","mat-stroked-button","","xapUploaderTrigger","","matTooltip","Add attachments",
"aria-label","Add attachments",3,"selectorType","disableAutoUpload","disabled"],["type","button","mat-icon-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"fileSelected","selectorType","disableAutoUpload","disabled"],["svgIcon","attachment"],["type","button","mat-stroked-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"fileSelected","selectorType","disableAutoUpload","disabled"]],template:function(a,
b){a&1&&(K(0,"div",0),F(1,NAb,2,3,"button",1)(2,OAb,3,3,"button",2),L());a&2&&(B(),G(b.includeTextLabel?2:1))},dependencies:[Jy,kB,gB,iB,vK,nA,f0],encapsulation:2});var vId=function(a,b){fnd.call(this,a.size,a.name);var c=this;this.destroyed$=new qf;this.onTransferEventUpdate=function(d){var e=d.target;c.transfer=e;switch(d.type){case "e":case "g":case "j":c.state=1;c.transferredBytes=e.getBytesTransferred()||0;break;case "h":c.handleError(e);break;case "f":c.transferredBytes=e.getBytesTransferred()||0;(d=e.getResponseCode())&&d!=200?c.handleError(e):(d=e.getResponseText())?(c.state=2,c.blobRef=JSON.parse(d).encryptedMedia):c.handleError(e);c.unsubscribe();break;
case "i":c.state=4;c.transferredBytes=e.getBytesTransferred()||0;break;default:c.transferredBytes=e.getBytesTransferred()||0}};b.pipe(zf(this.destroyed$)).subscribe(function(d){c.onTransferEventUpdate(d)})};Y(vId,fnd);
vId.prototype.handleError=function(a){this.transferredBytes=a.getBytesTransferred()||0;this.state=3;var b=a.getResponseText();if(b)try{this.errorMessage=JSON.parse(b).errorMessage}catch(d){Xm("Unable to extract error message",b,d);var c;this.errorMessage=(c=a.getErrorDescription())!=null?c:""}this.errorMessage||(this.errorMessage="Error while uploading.")};vId.prototype.cancel=function(){var a,b;(a=this.transfer)==null||(b=a.cancel)==null||b.call(a);this.unsubscribe()};
vId.prototype.unsubscribe=function(){this.destroyed$.next();this.destroyed$.complete()};var g0=function(){this.activeSession=p(uu)};g0.prototype.create=function(a){var b=wxc(Ewc(a.name));a=r7a(a.name)?a.name:b;return{url:Bt(OHc().setPath("/upload/"),"authuser",this.activeSession.getSessionIdentifier()).toString(),headers:{"X-Bv2-Encoded-Upload-File-Name":b,"X-Goog-Upload-File-Name":a},withCredentials:!0}};g0.\u0275fac=function(a){return new (a||g0)};g0.\u0275prov=Dc({token:g0,factory:g0.\u0275fac,providedIn:"root"});var h0=function(){this.uploader=p(hId);this.uploaderConfigFactory=p(g0)};
h0.prototype.create=function(){return new b0(this.uploader,this.uploaderConfigFactory)};h0.\u0275fac=function(a){return new (a||h0)};h0.\u0275prov=Dc({token:h0,factory:h0.\u0275fac,providedIn:"root"});var i0=function(){Z.apply(this,arguments);this.scottyUploaderFactory=p(h0);this.uploads=[];this.onUploadCancel=new aQ;this.onUploadComplete=new aQ;this.uploadStates=gnd};Y(i0,Z);i0.\u0275dir=Z.\u0275dir;i0.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);for(var a=m(this.uploads),b=a.next();!b.done;b=a.next())b.value.cancel()};
i0.prototype.upload=function(a){var b=this,c=this.scottyUploaderFactory.create();c.upload(a);a=new vId(a,c.transferStatus);c.transferStatus.pipe(zf(this.destroyed$)).subscribe(function(d){d.type==="f"&&b.onUploadComplete.emit()});return a};i0.prototype.cancel=function(a){a.cancel();this.onUploadCancel.emit(a)};i0.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(i0)))(b||i0)}}();
i0.\u0275cmp=D({type:i0,selectors:[["b-attachment-uploader"]],inputs:{uploads:"uploads"},outputs:{onUploadCancel:"onUploadCancel",onUploadComplete:"onUploadComplete"},standalone:!1,features:[Ef],decls:1,vars:1,consts:[[1,"attachments"],[1,"attachment",3,"attachment-error"],[1,"attachment"],[1,"attachment-title"],["svgIcon","file-present"],[1,"issue-attachment-filename",3,"matTooltip"],[1,"attachment-filesize"],["role","alert","aria-live","assertive"],["type","button",1,"bv2-remove-icon","keep-focus-ring",
"attachment-cancel-button",3,"click","matTooltip"]],template:function(a,b){a&1&&F(0,TAb,3,0,"div",0);a&2&&G(b.uploads.length>0?0:-1)},dependencies:[Jy,vK,nA,rsd],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 wId=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 xId=function(a){fnd.call(this,a.size,a.name);this.attachment=a};Y(xId,fnd);var yId=function(a,b){a.state=1;Rmd(b,{filename:a.attachment.name,mimeType:a.attachment.mimeType,encryptedBlobId:a.attachment.encryptedBlobId?a.attachment.encryptedBlobId:null,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=Pp(c)?Qp(c):"Error while uploading."})};var ut=function(a){this.id_=a;this.opts={}};h=ut.prototype;h.setLabel=function(a){this.label_=a||void 0;return this};h.setOptions=function(a){this.opts=a;return this};h.setQuery=function(a){this.opts.query=a;return this};h.setParent=function(a){this.opts.parent=a;return this};h.toArray=function(){var a=aj(this.opts,function(c){return c!==null});a=nta(a)?null:a;a=[this.id_,this.label_,a];var b=rba(a,wHc);return a=a.slice(0,b+1)};
h.toString=function(){var a=this.toArray();return"("+Vwc(a,function(b){return JSON.stringify(b)}).join(",")+")"};h.getId=function(){return this.id_};h.getLabel=function(){return this.label_};h.getOptions=function(){return bj(this.opts)};h.getQuery=function(){return this.opts.query};yw(vt,ut);var zId=["dr","fileIds","parent"],AId=function(){var a=(new vt("all")).setOwnedByMe(!0);a.opts.drdis=!0;a.opts.includeFolders=!0;a.opts.sortKey=7;a.opts.ff=!0;return a};h=vt.prototype;h.setMode=function(a){this.opts.mode=a;return this};h.setOwnedByMe=function(a){a!==void 0?this.opts.ownedByMe=a:delete this.opts.ownedByMe;return this};h.setLabel=function(a){vt.superClass_.setLabel.call(this,a);return this};h.setQuery=function(a){vt.superClass_.setQuery.call(this,a);return this};
h.setParent=function(a){for(var b=m(zId),c=b.next();!c.done;c=b.next())c=c.value,this.opts[c]&&delete this.opts[c];vt.superClass_.setParent.call(this,a);return this};h.setItems=function(a){this.opts.items=a};var BId=function(){ut.call(this,"image-search")};Y(BId,ut);h=BId.prototype;h.setType=function(a){this.opts.type=a;return this};h.setSize=function(a){this.opts.imgsz=a;return this};h.setColor=function(a){this.opts.imgcolor=a;return this};h.setLabel=function(a){ut.prototype.setLabel.call(this,a);return this};h.setQuery=function(a){ut.prototype.setQuery.call(this,a);return this};h.setParent=function(a){ut.prototype.setParent.call(this,a);return this};var CId=function(){ut.call(this,"maps")};Y(CId,ut);h=CId.prototype;h.setMode=function(a){this.opts.mode=a;return this};h.setZoom=function(a){this.opts.zoom=a;return this};h.setLabel=function(a){ut.prototype.setLabel.call(this,a);return this};h.setQuery=function(a){ut.prototype.setQuery.call(this,a);return this};h.setParent=function(a){ut.prototype.setParent.call(this,a);return this};var DId=function(){ut.call(this,"photos")};Y(DId,ut);h=DId.prototype;h.setMode=function(a){this.opts.mode=a;return this};h.setType=function(a){this.opts.type=a;return this};h.setLabel=function(a){ut.prototype.setLabel.call(this,a);return this};h.setQuery=function(a){ut.prototype.setQuery.call(this,a);return this};h.setParent=function(a){ut.prototype.setParent.call(this,a);return this};h.removeDuplicates=function(){this.opts.rdv=!0;return this};var EId=function(){ut.call(this,"url")};Y(EId,ut);EId.prototype.setType=function(a){this.opts.type=a;return this};EId.prototype.setLabel=function(a){ut.prototype.setLabel.call(this,a);return this};EId.prototype.setQuery=function(a){ut.prototype.setQuery.call(this,a);return this};EId.prototype.setParent=function(a){ut.prototype.setParent.call(this,a);return this};var FId=function(){ut.call(this,"video-search")};Y(FId,ut);FId.prototype.setLabel=function(a){ut.prototype.setLabel.call(this,a);return this};FId.prototype.setQuery=function(a){ut.prototype.setQuery.call(this,a);return this};FId.prototype.setParent=function(a){ut.prototype.setParent.call(this,a);return this};var GId=function(){ut.call(this,"web")};Y(GId,ut);GId.prototype.setLabel=function(a){ut.prototype.setLabel.call(this,a);return this};GId.prototype.setQuery=function(a){ut.prototype.setQuery.call(this,a);return this};GId.prototype.setParent=function(a){ut.prototype.setParent.call(this,a);return this};var j0=function(){this.root_=void 0;this.items_=[];this.opts={}},HId=function(a){switch(a){case "image-search":return new BId;case "maps":return new CId;case "photos":return new DId;case "url":return new EId;case "video-search":return new FId;case "web":return new GId}return new ut(a)};j0.prototype.addView=function(a){this.items_.push(typeof a==="string"?HId(a):a);return this};
var IId=function(a){return"("+Vwc(a.items_,function(b){return b.toString()}).join(",")+")"},JId=function(a){a=aj(a.opts,function(b){return b!==null});return(a=nta(a)?null:a)?JSON.stringify(hta(a,function(b){return b.toString()})):""};j0.prototype.toString=function(){if(this.root_){var a=["{root:",this.root_.toString(),",items:",IId(this)],b=JId(this);b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return IId(this)};
j0.prototype.getViews=function(a,b){b=b===void 0?[]:b;for(var c=this.items_,d=0;d<c.length;d++){var e=c[d];e instanceof j0?e.getViews(a,b):e.getId()==a&&b.push(e)}return b};j0.prototype.getOptions=function(){return bj(this.opts)};j0.prototype.setCollapsible=function(a){this.opts.collapsible=a};var UAb=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new j0};h=UAb.prototype;h.nav_=null;h.domHelper_=null;h.addView=function(a){this.nav_.addView(a);return this};h.getAppId=function(){return this.appId_};h.getBaseUrl=function(){return this.basePickerUrl_};h.getDomHelper=function(){return this.domHelper_};h.getViews=function(a){return this.nav_.getViews(a)};h.setAppId=function(a){this.appId_=a};h.setCallback=function(a){this.callback_=a;return this};yw(VAb,UAb);var KId=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""},LId=function(a){return a.classList?a.classList:KId(a).match(/\S+/g)||[]},MId=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)},NId=function(a,b){return a.classList?a.classList.contains(b):Ka(LId(a),b)},OId=function(a,b){if(a.classList)a.classList.add(b);else if(!NId(a,b)){var c=KId(a);MId(a,c+(c.length>0?" "+b:b))}},PId=function(a,b){if(a.classList)Array.prototype.forEach.call(b,
function(e){OId(a,e)});else{var c={};Array.prototype.forEach.call(LId(a),function(e){c[e]=!0});Array.prototype.forEach.call(b,function(e){c[e]=!0});b="";for(var d in c)b+=b.length>0?" "+d:d;MId(a,b)}},QId=function(a,b){a.classList?a.classList.remove(b):NId(a,b)&&MId(a,Array.prototype.filter.call(LId(a),function(c){return c!=b}).join(" "))},RId=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){QId(a,c)}):MId(a,Array.prototype.filter.call(LId(a),function(c){return!Ka(b,c)}).join(" "))};var ooc=function(){if(axc){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(Ba()))?a[1]:"0"}return gv?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(Ba()))?a[0].replace(/_/g,"."):"10"):cxc?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(Ba()))?a[1]:""):dxc||exc||fxc?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(Ba()))?a[1].replace(/_/g,"."):""):""}();var SId=function(a){return(a=a.exec(Ba()))?a[1]:""},moc=function(){if(mxc)return SId(/Firefox\/([0-9.]+)/);if(Ou||Zwc||Ywc)return lxc;if(poc){if(Fa()||Ha()){var a=SId(/CriOS\/([0-9.]+)/);if(a)return a}return SId(/Chrome\/([0-9.]+)/)}if(loc&&!Fa())return SId(/Version\/([0-9.]+)/);if(nxc||oxc){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ba()))return a[1]+"."+a[2]}else if(pxc)return(a=SId(/Android\s+([0-9.]+)/))?a:SId(/Version\/([0-9.]+)/);return""}();var woc=function(a,b){return(b&8&&Du(a)?b^4:b)&-9};var Pu=function(){};Pu.instance_=void 0;Pu.getInstance=function(){return Pu.instance_?Pu.instance_:Pu.instance_=new Pu};Pu.prototype.nextId_=0;Pu.prototype.idPrefix_="";Pu.prototype.setIdPrefix=function(a){this.idPrefix_=a};var yu=function(a){return a.idPrefix_+":"+(a.nextId_++).toString(36)};var k0=function(a){jj.call(this);this.dom_=a||kj();this.rightToLeft_=TId;this.id_=null;this.inDocument_=!1;this.element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=null;this.wasDecorated_=!1};yw(k0,jj);k0.prototype.idGenerator_=Pu.getInstance();var TId=!1;h=k0.prototype;h.getId=function(){return this.id_||(this.id_=yu(this.idGenerator_))};
h.setId=function(a){this.parent_&&this.parent_.childIndex_&&(pta(this.parent_.childIndex_,this.id_),qta(this.parent_.childIndex_,a,this));this.id_=a};h.getElement=function(){return this.element_};h.getHandler=function(){this.googUiComponentHandler_||(this.googUiComponentHandler_=new zu(this));return this.googUiComponentHandler_};
h.setParent=function(a){if(this==a)throw Error("Wf");var b;if(b=a&&this.parent_&&this.id_){b=this.parent_;var c=this.id_;b=b.childIndex_&&c?rta(b.childIndex_,c)||null:null}if(b&&this.parent_!=a)throw Error("Wf");this.parent_=a;k0.superClass_.setParentEventTarget.call(this,a)};h.getParent=function(){return this.parent_};h.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("Xf");k0.superClass_.setParentEventTarget.call(this,a)};h.getDomHelper=function(){return this.dom_};
h.createDom=function(){this.element_=this.dom_.createElement("DIV")};h.render=function(a){UId(this,a)};h.renderBefore=function(a){UId(this,a.parentNode,a)};var UId=function(a,b,c){if(a.inDocument_)throw Error("Yf");a.element_||a.createDom();b?b.insertBefore(a.element_,c||null):a.dom_.document_.body.appendChild(a.element_);a.parent_&&!a.parent_.inDocument_||a.enterDocument()};h=k0.prototype;
h.decorate=function(a){if(this.inDocument_)throw Error("Yf");if(a&&this.canDecorate(a)){this.wasDecorated_=!0;var b=Gu(a);this.dom_&&this.dom_.document_==b||(this.dom_=kj(a));this.decorateInternal(a);this.enterDocument()}else throw Error("Zf");};h.canDecorate=function(){return!0};h.decorateInternal=function(a){this.element_=a};h.enterDocument=function(){this.inDocument_=!0;VId(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};
h.exitDocument=function(){VId(this,function(a){a.inDocument_&&a.exitDocument()});this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};h.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);VId(this,function(a){a.dispose()});!this.wasDecorated_&&this.element_&&CC(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;k0.superClass_.disposeInternal.call(this)};
h.setModel=function(){};
h.addChild=function(){var a=this.children_?this.children_.length:0;if((void 0).inDocument_&&!this.inDocument_)throw Error("Yf");if(a<0||a>(this.children_?this.children_.length:0))throw Error("$f");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;La(this.children_)}else qta(this.childIndex_,(void 0).getId());(void 0).setParent(this);zba(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&&(void 0).element_.parentNode.nodeType==1&&(void 0).enterDocument()};h.getContentElement=function(){return this.element_};
h.isRightToLeft=function(){this.rightToLeft_==null&&(this.rightToLeft_=Du(this.inDocument_?this.element_:this.dom_.document_.body));return this.rightToLeft_};h.hasChildren=function(){return!!this.children_&&this.children_.length!=0};var VId=function(a,b){a.children_&&a.children_.forEach(b,void 0)};
k0.prototype.removeChild=function(a,b){if(a){var c=typeof a==="string"?a:a.getId();a=this.childIndex_&&c?rta(this.childIndex_,c)||null:null;c&&a&&(pta(this.childIndex_,c),La(this.children_,a),b&&(a.exitDocument(),a.element_&&CC(a.element_)),a.setParent(null))}if(!a)throw Error("ag");return a};yw(XAb,WAb);yw(YAb,WAb);var WId=rw(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),XId=rw(["//apis.google.com/js/rpc.js"]),lBb=Fh(WId),kBb=Fh(XId),$Ab=null;var YId=function(a){jj.call(this);this.element_=a;this.listenKeyIn_=lj(this.element_,"focus",this,!0);this.listenKeyOut_=lj(this.element_,"blur",this,!0)};yw(YId,jj);YId.prototype.handleEvent=function(a){var b=new HB(a.event_);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";this.dispatchEvent(b)};YId.prototype.disposeInternal=function(){YId.superClass_.disposeInternal.call(this);LB(this.listenKeyIn_);LB(this.listenKeyOut_);delete this.element_};var ZId=new Map;ZId.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");ZId.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");ZId.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var $Id=new Set;$Id.add("application/vnd.google-apps.kix");$Id.add("application/vnd.google-apps.ritz");$Id.add("application/vnd.google-apps.punch");var lJd=function(a,b,c){var d=c&&ui(c,1);c=aJd(c);switch(a[0].getId().getSourceId()){case 13:return bJd(a,b,d,c);case 3:return cJd(a,b,d,c);case 10:return dJd(a,b,d,c);case 27:return dJd(a,b,d,c);case 12:return eJd(a,b);case 2:return fJd(a,b,d,c);case 5:return gJd(a,b,d,c);case 9:return hJd(a,b,d,c);case 6:return iJd(a,b,d,c);case 25:return jJd(a,b,d,c);case 1:return xi(a[0],Bad,26)?kJd(a,b,d,c):dJd(a,b,d,c);default:return{}}},iJd=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"youtube",name:e.getName(),description:e.getDescription(),type:l0(e),lastEditedUtc:X(e,Si,16).toDate().getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:ui(e,13),thumbnails:m0(HM(e))}});return{action:b,docs:a,viewToken:d,view:c||"youtube",v2Translated:!0}},fJd=function(a,b,c,d){var e=a.map(function(f){var g=f.getId().getId(),k=f.getMimeType(),l=f.getName(),r=l0(f),w=f.getLastModifiedTimestamp().toDate().getTime(),x=f.getUrl(),
C=Number(dyc(f)),H=f.getDescription(),J=f.getIconUrl(),O=m0(HM(f)),R=X(f,IM,21).getShared(),V=X(f,IM,21).getDownloadUrl(),ca=ui(f,13);var na=X(f,IM,21);na=Fi(na,9);var ua=X(f,IM,21);ua=ui(ua,11);g={id:g,serviceId:"docs",mimeType:k,name:l,type:r,lastEditedUtc:w,url:x,sizeBytes:C,description:H,iconUrl:J,thumbnails:O,isShared:R,downloadUrl:V,embedUrl:ca,copyable:na,resourceKey:ua};k=X(f,IM,21);Fi(k,12)&&(g.uploadState="success",g.isNew=!0);X(f,IM,21).hasVideoMetadata()&&(f=X(f,IM,21).getVideoMetadata(),
f.hasDuration()&&(k=Ym(X(f,dn,2).getSeconds())+X(f,dn,2).getNanos()/1E9,g.duration=k),g.aspectRatio=em(f,1));return g});return{action:b,docs:e,viewToken:d,view:c||"all",extraUserInputs:mJd(a),v2Translated:!0}},gJd=function(a,b,c,d){a=a.map(function(e){var f=X(e,Kad,15);f=X(f,Aad,1);Np(e,10,Aad,f);return{id:e.getId().getId(),serviceId:"web",mimeType:e.getMimeType(),name:e.getName(),type:l0(e),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",
thumbnails:m0(HM(e))}});return{action:b,docs:a,viewToken:d,view:c||"image-search",v2Translated:!0}},hJd=function(a,b,c,d){a=a.map(function(e){return{serviceId:"url",name:HM(e)[0].getUrl().split("/").pop(),type:l0(e),mimeType:e.getMimeType(),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:m0(HM(e))}});return{action:b,docs:a,viewToken:d,view:c||"url",v2Translated:!0}},kJd=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"picasa",name:e.getName(),type:l0(e),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:m0(HM(e))}});return{action:b,docs:a,viewToken:d,view:c||"webcam",v2Translated:!0}},dJd=function(a,b,c,d){return{action:b,docs:a.map(nJd),viewToken:d,view:oJd(c||"upload",a),extraUserInputs:mJd(a),v2Translated:!0}},oJd=function(a,b){return b.some(function(c){var d;return((d=X(c,EM,30))==null?void 0:d.getAgentId())===9})?a+"/gmailphotos":
a},cJd=function(a,b,c,d){var e=a.map(function(f){var g={id:f.getId().getId(),serviceId:"picasa",mimeType:f.getMimeType(),name:f.getName(),type:l0(f),lastEditedUtc:f.getLastModifiedTimestamp().toDate().getTime(),url:f.getUrl(),sizeBytes:Number(dyc(f)),description:f.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:m0(HM(f)),mediaKey:f.getId().getId(),parentId:f.getParentId()},k,l=(k=X(f,Ead,18))==null?void 0:X(k,Dad,3);l&&(g.latitude=em(l,1),
g.longitude=em(l,2));var r;(f=Zm((r=X(f,Ead,18))==null?void 0:pn(r,6)))&&(g.version=f);return g});return{action:b,docs:e,viewToken:d,view:c||"photos",extraUserInputs:mJd(a),v2Translated:!0}},bJd=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),serviceId:"et",name:HM(e)[0].getUrl().split("/").pop(),description:e.getDescription(),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:m0(HM(e),"etjpg")}});return{action:b,docs:a,viewToken:d,
view:c||"et",v2Translated:!0}},jJd=function(a,b,c,d){a=a.map(function(e){var f=e.getId().getId(),g=d["2"];return{id:f,serviceId:g.type!=="gmail_themes"&&g.parent==="6226252643674576769"?"picasa":"static_themes",name:e.getName(),mimeType:e.getMimeType(),type:l0(e),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:e.getUrl(),thumbnails:m0(HM(e))}});return{action:b,docs:a,viewToken:d,view:c||"photos",v2Translated:!0}},
eJd=function(a,b){a=a.map(function(c){var d=X(c,Cad,27).getEmailList()[0];return{id:c.getId().getId(),serviceId:"contacts",mimeType:c.getMimeType(),name:c.getName(),description:c.getDescription(),url:"mailto:"+d,thumbnail:[{url:c.getIconUrl()}],email:d}});return{action:b,docs:a,view:"contacts",v2Translated:!0}},aJd=function(a){if(!a)return{};var b=ui(a,3);b=b&&JSON.parse(b)||{};return{0:ui(a,1),1:a.getLabel(),2:b}},m0=function(a,b){b=b===void 0?"":b;if(!a.length)return null;b=="etjpg"&&(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}})},mJd=function(a){return{isAttachment:a.some(function(b){return Fi(b,31)})}},nJd=function(a){var b,c={id:(b=a.getId())==null?void 0:b.getId(),serviceId:pJd(a),mimeType:a.getMimeType(),name:a.getName(),type:l0(a),sizeBytes:Number(dyc(a)),description:a.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:m0(HM(a)),isNew:!0};if(b=X(a,EM,30)){c.dataUrl=
ui(b,1)||null;a:{var d=X(a,EM,30);switch(d.getAgentId()){case 9:d=bm(d,Iad,2,FM);d={remoteRefs:d&&ui(d,1)};break a;case 10:case 15:d=bm(d,Had,4,FM);var e=HM(a);d={photo_id:d&&d.getPhotoId(),media_key:a.getId().getId(),media_type:a.getType()===1?1:2,image_url:e&&e[0].getUrl(),width:e&&String(e[0].getWidth()),height:e&&String(e[0].getHeight())};break a}d=null}c.uploadMetadata=d;c.uploadId=ui(b,9)||null;c.uploadState=qJd(b)||null}(d=b&&bm(b,Had,4,FM))&&(c.id=d.getPhotoId());(d=b&&bm(b,Jad,5,FM))&&(c.contentId=
ui(d,1));(d=b&&bm(b,Fad,7,FM))&&(c.contentId=ui(d,1));(d=b&&bm(b,Gad,6,FM))&&(c.contentId=ui(d,1));(b==null?void 0:b.getAgentId())===1&&(c.mediaKey=a.getId().getId());return c},pJd=function(a){var b;switch(((b=X(a,EM,30))==null?void 0:b.getAgentId())||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},l0=function(a){switch(a.getType()){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return a.getMimeType().startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},qJd=function(a){switch(a==null?void 0:wi(a,8)){case 0:return"default";case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var rJd=function(a){this.obj_=a};h=rJd.prototype;h.value=function(){return this.obj_};h.setWidth=function(a){this.obj_.width=a;return this};h.getWidth=function(){return this.obj_.width};h.setHeight=function(a){this.obj_.height=a;return this};h.getHeight=function(){return this.obj_.height};h.setStyle=function(a){this.obj_.style=a;return this};h.getStyle=function(){return this.obj_.style};var sJd=function(a){this.obj_=a||{}};h=sJd.prototype;h.value=function(){return this.obj_};h.setUrl=function(a){this.obj_.url=a;return this};h.getUrl=function(){return this.obj_.url};h.setStyle=function(a){this.obj_.style=a;return this};h.getStyle=function(){return this.obj_.style};h.setId=function(a){this.obj_.id=a;return this};h.getId=function(){return this.obj_.id};h.getContext=function(){return this.obj_.context};var tJd=function(a){a.obj_.attributes=a.obj_.attributes||{};return new rJd(a.obj_.attributes)};var uJd=function(){sJd.apply(this,arguments)};Y(uJd,sJd);var vJd=rw(["https://apis.google.com/js/api.js"]),wJd=Fh(vJd),AJd=function(a,b,c){c=c===void 0?{}:c;var d=!1,e=xJd(a,b,c).then(function(g){d=!0;return g}),f=ZKc().then(function(){return d?xJd(a,b,c):yJd(b,c).then(function(g){return zJd(g,a)})});return XJc([e,f])},xJd=function(a,b,c){c=c===void 0?{}:c;return BJd(b,c).then(function(d){return zJd(d,a)})},zJd=function(a,b){var c=b.lastIndexOf("gapi.",0)==0?b.slice(5):b;return a[c]?SJc(a[c]):new FC(function(d,e){var f=Hs(function(){e(Error("bg"))},3E4);
a.load(b,{callback:function(){ra.clearTimeout(f);d(a[c])},onerror:function(g){ra.clearTimeout(f);e(g)}})})},BJd=function(a,b){b=b===void 0?{}:b;return a.gapi&&a.gapi.load?SJc(a.gapi):yJd(a,b)},yJd=function(a,b){b=b===void 0?{}:b;return R7a(wJd,{document:a.document,attributes:b}).then(function(){return a.gapi})},CJd=function(){};
CJd.prototype.load=function(a,b,c){b=b===void 0?window:b;c=c===void 0?{}:c;var d=Date.now();return AJd(a,b,c).then(function(e){var f=Date.now();return{library:e,loadStartMs:d,loadEndMs:f}},function(e){throw e instanceof Error?e:Error(String(e));})};var hBb=function(){FB.call(this);this.gapiLoader_=new CJd;this.origin_=null;this.gapiPickerIframeResolver_=ZJc();this.gapiIframesResolver_=ZJc();this.gapiIframesResolver_.promise.then(null,function(){});this.gapiPickerIframeResolver_.promise.then(null,function(){});this.hostMessageHandlerInternal_={}};Y(hBb,FB);
var DJd=function(a,b){var c=c===void 0?{}:c;var d=Su("gapi.iframes",b);return d?(a=Date.now(),SJc({library:d,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b,c)},EJd=function(a,b,c,d,e,f){var g=!1;g=g===void 0?!1:g;DJd(a,Fu(b.ownerDocument)).then(function(k){var l=k.library;a.gapiIframesResolver_.resolve(l);k=a.gapiPickerIframeResolver_;var r=k.resolve,w=g;w=w===void 0?!1:w;var x={};x["host-message-handler"]=c;a.hostMessageHandlerInternal_=x;var C=zt(d);C=zt(C);C=VB(UB(TB(new Os,C.scheme_),
C.getDomain()),C.port_).toString();a.origin_=C;C=(new uJd).setUrl(d);C.obj_.where=b;C.obj_.allowPost=w;C.obj_.messageHandlers=x;w=Su("makeWhiteListIframesFilter",l)([a.origin_]);C.obj_.messageHandlersFilter=w;e!=null&&C.setId(e);f!=null&&(C.obj_.rpctoken=f);tJd(C).setStyle({display:"block","min-width":"100%",width:"1px"}).setHeight("100%");tJd(C).value().allow="camera 'src' "+a.origin_;l=l.getContext().openChild(C.value());r.call(k,l)},function(k){a.gapiIframesResolver_.reject(k);a.gapiPickerIframeResolver_.reject(k)});
return a.gapiPickerIframeResolver_.promise},FJd=function(a,b){return WJc([a.gapiIframesResolver_.promise,a.gapiPickerIframeResolver_.promise]).then(function(c){var d=m(c);c=d.next().value;return(d=d.next().value)?d.send("picker-message-handler",b,void 0,Su("makeWhiteListIframesFilter",c)([a.origin_])):TJc(Error("cg"))})};hBb.prototype.disposeInternal=function(){GJd(this);FB.prototype.disposeInternal.call(this)};
var GJd=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};var HJd=function(){this.nextId=0};HJd.prototype.getUniqueId=function(){return":"+(this.nextId++).toString(36)};var JJd=function(a,b){switch(a.action){case "select-contacts":a=IJd(a.contacts);break;case "visibility":a=a.visible;a=(new Nad).setCommand(7).setVisible(a);var c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?FJd(b,a):SJc()},IJd=function(a){if(!a||a.length==0)return null;var b=new Nad;b.setCommand(11);var c=new HJd;a.forEach(function(d){if(d.email){var e=(new GM).setName(d.name?d.name:d.email);d=(new Cad).addEmail(d.email);e=Mi(e,Cad,27,d).setId((new CM).setId(c.getUniqueId()).setSourceId(12))}else e=
null;e&&b.addItem(e)});a={};a["iframe-command"]=b.serialize();return a};var LJd=function(a,b,c){jj.call(this);this.target=a;this.handle=b||a;this.limits=c||new Hu(NaN,NaN,NaN,NaN);this.document_=Gu(a);this.eventHandler_=new zu(this);xt(this,this.eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.enabled_=!0;this.dragging_=!1;lj(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=KJd};yw(LJd,jj);
var KJd=ra.document&&ra.document.documentElement&&!!ra.document.documentElement.setCapture&&!!ra.document.releaseCapture;h=LJd.prototype;h.getHandler=function(){return this.eventHandler_};h.setEnabled=function(a){this.enabled_=a};h.disposeInternal=function(){LJd.superClass_.disposeInternal.call(this);KB(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.handle=this.target=null};
h.startDrag=function(a){var b=a.type=="mousedown";if(!this.enabled_||this.dragging_||b&&(a.event_.button!=0||gv&&a.ctrlKey))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new MJd("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(Fu(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=IJc(kj(this.document_))}};
h.endDrag=function(a,b){this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new MJd("end",this,a.clientX,a.clientY,a,NJd(this,this.deltaX),OJd(this,this.deltaY),b||a.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
h.handleMove_=function(a){if(this.enabled_){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(d*d+e*e>0)if(this.dispatchEvent(new MJd("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=PJd(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new MJd("beforedrag",this,
a.clientX,a.clientY,a,b,c))&&(QJd(this,a,b,c),a.preventDefault())}};var PJd=function(a,b,c){var d=IJc(kj(a.document_));b+=d.x-a.pageScroll.x;c+=d.y-a.pageScroll.y;a.pageScroll=d;a.deltaX+=b;a.deltaY+=c;return new Eu(NJd(a,a.deltaX),OJd(a,a.deltaY))};LJd.prototype.onScroll_=function(a){var b=PJd(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;QJd(this,a,b.x,b.y)};
var QJd=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new MJd("drag",a,b.clientX,b.clientY,b,c,d))},NJd=function(a,b){var c=a.limits;a=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))},OJd=function(a,b){var c=a.limits;a=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))};LJd.prototype.isDragging=function(){return this.dragging_};
var MJd=function(a,b,c,d,e,f,g){GB.call(this,a);this.clientX=c;this.clientY=d;this.left=f!==void 0?f:b.deltaX;this.top=g!==void 0?g:b.deltaY};yw(MJd,GB);var n0=function(a){this.map_=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("fb");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};h=n0.prototype;h.getCount=function(){return this.map_.size};h.getValues=function(){return Array.from(this.map_.values())};h.getKeys=function(){return Array.from(this.map_.keys())};h.containsKey=function(a){return this.map_.has(a)};
h.equals=function(a,b){var c=this;b=b===void 0?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))})};h.isEmpty=function(){return this.map_.size==0};h.clear=function(){this.map_.clear()};h.remove=function(a){return this.map_.delete(a)};h.get=function(a,b){return this.map_.has(a)?this.map_.get(a):b};h.set=function(a,b){this.map_.set(a,b);return this};
h.addAll=function(a){if(a instanceof n0){a=m(a.map_);for(var b=a.next();!b.done;b=a.next()){var c=m(b.value);b=c.next().value;c=c.next().value;this.map_.set(b,c)}}else if(a)for(a=m(Object.entries(a)),b=a.next();!b.done;b=a.next())c=m(b.value),b=c.next().value,c=c.next().value,this.map_.set(b,c)};h.forEach=function(a,b){var c=this;b=b===void 0?this:b;this.map_.forEach(function(d,e){return a.call(b,d,e,c)})};h.clone=function(){return new n0(this)};var RJd=rw(["about:blank"]),SJd=rw(["javascript:undefined"]),TJd=Fh(RJd);wh(TJd);var UJd=Fh(SJd);wh(UJd);var VJd=function(a,b){this.element_=a;this.dom_=b};var o0=function(a,b){k0.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=A2c({mutate:this.resizeBackground_},this);A2c({mutate:this.updateModalAndBackground_},this)};yw(o0,k0);h=o0.prototype;h.focusHandler_=null;h.visible_=!1;h.bgEl_=null;h.bgIframeEl_=null;h.tabCatcherElement_=null;h.backwardTabWrapInProgress_=!1;h.getCssClass=function(){return"goog-modalpopup"};h.getBackgroundElement=function(){return this.bgEl_};
h.createDom=function(){o0.superClass_.createDom.call(this);var a=this.getElement();PId(a,Aa(this.getCssClass()).split(" "));a.tabIndex=0;Ct(a,!1);WJd(this);XJd(this)};
var WJd=function(a){if(a.useIframeMask_&&!a.bgIframeEl_){var b=a.getDomHelper().createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});Era(b,TJd);a.bgIframeEl_=b;a.bgIframeEl_.className=a.getCssClass()+"-bg";Ct(a.bgIframeEl_,!1);nId(a.bgIframeEl_,0)}a.bgEl_||(a.bgEl_=a.getDomHelper().createDom("DIV",a.getCssClass()+"-bg"),Ct(a.bgEl_,!1))},XJd=function(a){a.tabCatcherElement_||(a.tabCatcherElement_=a.getDomHelper().createElement("SPAN"),Ct(a.tabCatcherElement_,!1),a.tabCatcherElement_.tabIndex=
0,a.tabCatcherElement_.style.position="absolute")};h=o0.prototype;h.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};h.canDecorate=function(a){return!!a&&a.tagName=="DIV"};h.decorateInternal=function(a){o0.superClass_.decorateInternal.call(this,a);a=Aa(this.getCssClass()).split(" ");PId(this.getElement(),a);WJd(this);XJd(this);this.getElement().tabIndex=0;Ct(this.getElement(),!1)};
h.enterDocument=function(){if(this.bgIframeEl_){var a=this.bgIframeEl_,b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b)}a=this.bgEl_;b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b);o0.superClass_.enterDocument.call(this);a=this.tabCatcherElement_;b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.focusHandler_=new YId(this.getDomHelper().document_);this.getHandler().listen(this.focusHandler_,"focusin",this.onFocus);YJd(this,!1)};
h.exitDocument=function(){this.isVisible()&&this.setVisible(!1);Zi(this.focusHandler_);o0.superClass_.exitDocument.call(this);CC(this.bgIframeEl_);CC(this.bgEl_);CC(this.tabCatcherElement_)};
h.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_&&YJd(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.getDomHelper().document_.activeElement}catch(e){}this.updateModalAndBackground_();this.getHandler().listen(this.getDomHelper().getWindow(),
"resize",this.resizeBackground_).listen(this.getDomHelper().getWindow(),"orientationchange",this.resizeBackgroundTask_);ZJd(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)JB(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_)JB(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 YJd=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new VJd(a.element_,a.dom_));a=a.modalAriaVisibilityHelper_;if(b){a.hiddenElements_||(a.hiddenElements_=[]);b=a.dom_.getChildren(a.dom_.document_.body);for(var c=0;c<b.length;c++){var d=b[c];d==a.element_||Jrd(d,"hidden")||(lU(d,"hidden",!0),a.hiddenElements_.push(d))}}else if(a.hiddenElements_){for(b=0;b<a.hiddenElements_.length;b++)a.hiddenElements_[b].removeAttribute("aria-hidden");a.hiddenElements_=null}};
o0.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};var ZJd=function(a,b){a.bgIframeEl_&&Ct(a.bgIframeEl_,b);a.bgEl_&&Ct(a.bgEl_,b);Ct(a.getElement(),b);Ct(a.tabCatcherElement_,b)};h=o0.prototype;h.onShow=function(){this.dispatchEvent("show")};h.onHide=function(){ZJd(this,!1);this.dispatchEvent("hide")};h.isVisible=function(){return this.visible_};h.focus=function(){this.focusElement_()};
h.resizeBackground_=function(){this.bgIframeEl_&&Ct(this.bgIframeEl_,!1);this.bgEl_&&Ct(this.bgEl_,!1);var a=this.getDomHelper().document_;var b=$Jd(this);var c=Math.max(b.width,Math.max(a.body.scrollWidth,a.documentElement.scrollWidth));a=Math.max(b.height,Math.max(a.body.scrollHeight,a.documentElement.scrollHeight));this.bgIframeEl_&&(Ct(this.bgIframeEl_,!0),lId(this.bgIframeEl_,c,a));this.bgEl_&&(Ct(this.bgEl_,!0),lId(this.bgEl_,c,a))};
h.reposition=function(){var a;if(koc(this.getElement())=="fixed")var b=a=0;else b=IJc(this.getDomHelper()),a=b.x,b=b.y;var c=mId(this.getElement());var d=$Jd(this);a=Math.max(a+d.width/2-c.width/2,0);b=Math.max(b+d.height/2-c.height/2,0);Iu(this.getElement(),a,b);Iu(this.tabCatcherElement_,a,b)};h.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&Hs(this.focusElement_,0,this)};h.focusElement_=function(){try{this.getElement().focus()}catch(a){}};
var $Jd=function(a){a=a.getDomHelper().document_;return AC(Fu(a)||window)};o0.prototype.disposeInternal=function(){Zi(this.popupShowTransition_);this.popupShowTransition_=null;Zi(this.popupHideTransition_);this.popupHideTransition_=null;Zi(this.bgShowTransition_);this.bgShowTransition_=null;Zi(this.bgHideTransition_);this.bgHideTransition_=null;o0.superClass_.disposeInternal.call(this)};var wt=function(a,b,c){o0.call(this,b,c);this.class_=a||"modal-dialog";this.buttons_=p0(p0(new q0,aKd,!0),bKd,!1,!0)};yw(wt,o0);h=wt.prototype;h.escapeToCancel_=!0;h.hasTitleCloseButton_=!0;h.modal_=!0;h.backgroundElementOpacity_=.5;h.title_="";h.dragger_=null;h.disposeOnHide_=!1;h.titleEl_=null;h.titleTextEl_=null;h.titleTextId_=null;h.titleCloseEl_=null;h.contentEl_=null;h.buttonEl_=null;h.getCssClass=function(){return this.class_};
h.setTitle=function(a){this.title_=a;this.titleTextEl_&&zJc(this.titleTextEl_,a)};h.getTitle=function(){return this.title_};h.getContent=function(){return""};h.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};var cKd=function(a){a.getElement()||a.render();return a.getElement()};wt.prototype.getBackgroundElement=function(){this.getElement()||this.render();return wt.superClass_.getBackgroundElement.call(this)};
var dKd=function(a,b){a.backgroundElementOpacity_=b;a.getElement()&&(b=a.getBackgroundElement())&&nId(b,a.backgroundElementOpacity_)};wt.prototype.handleDrag=function(){};
var eKd=function(a,b){var c=Aa(a.class_+"-title-draggable").split(" ");a.getElement()&&(b?PId(a.titleEl_,c):RId(a.titleEl_,c));b&&!a.dragger_?(b=new LJd(a.getElement(),a.titleEl_),a.dragger_=b,PId(a.titleEl_,c),lj(a.dragger_,"start",a.setDraggerLimits_,!1,a),lj(a.dragger_,"drag",a.handleDrag,!1,a)):!b&&a.dragger_&&(a.dragger_.dispose(),a.dragger_=null)};h=wt.prototype;
h.createDom=function(){wt.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"));wJc(a,this.titleEl_,this.contentEl_=b.createDom("DIV",{className:this.class_+"-content",id:c}),this.buttonEl_=
b.createDom("DIV",this.class_+"-buttons"));Ird(this.titleTextEl_,"heading");Ird(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Krd(this.titleCloseEl_,"Close");Ird(a,"dialog");lU(a,"labelledby",this.titleTextId_||"");Ct(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render());Ct(this.buttonEl_,!!this.buttons_);dKd(this,this.backgroundElementOpacity_)};
h.decorateInternal=function(a){wt.superClass_.decorateInternal.call(this,a);a=this.getElement();var b=this.class_+"-content";this.contentEl_=zC(document,null,b,a)[0];this.contentEl_||(this.contentEl_=this.getDomHelper().createDom("DIV",b),a.appendChild(this.contentEl_));b=this.class_+"-title";var c=this.class_+"-title-text",d=this.class_+"-title-close";(this.titleEl_=zC(document,null,b,a)[0])?(this.titleTextEl_=zC(document,null,c,this.titleEl_)[0],this.titleCloseEl_=zC(document,null,d,this.titleEl_)[0]):
(this.titleEl_=this.getDomHelper().createDom("DIV",b),a.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=EJc(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=uJc("SPAN",{className:c,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;lU(a,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.getDomHelper().createDom("SPAN",d),this.titleEl_.appendChild(this.titleCloseEl_));
Ct(this.titleCloseEl_,this.hasTitleCloseButton_);b=this.class_+"-buttons";(this.buttonEl_=zC(document,null,b,a)[0])?(this.buttons_=new q0(this.getDomHelper()),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.getDomHelper().createDom("DIV",b),a.appendChild(this.buttonEl_),this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render()),Ct(this.buttonEl_,!!this.buttons_));dKd(this,this.backgroundElementOpacity_)};
h.enterDocument=function(){wt.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_);eKd(this,!0);this.getHandler().listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();Ird(a,"dialog");this.titleTextEl_.id!==""&&lU(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()&&YJd(this,!1)}};h.exitDocument=function(){this.isVisible()&&this.setVisible(!1);eKd(this,!1);wt.superClass_.exitDocument.call(this)};h.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),wt.superClass_.setVisible.call(this,a))};h.onShow=function(){wt.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
h.onHide=function(){wt.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.disposeOnHide_&&this.dispose()};h.setDraggerLimits_=function(){var a=this.getDomHelper().document_,b=AC(Fu(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=mId(this.getElement());koc(this.getElement())=="fixed"?this.dragger_.limits=new Hu(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.dragger_.limits=new Hu(0,0,c-d.width,a-d.height)};
h.onTitleCloseClick_=function(){fKd(this)};var fKd=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new gKd(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},hKd=function(a){a.hasTitleCloseButton_=!1;a.titleCloseEl_&&Ct(a.titleCloseEl_,a.hasTitleCloseButton_)};wt.prototype.setDisposeOnHide=function(a){this.disposeOnHide_=a};wt.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;wt.superClass_.disposeInternal.call(this)};
wt.prototype.onButtonClick_=function(a){a:{for(a=a.target;a!=null&&a!=this.buttonEl_;){if(a.tagName=="BUTTON")break a;a=a.parentNode}a=null}if(a&&!a.disabled){a=a.name;var b=this.buttons_.get(a);this.dispatchEvent(new gKd(a,b))&&this.setVisible(!1)}};
wt.prototype.onKey_=function(a){var b=!1,c=!1,d=this.buttons_,e=a.target;if(a.type=="keydown")if(this.escapeToCancel_&&a.keyCode==27){var f=d&&d.cancelButton_;e=e.tagName=="SELECT"&&!e.disabled;f&&!e?(c=!0,b=d.get(f),b=this.dispatchEvent(new gKd(f,b))):e||(b=!0)}else{if(a.keyCode==9&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(l){}Hs(this.resetBackwardTabWrap_,0,this)}}else if(a.keyCode==13){if(e.tagName=="BUTTON"&&!e.disabled)f=e.name;
else if(e==this.titleCloseEl_)fKd(this);else if(d){var g=d.defaultButton_,k=g&&d.getButton(g);e=(e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="A")&&!e.disabled;!k||k.disabled||e||(f=g)}f&&d&&(c=!0,b=this.dispatchEvent(new gKd(f,String(d.get(f)))))}else e!=this.titleCloseEl_||a.keyCode!=32&&a.key!=" "||fKd(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};var gKd=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};yw(gKd,GB);
var q0=function(a){n0.call(this);this.dom_=a||kj();this.class_="goog-buttonset";this.cancelButton_=this.element_=this.defaultButton_=null};yw(q0,n0);q0.prototype.clear=function(){n0.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};q0.prototype.set=function(a,b,c,d){n0.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};var p0=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};h=q0.prototype;
h.render=function(){if(this.element_){Gra(this.element_,sj);var a=kj(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)}};h.decorate=function(a){if(a&&a.nodeType==1){this.element_=a;a=yC("BUTTON",this.element_);for(var b,c,d,e=0;b=a[e];e++)if(c=b.name||b.id,d=EJc(b)||b.value,c){var f=e==0;this.set(c,d,f,b.name=="cancel");f&&OId(b,this.class_+"-default")}}};h.getElement=function(){return this.element_};
h.getDomHelper=function(){return this.dom_};h.getButton=function(a){for(var b=yC("BUTTON",this.element_),c,d=0;c=b[d];d++)if(c.name==a||c.id==a)return c;return null};var aKd={key:"ok",caption:"OK"},bKd={key:"cancel",caption:"Cancel"},iKd={key:"yes",caption:"Yes"},jKd={key:"no",caption:"No"},kKd={key:"save",caption:"Save"},lKd={key:"continue",caption:"Continue"};
typeof document!="undefined"&&(p0(new q0,aKd,!0,!0),p0(p0(new q0,aKd,!0),bKd,!1,!0),p0(p0(new q0,iKd,!0),jKd,!1,!0),p0(p0(p0(new q0,iKd),jKd,!0),bKd,!1,!0),p0(p0(p0(new q0,lKd),kKd),bKd,!0,!0));yw(bBb,wt);var cBb=function(a,b){jj.call(this);this.element_=a;a=xJc(this.element_)?this.element_:this.element_?this.element_.body:null;this.isRtl_=!!a&&Du(a);this.listenKey_=lj(this.element_,fj?"DOMMouseScroll":"mousewheel",this,b)};yw(cBb,jj);
cBb.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;d.type=="mousewheel"?(a=mKd(-d.wheelDelta),d.wheelDeltaX!==void 0?(b=mKd(-d.wheelDeltaX),c=mKd(-d.wheelDeltaY)):c=a):(a=d.detail,a>100?a=3:a<-100&&(a=-3),d.axis!==void 0&&d.axis===d.HORIZONTAL_AXIS?b=a:c=a);typeof this.maxDeltaX_==="number"&&(b=Math.min(Math.max(b,-this.maxDeltaX_),this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(c=Math.min(Math.max(c,-this.maxDeltaY_),this.maxDeltaY_));this.isRtl_&&(b=-b);b=new nKd(a,d,b,c);this.dispatchEvent(b)};
var mKd=function(a){return ej&&(gv||bxc)&&a%40!=0?a:a/40};cBb.prototype.disposeInternal=function(){cBb.superClass_.disposeInternal.call(this);LB(this.listenKey_);this.listenKey_=null};var nKd=function(a,b,c,d){HB.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};yw(nKd,HB);var jBb;var oKd=rw(["https://about:blank"]),pKd=rw(['javascript:""']),qKd=rw(["about:blank"]);yw(Dt,bBb);h=Dt.prototype;h.url_="";h.iframe_=null;h.iframeLoaded_=!1;h.loadedFired_=!1;h.callback_=function(){};h.enterDocument=function(){Dt.superClass_.enterDocument.call(this);eBb(this.getBackgroundElement(),this.getHandler())};
h.render=function(a){var b=this;Dt.superClass_.render.call(this,a);this.useGapi_?DJd(this.iframeManager_,window).then(function(){return rKd(b)}).then(null,function(c){return void b.handleError_(c)}):sKd(this)};
var rKd=function(a){var b=a.getDomHelper().createDom("div",["picker-dialog-content","picker-frame"]);Ct(b,!1);a.getContentElement().appendChild(b);return EJd(a.iframeManager_,b,function(c){var d=Pad(c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;d=X(d,Mad,2);var e="";switch(d.getStatus()){case 2:e="cancel";break;case 1:e="picked";break;case 3:e="error"}var f=d.getItemList(Jm);d=f.length===0?{action:e}:lJd(f,e,d.getInternalOnlyV1ViewInfo());c.call(a,d);a.setVisible(!1);break;case 4:hKd(a);
a.callback_({action:"loaded"});break;case 7:case 8:c=a.callback_;a:{e=d.getCommand();f=X(d,Mad,2);switch(e){case 7:e="uploadScheduled";break;case 8:e="uploadStateChange";break;default:d={};break a}d=f.getItemList(Jm);if(d.length===0)d={action:e};else{var g=f.getInternalOnlyV1ViewInfo();f=g&&ui(g,1);g=aJd(g);d=dJd(d,e,f,g)}}c.call(a,d)}},a.url_,a.targetId_,a.rpcToken_).then(function(c){a.iframe_=c.getIframeEl();tKd(a);Ct(a.iframe_.parentElement,!0);OId(a.getElement(),"picker-dialog");uKd(a);return c})},
sKd=function(a){a.iframe_=a.dom_.createDom("IFRAME",{id:a.targetId_,name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});Era(a.iframe_,vKd(a));OId(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.iframe_);a.getHandler().listen(a.iframe_,"load",function(){return void tKd(a)});a.iframe_.src=a.url_;uKd(a)},xKd=function(a){wKd(a,mj(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},uKd=function(a){var b=At(zt(a.url_),"title");b&&a.setTitle(b)},vKd=function(a){return jba()>=
7&&a.url_.lastIndexOf("https",0)==0?Fh(oKd):Ou?Fh(pKd):Fh(qKd)},tKd=function(a){xKd(a);a.iframeLoaded_=!0;a.iframe_.tabIndex=0;a.isVisible()&&a.focus()};Dt.prototype.handleKeydown_=function(a){a.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};var wKd=function(a,b){var c=a.gadgetsDomHelper_;aBb(function(){b(c.getWindow().gadgets.rpc)},c)};
Dt.prototype.setUrl=function(a){a=Bt(new Os(a),"rpcService",this.targetId_);Bt(a,"rpctoken",this.rpcToken_);GHc(a,"rpctoken="+this.rpcToken_);TB(a,"https");this.url_=a.toString();this.iframe_&&(this.iframe_.src=this.url_)};Dt.prototype.setAppId=function(a){this.appId_=a;this.loadedFired_&&yKd(this)};Dt.prototype.setCallback=function(a){this.callback_=a;wKd(this,mj(function(b){b.register(this.targetId_,mj(this.handlePickerAction_,this))},this))};
Dt.prototype.handlePickerAction_=function(a){var b=a.action;b=="loaded"&&(this.loadedFired_=!0,this.sendCommand(new YAb(this.isVisible())),yKd(this),hKd(this),this.getHandler().unlisten(this.getDomHelper().getWindow(),"keydown",this.handleKeydown_),this.iframe_.tabIndex=0);b!="picked"&&b!="cancel"||this.setVisible(!1);this.callback_(a)};var yKd=function(a){a.appId_&&a.sendCommand(new XAb(a.appId_,window.location.protocol+"//"+window.location.host))};h=Dt.prototype;
h.setRelayUrl=function(a){wKd(this,mj(function(b){b.setRelayUrl(this.targetId_,a)},this))};h.sendCommand=function(a){var b=this;this.useGapi_&&JJd(a,this.iframeManager_).then(null,function(c){return void b.handleError_(c)});wKd(this,mj(function(c){c.call(this.targetId_,"picker",null,a)},this))};
h.resizePicker_=function(){var a=this.getDomHelper().document_;a=Fu(a)||window;if(At(zt(this.url_),"ignoreLimits")=="true")a=new wC(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(At(zt(this.url_),"shadeDialog")=="true"){var b=cKd(this);b=oId(b);var c=AC(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 wC(a>0?a:0,c>0?c:0)}else(b=this.preferredDialogWidth_)?(b=Math.max(320,Math.min(1051,b)),(c=this.preferredDialogHeight_)||
(c=AC(a).height*.85),c=Math.max(480,Math.min(650,c))):(b=AC(a),c=b.width*.618,c=c<b.height?Math.round(Math.max(480,Math.min(650,c*.85))):Math.round(Math.max(480,Math.min(650,b.height*.85))),b=Math.round(c/.618)),a=AC(a),b=Math.min(b,Math.max(a.width,320)),c=Math.min(c,Math.max(a.height,480)),a=new wC(b,c);lId(this.getContentElement(),a);this.reposition()};
h.reposition=function(){if(At(zt(this.url_),"shadeDialog")=="true"){var a=mId(this.getElement()),b=AC(this.getDomHelper().getWindow());a=Math.floor(b.width/2-a.width/2);b=cKd(this);if(b=oId(b)){var c=b.left?b.left:0;c+=b.right?b.right:0;a=Math.floor(a-c/2)}a=a>0?a:0;b=IJc(this.getDomHelper()).y;Iu(this.getElement(),a,b)}else Dt.superClass_.reposition.call(this)};
h.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_))}Dt.superClass_.setVisible.call(this,a);this.sendCommand(new YAb(a))};
h.focus=function(){Dt.superClass_.focus.call(this);if(this.iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.iframe_.focus()}catch(a){}};h.handleError_=function(){this.callback_({action:"error"})};var zKd=function(a,b){b=b===void 0?Dt:b;UAb.call(this,a);this.pickerConstructor=b;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};Y(zKd,VAb);zKd.prototype.disposeOnHide_=!1;
zKd.prototype.build=function(){this.getAppId()&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.getAppId());this.urlParamMap_.get("parent")||this.setRelayUrl(GHc(FHc(zt(window.location.href)),"").setPath("/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("dg");var a=new this.pickerConstructor(AKd(this).toString(),!0,this.getDomHelper(),this.dialogWidth_,this.dialogHeight_,"",this.gadgetsDomHelper_,!1,!1);a.setDisposeOnHide(this.disposeOnHide_);
a.setAppId(this.getAppId());a.setCallback(this.callback_);return a};var BKd=function(a,b){a.urlParamMap_.set(b,"true");return a};h=zKd.prototype;h.getHeight=function(){return this.dialogHeight_};h.getLocale=function(){return this.urlParamMap_.get("hl")};h.getTitle=function(){return this.urlParamMap_.get("title")};h.getWidth=function(){return this.dialogWidth_};h.setDisposeOnHide=function(a){this.disposeOnHide_=a};h.setGroupId=function(a){this.urlParamMap_.set("groupId",a)};
var CKd=function(a){a.urlParamMap_.set("hostId","buganizer-drive");return a};h=zKd.prototype;h.setOrigin=function(a){a&&this.urlParamMap_.set("origin",a);return this};h.setLocale=function(a){this.urlParamMap_.set("hl",a)};h.setRelayUrl=function(a){this.urlParamMap_.set("parent",a)};h.setSize=function(a){this.dialogWidth_=a;this.dialogHeight_=void 0;return this};h.setTitle=function(a){this.urlParamMap_.set("title",a);return this};
var AKd=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",JSON.stringify(a.postProcessors_));a.urlParamMap_.set("nav",IId(a.nav_));var b=new Os(a.getBaseUrl());a.urlParamMap_.forEach(function(c,d){Bt(b,d,c)});return b};var DKd=function(){this.activeSession=p(uu);this.attachmentsApi=p(nS);this.onePickUrl=this.activeSession.getOnePickUrl();this.disabled=!1;this.onPickDoc=new aQ;this.onCloneBlob=new aQ};
DKd.prototype.showDialog=function(){var a=this;if(!this.drivePicker){var b=window.location.origin||window.location.protocol+"//"+window.location.host;this.drivePicker=CKd(BKd(BKd(BKd(BKd((new zKd(this.onePickUrl)).addView(AId().setMode("list")),"navHidden"),"multiselectEnabled"),"edbe"),"showAttach").setCallback(function(c){if(c&&c.action==="picked")for(var d=m(c.docs),e=d.next();!e.done;e=d.next())e=new wId(e.value),c.extraUserInputs.isAttachment?(e=new xId(e),yId(e,a.attachmentsApi),a.onCloneBlob.emit(e)):
a.onPickDoc.emit(e)}).setOrigin(b)).build()}this.drivePicker.setVisible(!0)};DKd.\u0275fac=function(a){return new (a||DKd)};
DKd.\u0275cmp=D({type:DKd,selectors:[["b-drive-attachment"]],inputs:{disabled:"disabled"},outputs:{onPickDoc:"onPickDoc",onCloneBlob:"onCloneBlob"},standalone:!1,decls:3,vars:1,consts:[[1,"goog-inline-block","vertical-centered"],["type","button","mat-icon-button","","matTooltip","Add Drive attachments","aria-label","Add Drive attachments",3,"click","disabled"],["svgIcon","google-drive"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"button",1),N("click",function(){return b.showDialog()}),M(2,"mat-icon",
2),L()());a&2&&(B(),I("disabled",b.disabled))},dependencies:[Jy,kB,iB,vK,nA],encapsulation:2});var r0=function(){Z.apply(this,arguments);this.issueDetailsBrain=p(YQ);this.userResources=p(jP);this.analytics=p(eQ);this.isPlusOneText=!1;this.onSubmitComment=new aQ};Y(r0,Z);r0.\u0275dir=Z.\u0275dir;r0.prototype.ngOnChanges=function(a){a.isPlusOneText&&this.isPlusOneText&&this.analytics.trackEvent("editIssue","view","commentAndVoteBanner")};
r0.prototype.onClick=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1)return z(e,fe(b.issueDetailsBrain.id$),2);c=e.yieldResult;b.onSubmitComment.emit(a);if(c==null)return e.return();d={voted:!0,starred:null,notificationSubscription:null};efd(b.userResources,c,d).pipe(zf(b.destroyed$)).subscribe();b.analytics.trackEvent("editIssue","click","commentAndVote");ae(e)})};r0.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(r0)))(b||r0)}}();
r0.\u0275cmp=D({type:r0,selectors:[["b-plus-one-comment-callout"]],inputs:{isPlusOneText:"isPlusOneText"},outputs:{onSubmitComment:"onSubmitComment"},standalone:!1,features:[Ef,jx],decls:1,vars:1,consts:[[1,"callout"],["svgIcon","info",1,"info-icon",3,"matTooltip"],["role","alert",1,"content"],[1,"actions"],["type","button","mat-flat-button","","color","primary",3,"click"]],template:function(a,b){a&1&&F(0,mBb,7,1,"div",0);a&2&&G(b.isPlusOneText?0:-1)},dependencies:[Jy,kB,gB,vK,nA],styles:[".callout[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:8px;min-height:36px;padding:8px;background-color:#e8f0fe;background-color:var(--primary-c50)}.callout[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.info-icon[_ngcontent-%COMP%]{margin-left:8px;margin-right:16px}.content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}"]});var EKd=["commentBoxContainer"],FKd=[[["","warning",""]],[["","recaptchaContainer",""]],[["","additionalToolbarItems",""]]],GKd=function(a,b){return[a,b]},s0=function(){this.analytics=p(eQ);this.hotkeys=p(nU);this.activeSession=p(uu);this.appEvents=p(UO);this.MARKDOWN="MARKDOWN";this.commentChange=new aQ;this.warn=this.disabled=this.supportsPreview=!1;this.showToolbar=!0;this.attachmentsDisabled=!1;this.showRestrictionOptions=!0;this.isLiteralModeSupported=this.canEditIssuesInComponent=this.isPlusOneCalloutEnabled=
!1;this.onPlusOneTextEntered=new aQ;this.onChange=new aQ;this.onFocusEvent=new aQ;this.onSubmit=new aQ;this.onRestrict=new aQ;this.createRestrictedResourcesComponentIds=this.activeSession.getCreateRestrictedSubresourcesComponentIds();this.focused=!1;this.commentRebound$=new uf(1);this.destroyed$=new uf(1);this.currentTracker=this.activeSession.getTracker()};h=s0.prototype;h.ngOnDestroy=function(){var a;(a=this.comment)==null||hnd(a);this.destroyed$.next()};
h.ngOnInit=function(){var a=this;this.appEvents.focusCommentBox.pipe(zf(this.destroyed$)).subscribe(function(b){Rlb(a,b)});this.appEvents.scrollToCommentBox.pipe(zf(this.destroyed$)).subscribe(function(){a.scrollIntoView()})};h.ngOnChanges=function(a){a.comment&&this.commentRebound$.next()};h.getRestrictedLabel=function(){var a,b,c=(b=(a=this.judgementForNewContent)==null?void 0:a.severity)!=null?b:"NONE_DETECTED";return qYa(c)};
h.isRestricted=function(){var a,b;return((b=(a=this.judgementForNewContent)==null?void 0:a.severity)!=null?b:"NONE_DETECTED")!=="NONE_DETECTED"};var Rlb=function(a,b){(b=b===void 0?"":b)&&a.analytics.trackEvent("commentBox","takeFocus",b);a.scrollIntoView();setTimeout(function(){var c;(c=a.commentDraftComponent)==null||yBd(c)})};h=s0.prototype;h.uploadFile=function(a){a=this.attachmentUploader.upload(a);this.addUpload(a)};h.addUpload=function(a){this.comment&&this.comment.uploads.push(a)};
h.removeUpload=function(a){this.comment&&La(this.comment.uploads,a)};h.scrollIntoView=function(){var a;(a=this.commentBoxContainer)==null||a.nativeElement.scrollIntoView({behavior:"smooth"})};h.onFocus=function(){this.focused=!0;this.onFocusEvent.emit()};h.onBlur=function(){this.focused=!1};h.onKeydown=function(a){this.hotkeys.isEnabled()&&(a.key!=="Enter"||!a.ctrlKey&&!a.metaKey||this.disabled||this.onSubmit.emit(a))};
h.handlePaste=function(a){if(a&&a.clipboardData!=null){var b=a.clipboardData;for(var c=!1,d=!1,e=0,f=0;f<b.items.length;f++)b.items[f].kind==="string"&&b.items[f].type==="text/plain"?c=!0:b.items[f].kind==="file"&&(d=!0,e=f);d&&b.items&&b.files?(d=b.files[0],e=b.items[e].type.replace(/^.*[/]/,""),c?(b=b.getData("text/plain"),b=b.replace(/^.*[\\\/]/,"")):b=(new Date).toString()+"."+e,b={file:d,filename:b}):b=void 0;b&&(a.preventDefault(),a=new File([b.file],b.filename,{type:b.file.type}),this.uploadFile(a))}};
s0.\u0275fac=function(a){return new (a||s0)};
s0.\u0275cmp=D({type:s0,selectors:[["b-comment-box"]],viewQuery:function(a,b){a&1&&(hg(pY,5),hg(EKd,5),hg(i0,5));if(a&2){var c;lg(c=mg())&&(b.commentDraftComponent=c.first);lg(c=mg())&&(b.commentBoxContainer=c.first);lg(c=mg())&&(b.attachmentUploader=c.first)}},inputs:{issueId:"issueId",comment:"comment",supportsPreview:"supportsPreview",placeholder:"placeholder",judgementForNewContent:"judgementForNewContent",audience:"audience",disabled:"disabled",warn:"warn",showToolbar:"showToolbar",idForAriaLabel:"idForAriaLabel",
attachmentsDisabled:"attachmentsDisabled",showRestrictionOptions:"showRestrictionOptions",isPlusOneCalloutEnabled:"isPlusOneCalloutEnabled",canEditIssuesInComponent:"canEditIssuesInComponent",isLiteralModeSupported:"isLiteralModeSupported"},outputs:{commentChange:"commentChange",onPlusOneTextEntered:"onPlusOneTextEntered",onChange:"onChange",onFocusEvent:"onFocusEvent",onSubmit:"onSubmit",onRestrict:"onRestrict"},standalone:!1,features:[jx],ngContentSelectors:["[warning]","[recaptchaContainer]","[additionalToolbarItems]"],
decls:10,vars:19,consts:[["commentBoxContainer",""],[1,"bv2-comment-box-container"],[1,"bv2-comment-textarea-wrapper"],[3,"contentChange","focus","blur","keydown","paste","content","placeholder","disabled","textareaClass","audience","idForAriaLabel","issueId","canEditIssuesInComponent","enableMentionsAutocomplete","isLiteralModeSupported"],[3,"isPlusOneText"],[3,"onUploadCancel","onUploadComplete","uploads"],[1,"bv2-comment-toolbar"],[3,"onSubmitComment","isPlusOneText"],[3,"onSelect","disabled"],
[3,"disabled"],[1,"goog-inline-block","vertical-centered","restriction-button"],[3,"onPickDoc","onCloneBlob","disabled"],["type","button","mat-icon-button","","matTooltip","Restrict this comment/attachment","aria-label","Restrict this comment/attachment",3,"disabled"],["type","button","mat-button","","matTooltip","Restrict this comment/attachment","aria-label","Restrict this comment/attachment",1,"button-with-text"],["type","button","mat-icon-button","","matTooltip","Restrict this comment/attachment",
"aria-label","Restrict this comment/attachment",3,"click","disabled"],["svgIcon","restricted"],["type","button","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){if(a&1){var c=t();bg(FKd);K(0,"div",1,0)(2,"div",2)(3,"b-comment-draft",3);N("contentChange",function(d){u(c);if(b.comment){var e=b.comment.value;b.comment.value=d;d!==e&&
(b.onChange&&(b.commentChange.emit(b.comment),b.onChange.emit()),b.onPlusOneTextEntered&&b.onPlusOneTextEntered.emit(d.trim()==="+1"))}return v()})("focus",function(){u(c);return v(b.onFocus())})("blur",function(){u(c);return v(b.onBlur())})("keydown",function(d){u(c);return v(b.onKeydown(d))})("paste",function(d){u(c);return v(b.handlePaste(d))});L();F(4,nBb,1,1,"b-plus-one-comment-callout",4);L();cg(5);K(6,"b-attachment-uploader",5);N("onUploadCancel",function(d){u(c);b.removeUpload(d);return v(b.onChange.emit())})("onUploadComplete",
function(){u(c);return v(b.onChange.emit())});L();cg(7,1);F(8,sBb,5,3,"div",6);L();F(9,tBb,2,4,"div")}a&2&&(wg("focused",b.focused),B(3),I("content",b.comment.value)("placeholder",b.placeholder)("disabled",b.disabled)("textareaClass",Jg(16,GKd,b.disabled?"bv2-disabled":"",b.warn?"banned-words-warning":""))("audience",b.audience)("idForAriaLabel",b.idForAriaLabel)("issueId",b.issueId)("canEditIssuesInComponent",b.canEditIssuesInComponent)("enableMentionsAutocomplete",!0)("isLiteralModeSupported",b.isLiteralModeSupported),
B(),G(b.isPlusOneCalloutEnabled?4:-1),B(2),I("uploads",b.comment.uploads),B(2),G(b.showToolbar?8:-1),B(),G(b.supportsPreview&&b.comment.formattingMode===b.MARKDOWN?9:-1))},dependencies:[Jy,pY,vK,nA,qT,DKd,uId,i0,kB,gB,iB,r0],encapsulation:2});var t0=function(){this.documentationLinks=p(cS);this.issueLimits=p(AY);this.accessPolicyApi=p(KO);this.implicitAccessEnabled=!1};t0.prototype.ngOnInit=function(){var a=this;this.componentId&&this.accessPolicyApi.checkComponentImplicitAccessEnabled(this.componentId).then(function(b){return a.implicitAccessEnabled=b})};t0.prototype.toggleAccessLimits=function(){var a=this;return y(function(b){if(!a.componentId)return b.return();a.issueLimits.open({componentId:a.componentId,issueId:a.issueId});ae(b)})};
t0.prototype.toggleAccessLimitsWithKeystroke=function(a){this.toggleAccessLimits();a.stopPropagation();a.preventDefault()};t0.prototype.getAccessLimitLevelDisplay=function(a){return a==="LIMIT_APPEND"?"Commenting":a==="LIMIT_VIEW"||a==="LIMIT_VIEW_TRUSTED"?"Visibility":""};
var HKd=function(a,b){if(b)a:if(a=a.implicitAccessEnabled,b===PBd.accessLevel)b=a?"Only added users + Googlers may access. The assignee, verifier and collaborators may edit. CCs can comment. Googler access is according to their component-level permissions.":"Only added users + Googlers may access. They have their normal access as defined by the component-level permissions.";else{for(var c=m(Lkb),d=c.next();!d.done;d=c.next())if(d=d.value,d.accessLevel===b){b=a?d.descriptionWithExpandedAccess:d.descriptionNoExpandedAccess;
break a}b=a?Mkb.descriptionWithExpandedAccess:Mkb.descriptionNoExpandedAccess}else b="";return b};t0.\u0275fac=function(a){return new (a||t0)};
t0.\u0275cmp=D({type:t0,selectors:[["b-access-limits-chip"]],inputs:{issueId:"issueId",componentId:"componentId",accessLimitLevel:"accessLimitLevel"},standalone:!1,decls:12,vars:4,consts:[["card","onedevHovercard"],["type","button","role","button","matTooltip","Press Alt + Right arrow for more details",1,"chippy","rounded","nowrap","access-limited",3,"click","keydown.enter","keydown.space","onedevHovercardTrigger"],["svgIcon","encrypted_24px",1,"icon-s","valign-middle"],[1,"access-limit-display-name"],
[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["target","_blank","aria-label","Learn more about issue access limits",3,"href"]],template:function(a,b){if(a&1){var c=t();K(0,"button",1);N("click",function(){u(c);return v(b.toggleAccessLimits())})("keydown.enter",function(d){u(c);return v(b.toggleAccessLimitsWithKeystroke(d))})("keydown.space",function(d){u(c);return v(b.toggleAccessLimitsWithKeystroke(d))});M(1,"mat-icon",2);K(2,"span",3);Q(3);L()();K(4,"onedev-hovercard",
null,0)(6,"div",4)(7,"div",5)(8,"span",6);Q(9);K(10,"a",7);Q(11," Learn more");L()()()()()}a&2&&(a=qg(5),I("onedevHovercardTrigger",a),B(3),yg(b.getAccessLimitLevelDisplay(b.accessLimitLevel)),B(6),S(" Issue access is limited. ",HKd(b,b.accessLimitLevel)," "),B(),I("href",b.documentationLinks.getIssueAccessLimit(),Ne))},dependencies:[Jy,vK,nA,KK,SK],styles:[".chippy[_ngcontent-%COMP%]{margin-right:8px;cursor:pointer}.chippy[_ngcontent-%COMP%]:hover, .chippy[_ngcontent-%COMP%]:focus, .chippy[_ngcontent-%COMP%]:focus-visible, .chippy[_ngcontent-%COMP%]:focus-within{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color;outline-offset:2px}.chippy.access-limited[_ngcontent-%COMP%]{background-color:#d2e3fc;background-color:var(--selected-bg);border:1px solid;border-color:#185abc;border-color:var(--primary-c800);box-shadow:none}.chippy[_ngcontent-%COMP%]   .access-limit-display-name[_ngcontent-%COMP%]{padding-right:2px;font-weight:500}.bubble[_ngcontent-%COMP%]{width:300px}"],
changeDetection:0});var IKd=[[["","additionalToolbarItems",""]]],u0=function(){var a=this;this.issuePermissionService=p($Q);this.userPreferencesManager=p(hR);this.editIssueService=p(GS);this.analytics=p(eQ);this.draftStore=p(bS);this.activeSession=p(uu);this.issueDetailsBrain=p(YQ);this.issueCommentDialogsService=p(vY);this.appEvents=p(UO);this.bannedWordsChecker=p(PW);this.componentFridge=p(RO);this.butterBar=p(UN);this.destroyRef=p(Ce);this.issueId$=new uf(1);this.distinctIssueId$=this.issueId$.pipe(nf());this.issue$=
this.distinctIssueId$.pipe(yf(function(b){return a.editIssueService.editableIssue$(b)}));this.wasFocused=!1;this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.recaptchaResponse$=new Mj("");this.showActionsAfterPreview=!1;this.showCommentButton=!0;this.commentSubmitted=new aQ;this.placeholderText$=new Mj("Add a comment.");this.issueComponent$=this.issue$.pipe(yf(function(b){return(b==null?0:b.componentId)?a.componentFridge.watch(b==null?void 0:b.componentId):ce(void 0)}));this.issueAccessLimitLevel$=
this.issuePermissionService.accessLimitLevel$.pipe(A(function(b){return b!=null?b:"LIMIT_NONE"}));this.isAccessLimited$=this.issueAccessLimitLevel$.pipe(A(function(b){return b==="LIMIT_VIEW"||b==="LIMIT_APPEND"||b==="LIMIT_VIEW_TRUSTED"}));this.HOTKEYS=Xr;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.hasAclToComment$=this.issuePermissionService.hasAclToComment$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.accessLevel$=this.issuePermissionService.accessLevel$;
this.audience$=this.issuePermissionService.audience$;this.autoCcOnComment$=this.userPreferencesManager.preferences$.pipe(A(function(b){return b.autoCcOnComment}));this.issueCommentDraft$=this.issueId$.pipe(A(function(b){return a.editIssueService.issueCommentDraft(b)}));this.judgementForNewContent$=this.issueCommentDraft$.pipe(yf(function(b){return b.judgementForNewContent$}));this.comment$=this.issueCommentDraft$.pipe(yf(function(b){return b.comment$}));this.events$=this.issueDetailsBrain.eventsJs$;
this.savingState$=this.issueId$.pipe(A(function(b){return a.editIssueService.savingState(b)}));this.isSaving$=this.savingState$.pipe(yf(function(b){return Ind(b,"comment")}));this.commentLimitReached$=this.events$.pipe(A(function(b){var c=a.activeSession.getCommentNumberLimit();return XTa(b)>=c}));this.commentPlaceholderText$=ie([this.commentLimitReached$,this.hasAclToComment$,this.placeholderText$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return b?"The comment limit has been reached and no additional comments are permitted.":
a.activeSession.isAnonymous()?"Sign in to use full features.":d?c:"You do not have access to comment on this issue."}));this.commentBoxEnabled$=ie([this.hasAclToComment$,this.commentLimitReached$,this.isSaving$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return b&&!d&&!c}));this.showRecaptcha$=ie([this.hasAclToComment$,this.commentLimitReached$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b&&!c&&a.enableRecaptcha}));this.isPlusOneCalloutEnabled$=
this.issueDetailsBrain.voted$.pipe(A(function(b){return a.activeSession.isInternalSession()&&!b}));this.isPlusOneText$=new Mj(!1);this.commentButtonStyle$=ie([this.isPlusOneCalloutEnabled$,this.isPlusOneText$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b&&c?"hairline":"fill"}));this.commentDraftUpdated$=new Mj(!0);this.commentButtonEnabled$=ie([this.hasAclToComment$,this.comment$,this.isSaving$,this.recaptchaResponse$,this.commentDraftUpdated$]).pipe(A(function(b){var c=
m(b);b=c.next().value;var d=c.next().value;var e=c.next().value;c=c.next().value;return b&&jnd(d)&&!e&&(!a.enableRecaptcha||c!=="")}));this.empty$=ie([this.comment$,this.commentDraftUpdated$]).pipe(A(function(b){var c,d;return(d=(c=m(b).next().value)==null?void 0:c.value)!=null?d:""}),A(function(b){return b.length===0}));this.doAutoRestrictComment$=ie([this.issueComponent$,this.comment$,this.commentDraftUpdated$,this.judgementForNewContent$]).pipe(A(function(b){b=m(b);var c=b.next().value;var d=b.next().value;
b.next();b=b.next().value;c=c!=null?c:null;d=d.uploads.length>0;var e=!(c==null||!c.trackerId);b=(b==null?void 0:b.severity)!=="RESTRICTED"&&(b==null?void 0:b.severity)!=="RESTRICTED_PLUS";return nt(c)&&e&&!rs(a.activeSession)&&d&&b}))};u0.prototype.setJudgementForNewContent=function(a,b){this.editIssueService.issueCommentDraft(a).setJudgementForNewContent(b)};
u0.prototype.autoRestrictComment=function(a){var b=this,c;return y(function(d){a&&(c={severity:"RESTRICTED",judgementReason:"Auto-restricted for issue on public tracker being edited from outside of a tracker",resourcePath:void 0,contentJudgementId:void 0},b.setJudgementForNewContent(b.issueId,c),Rr(b.butterBar,"Because this issue is displayed on a public tracker, this comment will be Restricted. You may modify the restriction level before submitting the comment."));ae(d)})};
u0.prototype.ngOnInit=function(){this.doAutoRestrictComment$.pipe(Tj(this.destroyRef)).subscribe(this.autoRestrictComment.bind(this))};var yBb=function(a){var b;return y(function(c){b=!iR(a.userPreferencesManager).autoCcOnComment;a.analytics.trackEvent("editIssue","toggleAutoCcOnComment",String(b));return z(c,fe(a.userPreferencesManager.save({autoCcOnComment:b})),0)})};
u0.prototype.saveCommentDraft=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.bannedWordsChecker.reset(),z(c,fe(a.comment$),2);b=c.yieldResult;a.draftStore.$window.sessionStorage.setItem(Lr(a.internalIssueId),b.value);a.commentDraftUpdated$.next(!0);ae(c)})};
u0.prototype.submitCommentBox=function(a){var b=this,c,d,e,f,g,k,l;return y(function(r){if(r.nextAddress==1)return(c=a)==null||c.stopPropagation(),d=b.enableRecaptcha?b.recaptchaResponse$.getValue():void 0,e=b.editIssueService.issueCommentDraft(b.internalIssueId).comment(),f=b.editIssueService.editableIssue(b.internalIssueId),z(r,b.bannedWordsChecker.check(e.value,b.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",f.componentId),2);if(r.nextAddress!=3)return g=r.yieldResult,g?z(r,b.issueCommentDialogsService.submitCommentBox(String(f.componentId),
b.internalIssueId,e,d),3):((k=a)==null||k.preventDefault(),(l=b.commentBox)==null||Rlb(l),r.return());b.commentSubmitted.emit();b.bannedWordsChecker.reset();b.appEvents.recaptchaSubmitted.next();ae(r)})};u0.prototype.showNewContentJudgementDialog=function(){var a=this;return y(function(b){return z(b,a.issueCommentDialogsService.showNewContentJudgementDialog(a.internalIssueId),0)})};
da.Object.defineProperties(u0.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a);this.internalIssueId=a},get:function(){return this.internalIssueId}},placeholderText:{configurable:!0,enumerable:!0,set:function(a){a&&this.placeholderText$.next(a)}},componentIdString:{configurable:!0,enumerable:!0,get:function(){return String(this.editIssueService.editableIssue(this.internalIssueId).componentId)}}});u0.\u0275fac=function(a){return new (a||u0)};
u0.\u0275cmp=D({type:u0,selectors:[["b-post-comment"]],viewQuery:function(a,b){a&1&&hg(s0,5);if(a&2){var c;lg(c=mg())&&(b.commentBox=c.first)}},inputs:{issueId:"issueId",showActionsAfterPreview:"showActionsAfterPreview",showCommentButton:"showCommentButton",placeholderText:"placeholderText"},outputs:{commentSubmitted:"commentSubmitted"},standalone:!1,features:[Gg([PW])],ngContentSelectors:["[additionalToolbarItems]"],decls:4,vars:3,consts:[["actionButtons",""],["commentBox",""],[1,"a11y-only"],[1,
"bv2-edit-issue-add-comment"],["id","AddCommentBox",3,"hotkey","supportsPreview","issueId","comment","placeholder","judgementForNewContent","audience","disabled","isPlusOneCalloutEnabled","warn","isLiteralModeSupported"],["id","AddCommentBox",3,"onHotkey","onChange","onFocusEvent","onSubmit","onRestrict","onPlusOneTextEntered","hotkey","supportsPreview","issueId","comment","placeholder","judgementForNewContent","audience","disabled","isPlusOneCalloutEnabled","warn","isLiteralModeSupported"],["warning",
"",1,"banned-words-warning","break-word"],["recaptchaContainer",""],["additionalToolbarItems","",1,"goog-inline-block"],[1,"goog-inline-block"],[1,"goog-inline-block","vertical-centered"],[3,"initialValue"],[3,"issueId","componentId","accessLimitLevel"],[3,"issueId"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"],[3,"onUpdate"],[4,"ngTemplateOutlet"],[3,"change","checked","disabled"],["matTooltip",
"(issuePermissionService.addMeToCcDisabledReason$ | async) || ''",3,"checked","disabled"],[3,"change","initialValue"],[3,"format","disabled","color"],[3,"onAction","click","format","disabled","color"]],template:function(a,b){a&1&&(bg(IKd),F(0,IBb,1,1),T(1,"async"),E(2,KBb,1,1,"ng-template",null,0,Mg));if(a&2){var c;G((c=U(1,1,b.issue$))?0:-1,c)}},dependencies:[MU,s0,fU,Sx,pU,kL,hI,qY,t0,KW,Tx],styles:["[_nghost-%COMP%]{display:block;margin-bottom:8px}[_nghost-%COMP%]     .bv2-edit-issue-add-comment{padding-left:0;padding-right:0}textarea[_ngcontent-%COMP%]{display:block;margin:0;margin-bottom:8px;max-height:40vh;min-height:130px;resize:none;width:100%}@media(forced-colors: active){[_nghost-%COMP%]     .bv2-comment-toolbar .goog-inline-block b-button .gmat-mdc-button.mat-mdc-unelevated-button{border:1px solid;border-color:#dadce0;border-color:var(--divider)}}[_nghost-%COMP%]     .bv2-comment-toolbar .goog-inline-block b-button .gmat-mdc-button.mat-mdc-unelevated-button.mat-warn{background-color:#c5221f;background-color:var(--bad-gfx)}button[_ngcontent-%COMP%], mat-checkbox[_ngcontent-%COMP%]{margin-right:8px}.recent-first   [_nghost-%COMP%]     .empty.never-focused textarea{min-height:32px;height:32px !important}.recent-first   [_nghost-%COMP%]     .empty.never-focused textarea:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.recent-first   [_nghost-%COMP%]     .empty.never-focused b-live-preview{display:none}.banned-words-warning[_ngcontent-%COMP%]{margin-bottom:16px;color:#c5221f;color:var(--bad-text)}/*# sourceMappingURL=post_comment.css.map */"]});var JKd=function(){};JKd.\u0275fac=function(a){return new (a||JKd)};JKd.\u0275mod=$e({type:JKd});JKd.\u0275inj=Fc({providers:[{provide:hId,useFactory:function(){return new eId}}]});var KKd=function(){};KKd.\u0275fac=function(a){return new (a||KKd)};KKd.\u0275mod=$e({type:KKd});KKd.\u0275inj=Fc({imports:[by,JKd]});var v0=function(){};v0.\u0275fac=function(a){return new (a||v0)};v0.\u0275mod=$e({type:v0});v0.\u0275inj=Fc({providers:[{provide:gId,useFactory:g0}],imports:[WO,mB,wK,KKd,fV]});var LKd=function(){};LKd.\u0275fac=function(a){return new (a||LKd)};LKd.\u0275mod=$e({type:LKd});LKd.\u0275inj=Fc({imports:[WO,mB,wK]});var w0=function(){};w0.\u0275fac=function(a){return new (a||w0)};w0.\u0275mod=$e({type:w0});w0.\u0275inj=Fc({imports:[WO,H_,GU,wK,NU,CU,v0,mB,LKd]});var x0=function(){};x0.\u0275fac=function(a){return new (a||x0)};x0.\u0275mod=$e({type:x0});x0.\u0275inj=Fc({imports:[WO,mB,WJ,wK,GU]});var y0=function(){};y0.\u0275fac=function(a){return new (a||y0)};y0.\u0275mod=$e({type:y0});y0.\u0275inj=Fc({imports:[x0,WO,I_,GU,mB,TJ,WJ,wK,uX,lL]});var z0=function(){};z0.\u0275fac=function(a){return new (a||z0)};z0.\u0275mod=$e({type:z0});z0.\u0275inj=Fc({imports:[WO,dX,wK,TK,y0]});var A0=function(){};A0.\u0275fac=function(a){return new (a||A0)};A0.\u0275mod=$e({type:A0});A0.\u0275inj=Fc({});var B0=function(){};B0.\u0275fac=function(a){return new (a||B0)};B0.\u0275mod=$e({type:B0});B0.\u0275inj=Fc({imports:[NU,w0,CU,WO,fX,DE,qU,mB,lL,A0,z0,vX]});var MKd=["addLink"],NKd=["peopleKitDiv"],OKd=[Object.assign({},ZBb("start","bottom"),$Bb("start","top"),{offsetY:8}),Object.assign({},ZBb("center","bottom"),$Bb("center","top"),{offsetY:8}),Object.assign({},ZBb("end","bottom"),$Bb("end","top"),{offsetY:8}),Object.assign({},ZBb("start","top"),$Bb("start","bottom"),{offsetY:-8}),Object.assign({},ZBb("end","top"),$Bb("end","bottom"),{offsetY:-8})],C0=function(){var a=this;this.activeSession=p(uu);this.principalTypesFridge=p(GQ);this.issuePermissionService=
p($Q);this.issueDetailsBrain=p(YQ);this.autocompleteConfigService=p(EW);this.title=this.name="";this.values=null;this.iconName=this.collectionHovercardDescription=this.removeSelfActionLongDescription=this.removeSelfActionDescription=this.includeSelfActionLongDescription=this.includeSelfActionDescription="";this.inputValidator=null;this.checkAccessLimits=!1;this.overlayPosition=OKd;this.valueChange=new aQ;this.userInclusionToggle=new aQ;this.toggleAccessLimits=new aQ;this.teamId$=this.issueDetailsBrain.teamId$;
this.ListFieldType=bud;this.providedValues$=new uf(1);this.groups$=this.providedValues$.pipe(yf(function(b){return a.extractGroups(b)}),xf(new Set));this.OVERLAY_POSITION_LIST=OKd;this.newlySelectedUsersString="";this.USER_FIELD_HOVERCARD_CONFIG=Object.assign({},new OK,{position:[m8c]});this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.enableTeamAnnotations=this.activeSession.isInternalSession()};h=C0.prototype;
h.extractGroups=function(a){var b=function(c){return c.principalType==="GROUP"};return this.principalTypesFridge.watchSet(a).pipe(A(function(c){return new Set(c.filter(b).map(function(d){return d.email}))}))};h.removeItem=function(a){if(this.values){var b=[].concat(q(this.values));b.splice(a,1);this.valueChange.emit({editField:null,newUsers:b})}};h.getUser=function(a){if(!this.users||!this.values)return{emailAddress:""};a=this.values.indexOf(a);return a===-1?{emailAddress:""}:this.users[a]};
h.closeAddPopup=function(a){var b,c=m((b=this.menuTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())b.value.closeMenu();var d;c=m((d=this.popupTriggers)!=null?d:[]);for(d=c.next();!d.done;d=c.next())this.closeInlineDialog(d.value);a&&this.addLinkEl&&this.addLinkEl.nativeElement.focus()};h.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};h.handleAddItems=function(a){this.closeAddPopup(!0);this.addItems(a)};
h.addItems=function(a){if(a){var b=[];this.values=this.values||[];a=m(a.split(/[,; ]/));for(var c=a.next();!c.done;c=a.next())(c=c.value)&&!this.values.includes(c)&&b.push(c);b.length!==0&&(this.values=[].concat(q(this.values),q(b)),this.valueChange.emit({editField:null,newUsers:this.values}))}};C0.\u0275fac=function(a){return new (a||C0)};
C0.\u0275cmp=D({type:C0,selectors:[["b-multi-user-control"]],viewQuery:function(a,b){a&1&&(hg(MKd,5),hg(iH,5),hg(eB,5),hg(NKd,5));if(a&2){var c;lg(c=mg())&&(b.addLinkEl=c.first);lg(c=mg())&&(b.menuTriggers=c);lg(c=mg())&&(b.popupTriggers=c);lg(c=mg())&&(b.peopleKitDiv=c)}},inputs:{name:"name",title:"title",values:"values",users:"users",includeSelfActionDescription:"includeSelfActionDescription",includeSelfActionLongDescription:"includeSelfActionLongDescription",removeSelfActionDescription:"removeSelfActionDescription",
removeSelfActionLongDescription:"removeSelfActionLongDescription",collectionHovercardDescription:"collectionHovercardDescription",isSaving:"isSaving",iconName:"iconName",isCurrentUserInCollection:"isCurrentUserInCollection",isAllowedToEditCollection:"isAllowedToEditCollection",inputValidator:"inputValidator",checkAccessLimits:"checkAccessLimits",overlayPosition:"overlayPosition"},outputs:{valueChange:"valueChange",userInclusionToggle:"userInclusionToggle",toggleAccessLimits:"toggleAccessLimits"},
standalone:!1,decls:25,vars:17,consts:[["listActions",""],["textPopup",""],["addLink",""],["hovercard","onedevHovercard"],["removeButton",""],[1,"bv2-issue-metadata-list-field","bv2-issue-metadata-field",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],[1,"bv2-issue-metadata-field-inner"],[1,"bv2-editable-title"],[1,"list-field-content"],[3,"isExpanded","iconName","hasCompactTitleBar","ariaLabel","title"],[1,"flex-kids-x","flex-cross-axis-centered","flex-wrappable"],[1,
"bv2-field-user-action-footer"],["type","button","mat-button","","panelClass","bv2-add-item-bubble","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","dialogLabel","overlayPositions","matTooltip"],[4,"ngTemplateOutlet"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["mat-button","","href","https://developers.google.com/issue-tracker/references/glossary-of-fields","target","_blank",1,"primary"],[1,"value-action"],["tabindex",
"0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"disabled","matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],[3,"onAddItems","onCancel","actionName","inputValidator","isAllowedToEditCollection","title"],[1,"bv2-issue-metadata-list-item","list-field-user-container"],[3,"user","email","teamId","enableSmallChip","enableGroupIcon"],["type","button","aria-label","Open issue access dialog.",1,"unstyled",
"keep-focus-ring",3,"disabled"],["name","group_24px","size","small",1,"group-icon"],[3,"email"],["type","button","aria-label","Open issue access dialog.",1,"unstyled","keep-focus-ring",3,"click","disabled"],["size","small","name","edit_24px",1,"issue-metadata-field-edit-icon"],["type","button",1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"matTooltip"],["type","button",1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"click","matTooltip"]],template:function(a,b){a&1&&(E(0,OBb,
2,1,"ng-template",null,0,Mg)(2,PBb,3,4,"ng-template",null,1,Mg),K(4,"div",5)(5,"div",6)(6,"div",7)(7,"label"),Q(8),L()(),K(9,"div",8)(10,"collapsible-panel",9),Nf(11,WBb,7,4,"div",10,Lf),L(),K(13,"div",11,2),F(15,XBb,2,8,"button",12),E(16,YBb,1,0,"ng-container",13),L()()()(),K(17,"onedev-hovercard",null,3)(19,"div",14)(20,"div",15)(21,"span",16),Q(22),K(23,"a",17),Q(24,"Learn more."),L()()()()());if(a&2){a=qg(1);var c=qg(18);B(4);I("onedevHovercardTrigger",c)("onedevHovercardActive",!0)("onedevHovercardConfig",
b.USER_FIELD_HOVERCARD_CONFIG);B(4);S(" ",b.title," ");B(2);I("ariaLabel",$na("",b.title,", ",(b.values==null?null:b.values.length)||0," ",((b.values==null?null:b.values.length)||0)===1?"user":"users"))("title",Fg("",(b.values==null?null:b.values.length)||0," ",((b.values==null?null:b.values.length)||0)===1?"user":"users"))("isExpanded",!0)("iconName",b.iconName)("hasCompactTitleBar",!0);B();Of(b.values);B(4);G(b.isAllowedToEditCollection?15:-1);B();I("ngTemplateOutlet",a);B(6);S(" ",b.collectionHovercardDescription,
" ")}},dependencies:[Sx,KK,SK,gT,vK,nA,kB,gB,EV,gV,sT,eB,bB,aB,C_,Tx],styles:["xap-dialog-layout[_ngcontent-%COMP%]{padding:16px}xap-dialog-layout-content[_ngcontent-%COMP%]{padding:0}.bv2-editable-title[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{word-break:normal;overflow-wrap:anywhere}b-icon[_ngcontent-%COMP%]{margin-bottom:4px}.bv2-field-user-action-footer[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:max-content;display:flex}[_nghost-%COMP%]     b-icon.group-icon{width:12px;margin-top:1px}[_nghost-%COMP%]     b-icon.group-icon mat-icon{width:inherit}[_nghost-%COMP%]     b-icon.group-icon mat-icon svg{width:12px;height:16px}[_nghost-%COMP%]     b-icon.disabled-icon mat-icon svg{color:#bdc1c6;color:var(--text-disabled)}"]});var PKd=function(){};PKd.\u0275fac=function(a){return new (a||PKd)};PKd.\u0275mod=$e({type:PKd});PKd.\u0275inj=Fc({imports:[by]});var QKd=function(){};QKd.\u0275fac=function(a){return new (a||QKd)};QKd.\u0275mod=$e({type:QKd});QKd.\u0275inj=Fc({imports:[by,DX]});var D0=function(){};D0.\u0275fac=function(a){return new (a||D0)};D0.\u0275mod=$e({type:D0});D0.\u0275inj=Fc({imports:[PKd,by,DX,QKd]});var RKd=function(){};RKd.\u0275fac=function(a){return new (a||RKd)};RKd.\u0275mod=$e({type:RKd});RKd.\u0275inj=Fc({});var SKd=function(){};SKd.\u0275fac=function(a){return new (a||SKd)};SKd.\u0275mod=$e({type:SKd});SKd.\u0275inj=Fc({imports:[by,SI,DX,NV,ez,RKd]});var E0=function(){};E0.\u0275fac=function(a){return new (a||E0)};E0.\u0275mod=$e({type:E0});E0.\u0275inj=Fc({imports:[TU,WO,PV,D0,TK,iU,fV,wK,mB,FV,SKd,hV,GU,HV,GV,S_]});var F0=function(){};F0.\u0275fac=function(a){return new (a||F0)};F0.\u0275mod=$e({type:F0});F0.\u0275inj=Fc({imports:[TU,fV,WO,qV,D0,qU,iU,fV,hV,O_]});var TKd=function(){};TKd.\u0275fac=function(a){return new (a||TKd)};TKd.\u0275mod=$e({type:TKd});TKd.\u0275inj=Fc({imports:[WO,H_,I_,z_,qV,DE,mB,lL,WJ,zU,wK,qU,M_,K_,TK,jU,yX,PV,HU,E0,S_,B0,F0,eU,hV,bB]});noa(GY,[Jy,xY,oV,kB,gB,vK,nA,pU,OV,C0,u0,n_,r_,A_,E_,D_],[Tx]);var UKd=function(){};UKd.\u0275fac=function(a){return new (a||UKd)};UKd.\u0275mod=$e({type:UKd});UKd.\u0275inj=Fc({});var VKd=function(){};VKd.\u0275fac=function(a){return new (a||VKd)};VKd.\u0275mod=$e({type:VKd});VKd.\u0275inj=Fc({imports:[WO]});var G0=function(){};G0.\u0275fac=function(a){return new (a||G0)};G0.\u0275mod=$e({type:G0});G0.\u0275inj=Fc({imports:[WO,mB,Sz]});var H0=function(){};H0.\u0275fac=function(a){return new (a||H0)};H0.\u0275mod=$e({type:H0});H0.\u0275inj=Fc({imports:[ez,eZ,by,jZ,SI,Ly,Wz,hZ]});var WKd=function(){};WKd.\u0275fac=function(a){return new (a||WKd)};WKd.\u0275mod=$e({type:WKd});WKd.\u0275inj=Fc({imports:[WO,CZ,CU,wV,G0,GU,mB,TJ,wK,TK,H0,hV,eU,eX]});var I0=function(){};I0.\u0275fac=function(a){return new (a||I0)};I0.\u0275mod=$e({type:I0});I0.\u0275inj=Fc({imports:[WO,WJ,mB,TJ,iK,UD,pK,wK,LX,HU,lL,DE,eX]});var J0=function(){};J0.\u0275fac=function(a){return new (a||J0)};J0.\u0275mod=$e({type:J0});J0.\u0275inj=Fc({imports:[WKd,UKd,WO,CZ,VKd,GU,mB,wK,I0,eX]});var XKd=function(){var a=this;this.useExperimentalOrcasAgent=!1;this.isDarkMode=ng.apply(null,[!1].concat(q([])));this.query=ng.apply(null,[""].concat(q([])));this.isLoading=ng.apply(null,[!0].concat(q([])));this.destroyRef=p(Ce);this.darkModeService=p(DW);this.llmChatService=p(uZ);this.contextValues$=this.llmChatService.contextValuesForDuckieRag$;p(Iy).setDefaultFontSetClass("material-icons");this.darkModeService.clientDarkmode$.pipe(Tj(this.destroyRef)).subscribe(function(b){a.isDarkMode.set(b)})};
XKd.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.isLoading.set(!1)},250)};XKd.\u0275fac=function(a){return new (a||XKd)};
XKd.\u0275cmp=D({type:XKd,selectors:[["gpp-chat"]],standalone:!1,decls:1,vars:1,consts:[[3,"useExperimentalOrcasAgent","isDarkMode","query","contextValues"]],template:function(a,b){a&1&&F(0,aCb,2,6,"gpp-agent-chat",0);a&2&&G(b.isLoading()?-1:0)},dependencies:[AM,Tx],styles:['@import url(https://fonts.googleapis.com/icon?family=Material+Icons);@import url(https://fonts.googleapis.com/css2?family=Google+Symbols);[_nghost-%COMP%]     .full-width{width:100%}[_nghost-%COMP%]     .full-height{height:100%}[_nghost-%COMP%]     body .bg-page-bg{background-color:var(--page-bg)}[_nghost-%COMP%]     body .bg-surface-default{background-color:var(--surface-default)}[_nghost-%COMP%]     body .bg-surface-container{background-color:var(--surface-container)}[_nghost-%COMP%]     body .bg-primary-container{background-color:var(--primary-container)}[_nghost-%COMP%]     .bordered{border:1px solid var(--hairline)}[_nghost-%COMP%]     .border-bottom{border-bottom:1px solid var(--hairline)}[_nghost-%COMP%]     .border-top{border-top:1px solid var(--hairline)}[_nghost-%COMP%]     body .text-secondary{color:var(--text-secondary)}[_nghost-%COMP%]     body .text-high-contrast{color:var(--text-high-contrast)}[_nghost-%COMP%]     .italic{font-style:italic}[_nghost-%COMP%]     .bold{font-weight:700}[_nghost-%COMP%]     .medium{font-weight:500}[_nghost-%COMP%]     .font-google-sans{font-family:Google Sans,sans-serif}[_nghost-%COMP%]     .font-roboto{font-family:Roboto,sans-serif}[_nghost-%COMP%]     .type-s{font-size:calc(var(--base-px, 1rem)*13)}[_nghost-%COMP%]     .type-xs{font-size:calc(var(--base-px, 1rem)*12)}[_nghost-%COMP%]     .text-center{text-align:center}[_nghost-%COMP%]     .font-google-sans-text{font-family:Google Sans Text,Helvetica,Arial}[_nghost-%COMP%]     .font-google-symbols{font-family:Google Symbols}[_nghost-%COMP%]     .rounded{border-radius:16px}[_nghost-%COMP%]     .rounded-full{border-radius:10000px}[_nghost-%COMP%]     .rounded-s{border-radius:8px}[_nghost-%COMP%]     .rounded-xs{border-radius:4px}[_nghost-%COMP%]     .flex-column{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}[_nghost-%COMP%]     .flex-row{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%]     .flex-row-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}[_nghost-%COMP%]     .flex-spacer{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}[_nghost-%COMP%]     .align-items-center{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}[_nghost-%COMP%]     .align-items-flex-start{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}[_nghost-%COMP%]     .align-self-center{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}[_nghost-%COMP%]     .justify-content-flex-end{-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[_nghost-%COMP%]     .justify-content-space-between{-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}[_nghost-%COMP%]     .justify-content-center{-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}[_nghost-%COMP%]     .gap{gap:16px}[_nghost-%COMP%]     .gap-s{gap:8px}[_nghost-%COMP%]     .gap-xs{gap:4px}[_nghost-%COMP%]     .spacer{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}[_nghost-%COMP%]     .margin{margin:16px}[_nghost-%COMP%]     .margin-top{margin-top:16px}[_nghost-%COMP%]     .margin-s-top{margin-top:8px}[_nghost-%COMP%]     .margin-xs-top{margin-top:4px}[_nghost-%COMP%]     .margin-bottom{margin-bottom:16px}[_nghost-%COMP%]     .margin-s-bottom{margin-bottom:8px}[_nghost-%COMP%]     .margin-xs-bottom{margin-bottom:4px}[_nghost-%COMP%]     .margin-left{margin-left:16px}[_nghost-%COMP%]     .margin-s-left{margin-left:8px}[_nghost-%COMP%]     .margin-xs-left{margin-left:4px}[_nghost-%COMP%]     .margin-right{margin-right:16px}[_nghost-%COMP%]     .margin-s-right{margin-right:8px}[_nghost-%COMP%]     .margin-xs-right{margin-right:4px}[_nghost-%COMP%]     .margin-y{margin-top:16px;margin-bottom:16px}[_nghost-%COMP%]     .margin-s-y{margin-top:8px;margin-bottom:8px}[_nghost-%COMP%]     .margin-xs-y{margin-top:4px;margin-bottom:4px}[_nghost-%COMP%]     .margin-x{margin-left:16px;margin-right:16px}[_nghost-%COMP%]     .margin-s-x{margin-left:8px;margin-right:8px}[_nghost-%COMP%]     .margin-auto-y{margin-top:auto;margin-bottom:auto}[_nghost-%COMP%]     .margin-auto-x{margin-left:auto;margin-right:auto}[_nghost-%COMP%]     .padded{padding:16px}[_nghost-%COMP%]     .padded-s{padding:8px}[_nghost-%COMP%]     .padded-xs{padding:4px}[_nghost-%COMP%]     .padded-xxs{padding:2px}[_nghost-%COMP%]     .padded-top{padding-top:16px}[_nghost-%COMP%]     .padded-s-top{padding-top:8px}[_nghost-%COMP%]     .padded-xs-top{padding-top:4px}[_nghost-%COMP%]     .padded-s-y{padding-bottom:8px;padding-top:8px}[_nghost-%COMP%]     .padded-xs-x{padding-left:4px;padding-right:4px}[_nghost-%COMP%]     .padded-s-x{padding-left:8px;padding-right:8px}[_nghost-%COMP%]     .padded-m-left{padding-left:24px}[_nghost-%COMP%]     .padded-left{padding-left:16px}[_nghost-%COMP%]     .padded-s-left{padding-left:8px}[_nghost-%COMP%]     .padded-xs-left{padding-left:4px}[_nghost-%COMP%]     .padded-right{padding-right:16px}[_nghost-%COMP%]     .padded-s-right{padding-right:8px}[_nghost-%COMP%]     .padded-xs-bottom{padding-bottom:4px}[_nghost-%COMP%]     .padded-s-bottom{padding-bottom:8px}[_nghost-%COMP%]     .width-almost-full{width:90%}[_nghost-%COMP%]     body .gmat-mdc-button.mat-mdc-button-base.small{--mat-icon-button-state-layer-size:24px;--mat-icon-button-icon-size:24px;line-height:24px}[_nghost-%COMP%]     body .gmat-mdc-button.mat-mdc-button-base.medium{--mat-icon-button-state-layer-size:32px;--mat-icon-button-icon-size:32px;line-height:32px}[_nghost-%COMP%]     body .mat-icon-button.small{width:24px;height:24px;line-height:24px}[_nghost-%COMP%]     body .mat-icon-button.medium{width:32px;height:32px;line-height:32px}[_nghost-%COMP%]     body .icon-s, [_nghost-%COMP%]     body .icon-s>mat-icon{width:calc(var(--base-px, 1rem)*18);height:calc(var(--base-px, 1rem)*18);font-size:calc(var(--base-px, 1rem)*18)}[_nghost-%COMP%]     body .icon-m, [_nghost-%COMP%]     body .icon-m>mat-icon{width:calc(var(--base-px, 1rem)*20);height:calc(var(--base-px, 1rem)*20);font-size:calc(var(--base-px, 1rem)*20)}[_nghost-%COMP%]     .citation-chip{height:18px;margin-left:6px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[_nghost-%COMP%]     .citation-chip span{font-family:Google Sans;font-size:calc(var(--base-px, 1rem)*11);font-weight:500;margin-right:10px}[_nghost-%COMP%]     .citation-chip mat-icon{font-size:15px;height:15px;width:15px}[_nghost-%COMP%]     .dark-mode, [_nghost-%COMP%]     .light-mode, [_nghost-%COMP%]     :root{--gm3-border-radius:16px;--mat-app-elevation-shadow-level-8:0 5px 5px -3px var(--elevation),0 8px 10px 1px var(--elevation),0 3px 14px 2px var(--elevation);--mat-fab-extended-container-shape:var(--gm3-border-radius);--mat-button-filled-container-shape:var(--gm3-border-radius);--mat-button-outlined-container-shape:var(--gm3-border-radius);--mat-button-protected-container-shape:var(--gm3-border-radius);--mat-button-text-container-shape:var(--gm3-border-radius);--mat-fab-extended-container-height:56px;--mat-fab-disabled-state-container-color:var(--button-disabled-bg);--mat-fab-disabled-state-foreground-color:var(--button-disabled-text);--mat-form-field-outlined-label-text-color:var(--text-default);--mat-form-field-outlined-input-text-color:var(--text-default);--mat-form-field-outlined-outline-color:var(--hairline);--mat-form-field-outlined-focus-outline-color:var(--primary-default);--mat-form-field-outlined-focus-label-text-color:var(--primary-default);--mat-form-field-outlined-hover-outline-color:var(--text-high-contrast);--mat-form-field-outlined-hover-label-text-color:var(--text-high-contrast)}[_nghost-%COMP%]     .dark-mode .gmat-mdc-list, [_nghost-%COMP%]     .light-mode .gmat-mdc-list, [_nghost-%COMP%]     :root .gmat-mdc-list{--mat-list-list-item-disabled-label-text-color:var(--text-secondary);--mat-list-list-item-label-text-font:Google Sans,Roboto;--mat-list-list-item-label-text-weight:500}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill, [_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill.mat-mdc-extended-fab{background-color:var(--primary-container);color:var(--on-primary-container);box-shadow:none}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill.mat-mdc-extended-fab:focus, [_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill.mat-mdc-extended-fab:hover, [_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill:focus, [_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill:hover{box-shadow:0 0 8px 0 var(--elevation)}[_nghost-%COMP%]     .cdk-overlay-container .mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-below{pointer-events:none}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-button-base{white-space:nowrap}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-button-base .mat-mdc-button-touch-target{width:100%;height:100%}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-button-base.mat-mdc-icon-button{padding:0}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-button-base.mat-mdc-icon-button .mat-icon{vertical-align:middle}[_nghost-%COMP%]     .google-material-icons{font-family:Google Symbols}[_nghost-%COMP%]     .mat-icon{height:24rem;width:24rem}[_nghost-%COMP%]     .material-icons{font-size:24rem}[_nghost-%COMP%]     .mat-tooltip:not(false){line-height:120%;font-size:10rem}[_nghost-%COMP%]     .mat-button-toggle.mat-button-toggle{--mat-button-toggle-legacy-label-text-size:16rem}[_nghost-%COMP%]     .mat-slide-toggle .mat-slide-toggle-bar{background-color:var(--slider-off);box-shadow:inset 0 0 3px var(--elevation)}[_nghost-%COMP%]     .mat-slide-toggle.mat-accent.mat-checked .mat-slide-toggle-bar, [_nghost-%COMP%]     .mat-slide-toggle.mat-checked .mat-slide-toggle-bar, [_nghost-%COMP%]     .mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:var(--slider-toggle-track)}[_nghost-%COMP%]     .mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:var(--slider-toggle-track-warn)}[_nghost-%COMP%]     .mat-form-field-appearance-fill .mat-form-field-flex{background-color:var(--input-field-bg)}[_nghost-%COMP%]     .mat-form-field-appearance-fill.mat-form-field-disabled .mat-icon, [_nghost-%COMP%]     .mat-form-field-appearance-fill.mat-form-field-disabled .mat-icon-button{color:var(--text-disabled)}[_nghost-%COMP%]     .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{color:var(--text-disabled);background-color:var(--input-field-disabled-bg)}[_nghost-%COMP%]     .mat-icon-button:not([color]){color:var(--icon)}[_nghost-%COMP%]     .mat-icon-button[disabled=true]{color:var(--button-disabled-text)}[_nghost-%COMP%]     .mat-icon-button:not([disabled]):hover .mat-button-focus-overlay{opacity:.08}[_nghost-%COMP%]     .gmat-button .mat-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button .mat-flat-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button .mat-raised-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button .mat-stroked-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button.mat-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button.mat-flat-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button.mat-raised-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button.mat-stroked-button:not(boost-specificity), [_nghost-%COMP%]     .mat-button:not(boost-specificity), [_nghost-%COMP%]     .mat-flat-button:not(boost-specificity), [_nghost-%COMP%]     .mat-raised-button:not(boost-specificity), [_nghost-%COMP%]     .mat-stroked-button:not(boost-specificity){padding:0 16px;line-height:28px}[_nghost-%COMP%]     .gmat-button .mat-flat-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button .mat-raised-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button.mat-flat-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button.mat-raised-button:not([disabled]):not(false){color:var(--text-inverse)}[_nghost-%COMP%]     .gmat-button .mat-stroked-button.mat-warn:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button .mat-stroked-button.mat-warn:not(false), [_nghost-%COMP%]     .gmat-button .mat-stroked-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button .mat-stroked-button:not(false), [_nghost-%COMP%]     .gmat-button.mat-stroked-button.mat-warn:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button.mat-stroked-button.mat-warn:not(false), [_nghost-%COMP%]     .gmat-button.mat-stroked-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button.mat-stroked-button:not(false){border-color:var(--hairline)}[_nghost-%COMP%]     .gmat-button .mat-flat-button.mat-warn:not([disabled]), [_nghost-%COMP%]     .gmat-button .mat-raised-button.mat-warn:not([disabled]), [_nghost-%COMP%]     .gmat-button.mat-flat-button.mat-warn:not([disabled]), [_nghost-%COMP%]     .gmat-button.mat-raised-button.mat-warn:not([disabled]){color:var(--text-inverse)}[_nghost-%COMP%]     .mat-slider-horizontal .mat-slider-ticks{background-image:-webkit-repeating-linear-gradient(left,var(--base-fg),var(--base-fg) 2px,transparent 0,transparent);background-image:repeating-linear-gradient(to right,var(--base-fg),var(--base-fg) 2px,transparent 0,transparent)}[_nghost-%COMP%]     .mat-tab-group.mat-background-accent .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-accent .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-primary .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-primary .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-warn .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-warn .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-accent .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-accent .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-primary .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-primary .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-warn .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-warn .mat-tab-link.mat-tab-disabled .mat-tab-label-content{opacity:.4}[_nghost-%COMP%]     .gmat-tabs.mat-primary .mat-tab-label.mat-tab-label-active, [_nghost-%COMP%]     .gmat-tabs.mat-primary .mat-tab-link.mat-tab-label-active{color:var(--primary-default)}[_nghost-%COMP%]     .mat-button-toggle-group{--mat-button-toggle-legacy-text-color:var(--text-default);--mat-button-toggle-legacy-disabled-state-text-color:var(--button-disabled-text);--mat-button-toggle-legacy-disabled-state-background-color:transparent;--mat-button-toggle-legacy-disabled-selected-state-background-color:var(--hover);--mat-button-toggle-legacy-selected-state-background-color:var(--button-selected);--mat-button-toggle-legacy-selected-state-text-color:var(--text-default);--mat-button-toggle-legacy-state-layer-color:var(--button-focused-bg);--mat-button-toggle-text-color:var(--text-default);--mat-button-toggle-background-color:var(--surface-default);--mat-button-toggle-disabled-state-text-color:var(--button-disabled-text);--mat-button-toggle-disabled-state-background-color:transparent;--mat-button-toggle-disabled-selected-state-background-color:var(--hover);--mat-button-toggle-disabled-selected-state-text-color:var(--button-disabled-text);--mat-button-toggle-selected-state-background-color:var(--button-selected);--mat-button-toggle-selected-state-text-color:var(--text-default);--mat-button-toggle-state-layer-color:var(--button-focused-bg);--mat-button-toggle-divider-color:var(--hairline)}[_nghost-%COMP%]     .mat-button-toggle.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:none}[_nghost-%COMP%]     .mat-button-toggle-group-appearance-standard{--elevation:transparent}[_nghost-%COMP%]     .mat-button-toggle-group.mat-button-toggle-group:not([class*=mat-elevation-z]), [_nghost-%COMP%]     .mat-button-toggle-standalone.mat-button-toggle-standalone:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px var(--elevation),0 2px 2px 0 var(--elevation),0 1px 5px 0 var(--elevation)}[_nghost-%COMP%]     .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical), [_nghost-%COMP%]     .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical), [_nghost-%COMP%]     .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--button-selected)}[_nghost-%COMP%]     .mat-snack-bar-container{background:var(--snackbar-background);color:var(--snackbar-text)}[_nghost-%COMP%]     .mat-simple-snackbar-action{color:var(--snackbar-action-text)}[_nghost-%COMP%]     .mat-tooltip:not(boost-specificity){background:var(--tooltip-bg);color:var(--text-inverse)}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity) .mat-progress-bar-background{fill:var(--primary-default);opacity:.4}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity) .mat-progress-bar-buffer{background-color:var(--page-bg)}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity) .mat-progress-bar-buffer:after{content:"";display:block;height:8em;background:var(--primary-default);opacity:.4}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity).mat-warn .mat-progress-bar-background{fill:var(--warn-default);opacity:.4}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity).mat-warn .mat-progress-bar-buffer{background-color:var(--page-bg)}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity).mat-warn .mat-progress-bar-buffer:after{content:"";display:block;height:8em;background:var(--warn-default);opacity:.4}[_nghost-%COMP%]     a, [_nghost-%COMP%]     a:visited{color:var(--primary-default);text-decoration:none}[_nghost-%COMP%]     .gmat-elevation-z0, [_nghost-%COMP%]     .mat-elevation-z0{border:1px solid var(--hairline);box-shadow:0 0 0 0 var(--elevation),0 0 0 0 var(--elevation);--mat-app-elevation-shadow-level-0:0px 0px 0px 0px var(--elevation),0px 0px 0px 0px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z1, [_nghost-%COMP%]     .mat-elevation-z1{box-shadow:0 1px 2px 0 var(--elevation),0 1px 3px 1px var(--elevation);--mat-app-elevation-shadow-level-1:0px 1px 2px 0px var(--elevation),0px 1px 3px 1px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z2, [_nghost-%COMP%]     .mat-elevation-z2{box-shadow:0 1px 2px 0 var(--elevation),0 2px 6px 2px var(--elevation);--mat-app-elevation-shadow-level-2:0px 1px 2px 0px var(--elevation),0px 2px 6px 2px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z3, [_nghost-%COMP%]     .mat-elevation-z3{box-shadow:0 1px 3px 0 var(--elevation),0 4px 8px 3px var(--elevation);--mat-app-elevation-shadow-level-3:0px 1px 3px 0px var(--elevation),0px 4px 8px 3px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z4, [_nghost-%COMP%]     .mat-elevation-z4{box-shadow:0 2px 3px 0 var(--elevation),0 6px 10px 4px var(--elevation);--mat-app-elevation-shadow-level-4:0px 2px 3px 0px var(--elevation),0px 6px 10px 4px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z5, [_nghost-%COMP%]     .mat-elevation-z5{box-shadow:0 4px 4px 0 var(--elevation),0 8px 12px 6px var(--elevation);--mat-app-elevation-shadow-level-5:0px 4px 4px 0px var(--elevation),0px 8px 12px 6px var(--elevation)}[_nghost-%COMP%]     .cdk-overlay-backdrop.cdk-overlay-dark-backdrop{background:var(--overlay-backdrop)}[_nghost-%COMP%]     .mat-stepper-horizontal, [_nghost-%COMP%]     .mat-stepper-vertical{--mat-stepper-header-icon-foreground-color:var(--text-inverse);--mat-stepper-header-selected-state-icon-background-color:var(--primary-default);--mat-stepper-header-selected-state-icon-foreground-color:var(--text-inverse);--mat-stepper-header-done-state-icon-background-color:var(--primary-default);--mat-stepper-header-done-state-icon-foreground-color:var(--text-inverse);--mat-stepper-header-edit-state-icon-background-color:var(--primary-default);--mat-stepper-header-edit-state-icon-foreground-color:var(--text-inverse);--mat-stepper-container-color:var(--surface-default);--mat-stepper-line-color:var(--hairline);--mat-stepper-header-hover-state-layer-color:var(--hover);--mat-stepper-header-focus-state-layer-color:var(--hover);--mat-stepper-header-label-text-color:var(--text-secondary);--mat-stepper-header-optional-label-text-color:var(--text-secondary);--mat-stepper-header-selected-state-label-text-color:var(--text-default);--mat-stepper-header-error-state-label-text-color:var(--warn-default);--mat-stepper-header-icon-background-color:var(--text-secondary);--mat-stepper-header-error-state-icon-foreground-color:var(--warn-default);--mat-stepper-header-error-state-icon-background-color:transparent}[_nghost-%COMP%]     .mat-expansion-panel{--mat-expansion-container-background-color:var(--surface-default);--mat-expansion-container-text-color:var(--text-default);--mat-expansion-header-text-color:var(--text-default);--mat-expansion-header-description-color:var(--text-secondary);--mat-expansion-header-indicator-color:var(--text-secondary)}[_nghost-%COMP%]     .mat-expansion-panel.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px var(--elevation),0 2px 2px 0 var(--elevation),0 1px 5px 0 var(--elevation)}[_nghost-%COMP%]     .mat-drawer-container{--mat-sidenav-content-background-color:var(--page-bg);--mat-sidenav-content-text-color:var(--text-default);--mat-sidenav-container-background-color:var(--surface-default);--mat-sidenav-container-text-color:var(--text-default);--mat-sidenav-container-divider-color:var(--hairline)}[_nghost-%COMP%]     .mat-drawer-container .mat-drawer-backdrop.mat-drawer-shown{background-color:var(--surface-default);opacity:.6}[_nghost-%COMP%]     .mat-bottom-sheet-container{--mat-bottom-sheet-container-background-color:var(--surface-default);--mat-bottom-sheet-container-text-color:var(--text-default)}[_nghost-%COMP%]     .mat-bottom-sheet-container.mat-bottom-sheet-container{box-shadow:0 8px 10px -5px var(--elevation),0 16px 24px 2px var(--elevation),0 6px 30px 5px var(--elevation)}[_nghost-%COMP%]     .mat-toolbar{--mat-toolbar-container-background-color:var(--app-bar-bg);--mat-toolbar-container-text-color:var(--text-default)}[_nghost-%COMP%]     .mat-badge-content{--mat-badge-background-color:var(--primary-default);--mat-badge-text-color:var(--text-inverse)}[_nghost-%COMP%]     .mat-badge-warn .mat-badge-content{--mat-badge-background-color:var(--warn-default)}[_nghost-%COMP%]     .mat-divider{--mat-divider-color:var(--hairline)}[_nghost-%COMP%]     .mat-date-range-input{--mat-datepicker-range-input-separator-color:var(--text-default);--mat-datepicker-range-input-disabled-state-separator-color:var(--text-disabled);--mat-datepicker-range-input-disabled-state-text-color:var(--text-disabled)}[_nghost-%COMP%]     .mat-calendar{--mat-datepicker-calendar-date-text-color:var(--text-default);--mat-datepicker-calendar-period-button-text-color:var(--text-default);--mat-datepicker-calendar-period-button-icon-color:var(--icon);--mat-datepicker-calendar-navigation-button-icon-color:var(--icon);--mat-datepicker-calendar-header-text-color:var(--text-secondary);--mat-datepicker-calendar-body-label-text-color:var(--text-secondary);--mat-datepicker-calendar-date-today-outline-color:var(--hint-text);--mat-datepicker-calendar-date-today-disabled-state-outline-color:var(--text-disabled);--mat-datepicker-calendar-date-selected-state-background-color:var(--primary-default);--mat-datepicker-calendar-date-selected-state-text-color:var(--text-inverse);--mat-datepicker-calendar-date-today-selected-state-outline-color:var(--text-inverse);--mat-datepicker-calendar-date-focus-state-background-color:var(--button-selected);--mat-datepicker-calendar-date-hover-state-background-color:var(--button-selected);--mat-datepicker-calendar-header-divider-color:var(--hairline)}[_nghost-%COMP%]     .mat-datepicker-content{--mat-datepicker-calendar-container-background-color:var(--surface-default);--mat-datepicker-calendar-container-text-color:var(--text-default)}[_nghost-%COMP%]     .mat-datepicker-popup .mat-datepicker-content{box-shadow:0 2px 4px -1px var(--elevation),0 4px 5px 0 var(--elevation),0 1px 10px 0 var(--elevation)}[_nghost-%COMP%]     .mat-datepicker-toggle{--mat-datepicker-toggle-icon-color:var(--icon);--mat-datepicker-toggle-active-state-icon-color:var(--primary-default)}[_nghost-%COMP%]     .mat-tree{--mat-tree-container-background-color:var(--surface-default);--mat-tree-node-text-color:var(--text-default)}[_nghost-%COMP%]     .mat-pseudo-checkbox{--mat-pseudo-checkbox-full-selected-icon-color:var(--primary-default);--mat-pseudo-checkbox-full-selected-checkmark-color:var(--page-bg);--mat-pseudo-checkbox-full-unselected-icon-color:var(--text-secondary);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color:var(--page-bg);--mat-pseudo-checkbox-minimal-selected-checkmark-color:var(--primary-default)}[_nghost-%COMP%]     html{--base-px:1px}[_nghost-%COMP%]     .mat-icon{height:24px;width:24px}[_nghost-%COMP%]     .material-icons{font-size:24px}[_nghost-%COMP%]     .gpp-agent-container .container{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}[_nghost-%COMP%]     .gpp-agent-container .container .gpp-agent-container .chat-container .container .reminder-blurb{padding:12px}[_nghost-%COMP%]     .gpp-agent-container .container>.onboarding, [_nghost-%COMP%]     .gpp-agent-container .container>.thread{box-shadow:none;margin:0;border:0 none}[_nghost-%COMP%]     .gpp-agent-container .container>.onboarding .onboarding-section, [_nghost-%COMP%]     .gpp-agent-container .container>.onboarding .thread-heading, [_nghost-%COMP%]     .gpp-agent-container .container>.thread .onboarding-section, [_nghost-%COMP%]     .gpp-agent-container .container>.thread .thread-heading{padding-left:0;padding-right:0}[_nghost-%COMP%]     .gpp-agent-container .container .use-compact-view.is-user{padding:8px 12px}[_nghost-%COMP%]     .gpp-agent-container .container .message-text.raw-text-only{-webkit-padding-after:0;padding-block-end:0}[_nghost-%COMP%]     .gpp-agent-container .container .message-actions{margin:0}[_nghost-%COMP%]{display:block;height:100%}gpp-agent-chat[_ngcontent-%COMP%]{display:block;height:100%}'],changeDetection:0});var K0=function(){BA.apply(this,arguments)};Y(K0,BA);
K0.prototype.navigate=function(a,b){var c=AEc(a),d=Object.assign({},this.state$.value.params),e=Object.assign({},this.state$.value.queryParams),f=this.state$.value.activeView;if(a.length>0){var g=a[0];if(typeof g==="string")if(g.includes("thread")&&a.length>1&&typeof a[1]==="string")d.id=a[1],f=2;else{if(g.includes("new")){if(this.state$.value.activeView===1)return Promise.resolve(!1);d={}}else g.includes("thread")&&a.length===1&&(d={});f=1}}if(b==null?0:b.queryParams){e=b.queryParamsHandling==="merge"?
Object.assign({},e,b.queryParams):Object.assign({},b.queryParams);for(var k in e)e[k]==null&&delete e[k]}this.events$.next(new gr(this.state$.value.params.id||0,c));this.state$.next({params:d,queryParams:e,activeView:f});this.events$.next(new Pj(this.state$.value.params.id||0,c,c));return Promise.resolve(!0)};var oMa=function(a,b,c){return a.navigate(["/thread",b],c)},zIc=function(a){return a.navigate(["/new"],void 0)};K0.prototype.getPrefix=function(){return""};
da.Object.defineProperties(K0.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.state$.pipe(A(function(a){return a.params}))}},queryParams:{configurable:!0,enumerable:!0,get:function(){return this.state$.pipe(A(function(a){return a.queryParams}))}},snapshot:{configurable:!0,enumerable:!0,get:function(){var a=this.state$.value;return{params:a.params,queryParams:a.queryParams}}},events:{configurable:!0,enumerable:!0,get:function(){return this.events$.asObservable()}}});
K0.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(K0)))(b||K0)}}();K0.\u0275prov=Dc({token:K0,factory:K0.\u0275fac,providedIn:"root"});var L0=function(){};Y(L0,OJ);L0.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(L0)))(b||L0)}}();L0.\u0275prov=Dc({token:L0,factory:L0.\u0275fac,providedIn:"root"});var M0=function(){iC.apply(this,arguments);this.lastDuckieResponse$=new Mj(void 0);this.currentThread$=new Mj(void 0);this.newThread$=new Mj(!1)};Y(M0,iC);M0.prototype.setParentIntegrator=function(a){this.hasParentIntegratorValue=a};var HOc=function(a,b){return y(function(c){a.lastDuckieResponse$.next(b);ae(c)})},nOc=function(a,b){y(function(c){a.currentThread$.next(b);ae(c)})};M0.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(M0)))(b||M0)}}();
M0.\u0275prov=Dc({token:M0,factory:M0.\u0275fac,providedIn:"root"});var YKd=new dd("@ngrx/effects Internal Root Guard"),ZKd=new dd("@ngrx/effects User Provided Effects"),kCb=new dd("@ngrx/effects Internal Root Effects"),$Kd=new dd("@ngrx/effects Internal Root Effects Instances");new dd("@ngrx/effects Internal Feature Effects");new dd("@ngrx/effects Internal Feature Effects Instance Groups");var aLd=new dd("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:function(){return gCb}});var N0=function(a,b){qf.call(this);this.errorHandler=a;this.effectsErrorHandler=b};Y(N0,qf);N0.create=qf.create;N0.prototype.addEffects=function(a){this.next(a)};
var bLd=function(a){return a.pipe(ola(function(b){return b.constructor&&b.constructor.name!=="Object"&&b.constructor.name!=="Function"?Object.getPrototypeOf(b):b}),ke(function(b){return b.pipe(ola(hCb))}),ke(function(b){var c=b.pipe(lla(function(d){return iCb(a.errorHandler,a.effectsErrorHandler)(d)}),A(function(d){if(d.notification.kind==="N"){var e=d.notification.value;if(typeof e==="function"||!e||!e.type||typeof e.type!=="string"){var f=d.propertyName;var g=d.sourceInstance;var k=d.sourceName;
g=typeof g[f]==="function";f=k?'"'+k+"."+String(f)+(g?"()":"")+'"':'"'+String(f)+'()"';try{var l=JSON.stringify(e)}catch(r){l=e}a.errorHandler.handleError(Error("eg`"+f+"`"+l))}}return d.notification}),ue(function(d){return d.kind==="N"&&d.value!=null}),hla());b=b.pipe(lf(1),ue(fCb),A(function(d){return d.ngrxOnInitEffects()}));return te(c,b)}))};N0.\u0275fac=function(a){return new (a||N0)(Xc(ux),Xc(aLd))};N0.\u0275prov=Dc({token:N0,factory:N0.\u0275fac,providedIn:"root"});Uj("@ngrx/effects/init");var Et=function(a,b){this.effectSources=a;this.store=b;this.effectsSubscription=null};Et.prototype.start=function(){this.effectsSubscription||(this.effectsSubscription=bLd(this.effectSources).subscribe(this.store))};Et.prototype.ngOnDestroy=function(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)};Et.\u0275fac=function(a){return new (a||Et)(Xc(N0),Xc(AF))};Et.\u0275prov=Dc({token:Et,factory:Et.\u0275fac,providedIn:"root"});var O0=function(a,b,c,d){this.sources=a;b.start();b=m(d);for(d=b.next();!d.done;d=b.next())a.addEffects(d.value);c.dispatch({type:"@ngrx/effects/init"})};O0.prototype.addEffects=function(a){this.sources.addEffects(a)};O0.\u0275fac=function(a){return new (a||O0)(Xc(N0),Xc(Et),Xc(AF),Xc($Kd),Xc(BF,8),Xc(CF,8),Xc(YKd,8))};O0.\u0275mod=$e({type:O0});O0.\u0275inj=Fc({});var cLd=function(){};cLd.\u0275fac=function(a){return new (a||cLd)};cLd.\u0275mod=$e({type:cLd});var dLd,eLd=[],fLd=eLd.concat,gLd,hLd={},P0=void 0;hLd=hLd===void 0?{}:hLd;P0=P0===void 0?{}:P0;
gLd=[{provide:TRc,useFactory:function(){p(AF,{optional:!0,skipSelf:!0});return"guarded"}},{provide:URc,useValue:P0.initialState},{provide:VRc,useFactory:Xya,deps:[URc]},{provide:ZRc,useValue:hLd},{provide:aSc,useExisting:hLd instanceof dd?hLd:ZRc},{provide:YRc,deps:[ZRc,[new Eyc(aSc)]],useFactory:function(a){return a instanceof dd?p(a):a}},{provide:gSc,useValue:P0.metaReducers?P0.metaReducers:[]},{provide:iSc,deps:[hSc,gSc],useFactory:function(a,b){return a.concat(b)}},{provide:XRc,useValue:P0.reducerFactory?
P0.reducerFactory:Gya},{provide:WRc,deps:[XRc,iSc],useFactory:Jya},SRc,rSc,sSc,uSc,wSc,[{provide:kSc,useValue:P0.runtimeChecks},{provide:jSc,useFactory:function(a){return a},deps:[kSc]},{provide:Tya,deps:[jSc],useFactory:function(){return{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}},{provide:hSc,multi:!0,deps:[Tya],useFactory:function(a){var b=a.strictActionImmutability;
var c=a.strictStateImmutability;return function(d){return b||c?Mya(d,{action:function(e){return b&&!e.type.startsWith("@ngrx")},state:function(){return c}}):d}}},{provide:hSc,multi:!0,deps:[Tya],useFactory:function(a){var b=a.strictActionSerializability;var c=a.strictStateSerializability;return function(d){return b||c?Rya(d,{action:function(e){return b&&!e.type.startsWith("@ngrx")},state:function(){return c}}):d}}},{provide:hSc,multi:!0,deps:[Tya],useFactory:function(a){var b=a.strictActionWithinNgZone;
return function(c){return b?Oya(c,{action:function(d){return b&&!d.type.startsWith("@ngrx")}}):c}}}],Vya()];dLd={ngModule:BF,providers:fLd.call(eLd,q(gLd))};
cLd.\u0275inj=Fc({providers:[{provide:GEc,useValue:14},{provide:qA,useExisting:BM},{provide:iC,useExisting:M0},{provide:BA,useExisting:K0},{provide:OJ,useExisting:L0}],imports:[WO,AM,dLd,function(){var a=$c.apply(0,arguments).flat(),b=a.filter(cCb);return{ngModule:O0,providers:[b,{provide:kCb,useValue:[a]},{provide:YKd,useFactory:lCb},{provide:ZKd,multi:!0,useValue:[]},{provide:$Kd,useFactory:jCb,deps:[kCb,ZKd]}]}}([])]});var iLd=function(){this.appEvents=p(UO);this.llmChatService=p(uZ);this.containerScrolled=!1;this.chatAgentName$=this.llmChatService.isGppLlmChatEnabled$.pipe(A(function(a){return a?"Production Agent":""}))};iLd.prototype.closeSidebar=function(){this.appEvents.closeIssueDetailsPageSidebar.next()};iLd.\u0275fac=function(a){return new (a||iLd)};
iLd.\u0275cmp=D({type:iLd,selectors:[["llm-chat"]],standalone:!1,decls:10,vars:6,consts:[[1,"flex-kids-x","space-between","padded-s-x","padded-s-top"],[1,"flex-kids-x","align-items-center"],[1,"heading-m"],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","aria-label","close sidebar","matTooltip","Close sidebar",1,"close-button",3,"click"],["svgIcon","close"],[1,"gpp-chat-container"]],template:function(a,b){a&1&&(K(0,"header",0)(1,"div",1)(2,"span",2),Q(3),T(4,"async"),L()(),K(5,"div",
3)(6,"button",4),N("click",function(){return b.closeSidebar()}),M(7,"mat-icon",5),L()()(),F(8,mCb,2,0,"div",6),T(9,"async"));a&2&&(B(3),yg(U(4,2,b.chatAgentName$)),B(5),G(U(9,4,b.llmChatService.isGppLlmChatEnabled$)?8:-1))},dependencies:[Jy,kB,iB,nA,XKd,Tx],styles:["[_nghost-%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;height:100%;width:500px;padding:0 8px}header[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--dialog-bg);position:-webkit-sticky;position:sticky;top:0;z-index:2;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.gpp-chat-container[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:auto}"],
changeDetection:0});var Q0=function(){};Q0.\u0275fac=function(a){return new (a||Q0)};Q0.\u0275mod=$e({type:Q0});Q0.\u0275inj=Fc({imports:[WO,mB,oA,cLd]});var R0=function(){};R0.\u0275fac=function(a){return new (a||R0)};R0.\u0275mod=$e({type:R0});R0.\u0275inj=Fc({imports:[CZ,J0,fV,CU,WO,wV,TK,jU,Q0,mB,wK,I0,eU,hV]});var jLd=function(){};jLd.\u0275fac=function(a){return new (a||jLd)};jLd.\u0275mod=$e({type:jLd});jLd.\u0275inj=Fc({imports:[WO]});var S0=function(){};S0.\u0275fac=function(a){return new (a||S0)};S0.\u0275mod=$e({type:S0});S0.\u0275inj=Fc({imports:[WO,fX]});var T0=function(){};T0.\u0275fac=function(a){return new (a||T0)};T0.\u0275mod=$e({type:T0});T0.\u0275inj=Fc({imports:[WO,TK,xX,wV,hV,S0,CU,fV]});var kLd=function(){};kLd.\u0275fac=function(a){return new (a||kLd)};kLd.\u0275mod=$e({type:kLd});kLd.\u0275inj=Fc({imports:[WO,CU]});var lLd=function(){};lLd.\u0275fac=function(a){return new (a||lLd)};lLd.\u0275mod=$e({type:lLd});lLd.\u0275inj=Fc({imports:[CZ,J0,CU,WO,wV,TK,T0,jU,I0,hV,wK,kLd,mB,jLd]});var U0=function(){};U0.\u0275fac=function(a){return new (a||U0)};U0.\u0275mod=$e({type:U0});U0.\u0275inj=Fc({imports:[WO,lLd,T0,mB,eU]});var V0=function(){};V0.\u0275fac=function(a){return new (a||V0)};V0.\u0275mod=$e({type:V0});V0.\u0275inj=Fc({imports:[WO,mB,UD,zU]});var W0=function(){};W0.\u0275fac=function(a){return new (a||W0)};W0.\u0275mod=$e({type:W0});W0.\u0275inj=Fc({imports:[WO,M_,K_,qU,mB]});var X0=function(){};X0.\u0275fac=function(a){return new (a||X0)};X0.\u0275mod=$e({type:X0});X0.\u0275inj=Fc({imports:[WO,mB,wK,UD,HE]});var mLd=function(){this.LIMIT_INCREMENT=32;this.limit=8;this.emails=[]};mLd.\u0275fac=function(a){return new (a||mLd)};
mLd.\u0275cmp=D({type:mLd,selectors:[["avatar-bunch"]],inputs:{emails:"emails"},standalone:!1,decls:4,vars:5,consts:[["size","medium",3,"email"],["type","button",1,"link-button","subtle-link",3,"title"],["type","button",1,"link-button","subtle-link",3,"click","title"]],template:function(a,b){a&1&&(Nf(0,nCb,1,1,"b-user-image",0,Mf),T(2,"slice"),F(3,pCb,1,1));a&2&&(Of(moa(2,1,b.emails,b.limit)),B(3),G(b.emails.length-b.limit>0?3:-1))},dependencies:[aV,ay],styles:["[_nghost-%COMP%]{display:block;margin-bottom:-8px}b-user-image[_ngcontent-%COMP%]{margin-right:8px;margin-bottom:8px}b-user-image.medium[_ngcontent-%COMP%]{width:24px}\n/*# sourceMappingURL=avatar_bunch.css.map */"]});var qCb=function(){return[]},nLd=function(){this.makeCritiqueUrl=mub;this.submitted=[];this.pending=[]};nLd.\u0275fac=function(a){return new (a||nLd)};
nLd.\u0275cmp=D({type:nLd,selectors:[["cl-counts"]],inputs:{submitted:"submitted",pending:"pending"},standalone:!1,decls:1,vars:1,consts:[[1,"flex-kids-x","align-items-center"],["aria-hidden","true","alt","","src","https://static.corp.google.com/devtools/codereview/new_logo_only.svg",1,"logo"],["target","_blank","title","Number of total CLs and pending CLs associated with all of these issues",1,"subtle-link",3,"href"],["target","_blank","title","Number of pending CLs associated with all of these issues",
1,"subtle-link",3,"href"]],template:function(a,b){a&1&&F(0,sCb,7,3,"div",0);if(a&2){var c;G((c=b.submitted.length+b.pending.length)?0:-1,c)}},styles:["[_nghost-%COMP%] {\n      white-space: nowrap;\n    }\n    .logo[_ngcontent-%COMP%] {\n      width: 20px;\n    }\n    a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus {\n      color: var(--text-good)\n    }"],changeDetection:0});var oLd=function(){this.changes=[]};oLd.\u0275fac=function(a){return new (a||oLd)};oLd.\u0275cmp=D({type:oLd,selectors:[["gerrit-changes-count"]],inputs:{changes:"changes"},standalone:!1,decls:5,vars:2,consts:[[1,"flex-kids-x","align-items-center"],["svgIcon","gerrit-logo",1,"icon-xs"]],template:function(a,b){a&1&&(K(0,"div",0),M(1,"mat-icon",1),Q(2," \u00a0 "),K(3,"p"),Q(4),L()());a&2&&(B(4),zg("",b.changes.length," ",b.changes.length>1?"Gerrit changes":"Gerrit change"))},dependencies:[Jy],styles:["a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus {\n      color: var(--text-good);\n    }"]});var pLd=function(){this.imageUrls=p(XV);this.LOGO_LIGHT=this.imageUrls.LOGO_LIGHT};da.Object.defineProperties(pLd.prototype,{ref:{configurable:!0,enumerable:!0,set:function(a){this.searchPageUrl=a?sub(a):void 0}}});pLd.\u0275fac=function(a){return new (a||pLd)};
pLd.\u0275cmp=D({type:pLd,selectors:[["issue-count"]],inputs:{ref:"ref",count:"count"},standalone:!1,decls:5,vars:2,consts:[["title","Total issues in this area, in any status",1,"flex-kids-x","align-items-center"],["aria-hidden","true","alt","",1,"logo",3,"src"],[1,"subtle-link",3,"routerLink"]],template:function(a,b){a&1&&(K(0,"div",0),M(1,"img",1),Q(2," \u00a0 "),F(3,uCb,1,1)(4,vCb,1,1),L());a&2&&(B(),I("src",b.LOGO_LIGHT,Ne),B(2),G(b.searchPageUrl?3:4))},dependencies:[hF],styles:["[_nghost-%COMP%] {\n      white-space: nowrap;\n    }\n    .logo[_ngcontent-%COMP%] {\n      width: 20px; \n\n      max-width: 20px; \n\n    }"],
changeDetection:0});var Y0=function(){};Y0.\u0275fac=function(a){return new (a||Y0)};Y0.\u0275mod=$e({type:Y0});Y0.\u0275inj=Fc({imports:[WO,DL,Ly,mB,hV]});var Z0=function(){};Z0.\u0275fac=function(a){return new (a||Z0)};Z0.\u0275mod=$e({type:Z0});Z0.\u0275inj=Fc({imports:[Ky]});var a1=function(){};a1.\u0275fac=function(a){return new (a||a1)};a1.\u0275mod=$e({type:a1});a1.\u0275inj=Fc({imports:[ez,CZ,HX,uI,Hy,WO,wV,DE,mB,lL,LX,DL,wK,yX,IX,Z0,EE,Y0,xU,WW,eU,TW,hV]});var b1=function(){};b1.\u0275fac=function(a){return new (a||b1)};b1.\u0275mod=$e({type:b1});b1.\u0275inj=Fc({imports:[WO,a1,eU]});var c1=function(){};c1.\u0275fac=function(a){return new (a||c1)};c1.\u0275mod=$e({type:c1});c1.\u0275inj=Fc({imports:[WO,fV,CU,I_,qV,mB,wK,M_,TK,xX,FX,IX,iK,Ly,eU,O_]});var qLd=function(){};qLd.\u0275fac=function(a){return new (a||qLd)};qLd.\u0275mod=$e({type:qLd});qLd.\u0275inj=Fc({imports:[WO,mB]});var rLd=function(){};rLd.\u0275fac=function(a){return new (a||rLd)};rLd.\u0275mod=$e({type:rLd});rLd.\u0275inj=Fc({imports:[CZ,fV,WO,CU,wV,V0,U0,qLd,mB,lL,WJ,LX,wK,M_,TK,xX,R0,W0,FX,jU,yX,IX,X0,iK,c1,WW,F0,b1,TKd,hV]});var d1=function(){this.matDialog=p(UA)};d1.prototype.show=function(a){this.dialog=this.matDialog.open(sLd,{width:"500px",data:a});return fe(SA(this.dialog))};d1.\u0275fac=function(a){return new (a||d1)};d1.\u0275prov=Dc({token:d1,factory:d1.\u0275fac,providedIn:"root"});
var sLd=function(){this.butterBar=p(UN);this.data=p(TA);this.dialogRef=p(RA);this.teamsService=p(OQ);this.dialogTitle="Create Triage View";this.triageForm=new jE({displayName:new lE("",vj),scope:new lE("",vj),showComponentColumn:new lE(!1)});this.data.triage?(this.triage=nm(this.data.triage),this.triage.displayName=Ir(this.data.teamName,this.triage)):this.triage={id:Math.max.apply(Math,q(this.data.teamExperiments.triage.map(function(a){return a.id})))+1,displayName:"",scope:"",showComponentColumn:!1,
config:[]};this.triageForm.patchValue({displayName:this.triage.displayName,scope:this.triage.scope,showComponentColumn:this.triage.showComponentColumn});this.dialogTitle=this.data.triage?"Edit triage view":"Create new triage view"};
sLd.prototype.save=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1)return a.triage.displayName=a.triageForm.value.displayName,a.triage.scope=a.triageForm.value.scope,a.triage.showComponentColumn=a.triageForm.value.showComponentColumn,a.data.triage?(b=a.data.teamExperiments.triage.findIndex(function(e){return e.id===a.triage.id}),a.data.teamExperiments.triage.splice(b,1,a.triage)):a.data.teamExperiments.triage.push(a.triage),Rr(a.butterBar,"Saving changes...",0),Wd(d,2),z(d,fe(yjd(a.teamsService,
a.data.teamExperiments)),4);if(d.nextAddress!=2)return Rr(a.butterBar,"Save complete."),a.dialogRef.close(a.triage),dt(d,0);c=$d(d);a.butterBar.showWarning("Failed to save changes.");console.error(c);ae(d)})};sLd.\u0275fac=function(a){return new (a||sLd)};
sLd.\u0275cmp=D({type:sLd,selectors:[["b-triage-view-config-dialog"]],standalone:!1,decls:22,vars:3,consts:[["mat-dialog-title",""],[1,"bv2-material","flex-kids-x"],[3,"formGroup"],[1,"dialog-row"],[1,"bv2-top-field-label"],["for","triage-title",1,"required"],"type text id triage-title formControlName displayName required  aria-required true".split(" "),["for","triage-scope",1,"required"],"type text id triage-scope formControlName scope placeholder componentid:123+ required  aria-required true".split(" "),
"gmat-checkbox  id triage-component-name-toggle formControlName showComponentColumn".split(" "),["mat-dialog-actions",""],"type button gmat-button  mat-stroked-button  mat-dialog-close ".split(" "),["type","button","gmat-button","","mat-flat-button","","color","primary",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1),L(),K(2,"mat-dialog-content",1)(3,"form",2)(4,"div",3)(5,"div",4)(6,"label",5),Q(7,"Title"),L()(),M(8,"input",6),L(),K(9,"div",3)(10,"div",4)(11,"label",7),Q(12,
"Search Scope"),L()(),M(13,"textarea",8),L(),K(14,"div",3)(15,"mat-checkbox",9),Q(16," Show component name column in triage view "),L()()()(),K(17,"footer",10)(18,"button",11),Q(19,"Cancel"),L(),K(20,"button",12),N("click",function(){return b.save()}),Q(21,"Save"),L()());a&2&&(B(),yg(b.dialogTitle),B(2),I("formGroup",b.triageForm),B(17),I("disabled",!b.triageForm.valid))},dependencies:[nE,xj,fE,gE,yE,kB,gB,kL,hI,VA,XA,ZA,YA,uE,tE],styles:[".dialog-row[_ngcontent-%COMP%]:not(:last-of-type){margin-bottom:24px}input[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;background-color:#fff;background-color:var(--input-field-bg);color:#202124;color:var(--text-high-contrast);-moz-box-sizing:border-box;box-sizing:border-box;height:29px;line-height:16px;padding-left:9px;vertical-align:top}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{width:100%}"],
changeDetection:0});var tLd=function(){};tLd.\u0275fac=function(a){return new (a||tLd)};tLd.\u0275mod=$e({type:tLd});tLd.\u0275inj=Fc({imports:[DE,mB,lL,TJ,HE,EE]});var e1=function(){Z.apply(this,arguments);var a=this;this.llmService=p(LY);this.imageUrls=p(XV);this.clusters$=new Mj([]);this.tableColumns=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"COMPONENT_PATH"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}];this.SPACE_EMPTY_STATE=this.imageUrls.SPACE_EMPTY_STATE;this.tableOptions=Object.assign({},QFd,{showActiveIndicator:!1,showMenu:!1,rowLimit:20});this.titles$=this.clusters$.pipe(yf(function(b){return xCd(a.llmService,b,a.teamName)}))};
Y(e1,Z);e1.\u0275dir=Z.\u0275dir;da.Object.defineProperties(e1.prototype,{clusters:{configurable:!0,enumerable:!0,set:function(a){a&&this.clusters$.next(a)}}});e1.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(e1)))(b||e1)}}();
e1.\u0275cmp=D({type:e1,selectors:[["b-issue-themes"]],inputs:{clusters:"clusters",teamName:"teamName"},standalone:!1,features:[Ef],decls:2,vars:3,consts:[["tabindex","-1",1,"layout-centered-column","gap"],[1,"flex-kids-y","margin-s","gap-s"],["aria-hidden","true","alt","",1,"empty-state-img",3,"src"],[1,"animated-loading-bar"],[3,"issueIds","tableColumns","options"]],template:function(a,b){a&1&&(F(0,BCb,2,1),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.clusters$))?0:-1,c)}},dependencies:[XZ,IL,JL,KL,
f$c,Tx],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px}\n/*# sourceMappingURL=issue_themes.css.map */"],changeDetection:0});var uLd=new dd("GM2_SLIDER_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var vLd=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};vLd.\u0275fac=function(a){return new (a||vLd)(Ve(uLd))};vLd.\u0275dir=af({type:vLd,selectors:[["mat-slider"]],hostAttrs:[1,"gmat-mdc-slider"],standalone:!1});var wLd=new dd("_MatSlider"),xLd=new dd("_MatSliderThumb"),yLd=new dd("_MatSliderRangeThumb"),zLd=new dd("_MatSliderVisualThumb");var ALd={provide:aE,useExisting:Vc(function(){return f1}),multi:!0},f1=function(){var a=this;this._ngZone=p(Rg);this._elementRef=p(Hd);this._cdr=p(Cx);this._slider=p(wLd);this._platform=p(Vh);this.valueChange=new Ti;this.dragStart=new Ti;this.dragEnd=new Ti;this.thumbPosition=2;this._hostElement=this._elementRef.nativeElement;this._valuetext=ng.apply(null,[""].concat(q([])));this._knobRadius=8;this._tickMarkOffset=3;this._hasSetInitialValue=this._isFocused=this._isActive=!1;this._destroyed=new qf;
this._skipUIUpdate=!1;this._onTouchedFn=function(){};this._isControlInitialized=!1;var b=p(ci);this._ngZone.runOutsideAngular(function(){a._listenerCleanups=[b.listen(a._hostElement,"pointerdown",a._onPointerDown.bind(a)),b.listen(a._hostElement,"pointermove",a._onPointerMove.bind(a)),b.listen(a._hostElement,"pointerup",a._onPointerUp.bind(a))]})};f1.prototype._setValue=function(a){this._hostElement.value=a;this._updateThumbUIByValue();this._slider._onValueChange(this);this._cdr.detectChanges();this._slider._cdr.markForCheck()};
f1.prototype._setIsFocused=function(a){this._isFocused=a};f1.prototype.ngOnDestroy=function(){this._listenerCleanups.forEach(function(a){return a()});this._destroyed.next();this._destroyed.complete();this.dragStart.complete();this.dragEnd.complete()};var BLd=function(a){a._updateWidthInactive();a.disabled!==a._slider.disabled&&(a._slider.disabled=!0);a.step=a._slider.step;a.min=a._slider.min;a.max=a._slider.max;a._initValue()};h=f1.prototype;
h._initValue=function(){this._hasSetInitialValue=!0;this._initialValue===void 0?this.value=this.min:(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())};h._getDefaultValue=function(){return this.min};h._onBlur=function(){this._setIsFocused(!1);this._onTouchedFn()};h._onFocus=function(){this._slider._setTransition(!1);this._slider._updateTrackUI(this);this._setIsFocused(!0)};
h._onChange=function(){this.valueChange.emit(this.value);this._isActive&&this._updateThumbUIByValue({withAnimation:!0})};h._onInput=function(){var a;(a=this._onChangeFn)==null||a.call(this,this.value);!this._slider.step&&this._isActive||this._updateThumbUIByValue({withAnimation:!0});this._slider._onValueChange(this)};h._onNgControlValueChange=function(){this._isActive&&this._isFocused||(this._slider._onValueChange(this),this._updateThumbUIByValue());this._slider.disabled=this._formControl.disabled};
h._onPointerDown=function(a){this.disabled||a.button!==0||(this._platform.IOS?(this._isActive=this._slider._isCursorOnSliderThumb(a,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect()),this._slider._updateDimensions()):(this._isActive=!0,this._setIsFocused(!0),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(a,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(a),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))))};
h._handleValueCorrection=function(a){var b=this;this._skipUIUpdate=!0;setTimeout(function(){b._skipUIUpdate=!1;b._fixValue(a)},0)};
h._fixValue=function(a){var b=a.clientX-this._slider._cachedLeft,c=this._slider._cachedWidth,d=this._slider.step===0?1:this._slider.step,e=Math.floor((this._slider.max-this._slider.min)/d);b=Math.round((Math.round((this._slider._isRtl?1-b/c:b/c)*e)/e*(this._slider.max-this._slider.min)+this._slider.min)/d)*d;if(b!==this.value){this.value=b;this.valueChange.emit(this.value);var f;(f=this._onChangeFn)==null||f.call(this,this.value)}this._slider._onValueChange(this);this._slider.step>0?this._updateThumbUIByValue():
this._updateThumbUIByPointerEvent(a,{withAnimation:this._slider._hasAnimation})};h._onPointerMove=function(a){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(a)};h._onPointerUp=function(){var a=this;this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(function(){return a._updateWidthInactive()},this._platform.IOS?10:0))};
h._clamp=function(a){return Math.max(Math.min(a,this._slider._cachedWidth-this._tickMarkOffset),this._tickMarkOffset)};h._calcTranslateXByValue=function(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset};h._calcTranslateXByPointerEvent=function(a){return a.clientX-this._slider._cachedLeft};h._updateWidthActive=function(){};
h._updateWidthInactive=function(){this._hostElement.style.padding="0 "+this._slider._inputPadding+"px";this._hostElement.style.width="calc(100% + "+(this._slider._inputPadding-this._tickMarkOffset*2)+"px)";this._hostElement.style.left="-"+(this._slider._rippleRadius-this._tickMarkOffset)+"px"};h._updateThumbUIByValue=function(a){this.translateX=this._clamp(this._calcTranslateXByValue());this._updateThumbUI(a)};
h._updateThumbUIByPointerEvent=function(a,b){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(a));this._updateThumbUI(b)};h._updateThumbUI=function(a){this._slider._setTransition(!(a==null||!a.withAnimation));this._slider._onTranslateXChange(this)};h.writeValue=function(a){if(this._isControlInitialized||a!==null)this.value=a};h.registerOnChange=function(a){this._onChangeFn=a;this._isControlInitialized=!0};h.registerOnTouched=function(a){this._onTouchedFn=a};
h.setDisabledState=function(a){this.disabled=a};h.focus=function(){this._hostElement.focus()};h.blur=function(){this._hostElement.blur()};
da.Object.defineProperties(f1.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return ah(this._hostElement.value,0)},set:function(a){a===null&&(a=this.min);a=isNaN(a)?0:a;a+="";this._hasSetInitialValue?this._isActive||this._setValue(a):this._initialValue=a}},translateX:{configurable:!0,enumerable:!0,get:function(){if(this._slider.min>=this._slider.max)return this._translateX=this._tickMarkOffset;this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue());return this._translateX},
set:function(a){this._translateX=a}},min:{configurable:!0,enumerable:!0,get:function(){return ah(this._hostElement.min,0)},set:function(a){this._hostElement.min=a+"";this._cdr.detectChanges()}},max:{configurable:!0,enumerable:!0,get:function(){return ah(this._hostElement.max,0)},set:function(a){this._hostElement.max=a+"";this._cdr.detectChanges()}},step:{configurable:!0,enumerable:!0,get:function(){return ah(this._hostElement.step,0)},set:function(a){this._hostElement.step=a+"";this._cdr.detectChanges()}},
disabled:{configurable:!0,enumerable:!0,get:function(){return $g(this._hostElement.disabled)},set:function(a){this._hostElement.disabled=a;this._cdr.detectChanges();this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}},percentage:{configurable:!0,enumerable:!0,get:function(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}},fillPercentage:{configurable:!0,enumerable:!0,get:function(){return this._slider._cachedWidth?
this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}}});f1.\u0275fac=function(a){return new (a||f1)};
f1.\u0275dir=af({type:f1,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(a,b){a&1&&N("change",function(){return b._onChange()})("input",function(){return b._onInput()})("blur",function(){return b._onBlur()})("focus",function(){return b._onFocus()});a&2&&If("aria-valuetext",b._valuetext())},inputs:{value:[2,"value","value",ah]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],
features:[Gg([ALd,{provide:xLd,useExisting:f1}])]});var CLd=["knob"],DLd=["valueIndicatorContainer"],g1=function(){var a=this;this._cdr=p(Cx);this._ngZone=p(Rg);this._slider=p(wLd);this._renderer=p(ci);this._isValueIndicatorVisible=this._isActive=this._isHovered=!1;this._hostElement=p(Hd).nativeElement;this._platform=p(Vh);this._onPointerMove=function(b){if(!a._sliderInput._isFocused){var c=a._hostElement.getBoundingClientRect();b=a._slider._isCursorOnSliderThumb(b,c);(a._isHovered=b)?a._showHoverRipple():a._hideRipple(a._hoverRippleRef)}};this._onMouseLeave=
function(){a._isHovered=!1;a._hideRipple(a._hoverRippleRef)};this._onFocus=function(){a._hideRipple(a._hoverRippleRef);a._showFocusRipple();a._hostElement.classList.add("mdc-slider__thumb--focused")};this._onBlur=function(){a._isActive||a._hideRipple(a._focusRippleRef);a._isHovered&&a._showHoverRipple();a._hostElement.classList.remove("mdc-slider__thumb--focused")};this._onDragStart=function(b){b.button===0&&(a._isActive=!0,a._showActiveRipple())};this._onDragEnd=function(){a._isActive=!1;a._hideRipple(a._activeRippleRef);
a._sliderInput._isFocused||a._hideRipple(a._focusRippleRef);a._platform.SAFARI&&a._showHoverRipple()}};h=g1.prototype;
h.ngAfterViewInit=function(){var a=this,b=this._slider._getInput(this.thumbPosition);b&&(this._ripple.radius=24,this._sliderInput=b,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(function(){var c=a._sliderInputEl,d=a._renderer;a._listenerCleanups=[d.listen(c,"pointermove",a._onPointerMove),d.listen(c,"pointerdown",a._onDragStart),d.listen(c,"pointerup",a._onDragEnd),d.listen(c,"pointerleave",a._onMouseLeave),d.listen(c,"focus",a._onFocus),d.listen(c,"blur",a._onBlur)]}))};
h.ngOnDestroy=function(){var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()})};h._showHoverRipple=function(){if(!this._isShowingRipple(this._hoverRippleRef)){this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0});var a;(a=this._hoverRippleRef)==null||a.element.classList.add("mat-mdc-slider-hover-ripple")}};
h._showFocusRipple=function(){if(!this._isShowingRipple(this._focusRippleRef)){this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0);var a;(a=this._focusRippleRef)==null||a.element.classList.add("mat-mdc-slider-focus-ripple")}};h._showActiveRipple=function(){if(!this._isShowingRipple(this._activeRippleRef)){this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400});var a;(a=this._activeRippleRef)==null||a.element.classList.add("mat-mdc-slider-active-ripple")}};
h._isShowingRipple=function(a){return(a==null?void 0:a.state)===0||(a==null?void 0:a.state)===1};h._showRipple=function(a,b){if(!this._slider.disabled){this._showValueIndicator();this._slider._isRange&&this._slider._getThumb(this.thumbPosition===1?2:1)._showValueIndicator();var c;if((c=this._slider._globalRippleOptions)==null||!c.disabled||b)return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:a,centered:!0,persistent:!0})}};
h._hideRipple=function(a){a!=null&&CDc(a._renderer,a);this._isShowingAnyRipple()||(this._slider._isRange||this._hideValueIndicator(),a=this._getSibling(),a._isShowingAnyRipple()||(this._hideValueIndicator(),a._hideValueIndicator()))};h._showValueIndicator=function(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")};h._hideValueIndicator=function(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")};
h._getSibling=function(){return this._slider._getThumb(this.thumbPosition===1?2:1)};h._getValueIndicatorContainer=function(){var a;return(a=this._valueIndicatorContainer)==null?void 0:a.nativeElement};h._getKnob=function(){return this._knob.nativeElement};h._isShowingAnyRipple=function(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)};g1.\u0275fac=function(a){return new (a||g1)};
g1.\u0275cmp=D({type:g1,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(a,b){a&1&&(hg(fA,5),hg(CLd,5),hg(DLd,5));if(a&2){var c;lg(c=mg())&&(b._ripple=c.first);lg(c=mg())&&(b._knob=c.first);lg(c=mg())&&(b._valueIndicatorContainer=c.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[Gg([{provide:zLd,useExisting:g1}])],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",
""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(a,b){a&1&&(F(0,CCb,5,1,"div",2),M(1,"div",3,0)(3,"div",4));a&2&&(G(b.discrete?0:-1),B(3),I("matRippleDisabled",!0))},dependencies:[fA],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}\n"],
encapsulation:2,changeDetection:0});var ELd=["trackActive"],h1=function(){var a=this;this._ngZone=p(Rg);this._cdr=p(Cx);this._elementRef=p(Hd);this._dir=p(bi,{optional:!0});this._globalRippleOptions=p(eA,{optional:!0});this._showTickMarks=this._discrete=this._disabled=!1;this._min=0;this.disableRipple=!1;this._max=100;this._step=1;this.displayWith=function(b){return""+b};this._noopAnimations=mi();this._rippleRadius=24;this.endValueIndicatorText=this.startValueIndicatorText="";this._hasViewInitialized=this._isRtl=this._isRange=!1;this._tickMarkTrackWidth=
0;this._hasAnimation=!1;this._resizeTimer=null;this._platform=p(Vh);this._knobRadius=8;this._thumbsOverlap=!1;p(Zh).load(cA);this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(function(){return a._onDirChange()}),this._isRtl=this._dir.value==="rtl")};h=h1.prototype;h._updateMin=function(a){var b=this._min;this._min=a;this._isRange?this._updateMinRange({old:b,new:a}):this._updateMinNonRange(a);this._onMinMaxOrStepChange()};
h._updateMinRange=function(a){var b=this._getInput(2),c=this._getInput(1),d=b.value,e=c.value;c.min=a.new;b.min=Math.max(a.new,c.value);c.max=Math.min(b.max,b.value);c._updateWidthInactive();b._updateWidthInactive();a.new<a.old?this._onTranslateXChangeBySideEffect(b,c):this._onTranslateXChangeBySideEffect(c,b);d!==b.value&&this._onValueChange(b);e!==c.value&&this._onValueChange(c)};
h._updateMinNonRange=function(a){var b=this._getInput(2);if(b){var c=b.value;b.min=a;b._updateThumbUIByValue();this._updateTrackUI(b);c!==b.value&&this._onValueChange(b)}};h._updateMax=function(a){var b=this._max;this._max=a;this._isRange?this._updateMaxRange({old:b,new:a}):this._updateMaxNonRange(a);this._onMinMaxOrStepChange()};
h._updateMaxRange=function(a){var b=this._getInput(2),c=this._getInput(1),d=b.value,e=c.value;b.max=a.new;c.max=Math.min(a.new,b.value);b.min=c.value;b._updateWidthInactive();c._updateWidthInactive();a.new>a.old?this._onTranslateXChangeBySideEffect(c,b):this._onTranslateXChangeBySideEffect(b,c);d!==b.value&&this._onValueChange(b);e!==c.value&&this._onValueChange(c)};
h._updateMaxNonRange=function(a){var b=this._getInput(2);if(b){var c=b.value;b.max=a;b._updateThumbUIByValue();this._updateTrackUI(b);c!==b.value&&this._onValueChange(b)}};h._updateStep=function(a){this._step=a;this._isRange?this._updateStepRange():this._updateStepNonRange();this._onMinMaxOrStepChange()};
h._updateStepRange=function(){var a=this._getInput(2),b=this._getInput(1),c=a.value,d=b.value,e=b.value;a.min=this._min;b.max=this._max;a.step=this._step;b.step=this._step;this._platform.SAFARI&&(a.value=a.value,b.value=b.value);a.min=Math.max(this._min,b.value);b.max=Math.min(this._max,a.value);b._updateWidthInactive();a._updateWidthInactive();a.value<e?this._onTranslateXChangeBySideEffect(b,a):this._onTranslateXChangeBySideEffect(a,b);c!==a.value&&this._onValueChange(a);d!==b.value&&this._onValueChange(b)};
h._updateStepNonRange=function(){var a=this._getInput(2);if(a){var b=a.value;a.step=this._step;this._platform.SAFARI&&(a.value=a.value);a._updateThumbUIByValue();b!==a.value&&this._onValueChange(a)}};
h.ngAfterViewInit=function(){this._platform.isBrowser&&this._updateDimensions();var a=this._getInput(2),b=this._getInput(1);this._isRange=!!a&&!!b;this._cdr.detectChanges();this._rippleRadius=this._getThumb(2)._ripple.radius;this._inputPadding=this._rippleRadius-this._knobRadius;this._isRange?this._initUIRange(a,b):this._initUINonRange(a);this._updateTrackUI(a);this._updateTickMarkUI();this._updateTickMarkTrackUI();this._observeHostResize();this._cdr.detectChanges()};
h._initUINonRange=function(a){BLd(a);a._updateThumbUIByValue();this._updateValueIndicatorUI(a);this._hasViewInitialized=!0;a._updateThumbUIByValue()};h._initUIRange=function(a,b){BLd(a);a._updateThumbUIByValue();BLd(b);b._updateThumbUIByValue();a._updateMinMax();b._updateMinMax();a._updateStaticStyles();b._updateStaticStyles();this._updateValueIndicatorUIs();this._hasViewInitialized=!0;a._updateThumbUIByValue();b._updateThumbUIByValue()};
h.ngOnDestroy=function(){this._dirChangeSubscription.unsubscribe();var a;(a=this._resizeObserver)==null||a.disconnect();this._resizeObserver=null};h._onDirChange=function(){var a;this._isRtl=((a=this._dir)==null?void 0:a.value)==="rtl";this._isRange?this._onDirChangeRange():this._onDirChangeNonRange();this._updateTickMarkUI()};
h._onDirChangeRange=function(){var a=this._getInput(2),b=this._getInput(1);a._setIsLeftThumb();b._setIsLeftThumb();a.translateX=a._calcTranslateXByValue();b.translateX=b._calcTranslateXByValue();a._updateStaticStyles();b._updateStaticStyles();a._updateWidthInactive();b._updateWidthInactive();a._updateThumbUIByValue();b._updateThumbUIByValue()};h._onDirChangeNonRange=function(){this._getInput(2)._updateThumbUIByValue()};
h._observeHostResize=function(){var a=this;typeof ResizeObserver!=="undefined"&&ResizeObserver&&this._ngZone.runOutsideAngular(function(){a._resizeObserver=new ResizeObserver(function(){a._isActive()||a._onResize()});a._resizeObserver.observe(a._elementRef.nativeElement)})};h._isActive=function(){return this._getThumb(1)._isActive||this._getThumb(2)._isActive};h._getValue=function(a){return(a=this._getInput(a===void 0?2:a))?a.value:this.min};
h._skipUpdate=function(){var a,b;return!!(((a=this._getInput(1))==null?0:a._skipUIUpdate)||((b=this._getInput(2))==null?0:b._skipUIUpdate))};h._updateDimensions=function(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth;this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left};h._setTrackActiveStyles=function(a){var b=this._trackActive.nativeElement.style;b.left=a.left;b.right=a.right;b.transformOrigin=a.transformOrigin;b.transform=a.transform};
h._calcTickMarkTransform=function(a){a*=this._tickMarkTrackWidth/(this._tickMarks.length-1);return"translateX("+(this._isRtl?this._cachedWidth-6-a:a)+"px"};h._onTranslateXChange=function(a){this._hasViewInitialized&&(this._updateThumbUI(a),this._updateTrackUI(a),this._updateOverlappingThumbUI(a))};h._onTranslateXChangeBySideEffect=function(a,b){this._hasViewInitialized&&(a._updateThumbUIByValue(),b._updateThumbUIByValue())};
h._onValueChange=function(a){this._hasViewInitialized&&(this._updateValueIndicatorUI(a),this._updateTickMarkUI(),this._cdr.detectChanges())};h._onMinMaxOrStepChange=function(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())};
h._onResize=function(){if(this._hasViewInitialized){this._updateDimensions();if(this._isRange){var a=this._getInput(2),b=this._getInput(1);a._updateThumbUIByValue();b._updateThumbUIByValue();a._updateStaticStyles();b._updateStaticStyles();a._updateMinMax();b._updateMinMax();a._updateWidthInactive();b._updateWidthInactive()}else(a=this._getInput(2))&&a._updateThumbUIByValue();this._updateTickMarkUI();this._updateTickMarkTrackUI();this._cdr.detectChanges()}};
h._areThumbsOverlapping=function(){var a=this._getInput(1),b=this._getInput(2);return a&&b?b.translateX-a.translateX<20:!1};h._updateOverlappingThumbClassNames=function(a){var b=a.getSibling();a=this._getThumb(a.thumbPosition);this._getThumb(b.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top");a._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)};
h._updateOverlappingThumbUI=function(a){this._isRange&&!this._skipUpdate()&&this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(a))};h._updateThumbUI=function(a){this._skipUpdate()||(this._getThumb(a.thumbPosition===2?2:1)._hostElement.style.transform="translateX("+a.translateX+"px)")};
h._updateValueIndicatorUI=function(a){if(!this._skipUpdate()){var b=this.displayWith(a.value);this._hasViewInitialized?a._valuetext.set(b):a._hostElement.setAttribute("aria-valuetext",b);this.discrete&&(a.thumbPosition===1?this.startValueIndicatorText=b:this.endValueIndicatorText=b,a=this._getThumb(a.thumbPosition),b.length<3?a._hostElement.classList.add("mdc-slider__thumb--short-value"):a._hostElement.classList.remove("mdc-slider__thumb--short-value"))}};
h._updateValueIndicatorUIs=function(){var a=this._getInput(2),b=this._getInput(1);a&&this._updateValueIndicatorUI(a);b&&this._updateValueIndicatorUI(b)};h._updateTickMarkTrackUI=function(){if(this.showTickMarks&&!this._skipUpdate()){var a=this._step&&this._step>0?this._step:1;this._tickMarkTrackWidth=(Math.floor(this.max/a)*a-this.min)/(this.max-this.min)*(this._cachedWidth-6)}};h._updateTrackUI=function(a){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(a):this._updateTrackUINonRange(a))};
h._updateTrackUIRange=function(a){var b=a.getSibling();if(b&&this._cachedWidth){var c=Math.abs(b.translateX-a.translateX)/this._cachedWidth;a._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:this._cachedWidth-b.translateX+"px",transformOrigin:"right",transform:"scaleX("+c+")"}):this._setTrackActiveStyles({left:b.translateX+"px",right:"auto",transformOrigin:"left",transform:"scaleX("+c+")"})}};
h._updateTrackUINonRange=function(a){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:"scaleX("+(1-a.fillPercentage)+")"}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:"scaleX("+a.fillPercentage+")"})};h._updateTickMarkUI=function(){if(this.showTickMarks&&this.step!==void 0&&this.min!==void 0&&this.max!==void 0){var a=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(a):this._updateTickMarkUINonRange(a)}};
h._updateTickMarkUINonRange=function(a){var b=this._getValue(),c=Math.max(Math.round((b-this.min)/a),0)+1;a=Math.max(Math.round((this.max-b)/a),0)-1;this._isRtl?c++:a++;this._tickMarks=Array(c).fill(0).concat(Array(a).fill(1))};h._updateTickMarkUIRange=function(a){var b=this._getValue(),c=this._getValue(1),d=Math.max(Math.round((b-c)/a)+1,0);b=Math.max(Math.round((this.max-b)/a),0);this._tickMarks=Array(Math.max(Math.round((c-this.min)/a),0)).fill(1).concat(Array(d).fill(0),Array(b).fill(1))};
h._getInput=function(a){if(a===2&&this._input)return this._input;var b;if((b=this._inputs)==null?0:b.length)return a===1?this._inputs.first:this._inputs.last};h._getThumb=function(a){var b,c;return a===2?(b=this._thumbs)==null?void 0:b.last:(c=this._thumbs)==null?void 0:c.first};h._setTransition=function(a){this._hasAnimation=!this._platform.IOS&&a&&!this._noopAnimations;this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)};
h._isCursorOnSliderThumb=function(a,b){var c=b.width/2;return Math.pow(a.clientX-(b.x+c),2)+Math.pow(a.clientY-(b.y+c),2)<Math.pow(c,2)};
da.Object.defineProperties(h1.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=a;a=this._getInput(2);var b=this._getInput(1);a&&(a.disabled=this._disabled);b&&(b.disabled=this._disabled)}},discrete:{configurable:!0,enumerable:!0,get:function(){return this._discrete},set:function(a){this._discrete=a;this._updateValueIndicatorUIs()}},showTickMarks:{configurable:!0,enumerable:!0,get:function(){return this._showTickMarks},set:function(a){this._showTickMarks=
a;this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI())}},min:{configurable:!0,enumerable:!0,get:function(){return this._min},set:function(a){a=a===void 0||a===null||isNaN(a)?this._min:a;this._min!==a&&this._updateMin(a)}},max:{configurable:!0,enumerable:!0,get:function(){return this._max},set:function(a){a=a===void 0||a===null||isNaN(a)?this._max:a;this._max!==a&&this._updateMax(a)}},step:{configurable:!0,enumerable:!0,get:function(){return this._step},set:function(a){a=
isNaN(a)?this._step:a;this._step!==a&&this._updateStep(a)}}});h1.\u0275fac=function(a){return new (a||h1)};
h1.\u0275cmp=D({type:h1,selectors:[["mat-slider"]],contentQueries:function(a,b,c){a&1&&(ig(c,xLd,5),ig(c,yLd,4));if(a&2){var d;lg(d=mg())&&(b._input=d.first);lg(d=mg())&&(b._inputs=d)}},viewQuery:function(a,b){a&1&&(hg(ELd,5),hg(zLd,5));if(a&2){var c;lg(c=mg())&&(b._trackActive=c.first);lg(c=mg())&&(b._thumbs=c)}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:12,hostBindings:function(a,b){a&2&&(xg("mat-"+(b.color||"primary")),wg("mdc-slider--range",b._isRange)("mdc-slider--disabled",b.disabled)("mdc-slider--discrete",
b.discrete)("mdc-slider--tick-marks",b.showTickMarks)("_mat-animation-noopable",b._noopAnimations))},inputs:{disabled:[2,"disabled","disabled",$g],discrete:[2,"discrete","discrete",$g],showTickMarks:[2,"showTickMarks","showTickMarks",$g],min:[2,"min","min",ah],color:"color",disableRipple:[2,"disableRipple","disableRipple",$g],max:[2,"max","max",ah],step:[2,"step","step",ah],displayWith:"displayWith"},exportAs:["matSlider"],features:[Gg([{provide:wLd,useExisting:h1}])],ngContentSelectors:["*"],decls:9,
vars:5,consts:[["trackActive",""],["tickMarkContainer",""],[1,"mdc-slider__track"],[1,"mdc-slider__track--inactive"],[1,"mdc-slider__track--active"],[1,"mdc-slider__track--active_fill"],[1,"mdc-slider__tick-marks"],[3,"discrete","thumbPosition","valueIndicatorText"],[3,"class","transform"]],template:function(a,b){a&1&&(bg(),cg(0),K(1,"div",2),M(2,"div",3),K(3,"div",4),M(4,"div",5,0),L(),F(6,FCb,3,1,"div",6),L(),F(7,GCb,1,3,"mat-slider-visual-thumb",7),M(8,"mat-slider-visual-thumb",7));a&2&&(B(6),
G(b.showTickMarks?6:-1),B(),G(b._isRange?7:-1),B(),I("discrete",b.discrete)("thumbPosition",2)("valueIndicatorText",b.endValueIndicatorText))},dependencies:[g1],styles:['.mdc-slider__track{position:absolute;top:50%;transform:translateY(-50%);width:100%;pointer-events:none;height:var(--mat-slider-inactive-track-height, 4px)}.mdc-slider__track--active,.mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider__track--active{overflow:hidden;border-radius:var(--mat-slider-active-track-shape, var(--mat-sys-corner-full));height:var(--mat-slider-active-track-height, 4px);top:calc((var(--mat-slider-inactive-track-height, 4px) - var(--mat-slider-active-track-height, 4px))/2)}.mdc-slider__track--active_fill{border-top-style:solid;box-sizing:border-box;height:100%;width:100%;position:relative;transform-origin:left;transition:transform 80ms ease;border-color:var(--mat-slider-active-track-color, var(--mat-sys-primary));border-top-width:var(--mat-slider-active-track-height, 4px)}.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:var(--mat-slider-disabled-active-track-color, var(--mat-sys-on-surface))}[dir=rtl] .mdc-slider__track--active_fill{-webkit-transform-origin:right;transform-origin:right}.mdc-slider__track--inactive{left:0;top:0;opacity:.24;background-color:var(--mat-slider-inactive-track-color, var(--mat-sys-surface-variant));height:var(--mat-slider-inactive-track-height, 4px);border-radius:var(--mat-slider-inactive-track-shape, var(--mat-sys-corner-full))}.mdc-slider--disabled .mdc-slider__track--inactive{background-color:var(--mat-slider-disabled-inactive-track-color, var(--mat-sys-on-surface));opacity:.24}.mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media(forced-colors: active){.mdc-slider__track--inactive::before{border-color:CanvasText}}.mdc-slider__value-indicator-container{bottom:44px;left:50%;pointer-events:none;position:absolute;transform:var(--mat-slider-value-indicator-container-transform, translateX(-50%) rotate(-45deg))}.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider__value-indicator{display:flex;align-items:center;transform:scale(0);transform-origin:var(--mat-slider-value-indicator-transform-origin, 0 28px);transition:transform 100ms cubic-bezier(0.4, 0, 1, 1);word-break:normal;background-color:var(--mat-slider-label-container-color, var(--mat-sys-primary));color:var(--mat-slider-label-label-text-color, var(--mat-sys-on-primary));width:var(--mat-slider-value-indicator-width, 28px);height:var(--mat-slider-value-indicator-height, 28px);padding:var(--mat-slider-value-indicator-padding, 0);opacity:var(--mat-slider-value-indicator-opacity, 1);border-radius:var(--mat-slider-value-indicator-border-radius, 50% 50% 50% 0)}.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}.mdc-slider__value-indicator::before{border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);border-top:6px solid;bottom:-5px;content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;display:var(--mat-slider-value-indicator-caret-display, none);border-top-color:var(--mat-slider-label-container-color, var(--mat-sys-primary))}.mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media(forced-colors: active){.mdc-slider__value-indicator::after{border-color:CanvasText}}.mdc-slider__value-indicator-text{text-align:center;width:var(--mat-slider-value-indicator-width, 28px);transform:var(--mat-slider-value-indicator-text-transform, rotate(45deg));font-family:var(--mat-slider-label-label-text-font, var(--mat-sys-label-medium-font));font-size:var(--mat-slider-label-label-text-size, var(--mat-sys-label-medium-size));font-weight:var(--mat-slider-label-label-text-weight, var(--mat-sys-label-medium-weight));line-height:var(--mat-slider-label-label-text-line-height, var(--mat-sys-label-medium-line-height));letter-spacing:var(--mat-slider-label-label-text-tracking, var(--mat-sys-label-medium-tracking))}.mdc-slider__thumb{-webkit-user-select:none;user-select:none;display:flex;left:-24px;outline:none;position:absolute;height:48px;width:48px;pointer-events:none}.mdc-slider--discrete .mdc-slider__thumb{transition:transform 80ms ease}.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider__thumb--top{z-index:1}.mdc-slider__thumb-knob{position:absolute;box-sizing:border-box;left:50%;top:50%;transform:translate(-50%, -50%);border-style:solid;width:var(--mat-slider-handle-width, 20px);height:var(--mat-slider-handle-height, 20px);border-width:calc(var(--mat-slider-handle-height, 20px)/2) calc(var(--mat-slider-handle-width, 20px)/2);box-shadow:var(--mat-slider-handle-elevation, var(--mat-sys-level1));background-color:var(--mat-slider-handle-color, var(--mat-sys-primary));border-color:var(--mat-slider-handle-color, var(--mat-sys-primary));border-radius:var(--mat-slider-handle-shape, var(--mat-sys-corner-full))}.mdc-slider__thumb:hover .mdc-slider__thumb-knob{background-color:var(--mat-slider-hover-handle-color, var(--mat-sys-primary));border-color:var(--mat-slider-hover-handle-color, var(--mat-sys-primary))}.mdc-slider__thumb--focused .mdc-slider__thumb-knob{background-color:var(--mat-slider-focus-handle-color, var(--mat-sys-primary));border-color:var(--mat-slider-focus-handle-color, var(--mat-sys-primary))}.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:var(--mat-slider-disabled-handle-color, var(--mat-sys-on-surface));border-color:var(--mat-slider-disabled-handle-color, var(--mat-sys-on-surface))}.mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border:solid 1px #fff;box-sizing:content-box;border-color:var(--mat-slider-with-overlap-handle-outline-color, var(--mat-sys-on-primary));border-width:var(--mat-slider-with-overlap-handle-outline-width, 1px)}.mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider__tick-mark--active,.mdc-slider__tick-mark--inactive{width:var(--mat-slider-with-tick-marks-container-size, 2px);height:var(--mat-slider-with-tick-marks-container-size, 2px);border-radius:var(--mat-slider-with-tick-marks-container-shape, var(--mat-sys-corner-full))}.mdc-slider__tick-mark--inactive{opacity:var(--mat-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mat-slider-with-tick-marks-inactive-container-color, var(--mat-sys-on-surface-variant))}.mdc-slider--disabled .mdc-slider__tick-mark--inactive{opacity:var(--mat-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mat-slider-with-tick-marks-disabled-container-color, var(--mat-sys-on-surface))}.mdc-slider__tick-mark--active{opacity:var(--mat-slider-with-tick-marks-active-container-opacity, 0.38);background-color:var(--mat-slider-with-tick-marks-active-container-color, var(--mat-sys-on-primary))}.mdc-slider__input{cursor:pointer;left:2px;margin:0;height:44px;opacity:0;position:absolute;top:2px;width:44px;box-sizing:content-box}.mdc-slider__input.mat-mdc-slider-input-no-pointer-events{pointer-events:none}.mdc-slider__input.mat-slider__right-input{left:auto;right:0}.mat-mdc-slider{display:inline-block;box-sizing:border-box;outline:none;vertical-align:middle;cursor:pointer;height:48px;margin:0 8px;position:relative;touch-action:pan-y;width:auto;min-width:112px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-slider.mdc-slider--disabled{cursor:auto;opacity:.38}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__input{cursor:auto}.mat-mdc-slider .mdc-slider__thumb,.mat-mdc-slider .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider.mdc-slider--discrete .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider .mat-ripple .mat-ripple-element{background-color:var(--mat-slider-ripple-color, var(--mat-sys-primary))}.mat-mdc-slider .mat-ripple .mat-mdc-slider-hover-ripple{background-color:var(--mat-slider-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 5%, transparent))}.mat-mdc-slider .mat-ripple .mat-mdc-slider-focus-ripple,.mat-mdc-slider .mat-ripple .mat-mdc-slider-active-ripple{background-color:var(--mat-slider-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 20%, transparent))}.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__track--active_fill,.mat-mdc-slider._mat-animation-noopable .mdc-slider__value-indicator{transition:none}.mat-mdc-slider .mat-focus-indicator::before{border-radius:50%}.mdc-slider__thumb--focused .mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var FLd=function(a,b){return b.componentId},GLd=function(a,b){return b.displayAs},i1=function(){Z.apply(this,arguments);var a=this;this.activatedRoute=p(Lj);this.teamFridge=p(TQ);this.issueFridge=p(XP);this.componentActions=p(VV);this.teamId=this.activatedRoute.snapshot.params.teamId;this.components=[];this.openFilter=WR;this.selectedOpenFilter$=new aR;this.selectComponents$=new aR;this.dateRangeFilters=[{displayAs:"Last 1 Year",queryAtom:"modified:365d",tooltip:"Issues modified within 1 Year"},{displayAs:"Last 6 Months",
queryAtom:"modified:180d",tooltip:"Issues modified within 6 Months"},{displayAs:"Last 30 Days",queryAtom:"modified:30d",tooltip:"Issues modified within 30 Days"},{displayAs:"Last 7 Days",queryAtom:"modified:7d",tooltip:"Issues modified within 7 Days"}];this.selectedDateRangeFilter$=new Mj(this.dateRangeFilters[0]);this.clusterGranularity$=new Mj(1);this.query$=ie([this.selectedOpenFilter$.value$,this.selectComponents$.value$,this.selectedDateRangeFilter$]).pipe(jf(0,Dr),A(function(b){var c=m(b);b=
c.next().value;var d=c.next().value;c=c.next().value;return HLd(a)?Kr.apply(null,[Jr("teamid",a.teamId)].concat(q(Array.from(b,function(e){return e.queryAtom})),[c.queryAtom])):Kr.apply(null,[].concat(q(Array.from(b,function(e){return e.queryAtom})),[Jr("componentId",[].concat(q(d)).map(function(e){return e.componentId}),!1),c.queryAtom]))}));this.issues$=this.query$.pipe(yf(function(b){return a.issueFridge.watchMany({filter:b,pageSize:500})}),A(function(b){return b.results.filter(function(c){var d;
return(d=c.experimentalFields)==null?void 0:d.clusterIds.length})}));this.clusters$=ie([this.issues$,this.clusterGranularity$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return ILd(b,c)}))};Y(i1,Z);i1.\u0275dir=Z.\u0275dir;
i1.prototype.ngOnInit=function(){var a=this;this.componentActions.search("teamid:"+this.teamId).then(function(b){b.sort(function(c,d){return c.name.localeCompare(d.name)});a.components=b;a.selectComponents$.add.apply(a.selectComponents$,q(a.components))});this.teamId&&fe(this.teamFridge.watch(this.teamId)).then(function(b){a.teamName=b==null?void 0:b.name})};i1.prototype.openFilterChanged=function(a){a?this.selectedOpenFilter$.add(WR):this.selectedOpenFilter$.delete(WR)};
var HLd=function(a){return a.selectComponents$.size===a.components.length};i1.prototype.onCheckboxChange=function(a){this.selectComponents$.has(a)?this.selectComponents$.delete(a):this.selectComponents$.add(a)};
var ILd=function(a,b){var c=new Map;a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.experimentalFields.clusterIds[b],f=void 0,g=(f=c.get(e))!=null?f:new Set;g.add(d.issueId);c.set(e,g)}b=[].concat(q(c.values())).map(function(k){return[].concat(q(k))});return sq(b,function(k){return k.sort().join(",")}).filter(function(k){return k.length>=3}).sort(function(k,l){return l.length-k.length}).slice(0,10).map(function(k){return[].concat(q(k))})};
i1.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(i1)))(b||i1)}}();
i1.\u0275cmp=D({type:i1,selectors:[["b-issue-themes-dashboard"]],standalone:!1,features:[Ef],decls:46,vars:16,consts:[["componentMenuTrigger","matMenuTrigger"],["ComponentMultiSelect","matMenu"],["dateMenuTrigger","matMenuTrigger"],["DateRangeMenu","matMenu"],["slider",""],[1,"pos-fill","flex-kids-y"],[1,"border-bottom","padded-s-sides","flex-kids-x","align-items-center","gap-xs"],["type","button","mat-icon-button","","matTooltip","Refresh","aria-label","Refresh",1,"medium"],["color","primary","svgIcon",
"refresh",1,"icon-m"],[1,"margin-none","nowrap"],["svgIcon","chevron-right",1,"icon-s","muted"],[1,"overflow","overflow-on-print-media"],[1,"flex-kids-x","align-items-center","margin-s","gap-s"],["aria-label","Filter open issues",3,"change"],["appearance","hairline-filter",3,"value","selected"],[3,"matTooltip"],["aria-label","Scope search to component",3,"selectable"],["appearance","hairline-filter","aria-label","Select component search scope","color","primary","role","button",3,"keydown.enter","keyup.space",
"matMenuTriggerFor"],["matChipTrailingIcon","","svgIcon","arrow-dropdown"],["mat-menu-item","",3,"click"],[3,"change","checked"],["mat-menu-item",""],["aria-label","Select date range",3,"selectable"],["appearance","hairline-filter","aria-label","Select date range","color","primary","role","button",3,"keydown.enter","keyup.space","matMenuTriggerFor"],"max;3;min;1;step;1;showTickMarks;;matTooltip;Move slider to the right to see more general clusters.".split(";"),["aria-label","cluster granularity",
"matSliderThumb","",3,"valueChange"],[3,"clusters","teamName"],[3,"checked"]],template:function(a,b){if(a&1){var c=t();K(0,"div",5)(1,"header",6)(2,"button",7);M(3,"mat-icon",8);L();K(4,"h2",9);Q(5);L();M(6,"mat-icon",10);K(7,"h2",9);Q(8,"Explore issue themes");L()();K(9,"div",11)(10,"div",12)(11,"mat-chip-listbox",13);N("change",function(e){u(c);return v(b.openFilterChanged(e.value))});K(12,"mat-chip-option",14)(13,"span",15);Q(14);L()()();K(15,"mat-chip-listbox",16)(16,"mat-chip-option",17,0);N("keydown.enter",
function(){u(c);var e=qg(17);return v(e.openMenu())})("keyup.space",function(){u(c);var e=qg(17);return v(e.openMenu())});F(18,HCb,2,0,"span")(19,ICb,2,0,"span");M(20,"mat-icon",18);L()();K(21,"mat-menu",null,1)(23,"button",19);N("click",function(e){u(c);return v(e.stopPropagation())});K(24,"mat-checkbox",20);N("change",function(){u(c);HLd(b)?b.selectComponents$.clear():b.selectComponents$.add.apply(b.selectComponents$,q(b.components));return v()});Q(25," Select all ");L()();M(26,"mat-divider");Nf(27,
JCb,3,2,"button",21,FLd);L();K(29,"mat-chip-listbox",22)(30,"mat-chip-option",23,2);N("keydown.enter",function(){u(c);var e=qg(31);return v(e.openMenu())})("keyup.space",function(){u(c);var e=qg(31);return v(e.openMenu())});K(32,"span");Q(33);L();M(34,"mat-icon",18);L()();K(35,"mat-menu",null,3);Nf(37,KCb,2,1,"button",21,GLd);L();K(39,"span");Q(40," Granularity");L();K(41,"mat-slider",24)(42,"input",25,4);N("valueChange",function(e){u(c);b.clusterGranularity$.next(e);return v()});L()()();M(44,"b-issue-themes",
26);T(45,"async");L()()}if(a&2){a=qg(22);var d=qg(36);B(5);yg(b.teamName);B(7);I("value",b.openFilter)("selected",b.selectedOpenFilter$.has(b.openFilter));B();I("matTooltip",b.openFilter.tooltip||"");B();S(" ",b.openFilter.displayAs," ");B();I("selectable",!1);B();I("matMenuTriggerFor",a);B(2);G(HLd(b)?18:19);B(6);I("checked",HLd(b));B(3);Of(b.components);B(2);I("selectable",!1);B();I("matMenuTriggerFor",d);B(3);yg(b.selectedDateRangeFilter$.value.displayAs);B(4);Of(b.dateRangeFilters);B(7);I("clusters",
U(45,14,b.clusters$))("teamName",b.teamName)}},dependencies:[Jy,kB,iB,VJ,fH,dH,iH,UK,bL,aL,$K,vK,nA,kL,hI,hK,vLd,h1,f1,e1,Tx],styles:["/*# sourceMappingURL=issue_themes_dashboard.css.map */"],changeDetection:0});var JLd=function(){};JLd.\u0275fac=function(a){return new (a||JLd)};JLd.\u0275mod=$e({type:JLd});JLd.\u0275inj=Fc({imports:[iA,Ky]});var KLd=function(){};KLd.\u0275fac=function(a){return new (a||KLd)};KLd.\u0275mod=$e({type:KLd});KLd.\u0275inj=Fc({imports:[JLd]});var LLd=function(){};LLd.\u0275fac=function(a){return new (a||LLd)};LLd.\u0275mod=$e({type:LLd});LLd.\u0275inj=Fc({imports:[WO,a1,ML,mB,WJ,zU,dL,wK,lL,iK,KLd]});var SCb=Date.now(),MLd=function(){var a=this;this.issueFridge=p(XP);this.router=p(fF);this.ROUTES=qs;this.phaseToUrlSlug=Gt;this.FETCH_SIZE=500;this.teamId$=new uf(1);this.triageId$=new uf(1);this.phase$=new Mj("NEW");this.heading$=this.phase$.pipe(A(function(b){return at.get(b)}));this.searchFilter$=ie([this.teamId$,this.phase$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return"teamid:"+b+"+ "+dld[c]}));this.issues$=this.searchFilter$.pipe(yf(function(b){return a.issueFridge.watchMany({filter:b,
pageSize:500})}),A(function(b){return b.results}));this.daysOld$=this.issues$.pipe(A(function(b){return b.map(function(c){var d,e;return(e=(d=c.aggregatedData)==null?void 0:d.modifiedTimeMicros)!=null?e:0})}),A(function(b){return b.map(TCb)}));this.avgAge$=this.daysOld$.pipe(A(NTa),A(function(b){return Math.round(b*10)/10}));this.countsByDaysOld$=this.daysOld$.pipe(A(function(b){var c=b.map(function(e){return Math.floor(e)});b=[];c=m(c);for(var d=c.next();!d.done;d=c.next())d=d.value,b[d]=~~b[d]+
1;return Array.from(b,function(e){return e!=null?e:0}).reverse()}));this.ratioDaysOld$=this.countsByDaysOld$.pipe(A(function(b){var c=Math.max.apply(Math,q(b));return b.map(function(d){return d/c})}))};da.Object.defineProperties(MLd.prototype,{teamId:{configurable:!0,enumerable:!0,set:function(a){this.teamId$.next(a)}},triageId:{configurable:!0,enumerable:!0,set:function(a){this.triageId$.next(a)}},phase:{configurable:!0,enumerable:!0,set:function(a){this.phase$.next(a)}}});
MLd.\u0275fac=function(a){return new (a||MLd)};
MLd.\u0275cmp=D({type:MLd,selectors:[["phase-card-contents"]],inputs:{teamId:"teamId",triageId:"triageId",phase:"phase"},standalone:!1,decls:19,vars:12,consts:[[1,"flex-kids-x","margin-s-bottom"],[1,"padded-s-y","padded-right","border-right"],[1,"type-s","muted"],[1,"type-l"],[1,"padded-s-y","padded-sides"],[1,"bar-chart"],[1,"flex-kids-x"],[1,"heading-s","subtle-link","align-self-center",3,"href"],["type","button","mat-button","","color","primary margin-left-auto","title","View issues",3,"click"],
["svgIcon","arrow-forward","iconPositionEnd",""],[3,"title","style"],[3,"title"]],template:function(a,b){a&1&&(F(0,MCb,2,3),T(1,"async"),K(2,"div",0)(3,"div",1)(4,"p",2),Q(5,"Total Issues"),L(),K(6,"p",3),F(7,NCb,1,2),T(8,"async"),Kf(9,OCb,1,0),L()(),K(10,"div",4)(11,"p",2),Q(12,"Avg Last Modified"),L(),K(13,"p",3),Q(14),T(15,"async"),L()()(),K(16,"div",5),F(17,RCb,2,3),T(18,"async"),L());if(a&2){var c,d,e;G((c=U(1,4,b.teamId$))?0:-1,c);B(7);G((d=U(8,6,b.issues$))?7:9,d);B(7);S(" ",U(15,8,b.avgAge$),
" days ");B(3);G((e=U(18,10,b.countsByDaysOld$))?17:-1,e)}},dependencies:[Jy,kB,gB,Tx],styles:["[_nghost-%COMP%]{overflow:auto}.bar-chart[_ngcontent-%COMP%]{margin:0;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-webkit-align-items:flex-end;-moz-box-align:end;-ms-flex-align:end;align-items:flex-end;gap:1px;height:96px}.bar-chart[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary);min-height:1px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1}\n/*# sourceMappingURL=phase_card_contents.css.map */"]});var NLd=function(){var a=this;this.activatedRoute=p(Lj);this.appSearchState=p(rT);this.teamFridge=p(TQ);this.ROUTES=qs;this.TriagePhase=Vbd;this.activatedRoute.params.pipe(A(function(b){return{teamId:b.teamId,triageId:b.triageId}}));this.id$=this.activatedRoute.params.pipe(A(function(b){return b.teamId}));this.triageId$=this.activatedRoute.params.pipe(A(function(b){return b.triageId}));ie([this.id$,this.triageId$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return!(!b||!c&&c!==
"0")}));this.team$=this.id$.pipe(yf(function(b){return a.teamFridge.watch(b)}));this.query$=this.id$.pipe(A(function(b){return"teamid:"+b+"+"}))};NLd.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()})};NLd.\u0275fac=function(a){return new (a||NLd)};
NLd.\u0275cmp=D({type:NLd,selectors:[["triage-dashboard"]],standalone:!1,decls:14,vars:11,consts:[[1,"pos-fill","overflow","overflow-on-print-media"],[1,"border-bottom","padded-s-sides"],[1,"left","flex-kids-x","align-items-center","gap-s"],["mat-icon-button","","aria-label","Back to Triage",1,"medium",3,"href"],["color","primary","svgIcon","arrow-backward",1,"icon-m","back-btn"],[3,"title"],[1,"muted"],[1,"main-content","padded","grid"],[1,"carded","bg-off-main",3,"phase","teamId","triageId"]],template:function(a,
b){a&1&&(K(0,"div",0)(1,"header",1)(2,"div",2)(3,"a",3),T(4,"async"),T(5,"async"),M(6,"mat-icon",4),L(),K(7,"h2"),Q(8," Dashboard: "),F(9,UCb,2,2,"span",5),T(10,"async"),Kf(11,VCb,3,3,"code",6),L()()(),F(12,XCb,2,3),T(13,"async"),L());if(a&2){var c,d;B(3);I("href",b.ROUTES.viewTriage.makeHref(U(4,3,b.id$),U(5,5,b.triageId$)),Ne);B(6);G((c=U(10,7,b.team$))?9:11,c);B(3);G((d=U(13,9,b.id$))?12:-1,d)}},dependencies:[Jy,kB,iB,MLd,Tx],styles:["[_nghost-%COMP%]{display:block;padding:16px}.grid[_ngcontent-%COMP%]{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}@media (min-width:1100px){.grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1500px){.grid[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:2200px){.grid[_ngcontent-%COMP%]{grid-template-columns:repeat(5,minmax(0,1fr))}}.screen-logo-icon[_ngcontent-%COMP%]{width:40px}.phase-card[_ngcontent-%COMP%]{min-height:200px}a.mat-mdc-icon-button[_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;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}\n/*# sourceMappingURL=triage_dashboard.css.map */"]});var OLd="comment priority status assignee self-assign self-unassign unassign".split(" "),PLd=["create"],j1=function(){this.paths=p(hW);this.activeSession=p(uu);this.issueFullFridge=p(gQ);this.toIssuePriority=zQa;this.getResponsibleEmailAddress=cDb;this.getChangelistNumber=ZCb;this.getLink=$Cb;this.getPreviousDiffValue=dDb;this.getNewDiffValue=bDb;this.shorthandAllDiffs=aDb;this.getClMetadata=YCb;this.isCritiqueComment=lo;this.isFullGerritComment=mo;this.STATUS_CODE_FROM_DISPLAY_STRING=lcd;this.type=
"default"};j1.prototype.ngOnInit=function(){this.type=eDb(this.event)};j1.prototype.getComment=function(){return this.event.unlinkifiedComment?this.event.unlinkifiedComment:this.event.formattedComment?uTa(this.event.formattedComment):""};j1.\u0275fac=function(a){return new (a||j1)};
j1.\u0275cmp=D({type:j1,selectors:[["recent-event-row"]],inputs:{event:"event"},standalone:!1,decls:15,vars:5,consts:[[3,"ldapOnly","email"],[3,"href","issueId"],["mode","relativepast",3,"timestamp"],[3,"id"],["target","_blank",3,"href"],[1,"cl-title","muted",3,"title"],[3,"issuePriority"],[1,"status-update","muted",3,"title"],[3,"title"],[1,"comment-text","muted",3,"title"],[1,"issue-title","muted",3,"title"]],template:function(a,b){a&1&&(M(0,"b-user-email",0),F(1,fDb,4,4)(2,jDb,5,4)(3,kDb,4,4)(4,
lDb,6,5)(5,nDb,4,5)(6,pDb,5,5)(7,qDb,6,6)(8,rDb,4,4)(9,sDb,4,4)(10,tDb,6,6)(11,uDb,5,4)(12,vDb,5,5),F(13,xDb,1,1),F(14,zDb,1,1));if(a&2){var c;I("ldapOnly",!0)("email",b.getResponsibleEmailAddress(b.event));B();G((c=b.type)==="create"?1:c==="changelist"?2:c==="comment"?3:c==="priority"?4:c==="status"?5:c==="statusUpdate"?6:c==="assignee"?7:c==="self-assign"?8:c==="self-unassign"?9:c==="unassign"?10:c==="component"?11:12);B(12);G(OLd.includes(b.type)?13:-1);B();G(PLd.includes(b.type)?14:-1)}},dependencies:[wsd,
rV,MR,vW,ctd],styles:["[_nghost-%COMP%]{display:block;min-height:20px;padding:2px 0;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}b-user-email[_ngcontent-%COMP%]{font-weight:500}[_nghost-%COMP%]     .cl-link{color:#1e8e3e;color:var(--good-link)}"],changeDetection:0});var k1=function(){Z.apply(this,arguments);var a=this;this.recentEventsForIssuesFridge=p(HQ);this.activeSession=p(uu);this.quickFilter=new lE("");this.printStats=NDb;this.defaultNumEvents=6;this.numDisplayed$=new Mj(this.defaultNumEvents);this.query$=new uf(1);this.renderDelay$=ce(!0).pipe(mf(1E3));this.allEvents$=this.query$.pipe(ue(Pm),zf(this.destroyed$),A(function(b){return[b,100].join("___")}),yf(function(b){return a.recentEventsForIssuesFridge.watch(b)}),A(function(b){var c;return(c=b==null?
void 0:b.events)!=null?c:[]}));this.events$=ie([this.allEvents$,this.quickFilter.valueChanges.pipe(xf(""))]).pipe(A(function(b){var c=m(b);b=c.next().value;b=b===void 0?[]:b;c=c.next().value;return b.filter(MDb(c))}));this.bucketedEvents$=ie([this.events$,this.numDisplayed$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b.slice(0,c)}),A(ODb));this.allBucketedEvents$=this.events$.pipe(A(ODb));this.bucketedEventStats$=this.allBucketedEvents$.pipe(A(function(b){return{"<24h":PDb("<24h",
b),"24h-7d":PDb("24h-7d",b),"7d-30d":PDb("7d-30d",b),">30d":PDb(">30d",b)}}))};Y(k1,Z);k1.\u0275dir=Z.\u0275dir;da.Object.defineProperties(k1.prototype,{numEvents:{configurable:!0,enumerable:!0,set:function(a){var b;a=(b=a)!=null?b:6;this.numDisplayed$.next(a);this.defaultNumEvents=a}},query:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.query$.next(a)}}});k1.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(k1)))(b||k1)}}();
k1.\u0275cmp=D({type:k1,selectors:[["recent-events"]],inputs:{numEvents:"numEvents",query:"query"},standalone:!1,features:[Ef],decls:2,vars:3,consts:[[1,"heading-xs","margin-bottom"],["type","search","placeholder","filter","aria-label","filter recent activity",1,"margin-s-left","subtle","b-input-style",3,"formControl"],["type","button",1,"link-button","margin-s-top"],[1,"muted","bold","margin-s-bottom"],[3,"event"],[1,"muted","bold","margin-s-bottom","margin-top"],["type","button",1,"link-button",
"margin-s-top",3,"click"]],template:function(a,b){a&1&&(F(0,LDb,5,4),T(1,"async"));a&2&&G(U(1,1,b.renderDelay$)?0:-1)},dependencies:[xj,fE,sE,j1,Tx],styles:["[_nghost-%COMP%]{display:block}input[type=search].subtle[_ngcontent-%COMP%]{vertical-align:baseline;width:80px;-webkit-transition:width .2s ease-out;transition:width .2s ease-out}input[type=search].subtle[_ngcontent-%COMP%]:focus{width:140px}.ai-summary[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}.ai-summary[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin-top:0}.ai-summary[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]   .muted[_ngcontent-%COMP%]{font-weight:400}.ai-summary[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle}"],
changeDetection:0});var l1=function(){};l1.\u0275fac=function(a){return new (a||l1)};l1.\u0275mod=$e({type:l1});l1.\u0275inj=Fc({imports:[EE,DE,WO,hV,wV,CU,yX,xV]});var TDb=function(a,b){return b.searchId},m1=function(){Z.apply(this,arguments);this.dialogRef=p(RA);this.currentUserBookmarksFridge=p(qP);this.selectedIds=new Set;this.savedSearches$=jfd(this.currentUserBookmarksFridge)};Y(m1,Z);m1.\u0275dir=Z.\u0275dir;var SDb=function(a,b){b.options.forEach(function(c){c.selected?a.selectedIds.add(c.value):a.selectedIds.delete(c.value)})};m1.prototype.onSave=function(){this.dialogRef.close([].concat(q(this.selectedIds)))};m1.prototype.onCancel=function(){this.dialogRef.close()};
m1.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(m1)))(b||m1)}}();
m1.\u0275cmp=D({type:m1,selectors:[["saved-search-picker-dialog"]],standalone:!1,features:[Ef],decls:10,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["aria-label","Add a Saved Search"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary","data-test","save",1,"medium",3,"click","disabled"],["aria-label","Add a Saved Search",3,"selectionChange"],["checkboxPosition","before",3,"selected",
"value","height"],["checkboxPosition","before",3,"selected","value"],[1,"savedsearch-name","type-m","flex-kids-x","align-items-center"],[1,"overflow-ellipsis"],[1,"line-clamp-2","muted","type-s"]],template:function(a,b){a&1&&(K(0,"header",0),Q(1," Add a Saved Search "),L(),K(2,"div",1),F(3,UDb,3,0,"mat-selection-list",2),T(4,"async"),L(),K(5,"div",3)(6,"button",4),N("click",function(){return b.onCancel()}),Q(7," Cancel "),L(),K(8,"button",5),N("click",function(){return b.onSave()}),Q(9),L()());if(a&
2){var c;B(3);G((c=U(4,3,b.savedSearches$))?3:-1,c);B(5);I("disabled",b.selectedIds.size===0);B();S(" Save ",b.selectedIds.size>1?"("+b.selectedIds.size+")":""," ")}},dependencies:[kB,gB,XA,ZA,YA,ZJ,nK,jK,Tx],styles:["[_nghost-%COMP%]     .mat-mdc-dialog-title{margin-bottom:8px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{width:500px;padding:0}\n/*# sourceMappingURL=saved_search_picker_dialog.css.map */"]});var QLd=function(){};QLd.\u0275fac=function(a){return new (a||QLd)};QLd.\u0275mod=$e({type:QLd});QLd.\u0275inj=Fc({imports:[WO,mB,TJ,wK,lL,pK,DE,EE,fV,mB,SX,xX,TK]});var n1=function(){this.dialog=p(UA)};n1.prototype.open=function(a){var b=this,c={panelClass:"no-jitter"};return new Promise(function(d){SA(b.dialog.open(m1,c)).subscribe(function(e){e=e===void 0?[]:e;a==null||a(e);d(e)})})};n1.\u0275fac=function(a){return new (a||n1)};n1.\u0275prov=Dc({token:n1,factory:n1.\u0275fac,providedIn:"root"});var RLd=function(){return[]},o1=function(){Z.apply(this,arguments);var a=this;this.issueFridge=p(XP);this.changelistFridge=p(GO);this.activeSession=p(uu);this.query$=new uf(1);this.issues$=this.query$.pipe(yf(function(b){return a.issueFridge.watchMany(b).pipe(A(function(c){if(pt(a.ref)==="issue")return c.results;var d;return Pmd(c.results,(d=a.activeSession.getTracker())==null?void 0:d.trackerId)}))}));this.emails$=this.issues$.pipe(A(function(b){return b.map(UTa).filter(Pm)}),A(a_a));this.submittedClLinks$=
this.issues$.pipe(A(function(b){return b.flatMap(function(c){var d,e,f;return(f=(d=c.snapshot)==null?void 0:(e=d[0])==null?void 0:e.changelist)!=null?f:[]})}));this.pendingCls$=this.issues$.pipe(A(function(b){return b.map(function(c){return c.issueId})}),yf(function(b){return a.changelistFridge.watchMany({pendingForIssues:b})}),A(function(b){return b.results}))};Y(o1,Z);o1.\u0275dir=Z.\u0275dir;o1.prototype.getHotlistId=function(){if(pt(this.ref)==="hotlist")return ot(this.ref)};
da.Object.defineProperties(o1.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.query$.next(a)}}});o1.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(o1)))(b||o1)}}();
o1.\u0275cmp=D({type:o1,selectors:[["rollups-list"]],inputs:{ref:"ref",query:"query"},standalone:!1,features:[Ef],decls:11,vars:16,consts:[[1,"flex-kids-x","align-items-center"],[1,"flex-kids-x","align-items-center","dividers-between"],[3,"ref","count"],[3,"submitted","pending"],[3,"emails"],[1,"shrink-0","margin-left-auto"],["mat-stroked-button","","target","_blank",1,"small","pop-out-link",3,"href"],["svgIcon","pop-out",1,"icon-xs"]],template:function(a,b){a&1&&(K(0,"section",0)(1,"div",1),M(2,
"issue-count",2),T(3,"async"),M(4,"cl-counts",3),T(5,"async"),T(6,"async"),F(7,VDb,1,1,"avatar-bunch",4),T(8,"async"),L(),K(9,"div",5),F(10,WDb,3,1,"a",6),L()());if(a&2){var c,d,e;B(2);I("ref",b.ref)("count",(c=U(3,6,b.issues$))==null?null:c.length);B(2);var f,g;I("submitted",(f=U(5,8,b.submittedClLinks$))!=null?f:Hg(14,RLd))("pending",(g=U(6,10,b.pendingCls$))!=null?g:Hg(15,RLd));B(3);G((d=U(8,12,b.emails$))?7:-1,d);B(3);a:{if(xs(b.activeSession)&&(a=b.getHotlistId(),a!=null)){a="https://taskflow.corp.google.com/hotlists/"+
a;break a}a=void 0}G((e=a)?10:-1,e)}},dependencies:[Jy,kB,gB,mLd,nLd,pLd,Tx],styles:["[_nghost-%COMP%]{display:block}.dividers-between[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding-right:16px;margin-right:16px;border-right:1px solid;border-right-color:#dadce0;border-right-color:var(--divider)}.dividers-between[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:empty, .dividers-between[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{border-right:none;padding-right:0;margin-right:0}\n/*# sourceMappingURL=rollups_list.css.map */"],
changeDetection:0});var YDb=function(){return[]},p1=function(){Z.call(this);var a=this;this.issueRelationshipsFridge=p(mQ);this.metadataFridge=p(vO);this.issueFullFridge=p(gQ);this.changelistFridge=p(GO);this.id$=new uf(1);this.issue$=this.id$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));this.metadata$=this.id$.pipe(yf(function(b){return a.metadataFridge.watch(b)}));this.closedAndTotal$=this.metadata$.pipe(A(j2a));this.metadata$.pipe(A(l2a));this.gerritChanges$=this.metadata$.pipe(A(m2a));this.emails$=this.metadata$.pipe(A(n2a));
this.pendingCls$=ie([this.id$,this.metadata$]).pipe(yf(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d;c=(d=c==null?void 0:c.issueIds)!=null?d:[];d=[b].concat(q(c));return a.changelistFridge.watchMany({pendingForIssues:d})}),A(function(b){return b.results}));this.subscriptions.add(te(this.issueRelationshipsFridge.memoryWasSet$,this.issueRelationshipsFridge.collectiveMemoryWasSet$,this.issueFullFridge.memoryWasSet$,this.issueFullFridge.collectiveMemoryWasSet$).pipe(hf(this.id$),jf(2E3)).subscribe(function(b){return void a.metadataFridge.poke(b[1])}))};
Y(p1,Z);p1.\u0275dir=Z.\u0275dir;da.Object.defineProperties(p1.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});p1.\u0275fac=function(a){return new (a||p1)};
p1.\u0275cmp=D({type:p1,selectors:[["rollups-project"]],inputs:{id:"id"},standalone:!1,features:[Ef],decls:11,vars:15,consts:[[1,"flex-kids-x","align-items-center","dividers-between"],[3,"closed","total"],[3,"issue"],[3,"submitted","pending"],[3,"changes"],[3,"emails"]],template:function(a,b){a&1&&(K(0,"section",0),F(1,XDb,1,2,"progress-pie",1),T(2,"async"),M(3,"issue-timeframe",2),T(4,"async"),F(5,ZDb,2,5,"cl-counts",3),T(6,"async"),F(7,aEb,1,1),T(8,"async"),F(9,cEb,1,1),T(10,"async"),L());if(a&
2){var c,d,e,f;B();G((c=U(2,5,b.closedAndTotal$))?1:-1,c);B(2);I("issue",U(4,7,b.issue$));B(2);G((d=U(6,9,b.metadata$))?5:-1,d);B(2);G((e=U(8,11,b.gerritChanges$))?7:-1,e);B(2);G((f=U(10,13,b.emails$))?9:-1,f)}},dependencies:[mLd,nLd,UZ,TZ,oLd,Tx],styles:["[_nghost-%COMP%]{display:block}.dividers-between[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding-right:16px;margin-right:16px;border-right:1px solid;border-right-color:#dadce0;border-right-color:var(--divider)}.dividers-between[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:empty, .dividers-between[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{border-right:none;padding-right:0;margin-right:0}\n/*# sourceMappingURL=rollups_project.css.map */"],
changeDetection:0});var q1=function(){this.activeSession=p(uu)};q1.\u0275fac=function(a){return new (a||q1)};q1.\u0275prov=Dc({token:q1,factory:q1.\u0275fac,providedIn:"root"});var SLd=(new vsd).transform,r1=function(){var a=this;this.kansasPrefsManager=p(hR);this.activeSession=p(uu);this.filteredSignalsSource=p(q1);this.destroyRef=p(Ce);this.filteredSignalsOptions=nm(this.filteredSignalsSource.activeSession.isInternalSession()?Tid:Uid);this.needsAttentionSourceFilters=this.activeSession.isInternalSession()?Pid:Qid;this.prefs$=this.kansasPrefsManager.preferences$.pipe(A(function(b){var c;return(c=b==null?void 0:b.missionControlPreferences)!=null?c:{}}));this.prefs={};this.myTasksSources$=
this.prefs$.pipe(A(function(b){var c,d=(c=b==null?void 0:b.myTasksSources)!=null?c:[];b=b==null?void 0:b.isMyTasksSourcesConfigured;return d.length!==0||b?d.map(eEb):[].concat(q(Rid))}));this.needsAttentionSources$=this.prefs$.pipe(A(function(b){var c,d=(c=b==null?void 0:b.needsAttentionSources)!=null?c:[];b=b==null?void 0:b.isNeedsAttentionSourcesConfigured;c=a.needsAttentionSourceFilters;return d.length!==0||b?d.map(eEb):[].concat(q(c))}));this.needsAttentionTimeBoundary$=this.prefs$.pipe(A(function(b){var c;
return(c=b==null?void 0:b.needsAttentionDaysOld)!=null?c:30}));this.needsAttentionFilteredSignals$=this.prefs$.pipe(A(function(b){return{buganizerSignals:gEb(b==null?void 0:b.needsAttentionBuganizerFilteredSignals,a.filteredSignalsOptions),driveSignals:kEb(b==null?void 0:b.needsAttentionDriveFilteredSignals,a.filteredSignalsOptions),gerritSignals:mEb(b==null?void 0:b.needsAttentionGerritFilteredSignals,a.filteredSignalsOptions),changelistSignals:iEb(b==null?void 0:b.needsAttentionChangelistFilteredSignals,
a.filteredSignalsOptions),googleTasksSignals:nEb(b==null?void 0:b.needsAttentionGoogleTasksFilteredSignals,a.filteredSignalsOptions),irmSignals:oEb(b==null?void 0:b.needsAttentionIrmFilteredSignals,a.filteredSignalsOptions)}}),vf({bufferSize:1,refCount:!0}));this.prefs$.pipe(Tj(this.destroyRef)).subscribe(function(b){a.prefs=b})},Jt=function(a,b){a.kansasPrefsManager.save({missionControlPreferences:Object.assign({},a.prefs,b)}).subscribe()},UGb=function(a,b,c){switch(b){case "mc-my-tasks":a.prefs.myTasksTab=
c;Jt(a,{myTasksTab:c});break;case "work-areas-wrapper-card":a.prefs.workAreaTab=c;Jt(a,{workAreaTab:c});break;default:console.error("unhandled tab key, cannot save preference")}};r1.prototype.toggleCollapsed=function(a){var b;this.prefs.collapsed=(b=this.prefs.collapsed)!=null?b:{};this.prefs.collapsed[a]=!this.prefs.collapsed[a];Jt(this,{collapsed:this.prefs.collapsed})};r1.prototype.isCollapsed=function(a){var b;return!((b=this.prefs.collapsed)==null||!b[a])};
var TLd=function(a,b){switch(b){case "mc-my-tasks":return a.prefs.myTasksTab;case "work-areas-wrapper-card":return a.prefs.workAreaTab;default:console.error("unhandled tab key, cannot get preference")}};r1.prototype.getMyTasksSources=function(){var a,b=(a=this.prefs.myTasksSources)!=null?a:[];a=this.prefs.isMyTasksSourcesConfigured;return b.length!==0||a?b.map(eEb):[].concat(q(Rid))};var ULd=function(a,b){var c;return(a=(c=a.prefs.workAreaQuickFilters)==null?void 0:c[b])?[a]:[]};
r1.prototype.addHotlist=function(a){VLd(this,oub(a))};r1.prototype.hasHotlist=function(a){return a==null?!1:WLd(this,oub(a))};r1.prototype.hasSavedSearch=function(a){return a==null?!1:WLd(this,pub(a))};
var WLd=function(a,b){var c;return((c=a.prefs.workAreaUrls)!=null?c:[]).includes(b)},VLd=function(a,b){typeof b==="string"&&(b=[b]);if(b!=null&&b.length!==0){var c,d=(c=a.prefs.workAreaUrls)!=null?c:[];d=XZa(b,d);Jt(a,{workAreaUrls:d})}},QGb=function(a,b,c){var d,e=((d=a.prefs.workAreaUrls)!=null?d:[]).slice();SLd(b,e,c)?console.info('Cannot move "'+b+'" by '+c+". peers: ["+e+"]"):(d=e.indexOf(b),e[d]=e[d+c],e[d+c]=b,Jt(a,{workAreaUrls:e}))};r1.\u0275fac=function(a){return new (a||r1)};
r1.\u0275prov=Dc({token:r1,factory:r1.\u0275fac,providedIn:"root"});var XLd=function(){this.issueFridge=p(XP);this.candidateIssues$=this.issueFridge.watchMany(Vid);this.suggestions$=this.candidateIssues$.pipe(A(vub))};XLd.\u0275fac=function(a){return new (a||XLd)};XLd.\u0275prov=Dc({token:XLd,factory:XLd.\u0275fac,providedIn:"root"});var s1=function(){var a=this;this.prefsService=p(r1);this.isNumeric=Q8a;this.isActive=function(){return YLd(a,a.prefsService.prefs,a.filter.key)};this.active$=this.prefsService.prefs$.pipe(A(function(b){var c;return YLd(a,b,(c=a.filter)==null?void 0:c.key)}))};
s1.prototype.onClick=function(){var a=!this.isActive();if(this.prefKey!=null){var b=this.prefsService,c=this.prefKey;a=a?this.filter.key:void 0;var d;b.prefs.workAreaQuickFilters=(d=b.prefs.workAreaQuickFilters)!=null?d:{};a?b.prefs.workAreaQuickFilters[c]=a:delete b.prefs.workAreaQuickFilters[c];Jt(b,{workAreaQuickFilters:b.prefs.workAreaQuickFilters})}};s1.prototype.isDisabled=function(){return String(this.countDisplay)==="0"&&!this.isActive()};
var YLd=function(a,b,c){if(b==null||a.prefKey==null)return!1;var d;return((d=b.workAreaQuickFilters)==null?void 0:d[a.prefKey])===c};
da.Object.defineProperties(s1.prototype,{metadata:{configurable:!0,enumerable:!0,set:function(a){this.metadataInternal=a;if(a!=null)if(this.filter.key==="OPEN"){if(a==null)var b=0;else{b=0;a=m(a.aggregatedStatus);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.issueIds===void 0?[]:c.issueIds,e=void 0;if((e=io.get(c.status))==null?0:e.open)b+=d.length}}this.countDisplay=b}else if(this.filter.key==="BROAD_IN_PROGRESS")b=k2a(a,"ASSIGNED"),a=k2a(a,"ACCEPTED"),this.countDisplay=b+a;else throw Error("gg`"+
this.filter.key);},get:function(){return this.metadataInternal}},key:{configurable:!0,enumerable:!0,set:function(a){this.filter=qt[a]}},computeCountFor:{configurable:!0,enumerable:!0,set:function(a){if(a==null)this.countDisplay="-";else{var b,c,d=(c=qt[(b=this.filter)==null?void 0:b.key])==null?void 0:c.check;this.countDisplay=a.filter(d).length}}}});s1.\u0275fac=function(a){return new (a||s1)};
s1.\u0275cmp=D({type:s1,selectors:[["qif-stat"]],hostBindings:function(a,b){a&1&&N("click",function(){return b.onClick()})},inputs:{metadata:"metadata",key:"key",prefKey:"prefKey",computeCountFor:"computeCountFor"},standalone:!1,decls:5,vars:7,consts:[["type","button",1,"unstyled-button","stat-card",3,"title"],[1,"big-number",3,"muted"],[1,"big-number"]],template:function(a,b){a&1&&(K(0,"button",0),T(1,"async"),K(2,"label"),Q(3),L(),F(4,rEb,2,3,"div",1),L());if(a&2){var c;I("title",(c=b.filter.tooltip)!=
null?c:"");If("aria-pressed",U(1,5,b.active$))("disabled",b.isDisabled()?"true":null);B(3);yg(b.filter.displayAs);B();G(b.metadata||b.countDisplay!==void 0?4:-1)}},dependencies:[Tx],styles:["[_nghost-%COMP%], label[_ngcontent-%COMP%]{display:block}.big-number[_ngcontent-%COMP%]{font-size:1.5rem;line-height:1;margin-top:4px;color:#1a73e8;color:var(--text-primary)}.big-number.muted[_ngcontent-%COMP%]{color:#80868b;color:var(--gfx-muted)}button.stat-card[_ngcontent-%COMP%]{border-radius:4px;border:1px solid;border-color:#dadce0;border-color:var(--divider);padding:8px 16px;cursor:pointer}button.stat-card[_ngcontent-%COMP%]:focus-visible, button.stat-card[_ngcontent-%COMP%]:hover{box-shadow:0 0 0 1px #1a73e8;box-shadow:0 0 0 1px var(--primary)}button.stat-card[aria-pressed=true][_ngcontent-%COMP%]{background-color:#e8f0fe;background-color:var(--primary-c50);border-color:#1a73e8;border-color:var(--primary)}button.stat-card[aria-pressed=true][_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}button.stat-card[disabled][_ngcontent-%COMP%]{cursor:default;background-color:#f8f9fa;background-color:var(--c50);border-color:transparent;box-shadow:none}button.stat-card[disabled][_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}\n/*# sourceMappingURL=qif_stat.css.map */"],
changeDetection:0});var ZLd=function(){};ZLd.\u0275fac=function(a){return new (a||ZLd)};ZLd.\u0275mod=$e({type:ZLd});ZLd.\u0275inj=Fc({imports:[WO,DL,Ly,mB]});var $Ld=function(){var a=this;this.issueFridge=p(XP);this.activeSession=p(uu);this.QuickFilterKey=icd;this.query$=new uf(1);this.issues$=this.query$.pipe(yf(function(b){return a.issueFridge.watchMany(b)}),A(function(b){if(a.entityType==="issue")return b.results;var c;return Pmd(b.results,(c=a.activeSession.getTracker())==null?void 0:c.trackerId)}))};da.Object.defineProperties($Ld.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.query$.next(a)}}});
$Ld.\u0275fac=function(a){return new (a||$Ld)};
$Ld.\u0275cmp=D({type:$Ld,selectors:[["stat-cards-list"]],inputs:{prefKey:"prefKey",entityType:"entityType",query:"query"},standalone:!1,decls:17,vars:40,consts:[[1,"flex-kids-x","gap"],[3,"key","prefKey","computeCountFor"]],template:function(a,b){a&1&&(K(0,"div",0),M(1,"qif-stat",1),T(2,"async"),M(3,"qif-stat",1),T(4,"async"),M(5,"qif-stat",1),T(6,"async"),M(7,"qif-stat",1),T(8,"async"),M(9,"qif-stat",1),T(10,"async"),M(11,"qif-stat",1),T(12,"async"),M(13,"qif-stat",1),T(14,"async"),M(15,"qif-stat",
1),T(16,"async"),L());a&2&&(B(),I("key",b.QuickFilterKey.OPEN)("prefKey",b.prefKey)("computeCountFor",U(2,24,b.issues$)),B(2),I("key",b.QuickFilterKey.BROAD_IN_PROGRESS)("prefKey",b.prefKey)("computeCountFor",U(4,26,b.issues$)),B(2),I("key",b.QuickFilterKey.ASSIGNED_TO_ME_AND_OPEN)("prefKey",b.prefKey)("computeCountFor",U(6,28,b.issues$)),B(2),I("key",b.QuickFilterKey.NEWLY_FILED)("prefKey",b.prefKey)("computeCountFor",U(8,30,b.issues$)),B(2),I("key",b.QuickFilterKey.RECENTLY_ACTIVE)("prefKey",b.prefKey)("computeCountFor",
U(10,32,b.issues$)),B(2),I("key",b.QuickFilterKey.HIGH_PRIORITY)("prefKey",b.prefKey)("computeCountFor",U(12,34,b.issues$)),B(2),I("key",b.QuickFilterKey.TRENDING)("prefKey",b.prefKey)("computeCountFor",U(14,36,b.issues$)),B(2),I("key",b.QuickFilterKey.PROGRESS)("prefKey",b.prefKey)("computeCountFor",U(16,38,b.issues$)))},dependencies:[s1,Tx],styles:["[_nghost-%COMP%]{display:block;padding-left:1px}\n/*# sourceMappingURL=stat_cards_list.css.map */"],changeDetection:0});var aMd=function(){var a=this;this.metadataFridge=p(vO);this.QuickFilterKey=icd;this.id$=new uf(1);this.metadata$=this.id$.pipe(yf(function(b){return a.metadataFridge.watch(b)}));this.hasDescendants$=this.metadata$.pipe(A(function(b){var c;return((c=b==null?void 0:b.descendantCount)!=null?c:0)>0}))};da.Object.defineProperties(aMd.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a);this.idInternal=a},get:function(){return this.idInternal}}});
aMd.\u0275fac=function(a){return new (a||aMd)};aMd.\u0275cmp=D({type:aMd,selectors:[["stat-cards-project"]],inputs:{id:"id"},standalone:!1,decls:2,vars:3,consts:[[1,"flex-kids-x","gap"],[3,"key","prefKey","metadata"]],template:function(a,b){a&1&&(F(0,sEb,5,10,"div",0),T(1,"async"));a&2&&G(U(1,1,b.hasDescendants$)?0:-1)},dependencies:[s1,Tx],styles:["[_nghost-%COMP%]{display:block;padding-left:1px}\n/*# sourceMappingURL=stat_cards_project.css.map */"],changeDetection:0});var t1=function(){};t1.\u0275fac=function(a){return new (a||t1)};t1.\u0275mod=$e({type:t1});t1.\u0275inj=Fc({imports:[WO,DL,Ly,mB,Y0,ZLd]});var bMd={CANCEL:"CANCEL",ARCHIVE_ALL:"ARCHIVE_ALL",ARCHIVE_ONE:"ARCHIVE_ONE"},cMd=function(){this.data=p(TA);this.paths=p(hW);this.descendantIssuesUrl=this.paths.listIssues({q:"parentId:"+this.data.issueId+"+"});this.numberOfDescendants=this.data.numberOfDescendants;this.ActionType=bMd};cMd.\u0275fac=function(a){return new (a||cMd)};
cMd.\u0275cmp=D({type:cMd,selectors:[["b-issue-archive-dialog"]],standalone:!1,decls:18,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["href","http://go/b-issue-archive","target","_blank"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"matDialogClose"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium",3,"matDialogClose"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Archive with all descendant issues?"),
L(),K(2,"div",1),Q(3),M(4,"br")(5,"br"),K(6,"a",2),Q(7,"View all descendant issues"),L(),M(8,"br"),K(9,"a",3),Q(10,"Learn more"),L()(),K(11,"div",4)(12,"button",5),Q(13,"Cancel"),L(),K(14,"button",5),Q(15," Just this one "),L(),K(16,"button",6),Q(17," Archive all "),L()());a&2&&(B(3),S(" This issue has ",b.numberOfDescendants," descendant issues. Archiving only this issue may make it difficult to find them later. Do you want to archive this issue with all descendant issues? "),B(3),I("href",Dg(b.descendantIssuesUrl),
Ne),B(6),I("matDialogClose",b.ActionType.CANCEL),B(2),I("matDialogClose",b.ActionType.ARCHIVE_ONE),B(2),I("matDialogClose",b.ActionType.ARCHIVE_ALL))},dependencies:[kB,gB,VA,XA,ZA,YA],encapsulation:2});var u1=function(){this.issueApi=p(MP);this.dialog=p(UA);this.confirmationDialogService=p(dS);this.issueRelationshipsFridge=p(mQ);this.issueFullFridge=p(gQ);this.eventsForIssueFridge=p(NP);this.paths=p(hW);this.butterBar=p(UN);this.editIssueService=p(GS)};
u1.prototype.submitArchivalState=function(a,b){var c=this;return y(function(d){if(d.nextAddress==1)return b?z(d,c.archive(a),5):z(d,c.editIssueService.unarchive(a),0);c.issueFullFridge.poke(a);c.eventsForIssueFridge.poke(a);ae(d)})};
u1.prototype.archive=function(a){var b=this,c,d,e,f,g,k,l,r,w,x;return y(function(C){if(C.nextAddress==1)return z(C,Promise.all([b.getDescendants(a),fe(b.issueFullFridge.watch(a))]),2);c=C.yieldResult;d=m(c);e=d.next().value;f=d.next().value;g=e;k=f;l=g;r=l.childToParents;w=l.completeResult;x=[].concat(q(r.keys()));r.set(a,k.parentIssueIds||[]);return x.length===0?C.return(dMd(b,a,r)):w?C.return(eMd(b,a,x,r)):C.return(fMd(b,a,r))})};
var eMd=function(a,b,c,d){var e,f,g;return y(function(k){if(k.nextAddress==1)return e={numberOfDescendants:c.length,issueId:b},f={data:e,width:"500px"},z(k,fe(SA(a.dialog.open(cMd,f))),2);g=k.yieldResult;switch(g){case "ARCHIVE_ALL":return k.return(gMd(a,[b].concat(q(c)),d));case "ARCHIVE_ONE":return k.return(dMd(a,b,d));case "CANCEL":return k.return();default:return k.return(wb(g))}})},gMd=function(a,b,c){var d=[{issueIds:b,actions:[{fieldName:"isArchived",value:"true"}]}];hMd(a,c);Rr(a.butterBar,
"Archiving "+b.length+" issues...");return a.issueApi.issueBulkEdit({bulkEditOps:d}).then(function(){Rr(a.butterBar,"Archived "+b.length+" issues successfully.")}).catch(function(e){a.butterBar.showWarning(e);iMd(a,c)})},dMd=function(a,b,c){hMd(a,c);return a.issueApi.updateIssue(b,{issueId:b,actions:[{fieldName:"isArchived",value:"true"}]}).then(function(){Rr(a.butterBar,"Archived successfully.")}).catch(function(d){a.butterBar.showWarning(d);iMd(a,c)})},fMd=function(a,b,c){return new Promise(function(d){a.confirmationDialogService.open({title:"Archive issue with descendant issues?",
content:Dh([Bh("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."),Eh("br",{}),Eh("br",{}),Eh("a",{href:a.paths.listIssues({q:"parentId:"+b+"+"}),target:"_blank"},"View all descendant issues"),Eh("br",{}),Eh("a",{href:"http://go/b-issue-archive",target:"_blank"},"Learn more")]),cancelButtonText:"Cancel",confirmButtonText:"Just this one",
onConfirm:function(){dMd(a,b,c).then(d)},onDismiss:d})})},hMd=function(a,b){b=m(b.entries());for(var c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;d=m(d);for(var e=d.next();!e.done;e=d.next())a.issueRelationshipsFridge.unlinkFromParent(c,e.value,!0)}},iMd=function(a,b){b=[].concat(q(b.values())).flat();b=m(b);for(var c=b.next();!c.done;c=b.next())a.issueRelationshipsFridge.poke(c.value)};
u1.prototype.getDescendants=function(a){var b=this,c,d,e,f,g,k,l,r,w,x,C,H;return y(function(J){if(J.nextAddress==1)return z(J,fe(Hhd(b.issueRelationshipsFridge,a)),2);c=J.yieldResult;d=c.results;e=!0;f=new Map;g=m(d);for(k=g.next();!k.done;k=g.next()){l=k.value;r=m(l.relatedChildren);for(w=r.next();!w.done;w=r.next())x=w.value,C=void 0,H=(C=f.get(x.targetIssueId))!=null?C:[],H.push(l.issueId),f.set(x.targetIssueId,H);l.totalChildCount===l.relatedChildren.length||(e=!1)}return J.return({childToParents:f,
completeResult:e})})};u1.\u0275fac=function(a){return new (a||u1)};u1.\u0275prov=Dc({token:u1,factory:u1.\u0275fac,providedIn:"root"});var v1=function(a){this.pathToAncestor=a},Ht=function(a){return new v1(a.split(">"))},jMd=function(a,b){return new v1([].concat(q(a.pathToAncestor),[b]))};v1.prototype.hash=function(){return this.pathToAncestor.join(">")};v1.prototype.equals=function(a){return!!a&&mm(this.pathToAncestor,a.pathToAncestor)};var kMd=function(a,b){a=m(a.pathToAncestor.entries());for(var c=a.next();!c.done;c=a.next()){c=m(c.value);var d=c.next().value;if(c.next().value!==b.pathToAncestor[d])return!1}return!0};
v1.prototype.contains=function(a){return this.pathToAncestor.join(",").includes(a.pathToAncestor.join(","))};v1.prototype.some=function(a){return this.pathToAncestor.some(a)};v1.prototype.toString=function(){return this.hash()};
da.Object.defineProperties(v1.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 v1(this.pathToAncestor.slice(0,this.size-1))}},root:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[0]}}});var lMd=function(){var a=this;this.draftRows=new Map;this.changed$=new qf;this.counter=0;this.createId=function(){return String(a.counter++)}};lMd.prototype.create=function(a,b,c){var d=this.createId();b={type:"draft-issue",title:"",ancestorChain:jMd(a,d),level:a.size-1,issue$:b,afterDraftId:c==null?void 0:c.afterDraftId,afterIssueId:c==null?void 0:c.afterIssueId,id:d,saving:!1,draftStartedAt:new Date};this.set(a,b);return b};
lMd.prototype.get=function(a){var b;return(b=this.draftRows.get(a.hash()))!=null?b:[]};lMd.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=m(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 mMd=function(a,b){return y(function(c){return c.return(fe(a.changed$.pipe(xf(a.draftRows),A(function(d){return![].concat(q(d.values())).flat().some(function(e){return e.issueId===b||e.id===b})}),ue(Boolean),A(function(){}))))})};lMd.prototype.isSaving=function(){return[].concat(q(this.draftRows.values())).flat().some(function(a){return a.saving})};lMd.prototype.set=function(a,b){var c=this.get(a);this.draftRows.set(a.hash(),[].concat(q(c),[b]));this.changed$.next(this.draftRows)};var nMd={defaultExpandedChildren:10,defaultExpansionLevel:3,maxExpansion:500},oMd=function(a){var b=void 0;b=b===void 0?nMd:b;a=a===void 0?{}:a;this.config=b;this.expansionState=this.initialState=a;this.changed$=new uf(1)},pMd=function(a,b){b=b.hash();return a.expansionState[b]},qMd=function(a,b,c){b=b.hash();c===void 0?delete a.expansionState[b]:a.expansionState[b]=c;a.changed$.next(a.expansionState)},rMd=function(a,b,c){var d=!1;c=m(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=jMd(b,
e.nodeId);e.size<=a.config.defaultExpansionLevel&&pMd(a,e)===void 0&&(a.expansionState[f.hash()]=a.config.defaultExpandedChildren,d=!0);for(var g=m(Object.entries(a.expansionState)),k=g.next();!k.done;k=g.next()){k=m(k.value);var l=k.next().value;k=k.next().value;l=Ht(l);l.contains(e)&&(d=l.pathToAncestor.join(",").replace(e.pathToAncestor.join(","),f.pathToAncestor.join(",")).split(","),d=new v1(d),delete a.expansionState[l.hash()],a.expansionState[d.hash()]=k,d=!0)}}if(!pMd(a,b)){var r;a.expansionState[b.hash()]=
(r=a.config.defaultExpandedChildren)!=null?r:a.config.maxExpansion;d=!0}d&&a.changed$.next(a.expansionState)};var w1=function(){this.issueApi=p(MP);this.activeSession=p(uu);this.issueFullFridge=p(gQ);this.componentFridge=p(RO);this.componentTemplatesFridge=p(XO);this.currentUser=xm(this.activeSession.getUserEmail())},tMd=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,sMd(a,b),2);c=f.yieldResult;d=c.component;e=c.defaultTemplate;return f.return(o2a(d,e))})},vMd=function(a,b){return uMd(a,b).pipe(A(function(c){return{snapshot:[c],issueId:"",version:0,userData:void 0,aggregatedData:void 0,
accessLimit:void 0,customFields:[],visibleFields:[],majorModifiedTimeMicros:0,parentIssueIds:[],ancestors:new Map,childIssueCount:0,isArchived:!1,relatedLinks:[],descendantCount:0,openDescendantCount:0}}))},wMd=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1)return z(e,fe(uMd(a,b)),2);d=e.yieldResult;d.title=c;return e.return(a.create(d))})};
w1.prototype.create=function(a){var b=this,c,d;return y(function(e){return e.nextAddress==1?z(e,b.issueApi.createIssue({snapshot:a}),2):e.nextAddress!=3?(c=e.yieldResult,d=c.issueId,z(e,b.issueFullFridge.poke(String(d)),3)):e.return({issueId:String(d)})})};
var uMd=function(a,b){return a.issueFullFridge.watch(b).pipe(ue(Pm),yf(function(c){var d,e;return y(function(f){if(f.nextAddress==1)return z(f,sMd(a,String(c.snapshot[0].componentId)),2);d=f.yieldResult;if(c){var g={};c.snapshot[0].priority&&(g.priority=c.snapshot[0].priority);c.snapshot[0].severity&&(g.severity=c.snapshot[0].severity);c.snapshot[0].type&&(g.type=Dhd[c.snapshot[0].type])}else g={};e=Object.assign({},{componentId:d.component.componentId},{inProd:!1,status:"NEW",isDeleted:!1,deletionReason:"DELETION_REASON_UNSPECIFIED",
isArchived:!1,formattingMode:"UNSPECIFIED_FORMATTING_MODE",reporterUser:a.currentUser,ccUsers:[a.currentUser]},g,xMd(d.defaultTemplate),yMd(d.component,d.defaultTemplate));e.assigneeUser&&(e.status="ASSIGNED");return f.return(e)})}))},xMd=function(a){if(!a)return{};a=aj(a.snapshot,function(b){return b==null||typeof b==="string"&&ya(b)?!1:!0});delete a.componentId;return a},yMd=function(a,b){var c=[],d,e;a=m((e=(d=a.componentPathInfo)==null?void 0:d.allCustomField)!=null?e:[]);e=a.next();for(d={};!e.done;d=
{customField$jscomp$16:void 0},e=a.next())if(d.customField$jscomp$16=e.value,d.customField$jscomp$16.required){var f=void 0;e=(f=d.customField$jscomp$16.typedDefaultValue)!=null?f:{customFieldId:d.customField$jscomp$16.customFieldId};var g=f=void 0,k=void 0,l=(k=(f=b)==null?void 0:(g=f.snapshot.customField)==null?void 0:g.find(function(r){return function(w){return w.customFieldId===r.customField$jscomp$16.customFieldId}}(d)))!=null?k:e;l&&c.push(Object.assign({},l))}return c.length===0?{}:{customField:c}},
sMd=function(a,b){var c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1)return z(l,Promise.all([fe(a.componentTemplatesFridge.defaultTemplate$(b)),fe(a.componentFridge.watch(b).pipe(ue(Pm)))]),2);c=l.yieldResult;d=m(c);e=d.next().value;f=d.next().value;g=e;k=f;return l.return({component:k,defaultTemplate:g})})};w1.\u0275fac=function(a){return new (a||w1)};w1.\u0275prov=Dc({token:w1,factory:w1.\u0275fac,providedIn:"root"});var x1=function(a,b,c,d,e,f,g,k,l,r,w,x,C,H,J){c=c===void 0?1:c;Z.call(this);var O=this;this.rootIssueId=a;this.quickFilters=b;this.defaultExpansionLevel=c;this.saveExpansionAtKey=d;this.analytics=e;this.butterBar=f;this.issueFullFridge=g;this.issuePicker=k;this.issueRelationshipsFridge=l;this.paths=r;this.router=w;this.issueCreationService=x;this.clearcut=C;this.refreshMonitor=H;this.permissionsFridge=J;this.defaultExpandedChildren=10;this.isOneLineCreationSupported=function(){return O.supportsOneLineCreation};
this.defaultApiRequestDepth=this.defaultExpansionLevel+2;a=this.saveExpansionAtKey?uo(this.saveExpansionAtKey):function(){};this.expansion=new oMd(zMd(this));this.draftRows=new lMd;this.refetchingAll$=new Mj(!1);this.userRequestedRefresh$=this.refreshMonitor.getObservable().pipe(Cf(ne(function(){return O.rows$})),yf(function(R){R=m(R);R.next();var V=R.next().value;O.refetchingAll$.next(!0);R=[];if(!V)return Promise.resolve();R.push(Ihd(O.issueRelationshipsFridge,O.rootIssueId,O.defaultApiRequestDepth));
V=m(V);for(var ca=V.next();!ca.done;ca=V.next())ca=ca.value,ca.type==="data"&&R.push(O.issueFullFridge.poke(ca.id)),ca.level>O.defaultExpansionLevel&&R.push(O.issueRelationshipsFridge.poke(ca.id));return Promise.all(R).then(function(){O.refetchingAll$.next(!1)})}));this.rows$=te(this.draftRows.changed$,this.expansion.changed$,this.userRequestedRefresh$,rha(ce({}),Dr)).pipe(yf(function(){return Hhd(O.issueRelationshipsFridge,O.rootIssueId,O.defaultApiRequestDepth)}),yf(function(){for(var R=new Map,
V=m(Object.entries(O.expansion.expansionState)),ca=V.next();!ca.done;ca=V.next()){ca=m(ca.value);var na=ca.next().value;ca=ca.next().value;na=Ht(na).nodeId;var ua=void 0;ca=Math.max(ca,(ua=R.get(na))!=null?ua:0);R.set(na,ca)}return AMd(O,R)}),hf(this.quickFilters.value$),yf(function(R){R=m(R);var V=R.next().value;var ca=R.next().value;return ca.size===0?(O.hiddenRowCount$.next(0),ce(V)):O.getAllIssues(V).pipe(A(function(na){return BMd(O,V,ca,na)}))}),A(function(R){return CMd(O,R)}),vf({refCount:!0,
bufferSize:1}));this.hiddenRowCount$=new Mj(0);this.rootIssue$=this.issueFullFridge.watch(this.rootIssueId).pipe(ue(Pm));this.ROOT_ROW={type:"data",id:this.rootIssueId,level:-1,ancestorChain:new v1([this.rootIssueId]),expandedCount:500,issue$:rx,hasChildren$:rx,isEditMode:!1,issuePermissions$:rx};this.supportsOneLineCreation=fe(this.rootIssue$).then(function(R){return N$a(R.snapshot[0].componentId)}).then(function(R){return tMd(O.issueCreationService,R)});this.saveExpansionAtKey&&this.subscriptions.add(this.expansion.changed$.pipe(jf(100)).subscribe(a))};
Y(x1,Z);x1.\u0275dir=Z.\u0275dir;x1.\u0275fac=Z.\u0275fac;
var zMd=function(a){a=a.saveExpansionAtKey;if(a!=null){a=to(a)();a:if(typeof a!=="object"||Object.getPrototypeOf(a)!==Object.prototype)var b=!1;else{b=m(Object.getOwnPropertyNames(a));for(var c=b.next();!c.done;c=b.next())if(c=c.value,!c||typeof a[c]!=="number"){b=!1;break a}b=!0}return b?a:void 0}},DMd=function(a,b,c){b=b===void 0?a.ROOT_ROW.ancestorChain:b;var d,e,f,g,k,l,r;y(function(w){switch(w.nextAddress){case 1:return d=b.nodeId,z(w,fe(a.issueFullFridge.watch(d)),2);case 2:return(e=w.yieldResult)?
z(w,a.supportsOneLineCreation,3):w.return();case 3:if(f=w.yieldResult)return g=vMd(a.issueCreationService,d),w.return(a.draftRows.create(b,g,c));k=e.snapshot[0].componentId;r={};return z(w,Ft(a.router,a.paths.createIssue((r.component=k||void 0,r.parentIssueId=e.issueId,r.redirectUrl=qs.issueDependencies.makeHref(a.rootIssueId),r.afterIssueId=(l=c)==null?void 0:l.afterIssueId,r))),4);case 4:return w.return()}})};
x1.prototype.addExistingChild=function(a){var b=this,c,d,e,f;y(function(g){if(g.nextAddress==1)return z(g,fe((d=(c=a)==null?void 0:c.issue$)!=null?d:b.rootIssue$),2);e=g.yieldResult;if(!e)return g.return();f=String(e.issueId);return z(g,b.issuePicker.open({title:"Add Children of b/"+f,allowMultipleIds:!0,edgeType:"child"},function(k){return y(function(l){if(l.nextAddress==1){if(k.length===0)return l.return();b.assignParentToIssues(f,k);b.analytics.trackEvent("editIssue","add","existing-child-issue");
return z(l,os(0),2)}a&&qMd(b.expansion,a.ancestorChain,500);ae(l)})}),0)})};x1.prototype.saveDraft=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1){if(a.saving||!a.title)return d.return();a.saving=!0;return z(d,EMd(b,a),2)}return(c=d.yieldResult)?d.return(FMd(b,a,c)):d.return()})};
var EMd=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return c=b.ancestorChain.parentNodeId,Wd(g,2),z(g,wMd(a.issueCreationService,c,b.title),4);case 4:e=g.yieldResult;d=e.issueId;dt(g,3);break;case 2:return f=$d(g),a.butterBar.showWarning("Could not create issue. Error: "+JSON.stringify(f)),a.draftRows.remove(b),g.return();case 3:var k=(new Date).getTime()-b.draftStartedAt.getTime();if(k>0){var l=Math.min(k,108E5);ahd("createIssue",l,"from-tree");a.analytics.trackEvent("createIssue",
"createIssue","time-to-create-from-tree",l);ZP(a.clearcut,k,"createIssue-fromTree")}qMd(a.expansion,b.ancestorChain.parentChain,500);k=a.draftRows;l=d;b.issueId=l;for(var r=m(k.draftRows.values()),w=r.next();!w.done;w=r.next()){w=m(w.value);for(var x=w.next();!x.done;x=w.next())x=x.value,x.afterDraftId===b.id&&(x.afterIssueId=l)}k.changed$.next(k.draftRows);return g.return(d)}})},FMd=function(a,b,c){var d,e,f,g,k,l;return y(function(r){if(r.nextAddress==1)return d=b.ancestorChain.parentNodeId,f=(e=
b.afterIssueId)!=null?e:b.afterDraftId,f===void 0||f==="-1"?r.jumpTo(2):z(r,mMd(a.draftRows,f),2);if(r.nextAddress!=4)return z(r,a.issueRelationshipsFridge.assignParentToIssues(d,[{issueId:c,afterIssueId:b.afterIssueId}]),4);g=r.yieldResult;k=g.errors;((l=k)==null?0:l.length)&&a.butterBar.showWarning("Could not create issue relationship. Error: "+JSON.stringify(k));a.draftRows.remove(b);ae(r)})},AMd=function(a,b,c){c=c===void 0?0:c;return ie([a.rootIssueId].concat(q(b.keys())).map(function(d){return a.refetchingAll$.pipe(ue(function(e){return!e}),
yf(function(){return Ghd(a.issueRelationshipsFridge,d)}))})).pipe(yf(function(d){var e=new Map;d=m(d);for(var f=d.next();!f.done;f=d.next())(f=f.value)&&e.set(f.issueId,f);if(c===a.defaultExpansionLevel)return ce(e);d=GMd(a,e,c);d=new Map(d.map(function(g){return[g,a.defaultExpandedChildren]}));return AMd(a,d,c+1).pipe(A(function(g){var k=new Map(e);g=m(g.entries());for(var l=g.next();!l.done;l=g.next()){var r=m(l.value);l=r.next().value;r=r.next().value;k.set(l,r)}return k}))}))},GMd=function(a,
b,c){var d=[];a=[{id:a.rootIssueId,level:-1}];for(var e={};a.length>0;e={current$jscomp$53:void 0})if(e.current$jscomp$53=a.pop(),e.current$jscomp$53.level===c&&d.push(e.current$jscomp$53.id),!(e.current$jscomp$53.level>c)){var f=void 0,g=void 0,k=(g=(f=b.get(e.current$jscomp$53.id))==null?void 0:f.relatedChildren)!=null?g:[];a.push.apply(a,q(k.map(function(l){return function(r){return{id:r.targetIssueId,level:l.current$jscomp$53.level+1}}}(e))))}return d},CMd=function(a,b){for(var c=[],d=[a.ROOT_ROW],
e={};d.length>0;e={parentRow$jscomp$1:void 0,childrenLevel:void 0})if(e.parentRow$jscomp$1=d.pop(),e.parentRow$jscomp$1.type==="load-more-children"||e.parentRow$jscomp$1.type==="draft-issue")c.push(e.parentRow$jscomp$1);else{e.parentRow$jscomp$1.id!==a.rootIssueId&&c.push(e.parentRow$jscomp$1);var f=void 0,g=void 0,k=(g=(f=b.get(e.parentRow$jscomp$1.id))==null?void 0:f.relatedChildren)!=null?g:[];f=k.slice(0,e.parentRow$jscomp$1.expandedCount);e.childrenLevel=e.parentRow$jscomp$1.level+1;e.parentRow$jscomp$1.expandedCount&&
f.length<k.length&&(g=jMd(e.parentRow$jscomp$1.ancestorChain,"load-more-children"),d.push({type:"load-more-children",id:g.hash(),level:e.childrenLevel,parentIssue$:e.parentRow$jscomp$1.issue$,ancestorChain:g,truncatedSiblingCount:k.length-f.length}));k=f.map(function(l){return function(r){var w=jMd(l.parentRow$jscomp$1.ancestorChain,r.targetIssueId);return{type:"data",id:r.targetIssueId,level:l.childrenLevel,hasChildren$:a.issueRelationshipsFridge.watch(r.targetIssueId).pipe(A(o3a)),ancestorChain:w,
expandedCount:HMd(a,w,l.childrenLevel,b),issue$:a.issueFullFridge.watch(r.targetIssueId),isEditMode:!1,issuePermissions$:a.permissionsFridge.watch(cq(r.targetIssueId)).pipe(A(function(x){return x!=null?x:Jjd}),xf(Jjd))}}}(e));d.push.apply(d,q(IMd(a,k,e.parentRow$jscomp$1.ancestorChain).reverse()))}return c},IMd=function(a,b,c){var d=[].concat(q(b));a=a.draftRows.get(c);a=m(a);var e=a.next();for(c={};!e.done;c={draft$jscomp$8:void 0},e=a.next())c.draft$jscomp$8=e.value,b.some(function(f){return function(g){return g.id===
f.draft$jscomp$8.issueId}}(c))||(e=d.findIndex(function(f){return function(g){return g.id===f.draft$jscomp$8.afterDraftId||g.id===f.draft$jscomp$8.afterIssueId}}(c)),d.splice(e===-1?d.length:e+1,0,c.draft$jscomp$8));return d},HMd=function(a,b,c,d){var e=b.nodeId;b=pMd(a.expansion,b);if(b!==void 0)return b;if(c<a.defaultExpansionLevel){var f,g;return Math.min(a.defaultExpandedChildren,(g=(f=d.get(e))==null?void 0:f.relatedChildren.length)!=null?g:0)}return 0};
x1.prototype.assignParentToIssues=function(a,b){var c=this,d,e,f,g;return y(function(k){if(k.nextAddress==1)return b.length===0?k.return():z(k,c.issueRelationshipsFridge.assignParentToIssues(a,b.map(function(l){return{issueId:l,afterIssueId:"-1"}})),2);d=k.yieldResult;e=d.notAdded;f=d.errors;if(e.length)return c.butterBar.showWarning("Could not add "+e+" as child of b/"+a+". "+((g=f)==null?void 0:g.map(function(l){return Qp(l)}))),k.return();ae(k)})};
x1.prototype.getAllIssues=function(a){for(var b=this,c=new Set,d=m(a.keys()),e=d.next();!e.done;e=d.next())c.add(e.value);a=m(a.values());for(d=a.next();!d.done;d=a.next())for(d=d.value.relatedChildren.map(function(f){return f.targetIssueId}),d=m(d),e=d.next();!e.done;e=d.next())c.add(e.value);return ie([].concat(q(c)).map(function(f){return b.issueFullFridge.watch(f)})).pipe(A(function(f){return f.filter(Pm)}))};
var BMd=function(a,b,c,d){function e(l){if(!l)return!1;var r=f.get(l),w=g.get(l);if(!r||r.relatedChildren.length===0)return w;var x=r.relatedChildren.filter(function(C){return e(C.targetIssueId)});k+=r.relatedChildren.length-x.length;f.set(l,Object.assign({},r,{relatedChildren:x}));return x.length!==0||w}var f=new Map(b.entries()),g=new Map(d.map(function(l,r,w){return[l.issueId,xub(c,r,w)]})),k=0;e(a.rootIssueId);a.hiddenRowCount$.next(k);return f},y1=function(){this.analytics=p(eQ);this.butterBar=
p(UN);this.issueFullFridge=p(gQ);this.issuePicker=p(UX);this.issueRelationshipsFridge=p(mQ);this.paths=p(hW);this.router=p(fF);this.issueCreationService=p(w1);this.clearcut=p(YP);this.refreshMonitor=p(VP);this.permissionsFridge=p(CQ)};y1.prototype.create=function(a,b,c,d){b=b===void 0?new aR:b;return new x1(a,b,c,d,this.analytics,this.butterBar,this.issueFullFridge,this.issuePicker,this.issueRelationshipsFridge,this.paths,this.router,this.issueCreationService,this.clearcut,this.refreshMonitor,this.permissionsFridge)};
y1.\u0275fac=function(a){return new (a||y1)};y1.\u0275prov=Dc({token:y1,factory:y1.\u0275fac,providedIn:"root"});var MMd=function(a,b,c,d){var e=this;this.rootElement=a;this.rows=b;this.ngZone=c;this.rowSelectionModel=d;this.onLongHover$=new qf;this.onRowsMoved$=new qf;this.activeDrag=!1;this.placeholder=this.rootElement.querySelector(".placeholder");this.insertionBar=this.rootElement.querySelector(".insertion-bar");this.dragPreviewTemplate=this.rootElement.querySelector(".drag-preview");this.onDragOver=xHc(function(f,g){if(e.activeDrag){var k=f||0,l=g.getBoundingClientRect();f=l.height;k-=l.top;f=wEb(k<=f*
.25?"top":k>=f*.75?"bottom":"middle",g);g=f.position;f=f.rowElement;switch(g){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 r=(k=(r=f.querySelector(".title-location"))==null?void 0:r.getBoundingClientRect().left)?k-f.getBoundingClientRect().left:0;r=f.offsetLeft+r;k=g==="after"?f.offsetTop+f.offsetHeight:
f.offsetTop;l=f.getBoundingClientRect().width;e.insertionBar.style.display="block";e.placeholder.style.display="none";e.insertionBar.style.left=r+"px";e.insertionBar.style.top=k-1+"px";e.insertionBar.style.width=l-r+"px";break;case "none":e.placeholder.style.display="none",e.insertionBar.style.display="none"}e.currentReorderingGuide={rowElement:f,position:g};JMd(e,f,g)}},10);this.ngZone.runOutsideAngular(function(){a.addEventListener("dragover",function(f){var g,k=(g=f.target)==null?void 0:g.closest("tr");
if(k&&(e.onDragOver(f.clientY,k),k.classList.contains("dragging")||k.classList.contains("nodrop")))return!0;var l;if(((l=e.currentReorderingGuide)==null?void 0:l.position)==="none")return!0;f.preventDefault();return!1});a.addEventListener("dragend",function(){KMd(e)});a.addEventListener("drop",function(){e.reorder(e.currentReorderingGuide,LMd(e.rowSelectionModel),"mouse",4);KMd(e)})})};
MMd.prototype.handleDragStart=function(a){var b=this;this.activeDrag=!0;var c=a.target.closest("tr");this.rowSelectionModel.select(xEb(c));NMd(this.rowSelectionModel);OMd(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=this.rowSelectionModel.selectedCount===1?"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=m(a);for(c=a.next();!c.done;c=a.next())c.value.element.classList.add("dragging")};
var PMd=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)},QMd=function(a,b){var c=a.rows.toArray(),d=c.findIndex(function(f){return f.row.ancestorChain.equals(b.row.ancestorChain)});if(d!==-1&&d!==0){c=c.slice(0,d).reverse();c=m(c);for(d=c.next();!d.done;d=c.next()){d=d.value;if(d.row.type==="load-more-children"){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)}};
MMd.prototype.moveUp=function(a){var b=a.element.previousElementSibling;if(b){if(b.dataset.type==="load-more-children"){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)}};
MMd.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;b.row.type==="load-more-children"?PMd(this,a):(b=c&&b.row.level<vEb(c)?{position:"before",rowElement:c}:{position:"after",rowElement:b.element},this.reorder(b,[a.row.ancestorChain],"keyboard",1))}};
MMd.prototype.onKeydown=function(a){if(a.ctrlKey){var b,c=(b=a.target)==null?void 0:b.closest("tr");if(c){var d=xEb(c);if(b=this.rows.toArray().find(function(e){return e.row.ancestorChain.equals(d)}))switch(a.key){case "ArrowLeft":PMd(this,b);break;case "ArrowRight":QMd(this,b);break;case "ArrowUp":this.moveUp(b);break;case "ArrowDown":this.moveDown(b)}}}};
MMd.prototype.reorder=function(a,b,c,d){var e=this;if(a){var f=xEb(a.rowElement),g=void 0,k=f;switch(a.position){case "current":k=f;g={parentId:f.nodeId};break;case "before":case "after":k=f.parentChain,g={parentId:f.parentNodeId,position:{issueId:f.nodeId,position:a.position}}}this.ngZone.run(function(){b.length&&g&&e.onRowsMoved$.next({movedRows:b,insertAt:g,parentAncestorChain:k,origin:c,actionMessage:uEb(d)})})}};
var KMd=function(a){for(var b=m(a.rootElement.querySelectorAll("tr.dragging")),c=b.next();!c.done;c=b.next())c.value.classList.remove("dragging");b=m(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;(d=a.updatingNoDropRows)==null||d.unsubscribe();var e,f;(e=a.dragPreview)==null||(f=e.parentElement)==null||f.removeChild(a.dragPreview);
a.activeDrag=!1},JMd=function(a,b,c){if(c!=="current")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(Date.now()-a.longHoveredRow.enterTime>=1E3&&!a.longHoveredRow.emitted){var d=a.rows.toArray().find(function(e){return xEb(b).equals(e.row.ancestorChain)});d&&(a.ngZone.run(function(){a.onLongHover$.next(d)}),a.longHoveredRow.emitted=!0)}},OMd=function(a){var b;
(b=a.updatingNoDropRows)==null||b.unsubscribe();a.updatingNoDropRows=a.rows.changes.pipe(xf(null)).subscribe(function(){var c=a.rows.toArray(),d=new Set(a.rowSelectionModel.selectedRows.map(function(f){return f.nodeId}));c=m(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 z1=function(){Z.call(this);var a=this;this.analytics=p(eQ);this.dragStarted$=new qf;this.onRowsMoved$=new qf;te(this.dragStarted$,this.onRowsMoved$).pipe(S5a(),zf(this.destroyed$)).subscribe(function(b){var c=b[b.length-1].timestamp-b[0].timestamp;b=tq(b.map(function(d){return d.event.origin}));b=b.length===1?b[0]:"mixed";a.analytics.trackEvent("editIssue","reorderChildren",b);ahd("reorderChildren",c,b)})};Y(z1,Z);z1.\u0275dir=Z.\u0275dir;z1.\u0275fac=function(a){return new (a||z1)};
z1.\u0275prov=Dc({token:z1,factory:z1.\u0275fac,providedIn:"root"});var RMd=function(){this.changed$=new qf;this.selectedRowHashes=new Set;this.isSelectedObservableMap=new Map};RMd.prototype.init=function(a){this.visibleRows=a};RMd.prototype.isSelected=function(a){return this.selectedRowHashes.has(a.hash())};var mFb=function(a,b){var c=b.hash(),d,e=(d=a.isSelectedObservableMap.get(c))!=null?d:a.changed$.pipe(xf(a.selectedRowHashes),A(function(f){return f.has(b.hash())}),nf(),vf({refCount:!0,bufferSize:1}));a.isSelectedObservableMap.set(c,e);return e};
RMd.prototype.select=function(a){this.selectedRowHashes.add(a.hash());this.changed$.next(this.selectedRowHashes)};RMd.prototype.clear=function(){this.selectedRowHashes.clear();this.changed$.next(this.selectedRowHashes)};
var NMd=function(a){for(var b=a.visibleRows.toArray().map(function(k){return k.row.ancestorChain}),c=!1,d=m(a.selectedRowHashes.values()),e=d.next();!e.done;e=d.next()){e=Ht(e.value);for(var f=m(b),g=f.next();!g.done;g=f.next())g=g.value,kMd(e,g)&&(a.selectedRowHashes.add(g.hash()),c=!0)}c&&a.changed$.next(a.selectedRowHashes)},LMd=function(a){var b=a.visibleRows.toArray().map(function(f){return f.row});b=new Map(b.filter(function(f){return f.type==="data"}).map(function(f){return[f.ancestorChain.hash(),
f]}));var c=new Set([].concat(q(a.selectedRowHashes.values())).map(function(f){return Ht(f)}).map(function(f){return f.nodeId})),d=[];a=m(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};
da.Object.defineProperties(RMd.prototype,{selectedRows:{configurable:!0,enumerable:!0,get:function(){return[].concat(q(this.selectedRowHashes)).map(function(a){return Ht(a)})}},selectedCount:{configurable:!0,enumerable:!0,get:function(){return this.selectedRowHashes.size}}});var SMd=function(){return["active-indicator","load-more-children"]},YEb=function(){return[]},TMd=qs.listIssues.makeHref,UMd={type:"data",id:"",issue$:rx,hasChildren$:rx,ancestorChain:new v1([]),level:0,expandedCount:0,isEditMode:!1,issuePermissions$:rx},A1=function(){Z.call(this);var a=this;this.issueRelationshipsFridge=p(mQ);this.router=p(fF);this.butterBar=p(UN);this.analytics=p(eQ);this.issueArchiveService=p(u1);this.ngZone=p(Rg);this.elementRef=p(Hd);this.domSafe=p(mR);this.reorderingSessionTracker=
p(z1);this.cdr=p(bQ);this.relationsTableModelFactory=p(y1);this.liveAnnouncer=p(dz);this.clearcut=p(YP);this.paths=p(hW);this.checkBeforeExit=p(rY);this.IssueFieldType=xbd;this.defaultExpansionLevel=1;this.internalFilters=new aR;this.isClosed=ZTa;this.dataColumns=[];this.tableColumns=[];this.options={showActiveIndicator:!0,enableDragging:!0,showMenu:!0};this.trackBy=function(b,c){return c.ancestorChain.hash()+c.type};this.isLoadMoreRow=function(b,c){return c.type==="load-more-children"};this.isDataRow=
function(b,c){return c.type==="data"};this.isDraftRow=function(b,c){return c.type==="draft-issue"};this.selectionModel=new RMd;this.hasLogged=!1;this.correctedDisplayedRows=new gg;this.TITLE_FIXED_OFFSET_PX=42;this.EDITABLE_TITLE_OFFSET_PX=8;this.rowDirectiveMap=new Map;this.getRowIndex=function(b){var c;return((c=Ar(a.rows$))!=null?c:[]).findIndex(function(d){return tEb(d,b)})};this.showError=function(b){return function(c){a.butterBar.showWarning(b+". "+(Pp(c)?Qp(c):c))}};this.dataColumns=[].concat(q(MFd));
this.tableColumns=this.getRenderableColumns(this.dataColumns)};Y(A1,Z);A1.\u0275dir=Z.\u0275dir;
A1.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(sY(this.checkBeforeExit,function(){return a.tableModel.draftRows.isSaving()||a.issueRelationshipsFridge.isSaving()},!1));this.tableModel=this.relationsTableModelFactory.create(this.rootIssueId,this.internalFilters,this.defaultExpansionLevel,this.saveExpansionAtKey);this.rows$=rha([this.tableModel.rows$,ce([UMd])],qe).pipe(le(1),vf({refCount:!0,bufferSize:1}));var b=this.rows$.pipe(yf(function(c){return ie(c.filter(function(d){return d.type===
"data"}).map(function(d){return d.issue$}))}),jf(0,Dr));this.subscriptions.add(b.subscribe(function(c){a.cdr.detectChanges();VMd(a,c)}));this.rowReorderingModel=new MMd(this.elementRef.nativeElement,this.correctedDisplayedRows,this.ngZone,this.selectionModel);this.subscriptions.add(this.rowReorderingModel.onLongHover$.subscribe(function(c){var d=c.row;d.type==="load-more-children"?fFb(a,d):d.type==="data"&&(c=a.tableModel.expansion,d=d.ancestorChain,pMd(c,d)||qMd(c,d,10))}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){var d;
return y(function(e){if(e.nextAddress==1)return Mhd(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")),rMd(a.tableModel.expansion,c.parentAncestorChain,c.movedRows),z(e,fe(a.correctedDisplayedRows.changes.pipe(A(function(f){return f.find(function(g){return g.row.type==="data"&&g.row.ancestorChain.nodeId===
c.movedRows[0].nodeId&&g.row.ancestorChain.parentNodeId===c.insertAt.parentId})}),ue(Boolean),ve(6E4))),2);d=e.yieldResult;d.focus();ae(e)})}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){a.reorderingSessionTracker.onRowsMoved$.next(c)}))};
A1.prototype.getRenderableColumns=function(a){var b=[];this.options.showActiveIndicator&&b.push("active-indicator");this.options.enableSelection&&b.push("selection");this.options.enableDragging&&b.push("drag-handle");a=a.map(function(c){return c.type});b.push.apply(b,q(a));this.options.showMenu&&b.push("menu");return b};
var VMd=function(a,b){if(!a.hasLogged&&b.length!==0){a.hasLogged=!0;var c=b.length,d=document.querySelectorAll("b-issue-relations-table b-expandable-issue-title-cell .collapsed").length+document.querySelectorAll('b-issue-relations-table [data-type="load-more-children"]').length===0;Kgd(a.clearcut,"view-relations-"+(d?"all-loaded":"some-loaded"));a.analytics.trackEvent("editIssue","view-relations","visible-count",c);d&&(b=b.filter(function(e){var f;return(e==null?void 0:(f=e.snapshot[0])==null?void 0:
f.effort)!=null}).length/c,c=b>.5?"most-estimated":"most-unestimated",Kgd(a.clearcut,"view-relations-"+c),a.analytics.trackEvent("editIssue","view-relations","ratio-estimated",b),a.analytics.trackEvent("editIssue","view-relations",c))}};
A1.prototype.ngAfterViewInit=function(){var a=this;this.selectionModel.init(this.displayedRows);ie([this.rows$,this.displayedRows.changes]).pipe(zf(this.destroyed$)).subscribe(function(b){b=m(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);kg(a.correctedDisplayedRows)});this.focusManager=pz(new jxd(this.correctedDisplayedRows,
tEb))};A1.prototype.toggleExpansion=function(a){qMd(this.tableModel.expansion,a.ancestorChain,a.expandedCount?0:10)};A1.prototype.navigateToIssue=function(a,b){b.isEditMode||!b.id||a.defaultPrevented||a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1||a.target.tagName==="A"||(this.analytics.trackEvent("editIssue","navigate","to-child-issue"),b=qs.viewIssue.makeHref(b.id),bq(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Er(this.domSafe,b):Ft(this.router,b))};
var fFb=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return c=a.getRowIndex(b),qMd(a.tableModel.expansion,b.ancestorChain.parentChain,500),z(d,os(0),2);a.focusManager.setActiveItem(c);ae(d)})},aFb=function(a,b){return[{type:"action",label:"Continue on the create issue page",action:function(c){return WMd(a,c,b)},title:"Continue on the create issue page",icon:"arrow-forward"}]};
A1.prototype.getMenuItems=function(a){var b=this,c={type:"action",label:"Rename title",action:function(){a.isEditMode=!0;b.analytics.trackEvent("editIssue","three_dots_menu","rename_issue_title");b.cdr.detectChanges()},title:"Rename title",icon:"edit"};return a.issuePermissions$.pipe(A(function(d){return[{type:"action",label:"Go to issue",action:function(e){b.navigateToIssue(e,a)},title:"Go to issue",icon:"arrow-forward"}].concat(q(d.writer?[c]:[]),[{type:"action",label:"View Children",disabled:!Ar(a.hasChildren$),
action:function(){var e=TMd({q:"parentid:"+a.id});b.domSafe.openInNewTab(e)},title:"View the children of this issue on the main search page",icon:"pop-out"},{type:"action",label:"Create child",action:function(){zGb(b,a)},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(){XMd(b,a)},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(){QMd(b.rowReorderingModel,
b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Indent",icon:"arrow-right",hintText:"shift+ctrl+right"},{type:"action",label:"Unindent",action:function(){PMd(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(){YMd(b,a)},title:"Archive issue",
icon:"archive_24px"}])}))};A1.prototype.saveDraft=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1){if(!a.title)return e.return();b.tableModel.saveDraft(a);b.focusManager.setActiveItem(b.getRowIndex(a));return z(e,fe(b.displayedRows.changes.pipe(A(function(f){return f.find(function(g){return g.row.type==="data"&&g.row.id===a.issueId})}),ue(Boolean),ve(6E4))),2)}c=e.yieldResult;tEb((d=b.focusManager.activeItem)==null?void 0:d.row,a)&&b.focusManager.setActiveItem(c);ae(e)})};
var iFb=function(a,b){if(!b.saving){a.tableModel.draftRows.remove(b);var c;tEb((c=a.focusManager.activeItem)==null?void 0:c.row,b)&&a.focusManager.setPreviousItemActive()}},zGb=function(a,b){DMd(a.tableModel,b==null?void 0:b.ancestorChain,{afterIssueId:"-1"})},XMd=function(a,b){b.type==="data"?DMd(a.tableModel,b.ancestorChain.parentChain,{afterIssueId:b.id}):DMd(a.tableModel,b.ancestorChain.parentChain,{afterDraftId:b.id})};A1.prototype.addExistingChild=function(a){this.tableModel.addExistingChild(a)};
var ZMd=function(a){return a.tableColumns.map(function(b){return b==="TITLE"?"editable-title":b==="menu"?"save":b==="ISSUE_ID"?"empty-id":b})};A1.prototype.handleDragStart=function(a){this.reorderingSessionTracker.dragStarted$.next({origin:"mouse"});this.rowReorderingModel.handleDragStart(a)};
A1.prototype.onRowKeydown=function(a,b){var c=this,d;return y(function(e){switch(e.nextAddress){case 1:switch(b.keyCode){case 39:case 37:if(b.ctrlKey)break;a.type==="data"&&(c.toggleExpansion(a),b.preventDefault());a.type==="load-more-children"&&(fFb(c,a),b.preventDefault());break;case 13:return e.jumpTo(2)}e.jumpTo(3);break;case 2:return b.target.tagName!=="BUTTON"||b.shiftKey||b.metaKey?z(e,c.tableModel.isOneLineCreationSupported(),4):e.return();case 4:d=e.yieldResult;if(!d)return e.return();a.type===
"data"&&(b.shiftKey?zGb(c,a):XMd(c,a));a.type==="draft-issue"&&a.saving&&XMd(c,a);b.preventDefault();e.jumpTo(3);break;case 3:if(b.target.tagName==="INPUT")return e.return();c.focusManager.onKeydown(b);c.rowReorderingModel.onKeydown(b);ae(e)}})};
var WMd=function(a,b,c){var d,e,f,g,k,l,r,w;return y(function(x){if(x.nextAddress==1)return b.defaultPrevented||b.type==="mouseup"&&b instanceof MouseEvent&&b.button!==1?x.return():z(x,fe(c.issue$),2);d=x.yieldResult;r={};w=a.paths.createIssue((r.component=String((e=d)==null?void 0:e.snapshot[0].componentId),r.parentIssueId=c.ancestorChain.parentChain.nodeId,r.redirectUrl=qs.issueDependencies.makeHref(a.rootIssueId),r.afterIssueId=c.afterIssueId,r.title=c.title,r.priority=(k=(f=d)==null?void 0:f.snapshot[0].priority)!=
null?k:void 0,r.type=(l=(g=d)==null?void 0:g.snapshot[0].type)!=null?l:void 0,r));if(bq(b))return iFb(a,c),a.domSafe.openInNewTab(w),x.return();if(b&&b.shiftKey)return iFb(a,c),Er(a.domSafe,w),x.return();Ft(a.router,w);ae(x)})},YMd=function(a,b){var c,d;y(function(e){if(e.nextAddress==1)return a.analytics.trackEvent("editIssue","update","archive-child-issue"),c=a.getRowIndex(b),a.issueArchiveService.archive(b.id),z(e,fe(a.rows$.pipe(A(function(f){return!f.find(function(g){return g.type==="data"&&
g.id===b.id})}),ue(Boolean),ve(6E4))),2);tEb((d=a.focusManager.activeItem)==null?void 0:d.row,b)&&a.focusManager.setActiveItem(c);ae(e)})};
A1.prototype.unlinkFromParent=function(a){var b=this,c,d;return y(function(e){c=a.ancestorChain.nodeId;d=a.ancestorChain.parentNodeId;b.analytics.trackEvent("editIssue","update","unlink-child-issue");return z(e,b.issueRelationshipsFridge.unlinkFromParent(c,d).then(function(){Rr(b.butterBar,"Unlinked successfully.")}).catch(b.showError("Failed to unlink child "+c+" from parent "+d)),0)})};A1.prototype.isOpen=function(a){return jo(a)};
A1.prototype.getAssigneeString=function(a){var b,c;return M$a(wm(a==null?void 0:(b=a.snapshot)==null?void 0:(c=b[0])==null?void 0:c.assigneeUser)||void 0)};
da.Object.defineProperties(A1.prototype,{filters:{configurable:!0,enumerable:!0,set:function(a){this.internalFilters.reset(a!=null?a:[])}},hiddenRowCount$:{configurable:!0,enumerable:!0,get:function(){return this.tableModel.hiddenRowCount$}},tableColumnsInput:{configurable:!0,enumerable:!0,set:function(a){this.dataColumns=[].concat(q(a));this.tableColumns=this.getRenderableColumns(this.dataColumns)}}});A1.\u0275fac=function(a){return new (a||A1)};
A1.\u0275cmp=D({type:A1,selectors:[["b-issue-relations-table"]],viewQuery:function(a,b){a&1&&hg(SW,5);if(a&2){var c;lg(c=mg())&&(b.displayedRows=c)}},inputs:{rootIssueId:"rootIssueId",defaultExpansionLevel:"defaultExpansionLevel",saveExpansionAtKey:"saveExpansionAtKey",filters:"filters",tableColumnsInput:[0,"tableColumns","tableColumnsInput"],options:"options"},standalone:!1,features:[Gg([bQ]),Ef],decls:46,vars:16,consts:[["focusIndicator",""],["dragHandle",""],["saving",""],["mat-table","","multiTemplateDataRows",
"",1,"full-width",3,"dataSource","trackBy"],["matColumnDef","active-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"],[3,"matColumnDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","empty-id"],["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",""],["mat-row","","selectionPreventsClick","","class","clickable",3,"row","selected","closed","click","mouseup","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","",3,"row","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","","class","draft","cdkTrapFocus","",3,"row","keydown","keydown.escape","keydown.backspace","focusin",4,"matRowDef",
"matRowDefColumns","matRowDefWhen"],[1,"drag-preview"],[1,"placeholder"],[1,"insertion-bar"],["mat-header-cell",""],["tabindex","-1","mat-cell","",3,"click"],["mat-cell","","draggable","true","tabindex","-1",3,"click","dragstart"],["svgIcon","drag-indicator",1,"icon-s"],["mat-cell",""],[3,"id"],[3,"expansionChange","onSaveOutput","onCancelOutput","isEditMode","issue","expandable","expanded","level"],[3,"issue"],["size","medium",3,"email"],[3,"issue","showPendingFix"],["buttonLabel","More options",
3,"click","menuItems"],["mat-cell","",1,"text-center"],["buttonLabel","More options",3,"menuItems"],[3,"isReady"],["format","flat",3,"onAction"],[1,"title-location"],[1,"flex-kids-x","align-items-center","gap-s"],["placeholder","Start typing the title...",1,"grow-1",3,"valueChange","commit","value","readonly"],["color","primary","format","fill","size","small","title","Create issue","matTooltip","(Shortcut: Enter)",3,"onAction","disabled"],["format","flat","size","small","title","Cancel","matTooltip",
"(Shortcut: Esc)",3,"onAction","disabled"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","selectionPreventsClick","",1,"clickable",3,"click","mouseup","focusin","keydown","row"],["mat-row","",3,"focusin","keydown","row"],["mat-row","","cdkTrapFocus","",1,"draft",3,"keydown","keydown.escape","keydown.backspace","focusin","row"]],template:function(a,b){a&1&&(K(0,"table",3),Tf(1,4),E(2,yEb,1,0,"th",5)(3,zEb,2,0,"td",6),Uf(),Tf(4,7),E(5,AEb,1,0,"th",5)(6,BEb,3,0,"td",8),Uf(),Tf(7,9),E(8,CEb,
2,0,"th",5)(9,DEb,2,1,"td",10),Uf(),Tf(10,11),E(11,EEb,2,0,"th",5)(12,FEb,2,0,"td",10),Uf(),Tf(13,9),E(14,GEb,2,0,"th",5)(15,HEb,4,9,"td",10),Uf(),Tf(16,9),E(17,IEb,2,0,"th",5)(18,JEb,3,3,"td",10),Uf(),Tf(19,9),E(20,MEb,3,1,"th",5)(21,SEb,3,1,"td",10),Uf(),Tf(22,9),E(23,TEb,2,0,"th",5)(24,UEb,3,4,"td",10),Uf(),Tf(25,9),E(26,VEb,2,0,"th",5)(27,WEb,3,3,"td",10),Uf(),Tf(28,12),E(29,XEb,1,0,"th",5)(30,ZEb,3,4,"td",10),Uf(),Tf(31,13),E(32,$Eb,1,0,"th",5)(33,eFb,5,1,"td",14),Uf(),Tf(34,15),E(35,gFb,6,7,
"td",16),Uf(),Tf(36,17),E(37,hFb,2,0,"th",5)(38,jFb,7,6,"td",16),Uf(),F(39,lFb,1,1,"tr",18),E(40,nFb,3,12,"tr",19)(41,oFb,1,4,"tr",20)(42,pFb,1,2,"tr",21),L(),M(43,"div",22)(44,"div",23)(45,"div",24));a&2&&(I("dataSource",b.rows$)("trackBy",b.trackBy),B(7),I("matColumnDef",b.IssueFieldType.ISSUE_ID),B(6),I("matColumnDef",b.IssueFieldType.TITLE),B(3),I("matColumnDef",b.IssueFieldType.TYPE),B(3),I("matColumnDef",b.IssueFieldType.ASSIGNEE),B(3),I("matColumnDef",b.IssueFieldType.STATUS),B(3),I("matColumnDef",
b.IssueFieldType.TEAM),B(14),G(b.options.hideColumnHeaders?-1:39),B(),I("matRowDefColumns",b.tableColumns)("matRowDefWhen",b.isDataRow),B(),I("matRowDefColumns",Hg(15,SMd))("matRowDefWhen",b.isLoadMoreRow),B(),I("matRowDefColumns",ZMd(b))("matRowDefWhen",b.isDraftRow))},dependencies:[Wy,Jy,UW,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,vK,nA,NY,oW,MU,yxd,YW,uW,wW,ZW,aX,Mxd,wU,cU,SW,aV,Tx],styles:['.mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0px}.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0px}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}tr.mat-mdc-row[_ngcontent-%COMP%]   .mat-column-active-indicator[_ngcontent-%COMP%]{cursor:pointer;display:table-cell;padding:0 1.5px;width:0}tr.mat-mdc-row[_ngcontent-%COMP%]:focus-within   .mat-column-active-indicator[_ngcontent-%COMP%], tr.mat-mdc-row.active[_ngcontent-%COMP%]   .mat-column-active-indicator[_ngcontent-%COMP%]{outline:none;background-color:#4285f4;background-color:var(--primary-c500)}tr.mat-mdc-row[_ngcontent-%COMP%]   .mat-column-drag-handle[_ngcontent-%COMP%]{box-sizing:border-box;cursor:move;outline-width:0;padding:0px;width:18px}tr.mat-mdc-row[_ngcontent-%COMP%]   .mat-column-drag-handle[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{line-height:32px;opacity:.2}.mat-mdc-header-cell.mat-column-title[_ngcontent-%COMP%]{padding-left:36px;min-width:250px}.insertion-bar[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);display:none;height:2px;pointer-events:none;position:absolute}.insertion-bar[_ngcontent-%COMP%]::before{content:"";border-bottom:5px solid rgba(0,0,0,0);border-left:8px solid;border-left-color:#1a73e8;border-left-color:var(--primary-btn-bg);border-top:5px solid rgba(0,0,0,0);display:block;height:0;position:relative;top:-4px;width:0}.placeholder[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);border-radius:4px;box-sizing:border-box;display:none;opacity:.7;pointer-events:none;position:absolute;top:0;width:100%}.drag-preview[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);color:#fff;color:var(--inverse-text);border-radius:4px;display:none;padding:7px 13px;position:absolute}tr.dragging[_ngcontent-%COMP%], tr.nodrop[_ngcontent-%COMP%]{opacity:.5}tr.closed[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--row-fixed-bg)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{color:#1a73e8;color:var(--link)}[_nghost-%COMP%]{position:relative;padding-bottom:5px;overflow-y:hidden}'],
changeDetection:0});var sFb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sFb,W);h=sFb.prototype;h.getFilename=function(){return ui(this,1)};h.setFilename=function(a){return oj(this,1,a)};h.getLineNumber=function(a){return Tw(this,2,a)};h.getChangeNumber=function(){return pn(this,3)};h.getChangeNumber_asLegacyNumberOrString=function(){return Cp(this,3)};h.setChangeNumber=function(a){return vn(this,3,a)};var uFb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uFb,W);var $Md=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,$Md.messageId)};Y($Md,W);$Md.messageId="b.MentionSearchResult";var aNd=function(){this.executor=p(cO)};aNd.\u0275fac=function(a){return new (a||aNd)};aNd.\u0275prov=Dc({token:aNd,factory:aNd.\u0275fac,providedIn:"root"});var B1=function(){this.mentionsApi=p(aNd);this.refreshMonitor=p(VP);this.analytics=p(eQ)},bNd=function(a,b){var c=a.getLink(b);a.cachedId===b&&a.cachedEntry||(a.cachedId=b,a.cachedEntry=Bgd(a.refreshMonitor,ne(function(){return a.mentionsApi.executor.get({url:"action/issues/"+b+"/mentions",responseConstructor:$Md}).then(vFb).then(function(d){return{mentions:d,link:c}}).catch(function(){return{link:c}})}).pipe(xf({link:c}))).pipe(vf({refCount:!0,bufferSize:1})));return a.cachedEntry};
B1.prototype.displayPackageNames=function(a){var b;a=(b=a.mentions)==null?void 0:b.packageMentionSet;var c;return(a==null?void 0:a.length)>1||(a==null?void 0:(c=a[0])==null?void 0:c.packageName)!=="piper"};B1.prototype.getLink=function(a){return"https://todo.corp.google.com/?issue="+a};B1.prototype.trackSqueegeeClick=function(){this.analytics.trackEvent("codeMentions","clickSqueegeeLink")};B1.\u0275fac=function(a){return new (a||B1)};B1.\u0275prov=Dc({token:B1,factory:B1.\u0275fac,providedIn:"root"});var cNd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cNd,W);var dNd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,dNd.messageId)};Y(dNd,W);h=dNd.prototype;h.getIssueId=function(){return pn(this,1,void 0,jb)};h.getIssueId_asString=function(){return tn(this,1,void 0,jb)};h.setIssueId=function(a){return vn(this,1,a,void 0,jb)};h.getResponseId=function(){return ui(this,2,void 0,jb)};h.setResponseId=function(a){return oj(this,2,a,jb)};dNd.messageId="hmf.SendFeedbackRequest";var C1=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,C1.messageId)};Y(C1,W);C1.prototype.getIssueCategory=function(){return wi(this,1,void 0,jb)};C1.prototype.getIssueId=function(){return pn(this,2,void 0,jb)};C1.prototype.getIssueId_asString=function(){return tn(this,2,void 0,jb)};C1.prototype.setIssueId=function(a){return vn(this,2,a,void 0,jb)};C1.messageId="hmf.GetIssueEligibilityResponse";var eNd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,eNd.messageId)};Y(eNd,W);h=eNd.prototype;h.getResponse=function(){return ui(this,1,void 0,jb)};h.hasResponse=function(){return im(this,1,jb)};h.getIssueCategory=function(){return wi(this,2,void 0,jb)};h.getResponseId=function(){return ui(this,3,void 0,jb)};h.setResponseId=function(a){return oj(this,3,a,jb)};h.getIssueId=function(){return pn(this,4,void 0,jb)};
h.getIssueId_asString=function(){return tn(this,4,void 0,jb)};h.setIssueId=function(a){return vn(this,4,a,void 0,jb)};eNd.messageId="hmf.GetIssueHelpResponse";var D1=function(){this.executor=p(bO)},fNd=function(a,b){return a.executor.get({url:"action/helpmefix/"+b,responseConstructor:eNd}).pipe(A(xFb),gf(function(){return ce({issueId:b,issueCategory:"ISSUE_CATEGORY_UNSUPPORTED"})}))};D1.prototype.getIssueEligibility=function(a){return this.executor.get({url:"action/helpmefix/"+a+"/eligibility",responseConstructor:C1}).pipe(A(yFb),gf(function(){return ce({issueId:a,issueCategory:"ISSUE_CATEGORY_UNSUPPORTED"})}))};
D1.prototype.sendFeedback=function(a,b){var c=this.executor,d=c.post;var e=(new dNd).setIssueId(b.issueId).setResponseId(b.responseId);var f=new cNd;b=Gn(f,1,Pbd[b.userFeedback.sentiment]);e=Mi(e,cNd,3,b,jb);return d.call(c,{url:"action/helpmefix/"+a+"/feedback",body:e,responseConstructor:null})};D1.\u0275fac=function(a){return new (a||D1)};D1.\u0275prov=Dc({token:D1,factory:D1.\u0275fac,providedIn:"root"});var E1=function(){uO.call(this);this.api=p(D1);this.recordType="issueHelpMeFixEligibility";this.idForRecord=function(a){return String(a.issueId)};this.isEqual=function(a,b){return a.issueId===b.issueId}};Y(E1,uO);E1.prototype.fetchOne=function(a){return this.api.getIssueEligibility(Number(a))};E1.\u0275fac=function(a){return new (a||E1)};E1.\u0275prov=Dc({token:E1,factory:E1.\u0275fac,providedIn:"root"});var F1=function(){uO.call(this);this.api=p(D1);this.recordType="issueHelpMeFix";this.idForRecord=function(a){return String(a.issueId)};this.isEqual=function(a,b){return a.responseId===b.responseId}};Y(F1,uO);F1.prototype.fetchOne=function(a){return fNd(this.api,Number(a))};F1.\u0275fac=function(a){return new (a||F1)};F1.\u0275prov=Dc({token:F1,factory:F1.\u0275fac,providedIn:"root"});var G1=function(){var a=this;this.analytics=p(eQ);this.activeSession=p(uu);this.contextSensitiveRegistry=p(XQ);this.issueHelpMeFixFridge=p(F1);this.issueHelpMeFixEligibilityFridge=p(E1);this.helpMeFixApi=p(D1);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(A(Nm),nf(),vf({bufferSize:1,refCount:!0}));this.isHelpMeFixEnabled$=ce(this.activeSession.getFlag("enableHelpMeFixSidebar")&&this.activeSession.isInternalSession()).pipe(vf({bufferSize:1,refCount:!0}));this.issueHelpMeFixEligibility$=
this.issueId$.pipe(yf(function(b){return b?a.issueHelpMeFixEligibilityFridge.watch(Number(b),{trustUncertainMemory:!0}):ce(void 0)}),vf({bufferSize:1,refCount:!0}));this.isEnabledForCurrentIssue$=this.isHelpMeFixEnabled$.pipe(yf(function(b){return b?a.issueId$.pipe(yf(function(c){return c?a.issueHelpMeFixEligibility$.pipe(A(function(d){return(d==null?void 0:d.issueCategory)!=="ISSUE_CATEGORY_UNSUPPORTED"})):ce(!1)}),vf({bufferSize:1,refCount:!0})):ce(!1)}));this.issueHelpMeFix$=this.isEnabledForCurrentIssue$.pipe(yf(function(b){return b?
a.issueId$.pipe(lf(1),yf(function(c){return c?a.issueHelpMeFixFridge.watch(Number(c),{trustUncertainMemory:!0}):ce(void 0)}),vf({bufferSize:1,refCount:!0})):ce(void 0)}))};
G1.prototype.trackImpression=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return z(e,fe(a.issueHelpMeFixEligibility$),2);if(e.nextAddress!=3)return b=e.yieldResult,z(e,fe(a.issueId$),3);c=e.yieldResult;a.analytics.trackEvent("helpMeFix","impressionOnIssueIdJson",JSON.stringify({issueCategory:(d=b)==null?void 0:d.issueCategory,issueId:c}));ae(e)})};
var gNd=function(a){var b,c,d;return y(function(e){if(e.nextAddress==1)return z(e,fe(a.issueHelpMeFixEligibility$),2);if(e.nextAddress!=3)return b=e.yieldResult,z(e,fe(a.issueId$),3);c=e.yieldResult;a.analytics.trackEvent("helpMeFix","openOnIssueIdJson",JSON.stringify({issueCategory:(d=b)==null?void 0:d.issueCategory,issueId:c}));ae(e)})};
G1.prototype.trackThumbsUp=function(){var a=this,b,c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,fe(a.issueHelpMeFix$),2);if(g.nextAddress!=3)return b=g.yieldResult,c=Number,z(g,fe(a.issueId$),3);d=c(g.yieldResult);((e=b)==null?0:e.responseId)&&a.helpMeFixApi.sendFeedback(d,{issueId:d,responseId:b.responseId,userFeedback:{sentiment:"SENTIMENT_POSITIVE"}}).pipe(lf(1)).subscribe();a.analytics.trackEvent("helpMeFix","thumbsUpOnIssueIdJson",JSON.stringify({issueCategory:(f=b)==null?void 0:
f.issueCategory,issueId:d}));ae(g)})};
G1.prototype.trackThumbsDown=function(){var a=this,b,c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,fe(a.issueHelpMeFix$),2);if(g.nextAddress!=3)return b=g.yieldResult,c=Number,z(g,fe(a.issueId$),3);d=c(g.yieldResult);((e=b)==null?0:e.responseId)&&a.helpMeFixApi.sendFeedback(d,{issueId:d,responseId:b.responseId,userFeedback:{sentiment:"SENTIMENT_NEGATIVE"}}).pipe(lf(1)).subscribe();a.analytics.trackEvent("helpMeFix","thumbsDownOnIssueIdJson",JSON.stringify({issueCategory:(f=b)==null?
void 0:f.issueCategory,issueId:d}));ae(g)})};G1.\u0275fac=function(a){return new (a||G1)};G1.\u0275prov=Dc({token:G1,factory:G1.\u0275fac,providedIn:"root"});var H1=function(){var a=this;this.issueFullFridge=p(gQ);this.issueApi=p(LP);this.issueUserEventsService=p(lW);this.prompts=p(hNd);this.contextSensitiveRegistry=p(XQ);this.analytics=p(eQ);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(ue(Pm),nf());this.issue$=this.issueId$.pipe(yf(function(c){return a.issueFullFridge.watch(c)}),ue(Pm),nf(function(c,d){return c.issueId===d.issueId&&c.version===d.version}));this.summarizable$=this.issue$.pipe(yf(function(c){return iNd(a.prompts,c.issueId).pipe(A(function(d){return{issue:c,
isSummarizable:d}}))}),vf({refCount:!0,bufferSize:1}));this.pregeneratedSummary$=this.summarizable$.pipe(ue(function(c){return c.isSummarizable}),yf(function(c){return a.getIssueSummary(c.issue,"COMMENTS_LONG")}),vf({refCount:!0,bufferSize:1}));this.generateSummaryRequested$=new uf(1);this.generatedSummary$=this.generateSummaryRequested$.pipe(yf(function(c){return jNd(a,c)}),vf({refCount:!0,bufferSize:1}));this.summary$=te(this.pregeneratedSummary$,this.generatedSummary$).pipe(vf({refCount:!0,bufferSize:1}));
this.stage$=ie([this.issueId$.pipe(xf(void 0)),this.issue$.pipe(xf(void 0)),this.pregeneratedSummary$.pipe(xf(void 0)),this.generateSummaryRequested$.pipe(xf(void 0)),this.generatedSummary$.pipe(xf(void 0))]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f=d.next().value;var g=d.next().value;d=d.next().value;return c&&e&&f&&f.issueId===c?f.summary?"SUMMARY_VISIBLE":g&&g.issueId===c&&g.version===e.version?!d||d.issueId!==c||d.issueVersion<e.version?"GENERATING":"SUMMARY_VISIBLE":
"BUTTON":"HIDDEN"}),vf({refCount:!0,bufferSize:1}));var b=p(Ce);this.stage$.pipe(Tj(b)).subscribe()},kNd=function(a){a.issue$.pipe(lf(1)).subscribe(function(b){a.generateSummaryRequested$.next(b)})};H1.prototype.getIssueSummary=function(a,b){return this.issueApi.getIssueSummary(a.issueId,b).pipe(gf(function(c){c.status!==404&&Xm("Error to get an issue summary: error: ",c);return ce({issueId:a.issueId,summaryType:b,issueVersion:a.version,summary:""})}))};
var jNd=function(a,b){return hgd(a.issueApi,b.issueId).pipe(gf(function(c){Xm("Error to generate an issue summary: error: ",c);return ce({issueId:b.issueId,summaryType:"COMMENTS_LONG",issueVersion:b.version,summary:""})}))};H1.prototype.trackThumbsUp=function(a,b){this.trackEvent("accept",b);lNd(this,a,"EVENT_TYPE_THUMBS_UP")};H1.prototype.trackThumbsDown=function(a,b){this.trackEvent("reject",b);lNd(this,a,"EVENT_TYPE_THUMBS_DOWN")};
H1.prototype.trackEvent=function(a,b){this.analytics.trackEvent("llmSummarize",a,b)};var lNd=function(a,b,c){if(b.modelVersion&&b.issueVersion){a=a.issueUserEventsService;var d=b.issueId,e=b.summaryType,f=b.modelVersion,g=b.issueVersion;b=new kW;e=(new evd).setSummaryType(Abd[e]).setModelVersion(f).setIssueVersion(g);e=Wo(b,1,fvd,e);a.logIssueUserEvent(d,"FEATURE_SUMMARY",c,e).subscribe()}};H1.\u0275fac=function(a){return new (a||H1)};H1.\u0275prov=Dc({token:H1,factory:H1.\u0275fac,providedIn:"root"});
var hNd=function(){this.eventsForIssueFridge=p(NP)},iNd=function(a,b){return a.eventsForIssueFridge.watch(b,{trustUncertainMemory:!0}).pipe(A(function(c){return AFb(c)}),nf())};hNd.\u0275fac=function(a){return new (a||hNd)};hNd.\u0275prov=Dc({token:hNd,factory:hNd.\u0275fac,providedIn:"root"});var mNd={issueId:"",category:"issue-summary",displayName:"AI Summary",author:{emailAddress:"buganizer@google.com"},timestamp:{seconds:Date.now()/1E3,nanos:0}},nNd={issueId:"",category:"help-me-fix",displayName:"Help me fix",author:{emailAddress:"buganizer@google.com"},timestamp:{seconds:Date.now()/1E3,nanos:0}},oNd=["issue-summary","help-me-fix"],I1={},pNd=(I1.EVENT_TYPE_UNSPECIFIED="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",I1.EVENT_TYPE_THUMBS_UP="THUMBS_UP",I1.EVENT_TYPE_THUMBS_DOWN="THUMBS_DOWN",
I1.EVENT_TYPE_OPEN="OPEN",I1.EVENT_TYPE_CLOSE="CLOSE",I1.EVENT_TYPE_COPY="COPY",I1.EVENT_TYPE_CLOSE_AS_DUPLICATE="CLOSE_AS_DUPLICATE",I1.EVENT_TYPE_ISSUE_HOVERCARD="ISSUE_HOVERCARD",I1.EVENT_TYPE_GO_TO_ISSUE="GO_TO_ISSUE",I1.EVENT_TYPE_DELETE="DELETE",I1.EVENT_TYPE_VIEW="VIEW",I1.EVENT_TYPE_IMPRESSION="IMPRESSION",I1.EVENT_TYPE_COPY_DEEP_LINK="COPY_DEEP_LINK",I1.EVENT_TYPE_ACCEPT="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",I1.EVENT_TYPE_PARTIALLY_ACCEPT="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",I1.EVENT_TYPE_REJECT=
"ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",I1.EVENT_TYPE_FEEDBACK="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",I1.EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",I1),J1=function(){var a=this;this.contextSensitiveRegistry=p(XQ);this.issueEnrichmentFridge=p(RP);this.enrichmentCategoryFridge=p(wP);this.activeSession=p(uu);this.llmIssueSummaryService=p(H1);this.helpMeFixService=p(G1);this.commentFormatter=p(fR);this.enrichmentApi=p(zO);this.issueUserEventsService=p(lW);this.issueId$=
this.contextSensitiveRegistry.getIssueId().pipe(ue(Pm),nf());this.baseEnrichments$=this.issueId$.pipe(yf(function(b){return a.issueEnrichmentFridge.watch(b)}),A(function(b){var c;return((c=b==null?void 0:b.enrichments)!=null?c:[]).filter(function(d){var e;return(e=d.general)==null?void 0:e.content})}));this.categoryDisplayNames$=this.baseEnrichments$.pipe(yf(function(b){b=b.map(function(c){return c.category});return a.enrichmentCategoryFridge.watchSet(b)}),A(function(b){var c=new Map;b=m(b);for(var d=
b.next();!d.done;d=b.next())d=d.value,c.set(d.name,d.displayName);return c}));this.issueSummaryEnrichment$=ie([this.llmIssueSummaryService.summarizable$,this.llmIssueSummaryService.stage$]).pipe(Af(function(b){var c=m(b);b=c.next().value;c=c.next().value;b.isSummarizable&&a.activeSession.isInternalSession()&&c==="BUTTON"&&kNd(a.llmIssueSummaryService)}),yf(function(b){b=m(b);var c=b.next().value;b.next();return c.isSummarizable&&a.activeSession.isInternalSession()?a.llmIssueSummaryService.summary$.pipe(A(function(d){return d.summary?
Object.assign({},mNd,{issueId:c.issue.issueId,general:{content:d.summary,formattedContent:{markdownFormat:d.formattedSummary}}}):Object.assign({},mNd,{issueId:c.issue.issueId})}),xf(Object.assign({},mNd,{issueId:c.issue.issueId}))):ce(void 0)}));this.helpMeFixAsyncContent$=this.helpMeFixService.issueHelpMeFix$.pipe(yf(function(b){if(b==null||!b.response){var c={content:"",formattedContent:{markdownFormat:{content:Bh("HelpMeFix did not return a response")}}};return ce(c)}return a.commentFormatter.format({comment:b.response,
formattingMode:"MARKDOWN",audience:"INTERNAL",idPrefix:"help_me_fix"}).pipe(A(function(d){return{content:b.response,formattedContent:d}}))}));this.helpMeFixEnrichment$=this.helpMeFixService.isEnabledForCurrentIssue$.pipe(yf(function(b){return b&&a.activeSession.isInternalSession()?a.issueId$.pipe(lf(1),yf(function(c){return ce(Object.assign({},nNd,{issueId:c,asyncContent:a.helpMeFixAsyncContent$}))})):ce(void 0)}));this.issueEnrichments$=ie([this.baseEnrichments$,this.categoryDisplayNames$,this.issueSummaryEnrichment$,
this.helpMeFixEnrichment$]).pipe(A(function(b){var c=m(b);var d=c.next().value;var e=c.next().value;b=c.next().value;c=c.next().value;d=d.map(function(f){var g;return Object.assign({},f,{displayName:(g=e.get(f.category))!=null?g:f.category})});b&&d.push(b);c&&d.push(c);return d}))};
J1.prototype.logIssueUserEventForIssueEnrichment=function(a,b,c){var d=this;return y(function(e){return e.nextAddress==1?c==="issue-summary"?z(e,qNd(d,b),0):c==="help-me-fix"?z(e,rNd(d,b),0):z(e,fe(d.issueUserEventsService.logIssueUserEventForIssueEnrichment(a,"FEATURE_INSIGHT",b,c)),6):z(e,d.submitEnrichmentFeedback(a,c,b),0)})};
J1.prototype.submitEnrichmentFeedback=function(a,b,c){var d=this,e;return y(function(f){e=pNd[c];return e==="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED"?f.jumpTo(0):z(f,fe(d.enrichmentApi.submitEnrichmentFeedback({issueId:a,category:b,feedbackType:e})),0)})};
var qNd=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return z(d,fe(a.llmIssueSummaryService.summary$),2);if(c=d.yieldResult)switch(b){case "EVENT_TYPE_THUMBS_UP":a.llmIssueSummaryService.trackThumbsUp(c,"issueInsights");break;case "EVENT_TYPE_THUMBS_DOWN":a.llmIssueSummaryService.trackThumbsDown(c,"issueInsights");break;case "EVENT_TYPE_VIEW":a.llmIssueSummaryService.trackEvent("display","issueInsights");break;case "EVENT_TYPE_COPY":var e=a.llmIssueSummaryService;e.trackEvent("copy",
"issueInsights");lNd(e,c,"EVENT_TYPE_COPY")}ae(d)})},rNd=function(a,b){return y(function(c){switch(c.nextAddress){case 1:switch(b){case "EVENT_TYPE_IMPRESSION":return c.jumpTo(2);case "EVENT_TYPE_THUMBS_UP":return c.jumpTo(3);case "EVENT_TYPE_THUMBS_DOWN":return c.jumpTo(4);case "EVENT_TYPE_VIEW":return c.jumpTo(5)}c.jumpTo(0);break;case 2:return z(c,a.helpMeFixService.trackImpression(),7);case 7:c.jumpTo(0);break;case 3:return z(c,a.helpMeFixService.trackThumbsUp(),8);case 8:c.jumpTo(0);break;case 4:return z(c,
a.helpMeFixService.trackThumbsDown(),9);case 9:c.jumpTo(0);break;case 5:return z(c,gNd(a.helpMeFixService),10);case 10:c.jumpTo(0)}})};J1.\u0275fac=function(a){return new (a||J1)};J1.\u0275prov=Dc({token:J1,factory:J1.\u0275fac,providedIn:"root"});var K1=function(){var a=this;this.paramsService=p(WQ);this.issueRelationshipsFridge=p(mQ);this.issueFullFridge=p(gQ);this.issueFridge=p(XP);this.codeMentions=p(B1);this.eventsForIssue=p(NP);this.activeSession=p(uu);this.issueEnrichmentService=p(J1);this.id$=this.paramsService.issueId$.pipe(ue(Pm),mf(1E3));this.issue$=this.id$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));this.issueEvents$=this.id$.pipe(yf(function(b){return a.eventsForIssue.watch(b)}),A(function(b){var c;return(c=b==null?
void 0:b.events)!=null?c:[]}));this.blockerIssueIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockedByIssueId)!=null?c:[]}),nf(mm));this.blockedIssueIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}),nf(mm));this.parentIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.parentIssueIds)!=null?c:[]}),nf(mm));this.childrenIds$=this.id$.pipe(yf(function(b){return a.issueRelationshipsFridge.watch(b)}),
A(function(b){var c;return(c=b==null?void 0:b.relatedChildren.map(function(d){return d.targetIssueId}))!=null?c:[]}));this.duplicateIssueIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}),nf(mm));this.blockersDualCount$=ie([this.id$,this.blockerIssueIds$]).pipe(yf(function(b){var c=m(b);b=c.next().value;c=c.next().value;return sNd(a,b,c,["BLOCKED_BY"])}),vf({bufferSize:1,refCount:!0}));this.countBlockersDisplay$=this.blockersDualCount$.pipe(A(CFb),
vf({bufferSize:1,refCount:!0}));this.blockedDualCount$=ie([this.id$,this.blockedIssueIds$]).pipe(yf(function(b){var c=m(b);b=c.next().value;c=c.next().value;return sNd(a,b,c,["BLOCKING"])}),vf({bufferSize:1,refCount:!0}));this.countBlockedDisplay$=this.blockedDualCount$.pipe(A(CFb),vf({bufferSize:1,refCount:!0}));this.childrenDualCount$=ie([this.id$,this.childrenIds$]).pipe(yf(function(b){var c=m(b);b=c.next().value;c=c.next().value;return sNd(a,b,c,["CHILDREN"])}),vf({bufferSize:1,refCount:!0}));
this.countChildrenDisplay$=this.childrenDualCount$.pipe(A(CFb),vf({bufferSize:1,refCount:!0}));this.parentsDualCount$=ie([this.id$,this.parentIds$]).pipe(yf(function(b){var c=m(b);b=c.next().value;c=c.next().value;return sNd(a,b,c,["PARENT"])}),vf({bufferSize:1,refCount:!0}));this.countParentsDisplay$=this.parentsDualCount$.pipe(A(CFb),vf({bufferSize:1,refCount:!0}));this.dependenciesDualCount$=ie([this.id$,this.blockerIssueIds$,this.childrenIds$]).pipe(yf(function(b){var c=m(b);b=c.next().value;
var d=c.next().value;c=c.next().value;return sNd(a,b,[].concat(q(c),q(d)),["CHILDREN","BLOCKED_BY"])}));this.countDependenciesDisplay$=this.dependenciesDualCount$.pipe(A(CFb),vf({bufferSize:1,refCount:!0}));this.duplicatesDualCount$=ie([this.id$,this.duplicateIssueIds$]).pipe(yf(function(b){var c=m(b);b=c.next().value;c=c.next().value;return sNd(a,b,c,["DUPLICATE"])}),vf({bufferSize:1,refCount:!0}));this.countDuplicateDisplay$=this.duplicatesDualCount$.pipe(A(function(b){return b.total}),A(DFb),vf({bufferSize:1,
refCount:!0}));this.countResourcesDisplay$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.relatedLinks)!=null?c:[]}),A(function(b){return a.activeSession.isInternalSession()?b:b.filter(function(c){return!p8a(c)})}),A(function(b){return It(b.length)}),A(DFb),vf({bufferSize:1,refCount:!0}));this.countInsightsDisplay$=this.issueEnrichmentService.issueEnrichments$.pipe(A(function(b){return It(b.length)}),A(DFb),vf({bufferSize:1,refCount:!0}));this.countTodosDisplay$=this.id$.pipe(ue(Pm),
yf(function(b){return bNd(a.codeMentions,b)}),A(function(b){var c,d;return It((d=(c=b.mentions)==null?void 0:c.totalMentions)!=null?d:0)}),A(DFb),vf({bufferSize:1,refCount:!0}));this.countCommentsDisplay$=this.issueEvents$.pipe(A(function(b){return It(b.filter(go).length)}),A(DFb),vf({bufferSize:1,refCount:!0}))},sNd=function(a,b,c,d){d=d===void 0?[]:d;c=tq(c);if(!b||c.length===0)return ce({open:{count:0,exact:!0},total:{count:0,exact:!0}});d=d.map(function(e){return EFb(b,e)}).filter(Pm).map(function(e){return"("+
e+")"}).join(" OR ");return c.length>99&&d?a.issueFridge.watchMany({filter:d,pageSize:100}).pipe(A(function(e){e=e.results.filter(jo).filter(bUa).length;return{open:It(e),total:It(c.length)}})):ie(c.map(function(e){return a.issueFullFridge.watch(e)})).pipe(A(function(e){return{open:It(e.filter(Pm).filter(jo).filter(bUa).length),total:It(e.filter(function(f){return!f||bUa(f)}).length)}}))};K1.\u0275fac=function(a){return new (a||K1)};K1.\u0275prov=Dc({token:K1,factory:K1.\u0275fac,providedIn:"root"});var L1=function(){Z.call(this);var a=this;this.issueFullFridge=p(gQ);this.butterBar=p(UN);this.analytics=p(eQ);this.refreshMonitor=p(VP);this.contextSensitiveRegistry=p(XQ);this.issuePermissionService=p($Q);this.issuePicker=p(UX);this.errorHandler=p(pO);this.counts=p(K1);this.issueId$=this.contextSensitiveRegistry.getIssueId();this.issue$=this.issueId$.pipe(yf(function(b){return b?a.issueFullFridge.watch(b):ce(void 0)}));this.filters=[];this.shouldResetFilters=new aQ;this.tableColumns=[].concat(q(LFd));
this.initialSort={column:"STATUS",direction:"ASCENDING"};this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.blockerIds$=this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0]}),A(function(b){var c,d;return(d=b==null?void 0:(c=b.blockedByIssueId)==null?void 0:c.map(String))!=null?d:[]}));this.blockersCount$=this.blockerIds$.pipe(yf(function(b){return b.length===0?ce(0):a.counts.blockersDualCount$.pipe(A(function(c){return c.total.count}))}));this.showBlockersTable$=this.blockersCount$.pipe(A(function(b){return b>
0}),xf(!0));this.tableOptions={menu:{includeGoToIssueItem:!0},deEmphasizeClosedIssues:!0};this.getMenuItems=function(b){return[{type:"action",label:"Remove blocker",action:function(){tNd(a,b)},title:"Remove blocker",icon:"clear"}]};this.subscriptions.add(this.refreshMonitor.getObservable().pipe(Cf(this.blockerIds$)).subscribe(function(b){b=m(b);b.next();b=b.next().value;if(b!=null){b=m(b);for(var c=b.next();!c.done;c=b.next())a.issueFullFridge.poke(c.value)}}))};Y(L1,Z);L1.\u0275dir=Z.\u0275dir;
var MFb=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,fe(a.issueId$),2);b=c.yieldResult;if(b==null)return c.return();a.analytics.trackEvent("editIssue","update","add-blocker");return z(c,a.issuePicker.open({title:"Add Blockers of "+b,allowMultipleIds:!0,edgeType:"blocker"},function(d){uNd(a,b,d)}),0)})},uNd=function(a,b,c){y(function(d){return c.length===0?d.return():z(d,a.issueFullFridge.addBlockedBy(b,c).catch(function(e){rO(a.errorHandler,e)}),0)})},tNd=function(a,b){var c,
d;y(function(e){switch(e.nextAddress){case 1:return z(e,fe(a.issueId$),2);case 2:c=e.yieldResult;if(c==null)return e.return();a.analytics.trackEvent("editIssue","update","remove-blocker");Wd(e,3);return z(e,a.issueFullFridge.removeBlockedBy(c,[b]),5);case 5:dt(e,0);break;case 3:d=$d(e),a.butterBar.showWarning("Could not remove blocker "+b+". "+(Pp(d)?Qp(d):d)),ae(e)}})};L1.\u0275fac=function(a){return new (a||L1)};
L1.\u0275cmp=D({type:L1,selectors:[["b-blockers-table"]],viewQuery:function(a,b){a&1&&hg(XZ,5);if(a&2){var c;lg(c=mg())&&(b.issuesTable=c.first)}},inputs:{filters:"filters"},outputs:{shouldResetFilters:"shouldResetFilters"},standalone:!1,features:[Ef],decls:15,vars:12,consts:[["addBlocker",""],[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"],[1,"muted"],[4,"ngTemplateOutlet"],[3,"issueIds","tableColumns","menuItemFactory","filters","initialSort","options"],[1,"emoji"],["type","button",1,"subtle-link","unstyled",3,"click"],["size","small","title","Mark an existing issue as blocker",1,"add",3,"onAction","disabled"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"h4",2)(2,"div",3),M(3,"mat-icon",4),L(),Q(4),T(5,"async"),L(),F(6,GFb,1,
1,"ng-container"),T(7,"async"),L(),F(8,IFb,2,3),T(9,"async"),Kf(10,KFb,6,1,"div"),F(11,LFb,4,2,"p",5),T(12,"async"),E(13,NFb,3,3,"ng-template",null,0,Mg));if(a&2){var c;B(4);S(" Blockers ",U(5,4,b.counts.countBlockersDisplay$)," ");B(2);G(U(7,6,b.showBlockersTable$)?6:-1);B(2);G(U(9,8,b.showBlockersTable$)?8:10);B(3);G((c=U(12,10,b.issuesTable==null?null:b.issuesTable.hiddenRowCount$))?11:-1,c)}},dependencies:[Sx,Jy,vK,nA,MU,XZ,Tx],styles:["[_nghost-%COMP%] {\n      display: block;\n    }\n    b-issues-table[_ngcontent-%COMP%] {\n      display: block;\n      overflow-x: auto;\n    }"],
changeDetection:0});var N1=function(){Z.apply(this,arguments);this.routerEvents=p(dQ);this.documentVisibility=p(M1);this.validNavigations=0;this.ignoringNextNav=!1;this.mostRecentlyMeasured="";this.tabWasHidden=!1};Y(N1,Z);N1.\u0275dir=Z.\u0275dir;
N1.prototype.install=function(){var a=this;v2a()&&(this.subscriptions.add(this.routerEvents.routeChangeStart.subscribe(function(){vNd(a)})),this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.ignoringNextNav?a.ignoringNextNav=!1:a.validNavigations++})),this.subscriptions.add(this.routerEvents.routeUpdate.subscribe(function(){vNd(a);a.ignoringNextNav?a.ignoringNextNav=!1:a.validNavigations++})),this.subscriptions.add(this.documentVisibility.visibilityState$.pipe(ue(function(b){return b!==
"visible"}),lf(1)).subscribe(function(){a.tabWasHidden=!0})))};
var vNd=function(a){a.ignoringNextNav||(Cgd("appNavStart"),a.mostRecentlyMeasured="")},wNd=function(a,b){Cgd(b);if(b!==a.mostRecentlyMeasured){var c=a.validNavigations<=1?void 0:"appNavStart",d=c?"appNavStart-to-CF":"browserStart-to-CF",e=d+" -> "+b;a.mostRecentlyMeasured=b;if((d!=="browserStart-to-CF"||!a.tabWasHidden)&&v2a())if(b===null)console.warn("window.performance does not support endMark `null`");else try{window.performance.measure(e,c,b)}catch(f){console.warn("route_performance",f)}}};
N1.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(N1)))(b||N1)}}();N1.\u0275prov=Dc({token:N1,factory:N1.\u0275fac,providedIn:"root"});var M1=function(){var a=this;this.window=p(lR);this.visibilityState$=pe(this.window.document,"visibilityChange").pipe(xf(void 0),A(function(){return a.currentVisibility}))};da.Object.defineProperties(M1.prototype,{currentVisibility:{configurable:!0,enumerable:!0,get:function(){return this.window.document.visibilityState}}});
M1.\u0275fac=function(a){return new (a||M1)};M1.\u0275prov=Dc({token:M1,factory:M1.\u0275fac,providedIn:"root"});var xNd=function(){this.imageUrls=p(XV);this.EMPTY_BLOCKER_LIGHT=this.imageUrls.EMPTY_BLOCKER_LIGHT;this.EMPTY_BLOCKER_DARK=this.imageUrls.EMPTY_BLOCKER_DARK;this.EMPTY_CHILD_LIGHT=this.imageUrls.EMPTY_CHILD_LIGHT;this.EMPTY_CHILD_DARK=this.imageUrls.EMPTY_CHILD_DARK};xNd.\u0275fac=function(a){return new (a||xNd)};
xNd.\u0275cmp=D({type:xNd,selectors:[["b-issue-dependencies-onboarding-dialog"]],standalone:!1,decls:16,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"flex-kids-x","centered-inside"],["width","601","height","480","aria-hidden","true","alt","",1,"light-only",3,"src"],["width","601","height","480","aria-hidden","true","alt","",1,"dark-only",3,"src"],[1,"centered"],["href","https://developers.google.com/issue-tracker/concepts/parent-child-relationships","target","_blank",1,"nowrap"],
["mat-dialog-actions",""],"type button mat-flat-button  color primary matDialogClose  cdkFocusInitial ".split(" ")],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"About Dependencies"),L(),K(2,"div",1)(3,"div",2),M(4,"img",3)(5,"img",3)(6,"img",4)(7,"img",4),L(),K(8,"article")(9,"p",5),Q(10," Children are used to separate a large work item (like a project) into smaller pieces. Blockers indicate that something prevents work from starting on this issue. "),K(11,"a",6),Q(12,"Learn more"),L()()()(),K(13,
"div",7)(14,"button",8),Q(15,"Ok"),L()());a&2&&(B(4),I("src",b.EMPTY_CHILD_LIGHT,Ne),B(),I("src",b.EMPTY_BLOCKER_LIGHT,Ne),B(),I("src",b.EMPTY_CHILD_DARK,Ne),B(),I("src",b.EMPTY_BLOCKER_DARK,Ne))},dependencies:[kB,gB,VA,XA,ZA,YA],styles:["[_nghost-%COMP%]{padding:24px;display:block}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-mdc-dialog-content[_ngcontent-%COMP%], .mat-mdc-dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.mat-dialog-actions[_ngcontent-%COMP%]{padding-top:8px;margin-bottom:8px}"],
changeDetection:0});var O1=function(){Z.call(this);var a=this;this.issueFullFridge=p(gQ);this.butterBar=p(UN);this.analytics=p(eQ);this.refreshMonitor=p(VP);this.issueRelationshipsFridge=p(mQ);this.ROUTES=qs;this.parentIssueIds$=new Mj([]);this.filters=[];this.tableColumns=[].concat(q(LFd));this.tableOptions={menu:{includeGoToIssueItem:!0},deEmphasizeClosedIssues:!0};this.getMenuItems=function(b){return[{type:"action",label:"Unlink parent",action:function(){return yNd(a,b)},title:"Unlink parent",icon:"link"}]};this.showError=
function(b){return function(c){a.butterBar.showWarning(b+". "+(Pp(c)?Qp(c):c))}};this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){for(var b=m(a.parentIssueIds$.value),c=b.next();!c.done;c=b.next())a.issueFullFridge.poke(c.value)}))};Y(O1,Z);O1.\u0275dir=Z.\u0275dir;O1.prototype.ngOnInit=function(){};
var yNd=function(a,b){var c;return y(function(d){a.analytics.trackEvent("editIssue","update","remove-parent");c=a.issueId;return z(d,a.issueRelationshipsFridge.unlinkFromParent(c,b).catch(a.showError("Failed to unlink child "+c+" from parent "+b)),0)})};da.Object.defineProperties(O1.prototype,{parentIds:{configurable:!0,enumerable:!0,set:function(a){this.parentIssueIds$.next(a!=null?a:[])}},hiddenRowCount$:{configurable:!0,enumerable:!0,get:function(){return this.issuesTable.hiddenRowCount$}}});
O1.\u0275fac=function(a){return new (a||O1)};
O1.\u0275cmp=D({type:O1,selectors:[["b-parents-table"]],viewQuery:function(a,b){a&1&&hg(XZ,5);if(a&2){var c;lg(c=mg())&&(b.issuesTable=c.first)}},inputs:{parentIds:"parentIds",filters:"filters",issueId:"issueId"},standalone:!1,features:[Ef],decls:2,vars:3,consts:[[3,"issueIds","tableColumns","options","filters","issueUrlFactory","menuItemFactory"]],template:function(a,b){a&1&&(F(0,OFb,1,6,"b-issues-table",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.parentIssueIds$))?0:-1,c)}},dependencies:[XZ,Tx],
encapsulation:2,changeDetection:0});var P1=function(){this.buttonSize="large";this.buttonTooltip=this.buttonSvgIcon="";this.showActiveState=!1;this.options=[];this.confirmButtonLabel="Apply";this.cancelButtonLabel="Cancel";this.showActionButtons=!0;this.onChange=new aQ;this.onConfirm=new aQ;this.onCancel=new aQ;this.internalSelectedOptions=new aR};P1.prototype.confirm=function(a){this.onConfirm.emit(new Set(this.internalSelectedOptions));a.close()};P1.prototype.cancel=function(a){this.onCancel.emit();a.close()};
da.Object.defineProperties(P1.prototype,{selectedOptions:{configurable:!0,enumerable:!0,set:function(a){this.internalSelectedOptions.reset(a)}}});P1.\u0275fac=function(a){return new (a||P1)};
P1.\u0275cmp=D({type:P1,selectors:[["select-menu"]],inputs:{buttonSize:"buttonSize",buttonAriaLabel:"buttonAriaLabel",buttonSvgIcon:"buttonSvgIcon",buttonTooltip:"buttonTooltip",showActiveState:"showActiveState",overlayTitle:"overlayTitle",options:"options",selectedOptions:"selectedOptions",confirmButtonLabel:"confirmButtonLabel",cancelButtonLabel:"cancelButtonLabel",showActionButtons:"showActionButtons"},outputs:{onChange:"onChange",onConfirm:"onConfirm",onCancel:"onCancel"},standalone:!1,decls:12,
vars:14,consts:[["trigger","onedevPopupPanelTrigger"],["optionsPanel","onedevPopupPanel"],["type","button","mat-icon-button","","onedevPopupPanelTrigger","","aria-haspopup","true",3,"click","onedevPopupPanelTriggerFor","color","matTooltip"],[3,"svgIcon"],["role","region","className","select-menu-popup"],[1,"padded-s","flex-kids-y"],[1,"title","margin-s-x","padded-s"],[1,"flex-kids-x"],[1,"badge",3,"title"],[1,"option","grow-1","flex-kids-x","align-items-center","padded-x","padded-s-y","gap"],[3,"change",
"checked"],[1,"flex-kids-x","justify-flex-end","padded-s","gap-s"],["type","button","mat-stroked-button","",1,"cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"confirm",3,"click"]],template:function(a,b){if(a&1){var c=t();K(0,"button",2,0);T(2,"async");N("click",function(){u(c);var d=qg(1),e;(e=d.isOpen)!=null&&e?d.close():d.open();return v()});M(3,"mat-icon",3);F(4,QFb,2,3);L();K(5,"onedev-popup-panel",4,1)(7,"div",5);F(8,RFb,2,1,"h1",6);Nf(9,UFb,7,5,"div",7,Mf);F(11,
VFb,6,2);L()()}a&2&&(a=qg(6),wg("large",b.buttonSize==="large")("small",b.buttonSize==="small"),I("onedevPopupPanelTriggerFor",a)("color",b.showActiveState&&U(2,12,b.internalSelectedOptions.size$)?"primary":null)("matTooltip",b.buttonTooltip),If("aria-label",b.buttonAriaLabel),B(3),I("svgIcon",b.buttonSvgIcon),B(),G(b.showActiveState?4:-1),B(4),G(b.overlayTitle?8:-1),B(),Of(b.options),B(2),G(b.showActionButtons?11:-1))},dependencies:[Jy,kB,gB,iB,kL,hI,hK,vK,nA,rW,sW,Tx],styles:[".select-menu-popup{flex-direction:column;max-width:18rem;max-height:calc(100vh - 100px);overflow-y:auto;margin-top:10px}.select-menu-popup .title{font-weight:500}.select-menu-popup .option:hover{background-color:#e8f0fe;background-color:var(--primary-c50)}select-menu button:not(.mat-primary) mat-icon{color:#5f6368;color:var(--icon)}select-menu button[aria-expanded=true]{background-color:#d2e3fc;background-color:var(--selected-bg)}select-menu button span.badge{font-size:.6875rem;display:inline-block;bottom:-4px;right:-9px;position:absolute;padding:0px 6px;border-radius:30px;margin-top:0px;box-sizing:border-box;height:16px;line-height:16px;color:#fff;color:var(--text-inverse);background-color:#1a73e8;background-color:var(--primary-btn-bg)}/*# sourceMappingURL=select_menu.css.map */\n"],
encapsulation:2,changeDetection:0});var zNd=function(){return[]},cGb=function(a){return{filteredCount:a}},Q1=function(){Z.call(this);var a=this;this.brain=p(YQ);this.issuePicker=p(UX);this.issueRelationshipsFridge=p(mQ);this.issueFullFridge=p(gQ);this.router=p(fF);this.routePerformance=p(N1);this.element=p(Hd);this.analytics=p(eQ);this.issuePermissionService=p($Q);this.activeSession=p(uu);this.counts=p(K1);this.matDialog=p(UA);this.butterBar=p(UN);this.makeIlpUrlForParentIssue=tub;this.recallFilters=to("deps-filters");this.saveFilters=
uo("deps-filters");this.isThinking$=ie([this.issueFullFridge.saving$,this.issueRelationshipsFridge.saving$]).pipe(A(function(b){return b.some(Boolean)}));this.issueId$=this.brain.id$.pipe(ue(Pm),A(N$a));this.issue$=this.brain.issueJs$.pipe(ue(Pm));this.parentIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.parentIssueIds)!=null?c:[]}));this.parentIssues$=this.parentIds$.pipe(yf(function(b){return a.issueFullFridge.watchSet(b)}));this.parentsCount$=this.parentIssues$.pipe(A(function(b){return b.filter(bUa).length}));
this.childrenIds$=this.issueId$.pipe(yf(function(b){return a.issueRelationshipsFridge.watch(b)}),A(function(b){var c;return(c=b==null?void 0:b.relatedChildren.map(function(d){return d.targetIssueId}))!=null?c:[]}));this.totalDaysOpen$=this.issue$.pipe(A(function(b){var c,d;return((c=ho(b))==null?void 0:(d=c.effort)==null?void 0:d.totalOpen)||0}));this.totalDaysComplete$=this.issue$.pipe(A(function(b){var c,d;return((c=ho(b))==null?void 0:(d=c.effort)==null?void 0:d.totalComplete)||0}));this.unarchivedChildIssueCount$=
this.childrenIds$.pipe(A(function(b){return b.length}));this.isNonPublicSession=this.activeSession.isNonPublicSession();this.isInternalSession=this.activeSession.isInternalSession();this.enableRollupStatsUi=this.activeSession.getFlag("enableRollupStatsUi");this.totalDaysCount$=ie([this.totalDaysOpen$,this.totalDaysComplete$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b+c}));this.totalDaysDisplayPercent$=vGb(this.totalDaysComplete$,this.totalDaysCount$);this.progressHovercardContent$=
ie([this.totalDaysComplete$,this.totalDaysOpen$,this.totalDaysDisplayPercent$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return wGb(Math.round(b*100)/100)+" completed | "+wGb(Math.round(d*100)/100)+" open | "+c+"% completed"}));this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.rowCreated$=new qf;this.issueFilters=new aR;this.ISSUE_FILTER_OPTIONS=[{key:qt.OPEN.key,title:qt.OPEN.displayAs,description:"Hides closed issues"},{key:qt.ASSIGNED_TO_ME.key,
title:qt.ASSIGNED_TO_ME.displayAs,description:"Hides issues not assigned to me"}];fe(TYa("b-issue-relations-table tr .mat-column-title a",this.element.nativeElement).pipe(zf(te(this.destroyed$,this.rowCreated$)))).then(function(){var b=function(){wNd(a.routePerformance,"issue-details-w-tree")};requestAnimationFrame(b);setTimeout(b)}).catch(function(){});try{this.issueFilters.reset(this.recallFilters().filter(yub))}catch(b){}this.subscriptions.add(this.issueFilters.value$.subscribe(function(b){a.saveFilters([].concat(q(b)))}))};
Y(Q1,Z);Q1.\u0275dir=Z.\u0275dir;
var rGb=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return a.analytics.trackEvent("editIssue","update","add-parent"),z(d,fe(a.issue$),2);b=d.yieldResult;c=b.issueId;return z(d,a.issuePicker.open({title:"Add Parent to b/"+c,allowMultipleIds:!1,edgeType:"parent"},function(e){ANd(a,c,e)}),0)})},ANd=function(a,b,c){var d=m(c).next().value;var e,f,g,k;y(function(l){if(l.nextAddress==1)return(e=d)?z(l,a.issueRelationshipsFridge.assignParentToOneIssue(e,b),2):l.return();f=l.yieldResult;
g=f.errors;return((k=g)==null?0:k.length)?(a.butterBar.showWarning("Could not add parent"),l.return()):z(l,a.issueFullFridge.poke(b),0)})};Q1.prototype.shouldResetFilters=function(){this.issueFilters.reset([])};Q1.prototype.addChild=function(){this.rowCreated$.next();var a;(a=this.relationsTable)==null||a.addExistingChild()};Q1.prototype.createChild=function(){this.rowCreated$.next();var a;(a=this.relationsTable)==null||zGb(a)};
Q1.prototype.openLearnMore=function(){this.matDialog.open(xNd,{maxWidth:"1300px",width:"90%"})};Q1.\u0275fac=function(a){return new (a||Q1)};
Q1.\u0275cmp=D({type:Q1,selectors:[["b-issue-dependencies"]],viewQuery:function(a,b){a&1&&(hg(A1,5),hg(L1,5),hg(O1,5));if(a&2){var c;lg(c=mg())&&(b.relationsTable=c.first);lg(c=mg())&&(b.blockersTable=c.first);lg(c=mg())&&(b.parentsTable=c.first)}},standalone:!1,features:[Ef],decls:15,vars:13,consts:[["filterInfo",""],["addParent",""],["addChildren",""],["progressHovercard","onedevHovercard"],["effortHovercard","onedevHovercard"],[1,"status","flex-kids-x","gap-s","align-items-center","justify-flex-end"],
["buttonSize","small","buttonSvgIcon","filter-alt","buttonTooltip","Filter issues","buttonAriaLabel","Filter issues","overlayTitle","Only show issues that are",3,"onChange","options","selectedOptions","showActionButtons","showActiveState"],["type","button","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,"pos-rel","carded","margined-s","bg-main","flex-kids-y","gap-l"],[1,"parents"],
[1,"table-header","flex-kids-x","align-items-center"],[1,"muted","margin-s-y","flex-kids-x","align-items-center"],["role","status",1,"b-chip","nowrap","squared","xs","keep-focus-ring"],["svgIcon","arrow_upward_24px",1,"icon-xxs"],[3,"issueId","parentIds","filters"],[3,"shouldResetFilters","filters"],[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"],[1,"progress-header"],[1,"margin-s-bottom",3,"id"],[3,"rootIssueId","filters","saveExpansionAtKey"],[4,"ngTemplateOutlet"],[1,"muted"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex-kids-x","align-items-center"],[1,"margin-s-right"],[1,"label"],[1,"progress","margin-s-right",3,"onedevHovercardTrigger"],[1,"completion"],["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"],[1,"onedev-hovercard-body"],[1,"margin-s-top"],["title","View the search results page for this issue and all descendants",3,"href"],["type","button",
1,"subtle-link","unstyled",3,"click"],["size","small","title","Add a parent of the current issue",1,"add",3,"onAction","disabled"],["size","small","title","Create an issue as a child",1,"add",3,"disabled"],["size","small","title","Add an existing issue as a child",1,"add",3,"onAction","disabled"],["size","small","title","Create an issue as a child",1,"add",3,"onAction","disabled"]],template:function(a,b){if(a&1){var c=t();K(0,"div",5);F(1,WFb,1,0,"b-spinner");T(2,"async");K(3,"select-menu",6);T(4,
"async");N("onChange",function(f){u(c);return v(b.issueFilters.reset(f))});L();K(5,"button",7);N("click",function(){u(c);return v(b.openLearnMore())});M(6,"mat-icon",8);L()();F(7,oGb,40,47,"div",9);T(8,"async");E(9,qGb,1,1,"ng-template",null,0,Mg)(11,sGb,3,3,"ng-template",null,1,Mg)(13,uGb,4,4,"ng-template",null,2,Mg)}if(a&2){var d;B();G(U(2,6,b.isThinking$)?1:-1);B(2);var e;I("options",b.ISSUE_FILTER_OPTIONS)("selectedOptions",(e=U(4,8,b.issueFilters.value$))!=null?e:Hg(12,zNd))("showActionButtons",
!1)("showActiveState",!0);B(4);G((d=U(8,10,b.issueId$))?7:-1,d)}},dependencies:[Sx,Jy,KK,SK,kB,iB,vK,nA,MU,P1,cU,p1,L1,A1,O1,Tx,Zx],styles:["b-issue-dependencies h4 button{margin:-8px 0}b-issue-dependencies h4 button.gmat-mdc-button.mat-mdc-outlined-button.small{line-height:21px}b-issue-dependencies .carded{padding-top:0;margin-top:0}b-issue-dependencies .table-header{margin-top:0;margin-bottom:4px}b-issue-dependencies .status{padding:4px 16px}b-issue-dependencies .status b-spinner{margin-top:4px}b-issue-dependencies .status mat-icon{margin-top:-1px}b-issue-dependencies b-issue-relations-table{display:block;overflow-x:auto}b-issue-dependencies b-button.add{margin-left:16px}b-issue-dependencies .emoji{font-size:1rem;padding:0 4px}b-issue-dependencies .progress-header{padding-top:12px;font-size:.75rem;padding-bottom:16px}b-issue-dependencies .progress{border-radius:6px;border:1px solid;border-color:#137333;border-color:var(--good-text);height:8px;width:132px;position:relative}b-issue-dependencies .progress>.completion{background-color:#137333;background-color:var(--good-text);height:100%;border-radius:9px}b-issue-dependencies .progress-hover-card{font-weight:bold}b-issue-dependencies button.subtle-link.unstyled{color:#1a73e8;color:var(--link)}\n"],
encapsulation:2,changeDetection:0});var BNd=function(){};BNd.\u0275fac=function(a){return new (a||BNd)};BNd.\u0275mod=$e({type:BNd});BNd.\u0275inj=Fc({imports:[WO,mB,lL,iK,wK,EX]});var R1=function(){};R1.\u0275fac=function(a){return new (a||R1)};R1.\u0275mod=$e({type:R1});R1.\u0275inj=Fc({imports:[ez,uI,Hy,WO,DE,TK,mB,TJ,Z0,LX,DL,wK,EE,CZ,HX,NU,xX,a1,IX,BNd,xU,eU,t1,TW,hV]});var S1=function(){Z.apply(this,arguments);var a=this;this.prefsService=p(r1);this.issueFullFridge=p(gQ);this.savedSearchFridge=p(pP);this.analytics=p(eQ);this.activeSession=p(uu);this.TREE_COLUMNS=[].concat(q(PFd));this.TREE_OPTIONS=Object.assign({},RFd);this.isInternalSession=this.activeSession.isInternalSession();this.refreshWorkArea=new qf;this.hideRecentActivity=!1;this.typeAndId$=new Mj([void 0,void 0]);this.typeAndId$.pipe(yf(function(b){var c=m(b);b=c.next().value;return(c=c.next().value)&&
b==="savedsearch"?a.savedSearchFridge.watch(c):ce(void 0)}));this.issue$=this.typeAndId$.pipe(yf(function(b){var c=m(b);b=c.next().value;return(c=c.next().value)&&b==="issue"?a.issueFullFridge.watch(c):ce(void 0)}));this.issueFilter$=this.typeAndId$.pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(b==="issue")return"parentid:"+c+"+ | id:"+c;if(b==="savedsearch")return"savedsearchid:"+c;if(b==="hotlist")return"hotlistid:"+c}),A(function(b){if(b!==void 0){var c;if((c=a.activeSession.getTracker())==
null?0:c.trackerId){var d;b+=" trackerid:"+((d=a.activeSession.getTracker())==null?void 0:d.trackerId)}return b}}))};Y(S1,Z);S1.\u0275dir=Z.\u0275dir;S1.prototype.ngOnInit=function(){var a=this;this.refreshWorkArea.pipe(zf(this.destroyed$)).subscribe(function(){a.typeAndId$.next([a.entityType,a.referencedId])})};S1.prototype.getFilters=function(){return ULd(this.prefsService,this.entityReference)};S1.prototype.showTable=function(){return this.onlyShowTableWhenFiltered?this.getFilters().length>0:!0};
da.Object.defineProperties(S1.prototype,{reference:{configurable:!0,enumerable:!0,set:function(a){this.entityReference=a;this.referencedId=ot(a);this.entityType=pt(a);this.analytics.trackEvent("missionControl","view","work-area-"+this.entityType);this.typeAndId$.next([this.entityType,this.referencedId])}}});S1.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(S1)))(b||S1)}}();
S1.\u0275cmp=D({type:S1,selectors:[["one-work-area"]],viewQuery:function(a,b){a&1&&hg(A1,5);if(a&2){var c;lg(c=mg())&&(b.relationsTable=c.first)}},inputs:{reference:"reference",refreshWorkArea:"refreshWorkArea",hideRecentActivity:"hideRecentActivity",numRecentActivityEvents:"numRecentActivityEvents",onlyShowTableWhenFiltered:"onlyShowTableWhenFiltered"},standalone:!1,features:[Ef],decls:1,vars:1,consts:[[3,"searchString","prefKey","reference","onlyShowTableWhenFiltered","entityType"],[1,"margin-top",
3,"query","numEvents"],[1,"margin-bottom",3,"id"],[3,"saveExpansionAtKey","rootIssueId","filters","tableColumns","options","defaultExpansionLevel"],[1,"bg-off-main","margin-bottom","rounded","padded"],[1,"muted","margin-s-bottom"],["type","button","mat-flat-button","","color","primary","title","Create an issue as a child in this work area",1,"small","gmat-button",3,"click"],["type","button","mat-button","","title","Add an existing issue as a child in this work area",1,"small","gmat-button",3,"click"]],
template:function(a,b){a&1&&F(0,GGb,4,2);if(a&2){var c;G((c=b.referencedId)?0:-1,c)}},styles:["[_nghost-%COMP%] { display: block; }"]});var CNd=Object.assign({},QFd,{showActiveIndicator:!1,showMenu:!1,showTrending:!0}),DNd={column:"MODIFIED_TIME",direction:"DESCENDING"},T1=function(){var a=this;this.prefsService=p(r1);this.activeSession=p(uu);this.issueFridge=p(XP);this.DEFAULT_COLUMNS=[].concat(q(NFd));this.PROGRESS_COLUMNS=[].concat(q(OFd));this.TABLE_OPTIONS=Object.assign({},CNd);this.INITIAL_SORT=DNd;this.isInternalSession=this.activeSession.isInternalSession();this.searchString$=new Mj(void 0);this.issueQuery$=this.searchString$.pipe(A(HGb));
this.issueIds$=this.issueQuery$.pipe(yf(function(b){return a.issueFridge.watchMany(b)}),A(function(b){if(a.entityType==="issue")return b.results;var c;return Pmd(b.results,(c=a.activeSession.getTracker())==null?void 0:c.trackerId)}),A(function(b){return b.map(function(c){return c.issueId})}))};T1.prototype.getFilters=function(){return this.prefKey==null?[]:ULd(this.prefsService,this.prefKey)};T1.prototype.showTable=function(){return this.onlyShowTableWhenFiltered?this.getFilters().length>0:!0};
da.Object.defineProperties(T1.prototype,{searchString:{configurable:!0,enumerable:!0,set:function(a){this.searchString$.next(a!=null?a:void 0)}}});T1.\u0275fac=function(a){return new (a||T1)};
T1.\u0275cmp=D({type:T1,selectors:[["one-work-area-list"]],inputs:{searchString:"searchString",prefKey:"prefKey",entityType:"entityType",reference:"reference",onlyShowTableWhenFiltered:"onlyShowTableWhenFiltered"},standalone:!1,decls:2,vars:2,consts:[[1,"margin-bottom",3,"ref","query"],[1,"margin-bottom",3,"prefKey","query","entityType"],[3,"issueIds","options","filters","tableColumns","initialSort"]],template:function(a,b){a&1&&(F(0,IGb,4,9),F(1,KGb,2,3));a&2&&(G(b.isInternalSession?0:-1),B(),G(b.showTable()?
1:-1))},dependencies:[o1,$Ld,XZ,Tx],styles:["[_nghost-%COMP%] { display: block; }"]});var VGb=function(a,b){return b.workAreaUrl},U1=function(){Z.call(this);var a=this;this.prefsService=p(r1);this.issueFullFridge=p(gQ);this.hotlistFridge=p(lP);this.savedSearchFridge=p(pP);this.hotlistPicker=p(FY);this.issuePicker=p(UX);this.savedSearchPicker=p(n1);this.analytics=p(eQ);this.clipboard=p(oR);this.butterBar=p(UN);this.parentIssueSuggestions=p(XLd);this.imageUrls=p(XV);this.activeSession=p(uu);this.refreshData=new qf;this.SECTION_SLUG="work-areas-wrapper-card";this.EMPTY_STATE_IMG=this.imageUrls.WORK_AREA_EXAMPLE_ILLUSTRATION;
this.inferEntityType=pt;this.makeBuganizerUrl=sub;this.makeIlpUrlForParentIssue=tub;this.getEntityTypeName=rub;this.extractLastDigits=ot;this.suggestions=[];this.titles={};var b;this.currentTrackerId=(b=this.activeSession.getTracker())==null?void 0:b.trackerId;this.INITIAL_TAB_INDEX=TLd(this.prefsService,"work-areas-wrapper-card");this.workAreaReferences$=this.prefsService.prefs$.pipe(A(function(d){var e;return(e=d==null?void 0:d.workAreaUrls)!=null?e:[]}));this.issues$=this.workAreaReferences$.pipe(A(function(d){return d.filter(function(e){return pt(e)===
"issue"})}),A(function(d){return d.map(ot)}),nf(mm),A(function(d){return d.filter(Pm)}),yf(function(d){return a.issueFullFridge.watchSet(d)}));this.hotlists$=this.workAreaReferences$.pipe(A(function(d){return d.filter(function(e){return pt(e)==="hotlist"})}),A(function(d){return d.map(ot)}),nf(mm),A(function(d){return d.filter(Pm)}),yf(function(d){return a.hotlistFridge.watchSet(d)}));this.savedSearches$=this.workAreaReferences$.pipe(A(function(d){return d.filter(function(e){return pt(e)==="savedsearch"})}),
A(function(d){return d.map(ot)}),nf(mm),A(function(d){return d.filter(Pm)}),yf(function(d){return a.savedSearchFridge.watchSet(d)}));this.refsForTemplate$=this.workAreaReferences$.pipe(hf(this.issues$),zf(this.destroyed$),A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;return d.map(function(g){var k=f.find(function(l){return l.issueId===g});return{workAreaUrl:g,trackerId:k==null?void 0:k.trackerId}})}));this.issues$.pipe(zf(this.destroyed$)).subscribe(this.updateTitlesForIssues.bind(this));
this.hotlists$.pipe(zf(this.destroyed$)).subscribe(this.updateTitlesForHotlists.bind(this));this.savedSearches$.pipe(zf(this.destroyed$)).subscribe(this.updateTitlesForSavedSearches.bind(this));b=this.workAreaReferences.length;this.analytics.trackEvent("missionControl","display","num-work-areas-"+b,b);var c;b=Object.values((c=this.prefsService.prefs.workAreaQuickFilters)!=null?c:{}).flat();b.length>0&&this.analytics.trackEvent("missionControl","view","workAreas-filters-"+b.join(","));re(2E3).pipe(yf(function(){return a.parentIssueSuggestions.suggestions$}),
zf(this.destroyed$),lf(1)).subscribe(function(d){var e=3;e=e===void 0?3:e;if(d.length!==0){var f=d.slice(0,e*2),g=[].concat(q(f));if(!(f.length<=1))for(f=g.length-1;f>0;--f){var k=Math.floor(Math.random()*(f+1)),l=g[f];g[f]=g[k];g[k]=l}e=g.slice(0,e);d=d[0];e.includes(d)||(e.pop(),e.unshift(d));d=e}a.suggestions=d;a.workAreaReferences.length===0&&(d=d.length,a.analytics.trackEvent("missionControl","suggestions-shown",String(d),d))})};Y(U1,Z);U1.\u0275dir=Z.\u0275dir;h=U1.prototype;
h.toggleCollapsed=function(){this.prefsService.toggleCollapsed("work-areas-wrapper-card")};h.ariaLabelForToggleButton=function(){return this.isCollapsed?"Expand work areas section":"Collapse work areas section"};h.updateTitlesForIssues=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.titles[b.issueId]=(c=b.snapshot[0])==null?void 0:c.title}};
h.updateTitlesForHotlists=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[oub(b.hotlistId)]=b.name};h.updateTitlesForSavedSearches=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[pub(b.searchId)]=b.name};
var ENd=function(a){var b,c,d,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1)return b=a.workAreaReferences.filter(function(x){return pt(x)==="hotlist"}).map(ot).map(Number),z(w,eCd(a.hotlistPicker,b,ce([])),2);c=w.yieldResult;f=((e=(d=c)==null?void 0:d.hotlistDiff.added)!=null?e:[]).map(oub);l=((k=(g=c)==null?void 0:g.hotlistDiff.removed)!=null?k:[]).map(oub);r=a.workAreaReferences.slice();r=UZa(l,r);r=XZa(f,r);Jt(a.prefsService,{workAreaUrls:r});ae(w)})},FNd=function(a){var b;return y(function(c){if(c.nextAddress==
1)return z(c,a.issuePicker.open({title:"Choose a parent issue",allowMultipleIds:!0}),2);b=c.yieldResult;b!=null&&VLd(a.prefsService,b);ae(c)})},YGb=function(a,b){var c=a.suggestions.map(function(d){return d.ref}).indexOf(b);a.analytics.trackEvent("missionControl","suggestion-chosen",String(c));b!=null&&VLd(a.prefsService,b)},GNd=function(a){var b,c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,a.savedSearchPicker.open(),2);b=f.yieldResult;d=(c=b)!=null?c:[];if(d.length===0)return f.return();
e=d.map(pub);VLd(a.prefsService,e);ae(f)})};da.Object.defineProperties(U1.prototype,{workAreaReferences:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.prefsService.prefs.workAreaUrls)!=null?a:[]}},isEmpty:{configurable:!0,enumerable:!0,get:function(){return this.workAreaReferences.length===0}},isCollapsed:{configurable:!0,enumerable:!0,get:function(){return this.prefsService.isCollapsed("work-areas-wrapper-card")}}});U1.\u0275fac=function(a){return new (a||U1)};
U1.\u0275cmp=D({type:U1,selectors:[["work-areas-wrapper-card"]],hostVars:4,hostBindings:function(a,b){a&2&&wg("is-empty",b.isEmpty)("collapsed",b.isCollapsed)},inputs:{refreshData:"refreshData"},standalone:!1,features:[Ef],decls:18,vars:3,consts:[["addMenu","matMenu"],["editMenu","matMenu"],["issueHovercard","onedevHovercard"],[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center"],[1,"heading-s"],["svgIcon","info","tabindex","0","role","button","aria-hidden","false","aria-label","Keeping a close eye on the projects, hotlists, or saved searches that you are focusing on",
"matTooltip","Keeping a close eye on the projects, hotlists, or saved searches that you are focusing on",1,"info","margin-s-left"],["type","button","mat-icon-button","",1,"small","collapse-btn","margin-s-left",3,"click"],["svgIcon","arrow-up",1,"icon-m"],["type","button","mat-stroked-button","","title","Add a work area",1,"small","add-work-area","margin-s-left",3,"matMenuTriggerFor"],["type","button","mat-menu-item","",3,"click"],["gmat-tabs","",1,"main-content","margin-s-top",3,"selectedIndex"],
[1,"flex-kids-y","align-items-center","text-align-center","empty-state","main-content"],["svgIcon","add",1,"icon-s"],["gmat-tabs","",1,"main-content","margin-s-top",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],["matTabContent",""],[3,"trackerId","compactMode"],["type","button","mat-icon-button","","aria-label","More options","aria-haspopup","true",1,"small","muted","menu-trigger",3,"click","matMenuTriggerFor"],["svgIcon","more-settings-vertical",1,"icon-xs"],["data-test","edit-menu",
1,"foo"],["mat-menu-item","","title","View the work area full screen",3,"routerLink"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click","disabled"],["svgIcon","arrow-backward",1,"icon-s"],["svgIcon","arrow-forward",1,"icon-s"],["type","button","mat-menu-item","",3,"click","title"],["svgIcon","close",1,"icon-s"],["mat-menu-item","","title","View the issue details page",3,"routerLink"],["svgIcon","link",1,"icon-s"],["mat-menu-item","","title","View the search results page for this issue and all descendants",
3,"href"],["svgIcon","copy",1,"icon-s"],[1,"margin-top",3,"reference","refreshWorkArea"],[1,"inline-block","pos-rel"],["aria-hidden","true","alt","",3,"src"],[1,"pos-abs","work-area-suggestions"],[1,"type-l","muted","margin-y","match-image-width"],["type","button","mat-flat-button","","color","primary","title","Add a work area",3,"matMenuTriggerFor"],["svgIcon","add"],[1,"unstyled"],["tabindex","0",1,"elevated","rounded","padded-s","margined-s","slide-in",3,"title"],["tabindex","0",1,"elevated","rounded",
"padded-s","margined-s","slide-in",3,"click","title"],[1,"line-clamp-2"],[1,"muted","type-s",3,"onedevHovercardTrigger"],[3,"issueId"]],template:function(a,b){if(a&1){var c=t();K(0,"div",3)(1,"header",4)(2,"h3",5);Q(3," Work areas ");L();M(4,"mat-icon",6);K(5,"button",7);N("click",function(){u(c);return v(b.toggleCollapsed())});M(6,"mat-icon",8);L();F(7,LGb,3,1,"button",9);K(8,"mat-menu",null,0)(10,"button",10);N("click",function(){u(c);return v(FNd(b))});Q(11,"Issue (parent/child project)");L();
K(12,"button",10);N("click",function(){u(c);return v(ENd(b))});Q(13,"Hotlist");L();K(14,"button",10);N("click",function(){u(c);return v(GNd(b))});Q(15,"Saved Search");L()()();F(16,WGb,4,3,"mat-tab-group",11)(17,aHb,9,3,"section",12);L()}a&2&&(B(5),If("aria-label",b.ariaLabelForToggleButton()),B(2),G(b.workAreaReferences.length>0?7:-1),B(9),G(b.workAreaReferences.length>0?16:17))},dependencies:[Jy,hF,VJ,fH,dH,iH,kB,gB,iB,hK,BL,sL,vL,wL,xL,vK,nA,MW,KK,SK,ZV,S1,Tx],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     issue-as-project-card>.carded{border:none;padding-left:0}.add-work-area[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{--mat-button-outlined-icon-spacing:4px;--mat-button-outlined-icon-offset:0}.add-work-area.gmat-mdc-button[_ngcontent-%COMP%], .add-work-area.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[_ngcontent-%COMP%]{padding-left:4px}.info[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);height:20px;width:20px}.empty-state[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:32px}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:320px;box-shadow:0 0 0 10px var(--background),0 0 0 20px var(--primary-c50);margin:20px 0;border-radius:8px}[_nghost-%COMP%]     .mat-mdc-tab-label .mat-mdc-tab-label-content{padding-left:4px;margin-right:-4px}[_nghost-%COMP%]     .mat-mdc-tab-label .menu-trigger{visibility:hidden}[_nghost-%COMP%]     .mat-mdc-tab-label.mat-mdc-tab-label-active .menu-trigger, [_nghost-%COMP%]     .mat-mdc-tab-label:hover .menu-trigger{visibility:visible}.collapsed[_nghost-%COMP%]   .main-content[_ngcontent-%COMP%], .collapsed[_nghost-%COMP%]   .stats[_ngcontent-%COMP%], .collapsed[_nghost-%COMP%]   footer[_ngcontent-%COMP%], .collapsed[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .add-work-area[_ngcontent-%COMP%]{display:none}.collapse-btn[_ngcontent-%COMP%]{-webkit-transition:-webkit-transform .1s ease-in-out;transition:-webkit-transform .1s ease-in-out;transition:transform .1s ease-in-out;transition:transform .1s ease-in-out,-webkit-transform .1s ease-in-out}.collapsed[_nghost-%COMP%]   .collapse-btn[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}[_nghost-%COMP%] > .carded[_ngcontent-%COMP%]{-webkit-transition:none .1s ease-in-out;transition:none .1s ease-in-out;-webkit-transition-property:padding;transition-property:padding}.collapsed[_nghost-%COMP%] > .carded[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}[_nghost-%COMP%]{min-height:800px}.collapsed[_nghost-%COMP%], .is-empty[_nghost-%COMP%]{min-height:0}.match-image-width[_ngcontent-%COMP%]{max-width:360px}.work-area-suggestions[_ngcontent-%COMP%]{position:absolute;top:0;left:100%;width:200px;margin-left:48px;overflow-x:hidden;overflow-y:visible}.work-area-suggestions[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin-top:0}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;text-align:center;cursor:pointer}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:focus-visible{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{-webkit-transform:translateX(120%);transform:translateX(120%)}.work-area-suggestions[_ngcontent-%COMP%]   li.slide-in[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_slide-in .5s forwards;animation:_ngcontent-%COMP%_slide-in .5s forwards}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:0ms;animation-delay:0ms}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.1s;animation-delay:.1s}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.2s;animation-delay:.2s}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:.3s;animation-delay:.3s}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:.4s;animation-delay:.4s}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:.5s;animation-delay:.5s}@-webkit-keyframes _ngcontent-%COMP%_slide-in{to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes _ngcontent-%COMP%_slide-in{to{-webkit-transform:translateX(0);transform:translateX(0)}}"]});var V1=function(){};V1.\u0275fac=function(a){return new (a||V1)};V1.\u0275mod=$e({type:V1});V1.\u0275inj=Fc({imports:[WO,WJ,Ly,mB,iK,DL,wK,t1,a1,QLd,R1,l1,xX,TK,GX]});noa(S1,[kB,gB,p1,aMd,A1,k1,T1],[Tx]);var HNd=function(){};HNd.\u0275fac=function(a){return new (a||HNd)};HNd.\u0275mod=$e({type:HNd});HNd.\u0275inj=Fc({imports:[WO,DE,BU,DL,wK,mB,zM,EE,l1,eU,V1]});var INd=function(){this.showPageSizeSelector=!1;this.pageSizeOptions=[10,25,50,100,250];this.pageSize=1;this.hasNextPage=this.hasPreviousPage=!1;this.previousPageLabel="Previous page";this.nextPageLabel="Next page";this.nextPage=new aQ;this.prevPage=new aQ;this.pageSizeChange=new aQ};INd.prototype.ngOnInit=function(){};INd.\u0275fac=function(a){return new (a||INd)};
INd.\u0275cmp=D({type:INd,selectors:[["b-paginator"]],inputs:{showPageSizeSelector:"showPageSizeSelector",pageSizeOptions:"pageSizeOptions",pageSize:"pageSize",startIndex:"startIndex",endIndex:"endIndex",totalNumber:"totalNumber",hasPreviousPage:"hasPreviousPage",hasNextPage:"hasNextPage",previousPageLabel:"previousPageLabel",nextPageLabel:"nextPageLabel"},outputs:{nextPage:"nextPage",prevPage:"prevPage",pageSizeChange:"pageSizeChange"},standalone:!1,decls:13,vars:8,consts:[["pageSizeMenu","matMenu"],
[1,"page-number"],["type","button","mat-icon-button","","color","primary",3,"click","matTooltip","disabled"],["svgIcon","chevron-left"],["svgIcon","chevron-right"],["type","button","mat-icon-button","","matTooltip","Change page size",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown"],[1,"b-menu-header"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"click"],[1,"b-menu-item-check-mark"],["svgIcon",
"done",1,"icon-s"]],template:function(a,b){a&1&&(F(0,cHb,8,1),K(1,"span",1)(2,"strong"),Q(3),L(),F(4,dHb,4,1,"span"),K(5,"span"),Q(6," of "),K(7,"strong"),Q(8),L()(),K(9,"button",2),N("click",function(){return b.prevPage.emit()}),M(10,"mat-icon",3),L(),K(11,"button",2),N("click",function(){return b.nextPage.emit()}),M(12,"mat-icon",4),L()());a&2&&(G(b.showPageSizeSelector?0:-1),B(3),yg(b.startIndex),B(),G(b.endIndex!=null?4:-1),B(4),yg(b.totalNumber),B(),I("matTooltip",b.previousPageLabel)("disabled",
!b.hasPreviousPage),B(2),I("matTooltip",b.nextPageLabel)("disabled",!b.hasNextPage))},dependencies:[Jy,kB,iB,VJ,fH,dH,iH,vK,nA],styles:["[_nghost-%COMP%] {\n      display: flex;\n      align-items: center;\n    }\n    .page-number[_ngcontent-%COMP%] {\n      white-space: nowrap;\n    }"]});var rHb=function(a,b){return{issueIds:a,teamId:b}},AHb=function(){return[]},BHb=function(){return{}},mHb=function(a,b){return b.key},W1=function(){Z.call(this);var a=this;this.activeSession=p(uu);this.paramsService=p(WQ);this.appSearchState=p(rT);this.userPreferencesManager=p(hR);this.imageUrls=p(XV);this.teamExperimentalFieldsFridge=p(SQ);this.triageService=p(ZR);this.punctualService=p(jY);this.issueFridge=p(XP);this.issueFullFridge=p(gQ);this.bLocation=p(bU);this.refreshMonitor=p(VP);this.issueExperimentalFieldsFridge=
p(UP);this.starredTeamsService=p(VR);this.teamsService=p(OQ);this.ROUTES=qs;this.TriageServiceMode=Yld;this.SUBPHASE_TO_DISPLAY_NAME=Zkd;this.LAST_30_DAYS=wld.LAST_30_DAYS;this.EMPTY_STATE_IMG=this.imageUrls.EMPTY_TRIAGE;this.HOTKEYS=Xr;this.RIGHT_SIDEBAR_MIN_WIDTH=650;this.RIGHT_SIDEBAR_MAX_WIDTH=1400;this.selectedFilterKeys=new aR;this.teamId=this.paramsService.params.teamId;this.triageId=this.paramsService.params.triageId;this.enableTeamScope=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();
this.phase$=Ijd(this.paramsService,"phase").pipe(A(function(d){var e;return(e=bld.get(d))!=null?e:"NEW"}),nf());this.subphase$=Ijd(this.paramsService,"subphase").pipe(A(function(d){var e;return(e=ald.get(d))!=null?e:void 0}),nf());this.pageSize$=this.userPreferencesManager.resultsPerPage$;this.pageNumber$=new Mj(1);this.activeSort$=new Mj(void 0);this.data=this.triageService.triageDataFactory.get(this.teamId,this.triageId);this.phaseData$=this.phase$.pipe(A(function(d){return a.data.phase(d)}));this.allIssuesInPhase$=
this.phaseData$.pipe(yf(function(d){return d.issues$}));this.allIssuesInSubphase$=ie([this.allIssuesInPhase$,this.subphase$]).pipe(A(function(d){var e,f=m(d);d=f.next().value;return(e=f.next().value)?d.filter(function(g){return Hr(g)===e}):d}));this.selectedFilters$=this.selectedFilterKeys.value$.pipe(A(function(d){return[].concat(q(d)).map(function(e){return wld[e]})}));this.alerts$=this.phase$.pipe(A(function(d){return IHb.get(d)}));this.trendingThemes$=this.allIssuesInSubphase$.pipe(A(function(d){return J6a(d)}));
this.filteredIssuesInPhase$=ie([this.allIssuesInSubphase$,this.selectedFilters$,this.alerts$]).pipe(A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;e=e.next().value;return FHb(d,f,e)}));this.filteredTotalRowCount$=ie([this.filteredIssuesInPhase$,this.trendingThemes$]).pipe(A(function(d){var e=m(d);d=e.next().value;e=e.next().value;return d.length+e.length}),vf({refCount:!0,bufferSize:1}));this.startIndex$=ie([this.pageSize$,this.pageNumber$]).pipe(A(function(d){var e=m(d);d=e.next().value;
return(e.next().value-1)*d+1}),vf({refCount:!0,bufferSize:1}));this.endIndex$=ie([this.pageSize$,this.startIndex$,this.filteredTotalRowCount$]).pipe(A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;e=e.next().value;return Math.min(f+d-1,e)}),vf({refCount:!0,bufferSize:1}));this.sortedFilteredIssueIdsInPhase$=ie([this.filteredIssuesInPhase$,this.trendingThemes$,this.activeSort$,this.phase$]).pipe(A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;var g=e.next().value;e=e.next().value;
return HHb(d,f,g,e)}),vf({refCount:!0,bufferSize:1}));this.issueIdsToRender$=ie([this.sortedFilteredIssueIdsInPhase$,this.startIndex$,this.endIndex$]).pipe(A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;e=e.next().value;return d.slice(f-1,e)}),nf(mm),vf({refCount:!0,bufferSize:1}));this.availableFiltersInCurrentPhase$=ie([this.phase$,this.allIssuesInSubphase$,this.trendingThemes$]).pipe(A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;var g=e.next().value;var k;return((k=
vld.get(d))!=null?k:[]).map(function(l){var r=f.filter(l.check).length;l.key==="NEEDS_ATTENTION"&&(r+=g.length);return Object.assign({},l,{count:r})})}),A(function(d){return d.filter(function(e){return e.count||a.selectedFilterKeys.has(e.key)})}));this.issueAlertsForCurrentPhase$=this.phase$.pipe(A(function(d){return IHb.get(d)}));this.issues$=this.issueIdsToRender$.pipe(yf(function(d){return a.issueFridge.watchSet(d.flat())}));this.customFieldConfigs$=Wld(this.data).pipe(ue(Pm));this.tableOptions$=
ie([this.issues$,this.customFieldConfigs$]).pipe(A(function(d){d=m(d);d.next();return{enableSelection:!0,showMenu:!1,modes:{createdTime:"relativepastshort"},navigationOptions:{clickTargets:"NONE",alwaysOpenNewTab:!0},sortMode:"EXTERNAL_SORT",activeRowMode:"REMAIN_ACTIVE",optionalColumns:d.next().value.map(function(e){return{type:"CUSTOM_FIELD",customFieldId:vo(e.customFieldId)}})}}));this.teamExperimentalFields$=this.teamExperimentalFieldsFridge.watch(this.teamId);this.tableColumns$=ie([this.teamExperimentalFields$,
this.phase$]).pipe(A(function(d){var e=m(d);d=e.next().value;e=e.next().value;d=d==null?void 0:d.triage.find(function(k){return""+k.id===a.triageId});e=[].concat(q(fld[e]));var f,g=(f=d==null?void 0:d.displayColumns)!=null?f:[];(g==null?void 0:g.length)>0&&(e=g);return d!=null&&d.showComponentColumn?e:e.filter(function(k){return k.type!=="COMPONENT_PATH"})}));var b;this.sidebarWidthPreference$=new Mj(Math.max(this.RIGHT_SIDEBAR_MIN_WIDTH,(b=Ocd("triage-sidebar-width")())!=null?b:0));this.sidebarWidth$=
ie([this.triageService.isSidebarOpen$,this.sidebarWidthPreference$]).pipe(A(function(d){var e=m(d);d=e.next().value;e=e.next().value;return d?e:0}));this.subphases$=this.phase$.pipe(A(function(d){return Ykd[d]}));this.subphaseDisplayName$=this.subphase$.pipe(A(function(d){return d?Zkd[d]:"All subphases"}));this.subphaseSelectorTooltip$=this.subphase$.pipe(A(function(d){return d?"Showing issues in the "+Zkd[d].toLowerCase()+" subphase.":"Showing issues in all subphases"}));this.starred$=this.starredTeamsService.starredTriageViews$.pipe(A(function(d){return d.some(function(e){return e.triageId===
a.triageId&&e.teamId===a.teamId})}));this.savingStar=!1;this.selectedIssues=new xz(!0,[]);this.punctualSubscriptions=new Pd;var c=p(eQ);this.subscriptions.add(this.phase$.subscribe(function(){a.selectedFilterKeys.reset([wld.LAST_30_DAYS.key])}));this.subscriptions.add(this.data.allIssues$.subscribe(function(d){for(var e=m(d.entries()),f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;g=g.next().value;wUa(f,d)&&hld.add(g.issueId)}}));this.subscriptions.add(this.issueIdsToRender$.subscribe(function(d){JNd(a,
d)}));this.subscriptions.add(this.phaseData$.pipe(yf(function(d){return d.totalCount$.pipe(A(function(e){return[e,d.phase]}))}),lf(1)).subscribe(function(d){var e=m(d);d=e.next().value;e=e.next().value;c.trackEvent("triageIssue","ISSUE_COUNT_"+e,a.teamId+":"+a.triageId,d)}))};Y(W1,Z);W1.\u0275dir=Z.\u0275dir;
var JNd=function(a,b){a.punctualSubscriptions.unsubscribe();a.punctualSubscriptions=new Pd;b=m(b);for(var c=b.next(),d={};!c.done;d={issueId$jscomp$388:void 0},c=b.next())d.issueId$jscomp$388=c.value,Array.isArray(d.issueId$jscomp$388)||(a.punctualSubscriptions.add(a.punctualService.watch("issue-edit",d.issueId$jscomp$388).subscribe(function(e){return function(){a.issueFullFridge.poke(e.issueId$jscomp$388,{trustMemory:!1})}}(d))),a.punctualSubscriptions.add(a.punctualService.watch("issue-experimental-field-edit",
d.issueId$jscomp$388).subscribe(function(e){return function(){a.issueExperimentalFieldsFridge.poke(e.issueId$jscomp$388,{trustMemory:!1})}}(d))))};W1.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()})};W1.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.punctualSubscriptions.unsubscribe()};
var zHb=function(a,b){a.triageService.mode!==1&&(a.triageService.setIssueIds(b),a.triageService.openSidebar())},KNd=function(a,b){return y(function(c){if(c.nextAddress==1)return z(c,fe(a.userPreferencesManager.saveResultsPerPage(b)),2);a.pageNumber$.next(1);ae(c)})};W1.prototype.onSortChange=function(a){this.activeSort$.next(a)};
W1.prototype.onColumnsChange=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,fe(b.teamExperimentalFields$),2);d=(c=f.yieldResult)!=null?c:{id:b.teamId,triage:[{id:vo(b.triageId)}],playbooks:[]};e=d.triage.findIndex(function(g){return""+g.id===b.triageId});if(e===-1)return f.return();d.triage[e].displayColumns=a;return z(f,fe(yjd(b.teamsService,d)),0)})};
W1.prototype.toggleStar=function(){var a=this;return y(function(b){if(b.nextAddress==1)return a.savingStar=!0,z(b,Gld(a.starredTeamsService,a.triageId,a.teamId),2);a.savingStar=!1;ae(b)})};W1.prototype.refreshTable=function(){this.refreshMonitor.refreshRequest.next();this.data.reload();this.selectedIssues.clear()};
var hHb=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,fe(a.phase$),2);c=g.yieldResult;d=Gt[c];e=b&&$kd[b];f=qs.viewTriage.makeHref(a.teamId,a.triageId,d,e);return z(g,a.bLocation.setUrl(f,!0),0)})};W1.\u0275fac=function(a){return new (a||W1)};
W1.\u0275cmp=D({type:W1,selectors:[["b-triage-phase"]],standalone:!1,features:[Ef],decls:54,vars:64,consts:[["subphaseMenu","matMenu"],["issuesTable",""],[1,"pos-fill","flex-kids-y"],[1,"border-bottom","padded-s-sides","flex-kids-x","align-items-center","gap-xs"],["type","button","mat-icon-button","","matTooltip","Refresh","aria-label","Refresh",1,"medium",3,"onHotkey","click","hotkey"],["color","primary","svgIcon","refresh",1,"icon-m"],[3,"starClicked","starred","disabled","starMessage","unStarMessage"],
[1,"margin-none","nowrap"],["svgIcon","chevron-right",1,"icon-s","muted"],[1,"flex-kids-x","align-items-center","gap-s"],["type","button","mat-stroked-button","","color","neutral",1,"small","gmat-button",3,"matMenuTriggerFor","matTooltip"],[1,"margin-xs-right"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item",""],[1,"margin-left-auto",3,"pageSizeChange","prevPage","nextPage","showPageSizeSelector","startIndex","endIndex","totalNumber",
"hasPreviousPage","hasNextPage","pageSize"],[1,"flex-kids-x"],["href","http://go/b-triage-docs","target","_blank","mat-icon-button","","aria-label","More info about the new triage UI","matTooltip","More info about the new triage UI",1,"medium","gfx-muted","settings-btn"],["svgIcon","info",1,"icon-s"],["mat-icon-button","","aria-label","Configure triage for your team","matTooltip","Configure triage for your team",1,"medium","gfx-muted","settings-btn",3,"href"],["svgIcon","settings",1,"icon-s"],["mode",
"indeterminate"],[1,"flex-1","flex-kids-x","overflow","overflow-on-print-media"],[1,"flex-1","pos-rel","overflow","overflow-on-print-media"],["direction","rtl",3,"widthChanged","minWidth","maxWidth","size"],[3,"refreshable"],[1,"type-xs","flex-kids-x","align-items-center"],[1,"b-chip","xs","alert-chip"],["aria-label","Select filter",1,"padded-s-sides",3,"multiple"],["aria-label","Select filter",1,"padded-s-sides",3,"change","multiple"],["appearance","hairline-filter",3,"value","selected"],[3,"matTooltip"],
[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"refreshTable"],[3,"issueIds","tableColumns","editableColumns","options","teamId","showReadStatus","alerts"],[1,"full-height","flex-kids-y","align-items-center","justify-content-center","gap"],[3,"activeIssueChange","rowClick","selectedIssuesChange","sortChange","columnsChange","issueIds","tableColumns","editableColumns","options","teamId","showReadStatus","alerts"],["aria-hidden","true","alt","","height","232","width","321",3,"src"]],template:function(a,
b){if(a&1){var c=t();K(0,"div",2)(1,"header",3)(2,"button",4);N("onHotkey",function(){u(c);return v(b.refreshTable())})("click",function(){u(c);return v(b.refreshTable())});M(3,"mat-icon",5);L();K(4,"b-star-toggle",6);T(5,"async");N("starClicked",function(){u(c);return v(b.toggleStar())});L();K(6,"h2",7);Q(7);T(8,"async");L();M(9,"mat-icon",8);F(10,gHb,9,7,"div",9);T(11,"async");M(12,"mat-icon",8);K(13,"button",10);T(14,"async");K(15,"span",11);Q(16);T(17,"async");L();M(18,"b-icon",12);L();K(19,"mat-menu",
null,0)(21,"button",13);N("click",function(){u(c);return v(hHb(b))});Q(22,"All subphases");L();M(23,"hr");Nf(24,iHb,2,1,"button",14,Mf);T(26,"async");L();K(27,"b-paginator",15);T(28,"async");T(29,"async");T(30,"async");T(31,"async");T(32,"async");T(33,"async");T(34,"async");T(35,"async");N("pageSizeChange",function(C){u(c);return v(KNd(b,C))})("prevPage",function(){u(c);b.pageNumber$.next(b.pageNumber$.value-1);return v()})("nextPage",function(){u(c);b.pageNumber$.next(b.pageNumber$.value+1);return v()});
L();K(36,"div",16)(37,"a",17);M(38,"mat-icon",18);L();K(39,"a",19);M(40,"mat-icon",20);L()()();F(41,jHb,1,0,"mat-progress-bar",21);T(42,"async");K(43,"div",22)(44,"div",23);F(45,pHb,2,3);T(46,"async");F(47,sHb,1,5,"ng-container");T(48,"async");L();K(49,"b-resizable-sidebar",24);T(50,"async");N("widthChanged",function(C){u(c);C<b.RIGHT_SIDEBAR_MIN_WIDTH||(b.sidebarWidthPreference$.next(C),Pcd("triage-sidebar-width")(C));return v()});E(51,yHb,2,3,"ng-template",25);L()()();E(52,EHb,2,1,"ng-template",
null,1,Mg)}if(a&2){var d,e,f,g;a=qg(20);B(2);I("hotkey",b.HOTKEYS.REFRESH_ISSUE);B(2);I("starred",U(5,28,b.starred$))("disabled",b.savingStar)("starMessage","Star this team to add it to the Triage section on the left sidebar")("unStarMessage","Unstar this team to remove it from the Triage section on the left sidebar");B(3);S(" ",U(8,30,b.data.triageName$)," ");B(3);G((d=U(11,32,b.phaseData$))?10:-1,d);B(3);I("matTooltip",Dg(U(14,34,b.subphaseSelectorTooltip$)))("matMenuTriggerFor",a);B(3);yg(U(17,
36,b.subphaseDisplayName$));B(8);Of(U(26,38,b.subphases$));B(3);wg("invisible",!((e=U(28,40,b.issueIdsToRender$))==null?0:e.length));var k,l,r,w;I("showPageSizeSelector",!0)("startIndex",(k=U(29,42,b.startIndex$))!=null?k:1)("endIndex",(l=U(30,44,b.endIndex$))!=null?l:0)("totalNumber",(r=U(31,46,b.filteredTotalRowCount$))!=null?r:0)("hasPreviousPage",U(32,48,b.pageNumber$)>1)("hasNextPage",U(33,50,b.filteredTotalRowCount$)>U(34,52,b.endIndex$))("pageSize",(w=U(35,54,b.pageSize$))!=null?w:0);B(12);
I("href",b.ROUTES.editTeam.makeHref(b.teamId,"triage"),Ne);B(2);G(U(42,56,b.data.isLoading$)?41:-1);B(4);G(((f=U(46,58,b.allIssuesInSubphase$))==null?0:f.length)?45:-1);B(2);G((g=U(48,60,b.issueIdsToRender$))?47:-1,g);B(2);var x;I("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("maxWidth",b.RIGHT_SIDEBAR_MAX_WIDTH)("size",(x=U(50,62,b.sidebarWidth$))!=null?x:0);B(2);I("refreshable",b.triageService.currentIssueIds$)}},dependencies:[Sx,Jy,kB,gB,iB,UK,bL,aL,VJ,fH,dH,iH,Gud,lJ,vK,nA,pU,sT,XZ,p_,OY,q_,INd,uU,tU,
CY,Tx],styles:[".settings-btn[_ngcontent-%COMP%]{line-height:38px}.left[_ngcontent-%COMP%]{overflow:hidden auto}.alert-chip[_ngcontent-%COMP%]{background-color:#c5221f;background-color:var(--text-bad);color:#fff;color:var(--text-inverse);margin-right:0;padding-top:2px;padding-left:5px;padding-bottom:2px;line-height:inherit}[_nghost-%COMP%]     .mat-column-title{width:100%;min-width:400px}[_nghost-%COMP%]     .mat-column-alerts.mat-mdc-cell, [_nghost-%COMP%]     .mat-column-alerts.mat-mdc-header-cell{padding:0}[_nghost-%COMP%]     .mat-column-componentName{max-width:150px}[_nghost-%COMP%]     .mat-column-title .pop-out-link{display:none}\n/*# sourceMappingURL=triage_phase.css.map */"],
changeDetection:0});var X1=function(){};X1.\u0275fac=function(a){return new (a||X1)};X1.\u0275mod=$e({type:X1});X1.\u0275inj=Fc({});var Y1=function(){};Y1.\u0275fac=function(a){return new (a||Y1)};Y1.\u0275mod=$e({type:Y1});Y1.\u0275inj=Fc({imports:[WO,GU,mB,wK,X1]});var LNd=function(){};LNd.\u0275fac=function(a){return new (a||LNd)};LNd.\u0275mod=$e({type:LNd});LNd.\u0275inj=Fc({imports:[WO,mB,WJ,wK]});var MNd=function(){};MNd.\u0275fac=function(a){return new (a||MNd)};MNd.\u0275mod=$e({type:MNd});MNd.\u0275inj=Fc({imports:[WO,DE,mB,dL,WJ,JX,BU,wK,qU,GU,a1,rLd,IU,LNd,EE,l1,xU,eU,Y1]});var Z1=function(){var a=this;this.teamsService=p(OQ);this.placeholder="Choose Team";this.panelWidth="574px";this.disabled=!1;this.onTeamSelect=new aQ;this.onEmptyQuery=new aQ;this.searchQuery$=new qf;this.teamSuggestions$=this.searchQuery$.pipe(jf(300),nf(),yf(function(b){return QQ(a.teamsService,b)}),A(function(b){return b.map(function(c){return new KHb(c.pathIds,c.pathNames,c.description)})}))};Z1.prototype.updateSelectionOnChange=function(a){this.onTeamSelect.emit(a.option.value)};
Z1.prototype.search=function(a){a||this.onEmptyQuery.emit();this.searchQuery$.next(a)};Z1.prototype.displayFn=function(a){return a?a.name:""};Z1.prototype.ngAfterViewInit=function(){};Z1.\u0275fac=function(a){return new (a||Z1)};
Z1.\u0275cmp=D({type:Z1,selectors:[["b-team-picker"]],viewQuery:function(a,b){a&1&&hg(OX,7);if(a&2){var c;lg(c=mg())&&(b.autocompleteTrigger=c.first)}},inputs:{teamSelected:"teamSelected",placeholder:"placeholder",panelWidth:"panelWidth",disabled:"disabled"},outputs:{onTeamSelect:"onTeamSelect",onEmptyQuery:"onEmptyQuery"},standalone:!1,decls:8,vars:10,consts:[["searchInput",""],["auto","matAutocomplete"],[1,"team-id-select"],["id","team-id","matInput","","type","text","autocomplete","off","aria-label",
"Team selection",3,"click","input","placeholder","ngModel","disabled","matAutocomplete"],[3,"optionSelected","panelWidth","displayWith"],[1,"team-search-result",3,"value"],[1,"description",3,"matTooltip"],[1,"path-names",3,"click","matTooltip"],[1,"path-names-separator"]],template:function(a,b){if(a&1){var c=t();K(0,"div",2)(1,"input",3,0);N("click",function(){u(c);var d=qg(2);return v(b.search(d.value))})("input",function(){u(c);var d=qg(2);return v(b.search(d.value))});L();K(3,"mat-autocomplete",
4,1);N("optionSelected",function(d){u(c);return v(b.updateSelectionOnChange(d))});Nf(5,NHb,7,7,"mat-option",5,Mf);T(7,"async");L()()}a&2&&(a=qg(4),B(),I("placeholder",Dg(b.placeholder))("ngModel",b.teamSelected)("disabled",b.disabled)("matAutocomplete",a),If("aria-disabled",b.disabled),B(2),I("panelWidth",b.panelWidth)("displayWith",b.displayFn),B(2),Of(U(7,8,b.teamSuggestions$)))},dependencies:[QX,NX,hA,OX,vK,nA,xj,fE,mE,Tx,ay],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)}.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;white-space:nowrap}"],
changeDetection:0});var KHb=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 NNd(a.slice(0,e+1),b.slice(0,e+1))})},NNd=function(a,b){this.pathIds=a;this.pathNames=b;this.name=b.length>0?b[b.length-1]:"";this.pathNameText=b.join(" > ")};var a2=function(){Z.apply(this,arguments);var a=this;this.teamExperimentalFieldsFridge=p(SQ);this.teamsService=p(OQ);this.starredTeamsService=p(VR);this.teamUserActivity=p(UR);this.selectedTeam$=new Mj(null);this.suggestedTeams$=this.teamUserActivity.mostActiveTeams$;this.starInProgress={};this.starredTriageViews$=this.starredTeamsService.starredTriageViews$;this.tableColumns=["starred","triageName","teamName","scope"];this.populateEmptyExperiments=Sd(A(function(b){b=m(b);var c=b.next().value;b.next().value.forEach(function(d){c.has(d)||
c.set(d,{id:d,triage:[{id:0}],playbooks:[]})});return c}));this.suggestedTeamIds$=this.suggestedTeams$.pipe(A(function(b){return b.map(function(c){return c.teamId})}));this.starredAndSuggestedTeamIds$=ie([this.starredTriageViews$,this.suggestedTeamIds$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;c=new Set(c);b=m(b);for(var d=b.next();!d.done;d=b.next())c.add(d.value.teamId);return[].concat(q(c))}));this.teamIdToTeamExperiments$=this.starredAndSuggestedTeamIds$.pipe(yf(function(b){return a.teamExperimentalFieldsFridge.watchSet([].concat(q(b))).pipe(A(function(c){return new Map(c.map(function(d){return[d.id,
d]}))}))}),hf(this.starredAndSuggestedTeamIds$),this.populateEmptyExperiments);this.teamIds$=this.teamIdToTeamExperiments$.pipe(A(function(b){return[].concat(q(b.keys()))}));this.teamIdToTriageViews$=this.teamIdToTeamExperiments$.pipe(A(function(b){return JTa(b,function(c){return eo(c.triage,function(d){return d.id.toString()})})}));this.teamsIdToTeamName$=this.teamIds$.pipe(yf(function(b){return wjd(a.teamsService,b).pipe(A(function(c){var d=new Map;c=m(c);for(var e=c.next();!e.done;e=c.next()){var f=
m(e.value);e=f.next().value;f=f.next().value;d.set(e,f.name)}return d}))}));this.starredTeamIdToTriageIds$=this.starredTriageViews$.pipe(A(function(b){var c=new Map;b=m(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=e.teamId;e=e.triageId;var f=void 0,g=(f=c.get(d))!=null?f:new Set;g.add(e);c.set(d,g)}return c}));this.defaultTriageViewList$=ie([this.teamIdToTriageViews$,this.teamsIdToTeamName$,this.starredTeamIdToTriageIds$,this.suggestedTeamIds$]).pipe(A(function(b){var c=m(b);var d=c.next().value;
b=c.next().value;var e=c.next().value;c=c.next().value;c=new Set(c);var f=[];d=m(d);for(var g=d.next();!g.done;g=d.next()){var k=m(g.value);g=k.next().value;var l=k=k.next().value;k=c.has(g);var r=void 0,w=(r=b.get(g))!=null?r:g;l=m(l);for(r=l.next();!r.done;r=l.next()){var x=m(r.value);r=x.next().value;x=x.next().value;var C=void 0,H=void 0,J=(H=(C=e.get(g))==null?void 0:C.has(r))!=null?H:!1;if(k||J)C=void 0,f.push({teamId:g,teamName:w,triageId:r,triageName:Ir(w,x),scope:(C=x.scope)!=null?C:""})}}return f}));
this.selectedTeamExperiment$=this.selectedTeam$.pipe(yf(function(b){return b===null?ce(void 0):a.teamExperimentalFieldsFridge.watch(b.id)}));this.selectedTeamTriageRows$=ie([this.selectedTeam$,this.selectedTeamExperiment$]).pipe(A(function(b){b=m(b);var c=b.next().value;b=b.next().value;return c===null?[]:b===void 0?[{teamId:c.id,teamName:c.name,triageId:"0",triageName:Ir(c.name)}]:b.triage.map(function(d){var e;return{teamId:c.id,teamName:c.name,triageId:d.id.toString(),triageName:Ir(c.name,d),scope:(e=
d.scope)!=null?e:""}})}));this.triageRows$=ie([this.defaultTriageViewList$,this.selectedTeamTriageRows$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return c.length?c:b}))};Y(a2,Z);a2.\u0275dir=Z.\u0275dir;a2.prototype.getTriageLink=function(a,b){return qs.viewTriage.makeHref(b,a)};a2.prototype.isTriageStarred=function(a,b,c){return c.some(function(d){return d.triageId===a&&d.teamId===b})};a2.prototype.onTeamSelect=function(a){this.selectedTeam$.next(a)};
a2.prototype.toggleStar=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1){d=a+":"+b;if(c.starInProgress[d])return e.jumpTo(0);c.starInProgress[d]=!0;return z(e,Gld(c.starredTeamsService,a,b),3)}c.starInProgress[d]=!1;ae(e)})};a2.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(a2)))(b||a2)}}();
a2.\u0275cmp=D({type:a2,selectors:[["ng-component"]],standalone:!1,features:[Ef],decls:15,vars:11,consts:[[1,"pos-fill","overflow","overflow-on-print-media"],[1,"border-bottom","padded-sides"],[1,"main-content","padded"],[1,"margin-bottom","team-picker-container"],[3,"onTeamSelect","onEmptyQuery","teamSelected","panelWidth","placeholder"],[1,"margin-bottom"],["mat-table","",1,"full-width",3,"dataSource","fixedLayout"],["matColumnDef","starred"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell",
"",4,"matCellDef"],["matColumnDef","triageName"],["mat-cell","","class","triage-name",4,"matCellDef"],["matColumnDef","teamName"],["mat-cell","","class","team-name-2",4,"matCellDef"],["matColumnDef","scope"],["mat-cell","","class","scope",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[1,"a11y-only"],["mat-cell",""],["tabindex","-1",3,"starClicked","disabled","starred","starMessage","unStarMessage"],["mat-cell","",1,
"triage-name"],[1,"hover-link",3,"href"],["mat-cell","",1,"team-name-2"],["mat-cell","",1,"scope"],["mat-header-row",""],["mat-row",""]],template:function(a,b){a&1&&(K(0,"div",0)(1,"header",1)(2,"h2"),Q(3," Search triage view "),L()(),K(4,"div",2)(5,"div",3)(6,"b-team-picker",4),T(7,"async"),N("onTeamSelect",function(d){return b.onTeamSelect(d)})("onEmptyQuery",function(){b.selectedTeam$.next(null)}),L()(),K(8,"div",5)(9,"h3"),F(10,OHb,1,0),T(11,"async"),Kf(12,PHb,1,0),L(),F(13,bIb,3,3),T(14,"async"),
L()()());if(a&2){var c;B(6);I("teamSelected",U(7,5,b.selectedTeam$))("panelWidth","400px")("placeholder","Search by team name or id");B(4);G(U(11,7,b.selectedTeam$)?10:12);B(3);G((c=U(14,9,b.starredTriageViews$))?13:-1,c)}},dependencies:[UW,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,cU,CY,Z1,Tx],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}[_nghost-%COMP%]{display:block;padding:16px}.scope[_ngcontent-%COMP%]{width:50%}.team-picker-container[_ngcontent-%COMP%]{width:400px}\n/*# sourceMappingURL=triage_settings.css.map */"]});var b2=function(){};b2.\u0275fac=function(a){return new (a||b2)};b2.\u0275mod=$e({type:b2});b2.\u0275inj=Fc({imports:[WO,SX,lL,wK,DE]});var ONd=function(){};ONd.\u0275fac=function(a){return new (a||ONd)};ONd.\u0275mod=$e({type:ONd});ONd.\u0275inj=Fc({imports:[WO,mB,LX,wK,eU,Y1,TW,b2]});var PNd=function(){};PNd.\u0275fac=function(a){return new (a||PNd)};PNd.\u0275mod=$e({type:PNd});PNd.\u0275inj=Fc({imports:[WO,HNd,MNd,ONd,LLd]});var QNd=function(){this.roundCorners=this.showDividers=!1};QNd.\u0275fac=function(a){return new (a||QNd)};
QNd.\u0275cmp=D({type:QNd,selectors:[["b-button-group"]],hostVars:4,hostBindings:function(a,b){a&2&&wg("show-dividers",b.showDividers)("round-corners",b.roundCorners)},inputs:{showDividers:"showDividers",roundCorners:"roundCorners"},standalone:!1,ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(bg(),cg(0))},styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap}.show-dividers[_nghost-%COMP%]     button.gmat-mdc-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-mdc-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-mdc-button:not(:last-of-type), [_nghost-%COMP%]:not(.round-corners)     :not(:last-child) button.gmat-mdc-button{margin-right:-1px;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}[_nghost-%COMP%]:not(.round-corners)     button.gmat-mdc-button:not(:first-of-type), [_nghost-%COMP%]:not(.round-corners)     :not(:first-child) button.gmat-mdc-button{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}[_nghost-%COMP%]:not(.round-corners)     button.gmat-mdc-button:hover{z-index:2}[_nghost-%COMP%]:not(.round-corners)     button.gmat-mdc-button:focus{z-index:3}/*# sourceMappingURL=button-group.css.map */"],changeDetection:0});var c2=function(){this.constants=p(gS);this.activeSession=p(uu);this.STATUS_JS_FULL_TEXT=zm;this.STATUSES=xmd;this.SEVERITIES_VALUES=Cmd;this.PRIORITIES_VALUES=wmd;this.enableBulkEstimatedEffortOption=!1;this.onBulkEdit=new aQ;this.onQuickBulkEdit=new aQ;this.onBulkEditIssueRelation=new aQ;this.onBulkMarkIssueRead=new aQ;this.isAnonymous=this.activeSession.isAnonymous();this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha()};h=c2.prototype;h.bulkEdit=function(a){this.onBulkEdit.emit(a)};
h.quickBulkEdit=function(a,b){this.onQuickBulkEdit.emit({field:a,newValue:b})};h.bulkEditIssueRelation=function(a,b){this.onBulkEditIssueRelation.emit({issueRelation:a,isMarking:b===void 0?!0:b})};h.bulkMarkIssueRead=function(){this.onBulkMarkIssueRead.emit()};h.getIssueTypes=function(){return this.constants.editIssueTypeChoices.filter(function(a){return a.value!=="VULNERABILITY"})};c2.\u0275fac=function(a){return new (a||c2)};
c2.\u0275cmp=D({type:c2,selectors:[["b-app-bar-bulk-edit-menus"]],inputs:{readStatePrompt:"readStatePrompt",enableBulkEstimatedEffortOption:"enableBulkEstimatedEffortOption"},outputs:{onBulkEdit:"onBulkEdit",onQuickBulkEdit:"onQuickBulkEdit",onBulkEditIssueRelation:"onBulkEditIssueRelation",onBulkMarkIssueRead:"onBulkMarkIssueRead"},standalone:!1,decls:97,vars:13,consts:[["editMenu","matMenu"],["prioritySubmenu","matMenu"],["severitySubmenu","matMenu"],["statusSubmenu","matMenu"],["typeSubmenu","matMenu"],
["ArchiveSubmenu","matMenu"],["inProdSubmenu","matMenu"],["linkMenu","matMenu"],["ccMenu","matMenu"],["type","button","mat-button","",1,"medium",3,"disabled","matMenuTriggerFor"],["type","button","mat-button","",1,"medium",3,"click","disabled"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item","",3,"matMenuTriggerFor"],["type","button","mat-menu-item",""],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item","",3,"click","matTooltip"],[3,"svgIcon"]],
template:function(a,b){if(a&1){var c=t();K(0,"b-button-group");F(1,cIb,4,2,"button",9);K(2,"button",10);N("click",function(){u(c);return v(b.bulkMarkIssueRead())});Q(3);L();F(4,dIb,4,2,"button",9);F(5,eIb,4,2,"button",9);L();K(6,"mat-menu",null,0)(8,"button",11);N("click",function(){u(c);return v(b.bulkEdit("ASSIGNEE"))});Q(9,"Assignee");L();K(10,"button",11);N("click",function(){u(c);return v(b.bulkEdit("COMPONENT"))});Q(11,"Component");L();K(12,"button",12);Q(13,"Priority");L();K(14,"button",12);
Q(15,"Severity");L();K(16,"button",12);Q(17,"Status");L();K(18,"button",12);Q(19,"Type");L();K(20,"button",11);N("click",function(){u(c);return v(b.bulkEdit("VERIFIER"))});Q(21,"Verifier");L();K(22,"button",11);N("click",function(){u(c);return v(b.bulkEdit("REPORTER"))});Q(23,"Reporter");L();K(24,"button",11);N("click",function(){u(c);return v(b.bulkEdit("CHANGELIST"))});Q(25,"Changelist");L();K(26,"button",11);N("click",function(){u(c);return v(b.bulkEdit("CUSTOM_FIELDS"))});Q(27,"Custom Fields");
L();K(28,"button",12);Q(29," Archival state ");L();K(30,"button",11);N("click",function(){u(c);return v(b.bulkEdit("FOUND_IN"))});Q(31,"Found In");L();K(32,"button",11);N("click",function(){u(c);return v(b.bulkEdit("SLO_START_TIME"))});Q(33,"SLO Start Time");L();F(34,fIb,2,0,"button",13);K(35,"button",11);N("click",function(){u(c);return v(b.bulkEdit("VERIFIED_IN"))});Q(36,"Verified In");L();K(37,"button",11);N("click",function(){u(c);return v(b.bulkEdit("TARGETED_TO"))});Q(38,"Targeted To");L();
K(39,"button",12);Q(40,"In Prod");L();M(41,"mat-divider");K(42,"button",11);N("click",function(){u(c);return v(b.bulkEdit("COMMENT"))});Q(43,"Add Comment");L()();K(44,"mat-menu",null,1);Nf(46,gIb,2,1,"button",13,Mf);L();K(48,"mat-menu",null,2);Nf(50,hIb,2,1,"button",13,Mf);L();K(52,"mat-menu",null,3);Nf(54,iIb,2,1,"button",13,Mf);L();K(56,"mat-menu",null,4);Zf(58);Nf(59,lIb,4,4,null,null,Mf);L();K(61,"mat-menu",null,5)(63,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("IS_ARCHIVED",
!0))});Q(64,"Archive");L();K(65,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("IS_ARCHIVED",!1))});Q(66,"Unarchive");L()();K(67,"mat-menu",null,6)(69,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("IN_PROD",!0))});Q(70,"In Prod");L();K(71,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("IN_PROD",!1))});Q(72,"Not in Prod");L()();K(73,"mat-menu",null,7)(75,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("BLOCKED_BY",!0))});Q(76,
"Mark as Blocked By");L();K(77,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("BLOCKING",!0))});Q(78,"Mark as Blocking");L();K(79,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("PARENT",!0))});Q(80,"Add Parent");L();K(81,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("DUPLICATE"))});Q(82,"Duplicate");L();K(83,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("BLOCKED_BY",!1))});Q(84,"Unmark as Blocked By");
L();K(85,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("BLOCKING",!1))});Q(86,"Unmark as Blocking");L();K(87,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("PARENT",!1))});Q(88,"Remove Parent");L()();K(89,"mat-menu",null,8)(91,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("CC",!0))});Q(92,"CC me");L();K(93,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("CC",!1))});Q(94,"Un-CC me");L();K(95,"button",11);N("click",
function(){u(c);return v(b.bulkEdit("CC"))});Q(96,"Edit CC");L()()}if(a&2){a=qg(45);var d=qg(49),e=qg(53),f=qg(57),g=qg(62),k=qg(68);B();G(b.enableBulkEditUi?1:-1);B();I("disabled",b.isAnonymous);B();S(" ",b.readStatePrompt," ");B();G(b.enableBulkEditUi?4:-1);B();G(b.enableBulkEditUi?5:-1);B(7);I("matMenuTriggerFor",a);B(2);I("matMenuTriggerFor",d);B(2);I("matMenuTriggerFor",e);B(2);I("matMenuTriggerFor",f);B(10);I("matMenuTriggerFor",g);B(6);G(b.enableBulkEstimatedEffortOption?34:-1);B(5);I("matMenuTriggerFor",
k);B(7);Of(b.PRIORITIES_VALUES);B(4);Of(b.SEVERITIES_VALUES);B(4);Of(b.STATUSES);B(4);a=$f(b.getIssueTypes());B();Of(a)}},dependencies:[VJ,fH,dH,iH,Jy,sT,QNd,kB,gB,hK,vK,nA],encapsulation:2,changeDetection:0});var RNd=function(){this.activeSession=p(uu);this.showFlagIssuesAsSpam=this.showExportCsv=!1;this.exportCsvClicked=new aQ;this.flagAsSpamClicked=new aQ;this.isAnonymous=this.activeSession.isAnonymous()};RNd.\u0275fac=function(a){return new (a||RNd)};
RNd.\u0275cmp=D({type:RNd,selectors:[["b-app-bar-more-menu"]],inputs:{showExportCsv:"showExportCsv",showFlagIssuesAsSpam:"showFlagIssuesAsSpam"},outputs:{exportCsvClicked:"exportCsvClicked",flagAsSpamClicked:"flagAsSpamClicked"},standalone:!1,decls:1,vars:1,consts:[["moreMenu","matMenu"],["type","button","mat-button","",1,"medium",3,"disabled","matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"]],template:function(a,
b){a&1&&F(0,oIb,8,4);a&2&&G(b.showExportCsv||b.showFlagIssuesAsSpam?0:-1)},dependencies:[VJ,fH,dH,iH,sT,kB,gB],encapsulation:2,changeDetection:0});var d2=function(){};d2.\u0275fac=function(a){return new (a||d2)};d2.\u0275mod=$e({type:d2});d2.\u0275inj=Fc({imports:[WO]});var e2=function(){};e2.\u0275fac=function(a){return new (a||e2)};e2.\u0275mod=$e({type:e2});e2.\u0275inj=Fc({imports:[WJ,WO,GU,d2,mB,iK,wK]});var g2=function(){var a=this;this.activeSession=p(uu);this.connectionChecker=p(SNd);this.ssoInterceptorState=p(f2);this.notifyUserAndWaitForGoodConnection$=new Td(function(b){a.ssoInterceptorState.showRefreshSso$.next(!0);var c=a.watchForRestoredConnection$.subscribe(b);a.watchForRestoredConnection$.subscribe(function(){a.ssoInterceptorState.showRefreshSso$.next(!1)});return function(){c.unsubscribe()}});this.watchForRestoredConnection$=pe(window,"focus").pipe(yf(function(){return a.connectionChecker.ok$}),
ue(function(b){return b}),lf(1),A(function(){}),yla())};g2.prototype.intercept=function(a,b){return this.activeSession.getFlag("enableRefreshSsoPopup")&&a.url&&a.url.startsWith("action/")?TNd(this,b,a):b.handle(a)};
var TNd=function(a,b,c){return new Td(function(d){var e=b.handle(c).subscribe({next:function(g){d.next(g)},complete:function(){d.complete()},error:function(g){UNd(a,b,c,g).pipe(zf(f)).subscribe(d)}}),f=new uf(1);return function(){f.next();e.unsubscribe()}})},UNd=function(a,b,c,d){return d.status===403||d.status===404||d.status===429?de(function(){return d}):a.connectionChecker.ok$.pipe(yf(function(e){return e?de(function(){return d}):a.notifyUserAndWaitForGoodConnection$.pipe(yf(function(){return b.handle(c)}))}))};
g2.\u0275fac=function(a){return new (a||g2)};g2.\u0275prov=Dc({token:g2,factory:g2.\u0275fac,providedIn:"root"});var f2=function(){this.showRefreshSso$=new Mj(!1)};f2.\u0275fac=function(a){return new (a||f2)};f2.\u0275prov=Dc({token:f2,factory:f2.\u0275fac,providedIn:"root"});var SNd=function(){var a=this;this.ngZone=p(Rg);this.ok$=new Td(function(b){var c=lnb("action/yes",function(){a.ngZone.run(function(){c.isSuccess()?b.next(c.getResponseText()==="yes"):b.next(!1);b.complete()})});return function(){c.dispose()}})};
SNd.\u0275fac=function(a){return new (a||SNd)};SNd.\u0275prov=Dc({token:SNd,factory:SNd.\u0275fac,providedIn:"root"});var VNd={provide:ABc,useExisting:g2,multi:!0};var WNd=function(){this.activeSession=p(uu);this.ssoInterceptorState=p(f2);this.showRefreshSsoMessage$=this.ssoInterceptorState.showRefreshSso$;this.isAnonymous=this.activeSession.isAnonymous()};WNd.\u0275fac=function(a){return new (a||WNd)};
WNd.\u0275cmp=D({type:WNd,selectors:[["b-sso-expired-callout-outlet"]],standalone:!1,decls:2,vars:3,consts:[["format","app",3,"messageType"],["type","button","mat-flat-button",""],["type","button","mat-flat-button","",3,"click"]],template:function(a,b){a&1&&(F(0,tIb,6,3,"b-callout",0),T(1,"async"));a&2&&G(U(1,1,b.showRefreshSsoMessage$)?0:-1)},dependencies:[DU,EU,kB,gB,Tx],encapsulation:2,changeDetection:0});var XNd=function(){var a=this;this.session=p(uu);this.principalTypes=p(EQ);this.cdr=p(bQ,{self:!0});this.showHiringBanner=!1;this.session.getFlag("weAreHiring")&&FQ(this.principalTypes,this.session.getUserEmail(),!0).then(function(b){a.showHiringBanner=b.detailedUserType==="UNRESTRICTED_GOOGLER";a.cdr.detectChanges()}).catch(function(){})};XNd.\u0275fac=function(a){return new (a||XNd)};
XNd.\u0275cmp=D({type:XNd,selectors:[["b-hiring-banner"]],standalone:!1,features:[Gg([bQ])],decls:1,vars:1,consts:[["title","See jobs related to Buganizer","href","http://goto.google.com/buganizer-hiring","target","_blank",1,"hiring-banner"]],template:function(a,b){a&1&&F(0,uIb,2,0,"a",0);a&2&&G(b.showHiringBanner?0:-1)},styles:[".hiring-banner[_ngcontent-%COMP%]{background:#a02160;color:#fff!important;display:block;font-size:.6875rem;left:50px;overflow:hidden;padding-bottom:3px;position:absolute;text-align:center;top:-76px;-webkit-transform:rotate(-45deg) translate(-100%);transform:rotate(-45deg) translate(-100%);-webkit-transform-origin:0 0;transform-origin:0 0;width:10em;z-index:1000}"],
changeDetection:0});var h2=function(){};h2.\u0275fac=function(a){return new (a||h2)};h2.\u0275mod=$e({type:h2});h2.\u0275inj=Fc({imports:[WO]});var i2=function(){this.hotkeys=p(nU)};i2.prototype.ngOnInit=function(){this.hotkeys.pause()};i2.prototype.ngOnDestroy=function(){this.hotkeys.unpause()};i2.\u0275fac=function(a){return new (a||i2)};
i2.\u0275cmp=D({type:i2,selectors:[["b-hotkeys-dialog"]],standalone:!1,decls:9,vars:0,consts:[["mat-dialog-title",""],["mat-button","","mat-dialog-close","","type","button",1,"medium","primary"],["colspan","2"],[1,"bv2-hotkeys-header"],[1,"bv2-hotkeys-key"],[1,"bv2-hotkeys-value"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Keyboard shortcuts"),L(),K(2,"mat-dialog-content")(3,"table"),Nf(4,wIb,7,1,"thead",null,Mf),L()(),K(6,"mat-dialog-actions")(7,"button",1),Q(8,"Close"),L()());a&2&&(B(4),Of(Qrd(b.hotkeys)))},
dependencies:[kB,gB,VA,XA,ZA,YA],encapsulation:2});var j2=function(){};j2.\u0275fac=function(a){return new (a||j2)};j2.\u0275mod=$e({type:j2});j2.\u0275inj=Fc({imports:[WO,mB,TJ]});var Lt=function(a){this.type=a.type;this.customFieldId=a.customFieldId||void 0;this.customFieldName=a.customFieldName||void 0};Lt.prototype.isCustomField=function(){return this.type==="CUSTOM_FIELD"};Lt.prototype.toApiUrlParam=function(){return this.isCustomField()?this.type.toLowerCase()+"."+this.customFieldId:this.type.toLowerCase()};Lt.prototype.toString=function(){return this.toApiUrlParam()};var Ot=function(a,b){this.fieldId=a;this.direction=b};Ot.prototype.toApiUrlParam=function(){return this.fieldId.toApiUrlParam()+":"+(this.direction==="ASCENDING"?"asc":"desc")};Ot.prototype.toString=function(){return this.toApiUrlParam()};var YNd=function(a,b,c){this.internalIssues=a;this.params=b;this.responseMetadata=c;this.numResults=this.responseMetadata.numTotalResults;this.numPages=Math.ceil(this.numResults/b.resultsPerPage);this.startIndex=(b.page-1)*b.resultsPerPage+1;this.endIndex=Math.min(this.startIndex+b.resultsPerPage-1,this.numResults);this.maySkipResults=this.responseMetadata.maySkipResults;this.totalText=this.responseMetadata.totalSizeAccurate?this.numResults.toString():"many";this.changed$=new Mj(this)},ZNd=function(a,
b){var c=b.positionMap||{},d=b.issues.map(function(e){var f=hAb(e,null);c&&c[e.issueId]&&(f.position=c[e.issueId]);return f});return new YNd(d,a,b)};YNd.prototype.hasPreviousPage=function(){return this.params.page>1};YNd.prototype.hasNextPage=function(){return!!this.responseMetadata.nextPageToken};
var $Nd=function(a,b){var c=a.issues.findIndex(function(d){return d.issueId===b});return c!==-1?c+a.startIndex:-1},aOd=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issue;d=d.component;var e=$Nd(a,c.issueId);e!==-1&&(e-=a.startIndex,gAb(a.issues[e],c,d))}a.changed$.next(a)},bOd=function(a,b,c,d){b=$Nd(a,b);b!==-1&&(b-=a.startIndex,d!==void 0&&(a.issues[b].lastViewedTime=d!=null?d:null),c!==void 0&&(a.issues[b].isRead=c),c===void 0&&d===void 0&&(a.issues[b].isRead=!!a.issues[b].lastViewedTime&&
a.issues[b].lastViewedTime>=a.issues[b].majorModifiedTime));a.changed$.next(a)};YNd.prototype.clone=function(){var a=new YNd(this.internalIssues,this.params,this.responseMetadata);a.changed$.next(a);return a};da.Object.defineProperties(YNd.prototype,{issues:{configurable:!0,enumerable:!0,get:function(){return this.internalIssues},set:function(a){this.internalIssues=a;this.changed$.next(this)}}});var k2=function(){this.issueApi=p(MP);this.hotlistApi=p(gP);this.paths=p(hW)};k2.prototype.create=function(a){return new cOd(this.issueApi,this.hotlistApi,this.paths,a)};k2.\u0275fac=function(a){return new (a||k2)};k2.\u0275prov=Dc({token:k2,factory:k2.\u0275fac,providedIn:"root"});
var cOd=function(a,b,c,d){this.issueApi=a;this.hotlistApi=b;this.paths=c;this.params=d;this.resultPromise=this.searchResultsPage=null},l2=function(a){if(a.params.page<1)return Promise.reject(Error("ig"));if(!a.resultPromise)if(a.params.hotlistId)a.resultPromise=a.hotlistApi.getPagedHotlistContent(a.params.hotlistId,a.params.page,a.params.resultsPerPage,a.params.sortColumns,a.params.trackerIds);else{var b={p:a.params.page,count:a.params.resultsPerPage,trackerIds:a.params.trackerIds},c=zfb(a.params.sortColumns);
c&&(b.s=c);var d;a.resultPromise=a.issueApi.listIssues((d=a.params.query)!=null?d:"",b)}return a.resultPromise.then(function(e){a.searchResultsPage||(a.searchResultsPage=ZNd(a.params,e));return a.searchResultsPage},function(e){return Promise.reject(e)})},dOd=function(a){return a.searchResultsPage?a.searchResultsPage.hasNextPage():!0};var m2=function(){this.$window=p(lR);this.searchResultsPageFetcherFactory=p(k2);this.previousResultsFetcher=this.nextResultsFetcher=this.currentResultsFetcher=null;this.focusedIssueIndex=-1},fOd=function(a,b){var c=qo();eOd(b.page)?(a.setSearchParams(b),l2(a.currentResultsFetcher).then(function(d){d.numPages&&b.page>d.numPages?c.reject(d.numPages):c.resolve(d)},function(d){c.reject(d)})):c.reject(1);return c.promise},hOd=function(a){var b=qo(),c=null;a.currentResultsFetcher?c=a.currentResultsFetcher.params:
c=gOd(a);c?(a.setSearchParams(c),l2(a.currentResultsFetcher).then(function(d){b.resolve(d)},function(d){b.reject(d)})):b.reject("No related search results available.");return b.promise},iOd=function(a){a.currentResultsFetcher=null;a.nextResultsFetcher=null;a.previousResultsFetcher=null;a.focusedIssueIndex=-1},jOd=function(a,b){var c=qo();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(Math.abs(d-a.currentResultsFetcher.params.page)>1)return c.reject("Requested index is out of range."),c.promise;var e=nm(a.currentResultsFetcher.params);e.page=d;a.setSearchParams(e);l2(a.currentResultsFetcher).then(function(f){a:{if(b>=f.startIndex&&b<=f.endIndex){var g=b-f.startIndex;if(g<f.issues.length){f=f.issues[g].issueId;break a}}f=void 0}f?(a.focusedIssueIndex=b,c.resolve(f)):c.reject("No issue available at index "+b)},function(f){c.reject(f)});return c.promise};
m2.prototype.getFocusedIssue=function(){return this.focusedIssueIndex};
var kOd=function(a){a.currentResultsFetcher?l2(a.currentResultsFetcher).then(function(b){a.focusedIssueIndex=b.endIndex>=b.startIndex?b.startIndex:-1}).catch(function(b){Xm("unexpected error fetching:",b)}):a.focusedIssueIndex=-1},gOd=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 Ot(new Lt(b.fieldId),b.direction)}));return a}return null},
lOd=function(a,b,c){b=nm(b);b.page=c;return a.searchResultsPageFetcherFactory.create(b)},mOd=function(a,b){a.currentResultsFetcher||(a.currentResultsFetcher=lOd(a,b,b.page),l2(a.currentResultsFetcher).catch(function(c){Xm("unexpected error fetching:",c)}));!a.previousResultsFetcher&&b.page>1&&(a.previousResultsFetcher=lOd(a,b,b.page-1),os(2E3).then(function(){var c;return(c=a.previousResultsFetcher)==null?void 0:l2(c)}).catch(function(c){Xm("unexpected error fetching:",c)}));!a.nextResultsFetcher&&
dOd(a.currentResultsFetcher)&&(a.nextResultsFetcher=lOd(a,b,b.page+1),os(2E3).then(function(){var c;return(c=a.nextResultsFetcher)==null?void 0:l2(c)}).catch(function(c){Xm("unexpected error fetching:",c)}))};
m2.prototype.setSearchParams=function(a){a.page=rm(a.page);if(!a.resultsPerPage||isNaN(a.resultsPerPage))throw Error("jg");this.previousResultsFetcher&&a.page===this.previousResultsFetcher.params.page?(this.nextResultsFetcher=this.currentResultsFetcher,this.currentResultsFetcher=this.previousResultsFetcher,this.previousResultsFetcher=null):this.nextResultsFetcher&&a.page===this.nextResultsFetcher.params.page&&(this.previousResultsFetcher=this.currentResultsFetcher,this.currentResultsFetcher=this.nextResultsFetcher,
this.nextResultsFetcher=null);if(this.currentResultsFetcher){var b=this.currentResultsFetcher.params;a.page===b.page&&a.query===b.query&&mm(a.sortColumns,b.sortColumns)&&a.resultsPerPage===b.resultsPerPage&&mm(a.trackerIds,b.trackerIds)?this.currentResultsFetcher.params.returnUrl=a.returnUrl:iOd(this)}mOd(this,a);a=JSON.stringify(this.currentResultsFetcher.params);this.$window.sessionStorage.setItem("buganizer.searchParams",a)};
var eOd=function(a){var b=rm(""+a);return isNaN(b)||b!=Number(a)||b<1||b>2147483647?!1:!0};m2.\u0275fac=function(a){return new (a||m2)};m2.\u0275prov=Dc({token:m2,factory:m2.\u0275fac,providedIn:"root"});var n2=function(){this.$window=p(lR);this.activeSession=p(uu)};n2.prototype.setTitle=function(a){a=Pt(a,this.activeSession.session);this.$window.document.title=a};n2.\u0275fac=function(a){return new (a||n2)};n2.\u0275prov=Dc({token:n2,factory:n2.\u0275fac,providedIn:"root"});var o2=function(){Z.apply(this,arguments);var a=this;this.paramsService=p(WQ);this.issueFullFridge=p(gQ);this.pageTitle=p(n2);this.accessIndicatorService=p(JW);this.newTitle$=this.paramsService.routeParams$.pipe(nf(mm),yf(function(b){return a.onRouteParamsChanged(b)}));this.init=function(){a.subscriptions.add(a.newTitle$.subscribe(function(b){a.pageTitle.setTitle(b)}))};this.initOnce=RUa(this.init)};Y(o2,Z);o2.\u0275dir=Z.\u0275dir;
o2.prototype.onRouteParamsChanged=function(a){return a.issueId?nOd(this,a.issueId):rx};var nOd=function(a,b){return ie([a.issueFullFridge.watch(b),axd(a.accessIndicatorService,b).pipe(xf(void 0),gf(function(){return ce(void 0)}))]).pipe(xf([void 0,void 0]),A(function(c){c=m(c);var d=c.next().value;c=c.next().value;d=d==null?void 0:d.snapshot[0].title;if(!d)return"View issue";d=d+" ["+b+"]";if(c==null?0:c.displayText)d=d+" - "+c.displayText;return d}))};
o2.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(o2)))(b||o2)}}();o2.\u0275prov=Dc({token:o2,factory:o2.\u0275fac,providedIn:"root"});var rOd=function(a){var b=this;this.parentElement=a;this.lastTimestamp=this.state=this.y=this.x=0;this.animate=function(c){b.state!==3&&requestAnimationFrame(b.animate);if(!(c-b.lastTimestamp<30)){b.lastTimestamp=c;if(b.state===2){if(oOd(b),b.x<-50||b.x>document.documentElement.clientWidth+50||b.y<-50||b.y>document.documentElement.clientHeight+50)b.element.remove(),b.state=3}else{b.moveFlipCounter--;b.moveFlipCounter<=0&&(b.state===0?b.state=1:b.state===1&&(b.state=0),b.moveFlipCounter=50+100*Math.random(),
pOd(b));if(b.state===1)return;b.turnCounter--;b.turnCounter<=0&&(b.direction=360*Math.random(),b.turnCounter=40*Math.random());b.x<0&&b.direction>90&&b.direction<270&&(b.direction=(180-b.direction)%360);b.x>document.documentElement.clientWidth&&(b.direction<90||b.direction>270)&&(b.direction=(180-b.direction)%360);b.y<0&&b.direction>180&&(b.direction=360-b.direction);b.y>document.documentElement.clientHeight&&b.direction<180&&(b.direction=360-b.direction);oOd(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();pOd(this);qOd(this)};rOd.prototype.start=function(){this.parentElement.appendChild(this.element);requestAnimationFrame(this.animate)};
rOd.prototype.stop=function(){this.state=2;pOd(this);this.direction=Math.atan2(this.y-document.documentElement.clientHeight/2,this.x-document.documentElement.clientWidth/2)*180/Math.PI+(Math.random()-.5)*90;this.speed=15+10*Math.random()};
var qOd=function(a){var b=Math.floor(Math.random()*4);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)}};
rOd.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 pOd=function(a){a.element.src=a.state===1?"https://www.gstatic.com/buganizer/img/v0/logo.svg":"https://www.gstatic.com/buganizer/img/v0/bug-move.svg"},oOd=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};rOd.prototype.transform=function(){this.element.style.transform="translate("+this.x+"px,"+this.y+"px) rotate("+(this.direction+90)%360+"deg) scaleX("+this.flip};var sOd=function(a){this.element=a;this.bugs=[]};sOd.prototype.start=function(){for(var a=this,b=0;b<3;b++)tOd(this);this.intervalSubscription=Yha(1E4).subscribe(function(){tOd(a);a.bugs.length>=10&&a.intervalSubscription&&a.intervalSubscription.unsubscribe()})};sOd.prototype.stop=function(){this.intervalSubscription&&this.intervalSubscription.unsubscribe();for(var a=m(this.bugs),b=a.next();!b.done;b=a.next())b.value.stop();this.bugs=[]};var tOd=function(a){var b=new rOd(a.element);b.start();a.bugs.push(b)};var p2=function(){var a=this;this.ngZone=p(Rg);this.userPreferencesManager=p(hR);this.snackBar=p(rB);this.elementRef=p(Hd);this.bugAnimation=new sOd(this.elementRef.nativeElement);this.destroyed$=new uf(1);this.active$=new Mj(!0);this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY;this.active$.pipe(nf(),zf(this.destroyed$)).subscribe(function(b){b?uOd(a):vOd(a)})};p2.prototype.ngOnInit=function(){document.visibilityState==="visible"&&wOd(this)};p2.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var wOd=function(a){a.timeoutId=setTimeout(function(){a.active$.next(!1)},18E4)};p2.prototype.onUserEvent=function(){var a=Date.now();a<this.lastTimeoutResetTimestamp+1E4||(this.lastTimeoutResetTimestamp=a,this.active$.next(!0),clearTimeout(this.timeoutId),wOd(this))};p2.prototype.onVisibilityChange=function(){this.onUserEvent();switch(document.visibilityState){case "hidden":clearTimeout(this.timeoutId),this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY}};
var vOd=function(a){a.snackBar.open("Bug screensaver started because of inactivity.","Disable",{duration:5E3}).onAction().subscribe(function(){xOd(a)});a.ngZone.runOutsideAngular(function(){a.bugAnimation.start()})},uOd=function(a){a.ngZone.runOutsideAngular(function(){a.bugAnimation.stop()})},xOd=function(a){var b,c,d;y(function(e){if(e.nextAddress==1)return b=Object,c=b.assign,z(e,fe(a.userPreferencesManager.bugScreensaverPreferences$),2);d=c.call(b,{},e.yieldResult,{enableBugScreensaver:!1});a.userPreferencesManager.save({bugScreensaverPreferences:d}).subscribe();
ae(e)})};p2.\u0275fac=function(a){return new (a||p2)};
p2.\u0275cmp=D({type:p2,selectors:[["bug-screensaver"]],hostBindings:function(a,b){a&1&&N("click",function(){return b.onUserEvent()},Jd)("keydown",function(){return b.onUserEvent()},Jd)("mousemove",function(){return b.onUserEvent()},Jd)("wheel",function(){return b.onUserEvent()},Jd)("touchstart",function(){return b.onUserEvent()},Jd)("focus",function(){return b.onUserEvent()},Jd)("visibilitychange",function(){return b.onVisibilityChange()},Rga)},standalone:!1,decls:0,vars:0,template:function(){},
encapsulation:2});var yOd=function(){var a=this;this.userPreferencesManager=p(hR);this.activeSession=p(uu);this.isEnabled$=this.userPreferencesManager.bugScreensaverPreferences$.pipe(A(function(b){return(b.enableBugScreensaver||!1)&&a.activeSession.isInternalSession()}))};yOd.\u0275fac=function(a){return new (a||yOd)};
yOd.\u0275cmp=D({type:yOd,selectors:[["bug-screensaver-manager"]],standalone:!1,decls:2,vars:3,template:function(a,b){a&1&&(F(0,zIb,1,0,"bug-screensaver"),T(1,"async"));a&2&&G(U(1,1,b.isEnabled$)?0:-1)},dependencies:[p2,Tx],encapsulation:2});var q2=function(){};q2.\u0275fac=function(a){return new (a||q2)};q2.\u0275mod=$e({type:q2});q2.\u0275inj=Fc({imports:[WO,BU,NU,FU]});var zOd=function(){this.activeSession=p(uu);this.currentTracker=this.activeSession.getTracker();var a,b;this.trackerName=(b=(a=this.currentTracker)==null?void 0:a.name)!=null?b:"";var c,d,e;this.trackerLogo=(e=(c=this.currentTracker)==null?void 0:(d=c.branding)==null?void 0:d.logoUrl)!=null?e:"";var f,g,k;this.trackerCoc=(k=(f=this.currentTracker)==null?void 0:(g=f.branding)==null?void 0:g.cocUrl)!=null?k:""};zOd.\u0275fac=function(a){return new (a||zOd)};
zOd.\u0275cmp=D({type:zOd,selectors:[["b-footer"]],standalone:!1,decls:1,vars:1,consts:[["href","https://policies.google.com/privacy","target","_blank"],[1,"padded-s-sides"],["href","https://policies.google.com/terms","target","_blank"],["alt","",1,"logo",3,"src"],[1,"title"],["id","code-of-conduct","target","_blank",3,"href"]],template:function(a,b){a&1&&F(0,CIb,9,2,"footer");a&2&&G(b.currentTracker||b.activeSession.isExternalSession()?0:-1)},styles:["footer[_ngcontent-%COMP%]{border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);-moz-box-sizing:border-box;box-sizing:border-box;width:100%;padding:8px 16px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.logo[_ngcontent-%COMP%]{width:24px;height:24px;padding:3px;margin-right:12px}a[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}a[_ngcontent-%COMP%]:hover{text-decoration:underline}.title[_ngcontent-%COMP%]{margin-right:56px}"]});var AOd=function(){};AOd.\u0275fac=function(a){return new (a||AOd)};AOd.\u0275mod=$e({type:AOd});AOd.\u0275inj=Fc({imports:[WO]});var r2=function(){var a=this;this.paths=p(hW);this.context=p(XQ);this.activeSession=p(uu);this.componentFridge=p(RO);this.createIssuePath=this.paths.createIssue();this.currentTracker=this.activeSession.getTracker();this.component$=this.context.getComponentId().pipe(yf(function(d){return d?a.componentFridge.watch(d):ce(void 0)}),A(function(d){return d&&!d.archived?d:void 0}));this.visibleOptions$=ie([this.component$,this.context.getIssueId(),this.context.getHotlistId()]).pipe(mf(0),A(function(d){var e=
m(d);d=e.next().value;var f=e.next().value;e=e.next().value;return BOd(a,a.currentTracker,d,f,e)}));this.buttonLabel$=this.visibleOptions$.pipe(A(function(d){return d.length?"Create":"Create Issue"}));var b,c;this.buttonIcon=((b=this.currentTracker)==null?void 0:(c=b.branding)==null?void 0:c.theme)==="OPEN_SOURCE"?"create-open-source-36px":"create-color-36px"};r2.prototype.ngOnInit=function(){};r2.prototype.trackClick=function(a){dr("create","click",a)};
var BOd=function(a,b,c,d,e){var f=new Map;b=b&&c&&b.trackerId&&b.trackerId!==c.trackerId;c=(c==null?0:c.componentId)?String(c.componentId):void 0;if(e!==null){var g={};f.set("in_same_hotlist",a.paths.createIssue((g.hotlistIds=String(e),g)))}b||c===void 0||(e={},f.set("in_same_component",a.paths.createIssue((e.component=c,e))));b||d===null||(e={},f.set("similar_to_current_issue",a.paths.createIssue((e.template_issue=d,e))),e={},f.set("blocked_by_current_issue",a.paths.createIssue((e.blockedByIssueIds=
d,e.component=c,e))),e={},f.set("blocking_current_issue",a.paths.createIssue((e.blockingIssueIds=d,e.component=c,e))),e={},f.set("parent_of_current_issue",a.paths.createIssue((e.childrenIssueIds=d,e.component=c,e))),e={},f.set("child_of_current_issue",a.paths.createIssue((e.parentIssueId=d,e.component=c,e))));return[].concat(q(f.entries())).map(function(k){var l=m(k);k=l.next().value;l=l.next().value;return{name:F$a(k),path:l}})};r2.\u0275fac=function(a){return new (a||r2)};
r2.\u0275cmp=D({type:r2,selectors:[["b-create-issue-button"]],standalone:!1,decls:2,vars:3,consts:[[3,"label","icon","href","segments"],[3,"clickMain","clickSegment","label","icon","href","segments"]],template:function(a,b){a&1&&(F(0,EIb,2,3),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.visibleOptions$))?0:-1,c)}},dependencies:[rU,Tx],encapsulation:2,changeDetection:0});var s2=function(){this.router=p(fF);this.location=p(bU)},COd=function(a){var b=a.location.getUrl();Ft(a.router,"/",{skipLocationChange:!0}).then(function(){return Ft(a.router,b,{skipLocationChange:!0})})};s2.\u0275fac=function(a){return new (a||s2)};s2.\u0275prov=Dc({token:s2,factory:s2.\u0275fac,providedIn:"root"});var t2=function(){Z.call(this);var a=this;this.reloadService=p(s2);this.activeSession=p(uu);this.bLocation=p(bU);this.paths=p(hW);this.issuePagination=p(m2);this.sidebarItemFactory=p(DOd);this.appEvents=p(UO);this.analytics=p(eQ);this.currentUserBookmarksFridge=p(qP);this.sidebarData={hotlists:[],bookmarkGroups:[],archivedHotlists:[],archivedBookmarkGroups:[],userSearches:[]};this.userSavedSearches=[];this.userHotlists=[];this.subscriptions.add(ifd(this.currentUserBookmarksFridge).subscribe(function(b){a.sidebarData.hotlists=
EOd(a,b.hotlists);a.sidebarData.bookmarkGroups=FOd(a,b.bookmarkGroups);a.sidebarData.archivedHotlists=EOd(a,b.archivedHotlists);a.sidebarData.archivedBookmarkGroups=FOd(a,b.archivedBookmarkGroups);a.appEvents.sidebarUpdated.next()}));this.subscriptions.add(jfd(this.currentUserBookmarksFridge).subscribe(function(b){b=GOd(a,b);a.sidebarData.userSearches=b;uba(a.userSavedSearches);xba(a.userSavedSearches,b);a.appEvents.sidebarUpdated.next()}));this.subscriptions.add(rP(this.currentUserBookmarksFridge).subscribe(function(b){HOd(a,
b);a.appEvents.sidebarUpdated.next()}))};Y(t2,Z);t2.\u0275dir=Z.\u0275dir;
var EOd=function(a,b){return b.map(function(c){return IOd(a.sidebarItemFactory,c)}).sort(function(c,d){return c.name.localeCompare(d.name)})},FOd=function(a,b){return b.map(function(c){var d=a.sidebarItemFactory;return new JOd(c,d.activeSession,d.analytics,d.userApi,d.bookmarkGroupsApi,d.butterBar,d.paths,d.userPreferencesManager,d.errorHandler,d,d.confirmationDialogService,d.appEvents)})},GOd=function(a,b){return b.map(function(c){return{id:String(c.searchId),name:c.name,adminUsers:c.adminUsers,
description:c.description,starred:!1,resourceType:"SAVED_SEARCH"}}).map(function(c){return KOd(a.sidebarItemFactory,c)})},HOd=function(a,b){b=b.map(function(c){c={id:String(c.hotlistId),name:c.name,description:c.description,adminUsers:c.adminUsers,starred:c.adminUsers.every(function(d){return d.emailAddress!==a.activeSession.getUserEmail()}),resourceType:"HOTLIST"};return IOd(a.sidebarItemFactory,c)});uba(a.userHotlists);xba(a.userHotlists,b)};
t2.prototype.onAnchorClick=function(a,b){var c,d=(c=b.target)==null?void 0:c.innerText;d=(d===void 0?"":d).replace(/\b(\d+)\b/g,"");this.analytics.trackEvent("nav","click",d.trim());b.metaKey||b.ctrlKey||b.shiftKey||b.button!==0||(iOd(this.issuePagination),Uud(this.paths,a)&&COd(this.reloadService),this.bLocation.setUrl(a),b.preventDefault(),b.stopPropagation())};t2.\u0275fac=function(a){return new (a||t2)};t2.\u0275prov=Dc({token:t2,factory:t2.\u0275fac,providedIn:"root"});
var u2=function(a,b,c,d,e,f,g,k){this.item=a;this.analytics=c;this.userApi=d;this.bookmarkGroupsApi=e;this.butterBar=f;this.paths=g;this.userPreferencesManager=k;this.id=a.id;this.name=a.name;this.description=a.description;this.adminUsers=a.adminUsers;this.starred=a.starred;this.userEmail=b.getUserEmail()};u2.prototype.getDisplayName=function(){return this.item.name?this.item.name:"resourceType"in this.item?gj(this.item.resourceType.toLowerCase())+" "+this.item.id:this.item.id};
u2.prototype.isEditable=function(){return LOd(this)};u2.prototype.isSelected=function(){var a=this.paths,b=this.href;b=b.charAt(0)!=="/"?"/"+b:b;return a.bLocation.path()===b};u2.prototype.isUnstarable=function(){return!LOd(this)&&this.starred};
var LOd=function(a){return a.adminUsers.some(function(b){return b.emailAddress===a.userEmail})},MOd=function(a,b){var c=iR(a.userPreferencesManager).homepagePreferences;return(c==null?void 0:c.resourceId)===a.id&&c.resourceType===b},NOd=function(a,b){Rr(a.butterBar,"Updating homepage...",0);jkd(a.userPreferencesManager,{resourceType:b,resourceId:a.id}).pipe(lf(1)).subscribe(function(){Rr(a.butterBar,"Homepage updated")})},OOd=function(a,b,c,d,e,f,g,k,l,r,w,x){u2.call(this,a,b,c,d,e,g,k,l);this.hotlistApi=
f;this.errorHandler=r;this.confirmationDialogService=w;this.appEvents=x;this.href=qs.viewHotlist.makeHref(a.id);this.type="HOTLIST"};Y(OOd,u2);h=OOd.prototype;h.isPreferredHomepage=function(){return MOd(this,"HOTLIST")};h.setAsPreferredHomepage=function(){NOd(this,"HOTLIST")};
h.archive=function(){var a=this;Rr(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});Rr(a.butterBar,'Archived hotlist "'+a.name+'".');a.analytics.trackEvent("sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unarchive=function(){var a=this;Rr(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});Rr(a.butterBar,'Unarchived hotlist "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar hotlist: "+this.name,content:Bh("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()}})};
h.doUnstar=function(){var a=this;Rr(this.butterBar,"Unstarring hotlist ID "+this.id+"...");this.userApi.removeUserBookmark({resourceType:"HOTLIST",resourceId:this.id}).then(function(){Rr(a.butterBar,"Unstarred hotlist ID "+a.id);a.appEvents.hotlistChanged.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var POd=function(a,b,c,d,e,f,g,k){u2.call(this,a,b,c,d,e,f,g,k);this.href=g.viewSavedSearch(a.id);this.type="SAVED_SEARCH"};Y(POd,u2);POd.prototype.isUnstarable=function(){return!1};
POd.prototype.unstar=function(){};POd.prototype.isPreferredHomepage=function(){return MOd(this,"SAVED_SEARCH")};POd.prototype.setAsPreferredHomepage=function(){NOd(this,"SAVED_SEARCH")};
var JOd=function(a,b,c,d,e,f,g,k,l,r,w,x){u2.call(this,a,b,c,d,e,f,g,k);this.errorHandler=l;this.sidebarItemFactory=r;this.confirmationDialogService=w;this.appEvents=x;this.items=[];a=m(a.sublinks||[]);for(b=a.next();!b.done;b=a.next())switch(b=b.value,b.resourceType){case "HOTLIST":this.items.push(IOd(this.sidebarItemFactory,b));break;case "SAVED_SEARCH":this.items.push(KOd(this.sidebarItemFactory,b))}this.items.sort(function(C,H){return C.name.localeCompare(H.name)})};Y(JOd,u2);h=JOd.prototype;
h.isPreferredHomepage=function(){return MOd(this,"BOOKMARK_GROUP")};h.setAsPreferredHomepage=function(){NOd(this,"BOOKMARK_GROUP")};
h.archive=function(){var a=this;Rr(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});Rr(a.butterBar,'Archived bookmark group "'+a.name+'".');a.analytics.trackEvent("sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unarchive=function(){var a=this;Rr(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});Rr(a.butterBar,'Unarchived bookmark group "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar bookmark group: "+this.name,content:Bh("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()}})};
h.doUnstar=function(){var a=this;Rr(this.butterBar,"Unstarring bookmark group ID "+this.id+"...");this.userApi.removeUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.id}).then(function(){Rr(a.butterBar,"Unstarred bookmark group ID "+a.id);a.appEvents.bookmarkGroupModified.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var DOd=function(){this.activeSession=p(uu);this.userApi=p(kP);this.bookmarkGroupsApi=p(CO);this.hotlistApi=p(gP);this.errorHandler=p(pO);this.paths=p(hW);this.analytics=p(eQ);this.butterBar=p(UN);this.userPreferencesManager=p(hR);this.confirmationDialogService=p(dS);this.appEvents=p(UO)},IOd=function(a,b){return new OOd(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.hotlistApi,a.butterBar,a.paths,a.userPreferencesManager,a.errorHandler,a.confirmationDialogService,a.appEvents)},KOd=
function(a,b){return new POd(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.butterBar,a.paths,a.userPreferencesManager)};DOd.\u0275fac=function(a){return new (a||DOd)};DOd.\u0275prov=Dc({token:DOd,factory:DOd.\u0275fac,providedIn:"root"});var v2=function(){this.prefs=p(hR);this.expanded=!0;this.content=this.header=null;this.onExpand=new aQ};v2.prototype.ngOnInit=function(){this.prefKey&&(this.expanded=!lkd(this.prefs,this.prefKey))};v2.prototype.onClick=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1){b=!a.expanded;a.expanded=b;if(!a.prefKey)return d.jumpTo(2);c={};return z(d,fe(kkd(a.prefs,(c[a.prefKey]=!b,c))),2)}a.expanded&&a.onExpand.next();ae(d)})};v2.\u0275fac=function(a){return new (a||v2)};
v2.\u0275cmp=D({type:v2,selectors:[["sidebar-zippy"]],inputs:{expanded:"expanded",header:"header",content:"content",prefKey:"prefKey"},outputs:{onExpand:"onExpand"},standalone:!1,decls:3,vars:7,consts:[["tabindex","0","role","tab",1,"bv2-nav-expandable-header",3,"click","keydown.enter","keydown.space"],[4,"ngTemplateOutlet"]],template:function(a,b){a&1&&(K(0,"div",0),N("click",function(){return b.onClick()})("keydown.enter",function(c){b.onClick();return c.stopPropagation()})("keydown.space",function(c){b.onClick();
return c.preventDefault()}),E(1,FIb,1,0,"ng-container",1),L(),F(2,HIb,1,1,"ng-container"));a&2&&(wg("opened",b.expanded)("closed",!b.expanded),If("aria-expanded",b.expanded),B(),I("ngTemplateOutlet",b.header),B(),G(b.expanded?2:-1))},dependencies:[Sx],encapsulation:2});var QOd=function(){return[]},w2=function(){var a=this;this.location=p(hi);this.starredTeamsService=p(VR);this.bLocation=p(bU);this.triageService=p(ZR);this.sidebar=p(t2);this.routeParamsService=p(WQ);this.teamExperimentalFieldsFridge=p(SQ);this.teamFridge=p(TQ);this.ROUTES=qs;this.ALL_PHASES=Xkd;this.phaseToUrlSlug=Gt;this.triageTeamIdFromUrl$=this.routeParamsService.routeParams$.pipe(A(function(b){return b.phase&&b.teamId}));this.triageIdFromUrl$=this.routeParamsService.routeParams$.pipe(A(function(b){return b.phase&&
b.triageId}));this.triageViewFromUrl$=ie([this.triageTeamIdFromUrl$,this.triageIdFromUrl$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(b&&c)return{teamId:b,triageId:c}}));this.sidebarTriagePreferences$=ie([this.starredTeamsService.starredTriageViews$,this.triageViewFromUrl$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return[].concat(q(b),[c]).filter(Pm)}),A(function(b){return sq(b,function(c){return c.teamId+":"+c.triageId})}));this.teamExperiments$=this.sidebarTriagePreferences$.pipe(A(function(b){return b.map(function(c){return c.teamId})}),
A(function(b){return tq(b.filter(Pm))}),yf(function(b){return a.teamExperimentalFieldsFridge.watchSet(b)}),A(function(b){return new Map(b.map(function(c){return[c.id,c]}))}));this.teamIdToTriageViews$=this.teamExperiments$.pipe(A(function(b){return JTa(b,function(c){return eo(c.triage,function(d){return d.id})})}));this.triageSidebarEntries$=ie([this.teamIdToTriageViews$,this.sidebarTriagePreferences$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=[];d=m(d);for(var e=d.next();!e.done;e=
d.next()){e=e.value;var f=e.teamId,g=e.triageId,k=void 0,l=(k=b.get(f))==null?void 0:k.get(Number(g));l?(g=a.teamFridge.watch(f),c.push({teamId:f,triageId:e.triageId,displayName$:N6a(g,f,l)})):console.log("triage not found",f,g)}return c}))},RIb=function(a,b,c){return a.routeParamsService.routeParams$.pipe(A(function(d){return!(d.teamId!==b||d.triageId!==c||!d.phase&&!a.location.path().endsWith("issue-themes"))}))};
w2.prototype.isTriageUrlFor=function(a,b,c){return this.location.path().startsWith(qs.viewTriage.makeHref(a,c,Gt[b],""))};w2.prototype.goToTriageSettingsPage=function(){this.bLocation.setUrl(qs.triageSettings.makeHref())};w2.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};w2.\u0275fac=function(a){return new (a||w2)};
w2.\u0275cmp=D({type:w2,selectors:[["nav-sidebar-triage"]],standalone:!1,decls:2,vars:4,consts:[["mainZippyHeader",""],["mainZippyContent",""],["triageMenu",""],["triageZippyHeader",""],["triageZippyContent",""],[1,"canned-searches"],[3,"href"],["svgIcon","story-point-24px",1,"canned-search-icon"],["prefKey","nav-triage",3,"header","content"],[1,"chip-new"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Configure triage",1,"bv2-nav-item-menubutton",3,"click","matMenuTriggerFor"],
["svgIcon","more-settings-vertical"],["matMenuContent",""],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],[1,"triage-teams-list"],[3,"title"],[3,"onExpand","header","content","expanded"],[1,"bv2-nav-item","bv2-nav-triage-team","full-width"],[1,"bv2-nav-item-text","no-indent"],[1,"bv2-nav-links-no-indent","triage-team-phase-list"],[1,"bv2-nav-item",3,"selected-indented","title"],["title","Issue Themes",1,"bv2-nav-item"],[1,"bv2-nav-indented","flex-kids-x","padded-s-right",
3,"href"],["svgIcon","issue-status-new",1,"vertical-centered","icon-s"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented","flex-kids-x","padded-s-right",3,"click","href"],[1,"margin-left-auto"]],template:function(a,b){a&1&&(F(0,VIb,2,1),T(1,"async"));if(a&2){var c,d;G((c=(d=U(1,1,b.triageSidebarEntries$))!=null?d:Hg(3,QOd))?0:-1,c)}},dependencies:[Jy,kB,iB,VJ,fH,dH,eH,iH,v2,Tx],styles:[".triage-teams-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.triage-teams-list[_ngcontent-%COMP%]   .bv2-nav-item-text[_ngcontent-%COMP%]{padding-right:0}.chip-new[_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;line-height:16px;border-radius:8px;margin-left:8px;padding:0 6px;background-color:#1a73e8;background-color:var(--primary-btn-bg);color:#fff;color:var(--text-inverse)}\n/*# sourceMappingURL=nav_sidebar_triage.css.map */"]});var ROd=function(){this.location=p(bU);this.analytics=p(eQ);this.paths=p(hW);this.sidebar=p(t2);this.bookmarkGroups=[];this.hotlists=[]};h=ROd.prototype;h.handleBookmarkGroupOpen=function(a){this.analytics.trackEvent("sidebarArchived","open");this.location.setUrl(this.paths.viewBookmarkGroup(a))};h.handleBookmarkGroupDashboard=function(a){this.analytics.trackEvent("sidebarArchived","dashboard");this.location.setUrl(this.paths.dashboard(a))};h.openEditHotlist=function(a){this.location.setUrl(qs.editHotlist.makeHref(a))};
h.openEditBookmarkGroup=function(a){this.location.setUrl(this.paths.editBookmarkGroup(a))};h.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};ROd.\u0275fac=function(a){return new (a||ROd)};
ROd.\u0275cmp=D({type:ROd,selectors:[["sidebar-archived"]],inputs:{bookmarkGroups:"bookmarkGroups",hotlists:"hotlists"},standalone:!1,decls:1,vars:1,consts:[["zippyHeader",""],["zippyContent",""],["bgZippyHeader",""],["bgZippyContent",""],["groupMenu",""],["hotlistMenu",""],["prefKey","nav-archived",3,"header","content"],[1,"archived-list"],[3,"title"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"selected","id","title"],[3,"header","content"],[1,"bv2-nav-item","bv2-nav-bookmark-group"],[1,
"bv2-nav-item-text"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor"],["matMenuContent",""],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"click","matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],
["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem"],[1,"bv2-nav-links-no-indent","bookmark-group-content-list"],[1,"bv2-nav-item",3,"selected-indented","bv2-bookmark-group-hotlist-item","bv2-bookmark-group-saved-search-item","title"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented",3,"click","href"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"id","title"],[3,"click","href"],["type","button","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&&F(0,kJb,7,2,"div");a&2&&G(b.hotlists.length||b.bookmarkGroups.length?0:-1)},dependencies:[Jy,kB,iB,VJ,fH,dH,eH,iH,v2],encapsulation:2,changeDetection:0});var SOd=function(){this.admins=[]};SOd.prototype.ngOnInit=function(){this.url="bookmark-groups/"+this.bookmarkGroup.bookmarkGroupId;this.admins=um(this.bookmarkGroup.adminUsers)};SOd.\u0275fac=function(a){return new (a||SOd)};
SOd.\u0275cmp=D({type:SOd,selectors:[["b-bookmark-group-card"]],inputs:{bookmarkGroup:"bookmarkGroup"},standalone:!1,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&&(K(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),Q(5),L()(),K(6,"ul")(7,"li"),Q(8),L(),K(9,"li"),Q(10),L()(),K(11,"div")(12,"p"),Q(13),L()()()()());a&2&&(B(4),
I("href",b.url,Ne),B(),yg(b.bookmarkGroup.name),B(3),S("ID: ",b.bookmarkGroup.bookmarkGroupId),B(2),zg("",b.admins.length===1?"Admin":"Admins",": ",b.admins.join(", ")),B(3),yg(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 TOd=["searchBox"],x2=function(){this.cdr=p(bQ,{self:!0});this.activeSession=p(uu);this.userApi=p(kP);this.bookmarkGroupsApi=p(CO);this.hotlistApi=p(gP);this.paths=p(hW);this.analytics=p(eQ);this.errorHandler=p(pO);this.appEvents=p(UO);this.currentUserBookmarksFridge=p(qP);this.allowStarring=this.showHotlists=this.showGroups=!0;this.focusOnInit=!1;this.itemSelect=new aQ;this.lastProcessedIndex=-1;this.nextRequestIndex=0;this.favoriteBookmarkGroups=new Set;this.favoriteHotlists=new Set;this.currentUserEmail=
this.activeSession.getUserEmail();this.query="";this.matches=[]};x2.prototype.ngOnInit=function(){this.allowStarring&&UOd(this)};x2.prototype.onSpace=function(a){var b;if((b=this.autocomplete)==null?0:b.activeOption)this.toggleStar(this.autocomplete.activeOption.value),a.preventDefault(),a.stopPropagation()};
var UOd=function(a){a.favoriteBookmarkGroups.clear();a.favoriteHotlists.clear();fe(ifd(a.currentUserBookmarksFridge)).then(function(b){if(a.showGroups)for(var c=m(b.bookmarkGroups),d=c.next();!d.done;d=c.next()){d=d.value;d.starred&&a.favoriteBookmarkGroups.add(d.id);var e=void 0;d=m((e=d.sublinks)!=null?e:[]);for(e=d.next();!e.done;e=d.next())e=e.value,e.starred&&a.favoriteHotlists.add(e.id)}if(a.showHotlists)for(b=m(b.hotlists),c=b.next();!c.done;c=b.next())c=c.value,c.starred&&a.favoriteHotlists.add(c.id);
a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};h=x2.prototype;h.reset=function(){this.query="";this.matches=[]};h.isLoading=function(){return this.lastProcessedIndex+1!==this.nextRequestIndex};h.onQueryChange=function(){this.matches=[];this.query&&typeof this.query!=="string"&&(this.query="");this.search()};
h.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=m(e);e=f.next().value;f=f.next().value;if(b===a.nextRequestIndex-1){for(var g=m(e),k=g.next();!k.done;k=g.next()){k=k.value;var l=k.bookmarkGroupId;k.href=a.paths.viewBookmarkGroup(l);k.isGroup=!0;k.isStarred=a.favoriteBookmarkGroups.has(l)}g=
m(f);for(k=g.next();!k.done;k=g.next())k=k.value,l=k.hotlistId,k.href=qs.viewHotlist.makeHref(l),k.isGroup=!1,k.isStarred=a.favoriteHotlists.has(l);a.matches=[].concat(q(e),q(f));a.lastProcessedIndex=b;a.cdr.detectChanges()}})}else this.lastProcessedIndex=b};h.shouldShowStar=function(a){return this.allowStarring&&!um(a.adminUsers).includes(this.currentUserEmail)};
h.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();UOd(b);b.cdr.detectChanges()};c={resourceId:c,resourceType:d};a.isStarred?(this.analytics.trackEvent("hotlistSearch","starItem"),this.userApi.addUserBookmark(c).then(e)):(this.analytics.trackEvent("hotlistSearch","unstarItem"),this.userApi.removeUserBookmark(c).then(e))};
x2.\u0275fac=function(a){return new (a||x2)};
x2.\u0275cmp=D({type:x2,selectors:[["b-hotlist-search"]],viewQuery:function(a,b){a&1&&(hg(TOd,5),hg(OX,5));if(a&2){var c;lg(c=mg())&&(b.searchBoxEl=c.first);lg(c=mg())&&(b.autocomplete=c.first)}},hostAttrs:[1,"'bv2-hotlist-search'"],inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",focusOnInit:"focusOnInit"},outputs:{itemSelect:"itemSelect"},standalone:!1,features:[Gg([bQ])],decls:14,vars:5,consts:[["searchBox",""],["auto","matAutocomplete"],["itemHovercard",
"onedevHovercard"],[1,"bv2-hotlist-search"],["id","hotlist-search-input-box","type","text","placeholder","Enter query","role","combobox",3,"ngModelChange","keydown.space","ngModel","matAutocomplete"],[1,"bv2-hotlist-search-dropdown",3,"optionSelected"],[1,"bv2-hotlist-search-dropdown-item",3,"value"],[1,"bv2-hotlist-search-subtext"],[1,"flex-kids-x","align-items-center","gap-xxs"],[3,"starMessage","unStarMessage","starred"],[3,"hotlist"],[3,"bookmarkGroup"],[1,"bv2-hotlist-name",3,"onedevHovercardTrigger"],
[3,"starClicked","starMessage","unStarMessage","starred"]],template:function(a,b){if(a&1){var c=t();K(0,"div",3)(1,"input",4,0);Cg("ngModelChange",function(d){u(c);Bg(b.query,d)||(b.query=d);return v(d)});N("ngModelChange",function(){u(c);return v(b.onQueryChange())})("keydown.space",function(d){u(c);return v(b.onSpace(d))});L();F(3,lJb,1,0,"b-spinner");K(4,"mat-autocomplete",5,1);N("optionSelected",function(d){u(c);b.itemSelect.emit(d.option.value);return v()});Nf(6,pJb,9,7,"mat-option",6,Mf);L();
K(8,"div",7);Q(9,' e.g., "foo bar admin:user@google.com" ');M(10,"br");Q(11,' or "foo bar admin:group@google.com" ');M(12,"br");Q(13," Only identities directly listed as Admins can be searched. ");L()()}a&2&&(a=qg(5),B(),Ag("ngModel",b.query),I("matAutocomplete",a),If("autofocus",b.focusOnInit)("aria-label","Add query for searching "+(b.showGroups?"bookmark groups":"hotlists")),B(2),G(b.isLoading()?3:-1),B(3),Of(b.matches))},dependencies:[SOd,LZ,KK,SK,cU,CY,xj,fE,mE,QX,NX,hA,OX],encapsulation:2});var VOd=function(){this.allowStarring=this.showHotlists=this.showGroups=!0;this.ariaLabel="";this.itemSelect=new aQ};VOd.\u0275fac=function(a){return new (a||VOd)};
VOd.\u0275cmp=D({type:VOd,selectors:[["b-hotlist-search-popup"]],viewQuery:function(a,b){a&1&&hg(eB,5);if(a&2){var c;lg(c=mg())&&(b.dialog=c.first)}},inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",ariaLabel:[0,"aria-label","ariaLabel"]},outputs:{itemSelect:"itemSelect"},standalone:!1,decls:4,vars:2,consts:[["popup",""],["matTooltip","Search","dialogLabel","Search",3,"xapInlineDialogClick"],["svgIcon","search"],[3,"itemSelect","showGroups","showHotlists",
"allowStarring","focusOnInit"]],template:function(a,b){a&1&&(K(0,"xap-icon-trigger",1),M(1,"mat-icon",2),L(),E(2,qJb,3,4,"ng-template",null,0,Mg));a&2&&(a=qg(3),I("xapInlineDialogClick",a),If("aria-label",b.ariaLabel))},dependencies:[Jy,bB,aB,vK,nA,eB,jL,x2],styles:["xap-dialog-layout[_ngcontent-%COMP%] { padding: 16px; }","xap-dialog-layout-content[_ngcontent-%COMP%] { padding: 0; }"]});var y2=function(){this.location=p(bU);this.analytics=p(eQ);this.paths=p(hW);this.sidebar=p(t2);this.bookmarkGroups=[]};y2.prototype.handleBookmarkGroupOpen=function(a){this.analytics.trackEvent("sidebarBookmarkGroups","open");this.location.setUrl(this.paths.viewBookmarkGroup(a))};y2.prototype.handleBookmarkGroupDashboard=function(a){this.analytics.trackEvent("sidebarBookmarkGroups","dashboard");this.location.setUrl(this.paths.dashboard(a))};y2.prototype.editBookmarkGroup=function(a){this.location.setUrl(this.paths.editBookmarkGroup(a))};
y2.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};y2.\u0275fac=function(a){return new (a||y2)};
y2.\u0275cmp=D({type:y2,selectors:[["sidebar-bookmark-groups"]],inputs:{bookmarkGroups:"bookmarkGroups"},standalone:!1,decls:7,vars:2,consts:[["zippyHeader",""],["zippyContent",""],["bgZippyHeader",""],["bgZippyContent",""],["topMenu",""],["innerMenu",""],[1,"bv2-nav-section"],["prefKey","nav-bkg",3,"header","content"],["aria-label","Search for bookmark groups",3,"itemSelect","click","showHotlists"],[1,"bookmark-group-list"],[3,"title"],[3,"header","content","expanded"],[1,"bv2-nav-item","bv2-nav-bookmark-group"],
[1,"bv2-nav-item-text"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor"],["matMenuContent",""],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"click","matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,
"click"],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem"],[1,"bv2-nav-links-no-indent","bookmark-group-content-list"],[1,"bv2-nav-item",3,"selected-indented","bv2-bookmark-group-hotlist-item","bv2-bookmark-group-saved-search-item","title"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented",3,"click","href"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark item actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"]],template:function(a){a&
1&&(K(0,"div",6),M(1,"hr"),K(2,"sidebar-zippy",7),E(3,rJb,3,1,"ng-template",null,0,Mg)(5,GJb,1,1,"ng-template",null,1,Mg),L()());if(a&2){a=qg(4);var b=qg(6);B(2);I("header",a)("content",b)}},dependencies:[Jy,VOd,kB,iB,VJ,fH,dH,eH,iH,v2],encapsulation:2,changeDetection:0});var z2=function(){Z.call(this);var a=this;this.location=p(bU);this.activeSession=p(uu);this.analytics=p(eQ);this.sidebar=p(t2);this.paths=p(hW);this.routerEvents=p(dQ);this.cdr=p(Cx);this.mcPrefs=p(r1);this.ENABLE_MISSION_CONTROL=this.activeSession.isInternalSession();this.userEmail=this.activeSession.getUserEmail();this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.cdr.detectChanges()}))};Y(z2,Z);z2.\u0275dir=Z.\u0275dir;z2.prototype.getUserEmail=function(){return this.userEmail};
z2.prototype.openEditHotlist=function(a){this.location.setUrl(qs.editHotlist.makeHref(a))};z2.prototype.addToMissionControl=function(a){this.mcPrefs.addHotlist(a);this.location.setUrl(this.paths.home())};z2.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};z2.\u0275fac=function(a){return new (a||z2)};
z2.\u0275cmp=D({type:z2,selectors:[["sidebar-hotlists"]],inputs:{hotlists:"hotlists"},standalone:!1,features:[Ef],decls:7,vars:2,consts:[["zippyHeader",""],["zippyContent",""],["menu",""],[1,"bv2-nav-section"],["prefKey","nav-hotlists",3,"header","content"],["aria-label","Search for hotlists",3,"itemSelect","click","showGroups"],[1,"hotlist-list"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"selected","id","title"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"id","title"],[3,"click",
"href"],[1,"bv2-nav-item-text"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Hotlist actions keep-focus-ring",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["matMenuContent",""],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],["svgIcon","settings",1,"icon-s"],["svgIcon","home",1,"icon-s"],["svgIcon","save",1,"icon-s"],["svgIcon","star-empty",1,"icon-s"]],template:function(a){a&1&&(K(0,"div",
3),M(1,"hr"),K(2,"sidebar-zippy",4),E(3,HJb,3,1,"ng-template",null,0,Mg)(5,PJb,1,1,"ng-template",null,1,Mg),L()());if(a&2){a=qg(4);var b=qg(6);B(2);I("header",a)("content",b)}},dependencies:[Jy,VOd,kB,iB,VJ,fH,dH,eH,iH,v2],encapsulation:2,changeDetection:0});var A2=function(){Z.call(this);var a=this;this.cdr=p(bQ,{self:!0});this.location=p(bU);this.savedSearchApi=p(oP);this.paths=p(hW);this.butterBar=p(UN);this.analytics=p(eQ);this.sidebar=p(t2);this.errorHandler=p(pO);this.routerEvents=p(dQ);this.confirmationDialogService=p(dS);this.appEvents=p(UO);this.mcPrefs=p(r1);this.activeSession=p(uu);this.ENABLE_MISSION_CONTROL=this.activeSession.isInternalSession();this.searches=[];this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.cdr.detectChanges()}))};
Y(A2,Z);A2.\u0275dir=Z.\u0275dir;A2.prototype.openEditSavedSearch=function(a){this.location.setUrl(this.paths.editSavedSearch(a))};A2.prototype.addToMissionControl=function(a){VLd(this.mcPrefs,pub(a));this.location.setUrl(this.paths.home())};
var TJb=function(a,b){a.confirmationDialogService.open({title:"Deleting saved search: "+b.name,content:Bh("Are you sure you want to delete this search?"),isDestructive:!0,onConfirm:function(){WOd(a,b)}})},WOd=function(a,b){var c=b.id;Rr(a.butterBar,'Deleting saved search "'+b.name+'"...');a.savedSearchApi.delete(c).then(function(){a.appEvents.savedSearchModified.next({savedSearchId:c,action:"delete"});Rr(a.butterBar,'Deleted saved search "'+b.name+'".');a.analytics.trackEvent("sidebarSavedSearches",
"deleted");a.cdr.detectChanges()}).catch(function(d){a.errorHandler.errorHandler(null,d)})};A2.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};A2.\u0275fac=function(a){return new (a||A2)};
A2.\u0275cmp=D({type:A2,selectors:[["sidebar-saved-searches"]],inputs:{searches:"searches"},standalone:!1,features:[Gg([bQ]),Ef],decls:7,vars:2,consts:[["zippyHeader",""],["zippyContent",""],["menu",""],[1,"bv2-nav-section","bv2-nav-section-savedsearches"],["prefKey","nav-ss",3,"header","content"],[1,"saved-search-list"],[1,"bv2-nav-item",3,"selected","title"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-item-link",3,"click","href"],[1,"bv2-nav-item-text"],["type","button","mat-icon-button","","disableRipple",
"true","aria-label","Saved search actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["matMenuContent",""],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],["svgIcon","settings",1,"icon-s"],["svgIcon","delete",1,"icon-s"],["svgIcon","home",1,"icon-s"],["svgIcon","save",1,"icon-s"]],template:function(a){a&1&&(K(0,"div",3),M(1,"hr"),K(2,"sidebar-zippy",4),E(3,QJb,2,0,"ng-template",null,0,Mg)(5,XJb,1,1,"ng-template",null,
1,Mg),L()());if(a&2){a=qg(4);var b=qg(6);B(2);I("header",a)("content",b)}},dependencies:[Jy,kB,iB,VJ,fH,dH,eH,iH,v2],encapsulation:2,changeDetection:0});var XOd=function(){};XOd.\u0275fac=function(a){return new (a||XOd)};
XOd.\u0275cmp=D({type:XOd,selectors:[["ng-component"]],decls:0,vars:0,template:function(){},styles:[".mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}\n"],encapsulation:2,
changeDetection:0});var B2=function(){this._ngZone=p(Rg);this._elementRef=p(Hd);this._ariaDescriber=p(fz);this._renderer=p(ci);this._animationsDisabled=mi();this._idGenerator=p(ai);this._color="primary";this.overlap=!0;this.position="above after";this.size="medium";this._isInitialized=!1;this._interactivityChecker=p(Qy);this._document=p(Rh);var a=p(Zh);a.load(XOd);a.load(Ry)};h=B2.prototype;
h.ngOnInit=function(){this._clearExistingBadges();this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content));this._isInitialized=!0};h.ngOnDestroy=function(){if(this._renderer.destroyNode){this._renderer.destroyNode(this._badgeElement);var a;(a=this._inlineBadgeDescription)==null||a.remove()}hz(this._ariaDescriber,this._elementRef.nativeElement,this.description)};
h._isHostInteractive=function(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})};
h._createBadgeElement=function(){var a=this._renderer.createElement("span");a.setAttribute("id",this._idGenerator.getId("mat-badge-content-"));a.setAttribute("aria-hidden","true");a.classList.add("mat-badge-content");this._animationsDisabled&&a.classList.add("_mat-animation-noopable");this._elementRef.nativeElement.appendChild(a);typeof requestAnimationFrame!=="function"||this._animationsDisabled?a.classList.add("mat-badge-active"):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){a.classList.add("mat-badge-active")})});
return a};h._updateRenderedContent=function(a){a=(""+(a!=null?a:"")).trim();this._isInitialized&&a&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement());this._badgeElement&&(this._badgeElement.textContent=a);this._content=a};
h._updateDescription=function(a){hz(this._ariaDescriber,this._elementRef.nativeElement,this.description);a&&!this._isHostInteractive()||this._removeInlineDescription();this._description=a;this._isHostInteractive()?gz(this._ariaDescriber,this._elementRef.nativeElement,a):this._updateInlineDescription()};
h._updateInlineDescription=function(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden"));this._inlineBadgeDescription.textContent=this.description;var a;(a=this._badgeElement)==null||a.appendChild(this._inlineBadgeDescription)};h._removeInlineDescription=function(){var a;(a=this._inlineBadgeDescription)==null||a.remove();this._inlineBadgeDescription=void 0};
h._setColor=function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-badge-"+this._color);a&&b.add("mat-badge-"+a)};h._clearExistingBadges=function(){for(var a=m(Array.from(this._elementRef.nativeElement.querySelectorAll(":scope > .mat-badge-content"))),b=a.next();!b.done;b=a.next())b=b.value,b!==this._badgeElement&&b.remove()};
da.Object.defineProperties(B2.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color},set:function(a){this._setColor(a);this._color=a}},content:{configurable:!0,enumerable:!0,get:function(){return this._content},set:function(a){this._updateRenderedContent(a)}},description:{configurable:!0,enumerable:!0,get:function(){return this._description},set:function(a){this._updateDescription(a)}}});B2.\u0275fac=function(a){return new (a||B2)};
B2.\u0275dir=af({type:B2,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(a,b){a&2&&wg("mat-badge-overlap",b.overlap)("mat-badge-above",b.position.indexOf("below")===-1)("mat-badge-below",b.position.indexOf("below")!==-1)("mat-badge-before",b.position.indexOf("before")!==-1)("mat-badge-after",b.position.indexOf("before")===-1)("mat-badge-small",b.size==="small")("mat-badge-medium",b.size==="medium")("mat-badge-large",b.size==="large")("mat-badge-hidden",b.hidden||
!b.content)("mat-badge-disabled",b.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",$g],disabled:[2,"matBadgeDisabled","disabled",$g],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",$g]}});var C2=function(){var a=this;this.cdr=p(bQ,{self:!0});this.activeSession=p(uu);this.butterBar=p(UN);this.appSearchState=p(rT);this.paths=p(hW);this.userPreferencesManager=p(hR);this.sidebar=p(t2);this.location=p(hi);this.appEvents=p(UO);this.missionControlPrefs=p(r1);this.needsAttentionTaskFridge=p(BQ);this.bLocation=p(bU);this.ROUTES=qs;this.appName=this.activeSession.getAppName();this.userEmail=this.activeSession.getUserEmail();this.environmentType=this.activeSession.getEnvironmentType();this.missionControlTaskCount$=
this.appEvents.missionControlTaskCount;this.assignedPath=this.paths.listIssues({q:Eqd(this.userEmail)});this.starredPath=this.paths.listIssues({q:this.appSearchState.getStarred()});this.ccdPath=this.paths.listIssues({q:"cc:"+this.userEmail});this.collaborateOnPath=this.paths.listIssues({q:"collaborator:"+this.userEmail});this.verifiedPath=this.paths.listIssues({q:Gqd(this.userEmail)});this.reportedPath=this.paths.listIssues({q:"reporter:"+this.userEmail});this.componentsPath=qs.listComponents.makeHref();
this.createBookmarkGroupPath=this.paths.createBookmarkGroup();this.missionControlPath=this.paths.home();this.sidebarData=this.sidebar.sidebarData;this.enableTriageView=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();this.enableHomepage=!this.activeSession.isAnonymous();this.paths.listIssues({q:"vote:true"});this.homepagePreferences$=this.userPreferencesManager.preferences$.pipe(A(function(d){return(d||LN).homepagePreferences}));this.hasPreferredHomepage$=this.homepagePreferences$.pipe(A(function(d){return!(!d||
!d.resourceType)}),nf());this.isHomepageMissionControl$=this.homepagePreferences$.pipe(A(function(d){return d.resourceType==="MISSION_CONTROL"}),nf());this.isHomepageAssignedToMe$=this.homepagePreferences$.pipe(A(function(d){return!a.enableHomepage&&!d.resourceType||d.resourceType==="ASSIGNED_TO_ME"}),nf());this.hideBadgeInNav$=this.userPreferencesManager.preferences$.pipe(A(function(d){var e;return d==null?void 0:(e=d.missionControlPreferences)==null?void 0:e.hideBadgeInNav}),A(Boolean));this.destroyed$=
new aQ;var b,c=!!this.location.path().match(/^\/home\b/)&&!((b=this.missionControlPrefs.prefs.collapsed)==null?0:b["needs-attention-wrapper"]);this.activeSession.getFlag("runQueryForSidebarIssueCount")&&setTimeout(function(){a.enableHomepage&&!c&&ie([a.missionControlPrefs.needsAttentionTimeBoundary$,a.missionControlPrefs.needsAttentionSources$,a.missionControlPrefs.needsAttentionFilteredSignals$]).pipe(nf(function(d,e){return mm(d,e)}),yf(function(d){var e=m(d);d=e.next().value;var f=e.next().value;
e=e.next().value;f=f.map(function(g){return or(g)});return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:d,sources:f,signalFilter:0,filterSignals:e})}),A(function(d){return d.results.length}),zf(a.destroyed$)).subscribe(function(d){a.appEvents.missionControlTaskCount.next(d)})},1E3)};C2.prototype.ngOnInit=function(){var a=this;this.hasPreferredHomepage$.pipe(zf(this.destroyed$)).subscribe(function(){setTimeout(function(){a.cdr.detectChanges()})})};C2.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var aKb=function(a,b){Rr(a.butterBar,"Updating homepage...",0);jkd(a.userPreferencesManager,{resourceType:b}).subscribe(function(){Rr(a.butterBar,"Homepage updated")})};C2.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};C2.prototype.isTriageUrlFor=function(a){if(!this.location.path().match(/^\/triage\b/))return!1;a=new RegExp("\\b"+a+"\\b");return!!this.location.path().match(a)};C2.prototype.goToTriageSettingsPage=function(){this.bLocation.setUrl(qs.triageSettings.makeHref())};
C2.\u0275fac=function(a){return new (a||C2)};
C2.\u0275cmp=D({type:C2,selectors:[["b-sidebar"]],standalone:!1,features:[Gg([bQ])],decls:50,vars:31,consts:[["menu",""],["homepageMenu",""],[1,"bv2-nav-header"],[1,"bv2-nav-bar"],["role","region",1,"bv2-nav-links"],["aria-label","Canned searches",1,"canned-searches"],["id","mission-control-sidebar-link",1,"bv2-nav-item",3,"selected"],["id","assigned-to-me-sidebar-link",1,"bv2-nav-item"],[3,"click","href"],["svgIcon","issue-status-accepted",1,"canned-search-icon"],["type","button","mat-icon-button",
"","disableRipple","true","aria-label","Assigned issues actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["matMenuContent",""],["svgIcon","star-filled",1,"canned-search-icon"],["svgIcon","person-add-18px",1,"canned-search-icon"],["svgIcon","user-attributes",1,"canned-search-icon"],["svgIcon","issue-status-fixed",1,"canned-search-icon"],[3,"bookmarkGroups"],[3,"searches"],[3,"hotlists"],[3,"hotlists","bookmarkGroups"],[1,"bv2-nav-manage-link"],[3,"href"],["id","mission-control-sidebar-link",
1,"bv2-nav-item"],["svgIcon","home","matBadgeColor","warn","matBadgeSize","small",1,"canned-search-icon",3,"matBadge","matBadgeHidden","matBadgeDescription"],["svgIcon","home",1,"canned-search-icon"],["type","button","mat-icon-button","","disableRipple","true","aria-label","More settings",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"]],template:function(a,b){if(a&1){var c=t();
K(0,"div",2);M(1,"b-create-issue-button");L();K(2,"div",3)(3,"div",4)(4,"ul",5);F(5,cKb,12,11,"li",6);K(6,"li",7)(7,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.assignedPath,d))});M(8,"mat-icon",9);Q(9," Assigned to me ");L();F(10,dKb,2,1,"button",10);T(11,"async");K(12,"mat-menu",null,0);E(14,eKb,2,0,"ng-template",11);L()();K(15,"li")(16,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.starredPath,d))});M(17,"mat-icon",12);Q(18," Starred by me ");L()();K(19,"li")(20,"a",
8);N("click",function(d){u(c);return v(b.onAnchorClick(b.ccdPath,d))});M(21,"mat-icon",13);Q(22," CC'd to me ");L()();K(23,"li")(24,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.collaborateOnPath,d))});M(25,"mat-icon",13);Q(26," Collaborating ");L()();K(27,"li")(28,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.reportedPath,d))});M(29,"mat-icon",14);Q(30," Reported by me ");L()();K(31,"li")(32,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.verifiedPath,d))});
M(33,"mat-icon",15);Q(34," To be verified ");L()()();F(35,fKb,1,0,"nav-sidebar-triage");M(36,"sidebar-bookmark-groups",16)(37,"sidebar-saved-searches",17)(38,"sidebar-hotlists",18)(39,"sidebar-archived",19)(40,"hr");K(41,"div",20)(42,"a",21);Q(43," Create hotlist ");L()();K(44,"div",20)(45,"a",21);Q(46," Create bookmark group ");L()();K(47,"div",20)(48,"a",21);Q(49," Browse components ");L()()()()}a&2&&(B(5),G(b.enableHomepage?5:-1),B(),wg("selected",Fqd(b.appSearchState,b.userEmail)),B(),I("href",
b.assignedPath,Ne),B(3),G(U(11,29,b.isHomepageAssignedToMe$)?-1:10),B(5),wg("selected",b.appSearchState.isStarred()),B(),I("href",b.starredPath,Ne),B(3),wg("selected",b.appSearchState.currentQuery==="cc:"+b.userEmail),B(),I("href",b.ccdPath,Ne),B(3),wg("selected",b.appSearchState.currentQuery==="collaborator:"+b.userEmail),B(),I("href",b.collaborateOnPath,Ne),B(3),wg("selected",b.appSearchState.currentQuery==="reporter:"+b.userEmail),B(),I("href",b.reportedPath,Ne),B(3),wg("selected",b.appSearchState.currentQuery===
Gqd(b.userEmail)),B(),I("href",b.verifiedPath,Ne),B(3),G(b.enableTriageView?35:-1),B(),I("bookmarkGroups",b.sidebarData.bookmarkGroups),B(),I("searches",b.sidebarData.userSearches),B(),I("hotlists",b.sidebarData.hotlists),B(),I("hotlists",b.sidebarData.archivedHotlists)("bookmarkGroups",b.sidebarData.archivedBookmarkGroups),B(3),I("href",b.ROUTES.createHotlist.makeHref(),Ne),B(3),I("href",b.createBookmarkGroupPath,Ne),B(3),I("href",b.componentsPath,Ne))},dependencies:[r2,Jy,kB,iB,VJ,fH,dH,eH,iH,B2,
w2,ROd,y2,z2,A2,Tx],encapsulation:2});var YOd=function(){};YOd.\u0275fac=function(a){return new (a||YOd)};YOd.\u0275mod=$e({type:YOd});YOd.\u0275inj=Fc({imports:[WO]});var D2=function(){};D2.\u0275fac=function(a){return new (a||D2)};D2.\u0275mod=$e({type:D2});D2.\u0275inj=Fc({imports:[WO,YOd,L_,TK,eU,Y1,GV,wK,DE,HV,SX]});var E2=function(){};E2.\u0275fac=function(a){return new (a||E2)};E2.\u0275mod=$e({type:E2});E2.\u0275inj=Fc({imports:[WO,sU]});var ZOd=function(){};ZOd.\u0275fac=function(a){return new (a||ZOd)};ZOd.\u0275mod=$e({type:ZOd});ZOd.\u0275inj=Fc({imports:[ez,Ky]});var F2=function(){};F2.\u0275fac=function(a){return new (a||F2)};F2.\u0275mod=$e({type:F2});F2.\u0275inj=Fc({imports:[E2,WO,D2,mB,WJ,ZOd,H0,lF,iK]});var $Od=function(){this.executor=p(bO)};$Od.\u0275fac=function(a){return new (a||$Od)};$Od.\u0275prov=Dc({token:$Od,factory:$Od.\u0275fac,providedIn:"root"});var G2=function(){Z.apply(this,arguments);this.dialogRef=p(RA);this.tosApi=p($Od);this.ackChecked=!1};Y(G2,Z);G2.\u0275dir=Z.\u0275dir;G2.prototype.accept=function(){var a=this;this.tosApi.executor.post({url:"action/terms_ack",body:null,responseConstructor:null}).pipe(zf(this.destroyed$)).subscribe(function(){a.dialogRef.close()})};G2.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(G2)))(b||G2)}}();
G2.\u0275cmp=D({type:G2,selectors:[["b-terms-of-service-dialog"]],standalone:!1,features:[Ef],decls:16,vars:2,consts:[["mat-dialog-title",""],[1,"b-tos-content"],[3,"ngModelChange","ngModel"],["href","https://www.google.com/policies/terms/","target","_blank"],["href","/terms","target","_blank"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Google IssueTracker Terms of Service"),L(),K(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",2),
Cg("ngModelChange",function(c){Bg(b.ackChecked,c)||(b.ackChecked=c);return c}),L(),K(5,"span"),Q(6," I acknowledge and agree to the "),K(7,"a",3),Q(8,"Google Terms of Service"),L(),Q(9," and the "),K(10,"a",4),Q(11,"Google IssueTracker Conduct Policy"),L(),Q(12,". "),L()()(),K(13,"mat-dialog-actions")(14,"button",5),N("click",function(){return b.accept()}),Q(15," OK "),L()());a&2&&(B(4),Ag("ngModel",b.ackChecked),B(10),I("disabled",!b.ackChecked))},dependencies:[fE,mE,kB,gB,kL,hI,XA,ZA,YA],styles:[".b-tos-content[_ngcontent-%COMP%]{padding-top:1em}.b-tos-content[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{padding-right:8px}"]});var H2=function(){Z.apply(this,arguments);this.activeSession=p(uu);this.matDialogService=p(UA)};Y(H2,Z);H2.\u0275dir=Z.\u0275dir;H2.prototype.ngOnInit=function(){this.activeSession.getMustAcknowledgeTerms()&&SA(this.matDialogService.open(G2,{width:"400px",disableClose:!0})).pipe(zf(this.destroyed$))};H2.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(H2)))(b||H2)}}();
H2.\u0275cmp=D({type:H2,selectors:[["b-terms-of-service"]],standalone:!1,features:[Ef],decls:0,vars:0,template:function(){},encapsulation:2});var aPd=function(){};aPd.\u0275fac=function(a){return new (a||aPd)};aPd.\u0275mod=$e({type:aPd});aPd.\u0275inj=Fc({imports:[DE,WO,mB,lL,TJ]});var I2=function(){};I2.\u0275fac=function(a){return new (a||I2)};I2.\u0275mod=$e({type:I2});I2.\u0275inj=Fc({imports:[WO,aPd]});var J2=function(){Z.apply(this,arguments);this.routerEvents=p(dQ);this.bLocation=p(bU);this.history=[]};Y(J2,Z);J2.\u0275dir=Z.\u0275dir;J2.prototype.install=function(){var a=this;this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.history.push(a.bLocation.getUrl());a.history.length>21&&a.history.shift()}))};J2.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};J2.prototype.hasPreviousPage=function(){return this.history.length>1};
var K2=function(a){if(a.hasPreviousPage()){a.history.pop();var b=a.history.pop();b?a.bLocation.setUrl(b):a.bLocation.setUrl("/")}else a.bLocation.setUrl("/")};J2.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(J2)))(b||J2)}}();J2.\u0275prov=Dc({token:J2,factory:J2.\u0275fac,providedIn:"root"});var bPd=function(){this.$window=p(lR);this.activeSession=p(uu);this.faviconUrl=this.defaultFaviconUrl=zh("https://www.gstatic.com/buganizer/img/v4/favicon.png")},cPd=function(a){var b=a.$window.document.head.querySelector('link[rel="shortcut icon"]'),c=b==null?void 0:b.href;a.faviconUrl=c?zh(c):a.defaultFaviconUrl;c=a.activeSession.getTracker();var d;if(c==null?0:(d=c.branding)==null?0:d.logoUrl){var e;a=zh(c==null?void 0:(e=c.branding)==null?void 0:e.logoUrl)}else a=a.faviconUrl;e=a;if(b&&b.href!==
e.toString())if(e instanceof uh)b.href=wh(e).toString(),b.rel="icon";else{if(PDc.indexOf("icon")===-1)throw Error("$a`icon");e=Ah(e);e!==void 0&&(b.href=e,b.rel="icon")}};bPd.\u0275fac=function(a){return new (a||bPd)};bPd.\u0275prov=Dc({token:bPd,factory:bPd.\u0275fac,providedIn:"root"});var dPd=Qcd("edited-ids"),ePd=XUa("edited-ids"),fPd=Qcd("viewed-ids"),gPd=XUa("viewed-ids"),hPd=function(){this.appEvents=p(UO);this.stop$=new qf;this.edited=new IEd(50);this.viewed=new IEd(50)},iPd=function(a){LEd(a.viewed,gPd());LEd(a.edited,ePd());a.appEvents.issueViewed.pipe(zf(a.stop$)).subscribe(function(b){JEd(a.viewed,b);fPd(KEd(a.viewed))});a.appEvents.issueEdited.pipe(zf(a.stop$)).subscribe(function(b){JEd(a.edited,b);dPd(KEd(a.edited))})};hPd.\u0275fac=function(a){return new (a||hPd)};
hPd.\u0275prov=Dc({token:hPd,factory:hPd.\u0275fac,providedIn:"root"});var jPd=/^\s*[^:/?#]+:/i,kPd=/^#/i,L2=function(){var a=this;this.bLocation=p(bU);this.linkClickHandler=function(b){if(!(b.ctrlKey||b.metaKey||b.shiftKey||b.which===2||b.button===2||b.defaultPrevented)){var c;a:{for(c=b.target;c;){if(c.tagName==="A")break a;c=c.parentElement}c=void 0}if(c&&(!c.hasAttribute("target")||c.getAttribute("target")==="_self")&&(c=c.getAttribute("href"))&&!jPd.test(c))if(kPd.test(c)){a.bLocation.hash(c.substring(1));var d;(d=document.getElementById(c.substring(1)))==null||
d.scrollIntoView();b.stopPropagation();b.preventDefault()}else b.preventDefault(),a.bLocation.setUrl(c)}}};L2.prototype.install=function(){document.addEventListener("click",this.linkClickHandler)};L2.prototype.uninstall=function(){document.removeEventListener("click",this.linkClickHandler)};L2.\u0275fac=function(a){return new (a||L2)};L2.\u0275prov=Dc({token:L2,factory:L2.\u0275fac,providedIn:"root"});var lPd=[],mPd=!1,nPd=function(){this.destroyRef=p(Ce);this.hatsService=p(TX);this.iconRegistry=p(Iy);this.session=p(uu);this.appHistory=p(J2);this.routePerformance=p(N1);this.linkClickHandler=p(L2);this.issueLru=p(hPd);this.faviconService=p(bPd);this.imageUrls=p(XV);this.ngZone=p(Rg);this.peoplekitService=p(GW)},oPd=function(a){mPd||(a.iconRegistry._addSvgIconSetConfig("",new VBc(a.imageUrls.ICON_URL,null)),mPd=!0);if(a.session.isInternalSession()){lyd(a.hatsService,"Y4qgAGETM0g6pPHSLo10T83aMF4T").pipe(lf(1),
Tj(a.destroyRef)).subscribe();for(var b=m(lPd),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.hatsTriggerId;a.session.getFlag(c.flagName)&&lyd(a.hatsService,d).pipe(lf(1),Tj(a.destroyRef)).subscribe()}}a.appHistory.install();a.routePerformance.install();a.linkClickHandler.install();a.destroyRef.onDestroy(function(){a.linkClickHandler.uninstall()});iPd(a.issueLru);cPd(a.faviconService);a.ngZone.runOutsideAngular(function(){a.peoplekitService.peopleStore.warmUpCache()})};
nPd.\u0275fac=function(a){return new (a||nPd)};nPd.\u0275prov=Dc({token:nPd,factory:nPd.\u0275fac,providedIn:"root"});var iKb=0;var pPd=TUa("blinkers-activated"),qPd=so("blinkers-activated"),rPd=so("log-xhrs-to-console"),sPd=TUa("log-xhrs-to-console"),tPd=jKb("debug-dom-mutation","var(--c400)"),uPd=jKb("debug-ng-zone","var(--red-400)"),vPd=jKb("debug-xhr","var(--green-500)",1200),wPd=function(a,b,c){b=b===void 0?"#ccc":b;c=c===void 0?400:c;iKb++;var d=156;d+=(iKb-1)*12;return function(e,f){f=f===void 0?b:f;var g,k=(g=document.getElementById(a))!=null?g:gKb(a,d);k.style.transition="opacity "+c+"ms";k.style.backgroundColor=
f;k.style.opacity=e?"1":"0"}}("active-user","var(--yellow-500)"),M2=function(){var a=this;this.activityMonitor=p($P);this.userActivity=p(cQ);this.destroyed$=new qf;this.xhrLog=[];this.publicApi={isEnabled:this.isEnabled.bind(this),enable:this.enable.bind(this),disable:this.disable.bind(this)};this.onAnyClick=function(b){b.target.id==="debug-xhr"&&(b=!rPd(),sPd(b),b?xPd(a):clearInterval(a.loggingInterval))};this.printXhrLog=function(){var b=a.xhrLog.length;if(b>0){var c=Array(b).fill("\u2588").join("");
console.log(window.location.pathname.padEnd(20)+" XHRs: "+c+" "+(b>0?"("+b+")":""))}a.xhrLog=[]};this.isEnabled()&&yPd(this)};M2.prototype.ngOnDestroy=function(){zPd(this)};M2.prototype.isEnabled=function(){return qPd()};M2.prototype.enable=function(){this.isEnabled()||(pPd(!0),yPd(this))};M2.prototype.disable=function(){pPd(!1);zPd(this)};
var yPd=function(a){a.activityMonitor.dom$.pipe(zf(a.destroyed$)).subscribe(function(){return void tPd()});Vgd(a.activityMonitor);a.activityMonitor.cdr$.pipe(zf(a.destroyed$)).subscribe(function(){return void uPd()});a.activityMonitor.xhr$.pipe(zf(a.destroyed$)).subscribe(function(){vPd();var b=a.xhrLog,c=Date.now();b.push(c);c=c===void 0?Date.now():c;var d=d===void 0?5E3:d;for(var e=0;e<b.length&&!(c-b[e]<=d);e++);b.splice(0,e)});a.userActivity.active$.pipe(zf(a.destroyed$)).subscribe(function(b){return void wPd(b)});
document.addEventListener("click",a.onAnyClick);rPd()&&xPd(a)},zPd=function(a){a.destroyed$.next();a.activityMonitor.domObserver.disconnect();document.removeEventListener("click",a.onAnyClick)},xPd=function(a){clearInterval(a.loggingInterval);a.loggingInterval=setInterval(a.printXhrLog,1E3)};M2.\u0275fac=function(a){return new (a||M2)};M2.\u0275prov=Dc({token:M2,factory:M2.\u0275fac,providedIn:"root"});var N2=function(){this.activeSession=p(uu);this.email=this.activeSession.getUserEmail();this.user=xm(this.activeSession.getUserEmail())};N2.\u0275fac=function(a){return new (a||N2)};N2.\u0275prov=Dc({token:N2,factory:N2.\u0275fac,providedIn:"root"});var O2=function(){var a=this;this.activeSession=p(uu);this.appEvents=p(UO);this.ngZone=p(Rg);this.window=p(lR);this.buganizerBlinkers=p(M2);this.currentUser=p(N2);this.routeParamsService=p(WQ);this.userPreferencesManager=p(hR);this.router=p(fF);this.issueFullFridge=p(gQ);this.eventsForIssueFridge=p(NP);this.starredTeamsService=p(VR);this.teamsService=p(OQ);this.fridges=[p(vO),p(AO),p(DO),p(GO),p(LO),p(RO),p(XO),p(qP),p(vP),p(wP),p(NP),p(PP),p(QP),p(lP),p(UP),p(XP),p(gQ),p(iQ),p(mQ),p(AQ),p(BQ),p(CQ),
p(GQ),p(HQ),p(pP),p(KQ),p(RQ),p(SQ),p(TQ),p(VQ)];this.getCurrentIssueId=function(){var b;return(b=a.routeParamsService.routeParams$.value)==null?void 0:b.issueId};this.getCurrentIssue=function(){return a.issueFullFridge.peek(a.getCurrentIssueId())};this.getCurrentIssueEvents=function(){return a.eventsForIssueFridge.peek(a.getCurrentIssueId())};this.getCurrentIssueAsText=function(){var b=a.getCurrentIssue();if(b==null)return"";var c,d=(c=a.eventsForIssueFridge.peek(b.issueId))==null?void 0:c.events;
return vKb(b,d)}};
O2.prototype.install=function(){var a=this;if(this.activeSession.isInternalSession()){var b=this;this.window.bedbug=Object.assign({},this,{ngZone:this.ngZone,appEvents:this.appEvents,router:this.router,requestKeeper:Tgd,activeSession:this.activeSession,teamsService:this.teamsService,blinkers:this.buganizerBlinkers.publicApi,toggleDebugLogging:Rcd("debug-logging"),toggleOptOutExperiments:Rcd("opt-out-experiments"),currentUser:this.currentUser,userPreferencesManager:this.userPreferencesManager,setFlagOverrideForOneDay:aVa,
clearFlagOverride:bVa,clearAllFlagOverrides:YUa,getCurrentIssueAsText:this.getCurrentIssueAsText,printCurrentIssueAsText:function(){var c=a.getCurrentIssueAsText();console.log(c)},get initialSession(){return Wn()},get initialPrefs(){return Wn().userPreferences},get currentPrefs(){return iR(b.userPreferencesManager)},get currentIssue(){return b.getCurrentIssue()},get currentIssueEvents(){return b.getCurrentIssueEvents()},get flags(){return Object.fromEntries(Mcd.map(function(c){return[c,b.activeSession.getFlag(c)]}))},
showFridgeGuts:function(){console.log("\ud83e\uddca Fridge: printing the values for each fridge. \nTo see details on cache age look for methods like debug() and debugTable() on each fridge instance.");console.log();b.fridges.forEach(function(c){var d=c.peekAllRecords();d!=null&&d.length!==0&&console.log(c.recordType,d)})},toggleVerboseFridge:function(){return Ldd=!Ldd},setTrackerOverride:function(c){yKb(String(c),1)},clearTrackerOverride:function(){yKb("")},resetTriageStars:function(){return a.starredTeamsService.reset()},
getTeamExperiments:function(c){return xjd(a.teamsService,c)},updateTeamExperiments:function(c){return yjd(a.teamsService,c)}})}};O2.\u0275fac=function(a){return new (a||O2)};O2.\u0275prov=Dc({token:O2,factory:O2.\u0275fac,providedIn:"root"});var P2=function(){var a=this;this.activatedRoute=p(Lj);this.router=p(fF);this.hideAppChrome=Zg.apply(null,[function(){if(a.router.lastSuccessfulNavigation()!==null){var b,c=(b=a.activatedRoute.snapshot.firstChild)==null?void 0:b.routeConfig;return!(!c||!c.hideAppChrome)}}].concat(q([])))};P2.\u0275fac=function(a){return new (a||P2)};P2.\u0275prov=Dc({token:P2,factory:P2.\u0275fac,providedIn:"root"});var APd=function(a){this.delegate_=a};APd.prototype.getDelegate=function(){return this.delegate_};var BPd=function(a){this.delegate_=a;this.target_=null};Y(BPd,APd);BPd.prototype.getType=function(){return this.getDelegate().xa};var CPd=function(a){this.delegate_=a};Y(CPd,APd);h=CPd.prototype;h.listen=function(a,b,c,d){var e=this;return this.getDelegate().za(a,function(f){return b.call(d||ra,new BPd(f,e))},c)};h.listenOnce=function(){throw Error("kg");};h.unlisten=function(){throw Error("kg");};h.unlistenByKey=function(){throw Error("kg");};h.dispatchEvent=function(){throw Error("kg");};h.removeAllListeners=function(){throw Error("kg");};h.getParentEventTarget=function(){throw Error("kg");};
h.fireListeners=function(){throw Error("kg");};h.getListener=function(){throw Error("kg");};h.hasListener=function(){throw Error("kg");};CPd.prototype[uGc]=!0;var DPd=function(a){this.delegate_=a};Y(DPd,CPd);DPd.prototype.getHeight=function(){return this.getDelegate().pa()};DPd.prototype.setPageTitle=function(){this.getDelegate().pb(void 0)};DPd.prototype.setBackgroundColor=function(a){this.getDelegate().pd(a)};var EPd=function(a,b){this.delegate_=a;this.wrapperConstructor_=b||null};Y(EPd,APd);EPd.prototype.then=function(a,b,c){var d;a&&(d=FPd(this,a));this.getDelegate().aa(d,b,c)};var FPd=function(a,b){var c=a.wrapperConstructor_;return c?function(d){b.call(this,new c(d))}:b};var Q2=function(a){this.delegate_=a||gbar.a;this.gapiPromise_=this.barPromise_=null};Y(Q2,APd);Q2.prototype.getGapi=function(){this.gapiPromise_||(this.gapiPromise_=new EPd(this.getDelegate().bh()));return this.gapiPromise_};Q2.getInstance=function(){var a="instance_";Q2.instance_&&Q2.hasOwnProperty(a)?a=Q2.instance_:(a=new Q2,Q2.instance_=a);return a};
var GPd=function(){return new Promise(function(a){window.gbar||(window.gbar={});if(window.gbar.a)return a(Q2.getInstance());(new Promise(function(b){window.gbar.ap=b})).then(function(){return a(Q2.getInstance())})})};var R2=function(){Z.apply(this,arguments);this.router=p(fF);this.window=p(lR)};Y(R2,Z);R2.\u0275dir=Z.\u0275dir;R2.prototype.start=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,GPd(),2);b=c.yieldResult;return c.return((new Promise(function(d,e){b.barPromise_||(b.barPromise_=new EPd(b.getDelegate().bf(),DPd));b.barPromise_.then(d,e)})).then(function(d){HPd(a,d)}))})};var HPd=function(a,b){a.router.events.pipe(ue(a3a),zf(a.destroyed$)).subscribe(function(){b.getDelegate().pl(a.window.location.href)})};
R2.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(R2)))(b||R2)}}();R2.\u0275prov=Dc({token:R2,factory:R2.\u0275fac,providedIn:"root"});var S2=function(){Z.apply(this,arguments);var a=this;this.paramsService=p(WQ);this.issueFullFridge=p(gQ);this.eventsForIssueFridge=p(NP);this.handlers$=this.paramsService.routeParams$.pipe(nf(mm),yf(function(b){return a.onRouteParamsChanged(b)}));this.init=function(){a.subscriptions.add(a.handlers$.subscribe(function(){}))};this.initOnce=RUa(this.init)};Y(S2,Z);S2.\u0275dir=Z.\u0275dir;
S2.prototype.onRouteParamsChanged=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1){c={trustUncertainMemory:!0};if(!a.issueId)return e.jumpTo(2);d=a.issueId;return z(e,Promise.all([b.issueFullFridge.poke(d,c),b.eventsForIssueFridge.poke(d,c)]),3)}return e.return()})};S2.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(S2)))(b||S2)}}();S2.\u0275prov=Dc({token:S2,factory:S2.\u0275fac,providedIn:"root"});var T2=function(){var a=p(dQ);Z.call(this);var b=this;this.scrollTimingMap=new Map;a.routeChangeSuccess.pipe(zf(this.destroyed$)).subscribe(function(){b.scrollTimingMap.clear()})};Y(T2,Z);T2.\u0275dir=Z.\u0275dir;T2.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)};T2.\u0275fac=function(a){return new (a||T2)};
T2.\u0275prov=Dc({token:T2,factory:T2.\u0275fac,providedIn:"root"});var IPd=["leftSidebar"],JPd=function(){var a=this;this.hideAppChromeHelper=p(P2);this.renderer=p(ci);this.hideAppChrome=this.hideAppChromeHelper.hideAppChrome;ef(function(){switch(a.hideAppChrome()){case !0:a.renderer.addClass(document.body,"hide-topbar");break;case !1:a.renderer.removeClass(document.body,"hide-topbar")}})};JPd.\u0275fac=function(a){return new (a||JPd)};
JPd.\u0275cmp=D({type:JPd,selectors:[["app-root"]],standalone:!1,decls:3,vars:1,consts:[["role","main",1,"full-width","full-height"]],template:function(a,b){a&1&&F(0,zKb,2,0,"div",0)(1,AKb,2,0,"div",0)(2,BKb,0,0);if(a&2){var c;G((c=b.hideAppChrome())===!0?0:c===!1?1:2)}},dependencies:function(){return[QE,U2]},encapsulation:2});
var U2=function(){Z.call(this);var a=this;this.appInitializer=p(nPd);this.appSearchState=p(rT);this.appEvents=p(UO);this.performanceToClearcut=p(Rgd);this.window=p(lR);this.issueComments=p(sS);this.oneGoogleBar=p(R2);this.scrollTiming=p(T2);this.pageTitleUpdaterService=p(o2);this.pageLoadOptimizerService=p(S2);this.bedbugService=p(O2);this.userActivity=p(cQ);this.bLocation=p(bU);this.reloadService=p(s2);this.activeSession=p(uu);this.hotkeys=p(nU);this.paths=p(hW);this.userPrefs=p(hR);this.issuePagination=
p(m2);this.userFeedback=p(MY);this.matDialogService=p(UA);this.renderer=p(ci);this.densityClass="d-comfort";this.announcement=this.dismissedMessageId=null;this.sidebarWidth=220;this.isAnonymous=this.activeSession.isAnonymous();oPd(this.appInitializer);this.bedbugService.install();this.userActivity.install();Sgd(this.performanceToClearcut);this.subscriptions.add(this.appEvents.onClickAppMenuIcon.subscribe(function(){var r;(r=a.leftSidebar)==null||r.toggle()}));this.renderer.addClass(document.body,
this.densityClass);this.userPrefs.themePreferences$.pipe(zf(this.destroyed$)).subscribe(function(r){r=HKb(r.density);r!==a.densityClass&&(a.renderer.addClass(document.body,r),a.renderer.removeClass(document.body,a.densityClass),a.densityClass=r)});this.subscriptions.add(Kqd(this.appSearchState,function(r){a.doSearch(r)}));var b=[{keys:["/","F3"],displayAs:"/ or F3",description:"Search",onPress:function(){var r=document.querySelector(".search-box-container .search-box");r==null||r.focus();r==null||
r.select()}},{keys:[Vr("2"),B9a()],displayAs:"@ or Alt+Shift+f",description:"Send feedback",onPress:function(){a.startFeedback()}},{keys:["c"],displayAs:"c",description:"Create issue",onPress:function(){a.bLocation.setUrl(c)}}];this.activeSession.isInternalSession()&&b.push({keys:[Wr("g","p")],displayAs:"g then p",description:"Go to your preferred homepage",onPress:function(){a.bLocation.setUrl("/")}},{keys:[Wr("g","h")],displayAs:"g then h",description:'Go to "Home"',onPress:function(){a.bLocation.setUrl(a.paths.home())}});
var c=this.paths.createIssue(),d=this.paths.listIssues({q:Eqd(this.activeSession.getUserEmail())}),e=this.paths.listIssues({q:"cc:"+this.activeSession.getUserEmail()}),f=this.paths.listIssues({q:Gqd(this.activeSession.getUserEmail())}),g=this.paths.listIssues({q:"reporter:"+this.activeSession.getUserEmail()}),k=this.paths.listIssues({q:this.appSearchState.getStarred()}),l=this.paths.listIssues({q:"vote:true"});b.push({keys:[Wr("g","a")],displayAs:"g then a",description:'Go to "Assigned to me"',onPress:function(){a.bLocation.setUrl(d)}},
{keys:[Wr("g","c")],displayAs:"g then c",description:'Go to "CC\'d to me"',onPress:function(){a.bLocation.setUrl(e)}},{keys:[Wr("g","r")],displayAs:"g then r",description:'Go to "Reported by me"',onPress:function(){a.bLocation.setUrl(g)}},{keys:[Wr("g","s")],displayAs:"g then s",description:'Go to "Starred by me"',onPress:function(){a.bLocation.setUrl(k)}},{keys:[Wr("g","1")],displayAs:"g then 1",description:'Go to "Upvoted by me"',onPress:function(){a.bLocation.setUrl(l)}},{keys:[Wr("g","v")],displayAs:"g then v",
description:'Go to "To be verified"',onPress:function(){a.bLocation.setUrl(f)}},{keys:[],displayAs:"Ctrl+Enter",description:"Submit entered text (while focused)",onPress:function(){}},{keys:[],displayAs:"Alt+Right",description:"Opens hovercard (if available)",onPress:function(){}},{keys:["?",A9a("F1")],displayAs:"? or Ctrl+F1",description:"Display the keyboard shortcuts pop-up",onPress:function(){a.matDialogService.open(i2,{minWidth:512})}});this.subscriptions.add(oU(this.hotkeys,{title:"General",
hotkeys:b}));this.announcement=this.activeSession.getAnnouncement();this.userPrefs.preferences$.pipe(lf(1),zf(this.destroyed$)).subscribe(function(r){a.dismissedMessageId=r.bannerMessageId||"";var w;a.sidebarWidth=((w=r.layoutPreferences)==null?void 0:w.leftSidebarWidth)||220});this.oneGoogleBar.start();v2a()&&(Dgd!=null&&Dgd.disconnect(),Dgd=new F2a.PerformanceObserver(K2a),Dgd.observe({entryTypes:["measure"]}));setTimeout(xIb,6E4);this.scrollTiming.start();this.pageTitleUpdaterService.initOnce();
this.pageLoadOptimizerService.initOnce();this.window.emergencyBugjugglerWorkaround={session:this.activeSession,issueComments:this.issueComments}};Y(U2,Z);U2.\u0275dir=Z.\u0275dir;var FKb=function(a,b){var c;return y(function(d){if(d.nextAddress==1){if(b===a.sidebarWidth)return d.return();a.sidebarWidth=b;return z(d,fe(a.userPrefs.layoutPreferences$),2)}c=d.yieldResult;return z(d,fe(a.userPrefs.save({layoutPreferences:Object.assign({},c,{leftSidebarWidth:b})})),0)})};
U2.prototype.doSearch=function(a){a=this.paths.listIssues({q:a});var b=Uud(this.paths,a);iOd(this.issuePagination);b&&COd(this.reloadService);this.bLocation.setUrl(a)};var CKb=function(a){a.announcement!==null&&(a.dismissedMessageId=a.announcement.messageId,a.userPrefs.save({bannerMessageId:a.dismissedMessageId}).pipe(lf(1),zf(a.destroyed$)).subscribe())};U2.prototype.startFeedback=function(){this.userFeedback.startFeedback()};U2.\u0275fac=function(a){return new (a||U2)};
U2.\u0275cmp=D({type:U2,selectors:[["app-root-body"]],viewQuery:function(a,b){a&1&&hg(IPd,5);if(a&2){var c;lg(c=mg())&&(b.leftSidebar=c.first)}},standalone:!1,features:[Ef],decls:10,vars:2,consts:[["leftSidebar",""],[1,"bv2-announce-bar"],[1,"bv2-content","flex-kids-x","border-top"],["id","main-app-nav",3,"size"],["id","skiplink-navigation-target","role","main",1,"flex","pos-rel"],"aria-live polite role status aria-atomic true".split(" "),[3,"innerHtml"],["role","button","tabindex","0",1,"announce-dismiss"],
["role","button","tabindex","0",1,"announce-dismiss",3,"keydown.enter","keydown.space","click"],["id","main-app-nav",3,"widthChanged","size"]],template:function(a,b){a&1&&(M(0,"b-hiring-banner")(1,"b-terms-of-service"),F(2,EKb,4,2,"div",1),M(3,"b-sso-expired-callout-outlet"),K(4,"div",2),F(5,GKb,3,1,"b-resizable-sidebar",3),K(6,"div",4),M(7,"router-outlet"),L()(),M(8,"b-footer")(9,"bug-screensaver-manager"));if(a&2){B(2);var c;a=b.announcement;a=a===void 0?b.announcement:a;if((c=a)!=null&&c.message){var d;
c=((d=a.tags)==null?void 0:d.length)>0||!b.activeSession.getFlag("canSeeAnnouncementBanner")?!1:a.dismissible?b.dismissedMessageId==null?!1:a.messageId!==b.dismissedMessageId:!0}else c=!1;G(c?2:-1);B(3);G(b.isAnonymous?-1:5)}},dependencies:function(){return[QE,yOd,zOd,XNd,uU,C2,H2,WNd]},encapsulation:2});var KPd=function(){};KPd.\u0275fac=function(a){return new (a||KPd)};KPd.\u0275mod=$e({type:KPd});KPd.\u0275inj=Fc({imports:[WO,q2,FU,AOd,mB,h2,j2,xU,F2,I2]});var V2=function(){};V2.\u0275fac=function(a){return new (a||V2)};V2.\u0275mod=$e({type:V2});V2.\u0275inj=Fc({imports:[WO]});var LPd=function(){};LPd.\u0275fac=function(a){return new (a||LPd)};LPd.\u0275mod=$e({type:LPd});LPd.\u0275inj=Fc({imports:[WO,mB,TJ,rK,NU,V2]});var W2=function(){};W2.\u0275fac=function(a){return new (a||W2)};W2.\u0275mod=$e({type:W2});W2.\u0275inj=Fc({imports:[nV,wV,mB,WO]});var X2=function(){};X2.\u0275fac=function(a){return new (a||X2)};X2.\u0275mod=$e({type:X2});X2.\u0275inj=Fc({imports:[WO,WJ,iK,pK,GU,mB,HE,lL,DE,W2]});var MPd=function(){};MPd.\u0275fac=function(a){return new (a||MPd)};MPd.\u0275mod=$e({type:MPd});MPd.\u0275inj=Fc({imports:[by]});var NPd=function(){};NPd.\u0275fac=function(a){return new (a||NPd)};NPd.\u0275mod=$e({type:NPd});NPd.\u0275inj=Fc({imports:[by,SI,cHd]});var Y2=function(){};Y2.\u0275fac=function(a){return new (a||Y2)};Y2.\u0275mod=$e({type:Y2});Y2.\u0275inj=Fc({imports:[by,Ly,SI,DE,MPd,NPd,EX]});var OPd=function(){};OPd.\u0275fac=function(a){return new (a||OPd)};OPd.\u0275mod=$e({type:OPd});OPd.\u0275inj=Fc({imports:[WO,TJ,Y2,X2,DE,W2,mB,wK]});var PPd=function(){};PPd.\u0275fac=function(a){return new (a||PPd)};PPd.\u0275mod=$e({type:PPd});PPd.\u0275inj=Fc({imports:[WO,wV,lL,mB,TJ,iU,dX,eU,hV]});var QPd=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"]]),RPd=new Map([["ENABLED","Enabled"],["DISABLED","Disabled"]]),KKb=new Map([["BUGANIZER_DEFAULT","Default (10 years)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Indefinite"]]),LKb=new Map([["BUGANIZER_DEFAULT",
"Default (60 days)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Match Issue Retention"]]),SPd=function(){this.$log=p(nO);this.activeSession=p(uu);this.sessionIsInternal=this.activeSession.isInternalSession()};SPd.\u0275fac=function(a){return new (a||SPd)};SPd.\u0275prov=Dc({token:SPd,factory:SPd.\u0275fac,providedIn:"root"});var NKb=new Map([["SLO_SOURCE_UNSPECIFIED","--"],["USER","User"],["BUGSCOPE","Bugscope"]]);var TPd=new dd("GM2_PAGINATOR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var UPd=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};UPd.\u0275fac=function(a){return new (a||UPd)(Ve(TPd))};UPd.\u0275dir=af({type:UPd,selectors:[["mat-paginator"]],hostAttrs:[1,"gmat-mdc-paginator"],standalone:!1});var VPd=function(){this.changes=new qf;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(c==0||b==0)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}};VPd.\u0275fac=function(a){return new (a||VPd)};VPd.\u0275prov=Dc({token:VPd,factory:VPd.\u0275fac,providedIn:"root"});var WPd=new dd("MAT_PAGINATOR_DEFAULT_OPTIONS"),Z2=function(){var a=this;this._intl=p(VPd);this._changeDetectorRef=p(Cx);this._pageSizeLabelId=p(ai).getId("mat-paginator-page-size-label-");this._isInitialized=!1;this._initializedStream=new uf(1);this._length=this._pageIndex=0;this._pageSizeOptions=[];this.showFirstLastButtons=this.hidePageSize=!1;this.selectConfig={};this.disabled=!1;this.page=new Ti;this.initialized=this._initializedStream;var b=this._intl,c=p(WPd,{optional:!0});this._intlChanges=
b.changes.subscribe(function(){return a._changeDetectorRef.markForCheck()});if(c){var d=c.pageSize,e=c.pageSizeOptions,f=c.hidePageSize,g=c.showFirstLastButtons;d!=null&&(this._pageSize=d);e!=null&&(this._pageSizeOptions=e);f!=null&&(this.hidePageSize=f);g!=null&&(this.showFirstLastButtons=g)}this._formFieldAppearance=(c==null?void 0:c.formFieldAppearance)||"outline"};h=Z2.prototype;h.ngOnInit=function(){this._isInitialized=!0;this._updateDisplayedPageSizeOptions();this._initializedStream.next()};
h.ngOnDestroy=function(){this._initializedStream.complete();this._intlChanges.unsubscribe()};h.nextPage=function(){this.hasNextPage()&&this._navigate(this.pageIndex+1)};h.hasPreviousPage=function(){return this.pageIndex>=1&&this.pageSize!=0};h.hasNextPage=function(){return this.pageIndex<(this.pageSize?Math.ceil(this.length/this.pageSize):0)-1&&this.pageSize!=0};h._changePageSize=function(a){var b=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/a)||0;this.pageSize=a;this._emitPageEvent(b)};
h._nextButtonsDisabled=function(){return this.disabled||!this.hasNextPage()};h._previousButtonsDisabled=function(){return this.disabled||!this.hasPreviousPage()};
h._updateDisplayedPageSizeOptions=function(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(a,b){return a-b}),this._changeDetectorRef.markForCheck())};
h._emitPageEvent=function(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})};h._navigate=function(a){var b=this.pageIndex;a!==b&&(this.pageIndex=a,this._emitPageEvent(b))};h._buttonClicked=function(a,b){b||this._navigate(a)};
da.Object.defineProperties(Z2.prototype,{pageIndex:{configurable:!0,enumerable:!0,get:function(){return this._pageIndex},set:function(a){this._pageIndex=Math.max(a||0,0);this._changeDetectorRef.markForCheck()}},length:{configurable:!0,enumerable:!0,get:function(){return this._length},set:function(a){this._length=a||0;this._changeDetectorRef.markForCheck()}},pageSize:{configurable:!0,enumerable:!0,get:function(){return this._pageSize},set:function(a){this._pageSize=Math.max(a||0,0);this._updateDisplayedPageSizeOptions()}},
pageSizeOptions:{configurable:!0,enumerable:!0,get:function(){return this._pageSizeOptions},set:function(a){this._pageSizeOptions=(a||[]).map(function(b){return ah(b,0)});this._updateDisplayedPageSizeOptions()}}});Z2.\u0275fac=function(a){return new (a||Z2)};
Z2.\u0275cmp=D({type:Z2,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ah],length:[2,"length","length",ah],pageSize:[2,"pageSize","pageSize",ah],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",$g],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",$g],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",$g]},outputs:{page:"page"},exportAs:["matPaginator"],
decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button",
"matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],
["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass",
"disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled",
"disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2),F(2,TKb,5,4,"div",3),K(3,"div",4)(4,"div",5),Q(5),L(),F(6,UKb,3,5,"button",6),K(7,"button",7),N("click",function(){return b._buttonClicked(b.pageIndex-1,b._previousButtonsDisabled())}),yd(),K(8,"svg",8),M(9,"path",9),L()(),zd(),K(10,"button",10),N("click",function(){return b._buttonClicked(b.pageIndex+1,b._nextButtonsDisabled())}),yd(),K(11,"svg",8),M(12,
"path",11),L()(),F(13,VKb,3,5,"button",12),L()()());a&2&&(B(2),G(b.hidePageSize?-1:2),B(3),S(" ",b._intl.getRangeLabel(b.pageIndex,b.pageSize,b.length)," "),B(),G(b.showFirstLastButtons?6:-1),B(),I("matTooltip",b._intl.previousPageLabel)("matTooltipDisabled",b._previousButtonsDisabled())("disabled",b._previousButtonsDisabled())("tabindex",b._previousButtonsDisabled()?-1:null),If("aria-label",b._intl.previousPageLabel),B(3),I("matTooltip",b._intl.nextPageLabel)("matTooltipDisabled",b._nextButtonsDisabled())("disabled",
b._nextButtonsDisabled())("tabindex",b._nextButtonsDisabled()?-1:null),If("aria-label",b._intl.nextPageLabel),B(3),G(b.showFirstLastButtons?13:-1))},dependencies:[SD,TH,hA,iB,nA],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}\n"],
encapsulation:2,changeDetection:0});var XPd=function(){this.paths=p(hW);this.ROUTES=qs;this.children=[];this.onVisit=new aQ;this.pageSize=25;this.pageSizeOptions=[10,25,100];this.childrenOnPage=[]};XPd.prototype.ngOnInit=function(){this.childrenOnPage=this.children.slice(0,this.pageSize)};XPd.\u0275fac=function(a){return new (a||XPd)};
XPd.\u0275cmp=D({type:XPd,selectors:[["b-component-children-list"]],inputs:{children:"children"},outputs:{onVisit:"onVisit"},standalone:!1,decls:4,vars:1,consts:[["card","onedevHovercard"],[3,"length","pageSize","pageSizeOptions"],[1,"component-children"],[3,"page","length","pageSize","pageSizeOptions"],[1,"keep-underline","keep-focus-ring",3,"click","onedevHovercardTrigger","href"],[3,"componentId"]],template:function(a,b){a&1&&(F(0,WKb,1,3,"mat-paginator",1),K(1,"ul",2),Nf(2,XKb,6,4,"li",null,Mf),
L());a&2&&(G(b.children.length>b.pageSize?0:-1),B(2),Of(b.childrenOnPage))},dependencies:[KK,SK,SV,UPd,Z2],encapsulation:2});var YPd=function(){};YPd.\u0275fac=function(a){return new (a||YPd)};YPd.\u0275mod=$e({type:YPd});YPd.\u0275inj=Fc({imports:[jB,VH,oA,Z2]});var ZPd=function(){};ZPd.\u0275fac=function(a){return new (a||ZPd)};ZPd.\u0275mod=$e({type:ZPd});ZPd.\u0275inj=Fc({providers:[$rd],imports:[YPd]});var a3=function(){};a3.\u0275fac=function(a){return new (a||a3)};a3.\u0275mod=$e({type:a3});a3.\u0275inj=Fc({imports:[WO,TK,S0,ZPd]});var $Pd=function(){this.shouldShowCopyIssueShortLinks=!1;this.shortLinkPrefix="b/";this.onClickCopyIssueIds=new aQ;this.onClickCopyIssueShortLinks=new aQ;this.onClickCopyAsIssueSearch=new aQ};$Pd.\u0275fac=function(a){return new (a||$Pd)};
$Pd.\u0275cmp=D({type:$Pd,selectors:[["b-copy-issue-id-button"]],inputs:{shouldShowCopyIssueShortLinks:"shouldShowCopyIssueShortLinks",shortLinkPrefix:"shortLinkPrefix"},outputs:{onClickCopyIssueIds:"onClickCopyIssueIds",onClickCopyIssueShortLinks:"onClickCopyIssueShortLinks",onClickCopyAsIssueSearch:"onClickCopyAsIssueSearch"},standalone:!1,decls:10,vars:2,consts:[["splitMenu","matMenu"],["type","button","mat-button","","aria-label","Copy selected issue IDs",1,"medium","icon-only",3,"click"],["name",
"copy","size","small"],["type","button","mat-button","","aria-label","More copy issue ID options",1,"medium","compact",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"]],template:function(a,b){if(a&1){var c=t();K(0,"b-button-group")(1,"button",1);N("click",function(){u(c);return v(b.onClickCopyIssueIds.emit())});M(2,"b-icon",2);L();K(3,"button",3);M(4,"b-icon",4);L();K(5,"mat-menu",null,0);F(7,YKb,2,
1,"button",5);K(8,"button",6);N("click",function(){u(c);return v(b.onClickCopyAsIssueSearch.emit())});Q(9," Copy as issue search ");L()()()}a&2&&(a=qg(6),B(3),I("matMenuTriggerFor",a),B(4),G(b.shouldShowCopyIssueShortLinks?7:-1))},dependencies:[VJ,fH,dH,iH,kB,gB,QNd,sT],encapsulation:2,changeDetection:0});THa(VHa(UHa(function(a){this._elementRef=a})));q(["disabled","disableRipple","color","tabIndex"]);var aQd=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var bQd=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new qf;this._afterOpened=new qf;this._onAction=new qf;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};h=bQd.prototype;h.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
h.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss());clearTimeout(this._durationTimeoutId)};h._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,2147483647))};h._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())};
h._finishDismiss=function(){this._overlayRef.dispose();this._onAction.closed||this._onAction.complete();this._afterDismissed.next({dismissedByAction:this._dismissedByAction});this._afterDismissed.complete();this._dismissedByAction=!1};h.afterDismissed=function(){return this._afterDismissed};h.afterOpened=function(){return this.containerInstance._onEnter};h.onAction=function(){return this._onAction};var cQd=Zsa("state",[Xi("void, hidden",Vi({transform:"scale(0.8)",opacity:0})),Xi("visible",Vi({transform:"scale(1)",opacity:1})),Yi("* => visible",Ui("150ms cubic-bezier(0, 0, 0.2, 1)")),Yi("* => void, * => hidden",Ui("75ms cubic-bezier(0.4, 0.0, 1, 1)",Vi({opacity:0})))]);var dQd=0,b3=function(a,b,c,d,e){this._isDisposed=!1;this._ngZone=a;this._elementRef=b;this._changeDetectorRef=c;this._platform=d;this.snackBarConfig=e;this._document=p(Rh);this._trackedModals=new Set;this._announceDelay=150;this._destroyed=!1;this._onAnnounce=new qf;this._onExit=new qf;this._onEnter=new qf;this._animationState="void";this._liveElementId="mat-snack-bar-container-live-"+dQd++;this._live=e.politeness!=="assertive"||e.announcementMessage?e.politeness==="off"?"off":"polite":"assertive";
this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))};Y(b3,Pz);h=b3.prototype;h.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._afterPortalAttached();return a};h.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._afterPortalAttached();return a};
h.onAnimationEnd=function(a){var b=a.fromState;a=a.toState;(a==="void"&&b!=="void"||a==="hidden")&&this._completeExit();if(a==="visible"){var c=this._onEnter;this._ngZone.run(function(){c.next();c.complete()})}};h.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())};
h.exit=function(){var a=this;this._ngZone.run(function(){a._animationState="hidden";a._elementRef.nativeElement.setAttribute("mat-exit","");clearTimeout(a._announceTimeoutId)});return this._onExit};h.ngOnDestroy=function(){this._destroyed=!0;this._clearFromModals();this._completeExit()};h._completeExit=function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe(lf(1)).subscribe(function(){a._ngZone.run(function(){a._onExit.next();a._onExit.complete()})})};
h._afterPortalAttached=function(){var a=this._elementRef.nativeElement,b=this.snackBarConfig.panelClass;b&&(Array.isArray(b)?b.forEach(function(c){return a.classList.add(c)}):a.classList.add(b));this._exposeToModals()};
h._exposeToModals=function(){for(var a=this._liveElementId,b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");this._trackedModals.add(d);e?e.indexOf(a)===-1&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};
h._clearFromModals=function(){var a=this;this._trackedModals.forEach(function(b){var c=b.getAttribute("aria-owns");c&&(c=c.replace(a._liveElementId,"").trim(),c.length>0?b.setAttribute("aria-owns",c):b.removeAttribute("aria-owns"))});this._trackedModals.clear()};h._assertNotAttached=function(){};
h._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;(e=d)==null||
e.focus();a._onAnnounce.next();a._onAnnounce.complete()}},a._announceDelay)})};b3.\u0275fac=function(a){return new (a||b3)(Ve(Rg),Ve(Hd),Ve(Cx),Ve(Vh),Ve(aQd))};b3.\u0275dir=af({type:b3,viewQuery:function(a,b){a&1&&hg(Rz,7);if(a&2){var c;lg(c=mg())&&(b._portalOutlet=c.first)}},standalone:!1,features:[Ef]});var c3=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};h=c3.prototype;h.openFromComponent=function(a,b){return this._attach(a,b)};h.open=function(a,b,c){b=b===void 0?"":b;var d=Object.assign({},this._defaultConfig,c);d.data={message:a,action:b};d.announcementMessage===a&&(d.announcementMessage=void 0);return this.openFromComponent(this.simpleSnackBarComponent,d)};
h.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};h.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};h._attachSnackBarContainer=function(a,b){var c=Yg({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:aQd,useValue:b}]});a=a.attach(new Nz(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
h._attach=function(a,b){var c=this,d=Object.assign({},new aQd,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new bQd(b,e);if(a instanceof dg)f.instance=b.attachTemplatePortal(new Oz(a,null,{$implicit:d.data,snackBarRef:f}));else{var g=this._createInjector(d,f);a=b.attachComponentPortal(new Nz(a,void 0,g));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(zf(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};
h._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&&b.duration>0&&a.afterOpened().subscribe(function(){return a._dismissAfter(b.duration)})};
h._createOverlay=function(a){var b=new di;b.direction=a.direction;var c=this._overlay.position().global(),d=a.direction==="rtl";d=a.horizontalPosition==="left"||a.horizontalPosition==="start"&&!d||a.horizontalPosition==="end"&&d;var e=!d&&a.horizontalPosition!=="center";d?c.left("0"):e?c.right("0"):Jz(c);a.verticalPosition==="top"?c.top("0"):c.bottom("0");b.positionStrategy=c;return this._overlay.create(b)};
h._createInjector=function(a,b){return Yg({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:bQd,useValue:b},{provide:nB,useValue:a.data}]})};da.Object.defineProperties(c3.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}}});
c3.\u0275fac=function(a){return new (a||c3)(Xc(Tz),Xc(dz),Xc(ye),Xc(Yy),Xc(c3,12),Xc(LFc))};c3.\u0275prov=Dc({token:c3,factory:c3.\u0275fac});var e3=function(a,b){this.snackBarRef=a;this.data=b};e3.prototype.action=function(){this.snackBarRef.dismissWithAction()};da.Object.defineProperties(e3.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});e3.\u0275fac=function(a){return new (a||e3)(Ve(bQd),Ve(nB))};
e3.\u0275cmp=D({type:e3,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],hostVars:1,hostBindings:function(a){a&2&&If("mat-id-collision",null)},standalone:!1,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&&(K(0,"span",0),Q(1),L(),E(2,ZKb,3,1,"div",1));a&2&&(B(),yg(b.data.message),B(),I("ngIf",b.hasAction))},dependencies:[Nx,GI],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 f3=function(){b3.apply(this,arguments)};Y(f3,b3);f3.\u0275dir=b3.\u0275dir;f3.prototype._afterPortalAttached=function(){b3.prototype._afterPortalAttached.call(this);this.snackBarConfig.horizontalPosition==="center"&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center");this.snackBarConfig.verticalPosition==="top"&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")};f3.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(f3)))(b||f3)}}();
f3.\u0275cmp=D({type:f3,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(a,b){a&1&&lna("@state.done",function(c){return b.onAnimationEnd(c)});a&2&&(Ema("@state",b._animationState),If("mat-id-collision",null))},standalone:!1,features:[Ef],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,b){a&1&&(K(0,"div",0),E(1,$Kb,0,0,"ng-template",1),L(),M(2,"div"));a&2&&(B(2),If("aria-live",b._live)("role",b._role)("id",
b._liveElementId))},dependencies:[Rz],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}@media(forced-colors: 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:[cQd]}});var g3=function(){};g3.\u0275fac=function(a){return new (a||g3)};g3.\u0275mod=$e({type:g3});g3.\u0275inj=Fc({imports:[Wz,Sz,by,SI,Ky]});var h3=function(a,b,c,d,e,f){c3.call(this,a,b,c,d,e,f);this.simpleSnackBarComponent=e3;this.snackBarContainerComponent=f3;this.handsetCssClass="mat-snack-bar-handset"};Y(h3,c3);h3.\u0275fac=function(a){return new (a||h3)(Xc(Tz),Xc(dz),Xc(ye),Xc(Yy),Xc(h3,12),Xc(LFc))};h3.\u0275prov=Dc({token:h3,factory:h3.\u0275fac,providedIn:g3});var eQd={duration:1E3},fQd=new dd("xap-clipboard-snackbar-options"),gQd=function(a,b,c){this.clipboard=a;this.snackBar=b;this.snackBarConfig=c;this.textJob=""},hQd=function(a){var b,c,d,e;return y(function(f){if(f.nextAddress==1){b=Object.assign({},eQd,a.snackBarConfig);c=a.text;if(!a.clipboard.copy(c))return a.snackBar.open("Failed to copy.",void 0,b),f.jumpTo(0);if(typeof a.textJob==="string"||(d=a.textJob)==null||!d.richText)return f.jumpTo(3);e=a.textJob.richText instanceof Function?a.textJob.richText():
a.textJob.richText;if(typeof ClipboardItem!=="undefined"){var g=new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([c],{type:"text/plain"})});g=navigator.clipboard.write([g])}else g=Promise.resolve();return z(f,g,3)}a.snackBar.open("Copied to clipboard.",void 0,b);ae(f)})};
da.Object.defineProperties(gQd.prototype,{text:{configurable:!0,enumerable:!0,get:function(){return typeof this.textJob==="object"?this.textJob.plainText instanceof Function?this.textJob.plainText():this.textJob.plainText:this.textJob}}});gQd.\u0275fac=function(a){return new (a||gQd)(Ve(oR),Ve(h3),Ve(fQd,8))};gQd.\u0275dir=af({type:gQd,selectors:[["","xapCopyToClipboard",""]],hostBindings:function(a,b){a&1&&N("click",function(){return hQd(b)})},inputs:{textJob:[0,"xapCopyToClipboard","textJob"]}});var iQd=function(){};iQd.prototype.getAriaLabel=function(){return this.ariaLabel?this.ariaLabel:this.ariaLabelledBy||this.ariaDescribedBy?null:"Copy content to clipboard"};iQd.\u0275fac=function(a){return new (a||iQd)};
iQd.\u0275cmp=D({type:iQd,selectors:[["xap-copy-button"]],hostAttrs:[1,"xap-copy-button"],hostVars:2,hostBindings:function(a,b){a&2&&wg("xap-copy-button-unthemed",!b.color)},inputs:{copyText:"copyText",disabled:"disabled",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledBy:[0,"aria-labelledby","ariaLabelledBy"],ariaDescribedBy:[0,"aria-describedby","ariaDescribedBy"],tabIndex:[0,"tabindex","tabIndex"],color:"color"},decls:3,vars:7,consts:[["mat-icon-button","","type","button",3,"xapCopyToClipboard",
"disabled","color"],[1,"xap-clipboard-icon"]],template:function(a,b){a&1&&(K(0,"button",0)(1,"mat-icon",1),Q(2," content_copy "),L()());a&2&&(I("xapCopyToClipboard",b.copyText)("disabled",b.disabled)("color",b.color),If("tabindex",b.tabIndex)("aria-label",b.getAriaLabel())("aria-labelledby",b.ariaLabelledBy)("aria-describedby",b.ariaDescribedBy))},dependencies:[by,SI,GI,Ly,Jy,g3,gQd],encapsulation:2,changeDetection:0});var jQd=function(){};jQd.\u0275fac=function(a){return new (a||jQd)};jQd.\u0275mod=$e({type:jQd});jQd.\u0275inj=Fc({imports:[iQd]});var i3=function(){};i3.\u0275fac=function(a){return new (a||i3)};i3.\u0275mod=$e({type:i3});i3.\u0275inj=Fc({imports:[WO,WJ,mB,d2,GU,jQd]});var kQd=function(){this.clipboard=p(oR);this.analytics=p(eQ);this.butterBar=p(UN);this.window=p(lR);this.activeSession=p(uu);this.shortLinkPrefix=xs(this.activeSession)?"b/":"b-qa/"},BMb=function(a,b){a.clipboard.copy(b.join(", "));Rr(a.butterBar,"Issue IDs copied.",2E3);a.analytics.trackEvent("listIssues","copyIssueId","IDs")},CMb=function(a,b){a.clipboard.copy(b.map(function(c){return a.shortLinkPrefix+c}).join(", "));Rr(a.butterBar,"'"+a.shortLinkPrefix+"' links copied.",2E3);a.analytics.trackEvent("listIssues",
"copyIssueId","b/ links")},DMb=function(a,b){b=qs.listIssues.makeHref({q:"id:("+b.join("|")+")"});a.clipboard.copy(a.window.location.origin+b);Rr(a.butterBar,"Issue search link copied.",2E3);a.analytics.trackEvent("listIssues","copyIssueId","Issue search link")};kQd.\u0275fac=function(a){return new (a||kQd)};kQd.\u0275prov=Dc({token:kQd,factory:kQd.\u0275fac,providedIn:"root"});var j3=function(){};j3.\u0275fac=function(a){return new (a||j3)};j3.\u0275mod=$e({type:j3});j3.\u0275inj=Fc({imports:[WO,TK,S0]});var lQd=function(){};lQd.\u0275fac=function(a){return new (a||lQd)};lQd.\u0275mod=$e({type:lQd});lQd.\u0275inj=Fc({imports:[WO,DE,mB,HU,lL,TJ,fX]});var k3=function(){this.componentActions=p(VV);this.errorHandler=p(pO);this.cdr=p(bQ)};k3.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;c.length===0&&(a.noChildren=!0);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var l3=function(a,b){a.selectedId&&mQd(a.selectedId);a.selectedId=b;if(a=nQd(a.selectedId))a.focus(),a.setAttribute("aria-selected","true")},oQd=function(a){if(!a.selectedId)return null;var b;return(b=a.components.find(function(c){return c.componentId===a.selectedId}))!=null?b:null},pQd=function(a){return a.selectedId?a.components.findIndex(function(b){return b.componentId===a.selectedId}):-1},mQd=function(a){a&&(a=nQd(a))&&a.setAttribute("aria-selected","false")},nQd=function(a){return a?document.getElementById("component-"+
a):null},qQd=function(a){for(a=a.target;;){if(!a)return!1;if(a.tagName==="A")return!0;a=a.parentNode}};k3.\u0275fac=function(a){return new (a||k3)};k3.\u0275cmp=D({type:k3,selectors:[["component-subtree-list-base"]],standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2});var dLb=function(a){return{q:a}},m3=function(){k3.apply(this,arguments);this.paths=p(hW);this.ROUTES=qs;this.includeArchived=!1;this.childClosed=new aQ;this.selectedId=null};Y(m3,k3);m3.prototype.ngOnInit=function(){};m3.prototype.ngOnDestroy=function(){this.parentComponent.focusOnChildren=void 0};m3.prototype.ngOnChanges=function(a){a.components&&rQd(this)};m3.prototype.onSubtreeChildClosed=function(a){this.selectedId=a;l3(this,a);this.rootController.selectionChanged(this,a)};
var rQd=function(a){a.parentComponent.focusOnChildren||(a.parentComponent.focusOnChildren=function(){a.selectNext()})};h=m3.prototype;
h.selectNext=function(){if(this.components)if(this.selectedId){var a=pQd(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(mQd(this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(l3(this,this.components[a+1].componentId),this.rootController.selectionChanged(this,this.selectedId))}else l3(this,this.components[0].componentId),this.rootController.selectionChanged(this,this.selectedId)};
h.selectPrevious=function(){var a=pQd(this);a==0?(this.selectedId=null,this.childClosed.emit(this.parentComponent.componentId)):(l3(this,this.components[a-1].componentId),this.rootController.selectionChanged(this,this.selectedId))};h.closeSubtree=function(){if(this.selectedId){var a=oQd(this);a.showChildren?a.showChildren=!1:(this.selectedId=null,this.parentComponent.showChildren=!1,this.childClosed.emit(this.parentComponent.componentId));this.cdr.detectChanges()}};
h.showChildrenForSelectedId=function(){var a=oQd(this);a&&this.showChildren(a)};h.setSelected=function(a,b){qQd(b)||(l3(this,a),this.rootController.selectionChanged(this,a),b.preventDefault(),b.stopPropagation())};h.toggleChildrenForSelectedId=function(){var a=oQd(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};m3.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(m3)))(b||m3)}}();
m3.\u0275cmp=D({type:m3,selectors:[["component-subtree-list"]],inputs:{parentComponent:"parentComponent",rootController:"rootController",components:"components",includeArchived:"includeArchived"},outputs:{childClosed:"childClosed"},standalone:!1,features:[Gg([bQ]),Ef,jx],decls:3,vars:0,consts:[[1,"components-list"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id"],["tabindex","-1","role","treeitem","aria-selected","false",3,"click","id"],[1,"component-row"],[1,"selected-indicator"],
[1,"component-tree-toggle"],["matTooltip","Hide child components"],["matTooltip","Show child components"],[1,"component-info"],[1,"component-name",3,"href"],[3,"href"],[3,"accessLevel"],[3,"trackerId"],[1,"component-description"],[1,"component-buttons"],["mat-raised-button","","color","primary",3,"href"],["role","group","aria-expanded","true",1,"child-component-list"],["matTooltip","Hide child components",3,"click"],["svgIcon","arrow-dropdown"],["matTooltip","Show child components",3,"click"],["svgIcon",
"arrow-dropdown",2,"transform","rotate(-90deg)"],[1,"component-no-children"],[1,"bv2-view-loading"],[3,"components","parentComponent","rootController","includeArchived"],[3,"childClosed","components","parentComponent","rootController","includeArchived"]],template:function(a,b){a&1&&(K(0,"ol",0),Nf(1,kLb,19,11,"li",1,Mf),L());a&2&&(B(),Of(b.components))},dependencies:[Jy,vK,nA,kB,gB,cU,RV,ZV,m3],encapsulation:2});var oLb=function(a){return{q:a}},n3=function(){k3.call(this);this.paths=p(hW);this.hotkeys=p(nU);this.elementRef=p(Hd);this.ROUTES=qs;this.scrollArea=this.elementRef.nativeElement.parentElement;this.selectedId=null;this.includeArchived=!1;this.init=new aQ;this.subscriptions=new Pd;this.destroyed$=new uf(1);this.registerKeys()};Y(n3,k3);
n3.prototype.ngOnInit=function(){var a=this;this.rootController=this;re(0).pipe(zf(this.destroyed$)).subscribe(function(){sQd(a)&&!a.selectedId&&l3(a,a.components[0].componentId)});this.init.emit(this)};n3.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};n3.prototype.ngOnChanges=function(a){a.components&&tQd(this)};n3.prototype.onSubtreeChildClosed=function(a){var b=this;l3(this,a);this.focusedController=void 0;re(0).pipe(zf(this.destroyed$)).subscribe(function(){o3(b)})};
var tQd=function(a){re(0).pipe(zf(a.destroyed$)).subscribe(function(){sQd(a)&&!a.selectedId&&l3(a,a.components[0].componentId)})};h=n3.prototype;h.selectionChanged=function(a,b){b&&o3(this,b);a!==this.focusedController&&(this.focusedController&&(b=this.focusedController,b.selectedId&&mQd(b.selectedId),b.selectedId=null),this.focusedController=a||void 0)};h.setSelected=function(a,b){qQd(b)||(l3(this,a),this.selectionChanged(null),o3(this),b.preventDefault(),b.stopPropagation())};
h.registerKeys=function(){var a=this;this.subscriptions.add(oU(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next component",onPress:function(){a.selectNext()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous component",onPress:function(){a.selectPrevious()}},{keys:["RIGHT"],displayAs:"Right",description:"View the components children",onPress:function(){a.showChildrenForSelectedId()}},{keys:["LEFT"],displayAs:"Left",
description:"Close the components children",onPress:function(){a.closeSubtree()}},{keys:["SPACE","ENTER"],displayAs:"Space / Enter",description:"Toggle component children display",onPress:function(){a.toggleChildrenForSelectedId()}}]}))};h.showChildrenForSelectedId=function(){if(this.focusedController)this.focusedController.showChildrenForSelectedId();else{var a=oQd(this);a&&this.showChildren(a)}};
h.toggleChildrenForSelectedId=function(){this.focusedController&&this.focusedController.toggleChildrenForSelectedId();var a=oQd(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};h.closeSubtree=function(){this.focusedController?this.focusedController.closeSubtree():this.selectedId&&(oQd(this).showChildren=!1,this.cdr.detectChanges())};
h.selectPrevious=function(){if(this.focusedController)this.focusedController.selectPrevious();else{var a=pQd(this);sQd(this)&&a>=1&&(l3(this,this.components[a-1].componentId),o3(this))}};
h.selectNext=function(){if(sQd(this))if(this.focusedController)this.focusedController.selectNext();else if(this.selectedId){var a=pQd(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(mQd(this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(l3(this,this.components[a+1].componentId),o3(this))}else l3(this,this.components[0].componentId),o3(this)};
var o3=function(a,b){var c=uQd(a.scrollArea),d=c+a.scrollArea.offsetHeight;if(a=nQd(b||a.selectedId)){b=uQd(a);var e=b+a.offsetHeight;b<c?a.scrollIntoView(!1):e>d&&a.scrollIntoView(!0)}},uQd=function(a){for(var b=0;a&&a instanceof HTMLElement;)b+=a.offsetTop,a=a.offsetParent;return b},sQd=function(a){return!!(a.components&&a.components.length>0)};n3.\u0275fac=function(a){return new (a||n3)};
n3.\u0275cmp=D({type:n3,selectors:[["component-tree-list"]],inputs:{components:"components",includeArchived:"includeArchived"},outputs:{init:"init"},standalone:!1,features:[Gg([bQ]),Ef,jx],decls:3,vars:0,consts:[["role","tree",1,"components-list"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id"],["tabindex","-1","role","treeitem","aria-selected","false",3,"click","id"],[1,"component-row"],[1,"selected-indicator"],[1,"component-tree-toggle"],["matTooltip","Hide child components"],
["matTooltip","Show child components"],[1,"component-info"],[1,"component-name",3,"href"],[3,"href"],[3,"accessLevel"],[3,"trackerId"],[1,"component-description"],[1,"component-buttons"],["mat-raised-button","","color","primary",3,"href"],["role","group","aria-expanded","true",1,"child-component-list"],["matTooltip","Hide child components",3,"click"],["svgIcon","arrow-dropdown"],["matTooltip","Show child components",3,"click"],["svgIcon","arrow-dropdown",2,"transform","rotate(-90deg)"],[1,"component-no-children"],
[1,"bv2-view-loading"],[3,"components","parentComponent","rootController","includeArchived"],[3,"childClosed","components","parentComponent","rootController","includeArchived"]],template:function(a,b){a&1&&(K(0,"ol",0),Nf(1,vLb,19,10,"li",1,Mf),L());a&2&&(B(),Of(b.components))},dependencies:[Jy,vK,nA,kB,gB,cU,RV,ZV,m3],encapsulation:2});var p3=function(){};p3.\u0275fac=function(a){return new (a||p3)};p3.\u0275mod=$e({type:p3});p3.\u0275inj=Fc({imports:[WO,wK,mB,eU,fX,GX]});var q3=function(){this.customFields=this.selectedComponent=null;this.fieldSelected=new aQ;this.filter=function(){return!0}};q3.prototype.onComponentSelect=function(a){var b=this;if(this.selectedComponent=a){var c;this.customFields=(((c=a.componentPathInfo)==null?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};q3.\u0275fac=function(a){return new (a||q3)};
q3.\u0275cmp=D({type:q3,selectors:[["b-custom-field-picker"]],inputs:{filter:"filter"},outputs:{fieldSelected:"fieldSelected"},standalone:!1,decls:5,vars:4,consts:[[1,"bv2-custom-field-picker"],[1,"bv2-custom-field-picker-message"],[3,"selectedComponentChange","selectedComponent","placeholder","isRequired"],[1,"bv2-custom-field-picker-select-box"],["appearance","outline"],[1,"mat-select","bv2-custom-field-picker-select",3,"selectionChange"],[3,"value"]],template:function(a,b){a&1&&(K(0,"div",0)(1,
"div",1),Q(2," First, select a component that contains the custom field. "),L(),K(3,"b-team-component-picker",2),N("selectedComponentChange",function(c){return b.onComponentSelect(c!=null?c:null)}),L(),F(4,ALb,4,3,"div",3),L());a&2&&(B(3),I("selectedComponent",b.selectedComponent)("placeholder","Choose Component")("isRequired",!0),B(),G(b.selectedComponent?4:-1))},dependencies:[yU,SD,KD,TH,hA,HD,dW],encapsulation:2});var r3=function(){};r3.\u0275fac=function(a){return new (a||r3)};r3.\u0275mod=$e({type:r3});
r3.\u0275inj=Fc({imports:[WO,zU,KX]});var vQd=function(a){return{value:a}},s3=function(){this.isNonemptyJsonDateValue=k1a};s3.prototype.toDate=function(a){return Sq(a)};s3.\u0275fac=function(a){return new (a||s3)};
s3.\u0275cmp=D({type:s3,selectors:[["b-custom-field-value-display"]],inputs:{customFieldValue:"customFieldValue"},standalone:!1,decls:6,vars:4,consts:[["null",""],["nonNull",""],[1,"bv2-custom-field-value-display"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mode","date",3,"date"]],template:function(a,b){a&1&&(K(0,"span",2),E(1,BLb,1,0,"ng-container",3),L(),E(2,CLb,0,0,"ng-template",null,0,Mg)(4,PLb,8,8,"ng-template",null,1,Mg));a&2&&(a=qg(5),B(),I("ngTemplateOutlet",b.customFieldValue==null?
null:a)("ngTemplateOutletContext",Ig(2,vQd,b.customFieldValue)))},dependencies:[Sx,rV],encapsulation:2});var t3=function(){};t3.\u0275fac=function(a){return new (a||t3)};t3.\u0275mod=$e({type:t3});t3.\u0275inj=Fc({imports:[WO,wV]});var wQd=function(){this.documentationLinks=p(cS);this.userAccess=p(DP);this.errorHandler=p(pO);this.data=p(TA);this.issuesToFlag=this.data.issuesToFlag;this.issuesChecked=0;this.protectedIssues=[];this.permissionsCheckComplete=!1};wQd.prototype.ngOnInit=function(){xQd(this,this.issuesToFlag)};
var xQd=function(a,b){b.length<=0?a.permissionsCheckComplete=!0:EP(a.userAccess,"admin","components/"+b[0].componentId).then(function(c){a.issuesChecked++;c||a.protectedIssues.push(b[0]);xQd(a,b.slice(1))},function(c){a.errorHandler.errorHandler(null,c)})};wQd.\u0275fac=function(a){return new (a||wQd)};
wQd.\u0275cmp=D({type:wQd,selectors:[["b-bulk-flag-as-spam-dialog"]],standalone:!1,decls:19,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-bulk-flag-as-spam-prompt"],["target","_blank",1,"keep-underline",3,"href"],[1,"bv2-bulk-flag-as-spam-warning"],["mat-dialog-actions",""],["type","button","mat-button","","mat-dialog-close","",1,"medium"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"dialog-primary-action",3,"disabled","mat-dialog-close"]],template:function(a,
b){a&1&&(K(0,"h1",0),Q(1,"Flag Issues as Spam"),L(),K(2,"div",1)(3,"div",2)(4,"p"),Q(5),K(6,"a",3),Q(7,"see here"),L(),Q(8,". "),L(),K(9,"p"),Q(10," This operation cannot be undone in bulk. "),L()(),K(11,"div",4),F(12,QLb,3,2,"div"),F(13,SLb,6,1,"div"),L()(),K(14,"div",5)(15,"button",6),Q(16," Close "),L(),K(17,"button",7),Q(18," Flag as Spam "),L()());a&2&&(B(5),S(" Flagging these ",b.issuesToFlag.length," issues as spam will cause them to drop out of regular search results, and they will be deleted after 30 days. For more information on remediating spam at scale, "),
B(),I("href",nmd(b.documentationLinks),Ne),B(6),G(b.permissionsCheckComplete?-1:12),B(),G(b.permissionsCheckComplete&&b.protectedIssues.length>0?13:-1),B(4),I("disabled",!b.permissionsCheckComplete)("mat-dialog-close",!0))},dependencies:[kB,gB,VA,XA,ZA,YA],encapsulation:2});var u3=function(){this.cdr=p(bQ,{self:!0});this.dialogRef=p(RA);this.component=null};u3.prototype.updateComponent=function(a){this.component=a;this.cdr.detectChanges()};u3.prototype.save=function(){this.dialogRef.close(this.component)};u3.prototype.cancel=function(){this.dialogRef.close()};u3.\u0275fac=function(a){return new (a||u3)};
u3.\u0275cmp=D({type:u3,selectors:[["b-bulk-move-dialog"]],standalone:!1,features:[Gg([bQ])],decls:13,vars:4,consts:[["mat-dialog-title",""],[1,"bv2-bulk-move-warning"],[3,"selectedComponentChange","selectedComponent","placeholder","isRequired"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Change Component"),L(),K(2,"mat-dialog-content")(3,"p"),Q(4,"Choose new component for these issues."),L(),
K(5,"p",1),Q(6," Warning: If these issues have custom fields, their values will be lost if you move the issues outside the component subtree that defines those custom fields. "),L(),K(7,"b-team-component-picker",2),N("selectedComponentChange",function(c){return b.updateComponent(c!=null?c:null)}),L()(),K(8,"mat-dialog-actions")(9,"button",3),N("click",function(){return b.cancel()}),Q(10," Cancel "),L(),K(11,"button",4),N("click",function(){return b.save()}),Q(12," Save "),L()());a&2&&(B(7),I("selectedComponent",
b.component)("placeholder","Choose Component")("isRequired",!0),B(4),I("disabled",b.component==null))},dependencies:[kB,gB,XA,ZA,YA,dW],styles:[".bv2-bulk-move-warning[_ngcontent-%COMP%]{font-weight:bold}mat-dialog-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--text)}"]});var v3=function(){this.renderPanel=this.noneButtonEnabled=!0;this.sloEditCommit=new aQ;this.closePicker=new aQ;this.currentPickerDate=new ao};v3.prototype.ngOnChanges=function(a){if(a.sloEditTime){var b;this.currentPickerDate=(b=new ao(L$a(this.sloEditTime)))!=null?b:void 0}};v3.prototype.setDate=function(a){this.currentPickerDate=a};v3.\u0275fac=function(a){return new (a||v3)};
v3.\u0275cmp=D({type:v3,selectors:[["slo-edit-date-time-picker"]],inputs:{sloEditTime:"sloEditTime",noneButtonEnabled:"noneButtonEnabled",sloStatus:"sloStatus",renderPanel:"renderPanel"},outputs:{sloEditCommit:"sloEditCommit",closePicker:"closePicker"},standalone:!1,features:[Gg([bQ]),jx],decls:2,vars:4,consts:[[3,"clickOutside"],[3,"dateTimeChange","saveClicked","cancelClicked","renderPanel","dateTime","noneButtonEnabled","includeTimePicker"]],template:function(a,b){a&1&&(K(0,"div",0),N("clickOutside",
function(){b.closePicker.emit()}),K(1,"b-date-time-picker-content",1),N("dateTimeChange",function(c){return b.setDate(c)})("saveClicked",function(){var c=(c=b.currentPickerDate)?{seconds:c.getTime()/1E3,nanos:0}:null;b.sloEditCommit.emit({date:c!=null?c:null});b.closePicker.emit()})("cancelClicked",function(){b.closePicker.emit()}),L()());a&2&&(B(),I("renderPanel",b.renderPanel)("dateTime",b.currentPickerDate)("noneButtonEnabled",b.noneButtonEnabled)("includeTimePicker",!0))},dependencies:[F_,jV],
styles:["b-date-time-picker-content[_ngcontent-%COMP%]{right:10px;z-index:100}[_nghost-%COMP%]     .mat-mdc-form-field{width:9rem;margin-left:1rem}/*# sourceMappingURL=slo_edit_date_time_picker.css.map */"],changeDetection:0});var yQd=function(){this.data=p(TA);this.dialogRef=p(RA);this.fieldDisplayName=this.data.fieldDisplayName;this.commitEvent=void 0};yQd.prototype.close=function(){this.dialogRef.close(this.commitEvent)};yQd.\u0275fac=function(a){return new (a||yQd)};
yQd.\u0275cmp=D({type:yQd,selectors:[["b-edit-calendar-modal"]],standalone:!1,decls:3,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"sloEditCommit","closePicker","renderPanel"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1),L(),K(2,"slo-edit-date-time-picker",1),N("sloEditCommit",function(c){b.commitEvent=c})("closePicker",function(){return b.close()}),L());a&2&&(B(),S("Edit ",b.fieldDisplayName),B(),I("renderPanel",!1))},dependencies:[XA,YA,v3],encapsulation:2});var w3=function(){this.data=p(TA);this.dialogRef=p(RA);this.fieldDisplayName=this.data.fieldDisplayName;this.effortSpec=this.data.effortSpec;this.numericEstimatedEffort="";this.effortSpecName=this.effortSpec.name;this.currentEnumLabel="";this.enumSpec=this.effortSpec.enumSpec;var a,b;this.enumOptions=(b=(a=this.enumSpec)==null?void 0:a.options)!=null?b:[];this.isEnumSpec=!!this.enumSpec;var c;this.allowedLabels=((c=this.enumOptions)!=null?c:[]).map(function(d){return d.label})};
w3.prototype.enableSubmit=function(){return this.isEnumSpec&&this.currentEnumLabel!==""||!this.isEnumSpec};w3.prototype.cancel=function(){this.dialogRef.close(void 0)};w3.prototype.save=function(){if(this.enumSpec)var a={estimate:this.currentEnumLabel};else a=this.numericEstimatedEffort,a={estimate:a.length===0||isNaN(Number(a))?"":String(Number(a))};this.dialogRef.close(a)};w3.\u0275fac=function(a){return new (a||w3)};
w3.\u0275cmp=D({type:w3,selectors:[["b-edit-estimated-effort-modal"]],standalone:!1,decls:9,vars:3,consts:[["mat-dialog-title",""],[1,"bv2-top-field-label"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"],[3,"valueChange","value","includeEmptyOption","options"],["matInput","",3,"ngModelChange","keypress","ngModel"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1),L(),F(2,TLb,4,4,"div",1)(3,ULb,5,2,"mat-dialog-content"),K(4,"mat-dialog-actions")(5,
"button",2),N("click",function(){return b.cancel()}),Q(6," Cancel "),L(),K(7,"button",3),N("click",function(){return b.save()}),Q(8," Save "),L()());a&2&&(B(),S("Edit ",b.fieldDisplayName),B(),G(b.isEnumSpec?2:3),B(5),I("disabled",!b.enableSubmit()))},dependencies:[xj,fE,mE,kB,gB,XA,ZA,YA,VD,FE,SD,KD,HD,w_],encapsulation:2});var x3=function(){this.data=p(TA);this.dialogRef=p(RA);this.removeItems=this.addItems="";this.fieldDisplayName=this.data.fieldDisplayName};x3.prototype.save=function(){this.dialogRef.close({addItems:this.addItems,removeItems:this.removeItems})};x3.prototype.close=function(){this.dialogRef.close()};x3.\u0275fac=function(a){return new (a||x3)};
x3.\u0275cmp=D({type:x3,selectors:[["b-edit-item-modal"]],standalone:!1,decls:20,vars:6,consts:[["mat-dialog-title",""],[1,"bv2-modal-form"],["appearance","outline","subscriptSizing","dynamic"],["matInput","","type","text",3,"ngModelChange","ngModel"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1),L(),K(2,"mat-dialog-content")(3,"p"),Q(4),L(),K(5,"div",1)(6,"mat-form-field",2)(7,"mat-label"),Q(8),L(),K(9,
"input",3),Cg("ngModelChange",function(c){Bg(b.addItems,c)||(b.addItems=c);return c}),L()(),M(10,"br"),K(11,"mat-form-field",2)(12,"mat-label"),Q(13),L(),K(14,"input",3),Cg("ngModelChange",function(c){Bg(b.removeItems,c)||(b.removeItems=c);return c}),L()()()(),K(15,"mat-dialog-actions")(16,"button",4),N("click",function(){return b.close()}),Q(17," Cancel "),L(),K(18,"button",5),N("click",function(){return b.save()}),Q(19," Save "),L()());a&2&&(B(),S("Edit ",b.fieldDisplayName),B(3),S("Enter ",b.fieldDisplayName,
" to add or remove"),B(4),S(" ",b.fieldDisplayName," to Add "),B(),Ag("ngModel",b.addItems),B(4),S(" ",b.fieldDisplayName," to Remove "),B(),Ag("ngModel",b.removeItems))},dependencies:[xj,fE,mE,kB,gB,VD,FE,SD,KD,HD,XA,ZA,YA],styles:["mat-form-field[_ngcontent-%COMP%]{margin-top:8px}"]});var zQd=["hotlistFilterInput"],AQd=["hotlistCreate"],BQd=["hotlistApply"],CQd=["hotlistLoad"],DQd=["menuitem"],y3=function(){Z.apply(this,arguments);this.liveAnnouncer=p(dz);this.butterBar=p(UN);this.userAccess=p(DP);this.analytics=p(eQ);this.activeSession=p(uu);this.cdr=p(bQ,{self:!0});this.selectedHotlistIds=[[]];this.choices=[];this.checkEditAcl=!0;this.onCreate=new aQ;this.onApply=new aQ;this.onLoad=new aQ;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()};Y(y3,Z);y3.\u0275dir=Z.\u0275dir;y3.prototype.ngAfterViewInit=function(){var a=this,b;(b=this.trigger)==null||b.menuOpened.pipe(zf(this.destroyed$)).subscribe(function(){re(0).pipe(zf(a.destroyed$)).subscribe(function(){a.focusFilterBox()})});var c;(c=this.trigger)==null||c.menuClosed.pipe(zf(this.destroyed$)).subscribe(function(){EQd(a)})};
y3.prototype.focusFilterBox=function(){this.filterElement.nativeElement.focus()};y3.prototype.ngOnChanges=function(){FQd(this);this.oldSelectedHotlistMap=Object.assign({},this.selectedHotlistMap);this.pendingChanges=this.canCreate=!1;GQd(this)};
var FQd=function(a){var b={};ota(a.selectedHotlistMap);if(a.choices){a.validHotlistIds.clear();for(var c=m(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=m(a.selectedHotlistIds);for(var e=d.next();!e.done;e=d.next())if(e=e.value){e=m(e);for(var f=e.next();!f.done;f=e.next())b[f.value]++}d=m(Object.entries(b));for(e=d.next();!e.done;e=d.next())f=m(e.value),e=f.next().value,f=f.next().value,
a.selectedHotlistMap[Number(e)]=f?f===c?!0:null:!1;Dba(a.choices,function(g,k){var l=b[g.hotlistId],r=b[k.hotlistId];return l>r?-1:l<r?1:wa(g.name,k.name)})}}};y3.prototype.open=function(){this.trigger.openMenu();this.cdr.detectChanges()};y3.prototype.close=function(){this.trigger.closeMenu()};
y3.prototype.hasAclToEdit=function(a){var b=this;if(kta(this.hotlistEditAcls,a.hotlistId))return this.hotlistEditAcls[a.hotlistId];EP(this.userAccess,"appender","hotlists/"+a.hotlistId).then(function(c){b.hotlistEditAcls[a.hotlistId]=c})};
var VLb=function(a,b){if(!a.checkEditAcl)return!1;a=a.hasAclToEdit(b);return a===void 0?!0:!a},WLb=function(a,b){var c=a.selectedHotlistMap[b.hotlistId];a.selectedHotlistMap[b.hotlistId]=c===null?!0:!c;cMb(a);a.close()},cMb=function(a){a.onApply.emit({oldSelectionMap:a.oldSelectedHotlistMap,newSelectionMap:a.selectedHotlistMap})},GQd=function(a){for(var b=a.filterText,c=!1,d=m(a.choices),e=d.next();!e.done;e=d.next())e=e.value,a.shouldShowHotlist[e.hotlistId]=Yaa(e.name,b),e.name===b&&(c=!0);a.canCreate=
!(!b||c);a.canLoad=Q8a(Aa(b))&&!!b&&!!a.onLoad},EQd=function(a){a.trigger.menuOpen||(FQd(a),a.filterText="",GQd(a),a.pendingChanges=!1,a.focusedRowIndex=-1)},HQd=function(a){var b=a.selectedHotlistIds;return b&&b.length===1?"Hotlists ("+qba(b[0],function(c){return a.validHotlistIds.has(c)})+")":"Hotlists"};
y3.prototype.createHotlist=function(){var a=this,b=this.filterText;this.canCreate&&(this.filterText="",GQd(this),this.onCreate.emit({name:b,successCallback:function(c){WLb(a,c)},errorCallback:function(){a.butterBar.showWarning("Failed to create hotlist "+b)}}))};
y3.prototype.loadHotlist=function(){var a=this,b=this.filterText;if(this.canLoad){this.analytics.trackEvent("hotlistPicker","loadHotlist");Rr(this.butterBar,"Loading hotlist "+b.toString());this.filterText="";GQd(this);for(var c=rm(b),d=m(this.choices),e=d.next();!e.done;e=d.next())if(e=e.value,c===e.hotlistId){WLb(this,e);return}this.onLoad.emit({hotlistId:c,successCallback:function(f){WLb(a,f)},errorCallback:function(){a.butterBar.showWarning("Failed to load hotlist "+b)}})}};
y3.prototype.handleSelectionChange=function(){this.focusFilterBox();this.pendingChanges=!mm(this.oldSelectedHotlistMap,this.selectedHotlistMap)};
var XLb=function(a,b){VLb(a,b)||(a.selectedHotlistMap[b.hotlistId]=!a.selectedHotlistMap[b.hotlistId],a.handleSelectionChange())},OQd=function(a,b){b=b===void 0?0:b;var c=IQd(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=tba(IQd(a),b),JQd(a),KQd(a,b)):a.focusedRowIndex<d&&a.canCreate?LQd(a,d):a.focusedRowIndex<d+1&&a.canLoad?MQd(a,d):a.focusedRowIndex<d+2&&a.pendingChanges&&
NQd(a,d)},IQd=function(a){return a.menuItems.map(function(b){return b.nativeElement})},PQd=function(a,b){b=b===void 0?0:b;if(a.focusedRowIndex===a.choices.length+1&&a.canCreate)LQd(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canLoad)MQd(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canCreate)LQd(a,a.choices.length);else{var c=IQd(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=tba(IQd(a),b),JQd(a),KQd(a,b)):(a.focusedRowIndex=-1,KQd(a,null))}},KQd=function(a,b){a.filterElement&&mU(a.filterElement.nativeElement,b);a.focusFilterBox()},LQd=function(a,b){a.focusedRowIndex=b;mU(a.filterElement.nativeElement,null);var c;(c=a.createElement)==null||c.focus();a.liveAnnouncer.announce("Create new hotlist "+a.filterText);a.focusFilterBox()},MQd=function(a,b){a.focusedRowIndex=b+1;mU(a.filterElement.nativeElement,null);var c;(c=a.loadElement)==
null||c.focus();a.liveAnnouncer.announce("Load hotlist "+a.filterText);a.focusFilterBox()},NQd=function(a,b){a.focusedRowIndex=b+2;mU(a.filterElement.nativeElement,null);var c;(c=a.applyElement)==null||c.focus();a.liveAnnouncer.announce("Apply");a.focusFilterBox()},JQd=function(a){a.focusedRowIndex===-1||a.focusedRowIndex>=a.choices.length||(a=IQd(a)[a.focusedRowIndex],a.scrollIntoViewIfNeeded?a.scrollIntoViewIfNeeded():a.scrollIntoView({block:"end"}))},YLb=function(a){return a==null?"mixed":a.toString()},
ZLb=function(a){return a==null?"indeterminate":a?"checked":"unchecked"};y3.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(y3)))(b||y3)}}();
y3.\u0275cmp=D({type:y3,selectors:[["b-hotlist-picker"]],viewQuery:function(a,b){a&1&&(hg(iH,5),hg(zQd,5),hg(AQd,5),hg(BQd,5),hg(CQd,5),hg(DQd,5));if(a&2){var c;lg(c=mg())&&(b.trigger=c.first);lg(c=mg())&&(b.filterElement=c.first);lg(c=mg())&&(b.createElement=c.first);lg(c=mg())&&(b.applyElement=c.first);lg(c=mg())&&(b.loadElement=c.first);lg(c=mg())&&(b.menuItems=c)}},inputs:{selectedHotlistIds:"selectedHotlistIds",choices:"choices",checkEditAcl:"checkEditAcl"},outputs:{onCreate:"onCreate",onApply:"onApply",
onLoad:"onLoad"},standalone:!1,features:[Gg([bQ]),Ef,jx],decls:13,vars:4,consts:[["hotlistMenu","matMenu"],["hotlistFilterInput",""],["hotlistChoices",""],["hotlistCreate",""],["menuitem",""],["hotlistLoad",""],["hotlistApply",""],["type","button","mat-button","","id","hotlist-picker-button","aria-describedby","hotlist-picker-label-text",1,"medium","primary",3,"matMenuTriggerFor","disabled"],["id","hotlist-picker-label-text"],["name","arrow-dropdown","size","small"],[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 hotlists from your sidebar","autocomplete","off",3,"ngModelChange","mousedown","blur","click","keydown","ngModel"],["matMenuContent",""],["role","listbox",1,"multi-edit-scrollarea"],["role","option",1,"multi-edit-menuitem",3,"display","focused","title"],["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,"click","keydown.enter","disabled"],["mat-menu-item","","matTooltip","Type a hotlist id number to load a hotlist by id.","matTooltipPosition","right",3,"focused"],["mat-menu-item","","id","hotlist-apply","aria-label","apply",1,"hotlist-apply",3,"focused"],["role","option",1,"multi-edit-menuitem",3,"click","title"],["role","checkbox",3,"click","state","disabled"],["mat-menu-item",
"","matTooltip","Type a hotlist id number to load a hotlist by id.","matTooltipPosition","right",3,"click","keydown.enter"],["mat-menu-item","","id","hotlist-apply","aria-label","apply",1,"hotlist-apply",3,"click","keydown.enter"]],template:function(a,b){if(a&1){var c=t();K(0,"button",7)(1,"span",8);Q(2);L();M(3,"b-icon",9);L();K(4,"mat-menu",null,0)(6,"div",10)(7,"div",11)(8,"div",12)(9,"input",13,1);Cg("ngModelChange",function(d){u(c);Bg(b.filterText,d)||(b.filterText=d);return v(d)});N("ngModelChange",
function(){u(c);return v(GQd(b))})("mousedown",function(d){u(c);return v(d.stopPropagation())})("blur",function(){u(c);return v(EQd(b))})("click",function(d){u(c);return v(d.stopPropagation())})("keydown",function(d){u(c);d.stopImmediatePropagation();d.key==="Escape"?b.close():d.key==="ArrowDown"?(OQd(b),d.preventDefault()):d.key==="ArrowUp"?(PQd(b),d.preventDefault()):d.key==="PageUp"?PQd(b,11):d.key==="PageDown"?OQd(b,11):d.key===" "?b.focusedRowIndex===-1||b.focusedRowIndex>=b.choices.length||
(XLb(b,b.choices[b.focusedRowIndex]),d.preventDefault()):d.key==="Enter"&&(b.focusedRowIndex===b.choices.length?b.createHotlist():b.focusedRowIndex===b.choices.length+1?b.loadHotlist():b.pendingChanges?(b.close(),cMb(b)):0<=b.focusedRowIndex&&b.focusedRowIndex<b.choices.length&&b.hasAclToEdit(b.choices[b.focusedRowIndex])&&WLb(b,b.choices[b.focusedRowIndex]));return v()});L()()();M(11,"mat-divider");E(12,eMb,12,7,"ng-template",14);L()()}a&2&&(a=qg(5),I("matMenuTriggerFor",a)("disabled",b.isAnonymous),
B(2),yg(HQd(b)),B(7),Ag("ngModel",b.filterText))},dependencies:[VJ,fH,dH,eH,iH,kB,gB,xj,fE,zE,mE,gA,vK,nA,hK,sT],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-mdc-menu-item.focused[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg);border:0}/*# sourceMappingURL=hotlist_picker.css.map */"]});var SQd=function(a,b){this.origCommonDuplicateOf=this.origCommonVerifier=this.origCommonAssignee=this.lastCommonAssignee="";this.overwriteVerifier=this.overwriteAssignee=!1;this.commonDuplicateOf=this.commonVerifier=this.commonAssignee="";this.issueState=void 0;this.recaptchaResponse="";this.userEmail=a;this.origIssues=b;this.comment=new uS;this.selectedVerifiersStatus=this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";QQd(this,b);RQd(this,b)},QQd=function(a,b){var c=b[0],d=io.get(c.status),
e=c.duplicateOfIssueId;if(d)for(b.every(function(f){return f.status==="DUPLICATE"&&e===f.duplicateOfIssueId})&&e&&(a.commonDuplicateOf=e,a.origCommonDuplicateOf=e),c=1;c<b.length;c++)if(b[0].status!==b[c].status){d=void 0;break}a.issueState=d;a.origCommonIssueState=d},TQd=function(a){if(a.length===1)return"IDENTICAL_EMAILS";var b=!a.every(function(c){return c===a[0]});return a.every(function(c){return c===void 0||Zn(c)})?b?"MULTIPLE":"IDENTICAL_EMAILS":"POSSIBLY_MULTIPLE"},RQd=function(a,b){var c=
b.map(function(d){return d.assigneeEmail});b=b.map(function(d){return d.verifierEmail});a.selectedAssigneesStatus=TQd(c);a.selectedVerifiersStatus=TQd(b);a.selectedAssigneesStatus==="IDENTICAL_EMAILS"&&(a.commonAssignee=c[0],a.origCommonAssignee=c[0]);a.selectedVerifiersStatus==="IDENTICAL_EMAILS"&&(a.commonVerifier=b[0],a.origCommonVerifier=b[0])};
SQd.prototype.clearAssignee=function(){this.commonAssignee="";this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteAssignee=!0;UQd(this)};SQd.prototype.clearVerifier=function(){this.commonVerifier="";this.selectedVerifiersStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteVerifier=!0};
var pMb=function(a){return a.origIssues.every(function(b){return!!b.verifierEmail})},kMb=function(a,b){(a.origCommonIssueState=b)?(b.status==="NEW"?VQd(a.selectedAssigneesStatus)?a.clearAssignee():a.commonAssignee&&(a.lastCommonAssignee=a.commonAssignee,a.commonAssignee=""):b.status==="DUPLICATE"?(a.commonAssignee=a.origCommonAssignee,a.commonVerifier=a.origCommonVerifier):(b.assigneeRequirement!=="REQUIRED"||a.commonAssignee||VQd(a.selectedAssigneesStatus)||(a.commonAssignee=a.lastCommonAssignee?
a.lastCommonAssignee:a.userEmail),VQd(a.selectedVerifiersStatus)||a.commonVerifier||b.status!=="VERIFIED"||(a.commonVerifier=a.userEmail)),a.issueState=a.origCommonIssueState):a.issueState=void 0},VQd=function(a){return a==="MULTIPLE"||a==="POSSIBLY_MULTIPLE"},UQd=function(a){a.issueState===eRa&&a.commonAssignee?a.origCommonIssueState===eRa?a.issueState=fRa:a.issueState=a.origCommonIssueState:a.commonAssignee||a.issueState&&!rcd.has(a.issueState)||(a.issueState=eRa)},WQd=function(a){var b=a.issueState;
return b?a.origIssues.some(function(c){return b.status!==c.status}):!1},XQd=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);WQd(a)&&(a.commonDuplicateOf!==a.origCommonDuplicateOf?b.set("duplicateOfIssueId",a.commonDuplicateOf):b.set("status",a.issueState.status));a.comment.value&&b.set("comment",a.comment.value);return b};var z3=function(){this.externalWarnings=[]};z3.\u0275fac=function(a){return new (a||z3)};
z3.\u0275cmp=D({type:z3,selectors:[["b-external-warnings"]],inputs:{externalWarnings:"externalWarnings"},standalone:!1,decls:1,vars:1,consts:[[1,"bv2-external-component-modal-warning"],[3,"href"],[3,"issueId"],[3,"accessLevel"]],template:function(a,b){a&1&&F(0,jMb,11,0,"div",0);a&2&&G(b.externalWarnings.length>0?0:-1)},dependencies:[RV,KW],styles:[".bv2-external-component-modal-warning[_ngcontent-%COMP%] {\n  padding-top: 10px;\n\n  ul {\n    padding-left: 0;\n  }\n}"],changeDetection:0});
var A3=function(){};A3.\u0275fac=function(a){return new (a||A3)};A3.\u0275mod=$e({type:A3});A3.\u0275inj=Fc({imports:[fX,vX]});var YQd=["dialog"],ZQd=["statusForm"],B3=function(){Z.call(this);this.matDialog=p(UA);this.activeSession=p(uu);this.hotkeys=p(nU);this.userPreferencesManager=p(hR);this.comment=new uS;this.save=new aQ;this.close=new aQ;this.externalWarnings=[];this.issueStates=pRa();this.issueEditBuilder=null;this.FocusableField=$Qd;this.enableRecaptcha=this.activeSession.userRequiresCaptcha()&&this.activeSession.getFlag("enableBulkEditCaptchaUi");var a;this.comment.formattingMode=Tm((a=iR(this.userPreferencesManager).commentFormattingPreferences)==
null?void 0:a.lastPublishMode)};Y(B3,Z);B3.\u0275dir=Z.\u0275dir;B3.prototype.showDialog=function(a,b,c){var d=this;this.issueEditBuilder=new SQd(this.activeSession.getUserEmail(),a);this.issueEditBuilder.comment=this.comment;b&&kMb(this.issueEditBuilder,b);this.focus=c;this.hotkeys.pause();this.matDialogRef=this.matDialog.open(this.dialog,{minWidth:512,maxWidth:512});SA(this.matDialogRef).pipe(zf(this.destroyed$)).subscribe(function(e){d.hotkeys.unpause();e&&d.save.emit();d.close.emit()})};
var xMb=function(a){var b;if(!(b=!a.statusForm||a.statusForm.invalid))a:{if(a.issueEditBuilder!=null){b=XQd(a.issueEditBuilder);var c=b.get("status");if(c==="DUPLICATE"){b=!b.get("duplicateOfIssueId");break a}if(c==="VERIFIED"){b=!pMb(a.issueEditBuilder)&&!b.get("verifier");break a}}b=!1}return b||a.enableRecaptcha&&a.issueEditBuilder.recaptchaResponse===""?!1:!0},St=function(a){if(xMb(a)){var b;(b=a.matDialogRef)==null||b.close(!0)}};
B3.prototype.setAssignee=function(a){this.issueEditBuilder&&(this.issueEditBuilder.commonAssignee=a,UQd(this.issueEditBuilder))};B3.\u0275fac=function(a){return new (a||B3)};
B3.\u0275cmp=D({type:B3,selectors:[["b-state-modal"]],viewQuery:function(a,b){a&1&&(hg(YQd,5),hg(ZQd,5));if(a&2){var c;lg(c=mg())&&(b.dialog=c.first);lg(c=mg())&&(b.statusForm=c.first)}},inputs:{externalWarnings:"externalWarnings"},outputs:{save:"save",close:"close"},standalone:!1,features:[Ef],decls:2,vars:0,consts:[["dialog",""],["statusForm","ngForm"],["statusMenu",""],["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-modal-form"],[1,"flex-kids-x","justify-flex-end"],["mat-dialog-actions",
""],["type","button","mat-button","",1,"medium",3,"mat-dialog-close"],["type","submit","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close","disabled"],["type","button","mat-button","",1,"medium","primary","status-select",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["mat-menu-item","","type","button",3,"click","disabled"],["mat-menu-item","","type","button",3,"disabled"],[1,"bv2-modal-text-field"],["placeholder","Add a comment (optional)",3,"onSubmit",
"comment","showToolbar","isLiteralModeSupported"],[1,"float-clear"],[3,"externalWarnings"],["for","bv2-state-modal-assignee",1,"bv2-top-field-label"],[1,"bv2-multiple-user-chip"],["for","bv2-state-modal-verifier",1,"bv2-top-field-label"],[1,"bv2-multiple-user-chip",3,"bv2-invalid-multiple-user-chip"],["title","Clear assignees",3,"click"],["name","assignee",3,"emailChange","keydown.control.enter","keydown.meta.enter","cdkFocusInitial","email"],["title","Clear verifiers",3,"click"],["name","verifier",
3,"emailChange","keydown.control.enter","keydown.meta.enter","cdkFocusInitial","email","required"],["for","bv2-state-modal-issue-id",1,"bv2-top-field-label"],["type","text","name","duplicateOf",3,"ngModelChange","keydown.control.enter","keydown.meta.enter","ngModel"],[3,"onUpdate"]],template:function(a){a&1&&E(0,yMb,14,5,"ng-template",null,0,Mg)},dependencies:[VA,XA,ZA,YA,nE,xj,fE,gE,mE,kE,kB,gB,sT,VJ,fH,dH,iH,s0,qY,z3,P_],encapsulation:2});
var $Qd={ASSIGNEE:0,VERIFIER:1,COMMENT:2,DUPE_ID:3,0:"ASSIGNEE",1:"VERIFIER",2:"COMMENT",3:"DUPE_ID"};var C3=function(){this.dialogRef=p(RA);this.activeSession=p(uu);this.reporter="";this.autocompleteActive=!1};C3.prototype.enableSubmit=function(){return this.reporter!==""};C3.prototype.cancel=function(){this.dialogRef.close()};C3.prototype.save=function(){this.dialogRef.close(this.reporter)};C3.\u0275fac=function(a){return new (a||C3)};
C3.\u0275cmp=D({type:C3,selectors:[["b-reporter-picker-dialog"]],standalone:!1,decls:13,vars:3,consts:[["mat-dialog-title",""],["appearance","outline","subscriptSizing","dynamic"],[3,"keydown"],[3,"emailChange","asMatInput","email"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Change Reporter"),L(),K(2,"mat-dialog-content")(3,"mat-form-field",1)(4,"mat-label"),Q(5," Reporter "),L(),K(6,"div",
2),N("keydown",function(c){c.key==="Enter"&&!b.autocompleteActive&&b.enableSubmit()&&b.save()}),K(7,"b-peoplekit-single",3),Cg("emailChange",function(c){Bg(b.reporter,c)||(b.reporter=c);return c}),L()()()(),K(8,"mat-dialog-actions")(9,"button",4),N("click",function(){return b.cancel()}),Q(10," Cancel "),L(),K(11,"button",5),N("click",function(){return b.save()}),Q(12," Save "),L()());a&2&&(B(7),I("asMatInput",!0),Ag("email",b.reporter),B(4),I("disabled",!b.enableSubmit()))},dependencies:[kB,gB,XA,
ZA,YA,SD,KD,HD,P_],styles:["mat-dialog-content[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{margin-top:8px}"]});var aRd=["addCommentDialog"],D3=function(){Z.apply(this,arguments);var a=this;this.componentFridge=p(RO);this.cdr=p(bQ);this.activeSession=p(uu);this.analytics=p(eQ);this.hotkeys=p(nU);this.componentActions=p(VV);this.issueTypeDialog=p(eS);this.copyIssueIdService=p(kQd);this.matDialog=p(UA);this.$log=p(nO);this.issuePicker=p(UX);this.userPreferencesManager=p(hR);this.accessIndicatorService=p(JW);this.currentUserEmail=this.activeSession.getUserEmail();this.uniqueComponentIds$=new qf;this.effortSpec$=
this.uniqueComponentIds$.pipe(yf(function(b){return a.componentFridge.watchSet(b)}),A(function(b){return a.getCommonEffortSpec(b)}),vf({bufferSize:1,refCount:!0}));this.enableBulkEstimatedEffortOption$=this.effortSpec$.pipe(A(function(b){return b!==void 0}));this.hotlistIdMatrix=[];this.hotlistChoices=[];this.onSave=new aQ;this.onCreateHotlist=new aQ;this.onLoadHotlist=new aQ;this.externalWarnings=[];this.enableRecaptcha=this.activeSession.userRequiresCaptcha()&&this.activeSession.getFlag("enableBulkEditCaptchaUi");
this.recaptchaResponse="";this.controllerName="baseControls"};Y(D3,Z);D3.\u0275dir=Z.\u0275dir;var bRd=function(a){var b=new uS,c;b.formattingMode=Tm((c=iR(a.userPreferencesManager).commentFormattingPreferences)==null?void 0:c.lastPublishMode);return b};D3.prototype.hasSelectedIssues=function(){return this.getSelectedIssues().length>0};var cRd=function(a){return a.getSelectedIssues().some(function(b){return!b.isRead})},zMb=function(a){return cRd(a)?"Mark as read":"Mark as unread"},Tt=function(a){return a.getSelectedIssues().map(function(b){return b.issueId})};
D3.prototype.onSelectionChange=function(){for(var a=this.getSelectedIssues(),b=m(a),c=b.next();!c.done;c=b.next()){var d=void 0;(d=c.value).hotlistId!=null||(d.hotlistId=[])}this.hotlistIdMatrix=a.map(function(e){return e.hotlistId});this.cdr.detectChanges();a=dRd(a);this.uniqueComponentIds$.next(a)};
var dRd=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.includes(c.componentId)||b.push(c.componentId);return b},eRd=function(a){if(!XN(a.activeSession)){a.externalWarnings=[];var b=ie(a.getSelectedIssues().map(function(e){return axd(a.accessIndicatorService,e.issueId,e.componentId).pipe(A(function(f){return{issue:e,indicator:f}}))}));fe(b).then(function(e){e=m(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=f.issue;f.indicator.type!=="no_indicator"&&a.externalWarnings.push({type:"issue",
issueId:g.issueId})}}).then(function(){a.cdr.detectChanges()});b=new Set(a.getSelectedIssues().map(function(e){return e.componentId}));b=m(b);for(var c=b.next(),d={};!c.done;d={id$jscomp$613:void 0},c=b.next())d.id$jscomp$613=c.value,a.componentActions.get(d.id$jscomp$613).then(function(e){if(a.activeSession.isInternalSession()&&mt(e)||WN(a.activeSession)&&nt(e)){var f,g=(f=e.componentPathInfo)==null?void 0:f.componentPathName;a.externalWarnings.push({type:"component",path:g?g.join(" > "):e.componentId,
accessLevel:e.accessLimit.accessLevel});a.cdr.detectChanges()}}).catch(function(e){return function(){a.$log.warn("Could not retrieve component "+e.id$jscomp$613+".")}}(d))}};h=D3.prototype;h.getCommonEffortSpec=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;if(!b.effortSpec)return;b=b.effortSpec;var c=b.id;if(!d){var d=c;var e=b}else if(d!==c)return}return e};
h.bulkEdit=function(a){switch(a){case "ASSIGNEE":fRd(this,null,0);break;case "COMPONENT":gRd(this);break;case "VERIFIER":fRd(this,null,1);break;case "REPORTER":hRd(this);break;case "CHANGELIST":iRd(this,"changelists","Changelists",!0);break;case "CUSTOM_FIELDS":jRd(this);break;case "FOUND_IN":iRd(this,"foundInVersion","Found In");break;case "VERIFIED_IN":iRd(this,"verifiedInVersion","Verified In");break;case "TARGETED_TO":iRd(this,"targetedToVersion","Targeted To");break;case "COMMENT":kRd(this);
break;case "SLO_START_TIME":lRd(this);break;case "ESTIMATED_EFFORT":mRd(this);break;case "CC":iRd(this,"ccs","CCs");break;default:this.$log.error("unsupported bulk edit field: "+a)}};
h.quickBulkEdit=function(a){switch(a.field){case "PRIORITY":(a=a.newValue)&&E3(this,"priority",a);break;case "SEVERITY":(a=a.newValue)&&E3(this,"severity",a);break;case "STATUS":if(a=a.newValue){var b=a==="DUPLICATE"?3:void 0;fRd(this,io.get(a),b)}break;case "TYPE":(a=a.newValue)&&E3(this,"type",a);break;case "IS_ARCHIVED":E3(this,"isArchived",""+a.newValue);break;case "IN_PROD":E3(this,"inProd",""+a.newValue);break;case "CC":E3(this,"ccs",this.currentUserEmail,a.newValue?"ADD":"REMOVE");break;default:this.$log.error("unsupported bulk edit field: "+
a.field)}};
h.bulkEditIssueRelation=function(a){switch(a.issueRelation){case "BLOCKED_BY":a.isMarking?nRd(this,{actionType:"ADD",fieldName:"blockedByIssueId",title:"Mark all selected issues as blocked by:",edgeType:"blocker"}):nRd(this,{actionType:"REMOVE",fieldName:"blockedByIssueId",title:"Unmark all selected issues as blocked by:",edgeType:"un-blocker"});break;case "BLOCKING":a.isMarking?nRd(this,{actionType:"ADD",fieldName:"blockingIssueId",title:"Mark all selected issues as blocking:",edgeType:"blocking"}):nRd(this,
{actionType:"REMOVE",fieldName:"blockingIssueId",title:"Unmark all selected issues as blocking:",edgeType:"un-blocking"});break;case "PARENT":a.isMarking?nRd(this,{actionType:"ADD",fieldName:"parentId",title:"Mark all selected issues as children of:",edgeType:"child"}):nRd(this,{actionType:"REMOVE",fieldName:"parentId",title:"Unlink all selected issues from this parent:",edgeType:"un-parent"});break;case "DUPLICATE":fRd(this,jRa,3);break;default:this.$log.error("unsupported issue relation: "+a.issueRelation)}};
h.bulkMarkIssueRead=function(){var a=cRd(this);E3(this,"readState",a?"true":"")};
var E3=function(a,b,c,d){var e={fieldName:b,value:c};d!==void 0&&(e.actionType=d);var f=Tt(a),g=[e];b==="deletionReason"&&g.push({fieldName:"isDeleted",value:"true"});d=function(){var k={bulkEditOps:[{issueIds:f,actions:g}]};a.enableRecaptcha&&a.recaptchaResponse!==""&&(k.recaptchaToken=a.recaptchaResponse);a.onSave.emit(k)};b!=="type"||c!=="VULNERABILITY"&&c!=="PRIVACY_ISSUE"?d():(c==="VULNERABILITY"&&rmd(a.issueTypeDialog,"VULNERABILITY",d,function(){}),c==="PRIVACY_ISSUE"&&rmd(a.issueTypeDialog,
"PRIVACY_ISSUE",d,function(){}))},fRd=function(a,b,c){a.hasSelectedIssues()&&(eRd(a),a.stateModal.showDialog(a.getSelectedIssues(),b,c))},oRd=function(a){var b=a.onSave,c=b.emit,d=Tt(a),e=a.stateModal.issueEditBuilder,f=[];e.issueState||kMb(e);e=m(XQd(e));for(var g=e.next();!g.done;g=e.next()){var k=m(g.value);g=k.next().value;k=k.next().value;k!==void 0&&f.push({fieldName:g,value:k})}c.call(b,{bulkEditOps:[{issueIds:d,actions:f}],recaptchaToken:a.stateModal.issueEditBuilder.recaptchaResponse})},
hRd=function(a){a.hasSelectedIssues()&&(eRd(a),SA(a.matDialog.open(C3,{width:"400px"})).pipe(zf(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&E3(a,"reporter",b)}),a.hotkeys.pause())},iRd=function(a,b,c,d){d=d===void 0?!1:d;a.hasSelectedIssues()&&(SA(a.matDialog.open(x3,{width:"400px",data:{fieldDisplayName:c}})).pipe(zf(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();e&&pRd(a,b,e.addItems,e.removeItems,d)}),a.hotkeys.pause())},lRd=function(a){a.hasSelectedIssues()&&(SA(a.matDialog.open(yQd,
{width:"330px",data:{fieldDisplayName:"SLO Start Time"}})).pipe(zf(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();if(b&&(b=b.date)){var c=[];c.push({fieldName:"sloStartTime",value:String(b.seconds)});c.length&&a.onSave.emit({bulkEditOps:[{issueIds:Tt(a),actions:c}]})}}),a.hotkeys.pause())},mRd=function(a){var b,c;y(function(d){if(d.nextAddress==1)return z(d,fe(a.effortSpec$),2);b=d.yieldResult;if(!a.hasSelectedIssues()||b===void 0)return d.return();c=a.matDialog.open(w3,{width:"400px",data:{fieldDisplayName:"Estimated Effort",
effortSpec:b}});SA(c).pipe(zf(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();if(e){var f=[];f.push({fieldName:"effortEstimate",value:e.estimate});a.onSave.emit({bulkEditOps:[{issueIds:Tt(a),actions:f}]})}});a.hotkeys.pause();ae(d)})},pRd=function(a,b,c,d,e){e=e===void 0?!1:e;c=Nt(c);d=Nt(d);var f=[],g=!["foundInVersion","targetedToVersion","verifiedInVersion"].includes(b),k=function(l){return ZQa(l,g).map(function(r){return r.trim()})};ya(c)||(c=k(c),e&&(c=c.filter(function(l){return!isNaN(l)})),
f.push.apply(f,q(c.map(function(l){return{fieldName:b,value:l,actionType:"ADD"}}))));ya(d)||(d=k(d),f.push.apply(f,q(d.map(function(l){return{fieldName:b,value:l,actionType:"REMOVE"}}))));f.length&&a.onSave.emit({bulkEditOps:[{issueIds:Tt(a),actions:f}]})},gRd=function(a){a.hasSelectedIssues()&&(SA(a.matDialog.open(u3,{width:"600px",position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(zf(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.onSave.emit({bulkEditOps:[{issueIds:Tt(a),
actions:[{fieldName:"componentId",value:String(b.componentId)}]}]}),a.analytics.trackEvent(a.controllerName,"bulkMove"))}),a.hotkeys.pause())},qRd=function(a){a.hasSelectedIssues()&&(SA(a.matDialog.open(wQd,{width:"600px",data:{issuesToFlag:a.getSelectedIssues()}})).pipe(zf(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.analytics.trackEvent(a.controllerName,"bulkFlagAsSpam"),E3(a,"deletionReason","ABUSE"))}),a.hotkeys.pause())},kRd=function(a){a.hasSelectedIssues()&&a.addCommentDialog&&
(a.comment||(a.comment=bRd(a)),a.addCommentDialogRef=a.matDialog.open(a.addCommentDialog,{panelClass:"no-jitter",minWidth:512,maxWidth:512}),SA(a.addCommentDialogRef).pipe(zf(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();a.comment&&(b&&jnd(a.comment)&&E3(a,"comment",a.comment.value),a.comment.reset())}),a.hotkeys.pause(),eRd(a))},GMb=function(a){var b;(b=a.addCommentDialogRef)==null||b.close(!0)},jRd=function(a){a.hasSelectedIssues()&&SA(a.matDialog.open(x_,{data:a.getSelectedIssues(),
width:"500px"})).pipe(zf(a.destroyed$)).subscribe(function(b){b&&(a.onSave.emit({bulkEditOps:b}),a.analytics.trackEvent(a.controllerName,"bulkCustomField"))})};D3.prototype.openHotlistPicker=function(){if(this.hasSelectedIssues()){var a;(a=this.hotlistPicker)==null||a.open()}};
D3.prototype.handleHotlistPickerSave=function(a){var b=a.newSelectionMap;var c=a.oldSelectionMap;this.analytics.trackEvent("hotlistPicker","edit","base_controls");var d=[],e=[],f=0;Object.entries(b).forEach(function(g){var k=m(g);g=k.next().value;k=k.next().value;k!==c[g]&&(k?d.push(g):e.push(g),f++)});a=[];d.length&&a.push({fieldName:"hotlists",actionType:"ADD",value:d.join(",")});e.length&&a.push({fieldName:"hotlists",actionType:"REMOVE",value:e.join(",")});a.length&&(this.onSave.emit({bulkEditOps:[{issueIds:Tt(this),
actions:a}]}),this.analytics.trackEvent(this.controllerName,"applyHotlists","numHotlists",f))};var nRd=function(a,b){var c=b.actionType;var d=b.fieldName;a.issuePicker.open({title:b.title,edgeType:b.edgeType,originIsBulk:!0},function(e){a.hotkeys.unpause();e.length!==0&&(e=e[0],a.onSave.emit({bulkEditOps:[{issueIds:Tt(a),actions:[{fieldName:d,value:e,actionType:c}]}]}))});a.hotkeys.pause()};D3.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(D3)))(b||D3)}}();
D3.\u0275cmp=D({type:D3,selectors:[["b-grid-controls-base"]],viewQuery:function(a,b){a&1&&(hg(aRd,5),hg(y3,5),hg(B3,5));if(a&2){var c;lg(c=mg())&&(b.addCommentDialog=c.first);lg(c=mg())&&(b.hotlistPicker=c.first);lg(c=mg())&&(b.stateModal=c.first)}},inputs:{hotlistChoices:"hotlistChoices"},outputs:{onSave:"onSave",onCreateHotlist:"onCreateHotlist",onLoadHotlist:"onLoadHotlist"},standalone:!1,features:[Ef],decls:0,vars:0,template:function(){},encapsulation:2});var F3=function(){};F3.\u0275fac=function(a){return new (a||F3)};F3.\u0275mod=$e({type:F3});F3.\u0275inj=Fc({imports:[WO,WJ,mB,HE,DE,jA,wK,iK,pK,GU]});var G3=function(){};G3.\u0275fac=function(a){return new (a||G3)};G3.\u0275mod=$e({type:G3});G3.\u0275inj=Fc({imports:[WO,TJ,fX,DE,mB,GU,WJ,w0,A0,A3,Q_]});var H3=function(){D3.apply(this,arguments);this.panels=[];this.isNonPublicSession=this.activeSession.isNonPublicSession();this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha();this.controllerName="dashboardControls";this.onSelectionChange.bind(this);this.getCommonEffortSpec.bind(this)};Y(H3,D3);H3.\u0275dir=D3.\u0275dir;H3.prototype.ngOnChanges=function(a){if(a.panels)this.onSelectionChange()};
H3.prototype.getSelectedIssues=function(){var a=this.panels.flatMap(function(b){return b.selectedIssues});Bba(a,null,function(b){return b.issueId.toString()});return a};H3.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(H3)))(b||H3)}}();
H3.\u0275cmp=D({type:H3,selectors:[["b-dashboard-controls"]],inputs:{panels:"panels"},standalone:!1,features:[Gg([bQ]),Ef,jx],decls:7,vars:5,consts:[["addCommentDialog",""],[3,"readStatePrompt","enableBulkEstimatedEffortOption"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks"],[1,"bv2-grid-hotlist-picker"],[1,"bv2-appbar-menu",3,"flagAsSpamClicked","showFlagIssuesAsSpam"],[3,"save","close","externalWarnings"],[3,"onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead","readStatePrompt",
"enableBulkEstimatedEffortOption"],[3,"onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch","shortLinkPrefix","shouldShowCopyIssueShortLinks"],[3,"onApply","onCreate","onLoad","selectedHotlistIds","choices"],["mat-dialog-title",""],[3,"comment","showToolbar","isLiteralModeSupported"],[3,"externalWarnings"],[1,"flex-kids-x","justify-flex-end"],["type","button","mat-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"medium",
"primary",3,"disabled","mat-dialog-close"],[3,"commentChange","onSubmit","comment","showToolbar","isLiteralModeSupported"],[3,"onUpdate"]],template:function(a,b){if(a&1){var c=t();F(0,AMb,2,4,"b-app-bar-bulk-edit-menus",1);F(1,EMb,1,2,"b-copy-issue-id-button",2);F(2,FMb,2,2,"div",3);K(3,"b-app-bar-more-menu",4);N("flagAsSpamClicked",function(){u(c);return v(qRd(b))});L();K(4,"b-state-modal",5);N("save",function(){u(c);return v(oRd(b))})("close",function(){u(c);return v(b.hotkeys.unpause())});L();
E(5,JMb,11,6,"ng-template",null,0,Mg)}a&2&&(G(b.hasSelectedIssues()?0:-1),B(),G(b.hasSelectedIssues()?1:-1),B(),G(b.enableBulkEditUi&&b.hasSelectedIssues()?2:-1),B(),I("showFlagIssuesAsSpam",b.isNonPublicSession&&b.hasSelectedIssues()),B(),I("externalWarnings",b.externalWarnings))},dependencies:[RNd,c2,s0,$Pd,y3,kB,gB,VA,XA,ZA,YA,B3,qY,z3,Tx],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var I3=function(){};I3.\u0275fac=function(a){return new (a||I3)};I3.\u0275mod=$e({type:I3});
I3.\u0275inj=Fc({imports:[e2,NU,w0,WO,fX,i3,F3,GU,mB,TJ,G3,A0,A3]});var rRd=function(a,b,c){this.index=a;this.inherited=c;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);this.componentId=b.componentId},sRd=function(a,b){this.cellType=b;this.enumFields=null;this.id=a.customFieldId;this.name=a.name;this.type=a.type;if(this.type==="ENUM"||this.type==="REPEATED_ENUM")this.enumFields=(a.allowedValue||[]).map(function(c){return{displayText:c,
value:c}});this.repeated=["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(a.type)},J3=function(a,b){this.dirty=!1;this.collaboratorGroups=[];var c=b.snapshot||{};this.customFields=a;this.new=b.templateId==null;this.componentId=b.componentId;this.name=b.name||"";this.description=b.description||"";this.inheritable=b.inheritable||!1;this.type=c.type||"--";this.priority=c.priority||"--";this.severity=c.severity||"--";this.assignee=wm(c.assigneeUser)||"";this.verifier=wm(c.verifierUser)||
"";this.collaborators=vm(c.collaboratorsUsers).map(tm);this.staffing=c.staffing||null;this.cc=vm(c.ccUsers).map(tm);this.title=c.title||"";this.comment=c.comment||"";this.formattingMode=c.formattingMode?c.formattingMode:"PLAIN";this.hotlistId=c.hotlistId||[];this.inProd=c.inProd||!1;this.issueAccessLimitLevel=c.issueAccessLimitLevel||"LIMIT_NONE";this.customFieldValues=Object.create(null);a=m(c.customField||[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.customFieldValues[b.customFieldId.toString()]=
b;a=m(Object.entries(this.customFields));for(b=a.next();!b.done;b=a.next())c=m(b.value),b=c.next().value,c=c.next().value,b=Number(b),this.customFieldValues[b]||(this.customFieldValues[b]=c.typedDefaultValue!=null?c.typedDefaultValue:{customFieldId:b})},uRd=function(a,b){b.name=a.name;b.description=a.description;b.inheritable=a.inheritable;var c=b.snapshot||{};c.componentId=a.componentId;tRd(a.type)?delete c.type:c.type=a.type;tRd(a.priority)?delete c.priority:c.priority=a.priority;tRd(a.severity)?
delete c.severity:c.severity=a.severity;c.assigneeUser=xm(a.assignee);c.verifierUser=xm(a.verifier);c.collaboratorsUsers=a.collaborators.map(function(f){return xm(f)});a.collaboratorGroups.length>0&&(c.collaboratorsUsers=dRa(a.collaboratorGroups).concat(c.collaboratorsUsers||[]));c.staffing=a.staffing;c.ccUsers=a.cc.map(function(f){return xm(f)});c.comment=a.comment;c.formattingMode=a.formattingMode;c.title=a.title;c.hotlistId=a.hotlistId;c.inProd=a.inProd;c.customField=[];c.issueAccessLimitLevel=
a.issueAccessLimitLevel;for(var d=m(Object.keys(a.customFields)),e=d.next();!e.done;e=d.next())(e=a.customFieldValues[e.value])&&!Uq(e)&&c.customField.push(e);b.snapshot=c};
J3.prototype.setCustomField=function(a,b){a=String(a);if(this.customFieldValues[a]){var c=this.customFields[a].type;if(!c)return;switch(c){case "TYPE_UNSPECIFIED":break;case "TEXT":this.customFieldValues[a].textValue=b;break;case "DATE":this.customFieldValues[a].dateValue=b;break;case "ENUM":this.customFieldValues[a].enumValue=b;break;case "NUMERIC":this.customFieldValues[a].numericValue=b;break;case "REPEATED_TEXT":this.customFieldValues[a].repeatedTextValue={values:b||[]};break;case "REPEATED_DATE":this.customFieldValues[a].repeatedDateValue=
{values:b||[]};break;case "REPEATED_ENUM":this.customFieldValues[a].repeatedEnumValue={values:b||[]};break;case "REPEATED_NUMERIC":this.customFieldValues[a].repeatedNumericValue={values:b||[]};break;default:Xm("Unexpected custom field type: "+c)}}this.dirty=!0};J3.prototype.isDirty=function(){return this.dirty};J3.prototype.setFormattingMode=function(a){this.formattingMode=a;this.dirty=!0};J3.prototype.onAccessLimitLevelSelected=function(a){this.issueAccessLimitLevel=a;this.dirty=!0};
var tRd=function(a){return ya(a)||a==="--"};J3.prototype.getCollaboratorGroupsString=function(){return this.collaboratorGroups.length===0?"":this.collaboratorGroups.length>1?this.collaboratorGroups.length+" groups selected":this.collaboratorGroups[0]};J3.prototype.separateCollaboratorGroups=function(a){a=new Set(a);for(var b=[],c=m(this.collaborators),d=c.next();!d.done;d=c.next())d=d.value,a.has(d)?this.collaboratorGroups.push(d):b.push(d);this.collaborators=b};
var UOb=function(a,b){a.collaborators=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});a.dirty=!0},VOb=function(a,b){a.cc=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});a.dirty=!0},vRd={value:"--",displayText:"--"};var wRd=new ql("M/d/yyyy"),K3=function(){this.dateFormatter=p(hS);this.boundValueChange=new aQ;this.textValue="";this.ariaLabelledBy=this.inputId=void 0;this.isRequired=!1};K3.prototype.ngOnInit=function(){if(this.boundValue){if(this.boundValue)if(typeof this.boundValue==="string")var a=TQa(this.boundValue);else{var b;a=(b=Sq(this.boundValue))!=null?b:void 0}else a=void 0;this.googDate=a;this.change(this.googDate,!0)}};
K3.prototype.change=function(a,b){b=b===void 0?!1:b;var c=this.googDate;if((c&&a?!c.equals(a):c||a)&&!b){this.googDate=a;if(a)if(typeof this.boundValue==="string")a=wRd.format(a);else{var d;a=(d=m1a(wRd.format(a)))!=null?d:void 0}else a=typeof this.boundValue==="string"?"":void 0;this.boundValue=a;this.boundValueChange.emit(this.boundValue);this.textValue=this.googDate?this.dateFormatter.formatUserCalendar(this.googDate):""}};K3.\u0275fac=function(a){return new (a||K3)};
K3.\u0275cmp=D({type:K3,selectors:[["bv2-input-date-picker"]],inputs:{boundValue:"boundValue",inputId:[0,"bv2Id","inputId"],ariaLabelledBy:[0,"bv2AriaLabelledby","ariaLabelledBy"],isRequired:"isRequired"},outputs:{boundValueChange:"boundValueChange"},standalone:!1,decls:1,vars:4,consts:[[3,"valueChange","required","value","customFormId","customAriaLabelledBy"]],template:function(a,b){a&1&&(K(0,"b-date-time-input",0),N("valueChange",function(c){return b.change(c)}),L());a&2&&I("required",b.isRequired)("value",
b.googDate)("customFormId",b.inputId)("customAriaLabelledBy",b.ariaLabelledBy)},dependencies:[s_],encapsulation:2});var L3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(L3,W);L3.prototype.getComponentId=function(){return pn(this,1)};L3.prototype.getComponentId_asString=function(){return tn(this,1)};L3.prototype.setComponentId=function(a){return Io(this,1,a)};L3.prototype.setFieldId=function(a){return Gw(this,2,Po,a)};var xRd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xRd,W);h=xRd.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return tn(this,1)};h.setComponentId=function(a){return Io(this,1,a)};h.getFieldConfigsV2List=function(){return Bi(this,fq,2,Ci())};h.setFieldConfigsV2List=function(a){return Ni(this,2,a)};var yRd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,yRd.messageId)};Y(yRd,W);yRd.prototype.getIt=function(){return X(this,L3,2,jb)};yRd.prototype.setIt=function(a){return Mi(this,L3,2,a,jb)};yRd.messageId="b.ReorderFieldsRequest";var zRd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,zRd.messageId)};Y(zRd,W);zRd.prototype.getIt=function(){return X(this,xRd,1,jb)};zRd.prototype.setIt=function(a){return Mi(this,xRd,1,a,jb)};zRd.messageId="b.UpdateFieldConfigsV2Request";var ARd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ARd,W);ARd.prototype.getFieldConfigsV2List=function(){return Bi(this,fq,1,Ci())};ARd.prototype.setFieldConfigsV2List=function(a){return Ni(this,1,a)};var BRd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,BRd.messageId)};Y(BRd,W);BRd.prototype.getIt=function(){return X(this,ARd,1,jb)};BRd.prototype.setIt=function(a){return Mi(this,ARd,1,a,jb)};BRd.messageId="b.UpdateFieldConfigsV2Response";var M3=function(){this.executor=p(bO)};M3.prototype.reorder=function(a,b){var c=new yRd,d=c.setIt;var e=(new L3).setComponentId(a);b=b.map(dWa);e=Ni(e,2,b);c=d.call(c,e);return this.executor.post({url:"action/components/"+a+"/reorder",body:c,responseConstructor:null})};var CRd=function(a,b,c){c=(new zRd).setIt((new xRd).setComponentId(b).setFieldConfigsV2List(c.map(eZa)));return a.executor.put({url:"action/components/"+b+"/update_field_configs_v2",body:c,responseConstructor:BRd}).pipe(A(function(d){return d.getIt().getFieldConfigsV2List().map($Ya)}))};
M3.\u0275fac=function(a){return new (a||M3)};M3.\u0275prov=Dc({token:M3,factory:M3.\u0275fac,providedIn:"root"});var DRd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(DRd,W);h=DRd.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return tn(this,1)};h.setComponentId=function(a){return Io(this,1,a)};h.getCustomFieldId=function(){return pn(this,2)};h.getCustomFieldId_asString=function(){return tn(this,2)};h.setCustomFieldId=function(a){return Io(this,2,a)};var ERd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ERd,W);h=ERd.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return tn(this,1)};h.setComponentId=function(a){return Io(this,1,a)};h.getCustomFieldId=function(){return pn(this,2)};h.getCustomFieldId_asString=function(){return tn(this,2)};h.setCustomFieldId=function(a){return Io(this,2,a)};var FRd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,FRd.messageId)};Y(FRd,W);FRd.prototype.getIt=function(){return X(this,DRd,1,jb)};FRd.prototype.setIt=function(a){return Mi(this,DRd,1,a,jb)};FRd.messageId="b.AddSharedCustomFieldToComponentRequest";var GRd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,GRd.messageId)};Y(GRd,W);GRd.prototype.getIt=function(){return X(this,ERd,1,jb)};GRd.prototype.setIt=function(a){return Mi(this,ERd,1,a,jb)};GRd.messageId="b.RemoveSharedCustomFieldFromComponentRequest";var N3=function(){this.executor=p(cO)};N3.prototype.add=function(a,b){var c="/action/components/"+a+"/add_shared_custom_field";a=(new FRd).setIt((new DRd).setComponentId(a).setCustomFieldId(b));return this.executor.post({url:c,body:a,responseConstructor:null})};N3.prototype.remove=function(a,b){var c="/action/components/"+a+"/remove_shared_custom_field";a=(new GRd).setIt((new ERd).setComponentId(a).setCustomFieldId(b));return this.executor.post({url:c,body:a,responseConstructor:null})};
N3.\u0275fac=function(a){return new (a||N3)};N3.\u0275prov=Dc({token:N3,factory:N3.\u0275fac,providedIn:"root"});var HRd=function(){this.dialogRef=p(RA);this.data=p(TA);this.selected=this.data.sharedFields[0];this.options=this.data.sharedFields};HRd.\u0275fac=function(a){return new (a||HRd)};
HRd.\u0275cmp=D({type:HRd,selectors:[["activate-shared-field-dialog"]],standalone:!1,decls:11,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium",3,"click"],[3,"valueChange","value"],[3,"value"],["href","http://go/buganizer/concepts/custom-fields#shared-custom-field","target","_blank"]],template:function(a,b){a&1&&(K(0,
"h1",0),Q(1,"Activate a shared field"),L(),K(2,"div",1),F(3,LMb,4,1,"mat-form-field")(4,MMb,1,0),F(5,NMb,4,0,"div"),L(),K(6,"footer",2)(7,"button",3),N("click",function(){return b.dialogRef.close()}),Q(8,"Cancel"),L(),K(9,"button",4),N("click",function(){return b.dialogRef.close(b.selected)}),Q(10,"Confirm"),L()());a&2&&(B(3),G(b.options.length>0?3:4),B(2),G(b.options.length>0?5:-1))},dependencies:[kB,gB,yU,SD,TH,hA,HD,XA,ZA,YA],encapsulation:2});var IRd=["fieldStateMenu"],RMb=function(a){return{type:a}},JRd=["SILENT","MINOR","MAJOR"],O3=function(){Z.apply(this,arguments);this.customFieldsApi=p(uP);this.checkBeforeExit=p(rY);this.butterBar=p(UN);this.analytics=p(eQ);this.routeParams=p(wS);this.componentActions=p(VV);this.fieldConfigService=p(M3);this.sharedCustomFieldApi=p(N3);this.documentationLinks=p(cS);this.paths=p(hW);this.confirmationDialog=p(dS);this.appEvents=p(UO);this.dialog=p(UA);this.activeSession=p(uu);this.sharedFieldCandidates=
h7a({isInternal:this.activeSession.isInternalSession(),isProd:xs(this.activeSession)});this.ROUTES=qs;this.FieldType=pV;this.ListFieldType=bud;this.getSingleEditFieldType=fbb;this.getListFieldType=Ncb;this.isRepeated=ZVa;this.typeChoices=["TEXT","DATE","ENUM","NUMERIC"];this.secondaryTypes=["Single","Multiple"];this.significanceChoices=JRd;this.customFields=[];this.inheritedCustomFields=[];this.sharedFields=[];this.componentIdsToNames={};this.isLoading=!1;this.editableField=null;this.allowedValues=
[];this.originalEditableFieldValue=null;this.componentId=String(this.routeParams.componentId)};Y(O3,Z);O3.\u0275dir=Z.\u0275dir;O3.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(sY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!0));this.loadCustomFields()};
O3.prototype.ngOnChanges=function(){var a=new Map;if(this.parentComponent)for(var b=Ut(this.parentComponent,this.activeSession),c=0;c<b.length;c++){var d=b[c];a.set(d.customFieldId,d.enabledOnIssues)}this.fieldsEnabledOnParentComponent=a};
O3.prototype.editField=function(a){window.scrollTo({top:0,behavior:"smooth"});if(!this.hasUnsavedChanges()||ABd(this.checkBeforeExit))this.editableField=nm(this.customFields[a]),this.originalEditableFieldValue=nm(this.editableField),this.serverError=null,this.setType(this.editableField.type),VMb(this,this.editableField.allowedValue)};
var gNb=function(a,b){var c=a.customFields[b];a.confirmationDialog.open({title:"Deleting field: "+c.name,content:Bh("Deleting a custom field is permanent and will remove display of this custom field on all issues in this component and child components. However, data will remain in the system and may be visible through other means (ex: extracts or direct API calls). If you have sensitive data concerns, please file a support request to have the data deleted from affected issues. Are you sure you want to delete this field definition?"),onConfirm:function(){a.doDelete(c)}})};
O3.prototype.doDelete=function(a){var b=this;Rr(this.butterBar,"Deleting field: "+a.name,2E3);this.customFieldsApi.delete(this.componentId,a.customFieldId).then(function(){b.appEvents.componentModified.next(b.componentId);b.analytics.trackEvent("customField","delete");Rr(b.butterBar,"Deleted field: "+a.name,2E3);b.loadCustomFields()})};
O3.prototype.save=function(){var a=this;this.isLoading=!0;var b=function(){a.appEvents.componentModified.next(a.componentId);a.loadCustomFields();a.analytics.trackEvent("customField",d)},c=function(e){a.serverError=Qp(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=void 0;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)};O3.prototype.cancel=function(){this.originalEditableFieldValue=this.editableField=null};
var YMb=function(a,b){var c=a.editableField.type,d=c==="TEXT"&&PQa(b)?b:void 0,e=c==="DATE"&&b&&k1a(b)?b:void 0,f=c==="ENUM"&&PQa(b)?b:void 0,g=c==="NUMERIC"&&OQa(b)?b:void 0,k=c==="REPEATED_TEXT"&&om(b)?{values:b}:void 0,l=c==="REPEATED_DATE"&&Array.isArray(b)&&b.every(k1a)?{values:b}:void 0,r=c==="REPEATED_ENUM"&&om(b)?{values:b}:void 0;b=c==="REPEATED_NUMERIC"&&QQa(b)?{values:b}:void 0;a.editableField.typedDefaultValue={customFieldId:a.editableField.customFieldId,textValue:d,dateValue:e,enumValue:f,
numericValue:g,repeatedTextValue:k,repeatedDateValue:l,repeatedEnumValue:r,repeatedNumericValue:b}};O3.prototype.setType=function(a,b){var c=this.editableField.type;if(b===void 0?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=void 0)};
var VMb=function(a,b){b=b==null?void 0:b.map(function(c){return c.toString()});a.editableField.allowedValue=b;a.allowedValues=b?b.map(function(c){return{value:c,displayText:c}}):[]};O3.prototype.hasUnsavedChanges=function(){return this.editableField&&!mm(this.editableField,this.originalEditableFieldValue)?!0:!1};
O3.prototype.loadCustomFields=function(){var a=this;var b=b===void 0?!1:b;b||(this.isLoading=!0);return this.componentActions.get(this.componentId).then(function(c){var d=Ut(c,a.activeSession),e=[];a.componentIdsToNames={};var f,g=((f=c.componentPathInfo)==null?void 0:f.componentPathId)||[];for(f=0;f<g.length;f++)e.push(c.componentPathInfo.componentPathName[f]),a.componentIdsToNames[c.componentPathInfo.componentPathId[f]]=e.join(" > ");a.editableField=null;a.originalEditableFieldValue=null;b||(a.isLoading=
!1);c=function(l,r){return wa(l.name,r.name)};a.customFields=d.filter(function(l){return a.componentId===l.componentId}).sort(c);a.inheritedCustomFields=d.filter(function(l){return a.componentId!==l.componentId&&!l.shared}).sort(c);var k=new Map(d.filter(function(l){return a.componentId!==l.componentId&&l.shared}).map(function(l){return[l.customFieldId,l]}));a.sharedFields=a.sharedFieldCandidates.map(function(l){return k.get(l.customFieldId)}).filter(Pm);a.appEvents.customFieldsModified.next(d)})};
O3.prototype.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};var ZMb=function(a){var b;return(a=(b=a.editableField)==null?void 0:b.typedDefaultValue)?Tq(a):null};O3.prototype.getListFieldValues=function(){var a,b=(a=this.editableField)==null?void 0:a.typedDefaultValue,c,d;return(d=(c=b?Tq(b):null)==null?void 0:c.values)!=null?d:null};O3.prototype.setFieldSignificance=function(a){this.editableField.fieldSignificance=a};
var uNb=function(a){var b={sharedFields:vNb(a)};SA(a.dialog.open(HRd,{data:b,width:"450px"})).subscribe(function(c){c&&a.sharedCustomFieldApi.add(a.componentId,c.customFieldId).then(function(){a.appEvents.componentModified.next(a.componentId);a.loadCustomFields()})})},pNb=function(a,b){a.confirmationDialog.open({title:"Deactivate shared field",content:Bh("Deactivating a shared custom field will hide this shared field when there is no value set on the issue. However, data will remain in the system. Are you sure you want to deactivate this shared field?"),
onConfirm:function(){a.sharedCustomFieldApi.remove(a.componentId,b).then(function(){a.appEvents.componentModified.next(a.componentId);a.loadCustomFields()})}})},vNb=function(a){var b=a.sharedFields.map(function(c){return c.customFieldId});return a.sharedFieldCandidates.filter(function(c){return!b.includes(c.customFieldId)})};O3.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(O3)))(b||O3)}}();
O3.\u0275cmp=D({type:O3,selectors:[["b-component-custom-fields"]],viewQuery:function(a,b){a&1&&hg(IRd,5);if(a&2){var c;lg(c=mg())&&(b.fieldStateMenus=c)}},inputs:{editMode:"editMode",isSaving:"isSaving",component:"component",parentComponent:"parentComponent"},standalone:!1,features:[Ef,jx],decls:4,vars:2,consts:[["typeHelp",""],["enumMenu","matMenu"],["secondaryMenu","matMenu"],["significanceHelp",""],["significanceMenu","matMenu"],["card","onedevHovercard"],["cardBody",""],[1,"edit-resource-panel",
"edit-component-field-parent"],[1,"edit-custom-field-panel"],[1,"custom-fields-loader"],[1,"bv2-validation-error-banner"],["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,"ngModelChange","bFocus","ngModel","disabled"],["for","field-description",1,"help-label"],["name","fieldDescription","id","field-description",3,"ngModelChange","ngModel","disabled"],[1,"edit-custom-field-table"],
[1,"field-label-with-help","bv2-component-custom-field-label"],["id","field-type-label",1,"help-label",3,"onedevHovercardTrigger"],["role","dialog","aria-label","Type help hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["type","button","mat-button","","mat-stroked-button","","aria-labelledby","field-type-label",1,"bv2-enum-field",3,"matMenuTriggerFor","disabled"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],
["matMenuContent",""],["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"],["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"],["id","field-required-label",1,"bv2-component-custom-field-label"],
["aria-labelledby","field-required-label",3,"valueChange","name","type","tooltip","value"],["id","field-significance-label","tabindex","0","aria-label","Field Significance - Press alt+right arrow to learn more.",1,"help-label",3,"onedevHovercardTrigger"],[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",3,"matMenuTriggerFor"],["mat-menu-item","","type","button"],["mat-raised-button","","color","primary","type","button",3,"click","disabled"],["mat-stroked-button","","type","button",3,"click"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],["id","field-enums-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-enums-label",3,"valuesChange","defaultLineCount","type","values","listFieldDisabled","preventDuplicates",
"isDefaultOrAllowedValues","truncate"],["aria-labelledby","field-default-label",3,"valueChange","name","type","tooltip","value","choices","showEnumTitle","disabled","truncate","clearable"],["aria-labelledby","field-repeated-default-label",3,"valuesChange","defaultLineCount","type","tooltip","values","enumChoices","isDefaultOrAllowedValues","listFieldDisabled","truncate"],["mat-menu-item","","type","button",3,"click"],[3,"large"],[1,"custom-fields-table"],[1,"enabled-field"],[1,"edit-button-row"],
[3,"customFieldValue"],[1,"action-buttons"],["type","button","mat-stroked-button","",3,"click"],["colspan","9",1,"custom-fields-inherited-parent"],["colspan","9"],[3,"class"],[1,"ancestor-component-note"],[1,"header-label"],[3,"click","onedevHovercardTrigger","href"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["type","button","mat-stroked-button","",3,"click","disabled","matTooltip"],["routerLink","./","fragment","fieldOrdering",1,"keep-underline"],["type","button","mat-raised-button",
"","color","primary",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"div",7),F(1,dNb,70,29,"div",8),F(2,eNb,2,1,"div",9)(3,xNb,29,8,"div"),L());a&2&&(B(),G(b.editableField&&!b.isLoading?1:-1),B(),G(b.isLoading?2:3))},dependencies:[hF,nE,xj,fE,gE,yE,mE,kE,OV,oV,sT,KK,LK,SK,MK,SV,vK,nA,VJ,fH,dH,eH,iH,kB,gB,xW,s3,cU,psd,bV,dV],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 KRd=["allocationInput"],LRd=["editAllocationBtn"],MRd=function(a,b){return b.columnDef},HNb=function(a,b){return b.value},XNb=function(a,b){return b.displayText},P3=function(){var a=this;this.subscriptions=new Pd;this.userToLossyEmail=wm;this.rows$=new Mj([]);this.trackBy=function(b,c){return c[0].user.user.emailAddress};this.tableColumns$=new Mj(["user","involvement","remove-user"]);this.timeboundQuarterColumns$=new Mj([]);this.Involvement=wbd;this.involvementOptions=zmd.map(function(b){return{value:b,
displayText:oo[b]}});this.roleOptions$=new Mj([{value:void 0,displayText:"--"}].concat(q(Amd.map(function(b){return{value:b,displayText:JN[b]}}))));this.allocationUnderEdit=null;this.allocationInputChanges$=new Mj("");this.allocations=[];this.staffingEnhancementsEnabled=this.isAllowedToEdit=!1;this.updatedAllocations=new aQ;this.removedUser=new aQ;this.subscriptions.add(this.allocationInputChanges$.pipe(jf(250),nf()).subscribe(function(){cOb(a);if(a.allocationInputEl){var b;a.allocationInputEl.nativeElement.value=
(b=a.allocationFromInputPlain)!=null?b:""}}))};P3.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};P3.prototype.ngOnChanges=function(a){(a.allocations||a.staffingEnhancementsEnabled)&&NRd(this);a.staffingEnhancementsEnabled&&this.roleOptions$.next([{value:void 0,displayText:"--"}].concat(q((this.staffingEnhancementsEnabled?Bmd:Amd).map(function(b){return{value:b,displayText:JN[b]}}))))};
var NRd=function(a){var b=[];if(a.staffingEnhancementsEnabled){var c=a.allocations.some(function(l){var r;return((r=l.allocation)==null?void 0:r.percentage)!==void 0});b=ORd(a,c);var d=[];d=b.length?b.map(function(l){return l.columnDef}):[c?"allocation":"involvement"];a.tableColumns$.next(["user","role","is-lead"].concat(q(d),["remove-user"]));a.timeboundQuarterColumns$.next(b)}else a.tableColumns$.next(["user","involvement","remove-user"]),a.timeboundQuarterColumns$.next([]);c=new Map;d=m(a.allocations.filter(function(l){var r;
return(r=l.user)==null?void 0:r.user}));for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,g=void 0,k=(f=e.user)==null?void 0:(g=f.user)==null?void 0:g.emailAddress;k&&(f=void 0,g=(f=c.get(k))!=null?f:[],g.push(e),c.set(k,g))}c=[].concat(q(c.values()));a.rows$.next(c.map(function(l){var r=[];if(b.length){for(var w=m(b),x=w.next();!x.done;x=w.next()){x=x.value;var C=x.extractPlannedAllocation(l),H=void 0,J=void 0;((H=C.allocation)==null?void 0:H.startDate)===x.startDate&&((J=C.allocation)==
null?void 0:J.endDate)===x.endDate?r.push(C):(J=H=void 0,r.push(Object.assign({},C,{allocation:Object.assign({},C.allocation,{aggregationValue:(J=(H=C.allocation)==null?void 0:H.aggregationValue)!=null?J:0,startDate:DTa(x.startDate),endDate:DTa(x.endDate)})})))}l=r}return l}).sort(function(l,r){var w,x,C,H,J,O;l=(J=(w=l[0].user)==null?void 0:(x=w.user)==null?void 0:x.emailAddress)!=null?J:"";r=(O=(C=r[0].user)==null?void 0:(H=C.user)==null?void 0:H.emailAddress)!=null?O:"";return!l&&r?-1:!r&&l?1:
l.localeCompare(r)}))},ORd=function(a,b){a=PRd(a);var c=a.earliestDate,d=a.latestDate;a=[];if(!c||!d)return a;var e=ETa(c).quarterStartDate;c=ETa(d).quarterStartDate;d=e;for(e={};d<=c;e={quarterStartDate$jscomp$1:void 0,quarterEndDate$jscomp$1:void 0}){var f=ETa(d);e.quarterStartDate$jscomp$1=f.quarterStartDate;e.quarterEndDate$jscomp$1=f.quarterEndDate;f=e.quarterStartDate$jscomp$1.getFullYear();var g=Math.floor(e.quarterStartDate$jscomp$1.getMonth()/3)+1;a.push({columnDef:"q"+g+"-"+f,displayText:"Q"+
g+" "+f,startDate:e.quarterStartDate$jscomp$1,endDate:e.quarterEndDate$jscomp$1,extractPlannedAllocation:function(k){return function(l){a:{var r=k.quarterStartDate$jscomp$1,w=k.quarterEndDate$jscomp$1;if(r||w){for(var x=m(l),C=x.next();!C.done;C=x.next()){C=C.value;var H=void 0,J=void 0,O=((H=C.allocation)==null?0:H.startDate)?bo((J=C.allocation)==null?void 0:J.startDate):void 0;J=H=void 0;var R=((H=C.allocation)==null?0:H.endDate)?bo((J=C.allocation)==null?void 0:J.endDate):void 0;if(!O&&!R||!O&&
w&&R>=w||!R&&r&&O<=r||O&&R&&r&&w&&O<=r&&R>=w){l=C;break a}}l=Object.assign({},l[0],{allocation:{involvement:"ZERO",aggregationValue:0,startDate:r?DTa(r):void 0,endDate:w?DTa(w):void 0}})}else l=l[0]}return l}}(e),displayInvolvementAsPercentage:b});d=new Date(d.getFullYear(),d.getMonth()+3,1)}return a},PRd=function(a){var b=void 0,c=void 0;a=m(a.allocations);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=void 0,g=((e=d.allocation)==null?0:e.startDate)?bo((f=d.allocation)==null?void 0:
f.startDate):void 0;if(g){if(!b||g<b)b=g;if(!c||g>c)c=g}f=e=void 0;if(g=((e=d.allocation)==null?0:e.endDate)?bo((f=d.allocation)==null?void 0:f.endDate):void 0){if(!b||g<b)b=g;if(!c||g>c)c=g}}return{earliestDate:b,latestDate:c}},QNb=function(a,b,c,d,e){var f,g,k,l,r,w,x,C,H,J;return y(function(O){f=po(c);if(!f||!d&&e===void 0||((g=c.allocation)==null?void 0:g.involvement)===d&&((k=c.allocation)==null?void 0:k.percentage)===e)return a.allocationUnderEdit=null,a.allocationFromInputPlain=void 0,O.return();
l=b.filter(function(R){return po(R)!==f});r=no(c);w=[].concat(q(a.allocations.filter(function(R){return no(R)!==r})),q(l));if(d&&d!=="INVOLVEMENT_UNSPECIFIED")x=Object.assign({},c.allocation,{involvement:d,aggregationValue:0,percentage:void 0});else if(e!==void 0||d==="INVOLVEMENT_UNSPECIFIED")e!=null||(e=1),x=Object.assign({},c.allocation,{percentage:e,aggregationValue:0,involvement:void 0});w.push(Object.assign({},c,{allocation:x}));C=a.rows$.value.findIndex(function(R){return no(R[0])===r});H=
b.findIndex(function(R){return po(R)===f});J=H*a.rows$.value.length+C;a.updatedAllocations.emit(w);a.allocationUnderEdit=null;a.allocationFromInputPlain=void 0;setTimeout(function(){var R,V;(R=a.editAllocationBtns.get(J))==null||(V=R.nativeElement)==null||V.focus()},0);ae(O)})},TNb=function(a,b){var c=b==null?void 0:b.allocation,d="";if((c==null?void 0:c.percentage)!==void 0)d=""+Math.round((c==null?NaN:c.percentage)*100);else if(c==null?0:c.involvement)d=oo[c==null?void 0:c.involvement];a.allocationFromInputPlain=
d;a.allocationUnderEdit=b!=null?b:null;a.allocationUnderEdit&&setTimeout(function(){a.allocationInputEl.nativeElement.focus();a.allocationInputChanges$.next(d)},0)},Vt=function(a,b,c){var d,e=(d=a.allocationInputEl)==null?void 0:d.nativeElement.value.toLowerCase();d=Number(e);var f,g=(f=a.involvementOptions.find(function(r){return r.value.toLowerCase()===e}))==null?void 0:f.value;if(!c||c.key==="Enter")!isNaN(d)&&d>=0&&d<=100?QNb(a,b,a.allocationUnderEdit,void 0,Math.round(d)/100):g&&QNb(a,b,a.allocationUnderEdit,
g),a.allocationUnderEdit=null,a.allocationFromInputPlain=void 0;else if(c.key==="Escape"||c.key==="Esc")if(c.stopPropagation(),b=a.allocations.findIndex(function(r){return po(r)===po(a.allocationUnderEdit)}),TNb(a),b>=0){var k,l;(k=a.editAllocationBtns.get(b))==null||(l=k.nativeElement)==null||l.focus()}},cOb=function(a){var b,c,d=(c=(b=a.allocationFromInputPlain)==null?void 0:b.toLowerCase())!=null?c:"";d!==""&&((b=Number(d),isNaN(b))?a.involvementOptions.map(function(e){return e.displayText.toLowerCase()}).find(function(e){return d===
e||e.startsWith(d)})||(a.allocationFromInputPlain=""):a.allocationFromInputPlain=b<0?"0":b>100?"100":b>0&&b<1?String(Math.round(b*100)):String(Math.round(b)))},LNb=function(a,b,c){var d,e,f,g,k,l;return y(function(r){d=no(b);if(!d)return r.return();e=[].concat(q(a.allocations));f=!1;for(g=0;g<e.length;g++)k=e[g],l=void 0,no(k)===d&&!((l=k.user)==null||!l.isLead)!==c&&(e[g]=Object.assign({},k,{user:Object.assign({},k.user,{isLead:c})}),f=!0);if(!f)return r.return();a.updatedAllocations.emit(e);ae(r)})},
GNb=function(a,b,c){var d,e,f,g,k,l;return y(function(r){d=no(b);if(!d)return r.return();e=[].concat(q(a.allocations));f=!1;for(g=0;g<e.length;g++)k=e[g],l=void 0,no(k)===d&&((l=k.user)==null?void 0:l.role)!==c&&(e[g]=Object.assign({},k,{user:Object.assign({},k.user,{role:c!=="JOB_ROLE_UNSPECIFIED"?c:void 0})}),f=!0);if(!f)return r.return();a.updatedAllocations.emit(e);ae(r)})},kOb=function(a,b){var c,d,e,f,g;return y(function(k){c=no(b);if(!c)return k.return();d=[].concat(q(a.allocations)).filter(function(l){return no(l)!==
c});if(d.length===a.allocations.length)return k.return();a.updatedAllocations.emit(d);g=(e=b.user)==null?void 0:(f=e.user)==null?void 0:f.emailAddress;a.removedUser.emit(g);ae(k)})},UNb=function(a){a=a.allocation;if(!a)return"";if(a.percentage!==void 0)return Math.round(a.percentage*100)+"%";if(a.involvement){var b=a.aggregationValue;if(b===0&&a.involvement!=="ZERO")switch(a.involvement){case "HIGH":b=1;break;case "MEDIUM":b=.5;break;case "LOW":b=.25}return Math.round(b*100)+"% ("+(oo[a.involvement]+
")")}return""},INb=function(a){var b;return(a=(b=a.user)==null?void 0:b.role)?Yq[a]:""};P3.\u0275fac=function(a){return new (a||P3)};
P3.\u0275cmp=D({type:P3,selectors:[["b-allocated-users-table"]],viewQuery:function(a,b){a&1&&(hg(KRd,5),hg(LRd,5,Hd));if(a&2){var c;lg(c=mg())&&(b.allocationInputEl=c.first);lg(c=mg())&&(b.editAllocationBtns=c)}},inputs:{allocations:"allocations",isAllowedToEdit:"isAllowedToEdit",staffingEnhancementsEnabled:"staffingEnhancementsEnabled"},outputs:{updatedAllocations:"updatedAllocations",removedUser:"removedUser"},features:[jx],decls:31,vars:17,consts:[["editAllocationBtn",""],["allocationInput",""],
["allocationAuto","matAutocomplete"],[1,"allocated-users-table-container"],["mat-table","",3,"dataSource","trackBy"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","user",3,"sticky"],["mat-header-cell","",4,"matHeaderCellDef"],["tabindex","-1","mat-cell","",4,"matCellDef"],["matColumnDef","role",3,"sticky"],["matColumnDef","is-lead",3,"sticky"],["matColumnDef","involvement"],["matColumnDef","allocation"],[3,"matColumnDef"],
["matColumnDef","remove-user",3,"stickyEnd"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["tabindex","-1","mat-cell",""],[1,"user-cell"],["size","small",3,"email"],[1,"user-name",3,"user","hovercardFocusEnabled","availabilityChipEnabled"],[1,"role-header"],["name","help-outline","size","small","role","button","tabindex","0",1,"help-icon",3,"matTooltip"],[1,"role-select",3,"selectionChange","disabled","value"],[3,"value"],[1,"is-lead-header"],[3,"change","checked","disabled","aria-label"],
[1,"involvement-header"],[1,"involvement-select",3,"selectionChange","disabled","value"],[1,"allocation-header"],["type","button","mat-button","","aria-label","Select involvement level or enter percentage (between 0 and 100) for user","matTooltip","Select involvement level or enter percentage (between 0 and 100) for user",1,"edit-allocation-btn",3,"disabled"],["type","button","mat-button","","aria-label","Select involvement level or enter percentage (between 0 and 100) for user","matTooltip","Select involvement level or enter percentage (between 0 and 100) for user",
1,"edit-allocation-btn",3,"click","disabled"],"svgIcon edit-outline fill none iconPositionEnd ".split(" "),["aria-label","Select involvement level or enter percentage (between 0 and 100) for user",1,"allocation-input",3,"ngModelChange","keydown","input","blur","matAutocomplete","ngModel","disabled"],[3,"optionSelected"],["mat-header-cell","",3,"class",4,"matHeaderCellDef"],["mat-cell","",3,"class",4,"matCellDef"],["mat-cell",""],[1,"involvement-select",3,"disabled","value"],["type","button","mat-button",
"","aria-label","Select involvement or enter percentage (between 0 and 100) for user","matTooltip","Select involvement or enter percentage (between 0 and 100) for user",1,"edit-allocation-btn",3,"disabled"],["type","button","mat-button","","aria-label","Select involvement or enter percentage (between 0 and 100) for user","matTooltip","Select involvement or enter percentage (between 0 and 100) for user",1,"edit-allocation-btn",3,"click","disabled"],["aria-label","Select involvement or enter percentage (between 0 and 100) for user",
1,"allocation-input",3,"ngModelChange","keydown","keyup","blur","matAutocomplete","ngModel","disabled"],["type","button","mat-icon-button","","aria-label","Remove allocated user","matTooltip","Remove allocated user",1,"remove-user-btn","xs",3,"click","disabled"],["svgIcon","delete","fill","none"]],template:function(a,b){a&1&&(Zf(0),T(1,"async"),K(2,"div",3)(3,"table",4),E(4,zNb,1,0,"tr",5)(5,ANb,1,0,"tr",6),Tf(6,7),E(7,BNb,2,0,"th",8)(8,DNb,2,1,"td",9),Uf(),Tf(9,10),Zf(10),E(11,ENb,4,2,"th",8)(12,
JNb,7,5,"td",9),Uf(),Tf(13,11),Zf(14),E(15,KNb,4,2,"th",8)(16,MNb,2,4,"td",9),Uf(),Tf(17,12),Zf(18),E(19,NNb,4,2,"th",8)(20,RNb,5,3,"td",9),Uf(),Tf(21,13),Zf(22),E(23,SNb,4,2,"th",8)(24,ZNb,3,1,"td",9),Uf(),Nf(25,iOb,4,2,"ng-container",14,MRd),T(27,"async"),Tf(28,15),E(29,jOb,2,0,"th",8)(30,lOb,3,1,"td",9),Uf(),L()());a&2&&(a=U(1,9,b.tableColumns$),B(3),I("dataSource",b.rows$)("trackBy",b.trackBy),B(),I("matHeaderRowDef",a)("matHeaderRowDefSticky",!0),B(),I("matRowDefColumns",a),B(),I("sticky",!0),
B(3),I("sticky",!0),B(),$f("Optionally override the role of the user. If\n      not overridden, the user will be filling the role aligned with their job profile."),B(3),I("sticky",!0),B(),$f("Optionally mark users as lead(s) for this\n      issue."),B(4),$f("Set the involvement level of people\n      allocated to this issue. Zero involvement levels are useful when a person is involved in the\n      work but does not spend a significant portion of their time on it."),B(4),$f("Set the involvement level (or percentage\n      between 0 and 100) of people allocated to this issue. Zero involvement levels are useful when\n      a person is involved in the work but does not spend a significant portion of their time on\n      it."),
B(3),Of(U(27,15,b.timeboundQuarterColumns$)),B(3),I("stickyEnd",!0))},dependencies:[WO,Jy,DE,xj,fE,mE,mB,kB,gB,iB,lL,kL,hI,LX,UW,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,wK,vK,nA,GU,sT,PX,NX,hA,OX,VH,TH,UH,hV,aV,ZU,Tx],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}td.mat-mdc-cell.mat-column-allocation[_ngcontent-%COMP%], td.mat-mdc-cell.mat-column-involvement[_ngcontent-%COMP%], td.mat-mdc-footer-cell.mat-column-allocation[_ngcontent-%COMP%], td.mat-mdc-footer-cell.mat-column-involvement[_ngcontent-%COMP%], th.mat-mdc-header-cell.mat-column-allocation[_ngcontent-%COMP%], th.mat-mdc-header-cell.mat-column-involvement[_ngcontent-%COMP%]{padding-right:75px}.user-cell[_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}.user-cell[_ngcontent-%COMP%]   .user-name[_ngcontent-%COMP%]{margin-left:4px}.allocation-header[_ngcontent-%COMP%], .involvement-header[_ngcontent-%COMP%], .is-lead-header[_ngcontent-%COMP%], .role-header[_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}.mat-mdc-table-sticky[_ngcontent-%COMP%]{opacity:1}.mat-mdc-table-sticky-border-elem-top[_ngcontent-%COMP%]{border-bottom:2px solid var(--hairline)}.mat-mdc-table-sticky-border-elem-right[_ngcontent-%COMP%]{border-left:2px solid var(--hairline)}.mat-mdc-table-sticky-border-elem-left[_ngcontent-%COMP%]{border-right:2px solid var(--hairline)}.allocated-users-table-container[_ngcontent-%COMP%]{width:100%;overflow-x:auto;max-height:380px}.blue[_ngcontent-%COMP%]{background-color:var(--b-status-assigned-bg-pale)}.timebound-allocation[_ngcontent-%COMP%]{min-width:140px}.timebound-allocation[_ngcontent-%COMP%]   .mat-mdc-button[_ngcontent-%COMP%]{z-index:0}.help-icon[_ngcontent-%COMP%]{margin-left:4px}.mat-column-role[_ngcontent-%COMP%]{width:75px}.mat-column-is-lead[_ngcontent-%COMP%]{width:100px}.mat-column-allocation[_ngcontent-%COMP%], .mat-column-involvement[_ngcontent-%COMP%]{width:150px}.mat-column-remove-user[_ngcontent-%COMP%]{width:36px}.involvement-select[_ngcontent-%COMP%]{width:125px}.edit-allocation-btn[_ngcontent-%COMP%]{color:var(--row-default-text);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;font-weight:400;height:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0;width:125px}.allocation-input[_ngcontent-%COMP%]{width:117px}mat-select[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}mat-select[_ngcontent-%COMP%]:focus-visible{box-shadow:inset 0 0 0 2px #1a73e8;box-shadow:inset 0 0 0 2px var(--primary);outline:none}[_nghost-%COMP%]     .mat-mdc-select-value{padding-right:4px}\n/*# sourceMappingURL=allocated_users_table.css.map */"],
changeDetection:0});var QRd=function(){this.isAllowedToEdit=!1;this.editPlaceholder=new aQ;this.removePlaceholder=new aQ},RRd=function(a){a.isAllowedToEdit&&a.editPlaceholder.emit(a.placeholder)};da.Object.defineProperties(QRd.prototype,{roleString:{configurable:!0,enumerable:!0,get:function(){var a=this.placeholder.role;return a&&a!=="JOB_ROLE_UNSPECIFIED"?JN[a]:"Other"}},placeholderLabel:{configurable:!0,enumerable:!0,get:function(){return"Placeholder: "+this.placeholder.count+" "+this.roleString}}});
QRd.\u0275fac=function(a){return new (a||QRd)};
QRd.\u0275cmp=D({type:QRd,selectors:[["b-placeholder-chip"]],inputs:{placeholder:"placeholder",isAllowedToEdit:"isAllowedToEdit"},outputs:{editPlaceholder:"editPlaceholder",removePlaceholder:"removePlaceholder"},decls:6,vars:7,consts:[[1,"placeholder-chip"],["size","small",3,"email"],["role","button","tabindex","0",1,"placeholder-text",3,"click","keydown.enter","keydown.space","matTooltip"],["type","button","mat-icon-button","",1,"remove-btn","xs",3,"click","disabled"],["svgIcon","close"]],template:function(a,
b){a&1&&(K(0,"span",0),M(1,"b-user-image",1),K(2,"span",2),N("click",function(){return RRd(b)})("keydown.enter",function(){return RRd(b)})("keydown.space",function(){return RRd(b)}),Q(3),L(),K(4,"button",3),N("click",function(){b.removePlaceholder.emit(b.placeholder)}),M(5,"mat-icon",4),L()());a&2&&(B(),I("email",void 0),B(),I("matTooltip",Eg("Click to edit the ",b.roleString," placeholders")),If("aria-label","Click to edit the "+b.roleString+" placeholders"),B(),S(" ",b.placeholderLabel," "),B(),
I("disabled",!b.isAllowedToEdit),If("aria-label","Remove placeholders for the "+b.roleString+" role"))},dependencies:[WO,Jy,mB,kB,iB,wK,vK,nA,Ly,hV,aV],styles:[".placeholder-chip[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;background-color:#fff;background-color:var(--surface-default);align-items:center;border:1px solid var(--hairline);cursor:pointer;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:20px}.placeholder-chip[_ngcontent-%COMP%]   b-user-image[_ngcontent-%COMP%]{margin-left:1px;margin-right:4px}.placeholder-chip[_ngcontent-%COMP%]   .placeholder-text[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:400;letter-spacing:.3px;padding-right:4px;width:100%}.placeholder-chip[_ngcontent-%COMP%]   .placeholder-text[_ngcontent-%COMP%]:focus-visible{box-shadow:inset 0 0 0 2px #1a73e8;box-shadow:inset 0 0 0 2px var(--primary);outline:none}.placeholder-chip[_ngcontent-%COMP%]   .remove-btn[_ngcontent-%COMP%]{margin:1px 1px 1px 0}\n/*# sourceMappingURL=placeholder_chip.css.map */"],
changeDetection:0});var SRd=function(){return[]},Q3=function(){this.matDialog=p(UA)};Q3.prototype.show=function(a,b){this.dialog=this.matDialog.open(R3,{width:"325px",panelClass:"no-jitter",data:{allocatedPlaceholders:a,initialRole:b}});return fe(SA(this.dialog))};Q3.\u0275fac=function(a){return new (a||Q3)};Q3.\u0275prov=Dc({token:Q3,factory:Q3.\u0275fac,providedIn:"root"});
var R3=function(){var a=this;this.data=p(TA);this.dialogRef=p(RA);this.activeSession=p(uu);this.staffingEnhancementsEnabled=this.activeSession.getFlag("enableStaffingFieldEnhancementsUi");this.role="SWE";this.count=new lE(1,{validators:[vj,ova(/^\d+$/),jva(1),kva(3E5)]});this.roleToCountMap=new Map;this.roleOptions$=new Mj((this.staffingEnhancementsEnabled?Bmd:Amd).map(function(f){return{value:f,displayText:JN[f],disabled:!1}}));for(var b=m(this.data.allocatedPlaceholders),c=b.next();!c.done;c=b.next()){var d=
c.value;c=d.role;var e=void 0;d=Math.ceil((e=d.count)!=null?e:0);this.roleToCountMap.set(c,d)}this.roleOptions$.next((this.staffingEnhancementsEnabled?Bmd:Amd).map(function(f){return{value:f,displayText:JN[f],disabled:a.roleToCountMap.has(f)}}));this.data.initialRole&&(this.role=this.data.initialRole);TRd(this)},TRd=function(a){var b=a.roleToCountMap.get(a.role);a.count.setValue(b!=null?b:1)};R3.prototype.apply=function(){var a,b={role:this.role,count:(a=this.count.value)!=null?a:1};this.dialogRef.close(b)};
da.Object.defineProperties(R3.prototype,{updatingExistingPlaceholder:{configurable:!0,enumerable:!0,get:function(){return this.roleToCountMap.has(this.role)}},selectedRoleDisplayText:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c;return(c=(b=this.roleOptions$.value.find(function(d){return d.value===a.role}))==null?void 0:b.displayText)!=null?c:""}},title:{configurable:!0,enumerable:!0,get:function(){return this.updatingExistingPlaceholder?"Editing Placeholder":"Adding Placeholder"}},
buttonText:{configurable:!0,enumerable:!0,get:function(){return this.updatingExistingPlaceholder?"Update":"Add"}}});R3.\u0275fac=function(a){return new (a||R3)};
R3.\u0275cmp=D({type:R3,selectors:[["b-placeholder-dialog"]],decls:21,vars:12,consts:[[1,"placeholder-dialog"],["mat-dialog-title",""],["mat-dialog-content","",1,"content"],["appearance","outline",1,"job-role-field"],["aria-label","Click to select a job role for placeholders",3,"selectionChange","value","disabled"],[3,"matTooltip","matTooltipDisabled"],["appearance","outline",1,"count-field"],["type","number","min","1","max","300000","step","1","matInput","","placeholder","Enter number",3,"formControl",
"required"],["mat-dialog-actions","",1,"actions"],["type","button","mat-button","","mat-dialog-close","","aria-label","Cancel",1,"cancel"],["type","button","mat-flat-button","","color","primary","aria-label","Add allocated placeholder",1,"apply",3,"click","disabled"],[3,"value","disabled"],[1,"role-option"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"h1",1),Q(2),L(),K(3,"section",2)(4,"mat-form-field",3)(5,"mat-label"),Q(6,"Role"),L(),K(7,"mat-select",4),N("selectionChange",function(d){b.role=d.value;
TRd(b)}),Nf(8,mOb,4,5,"span",5,Mf),T(10,"async"),L()(),K(11,"mat-form-field",6)(12,"mat-label"),Q(13,"Number"),L(),M(14,"input",7),F(15,nOb,2,0,"mat-error"),L()(),K(16,"footer",8)(17,"button",9),Q(18," Cancel "),L(),K(19,"button",10),N("click",function(){return b.apply()}),Q(20),L()()());if(a&2){B(2);yg(b.title);B(5);I("value",b.role)("disabled",b.updatingExistingPlaceholder);B();var c;Of((c=U(10,9,b.roleOptions$))!=null?c:Hg(11,SRd));B(6);I("formControl",b.count)("required",!0);If("aria-label","Enter the "+
(b.updatingExistingPlaceholder?"updated ":"")+"number of placeholders for the "+b.selectedRoleDisplayText+" role");B();G(b.count.invalid?15:-1);B(4);I("disabled",b.count.invalid);B();S(" ",b.buttonText," ")}},dependencies:[WO,mB,kB,gB,TJ,VA,XA,ZA,YA,UD,HD,SD,KD,ID,HE,VD,FE,zU,yU,TH,hA,wK,vK,nA,Wz,EE,xj,oE,fE,yE,xE,wE,sE,Tx],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.job-role-field[_ngcontent-%COMP%]{padding-top:4px}.content[_ngcontent-%COMP%]{padding:0 24px}\n/*# sourceMappingURL=placeholder_dialog.css.map */"],
changeDetection:0});var URd=function(){return[]},S3=function(){this.matDialog=p(UA)};S3.prototype.show=function(a,b,c){this.dialog=this.matDialog.open(T3,{width:"1000px",disableClose:!0,panelClass:"no-jitter",data:{issueId:b,plannedAllocations:a,isAllowedToEdit:c}});return fe(SA(this.dialog))};S3.\u0275fac=function(a){return new (a||S3)};S3.\u0275prov=Dc({token:S3,factory:S3.\u0275fac,providedIn:"root"});
var T3=function(){Z.call(this);var a=this;this.data=p(TA);this.dialogRef=p(RA);this.editIssueService=p(GS);this.hotkeys=p(nU);this.placeholderDialogService=p(Q3);this.checkBeforeExit=p(rY);this.activeSession=p(uu);this.staffingEnhancementsEnabled=this.activeSession.getFlag("enableStaffingFieldEnhancementsUi");this.userValidators={userNotInGoogleDomain:function(f){return f?f.every(function(g){return g.indexOf("@google.com")>0}):!0},isNotUserType:function(f){return f?f.every(function(g){return g.startsWith("USER:")}):
!0},userAlreadySelected:function(f){if(f){f=is(f).map(function(k){var l,r;return(r=(l=k.user)==null?void 0:l.emailAddress)!=null?r:""}).filter(function(k){return!!k});f=m(f);for(var g=f.next();!g.done;g=f.next())if(a.emailsSet.has(g.value))return!1}return!0}};this.issueId=this.data.issueId;this.plannedAllocations$=new Mj([]);this.emailsSet=new Set;this.placeholderAllocations$=this.plannedAllocations$.pipe(A(function(f){return f.filter(function(g){return!!g.placeholder}).map(function(g){return g.placeholder})}));
this.availableRolesToAllocate$=this.placeholderAllocations$.pipe(A(function(f){var g=new Set(f.map(function(k){return k.role}));return(a.staffingEnhancementsEnabled?Bmd:Amd).filter(function(k){return!g.has(k)})}));var b;this.isAllowedToEdit=(b=this.data.isAllowedToEdit)!=null?b:!1;this.creatingNewIssue=!this.data.issueId;this.title=(this.isAllowedToEdit?"Editing":"Viewing")+" staffing";var c;this.isSaving$=Ind(this.editIssueService.savingState((c=this.issueId)!=null?c:""),"staffing");var d;this.plannedAllocations$.next((d=
this.data.plannedAllocations)!=null?d:[]);b=m(this.plannedAllocations$.value);for(var e=b.next();!e.done;e=b.next())d=c=void 0,(e=(c=e.value.user)==null?void 0:(d=c.user)==null?void 0:d.emailAddress)&&this.emailsSet.add(e)};Y(T3,Z);T3.\u0275dir=Z.\u0275dir;
T3.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(sY(this.checkBeforeExit,function(){return a.hasChanges()},!1));this.dialogRef.keydownEvents().pipe(zf(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(zf(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};
var pOb=function(a,b,c){var d,e,f,g,k,l;return y(function(r){if(r.nextAddress==1)return z(r,fe(a.placeholderAllocations$),2);if(r.nextAddress!=3)return d=r.yieldResult,c||(c=b.length>0?b[0]:"SWE"),z(r,a.placeholderDialogService.show(d,c),3);e=r.yieldResult;if(!e)return r.return();f={placeholder:e};g=no(f);if(!g)return r.return();k=[].concat(q(a.plannedAllocations$.value));l=k.findIndex(function(w){return no(w)===g});l<0?k.push(f):k[l]=f;a.plannedAllocations$.next(k);ae(r)})};
T3.prototype.removePlaceholder=function(a){var b=this,c,d,e,f;return y(function(g){c={placeholder:a};d=no(c);if(!d)return g.return();e=[].concat(q(b.plannedAllocations$.value));f=e.findIndex(function(k){return no(k)===d});if(f<0)return g.return();e.splice(f,1);b.plannedAllocations$.next(e);ae(g)})};T3.prototype.removeEmail=function(a){this.emailsSet.delete(a)};
var VRd=function(a,b){var c,d,e,f,g,k;return y(function(l){if(b.length<1)return l.return();c=is(b);f=(d=c[0])==null?void 0:(e=d.user)==null?void 0:e.emailAddress;if(!f||a.emailsSet.has(f))return l.return();g={user:{user:{emailAddress:f}},allocation:{involvement:"HIGH",aggregationValue:0}};k=[].concat(q(a.plannedAllocations$.value),[g]);a.plannedAllocations$.next(k);a.emailsSet.add(f);a.usersInput.removeItem(0);ae(l)})};h=T3.prototype;
h.hasChanges=function(){return!mm(this.plannedAllocations$.value,this.data.plannedAllocations)};h.closeIfUnmodified=function(){this.hasChanges()||this.dialogRef.close()};h.close=function(){this.dialogRef.close()};h.save=function(){var a=this;return y(function(b){if(b.nextAddress==1)return a.creatingNewIssue?(a.dialogRef.close(a.plannedAllocations$.value),b.return()):z(b,Xnd(a.editIssueService,a.issueId,{plannedAllocations:a.plannedAllocations$.value}),2);a.dialogRef.close();ae(b)})};
h.onKeydown=function(a,b){this.hotkeys.isEnabled()&&a.key==="Enter"&&(a.ctrlKey||a.metaKey)&&this.isAllowedToEdit&&this.hasChanges()&&!b&&(a.preventDefault(),a.stopPropagation(),this.save())};T3.\u0275fac=function(a){return new (a||T3)};
T3.\u0275cmp=D({type:T3,selectors:[["b-staffing-dialog"]],viewQuery:function(a,b){a&1&&hg(HW,5);if(a&2){var c;lg(c=mg())&&(b.usersInput=c.first)}},features:[Ef],decls:26,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"keydown"],["messageType","caution"],[1,"placeholder-display"],[1,"placeholder-chip-set"],[3,"placeholder","isAllowedToEdit"],[1,"add-placeholder-actions"],[3,"matTooltip","matTooltipDisabled"],["type","button","mat-stroked-button","","color","primary",1,"add-placeholder-btn",
"small",3,"click","disabled"],["name","help-outline","size","small","role","button","tabindex","0",1,"add-placeholder-help-icon",3,"matTooltip"],[3,"usersChange","maxUserAllowed","removeContainerDivTabIndex","placeholderText","customValidators"],[3,"updatedAllocations","removedUser","allocations","isAllowedToEdit","staffingEnhancementsEnabled"],["mat-dialog-actions",""],["type","button","mat-stroked-button","","mat-dialog-close","","aria-label","Cancel",1,"cancel-button",3,"click","disabled"],["type",
"button","mat-flat-button","","color","primary",1,"done-button",3,"click","disabled"],[3,"editPlaceholder","removePlaceholder","placeholder","isAllowedToEdit"]],template:function(a,b){if(a&1){var c=t();K(0,"h1",0);Q(1);L();Zf(2);T(3,"async");K(4,"section",1);N("keydown",function(k){u(c);var l=ag(2);return v(b.onKeydown(k,l!=null?l:!1))});F(5,oOb,3,0,"b-callout",2);Zf(6);T(7,"async");K(8,"div",3)(9,"div",4);Nf(10,qOb,1,2,"b-placeholder-chip",5,Mf);T(12,"async");L();K(13,"div",6)(14,"span",7)(15,"button",
8);N("click",function(){u(c);var k=ag(6);return v(pOb(b,k))});Q(16,"Add placeholder");L()();M(17,"b-icon",9);L()();K(18,"b-multi-user-input",10);N("usersChange",function(k){u(c);return v(VRd(b,k))});L();K(19,"b-allocated-users-table",11);T(20,"async");N("updatedAllocations",function(k){u(c);b.plannedAllocations$.next(k);return v()})("removedUser",function(k){u(c);return v(b.removeEmail(k))});L()();K(21,"footer",12)(22,"button",13);N("click",function(){u(c);return v(b.close())});Q(23," Cancel ");L();
K(24,"button",14);N("click",function(){u(c);return v(b.save())});Q(25," Save ");L()()}if(a&2){B();yg(b.title);B();a=$f(U(3,17,b.isSaving$));B(3);G(b.isAllowedToEdit?-1:5);B();var d,e=$f((d=U(7,20,b.availableRolesToAllocate$))!=null?d:Hg(27,URd));B(4);var f;Of((f=U(12,23,b.placeholderAllocations$))!=null?f:Hg(28,URd));B(4);I("matTooltip","All supported roles have already been allocated.")("matTooltipDisabled",e.length>0);B();I("disabled",!b.isAllowedToEdit||!e.length||a);B(2);I("matTooltip","Allocate placeholder roles when\n      planning how many people are needed to complete this issue but the exact contributors are\n      not yet known.");
If("aria-label","Allocate placeholder roles when\n      planning how many people are needed to complete this issue but the exact contributors are\n      not yet known.");B();I("maxUserAllowed",1)("removeContainerDivTabIndex",!0)("placeholderText","Search for a user to allocate")("customValidators",b.userValidators);If("disabled",b.isAllowedToEdit&&!a?null:!0);B();var g;I("allocations",(g=U(20,25,b.plannedAllocations$))!=null?g:Hg(29,URd))("isAllowedToEdit",b.isAllowedToEdit&&!a)("staffingEnhancementsEnabled",
b.staffingEnhancementsEnabled);B(3);I("disabled",a);B(2);I("disabled",!b.hasChanges()||a)}},dependencies:[P3,WO,FU,DU,EU,mB,kB,gB,TJ,VA,XA,ZA,YA,wK,vK,nA,GU,sT,uX,HW,Wz,QRd,Tx],styles:["[_nghost-%COMP%]     .bv2-multi-user-input.bv2-multi-user-input{width:auto}[_nghost-%COMP%]     .bv2-multi-user-input.bv2-multi-user-input input.bv2-multi-user-embedded-input.bv2-multi-user-embedded-input{min-width:100%}b-callout[_ngcontent-%COMP%]{margin-bottom:16px}.placeholder-display[_ngcontent-%COMP%]{border:1px solid var(--hairline);border-radius: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;margin-bottom:24px;padding:16px}.placeholder-display[_ngcontent-%COMP%]   .placeholder-chip-set[_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}.placeholder-display[_ngcontent-%COMP%]   .add-placeholder-actions[_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;margin-top:8px;max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.placeholder-display[_ngcontent-%COMP%]   .add-placeholder-actions[_ngcontent-%COMP%]   .add-placeholder-btn[_ngcontent-%COMP%]{font-size:.875rem;padding:12px;width:150px}.placeholder-display[_ngcontent-%COMP%]   .add-placeholder-actions[_ngcontent-%COMP%]   .add-placeholder-help-icon[_ngcontent-%COMP%]{margin-left:8px}b-multi-user-input[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:100%;-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}b-multi-user-input[_ngcontent-%COMP%]   .bv2-multi-user-errors[_ngcontent-%COMP%]{padding-bottom:0}\n/*# sourceMappingURL=staffing_dialog.css.map */"],
changeDetection:0});var U3=function(){this.confirmationDialogService=p(dS)},WRd=function(a,b,c){return y(function(d){return d.return(qmd(a.confirmationDialogService,{title:b,content:Bh(c)}))})},XRd=function(a,b){return y(function(c){if(b.canEditIssuesInComponent){var d;if(d=b.issueAccessLimitLevel==="LIMIT_VIEW"){d=!!b.assigneeUser;var e=!!b.verifierUser,f,g=!((f=b.collaboratorsUsers)==null||!f.length),k;f=!((k=b.ccUsers)==null||!k.length);d=!d&&!e&&!g&&!f}c=d?c.return(WRd(a,b.confirmationDialogText.noListedUsers.title,
b.confirmationDialogText.noListedUsers.content)):b.issueAccessLimitLevel==="LIMIT_VIEW"&&rOb(b)?c.return(WRd(a,b.confirmationDialogText.loseAccess.title,b.confirmationDialogText.loseAccess.content)):c.return(!0)}else c=c.return(!0);return c})};U3.\u0275fac=function(a){return new (a||U3)};U3.\u0275prov=Dc({token:U3,factory:U3.\u0275fac,providedIn:"root"});var YRd=["saveBeforeClosingDialog"],ZRd=["deleteDialog"],OOb=function(){return[]},$Rd={noListedUsers:{title:"Template has no listed users",content:"Due to the Issue Access Limit that you have set, and the lack of any listed user on the template, an issue created with this template could become inaccessible. We strongly recommend defaulting to at least one user with access. Are you sure you still want to proceed?"},loseAccess:{title:"You could lose access to issues created with this template",content:"Due to the Issue Access Limit that you have set, and the fact that you are not listed on the template, an issue created with this template could become inaccessible. Are you sure you still want to proceed?"}},
V3=function(){Z.call(this);var a=this;this.matDialogService=p(UA);this.cdr=p(bQ,{self:!0});this.templatesApi=p(TO);this.hotlistApi=p(gP);this.constants=p(gS);this.paths=p(hW);this.butterBar=p(UN);this.analytics=p(eQ);this.issueTypeDialog=p(eS);this.componentActions=p(VV);this.documentationLinks=p(cS);this.appEvents=p(UO);this.accessPolicyApi=p(KO);this.trackerFridge=p(VQ);this.componentFridge=p(RO);this.currentUserBookmarksFridge=p(qP);this.autocompleteConfigService=p(EW);this.confirmIssueAccessLimitSettingsService=
p(U3);this.activeSession=p(uu);this.sessionIsInternal=this.activeSession.isInternalSession();this.staffingDialogService=p(S3);this.defaultIndex=-1;this.componentId="";this.supportCustomFields=!1;this.templates=[];this.fieldConfigsV2=[];this.allCustomFields=[];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.componentIdsToPaths={};this.hotlistPickerIndex=0;this.enableTemplateInheritance=this.implicitAccessEnabled=!1;this.issueTypeChoices=aSd(this);this.priorityChoices=bSd(this);this.severityChoices=cSd(this);this.FieldType=pV;this.componentId$=new uf(0);this.component$=this.componentId$.pipe(yf(function(b){return a.componentFridge.watch(b)}));this.trackerId$=this.component$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.tracker$=this.trackerId$.pipe(yf(function(b){return b?a.trackerFridge.watch(b):
ce(void 0)}));this.ROUTES=qs;this.COLLABORATOR_GROUPS_TOOLTIP="Collaborator groups are trusted groups that are configured by tracker admins only. Select and add these groups if they should be given collaborator access to this issue.";this.trackerCollaboratorGroups=[];this.subscriptions.add(this.tracker$.subscribe(function(b){b&&(a.trackerCollaboratorGroups=um(b.collaboratorGroups));a.currentTemplate&&a.currentTemplate.separateCollaboratorGroups(a.trackerCollaboratorGroups)}));this.enableTemplateInheritance=
this.activeSession.getFlag("enableTemplateInheritance")};Y(V3,Z);V3.\u0275dir=Z.\u0275dir;h=V3.prototype;
h.ngOnInit=function(){var a=this,b=function(){a.fetchUserHotlists()};this.fetchUserHotlists();this.accessPolicyApi.checkComponentImplicitAccessEnabled(this.componentId).then(function(c){return a.implicitAccessEnabled=c});this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(b));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(b));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(b));Promise.all([this.loadCustomFields(),this.loadTemplates()]).finally(function(){W3(a);
a.cdr.detectChanges()})};h.ngAfterViewInit=function(){this.componentId$.next(this.componentId)};h.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)});Dba(this.selectedHotlists,function(c,d){return wa(c.name,d.name)})};
h.removeHotlist=function(a){La(this.templateHotlistIds[this.hotlistPickerIndex],a);this.currentTemplate.dirty=!0;this.updateSelectedHotlists()};
h.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent("editTemplate","createHotlist");Rr(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){Rr(b.butterBar,"Hotlist "+c+" created successfully.");b.addHotlist(e);b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
h.handleHotlistPickerSave=function(a){var b=this;var c=a.oldSelectionMap;$i(a.newSelectionMap,function(d,e){e=rm(e);if(d!==c[e]){b.currentTemplate.dirty=!0;var f=b.selectedHotlistIds[0].includes(e);d&&!f?(d=b.templateHotlistIds[b.hotlistPickerIndex],Ka(d,e)||d.push(e)):!d&&f&&La(b.templateHotlistIds[b.hotlistPickerIndex],e)}},this);this.updateSelectedHotlists()};
h.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;this.hotlistApi.get(c).then(function(e){b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};h.fetchUserHotlists=function(){var a=this;fe(rP(this.currentUserBookmarksFridge)).then(function(b){b=m(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);a.cdr.detectChanges()})};h.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&La(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
var aSd=function(a){var b=a.constants.editIssueTypes.map(function(c){return{value:c,displayText:YOb(c),altText:a.constants.issueTypesShortDescriptions.get(c)}});return[vRd].concat(b)},YOb=function(a){return a===vRd.value?a:ym(a)};V3.prototype.getDateValue=function(a){return a};V3.prototype.getListFieldType=function(a){return a};
var ROb=function(a){var b,c,d,e;return((b=a.repeatedTextValue)==null?void 0:b.values)||((c=a.repeatedDateValue)==null?void 0:c.values)||((d=a.repeatedEnumValue)==null?void 0:d.values)||((e=a.repeatedNumericValue)==null?void 0:e.values)||null},FOb=function(a){a.currentTemplateRow.issueType==="VULNERABILITY"||a.currentTemplateRow.issueType==="PRIVACY_ISSUE"?rmd(a.issueTypeDialog,a.currentTemplateRow.issueType==="VULNERABILITY"?"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);dSd(a);a.cdr.detectChanges()},bSd=function(a){return[vRd].concat(a.constants.priorities.map(function(b){return{value:b,displayText:b}}))},cSd=function(a){return[vRd].concat(a.constants.severities.map(function(b){return{value:b,displayText:b}}))},eSd=function(a){return a.templateRows.filter(function(b){return!b.inherited})},
fSd=function(a){return a.templateRows.filter(function(b){return b.inherited})};V3.prototype.setCustomField=function(a,b,c){a.editableTemplate.setCustomField(b,c!==null?c:void 0)};var XOb=function(a){a.currentTemplate=null;a.currentTemplateRow=null;a.currentIndex=-1;W3(a)};V3.prototype.toggleRow=function(a){var b=this,c=this.currentIndex;gSd(this,function(){a.index===c?XOb(b):b.openEditor(a.index)})};
var hSd=function(a){a.templateHotlistIds.push([]);gSd(a,function(){a.openEditor()})},wOb=function(a,b){return b.index>=0&&b.index===a.currentIndex},yOb=function(a,b){var c;return b.index>=0&&!((c=a.templates[b.index])==null?0:c.default)},WOb=function(a){var b,c,d,e,f,g,k,l,r,w,x,C,H,J;return y(function(O){if(O.nextAddress==1){if(!a.currentTemplate)return O.return();c=(b=a.currentTemplate.collaborators)!=null?b:[];e=(d=a.currentTemplate.collaboratorGroups)!=null?d:[];return z(O,XRd(a.confirmIssueAccessLimitSettingsService,
{assigneeUser:a.currentTemplate.assignee,verifierUser:a.currentTemplate.verifier,ccUsers:a.currentTemplate.cc,collaboratorsUsers:[].concat(q(c),q(e)),issueAccessLimitLevel:a.currentTemplate.issueAccessLimitLevel,currentUserEmail:a.activeSession.getUserEmail(),canEditIssuesInComponent:!0,confirmationDialogText:$Rd}),2)}f=O.yieldResult;if(!f)return O.return();a.currentIndex<0?(k="creating",l={componentId:a.componentId,default:!1},g=function(R){Rr(a.butterBar,R.name?'Template "'+R.name+'" created.':
"Template created.");a.analytics.trackEvent("template","create");iSd(a,"create",R.snapshot);jSd(a,"create",R.templateId);kSd(a,"create",R.templateId);a.templates.push(R);a.openEditor(a.templates.length-1)}):(k="updating",r=a.currentIndex,l=a.templates[r],g=function(R){Rr(a.butterBar,R.name?'Template "'+R.name+'" updated.':"Template updated.");a.analytics.trackEvent("template","update");iSd(a,"update",R.snapshot);jSd(a,"update",R.templateId);kSd(a,"update",R.templateId);a.templates[r]=R;XOb(a)});a.currentTemplate.hotlistId=
a.templateHotlistIds[a.hotlistPickerIndex];uRd(a.currentTemplate,l);Rr(a.butterBar,"Saving template...");x=w=l;C=x.componentId;J=(H=x.templateId)&&String(H)!=="0"?a.templatesApi.update(C,H,w):a.templatesApi.create(C,w);return O.return(J.then(function(R){a.appEvents.templateModified.next(String(a.componentId));g(R);a.cdr.detectChanges()}).catch(function(R){R=Qp(R);a.butterBar.showWarning(R?"Error "+k+" template: "+R:"There was an error "+k+" the template.",0)}))})},vOb=function(a,b){SA(a.matDialogService.open(a.deleteDialog,
{data:b})).pipe(zf(a.destroyed$)).subscribe(function(c){c&&lSd(a,b)})},lSd=function(a,b){var c=b.index;var d;y(function(e){switch(e.nextAddress){case 1:d=a.templates[c];if(c<0||d.default)return e.return(Promise.resolve());vba(a.templateHotlistIds,c);vba(a.templates,c);a.defaultIndex=a.templates.findIndex(function(f){return f.default});W3(a);a.cdr.detectChanges();Rr(a.butterBar,"Deleting...");Wd(e,2,3);return z(e,a.templatesApi.delete(d.componentId,d.templateId),5);case 5:a.appEvents.templateModified.next(String(a.componentId)),
Rr(a.butterBar,"Deleted template"),a.analytics.trackEvent("template","delete"),a.currentIndex===c&&XOb(a);case 3:return Xd(e),z(e,a.loadTemplates(),6);case 6:W3(a);a.cdr.detectChanges();Zd(e,0);break;case 2:$d(e),a.butterBar.showWarning("Error while deleting template"),e.jumpTo(3)}})},nSd=function(a,b){b?WOb(a).then(function(){mSd(a);a.cdr.detectChanges()}):mSd(a)},xOb=function(a,b){var c;b=((c=b.template)==null?void 0:c.templateId)||0;c={};c=a.paths.createIssue((c.component=a.componentId?String(a.componentId):
void 0,c.template=String(b),c));return a.paths.getBaseUrl()+c};
V3.prototype.openEditor=function(a){var b=this;this.currentIndex=a===void 0?-1:a;if(this.currentIndex<0){this.currentTemplate=oSd(this,{componentId:this.componentId,default:!1,name:"New Template"});this.currentTemplate.dirty=!0;this.updateSelectedHotlists();W3(this);dSd(this);this.cdr.detectChanges();var c;(c=document.getElementById("template-name"))==null||c.focus()}else pSd(this,this.templates[this.currentIndex]).then(function(d){b.currentTemplate=oSd(b,d);b.hotlistPickerIndex=b.currentIndex;b.updateSelectedHotlists();
W3(b);dSd(b);b.currentTemplate.separateCollaboratorGroups(b.trackerCollaboratorGroups);b.cdr.detectChanges();var e;(e=document.getElementById("template-name"))==null||e.focus()})};
var pSd=function(a,b){return a.templatesApi.get(b.componentId,b.templateId||0)},gSd=function(a,b){a.currentTemplate&&a.currentTemplate.isDirty()?(a.afterSaveCheckFunc=b,qSd(a)):b()},iSd=function(a,b,c){c&&c.issueAccessLimitLevel&&c.issueAccessLimitLevel!=="LIMIT_NONE"&&a.analytics.trackEvent("issueAccessLimits",b,"template:"+c.issueAccessLimitLevel)},jSd=function(a,b,c){a.currentTemplate&&a.currentTemplate.collaboratorGroups.length>0&&a.analytics.trackEvent("quickAddCollaborators",b,"template:"+c)},
kSd=function(a,b,c){var d;((d=a.currentTemplate)==null?0:d.inheritable)&&a.analytics.trackEvent("templateInheritance",b,"component:"+a.componentId+" template:"+c)},qSd=function(a){SA(a.matDialogService.open(a.saveBeforeClosingDialog,{data:a.currentTemplateRow})).pipe(zf(a.destroyed$)).subscribe(function(b){b!==void 0&&nSd(a,b)})},mSd=function(a){var b=a.afterSaveCheckFunc;a.afterSaveCheckFunc=null;b&&b()},oSd=function(a,b){var c={};a=m(a.allCustomFields);for(var d=a.next();!d.done;d=a.next())d=d.value,
c[d.customFieldId.toString()]=d;return new J3(c,b)};
V3.prototype.loadCustomFields=function(){var a=this,b,c,d,e,f,g,k,l,r,w;return y(function(x){if(x.nextAddress==1){if(!a.supportCustomFields)return x.return();Wd(x,2);return z(x,a.componentActions.get(a.componentId),4)}if(x.nextAddress!=2){b=x.yieldResult;a.componentIdsToPaths={};c=[];e=((d=b.componentPathInfo)==null?void 0:d.componentPathId)||[];for(f=0;f<e.length;f++)g=b.componentPathInfo.componentPathId[f],k=b.componentPathInfo.componentPathName[f],c.push(k),a.componentIdsToPaths[g]=c.join(" > ");
w=(r=(l=b.componentPathInfo)==null?void 0:l.fieldConfigsV2Map)!=null?r:new Map;a.fieldConfigsV2=[].concat(q(e)).reverse().flatMap(function(C){var H;return(H=w.get(C))!=null?H:[]});a.allCustomFields=Ut(b,a.activeSession);a.cdr.detectChanges();return dt(x,0)}$d(x);a.butterBar.showWarning("Unable to load custom fields");ae(x)})};
var dSd=function(a){var b;a.customFieldRows=rSd(a,(b=a.currentTemplate)==null?void 0:b.type).map(function(c){return new sRd(c,c.type==="TEXT"?"1":"2")})},rSd=function(a,b){return sSd(a,a.allCustomFields,b)},sSd=function(a,b,c){var d=c&&a.fieldConfigsV2.find(function(e){return e.issueTypes.has(c)})||a.fieldConfigsV2.find(function(e){return!e.issueTypes.size});return d?b.filter(function(e){var f,g;return((g=(f=d.customFieldConfigs)==null?void 0:f.get(e.customFieldId))!=null?g:!0)||e.required&&e.typedDefaultValue===
void 0}):b};V3.prototype.loadTemplates=function(){var a=this;this.templates=[];return this.templatesApi.query(this.componentId).then(function(b){a.templates=b;b=m(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.defaultIndex=a.templates.findIndex(function(d){return d.default});a.cdr.detectChanges()}).catch(function(){a.butterBar.showWarning("Unable to load templates")})};
var W3=function(a){if(a.currentIndex<0)a.templateRows=a.templates.map(function(e,f){return new rRd(f,e,e.componentId!==a.componentId&&e.inheritable)}),a.currentTemplate&&(a.currentTemplateRow=new rRd(-1,a.currentTemplate,!1),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 rRd(f,e,e.componentId!==a.componentId&&e.inheritable)}));a.currentTemplate&&(a.currentTemplateRow=
new rRd(b,a.currentTemplate,!1),c.push(a.currentTemplateRow));d=a.templates.slice(b+1);c=c.concat(d.map(function(e,f){return new rRd(b+f+1,e,e.componentId!==a.componentId&&e.inheritable)}));a.templateRows=c;a.hotlistPickerIndex=a.currentIndex}},uOb=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:if(b<0||a.defaultIndex===b)return g.return();c=a.templates[b];if(c.default)return g.return();d=c.name;ya(Nt(d))&&(d="(unnamed template)");a.defaultIndex=b;Rr(a.butterBar,"Changing default template...");
a.analytics.trackEvent("template","changeDefault");Wd(g,2,3);return z(g,tSd(a,c.templateId),5);case 5:Rr(a.butterBar,"Changed default template to "+d);case 3:return Xd(g),z(g,a.loadTemplates(),6);case 6:W3(a);a.cdr.detectChanges();Zd(g,0);break;case 2:e=$d(g),f="Error while changing default message"+(Pp(e)?": "+Qp(e):"."),a.butterBar.showWarning(f),g.jumpTo(3)}})},tSd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return z(e,fe(a.component$),2);if(e.nextAddress!=3){c=e.yieldResult;
if(!c||c.defaultTemplateId===b)return e.return();c.defaultTemplateId=b;return z(e,a.componentActions.update(c),3)}d=e.yieldResult;a.componentFridge.announce(d);a.appEvents.templateModified.next(String(d.componentId));ae(e)})};
V3.prototype.editStaffing=function(){var a=this,b,c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,a.staffingDialogService.show((c=(b=a.currentTemplate.staffing)==null?void 0:b.plannedAllocations)!=null?c:[],void 0,!0),2);d=f.yieldResult;if(!d)return f.return();e={plannedAllocations:d};a.currentTemplate.staffing=e;a.currentTemplate.dirty=!0;ae(f)})};
V3.prototype.handleAutocompleteSelection=function(a,b,c){b&&b.editableTemplate&&(c==="verifier"?b.editableTemplate.verifier=a:c==="assignee"&&(b.editableTemplate.assignee=a),b.editableTemplate.dirty=!0,this.cdr.detectChanges())};V3.\u0275fac=function(a){return new (a||V3)};
V3.\u0275cmp=D({type:V3,selectors:[["b-edit-templates"]],viewQuery:function(a,b){a&1&&(hg(YRd,5),hg(ZRd,5));if(a&2){var c;lg(c=mg())&&(b.saveBeforeClosingDialog=c.first);lg(c=mg())&&(b.deleteDialog=c.first)}},inputs:{componentId:"componentId",supportCustomFields:"supportCustomFields"},standalone:!1,features:[Gg([bQ]),Ef],decls:23,vars:2,consts:[["deleteDialog",""],["saveBeforeClosingDialog",""],["typeMenu",""],["priorityMenu",""],["severityMenu",""],["peopleKitDiv",""],["ccsPeopleKitDiv",""],["card",
"onedevHovercard"],["cardBody",""],[1,"component-banner","template-help-banner"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[1,"templates-list"],[1,"template-column-tool"],[1,"edit-button-row"],["format","fill","bAriaLabel","Create New template in this component",3,"onAction"],["colspan","4"],["tabindex","-1",1,"template-row-name"],[1,"template-row-new-issue-link"],["tabindex","0",1,"keep-focus-ring",3,"href"],[3,"change","id","checked","aria-label","value"],["format","hairline",
3,"onAction","bAriaLabel"],["format","hairline",3,"onAction","bAriaLabel","disabled"],[1,"template-edit-pane","template-editor-within-table"],[1,"form-header"],[1,"cell-1"],[1,"template-label"],["for","template-name"],["id","template-name","type","text",1,"template-field",3,"ngModelChange","ngModel"],["for","template-description"],["id","template-description","type","text",1,"template-field",3,"ngModelChange","ngModel"],"role;region;tabindex;0;aria-label;Standard issue fields".split(";"),[1,"cell-1",
"access-limit-row"],[1,"access-limit-field"],["for","template-issue-access-limits-dropdown"],["id","template-issue-access-limits-dropdown",3,"updatedAccessLimitLevel","disabled","defaultAccessLimitLevel","implicitAccessEnabled"],[1,"collaborator-group-field"],["for","template-title"],["id","template-title","type","text",1,"template-field",3,"ngModelChange","ngModel"],[1,"cell-3"],["for","template-default-type"],["id","template-default-type","type","button","mat-button","",1,"medium","primary",3,"matMenuTriggerFor"],
["name","arrow-dropdown","size","small"],[3,"overlapTrigger"],["type","button","mat-menu-item","",3,"disabled","matTooltip"],["for","template-default-priority"],["id","template-default-priority","type","button","mat-button","",1,"medium","primary",3,"matMenuTriggerFor"],["type","button","mat-menu-item","",3,"disabled"],["for","template-default-severity"],["id","template-default-severity","type","button","mat-button","",1,"medium","primary",3,"matMenuTriggerFor"],[1,"cell-1","bv2-edit-template-hotlists"],
["for","template-default-hotlist"],["id","template-default-hotlist",1,"hotlist-picker",3,"onApply","onCreate","onLoad","selectedHotlistIds","choices"],[1,"bv2-hotlist-chips"],[1,"float-clear"],[1,"cell-2"],["for","template-assignee"],["id","template-assignee","aria-expanded","true",1,"template-field",3,"emailChange","ariaLabel","email"],["for","template-verifier"],["id","template-verifier","aria-expanded","true",1,"template-field",3,"emailChange","ariaLabel","email"],["for","template-collaborators-peoplekit"],
["matTooltip","Collaborators are people directly working on this issue. When expanded access is on, this field grants issue edit permissions","svgIcon","help-outline","tabindex","0",1,"icon-xs","valign-middle","margin-xs-left"],["id","template-collaborators-peoplekit","aria-expanded","true",1,"template-field",3,"valueChange","ariaLabel","value"],["for","template-cc-peoplekit"],["id","template-cc-peoplekit","aria-expanded","true",1,"template-field",3,"valueChange","ariaLabel","value"],["for","template-comment"],
["id","template-comment",1,"template-field",3,"ngModelChange","ngModel"],[3,"change","initialValue"],["for","template-in-prod"],["id","template-in-prod","aria-label","issue in prod",3,"modelChange","model"],[1,"cell-1","staffing-row"],"role;region;tabindex;0;aria-label;Custom issue fields".split(";"),[3,"class"],[1,"buttons-row"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction"],["id","template-inheritable","aria-label","template inheritable by child components",3,"modelChange",
"model"],["for","template-inheritable"],["matTooltip","If activated, all child components will inherit this template. Make sure this template meets your organizational needs as sub-components will not be able to hide this template","svgIcon","help-outline","tabindex","0",1,"icon-xs","valign-middle","margin-xs-left"],["for","template-collaborator-groups-dropdown"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",1,"icon-xs","valign-middle","margin-xs-left",3,"matTooltip"],["appearance",
"outline",1,"static-label"],["multiple","","aria-label","Collaborator groups",3,"ngModelChange","ngModel"],[3,"value"],["type","button","mat-menu-item","",3,"click","disabled","matTooltip"],["type","button","mat-menu-item","",3,"click","disabled"],[3,"removeHotlist","hotlist"],["for","template-staffing"],["matTooltip","The Staffing field represents planned contributors on this issue.","svgIcon","help-outline","tabindex","0",1,"icon-xs","valign-middle","margin-xs-left"],["type","button",1,"staffing-button",
"b-input-style",3,"click"],[1,"staffing-text"],[1,"bv2-edit-button"],[3,"for"],["type","text",1,"template-field",3,"ngModel"],["type","number","step","any",1,"template-field",3,"ngModel"],[3,"type","name","clearable","value","choices"],[3,"boundValue"],[3,"defaultLineCount","type","values","enumChoices","truncate"],["type","text",1,"template-field",3,"ngModelChange","ngModel"],["type","number","step","any",1,"template-field",3,"ngModelChange","ngModel"],[3,"valueChange","type","name","clearable",
"value","choices"],[3,"boundValueChange","boundValue"],[3,"valuesChange","defaultLineCount","type","values","enumChoices","truncate"],["role","heading","aria-level","3",1,"template-row-name"],["colspan","2"],[1,"template-component-path"],[1,"header-label"],[3,"onedevHovercardTrigger","href"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"mat-dialog-close"],["type",
"button","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"],["type","button","mat-button","",1,"medium",3,"mat-dialog-close"],["type","button","cdkFocusInitial","","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"]],template:function(a,b){if(a&1){var c=t();K(0,"div")(1,"div",9);Q(2," A template is a set of default values for new issues created in this component. ");K(3,"a",10);Q(4,"Learn more");L()();K(5,"table",11)(6,"tr")(7,"th");Q(8,
"TEMPLATE");L();K(9,"th",12);Q(10,"DEFAULT");L();M(11,"th",12)(12,"th",12);L();Nf(13,$Ob,3,1,"tr",null,Mf);F(15,dPb,3,1);L();K(16,"div",13)(17,"b-button",14);N("onAction",function(){u(c);return v(hSd(b))});Q(18," Create New Template ");L()();E(19,ePb,7,3,"ng-template",null,0,Mg)(21,fPb,9,4,"ng-template",null,1,Mg);L()}if(a&2){var d;B(3);I("href","https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/templates",Ne);B(10);Of(eSd(b));B(2);G((d=fSd(b))?15:-1,d)}},dependencies:[MU,
Jy,fU,SV,oV,xj,oE,fE,mE,MZ,y3,KK,LK,SK,MK,K3,OV,kB,gB,VA,ZA,YA,uT,QU,yU,SD,TH,UH,hA,HD,vK,nA,sT,VJ,fH,dH,iH,B_,P_,yY,cX],styles:["[_nghost-%COMP%]     mat-form-field.static-label{width:180px;margin-top:5px;font-size:1rem}[_nghost-%COMP%]     mat-form-field.static-label .mat-mdc-form-field-infix{min-height:initial;padding:0}.buttons-row[_ngcontent-%COMP%]   b-button[_ngcontent-%COMP%]{margin-right:10px}.access-limit-field[_ngcontent-%COMP%]{margin-right:20px}.cell-1.access-limit-row[_ngcontent-%COMP%]{display:inline-flex;min-height:60px}.template-component-path[_ngcontent-%COMP%]{white-space:nowrap}.cell-1.staffing-row[_ngcontent-%COMP%]{width:auto}.cell-1.staffing-row[_ngcontent-%COMP%]   .staffing-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-1.staffing-row[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{align-items:center;cursor:pointer;display:flex;justify-content:space-between;width:100%}"]});var X3=function(){};X3.\u0275fac=function(a){return new (a||X3)};X3.\u0275mod=$e({type:X3});X3.\u0275inj=Fc({imports:[WO,W2]});var Y3=function(){};Y3.\u0275fac=function(a){return new (a||Y3)};Y3.\u0275mod=$e({type:Y3});Y3.\u0275inj=Fc({imports:[NU,WO,CU,S0,qV,DE,M_,F3,TK,X3,PV,mB,lL,TJ,HU,RU,fV,zU,kA,wK,GU,WJ,Q_,x0,dX,R_,Q_]});var Z3=function(){this.activeSession=p(uu);this.appSearchState=p(rT);this.analytics=p(eQ);this.domSafe=p(mR);this.enableEstado=this.activeSession.getFlag("enableEstado")};Z3.prototype.openInEstado=function(){this.analytics.trackEvent("listIssues","addOns","Estado");this.domSafe.openInNewTab("http://go/estado/dashboard-lite/buganizer?buganizer-query="+encodeURIComponent(this.appSearchState.currentQuery))};Z3.\u0275fac=function(a){return new (a||Z3)};
Z3.\u0275prov=Dc({token:Z3,factory:Z3.\u0275fac,providedIn:"root"});var a4=function(){this.sloStatusHelpersService=p(zS);this.dateFormatter=p(vS);this.timeDisplayText="--";this.rawObjectiveDisplayText=this.objectiveDisplayText=null;this.cardActionText="--";this.sloEndTimeDisplayText=ce("--");this.SloRuleDayType=hbd;this.iconName="slo-status-no-data"};a4.prototype.getIconName=function(a){return uSd.has(a)?uSd.get(a):"slo-status-no-data"};
var vSd=function(a,b,c){a.iconName=a.getIconName(b);c=c!==null?e7a(c*1E3).match(/^(\d+\s\D+)(?:\s|$)/)[1]:"";a.cardActionText=b==="COMPLETED"?a.sloMetricDescription==="ASSIGNMENT"?"Assigned on:":a.sloMetricDescription==="RESPONSE"?"Responded on:":a.sloMetricDescription==="CLOSURE"?"Closed on:":"SLO fulfilled on:":a.sloMetricDescription==="ASSIGNMENT"?"Assign by:":a.sloMetricDescription==="RESPONSE"?"Respond by:":a.sloMetricDescription==="CLOSURE"?"Close by:":"Due by:";switch(b){case "COMPLETED":a.timeDisplayText=
a.sloMetricDescription==="ASSIGNMENT"?"Issue assigned":a.sloMetricDescription==="RESPONSE"?"Response recorded":a.sloMetricDescription==="CLOSURE"?"Issue closed":"SLO fulfilled";break;case "SNOOZED_NEAR":case "SNOOZED_HEALTHY":case "HEALTHY":case "NEAR":a.timeDisplayText=a.sloMetricDescription==="ASSIGNMENT"?c+" to assign":a.sloMetricDescription==="RESPONSE"?c+" to respond":a.sloMetricDescription==="CLOSURE"?c+" to close":c+" left";break;case "OUT_OF_SLO":a.timeDisplayText=a.sloMetricDescription===
"ASSIGNMENT"?c+" overdue for assignment":a.sloMetricDescription==="RESPONSE"?c+" overdue for response":a.sloMetricDescription==="CLOSURE"?c+" overdue for closure":c+" overdue";break;case "NO_DATA":a.timeDisplayText=a.sloMetricDescription==="ASSIGNMENT"?"No assignment SLO":a.sloMetricDescription==="RESPONSE"?"No response SLO":a.sloMetricDescription==="CLOSURE"?"No closure SLO":"--";break;default:Xm("unknown status type: "+b)}};
a4.prototype.ngOnChanges=function(){var a=Date.now()/1E3;if(this.sloBounds&&AS(this.sloBounds)){var b=this.sloBounds.targetTime.seconds,c=b-this.sloBounds.startTime.seconds;c?this.objectiveDisplayText=e7a(c*1E3):this.objectiveDisplayText=null;var d,e,f;c=((e=(d=this.sloBounds.objective)==null?void 0:d.seconds)!=null?e:0)+((f=this.sloBounds.businessDays)!=null?f:0)*86400;this.rawObjectiveDisplayText=e7a(c*1E3);this.sloEndTimeDisplayText=lnd(this.dateFormatter,new Date(b*1E3));d=this.sloBounds;AS(d)&&
d.endTime&&d.endTime.seconds!==0&&d.endTime.seconds<=Date.now()/1E3?(b=this.sloBounds.endTime.seconds,this.sloEndTimeDisplayText=lnd(this.dateFormatter,new Date(b*1E3)),vSd(this,"COMPLETED",a-b)):b<a?vSd(this,"OUT_OF_SLO",a-b):(d=this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime),a=b-a,vSd(this,a>259200?d?"SNOOZED_HEALTHY":"HEALTHY":d?"SNOOZED_NEAR":"NEAR",a))}else vSd(this,"NO_DATA",null),this.rawObjectiveDisplayText=this.objectiveDisplayText=null};
a4.\u0275fac=function(a){return new (a||a4)};
a4.\u0275cmp=D({type:a4,selectors:[["b-slo-time-indicator"]],inputs:{sloBounds:"sloBounds",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSnoozeDetails:"includeSnoozeDetails",sloMetricDescription:"sloMetricDescription",includeObjective:"includeObjective"},standalone:!1,features:[jx],decls:15,vars:13,consts:[["card",""],[3,"svgIcon"],[1,"slo-time-indicator-text",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"slo-status-text"],["role","dialog","aria-label","More slo information",
1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"margin-s-bottom","padded-s-bottom","border-bottom"]],template:function(a,b){a&1&&(M(0,"mat-icon",1),K(1,"span",2)(2,"span",3),Q(3),L()(),K(4,"onedev-hovercard",null,0)(6,"div",4)(7,"div",5)(8,"div"),Q(9),L(),K(10,"div",6),Q(11),T(12,"async"),L(),F(13,gPb,4,2)(14,hPb,2,1,"div"),L()()());a&2&&(a=qg(5),xg(b.iconName),I("svgIcon",b.iconName),If("aria-label",b.timeDisplayText==="--"?"No SLO data":""),B(),I("onedevHovercardTrigger",a)("onedevHovercardActive",
!(!b.includeObjective||!b.rawObjectiveDisplayText)),B(2),yg(b.timeDisplayText),B(6),yg(b.timeDisplayText),B(2),zg(" ",b.cardActionText," ",U(12,11,b.sloEndTimeDisplayText)," "),B(2),G((b.sloBounds==null?null:b.sloBounds.dayType)===b.SloRuleDayType.BUSINESS?13:14))},dependencies:[Jy,KK,SK,Tx],styles:[".slo-time-indicator-text[_ngcontent-%COMP%]   span.slo-status-text[_ngcontent-%COMP%]{display:inline-block}mat-icon[_ngcontent-%COMP%]{margin-right:5px;width:18px;height:18px;flex-shrink:0}mat-icon.slo-status-snoozed-near-slo[_ngcontent-%COMP%], mat-icon.slo-status-near[_ngcontent-%COMP%]{color:#fa7b17;color:var(--slo-near)}mat-icon.slo-status-snoozed-healthy[_ngcontent-%COMP%], mat-icon.slo-status-healthy[_ngcontent-%COMP%], mat-icon.slo-status-no-data[_ngcontent-%COMP%], mat-icon.slo-status-completed[_ngcontent-%COMP%]{color:#80868b;color:var(--slo-healthy)}mat-icon.slo-status-out-of-slo[_ngcontent-%COMP%]{color:#ea4335;color:var(--slo-overdue)}[_nghost-%COMP%]{display:inline-flex}.onedev-hovercard-content[_ngcontent-%COMP%]{width:fit-content}"],
changeDetection:0});var uSd=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 b4=function(){this.sloStatusHelpersService=p(zS);this.includeNoSlo=!1};b4.prototype.ngOnInit=function(){wSd(this);this.hasSlo=!!this.sloStatus&&rnd(this.sloStatus)};b4.prototype.ngOnChanges=function(){wSd(this)};var wSd=function(a){a.sloStatus&&(a.assignmentSlo=xSd(Om(a.sloStatus.assignmentBounds)),a.responseSlo=xSd(Om(a.sloStatus.responseBounds)),a.closureSlo=xSd(Om(a.sloStatus.closureBounds)))};b4.prototype.isSloStartTimeApplied=function(){return this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime)};
var xSd=function(a){if(AS(a))return a};b4.\u0275fac=function(a){return new (a||b4)};
b4.\u0275cmp=D({type:b4,selectors:[["b-slo-status-summary"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeNoSlo:"includeNoSlo",onlyShowMetric:"onlyShowMetric"},standalone:!1,features:[jx],decls:3,vars:3,consts:[["sloMetricDescription","ASSIGNMENT",3,"sloStartTime","sloEndTime","sloBounds","includeObjective"],["sloMetricDescription","RESPONSE",3,"sloStartTime","sloEndTime","sloBounds","includeObjective"],["sloMetricDescription","CLOSURE",3,"sloStartTime",
"sloEndTime","sloBounds","includeObjective"]],template:function(a,b){a&1&&(F(0,iPb,2,4,"div"),F(1,jPb,2,4,"div"),F(2,kPb,2,4,"div"));a&2&&(G(!b.includeNoSlo&&!b.assignmentSlo||b.onlyShowMetric&&b.onlyShowMetric!="ASSIGNMENT"?-1:0),B(),G(!b.includeNoSlo&&!b.responseSlo||b.onlyShowMetric&&b.onlyShowMetric!="RESPONSE"?-1:1),B(),G(!b.includeNoSlo&&!b.closureSlo||b.onlyShowMetric&&b.onlyShowMetric!="CLOSURE"?-1:2))},dependencies:[a4],encapsulation:2,changeDetection:0});var c4=function(){this.sloStatusHelpersService=p(zS);this.analytics=p(eQ);this.sloApi=p(JQ)};c4.prototype.ngOnInit=function(){this.hasSlo=!!this.sloStatus&&snd(this.sloStatus,this.onlyShowMetric);this.sloId!=="0"?(this.editSloLink=qs.editSlo.makeHref(this.sloId),ySd(this)):this.editSloLink=null};c4.prototype.trackOpenSlo=function(){this.analytics.trackEvent("editSlo","open","fromSloStatusCard")};
var ySd=function(a){a.sloApi.get(a.sloId).then(function(b){a.sloName=b.name}).catch(function(){a.sloName=null})};c4.\u0275fac=function(a){return new (a||c4)};
c4.\u0275cmp=D({type:c4,selectors:[["slo-status-card"]],inputs:{sloId:"sloId",sloStatus:"sloStatus",sloStartTime:"sloStartTime",onlyShowMetric:"onlyShowMetric"},standalone:!1,ngContentSelectors:["*"],decls:10,vars:3,consts:[["card",""],[3,"onedevHovercardTrigger"],["role","dialog","aria-label","SLO Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bv2-hovercard-narrow"],[1,"slo-indicators"],[1,"no-slo-message"],[3,"sloStatus","sloStartTime","onlyShowMetric"],[1,"slo-link",3,
"href"],[1,"slo-link",3,"click","href"]],template:function(a,b){a&1&&(bg(),K(0,"span",1),cg(1),L(),K(2,"onedev-hovercard",null,0)(4,"div",2)(5,"div",3)(6,"div",4),F(7,lPb,2,3,"div",5)(8,oPb,3,1,"div",6),F(9,rPb,4,1,"span"),L()()()());a&2&&(a=qg(3),I("onedevHovercardTrigger",a),B(7),G(b.hasSlo?7:8),B(2),G(b.editSloLink?9:-1))},dependencies:[KK,SK,b4],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}hovercard-content[_ngcontent-%COMP%]   slo-time-indicator[_ngcontent-%COMP%]{display:inline-block;margin:2px 0}hovercard-content[_ngcontent-%COMP%]   .slo-indicators[_ngcontent-%COMP%]{margin-bottom:5px}hovercard-content[_ngcontent-%COMP%]   .no-slo-message[_ngcontent-%COMP%]{margin:2px 0 5px 2px}hovercard-content[_ngcontent-%COMP%]   .slo-link[_ngcontent-%COMP%]{margin-left:2px}/*# sourceMappingURL=slo_status_card.css.map */"]});var zSd=function(){var a=this;this.data=p(TA);this.column=this.data.column;this.columns=this.data.columns;this.selectedCustomField=null;this.isLegalColumn=function(b){return a.columns.find(function(c){return c.name===String(b.customFieldId)})===void 0}};zSd.\u0275fac=function(a){return new (a||zSd)};
zSd.\u0275cmp=D({type:zSd,selectors:[["b-column-picker-custom-dialog"]],standalone:!1,decls:9,vars:4,consts:[["mat-dialog-title",""],[3,"fieldSelected","filter"],["type","button","mat-button","",1,"medium","cancel",3,"mat-dialog-close"],["type","button","mat-flat-button","",1,"medium","dialog-primary-action","confirm",3,"disabled","mat-dialog-close"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1),L(),K(2,"mat-dialog-content")(3,"b-custom-field-picker",1),N("fieldSelected",function(c){return b.selectedCustomField=
c}),L()(),K(4,"mat-dialog-actions")(5,"button",2),Q(6," Cancel "),L(),K(7,"button",3),Q(8," Add "),L()());a&2&&(B(),S("Insert custom field column next to ",b.column.fullLabel),B(2),I("filter",b.isLegalColumn),B(4),I("disabled",!b.selectedCustomField)("mat-dialog-close",b.selectedCustomField))},dependencies:[VA,XA,ZA,YA,q3,kB,gB],encapsulation:2});var ASd=function(){};ASd.\u0275fac=function(a){return new (a||ASd)};ASd.\u0275mod=$e({type:ASd});ASd.\u0275inj=Fc({imports:[TJ,WO,r3,mB]});var sPb="issueId componentPath type status priority severity reporter assignee verifier cc collaborator changelist postmortem blockingIssueId blockedByIssueId createdTime modifiedTime resolvedTime verifiedTime title foundInVersion targetedToVersion verifiedInVersion inProd duplicateOfIssueId voteCount duplicateCount ccCount collaboratorCount lastModifier archived minSlo assignmentSlo responseSlo closureSlo deletionTime team estimate estimateTotalOpen estimateTotalComplete accessLevel descendantCount openDescendantCount oneDayViewCount sevenDayViewCount thirtyDayViewCount escalationOwner".split(" "),
BSd="priority type title assignee status sevenDayViewCount issueId modifiedTime".split(" ");var Wt=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)};Wt.prototype.toString=function(){return this.isCustomField?"customfield:"+this.name+"["+this.fullLabel+"]":this.name};
var yPb={issueId:{defaultSortDirection:"DESC",label:"ID",moreOptions:[{name:"id-link",menuItem:"Plain Link"},{name:"id-copy",menuItem:"Quick Copy Chip"}]},priority:{label:"P",fullLabel:"Priority"},severity:{label:"S",fullLabel:"Severity"},modifiedTime:{defaultSortDirection:"DESC",label:"LAST MODIFIED"},createdTime:{defaultSortDirection:"DESC",label:"CREATED"},verifiedTime:{defaultSortDirection:"DESC",label:"VERIFIED"},resolvedTime:{defaultSortDirection:"DESC",label:"RESOLVED"},blockedByIssueId:{sortable:!1,
label:"BLOCKED BY"},foundInVersion:{label:"FOUND IN"},targetedToVersion:{label:"TARGETED TO"},verifiedInVersion:{label:"VERIFIED IN"},inProd:{label:"IN PROD"},duplicateOfIssueId:{sortable:!1,label:"DUPLICATE OF"},componentPath:{label:"COMPONENT",moreOptions:[{name:"wrapComponents",menuItem:"Wrap components"},{name:"rtlComponentPath",menuItem:"Prefer right alignment"}]},cc:{sortable:!1},collaborator:{sortable:!1},changelist:{sortable:!1},postmortem:{sortable:!1},blockingIssueId:{sortable:!1,label:"BLOCKING"},
title:{moreOptions:[{name:"showHotlists",menuItem:"Show hotlists"},{name:"wrapTitles",menuItem:"Wrap titles"}]},status:{moreOptions:[{name:"showStatusIcons",menuItem:"Icons only"},{name:"status-plain",menuItem:"Plain text (no colors)"}]},voteCount:{defaultSortDirection:"DESC",label:"VOTES",fullLabel:"Vote Count"},duplicateCount:{defaultSortDirection:"DESC",label:"DUPE COUNT",tooltip:"Duplicate Count"},ccCount:{defaultSortDirection:"DESC",label:"CC COUNT"},collaboratorCount:{defaultSortDirection:"DESC",
label:"COLLABORATOR COUNT"},lastModifier:{label:"LAST MODIFIED BY"},minSlo:{defaultSortDirection:"ASC",label:"NEAREST SLO",fullLabel:"Nearest SLO",parentLabel:"SLO"},assignmentSlo:{label:"ASSIGNMENT SLO",fullLabel:"Assignment SLO",parentLabel:"SLO",sortable:!0},responseSlo:{label:"RESPONSE SLO",fullLabel:"Response SLO",parentLabel:"SLO",sortable:!0},closureSlo:{label:"CLOSURE SLO",fullLabel:"Closure SLO",parentLabel:"SLO",sortable:!0},escalationOwner:{label:"OWNER",fullLabel:"Owner",parentLabel:"SLO",
sortable:!0},deletionTime:{label:"DELETION DATE",fullLabel:"Deletion Date",sortable:!0},team:{label:"TEAM",sortable:!0},estimate:{label:"ESTIMATE",fullLabel:"Estimate",parentLabel:"Estimates",sortable:!0},estimateTotalOpen:{label:"TOTAL DAYS OPEN",fullLabel:"Total days open",parentLabel:"Estimates",sortable:!0,tooltip:"Total estimate of all child issues that are open in number of days"},estimateTotalComplete:{label:"TOTAL DAYS COMPLETE",fullLabel:"Total days complete",parentLabel:"Estimates",sortable:!0,
tooltip:"Total estimate of all child issues that are complete (fixed or won\u2019t fix) in number of days"},accessLevel:{label:"ISSUE ACCESS LEVEL",sortable:!0},descendantCount:{defaultSortDirection:"DESC",parentLabel:"Descendant Issue",label:"DESCENDANT COUNT",sortable:!0},openDescendantCount:{defaultSortDirection:"DESC",parentLabel:"Descendant Issue",label:"OPEN DESCENDANT COUNT",sortable:!0},oneDayViewCount:{defaultSortDirection:"DESC",parentLabel:"View Count",label:"24H VIEWS",sortable:!0,tooltip:"Total view count in the past 24 hours"},
sevenDayViewCount:{defaultSortDirection:"DESC",parentLabel:"View Count",label:"7D VIEWS",sortable:!0,tooltip:"Total view count in the past seven days"},thirtyDayViewCount:{defaultSortDirection:"DESC",parentLabel:"View Count",label:"30D VIEWS",sortable:!0,tooltip:"Total view count in the past thirty days"}};var CSd=function(a,b,c){this.target=a;this.eventType=b;this.listener=c;this.target.addEventListener(this.eventType,this.listener)};CSd.prototype.off=function(){this.target.removeEventListener(this.eventType,this.listener)};var DSd=function(){this.bindings=[]};DSd.prototype.off=function(){for(var a=m(this.bindings),b=a.next();!b.done;b=a.next())b.value.off()};
var ESd=function(a){var b=this;this.params=a;this.mask=document.createElement("div");this.eventBindings=new DSd;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"),b.dragIndex!=null&&(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(b.dragIndex!=null)b.params.onDragDropColumn(b.dragIndex,d)})}c.stopPropagation();c.preventDefault()};this.element=this.params.nativeElement};
ESd.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(){FSd(a,"dragstart",a.onDragTargetDragstart);FSd(a,"dragenter",a.onDragTargetDragenter);FSd(a,"dragend",a.onDragTargetDragend);FSd(a,"selectstart",a.onDragTargetSelectstart);a.eventBindings.bindings.push(new CSd(a.mask,"dragleave",a.onMaskDragLeave));
a.eventBindings.bindings.push(new CSd(a.mask,"dragover",a.onMaskDragover));a.eventBindings.bindings.push(new CSd(a.mask,"drop",a.onMaskDrop))})};var FSd=function(a,b,c){a.eventBindings.bindings.push(new CSd(a.element,b,aq("th.drag-target",c)))};ESd.prototype.tearDown=function(){this.eventBindings.off()};var GSd=["table"],HSd=["defaultHeaderCellTemplate"],ISd=["defaultViewCellTemplate"],JSd=["dataRows"],BPb=function(a){return{column:a}},EPb=function(a,b,c){return{row:a,column:b,index:c}},GPb=function(a,b){return b.name},IPb=function(a,b){return b.id},d4=function(){var a=this;this.activeSession=p(uu);this.ngZone=p(Rg);this.headerCellTemplates={};this.viewCellTemplates={};this.list=[];this.columns=[];this.columnsChange=new aQ;this.rowClick=new aQ;this.rowLabelRenderer=function(b,c){return"Row "+c};
this.sortChange=new aQ;this.focusedRowIndexChange=new aQ;this.afterViewInit=new aQ;this.enableDragDropHeader=!0;this.hoveredRowIndex=new aQ;this.readUnreadOptOut=this.activeSession.getFlag("readUnreadOptOut");this.onDragDropColumn=function(b,c){var d=[].concat(q(a.columns));b=d.splice(b,1)[0];d.splice(c,0,b);a.columns=d;a.columnsChange.emit([].concat(q(a.columns)))};this.onTdClickableClick=aq("td.clickable",function(b,c){if((b.type!=="mouseup"||b.button===1)&&!Yrd(c)&&(c=c.closest("tr"))){var d,e=
(d=c.dataset.rowId)!=null?d:"";a.rowClick.emit({id:e,isRead:!!c.dataset.isRead,event:b})}})};d4.prototype.ngOnInit=function(){this.enableDragDropHeader&&KSd(this);this.tableElement.nativeElement.addEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.addEventListener("mouseup",this.onTdClickableClick)};
var KSd=function(a){a.dragDropHeaderLogic=new ESd({nativeElement:a.tableElement.nativeElement,ngZone:a.ngZone,getColumnIndexForElement:function(b){return a.getColumnIndexForElement(b)},onDragDropColumn:function(b,c){a.onDragDropColumn(b,c)}});a.dragDropHeaderLogic.setup()};
d4.prototype.ngOnChanges=function(a){if(a=a.focusedRowIndex){var b=a.currentValue;b!=null&&b!==a.previousValue&&this.dataRows&&(a=this.dataRows.toArray()[b])&&(O9a(a.nativeElement)||a.nativeElement.scrollIntoView({block:"center"}),this.focus())}};d4.prototype.ngAfterViewInit=function(){this.afterViewInit.emit(this)};
d4.prototype.ngOnDestroy=function(){var a;(a=this.dragDropHeaderLogic)==null||a.tearDown();this.tableElement.nativeElement.removeEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.removeEventListener("mouseup",this.onTdClickableClick)};var LSd=function(a){return a.columns.map(function(b){b=b.name;return b!=null?a.viewCellTemplates[b]||a.defaultViewCellTemplate:a.defaultViewCellTemplate})};d4.prototype.renderRowLabel=function(a,b){return this.rowLabelRenderer(a,b)};
d4.prototype.focus=function(){if(this.focusedRowIndex!=null&&this.dataRows!=null){var a=this.dataRows.toArray()[this.focusedRowIndex];a&&a.nativeElement.focus()}};d4.prototype.getColumnIndexForElement=function(a){var b=a.dataset.dragTargetColumnName;return this.columns.findIndex(function(c){return c.name===b})};d4.\u0275fac=function(a){return new (a||d4)};
d4.\u0275cmp=D({type:d4,selectors:[["pop-grid"]],viewQuery:function(a,b){a&1&&(hg(GSd,7),hg(HSd,7),hg(ISd,7),hg(JSd,5,Hd));if(a&2){var c;lg(c=mg())&&(b.tableElement=c.first);lg(c=mg())&&(b.defaultHeaderCellTemplate=c.first);lg(c=mg())&&(b.defaultViewCellTemplate=c.first);lg(c=mg())&&(b.dataRows=c)}},inputs:{list:"list",columns:"columns",rowLabelRenderer:"rowLabelRenderer",sort:"sort",focusedRowIndex:"focusedRowIndex",scrollContainer:"scrollContainer",enableDragDropHeader:"enableDragDropHeader"},outputs:{columnsChange:"columnsChange",
rowClick:"rowClick",sortChange:"sortChange",focusedRowIndexChange:"focusedRowIndexChange",afterViewInit:"afterViewInit",hoveredRowIndex:"hoveredRowIndex"},standalone:!1,features:[jx],decls:15,vars:1,consts:[["table",""],["defaultHeaderCellTemplate",""],["defaultViewCellTemplate",""],["dataRows",""],[1,"pop-grid",3,"mousedown"],[3,"class"],[1,"header-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",3,"selected","unread","closed","grid-focus"],["tabindex","0",3,"click","focus",
"mouseover","mouseleave"],[3,"column"],[3,"row","column"]],template:function(a,b){if(a&1){var c=t();K(0,"table",4,0);N("mousedown",function(e){u(c);e.shiftKey&&window.getSelection().removeAllRanges();return v()});K(2,"colgroup");Nf(3,zPb,1,3,"col",5,GPb);L();K(5,"thead")(6,"tr",6);Nf(7,CPb,1,4,"ng-container",null,GPb);L()();K(9,"tbody");F(10,JPb,2,0);L()();E(11,KPb,2,1,"ng-template",null,1,Mg)(13,LPb,2,2,"ng-template",null,2,Mg)}if(a&2){var d;B(3);Of(b.columns);B(4);Of(b.columns);B(3);G((d=LSd(b))?
10:-1,d)}},encapsulation:2});var MSd=function(){this.templateRef=p(dg);this.popGrid=p(d4)};MSd.prototype.ngOnInit=function(){this.forHeaderCell&&(this.popGrid.headerCellTemplates[this.forHeaderCell]=this.templateRef)};MSd.\u0275fac=function(a){return new (a||MSd)};MSd.\u0275dir=af({type:MSd,selectors:[["","forHeaderCell",""]],inputs:{forHeaderCell:"forHeaderCell"},standalone:!1});var NSd=function(){this.templateRef=p(dg);this.popGrid=p(d4)};
NSd.prototype.ngOnInit=function(){this.forViewCell&&(this.popGrid.viewCellTemplates[this.forViewCell]=this.templateRef)};NSd.\u0275fac=function(a){return new (a||NSd)};NSd.\u0275dir=af({type:NSd,selectors:[["","forViewCell",""]],inputs:{forViewCell:"forViewCell"},standalone:!1});var OSd=function(){this.templateRef=p(dg);this.popGrid=p(d4)};OSd.prototype.ngOnInit=function(){this.popGrid.defaultHeaderCellTemplate=this.templateRef};OSd.\u0275fac=function(a){return new (a||OSd)};
OSd.\u0275dir=af({type:OSd,selectors:[["","forHeaderCellDefault",""]],standalone:!1});var e4=function(){this.columnLabel=this.columnName="";this.defaultSortDirection="ASC";this.sortChanged=new aQ};e4.prototype.ariaLabel=function(){var a=this.columnLabel+", sortable";return this.isActive()?this.sort.direction==="ASC"?a+", sorted ascending":a+", sorted descending":a};e4.prototype.isActive=function(){return!!this.sort&&this.sort.field===this.columnName};
e4.prototype.activate=function(){var a=this.defaultSortDirection;this.isActive()&&(a=this.sort.direction==="ASC"?"DESC":"ASC");this.sortChanged.emit({field:this.columnName,direction:a})};e4.\u0275fac=function(a){return new (a||e4)};
e4.\u0275cmp=D({type:e4,selectors:[["b-sortable-header"]],inputs:{columnName:"columnName",columnLabel:"columnLabel",sort:"sort",defaultSortDirection:"defaultSortDirection"},outputs:{sortChanged:"sortChanged"},standalone:!1,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&&(K(0,"div",0),N("click",function(){return b.activate()})("keydown.enter",function(c){b.activate();
return c.stopPropagation()})("keydown.space",function(c){b.activate();return c.stopPropagation()}),M(1,"span",1),Q(2),L());a&2&&(wg("current-sort",b.isActive())("direction-asc",b.isActive()&&b.sort.direction==="ASC")("direction-desc",b.isActive()&&b.sort.direction==="DESC"),If("aria-label",b.ariaLabel()),B(2),S(" ",b.columnLabel," "))},encapsulation:2});var f4=function(){this.elementRef=p(Hd);this.grid=p(d4,{optional:!0})};f4.prototype.ngAfterViewInit=function(){if(this.column){var a=this.column;if(a.draggable){var b;a:{for(b=this.elementRef.nativeElement;b.parentElement;){if(b.parentElement.tagName==="TH"){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}}};
f4.prototype.ngOnDestroy=function(){this.cellParent&&delete this.cellParent.dataset.dragTargetColumnName};f4.\u0275fac=function(a){return new (a||f4)};
f4.\u0275cmp=D({type:f4,selectors:[["pop-grid-default-th"]],inputs:{column:"column"},standalone:!1,decls:3,vars:1,consts:[[1,"pop-grid-default-th"],[3,"columnLabel","columnName","defaultSortDirection","sort","matTooltip"],["tabindex","0",1,"pop-grid-non-sort-header","keep-focus-ring"],[3,"sortChanged","columnLabel","columnName","defaultSortDirection","sort","matTooltip"],[1,"a11y-only"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,MPb,1,5,"b-sortable-header",1)(2,OPb,3,3,"div",2),L());a&2&&(B(),
G(b.column.sortable?1:2))},dependencies:[vK,nA,e4],encapsulation:2});var PSd=function(){return{before:!1}},QSd=function(){return{before:!0}},VPb=function(a,b){return{columns:a,before:b}},g4=function(){Z.call(this);var a=this;this.matDialog=p(UA);this.userPreferencesManager=p(hR);this.butterBar=p(UN);this.analytics=p(eQ);this.hotkeys=p(nU);this.activeSession=p(uu);this.selectedColumnsChange=new aQ;this.onAddTeamColumn=new aQ;this.currentAvailableItems=[];this.isRemovable=!0;this.menuOpen=!1;this.listViewPrefs=LN.listViewPreferences;this.userPreferencesManager.preferences$.pipe(zf(this.destroyed$)).subscribe(function(b){a.listViewPrefs=
b.listViewPreferences||LN.listViewPreferences})};Y(g4,Z);g4.\u0275dir=Z.\u0275dir;g4.prototype.ngOnChanges=function(a){a.selectedColumns&&RSd(this)};
var SSd=function(a){a.selectedColumnsChange.emit([].concat(q(a.selectedColumns)));RSd(a)},QPb=function(a,b){var c=Object.assign({},a.listViewPrefs),d=RPb(b),e=d.get;d=d.set;d(c,!e(c));a.activeSession.isAnonymous()||Rr(a.butterBar,"Saving display preference...",0);a.userPreferencesManager.save({listViewPreferences:c}).pipe(lf(1),zf(a.destroyed$)).subscribe(function(){a.analytics.trackEvent("preferences","setListViewPref:"+b,e(c).toString());a.listViewPrefs=c;a.activeSession.isAnonymous()||Rr(a.butterBar,
"Display preference saved.",4E3)},function(){a.activeSession.isAnonymous()||a.butterBar.showWarning("Display preference could not be saved.")})},YPb=function(a,b){a.hotkeys.pause();SA(a.matDialog.open(zSd,{data:{column:a.column,columns:a.selectedColumns},position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(zf(a.destroyed$)).subscribe({next:function(c){c&&a.add(c,b)},error:function(){a.hotkeys.unpause()},complete:function(){a.hotkeys.unpause()}})},RSd=function(a){for(var b={},
c=m(a.selectedColumns),d=c.next();!d.done;d=c.next())b[d.value.name]=!0;var e=a.availableColumns.filter(function(f){return!kta(b,f.name)});c=[].concat(q(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(g){return g.parentLabel===f})}});d=e.filter(function(f){return!f.parentLabel});a.currentAvailableItems=[].concat(q(d),q(c));a.currentAvailableItems.sort(function(f,g){return wa(f instanceof Wt?f.fullLabel:
f.label,g instanceof Wt?g.fullLabel:g.label)});a.isRemovable=TSd(a)};g4.prototype.isIssueGridColumn=function(a){return a instanceof Wt};g4.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,SSd(this),!0}return!1};
g4.prototype.add=function(a,b){var c=this;this.menuTrigger.closeMenu();a="customFieldId"in a&&a.customFieldId?new Wt({name:a.customFieldId.toString(),label:a.name,fullLabel:a.name,sortable:!0,draggable:!0,isCustomField:!0}):a;a.label==="TEAM"&&this.onAddTeamColumn.emit();var d=this.selectedColumns.findIndex(function(e){return e.name===c.column.name});if(d===-1)return!1;b=b?d:d+1;this.selectedColumns=[].concat(q(this.selectedColumns));this.selectedColumns.splice(b,0,a);SSd(this);return!0};
var TSd=function(a){return a.selectedColumns.filter(function(b){return!b.isMetadata}).length>1};g4.\u0275fac=function(a){return new (a||g4)};
g4.\u0275cmp=D({type:g4,selectors:[["b-column-picker"]],viewQuery:function(a,b){a&1&&hg(iH,5);if(a&2){var c;lg(c=mg())&&(b.menuTrigger=c.first)}},inputs:{column:"column",availableColumns:"availableColumns",selectedColumns:"selectedColumns"},outputs:{selectedColumnsChange:"selectedColumnsChange",onAddTeamColumn:"onAddTeamColumn"},standalone:!1,features:[Ef,jx],decls:21,vars:10,consts:[["pickerMenu","matMenu"],["addColumnMenu","matMenu"],["columnGroupMenu","matMenu"],["menuTrigger","matMenuTrigger"],
[1,"bv2-column-picker-container"],[1,"bv2-columnheader-content"],[3,"column"],["mat-button","","tabindex","0","role","button",1,"columnpicker-button",3,"matMenuTriggerFor","columnpicker-button-active"],[1,"columnpicker-menu"],["type","button","mat-menu-item","",1,"checkbox-item",3,"b-menu-item-checked"],["type","button","mat-menu-item","",3,"click","disabled"],["type","button","mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],["matMenuContent",""],["mat-button","","tabindex","0","role",
"button",1,"columnpicker-button",3,"menuOpened","menuClosed","keydown.enter","keydown.space","matMenuTriggerFor"],["type","button","mat-menu-item","",1,"checkbox-item",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-description"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item","",3,"matTooltip"],["type","button","mat-menu-item","",3,"click","keydown.enter","matTooltip"],["type","button","mat-menu-item",""],["type","button",
"mat-menu-item","",3,"click","keydown.enter"]],template:function(a,b){if(a&1){var c=t();K(0,"div",4)(1,"div",5);M(2,"pop-grid-default-th",6);L();F(3,PPb,2,5,"div",7);K(4,"mat-menu",8,0);Nf(6,SPb,4,3,"button",9,Mf);F(8,TPb,1,0,"mat-divider");K(9,"button",10);N("click",function(){u(c);return v(b.remove())});Q(10," Remove column ");L();K(11,"button",11);Q(12," Add column right ");L();K(13,"button",11);Q(14," Add column left ");L()();K(15,"mat-menu",null,1);E(17,ZPb,5,0,"ng-template",12);L();K(18,"mat-menu",
null,2);E(20,aQb,2,0,"ng-template",12);L()()}a&2&&(a=qg(16),B(2),I("column",b.column),B(),G(3),B(3),Of(b.column.moreOptions),B(2),G(b.column.moreOptions.length?8:-1),B(),I("disabled",!b.isRemovable),B(2),I("matMenuTriggerFor",a)("matMenuTriggerData",Hg(8,PSd)),B(2),I("matMenuTriggerFor",a)("matMenuTriggerData",Hg(9,QSd)))},dependencies:[VJ,fH,dH,eH,iH,hK,vK,nA,sT,f4],styles:['.bv2-columheader-content[_ngcontent-%COMP%]{display:inline-block;height:100%}.columnpicker-button[_ngcontent-%COMP%]{background:none;border:1px solid rgba(0,0,0,0);height:24px;width:24px;opacity:.8}.columnpicker-button[_ngcontent-%COMP%]::before{background:none;border-radius:50%;position:absolute;top:-2px;bottom:-2px;left:-2px;right:-2px;box-sizing:border-box;content:"";display:block}.columnpicker-button[_ngcontent-%COMP%]:hover::before, .columnpicker-button[_ngcontent-%COMP%]:focus::before, .columnpicker-button.columnpicker-button-active[_ngcontent-%COMP%]::before{background-color:#dadce0;background-color:var(--c300);opacity:1}.columnpicker-button[_ngcontent-%COMP%]::after{background:url(https://www.gstatic.com/buganizer/img/v0/arrow_drop_down_black.svg);content:"";cursor:pointer;height:24px;width:24px;opacity:.8;position:absolute}@media(forced-colors: active){.columnpicker-button[_ngcontent-%COMP%]::after{filter:invert(1)}}  .columnpicker-menu .mat-mdc-menu-content button.mat-mdc-menu-item{white-space:normal;font-family:Roboto,Arial,sans-serif}  .columnpicker-menu .mat-mdc-menu-content button.mat-mdc-menu-item.checkbox-item{padding-left:24px}  .columnpicker-menu .mat-mdc-menu-content button.mat-mdc-menu-item .b-menu-item-check-mark{top:50%;transform:translate(0, -50%)}/*# sourceMappingURL=column_picker.css.map */']});var WSd=function(a){var b=this;this.params=a;this.element=this.params.nativeElement;this.dropzone=document.createElement("div");this.onTdDragStart=aq("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=aq("tr",function(c,d){if(b.draggedRow&&b.dragTargetRow!==d&&d.closest("tbody")&&
d!==b.draggedRow){USd(b.dragTargetRow);b.dragTargetRow=d;var e;b.draggedIssueIndex=b.params.rowFinder((e=b.draggedRow.dataset.rowId)!=null?e:void 0);var f;b.dragTargetIndex=b.params.rowFinder((f=b.dragTargetRow.dataset.rowId)!=null?f:void 0);b.dragTargetRow.classList.add("drag-over");b.dragTargetIndex>b.draggedIssueIndex?b.dragTargetRow.classList.add("below"):b.dragTargetRow.classList.add("above");a:{for(c=b.dragTargetRow.parentElement;c;){if(window.getComputedStyle(c).position!=="static")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=aq("tr",function(){b.draggedRow&&(USd(b.draggedRow),USd(b.dragTargetRow),b.draggedRow.setAttribute("aria-grabbed",
"false"),b.draggedRow=b.dragTargetRow=void 0)});this.onTrDragLeave=aq("tr",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragEnter=aq(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragLeave=aq(".row-dropzone",function(c){USd(b.dragTargetRow);VSd(b);c.stopPropagation();c.preventDefault()});this.onDropzoneDragOver=aq(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDrop=aq(".row-dropzone",function(c){VSd(b);
b.draggedIssueIndex!==b.dragTargetIndex&&b.params.ngZone.run(function(){if(b.draggedIssueIndex!=null&&b.dragTargetIndex!=null)b.params.onRowDragDrop({srcIndex:b.draggedIssueIndex,destIndex:b.dragTargetIndex})});c.stopPropagation();c.preventDefault()})};
WSd.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");VSd(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)})};
WSd.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 USd=function(a){a&&(a.classList.remove("drag-over"),a.classList.remove("above"),a.classList.remove("below"),a.classList.remove("dragging"))},VSd=function(a){a.dropzone.style.display="none"};var h4=function(){this.userPreferencesManager=p(hR);this.isParentRowActive=!1;this.onClick=new aQ;this.density$=this.userPreferencesManager.preferences$.pipe(A(function(a){var b;return(b=a.themePreferences)==null?void 0:b.density}));this.useSmallIcon$=this.density$.pipe(A(function(a){return a!=="COMFORTABLE"}))};h4.prototype.handleClick=function(){this.onClick.emit()};h4.prototype.handleKeydown=function(a){if(a.key==="Enter"||a.key===" ")a.preventDefault(),a.stopPropagation(),this.onClick.emit()};
h4.\u0275fac=function(a){return new (a||h4)};
h4.\u0275cmp=D({type:h4,selectors:[["b-sidebar-toggle"]],inputs:{isParentRowActive:"isParentRowActive"},outputs:{onClick:"onClick"},standalone:!1,decls:3,vars:4,consts:[["type","button","aria-label","Open issue sidebar","mat-icon-button","",1,"right-panel-toggle",3,"click","keydown"],["svgIcon","right_panel_open_24px",1,"icon-s"]],template:function(a,b){a&1&&(K(0,"button",0),T(1,"async"),N("click",function(c){return b.handleClick(c)})("keydown",function(c){return b.handleKeydown(c)}),M(2,"mat-icon",
1),L());a&2&&wg("small",U(1,2,b.useSmallIcon$))},dependencies:[Jy,kB,iB,Tx],encapsulation:2,changeDetection:0});var i4=function(){this.sloStatusHelpersService=p(zS);this.includeObjective=this.includeSloMetric=!1;this.firstOpenSlo=null;this.firstOpenSloMetric=""};i4.prototype.ngOnInit=function(){XSd(this)};i4.prototype.ngOnChanges=function(a){(a.sloStatus||a.includeSloMetric)&&XSd(this)};var XSd=function(a){var b=tnd(a.sloStatus);b?(a.firstOpenSlo=b.sloBounds,a.includeSloMetric?a.firstOpenSloMetric=b.sloMetric:a.firstOpenSloMetric=""):(a.firstOpenSlo=null,a.firstOpenSloMetric="")};
i4.\u0275fac=function(a){return new (a||i4)};
i4.\u0275cmp=D({type:i4,selectors:[["b-aggregated-slo-status-indicator"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSloMetric:"includeSloMetric",includeObjective:"includeObjective"},standalone:!1,features:[jx],decls:1,vars:5,consts:[[3,"sloBounds","sloMetricDescription","sloStartTime","sloEndTime","includeObjective"]],template:function(a,b){a&1&&M(0,"b-slo-time-indicator",0);a&2&&I("sloBounds",b.firstOpenSlo)("sloMetricDescription",b.firstOpenSloMetric)("sloStartTime",
b.sloStartTime)("sloEndTime",b.sloEndTime)("includeObjective",b.includeObjective)},dependencies:[a4],encapsulation:2,changeDetection:0});var YSd=function(){};YSd.\u0275fac=function(a){return new (a||YSd)};YSd.\u0275cmp=D({type:YSd,selectors:[["archived-issue-indicator"]],standalone:!1,decls:3,vars:0,consts:[["aria-hidden","true","svgIcon","archive_24px"]],template:function(a){a&1&&(K(0,"span"),M(1,"mat-icon",0),Q(2,"Archived "),L())},dependencies:[Jy],styles:["span[_ngcontent-%COMP%]{border-radius:8px;display:inline-block;line-height:18px;padding:0 10px;margin-right:6px;color:#202124;color:var(--text-high-contrast);background-color:#feefc3;background-color:var(--archived-bg)}mat-icon[_ngcontent-%COMP%]{height:15px;width:15px;margin:2px;vertical-align:middle;color:#5f6368;color:var(--icon)}"]});
var ZSd=function(){};ZSd.\u0275fac=function(a){return new (a||ZSd)};ZSd.\u0275mod=$e({type:ZSd});ZSd.\u0275inj=Fc({imports:[WO]});var $Sd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($Sd,W);$Sd.prototype.getIssueId=function(){return pn(this,1)};$Sd.prototype.getIssueId_asString=function(){return tn(this,1)};$Sd.prototype.setIssueId=function(a){return Io(this,1,a)};var aTd=function(a){return Hm(a,2,2)};var bTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bTd,W);var cTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,cTd.messageId)};Y(cTd,W);cTd.prototype.getIt=function(){return X(this,bTd,2,jb)};cTd.prototype.setIt=function(a){return Mi(this,bTd,2,a,jb)};cTd.messageId="b.ListStatusUpdateHistoryResponse";var j4=function(){this.executor=p(bO)};j4.prototype.update=function(a){var b=this.executor,c=b.post,d="action/issues/"+a.issueId+"/statusUpdate";a=(new AP).setIt(dXa(a));return c.call(b,{url:d,body:a,responseConstructor:AP}).pipe(A(H0a))};j4.prototype.delete=function(a){return this.executor.delete({url:"action/issues/"+a+"/statusUpdate",responseConstructor:null})};
var dTd=function(a,b){var c=aTd((new $Sd).setIssueId(Number(b)));return a.executor.post({url:"action/issues/"+b+"/listStatusUpdates",body:c,responseConstructor:cTd}).pipe(A(function(d){d=d.getIt();return Bi(d,wp,1,Ci()).map(cXa)}))};j4.\u0275fac=function(a){return new (a||j4)};j4.\u0275prov=Dc({token:j4,factory:j4.\u0275fac,providedIn:"root"});var eTd=function(a){return[a]},k4=function(){var a=this;this.matDialog=p(UA);this.router=p(fF);this.destroyRef=p(Ce);this.router.events.pipe(ue(function(b){return b instanceof Pj}),Tj(this.destroyRef)).subscribe(function(){var b;(b=a.dialog)==null||b.close();a.dialog=void 0})};
k4.prototype.show=function(a,b,c){var d=this,e,f;return y(function(g){if(g.nextAddress==1)return d.dialog&&(d.dialog.close(),d.dialog=void 0),a.formattingMode==="LITERAL"&&(a.formattingMode="PLAIN"),e={width:"60vw",disableClose:!0,closeOnNavigation:!1,panelClass:"no-jitter",data:{componentId:c,formattingAudience:b,statusUpdate:a}},d.dialog=d.matDialog.open(l4,e),z(g,fe(SA(d.dialog)),2);f=g.yieldResult;d.dialog=void 0;return g.return(f)})};k4.\u0275fac=function(a){return new (a||k4)};
k4.\u0275prov=Dc({token:k4,factory:k4.\u0275fac,providedIn:"root"});var m4=function(){this.userPreferencesManager=p(hR)},fTd=function(a,b){var c;return y(function(d){return d.nextAddress==1?(c=b,z(d,fe(a.userPreferencesManager.currentCommentFormattingMode$),2)):d.return({issueId:c,updateText:"",version:-1,formattingMode:d.yieldResult})})};m4.\u0275fac=function(a){return new (a||m4)};m4.\u0275prov=Dc({token:m4,factory:m4.\u0275fac,providedIn:"root"});
var l4=function(){Z.apply(this,arguments);this.activeSession=p(uu);this.checkBeforeExit=p(rY);this.data=p(TA);this.dialogService=p(k4);this.dialogRef=p(RA);this.bannedWordsChecker=p(PW);this.CHAR_LIMIT=2E3;this.FormattingMode=Um;this.formattingAudience=this.data.formattingAudience;this.contentRemovalRequestLink=this.activeSession.isInternalSession()?"https://goto.corp.google.com/delete-comments-attachments":"https://issuetracker.google.com/issues/new?component=169992&template=543202";this.origStatusUpdate=
this.data.statusUpdate;this.newStatusUpdate=nm(this.origStatusUpdate)};Y(l4,Z);l4.\u0275dir=Z.\u0275dir;var gTd=function(a){var b,c;return(c=t7a((b=a.newStatusUpdate)==null?void 0:b.updateText))!=null?c:""};h=l4.prototype;h.ngOnInit=function(){var a=this;this.subscriptions.add(sY(this.checkBeforeExit,function(){return a.isModified()},!1));this.dialogRef.keydownEvents().pipe(zf(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(zf(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};
h.closeIfUnmodified=function(){if(!this.isModified()){var a;(a=this.dialogService.dialog)==null||a.close()}};h.isModified=function(){return!mm(this.newStatusUpdate,this.origStatusUpdate)};h.asNumber=function(a){return Number(a)};
h.closeDialogForSave=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return a.isModified()?z(e,a.bannedWordsChecker.check(a.newStatusUpdate.updateText,a.formattingAudience==="EXTERNAL",a.data.componentId),2):e.return();b=e.yieldResult;if(!b)return(c=a.commentDraft)==null||yBd(c),e.return();(d=a.dialogService.dialog)==null||d.close(a.newStatusUpdate);ae(e)})};l4.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(l4)))(b||l4)}}();
l4.\u0275cmp=D({type:l4,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&hg(pY,5);if(a&2){var c;lg(c=mg())&&(b.commentDraft=c.first)}},standalone:!1,features:[Gg([PW]),Ef],decls:23,vars:26,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"contentChange","onSubmit","content","textareaClass","isLiteralModeSupported"],[1,"char-limit-warning"],[1,"banned-words-warning","break-word"],[1,"inline-block",3,
"change","initialValue"],["tabindex","0",1,"clamper","line-clamp-4"],["mat-dialog-actions",""],["type","button","mat-button","",3,"mat-dialog-close"],["type","button","mat-flat-button","",1,"save-button",3,"click","disabled","color"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"],[3,"comment","issueId","formattingMode","audience"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Editing Status Update"),
L(),K(2,"section",1)(3,"p",2),Q(4," Editing the Status Update will not permanently remove old ones from database history. "),M(5,"br"),Q(6," For deletion of PII or other sensitive content, please "),K(7,"a",3),Q(8," file a support request. "),L()(),K(9,"b-comment-draft",4),T(10,"async"),Cg("contentChange",function(c){Bg(b.newStatusUpdate.updateText,c)||(b.newStatusUpdate.updateText=c);return c}),N("contentChange",function(){b.bannedWordsChecker.reset()})("onSubmit",function(){return b.closeDialogForSave()}),
L(),F(11,bQb,2,1,"p",5),F(12,cQb,4,1,"p",6),T(13,"async"),K(14,"b-markdown-toggle",7),N("change",function(c){return b.newStatusUpdate.formattingMode=c}),L(),F(15,dQb,2,4,"div",8),L(),K(16,"footer",9)(17,"button",10),Q(18," Cancel "),L(),K(19,"button",11),T(20,"async"),N("click",function(){return b.closeDialogForSave()}),Q(21),T(22,"async"),L()());a&2&&(B(7),I("href",b.contentRemovalRequestLink,Ne),B(2),xg(gTd(b)),Ag("content",b.newStatusUpdate.updateText),I("textareaClass",Ig(24,eTd,U(10,16,b.bannedWordsChecker.showWarning$)?
"banned-words-warning":""))("isLiteralModeSupported",!1),B(2),G(b.newStatusUpdate.updateText.length>2E3?11:-1),B(),G(U(13,18,b.bannedWordsChecker.showWarning$)?12:-1),B(2),wg("margin-bottom",b.newStatusUpdate.formattingMode!==b.FormattingMode.MARKDOWN),I("initialValue",b.origStatusUpdate.formattingMode),B(),G(b.newStatusUpdate.formattingMode===b.FormattingMode.MARKDOWN?15:-1),B(2),I("mat-dialog-close",void 0),B(2),I("disabled",b.newStatusUpdate.updateText.length===0||b.newStatusUpdate.updateText.length>
2E3||!b.isModified())("color",U(20,20,b.bannedWordsChecker.showWarning$)?"warn":"primary"),B(2),S(" ",U(22,22,b.bannedWordsChecker.showWarning$)?"Save Anyway":"Save"," "))},dependencies:[VA,XA,ZA,YA,kB,gB,fU,qT,pY,Tx],styles:['b-comment-draft[_ngcontent-%COMP%]{position:relative;display:block}b-comment-draft[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;height:100%;width:4px;border-top-left-radius:4px;border-bottom-left-radius:4px;pointer-events:none}b-comment-draft.good[_ngcontent-%COMP%]:after{background-color:#34a853;background-color:var(--good)}b-comment-draft.warn[_ngcontent-%COMP%]:after{background-color:#fcc934;background-color:var(--warn)}b-comment-draft.bad[_ngcontent-%COMP%]:after{background-color:#ea4335;background-color:var(--bad)}.clamper[_ngcontent-%COMP%]:focus, .clamper[_ngcontent-%COMP%]:focus-within{display:block;-webkit-line-clamp:none}.banned-words-warning[_ngcontent-%COMP%], .char-limit-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad)}\n/*# sourceMappingURL=edit_status_update_dialog.css.map */'],
changeDetection:0});var n4=function(){this.feedbackState=new Map};n4.prototype.getKey=function(a,b){return a+"-"+b};var mQb=function(a,b,c){var d;return(d=a.feedbackState.get(a.getKey(b,c)))!=null?d:{hasThumbsUpped:!1,hasThumbsDowned:!1}};n4.prototype.hasFeedbackBeenGiven=function(a,b){a=mQb(this,a,b);return a.hasThumbsUpped||a.hasThumbsDowned};n4.\u0275fac=function(a){return new (a||n4)};n4.\u0275prov=Dc({token:n4,factory:n4.\u0275fac,providedIn:"root"});var o4=function(){var a=this;this.confirmationDialogService=p(dS);this.contextSensitiveRegistry=p(XQ);this.destroyRef=p(Ce);this.issueEnrichmentService=p(J1);this.issueEnrichmentFridge=p(RP);this.issuePermissionService=p($Q);this.butterBar=p(UN);this.window=p(lR);this.insightsActionsService=p(n4);this.enrichmentCategoryFridge=p(wP);this.enrichmentApi=p(zO);this.enrichmentCategory$=ce(void 0);this.CATEGORY_INFO_HOVERCARD_CONFIG=Object.assign({},new OK,{position:[n8c]});this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(ue(Pm),
nf());this.actionMenuItems$=this.issuePermissionService.hasAclToAdmin$.pipe(A(function(b){var c=[];b&&c.push({type:"action",action:function(){a.showDeleteAttachmentDialog(a.enrichment.category)},label:"Delete insight..."});return c}))};o4.prototype.ngOnInit=function(){this.enrichment.category&&!oNd.includes(this.enrichment.category)&&(this.enrichmentCategory$=this.enrichmentCategoryFridge.watch(this.enrichment.category))};
o4.prototype.hasFeedbackBeenGiven=function(a){return this.insightsActionsService.hasFeedbackBeenGiven(a,this.enrichment.category)};
var hTd=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,fe(a.issueId$),2);if(g.nextAddress!=3)return c=g.yieldResult,d=a.window.location.protocol+"//"+a.window.location.hostname+("/issues/"+c+"/insights#insight-"+b),a.window.navigator.clipboard.writeText(d),Rr(a.butterBar,"Link copied to clipboard",2E3),e=a.issueEnrichmentService,f=e.logIssueUserEventForIssueEnrichment,z(g,fe(a.issueId$),3);f.call(e,g.yieldResult,"EVENT_TYPE_COPY_DEEP_LINK",b);ae(g)})};
o4.prototype.copyContent=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return(c=(b=a.enrichment.general)==null?void 0:b.content)?z(e,fe(a.issueId$),2):e.return();d=e.yieldResult;a.window.navigator.clipboard.writeText(c);Rr(a.butterBar,"Content copied to clipboard",2E3);a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(d,"EVENT_TYPE_COPY",a.enrichment.category);ae(e)})};
var kQb=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return b=a.enrichment.category,z(d,fe(a.issueId$),2);c=d.yieldResult;if(a.insightsActionsService.hasFeedbackBeenGiven(c,b))return d.return();a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(c,"EVENT_TYPE_THUMBS_UP",b);var e=a.insightsActionsService;e.feedbackState.set(e.getKey(c,b),{hasThumbsUpped:!0,hasThumbsDowned:!1});ae(d)})},lQb=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return b=a.enrichment.category,
z(d,fe(a.issueId$),2);c=d.yieldResult;if(a.insightsActionsService.hasFeedbackBeenGiven(c,b))return d.return();a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(c,"EVENT_TYPE_THUMBS_DOWN",b);var e=a.insightsActionsService;e.feedbackState.set(e.getKey(c,b),{hasThumbsUpped:!1,hasThumbsDowned:!0});ae(d)})};
o4.prototype.showDeleteAttachmentDialog=function(a){var b=this,c;y(function(d){if(d.nextAddress==1)return z(d,fe(b.issueId$),2);c=d.yieldResult;b.confirmationDialogService.open({title:"Delete Insight",content:Bh("You are about to delete insight '"+a+"' on issue "+c+". This action cannot be undone."),onConfirm:function(){ced(b.enrichmentApi,c,a).pipe(Tj(b.destroyRef)).subscribe(function(){b.issueEnrichmentService.logIssueUserEventForIssueEnrichment(c,"EVENT_TYPE_DELETE",b.enrichment.category);b.issueEnrichmentFridge.poke(c)})}});
ae(d)})};o4.\u0275fac=function(a){return new (a||o4)};
o4.\u0275cmp=D({type:o4,selectors:[["insights-actions"]],inputs:{enrichment:"enrichment"},standalone:!1,decls:13,vars:11,consts:[["categoryInfoCard","onedevHovercard"],["type","button","mat-icon-button","","matTooltip","Copy insight content","aria-label","copy insight content",1,"small","copy-content"],["type","button","mat-icon-button","","matTooltip","Copy link","aria-label","copy link to insight",1,"small","copy-link",3,"click"],["svgIcon","link",1,"icon-s"],"href http://goto.corp.google.com/buganizer-insights-feedback target _blank tabindex -1".split(" "),
["type","button","mat-icon-button","","aria-label","send feedback",1,"small"],["svgIcon","feedback-outline",1,"icon-s"],["buttonLabel","Insights actions","buttonSize","small","matTooltip","Insights actions",3,"menuItems"],["mat-icon-button","","aria-label","info about this insight category",1,"small","info",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],["svgIcon","info",1,"icon-s"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["type","button",
"mat-icon-button","","matTooltip","Copy insight content","aria-label","copy insight content",1,"small","copy-content",3,"click"],["svgIcon","copy",1,"icon-s"],["type","button","mat-icon-button","","aria-label","thumb up",1,"small","thumbs-up",3,"click","disabled"],["svgIcon","thumb_up_filled_24px",1,"icon-s","primary"],["svgIcon","thumb_up_24px",1,"icon-s"],["type","button","mat-icon-button","","aria-label","thumb down",1,"small","thumbs-down",3,"click","disabled"],["svgIcon","thumb_down_filled_24px",
1,"icon-s","primary"],["svgIcon","thumb_down_24px",1,"icon-s"]],template:function(a,b){if(a&1){var c=t();F(0,eQb,11,5);T(1,"async");F(2,fQb,2,0,"button",1);K(3,"button",2);N("click",function(){u(c);return v(hTd(b,b.enrichment.category))});M(4,"mat-icon",3);L();F(5,nQb,6,4);T(6,"async");K(7,"a",4)(8,"button",5);M(9,"mat-icon",6);L()();Zf(10);T(11,"async");F(12,oQb,1,1,"b-actions-menu",7)}if(a&2){var d,e;G((d=U(1,4,b.enrichmentCategory$))?0:-1,d);B(2);G((b.enrichment.general==null?0:b.enrichment.general.content)?
2:-1);B(3);G((e=U(6,6,b.issueId$))?5:-1,e);B(5);a=$f(U(11,8,b.actionMenuItems$));B(2);G(a&&a.length>0?12:-1)}},dependencies:[NY,Jy,kB,iB,vK,nA,KK,SK,Tx],styles:[".primary[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}"],changeDetection:0});var iTd=["commentPresenter"],CQb=function(){return[]},BQb=function(a,b){return b.category},p4=function(){var a=this;this.activeSession=p(uu);this.activatedRoute=p(Lj);this.analytics=p(eQ);this.cdr=p(bQ,{self:!0});this.destroyRef=p(Ce);this.router=p(fF);this.scrolledOnScreenService=p(vU);this.issueEnrichmentService=p(J1);this.contextSensitiveRegistry=p(XQ);this.initiallyCollapsed=!1;this.loggedViewEnrichments=new Set;this.loggedImpressionEnrichments=new Set;this.shouldTruncate=!1;this.isTruncated=
!0;this.enrichments$=this.issueEnrichmentService.issueEnrichments$.pipe(Af(function(b){a.logImpressions(b)}),vf({bufferSize:1,refCount:!0}));this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(ue(Pm),nf());this.shouldShowInsights$=this.enrichments$.pipe(A(function(b){return a.activeSession.isInternalSession()&&b.length>0}));this.tabKeys$=this.enrichments$.pipe(A(function(b){return b.map(function(c){return c.displayName})}));this.manualSelectedTab$=new Mj(null);this.initialExpandedTab$=this.enrichments$.pipe(A(function(b){if(a.initiallyCollapsed)return[];
var c=XUa("insights-lastExpanded")();if(c==="HIDDEN")return[];var d=b.find(function(e){return e.category===c});return d?[d.displayName]:b.length>0?[b[0].displayName]:[]}),lf(1));this.expandedTab$=ie([this.initialExpandedTab$,this.manualSelectedTab$]).pipe(A(function(b){var c=m(b);b=c.next().value;return(c=c.next().value)?c:b}));this.currentEnrichment$=ie([this.enrichments$,this.expandedTab$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(c.length!==0){var d=c[0];return b.find(function(e){return e.displayName===
d})}}),vf({bufferSize:1,refCount:!0}))};p4.prototype.ngAfterViewInit=function(){var a=this;this.tabKeys$.pipe(lf(1),Tj(this.destroyRef)).subscribe(function(){rQb(a)});this.destroyRef.onDestroy(function(){var b;(b=a.onScreenSubscription)==null||b.unsubscribe()})};var rQb=function(a){setTimeout(function(){var b;a.shouldTruncate=((b=a.commentPresenter)==null?void 0:b.nativeElement.scrollHeight)>84;a.cdr.markForCheck();a.maybeSetupOnScreenDetection()},0)};
p4.prototype.maybeSetupOnScreenDetection=function(){var a=this,b,c,d,e,f,g,k,l;y(function(r){if(r.nextAddress==1)return(b=a.onScreenSubscription)==null||b.unsubscribe(),a.onScreenSubscription=void 0,d=(c=a.commentPresenter)==null?void 0:c.nativeElement,d?(e=!a.shouldTruncate||a.shouldTruncate&&!a.isTruncated)?z(r,fe(a.expandedTab$),3):r.jumpTo(0):r.return();if(r.nextAddress!=4)return f=r.yieldResult,f.length===0?r.return():z(r,fe(a.currentEnrichment$),4);g=r.yieldResult;if(!g)return r.return();k=
g.category;if(a.loggedViewEnrichments.has(k))return r.return();l=g.issueId;a.onScreenSubscription=Xrd(a.scrolledOnScreenService,d,{emitOnPartial:!0,durationOnScreenMs:3E3}).pipe(lf(1),Tj(a.destroyRef)).subscribe(function(){a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(l,"EVENT_TYPE_VIEW",k);a.loggedViewEnrichments.add(k)});ae(r)})};
var zQb=function(a){var b,c,d,e;y(function(f){if(f.nextAddress==1)return z(f,fe(a.currentEnrichment$),2);b=f.yieldResult;e=(d=(c=b)==null?void 0:c.category)!=null?d:"HIDDEN";Qcd("insights-lastExpanded")(e);ae(f)})};
p4.prototype.logImpressions=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.category;this.loggedImpressionEnrichments.has(c)||(this.loggedImpressionEnrichments.add(c),this.issueEnrichmentService.logIssueUserEventForIssueEnrichment(b.issueId,"EVENT_TYPE_IMPRESSION",c))}};
var AQb=function(a,b){var c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return a.analytics.trackEvent("insightsTab","click"),c=["insights"],d={relativeTo:a.activatedRoute},e=!!a.router.url.match("/issues/[0-9]+"),e||(c=[qs.viewIssue.makeHref(b),"insights"],d={}),z(k,fe(a.expandedTab$),2);case 2:f=k.yieldResult;if(!(f.length>0)){k.jumpTo(3);break}return z(k,fe(a.currentEnrichment$),4);case 4:if(g=k.yieldResult)d.fragment="insight-"+g.category;case 3:return z(k,a.router.navigate(c,d),
0)}})};p4.\u0275fac=function(a){return new (a||p4)};
p4.\u0275cmp=D({type:p4,selectors:[["b-insights-enrichments"]],viewQuery:function(a,b){a&1&&hg(iTd,5,Hd);if(a&2){var c;lg(c=mg())&&(b.commentPresenter=c.first)}},inputs:{initiallyCollapsed:"initiallyCollapsed"},standalone:!1,features:[Gg([bQ])],decls:4,vars:3,consts:[["commentPresenter",""],[1,"container","carded","margin-top-none","bg-main","gradient-border-left","padded-s-y"],["svgIcon","info_spark_24px",1,"icon-m","spark"],["ariaLabel","Insights for this issue",1,"grow-1","flex-hemmed",3,"showMultiple",
"showIcons","tabKeys","expandedTabs"],["ariaLabel","Insights for this issue",1,"grow-1","flex-hemmed",3,"expandedTabsChanged","showAllClicked","showMultiple","showIcons","tabKeys","expandedTabs"],[3,"key","ariaLabel"],["expandable-tab-header",""],["expandable-tab-content",""],[3,"formattedComment","truncated"],[1,"flex-kids-x","margin-xs-top"],["type","button","mat-stroked-button","","color","primary",1,"gmat-button","small","show-more"],[1,"margin-left-auto",3,"enrichment"],[3,"formattedComment"],
[3,"contentRendered","formattedComment"],["type","button","mat-stroked-button","","color","primary",1,"gmat-button","small","show-more",3,"click"]],template:function(a,b){a&1&&(K(0,"div",1),M(1,"mat-icon",2),F(2,EQb,2,3),T(3,"async"),L());if(a&2){var c;B(2);G((c=U(3,1,b.enrichments$))?2:-1,c)}},dependencies:[Jy,pT,bZ,ZY,$Y,cZ,kB,gB,o4,cU,Tx],styles:['.truncated[_ngcontent-%COMP%]{max-height:84px;overflow:hidden;mask-image:linear-gradient(to bottom, black 0%, black 70%, transparent 100%)}.show-more[_ngcontent-%COMP%]{max-width:100px}.container[_ngcontent-%COMP%]{display:flex;position:relative}.gradient-border-left[_ngcontent-%COMP%]::before{border-radius:4px 0 0 4px;content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(180deg, var(--insights-purple) 0%, var(--insights-pink) 100%);z-index:1}.mat-icon.spark[_ngcontent-%COMP%]{fill:var(--insights-purple);flex-shrink:0}expandable-tabs[_ngcontent-%COMP%]{margin-left:4px}'],
changeDetection:0});var q4=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(q4,W);q4.prototype.setContextsList=function(a){return cx(this,1,a)};q4.prototype.addContexts=function(a){return zc(this,1,Cb,a,void 0,Db)};q4.prototype.getContexts=function(a){return Vw(this,1,a)};var jTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jTd,W);h=jTd.prototype;h.getIssueIdsList=function(){return Qw(this,1,1)};h.getIssueIdsList_asString=function(){return Qm(this,1)};h.setIssueIdsList=function(a){return tr(this,1,a)};h.addIssueIds=function(a){return $w(this,1,a)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Nb,void 0,1)};var kTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kTd,W);kTd.prototype.getWorkspaceId=function(){return pn(this,1)};kTd.prototype.getWorkspaceId_asString=function(){return tn(this,1)};kTd.prototype.getType=function(){return wi(this,2)};kTd.prototype.setType=function(a){return Hm(this,2,a)};var lTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lTd,W);lTd.prototype.getTypedWorkspaceIdsList=function(){return Bi(this,kTd,1,Ci())};lTd.prototype.getIterationIdsList_asString=function(){return Qm(this,2)};var mTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mTd,W);h=mTd.prototype;h.getIterationId_asString=function(){return tn(this,1)};h.getWorkspaceId=function(){return pn(this,2)};h.getWorkspaceId_asString=function(){return tn(this,2)};h.getType=function(){return wi(this,3)};h.setType=function(a){return Hm(this,3,a)};h.getName=function(){return ui(this,4)};h.setName=function(a){return Fm(this,4,a)};h.getHotlistId=function(){return pn(this,7)};
h.setHotlistId=function(a){return Io(this,7,a)};h.getStatus=function(){return wi(this,8)};h.setStatus=function(a){return Hm(this,8,a)};h.getTagsList=function(a){return wn(this,9,Ci(a))};h.getTags=function(a){return Vw(this,9,a)};h.setVelocity=function(a){return qp(this,11,a)};h.getStartTime=function(){return X(this,Si,12)};h.setStartTime=function(a){Mi(this,Si,12,a)};h.getEndTime=function(){return X(this,Si,13)};h.setEndTime=function(a){Mi(this,Si,13,a)};
h.hasEndTime=function(){return xi(this,Si,13)};h.getEtag=function(){return ui(this,18)};h.setEtag=function(a){return Fm(this,18,a)};var nTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nTd,W);nTd.prototype.getEmail=function(){return ui(this,1)};nTd.prototype.setEmail=function(a){return Fm(this,1,a)};var oTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oTd,W);h=oTd.prototype;h.getWorkspaceId=function(){return pn(this,1)};h.getWorkspaceId_asString=function(){return tn(this,1)};h.getName=function(){return ui(this,2)};h.setName=function(a){return Fm(this,2,a)};h.getTimeZone=function(){return X(this,pr,8)};h.setTimeZone=function(a){return Mi(this,pr,8,a)};h.hasTimeZone=function(){return xi(this,pr,8)};h.getMembersList=function(){return Bi(this,nTd,9,Ci())};
h.setMembersList=function(a){return Ni(this,9,a)};h.getUpdateTime=function(){return X(this,Si,12)};h.setUpdateTime=function(a){Mi(this,Si,12,a)};h.hasUpdateTime=function(){return xi(this,Si,12)};h.getBookmarkGroupId_asString=function(){return tn(this,14)};h.setBookmarkGroupId=function(a){return Io(this,14,a)};h.getTeamId=function(){return ui(this,20)};h.setTeamId=function(a){return Fm(this,20,a)};var pTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pTd,W);pTd.prototype.getWorkspacesMap=function(){return wc(this,1,oTd,Ub)};pTd.prototype.getIterationsMap=function(){return wc(this,2,mTd,Ub)};var FQb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(FQb,W);h=FQb.prototype;h.getContextsMap=function(){return wc(this,1,lTd,Vb)};h.getData=function(){return X(this,pTd,2)};h.setData=function(a){return Mi(this,pTd,2,a)};h.clearData=function(){return Hw(this,2)};h.hasData=function(){return xi(this,pTd,2)};h.getFilter=function(){return X(this,q4,3)};h.setFilter=function(a){return Mi(this,q4,3,a)};var qTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qTd,W);var rTd=new uB("/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/BatchGetIssueContexts",jTd,qTd,function(a){return a.serialize()},vi(qTd));var sTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sTd,W);h=sTd.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return tn(this,1)};h.setComponentId=function(a){return Io(this,1,a)};h.setTeamIdsList=function(a){return Gm(this,2,a)};h.setPageSize=function(a){return an(this,3,a)};h.setPageToken=function(a){return Fm(this,4,a)};var tTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tTd,W);tTd.prototype.getNextPageToken=function(){return ui(this,2)};var uTd=new uB("/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/ListWorkspaces",sTd,tTd,function(a){return a.serialize()},vi(tTd));var vTd=function(a){var b={withCredentials:!0,suppressCorsPreflight:!0};b=b||{};b.format="jspb";this.client_=new aIc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};vTd.prototype.listWorkspaces=function(a){return fC(this.client_,this.hostname_+"/$rpc/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/ListWorkspaces",a,{},uTd)};var wTd={},xTd;wTd.Authorization=(xTd=Ppc([]))!=null?xTd:"";wTd["X-Goog-Api-Key"]="AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c";wTd["X-Goog-AuthUser"]="0";var s4=function(){this.activeSession=p(uu);this.clientFactory=p(r4);this.client=this.clientFactory.create(this.getServiceEndpoint())};
s4.prototype.listWorkspaces=function(a){var b=this;return this.activeSession.isExternalSession()?ce([]):ne(function(){var c=b.client;var d=(new jTd).addIssueIds(a);var e=(new q4).addContexts(1);d=Mi(d,q4,2,e);return fC(c.client_,c.hostname_+"/$rpc/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/BatchGetIssueContexts",d,wTd||{},rTd)}).pipe(A(GQb(a)),gf(function(){return ce([])}))};
s4.prototype.getServiceEndpoint=function(){switch(this.activeSession.getEnvironmentType()){case "NIGHTLY":case "PROD":return"https://taskflowpartner-pa.clients6.google.com";default:return"https://autopush-taskflowpartner-pa-googleapis.sandbox.google.com"}};s4.\u0275fac=function(a){return new (a||s4)};s4.\u0275prov=Dc({token:s4,factory:s4.\u0275fac,providedIn:"root"});var r4=function(){};r4.prototype.create=function(a){return new vTd(a)};r4.\u0275fac=function(a){return new (a||r4)};
r4.\u0275prov=Dc({token:r4,factory:r4.\u0275fac,providedIn:"root"});var yTd=["popOver"],IQb=function(a){return{$implicit:a}},t4=function(){var a=this;this.destroyRef=p(Ce);this.disabled=!1;this.displayEditIcon=!0;this.openPopOverOnInit=!1;this.overlayMinWidth=null;this.required=Og.apply(null,[!1].concat(q([])));this.valueChange=new Ti;this.closedWithAction=new Ti;this.editing=this.headerFocused=!1;this.editingValue=new lE("",{nonNullable:!0});this.editingValueSignal=ng.apply(null,[""].concat(q([])));this.isInvalid=Zg.apply(null,[function(){return a.required()&&a.editingValueSignal()===
""}].concat(q([])));this.onChange=function(){};this.onTouched=function(){}};Y(t4,e_);h=t4.prototype;h.ngOnInit=function(){var a=this;this.required()&&Lva(this.editingValue,[vj]);this.editingValue.valueChanges.pipe(Tj(this.destroyRef)).subscribe(function(b){a.editingValueSignal.set(b!=null?b:"")})};h.ngAfterViewInit=function(){var a=this;this.openPopOverOnInit&&setTimeout(function(){a.startEditing()})};h.valueChanged=function(){return NQb(this.editingValue.value)!==this.value};
h.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue.setValue(this.value!=null?String(this.value):""),this.popOver.open())};h.stopEditing=function(a){this.editing=!1;if((this.required()?this.editingValue.valid:1)&&a===0){this.onChange(this.editingValue.value);var b=NQb(this.editingValue.value);this.value=b;this.valueChange.emit(b);this.closedWithAction.emit(a)}else this.closedWithAction.emit(1)};
h.writeValue=function(a){var b=NQb(a);if(a!=null||this.val!==b)this.val=b,this.editingValue.setValue(a!=null?a:"")};h.isActive=function(){return this.headerFocused||this.editing};h.registerOnChange=function(a){this.onChange=a};h.registerOnTouched=function(a){this.onTouched=a};h.setDisabledState=function(a){this.disabled=a};da.Object.defineProperties(t4.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a!=null?String(a):null)}}});
t4.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(t4)))(b||t4)}}();
t4.\u0275cmp=D({type:t4,selectors:[["onedev-numeric-field"]],viewQuery:function(a,b){a&1&&hg(yTd,7);if(a&2){var c;lg(c=mg())&&(b.popOver=c.first)}},inputs:{value:"value",disabled:"disabled",displayEditIcon:"displayEditIcon",labelledById:[0,"aria-labelledby","labelledById"],openPopOverOnInit:"openPopOverOnInit",valueTemplate:"valueTemplate",overlayMinWidth:"overlayMinWidth",required:[1,"required"]},outputs:{valueChange:"valueChange",closedWithAction:"closedWithAction"},standalone:!1,features:[Gg([{provide:aE,
useExisting:Vc(function(){return t4}),multi:!0},{provide:e_,useExisting:Vc(function(){return t4}),multi:!0}]),Ef],decls:11,vars:8,consts:[["anchor",""],["standardValueDisplay",""],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],["type","button","aria-label","Edit numeric field",3,"click","focus","blur","disabled"],[4,"ngIf","ngIfElse"],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"closedWithAction","anchor","minWidth","editorTemplate","saveDisabled"],
[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,"required","formControl"]],template:function(a,b){if(a&1){var c=t();K(0,"button",4,0);N("click",function(){u(c);return v(b.startEditing())})("focus",function(){u(c);
return v(b.headerFocused=!0)})("blur",function(){u(c);return v(b.headerFocused=!1)});K(2,"span");E(3,JQb,2,4,"ng-container",5)(4,KQb,1,1,"ng-template",null,1,Mg);L();E(6,LQb,2,0,"svg",6);L();K(7,"onedev-pop-over-edit-panel",7,2);N("closedWithAction",function(f){u(c);return v(b.stopEditing(f))});L();E(9,MQb,1,3,"ng-template",null,3,Mg)}if(a&2){a=qg(1);var d=qg(5),e=qg(10);I("disabled",b.disabled);B(3);I("ngIf",b.valueTemplate)("ngIfElse",d);B(3);I("ngIf",!b.disabled&&b.displayEditIcon);B();I("anchor",
a)("minWidth",b.overlayMinWidth)("editorTemplate",e)("saveDisabled",b.isInvalid())}},dependencies:[Nx,Sx,xj,oE,fE,yE,f_,sE],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 TQb=function(){return[]},u4=function(){this.disabled=this.thinking=!1;this.effortChange=new aQ;this.isCompatibleValue=!0;this.fieldName="";this.fieldType="UNKNOWN";this.isNaN=isNaN};
u4.prototype.ngOnChanges=function(){if(this.getFieldType()==="DROPDOWN"){var a;this.effortSpec&&(a=this.effortSpec.enumSpec)!=null&&a.options&&this.effort&&this.effort.estimate?(a=zTd(this),a=a==="incompatible"?{label:this.effort.estimate,value:0}:a):a=void 0;this.selectedOption=a}else if(this.getFieldType()==="NUMERIC"){var b,c;this.selectedNumericEstimate=((b=this.effort)==null?0:b.estimate)?Number((c=this.effort)==null?void 0:c.estimate):void 0}this.fieldName=this.getFieldName();this.fieldType=
this.getFieldType();this.isCompatibleValue=ATd(this)};u4.prototype.selectOption=function(a){this.selectedOption=a;if(a==null)this.effort=void 0;else{var b,c;this.effort={specId:(c=(b=this.effortSpec)==null?void 0:b.id)!=null?c:0,estimate:a.label}}this.isCompatibleValue=ATd(this);this.effortChange.emit(this.effort)};u4.prototype.getFieldName=function(){return this.effortSpec?this.effortSpec.name||"":this.effort?"Estimate "+this.effort.specId:"Estimate"};
u4.prototype.getFieldType=function(){var a;if((a=this.effortSpec)==null?0:a.numericSpec)return"NUMERIC";var b;return((b=this.effortSpec)==null?0:b.enumSpec)?"DROPDOWN":"UNKNOWN"};
var ATd=function(a){var b;if(!a.effort||(b=a.effort)==null||!b.estimate)return!0;var c,d;if(((c=a.effortSpec)==null?void 0:c.id)!==((d=a.effort)==null?void 0:d.specId)||a.fieldType==="DROPDOWN"&&zTd(a)==="incompatible")return!1;var e,f;return a.getFieldType()==="NUMERIC"&&isNaN(Number((f=(e=a.effort)==null?void 0:e.estimate)!=null?f:""))?!1:!0},zTd=function(a){var b;if((b=a.effort)==null?0:b.estimate){var c,d,e,f;return(f=(c=a.effortSpec)==null?void 0:(d=c.enumSpec)==null?void 0:(e=d.options)==null?
void 0:e.find(function(g){var k;return g.label===((k=a.effort)==null?void 0:k.estimate)}))!=null?f:"incompatible"}};u4.\u0275fac=function(a){return new (a||u4)};
u4.\u0275cmp=D({type:u4,selectors:[["b-estimated-effort-row"]],inputs:{thinking:"thinking",effort:"effort",effortSpec:"effortSpec",disabled:"disabled"},outputs:{effortChange:"effortChange"},standalone:!1,features:[jx],decls:3,vars:1,consts:[["rawNumericValueTemplate",""],["warningHovercard","onedevHovercard"],["optionTemplate",""],["labelTooltip","Estimated effort",3,"thinking"],["svgIcon","error","aria-hidden","false","aria-label","This estimate was made under a different configuration and needs to be \n                          updated.",
1,"icon-xs","effort-warning","align-items-center",3,"onedevHovercardTrigger"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["href","http://go/buganizer/user-guide/concepts/wtdm-home.md?cl=head#stale-effort","target","_blank"],[3,"thinking"],[1,"flex-kids-x",3,"value","valueTemplate","disabled","displayEditIcon"],[1,"flex-kids-x",3,"valueChange","value","valueTemplate","disabled","displayEditIcon"],[3,"valueChange","value","options","includeEmptyOption","optionTemplate",
"disabled","displayArrowIcon"]],template:function(a,b){a&1&&(F(0,WQb,15,5,"onedev-edit-field"),E(1,ZQb,2,1,"ng-template",null,0,Mg));a&2&&G(b.effortSpec?0:-1)},dependencies:[Jy,l_,UGd,m_,w_,t4,KK,SK],styles:["onedev-numeric-field[_ngcontent-%COMP%], onedev-single-select[_ngcontent-%COMP%]{flex:1;width:100%}.effort-warning[_ngcontent-%COMP%]{color:#e37400;color:var(--warn-gfx);overflow:visible}/*# sourceMappingURL=estimated_effort_row.css.map */"]});var BTd=function(){this.staffingDialogService=p(S3);this.tooltipText=this.staffingSummary=this.staffingPlaceholderSummary=this.staffingUserSummary=""};
BTd.prototype.ngOnChanges=function(){var a,b,c=(b=(a=this.staffing)==null?void 0:a.plannedAllocations)!=null?b:[];a=new Set(c.filter(function(d){return!!d.user}).map(function(d){return no(d)}));c=c.filter(function(d){return!!d.placeholder}).map(function(d){var e=d.placeholder.role;return d.placeholder.count+" "+(e&&e!=="JOB_ROLE_UNSPECIFIED"?Yq[e]:"Other")});b=c.length?c.join(", "):"0";this.staffingUserSummary=a.size?"Users: "+a.size:"";this.staffingPlaceholderSummary=c.length?"Placeholders: "+b:
"";this.staffingSummary=this.staffingUserSummary+(" - "+this.staffingPlaceholderSummary);this.tooltipText="View"+(this.isAllowedToEdit?" or edit":"")+" staffing"};var CTd=function(a){var b,c,d;a.staffingDialogService.show((c=(b=a.staffing)==null?void 0:b.plannedAllocations)!=null?c:[],a.issueId,(d=a.isAllowedToEdit)!=null?d:!1)};BTd.\u0275fac=function(a){return new (a||BTd)};
BTd.\u0275cmp=D({type:BTd,selectors:[["b-staffing-row"]],inputs:{staffing:"staffing",issueId:"issueId",isAllowedToEdit:"isAllowedToEdit"},standalone:!1,features:[jx],decls:25,vars:6,consts:[["fieldContent",""],["infoHovercard","onedevHovercard"],[1,"bv2-issue-metadata-field"],["role","button","tabindex","0",1,"bv2-issue-metadata-field-inner","bv2-issue-metadata-field-staffing","keep-focus-ring",3,"keydown.enter","keyup.space","keydown.space"],[1,"bv2-editable-title","bv2-editable-title-staffing",
"flex-kids-x",3,"onedevHovercardTrigger"],[1,"bv2-editable-value",3,"click","matTooltip"],[1,"staffing-summaries"],[1,"issue-metadata-field-edit-icon"],["svgIcon","edit-outline"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["href","http://developers.google.com/issue-tracker/references/glossary-of-fields","target","_blank"],[1,"user-summary"],[1,"placeholder-summary"]],template:function(a,b){if(a&1){var c=t();K(0,"div")(1,"div",2)(2,"div",3);N("keydown.enter",function(){u(c);
return v(CTd(b))})("keyup.space",function(){u(c);return v(CTd(b))})("keydown.space",function(d){u(c);return v(d.preventDefault())});K(3,"div",4)(4,"label");Q(5," Staffing ");L()();K(6,"div",5,0);N("click",function(){u(c);return v(CTd(b))});K(8,"div",6);F(9,$Qb,1,0)(10,aRb,4,2);L();K(11,"div",7);M(12,"mat-icon",8);L()()()();K(13,"onedev-hovercard",null,1)(15,"div",9)(16,"div",10)(17,"div");Q(18," Use the Staffing field to represent planned contributors on this issue. ");L();M(19,"br");K(20,"div");
Q(21," Allocations can be specified by user along with their involvement level on this issue (high, medium, low, or zero). Placeholder allocations can be specified by job role if the user who will be contributing is not yet known. ");L();M(22,"br");K(23,"a",11);Q(24," Learn more ");L()()()()()}a&2&&(a=qg(14),B(2),If("aria-label","Staffing: "+b.staffingSummary)("aria-disabled",!1),B(),I("onedevHovercardTrigger",a),B(3),I("matTooltip",Dg(b.tooltipText)),B(3),G(b.staffingUserSummary||b.staffingPlaceholderSummary?
10:9))},dependencies:[Jy,vK,nA,KK,SK],styles:[".staffing-summaries[_ngcontent-%COMP%]{flex-direction:column}/*# sourceMappingURL=staffing_row.css.map */"],changeDetection:0});var v4=function(){Z.apply(this,arguments);var a=this;this.session=p(uu);this.userPreferencesManager=p(hR);this.sloStatusHelpersService=p(zS);this.paths=p(hW);this.sloFridge=p(KQ);this.userToDisplayString=tm;this.onSloStartTimeChange=new aQ;this.onSloEndTimeChange=new aQ;this.showInternalOnlyFieldBadge=!1;this.providedSloId$=new uf(1);this.slo$=this.providedSloId$.pipe(yf(function(b){return a.sloFridge.watch(b)}));this.hasClosureSlo=this.isSloEndEditTimePickerOpen=this.isSloStartEditTimePickerOpen=
this.enableEscalationOwnerRolloutUi=this.enableSloEndTime=this.hasSloEndTime=this.hasSloStartTime=this.isAccordionExpanded=!1};Y(v4,Z);v4.\u0275dir=Z.\u0275dir;v4.prototype.ngOnInit=function(){var a=this;DTd(this);this.userPreferencesManager.layoutPreferences$.pipe(zf(this.destroyed$)).subscribe(function(b){a.isAccordionExpanded=!!b.expandIssueSlo})};v4.prototype.ngOnChanges=function(){this.sloId&&this.providedSloId$.next(this.sloId);DTd(this)};
var DTd=function(a){a.hasSlo=!!a.sloStatus&&rnd(a.sloStatus);a.hasClosureSlo=a.hasSlo&&snd(a.sloStatus,"CLOSURE");a.enableSloEndTime=a.session.getFlag("enableSloEndTime");a.enableEscalationOwnerRolloutUi=a.session.getFlag("enableEscalationOwnerRolloutUi");var b,c;(c=a.sloStatus)?(c=c.closureBounds,c=AS(Om(c))?c.targetTime:void 0):c=void 0;a.closureSloTarget=(b=c==null?void 0:c.seconds)!=null?b:0;b=a.sloStartTime;a.hasSloStartTime=!!b&&b.seconds!==0;b=a.sloEndTime;a.hasSloEndTime=!!b&&b.seconds!==
0;a.sloId&&a.sloId!=="0"?a.editSloLink=qs.editSlo.makeHref(a.sloId):a.editSloLink=void 0;a.componentId?a.componentSloLink=qs.editComponent.makeHref(a.componentId):a.componentSloLink=void 0},ETd=function(a){a.isAccordionExpanded=!a.isAccordionExpanded;hkd(a.userPreferencesManager,{expandIssueSlo:a.isAccordionExpanded}).pipe(zf(a.destroyed$)).subscribe();dr("issueSlo","toggle",a.isAccordionExpanded?"open":"close")};v4.prototype.updateSloStartTime=function(a){this.onSloStartTimeChange.next(a)};
v4.prototype.updateSloEndTime=function(a){this.onSloEndTimeChange.next(a)};v4.prototype.trackOpenSlo=function(){dr("editSlo","open","fromIssueSloBox")};v4.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(v4)))(b||v4)}}();
v4.\u0275cmp=D({type:v4,selectors:[["b-issue-slo-box"]],inputs:{sloId:"sloId",componentId:"componentId",sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",isEditable:"isEditable",issueCreationTimestamp:"issueCreationTimestamp",showInternalOnlyFieldBadge:"showInternalOnlyFieldBadge",escalationOwner:"escalationOwner"},outputs:{onSloStartTimeChange:"onSloStartTimeChange",onSloEndTimeChange:"onSloEndTimeChange"},standalone:!1,features:[Ef,jx],decls:20,vars:22,consts:[["trigger",
"cdkOverlayOrigin"],["canonicalHovercard","onedevHovercard"],[1,"slo-container"],[1,"issue-slo-box-title",3,"click"],["svgIcon","shield_person_24px","matTooltip","Visible to internal only","aria-label","Visible to internal only",1,"icon-xs","internal-only-badge"],[1,"slo-body"],[1,"slo-status"],[3,"hidden"],[3,"sloStatus","sloStartTime","sloEndTime","includeSloMetric","includeObjective"],[3,"sloStatus","sloStartTime","sloEndTime","includeNoSlo"],["type","button","mat-icon-button","","aria-label",
"Toggle the detailed SLO status","matTooltip","Toggle the detailed SLO status",1,"expand-button","small",3,"click"],["svgIcon","arrow-up",1,"icon-s"],["svgIcon","arrow-down",1,"icon-s"],[1,"slo-actions",3,"hidden"],["id","start-time-row",1,"slo-action"],["id","end-time-row",1,"slo-action"],["id","escalation-owner-row",1,"slo-action"],[1,"slo-action"],["href","http://go/buganizer/guides/defer-slos","target","_blank","aria-label","View help page on deferring slos","matTooltip","View help page on deferring slos",
1,"clear-link"],[1,"slo-edit"],["role","button","tabindex","0","aria-label","Modify the slo start date value","matTooltip","Modify the slo start date value","cdkOverlayOrigin","",1,"bv2-metadata-link",3,"keydown.enter","keydown.space","click"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],["mode","datetime",3,"timestamp"],[3,"closePicker","sloEditCommit","sloStatus","sloEditTime","noneButtonEnabled"],["role","button","tabindex","0","aria-label","Modify the slo end date value",
"matTooltip","Modify the slo end date value","cdkOverlayOrigin","",1,"bv2-metadata-link",3,"click","keydown.enter","keydown.space"],["id","escalation-owner-label",3,"onedevHovercardTrigger"],[1,"onedev-hovercard-content"],["href","https://goto.google.com/b-slo-attribution","target","_blank"],[3,"user","email","enableSmallChip"],["aria-label","Navigate to the applied slo page","matTooltip","Navigate to the applied slo page",1,"slo-link","bv2-metadata-link","slo-definition"],["aria-label","Navigate to the applied slo page",
"matTooltip","Navigate to the applied slo page",1,"slo-link","bv2-metadata-link","slo-definition",3,"click"],["aria-label","Open page to select an slo","matTooltip","Open page to select an slo",1,"bv2-metadata-link","bv2-metadata-tool","slo-definition",3,"click"]],template:function(a,b){a&1&&(K(0,"div",2)(1,"span",3),N("click",function(){return ETd(b)}),K(2,"label"),Q(3,"SLO Status"),L(),F(4,bRb,1,0,"mat-icon",4),L(),K(5,"div",5)(6,"div",6)(7,"div",7),M(8,"b-aggregated-slo-status-indicator",8),L(),
K(9,"div",7),M(10,"b-slo-status-summary",9),L(),K(11,"button",10),N("click",function(){return ETd(b)}),F(12,cRb,1,0,"mat-icon",11)(13,dRb,1,0,"mat-icon",12),L()(),K(14,"div",13),F(15,hRb,9,3,"div",14),F(16,mRb,10,5,"div",15),F(17,pRb,12,2,"div",16),F(18,rRb,4,3,"div",17),F(19,sRb,3,1,"div",17),L()()());a&2&&(wg("internal-only",b.showInternalOnlyFieldBadge),B(4),G(b.showInternalOnlyFieldBadge?4:-1),B(3),I("hidden",b.isAccordionExpanded),B(),I("sloStatus",b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",
b.sloEndTime)("includeSloMetric",!0)("includeObjective",!0),B(),I("hidden",!b.isAccordionExpanded),B(),I("sloStatus",b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",b.sloEndTime)("includeNoSlo",!0),B(),If("aria-expanded",b.isAccordionExpanded),B(),G(b.isAccordionExpanded?12:13),B(2),I("hidden",!b.isAccordionExpanded),B(),G(b.isEditable?15:-1),B(),G(b.enableSloEndTime&&b.isEditable?16:-1),B(),G(b.enableEscalationOwnerRolloutUi?17:-1),B(),G(b.editSloLink?18:-1),B(),G(!b.editSloLink&&b.componentSloLink?
19:-1))},dependencies:[Jy,vK,nA,kB,iB,KK,SK,i4,rV,b4,v3,Vz,Uz,gV,Tx],styles:["[_nghost-%COMP%]{align-items:baseline}[_nghost-%COMP%]:focus{outline:0}.slo-container[_ngcontent-%COMP%]{padding-bottom:8px}.internal-only[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-radius:4px;margin:0 5px;background-color:#f4f5f6;background-color:var(--tonal-fill-grey)}.internal-only[_ngcontent-%COMP%]   .issue-slo-box-title[_ngcontent-%COMP%]{margin:0 14px}.internal-only[_ngcontent-%COMP%]   .issue-slo-box-title[_ngcontent-%COMP%]   .internal-only-badge[_ngcontent-%COMP%]{display:inline-block;color:#188038;color:var(--good-bg-inverse);transform:translate(5px, 5px)}.internal-only[_ngcontent-%COMP%]   .slo-body[_ngcontent-%COMP%]{margin:5 14px}[_nghost-%COMP%]:hover   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #d2e3fc;box-shadow:0 0 0 1px var(--primary-c100);border-radius:4px}.internal-only[_ngcontent-%COMP%]:hover   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #9aa0a6;box-shadow:0 0 0 1px var(--c500)}[_nghost-%COMP%]:focus   .slo-body[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #1a73e8;box-shadow:0 0 0 1px var(--primary);border-radius:4px}[_nghost-%COMP%]:focus   .issue-slo-box-title[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .issue-slo-box-title[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.internal-only[_ngcontent-%COMP%]:focus   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #9aa0a6;box-shadow:0 0 0 1px var(--c500)}.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;margin:0 16px;flex:0 0 23%;min-width:80px;max-width:120px;padding-right:10px;color:#5f6368;color:var(--text-muted)}.slo-body[_ngcontent-%COMP%]{display:inline-block;margin:0 14px;padding:8px 0 8px 4px;width:-webkit-fill-available}.slo-status[_ngcontent-%COMP%]{display:flex}.slo-actions[_ngcontent-%COMP%]   .slo-action[_ngcontent-%COMP%]{vertical-align:baseline;min-height:24px}.slo-action[_ngcontent-%COMP%]   .slo-edit[_ngcontent-%COMP%]{display:inline-block}.slo-action[_ngcontent-%COMP%]   .slo-definition[_ngcontent-%COMP%]{min-height:24px}.clear-link[_ngcontent-%COMP%]{color:inherit;text-decoration:none}.expand-button[_ngcontent-%COMP%]{margin-left:auto}.expand-button[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{display:block}.onedev-hovercard-content[_ngcontent-%COMP%]{padding:16px}.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 FTd={MISSING:"MISSING",DELETED:"DELETED",VALID:"VALID"};var w4=function(){Z.call(this);var a=this;this.data=p(TA);this.dialogRef=p(RA);this.teamsService=p(OQ);this.componentActions=p(VV);this.userPreferencesManager=p(hR);this.snackBar=p(rB);this.analytics=p(eQ);this.errorHandler=p(pO);this.componentFridge=p(RO);this.warningType=this.data.warningType;this.componentId=this.data.componentId;this.parentComponentId=this.data.parentComponentId;this.teamSuggestionIds=this.data.teamSuggestionIds;this.header="";this.suggestedTeams$=wjd(this.teamsService,this.teamSuggestionIds).pipe(A(function(b){for(var c=
[],d=m(a.teamSuggestionIds),e=d.next();!e.done;e=d.next()){e=e.value;var f=b.get(e);f&&c.push(new GTd(e,f.collapsedPathNames))}return c}),xf([]));this.myTeams$=QQ(this.teamsService,"").pipe(A(function(b){return b.map(function(c){return new GTd(c.teamId,c.pathNames)})}));this.teamOptions=[];this.selectedTeam=new GTd(this.teamSuggestionIds[0]||"0",[]);this.teamAction="CHANGE";this.componentSetting=qs.editComponent.makeHref(this.componentId);this.WarningType=FTd;ie([this.suggestedTeams$,this.myTeams$]).pipe(A(function(b){var c=
m(b);b=c.next().value;c=c.next().value;return[].concat(q(b),q(c))}),A(SZa(function(b){return b.teamId})),zf(this.destroyed$)).subscribe(function(b){a.teamOptions=b;a.selectedTeam=b[0]})};Y(w4,Z);w4.\u0275dir=Z.\u0275dir;w4.prototype.ngOnInit=function(){this.warningType==="MISSING"?this.header="Add team to the component":this.warningType==="DELETED"&&(this.header="Change team mapping for this component")};
w4.prototype.confirm=function(){var a=this,b,c,d,e,f;return y(function(g){if(g.nextAddress==1){if(a.teamAction==="CHANGE")return a.parentComponentId?z(g,a.componentActions.get(a.parentComponentId),6):(HTd(a,"0",a.selectedTeam.teamId),g.jumpTo(0));b=nm;return z(g,fe(a.userPreferencesManager.teamWarningPreferences$),4)}if(g.nextAddress!=6)return c=b(g.yieldResult),d=new Date,c.componentTeamWarnings.push({componentId:a.componentId,dismissMillis:d.getTime()}),nkd(a.userPreferencesManager,c).pipe(zf(a.destroyed$)).subscribe(function(){a.analytics.trackEvent("teamWarning",
"dismiss","componentId",Number(a.componentId));var k;(k=a.dialogRef)==null||k.close()},function(){}),g.jumpTo(0);e=g.yieldResult;HTd(a,((f=e.team)==null?void 0:f.id)||"0",a.selectedTeam.teamId);ae(g)})};
var HTd=function(a,b,c){a.componentActions.updateTeam(a.componentId,{inherit:c===b,id:c}).then(function(d){a.componentFridge.announce(d);a.analytics.trackEvent("teamWarning","updateTeam");a.snackBar.open("Team mapping changed","",{duration:4E3});var e;(e=a.dialogRef)==null||e.close(a.selectedTeam.teamId)}).catch(function(d){a.errorHandler.errorHandler(null,d)})};w4.prototype.selectOption=function(a){this.selectedTeam=a};
w4.prototype.trackClick=function(a){this.analytics.trackEvent("teamWarning","click",a)};w4.prototype.getMomaTeamLink=function(){return"https://moma.corp.google.com/team/"+this.selectedTeam.teamId};w4.\u0275fac=function(a){return new (a||w4)};
w4.\u0275cmp=D({type:w4,selectors:[["b-team-warning-dialog"]],standalone:!1,features:[Ef],decls:11,vars:3,consts:[["suggestedTeamOption",""],["optionTemplate",""],["mat-dialog-title",""],["mat-dialog-content",""],["type","button","mat-button","","mat-dialog-close","",1,"medium"],["type","button","mat-flat-button","","cdkFocusInitial","",3,"click"],["target","_blank",3,"click","href"],["aria-label","Quick team actions",3,"ngModelChange","ngModel"],["value","NONE"],["value","CHANGE"],[4,"ngTemplateOutlet"],
["target","_blank",3,"href"],[1,"suggested-teams"],[3,"valueChange","disabled","value","options","includeEmptyOption","optionTemplate"],["mat-icon-button","","target","_blank","matTooltip","Go to Moma Team page.",1,"small",3,"click"],["svgIcon","pop-out",1,"icon-s"],[1,"suggested-team-option"]],template:function(a,b){if(a&1){var c=t();K(0,"h1",2);Q(1);L();F(2,vRb,13,3,"div",3);F(3,xRb,6,2,"div",3);E(4,CRb,1,1,"ng-template",null,0,Mg);K(6,"mat-dialog-actions")(7,"button",4);Q(8," Cancel ");L();K(9,
"button",5);N("click",function(){u(c);return v(b.confirm())});Q(10," Confirm ");L()()}a&2&&(B(),yg(b.header),B(),G(b.warningType===b.WarningType.MISSING?2:-1),B(),G(b.warningType===b.WarningType.DELETED?3:-1))},dependencies:[Sx,Jy,fE,mE,kB,gB,iB,VA,XA,ZA,YA,tT,uT,vK,nA,w_],styles:["mat-radio-button[_ngcontent-%COMP%]{margin-top:10px}.suggested-teams[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:center;margin-top:5px}a.mat-mdc-icon-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%]     onedev-single-select button{border-color:#bdc1c6}  span.suggested-team-option{display:inline-block;width:490px}"]});
var GTd=function(a,b){this.teamId=a;this.teamPath=b.join(" > ")};var x4=function(){Z.apply(this,arguments);this.matDialogService=p(UA);this.analytics=p(eQ);this.teamSuggestions=[];this.messageOnly=!1;this.updateTeam=new aQ};Y(x4,Z);x4.\u0275dir=Z.\u0275dir;x4.prototype.ngOnInit=function(){};x4.prototype.ngOnChanges=function(){this.warningType==="MISSING"?(this.warningMessage="Team mapping is missing",this.buttonName="Add"):this.warningType==="DELETED"&&(this.warningMessage="This team no longer exists",this.buttonName="Change")};
x4.prototype.openDialog=function(){var a=this;this.analytics.trackEvent("teamWarning","open");SA(this.matDialogService.open(w4,{width:"580px",data:{warningType:this.warningType,componentId:this.componentId,parentComponentId:this.parentComponentId,teamSuggestionIds:this.teamSuggestions.map(function(b){return String(b.teamId)})}})).pipe(zf(this.destroyed$)).subscribe(function(b){b&&a.updateTeam.emit(b)})};x4.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(x4)))(b||x4)}}();
x4.\u0275cmp=D({type:x4,selectors:[["b-team-warning"]],inputs:{warningType:"warningType",componentId:"componentId",parentComponentId:"parentComponentId",teamSuggestions:"teamSuggestions",messageOnly:"messageOnly"},outputs:{updateTeam:"updateTeam"},standalone:!1,features:[Ef,jx],decls:4,vars:2,consts:[["messageType","caution","format","app"],["format","fill","mat-button","",3,"click"]],template:function(a,b){a&1&&(K(0,"b-callout",0)(1,"b-callout-body"),Q(2),L(),F(3,DRb,3,1,"b-callout-actions"),L());
a&2&&(B(2),S(" ",b.warningMessage," "),B(),G(b.messageOnly?-1:3))},dependencies:[MU,DU,EU],encapsulation:2});var JRb=function(){return[]},GRb=function(a){return[a]},eSb=function(a){return{$implicit:a}},OSb=function(a){return{customFieldId:a}},y4=function(){var a=this;this.activeSession=p(uu);this.editIssueService=p(GS);this.issueService=p(SP);this.issueFullFridge=p(gQ);this.issuePermissionService=p($Q);this.issueDetailsBrain=p(YQ);this.constants=p(gS);this.refreshMonitor=p(VP);this.userPreferencesManager=p(hR);this.documentationLinks=p(cS);this.workspaceService=p(s4);this.changelistApi=p(FO);this.issueMarkAsDuplicateDialogService=
p(wY);this.analytics=p(eQ);this.issueLimits=p(AY);this.jspbPrincipalTypes=p(DQ);this.issueId$=new uf(1);this.distinctIssueId$=this.issueId$.pipe(nf());this.issue$=this.distinctIssueId$.pipe(yf(function(b){return a.editIssueService.editableIssue$(b)}));this.enableTriageView=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();this.isGerritEnabled=this.activeSession.getFlag("enableGerritChanges");this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=
this.activeSession.isExternalSession();this.defaultAssigneeQuickActionEnabled=this.showSloStatus=this.sessionIsInternal;this.showCodeChanges=!this.sessionIsExternal||this.isGerritEnabled;this.HOTKEYS=Xr;this.trackCustomField=function(b,c){return"{"+c.componentId+", "+c.customFieldId+"}"};this.FieldType=pV;this.ListFieldType=bud;this.IssueFieldName=gcd;this.codeChangesValidator=x1a;this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;
this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.isCurrentUserCollaborator$=this.issuePermissionService.isCurrentUserCollaborator$;this.isAllowedToEditCC$=this.issuePermissionService.isAllowedToEditCC$;this.isImplicitAccessEnabled$=this.issuePermissionService.isImplicitAccessEnabled$;this.shouldDisplayWtdmUi$=this.issuePermissionService.isWithinExternalComponent$.pipe(A(function(b){return!a.activeSession.isExternalSession()&&!b}));this.teamSuggestions$=this.issueDetailsBrain.teamSuggestions$;
this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.canonicalIssueId$=this.issueDetailsBrain.canonicalIssueId$;this.sloId$=this.issueDetailsBrain.sloId$;this.sloStatus$=this.issueDetailsBrain.sloStatus$;this.createdTimeMicros$=this.issueDetailsBrain.createdTimeMicros$;this.teamId$=this.issueDetailsBrain.teamId$;this.teamWarningType$=this.issueDetailsBrain.team$.pipe(A(tRb));this.component$=this.issueDetailsBrain.component$;this.effort$=
this.issueDetailsBrain.effort$;this.staffing$=this.issueDetailsBrain.staffing$;this.accessLimitLevel$=this.issueDetailsBrain.accessLimitLevel$;this.triagePhase$=this.issueId$.pipe(yf(function(b){return xgd(a.issueService,b)}),A(function(b){var c,d;return(d=(c=b.triage)==null?void 0:c.phase)!=null?d:"UNSPECIFIED"}));this.triagePhaseUrl$=ie([this.teamId$,this.triagePhase$]).pipe(A(function(b){var c=m(b);b=c.next().value;(c=c.next().value)&&c!=="UNSPECIFIED"||(c="NEW");return qs.viewTriage.makeHref(b!=
null?b:0,0,Gt[c])}));this.issueFields$=this.distinctIssueId$.pipe(A(function(b){return a.editIssueService.issueFields(b)}),vf({refCount:!0,bufferSize:1}));this.isForgottenFourPrimary$=this.issueFields$.pipe(yf(function(b){return b.isForgottenFourPrimary$}));this.showHiddenFieldsLabel$=this.issueFields$.pipe(yf(function(b){return b.showHiddenFieldsLabel$}));this.hasHiddenFields$=this.issueFields$.pipe(yf(function(b){return b.hasHiddenFields$}));this.isChangelistPrimary$=this.issueFields$.pipe(yf(function(b){return b.isChangelistPrimary$}));
this.isSeverityPrimary$=this.issueFields$.pipe(yf(function(b){return b.isSeverityPrimary$}));this.isSloStatusPrimary$=this.issueFields$.pipe(yf(function(b){return b.isSloStatusPrimary$}));this.hiddenCustomFields$=this.issueFields$.pipe(yf(function(b){return b.hiddenCustomFields$}));this.visibleCustomFields$=this.issueFields$.pipe(yf(function(b){return b.visibleCustomFields$}));this.visibleGlobalCustomFields$=this.issueFields$.pipe(yf(function(b){return b.visibleGlobalCustomFields$}));this.issueQuickActions$=
this.distinctIssueId$.pipe(A(function(b){return a.editIssueService.issueQuickActions(b)}),vf({refCount:!0,bufferSize:1}));this.issueAssigneeQuickAction$=this.issueQuickActions$.pipe(yf(function(b){return b.issueAssigneeQuickAction$}));this.issueStatusQuickAction$=this.issueQuickActions$.pipe(yf(function(b){return b.issueStatusQuickAction$}));this.trackerId$=this.component$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.priorityChoices=this.constants.priorities.map(function(b){return{value:b,
displayText:b,hotkey:F9a(b)}});this.severityChoices=this.constants.severities.map(function(b){return{value:b,displayText:b}});this.typeChoices=this.constants.editIssueTypeChoices;this.phaseChoices=Object.values(Vbd).map(function(b){return{value:b,displayText:at.get(b)}});this.teamHovercardInputs$=ie([this.issueDetailsBrain.componentId$,this.teamId$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return{teamId:c?String(c):"0",componentId:b?b:"0"}}));this.isTeamWarningDismissed$=ie([this.issue$,
this.userPreferencesManager.preferences$]).pipe(A(function(b){b=m(b);var c=b.next().value;var d,e;return(d=b.next().value.teamWarningPreferences)==null?void 0:(e=d.componentTeamWarnings)==null?void 0:e.some(function(f){return f.componentId===c.componentId})}));this.isPersonalComponent$=this.component$.pipe(A(function(b){var c,d;return b==null?void 0:(c=b.componentPathInfo)==null?void 0:(d=c.componentPathId)==null?void 0:d.includes("19299")}));this.shouldDisplayTeamSuggestions$=ie([this.issuePermissionService.userIsComponentAdmin$,
this.isTeamWarningDismissed$,this.teamWarningType$,this.isPersonalComponent$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;var e=c.next().value;c=c.next().value;return b&&!d&&!c&&(e==="MISSING"||e==="DELETED")}));this.showTriagePhaseRow$=this.teamId$.pipe(A(function(b){return a.enableTriageView&&b!=="0"}));this.statusChoices$=this.canonicalIssueId$.pipe(A(function(b){return[].concat(q(qcd.filter(function(c){return c.value!=="DUPLICATE"})),[{value:"DUPLICATE",displayText:b?
"Duplicate of "+b:"Duplicate"}])}),A(function(b){return b.map(function(c){return Object.assign({},c,{hotkey:G9a(c.value)})})}));this.workspaces$=Bgd(this.refreshMonitor,this.distinctIssueId$).pipe(yf(function(b){return a.workspaceService.listWorkspaces(b)}),vf({refCount:!0,bufferSize:1}));this.pendingChangelists$=Bgd(this.refreshMonitor,this.distinctIssueId$).pipe(yf(function(b){return a.changelistApi.getPendingChangelistsForIssue(b)}),A(function(b){return b.changelistNumbers.map(String)}),A(function(b){return{cls:b,
hasError:!1}}),gf(function(){return ce({cls:[],hasError:!0})}),vf({refCount:!0,bufferSize:1}));this.pendingCodeChanges$=this.issue$.pipe(yf(function(b){return a.activeSession.isExternalSession()?ce({issue:b,changelists:{cls:[],hasError:!1}}):a.pendingChangelists$.pipe(A(function(c){return{issue:b,changelists:c}}))}),A(function(b){var c=b.issue;b=b.changelists;c=gmd(c);return{changes:[].concat(q(b.cls),q(c)),hasError:b.hasError}}));this.USER_FIELD_HOVERCARD_CONFIG=Object.assign({},new OK,{position:[m8c]});
this.ACCESS_LIMITS_HOVERCARD_CONFIG=Object.assign({},new OK,{position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-30}]});this.issueIsOnInternalComponent$=this.component$.pipe(A(function(b){var c;return(b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel)==="INTERNAL"}));this.shouldDisplayEffort$=this.issueIsOnInternalComponent$.pipe(A(function(b){return a.sessionIsInternal&&b||a.activeSession.getFlag("enableEstimatedEffortExternalUi")}));this.collaboratorUserPrincipalValidator=
function(b){var c,d,e;return y(function(f){if(f.nextAddress==1){if(!b)return f.return("This field is required");c=b.split(/[,\s]+/).map(function(g){return g.trim()}).filter(Boolean);return z(f,Zid(a.jspbPrincipalTypes,c,!1),2)}d=f.yieldResult;e=c.find(function(g){var k;return((k=d[g])==null?void 0:k.principalType)!=="USER"});return f.return(e?"You can only add users to collaborators.":"")})};this.emailsValidator=function(b){var c,d,e,f;return y(function(g){if(b==null)return g.return("This field is required");
c=b.split(/[,\s]+/).map(function(k){return k.trim()}).filter(Boolean);d=m(c);for(e=d.next();!e.done;e=d.next()){f=e.value;if(f.match(Knd))return g.return(f+" does not appear to be an email: zero-width characters detected");if(!vTa.test(f)&&!Icd.test(f))return g.return(f+" does not appear to be an email")}return g.return("")})};this.reconcileView={assignee:function(b){var c,d;b.value=(d=(c=Ar(a.issue$))==null?void 0:c.assignee)!=null?d:""},reporter:function(b){var c,d;b.value=(d=(c=Ar(a.issue$))==
null?void 0:c.reporter)!=null?d:""},verifier:function(b){var c,d;b.value=(d=(c=Ar(a.issue$))==null?void 0:c.verifier)!=null?d:""},ccs:function(b){var c,d;b.values=(d=(c=Ar(a.issue$))==null?void 0:c.cc)!=null?d:[]},collaborators:function(b){var c,d;b.values=(d=(c=Ar(a.issue$))==null?void 0:c.collaborators)!=null?d:[]},issueType:function(b){var c,d;b.value=(d=(c=Ar(a.issue$))==null?void 0:c.type)!=null?d:null}}};y4.prototype.ngOnChanges=function(){this.issueId$.next(this.issueId)};
var ZSb=function(a){var b=a.issuePermissionService.isCurrentUserCCd();a.analytics.trackEvent("editIssue","toggleCC (appbar)",(!b).toString());var c=a.editIssueService.editableIssue(a.issueId),d=[];d=b?c.cc.filter(function(e){return!ZQ(a.issuePermissionService,e)}):[].concat(q(c.cc),[a.activeSession.getUserEmail()]);return Vnd(a.editIssueService,a.issueId,d)};
y4.prototype.toggleCollaborators=function(){var a=this,b=this.issuePermissionService.isCurrentUserCollaborator();this.analytics.trackEvent("editIssue","toggleCollaborators (appbar)",(!b).toString());var c=this.editIssueService.editableIssue(this.issueId),d=[];d=b?c.collaborators.filter(function(e){return!ZQ(a.issuePermissionService,e)}):[].concat(q(c.collaborators),[this.activeSession.getUserEmail()]);return Wnd(this.editIssueService,this.issueId,d)};
y4.prototype.toggleAccessLimits=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.issueLimits.isOpen()?c.return():z(c,fe(a.issueDetailsBrain.componentId$),2);b=c.yieldResult;if(!b)return c.return();a.issueLimits.open({componentId:b,issueId:a.issueId});ae(c)})};y4.prototype.toggleAccessLimitsWithKeystroke=function(a){this.toggleAccessLimits();a.stopPropagation();a.preventDefault()};
var USb=function(a,b){return VSb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.assignee(b.editField)})},QSb=function(a,b){return y(function(c){return c.return(RSb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.reporter(b.editField)}))})},WSb=function(a,b){return y(function(c){return c.return(XSb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.verifier(b.editField)}))})},$Sb=function(a,b){return y(function(c){return c.return(Vnd(a.editIssueService,
a.issueId,b.newUsers).finally(function(){b.editField&&a.reconcileView.ccs(b.editField)}))})},YSb=function(a,b){return y(function(c){return c.return(Wnd(a.editIssueService,a.issueId,b.newUsers).finally(function(){b.editField&&a.reconcileView.collaborators(b.editField)}))})},SSb=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1)return z(e,fe(a.trackerId$),2);d=e.yieldResult;return e.return(Pnd(a.editIssueService,a.issueId,c,d).finally(function(){a.reconcileView.issueType(b)}))})},Xt=function(a,
b){a.analytics.trackEvent("editIssue","quickAction (sidebar)",b==null?void 0:b.displayText);return Tnd(a.editIssueService,a.issueId,b)};
y4.prototype.onStatusChanged=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1){a:switch(a){case "NEW":case "ASSIGNED":case "ACCEPTED":case "FIXED":case "VERIFIED":case "NOT_REPRODUCIBLE":case "INTENDED_BEHAVIOR":case "OBSOLETE":case "INFEASIBLE":case "INACTIVE":case "DUPLICATE":var e=a;break a;default:e=null}return(c=e)?c!=="DUPLICATE"?d.jumpTo(2):z(d,OBd(b.issueMarkAsDuplicateDialogService,b.issueId),3):d.return()}if(d.nextAddress!=2)return d.return();bhd(b.analytics,c);return d.return(Snd(b.editIssueService,
b.issueId,c))})};y4.prototype.isSaving$=function(a){var b=this;return this.distinctIssueId$.pipe(A(function(c){return b.editIssueService.savingState(c)}),yf(function(c){return Ind(c,a)}))};y4.prototype.getAccessLimitLevelDisplay=function(a){return Nkb(a)};y4.\u0275fac=function(a){return new (a||y4)};
y4.\u0275cmp=D({type:y4,selectors:[["edit-issue-metadata"]],inputs:{issueId:"issueId"},standalone:!1,features:[jx],decls:2,vars:3,consts:[["typeField",""],["priorityField",""],["statusField",""],["canonicalHovercard","onedevHovercard"],["ialCard","onedevHovercard"],["assigneeField",""],["sloField",""],["severityField",""],["codeChangesFields",""],["foundInField",""],["targetedToField",""],["verifiedInField",""],["inProdField",""],["forgottenFourFields",""],["customFieldTemplate",""],["phaseField",
""],["canonicalCardBody",""],["implicitAccessHelpBubble",""],[3,"valueChange","emailChange","name","title","value","user","isSaving"],[3,"valueChange","name","title","type","value","choices","readonly","disabled"],[1,"flex-wrappable","flex-kids-y"],[1,"flex-1",3,"onHotkey","valueChange","name","title","type","tooltip","value","choices","hotkey","readonly","disabled","showHotkeyHint"],[1,"status-field-row"],[3,"onHotkey","valueChange","name","title","type","value","choices","showHotkeyHint","hotkey",
"readonly","disabled","onedevHovercardActive","onedevHovercardTrigger"],[1,"phase-field-row"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"effort","effortSpec","disabled"],[1,"bv2-issue-metadata-field"],["tabindex","0",1,"bv2-issue-metadata-field-inner","bv2-readonly",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],[1,"bv2-editable-title","access-level-title"],[1,"bv2-editable-value","access-level-info"],[1,"access-level-current-val"],["tabindex",
"0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["mat-button","","target","_blank","aria-label","Learn more about issue access limits",1,"primary","bv2-metadata-link","keep-focus-ring",3,"href"],[1,"flex-kids-y"],[1,"implicit-access-header","flex-kids-x","flex-cross-axis-centered","flex-spread","full-width"],[1,"flex-1",3,"onHotkey","valueChange","emailChange",
"name","title","hotkey","value","user","isSaving"],[1,"flex-1",3,"valueChange","emailChange","name","title","value","user","isSaving"],[3,"userInclusionToggle","valueChange","toggleAccessLimits","title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isSaving","isCurrentUserInCollection","isAllowedToEditCollection","iconName","inputValidator","checkAccessLimits"],[3,
"userInclusionToggle","valueChange","title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isSaving","isCurrentUserInCollection","isAllowedToEditCollection","inputValidator","iconName"],[3,"staffing","issueId","isAllowedToEdit"],[3,"readonly","defaultLineCount","title","type","values","tooltip"],[1,"hidden-fields-separator"],[3,"titleWhenCollapsed","titleWhenExpanded"],
[4,"ngTemplateOutlet"],[1,"issue-metadata-field-long",3,"readonly","defaultLineCount","title","type","values","showInternalOnlyFieldBadge"],[1,"issue-metadata-field-short"],[3,"updateTeam","warningType","componentId","parentComponentId","teamSuggestions"],[1,"bv2-metadata-quick-action"],[1,"bv2-field-label-spacer"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],["tooltip","Go to triage view",3,"name","title","type","value","choices","showHotkeyHint",
"disabled"],["matTooltip","Go to triage view",1,"bv2-metadata-link",3,"href"],[3,"onedevIsHovercardReady","issueId"],[3,"effortChange","effort","effortSpec","disabled"],[1,"implicit-access-header-text"],[3,"panelTemplate"],["svgIcon","help-outline",1,"icon-s"],["target","_blank",3,"href"],["tabindex","0","role","button",1,"bv2-metadata-quick-action",3,"hotkey","matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-quick-action",3,"onHotkey","click","keydown.enter","keydown.space","hotkey",
"matTooltip"],[1,"bv2-metadata-link",3,"disabled"],[1,"bv2-metadata-link"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"refreshable"],["tabindex","0",1,"issue-metadata-field-long",3,"onSloStartTimeChange","onSloEndTimeChange","sloStatus","sloStartTime","sloEndTime","sloId","componentId","isEditable","issueCreationTimestamp","showInternalOnlyFieldBadge","escalationOwner"],[1,"flex-1",3,"valueChange","name","title","type","tooltip","value","choices","readonly","disabled"],[3,"valuesChange",
"readonly","defaultLineCount","title","inputValidator","type","values","listFieldDisabled"],[1,"issue-metadata-field-short","issue-metadata-field-short-left",3,"valueChange","name","title","type","multiline","tooltip","value","readonly","disabled"],[3,"valueChange","name","title","type","multiline","tooltip","value","readonly","disabled"],[3,"valueChange","name","title","type","value","tooltip","readonly","disabled"],[3,"save","issue","field","readonly","disabled"]],template:function(a,b){a&1&&(F(0,
aTb,114,174),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issue$))?0:-1,c)}},dependencies:[EV,Sx,Jy,y_,oV,u4,BTd,pU,KK,LK,SK,MK,MW,v4,OV,vK,nA,tU,x4,QV,jL,n_,C0,usd,Tx],styles:["hr.hidden-fields-separator[_ngcontent-%COMP%]{margin-left:16px;margin-right:10px}.bv2-field-label-spacer[_ngcontent-%COMP%]{width:23%;display:inline-block;min-width:80px;max-width:120px;padding-right:10px}/*# sourceMappingURL=edit_issue_metadata.css.map */"]});var ITd=["descriptionArea"],JTd=["container"],z4=function(){Z.call(this);var a=this;this.cdr=p(bQ,{self:!0});this.issueFullFridge=p(gQ);this.eventsForIssueFridge=p(NP);this.editStatusUpdateDialogService=p(k4);this.statusUpdateFactory=p(m4);this.statusUpdateService=p(j4);this.issueCommentDialogsService=p(vY);this.contextSensitiveRegistry=p(XQ);this.issuePermissionService=p($Q);this.clipboard=p(oR);this.snackBar=p(rB);this.analytics=p(eQ);this.activeSession=p(uu);this.playbookService=p(dR);this.appSearchState=
p(rT);this.recommendationTriggerService=p(cR);this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");this.closeSidebar=new aQ;this.navigateToNextIssue=new aQ;this.navigateToPreviousIssue=new aQ;this.issueId$=new uf(1);this.dedupeRecommendation$=this.issueId$.pipe(yf(function(b){return Mjd(a.recommendationTriggerService,b)}),vf({bufferSize:1,refCount:!0}));this.playbookRecommendation$=ie([this.issueId$,this.appSearchState.queryState$]).pipe(yf(function(b){var c=m(b);b=c.next().value;c=
c.next().value;return c.query?akd(a.playbookService,b,c.query):ce(void 0)}));this.issue$=this.issueId$.pipe(zf(this.destroyed$),yf(function(b){return a.issueFullFridge.watch(b)}),vf({bufferSize:1,refCount:!0}));this.componentId$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].componentId)||void 0}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.events$=this.issueId$.pipe(zf(this.destroyed$),yf(function(b){return a.eventsForIssueFridge.watch(b)}),
A(function(b){return(b==null?void 0:b.events)||[]}));this.firstEvent$=this.events$.pipe(A(function(b){return b.length>0?b[0]:void 0}));this.statusUpdate$=this.issue$.pipe(A(function(b){return b==null?void 0:b.statusUpdate}));this.statusUpdateNote$=this.statusUpdate$.pipe(ue(Pm),A(function(b){return{unlinkifiedComment:b.updateText,formattedComment:b.formattedText}}));this.userCanEditStatusUpdate$=this.issuePermissionService.hasAclToEdit$;this.hasStatusUpdate$=this.statusUpdate$.pipe(A(function(b){return!!b&&
b.updateText!==""}));this.firstNote$=this.events$.pipe(zf(this.destroyed$),A(function(b){if(b&&b.length>0&&b[0].commentNumber&&b[0].commentNumber>-1)return{commentNumber:b[0].commentNumber,unlinkifiedComment:b[0].unlinkifiedComment||"",formattedComment:b[0].formattedComment}}),vf({bufferSize:1,refCount:!0}));this.userCanEditDescription$=this.firstEvent$.pipe(yf(function(b){return b?a.issuePermissionService.canEditComment$(b):ce(!1)}));this.hasDescription$=this.events$.pipe(zf(this.destroyed$),A(function(b){return b&&
b.length>0&&QTa(b[0])}));this.isFieldsExpanded=this.isDescriptionExpanded=this.isStatusUpdateExpanded=!0;this.editTitleMode=this.isSavingTitle=!1;this.draftTitle="";this.FormattingMode=Um;this.descriptionHasMore=!0;this.containerScrolled=this.showFullDescription=!1;this.destroyed$.subscribe(function(){fTb(a)});this.issueId$.pipe(zf(this.destroyed$)).subscribe(function(){fTb(a);a.showFullDescription=!1});this.firstNote$.pipe(zf(this.destroyed$)).subscribe(function(){KTd(a)})};Y(z4,Z);
z4.\u0275dir=Z.\u0275dir;z4.prototype.ngOnInit=function(){this.isPlaybookEnabled&&(this.isStatusUpdateExpanded=!1)};z4.prototype.ngAfterViewInit=function(){var a=this;this.issueId$.pipe(zf(this.destroyed$)).subscribe(function(){a.container.nativeElement.scrollTop=0})};var KTd=function(a){setTimeout(function(){var b;a.descriptionHasMore=((b=a.descriptionArea)==null?void 0:b.nativeElement.scrollHeight)>130;a.cdr.detectChanges()})};
z4.prototype.copyIssueId=function(a){this.clipboard.copy(a);this.snackBar.open("IssueId copied","",{duration:2E3});this.analytics.trackEvent("issueSidebar","copyIssueId")};
z4.prototype.editStatusUpdate=function(){var a=this,b,c,d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:return z(r,fe(a.issueId$),2);case 2:return b=r.yieldResult,z(r,fe(a.componentId$),3);case 3:return c=r.yieldResult,z(r,fe(a.statusUpdate$),4);case 4:if((d=r.yieldResult)!=null){e=d;r.jumpTo(5);break}return z(r,fTd(a.statusUpdateFactory,b),6);case 6:e=r.yieldResult;case 5:return f=e,z(r,fe(a.accessLevel$),7);case 7:return k=(g=r.yieldResult)&&g==="INTERNAL"?"INTERNAL":"EXTERNAL",z(r,
a.editStatusUpdateDialogService.show(f,k,c),8);case 8:l=r.yieldResult;if(!l)return r.return();a.statusUpdateService.update(l).subscribe(function(w){a.analytics.trackEvent("issueSidebar","edit","statusUpdate",w.updateText.length===0);a.issueFullFridge.manualUpdate(b,function(x){x.statusUpdate=w});a.issueFullFridge.poke(b)});ae(r)}})};
var vTb=function(a){var b,c;return y(function(d){switch(d.nextAddress){case 1:return z(d,fe(a.issueId$),2);case 2:return b=d.yieldResult,z(d,fe(a.firstEvent$),3);case 3:return(c=d.yieldResult)?z(d,Ysb(a.issueCommentDialogsService,b,c),4):d.return();case 4:return z(d,a.eventsForIssueFridge.poke(b),5);case 5:a.analytics.trackEvent("issueSidebar","edit","description",QTa(c)),ae(d)}})},dTb=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,fe(a.issue$),2);b=c.yieldResult;if(!b)return c.return();
a.draftTitle=b.snapshot[0].title;a.editTitleMode=!0;ae(c)})},fTb=function(a){a.isSavingTitle||(a.draftTitle="",a.editTitleMode=!1)};z4.prototype.saveTitle=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,fe(a.issue$),2);b=c.yieldResult;if(!b||b.snapshot[0].title===a.draftTitle)return fTb(a),c.return();a.isSavingTitle=!0;fhd(a.issueFullFridge,b.issueId,a.draftTitle).subscribe(function(){a.analytics.trackEvent("issueSidebar","edit","title");a.isSavingTitle=!1;fTb(a)});ae(c)})};
z4.prototype.upvoted=function(a){this.analytics.trackEvent("issueSidebar","toggle","vote",a)};da.Object.defineProperties(z4.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){a?(this.issueId$.next(String(a)),this.contextSensitiveRegistry.issueIdOverride$.next(String(a)),this.analytics.trackEvent("issueSidebar","changeIssue")):this.contextSensitiveRegistry.issueIdOverride$.next(null)}},content:{configurable:!0,enumerable:!0,set:function(a){a&&(this.descriptionArea=a,KTd(this))}}});
z4.\u0275fac=function(a){return new (a||z4)};
z4.\u0275cmp=D({type:z4,selectors:[["issue-sidebar"]],viewQuery:function(a,b){a&1&&(hg(ITd,5),hg(JTd,5));if(a&2){var c;lg(c=mg())&&(b.content=c.first);lg(c=mg())&&(b.container=c.first)}},inputs:{issueId:"issueId"},outputs:{closeSidebar:"closeSidebar",navigateToNextIssue:"navigateToNextIssue",navigateToPreviousIssue:"navigateToPreviousIssue"},standalone:!1,features:[Gg([bQ]),Ef],decls:24,vars:14,consts:[["container",""],["spinner",""],["insightsCard",""],["descriptionArea",""],[1,"container","flex-kids-y",
3,"scroll"],[1,"top-actions","flex-kids-x","space-between","border-bottom"],[1,"flex-kids-x","align-items-center","margin-s-left","gap-s"],[1,"action-buttons"],[3,"issueId","upvoted","voteCount"],["type","button","mat-icon-button","","matTooltip","Previous issue","matTooltipPosition","above","aria-label","Previous issue",3,"click"],["svgIcon","chevron-left"],["type","button","mat-icon-button","","matTooltip","Next issue","matTooltipPosition","above","aria-label","Next issue",3,"click"],["svgIcon",
"chevron-right"],["type","button","mat-icon-button","","matTooltip","Close sidebar","matTooltipPosition","above","aria-label","Close sidebar",3,"click"],["svgIcon","close"],[1,"title"],[1,"details","flex-kids-y","padded-s-sides"],[1,"card-container","flex-kids-y"],[1,"heading-xs","muted","hover-link",3,"click","href"],[1,"a11y-only"],["type","button","mat-icon-button","","aria-label","copy issue id",1,"small","fade-icon-button","copy-issue-id",3,"click"],["svgIcon","copy",1,"icon-xs"],[3,"onVote",
"issueId","upvoted","voteCount"],[1,"flex"],["type","button","mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"fade-icon-button","small",3,"click"],["svgIcon","edit-outline",1,"icon-s"],[1,"full-width"],["matInput","","type","text","aria-label","Edit issue title","rows","3",3,"ngModelChange","cdkTextareaAutosize","cdkAutosizeMinRows","ngModel","bFocus"],[1,"flex-kids-x","gap","justify-flex-end","padded-bottom","border-bottom"],["type","button","mat-stroked-button",
"",1,"small"],["type","button","mat-flat-button","","color","primary",1,"small",3,"click","disabled"],["type","button","mat-stroked-button","",1,"small",3,"click"],[4,"ngTemplateOutlet"],[1,"margin-s-bottom",3,"initiallyCollapsed"],[1,"card","status-update"],[1,"card-header"],[1,"card-header-inner-left"],["svgIcon","group","color","primary",1,"icon-s"],[1,"card-header-inner-right"],["type","button","mat-icon-button","","aria-label","Edit the status update","matTooltip","Edit the status update","matTooltipPosition",
"above",1,"small","edit-button"],["type","button","mat-icon-button","","aria-label","Toggle the status update view for this issue","matTooltip","Toggle the status update view for this issue","matTooltipPosition","above",1,"small","expand-button"],[1,"card","description"],[1,"card","ai-suggestion"],[1,"bv2-issue-metadata","card"],["svgIcon","release-notes-default","color","primary",1,"icon-s"],["type","button","mat-icon-button","","aria-label","Toggle the fields view for this issue","matTooltip","Toggle the fields view for this issue",
"matTooltipPosition","above",1,"small",3,"click"],["svgIcon","arrow-down",1,"icon-s"],["svgIcon","arrow-up",1,"icon-s"],[1,"fields-area","margin-top","flex-kids-y"],["type","button","mat-icon-button","","aria-label","Edit the status update","matTooltip","Edit the status update","matTooltipPosition","above",1,"small","edit-button",3,"click"],["type","button","mat-icon-button","","aria-label","Toggle the status update view for this issue","matTooltip","Toggle the status update view for this issue",
"matTooltipPosition","above",1,"small","expand-button",3,"click"],[1,"status-update-area"],[3,"issueId","note","issueAccessLevel","formattingMode"],["type","button","mat-icon-button","","aria-label","Edit the description","matTooltip","Edit the description","matTooltipPosition","above",1,"small","edit-button"],["type","button","mat-icon-button","","aria-label","Toggle the description view for this issue","matTooltip","Toggle the description view for this issue","matTooltipPosition","above",1,"small",
"expand-button"],[1,"description-area"],["type","button","mat-icon-button","","aria-label","Edit the description","matTooltip","Edit the description","matTooltipPosition","above",1,"small","edit-button",3,"click"],["type","button","mat-icon-button","","aria-label","Toggle the description view for this issue","matTooltip","Toggle the description view for this issue","matTooltipPosition","above",1,"small","expand-button",3,"click"],[1,"description-note"],[1,"description-show-more","margin-s-top"],[3,
"click"],["svgIcon","devai","color","primary",1,"icon-s"],[1,"recommendation"],[3,"recommendation"],[3,"issueId"],[1,"text-center"]],template:function(a,b){if(a&1){var c=t();K(0,"div",4,0);N("scroll",function(){u(c);b.containerScrolled=b.container.nativeElement.scrollTop===0?!1:!0;return v()});K(2,"header")(3,"div",5)(4,"div",6);F(5,bTb,6,3);T(6,"async");L();K(7,"div",7);F(8,cTb,1,3,"b-app-vote-button",8);T(9,"async");K(10,"button",9);N("click",function(){u(c);return v(b.navigateToPreviousIssue.emit())});
M(11,"mat-icon",10);L();K(12,"button",11);N("click",function(){u(c);return v(b.navigateToNextIssue.emit())});M(13,"mat-icon",12);L();K(14,"button",13);N("click",function(){u(c);return v(b.closeSidebar.emit())});M(15,"mat-icon",14);L()()();F(16,lTb,4,2,"div",15);T(17,"async");L();K(18,"div",16);F(19,PTb,39,34,"div",17);T(20,"async");Kf(21,RTb,1,1,"ng-container");L()();E(22,STb,2,0,"ng-template",null,1,Mg)}if(a&2){var d,e,f,g;B(2);wg("elevated",b.containerScrolled);B(3);G((d=U(6,6,b.issueId$))?5:-1,
d);B(3);G((e=U(9,8,b.issue$))?8:-1,e);B(8);G((f=U(17,10,b.issue$))?16:-1,f);B(3);G((g=U(20,12,b.issue$))?19:21,g)}},dependencies:[kB,gB,iB,vK,nA,xj,fE,mE,HD,SD,VD,FE,YD,Sx,Jy,p4,cU,y4,hU,xW,LW,k_,Tx],styles:["header[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--background);position:-webkit-sticky;position:sticky;top:0;z-index:3}header.elevated[_ngcontent-%COMP%]{box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 1px 3px 1px rgba(0,0,0,.15)}.action-buttons[_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}.fade-icon-button[_ngcontent-%COMP%]{vertical-align:bottom;opacity:0;-webkit-transition:opacity .25s ease-in-out;transition:opacity .25s ease-in-out}.fade-icon-button[_ngcontent-%COMP%]:focus{opacity:1}.card[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%], .top-actions[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%]{opacity:1}.container[_ngcontent-%COMP%]{width:640px;height:100%;overflow-y:scroll}.issue-summary[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg)}.issue-summary-area[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.title[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;overflow-wrap:anywhere;font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;padding:16px 8px}.title[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;padding:8px}.card[_ngcontent-%COMP%]{padding:8px 8px 8px 16px;border-radius:4px;border:1px solid;border-color:#dadce0;border-color:var(--divider);margin-bottom:16px}.card.no-border[_ngcontent-%COMP%]{border:none}.card-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.card-header-inner-left[_ngcontent-%COMP%], .card-header-inner-right[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.card-header-inner-left[_ngcontent-%COMP%]{font-weight:500;text-transform:uppercase;letter-spacing:.05rem}.card-header-inner-right[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);font-style:italic}.details[_ngcontent-%COMP%]{width:-moz-fill-available;width:-webkit-fill-available}.ai-suggestion[_ngcontent-%COMP%], .status-update[_ngcontent-%COMP%]{padding-left:12px;border-left:4px solid;border-left-color:#1a73e8;border-left-color:var(--primary)}.description[_ngcontent-%COMP%], .status-update[_ngcontent-%COMP%]{overflow-x:auto}.description-note[_ngcontent-%COMP%]{max-height:160px;overflow:hidden}.full-height[_ngcontent-%COMP%]{max-height:100%}.description-area[_ngcontent-%COMP%], .fields-area[_ngcontent-%COMP%], .status-update-area[_ngcontent-%COMP%]{position:relative}.edit-description[_ngcontent-%COMP%], .edit-status-update[_ngcontent-%COMP%]{opacity:0}.edit-description[_ngcontent-%COMP%]:focus, .edit-status-update[_ngcontent-%COMP%]:focus{opacity:1}.description[_ngcontent-%COMP%]:hover   .edit-description[_ngcontent-%COMP%], .status-update[_ngcontent-%COMP%]:hover   .edit-status-update[_ngcontent-%COMP%]{opacity:1}.recommendation[_ngcontent-%COMP%]{margin-top:12px}\n/*# sourceMappingURL=issue_sidebar.css.map */"]});var LTd=[[["",8,"tooltip-content"]],[["",8,"chip-content"]]],MTd=function(){this.compactMode=this.labelOnlyMode=!1};MTd.prototype.ngOnInit=function(){};MTd.\u0275fac=function(a){return new (a||MTd)};
MTd.\u0275cmp=D({type:MTd,selectors:[["b-base-chip"]],inputs:{labelOnlyMode:"labelOnlyMode",compactMode:"compactMode",labelClass:"labelClass",hovercardAriaLabel:"hovercardAriaLabel"},standalone:!1,ngContentSelectors:[".tooltip-content",".chip-content"],decls:9,vars:7,consts:[["chipHovercard","onedevHovercard"],[1,"bv2-chip"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"field-label-with-help",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"help-label"]],template:function(a,
b){a&1&&(bg(LTd),K(0,"span",1)(1,"onedev-hovercard",null,0)(3,"div",2)(4,"div",3),cg(5),L()()(),K(6,"div",4)(7,"span",5),cg(8,1),L()()());if(a&2){a=qg(2);B(3);If("aria-label",b.hovercardAriaLabel);B(3);I("onedevHovercardTrigger",a)("onedevHovercardActive",!b.labelOnlyMode);B();var c;xg((c=b.labelClass)!=null?c:"");wg("compact-chip",b.compactMode)}},dependencies:[KK,SK],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.bv2-chip[_ngcontent-%COMP%]   .field-label-with-help[_ngcontent-%COMP%]{line-height:1em}.bv2-chip[_ngcontent-%COMP%]   .help-label[_ngcontent-%COMP%]{font-weight:normal;border-radius:8px;display:inline-block;line-height:18px;padding:0 10px}.bv2-chip[_ngcontent-%COMP%]   .help-label.compact-chip[_ngcontent-%COMP%]{font-size:.7em;margin-top:0;padding:0 6px;vertical-align:inherit}.bv2-edit-issue-details-scroll[_ngcontent-%COMP%]   .bv2-chip[_ngcontent-%COMP%]   .help-label[_ngcontent-%COMP%]{vertical-align:baseline}.bv2-grid-cell-container[_ngcontent-%COMP%]   .bv2-chip[_ngcontent-%COMP%] > .field-label-with-help[_ngcontent-%COMP%]{line-height:1}.onedev-hovercard-body[_ngcontent-%COMP%]{line-height:1.6em;width:350px}"]});var A4=function(){this.documentationLinks=p(cS);this.documentationLink=qu()};A4.prototype.ngOnChanges=function(){this.retentionState?this.retentionExpireTime=$n(this.retentionState.scheduledDeletionTime):this.retentionExpireTime=void 0};A4.\u0275fac=function(a){return new (a||A4)};
A4.\u0275cmp=D({type:A4,selectors:[["retention-help-text"]],inputs:{retentionState:"retentionState",modifiedTime:"modifiedTime"},standalone:!1,features:[jx],decls:1,vars:1,consts:[["target","_blank",3,"href"],[3,"mode","timestamp","paddingLeftPx"]],template:function(a,b){a&1&&F(0,VTb,4,2);a&2&&G(b.retentionState&&b.modifiedTime?0:-1)},dependencies:[rV],encapsulation:2});var B4=function(){this.dateFormatter=p(vS);this.compactMode=!1;this.text=""};B4.prototype.ngOnChanges=function(){var a;((a=this.retentionState)==null?void 0:a.scheduledDeletionTime)!=null?this.text=Tpb($n(this.retentionState.scheduledDeletionTime),!this.compactMode):this.text="Indefinite"};B4.\u0275fac=function(a){return new (a||B4)};
B4.\u0275cmp=D({type:B4,selectors:[["retention-text"]],inputs:{retentionState:"retentionState",compactMode:"compactMode"},standalone:!1,features:[jx],decls:1,vars:1,template:function(a,b){a&1&&Q(0);a&2&&yg(b.text)},encapsulation:2});var C4=function(){this.documentationLinks=p(cS);this.showRetentionInfo=this.dangerZone=this.labelOnlyMode=this.compactMode=this.showOnlyInDangerZone=!1};C4.prototype.ngOnChanges=function(){this.retentionState&&this.retentionState.retentionPeriod&&this.retentionState.scheduledDeletionTime?(this.dangerZone=XTb(this.retentionState),this.showRetentionInfo=this.showOnlyInDangerZone&&this.dangerZone||!this.showOnlyInDangerZone):this.showRetentionInfo=!1};C4.\u0275fac=function(a){return new (a||C4)};
C4.\u0275cmp=D({type:C4,selectors:[["b-retention-chip"]],inputs:{showOnlyInDangerZone:"showOnlyInDangerZone",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode",retentionState:"retentionState",modifiedTime:"modifiedTime"},standalone:!1,features:[jx],decls:1,vars:1,consts:[["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&&F(0,WTb,5,7,"b-base-chip",0);a&2&&G(b.showRetentionInfo?0:-1)},dependencies:[MTd,B4,A4],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 NTd=["issueSidenavContainer"],VWb=function(){return[]},wVb=function(a){return{id:a}},D4=function(){var a=this;this.activeSession=p(uu);this.cdr=p(bQ,{self:!0});this.elementRef=p(Hd);this.teamsService=p(OQ);this.ngZone=p(Rg);this.userPreferencesManager=p(hR);this.hotlistFridge=p(lP);this.issueFullFridge=p(gQ);this.bLocation=p(bU);this.issuePagination=p(m2);this.paths=p(hW);this.errorHandler=p(pO);this.$log=p(nO);this.domSafe=p(mR);this.trackerHelpers=p(kS);this.anayltics=p(eQ);this.playbookService=
p(dR);this.appSearchState=p(rT);this.ISSUE_STATUS_JS_ICON_NAME=pcd;this.STATUS_JS_FULL_TEXT=zm;this.STATUS_JS_TERSE=kcd;this.lastCheckedIndex=null;this.focusedRowIndexChange=new aQ;this.columns=[];this.columnsChange=new aQ;this.enableColumnSaving=!1;this.sort=null;this.enableSidebar=!1;this.sortChange=new aQ;this.rowClick=new aQ;this.init=new aQ;this.onRowDragDrop=new aQ;this.onNextPage=new aQ;this.onPrevPage=new aQ;this.selectionCallbacks=[];this.GET_ISSUE_ACCESS_LEVEL_TITLE=Nkb;this.isLoadingTeams=
!0;this.enableEscalationOwnerRolloutUi=this.activeSession.getFlag("enableEscalationOwnerRolloutUi");this.isSidebarIlpIconEnabled=this.activeSession.getFlag("enableSidebarIlpIcon");this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");this.isIssueSidebarOpen=this.isIssueSidebarEnabled=!1;this.hoveredRowIndex=null;this.destroyed$=new uf(1);this.searchQuery$=this.appSearchState.queryState$.pipe(A(function(c){return c.query||void 0}));this.hasPlaybook$=this.searchQuery$.pipe(yf(function(c){return c?
Vjd(a.playbookService,c).pipe(A(function(d){return!!d})):ce(!1)}));this.starInProgress={};this.readUnreadOptOut=this.activeSession.getFlag("readUnreadOptOut");this.enableAddViewCountColumnsOnIlp=this.activeSession.getFlag("enableAddViewCountColumnsOnIlp");var b=Ma(sPb);this.activeSession.isInternalSession()||(La(b,"minSlo"),La(b,"responseSlo"),La(b,"assignmentSlo"),La(b,"closureSlo"),La(b,"deletionTime"),La(b,"team"),La(b,"estimate"),La(b,"estimateTotalOpen"),La(b,"estimateTotalComplete"));this.activeSession.isInternalSession()&&
this.enableEscalationOwnerRolloutUi||La(b,"escalationOwner");this.enableAddViewCountColumnsOnIlp||(La(b,"oneDayViewCount"),La(b,"sevenDayViewCount"),La(b,"thirtyDayViewCount"));this.availableColumns=b.map(tPb);this.dragDropLogic=new WSd({ngZone:this.ngZone,nativeElement:this.elementRef.nativeElement,rowFinder:function(c){return OTd(a,c)},onRowDragDrop:function(c){a.onRowDragDrop.emit(c)}})};
D4.prototype.ngOnInit=function(){var a=this;this.dragDropLogic.setup();this.userPreferencesManager.listViewPreferences$.pipe(zf(this.destroyed$)).subscribe(function(b){a.listViewPrefs=b;a.cdr.detectChanges()});this.isIssueSidebarEnabled=this.enableSidebar;this.init.emit(this)};
D4.prototype.ngOnChanges=function(a){if(a.searchResults){var b,c=DQa(((b=this.searchResults)==null?void 0:b.issues.map(function(e){return new Set([].concat(q(e.hotlistId||[])))}))||[]);this.hotlistFridge.watchSet([].concat(q(c)))}if(a.searchResults||a.columns)for(b=m(this.columns),c=b.next();!c.done;c=b.next())c.value.label==="TEAM"&&PTd(this);if(a.searchResults){b=a.searchResults.currentValue;var d;a=new Set(((d=a.searchResults.previousValue)==null?void 0:d.issues.filter(function(e){return e.selected}).map(function(e){return e.id}))||
[]);d=new Set((b==null?void 0:b.issues.filter(function(e){return e.selected}).map(function(e){return e.id}))||[]);YQa(a,d)||Yt(this)}};D4.prototype.ngOnDestroy=function(){this.dragDropLogic.tearDown();this.destroyed$.next()};var IUb=function(a){a.isIssueSidebarOpen=!0;a.cdr.detectChanges()};D4.prototype.focus=function(){this.grid.focus()};D4.prototype.selectAll=function(){if(this.searchResults){for(var a=m(this.searchResults.issues),b=a.next();!b.done;b=a.next())b.value.selected=!0;this.cdr.detectChanges()}Yt(this)};
var QTd=function(a){if(a.searchResults){for(var b=m(a.searchResults.issues),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.cdr.detectChanges()}Yt(a)};D4.prototype.hasSelectedIssues=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};
var iUb=function(a){return a.searchResults?a.searchResults.issues.every(function(b){return b.selected}):!1},RTd=function(a){return a.searchResults?a.searchResults.issues.some(function(b){return b.selected}):!1},hUb=function(a){if(!a.searchResults)return"unchecked";var b=!0,c=!1;a=m(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"};
D4.prototype.getSelectedIssues=function(){return this.searchResults?this.searchResults.issues.filter(function(a){return a.selected}):[]};D4.prototype.getAllIssues=function(){return this.searchResults?this.searchResults.issues:[]};
var TTd=function(a){if(STd(a)&&a.focusedRowIndex!=null&&a.searchResults){var b=a.searchResults.issues[a.focusedRowIndex];b&&(b.selected=!b.selected,a.cdr.detectChanges(),Yt(a))}},gUb=function(a){if(a.searchResults){for(var b=!RTd(a),c=m(a.searchResults.issues),d=c.next();!d.done;d=c.next())d.value.selected=b;a.cdr.detectChanges();Yt(a)}},YTb=function(a){a.focusedRowIndex!=null&&a.searchResults&&a.focusedRowIndex<a.searchResults.issues.length-1?(a.focusedRowIndex++,a.focusedRowIndexChange.emit(a.focusedRowIndex),
a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasNextPage()&&jOd(a.issuePagination,a.searchResults.endIndex+1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onNextPage.emit()})},ZTb=function(a){a.focusedRowIndex!=null&&a.focusedRowIndex>0?(a.focusedRowIndex--,a.focusedRowIndexChange.emit(a.focusedRowIndex),a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasPreviousPage()&&jOd(a.issuePagination,a.searchResults.startIndex-1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onPrevPage.emit()})},
UTd=function(a,b){b=b===void 0?{}:b;var c=a.getFocusedIssue();c&&(b.openInNewTab?a.domSafe.openInNewTab(ss(c.issueId)):a.bLocation.setUrl(ss(c.issueId)))};D4.prototype.getFocusedIssue=function(){return STd(this)&&this.focusedRowIndex!=null&&this.searchResults?this.searchResults.issues[this.focusedRowIndex]:null};
var VTd=function(a,b){a.selectionCallbacks.push(b);b()},Yt=function(a){a=m(a.selectionCallbacks);for(var b=a.next();!b.done;b=a.next())b=b.value,b()},WTd=function(a){STd(a)&&a.focusedRowIndex!=null&&a.searchResults&&a.toggleStar(a.searchResults.issues[a.focusedRowIndex])},XTd=function(a,b){b=b===void 0?!0:b;var c=a.getSelectedIssues();if(c.length!==0){for(var d=m(c),e=d.next();!e.done;e=d.next())e.value.isRead=b;a.cdr.detectChanges();hQ(a.issueFullFridge,c.map(function(f){return f.issueId}),{markRead:b,
userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(f){for(var g=m(c),k=g.next();!k.done;k=g.next()){var l=void 0;k.value.lastViewedTime=(l=f)!=null?l:null}}).catch(function(){for(var f=m(c),g=f.next();!g.done;g=f.next())g=g.value,g.isRead=!!g.lastViewedTime&&g.lastViewedTime>=g.majorModifiedTime}).finally(function(){a.cdr.detectChanges()})}};
D4.prototype.toggleStar=function(a){var b=this;a&&!this.starInProgress[a.issueId]&&(a.starred=!a.starred,this.starInProgress[a.issueId]=!0,dhd(this.issueFullFridge,String(a.issueId),a.starred).pipe(lf(1),zf(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()}))};
D4.prototype.issueDescription=function(a){return(a.isClosed?"Closed ":this.readUnreadOptOut||a.isRead?"":"Unread ")+"Issue ID "+a.id+" titled: "+a.title};
var STd=function(a){return a.searchResults!=null&&a.focusedRowIndex!=null&&a.focusedRowIndex>=0&&a.focusedRowIndex<a.searchResults.issues.length},OTd=function(a,b){return b?a.searchResults?a.searchResults.issues.findIndex(function(c){return c.id===b}):-1:-1},PTd=function(a){if(a.searchResults){for(var b=new Set,c=m(a.searchResults.issues),d=c.next();!d.done;d=c.next())d=String(d.value.teamId),d!=="0"&&b.add(d);b.size>0?(a.isLoadingTeams=!0,wjd(a.teamsService,[].concat(q(b))).pipe(zf(a.destroyed$)).subscribe(function(e){if(a.searchResults)for(var f=
m(a.searchResults.issues),g=f.next();!g.done;g=f.next()){g=g.value;var k=String(g.teamId);k!=="0"&&(k=e.get(k))&&(g.team=k.name)}a.isLoadingTeams=!1;a.cdr.detectChanges()})):a.isLoadingTeams=!1}};D4.prototype.isIssueGridColumn=function(){return!0};D4.prototype.getComponentPath=function(a){return om(a)?a.join(" > "):(a=ju(this.trackerHelpers,a))&&a.componentPathName?a.componentPathName.join(" > "):""};
var KUb=function(a,b){return a.appSearchState.queryState$.pipe(A(function(c){return c.query}),yf(function(c){return c?akd(a.playbookService,b.issueId,c):ce(void 0)}))};D4.\u0275fac=function(a){return new (a||D4)};
D4.\u0275cmp=D({type:D4,selectors:[["b-issues-grid"]],viewQuery:function(a,b){a&1&&(hg(d4,7),hg(NTd,5));if(a&2){var c;lg(c=mg())&&(b.grid=c.first);lg(c=mg())&&(b.sideNavContainer=c.first)}},inputs:{searchResults:"searchResults",focusedRowIndex:"focusedRowIndex",columns:"columns",enableColumnSaving:"enableColumnSaving",sort:"sort",enableSidebar:"enableSidebar"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",columnsChange:"columnsChange",sortChange:"sortChange",rowClick:"rowClick",init:"init",
onRowDragDrop:"onRowDragDrop",onNextPage:"onNextPage",onPrevPage:"onPrevPage"},standalone:!1,features:[Gg([bQ]),jx],decls:7,vars:1,consts:[["issuesGrid",""],["issueWithHovercard",""],["issueSidenavContainer",""],["issueHovercard","onedevHovercard"],["cardBody",""],["hasBackdrop","false",3,"sidebar-enabled"],["hasBackdrop","false"],["mode","side","position","end",3,"openedChange","opened","disableClose"],[3,"issueId"],[4,"ngTemplateOutlet"],[3,"closeSidebar","navigateToNextIssue","navigateToPreviousIssue",
"issueId"],[1,"keep-focus-ring",3,"columnsChange","focusedRowIndexChange","hoveredRowIndex","sortChange","rowClick","list","columns","focusedRowIndex","scrollContainer","sort","rowLabelRenderer"],["class","focus-indicator",4,"forHeaderCell"],["class","drag-handle",4,"forHeaderCell"],["class","selected-box",4,"forHeaderCell"],[4,"forHeaderCell"],[4,"forHeaderCellDefault"],["class","focus-indicator",4,"forViewCell"],["class","drag-handle","draggable","true",4,"forViewCell"],["class","selected-box",
4,"forViewCell"],["class","star-cell",4,"forViewCell"],[4,"forViewCell"],["data-template","issueId","class","clickable issue-id-cell",4,"forViewCell"],["class","clickable title-cell",3,"bv2-grid-cell-variable-height","bv2-grid-cell-recommendation",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,"bv2-grid-cell-variable-height","rtl-component-path",4,"forViewCell"],["class","clickable first-letter-capitalized",4,"forViewCell"],[1,"focus-indicator"],[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"],["tabindex","0","aria-label","Select all issues","role","checkbox",
1,"keep-focus-ring","b-select-all-toggle",3,"click","keydown.enter","keydown.space","state"],[3,"column"],[3,"column","availableColumns","selectedColumns"],[3,"selectedColumnsChange","column","availableColumns","selectedColumns"],["draggable","true",1,"drag-handle"],["tabindex","-1","role","checkbox",3,"state"],["tabindex","-1","role","checkbox",3,"click","state"],[1,"star-cell"],["tabindex","-1",3,"starred","disabled","starMessage","unStarMessage"],["tabindex","-1",3,"starClicked","starred","disabled",
"starMessage","unStarMessage"],["data-template","issueId",1,"clickable","issue-id-cell"],[1,"row-issue-id",3,"issueId","showCopyOptions"],["tabindex","-1",1,"row-issue-id",3,"href"],[1,"row-issue-id",3,"click","issueId","showCopyOptions"],[1,"clickable","title-cell"],[1,"bv2-grid-cell-container",3,"bv2-grid-cell-flex-wrap","no-padding","align-items-center"],[1,"bv2-grid-cell-container"],[3,"issueId","compactMode"],[3,"trackerId","compactMode"],[3,"retentionState","showOnlyInDangerZone","compactMode",
"modifiedTime"],[1,"bv2-grid-cell-text"],[1,"row-issue-title",3,"href"],["svgIcon","input_24px",1,"navigate-to-idp","icon-s"],[1,"bv2-hotlist-chips"],[1,"flex-kids-x","align-items-center","right-aligned-container"],[3,"id","removable"],[3,"isParentRowActive"],[3,"recommendation","isParentRowActive"],[3,"onClick","recommendation","isParentRowActive"],[3,"onClick","isParentRowActive"],[1,"priority-cell","clickable"],[1,"bv2-priority",3,"low","high","p0"],[1,"bv2-priority"],[1,"severity-cell","clickable"],
["data-stable-cell","status",1,"clickable"],[3,"title"],[1,"icon-s",3,"svgIcon"],[3,"class"],["data-stable-cell","type",1,"clickable"],[1,"clickable"],[3,"email"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"clickable","datetime-cell"],["mode","datetime",3,"timestamp"],[1,"componentPath-cell","clickable"],[1,"clickable","first-letter-capitalized"],[3,"sloId","sloStatus","sloStartTime"],[3,"sloStatus","sloStartTime"],[3,"sloId","sloStatus","sloStartTime","onlyShowMetric"],[3,"sloBounds"],["mode",
"date",3,"timestamp"],[1,"animated-loading-bar"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId"]],template:function(a,b){a&1&&(K(0,"div"),F(1,bUb,6,6,"mat-sidenav-container",5)(2,dUb,1,1,"ng-container"),L(),E(3,WWb,55,62,"ng-template",null,0,Mg)(5,YWb,5,2,"ng-template",null,1,Mg));a&2&&(B(),G(b.isIssueSidebarEnabled?1:2))},dependencies:[YSd,
Sx,Jy,gA,xM,yM,wM,d4,f4,MSd,NSd,OSd,a4,c4,rV,i4,gT,NZ,C4,ZV,CY,KK,LK,SK,MK,MW,z4,CV,tW,KW,g4,KU,h4,Tx,psd,bV,ssd,dV],styles:["mat-sidenav-container.sidebar-enabled[_ngcontent-%COMP%]{height:calc(100vh - 100px)}[_nghost-%COMP%]     .title-cell b-hotlist-chip{margin-bottom:1px}[_nghost-%COMP%]   div.bv2-grid-cell-container.no-padding[_ngcontent-%COMP%]{padding:0}b-sidebar-toggle[_ngcontent-%COMP%]{margin-left:auto}.right-aligned-container[_ngcontent-%COMP%]{margin-left:auto;flex-grow:0}/*# sourceMappingURL=issues_grid.css.map */"],
changeDetection:0});var YTd=new Wt({name:"focused",sortable:!1,draggable:!1,isMetadata:!0}),ZTd=new Wt({name:"draghandle",sortable:!1,draggable:!1,isMetadata:!0}),$Td=new Wt({name:"selected",sortable:!1,draggable:!1,isMetadata:!0}),aUd=new Wt({name:"starred",sortable:!1,draggable:!1,isMetadata:!0}),bUd=new Wt({name:"position",sortable:!0,draggable:!1,fullLabel:"Position",label:"POS",isMetadata:!0});var E4=function(){Z.apply(this,arguments);var a=this;this.snackBar=p(rB);this.issuePicker=p(UX);this.issueApi=p(MP);this.issueAddedToHotlist=new aQ;this.onCloseIssuePicker=function(b){b=b===void 0?[]:b;if(b.length!==0&&a.id!=null){var c=b.join(", ");a.snackBar.open(b.length===1?"Adding issue "+c+" to this hotlist":"Adding multiple issues to this hotlist: "+c,void 0,{duration:2500});cUd(a,a.id,b)}};this.handleSuccessCall=function(b){b.errors&&b.errors.length?(b="Failed to add issue(s) to hotlist. "+
AUa(b.errors),a.snackBar.open(b,void 0,{duration:2500,panelClass:"error"})):(a.issueAddedToHotlist.emit(),a.snackBar.open("Successfully added to hotlist",void 0,{duration:2500}))};this.gotErr=function(b){var c,d,e,f,g=(f=(e=b==null?void 0:(c=b.error)==null?void 0:c.message)!=null?e:b==null?void 0:(d=b.data)==null?void 0:d.message)!=null?f:"Error adding issues to the hotlist";a.snackBar.open(g,"close",{panelClass:"error"})}};Y(E4,Z);E4.\u0275dir=Z.\u0275dir;
var cUd=function(a,b,c){a.issueApi.issueBulkEdit({bulkEditOps:[{actions:[{fieldName:"hotlists",value:b,actionType:"ADD"}],issueIds:c}]}).then(function(d){a.handleSuccessCall(d)},a.gotErr)};E4.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(E4)))(b||E4)}}();
E4.\u0275cmp=D({type:E4,selectors:[["hotlist-add-issue-btn"]],inputs:{id:[0,"hotlistId","id"]},outputs:{issueAddedToHotlist:"issueAddedToHotlist"},standalone:!1,features:[Ef],decls:2,vars:0,consts:[["type","button","mat-button","","matTooltip","Add issues to this hotlist",1,"medium",3,"click"]],template:function(a,b){a&1&&(K(0,"button",0),N("click",function(){b.issuePicker.open({title:"Add Issues to this Hotlist",allowMultipleIds:!0},b.onCloseIssuePicker)}),Q(1," Add Issue(s) "),L())},dependencies:[kB,
gB,vK,nA],encapsulation:2});var F4=function(){Z.call(this);var a=this;this.fridge=p(lP);this.snackBar=p(rB);this.dialog=p(dS);this.events=p(UO);this.id$=new uf(1);this.hotlist$=this.id$.pipe(yf(function(b){return a.fridge.watch(b)}),vf({refCount:!0,bufferSize:1}));this.archived$=this.hotlist$.pipe(A(function(b){return!(b==null||!b.archived)}),nf());this.archiveActionLabel$=this.archived$.pipe(A(function(b){return b?"Unarchive":"Archive"}));this.archiveActionTooltip$=this.archived$.pipe(A(function(b){return b?"Unarchive this hotlist":
"Archive this hotlist, hiding it from most searches"}));this.didSave=function(b){return function(){a.snackBar.open(b?"Hotlist was archived":"Hotlist was unarchived",void 0,{duration:2500});a.events.hotlistChanged.next()}};this.gotErr=function(b){return function(c){var d=b?"archiving":"unarchiving";a.snackBar.open(Qp(c)||"Error "+d+" the hotlist","close",{panelClass:"error"})}};this.hotlist$.pipe(zf(this.destroyed$)).subscribe(function(b){a.latestHotlist=b})};Y(F4,Z);F4.\u0275dir=Z.\u0275dir;
F4.prototype.isThinking=function(a){return this.fridge.isThinking(a)};F4.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};
var eUd=function(a){if(a.latestHotlist!=null){var b=!a.latestHotlist.archived;b?a.dialog.open({title:"Archive Hotlist",content:Bh("Do you want to archive this hotlist?"),isDestructive:!0,onConfirm:function(){dUd(a,b)}}):dUd(a,b)}},dUd=function(a,b){a.fridge.save(Object.assign({},a.latestHotlist,{archived:b})).subscribe({next:a.didSave(b),error:a.gotErr(b)})};F4.\u0275fac=function(a){return new (a||F4)};
F4.\u0275cmp=D({type:F4,selectors:[["hotlist-archive-btn"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Ef,jx],decls:4,vars:7,consts:[["type","button","mat-button","",1,"medium",3,"click","disabled","matTooltip"]],template:function(a,b){a&1&&(K(0,"button",0),T(1,"async"),N("click",function(){return eUd(b)}),Q(2),T(3,"async"),L());if(a&2){var c;I("disabled",b.isThinking(b.hotlistId))("matTooltip",(c=U(1,3,b.archiveActionTooltip$))!=null?c:"");B(2);S(" ",U(3,5,b.archiveActionLabel$)," ")}},
dependencies:[kB,gB,vK,nA,Tx],encapsulation:2});var G4=function(){D3.apply(this,arguments);this.estadoService=p(Z3);this.refreshMonitor=p(VP);this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");this.init=new aQ;this.onRefresh=new aQ;this.isHotlistAdmin=!1;this.onExportCsv=new aQ;this.showHotlistButtons=!1;this.isNonPublicSession=this.activeSession.isNonPublicSession();var a=this.estadoService;this.enableEstadoInAppBar=a.enableEstado&&!rs(a.activeSession);this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha();this.controllerName=
"gridControls"};Y(G4,D3);G4.\u0275dir=D3.\u0275dir;G4.prototype.ngOnInit=function(){this.init.emit(this)};G4.prototype.ngOnChanges=function(a){var b=this;a.grid&&this.grid&&VTd(this.grid,function(){b.onSelectionChange()})};G4.prototype.getSelectedIssues=function(){var a,b;return(b=(a=this.grid)==null?void 0:a.getSelectedIssues())!=null?b:[]};var $Wb=function(a){var b,c;return(c=(b=a.grid)==null?void 0:b.getAllIssues().map(function(d){return d.issueId}))!=null?c:[]};
G4.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next();this.onRefresh.emit()};G4.prototype.openInEstado=function(){this.estadoService.openInEstado()};var fUd=function(a){return a.hasSelectedIssues()&&a.isNonPublicSession};G4.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(G4)))(b||G4)}}();
G4.\u0275cmp=D({type:G4,selectors:[["b-grid-controls"]],inputs:{grid:"grid",isHotlistAdmin:"isHotlistAdmin",currentHotlistId:"currentHotlistId",showHotlistButtons:"showHotlistButtons"},outputs:{init:"init",onRefresh:"onRefresh",onExportCsv:"onExportCsv"},standalone:!1,features:[Gg([bQ]),Ef,jx],decls:12,vars:9,consts:[["addCommentDialog",""],["size","large","format","icon","tooltip","Refresh","bAriaLabel","Refresh",1,"refresh-button",3,"onAction"],["name","refresh","size","large"],[3,"enableBulkEstimatedEffortOption",
"readStatePrompt"],[3,"issueIds"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks"],[1,"bv2-grid-hotlist-picker"],["tooltip","Reporting","aria-label","Reporting",1,"compact",3,"size","format"],[1,"bv2-appbar-menu",3,"exportCsvClicked","flagAsSpamClicked","showExportCsv","showFlagIssuesAsSpam"],[3,"save","close","externalWarnings"],[3,"onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead","enableBulkEstimatedEffortOption","readStatePrompt"],[3,"onClickCopyIssueIds","onClickCopyIssueShortLinks",
"onClickCopyAsIssueSearch","shortLinkPrefix","shouldShowCopyIssueShortLinks"],[3,"onApply","onCreate","onLoad","selectedHotlistIds","choices"],[3,"hotlistId"],[3,"issueAddedToHotlist","hotlistId"],["tooltip","Reporting","aria-label","Reporting",1,"compact",3,"onAction","size","format"],["name","bar-chart","size","large"],[1,"bv2-estado-text"],["mat-dialog-title",""],[3,"comment","showToolbar","isLiteralModeSupported"],[3,"externalWarnings"],[1,"flex-kids-x","justify-flex-end"],["type","button","mat-button",
"",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"medium","primary",3,"disabled","mat-dialog-close"],[3,"commentChange","onSubmit","comment","showToolbar","isLiteralModeSupported"],[3,"onUpdate"]],template:function(a,b){if(a&1){var c=t();K(0,"b-button",1);N("onAction",function(){u(c);return v(b.refresh())});M(1,"b-icon",2);L();F(2,ZWb,2,4,"b-app-bar-bulk-edit-menus",3);F(3,aXb,1,1,"playbook-controls",4);F(4,bXb,1,2,"b-copy-issue-id-button",5);F(5,cXb,
2,2,"div",6);F(6,fXb,2,2);F(7,hXb,3,3,"b-button",7);K(8,"b-app-bar-more-menu",8);N("exportCsvClicked",function(){u(c);return v(b.onExportCsv.emit())})("flagAsSpamClicked",function(){u(c);return v(qRd(b))});L();K(9,"b-state-modal",9);N("save",function(){u(c);return v(oRd(b))})("close",function(){u(c);return v(b.hotkeys.unpause())});L();E(10,kXb,11,6,"ng-template",null,0,Mg)}a&2&&(B(2),G(b.hasSelectedIssues()?2:-1),B(),G(b.isPlaybookEnabled?3:-1),B(),G(b.hasSelectedIssues()?4:-1),B(),G(b.enableBulkEditUi&&
b.hasSelectedIssues()?5:-1),B(),G(b.showHotlistButtons&&!b.hasSelectedIssues()?6:-1),B(),G(b.enableEstadoInAppBar?7:-1),B(),I("showExportCsv",b.isNonPublicSession||Scd(b.activeSession))("showFlagIssuesAsSpam",fUd(b)),B(),I("externalWarnings",b.externalWarnings))},dependencies:[RNd,c2,MU,s0,$Pd,F4,E4,y3,sT,kB,gB,VA,XA,ZA,YA,B3,qY,z3,dU,Tx],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var gUd=function(a){return{displayText:"Admins",values:a}},hUd=function(a){return[a]},iUd=function(a){return{displayText:"Appenders",values:a}},jUd=Bh("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?"),H4=function(){var a=p(rY);Z.call(this);var b=this;this.hotlistAccessPolicyFridge=p(QP);this.links=p(cS);this.snackBar=
p(rB);this.events=p(UO);this.dialog=p(dS);this.permissions=p(CQ);this.userApi=p(kP);this.activeSession=p(uu);this.hotlistId$=new uf(1);this.acl$=this.hotlistId$.pipe(yf(function(c){return b.hotlistAccessPolicyFridge.watch(c)}));this.latestCompactPolicy={};this.admins=[];this.appenders=[];this.readers=[];this.accessControlLink=imd(this.links);this.validity={};this.isValid=function(){return Object.values(b.validity).every(Boolean)};this.isInvalid=function(){return!b.isValid()};this.allAppenders=[];
this.onPressSave=function(){b.isRevokingAdmin()?b.dialog.open({title:"Change Hotlist Admins",content:jUd,isDestructive:!0,onConfirm:b.doSave}):b.doSave()};this.doSave=function(){if(b.hotlistId!=null){var c=b.isRevokingAdmin(),d={id:b.hotlistId,admins:is(b.admins),appenders:is(b.appenders),editors:null,readers:is(b.readers),implicitAccess:null,restrictedReaders:null,restrictedPlusReaders:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null};b.hotlistAccessPolicyFridge.save(d).subscribe({next:b.didSave(c,
d.id),error:b.gotErr})}};this.didSave=function(c,d){return function(){b.snackBar.open("Access control saved",void 0,{duration:2500});b.events.hotlistChanged.next();b.permissions.poke(d);c&&b.doStar()}};this.gotErr=function(c){b.snackBar.open(Qp(c)||"Error saving the hotlist access policy","close",{panelClass:"error"})};this.doStar=function(){b.hotlistId&&b.userApi.addUserBookmark({resourceType:"HOTLIST",resourceId:b.hotlistId}).then(function(){b.events.hotlistChanged.next()})};this.onPressRevert=
function(){b.resetEdits()};this.isChanged=function(){var c=b.latestCompactPolicy,d;if(!mm((d=c.admins)!=null?d:[],b.admins))return!0;var e;if(!mm((e=c.appenders)!=null?e:[],b.appenders))return!0;var f;return mm((f=c.readers)!=null?f:[],b.readers)?!1:!0};this.hasNoChanges=function(){return!b.isChanged()};this.acl$.pipe(zf(this.destroyed$)).subscribe(function(c){b.latestPolicy=c;var d,e,f;b.latestCompactPolicy={admins:hs((d=b.latestPolicy)==null?void 0:d.admins),appenders:hs((e=b.latestPolicy)==null?
void 0:e.appenders),readers:hs((f=b.latestPolicy)==null?void 0:f.readers)};b.resetEdits()});this.subscriptions.add(sY(a,this.isChanged,!1))};Y(H4,Z);H4.\u0275dir=Z.\u0275dir;var kUd=function(a){return[].concat(q(new Set([].concat(q(a.admins),q(a.appenders)))))};H4.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.hotlistId$.next(a)};
H4.prototype.resetEdits=function(){var a;this.admins=[].concat(q((a=this.latestCompactPolicy.admins)!=null?a:[]));var b;this.appenders=[].concat(q((b=this.latestCompactPolicy.appenders)!=null?b:[]));var c;this.readers=[].concat(q((c=this.latestCompactPolicy.readers)!=null?c:[]));this.allAppenders=kUd(this)};H4.prototype.isRevokingAdmin=function(){var a=this.admins,b,c=(b=this.latestCompactPolicy.admins)!=null?b:[];return this.isRevokingDirectAdmin(a,c,this.activeSession.getUserEmail())};
H4.prototype.isRevokingDirectAdmin=function(a,b,c){c=c===void 0?"":c;if(WZa(a,b))return!1;c="USER:"+c;b=b.includes(c);a=!a.includes(c);return b&&a};H4.\u0275fac=function(a){return new (a||H4)};
H4.\u0275cmp=D({type:H4,selectors:[["b-edit-hotlist-acl"]],inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},standalone:!1,features:[Ef,jx],decls:22,vars:24,consts:[[1,"flex-kids-y"],[1,"muted","type-s","margin-s-bottom"],[3,"usersChange","isValid","users"],[3,"usersChange","isValid","users","includeAliases","containerChips"],[3,"usersChange","isValid","users","includeAliases","includeViewAliases","containerChips"],["target","_blank",3,"href"],[1,"margin-top","flex-kids-x","gap-s"],["mat-flat-button",
"","color","primary","type","submit",1,"medium",3,"click","disabled","matTooltip"],["mat-button","","type","button",1,"medium",3,"click","disabled","matTooltip"]],template:function(a,b){a&1&&(K(0,"form",0)(1,"label"),Q(2,"Admins"),L(),K(3,"p",1),Q(4,"Edit access controls, edit name and description, reorder hotlist, add/remove issues"),L(),K(5,"b-multi-user-input",2),N("usersChange",function(c){b.admins=c;b.allAppenders=kUd(b)})("isValid",function(c){return b.validity.admins=c}),L(),K(6,"label"),Q(7,
"View and append"),L(),K(8,"p",1),Q(9,"Reorder hotlist, add/remove issues"),L(),K(10,"b-multi-user-input",3),N("usersChange",function(c){b.appenders=c;b.allAppenders=kUd(b)})("isValid",function(c){return b.validity.appenders=c}),L(),K(11,"label"),Q(12,"View only"),L(),K(13,"p",1),Q(14,"View the hotlist"),L(),K(15,"b-multi-user-input",4),N("usersChange",function(c){b.readers=c})("isValid",function(c){return b.validity.readers=c}),L()(),K(16,"p"),Q(17," Users can see which issues are in a hotlist, even when they don't have view access to the hotlist. See "),
K(18,"a",5),Q(19,"access control documentation"),L(),Q(20," for an explanation of the settings.\n"),L(),F(21,lXb,5,4,"div",6));a&2&&(B(5),wg("disabled",b.isReadOnly),I("users",b.admins),B(5),wg("disabled",b.isReadOnly),I("users",b.appenders)("includeAliases",!0)("containerChips",Ig(18,hUd,Ig(16,gUd,b.admins))),B(5),wg("disabled",b.isReadOnly),I("users",b.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Ig(22,hUd,Ig(20,iUd,b.allAppenders))),B(3),I("href",b.accessControlLink,
Ne),B(3),G(b.isReadOnly?-1:21))},dependencies:[nE,gE,kE,kB,gB,vK,nA,HW],styles:["[_nghost-%COMP%] {\n      display: block;\n      max-width: 600px;\n      padding: 16px; \n\n    }\n    label[_ngcontent-%COMP%] {\n      font-weight: bold;\n      line-height: 2em;\n    }"]});var lUd=["hotlistName"],I4=function(){Z.call(this);var a=this;this.fridge=p(lP);this.snackBar=p(rB);this.events=p(UO);this.checkBeforeExit=p(rY);this.isReadOnly=!1;this.id$=new uf(1);this.hotlist$=this.id$.pipe(yf(function(b){return a.fridge.watch(b)}));this.isArchived=!1;this.localEdits={};this.gotHotlist=function(b){a.latestHotlist=b;var c;a.isArchived=(c=b==null?void 0:b.archived)!=null?c:!1;a.resetEdits(b)};this.gotErr=function(b){a.snackBar.open(Qp(b)||"Error saving the hotlist","close",{panelClass:"error"})};
this.didSave=function(){a.snackBar.open("Hotlist saved",void 0,{duration:2500});a.events.hotlistChanged.next()};this.isChanged=function(){var b,c=(b=a.latestHotlist)!=null?b:{};return!mm(c,a.localEdits)};this.hasNoChanges=function(){return!a.isChanged()};this.save=function(){a.fridge.save(a.localEdits).subscribe({next:a.didSave,error:a.gotErr})};this.revert=function(){a.resetEdits(a.latestHotlist)};this.hotlist$.pipe(zf(this.destroyed$)).subscribe(function(b){a.gotHotlist(b)});this.subscriptions.add(sY(this.checkBeforeExit,
this.isChanged,!1))};Y(I4,Z);I4.\u0275dir=Z.\u0275dir;I4.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b;(b=a.hotlistName)==null||b.nativeElement.focus()})};I4.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};I4.prototype.resetEdits=function(a){var b;this.localEdits=(b=nm(a))!=null?b:{}};I4.\u0275fac=function(a){return new (a||I4)};
I4.\u0275cmp=D({type:I4,selectors:[["b-edit-hotlist-basic"]],viewQuery:function(a,b){a&1&&hg(lUd,5);if(a&2){var c;lg(c=mg())&&(b.hotlistName=c.first)}},inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},standalone:!1,features:[Ef,jx],decls:10,vars:5,consts:[["hotlistName",""],["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,"ngModelChange","disabled","ngModel"],["for",
"hotlist-description",1,"margin-top"],["id","hotlist-description","name","description",3,"ngModelChange","disabled","ngModel"],[1,"margin-top","flex-kids-x","gap-s"],["mat-flat-button","","color","primary","type","submit",1,"medium",3,"click","disabled","matTooltip"],["mat-button","","type","button",1,"medium",3,"click","disabled","matTooltip"],[3,"hotlistId"]],template:function(a,b){if(a&1){var c=t();K(0,"form",1)(1,"label",2);Q(2,"Name");L();K(3,"input",3,0);Cg("ngModelChange",function(d){u(c);
Bg(b.localEdits.name,d)||(b.localEdits.name=d);return v(d)});L();K(5,"label",4);Q(6,"Description");L();K(7,"textarea",5);Cg("ngModelChange",function(d){u(c);Bg(b.localEdits.description,d)||(b.localEdits.description=d);return v(d)});Q(8,"  ");L();F(9,mXb,7,7,"div",6);L()}a&2&&(B(3),I("disabled",b.isReadOnly||b.isArchived),Ag("ngModel",b.localEdits.name),B(4),I("disabled",b.isReadOnly||b.isArchived),Ag("ngModel",b.localEdits.description),B(2),G(b.isReadOnly?-1:9))},dependencies:[nE,xj,fE,gE,yE,mE,kE,
kB,gB,vK,nA,F4,Tx],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-mdc-input-element){border:1px solid;border-color:#ea4335;border-color:var(--bad)}/*# sourceMappingURL=edit_hotlist_basic.css.map */"]});var J4=function(){Z.apply(this,arguments);var a=this;this.hotlists=p(lP);this.acls=p(QP);this.id$=new uf(1);this.hotlist$=this.id$.pipe(yf(function(b){return a.hotlists.watch(b)}))};Y(J4,Z);J4.\u0275dir=Z.\u0275dir;J4.prototype.isThinking=function(a){var b=a?"hotlists/"+a:void 0;return this.hotlists.isThinking(a)||this.acls.isThinking(b)};J4.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};
J4.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(J4)))(b||J4)}}();
J4.\u0275cmp=D({type:J4,selectors:[["b-edit-hotlist-header"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Ef,jx],decls:9,vars:8,consts:[[1,"flex-kids-x","align-items-center","gap-s","padded-x"],[1,"muted"],[1,"color-bad-text"]],template:function(a,b){a&1&&(K(0,"header",0)(1,"h2")(2,"span",1),Q(3),L(),F(4,nXb,1,1),T(5,"async"),L(),F(6,oXb,2,0,"strong",2),T(7,"async"),F(8,pXb,1,0,"b-spinner"),L());if(a&2){var c,d;B(3);S(" Hotlist ",b.hotlistId,": ");B();G((c=U(5,4,b.hotlist$))?4:-1,c);B(2);
G(((d=U(7,6,b.hotlist$))==null?0:d.archived)?6:-1);B(2);G(b.isThinking(b.hotlistId)?8:-1)}},dependencies:[cU,Tx],styles:["[_nghost-%COMP%] {\n      display: block;\n    }"]});var K4=function(){Z.apply(this,arguments);this.activeSession=p(uu);this.ROUTES=qs;this.id$=new uf(1);this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha()};Y(K4,Z);K4.\u0275dir=Z.\u0275dir;K4.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};K4.prototype.onPressBack=function(){var a;(a=window.history)==null||a.back()};K4.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(K4)))(b||K4)}}();
K4.\u0275cmp=D({type:K4,selectors:[["b-edit-hotlist-toolbar"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Ef,jx],decls:6,vars:2,consts:[[1,"button-bar","border-bottom","padded-s"],["format","icon","size","large","tooltip","Go back","bAriaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],["mat-button","","matTooltip","View the issues tagged with this hotlist",1,"medium","no-visited-no-active",3,"href"],[3,"hotlistId"]],template:function(a,b){a&1&&(K(0,"section",0)(1,
"b-button",1),N("onAction",function(){return b.onPressBack()}),M(2,"b-icon",2),L(),K(3,"a",3),Q(4," View Issues "),L(),F(5,qXb,2,3,"hotlist-add-issue-btn",4),L());a&2&&(B(3),I("href",b.ROUTES.viewHotlist.makeHref(b.hotlistId),Ne),B(2),G(b.enableBulkEditUi?5:-1))},dependencies:[kB,gB,vK,nA,MU,sT,E4,Tx],styles:[".button-bar[_ngcontent-%COMP%] {\n      display: flex;\n      align-items: center;\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var mUd=new Map([[403,"You do not have permission to view this Hotlist."],[404,"This Hotlist does not exist."]]),nUd=function(){this.routeParams=p(wS);this.pageTitle=p(n2);this.permissions=p(CQ);this.hotlists=p(lP);this.window=p(lR);this.id=this.routeParams.hotlistId;this.resourceId="hotlists/"+this.id;this.isAdmin$=this.permissions.watch(this.resourceId).pipe(A(function(a){return a==null?void 0:a.admin}));this.hotlistErrorMsg$=this.hotlists.error$.pipe(A(function(a){var b;return(b=a.status)!=null?
b:-1}),A(function(a){var b;return(b=mUd.get(a))!=null?b:"unknown error"}),xf(void 0));this.tabIndex=0};nUd.prototype.ngOnInit=function(){this.pageTitle.setTitle("Edit Hotlist "+this.id);this.window.location.hash.includes("access")&&(this.tabIndex=1)};nUd.\u0275fac=function(a){return new (a||nUd)};
nUd.\u0275cmp=D({type:nUd,selectors:[["edit-hotlist"]],standalone:!1,decls:4,vars:6,consts:[[3,"hotlistId"],[1,"bv2-view"],["gmat-tabs","",3,"selectedIndex"],["label","Basic Information"],[3,"hotlistId","isReadOnly"],["label","Access Control"],[1,"muted","padded-x"],[1,"padded-x"]],template:function(a,b){a&1&&(F(0,sXb,12,14),T(1,"async"),F(2,tXb,6,1),T(3,"async"));if(a&2){var c;G(U(1,2,b.hotlistErrorMsg$)===void 0?0:-1);B(2);G((c=U(3,4,b.hotlistErrorMsg$))?2:-1,c)}},dependencies:[BL,wL,xL,Urd,H4,
I4,J4,K4,Tx],encapsulation:2});var L4=function(){};L4.\u0275fac=function(a){return new (a||L4)};L4.\u0275cmp=D({type:L4,selectors:[["b-error-banner"]],inputs:{error:"error"},standalone:!1,decls:1,vars:1,consts:[["messageType","error"]],template:function(a,b){a&1&&F(0,uXb,3,1,"b-callout",0);a&2&&G(b.error?0:-1)},dependencies:[DU,EU],encapsulation:2});var M4=function(){};M4.\u0275fac=function(a){return new (a||M4)};M4.\u0275mod=$e({type:M4});M4.\u0275inj=Fc({imports:[WO,FU]});var N4=function(){};N4.\u0275fac=function(a){return new (a||N4)};N4.\u0275mod=$e({type:N4});N4.\u0275inj=Fc({imports:[WO,DE,mB,wK,NU,BU,DL,GU,eU,M4,uX,xU]});var O4=function(){};O4.\u0275fac=function(a){return new (a||O4)};O4.\u0275mod=$e({type:O4});O4.\u0275inj=Fc({imports:[e2,NU,w0,WO,fX,i3,N4,F3,GU,mB,TJ,wK,eU,G3,A0,A3,yrd]});var P4=function(){Z.call(this);this.element=p(Hd);this.bLocation=p(bU);this.hotkeys=p(nU);this.cdr=p(bQ,{self:!0});this.focusedIndex=0;this.convertUserToString=wm;this.hotlists=[];this.registerKeys()};Y(P4,Z);P4.\u0275dir=Z.\u0275dir;h=P4.prototype;h.setFocusOnIndex=function(a){this.focusedIndex=a};h.isFocused=function(a){return this.focusedIndex===a};h.selectNext=function(){this.focusedIndex+1>=this.hotlists.length||(this.focusedIndex++,this.scrollToFocusedIndex())};
h.selectPrevious=function(){this.focusedIndex-1<0||(this.focusedIndex--,this.scrollToFocusedIndex())};
h.registerKeys=function(){var a=this,b=oU(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)};h.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=(b=this.element.nativeElement.querySelector("table"))==null?void 0:(c=b.rows)==null?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)}}};h.renderRowLabel=function(a){return this.hotlists[a].name};h.editHotlist=function(a){this.bLocation.path(qs.editHotlist.makeHref(a.hotlistId))};
P4.\u0275fac=function(a){return new (a||P4)};
P4.\u0275cmp=D({type:P4,selectors:[["b-hotlist-grid"]],inputs:{hotlists:"hotlists"},standalone:!1,features:[Gg([bQ]),Ef],decls:27,vars:0,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"],["tabindex","0",1,"bv2-resource-list-row",3,"grid-focus"],["tabindex","0",1,"bv2-resource-list-row",3,"click","focus"],[1,"bv2-resource-list-cell","hotlist-name","clickable"],["tabindex","-1",1,
"grid-link",3,"click","href"],[1,"bv2-resource-list-cell","hotlist-description","clickable"],[1,"bv2-resource-list-cell","resource-admins","clickable"],[1,"bv2-resource-list-cell","hotlist-id","clickable"]],template:function(a,b){a&1&&(K(0,"table",0)(1,"thead")(2,"tr",1),M(3,"th",2),K(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),Q(8," Hotlist name "),L()()()(),K(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),Q(13," Description "),L()()()(),K(14,"th")(15,"div",3)(16,"div",4)(17,"div",5),Q(18," Admins "),
L()()()(),K(19,"th")(20,"div",3)(21,"div",4)(22,"div",5),Q(23," ID "),L()()()()()(),K(24,"tbody"),Nf(25,xXb,12,8,"tr",6,Mf),L()());a&2&&(B(25),Of(b.hotlists))},encapsulation:2});var Q4=function(){};Q4.\u0275fac=function(a){return new (a||Q4)};Q4.\u0275mod=$e({type:Q4});Q4.\u0275inj=Fc({imports:[WO]});var R4=function(){this.bLocation=p(bU);this.butterBar=p(UN)},oUd=function(a,b){var c=a.bLocation.search()[b];return c!=null?Array.isArray(c)?(a.butterBar.showWarning("Given multiple values for parameter "+b+"; using the first."),c[0]):typeof c==="boolean"?"":c:null};R4.prototype.getCount=function(){var a=oUd(this,"c");return a?rm(a):null};var pUd=function(a){return(a=oUd(a,"p"))?rm(a):null};R4.prototype.getQuery=function(){return oUd(this,"q")};
R4.prototype.getDisplayColumns=function(){var a=this.bLocation.search().d;return a?(Array.isArray(a)?a:[a]).map(Mt).filter(Pm):null};R4.prototype.getSortColumns=function(){var a=this.bLocation.search().s;return a?(Array.isArray(a)?a:[a]).map(yIb).filter(Pm):null};
var S4=function(a,b,c){c=c===void 0?!1:c;var d=function(e,f){c?a.bLocation.search(e,f,!0):a.bLocation.search(e,f)};b.displayColumns!==void 0&&d("d",b.displayColumns==null?null:(b.displayColumns||[]).map(function(e){return qUd(e)}));b.sortColumns!==void 0&&d("s",b.sortColumns==null?null:(b.sortColumns||[]).map(function(e){var f=e.direction=="ASCENDING"?"asc":"desc";return qUd(e.fieldId)+":"+f}));b.page!==void 0&&d("p",b.page);b.resultsPerPage!==void 0&&d("c",b.resultsPerPage);b.query!==void 0&&d("q",
b.query)},qUd=function(a){return a.isCustomField()?String(a.customFieldId):a.type.toLowerCase()};R4.\u0275fac=function(a){return new (a||R4)};R4.\u0275prov=Dc({token:R4,factory:R4.\u0275fac,providedIn:"root"});var T4=function(){this.urlPreferences=p(R4);this.userPreferencesManager=p(hR);this.customFieldFridge=p(vP)};T4.prototype.fetch=function(a,b){a=this.getParameters(a,b===void 0?null:b);return{searchPreferences:ns({page:a.page,query:a.query,resultsPerPage:a.resultsPerPage,sortColumns:a.sortColumns}),displayColumns:a.displayColumns}};
T4.prototype.getParameters=function(a,b){var c=this,d=b?function(){return rUd(b)}:function(){return sUd(c)},e=b?function(){return tUd(b)}:function(){return uUd(c)};d=Promise.resolve(this.urlPreferences.getDisplayColumns()).then(function(k){return U4(k)}).then(null,d).then(function(k){return U4(k)}).then(null,vHc(a.displayColumns)).then(function(k){return vUd(c,k)});e=Promise.resolve(this.urlPreferences.getSortColumns()).then(function(k){return U4(k)}).then(null,e).then(function(k){return U4(k)}).then(null,
vHc(a.sortColumns));var f=Promise.resolve(this.urlPreferences.getCount()).then(function(k){return U4(k)}).then(null,function(){return wUd(c)}).then(function(k){return U4(k)}).then(null,vHc(a.resultsPerPage)),g=Promise.resolve(this.urlPreferences.getQuery()).then(function(k){return U4(k)}).then(null,function(){return xUd(b,function(k){return k.query})}).then(null,vHc(a.query));a=pUd(this.urlPreferences)||a.page;return{displayColumns:d,sortColumns:e,resultsPerPage:f,query:g,page:a}};
var U4=function(a){return a==null?Promise.reject(null):a},rUd=function(a){return xUd(a,function(b){return b.displayColumn}).then(function(b){return yUd(b)})},tUd=function(a){return xUd(a,function(b){return b.sortOrder}).then(function(b){return zUd(b)})},uUd=function(a){return fe(a.userPreferencesManager.sortColumnsPreferences$).then(function(b){return U4(b)}).then(function(b){return zUd(b)})},sUd=function(a){return fe(a.userPreferencesManager.displayColumnsPreferences$).then(function(b){return U4(b)}).then(function(b){return yUd(b)})},
wUd=function(a){return fe(a.userPreferencesManager.preferences$.pipe(A(function(b){var c;return(c=b.resultsPerPage)!=null?c:null}))).then(function(b){return U4(b)})},xUd=function(a,b){return a?a.then(function(c){c=b(c);return c==null?Promise.reject(null):c}):Promise.reject(null)},yUd=function(a){if(!a||!a.length)return null;a=sq(a,function(b){return b.customFieldId||b.customFieldName||b.type});return a.map(function(b){return new Lt({customFieldId:b.customFieldId||void 0,customFieldName:b.customFieldName||
void 0,type:b.type})})},zUd=function(a){return a&&a.length?a.map(function(b){return b.column!==void 0?new Ot(new Lt(b.column),b.order):new Ot(new Lt(b.field),b.direction)}).filter(function(b){return b.fieldId.type!="CUSTOM_FIELD"||b.fieldId.customFieldId!=null}):null},vUd=function(a,b){function c(){for(var k=m(b),l=k.next();!l.done;l=k.next())if(l=l.value,l.isCustomField()&&!l.customFieldName){var r=d[l.customFieldId];l.customFieldName=r?r:"Custom field "+l.customFieldId}return b}if(!b)return Promise.resolve([]);
for(var d={},e=[],f=m(b),g=f.next();!g.done;g=f.next())g=g.value,g.customFieldId&&g.isCustomField()&&(g.customFieldName?d[g.customFieldId]=g.customFieldName:e.push(fe(a.customFieldFridge.watch(g.customFieldId)).then(function(k){k&&(d[k.customFieldId]=k.name)})));return Promise.all(e).then(c,c)};T4.\u0275fac=function(a){return new (a||T4)};T4.\u0275prov=Dc({token:T4,factory:T4.\u0275fac,providedIn:"root"});var V4=function(){Z.call(this);var a=this;this.cdr=p(bQ);this.bLocation=p(bU);this.$log=p(nO);this.butterBar=p(UN);this.analytics=p(eQ);this.issuePagination=p(m2);this.gridPreferencesFetcher=p(T4);this.paths=p(hW);this.errorHandler=p(pO);this.domSafe=p(mR);this.timeout=p(oO);this.hotkeys=p(nU);this.appSearchState=p(rT);this.componentFridge=p(RO);this.issueFullFridge=p(gQ);this.activeSession=p(uu);this.window=p(lR);this.ANALYTICS_CATEGORY="panel";this.initialSortPreferences=this.initialIssueColumns=
this.displayColumns=null;this.currentUserEmail=this.activeSession.getUserEmail();this.resource=this.searchResults=null;this.isLoading=!1;this.page=1;this.issueColumnsInternal=[];this.sortPreferences=[];this.last=this.first=this.isDashboardEditable=!1;this.focusedRowIndexInternal=null;this.focusedRowIndexChange=new aQ;this.resultsLoaded=new aQ;this.selectionChange=new aQ;this.isColumnSaveEnabled=!1;this.cachedSort=null;this.BASE_HOTKEYS=[{keys:["j"],displayAs:"j",description:"Move to the next issue in the current panel",
onPress:function(){var b;(b=a.issuesGrid)==null||YTb(b)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||ZTb(b)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var b;(b=a.issuesGrid)==null||TTd(b)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var b;(b=a.issuesGrid)==null||WTd(b)}},{keys:[Vr("i")],displayAs:"Shift+i",description:"Mark as read",
onPress:function(){var b;(b=a.issuesGrid)==null||XTd(b,!0)}},{keys:[Vr("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var b;(b=a.issuesGrid)==null||XTd(b,!1)}},{keys:[Wr("*","a")],displayAs:"* then a",description:"Select all issues in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||b.selectAll()}},{keys:[Wr("*","n")],displayAs:"* then n",description:"Deselect all issues in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||QTd(b)}},{keys:["o",
"ENTER"],displayAs:"o / Enter",description:"Open the current issue",onPress:function(b){var c=a.window.document.activeElement;if(b===1&&(c==null?void 0:c.tagName)==="A")if(c.href)b=a.paths.getBaseUrl(),c.href.startsWith(b)?a.bLocation.setUrl(c.href.slice(b.length)):a.domSafe.openInNewTab(c.href);else{var d;(d=a.issuesGrid)==null||UTd(d)}else{var e;(e=a.issuesGrid)==null||UTd(e)}}}];this.destroyed$.subscribe(function(){var b;(b=a.unregisterHotkeys)==null||b.call(a)})};Y(V4,Z);V4.\u0275dir=Z.\u0275dir;
V4.prototype.columnsChange=function(a){this.issueColumns=a};V4.prototype.ngOnInit=function(){this.getIssues();AUd(this)};var AUd=function(a){var b;(b=a.unregisterHotkeys)==null||b.call(a);a.isFocused?a.unregisterHotkeys=oU(a.hotkeys,{title:"Bookmark Group Dashboard",hotkeys:a.BASE_HOTKEYS}):a.unregisterHotkeys=void 0},RXb=function(a,b){a.issuesGrid=b;VTd(a.issuesGrid,function(){var c,d={panelId:a.panel.panelId,selectedIssues:(c=a.issuesGrid)==null?void 0:c.getSelectedIssues()};a.selectionChange.emit(d)})};
h=V4.prototype;h.setSort=function(a,b,c){c=c===void 0?!0:c;var d=Mt(a);if(d==null)this.$log.warn("WARNING: Invalid column name: "+a);else{var e=new Ot(d,b=="ASC"?"ASCENDING":"DESCENDING");wba(this.sortPreferences,function(f){return mm(f.fieldId,e.fieldId)});this.sortPreferences=c?[e].concat(this.sortPreferences.slice(0,2)):[e];this.page=1;this.refreshResults()}};
h.getSort=function(){if(!this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:a.fieldId.type=="CUSTOM_FIELD"?String(a.fieldId.customFieldId):SQa(a.fieldId.type),direction:a.direction=="ASCENDING"?"ASC":"DESC"};mm(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};h.initColumns=function(a,b){this.displayColumns=a;this.issueColumnsInternal=[].concat(q(b),q(wPb(a)));this.initialIssueColumns=nm(this.issueColumns);this.isColumnSaveEnabled=!0};
h.goToIssue=function(a,b,c){c&&c.target.tagName==="A"||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=ss(a),c&&bq(c)?this.domSafe.openInNewTab(a):this.bLocation.setUrl(a))};h.goToPage=function(a){this.page=a;this.getIssues()};h.refreshResults=function(){iOd(this.issuePagination);this.getIssues()};h.exportCsv=function(){skd(this.domSafe,this.getCsvUrl())};h.getCsvUrl=function(){this.$log.warn("WARNING: Method getCsvUrl() not implemented.");return""};
h.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()})};
h.doSearch=function(a){var b=this,c=this.getGridPreferencesDefaults(),d=this.gridPreferencesFetcher.fetch(c,a.then(function(){return{query:b.resource.query!=null?b.resource.query:null,displayColumn:b.resource.displayColumn,sortOrder:b.resource.sortOrder}}));a=d.searchPreferences.then(function(e){if(!e.query)return Promise.reject(null);e=b.getSearchParams(e);b.searchParams=e;e.trackerIds=b.appSearchState.currentTrackerScope;return fOd(b.issuePagination,e)});a.catch(function(e){typeof e==="number"?
b.goToPage(e):e&&b.errorHandler.errorHandler(null,e)});return ns({searchResultsPage:a,displayColumns:d.displayColumns}).then(function(e){var f=e.searchResultsPage;b.searchResults=f;b.page=f.params.page;b.searchResults&&b.subscribeToIssueChanges(b.searchResults.issues);b.sortPreferences=f.params.sortColumns||[];b.initialSortPreferences||(b.initialSortPreferences=nm(b.sortPreferences));d.displayColumns.then(function(g){b.initColumns(g,b.getMetaColumns(f))});b.resultsLoaded.emit(b.searchResults.issues);
b.timeout.schedule(function(){var g=b.issuePagination.getFocusedIssue();g!=-1&&(b.focusedRowIndex=g-f.startIndex)})})};
h.subscribeToIssueChanges=function(a){var b=this,c;(c=this.issueSubscriptions)==null||c.unsubscribe();this.issueSubscriptions=new Pd;a=m(a);for(c=a.next();!c.done;c=a.next())this.issueSubscriptions.add(this.issueFullFridge.watch(c.value.id).pipe(ue(Pm),zf(this.destroyed$)).subscribe(function(d){var e,f;return y(function(g){switch(g.nextAddress){case 1:if(!b.searchResults){g.jumpTo(2);break}if(!d.snapshot[0].componentId){e=void 0;g.jumpTo(3);break}return z(g,fe(b.componentFridge.watch(d.snapshot[0].componentId,
{trustUncertainMemory:!0})),4);case 4:e=g.yieldResult;case 3:f=e;if(!f||!b.searchResults)return g.return();aOd(b.searchResults,[{issue:d,component:f}]);b.searchResults=b.searchResults.clone();case 2:b.cdr.detectChanges(),ae(g)}})}))};h.getGridPreferencesDefaults=function(){return{page:this.page,displayColumns:V4.DEFAULT_COLUMNS,sortColumns:[],query:"",resultsPerPage:25}};
h.save=function(){var a=this,b=xPb(this.issueColumns.slice((this.searchResults?this.getMetaColumns(this.searchResults):V4.DEFAULT_META_COLUMNS).length)).map(function(c){return new Lt(c)});this.resource.displayColumn=b;b=this.sortPreferences.map(function(c){return{direction:c.direction,field:c.fieldId}});this.resource.sortOrder=b;Rr(this.butterBar,"Saving changes to panel...");this.saveResource().then(function(){a.initialIssueColumns=nm(a.issueColumns);a.initialSortPreferences=nm(a.sortPreferences);
a.cdr.detectChanges()})};h.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");this.issueColumns=[].concat(q(this.initialIssueColumns||[]));this.initialSortPreferences&&!mm(this.initialSortPreferences,this.sortPreferences)&&(uba(this.sortPreferences),ww(zba,this.sortPreferences,void 0,0).apply(null,this.initialSortPreferences),this.refreshResults())};
h.hasParamChanges=function(){return this.resource&&this.isEditable()?this.initialIssueColumns&&!mm(this.initialIssueColumns,this.issueColumns)?!0:!!this.initialSortPreferences&&!mm(this.initialSortPreferences,this.sortPreferences):!1};h.isEditable=function(){var a=this;return!!this.resource&&this.resource.adminUsers.some(function(b){return b.emailAddress===a.currentUserEmail})};h.getMetaColumns=function(){return V4.DEFAULT_META_COLUMNS};
h.getSearchParams=function(a){a=nm(a);a.resultsPerPage=10;a.page=this.page;this.sortPreferences.length&&(a.sortColumns=this.sortPreferences);a.returnUrl=this.bLocation.getUrl();return a};
da.Object.defineProperties(V4.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){mm(a,this.issueColumnsInternal)||(this.issueColumnsInternal=a,this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"columnModification"))}},focusedRowIndex:{configurable:!0,enumerable:!0,set:function(a){var b=this.isFocused;this.focusedRowIndexInternal!==a&&(this.focusedRowIndexInternal=a,this.focusedRowIndexChange.emit(a));this.isFocused!==b&&AUd(this)},
get:function(){return this.focusedRowIndexInternal}},isFocused:{configurable:!0,enumerable:!0,get:function(){return this.focusedRowIndex!==null}}});V4.DEFAULT_META_COLUMNS=[YTd,$Td,aUd];V4.DEFAULT_COLUMNS=BSd.map(Mt).filter(Pm);V4.\u0275fac=function(a){return new (a||V4)};
V4.\u0275cmp=D({type:V4,selectors:[["b-base-issues-list"]],viewQuery:function(a,b){a&1&&hg(D4,5);if(a&2){var c;lg(c=mg())&&(b.issuesGrid=c.first)}},inputs:{panel:"panel",isDashboardEditable:"isDashboardEditable",first:"first",last:"last",focusedRowIndex:"focusedRowIndex"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",resultsLoaded:"resultsLoaded",selectionChange:"selectionChange"},standalone:!1,features:[Ef],decls:0,vars:0,template:function(){},encapsulation:2});var W4=function(){this.dialog=p(dS);this.appEvents=p(UO);this.last=this.first=!1};W4.prototype.removePanel=function(){var a=this;this.dialog.open({title:"Remove Item?",content:Bh("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)}})};W4.\u0275fac=function(a){return new (a||W4)};
W4.\u0275cmp=D({type:W4,selectors:[["b-panel-controls"]],inputs:{panelId:"panelId",first:"first",last:"last"},standalone:!1,decls:6,vars:1,consts:[["menu",""],["type","button","mat-icon-button","","aria-label","Customize list view",1,"small","bv2-grid-settings-button",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown",1,"icon-s"],["matMenuContent",""],["type","button","mat-menu-item","",1,"bv2-panel-move-to-top-menuitem"],["type","button","mat-menu-item","",1,"bv2-panel-move-up-menuitem"],["type",
"button","mat-menu-item","",1,"bv2-panel-move-down-menuitem"],["type","button","mat-menu-item","",1,"bv2-panel-move-to-bottom-menuitem"],["type","button","mat-menu-item","",1,"bv2-panel-remove-edit-menuitem",3,"click"],["type","button","mat-menu-item","",1,"bv2-panel-move-to-top-menuitem",3,"click"],["type","button","mat-menu-item","",1,"bv2-panel-move-up-menuitem",3,"click"],["type","button","mat-menu-item","",1,"bv2-panel-move-down-menuitem",3,"click"],["type","button","mat-menu-item","",1,"bv2-panel-move-to-bottom-menuitem",
3,"click"]],template:function(a){a&1&&(K(0,"div")(1,"button",1),M(2,"mat-icon",2),L(),K(3,"mat-menu",null,0),E(5,CXb,6,4,"ng-template",3),L()());a&2&&(a=qg(4),B(),I("matMenuTriggerFor",a))},dependencies:[Jy,VJ,fH,dH,eH,iH,kB,iB],encapsulation:2});var X4=function(){};X4.\u0275fac=function(a){return new (a||X4)};X4.\u0275mod=$e({type:X4});X4.\u0275inj=Fc({imports:[WO,WJ,mB]});var Y4=function(){};Y4.\u0275fac=function(a){return new (a||Y4)};Y4.\u0275mod=$e({type:Y4});Y4.\u0275inj=Fc({imports:[WO,TK]});var Z4=function(){};Z4.\u0275fac=function(a){return new (a||Z4)};Z4.\u0275mod=$e({type:Z4});Z4.\u0275inj=Fc({imports:[WO,Y4]});var a5=function(){};a5.\u0275fac=function(a){return new (a||a5)};a5.\u0275mod=$e({type:a5});a5.\u0275inj=Fc({imports:[WO,TK,Z4]});var b5=function(){};b5.prototype.getValue=function(){return this.row[this.column.name]||""};b5.prototype.isCustomField=function(){return this.column.isCustomField};b5.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 mm(this.customFieldValue,a)||(this.customFieldValue=a),this.customFieldValue};
b5.\u0275fac=function(a){return new (a||b5)};b5.\u0275cmp=D({type:b5,selectors:[["pop-grid-default-cell"]],inputs:{row:"row",column:"column"},standalone:!1,decls:2,vars:2,consts:[[3,"customFieldValue"]],template:function(a,b){a&1&&(F(0,DXb,2,2,"span"),F(1,EXb,1,1,"b-custom-field-value-display",0));a&2&&(G(b.isCustomField()?-1:0),B(),G(b.isCustomField()?1:-1))},dependencies:[s3],encapsulation:2,changeDetection:0});var c5=function(){};c5.\u0275fac=function(a){return new (a||c5)};c5.\u0275mod=$e({type:c5});c5.\u0275inj=Fc({imports:[WO,wK,t3]});noa(d4,[Sx,f4,b5],[]);var BUd=function(){};BUd.\u0275fac=function(a){return new (a||BUd)};BUd.\u0275mod=$e({type:BUd});BUd.\u0275inj=Fc({imports:[WO,WJ,iK,wK,mB,GU,c5]});var CUd=function(){};CUd.\u0275fac=function(a){return new (a||CUd)};CUd.\u0275mod=$e({type:CUd});CUd.\u0275inj=Fc({imports:[WO,mB,Ly]});var d5=function(){};d5.\u0275fac=function(a){return new (a||d5)};d5.\u0275mod=$e({type:d5});d5.\u0275inj=Fc({imports:[WO,Y4]});var e5=function(){};e5.\u0275fac=function(a){return new (a||e5)};e5.\u0275mod=$e({type:e5});e5.\u0275inj=Fc({imports:[CZ,WO,mB,wK,TK,Ly]});var f5=function(){};f5.\u0275fac=function(a){return new (a||f5)};f5.\u0275mod=$e({type:f5});f5.\u0275inj=Fc({imports:[WO,CU,G0,mB,e5,Ly,eU,b1]});var g5=function(){};g5.\u0275fac=function(a){return new (a||g5)};g5.\u0275mod=$e({type:g5});g5.\u0275inj=Fc({imports:[by,DE,N_,EE]});var h5=function(){};h5.\u0275fac=function(a){return new (a||h5)};h5.\u0275mod=$e({type:h5});h5.\u0275inj=Fc({imports:[WO,wK,D0,Y2,g5,TK]});var i5=function(){};i5.\u0275fac=function(a){return new (a||i5)};i5.\u0275mod=$e({type:i5});i5.\u0275inj=Fc({imports:[WO,wK,D0,TK]});var j5=function(){};j5.\u0275fac=function(a){return new (a||j5)};j5.\u0275mod=$e({type:j5});j5.\u0275inj=Fc({imports:[WO,G_,nV,EE,zU]});var k5=function(){};k5.\u0275fac=function(a){return new (a||k5)};k5.\u0275mod=$e({type:k5});k5.\u0275inj=Fc({imports:[WO,wK,mB,TK,d5,wV,Z4,j5,Wz,hV]});var l5=function(){};l5.\u0275fac=function(a){return new (a||l5)};l5.\u0275mod=$e({type:l5});l5.\u0275inj=Fc({imports:[NU,FU,WO,DE,mB,TJ,HU,BU,wK,Y2]});var DUd={},EUd=(DUd.COMFORTABLE=330,DUd.COZY=300,DUd.COMPACT=270,DUd),m5=function(){Z.call(this);var a=this;this.userPreferencesManager=p(hR);this.RIGHT_SIDEBAR_MIN_WIDTH=245;this.density$=this.userPreferencesManager.preferences$.pipe(A(function(b){var c;return(c=b.themePreferences)==null?void 0:c.density}));this.sidebarWidthPreference$=this.userPreferencesManager.preferences$.pipe(A(function(b){var c;return(c=b.layoutPreferences)==null?void 0:c.rightSidebarWidth}));this.rightSidebarWidthChanged$=
new qf;this.currentSidebarWidth$=ie([this.density$,this.sidebarWidthPreference$,this.rightSidebarWidthChanged$.pipe(xf(void 0))]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return c!=null?c:d!=null?d:EUd[b!=null?b:"COMFORTABLE"]}));ie([this.rightSidebarWidthChanged$.pipe(nf()),this.sidebarWidthPreference$]).pipe(ue(function(b){var c=m(b);b=c.next().value;return c.next().value!==b}),yf(function(b){var c=m(b);b=c.next().value;c.next();return hkd(a.userPreferencesManager,
{rightSidebarWidth:b})}),zf(this.destroyed$)).subscribe()};Y(m5,Z);m5.\u0275dir=Z.\u0275dir;m5.prototype.ngOnInit=function(){};m5.\u0275fac=function(a){return new (a||m5)};
m5.\u0275cmp=D({type:m5,selectors:[["issue-metadata-sidebar"]],inputs:{issueId:"issueId"},standalone:!1,features:[Ef],decls:7,vars:5,consts:[[1,"a11y-only"],["direction","rtl",3,"widthChanged","minWidth","size"],[1,"bv2-issue-metadata"],[1,"flex-kids-y"],[3,"issueId"]],template:function(a,b){a&1&&(K(0,"h3",0),Q(1,"Issue metadata"),L(),K(2,"b-resizable-sidebar",1),T(3,"async"),N("widthChanged",function(d){return b.rightSidebarWidthChanged$.next(d)}),K(4,"div",2)(5,"div",3),F(6,FXb,1,1,"edit-issue-metadata",
4),L()()());if(a&2){B(2);var c;I("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("size",(c=U(3,3,b.currentSidebarWidth$))!=null?c:0);B(4);G(b.issueId?6:-1)}},dependencies:[uU,y4,Tx],styles:["[_nghost-%COMP%] {\n      display: inherit;\n    }"],changeDetection:0});var n5=function(){};n5.\u0275fac=function(a){return new (a||n5)};n5.\u0275mod=$e({type:n5});n5.\u0275inj=Fc({imports:[fV,FV,WO,z_,qV,h5,i5,D0,qU,TK,xX,k5,PV,wK,xU,l5,O_,eX,HV,H0,y0,F0,E0]});var FUd=function(){};FUd.\u0275fac=function(a){return new (a||FUd)};FUd.\u0275mod=$e({type:FUd});FUd.\u0275inj=Fc({imports:[mB,wK,DE,UD,HE,ZD,GV,HV,WO,f5,yX,hV,fV,eU,n5,CU,yW,wX,c1]});var o5=function(){};o5.\u0275fac=function(a){return new (a||o5)};o5.\u0275mod=$e({type:o5});o5.\u0275inj=Fc({imports:[WO,TK]});var p5=function(){};p5.\u0275fac=function(a){return new (a||p5)};p5.\u0275mod=$e({type:p5});p5.\u0275inj=Fc({imports:[WO,o5,wV]});var q5=function(){};q5.\u0275fac=function(a){return new (a||q5)};q5.\u0275mod=$e({type:q5});q5.\u0275inj=Fc({imports:[ZSd,WO,WJ,iK,wK,mB,TJ,jA,zM,GU,c5,Y4,a5,wV,d5,fV,iU,M_,p5,GX,fX,Y1,r3,TK,xX,FUd,DV,FX,vX,ASd,BUd,fsd,CUd]});var r5=function(){this.hotlistsApi=p(gP);this.butterBar=p(UN);this.appEvents=p(UO)};
r5.prototype.repositionIssue=function(a,b,c,d,e,f){var g=this,k=b[0].position,l=k>b[1].position,r=b[c],w=b[d].position;Jba(b,c,d);f==null||f();Rr(this.butterBar,"Saving...",0);return this.hotlistsApi.repositionHotlistIssue(a,r.issueId,w).then(function(){for(var x=k,C=m(b),H=C.next();!H.done;H=C.next())H.value.position=x,x+=l?-1:1;f==null||f();Rr(g.butterBar,"Saved issue position.",4E3);g.appEvents.hotlistChanged.next({hotlistId:a,origin:e});return g.hotlistsApi.get(a)})};
r5.\u0275fac=function(a){return new (a||r5)};r5.\u0275prov=Dc({token:r5,factory:r5.\u0275fac,providedIn:"root"});var s5=function(){this.pageChange=new aQ;this.resultsPerPageChange=new aQ;this.resultsPerPageFixed=!1;this.resultsPerPageOptions=[10,25,50,100,250]};s5.prototype.nextPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page+1})};s5.prototype.prevPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page-1})};
da.Object.defineProperties(s5.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}})}}});s5.\u0275fac=function(a){return new (a||s5)};
s5.\u0275cmp=D({type:s5,selectors:[["b-pagination"]],inputs:{searchResults:"searchResults",resultsPerPageFixed:"resultsPerPageFixed"},outputs:{pageChange:"pageChange",resultsPerPageChange:"resultsPerPageChange"},standalone:!1,decls:7,vars:4,consts:[[1,"bv2-appbar-page"],["header","Results per page:","buttonLabel","Results per page","buttonIcon","arrow-dropdown",3,"menuItems"],["aria-live","polite","role","alert",1,"bv2-appbar-pagenums"],["type","button","mat-icon-button","","focusBack","","color",
"primary","mat-tooltip","Go to previous page","aria-label","Go to previous page",1,"large","left","compact",3,"click","keydown.enter","disabled"],["svgIcon","arrow-left",1,"large"],["type","button","mat-icon-button","","focusBack","","color","primary","mat-tooltip","Go to next page","aria-label","Go to next page",1,"large","right","compact",3,"click","keydown.enter","disabled"],["svgIcon","arrow-right",1,"large"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,GXb,1,1,"b-actions-menu",1),F(2,HXb,6,
3,"span",2),K(3,"button",3),N("click",function(){return b.prevPage()})("keydown.enter",function(c){b.prevPage();return c.stopPropagation()}),M(4,"mat-icon",4),L(),K(5,"button",5),N("click",function(){return b.nextPage()})("keydown.enter",function(c){b.nextPage();return c.stopPropagation()}),M(6,"mat-icon",6),L()());a&2&&(B(),G(b.searchResults&&b.searchResults.issues.length>0&&!b.resultsPerPageFixed?1:-1),B(),G(b.searchResults&&b.searchResults.issues.length>0?2:-1),B(),I("disabled",!(b.searchResults==
null?0:b.searchResults.hasPreviousPage())),B(2),I("disabled",!(b.searchResults==null?0:b.searchResults.hasNextPage())))},dependencies:[Jy,kB,iB,NY,BY],encapsulation:2});var t5=function(){};t5.\u0275fac=function(a){return new (a||t5)};t5.\u0275mod=$e({type:t5});t5.\u0275inj=Fc({imports:[WO,mB,CZ,X1]});var u5=function(){V4.apply(this,arguments);this.hotlists=p(r5);this.hotlistApi=p(gP);this.appEvents=p(UO);this.ROUTES=qs;this.resource=null};Y(u5,V4);u5.\u0275dir=V4.\u0275dir;h=u5.prototype;h.ngOnInit=function(){V4.prototype.ngOnInit.call(this)};h.setSort=function(a,b){var c=this.getSort();a==="position"||c&&c.field==="position"?V4.prototype.setSort.call(this,a,b,!1):V4.prototype.setSort.call(this,a,b)};
h.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};
h.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"});Rr(a.butterBar,'Saved changes to hotlist "'+b.name+'".');a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges();return b}).catch(function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)});this.butterBar.showWarning("Hotlist is not set at this time.");
return Promise.resolve()};h.getGridPreferencesDefaults=function(){return Object.assign({},V4.prototype.getGridPreferencesDefaults.call(this),{query:"hotlistId:"+this.hotlistId})};h.getMetaColumns=function(a){a=a.params.sortColumns||[];return a.length==0||a.length==1&&a[0].fieldId.type=="POSITION"?GUd:HUd};h.getSearchParams=function(a){a=V4.prototype.getSearchParams.call(this,a);a.hotlistId=this.hotlistId;return a};
h.repositionIssue=function(a,b){var c=this;this.searchResults&&this.hotlists.repositionIssue(this.hotlistId,this.searchResults.issues,a,b,"hotlist-panel",function(){c.searchResults&&(c.searchResults=c.searchResults.clone())}).then(function(d){c.resource=d;c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"issueDragDrop")})};u5.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(u5)))(b||u5)}}();
u5.\u0275cmp=D({type:u5,selectors:[["b-hotlist-panel"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Gg([bQ]),Ef],decls:9,vars:8,consts:[[1,"bv2-panel","bv2-view-hotlist-grid"],[1,"bv2-view-hotlist-title"],[1,"bv2-view-hotlist-title-text"],[1,"bv2-view-hotlist-save-form"],[3,"pageChange","searchResults","resultsPerPageFixed"],[1,"bv2-panel-controls",3,"panelId"],["tabindex","0"],[3,"href"],[3,"matTooltip"],["matTooltip","Display preferences have changed"],["mat-flat-button","","type","button",
"color","primary","matTooltip","Save changes to display preferences",1,"medium",3,"click"],["mat-stroked-button","","type","button","color","primary","matTooltip","Discard changes to display preferences",1,"medium",3,"click"],[1,"bv2-view-loading"],["tabindex","0",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"large"],[3,"init","focusedRowIndexChange","columnsChange","sortChange","onRowDragDrop","rowClick","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns","enableColumnSaving",
"sort"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"div",2),F(3,IXb,2,0,"div"),F(4,JXb,2,0,"div"),F(5,MXb,8,6,"div"),L(),F(6,NXb,5,0,"div",3),K(7,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)}),L()(),F(8,TXb,4,3,"div"),L());a&2&&(If("aria-busy",b.isLoading),B(3),G(b.resource||b.isLoading?-1:3),B(),G(!b.resource&&b.isLoading?4:-1),B(),G(b.resource?5:-1),B(),G(b.hasParamChanges()?6:-1),B(),I("searchResults",b.searchResults)("resultsPerPageFixed",!0),B(),G(b.resource?
8:-1))},dependencies:[D4,kB,gB,vK,nA,s5,W4,cU],encapsulation:2});var HUd=[YTd,$Td,aUd,bUd],GUd=[YTd,ZTd,$Td,aUd,bUd],v5=function(){};v5.\u0275fac=function(a){return new (a||v5)};v5.\u0275mod=$e({type:v5});v5.\u0275inj=Fc({imports:[WO,q5,mB,wK,t5,X4,eU]});var w5=function(){V4.apply(this,arguments);this.savedSearchApi=p(oP);this.resource=null};Y(w5,V4);w5.\u0275dir=V4.\u0275dir;w5.prototype.ngOnInit=function(){V4.prototype.ngOnInit.call(this)};w5.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};w5.prototype.saveResource=function(){return Promise.resolve()};
w5.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(w5)))(b||w5)}}();
w5.\u0275cmp=D({type:w5,selectors:[["b-saved-search-panel"]],inputs:{savedSearchId:"savedSearchId"},standalone:!1,features:[Gg([bQ]),Ef],decls:8,vars:7,consts:[[1,"bv2-panel","bv2-view-savedsearch-grid"],[1,"bv2-view-savedsearch-title"],[1,"bv2-view-savedsearch-title-text"],["tabindex","0"],[3,"pageChange","searchResults","resultsPerPageFixed"],[1,"bv2-panel-controls",3,"panelId"],[3,"href"],[3,"matTooltip"],["matTooltip","Display preferences or search query have changed"],[1,"bv2-view-loading"],
["tabindex","0","role","region",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"large"],[3,"init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns","enableColumnSaving","sort"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"div",2),F(3,UXb,2,0,"div"),F(4,VXb,2,0,"div"),F(5,YXb,8,6,"div",3),L(),K(6,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)}),L()(),F(7,cYb,4,3,"div"),L());a&
2&&(If("aria-busy",b.isLoading),B(3),G(b.resource||b.isLoading?-1:3),B(),G(!b.resource&&b.isLoading?4:-1),B(),G(b.resource?5:-1),B(),I("searchResults",b.searchResults)("resultsPerPageFixed",!0),B(),G(b.resource?7:-1))},dependencies:[D4,vK,nA,s5,W4,cU],encapsulation:2});var x5=function(){};x5.\u0275fac=function(a){return new (a||x5)};x5.\u0275mod=$e({type:x5});x5.\u0275inj=Fc({imports:[WO,q5,wK,t5,X4,eU]});var y5=function(){this.label="Team"};y5.prototype.ngOnInit=function(){};y5.\u0275fac=function(a){return new (a||y5)};
y5.\u0275cmp=D({type:y5,selectors:[["b-team-breadcrumb"]],inputs:{teamPath:"teamPath",label:"label"},standalone:!1,decls:4,vars:1,consts:[["role","navigation",1,"breadcrumb"],[1,"breadcrumb-items"],[1,"breadcrumb-item"],[1,"keep-focus-ring",3,"routerLink","preserveFragment"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"span",1),Nf(2,dYb,3,4,"span",2,Mf),L()());a&2&&(If("aria-label",b.label),B(2),Of(b.teamPath))},dependencies:[hF],encapsulation:2});var z5=function(){};z5.\u0275fac=function(a){return new (a||z5)};z5.\u0275mod=$e({type:z5});z5.\u0275inj=Fc({imports:[WO,BV]});var IUd=["form"],JUd=["numberInput"],KUd=/^\d+\.?\d*$/,LUd={DAYS:0,YEARS:1,0:"DAYS",1:"YEARS"},A5=function(){this.disabled=!1;this.ariaLabel="";this.durationDaysChange=new aQ;this.displayUnits=0;this.TimeUnit=LUd};
A5.prototype.ngOnInit=function(){var a=this;this.durationDays&&(this.displayUnits=this.durationDays%365===0?1:0,this.displayNumber=this.displayUnits===1?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()})};A5.prototype.ngAfterViewInit=function(){};
A5.prototype.onValueChange=function(){if(this.displayNumber!==void 0){switch(this.displayUnits){case 1:var a=this.displayNumber*365;break;default:a=this.displayNumber}a=Math.ceil(a)}else a=void 0;a!==this.durationDays&&(this.durationDays=a,this.durationDaysChange.emit(this.durationDays))};A5.prototype.ngOnDestroy=function(){this.formSubscription&&this.formSubscription.unsubscribe()};A5.\u0275fac=function(a){return new (a||A5)};
A5.\u0275cmp=D({type:A5,selectors:[["b-duration-picker"]],viewQuery:function(a,b){a&1&&(hg(IUd,7),hg(JUd,7));if(a&2){var c;lg(c=mg())&&(b.form=c.first);lg(c=mg())&&(b.numberInput=c.first)}},inputs:{durationDays:"durationDays",disabled:"disabled",ariaLabel:"ariaLabel"},outputs:{durationDaysChange:"durationDaysChange"},standalone:!1,decls:14,vars:7,consts:[["form","ngForm"],["numberInput",""],[1,"duration-picker-form"],"color primary appearance outline subscriptSizing dynamic".split(" "),["matInput",
"","type","number","step","1","min","0","name","numbers",3,"keydown","paste","ngModel","disabled"],["name","unit",3,"ngModel","disabled"],["color","accent",3,"value"]],template:function(a,b){if(a&1){var c=t();K(0,"form",null,0)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label");Q(5," Custom Duration ");L();K(6,"input",4,1);N("keydown",function(d){u(c);switch(d.key){case "-":case "e":case "E":d.preventDefault()}return v()})("paste",function(d){u(c);var e=d.clipboardData.getData("Text");KUd.test(e)||d.preventDefault();
return v()});L()();K(8,"mat-form-field",3)(9,"mat-select",5)(10,"mat-option",6);Q(11,"days");L();K(12,"mat-option",6);Q(13,"year(s)");L()()()()()}a&2&&(B(6),I("ngModel",b.displayNumber)("disabled",b.disabled),If("aria-label",b.ariaLabel),B(3),I("ngModel",b.displayUnits)("disabled",b.disabled),B(),I("value",b.TimeUnit.DAYS),B(2),I("value",b.TimeUnit.YEARS))},dependencies:[nE,xj,oE,fE,gE,xE,mE,kE,VD,FE,SD,KD,HD,yU,TH,hA],styles:["[_nghost-%COMP%]     .duration-picker-form{display:flex;flex-direction:row;width:250px}[_nghost-%COMP%]     .duration-picker-form .mat-mdc-form-field{height:fit-content;min-width:150px;padding-right:10px;--mat-form-field-container-height: 24px}[_nghost-%COMP%]     .duration-picker-form .mat-mdc-form-field .mat-mdc-input-element{width:100%}[_nghost-%COMP%]     .duration-picker-form .mat-mdc-form-field .mat-mdc-floating-label mat-label{font-size:.813rem}[_nghost-%COMP%]     .duration-picker-form .mat-mdc-form-field .mat-mdc-form-field-infix{min-height:initial;padding:2px}[_nghost-%COMP%]     .duration-picker-form .gmat-mdc-select{--mat-select-trigger-text-size: 0.813rem}"],
changeDetection:0});var MUd=function(){};MUd.\u0275fac=function(a){return new (a||MUd)};MUd.\u0275mod=$e({type:MUd});MUd.\u0275inj=Fc({imports:[WO,DE,HE,UD,zU,yW]});var B5=function(){};B5.\u0275fac=function(a){return new (a||B5)};B5.\u0275mod=$e({type:B5});B5.\u0275inj=Fc({imports:[WO,mB,TJ,iK,WJ,GU,NU]});var NUd=function(){this.dialogRef=p(RA);this.data=p(TA);this.issueId=this.data.issueId;this.issueTitle=this.data.issueTitle};NUd.prototype.close=function(){this.dialogRef.close(!1)};NUd.\u0275fac=function(a){return new (a||NUd)};
NUd.\u0275cmp=D({type:NUd,selectors:[["b-unsubscribe-dialog"]],standalone:!1,decls:21,vars:4,consts:[["mat-dialog-title",""],[1,"gmat-body-2"],[1,"gmat-body-1"],["target","_blank",3,"href"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"dialog-primary-action",3,"click"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Unsubscribe From Issue"),L(),K(2,"mat-dialog-content")(3,"div",1),Q(4," Are you sure you would like to unsubscribe from the following issue? "),
L(),M(5,"br"),K(6,"div",2)(7,"a",3)(8,"span"),Q(9),L()(),Q(10," - "),K(11,"span"),Q(12),L()(),M(13,"br"),K(14,"div",1),Q(15," By unsubscribing, you will no longer receive email updates about this issue. "),L()(),K(16,"mat-dialog-actions")(17,"button",4),N("click",function(){return b.close()}),Q(18," Cancel "),L(),K(19,"button",5),N("click",function(){b.dialogRef.close(!0)}),Q(20," Unsubscribe "),L()());a&2&&(B(7),I("href",Eg("/issues/",b.issueId),Ne),B(2),S("b/",b.issueId),B(3),yg(b.issueTitle))},
dependencies:[kB,gB,XA,ZA,YA],encapsulation:2});var C5=function(){this.activeSession=p(uu);this.matDialogService=p(UA);this.issueFullFridge=p(gQ);this.analytics=p(eQ);this.routeParams=p(wS);this.iconOnly=!1;this.subscriptionChange=new aQ;this.showNotificationSettings=new aQ;this.menuLabel="Default";this.menuIcon="notifications_none_24px";this.isAnonymous=this.activeSession.isAnonymous();this.subscriptionInternal="UNKNOWN_SUBSCRIPTION";this.NotificationSubscription=Bbd;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"}]])};
C5.prototype.ngOnInit=function(){OUd(this)};C5.prototype.ngOnChanges=function(){var a=this.subscriptions.get(this.subscriptionInternal);a&&(this.menuLabel=a.label,this.menuIcon=a.icon)};C5.prototype.updateSubscription=function(a){a!==this.subscriptionInternal&&this.subscriptionChange.emit(a)};
var OUd=function(a){var b,c;y(function(d){if(d.nextAddress==1)return a.routeParams.unsubscribe!=="true"||a.subscription&&a.subscription==="UNSUBSCRIBED"?d.return():z(d,fe(a.issueFullFridge.watch(a.issueId)),2);if(d.nextAddress!=3){b=d.yieldResult;if(!b)return d.return();a.matDialogService.closeAll();return z(d,fe(SA(a.matDialogService.open(NUd,{width:"400px",data:{issueId:a.issueId,issueTitle:b.snapshot[0].title}}))),3)}if(c=d.yieldResult)a.updateSubscription("UNSUBSCRIBED"),a.analytics.trackEvent("editIssue",
"unsubscribeUsingDialog");ae(d)})};da.Object.defineProperties(C5.prototype,{subscription:{configurable:!0,enumerable:!0,set:function(a){a!=null&&(this.subscriptionInternal=a)},get:function(){return this.subscriptionInternal}}});C5.\u0275fac=function(a){return new (a||C5)};
C5.\u0275cmp=D({type:C5,selectors:[["b-notification-menu"]],inputs:{subscription:"subscription",iconOnly:"iconOnly",issueId:"issueId"},outputs:{subscriptionChange:"subscriptionChange",showNotificationSettings:"showNotificationSettings"},standalone:!1,features:[jx],decls:63,vars:30,consts:[["notificationMenu","matMenu"],["allUpdates",""],["all",""],["majorUpdates",""],["major",""],["type","button","mat-button","","matTooltip","Notification menu",1,"notification-menu-button",3,"matMenuTriggerFor","disabled"],
[1,"notification-menu-button-inner"],["size","small",1,"icon",3,"name"],[1,"notification-menu"],[1,"menu-row-container","default-container"],["type","button","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"],["type","button","mat-menu-item","","aria-label","Settings",1,"default-settings",3,"click"],
["name","settings-outline","size","small",1,"item-icon"],[1,"menu-row-container"],["type","button","mat-menu-item","","aria-label","All Updates. Receive emails for major and minor updates.","aria-describedby","all-updates-help",1,"notification-option",3,"click"],[1,"subscription-info"],["type","button","mat-menu-item","",1,"subscription-help","help-icon",3,"click","focus","blur"],[3,"panelTemplate","overlayPositions"],["svgIcon","help-outline",1,"subscription-help","item-icon","small"],["type","button",
"mat-menu-item","","aria-label","Major Updates. Receive emails for major updates only.","aria-describedby","major-updates-help",1,"notification-option",3,"click"],["type","button","mat-menu-item","",1,"notification-option",3,"click"],[1,"notification-menu-label",3,"innerHTML"],["name","arrow-dropdown","size","small",1,"notification-dropdown-icon"],["id","all-updates-help",1,"subscription-help-bubble"],[1,"subscription-help-list"],["id","major-updates-help",1,"subscription-help-bubble"]],template:function(a,
b){if(a&1){var c=t();K(0,"div")(1,"button",5)(2,"div",6);M(3,"b-icon",7);F(4,eYb,2,1);L()()();K(5,"mat-menu",null,0)(7,"div",8)(8,"div",9)(9,"button",10);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.UNKNOWN_SUBSCRIPTION))});M(10,"b-icon",11);K(11,"div",12);Q(12," Default ");L();K(13,"div",13);Q(14," receive emails based on your default settings. ");L()();M(15,"mat-divider",14);K(16,"button",15);N("click",function(f){u(c);return v(b.showNotificationSettings.emit(f))});
M(17,"b-icon",16);L()();M(18,"mat-divider");K(19,"div",17)(20,"button",18);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES))});K(21,"div",19);M(22,"b-icon",11);K(23,"div",12);Q(24," All Updates ");L();K(25,"div",13);Q(26," receive emails for major and minor updates. ");L()()();K(27,"button",20);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES))})("focus",function(){u(c);var f=qg(29);
return v(f.toggle(!0))})("blur",function(){u(c);var f=qg(29);return v(f.toggle(!1))});K(28,"xap-bubble",21,1);M(30,"mat-icon",22);E(31,fYb,13,0,"ng-template",null,2,Mg);L()()();K(33,"div",17)(34,"button",23);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES))});K(35,"div",19);M(36,"b-icon",11);K(37,"div",12);Q(38," Major Updates ");L();K(39,"div",13);Q(40," receive emails for major updates only. ");L()()();K(41,"button",20);N("click",function(){u(c);
return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES))})("focus",function(){u(c);var f=qg(43);return v(f.toggle(!0))})("blur",function(){u(c);var f=qg(43);return v(f.toggle(!1))});K(42,"xap-bubble",21,3);M(44,"mat-icon",22);E(45,gYb,17,0,"ng-template",null,4,Mg);L()()();K(47,"button",24);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY))});K(48,"div",17)(49,"div",19);M(50,"b-icon",11);K(51,"div",12);Q(52," Closure Only ");
L();K(53,"div",13);Q(54," only receive emails when the issue is closed. ");L()()()();K(55,"button",24);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.UNSUBSCRIBED))});K(56,"div",17)(57,"div",19);M(58,"b-icon",11);K(59,"div",12);Q(60," None ");L();K(61,"div",13);Q(62," unsubscribe from further email updates. ");L()()()()()()}if(a&2){a=qg(6);var d=qg(32),e=qg(46);B();wg("small",b.iconOnly)("medium",!b.iconOnly)("icon-only",b.iconOnly);I("matMenuTriggerFor",a)("disabled",
b.isAnonymous);If("aria-label","Notifications Menu, current value is "+b.subscriptions.get(b.subscriptionInternal||"UNKNOWN_SUBSCRIPTION").label);B(2);wg("black",b.menuIcon==="notifications-off");I("name",b.menuIcon);B();G(b.iconOnly?-1:4);B(5);wg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNKNOWN_SUBSCRIPTION);B(6);I("vertical",!0);B(5);wg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES);B(7);If("aria-label","This includes emails about major updates and All title, hotlist, and status changes, Blocking, Blocked By, or Duplicate changes, Changes to Reporter, Verifier, and CCs, changes to Type, Found In, Targeted To, Verified In, In Prod, and Changes to custom fields marked as minor.");
B();I("panelTemplate",d)("overlayPositions",b.bubblePosition);B(6);wg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES);B(7);If("aria-label","This includes emails about New comments, New status updates, Priority or Severity changes, Assignee changes, Component changes, Issue closure or reopening, and Changes to custom fields marked as major.");B();I("panelTemplate",e)("overlayPositions",b.bubblePosition);B(5);wg("b-menu-item-checked",b.subscriptionInternal===
b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY);B(8);wg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNSUBSCRIBED)}},dependencies:[Jy,kB,gB,hK,VJ,fH,dH,iH,sT,QV,vK,nA],styles:[".notification-menu[_ngcontent-%COMP%]{max-width:210px}.notification-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]{height:auto;padding:5px 0px 5px 24px;white-space:normal}.notification-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]   .item-checkmark[_ngcontent-%COMP%]{height:18px;line-height:0px;width:18px}.notification-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]   .item-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);white-space:normal}.notification-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]   .item-icon[_ngcontent-%COMP%]{display:block;margin:auto;width:18px;height:100%}.notification-menu[_ngcontent-%COMP%]   button.mat-mdc-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;padding:0px}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .help-icon[_ngcontent-%COMP%]{align-self:center;grid-column:3;height:100%;padding:0px}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .subscription-help[_ngcontent-%COMP%]{align-self:center;grid-column:3}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .subscription-info[_ngcontent-%COMP%]{grid-column:1}.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 D5=function(){};D5.\u0275fac=function(a){return new (a||D5)};D5.\u0275mod=$e({type:D5});D5.\u0275inj=Fc({imports:[WO,mB,iK,WJ,GU,NU,eX,wK]});var E5=function(){this.sloApi=p(JQ);this.cdr=p(bQ,{self:!0});this.isDisabled=!1;this.dropdownChoices=null;this.onSloSelect=new aQ;this.internalBoundId=this.selectedSlo=null;this.lastProcessedIndex=-1;this.requestIndex=0},PUd=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()};
E5.prototype.displayFn=function(a){return(a==null?void 0:a.name)||(a==null?void 0:a.sloId)||""};E5.prototype.updateSelectionOnChange=function(a){if(a=a.option.value)this.boundId=a.sloId;this.onSloSelect.emit(a);this.cdr.detectChanges()};
da.Object.defineProperties(E5.prototype,{boundId:{configurable:!0,enumerable:!0,get:function(){return this.internalBoundId},set:function(a){var b=this;(this.internalBoundId=a)&&this.internalBoundId!=="0"?this.sloApi.get(this.internalBoundId).then(function(c){b.dropdownChoices=c?[c]:[];b.selectedSlo=c}).catch(function(){b.selectedSlo={sloId:b.internalBoundId}}):(this.dropdownChoices=[],this.selectedSlo=null)}}});E5.\u0275fac=function(a){return new (a||E5)};
E5.\u0275cmp=D({type:E5,selectors:[["slo-picker"]],inputs:{isDisabled:[0,"bv2Disabled","isDisabled"],placeholder:[0,"bv2Placeholder","placeholder"],boundId:"boundId"},outputs:{onSloSelect:"onSloSelect"},standalone:!1,features:[Gg([bQ])],decls:7,vars:5,consts:[["searchInput",""],["auto","matAutocomplete"],[1,"bv2-slo-picker"],["matInput","","type","text","autocomplete","slo-name",1,"bv2-picker-input","form-control",3,"ngModelChange","click","input","placeholder","ngModel","disabled","matAutocomplete"],
["panelWidth","574px",3,"optionSelected","displayWith"],[1,"slo-search-result",3,"value"]],template:function(a,b){if(a&1){var c=t();K(0,"div",2)(1,"input",3,0);Cg("ngModelChange",function(d){u(c);Bg(b.selectedSlo,d)||(b.selectedSlo=d);return v(d)});N("click",function(){u(c);var d=qg(2);return v(PUd(b,d.value))})("input",function(){u(c);var d=qg(2);return v(PUd(b,d.value))});L();K(3,"mat-autocomplete",4,1);N("optionSelected",function(d){u(c);return v(b.updateSelectionOnChange(d))});Nf(5,hYb,2,2,"mat-option",
5,Mf);L()()}a&2&&(a=qg(4),B(),I("placeholder",b.placeholder),Ag("ngModel",b.selectedSlo),I("disabled",b.isDisabled)("matAutocomplete",a),B(2),I("displayWith",b.displayFn),B(2),Of(b.dropdownChoices))},dependencies:[QX,NX,hA,OX,xj,fE,mE],encapsulation:2});var F5=function(){};F5.\u0275fac=function(a){return new (a||F5)};F5.\u0275mod=$e({type:F5});F5.\u0275inj=Fc({imports:[WO,SX,DE]});var G5=function(){this.documentationLinks=p(cS);this.activeSession=p(uu);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.issueRetentionDisabled=!1;this.modelChange=new aQ;this.validChange=new aQ;this.indefiniteRetentionComponentsAllowlist=new Set(this.activeSession.getIndefiniteRetentionComponentsAllowlist());this.RetentionSelection=Lbd};
G5.prototype.ngOnInit=function(){this.initialModel?this.model=this.initialModel:this.model={retentionSelection:"UNSPECIFIED_RETENTION",retentionPeriodDays:null,piiRetentionSelection:"UNSPECIFIED_RETENTION",piiRetentionPeriodDays:null,spiiRetentionPeriodDays:null};Zt(this)};G5.prototype.updateSelectionOnChange=function(a){this.model.retentionSelection=a;this.model.retentionPeriodDays=null;this.modelChange.emit(this.model);Zt(this)};
var Zt=function(a){var b;if(b=rYb(a))b=(b=a.model.piiRetentionSelection)&&b!==a.RetentionSelection.UNSPECIFIED_RETENTION&&(a.model.piiRetentionSelection!==a.RetentionSelection.BUGANIZER_DEFAULT||!QUd(a))&&(a.model.piiRetentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||RUd(a));a.validChange.emit(b)},SUd=function(a){if(!a.isExternal)return!0;var b=a.componentId&&a.indefiniteRetentionComponentsAllowlist.has(a.componentId),c,d,e=((d=(c=a.componentPathInfo)==null?void 0:c.componentPathId)!=null?d:
[]).some(function(f){return a.indefiniteRetentionComponentsAllowlist.has(f)});return b||e},rYb=function(a){var b=a.model.retentionSelection;return b&&b!==a.RetentionSelection.UNSPECIFIED_RETENTION&&(a.model.retentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||!!a.model.retentionPeriodDays&&a.model.retentionPeriodDays>=30&&a.model.retentionPeriodDays<=7300)},jYb=function(a){return a?BTa(a):"[unset period]"},RUd=function(a){if(!a.model.piiRetentionPeriodDays||!a.model.spiiRetentionPeriodDays||a.model.piiRetentionPeriodDays<
30||a.model.spiiRetentionPeriodDays<30)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&&d>3650||b===a.RetentionSelection.CUSTOM_PERIOD&&(c==null||d>c)?!1:!0},oYb=function(a){if(!rYb(a)||RUd(a))return"";var b=a.model.retentionSelection,c=a.model.piiRetentionPeriodDays,d=a.model.spiiRetentionPeriodDays;if(!c||!d||c<30||d<30)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?e===30?"must be 30 days":"must be between 30 days and "+jYb(e):"Restricted+ retention must not exceed Restricted retention."},QUd=function(a){return a.model.retentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&(!a.model.retentionPeriodDays||a.model.retentionPeriodDays<60)},sYb=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&&e>120);return b===a.RetentionSelection.CUSTOM_PERIOD&&!!c&&c>120||d};G5.\u0275fac=function(a){return new (a||G5)};
G5.\u0275cmp=D({type:G5,selectors:[["b-retention-settings-form"]],inputs:{initialModel:"initialModel",isExternal:"isExternal",issueRetentionDisabled:"issueRetentionDisabled",componentId:"componentId",componentPathInfo:"componentPathInfo"},outputs:{modelChange:"modelChange",validChange:"validChange"},standalone:!1,decls:31,vars:31,consts:[["aria-label","Retention settings form",1,"issue-retention-form",3,"ngModelChange","disabled","name","ngModel"],[3,"value"],["aria-label","Custom retention period, must be between 30 days and 20 years",
3,"value"],[1,"duration-error"],[1,"custom-duration"],["id","custom-retention-warning-box",1,"warning-box"],[3,"disabled","value"],["id","indefinite-retention-warning-box",1,"warning-box"],["aria-label","PII Retention settings form",1,"pii-retention-form",3,"ngModelChange","disabled","name","ngModel"],["target","_blank","aria-label","Learn more about restricted access",1,"keep-underline","keep-focus-ring",3,"rel"],[3,"aria-label","disabled","value"],["id","indefinite-pii-retention-warning-box",1,
"warning-box"],["ariaLabel","Custom duration",3,"durationDaysChange","disabled","durationDays"],[1,"duration-description"],[1,"b-restricted-retention-duration-label"],["ariaLabel","Restricted retention duration",3,"durationDaysChange","disabled","durationDays"],[1,"warning-box"],["ariaLabel","Restricted+ retention duration",3,"durationDaysChange","disabled","durationDays"],["id","custom-pii-retention-warning-box",1,"warning-box"]],template:function(a,b){a&1&&(K(0,"mat-radio-group",0),N("ngModelChange",
function(c){return b.updateSelectionOnChange(c)}),K(1,"p")(2,"b"),Q(3,"Issue Retention"),L()(),K(4,"mat-radio-button",1),Q(5," Buganizer default retention period (for minimal or no PII/SPII): 10 years "),L(),K(6,"mat-radio-button",2),Q(7," Custom retention period "),F(8,iYb,2,0,"span",3),F(9,kYb,4,3,"div",4),F(10,lYb,13,0,"div",5),L(),K(11,"mat-radio-button",6),Q(12),F(13,mYb,13,0,"div",7),L()(),K(14,"mat-radio-group",8),N("ngModelChange",function(c){b.model.piiRetentionSelection=c;b.model.piiRetentionPeriodDays=
null;b.model.spiiRetentionPeriodDays=null;b.modelChange.emit(b.model);Zt(b)}),K(15,"p"),M(16,"br"),K(17,"b"),Q(18,"Restricted Comments/Attachments Retention "),L(),K(19,"a",9),Q(20,"Learn more "),L()(),K(21,"mat-radio-button",1),Q(22," Buganizer default retention period : 60 days "),F(23,nYb,2,0,"span",3),L(),K(24,"mat-radio-button",10),Q(25," Custom retention period "),F(26,pYb,2,1,"span",3),F(27,tYb,16,7,"div",4),L(),K(28,"mat-radio-button",6),Q(29," Match Issue Retention "),F(30,uYb,3,0,"div",
11),L()());a&2&&(wg("empty-list-field-indication",b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION),I("disabled",b.issueRetentionDisabled)("name","retentionForm")("ngModel",b.model.retentionSelection),B(4),I("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),I("value",b.RetentionSelection.CUSTOM_PERIOD),B(2),G(b.model.retentionSelection!==b.RetentionSelection.CUSTOM_PERIOD||b.model.retentionPeriodDays&&b.model.retentionPeriodDays>=30&&b.model.retentionPeriodDays<=7300?-1:
8),B(),G(b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD?9:-1),B(),G(b.model.retentionPeriodDays&&b.model.retentionPeriodDays>3650?10:-1),B(),I("disabled",!SUd(b))("value",b.RetentionSelection.INDEFINITE_RETENTION),B(),S(" Indefinite retention period ",SUd(b)?"":"(Internal components only)"," "),B(),G(b.model.retentionSelection===b.RetentionSelection.INDEFINITE_RETENTION?13:-1),B(),wg("empty-list-field-indication",b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION),
I("disabled",b.issueRetentionDisabled)("name","piiRetentionForm")("ngModel",b.model.piiRetentionSelection),B(5),I("rel",b.EXTERNAL_LINK_REL),If("href",b.documentationLinks.getRestrictedAccessHelpLink(),Ne),B(2),I("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),G(b.model.piiRetentionSelection===b.RetentionSelection.BUGANIZER_DEFAULT&&QUd(b)?23:-1),B(),Hf("aria-label","Custom Retention Period,"+oYb(b)),I("disabled",!rYb(b))("value",b.RetentionSelection.CUSTOM_PERIOD),B(2),G(b.model.piiRetentionSelection!==
b.RetentionSelection.CUSTOM_PERIOD||RUd(b)?-1:26),B(),G(b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD?27:-1),B(),I("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),B(2),G(b.model.piiRetentionSelection===b.RetentionSelection.INDEFINITE_RETENTION&&sYb(b)?30:-1))},dependencies:[fE,mE,tT,uT,A5],styles:[".mat-mdc-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}[_nghost-%COMP%]     .mat-mdc-radio-button .mat-internal-form-field{--mat-radio-state-layer-size: 2.2em;align-items:flex-start}"],
changeDetection:0});var H5=function(){};H5.\u0275fac=function(a){return new (a||H5)};H5.\u0275mod=$e({type:H5});H5.\u0275inj=Fc({imports:[WO,DE,HU,MUd]});var TUd=function(){this.type="component";this.includeChildren=!1},UUd=function(){this.type="tracker"},VUd=function(){this.type="team";this.includeChildren=!1},WUd=function(){this.type="hotlist"},XUd=function(){this.type="savedsearch"},YUd=function(){this.type="customfield"};var ZUd=function(a,b){this.query=a;this.cursorIdx=b;this.label=null;this.value={val:"",idx:0};this.value.idx=b},$Ud="componentid c hotlistid h savedsearchid teamid trackerid".split(" "),aVd=$Ud.concat("accesslevel archived assignee attachment attachmentanalysis attachmentcount blockedbyid blockingid canonicalid cc cccount collaborator collaboratorcount cl comment commentcount commenter created customfield descendantcount deleted deletionreason deletiontime duplicatecount effortlabel escalationowner foundin id inprod insight is lastcommenter lastmodifier mention modified modifier mute onedayviewcount opendescendantcount p parentid postmortem priority reporter resolved s sevendayviewcount severity staffingplaceholder staffingplaceholdercount staffinguser staffingusercount star status t targetedto thirtydayviewcount title type verified verifiedin verifier vote votecount nearestslo".split(" ")),
bVd="attachmentanalysis cl deleted deletionreason deletiontime escalationowner insight nearestslo postmortem staffingplaceholder staffingplaceholdercount staffinguser staffingusercount teamid".split(" "),cVd="(?:\\s|^)(-?)(customfield\\d+|"+aVd.join("|")+")(:|>|<|>=|<=|=)";var I5=function(){Z.call(this);var a=this;this.appSearchState=p(rT);this.trackerFridge=p(VQ);this.trackerHelpers=p(kS);this.customFieldsApi=p(uP);this.hotlistApi=p(gP);this.savedSearchApi=p(oP);this.componentActions=p(VV);this.teamsService=p(OQ);this.activeSession=p(uu);this.currentUserBookmarksFridge=p(qP);this.query="";this.requestIndex=0;this.atomsWithoutOp=Object.freeze(new Set(["customfield"]));this.producers=[{match:function(e){return dVd(a,e)}},{updateHeader:function(e){return eVd(a,e)}},{updateHeader:function(e){return fVd(a,
e)}},{updateHeader:function(e){return gVd(a,e)}},{updateHeader:function(e){return hVd(a,e)}},{updateHeader:function(e){return iVd(a,e)}},{updateHeader:function(e){return jVd(a,e)}}];this.currentSearchContext=null;this.items=[];this.acHeader=null;this.acRefreshed$=new qf;this.refreshRequest$=new qf;var b=this.activeSession.getFlag("enableEscalationOwnerRolloutUi");this.refreshRequest$.pipe(jf(250),zf(this.destroyed$)).subscribe(function(e){kVd(a,e.currentRequestIndex,e.currentSearchContext)});this.sessionIsInternal=
this.activeSession.isInternalSession();var c=new Set(aVd);b||c.delete("escalationowner");if(!this.sessionIsInternal){b=m(bVd);for(var d=b.next();!d.done;d=b.next())c.delete(d.value)}this.isTrackerSearchEnabled()||c.delete("trackerid");this.atoms=Object.freeze(c)};Y(I5,Z);I5.\u0275dir=Z.\u0275dir;I5.prototype.isTrackerSearchEnabled=function(){return!rs(this.activeSession)};
var kVd=function(a,b,c){for(var d=!1,e=!1,f=[],g=m(a.producers),k=g.next();!k.done;k=g.next())k=k.value,k.match&&f.push(k.match(c).then(function(l){d||(d=!0,a.items=[]);b<a.requestIndex||a.items.push.apply(a.items,q(l))}).catch(function(l){return l})),k.updateHeader&&f.push(k.updateHeader(c).then(function(l){e||(e=!0,a.acHeader=null);b<a.requestIndex||(a.acHeader=l)}).catch(function(l){return l}));Promise.all(f).finally(function(){d||(a.items=[]);e||(a.acHeader=null);a.acRefreshed$.next()})},dVd=
function(a,b){if(!b.value.val){var c=b.value.idx;if(c<b.query.length&&b.query.charAt(c).search("\\s")===-1)return Promise.reject(null)}var d,e;if(((d=b.value)==null?0:d.val.startsWith("cf"))||((e=b.value)==null?0:e.val.startsWith("customfield")))return lVd(a,b);if(b.label){if(b.label.customFieldId)return mVd(a,b);switch(b.label.val){case "archived":return Promise.resolve(bu(nVd,b.value,!0));case "componentid":case "c":return oVd(a,b);case "deleted":return pVd(b);case "deletionreason":return Promise.resolve(bu(qVd,
b.value,!0));case "hotlistid":case "h":return rVd(a,b);case "savedsearchid":return sVd(a,b);case "status":case "is":return Promise.resolve(bu(tVd,b.value,!0));case "trackerid":return uVd(a,b);case "teamid":return vVd(a,b);case "type":case "t":return a.matchType(b);case "priority":case "p":return Promise.resolve(bu(wVd,b.value,!0));case "severity":case "s":return Promise.resolve(bu(xVd,b.value,!0));case "inprod":case "star":case "mute":return pVd(b);case "accesslevel":return Promise.resolve(bu(yVd,
b.value,!0));case "staffingplaceholder":return zVd(a,b);default:return Promise.reject(null)}}if(!b.value.val)return Promise.reject(null);c=[];d=xYb(b.value.val);e=m(a.atoms);for(var f=e.next();!f.done;f=e.next())if(f=f.value,d.token!==f&&f.startsWith(d.token)){var g=b.value.idx+(d.negated?1:0);g={type:"atom",startIdx:g,endIdx:g+b.value.val.length,completionValue:f+(a.atomsWithoutOp.has(f)?"":":"),enableShadowPlaceholder:!0};c.push({trackId:"atom:"+f,name:f,completionCfg:g})}c.sort(function(k,l){return wa(k.name,
l.name)});return Promise.resolve(c)},lVd=function(a,b){var c=b.value.val.replace(/^(cf|customfield)/,""),d=Jqd(a.appSearchState);if(!c&&!d)return Promise.reject(null);var e=Nmd(a.trackerHelpers)||[];return a.customFieldsApi.query({query:d?"componentid:"+d+" "+c:c,trackerIds:e}).then(function(f){return AVd(a,b,f)})},AVd=function(a,b,c){var d=c.customFields.map(function(g){return g.componentId}).filter(Pm);d.length>0&&a.componentActions.bulkLoad(d);d=[];c=m(c.customFields);for(var e=c.next(),f={};!e.done;f=
{customField$jscomp$31:void 0},e=c.next())f.customField$jscomp$31=e.value,e=a.getComponentPathNames(f.customField$jscomp$31).then(function(g){return function(k){var l=g.customField$jscomp$31,r=b.value.val,w=l.customFieldId,x=b.value.idx;return{id:w,componentPathNames:k,name:l.name,trackId:"customField:"+w,completionCfg:{type:"customField",startIdx:x,endIdx:x+r.length,completionValue:"customfield"+w+":",matchingString:r}}}}(f)),d.push(e);return Promise.all(d)};
I5.prototype.getComponentPathNames=function(a){if(a.componentId){var b=a.componentId;return this.componentActions.get(b).then(function(c){var d;return((d=c.componentPathInfo)==null?void 0:d.componentPathName)||[]}).catch(function(){return[b]})}return Promise.resolve([])};
var mVd=function(a,b){return b.label&&b.label.customFieldId?a.customFieldsApi.get(b.label.customFieldId).then(function(c){if(c.type!=="ENUM"&&c.type!=="REPEATED_ENUM"||!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 bu(d,b.value,!1,!1)}):Promise.reject(null)};
I5.prototype.matchType=function(a){return Promise.resolve(bu(BVd,a.value,!0))};
var zVd=function(a,b){return Promise.resolve(bu(a.activeSession.getFlag("enableStaffingFieldEnhancementsUi")?CVd:DVd,b.value,!0))},pVd=function(a){if(!a.label)return Promise.reject(null);var b=a.label.val;return Promise.resolve(bu([{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))},
oVd=function(a,b){var c=b.value.val;return!c||au(c,!0)?Promise.reject(null):a.componentActions.search(c,!1).then(function(d){return a.processResponse(b,d)})};
I5.prototype.processResponse=function(a,b){var c=a.value.val,d=[];b=m(b);for(var e=b.next(),f={};!e.done;f={paths$jscomp$19:void 0,startIdx$jscomp$4:void 0,endIdx$jscomp$4:void 0},e=b.next()){e=e.value;var g=e.componentId;f.startIdx$jscomp$4=a.value.idx;f.endIdx$jscomp$4=f.startIdx$jscomp$4+c.length;f.paths$jscomp$19=ju(this.trackerHelpers,e.componentPathInfo);f={id:g,name:e.name,description:e.description,trackId:"component:"+g,accessLimit:e.accessLimit,trackerId:e.trackerId,completionCfg:{type:"component",
startIdx:f.startIdx$jscomp$4,endIdx:f.endIdx$jscomp$4,completionValue:g,matchingString:c},componentPath:f.paths$jscomp$19.componentPathId.map(function(k){return function(l,r){return{trackId:"subcomponent:"+l,id:l,name:k.paths$jscomp$19.componentPathName[r],completionCfg:{type:"component",completionValue:l,startIdx:k.startIdx$jscomp$4,endIdx:k.endIdx$jscomp$4}}}}(f))};d.push(f)}return d};
var vVd=function(a,b){var c=b.value.val;if(!a.sessionIsInternal||!c||au(c,!0))return Promise.reject(null);var d=qo();QQ(a.teamsService,c).pipe(zf(a.destroyed$)).subscribe(function(e){var f=b.value.idx,g=f+c.length,k=[];e=m(e);for(var l=e.next(),r={};!l.done;r={pathNames$jscomp$6:void 0},l=e.next())l=l.value,r.pathNames$jscomp$6=l.pathNames,r={trackId:"team:"+l.teamId,name:l.name,id:l.teamId,label:"Team "+l.teamId,pathIds:l.pathIds,pathNames:l.pathNames,description:l.description,completionCfg:{type:"team",
startIdx:f,endIdx:g,completionValue:String(l.teamId),matchingString:c},teamPath:l.pathIds.map(function(w){return function(x,C){return{trackId:"team:"+x,id:x,name:w.pathNames$jscomp$6[C],completionCfg:{type:"team",completionValue:String(x),startIdx:f,endIdx:g}}}}(r))},k.push(r);d.resolve(k)},function(){d.reject()});return d.promise},eVd=function(a,b){if(!b.label||b.label.val!=="componentid"&&b.label.val!=="c")return Promise.reject(null);var c=new TUd;b=b.value.val;return au(b,!0)?(va(b,"+")&&(b=b.slice(0,
b.length-1),c.includeChildren=!0),a.componentActions.get(b).then(function(d){var e;rs(a.activeSession)&&d.trackerId!==((e=a.activeSession.getTracker())==null?void 0:e.trackerId)||(c.component=d);return c})):Promise.resolve(c)},hVd=function(a,b){if(!a.isTrackerSearchEnabled()||!b.label||b.label.val!=="trackerid")return Promise.reject(null);var c=new UUd,d=qo();b=b.value.val;au(b)?a.trackerFridge.watch(b).pipe(zf(a.destroyed$)).subscribe(function(e){c.tracker=e;d.resolve(c)}):b&&d.resolve(c);return d.promise},
jVd=function(a,b){if(!a.sessionIsInternal||!b.label||b.label.val!=="teamid")return Promise.reject(null);var c=new VUd,d=qo(),e=b.value.val;au(e,!0)?(va(e,"+")&&(e=e.slice(0,e.length-1),c.includeChildren=!0),QQ(a.teamsService,e).pipe(zf(a.destroyed$)).subscribe(function(f){f.length>0?(f=f[0],c.team={pathNames:f.pathNames,name:f.name,description:f.description}):c.team={pathNames:[e],name:e,description:""};d.resolve(c)},function(){c.team={pathNames:[e],name:e,description:""};d.resolve(c)})):d.resolve(c);
return d.promise},fVd=function(a,b){if(!b.label||b.label.val!=="hotlistid"&&b.label.val!=="h")return Promise.reject(null);var c=new WUd;b=b.value.val;return au(b)?a.hotlistApi.get(b).then(function(d){c.hotlist=d;return c}):b?Promise.reject(null):Promise.resolve(c)},gVd=function(a,b){if(!b.label||b.label.val!=="savedsearchid")return Promise.reject(null);var c=new XUd;b=b.value.val;return au(b)?a.savedSearchApi.get(b).then(function(d){c.savedSearch=d;return c}):b?Promise.reject(null):Promise.resolve(c)},
iVd=function(a,b){if(b.label&&b.label.customFieldId)var c=b.label.customFieldId;else if(b.value.val.startsWith("customfield"))(b=b.value.val.match("^customfield(\\d+)"))&&(c=b[1]),dr("search-usage","customfield");else return Promise.reject(null);var d=new YUd;return c?a.customFieldsApi.get(c).then(function(e){d.customField=e;return d}):Promise.resolve(d)},uVd=function(a,b){var c=b.value.val;if(!a.isTrackerSearchEnabled()||!c||au(c,!0))return Promise.reject(null);var d=qo();a.trackerFridge.watchMany({filter:c,
pageSize:5}).pipe(zf(a.destroyed$)).subscribe(function(e){var f=b.value.idx,g=f+c.length,k=[];e=m(e.results);for(var l=e.next();!l.done;l=e.next())l=l.value,k.push({trackId:"trackerid:"+l.trackerId,name:l.name,id:l.trackerId,label:"Tracker "+l.trackerId,completionCfg:{type:"tracker",startIdx:f,endIdx:g,completionValue:l.trackerId,matchingString:c}});d.resolve(k)});return d.promise},rVd=function(a,b){return au(b.value.val)?Promise.reject(null):fe(rP(a.currentUserBookmarksFridge)).then(function(c){c=
c.map(function(d){var e=d.hotlistId;return{id:e,name:d.name,trackId:"hotlist:"+e,completionCfg:{type:"hotlist",completionValue:""+e}}});return bu(c,b.value,!1,!0)})},sVd=function(a,b){return au(b.value.val)?Promise.reject(null):fe(jfd(a.currentUserBookmarksFridge)).then(function(c){c=c.map(function(d){var e=d.searchId;return{id:e,name:d.name,query:d.query,trackId:"savedsearch:"+e,completionCfg:{type:"savedsearch",completionValue:e}}});return bu(c,b.value,!1,!0)})};
I5.\u0275fac=function(a){return new (a||I5)};I5.\u0275prov=Dc({token:I5,factory:I5.\u0275fac,providedIn:"root"});
var tVd="accepted assigned closed duplicate fixed inactive infeasible intended_behavior new not_reproducible obsolete open verified".split(" ").map(function(a){return cu({name:a,label:"Status",type:"status"})}),BVd="bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue program project feature milestone epic story task".split(" ").map(function(a){return cu({name:a,label:"Type",type:"type",trackIdPrefix:"bugType"})}),wVd=["p0","p1","p2","p3","p4"].map(function(a){return cu({name:a,
label:"Priority",type:"priority"})}),xVd=["s0","s1","s2","s3","s4"].map(function(a){return cu({name:a,label:"Severity",type:"severity"})}),nVd=["all","true","false"].map(function(a){return cu({name:a,label:"Archived",type:"archived"})}),qVd=["abuse","pii","user_request","retention"].map(function(a){return cu({name:a,label:"Deletion Reason",type:"deletionreason",trackIdPrefix:"deletionReason"})}),yVd=[["limit_none","Default access"],["limit_view","Limited visibility"],["limit_append","Limited commenting"],
["limit_view_trusted","Limited visibility + Google"]].map(function(a){var b=m(a);a=b.next().value;b=b.next().value;return cu({name:b,label:"Issue access level",type:"accesslevel",id:a})}),DVd=[["swe",JN.SWE],["sre",JN.SRE],["pm",JN.PM],["tpgm",JN.TPGM],["ux",JN.UX]].map(function(a){var b=m(a);a=b.next().value;b=b.next().value;return cu({name:b,label:"Staffing - Placeholder",type:"staffingplaceholder",id:a})}),CVd=[["swe",JN.SWE],["sre",JN.SRE],["pm",JN.PM],["tpgm",JN.TPGM],["ux",JN.UX],["uxd",JN.UXD],
["uxr",JN.UXR],["datasci",JN.DATASCI],["ld",JN.LD],["devrel",JN.DEVREL],["tw",JN.TW],["gtm",JN.GTM],["ce",JN.CE],["other",JN.OTHER]].map(function(a){var b=m(a);a=b.next().value;b=b.next().value;return cu({name:b,label:"Staffing - Placeholder",type:"staffingplaceholder",id:a})});var J5=function(){this.cdr=p(bQ,{self:!0});this.optionsChange=new aQ};J5.prototype.ngOnInit=function(){EVd(this)};J5.prototype.onSelectionChanged=function(){EVd(this);FVd(this);this.optionsChange.emit(this.options)};
var EVd=function(a){var b=null,c;for(c in a.options.propertyValues){var d=a.options.propertyValues[c].value;if(b===null)b=d;else if(b!=d){a.selectAllValue=null;return}}a.selectAllValue=b},FVd=function(a){a.validator&&(a.errorString=a.validator(),a.cdr.detectChanges())},GVd=function(a,b){if(b=b===void 0?null:b)b.preventDefault(),b.stopPropagation();a.selectAllValue=a.selectAllValue===null?!0:!a.selectAllValue;a.options.setAll(a.selectAllValue);a.optionsChange.emit(a.options);FVd(a)},HVd=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(", ")};J5.\u0275fac=function(a){return new (a||J5)};
J5.\u0275cmp=D({type:J5,selectors:[["slo-element-property-picker"]],inputs:{selectAllText:"selectAllText",validator:"validator",options:"options"},outputs:{optionsChange:"optionsChange"},standalone:!1,features:[Gg([bQ])],decls:17,vars:11,consts:[["menu","matMenu"],["type","button","mat-stroked-button","",1,"bv2-appbar-menu",3,"matMenuTriggerFor"],[1,"flex-kids-x","flex-cross-axis-centered"],[1,"bv2-property-picker-summary-text"],["svgIcon","arrow-dropdown"],["mat-menu-item","","role","menuitemcheckbox",
1,"bv2-property-picker-selectall","bv2-property-picker-option-row",3,"click"],[3,"change","checked","indeterminate"],["mat-menu-item","","role","menuitemcheckbox",1,"bv2-property-picker-options"],[1,"bv2-property-picker-error-message"],["title","option",1,"bv2-property-picker-option-row",3,"click"],[3,"change","click","checked"]],template:function(a,b){if(a&1){var c=t();K(0,"div")(1,"button",1)(2,"div",2)(3,"span",3);Q(4);Q(5," \u00a0 ");L();M(6,"mat-icon",4);L()();K(7,"mat-menu",null,0)(9,"div",
5);N("click",function(d){u(c);return v(GVd(b,d))});K(10,"mat-checkbox",6);N("change",function(d){u(c);b.selectAllValue=d.checked;return v(GVd(b))});Q(11);L()();M(12,"mat-divider");Nf(13,yYb,4,3,"div",7,Mf);T(15,"keyvalue");L();F(16,zYb,2,1,"div",8);L()}a&2&&(a=qg(8),B(),wg("ng-invalid",!!b.errorString),I("matMenuTriggerFor",a),B(3),S(" ",HVd(b)," "),B(5),If("aria-checked",b.selectAllValue),B(),I("checked",!!b.selectAllValue)("indeterminate",b.selectAllValue===null),B(),S(" ",b.selectAllText," "),
B(2),Of(U(15,9,b.options.propertyValues)),B(3),G(b.errorString?16:-1))},dependencies:[Jy,kL,hI,VJ,fH,dH,iH,hK,kB,gB,Yx],styles:["[_nghost-%COMP%]   .gmat-mdc-button[_ngcontent-%COMP%] {padding: 0 10px;}\n[_nghost-%COMP%]   .bv2-property-picker-summary-text[_ngcontent-%COMP%] {text-align: left;}"]});
var IVd=function(a,b){this.displayString=a;this.value=b},JVd=function(a){this.propertyValues=a},KVd=function(a){for(var b=m(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(a.propertyValues[c.value].value)return!0;return!1},vZb=function(a){for(var b=m(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(!a.propertyValues[c.value].value)return!1;return!0};JVd.prototype.setAll=function(a){for(var b in this.propertyValues)this.propertyValues[b].value=a};var K5=function(){};K5.\u0275fac=function(a){return new (a||K5)};K5.\u0275mod=$e({type:K5});K5.\u0275inj=Fc({imports:[WO,lL,WJ,iK,mB]});var LVd=function(a,b){this.name=a;this.secondsPerUnit=b},LYb=new LVd("minute",60),MYb=new LVd("hour",3600),NYb=new LVd("day",86400),L5=function(){this.errorString=null;this.objectiveDurationChange=new aQ;this.objectiveBusinessDaysChange=new aQ;this.intervalUnit=NYb};L5.prototype.ngOnInit=function(){MVd(this)};L5.prototype.ngOnChanges=function(a){[a.objectiveBusinessDays,a.objectiveDuration,a.dayType].some(function(b){return b&&!b.firstChange})&&MVd(this)};
var CYb=function(a,b){b=b.name;rm(a.intervalString)!==1&&(b+="s");return b},KYb=function(a){return a.dayType==="BUSINESS"},MVd=function(a){!KYb(a)&&NVd(a,NYb)||NVd(a,MYb)||NVd(a,LYb);if(a.objectiveBusinessDays!=0||a.businessDayString!="")a.businessDayString=""+a.objectiveBusinessDays},NVd=function(a,b){var c=a.objectiveDuration.seconds;return c%b.secondsPerUnit==0?(c/=b.secondsPerUnit,c!=0||a.intervalString!=""?(a.intervalString=""+c,a.intervalUnit=b):(KYb(a)?[LYb,MYb]:[LYb,MYb,NYb]).includes(a.intervalUnit)||
(a.intervalUnit=b),!0):!1},FYb=function(a){a.validator&&(a.errorString=a.validator(a.intervalString,a.businessDayString));IYb(a);JYb(a)},IYb=function(a){a.objectiveDuration.seconds=a.intervalUnit.secondsPerUnit*(rm(a.intervalString)||0);a.objectiveDurationChange.emit(a.objectiveDuration)},JYb=function(a){a.objectiveBusinessDays=rm(a.businessDayString)||0;a.objectiveBusinessDaysChange.emit(a.objectiveBusinessDays)};L5.\u0275fac=function(a){return new (a||L5)};
L5.\u0275cmp=D({type:L5,selectors:[["slo-objective-selector"]],inputs:{isDisabled:"isDisabled",validator:"validator",dayType:"dayType",objectiveDuration:"objectiveDuration",objectiveBusinessDays:"objectiveBusinessDays"},outputs:{objectiveDurationChange:"objectiveDurationChange",objectiveBusinessDaysChange:"objectiveBusinessDaysChange"},standalone:!1,features:[jx],decls:2,vars:1,consts:[[1,"disabled"],[1,"enabled","bv2-slo-objective"],[1,"bv2-slo-objective-biz-day-text"],[1,"bv2-slo-objective-interval"],
["type","text",3,"ngModelChange","ngModel"],[1,"bv2-slo-objective-unit",3,"ngModelChange","selectionChange","ngModel"],[3,"value"],[1,"bv2-slo-objective-unit"]],template:function(a,b){a&1&&F(0,EYb,3,2,"span",0)(1,OYb,7,5,"span",1);a&2&&G(b.isDisabled?0:1)},dependencies:[xj,fE,mE,yU,TH,hA],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-mdc-select-value{font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500;color:#1a73e8;color:var(--link);min-width:60px}input.ng-invalid.ng-dirty[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-high-contrast);border-width:2px}/*# sourceMappingURL=slo_objective_selector.css.map */']});var OVd=function(){this.typeStringToEnum=new Map([["BUG","BUG"],["FEATURE_REQUEST","FEATURE_REQUEST"],["CUSTOMER_ISSUE","CUSTOMER_ISSUE"],["INTERNAL_CLEANUP","INTERNAL_CLEANUP"],["PROCESS","PROCESS"],["VULNERABILITY","VULNERABILITY"],["PRIVACY_ISSUE","PRIVACY_ISSUE"],["PROGRAM","PROGRAM"],["PROJECT","PROJECT"],["FEATURE","FEATURE"],["MILESTONE","MILESTONE"],["EPIC","EPIC"],["STORY","STORY"],["TASK","TASK"]]);this.enumTypeToString=new Map([["BUG","BUG"],["FEATURE_REQUEST","FEATURE_REQUEST"],["CUSTOMER_ISSUE",
"CUSTOMER_ISSUE"],["INTERNAL_CLEANUP","INTERNAL_CLEANUP"],["PROCESS","PROCESS"],["VULNERABILITY","VULNERABILITY"],["PRIVACY_ISSUE","PRIVACY_ISSUE"],["PROGRAM","PROGRAM"],["PROJECT","PROJECT"],["FEATURE","FEATURE"],["MILESTONE","MILESTONE"],["EPIC","EPIC"],["STORY","STORY"],["TASK","TASK"]]);this.priorityStringToEnum=new Map([["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"]]);this.enumPriorityToString=new Map([["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"]]);this.postmortemValuesToCanonical=
new Map([["TRUE","ANY"],["FALSE","NONE"],["ANY","ANY"],["NONE","NONE"]]);this.canonicalGroupQueryKeywordToQueryValue=new Map([["ANY","any"],["NONE","none"]])},SVd=function(a,b){var c=new PVd,d=QVd(b,"type",function(f){var g=f.toUpperCase(),k=new RVd;a.typeStringToEnum.has(g)?k.value=g:k.error='The string "'+f+'" is not a valid type';return k});if(d.error)return c.error=d.error,c;d=m(d.values);for(var e=d.next();!e.done;e=d.next())c.types.push(a.typeStringToEnum.get(e.value));d=QVd(b,"priority",function(f){var g=
f.toUpperCase(),k=new RVd;a.priorityStringToEnum.has(g)?k.value=g:k.error='The string "'+f+'" is not a valid priority';return k});if(d.error)return c.error=d.error,c;d=m(d.values);for(e=d.next();!e.done;e=d.next())c.priorities.push(a.priorityStringToEnum.get(e.value));b=QVd(b,"postmortem",function(f){var g=f.toUpperCase(),k=new RVd;a.postmortemValuesToCanonical.has(g)?k.value=g:k.error='The string "'+f+'" is not a valid postmortem value';return k});if(b.error)c.error=b.error;else for(b=m(b.values),
d=b.next();!d.done;d=b.next())c.postmortemValues.push(a.postmortemValuesToCanonical.get(d.value));return c},QVd=function(a,b,c){var d=new TVd;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};OVd.\u0275fac=function(a){return new (a||OVd)};OVd.\u0275prov=Dc({token:OVd,factory:OVd.\u0275fac,providedIn:"root"});
var PVd=function(){this.types=[];this.priorities=[];this.postmortemValues=[];this.error=""},TVd=function(){this.values=[];this.error=""},RVd=function(){this.error=this.value=""};var M5=function(){};M5.prototype.validate=function(a){for(var b={},c=m(Object.entries(this.validators)),d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;e(a.value)||(b[d]=!0)}return Object.keys(b).length?b:null};M5.\u0275fac=function(a){return new (a||M5)};M5.\u0275dir=af({type:M5,selectors:[["","customValidators",""]],inputs:{validators:[0,"customValidators","validators"]},standalone:!1,features:[Gg([{provide:bE,useExisting:M5,multi:!0}])]});var N5=function(){this.constants=p(gS);this.sloParseService=p(OVd);this.confirmationDialogService=p(dS);this.collection=[];this.boundCollection=[];this.onCollectionUpdate=new aQ;this.onValidation=new aQ;this.metricChoices=["METRIC_UNSPECIFIED"].concat($id);this.dayTypes=["CALENDAR","BUSINESS"];$id.map(function(a,b){return[a,b]});this.selectedMetric="METRIC_UNSPECIFIED";this.selectedDayType="CALENDAR";this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.anyNoneDisplayValues=
new Map([["ANY","Has postmortem"],["NONE","No postmortem"]]);this.postmortemAllSummaryValue="Either";this.canPerformActionsInternal=!1;this.openRow=null;this.selectedMetric=this.metricChoices[0];this.selectedDayType="CALENDAR";this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.canPerformActions=!0};N5.prototype.updateValidity=function(){this.canPerformActions=!this.openRow};
var zZb=function(a,b,c){wZb(a);a=m(a.collection);for(var d=a.next();!d.done;d=a.next())d.value.canEdit=!1;b.startEditing();c&&c.stopPropagation()},CZb=function(a,b,c){c=FZb(a,b,c);var d=c.newOffset;c.valid&&(wZb(a),La(a.collection,b),La(a.boundCollection,b.sloElement),a.collection.splice(d,0,b),a.boundCollection.splice(d,0,b.sloElement),UVd(a))},FZb=function(a,b,c){b=a.collection.indexOf(b)+c;return{valid:b>=0&&b<a.collection.length,newOffset:b}},wZb=function(a){a=m(a.collection);for(var b=a.next();!b.done;b=
a.next())b=b.value,b.stopEditing(),b.canEdit=!0},VVd=function(a,b){var c=b.map(function(d){return new O5(d,a)});a.openRow=null;a.collection=c;a.boundCollection=b;a.updateValidity()},lZb=function(a){return a==="METRIC_UNSPECIFIED"?" - ":ajd.get(a)},YYb=function(a,b){return b!=="TYPE_UNSPECIFIED"&&a.constants.issueTypesDisplayNames.has(b)?a.constants.issueTypesDisplayNames.get(b):" - "},dZb=function(a,b){return b!=="PRIORITY_UNSPECIFIED"&&a.constants.issuePrioritiesDisplayNames.has(b)?a.constants.issuePrioritiesDisplayNames.get(b):
" - "},xZb=function(a,b){wZb(a);La(a.collection,b);La(a.boundCollection,b.sloElement);UVd(a)},RYb=function(a,b){a.confirmationDialogService.open({title:"Are you sure you'd like to clear all the rules?",content:Bh("This won't take effect until you save the changes, but any local changes will be lost."),onConfirm:function(){a.collection=[];a.boundCollection=[];UVd(a)},onDismiss:function(){}});b.stopPropagation()},PYb=function(a,b){var c=new O5({metric:"METRIC_UNSPECIFIED",matcher:"",dayType:"DAY_TYPE_UNSPECIFIED",
objective:{seconds:0,nanos:0},businessDays:0},a,!0);zZb(a,c);a.collection.splice(b,0,c);a.boundCollection.splice(b,0,c.sloElement);UVd(a)};N5.prototype.onDrop=function(a){CZb(this,this.collection[a.previousIndex],a.currentIndex-a.previousIndex)};var UVd=function(a){a.onCollectionUpdate.emit(a.boundCollection)};
da.Object.defineProperties(N5.prototype,{collectionInput:{configurable:!0,enumerable:!0,set:function(a){VVd(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=m(this.collection),c=b.next();!c.done;c=b.next())c=c.value,c.canEdit=!a||this.openRow===c},
get:function(){return this.isDisabledInternal}}});N5.\u0275fac=function(a){return new (a||N5)};
N5.\u0275cmp=D({type:N5,selectors:[["slo-elements-picker"]],inputs:{collectionInput:[0,"collection","collectionInput"],isDisabled:"isDisabled"},outputs:{onCollectionUpdate:"onCollectionUpdate",onValidation:"onValidation"},standalone:!1,decls:29,vars:5,consts:[["settingsMenu","matMenu"],[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"],[1,"bv2-slo-elements-actionbar"],["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"],[1,"bv2-slo-elements-table-empty-list-description"],[1,"slo-picker-actions"],[1,"slo-picker-icon-action-icon-container"],["matTooltip","Add a new rule",1,"hoverable",3,"name","size"],["matTooltip","Clear all rules",1,"hoverable",3,"click","name","size"],["matTooltip","Add a new rule",1,"hoverable",3,"click","name","size"],["cdkDropList","",3,"cdkDropListDropped","cdkDropListData","cdkDropListDisabled"],["cdkDrag","",1,"bv2-slo-element-row",
3,"draggable"],["cdkDrag","",1,"bv2-slo-element-row"],[1,"bv2-slo-element-row-counter","editable-row"],[1,"bv2-slo-element-row-counter","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-type-column","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-type-column","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-priority-column","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-priority-column","bv2-slo-element-picker-column",
"display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-postmortem-column","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-postmortem-column","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-metric","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-metric","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-objective","bv2-editable-slo-element","editable-row"],[1,
"bv2-slo-element-objective","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-daytype","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-daytype","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-action","editable-row"],[1,"bv2-slo-element-action","display-row"],[1,"bv2-type-property-picker",3,"optionsChange","selectAllText","validator","options"],[1,"bv2-property-display-chips"],[1,"bv2-property-display-chip-container"],
[1,"matcher-chip-content"],[1,"bv2-priority-property-picker",3,"optionsChange","selectAllText","validator","options"],[1,"bv2-postmortem-property-picker",3,"optionsChange","selectAllText","validator","options"],["appearance","outline","subscriptSizing","dynamic"],["required","true",1,"bv2-enum-field","bv2-slo-elements-picker-metric-selector",3,"ngModelChange","ngModel","customValidators"],[3,"value"],["required","",3,"objectiveDurationChange","objectiveBusinessDaysChange","dayType","objectiveDuration",
"objectiveBusinessDays","validator","isDisabled"],["required","",3,"objectiveDurationChange","objectiveBusinessDaysChange","dayType","objectiveDuration","objectiveBusinessDays","isDisabled"],[1,"bv2-enum-field","bv2-slo-elements-picker-daytype-selector",3,"ngModelChange","selectionChange","ngModel"],["matTooltip","Finish editing",1,"bv2-slo-element-action",3,"click","name","size"],["matTooltip","Remove row",1,"bv2-slo-element-action",3,"click","name","size"],["matTooltip","Edit this rule",1,"hoverable",
"bv2-slo-element-action-edit",3,"name","size"],["matTooltip","More options",1,"hoverable","bv2-slo-element-action-more-settings",3,"name","size","matMenuTriggerFor"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-down"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-up"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-add-row-below",3,"click"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-add-row-above",
3,"click"],["type","button","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,"click","name","size"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-down",3,"click"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-up",3,"click"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div")(2,"div")(3,"label",2),Q(4,"Rules"),L(),K(5,"a",3),
M(6,"b-icon",4),L(),F(7,SYb,6,3,"span",5),L(),K(8,"table",6)(9,"thead")(10,"tr",7)(11,"th",8),Q(12,"Order"),L(),K(13,"th",9),Q(14,"Type"),L(),K(15,"th",10),Q(16,"Priority"),L(),K(17,"th",11),Q(18,"Postmortem"),L(),K(19,"th",12),Q(20,"Metric"),L(),K(21,"th",13),Q(22,"Objective"),L(),K(23,"th",14),Q(24," Day Type "),L(),M(25,"th",15),L()(),F(26,IZb,3,2,"tbody",16),L(),K(27,"div"),F(28,JZb,2,0,"div",17),L()()());a&2&&(B(6),I("name","help-outline")("size","small"),B(),G(b.isDisabled?-1:7),B(19),G(b.collection&&
b.collection.length!=0?26:-1),B(2),G(b.collection&&b.collection.length!=0?-1:28))},dependencies:[M5,MV,LV,fE,yE,mE,sT,HD,SD,VJ,fH,dH,iH,yU,TH,hA,vK,nA,J5,L5],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-mdc-select-value-text, .cdk-drag-preview[_ngcontent-%COMP%]     .bv2-slo-elements-picker-metric-selector .mat-mdc-select-value-text{padding-left:4px;text-align:left;width:8em}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-table-empty-list-description[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-table-empty-list-description[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);color:#5f6368;color:var(--muted);line-height:32px;text-align:center}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]{cursor:default;display:inline-block;font-size:.8125rem;padding-top:2px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--c100);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:3px;display:inline-block;height:20px;margin-right:4px;white-space:nowrap}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%]   .matcher-chip-content[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%]   .matcher-chip-content[_ngcontent-%COMP%]{display:inline-block;line-height:16px;margin:2px 5px;max-width:550px;overflow:hidden;text-overflow:ellipsis}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .ng-dirty.ng-invalid[_ngcontent-%COMP%] > .jfk-select[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .ng-dirty.ng-invalid[_ngcontent-%COMP%] > .jfk-select[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-high-contrast);border-width:2px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-table-label[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-table-label[_ngcontent-%COMP%]{font-weight:bold;padding-left:8px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-table-help-icon[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-table-help-icon[_ngcontent-%COMP%]{display:inline-block;padding-bottom:4px;padding-left:4px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%]{float:right}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%]   .slo-picker-icon-action-icon-container[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%]   .slo-picker-icon-action-icon-container[_ngcontent-%COMP%]{display:inline-block;padding-right:8px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-actionbar[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-actionbar[_ngcontent-%COMP%]{float:right}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);counter-reset:rulenumber;width:100%}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]{counter-increment:rulenumber}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:0;border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child.drag-over-after, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child.drag-over-after{border-bottom-color:#1a73e8;border-bottom-color:var(--primary)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action[_ngcontent-%COMP%]{padding-left:8px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action.editable-row[_ngcontent-%COMP%]{padding-top:10px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::after, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::after{content:counter(rulenumber) ""}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row.draggable[_ngcontent-%COMP%]:hover > td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::before, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row.draggable[_ngcontent-%COMP%]:hover > td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::before{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 3px 50%;content:"";cursor:grab;float:left;height:14px;width:5px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]{line-height:14px;padding-left:initial;padding-right:initial;text-align:right;width:28px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter.editable-row[_ngcontent-%COMP%]{padding-top:12px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]{text-align:left;padding-left:16px;padding-right:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-summary-text, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-summary-text{width:190px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-option-row, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-option-row{width:212px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-summary-text, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-summary-text{width:102px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-option-row, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-option-row{width:124px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-summary-text, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-summary-text{width:88px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-option-row, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-option-row{width:110px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column.editable-row[_ngcontent-%COMP%]{padding-top:6px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]{text-align:left;padding-left:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:135px}.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-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%]   .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-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-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 .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-mdc-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-mdc-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-mdc-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-mdc-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-mdc-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-mdc-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-mdc-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-mdc-form-field-infix{min-height:initial;padding-top:6px;padding-bottom:6px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   .header-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   .header-row[_ngcontent-%COMP%]{border:0px;height:28px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-order-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-order-header[_ngcontent-%COMP%]{padding-left:16px;text-align:right;width:28px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-type-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-type-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:212px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-postmortem-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-postmortem-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-priority-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-priority-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-metric-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-metric-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-objective-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-objective-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:200px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-daytype-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-daytype-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-actions-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-actions-header[_ngcontent-%COMP%]{padding-left:16px;text-align:left;width:60px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%]{height:18px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%]   .goog-inline-block[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%]   .goog-inline-block[_ngcontent-%COMP%]{background:none;border:none;box-shadow:none;line-height:initial;min-width:initial;padding:0;vertical-align:initial}.cdk-drag-preview[_ngcontent-%COMP%]{counter-increment:rulenumber;background-color:#fff;background-color:var(--surface-default);box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);display:table}.cdk-drag-preview[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:0;border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider)}.cdk-drag-preview[_ngcontent-%COMP%]:last-child{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.cdk-drag-preview[_ngcontent-%COMP%]:last-child.drag-over-after{border-bottom-color:#1a73e8;border-bottom-color:var(--primary)}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-action[_ngcontent-%COMP%]{padding-left:8px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-action.editable-row[_ngcontent-%COMP%]{padding-top:10px;vertical-align:top}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::after{content:counter(rulenumber) ""}.cdk-drag-preview.draggable[_ngcontent-%COMP%]:hover > td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::before{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 3px 50%;content:"";cursor:grab;float:left;height:14px;width:5px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]{line-height:14px;padding-left:initial;padding-right:initial;text-align:right;width:28px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter.editable-row[_ngcontent-%COMP%]{padding-top:12px;vertical-align:top}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]{text-align:left;padding-left:16px;padding-right:16px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-summary-text{width:190px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-option-row{width:212px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-summary-text{width:102px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-option-row{width:124px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-summary-text{width:88px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-option-row{width:110px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column.editable-row[_ngcontent-%COMP%]{padding-top:6px;vertical-align:top}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]{text-align:left;padding-left:16px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:135px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field[_ngcontent-%COMP%]{padding-bottom:0px}.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-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-bottom:0px}.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-mdc-form-field, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-mdc-form-field{padding-right:10px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-mdc-form-field-infix, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-mdc-form-field-infix{min-height:initial;padding-top:6px;padding-bottom:6px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::after{content:""}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform 250ms cubic-bezier(0, 0, 0.2, 1)}/*# sourceMappingURL=slo-elements-picker.css.map */']});
var O5=function(a,b,c){var d=this;this.sloElement=a;this.controllerReference=b;this.isNewElement=c===void 0?!1:c;this.metricSelectorValid=this.postmortemPickerValid=this.priorityPickerValid=this.typePickerValid=this.isEditingInternal=!1;this.objectiveValid=!0;this.validatePriorityPicker=function(){var e=KVd(d.priorityPickerValues)?null:"Priority can't be empty";d.priorityPickerValid=e===null;return e};this.validateTypePicker=function(){var e=KVd(d.typePickerValues)?null:"Type can't be empty";d.typePickerValid=
e===null;return e};this.validatePostmortemPicker=function(){var e=KVd(d.postmortemPickerValues)?null:"Postmortem can't be empty";d.postmortemPickerValid=e===null;return e};this.validateObjective=function(e,f){if(d.selectedDayType!=="BUSINESS"){if(!e.match(/^\d+$/)||e==="0")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!==""&&e!=="0"||f!==""&&f!=="0"))return d.objectiveValid=
!1,"A business day or time based duration must be specified."}d.objectiveValid=!0;return null};this.matcherText=a.matcher;this.selectedMetric=a.metric;this.selectedDayType=a.dayType||"CALENDAR";this.selectedObjectiveDuration=WVd(a.objective);this.selectedObjectiveBusinessDays=a.businessDays;this.canEdit=!b.isDisabled;this.metricValidators={required:function(e){return XVd(d,e)}};YVd(this);this.typePickerValues=ZVd(this.controllerReference.sloParseService.enumTypeToString.keys(),function(e){return d.parseResult.types.length===
0||d.parseResult.types.includes(e)},function(e){return YYb(d.controllerReference,e)});this.priorityPickerValues=ZVd(this.controllerReference.sloParseService.enumPriorityToString.keys(),function(e){return d.parseResult.priorities.length===0||d.parseResult.priorities.includes(e)},function(e){return dZb(d.controllerReference,e)});this.postmortemPickerValues=ZVd(this.controllerReference.anyNoneDisplayValues.keys(),function(e){return d.parseResult.postmortemValues.length===0||d.parseResult.postmortemValues.includes(e)},
function(e){return d.controllerReference.anyNoneDisplayValues.get(e)});this.validateTypePicker();this.validatePriorityPicker();this.validatePostmortemPicker();XVd(this,this.selectedMetric)},WVd=function(a){return a?a:{seconds:86400,nanos:0}};O5.prototype.isEditing=function(){return this.isEditingInternal};O5.prototype.isValid=function(){return this.priorityPickerValid&&this.typePickerValid&&this.postmortemPickerValid&&this.metricSelectorValid&&this.objectiveValid};
var XVd=function(a,b){b=b!=="METRIC_UNSPECIFIED";return a.metricSelectorValid=b};
O5.prototype.stopEditing=function(){this.isEditingInternal&&(this.isValid()||this.isNewElement)&&(this.controllerReference.openRow=null,this.controllerReference.updateValidity(),this.isEditingInternal=this.isNewElement=!1,this.canEdit=!0,$Vd(this),this.sloElement.metric=this.selectedMetric,this.sloElement.dayType=this.selectedDayType,this.sloElement.objective=this.selectedObjectiveDuration,this.sloElement.businessDays=this.selectedObjectiveBusinessDays,YVd(this))};
var $Vd=function(a){var b=a.getEnumValues(a.typePickerValues),c=a.getEnumValues(a.priorityPickerValues),d=a.getEnumValues(a.postmortemPickerValues);b=aWd(b,function(f){return a.controllerReference.sloParseService.enumTypeToString.get(f)});c=aWd(c,function(f){return a.controllerReference.sloParseService.enumPriorityToString.get(f)});d=aWd(d,function(f){return a.controllerReference.sloParseService.canonicalGroupQueryKeywordToQueryValue.get(f)});var e=[];b&&e.push("type:"+b);c&&e.push("priority:"+c);
d&&e.push("postmortem:"+d);a.matcherText=e.join(" ");a.sloElement.matcher=a.matcherText};O5.prototype.getEnumValues=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};var aWd=function(a,b){if(a.length===0)return"";if(a.length===1)return b(a[0]);var c=[];a=m(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return"("+c.join("|")+")"};
O5.prototype.startEditing=function(){this.isEditingInternal||(this.controllerReference.canPerformActions=!1,this.controllerReference.openRow=this,this.controllerReference.updateValidity(),this.canEdit=!1,this.isEditingInternal=!0,YVd(this))};var YVd=function(a){a.parseResult=SVd(a.controllerReference.sloParseService,a.matcherText)},ZVd=function(a,b,c){var d={};a=m(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=b(e),g=c(e);d[""+e]=new IVd(g,f)}return new JVd(d)};var P5=function(){};P5.\u0275fac=function(a){return new (a||P5)};P5.\u0275mod=$e({type:P5});P5.\u0275inj=Fc({imports:[WO,DE,zU]});var Q5=function(){};Q5.\u0275fac=function(a){return new (a||Q5)};Q5.\u0275mod=$e({type:Q5});Q5.\u0275inj=Fc({imports:[WO]});var R5=function(){};R5.\u0275fac=function(a){return new (a||R5)};R5.\u0275mod=$e({type:R5});R5.\u0275inj=Fc({imports:[WO,Q5,NV,DE,GU,UD,WJ,zU,wK,K5,P5]});var S5=function(){Z.apply(this,arguments);this.element=p(Hd);this.cdr=p(bQ,{self:!0});this.location=p(bU);this.hotkeys=p(nU);this.focusedIndex=0;this.slos=[]};Y(S5,Z);S5.\u0275dir=Z.\u0275dir;h=S5.prototype;h.setFocusOnIndex=function(a){this.focusedIndex=a};h.isFocused=function(a){return this.focusedIndex===a};h.selectNext=function(){this.focusedIndex+1>=this.slos.length||(this.focusedIndex++,this.scrollToFocusedIndex())};h.selectPrevious=function(){this.focusedIndex-1<0||(this.focusedIndex--,this.scrollToFocusedIndex())};
h.ngOnInit=function(){var a=this,b=oU(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)};h.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=(b=this.element.nativeElement.querySelector("table"))==null?void 0:(c=b.rows)==null?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)}}};h.renderRowLabel=function(a){return this.slos[a].name};h.editSlo=function(a){this.location.path(qs.editSlo.makeHref(a.sloId))};
S5.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(S5)))(b||S5)}}();
S5.\u0275cmp=D({type:S5,selectors:[["b-slo-grid"]],inputs:{slos:"slos"},standalone:!1,features:[Gg([bQ]),Ef],decls:17,vars:0,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"],["tabindex","0",1,"bv2-resource-list-row",3,"grid-focus"],["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"],[1,"bv2-resource-list-cell","slo-description","clickable"]],template:function(a,b){a&1&&(K(0,"table",0)(1,"thead")(2,"tr",1),M(3,"th",2),K(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),Q(8," SLO name "),L()()()(),K(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),Q(13," Description "),L()()()()()(),K(14,"tbody"),Nf(15,KZb,7,7,"tr",6,Mf),L()());a&2&&(B(15),Of(b.slos))},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 T5=function(){};T5.\u0275fac=function(a){return new (a||T5)};T5.\u0275mod=$e({type:T5});T5.\u0275inj=Fc({imports:[WO]});var bWd=function(){this.log=p(nO);this.dateFormatter=p(vS)},dWd=function(a,b){var c=IKb(b.addMask.paths),d=IKb(b.removeMask.paths),e={author:b.author||null,timestamp:b.timestamp||null,diffs:[]},f=b.add;b=b.remove;for(var g=m(new Set([].concat(q(c),q(d)))),k=g.next();!k.done;k=g.next()){var l=k.value;k=bjd.get(l);if(l==="name"){var r=Qt(d,l,b.name);l=Qt(c,l,f.name);e.diffs.push(Rt(k,r,l))}else if(l==="description")r=Qt(d,l,b.description),l=Qt(c,l,f.description),e.diffs.push(Rt(k,r,l));else if(l===
"parentId")r=Qt(d,l,String(b.parentId)),l=Qt(c,l,String(f.parentId)),e.diffs.push(Rt(k,r,l));else if(l==="elements"){var w=f.elements;r=JKb(d,l,b.elements.map(function(x){return cWd(x)}));l=JKb(c,l,w.map(function(x){return cWd(x)}));e.diffs.push({fieldName:k,diffType:"COLLECTION",diff:{removed:r,added:l}})}else a.log.error("Unsupported diff field.")}return e},cWd=function(a){var b=a.matcher,c=ajd.get(a.metric),d=rZb.get(a.dayType),e=[];a.businessDays>0&&e.push(a.businessDays+" day"+(a.businessDays>
1?"s":""));a.objective.seconds>0&&e.push(e7a(a.objective.seconds*1E3));return'("'+b+'", '+c+") - "+(d+" days - "+e.join(", "))};bWd.\u0275fac=function(a){return new (a||bWd)};bWd.\u0275prov=Dc({token:bWd,factory:bWd.\u0275fac,providedIn:"root"});var eWd=function(){};eWd.\u0275fac=function(a){return new (a||eWd)};eWd.\u0275mod=$e({type:eWd});eWd.\u0275inj=Fc({imports:[WO,mB,TJ]});var hWd=function(a,b){this.$log=b;this.templateAttributes={};this.templateCustomFields={};b=m(fWd);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 typeof f==="string"?Aa(f):""}):e=typeof d==="string"?Aa(d):"";this.templateAttributes[c]=e}b=m(gWd);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=m(a),b=a.next();!b.done;b=a.next())b=b.value.split(":"),
c=b.slice(1).join(":"),ya(c)||(this.templateCustomFields[b[0]]=c)},jWd=function(a){return Object.keys(a.templateCustomFields||{}).length!==0||iWd.some(function(b){return a.templateAttributes[b]!=null})},oWd=function(a,b,c){c!=null&&(kWd(a,c),lWd(a,b,c),mWd(b,c));c=m(Object.entries(a.templateAttributes));for(var d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;nWd[d](b,e)}a.templateAttributes={};a.templateCustomFields={}},lWd=function(a,b,c){b.customField==null&&(b.customField=
[]);for(var d={},e=m(b.customField),f=e.next();!f.done;f=e.next())f=f.value,d[f.customFieldId]=f;e=m(Object.entries(a.templateCustomFields));var g=e.next();for(f={};!g.done;f={customFieldId$jscomp$30:void 0},g=e.next()){var k=m(g.value);g=k.next().value;k=k.next().value;f.customFieldId$jscomp$30=rm(g);k={customFieldId:f.customFieldId$jscomp$30,value:k};g=a.getCustomFieldValue(k,c);d[f.customFieldId$jscomp$30]!=null?(f=b.customField.findIndex(function(l){return function(r){return r.customFieldId===
l.customFieldId$jscomp$30}}(f)),b.customField[f]=g):(b.customField.push(g),d[k.customFieldId]=g)}};
hWd.prototype.getCustomFieldValue=function(a,b){var c={customFieldId:a.customFieldId};if(a.value){b=this.getCustomFieldType(c,b);var d=[];switch(b){case "TEXT":c.textValue=a.value;break;case "DATE":c.dateValue=m1a(a.value)||void 0;break;case "ENUM":c.enumValue=a.value;break;case "NUMERIC":c.numericValue=n1a(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 m1a(e)}).filter(function(e){return e!==
null});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 n1a(e)}).filter(function(e){return e!==null});c.repeatedNumericValue={values:d};break;default:this.$log.warn("Invalid custom field type '"+b+"'.")}}return c};hWd.prototype.getCustomFieldType=function(a,b){var c,d;return(d=(c=b[a.customFieldId])==null?void 0:c.type)!=null?d:""};
var kWd=function(a,b){a.templateCustomFields=aj(a.templateCustomFields,function(c,d){return!!b[d]})},mWd=function(a,b){if(a.customField!=null){a=m(a.customField);for(var c=a.next(),d={};!c.done;d={allowedValues$jscomp$1:void 0},c=a.next()){c=c.value;var e=b[c.customFieldId];if(e&&e.type&&e.type.includes("ENUM")){d.allowedValues$jscomp$1=e.allowedValue||[];var f=e.required&&e.typedDefaultValue;e.type.includes("REPEATED")?(c.repeatedEnumValue=c.repeatedEnumValue||{values:[]},c.repeatedEnumValue.values=
c.repeatedEnumValue.values.filter(function(g){return function(k){return g.allowedValues$jscomp$1.includes(k)}}(d)),!c.repeatedEnumValue.values.length&&f&&(c.repeatedEnumValue=e.typedDefaultValue.repeatedEnumValue)):d.allowedValues$jscomp$1.includes(c.enumValue)||(c.enumValue=f?e.typedDefaultValue.enumValue:"")}}}},fWd="title type priority severity assignee verifier reporter collaborators cc hotlistIds blockedByIssueIds blockingIssueIds foundIn targetedTo".split(" "),gWd=["inProd"],iWd="severity foundIn inProd reporter verifier targetedTo blockedByIssueIds blockingIssueIds".split(" "),
U5={},nWd=(U5.cc=function(a,b){a.ccUsers=OZb(b,a.ccUsers||[])},U5.collaborators=function(a,b){a.collaboratorsUsers=OZb(b,a.collaboratorsUsers||[])},U5.title=function(a,b){typeof b==="string"&&(a.title=b)},U5.assignee=function(a,b){NZb(b,function(c){a.assigneeUser=c})},U5.reporter=function(a,b){NZb(b,function(c){a.reporterUser=c})},U5.verifier=function(a,b){NZb(b,function(c){a.verifierUser=c})},U5.hotlistIds=function(a,b){if(b=LZb(b)){a.hotlistId||(a.hotlistId=[]);b=m(b);for(var c=b.next();!c.done;c=
b.next())a.hotlistId.push(c.value)}},U5.blockingIssueIds=function(a,b){if(b=LZb(b))a.blockingIssueId=b.map(String)},U5.blockedByIssueIds=function(a,b){if(b=LZb(b))a.blockedByIssueId=b.map(String)},U5.foundIn=function(a,b){typeof b==="string"&&(a.foundInVersion=b.split(","))},U5.targetedTo=function(a,b){typeof b==="string"&&(a.targetedToVersion=b.split(","))},U5.inProd=function(a,b){a.inProd=b==="true"},U5.priority=function(a,b){if(b=MZb(wmd,b))a.priority=zQa(b)},U5.severity=function(a,b){if(b=MZb(Cmd,
b))a.severity=BQa(b)},U5.type=function(a,b){if(b=MZb(ymd,b))a.type=AQa(b)},U5);var V5=function(){this.issueRelationshipApi=p(kQ);this.issueApi=p(MP)};
V5.prototype.bulkEdit=function(a){var b=this,c,d,e,f,g,k,l,r,w,x,C,H,J;return y(function(O){switch(O.nextAddress){case 1:c=a.actions[0];d=String(c.value);e=a.issueIds;f=c.actionType;if(f!=="ADD"&&f!=="REMOVE")throw Error("ng");g={};k=[];l=[];r=$Za(e);w=m(r.reverse());x=w.next();case 2:if(x.done){O.jumpTo(4);break}C=x.value;Wd(O,5);return f==="ADD"?(H=C.map(function(R){return{targetIssueId:R,afterIssueId:void 0}}),z(O,fe(Bhd(b.issueRelationshipApi,d,H)),8)):z(O,fe(Chd(b.issueRelationshipApi,d,C)),
8);case 8:return z(O,b.issueApi.batchGetIssuesFull(C).then(function(R){return R.map(function(V){return g[V.issueId]=V})}),11);case 11:dt(O,3);break;case 5:J=$d(O);if(!Pp(J))throw J;l.push(J);k.push.apply(k,q(C));case 3:x=w.next();O.jumpTo(2);break;case 4:return O.return({finishedIssues:g,notFinishedIssueIds:k,errors:l})}})};V5.\u0275fac=function(a){return new (a||V5)};V5.\u0275prov=Dc({token:V5,factory:V5.\u0275fac,providedIn:"root"});var pWd=function(){this.issueApi=p(MP);this.templatesApi=p(TO);this.errorHandler=p(pO);this.userAccess=p(DP);this.activeSession=p(uu)},rWd=function(a,b){b=a.issueApi.getIssueFull(b).then(function(c){var d=Object,e=d.assign,f=Ia(c.snapshot),g,k=(g=c.description)==null?void 0:g.unlinkifiedComment,l;g=(l=c.description)==null?void 0:l.formattedComment;f.comment=k?k.trim():g?uTa(g):"";f.status="NEW";f.changelist=null;f.gerritChanges=null;f.duplicateIssueId=null;f.duplicateOfIssueId=null;return e.call(d,
{},{snapshot:f},{trackerId:c.trackerId})}).then(function(c){return qWd(a,c)});b.catch(function(c){a.errorHandler.errorHandler(null,c)});return b},qWd=function(a,b){var c=b.snapshot.hotlistId;if(!c)return b;var d=c.map(function(e){return EP(a.userAccess,"appender","hotlists/"+e)});return Promise.all(d).then(function(e){b.snapshot.hotlistId=c.filter(function(f,g){return e[g]});return b})};pWd.\u0275fac=function(a){return new (a||pWd)};pWd.\u0275prov=Dc({token:pWd,factory:pWd.\u0275fac,providedIn:"root"});var W5=function(){this.bLocation=p(bU);this.routeParams=p(wS);this.domSafe=p(mR)},sWd=function(a,b,c){var d=a.routeParams.redirectUrl;if(d&&d.startsWith("http")){if(c&&va(d,"id=")||va(d,"bugId="))d+=c;skd(a.domSafe,d)}else{var e;a.bLocation.replaceUrl((e=d)!=null?e:b)}};W5.\u0275fac=function(a){return new (a||W5)};W5.\u0275prov=Dc({token:W5,factory:W5.\u0275fac,providedIn:"root"});var tWd={provide:Ued,useValue:function(a){return a.replace(/(action\/components\/[0-9]+)\/(move|updateSlo|updateTeam)/,"$1")},multi:!0},uWd={provide:Ued,useValue:function(a){return a.replace(/(action\/hotlists\/[0-9]+)\/archive/,"$1")},multi:!0};var X5=function(){this.activeSession=p(uu)};X5.prototype.intercept=function(a,b){if(a.url.startsWith("https://"))return b.handle(a);var c=a.method;return c==="POST"||c==="PUT"||c==="DELETE"?(a=a.clone({setHeaders:{"X-XSRF-TOKEN":this.activeSession.getXsrfToken()}}),b.handle(a)):b.handle(a)};X5.\u0275fac=function(a){return new (a||X5)};X5.\u0275prov=Dc({token:X5,factory:X5.\u0275fac,providedIn:"root"});var vWd={provide:ABc,useExisting:X5,multi:!0};var Y5=function(){this.http=p(By)};Y(Y5,bO);h=Y5.prototype;h.get=function(a){return this.request("get",a)};h.delete=function(a){return this.request("delete",a)};h.post=function(a){return this.request("post",a,a.body)};h.put=function(a){return this.request("put",a,a.body)};h.request=function(a,b,c){var d=b.options;d=d===void 0?{}:d;d={headers:d.headers||{},params:Object.assign({},d.params)};var e,f;c==null?f=void 0:f=Jda(c);c=(e=f)!=null?e:null;return this.http.request(a,b.url,Object.assign({},d,{body:c})).pipe(A(PZb(b.responseConstructor)))};
Y5.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(Y5)))(b||Y5)}}();Y5.\u0275prov=Dc({token:Y5,factory:Y5.\u0275fac,providedIn:"root"});var Z5=function(){this.jspbExecutor=p(Y5)};Y(Z5,cO);Z5.prototype.get=function(a){return fe(this.jspbExecutor.get(a))};Z5.prototype.delete=function(a){return fe(this.jspbExecutor.delete(a))};Z5.prototype.post=function(a){return fe(this.jspbExecutor.post(a))};Z5.prototype.put=function(a){return fe(this.jspbExecutor.put(a))};
Z5.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(Z5)))(b||Z5)}}();Z5.\u0275prov=Dc({token:Z5,factory:Z5.\u0275fac,providedIn:"root"});var wWd=function(){};wWd.\u0275fac=function(a){return new (a||wWd)};wWd.\u0275mod=$e({type:wWd});wWd.\u0275inj=Fc({providers:[{provide:bO,useExisting:Y5},{provide:cO,useExisting:Z5}],imports:[WO]});var $5=function(){var a=this;this.fridge=p(RO);this.userAccess=p(DP);this.currentComponentId="";this.providedComponentId$=new uf(1);this.accessCheckIsThinking$=new Mj(!0);this.component$=this.providedComponentId$.pipe(yf(function(b){return a.fridge.watch(b)}));this.userIsComponentReader$=this.providedComponentId$.pipe(yf(function(b){b!==a.currentComponentId&&(a.accessCheckIsThinking$.next(!0),a.currentComponentId=b);return EP(a.userAccess,"reader","components/"+b).then(function(c){return c},function(){return!1}).finally(function(){a.accessCheckIsThinking$.next(!1)})}));
this.isReady$=ie([this.fridge.thinking$,this.accessCheckIsThinking$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return!b&&!c}),xf(!1));this.manageComponentLink=""};$5.prototype.ngOnInit=function(){this.currentComponentId=this.componentId};$5.prototype.ngOnChanges=function(){this.providedComponentId$.next(this.componentId);this.manageComponentLink="/components/"+this.componentId};$5.\u0275fac=function(a){return new (a||$5)};
$5.\u0275cmp=D({type:$5,selectors:[["b-async-component"]],inputs:{componentId:"componentId"},standalone:!1,features:[jx],decls:5,vars:6,consts:[[3,"isReady"],[3,"href"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),T(1,"async"),F(2,QZb,3,4,"a",1),T(3,"async"),Kf(4,RZb,2,1,"output"),L());a&2&&(I("isReady",U(1,2,b.isReady$)),B(2),G(U(3,4,b.userIsComponentReader$)?2:4))},dependencies:[oW,Tx],encapsulation:2});var xWd=function(){this.documentationLinks=p(cS);this.activeSession=p(uu);this.loginRedirector=p(a6);this.isAnonymous=this.activeSession.isAnonymous();this.enableSignInAnonymousAccessDenied=this.activeSession.getFlag("enableSignInAnonymousAccessDenied");this.signInProgressing=this.showIssueMetadataContainer=!1};
da.Object.defineProperties(xWd.prototype,{issueMetadata:{configurable:!0,enumerable:!0,set:function(a){if(a){this.issueId=a.issueId;this.issueLastModified=$n(a.modifiedTime);a.teamId&&(this.issueTeamId=a.teamId);if(a=a.issueState){this.issueType=ym(a.type);var b;this.issueStatus=(b=zm.get(a.status))!=null?b:"";this.issuePriority=a.priority;this.issueSeverity=ocd[a.severity];this.issueComponentId=String(a.componentId);this.accessLimitLevel=Nkb(a.accessLimitLevel)}this.showIssueMetadataContainer=!0}else this.showIssueMetadataContainer=
!1}}});xWd.\u0275fac=function(a){return new (a||xWd)};
xWd.\u0275cmp=D({type:xWd,selectors:[["b-access-denied-metadata"]],inputs:{issueMetadata:"issueMetadata"},standalone:!1,decls:9,vars:2,consts:[["issueMetadataContainer",""],["anonymousMessage",""],[1,"b-access-denied"],[1,"heading-l","margin-bottom"],[4,"ngTemplateOutlet"],[1,"carded","margin-top"],[3,"issuePriority"],["target","_blank","aria-label","Learn more about issue access limits",3,"href"],[3,"componentId"],[3,"teamId"],"type button mat-flat-button  color primary".split(" "),["type","button",
"mat-flat-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(K(0,"div",2)(1,"h3",3),Q(2," Access is denied to this issue "),L(),F(3,TZb,1,1,"ng-container"),F(4,VZb,1,1,"ng-container"),L(),E(5,YZb,40,13,"ng-template",null,0,Mg)(7,b_b,3,1,"ng-template",null,1,Mg));a&2&&(B(3),G(b.showIssueMetadataContainer?3:-1),B(),G(b.isAnonymous?4:-1))},dependencies:[Sx,$5,vW,CV,kB,gB,cU,Wx],styles:[".b-access-denied[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}ol[_ngcontent-%COMP%]{box-sizing:border-box;max-width:400px;min-width:300px;padding-right:8px;word-break:break-word}li[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:16px;line-height:21px}li[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}label[_ngcontent-%COMP%]{min-width:120px;font-weight:bold;color:#5f6368;color:var(--text-muted);margin-right:8px;font-size:.8125rem}"],
changeDetection:0});var a6=function(){this.bLocation=p(bU)};a6.prototype.redirect=function(){var a=zh("/loginRedirect?continue="+encodeURIComponent(this.bLocation.getUrl())),b=window.location;a=Ah(a);a!==void 0&&b.replace(a)};a6.\u0275fac=function(a){return new (a||a6)};a6.\u0275prov=Dc({token:a6,factory:a6.\u0275fac,providedIn:"root"});var yWd=function(){};yWd.\u0275fac=function(a){return new (a||yWd)};yWd.\u0275mod=$e({type:yWd});yWd.\u0275inj=Fc({imports:[WO,HX]});var b6=function(){};b6.\u0275fac=function(a){return new (a||b6)};b6.\u0275mod=$e({type:b6});b6.\u0275inj=Fc({imports:[WO,yWd,yX,DV,mB,eU]});var zWd=Symbol("pg"),AWd=RegExp("today([+-]\\d+)?"),d6=function(){this.ruleConfigService=p(c6)};
d6.prototype.build=function(a){if(a.customField)var b=a.customField.type==="DATE"?new e6(a,f6(this.ruleConfigService)):a.customField.type==="ENUM"?new BWd(a,f6(this.ruleConfigService)):a.customField.type==="REPEATED_ENUM"?new CWd(a,f6(this.ruleConfigService)):a.customField.type==="NUMERIC"?new g6(a,f6(this.ruleConfigService)):new h6(a,f6(this.ruleConfigService));else b=a.label.field,b=f6(this.ruleConfigService)[b],b=new (b&&b.ruleCtor||i6)(a,f6(this.ruleConfigService));b[zWd](a);return b};
var L0b=function(a,b,c){return a.build({label:{field:b,customFieldId:c&&c.customFieldId||void 0},operator:"EQ",negated:!1,type:"",customField:c})};d6.\u0275fac=function(a){return new (a||d6)};d6.\u0275prov=Dc({token:d6,factory:d6.\u0275fac,providedIn:"root"});
var DWd=["OR","AND","NAND"],EWd=["OR","NAND"],FWd="LT GT LE GE RANGE NRANGE DURATION NDURATION OR".split(" "),GWd=["AND","OR","NAND"],HWd=["OR","LT","GT","LE","GE"],i6=function(a,b){this.ruleConfigLookup=b;this.values=[];this.type="";this.isPendingCustomField=!1;this.label=a.label};i6.prototype[zWd]=function(a){this.initType(a);this.initValues(a)};
i6.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=a.type==="OR"?a.negated?"NOR":"OR":a.type==="AND"?a.negated?"NAND":"AND":a.negated?"NAND":"OR"}else this.type=this.getLegalTypes()[0]};i6.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){return{value:b.simpleValues[0].value}})};
var IWd=function(a){var b=a.type==="NAND"||a.type==="NOR"||a.type==="NDURATION"||a.type==="NRANGE",c="EQ";if(a.type==="AND"||a.type==="NAND")var d="AND";else if(a.type==="OR"||a.type==="NOR")d="OR";else if(d="NIL",a.type==="LE"||a.type==="LT"||a.type==="GE"||a.type==="GT")c=a.type;b&&(d==="AND"?d="OR":d==="OR"&&(d="AND"));return{operator:c,joinType:d,negated:b}};
i6.prototype.toString=function(){var a=IWd(this),b=this.valuesToStrings().filter(function(e){return e}),c={GT:">",LT:"<",GE:">=",LE:"<=",EQ:":"};if(b.length===1)b=b[0];else if(b.length>1)b="("+b.join(a.joinType==="AND"?" ":" | ")+")";else return"";var d=JWd(this);return(a.negated?"-":"")+d+(d?c[a.operator]:"")+b};var JWd=function(a){var b=a.label.field,c=a.ruleConfigLookup[b];return c&&(c=c.queryLabel,c!=null)?c:SQa(b).toLowerCase()+(a.label.customFieldId||"")};i6.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value}).filter(function(a){return a})};
i6.prototype.getWidgetType=function(){return"default"};i6.prototype.isValid=function(){return this.getLegalTypes().includes(this.type)};i6.prototype.getLegalTypes=function(){return DWd};var KWd=[],j6=function(a,b){i6.call(this,a,b);this.enumValues={}};Y(j6,i6);h=j6.prototype;h.getLegalTypes=function(){return EWd};h.getWidgetType=function(){return"enum"};
h.initValues=function(a){this.enumValues={};for(var b=m(this.getOptions()),c=b.next();!c.done;c=b.next())this.enumValues[c.value.id]=!1;a=m(a.values||[]);for(b=a.next();!b.done;b=a.next())this.enumValues[c_b(b.value.simpleValues[0].value)]=!0};h.valuesToStrings=function(){return Object.keys(aj(this.enumValues,function(a){return a}))};h.getOptions=function(){return KWd};var LWd=Iba().map(function(a){return{id:"p"+a,label:"P"+a}}),MWd=function(a,b){j6.call(this,a,b)};Y(MWd,j6);
MWd.prototype.getOptions=function(){return LWd};var NWd=Iba().map(function(a){return{id:"s"+a,label:"S"+a}}),OWd=function(a,b){j6.call(this,a,b)};Y(OWd,j6);OWd.prototype.getOptions=function(){return NWd};
var PWd=[{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:"program"},{id:"project"},{id:"feature"},{id:"milestone"},{id:"epic"},{id:"story"},{id:"task"}],QWd=function(a,b){j6.call(this,a,b)};Y(QWd,j6);QWd.prototype.getOptions=function(){return PWd};
var RWd=[{id:"open"},{id:"new",group:"open"},{id:"assigned",group:"open"},{id:"accepted",group:"open"},{id:"closed"},{id:"fixed"},{id:"verified"},{id:"duplicate"},{id:"inactive"},{id:"infeasible"},{id:"intended_behavior",label:"intended behavior"},{id:"not_reproducible",label:"not reproducible"},{id:"obsolete"}],SWd=function(a,b){j6.call(this,a,b)};Y(SWd,j6);SWd.prototype.getOptions=function(){return RWd};
var TWd=[{id:"abuse"},{id:"pii"},{id:"user_request",label:"user request"},{id:"retention"}],UWd=function(a,b){j6.call(this,a,b)};Y(UWd,j6);UWd.prototype.getOptions=function(){return TWd};var VWd=[{id:"limit_none",label:"default access"},{id:"limit_view",label:"limited visibility"},{id:"limit_append",label:"limited commenting"},{id:"limit_view_trusted",label:"limited visibility + Google"}],WWd=function(a,b){j6.call(this,a,b)};Y(WWd,j6);WWd.prototype.getOptions=function(){return VWd};
var XWd=[{id:"swe",label:Yq.SWE,tooltip:JN.SWE},{id:"sre",label:Yq.SRE,tooltip:JN.SRE},{id:"pm",label:Yq.PM,tooltip:JN.PM},{id:"tpgm",label:Yq.TPGM,tooltip:JN.TPGM},{id:"ux",label:Yq.UX,tooltip:JN.UX}],YWd=[{id:"swe",label:Yq.SWE,tooltip:JN.SWE},{id:"sre",label:Yq.SRE,tooltip:JN.SRE},{id:"pm",label:Yq.PM,tooltip:JN.PM},{id:"tpgm",label:Yq.TPGM,tooltip:JN.TPGM},{id:"ux",label:Yq.UX,tooltip:JN.UX},{id:"uxd",label:Yq.UXD,tooltip:JN.UXD},{id:"uxr",label:Yq.UXR,tooltip:JN.UXR},{id:"datasci",label:Yq.DATASCI,
tooltip:JN.DATASCI},{id:"ld",label:Yq.LD,tooltip:JN.LD},{id:"devrel",label:Yq.DEVREL,tooltip:JN.DEVREL},{id:"tw",label:Yq.TW,tooltip:JN.TW},{id:"gtm",label:Yq.GTM,tooltip:JN.GTM},{id:"ce",label:Yq.CE,tooltip:JN.CE},{id:"other",label:Yq.OTHER}],ZWd=function(a,b){j6.call(this,a,b)};Y(ZWd,j6);ZWd.prototype.getOptions=function(){return XWd};var $Wd=function(){j6.apply(this,arguments)};Y($Wd,j6);$Wd.prototype.getOptions=function(){return YWd};
var BWd=function(a,b){j6.call(this,a,b);this.allowedValues=[]};Y(BWd,j6);BWd.prototype[zWd]=function(a){this.allowedValues=a.customField.allowedValue.map(function(b){return{label:b,id:c_b(b)}});j6.prototype[zWd].call(this,a)};BWd.prototype.valuesToStrings=function(){return Object.keys(aj(this.enumValues,function(a){return a})).map(function(a){return'"'+a+'"'})};BWd.prototype.getOptions=function(){return this.allowedValues};
var CWd=function(a,b){i6.call(this,a,b);this.allowedValues=[];var c,d;this.allowedValues=(d=(c=a.customField)==null?void 0:c.allowedValue)!=null?d:[]};Y(CWd,i6);CWd.prototype.getWidgetType=function(){return"repeated-enum"};CWd.prototype.getOptions=function(){return this.allowedValues};var iu=function(a,b){i6.call(this,a,b);this.csv=""};Y(iu,i6);iu.prototype.getWidgetType=function(){return"csv"};iu.prototype.initValues=function(a){this.csv=(a.values||[]).map(function(b){return b.simpleValues[0].value}).join(",")};
iu.prototype.valuesToStrings=function(){return this.csv.split(",").map(function(a){return a.trim()}).filter(function(a){return a})};var k6=function(a,b){iu.call(this,a,b)};Y(k6,iu);k6.prototype.getWidgetType=function(){return"id"};k6.prototype.valuesToStrings=function(){return iu.prototype.valuesToStrings.call(this).map(function(a){return a.toLowerCase()==="none"?"none":a.toLowerCase()==="any"?"any":String(rm(a))})};var aXd=function(a,b){iu.call(this,a,b)};Y(aXd,k6);aXd.prototype.getLegalTypes=function(){return EWd};
var l6=function(a,b){iu.call(this,a,b)};Y(l6,iu);l6.prototype.getWidgetType=function(){return"user"};var m6=function(a,b){iu.call(this,a,b)};Y(m6,l6);m6.prototype.getLegalTypes=function(){return EWd};var e6=function(a,b){i6.call(this,a,b);this.dateTo=this.dateFrom=this.duration=""};Y(e6,i6);var q0b=function(a){return a&&typeof a==="string"?a:""};
e6.prototype.initType=function(a){i6.prototype.initType.call(this,a);var b=a.values&&a.values[0];b&&(b.type==="RANGE"?this.type=a.negated?"NRANGE":"RANGE":va(b.simpleValues[0].value,"d")&&(this.type=a.negated?"NDURATION":"DURATION"))};e6.prototype.getWidgetType=function(){return"date"};
e6.prototype.initValues=function(a){if(a.values){var b=a.values[0].simpleValues[0].value;if(this.type==="DURATION"||this.type==="NDURATION")this.duration=b.slice(0,b.length-1);else if(this.dateFrom=bXd(b),this.type==="RANGE"||this.type==="NRANGE")this.dateTo=bXd(a.values[0].simpleValues[1].value)}};
e6.prototype.valuesToStrings=function(){if(this.type==="DURATION"||this.type==="NDURATION"){var a=rm(this.duration);return!a||isNaN(a)?[]:[a+"d"]}if(this.type==="RANGE"||this.type==="NRANGE"){a=this.dateFrom&&cXd(this.dateFrom)||(new pm).toIsoString(!0);var b=this.dateTo&&cXd(this.dateTo)||(new pm).toIsoString(!0);return[a+".."+b]}return[this.dateFrom&&cXd(this.dateFrom)||(new pm).toIsoString(!0)]};
var dXd=function(a){return String(a.getMonth()+1)+"/"+String(a.getDate())+"/"+String(a.getFullYear())},bXd=function(a){if(AWd.test(a))return a;var b=new ao(2E3);a=Aa(a);var c=a.indexOf("T")==-1?" ":"T";a=a.split(c);var d=a[0].match(UTc);if(d){var e=Number(d[2]),f=Number(d[3]),g=Number(d[4]);c=Number(d[5]);var k=Number(d[6])||1;b.setFullYear(Number(d[1]));g?(b.setDate(1),b.setMonth(0),b.add(new XF("d",g-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new XF("d",(d<=4?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=a.length<2)){c=a[1];a=c.match(WTc);if(a)if(c=c.substring(0,c.length-a[0].length),a[0]==="Z")var l=0;else l=Number(a[2])*60+Number(a[3]),l*=a[1]=="-"?1:-1;if(g=c.match(VTc)){if(a){a=b.getYear();c=b.getMonth();k=b.getDate();d=Number(g[1]);e=Number(g[2])||0;f=Number(g[3])||0;var r=g[4]?Number(g[4])*1E3:0;(g=a>=0&&a<100)&&(a+=400);a=Date.UTC(a,c,k,d,e,f,r);g&&(a-=126227808E5);b.setTime(a+l*6E4)}else b.setHours(Number(g[1])),
b.setMinutes(Number(g[2])||0),b.setSeconds(Number(g[3])||0),b.setMilliseconds(g[4]?Number(g[4])*1E3:0);c=!0}else c=!1}return dXd(c?b:null)},cXd=function(a){if(AWd.test(a))return a;a=a.split("/").map(Number);return(new pm(a[2],a[0]-1,a[1])).toIsoString(!0)};e6.prototype.getLegalTypes=function(){return FWd};var n6=function(a,b){i6.call(this,a,b)};Y(n6,i6);n6.prototype.getWidgetType=function(){return"bool"};
n6.prototype.initType=function(a){var b=a.type==="OR"||a.type==="";a.values&&(b=a.values[0].simpleValues[0].value.toLowerCase()==="true");a.negated&&(b=!b);this.type=b?"OR":"NAND"};n6.prototype.toString=function(){return JWd(this)+":"+(this.type==="OR")};n6.prototype.getLegalTypes=function(){return EWd};var eXd=function(a,b){i6.call(this,a,b)};Y(eXd,i6);eXd.prototype.getWidgetType=function(){return"boolwithall"};
eXd.prototype.initType=function(a){this.getLegalTypes().includes(a.type)?this.type=a.type:this.type=this.getLegalTypes()[0];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&&this.type!=="AND"&&(this.type=this.type==="OR"?"NAND":"OR")};eXd.prototype.toString=function(){var a=JWd(this)+":";switch(this.type){case "OR":return a+"true";case "NAND":return a+"false";default:return a+"all"}};
eXd.prototype.getLegalTypes=function(){return GWd};var h6=function(a,b){i6.call(this,a,b)};Y(h6,i6);h6.prototype.getWidgetType=function(){return"text"};h6.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){b=b.simpleValues[0];var c=b.value;b.type==="QUOTED_TEXT"&&(c=c.slice(1,c.length-1));return{value:c}})};h6.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value.includes(" ")?'"'+a.value+'"':a.value})};
var fXd=function(a,b){i6.call(this,a,b)};Y(fXd,i6);fXd.prototype.getWidgetType=function(){return"component"};fXd.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};va(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};fXd.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};
var gXd=function(a,b){i6.call(this,a,b)};Y(gXd,i6);gXd.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};va(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};gXd.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var hXd=function(a,b){i6.call(this,a,b)};Y(hXd,i6);hXd.prototype.getWidgetType=function(){return"tracker"};
var iXd=function(a,b){i6.call(this,a,b)};Y(iXd,gXd);iXd.prototype.getWidgetType=function(){return"team"};var jXd=function(a,b){i6.call(this,a,b)};Y(jXd,i6);jXd.prototype.getWidgetType=function(){return"hotlist"};var kXd=function(a,b){i6.call(this,a,b)};Y(kXd,i6);kXd.prototype.getWidgetType=function(){return"savedsearch"};var g6=function(a,b){iu.call(this,a,b)};Y(g6,iu);g6.prototype.getWidgetType=function(){return"number"};g6.prototype.getLegalTypes=function(){return HWd};
var lXd=function(a,b){e6.call(this,a,b)};Y(lXd,e6);lXd.prototype.initType=function(a){e6.prototype.initType.call(this,a);a.negated&&(this.type="ERR")};
var o6={},mXd=(o6.ATTACHMENT={ruleCtor:h6,name:"Attachment name"},o6.COMMENT={ruleCtor:h6},o6.TITLE={ruleCtor:h6},o6.ASSIGNEE={ruleCtor:m6},o6.MODIFIER={ruleCtor:l6},o6.REPORTER={ruleCtor:m6},o6.VERIFIER={ruleCtor:m6},o6.CC={ruleCtor:l6},o6.COLLABORATOR={ruleCtor:l6},o6.COMPONENT_ID={ruleCtor:fXd,name:"Component"},o6.TRACKER_ID={ruleCtor:hXd,name:"Tracker"},o6.TYPE={ruleCtor:QWd},o6.STATUS={ruleCtor:SWd},o6.PRIORITY={ruleCtor:MWd},o6.SEVERITY={ruleCtor:OWd},o6.BLOCKED_BY_ID={ruleCtor:k6},o6.BLOCKING_ID=
{ruleCtor:k6},o6.PARENT_ID={ruleCtor:k6},o6.CANONICAL_ID={ruleCtor:aXd},o6.ID={ruleCtor:aXd},o6.FOUND_IN={ruleCtor:iu},o6.TARGETED_TO={ruleCtor:iu},o6.VERIFIED_IN={ruleCtor:iu},o6.CL={ruleCtor:iu,name:"Changelists"},o6.MODIFIED={ruleCtor:e6},o6.RESOLVED={ruleCtor:lXd},o6.CREATED={ruleCtor:e6},o6.VERIFIED={ruleCtor:lXd},o6.DELETION_TIME={ruleCtor:e6,name:"Deletion time"},o6.SAVED_SEARCH_ID={ruleCtor:kXd,name:"Saved search"},o6.HOTLIST_ID={ruleCtor:jXd,name:"Hotlist"},o6.STAR={ruleCtor:n6,name:"Starred"},
o6.MUTE={ruleCtor:n6,name:"Muted"},o6.VOTE={ruleCtor:n6,name:"Upvoted by me"},o6.IN_PROD={ruleCtor:n6,name:"In production"},o6.CC_COUNT={ruleCtor:g6},o6.COLLABORATOR_COUNT={ruleCtor:g6},o6.DUPLICATE_COUNT={ruleCtor:g6},o6.VOTE_COUNT={ruleCtor:g6},o6.COMMENT_COUNT={ruleCtor:g6},o6.DESCENDANT_COUNT={ruleCtor:g6},o6.OPEN_DESCENDANT_COUNT={ruleCtor:g6},o6.ONE_DAY_VIEW_COUNT={ruleCtor:g6},o6.SEVEN_DAY_VIEW_COUNT={ruleCtor:g6},o6.THIRTY_DAY_VIEW_COUNT={ruleCtor:g6},o6.ATTACHMENT_COUNT={ruleCtor:g6},o6.LAST_MODIFIER=
{ruleCtor:m6,name:"Last Modified By"},o6.COMMENTER={ruleCtor:l6},o6.LAST_COMMENTER={ruleCtor:m6},o6.ARCHIVED={ruleCtor:eXd},o6.IS_DELETED={ruleCtor:n6,name:"Deleted",queryLabel:"deleted"},o6.DELETION_REASON={ruleCtor:UWd,name:"Deletion reason"},o6.ACCESS_LEVEL={ruleCtor:WWd,name:"Issue access level"},o6._TEXT_={ruleCtor:h6,queryLabel:"",name:"All fields"},o6),nXd=Object.assign({},mXd,{EFFORT_LABEL:{ruleCtor:iu},MENTION:{ruleCtor:l6},MIN_SLO_TARGET:{ruleCtor:e6,name:"Nearest SLO",queryLabel:"nearestslo"},
POSTMORTEM:{ruleCtor:iu,name:"Postmortems"},STAFFING_PLACEHOLDER_COUNT:{ruleCtor:g6,name:"Staffing - Placeholder Count",queryLabel:"staffingplaceholdercount"},STAFFING_USER:{ruleCtor:l6,name:"Staffing - User",queryLabel:"staffinguser"},STAFFING_USER_COUNT:{ruleCtor:g6,name:"Staffing - User Count",queryLabel:"staffingusercount"},TEAM_ID:{ruleCtor:iXd,name:"Team"},INSIGHT:{ruleCtor:h6},ATTACHMENT_ANALYSIS:{ruleCtor:h6}}),oXd={ESCALATION_OWNER:{ruleCtor:m6}},c6=function(){this.activeSession=p(uu)},f6=
function(a){var b=a.activeSession.getFlag("enableStaffingFieldEnhancementsUi")?{STAFFING_PLACEHOLDER:{ruleCtor:$Wd,name:"Staffing - Placeholder",queryLabel:"staffingplaceholder"}}:{STAFFING_PLACEHOLDER:{ruleCtor:ZWd,name:"Staffing - Placeholder",queryLabel:"staffingplaceholder"}};b=a.activeSession.isExternalSession()?mXd:Object.assign({},b,nXd);a.activeSession.getFlag("enableEscalationOwnerRolloutUi")&&(b=Object.assign({},b,oXd));return b};c6.\u0275fac=function(a){return new (a||c6)};
c6.\u0275prov=Dc({token:c6,factory:c6.\u0275fac,providedIn:"root"});var pXd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pXd,W);h=pXd.prototype;h.getField=function(){return wi(this,1)};h.getCustomFieldId=function(){return pn(this,2)};h.getCustomFieldId_asString=function(){return nn(this,2)};h.setCustomFieldId=function(a){return Jn(this,2,a)};h.hasCustomFieldId=function(){return Pb(fm(this,2))!=null};var i_b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(i_b,W);h=i_b.prototype;h.getType=function(){return wi(this,1)};h.setType=function(a){return Gn(this,1,a)};h.hasType=function(){return jm(this,1)};h.getValue=function(){return ui(this,2)};h.setValue=function(a){return oj(this,2,a)};h.hasValue=function(){return im(this,2)};var qXd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qXd,W);h=qXd.prototype;h.getType=function(){return wi(this,1)};h.setType=function(a){return Gn(this,1,a)};h.hasType=function(){return jm(this,1)};h.getValuesList=function(a){return Bi(this,qXd,2,Ci(a))};h.setValuesList=function(a){return Ni(this,2,a)};h.setValues=function(a,b){Gw(this,2,qXd,a,b)};var q_b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(q_b,W);h=q_b.prototype;h.getType=function(){return wi(this,1)};h.setType=function(a){return Gn(this,1,a)};h.hasType=function(){return jm(this,1)};h.getValuesList=function(a){return Bi(this,qXd,2,Ci(a))};h.setValuesList=function(a){return Ni(this,2,a)};h.setValues=function(a,b){Gw(this,2,qXd,a,b)};h.getLabel=function(){return X(this,pXd,4)};h.setLabel=function(a){return Mi(this,pXd,4,a)};
h.hasLabel=function(){return xi(this,pXd,4)};var du=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,du.messageId)};Y(du,W);du.prototype.getType=function(){return wi(this,1,void 0,jb)};du.prototype.setType=function(a){return Gn(this,1,a,jb)};du.prototype.hasType=function(){return jm(this,1,jb)};du.messageId="b.QueryBuilderResponse";var n_b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,n_b.messageId)};Y(n_b,W);n_b.messageId="b.SyntaxErrorResponse";var rXd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,rXd.messageId)};Y(rXd,W);rXd.prototype.getKindCase=function(){return wo(this,o_b,jb)};var o_b=[1,2];rXd.messageId="b.QueryBuilderResponseOrError";var sXd=function(){this.executor=p(cO)},tXd=function(a,b){b=Sp(b);return a.executor.get({url:"action/issue_query_parse/"+b,responseConstructor:rXd}).then(r_b).then(function(c){var d;(d=c.syntaxErrorResponse)!=null?c=d:(c=c.queryBuilderResponse,c={type:c.type,expressions:c.expressions.map(d_b)});return c})};sXd.\u0275fac=function(a){return new (a||sXd)};sXd.\u0275prov=Dc({token:sXd,factory:sXd.\u0275fac,providedIn:"root"});var p6=function(){var a=this;this.showPlaceholder=!1;this.customFieldTitle="";this.allowMultiSelect=!1;this.selectedValues=[];this.allowedValues=[];this.disabled=!1;this.onValueChange=new aQ;this.onApplyChanges=new aQ;this.onCancelChanges=new aQ;this.searchQuery$=new qf;this.hasPendingChanges=!1;this.selectedValuesMap={};this.oldSelectedValuesMap={};this.suggestedValues$=this.searchQuery$.pipe(jf(300),nf(),A(function(b){var c=b.toLowerCase();return a.allowedValues.filter(function(d){return za(d.toLowerCase(),
c)})}))};h=p6.prototype;h.ngOnInit=function(){ota(this.selectedValuesMap);for(var a=m(this.allowedValues),b=a.next();!b.done;b=a.next())b=b.value,this.selectedValuesMap[b]=this.selectedValues.includes(b);this.oldSelectedValuesMap=Object.assign({},this.selectedValuesMap);this.hasPendingChanges=!1};h.ngAfterViewInit=function(){};h.getPlaceholder=function(){return this.showPlaceholder?"Select "+this.customFieldTitle:""};
h.onSpace=function(a){var b;this.allowMultiSelect&&((b=this.autocompleteTrigger)==null?0:b.activeOption)&&(this.toggleSelection(this.autocompleteTrigger.activeOption.value),a.preventDefault(),a.stopPropagation())};h.search=function(a){this.searchQuery$.next(a)};h.handleSelectionChange=function(){this.hasPendingChanges=!mm(this.oldSelectedValuesMap,this.selectedValuesMap)};h.toggleSelection=function(a){this.selectedValuesMap[a]=!this.selectedValuesMap[a];this.handleSelectionChange()};
var v_b=function(a,b){a.allowMultiSelect?(b=Object.keys(aj(a.selectedValuesMap,function(c){return c})),a.onApplyChanges.emit(b)):a.onValueChange.emit(b==null?void 0:b.option.value)};p6.prototype.cancel=function(){this.onCancelChanges.emit()};p6.\u0275fac=function(a){return new (a||p6)};
p6.\u0275cmp=D({type:p6,selectors:[["b-custom-repeated-enum-picker"]],viewQuery:function(a,b){a&1&&hg(OX,7);if(a&2){var c;lg(c=mg())&&(b.autocompleteTrigger=c.first)}},inputs:{showPlaceholder:"showPlaceholder",customFieldTitle:"customFieldTitle",currentInputValue:"currentInputValue",allowMultiSelect:"allowMultiSelect",selectedValues:"selectedValues",allowedValues:"allowedValues",disabled:"disabled"},outputs:{onValueChange:"onValueChange",onApplyChanges:"onApplyChanges",onCancelChanges:"onCancelChanges"},
standalone:!1,decls:8,vars:9,consts:[["customRepeatedEnumPicker",""],["auto","matAutocomplete"],["id","custom-repeated-enum-picker","type","text","autocomplete","off","aria-label","Custom repeated enum field selection",3,"click","input","keydown.space","placeholder","ngModel","disabled","matAutocomplete"],[3,"optionSelected","hideSingleSelectionIndicator"],[1,"custom-repeated-enum-search-result",3,"value"],[1,"action-buttons"],[3,"checked"],[1,"custom-repeated-enum-suggestion"],[3,"click","change",
"checked"],["mat-flat-button","","type","submit",1,"small","action-button",3,"click","keydown.enter","disabled"],["svgIcon","done",1,"icon-s"],["mat-stroked-button","","type","button",1,"small","action-button",3,"click","keydown.esc"],["svgIcon","close",1,"icon-s"]],template:function(a,b){if(a&1){var c=t();K(0,"input",2,0);N("click",function(){u(c);var e=qg(1);return v(b.search(e.value))})("input",function(){u(c);var e=qg(1);return v(b.search(e.value))})("keydown.space",function(e){u(c);return v(b.onSpace(e))});
L();K(2,"mat-autocomplete",3,1);N("optionSelected",function(e){u(c);return v(v_b(b,e))});Nf(4,u_b,3,2,"mat-option",4,Mf);T(6,"async");L();F(7,w_b,5,5,"div",5)}if(a&2){a=qg(3);I("placeholder",b.getPlaceholder())("ngModel",b.currentInputValue)("disabled",b.disabled)("matAutocomplete",a);If("aria-disabled",b.disabled);B(2);I("hideSingleSelectionIndicator",!0);B(2);var d;Of((d=U(6,7,b.suggestedValues$))!=null?d:b.currentInputValue?[]:b.allowedValues);B(3);G(b.allowMultiSelect?7:-1)}},dependencies:[Jy,
QX,NX,hA,OX,xj,fE,mE,kB,gB,kL,hI,Tx],styles:[".custom-repeated-enum-search-result.mat-mdc-option[_ngcontent-%COMP%]{line-height:normal;min-height:32px;padding:0 8px}.custom-repeated-enum-search-result.mat-mdc-option.mat-active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.custom-repeated-enum-search-result[_ngcontent-%COMP%]   .mat-mdc-checkbox[_ngcontent-%COMP%]{overflow-wrap:anywhere}.custom-repeated-enum-search-result[_ngcontent-%COMP%]   .custom-repeated-enum-suggestion[_ngcontent-%COMP%]{color:#202124;color:var(--text);font-size:.8125rem;padding:4px 0;overflow-wrap:break-word;white-space:normal}.action-buttons[_ngcontent-%COMP%]{display:inline-block;line-height:30px;padding-left:8px}.action-buttons[_ngcontent-%COMP%]   button.gmat-mdc-button.action-button[_ngcontent-%COMP%]{min-width:0;width:28px;padding:0 4px;margin-right:4px}@media(forced-colors: active){.action-buttons[_ngcontent-%COMP%]   button.gmat-mdc-button.action-button[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider)}}"],
changeDetection:0});var q6=function(){var a=this;this.trackerFridge=p(VQ);this.placeholder="Choose Tracker";this.disabled=!1;this.onTrackerSelect=new aQ;this.searchQuery$=new qf;this.trackerSuggestions$=this.searchQuery$.pipe(jf(300),nf(),yf(function(b){return a.trackerFridge.watchMany({filter:b,pageSize:5})}),A(function(b){return b.results}));this.displayFn=function(b){return b?b.name:""}};q6.prototype.ngAfterViewInit=function(){};q6.prototype.updateSelectionOnChange=function(a){this.onTrackerSelect.emit(a.option.value)};
q6.prototype.search=function(a){this.searchQuery$.next(a)};q6.\u0275fac=function(a){return new (a||q6)};
q6.\u0275cmp=D({type:q6,selectors:[["b-tracker-picker"]],viewQuery:function(a,b){a&1&&hg(OX,7);if(a&2){var c;lg(c=mg())&&(b.autocompleteTrigger=c.first)}},inputs:{selectedTracker:"selectedTracker",placeholder:"placeholder",disabled:"disabled"},outputs:{onTrackerSelect:"onTrackerSelect"},standalone:!1,decls:7,vars:8,consts:[["trackerSearchInput",""],["auto","matAutocomplete"],["id","tracker-id","type","text","autocomplete","off","aria-label","Tracker selection",3,"click","input","placeholder","ngModel",
"disabled","matAutocomplete"],[3,"optionSelected","displayWith"],[1,"tracker-search-result",3,"value"],[1,"tracker-name"]],template:function(a,b){if(a&1){var c=t();K(0,"input",2,0);N("click",function(){u(c);var d=qg(1);return v(b.search(d.value))})("input",function(){u(c);var d=qg(1);return v(b.search(d.value))});L();K(2,"mat-autocomplete",3,1);N("optionSelected",function(d){u(c);return v(b.updateSelectionOnChange(d))});Nf(4,x_b,3,2,"mat-option",4,Mf);T(6,"async");L()}a&2&&(a=qg(3),I("placeholder",
b.placeholder)("ngModel",b.selectedTracker)("disabled",b.disabled)("matAutocomplete",a),If("aria-disabled",b.disabled),B(2),I("displayWith",b.displayFn),B(2),Of(U(6,6,b.trackerSuggestions$)))},dependencies:[QX,NX,hA,OX,xj,fE,mE,Tx],styles:[".tracker-search-result.mat-mdc-option[_ngcontent-%COMP%]{line-height:normal;height:auto;padding:0 8px}.tracker-search-result.mat-mdc-option.mat-active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.tracker-search-result[_ngcontent-%COMP%]   .tracker-name[_ngcontent-%COMP%]{color:#202124;color:var(--text);font-size:.8125rem;padding:4px 0;overflow-wrap:break-word;white-space:pre-wrap}"],
changeDetection:0});var r6=function(){Z.apply(this,arguments);this.analytics=p(eQ);this.customFieldsApi=p(uP);this.savedSearchApi=p(oP);this.hotlistApi=p(gP);this.trackerFridge=p(VQ);this.issueSearchResources=p(sXd);this.activeSession=p(uu);this.elementRef=p(Hd);this.errorHandler=p(pO);this.componentActions=p(VV);this.teamsService=p(OQ);this.searchRuleConfigService=p(c6);this.searchRuleFactory=p(d6);this.cdr=p(bQ,{self:!0});this.trackerHelpers=p(kS);this.currentUserBookmarksFridge=p(qP);this.candidateEmailAutocompleteDenylist=
["me","none","any"];this.sessionIsInternal=this.activeSession.isInternalSession();this.isTrackerSearchEnabled=!1;this.typeLabels=r6.TYPE_LABELS;this.globalTypeLabels=r6.GLOBAL_TYPE_LABELS;this.availableLabels=[];this.state="INIT";this.expressions=[];this.components={};this.trackers={};this.teams={};this.hotlists={};this.savedSearches={};this.customFields={};this.userHotlists=[];this.userSavedSearches=[];this.trackerUnderEdit=this.teamUnderEdit=this.componentUnderEdit=this.chipUnderEdit=null};
Y(r6,Z);r6.\u0275dir=Z.\u0275dir;var uXd=function(a){var b=[];$i(f6(a.searchRuleConfigService),function(c,d){d==="SAVED_SEARCH_ID"||d==="TRACKER_ID"&&!a.isTrackerSearchEnabled||d==="TEAM_ID"&&!a.sessionIsInternal||(c.name?b.push([d,c.name]):b.push([d,F$a(d)]))},a);b.sort(function(c,d){return Cba(c[1],d[1])});b.push(["SAVED_SEARCH_ID","Saved search"]);b.push(["CUSTOM_FIELD","Custom field"]);return b};r6.prototype.schedule=function(a){this.subscriptions.add(qe.schedule(a))};r6.prototype.ngOnInit=function(){this.cdr.detectChanges()};
r6.prototype.ngOnChanges=function(a){a.isTrackerSearchEnabled&&(this.availableLabels=uXd(this))};
var wXd=function(a,b){a.reset();b?vXd(a,b):(a.expressions=r6.DEFAULT_FIELDS.map(function(c){return L0b(a.searchRuleFactory,c)}),a.state="SUCCESS");fe(jfd(a.currentUserBookmarksFridge)).then(function(c){a.userSavedSearches=c;c=m(a.userSavedSearches);for(var d=c.next();!d.done;d=c.next())d=d.value,a.savedSearches[d.searchId]=d;a.cdr.detectChanges()});fe(rP(a.currentUserBookmarksFridge)).then(function(c){a.userHotlists=c;c=m(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()},vXd=function(a,b){tXd(a.issueSearchResources,b).then(function(c){if(c.syntaxError)return a.state="SYNTAX_ERROR",a.analytics.trackEvent("adv-search","adv-search-syntax-error"),a.cdr.detectChanges(),null;a.expressionType=c.type;a.expressions=[];c=c.expressions.map(function(d){return xXd(a,d)});return Promise.all(c).then(function(d){if(d.every(function(f){return!!f})){a.state="SUCCESS";d=m(d);for(var e=d.next();!e.done;e=d.next())a.expressions.push(e.value)}else a.state=
"NOT_REPRESENTABLE",a.analytics.trackEvent("adv-search","adv-search-not-rep-error");a.cdr.detectChanges()})}).catch(function(c){a.state="SERVER_ERROR";a.errorHandler.errorHandler(null,c);a.cdr.detectChanges()})},xXd=function(a,b){b.label&&b.label.field==="TRACKER_ID"&&!a.isTrackerSearchEnabled&&(b.label.field="_TEXT_");b.label&&b.label.field==="TEAM_ID"&&!a.sessionIsInternal&&(b.label.field="_TEXT_");return b.label&&b.label.field==="CUSTOM_FIELD"&&b.label.customFieldId!==void 0?yXd(a,b.label.customFieldId).then(function(c){b.customField=
c;return zXd(a,b)}):Promise.resolve(zXd(a,b))},yXd=function(a,b){return a.customFields[b]?Promise.resolve(a.customFields[b]):a.customFieldsApi.get(b).then(function(c){return a.customFields[b]=c})},zXd=function(a,b){b=b.type==="ERR"?null:a.searchRuleFactory.build(b);if(!b||b&&!b.isValid())return null;AXd(a,b);return b},AXd=function(a,b){switch(b.label.field){case "COMPONENT_ID":b=m(b.values);for(var c=b.next();!c.done;c=b.next())c=c.value.value,a.components[c]||a.fetchComponent(c);break;case "TRACKER_ID":if(a.isTrackerSearchEnabled)for(b=
m(b.values),c=b.next();!c.done;c=b.next())c=c.value.value,a.trackers[c]||BXd(a,c);break;case "TEAM_ID":if(a.sessionIsInternal)for(b=m(b.values),c=b.next();!c.done;c=b.next())c=c.value.value,a.teams[c]||CXd(a,c);break;case "SAVED_SEARCH_ID":b=m(b.values);for(c=b.next();!c.done;c=b.next())c=c.value,a.savedSearches[c.value]||a.savedSearchApi.get(c.value).then(function(d){a.savedSearches[d.searchId]=d});break;case "HOTLIST_ID":for(b=m(b.values),c=b.next();!c.done;c=b.next())c=c.value,a.hotlists[c.value]||
a.hotlistApi.get(c.value).then(function(d){a.hotlists[d.hotlistId]=d})}};r6.prototype.fetchComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){var d;rs(b.activeSession)&&c.trackerId!==((d=b.activeSession.getTracker())==null?void 0:d.trackerId)||(b.components[a]=c)})};
var BXd=function(a,b){a.trackerFridge.watch(b).pipe(zf(a.destroyed$)).subscribe(function(c){c&&(a.trackers[b]=c)})},CXd=function(a,b){QQ(a.teamsService,b).pipe(gf(function(){return ce([])}),zf(a.destroyed$)).subscribe(function(c){c.length>0?(c=c[0],a.teams[b]={id:c.teamId,pathNames:c.pathNames,name:c.name,description:c.description}):a.teams[b]={id:b,pathNames:[b],name:b,description:""}})},DXd=function(a){var b=a.expressionType==="AND"?" ":" | ";return Uwc(a.expressions.map(function(c){return c.label?
c.toString():""}),wHc).join(b)};r6.prototype.getState=function(){return this.state};r6.prototype.reset=function(){this.expressionType="AND";this.expressions=[];this.state="INIT"};
var O0b=function(a,b){var c=a.expressions[b],d=c.label;d.field==="CUSTOM_FIELD"?c.isPendingCustomField=!0:(a.expressions[b]=L0b(a.searchRuleFactory,d.field),M0b(a,a.expressions[b]));a.cdr.detectChanges()},M0b=function(a,b){var c=b.getWidgetType();c==="component"||c==="savedsearch"||c==="hotlist"||c==="text"||c==="team"||c==="tracker"||c==="repeatedenum"?gu(a,b):c==="date"&&(b.dateFrom||(b.dateFrom=dXd(new pm)),b.dateTo||(b.dateTo=dXd(new pm)))};
r6.prototype.addExpression=function(a){this.expressions.push({label:{field:a}});O0b(this,this.expressions.length-1)};r6.prototype.removeExpression=function(a){La(this.expressions,a);this.cdr.detectChanges()};
var gu=function(a,b){var c={value:""};b.values.push(c);b.label.field==="COMPONENT_ID"?U_b(a,c):b.label.field==="TRACKER_ID"?a0b(a,c):b.label.field==="TEAM_ID"?h0b(a,c):b.label.field==="CUSTOM_FIELD"?D_b(a,c):hu(a,c);a.cdr.detectChanges()},fu=function(a,b,c){La(b.values,c);b.values.length||a.removeExpression(b);a.cdr.detectChanges()};
r6.prototype.getDateValue=function(a){var b,c=a.match(AWd);return c?(b||(b=new Date),c[1]&&b.setDate(b.getDate()+ +c[1]),String(b.getUTCMonth()+1)+"/"+String(b.getUTCDate())+"/"+String(b.getUTCFullYear())):a};
var hu=function(a,b){a.chipUnderEdit=b;a.cdr.detectChanges()},U_b=function(a,b){hu(a,b);a.componentUnderEdit=b.value?nm(a.components[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-component-picker input").focus()})},D_b=function(a,b){hu(a,b);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-adv-search-custom-repeated-enum-chip input").focus()})},a0b=function(a,b){hu(a,b);a.trackerUnderEdit=b.value?nm(a.trackers[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-tracker-picker input").focus()})},
h0b=function(a,b){hu(a,b);a.teamUnderEdit=b.value?nm(a.teams[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})},eu=function(a){a.chipUnderEdit=null;a.cdr.detectChanges()},j0b=function(a,b){a.analytics.trackEvent("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;eu(a);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})};
r6.prototype.getTypeLabel=function(a,b){var c,d;return((c=this.typeLabels[a.label.field])==null?void 0:c[b])||((d=this.typeLabels[a.getWidgetType()])==null?void 0:d[b])||this.typeLabels.DEFAULT[b]};r6.prototype.getCustomFieldName=function(a){return(a=a.label.customFieldId)?this.customFields[a].name||String(a):""};r6.prototype.getComponentPath=function(a){if(!a)return"";var b=ju(this.trackerHelpers,a.componentPathInfo);return b&&b.componentPathName?b.componentPathName.join(" > "):a.name};
r6.GLOBAL_TYPE_LABELS={AND:"Match all (AND)",OR:"Match any (OR)"};
r6.TYPE_LABELS={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"}};
r6.DEFAULT_FIELDS=["COMPONENT_ID","ASSIGNEE","STATUS","_TEXT_"];r6.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(r6)))(b||r6)}}();
r6.\u0275cmp=D({type:r6,selectors:[["b-advanced-search"]],inputs:{isTrackerSearchEnabled:"isTrackerSearchEnabled"},standalone:!1,features:[Gg([bQ]),Ef,jx],decls:1,vars:1,consts:[["newExpressionMenu","matMenu"],[1,"bv2-adv-search"],[1,"bv2-adv-search-title-container"],[1,"bv2-adv-search-title"],["appearance","outline","subscriptSizing","dynamic"],[1,"bv2-adv-search-rule"],[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"],["mat-menu-item","","type","button"],["color","primary",1,"bv2-adv-search-join-type",3,"ngModelChange","ngModel"],[3,"value"],[1,"bv2-adv-search-rule-title"],[1,"bv2-adv-search-rule-type","bv2-adv-search-rule-jfk-select",3,"ngModelChange","selectionChange","ngModel"],[1,"bv2-adv-search-rule-content"],[1,"bv2-adv-search-custom-field-label"],[1,"bv2-adv-search-custom-field-selection"],["type","button","aria-label","Delete search rule",1,"bv2-remove-icon",
"keep-focus-ring","bv2-adv-search-rule-delete-btn",3,"click"],[1,"bv2-adv-search-rule-op","bv2-adv-search-rule-jfk-select",3,"ngModelChange","ngModel"],[1,"bv2-adv-search-chip-container"],[1,"bv2-adv-search-enum-rule"],["type","button","mat-stroked-button","",1,"bv2-adv-search-chip-add-btn"],[1,"bv2-adv-search-chip","bv2-adv-search-custom-repeated-enum-chip"],[1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-btn",3,"title"],[1,"bv2-adv-search-chip-content"],["type","button","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,"click","title"],[1,"bv2-adv-search-chip-content-text"],[1,"bv2-search-custom-repeated-enum-picker",3,"onValueChange","showPlaceholder","customFieldTitle","currentInputValue","allowedValues"],["type","button","mat-stroked-button","",1,"bv2-adv-search-chip-add-btn",3,"click"],[1,"bv2-adv-search-enum-item"],[3,"change","checked","matTooltip"],["aria-label",
"Add one or more user names, separated by comma","placeholder","One or more user names, comma-separated",3,"valueChange","value","candidateDenylist"],["type","text","aria-label","Add one or more values, separated by comma","placeholder","One or more values, comma-separated",3,"ngModelChange","ngModel"],["type","text","placeholder","One or more IDs, comma-separated - e.g., 1,2,3",3,"ngModelChange","ngModel"],["type","text","aria-label","Add the condition",3,"ngModelChange","ngModel"],[1,"bv2-adv-search-chip",
"bv2-adv-search-chip-text"],["type","button","aria-label","Remove the condition",1,"bv2-adv-search-chip-delete-btn","bv2-remove-icon",3,"click"],[1,"bv2-adv-search-chip","bv2-adv-search-component-chip"],["type","button","role","switch","aria-label","Include subcomponents",1,"unstyled-button",3,"click","title"],[3,"svgIcon"],[1,"bv2-search-component-picker",3,"selectedComponentChange","selectedComponent","placeholder","isRequired"],[1,"bv2-adv-search-chip","bv2-adv-search-tracker-chip"],[1,"bv2-search-tracker-picker",
3,"onTrackerSelect","selectedTracker"],[1,"bv2-adv-search-chip","bv2-adv-search-team-chip"],["type","button","role","switch","aria-label","Include subteams",1,"unstyled-button",3,"click","title"],[1,"bv2-search-team-picker",3,"onTeamSelect","teamSelected"],[3,"boundValueChange","boundValue","isRequired"],["type","text","maxlength","3",1,"bv2-duration-field",3,"ngModelChange","ngModel"],[1,"bv2-adv-search-chip","bv2-adv-search-bookmark-item-chip"],["appearance","outline","subscriptSizing","dynamic",
1,"bv2-adv-search-bookmark-item-form-field"],["placeholder","Select hotlist",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Select search",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModelChange","selectionChange","ngModel"],[3,"fieldSelected"],["mat-menu-item","","type","button",3,"click"]],template:function(a,b){a&1&&F(0,R0b,14,3,"div",1);a&2&&G(b.getState()==="SUCCESS"?0:-1)},
dependencies:[Jy,q3,p6,xj,fE,zE,mE,kB,gB,kL,hI,HD,SD,VJ,fH,dH,iH,yU,TH,hA,vK,nA,K3,B_,dW,Z1,q6,qsd,Yx],styles:['[_nghost-%COMP%]     .mat-mdc-form-field-infix{width:unset;min-width:105px;border:0}[_nghost-%COMP%]     .mat-mdc-select-value-text{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%]     .bv2-custom-field-picker{width:unset}[_nghost-%COMP%]     .bv2-adv-search-title-container .mat-mdc-form-field-infix{min-width:120px}.mat-mdc-form-field[_ngcontent-%COMP%]{--mat-form-field-container-height: 36px;--mat-form-field-filled-label-display: none;--mat-form-field-container-vertical-padding: 6px;--mat-form-field-filled-with-label-container-padding-top: 6px;--mat-form-field-filled-with-label-container-padding-bottom: 6px;margin-right:5px;text-align:center;display:inline-block}.bv2-adv-search-title-container[_ngcontent-%COMP%]{display:flex;align-items:center}.bv2-adv-search-title[_ngcontent-%COMP%]{font-weight:bold;padding-left:8px;margin-right:5px;display:inline-block;min-width:254px}.bv2-adv-search-bookmark-item-chip[_ngcontent-%COMP%]{align-items:baseline}.bv2-adv-search-bookmark-item-form-field[_ngcontent-%COMP%]{text-align:left;width:100%}div.bv2-adv-search-enum-item[_ngcontent-%COMP%]{max-width:170px;min-width:170px;padding:0}']});var EXd=function(){};EXd.\u0275fac=function(a){return new (a||EXd)};EXd.\u0275mod=$e({type:EXd});EXd.\u0275inj=Fc({imports:[WO,SX,DE,mB,lL]});var FXd=function(){};FXd.\u0275fac=function(a){return new (a||FXd)};FXd.\u0275mod=$e({type:FXd});FXd.\u0275inj=Fc({imports:[WO,SX,lL,wK,DE]});var s6=function(){};s6.\u0275fac=function(a){return new (a||s6)};s6.\u0275mod=$e({type:s6});s6.\u0275inj=Fc({imports:[fV,WO,r3,EXd,DE,mB,lL,UD,HE,WJ,zU,wK,X3,Q_,KX,b2,FXd]});var GXd=function(){this.domSafe=p(mR);this.buttonLabel="";this.alertMode=this.menuMode=!1},S0b=function(a){Er(a.domSafe,"https://g3doc.corp.google.com/company/teams/buganizer/release-notes/b3-releasenotes.md")};GXd.\u0275fac=function(a){return new (a||GXd)};
GXd.\u0275cmp=D({type:GXd,selectors:[["b-whats-new-button"]],inputs:{buttonLabel:"buttonLabel",menuMode:"menuMode",alertMode:"alertMode"},standalone:!1,decls:2,vars:1,consts:["type;button;mat-menu-item;;aria-label;Open release notes in a new tab".split(";"),["type","button","mat-icon-button","","aria-label","Open release notes in a new tab",3,"matTooltip"],["type","button","mat-menu-item","","aria-label","Open release notes in a new tab",3,"click"],["type","button","mat-icon-button","","aria-label",
"Open release notes in a new tab",3,"click","matTooltip"],[3,"svgIcon"]],template:function(a,b){a&1&&F(0,T0b,2,1,"button",0)(1,U0b,3,3,"button",1);a&2&&G(b.menuMode?0:1)},dependencies:[Jy,kB,iB,dH,vK,nA],styles:["[_nghost-%COMP%] { display: flex; }"]});var t6=function(){Z.apply(this,arguments);this.session=p(uu);this.appsEvents=p(UO);this.prefsManager=p(hR);this.enableWhatsNewDialog=this.session.getFlag("enableWhatsNewDialog");this.ThemePreferencesDensity=jbd;this.density="COMFORTABLE"};Y(t6,Z);t6.\u0275dir=Z.\u0275dir;h=t6.prototype;h.ngOnInit=function(){var a=this;this.prefsManager.preferences$.pipe(zf(this.destroyed$)).subscribe(function(b){if(b==null?0:b.themePreferences)a.density=b.themePreferences.density})};h.setDensity=function(a){this.appsEvents.topBarEvents.setDensity.next(a)};
h.browseComponents=function(a){this.appsEvents.topBarEvents.browseComponents.next({newTab:a.ctrlKey||a.metaKey})};h.manageHotlists=function(a){this.appsEvents.topBarEvents.manageHotlists.next({newTab:a.ctrlKey||a.metaKey})};h.manageSlos=function(a){this.appsEvents.topBarEvents.manageSlos.next({newTab:a.ctrlKey||a.metaKey})};h.showSettings=function(a){this.appsEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey})};
t6.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(t6)))(b||t6)}}();
t6.\u0275cmp=D({type:t6,selectors:[["b-app-settings-menu"]],standalone:!1,features:[Ef],decls:27,vars:12,consts:[["settingsMenu","matMenu"],["type","button","mat-icon-button","","matTooltip","Settings","aria-label","Settings",3,"disabled","matMenuTriggerFor"],["svgIcon","settings-outline",1,"icon-m"],[1,"b-menu-header"],["type","button","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"],
["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to cozy",3,"click"],["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to compact",3,"click"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item","",3,"click",4,"internalOnly"],["buttonLabel","Release Notes",3,"menuMode"]],template:function(a,b){if(a&1){var c=t();K(0,"button",1);M(1,"mat-icon",2);L();K(2,"mat-menu",null,0)(4,"div",
3);Q(5,"Display Density");L();K(6,"button",4);N("click",function(){u(c);return v(b.setDensity(b.ThemePreferencesDensity.COMFORTABLE))});K(7,"span",5);M(8,"mat-icon",6);L();Q(9," Comfortable ");L();K(10,"button",7);N("click",function(){u(c);return v(b.setDensity(b.ThemePreferencesDensity.COZY))});K(11,"span",5);M(12,"mat-icon",6);L();Q(13," Cozy ");L();K(14,"button",8);N("click",function(){u(c);return v(b.setDensity(b.ThemePreferencesDensity.COMPACT))});K(15,"span",5);M(16,"mat-icon",6);L();Q(17," Compact ");
L();M(18,"mat-divider");K(19,"button",9);N("click",function(d){u(c);return v(b.browseComponents(d))});Q(20,"Browse components");L();K(21,"button",9);N("click",function(d){u(c);return v(b.manageHotlists(d))});Q(22,"Manage hotlists");L();E(23,V0b,2,0,"button",10);K(24,"button",9);N("click",function(d){u(c);return v(b.showSettings(d))});Q(25,"Settings");L();F(26,W0b,2,1);L()}a&2&&(a=qg(3),I("disabled",b.session.isAnonymous())("matMenuTriggerFor",a),B(6),wg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COMFORTABLE),
If("aria-checked",b.density===b.ThemePreferencesDensity.COMFORTABLE),B(4),wg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COZY),If("aria-checked",b.density===b.ThemePreferencesDensity.COZY),B(4),wg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COMPACT),If("aria-checked",b.density===b.ThemePreferencesDensity.COMPACT),B(12),G(b.enableWhatsNewDialog?26:-1))},dependencies:[Jy,VJ,fH,dH,iH,kB,iB,hK,vK,nA,GXd,TY],encapsulation:2,changeDetection:0});var HXd=function(){this.theme=p(DW);this.isDark=!1;this.iconName="dark-mode-filled"};HXd.prototype.ngOnInit=function(){this.theme.loadLocalDarkmode();IXd(this)};var IXd=function(a){a.isDark=a.theme.clientDarkmodeSubject.getValue();a.iconName=a.isDark?"brightness-high":"dark-mode-filled"};HXd.\u0275fac=function(a){return new (a||HXd)};
HXd.\u0275cmp=D({type:HXd,selectors:[["theme-change-btn"]],standalone:!1,decls:2,vars:1,consts:[["type","button","mat-icon-button","","matTooltip","Change theme","aria-label","Change the application's visual theme",3,"click"],[3,"svgIcon"]],template:function(a,b){a&1&&(K(0,"button",0),N("click",function(){var c=b.theme;c.setLocalDarkmode(!c.clientDarkmodeSubject.getValue());c.clientStreamzService&&Y8c(c.clientStreamzService,"toggleDarkmode",!c.clientDarkmodeSubject.getValue());rwd(c,!c.clientDarkmodeSubject.getValue());
IXd(b)}),M(1,"mat-icon",1),L());a&2&&(B(),I("svgIcon",b.iconName))},dependencies:[Jy,kB,iB,vK,nA],encapsulation:2});var JXd=function(){this.session=p(uu);this.userFeedback=p(MY);this.domSafe=p(mR);this.docLinks=p(cS);this.enableWhatsNewDialog=this.session.getFlag("enableWhatsNewDialog");this.majorReleaseNotesUpdated=this.session.getFlag("majorReleaseNotesUpdated")};JXd.\u0275fac=function(a){return new (a||JXd)};
JXd.\u0275cmp=D({type:JXd,selectors:[["b-app-actions"]],standalone:!1,decls:6,vars:1,consts:[["id","whatsNewButton",3,"alertMode"],["type","button","mat-icon-button","","class","feedback-button","matTooltip","Send feedback","aria-label","send feedback",3,"click",4,"internalOnly"],["type","button","mat-icon-button","","matTooltip","Help","aria-label","help",3,"click"],["svgIcon","help-outline"],["type","button","mat-icon-button","","matTooltip","Send feedback","aria-label","send feedback",1,"feedback-button",
3,"click"],["svgIcon","feedback-outline"]],template:function(a,b){a&1&&(M(0,"theme-change-btn"),F(1,X0b,1,1,"b-whats-new-button",0),E(2,Y0b,2,0,"button",1),K(3,"button",2),N("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)}),M(4,"mat-icon",3),L(),M(5,"b-app-settings-menu"));a&2&&(B(),G(b.enableWhatsNewDialog?1:-1))},dependencies:[Jy,kB,iB,vK,nA,
GXd,TY,HXd,t6],styles:["[_nghost-%COMP%]{display:flex;align-items:center;flex-wrap:nowrap;color:#5f6368;color:var(--icon)}.new-feature-link[_ngcontent-%COMP%]{color:#3c4043;color:var(--c800)}/*# sourceMappingURL=app_actions.css.map */"],changeDetection:0});var $0b=function(a){return[a]},a1b=function(){return[]},KXd=function(){this.activeSession=p(uu);this.clickMenu=new aQ;this.showMenu=!1;this.clickLogo=new aQ;this.chips=[]};KXd.prototype.ngOnInit=function(){this.showMenu=!this.activeSession.isAnonymous()&&this.clickMenu.observed};KXd.\u0275fac=function(a){return new (a||KXd)};
KXd.\u0275cmp=D({type:KXd,selectors:[["app-logo"]],inputs:{imgSrc:"imgSrc",imgSrcDark:"imgSrcDark",href:"href",name:"name",chips:"chips"},outputs:{clickMenu:"clickMenu",clickLogo:"clickLogo"},standalone:!1,ngContentSelectors:["*"],decls:9,vars:5,consts:[["type","button","mat-icon-button","","aria-label","Expand/Collapse Navigation",1,"menu"],[3,"click"],["alt","",1,"logo","light",3,"src"],["alt","",1,"logo","dark",3,"src"],[1,"b-chip",3,"class"],["type","button","mat-icon-button","","aria-label",
"Expand/Collapse Navigation",1,"menu",3,"click"],["svgIcon","menu-18px"],[1,"b-chip"]],template:function(a,b){a&1&&(bg(),F(0,Z0b,2,0,"button",0),K(1,"a",1),N("click",function(){return b.clickLogo.emit()}),M(2,"img",2)(3,"img",3),K(4,"h1"),Q(5),L()(),cg(6),Nf(7,b1b,2,6,"output",4,Mf));a&2&&(G(b.showMenu?0:-1),B(),If("href",b.href?b.href:void 0,Ne),B(),I("src",b.imgSrc,Ne),B(),I("src",b.imgSrcDark||b.imgSrc,Ne),B(2),yg(b.name),B(2),Of(b.chips))},dependencies:[Jy,kB,iB],styles:['[_nghost-%COMP%]{box-sizing:border-box;height:48px;padding:0 16px;min-width:300px}[_nghost-%COMP%], a[_ngcontent-%COMP%]{display:flex;align-items:center}.menu[_ngcontent-%COMP%]{color:#3c4043;color:var(--gfx);margin-right:12px}.logo[_ngcontent-%COMP%]{width:30px;height:30px;padding:3px;margin-right:12px}h1[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;color:#3c4043;color:var(--gfx);font-size:1.375rem;font-weight:normal;display:inline-block;margin:0;padding:0;margin-right:8px;white-space:nowrap}.dark-mode   [_nghost-%COMP%]     .logo{filter:brightness(1.1) contrast(1.3)}.logo.dark[_ngcontent-%COMP%]{display:none}.dark-mode   [_nghost-%COMP%]     .logo.light{display:none}.dark-mode   [_nghost-%COMP%]     .logo.dark{display:inline-block}/*# sourceMappingURL=app_logo.css.map */'],
changeDetection:0});var u6=function(){this.events=p(UO);this.imageUrls=p(XV);this.environmentType="QA";this.frontendAccessMode="INTERNAL";this.href="/";this.chips=[];this.name="Buganizer"};u6.prototype.ngOnInit=function(){var a=this.environmentType==="QA"?this.frontendAccessMode==="INTERNAL"||this.frontendAccessMode==="PARTNER"?"QA":"sandbox":this.environmentType==="NIGHTLY"?"nightly":this.environmentType==="DEV"?"dev":"";a&&this.chips.push({name:a,color:"purple"})};
u6.prototype.ngOnChanges=function(a){if(a.tracker||a.frontendAccessMode)this.name=this.getAppName()};u6.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:wb(this.frontendAccessMode,"unknown frontend access mode.")}};
da.Object.defineProperties(u6.prototype,{useNewLogo:{configurable:!0,enumerable:!0,get:function(){return this.frontendAccessMode==="INTERNAL"}},imgSrc:{configurable:!0,enumerable:!0,get:function(){var a=this.useNewLogo?this.imageUrls.LOGO_LIGHT:"https://www.gstatic.com/buganizer/img/v0/logo.svg",b,c;return((b=this.tracker)==null?void 0:(c=b.branding)==null?void 0:c.logoUrl)||a}},imgSrcDark:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.tracker)==null?void 0:(b=a.branding)==null?
void 0:b.logoUrl)||"https://www.gstatic.com/buganizer/img/v3/logo_dark.svg"}}});u6.\u0275fac=function(a){return new (a||u6)};
u6.\u0275cmp=D({type:u6,selectors:[["b-app-logo"]],inputs:{environmentType:"environmentType",frontendAccessMode:"frontendAccessMode",tracker:"tracker",href:"href"},standalone:!1,features:[jx],decls:1,vars:5,consts:[[3,"clickMenu","name","href","chips","imgSrc","imgSrcDark"]],template:function(a,b){a&1&&(K(0,"app-logo",0),N("clickMenu",function(){return b.events.onClickAppMenuIcon.next()}),L());a&2&&I("name",b.name)("href",b.href)("chips",b.chips)("imgSrc",b.imgSrc)("imgSrcDark",b.imgSrcDark)},dependencies:[KXd],
encapsulation:2,changeDetection:0});var v6=function(){this.isActive=!1;this.optionClicked=new aQ};v6.prototype.ngOnInit=function(){};v6.prototype.onClick=function(){this.optionClicked.emit(this.index)};v6.\u0275fac=function(a){return new (a||v6)};
v6.\u0275cmp=D({type:v6,selectors:[["b-app-search-auto-complete-option"]],hostVars:2,hostBindings:function(a,b){a&1&&N("click",function(){return b.onClick()});a&2&&wg("active",b.isActive)},inputs:{isActive:"isActive",index:"index"},outputs:{optionClicked:"optionClicked"},standalone:!1,ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"content","gmat-subtitle-2"]],template:function(a){a&1&&(bg(),K(0,"div",0),cg(1),L())},styles:["[_nghost-%COMP%]{cursor:pointer;display:flex;position:relative}.active[_nghost-%COMP%]{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}[_nghost-%COMP%]:hover:not(.active){background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.content[_ngcontent-%COMP%]{flex-grow:1;overflow:hidden;padding:8px 16px 8px 36px;text-overflow:ellipsis}.mat-ripple[_ngcontent-%COMP%]{pointer-events:none;position:absolute;height:100%;width:100%}/*# sourceMappingURL=app_search_auto_complete_option.css.map */"],
changeDetection:0});var w6=function(){this.ref=p(bQ,{self:!0});this.hostElement=p(Hd);this.trackerHelpers=p(kS);this.items=[];this.header=null;this.itemSelected=new aQ;this.activeItemChanged=new aQ;this.SPECIAL_ITEM_TYPES="issue hotlist savedsearch atom component customField team tracker".split(" ")};w6.prototype.ngOnChanges=function(a){a.items&&(this.items.length>0?(this.activeItemIndex=0,this.activeItemChanged.emit(this.items[0])):this.clearActiveItem(),this.ref.markForCheck())};w6.prototype.ngAfterViewInit=function(){};
var C1b=function(a){var b=P(3);N1b(a);b.itemSelected.emit(a)};w6.prototype.setNextItemActive=function(){this.items.length>0&&this.activeItemIndex!=null&&(this.activeItemIndex=(this.activeItemIndex+1)%this.items.length,this.activeItemChanged.emit(this.items[this.activeItemIndex]),this.ref.markForCheck(),LXd(this))};
w6.prototype.setPreviousItemActive=function(){this.items.length>0&&this.activeItemIndex!=null&&(this.activeItemIndex=(this.activeItemIndex-1+this.items.length)%this.items.length,this.activeItemChanged.emit(this.items[this.activeItemIndex]),this.ref.markForCheck(),LXd(this))};var MXd=function(a){a.activeItemIndex!=null&&a.itemSelected.emit(a.items[a.activeItemIndex])};w6.prototype.clearActiveItem=function(){this.activeItemIndex=void 0;this.activeItemChanged.emit(void 0)};
var NXd=function(a){if(a.activeItemIndex!=null&&a.itemElements){var b,c;return(c=(b=a.itemElements.get(a.activeItemIndex))==null?void 0:b.nativeElement.id)!=null?c:void 0}},LXd=function(a){var b=a.itemElements.find(function(c,d){return d===a.activeItemIndex});b&&fpc(b.nativeElement,a.hostElement.nativeElement)},N1b=function(a){dr("search","autocomplete-select",a.completionCfg.type||"unknown_type",isNaN(Number(a.id))?1:Number(a.id))};w6.\u0275fac=function(a){return new (a||w6)};
w6.\u0275cmp=D({type:w6,selectors:[["b-app-search-auto-complete-list"]],viewQuery:function(a,b){a&1&&hg(v6,5,Hd);if(a&2){var c;lg(c=mg())&&(b.itemElements=c)}},inputs:{items:"items",header:"header"},outputs:{itemSelected:"itemSelected",activeItemChanged:"activeItemChanged"},standalone:!1,features:[Gg([bQ]),jx],decls:4,vars:1,consts:[[1,"header","gmat-caption"],"role;listbox;aria-label;Search autocomplete list;id;b-search-box-autocomplete".split(";"),["role","option",3,"index","isActive"],[1,"margin-s-right"],
[3,"accessLevel"],[3,"trackerId"],["role","option",3,"optionClicked","index","isActive"],[1,"monospaced","item-description"],[1,"item-description"],["role","button",3,"click","title"],[1,"item-description","item-de-emphasized"]],template:function(a,b){a&1&&(F(0,w1b,7,6,"div",0),K(1,"div",1),Nf(2,O1b,10,13,"b-app-search-auto-complete-option",2,Mf),L());a&2&&(G(b.header&&b.header.type?0:-1),B(2),Of(b.items))},dependencies:[RV,ZV,v6,Ux],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}.item-de-emphasized[_ngcontent-%COMP%]{font-weight:lighter}span[role=button][_ngcontent-%COMP%]{cursor:pointer}span[role=button][_ngcontent-%COMP%]:hover{text-decoration:underline}/*# sourceMappingURL=app_search_auto_complete_list.css.map */"],
changeDetection:0});var OXd=["box"],PXd=["initialFocus"],QXd=["finalFocus"],x6=function(){this.documentationLinks=p(cS);this.appSearchState=p(rT);this.activeSession=p(uu);this.placeholder="";this.isSearchDisabled=!1;this.autoCompleteItems=[];this.autoCompleteHeader=null;this.onAdvancedSearchOpen=new aQ;this.onAdvancedSearchClose=new aQ;this.onAdvancedSearchSubmit=new aQ;this.onSaveSearch=new aQ;this.dropdownStatus="closed";this.searchName="";this.searchHelpLink=this.documentationLinks.baseDocumentationUrl+"/concepts/search-query-language";
this.destroyed$=new qf;this.currentQuery$=this.appSearchState.queryState$.pipe(A(function(a){return a.query}));this.autoCompleteItemSelected$=new qf;this.isAnonymous=this.activeSession.isAnonymous()};
x6.prototype.ngOnInit=function(){var a=this;this.autoCompleteItemSelected$.pipe(Cf(this.currentQuery$),zf(this.destroyed$)).subscribe(function(b){var c=m(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:b.cursorIdx!=null?b.cursorIdx:b.startIdx==null?b.completionValue.length:b.startIdx+b.completionValue.length,setViaInteraction:!1});a.inputBox.nativeElement.focus()})};
x6.prototype.ngAfterViewInit=function(){var a=this;this.appSearchState.queryState$.pipe(ue(function(b){return!b.setViaInteraction}),zf(this.destroyed$)).subscribe(function(b){var c=b.query;b=b.cursorPosition;a.inputBox.nativeElement.value=c;b!=null&&(c=a.inputBox.nativeElement,P1b(c)&&(c.selectionStart=b,c.selectionEnd=b))})};x6.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
var RXd=function(a){a.appSearchState.searchTriggered$.next("keyboard")},SXd=function(a,b){a.dropdownStatus="auto_complete";a.acList.clearActiveItem();var c=Q1b(a.inputBox.nativeElement,!0)[0];c=c===Q1b(a.inputBox.nativeElement,!1)[1]?c:void 0;a.appSearchState.queryState$.next({query:b,cursorPosition:c,setViaInteraction:!0})};x6.prototype.onInputFocus=function(){this.dropdownStatus="auto_complete"};
x6.prototype.handleKeydown=function(a){switch(a.key){case "Escape":if(!y6(this))return;TXd(this);break;case "ArrowUp":if(!y6(this))return;this.acList.setPreviousItemActive();break;case "ArrowDown":if(!y6(this))return;this.acList.setNextItemActive();break;case "Tab":case "ArrowRight":if(!y6(this)){SXd(this,this.inputBox.nativeElement.value);return}MXd(this.acList);break;case "ArrowLeft":SXd(this,this.inputBox.nativeElement.value);return;case "Enter":y6(this)?this.acList.activeItemIndex!=null?MXd(this.acList):
RXd(this):RXd(this);break;default:return}a.preventDefault();a.stopPropagation()};x6.prototype.submitAdvancedSearch=function(){this.onAdvancedSearchSubmit.emit();UXd(this)};
var TXd=function(a){a.dropdownStatus==="auto_complete"&&(a.dropdownStatus="closed")},UXd=function(a){a.dropdownStatus==="advanced_search"&&(a.dropdownStatus="closed",a.onAdvancedSearchClose.emit())},y6=function(a){return a.dropdownStatus==="auto_complete"&&a.autoCompleteItems.length>0},VXd=function(a){return a.dropdownStatus==="auto_complete"&&a.autoCompleteHeader!=null},WXd=function(a){return a.dropdownStatus==="advanced_search"};
x6.prototype.saveSearch=function(){this.searchName&&(this.onSaveSearch.emit(this.searchName),this.searchName="",UXd(this))};var XXd=function(a,b){b.shiftKey&&b.key==="Tab"&&a.advancedSearchFinalFocus&&setTimeout(function(){return a.advancedSearchFinalFocus.nativeElement.focus()})},R1b=function(a){a.advancedSearchInitialFocus&&setTimeout(function(){return a.advancedSearchInitialFocus.nativeElement.focus()})};x6.\u0275fac=function(a){return new (a||x6)};
x6.\u0275cmp=D({type:x6,selectors:[["b-app-search-box"]],viewQuery:function(a,b){a&1&&(hg(w6,7),hg(OXd,5),hg(PXd,7,Hd),hg(QXd,7));if(a&2){var c;lg(c=mg())&&(b.acList=c.first);lg(c=mg())&&(b.inputBox=c.first);lg(c=mg())&&(b.advancedSearchInitialFocus=c.first);lg(c=mg())&&(b.advancedSearchFinalFocus=c.first)}},inputs:{placeholder:"placeholder",isSearchDisabled:"isSearchDisabled",autoCompleteItems:"autoCompleteItems",autoCompleteHeader:"autoCompleteHeader"},outputs:{onAdvancedSearchOpen:"onAdvancedSearchOpen",
onAdvancedSearchClose:"onAdvancedSearchClose",onAdvancedSearchSubmit:"onAdvancedSearchSubmit",onSaveSearch:"onSaveSearch"},standalone:!1,ngContentSelectors:["*"],decls:24,vars:19,consts:[["box",""],["initialFocus",""],["finalFocus",""],[1,"search-form-container","keep-focus-ring",3,"clickOutside"],[1,"search-box-container"],["type","button","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,"keydown","input","click","focus","placeholder"],["type","button","mat-icon-button","","aria-label","Show search options","matTooltip","Show search options",3,"click"],["svgIcon","arrow-dropdown",1,"icon-m"],["role","search",1,"search-dropdown"],[3,"itemSelected","items","header"],[1,"advanced-search"],
["align","right",1,"advanced-search-header"],["type","button","mat-icon-button","","aria-label","Close advanced search","matTooltip","Close advanced search",3,"keydown","click","disabled"],["svgIcon","close",1,"icon-s"],["cdkScrollable","",1,"advanced-search-content"],[1,"advanced-search-footer"],["type","button","mat-flat-button","",1,"medium",3,"click","disabled"],["target","_blank",1,"keep-underline","search-help-link"],["svgIcon","pop-out",1,"icon-xs"],[1,"save-search-container","gap-s"],["type",
"text","aria-label","Enter the name for saving this search.","placeholder","Save search as",3,"ngModelChange","keydown.Tab","keydown.enter","ngModel"]],template:function(a,b){if(a&1){var c=t();bg();K(0,"div",3);N("clickOutside",function(){u(c);TXd(b);return v()});K(1,"div",4)(2,"button",5);N("click",function(){u(c);return v(RXd(b))});M(3,"mat-icon",6);L();K(4,"textarea",7,0);N("keydown",function(d){u(c);return v(b.handleKeydown(d))})("input",function(){u(c);var d=qg(5);return v(SXd(b,d.value))})("click",
function(){u(c);var d=qg(5);return v(SXd(b,d.value))})("focus",function(){u(c);return v(b.onInputFocus())});L();K(6,"button",8);N("click",function(){u(c);b.dropdownStatus="advanced_search";b.onAdvancedSearchOpen.emit();return v()});M(7,"mat-icon",9);L()();K(8,"aside",10)(9,"b-app-search-auto-complete-list",11);N("itemSelected",function(d){u(c);return v(b.autoCompleteItemSelected$.next(d))});L();K(10,"div",12)(11,"div",13)(12,"button",14,1);N("keydown",function(d){u(c);return v(XXd(b,d))})("click",
function(){u(c);return v(UXd(b))});M(14,"mat-icon",15);L()();K(15,"div",16);cg(16);L();K(17,"div",17)(18,"button",18);N("click",function(){u(c);return v(b.submitAdvancedSearch())});Q(19," Search ");L();K(20,"a",19);Q(21,"Search help ");M(22,"mat-icon",20);L();F(23,S1b,5,2,"div",21);L()()()()}a&2&&(wg("dropdown-opened",y6(b)||VXd(b)||WXd(b)),B(),wg("hidden",WXd(b)),B(3),I("placeholder",b.placeholder),If("aria-activedescendant",NXd(b.acList))("aria-expanded",y6(b)||VXd(b)),B(4),wg("advanced-search-open",
WXd(b)),B(),wg("hidden",!(y6(b)||VXd(b))),I("items",b.autoCompleteItems)("header",b.autoCompleteHeader),B(),wg("hidden",!WXd(b)),B(2),I("disabled",b.isSearchDisabled),B(6),I("disabled",b.isSearchDisabled),B(2),If("href",b.searchHelpLink,Ne),B(3),G(b.isAnonymous?-1:23))},dependencies:[Jy,wz,kB,gB,iB,vK,nA,xj,fE,mE,F_,YD,w6],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;min-width:320px;overflow:hidden;top:0;transition:all .1s ease-in-out;transition-property:box-shadow,height,max-height,overflow;width:100%}@media(forced-colors: active){.search-form-container[_ngcontent-%COMP%]{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}}.search-box-container[_ngcontent-%COMP%]{display:flex;flex-grow:1;width:calc(100% - 16px);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-mdc-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-mdc-icon-button[_ngcontent-%COMP%]{margin-top:8px}textarea[_ngcontent-%COMP%]{border:0;background-color:initial;outline:none;resize:none;padding:0;cursor:auto;color:#202124;color:var(--text-high-contrast);margin:10px 0;margin-left:5px;height:20px;line-height:20px;width:100%;overflow:auto}textarea[_ngcontent-%COMP%]:focus{border:0;padding:0;outline:none}textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:rgba(0,0,0,0);border-radius:10px;border:0}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track:vertical{margin:5px 0}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track:horizontal{margin:0 5px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:rgba(0,0,0,.2)}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.4)}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:active{background-color:rgba(0,0,0,.5)}.advanced-search[_ngcontent-%COMP%]{padding:6px 6px 0 6px}.advanced-search-content[_ngcontent-%COMP%]{overflow:auto;max-height:532px}.advanced-search-footer[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:6px}.search-help-link[_ngcontent-%COMP%]{margin-left:10px}.save-search-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-left:auto;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;border:none;background-color:#fff;background-color:var(--surface-default);height:100%;width:100%;margin-bottom:10px}[_nghost-%COMP%]     .bv2-adv-search-chip button{align-self:center}[_nghost-%COMP%]     .bv2-adv-search-chip-container{display:flex;flex-direction:column;width:100%}[_nghost-%COMP%]     .bv2-adv-search-chip-content{width:100%}[_nghost-%COMP%]     .bv2-adv-search-chip-content input[type=text]:not(.override){width:calc(100% - 10px)}[_nghost-%COMP%]     .bv2-adv-search-chip-content .bv2-adv-search-chip-delete-btn{margin-left:10px}[_nghost-%COMP%]     .bv2-adv-search-chip-content-selectable .goog-flat-menu-button{height:32px;margin:0;width:100%;text-align:left}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn{display:inline-flex;align-items:center;font-family:"Google Sans",Roboto,Arial,sans-serif;height:32px;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:5px;box-sizing:border-box;color:#3c4043;color:var(--gfx)}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:hover, [_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:active, [_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:focus{border-color:#3c4043;border-color:var(--gfx);color:#202124;color:var(--text-default)}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn::after{margin-left:auto;content:"";width:16px;height:16px;background:no-repeat url("https://www.gstatic.com/buganizer/img/v0/edit.svg") 0 -2px;margin-right:5px;opacity:.6}[_nghost-%COMP%]     .bv2-adv-search-chip-content-text{font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;font-weight:500;line-height:1rem;padding-left:12px;vertical-align:middle}/*# sourceMappingURL=app_search_box.css.map */'],
changeDetection:0});var YXd=function(){this.activeSession=p(uu);this.logoEnvironmentType="QA";this.logoFrontendAccessMode="INTERNAL";this.isSearchDisabled=!1;this.searchBoxPlaceholder="";this.searchBoxAutoCompleteItems=[];this.searchBoxAutoCompleteHeader=null;this.searchBoxOnAdvancedSearchOpen=new aQ;this.searchBoxOnAdvancedSearchClose=new aQ;this.searchBoxOnAdvancedSearchSubmit=new aQ;this.searchBoxOnSaveSearch=new aQ;this.currentTracker=this.activeSession.getTracker()},ZXd=function(){setTimeout(function(){var a;(a=
document.getElementById("skiplink-navigation-target").querySelectorAll('div[role="tab"],a[href],button:not([tabindex="-1"],input')[0])==null||a.focus()})};YXd.\u0275fac=function(a){return new (a||YXd)};
YXd.\u0275cmp=D({type:YXd,selectors:[["b-app-top-bar"]],inputs:{logoEnvironmentType:"logoEnvironmentType",logoFrontendAccessMode:"logoFrontendAccessMode",isSearchDisabled:"isSearchDisabled",searchBoxPlaceholder:"searchBoxPlaceholder",searchBoxAutoCompleteItems:"searchBoxAutoCompleteItems",searchBoxAutoCompleteHeader:"searchBoxAutoCompleteHeader"},outputs:{searchBoxOnAdvancedSearchOpen:"searchBoxOnAdvancedSearchOpen",searchBoxOnAdvancedSearchClose:"searchBoxOnAdvancedSearchClose",searchBoxOnAdvancedSearchSubmit:"searchBoxOnAdvancedSearchSubmit",
searchBoxOnSaveSearch:"searchBoxOnSaveSearch"},standalone:!1,ngContentSelectors:["*"],decls:7,vars:7,consts:[[3,"environmentType","frontendAccessMode","tracker"],[1,"skip-navigation-wrapper"],["type","button","mat-button","","color","primary","aria-label","Skip to main content",1,"skip-to-main-content-link",3,"click","keydown.enter"],[3,"onAdvancedSearchOpen","onAdvancedSearchClose","onAdvancedSearchSubmit","onSaveSearch","placeholder","autoCompleteItems","autoCompleteHeader","isSearchDisabled"]],
template:function(a,b){a&1&&(bg(),M(0,"b-app-logo",0),K(1,"div",1)(2,"button",2),N("click",function(){return ZXd()})("keydown.enter",function(){return ZXd()}),Q(3," Skip Navigation "),L()(),K(4,"b-app-search-box",3),N("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)}),
cg(5),L(),M(6,"b-app-actions"));a&2&&(I("environmentType",b.logoEnvironmentType)("frontendAccessMode",b.logoFrontendAccessMode)("tracker",b.currentTracker),B(4),I("placeholder",b.searchBoxPlaceholder)("autoCompleteItems",b.searchBoxAutoCompleteItems)("autoCompleteHeader",b.searchBoxAutoCompleteHeader)("isSearchDisabled",b.isSearchDisabled))},dependencies:[kB,gB,u6,JXd,x6],styles:["[_nghost-%COMP%]{display:flex;align-items:center;gap:32px}@media(max-width: 1099px){[_nghost-%COMP%]{gap:8px}}b-app-search-box[_ngcontent-%COMP%]{display:flex;flex-grow:1;justify-content:center}div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]{position:absolute;background-color:#e8f0fe;background-color:var(--selected-bg-muted);clip:rect(1px, 1px, 1px, 1px);overflow:hidden;transform:translateX(-50%)}div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]:active, div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]:focus, div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]:focus-visible, div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]:focus-within{transform:translate(-50%, -50%);position:absolute;clip:auto;overflow:visible;z-index:1}/*# sourceMappingURL=app_top_bar.css.map */"],
changeDetection:0});var $Xd=function(){};$Xd.\u0275fac=function(a){return new (a||$Xd)};$Xd.\u0275mod=$e({type:$Xd});$Xd.\u0275inj=Fc({imports:[WO,TJ,mB,rK]});var aYd=function(){};aYd.\u0275fac=function(a){return new (a||aYd)};aYd.\u0275mod=$e({type:aYd});aYd.\u0275inj=Fc({imports:[WO,mB,WJ,wK]});var bYd=function(){};bYd.\u0275fac=function(a){return new (a||bYd)};bYd.\u0275mod=$e({type:bYd});bYd.\u0275inj=Fc({imports:[WO,mB,wK]});var cYd=function(){};cYd.\u0275fac=function(a){return new (a||cYd)};cYd.\u0275mod=$e({type:cYd});cYd.\u0275inj=Fc({imports:[WO]});var dYd=function(){};dYd.\u0275fac=function(a){return new (a||dYd)};dYd.\u0275mod=$e({type:dYd});dYd.\u0275inj=Fc({providers:[DW]});var eYd=function(){};eYd.\u0275fac=function(a){return new (a||eYd)};eYd.\u0275mod=$e({type:eYd});eYd.\u0275inj=Fc({imports:[WO,mB,wK,dYd]});var z6=function(){};z6.\u0275fac=function(a){return new (a||z6)};z6.\u0275mod=$e({type:z6});z6.\u0275inj=Fc({imports:[WO,WJ,mB,iK,wK,Dz,DE,G_,aYd,V2,bYd,fX,ZD,cYd,eYd,$Xd,GX]});var fYd=function(){};fYd.\u0275fac=function(a){return new (a||fYd)};fYd.\u0275mod=$e({type:fYd});fYd.\u0275inj=Fc({imports:[WO,mB,TJ]});var gYd=function(){};gYd.\u0275fac=function(a){return new (a||gYd)};gYd.\u0275mod=$e({type:gYd});gYd.\u0275inj=Fc({imports:[WO,DE,mB,HE,UD,TJ,KX]});var A6=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 aQ;this.selectedChange=new aQ;this.cardTitleChange=new aQ;this.onSaveButtonClicked=new aQ;this.onCancelButtonClicked=
new aQ;this.isInheritedChange=new aQ;this.isExpanded=!1};A6.prototype.expand=function(){this.isExpanded=!0};A6.prototype.collapse=function(){this.isExpanded=!1};A6.prototype.onSave=function(){this.collapse();this.onSaveButtonClicked.emit()};A6.prototype.onCancel=function(){this.collapse();this.onCancelButtonClicked.emit()};A6.\u0275fac=function(a){return new (a||A6)};
A6.\u0275cmp=D({type:A6,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"},standalone:!1,ngContentSelectors:["*"],decls:10,vars:13,consts:[[1,"carded"],[1,"flex-kids-x","flex-cross-axis-centered","card-header"],[1,"collapsible-card-checkbox",3,"change","disabled","checked","aria-label"],
[1,"card-title","heading-s",3,"muted"],["type","button","mat-icon-button","",3,"click"],["svgIcon","chevron-left"],["svgIcon","arrow-down"],[1,"expanded-card-container"],[1,"expanded-card-actions"],[1,"card-title","heading-s"],["appearance","fill","subscriptSizing","dynamic",1,"card-title"],["matInput","","type","text","required","","aria-required","true","maxlength","40","autocomplete","off",1,"heading-s",3,"ngModelChange","placeholder","disabled","ngModel"],["appearance","outline",1,"type-dropdown"],
[3,"valueChange","selectionChange","disabled","value"],[1,"ee-config-option",3,"value"],[1,"icon-s",3,"svgIcon"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["type","button","mat-button","","color","primary",1,"cancel-button",3,"click","disabled"],["type","button","mat-icon-button","","aria-label","Delete",1,"delete-button",3,"disabled"],[3,"vertical"],["labelPosition","before",3,"disabled"],["labelPosition","before",1,"inherited-toggle",3,"checked","disabled",
"matTooltip","matTooltipDisabled"],["svgIcon","delete",1,"icon-m"],["labelPosition","before",1,"inherited-toggle",3,"change","checked","disabled","matTooltip","matTooltipDisabled"]],template:function(a,b){a&1&&(bg(),K(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),N("change",function(c){b.selected=c.checked;b.expand();b.selectedChange.emit(b.selected)}),L(),F(3,T1b,2,3,"span",3)(4,Y1b,3,7),K(5,"button",4),N("click",function(){b.isExpanded?b.collapse():b.expand()}),F(6,Z1b,1,0,"mat-icon",5)(7,$1b,1,0,"mat-icon",
6),L()(),F(8,a2b,2,0,"div",7),F(9,f2b,9,6,"div",8),L());a&2&&(If("aria-expanded",b.isExpanded),B(2),wg("expanded-checkbox",b.isExpanded),I("disabled",b.disabled)("checked",b.selected),Hf("aria-label",b.cardTitle),B(),G(b.isExpanded?4:3),B(2),xg(b.isExpanded?"collapse-toggle":"expand-toggle"),If("aria-label",b.isExpanded?"Collapse editor":"Expand editor"),B(),G(b.isExpanded?6:7),B(2),G(b.isExpanded?8:-1),B(),G(b.isExpanded?9:-1))},dependencies:[Jy,xj,fE,yE,zE,mE,kL,hI,kB,gB,iB,OU,vT,yU,SD,KD,TH,UH,
hA,HD,hK,VD,FE,vK,nA],styles:['.card-title[_ngcontent-%COMP%]{margin-left:10px;width:440px}.expand-toggle[_ngcontent-%COMP%]{margin-left:auto}.collapse-toggle[_ngcontent-%COMP%]{align-self:baseline}.expanded-card-container[_ngcontent-%COMP%]{padding:18px}.expanded-card-actions[_ngcontent-%COMP%]{display:flex;align-items:center;border-top:1px solid;border-top-color:#9aa0a6;border-top-color:var(--c500);padding-top:16px}.expanded-card-actions[_ngcontent-%COMP%]   .cancel-button[_ngcontent-%COMP%]{width:80px;margin-left:16px}.expanded-card-actions[_ngcontent-%COMP%]   .delete-button[_ngcontent-%COMP%]{margin-left:auto;margin-right:16px}.expanded-card-actions[_ngcontent-%COMP%]   mat-slide-toggle[_ngcontent-%COMP%]{margin-left:16px}.expanded-card-actions[_ngcontent-%COMP%]   mat-divider[_ngcontent-%COMP%]{height:40px}.expanded-card-actions[_ngcontent-%COMP%]   .inherited-toggle[_ngcontent-%COMP%]{margin-left:auto}[_nghost-%COMP%]     .mat-mdc-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}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}']});var B6=function(){};B6.\u0275fac=function(a){return new (a||B6)};B6.\u0275mod=$e({type:B6});B6.\u0275inj=Fc({imports:[WO,DE,lL,mB,PU,zU,iK,HE,wK]});var C6=function(){};C6.\u0275fac=function(a){return new (a||C6)};C6.\u0275mod=$e({type:C6});C6.\u0275inj=Fc({imports:[WO,DE,PV,qV,GU,B5,TK,S0,wK,WJ,mB,zU,yW,t3,fV,eU,TJ]});var D6=function(){this.options=[];this.disabled=!1;this.removeAtIndex=new aQ;this.addRow=new aQ;this.optionsChange=new aQ};D6.prototype.valueChange=function(a,b){this.options[b].value=Number(a.target.value);this.optionsChange.emit(this.options)};D6.prototype.drop=function(a){bs(this.options,a.previousIndex,a.currentIndex);this.optionsChange.emit(this.options)};D6.\u0275fac=function(a){return new (a||D6)};
D6.\u0275cmp=D({type:D6,selectors:[["b-config-grid"]],inputs:{options:"options",disabled:"disabled"},outputs:{removeAtIndex:"removeAtIndex",addRow:"addRow",optionsChange:"optionsChange"},standalone:!1,decls:12,vars:6,consts:[["displayInput","matInput"],["valueInput","matInput"],[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",""],["type","button","mat-button","",1,"add-row-button"],[1,"flex-kids-x","flex-cross-axis-centered","option-row"],["cdkDragHandle","","svgIcon","drag-indicator",1,"drag-handle"],["subscriptSizing","dynamic",3,"appearance"],["matInput","","aria-label",
"Dropdown value","autocomplete","off","maxlength","40",1,"input-text",3,"change","value","placeholder","disabled"],["matInput","","aria-label","Average days","autocomplete","off","type","number",1,"input-text",3,"change","value","placeholder","disabled"],["type","button","mat-icon-button",""],["type","button","mat-icon-button","",3,"click"],["svgIcon","close",1,"icon-s","delete-icon"],["type","button","mat-button","",1,"add-row-button",3,"click"]],template:function(a,b){a&1&&(K(0,"div",2)(1,"div",
3)(2,"span",4),Q(3," Dropdown value "),L()(),K(4,"div",5)(5,"span",6),Q(6," Average days "),L(),M(7,"mat-icon",7),L()(),K(8,"div",8),N("cdkDropListDropped",function(c){return b.drop(c)}),Nf(9,h2b,12,13,"div",9,Mf),L(),F(11,i2b,2,0,"button",10));a&2&&(B(2),wg("muted",b.disabled),B(3),wg("muted",b.disabled),B(2),I("matTooltip","All estimated effort types map to an average number of days."),B(2),Of(b.options),B(2),G(b.disabled?-1:11))},dependencies:[Jy,VD,FE,SD,HD,kB,gB,iB,vK,nA,MV,LV,JV],styles:[".delete-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}[_nghost-%COMP%]     mat-form-field .mat-mdc-form-field-flex{--gm-outlinedtextfield-outline-color:transparent}.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 hYd=function(){this.disabled=!1;this.valueChange=new aQ};hYd.prototype.onValueChange=function(a){this.valueChange.emit(Number(a.target.value))};hYd.\u0275fac=function(a){return new (a||hYd)};
hYd.\u0275cmp=D({type:hYd,selectors:[["b-numeric-config"]],inputs:{disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},standalone:!1,decls:14,vars:8,consts:[["timeInput","matInput"],[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,"change","disabled","value"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"div",2)(2,"span",3);Q(3," Time ");L();K(4,"span",4);Q(5,"1");L()();K(6,"div",2)(7,"div",5)(8,"span",6);Q(9," Average days ");L();M(10,
"mat-icon",7);L();K(11,"mat-form-field",8)(12,"input",9,0);N("change",function(d){u(c);return v(b.onValueChange(d))});L()()()()}a&2&&(B(2),wg("muted",b.disabled),B(6),wg("muted",b.disabled),B(2),I("matTooltip","All estimated effort types map to an average number of days."),B(),I("appearance","outline"),B(),I("disabled",b.disabled)("value",b.value))},dependencies:[Jy,VD,FE,SD,HD,vK,nA],styles:[".disabled-time-val[_ngcontent-%COMP%]{color:#bdc1c6;color:var(--text-disabled);font-size:1rem;line-height:24px;font-weight:400;width:168px;margin-top:4px}\n/*# sourceMappingURL=numeric_config.css.map */"]});var E6=function(){this.disabled=!1;this.updateEffortSpec=new aQ;this.configurationOptions=[iYd,jYd,kYd];this.estimatedEffortFieldEnabled=this.inherit=!1;this.name="Estimated effort";this.numericSpecMultiplier=1;this.enumSpecOptions=[];this.aggregationRules=hcd;this.selectedAggregationRule=this.aggregationRules.SUM};E6.prototype.ngOnInit=function(){(this.originalEffortSpec=this.effortSpec)&&this.effortSpec.numericSpec&&(this.originalSelectedEffortConfig=kYd)};
E6.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.originalEffortSpec=nm(this.effortSpec),this.setValues(this.effortSpec))};
E6.prototype.setValues=function(a){if(a.numericSpec){this.selectedEffortConfig=kYd;var b,c,d;this.numericSpecMultiplier=(d=(b=this.effortSpec)==null?void 0:(c=b.numericSpec)==null?void 0:c.multiplier)!=null?d:1}if(a.enumSpec){this.selectedEffortConfig=void 0;var e,f;this.enumSpecOptions=((f=(e=a.enumSpec)==null?void 0:e.options)!=null?f:[]).map(function(k){return{label:k.label,value:k.value}})}var g;this.inherit=(g=a.inherit)!=null?g:!1;this.name=a.name===""?"Estimated effort":a.name||"";if(a.enumSpec||
a.numericSpec)this.estimatedEffortFieldEnabled=!0;a.aggregationType!==void 0&&a.aggregationType!==this.aggregationRules.AGGREGATION_TYPE_UNSPECIFIED&&(this.selectedAggregationRule=a.aggregationType)};
var lYd=function(a){var b,c,d;if(((b=a.effortSpec)==null?0:b.enumSpec)&&!a.selectedEffortConfig||((c=a.selectedEffortConfig)==null?void 0:c.displayText)===iYd.displayText||((d=a.selectedEffortConfig)==null?void 0:d.displayText)===jYd.displayText)return"enum";var e;return((e=a.selectedEffortConfig)==null?void 0:e.displayText)===kYd.displayText?"numeric":"empty"};E6.prototype.addRow=function(){this.enumSpecOptions.push({label:null,value:null})};
E6.prototype.isSaveButtonDisabled=function(){var a;if(!(a=this.disabled||this.selectedEffortConfig===void 0&&this.effortSpec===void 0&&this.estimatedEffortFieldEnabled&&!this.inherit||this.name==="")){a:{a=m(this.enumSpecOptions);for(var b=a.next();!b.done;b=a.next())if(b=b.value,!b.label||b.value===null){a=!1;break a}a=!0}a=!a}return a};var mYd=function(a){a.selectedEffortConfig=void 0;a.enumSpecOptions=[];a.effortSpec=void 0;a.name="Estimated effort"};E6.\u0275fac=function(a){return new (a||E6)};
E6.\u0275cmp=D({type:E6,selectors:[["b-estimated-effort-config"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateEffortSpec:"updateEffortSpec"},standalone:!1,features:[jx],decls:8,vars:11,consts:[["enumConfig",""],["placeholderForCardTitle","Enter the estimated effort field title (required)","ariaLabelForCardTitle","Estimated effort field title",3,"cardTitleChange","dropdownSelectionChanged","onSaveButtonClicked","selectedChange","onCancelButtonClicked",
"isInheritedChange","cardTitle","dropdownOptions","selectedOption","disabled","selected","isSaveButtonDisabled","showInheritedToggle","isInherited","inheritedDisabled"],[1,"content"],[3,"disabled","value"],[1,"margin-top"],[4,"ngTemplateOutlet"],[3,"valueChange","disabled","value"],["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,"valueChange","value","disabled"],[1,"multi-line",3,"value"],[1,"title"],[1,"help-text"],[3,"optionsChange","addRow","removeAtIndex","options","disabled"]],template:function(a,b){if(a&1){var c=t();K(0,"b-collapsible-card",1);Cg("cardTitleChange",function(e){u(c);Bg(b.name,e)||(b.name=e);return v(e)});N("dropdownSelectionChanged",
function(e){u(c);b.selectedEffortConfig=e;e.displayText===iYd.displayText?(b.enumSpecOptions=[].concat(q(nYd)),b.name="Story points"):e.displayText===jYd.displayText?(b.enumSpecOptions=[].concat(q(oYd)),b.name="T-shirt sizes"):e.displayText===kYd.displayText&&(b.numericSpecMultiplier=1,b.name="Days");b.estimatedEffortFieldEnabled=!0;return v()})("onSaveButtonClicked",function(){u(c);if(b.estimatedEffortFieldEnabled){var e={name:b.name,inherit:b.inherit};e.aggregationType=b.selectedAggregationRule;
b.originalEffortSpec&&b.originalEffortSpec.customFieldId!==0&&(e.customFieldId=b.originalEffortSpec.customFieldId);var f;if(((f=b.selectedEffortConfig)==null?void 0:f.displayText)===kYd.displayText)e.numericSpec={multiplier:b.numericSpecMultiplier};else if(b.enumSpecOptions.length>0){f=[];for(var g=m(b.enumSpecOptions),k=g.next();!k.done;k=g.next())k=k.value,k.label&&k.value!==null&&f.push({label:k.label,value:k.value});e.enumSpec={options:f}}b.updateEffortSpec.emit(e)}else b.updateEffortSpec.emit({name:"",
inherit:!1});return v()})("selectedChange",function(e){u(c);b.estimatedEffortFieldEnabled=e;b.estimatedEffortFieldEnabled||mYd(b);return v()})("onCancelButtonClicked",function(){u(c);b.effortSpec=b.originalEffortSpec;b.selectedEffortConfig=b.originalSelectedEffortConfig;b.effortSpec?b.setValues(b.effortSpec):(b.estimatedEffortFieldEnabled=!1,mYd(b));return v()})("isInheritedChange",function(e){u(c);(e=e.checked)?(b.setValues(b.parentEffortSpec?b.parentEffortSpec:{name:"Estimated effort"}),b.effortSpec=
b.parentEffortSpec,b.effortSpec||mYd(b)):b.effortSpec&&(b.setValues({}),mYd(b));b.inherit=e;return v()});K(1,"div",2);F(2,k2b,1,1,"ng-container")(3,l2b,1,2,"b-numeric-config",3)(4,m2b,0,0);L();F(5,n2b,23,13,"div",4);L();E(6,o2b,1,2,"ng-template",null,0,Mg)}if(a&2){var d;Ag("cardTitle",b.name);I("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(2);G((d=lYd(b))==="enum"?2:d==="numeric"?3:d==="empty"?4:-1);B(3);G(b.estimatedEffortFieldEnabled?5:-1)}},dependencies:function(){return[Sx,Jy,SD,HD,kB,iB,A6,vK,nA,yU,TH,UH,hA,D6,hYd,pYd]},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{width:168px}[_nghost-%COMP%]     .content mat-form-field .mat-mdc-form-field-infix{margin:-3px 0}[_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 nYd=[{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}],oYd=[{label:"XS",value:1},{label:"S",value:3},{label:"M",value:5},{label:"L",value:10},{label:"XL",value:20}],iYd={displayText:"Story points",icon:"story-point-24px"},jYd={displayText:"T-shirt sizes",icon:"t-shirt-24px"},kYd={displayText:"Time",icon:"time-24px"},pYd=function(){};
pYd.prototype.transform=function(a){switch(a){case "MAX":return"Max Point";default:return"Simple Sum"}};pYd.\u0275fac=function(a){return new (a||pYd)};pYd.\u0275pipe=cf({name:"aggregationRuleText",type:pYd,pure:!0,standalone:!1});var qYd=function(){this.disabled=!1;this.updateComponent=new aQ};qYd.\u0275fac=function(a){return new (a||qYd)};
qYd.\u0275cmp=D({type:qYd,selectors:[["b-component-standard-fields"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateComponent:"updateComponent"},standalone:!1,decls:4,vars:3,consts:[[1,"padded","field-container"],[1,"margin-bottom"],[3,"updateEffortSpec","effortSpec","parentEffortSpec","disabled"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),Q(2,"Once activated, standard fields appear in the right panel of all issues."),L(),K(3,"b-estimated-effort-config",
2),N("updateEffortSpec",function(c){b.updateComponent.emit(c)}),L()());a&2&&(B(3),I("effortSpec",b.effortSpec)("parentEffortSpec",b.parentEffortSpec)("disabled",b.disabled))},dependencies:[E6],styles:[".field-container[_ngcontent-%COMP%]{max-width:1100px}"]});var F6=function(){};F6.\u0275fac=function(a){return new (a||F6)};F6.\u0275mod=$e({type:F6});F6.\u0275inj=Fc({imports:[WO,HE,mB,lL,B6,wK,zU,NV]});var G6=function(){};G6.\u0275fac=function(a){return new (a||G6)};G6.\u0275mod=$e({type:G6});G6.\u0275inj=Fc({imports:[WO,B6,F6]});var H6=function(){var a=this;this.teamsService=p(OQ);this.anchorTarget="_blank";this.useInternalLink=this.isTopLevel=this.isAdmin=!1;this.modelChange=new aQ;this.inherit=!1;this.selectedTeam$=new qf;this.teamIdChanged$=new uf(1);this.placeholder$=this.teamIdChanged$.pipe(A(function(b){return b==="0"?!a.isAdmin||!a.isTopLevel&&a.inherit?"No team selected":"Type to search for a team (leave blank to disable)":""}),xf(""));this.teamFromId$=this.teamIdChanged$.pipe(yf(function(b){return b==="0"?ce(new KHb([b],
[""],"")):PQ(a.teamsService,b).pipe(A(function(c){return new KHb([],c.collapsedPathNames,c.description)}))}));this.displayedTeam$=te(this.teamFromId$,this.selectedTeam$);this.warningType$=this.teamIdChanged$.pipe(yf(function(b){return b==="0"?ce("MISSING"):a.teamsService.getTeam(b).pipe(A(function(c){return!c||c.deleted?"DELETED":"VALID"}))}))};
H6.prototype.updateSelectionOnChange=function(a){dr("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);rYd(this)};var rYd=function(a){a.inherit=a.model.inherit;a.teamIdChanged$.next(a.model.id)};H6.prototype.ngOnInit=function(){Object.assign({},this.model);rYd(this)};var s2b=function(a){return a.model.id&&a.model.id!=="0"};
H6.prototype.getMomaTeamLink=function(){return s2b(this)?"https://moma.corp.google.com/team/"+this.model.id:null};H6.\u0275fac=function(a){return new (a||H6)};
H6.\u0275cmp=D({type:H6,selectors:[["b-component-team-picker"]],inputs:{parentModel:"parentModel",model:"model",anchorTarget:"anchorTarget",isAdmin:"isAdmin",isTopLevel:"isTopLevel",useInternalLink:"useInternalLink"},outputs:{modelChange:"modelChange"},standalone:!1,decls:12,vars:12,consts:[[1,"edit-field"],[1,"edit-field","component-team-id-select"],["for","component-team-id"],["id","component-team-id","panelWidth","479px",3,"onTeamSelect","onEmptyQuery","placeholder","disabled","teamSelected"],
[1,"team-warning"],[3,"warningType","messageOnly"],[3,"change","disabled","checked"],["mat-icon-button","","aria-label","Go to Team page.","matTooltip","Go to Team page.",1,"small",3,"routerLink","target"],["mat-icon-button","","aria-label","Go to Team page.","matTooltip","Go to Team page.",1,"small",3,"click","routerLink","target"],["svgIcon","pop-out",1,"icon-s"],["mat-icon-button","","target","_blank","aria-label","Go to Moma Team page.","matTooltip","Go to Moma Team page.",1,"small"],["mat-icon-button",
"","target","_blank","aria-label","Go to Moma Team page.","matTooltip","Go to Moma Team page.",1,"small",3,"click"]],template:function(a,b){a&1&&(K(0,"div"),F(1,q2b,1,1),T(2,"async"),F(3,r2b,3,2,"div",0),K(4,"div",1)(5,"label",2),Q(6,"Team selection"),L(),K(7,"b-team-picker",3),T(8,"async"),T(9,"async"),N("onTeamSelect",function(d){return b.updateSelectionOnChange(d)})("onEmptyQuery",function(){b.model.id="0";b.modelChange.emit(b.model);rYd(b)}),L(),F(10,u2b,1,1)(11,w2b,1,1),L()());if(a&2){var c;
B();G((c=U(2,6,b.warningType$))?1:-1,c);B(2);G(b.isTopLevel?-1:3);B(4);I("placeholder",U(8,8,b.placeholder$))("disabled",!b.isAdmin||!b.isTopLevel&&b.inherit)("teamSelected",U(9,10,b.displayedTeam$));B(3);G(b.useInternalLink?10:11)}},dependencies:[Jy,hF,kL,hI,vK,nA,Z1,x4,kB,iB,Tx],styles:[".component-team-id-select[_ngcontent-%COMP%]{display:flex;align-items:center}.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}.component-team-id-select[_ngcontent-%COMP%]   a.mat-mdc-icon-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center}.team-warning[_ngcontent-%COMP%]{width:240px}"],
changeDetection:0});var I6=function(){};I6.\u0275fac=function(a){return new (a||I6)};I6.\u0275mod=$e({type:I6});I6.\u0275inj=Fc({imports:[WO,SX,lL,wK,b2,l5,DE,mB]});var J6=function(){};J6.\u0275fac=function(a){return new (a||J6)};J6.\u0275mod=$e({type:J6});J6.\u0275inj=Fc({imports:[WO,NV,mB,iI,Ly]});var sYd=function(){};sYd.\u0275fac=function(a){return new (a||sYd)};sYd.\u0275mod=$e({type:sYd});sYd.\u0275inj=Fc({imports:[J6,mB,TJ]});var tYd=function(){};tYd.\u0275fac=function(a){return new (a||tYd)};tYd.\u0275mod=$e({type:tYd});tYd.\u0275inj=Fc({imports:[WO,nV,TJ,j5]});var uYd=function(){};uYd.\u0275fac=function(a){return new (a||uYd)};uYd.\u0275mod=$e({type:uYd});uYd.\u0275inj=Fc({imports:[WO,DE,mB,TJ,HE,UD,Y2]});var vYd=function(){};vYd.\u0275fac=function(a){return new (a||vYd)};vYd.\u0275mod=$e({type:vYd});vYd.\u0275inj=Fc({imports:[WO,DE,mB,HE,UD,TJ]});var wYd=function(){this.dialogData=p(TA);this.dialogRef=p(RA);this.originalItems=this.dialogData.fields.map(function(a){return{name:a.name,data:a}});this.items=[].concat(q(this.originalItems));this.fieldOrdering=this.dialogData.orderingCustomized;this.hasChanges=!1};wYd.prototype.onClose=function(){var a=this.items.map(function(b){return b.data});this.dialogRef.close(a)};wYd.\u0275fac=function(a){return new (a||wYd)};
wYd.\u0275cmp=D({type:wYd,selectors:[["b-field-reorder-dialog"]],standalone:!1,decls:14,vars:2,consts:[["reorderItems",""],["mat-dialog-title",""],[1,"flex-kids-x","space-between","align-items-center"],[1,"margin-none"],["type","button","mat-icon-button","","aria-label","Sorts the fields alphabetically","matTooltip","Sort alphabetically",1,"alphasort",3,"click"],["svgIcon","sort_by_alpha_24px"],["mat-dialog-content",""],[3,"items","hasChanges","originalItems"],["mat-dialog-actions",""],["type","button",
"mat-stroked-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action","save",3,"click","disabled"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"div",2)(2,"h1",3);Q(3," Reorder custom fields ");L();K(4,"button",4);N("click",function(){u(c);var d=qg(8);return v(SFd(d))});M(5,"mat-icon",5);L()()();K(6,"div",6)(7,"b-reorder-items",7,0);N("items",function(d){u(c);return v(b.items=d)})("hasChanges",function(d){u(c);
return v(b.hasChanges=d)});L()();K(9,"div",8)(10,"button",9);N("click",function(){u(c);return v(b.dialogRef.close())});Q(11," Cancel ");L();K(12,"button",10);N("click",function(){u(c);return v(b.onClose())});Q(13," Save ");L()()}a&2&&(B(7),I("originalItems",b.originalItems),B(5),I("disabled",b.fieldOrdering==="CUSTOMIZED"&&!b.hasChanges))},dependencies:[Jy,kB,gB,iB,XA,ZA,YA,vK,nA,SZ],encapsulation:2});var xYd=function(){this.matDialog=p(UA);this.confirmationDialog=p(dS);this.fieldConfigService=p(M3);this.analytics=p(eQ);this.butterBar=p(UN);this.fields=[];this.isAdmin=!1;this.onReload=new aQ;this.displayedColumn=["index","name","type","required","customFieldId"]},K2b=function(a){return SA(a.matDialog.open(wYd,{width:"500PX",autoFocus:!1,data:{fields:a.fields,orderingCustomized:a.fieldOrdering}})).subscribe(function(b){b&&yYd(a,b)})},L2b=function(a){a.confirmationDialog.open({title:"Reset ordering?",
content:Bh("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()}})},yYd=function(a,b){a.analytics.trackEvent("fieldOrdering","reorderFields");var c=b.map(function(d){return{customFieldId:d.customFieldId}});a.componentId?(Rr(a.butterBar,"Saving...",0),a.fieldConfigService.reorder(a.componentId,c).subscribe(function(){Rr(a.butterBar,
"Field ordering saved",5E3);a.fields=b.concat();a.fieldOrdering="CUSTOMIZED"},function(){a.butterBar.showWarning("Saving ordering failed, please refresh the page.",5E3)})):a.butterBar.showWarning("Saving ordering failed due to the undefined component id.")};
xYd.prototype.reset=function(){var a=this;this.analytics.trackEvent("fieldOrdering","resetFields");this.componentId?(Rr(this.butterBar,"Resetting orderings..."),this.fieldConfigService.executor.post({url:"action/components/"+this.componentId+"/unorder",body:null,responseConstructor:null}).subscribe(function(){Rr(a.butterBar,"Ordering reset");a.fieldOrdering="INHERITED";a.onReload.emit()},function(){a.butterBar.showWarning("Reset failed.")})):this.butterBar.showWarning("Reset failed due to the undefined component id.")};
xYd.\u0275fac=function(a){return new (a||xYd)};
xYd.\u0275cmp=D({type:xYd,selectors:[["b-field-reorder"]],inputs:{fields:"fields",componentId:"componentId",fieldOrdering:"fieldOrdering",isAdmin:"isAdmin"},outputs:{onReload:"onReload"},standalone:!1,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"],[1,"no-data-row"],[1,"edit-button-row"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["type","button","mat-flat-button","","color","primary",1,"medium",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"table",2),Tf(3,3),E(4,x2b,2,0,"th",4)(5,y2b,2,1,"td",5),Uf(),Tf(6,6),E(7,z2b,2,0,"th",4)(8,A2b,2,1,"td",5),Uf(),Tf(9,7),E(10,B2b,2,0,"th",4)(11,C2b,3,
3,"td",5),Uf(),Tf(12,8),E(13,D2b,2,0,"th",4)(14,E2b,2,1,"td",5),Uf(),Tf(15,9),E(16,F2b,2,0,"th",4)(17,G2b,2,1,"td",5),Uf(),E(18,H2b,1,0,"tr",10)(19,I2b,1,0,"tr",11),L(),F(20,J2b,2,0,"div",12),L(),F(21,M2b,6,2,"div",13),L());a&2&&(B(2),I("dataSource",b.fields),B(16),I("matHeaderRowDef",b.displayedColumn),B(),I("matRowDefColumns",b.displayedColumn),B(),G(b.fields.length===0?20:-1),B(),G(b.isAdmin?21:-1))},dependencies:[kB,gB,UW,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,zxd],styles:["th.mat-mdc-header-cell[_ngcontent-%COMP%], td.mat-mdc-cell[_ngcontent-%COMP%]{padding:8px;text-align:left;font-size:.8125rem;border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}th[_ngcontent-%COMP%]{font-weight:bold;color:#202124;color:var(--text-high-contrast)}td[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}th.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type{padding-left:8px}th.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type{padding-right:8px}.no-data-row[_ngcontent-%COMP%]{padding:12px}button[_ngcontent-%COMP%]{margin-right:12px}"]});var K6=function(){};K6.\u0275fac=function(a){return new (a||K6)};K6.\u0275mod=$e({type:K6});K6.\u0275inj=Fc({imports:[WO,mB,TJ]});var L6=function(){};L6.\u0275fac=function(a){return new (a||L6)};L6.\u0275mod=$e({type:L6});L6.\u0275inj=Fc({imports:[WO,mB,TJ,LX,wK,K6,dX,J6]});var zYd=function(){this.analytics=p(eQ);this.filename=this.packageName=this.issueId="";this.lineNumbers=[];this.changeNumber=0},O2b=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="+AYd+a.issueId+BYd;a.changeNumber&&(c+="&rcl="+a.changeNumber);Array.isArray(b)?c+="&l="+b.join(","):b&&(c+="&l="+b);return c}};
zYd.prototype.trackClick=function(a){this.analytics.trackEvent("codeMentions","clickCodeSearchLink",a)};zYd.\u0275fac=function(a){return new (a||zYd)};
zYd.\u0275cmp=D({type:zYd,selectors:[["b-file-mention"]],inputs:{issueId:"issueId",packageName:"packageName",filename:"filename",lineNumbers:"lineNumbers",changeNumber:"changeNumber"},standalone:!1,decls:5,vars:3,consts:[[1,"bv2-file-mention"],["target","_blank",1,"bv2-file-mention-filename",3,"click","href"],[1,"bv2-file-mention-line-number-list"],[1,"bv2-file-mention-line-number"],["target","_blank",3,"click","href"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"a",1),N("click",function(){return b.trackClick("fileName")}),
Q(2),L(),F(3,N2b,2,1,"span")(4,Q2b,6,0,"span"),L());a&2&&(B(),I("href",O2b(b,b.lineNumbers),Ne),B(),S(" ",b.filename," "),B(),G(b.lineNumbers.length<=10&&b.packageName!="wiki"?4:3))},encapsulation:2});var AYd=encodeURIComponent("content:(https?://)?b(uganizer)?(\\.corp(\\.google\\.com)?)?/(issues/|issue\\?id=)?"),BYd=encodeURIComponent("(\\b|$)");var M6=function(){};M6.\u0275fac=function(a){return new (a||M6)};M6.\u0275mod=$e({type:M6});M6.\u0275inj=Fc({imports:[WO]});var Z2b=function(a,b){return b.category},CYd=function(){var a=this;this.bLocation=p(bU);this.destroyRef=p(Ce);this.dynamicScrollIntoView=p(IZ);this.elementRef=p(Hd);this.contextSensitiveRegistry=p(XQ);this.imageUrls=p(XV);this.scrolledOnScreenService=p(vU);this.issueEnrichmentService=p(J1);this.loggedViewEnrichments=new Set;this.loggedImpressionEnrichments=new Set;this.onScreenSubscriptions=new Map;this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.FIRST_PARTY_ENRICHMENTS=oNd;this.LOGO_PURPLE=
this.imageUrls.LOGO_PURPLE;this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(ue(Pm),nf());this.enrichments$=this.issueEnrichmentService.issueEnrichments$.pipe(Af(function(b){a.logImpressions(b)}));this.scrollToInsight=QB(function(){var b=a.bLocation.hash();b&&iFd(a.dynamicScrollIntoView,{elementId:b,parentElement:a.elementRef.nativeElement,scrollableContainerId:"insights-accordion",scrollPadding:60}).pipe(Tj(a.destroyRef)).subscribe()},200)};h=CYd.prototype;
h.ngOnInit=function(){var a=this;this.scrollToInsight();this.destroyRef.onDestroy(function(){for(var b=m(a.onScreenSubscriptions.values()),c=b.next();!c.done;c=b.next())c.value.unsubscribe();a.onScreenSubscriptions.clear()})};h.onExpand=function(a,b){var c=this;this.logIssueUserEventForIssueEnrichment("EVENT_TYPE_OPEN",a.category);setTimeout(function(){c.maybeSetupOnScreenDetection(a.category,b._body.nativeElement)},0)};
h.logImpressions=function(a){var b=this,c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return z(k,fe(b.issueId$),2);c=k.yieldResult;d=m(a);for(e=d.next();!e.done;e=d.next())f=e.value,g=f.category,b.loggedImpressionEnrichments.has(g)||(b.loggedImpressionEnrichments.add(g),b.issueEnrichmentService.logIssueUserEventForIssueEnrichment(c,"EVENT_TYPE_IMPRESSION",g));ae(k)})};
h.logIssueUserEventForIssueEnrichment=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1)return z(e,fe(c.issueId$),2);d=e.yieldResult;c.issueEnrichmentService.logIssueUserEventForIssueEnrichment(d,a,b);ae(e)})};
h.maybeSetupOnScreenDetection=function(a,b){var c=this,d,e,f;y(function(g){if(g.nextAddress==1){if(c.loggedViewEnrichments.has(a))return g.return();(d=c.onScreenSubscriptions.get(a))&&d.unsubscribe();return z(g,fe(c.issueId$),2)}e=g.yieldResult;f=Xrd(c.scrolledOnScreenService,b,{emitOnPartial:!0,durationOnScreenMs:3E3}).pipe(Tj(c.destroyRef)).subscribe(function(){if(!c.loggedViewEnrichments.has(a)){c.issueEnrichmentService.logIssueUserEventForIssueEnrichment(e,"EVENT_TYPE_VIEW",a);c.loggedViewEnrichments.add(a);
var k;(k=c.onScreenSubscriptions.get(a))==null||k.unsubscribe();c.onScreenSubscriptions.delete(a)}});c.onScreenSubscriptions.set(a,f);ae(g)})};CYd.\u0275fac=function(a){return new (a||CYd)};
CYd.\u0275cmp=D({type:CYd,selectors:[["b-insights"]],viewQuery:function(a,b){a&1&&hg(LL,5);if(a&2){var c;lg(c=mg())&&(b.accordion=c.first)}},standalone:!1,decls:5,vars:4,consts:[["expansionPanel",""],["commentPresenter",""],[1,"carded","bg-main"],[1,"padded-top","centered-inside"],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["type","button","mat-stroked-button","","color","primary",1,"small","gmat-button","expand-all",3,"click"],
["type","button","mat-stroked-button","","color","primary",1,"small","gmat-button","collapse-all",3,"click"],["multi","","id","insights-accordion"],[3,"expanded","id"],[3,"opened","closed","expanded","id"],["aria-hidden","true","alt","",1,"first-party-logo","margin-s-right",3,"src"],[3,"formattedComment"],[1,"insights-date"],["mode","datetime",3,"timestamp"],[3,"enrichment"]],template:function(a,b){a&1&&(Zf(0),T(1,"async"),F(2,R2b,7,1,"section",2)(3,$2b,7,0)(4,a3b,2,0,"div",3));a&2&&(a=$f(U(1,1,b.enrichments$)),
B(2),G(a&&a.length===0?2:a&&a.length>0?3:4))},dependencies:[pT,rV,kB,gB,o4,LL,IL,d$c,JL,KL,cU,Tx],styles:["[_nghost-%COMP%]{display:block;padding:8px}button.gmat-button[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--surface-default);margin:0 8px 8px 0}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:150px;min-height:163px}.insights-date[_ngcontent-%COMP%]{margin-top:4px}.first-party-logo[_ngcontent-%COMP%]{width:24px;height:24px}"],
changeDetection:0});var DYd=function(){};DYd.\u0275fac=function(a){return new (a||DYd)};DYd.\u0275mod=$e({type:DYd});DYd.\u0275inj=Fc({imports:[WO,CU,wV,mB,e5,jB,ML,Ly,eU,b1]});var EYd=function(){return{width:400}},FYd=function(){return[]},GYd=function(){var a=this;this.bLocation=p(bU);this.analytics=p(eQ);this.activeSession=p(uu);this.componentActions=p(VV);this.cdr=p(bQ,{self:!0});this.routeParams=p(wS);this.includeArchived$=new Mj(!1);this.createComponentPath=qs.createComponent.makeHref();this.isInternalSession=this.activeSession.isInternalSession();this.trackerRootComponent$=ne(function(){return ce(a.activeSession.getTracker())}).pipe(yf(function(b){return b?a.componentActions.get(b.componentId):
ce(void 0)}));this.topLevelComponents$=ie([this.trackerRootComponent$,this.includeArchived$]).pipe(yf(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d;return a.componentActions.getChildren((d=b==null?void 0:b.parentComponentId)!=null?d:"0",c)}));this.routeParams.componentId&&d3b(this,String(this.routeParams.componentId),fe(this.topLevelComponents$))},d3b=function(a,b,c){a.componentActions.get(b).then(function(d){for(var e=yba(d.componentPathInfo.componentPathId,0,d.componentPathInfo.componentPathId.length-
1),f={0:c},g=m(e),k=g.next();!k.done;k=g.next())k=k.value,f[k]=a.componentActions.getChildren(k,a.includeArchived);return ns(f).then(function(l){for(var r=l[0],w=null,x=m(e),C=x.next(),H={};!C.done;H={parentId$jscomp$28:void 0},C=x.next()){H.parentId$jscomp$28=C.value;C=void 0;var J=(C=r.find(function(O){return function(R){return R.componentId===O.parentId$jscomp$28}}(H)))!=null?C:null;J&&(J.children=l[H.parentId$jscomp$28],J.showChildren=!0,r=J.children,w=J.componentId)}w&&d.archived&&!a.includeArchived&&
(b=w);a.cdr.detectChanges();setTimeout(function(){var O=a.componentTree,R=b,V=nQd(R);V&&V.click();o3(O,R)})})})};da.Object.defineProperties(GYd.prototype,{includeArchived:{configurable:!0,enumerable:!0,get:function(){return this.includeArchived$.value}}});GYd.\u0275fac=function(a){return new (a||GYd)};
GYd.\u0275cmp=D({type:GYd,selectors:[["b-list-components-page"]],standalone:!1,features:[Gg([bQ])],decls:16,vars:15,consts:[["componentPickerTemplate",""],[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-appbar-left"],["mat-button","",3,"href"],["type","button","mat-button","","dialogLabel","Components","panelClass","overflow-visible-inline-dialog-panel",3,"xapInlineDialogClick","overlaySize"],["id","bv2-issue-showarchived-button"],[1,"bv2-view"],[1,"bv2-view-loading"],[1,"top-tree",3,"init",
"components","includeArchived"],[1,"component-picker-dialog"],["ariaLabel","Choose a component to navigate to that component.",3,"selectedComponentChange","includeArchived","placeholder","shouldFocus","isRequired"],["label","Show archived",3,"modelChange","model","tooltip"],["size","small"]],template:function(a,b){if(a&1){var c=t();K(0,"h2",1);Q(1,"Browse Components");L();K(2,"div",2)(3,"div",3);F(4,b3b,2,1,"a",4);K(5,"button",5);Q(6," Search Components ");L();E(7,c3b,4,6,"ng-template",null,0,Mg);
F(9,e3b,3,4,"div",6);L()();K(10,"div",7);F(11,f3b,2,0,"div",8);T(12,"async");K(13,"component-tree-list",9);T(14,"async");T(15,"async");N("init",function(g){u(c);return v(b.componentTree=g)});L()()}if(a&2){a=qg(8);B(4);G(b.isInternalSession?4:-1);B();I("xapInlineDialogClick",a)("overlaySize",Hg(13,EYd));B(4);G(b.isInternalSession?9:-1);B(2);var d;G((d=U(12,7,b.topLevelComponents$))!=null&&d?-1:11);B(2);var e,f;I("components",(e=U(14,9,b.topLevelComponents$))!=null?e:Hg(14,FYd))("includeArchived",(f=
U(15,11,b.includeArchived$))!=null?f:!1)}},dependencies:[cU,bB,aB,eB,QU,kB,gB,n3,dW,Tx],styles:[".component-picker-dialog[_ngcontent-%COMP%]{width:400px}.component-picker-dialog[_ngcontent-%COMP%]     input{box-sizing:border-box}"]});var HYd=function(){};HYd.\u0275fac=function(a){return new (a||HYd)};HYd.\u0275mod=$e({type:HYd});HYd.\u0275inj=Fc({imports:[WO,eU,Y1,GV,HV,SX,RU,mB,p3,KX]});var IYd=function(){this.issueId="";this.packageMentionSet={packageName:"",fileMentionSet:[]};this.displayPackageName=!1};IYd.\u0275fac=function(a){return new (a||IYd)};
IYd.\u0275cmp=D({type:IYd,selectors:[["b-package-mentions-listing"]],inputs:{issueId:"issueId",packageMentionSet:"packageMentionSet",displayPackageName:"displayPackageName"},standalone:!1,decls:5,vars:1,consts:[[1,"bv2-package-mention-set"],[1,"bv2-package-mention-set-package-name"],[3,"issueId","packageName","filename","lineNumbers","changeNumber"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,g3b,2,1,"p",1),K(2,"ul"),Nf(3,h3b,2,5,"li",null,Mf),L()());a&2&&(B(),G(b.displayPackageName?1:-1),B(2),
Of(b.packageMentionSet.fileMentionSet))},dependencies:[zYd],encapsulation:2});var N6=function(){};N6.\u0275fac=function(a){return new (a||N6)};N6.\u0275mod=$e({type:N6});N6.\u0275inj=Fc({imports:[WO,M6]});var JYd=function(){};JYd.\u0275fac=function(a){return new (a||JYd)};JYd.\u0275mod=$e({type:JYd});JYd.\u0275inj=Fc({imports:[WO,DE,mB,TJ,HE,UD,Q_]});var KYd=function(){this.activeSession=p(uu)};KYd.prototype.ngOnInit=function(){};var LYd=function(a){var b=window.location.href;b=b.replace(/\/u\/(\d+)\//,"/");a.trackerInternalBaseUrl&&a.trackerExternalBaseUrl&&(b=b.replace(a.trackerInternalBaseUrl,a.trackerExternalBaseUrl));return b};KYd.\u0275fac=function(a){return new (a||KYd)};
KYd.\u0275cmp=D({type:KYd,selectors:[["b-tracker-account-menu-hack"]],inputs:{trackerInternalBaseUrl:"trackerInternalBaseUrl",trackerExternalBaseUrl:"trackerExternalBaseUrl"},standalone:!1,decls:11,vars:4,consts:[["accountHackMenu","matMenu"],["type","button","aria-label","Open account menu",1,"tracker-account-hack-button",3,"matMenuTriggerFor"],["xPosition","before"],[1,"padded-s-x","text-center"],[1,"padded-s-y"],["mat-menu-item","",3,"href"]],template:function(a,b){a&1&&(M(0,"button",1),K(1,"mat-menu",
2,0)(3,"div",3),F(4,i3b,2,1,"div",4),M(5,"hr"),K(6,"a",5),Q(7,"Switch accounts"),L(),M(8,"hr"),K(9,"a",5),Q(10,"Sign out of all accounts"),L()()());a&2&&(a=qg(2),I("matMenuTriggerFor",a),B(4),G(b.activeSession.getUserEmail()?4:-1),B(2),I("href","https://accounts.google.com/AccountChooser?hl=en&osid=1&continue="+encodeURIComponent(LYd(b)),Ne),B(3),I("href","https://accounts.google.com/Logout?hl=en&continue="+encodeURIComponent(LYd(b)),Ne))},dependencies:[VJ,fH,dH,iH],styles:[".tracker-account-hack-button[_ngcontent-%COMP%]{z-index:9999;top:0;right:0;position:absolute;width:48px;height:48px;padding:0;margin:0;border:none;cursor:pointer;background:none;outline:none}"]});var O6=function(){Z.apply(this,arguments);this.trackerCheckboxValues={}};Y(O6,Z);O6.\u0275dir=Z.\u0275dir;O6.prototype.ngOnChanges=function(a){if(a.currentTrackerId){this.trackerCheckboxValues={};var b;a=m((b=this.availableTrackers)!=null?b:[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.currentTrackerId===b.trackerId?this.trackerCheckboxValues[b.trackerId]=!0:this.trackerCheckboxValues[b.trackerId]=!1}};var MYd=function(a){return Object.keys(aj(a.trackerCheckboxValues,function(b){return b}))};
O6.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(O6)))(b||O6)}}();
O6.\u0275cmp=D({type:O6,selectors:[["b-tracker-search"]],inputs:{currentTrackerId:"currentTrackerId",availableTrackers:"availableTrackers"},standalone:!1,features:[Ef,jx],decls:9,vars:3,consts:[[1,"bv2-tracker-search"],[1,"bv2-adv-search-rule","bv2-adv-tracker-search-rule"],[1,"bv2-adv-tracker-search-rule-title"],[1,"bv2-adv-tracker-search-rule-error"],[1,"bv2-adv-search-enum-rule"],[1,"bv2-adv-search-enum-item"],["gmat-checkbox","",3,"change","checked"]],template:function(a,b){a&1&&(K(0,"div",0)(1,
"div",1)(2,"div",2)(3,"span"),Q(4,"Select a tracker"),L(),F(5,j3b,2,0,"span",3),L(),K(6,"div",4),Nf(7,k3b,3,2,"div",5,Mf),L()()());a&2&&(wg("hidden",!(b.availableTrackers&&b.availableTrackers.length>1)),B(5),G(MYd(b).length!==0?-1:5),B(2),Of(b.availableTrackers))},dependencies:[kL,hI],styles:[".bv2-adv-tracker-search-rule[_ngcontent-%COMP%]{margin-top:0px;margin-bottom:10px;flex-direction:column}.bv2-adv-tracker-search-rule-title[_ngcontent-%COMP%]{font-weight:bold;margin-bottom:8px}.bv2-adv-tracker-search-rule-error[_ngcontent-%COMP%]{font-weight:normal;margin-left:8px;color:#d93025}"]});var P6=function(){var a=p(UO),b=p(hW);Z.call(this);var c=this;this.analytics=p(eQ);this.location=p(bU);this.prefsManager=p(hR);this.domSafe=p(mR);this.prefsManager.preferences$.pipe(zf(this.destroyed$)).subscribe(function(d){c.prefs=d});a.topBarEvents.browseComponents.pipe(zf(this.destroyed$)).subscribe(function(d){d=d.newTab;NYd(c,qs.listComponents.makeHref(),d)});a.topBarEvents.manageHotlists.pipe(zf(this.destroyed$)).subscribe(function(d){d=d.newTab;NYd(c,qs.listHotlists.makeHref(),d)});a.topBarEvents.manageSlos.pipe(zf(this.destroyed$)).subscribe(function(d){d=
d.newTab;NYd(c,qs.listSlos.makeHref(),d)});a.topBarEvents.setDensity.pipe(zf(this.destroyed$)).subscribe(function(d){c.setDensity(d)});a.topBarEvents.openSettings.pipe(zf(this.destroyed$)).subscribe(function(d){var e=d.newTab;NYd(c,b.settings(d.settingsTabName),e)})};Y(P6,Z);P6.\u0275dir=Z.\u0275dir;var NYd=function(a,b,c){c?a.domSafe.openInNewTab(b):a.location.setUrl(b)};
P6.prototype.setDensity=function(a){this.prefs.themePreferences&&(this.prefs.themePreferences.density=a,this.prefsManager.save(this.prefs).pipe(lf(1),zf(this.destroyed$)).subscribe(),this.analytics.trackEvent("preferences","setDisplayDensity",a))};P6.\u0275fac=function(a){return new (a||P6)};P6.\u0275prov=Dc({token:P6,factory:P6.\u0275fac,providedIn:"root"});var OYd=function(){this.hideAppChromeHelper=p(P2);this.hideAppChrome=this.hideAppChromeHelper.hideAppChrome};OYd.\u0275fac=function(a){return new (a||OYd)};OYd.\u0275cmp=D({type:OYd,selectors:[["b-top-bar-outlet"]],standalone:!1,decls:1,vars:1,template:function(a,b){a&1&&F(0,l3b,1,0,"b-top-bar-outlet-body");a&2&&G(b.hideAppChrome()===!1?0:-1)},dependencies:function(){return[Q6]},encapsulation:2});
var Q6=function(){Z.call(this);var a=this;this.activeSession=p(uu);this.searchAcData=p(I5);this.savedSearchApi=p(oP);this.butterBar=p(UN);this.bLocation=p(bU);this.paths=p(hW);this.analytics=p(eQ);this.appEvents=p(UO);this.appSearchState=p(rT);this.trackerFridge=p(VQ);this.errorHandler=p(pO);p(P6);this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType();this.items=[];this.acHeader=null;this.currentQuery="";this.enableTrackersAccountHack=
this.activeSession.getFlag("enableTrackersAccountHack");this.currentTracker=this.activeSession.getTracker();this.associatedTrackers$=ne(function(){var b,c;return ce((c=(b=a.currentTracker)==null?void 0:b.associatedTrackerIds)!=null?c:[])}).pipe(yf(function(b){return a.trackerFridge.watchSet(b)}));this.availableTrackers$=this.associatedTrackers$.pipe(A(function(b){return a.currentTracker?[a.currentTracker].concat(q(b)):[]}));this.searchAcData.acRefreshed$.pipe(zf(this.destroyed$)).subscribe(function(){a.items=
a.searchAcData.items;a.acHeader=a.searchAcData.acHeader});this.trackerFridge.error$.pipe(zf(this.destroyed$)).subscribe(function(b){b.status!==403&&a.errorHandler.errorHandler(null,b)})};Y(Q6,Z);Q6.\u0275dir=Z.\u0275dir;var PYd=function(a,b){if(b)return"Search "+b.name+" Issues";switch(a.frontendAccessMode){case "INTERNAL":return"Search Buganizer";case "PARTNER":return"Search Partner IssueTracker";case "PUBLIC":return"Search IssueTracker";default:return"Search"}};
Q6.prototype.ngOnInit=function(){var a=this;this.appSearchState.queryState$.pipe(zf(this.destroyed$)).subscribe(function(c){var d=a.searchAcData,e=c.cursorPosition;d.query=c.query;d.cursorIdx=e;if(d.cursorIdx==null)d.currentSearchContext=null;else{var f=d.query,g=d.cursorIdx;if(g<0||g>f.length)throw Error("mg");e=new ZUd(f,g);if(f){var k=f.slice(0,g);for(var l=!1,r=-1,w=-1;(r=k.indexOf('"',r+1))>-1;)l=!l,w=r;k=l?w:-1;if(k>-1)e.value={val:f.slice(k,g),idx:k};else if(k=f.slice(g),l=k.search("\\s"),
(k=wYb(f.slice(0,g)+(l>-1?k.slice(0,l):k),cVd))?(k={negated:!!k[1],val:k[2].toLowerCase(),operator:k[3],idx:k.index-k[1].length-k[2].length-k[3].length},k.val.startsWith("customfield")&&(k.customFieldId=k.val.slice(11),k.val="customfield")):k=null,k){l=k.idx+(k.negated?1:0)+k.val.length+k.operator.length+(k.customFieldId?k.customFieldId.length:0);f=f.slice(l);r=Math.max(g-l,0);w=k;if(f.charAt(0)==="("){b:{w=[];for(var x=/[()]/g,C;(C=x.exec(f))!=null;){var H=w[w.length-1];if(H&&H!==C[0]){if(w.pop(),
!w.length){w=C.index>=r;break b}}else w.push(C[0])}w=!0}w=w?2:0}else w=$Ud.includes(w.val)&&f.search("^\\d")===-1?1:0;switch(w){case 2:g=$Ud.includes(k.val)?$t(f,r,"([()|]\\s*|OR\\s+|AND\\s+|NOT\\s+|-|\\b\\d+\\s+)","[()|\\s-]"):$t(f,r,"[()|\\s-]");/(OR|AND|NOT|-)$/.test(g.val)&&(g.val="",g.idx=r);e.value=g;break;case 1:e.value=$t(f,r,"[()|]","[()|,\\s]");break;case 0:e.value=$t(f,r,"[\\s()|]");f.slice(0,r).search("[\\s()|]")>-1&&(k=null,r=wYb(f,"(?:\\s|^)(?:-?)(customfield|cf)"))&&(e.value=vYb(f,
r.index-r[1].length,g));break;default:wb(w,"unknown ValueType.")}e.value.idx+=l;e.label=k}else k=wYb(f,"(?:\\s|^)(?:-?)(customfield|cf)"),e.value=k?vYb(f,k.index-k[1].length,g):$t(f,g,"[\\s()]")}d.currentSearchContext=e}d.currentSearchContext&&(e=d.currentSearchContext,g=++d.requestIndex,d.refreshRequest$.next({currentRequestIndex:g,currentSearchContext:e}));a.currentQuery=c.query});var b=this.appSearchState.queryState$.pipe(A(function(c){return c.query}));this.appSearchState.searchTriggered$.pipe(Cf(b),
zf(this.destroyed$)).subscribe(function(c){c=m(c);var d=c.next().value;c=c.next().value;var e=a.appSearchState;d=d===void 0?"":d;var f=P8a(c),g=f.filters,k=f.text,l=f.complexSyntax,r=f.resourceIds;f=[g,k,r].reduce(MTa);g=[g?"filters":void 0,k?"text":void 0,r?"ids":void 0].filter(Boolean).join("-");l?e.track(d,"complex"):g?e.track(d,g,f):e.track(d,"UNHANDLED");d=Ia(e.searchHandlerStack);d===void 0?e.$log.warn("No search function installed."):d(c)})};
Q6.prototype.ngAfterViewInit=function(){wXd(this.advancedSearchCtrl,this.appSearchState.currentQuery)};var QYd=function(a){if(a.advancedSearchCtrl)return a.advancedSearchCtrl.getState()!=="SUCCESS"?a.currentQuery:DXd(a.advancedSearchCtrl).trim()};h=Q6.prototype;h.onAdvancedSearchOpen=function(){this.advancedSearchCtrl&&(QYd(this)!==this.currentQuery||this.advancedSearchCtrl.getState()!=="SUCCESS")&&wXd(this.advancedSearchCtrl,this.currentQuery)};
h.onAdvancedSearchClose=function(){var a,b;this.appSearchState.selectedTrackerIds$.next((b=(a=this.trackerSearchCtrl)==null?void 0:MYd(a))!=null?b:[]);this.advancedSearchCtrl&&(a=QYd(this),a!==void 0&&a!==this.currentQuery&&this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}))};
h.submitAdvancedSearch=function(){var a,b;this.appSearchState.selectedTrackerIds$.next((b=(a=this.trackerSearchCtrl)==null?void 0:MYd(a))!=null?b:[]);this.advancedSearchCtrl&&(a=QYd(this),a!==void 0&&(this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}),this.appSearchState.searchTriggered$.next("ui-builder")))};
h.saveSearch=function(a){var b=this;if(this.advancedSearchCtrl){var c=QYd(this);c!==void 0&&(Rr(this.butterBar,"Saving saved search.",1E3),this.savedSearchApi.create(a,c).then(function(d){b.appEvents.savedSearchModified.next();d=d.searchId;Rr(b.butterBar,"Created saved search '"+a+"' ID "+d+".");b.bLocation.setUrl(b.paths.viewSavedSearch(d));b.analytics.trackEvent("savedSearches","create")}).catch(function(d){b.butterBar.showWarning(Qp(d))}))}};
h.isSearchDisabled=function(){return!!this.trackerSearchCtrl&&MYd(this.trackerSearchCtrl).length===0};Q6.\u0275fac=function(a){return new (a||Q6)};
Q6.\u0275cmp=D({type:Q6,selectors:[["b-top-bar-outlet-body"]],viewQuery:function(a,b){a&1&&(hg(r6,5),hg(O6,5));if(a&2){var c;lg(c=mg())&&(b.advancedSearchCtrl=c.first);lg(c=mg())&&(b.trackerSearchCtrl=c.first)}},standalone:!1,features:[Ef],decls:7,vars:12,consts:[[3,"searchBoxOnAdvancedSearchOpen","searchBoxOnAdvancedSearchClose","searchBoxOnAdvancedSearchSubmit","searchBoxOnSaveSearch","logoFrontendAccessMode","logoEnvironmentType","searchBoxPlaceholder","searchBoxAutoCompleteItems","searchBoxAutoCompleteHeader",
"isSearchDisabled"],[3,"currentTrackerId","availableTrackers"],[3,"isTrackerSearchEnabled"],[1,"bv2-view-loading"],[1,"bv2-validation-error-banner"],[3,"trackerInternalBaseUrl","trackerExternalBaseUrl"],[1,"warning-container"],["svgIcon","alert"]],template:function(a,b){a&1&&(K(0,"b-app-top-bar",0),N("searchBoxOnAdvancedSearchOpen",function(){return b.onAdvancedSearchOpen()})("searchBoxOnAdvancedSearchClose",function(){return b.onAdvancedSearchClose()})("searchBoxOnAdvancedSearchSubmit",function(){return b.submitAdvancedSearch()})("searchBoxOnSaveSearch",
function(c){return b.saveSearch(c)}),F(1,m3b,2,4,"b-tracker-search",1),M(2,"b-advanced-search",2),F(3,n3b,4,0,"div",3),F(4,q3b,3,2,"div",4),F(5,r3b,2,0,"div",4),L(),F(6,s3b,1,2,"b-tracker-account-menu-hack",5));a&2&&(I("logoFrontendAccessMode",b.frontendAccessMode)("logoEnvironmentType",b.environmentType)("searchBoxPlaceholder",PYd(b,b.currentTracker))("searchBoxAutoCompleteItems",b.items)("searchBoxAutoCompleteHeader",b.acHeader)("isSearchDisabled",b.isSearchDisabled()),B(),G(b.currentTracker?1:
-1),B(),I("isTrackerSearchEnabled",!b.currentTracker),B(),G((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="INIT"?3:-1),B(),G((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="NOT_REPRESENTABLE"||(b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="SYNTAX_ERROR"?4:-1),B(),G((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="SERVER_ERROR"?5:-1),B(),G(b.enableTrackersAccountHack&&!b.activeSession.isAnonymous()&&b.currentTracker?
6:-1))},dependencies:[Jy,r6,O6,YXd,cU,KYd,Tx],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 RYd=function(){};RYd.\u0275fac=function(a){return new (a||RYd)};RYd.\u0275mod=$e({type:RYd});RYd.\u0275inj=Fc({imports:[WO,lL]});var SYd=function(){};SYd.\u0275fac=function(a){return new (a||SYd)};SYd.\u0275mod=$e({type:SYd});SYd.\u0275inj=Fc({imports:[WO,s6,RYd,z6,eU,WJ]});var R6=function(){this.dialogRef=p(RA);this.data=p(TA);this.updateDiffs=this.data.updateDiffs;this.userToDisplay=tm;this.DiffType=fcd};R6.prototype.close=function(){this.dialogRef.close()};R6.\u0275fac=function(a){return new (a||R6)};
R6.\u0275cmp=D({type:R6,selectors:[["b-update-history-modal"]],standalone:!1,decls:7,vars:0,consts:[["mat-dialog-content","",1,"update-history-modal"],["tabindex","0",1,"update-history-list"],[1,"bv2-event"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"click"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"bv2-event-content-cell"],[1,"bv2-event-user-name",3,"user"],[1,"bv2-event-info"],["mode","datetime",3,"timestamp"],[1,"bv2-event-details"],
[1,"bv2-diff-detail"],[1,"bv2-diff-arrow"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"ul",1),Nf(2,C3b,11,3,"li",2,Mf),L()(),K(4,"div",3)(5,"button",4),N("click",function(){return b.close()}),Q(6," Close "),L()());a&2&&(B(2),Of(b.updateDiffs))},dependencies:[kB,gB,ZA,YA,aV,ZU,rV],styles:[".update-history-modal[_ngcontent-%COMP%]{word-break:break-word}.update-history-modal[_ngcontent-%COMP%]   .update-history-list[_ngcontent-%COMP%]{max-height:500px;overflow-y:auto;padding:0}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]{padding:0 0 10px}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]:last-child{border-bottom:none}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]   .bv2-event-details[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{width:auto}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]   .bv2-event-details[_ngcontent-%COMP%]   .bv2-diff-detail[_ngcontent-%COMP%]{margin-right:0;word-break:break-word}h4[_ngcontent-%COMP%]{margin:0;margin-bottom:8px;font-weight:normal}"]});var TYd=function(){};TYd.\u0275fac=function(a){return new (a||TYd)};TYd.\u0275mod=$e({type:TYd});TYd.\u0275inj=Fc({imports:[WO,mB,TJ,hV,wV]});var S6=function(){this.paths=p(hW);this.bLocation=p(bU)};S6.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());var b=a.elementId;a=ss(a.issueId)+(b?"#"+b:"");this.bLocation.setUrl(a)};S6.\u0275fac=function(a){return new (a||S6)};S6.\u0275prov=Dc({token:S6,factory:S6.\u0275fac,providedIn:"root"});var UYd={provide:LR,useExisting:S6};var VYd=function(){var a;switch((a=self.location)==null?void 0:a.hostname){case "cider.corp.google.com":case "cider-v.corp.google.com":case "critique.corp.google.com":return 1;case "cider-staging.corp.google.com":case "cider-v-staging.corp.google.com":case "critique-staging.corp.google.com":return 2;case "cider-test.corp.google.com":case "cider-v-test.corp.google.com":case "critique-qa.corp.google.com":return 3;default:return 4}}();var WYd=function(a){FB.call(this);this.errorHandlerFn_=a};yw(WYd,FB);WYd.prototype.wrap=function(a){return XYd(this,a)};var YYd=function(a,b){return(b?"__wrapper_":"__protected_")+Aba(a)+"__"},XYd=function(a,b){var c=YYd(a,!0);b[c]||((b[c]=ZYd(a,b))[YYd(a,!1)]=b);return b[c]},ZYd=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[YYd(a,!1)]=b;return c};
WYd.prototype.handleError_=function(a){if(!(a&&typeof a==="object"&&typeof a.message==="string"&&a.message.indexOf("Error in protected function: ")==0||typeof a==="string"&&a.indexOf("Error in protected function: ")==0))throw this.errorHandlerFn_(a),new $Yd(a);};
var aZd=function(a,b){var c=ra.window||ra.globalThis,d=c[b];if(!d)throw Error("qg`"+b);c[b]=function(e,f){typeof e==="string"&&(e=ww(qwc,e));e&&(arguments[0]=e=XYd(a,e));if(d.apply)return d.apply(this,arguments);var g=e;if(arguments.length>2){var k=Array.prototype.slice.call(arguments,2);g=function(){e.apply(this,k)}}return d(g,f)};c[b][YYd(a,!1)]=d};
WYd.prototype.disposeInternal=function(){var a=ra.window||ra.globalThis;var b=a.setTimeout;b=b[YYd(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[YYd(this,!1)]||b;a.setInterval=b;WYd.superClass_.disposeInternal.call(this)};var $Yd=function(a){pa.call(this,"Error in protected function: "+(a&&a.message?String(a.message):String(a)),a);(a=a&&a.stack)&&typeof a==="string"&&(this.stack=a)};yw($Yd,pa);var cZd=function(a,b,c){jj.call(this);this.contextProvider_=b||null;this.additionalArguments_={};this.xhrSender_=bZd;this.handlerUrl_=a;if(!c){this.errorHandler_=null;this.errorHandler_=new WYd(mj(this.handleException,this));aZd(this.errorHandler_,"setTimeout");aZd(this.errorHandler_,"setInterval");a=this.errorHandler_;b=ra.window||ra.globalThis;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=0;d<c.length;d++){var e=c[d];c[d]in b&&
aZd(a,e)}a=this.errorHandler_;rGc=!0;b=mj(a.wrap,a);for(c=0;c<pGc.length;c++)pGc[c](b);qGc.push(a)}};yw(cZd,jj);var dZd=function(a,b){GB.call(this,"r");this.error=a;this.context=b};yw(dZd,GB);var bZd=function(a,b,c,d){if(d instanceof Map){var e={};d=m(d);for(var f=d.next();!f.done;f=d.next()){var g=m(f.value);f=g.next().value;g=g.next().value;e[f]=g}}else e=d;lnb(a,null,b,c,e)};
cZd.prototype.handleException=function(a,b){a=a.error||a;b=b?bj(b):{};a instanceof Error&&tta(b,a.__closure__error__context__984382||{});var c=SDc(a);if(this.contextProvider_)try{this.contextProvider_(c,b)}catch(e){}var d=c.message.substring(0,1900);a instanceof pa&&!a.reportErrorToServer||eZd(this,d,c.fileName,c.lineNumber,c.stack,b);try{this.dispatchEvent(new dZd(c,b))}catch(e){}};
var eZd=function(a,b,c,d,e,f){try{var g=Bfb(a.handlerUrl_,"script",c,"error",b,"line",d);nta(a.additionalArguments_)||(g=Dfb(g,a.additionalArguments_));b={};b.trace=e;if(f)for(var k in f)b["context."+k]=f[k];var l=cHc(b);a.xhrSender_(g,"POST",l,a.extraHeaders_)}catch(r){}};cZd.prototype.disposeInternal=function(){Zi(this.errorHandler_);cZd.superClass_.disposeInternal.call(this)};var T6=function(){this.jsBuild="827224624";this.buildLabel="buganizer.frontend_20251102.11_p0"};T6.\u0275fac=function(a){return new (a||T6)};T6.\u0275prov=Dc({token:T6,factory:T6.\u0275fac,providedIn:"root"});var U6=function(){};U6.prototype.reportingEnabled=function(){return VYd!==4};U6.\u0275fac=function(a){return new (a||U6)};U6.\u0275prov=Dc({token:U6,factory:U6.\u0275fac,providedIn:"root"});
var V6=function(){var a=this;this.appContext=p(U6);this.context={};this.reportingExtensions=[];var b=p(T6);this.jsDebugErrorReporter=new cZd("/jserror",function(c,d){d.js_build=b.jsBuild;d.buildLabel=b.buildLabel;d["build-label"]=b.buildLabel;c=m(a.reportingExtensions);for(var e=c.next();!e.done;e=c.next())e.value.enhanceContext(d)},!0)},fZd=function(a,b){b="Error: "+b;console.error("ErrorReporter: ",b);if(a.appContext.reportingEnabled())try{throw Error(b);}catch(c){for(D3b(c),eZd(a.jsDebugErrorReporter,
b,c.fileName,c.lineNumber,c.stack,a.context),a=m(a.reportingExtensions),b=a.next();!b.done;b=a.next())b.value.onReportedError()}};V6.prototype.reportError=function(a){console.error("ErrorReporter: ",(a==null?void 0:a.stack)||a);if(this.appContext.reportingEnabled()){D3b(a);this.jsDebugErrorReporter.handleException(a);a=m(this.reportingExtensions);for(var b=a.next();!b.done;b=a.next())b.value.onReportedError()}};V6.\u0275fac=function(a){return new (a||V6)};
V6.\u0275prov=Dc({token:V6,factory:V6.\u0275fac,providedIn:"root"});var W6=function(){this.reporter=p(V6)};
W6.prototype.handleError=function(a){if(Pp(a))if(a.status===400)var b=!1;else{var c;b=Math.floor(((c=a.status)!=null?c:0)/100)===4}else b=a instanceof Error&&a.message.includes("queueMicrotask is not defined")?!0:!1;if(b)Vm("omitting eye3 reporting of",a);else if(typeof a==="string")fZd(this.reporter,a);else if(a instanceof Error||!Pp(a)){b=SDc(a);var d,e;this.reporter.reportError(Object.assign({},b,{name:(d=b.name)!=null?d:"UnknownError",message:(e=b.message)!=null?e:String(a)}))}else fZd(this.reporter,
Qp(a))};W6.\u0275fac=function(a){return new (a||W6)};W6.\u0275prov=Dc({token:W6,factory:W6.\u0275fac,providedIn:"root"});var X6=function(){this.activeSession=p(uu)};Y(X6,U6);X6.prototype.reportingEnabled=function(){return this.activeSession.getFlag("reportErrors")};X6.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(X6)))(b||X6)}}();X6.\u0275prov=Dc({token:X6,factory:X6.\u0275fac,providedIn:"root"});
var gZd={provide:ux,useExisting:W6},hZd={provide:U6,useExisting:X6},iZd={provide:T6,useValue:{jsBuild:"827224624",buildLabel:"buganizer.frontend_20251102.11_p0"}};var Y6=function(){};Y6.\u0275fac=function(a){return new (a||Y6)};Y6.\u0275cmp=D({type:Y6,selectors:[["b-empty"]],standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2});var jZd=function(){};jZd.\u0275fac=function(a){return new (a||jZd)};jZd.\u0275mod=$e({type:jZd});jZd.\u0275inj=Fc({});var Z6=function(){};Y(Z6,$E);Z6.prototype.store=function(){};Z6.prototype.retrieve=function(){return null};Z6.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig&&mm(a.params,b.params)};Z6.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(Z6)))(b||Z6)}}();Z6.\u0275prov=Dc({token:Z6,factory:Z6.\u0275fac,providedIn:"root"});var $6=function(){this.router=p(fF)};$6.prototype.canActivate=function(a,b){return b.url.includes("#ISSUE_HistoryHeader")?(b=m(b.url.split("#ISSUE_HistoryHeader")),a=b.next().value,b=b.next().value,gF(this.router,[a],{fragment:b&&!isNaN(Number(b))?"comment"+b:void 0})):b.url==="/attention"?gF(this.router,["home"]):!0};$6.\u0275fac=function(a){return new (a||$6)};$6.\u0275prov=Dc({token:$6,factory:$6.\u0275fac,providedIn:"root"});var kZd=/^(\d+)$/,a7=function(){this.butterBar=p(UN);this.paramNamesToCheck=new Set(Object.values(ned))};a7.prototype.validate=function(a){for(var b=m(Object.keys(a)),c=b.next();!c.done;c=b.next())if(c=c.value,this.paramNamesToCheck.has(c)){var d=a[c],e=vo(d);if(!kZd.test(d)||isNaN(e)||!Number.isInteger(e))return this.butterBar.showWarning("The URL parameter "+c+' has the malformed value "'+d+'".'),!1}return!0};a7.\u0275fac=function(a){return new (a||a7)};
a7.\u0275prov=Dc({token:a7,factory:a7.\u0275fac,providedIn:"root"});var b7=function(){this.routeParamsValidator=p(a7)};b7.prototype.canActivate=function(a){return this.routeParamsValidator.validate(a.params)};b7.\u0275fac=function(a){return new (a||b7)};b7.\u0275prov=Dc({token:b7,factory:b7.\u0275fac,providedIn:"root"});var c7=function(){this.activeSession=p(uu);this.router=p(fF)};c7.prototype.canActivate=function(){return this.activeSession.isAnonymous()?gF(this.router,["issues"]):!0};c7.\u0275fac=function(a){return new (a||c7)};c7.\u0275prov=Dc({token:c7,factory:c7.\u0275fac,providedIn:"root"});var lZd=function(){this.userPreferences=p(hR)},mZd=function(a){a=Br(a.userPreferences.homepagePreferences$);if(a==null||Object.keys(a).length===0||(a==null?void 0:a.resourceType)==="MISSION_CONTROL")return"/home";if((a==null?void 0:a.resourceType)==="ASSIGNED_TO_ME"||a==null||!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"}};
lZd.\u0275fac=function(a){return new (a||lZd)};lZd.\u0275prov=Dc({token:lZd,factory:lZd.\u0275fac,providedIn:"root"});var d7=function(){this.router=p(fF);this.homepageRedirection=p(lZd)};d7.prototype.canActivate=function(){return gF(this.router,[mZd(this.homepageRedirection)])};d7.\u0275fac=function(a){return new (a||d7)};d7.\u0275prov=Dc({token:d7,factory:d7.\u0275fac,providedIn:"root"});var nZd={ANDROID:"Android",CHROME:"ChromeOS",IOS:"iOS",LINUX:"Linux",MAC:"Mac",UNKNOWN:"Unknown",WINDOWS:"Windows"};var Evc={default:"1363614",apps:"1456886",blink:"1456407",devtools:"1457055",enterprise:"1456152",extensions:"1456110",installer:"1456937",media:"1456190",network:"1456527",sync:"1457192",ui:"1457123",webstore:"1457238"},Dvc={default:"402888",apps:"422083",blink:"421442",devtools:"422123",enterprise:"421726",extensions:"422130",installer:"421863",media:"421886",network:"421924",sync:"422168",ui:"422198",webstore:"422443"},oZd=["media-bugs@chromium.org"],pZd=["chrome-sync-monorail@google.com"];var qZd={USER:"USER",DEVELOPER:"DEVELOPER",VULN_REPORTER:"VULN_REPORTER",CONTRIBUTOR:"CONTRIBUTOR"},rZd={INPUT:"INPUT",TEXT:"TEXT",SELECT:"SELECT"},sZd=new dd("CustomQuestionsConfig"),tZd=new dd("ComponentIds"),uZd=new dd("CustomFieldIds"),vZd=new dd("HotlistIds");var wZd=function(){this.componentIds=p(tZd);this.persona="USER";this.categoryChange=new aQ;var a={};this.options=(a.USER=[{title:"UI",description:"Problems with the user interface (e.g. tabs, context menus, etc...)",value:"UI",componentId:this.componentIds.ui},{title:"Network / Downloading",description:"Problems with accessing remote content",value:"NETWORK_DOWNLOADING",componentId:this.componentIds.network},{title:"Audio / Video",description:"Problems playing back sound or movies",value:"AUDIO_VIDEO",
componentId:this.componentIds.media,ccEmails:oZd},{title:"Content",description:"Problems with webpages not working correctly",value:"CONTENT"},{title:"Extensions / Themes",description:"Issues with Webstore extensions and themes",value:"EXTENSIONS_THEMES",componentId:this.componentIds.extensions},{title:"Webstore",description:"Problems with the Chrome Webstore itself",value:"WEBSTORE",componentId:this.componentIds.webstore},{title:"Sync",description:"Problems syncing data to a Google account",value:"SYNC",
componentId:this.componentIds.sync,ccEmails:pZd},{title:"Enterprise",description:"Policy configuration and deployment issues",value:"ENTERPRISE",componentId:this.componentIds.enterprise},{title:"Installation",description:"Problem installing Chrome",value:"INSTALLATION",componentId:this.componentIds.installer},{title:"Crashes",description:'The browser closes abruptly or I see "Aw, Snap!" pages',value:"CRASHES"},{title:"Other",description:"Something not listed here",value:"OTHER"}],a.DEVELOPER=[{title:"API",
description:"Problems with a browser API",value:"API",componentId:this.componentIds.blink},{title:"JavaScript",description:"Problems with the JavaScript interpreter",value:"JAVASCRIPT",componentId:this.componentIds.blink},{title:"Developer Tools",description:"Problems with the Developer tool chain/inspector",value:"DEV_TOOLS",componentId:this.componentIds.devtools}],a.VULN_REPORTER=[{title:"Security",description:"Problems with the browser security",value:"SECURITY"}],a.CONTRIBUTOR=[],a)};
wZd.prototype.ngOnChanges=function(a){var b=this;a.persona&&a.persona.currentValue==="VULN_REPORTER"&&setTimeout(function(){b.category=b.options.VULN_REPORTER[0];b.categoryChange.emit(b.category)})};wZd.\u0275fac=function(a){return new (a||wZd)};
wZd.\u0275cmp=D({type:wZd,selectors:[["wizard-category-select"]],inputs:{persona:"persona",category:"category"},outputs:{categoryChange:"categoryChange"},standalone:!1,features:[jx],decls:6,vars:2,consts:[["appearance","outline","aria-label","Which of the following describes your issue?"],["aria-label","Choose issue category",3,"valueChange","value"],[1,"multiline",3,"value"],[1,"description"]],template:function(a,b){a&1&&(K(0,"mat-form-field",0)(1,"mat-select",1),N("valueChange",function(d){b.category=
d;b.categoryChange.emit(b.category)}),K(2,"mat-select-trigger"),Q(3),L(),Nf(4,F3b,5,3,"mat-option",2,Mf),L()());if(a&2){B();I("value",b.category);B(2);var c;S(" ",(c=b.category==null?null:b.category.title)!=null?c:""," ");B();Of(b.options[b.persona])}},dependencies:[SD,HD,yU,TH,UH,hA],styles:["mat-option.multiline[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:400;line-height:1.5em;height:5em}mat-option.multiline[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#5f6368;color:var(--text-muted)}mat-form-field[_ngcontent-%COMP%]{min-width:300px}\n/*# sourceMappingURL=category_select.css.map */"]});var G3b=function(a){return{question:a}},xZd=function(){this.config=p(sZd);this.CustomQuestionType=rZd;this.responses=new aQ;this.model=Object.assign({},this.config)};xZd.prototype.ngOnInit=function(){};var M3b=function(a){var b=a.model[a.category].filter(function(c){return!!c.response});a.responses.emit(b)};xZd.\u0275fac=function(a){return new (a||xZd)};
xZd.\u0275cmp=D({type:xZd,selectors:[["wizard-custom-questions"]],inputs:{category:"category"},outputs:{responses:"responses"},standalone:!1,decls:10,vars:0,consts:[["customQuestion",""],["input",""],["text",""],["select",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHtml"],["appearance","outline"],["matInput","",3,"ngModelChange","ngModel"],["appearance","outline",1,"textarea"],["required","",3,"valueChange","value"],[3,"value"]],template:function(a,b){a&1&&(Nf(0,H3b,1,4,"ng-container",
4,Mf),E(2,L3b,3,1,"ng-template",null,0,Mg)(4,N3b,3,3,"ng-template",null,1,Mg)(6,O3b,4,3,"ng-template",null,2,Mg)(8,S3b,6,4,"ng-template",null,3,Mg));a&2&&Of(b.model[b.category])},dependencies:[Sx,xj,fE,mE,VD,FE,SD,HD,yU,TH,hA],styles:['[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0;font-weight:400}[_nghost-%COMP%]   h4[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1.125rem;letter-spacing:0;font-weight:400;font-weight:100;margin:0}[_nghost-%COMP%]   h4.required[_ngcontent-%COMP%]:after{content:" *";color:#ea4335;color:var(--bad)}[_nghost-%COMP%]   mat-form-field.textarea[_ngcontent-%COMP%]{min-width:90%}[_nghost-%COMP%]   textarea[_ngcontent-%COMP%]{min-height:4rem;padding:4px 1px 1px 7px}[_nghost-%COMP%]   mat-form-field[_ngcontent-%COMP%]{margin:4px 0}[_nghost-%COMP%]   mat-form-field.inline[_ngcontent-%COMP%]{margin:4px 8px}mat-form-field[_ngcontent-%COMP%]{min-width:500px}\n/*# sourceMappingURL=custom_questions.css.map */']});var yZd=function(){this.Persona=qZd;this.persona="USER";this.personaChange=new aQ};yZd.\u0275fac=function(a){return new (a||yZd)};
yZd.\u0275cmp=D({type:yZd,selectors:[["wizard-persona-picker"]],inputs:{persona:"persona"},outputs:{personaChange:"personaChange"},standalone:!1,decls:18,vars:5,consts:[["aria-label","Select your following role",3,"ngModelChange","ngModel"],[3,"value"],[1,"subtext"],[1,"vuln-reporter",3,"value"]],template:function(a,b){a&1&&(K(0,"div")(1,"mat-radio-group",0),N("ngModelChange",function(c){b.persona=c;b.personaChange.emit(b.persona)}),K(2,"mat-radio-button",1),Q(3," End User "),K(4,"div",2),Q(5," I am trying to use a website. "),
L()(),K(6,"mat-radio-button",1),Q(7," Web Developer "),K(8,"div",2),Q(9," I am trying to build something on a website. "),L()(),K(10,"mat-radio-button",3),Q(11," Vulnerability Reporter "),K(12,"div",2),Q(13," I am reporting a possible security vulnerability. "),L()(),K(14,"mat-radio-button",1),Q(15," Chromium Contributor "),K(16,"div",2),Q(17," I know about a problem in specific tests or code. "),L()()()());a&2&&(B(),I("ngModel",b.persona),B(),I("value",b.Persona.USER),B(4),I("value",b.Persona.DEVELOPER),
B(4),I("value",b.Persona.VULN_REPORTER),B(4),I("value",b.Persona.CONTRIBUTOR))},dependencies:[fE,mE,tT,uT],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     mat-radio-button .mat-internal-form-field{-webkit-box-align:baseline;-webkit-align-items:baseline;-moz-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}mat-radio-group[_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}@media (min-width:960px){mat-radio-group[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr}}mat-radio-button[_ngcontent-%COMP%]{border-bottom:2px solid;border-bottom-color:#dadce0;border-bottom-color:var(--c300);font-family:Google Sans,Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0;font-weight:400;max-width:270px;height:90px;padding:16px;white-space:nowrap}mat-radio-button[_ngcontent-%COMP%]   .subtext[_ngcontent-%COMP%]{font-size:.9rem;line-height:1.2rem;min-height:48px;margin-top:12px;text-wrap:wrap}\n/*# sourceMappingURL=persona_picker.css.map */"]});var zZd=new dd("GM2_CARD_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var AZd=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};AZd.\u0275fac=function(a){return new (a||AZd)(Ve(zZd))};AZd.\u0275dir=af({type:AZd,selectors:[["mat-card"]],hostAttrs:[1,"gmat-mdc-card"],standalone:!1});var e7=function(){this._elementRef=p(Hd)};e7.prototype.focus=function(){this._elementRef.nativeElement.focus()};e7.\u0275fac=function(a){return new (a||e7)};e7.\u0275dir=af({type:e7,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});var f7=function(){this.template=p(dg)};f7.\u0275fac=function(a){return new (a||f7)};f7.\u0275dir=af({type:f7,selectors:[["","cdkStepLabel",""]]});var BZd=new dd("STEPPER_GLOBAL_OPTIONS"),h7=function(){var a=this;this._stepper=p(g7);this._interacted=ng.apply(null,[!1].concat(q([])));this.interactedStream=new Ti;this._state=ng.apply(null,[void 0].concat(q([])));this._editable=ng.apply(null,[!0].concat(q([])));this.optional=!1;this._completedOverride=ng.apply(null,[null].concat(q([])));this.index=ng.apply(null,[-1].concat(q([])));this.isSelected=Zg.apply(null,[function(){return a._stepper.selectedIndex===a.index()}].concat(q([])));this.indicatorType=
Zg.apply(null,[function(){var c=a.isSelected(),d=a.completed,e,f=(e=a._state())!=null?e:"number";e=a._editable();return a._showError()&&a.hasError&&!c?"error":a._displayDefaultIndicatorType?!d||c?"number":e?"edit":"done":d&&!c?"done":d&&c?f:e&&c?"edit":f}].concat(q([])));this.isNavigable=Zg.apply(null,[function(){var c=a.isSelected();return a.completed||c||!a._stepper.linear}].concat(q([])));this._customError=ng.apply(null,[null].concat(q([])));var b=p(BZd,{optional:!0});this._stepperOptions=b?b:
{};this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1};h=h7.prototype;h._getDefaultError=function(){var a;return this.interacted&&!((a=this.stepControl)==null||!a.invalid)};h.select=function(){this._stepper.selected=this};
h.reset=function(){this._interacted.set(!1);this._completedOverride()!=null&&this._completedOverride.set(!1);this._customError()!=null&&this._customError.set(!1);if(this.stepControl){var a;(a=this._childForms)==null||a.forEach(function(b){var c;return(c=b.resetForm)==null?void 0:c.call(b)});this.stepControl.reset()}};h.ngOnChanges=function(){this._stepper._stateChanged()};h._markAsInteracted=function(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))};
h._showError=function(){var a;return(a=this._stepperOptions.showError)!=null?a:this._customError()!=null};
da.Object.defineProperties(h7.prototype,{interacted:{configurable:!0,enumerable:!0,get:function(){return this._interacted()},set:function(a){this._interacted.set(a)}},state:{configurable:!0,enumerable:!0,get:function(){return this._state()},set:function(a){this._state.set(a)}},editable:{configurable:!0,enumerable:!0,get:function(){return this._editable()},set:function(a){this._editable.set(a)}},completed:{configurable:!0,enumerable:!0,get:function(){var a=this._completedOverride(),b=this._interacted();
return a!=null?a:b&&(!this.stepControl||this.stepControl.valid)},set:function(a){this._completedOverride.set(a)}},hasError:{configurable:!0,enumerable:!0,get:function(){var a=this._customError();return a==null?this._getDefaultError():a},set:function(a){this._customError.set(a)}}});h7.\u0275fac=function(a){return new (a||h7)};
h7.\u0275cmp=D({type:h7,selectors:[["cdk-step"]],contentQueries:function(a,b,c){a&1&&(ig(c,f7,5),ig(c,eE,5));if(a&2){var d;lg(d=mg())&&(b.stepLabel=d.first);lg(d=mg())&&(b._childForms=d)}},viewQuery:function(a,b){a&1&&hg(dg,7);if(a&2){var c;lg(c=mg())&&(b.content=c.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",$g],optional:[2,
"optional","optional",$g],completed:[2,"completed","completed",$g],hasError:[2,"hasError","hasError",$g]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[jx],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(bg(),Gf(0,T3b,1,0,"ng-template"))},encapsulation:2,changeDetection:0});
var g7=function(){this._dir=p(bi,{optional:!0});this._changeDetectorRef=p(Cx);this._elementRef=p(Hd);this._destroyed=new qf;this.steps=new gg;this._sortedHeaders=new gg;this.linear=!1;this._selectedIndex=ng.apply(null,[0].concat(q([])));this.selectionChange=new Ti;this.selectedIndexChange=new Ti;this._groupId=p(ai).getId("cdk-stepper-");this._orientation="horizontal"};h=g7.prototype;
h.ngAfterContentInit=function(){var a=this;this._steps.changes.pipe(xf(this._steps),zf(this._destroyed)).subscribe(function(b){a.steps.reset(b.filter(function(c){return c._stepper===a}));a.steps.forEach(function(c,d){return c.index.set(d)});kg(a.steps)})};
h.ngAfterViewInit=function(){var a=this;this._stepHeader.changes.pipe(xf(this._stepHeader),zf(this._destroyed)).subscribe(function(d){a._sortedHeaders.reset(d.toArray().sort(function(e,f){return e._elementRef.nativeElement.compareDocumentPosition(f._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}));kg(a._sortedHeaders)});this._keyManager=nz(pz(mz(new sz(this._sortedHeaders))),this._orientation==="vertical");qz(this._keyManager,this.selectedIndex);(this._dir?this._dir.change:ce()).pipe(xf(this._layoutDirection()),
zf(this._destroyed)).subscribe(function(d){var e;return(e=a._keyManager)==null?void 0:oz(e,d)});qz(this._keyManager,this.selectedIndex);this.steps.changes.subscribe(function(){a.selected||a._selectedIndex.set(Math.max(a.selectedIndex-1,0))});this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0);if(this.linear&&this.selectedIndex>0){var b=this.steps.toArray().slice(0,this._selectedIndex());b=m(b);for(var c=b.next();!c.done;c=b.next())c.value._markAsInteracted()}};
h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this.steps.destroy();this._sortedHeaders.destroy();this._destroyed.next();this._destroyed.complete()};h.next=function(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)};h.previous=function(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)};h.reset=function(){this._updateSelectedItemIndex(0);this.steps.forEach(function(a){return a.reset()});this._stateChanged()};
h._getStepLabelId=function(a){return this._groupId+"-label-"+a};h._getStepContentId=function(a){return this._groupId+"-content-"+a};h._stateChanged=function(){this._changeDetectorRef.markForCheck()};h._getAnimationDirection=function(a){a-=this._selectedIndex();return a<0?this._layoutDirection()==="rtl"?"next":"previous":a>0?this._layoutDirection()==="rtl"?"previous":"next":"current"};h._getFocusIndex=function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()};
h._updateSelectedItemIndex=function(a){var b=this.steps.toArray(),c=this._selectedIndex();this.selectionChange.emit({selectedIndex:a,previouslySelectedIndex:c,selectedStep:b[a],previouslySelectedStep:b[c]});this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(a):qz(this._keyManager,a));this._selectedIndex.set(a);this.selectedIndexChange.emit(a);this._stateChanged()};
h._onKeydown=function(a){var b=Gh(a),c=a.keyCode,d=this._keyManager;(d==null?void 0:d.activeItemIndex)==null||b||c!==32&&c!==13?d==null||DCc(d,"keyboard").onKeydown(a):(this.selectedIndex=d.activeItemIndex,a.preventDefault())};h._anyControlsInvalidOrPending=function(a){return this.linear&&a>=0?this.steps.toArray().slice(0,a).some(function(b){var c=b.stepControl;return(c?c.invalid||c.pending||!b.interacted:!b.completed)&&!b.optional&&!b._completedOverride()}):!1};
h._layoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};h._containsFocus=function(){var a=this._elementRef.nativeElement,b=Ih();return a===b||a.contains(b)};h._isValidIndex=function(a){return a>-1&&(!this.steps||a<this.steps.length)};
da.Object.defineProperties(g7.prototype,{selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex()},set:function(a){if(this._steps){if(this._isValidIndex(a),this.selectedIndex!==a){var b;(b=this.selected)==null||b._markAsInteracted();!this._anyControlsInvalidOrPending(a)&&(a>=this.selectedIndex||this.steps.toArray()[a].editable)&&this._updateSelectedItemIndex(a)}}else this._selectedIndex.set(a)}},selected:{configurable:!0,enumerable:!0,get:function(){return this.steps?
this.steps.toArray()[this.selectedIndex]:void 0},set:function(a){this.selectedIndex=a&&this.steps?this.steps.toArray().indexOf(a):-1}},orientation:{configurable:!0,enumerable:!0,get:function(){return this._orientation},set:function(a){this._orientation=a;this._keyManager&&nz(this._keyManager,a==="vertical")}}});g7.\u0275fac=function(a){return new (a||g7)};
g7.\u0275dir=af({type:g7,selectors:[["","cdkStepper",""]],contentQueries:function(a,b,c){a&1&&(ig(c,h7,5),ig(c,e7,5));if(a&2){var d;lg(d=mg())&&(b._steps=d);lg(d=mg())&&(b._stepHeader=d)}},inputs:{linear:[2,"linear","linear",$g],selectedIndex:[2,"selectedIndex","selectedIndex",ah],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]});var CZd=function(){this._stepper=p(g7);this.type="submit"};CZd.\u0275fac=function(a){return new (a||CZd)};CZd.\u0275dir=af({type:CZd,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("click",function(){return b._stepper.next()});a&2&&Pf("type",b.type)},inputs:{type:"type"}});var DZd=function(){this._stepper=p(g7);this.type="button"};DZd.\u0275fac=function(a){return new (a||DZd)};
DZd.\u0275dir=af({type:DZd,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("click",function(){return b._stepper.previous()});a&2&&Pf("type",b.type)},inputs:{type:"type"}});var EZd=function(){};EZd.\u0275fac=function(a){return new (a||EZd)};EZd.\u0275mod=$e({type:EZd});EZd.\u0275inj=Fc({imports:[Ky]});var i7=function(){CZd.apply(this,arguments)};Y(i7,CZd);i7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(i7)))(b||i7)}}();i7.\u0275dir=af({type:i7,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(a,b){a&2&&Pf("type",b.type)},features:[Ef]});var j7=function(){DZd.apply(this,arguments)};Y(j7,DZd);j7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(j7)))(b||j7)}}();
j7.\u0275dir=af({type:j7,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(a,b){a&2&&Pf("type",b.type)},features:[Ef]});var FZd=function(){this.templateRef=p(dg)};FZd.\u0275fac=function(a){return new (a||FZd)};FZd.\u0275dir=af({type:FZd,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}});var GZd=function(){this._template=p(dg)};GZd.\u0275fac=function(a){return new (a||GZd)};GZd.\u0275dir=af({type:GZd,selectors:[["ng-template","matStepContent",""]]});var k7=function(){f7.apply(this,arguments)};Y(k7,f7);k7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(k7)))(b||k7)}}();k7.\u0275dir=af({type:k7,selectors:[["","matStepLabel",""]],features:[Ef]});var HZd=function(){this.changes=new qf;this.optionalLabel="Optional";this.completedLabel="Completed";this.editableLabel="Editable"};HZd.\u0275fac=function(a){return new (a||HZd)};HZd.\u0275prov=Dc({token:HZd,factory:HZd.\u0275fac,providedIn:"root"});var U3b=function(a,b,c){return{index:a,active:b,optional:c}},l7=function(){this._elementRef=p(Hd);this._intl=p(HZd);this._focusMonitor=p(Ny);var a=p(Zh);a.load(cA);a.load(Ry);var b=p(Cx);this._intlSubscription=this._intl.changes.subscribe(function(){return b.markForCheck()})};Y(l7,e7);l7.\u0275dir=e7.\u0275dir;h=l7.prototype;h.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};h.ngOnDestroy=function(){this._intlSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._elementRef)};
h.focus=function(a,b){a?Oy(this._focusMonitor,this._elementRef,a,b):this._elementRef.nativeElement.focus(b)};h._stringLabel=function(){return this.label instanceof k7?null:this.label};h._templateLabel=function(){return this.label instanceof k7?this.label:null};h._getHostElement=function(){return this._elementRef.nativeElement};h._getDefaultTextForState=function(a){return a=="number"?""+(this.index+1):a=="edit"?"create":a=="error"?"warning":a};
h._hasEmptyLabel=function(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()};h._hasOptionalLabel=function(){return this.optional&&this.state!=="error"};h._hasErrorLabel=function(){return this.state==="error"};l7.\u0275fac=function(a){return new (a||l7)};
l7.\u0275cmp=D({type:l7,selectors:[["mat-step-header"]],hostAttrs:["role","",1,"mat-step-header"],hostVars:4,hostBindings:function(a,b){a&2&&(xg("mat-"+(b.color||"primary")),wg("mat-step-header-empty-label",b._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[Ef],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple",
"mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(a,b){a&1&&(M(0,"div",0),K(1,"div")(2,"div",1),F(3,V3b,1,6,"ng-container",2)(4,$3b,2,1),L()(),K(5,"div",3),F(6,a4b,2,1,"div",4)(7,b4b,2,1,"div",4),F(8,c4b,2,1,"div",5),
F(9,d4b,2,1,"div",6),L());if(a&2){var c;I("matRippleTrigger",b._getHostElement())("matRippleDisabled",b.disableRipple);B();xg(Eg("mat-step-icon-state-",b.state," mat-step-icon"));wg("mat-step-icon-selected",b.selected);B(2);G(b.iconOverrides&&b.iconOverrides[b.state]?3:4);B(2);wg("mat-step-label-active",b.active)("mat-step-label-selected",b.selected)("mat-step-label-error",b.state=="error");B();G((c=b._templateLabel())?6:b._stringLabel()?7:-1,c);B(2);G(b._hasOptionalLabel()?8:-1);B();G(b._hasErrorLabel()?
9:-1)}},dependencies:[fA,Sx,Jy],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}\n'],
encapsulation:2,changeDetection:0});var IZd=["*"],JZd=["animatedContainer"],h4b=function(a){return{steps:a}},n4b=function(a){return{step:a}},m7=function(){h7.apply(this,arguments);this._errorStateMatcher=p(bA,{skipSelf:!0});this._viewContainerRef=p(eg);this._isSelected=Pd.EMPTY;this.stepLabel=void 0};Y(m7,h7);
m7.prototype.ngAfterContentInit=function(){var a=this;this._isSelected=this._stepper.steps.changes.pipe(yf(function(){return a._stepper.selectionChange.pipe(A(function(b){return b.selectedStep===a}),xf(a._stepper.selected===a))})).subscribe(function(b){b&&a._lazyContent&&!a._portal&&(a._portal=new Oz(a._lazyContent._template,a._viewContainerRef))})};m7.prototype.ngOnDestroy=function(){this._isSelected.unsubscribe()};
m7.prototype.isErrorState=function(a,b){var c=!!(a&&a.invalid&&this.interacted);return this._errorStateMatcher.isErrorState(a,b)||c};m7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(m7)))(b||m7)}}();
m7.\u0275cmp=D({type:m7,selectors:[["mat-step"]],contentQueries:function(a,b,c){a&1&&(ig(c,k7,5),ig(c,GZd,5));if(a&2){var d;lg(d=mg())&&(b.stepLabel=d.first);lg(d=mg())&&(b._lazyContent=d.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[Gg([{provide:bA,useExisting:m7},{provide:h7,useExisting:m7}]),Ef],ngContentSelectors:IZd,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(a){a&1&&(bg(),E(0,f4b,2,1,"ng-template"))},dependencies:[Rz],encapsulation:2,
changeDetection:0});
var n7=function(){g7.call(this);var a=this;this._ngZone=p(Rg);this._renderer=p(ci);this._animationsDisabled=mi();this._isAnimating=ng.apply(null,[!1].concat(q([])));this._steps=this._stepHeader=void 0;this.steps=new gg;this.animationDone=new Ti;this.labelPosition="end";this.headerPosition="top";this.headerPrefix=Og.apply(null,[null].concat(q([])));this._iconOverrides={};this._animationDuration="";this._isServer=!p(Vh).isBrowser;this._handleTransitionend=function(b){var c=b.target;if(c){var d=a.orientation===
"horizontal"&&b.propertyName==="transform"&&c.classList.contains("mat-horizontal-stepper-content-current");b=a.orientation==="vertical"&&b.propertyName==="grid-template-rows"&&c.classList.contains("mat-vertical-content-container-active");(d||b)&&a._animatedContainers.find(function(e){return e.nativeElement===c})&&a._onAnimationDone()}};this.orientation=p(Hd).nativeElement.nodeName.toLowerCase()==="mat-vertical-stepper"?"vertical":"horizontal"};Y(n7,g7);n7.\u0275dir=g7.\u0275dir;h=n7.prototype;
h.ngAfterContentInit=function(){var a=this;g7.prototype.ngAfterContentInit.call(this);this._icons.forEach(function(b){return a._iconOverrides[b.name]=b.templateRef});this.steps.changes.pipe(zf(this._destroyed)).subscribe(function(){return a._stateChanged()});this.selectedIndexChange.pipe(zf(this._destroyed)).subscribe(function(){var b=a._getAnimationDuration();b==="0ms"||b==="0s"?a._onAnimationDone():a._isAnimating.set(!0)});this._ngZone.runOutsideAngular(function(){a._animationsDisabled||setTimeout(function(){a._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled");
a._cleanupTransition=a._renderer.listen(a._elementRef.nativeElement,"transitionend",a._handleTransitionend)},200)})};h.ngAfterViewInit=function(){var a=this;g7.prototype.ngAfterViewInit.call(this);if(typeof queueMicrotask==="function"){var b=!1;this._animatedContainers.changes.pipe(xf(null),zf(this._destroyed)).subscribe(function(){return queueMicrotask(function(){b||(b=!0,a.animationDone.emit());a._stateChanged()})})}};
h.ngOnDestroy=function(){g7.prototype.ngOnDestroy.call(this);var a;(a=this._cleanupTransition)==null||a.call(this)};h._getAnimationDuration=function(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"};h._onAnimationDone=function(){this._isAnimating.set(!1);this.animationDone.emit()};
da.Object.defineProperties(n7.prototype,{animationDuration:{configurable:!0,enumerable:!0,get:function(){return this._animationDuration},set:function(a){this._animationDuration=/^\d+$/.test(a)?a+"ms":a}}});n7.\u0275fac=function(a){return new (a||n7)};
n7.\u0275cmp=D({type:n7,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(a,b,c){a&1&&(ig(c,m7,5),ig(c,FZd,5));if(a&2){var d;lg(d=mg())&&(b._steps=d);lg(d=mg())&&(b._icons=d)}},viewQuery:function(a,b){a&1&&(hg(l7,5),hg(JZd,5));if(a&2){var c;lg(c=mg())&&(b._stepHeader=c);lg(c=mg())&&(b._animatedContainers=c)}},hostVars:14,hostBindings:function(a,b){a&2&&(vg("--mat-stepper-animation-duration",b._getAnimationDuration()),wg("mat-stepper-horizontal",
b.orientation==="horizontal")("mat-stepper-vertical",b.orientation==="vertical")("mat-stepper-label-position-end",b.orientation==="horizontal"&&b.labelPosition=="end")("mat-stepper-label-position-bottom",b.orientation==="horizontal"&&b.labelPosition=="bottom")("mat-stepper-header-position-bottom",b.headerPosition==="bottom")("mat-stepper-animating",b._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",headerPrefix:[1,
"headerPrefix"],animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[Gg([{provide:g7,useExisting:n7}]),Ef],ngContentSelectors:IZd,decls:7,vars:2,consts:[["stepTemplate",""],["horizontalStepsTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-vertical-stepper-wrapper"],[1,"mat-horizontal-stepper-header-wrapper"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,
"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","region",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"],["aria-orientation","horizontal",
"role","tablist",1,"mat-horizontal-stepper-header-container"],[1,"mat-stepper-horizontal-line"]],template:function(a,b){a&1&&(bg(),F(0,g4b,1,0),F(1,l4b,6,1,"div",3)(2,p4b,4,1,"div",4),E(3,q4b,1,27,"ng-template",null,0,Mg)(5,t4b,3,0,"ng-template",null,1,Mg));if(a&2){var c;G(b._isServer?0:-1);B();G((c=b.orientation)==="horizontal"?1:c==="vertical"?2:-1)}},dependencies:[Sx,l7],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-wrapper{align-items:center;display:flex}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center;flex-grow:1}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}\n'],
encapsulation:2,changeDetection:0});var KZd=["summary"],LZd=["reproSteps"],MZd=["description"],NZd=function(a){return{nonEmptyValidator:a}},OZd=function(a,b){return{reproStepsValidator:a,nonEmptyValidator:b}},x4b=function(){return{noWizard:"true"}},PZd=[xm("security@chromium.org")],QZd=function(){this.activeSession=p(uu);this.analytics=p(eQ);this.butterBar=p(UN);this.currentUser=p(N2);this.componentIds=p(tZd);this.customFieldIds=p(uZd);this.hotlistIds=p(vZd);this.issueApi=p(MP);this.paths=p(hW);this.redirectUrl=p(W5);this.userAccess=
p(DP);this.Persona=qZd;this.PlatformOs=nZd;var a=E3b(),b;var c=window.navigator.userAgent.match(/chrome\/(\d|\.)+/i)||[];if(c.length>0){var d;c=(d=c[0])==null?void 0:d.split("/")[1]}else c=void 0;this.model={persona:"USER",category:void 0,os:a?[a]:[],channel:"Not sure",version:(b=c)!=null?b:"",summary:"",reproSteps:"1. \n2. \n3. ",description:"",regression:"N/A",comments:"",customQuestionResponses:[],chromeFeedback:"NO"};this.ackIssueQuality=!1;this.uploads=[];this.isSubmitEnabled=!0;this.enableRecaptcha=
this.activeSession.userRequiresCaptcha();this.recaptchaResponse="";this.existingIssuesLink="/issues?q=componentid:"+this.componentIds.default+encodeURIComponent("+");this.fullScreen=!0},v4b=function(a,b){switch(b){case 0:return!!a.model.category&&a.ackIssueQuality;case 1:var c,d,e;return!((c=a.summaryControl)==null||!c.valid)&&!((d=a.reproStepsControl)==null||!d.valid)&&!((e=a.descriptionControl)==null||!e.valid);default:wb(b)}};h=QZd.prototype;
h.nonEmptyValidator=function(a){return(a==null?void 0:a.trim().length)===0?!1:!0};h.reproStepsValidator=function(a){return a==="1. \n2. \n3. "?!1:!0};h.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};h.enableSubmit=function(){this.isSubmitEnabled=!0};h.uploadFile=function(a){a=this.attachmentUploader.upload(a);this.addUpload(a)};h.addUpload=function(a){this.uploads.push(a)};h.removeUpload=function(a){La(this.uploads,a)};
h.getAttachments=function(){for(var a=[],b=m(this.uploads),c=b.next();!c.done;c=b.next())c=c.value,c.state===2&&c.blobRef&&a.push(nm(c.blobRef));return a};
h.submit=function(){var a=this,b,c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:var k="BUG",l=null,r=null,w="P2",x="S2",C=[a.hotlistIds.unconfirmed];a.model.regression==="Yes"&&C.push(a.hotlistIds.chromiumRegression);var H,J,O,R=(O=(H=a.model.category)==null?void 0:(J=H.ccEmails)==null?void 0:J.map(xm).filter(Pm))!=null?O:[],V;((V=a.model.category)==null?void 0:V.value)==="SECURITY"&&(k="VULNERABILITY",w="P4",x="S4",l="LIMIT_VIEW",r=PZd);var ca;H=((ca=a.model.category)==null?void 0:ca.componentId)||
a.componentIds.default;ca=a.model.summary;J=H4b(a.model,a.customFieldIds);O=a.model;V=O.chromeFeedback;var na="0";V==="DESKTOP"?na="237":V==="ANDROID"?na="282":V==="IOS"&&(na="5031434");V=na==="0"?"":"Has Chrome Feedback with description matching the bug title: https://listnr.corp.google.com/product/"+(na+"/reports?searchText="+encodeURIComponent(O.summary)+"&filter=0&dateRange=30");var ua;na="\n# Steps to reproduce the problem\n"+O.reproSteps+"\n\n# Problem Description\n"+O.description+"\n\n"+(O.comments.length>
0?"\n# Additional Comments\n"+O.comments:"")+"\n\n# Summary\n"+O.summary+"\n\n"+J4b(O.customQuestionResponses)+"\n\n# Additional Data\nCategory: "+((ua=O.category)==null?void 0:ua.title)+" \\\nChrome Channel: "+O.channel+" \\\nRegression: "+O.regression+" \\\n"+V;na=na.replace(/^\n/,"");b={componentId:H,type:k,status:"NEW",priority:w,severity:x,title:ca,customField:J,comment:na.replace(/\n{3,}/g,"\n\n"),formattingMode:"MARKDOWN",inProd:!0,isArchived:!1,reporterUser:a.currentUser.user,issueAccessLimitLevel:l,
collaboratorsUsers:r,staffing:null,ccUsers:[a.currentUser.user].concat(q(R)),hotlistId:C,assigneeUser:null,verifierUser:null,duplicateOfIssueId:null,blockedByIssueId:null,blockingIssueId:null,changelist:null,gerritChanges:null,incidents:null,postmortems:null,foundInVersion:null,targetedToVersion:null,verifiedInVersion:null,retention:null,isDeleted:null,deletionReason:null,duplicateIssueId:null,sloStartTime:null,sloEndTime:null,sloSnoozeType:null};Rr(a.butterBar,"Saving...",0);Wd(g,2);return z(g,a.issueApi.createIssueWithWizard({snapshot:b,
attachments:a.getAttachments(),recaptchaToken:a.enableRecaptcha?a.recaptchaResponse:void 0}),4);case 4:c=g.yieldResult;d=c.issueId;if(!d)throw Error("rg");a.butterBar.dismiss();a.analytics.trackEvent("createIssue","fileAndRedirect","wizard",!0);return z(g,EP(a.userAccess,"reader","issues/"+d),5);case 5:(e=g.yieldResult)?sWd(a.redirectUrl,ss(d),String(d)):(Rr(a.butterBar,"New issue created: "+d+" (view access not granted)",0),sWd(a.redirectUrl,a.paths.listIssues()));dt(g,0);break;case 2:f=$d(g),Rr(a.butterBar,
"Failed to create issue: "+f),ae(g)}})};QZd.\u0275fac=function(a){return new (a||QZd)};
QZd.\u0275cmp=D({type:QZd,selectors:[["chrome-wizard"]],viewQuery:function(a,b){a&1&&(hg(KZd,5),hg(LZd,5),hg(MZd,5),hg(i0,5));if(a&2){var c;lg(c=mg())&&(b.summaryControl=c.first);lg(c=mg())&&(b.reproStepsControl=c.first);lg(c=mg())&&(b.descriptionControl=c.first);lg(c=mg())&&(b.attachmentUploader=c.first)}},inputs:{fullScreen:"fullScreen"},standalone:!1,decls:141,vars:47,consts:[["summary","ngModel"],["reproSteps","ngModel"],["description","ngModel"],["headerPosition","bottom","animationDuration",
"0","aria-label","Issue filing form","linear","",3,"disableRipple"],["aria-label","Report an issue with Chromium",3,"completed"],[1,"required"],[3,"personaChange","persona"],[3,"completed","aria-label"],[1,"inline-block"],["appearance","outline","aria-label","Operating system",1,"inline"],["multiple","",3,"ngModelChange","ngModel"],[3,"value"],[1,"inline-block","channel"],["appearance","outline","aria-label","Chrome Channel",1,"inline"],[3,"ngModelChange","ngModel"],["value","Not sure"],["value",
"Stable"],["value","Beta"],["value","Dev"],["value","Canary"],["appearance","outline",1,"inline"],["matInput","","aria-label","Chrome version",3,"ngModelChange","ngModel"],["appearance","outline",1,"textarea"],["matInput","","required","","maxlength","100","name","summary","aria-label","One line summary",3,"ngModelChange","ngModel","customValidators"],["appearance","outline","aria-label","Did you send the Chrome feedback report?"],["value","NO"],["value","DESKTOP"],["value","ANDROID"],["value","IOS"],
["value","OTHER"],["matInput","","required","","maxlength","5000","name","reproSteps","aria-label","Steps to reproduce problem",3,"ngModelChange","ngModel","customValidators"],["matInput","","required","","maxlength","5000","name","description","aria-label","Describe the problem",3,"ngModelChange","ngModel","customValidators"],["appearance","outline","aria-label","Did this work before?"],["value","N/A"],["value","Yes"],["value","No"],[1,"actions-container"],"type button mat-stroked-button  matStepperPrevious ".split(" "),
["svgIcon","chevron-left"],["type","button","mat-raised-button","","color","primary","matStepperNext","",3,"disabled"],["svgIcon","chevron-right"],["aria-label","Extra information about the issue"],[3,"category"],["matInput","","aria-label","Additional comments",3,"ngModelChange","ngModel"],[3,"onUploadComplete","onUploadCancel","uploads"],[1,"attachment-selector"],[3,"onSelect","includeTextLabel"],[1,"wizard-recaptcha"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],
["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],[3,"categoryChange","persona","category"],[1,"issue-quality"],[1,"ack-issue-quality",3,"ngModelChange","ngModel"],[3,"href"],["svgIcon","chevron-right","iconPositionEnd",""],["href","https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/faq.md"],["href","https://www.chromium.org/Home/chromium-security/reporting-security-bugs"],["href","https://g.co/chrome/vrp"],[3,"responses","category"],[3,"onUpdate"]],
template:function(a,b){if(a&1){var c=t();K(0,"mat-stepper",3)(1,"mat-step",4)(2,"h2");Q(3,"Report an issue with Chromium");L();K(4,"h3");Q(5," We want you to enter the best possible issue report so that the project team members can act on it effectively. The following steps will help route your issue to the correct people. ");L();M(6,"br");K(7,"h4",5);Q(8,"Please select your following role:");L();K(9,"wizard-persona-picker",6);N("personaChange",function(f){u(c);b.model.category=void 0;b.model.persona=
f;return v()});L();F(10,w4b,20,6)(11,y4b,10,2,"div");L();K(12,"mat-step",7)(13,"h2");Q(14);L();K(15,"h3");Q(16,"Please confirm that the following version information is correct.");L();K(17,"h4",8);Q(18,"Operating System:");L();K(19,"mat-form-field",9)(20,"mat-select",10);Cg("ngModelChange",function(f){u(c);Bg(b.model.os,f)||(b.model.os=f);return v(f)});K(21,"mat-option",11);Q(22,"Android");L();K(23,"mat-option",11);Q(24,"Chrome OS");L();K(25,"mat-option",11);Q(26,"iOS");L();K(27,"mat-option",11);
Q(28,"Linux");L();K(29,"mat-option",11);Q(30,"Mac OS");L();K(31,"mat-option",11);Q(32,"Windows");L();K(33,"mat-option",11);Q(34,"Unknown/Other");L()()();K(35,"h4",12);Q(36,"Channel:");L();K(37,"mat-form-field",13)(38,"mat-select",14);Cg("ngModelChange",function(f){u(c);Bg(b.model.channel,f)||(b.model.channel=f);return v(f)});K(39,"mat-option",15);Q(40,"Not sure");L();K(41,"mat-option",16);Q(42,"Stable");L();K(43,"mat-option",17);Q(44,"Beta");L();K(45,"mat-option",18);Q(46,"Dev");L();K(47,"mat-option",
19);Q(48,"Canary");L()()();M(49,"br");K(50,"h4",8);Q(51,"Chrome version:");L();K(52,"mat-form-field",20)(53,"input",21);Cg("ngModelChange",function(f){u(c);Bg(b.model.version,f)||(b.model.version=f);return v(f)});L()();K(54,"h4",5);Q(55,"Please enter a one line summary (100 character limit)");L();K(56,"mat-form-field",22)(57,"textarea",23,0);Cg("ngModelChange",function(f){u(c);Bg(b.model.summary,f)||(b.model.summary=f);return v(f)});Q(59,"      ");L();F(60,z4b,2,0,"mat-error");L();K(61,"h4");Q(62,
" (Optional) Send a Chrome feedback report to help the investigation");L();K(63,"p");Q(64," This is often necessary to reproduce an issue which isn't consistent in reproducing for all users. ");L();K(65,"ol")(66,"li");Q(67," Open Chrome. Go to Help > Report an issue. ");L();K(68,"li");Q(69,' The description should be the same as the "one line summary" above. ');L();K(70,"li");Q(71," Send the report. ");L()();K(72,"h4");Q(73," Did you send the Chrome feedback report?");L();K(74,"mat-form-field",24)(75,
"mat-select",14);Cg("ngModelChange",function(f){u(c);Bg(b.model.chromeFeedback,f)||(b.model.chromeFeedback=f);return v(f)});K(76,"mat-option",25);Q(77,"No - I didn't.");L();K(78,"mat-option",26);Q(79,"Yes - I did on Windows, Linux or Mac OS.");L();K(80,"mat-option",27);Q(81,"Yes - I did on Android.");L();K(82,"mat-option",28);Q(83,"Yes - I did on iOS.");L();K(84,"mat-option",29);Q(85,"Yes - I did on other platform.");L()()();K(86,"h4",5);Q(87,"Steps to reproduce problem (5000 character limit)");L();
K(88,"mat-form-field",22)(89,"textarea",30,1);Cg("ngModelChange",function(f){u(c);Bg(b.model.reproSteps,f)||(b.model.reproSteps=f);return v(f)});Q(91,"      ");L();F(92,A4b,2,0,"mat-error");L();K(93,"h4",5);Q(94,"Please describe the problem (5000 character limit)");L();K(95,"mat-form-field",22)(96,"textarea",31,2);Cg("ngModelChange",function(f){u(c);Bg(b.model.description,f)||(b.model.description=f);return v(f)});Q(98,"      ");L();F(99,B4b,2,0,"mat-error");L();K(100,"h4");Q(101,"Did this work before?");
L();K(102,"mat-form-field",32)(103,"mat-select",14);Cg("ngModelChange",function(f){u(c);Bg(b.model.regression,f)||(b.model.regression=f);return v(f)});K(104,"mat-option",33);Q(105,"Not applicable or don't know");L();K(106,"mat-option",34);Q(107,"Yes - This is a regression");L();K(108,"mat-option",35);Q(109,"No - I think it never worked");L()()();K(110,"div",36)(111,"button",37);M(112,"mat-icon",38);Q(113," Back ");L();K(114,"button",39);Q(115," Next ");M(116,"mat-icon",40);L()()();K(117,"mat-step",
41)(118,"h2");Q(119,"Extra information about the issue");L();F(120,C4b,1,1,"wizard-custom-questions",42);K(121,"h4");Q(122,"Additional comments");L();K(123,"mat-form-field",22)(124,"textarea",43);Cg("ngModelChange",function(f){u(c);Bg(b.model.comments,f)||(b.model.comments=f);return v(f)});L()();K(125,"h4");Q(126,"Upload any relevant attachments");L();K(127,"b-attachment-uploader",44);N("onUploadComplete",function(){u(c);return v(b.enableSubmit())})("onUploadCancel",function(f){u(c);b.removeUpload(f);
return v(b.enableSubmit())});L();K(128,"div",45)(129,"b-attachment-selector",46);N("onSelect",function(f){u(c);b.uploadFile(f);b.isSubmitEnabled=!1;return v()});L();Q(130," You can include multiple attachments. ");L();F(131,D4b,2,0,"div",47);K(132,"div",36)(133,"button",37);M(134,"mat-icon",38);Q(135," Back ");L();K(136,"button",48);N("click",function(){u(c);return v(b.submit())});Q(137," Submit ");L()()();E(138,E4b,0,0,"ng-template",49)(139,F4b,0,0,"ng-template",50)(140,G4b,0,0,"ng-template",51);
L()}if(a&2){a=qg(58);var d=qg(90),e=qg(97);wg("bv2-view",b.fullScreen)("hide-dots",b.model.persona===b.Persona.CONTRIBUTOR);I("disableRipple",!0);B();I("completed",v4b(b,0));B(8);I("persona",b.model.persona);B();G(b.model.persona!==b.Persona.CONTRIBUTOR?10:11);B(2);Hf("aria-label",Eg("Details for problems with ",b.model.category==null?null:b.model.category.title));I("completed",v4b(b,1));B(2);S("Details for problems with ",b.model.category==null?null:b.model.category.title);B(6);Ag("ngModel",b.model.os);
B();I("value",b.PlatformOs.ANDROID);B(2);I("value",b.PlatformOs.CHROME);B(2);I("value",b.PlatformOs.IOS);B(2);I("value",b.PlatformOs.LINUX);B(2);I("value",b.PlatformOs.MAC);B(2);I("value",b.PlatformOs.WINDOWS);B(2);I("value",b.PlatformOs.UNKNOWN);B(5);Ag("ngModel",b.model.channel);B(15);Ag("ngModel",b.model.version);B(4);Ag("ngModel",b.model.summary);I("customValidators",Ig(40,NZd,b.nonEmptyValidator));B(3);G(a.invalid&&(a.dirty||a.touched)?60:-1);B(15);Ag("ngModel",b.model.chromeFeedback);B(14);
Ag("ngModel",b.model.reproSteps);I("customValidators",Jg(42,OZd,b.reproStepsValidator,b.nonEmptyValidator));B(3);G(d.invalid&&(d.dirty||d.touched)?92:-1);B(4);Ag("ngModel",b.model.description);I("customValidators",Ig(45,NZd,b.nonEmptyValidator));B(3);G(e.invalid&&(e.dirty||e.touched)?99:-1);B(4);Ag("ngModel",b.model.regression);B(11);I("disabled",!v4b(b,1));B(6);G(b.model.category?120:-1);B(4);Ag("ngModel",b.model.comments);B(3);I("uploads",b.uploads);B(2);I("includeTextLabel",!0);B(2);G(b.enableRecaptcha?
131:-1);B(5);I("disabled",!b.isSubmitEnabled||!b.isCaptchaValid())}},dependencies:[uId,i0,Jy,M5,xj,fE,yE,zE,mE,kB,gB,AZd,zFd,AFd,CFd,kL,hI,VD,FE,SD,ID,HD,yU,TH,hA,m7,n7,i7,j7,FZd,qY,wZd,xZd,yZd],styles:['[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0;font-weight:400}[_nghost-%COMP%]   h4[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1.125rem;letter-spacing:0;font-weight:400;font-weight:100;margin:0}[_nghost-%COMP%]   h4.required[_ngcontent-%COMP%]:after{content:" *";color:#ea4335;color:var(--bad)}[_nghost-%COMP%]   mat-form-field.textarea[_ngcontent-%COMP%]{min-width:90%}[_nghost-%COMP%]   textarea[_ngcontent-%COMP%]{min-height:4rem;padding:4px 1px 1px 7px}[_nghost-%COMP%]   mat-form-field[_ngcontent-%COMP%]{margin:4px 0}[_nghost-%COMP%]   mat-form-field.inline[_ngcontent-%COMP%]{margin:4px 8px}[_nghost-%COMP%]     .mat-step-header .mat-step-label{display:none}[_nghost-%COMP%]     mat-stepper.hide-dots .mat-horizontal-stepper-header-container{display:none}[_nghost-%COMP%]     .mat-step-header.cdk-program-focused, [_nghost-%COMP%]     .mat-step-header:hover{background-color:unset}[_nghost-%COMP%]     .mat-horizontal-stepper-header-container{max-width:10%;margin-left:40%;-webkit-transform:scale(.35);transform:scale(.35)}[_nghost-%COMP%]     .mat-horizontal-stepper-header-container .mat-step-icon{background-color:#dadce0;background-color:var(--c300)}[_nghost-%COMP%]     .mat-horizontal-stepper-header-container .mat-step-icon-selected{background-color:#1a73e8;background-color:var(--primary-c600)}[_nghost-%COMP%]     .mat-horizontal-stepper-header-container .mat-stepper-horizontal-line{display:none}[_nghost-%COMP%]     .mat-horizontal-content-container{overflow-x:scroll}[_nghost-%COMP%]     mat-checkbox label{text-wrap:wrap}wizard-persona-picker[_ngcontent-%COMP%]{margin-bottom:30px}mat-card[_ngcontent-%COMP%]{background-color:#fef7e0;background-color:var(--yellow-c50);margin-bottom:8px}.actions-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:8px 12px 4px 0}.actions-container[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child{margin-left:auto}mat-card-header[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1.125rem;letter-spacing:0;font-weight:400;margin-bottom:10px}.issue-quality[_ngcontent-%COMP%]{max-width:88%}mat-stepper[_ngcontent-%COMP%]{max-width:1060px}h4.channel[_ngcontent-%COMP%]{margin-left:12px}.bv2-view[_ngcontent-%COMP%]{top:0}b-attachment-selector[_ngcontent-%COMP%]{padding:4px}.attachment-selector[_ngcontent-%COMP%]{margin:12px 0}.wizard-recaptcha[_ngcontent-%COMP%]{margin:15px 0}p[_ngcontent-%COMP%]{margin:8px 0}\n/*# sourceMappingURL=chrome_wizard.css.map */']});var o7=function(){this.activeSession=p(uu);this.routeParams=p(wS);this.router=p(fF);this.userAccess=p(DP);this.rootComponentId=this.activeSession.getEnvironmentType()==="QA"?Dvc.default:Evc.default};
o7.prototype.canActivate=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1)return(c=a.activeSession.getFlag("enableChromeWizard")&&((b=a.activeSession.getTracker())==null?void 0:b.trackerId)==="157"&&!a.routeParams.template&&!a.routeParams.noWizard)?z(d,EP(a.userAccess,"writer","components/"+a.rootComponentId+"/issueDefaults"),3):d.jumpTo(2);d.nextAddress!=2&&(c=!d.yieldResult);return c?d.return(gF(a.router,["issues/wizard"])):d.return(!0)})};
o7.\u0275fac=function(a){return new (a||o7)};o7.\u0275prov=Dc({token:o7,factory:o7.\u0275fac,providedIn:"root"});var p7=function(){var a=this;this.userResources=p(kP);this.history=p(J2);this.router=p(fF);this.activeSession=p(uu);this.viewIssues=zr;this.createIssue=Y4a;this.componentSettings=Z4a;this.currentTracker=this.activeSession.getTracker();var b;this.trackerId=(b=this.currentTracker)==null?void 0:b.trackerId;this.includeArchived=!1;this.isThinking=!0;this.isInternalSession=this.activeSession.isInternalSession();this.placeholder=this.currentTracker||this.activeSession.isExternalSession()?"Find components by name or id":
"Find components by name, team, or id";this.recentComponents$=this.userResources.getRecentComponents().then(function(c){return c.filter(function(d){return a.filterTrackerComponents(d)})}).finally(function(){a.isThinking=!1})};p7.prototype.back=function(){K2(this.history)};p7.prototype.filterTrackerComponents=function(a){return!this.trackerId||a.trackerId===this.trackerId};p7.\u0275fac=function(a){return new (a||p7)};
p7.\u0275cmp=D({type:p7,selectors:[["components-screen-wrapper"]],standalone:!1,decls:22,vars:8,consts:[["card",""],["cardBody",""],[1,"flex-kids-y","pos-fill","bg-off-main","overflow","overflow-on-print-media"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-appbar-right"],["mat-button","","routerLink","/components/new",1,"gmat-button","medium"],
["label","Show archived","tooltip","Toggle whether to show 'archived' Components",1,"margin-x",3,"modelChange","model"],[1,"padded"],[3,"selectedComponentChange","includeArchived","placeholder","ariaLabel"],[1,"margin-top"],[1,"pos-rel","carded","bg-main"],[1,"muted","margin-s-top","margin-left"],["routerLink","/components/all",1,"muted","hover-link"],[1,"muted"],[1,"unstyled-list","reverse-padded-sides","recent-components"],["href","https://developers.google.com/issue-tracker/concepts/components#recent-components",
"target","_blank"],[1,"flex-kids-x","clickable-row","padded",3,"routerLinkObj"],[1,"flex-1",3,"onedevHovercardTrigger"],[1,"type-l","normal-link"],[1,"margin-s-left",3,"accessLevel","labelOnlyMode"],[1,"margin-s-left",3,"trackerId","showHovercard"],[1,"muted","line-clamp-2"],[1,"right"],["mat-button","","type","button",1,"gmat-button","medium",3,"routerLinkObj"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"]],template:function(a,b){a&1&&(K(0,"article",2)(1,"header",3)(2,
"div",4)(3,"button",5),N("click",function(){return b.back()}),M(4,"mat-icon",6),L(),K(5,"h2"),Q(6,"Components"),L()(),K(7,"div",7),F(8,K4b,2,0,"a",8),K(9,"b-slide-toggle",9),N("modelChange",function(d){return b.includeArchived=d}),L()()(),K(10,"section",10)(11,"h3"),Q(12,"Search"),L(),K(13,"b-team-component-picker",11),N("selectedComponentChange",function(d){d!=null&&Ft(b.router,Z4a(d.componentId).path)}),L(),K(14,"h3",12),Q(15,"Recent Components"),L(),K(16,"div",13),F(17,O4b,4,1),T(18,"async"),L(),
K(19,"p",14)(20,"a",15),Q(21,"See all Components"),L()()()());if(a&2){var c;B(8);G(b.isInternalSession?8:-1);B();I("model",b.includeArchived);B(4);I("includeArchived",b.includeArchived)("placeholder",b.placeholder)("ariaLabel",b.placeholder);B(4);G((c=U(18,6,b.recentComponents$))?17:-1,c)}},dependencies:[kB,gB,iB,vK,nA,Jy,hF,VO,dW,UV,KK,LK,SK,MK,QU,RV,ZV,Tx],encapsulation:2});var RZd=["bookmarkGroupName"],q7=function(){var a=p(rY);Z.call(this);var b=this;this.location=p(bU);this.appHistory=p(J2);this.snackBar=p(rB);this.bookmarkGroupsApi=p(CO);this.paths=p(hW);this.analytics=p(eQ);this.errorHandler=p(pO);this.appEvents=p(UO);this.error="";this.isSaving=!1;this.bookmarkGroupUnderEdit=new jE({name:new lE("",vj),description:new lE("")});this.subscriptions.add(sY(a,function(){return!(!b.name()&&!b.description())},!1))};Y(q7,Z);q7.\u0275dir=Z.\u0275dir;h=q7.prototype;
h.ngAfterViewInit=function(){this.bookmarkGroupName.nativeElement.focus()};
h.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving bookmark group...","dismiss",{duration:0}),this.isSaving=!0,this.bookmarkGroupsApi.create({name:this.name(),description:this.description()}).then(function(b){a.isSaving=!1;a.snackBar.open('Bookmark group "'+b.name+'" saved.',"dismiss",{duration:2E3});a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:b.bookmarkGroupId});a.analytics.trackEvent("sidebarHotlists","createdBookmarkGroup");a.location.replaceUrl(a.paths.editBookmarkGroup(b.bookmarkGroupId));
a.revertChanges()}).catch(function(b){a.isSaving=!1;a.errorHandler.errorHandler(null,b)}))};h.validate=function(){if(this.name()==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};h.back=function(){K2(this.appHistory)};h.revertChanges=function(){this.bookmarkGroupUnderEdit.reset()};h.name=function(){var a,b=(a=this.bookmarkGroupUnderEdit.get("name"))==null?void 0:a.value;return b?b:""};
h.description=function(){var a,b=(a=this.bookmarkGroupUnderEdit.get("description"))==null?void 0:a.value;return b?b:""};q7.\u0275fac=function(a){return new (a||q7)};
q7.\u0275cmp=D({type:q7,selectors:[["b-create-bookmark-group"]],viewQuery:function(a,b){a&1&&hg(RZd,5);if(a&2){var c;lg(c=mg())&&(b.bookmarkGroupName=c.first)}},standalone:!1,features:[Ef],decls:27,vars:9,consts:[["bookmarkGroupName",""],[1,"kd-appbar"],[1,"kd-buttonbar","ltr"],["type","button","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"],
["for","bookmark-group-name",1,"required"],["type","text","autofocus","autofocus","id","bookmark-group-name","required","","aria-required","true","formControlName","name",3,"disabled"],["for","bookmark-group-description"],["id","bookmark-group-description","formControlName","description",3,"disabled"],[1,"advanced-settings-info"],[1,"edit-button-row"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],["type","button","mat-stroked-button","","color","primary",3,"click"]],
template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"div",2)(2,"button",3);N("click",function(){u(c);return v(b.back())});M(3,"mat-icon",4);L();K(4,"h2");Q(5,"Create a new bookmark group");L()()();K(6,"div",5)(7,"div",6)(8,"form",7);M(9,"b-error-banner",8);K(10,"div",9)(11,"label",10);Q(12,"Name");L();M(13,"input",11,0);L();K(15,"div",9)(16,"label",12);Q(17,"Description");L();K(18,"textarea",13);Q(19,"        ");L()();K(20,"p",14);Q(21," Advanced settings such as selected items and access controls may be defined once the bookmark group is created. ");
L();K(22,"div",15)(23,"button",16);N("click",function(){u(c);return v(b.save())});Q(24," Save ");L();K(25,"button",17);N("click",function(){u(c);return v(b.revertChanges())});Q(26," Revert changes ");L()()()()()}a&2&&(B(8),I("formGroup",b.bookmarkGroupUnderEdit),B(),I("error",b.error),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(2),wg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(5),I("disabled",b.isSaving))},dependencies:[Jy,kB,gB,iB,
vK,nA,nE,xj,fE,gE,yE,uE,tE,L4],encapsulation:2});var SZd=["form"],r7=function(){Z.call(this);this.butterBar=p(UN);this.paths=p(hW);this.routeParams=p(wS);this.analytics=p(eQ);this.appHistory=p(J2);this.bLocation=p(bU);this.activeSession=p(uu);this.documentationLinks=p(cS);this.componentActions=p(VV);this.component={parentComponentId:"",name:"",description:"",commentEditState:"DISABLED"};this.parentComponentInternal=null;this.sessionIsExternal=this.activeSession.isExternalSession();this.commentEditsEnabled=this.componentIsValid=this.retentionIsValid=
this.isSaving=!1;this.routeParams.parentId&&this.loadParentComponent(String(this.routeParams.parentId))};Y(r7,Z);r7.\u0275dir=Z.\u0275dir;h=r7.prototype;h.ngAfterViewInit=function(){};
h.create=function(){var a=this;this.validate()&&(Rr(this.butterBar,"Saving component...",0),this.isSaving=!0,this.component.parentComponentId=this.parentComponent.componentId,this.componentActions.create(this.component).then(function(b){Rr(a.butterBar,"Component saved, redirecting in "+a.activeSession.getCreateComponentRedirectDelay()/1E3+"s.",a.activeSession.getCreateComponentRedirectDelay());a.analytics.trackEvent("component","create");a.commentEditsEnabled?a.analytics.trackEvent("component","comment edits enabled",
"create"):a.analytics.trackEvent("component","comment edits disabled","create");setTimeout(function(){a.isSaving=!1;a.bLocation.replaceUrl(qs.editComponent.makeHref(b.componentId))},a.activeSession.getCreateComponentRedirectDelay())}).catch(function(b){a.butterBar.showWarning(Qp(b),0);a.isSaving=!1}))};h.back=function(){K2(this.appHistory)};
h.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};h.loadParentComponent=function(a){var b=this;this.componentActions.getUncached(a).then(function(c){b.parentComponent=c})};
h.setCommentEditState=function(a){this.commentEditsEnabled=a;this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};h.onComponentSelect=function(a){this.parentComponent=a;TZd(this)};h.accessCheckComplete=function(a){this.componentIsValid=a;TZd(this)};
var TZd=function(a){a.parentComponent?(a.component.commentEditState=a.parentComponent.commentEditState,a.commentEditsEnabled=a.component.commentEditState==="ENABLED"):(a.component.commentEditState="DISABLED",a.commentEditsEnabled=!1)};da.Object.defineProperties(r7.prototype,{parentComponent:{configurable:!0,enumerable:!0,get:function(){return this.parentComponentInternal},set:function(a){this.parentComponentInternal=a;TZd(this)}}});r7.\u0275fac=function(a){return new (a||r7)};
r7.\u0275cmp=D({type:r7,selectors:[["create-component-page"]],viewQuery:function(a,b){a&1&&hg(SZd,5);if(a&2){var c;lg(c=mg())&&(b.createComponentForm=c.first)}},standalone:!1,features:[Ef],decls:55,vars:32,consts:[["form","ngForm"],[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"],
[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,"ngModelChange","bFocus","ngModel","disabled","required"],["for","component-description"],["id","component-description","placeholder","Component description","name","componentDescription","aria-label","Component description",3,"ngModelChange","ngModel","disabled"],["for","parent-component",
1,"required"],["id","parent-component","ariaLabel","Parent component",3,"selectedComponentChange","accessCheckComplete","selectedComponent","placeholder","isRequired","checkAdminAccess"],[1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],["ariaLabel","Editable comments",3,"change","checked"],[1,"edit-field-help"],[1,"permission-toggle-help","edit-field-help"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["for","retention-settings",1,"required"],["id","retention-settings"],
[3,"modelChange","validChange","issueRetentionDisabled","isExternal","componentPathInfo","initialModel"],[1,"advanced-settings-info"],[1,"bv2-component-button-bar"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction","disabled"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"div",2)(2,"b-button",3);N("onAction",function(){u(c);return v(b.back())});M(3,"b-icon",4);L()()();K(4,"div",5)(5,"h2",6);Q(6,"Create component");L();K(7,"div",7)(8,"form",8,0);M(10,"b-error-banner",
9);K(11,"div",10)(12,"label",11)(13,"span",12);Q(14,"Name");L()();K(15,"input",13);Cg("ngModelChange",function(d){u(c);Bg(b.component.name,d)||(b.component.name=d);return v(d)});L()();K(16,"div",10)(17,"label",14)(18,"span",12);Q(19,"Description");L()();K(20,"textarea",15);Cg("ngModelChange",function(d){u(c);Bg(b.component.description,d)||(b.component.description=d);return v(d)});Q(21,"        ");L()();K(22,"div",10)(23,"label",16)(24,"span",12);Q(25,"Parent Component");L()();K(26,"b-team-component-picker",
17);N("selectedComponentChange",function(d){u(c);return v(b.onComponentSelect(d!=null?d:null))})("accessCheckComplete",function(d){u(c);return v(b.accessCheckComplete(d))});L()();K(27,"div",18)(28,"div",19)(29,"mat-checkbox",20);N("change",function(d){u(c);return v(b.setCommentEditState(d.checked))});L()();K(30,"div")(31,"strong",21);Q(32,"Editable Comments");L();K(33,"div",22);Q(34," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. ");
F(35,Q4b,2,1,"a",23);L()()();K(36,"div",10)(37,"label",24)(38,"span",12);Q(39,"Retention Settings");L()();K(40,"div",21)(41,"p");Q(42,"Please choose a period of time to retain the data stored in this component.");M(43,"br");K(44,"a",23);Q(45," Learn more ");L()()();K(46,"div",25)(47,"b-retention-settings-form",26);N("modelChange",function(d){u(c);return v(b.component.retentionSettings=d)})("validChange",function(d){u(c);return v(b.retentionIsValid=d)});L()()();K(48,"p",27);Q(49," Advanced settings such as custom field and access controls may be defined once the component is created. ");
L();K(50,"div",28)(51,"b-button",29);N("onAction",function(){u(c);return v(b.create())});Q(52," Save ");L();K(53,"b-button",30);N("onAction",function(){u(c);return v(b.back())});Q(54," Discard ");L()()()()()}a&2&&(B(8),wg("show-errors",b.error),B(2),I("error",b.error),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(4),I("bFocus",!0),Ag("ngModel",b.component.name),I("disabled",b.isSaving)("required",!0),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(4),Ag("ngModel",b.component.description),I("disabled",
b.isSaving),B(2),wg("bv2-edit-resource-readonly",b.isSaving),B(4),I("selectedComponent",b.parentComponent)("placeholder","Choose Component")("isRequired",!0)("checkAdminAccess",!0),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(2),I("checked",b.commentEditsEnabled),B(6),G(b.sessionIsExternal?-1:35),B(9),I("href",qu(),Ne),B(2),wg("bv2-edit-resource-readonly",b.isSaving),B(),I("issueRetentionDisabled",b.isSaving)("isExternal",mt(b.parentComponent))("componentPathInfo",b.parentComponent==null?null:
b.parentComponent.componentPathInfo)("initialModel",b.component.retentionSettings),B(4),I("disabled",b.isSaving||!b.componentIsValid),B(2),I("disabled",b.isSaving))},dependencies:[MU,L4,xW,nE,xj,fE,gE,yE,mE,kE,sT,kL,hI,G5,dW],styles:["b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}\n/*# sourceMappingURL=create_component_page.css.map */"]});var UZd=["hotlistName"],s7=function(){var a=p(rY);Z.call(this);var b=this;this.location=p(bU);this.appHistory=p(J2);this.snackBar=p(rB);this.hotlistApi=p(gP);this.analytics=p(eQ);this.errorHandler=p(pO);this.appEvents=p(UO);this.error="";this.isSaving=!1;this.hotlistUnderEdit=new jE({name:new lE("",vj),description:new lE("")});this.subscriptions.add(sY(a,function(){return!(!b.name()&&!b.description())},!1))};Y(s7,Z);s7.\u0275dir=Z.\u0275dir;h=s7.prototype;h.ngAfterViewInit=function(){this.hotlistName.nativeElement.focus()};
h.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving hotlist...","dismiss",{duration:0}),this.isSaving=!0,this.hotlistApi.createHotlist(this.name(),this.description()).then(function(b){a.isSaving=!1;a.snackBar.open('Hotlist "'+b.name+'" saved.',"dismiss",{duration:6E3});a.appEvents.hotlistChanged.next({hotlistId:b.hotlistId});a.analytics.trackEvent("hotlist","create");a.location.replaceUrl(qs.editHotlist.makeHref(b.hotlistId));a.revertChanges()}).catch(function(b){a.isSaving=
!1;a.errorHandler.errorHandler(null,b)}))};h.validate=function(){if(this.name()==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};h.back=function(){K2(this.appHistory)};h.revertChanges=function(){this.hotlistUnderEdit.reset()};h.name=function(){var a,b=(a=this.hotlistUnderEdit.get("name"))==null?void 0:a.value;return b?b:""};h.description=function(){var a,b=(a=this.hotlistUnderEdit.get("description"))==null?void 0:a.value;return b?b:""};
s7.\u0275fac=function(a){return new (a||s7)};
s7.\u0275cmp=D({type:s7,selectors:[["b-create-hotlist"]],viewQuery:function(a,b){a&1&&hg(UZd,5);if(a&2){var c;lg(c=mg())&&(b.hotlistName=c.first)}},standalone:!1,features:[Ef],decls:27,vars:9,consts:[["hotlistName",""],[1,"kd-appbar"],[1,"kd-buttonbar","ltr"],["type","button","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"],["for","hotlist-name",
1,"required"],["type","text","autofocus","autofocus","id","hotlist-name","required","","aria-required","true","formControlName","name",3,"disabled"],["for","hotlist-description"],["id","hotlist-description","formControlName","description",3,"disabled"],[1,"advanced-settings-info"],[1,"edit-button-row"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],["type","button","mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){if(a&1){var c=t();K(0,"div",
1)(1,"div",2)(2,"button",3);N("click",function(){u(c);return v(b.back())});M(3,"mat-icon",4);L();K(4,"h2");Q(5,"Create a new hotlist");L()()();K(6,"div",5)(7,"div",6)(8,"form",7);M(9,"b-error-banner",8);K(10,"div",9)(11,"label",10);Q(12,"Name");L();M(13,"input",11,0);L();K(15,"div",9)(16,"label",12);Q(17,"Description");L();K(18,"textarea",13);Q(19,"        ");L()();K(20,"p",14);Q(21," Advanced settings such as access controls may be defined once the hotlist is created. ");L();K(22,"div",15)(23,"button",
16);N("click",function(){u(c);return v(b.save())});Q(24," Save ");L();K(25,"button",17);N("click",function(){u(c);return v(b.revertChanges())});Q(26," Revert changes ");L()()()()()}a&2&&(B(8),I("formGroup",b.hotlistUnderEdit),B(),I("error",b.error),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(2),wg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(5),I("disabled",b.isSaving))},dependencies:[Jy,kB,gB,iB,vK,nA,nE,xj,fE,gE,yE,uE,tE,L4],encapsulation:2});var t7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,t7.messageId)};Y(t7,W);t7.prototype.getContent=function(){return ui(this,1,void 0,jb)};t7.prototype.setContent=function(a){return oj(this,1,a,jb)};t7.prototype.hasContent=function(){return im(this,1,jb)};t7.messageId="b.LlmGenericRequest";var VZd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,VZd.messageId)};Y(VZd,W);VZd.messageId="b.LlmGenericResponse";var u7=function(){this.executor=p(cO)};u7.prototype.suggestIssueTitle=function(a){a=(new t7).setContent(a);return this.executor.post({url:"/action/llm/suggest_title",body:a,responseConstructor:VZd}).then(function(b){var c;return(c=ui(b,1,void 0,jb))!=null?c:""})};u7.\u0275fac=function(a){return new (a||u7)};u7.\u0275prov=Dc({token:u7,factory:u7.\u0275fac,providedIn:"root"});var v7=function(){this.isGeneratingTitle=new Mj(!1);this.generatedTitle=new Mj(null);this.suggestTitleRequested=new qf};v7.\u0275fac=function(a){return new (a||v7)};v7.\u0275prov=Dc({token:v7,factory:v7.\u0275fac,providedIn:"root"});var w7=function(){Z.call(this);var a=this;this.activeSession=p(uu);this.butterBar=p(UN);this.analytics=p(eQ);this.llmSuggestTitleService=p(v7);this.llmApi=p(u7);this.suggestedTitle=new aQ;this.enableSuggestTitle=this.activeSession.getFlag("enableSuggestTitle")||!1;this.llmSuggestTitleService.suggestTitleRequested.asObservable().pipe(zf(this.destroyed$)).subscribe(function(){a.suggestIssueTitle()})};Y(w7,Z);w7.\u0275dir=Z.\u0275dir;
w7.prototype.suggestIssueTitle=function(){var a=this,b;return y(function(c){if(c.nextAddress==1){if(!a.enableSuggestTitle||a.description.value==="")return c.return();a.analytics.trackEvent("llm","generate","title");a.llmSuggestTitleService.isGeneratingTitle.next(!0);return z(c,a.llmApi.suggestIssueTitle(a.description.value),2)}b=c.yieldResult;b=b.trim();if(b===""){var d=a.llmSuggestTitleService;d.generatedTitle.next(null);d.isGeneratingTitle.next(!1);a.suggestedTitle.emit(null);Rr(a.butterBar,"Could not generate title. Try adding more to the description.",
3E3);return c.return()}d=b;var e=a.llmSuggestTitleService;e.generatedTitle.next(d);e.isGeneratingTitle.next(!1);a.suggestedTitle.emit(d);ae(c)})};w7.\u0275fac=function(a){return new (a||w7)};
w7.\u0275cmp=D({type:w7,selectors:[["llm-suggest-title-button"]],inputs:{description:"description"},outputs:{suggestedTitle:"suggestedTitle"},standalone:!1,features:[Ef],decls:3,vars:2,consts:[["mat-stroked-button","","color","primary","type","button","matTooltipPosition","above","aria-label","Generate AI-suggested title for this issue",1,"suggest-title-button","gmat-mdc-button","margin-s-left",3,"click","matTooltip","disabled"],["svgIcon","pen_spark_24px",1,"icon-s","margin-xs-right"]],template:function(a,
b){a&1&&(K(0,"button",0),N("click",function(){return b.suggestIssueTitle()}),M(1,"mat-icon",1),Q(2," Suggest title\n"),L());a&2&&I("matTooltip",b.description.value===""?"Enter a description to suggest a title":"Generate AI-suggested title for this issue")("disabled",b.description.value==="")},dependencies:[Jy,kB,gB,vK,nA],styles:[".suggest-title-button[_ngcontent-%COMP%]{height:29px;line-height:29px;padding:0 12px}.mat-icon[_ngcontent-%COMP%]{margin-top:-4px}\n/*# sourceMappingURL=llm_suggest_title_button.css.map */"]});var WZd=[[["","mainSegment",""]],[["","dropdownSegment",""]]],XZd=function(){this.mainSegment=!0};XZd.\u0275fac=function(a){return new (a||XZd)};XZd.\u0275dir=af({type:XZd,selectors:[["button","mainSegment",""]],hostVars:2,hostBindings:function(a,b){a&2&&wg("main-segment",b.mainSegment)},standalone:!1});var x7=function(){this.dropdownAriaLabel=this.dropdownTooltip="";this.disabled=!1;this.size="large";this.dialogClosed=new aQ;this.dialogOpened=new aQ};x7.prototype.ngAfterContentInit=function(){};
x7.prototype.ngOnChanges=function(a){a.dropdownTooltip&&!this.dropdownAriaLabel&&(this.dropdownAriaLabel=this.dropdownTooltip)};da.Object.defineProperties(x7.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.trigger)==null?void 0:a.isOpen)!=null?b:!1}}});x7.\u0275fac=function(a){return new (a||x7)};
x7.\u0275cmp=D({type:x7,selectors:[["split-button"]],contentQueries:function(a,b,c){a&1&&ig(c,XZd,5);if(a&2){var d;lg(d=mg())&&(b.mainSegment=d.first)}},viewQuery:function(a,b){a&1&&hg(sW,5);if(a&2){var c;lg(c=mg())&&(b.trigger=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&wg("expanded",b.expanded)},inputs:{dropdownTooltip:"dropdownTooltip",dropdownAriaLabel:"dropdownAriaLabel",disabled:"disabled",size:"size"},outputs:{dialogClosed:"dialogClosed",dialogOpened:"dialogOpened"},exportAs:["splitButton"],
standalone:!1,features:[jx],ngContentSelectors:["[mainSegment]","[dropdownSegment]"],decls:8,vars:7,consts:[["trigger","onedevPopupPanelTrigger"],["contentPanel","onedevPopupPanel"],["type","button","mat-icon-button","","onedevPopupPanelTrigger","",3,"click","onedevPopupPanelTriggerOpened","onedevPopupPanelTriggerClosed","onedevPopupPanelTriggerFor","matTooltip","disabled"],["svgIcon","arrow-dropdown"],["role","region"],[1,"dropdown-container"]],template:function(a,b){if(a&1){var c=t();bg(WZd);cg(0);
K(1,"button",2,0);N("click",function(){u(c);var d,e;if((e=(d=b.trigger)==null?void 0:d.isOpen)!=null&&e){var f;(f=b.trigger)==null||f.close()}else{var g;(g=b.trigger)==null||g.open()}return v()})("onedevPopupPanelTriggerOpened",function(){u(c);return v(b.dialogOpened.emit())})("onedevPopupPanelTriggerClosed",function(){u(c);return v(b.dialogClosed.emit())});M(3,"mat-icon",3);L();K(4,"onedev-popup-panel",4,1)(6,"div",5);cg(7,1);L()()}a&2&&(a=qg(5),B(),xg(Eg("dropdown-button ",b.size)),I("onedevPopupPanelTriggerFor",
a)("matTooltip",b.dropdownTooltip)("disabled",b.disabled),If("aria-label",b.dropdownAriaLabel))},dependencies:[Jy,kB,iB,vK,nA,rW,sW],styles:["[_nghost-%COMP%]    {border:1px solid;border-color:#dadce0;border-color:var(--hairline);border-radius:5px;display:flex;overflow:hidden}[_nghost-%COMP%]     .main-segment{border-radius:5px 0 0 5px;padding-left:8px;padding-right:8px;line-height:13px}[_nghost-%COMP%]    .expanded .dropdown-button mat-icon{transform:rotate(-180deg)}[_nghost-%COMP%]     .dropdown-button:not([disabled]) mat-icon{color:#5f6368;color:var(--icon)}[_nghost-%COMP%]     .dropdown-button{border-left:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:0;width:30px}[_nghost-%COMP%]     .dropdown-button mat-icon{transition:250ms transform}[_nghost-%COMP%]     .mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:0}/*# sourceMappingURL=split_button.css.map */"],
changeDetection:0});var YZd=new Map([["TOTALLY_INCORRECT","Totally incorrect"],["MISSING_IMPORTANT_INFO","Missing important info"],["OTHER","Other"]]),y7=function(){Z.apply(this,arguments);this.butterBar=p(UN);this.analytics=p(eQ);this.llmSuggestTitleService=p(v7);this.suggestionAccepted=new aQ;this.isGeneratingTitle$=this.llmSuggestTitleService.isGeneratingTitle.asObservable().pipe(vf({refCount:!0,bufferSize:1}));this.suggestedTitle$=this.llmSuggestTitleService.generatedTitle.asObservable().pipe(vf({refCount:!0,bufferSize:1}));
this.isVisible$=ie([this.llmSuggestTitleService.isGeneratingTitle.asObservable(),this.llmSuggestTitleService.generatedTitle.asObservable()]).pipe(zf(this.destroyed$),A(function(a){var b=m(a);a=b.next().value;b=b.next().value;return a||b}));this.suggestedTitleRejectionReasons=["TOTALLY_INCORRECT","MISSING_IMPORTANT_INFO","OTHER"];this.REJECT_REASON_TO_DISPLAY=YZd};Y(y7,Z);y7.\u0275dir=Z.\u0275dir;
var U4b=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,fe(a.llmSuggestTitleService.generatedTitle.asObservable()),2);b=c.yieldResult;if(!b)return c.return();a.analytics.trackEvent("llm","accept","title");a.suggestionAccepted.emit(b);a.llmSuggestTitleService.generatedTitle.next(null);ae(c)})};y7.prototype.close=function(){this.llmSuggestTitleService.generatedTitle.next(null)};y7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(y7)))(b||y7)}}();
y7.\u0275cmp=D({type:y7,selectors:[["llm-suggest-title-preview"]],outputs:{suggestionAccepted:"suggestionAccepted"},standalone:!1,features:[Ef],decls:2,vars:3,consts:[["splitButton",""],[1,"suggest-title","flex-kids-x","carded","margin-s-top"],[1,"flex-kids-y","flex","gap"],[1,"flex-kids-x","align-items-center","space-between"],[1,"heading-s"],[1,"flex-kids-x"],["type","button","mat-icon-button","","aria-label","Re-generate title","matTooltip","Re-generate title",1,"request-title",3,"click"],["svgIcon",
"refresh"],["type","button","mat-icon-button","","aria-label","Hide AI suggested title","matTooltip","Hide AI suggested title",1,"hide-suggest-title",3,"click"],["svgIcon","close"],[1,"type-m","margin-s-right"],[1,"flex-kids-x","gap-s"],["mat-flat-button","","color","primary","type","button",1,"small",3,"click","disabled"],["dropdownTooltip","Specify reject reason",3,"size","disabled"],["type","button","mat-button","","mainSegment","",1,"small",3,"click","disabled"],["dropdownSegment",""],["type",
"button","mat-menu-item","",1,"rejection-reason"],["type","button","mat-menu-item","",1,"rejection-reason",3,"click"]],template:function(a,b){a&1&&(F(0,V4b,27,13,"div",1),T(1,"async"));a&2&&G(U(1,1,b.isVisible$)?0:-1)},dependencies:[Jy,kB,gB,iB,vK,nA,cU,x7,XZd,dH,Tx],styles:[".suggest-title[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;padding:8px 8px 16px 16px}\n/*# sourceMappingURL=llm_suggest_title_preview.css.map */"]});var z7=function(){Z.call(this);var a=this;this.similarIssuesApi=p(mW);this.analytics=p(eQ);this.activeSession=p(uu);this.hasSearched=this.isLoading=!1;this.loadedIssueCount=0;this.componentId$=new uf(1);this.contextRaw$=new uf(1);this.tableColumns=[{type:"TITLE"},{type:"PRIORITY"},{type:"CREATED_TIME"}];this.isInternal=this.activeSession.isInternalSession();this.tableOptions={showActiveIndicator:!1,showMenu:!1,hideColumnHeaders:!0,enableIssueHovercard:!0,rowLimit:3,navigationOptions:{alwaysOpenNewTab:!0},
modes:{createdTime:"relativepastshort"}};this.searchString$=this.contextRaw$.pipe(A(function(b){return b.trim()}),ue(function(b){return b.length>=7}),jf(200));this.issues$=ie([this.componentId$,this.searchString$]).pipe(yf(function(b){var c=m(b);b=c.next().value;c=c.next().value;a.isLoading=!0;return tvd(a.similarIssuesApi,{scope:"componentId:"+b+" modified:365d status:open",scopeSortOrder:"vote_count desc",maxResults:15,keyword:c})}),gf(function(b){Xm("similarIssuesApi.lookupSimilarIssues() error: ",
b);var c,d,e=(d=b==null?void 0:(c=b.error)==null?void 0:c.status)!=null?d:b==null?void 0:b.status;a.analytics.trackEvent("similarIssues","error",e);return ce({similarIssues:[],scores:[]})}),A(function(b){return Z4b(b)}),Af(function(b){a.isLoading=!1;a.hasSearched=!0;a.loadedIssueCount=b.length}));this.issueIds$=this.issues$.pipe(A(function(b){return b.map(function(c){return c.issueId})}));this.subscriptions.add(this.issues$.pipe(A(function(b){return b.length})).subscribe(function(b){a.analytics.trackEvent("similarIssues",
"loaded","possible-dupes-"+b,b)}))};Y(z7,Z);z7.\u0275dir=Z.\u0275dir;
da.Object.defineProperties(z7.prototype,{isThinkingOnEmpty:{configurable:!0,enumerable:!0,get:function(){return this.isLoading&&!this.hasSearched}},isEmpty:{configurable:!0,enumerable:!0,get:function(){return!this.isLoading&&this.loadedIssueCount===0}},componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentId$.next(a)},get:function(){return Br(this.componentId$)}},context:{configurable:!0,enumerable:!0,set:function(a){this.contextRaw$.next(a!=null?a:"")}}});
z7.\u0275fac=function(a){return new (a||z7)};
z7.\u0275cmp=D({type:z7,selectors:[["similar-issues"]],hostVars:4,hostBindings:function(a,b){a&2&&wg("thinking-on-empty",b.isThinkingOnEmpty)("is-empty-state",b.isEmpty)},inputs:{componentId:"componentId",context:"context"},standalone:!1,features:[Ef],decls:8,vars:5,consts:[[1,"flex-kids-x","align-items-center","gap-s","margin-s-y"],["svgIcon","spark_24px","color","primary"],[1,"heading-xs"],["mat-icon-button","","href","http://go/similar-issues-buganizer","target","_blank","matTooltip","Learn more",
"aria-label","Learn more",1,"xs","muted"],[3,"issueIds","tableColumns","options"],["svgIcon","help-outline"]],template:function(a,b){a&1&&(K(0,"div",0),M(1,"mat-icon",1),K(2,"h3",2),Q(3,"Possible duplicates"),L(),F(4,W4b,2,0,"a",3),F(5,X4b,1,0,"b-spinner"),L(),F(6,Y4b,1,3,"b-issues-table",4),T(7,"async"));if(a&2){var c;B(4);G(b.isInternal?4:-1);B();G(b.isLoading&&!b.isThinkingOnEmpty?5:-1);B();G((c=U(7,3,b.issueIds$))?6:-1,c)}},dependencies:[Jy,cU,XZ,vK,nA,kB,iB,Tx],styles:["[_nghost-%COMP%]{display:block}.dark-mode   [_nghost-%COMP%]     .mat-mdc-table, [_nghost-%COMP%]     .mat-mdc-table{background:transparent}.thinking-on-empty[_nghost-%COMP%]{-webkit-animation:_ngcontent-%COMP%_ai-shimmer 2.1s linear infinite;animation:_ngcontent-%COMP%_ai-shimmer 2.1s linear infinite;background:-webkit-linear-gradient(315deg,var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted),var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted)) 50%/800% 800%;background:linear-gradient(135deg,var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted),var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted)) 50%/800% 800%}@-webkit-keyframes _ngcontent-%COMP%_ai-shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}@keyframes _ngcontent-%COMP%_ai-shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}.is-empty-state[_nghost-%COMP%]{display:none}\n/*# sourceMappingURL=similar_issues.css.map */"]});var ZZd=["popOver"],a5b=function(a){return{$implicit:a}},i5b=function(a){return{editingValue:a}},A7=function(){this.injector=p(ye);this.val="";this.allowMultipleLines=!0;this.disabled=this.centerEditIcon=this.newlineWithEnterKey=!1;this.overlayMinWidth=null;this.hasBackdrop=!0;this.openPopOverOnInit=this.fitPopoverToViewport=!1;this.required=Og.apply(null,[!1].concat(q([])));this.valueChange=new Ti;this.editorOpen=new Ti;this.editing=this.headerFocused=!1;this.editingValue=new lE("",{nonNullable:!0});
this.onChange=function(){};this.onTouched=function(){}};Y(A7,e_);h=A7.prototype;h.ngOnInit=function(){var a=this.injector.get(dE,null),b;(a==null?0:(b=a.control)==null?0:b.validator)&&this.editingValue._assignValidators(a.control.validator);this.required()&&(a=this.editingValue,b=Ava(a._rawValidators),a._assignValidators(b))};h.ngAfterViewInit=function(){this.openPopOverOnInit&&this.startEditing()};h.valueChanged=function(){return this.editingValue.value!==this.value};
h.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue.setValue(this.value),this.popOver.open(),this.editorOpen.emit({isOpen:!0}))};h.stopEditing=function(a){this.editing=!1;(this.required()?this.editingValue.valid:1)?(a===0&&(this.onChange(this.editingValue.value),this.value=this.editingValue.value,this.valueChange.emit(this.value)),this.editorOpen.emit({isOpen:!1,closeAction:a})):this.editorOpen.emit({isOpen:!1,closeAction:1})};
h.writeValue=function(a){a!=null&&(this.val=a,this.editing||this.editingValue.setValue(a))};h.isActive=function(){return this.headerFocused||this.editing};h.registerOnChange=function(a){this.onChange=a};h.registerOnTouched=function(a){this.onTouched=a};h.setDisabledState=function(a){this.disabled=a};da.Object.defineProperties(A7.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});
A7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(A7)))(b||A7)}}();
A7.\u0275cmp=D({type:A7,selectors:[["onedev-text-field"]],viewQuery:function(a,b){a&1&&hg(ZZd,7);if(a&2){var c;lg(c=mg())&&(b.popOver=c.first)}},inputs:{value:"value",allowMultipleLines:"allowMultipleLines",multilineMaxLines:"multilineMaxLines",newlineWithEnterKey:"newlineWithEnterKey",centerEditIcon:"centerEditIcon",disabled:"disabled",labelledById:"labelledById",valueTemplate:"valueTemplate",overlayMinWidth:"overlayMinWidth",editorTemplate:"editorTemplate",hasBackdrop:"hasBackdrop",fitPopoverToViewport:"fitPopoverToViewport",
openPopOverOnInit:"openPopOverOnInit",required:[1,"required"]},outputs:{valueChange:"valueChange",editorOpen:"editorOpen"},standalone:!1,features:[Gg([{provide:aE,useExisting:Vc(function(){return A7}),multi:!0},{provide:e_,useExisting:Vc(function(){return A7}),multi:!0}]),Ef],decls:11,vars:11,consts:[["anchor",""],["standardValueDisplay",""],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],["singleLineTemplate",""],["type","button",3,"click","focus","blur"],[4,"ngIf","ngIfElse"],["class",
"edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"centered",4,"ngIf"],[3,"closedWithAction","anchor","minWidth","editorTemplate","newlineWithEnterKey","hasBackdrop","fitToViewport","saveDisabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"],
[4,"ngIf"],[1,"textarea-wrapper"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1",3,"formControl","required","cdkAutosizeMaxRows",4,"ngIf","ngIfElse"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1",3,"formControl","required","cdkAutosizeMaxRows"],["spellcheck","false","autocomplete","off",3,"formControl"]],template:function(a,b){if(a&1){var c=t();K(0,"button",5,0);N("click",function(){u(c);return v(b.startEditing())})("focus",
function(){u(c);return v(b.headerFocused=!0)})("blur",function(){u(c);return v(b.headerFocused=!1)});K(2,"span");E(3,b5b,2,4,"ng-container",6)(4,c5b,1,1,"ng-template",null,1,Mg);L();E(6,d5b,2,2,"svg",7);L();K(7,"onedev-pop-over-edit-panel",8,2);N("closedWithAction",function(f){u(c);return v(b.stopEditing(f))});L();E(9,k5b,2,2,"ng-template",null,3,Mg)}if(a&2){a=qg(1);var d=qg(5),e=qg(10);If("aria-labelledby",b.labelledById);B(3);I("ngIf",b.valueTemplate)("ngIfElse",d);B(3);I("ngIf",!b.disabled);B();
I("anchor",a)("minWidth",b.overlayMinWidth)("editorTemplate",e)("newlineWithEnterKey",b.newlineWithEnterKey)("hasBackdrop",b.hasBackdrop)("fitToViewport",b.fitPopoverToViewport)("saveDisabled",b.editingValue.invalid)}},dependencies:[Nx,Sx,xj,fE,yE,YD,f_,sE],styles:["button[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;padding:6px 8px;font-weight:400;letter-spacing:.185714px;line-height:normal;background:none;border:1px solid transparent;color:var(--text-default,#202124);padding:4px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px;-webkit-box-align:start;-webkit-align-items:start;-moz-box-align:start;-ms-flex-align:start;align-items:start;text-align:left;white-space:pre-line}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.edit-icon[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:auto;width:16px;height:16px;color:var(--icon,#5f6368);fill:currentColor;margin-top:1px}.edit-icon.centered[_ngcontent-%COMP%]{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;margin-top:0}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;padding:6px 8px;font-weight:400;letter-spacing:.185714px;line-height:normal;padding:4px;border-radius:5px;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;color:var(--text-default,#202124);border:1px solid var(--field-hover-border,#d2e3fc);background-color:var(--surface-default,#fff);line-height:18px;-moz-box-sizing:content-box;box-sizing:content-box;width:calc(100% - 10px)}input[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--primary-default,#1a73e8)}"]});var $Zd=["descriptionConfirmDialog"],Z5b=function(){return[]},B6b=function(){return{standalone:!1}},a_d=new dd("titleBannedWordsChecker"),b_d=new dd("descriptionBannedWordsChecker"),c_d={noListedUsers:{title:"Issue will have no listed users",content:"No one will be able to access this issue due to the Issue Access Limit that you have set, and the lack of any listed user on the issue. We strongly recommend maintaining at least one user with access. Are you sure you still want to proceed?"},loseAccess:{title:"You will lose access",
content:"You will not be able to access this issue because you are not listed on the issue and have set a restrictive Issue Access Level. Are you sure you want to proceed?"}},B7=function(){Z.call(this);var a=this;this.routeParams=p(wS);this.hotkeys=p(nU);this.checkBeforeExit=p(rY);this.constants=p(gS);this.ngZone=p(Rg);this.$log=p(nO);this.reloadService=p(s2);this.paths=p(hW);this.redirectUrl=p(W5);this.userAccess=p(DP);this.accessPolicy=p(KO);this.bLocation=p(bU);this.appHistory=p(J2);this.issueTemplate=
p(pWd);this.issueTypeDialog=p(eS);this.componentActions=p(VV);this.activeSession=p(uu);this.draftStore=p(bS);this.analytics=p(eQ);this.issueApi=p(MP);this.hotlistApi=p(gP);this.butterBar=p(UN);this.errorHandler=p(pO);this.matDialogService=p(UA);this.appEvents=p(UO);this.userPreferencesManager=p(hR);this.cdr=p(bQ,{self:!0});this.issueRelationshipsFridge=p(mQ);this.issueFullFridge=p(gQ);this.componentFridge=p(RO);this.clearcut=p(YP);this.jspbPrincipalTypes=p(DQ);this.trackerFridge=p(VQ);this.titleBannedWordsChecker=
p(a_d);this.descriptionBannedWordsChecker=p(b_d);this.confirmIssueAccessLimitSettingsService=p(U3);this.componentTemplateApi=p(TO);this.dismissalService=p(iW);this.hostElement=p(Hd);this.currentUserBookmarksFridge=p(qP);this.staffingDialogService=p(S3);this.ISSUE_ID_LIST_PATTERN=/^[\s\d,]*$/;this.ISSUE_ID_LIST_DELIMITER=/[\s,]+/;this.COLLABORATOR_GROUPS_TOOLTIP="Collaborator groups are trusted groups that are configured by tracker admins only. Select and add these groups if they should be given collaborator access to this issue.";
this.recentIssuesInComponent=zr;this.userEmail=this.activeSession.getUserEmail();this.sessionIsExternal=this.activeSession.isExternalSession();this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.parseStringArray=lu;this.joinStringArray=ku;this.hotlistMap={};this.hotlists=[];this.templateTitle=this.templateComment="";this.appliedTemplate=null;this.urlTemplate=new hWd(this.routeParams,this.$log);this.isLoadingComponent=!1;this.descriptionBoxId="bv2-description";this.availablePredefinedTemplates=
[];this.selectedTemplateInternal=this.availableExistingIssueTemplate=null;this.autocompleteConfigService=p(EW);this.preferredTemplateId=null;this.everClickedSimilarIssues=this.everShowedIssueHovercard=this.isNavigatingAway=this.isSaving=this.submitRequested=!1;this.selectedHotlists=[];this.componentHasExpandedAccessEnabled=this.canViewIssuesInComponent=this.canEditIssuesInComponent=this.createAclLoading=this.canCreateNewIssuesInComponent=this.newIssueStarted=!1;this.customFieldMap={};this.fieldConfigsV2=
[];this.customFieldAllowedValuesMap={};this.issue=nm(F6b);this.verifierText=this.reporterText=this.assigneeText=null;this.collaboratorsText=this.ccsText="";this.collaboratorGroupsText=[];this.audience="EXTERNAL";this.selectedComponent=null;this.selectedAccessLimitLevel="LIMIT_NONE";this.selectedComponentProcessedPromise=Promise.resolve(void 0);this.useCodefont=!1;this.hasAdvancedFieldsInUrlTemplate=jWd(this.urlTemplate)||!!this.parentIssueIds||!!this.childrenIssueIds;this.selectedHotlistIds=[[]];
this.isFormatInRoute=!1;this.isCollaboratorsValid=this.isChildIssueIdsValid=this.isParentIssueIdsValid=this.isBlockingIssueIdValid=this.isBlockedByIssueIdValid=!0;this.invalidCollaboratorsInput=[];this.startTime=new Date;this.recaptchaResponse="";this.toIssuePriority=zQa;this.toIssueSeverity=BQa;this.FieldType=pV;this.initialized=!1;this.trackerComponent$=ne(function(){return ce(a.activeSession.getTracker())}).pipe(yf(function(c){return c?a.componentFridge.watch(c.componentId).pipe(xf(void 0)):ce(void 0)}));
this.trackerId$=new Mj(void 0);this.tracker$=this.trackerId$.pipe(yf(function(c){return c?a.trackerFridge.watch(c):ce(void 0)}));this.titleAfterBlur$=new qf;this.similarIssuesSearchString$=this.titleAfterBlur$.pipe(mf(100));this.trackerCollaboratorGroups=[];this.enableSuggestTitle=this.activeSession.getFlag("enableSuggestTitle")&&this.activeSession.isInternalSession();this.onAnyClick=function(c){UYa(c).match("SIMILAR-ISSUES")&&(a.everClickedSimilarIssues=!0,a.analytics.trackEvent("similarIssues",
"click"))};this.getSingleEditFieldType=fbb;this.getListFieldType=Ncb;this.didConfirmNavigateAway=function(){a.everShowedIssueHovercard||a.everClickedSimilarIssues?a.analytics.trackEvent("createIssue","abandon-happy"):a.analytics.trackEvent("createIssue","abandon-normal")};this.fetchUserHotlists();this.checkBeforeExit.didConfirm=this.didConfirmNavigateAway;this.subscriptions.add(this.tracker$.subscribe(function(c){a.updateCollaboratorGroups(c)}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){a.fetchUserHotlists()}));
this.subscriptions.add(this.appEvents.didShowIssueHovercard.subscribe(function(){a.everShowedIssueHovercard=!0;a.analytics.trackEvent("similarIssues","hover")}));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(function(){a.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(){a.fetchUserHotlists()}));this.frontendIsInternalOrPartner=this.activeSession.isInternalSession()||WN(this.activeSession);this.priorityChoices=this.constants.priorities.map(function(c){return{value:c,
displayText:c}});this.severityChoices=this.constants.severities.map(function(c){return{value:c,displayText:c}});this.issueTypeChoices=this.constants.editIssueTypeChoices;this.piiWarningMessage=this.activeSession.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.componentAutocomplete=this.routeParams.componentAutocomplete;this.componentRequestedInUrl=this.routeParams.component;this.templateIssueRequestedInUrl=this.routeParams.template_issue;if(this.routeParams.template){var b=Number(this.routeParams.template);b&&(this.preferredTemplateId=b)}if(b=this.routeParams.parentIssueId)this.parentIssueIds=Array.isArray(b)?b:[b];if(b=this.routeParams.childrenIssueIds)this.childrenIssueIds=Array.isArray(b)?b:[b];if(b=this.routeParams.afterIssueId)this.afterIssueId=
Array.isArray(b)?b[0]:b;D6b(this.issue,this);this.routeParams.description?this.comment=new uS(this.routeParams.description,!0):(b=this.draftStore.$window.sessionStorage.getItem(Lr("0"))||"",this.comment=new uS(b));this.comment.formattingMode=d_d(this);b=e_d(this.routeParams);this.isFormatInRoute=b!=null;b&&(this.comment.formattingMode=b);this.subscriptions.add(this.userPreferencesManager.preferences$.subscribe(function(c){var d;a.useCodefont=(d=c.useCodefont)!=null?d:a.useCodefont}));this.subscriptions.add(oU(this.hotkeys,
{title:"Create Issue Page",hotkeys:[{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var c;(c=a.hotlistPicker)==null||c.open()}},{keys:["u"],displayAs:"u",description:"Back to previous page",onPress:function(){a.back()}}]}));this.componentRequestedInUrl?(this.newIssueStarted=!0,f_d(this,this.componentRequestedInUrl)):this.componentAutocomplete?g_d(this,this.componentAutocomplete):(oWd(this.urlTemplate,this.issue),this.updateSelectedHotlists());this.templateIssueRequestedInUrl&&
(this.newIssueStarted=!0,h_d(this));this.originalIssueCopy=nm(this.issue);this.routeParams.description&&(this.originalIssueCopy.comment=this.comment.value,this.issue.comment=this.comment.value);this.isFormatInRoute&&(this.issue.formattingMode=this.comment.formattingMode,this.originalIssueCopy.formattingMode=this.issue.formattingMode);this.createRestrictedResourcesComponentIds=this.activeSession.getCreateRestrictedSubresourcesComponentIds();this.subscriptions.add(sY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},
!1))};Y(B7,Z);B7.\u0275dir=Z.\u0275dir;B7.prototype.handleAutocompleteSelection=function(a,b){b==="assignee"?this.assigneeText=a:b==="verifier"?this.verifierText=a:this.reporterText=a;C7(this)};B7.prototype.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};
var i_d=function(a){if(!a.templateTitle||!a.templateComment)return!1;var b=x7a(a.comment.value,a.templateComment);return x7a(a.issue.title,a.templateTitle)&&b},x6b=function(a){return a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent||!a.isCaptchaValid()||!1};
B7.prototype.ngOnInit=function(){var a=this;this.initialized=!0;this.hostElement.nativeElement.addEventListener("click",this.onAnyClick,!0);this.subscriptions.add(this.trackerComponent$.subscribe(function(b){b&&(a.selectedComponent||a.componentRequestedInUrl||a.templateIssueRequestedInUrl||a.preferredTemplateId||j_d(a,b))}))};B7.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.onAnyClick,!0)};
var C7=function(a){a.initialized&&a.ngZone.run(function(){a.cdr.detectChanges()})};B7.prototype.back=function(){K2(this.appHistory)};B7.prototype.onAccessLimitLevelSelected=function(a){this.selectedAccessLimitLevel=a};
var j_d=function(a,b){a.selectedComponent=b;a.selectedComponent?(a.issue=Object.assign({},a.issue,{componentId:a.selectedComponent.componentId}),a.originalIssueCopy.componentId=a.selectedComponent.componentId,k_d(a),a.audience=mt(a.selectedComponent)?"EXTERNAL":"INTERNAL",a.trackerId$.next(a.selectedComponent.trackerId),a.createRestrictedResourcesComponentIds.includes(a.selectedComponent.componentId)?a.judgementForNewContent={severity:"RESTRICTED",judgementReason:"None Specified"}:a.judgementForNewContent=
void 0):(pta(a.issue,"componentId"),a.audience="EXTERNAL");a.submitRequested=!1;l_d(a);a.selectedComponentProcessedPromise=Promise.all([m_d(a),n_d(a)]).then(function(){});return a.selectedComponentProcessedPromise};B7.prototype.isLiteralModeSupported=function(){return!this.selectedTemplate};
var o_d=function(a){a.assigneeText=a.assigneeText?a.assigneeText:null;a.verifierText=a.verifierText?a.verifierText:null;a.reporterText=a.reporterText?a.reporterText:null},p5b=function(a){return nrb(a.selectedComponent)?"External Google partners may be able to see this issue.":nt(a.selectedComponent)?"Public users may be able to see this issue.":""};
B7.prototype.getCollaboratorGroupsString=function(){return this.collaboratorGroupsText.length===0?"":this.collaboratorGroupsText.length>1?this.collaboratorGroupsText.length+" groups selected":this.collaboratorGroupsText[0]};B7.prototype.updateCollaboratorGroups=function(a){a&&a.collaboratorGroups&&(this.trackerCollaboratorGroups=um(a.collaboratorGroups),this.separateCollaboratorGroups())};
B7.prototype.separateCollaboratorGroups=function(){for(var a=[],b=new Set(this.trackerCollaboratorGroups),c=m(lu(this.collaboratorsText)),d=c.next();!d.done;d=c.next())d=d.value,b.has(d)?this.collaboratorGroupsText.push(d):a.push(d);this.collaboratorsText=ku(a);if(this.collaboratorGroupsText.length>0&&!nt(this.selectedComponent)){var e;(e=this.advancedFieldsZippy)==null||e.open()}};
var h_d=function(a){var b=Number(a.templateIssueRequestedInUrl);Number.isNaN(b)?a.butterBar.showWarning("Invalid template_issue specified"):(a.availableExistingIssueTemplate=new p_d(b,"issue","Issue "+b,!1,"",!1),a.selectedTemplate=a.availableExistingIssueTemplate)},m_d=function(a){a.availablePredefinedTemplates=[];a.selectedTemplate&&a.selectedTemplate.type==="predefined"&&!q_d(a)&&(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;ya(Nt(f))&&(f=e.default?"(default template)":"(unnamed template)");return new p_d(e.templateId,"predefined",f,e.default,e.componentId,e.inheritable)});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=m(a.availablePredefinedTemplates);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.isDefault){a.selectedTemplate=
d;break}}a.availablePredefinedTemplates.length>0&&!a.selectedTemplate&&(a.selectedTemplate=a.availablePredefinedTemplates[0]);C7(a)}).catch(function(){a.butterBar.showWarning("Unable to load templates for this component")}):Promise.resolve(void 0)},q_d=function(a){var b,c;return a.selectedTemplate&&((b=a.selectedComponent)==null?0:(c=b.componentPathInfo)==null?0:c.componentPathId)?a.selectedTemplate.inheritable&&a.selectedComponent.componentPathInfo.componentPathId.find(function(d){return d===a.selectedTemplate.componentId})!==
void 0:!1},n_d=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=EP(a.userAccess,"appender","components/"+b).then(function(f){a.canCreateNewIssuesInComponent=f;C7(a)}),e=EP(a.userAccess,
"writer",c).then(function(f){a.canEditIssuesInComponent=f;C7(a)});c=EP(a.userAccess,"reader",c).then(function(f){a.canViewIssuesInComponent=f;C7(a)});b=a.accessPolicy.checkComponentImplicitAccessEnabled(b).then(function(f){a.componentHasExpandedAccessEnabled=f;C7(a)});return Promise.all([d,e,c,b]).then(function(){r_d(a);C7(a)}).catch(function(f){a.$log.warn(f)}).finally(function(){a.createAclLoading=!1})},s_d=function(a,b){var c;nt(a.selectedComponent)&&(c=a.selectedComponent)!=null&&c.trackerId&&
!rs(a.activeSession)&&a.canEditIssuesInComponent?(b=b.issueAccessLimitLevel||"LIMIT_NONE",b==="LIMIT_VIEW"||b==="LIMIT_VIEW_TRUSTED"?a.selectedAccessLimitLevel=b:(a.selectedAccessLimitLevel="LIMIT_VIEW_TRUSTED",Rr(a.butterBar,"Because this issue will be on a public tracker, the following Issue Access Limit will be applied: Limited visibility + Google."+(a.canEditIssuesInComponent?" You may modify this access level before creating the issue.":"")))):a.selectedAccessLimitLevel=b.issueAccessLimitLevel||
"LIMIT_NONE"},v_d=function(a){a.selectedTemplate&&(a.selectedTemplate.type==="predefined"&&a.selectedComponent?a.componentTemplateApi.get(a.selectedTemplate.componentId,a.selectedTemplate.id).then(t_d(a,a.selectedComponent)).then(function(b){u_d(a,b)}).then(function(){C7(a)}).catch(function(b){a.butterBar.showWarning(b.message)}):a.selectedTemplate.type==="issue"&&(rWd(a.issueTemplate,String(a.selectedTemplate.id)).then(function(b){var c;if(rs(a.activeSession)&&((c=a.activeSession.getTracker())==
null?void 0:c.trackerId)!==b.trackerId)throw Error("sg");c=Promise.resolve();!a.selectedComponent&&b.snapshot.componentId&&(c=f_d(a,b.snapshot.componentId));return c.then(function(){u_d(a,b)})}).catch(function(b){a.butterBar.showWarning(b.message)}),fe(a.issueFullFridge.watch(String(a.selectedTemplate.id))).then(function(b){var c;(c=a.parentIssueIds)!=null&&c.length||(a.parentIssueIds=b==null?void 0:b.parentIssueIds)})),a.selectedTemplate.id!==a.preferredTemplateId&&a.analytics.trackEvent("createIssue",
"changeTemplate"),l_d(a))},u_d=function(a,b){b=Object.assign(nm(F6b),b.snapshot);a.selectedComponent&&(b.componentId=a.selectedComponent.componentId);var c=nm(b);o_d(a);E6b(a,a.issue);var d=nm(a.issue);if(a.appliedTemplate)for(var e=m(Object.keys(a.appliedTemplate)),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.appliedTemplate[f];if(Array.isArray(g)&&Array.isArray(d[f])){g=m(g);for(var k=g.next();!k.done;k=g.next())KQa(d[f],k.value)}else mm(g,d[f])&&delete d[f]}a.appliedTemplate=c;G6b(b,d);d=c.comment||
"";a.comment.value!==a.templateComment&&(ind(a.comment)||d===""||a.comment.value===d||(a.templateComment=d,w_d(a,a.comment.value)),b.comment=a.comment.value,b.formattingMode=c.formattingMode);a.templateComment=d;var l;a.templateCommentFormattingMode=(l=c.formattingMode)!=null?l:void 0;a.templateTitle=c.title||"";b.reporterUser=xm(a.userEmail);s_d(a,b);a.issue=b;D6b(a.issue,a);r_d(a);o_d(a);E6b(a,a.issue);a.comment.value=a.issue.comment||"";a.issue.comment&&a.issue.formattingMode&&(a.comment.formattingMode=
a.issue.formattingMode);oWd(a.urlTemplate,a.issue,a.customFieldMap);D6b(a.issue,a);a.originalIssueCopy=nm(a.issue);a.loadHotlists(a.issue.hotlistId).then(function(){a.updateSelectedHotlists();a.originalIssueCopy.hotlistId=nm(a.issue.hotlistId);C7(a)});x_d(a);a.collaboratorGroupsText=[];a.separateCollaboratorGroups();y_d(a)};
B7.prototype.isValid=function(){return!(r5b(this).length!==0||s5b(this).length!==0)&&!!(this.isBlockedByIssueIdValid&&this.isBlockingIssueIdValid&&this.isParentIssueIdsValid&&this.isCollaboratorsValid)&&!y5b(this.comment)&&!0};
var r5b=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 c==="componentId"?"component":c})},s5b=function(a){return(a.issue.customField||[]).filter(function(b){return a.isCustomFieldRequired(b)&&Uq(b)}).map(function(b){return'custom field "'+a.getCustomFieldName(b)+'"'})},z_d=function(a){var b=lu(a.collaboratorsText);return b.length!==0&&a.canEditIssuesInComponent?
Zid(a.jspbPrincipalTypes,b,!1).then(function(c){a.invalidCollaboratorsInput=Object.entries(c).filter(function(d){d=m(d);d.next();d=d.next().value;return(d==null?void 0:d.principalType)!=="USER"}).map(function(d){return m(d).next().value});return a.invalidCollaboratorsInput.length===0}).catch(function(c){a.butterBar.showWarning(c.message);return!1}):Promise.resolve(!0)},d6b=function(a,b){return b.split(a.ISSUE_ID_LIST_DELIMITER).map(function(c){return c.trim()}).map(function(c){return c.startsWith("b/")?
c.slice(2):c}).filter(Boolean)},x_d=function(a){if(ita(a.customFieldMap,function(c){return c.required||!1})||a.hasAdvancedFieldsInUrlTemplate){var b;(b=a.advancedFieldsZippy)==null||b.open()}};h=B7.prototype;h.getCustomFieldType=function(a){var b,c;return(c=(b=this.customFieldMap[a.customFieldId])==null?void 0:b.type)!=null?c:""};h.getCustomFieldName=function(a){return(a=this.customFieldMap[a.customFieldId])?a.name:""};
h.getCustomFieldAllowedValues=function(a){return(a=this.customFieldMap[a.customFieldId])&&a.allowedValue?a.allowedValue:null};h.getCustomFieldValue=function(a){return Tq(a)};h.getDateValue=function(a){return a};
h.setCustomFieldValue=function(a,b){var c=this.getCustomFieldType(a),d=this.issue.customField.map(function(e){if(e.customFieldId===a.customFieldId)switch(c){case "TEXT":e.textValue=b;break;case "DATE":e.dateValue=b;break;case "ENUM":e.enumValue=b;break;case "NUMERIC":e.numericValue=b;break;case "REPEATED_TEXT":e.repeatedTextValue={values:b};break;case "REPEATED_DATE":e.repeatedDateValue={values:b};break;case "REPEATED_ENUM":e.repeatedEnumValue={values:b};break;case "REPEATED_NUMERIC":e.repeatedNumericValue=
{values:b}}return e});this.analytics.trackEvent("createIssue","changeCustomField",c);this.issue=Object.assign({},this.issue,{customField:d})};h.isCustomFieldRequired=function(a){return this.customFieldMap[a.customFieldId]?this.canEditIssuesInComponent&&!!this.customFieldMap[a.customFieldId].required:!1};h.getListFieldValues=function(a){var b,c;return(c=(b=Tq(a))==null?void 0:b.values)!=null?c:null};
h.saveCommentDraft=function(){this.descriptionBannedWordsChecker.reset();var a=this.comment.value;a===this.templateComment&&(a="");this.draftStore.$window.sessionStorage.setItem(Lr("0"),a);this.issue=Object.assign({},this.issue,{comment:a})};h.discard=function(){this.draftStore.$window.sessionStorage.removeItem(Lr("0"));COd(this.reloadService)};
h.handleHotlistPickerSave=function(a){var b=[];a=m(Object.entries(a.newSelectionMap));for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;(d=d.next().value)&&b.push(Number(c))}this.issue=Object.assign({},this.issue,{hotlistId:b});this.updateSelectedHotlists();this.analytics.trackEvent("createIssue","changeHotlists")};h.removeHotlist=function(a){var b;La((b=this.issue.hotlistId)!=null?b:null,a);this.updateSelectedHotlists()};
h.setTitle=function(a){this.titleBannedWordsChecker.reset();this.issue=Object.assign({},this.issue,{title:a})};var H5b=function(a){var b,c,d=(c=(b=a.issue.title)==null?void 0:b.trim())!=null?c:"";a.titleAfterBlur$.next(d)};B7.prototype.setPriority=function(a){this.issue=Object.assign({},this.issue,{priority:zQa(a)});var b;this.analytics.trackEvent("createIssue","changePriority",(b=this.issue.priority)!=null?b:void 0)};
B7.prototype.editStaffing=function(){var a=this,b,c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,a.staffingDialogService.show((c=(b=a.issue.staffing)==null?void 0:b.plannedAllocations)!=null?c:[],void 0,a.canEditIssuesInComponent),2);d=f.yieldResult;if(!d)return f.return();e={plannedAllocations:d};a.issue=Object.assign({},a.issue,{staffing:e});ae(f)})};
B7.prototype.setIssueType=function(a){this.issue=Object.assign({},this.issue,{type:AQa(a)});var b;this.analytics.trackEvent("createIssue","changeType",(b=this.issue.type)!=null?b:void 0);y_d(this)};B7.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)});Dba(this.selectedHotlists,function(b,c){return wa(b.name,c.name)})};
var A_d=function(a,b){var c,d,e,f,g,k,l,r,w,x,C;return y(function(H){switch(H.nextAddress){case 1:c=String(b.issueId);d=a.parentIssueIds;if(!d){H.jumpTo(2);break}e=[];return d.length===1?z(H,a.issueRelationshipsFridge.assignParentToIssues(d[0],[{issueId:c,afterIssueId:a.afterIssueId}]),6):z(H,Lhd(a.issueRelationshipsFridge,c,d),5);case 5:g=H.yieldResult;e=g.notAdded;f=g.errors;H.jumpTo(4);break;case 6:k=H.yieldResult,e=k.notAdded,f=k.errors;case 4:e.length&&a.butterBar.showWarning("Unable to add "+
e+" as parent(s). "+f);case 2:l=a.childrenIssueIds;if((r=l)==null||!r.length){H.jumpTo(7);break}return z(H,a.issueRelationshipsFridge.assignParentToIssues(c,l.map(function(J){return{issueId:J}})),8);case 8:w=H.yieldResult,x=w.notAdded,C=w.errors,x.length&&a.butterBar.showWarning("Unable to add "+x+" as children. "+C);case 7:return H.return(b)}})},w6b=function(a,b,c){var d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,na,ua,ia,Ga,ha,sa;return y(function(xa){switch(xa.nextAddress){case 1:return a.sessionIsExternal&&
i_d(a)?(B_d(a),xa.return()):z(xa,z_d(a),2);case 2:a.isCollaboratorsValid=xa.yieldResult;d=a.issue;a.submitRequested=!0;if(!a.isValid()){if(e=document.querySelector(".bv2-view"))e.scrollTop=0;return xa.return()}d.issueAccessLimitLevel=a.selectedAccessLimitLevel;d.issueAccessLimitLevel&&d.issueAccessLimitLevel!=="LIMIT_NONE"&&a.analytics.trackEvent("issueAccessLimits","create","create_issue:"+d.issueAccessLimitLevel);d.comment=a.comment.value;d.formattingMode=a.comment.formattingMode;f={snapshot:d,
attachments:a.comment.getAttachments()};a.enableRecaptcha&&(f.recaptchaToken=a.recaptchaResponse);a.selectedTemplate&&a.selectedTemplate.type==="predefined"&&(f.templateId=a.selectedTemplate.id);a.judgementForNewContent&&a.judgementForNewContent.severity!=="NONE_DETECTED"&&(f.contentJudgement=a.judgementForNewContent);a.canEditIssuesInComponent||(g={title:f.snapshot.title,componentId:f.snapshot.componentId,comment:f.snapshot.comment,formattingMode:f.snapshot.formattingMode,cc:a.canViewIssuesInComponent||
a.componentHasExpandedAccessEnabled?[a.userEmail]:[]},f.snapshot=g);f.snapshot=aj(f.snapshot,function(Qa){return typeof Qa!=="string"||!ya(Qa)});f.snapshot.customField&&(f.snapshot.customField=f.snapshot.customField.filter(function(Qa){return!Uq(Qa)}));E6b(a,f.snapshot);if(a.trackerId$.value&&f.snapshot.type==="VULNERABILITY"&&(k=n7a(a.activeSession.getEnvironmentType(),a.trackerId$.value),k!==void 0)){f.snapshot.collaboratorsUsers||(f.snapshot.collaboratorsUsers=[]);l=m(k);for(r=l.next();!r.done;r=
l.next())w=r.value,f.snapshot.collaboratorsUsers.push(w);f.snapshot.issueAccessLimitLevel="LIMIT_VIEW"}a.collaboratorGroupsText.length>0&&(f.snapshot.collaboratorsUsers=dRa(a.collaboratorGroupsText).concat(f.snapshot.collaboratorsUsers||[]));f.snapshot.assigneeUser&&(f.snapshot.status="ASSIGNED");x=function(){a.isSaving=!0;a.newIssueStarted=!1;Rr(a.butterBar,"Creating...",0);a.issueApi.createIssue(f).then(function(Qa){return A_d(a,Qa)}).then(function(Qa){a.draftStore.$window.sessionStorage.removeItem(Lr("0"));
a.originalIssueCopy=nm(a.issue);a.analytics.trackEvent("createIssue","create",a.comment.formattingMode==="MARKDOWN"?"markdown":"non markdown");C_d(a);a.collaboratorGroupsText.length>0&&a.analytics.trackEvent("quickAddCollaborators","create","create_issue:"+Qa.issueId);var bb,ub;((bb=a.selectedTemplate)==null?0:bb.inheritable)&&a.selectedTemplate.componentId!==((ub=a.selectedComponent)==null?void 0:ub.componentId)&&a.analytics.trackEvent("templateInheritance","create","issue:"+Qa.issueId);c?(a.analytics.trackEvent("createIssue",
"fileAndRedirect","component",d.componentId?Number(d.componentId):void 0),a.butterBar.dismiss(),a.isNavigatingAway=!0,a.isSaving=!1,EP(a.userAccess,"reader","issues/"+Qa.issueId).then(function(Wb){Wb?sWd(a.redirectUrl,ss(Qa.issueId),String(Qa.issueId)):(Rr(a.butterBar,"New issue created: "+Qa.issueId+" (view access not granted)",0),sWd(a.redirectUrl,a.paths.listIssues()));C7(a)}).catch(function(Wb){a.errorHandler.errorHandler(null,Wb);a.isNavigatingAway=!1})):(a.analytics.trackEvent("createIssue",
"fileAndNew","component",d.componentId?Number(d.componentId):void 0),bb={},Lcd(a.butterBar,Dh(["New issue created: ",Eh("a",(bb.href=ss(Qa.issueId),bb),String(Qa.issueId))]),0),d.title=a.templateTitle,a.comment=new uS(a.templateComment),d.formattingMode&&(a.comment.formattingMode=d.formattingMode),(d.comment=a.templateComment)&&a.templateCommentFormattingMode&&(a.comment.formattingMode=a.templateCommentFormattingMode,d.formattingMode=a.templateCommentFormattingMode),a.isSaving=!1,a.submitRequested=
!1,a.newIssueStarted=!0,a.originalIssueCopy=nm(a.issue));C7(a)}).catch(function(Qa){Qa.status===403&&Pp(Qa)?qO(a.errorHandler,Qp(Qa)):a.errorHandler.errorHandler(null,Qa);a.isSaving=!1;a.submitRequested=!1;a.newIssueStarted=!1}).finally(function(){a.titleBannedWordsChecker.reset();a.descriptionBannedWordsChecker.reset()})};return z(xa,D_d(a),3);case 3:return(C=xa.yieldResult)?z(xa,E_d(a),4):xa.return();case 4:return(H=xa.yieldResult)?z(xa,XRd(a.confirmIssueAccessLimitSettingsService,{assigneeUser:(J=
f.snapshot.assigneeUser)==null?void 0:J.emailAddress,verifierUser:(O=f.snapshot.verifierUser)==null?void 0:O.emailAddress,ccUsers:(R=f.snapshot.ccUsers)==null?void 0:R.map(function(Qa){return Qa.emailAddress}).filter(Pm),collaboratorsUsers:(V=f.snapshot.collaboratorsUsers)==null?void 0:V.map(function(Qa){return Qa==null?void 0:Qa.emailAddress}).filter(Pm),issueAccessLimitLevel:f.snapshot.issueAccessLimitLevel,currentUserEmail:a.activeSession.getUserEmail(),canEditIssuesInComponent:a.canEditIssuesInComponent,
confirmationDialogText:c_d}),5):xa.return();case 5:return(ca=xa.yieldResult)?z(xa,a.titleBannedWordsChecker.check((na=a.issue.title)!=null?na:"",F_d(a),f.snapshot.componentId),6):xa.return();case 6:return ua=xa.yieldResult,z(xa,a.descriptionBannedWordsChecker.check((ia=a.issue.comment)!=null?ia:"",F_d(a),f.snapshot.componentId),7);case 7:Ga=xa.yieldResult;if(!ua||!Ga)return(ha=b)==null||ha.preventDefault(),(sa=b)==null||sa.stopPropagation(),xa.return();x();ae(xa)}})},B_d=function(a){a.isSaving=!0;
Rr(a.butterBar,"Creating...",0);setTimeout(function(){Rr(a.butterBar,"New issue cr\u00e6ted");a.isSaving=!1;sWd(a.redirectUrl,a.paths.listIssues())},500)},F_d=function(a){return!!a.selectedComponent&&!!a.selectedComponent.accessLimit&&a.selectedComponent.accessLimit.accessLevel==="EXTERNAL_PUBLIC"},D_d=function(a){var b,c,d;return y(function(e){if(e.nextAddress==1)return b="create-issue",z(e,a.dismissalService.isDismissed(Jfb(b)),2);if(e.nextAddress!=4)return(c=e.yieldResult)||a.canEditIssuesInComponent||
a.frontendIsInternalOrPartner||!a.selectedComponent||!a.selectedComponent.accessLimit||a.selectedComponent.accessLimit.accessLevel==="INTERNAL"?e.return(!0):z(e,fe(SA(a.matDialogService.open(jW,{width:"500px",data:{action:b,content:Bh("Submitting this bug report means your email address will be shared with the team that works on this product.")}}))),4);d=e.yieldResult;return e.return(d)})},E_d=function(a){var b=qo();!a.canEditIssuesInComponent||a.issue.type!=="VULNERABILITY"&&a.issue.type!=="PRIVACY_ISSUE"?
b.resolve(!0):rmd(a.issueTypeDialog,a.issue.type,function(){b.resolve(!0)},function(){b.resolve(!1)});return b.promise},g_d=function(a,b){a.isLoadingComponent=!0;a.componentActions.search(b).then(function(c){c.length===1?(j_d(a,c[0]),C7(a),a.newIssueStarted=!0):a.selectedComponent=c[0]}).catch(function(){a.butterBar.showWarning("Unable to load components from the provided query.")}).finally(function(){a.isLoadingComponent=!1})},f_d=function(a,b){a.isLoadingComponent=!0;return a.componentActions.getUncached(b).then(function(c){var d;
if(rs(a.activeSession)&&((d=a.activeSession.getTracker())==null?void 0:d.trackerId)!==c.trackerId)throw Error("tg");j_d(a,c);C7(a)}).catch(function(){a.butterBar.showWarning("Component ID "+b+" does not exist or you do not have access.")}).finally(function(){a.isLoadingComponent=!1})};B7.prototype.hasUnsavedChanges=function(){var a=H6b(this.issue),b=H6b(this.originalIssueCopy);return!mm(a,b)||this.comment.value!==this.originalIssueCopy.comment};
var w_d=function(a,b){SA(a.matDialogService.open(a.descriptionConfirmDialog,{data:b})).pipe(pf()).subscribe(function(c){c?(a.comment.value=a.templateComment,a.issue.comment=a.templateComment,(a.originalIssueCopy.comment=a.templateComment)&&a.templateCommentFormattingMode&&(a.comment.formattingMode=a.templateCommentFormattingMode,a.issue.formattingMode=a.templateCommentFormattingMode,a.originalIssueCopy.formattingMode=a.templateCommentFormattingMode)):(a.originalIssueCopy.comment=a.templateComment,
a.templateComment="")})},l_d=function(a){a.selectedComponent&&a.bLocation.search("component",a.selectedComponent.componentId);a.selectedTemplate&&(a.selectedTemplate.type==="predefined"?(a.bLocation.search("template",a.selectedTemplate.id),a.bLocation.search("template_issue",null)):a.selectedTemplate.type==="issue"&&(a.bLocation.search("template_issue",a.selectedTemplate.id),a.bLocation.search("template",null)))},n5b=function(a){return a.sessionIsExternal?!1:nrb(a.selectedComponent)},o5b=function(a){return XN(a.activeSession)?
!1:nt(a.selectedComponent)},k_d=function(a){if(a.selectedComponent&&a.selectedComponent.componentPathInfo&&a.selectedComponent.componentPathInfo.allCustomField){var b=Ut(a.selectedComponent,a.activeSession);a.customFieldMap=I6b(b);a.customFieldAllowedValuesMap=J6b(b);var c;b=(c=a.selectedComponent.componentPathInfo.componentPathId)!=null?c:[];var d,e=(d=a.selectedComponent.componentPathInfo.fieldConfigsV2Map)!=null?d:new Map;a.fieldConfigsV2=[].concat(q(b)).reverse().flatMap(function(f){var g;return(g=
e.get(f))!=null?g:[]});y_d(a)}},y_d=function(a){if(a.issue.customField){a.issue.customField=a.issue.customField.filter(function(g){return a.customFieldMap[g.customFieldId]});for(var b=new Set(a.issue.customField.map(function(g){return g.customFieldId})),c=m(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next())d=d.value,b.has(d.customFieldId)||a.issue.customField.push(d.typedDefaultValue||{customFieldId:d.customFieldId});var e=a.issue.type,f=e&&a.fieldConfigsV2.find(function(g){return g.issueTypes.has(e)})||
a.fieldConfigsV2.find(function(g){return!g.issueTypes.size});a.issue.customField=a.issue.customField.filter(function(g){var k,l;return(l=f==null?void 0:(k=f.customFieldConfigs)==null?void 0:k.get(g.customFieldId))!=null?l:!0});a.originalIssueCopy.customField=a.issue.customField}},r_d=function(a){!a.canViewIssuesInComponent&&!a.componentHasExpandedAccessEnabled||lu(a.ccsText).includes(a.userEmail)||(a.ccsText=a.userEmail+", "+a.ccsText)};h=B7.prototype;
h.fetchUserHotlists=function(){var a=this;fe(rP(this.currentUserBookmarksFridge)).then(function(b){b=m(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);C7(a)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};h.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&La(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
h.createHotlist=function(a){var b=this;this.analytics.trackEvent("baseIssue","createHotlist");Rr(this.butterBar,"Creating hotlist "+a.name+"...",0);this.hotlistApi.createHotlist(a.name).then(function(c){Rr(b.butterBar,"Hotlist "+a.name+" created successfully.");b.addHotlist(c);b.appEvents.hotlistCreated.next();a.successCallback(c);C7(b)}).catch(a.errorCallback)};
h.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);C7(b);return d},function(){var d=b.hotlistMap[c];pta(b.hotlistMap,c);La(b.hotlists,d);a.errorCallback()})};h.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(){C7(b)})};
var e_d=function(a){var b;switch(((b=a.format)==null?void 0:b.toLowerCase())||""){case "plain":return"PLAIN";case "markdown":return"MARKDOWN"}},d_d=function(a){var b;return Tm((b=iR(a.userPreferencesManager).commentFormattingPreferences)==null?void 0:b.lastPublishMode)||"PLAIN"};
B7.prototype.showNewContentJudgementDialog=function(){var a=this,b,c,d=(c=(b=this.judgementForNewContent)==null?void 0:b.severity)!=null?c:"NONE_DETECTED";this.showContentJudgementDialog({severity:d,contentJudgement:void 0,hasAclToCreate:!0}).pipe(zf(this.destroyed$)).subscribe(function(e){e&&(a.judgementForNewContent=e.contentJudgement)})};B7.prototype.showContentJudgementDialog=function(a){return SA(this.matDialogService.open(WX,{panelClass:"no-jitter",width:"500px",data:a}))};
var C_d=function(a){var b=(new Date).getTime()-a.startTime.getTime();if(b>0){var c=Math.min(b,108E5);ahd("createIssue",c,"new-ui");a.analytics.trackEvent("createIssue","createIssue","time-to-create-new-ui",c);ZP(a.clearcut,b,"createIssue-fromNewIssuePage")}a.startTime=new Date},t_d=function(a,b){return function(c){var d=eo(c.snapshot.customField,function(l){return l.customFieldId}),e=[],f=Ut(b,a.activeSession);f=m(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var k=g.customFieldId;d.has(k)?
e.push(d.get(k)):g.typedDefaultValue?e.push(g.typedDefaultValue):e.push({customFieldId:k})}return Object.assign({},c,{snapshot:Object.assign({},c.snapshot,{customField:e})})}};da.Object.defineProperties(B7.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;(c=this.selectedComponentProcessedPromise)==null||c.then(function(){v_d(b)})}}}});
B7.\u0275fac=function(a){return new (a||B7)};
B7.\u0275cmp=D({type:B7,selectors:[["b-create-issue-page"]],viewQuery:function(a,b){a&1&&(hg(y3,5),hg(s0,5),hg($Zd,5),hg(IL,5));if(a&2){var c;lg(c=mg())&&(b.hotlistPicker=c.first);lg(c=mg())&&(b.commentBox=c.first);lg(c=mg())&&(b.descriptionConfirmDialog=c.first);lg(c=mg())&&(b.advancedFieldsZippy=c.first)}},standalone:!1,features:[Gg([bQ,{provide:a_d,useClass:PW},{provide:b_d,useClass:PW}]),Ef],decls:31,vars:13,consts:[["descriptionConfirmDialog",""],["collaboratorGroupField",""],["templateMenu",
"matMenu"],["priorityMenu","matMenu"],["typeMenu","matMenu"],["peopleKitDiv",""],["severityMenu","matMenu"],[1,"a11y-only"],[1,"kd-appbar","bv2-create-issue-scroll-header"],[1,"kd-buttonbar","ltr"],["type","button","mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[3,"selectedHotlistIds","choices"],["mat-button","",1,"medium","primary","valign-middle-mat-button-wrapper",3,"routerLinkObj"],["cdkScrollable","",1,"bv2-view"],
[1,"bv2-new-issue-main-content"],["novalidate","","name","createIssueForm"],[1,"bv2-create-component-external-warning",3,"partner","public"],["role","alert",1,"bv2-validation-error-banner"],[1,"bv2-create-issue-hotlists"],[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,"selectedComponentChange","selectedComponent","shouldFocus","isRequired"],[1,"bv2-create-field","bv2-right-button"],[1,"bv2-validation-error-banner"],
[3,"onApply","onLoad","onCreate","selectedHotlistIds","choices"],[1,"bv2-create-component-external-warning"],[3,"name","size"],[3,"href"],[1,"bv2-validation-error"],[1,"bv2-hotlist-chips"],[3,"removeHotlist","hotlist"],["for","bv2-template-chooser"],["mat-button","","color","primary","id","bv2-template-chooser","aria-label","Template","type","button",3,"matMenuTriggerFor"],["iconPositionEnd","","svgIcon","arrow-dropdown",1,"icon-s"],[3,"overlapTrigger"],["type","button","mat-menu-item",""],["type",
"button","mat-menu-item","",3,"click"],["for","bv2-title",1,"required"],[1,"bv2-create-issue-title","flex-kids-x","align-items-center"],["type","text","name","title","aria-label","Issue Title","id","bv2-title","name","title","required","","aria-required","true","autocomplete","off",3,"ngModelChange","blur","ngModel","bFocus"],[3,"description"],[1,"banned-words-warning","break-word"],[1,"bv2-create-field","bv2-create-issue-assignee"],[1,"bv2-create-field","bv2-create-issue-collaborators"],[1,"bv2-create-field",
"bv2-create-issue-cc"],[1,"bv2-create-issue-details"],["for","bv2-description"],[3,"commentChange","onChange","onSubmit","onRestrict","supportsPreview","comment","disabled","judgementForNewContent","placeholder","idForAriaLabel","audience","showRestrictionOptions","warn","canEditIssuesInComponent","isLiteralModeSupported"],["warning","",1,"banned-words-warning","break-word"],["additionalToolbarItems","",3,"change","initialValue"],[1,"bv2-create-issue-row","access-level-row"],[1,"float-clear"],[1,
"bv2-create-issue-zippy"],[1,"mat-elevation-z0","bg-secondary","bordered"],[1,"create-issue-recaptcha"],[1,"bv2-issue-create-button-bar"],["format","fill","id","bv2-issue-create-button",3,"onAction","disabled","color"],["format","fill","id","bv2-issue-create-start-button",3,"onAction","disabled","color"],["format","hairline","id","bv2-issue-discard-button",3,"onAction","disabled"],[3,"suggestionAccepted"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",
1,"color-bad-text","keep-underline"],["for","bv2-priority",1,"required"],["mat-button","","type","button","color","primary",3,"matMenuTriggerFor"],["mat-menu-item","","type","button",3,"click"],["mat-menu-item","","type","button"],["for","bv2-type",1,"required"],["mat-menu-item","","type","button",3,"click","matTooltip"],[1,"icon-s",3,"svgIcon"],["for","bv2-assignee-peoplekit"],[1,"overflow-hidden"],["id","bv2-assignee-peoplekit","type","text","name","assignee",1,"bv2-create-issue-textfield",3,"emailChange",
"email"],["for","bv2-collaborators-peoplekit"],["matTooltip","Collaborators are people directly working on this issue. When expanded access is on, this field grants issue edit permissions","matTooltipPosition","above","svgIcon","help-outline","tabindex","0",1,"collaborators-tooltip-icon"],["id","bv2-collaborators-peoplekit","type","text","name","collaborators","aria-expanded","true",1,"bv2-create-issue-textfield",3,"valueChange","ariaLabel","value"],["for","bv2-ccs-peoplekit"],["id","bv2-ccs-peoplekit",
"type","text","name","ccs","aria-expanded","true",1,"bv2-create-issue-textfield",3,"valueChange","ariaLabel","value"],["for","bv2-access-limits","matTooltip","Set access level of this issue"],["id","bv2-access-limits",3,"updatedAccessLimitLevel","disabled","implicitAccessEnabled","defaultAccessLimitLevel"],["for","bv2-collaborator-groups","matTooltip","Set collaborator groups on the issue"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",1,"icon-s","valign-middle","collaborator-group-help-icon",
3,"matTooltip"],[4,"ngTemplateOutlet"],["role","heading","aria-level","3"],[1,"required-text"],[1,"bv2-new-issue-metadata"],["aria-label","Set severity",1,"bv2-create-adv-field"],["for","bv2-severity","matTooltip","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"],["name","arrow-dropdown","size","small"],[1,"bv2-create-adv-field"],["for","bv2-found-in","matTooltip","Set version(s) of the product affected by this issue (comma-separated list)"],
["id","bv2-found-in","name","foundIn","type","text","autocomplete","off",3,"ngModelChange","ngModel"],["aria-label","Set in prod",1,"bv2-create-adv-field"],["for","bv2-in-prod","matTooltip","Set if this issue occurs in production"],["id","bv2-in-prod","name","inProd","aria-label","Set in prod",3,"ngModelChange","ngModel"],["for","bv2-reporter-peoplekit","matTooltip","Set the reporter of this issue."],["id","bv2-reporter-peoplekit","name","reporter","type","text",3,"emailChange","email"],["for","bv2-verifier-peoplekit",
"matTooltip","Set the verifier of this issue."],["id","bv2-verifier-peoplekit","name","verifier","type","text",3,"emailChange","email"],["for","bv2-targeted-to","matTooltip","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,"ngModelChange","ngModel"],["for","bv2-blocked-by","matTooltip","Set issue(s) blocking this issue (comma-separated list)"],["id","bv2-blocked-by","name",
"blockedByInputField","type","text","autocomplete","off","pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["for","bv2-blocking","matTooltip","Set issue(s) blocked by this issue (comma-separated list)"],["id","bv2-blocking","name","blockingInputField","type","text","autocomplete","off","pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["aria-label","Edit staffing",1,"bv2-create-adv-field","staffing-field"],["for","staffing-button","matTooltip","Edit staffing, which represents planned contributors on this issue."],
["type","button",1,"staffing-button","b-input-style",3,"click"],[1,"staffing-text"],["svgIcon","edit-outline",1,"icon-s","edit-icon"],["for","bv2-parents","matTooltip","Set parent issue(s) of this issue (comma-separated list)"],["id","bv2-parents","name","parentsInputField","type","text","pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["for","bv2-children","matTooltip","Set children issue(s) of this issue (comma-separated list)"],["id","bv2-children","name","childrenInputField","type","text",
"pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["id","bv2-access-limits",3,"updatedAccessLimitLevel","disabled","defaultAccessLimitLevel","implicitAccessEnabled"],[3,"id","matTooltip"],[3,"id","value","required","labelledById"],[3,"id","value","required"],[3,"value","options","includeEmptyOption","labelledById"],[3,"valueChange","id","value","required","labelledById"],[3,"valueChange","id","value","required"],[3,"boundValueChange","boundValue","isRequired","bv2Id","bv2AriaLabelledby"],[3,"valueChange",
"value","options","includeEmptyOption","labelledById"],["name","customInput","tabindex","0",3,"valuesChange","defaultLineCount","type","values","enumChoices","truncate","isRequired"],[1,"bg-off-main","rounded","bordered","padded-s-y","padded-l-x",3,"context","componentId"],[3,"onUpdate"],["mat-dialog-title",""],[1,"bv2-create-issue-default-description"],["type","button","mat-button","",3,"mat-dialog-close"],"type button mat-button  mat-dialog-close ".split(" "),["appearance","outline",1,"static-label"],
["multiple","","aria-label","Collaborator groups",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value"]],template:function(a,b){if(a&1){var c=t();K(0,"h2",7);Q(1,"Create issue");L();K(2,"div",8)(3,"div",9)(4,"button",10);N("click",function(){u(c);return v(b.back())});M(5,"mat-icon",11);L();K(6,"h2");Q(7,"Create Issue");L();F(8,l5b,1,2,"b-hotlist-picker",12);F(9,m5b,2,1,"a",13);L()();K(10,"div",14)(11,"div")(12,"div",15)(13,"form",16);F(14,q5b,6,8,"div",17);F(15,z5b,4,3,"div",18);F(16,B5b,3,0,
"div",19);K(17,"div",20)(18,"div",21)(19,"div",22)(20,"label",23);Q(21,"Component");L()();K(22,"div",24)(23,"b-team-component-picker",25);N("selectedComponentChange",function(e){u(c);return v(j_d(b,e!=null?e:null))});L()()();F(24,E5b,12,4,"div",26);L();F(25,F5b,3,0,"div",27);F(26,y6b,54,63,"div");L()()()();E(27,z6b,11,2,"ng-template",null,0,Mg)(29,C6b,6,4,"ng-template",null,1,Mg)}if(a&2){var d;B(8);G(b.canEditIssuesInComponent?8:-1);B();G((d=b.issue.componentId)?9:-1,d);B(4);wg("submitted",b.submitRequested);
B();G(n5b(b)||o5b(b)?14:-1);B();G(b.submitRequested&&!b.isValid()?15:-1);B();G(b.selectedHotlists.length>0?16:-1);B(7);I("selectedComponent",b.selectedComponent)("shouldFocus",!b.componentRequestedInUrl&&!b.templateIssueRequestedInUrl)("isRequired",!0);B();G(b.availablePredefinedTemplates.length>0||b.availableExistingIssueTemplate!=null?24:-1);B();G(b.isLoadingComponent||b.componentRequestedInUrl==null&&b.selectedComponent==null||b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent?
-1:25);B();G(b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent?26:-1)}},dependencies:[MU,s0,fU,w_,t4,HD,SD,ID,xW,nE,xj,fE,gE,yE,AE,mE,kE,MZ,y3,sT,K3,OV,kB,gB,iB,yU,wz,TH,UH,hA,VA,XA,ZA,YA,IL,JL,KL,VJ,fH,dH,iH,OU,vT,vK,nA,A7,dW,Sx,Jy,VO,qY,yY,w7,y7,z7,B_,P_,hK,bV,cX,Tx],styles:[".bv2-create-issue-row[_ngcontent-%COMP%]   .mat-mdc-button[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500;--mat-button-text-icon-spacing:4px}mat-icon.collaborator-group-help-icon[_ngcontent-%COMP%]{padding-left:3px}[_nghost-%COMP%]     mat-form-field.static-label{width:180px;margin-top:5px;font-size:1rem}[_nghost-%COMP%]     mat-form-field.static-label .mat-mdc-form-field-flex{height:24px}[_nghost-%COMP%]     mat-form-field.static-label .mat-mdc-form-field-infix{padding:0}.bv2-create-issue-row.access-level-row[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content}.feedback-button[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-left:auto}.feedback-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:4px}.feedback-button[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.bv2-top-field-label[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.create-issue-recaptcha[_ngcontent-%COMP%]{float:right;margin:0 15px 15px 0}.mat-mdc-menu-item[_ngcontent-%COMP%]:active, .mat-mdc-menu-item[_ngcontent-%COMP%]:focus, .mat-mdc-menu-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}[_nghost-%COMP%]   .collaborators-tooltip-icon[_ngcontent-%COMP%]{height:18px}[_nghost-%COMP%]     .collaborators-tooltip-icon svg{height:90%;margin-top:1px}[_nghost-%COMP%]   input.invalid[_ngcontent-%COMP%]{border-color:var(--bad-high-contrast)!important;border-width:2px!important}[_nghost-%COMP%]     .bv2-issue-create-button-bar b-button .gmat-mdc-button.mat-mdc-unelevated-button.mat-warn{background-color:#c5221f;background-color:var(--bad-gfx)}.banned-words-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-text)}.staffing-field[_ngcontent-%COMP%]{width:90%}.staffing-field[_ngcontent-%COMP%]   .staffing-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.staffing-field[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%}.staffing-field[_ngcontent-%COMP%]   .edit-icon[_ngcontent-%COMP%]{color:var(--icon)}\n/*# sourceMappingURL=create_issue_page.css.map */"]});
var F6b={hotlistId:[],comment:"",severity:"S2",inProd:!1,customField:[]},p_d=function(a,b,c,d,e,f){this.id=a;this.type=b;this.name=c;this.isDefault=d;this.componentId=e;this.inheritable=f};var G_d=["form"],H_d=function(){this.bLocation=p(bU);this.sloApi=p(JQ);this.errorHandler=p(pO);this.analytics=p(eQ);this.butterBar=p(UN);this.appHistory=p(J2);this.sloUnderEdit={sloId:"0",parentId:"0",name:"",description:"",elements:[],effectiveElements:[],alertState:"OFF",isArchived:!1};this.isSaving=this.elementPickerIsValid=!1;this.createSloForm=null;this.error=""};h=H_d.prototype;h.ngAfterViewInit=function(){};
h.save=function(){var a=this;if(!this.validate())return Promise.reject(Error("ug"));Rr(this.butterBar,"Saving SLO...",0);this.isSaving=!0;return this.sloApi.create(this.sloUnderEdit).then(function(b){Rr(a.butterBar,"SLO "+b.name+" saved.",2E3);a.analytics.trackEvent("SLO","create");a.bLocation.replaceUrl(qs.editSlo.makeHref(b.sloId))}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isSaving=!1})};h.back=function(){K2(this.appHistory)};
h.revertChanges=function(){this.sloUnderEdit.name="";this.sloUnderEdit.description="";this.sloUnderEdit.elements=[]};h.updateCollection=function(a){this.sloUnderEdit.elements=a};h.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};H_d.\u0275fac=function(a){return new (a||H_d)};
H_d.\u0275cmp=D({type:H_d,selectors:[["create-slo-page"]],viewQuery:function(a,b){a&1&&hg(G_d,5);if(a&2){var c;lg(c=mg())&&(b.createSloForm=c.first)}},standalone:!1,decls:30,vars:17,consts:[["form","ngForm"],[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"],[3,"error"],
[1,"edit-field"],["for","slo-name",1,"required"],["type","text","id","slo-name","name","name",3,"ngModelChange","required","bFocus","ngModel","disabled"],["for","slo-description"],["id","slo-description","name","description",3,"ngModelChange","ngModel","disabled"],[3,"onCollectionUpdate","onValidation","isDisabled","collection"],[1,"advanced-settings-info"],[1,"edit-button-row"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction","disabled"]],template:function(a,b){if(a&1){var c=
t();K(0,"div",1)(1,"div",2)(2,"b-button",3);N("onAction",function(){u(c);return v(b.back())});M(3,"b-icon",4);L()()();K(4,"div",5)(5,"h2",6)(6,"span",7);Q(7,"Create a new SLO");L()();K(8,"div",8)(9,"form",9,0);M(11,"b-error-banner",10);K(12,"div",11)(13,"label",12);Q(14,"Name");L();K(15,"input",13);N("ngModelChange",function(d){u(c);return v(b.sloUnderEdit.name=d)});L()();K(16,"div",11)(17,"label",14);Q(18,"Description");L();K(19,"textarea",15);N("ngModelChange",function(d){u(c);return v(b.sloUnderEdit.description=
d)});Q(20,"        ");L()();K(21,"div",11)(22,"slo-elements-picker",16);N("onCollectionUpdate",function(d){u(c);return v(b.updateCollection(d))})("onValidation",function(d){u(c);return v(b.elementPickerIsValid=d)});L()();K(23,"p",17);Q(24," Access controls may be defined once the slo is created. ");L();K(25,"div",18)(26,"b-button",19);N("onAction",function(){u(c);return v(b.save())});Q(27," Save ");L();K(28,"b-button",20);N("onAction",function(){u(c);return v(b.revertChanges())});Q(29," Revert changes ");
L()()()()()}a&2&&(B(9),wg("show-errors",b.error),B(2),I("error",b.error),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(3),I("required",!0)("bFocus",!0)("ngModel",b.sloUnderEdit.name)("disabled",b.isSaving),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(3),I("ngModel",b.sloUnderEdit.description)("disabled",b.isSaving),B(3),I("isDisabled",!1)("collection",b.sloUnderEdit.elements),B(4),I("disabled",b.isSaving||(b.createSloForm==null?null:b.createSloForm.pending)||(b.createSloForm==null?null:b.createSloForm.invalid)||
!b.elementPickerIsValid),B(2),I("disabled",!(b.sloUnderEdit.name!==""||b.sloUnderEdit.description!==""||b.sloUnderEdit.elements.length>0)))},dependencies:[MU,L4,xW,nE,xj,fE,gE,yE,mE,kE,sT,N5],encapsulation:2});var I_d=function(){this.nextPanelId=1};I_d.\u0275fac=function(a){return new (a||I_d)};I_d.\u0275prov=Dc({token:I_d,factory:I_d.\u0275fac,providedIn:"root"});var D7=function(){Z.apply(this,arguments);this.cdr=p(bQ);this.paths=p(hW);this.bLocation=p(bU);this.$log=p(nO);this.analytics=p(eQ);this.issueApi=p(MP);this.userApi=p(kP);this.bookmarkGroupsApi=p(CO);this.hotlistApi=p(gP);this.butterBar=p(UN);this.pageTitle=p(n2);this.dashboards=p(I_d);this.routeParams=p(wS);this.appSearchState=p(rT);this.userAccess=p(DP);this.errorHandler=p(pO);this.statusMessages=p(jS);this.appEvents=p(UO);this.hotlistFridge=p(lP);this.activeSession=p(uu);this.issueFullFridge=p(gQ);
this.currentUserBookmarksFridge=p(qP);this.ANALYTICS_CATEGORY="dashboard";this.userEmail=this.activeSession.getUserEmail();this.groupId=this.routeParams.groupId||null;this.panels=[];this.hotlistChoices=[];this.hotlistMap={};this.isStarred=!1;this.bookmarkGroup=null;this.isAdmin=!1;this.Number=Number;this.String=String};Y(D7,Z);D7.\u0275dir=Z.\u0275dir;
D7.prototype.ngOnInit=function(){var a=this;this.userApi.getUserBookmark("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.loadBookmarkGroup().then(function(b){J_d(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){K_d(a,
b,function(c){return c+1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveUp.subscribe(function(b){K_d(a,b,function(c){return c-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToTop.subscribe(function(b){K_d(a,b,function(){return 0})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToBottom.subscribe(function(b){K_d(a,b,function(){return a.panels.length-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.remove.subscribe(function(b){a.removePanel(b)}));
this.appSearchState.clear()};var O6b=function(a,b){var c=b.panelId;b=b.selectedIssues;if(a=L_d(a,c))a.selectedIssues=b!=null?b:[]},N6b=function(a,b,c){b.focusedRowIndex=c;if(c!=null)for(a=m(a.panels),c=a.next();!c.done;c=a.next())c=c.value,c!==b&&(c.focusedRowIndex=null)},L_d=function(a,b){return a.panels.find(function(c){return c.panelId===b})},M_d=function(a,b){a=a.panels.findIndex(function(c){return c.panelId===b});return a!==-1?a:void 0};h=D7.prototype;
h.fetchUserHotlists=function(){var a=this;fe(rP(this.currentUserBookmarksFridge)).then(function(b){b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];mm(d,c)||(d&&La(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"createHotlist");Rr(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);Rr(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)};
h.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;Rr(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)};h.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
h.loadHotlists=function(a){var b=this,c=new Set;a=m(a);for(var d=a.next();!d.done;d=a.next()){d=m(d.value.hotlistId||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,this.hotlistMap[e]||c.has(e)||c.add(e)}c=m(c);for(a=c.next();!a.done;a=c.next())this.hotlistApi.get(a.value).then(function(f){b.hotlistFridge.announce(f);b.addHotlist(f);b.cdr.detectChanges()}).catch(function(f){(new Set([403,404])).has(f.status)||b.errorHandler.errorHandler(null,f)})};
h.sendBulkEditRequest=function(a,b){var c=this;if(a.length===1&&a[0].actions.length===1&&a[0].actions[0].fieldName==="readState"){var d=!!a[0].actions[0].value;b=m(this.panels);for(var e=b.next();!e.done;e=b.next()){e=m(e.value.selectedIssues);for(var f=e.next();!f.done;f=e.next())f.value.isRead=d}this.cdr.detectChanges();Rr(this.butterBar,"Marking "+a[0].issueIds.length+" issues  "+(d?"read":"unread")+"...",0);return hQ(this.issueFullFridge,a[0].issueIds,{markRead:d,userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(k){Rr(c.butterBar,
"Issues marked "+(d?"read":"unread")+".");for(var l=m(c.panels),r=l.next();!r.done;r=l.next()){r=m(r.value.selectedIssues);for(var w=r.next();!w.done;w=r.next()){var x=void 0;w.value.lastViewedTime=(x=k)!=null?x:null}}}).catch(function(k){for(var l=m(c.panels),r=l.next();!r.done;r=l.next()){r=m(r.value.selectedIssues);for(var w=r.next();!w.done;w=r.next())w=w.value,w.isRead=!!w.lastViewedTime&&w.lastViewedTime>=w.majorModifiedTime}c.errorHandler.errorHandler(null,k)}).finally(function(){c.cdr.detectChanges()})}e=
T6a(a).map(function(k){return k.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"bulkEdit",e.join(","));var g={bulkEditOps:a};Rr(this.butterBar,"Saving changes...",0);return this.issueApi.issueBulkEdit(g,b).then(function(k){for(var l=m([].concat(q(c.searchPanels),q(c.hotlistPanels))),r=l.next();!r.done;r=l.next()){r=r.value;var w=k;if(r.searchResults){r.searchResults=r.searchResults.clone();for(var x=0,C=m(r.searchResults.issues),H=C.next();!H.done;H=C.next()){H=H.value;if(w.affectedIssues[H.issueId]){var J=
w.affectedIssues[H.issueId];J=hAb(J,w.componentMap[Number(Ia(J.snapshot).componentId)]);J.selected=H.selected;r.searchResults.issues[x]=J;r.resultsLoaded.emit([r.searchResults.issues[x]])}x++}}}k.errors&&k.errors.length?(l=AUa(k.errors),c.butterBar.showWarning("Failed to update issue(s) "+l+"."),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=Kmd(c.statusMessages,g))?Rr(c.butterBar,k):Rr(c.butterBar,"Saved "+U6a(a).length+" issue(s).")}).catch(function(k){c.errorHandler.errorHandler(null,
k)})};h.loadBookmarkGroup=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1)return Wd(d,2),z(d,a.bookmarkGroupsApi.get(a.groupId),4);if(d.nextAddress!=2)return b=d.yieldResult,a.isAdmin=b.adminUsers.some(function(e){return e.emailAddress===a.userEmail}),a.pageTitle.setTitle(b.name),d.return(b);c=$d(d);rO(a.errorHandler,c);throw c;})};var J_d=function(a,b){a.panels=(b.item||[]).map(function(c,d){return N_d(a,c,d===0?0:void 0)}).filter(Pm)};
D7.prototype.removePanel=function(a){var b=this,c=L_d(this,a);c!=null&&(Rr(this.butterBar,"Saving changes...",0),a=nm(this.bookmarkGroup),a.item=a.item.filter(function(d){return!O_d(b,c,d)}),P_d(this,a))};
var K_d=function(a,b,c){b=M_d(a,b);if(b!==void 0){var d=a.panels[b];c=c(b);if(c>=a.panels.length||c<0)a.$log.warn("Trying to move panel "+d.panelId+" to "+c);else{b=nm(a.bookmarkGroup);var e,f=(e=a.bookmarkGroup)==null?void 0:e.item.findIndex(function(g){return O_d(a,d,g)});f!==void 0&&(Jba(b.item,f,c),P_d(a,b))}}},P_d=function(a,b){a.bookmarkGroupsApi.update(b).then(function(c){a.bookmarkGroup=c;Q_d(a,a.bookmarkGroup.item);Rr(a.butterBar,"Bookmark group saved.",4E3);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});
a.cdr.detectChanges()},function(c){a.errorHandler.errorHandler(null,c)})},O_d=function(a,b,c){switch(b.type){case "HOTLIST":return c.hotlistId===b.resourceId;case "SAVED_SEARCH":return c.savedSearchId===String(b.resourceId);default:return a.$log.warn("Unknown type of a panel: "+b.type),!1}},R_d=function(a,b){return a.panels.find(function(c){return O_d(a,c,b)})},N_d=function(a,b,c){var d=null,e=null;switch(b.resourceType){case "HOTLIST":d="HOTLIST";var f;e=(f=b.hotlistId)!=null?f:null;break;case "SAVED_SEARCH":d=
"SAVED_SEARCH";var g;e=(g=b.savedSearchId)!=null?g:null;break;default:a.$log.warn("Unsupported item: "+b)}if(d&&e)return a=a.dashboards,b=a.nextPanelId,a.nextPanelId++,{panelId:b,resourceId:e,type:d,focusedRowIndex:c!=null?c:null,selectedIssues:[]}},Q_d=function(a,b){a.panels=b.map(function(c){var d;return(d=R_d(a,c))!=null?d:N_d(a,c)}).filter(Pm)};
D7.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=function(){a.appEvents.bookmarkGroupModified.next()};this.isStarred?this.userApi.addUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.groupId}).then(b).catch(function(c){a.errorHandler.errorHandler(null,c)}):this.userApi.removeUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.groupId}).then(b).catch(function(c){a.errorHandler.errorHandler(null,c)})};D7.prototype.editBookmarkGroup=function(){this.bLocation.setUrl(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};
D7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(D7)))(b||D7)}}();
D7.\u0275cmp=D({type:D7,selectors:[["dashboard-page"]],viewQuery:function(a,b){a&1&&(hg(w5,5),hg(u5,5));if(a&2){var c;lg(c=mg())&&(b.searchPanels=c);lg(c=mg())&&(b.hotlistPanels=c)}},standalone:!1,features:[Gg([bQ]),Ef],decls:10,vars:4,consts:[[1,"a11y-only"],[1,"kd-dashboard-bar","kd-appbar","kd-buttonbar"],[1,"bv2-dashboard-header"],[3,"onSave","onCreateHotlist","onLoadHotlist","hotlistChoices","panels"],["role","main","tabindex","0",1,"bv2-view",3,"bFocus"],[1,"bv2-dashboard-title"],[3,"starMessage",
"unStarMessage","starred","disabled"],[3,"starMessage","unStarMessage","starred"],[1,"bv2-dashboard-title-text"],["type","button","aria-label","Bookmark group settings","matTooltip","Bookmark group settings",1,"bv2-edit-icon","bv2-view-resource-edit-button",3,"click"],[3,"starClicked","starMessage","unStarMessage","starred"],[3,"panel","isDashboardEditable","focusedRowIndex","savedSearchId","first","last"],[3,"panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last"],[3,"focusedRowIndexChange",
"selectionChange","resultsLoaded","panel","isDashboardEditable","focusedRowIndex","savedSearchId","first","last"],[3,"focusedRowIndexChange","selectionChange","resultsLoaded","panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1,"Dashboard"),L(),K(2,"div",1)(3,"div",2),Q(4,"Bookmark groups dashboard"),L(),K(5,"b-dashboard-controls",3),N("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps,c.recaptchaToken)})("onCreateHotlist",
function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)}),L()(),K(6,"div",4),F(7,M6b,8,2,"div"),Nf(8,R6b,3,1,"div",null,Mf),L());a&2&&(B(5),I("hotlistChoices",b.hotlistChoices)("panels",b.panels),B(),I("bFocus",!0),B(),G(b.bookmarkGroup?7:-1),B(),Of(b.panels))},dependencies:[H3,CY,w5,u5,xW,vK,nA],encapsulation:2});var S_d=function(){};S_d.\u0275fac=function(a){return new (a||S_d)};S_d.\u0275mod=$e({type:S_d});S_d.\u0275inj=Fc({imports:[I3,Y1,x5,v5,WO,yW,wK]});var T_d=["editBookmarkGroupItemsContainer"],U_d=["bookmarkGroupName"],r7b=function(a){return{displayText:"Admins",values:a}},q7b=function(a){return[a]},E7=function(){Z.call(this);var a=this;this.routeParams=p(wS);this.location=p(bU);this.activeSession=p(uu);this.butterBar=p(UN);this.accessPolicyApi=p(KO);this.bookmarkGroupsApi=p(CO);this.hotlistApi=p(gP);this.paths=p(hW);this.appHistory=p(J2);this.pageTitle=p(n2);this.userAccess=p(DP);this.errorHandler=p(pO);this.appEvents=p(UO);this.snackBar=p(rB);
this.confirmationDialog=p(dS);this.checkBeforeExit=p(rY);this.cdr=p(bQ,{self:!0});this.documentationLinks=p(cS);this.currentUserBookmarksFridge=p(qP);this.selectedTabIndex=0;this.accessPolicyUnderEdit=js();this.flattenedAccessPolicy=js();this.isAdmin=this.isArchiving=this.isUpdating=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.error="";this.selectedHotlistIds=[[]];this.userHotlists=[];this.userSavedSearches=null;
this.savedSearchChoices=[];var b=this.loadBookmarkGroup(this.routeParams.groupId),c=this.loadUserAccess(this.routeParams.groupId);this.loadAccessPolicy(this.routeParams.groupId);V_d(this);W_d(this);Promise.all([b,c]).then(function(){var d;(d=a.bookmarkGroupNameInput)==null||d.nativeElement.focus()});this.subscriptions.add(sY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));b=function(){V_d(a)};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(b));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(b));
this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(){W_d(a)}))};Y(E7,Z);E7.\u0275dir=Z.\u0275dir;h=E7.prototype;h.ngOnInit=function(){this.location.hash()==="access"&&(this.selectedTabIndex=1)};h.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;this.location.hash(e,!0)};h.back=function(){K2(this.appHistory)};
h.isArchived=function(){return this.bookmarkGroup?this.bookmarkGroup.archived:!1};h.isSaving=function(){return this.isUpdating||this.isArchiving};h.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};h.hasUnsavedMetadataChanges=function(){return!mm(this.bookmarkGroup,this.bookmarkGroupUnderEdit)};h.hasUnsavedAccessPolicyChanges=function(){return!mm(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};
h.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};h.revertMetadataChanges=function(){this.bookmarkGroupUnderEdit=nm(this.bookmarkGroup);this.error="";this.selectedHotlistIds=[X_d(this.bookmarkGroup.item.filter(function(a){return a.hasOwnProperty("hotlistId")}))];Y_d(this)};h.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=nm(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};h.saveMetadata=function(){this.validate()&&this.doSaveMetadata()};
h.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.confirmationDialog.open({title:"Change bookmark group admins",content:Bh("Warning: You may be removing yourself from the admins. Unless you are granted access via a group, you may lose the permission to edit the access settings"),isDestructive:!0,onConfirm:function(){a.doSaveAccessPolicy()}})};
h.validate=function(){if(this.bookmarkGroupUnderEdit.name==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};h.archive=function(){var a=this;this.confirmationDialog.open({title:"Archive bookmark group",content:Bh("Do you want to archive this bookmark group?"),isDestructive:!0,onConfirm:function(){Z_d(a,"archive")}})};
h.unarchive=function(){var a=this;this.confirmationDialog.open({title:"Unarchive bookmark group",content:Bh("Do you want to unarchive this bookmark group?"),onConfirm:function(){Z_d(a,"unarchive")}})};
h.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});$_d(a,d);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:c})}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isUpdating=
!1})};
h.doSaveAccessPolicy=function(){var a=this;try{var b=ls(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);this.butterBar.showWarning(b);return}this.isUpdating=!0;this.snackBar.open("Saving access settings...","dismiss",{duration:0});this.accessPolicyApi.update("BOOKMARK_GROUP",this.bookmarkGroup.bookmarkGroupId,b).then(function(c){a.snackBar.open("Access settings saved.","dismiss",{duration:0});a.flattenedAccessPolicy=ks(c);a.accessPolicyUnderEdit=nm(a.flattenedAccessPolicy);
a.loadUserAccess(a.bookmarkGroup.bookmarkGroupId)},function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating=!1})};
var Z_d=function(a,b){var c=nm(a.bookmarkGroup);b==="archive"?(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){b==="archive"?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});$_d(a,d)}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isArchiving=!1})};
E7.prototype.loadBookmarkGroup=function(a){var b=this;this.isLoading=!0;return this.bookmarkGroupsApi.get(a).then(function(c){$_d(b,c);b.selectedHotlistIds=[X_d(b.bookmarkGroup.item)];Y_d(b);b.pageTitle.setTitle("Bookmark group: "+c.name);b.cdr.detectChanges()},function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1})};var $_d=function(a,b){a.bookmarkGroup=b;a.bookmarkGroupUnderEdit=nm(a.bookmarkGroup)};
E7.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("BOOKMARK_GROUP",a).then(function(c){b.flattenedAccessPolicy=ks(c);b.accessPolicyUnderEdit=nm(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};E7.prototype.loadUserAccess=function(a){var b=this;return EP(this.userAccess,"admin","bookmarkGroups/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var V_d=function(a){fe(rP(a.currentUserBookmarksFridge)).then(function(b){a.userHotlists=b;a.cdr.detectChanges()})},W_d=function(a){a.userSavedSearches=null;fe(jfd(a.currentUserBookmarksFridge)).then(function(b){a.userSavedSearches=b;Y_d(a);a.cdr.detectChanges()})},Y_d=function(a){if(a.userSavedSearches&&a.bookmarkGroupUnderEdit!=null){var b=a0d(a.bookmarkGroupUnderEdit.item.filter(function(c){return c.hasOwnProperty("savedSearchId")}));a.savedSearchChoices=a.userSavedSearches.filter(function(c){return!b.includes(c.searchId)})}},
V6b=function(a,b){var c=Number(b);wba(a.bookmarkGroupUnderEdit.item,function(e){return e.hotlistId===c});b0d(a,c);var d;(d=a.editBookmarkGroupItemsContainer)==null||d.nativeElement.focus()},X6b=function(a,b){wba(a.bookmarkGroupUnderEdit.item,function(d){return d.savedSearchId===b});Y_d(a);var c;(c=a.editBookmarkGroupItemsContainer)==null||c.nativeElement.focus()},j7b=function(a,b){switch(b.resourceType){case "SAVED_SEARCH":return a.paths.viewSavedSearch(b.savedSearchId);case "HOTLIST":return qs.viewHotlist.makeHref(b.hotlistId);
case "BOOKMARK_GROUP":return a.paths.viewBookmarkGroup(b.bookmarkGroupId);default:wb(b.resourceType)}},e7b=function(a,b){for(var c=m(Object.entries(b.newSelectionMap)),d=c.next(),e={};!d.done;e={id$jscomp$655:void 0},d=c.next()){var f=m(d.value);d=f.next().value;f=f.next().value;e.id$jscomp$655=rm(d);f&&!b.oldSelectionMap[e.id$jscomp$655]?(h7b(a,e.id$jscomp$655),e=a.userHotlists.find(function(g){return function(k){return k.hotlistId===g.id$jscomp$655}}(e)),a.bookmarkGroupUnderEdit.item.push({hotlistId:e.hotlistId,
name:e.name,resourceType:"HOTLIST"})):b.oldSelectionMap[e.id$jscomp$655]&&!f&&(b0d(a,e.id$jscomp$655),wba(a.bookmarkGroupUnderEdit.item,function(g){return function(k){return k.hotlistId===g.id$jscomp$655}}(e)))}},h7b=function(a,b){a.selectedHotlistIds[0].push(b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},b0d=function(a,b){La(a.selectedHotlistIds[0],b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},a7b=function(a,b){a0d(a.bookmarkGroupUnderEdit.item).indexOf(b.searchId)===-1&&a.bookmarkGroupUnderEdit.item.push({name:b.name,
resourceType:"SAVED_SEARCH",savedSearchId:b.searchId});setTimeout(function(){Y_d(a)})},a0d=function(a){return a?WQa(a,"savedSearchId"):[]},X_d=function(a){return WQa(a,"hotlistId")},f7b=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)},g7b=function(a,
b){return a.hotlistApi.get(b.hotlistId).then(function(c){a.userHotlists.push(c);b.successCallback(c);return c},b.errorCallback)};E7.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+")";case "BOOKMARK_GROUP":return"(Bookmark group ID "+a.bookmarkGroupId+")";default:wb(a.resourceType)}};E7.\u0275fac=function(a){return new (a||E7)};
E7.\u0275cmp=D({type:E7,selectors:[["b-edit-bookmark-group"]],viewQuery:function(a,b){a&1&&(hg(T_d,5),hg(U_d,5),hg(wL,5,Hd));if(a&2){var c;lg(c=mg())&&(b.editBookmarkGroupItemsContainer=c.first);lg(c=mg())&&(b.bookmarkGroupNameInput=c.first);lg(c=mg())&&(b.tabs=c)}},standalone:!1,features:[Gg([bQ]),Ef],decls:9,vars:3,consts:[["bookmarkGroupName",""],["editBookmarkGroupItemsContainer",""],["savedSearchMenu","matMenu"],[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button",
"","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],["type","button","mat-button","","color","primary",3,"disabled"],[1,"bv2-view"],["type","button","mat-button","","color","primary",3,"click","disabled"],[1,"edit-resource-header"],[1,"resource-archived"],[1,"edit-resource-header-link","normal-link",3,"href"],["mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["id","basic","label","Basic Information"],[1,"edit-resource-panel"],
[3,"error"],[1,"edit-field"],["for","bookmark-group-name",1,"required"],[1,"edit-field-header"],["type","text","id","bookmark-group-name","required","","aria-required","true",3,"ngModelChange","ngModel","disabled"],["for","bookmark-group-description"],["id","bookmark-group-description",3,"ngModelChange","ngModel","disabled"],[1,"edit-field","bv2-edit-resource-readonly"],[1,"edit-button-row"],["id","access","label","Access Control"],[1,"edit-field-note"],[3,"usersChange","isValid","users"],[3,"usersChange",
"isValid","users","includeAliases","includeViewAliases","containerChips"],["target","_blank",3,"href"],["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"],[1,"bv2-bookmark-item-chip"],[1,"edit-bookmark-group-edit-items-pane"],[1,"edit-bookmark-group-hotlist-picker"],["for","hotlist-picker-button"],[3,"onApply","onCreate","onLoad","selectedHotlistIds","choices",
"checkEditAcl"],[1,"edit-bookmark-group-hotlist-search"],["for","hotlist-search-input-box"],[3,"itemSelect","showGroups","allowStarring"],[1,"edit-bookmark-group-saved-search-picker"],[1,"bv2-saved-search-chip","b-chip","yellow","split"],[1,"edit-bookmark-group-none-select"],[3,"removeHotlist","id"],[1,"left","interactive",3,"href","matTooltip"],["role","button","tabindex","0",1,"right","interactive",3,"click","keydown.enter","keydown.space","matTooltip"],["for","add-from-saved-searches-button"],
["type","button","id","add-from-saved-searches-button","mat-button","","aria-describedby","select-from-saved-searches-button",1,"medium","primary",3,"matMenuTriggerFor"],["id","select-from-saved-searches-button"],"iconPositionEnd  svgIcon arrow-dropdown color primary".split(" "),["matMenuContent",""],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],[1,"edit-bookmark-group-view-items"],[3,"href"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],
["type","button","mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(K(0,"div",3)(1,"div",4)(2,"div",5)(3,"button",6),N("click",function(){return b.back()}),M(4,"mat-icon",7),L(),F(5,S6b,2,1,"button",8),F(6,T6b,2,1,"button",8),L()()(),K(7,"div",9),F(8,s7b,46,35),L());a&2&&(B(5),G(b.isAdmin&&!b.isArchived()?5:-1),B(),G(b.isAdmin&&b.isArchived()?6:-1),B(2),G(!b.isLoading&&b.bookmarkGroup.bookmarkGroupId?8:-1))},dependencies:[Jy,vK,nA,kB,gB,iB,BL,wL,xL,L4,NZ,y3,x2,xj,fE,
yE,mE,VJ,fH,dH,eH,iH,HW],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-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-hotlist-picker[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-hotlist-search[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-saved-search-picker[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:24px;width:24px;margin:0}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-view-items[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);color:#5f6368;color:var(--text-muted);min-height:20px;padding:4px 6px 4px 8px;width:586px}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-view-items[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding-left:0}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-view-items[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:2px}.edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%], .edit-bookmark-group-items-container[_ngcontent-%COMP%]{box-sizing:border-box}.edit-button-row[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:8px}/*# sourceMappingURL=edit_bookmark_group.css.map */"]});var c0d=["savedSearchNameInput"],y7b=function(a){return{displayText:"Admins",values:a}},x7b=function(a){return[a]},F7=function(){Z.call(this);var a=this;this.routeParams=p(wS);this.location=p(bU);this.accessPolicyApi=p(KO);this.savedSearchApi=p(oP);this.paths=p(hW);this.appHistory=p(J2);this.butterBar=p(UN);this.pageTitle=p(n2);this.documentationLinks=p(cS);this.userAccess=p(DP);this.errorHandler=p(pO);this.snackBar=p(rB);this.confirmationDialog=p(dS);this.cdr=p(bQ,{self:!0});this.appEvents=p(UO);
this.activeSession=p(uu);this.checkBeforeExit=p(rY);this.selectedTabIndex=0;this.isDeleting=this.isUpdating=this.isAdmin=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.accessPolicyUnderEdit=js();this.flattenedAccessPolicy=js();this.error="";var b=this.loadSavedSearch(this.routeParams.savedSearchId),c=this.loadUserAccess(this.routeParams.savedSearchId);this.loadAccessPolicy(this.routeParams.savedSearchId);Promise.all([b,
c]).then(function(){var d;(d=a.savedSearchName)==null||d.nativeElement.focus()});this.subscriptions.add(sY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1))};Y(F7,Z);F7.\u0275dir=Z.\u0275dir;h=F7.prototype;h.ngOnInit=function(){this.location.hash()==="access"&&(this.selectedTabIndex=1)};h.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;this.location.hash(e,!0)};
h.loadSavedSearch=function(a){var b=this;this.isLoading=!0;return this.savedSearchApi.get(a).then(function(c){b.savedSearch=c;b.savedSearchUnderEdit=nm(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()})};
h.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SAVED_SEARCH",a).then(function(c){b.flattenedAccessPolicy=ks(c);b.accessPolicyUnderEdit=nm(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};h.loadUserAccess=function(a){var b=this;return EP(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
h.isSaving=function(){return this.isUpdating||this.isDeleting};h.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};h.back=function(){K2(this.appHistory)};h.revertMetadataChanges=function(){this.savedSearchUnderEdit=nm(this.savedSearch);this.error=""};h.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=nm(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};h.hasUnsavedMetadataChanges=function(){return!mm(this.savedSearch,this.savedSearchUnderEdit)};
h.hasUnsavedAccessPolicyChanges=function(){return!mm(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};h.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};
h.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=nm(b);a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})}).catch(function(b){a.errorHandler.errorHandler(null,
b)}).finally(function(){a.isUpdating=!1}))};h.validate=function(){if(this.savedSearchUnderEdit.name==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};
h.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.confirmationDialog.open({title:"Change saved search admins",content:Bh("Warning: You may be removing yourself from the admins. Unless you are granted access via a group, you may lose the permission to edit the access settings"),isDestructive:!0,onConfirm:function(){a.doSaveAccessPolicy()}})};
h.doSaveAccessPolicy=function(){var a=this;try{var b=ls(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);this.butterBar.showWarning(b);return}this.isUpdating=!0;this.snackBar.open("Saving access settings...","dismiss",{duration:0});this.accessPolicyApi.update("SAVED_SEARCH",this.savedSearch.searchId,b).then(function(c){a.snackBar.open("Access settings saved.","dismiss",{duration:0});a.flattenedAccessPolicy=ks(c);a.accessPolicyUnderEdit=nm(a.flattenedAccessPolicy);
a.loadUserAccess(String(a.savedSearch.searchId));a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})},function(c){a.errorHandler.errorHandler(null,c);a.butterBar.showWarning(Qp(c),0)}).finally(function(){a.isUpdating=!1})};h.delete=function(){var a=this;this.confirmationDialog.open({title:"Delete saved search",content:Bh("Do you want to delete this saved search?"),isDestructive:!0,onConfirm:function(){a.doDelete()}})};
h.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"});vrd(a.location,"/")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isDeleting=!1})};
F7.\u0275fac=function(a){return new (a||F7)};
F7.\u0275cmp=D({type:F7,selectors:[["b-edit-saved-search"]],viewQuery:function(a,b){a&1&&(hg(c0d,5),hg(wL,5,Hd));if(a&2){var c;lg(c=mg())&&(b.savedSearchName=c.first);lg(c=mg())&&(b.tabs=c)}},standalone:!1,features:[Gg([bQ]),Ef],decls:9,vars:3,consts:[["savedSearchNameInput",""],[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],["type","button","mat-button",
"","color","primary","matTooltip","Delete saved search",3,"disabled"],[1,"bv2-view"],[1,"edit-resource-header"],["type","button","mat-button","","color","primary","matTooltip","Delete saved search",3,"click","disabled"],[1,"edit-resource-header-link",3,"href"],["gmat-tabs","","mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["id","basic","label","Basic Information"],[1,"edit-resource-panel"],[3,"error"],[1,"edit-field"],["for","saved-search-name",1,"required"],[1,"edit-field-header"],
["type","text","id","saved-search-name","required","","aria-required","true",3,"ngModelChange","ngModel","disabled"],["for","saved-search-description"],["id","saved-search-description",3,"ngModelChange","ngModel","disabled"],[1,"edit-field","bv2-edit-resource-readonly"],["for","saved-search-query"],[1,"edit-field-note"],[1,"edit-saved-search-query-container","codefont"],[1,"edit-button-row"],["id","access","label","Access Control"],["for","saved-search-acl-admins"],[3,"usersChange","isValid","users"],
["for","saved-search-acl-readers"],[3,"usersChange","isValid","users","includeAliases","includeViewAliases","containerChips"],["target","_blank",3,"href"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],["type","button","mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4),N("click",function(){return b.back()}),M(4,"mat-icon",5),L(),F(5,t7b,2,1,"button",6),L()()(),K(6,"div",7),F(7,u7b,3,0,"div",
8),F(8,z7b,50,34),L());a&2&&(B(5),G(b.isAdmin?5:-1),B(2),G(b.isLoading||b.savedSearch?-1:7),B(),G(!b.isLoading&&b.savedSearch?8:-1))},dependencies:[Jy,vK,nA,kB,gB,iB,BL,wL,xL,L4,xj,fE,yE,mE,HW],encapsulation:2});var d0d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(d0d,W);d0d.prototype.getSloId_asLegacyNumberOrString=function(){return Cp(this,1)};d0d.prototype.getSloId_asString=function(){return tn(this,1)};d0d.prototype.setSloId=function(a){return Io(this,1,a)};var e0d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(e0d,W);h=e0d.prototype;h.getAuthor=function(){return X(this,Em,1)};h.setAuthor=function(a){Mi(this,Em,1,a)};h.hasAuthor=function(){return xi(this,Em,1)};h.getTimestamp=function(){return X(this,Si,2)};h.setTimestamp=function(a){return Mi(this,Si,2,a)};h.hasTimestamp=function(){return xi(this,Si,2)};h.getAdd=function(){return X(this,vr,3)};h.setAdd=function(a){return Mi(this,vr,3,a)};
h.getRemove=function(){return X(this,vr,4)};h.setRemove=function(a){return Mi(this,vr,4,a)};h.getAddMask=function(){return X(this,Cq,5)};h.getMutableAddMask=function(){return Ii(this,Cq,5)};h.setAddMask=function(a){return Mi(this,Cq,5,a)};h.getRemoveMask=function(){return X(this,Cq,6)};h.getMutableRemoveMask=function(){return Ii(this,Cq,6)};h.setRemoveMask=function(a){return Mi(this,Cq,6,a)};h.getFieldUpdatesList=function(){return Bi(this,sfd,7,Ci())};var f0d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(f0d,W);var g0d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,g0d.messageId)};Y(g0d,W);g0d.prototype.getIt=function(){return X(this,f0d,1,jb)};g0d.prototype.setIt=function(a){return Mi(this,f0d,1,a,jb)};g0d.messageId="b.ListSloUpdatesResponse";var G7=function(){this.executor=p(cO);this.bCacheFactory=p(aP);this.sloHistories=this.bCacheFactory.get("slo_histories-second-level-cache")||this.bCacheFactory.create("slo_histories-second-level-cache",{capacity:25})};G7.prototype.get=function(a){var b=this.sloHistories.get(String(a));return b!==void 0?b:this.sloHistories.put(String(a),h0d(this,a))};
var h0d=function(a,b){var c=(new d0d).setSloId(Number(b));return a.executor.post({url:"action/slos/"+b+"/updates",body:c,responseConstructor:g0d}).then(function(d){d=d.getIt();return{updates:Bi(d,e0d,1,Ci()).map(NWa)}})};G7.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};G7.prototype.invalidateCache=function(a){this.sloHistories.remove(String(a))};G7.\u0275fac=function(a){return new (a||G7)};G7.\u0275prov=Dc({token:G7,factory:G7.\u0275fac,providedIn:"root"});var J7b=function(a){return{displayText:"Admins",values:a}},I7b=function(a){return[a]},H7=function(){var a=p(uu),b=p(rY);Z.call(this);var c=this;this.routeParams=p(wS);this.bLocation=p(bU);this.appHistory=p(J2);this.butterBar=p(UN);this.pageTitle=p(n2);this.documentationLinks=p(cS);this.userAccess=p(DP);this.accessPolicyApi=p(KO);this.sloApi=p(JQ);this.sloUpdatesApi=p(G7);this.sloUpdatesService=p(bWd);this.errorHandler=p(pO);this.matDialogService=p(UA);this.analytics=p(eQ);this.confirmationDialogService=
p(dS);this.appEvents=p(UO);this.editableAccessPolicy=js();this.flattenedAccessPolicy=js();this.historyDiffs=void 0;this.isImportedFromBugScope=this.isUneditedFromBugScope=this.elementPickerIsValid=this.isAdminInternal=this.isUpdating=this.isLoading=!1;this.selectedTabIndex=0;this.validity={};this.isInvalid=function(){return Object.values(c.validity).some(function(d){return!d})};this.subscriptions.add(sY(b,function(){return c.hasUnsavedChanges()},!1));b=this.routeParams.sloId;this.resourceName=dq("SLO",
rm(b));if(this.sloEnabled=a.isInternalSession())i0d(this,b),this.loadUserAccess(b),this.loadAccessPolicy(b),j0d(this,b);this.alertState={getValue:function(){return c.editableCopy?c.editableCopy.alertState==="ON":!1},getSavedValue:function(){return c.slo?c.slo.alertState==="ON":!1},setValue:function(d){c.editableCopy&&(c.editableCopy.alertState=d?"ON":"OFF")}};this.currentUserEmail=a.getUserEmail()};Y(H7,Z);H7.\u0275dir=Z.\u0275dir;
H7.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;this.bLocation.hash(e,!0)};H7.prototype.ngOnInit=function(){this.bLocation.hash()==="access"&&(this.selectedTabIndex=1)};H7.prototype.updateCollection=function(a){this.editableCopy&&(this.editableCopy.elements=a)};
var i0d=function(a,b){a.isLoading=!0;a.sloApi.get(b).then(function(c){a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=nm(a.slo);a.pageTitle.setTitle("SLO: "+c.name)}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isLoading=!1})};
H7.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SLO",Number(a)).then(function(c){b.flattenedAccessPolicy=ks(c);b.editableAccessPolicy=nm(b.flattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var k0d=function(a,b){return a.sloUpdatesApi.get(b).then(function(c){a.historyDiffs=c.updates.map(function(d){return dWd(a.sloUpdatesService,d)})}).catch(function(c){a.errorHandler.errorHandler(null,c)})};h=H7.prototype;
h.loadUserAccess=function(a){var b=this;EP(this.userAccess,"admin",dq("SLO",rm(a))).then(function(c){b.isAdminInternal=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};h.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};h.hasUnsavedMetadataChanges=function(){return!mm(this.slo,this.editableCopy)};h.hasUnsavedAccessPolicyChanges=function(){return!mm(this.flattenedAccessPolicy,this.editableAccessPolicy)};
h.saveMetadata=function(){var a=this;l0d(this.slo.elements,this.editableCopy.elements)?this.save():this.confirmationDialogService.open({title:"Save SLO changes?",content:Dh([Bh("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."),Eh("br"),Eh("br"),Bh("Please combine changes into as few updates as possible.")]),onConfirm:function(){a.save()},onDismiss:PB})};
var D7b=function(a,b){if(!a.hasUnsavedMetadataChanges()){var c=function(){a.editableCopy.isArchived=b;a.save()};b?a.confirmationDialogService.open({title:"Archive SLO?",content:Bh("Archiving this SLO will prevent new usages of the SLO, and will hide the SLO from most searches."),onConfirm:c,onDismiss:PB}):c()}},l0d=function(a,b){if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++){var d=a[c],e=b[c],f;if(f=d.metric===e.metric&&d.matcher===e.matcher)d=d.objective,e=e.objective,f=!d&&!e||!!d&&
!!e&&d.seconds===e.seconds;if(!f)return!1}return!0};
H7.prototype.save=function(){var a=this,b=this.editableCopy;Rr(this.butterBar,"Saving SLO ID "+b.sloId+"...");this.isUpdating=!0;this.sloApi.update(b).then(function(c){var d='Changes to SLO "'+c.name+'" saved.';l0d(a.slo.elements,a.editableCopy.elements)||(d+=" Propagating this change may take several hours.");Rr(a.butterBar,d);a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=nm(c);a.sloUpdatesApi.invalidateCache(a.slo.sloId);a.analytics.trackEvent("editSlo","update")}).catch(function(c){a.errorHandler.errorHandler(null,
c)}).finally(function(){a.isUpdating=!1})};H7.prototype.saveAccessPolicy=function(){var a=this;this.isRevokingAdmin()?this.confirmationDialogService.open({title:"Change SLO admins",content:Bh("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:PB}):this.doSaveAccessPolicy()};
H7.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=ls(this.editableAccessPolicy)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);this.butterBar.showWarning(b);return}this.isUpdating=!0;Rr(this.butterBar,"Saving access settings...");this.accessPolicyApi.update("SLO",this.slo.sloId,b).then(function(c){Rr(a.butterBar,"Access settings saved.");a.flattenedAccessPolicy=ks(c);a.editableAccessPolicy=nm(a.flattenedAccessPolicy);a.loadUserAccess(a.slo.sloId);a.analytics.trackEvent("editSlo",
"updateAccessPolicy")},function(c){a.butterBar.showWarning(Qp(c),0)}).finally(function(){a.isUpdating=!1})};H7.prototype.isRevokingAdmin=function(){return this.isRevokingDirectAdmin()};
var j0d=function(a,b){k0d(a,b).then(function(){if(a.historyDiffs&&a.historyDiffs.length){var c=a.historyDiffs[0],d=a.historyDiffs[a.historyDiffs.length-1];c.author&&wm(c.author)==="buganizer-system@google.com"&&(a.isImportedFromBugScope=!0);d.author&&wm(d.author)==="buganizer-system@google.com"&&(a.isUneditedFromBugScope=!0)}})};h=H7.prototype;
h.isRevokingDirectAdmin=function(){if(mm(this.flattenedAccessPolicy.admins,this.editableAccessPolicy.admins))return!1;var a="USER:"+this.currentUserEmail;return this.flattenedAccessPolicy.admins.includes(a)&&!this.editableAccessPolicy.admins.includes(a)};
h.revertMetadataChanges=function(){var a=this;l0d(this.slo.elements,this.editableCopy.elements)?this.editableCopy=nm(this.slo):this.confirmationDialogService.open({title:"Revert SLO changes?",content:Dh([Bh("Revert all changes to this SLO?")]),onConfirm:function(){a.editableCopy=nm(a.slo)},onDismiss:PB})};h.revertAccessPolicyChanges=function(){this.editableAccessPolicy=nm(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};h.isSaving=function(){return this.isUpdating};
h.back=function(){K2(this.appHistory)};h.isEditDisabled=function(){return!this.editableCopy||this.isSaving()||!this.isAdmin()};h.isAdmin=function(){return this.isAdminInternal};h.showUpdateHistoryModal=function(){var a=this;k0d(this,this.slo.sloId).then(function(){a.matDialogService.open(R6,{width:"600px",data:{updateDiffs:a.historyDiffs}});a.analytics.trackEvent("updateHistoryModal","open");a.analytics.trackEvent("editSlo","viewHistory")})};H7.\u0275fac=function(a){return new (a||H7)};
H7.\u0275cmp=D({type:H7,selectors:[["edit-slo-page"]],viewQuery:function(a,b){a&1&&hg(wL,5,Hd);if(a&2){var c;lg(c=mg())&&(b.tabs=c)}},standalone:!1,features:[Ef],decls:7,vars:2,consts:[["sloBasicsForm","ngForm"],[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,"bv2-view-loading"],[1,"edit-resource-header"],[1,"vertical-centered"],["gmat-tabs","",1,"bv2-tab-bar",3,"selectedIndexChange",
"selectedIndex"],["id","basic","label","Basic Information"],[1,"edit-resource-panel","edit-slo-basics-form"],["name","sloBasicsForm"],[1,"edit-field"],["for","slo-name",1,"required"],[1,"edit-field-header"],["type","text","id","slo-name","name","slo-name",3,"ngModelChange","required","ngModel","disabled"],["for","slo-description"],["id","slo-description","name","slo-description",3,"ngModelChange","ngModel","disabled"],[1,"edit-field","permission-toggle",3,"bv2-edit-resource-readonly"],["id","bs-warning"],
[3,"onCollectionUpdate","onValidation","isDisabled","collection"],["id","bv2-slo-edit-buttons"],[1,"edit-button-row"],[1,"edit-button-group"],["title","View history for 'Basic Information'",3,"onAction"],["id","access","label","Access Control"],[1,"edit-resource-panel"],["name","accessControlForm","novalidate",""],["for","slo-acl-admins"],[1,"edit-field-note"],[3,"usersChange","isValid","users"],["for","slo-acl-readers"],[3,"usersChange","isValid","users","includeAliases","includeViewAliases","containerChips"],
["target","_blank",3,"href"],[1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],[3,"change","checked","disabled"],[1,"edit-field-help"],[1,"permission-toggle-help","edit-field-help"],["target","_blank","href","https://goto.google.com/buganizer-bugscope-slo-sync"],["format","fill","tooltip","Save any changes to the SLO",3,"onAction","disabled"],["tooltip","Discard any changes",3,"onAction","disabled"],["format","fill","tooltip","Archive the SLO and prevent new usages",3,"disabled"],
["tooltip","Unarchive the SLO and allow new usages",3,"disabled"],["format","fill","tooltip","Archive the SLO and prevent new usages",3,"onAction","disabled"],["tooltip","Unarchive the SLO and allow new usages",3,"onAction","disabled"],["format","fill",3,"onAction","disabled"],[3,"onAction"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2)(2,"b-button",3),N("onAction",function(){return b.back()}),M(3,"b-icon",4),L()()(),K(4,"div",5),F(5,A7b,2,0,"div",6),F(6,K7b,55,37,"div"),L());a&2&&(B(5),G(b.isLoading?
5:-1),B(),G(!b.isLoading&&b.slo&&b.slo.sloId&&b.editableCopy?6:-1))},dependencies:[MU,nE,xj,fE,gE,yE,mE,kE,sT,BL,wL,xL,HW,kL,hI,N5,cU],encapsulation:2});var I7=function(){Z.apply(this,arguments);var a=this;this.contextSensitiveRegistry=p(XQ);this.issueFullFridge=p(gQ);this.issuePicker=p(UX);this.snackBar=p(rB);this.imageUrls=p(XV);this.TEA_DARK=this.imageUrls.TEA_DARK;this.TEA_LIGHT=this.imageUrls.TEA_LIGHT;this.getStatus=function(b){return b.snapshot[0].status};this.id$=this.contextSensitiveRegistry.getIssueId();this.searchUrl$=this.id$.pipe(A(function(b){return{path:"/issues",params:{q:"blockedbyid:"+b}}}));this.issue$=this.id$.pipe(yf(function(b){return b?
a.issueFullFridge.watch(b):ce(void 0)}));this.blockingIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}));this.issuesBeingBlocked$=this.blockingIds$.pipe(yf(function(b){return a.issueFullFridge.watchSet(b)}));this.blockedAndOpen$=this.issuesBeingBlocked$.pipe(A(function(b){return b.filter(jo)}));this.blockedAndOpenIds$=this.blockedAndOpen$.pipe(A(function(b){return b.map(function(c){return String(c.issueId)})}));this.blockedAndClosed$=this.issuesBeingBlocked$.pipe(A(function(b){return b.filter(function(c){return ZTa(c)})}));
this.blockedAndClosedIds$=this.blockedAndClosed$.pipe(A(function(b){return b.map(function(c){return String(c.issueId)})}));this.thinking$=this.issueFullFridge.thinking$;this.getMenuItems=function(b){return[{type:"action",label:"Remove this relationship",action:function(){m0d(a,b)},title:"Remove this relationship",icon:"clear"}]};this.didChooseBlocking=function(b){var c;return y(function(d){if(d.nextAddress==1)return z(d,fe(a.id$),2);c=d.yieldResult;return c==null?d.return():z(d,a.issueFullFridge.addBlocking(c,
b).catch(a.gotErr),0)})};this.gotErr=function(b){a.snackBar.open(Qp(b)||"Error with network request","close",{panelClass:"error"})}};Y(I7,Z);I7.\u0275dir=Z.\u0275dir;var L7b=function(a){a.issuePicker.open({title:"Add Blocking",allowMultipleIds:!0,edgeType:"blocking"},a.didChooseBlocking)},m0d=function(a,b){var c;y(function(d){if(d.nextAddress==1)return z(d,fe(a.id$),2);c=d.yieldResult;return c==null?d.return():z(d,a.issueFullFridge.removeBlocking(c,[String(b)]).catch(a.gotErr),0)})};
I7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(I7)))(b||I7)}}();
I7.\u0275cmp=D({type:I7,selectors:[["ng-component"]],standalone:!1,features:[Ef],decls:5,vars:6,consts:[[1,"carded","bg-main"],[1,"pos-tr","padded"],[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"],["type","button","mat-flat-button","","color","primary","matTooltip",
"Add something this issue is blocking",1,"small",3,"click"],[1,"margin-s-top","flex-kids-x","gap-s"],["mat-button","","color","primary",1,"small",3,"routerLink","queryParams"],[1,"section-heading","muted"],[1,"muted","margin-bottom"],[3,"issueIds","menuItemFactory"],[1,"unstyled","reverse-padded-sides"],[1,"padded-x",3,"routerLink"],[1,"right"],["type","button","mat-icon-button","","aria-label","",1,"invisible"]],template:function(a,b){a&1&&(K(0,"section",0),F(1,Z7b,2,1),T(2,"async"),L(),F(3,$7b,
2,0,"aside",1),T(4,"async"));if(a&2){var c;B();G((c=U(2,2,b.blockingIds$))?1:-1,c);B(2);G(U(4,4,b.thinking$)?3:-1)}},dependencies:[hF,kB,gB,iB,vK,nA,cU,XZ,Tx],styles:["[_nghost-%COMP%]{display:block;padding:8px}.b-chip[_ngcontent-%COMP%]{margin:-3px 0;margin-right:0}.section-heading[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}b-issues-table[_ngcontent-%COMP%] + .section-heading[_ngcontent-%COMP%]{margin-top:16px}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:8px;padding-left:16px;line-height:1.3}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{margin-left:auto;margin-top:-8px;margin-bottom:-8px}[_nghost-%COMP%]     .remove-btn{opacity:0;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;margin:-16px 0}[_nghost-%COMP%]     ol a:hover .remove-btn{opacity:1}ol[_ngcontent-%COMP%]   a[disabled=true][_ngcontent-%COMP%]{background:transparent;opacity:.5;cursor:default}[_nghost-%COMP%]     ol a[disabled=true] .remove-btn{opacity:0}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:240px;min-height:230px}\n/*# sourceMappingURL=issue_blocking.css.map */"],
changeDetection:0});var n0d=function(){};n0d.\u0275fac=function(a){return new (a||n0d)};n0d.\u0275mod=$e({type:n0d});n0d.\u0275inj=Fc({imports:[WO,Hy,uI,DE,EE,mB,DL,wK,xX,TK,xU,eU,a1]});var J7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,J7.messageId)};Y(J7,W);J7.prototype.getIssueId=function(){return pn(this,1,void 0,jb)};J7.prototype.getIssueId_asString=function(){return nn(this,1,void 0,jb)};J7.prototype.setIssueId=function(a){return Jn(this,1,a,void 0,jb)};J7.messageId="b.MonorailIssueRedirectRequest";var K7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,K7.messageId)};Y(K7,W);K7.prototype.getUrl=function(){return X(this,hm,1,jb)};K7.prototype.setUrl=function(a){return Mi(this,hm,1,a,jb)};K7.prototype.hasUrl=function(){return xi(this,hm,1,jb)};K7.messageId="b.MonorailIssueRedirectResponse";var o0d=function(){this.executor=p(bO)},p0d=function(a,b){b=(new J7).setIssueId(b);return a.executor.post({url:"action/monorailIssueRedirect",body:b,responseConstructor:K7}).pipe(A(function(c){return wEa(c.getUrl())}),gf(function(){return ce(null)}))};o0d.\u0275fac=function(a){return new (a||o0d)};o0d.\u0275prov=Dc({token:o0d,factory:o0d.\u0275fac,providedIn:"root"});var i8b=function(a,b){return b.issueId},q0d={BLOCKED_BY_ISSUES:"blocked_by",PARENT_ISSUES:"parent"},L7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(gQ);this.router=p(fF);this.STATUS_JS_TERSE=kcd;this.ListIssuesHovercardMode=q0d;this.mode="blocked_by";this.currentIssueId="";this.issueIds$=new uf(1);this.init=new uf(1);this.issues$=this.issueIds$.pipe(ue(Pm),yf(function(b){return a.issueFullFridge.watchSet(b)}),A(function(b){return a.mode==="parent"?b.filter(bUa):b.filter(jo)}))};
Y(L7,Z);L7.\u0275dir=Z.\u0275dir;L7.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};var f8b=function(a){var b;(b=a.hovercardInstance)==null||b.closeHovercard$.next();a.issueIds$.subscribe(function(c){c=c!=null?c:[];for(var d="id:(",e=m(c.entries()),f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;g=g.next().value;d+=g;d=f<c.length-1?d+"|":d+")"}c={q:d};a.router.navigate([qs.listIssues.makeHref()],{queryParams:c})})};
L7.prototype.ngOnInit=function(){var a=this;this.issues$.pipe(zf(this.destroyed$)).subscribe(function(){a.init.next()})};da.Object.defineProperties(L7.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(a)}}});L7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(L7)))(b||L7)}}();
L7.\u0275cmp=D({type:L7,selectors:[["b-list-issues-card"]],inputs:{mode:"mode",currentIssueId:"currentIssueId",issueIds:"issueIds",hovercardInstance:"hovercardInstance"},outputs:{init:"init"},standalone:!1,features:[Ef],decls:2,vars:3,consts:[["role","dialog","aria-label","List Issues Hovercard",1,"onedev-hovercard-content"],[1,"border-bottom","header-container"],[1,"flex-kids-x","more-issues-container","margin-s-right"],["svgIcon","account_tree_24px",1,"icon-xxs","muted"],[1,"header-text"],["svgIcon",
"slo-status-no-data",1,"icon-xxs","gfx-bad"],[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,"class"],["type","button","mat-button","",1,"primary","small",3,"click"]],template:function(a,b){a&1&&(F(0,j8b,8,4,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issues$))?0:-1,c)}},dependencies:[Jy,hF,kB,gB,Tx],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.header-container[_ngcontent-%COMP%]{line-height:14px;padding:8px 12px}.header-text[_ngcontent-%COMP%]{font-family:Google Sans Display,Roboto,Arial,sans-serif;font-size:.8125rem;line-height:16px;color:#1a73e8;color:var(--text-primary);margin-left:6px}.issue-row[_ngcontent-%COMP%]{line-height:32px;margin:0 12px;padding:4px 0;font-family:Roboto,Arial,sans-serif;color:#202124;color:var(--text)}.issue-row[_ngcontent-%COMP%]   .issue-id[_ngcontent-%COMP%]{height:13px;font-weight:700;padding:1px 4px;margin-right:4px;color:#5f6368;color:var(--text-muted);border:1px solid;border-color:#e8eaed;border-color:var(--gfx-inverse);border-radius:4px}.issue-row[_ngcontent-%COMP%]   .issue-title[_ngcontent-%COMP%]{max-width:200px}.issue-row[_ngcontent-%COMP%]   .issue-title[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}.more-issues-container[_ngcontent-%COMP%]{padding:4px 0;-webkit-box-pack:end;-webkit-justify-content:end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:end}"]});var M7=function(){this.issueFullFridge=p(gQ);this.paths=p(hW);this.cdr=p(Cx);this.ancestors=new Map;this.issueId="";this.ListIssuesHovercardMode=q0d;this.reorderedAncestors=[];this.issueIdToTitle=new Map;this.multiParentIssueIds=[]};M7.prototype.ngOnChanges=function(a){var b=this;a.ancestors&&r0d(this).then(function(c){b.issueIdToTitle=c;b.cdr.markForCheck()})};M7.prototype.getIssueLink=function(a){return ss(a)};
var r0d=function(a){var b,c,d;return y(function(e){a.reorderedAncestors=[];for(b=a.issueId;;)if(c=a.ancestors.get(b))if(c.sourceIssueIds.length===1)b=c.sourceIssueIds[0],a.reorderedAncestors.push(b);else{a.multiParentIssueIds=c.sourceIssueIds;break}else break;a.reorderedAncestors.reverse();d=tq(a.reorderedAncestors);return d.length===0?e.return(new Map):e.return(fe(ie(d.map(function(f){return a.issueFullFridge.watch(f)})).pipe(A(function(f){return f.filter(Pm)}),A(function(f){var g=new Map;f=m(f);
for(var k=f.next();!k.done;k=f.next())k=k.value,g.set(k.issueId,k.snapshot[0].title);return g}))))})};M7.\u0275fac=function(a){return new (a||M7)};
M7.\u0275cmp=D({type:M7,selectors:[["ancestors-breadcrumbs"]],inputs:{ancestors:"ancestors",issueId:"issueId"},standalone:!1,features:[jx],decls:4,vars:1,consts:[["card","onedevHovercard"],["cardBody",""],["svgIcon","account_tree_24px","title","Ancestor issues",1,"icon-xs","margin-s-right"],[1,"muted",3,"onedevHovercardTrigger","title"],["svgIcon","chevron-right",1,"icon-xs","chevron","muted"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","hovercardInstance","currentIssueId","issueIds",
"mode"],[1,"type-s",3,"href","issueId"]],template:function(a,b){a&1&&(M(0,"mat-icon",2),F(1,m8b,6,5),Nf(2,n8b,3,5,null,null,Mf));a&2&&(B(),G(b.multiParentIssueIds.length>1?1:-1),B(),Of(b.reorderedAncestors))},dependencies:[Jy,MR,KK,LK,SK,MK,L7],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}"],
changeDetection:0});var N7=function(){var a=this;this.issueFullFridge=p(gQ);this.hotlistFridge=p(lP);this.hotlistPicker=p(FY);this.issueId$=new uf(1);this.issue$=this.issueId$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));this.hotlistsOnIssue$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].hotlistId)!=null?c:[]}));this.count$=this.hotlistsOnIssue$.pipe(A(function(b){return b==null?void 0:b.length}),xf(0));this.label$=this.count$.pipe(A(function(b){return b>0?"Hotlists ("+b+")":
"Hotlists"}));this.isDisabled$=this.hotlistFridge.saving$;this.HOTKEYS=Xr};N7.prototype.onClick=function(){cCd(this.hotlistPicker,this.issue$)};da.Object.defineProperties(N7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(String(a))}}});N7.\u0275fac=function(a){return new (a||N7)};
N7.\u0275cmp=D({type:N7,selectors:[["hotlist-picker-btn"]],inputs:{issueId:"issueId"},standalone:!1,decls:4,vars:7,consts:[["type","button","mat-stroked-button","",1,"small",3,"onHotkey","click","hotkey","disabled"]],template:function(a,b){a&1&&(K(0,"button",0),T(1,"async"),N("onHotkey",function(){return b.onClick()})("click",function(){return b.onClick()}),Q(2),T(3,"async"),L());a&2&&(I("hotkey",b.HOTKEYS.OPEN_HOTLIST_PICKER)("disabled",U(1,3,b.isDisabled$)),B(2),S(" ",U(3,5,b.label$),"\n"))},dependencies:[pU,
kB,gB,Tx],encapsulation:2});var s0d=function(a,b){var c=b.permissions,d=b.retentionState,e=b.isComponentAdmin;if(b.isInternal){if(b.retentionOverride==="INDEFINITE")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()}}}},t0d=function(a,b){return b.isInternal?{type:"action",label:"Request issue deletion...",title:"Request issue deletion",action:function(){a.requestIssueDeletion()}}:void 0},u0d=function(a,b){var c=!b.isArchived,d=c?"Archive issue":"Unarchive issue";return{type:"action",label:d,title:d+" (requires Edit Issues permission)",icon:"archive_24px",disabled:!b.permissions.writer,
action:function(){a.submitArchivalState(c)}}},v0d=function(a,b){if(!b.isDeleted&&b.accessLevel==="EXTERNAL_PUBLIC")return{type:"action",label:"Mark as spam...",title:"Mark as spam... (requires Admin Issues permission)",icon:"flag",disabled:!b.permissions.admin,action:function(){a.showFlagAsSpamDialog()}}};var w0d=function(a){return{isDupe:a}},O7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(gQ);this.permissionsFridge=p(CQ);this.issuePicker=p(UX);this.snackBar=p(rB);this.eventsForIssueFridge=p(NP);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 uf(1);this.issue$=this.issueId$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));this.isDupe$=this.issue$.pipe(A(function(b){var c;
return!!(b==null?0:(c=b.snapshot[0])==null?0:c.duplicateOfIssueId)}));this.permissions$=this.issueId$.pipe(yf(function(b){return a.permissionsFridge.watch(cq(b))}));this.canEdit$=this.permissions$.pipe(A(function(b){return!(b==null||!b.writer)}),xf(!0));this.didChooseCanonical=function(b){return function(c){(c=c[0])&&hhd(a.issueFullFridge,c,b).then(function(){a.eventsForIssueFridge.poke(b)}).catch(a.gotErr)}};this.gotErr=function(b){a.snackBar.open(Qp(b)||"Error with network request","close",{panelClass:"error"})}};
Y(O7,Z);O7.\u0275dir=Z.\u0275dir;
var o8b=function(a){var b,c,d;return y(function(e){switch(e.nextAddress){case 1:return a.disabled||a.issueFullFridge.isSaving(a.internalIssueId)?e.return():z(e,fe(a.canEdit$),2);case 2:return(b=e.yieldResult)?z(e,fe(a.isDupe$),3):e.return();case 3:return c=e.yieldResult,z(e,fe(a.issue$),4);case 4:d=e.yieldResult;if(d==null)return e.return();c?x0d(a,d):a.issuePicker.open({title:"Mark issue as duplicate of:",allowMultipleIds:!1,componentId:d.snapshot[0].componentId,edgeType:"canonical",currentResource:{id:d.issueId,
type:"issue"}},a.didChooseCanonical(d.issueId));ae(e)}})},x0d=function(a,b){var c=b.snapshot[0].duplicateOfIssueId;c!=null&&a.issueFullFridge.removeDuplicate(c,b.issueId).then(function(){a.eventsForIssueFridge.poke(b.issueId)}).catch(a.gotErr)};da.Object.defineProperties(O7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)}}});O7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(O7)))(b||O7)}}();
O7.\u0275cmp=D({type:O7,selectors:[["smart-dupe-btn"]],inputs:{disabled:"disabled",issueId:"issueId"},standalone:!1,features:[Ef],decls:2,vars:5,consts:[["type","button","mat-stroked-button","",1,"small",3,"disabled","title"],["type","button","mat-stroked-button","",1,"small",3,"click","disabled","title"]],template:function(a,b){a&1&&(F(0,p8b,3,5,"button",0),T(1,"async"));if(a&2){var c;G((c=Ig(3,w0d,U(1,1,b.isDupe$)))?0:-1,c)}},dependencies:[kB,gB,Tx],encapsulation:2});var P7=function(){this.label=""};P7.prototype.toggle=function(){this.hovercardTrigger&&this.hovercardTrigger.toggle(!this.hovercardTrigger.isExpanded())};P7.\u0275fac=function(a){return new (a||P7)};
P7.\u0275cmp=D({type:P7,selectors:[["help-hover"]],viewQuery:function(a,b){a&1&&hg(SK,5);if(a&2){var c;lg(c=mg())&&(b.hovercardTrigger=c.first)}},inputs:{label:"label",content:"content"},standalone:!1,decls:6,vars:3,consts:[["chipHovercard","onedevHovercard"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["svgIcon","help-outline",1,"icon-s",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"]],template:function(a,b){a&1&&(K(0,"onedev-hovercard",null,0)(2,"div",1)(3,"div",
2),F(4,r8b,1,1,"ng-container"),L()()(),M(5,"mat-icon",3));a&2&&(a=qg(1),B(2),If("aria-label",b.label),B(2),G(b.content?4:-1),B(),I("onedevHovercardTrigger",a))},dependencies:[Sx,Jy,KK,SK],encapsulation:2});var y0d=function(){};y0d.\u0275fac=function(a){return new (a||y0d)};y0d.\u0275mod=$e({type:y0d});y0d.\u0275inj=Fc({imports:[WO,TK]});var w8b=function(a,b){return b.label},Q7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(gQ);this.issuePermissionService=p($Q);this.activeSession=p(uu);this.appEvents=p(UO);this.issueArchiveService=p(u1);this.domSafe=p(mR);this.editIssueService=p(GS);this.matDialogService=p(UA);this.analytics=p(eQ);this.issueId$=new uf(1);this.retentionEnabled=this.activeSession.isInternalSession();this.HOTKEYS=Xr;this.issue$=this.issueId$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));
this.issueDerivedProperties$=this.issue$.pipe(A(function(b){var c,d,e,f,g,k,l;return{modifiedTimeMilliseconds:(b==null?void 0:(c=b.aggregatedData)==null?void 0:c.modifiedTimeMicros)!=null?b.aggregatedData.modifiedTimeMicros/1E3:void 0,voted:(k=b==null?void 0:(d=b.userData)==null?void 0:d.voted)!=null?k:!1,voteCount:(l=b==null?void 0:(e=b.aggregatedData)==null?void 0:e.voteCount)!=null?l:0,notificationSubscription:Om(b==null?void 0:(f=b.userData)==null?void 0:f.notificationSubscription),retentionState:b==
null?void 0:(g=b.aggregatedData)==null?void 0:g.retentionState}}));this.menuItems$=z0d(this);this.state$=ie([this.issueId$,this.issueDerivedProperties$,this.menuItems$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return Object.assign({},{issueId:b},d,{menuItems:c})}))};Y(Q7,Z);Q7.\u0275dir=Z.\u0275dir;h=Q7.prototype;h.onAction=function(a,b){return y(function(c){if(c.nextAddress==1)return z(c,os(0),2);a.action(b);ae(c)})};
h.updateSubscription=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return z(d,fe(b.issueId$),2);if(d.nextAddress!=3)return(c=d.yieldResult)?z(d,b.editIssueService.updateSubscription(c,a),3):d.return();b.analytics.trackEvent("editIssue","updateSubscription",a);ae(d)})};h.showNotificationSettings=function(a){this.appEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey,settingsTabName:"notifications"})};
h.showIndefiniteRetentionDialog=function(a){var b=this,c;return y(function(d){return d.nextAddress==1?b.editIssueService.savingState(a).get("retention")?d.return():z(d,fe(SA(b.matDialogService.open(Zud,{maxWidth:560}))),2):(c=d.yieldResult)?z(d,b.editIssueService.updateIssueRetention(a,"INDEFINITE"),0):d.jumpTo(0)})};
h.showComponentRetentionDialog=function(a){var b=this,c;return y(function(d){return d.nextAddress==1?b.editIssueService.savingState(a).get("retention")?d.return():z(d,fe(SA(b.matDialogService.open(Vud,{maxWidth:560}))),2):(c=d.yieldResult)?z(d,b.editIssueService.updateIssueRetention(a,"COMPONENT_DEFAULT"),0):d.jumpTo(0)})};
h.showFlagAsSpamDialog=function(a){var b=this,c;return y(function(d){return d.nextAddress==1?z(d,fe(SA(b.matDialogService.open(Yud,{maxWidth:560}))),2):(c=d.yieldResult)?z(d,Ynd(b.editIssueService,String(a)),0):d.jumpTo(0)})};
var z0d=function(a){var b={requestIssueDeletion:function(){a.domSafe.openInNewTab(Ifb(a.activeSession.isInternalSession()))},showIndefiniteRetentionDialog:function(){var c;return y(function(d){return d.nextAddress==1?z(d,fe(a.issueId$),2):(c=d.yieldResult)?z(d,a.showIndefiniteRetentionDialog(c),0):d.return()})},showComponentRetentionDialog:function(){var c;return y(function(d){return d.nextAddress==1?z(d,fe(a.issueId$),2):(c=d.yieldResult)?z(d,a.showComponentRetentionDialog(c),0):d.return()})},submitArchivalState:function(c){var d;
return y(function(e){return e.nextAddress==1?z(e,fe(a.issueId$),2):(d=e.yieldResult)?z(e,a.issueArchiveService.submitArchivalState(d,c),0):e.return()})},showFlagAsSpamDialog:function(){var c;return y(function(d){return d.nextAddress==1?z(d,fe(a.issueId$),2):(c=d.yieldResult)?z(d,a.showFlagAsSpamDialog(c),0):d.return()})}};return ie([a.issue$,a.issuePermissionService.userIsComponentAdmin$,a.issuePermissionService.issuePermissions$]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;
var f;d={permissions:d.next().value,accessLevel:z5a(c),isArchived:(f=c==null?void 0:c.isArchived)!=null?f:!1,isDeleted:x5a(c),isInternal:a.activeSession.isInternalSession(),isComponentAdmin:e,retentionOverride:C5a(c),retentionState:F5a(c)};return[u0d(b,d),v0d(b,d),t0d(b,d),s0d(b,d)].filter(Pm)}))};da.Object.defineProperties(Q7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});Q7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(Q7)))(b||Q7)}}();
Q7.\u0275cmp=D({type:Q7,selectors:[["issue-header-actions"]],viewQuery:function(a,b){a&1&&hg(P7,5);if(a&2){var c;lg(c=mg())&&(b.helpHover=c.first)}},inputs:{issueId:"issueId"},standalone:!1,features:[Ef],decls:2,vars:3,consts:[["smartDupeBtn",""],["menu","matMenu"],["retentionHelpContent",""],[3,"issueId","voteCount","upvoted"],[3,"issueId"],[3,"onHotkey","issueId","hotkey"],["aria-label","Notification menu",3,"subscriptionChange","showNotificationSettings","subscription","issueId","iconOnly"],["type",
"button","mat-icon-button","","aria-label","More actions","matTooltip","More actions",1,"medium",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],[1,"issue-header-actions-menu"],["type","button","mat-menu-item","",3,"disabled","title"],["type","button","mat-menu-item","",1,"informational-only","border-top","flush-bottom"],["type","button","mat-menu-item","",3,"click","disabled","title"],[1,"icon-s",3,"svgIcon"],["type","button","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&&(F(0,x8b,14,11),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.state$))?0:-1,c)}},dependencies:[LW,Jy,P7,pU,kB,iB,VJ,fH,dH,iH,vK,nA,C5,B4,A4,O7,N7,Tx],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-mdc-button.small{font-size:.8125rem}.bv2-material   [_nghost-%COMP%]     button.mat-mdc-icon-button:not(.mat-primary):not([disabled]){color:#5f6368;color:var(--muted)}  .issue-header-actions-menu .mat-mdc-menu-content button.mat-mdc-menu-item.informational-only mat-icon.mat-icon{vertical-align:text-bottom}"],
changeDetection:0});var R7=function(){Z.call(this);var a=this;this.issueDetailsBrain=p(YQ);this.issuePagination=p(m2);this.issueInteractionsTracking=p(CS);this.bLocation=p(bU);this.paths=p(hW);this.refreshMonitor=p(VP);this.butterBar=p(UN);this.internalSearchResults$=new Mj(null);this.searchResults$=this.internalSearchResults$.pipe(nf(),yf(function(b){return b?b.changed$:ce(null)}));this.issueId$=this.issueDetailsBrain.id$;this.totalText$=this.searchResults$.pipe(A(function(b){var c;return(c=b==null?void 0:b.totalText)!=
null?c:""}));this.backNavigationLabel$=this.searchResults$.pipe(A(function(b){return(b==null?0:b.params.returnUrl)?"Back to previous search":"Go home"}));this.issueIndex$=ie([this.searchResults$,this.issueId$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d;return(d=c&&(b==null?void 0:$Nd(b,c)))!=null?d:-1}));this.hasPreviousIssue$=ie([this.searchResults$,this.issueId$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d;if(d=c)b==null?b=0:(c=$Nd(b,c),b=c==
null||c===-1?!1:c>b.startIndex||b.params.page>1),d=b;return!!d}));this.hasNextIssue$=ie([this.searchResults$,this.issueId$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d;if(d=c)b==null?b=0:(c=$Nd(b,c),b=c==null||c===-1?!1:c<b.endIndex||b.params.page<b.numPages),d=b;return!!d}));this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){A0d(a)}));this.subscriptions.add(this.issueDetailsBrain.id$.subscribe(function(b){a.issueId=b;A0d(a)}))};Y(R7,Z);
R7.\u0275dir=Z.\u0275dir;
var B0d=function(a){var b,c,d=(c=(b=a.internalSearchResults$.value)==null?void 0:b.params.returnUrl)!=null?c:"";a.issueInteractionsTracking.trackNavigation(d===""?"home":"up");a.bLocation.hash("");a.bLocation.setUrl(d)},B8b=function(a){var b=Br(a.hasNextIssue$),c=Br(a.issueIndex$);b&&c&&C0d(a,c+1)},A8b=function(a){var b=Br(a.hasPreviousIssue$),c=Br(a.issueIndex$);b&&c&&C0d(a,c-1)},A0d=function(a){var b,c,d;y(function(e){if(e.nextAddress==1)return z(e,hOd(a.issuePagination).catch(y8b),2);b=e.yieldResult;
a.internalSearchResults$.next((c=b)!=null?c:null);if(!b||!a.issueId)return e.return();d=$Nd(b,a.issueId);return d===-1?e.jumpTo(0):z(e,jOd(a.issuePagination,d).catch(y8b),0)})},C0d=function(a,b){jOd(a.issuePagination,b).then(function(c){a.bLocation.setUrl(ss(c))},function(){a.butterBar.showWarning("Can't find issue id for index '"+b+"'")})};R7.\u0275fac=function(a){return new (a||R7)};R7.\u0275prov=Dc({token:R7,factory:R7.\u0275fac,providedIn:"root"});var D0d=function(){this.currentSearchResults=p(R7);this.HOTKEYS=Xr};D0d.\u0275fac=function(a){return new (a||D0d)};
D0d.\u0275cmp=D({type:D0d,selectors:[["b-pagination-one-issue"]],standalone:!1,decls:2,vars:3,consts:[["type","button","mat-icon-button","","matTooltip","Previous Issue","aria-label","Previous Issue",1,"medium",3,"onHotkey","click","hotkey","disabled"],["svgIcon","arrow-left",1,"icon-l"],["type","button","mat-icon-button","","matTooltip","Next Issue","aria-label","Next Issue",1,"medium",3,"onHotkey","click","hotkey","disabled"],["svgIcon","arrow-right",1,"icon-l"]],template:function(a,b){a&1&&(F(0,
C8b,8,13),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.currentSearchResults.issueIndex$))?0:-1,c)}},dependencies:[Jy,pU,kB,iB,vK,nA,Tx],styles:["[_nghost-%COMP%]{display:inline-block;color:#5f6368;color:var(--muted);white-space:nowrap}output[_ngcontent-%COMP%]{font-weight:500}[mat-icon-button][_ngcontent-%COMP%]{margin-left:-4px;padding:0}[_nghost-%COMP%]   span.zero-width[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{width:0}/*# sourceMappingURL=pagination_one_issue.css.map */"],changeDetection:0});var E0d=function(){var a=this;this.brain=p(YQ);this.accessIndicatorService=p(JW);this.INTERNAL="INTERNAL";this.issue$=this.brain.issueJs$.pipe(ue(Pm));this.retentionState$=this.issue$.pipe(A(function(b){var c;return(c=b.aggregatedData)==null?void 0:c.retentionState}));this.modifiedTime$=this.issue$.pipe(A(function(b){var c;return((c=b.aggregatedData)==null?0:c.modifiedTimeMicros)?b.aggregatedData.modifiedTimeMicros/1E3:void 0}),ue(Pm));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return(c=
b.accessLimit)==null?void 0:c.accessLevel}),ue(Pm));this.issueAccessLimitLevel$=this.issue$.pipe(A(function(b){return b.snapshot[0].issueAccessLimitLevel}));this.issueId$=this.issue$.pipe(A(function(b){return b.issueId}));this.hasAccessIndicator$=this.issue$.pipe(yf(function(b){return axd(a.accessIndicatorService,b.issueId)}),A(function(b){return b.type!=="no_indicator"}));this.state$=ie([this.retentionState$,this.issueAccessLimitLevel$,this.modifiedTime$,this.issueId$,this.brain.componentId$,ie([this.accessLevel$,
this.hasAccessIndicator$])]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;var e=c.next().value;var f=c.next().value;var g=c.next().value;var k=m(c.next().value);c=k.next().value;k=k.next().value;return{retentionState:b,isAccessLimited:d==="LIMIT_VIEW"||d==="LIMIT_APPEND"||d==="LIMIT_VIEW_TRUSTED",isShowingRetention:(b==null?void 0:b.scheduledDeletionTime)==null?!1:XTb(b),isShowingPublicPartner:c!=="INTERNAL",modifiedTime:e,accessLevel:c,issueId:f,componentId:g,issueAccessLimitLevel:d,
hasAccessIndicator:k}}))};E0d.\u0275fac=function(a){return new (a||E0d)};E0d.\u0275cmp=D({type:E0d,selectors:[["issue-chip-indicators"]],standalone:!1,decls:2,vars:3,consts:[[1,"flex-kids-x","gap-s","margin-xs-right"],[3,"issueId"],[3,"issueId","componentId","accessLimitLevel"],[3,"retentionState","compactMode","modifiedTime"]],template:function(a,b){a&1&&(F(0,H8b,1,1),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.state$))?0:-1,c)}},dependencies:[t0,C4,KW,Tx],encapsulation:2});var F0d=function(){this.teamsService=p(OQ);this.onTeamLoaded=new uf(1);this.teamName$=new Mj("");this.isTeamLoaded=!1};F0d.prototype.ngOnChanges=function(a){var b=this;a.teamId&&this.teamId!==null&&(this.teamId?PQ(this.teamsService,this.teamId).pipe(lf(1),A(function(c){return c.name})).subscribe(function(c){b.teamName$.next(c);b.isTeamLoaded=!0;b.onTeamLoaded.next(b.isTeamLoaded)}):(this.isTeamLoaded=!0,this.onTeamLoaded.next(this.isTeamLoaded)))};F0d.\u0275fac=function(a){return new (a||F0d)};
F0d.\u0275cmp=D({type:F0d,selectors:[["b-team-chip"]],inputs:{componentId:"componentId",teamId:"teamId"},outputs:{onTeamLoaded:"onTeamLoaded"},standalone:!1,features:[jx],decls:7,vars:6,consts:[["card","onedevHovercard"],[3,"isReady"],[1,"b-chip","squared","s",3,"onedevHovercardTrigger"],[3,"componentId","teamId"],["svgIcon","supervisor_account_24px",1,"icon-xs"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",1),F(1,I8b,4,4,"div",2),T(2,"async"),L(),K(3,"onedev-hovercard",null,0),Tf(5),
M(6,"b-team-card",3),Uf(),L());if(a&2){I("isReady",b.isTeamLoaded);B();G(U(2,4,b.teamName$)?1:-1);B(5);var c;I("componentId",b.componentId||void 0)("teamId",(c=b.teamId==null?null:b.teamId.toString())!=null?c:"0")}},dependencies:[Jy,oW,KK,SK,AV,Tx],styles:["[_nghost-%COMP%]{min-height:22px}mat-icon[_ngcontent-%COMP%]{margin-right:4px;vertical-align:middle}"],changeDetection:0});var S7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(gQ);this.issuePermissionService=p($Q);this.router=p(fF);this.refreshMonitor=p(VP);this.currentSearchResults=p(R7);this.trackerHelpers=p(kS);this.eventsForIssueFridge=p(NP);this.cdr=p(Cx);this.starToggleDisabled=!1;this.issueId$=new uf(1);this.internalIssueId="";this.isTeamLoaded=!1;this.ListIssuesHovercardMode=q0d;this.blockedIdsToUrlQuery=function(b){if(!(b.length<2))return{q:"blockingid:"+a.issueId}};this.HOTKEYS=Xr;this.issue$=
this.issueId$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));this.issueTitle$=this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0].title}));this.starred$=this.issue$.pipe(A(function(b){var c,d;return(d=b==null?void 0:(c=b.userData)==null?void 0:c.starred)!=null?d:!1}));this.componentId$=this.issue$.pipe(A(function(b){return Om(b==null?void 0:b.snapshot[0].componentId)}));this.ancestors$=this.issue$.pipe(A(function(b){return Om(b==null?void 0:b.ancestors)}));this.hasAncestors$=
this.ancestors$.pipe(A(function(b){return!!(b&&b.size>0)}));this.teamId$=this.issue$.pipe(A(function(b){var c;return Om(b==null?void 0:(c=b.aggregatedData)==null?void 0:c.teamId)}));this.blockedByids$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockedByIssueId)!=null?c:[]}));this.issuesBlockedByCount$=this.blockedByids$.pipe(yf(function(b){return a.issueFullFridge.watchSet(b)}),A(function(b){return b.filter(jo)}),A(function(b){return b.length}));this.blockedByids$.pipe(A(S8b));
this.blockedByids$.pipe(A(this.blockedIdsToUrlQuery));this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.status$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.statusCssClass$=this.status$.pipe(A(function(b){return a.computeStatusCssClass(b)}));this.prettyStatus$=this.status$.pipe(ue(Pm),A(function(b){var c;return(c=zm.get(b))!=null?c:""}));this.statusIsFeatured$=this.status$.pipe(A(function(b){return!!mcd[b]}));
this.toggleStar=function(){var b;return y(function(c){if(c.nextAddress==1)return z(c,fe(a.starred$),2);b=c.yieldResult;a.starToggleDisabled=!0;dhd(a.issueFullFridge,a.issueId,!b).pipe(pf(),zf(a.destroyed$)).subscribe(function(){a.starToggleDisabled=!1;a.cdr.markForCheck()});ae(c)})};this.toggleStarDebounced=QB(this.toggleStar,1E3)};Y(S7,Z);S7.\u0275dir=Z.\u0275dir;S7.prototype.computeStatusCssClass=function(a){return a?"status-"+a:""};S7.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next()};
da.Object.defineProperties(S7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)},get:function(){return this.internalIssueId}}});S7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(S7)))(b||S7)}}();
S7.\u0275cmp=D({type:S7,selectors:[["issue-header"]],inputs:{issueId:"issueId"},standalone:!1,features:[Ef],decls:39,vars:49,consts:[["withAncestorsBreadcrumbs",""],["card","onedevHovercard"],["cardBody",""],[1,"padded-s","border-bottom"],[1,"pos-fill",2,"bottom","auto","height","6px",3,"title"],[1,"row","row-1","flex-kids-x","space-between"],[1,"left","flex-kids-x","flex-wrap","gap-s"],[1,"right"],[1,"row","row-2","flex-kids-x","margin-s-top"],[1,"left","flex-kids-x","align-items-top"],[1,"nowrap"],
["type","button","mat-icon-button","",1,"small","back-btn",3,"onHotkey","click","hotkey","matTooltip"],["svgIcon","arrow-backward",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Refresh","aria-label","Refresh",1,"small",3,"onHotkey","click","hotkey"],["svgIcon","refresh",1,"icon-s"],[3,"starClicked","onHotkey","starred","disabled","hotkey"],[3,"titleChanged","title","componentId","issueId","hasAclToEdit"],[1,"b-chip","squared","bad","xs","margin-xs-left",3,"onedevHovercardTrigger"],
[4,"onedevHovercardLazyBody"],[1,"float-right",3,"issueId"],[4,"ngTemplateOutlet"],[3,"onTeamLoaded","componentId","teamId"],[3,"componentId","issueId"],[1,"b-chip","squared","s","padding-0"],[3,"issueId","componentId","issueTitle","isExternalIssue"],[3,"componentId","compactMode","issueId"],[1,"b-chip","squared","s"],[3,"ancestors","issueId"],[2,"margin-right","-4px",3,"issueId","componentId","issueTitle","isExternalIssue"],["svgIcon","slo-status-no-data",1,"icon-xxs"],[3,"onedevIsHovercardReady",
"hovercardInstance","currentIssueId","issueIds","mode"]],template:function(a,b){if(a&1){var c=t();K(0,"div",3);T(1,"async");T(2,"async");T(3,"async");M(4,"aside",4);T(5,"async");T(6,"async");K(7,"div",5)(8,"div",6);F(9,K8b,1,1,"ng-container");T(10,"async");Kf(11,M8b,4,7);E(12,P8b,4,7,"ng-template",null,0,Mg);L();K(14,"div",7);M(15,"b-pagination-one-issue");L()();K(16,"div",8)(17,"div",9)(18,"div",10)(19,"button",11);T(20,"async");T(21,"async");N("onHotkey",function(){u(c);return v(B0d(b.currentSearchResults))})("click",
function(){u(c);return v(B0d(b.currentSearchResults))});M(22,"mat-icon",12);L();K(23,"button",13);N("onHotkey",function(){u(c);return v(b.refresh())})("click",function(){u(c);return v(b.refresh())});M(24,"mat-icon",14);L();K(25,"b-star-toggle",15);T(26,"async");N("starClicked",function(){u(c);return v(b.toggleStar())})("onHotkey",function(){u(c);return v(b.toggleStarDebounced())});L()();M(27,"issue-chip-indicators");L();K(28,"div",7)(29,"issue-title",16);T(30,"async");T(31,"async");T(32,"async");
N("titleChanged",function(){u(c);b.eventsForIssueFridge.poke(b.issueId);b.cdr.markForCheck();return v()});L();F(33,Q8b,3,2,"div",17);T(34,"async");K(35,"onedev-hovercard",null,1);E(37,R8b,4,7,"ng-container",18);L();M(38,"issue-header-actions",19);L()()()}if(a&2){var d;xg(U(1,23,b.statusCssClass$));wg("overline",U(2,25,b.statusIsFeatured$))("color-field",U(3,27,b.statusIsFeatured$));B(4);I("title",Fg("[",U(5,29,b.prettyStatus$),"] ",U(6,31,b.issueTitle$)));B(5);G(U(10,33,b.hasAncestors$)?9:11);B(10);
var e;I("hotkey",b.HOTKEYS.GO_UP_TO_LIST)("matTooltip",(e=U(20,35,b.currentSearchResults.backNavigationLabel$))!=null?e:"");If("aria-label",U(21,37,b.currentSearchResults.backNavigationLabel$));B(4);I("hotkey",b.HOTKEYS.REFRESH_ISSUE);B(2);var f;I("starred",(f=U(26,39,b.starred$))!=null?f:!1)("disabled",b.starToggleDisabled)("hotkey",b.HOTKEYS.TOGGLE_STAR);B(4);I("title",U(30,41,b.issueTitle$))("componentId",U(31,43,b.componentId$))("issueId",b.issueId)("hasAclToEdit",U(32,45,b.issuePermissionService.hasAclToEdit$));
B(4);G((d=U(34,47,b.issuesBlockedByCount$))?33:-1,d);B(5);I("issueId",b.issueId)}},dependencies:[M7,Sx,Jy,xY,pU,KK,LK,SK,MK,tW,RZ,L7,kB,iB,vK,nA,CY,F0d,D0d,Q7,E0d,Tx],styles:[".row-1[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{align-items:flex-start}.row-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{flex-grow:1}.chip[_ngcontent-%COMP%]{margin-left:8px}mat-divider[_ngcontent-%COMP%]{height:16px;margin-left:12px;border-color:#dadce0;border-color:var(--divider)}.back-btn[_ngcontent-%COMP%]{margin-left:-4px}.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px}b-star-toggle[_ngcontent-%COMP%]{margin-right:4px}b-pagination-one-issue[_ngcontent-%COMP%]{margin-left:8px;height:22px;margin-top:-5px}[_nghost-%COMP%]     .b-chip{margin-right:0;max-width:100%}[_nghost-%COMP%]     issue-title, [_nghost-%COMP%]     issue-title h3{display:inline}[_nghost-%COMP%]     b-app-vote-button .gmat-mdc-button:not([disabled]):not([aria-pressed=true]), [_nghost-%COMP%]     smart-dupe-btn .mat-mdc-outlined-button:not([disabled]), [_nghost-%COMP%]     hotlist-picker-btn .mat-mdc-outlined-button:not([disabled]){background-color:#fff;background-color:var(--background)}"],
changeDetection:0});var T7=function(){Z.apply(this,arguments);this.data=p(TA)};Y(T7,Z);T7.\u0275dir=Z.\u0275dir;T7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(T7)))(b||T7)}}();
T7.\u0275cmp=D({type:T7,selectors:[["b-tailwind-info-dialog"]],standalone:!1,features:[Ef],decls:14,vars:1,consts:[["matDialogTitle",""],["tabindex","0"],[1,"flex-kids-y","gap"],[1,"prompt-container","bg-off-main","carded"],[1,"prompt-header","heading-xs"],[1,"prompt-text","overflow","pre-line"],[1,"step-container","carded","flex-kids-y","gap"],["align","end"],["mat-button","","mat-dialog-close",""],[1,"step-number","muted"],[1,"step-header","heading-xs"],[1,"step-text","pre-line","break-word"],[1,
"step-text","bg-off-main","carded","overflow","codefont"],[1,"bold-text"],[1,"key-text"],[1,"value-text"],[1,"output-text","overflow","pre-line"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1,"AI suggested fix steps"),L(),K(2,"mat-dialog-content",1)(3,"div",2)(4,"div",3)(5,"h3",4),Q(6,"Prompt:"),L(),K(7,"p",5),Q(8),L()(),Nf(9,a9b,5,3,"div",6,Mf),L()(),K(11,"mat-dialog-actions",7)(12,"button",8),Q(13,"Close"),L()());a&2&&(B(8),S(" ",b.data.prompt," "),B(),Of(b.data.steps))},dependencies:[kB,gB,VA,
XA,ZA,YA,Yx],styles:["p[_ngcontent-%COMP%]{font-weight:500}.bold-text[_ngcontent-%COMP%]{font-weight:700}.step-number[_ngcontent-%COMP%]{font-weight:700;font-size:.8em;text-transform:uppercase}.value-text[_ngcontent-%COMP%]{color:var(--green-text)}.key-text[_ngcontent-%COMP%]{color:var(--purple-text)}\n/*# sourceMappingURL=tailwind_info_dialog.css.map */"],changeDetection:0});var U7=function(){var a=this;this.formatter=p(fR);this.llmSuggestedBugFixService=p(AZ);this.analytics=p(eQ);this.domSafe=p(mR);this.dialog=p(UA);this.dialogConfig={minWidth:"300px",maxWidth:"75vw",maxHeight:"80vh"};this.runResults$=this.llmSuggestedBugFixService.runForCurrentIssue$.pipe(A(function(b){return b==null?void 0:b.results}));this.trajectory$=this.runResults$.pipe(A(function(b){return b==null?void 0:b.trajectory}));this.problemIdentification$=this.runResults$.pipe(yf(function(b){var c,d,
e,f;return y(function(g){return g.nextAddress==1?z(g,G0d(a,(f=(c=b)==null?void 0:(d=c.summary)==null?void 0:(e=d.problemIdentificationSection)==null?void 0:e.entries)!=null?f:[]),2):g.return(g.yieldResult)})}));this.solution$=this.runResults$.pipe(yf(function(b){var c,d,e,f;return y(function(g){return g.nextAddress==1?z(g,G0d(a,(f=(c=b)==null?void 0:(d=c.summary)==null?void 0:(e=d.solutionSection)==null?void 0:e.entries)!=null?f:[]),2):g.return(g.yieldResult)})}));this.codeChange$=this.runResults$.pipe(yf(function(b){var c,
d,e,f;return y(function(g){return g.nextAddress==1?z(g,G0d(a,(f=(c=b)==null?void 0:(d=c.summary)==null?void 0:(e=d.codeChangeSection)==null?void 0:e.entries)!=null?f:[]),2):g.return(g.yieldResult)})}));this.vm$=ie({runResults:this.runResults$,problemIdentificationSummaries:this.problemIdentification$,solutionSummaries:this.solution$,codeChangeSummaries:this.codeChange$,trajectory:this.trajectory$})},G0d=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=b.map(function(f){f=a.formatter.format({comment:f,
formattingMode:"MARKDOWN",audience:"INTERNAL",idPrefix:"bug2code"}).pipe(A(function(g){var k,l;return(l=g==null?void 0:(k=g.markdownFormat)==null?void 0:k.content)!=null?l:null}));return fe(f)}),z(e,Promise.all(c),2);d=e.yieldResult;return e.return(d.filter(Pm))})};U7.prototype.handleViewInCritique=function(a){a&&(this.domSafe.openInNewTab("https://critique.corp.google.com/"+a),this.analytics.trackEvent("tailwind","viewInCritique",this.issueId))};
U7.prototype.openTailwindInfoDialog=function(a){this.analytics.trackEvent("tailwind","openTrajectoryDialog",this.issueId);this.dialog.open(T7,Object.assign({},{data:a},this.dialogConfig))};U7.\u0275fac=function(a){return new (a||U7)};
U7.\u0275cmp=D({type:U7,selectors:[["b-bug2code-sidebar"]],inputs:{issueId:"issueId"},standalone:!1,decls:3,vars:3,consts:[[1,"tailwind-run-summary","flex-kids-y","padded-x","padded-bottom"],[1,"flex-kids-x","align-items-center","gap-s"],["svgIcon","success",1,"ai-success","icon-s"],[1,"summary-group","flex-kids-y","gap-s"],[1,"summary-item","pos-rel",3,"innerHTML"],[1,"summary-item","pos-rel"],["target","_blank",3,"href"],[1,"grow-1"],[1,"summary-controls","flex-kids-x","justify-flex-end","gap-s"],
"mat-stroked-button;;color;primary;matTooltip;Show attempted steps taken by the AI. In a dialog.".split(";"),["mat-stroked-button","","color","primary","matTooltip","Show attempted steps taken by the AI. In a dialog.",3,"click"],["mat-stroked-button","","color","primary",3,"click"],["mat-flat-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,l9b,4,4),T(2,"async"),L());if(a&2){var c;B();G((c=U(2,1,b.vm$))?1:-1,c)}},dependencies:[Jy,kB,gB,nA,Tx],styles:[".tailwind-run-summary[_ngcontent-%COMP%]{min-height:calc(100% - 5rem)}.ai-success[_ngcontent-%COMP%]{color:var(--green-text)}.summary-group[_ngcontent-%COMP%]{border-left:1px solid var(--hairline);list-style-type:disc;margin-left:.5rem}.summary-group[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .summary-group[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-left:-.5rem}.summary-controls[_ngcontent-%COMP%]{margin-top:2em}[_nghost-%COMP%]   .summary-group[_ngcontent-%COMP%]   .summary-item[_ngcontent-%COMP%]     code{color:#137333;color:var(--green-text)}\n/*# sourceMappingURL=bug2code_sidebar.css.map */"]});var H0d=["container"],V7=function(){this.appEvents=p(UO);this.analytics=p(eQ);this.contextSensitiveRegistry=p(XQ);this.containerScrolled=!1;this.issueId$=this.contextSensitiveRegistry.getIssueId()};V7.prototype.ngOnInit=function(){var a=this;return y(function(b){a.analytics.trackEvent("tailwind","open");ae(b)})};V7.prototype.closeSidebar=function(){var a=this;return y(function(b){a.appEvents.closeIssueDetailsPageSidebar.next();a.analytics.trackEvent("tailwind","close");ae(b)})};
V7.\u0275fac=function(a){return new (a||V7)};
V7.\u0275cmp=D({type:V7,selectors:[["tailwind-sidebar"]],viewQuery:function(a,b){a&1&&hg(H0d,5);if(a&2){var c;lg(c=mg())&&(b.container=c.first)}},standalone:!1,decls:14,vars:8,consts:[["container",""],[1,"container",3,"scroll"],[1,"flex-kids-x","space-between","tailwind-header","padded-s"],[1,"flex-kids-x","align-items-center"],["svgIcon","spark_24px",1,"ai-icon"],[1,"heading-m","margin-s-left"],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","aria-label","close sidebar","matTooltip",
"Close sidebar",1,"close-button",3,"click"],["svgIcon","close"],[3,"issueId"],[1,"no-issue-selected"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1,0);N("scroll",function(){u(c);b.containerScrolled=b.container.nativeElement.scrollTop===0?!1:!0;return v()});K(2,"header",2)(3,"div",3);M(4,"mat-icon",4);K(5,"span",5);Q(6,"AI generated fix");L()();K(7,"div",6)(8,"button",7);N("click",function(){u(c);return v(b.closeSidebar())});M(9,"mat-icon",8);L()()();F(10,m9b,1,1,"b-bug2code-sidebar",9);T(11,
"async");F(12,n9b,2,0,"div",10);T(13,"async");L()}if(a&2){var d;B(2);wg("elevated",b.containerScrolled);B(8);G((d=U(11,4,b.issueId$))?10:-1,d);B(2);G(U(13,6,b.issueId$)?-1:12)}},dependencies:[U7,Jy,kB,iB,nA,Tx],styles:[".container[_ngcontent-%COMP%]{display:block;width:400px;height:100%;overflow-y:scroll}header[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--dialog-bg);position:-webkit-sticky;position:sticky;top:0;z-index:2}.tailwind-header[_ngcontent-%COMP%]   .ai-icon[_ngcontent-%COMP%]{color:#9334e6;color:var(--purple-text)}"]});var I0d=function(){var a=this;this.trackerHelpers=p(kS);this.trackerFridge=p(VQ);this.activeSession=p(uu);this.issueTrackerId$=new Mj(void 0);var b;this.currentTrackerId=(b=this.activeSession.getTracker())==null?void 0:b.trackerId;this.showTrackerBanner$=this.issueTrackerId$.pipe(A(function(c){return!a.currentTrackerId&&!!c}));this.tracker$=this.issueTrackerId$.pipe(yf(function(c){return c?a.trackerFridge.watch(c):ce(void 0)}));this.trackerRedirectUrl$=this.tracker$.pipe(A(function(c){return ft(a.trackerHelpers,
String(a.issueId),c)}))};da.Object.defineProperties(I0d.prototype,{trackerId:{configurable:!0,enumerable:!0,set:function(a){this.issueTrackerId$.next(a||void 0)}}});I0d.\u0275fac=function(a){return new (a||I0d)};
I0d.\u0275cmp=D({type:I0d,selectors:[["b-tracker-banner"]],inputs:{issueId:"issueId",trackerId:"trackerId"},standalone:!1,decls:3,vars:5,consts:[[1,"tracker-banner"],["alt","",3,"src"],["mat-button","",1,"mat-stroked-button","gmat-mdc-button","small",3,"href"]],template:function(a,b){a&1&&(F(0,o9b,7,6,"div",0),T(1,"async"),T(2,"async"));if(a&2){var c;G((c=U(1,1,b.showTrackerBanner$)&&U(2,3,b.tracker$))?0:-1,c)}},dependencies:[kB,gB,Tx],styles:[".tracker-banner[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);background-color:#fef7e0;background-color:var(--archived-bg-pale);-moz-box-sizing:border-box;box-sizing:border-box;width:100%;padding:8px 16px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.tracker-banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--fab-button-bg);margin-left:auto;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.tracker-banner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:24px;height:24px;padding:3px;margin-right:12px}.tracker-banner[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:.8125rem}"]});var W7=function(){var a=this;this.trackerHelpers=p(kS);this.trackerFridge=p(VQ);this.activeSession=p(uu);this.imageUrls=p(XV);this.activatedRoute=p(Lj);this.trackerId$=new Mj(void 0);this.tracker$=this.trackerId$.pipe(yf(function(b){return b?a.trackerFridge.watch(b):ce(void 0)}));this.trackerName$=this.tracker$.pipe(A(function(b){return b?b.name:a.activeSession.getAppName()}));this.currentTrackerLogo$=ce(this.getLogoUrl(this.activeSession.getTracker()));this.trackerLogo$=this.tracker$.pipe(A(function(b){return a.getLogoUrl(b)}));
this.trackerRedirectUrl$=ie([this.tracker$,this.activatedRoute.fragment]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c="";a.issue&&(c=String(a.issueId));a.component&&(c="components/"+a.componentId);d=d?"#"+encodeURIComponent(d):"";return b?ft(a.trackerHelpers,c,b)+d:Omd(a.trackerHelpers,c)+d}))};
W7.prototype.getLogoUrl=function(a){if(a){var b;if((b=a.branding)==null||!b.logoUrl)return"https://www.gstatic.com/buganizer/img/v3/logo_light.svg"}else return this.imageUrls.LOGO_LIGHT;var c,d;return(d=(c=a.branding)==null?void 0:c.logoUrl)!=null?d:""};W7.prototype.ngOnChanges=function(a){a.issue&&this.issue&&this.trackerId$.next(this.issue.trackerId);a.component&&this.component&&this.trackerId$.next(this.component.trackerId)};
da.Object.defineProperties(W7.prototype,{showResourceContainer:{configurable:!0,enumerable:!0,get:function(){return this.issue!=null||this.component!=null}},issueId:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.issue)==null?void 0:a.issueId}},issueType:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.issue)==null?void 0:a.snapshot[0],c;return ym((c=b==null?void 0:b.type)!=null?c:"TYPE_UNSPECIFIED")}},issueStatus:{configurable:!0,enumerable:!0,get:function(){var a,
b=(a=this.issue)==null?void 0:a.snapshot[0],c,d;return(d=zm.get((c=b==null?void 0:b.status)!=null?c:"STATUS_UNSPECIFIED"))!=null?d:""}},componentId:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.component)==null?void 0:a.componentId}}});W7.\u0275fac=function(a){return new (a||W7)};
W7.\u0275cmp=D({type:W7,selectors:[["b-tracker-redirect"]],inputs:{issue:"issue",component:"component"},standalone:!1,features:[jx],decls:1,vars:1,consts:[[1,"carded","margin-top"],[1,"centered-inside","margin-bottom"],["alt","",1,"logo",3,"src"],["svgIcon","arrow-forward",1,"icon-l"],[1,"centered-inside","heading-l","margin-bottom"],[1,"centered-inside"],["mat-flat-button","","color","primary","matTooltip","Go to the issue","aria-label","Go to the issue",3,"href"]],template:function(a,b){a&1&&F(0,
q9b,15,13,"div",0);a&2&&G(b.showResourceContainer?0:-1)},dependencies:[Jy,kB,gB,vK,nA,Tx],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center}ol[_ngcontent-%COMP%]{box-sizing:border-box;width:322px;padding-right:8px}li[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:16px;line-height:21px}li[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}label[_ngcontent-%COMP%]{width:100px;font-weight:bold;color:#5f6368;color:var(--text-muted);margin-right:8px;font-size:.8125rem}.logo[_ngcontent-%COMP%]{margin-right:4px;width:32px;height:32px}"]});var X7=function(){this.dynamicScrollIntoView=p(IZ);this.paths=p(hW);this.routeParams=p(wS);this.baseIssueReferenceResolver=p(S6);this.destroyed$=new uf(1);var a;this.issueId=(a=this.routeParams.issueId)!=null?a:""};
X7.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());a.issueId&&a.issueId!==this.issueId||!a.elementId?this.baseIssueReferenceResolver.visit(a):(iFd(this.dynamicScrollIntoView,{elementId:a.elementId,parentElement:document.body,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(zf(this.destroyed$)).subscribe(),history&&history.pushState(null,"",ss(this.issueId)+"#"+a.elementId))};X7.prototype.ngOnDestroy=function(){this.destroyed$.next()};
X7.\u0275fac=function(a){return new (a||X7)};X7.\u0275prov=Dc({token:X7,factory:X7.\u0275fac});var J0d=function(){Z.call(this);var a=this;this.el=p(Hd);this.router=p(fF);this.router.events.pipe(ue(b3a),zf(this.destroyed$)).subscribe(function(){var b=["scrollY",a.rememberScroll,a.router.url.toString()].join("-"),c,d=(c=a.el.nativeElement)==null?void 0:c.scrollTop;d?window.sessionStorage.setItem(b,String(d)):window.sessionStorage.removeItem(b)});this.router.events.pipe(ue(a3a),zf(this.destroyed$)).subscribe(function(b){r9b(a.el.nativeElement,["scrollY",a.rememberScroll,b.url].join("-"))})};
Y(J0d,Z);J0d.\u0275fac=function(a){return new (a||J0d)};J0d.\u0275dir=af({type:J0d,selectors:[["","rememberScroll",""]],inputs:{rememberScroll:"rememberScroll"},standalone:!1,features:[Ef]});var K0d=function(){};K0d.\u0275fac=function(a){return new (a||K0d)};K0d.\u0275mod=$e({type:K0d});K0d.\u0275inj=Fc({imports:[WO]});var v9b=function(a){return{monorailRedirectUrl:a}},V9b=function(){return{exact:!0}},Y7=function(){Z.apply(this,arguments);var a=this;this.contextSensitiveRegistry=p(XQ);this.issueFullFridge=p(gQ);this.activeSession=p(uu);this.permissions=p($Q);this.editIssueService=p(GS);this.counts=p(K1);this.appEvents=p(UO);this.issueInteractionsTracking=p(CS);this.checkBeforeExit=p(rY);this.butterBar=p(UN);this.routerEvents=p(dQ);this.refreshMonitor=p(VP);this.eventsForIssueFridge=p(NP);this.currentUserBookmarksFridge=
p(qP);this.permissionsFridge=p(CQ);this.issueRelationshipsFridge=p(mQ);this.issueService=p(SP);this.errorHandler=p(pO);this.monorailIssueRedirectApi=p(o0d);this.domSafe=p(mR);this.llmSuggestedBugFixService=p(AZ);this.llmChatService=p(uZ);this.id$=this.contextSensitiveRegistry.getIssueId().pipe(ue(Pm));this.issue$=this.id$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));this.readyForView$=aia(this.issue$.pipe(A(function(b){return{success:!!b}})),this.issueFullFridge.error$.pipe(Cf(this.id$),
ue(function(b){var c=m(b);b=c.next().value;c=c.next().value;return!(!c||c!==b.idOrKey)}),A(function(){return{success:!1}})));this.mainIssueLoadError$=this.issueFullFridge.error$.pipe(Cf(this.id$),ue(function(b){var c=m(b);b=c.next().value;c=c.next().value;return!(!c||c!==b.idOrKey)}),yf(function(b){b=m(b);var c=b.next().value;b=b.next().value;switch(c.status){case 403:return ce({status:c.status});case 404:return p0d(a.monorailIssueRedirectApi,b).pipe(A(function(d){return{status:c.status,monorailRedirectUrl:d==
null?void 0:d.toString()}}));default:return ce({status:c.status})}}),vf({refCount:!0,bufferSize:1}));this.issueTrackerId$=this.issue$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.showTrackerRedirect$=this.issueTrackerId$.pipe(A(function(b){var c,d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId;return!!d&&d!==b}));this.snapshot$=this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0]}));this.archived$=this.snapshot$.pipe(A(function(b){return b==null?void 0:b.isArchived}));
this.deleted$=this.snapshot$.pipe(A(function(b){return b==null?void 0:b.isDeleted}));this.undeleteButtonTooltip$=this.permissions.canUndeleteIssue$.pipe(A(function(b){return b?void 0:"Only issue admins can undelete issues"}));this.inArchivedComponent$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.isArchived)&&!(b==null?0:b.snapshot[0].isArchived)}));this.status$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.prettyStatus$=this.status$.pipe(ue(Pm),
A(function(b){var c;return(c=zm.get(b))!=null?c:""}));this.isInactive$=this.status$.pipe(A(function(b){return b==="INACTIVE"}));this.title$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].title)!=null?c:""}));this.issuesBeingBlocked$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}),mf(1E3),yf(function(b){return a.issueFullFridge.watchSet(b)}));this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=
null?c:[]}),mf(1E3),yf(function(b){return a.issueFullFridge.watchSet(b)}));this.issueMetadata$=ne(function(){return a.id$}).pipe(ue(Pm),yf(function(b){return a.issueService.getMetadata(b)}),vf({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(q(this.activeSession.getFlag("enableCodeMentionsUi")?[{link:"./todos",title:"TODOs",count$:this.counts.countTodosDisplay$}]:[]),[{link:"./insights",title:"Insights",count$:this.counts.countInsightsDisplay$}]);this.isIssueDetailsPageSidebarOpen$=te(this.appEvents.openIssueDetailsPageSidebar.pipe(A(function(){return!0})),this.appEvents.closeIssueDetailsPageSidebar.pipe(A(function(){return!1}))).pipe(xf(!1));
this.issueDetailsOptions$=ie({isTailwindEnabledForCurrentIssue:this.llmSuggestedBugFixService.isEnabledForCurrentIssue$,isLlmChatEnabled:this.llmChatService.isLlmChatEnabled$,isIssueDetailsPageSidebarOpen:this.isIssueDetailsPageSidebarOpen$}).pipe(A(function(b){return{enableTailwindSidebar:b.isTailwindEnabledForCurrentIssue,enableLlmChat:b.isLlmChatEnabled,isIssueDetailsPageSidebarOpen:b.isIssueDetailsPageSidebarOpen}}),vf({bufferSize:1,refCount:!0}))};Y(Y7,Z);Y7.\u0275dir=Z.\u0275dir;
Y7.prototype.ngAfterViewInit=function(){var a=this;this.issueDetailsOptions$.pipe(zf(this.destroyed$)).subscribe(function(b){if((b.enableTailwindSidebar||b.enableLlmChat)&&b.isIssueDetailsPageSidebarOpen){var c;(c=a.matSideNav)==null||c.open()}else{var d;(d=a.matSideNav)==null||d.close()}})};
Y7.prototype.ngOnInit=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,fe(a.id$),2);b=c.yieldResult;a.appEvents.issueViewed.next(b);vnd(a.issueInteractionsTracking,b);a.subscriptions.add(a.mainIssueLoadError$.subscribe(function(d){return y(function(e){if(e.nextAddress==1)return d.status===403?e.return():d.monorailRedirectUrl?z(e,os(1E3),3):e.jumpTo(2);if(e.nextAddress!=2)return skd(a.domSafe,d.monorailRedirectUrl),e.return();a.errorHandler.errorHandler(null,d);ae(e)})}));
a.subscriptions.add(sY(a.checkBeforeExit,function(){return a.editIssueService.issueCommentDraft(b).comment().hasContent()},!1));a.subscriptions.add(a.routerEvents.routeChangeSuccess.subscribe(function(){a.butterBar.dismiss()}));a.subscriptions.add(a.issue$.pipe(ue(Pm),lf(1)).subscribe(function(d){hQ(a.issueFullFridge,[d.issueId],{userActivityType:"VIEW"})}));a.subscriptions.add(a.refreshMonitor.getObservable().subscribe(function(){a.issueInteractionsTracking.trackNavigation("refresh");a.permissionsFridge.poke(cq(b));
a.issueRelationshipsFridge.poke(b);a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b);a.currentUserBookmarksFridge.pokeAll();hQ(a.issueFullFridge,[b],{userActivityType:"RELOAD"})}));a.destroyed$.subscribe(function(){var d=a.issueInteractionsTracking,e=d.getState(b);d.trackDestroy("edit-count",e.editCount);var f=Date.now()-e.startTime;wnd(d,f,"idp-time-on-page",e.variations);d.onUserActiveStatusUpdate(b,!1);d.issueToTrackingState.delete(b);d.stopActivityTracking$.next();a.editIssueService.clear(b)});
ae(c)})};Y7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(Y7)))(b||Y7)}}();
Y7.\u0275cmp=D({type:Y7,selectors:[["issue-details-wrapper"]],viewQuery:function(a,b){a&1&&hg(xM,5);if(a&2){var c;lg(c=mg())&&(b.matSideNav=c.first)}},standalone:!1,features:[Gg([bQ,IS,{provide:LR,useClass:X7}]),Ef],decls:17,vars:7,consts:[["mainContent",""],["sidebarContent",""],["showIssueDetails",""],["showMonorailRedirect",""],["showNoAccessScreen",""],["tabPanel",""],["rla","routerLinkActive"],[1,"a11y-only"],["hasBackdrop","false","autosize","true",1,"overflow-on-print-media"],[1,"overflow-on-print-media"],
[3,"ngTemplateOutlet"],["mode","side","position","end",3,"autoFocus","disableClose"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex-kids-y","pos-fill",3,"issue-editor-false"],[1,"bv2-limited-issue-view"],[1,"flex-kids-y","pos-fill"],[1,"border-bottom",3,"messageType","format","iconOverride"],["messageType","caution",1,"border-bottom",3,"format","iconOverride"],["messageType","error","format","app",1,"border-bottom"],["messageType","info",1,"border-bottom",3,"format"],[1,"issue-header"],
[1,"flex-1","flex-kids-x","overflow","overflow-on-print-media"],["role","main","rememberScroll","center","cdkScrollable","",1,"flex-1","pos-rel","bg-off-main","overflow","overflow-on-print-media"],[3,"issueId"],["href","http://go/buganizer-issue-archive","target","_blank"],"type;button;mat-button;;aria-label;Unarchive issue".split(";"),["type","button","mat-button","","aria-label","Unarchive issue",3,"click"],["href","http://go/buganizer/guides/manage-component#archiving-a-component","target","_blank"],
["href","http://go/issue-retention","target","_blank"],["type","button","mat-button","","aria-label","Undelete issue",3,"matTooltip","disabled"],["type","button","mat-button","","aria-label","Undelete issue",3,"click","matTooltip","disabled"],["href","http://go/buganizer/concepts/issues#major-updates","target","_blank"],["href","https://developers.google.com/issue-tracker/concepts/issues#major_edits","target","_blank"],["href","http://go/b-inactive-issues","target","_blank"],[3,"issueId","trackerId"],
["mat-tab-nav-bar","","gmat-tabs","",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","routerLinkActiveOptions"],[2,"margin-left","4px"],[3,"issue"],["target","_self",3,"href"],["data-test-id","internal-access-denied",3,"issueMetadata"],["data-test-id","public-access-denied"]],template:function(a,b){a&1&&(F(0,s9b,2,1,"h2",7),T(1,"async"),K(2,"mat-sidenav-container",8)(3,"mat-sidenav-content",9),Vf(4,10),L(),K(5,"mat-sidenav",11),Vf(6,10),L()(),E(7,A9b,2,3,"ng-template",
null,0,Mg)(9,F9b,2,3,"ng-template",null,1,Mg)(11,a$b,3,3,"ng-template",null,2,Mg)(13,b$b,4,2,"ng-template",null,3,Mg)(15,e$b,3,1,"ng-template",null,4,Mg));if(a&2){var c;a=qg(8);var d=qg(10);G((c=U(1,5,b.id$))?0:-1,c);B(4);I("ngTemplateOutlet",a);B();I("autoFocus",!0)("disableClose",!0);B();I("ngTemplateOutlet",d)}},dependencies:[xWd,Sx,QE,hF,iF,DU,EU,wz,V7,S7,m5,iLd,kB,gB,xM,yM,wM,CL,yL,W9c,zL,vK,nA,J0d,I0d,W7,Tx],styles:["[mat-tab-nav-bar][_ngcontent-%COMP%]{padding-left:8px;border-bottom:1px solid var(--divider)}[_nghost-%COMP%]   mat-sidenav-container[_ngcontent-%COMP%]{height:100%;--mat-sidenav-content-background-color: transparent;--mat-sidenav-container-divider-color: var(--divider)}[_nghost-%COMP%]{display:block;width:100%;height:100%}"]});var Z7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(gQ);this.butterBar=p(UN);this.duplicateIssueIds$=new Mj([]);this.tableColumns=[{type:"TITLE"},{type:"TEAM"},{type:"ISSUE_ID"},{type:"CREATED_TIME"},{type:"REPORTER"}];this.initialSort={column:"CREATED_TIME",direction:"DESCENDING"};this.getMenuItems=function(b){return[{type:"action",label:"Remove duplicate",action:function(){a.removeDuplicate(b)},title:"Remove duplicate",icon:"clear"}]}};Y(Z7,Z);Z7.\u0275dir=Z.\u0275dir;
Z7.prototype.ngOnInit=function(){};Z7.prototype.removeDuplicate=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return Wd(d,2),z(d,b.issueFullFridge.removeDuplicate(b.issueId,a),4);if(d.nextAddress!=2)return dt(d,0);c=$d(d);b.butterBar.showWarning("Could not remove duplicate "+a+". "+c);ae(d)})};da.Object.defineProperties(Z7.prototype,{duplicateIds:{configurable:!0,enumerable:!0,set:function(a){this.duplicateIssueIds$.next((a!=null?a:[]).map(function(b){return String(b)}))}}});
Z7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(Z7)))(b||Z7)}}();Z7.\u0275cmp=D({type:Z7,selectors:[["b-duplicates-table"]],inputs:{duplicateIds:"duplicateIds",issueId:"issueId"},standalone:!1,features:[Ef],decls:2,vars:3,consts:[[3,"issueIds","menuItemFactory","tableColumns","initialSort"]],template:function(a,b){a&1&&(F(0,f$b,1,4,"b-issues-table",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.duplicateIssueIds$))?0:-1,c)}},dependencies:[XZ,Tx],encapsulation:2,changeDetection:0});var $7=function(){Z.apply(this,arguments);var a=this;this.paramsService=p(WQ);this.issueFullFridge=p(gQ);this.issuePicker=p(UX);this.snackBar=p(rB);this.counts=p(K1);this.imageUrls=p(XV);this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.id$=this.paramsService.issueId$;this.dupeUrl$=this.id$.pipe(A(function(b){return{path:"/issues",params:{q:"canonicalid:"+b}}}));this.issue$=this.id$.pipe(ue(Pm),yf(function(b){return a.issueFullFridge.watch(b)}));this.duplicateIds$=this.issue$.pipe(A(function(b){var c;
return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}));this.duplicatesCount$=this.duplicateIds$.pipe(yf(function(b){return b.length===0?ce(0):a.counts.duplicatesDualCount$.pipe(A(function(c){return c.total.count}))}));this.showTable$=this.duplicatesCount$.pipe(A(function(b){return b>0}),xf(!0));this.didChooseDupes=function(b){var c,d;return y(function(e){if(e.nextAddress==1)return z(e,fe(a.id$),2);c=e.yieldResult;if(c==null)return e.return();d=b[0];return z(e,hhd(a.issueFullFridge,
c,d).catch(a.gotErr),0)})};this.gotErr=function(b){a.snackBar.open(Qp(b)||"Error with network request","close",{panelClass:"error"})}};Y($7,Z);$7.\u0275dir=Z.\u0275dir;$7.prototype.isThinking=function(){return this.issueFullFridge.isThinking()};var g$b=function(a){a.issuePicker.open({title:"Add Duplicate",allowMultipleIds:!1,edgeType:"duplicate"},a.didChooseDupes)};$7.\u0275fac=function(){var a;return function(b){return(a||(a=Fd($7)))(b||$7)}}();
$7.\u0275cmp=D({type:$7,selectors:[["b-issue-duplicates"]],standalone:!1,features:[Ef],decls:4,vars:4,consts:[[1,"carded","bg-main"],[1,"pos-tr","padded"],[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"],["type","button","mat-flat-button","","color","primary","matTooltip","Add a duplicate to the current issue",1,"small",3,"click"],[1,"section-heading",
"muted"],["type","button","mat-flat-button","","color","primary","matTooltip","Add a duplicate to the current issue",1,"small","add",3,"click"],[3,"issueId","duplicateIds"],[1,"margin-s-top","flex-kids-x","gap-s"],["mat-button","","color","primary",1,"small",3,"routerLink","queryParams"]],template:function(a,b){a&1&&(K(0,"section",0),F(1,l$b,3,3),T(2,"async"),L(),F(3,m$b,2,0,"aside",1));if(a&2){var c;B();G((c=U(2,2,b.duplicateIds$))?1:-1,c);B(2);G(b.isThinking()?3:-1)}},dependencies:[hF,kB,gB,vK,
nA,cU,Z7,Tx],styles:["[_nghost-%COMP%]{display:block;padding:8px}.section-heading[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:8px;padding-left:16px;line-height:1.3}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{margin-left:auto;margin-top:-8px;margin-bottom:-8px}[_nghost-%COMP%]     .remove-btn{opacity:0;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;margin:-16px 0}[_nghost-%COMP%]     ol a:hover .remove-btn{opacity:1}ol[_ngcontent-%COMP%]   a[disabled=true][_ngcontent-%COMP%]{background:transparent;opacity:.5;cursor:default}[_nghost-%COMP%]     ol a[disabled=true] .remove-btn{opacity:0}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:150px;min-height:163px}button.add[_ngcontent-%COMP%]{margin-left:16px}\n/*# sourceMappingURL=issue_duplicates.css.map */"]});var L0d=function(){};L0d.\u0275fac=function(a){return new (a||L0d)};L0d.\u0275mod=$e({type:L0d});L0d.\u0275inj=Fc({imports:[WO,Hy,uI,DE,EE,mB,DL,wK,TK,xX,xU,eU,a1]});var a8=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(gQ);this.issueTypeToDisplay=ym;this.STATUS_JS_FULL_TEXT=zm;this.STATUS_JS_TERSE=kcd;this.DUPLICATE="DUPLICATE";this.id$=new uf(1);this.issue$=this.id$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));this.priority$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].priority)||void 0}));this.type$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].type)!=null?c:void 0}));this.canonicalId$=
this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0].duplicateOfIssueId}));this.status$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.statusForChip$=this.status$.pipe(A(function(b){return mcd[b]?b:void 0}));this.statusCssClass$=this.status$.pipe(A(function(b){return a.computeStatusCssClass(b)}))};Y(a8,Z);a8.\u0275dir=Z.\u0275dir;a8.prototype.computeStatusCssClass=function(a){return a?"status-"+a:""};
da.Object.defineProperties(a8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});a8.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(a8)))(b||a8)}}();
a8.\u0275cmp=D({type:a8,selectors:[["issue-description-area"]],inputs:{id:"id"},standalone:!1,features:[Ef],decls:13,vars:12,consts:[["canonicalHovercard","onedevHovercard"],["canonicalCardBody",""],[1,"flex-kids-x","gap-s"],[1,"chip-container","shrink-0","border-right","padded-s-right"],[3,"class"],[3,"issuePriority"],[3,"issueId"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"title"],[1,"type-s","nowrap"],[3,"routerLink","onedevHovercardTrigger"],[3,"onedevIsHovercardReady",
"issueId"]],template:function(a,b){a&1&&(K(0,"div",2)(1,"div",3),F(2,o$b,6,10,"div"),T(3,"async"),F(4,p$b,2,4,"span",4),T(5,"async"),M(6,"b-issue-priority-display",5),T(7,"async"),L(),F(8,q$b,1,1,"b-issue-hotlists",6),T(9,"async"),L(),K(10,"onedev-hovercard",null,0),E(12,r$b,3,4,"b-issue-card",7),L());if(a&2){var c,d,e;B(2);G((c=U(3,4,b.statusForChip$))?2:-1,c);B(2);G((d=U(5,6,b.type$))?4:-1,d);B(2);I("issuePriority",U(7,8,b.priority$));B(2);G((e=U(9,10,b.id$))?8:-1,e)}},dependencies:[hF,KK,LK,SK,
MK,MW,QZ,vW,Tx],styles:["[_nghost-%COMP%]{display:block}.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}[_nghost-%COMP%]     .chip-container .b-chip, [_nghost-%COMP%]     .chip-container b-hotlist-chip, [_nghost-%COMP%]     .chip-container b-hotlist-recommendation-chip{margin-right:0}[_nghost-%COMP%]     .chip-container .b-chip, [_nghost-%COMP%]     .chip-container .chip, [_nghost-%COMP%]     .chip-container b-component-access-level-indicator .label{line-height:22px;height:22px}[_nghost-%COMP%]     .chip-container b-component-access-level-indicator .label{border-radius:11px}[_nghost-%COMP%]     .chip-container .b-chip.status{-moz-box-sizing:border-box;box-sizing:border-box;line-height:20px}.thread-filters[_ngcontent-%COMP%]{margin-top:-9px}\n/*# sourceMappingURL=issue_description_area.css.map */"],
changeDetection:0});var M0d=function(){this.message=p(nB);this.snackbarRef=p(oB);this.DEFAULT_MESSAGE="New data is available. Click to refresh."};M0d.prototype.onDismiss=function(a){this.snackbarRef.dismiss();a.stopPropagation()};M0d.\u0275fac=function(a){return new (a||M0d)};
M0d.\u0275cmp=D({type:M0d,selectors:[["refresh-data-notification"]],standalone:!1,decls:6,vars:1,consts:[["role","button","aria-label","Refresh data",1,"refresh-data-notification-container",3,"click"],["svgIcon","refresh",1,"margin-right"],[1,"margin-xs-top","full-width"],["type","button","mat-icon-button","","aria-label","Dismiss new data notification",1,"refresh-data-notification-dismiss-button","small",3,"click"],["svgIcon","close",1,"icon-m"]],template:function(a,b){a&1&&(K(0,"div",0),N("click",
function(){return b.snackbarRef.dismissWithAction()}),M(1,"mat-icon",1),K(2,"p",2),Q(3),L()(),K(4,"button",3),N("click",function(c){return b.onDismiss(c)}),M(5,"mat-icon",4),L());a&2&&(B(3),S(" ",b.message||b.DEFAULT_MESSAGE," "))},dependencies:[Jy,kB,iB],styles:[".mat-mdc-snack-bar-container.refresh-data-notification{padding:0;min-height:auto;border-radius:8px;background-color:rgba(0,0,0,0);width:480px}.mat-mdc-snack-bar-container.refresh-data-notification .mdc-snackbar__surface{border-radius:8px;padding-right:0}.mat-mdc-snack-bar-container.refresh-data-notification .mat-mdc-snack-bar-label{padding:0}.refresh-data-notification-container{border-radius:8px;background-color:#1a73e8;background-color:var(--primary);color:#fff;cursor:pointer;display:flex;padding:8px 32px 8px 12px}.refresh-data-notification-dismiss-button{position:absolute;right:8px;top:8px}.refresh-data-notification-dismiss-button .mat-icon{color:#fff}/*# sourceMappingURL=refresh_data_notification.css.map */\n"],
encapsulation:2});var N0d=function(){this.snackbar=p(rB)},O0d=function(a){var b=Xr.REFRESH_ISSUE.displayAs,c={panelClass:"refresh-data-notification",data:"New comment available"};b&&(c.announcementMessage="New comment available. ",c.announcementMessage+="Press "+b+" to fetch new data.");a.currentSnackBar=a.snackbar.openFromComponent(M0d,c);return a.currentSnackBar};N0d.\u0275fac=function(a){return new (a||N0d)};N0d.\u0275prov=Dc({token:N0d,factory:N0d.\u0275fac,providedIn:"root"});var b8=function(){Z.apply(this,arguments);var a=this;this.eventsForIssue=p(NP);this.issueFullFridge=p(gQ);this.preferences=p(hR);this.commentHistoryDialogService=p(QY);this.issueDetailsBrain=p(YQ);this.errorHandler=p(pO);this.refreshDataNotification=p(N0d);this.eventsForIssueWatcher=p(kY);this.analytics=p(eQ);this.appEvents=p(UO);this.id$=new uf(1);this.events$=this.id$.pipe(yf(function(b){return a.eventsForIssue.watch(b)}),A(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.issue$=
this.id$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.enableInlineScreenshots$=this.preferences.showInlineImages$.pipe(A(Boolean),xf(!0))};Y(b8,Z);b8.\u0275dir=Z.\u0275dir;
b8.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.issueDetailsBrain.urlComment$.subscribe(function(b){var c=b.commentNumber;b=b.commentVersion;if(c&&b!==void 0&&b>-1){var d=Br(a.id$);a.commentHistoryDialogService.show(d,c,b!=null?b:-1)}}));this.subscriptions.add(this.eventsForIssue.error$.subscribe(function(b){a.errorHandler.errorHandler(null,b)}));this.subscriptions.add(nBd(this.eventsForIssueWatcher,Br(this.id$)).subscribe(function(){P0d(a)}));this.subscriptions.add(this.events$.subscribe(function(){var b;
(b=a.refreshDataNotification.currentSnackBar)==null||b.dismiss()}));this.destroyed$.pipe(lf(1)).subscribe(function(){var b;(b=a.refreshDataNotification.currentSnackBar)==null||b.dismiss()})};
var P0d=function(a){a.analytics.trackEvent("pushUpdate","display","comment");O0d(a.refreshDataNotification).afterDismissed().subscribe(function(b){b.dismissedByAction?(a.analytics.trackEvent("pushUpdate","fetchResource","comment"),a.issueFullFridge.poke(Br(a.id$)),a.eventsForIssue.poke(Br(a.id$)),a.appEvents.scrollToCommentBox.next()):a.analytics.trackEvent("pushUpdate","dismiss","comment")})};da.Object.defineProperties(b8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});
b8.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(b8)))(b||b8)}}();
b8.\u0275cmp=D({type:b8,selectors:[["issue-event-list"]],inputs:{id:"id"},standalone:!1,features:[Ef],decls:6,vars:15,consts:[[3,"issueId","events","issueAccessLevel","showFullHistory"]],template:function(a,b){a&1&&(M(0,"b-event-stream",0),T(1,"async"),T(2,"async"),T(3,"async"),T(4,"async"),T(5,"async"));a&2&&(I("issueId",U(1,5,b.id$))("events",U(2,7,b.events$))("issueAccessLevel",U(3,9,b.accessLevel$))("showFullHistory",U(4,11,b.preferences.showFullHistory$)),If("data-will-inline-screenshots",U(5,
13,b.enableInlineScreenshots$)?!0:null))},dependencies:[JZ,Tx],styles:["[_nghost-%COMP%]     .bv2-edit-issue-history-stream {\n      padding-left: 0;\n    }"]});var t$b=function(a){return{data:a}},Q0d=function(){this.dialogRef=p(RA);this.data=p(TA);this.userInstructions=""};Q0d.\u0275fac=function(a){return new (a||Q0d)};
Q0d.\u0275cmp=D({type:Q0d,selectors:[["b-retry-run-dialog"]],standalone:!1,decls:24,vars:5,consts:[["tailwindInfo",""],[1,"dialog"],["mat-dialog-title",""],["tabindex","0"],[1,"flex-kids-y","gap"],["appearance","outline",1,"retry-instructions","w-100"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMaxRows","10","placeholder","e.g. a different root cause, a specific code path, or a similar fixed bug.",3,"ngModelChange","ngModel"],[1,"mat-elevation-z0","bg-secondary","bordered"],["align","end"],
["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary",1,"medium",3,"mat-dialog-close","disabled"],["matExpansionPanelContent",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex-kids-y","gap","tailwind-info"],[1,"prompt-container","bg-off-main","carded"],[1,"prompt-header","heading-xs"],[1,"prompt-text","overflow","pre-line"],[1,"step-container","carded","flex-kids-y","gap"],[1,"step-number","muted"],[1,"step-header",
"heading-xs"],[1,"step-text","pre-line","break-word"],[1,"step-text","bg-off-main","carded","overflow","codefont"],[1,"bold-text"],[1,"key-text"],[1,"value-text"],[1,"output-text","overflow","pre-line"]],template:function(a,b){if(a&1){var c=t();K(0,"article",1)(1,"h2",2);Q(2," Retry AI fix ");L();K(3,"mat-dialog-content",3)(4,"div",4)(5,"p");Q(6," Please review the details and summary of the last run. If available, use the ");K(7,"b");Q(8,"View Steps Taken");L();Q(9," button for more context before providing additional instructions. ");
L();K(10,"p");Q(11," For example, your instructions could address a different root cause, a specific code path, or a past, similar bug, with linked CLs. ");L();K(12,"mat-form-field",5)(13,"mat-label");Q(14,"Provide instructions (Optional)");L();K(15,"textarea",6);Cg("ngModelChange",function(d){u(c);Bg(b.userInstructions,d)||(b.userInstructions=d);return v(d)});L()();F(16,u$b,5,4,"mat-expansion-panel",7);L()();K(17,"mat-dialog-actions",8)(18,"button",9);Q(19," Cancel ");L();K(20,"button",10);Q(21,
" Retry ");L()()();E(22,E$b,8,1,"ng-template",11,0,Mg)}a&2&&(B(15),Ag("ngModel",b.userInstructions),B(),G(b.data.trajectory?16:-1),B(2),I("mat-dialog-close",void 0),B(2),I("mat-dialog-close",b.userInstructions)("disabled",!b.userInstructions))},dependencies:[Sx,xj,fE,mE,kB,gB,VA,XA,ZA,YA,HD,SD,KD,VD,FE,YD,IL,JL,KL,HL,Yx],styles:[".dialog[_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:24px;gap:4px;-moz-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.dialog[_ngcontent-%COMP%]   .heading-m[_ngcontent-%COMP%]{line-height:26px}.dialog[_ngcontent-%COMP%]   .icon-m[_ngcontent-%COMP%]{display:inline-block;vertical-align:top}.dialog[_ngcontent-%COMP%]   .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;gap:8px}.dialog[_ngcontent-%COMP%]   .retry-instructions[_ngcontent-%COMP%]{width:100%}.dialog[_ngcontent-%COMP%]   .retry-instructions[_ngcontent-%COMP%]   textarea[matInput][_ngcontent-%COMP%]{overflow-y:hidden;resize:none}.dialog[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;gap:12px}.dialog[_ngcontent-%COMP%]   h2[mat-dialog-title][_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;font-weight:400;font-size:1.5rem}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]{background-color:inherit;border:none;color:var(--mat-dialog-supporting-text-color);margin-top:-1rem}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   mat-expansion-panel-header[_ngcontent-%COMP%]{padding-left:.5rem}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   mat-panel-title[_ngcontent-%COMP%]{color:inherit}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   .tailwind-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-weight:500}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   .tailwind-info[_ngcontent-%COMP%]   .bold-text[_ngcontent-%COMP%]{font-weight:700}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   .tailwind-info[_ngcontent-%COMP%]   .step-number[_ngcontent-%COMP%]{font-weight:700;font-size:.8em;text-transform:uppercase}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   .tailwind-info[_ngcontent-%COMP%]   .value-text[_ngcontent-%COMP%]{color:var(--green-text)}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   .tailwind-info[_ngcontent-%COMP%]   .key-text[_ngcontent-%COMP%]{color:var(--purple-text)}\n/*# sourceMappingURL=retry_run_dialog.css.map */"],
changeDetection:0});var c8=function(){},R0d=function(a){var b=to("buganizer-homepage-tailwind-runs")();b||(b=[]);b.includes(a)||b.push(a);uo("buganizer-homepage-tailwind-runs")(b)},S0d=function(){var a=to("buganizer-homepage-tailwind-runs")()||[];return Array.isArray(a)?[].concat(q(a)):[]},Y$b=function(a){var b=S0d();b.includes(a)&&(b.splice(b.indexOf(a),1),uo("buganizer-homepage-tailwind-runs")(b))};c8.\u0275fac=function(a){return new (a||c8)};c8.\u0275prov=Dc({token:c8,factory:c8.\u0275fac,providedIn:"root"});var mu=function(a){return{status:a}},d8=function(){this.destroyRef=p(Ce);this.errorHandler=p(pO);this.llmSuggestedBugFixService=p(AZ);this.refreshMonitor=p(VP);this.activeSession=p(uu);this.analytics=p(eQ);this.appEvents=p(UO);this.domSafe=p(mR);p(c8);this.tasksService=p(zQ);this.dialog=p(UA);this.dialogConfig={minWidth:"300px",maxWidth:"75vw",maxHeight:"80vh"};this.issueId="";this.status$=new Mj(7);this.ignored$=new Mj(!1);this.showLlmSuggestion$=ie({isEnabled:this.llmSuggestedBugFixService.isEnabledForCurrentIssue$,
ignored:this.ignored$}).pipe(A(function(a){var b=a.isEnabled;a=a.ignored;return b&&!a}));this.statusMessage$=this.status$.pipe(A(function(a){return NEd[a].message}));this.isInternalSession=this.activeSession.isInternalSession();this.LlmSuggestionStatus=MEd;this.enableTailwindMissionControl=this.activeSession.getFlag("enableTailwindMissionControl")};
d8.prototype.ngOnInit=function(){var a=this;this.refreshMonitor.getObservable().pipe(xf(null)).pipe(yf(function(){return QEd(a.llmSuggestedBugFixService,a.issueId)}),Tj(this.destroyRef)).subscribe(function(b){a.status$.next(b)});this.showLlmSuggestion$.pipe(ue(Boolean),lf(1),Tj(this.destroyRef)).subscribe(function(){a.analytics.trackEvent("tailwind","view",a.issueId)})};
var U$b=function(a){a.analytics.trackEvent("tailwind","generate",a.issueId);a.status$.next(1);a.enableTailwindMissionControl&&(R0d(a.issueId),T0d(a,a.issueId));a.llmSuggestedBugFixService.createRun(a.issueId).pipe(Tj(a.destroyRef),yf(function(b){return b.runId?PEd(a.llmSuggestedBugFixService,b.runId):(a.status$.next(4),ce(4))})).subscribe(function(b){a.status$.next(b)})};
d8.prototype.handleViewInCritique=function(){var a,b,c,d=(c=(a=this.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(b=a.results)==null?void 0:b.oclNumber)!=null?c:"";d&&(this.domSafe.openInNewTab("https://critique.corp.google.com/"+d),this.analytics.trackEvent("tailwind","viewInCritique",this.issueId),Y$b(this.issueId))};d8.prototype.openSidebar=function(){this.appEvents.openIssueDetailsPageSidebar.next()};
d8.prototype.ignore=function(){var a=this.llmSuggestedBugFixService,b=this.issueId;isNaN(Number(b))||(JEd(a.ignoredIssuesCache,b),Qcd("llm_suggested_bug_fix_ignored_issues")(KEd(a.ignoredIssuesCache)));this.ignored$.next(!0)};
d8.prototype.openTailwindInfoDialog=function(){this.analytics.trackEvent("tailwind","openTrajectoryDialog",this.issueId);var a,b;this.dialog.open(T7,Object.assign({},{data:(a=this.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(b=a.results)==null?void 0:b.trajectory},this.dialogConfig));Y$b(this.issueId)};
var bac=function(a){var b,c;a=(b=a.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(c=b.results)==null?void 0:c.trajectory;return a!==void 0&&a.prompt!==""&&a.steps.length>0},dac=function(a){var b,c=(b=a.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:b.metadata,d,e;SA(a.dialog.open(Q0d,Object.assign({},{data:bac(a)?{trajectory:(d=a.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(e=d.results)==null?void 0:e.trajectory}:{}},a.dialogConfig))).subscribe(function(f){if(f!==
void 0){a.status$.next(1);var g;a.llmSuggestedBugFixService.retryRun(a.issueId,f,(g=c==null?void 0:c.runId)!=null?g:"").pipe(Tj(a.destroyRef),yf(function(k){return k.runId?PEd(a.llmSuggestedBugFixService,k.runId):(a.status$.next(4),ce(4))})).subscribe(function(k){a.status$.next(k)})}})},T0d=function(a,b){b="b/"+b;var c=new ao;c.setSeconds(c.getSeconds()+6);Iid(a.tasksService,[b],{seconds:c.getTime()/1E3,nanos:0}).pipe(Tj(a.destroyRef),mf(3E3)).subscribe(function(){},function(d){return void a.errorHandler.errorHandler(null,
d)})};d8.prototype.ignore=d8.prototype.ignore;d8.\u0275fac=function(a){return new (a||d8)};
d8.\u0275cmp=D({type:d8,selectors:[["llm-suggested-bug-fix"]],inputs:{issueId:"issueId"},standalone:!1,decls:14,vars:6,consts:[["initialButtons",""],["generatingButtons",""],["suggestionAvailableButtons",""],["errorButtons",""],["retryButton",""],["aiHelp",""],[1,"carded","margin-s-sides","margin-s-bottom","bg-main","flex-kids-x","align-items-center","ai-highlighted"],[1,"ai-icon-wrapper","pos-rel"],["svgIcon","spark_24px","color","primary",1,"margin-xs-right","shrink-0","ai-icon"],[1,"ai-loader"],
[1,"uppercase","badged","early-access"],[3,"panelTemplate"],["aria-label","AI help information"],["svgIcon","help-outline",1,"icon-s"],["target","_blank","href","http://go/passerine-feedback","matTooltip","Provide feedback for this feature.","aria-label","Provide feedback for this feature",1,"feedback-icon","feedback-button"],["svgIcon","feedback-outline",1,"icon-s"],[1,"flex-kids-x","grow-1","justify-flex-end"],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",
"color","primary","mat-flat-button","","matTooltip","Generate a LLM-suggested CL for this bug.",1,"small","margin-s-left",3,"click"],["type","button","color","secondary","mat-stroked-button","","matTooltip","Ignore the LLM-suggested fix feature for this bug.",1,"small","margin-s-left",3,"click"],["type","button","color","secondary","mat-stroked-button","","matTooltip","View the summary of the LLM-suggested fix in the side panel.",1,"small","margin-s-left",3,"click"],["type","button","color","primary",
"mat-flat-button","","matTooltip","View the LLM-suggested CL for this bug in Critique.",1,"small","margin-s-left",3,"click"],["type","button","color","primary","mat-button","","matTooltip","Show attempted steps taken by the AI. In a dialog.",1,"small","margin-s-left"],["type","button","color","primary","mat-button","","matTooltip","Show attempted steps taken by the AI. In a dialog.",1,"small","margin-s-left",3,"click"],["type","button","color","primary","mat-flat-button","","matTooltip","Retry generating the LLM-suggested CL for this bug.",
1,"small","margin-s-left"],["type","button","color","primary","mat-flat-button","","matTooltip","Retry generating the LLM-suggested CL for this bug.",1,"small","margin-s-left",3,"click"]],template:function(a,b){a&1&&(Zf(0),T(1,"async"),F(2,T$b,21,6,"div",6),T(3,"async"),E(4,V$b,4,0,"ng-template",null,0,Mg)(6,W$b,0,0,"ng-template",null,1,Mg)(8,Z$b,5,4,"ng-template",null,2,Mg)(10,cac,2,5,"ng-template",null,3,Mg)(12,fac,1,1,"ng-template",null,4,Mg));a&2&&(a=$f(U(1,1,b.status$)),B(2),G(b.isInternalSession&&
U(3,4,b.showLlmSuggestion$)&&a!==b.LlmSuggestionStatus.HIDDEN?2:-1))},dependencies:[Sx,Jy,kB,gB,nA,QV,jL,Tx],styles:['.bg-main[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}.ai-highlighted[_ngcontent-%COMP%]{background:var(--purple-bg);position:relative}.ai-highlighted[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;border-radius:4px 0 0 4px;background:-webkit-linear-gradient(315deg,var(--insights-purple) 0,var(--insights-pink) 100%);background:linear-gradient(135deg,var(--insights-purple) 0,var(--insights-pink) 100%)}.ai-highlighted[_ngcontent-%COMP%]   .ai-icon[_ngcontent-%COMP%]{color:var(--purple-text)}.ai-highlighted[_ngcontent-%COMP%]   .ai-icon-wrapper[_ngcontent-%COMP%]{margin-right:.5em}.ai-highlighted[_ngcontent-%COMP%]   .ai-loader[_ngcontent-%COMP%]{position:absolute;top:-.1em;left:-.1em;width:2.1em;height:2.1em;border-radius:50%;-webkit-animation:_ngcontent-%COMP%_rotate 1s linear infinite;animation:_ngcontent-%COMP%_rotate 1s linear infinite}.ai-highlighted[_ngcontent-%COMP%]   .ai-loader[_ngcontent-%COMP%]:before{content:"";-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;inset:0;border-radius:50%;border:2px solid var(--purple-text);-webkit-animation:_ngcontent-%COMP%_clipSpinner 2s linear infinite alternate;animation:_ngcontent-%COMP%_clipSpinner 2s linear infinite alternate}@-webkit-keyframes _ngcontent-%COMP%_rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes _ngcontent-%COMP%_rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes _ngcontent-%COMP%_clipSpinner{0%{-webkit-clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0);clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}25%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}50%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}75%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}to{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}}@keyframes _ngcontent-%COMP%_clipSpinner{0%{-webkit-clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0);clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}25%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}50%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}75%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}to{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}}.ai-highlighted[_ngcontent-%COMP%]   button[mat-stroked-button][_ngcontent-%COMP%]{background:var(--background)}.generate[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.generate[_ngcontent-%COMP%]:hover{color:var(--blue-800);background:-webkit-linear-gradient(315deg,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd) 50%/1500% 1500%;background:linear-gradient(135deg,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd) 50%/1500% 1500%;-webkit-animation:_ngcontent-%COMP%_shimmer 2.1s linear infinite;animation:_ngcontent-%COMP%_shimmer 2.1s linear infinite}@-webkit-keyframes _ngcontent-%COMP%_shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}@keyframes _ngcontent-%COMP%_shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}[_nghost-%COMP%]     .llm-dialog{padding:10px}[_nghost-%COMP%]     .feedback-button{padding-left:8px;text-align:center;text-decoration:none}[_nghost-%COMP%]     .feedback-icon{color:var(--mat-icon-color)}  .tailwind-info-dialog p{font-weight:500}  .tailwind-info-dialog .bold-text{font-weight:700}  .tailwind-info-dialog .step-number{font-weight:700;font-size:.8em;text-transform:uppercase}  .tailwind-info-dialog .value-text{color:var(--green-text)}  .tailwind-info-dialog .key-text{color:var(--purple-text)}'],
changeDetection:0});var e8=function(){this.issueReferenceResolver=p(LR);this.userToLossyEmail=wm};e8.prototype.ngOnInit=function(){};e8.prototype.getCommentNumberLink=function(a){return X4a(this.issueId,{comment:a})};e8.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};e8.\u0275fac=function(a){return new (a||e8)};
e8.\u0275cmp=D({type:e8,selectors:[["comments-info"]],inputs:{issueId:"issueId",comments:"comments"},standalone:!1,decls:2,vars:0,consts:[["personCard",""],[1,"comment-info"],[1,"keep-focus-ring","hover-link",3,"routerLinkObj"],[1,"ldap",3,"onedevHovercardTrigger"],[3,"email"],[1,"keep-focus-ring","hover-link",3,"click","routerLinkObj"]],template:function(a,b){a&1&&Nf(0,kac,5,3,"span",1,Mf);a&2&&Of(b.comments)},dependencies:[VO,KK,SK,hT,bX],styles:["[_nghost-%COMP%]{overflow:hidden;display:flex;align-items:center;gap:4px;white-space:nowrap}.comment-info[_ngcontent-%COMP%]{display:flex;overflow:hidden;min-width:25px}.ldap[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1000000;margin-right:3px}"],
changeDetection:0});var f8=function(){Z.apply(this,arguments);this.ngZone=p(Rg)};Y(f8,Z);f8.\u0275dir=Z.\u0275dir;var U0d=function(a,b){return(new Td(function(c){var d=new ResizeObserver(function(e){a.ngZone.run(function(){var f=e[0];c.next({height:f.contentRect.height,width:f.contentRect.width})})});d.observe(b);return function(){d.unobserve(b)}})).pipe(zf(a.destroyed$))};f8.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(f8)))(b||f8)}}();f8.\u0275prov=Dc({token:f8,factory:f8.\u0275fac,providedIn:"root"});var V0d=["imagesSummaryWidget"],g8=function(){var a=this;this.resizeService=p(f8);this.router=p(fF);this.route=p(Lj);this.imageLinks$=new uf(1);this.paginate=!1;this.container$=new uf(1);this.containerResize$=this.container$.pipe(A(function(b){return b.nativeElement}),yf(function(b){return U0d(a.resizeService,b)}));this.issueId$=new uf(1);this.lastRenderedImageIndex$=new Mj(0);this.allImages$=this.imageLinks$.pipe(A(function(b){b=b.map(function(c){if(c.comment){var d=s8a(c.href);if(d)return{src:d,
comment:c.comment}}}).filter(Pm);return sac(b)}));this.maxImagesInOneRow$=this.containerResize$.pipe(A(function(b){return Math.floor((b.width-16)/216)}),vf({refCount:!0,bufferSize:1}));this.initialNumberOfImages$=this.maxImagesInOneRow$.pipe(A(function(b){return b*(a.paginate?4:2)}));this.imagesToRender$=ie([this.initialNumberOfImages$,this.allImages$,this.lastRenderedImageIndex$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return a.paginate?d.slice(0,c||
b):d.slice(0,b)}),A(function(b){return b.map(function(c){var d;return Object.assign({},c,{srcCorp:(d=s8a(c.src,!0))!=null?d:""})})}),nf())},mac=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,fe(a.maxImagesInOneRow$),2);if(c=g.yieldResult)d=Math.floor(b/c),e=d+4,f=e*c,a.lastRenderedImageIndex$.next(f);ae(g)})};g8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};g8.prototype.ngOnInit=function(){this.issueId$.next(this.issueId)};
g8.prototype.ngAfterContentInit=function(){this.container$.next(this.container)};da.Object.defineProperties(g8.prototype,{imageLinks:{configurable:!0,enumerable:!0,set:function(a){this.imageLinks$.next(a)},get:function(){return Br(this.imageLinks$)}}});g8.\u0275fac=function(a){return new (a||g8)};
g8.\u0275cmp=D({type:g8,selectors:[["inline-images-summary"]],viewQuery:function(a,b){a&1&&hg(V0d,7);if(a&2){var c;lg(c=mg())&&(b.container=c.first)}},inputs:{issueId:"issueId",imageLinks:"imageLinks",paginate:"paginate"},standalone:!1,decls:4,vars:3,consts:[["imagesSummaryWidget",""],[1,"container"],[1,"image-wrapper"],["target","_blank",1,"thumbnail",3,"href"],[3,"showByDefault","src"],[3,"issueId","comments"],["type","button","mat-button","",1,"small","load-more-screenshots"],["type","button",
"mat-button","",1,"small","see-all-screenshots"],["type","button","mat-button","",1,"small","load-more-screenshots",3,"click"],["type","button","mat-button","",1,"small","see-all-screenshots",3,"click"]],template:function(a,b){a&1&&(K(0,"div",null,0),F(2,rac,2,3),T(3,"async"),L());if(a&2){var c;B(2);G((c=U(3,1,b.allImages$))?2:-1,c)}},dependencies:function(){return[e8,kB,gB,kT,Tx,W0d]},styles:['.container[_ngcontent-%COMP%]{align-items:flex-start;display:flex;flex-flow:row wrap;justify-content:flex-start;max-height:390px;overflow:hidden}.show-all-images[_ngcontent-%COMP%]{max-height:100%}.image-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:8px}.image-wrapper[_ngcontent-%COMP%]   comments-info[_ngcontent-%COMP%]{margin:0 8px;max-width:200px}[_nghost-%COMP%]   a.thumbnail[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary);border:2px solid;border-color:#e8eaed;border-color:var(--c200);border-radius:8px;margin:8px;height:150px;width:200px;position:relative;overflow:hidden}[_nghost-%COMP%]   a.thumbnail[_ngcontent-%COMP%]:focus{border-color:#185abc;border-color:var(--primary-c800)}[_nghost-%COMP%]     a.thumbnail img{bottom:0;top:0;left:0;right:0;position:absolute;margin:auto;height:auto;width:auto;max-height:150%;max-width:150%}[_nghost-%COMP%]     a.thumbnail img::before{content:" ";position:absolute;left:0;height:100%;width:100%;background-color:#f8f9fa;background-color:var(--surface-secondary)}[_nghost-%COMP%]     a.thumbnail img::after{content:"\u274cBroken screenshot link";position:absolute;top:46%;left:0;width:100%;text-align:center}']});
var W0d=function(){};W0d.prototype.transform=function(a){return a.split(".png")[0]};W0d.\u0275fac=function(a){return new (a||W0d)};W0d.\u0275pipe=cf({name:"removePngExtension",type:W0d,pure:!0,standalone:!1});var X0d={DUPES:"SW-dupes",IMAGES:"SW-images",MENTIONED_ISSUES:"SW-mentioned-bugs",LINKS:"SW-links",SIMILAR_ISSUES:"SW-similar-issues",ASSIGN_TO_REPORTER:"SW-assign-to-reporter",COMPONENT_ROUTING:"SW-component-routing"},wbc=[].concat(q(Object.values(X0d)));var Y0d=function(a,b){var c=this;this.issueInteractionsTracking=a;this.analytics=b;this.recordInteractionOnce=RUa(function(d){c.analytics.trackEvent("editIssue","click",d)});this.recordImpressionOnce=RUa(function(){c.analytics.trackEvent("editIssue","view","SW")})},Sac=function(a,b,c){a.recordInteractionOnce(c);nu(a.issueInteractionsTracking,b,c+"-content-interacted");nu(a.issueInteractionsTracking,b,"SW-content-interacted")};var h8=function(){this.activeSession=p(uu);this.trackerHelpers=p(kS);this.linkText=this.rightText=this.leftText="";this.isExternalLink=!1;this.issueId=this.originalHref=this.redirectedHref=""};
h8.prototype.ngOnChanges=function(){var a;a:{var b=(a=this.sourceComment)==null?void 0:a.formattedComment;if(b){if(b.markdownFormat){a=zac(b.markdownFormat.content);break a}if(b.literalFormat){a=zac(b.literalFormat.content);break a}if(b.plainFormat){a=document.createElement("div");b=m(b.plainFormat.plainSection);for(var c=b.next();!c.done;c=b.next())(c=c.value.content)&&a.appendChild(zac(c));break a}}a=void 0}if(a=a&&Z0d(this,a)){b=a.dataset.bOriginalHref;c=a.dataset.bRedirectedHref;var d=a.dataset.bIssueId;
d&&(this.issueId=d);b&&c?(this.redirectedHref=c,this.originalHref=b,this.isExternalLink=!0):(this.originalHref=this.redirectedHref=a.href,this.isExternalLink=!1);b=[];for(c=a;c.previousSibling;){c=c.previousSibling;if($0d.has(c.nodeName))break;d=void 0;b.push((d=c.textContent)!=null?d:"")}this.leftText=b.reverse().join("");b=[];for(c=a;c.nextSibling;){c=c.nextSibling;if($0d.has(c.nodeName))break;d=void 0;b.push((d=c.textContent)!=null?d:"")}this.rightText=b.join("");this.linkText=a.innerText||a.href}else this.relatedLink&&
(c=b=a="",Qr(this.relatedLink)?c=b=this.relatedLink.href:t8a(this.relatedLink)&&(a=this.relatedLink.issueId,b=this.getIssueUrl(this.relatedLink.issueId),c=this.relatedLink.issueId,c=this.activeSession.isInternalSession()?$Qa(ft(this.trackerHelpers,c),""):this.getIssueUrl(c)),this.issueId=a,this.originalHref=this.redirectedHref=b,this.isExternalLink=!1,this.rightText=this.leftText="",this.linkText=c)};
var Z0d=function(a,b){if(a.relatedLink){if(t8a(a.relatedLink)){var c=a.relatedLink.issueId;return[].concat(q(b.querySelectorAll("a"))).find(function(e){return e.dataset.bIssueId===c})}if(Qr(a.relatedLink)){var d=a.relatedLink;return[].concat(q(b.querySelectorAll("a"))).find(function(e){a:{var f=d.href;if(e.innerText===f)e=!0;else{try{f=(new URL(f)).href}catch(g){e=!1;break a}e=e.href===f||e.href.replace("https://cl.corp.google.com/","https://critique.corp.google.com/")===f?!0:!1}}return e})}}};
h8.prototype.getIssueUrl=function(a){return ft(this.trackerHelpers,a)};h8.\u0275fac=function(a){return new (a||h8)};
h8.\u0275cmp=D({type:h8,selectors:[["mentioned-link-with-context"]],inputs:{sourceComment:"sourceComment",relatedLink:"relatedLink"},standalone:!1,features:[jx],decls:7,vars:3,consts:[[1,"wrapper"],["aria-hidden","true",1,"muted","margin-xs-right","left-justify-parent"],[3,"href","originalHref"],["aria-hidden","true",1,"muted","margin-xs-left","right"],[1,"left-justify-child"],[3,"href","issueId"],["target","_blank",1,"keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(K(0,"div",0),Q(1," \u201c "),
F(2,tac,3,1,"span",1),F(3,uac,2,3,"b-external-hyperlink-widget",2)(4,xac,2,1),F(5,yac,2,1,"span",3),Q(6," \u201d\n"),L());a&2&&(B(2),G(b.leftText?2:-1),B(),G(b.isExternalLink?3:4),B(2),G(b.rightText?5:-1))},dependencies:[KR,MR],styles:["[_nghost-%COMP%]{overflow:hidden}.wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}.right[_ngcontent-%COMP%], .left-justify-parent[_ngcontent-%COMP%], b-external-hyperlink-widget[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}b-external-hyperlink-widget[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{max-width:max(80%,350px)}.right[_ngcontent-%COMP%], .left-justify-parent[_ngcontent-%COMP%]{flex-shrink:1000000;max-width:max(80%,200px)}.left-justify-parent[_ngcontent-%COMP%]{direction:rtl;text-align:left}.left-justify-child[_ngcontent-%COMP%]{direction:ltr;unicode-bidi:bidi-override}"],
changeDetection:0});var $0d=new Set(["BR"]);var i8=function(){var a=this;this.activeSession=p(uu);this.issueFullFridge=p(gQ);this.router=p(fF);this.route=p(Lj);this.issueReferenceResolver=p(LR);this.issueReferences$=new uf(1);this.currentIssueId$=new uf(1);this.paginate=!1;this.lastRenderedMentionedIssueIndex$=new Mj(10);this.issuesMap$=this.issueReferences$.pipe(ue(Pm),yf(function(b){var c=tq(b.map(function(d){return d.issueId}));return a.issueFullFridge.watchSet(c).pipe(A(function(d){return new Map(d.map(function(e){return[e==null?void 0:
e.issueId.toString(),e]}))}),A(function(d){return new Map(c.map(function(e){return[e,d.get(e)]}))}))}));this.issueReferencesMap$=this.issueReferences$.pipe(ue(Pm),A(function(b){var c=new Map;b=m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.issueId.toString();c.has(e)?c.get(e).push(d):c.set(e,[d])}return c}));this.allMentionedIssues$=ie([this.issueReferencesMap$,this.issuesMap$]).pipe(A(function(b){b=m(b);var c=b.next().value;b=b.next().value;return[].concat(q(b)).filter(function(d){return m(d).next().value!==
a.issueId}).map(function(d){var e=m(d);d=e.next().value;e=e.next().value;var f=c.get(d),g=f==null?void 0:f.map(function(k){var l,r,w=(l=k.comment)==null?void 0:(r=l.userPerformingActionUser)==null?void 0:r.emailAddress;return{commentNumber:k.sourceCommentNumber,author:(w==null?void 0:w.split("@")[0])+"@",issueEvent:k.comment}});return{hasViewAccess:!!e,issueId:d,shortIssueUrl:$Qa(a.activeSession.getAppBaseUrl(),d),sourceComments:g,title:e==null?void 0:e.snapshot[0].title,priority:e?e.snapshot[0].priority:
null,relatedLinks:f}})}));this.mentionedIssuesToRender$=ie([this.allMentionedIssues$,this.lastRenderedMentionedIssueIndex$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return a.paginate?b.slice(0,c):b.slice(0,5)}))};i8.prototype.getCommentNumberLink=function(a){return X4a(this.issueId,{comment:a})};i8.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};
i8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};da.Object.defineProperties(i8.prototype,{issueReferences:{configurable:!0,enumerable:!0,set:function(a){this.issueReferences$.next(a)}},currentIssueId:{configurable:!0,enumerable:!0,set:function(a){this.currentIssueId$.next(a);this.issueId=a}}});i8.\u0275fac=function(a){return new (a||i8)};
i8.\u0275cmp=D({type:i8,selectors:[["b-mentioned-issues"]],inputs:{issueReferences:"issueReferences",currentIssueId:"currentIssueId",paginate:"paginate"},standalone:!1,decls:2,vars:3,consts:[[3,"matTooltip","issuePriority"],[1,"issue-title-and-link"],[1,"padded-s-sides","title",3,"matTooltip"],[3,"sourceComment","relatedLink"],[1,"margin-left-auto",3,"issueId","comments"],["type","button","mat-button","",1,"small","load-more-issues"],["type","button","mat-button","",1,"small","see-all-issues"],["type",
"button","mat-button","",1,"small","load-more-issues",3,"click"],["type","button","mat-button","",1,"small","see-all-issues",3,"click"]],template:function(a,b){a&1&&(F(0,Gac,2,3),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.mentionedIssuesToRender$))?0:-1,c)}},dependencies:function(){return[vW,kB,gB,vK,nA,h8,e8,Tx,a1d]},styles:["table[_ngcontent-%COMP%]{width:100%;display:block}table[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;min-width:22px}.title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:50px}mentioned-link-with-context[_ngcontent-%COMP%]{min-width:100px}.issue-title-and-link[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}.comment-author-and-number[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-column-gap:2px;-moz-column-gap:2px;column-gap:2px}b-issue-priority-display[_ngcontent-%COMP%]{min-height:24px;min-width:22px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.normal-link[_ngcontent-%COMP%]{text-decoration:underline}.see-all-issues[_ngcontent-%COMP%]{margin-left:-8px}"],
changeDetection:0});var a1d=function(){};a1d.prototype.transform=function(a){return a.map(function(b){return b.issueEvent}).filter(Pm)};a1d.\u0275fac=function(a){return new (a||a1d)};a1d.\u0275pipe=cf({name:"toComments",type:a1d,pure:!0,standalone:!1});var Lac=function(a,b){return b[0].href},j8=function(){var a=this;this.router=p(fF);this.route=p(Lj);this.allLinks$=new uf(1);this.issueId$=new uf(1);this.lastRenderedRelatedLinkIndex$=new Mj(10);this.paginate=!1;this.allLinkGroups$=this.allLinks$.pipe(A(function(b){return ZZa(b,function(c){return c.href})}));this.linkGroupsToRender$=ie([this.allLinkGroups$,this.lastRenderedRelatedLinkIndex$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return a.paginate?Pac(b,c):b.length===6?Pac(b,
6):Pac(b,5)}))};j8.prototype.ngOnInit=function(){};j8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};da.Object.defineProperties(j8.prototype,{links:{configurable:!0,enumerable:!0,set:function(a){this.allLinks$.next(a)},get:function(){throw Error("vg");}},issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return Br(this.issueId$)}}});j8.\u0275fac=function(a){return new (a||j8)};
j8.\u0275cmp=D({type:j8,selectors:[["related-links-widget"]],inputs:{links:"links",issueId:"issueId",paginate:"paginate"},standalone:!1,decls:2,vars:3,consts:[[1,"related-link","flex-kids-x","align-items-center","gap-s","margin-xs-bottom"],[3,"sourceComment","relatedLink"],[1,"margin-left-auto",3,"issueId","comments"],["type","button","mat-button","",1,"small","load-more-links"],["type","button","mat-button","",1,"small","see-all-links"],["type","button","mat-button","",1,"small","load-more-links",
3,"click"],["type","button","mat-button","",1,"small","see-all-links",3,"click"]],template:function(a,b){a&1&&(F(0,Nac,2,3),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.allLinkGroups$))?0:-1,c)}},dependencies:function(){return[e8,kB,gB,h8,Tx,b1d]},styles:["comments-info[_ngcontent-%COMP%]{flex-shrink:1.5;min-width:5em;justify-content:end}mentioned-link-with-context[_ngcontent-%COMP%]{max-width:90%}"],changeDetection:0});
var Oac=gn(function(a){return Math.min.apply(Math,q(a.map(function(b){return b.sourceCommentNumber})))},hn),b1d=function(){};b1d.prototype.transform=function(a){return a.map(function(b){return b.comment}).filter(Pm)};b1d.\u0275fac=function(a){return new (a||b1d)};b1d.\u0275pipe=cf({name:"toComments",type:b1d,pure:!0,standalone:!1});var Tac=function(){return[]},k8=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(uu);this.userPreferencesManager=p(hR);this.issueInteractionsTracking=p(CS);this.issueFullFridge=p(gQ);this.analytics=p(eQ);this.eventsForIssueFridge=p(NP);this.similarIssuesApi=p(mW);this.issueEnrichmentFridge=p(RP);this.issuePermissionService=p($Q);this.issueRecommendationFridge=p(iQ);this.recommendationTriggerService=p(cR);this.TabKeys=X0d;this.issueId$=new uf(1);this.alwaysStartCollapsed=!1;this.enableSummaryBasedSimilarIssuesUI=
this.activeSession.getFlag("enableSummaryBasedSimilarIssuesUI");this.issue$=this.issueId$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}),ue(Pm),vf({bufferSize:1,refCount:!0}));this.commentNumberToEventMap$=this.issueId$.pipe(yf(function(b){return a.eventsForIssueFridge.watch(b)}),A(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}),A(function(b){return new Map(b.filter(function(c){return!!c.commentNumber}).map(function(c){return[c.commentNumber,c]}))}),vf({bufferSize:1,refCount:!0}));
this.relatedLinks$=ie([this.issue$,this.commentNumberToEventMap$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;var e;return((e=b.relatedLinks)==null?void 0:e.map(function(f){return Object.assign({},f,{comment:d.get(f.sourceCommentNumber)})}))||[]}),vf({bufferSize:1,refCount:!0}));this.imageLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(p8a)}),vf({bufferSize:1,refCount:!0}));this.distinctImageLinksCount$=this.imageLinks$.pipe(A(function(b){return sq(b,function(c){return s8a(c.href)})}),
A(function(b){return b.length}),vf({bufferSize:1,refCount:!0}));this.shouldShowImages$=this.imageLinks$.pipe(A(function(b){return a.activeSession.isInternalSession()&&c1d(a,b)}),vf({bufferSize:1,refCount:!0}));this.issues$=this.relatedLinks$.pipe(A(function(b){return b.filter(t8a)}));this.distinctIssuesCount$=this.issues$.pipe(A(function(b){return b.filter(function(c){return c.issueId!==a.issueId})}),A(function(b){return sq(b,function(c){return c.issueId})}),A(function(b){return b.length}));this.shouldShowIssues$=
this.distinctIssuesCount$.pipe(A(Boolean));this.otherLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(u8a)}),vf({bufferSize:1,refCount:!0}));this.distinctOtherLinksCount$=this.otherLinks$.pipe(A(function(b){return sq(b,function(c){return c.href})}),A(function(b){return b.length}),vf({bufferSize:1,refCount:!0}));this.shouldShowLinks$=this.otherLinks$.pipe(A(function(b){return a.shouldShowLinks(b)}),vf({bufferSize:1,refCount:!0}));this.similarIssueIds$=this.issueId$.pipe(ue(Pm),yf(function(b){return uvd(a.similarIssuesApi,
{issueId:Number(b),embeddingType:a.enableSummaryBasedSimilarIssuesUI?2:1})}),A(function(b){return b.similarIssues}),A(function(b){return b.map(function(c){return c.issueId})}),vf({bufferSize:1,refCount:!0}));this.similarIssuesEnrichments$=(this.enableSimilarIssuesEnrichments=this.activeSession.isInternalSession())?this.issueId$.pipe(yf(function(b){return a.issueEnrichmentFridge.watch(b)}),A(function(b){var c;return((c=b==null?void 0:b.enrichments)!=null?c:[]).filter(function(d){var e,f;return((f=
(e=d.similarIssues)==null?void 0:e.issueIds)!=null?f:[]).length>0})}),vf({bufferSize:1,refCount:!0})):ce([]);this.shouldShowSimilarIssues$=ie([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b.length>0||c.length>0}));this.dedupeCanonicalRecommendation$=this.issueId$.pipe(yf(function(b){return Mjd(a.recommendationTriggerService,b)}),vf({bufferSize:1,refCount:!0}));this.dedupeBatchRecommendation$=this.issueId$.pipe(yf(function(b){return Njd(a.recommendationTriggerService,
b)}),vf({bufferSize:1,refCount:!0}));this.dedupeRecommendation$=ie([this.dedupeCanonicalRecommendation$,this.dedupeBatchRecommendation$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b!=null?b:c}),vf({bufferSize:1,refCount:!0}));this.shouldShowDupeSuggestions$=this.dedupeRecommendation$.pipe(A(Boolean));this.enableNeedsInfoUi=this.activeSession.getFlag("enableNeedsInfoUi");this.assignToReporterRecommendation$=this.issueId$.pipe(yf(function(b){return Ojd(a.recommendationTriggerService,
b)}));this.shouldShowAssignToReporterSuggestion$=this.assignToReporterRecommendation$.pipe(A(Boolean));this.componentRoutingRecommendation$=this.issueId$.pipe(yf(function(b){return Pjd(a.recommendationTriggerService,b)}));this.shouldShowComponentRoutingSuggestion$=this.componentRoutingRecommendation$.pipe(A(Boolean));this.tabKeys$=ie([this.shouldShowAssignToReporterSuggestion$.pipe(A(function(b){return{show:b,key:"SW-assign-to-reporter"}})),this.shouldShowComponentRoutingSuggestion$.pipe(A(function(b){return{show:b,
key:"SW-component-routing"}})),this.shouldShowDupeSuggestions$.pipe(A(function(b){return{show:b,key:"SW-dupes"}})),this.shouldShowSimilarIssues$.pipe(A(function(b){return{show:b,key:"SW-similar-issues"}})),this.shouldShowImages$.pipe(A(function(b){return{show:b,key:"SW-images"}})),this.shouldShowIssues$.pipe(A(function(b){return{show:b,key:"SW-mentioned-bugs"}})),this.shouldShowLinks$.pipe(A(function(b){return{show:b,key:"SW-links"}}))]).pipe(A(function(b){return b.filter(function(c){return c.show}).map(function(c){return c.key})}));
this.shouldShowSummaryCard$=this.tabKeys$.pipe(A(function(b){return!!b.length}),mf(0,Dr));this.initiallyExpandedTabs=wbc.map(function(b){return lkd(a.userPreferencesManager,b)?void 0:b}).filter(Pm);this.onTabExpanded$=new aQ;this.issueSummaryTracking=new Y0d(this.issueInteractionsTracking,this.analytics)};Y(k8,Z);k8.\u0275dir=Z.\u0275dir;
k8.prototype.ngOnInit=function(){var a=this;this.alwaysStartCollapsed&&(this.initiallyExpandedTabs=[]);this.subscriptions.add(this.onTabExpanded$.pipe(jf(1E3),yf(function(b){var c=b.allTabKeys;var d=b.expandedTabKeys;return kkd(a.userPreferencesManager,Object.fromEntries(c.map(function(e){return[e,!d.has(e)]})))})).subscribe());this.subscriptions.add(this.tabKeys$.subscribe(function(b){var c=a.issueSummaryTracking,d=a.issueId;b=new Set(b);for(var e=m(b),f=e.next();!f.done;f=e.next())nu(c.issueInteractionsTracking,
d,f.value+"-available");b.size>0&&nu(c.issueInteractionsTracking,d,"SW-available")}))};k8.prototype.shouldShowLinks=function(a){return a.length===0||a.every(function(b){return b.sourceCommentNumber===1})?!1:!0};var c1d=function(a,b){if(b.length===0)return!1;b=b.every(function(c){var d;return c.sourceCommentNumber===1&&((d=c.comment)==null?void 0:d.formattingMode)==="MARKDOWN"});return iR(a.userPreferencesManager).showInlineImages&&b?!1:!0};
da.Object.defineProperties(k8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return Br(this.issueId$)}}});k8.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(k8)))(b||k8)}}();
k8.\u0275cmp=D({type:k8,selectors:[["issue-summary-card"]],inputs:{issueId:"issueId",alwaysStartCollapsed:"alwaysStartCollapsed"},standalone:!1,features:[Ef],decls:4,vars:3,consts:[[1,"a11y-only"],["ariaLabel","issue summary sections",3,"tabKeys","expandedTabs"],["ariaLabel","issue summary sections",3,"expandedTabsChanged","contentShownChanged","tabKeys","expandedTabs"],["ariaLabel","Toggle screenshots summary section",3,"key"],["expandable-tab-icon",""],["expandable-tab-header",""],["expandable-tab-content",
""],["ariaLabel","Toggle mentioned issues summary section",3,"key"],["ariaLabel","Toggle links summary section",3,"key"],["ariaLabel","Toggle similar issues summary section",3,"key"],["ariaLabel","Toggle suggestion duplicate issues",3,"key"],["ariaLabel","Toggle suggestion Assign to reporter",3,"key"],["ariaLabel","Toggle reroute suggestion",3,"key"],["svgIcon","image",1,"icon-s"],[3,"issueId","imageLinks"],[3,"click","issueId","imageLinks"],["svgIcon","bug_report_24px",1,"icon-s"],[3,"issueReferences",
"currentIssueId"],[3,"click","issueReferences","currentIssueId"],["svgIcon","link",1,"icon-s"],[3,"click","links","issueId"],["svgIcon","spark_24px","color","primary",1,"icon-s"],[3,"issueId","similarIssueIds","similarIssuesEnrichments"],[3,"click","issueId","similarIssueIds","similarIssuesEnrichments"],["svgIcon","tab_close_24px","color","primary",1,"icon-s"],[1,"rounded",3,"recommendation"],["svgIcon","keyboard_return_24px","color","primary",1,"icon-s"],["svgIcon","route_24px","color","primary",
1,"icon-s"]],template:function(a,b){a&1&&(K(0,"h3",0),Q(1,"Issue summary"),L(),F(2,xbc,21,11,"expandable-tabs",1),T(3,"async"));if(a&2){var c;B(2);G((c=U(3,1,b.tabKeys$))?2:-1,c)}},dependencies:[Jy,bZ,ZY,$Y,aZ,cZ,g8,i8,j8,YZ,k_,Tx],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}[_nghost-%COMP%]     expandable-tabs .expandable-tabs-contents .SW-similar-issues{border-bottom:0;padding-bottom:8px}mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}"],
changeDetection:0});var l8=function(){this.matDialog=p(UA)};l8.prototype.show=function(a){this.dialog=this.matDialog.open(m8,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{statusUpdates:a}});return fe(SA(this.dialog))};l8.\u0275fac=function(a){return new (a||l8)};l8.\u0275prov=Dc({token:l8,factory:l8.\u0275fac,providedIn:"root"});var m8=function(){Z.apply(this,arguments);this.data=p(TA);this.dialogService=p(l8);this.dialogRef=p(RA);this.statusUpdates=this.data.statusUpdates};Y(m8,Z);m8.\u0275dir=Z.\u0275dir;
m8.prototype.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(zf(this.destroyed$)).subscribe(function(b){if(b.key==="Escape"){var c;(c=a.dialogService.dialog)==null||c.close()}});this.dialogRef.backdropClick().pipe(zf(this.destroyed$)).subscribe(function(){var b;(b=a.dialogService.dialog)==null||b.close()})};m8.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(m8)))(b||m8)}}();
m8.\u0275cmp=D({type:m8,selectors:[["ng-component"]],standalone:!1,features:[Ef],decls:9,vars:1,consts:[["mat-dialog-title",""],["tabindex","0","mat-dialog-content",""],[1,"history-list"],[1,"version"],["mat-dialog-actions",""],["type","button","mat-button","",3,"mat-dialog-close"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"version-header"],[1,"bv2-event-user-name",3,"model"],["mode","datetime",3,"timestamp"],[1,"muted","float-right","float-clear"],[1,"type-xs"],[1,"update-email"],
[3,"email"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"History for Status Update"),L(),K(2,"section",1)(3,"ul",2),Nf(4,ybc,19,12,"li",3,Mf),L()(),K(6,"footer",4)(7,"button",5),Q(8," Close "),L()());a&2&&(B(4),Of(b.statusUpdates),B(3),I("mat-dialog-close",void 0))},dependencies:[rV,kB,gB,VA,XA,ZA,YA,gT,aV,$U,FS,WU],styles:[".history-list[_ngcontent-%COMP%]{overflow:auto;padding:0}.history-list[_ngcontent-%COMP%]   .version[_ngcontent-%COMP%]:first-child{border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider)}.version[_ngcontent-%COMP%]{position:relative;border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);padding:8px 5px}.version-header[_ngcontent-%COMP%]{margin-left:40px}pre[_ngcontent-%COMP%]{cursor:auto;display:block;margin:20px 0 10px 40px}b-formatted-date-time[_ngcontent-%COMP%]{float:right}.bv2-event-user-image-cell[_ngcontent-%COMP%]{padding-top:8px;padding-left:5px;margin:0}.update-email[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}\n/*# sourceMappingURL=status_update_history.css.map */"],
changeDetection:0});var d1d=["noteContainer"],Lbc=function(a){return[a]},e1d={FRESH:0,STALE:1,NONE:2,0:"FRESH",1:"STALE",2:"NONE"},n8=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(uu);this.analytics=p(eQ);this.confirmationDialogService=p(dS);this.currentUser=p(N2);this.editStatusUpdateDialogService=p(k4);this.statusUpdateFactory=p(m4);this.errorHandler=p(pO);this.issueFullFridge=p(gQ);this.issuePermissionService=p($Q);this.statusUpdateService=p(j4);this.statusUpdateHistoryDialogService=p(l8);this.userPreferencesManager=
p(hR);this.log=p(nO);this.Freshness=e1d;this.UiState=f1d;this.FormattingMode=Um;this.issueId$=new uf(1);this.issue$=this.issueId$.pipe(yf(function(b){return a.issueFullFridge.watch(b)}));this.componentId$=this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0].componentId}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.aggregatedData)==null?void 0:
c.teamId}));this.isCollapsed=!1;this.statusUpdate$=this.issue$.pipe(A(function(b){return b==null?void 0:b.statusUpdate}));this.statusUpdateAsNote$=this.statusUpdate$.pipe(ue(Pm),A(function(b){return{unlinkifiedComment:b.updateText,formattedComment:b.formattedText}}));this.semanticClass$=this.statusUpdate$.pipe(A(function(b){var c;return(c=t7a(b==null?void 0:b.updateText))!=null?c:""}));this.statusIsEmpty$=this.statusUpdate$.pipe(A(function(b){return((b==null?void 0:b.updateText)||"").trim()===""}));
this.freshnessIndicator$=ie([this.statusIsEmpty$,this.statusUpdate$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(b)return 2;var d;b=(c==null?void 0:(d=c.updateTime)==null?void 0:d.seconds)||0;return Date.now()/1E3-b<86400?0:1}));this.uiState$=this.statusIsEmpty$.pipe(A(function(b){return b?1:2}),xf(0));this.formattingModeOverride$=new Mj(void 0);this.formattingMode$=ie([this.statusUpdate$,this.formattingModeOverride$]).pipe(A(function(b){var c=m(b);b=c.next().value;return(c=
c.next().value)?c:(b==null?void 0:b.formattingMode)||"PLAIN"}));this.menuItems$=ie([this.issueId$,this.statusUpdate$,this.issuePermissionService.hasAclToEdit$,this.issuePermissionService.hasAclToAdmin$,this.formattingMode$]).pipe(A(function(b){var c=m(b);var d=c.next().value;var e=c.next().value;b=c.next().value;var f=c.next().value;c=c.next().value;var g=e!=null;e=e&&(e==null?void 0:e.updateText)!=="";var k=[];e&&k.push({type:"submenu",label:"View as",className:"view-as-format",items:[{type:"select",
label:"Classic",action:function(){a.formattingModeOverride$.next("PLAIN")},selected:c==="PLAIN"},{type:"select",label:"Markdown",action:function(){a.formattingModeOverride$.next("MARKDOWN")},selected:c==="MARKDOWN"},{type:"select",label:"Source",action:function(){a.formattingModeOverride$.next("LITERAL")},selected:c==="LITERAL"}]});b&&k.push({type:"action",label:"Edit Status Update",action:function(){a.editStatusUpdate()}});g&&k.push({type:"action",label:"Show editing history",action:function(){g1d(a,
d)}});e&&f&&k.push({type:"action",label:"Delete Status Update",action:function(){a.confirmationDialogService.open({title:"Delete Status Update?",content:Bh("\n                    Deleting a Status Update will remove it from the history. It\n                    will be purged after 30 days. This cannot be undone."),confirmButtonText:"Delete",onConfirm:function(){a.doDelete()}})}});k.push(h1d);return k}));this.showEditButton$=this.issuePermissionService.hasAclToEdit$};Y(n8,Z);n8.\u0275dir=Z.\u0275dir;
n8.prototype.ngOnInit=function(){var a=this;setTimeout(function(){var b,c;return y(function(d){if(d.nextAddress==1)return z(d,fe(a.uiState$.pipe(ue(function(e){return e!==0}))),2);b=d.yieldResult;c=Nbc(b);a.analytics.trackEvent("issue","statusUpdateDisplay",c);ae(d)})},1E3)};n8.prototype.ngAfterViewInit=function(){var a;((a=this.noteContainer)==null?void 0:a.nativeElement.scrollHeight)>84&&(this.isCollapsed=!0)};
n8.prototype.editStatusUpdate=function(){var a=this,b,c,d,e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:return z(x,fe(a.issueId$),2);case 2:return b=x.yieldResult,z(x,fe(a.componentId$),3);case 3:return c=x.yieldResult,z(x,fe(a.statusUpdate$),4);case 4:if((d=x.yieldResult)!=null){e=d;x.jumpTo(5);break}return z(x,fTd(a.statusUpdateFactory,b),6);case 6:e=x.yieldResult;case 5:return f=e,z(x,fe(a.accessLevel$),7);case 7:return g=x.yieldResult,k=g==="INTERNAL"?"INTERNAL":"EXTERNAL",z(x,
a.editStatusUpdateDialogService.show(f,k,c),8);case 8:l=x.yieldResult;if(l==null)return x.return();Wd(x,9);return z(x,fe(a.statusUpdateService.update(l)),11);case 11:r=x.yieldResult;a.didSave(b,r);dt(x,0);break;case 9:w=$d(x),Pp(w)?a.errorHandler.errorHandler(null,w):a.log.warn(w),ae(x)}})};
var Bbc=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return z(d,fe(a.issueId$),2);if(d.nextAddress!=3)return b=d.yieldResult,z(d,fe(a.statusUpdate$),3);c=d.yieldResult;if(!c)return d.return();a.statusUpdateService.update(c).subscribe(function(e){a.didSave(b,e)},function(e){a.errorHandler.errorHandler(null,e)});ae(d)})};n8.prototype.didSave=function(a,b){this.issueFullFridge.manualUpdate(a,function(c){c.statusUpdate=b});this.issueFullFridge.poke(a)};
var g1d=function(a,b){var c;y(function(d){if(d.nextAddress==1)return z(d,fe(dTd(a.statusUpdateService,b)),2);c=d.yieldResult;a.statusUpdateHistoryDialogService.show(c);ae(d)})};n8.prototype.doDelete=function(){var a=this,b;y(function(c){if(c.nextAddress==1)return z(c,fe(a.issueId$),2);b=c.yieldResult;a.statusUpdateService.delete(b).subscribe(function(){a.issueFullFridge.manualUpdate(b,function(d){d.statusUpdate=void 0});a.issueFullFridge.poke(b)});ae(c)})};
da.Object.defineProperties(n8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});n8.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(n8)))(b||n8)}}();
n8.\u0275cmp=D({type:n8,selectors:[["status-update"]],viewQuery:function(a,b){a&1&&hg(d1d,5);if(a&2){var c;lg(c=mg())&&(b.noteContainer=c.first)}},inputs:{issueId:"issueId"},standalone:!1,features:[Ef],decls:2,vars:3,consts:[["userCard",""],["noteContainer",""],[3,"display-none","short-height","class"],["svgIcon","group","color","primary",1,"margin-xs-right","shrink-0"],[1,"flex-kids-x","space-between","align-items-center"],[1,"flex-1-hemmed"],[1,"uppercase","inline-block","margin-s-right"],[1,"empty-message",
"muted","margin-s-right"],["type","button","mat-stroked-button","","aria-label","Edit Status Update","color","primary",1,"small"],["type","button","mat-stroked-button","","aria-label","Edit Status Update","color","primary",1,"small",3,"click"],[1,"flex-kids-x","space-between"],[1,"left"],[1,"uppercase","inline-block","margin-xs-right"],[1,"edit-info","right"],["matTooltip","Status Update actions",3,"buttonLabel","menuItems"],[1,"pos-rel"],["type","button","mat-stroked-button","","aria-label","Edit Status Update",
"color","primary",1,"small","margin-xs-right",3,"click"],["type","button","mat-button","","aria-label","Mark Status Update as fresh","color","primary",1,"small","margin-xs-right","mark-fresh"],["type","button","mat-button","","aria-label","Mark Status Update as fresh","color","primary",1,"small","margin-xs-right","mark-fresh",3,"click"],["matTooltip","Last update made within 24 hours","svgIcon","check_circle_filled_24px",1,"fresh-checkmark"],[3,"onedevHovercardTrigger"],["mode","relativepast",1,"margin-s-right",
3,"timestamp"],[3,"email"],[3,"issueId","issueAccessLevel","note","formattingMode"],["type","button","mat-stroked-button","","color","primary",1,"small","show-more"],["type","button","mat-stroked-button","","color","primary",1,"small","show-more",3,"click"]],template:function(a,b){a&1&&(F(0,Mbc,5,13,"div",2),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.uiState$))?0:-1,c)}},dependencies:[NY,hU,Jy,rV,KK,SK,hT,kB,gB,vK,nA,Tx,bX],styles:['.collapsed[_ngcontent-%COMP%]{max-height:84px;overflow:hidden}.collapsed[_ngcontent-%COMP%]:after{content:"";height:40px;left:auto;position:absolute;top:44px;width:100%;background:-webkit-gradient(linear,left top,left bottom,from(transparent),to(var(--surface-default)));background:-webkit-linear-gradient(transparent,var(--surface-default));background:linear-gradient(transparent,var(--surface-default))}.fresh-checkmark[_ngcontent-%COMP%]{color:#1e8e3e;color:var(--good-gfx);vertical-align:middle;margin:0;margin-bottom:3px}.short-height[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}']});
var f1d={LOADING:0,EMPTY:1,NORMAL:2,0:"LOADING",1:"EMPTY",2:"NORMAL"},h1d={type:"action",label:"Using the Status Update field...",action:function(){ni(window,"https://developers.google.com/issue-tracker/concepts/status-update","_blank")},icon:"help-outline",className:"border-top"};var o8=function(){Z.apply(this,arguments);var a=this;this.brain=p(YQ);this.preferences=p(hR);this.scrollTiming=p(T2);this.analytics=p(eQ);this.element=p(Hd);this.editIssueService=p(GS);this.appEvents=p(UO);this.routePerformance=p(N1);this.clearcut=p(YP);this.activeSession=p(uu);this.id$=this.brain.id$;this.enableTailwind=this.activeSession.getFlag("enableTailwind")&&this.activeSession.isInternalSession();this.showRecentEventsFirst=!1;this.comment$=this.id$.pipe(ue(Pm),yf(function(b){return a.editIssueService.issueCommentDraft(b).comment$}));
this.finishedRendering$=ie([this.brain.eventsJs$.pipe(mf(0)),TYa("#AddCommentBox textarea",this.element.nativeElement)]).pipe(lf(1))};Y(o8,Z);o8.\u0275dir=Z.\u0275dir;
o8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(ue(Pm),zf(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.destroyed$.subscribe(function(){i1d(a)});TYa("#comment1 .critical-feature",this.element.nativeElement).pipe(zf(this.destroyed$)).subscribe(function(){var b=function(){wNd(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.subscriptions.add(this.brain.eventsJs$.pipe(pf()).subscribe(function(b){j1d(a,
b)}));this.subscriptions.add(this.finishedRendering$.pipe(Cf(this.comment$)).subscribe(function(b){b=m(b);b.next();b.next().value.hasContent()&&a.appEvents.scrollToCommentBox.next()}))};
var j1d=function(a,b){b=b.some(function(c){var d,e,f;return((f=(d=c.commentReactions)==null?void 0:(e=d.get("UPVOTE"))==null?void 0:e.count)!=null?f:0)>0});a.analytics.trackEvent("editIssue","view",b?"hasUpvoteReaction":"noUpvoteReaction")},i1d=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"):[])&&!(b.length<2)){for(var c=b[0],d=b[0],e=0,f=
1;f<b.length;f++)b[f]-d<2E3||(e+=d-c,c=b[f]),d=b[f],f===b.length-1&&(e+=b[f]-c);a.analytics.trackEvent("editIssue","scroll","commentThread",e);ZP(a.clearcut,e,"idp-time-scrolling-comments-recentFirst-"+a.showRecentEventsFirst)}};o8.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(o8)))(b||o8)}}();
o8.\u0275cmp=D({type:o8,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&N("unload",function(){i1d(b)},Jd)},standalone:!1,features:[Ef],decls:7,vars:10,consts:[["insightsCard",""],["issueSummaryCard",""],["id","bv2-edit-issue-details-scroll","tabindex","-1",1,"bv2-edit-issue-details-scroll",3,"bFocus"],[1,"carded","margined-s","bg-main",3,"issueId","hidden"],[1,"carded","margined-s","bg-main",3,"recent-first"],[1,"margin-s-sides","margin-s-top","padded-left",3,"id"],[1,"margin-s-sides",
"margin-s-bottom"],[3,"issueId"],[1,"carded","margin-s-sides","margin-s-bottom","bg-main","highlighted-left",3,"id"],[1,"carded","margined-s","bg-main",3,"issueId"],[1,"carded","margined-s","bg-main"],[3,"id"]],template:function(a,b){a&1&&(K(0,"div",2),F(1,Pbc,8,8),T(2,"async"),F(3,Qbc,3,5,"issue-summary-card",3),T(4,"async"),F(5,Tbc,5,5,"div",4),T(6,"async"),L());if(a&2){var c,d,e;I("bFocus",!0);B();G((c=U(2,4,b.id$))?1:-1,c);B(2);G((d=U(4,6,b.id$))?3:-1,d);B(2);G((e=U(6,8,b.id$))?5:-1,e)}},dependencies:[KZ,
xW,p4,a8,DZ,b8,k8,u0,n8,d8,Tx],styles:["issue-summary-card[_ngcontent-%COMP%]{padding:8px}.summary[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}"]});var k1d=function(){};k1d.\u0275fac=function(a){return new (a||k1d)};k1d.\u0275mod=$e({type:k1d});k1d.\u0275inj=Fc({imports:[WO,iK,TJ,lL,mB,pK,BU,DE,EE,Y1,wK,Dz]});var p8=function(){Z.apply(this,arguments);this.prefs=p(hR)};Y(p8,Z);p8.\u0275dir=Z.\u0275dir;p8.prototype.onChange=function(a){this.prefs.save({useCodefont:a.checked}).pipe(zf(this.destroyed$)).subscribe()};p8.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(p8)))(b||p8)}}();
p8.\u0275cmp=D({type:p8,selectors:[["b-toggle-code-font"]],standalone:!1,features:[Ef],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matTooltip","Use a monospace typeface to display all comments",3,"change","checked"]],template:function(a,b){a&1&&(bg(),K(0,"mat-slide-toggle",0),T(1,"async"),N("change",function(c){return b.onChange(c)}),cg(2),L());a&2&&I("checked",U(1,1,b.prefs.codeFont$))},dependencies:[OU,vT,vK,nA,Tx],styles:["mat-slide-toggle[_ngcontent-%COMP%] {font-size: 14px; }"],changeDetection:0});var q8=function(){};q8.\u0275fac=function(a){return new (a||q8)};q8.\u0275mod=$e({type:q8});q8.\u0275inj=Fc({imports:[WO,mB,lL,TJ,PU,BU,wK,eU]});var l1d=function(){};l1d.\u0275fac=function(a){return new (a||l1d)};l1d.\u0275mod=$e({type:l1d});l1d.\u0275inj=Fc({providers:[FY],imports:[WO,fX,mB,wK,k1d,K_,TK,xX,W0,FX,yX,X0,q8,Y1]});var m1d=function(){};m1d.\u0275fac=function(a){return new (a||m1d)};m1d.\u0275mod=$e({type:m1d});m1d.\u0275inj=Fc({imports:[WO,mB,BU]});var n1d=function(){};n1d.\u0275fac=function(a){return new (a||n1d)};n1d.\u0275mod=$e({type:n1d});n1d.\u0275inj=Fc({imports:[CU,WO,U0,R0,FX,X0,mB,wK,eU,Y1,m1d,hV,BU]});var r8=function(){};r8.\u0275fac=function(a){return new (a||r8)};r8.\u0275mod=$e({type:r8});r8.\u0275inj=Fc({imports:[WO,DE,mB,TJ,UD,HE,ML,oA,eX,HV]});var s8=function(){};s8.\u0275fac=function(a){return new (a||s8)};s8.\u0275mod=$e({type:s8});s8.\u0275inj=Fc({imports:[WO,TK,jU,dX]});var t8=function(){};t8.\u0275fac=function(a){return new (a||t8)};t8.\u0275mod=$e({type:t8});t8.\u0275inj=Fc({imports:[s8,WO,TK,jU,mB,dX,xU]});var u8=function(){};u8.\u0275fac=function(a){return new (a||u8)};u8.\u0275mod=$e({type:u8});u8.\u0275inj=Fc({imports:[CU,WO,fV]});var v8=function(){};v8.\u0275fac=function(a){return new (a||v8)};v8.\u0275mod=$e({type:v8});v8.\u0275inj=Fc({imports:[WO,yX,mB,wK,u8,iU,s8]});var w8=function(){};w8.\u0275fac=function(a){return new (a||w8)};w8.\u0275mod=$e({type:w8});w8.\u0275inj=Fc({imports:[s8,WO,mB,u8]});var o1d=function(){};o1d.\u0275fac=function(a){return new (a||o1d)};o1d.\u0275mod=$e({type:o1d});o1d.\u0275inj=Fc({imports:[WO,G0,t8,v8,w8,b1,c1]});var p1d=function(){};p1d.\u0275fac=function(a){return new (a||p1d)};p1d.\u0275mod=$e({type:p1d});p1d.\u0275inj=Fc({imports:[TJ,lL,WO,Wz,mB,CU,H_]});var x8=function(){};x8.\u0275fac=function(a){return new (a||x8)};x8.\u0275mod=$e({type:x8});x8.\u0275inj=Fc({imports:[CU,WO]});var q1d=function(){};q1d.\u0275fac=function(a){return new (a||q1d)};q1d.\u0275mod=$e({type:q1d});q1d.\u0275inj=Fc({imports:[WO,wV,mB,TJ,Wz,iU,dX,x8,hV]});var r1d=function(){};r1d.\u0275fac=function(a){return new (a||r1d)};r1d.\u0275mod=$e({type:r1d});r1d.\u0275inj=Fc({imports:[CZ,CU,WO,wV,p1d,TK,jU,mB,wK,dX,q1d,x8]});var s1d=function(){};s1d.\u0275fac=function(a){return new (a||s1d)};s1d.\u0275mod=$e({type:s1d});s1d.\u0275inj=Fc({imports:[WO,uI,Hy,DE,mB,TJ,DL,EE,V0,yW,f5,l1d,R0,n1d,o1d,v8,B0,xU,r1d,hV,eU,r8]});var t1d=function(){var a=this;this.activeSession=p(uu);this.issueFullFridge=p(gQ);this.issueDetailsBrain=p(YQ);this.eventsForIssueFridge=p(NP);this.isInternalSession=this.activeSession.isInternalSession();this.issue$=this.issueDetailsBrain.id$.pipe(yf(function(b){return b?a.issueFullFridge.watch(b):ce(void 0)}),ue(Pm));this.commentNumberToEventMap$=this.issue$.pipe(A(function(b){return b.issueId}),yf(function(b){return a.eventsForIssueFridge.watch(b)}),A(function(b){var c;return(c=b==null?void 0:
b.events)!=null?c:[]}),A(function(b){return new Map(b.filter(function(c){return!!c.commentNumber}).map(function(c){return[c.commentNumber,c]}))}));this.relatedLinks$=ie([this.issue$,this.commentNumberToEventMap$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;var e;return((e=b.relatedLinks)==null?void 0:e.map(function(f){return Object.assign({},f,{comment:d.get(f.sourceCommentNumber)})}))||[]}));this.issueReferences$=this.relatedLinks$.pipe(A(function(b){return b.filter(t8a)}));
this.imageLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(p8a)}));this.otherLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(u8a)}))};t1d.\u0275fac=function(a){return new (a||t1d)};
t1d.\u0275cmp=D({type:t1d,selectors:[["b-issue-resources"]],standalone:!1,decls:3,vars:3,consts:[[1,"carded","bg-main"],["svgIcon","image",1,"icon-s"],[3,"issueId","imageLinks","paginate"],[1,"margin-bottom"],["svgIcon","bug_report_24px",1,"icon-s"],[3,"issueReferences","currentIssueId","paginate"],["svgIcon","link",1,"icon-s"],[3,"links","issueId","paginate"]],template:function(a,b){a&1&&(K(0,"section",0),F(1,acc,6,9),T(2,"async"),L());if(a&2){var c;B();G((c=U(2,1,b.issue$))?1:-1,c)}},dependencies:[Jy,
i8,g8,j8,Tx],styles:["[_nghost-%COMP%]{display:block;padding:8px}h4[_ngcontent-%COMP%]{margin:16px 0}mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}"]});var u1d=function(){};u1d.\u0275fac=function(a){return new (a||u1d)};u1d.\u0275mod=$e({type:u1d});u1d.\u0275inj=Fc({imports:[WO,v8,t8,w8]});var y8=function(){var a=this;this.brain=p(YQ);this.codeMentions=p(B1);this.imageUrls=p(XV);this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.id$=this.brain.id$.pipe(ue(Pm));this.codeMentionsState$=this.id$.pipe(yf(function(b){return bNd(a.codeMentions,b)}))};y8.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};y8.prototype.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};y8.\u0275fac=function(a){return new (a||y8)};
y8.\u0275cmp=D({type:y8,selectors:[["issue-todos"]],standalone:!1,decls:3,vars:3,consts:[[1,"carded","bg-main"],[1,"empty-state","layout-centered-column","gap"],[3,"issueId","packageMentionSet","displayPackageName"],[1,"margin-top"],["target","_blank",3,"click","href"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["href","http://go/buganizer-guide/guides/issue-todos.md","target","_blank"]],template:function(a,b){a&1&&(K(0,"section",0),F(1,fcc,2,3),T(2,"async"),L());if(a&2){var c;
B();G((c=U(2,1,b.id$))?1:-1,c)}},dependencies:[IYd,Tx],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 z8=function(){this.cdr=p(bQ,{self:!0});this.errorHandler=p(pO);this.currentUserBookmarksFridge=p(qP);this.isLoading=!1;this.hotlists=[];this.createHotlistPath=qs.createHotlist.makeHref()};z8.prototype.ngOnInit=function(){this.fetchUserHotlists()};z8.prototype.fetchUserHotlists=function(){var a=this;this.isLoading=!0;fe(rP(this.currentUserBookmarksFridge)).then(function(b){a.hotlists=b;a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
z8.\u0275fac=function(a){return new (a||z8)};
z8.\u0275cmp=D({type:z8,selectors:[["list-hotlists-page"]],standalone:!1,features:[Gg([bQ])],decls:8,vars:2,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],["mat-button","",1,"no-visited-no-active",3,"href"],[1,"bv2-view"],[3,"large"],[3,"hotlists"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1,"Browse Hotlists"),L(),K(2,"div",1)(3,"a",2),Q(4," Create Hotlist "),L()(),K(5,"div",3),F(6,gcc,1,1,"b-spinner",4)(7,hcc,1,1,"b-hotlist-grid",5),L());a&2&&(B(3),I("href",b.createHotlistPath,Ne),B(3),
G(b.isLoading?6:7))},dependencies:[P4,cU,kB,gB],encapsulation:2});var v1d=new Set(["issueId","modifiedTime","createdTime"]),A8=function(){Z.call(this);var a=this;this.cdr=p(bQ);this.routerEvents=p(dQ);this.window=p(lR);this.bLocation=p(bU);this.$log=p(nO);this.issueApi=p(MP);this.hotlistApi=p(gP);this.activeSession=p(uu);this.butterBar=p(UN);this.analytics=p(eQ);this.appSearchState=p(rT);this.issuePagination=p(m2);this.userPreferencesManager=p(hR);this.urlPreferences=p(R4);this.gridPreferencesFetcher=p(T4);this.paths=p(hW);this.timeout=p(oO);this.errorHandler=p(pO);
this.statusMessages=p(jS);this.domSafe=p(mR);this.appEvents=p(UO);this.hotlistFridge=p(lP);this.issueFullFridge=p(gQ);this.batchIssueRelationshipsService=p(V5);this.componentFridge=p(RO);this.currentUserBookmarksFridge=p(qP);this.implicitTriageService=p(TR);this.clearcut=p(YP);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 b;(b=a.resultsGrid)==null||YTb(b)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue",onPress:function(){var b;(b=a.resultsGrid)==null||ZTb(b)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var b;(b=a.resultsGrid)==null||TTd(b)}},{keys:["s"],
displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var b;(b=a.resultsGrid)==null||WTd(b)}},{keys:[Vr("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var b;(b=a.resultsGrid)==null||XTd(b,!0)}},{keys:[Vr("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var b;(b=a.resultsGrid)==null||XTd(b,!1)}},{keys:[Wr("*","a")],displayAs:"* then a",description:"Select all issues on this page",onPress:function(){var b;(b=a.resultsGrid)==null||
b.selectAll()}},{keys:[Wr("*","n")],displayAs:"* then n",description:"Deselect all issues on this page",onPress:function(){var b;(b=a.resultsGrid)==null||QTd(b)}},{keys:["a"],displayAs:"a",description:"Change assignee",onPress:function(){var b;(b=a.gridControls)==null||fRd(b,null,0)}},{keys:["d"],displayAs:"d",description:"Mark as duplicate",onPress:function(){var b;(b=a.gridControls)==null||fRd(b,jRa,3)}},{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var b;(b=a.gridControls)==
null||b.openHotlistPicker()}},{keys:["r"],displayAs:"r",description:"Add comment",onPress:function(){var b;(b=a.gridControls)==null||kRd(b)}},{keys:["u",Vr("r")],displayAs:"u / Shift+r",description:"Refresh search results",onPress:function(){return a.refreshResults()}},{keys:[Wr("p","0"),Wr("p","1"),Wr("p","2"),Wr("p","3"),Wr("p","4")],displayAs:"p <n>",description:"Mark selected issues as priority n",onPress:function(b){a.resultsGrid&&a.sendBulkEditRequest([{actions:[{fieldName:"priority",value:"P"+
b}],issueIds:a.resultsGrid.getSelectedIssues().map(function(c){return c.issueId})}])}},{keys:[A9a("ENTER")],displayAs:"Ctrl+Enter",description:"Open current issue in new tab",onPress:function(){var b=a.window.document.activeElement;if(b.tagName==="A"){var c=a.paths.getBaseUrl();if(b.href&&!b.href.startsWith(c)){a.domSafe.openInNewTab(b.href);return}}var d;(d=a.resultsGrid)==null||UTd(d,{openInNewTab:!0})}},{keys:["o","ENTER"],displayAs:"o / Enter",description:"Open the current issue",onPress:function(b){var c=
a.window.document.activeElement,d;if(c){var e=(d=$oa(D4))==null?void 0:d.selector;d=e?(c==null?void 0:c.closest(e))!=null:!1}else d=!1;if(b===1&&c.tagName==="A")if(c.href)b=a.paths.getBaseUrl(),c.href.startsWith(b)?a.bLocation.setUrl(c.href.slice(b.length)):a.domSafe.openInNewTab(c.href);else{var f;(f=a.resultsGrid)==null||UTd(f)}else if(b===2){var g;(g=a.resultsGrid)==null||UTd(g,{openInNewTab:!0})}else if(d){var k;(k=a.resultsGrid)==null||UTd(k)}}},{keys:[Vr("o"),Vr("ENTER")],displayAs:"Shift+o / Shift+Enter",
description:"Toggle current issue in sidebar",onPress:function(b){var c=a.window.document.activeElement;b===1&&c.tagName==="A"&&c.href?Er(a.domSafe,c.href):(b=a.resultsGrid)!=null&&(b.isIssueSidebarOpen=!b.isIssueSidebarOpen,b.cdr.detectChanges())}}]};Y(A8,Z);
A8.prototype.ngOnInit=function(){var a=this;w1d(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(zf(this.destroyed$)).subscribe(function(){w1d(a)})};var x1d=function(a){var b=[].concat(q(BSd));a.activeSession.isInternalSession()&&(a=b.indexOf("issueId"),b.splice(a,0,"minSlo"));return b.map(Mt).filter(Pm)};
A8.prototype.fetchUserHotlists=function(){var a=this;fe(rP(this.currentUserBookmarksFridge)).then(function(b){b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.hotlistMap[c.hotlistId];mm(d,c)||(d&&La(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var w1d=function(a){return y1d(a).then(function(){return a.getIssues()}).then(function(){return a.searchResults?(a.subscribeToIssueChanges(a.searchResults.issues),z1d(a,a.searchResults.startIndex,a.searchResults.endIndex)):Promise.resolve()}).finally(function(){a.cdr.detectChanges()})};
A8.prototype.subscribeToIssueChanges=function(a){var b=this,c;(c=this.issueSubscriptions)==null||c.unsubscribe();this.issueSubscriptions=new Pd;a=m(a);for(c=a.next();!c.done;c=a.next())this.issueSubscriptions.add(this.issueFullFridge.watch(c.value.id).pipe(ue(Pm),zf(this.destroyed$)).subscribe(function(d){var e,f;return y(function(g){switch(g.nextAddress){case 1:if(!b.searchResults){g.jumpTo(2);break}if(!d.snapshot[0].componentId){e=void 0;g.jumpTo(3);break}return z(g,fe(b.componentFridge.watch(d.snapshot[0].componentId,
{trustUncertainMemory:!0})),4);case 4:e=g.yieldResult;case 3:f=e;if(!f||!b.searchResults)return g.return();aOd(b.searchResults,[{issue:d,component:f}]);b.searchResults=b.searchResults.clone();case 2:b.cdr.detectChanges(),ae(g)}})}))};
var A1d=function(a){return a.window.document.activeElement!=null&&a.window.document.activeElement!==a.window.document.body},y1d=function(a){var b=qo();A1d(a)&&a.window.document.activeElement.blur();a.timeout.schedule(function(){b.resolve()});return b.promise},z1d=function(a,b,c){var d=qo();A1d(a)||B1d(a,b,c);a.timeout.schedule(function(){d.resolve()});return d.promise},C1d=function(a,b){if(b.maySkipResults){b=Dh(["Too many matching results. Some issues may be omitted.",Eh("br"),"Please try to restrict your search further or change the sort column to either CREATED or LAST MODIFIED. "]);
var c={};c=Eh("a",(c.href="http://go/buganizer-faq#restrict-search",c),"go/buganizer-faq");c=Dh([Eh("br"),"See ",c," for more details."]);b=a.activeSession.isInternalSession()?Ch([b,c]):b;Lcd(a.butterBar,b)}};h=A8.prototype;
h.setSort=function(a,b,c){c=c===void 0?!0:c;var d=Mt(a);if(d){var e=new Ot(d,b==="ASC"?"ASCENDING":"DESCENDING");wba(this.sortPreferences,function(f){return mm(f.fieldId,e.fieldId)});!c||v1d.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)};
h.getSort=function(){if(!this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:a.fieldId.type==="CUSTOM_FIELD"?String(a.fieldId.customFieldId):SQa(a.fieldId.type),direction:a.direction==="ASCENDING"?"ASC":"DESC"};mm(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};h.saveSortColumns=function(a){S4(this.urlPreferences,{sortColumns:a,page:1})};
h.initColumns=function(a,b){var c=this;b=b===void 0?A8.DEFAULT_META_COLUMNS:b;a.then(function(d){c.displayColumns=d;c.metaColumns=b;c.isColumnSaveEnabled=!0;c.issueColumnsInternal=[].concat(q(b),q(wPb(d)));c.cdr.detectChanges()})};h.saveColumns=function(a){this.displayColumns=a.map(function(b){return Mt(b.name)});S4(this.urlPreferences,{displayColumns:this.displayColumns})};
h.goToIssue=function(a,b,c){var d;c&&((d=c.target)==null?void 0:d.tagName)==="A"||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=ss(a),c&&(c.ctrlKey||c.metaKey||c.button===1)?this.domSafe.openInNewTab(a):c&&c.shiftKey?Er(this.domSafe,a):this.bLocation.setUrl(a))};h.goToPage=function(a){this.bLocation.search("p",a)};var ou=function(a,b,c){b!==void 0&&a.goToPage(b+c)};A8.prototype.refreshResults=function(){iOd(this.issuePagination);return w1d(this)};
A8.prototype.hasResults=function(){return this.searchResults&&this.searchResults.issues.length>0};
A8.prototype.sendBulkEditRequest=function(a,b){var c=this;if(a.length===1&&a[0].actions.length===1&&a[0].actions[0].fieldName==="readState"){var d=!!a[0].actions[0].value;b=m(a[0].issueIds);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=void 0;(f=this.searchResults)==null||bOd(f,e,d)}this.cdr.detectChanges();Rr(this.butterBar,"Saving changes...",0);return hQ(this.issueFullFridge,a[0].issueIds,{markRead:d,userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(l){for(var r=m(a[0].issueIds),
w=r.next();!w.done;w=r.next()){w=w.value;var x=void 0,C=void 0;(x=c.searchResults)==null||bOd(x,w,void 0,(C=l)!=null?C:null)}Rr(c.butterBar,"Successfully marked issues "+(d?"read.":"unread."))}).catch(function(l){for(var r=m(a[0].issueIds),w=r.next();!w.done;w=r.next()){w=w.value;var x=void 0;(x=c.searchResults)==null||bOd(x,w)}c.errorHandler.errorHandler(null,l)}).finally(function(){c.cdr.detectChanges()})}e=T6a(a).map(function(l){return l.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,
"bulkEdit",e.join(","));var g={bulkEditOps:a};Rr(this.butterBar,"Saving changes...",0);if(a.length===1&&a[0].actions.length===1&&a[0].actions[0].fieldName==="parentId")return this.batchIssueRelationshipsService.bulkEdit(a[0]).then(function(l){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var r=m(c.searchResults.issues.entries()),w=r.next();!w.done;w=r.next()){var x=m(w.value);w=x.next().value;x=x.next().value;l.finishedIssues[x.issueId]&&(w=c.searchResults.issues[w],gAb(w,l.finishedIssues[x.issueId],
null),c.loadHotlists(w),Object.assign(c.customFieldMap,w.customFieldMap))}c.cdr.detectChanges()}x=a[0];r=l.notFinishedIssueIds;w=String(x.actions[0].value);x=x.actions[0].actionType;if(x!=="ADD"&&x!=="REMOVE")throw Error("ng");r.length?(c.butterBar.showWarning("Failed to update issue(s) "+r.join(", ")+"."),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+r.length)):Rr(c.butterBar,(x==="ADD"?"Added child issue(s) to parent ["+w+"]":"Removed child issue(s) from parent ["+w+"]")+" on "+
String(Object.keys(l.finishedIssues).length)+" issues.");c.cdr.detectChanges()}).catch(function(l){c.errorHandler.errorHandler(null,l)});var k=new Date;return this.issueApi.issueBulkEdit(g,b).then(function(l){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var r=m(c.searchResults.issues.entries()),w=r.next();!w.done;w=r.next()){var x=m(w.value);w=x.next().value;x=x.next().value;if(l.affectedIssues[x.issueId]){x=l.affectedIssues[x.issueId];var C=Ia(x.snapshot).componentId;w=c.searchResults.issues[w];
gAb(w,x,C?l.componentMap[C]:void 0);c.loadHotlists(w);Object.assign(c.customFieldMap,w.customFieldMap)}}c.cdr.detectChanges()}D1d(c,g,l,k);r=new Map;w=m(g.bulkEditOps);for(x=w.next();!x.done;x=w.next()){x=x.value;C=m(x.issueIds);for(var H=C.next();!H.done;H=C.next()){H=H.value;var J=void 0,O=(J=r.get(H))!=null?J:[];O.push.apply(O,q(x.actions));r.set(H,O)}}var R;l=m((R=l.errors)!=null?R:[]);for(R=l.next();!R.done;R=l.next())r.delete(R.value.issueId);R=m(r.entries());for(l=R.next();!l.done;l=R.next())r=
m(l.value),l=r.next().value,r=r.next().value,Eld(c.implicitTriageService,l,r);c.cdr.detectChanges()}).catch(function(l){c.errorHandler.errorHandler(null,l)})};
var D1d=function(a,b,c,d){b.bulkEditOps.every(function(e){return e.actions.every(function(f){return(f.actionType==="ADD"||f.actionType==="REMOVE")&&f.fieldName==="hotlists"})})&&d&&ZP(a.clearcut,(new Date).getTime()-d.getTime(),"issueBulkEditApiCall-hotlistEditTime");c.errors&&c.errors.length?(b="Failed to update issue(s) "+(AUa(c.errors)+"."),a.butterBar.showWarning(b),a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"bulkEditError",""+c.errors.length)):(c=Kmd(a.statusMessages,b,a.customFieldMap))?(d&&
ZP(a.clearcut,(new Date).getTime()-d.getTime(),"issueBulkEditApiCall-fromIssueListPage"),Rr(a.butterBar,c)):Rr(a.butterBar,"Saved "+U6a(b.bulkEditOps).length+" issue(s).")};h=A8.prototype;
h.loadHotlists=function(a){var b=this;a=m(a?[a]:this.searchResults?this.searchResults.issues:[]);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(!c.hotlistId)break;c=m(c.hotlistId);for(var d=c.next();!d.done;d=c.next())d=d.value,this.hotlistMap[d]||this.hotlistApi.get(d).then(function(e){b.hotlistFridge.announce(e);b.addHotlist(e)}).catch(function(){})}};h.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
h.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"createHotlist");Rr(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);Rr(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)};
h.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;Rr(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)};h.exportCsv=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"exportCsv");skd(this.domSafe,this.getCsvUrl())};
h.saveResultsPerPage=function(a){var b=this;this.userPreferencesManager.save({resultsPerPage:a}).pipe(zf(this.destroyed$)).subscribe(function(){b.resultsPerPage=a;S4(b.urlPreferences,{page:1});b.analytics.trackEvent(b.ANALYTICS_CATEGORY,"resultsPerPageSave",a.toString());b.refreshResults();b.cdr.detectChanges()},function(c){Vm(c)})};
var B1d=function(a,b,c){var d=a.issuePagination.getFocusedIssue();a.timeout.schedule(function(){if(d>=b&&d<=c)a.focusedRowIndex=d-b;else{kOd(a.issuePagination);a.focusedRowIndex=0;var e=document.querySelector(".bv2-view");e&&(e.scrollTop=0)}a.cdr.detectChanges()})};A8.prototype.onColumnsChange=function(){E1d()};var E1d=function(){setTimeout(function(){var a=document.querySelector(".b-select-all-toggle");a&&a.focus()})};
da.Object.defineProperties(A8.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){mm(this.issueColumnsInternal,a)||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"columnModification",d3a(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)))}}});A8.DEFAULT_META_COLUMNS=[YTd,$Td,aUd];
A8.\u0275fac=function(a){return new (a||A8)};A8.\u0275dir=af({type:A8,features:[Ef]});var lcc=function(){return{q:"status:open"}},B8=function(){A8.apply(this,arguments);this.hotkeys=p(nU);this.pageTitle=p(n2);this.routePerformance=p(N1);this.element=p(Hd);this.imageUrls=p(XV);this.ANALYTICS_CATEGORY="listIssues";this.isLoading=!0;this.showHotlists=!1;this.SPACE_EMPTY_STATE=this.imageUrls.SPACE_EMPTY_STATE;this.currentTracker=this.activeSession.getTracker();this.cancelConcurrentlyRunningSearches$=new qf};Y(B8,A8);B8.\u0275dir=A8.\u0275dir;h=B8.prototype;
h.ngOnInit=function(){var a=this;A8.prototype.ngOnInit.call(this);this.subscriptions.add(oU(this.hotkeys,{title:"Issue List",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}))};
h.getIssues=function(){var a=this,b=this.bLocation.search().warning;b&&(Array.isArray(b)&&(b=b[0]),this.butterBar.showWarning(b));this.query=this.urlPreferences.getQuery();if(!this.query)return this.activeSession.isAnonymous()?(this.query="",Dqd(this.appSearchState,this.query),this.searchResults=null,this.setPageTitle(),this.isLoading=!1):(this.routePerformance.ignoringNextNav=!0,S4(this.urlPreferences,{query:"assignee:"+this.currentUserEmail+" status:open"},!0)),Promise.resolve(void 0);Dqd(this.appSearchState,
this.query);b=Hqd(this.appSearchState);if(b>0)return vrd(this.bLocation,qs.viewHotlist.makeHref(b)),S4(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);if(b=Iqd(this.appSearchState))return vrd(this.bLocation,this.paths.viewSavedSearch(b)),S4(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);this.searchResults=null;this.isLoading=!0;this.setPageTitle();this.subscriptions.add(me(re(0).pipe(fla()),TYa("b-issues-grid, #no-results",this.element.nativeElement)).subscribe(function(){var c=
function(){wNd(a.routePerformance,"issue-list-w-results")};requestAnimationFrame(c);setTimeout(c)}));return this.doSearch().then(function(c){c&&(a.isLoading=!1,a.cdr.detectChanges())}).catch(function(){a.isLoading=!1;a.cdr.detectChanges()})};
h.doSearch=function(){var a=this;this.cancelConcurrentlyRunningSearches$.next(new F1d);var b=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:x1d(this)}),c=Promise.race([b.searchPreferences.then(function(f){f=nm(f);f.query=a.query;f.returnUrl=a.bLocation.getUrl();f.trackerIds=a.appSearchState.currentTrackerScope;return fOd(a.issuePagination,f)}),fe(this.cancelConcurrentlyRunningSearches$)]),d;((d=this.query)==null?0:d.includes("teamid:"))&&this.analytics.trackEvent(this.ANALYTICS_CATEGORY,
"searchByTeam");var e;((e=this.query)==null?0:e.includes("componentid:"))&&this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"searchByComponent");c.then(function(f){f instanceof F1d||C1d(a,f)}).catch(function(f){typeof f==="number"?S4(a.urlPreferences,{page:f}):a.errorHandler.errorHandler(null,f)});b=b.displayColumns;this.initColumns(b);return ns({searchResultsPage:c,displayColumns:b}).then(function(f){var g=f.searchResultsPage;if(g instanceof F1d)return!1;a.searchResults=g;a.page=g.params.page;a.sortPreferences=
g.params.sortColumns||[];a.loadHotlists();a.cdr.detectChanges();a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"issueSearch",f.displayColumns.join("|")+" ("+a.sortPreferences.join("|")+")");return!0})};h.saveColumns=function(a){this.displayColumns=a.map(function(b){return Mt(b.name)});mkd(this.userPreferencesManager,xPb(a)).pipe(zf(this.destroyed$)).subscribe()};
h.setPageTitle=function(){this.appSearchState.currentQuery===Eqd(this.currentUserEmail)?this.pageTitle.setTitle("Assigned to me"):this.appSearchState.currentQuery==="cc:"+this.currentUserEmail?this.pageTitle.setTitle("CC'ed to me"):this.appSearchState.currentQuery==="reporter:"+this.currentUserEmail?this.pageTitle.setTitle("Reported by me"):this.appSearchState.currentQuery===Gqd(this.currentUserEmail)?this.pageTitle.setTitle("To be verified"):this.pageTitle.setTitle(this.query)};
h.saveSortColumns=function(a){var b=this,c=this.bLocation.search(),d=a.map(function(e){return{column:e.fieldId,order:e.direction}});this.userPreferencesManager.saveSortColumns(d).pipe(zf(this.destroyed$)).subscribe(function(){S4(b.urlPreferences,{sortColumns:a,page:1});E1d();var e=b.bLocation.search();mm(c,e)&&b.refreshResults()})};h.getCsvUrl=function(){return Cfb(this.query,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
B8.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(B8)))(b||B8)}}();
B8.\u0275cmp=D({type:B8,selectors:[["list-issues-page"]],standalone:!1,features:[Gg([bQ]),Ef],decls:10,vars:7,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[3,"init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv","grid","hotlistChoices"],[1,"bv2-appbar-right"],[3,"pageChange","resultsPerPageChange","searchResults"],[1,"bv2-view"],[1,"bv2-view-loading"],["id","no-results","tabindex","-1",1,"bv2-view-loading","layout-centered-column","gap",3,"bFocus"],[1,"bv2-grid-container"],
["aria-hidden","true","alt","",1,"empty-state-img",3,"src"],["routerLink","/issues",3,"queryParams"],["href","https://developers.google.com/issue-tracker/concepts/searches","target","_blank"],[3,"init","columnsChange","sortChange","rowClick","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns","enableColumnSaving","sort","enableSidebar"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1,"Issue search results"),L(),K(2,"div",1)(3,"b-grid-controls",2),N("init",function(c){return b.gridControls=
c})("onRefresh",function(){return b.refreshResults()})("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps,c.recaptchaToken)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)})("onExportCsv",function(){return b.exportCsv()}),L(),K(4,"div",3)(5,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return b.saveResultsPerPage(c.option)}),L()()(),K(6,"div",5),F(7,icc,4,1,"div",
6),F(8,occ,6,4,"div",7),F(9,pcc,2,6,"div",8),L());a&2&&(B(3),I("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices),B(2),I("searchResults",b.searchResults),B(),If("aria-busy",b.isLoading),B(),G(b.isLoading?7:-1),B(),G(b.isLoading||b.hasResults()?-1:8),B(),G(!b.isLoading&&b.hasResults()?9:-1))},dependencies:[G4,s5,D4,hF,cU,xW],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px;max-height:320px;padding-bottom:56px}/*# sourceMappingURL=list_issues.css.map */"]});
var F1d=function(){},G1d=function(){};G1d.\u0275fac=function(a){return new (a||G1d)};G1d.\u0275mod=$e({type:G1d});G1d.\u0275inj=Fc({imports:[O4,t5,q5,FU,WO,eU,yW,DE,sU,V1,l1]});var H1d=function(){this.cdr=p(bQ,{self:!0});this.sloApi=p(JQ);this.errorHandler=p(pO);this.activeSession=p(uu);this.isLoading=!1;this.activeSlos=[];this.archivedSlos=[];this.createSloPath=qs.createSlo.makeHref();this.sloEnabled=this.activeSession.isInternalSession();this.areArchivedSlosExpanded=!1};H1d.prototype.ngOnInit=function(){this.sloEnabled&&I1d(this)};
var I1d=function(a){a.isLoading=!0;a.sloApi.getOwnedSlos().then(function(b){a.activeSlos=b.filter(function(c){return!c.isArchived});a.archivedSlos=b.filter(function(c){return c.isArchived});a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};H1d.\u0275fac=function(a){return new (a||H1d)};
H1d.\u0275cmp=D({type:H1d,selectors:[["list-slos-page"]],standalone:!1,features:[Gg([bQ])],decls:7,vars:3,consts:[[1,"kd-appbar","kd-buttonbar"],["mat-button","",1,"no-visited-no-active",3,"href"],[1,"bv2-view"],[1,"padded-sides"],[3,"large"],[1,"muted"],[3,"slos"],[1,"slos-note"],["type","button",1,"unstyled-button","clickable-row",2,"width","100%",3,"click"],[1,"margined"],[1,"icon-s","vertical-centered",3,"svgIcon"],[1,"conditional-slo-grid"],[1,"muted","padded"]],template:function(a,b){a&1&&(K(0,
"div",0)(1,"a",1),Q(2," Create SLO "),L()(),K(3,"div",2),F(4,qcc,5,0,"div",3),F(5,rcc,1,1,"b-spinner",4)(6,xcc,7,6),L());a&2&&(B(),I("href",b.createSloPath,Ne),B(3),G(b.sloEnabled?4:-1),B(),G(b.isLoading?5:6))},dependencies:[Jy,kB,gB,S5,cU],encapsulation:2});var wZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wZa,W);h=wZa.prototype;h.getAuthor=function(){return X(this,Em,1)};h.setAuthor=function(a){Mi(this,Em,1,a)};h.hasAuthor=function(){return xi(this,Em,1)};h.getTimestamp=function(){return X(this,Si,2)};h.setTimestamp=function(a){return Mi(this,Si,2,a)};h.hasTimestamp=function(){return xi(this,Si,2)};h.getAdd=function(){return X(this,mq,3)};h.setAdd=function(a){return Mi(this,mq,3,a)};
h.getRemove=function(){return X(this,mq,4)};h.setRemove=function(a){return Mi(this,mq,4,a)};h.getAddMask=function(){return X(this,Cq,5)};h.getMutableAddMask=function(){return Ii(this,Cq,5)};h.setAddMask=function(a){return Mi(this,Cq,5,a)};h.getRemoveMask=function(){return X(this,Cq,6)};h.getMutableRemoveMask=function(){return Ii(this,Cq,6)};h.setRemoveMask=function(a){return Mi(this,Cq,6,a)};var J1d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(J1d,W);var K1d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,K1d.messageId)};Y(K1d,W);K1d.prototype.getIt=function(){return X(this,J1d,2,jb)};K1d.prototype.setIt=function(a){return Mi(this,J1d,2,a,jb)};K1d.messageId="b.ComponentHistory";var C8=function(){this.executor=p(cO);this.bCacheFactory=p(aP);this.componentHistoriesCache=this.bCacheFactory.get("component_histories-second-level-cache")||this.bCacheFactory.create("component_histories-second-level-cache",{capacity:25})};C8.prototype.get=function(a){var b=this.componentHistoriesCache.get(a);return b?b:this.componentHistoriesCache.put(a,this.executor.get({url:"action/component_updates/"+a,responseConstructor:K1d}).then(xZa))};
C8.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};C8.prototype.invalidateCache=function(a){this.componentHistoriesCache.remove(a)};C8.\u0275fac=function(a){return new (a||C8)};C8.\u0275prov=Dc({token:C8,factory:C8.\u0275fac,providedIn:"root"});var L1d=["nameInput"],M1d=function(){return["delimiter"]},Ccc=function(a,b){return b.key},N1d={type:"delimiter",text:"Fields inherited from parent components"},O1d={type:"delimiter",text:"Shared Custom fields"},D8=function(){this.constants=p(gS);this.fb=(new CE).nonNullable;this.issueTypeToDisplay=ym;this.displayedColumns="visibility name id type description required default".split(" ");this.trackBy=function(a,b){return b.type==="customField"?""+b.customField.customFieldId:b.text};this.isDelimiterRow=
function(a,b){return b.type==="delimiter"};this.isCustomFieldRow=function(a,b){return b.type==="customField"};this.existingConfiguredIssueTypes=new Set;this.onSave=new aQ;this.onCancel=new aQ;this.conflictingIssueTypes$=ce("")};
D8.prototype.ngOnInit=function(){var a=this,b,c;this.owningComponentId=(c=(b=this.configUnderEdit)==null?void 0:b.componentId)!=null?c:this.currentComponentId;this.customFieldsMap=new Map(this.customFields.map(function(f){return[f.customFieldId,f]}));this.hideIssueTypes=this.disallowIssueTypes||this.configUnderEdit!==void 0&&this.configUnderEdit.issueTypes.size===0;var d,e;this.nameForm=this.fb.control((e=(d=this.configUnderEdit)==null?void 0:d.name)!=null?e:"",[vj]);this.issueTypesForms=P1d(this);
Q1d(this);this.validationForm=this.fb.group({name:this.nameForm,issueTypes:this.fb.array(Array.from(this.issueTypesForms.values())),customFieldConfigs:this.fb.array(this.customFieldRows.map(function(f){return f.formControl}))},{validators:[function(f){return a.hideIssueTypes||f.get("issueTypes").controls.some(function(g){return g.value})?null:{missingRequiredIssueTypes:!0}}]});this.partialVisibilityState$=new Mj(this.getVisibilityState(this.validationForm.controls.customFieldConfigs.value));this.validationForm.controls.customFieldConfigs.valueChanges.subscribe(function(f){a.partialVisibilityState$.next(a.getVisibilityState(f))});
this.isReadOnly?this.validationForm.disable():this.conflictingIssueTypes$=this.validationForm.controls.issueTypes.valueChanges.pipe(xf(this.issueTypesForms),A(function(){return Array.from(a.issueTypesForms.entries()).filter(function(f){var g=m(f);f=g.next().value;return g.next().value.value&&a.existingConfiguredIssueTypes.has(f)}).map(function(f){f=m(f).next().value;return ym(f)}).join(", ")}))};D8.prototype.ngAfterViewInit=function(){this.isReadOnly||this.nameInput.nativeElement.focus()};
D8.prototype.getVisibilityState=function(a){var b=a.some(function(c){return c});a=a.some(function(c){return!c});return b&&a?"some":b?"all":"none"};
var R1d=function(a){return{name:a.nameForm.value,issueTypes:new Set([].concat(q(a.issueTypesForms.entries())).filter(function(b){b=m(b);b.next();return b.next().value.value}).map(function(b){return m(b).next().value})),customFieldConfigs:new Map(a.customFieldRows.map(function(b){return[b.customField.customFieldId,b.formControl.value]}))}},Q1d=function(a){var b,c,d=(c=(b=a.configUnderEdit)==null?void 0:b.customFieldConfigs)!=null?c:new Map;a.customFieldRows=a.customFields.filter(function(f){return a.customFieldsMap.has(f.customFieldId)}).map(function(f){var g;
return{type:"customField",customField:f,formControl:a.fb.control((g=d.get(f.customFieldId))!=null?g:!0)}});var e=function(f,g){return f.customField.name.localeCompare(g.customField.name)};b=a.customFieldRows.filter(function(f){return f.customField.shared}).sort(e);c=a.customFieldRows.filter(function(f){return!f.customField.shared&&f.customField.componentId===a.owningComponentId}).sort(e);e=a.customFieldRows.filter(function(f){return!f.customField.shared&&f.customField.componentId!==a.owningComponentId}).sort(e);
a.tableRows=[].concat(q(c),q(e.length>0?[N1d]:[]),q(e),q(b.length>0?[O1d]:[]),q(b))},P1d=function(a){var b,c,d=(c=(b=a.configUnderEdit)==null?void 0:b.issueTypes)!=null?c:new Set;return new Map(a.constants.editIssueTypes.map(function(e){var f;return[e,a.fb.control((f=d.has(e))!=null?f:!1)]}))};D8.prototype.cancel=function(){this.onCancel.emit()};D8.prototype.save=function(){this.onSave.emit(R1d(this))};D8.\u0275fac=function(a){return new (a||D8)};
D8.\u0275cmp=D({type:D8,selectors:[["b-field-configuration-editor"]],viewQuery:function(a,b){a&1&&hg(L1d,5);if(a&2){var c;lg(c=mg())&&(b.nameInput=c.first)}},inputs:{currentComponentId:"currentComponentId",customFields:"customFields",disallowIssueTypes:"disallowIssueTypes",configUnderEdit:"configUnderEdit",isReadOnly:"isReadOnly",existingConfiguredIssueTypes:"existingConfiguredIssueTypes"},outputs:{onSave:"onSave",onCancel:"onCancel"},standalone:!1,decls:41,vars:15,consts:[["nameInput",""],[1,"top-row"],
["appearance","outline","subscriptSizing","dynamic",1,"field-configuration-name-field"],["matInput","","type","text","required","","aria-required","true","autocomplete","off",3,"formControl"],["type","button","mat-stroked-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","save",3,"disabled"],[1,"custom-field-selections"],["mat-table","",3,"dataSource","trackBy"],["matColumnDef","delimiter"],["mat-cell","",4,"matCellDef"],["matColumnDef","visibility"],
["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","name"],["matColumnDef","id"],["matColumnDef","type"],["matColumnDef","description"],["matColumnDef","required"],["matColumnDef","default"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"disabled-field",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["type","button","mat-flat-button","","color","primary",1,"medium","save",3,"click","disabled"],["messageType","caution"],
[1,"issue-type-header"],[1,"issue-type-description"],[1,"issue-type-checkboxes"],[3,"formControl"],[1,"flex-kids-x","align-items-center","gap-s"],[1,"icon-s","muted",3,"svgIcon"],["mat-cell",""],["mat-header-cell",""],["aria-label","All Fields Visibility",1,"all-visibility-checkbox",3,"change","disabled","checked","indeterminate"],["aria-label","Field visibility",1,"visibility-checkbox",3,"formControl"],[3,"customFieldValue"],["mat-header-row",""],["mat-row",""]],template:function(a,b){if(a&1){var c=
t();K(0,"div")(1,"div",1)(2,"mat-form-field",2)(3,"mat-label");Q(4," Configuration name ");L();M(5,"input",3,0);L();K(7,"button",4);N("click",function(){u(c);return v(b.cancel())});Q(8);L();F(9,ycc,2,1,"button",5);L();F(10,Dcc,10,5);Zf(11);T(12,"async");K(13,"div",6)(14,"table",7);Tf(15,8);E(16,Ecc,3,2,"td",9);Uf();Tf(17,10);E(18,Fcc,3,3,"th",11)(19,Gcc,2,1,"td",9);Uf();Tf(20,12);E(21,Hcc,2,0,"th",11)(22,Icc,2,1,"td",9);Uf();Tf(23,13);E(24,Jcc,2,0,"th",11)(25,Kcc,3,1,"td",9);Uf();Tf(26,14);E(27,Lcc,
2,0,"th",11)(28,Mcc,3,3,"td",9);Uf();Tf(29,15);E(30,Ncc,2,0,"th",11)(31,Occ,2,1,"td",9);Uf();Tf(32,16);E(33,Pcc,2,0,"th",11)(34,Qcc,3,3,"td",9);Uf();Tf(35,17);E(36,Rcc,2,0,"th",11)(37,Scc,2,1,"td",9);Uf();E(38,Tcc,1,0,"tr",18)(39,Ucc,1,2,"tr",19)(40,Vcc,1,0,"tr",20);L()()()}a&2&&(B(5),I("formControl",b.nameForm),B(3),S(" ",b.isReadOnly?"Close":"Cancel"," "),B(),G(b.isReadOnly?-1:9),B(),G(b.hideIssueTypes?-1:10),B(),$f(U(12,11,b.partialVisibilityState$)),B(3),I("dataSource",b.tableRows)("trackBy",
b.trackBy),B(24),I("matHeaderRowDef",b.displayedColumns),B(),I("matRowDefColumns",b.displayedColumns)("matRowDefWhen",b.isCustomFieldRow),B(),I("matRowDefColumns",Hg(14,M1d))("matRowDefWhen",b.isDelimiterRow))},dependencies:[Jy,DU,EU,s3,xj,fE,yE,kB,gB,kL,hI,VD,FE,SD,KD,HD,UW,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,sE,bV,dV,Tx,Yx],styles:[".issue-type-checkboxes[_ngcontent-%COMP%]{display:grid;gap:8px;grid-template-columns:1fr 1fr 1fr 1fr;margin:16px}.field-configuration-name-field[_ngcontent-%COMP%]{width:100%;margin:16px 0px}.issue-type-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);margin-bottom:8px}.top-row[_ngcontent-%COMP%]{width:100%;display:flex;gap:8px;align-items:center}.top-row[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex-grow:4}.top-row[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:200px}tr.disabled-field[_ngcontent-%COMP%]{opacity:.6}"],
changeDetection:0});var S1d=function(){this.dialogData=p(TA);this.dialogRef=p(RA);this.originalItems=this.dialogData.configs.map(function(a){return{name:a.name,data:a}});this.items=[].concat(q(this.originalItems));this.hasChanges=!1};S1d.prototype.onClose=function(){var a=this.items.map(function(b){return b.data});this.dialogRef.close(a)};S1d.\u0275fac=function(a){return new (a||S1d)};
S1d.\u0275cmp=D({type:S1d,selectors:[["b-field-configuration-reorder-dialog"]],standalone:!1,decls:11,vars:2,consts:[["reorderItems",""],["mat-dialog-title",""],[1,"margin-none"],["mat-dialog-content",""],[3,"items","hasChanges","originalItems"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action","save",3,"click","disabled"]],template:function(a,b){if(a&1){var c=
t();K(0,"div",1)(1,"h1",2);Q(2," Reorder Field Configurations ");L()();K(3,"div",3)(4,"b-reorder-items",4,0);N("items",function(d){u(c);return v(b.items=d)})("hasChanges",function(d){u(c);return v(b.hasChanges=d)});L()();K(6,"div",5)(7,"button",6);N("click",function(){u(c);return v(b.dialogRef.close())});Q(8," Cancel ");L();K(9,"button",7);N("click",function(){u(c);return v(b.onClose())});Q(10," Save ");L()()}a&2&&(B(4),I("originalItems",b.originalItems),B(5),I("disabled",!b.hasChanges))},dependencies:[kB,
gB,XA,ZA,YA,SZ],encapsulation:2,changeDetection:0});var Jdc=function(){return["section-title"]},kdc=function(a){return{row:a}},T1d={text:"Typed configurations inherited by this component",rowType:"sectionTitle"},U1d={text:"Default configurations inherited by this component",rowType:"sectionTitle"},V1d={text:"Default configuration owned by this component",rowType:"sectionTitle"},W1d=function(){this.matDialog=p(UA);this.confirmationDialog=p(dS);this.fieldConfigService=p(M3);this.butterBar=p(UN);this.appEvents=p(UO);this.constants=p(gS);this.documentationLinks=
p(cS);this.activeSession=p(uu);this.isInternalSession=this.activeSession.isInternalSession();this.ROUTES=qs;this.issueTypeToDisplay=ym;this.componentIds=[];this.componentIdsToPaths={};this.currentComponentConfigs=[];this.ownDefaultFieldConfig=void 0;this.ownTypedFieldConfigs=[];this.customFields=[];this.allTableRows$=new Mj([]);this.state$=new Mj({view:"list"});this.displayedColumns=["name","types","inherited-from","actions"];this.isSectionTitleRow=function(a,b){return b.rowType==="sectionTitle"}};
W1d.prototype.ngOnInit=function(){var a;this.componentIds=[].concat(q((a=this.componentPathInfo.componentPathId)!=null?a:[])).reverse();this.currentComponentId=this.componentIds[0];var b;this.customFields=(b=this.componentPathInfo.allCustomField)!=null?b:[];a=this.componentPathInfo;b={};var c=[],d,e=(d=a.componentPathId)!=null?d:[];for(d=0;d<e.length;d++){var f=e[d];c.push(a.componentPathName[d]);b[f]=c.join(" > ")}this.componentIdsToPaths=b;var g;a=(g=this.componentPathInfo.fieldConfigsV2Map.get(this.currentComponentId))!=
null?g:[];X1d(this,a)};
var X1d=function(a,b){a.currentComponentConfigs=b;a.ownDefaultFieldConfig=void 0;var c=[];b=[];for(var d=[],e=m(a.componentIds),f=e.next();!f.done;f=e.next()){f=f.value;var g=f===a.currentComponentId?a.currentComponentConfigs:a.componentPathInfo.fieldConfigsV2Map.get(f);if(g)if(f===a.currentComponentId)for(f=m(g),g=f.next();!g.done;g=f.next())g=g.value,g.issueTypes.size?b.push(g):a.ownDefaultFieldConfig=g;else for(f=m(g),g=f.next();!g.done;g=f.next())g=g.value,g.issueTypes.size?d.push(g):c.push(g)}e=
[];b.length>0&&e.push.apply(e,q(Y1d(a,b)));d.length>0&&(e.push(T1d),e.push.apply(e,q(Y1d(a,d))));a.ownDefaultFieldConfig&&(e.push(V1d),e.push.apply(e,q(Y1d(a,[a.ownDefaultFieldConfig]))));c.length>0&&(e.push(U1d),e.push.apply(e,q(Y1d(a,c))));c=new Set;d=e.filter(function(l){return l.rowType==="fieldConfig"});d=m(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,f.issueTypes&&f.effectiveIssueTypes){g=m(f.issueTypes);for(var k=g.next();!k.done;k=g.next())k=k.value,c.has(k)&&f.effectiveIssueTypes.delete(k),
c.add(k)}a.ownTypedFieldConfigs=b;a.allTableRows$.next(e)},Ycc=function(a,b){return new Set(a.ownTypedFieldConfigs.filter(function(c){return c!==b}).flatMap(function(c){return[].concat(q(c.issueTypes))}))},Wcc=function(a,b,c){var d=Array.from(a.currentComponentConfigs,function(e){return e===b?c:e});Z1d(a,d)},Hdc=function(a,b,c){a.state$.next({view:"create",config:b,disallowIssueTypes:!!c})},bdc=function(a,b){b.componentId=a.currentComponentId;Z1d(a,[].concat(q(a.currentComponentConfigs),[b]))},Xcc=
function(a){a.state$.next({view:"list"})},zdc=function(a,b){a.confirmationDialog.open({title:"Delete field configuration?",content:Bh("Are you sure you want to delete the "+b.name+"? This cannot be undone."),onConfirm:function(){Z1d(a,a.currentComponentConfigs.filter(function(c){return c!==b}))}})},Idc=function(a){return SA(a.matDialog.open(S1d,{width:"500PX",autoFocus:!1,data:{configs:a.ownTypedFieldConfigs}})).subscribe(function(b){b&&(a.ownDefaultFieldConfig&&b.push(a.ownDefaultFieldConfig),Z1d(a,
b))})},Z1d=function(a,b){a.state$.next({view:"list"});if(a.currentComponentId){var c=a.currentComponentId;CRd(a.fieldConfigService,c,b).subscribe(function(d){a.appEvents.componentModified.next(c);X1d(a,d);Rr(a.butterBar,"Field configurations saved",3E3)},function(){a.butterBar.showWarning("Saving field configurations failed, please refresh the page.",5E3)})}},$cc=function(a,b){return a.customFields.filter(function(c){return b.customFieldConfigs.has(c.customFieldId)})},Y1d=function(a,b){return b.map(function(c){var d;
return{inherited:c.componentId!==a.currentComponentId,name:c.name,isDefault:!((d=c.issueTypes)==null?0:d.size),issueTypes:c.issueTypes,effectiveIssueTypes:new Set(c.issueTypes),owningComponentId:c.componentId,rowType:"fieldConfig",data:c}})};W1d.\u0275fac=function(a){return new (a||W1d)};
W1d.\u0275cmp=D({type:W1d,selectors:[["b-field-configuration"]],inputs:{componentPathInfo:"componentPathInfo",isAdmin:"isAdmin"},standalone:!1,decls:3,vars:4,consts:[["deleteDialog",""],["actionButtons",""],["issueTypes",""],["card","onedevHovercard"],["cardBody",""],[3,"currentComponentId","customFields","configUnderEdit","isReadOnly","existingConfiguredIssueTypes"],[3,"currentComponentId","customFields","configUnderEdit","isReadOnly"],[3,"currentComponentId","customFields","disallowIssueTypes",
"configUnderEdit","existingConfiguredIssueTypes"],[3,"onSave","onCancel","currentComponentId","customFields","configUnderEdit","isReadOnly","existingConfiguredIssueTypes"],[3,"onCancel","currentComponentId","customFields","configUnderEdit","isReadOnly"],[3,"onSave","onCancel","currentComponentId","customFields","disallowIssueTypes","configUnderEdit","existingConfiguredIssueTypes"],[1,"component-banner","config-help-banner"],["aria-label","Learn more about field ordering","target","_blank",1,"keep-underline",
"keep-focus-ring",3,"href"],["mat-table","",3,"dataSource"],["matColumnDef","section-title"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","types"],["matColumnDef","inherited-from"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","section-title-row",4,"matRowDef","matRowDefColumns","matRowDefWhen"],[1,"no-custom-fields-message"],[1,"edit-button-row"],
["type","button","mat-flat-button","","aria-label","Create new configuration in this component",1,"create-new-configuration",3,"click","disabled"],["type","button","mat-flat-button","","aria-label","Create new configuration in this component",1,"create-new-default-configuration",3,"click","disabled"],["type","button","mat-flat-button","","aria-label","Create new configuration in this component",1,"reorder-button",3,"click","disabled"],["mat-cell",""],["mat-header-cell",""],[1,"flex-kids-x","align-items-center",
"gap-s"],["svgIcon","help-outline",1,"icon-s","muted",3,"onedevHovercardTrigger"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"config-component-path"],[1,"header-label"],[3,"onedevHovercardTrigger","href"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"section-title-row"],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button",
"",1,"medium","cancel",3,"mat-dialog-close"],["type","button","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"],[1,"action-buttons-row"],["type","button","mat-button","","aria-label","View configuration",1,"view-configuration"],["type","button","mat-button","","aria-label","Create copy of configuration",1,"create-copy-configuration"],["type","button","mat-button","","aria-label","Create copy of configuration",1,"create-copy-configuration",3,"click"],["type","button",
"mat-button","","aria-label","Edit configuration",1,"edit-configuration",3,"click"],["type","button","mat-button","","aria-label","Delete configuration",1,"delete-configuration",3,"click"],["type","button","mat-button","","aria-label","View configuration",1,"view-configuration",3,"click"],[1,"issue-types-cell"],[1,"icon-s","muted",3,"svgIcon","non-applicable"],[1,"icon-s","muted",3,"svgIcon"]],template:function(a,b){a&1&&(Zf(0),T(1,"async"),F(2,Ldc,4,1));a&2&&(a=$f(U(1,1,b.state$)),B(2),G(a?2:-1))},
dependencies:[Sx,Jy,SV,kB,gB,VA,ZA,YA,UW,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,hK,KK,LK,SK,MK,D8,Tx],styles:[".edit-button-row[_ngcontent-%COMP%]{padding:10px 0}.mat-column-types[_ngcontent-%COMP%]{white-space:pre-line}table[_ngcontent-%COMP%]{margin-top:10px}.section-title-row[_ngcontent-%COMP%]{height:32px}th.mat-mdc-header-cell[_ngcontent-%COMP%], td.mat-mdc-cell[_ngcontent-%COMP%]{padding:8px;text-align:left;font-size:.8125rem;border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}td[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}td[_ngcontent-%COMP%]   .config-row-name[_ngcontent-%COMP%]{padding:8px}td[_ngcontent-%COMP%]   .action-buttons-row[_ngcontent-%COMP%]{display:flex;gap:8px;flex-direction:row}th.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type{padding-left:8px}th.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type{padding-right:8px}.no-data-row[_ngcontent-%COMP%]{padding:12px}.example-custom-placeholder[_ngcontent-%COMP%]{background:#ccc;border:dotted 3px #999;min-height:40px;width:100%}.mat-column-name[_ngcontent-%COMP%]{width:300px}.mat-column-types[_ngcontent-%COMP%]{width:200px}.mat-column-inherited-from[_ngcontent-%COMP%]{width:300px}.mat-column-actions[_ngcontent-%COMP%]{width:300px}.issue-types-cell[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.non-applicable[_ngcontent-%COMP%]{color:var(--text-disabled);text-decoration:line-through}"],
changeDetection:0});var $1d=function(){};$1d.prototype.ngOnInit=function(){};$1d.\u0275fac=function(a){return new (a||$1d)};$1d.\u0275cmp=D({type:$1d,selectors:[["slo-inheritance-breadcrumbs"]],inputs:{componentPath:"componentPath",teamPath:"teamPath"},standalone:!1,decls:2,vars:2,consts:[[3,"teamPath"],["componentPathsLinkTo","settings",3,"componentPathInfo"]],template:function(a,b){a&1&&(F(0,Mdc,3,1),F(1,Ndc,3,1));a&2&&(G(b.teamPath?0:-1),B(),G(b.componentPath?1:-1))},dependencies:[TV,y5],styles:["b-component-breadcrumb[_ngcontent-%COMP%], b-team-breadcrumb[_ngcontent-%COMP%]{display:inline-block}"]});var a2d={BASIC:"basic",CUSTOM_FIELDS:"customFields",FIELD_ORDERING:"fieldOrdering",FIELD_VISIBILITY:"fieldVisibility",TEMPLATES:"templates",ACCESS:"access"},b2d={},c2d=(b2d[0]="access",b2d[1]="access_permissions",b2d),E8=function(){Z.call(this);var a=this;this.bLocation=p(bU);this.route=p(Lj);this.TAB_LIST="basic customFields fieldOrdering fieldVisibility templates access".split(" ");this.Tab=a2d;this.selectedTabIndex=this.tabIndex("basic");this.selectedAccessSubTabIndex=0;this.componentReady$=new qf;
this.componentReady$.subscribe(function(){a.selectedTabIndex=a.tabIndex("basic");a.route.fragment.pipe(zf(a.destroyed$)).subscribe(function(b){if(b==="basic")a.selectedTabIndex=a.tabIndex("basic");else if(b==="customFields")a.selectedTabIndex=a.tabIndex("customFields");else if(b==="fieldOrdering")a.selectedTabIndex=a.tabIndex("fieldOrdering");else if(b==="templates")a.selectedTabIndex=a.tabIndex("templates");else if(b==="fieldVisibility")a.selectedTabIndex=a.tabIndex("fieldVisibility");else if(b===
"access"||b==="access"||b==="access_permissions")a.selectedTabIndex=a.tabIndex("access"),b==="access_permissions"&&(a.selectedAccessSubTabIndex=1),Yfc(a)})})};Y(E8,Z);E8.\u0275dir=Z.\u0275dir;E8.prototype.tabIndex=function(a){a=this.TAB_LIST.indexOf(a);return a!==-1?a:0};
E8.prototype.tabChange=function(a){if(a===this.tabIndex("access")&&this.selectedAccessSubTabIndex>0){var b,c=(b=c2d[a])!=null?b:"access";this.bLocation.hash(c,!0)}else b=(c=this.TAB_LIST[a])!=null?c:null,this.bLocation.hash(b,!0);this.selectedTabIndex=a};var Yfc=function(a){a.selectedAccessSubTabIndex===1?a.bLocation.hash("access_permissions",!0):a.selectedAccessSubTabIndex===0&&a.bLocation.hash("access",!0)};E8.\u0275fac=function(a){return new (a||E8)};
E8.\u0275prov=Dc({token:E8,factory:E8.\u0275fac,providedIn:"root"});var Sdc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Sdc,W);var d2d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,d2d.messageId)};Y(d2d,W);d2d.messageId="b.BatchGroupMetadataResult";var G8=function(){var a=this;this.groupMetadataResources=p(F8);this.bulkGetter=p(BP).adapt(function(b){return a.groupMetadataResources.bulkGet(b).then(function(c){var d=Odc(c);return Vwc(b,function(e){return d[e]||null})})})};G8.prototype.get=function(a){return this.bulkGetter.get(a).then(function(b){return b!==null?b:{groupEmail:a,approximateSize:0,sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"}})};G8.\u0275fac=function(a){return new (a||G8)};
G8.\u0275prov=Dc({token:G8,factory:G8.\u0275fac,providedIn:"root"});var F8=function(){this.executor=p(cO)};F8.prototype.bulkGet=function(a){a=[].concat(q(new Set(a)));a=Sp(a.join(","));return this.executor.get({url:"action/group_metadata/"+a,responseConstructor:d2d}).then(Tdc)};F8.\u0275fac=function(a){return new (a||F8)};F8.\u0275prov=Dc({token:F8,factory:F8.\u0275fac,providedIn:"root"});var Udc=[{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 H8=function(){var a=this;this.activeSession=p(uu);this.confirmationDialogService=p(dS);this.documentationLinks=p(cS);this.groupMetadata=p(G8);this.componentReaders=[];this.enableRostersChecks=this.activeSession.getFlag("enableRostersChecks");this.enableComponentAutomationCheck=this.activeSession.getFlag("enableComponentAutomationCheck");this.isPublic=function(){return nt(a.component)};this.hasUnsavedAccessLimitChanges=function(){return a.originalComponent&&a.component?a.originalComponent.accessLimit.accessLevel!==
a.component.accessLimit.accessLevel:!1};this.performAccessLimitCheck=function(){return new Promise(function(b){a.hasUnsavedAccessLimitChanges()&&a.component.accessLimit.accessLevel==="INTERNAL"?a.confirmationDialogService.open({title:"Component Visibility Changed",content:Bh("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(!0)},onDismiss:function(){b(!1)}}):b(!0)})};this.performDeletedAccountsCheck=function(){return new Promise(function(b){a.componentReaders.includes("GROUP:nobody@google.com")?a.confirmationDialogService.open({title:'"nobody@google.com" is on the access policy',content:Bh('"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("GROUP:nobody@google.com")?
'"Component Admins"':null,a.componentAccessPolicyUnderEdit.appenders.includes("GROUP:nobody@google.com")?'"Create Issues"':null,a.issueDefaultAccessPolicyUnderEdit.admins.includes("GROUP:nobody@google.com")?'"Issue Admins"':null,a.issueDefaultAccessPolicyUnderEdit.editors.includes("GROUP:nobody@google.com")?'"Edit Issues"':null,a.issueDefaultAccessPolicyUnderEdit.appenders.includes("GROUP:nobody@google.com")?'"Comment on Issues"':null,a.issueDefaultAccessPolicyUnderEdit.readers.includes("GROUP:nobody@google.com")?
'"View Issues"':null,a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders.includes("GROUP:nobody@google.com")?'"View restricted+ content"':null,a.issueDefaultAccessPolicyUnderEdit.restrictedReaders.includes("GROUP:nobody@google.com")?'"View restricted content"':null].filter(function(c){return!!c}).join(", ")+". Do you want to proceed?"),onConfirm:function(){b(!0)},onDismiss:function(){b(!1)}}):b(!0)})};this.performAdminAccessRemovalCheck=function(){return new Promise(function(b){dec(a.activeSession.getUserEmail(),
a.componentFlattenedAccessPolicy,a.componentAccessPolicyUnderEdit)?a.confirmationDialogService.open({title:"Component Administrators Changed",content:Bh("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(!0)},onDismiss:function(){b(!1)}}):b(!0)})};this.performRestrictedPlusGroupRemovalCheck=
function(){return new Promise(function(b){cec(a.issueDefaultFlattenedAccessPolicy,a.issueDefaultAccessPolicyUnderEdit)?a.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",content:Bh("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(!0)},onDismiss:function(){b(!1)}}):b(!0)})};this.retrieveGroupMetadata=function(b){b=Ocb(b);return b.group!==void 0&&b.group.emailAddress?
a.groupMetadata.get(b.group.emailAddress):Promise.resolve({approximateSize:0,groupEmail:"",sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"})};this.evaluateNewGroups=function(){var b=tq([].concat(q(sm(a.componentAccessPolicyUnderEdit.admins,a.componentFlattenedAccessPolicy.admins)),q(sm(a.issueDefaultAccessPolicyUnderEdit.admins,a.issueDefaultFlattenedAccessPolicy.admins)),q(sm(a.issueDefaultAccessPolicyUnderEdit.editors,a.issueDefaultFlattenedAccessPolicy.editors)),q(sm(a.issueDefaultAccessPolicyUnderEdit.appenders,
a.issueDefaultFlattenedAccessPolicy.appenders)),q(sm(a.issueDefaultAccessPolicyUnderEdit.readers,a.issueDefaultFlattenedAccessPolicy.readers)),q(sm(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders,a.issueDefaultFlattenedAccessPolicy.restrictedReaders)),q(sm(a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders,a.issueDefaultFlattenedAccessPolicy.restrictedPlusReaders))));return Promise.all(b.map(function(c){return a.retrieveGroupMetadata(c)}))};this.performAddedLargeOrOpenGroupCheck=function(){return a.enableRostersChecks?
a.evaluateNewGroups().then(function(b){var c=Ydc(b);b=bec(b);if(c.size===0&&b.size===0)return Promise.resolve(!0);var d=Zdc(c.size,b.size);c=$dc(c);b=aec(b);var e=Dh([c,c===sj?sj:Eh("br"),b]);c={};e=Dh([e,Eh("p",{},Dh(["Please review the ",Eh("a",(c.href=mmd(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?"]))]);return new Promise(function(f){a.confirmationDialogService.open({title:d,content:e,onConfirm:function(){f(!0)},
onDismiss:function(){f(!1)},confirmButtonText:"Add Group"})})}):Promise.resolve(!0)};this.performAddedNewInternalAliasesCheck=function(){return new Promise(function(b){if(a.isPublic()&&Xdc(a.issueDefaultAccessPolicyUnderEdit,a.issueDefaultFlattenedAccessPolicy)){var c={};c=Dh([Eh("p",{},"You are about to give a broad category of users permissions on a public component."),Eh("p",{},Dh(["Please review the ",Eh("a",(c.href=lmd(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(!0)},onDismiss:function(){b(!1)},confirmButtonText:"Add Group Alias"})}else b(!0)})};this.performChangedImplicitAccessCheck=function(){a.implicitAccess={getValue:function(){return a.componentAccessPolicyUnderEdit?a.componentAccessPolicyUnderEdit.implicitAccess==="ALLOW":!1},getSavedValue:function(){return a.componentFlattenedAccessPolicy?a.componentFlattenedAccessPolicy.implicitAccess===
"ALLOW":!1},setValue:function(d){a.componentAccessPolicyUnderEdit&&(a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,{implicitAccess:d?"ALLOW":"DENY"}))}};var b={},c=Eh("a",(b.href=ms(a.documentationLinks)+"#expanded-access",b),"Learn more.");return new Promise(function(d){a.implicitAccess.getValue()===a.implicitAccess.getSavedValue()?d(!0):a.implicitAccess.getValue()?a.confirmationDialogService.open({title:"Turn on expanded access for component "+a.component.componentId+
"?",content:Ch(["When expanded access is on, assignees and verifiers can edit issues in this component, and CC'd users can comment. ",c]),onConfirm:function(){d(!0)},onDismiss:function(){d(!1)}}):a.confirmationDialogService.open({title:"Turn off expanded access for component "+a.component.componentId+"?",content:Ch(["Some users may lose the ability to edit or comment on issues in this component. ",c]),onConfirm:function(){d(!0)},onDismiss:function(){d(!1)}})})};this.getAddedAutomationInPolicyChange=
function(){var b=[].concat(q(Vdc(a.issueDefaultFlattenedAccessPolicy,a.issueDefaultAccessPolicyUnderEdit)),q(Vdc(a.componentFlattenedAccessPolicy,a.componentAccessPolicyUnderEdit))),c=new Set;b=m(b);for(var d=b.next();!d.done;d=b.next()){d=m(d.value.addedPrincipals);for(var e=d.next();!e.done;e=d.next())e=Ocb(e.value),(aRa(e)?zTa(e.user.emailAddress):e.group!==void 0&&zTa(e.group.emailAddress))&&c.add(e)}return[].concat(q(c))};this.performAutomationUserAccessCheck=function(){if(!a.enableComponentAutomationCheck)return Promise.resolve(!0);
var b=a.getAddedAutomationInPolicyChange();return new Promise(function(c){if(b.length){var d={};d=Eh("a",(d.href=jmd(a.documentationLinks),d)," automation account documentation");a.confirmationDialogService.open({title:"Adding automation accounts",content:Dh([Bh("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"),Eh("wbr"),d,Bh("."),Eh.apply(null,["ol",{}].concat(q(b.map(function(e){if(aRa(e)){var f;
return Eh("li",{},Bh((f=e.user.emailAddress)!=null?f:""))}if(e.group!==void 0){var g;return Eh("li",{},Bh((g=e.group.emailAddress)!=null?g:""))}throw Error("wg`"+JSON.stringify(e));})))),Eh("br",{}),Bh("Are you sure you wish to allow automation to access data in this component?")]),onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}})}else c(!0)})};this.runValidation=function(b){var c,d,e;return y(function(f){switch(f.nextAddress){case 1:c=m(b),d=c.next();case 2:if(d.done){f.jumpTo(4);break}e=
d.value;return z(f,e(),5);case 5:if(!f.yieldResult)return f.return(!1);d=c.next();f.jumpTo(2);break;case 4:return f.return(!0)}})}},e2d=function(a,b){var c=b.component;var d=b.originalComponent;var e=b.componentReaders;var f=b.componentAccessPolicyUnderEdit;var g=b.componentFlattenedAccessPolicy;var k=b.issueDefaultAccessPolicyUnderEdit;var l=b.issueDefaultFlattenedAccessPolicy;var r,w;return y(function(x){if(x.nextAddress==1)return a.component=c,a.originalComponent=d,a.componentReaders=e,a.componentAccessPolicyUnderEdit=
f,a.componentFlattenedAccessPolicy=g,a.issueDefaultAccessPolicyUnderEdit=k,a.issueDefaultFlattenedAccessPolicy=l,r=[a.performAccessLimitCheck,a.performDeletedAccountsCheck,a.performAdminAccessRemovalCheck,a.performRestrictedPlusGroupRemovalCheck,a.performAddedLargeOrOpenGroupCheck,a.performAddedNewInternalAliasesCheck,a.performChangedImplicitAccessCheck,a.performAutomationUserAccessCheck],z(x,a.runValidation(r),2);w=x.yieldResult;return x.return(w)})};H8.\u0275fac=function(a){return new (a||H8)};
H8.\u0275prov=Dc({token:H8,factory:H8.\u0275fac});var I8=function(){Z.apply(this,arguments);this.principalTypes=p(EQ);this.componentReaders=[];this.templates=[]};Y(I8,Z);I8.\u0275dir=Z.\u0275dir;
I8.prototype.ngOnChanges=function(){var a=this.componentAccessPolicy,b=this.issueAccessPolicy,c=new Set([].concat(q(this.componentReaders))),d=new Set([].concat(q(a.admins),q(a.inheritedAdmins)));a=new Set([].concat(q(d),q(a.appenders)));var e=new Set([].concat(q(b.admins))),f=new Set([].concat(q(e),q(b.editors))),g=new Set([].concat(q(f),q(b.appenders))),k=new Set([].concat(q(b.restrictedPlusReaders))),l=new Set([].concat(q(k),q(b.restrictedReaders)));b=new Set([].concat(q(l),q(g),q(b.readers)));
this.templates=[{permission:"Admin Components",principals:[].concat(q(d)).map(pu)},{permission:"Create Issues",principals:[].concat(q(a)).map(pu)},{permission:"Admin Issues",principals:[].concat(q(e)).map(pu)},{permission:"Edit Issues",principals:[].concat(q(f)).map(pu)},{permission:"Comment on Issues",principals:[].concat(q(g)).map(pu)},{permission:"View Issues",principals:[].concat(q(b)).map(pu)},{permission:"View Components",principals:[].concat(q(c)).map(pu)},{permission:"View Restricted",principals:[].concat(q(l)).map(pu)},
{permission:"View Restricted+",principals:[].concat(q(k)).map(pu)}];f2d(this,this.templates)};
var f2d=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next()){c=m(c.value.principals);for(var d=c.next(),e={};!d.done;e={principal$jscomp$15:void 0},d=c.next())e.principal$jscomp$15=d.value,e.principal$jscomp$15.principalType==="ALIAS"?e.principal$jscomp$15.detailedUserType="NO_DETAILED_TYPE":FQ(a.principalTypes,e.principal$jscomp$15.value,!0).then(function(f){return function(g){f.principal$jscomp$15.detailedUserType=g.detailedUserType}}(e))}};
I8.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(I8)))(b||I8)}}();
I8.\u0275cmp=D({type:I8,selectors:[["permissions-view"]],inputs:{issueAccessPolicy:"issueAccessPolicy",componentAccessPolicy:"componentAccessPolicy",componentReaders:"componentReaders",accessLevel:"accessLevel"},standalone:!1,features:[Ef,jx],decls:8,vars:0,consts:[[1,"permissions-column-headers"],["scope","col"],[1,"permission-row"],["scope","row"],[3,"value","detailedUserType","principalType","accessLevel","displayText"]],template:function(a,b){a&1&&(K(0,"table")(1,"tr",0)(2,"th",1),Q(3,"Permission"),
L(),K(4,"th",1),Q(5,"Users With Permission"),L()(),Nf(6,fec,6,1,"tr",2,Mf),L());a&2&&(B(6),Of(b.templates))},dependencies:[jX],styles:["table[_ngcontent-%COMP%]{border-collapse:collapse;margin-top:10px}.permissions-column-headers[_ngcontent-%COMP%]{display:none}.permission-row[_ngcontent-%COMP%]{border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider)}.permission-row[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .permission-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{height:auto;padding:8px;font-size:.8125rem;text-align:left}.permission-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center}b-contact-chip[_ngcontent-%COMP%]{margin-right:5px;margin-top:5px}/*# sourceMappingURL=permissions_view.css.map */"]});var g2d=Object.values({ISSUE_ADMIN:"issueAdmin",ISSUE_EDITOR:"issueEditor",ISSUE_APPENDER:"issueAppender",ISSUE_READER:"issueReader",ISSUE_RESTRICTED_READER:"issueRestrictedReader",ISSUE_RESTRICTED_PLUS_READER:"issueRestrictedPlusReader",COMPONENT_ADMIN:"componentAdmin",COMPONENT_APPENDER:"componentAppender",COMPONENT_READER:"componentReader"}),J8={},h2d=(J8.issueAdmin=new Set(["issueEditor"]),J8.issueEditor=new Set(["issueAppender"]),J8.issueAppender=new Set(["issueReader"]),J8.issueRestrictedReader=
new Set(["issueReader"]),J8.issueRestrictedPlusReader=new Set(["issueRestrictedReader"]),J8.issueReader=new Set(["componentReader"]),J8.componentAdmin=new Set(["componentAppender"]),J8.componentAppender=new Set(["componentReader"]),J8.componentReader=new Set,J8),qec=HTa(g2d,function(a){return h2d[a]}),oec=Object.values({COMPONENT_ADMIN:"componentAdmin",ISSUE_ADMIN:"issueAdmin",ISSUE_EDITOR:"issueEditor",ISSUE_CONTRIBUTOR:"issueContributor",COMPONENT_ADMIN_ONLY:"componentAdminOnly",ISSUE_CREATOR:"issueCreator",
ISSUE_ADMIN_ONLY:"issueAdminOnly",ISSUE_EDITOR_EXISTING:"issueEditorExisting",ISSUE_COMMENTER:"issueCommenter",RESTRICTED_PLUS_VIEWER:"restrictedPlusViewer",RESTRICTED_VIEWER:"restrictedViewer",ISSUE_VIEWER:"issueViewer"}),K8={},i2d=(K8.componentAdmin=new Set(["componentAdmin","issueAdmin"]),K8.issueAdmin=new Set(["issueAdmin","componentAppender"]),K8.issueEditor=new Set(["issueEditor","componentAppender"]),K8.issueContributor=new Set(["issueAppender","componentAppender"]),K8.componentAdminOnly=new Set(["componentAdmin"]),
K8.issueCreator=new Set(["componentAppender"]),K8.issueAdminOnly=new Set(["issueAdmin"]),K8.issueEditorExisting=new Set(["issueEditor"]),K8.issueCommenter=new Set(["issueAppender"]),K8.restrictedPlusViewer=new Set(["issueRestrictedPlusReader"]),K8.restrictedViewer=new Set(["issueRestrictedReader"]),K8.issueViewer=new Set(["issueReader"]),K8),nec=HTa(oec,function(a){return i2d[a]}),j2d=rec(),mec=HTa(oec,function(a){a=[].concat(q(nec.get(a))).flatMap(function(b){return[].concat(q(j2d.get(b)))});return new Set(a)}),
pec=HTa(oec,function(a){return new Set(oec.filter(function(b){return b!==a&&GQa(mec.get(b),mec.get(a))}))});var uec={componentAdmin:[],componentAdminOnly:[],issueAdminOnly:[],inheritedComponentAdmin:[],issueAdmin:[],editor:[],contributor:[],viewer:[],editExistingIssuesOnly:[],createIssuesOnly:[],commentOnly:[],viewRestricted:[],viewRestrictedPlus:[]},k2d={admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null};var L8=function(){var a=this;this.accessPolicyApi=p(KO);this.errorHandler=p(pO);this.butterBar=p(UN);this.userAccess=p(DP);this.componentActions=p(VV);this.componentValidator=p(H8);this.analytics=p(eQ);this.isAdmin=!1;this.rolesMap=uec;this.originalComponent=this.parentComponent=this.component=null;this.isUpdatingAccessLimit=this.isUpdatingAccessPolicy=this.isSaving=!1;this.implicitAccess={getValue:function(){return a.componentAccessPolicyUnderEdit?a.componentAccessPolicyUnderEdit.implicitAccess===
"ALLOW":!1},getSavedValue:function(){return a.componentFlattenedAccessPolicy?a.componentFlattenedAccessPolicy.implicitAccess==="ALLOW":!1},setValue:function(b){a.componentAccessPolicyUnderEdit&&(a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,{implicitAccess:b?"ALLOW":"DENY"}))},isUpdated:function(){var b;return a.componentAccessPolicyUnderEdit.implicitAccess!==((b=a.componentFlattenedAccessPolicy)==null?void 0:b.implicitAccess)}};this.restrictedPlusReadersValidators=
{noRestrictedPlusGroups:function(b){a:{var c=a.issueDefaultFlattenedAccessPolicy;if(b&&c){c=c.restrictedPlusReaders;b=m(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.startsWith("GROUP:")&&!c.includes(d)){c=!1;break a}}c=!0}return c}};this.componentReaders=[];this.issueDefaultFlattenedAccessPolicy=this.componentFlattenedAccessPolicy=k2d;this.componentAccessPolicyUnderEdit=js();this.issueDefaultAccessPolicyUnderEdit=js()};
L8.prototype.hasUnsavedAccessLimitChanges=function(){var a=this.originalComponent,b=this.component;return a&&b?a.accessLimit.accessLevel!==b.accessLimit.accessLevel:!1};
var l2d=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;Rr(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;
var c="Could not change access level. ";Pp(b)&&(c+=Qp(b));a.butterBar.showWarning(c)}).finally(function(){a.isUpdatingAccessLimit=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})};L8.prototype.updateComponentAndOriginalComponent=function(a){this.component=nm(a);this.originalComponent=nm(a)};
L8.prototype.loadComponent=function(){var a=this;return this.componentActions.getUncached(this.componentId).then(function(b){a.updateComponentAndOriginalComponent(b);b.parentComponentId&&a.loadParentComponent(b.parentComponentId)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};L8.prototype.loadParentComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){return b.parentComponent=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
L8.prototype.initialize=function(a){var b=this;a=a===void 0?this.componentId:a;if(!a&&!this.componentId)return this.butterBar.showWarning("No component found!"),Promise.resolve();this.componentId=a;return Promise.all([this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(c){b.componentFlattenedAccessPolicy=ks(c);b.componentAccessPolicyUnderEdit=nm(b.componentFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(c){b.issueDefaultFlattenedAccessPolicy=
ks(c);b.issueDefaultAccessPolicyUnderEdit=nm(b.issueDefaultFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.loadComponent(),this.loadUserAccess(this.componentId)]).then(function(){})};
var m2d=function(a){a.rolesMap=vec({componentAccessPolicy:a.componentAccessPolicyUnderEdit,issueAccessPolicy:a.issueDefaultAccessPolicyUnderEdit})},n2d=function(a,b){var c=a.issueDefaultAccessPolicyUnderEdit,d=a.issueDefaultFlattenedAccessPolicy;return d&&xec(d,c)?a.accessPolicyApi.update("ISSUE_DEFAULTS",a.componentId,b):Promise.resolve(void 0)},o2d=function(a){var b=wec(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy);var c=a.issueDefaultAccessPolicyUnderEdit;a=a.issueDefaultFlattenedAccessPolicy;
c=!(!a||!xec(a,c));return b||c},p2d=function(a,b){return wec(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=ks(c);if(wec(d,a.componentAccessPolicyUnderEdit)){if(wec(d,a.componentFlattenedAccessPolicy))return Promise.reject(new cdd("ConflictingWriteException: The attempted change was based on stale data. Reload the data and try again."));b.readers=c.readers;return a.accessPolicyApi.update("COMPONENT",a.componentId,
b)}}):Promise.resolve(void 0)};L8.prototype.loadUserAccess=function(a){var b=this;return EP(this.userAccess,"admin","components/"+a).then(function(c){b.isAdmin=c;return b.isAdmin?Promise.resolve(!0):EP(b.userAccess,"writer","components/"+a)}).catch(function(c){b.errorHandler.errorHandler(null,c);return Promise.resolve(!1)})};
L8.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=ls(this.componentAccessPolicyUnderEdit);var c=ls(this.issueDefaultAccessPolicyUnderEdit)}catch(d){return c="An unknown problem occurred",d instanceof Error&&(c=d.message),this.butterBar.showWarning(c),Promise.resolve()}if(o2d(this))return this.isSaving=this.isUpdatingAccessPolicy=!0,Rr(this.butterBar,"Saving access settings...",0),n2d(this,c).then(function(d){d&&(b.readers=[].concat(q(d.admins||[]),q(d.editors||[]),q(d.appenders||[]),
q(d.readers||[]),q(d.restrictedPlusReaders||[]),q(d.restrictedReaders||[])));return p2d(a,b).catch(function(e){var f;return y(function(g){if(g.nextAddress==1)return f=ls(a.issueDefaultFlattenedAccessPolicy),z(g,n2d(a,f),2);throw e;})})}).then(function(){return l2d(a)}).then(function(){return a.initialize()}).then(function(){var d=a.rolesMap;m2d(a);var e=a.rolesMap;var f={componentAdminOnly:d.componentAdminOnly,issueAdminOnly:d.issueAdminOnly,viewer:d.viewer,editExistingIssuesOnly:d.editExistingIssuesOnly,
createIssuesOnly:d.createIssuesOnly,commentOnly:d.commentOnly,viewRestricted:d.viewRestricted,viewRestrictedPlus:d.viewRestrictedPlus},g={componentAdminOnly:e.componentAdminOnly,issueAdminOnly:e.issueAdminOnly,viewer:e.viewer,editExistingIssuesOnly:e.editExistingIssuesOnly,createIssuesOnly:e.createIssuesOnly,commentOnly:e.commentOnly,viewRestricted:e.viewRestricted,viewRestrictedPlus:e.viewRestrictedPlus};d=yec({componentAdmin:d.componentAdmin,issueAdmin:d.issueAdmin,editor:d.editor,contributor:d.contributor},
{componentAdmin:e.componentAdmin,issueAdmin:e.issueAdmin,editor:e.editor,contributor:e.contributor});f=yec(f,g);switch(d&&f?2:d?0:f?1:3){case 0:a.analytics.trackEvent("roleBasedPermissions","update","roles:standard");break;case 1:a.analytics.trackEvent("roleBasedPermissions","update","roles:advanced");break;case 2:a.analytics.trackEvent("roleBasedPermissions","update","roles:both");break;default:a.analytics.trackEvent("roleBasedPermissions","update","roles:neither")}Rr(a.butterBar,"Access settings saved",
0)}).catch(function(d){a.butterBar.showWarning(Qp(d),0)}).finally(function(){return y(function(d){if(d.nextAddress==1)return z(d,a.loadUserAccess(a.componentId),2);a.isUpdatingAccessPolicy=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;ae(d)})});m2d(this);return l2d(this)};
var q2d=function(a,b){b=sec(b);a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b.issuesPermissions);a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,b.componentPermissions)},Kec=function(a,b){a.component&&a.originalComponent&&a.componentFlattenedAccessPolicy&&a.componentAccessPolicyUnderEdit&&a.issueDefaultFlattenedAccessPolicy&&a.issueDefaultAccessPolicyUnderEdit?(q2d(a,b),e2d(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();Rr(a.butterBar,"Update failed: Invalid changes to component permissions",0);return Promise.resolve()})):Promise.resolve()};
da.Object.defineProperties(L8.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){mm(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,this.componentReaders=tec({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.componentAccessPolicyUnderEditInternal}},issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){mm(a,
this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,this.componentReaders=tec({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});L8.\u0275fac=function(a){return new (a||L8)};L8.\u0275prov=Dc({token:L8,factory:L8.\u0275fac});var M8=function(){this.activeSession=p(uu);this.documentationLinks=p(cS);this.rolesEditor=p(L8);this.AccessLevelStrings=cbd};M8.prototype.getRecentIssuesLink=function(){return zr(this.rolesEditor.component.componentId,{includeArchived:this.rolesEditor.component?this.rolesEditor.component.archived:!1})};M8.prototype.isParentPartner=function(){return!(!this.rolesEditor.parentComponent||!nrb(this.rolesEditor.parentComponent))};
M8.prototype.isParentPublic=function(){return!(!this.rolesEditor.parentComponent||!nt(this.rolesEditor.parentComponent))};M8.\u0275fac=function(a){return new (a||M8)};
M8.\u0275cmp=D({type:M8,selectors:[["access-limit-settings"]],standalone:!1,decls:6,vars:3,consts:[[1,"component-banner"],[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-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"],["for","access-level-internal"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"disabled","ngModel"],["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"],["for","access-level-public"],[1,"access-level-warning"],["type","radio","id","access-level-internal","name","accessLevelInternal",
"value","INTERNAL",3,"ngModelChange","disabled","ngModel"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"ngModelChange","disabled","ngModel"],["type","radio","id","access-level-public","name","accessLevelPublic","value","EXTERNAL_PUBLIC",3,"ngModelChange","disabled","ngModel"],["aria-label","Learn more about access level","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(F(0,Dec,18,7,"div",
0),K(1,"div",1)(2,"p"),Q(3," Access to issues is granted per component using the settings below. All settings provide access to view the component. "),K(4,"a",2),Q(5,"Learn more"),L()()());if(a&2){a:if(b.activeSession.isExternalSession())a=!1;else{if(b.rolesEditor.component)if(b.rolesEditor.component.parentComponentId){if(b.rolesEditor.parentComponent){a=mt(b.rolesEditor.parentComponent)||mt(b.rolesEditor.component);break a}}else{a=!1;break a}a=void 0}G(a?0:-1);B(4);I("href",Eg("",ms(b.documentationLinks),
"#recommended-role-based-permissions-configurations"),Ne)}},dependencies:[xj,pE,fE,mE],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;margin-bottom:20px}.component-banner[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;margin:15px 0 0;padding:16px}.component-banner[_ngcontent-%COMP%]   .component-visibility-settings[_ngcontent-%COMP%]{min-height:28px}.component-banner[_ngcontent-%COMP%]   .component-visibility-header[_ngcontent-%COMP%]{font-weight:bold}.component-banner.access-level-banner[_ngcontent-%COMP%]{margin-bottom:20px}.component-banner.implicit-access-banner[_ngcontent-%COMP%], .component-banner.template-help-banner[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin:15px 0px 10px 0}/*# sourceMappingURL=access_limit_settings.css.map */"]});var N8=function(){this.documentationLinks=p(cS);this.rolesEditor=p(L8)};N8.prototype.isAccessEditDisabled=function(){return this.rolesEditor.isSaving||!this.rolesEditor.isAdmin};N8.prototype.setImplicitAccess=function(a){this.rolesEditor.implicitAccess.setValue(a)};N8.\u0275fac=function(a){return new (a||N8)};
N8.\u0275cmp=D({type:N8,selectors:[["expanded-access-settings"]],standalone:!1,decls:10,vars:6,consts:[[1,"expanded-access-settings"],[1,"permission-toggle-checkbox"],["ariaLabelledby","expanded-access-help permission-toggle-help",3,"change","checked","disabled"],[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&&(K(0,"div",0)(1,"span",1)(2,"mat-checkbox",2),N("change",function(c){return b.setImplicitAccess(c.checked)}),L()(),K(3,"div",3)(4,"strong",4),Q(5,"Expanded access"),L(),K(6,"div",5),Q(7," When checked, assignees, verifiers, and collaborators can edit issues for this component, and CC'd users can add comments. "),K(8,"a",6),Q(9,"Learn more"),L()()()());a&2&&(wg("bv2-edit-resource-readonly",b.isAccessEditDisabled()),
B(2),I("checked",b.rolesEditor.implicitAccess.getValue())("disabled",b.isAccessEditDisabled()),B(6),I("href",Eg("",ms(b.documentationLinks),"#expanded-access"),Ne))},dependencies:[kL,hI],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%]   mat-checkbox[_ngcontent-%COMP%]{top:-4px;margin-right:-5px}.expanded-access-settings[_ngcontent-%COMP%]   .permission-toggle-text[_ngcontent-%COMP%]{margin-left:1em}/*# sourceMappingURL=expanded_access_settings.css.map */"]});var Eec=function(){return{}},Gec=function(a,b){return{displayText:a,values:b}},Fec=function(a){return[a]},Hec=function(){return[]},O8=function(){this.rolesTableData=[];this.canEdit=!1;this.rolesMapUpdated=new aQ;this.formIsValid=new aQ;this.aclFormValidity=new Map};O8.prototype.getIconName=function(a,b){switch(a.grantedPermissions[b]){case "inherited":return"issue-status-verified";case !0:return"done";default:return"issue-status-wont-fix"}};
O8.prototype.getTooltip=function(a,b){return a.grantedPermissions[b]==="inherited"?"The permission is granted to this component and inherited by all child components.":""};O8.prototype.updateRolesMap=function(a,b){this.rolesMapUpdated.emit({role:a,assignees:b})};O8.\u0275fac=function(a){return new (a||O8)};
O8.\u0275cmp=D({type:O8,selectors:[["roles-view-table"]],inputs:{rolesTableData:"rolesTableData",canEdit:"canEdit",accessLevel:"accessLevel"},outputs:{rolesMapUpdated:"rolesMapUpdated",formIsValid:"formIsValid"},standalone:!1,decls:32,vars:0,consts:[["scope","col"],[1,"edit-field"],[1,"role-title"],[3,"htmlFor"],["type","button","mat-icon-button","",3,"matTooltip"],["svgIcon","help-outline"],[3,"usersChange","isValid","idForInputBox","users","ariaLabel","accessLevel","customValidators","includeAliases",
"includeViewAliases","containerChips"],["size","large","matTooltipPosition","after",3,"name","matTooltip"],["size","large",3,"name"]],template:function(a,b){a&1&&(K(0,"table")(1,"thead")(2,"tr")(3,"th",0),Q(4,"Role Assignments"),L(),K(5,"th",0)(6,"h6"),Q(7,"Admin Components"),L()(),K(8,"th",0)(9,"h6"),Q(10,"Create Issues"),L()(),K(11,"th",0)(12,"h6"),Q(13,"Admin Issues"),L()(),K(14,"th",0)(15,"h6"),Q(16,"Edit Issues"),L()(),K(17,"th",0)(18,"h6"),Q(19,"Comment on Issues"),L()(),K(20,"th",0)(21,"h6"),
Q(22,"View Issues"),L()(),K(23,"th",0)(24,"h6"),Q(25,"View Restricted"),L()(),K(26,"th",0)(27,"h6"),Q(28,"View Restricted+"),L()()()(),K(29,"tbody"),Nf(30,Iec,25,31,"tr",null,Mf),L()());a&2&&(B(30),Of(b.rolesTableData))},dependencies:[Jy,HW,sT,kB,iB,vK,nA],styles:["table[_ngcontent-%COMP%]{width:100%;font-size:.8125rem;font-family:Roboto,Arial,sans-serif}table[_ngcontent-%COMP%], thead[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%]{display:flex;flex-direction:column}tr[_ngcontent-%COMP%]{display:flex}th[_ngcontent-%COMP%]:first-child{visibility:hidden;flex:0 0 40%}th[_ngcontent-%COMP%]:not(:first-child){width:20em;height:20px;text-align:center}th[_ngcontent-%COMP%]:not(:first-child)   h6[_ngcontent-%COMP%]{display:inline;font-size:.8125rem}td[_ngcontent-%COMP%]:first-child{min-width:250px;flex:0 0 40%}td[_ngcontent-%COMP%]:not(:first-child){display:flex;justify-content:center;width:20em;padding-top:16px}b-multi-user-input[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]     td .edit-field{margin:14px 0 0}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input{width:auto;max-width:100%}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input input.bv2-multi-user-embedded-input{max-width:100%}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input .bv2-multi-user-errors{padding:9px}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input .bv2-user-chip{max-width:100%}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input .bv2-user-chip .bv2-user-chip-item{display:flex}.role-title[_ngcontent-%COMP%]{display:flex;align-items:center;margin:5px 2px}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-icon-button{margin:0 5px;width:24px;height:24px;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-icon-button .mat-icon{height:16px;width:16px;--mat-icon-button-icon-size: 16px}[_nghost-%COMP%]     b-icon{width:2em;margin:30px 0px}/*# sourceMappingURL=roles_view_table.css.map */"]});var r2d=function(){this.rolesMap=uec;this.isSaving=!1;this.saveRolesMap=new aQ;this.rolesUnderEdit=uec;this.formIsValid=!0;this.standardRolesTableData=[];this.advancedRolesTableData=[]},s2d=function(a){var b=a.rolesUnderEdit,c;var d=[{ariaLabel:"Component Admin role",label:"Component Admins",users:b==null?void 0:b.componentAdmin,roleType:"componentAdmin",grantedPermissions:{componentAdmin:"inherited",createIssues:"inherited",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:b==null?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:b==null?void 0:b.editor,roleType:"editor",grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},
includeAliases:((c=a.component.accessLimit)==null?void 0:c.accessLevel)!=="EXTERNAL_PUBLIC",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:b==null?void 0:b.contributor,roleType:"contributor",grantedPermissions:{componentAdmin:!1,
createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Issue Contributors can read, comment, and create issues, but they can't edit issues. They can't view restricted content. Typical Issue Contributors are external partners or public users."}];a.standardRolesTableData=d;b=a.rolesUnderEdit;var e,f;d=[{ariaLabel:"Component Admin Only role",label:"Component Admins Only",users:b==null?
void 0:b.componentAdminOnly,roleType:"componentAdminOnly",grantedPermissions:{componentAdmin:"inherited",createIssues:"inherited",issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Users with the Component Admin Only role can edit the component settings and create issues, but otherwise have no issue-related permissions.",chips:{displayText:"Inherited Admins",values:(f=b.inheritedComponentAdmin)!=
null?f:[]}},{ariaLabel:"Issue Creators Only role",label:"Issue Creators Only",users:b==null?void 0:b.createIssuesOnly,roleType:"createIssuesOnly",grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Users with the issue Issue Creators Only role can create issues, but have no other permissions. For example, they are not able to view issues they have created."},
{ariaLabel:"Issue Admin Only role",label:"Issue Admins Only",users:b==null?void 0:b.issueAdminOnly,roleType:"issueAdminOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Users with the Issue Admin Only role have all issue permissions but cannot create new issues."},{ariaLabel:"Issue Editors (existing issues only) role",label:"Issue Editors (existing issues only)",
users:b==null?void 0:b.editExistingIssuesOnly,roleType:"editExistingIssuesOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:((e=a.component.accessLimit)==null?void 0:e.accessLevel)!=="EXTERNAL_PUBLIC",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:b==null?void 0:b.commentOnly,roleType:"commentOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Users with the Issue Commenter Only role may view and comment on issues on this component"},{ariaLabel:"Restricted Plus Content Viewer role",label:"Restricted+ Content Viewer",
users:b==null?void 0:b.viewRestrictedPlus,roleType:"viewRestrictedPlus",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!0,restrictedPlusReader:!0},includeAliases:!1,includeViewAliases:!1,tooltip:"Only Restricted+ Content Viewers can view Restricted+ content on an issue.",customValidators:a.rolesEditor.restrictedPlusReadersValidators},{ariaLabel:"Restricted Content Viewer role",label:"Restricted Content Viewer",users:b==
null?void 0:b.viewRestricted,roleType:"viewRestricted",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!0,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Only Restricted Content Viewers can view restricted content on an issue."},{ariaLabel:"Issue Viewer role",label:"Issue Viewers",users:b==null?void 0:b.viewer,roleType:"viewer",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,
issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!0,tooltip:"Issue Viewers can only view issues in this component, but can't comment or edit issues."}];a.advancedRolesTableData=d},t2d=function(a){return a.advancedRolesTableData.some(function(b){return b.users.length>0})},u2d=function(a){a.rolesUnderEdit=Object.assign({},a.rolesMap)};h=r2d.prototype;h.ngOnInit=function(){u2d(this);s2d(this)};
h.ngOnChanges=function(a){a.rolesMap&&u2d(this);s2d(this)};h.updateRolesMap=function(a){var b={};this.rolesUnderEdit=Object.assign({},this.rolesUnderEdit,(b[a.role]=a.assignees,b))};h.getComponentAccessLevel=function(){if(this.component.accessLimit)return this.component.accessLimit.accessLevel};h.hasUnsavedAccessLimitChanges=function(){return this.rolesEditor.hasUnsavedAccessLimitChanges()};h.canEdit=function(){return!this.isSaving&&this.rolesEditor.isAdmin};
h.canSave=function(){return this.canEdit()&&(!mm(this.rolesMap,this.rolesUnderEdit)||this.rolesEditor.implicitAccess.isUpdated()||this.hasUnsavedAccessLimitChanges())&&this.formIsValid};r2d.\u0275fac=function(a){return new (a||r2d)};
r2d.\u0275cmp=D({type:r2d,selectors:[["roles-view"]],inputs:{rolesMap:"rolesMap",isSaving:"isSaving",component:"component",rolesEditor:"rolesEditor"},outputs:{saveRolesMap:"saveRolesMap"},standalone:!1,features:[jx],decls:12,vars:9,consts:[[3,"rolesMapUpdated","formIsValid","rolesTableData","canEdit","accessLevel"],["togglePosition","before",1,"mat-elevation-z0",3,"expanded"],["type","button","mat-raised-button","","aria-label","Update","color","primary",3,"click","disabled"],["type","button","mat-raised-button",
"","aria-label","Revert Changes",3,"click","disabled"]],template:function(a,b){a&1&&(M(0,"access-limit-settings"),K(1,"roles-view-table",0),N("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),L(),K(2,"mat-expansion-panel",1)(3,"mat-expansion-panel-header")(4,"mat-panel-title"),Q(5," Advanced Roles "),L()(),K(6,"roles-view-table",0),N("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=
c}),L()(),M(7,"expanded-access-settings"),K(8,"button",2),N("click",function(){b.canSave()&&b.saveRolesMap.emit(b.rolesUnderEdit)}),Q(9,"Update"),L(),K(10,"button",3),N("click",function(){u2d(b);s2d(b)}),Q(11," Revert Changes\n"),L());a&2&&(B(),I("rolesTableData",b.standardRolesTableData)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(),I("expanded",t2d(b)),B(4),I("rolesTableData",b.advancedRolesTableData)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(2),
I("disabled",!b.canSave()),B(2),I("disabled",!!mm(b.rolesMap,b.rolesUnderEdit)))},dependencies:[IL,JL,KL,kB,gB,O8,M8,N8],styles:["[_nghost-%COMP%]     mat-expansion-panel .mat-expansion-panel-body{padding:0}mat-expansion-panel-header[_ngcontent-%COMP%]{margin:0 0 0 8px;padding:0}button[_ngcontent-%COMP%]{margin:0px 10px 5px 0px}/*# sourceMappingURL=roles_view.css.map */"]});var P8=function(){Z.apply(this,arguments);this.rolesEditor=p(L8);this.route=p(Lj);this.tabIndex=0;this.onTabChange=new aQ;this.selectedTabIndex=this.tabIndex};Y(P8,Z);P8.\u0275dir=Z.\u0275dir;P8.prototype.ngOnChanges=function(a){var b;a=(b=a.tabIndex)==null?void 0:b.currentValue;a!=null&&(this.selectedTabIndex=a)};
P8.prototype.ngOnInit=function(){var a=this;this.selectedTabIndex=this.tabIndex;this.route.paramMap.pipe(A(function(b){return b.get("componentId")}),ue(Pm),yf(function(b){return a.rolesEditor.initialize(b)}),zf(this.destroyed$)).subscribe(function(){m2d(a.rolesEditor)})};
P8.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;e==="access"?this.selectedTabIndex=0:e==="access_permissions"&&(this.selectedTabIndex=1);this.onTabChange.emit(a)};P8.prototype.isSaving=function(){return this.rolesEditor.isSaving};P8.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(P8)))(b||P8)}}();
P8.\u0275cmp=D({type:P8,selectors:[["role-based-permissions"]],viewQuery:function(a,b){a&1&&hg(wL,5,Hd);if(a&2){var c;lg(c=mg())&&(b.tabs=c)}},inputs:{tabIndex:"tabIndex"},outputs:{onTabChange:"onTabChange"},standalone:!1,features:[Gg([L8,H8]),Ef,jx],decls:2,vars:2,consts:[[1,"bv2-view-loading"],[1,"padded"],[3,"selectedIndexChange","selectedIndex"],["label","Edit Roles","id","access_roles"],[3,"saveRolesMap","rolesMap","isSaving","component","rolesEditor"],["label","View Permissions","id","access_permissions"],
[3,"componentReaders","componentAccessPolicy","issueAccessPolicy","accessLevel"]],template:function(a,b){a&1&&(F(0,Jec,2,0,"div",0),F(1,Lec,7,9,"div"));a&2&&(G((b.rolesEditor.component==null?0:b.rolesEditor.component.componentId)?-1:0),B(),G((b.rolesEditor.component==null?0:b.rolesEditor.component.componentId)?1:-1))},dependencies:[BL,wL,xL,cU,I8,r2d],styles:["/*# sourceMappingURL=role_based_permissions.css.map */"]});var v2d=["archiveDialog"],w2d=["archiveButton"],x2d=["metadataForm"],Q8=function(){Z.apply(this,arguments);var a=this;this.cdr=p(bQ,{self:!0});this.routeParams=p(wS);this.bLocation=p(bU);this.templatesApi=p(TO);this.paths=p(hW);this.appHistory=p(J2);this.butterBar=p(UN);this.pageTitle=p(n2);this.activeSession=p(uu);this.documentationLinks=p(cS);this.matDialogService=p(UA);this.analytics=p(eQ);this.checkBeforeExit=p(rY);this.userAccess=p(DP);this.componentActions=p(VV);this.errorHandler=p(pO);this.componentUpdates=
p(SPd);this.componentUpdatesApi=p(C8);this.confirmationDialogService=p(dS);this.appEvents=p(UO);this.teamsService=p(OQ);this.sloApi=p(IQ);this.sloService=p(JQ);this.trackerHelpers=p(kS);this.tabsService=p(E8);this.componentId$=new uf(1);this.componentListRoute=$4a;this.showSloInheritancePath=!1;this.component$=new Mj(null);this.componentTrackerId$=this.component$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.showTrackerRedirect$=this.componentTrackerId$.pipe(A(function(b){var c,d=(c=
a.activeSession.getTracker())==null?void 0:c.trackerId;return!!d&&d!==b}));this.parentComponent$=new Mj(null);this.componentTeam$=new Mj(null);this.team$=this.componentTeam$.pipe(yf(function(b){return(b=b==null?void 0:b.id)&&b!=="0"?PQ(a.teamsService,b):ce(null)}));this.parentComponentTeam$=this.parentComponent$.pipe(yf(function(b){var c;return(b=b==null?void 0:(c=b.team)==null?void 0:c.id)&&b!=="0"?PQ(a.teamsService,b):ce(null)}));this.inheritedSloMetadata$=ie([this.component$,this.parentComponent$,
this.team$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;if((b==null?0:b.team)&&!b.team.inherit&&b.team.id!=="0"){var e,f=(e=c==null?void 0:c.slo)!=null?e:null;if(f)return{containerType:"TEAM",content:f}}else if(e=(f=d==null?void 0:d.slo)!=null?f:null)return{containerType:"COMPONENT",content:e};return null}));this.inheritedSlo$=this.inheritedSloMetadata$.pipe(nf(),yf(function(b){var c=void 0;b&&(b.containerType==="TEAM"?c=b.content.sloId:b.containerType===
"COMPONENT"&&(c=b.content.id));return c?a.sloService.get(c).then(function(d){return{id:c,slo:d}}):ce({id:"0"})}));this.sloPolicySource$=this.inheritedSloMetadata$.pipe(nf(),yf(function(b){if(!b)return ce({name:"None",type:"none"});b=igc(b);var c=b.sourceTeamId,d=b.sourceComponentId;return c&&c!=="0"?a.teamsService.getTeam(c).pipe(A(function(e){var f;return{name:(f=e==null?void 0:e.name)!=null?f:c,type:"team",link:{path:"/teams/"+c+"/edit",fragment:"slo"}}})):d?a.componentActions.get(d).then(function(e){var f;
return{name:(f=e.name)!=null?f:d,type:"component",link:{path:"/components/"+d+"/edit"}}}):ce(null)}));this.policySourcePath$=ie([this.component$,this.team$,this.parentComponentTeam$,this.inheritedSloMetadata$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;var e=c.next().value;c=c.next().value;if(!b||!b.componentPathInfo||!c)return null;var f=igc(c);c=f.sourceComponentId;d=kgc(d,f.sourceTeamId,b.team,e);return c===null?{componentPath:null,teamPath:d}:{componentPath:jgc(b,c),
teamPath:d}}));this.component=null;this.orderedCustomFields=[];this.parentComponent=null;this.descendants=[];this.isLoading=this.hasInitialized=!1;this.isAnonymous=this.activeSession.isAnonymous();this.originalParentComponent=this.originalComponent=null;this.isAdminInternal=this.isUpdating=this.isArchiving=!1;this.metadataForm=null;this.error="";this.isComponentSloEditor=this.isEditorInternal=!1;this.updateDiffs=void 0;this.templates=[];this.isParentComponentRequired=this.commentEditsEnabled=!0;this.retentionIsValid=
!1;this.isEnableSloChecked=!0;this.enableSloLockingUi=this.activeSession.getFlag("enableSloLockingUi");this.sloLocked$=this.componentId$.pipe(ue(Boolean),yf(function(b){return a.sloApi.executor.get({url:"action/components/"+b+"/slo_edit_policy",responseConstructor:ejd}).pipe(A(J4a))}));this.getSloManagementLink=a5a};Y(Q8,Z);Q8.\u0275dir=Z.\u0275dir;
Q8.prototype.ngOnInit=function(){var a=this;this.componentId=String(this.routeParams.componentId);this.componentId$.next(String(this.componentId));this.sessionIsExternal=this.activeSession.isExternalSession();this.sessionIsInternal=this.activeSession.isInternalSession();this.subscriptions.add(sY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.loadUserAccess(this.componentId);y2d(this);this.componentHistoryUiEnabled=this.activeSession.isInternalSession();z2d(this);this.subscriptions.add(this.appEvents.customFieldsModified.subscribe(function(b){a.orderedCustomFields=
lgc(b)}));this.hasInitialized=!0;this.tabsService.componentReady$.next()};var z2d=function(a){a=[A2d(a,a.componentId),a.loadComponent(a.componentId),a.loadTemplates(a.componentId)];return Promise.all(a).then(function(){})};h=Q8.prototype;h.isAdmin=function(){return this.isAdminInternal};h.isSaving=function(){return this.isUpdating||this.isArchiving};h.isArchived=function(){return this.component?this.component.archived:!1};h.isPublic=function(){return nt(this.component)};h.isExternal=function(){return mt(this.component)};
var Mfc=function(a){var b;if(b=a.sessionIsInternal){b=a.component;var c;b=(b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel)==="INTERNAL"}return b||a.activeSession.getFlag("enableEstimatedEffortExternalUi")};Q8.prototype.isParentPublic=function(){return!(!this.parentComponent||!nt(this.parentComponent))};Q8.prototype.isParentPartner=function(){return!(!this.parentComponent||!nrb(this.parentComponent))};
var vfc=function(a){if(!a.component||!a.component.slo)return!1;var b=!!a.component.team&&a.component.team.id!=="0";return a.component.parentComponentId?!a.component.slo.inherit:b};Q8.prototype.hasUnsavedMetadataChanges=function(){return!(mm(this.component,this.originalComponent)&&mm(this.parentComponent,this.originalParentComponent))};Q8.prototype.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()};
var B2d=function(a){var b=qo();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:Bh("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},C2d=function(a){var b=qo();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:Dh([Bh('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.'),Eh("br",{}),Eh("br",{}),Bh('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.'),
Eh("br",{}),Eh("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};Q8.prototype.saveMetadata=function(){var a=this;return D2d(this)?C2d(this).then(function(b){return b?B2d(a):Promise.resolve(!1)}).then(function(b){b&&a.doSaveMetadata().then(function(){return z2d(a)})}):Promise.resolve()};
Q8.prototype.doSaveMetadata=function(){var a=this;this.isUpdating=!0;Rr(this.butterBar,"Saving changes ...",0);return E2d(this).then(function(){a.parentComponent&&(a.component.parentComponentId=a.parentComponent.componentId)}).then(function(){return F2d(a)}).then(function(){return G2d(a)}).then(function(){return H2d(a)}).then(function(){Rr(a.butterBar,"Save complete.")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.componentUpdatesApi.invalidateCache(a.componentId);
a.isUpdating=!1})};
var E2d=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)},F2d=function(a){return a.component.slo&&!mm(a.originalComponent.slo,a.component.slo)?a.componentActions.updateSlo(a.component.componentId,a.component.slo).then(function(){a.analytics.trackEvent("component",
"updateSlo");return!0}).catch(function(b){a.component.slo=a.originalComponent.slo;return Promise.reject(b)}):Promise.resolve(!1)},G2d=function(a){return a.component.team&&!mm(a.originalComponent.team,a.component.team)?a.componentActions.updateTeam(a.component.componentId,a.component.team).then(function(){a.analytics.trackEvent("component","updateTeam");return!0}).catch(function(b){a.component.team=a.originalComponent.team;return Promise.reject(b)}):Promise.resolve(!1)},H2d=function(a){return I2d(a)?
a.componentActions.update(a.component).then(function(){a.analytics.trackEvent("component","update");a.commentEditsEnabled?a.analytics.trackEvent("component","comment edits enabled","update"):a.analytics.trackEvent("component","comment edits disabled","update");return!0}):Promise.resolve(!1)},I2d=function(a){var b=nm(a.component);b.team=a.originalComponent.team;b.slo=a.originalComponent.slo;b.parentComponentId=a.originalComponent.parentComponentId;return!mm(a.originalComponent,b)},D2d=function(a){if(a.isEditorInternal){if(a.metadataForm.invalid)return a.error=
"Error: You must fill out all required fields.",!1;if(a.retentionIsValid)return a.error="",!0;a.error="Error: Required retention settings are missing or invalid.";return!1}a.error="";return!0};Q8.prototype.getComponentAccessLevel=function(){if(this.component&&this.component.accessLimit)return this.component.accessLimit.accessLevel};var A2d=function(a,b){return a.componentActions.getChildren(b).then(function(c){a.childComponents=c}).catch(function(c){a.errorHandler.errorHandler(null,c)})};
Q8.prototype.revertMetadataChanges=function(){this.updateComponentAndOriginalComponent(this.originalComponent);this.error="";this.parentComponent=nm(this.originalParentComponent);this.parentComponent$.next(this.parentComponent);this.commentEditsEnabled=this.component.commentEditState=="ENABLED"};var Pfc=function(a){a.componentActions.getUncached(a.componentId).then(function(b){b=Ut(b,a.activeSession);a.orderedCustomFields=lgc(b)})};
Q8.prototype.loadComponent=function(a){var b=this;this.isLoading=!0;return this.componentActions.getUncached(a).then(function(c){b.updateComponentAndOriginalComponent(c);b.currentName=c.name;c.parentComponentId&&b.loadParentComponent(c.parentComponentId);var d=Ut(c,b.activeSession);b.orderedCustomFields=lgc(d);b.pageTitle.setTitle("Component: "+c.name);b.archiveAction=c.archived?"Unarchive":"Archive";b.commentEditsEnabled=c.commentEditState=="ENABLED";b.component.parentComponentId||(b.isParentComponentRequired=
!1)}).catch(function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1;b.hasInitialized&&b.cdr.detectChanges()})};Q8.prototype.loadUserAccess=function(a){var b=this,c=dq("COMPONENT",a);EP(this.userAccess,"admin",c).then(function(d){b.isAdminInternal=d;return b.isAdminInternal?!0:EP(b.userAccess,"writer",c)}).then(function(d){b.isEditorInternal=d}).catch(function(d){b.errorHandler.errorHandler(null,d)})};
var y2d=function(a){EP(a.userAccess,"writer",dq("COMPONENT_SLO",a.componentId)).then(function(b){a.isComponentSloEditor=b})},Yec=function(a){var b,c=ju(a.trackerHelpers,(b=a.parentComponent)==null?void 0:b.componentPathInfo);return rs(a.activeSession)&&(!c||!c.componentPathId||c.componentPathId.length===0)},Gfc=function(a){return a.isSaving()||!a.isEditorInternal};h=Q8.prototype;h.isAccessEditDisabled=function(){return this.isSaving()||!this.isAdmin()};
h.loadParentComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){b.parentComponent=c;b.parentComponent$.next(b.parentComponent);b.originalParentComponent=nm(c);return c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};h.getRecentIssuesLink=function(){var a=this.isArchived();return zr(this.componentId,{includeArchived:a})};h.componentPermissions=function(a){return{path:"/components/"+a,fragment:this.tabsService.Tab.ACCESS}};
h.createIssue=function(){this.trackClick("createIssue");var a={};this.bLocation.setUrl(this.paths.createIssue((a.component=String(this.component.componentId),a)))};h.createChild=function(){this.bLocation.setUrl(qs.createComponent.makeHref(this.component.componentId))};h.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};
var Mec=function(a){a.butterBar.dismiss();a.retentionIsValid?a.hasUnsavedChanges()?a.butterBar.showWarning("You have unsaved changes on one or more tabs. Please save or revert these changes before "+a.archiveAction.slice(0,-1)+"ing."):(a.isArchiving=!0,Rr(a.butterBar,"Looking up subcomponents...",0),a.componentActions.getDescendants(a.component.componentId).then(function(b){a.butterBar.dismiss();a.descendants=b;SA(a.matDialogService.open(a.confirmArchiveDialog,{restoreFocus:!1})).pipe(zf(a.destroyed$)).subscribe(function(){a.archiveButton.focus()})}).catch(function(b){a.errorHandler.errorHandler(null,
b)})):a.butterBar.showWarning("Required retention settings are missing or invalid. Please set retention settings before "+a.archiveAction.slice(0,-1)+"ing.")};
Q8.prototype.getRetentionPeriod=function(a){var b=a.retentionSettings.retentionSelection;switch(b){case "BUGANIZER_DEFAULT":return"Buganizer default retention (10 years)";case "INDEFINITE_RETENTION":return"Indefinite retention";case "CUSTOM_PERIOD":var c;a=(c=a.retentionSettings.retentionPeriodDays)!=null?c:0;return BTa(a);case "UNSPECIFIED_RETENTION":return"Retention period unspecified";default:wb(b,"unexpected value "+b+"!")}};
Q8.prototype.archive=function(){var a=this;this.isArchiving=!0;Rr(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);Rr(a.butterBar,a.archiveAction+'d component "'+a.component.name+'"',4E3);a.analytics.trackEvent("component","archive");a.updateComponentAndOriginalComponent(b);a.archiveAction=b.archived?"Unarchive":"Archive";a.isArchiving=
!1}).catch(function(b){a.component.archived=!a.component.archived;Rr(a.butterBar,"Could not "+a.archiveAction.toLowerCase()+" component: "+(Pp(b)?Qp(b):b));a.isArchiving=!1})};
Q8.prototype.loadTemplates=function(a){var b=this;return this.templatesApi.query(a).then(function(c){b.templates=c.map(function(d){var e=d.name;e||(e=d.default?"(default template)":"(unnamed template)");var f=b.paths.getBaseUrl(),g={};g=b.paths.createIssue((g.component=a||void 0,g.template=d.templateId?String(d.templateId):void 0,g));return{name:e,description:d.description||"",url:f+g}})}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
Q8.prototype.setCommentEditState=function(a){this.commentEditsEnabled=a;this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};
var J2d=function(a,b){return a.componentHistoryUiEnabled?a.componentUpdatesApi.get(b).then(function(c){a.updateDiffs=c.updates.map(function(d){var e=a.componentUpdates,f=IKb(d.addMask.paths),g=IKb(d.removeMask.paths),k={author:d.author||null,timestamp:d.timestamp||null,diffs:[]},l=d.add;d=d.remove;for(var r=m(new Set([].concat(q(f),q(g)))),w=r.next();!w.done;w=r.next()){var x=w.value;if(w=QPd.get(x))if(x==="name"){var C=Qt(g,x,d.name);x=Qt(f,x,l.name);k.diffs.push(Rt(w,C,x))}else if(x==="description")C=
Qt(g,x,d.description),x=Qt(f,x,l.description),k.diffs.push(Rt(w,C,x));else if(x==="parentComponentId")C=Qt(g,x,String(d.parentComponentId)),x=Qt(f,x,String(l.parentComponentId)),k.diffs.push(Rt(w,C,x));else if(x==="isArchived")C=Qt(g,x,String(d.archived)),x=Qt(f,x,String(l.archived)),k.diffs.push(Rt(w,C,x));else if(x==="commentEditState"){var H=RPd.get(d.commentEditState);C=RPd.get(l.commentEditState);H&&C&&(H=Qt(g,x,H),x=Qt(f,x,C),k.diffs.push(Rt(w,H,x)))}else x==="defaultTemplateId"?(C=Qt(g,x,String(d.defaultTemplateId)),
x=Qt(f,x,String(l.defaultTemplateId)),k.diffs.push(Rt(w,C,x))):x==="slo"?e.sessionIsInternal&&(C=Qt(g,x,OKb(d.slo)),x=Qt(f,x,OKb(l.slo)),k.diffs.push(Rt(w,C,x))):x==="team"?e.sessionIsInternal&&(C=Qt(g,x,PKb(d.team)),x=Qt(f,x,PKb(l.team)),k.diffs.push(Rt(w,C,x))):x==="retentionSettings"?(C=Qt(g,x,MKb(d.retentionSettings)),x=Qt(f,x,MKb(l.retentionSettings)),k.diffs.push(Rt(w,C,x))):e.$log.error("Unsupported diff field "+x)}return k}).filter(function(d){return d.diffs.length})}).catch(function(c){a.errorHandler.errorHandler(null,
c)}):Promise.reject(Error())};Q8.prototype.showUpdateHistoryModal=function(){var a=this;J2d(this,this.componentId).then(function(){a.matDialogService.open(R6,{width:"600px",data:{updateDiffs:a.updateDiffs}});a.analytics.trackEvent("updateHistoryModal","open");a.analytics.trackEvent("component","viewHistory")})};Q8.prototype.onSloChange=function(a){a?this.component.slo.id=a.sloId:this.component.slo.id=void 0;a&&K2d(this)};
var rfc=function(a){var b=!!a.parentComponent,c=a.component.team.id!=="0";return a.isComponentSloEditor&&(c||b)},xfc=function(a){var b=!a.component.team||a.component.team.id==="0",c=!a.parentComponent;return a.isComponentSloEditor&&(!a.component.slo.inherit||c&&b)},bfc=function(a){var b,c,d,e;y(function(f){b=!a.component.parentComponentId;c=a.component.team.id!=="0";return(a.component.parentComponentId?!a.component.team.inherit&&a.component.team.id!=="0":a.component.team.id!=="0")||b&&c?z(f,fe(a.team$.pipe(A(function(g){a.component.slo.id=
g.slo.sloId;K2d(a)}))),0):(d=L2d(a),e=d.id,a.component.slo.id=e,K2d(a),f.jumpTo(0))})},wfc=function(a){var b=a.parentComponent||a.isParentComponentRequired;return a.component.team.id!=="0"||b?!0:!1},L2d=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}},Jfc=function(a,b){Rr(a.butterBar,"Saving effort spec...",0);
a.component&&(a.component.effortSpec=b,a.componentActions.update(a.component).then(function(c){a.updateComponentAndOriginalComponent(c);a.analytics.trackEvent("component","updateEffort");var d,e;if((d=a.component)==null?0:(e=d.effortSpec)==null?0:e.name){var f;Rr(a.butterBar,((f=a.component.effortSpec)==null?void 0:f.name)+" saved")}else Rr(a.butterBar,"Estimated Effort saved")}).catch(function(c){a.errorHandler.errorHandler(null,c)}))};
Q8.prototype.updateComponentAndOriginalComponent=function(a){this.component=nm(a);this.component$.next(this.component);this.originalComponent=nm(a);var b;this.componentTeam$.next((b=this.component.team)!=null?b:null);K2d(this)};Q8.prototype.back=function(){K2(this.appHistory)};var K2d=function(a){var b;((b=a.component)==null?0:b.slo)?a.isEnableSloChecked=a.component.slo.id!==void 0:a.isEnableSloChecked=!1};Q8.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(Q8)))(b||Q8)}}();
Q8.\u0275cmp=D({type:Q8,selectors:[["manage-component-page"]],viewQuery:function(a,b){a&1&&(hg(v2d,5),hg(w2d,5),hg(x2d,5));if(a&2){var c;lg(c=mg())&&(b.confirmArchiveDialog=c.first);lg(c=mg())&&(b.archiveButton=c.first);lg(c=mg())&&(b.metadataForm=c.first)}},standalone:!1,features:[Gg([bQ]),Ef],decls:3,vars:3,consts:[["archiveDialog",""],["archiveButton",""],["basic",""],["customFields",""],["fieldOrdering",""],["fieldVisibility",""],["templatesList",""],["access",""],["metadataForm",""],[1,"bv2-limited-issue-view"],
[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"],["cdkScrollable","",1,"bv2-view"],[1,"bv2-view-loading"],["mat-button","",3,"routerLinkObj"],["format","flat",3,"disabled"],["format","flat",3,"tooltip","disabled"],["format","flat",3,"onAction","disabled"],["format","flat",3,"onAction","tooltip","disabled"],[1,"edit-resource-header"],[1,"resource-archived"],[1,"keep-focus-ring",
"margin-s-right",3,"click","routerLinkObj"],[3,"accessLevel"],[3,"trackerId"],[1,"component-hierarchy-container"],["componentPathsLinkTo","settings",3,"componentPathInfo","isArchived","label"],[1,"float-clear"],["gmat-tabs","",1,"bv2-tab-bar",3,"selectedIndexChange","selectedIndex"],["label","Basic Information",3,"id"],[4,"ngTemplateOutlet"],[3,"id","label"],["label","Field Ordering",3,"id"],["label","Field Visibility",3,"id"],["label","Templates",3,"id"],["label","Access Control",3,"id"],[1,"edit-resource-panel"],
["name","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,"ngModelChange","ngModel","disabled"],["aria-label","Description",1,"edit-field"],["tabindex","0",1,"field-label-with-help","keep-focus-ring"],["aria-describedby","component-description-bubble","for","component-description",1,"help-label"],[1,"help-container"],["id","component-description-bubble",1,
"help-bubble","jfk-bubble"],[1,"jfk-bubble-arrow","jfk-bubble-arrowleft"],[1,"jfk-bubble-arrowimplbefore"],[1,"jfk-bubble-arrowimplafter"],["name","description","aria-describedby","component-description-bubble","id","component-description",3,"ngModelChange","ngModel","disabled"],["tabindex","0","aria-label","Parent component",1,"edit-field"],["role","region","aria-label","Editable Comments",1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],["ariaLabelledby","editable-comments-label permission-toggle-help",
3,"change","checked","disabled"],["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",1,"keep-underline","keep-focus-ring",3,"href"],["role","region","aria-label","Retention Settings",1,"edit-field",3,"bv2-edit-resource-readonly"],["role","region","tabindex","0","aria-label","Team Configuration",1,"edit-field",3,"bv2-edit-resource-readonly"],["role","region",
"tabindex","0","aria-label","SLO Configuration",1,"edit-field",3,"bv2-edit-resource-readonly"],["name","spam-protection-enable","labelPosition","before",1,"spam-protection-enable",3,"checked","disabled"],[1,"edit-button-row"],[1,"edit-button-group"],["format","hairline","title","View history for 'Basic Information'"],[1,"edit-field","bv2-edit-resource-readonly"],[3,"children"],["aria-describedby","edit-parent-help-bubble","for","component-parent-id",1,"help-label"],["id","edit-parent-help-bubble",
1,"help-bubble","jfk-bubble"],["id","component-parent-id",3,"selectedComponentChange","selectedComponent","placeholder","isRequired"],["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,"modelChange","validChange","issueRetentionDisabled",
"isExternal","componentPathInfo","componentId","initialModel"],["role","region","tabindex","0","aria-label","Team Configuration",1,"edit-field"],["for","team-picker"],["id","team-picker"],[3,"modelChange","isAdmin","isTopLevel","parentModel","useInternalLink","anchorTarget","model"],["role","region","tabindex","0","aria-label","SLO Configuration",1,"edit-field"],["aria-describedby","edit-slo-help-bubble",1,"help-label"],["id","edit-slo-help-bubble",1,"help-bubble","jfk-bubble"],[1,"metadata","muted"],
[1,"slo-policy-link"],[1,"slo-policy-source-link"],[1,"slo-admins-link"],[1,"lock-state"],[1,"edit-field","less-margin"],[3,"routerLinkObj"],[1,"keep-focus-ring","slo-inheritance-link",3,"routerLinkObj"],["mat-stroked-button","","type","button","aria-label","Display the full SLO inheritance path below",1,"slo-inheritance-path","small",3,"click"],[1,"slo-breadcrumbs"],[3,"componentPath","teamPath"],["target","_blank",1,"keep-focus-ring",3,"routerLinkObj"],["svgIcon","lock-outline"],["svgIcon","lock-open"],
["gmat-checkbox","",1,"slo-override",3,"change","checked","disabled"],[1,"edit-field","component-slo-justification-text"],["name","slo-enable","labelPosition","before",1,"slo-enable",3,"ngModelChange","change","ngModel","disabled"],[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,"onSloSelect","bv2Disabled","boundId","bv2Placeholder"],["mat-icon-button","","aria-label",
"Go to SLO management page","matTooltip","Go to SLO management page.",1,"small",3,"routerLinkObj","target"],["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,"ngModelChange","ngModel","disabled"],["svgIcon","pop-out",1,"icon-s"],["name","spam-protection-enable","labelPosition","before",1,"spam-protection-enable",3,"change","checked","disabled"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction","disabled"],["format","hairline","title","View history for 'Basic Information'",3,"onAction"],[3,"onVisit","children"],["aria-label","Standard Fields",1,"heading-m","padded-x","margin-top"],[3,"effortSpec","parentEffortSpec",
"disabled"],["aria-label","Custom Fields",1,"heading-m","padded-x","margin-top"],[3,"editMode","isSaving","component","parentComponent"],[3,"updateComponent","effortSpec","parentEffortSpec","disabled"],[1,"component-banner","implicit-access-banner"],["aria-label","Learn more about field ordering","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"onReload","fields","componentId","fieldOrdering","isAdmin"],[3,"isAdmin","componentPathInfo"],[3,"componentId","supportCustomFields"],
[1,"component-field"],[3,"href"],[3,"onTabChange","tabIndex"],["mat-dialog-title",""],[1,"b-archive-component-list"],["type","button","mat-button","","mat-dialog-close","","aria-label","Click to close the dialog without archiving the component",3,"click"],["type","button","mat-flat-button","","mat-dialog-close","","aria-label","Click to archive the component","color","warn",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"],["aria-label","Learn more on how to recursively unarchive subcomponents","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"component"]],template:function(a,b){a&1&&(F(0,ggc,11,3),T(1,"async"),Kf(2,hgc,2,1,"div",9));a&2&&G(U(1,1,b.showTrackerRedirect$)?2:0)},dependencies:[MU,Sx,Jy,VO,RV,TV,XPd,O3,qYd,H6,V3,L4,xYd,W1d,nE,xj,fE,gE,yE,mE,kE,sT,kB,gB,iB,kL,hI,VA,XA,ZA,
YA,wz,OU,vT,BL,wL,xL,vK,nA,G5,P8,$1d,E5,cU,dW,ZV,W7,Tx,Vx],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{width:500px}b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}div.edit-field.less-margin[_ngcontent-%COMP%]{margin:8px 0}div.slo-admins-link[_ngcontent-%COMP%]{margin-top:3px}.metadata[_ngcontent-%COMP%]{margin:10px 0}.metadata[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:16px;height:16px}.lock-state[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.component-slo-id-select[_ngcontent-%COMP%], .component-slo-justification-text[_ngcontent-%COMP%], .indented[_ngcontent-%COMP%], div.slo-breadcrumbs[_ngcontent-%COMP%]{margin-left:24px}.component-slo-id-select[_ngcontent-%COMP%], mat-slide-toggle.slo-enable[_ngcontent-%COMP%]{display:inline-block}button.slo-inheritance-path[_ngcontent-%COMP%]{margin-left:30px}div.slo-breadcrumbs[_ngcontent-%COMP%]{padding:4px}.field-label-with-help[_ngcontent-%COMP%]:focus   .help-bubble[_ngcontent-%COMP%]{left:8px}.field-label-with-help[_ngcontent-%COMP%]:focus   .help-bubble-right[_ngcontent-%COMP%]{left:-120px}.mat-mdc-button[_ngcontent-%COMP%]:focus, .mat-mdc-button[_ngcontent-%COMP%]:focus-visible, .mat-mdc-button[_ngcontent-%COMP%]:focus-within, .mat-mdc-flat-button.mat-primary[_ngcontent-%COMP%]:focus, .mat-mdc-flat-button.mat-primary[_ngcontent-%COMP%]:focus-visible, .mat-mdc-flat-button.mat-primary[_ngcontent-%COMP%]:focus-within{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}[_nghost-%COMP%]     .permission-toggle-checkbox mat-checkbox{top:-5px}[_nghost-%COMP%]     .permission-toggle-checkbox mat-checkbox input{width:auto}  .gmat-mdc-button.mat-mdc-button:not([disabled]):focus .mat-button-focus-overlay,   .gmat-mdc-button.mat-mdc-button:not([disabled]):focus-visible .mat-button-focus-overlay,   .gmat-mdc-button.mat-mdc-button:not([disabled]):focus-within .mat-button-focus-overlay,   .gmat-mdc-button.mat-mdc-outlined-button:not([disabled]):focus .mat-button-focus-overlay,   .gmat-mdc-button.mat-mdc-outlined-button:not([disabled]):focus-visible .mat-button-focus-overlay,   .gmat-mdc-button.mat-mdc-outlined-button:not([disabled]):focus-within .mat-button-focus-overlay{opacity:.06}\n/*# sourceMappingURL=manage_component.css.map */"]});var M2d=["deleteTriageDialog"],mhc=function(a){return{value:a}},Kgc=function(a){return[a]},Lgc=function(){return[]},N2d={BASIC:"basic",SLO:"slo",MAPPINGS:"componentMapping",TRIAGE:"triage",ACCESS:"accessControl"},R8=function(){Z.call(this);var a=this;this.activeSession=p(uu);this.accessPolicyApi=p(KO);this.appHistory=p(J2);this.butterBar=p(UN);this.checkBeforeExit=p(rY);this.componentActions=p(VV);this.errorHandler=p(pO);this.location=p(bU);this.matDialogService=p(UA);this.pageTitle=p(n2);this.routeParams=
p(wS);this.teamsService=p(OQ);this.userAccess=p(DP);this.starredTeamsService=p(VR);this.sloApi=p(IQ);this.sloService=p(JQ);this.triageViewConfigDialogService=p(d1);this.destroyRef=p(Ce);this.tableColumns=["starred","name","actions"];this.originalSloLock=!1;this.canEditSloLock=!0;this.sloJustification$=new Mj("");this.error="";this.justificationRequiredText="Justification is required to override the org SLO.";this.selectedTabIndex=0;this.teamId=this.routeParams.teamId;this.team$=new uf(1);this.teamSlo$=
this.team$.pipe(A(function(b){return b.slo}));this.isEscalationOwnerValid=!1;this.escalationOwnerInvalidErrorMessage="";this.escalationOwnerEmail$=new Mj("");this.escalationOwner$=new Mj("");this.escalationOwnerUserValidators={escalationOwnerNotUser:function(b){if(b){b=m(b);for(var c=b.next();!c.done;c=b.next())if(!c.value.startsWith("USER:"))return!1}return!0}};this.escalationOwnerGooglerValidators={escalationOwnerNotGoogler:function(b){if(b){b=m(b);for(var c=b.next();!c.done;c=b.next())if(!c.value.startsWith("UNRESTRICTED_GOOGLER:"))return!1}return!0}};
this.starredTriageViews$=this.starredTeamsService.starredTriageViews$;this.teamAdmins$=Vd(this.accessPolicyApi.get("TEAM",this.teamId)).pipe(A(function(b){return b.admins.filter(aRa).map(es)}));this.teamLeads$=this.team$.pipe(A(function(b){return b.members.filter(function(c){return c.isLead}).map(function(c){var d,e;return"USER:"+((e=(d=c.user)==null?void 0:d.emailAddress)!=null?e:"")})}));this.adminsAndLeads$=ie([this.teamAdmins$,this.teamLeads$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=
c.next().value;var d=new Set(b);c=c.filter(function(e){return!d.has(e)});return[].concat(q(b),q(c))}));this.originalSloDelegates$=new Mj([]);this.sloDelegates$=ne(function(){return a.accessPolicyApi.get("TEAM_SLO",a.teamId)}).pipe(A(function(b){return b.admins.map(es)}));this.sloDelegates=[];this.associatedComponents$=Vd(this.componentActions.search("overrideteamid:"+this.teamId));this.childTeams$=this.teamsService.getChildTeams([this.teamId]).pipe(A(function(b){return b.values().next().value}));
this.teamPath$=this.team$.pipe(A(function(b){var c=b.pathNames;return b.pathIds.map(function(d,e){return{id:d,name:c[e]}})}));this.isRootTeam$=this.teamPath$.pipe(A(function(b){return b.length<=1?!0:!1}));this.parentTeam$=ie([this.isRootTeam$,this.teamPath$]).pipe(yf(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b?ce(null):a.teamsService.getTeam(c[c.length-2].id)}));this.parentTeam=null;this.inheritedSlo$=this.parentTeam$.pipe(yf(function(b){var c=b==null?void 0:b.slo.sloId;return c&&
c!=="0"?a.sloService.get(c).then(function(d){return{id:c,link:a5a(c),slo:d}}):ce({id:"0"})}));this.sloPolicySource$=ie([this.parentTeam$,this.teamPath$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d=b==null?void 0:b.slo.sourceTeamId;b=c.find(function(e){return e.id===d});return d&&b?{name:b.name,link:{path:"/teams/"+d+"/edit",fragment:"slo"}}:null}));this.sloLock$=this.sloApi.executor.get({url:"action/teams/"+this.teamId+"/slo_edit_policy",responseConstructor:fjd}).pipe(A(I4a));
this.Tab=N2d;this.enableSloLockingUi=this.activeSession.getFlag("enableSloLockingUi");this.enableTeamScope=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();this.enableTeamAdmin=this.activeSession.getFlag("enableTeamAdmin")&&this.activeSession.isInternalSession();this.enableSloDelegatesUi=this.activeSession.getFlag("enableSloDelegatesUi")&&this.activeSession.isInternalSession();this.isSloInheritEnabled$=new Mj(!0);this.isOwnerInheritEnabled$=new Mj(!0);this.sloId$=
new Mj("0");this.enableSloCheckedInternal=!1;this.sloLocked$=new Mj(!1);this.hasSloReadAccess$=this.sloId$.pipe(yf(function(b){return EP(a.userAccess,"reader","slos/"+b)}),xf(!1));this.sloPickerLink$=ie([this.sloId$,this.hasSloReadAccess$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b&&Number(b)>0&&c?a5a(b):null}));this.hasUnsavedChanges$=ie([this.team$,this.sloId$,this.isSloInheritEnabled$,this.isOwnerInheritEnabled$,this.sloLocked$,this.sloJustification$,this.escalationOwnerEmail$]).pipe(A(function(b){var c=
m(b);var d=c.next().value;b=c.next().value;var e=c.next().value;var f=c.next().value;var g=c.next().value;var k=c.next().value;c=c.next().value;var l=d.slo,r,w;d=(r=d.extra)==null?void 0:(w=r.escalationOwnerOverride)==null?void 0:w.emailAddress;var x;return l.inherit!==e||l.sloId!==b||g!==a.originalSloLock||l.comment!==k||d!==((x=f?void 0:{emailAddress:c})==null?void 0:x.emailAddress)}));this.hasUnsavedChanges=!1;this.teamExperiments={id:this.teamId,triage:[{id:0}],playbooks:[]};this.hasTeamEditAccess=
this.hasSloEditAccess=!1;this.starInProgress={};this.team$.pipe(Tj(this.destroyRef)).subscribe(function(b){a.pageTitle.setTitle("Team: "+b.name)});EP(this.userAccess,"writer","teams/"+this.teamId+"/slo").then(function(b){a.hasSloEditAccess=b});EP(this.userAccess,"writer","teams/"+this.teamId).then(function(b){a.hasTeamEditAccess=b});this.hasUnsavedChanges$.pipe(Tj(this.destroyRef)).subscribe(function(b){a.hasUnsavedChanges=b});this.subscriptions.add(sY(this.checkBeforeExit,function(){return a.hasUnsavedChanges},
!1))};Y(R8,Z);R8.\u0275dir=Z.\u0275dir;
R8.prototype.ngOnInit=function(){var a=this,b,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return b=a.location.hash(),b==="basic"?a.selectedTabIndex=0:b==="slo"?a.selectedTabIndex=1:b==="componentMapping"?a.selectedTabIndex=2:b==="triage"&&a.enableTeamScope?a.selectedTabIndex=3:b==="accessControl"&&a.enableSloDelegatesUi&&(a.selectedTabIndex=4),Wd(k,2),z(k,fe(a.teamsService.get(a.teamId)),4);case 4:c=k.yieldResult;dt(k,3);break;case 2:return $d(k),a.butterBar.showWarning("Unable to fetch team ID '"+
a.teamId+"'"),k.return();case 3:a.team$.next(c);Ogc(a);if(!a.enableSloDelegatesUi){k.jumpTo(5);break}d=a.originalSloDelegates$;e=d.next;return z(k,fe(a.sloDelegates$),6);case 6:e.call(d,k.yieldResult),a.sloDelegates=a.originalSloDelegates$.getValue();case 5:return z(k,fe(a.parentTeam$),7);case 7:a.parentTeam=k.yieldResult||null;if(!a.enableTeamScope){k.jumpTo(0);break}return z(k,fe(xjd(a.teamsService,a.teamId)).catch(function(){}),9);case 9:f=k.yieldResult,a.teamExperiments=(g=f)!=null?g:{id:a.teamId,
triage:[{id:0}],playbooks:[]},ae(k)}})};R8.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;this.location.hash(e,!0)};R8.prototype.onSloChange=function(a){a&&(this.sloId=a.sloId)};
var Ngc=function(a,b){var c,d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:if(!a.validate())return r.return();Rr(a.butterBar,"Saving changes...",0);Wd(r,2);if(((c=b.extra)==null?void 0:(d=c.escalationOwner)==null?void 0:d.emailAddress)===a.escalationOwnerEmail){r.jumpTo(4);break}var w,x;var C=a.teamsService.updateTeam(Object.assign({},b,{extra:{escalationOwner:{emailAddress:a.escalationOwnerEmail},defaultEscalationOwner:{emailAddress:(w=b.extra)==null?void 0:(x=w.defaultEscalationOwner)==
null?void 0:x.emailAddress},escalationOwnerOverride:a.isOwnerInheritEnabled?void 0:{emailAddress:a.escalationOwnerEmail}}}));return z(r,fe(C),5);case 5:e=r.yieldResult,a.team$.next(e);case 4:if(a.sloLocked===a.originalSloLock){r.jumpTo(6);break}C=a.sloApi;w=a.teamId;x=a.sloLocked;var H=new cjd;x=Hm(H,2,x?1:2).setTeamId(Number(w));C=C.executor.post({url:"action/teams/"+w+"/slo_edit_policy",responseConstructor:ijd,body:x}).pipe(A(I4a));return z(r,fe(C),7);case 7:f=r.yieldResult,a.originalSloLock=f;
case 6:g=b.slo;if(g.inherit===a.isSloInheritEnabled&&g.sloId===a.sloId&&a.originalSloLock===a.sloLocked&&g.comment===a.sloJustification){r.jumpTo(8);break}x={sloId:a.sloId,inherit:a.isSloInheritEnabled,comment:a.isSloInheritEnabled?"":a.sloJustification$.getValue(),sourceTeamId:"0"};C=a.teamsService;w=a.teamId;x=(new vjd).setIt(kZa(x));C=C.executor.post({url:"/action/teams/"+w+"/update_slo",body:x,responseConstructor:LQ}).pipe(A(Q4a));return z(r,fe(C),9);case 9:k=r.yieldResult,a.team$.next(k);case 8:Rr(a.butterBar,
"Save complete.");dt(r,0);break;case 2:l=$d(r),rO(a.errorHandler,l),ae(r)}})},O2d=function(a){var b,c;y(function(d){if(d.nextAddress==1)return Rr(a.butterBar,"Saving changes...",0),z(d,fe(yjd(a.teamsService,a.teamExperiments)),2);b=d.yieldResult;Rr(a.butterBar,"Save complete.");a.teamExperiments=(c=b)!=null?c:{id:a.teamId,triage:[{id:0}],playbooks:[]};ae(d)})},ihc=function(a){var b,c,d;return y(function(e){if(e.nextAddress==1){try{b=ls(js()),b.admins=is(a.sloDelegates)}catch(f){return c="An unknown problem occurred",
f instanceof Error&&(c=f.message),a.butterBar.showWarning(c),e.return()}Rr(a.butterBar,"Saving changes...",0);Wd(e,2);return z(e,a.accessPolicyApi.update("TEAM_SLO",a.teamId,b).then(function(){Rr(a.butterBar,"Save complete.");a.originalSloDelegates$.next(a.sloDelegates)}),4)}if(e.nextAddress!=2)return dt(e,0);d=$d(e);a.butterBar.showWarning(Qp(d));return e.return()})},jhc=function(a){return y(function(b){a.sloDelegates=a.originalSloDelegates$.getValue();ae(b)})};
R8.prototype.validate=function(){if(!this.isSloInheritEnabled&&this.sloJustification$.getValue()==="")return this.error="Justification is required",!1;if(!this.isEscalationOwnerValid)return this.error="Please provide a valid owner",!1;this.error="";return!0};R8.prototype.isTriageStarred=function(a,b,c){return c.some(function(d){return d.triageId===a.toString()&&d.teamId===b})};
var Igc=function(a){var b;y(function(c){if(c.nextAddress==1)return z(c,a.getDefaultEscalationOwner(),2);b=c.yieldResult;a.escalationOwner=b?"USER:"+b:"";ae(c)})},P2d=function(a){var b,c,d,e,f,g,k,l,r,w,x,C;y(function(H){if(H.nextAddress==1)return z(H,fe(a.team$),2);b=H.yieldResult;c=b.extra;f=(d=c)==null?void 0:(e=d.escalationOwner)==null?void 0:e.emailAddress;l=(g=c)==null?void 0:(k=g.escalationOwnerOverride)==null?void 0:k.emailAddress;w=(r=l)!=null?r:f;a.escalationOwner=w?"USER:"+w:"";a.isOwnerInheritEnabled=
((x=c)==null?void 0:x.escalationOwnerOverride)===void 0;a.isOwnerInheritEnabled||l===""||f===l||(a.escalationOwnerInvalidErrorMessage="Selected owner is invalid, falling back to default owner: "+((C=f)!=null?C:""));ae(H)})};
R8.prototype.getDefaultEscalationOwner=function(){var a=this,b,c,d,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1)return z(w,fe(a.team$),2);if(w.nextAddress!=3)return b=w.yieldResult,(e=(c=b.extra)==null?void 0:(d=c.defaultEscalationOwner)==null?void 0:d.emailAddress)?w.return(e):z(w,fe(a.parentTeam$),3);f=w.yieldResult;return w.return((r=(g=f)==null?void 0:(k=g.extra)==null?void 0:(l=k.escalationOwner)==null?void 0:l.emailAddress)!=null?r:"")})};
var Q2d=function(a){fe(a.teamSlo$).then(function(b){a.sloId=b.sloId;a.isSloInheritEnabled=b.inherit;a.sloJustification$.next(b.comment)})},R2d=function(a){fe(a.sloLock$).then(function(b){a.originalSloLock=b;a.sloLocked=b})},Ogc=function(a){a.error="";P2d(a);Q2d(a);a.enableSloLockingUi&&R2d(a)};R8.prototype.back=function(){K2(this.appHistory)};R8.prototype.getTriageLink=function(a,b){return qs.viewTriage.makeHref(b,a)};
R8.prototype.toggleStar=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1){d=a+":"+b;if(c.starInProgress[d])return e.jumpTo(0);c.starInProgress[d]=!0;return z(e,Gld(c.starredTeamsService,a.toString(),b),3)}c.starInProgress[d]=!1;ae(e)})};
var bhc=function(a,b,c){var d,e,f,g;return y(function(k){if(k.nextAddress==1){d=a.teamExperiments.triage.find(function(l){return l.id===b});if(!d)return k.return();e={teamExperiments:a.teamExperiments,teamName:c.name,triage:d};return z(k,fe(ce(a.triageViewConfigDialogService.show(e))),2)}if(k.nextAddress!=3)return(f=k.yieldResult)?z(k,fe(xjd(a.teamsService,a.teamId)),3):k.return();if(g=k.yieldResult)a.teamExperiments=g;ae(k)})},fhc=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return c=
{teamExperiments:a.teamExperiments,teamName:b.name},z(f,fe(ce(a.triageViewConfigDialogService.show(c))),2);if(f.nextAddress!=3)return(d=f.yieldResult)?z(f,fe(xjd(a.teamsService,a.teamId)),3):f.return();if(e=f.yieldResult)a.teamExperiments=e;ae(f)})},S2d=function(a,b){var c=a.teamExperiments.triage.findIndex(function(d){return d.id===b});c!==-1&&(a.teamExperiments.triage.splice(c,1),O2d(a))},$gc=function(a,b){SA(a.matDialogService.open(a.deleteTriageDialog,{data:b})).pipe(Tj(a.destroyRef)).subscribe(function(c){c&&
S2d(a,b.id)})};
da.Object.defineProperties(R8.prototype,{sloJustification:{configurable:!0,enumerable:!0,get:function(){return this.sloJustification$.getValue()}},escalationOwnerEmail:{configurable:!0,enumerable:!0,get:function(){return this.escalationOwnerEmail$.getValue()}},escalationOwner:{configurable:!0,enumerable:!0,set:function(a){a!==this.escalationOwner$.getValue()&&(this.escalationOwner$.next(a),this.escalationOwnerEmail$.next(a?a.split(":")[1]:""))},get:function(){return this.escalationOwner$.getValue()}},isSloInheritEnabled:{configurable:!0,
enumerable:!0,set:function(a){a!==this.isSloInheritEnabled$.getValue()&&this.isSloInheritEnabled$.next(a)},get:function(){return this.isSloInheritEnabled$.getValue()}},isOwnerInheritEnabled:{configurable:!0,enumerable:!0,set:function(a){a!==this.isOwnerInheritEnabled$.getValue()&&this.isOwnerInheritEnabled$.next(a)},get:function(){return this.isOwnerInheritEnabled$.getValue()}},sloId:{configurable:!0,enumerable:!0,set:function(a){a!==this.sloId$.getValue()&&(this.sloId$.next(a),this.enableSloChecked=
a!=="0")},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()}}});R8.\u0275fac=function(a){return new (a||R8)};
R8.\u0275cmp=D({type:R8,selectors:[["manage-team-page"]],viewQuery:function(a,b){a&1&&(hg(M2d,5),hg(wL,5,Hd));if(a&2){var c;lg(c=mg())&&(b.deleteTriageDialog=c.first);lg(c=mg())&&(b.tabs=c)}},standalone:!1,features:[Ef],decls:10,vars:3,consts:[["deleteTriageDialog",""],[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button","","aria-label","Go back","color","primary","matTooltip","Go back",1,"large",3,"click"],["svgIcon","arrow-backward",1,"icon-m"],["cdkScrollable",
"",1,"bv2-view"],[1,"edit-resource-header"],["target","_blank",3,"href"],["svgIcon","pop-out",1,"icon-s"],[1,"team-hierarchy-container"],["gmat-tabs","","mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["label","Basic Information",3,"id"],[1,"edit-resource-panel"],[1,"edit-field"],[1,"field-label"],[1,"edit-field-header"],[1,"description"],[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"],[3,"users"],["label","Team SLO",3,"id"],["id","edit-slo-help-bubble",1,"help-bubble","jfk-bubble"],[1,"metadata","muted"],[1,"slo-policy-link"],[1,"slo-policy-source-link"],[1,"slo-inheritance-link",3,"routerLinkObj"],[1,"lock-state"],[3,"error"],[1,"edit-button-row"],["label","Component mapping",3,"id"],["label","Triage",3,"id"],["label","Access Control",3,"id"],[3,"teamPath"],[3,"routerLink"],[3,"routerLinkObj"],["svgIcon","lock-outline"],
["svgIcon","lock-open"],[1,"edit-field","less-margin"],["gmat-checkbox","",1,"override-slo",3,"change","disabled","checked"],[1,"edit-field","slo-justification"],["name","slo-enable","labelPosition","before",1,"slo-enable",3,"ngModelChange","change","ngModel","disabled"],[1,"team-slo-id-select",3,"onSloSelect","boundId","bv2Disabled","bv2Placeholder"],["mat-icon-button","","matTooltip","Go to SLO management page",1,"small","slo-link",3,"routerLinkObj","target"],["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,"ngModelChange","ngModel","disabled"],["gmat-checkbox","",1,"slo-lock",3,"change","checked","disabled"],["idForInputBox","team-owner","ariaLabel","Escalation owner email",3,"usersChange","isValid","users","customValidators","detailedUserValidators","maxUserAllowed"],[1,"owner-invalid-error-message"],["gmat-checkbox","",1,"override-owner",
3,"change","checked","disabled"],[1,"edit-button-group"],["type","button","gmat-mdc-button","","mat-flat-button","","color","primary",3,"click","disabled"],["type","button","gmat-mdc-button","","mat-stroked-button","","color","primary",3,"click","disabled"],["mat-table","",1,"full-width",3,"dataSource"],["matColumnDef","starred"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","","class","triage-name",4,"matCellDef"],["matColumnDef","actions"],
["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["type","button","mat-button","","color","primary",3,"click","disabled"],["mat-header-cell",""],[1,"a11y-only"],["mat-cell",""],["tabindex","-1",3,"starClicked","starred","starMessage","unStarMessage"],["mat-cell","",1,"triage-name"],[1,"hover-link",3,"href"],[1,"flex-kids-x"],["type","button","aria-label","Edit","mat-icon-button","",3,"click","disabled"],["svgIcon","edit-outline"],[1,"space-placeholder"],["type",
"button","mat-icon-button","","aria-label","Remove",3,"disabled"],["type","button","mat-icon-button","","aria-label","Remove",3,"click","disabled"],["svgIcon","delete"],["mat-header-row",""],["mat-row",""],["idForInputBox","Users who can manage SLO associations on teams and associated components","ariaLabel","SLO delegates",3,"usersChange","users","includeAliases","includeViewAliases"],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"mat-dialog-close"],
["type","button","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4);N("click",function(){u(c);return v(b.back())});M(4,"mat-icon",5);L()()()();K(5,"div",6);F(6,nhc,97,45);T(7,"async");L();E(8,ohc,7,3,"ng-template",null,0,Mg)}if(a&2){var d;B(6);G((d=U(7,1,b.team$))?6:-1,d)}},dependencies:[Jy,hF,VO,L4,xj,fE,yE,mE,kB,gB,iB,kL,hI,VA,ZA,YA,UW,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,BL,wL,xL,
vK,nA,wz,OU,vT,HW,E5,CY,y5,Tx],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0px}.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0px}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.description[_ngcontent-%COMP%]{white-space:pre-wrap}button[_ngcontent-%COMP%]{height:32px;line-height:32px}button.mat-mdc-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}.space-placeholder[_ngcontent-%COMP%]{width:40px}.team-slo-id-select[_ngcontent-%COMP%], mat-slide-toggle.slo-enable[_ngcontent-%COMP%]{display:inline-block}.triage-name[_ngcontent-%COMP%]{width:100%}.owner-invalid-error-message[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad);font-size:.8125rem;line-height:18px;margin:0 0 1em;padding:9px 0}/*# sourceMappingURL=manage_team.css.map */"]});var T2d=["content"],U2d=["task_input"],vhc=function(a,b){return b.id},V2d=new RegExp(/b-qa\/(\d+)|b-qa.corp.google.com\/issues\/(\d+)/,"i"),W2d=new RegExp(/b\/(\d+)|b.corp.google.com\/issues\/(\d+)|buganizer.corp.google.com\/issues\/(\d+)|b-nightly\/(\d+)|b-nightly.corp.google.com\/issues\/(\d+)|buganizer-nightly.corp.google.com\/issues\/(\d+)/,"i"),X2d=new RegExp(/cl\/(\d+)|cr\/(\d+)|critique-ng.*.corp.google.com\/cl\/(\d+)|critique-legacy.corp.google.com\/.*review\/(\d+)|critique.corp.google.com\/.*review\/(\d+)/,
"i"),Y2d=new RegExp(/docs.google.com\/(?:document|spreadsheets|presentation)\/d\/([^\/]+)|drive.google.com\/file\/d\/([^\/]+)/,"i"),Z2d=new RegExp(/([^\/]+)-review.staging-git.corp.google.com\/c\/(.+)\/\+\/(\d+)|([^\/]+)-review.git.corp.google.com\/c\/(.+)\/\+\/(\d+)/,"i"),$2d=new RegExp(/irm\/(\w+)|irm\.corp\.google\.com\/incidents\/(\w+)/,"i"),S8=function(){Z.call(this);var a=this;this.destroyRef=p(Ce);this.window=p(lR);this.activeSession=p(uu);this.errorHandler=p(pO);this.butterBar=p(UN);this.focusEscapeNotifierFactory=
p(iV);this.tasksService=p(zQ);this.analytics=p(eQ);this.isInternalSession=this.activeSession.isInternalSession();this.cancelClicked=new aQ;this.saveClicked=new aQ;this.focusEscaped=new aQ;this.addTasksForm=new lE("",[vj,function(b){var c;(c=b.value==="")||(b=b.value,c=(xs(a.activeSession)?W2d:V2d).test(b)||X2d.test(b)||Y2d.test(b)||Z2d.test(b)||$2d.test(b)||a.dynamicBuganizerUrlPattern.test(b));c?(a.validationErrorMessage="",b=null):(a.validationErrorMessage="Unsupported link. Task ID could not be extracted from URL.",
b={unsupportedUrl:a.validationErrorMessage});return b}]);this.gtaskListIds$=this.isInternalSession?Nid(this.tasksService).pipe(Tj(this.destroyRef),gf(function(b){console.error("Error fetching task list:",b);return ce([])})):ce([]);this.saving=!1;this.validationErrorMessage="";this.fb=p(CE);this.gTaskForm=this.fb.group({title:["",vj],details:[""],date:[null],taskListId:["",vj]});this.urlPlaceholder="ex: "+this.window.location.origin+"/issues/123456";this.dynamicBuganizerUrlPattern=new RegExp(Yr(this.window.location.hostname)+
"\\/(?:issues\\/)?(\\d+)","i")};Y(S8,Z);S8.\u0275dir=Z.\u0275dir;S8.prototype.ngAfterViewInit=function(){var a=this;this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(zf(this.destroyed$)).subscribe(function(b){if(b===0){var c;(c=a.focusEscapeNotifier)==null||mCc(c)}else{var d;(d=a.focusEscapeNotifier)==null||Sy(d)}});this.analytics.trackEvent("taskDialog","open","addTaskDialog")};
S8.prototype.saveChanges=function(){var a=this;this.saving=!0;this.analytics.trackEvent("manualSignal","add","dialog");var b=this.parseUrl(this.addTasksForm.value),c=a3d(this,this.addTasksForm.value)?3E3:0;Hid(this.tasksService,[b],!0).pipe(mf(c)).subscribe(function(){a.saving=!1;a.saveClicked.emit()},function(d){a.saving=!1;a.butterBar.showWarning("Failed to trigger alert on task: "+b);a.errorHandler.errorHandler(null,d)})};
var a3d=function(a,b){return a.activeSession.isInternalSession()&&(xs(a.activeSession)?W2d:V2d).test(b)||a.dynamicBuganizerUrlPattern.test(b)?!0:!1};
S8.prototype.parseUrl=function(a){if(this.activeSession.isInternalSession()){var b=xs(this.activeSession)?W2d:V2d;if(b.test(a))return"b/"+a.match(b).slice(1).find(function(c){return!!c})}if(X2d.test(a))return"cl/"+a.match(X2d).slice(1).find(function(c){return!!c});if(Y2d.test(a))return"drive/"+a.match(Y2d).slice(1).find(function(c){return!!c});if(Z2d.test(a))return a=a.match(Z2d),a[1]?"gerrit/"+a[1]+"."+a[2]+"~"+a[3]:"gerrit/"+a[4]+"."+a[5]+"~"+a[6];if($2d.test(a))return"irm/"+a.match($2d).slice(1).find(function(c){return!!c});
if(a3d(this,a)&&(a=a.match(this.dynamicBuganizerUrlPattern),a!=null))return"b/"+a.slice(1).find(function(c){return!!c});throw Error("xg");};
S8.prototype.saveGTask=function(a){var b=this;this.saving=!0;this.tasksService.saveGTask(a).pipe(Tj(this.destroyRef),yf(function(c){return Hid(b.tasksService,[c],!0)}),of(function(){b.saving=!1})).subscribe({next:function(){b.saveClicked.emit();b.analytics.trackEvent("googleTasks","click","addGoogleTask")},error:function(c){console.error("Error saving task:",c);b.butterBar.showWarning("Something went wrong saving the task: "+a.title)}})};
S8.prototype.onSubmit=function(){if(this.gTaskForm.valid){var a,b=(new Date((a=this.gTaskForm.value.date)!=null?a:0)).getTime();this.saveGTask({title:this.gTaskForm.value.title,details:this.gTaskForm.value.details,taskListId:this.gTaskForm.value.taskListId,dueDateMs:b})}else this.butterBar.showWarning("Invalid data. Please check the information provided.",this.gTaskForm.value.title)};
da.Object.defineProperties(S8.prototype,{title:{configurable:!0,enumerable:!0,get:function(){return this.gTaskForm.get("title")}},details:{configurable:!0,enumerable:!0,get:function(){return this.gTaskForm.get("details")}},date:{configurable:!0,enumerable:!0,get:function(){return this.gTaskForm.get("date")}},taskListId:{configurable:!0,enumerable:!0,get:function(){return this.gTaskForm.get("taskListId")}}});S8.\u0275fac=function(a){return new (a||S8)};
S8.\u0275cmp=D({type:S8,selectors:[["b-add-task-dialog"]],viewQuery:function(a,b){a&1&&(hg(T2d,7),hg(U2d,5));if(a&2){var c;lg(c=mg())&&(b.content=c.first);lg(c=mg())&&(b.taskInput=c.first)}},outputs:{cancelClicked:"cancelClicked",saveClicked:"saveClicked",focusEscaped:"focusEscaped"},standalone:!1,features:[Ef],decls:8,vars:1,consts:[["content",""],["urlTabContent",""],["googleTasksTabContent",""],["task_input",""],["detailsInput",""],["picker",""],[1,"container"],"gmat-tabs  matAlignTabs start matStretchTabs false preserveContent ".split(" "),
[1,"add-task-help-text"],"href;http://go/b-home#manual-alerts;target;_blank;aria-label;Link to user guide for manual signals".split(";"),["appearance","outline"],["type","url","matInput","","aria-label","Enter task URL","required","",1,"task-input",3,"formControl","placeholder"],[1,"actions"],[1,"b-add-task-button-row"],["type","button","mat-button","",1,"cancel",3,"click"],["type","button","mat-button","",1,"save",3,"click","disabled"],[1,"google-tasks-tab-content"],[1,"g-task-form",3,"ngSubmit",
"formGroup"],["appearance","outline",1,"input-form","hard-padding"],"type;text;matInput;;aria-label;Title;placeholder;Enter title;formControlName;title;maxlength;1024;required;".split(";"),["align","end"],"matInput;;formControlName;details;resize;none;cdkAutosizeMinRows;4;cdkAutosizeMaxRows;4;placeholder;Add details;aria-label;Details;maxlength;8192".split(";"),["appearance","outline",1,"hard-padding"],["svgIcon","google-tasks-logo","matIconPrefix",""],["formControlName","taskListId","placeholder",
"Select a task list"],["aria-label","Task list",3,"value"],[1,"error-message"],["appearance","outline",1,"calendar-width"],["matPrefix","",3,"for"],["matInput","","placeholder","Select a date","formControlName","date","aria-label","Date","readonly","",3,"click","matDatepicker"],[1,"button-container"],["mat-button","","type","submit",3,"disabled"],["label","URL"],[4,"ngTemplateOutlet"],["label","Google Tasks"]],template:function(a,b){a&1&&(K(0,"div",6,0),E(2,rhc,14,5,"ng-template",null,1,Mg)(4,whc,
30,10,"ng-template",null,2,Mg),F(6,zhc,5,2,"mat-tab-group",7)(7,Bhc,1,1,"ng-container"),L());a&2&&(B(6),G(b.isInternalSession?6:7))},dependencies:[Sx,Jy,kB,gB,IR,GR,HR,nE,xj,fE,gE,yE,zE,sE,uE,tE,SD,JD,ID,LD,yU,TH,hA,HD,FE,BL,wL,xL,Tx],styles:[".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-form-field[_ngcontent-%COMP%]{padding:4px;width:400px}.dark-mode   [_nghost-%COMP%]   input[type=url][_ngcontent-%COMP%]{color-scheme:dark}.add-task-help-text[_ngcontent-%COMP%]{padding:4px;font-weight:bold;color:#5f6368;color:var(--text-muted)}.actions[_ngcontent-%COMP%]{padding:4px;text-align:end}.g-task-form[_ngcontent-%COMP%]{padding:4px}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:10px}.button-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:10px}.label-wrapper[_ngcontent-%COMP%]{float:right}textarea[_ngcontent-%COMP%]{resize:none;padding:0px}.hard-padding[_ngcontent-%COMP%]{display:block;margin:1em 0}  .mat-datepicker-content .mat-calendar{background-color:#fff;background-color:var(--surface-default)}  .mat-datepicker-content .mat-mdc-button.mat-unthemed{color:#202124;color:var(--text-default)}/*# sourceMappingURL=add_task_dialog_content.css.map */"]});var b3d=[{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"}],T8=function(){Z.call(this);var a=this;this.overlay=p(Tz);this.element=p(Hd);this.openOnEnter=this.openOnClick=!0;this.taskAdded=new aQ;this.onClose=new aQ;this.opened=!1;this.destroyed$.subscribe(function(){var b;(b=a.overlayRef)==
null||b.dispose()})};Y(T8,Z);h=T8.prototype;h.onHostEnter=function(a){this.openOnEnter&&this.open();a.preventDefault();a.stopPropagation()};h.onClickHost=function(a){this.openOnClick&&this.open();a.preventDefault();a.stopPropagation()};h.open=function(){this.opened||(this.overlayRef=this.createOverlay(),this.attach(),this.opened=!0)};h.close=function(){if(this.opened){var a;(a=this.overlayRef)==null||a.dispose();this.overlayRef=void 0;this.opened=!1;this.onClose.emit()}};
h.onHostTab=function(a){this.opened&&this.addTaskContent&&this.addTaskContent.focusEscapeNotifier&&(Sy(this.addTaskContent.focusEscapeNotifier),a.preventDefault())};h.onHostShiftTab=function(a){this.addTaskContent&&this.addTaskContent.focusEscapeNotifier&&(mCc(this.addTaskContent.focusEscapeNotifier),a.preventDefault())};
h.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"b-add-task-dialog-backdrop",panelClass:"b-add-task-dialog-popup"});a.overlayElement.setAttribute("role","dialog");a.overlayElement.setAttribute("title","Add Task By URL");return a};
h.attach=function(){var a=this,b=new Nz(S8),c;this.addTaskContent=(c=this.overlayRef)==null?void 0:c.attach(b).instance;setTimeout(function(){a.connectValues();var d;(d=a.addTaskContent)==null||d.taskInput.nativeElement.focus();var e;(e=a.overlayRef)==null||e.updatePosition()})};h.getPositionStrategy=function(){return Fz(Gz(Hz(Lz(this.overlay.position(),this.element)),8),b3d)};h.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
h.connectValues=function(){var a=this;if(this.addTaskContent&&this.overlayRef){var b=te(this.overlayRef._detachments,this.destroyed$);this.addTaskContent.saveClicked.pipe(zf(b)).subscribe(function(){a.taskAdded.emit()});te(this.addTaskContent.saveClicked,this.addTaskContent.cancelClicked,this.overlayRef.backdropClick(),this.overlayRef.keydownEvents().pipe(ue(function(c){return c.code==="Escape"}))).pipe(zf(b)).subscribe(function(){a.close()})}};T8.\u0275fac=function(a){return new (a||T8)};
T8.\u0275dir=af({type:T8,selectors:[["","bAddTaskDialogToggle",""]],hostAttrs:["aria-haspopup","true"],hostVars:1,hostBindings:function(a,b){a&1&&N("click",function(c){return b.onClickHost(c)})("keydown.enter",function(c){return b.onHostEnter(c)})("keydown.tab",function(c){return b.onHostTab(c)})("keydown.shift.tab",function(c){return b.onHostShiftTab(c)});a&2&&If("aria-expanded",b.opened||void 0)},inputs:{openOnClick:"openOnClick",openOnEnter:"openOnEnter"},outputs:{taskAdded:"taskAdded",onClose:"onClose"},
exportAs:["bAddTaskDialogToggle"],standalone:!1,features:[Ef]});var c3d=function(){};c3d.prototype.transform=function(a){var b=a.comeBackTimestamp;return"Upcoming out of office starting "+d3d.format(new Date(a.futureOooTimestamp.seconds*1E3))+" - back on "+d3d.format(new Date(b.seconds*1E3))};c3d.\u0275fac=function(a){return new (a||c3d)};c3d.\u0275pipe=cf({name:"futureAvailability",type:c3d,pure:!0,standalone:!1});var d3d=new ql(cG.WEEKDAY_MONTH_DAY_MEDIUM);var U8=function(){this.activeSession=p(uu);this.hovercardReady$=new uf(1);this.environmentType=this.activeSession.getEnvironmentType()};U8.prototype.ngOnInit=function(){this.hovercardReady$.next()};U8.prototype.getBaseUrl=function(){switch(this.environmentType){case "PROD":case "NIGHTLY":return"https://taskflow.corp.google.com";default:return"https://taskflow-autopush.corp.google.com"}};U8.\u0275fac=function(a){return new (a||U8)};
U8.\u0275cmp=D({type:U8,selectors:[["iteration-card"]],inputs:{iteration:"iteration"},standalone:!1,decls:1,vars:1,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center","gap","margin-s-bottom"],["role","img","svgIcon","taskflow-logo",1,"icon-s"],[1,"flex-kids-x","align-items-center","gap"],["role","img","svgIcon","time-24px",1,"icon-s","muted"],["target","_blank",1,"hover-link",3,"href"],["mode","date",3,"paddingLeftPx","timestamp"]],template:function(a,b){a&1&&F(0,Chc,13,7,"div",0);
a&2&&G(b.iteration?0:-1)},dependencies:[Jy,rV],encapsulation:2});var V8=function(){this.analytics=p(eQ);this.domSafe=p(mR);this.activeSession=p(uu);this.environmentType=this.activeSession.getEnvironmentType()};V8.prototype.trackHoverEvent=function(){this.analytics.trackEvent("missionControl","hover","iteration-chip")};V8.prototype.getBaseUrl=function(){switch(this.environmentType){case "PROD":case "NIGHTLY":return"https://taskflow.corp.google.com";default:return"https://taskflow-autopush.corp.google.com"}};V8.\u0275fac=function(a){return new (a||V8)};
V8.\u0275cmp=D({type:V8,selectors:[["iteration-chip"]],inputs:{iteration:"iteration"},standalone:!1,decls:1,vars:1,consts:[["iterationHovercard","onedevHovercard"],["cardBody",""],[1,"iteration-chip","margin-xs-right",3,"onedevHovercardShown","click","onedevHovercardTrigger"],[3,"onedevIsHovercardReady","iteration",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","iteration"]],template:function(a,b){a&1&&F(0,Ehc,5,1);a&2&&G(b.iteration?0:-1)},dependencies:[U8,KK,LK,SK,MK],styles:[".iteration-chip[_ngcontent-%COMP%]{border:1px solid;border-color:#9334e6;border-color:var(--purple-text);color:#9334e6;color:var(--purple-text);height:18px;border-radius:4px;border:1px solid;padding:1px 4px;display:inline-flex}/*# sourceMappingURL=iteration_chip.css.map */"],
changeDetection:0});var su=new Map([["TAGGED_IN_COMMENT","Mentioned me"],["REQUIRES_APPROVAL","Added as approver"],["DRIVE_MANUAL_SIGNAL","Manually added"],["DRIVE_SNOOZE_EXPIRED","Recently awoke"],["THREAD_MENTIONS_ME","Mentioned me"],["NEEDS_ATTENTION","In attention set"],["READY_TO_SUBMIT","Ready to submit"],["CHANGELIST_MANUAL_SIGNAL","Manually added"],["CHANGELIST_SNOOZE_EXPIRED","Recently awoke"],["NEAR_SLO","Near SLO"],["COMMENT_MENTIONS_ME","Mentioned me"],["BLOCKERS_CLOSED","Blockers closed"],["NEWLY_BLOCKING",
"Newly blocking"],["NEEDS_REPORTER_INPUT","Needs reporter input"],["REPLIED_TO_MENTION","Replied to me"],["NEWLY_ASSIGNED_TO_ME","Newly assigned"],["ISSUE_MANUALLY_SIGNALED","Manually added"],["ISSUE_SNOOZE_EXPIRED","Recently awoke"],["MENTIONED_NEEDS_RESPONSE","Needs response"],["CONFIGURABLE_ALERT","Configurable alert"],["GERRIT_CHANGE_NEEDS_ATTENTION","In attention set"],["GERRIT_CHANGE_READY_TO_SUBMIT","Ready to submit"],["GERRIT_MANUAL_SIGNAL","Manually added"],["GERRIT_SNOOZE_EXPIRED","Recently awoke"],
["DUE_SOON","Due soon"],["DUE_DATE_EXPIRED","Due date expired"],["GOOGLE_TASKS_MANUAL_SIGNAL","Manually added"],["GOOGLE_TASKS_SNOOZE_EXPIRED","Recently awoke"],["IRM_MANUAL_SIGNAL","Manually added"],["IRM_SNOOZE_EXPIRED","Recently awoke"],["IRM_SEND_POSTMORTEM_FOR_REVIEW","Postmortem being drafted"],["IRM_REVIEW_POSTMORTEM","Postmortem needs review"]]),Aic=new Map([["TAGGED_IN_COMMENT","Someone mentioned me in a comment"],["REQUIRES_APPROVAL","You were added as an approver"],["DRIVE_MANUAL_SIGNAL",
"You manually added this file"],["DRIVE_SNOOZE_EXPIRED","This file recently awoke from a snooze"],["THREAD_MENTIONS_ME","You were mentioned on this CL recently"],["NEEDS_ATTENTION","This CL is in your \u201cNeeds attention\u201d list in Critique"],["CHANGELIST_MANUAL_SIGNAL","You manually added this changelist"],["CHANGELIST_SNOOZE_EXPIRED","This changelist recently awoke from a snooze"],["READY_TO_SUBMIT","This CL is ready to submit"],["NEAR_SLO","20% of SLO time is remaining for this issue"],["COMMENT_MENTIONS_ME",
"You were mentioned on this issue"],["BLOCKERS_CLOSED","The last blocking issue was closed recently"],["NEWLY_BLOCKING","This issue started blocking another issue recently"],["NEEDS_REPORTER_INPUT","Issue was assigned back to reporter (you) recently"],["REPLIED_TO_MENTION","Someone replied to your mention recently"],["NEWLY_ASSIGNED_TO_ME","This issue was recently assigned to you"],["ISSUE_MANUALLY_SIGNALED","You manually added this issue"],["ISSUE_SNOOZE_EXPIRED","This issue recently awoke from a snooze"],
["MENTIONED_NEEDS_RESPONSE","You were mentioned on this issue and your response is requested"],["CONFIGURABLE_ALERT","This issue recently matches a configurable alert"],["GERRIT_CHANGE_NEEDS_ATTENTION","Your turn to take action on the change"],["GERRIT_CHANGE_READY_TO_SUBMIT","Your turn to take action on the change"],["GERRIT_MANUAL_SIGNAL","You manually added this change"],["GERRIT_SNOOZE_EXPIRED","This change recently awoke from a snooze"],["DUE_SOON","This task is due soon"],["DUE_DATE_EXPIRED",
"This task is past its due date"],["GOOGLE_TASKS_MANUAL_SIGNAL","You manually added this task"],["GOOGLE_TASKS_SNOOZE_EXPIRED","This task recently awoke from a snooze"],["IRM_MANUAL_SIGNAL","You manually added this incident"],["IRM_SNOOZE_EXPIRED","This incident recently awoke from a snooze"],["IRM_SEND_POSTMORTEM_FOR_REVIEW","Postmortem should be sent for review"],["IRM_REVIEW_POSTMORTEM","You were added as a postmortem reviewer"]]),e3d=new Map([["TAGGED_IN_COMMENT","Reply to comment"],["REQUIRES_APPROVAL",
"Review"],["DRIVE_MANUAL_SIGNAL","Manually added"],["DRIVE_SNOOZE_EXPIRED","Dismiss to remove"],["THREAD_MENTIONS_ME","Reply to comment"],["NEEDS_ATTENTION","Review CL"],["READY_TO_SUBMIT","Submit CL"],["CHANGELIST_MANUAL_SIGNAL","Manually added"],["CHANGELIST_SNOOZE_EXPIRED","Dismiss to remove"],["NEAR_SLO","View issue"],["COMMENT_MENTIONS_ME","Reply to comment"],["BLOCKERS_CLOSED","View issue"],["NEWLY_BLOCKING","View blocker issue"],["NEEDS_REPORTER_INPUT","Reply to comment"],["REPLIED_TO_MENTION",
"Reply to comment"],["NEWLY_ASSIGNED_TO_ME","Start work"],["ISSUE_MANUALLY_SIGNALED","Manually added"],["ISSUE_SNOOZE_EXPIRED","Edit or dismiss"],["MENTIONED_NEEDS_RESPONSE","Reply to comment"],["CONFIGURABLE_ALERT","View issue"],["GERRIT_CHANGE_NEEDS_ATTENTION","Review change"],["GERRIT_CHANGE_READY_TO_SUBMIT","Submit change"],["GERRIT_MANUAL_SIGNAL","Manually added"],["GERRIT_SNOOZE_EXPIRED","Dismiss to remove"],["DUE_SOON","View task"],["DUE_DATE_EXPIRED","View task"],["GOOGLE_TASKS_MANUAL_SIGNAL",
"Manually added"],["GOOGLE_TASKS_SNOOZE_EXPIRED","Edit or dismiss"],["IRM_MANUAL_SIGNAL","Manually added"],["IRM_SNOOZE_EXPIRED","Dismiss to remove"],["IRM_SEND_POSTMORTEM_FOR_REVIEW","Send postmortem for review"],["IRM_REVIEW_POSTMORTEM","Review postmortem"]]);var ru=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ru,W);h=ru.prototype;h.getId=function(){return pn(this,1)};h.getId_asLegacyNumberOrString=function(){return Cp(this,1)};h.getId_asString=function(){return tn(this,1)};h.setId=function(a){return Io(this,1,a)};h.getFrequency=function(){return wi(this,2)};h.setFrequency=function(a){return Hm(this,2,a)};h.getOrdinal=function(){return Bm(this,3)};h.setOrdinal=function(a){return an(this,3,a)};
h.getTimeZone=function(){return X(this,pr,4)};h.setTimeZone=function(a){return Mi(this,pr,4,a)};h.hasTimeZone=function(){return xi(this,pr,4)};h.getTimeOfDay=function(){return X(this,qr,5)};h.setTimeOfDay=function(a){return Mi(this,qr,5,a)};h.getDisplayName=function(){return ui(this,6)};h.setDisplayName=function(a){return Fm(this,6,a)};h.getQuery=function(){return ui(this,7)};h.setQuery=function(a){return Fm(this,7,a)};h.clearQuery=function(){Hw(this,7)};
h.getLastUpdatedTimestamp=function(){return X(this,Si,12)};var W8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,W8.messageId)};Y(W8,W);W8.prototype.getSubscription=function(){return X(this,ru,1,jb)};W8.prototype.setSubscription=function(a){return Mi(this,ru,1,a,jb)};W8.messageId="b.ConfigurableAlertSubscriptionRequest";var X8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,X8.messageId)};Y(X8,W);X8.prototype.getSubscription=function(){return X(this,ru,1,jb)};X8.prototype.setSubscription=function(a){return Mi(this,ru,1,a,jb)};X8.messageId="b.ConfigurableAlertSubscriptionResponse";var f3d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,f3d.messageId)};Y(f3d,W);f3d.prototype.getSubscriptionsList=function(){return Bi(this,ru,1,Ci(),jb)};f3d.messageId="b.ListConfigurableAlertSubscriptionsResponse";var Y8=function(){this.executor=p(bO)};h=Y8.prototype;h.create=function(a){return this.executor.post({url:"action/configurable_alert_subscriptions",body:(new W8).setSubscription(Qhc(a)),responseConstructor:X8}).pipe(A(function(b){if(b=b.getSubscription())return Phc(b);throw Error("zg");}))};h.list=function(){return this.executor.get({url:"action/configurable_alert_subscriptions",responseConstructor:f3d}).pipe(A(function(a){return a.getSubscriptionsList().map(Phc)}))};
h.get=function(a){return this.executor.get({url:"action/configurable_alert_subscriptions/"+a,responseConstructor:X8}).pipe(A(function(b){if(b=b.getSubscription())return Phc(b);throw Error("Ag");}))};h.update=function(a){return this.executor.post({url:"action/configurable_alert_subscriptions/"+a.id,body:(new W8).setSubscription(Qhc(a)),responseConstructor:X8}).pipe(A(function(b){if(b=b.getSubscription())return Phc(b);throw Error("zg");}))};
h.delete=function(a){return this.executor.delete({url:"action/configurable_alert_subscriptions/"+a,responseConstructor:wO}).pipe(A(function(){}))};Y8.\u0275fac=function(a){return new (a||Y8)};Y8.\u0275prov=Dc({token:Y8,factory:Y8.\u0275fac,providedIn:"root"});var Z8=function(){uO.call(this,{freshUntil:36E5,ancientAfter:2592E5});var a=this;this.api=p(Y8);this.recordType="configurable_alert";this.idForRecord=function(d){return d.id};this.isEqual=mm;var b=p(VP),c=p(Ce);b.getObservable().pipe(Tj(c)).subscribe(function(){a.invalidate()})};Y(Z8,uO);h=Z8.prototype;h.fetchOne=function(a){return this.api.get(a)};h.list=function(){return this.api.list()};h.create=function(a){return this.api.create(a)};h.update=function(a){var b=this;return this.api.update(a).pipe(Af(function(c){b.invalidate(c.id)}))};
h.delete=function(a){var b=this;return this.api.delete(a).pipe(Af(function(){b.invalidate(a)}))};Z8.\u0275fac=function(a){return new (a||Z8)};Z8.\u0275prov=Dc({token:Z8,factory:Z8.\u0275fac,providedIn:"root"});var Shc=function(a){return{subscriptionId:a}},Rhc=function(a){return{path:"/settings/configurable-alerts",queryParams:a}},Uhc=function(a){return{q:a,s:"modified_time:desc"}},Thc=function(a){return{path:"/issues",queryParams:a}},g3d=function(){var a=this;this.fridge=p(Z8);this.subscriptionId$=new uf(1);this.data$=this.subscriptionId$.pipe(yf(function(b){return a.fridge.watch(b)}),ue(Pm));this.contentReady$=this.data$.pipe(A(function(){}))};
da.Object.defineProperties(g3d.prototype,{subscriptionId:{configurable:!0,enumerable:!0,set:function(a){this.subscriptionId$.next(a)}}});g3d.\u0275fac=function(a){return new (a||g3d)};
g3d.\u0275cmp=D({type:g3d,selectors:[["configurable-alert-card"]],inputs:{subscriptionId:"subscriptionId"},standalone:!1,decls:2,vars:3,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","gap-s"],[1,"flex-kids-x","space-between"],["mat-button","","type","button",1,"medium",3,"routerLinkObj"],["mat-flat-button","","type","button",1,"medium","primary",3,"routerLinkObj"]],template:function(a,b){a&1&&(F(0,Vhc,11,12,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.data$))?0:-1,c)}},dependencies:[VO,kB,gB,
Tx],styles:["[_nghost-%COMP%]{display:block;height:100%;max-width:700px;max-height:500px;overflow-y:auto;background:var(--surface-default)}"],changeDetection:0});var $8=function(){var a=this;this.tasksApi=p(zQ);this.analytics=p(eQ);this.fileId$=new uf(1);this.commentId$=new uf(1);this.mentionedDriveComment$=ie([this.fileId$,this.commentId$]).pipe(yf(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=a.tasksApi;var e=new aid;b=Fm(e,1,b).setCommentId(d);return c.executor.post({url:"action/tasks/latest_drive_mention",responseConstructor:sQ,body:b}).pipe(A(q4a))}),Af(function(){a.contentReady$.next()}));this.contentReady$=new uf(1)};
$8.prototype.ngOnInit=function(){this.analytics.trackEvent("mentionsCard","view","hovercard")};da.Object.defineProperties($8.prototype,{fileId:{configurable:!0,enumerable:!0,set:function(a){this.fileId$.next(a)}},commentId:{configurable:!0,enumerable:!0,set:function(a){this.commentId$.next(a)}}});$8.\u0275fac=function(a){return new (a||$8)};
$8.\u0275cmp=D({type:$8,selectors:[["mentioned-drive-comments-card"]],inputs:{fileId:"fileId",commentId:"commentId",lastMentionLink:"lastMentionLink"},standalone:!1,decls:2,vars:3,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center","space-between","margin-s-bottom"],[1,"bv2-event-user-name",3,"model"],["target","_blank",1,"hover-link",3,"href"],["mode","datetime",3,"timestamp"],["target","_blank",1,"hover-link",3,"click","href"]],template:function(a,b){a&1&&(F(0,Yhc,11,4,"div",0),
T(1,"async"));if(a&2){var c;G((c=U(1,1,b.mentionedDriveComment$))?0:-1,c)}},dependencies:[rV,$U,Tx],styles:["[_nghost-%COMP%]{background-color:#fff;background-color:var(--surface-default);display:block;height:100%;max-width:700px;max-height:500px;overflow-y:auto}"]});var cic=function(a,b){return b.commentNumber},a9=function(){var a=this;this.issueCommentsBatchApi=p(OP);this.analytics=p(eQ);this.activeSession=p(uu);this.issueId$=new Mj("");this.commentNumbers$=new Mj([]);this.mentionedComments$=ie([this.issueId$,this.commentNumbers$]).pipe(yf(function(b){var c=m(b);b=c.next().value;c=c.next().value;return a.issueCommentsBatchApi.batchGet(b,c)}),Af(function(){a.contentReady$.next()}));this.contentReady$=new uf(1);this.thumbsDownClicked=this.thumbsUpClicked=this.hasReacted=
!1};a9.prototype.ngOnInit=function(){this.analytics.trackEvent("mentionsCard","view","hovercard")};a9.prototype.getCommentNumberLink=function(a,b){return X4a(a,{comment:b})};a9.prototype.trackThumbsUp=function(){this.thumbsUpClicked=this.hasReacted=!0;this.analytics.trackEvent("needsResponse","accept",h3d(this))};a9.prototype.trackThumbsDown=function(){this.thumbsDownClicked=this.hasReacted=!0;this.analytics.trackEvent("needsResponse","reject",h3d(this))};
var h3d=function(a){return JSON.stringify({id:a.issueId$.value,commentNumber:a.commentNumbers$.value})};da.Object.defineProperties(a9.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}},commentNumbers:{configurable:!0,enumerable:!0,set:function(a){this.commentNumbers$.next(a)}}});a9.\u0275fac=function(a){return new (a||a9)};
a9.\u0275cmp=D({type:a9,selectors:[["mentioned-issue-comments-card"]],inputs:{issueId:"issueId",commentNumbers:"commentNumbers",needsResponse:"needsResponse"},standalone:!1,decls:2,vars:3,consts:[[1,"carded","bg-main"],[3,"margin-s-bottom","padded-s-bottom","border-bottom"],[1,"flex-kids-x","align-items-center","space-between"],[1,"flex-kids-x","align-items-center","gap-xs"],[1,"bv2-event-user-name",3,"model"],[1,"hover-link",3,"routerLinkObj"],["mode","datetime",3,"timestamp"],[1,"hover-link",3,
"click","routerLinkObj"],[3,"issueId","note","formattingMode"],[1,"flex-kids-x","gap-xs","justify-flex-end","align-items-center"],[1,"type-s","feedback-info"],["type","button","mat-icon-button","","aria-label","rate thumbs up",1,"keep-focus-ring","needs-response-feedback",3,"click","disabled"],["svgIcon","thumb_up_24px",1,"icon-s"],["type","button","mat-icon-button","","aria-label","rate thumbs down",1,"keep-focus-ring","needs-response-feedback",3,"click","disabled"],["svgIcon","thumb_down_24px",
1,"icon-s"]],template:function(a,b){a&1&&(F(0,dic,5,0,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.mentionedComments$))?0:-1,c)}},dependencies:[Jy,VO,$U,rV,hU,Tx],styles:[".needs-response-feedback[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;color:#3c4043;color:var(--gfx);background-color:#fff;background-color:var(--surface-default);border:none}.needs-response-feedback[_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.needs-response-feedback[_ngcontent-%COMP%]:focus, .needs-response-feedback[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}button.needs-response-feedback[_ngcontent-%COMP%]:hover{cursor:pointer}.feedback-info[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}[_nghost-%COMP%]{display:block;height:100%;max-width:700px;max-height:500px;overflow-y:auto;background:var(--surface-default)}"]});var fic=function(a){return{signal:a}},qic=function(){return[]},iic=function(a,b){return b.type},i3d=function(){this.activeSession=p(uu);this.signals=[];this.SIGNAL_TO_DISPLAY_TEXT=su;this.SIGNAL_TO_ACTION_TEXT=e3d;this.getSignalUrgency=Nhc;this.getHighestPrioritySignal=Ohc;this.enableTailwindMissionControl=this.activeSession.isInternalSession()&&this.activeSession.getFlag("enableTailwind")&&this.activeSession.getFlag("enableTailwindMissionControl")},lic=function(a,b){return a.filter(function(c){return c!==
b}).map(function(c){return su.get(c.type)}).join("; ")},xic=function(a,b){return(b.type==="MENTIONED_NEEDS_RESPONSE"||b.type==="COMMENT_MENTIONS_ME")&&b.commentNumbers!=null&&b.commentNumbers.length>0&&a.issueId!=null},yic=function(a){return a.type==="TAGGED_IN_COMMENT"&&a.driveFileId!=null&&a.driveCommentId!=null},zic=function(a){return!(a.type!=="CONFIGURABLE_ALERT"||!a.configurableAlertSubscriptionId)};i3d.\u0275fac=function(a){return new (a||i3d)};
i3d.\u0275cmp=D({type:i3d,selectors:[["needs-attention-signals-cell"]],inputs:{issueId:"issueId",signals:"signals",tailwindRunStatus:"tailwindRunStatus"},standalone:!1,decls:4,vars:1,consts:[["signalChip",""],["tooltip","matTooltip"],["signalHovercard","onedevHovercard"],["cardBody",""],[1,"flex-kids-x","gap-xs"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex-kids-x","gap-xs","align-items-center"],[1,"overflow","type-m",3,"matTooltip"],[3,"mouseenter","mouseleave","onedevHovercardActive",
"onedevHovercardTrigger","matTooltip"],[3,"onedevIsHovercardReady","issueId","commentNumbers","needsResponse"],[3,"onedevIsHovercardReady","fileId","commentId","lastMentionLink"],[3,"onedevIsHovercardReady","subscriptionId"],[3,"onedevIsHovercardReady","issueId","commentNumbers","needsResponse",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","fileId","commentId","lastMentionLink",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","subscriptionId",4,"onedevHovercardLazyBody"]],template:function(a,
b){a&1&&(F(0,jic,3,0,"div",4)(1,nic,1,1),E(2,Bic,10,12,"ng-template",null,0,Mg));a&2&&G(b.signals.length<3?0:1)},dependencies:[Sx,vK,nA,KK,LK,SK,MK,a9,$8,g3d],styles:[".signal-chip[_ngcontent-%COMP%]{border:1px solid;border-color:#185abc;border-color:var(--blue-text);color:#185abc;color:var(--blue-text);padding:4px 12px;border-radius:32px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;text-align:center;white-space:nowrap}.signal-chip.urgent-0[_ngcontent-%COMP%]{border:1px solid;border-color:#d42521;border-color:var(--red-text);color:#d42521;color:var(--red-text)}.signal-chip.urgent-1[_ngcontent-%COMP%]{border:1px solid;border-color:#9334e6;border-color:var(--purple-text);color:#9334e6;color:var(--purple-text)}"],
changeDetection:0});var j3d=function(){this.tasksService=p(zQ);this.okrIds=[];this.hovercardReady$=new uf(1);this.teamObjectives$=ce([])};j3d.prototype.ngOnInit=function(){this.teamObjectives$=Mid(this.tasksService,k3d(this.okrIds));this.hovercardReady$.next()};
var k3d=function(a){a=a.map(function(b){return b.includes("/keyResults")?b.substring(0,b.indexOf("/keyResults")):b});return[].concat(q(new Set(a)))},Fic=function(a,b){var c;return(c=a.find(function(d){var e;return d.objective&&(d.objective.objectiveId===b||((e=d.objective.keyResults)==null?void 0:e.some(function(f){return b.includes(f.keyResultId)})))}))==null?void 0:c.objective},Gic=function(a,b){if(b.includes("/keyResults")){var c,d;return(c=Fic(a,b))==null?void 0:(d=c.keyResults)==null?void 0:
d.find(function(e){return b.indexOf(e.keyResultId)>0})}},Cic=function(a){return a&&a!=="RATING_UNSPECIFIED"?" \u2022 "+a:""};j3d.\u0275fac=function(a){return new (a||j3d)};
j3d.\u0275cmp=D({type:j3d,selectors:[["okr-card"]],inputs:{okrIds:"okrIds"},standalone:!1,decls:2,vars:3,consts:[["role","dialog","aria-label","OKR hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bv2-hovercard-narrow","okr-hovercard-content"],[1,"flex-kids-x","margin-s-bottom","type-m"],[1,"flex-kids-x","padded-s-top","border-top","margin-s-top","margin-s-bottom","type-xs"],[1,"type-and-priority"],["role","link","target","_blank",1,"okr-description",3,"href"],[1,"type-and-priority",
"kr-indentation"]],template:function(a,b){a&1&&(F(0,Iic,4,0,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.teamObjectives$))?0:-1,c)}},dependencies:[Tx],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.okr-hovercard-content[_ngcontent-%COMP%]   .type-and-priority[_ngcontent-%COMP%]{font-weight:700;width:56px}.okr-hovercard-content[_ngcontent-%COMP%]   .kr-indentation[_ngcontent-%COMP%]{padding-left:16px}.okr-hovercard-content[_ngcontent-%COMP%]   .okr-description[_ngcontent-%COMP%]{word-break:break-word;color:#202124;color:var(--text)}.okr-hovercard-content[_ngcontent-%COMP%]   .okr-description[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}"]});var l3d=function(){this.analytics=p(eQ);this.okrIds=[]};l3d.prototype.trackHoverEvent=function(){this.analytics.trackEvent("missionControl","hover","okr-chip")};l3d.\u0275fac=function(a){return new (a||l3d)};
l3d.\u0275cmp=D({type:l3d,selectors:[["okr-chip"]],inputs:{okrIds:"okrIds"},standalone:!1,decls:1,vars:1,consts:[["okrHovercard","onedevHovercard"],["cardBody",""],[1,"okr-chip","margin-xs-right",3,"onedevHovercardShown","onedevHovercardTrigger"],[3,"onedevIsHovercardReady","okrIds",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","okrIds"]],template:function(a,b){a&1&&F(0,Kic,5,1);a&2&&G(b.okrIds&&b.okrIds.length>0?0:-1)},dependencies:[j3d,KK,LK,SK,MK],styles:[".okr-chip[_ngcontent-%COMP%]{background-color:#9334e6;background-color:var(--purple-text);color:#fff;color:var(--surface-default);height:18px;border-radius:4px;border:1px solid;padding:1px 4px;display:inline-flex}/*# sourceMappingURL=okr_chip.css.map */"],
changeDetection:0});var m3d=function(){this.hovercardReady$=new uf(1)};m3d.prototype.ngOnInit=function(){this.hovercardReady$.next()};m3d.\u0275fac=function(a){return new (a||m3d)};
m3d.\u0275cmp=D({type:m3d,selectors:[["stale-task-card"]],inputs:{taskId:"taskId"},standalone:!1,decls:1,vars:1,consts:[["role","dialog","aria-label","Stale task card",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body","margin-xs"],[1,"bv2-hovercard-narrow"],["href","http://go/b-home#stale-tasks","target","_blank"]],template:function(a,b){a&1&&F(0,Lic,8,0,"div",0);a&2&&G(b.taskId?0:-1)},styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.onedev-hovercard-body[_ngcontent-%COMP%]{padding:16px}.bv2-hovercard-narrow[_ngcontent-%COMP%]{max-width:240px}"]});var n3d=function(){this.hovercardConfig={showDelay:250,hideDelay:250,position:[l8c,n8c],triggerKey:[]}};n3d.\u0275fac=function(a){return new (a||n3d)};
n3d.\u0275cmp=D({type:n3d,selectors:[["stale-task-indicator"]],inputs:{taskId:"taskId",lastAlertTimestamp:"lastAlertTimestamp"},standalone:!1,decls:7,vars:3,consts:[["staleTaskCard","onedevHovercard"],["cardBody",""],[1,"staleness-indicator","valign-middle",3,"onedevHovercardTrigger","onedevHovercardConfig"],["svgIcon","time-24px","color","orange"],[3,"onedevIsHovercardReady","taskId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","taskId"]],template:function(a,b){a&1&&(Tf(0),K(1,"div",
2),M(2,"mat-icon",3),Q(3),L(),K(4,"onedev-hovercard",null,0),E(6,Mic,2,2,"stale-task-card",4),L(),Uf());a&2&&(a=qg(5),B(),I("onedevHovercardTrigger",a)("onedevHovercardConfig",b.hovercardConfig),B(2),b=b.lastAlertTimestamp?(b=$r(b.lastAlertTimestamp.seconds,!0))?b+", respond?":"":"",S(" ",b," "))},dependencies:[Jy,KK,LK,SK,MK,m3d],styles:[".staleness-indicator[_ngcontent-%COMP%]{color:#bd4800;color:var(--orange-text);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-flow:column wrap;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-flow:column wrap;flex-flow:column wrap;place-content:flex-start center;height:18px;font-weight:700;width:80%}"],
changeDetection:0});var o3d=["menuTrigger"],b9=function(){this.SIGNAL_TO_DISPLAY_TEXT=su;this.DEFINITIONS=Sid;this.analytics=p(eQ);this.signalFilterKeys=[];this.selectedSignals=[];this.source="BUGANIZER";this.changeFilteredSignals=new aQ;this.chipSelectionStateChanged=new aQ};b9.prototype.ngOnInit=function(){this.currentSelectedSignals=new Set(this.selectedSignals);this.selectAllToggle=c9(this)};b9.prototype.openMenu=function(){this.menuTrigger.openMenu()};
b9.prototype.signalFilterChange=function(){var a=[].concat(q(this.currentSelectedSignals));this.changeFilteredSignals.emit(a);p3d(this,new Set(this.selectedSignals),new Set(a))};var q3d=function(a){return[].concat(q(a.signalFilterKeys)).sort(function(b,c){var d,e;return((d=su.get(b))!=null?d:"").localeCompare((e=su.get(c))!=null?e:"")})},c9=function(a){return a.currentSelectedSignals.size===a.signalFilterKeys.length};
b9.prototype.onCheckboxChange=function(a){this.currentSelectedSignals.has(a)?this.currentSelectedSignals.delete(a):this.currentSelectedSignals.add(a);this.selectAllToggle=c9(this);this.chipSelectionStateChanged.emit(this.currentSelectedSignals.size>0&&!c9(this)||c9(this))};var p3d=function(a,b,c){a.signalFilterKeys.forEach(function(d){b.has(d)!==c.has(d)&&a.analytics.trackEvent("needsAttention","toggle",a.source+"-"+su.get(d)+"-"+(c.has(d)?"checked":"unchecked"))})};
b9.\u0275fac=function(a){return new (a||b9)};
b9.\u0275cmp=D({type:b9,selectors:[["signal-list-dropdown"]],viewQuery:function(a,b){a&1&&hg(o3d,5);if(a&2){var c;lg(c=mg())&&(b.menuTrigger=c.first)}},inputs:{signalFilterKeys:"signalFilterKeys",selectedSignals:"selectedSignals",source:"source"},outputs:{changeFilteredSignals:"changeFilteredSignals",chipSelectionStateChanged:"chipSelectionStateChanged"},standalone:!1,decls:11,vars:5,consts:[["menuTrigger","matMenuTrigger"],["signalFilterMenu",""],["mat-icon-button","",1,"dropdown-btn",3,"keydown.enter",
"keydown.space","keyup.enter","keyup.space","click","matTooltip","matMenuTriggerFor"],["svgIcon","arrow-dropdown",1,"icon-s"],[3,"closed"],["mat-menu-item","",3,"click"],[3,"indeterminate","checked"],["mat-menu-item",""],[3,"checked"]],template:function(a,b){if(a&1){var c=t();K(0,"button",2,0);N("keydown.enter",function(d){u(c);return v(d.stopPropagation())})("keydown.space",function(d){u(c);return v(d.stopPropagation())})("keyup.enter",function(){u(c);return v(b.openMenu())})("keyup.space",function(){u(c);
return v(b.openMenu())})("click",function(d){u(c);return v(d.stopPropagation())});M(2,"mat-icon",3);L();K(3,"mat-menu",4,1);N("closed",function(){u(c);return v(b.signalFilterChange())});K(5,"button",5);N("click",function(d){u(c);b.selectAllToggle=!b.selectAllToggle;b.currentSelectedSignals=b.selectAllToggle?new Set(b.signalFilterKeys):new Set;b.chipSelectionStateChanged.emit(b.currentSelectedSignals.size>0&&!c9(b)||c9(b));return v(d.stopPropagation())});K(6,"mat-checkbox",6);Q(7," Select all alerts ");
L()();M(8,"mat-divider");Nf(9,Nic,3,2,"button",7,Mf);L()}a&2&&(a=qg(4),I("matTooltip","Filter "+Sid[b.source].displayName+" alerts")("matMenuTriggerFor",a),If("aria-label",Sid[b.source].displayName+" dropdown"),B(6),I("indeterminate",b.currentSelectedSignals.size>0&&!c9(b))("checked",c9(b)),B(3),Of(q3d(b)))},dependencies:[Jy,vK,nA,VJ,fH,dH,iH,kL,hI,kB,iB,hK],encapsulation:2});var r3d=["menuTrigger"],d9=function(){this.filteredSignalsSource=p(q1);this.activeSession=p(uu);this.DEFINITIONS=Sid;this.SIGNAL_TO_DISPLAY_TEXT=su;this.FILTERED_SIGNALS=nm(this.filteredSignalsSource.activeSession.isInternalSession()?Tid:Uid);this.sourceFilterKeys=[];this.selectedSignals={buganizerSignals:this.FILTERED_SIGNALS.buganizerSignals,driveSignals:this.FILTERED_SIGNALS.driveSignals,changelistSignals:this.FILTERED_SIGNALS.changelistSignals,gerritSignals:this.FILTERED_SIGNALS.gerritSignals,
googleTasksSignals:this.FILTERED_SIGNALS.googleTasksSignals,irmSignals:this.FILTERED_SIGNALS.irmSignals};this.selectedSources=[];this.changeSourceAndFilteredSignals=new aQ;this.changeSourceFilter=new aQ;this.signals={};this.chipsSelected={}};
d9.prototype.ngOnInit=function(){this.signals.BUGANIZER=this.selectedSignals.buganizerSignals;this.signals.DRIVE=this.selectedSignals.driveSignals;this.signals.CRITIQUE=this.selectedSignals.changelistSignals;this.signals.GERRIT=this.selectedSignals.gerritSignals;this.signals.GOOGLE_TASKS=this.selectedSignals.googleTasksSignals;this.signals.IRM=this.selectedSignals.irmSignals;this.chipsSelected.BUGANIZER=this.signals.BUGANIZER.length>0&&this.selectedSources.includes("BUGANIZER");this.chipsSelected.DRIVE=
this.signals.DRIVE.length>0&&this.selectedSources.includes("DRIVE");this.chipsSelected.CRITIQUE=this.signals.CRITIQUE.length>0&&this.selectedSources.includes("CRITIQUE");this.chipsSelected.GERRIT=this.signals.GERRIT.length>0&&this.selectedSources.includes("GERRIT");this.chipsSelected.GOOGLE_TASKS=this.signals.GOOGLE_TASKS.length>0&&this.selectedSources.includes("GOOGLE_TASKS");this.chipsSelected.IRM=this.signals.IRM.length>0&&this.selectedSources.includes("IRM")};
d9.prototype.signalFilterChange=function(a,b){this.signals[b]=a;a={buganizerSignals:this.signals.BUGANIZER,driveSignals:this.signals.DRIVE,changelistSignals:this.signals.CRITIQUE,gerritSignals:this.signals.GERRIT,googleTasksSignals:this.signals.GOOGLE_TASKS,irmSignals:this.signals.IRM};b=[];a.buganizerSignals.length>0&&this.chipsSelected.BUGANIZER&&b.push("BUGANIZER");a.driveSignals.length>0&&this.chipsSelected.DRIVE&&b.push("DRIVE");a.changelistSignals.length>0&&this.chipsSelected.CRITIQUE&&b.push("CRITIQUE");
a.gerritSignals.length>0&&this.chipsSelected.GERRIT&&b.push("GERRIT");a.googleTasksSignals.length>0&&this.chipsSelected.GOOGLE_TASKS&&b.push("GOOGLE_TASKS");a.irmSignals.length>0&&this.chipsSelected.IRM&&b.push("IRM");this.changeSourceAndFilteredSignals.emit({selectedSources:b,selectedSignals:a})};
d9.prototype.sourceFilterChange=function(a){this.chipsSelected[a]=!this.chipsSelected[a];a=[];for(var b=m(this.sourceFilterKeys),c=b.next();!c.done;c=b.next())c=c.value,this.chipsSelected[c]&&a.push(c);this.changeSourceFilter.emit(a)};d9.prototype.openMenu=function(){this.menuTrigger.openMenu()};
var Qic=function(a,b){var c;return(c=a.signals[b])!=null?c:[]},Pic=function(a,b){switch(b){case "BUGANIZER":return[].concat(q(a.FILTERED_SIGNALS.buganizerSignals));case "DRIVE":return[].concat(q(a.FILTERED_SIGNALS.driveSignals));case "GERRIT":return[].concat(q(a.FILTERED_SIGNALS.gerritSignals));case "GOOGLE_TASKS":return[].concat(q(a.FILTERED_SIGNALS.googleTasksSignals));case "CRITIQUE":return[].concat(q(a.FILTERED_SIGNALS.changelistSignals));case "IRM":return[].concat(q(a.FILTERED_SIGNALS.irmSignals));
default:return[]}};d9.\u0275fac=function(a){return new (a||d9)};
d9.\u0275cmp=D({type:d9,selectors:[["signal-filter-chips"]],viewQuery:function(a,b){a&1&&hg(r3d,5);if(a&2){var c;lg(c=mg())&&(b.menuTrigger=c.first)}},inputs:{sourceFilterKeys:"sourceFilterKeys",selectedSignals:"selectedSignals",selectedSources:"selectedSources"},outputs:{changeSourceAndFilteredSignals:"changeSourceAndFilteredSignals",changeSourceFilter:"changeSourceFilter"},standalone:!1,decls:3,vars:0,consts:[["aria-label","Source selection","role","group",1,"split-chips-row"],[1,"split-chip",3,
"expanded"],[1,"split-chip"],["mat-button","",1,"source-chip",3,"click"],["svgIcon","done",3,"class"],[3,"matTooltip"],[3,"changeFilteredSignals","chipSelectionStateChanged","signalFilterKeys","selectedSignals","source"],["svgIcon","done"]],template:function(a,b){a&1&&(K(0,"div",0),Nf(1,Sic,1,1,null,null,Mf),L());a&2&&(B(),Of(b.sourceFilterKeys))},dependencies:[Jy,vK,nA,kB,gB,b9],styles:[".split-chips-row[_ngcontent-%COMP%]{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;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:8px 0}[_nghost-%COMP%]     .split-chip{border:1px solid;border-color:#dadce0;border-color:var(--hairline);border-radius:8px;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;overflow:hidden;height:30px;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-right:8px}[_nghost-%COMP%]     .split-chip .source-chip{color:#5f6368;color:var(--text-muted);cursor:pointer;border-radius:8px 0 0 8px}.dark-mode   [_nghost-%COMP%]     .split-chip .source-chip{color:#202124;color:var(--text)}[_nghost-%COMP%]     .split-chip .checkmark{vertical-align:top}[_nghost-%COMP%]     .split-chip signal-list-dropdown .dropdown-btn{border-left:1px solid;border-color:transparent;border-color:var(--row-default-bg);border-radius:0;width:30px}[_nghost-%COMP%]     .split-chip signal-list-dropdown .dropdown-btn:hover{border-color:#dadce0;border-color:var(--divider)}[_nghost-%COMP%]     .split-chip signal-list-dropdown .mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:0}[_nghost-%COMP%]     .split-chip.expanded{border-color:transparent;background-color:#e8f0fe;background-color:var(--primary-c50)}[_nghost-%COMP%]     .split-chip.expanded .source-chip{color:#174ea6;color:var(--primary-c900)}.dark-mode   [_nghost-%COMP%]     .split-chip.expanded .source-chip{color:#1a73e8;color:var(--text-primary)}[_nghost-%COMP%]     .split-chip.expanded signal-list-dropdown mat-icon{color:#174ea6;color:var(--primary-c900)}.dark-mode   [_nghost-%COMP%]     .split-chip.expanded signal-list-dropdown mat-icon{color:#1a73e8;color:var(--text-primary)}"]});var s3d=["menuTrigger"],t3d={label:"Last 1 day",numberOfDays:1},u3d={label:"Last 7 days",numberOfDays:7},v3d={label:"Last 30 days",numberOfDays:30},w3d={label:"Last 90 days",numberOfDays:90},x3d=[t3d,u3d,v3d,w3d],y3d={1:t3d,7:u3d,30:v3d,90:w3d},e9=function(){this.timeBoundaries=x3d;this.change=new aQ};e9.prototype.getLabel=function(a){if(a==null)return"";var b,c;return(c=(b=y3d[a])==null?void 0:b.label)!=null?c:""};e9.prototype.openMenu=function(){this.menuTrigger.openMenu()};
e9.\u0275fac=function(a){return new (a||e9)};
e9.\u0275cmp=D({type:e9,selectors:[["time-boundary-filter"]],viewQuery:function(a,b){a&1&&hg(s3d,5);if(a&2){var c;lg(c=mg())&&(b.menuTrigger=c.first)}},inputs:{selectedTimeBoundary:"selectedTimeBoundary"},outputs:{change:"change"},standalone:!1,decls:9,vars:3,consts:[["menuTrigger","matMenuTrigger"],["timeBoundaryMenu","matMenu"],["aria-label","Time boundary selection",3,"selectable"],["appearance","hairline-filter","aria-label","Select time boundary","selected","","color","primary","role","button",
1,"time-boundary-chip",3,"keyup.enter","keyup.space","matMenuTriggerFor"],["matChipTrailingIcon","","svgIcon","arrow-dropdown"],["xPosition","before"],["type","button","mat-menu-item","",3,"disabled"],["type","button","mat-menu-item","",3,"click","disabled"]],template:function(a,b){if(a&1){var c=t();K(0,"mat-chip-listbox",2)(1,"mat-chip-option",3,0);N("keyup.enter",function(){u(c);return v(b.openMenu())})("keyup.space",function(){u(c);return v(b.openMenu())});Q(3);M(4,"mat-icon",4);L()();K(5,"mat-menu",
5,1);Nf(7,Tic,2,2,"button",6,Mf);L()}a&2&&(a=qg(6),I("selectable",!1),B(),I("matMenuTriggerFor",a),B(2),S(" ",b.getLabel(b.selectedTimeBoundary)," "),B(4),Of(b.timeBoundaries))},dependencies:[Jy,UK,bL,aL,$K,VJ,fH,dH,iH],encapsulation:2});var z3d=function(){return{originX:"start",originY:"bottom",overlayX:"end",overlayY:"top"}},A3d=function(a){return[a]},f9=function(){this.isSnoozed=!0;this.snooze=new aQ;this.unsnooze=new aQ;this.isOpen=new aQ;this.currentPickerDateTime=this.tomorrow;this.timePickerOpen=!1};f9.prototype.stopPropagation=function(a){a.stopPropagation()};f9.prototype.onOpen=function(a){this.isOpen.emit(a)};var B3d=function(a,b){a.setHours(b);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)};
da.Object.defineProperties(f9.prototype,{datePickerOrigin:{configurable:!0,enumerable:!0,get:function(){return this.datePickerAnchor._elementRef}},now:{configurable:!0,enumerable:!0,get:function(){return new ao}},laterToday:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.getHours()>=12?a.add(new XF("h",3)):B3d(a,15);return a}},tomorrow:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new XF("d",1));B3d(a,8);return a}},nextWeek:{configurable:!0,enumerable:!0,get:function(){var a=
this.now;a.setDate(a.getDate()+(7-a.getDay())%7+1);B3d(a,8);return a}},nextMonth:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new XF("d",30));B3d(a,8);return a}}});f9.\u0275fac=function(a){return new (a||f9)};
f9.\u0275cmp=D({type:f9,selectors:[["snooze-menu"]],viewQuery:function(a,b){a&1&&hg(fH,7);if(a&2){var c;lg(c=mg())&&(b.menu=c.first)}},inputs:{isSnoozed:"isSnoozed",datePickerAnchor:"datePickerAnchor"},outputs:{snooze:"snooze",unsnooze:"unsnooze",isOpen:"isOpen"},standalone:!1,decls:27,vars:11,consts:[["trigger","cdkOverlayOrigin"],["aria-labelledby","snooze-menu-title",3,"closed"],["id","snooze-menu-title",1,"title","gmat-body-2",3,"click"],[1,"list"],["type","button","mat-menu-item","",3,"click"],
[1,"date"],["mode","datetime",3,"date"],[1,"bottom"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","","dialogLabel","Pick date & time","ttr.aria-label","Pick date & time","matTooltip","Pick date & time","tabindex","0","cdkOverlayOrigin","",3,"keydown.enter","keydown.space","click"],["svgIcon","time-24px"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions"],["svgIcon","clear"],[3,"clickOutside"],[3,"cancelClicked",
"dateTimeChange","saveClicked","required","renderPanel","dateTime","includeTimePicker","todayButtonEnabled"]],template:function(a,b){if(a&1){var c=t();K(0,"mat-menu",1);N("closed",function(d){u(c);if(d!=="click")b.onOpen(!1);return v()});K(1,"span",2);N("click",function(d){u(c);return v(b.stopPropagation(d))});Q(2," Snooze until... ");L();K(3,"div",3)(4,"button",4);N("click",function(){u(c);var d=b.laterToday;d&&b.snooze.emit(d);b.onOpen(!1);return v()});Q(5," Later today ");K(6,"span",5);M(7,"b-formatted-date-time",
6);L()();K(8,"button",4);N("click",function(){u(c);var d=b.tomorrow;d&&b.snooze.emit(d);b.onOpen(!1);return v()});Q(9," Tomorrow ");K(10,"span",5);M(11,"b-formatted-date-time",6);L()();K(12,"button",4);N("click",function(){u(c);var d=b.nextWeek;d&&b.snooze.emit(d);b.onOpen(!1);return v()});Q(13," Next week ");K(14,"span",5);M(15,"b-formatted-date-time",6);L()();K(16,"button",4);N("click",function(){u(c);var d=b.nextMonth;d&&b.snooze.emit(d);b.onOpen(!1);return v()});Q(17," Next Month ");K(18,"span",
5);M(19,"b-formatted-date-time",6);L()()();K(20,"div",7);F(21,Uic,3,0,"button",8);K(22,"button",9,0);N("keydown.enter",function(){u(c);b.timePickerOpen=!b.timePickerOpen;return v()})("keydown.space",function(){u(c);b.timePickerOpen=!b.timePickerOpen;return v()})("click",function(){u(c);b.timePickerOpen=!b.timePickerOpen;return v()});M(24,"mat-icon",10);Q(25," Pick date & time ");L()()();E(26,Vic,2,5,"ng-template",11)}a&2&&(B(7),I("date",b.laterToday),B(4),I("date",b.tomorrow),B(4),I("date",b.nextWeek),
B(4),I("date",b.nextMonth),B(2),G(b.isSnoozed?21:-1),B(5),I("cdkConnectedOverlayOrigin",b.datePickerOrigin)("cdkConnectedOverlayOpen",b.timePickerOpen)("cdkConnectedOverlayPositions",Ig(9,A3d,Hg(8,z3d))))},dependencies:[Jy,jV,rV,fH,dH,Vz,Uz,F_],styles:[".date[_ngcontent-%COMP%]{padding-left:20px;float:right}.title[_ngcontent-%COMP%]{padding:15px;font-size:.8rem;font-weight:700}"],changeDetection:0});var C3d=[5433823,5418819,5421028,5122552,5422257];var D3d=function(){this.DMA_TOOLTIP_TEXT="Issues related to DMA are part of a code red at Google, see go/dma52-cy";this.hotlistIds=null;this.onChipClicked=new Ti},E3d=function(a){return C3d.some(function(b){var c;return(c=a.hotlistIds)==null?void 0:c.includes(b)})};D3d.\u0275fac=function(a){return new (a||D3d)};
D3d.\u0275cmp=D({type:D3d,selectors:[["onedev-dma-chip"]],inputs:{hotlistIds:"hotlistIds"},outputs:{onChipClicked:"onChipClicked"},standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],[1,"chip",3,"matTooltip"],[1,"content"],["href","http://go/dma","target","_blank",3,"click"]],template:function(a,b){a&1&&E(0,Wic,5,1,"ng-container",0);a&2&&I("ngIf",E3d(b))},dependencies:[Nx,CX],styles:["[_nghost-%COMP%]{--chip-text:var(--text-inverse,#fff);--chip-bg:var(--red-600,red-600)}body.dark-mode[_nghost-%COMP%], body.dark-mode   [_nghost-%COMP%]{--chip-bg:var(--red-300,red-300)}.chip[_ngcontent-%COMP%]{margin-left:8px;border-radius:10px;color:var(--chip-text);display:inline-block;height:20px;padding:0 6px;background-color:var(--chip-bg)}.chip[_ngcontent-%COMP%]   .content[_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[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}"],
changeDetection:0});var g9=function(){Z.call(this);var a=this;this.errorHandler=p(pO);this.tasksService=p(zQ);this.missionControlPrefs=p(r1);this.domSafe=p(mR);this.router=p(fF);this.appEvents=p(UO);this.analytics=p(eQ);this.clipboard=p(oR);this.activeSession=p(uu);this.needsAttentionTaskFridge=p(BQ);this.butterBar=p(UN);p(c8);this.tailwindApi=p(yZ);this.irmTasks=this.activeSession.getFlag("enableIrmTasks")?["IRM"]:[];this.OPTIONAL_SOURCE_FILTERS=["GERRIT","GOOGLE_TASKS"].concat(q(this.irmTasks));this.ALL_NEEDS_ATTENTION_SOURCE_FILTERS=
[].concat(q(Pid),q(this.OPTIONAL_SOURCE_FILTERS));this.EXTERNAL_NEEDS_ATTENTION_SOURCE_FILTERS=Qid;this.SOURCE_FILTERS=this.activeSession.isInternalSession()?this.ALL_NEEDS_ATTENTION_SOURCE_FILTERS:this.EXTERNAL_NEEDS_ATTENTION_SOURCE_FILTERS;this.ALL_FILTERED_SIGNALS=Tid;this.enableViewDismissedTasks=this.activeSession.getFlag("enableViewDismissedTasks");this.enableStaleTasks=this.activeSession.getFlag("enableStaleTasks");this.enableTailwindMissionControl=this.activeSession.isInternalSession()&&
this.activeSession.getFlag("enableTailwind")&&this.activeSession.getFlag("enableTailwindMissionControl");this.refreshTable=new qf;this.SIGNAL_TO_DISPLAY_TEXT=su;this.SIGNAL_TO_ACTION_TEXT=e3d;this.TaskResourceType=Ubd;this.SignalStatus=igd;this.sources$=this.missionControlPrefs.needsAttentionSources$;this.filteredSignals$=this.missionControlPrefs.needsAttentionFilteredSignals$;this.timeBoundary$=this.missionControlPrefs.prefs$.pipe(A(function(b){var c;return(c=b==null?void 0:b.needsAttentionDaysOld)!=
null?c:30}));this.signalStatusFilter$=new Mj(0);this.allNeedsAttention$=new Mj([]);this.tasksQuery$=ie([this.timeBoundary$,this.sources$,this.signalStatusFilter$,this.filteredSignals$]).pipe(zf(this.destroyed$),nf(function(b,c){return mm(b,c)}),yf(function(b){var c=m(b);b=c.next().value;var d=c.next().value;var e=c.next().value;c=c.next().value;d=d.map(function(f){return or(f)});return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:b,sources:d,signalFilter:e,filterSignals:c})}),vf({bufferSize:1,
refCount:!0}));this.workItems$=this.tasksQuery$.pipe(yf(function(b){return a.activeSession.isExternalSession()?ce([]):Lid(a.tasksService,ckc(b.results)).pipe(gf(function(c){a.errorHandler.errorHandler(null,c);return ce([])}))}));this.liteTasks$=ie([this.tasksQuery$,this.workItems$,this.filteredSignals$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;var e=akc(d);d=bkc(d);e.size>0&&a.analytics.trackEvent("missionControl","display","num-task-iterations",e.size);
d.size>0&&a.analytics.trackEvent("missionControl","display","num-task-okrs",d.size);var f;return Lhc(b,(f=a.signalStatusFilter$.getValue())!=null?f:0,e,d,c)}));this.liteTasksWithTailwindInfo$=this.liteTasks$.pipe(yf(function(b){if(!a.enableTailwindMissionControl)return ce(b);var c=new Set(S0d());if(!c.size)return ce(b);var d=b.filter(function(f){return dkc(f,c)}).map(function(f){return f.issueId}).filter(function(f){return!!f});if(!d.length)return ce(b);b=b.map(function(f){return f.issueId?d.includes(f.issueId)?
Object.assign({},f,{action:"View Issue",tailwindRunStatus:"RUN_STATUS_UNSPECIFIED"}):f:f});var e=HEd(a.tailwindApi,d).pipe(A(function(f){return f.issueRunStatuses})).pipe(A(function(f){return f.map(function(g){a:switch(g.runStatus){case "RUN_STATUS_SUCCESS":var k="View AI fix";break a;case "RUN_STATUS_FAILURE":k="Retry AI fix";break a;default:k="View Issue"}return{issueId:g.issueId,status:g.runStatus,action:k}})}));return oe([e,ce(b)]).pipe(A(function(f){var g=m(f);f=g.next().value;g=g.next().value;
var k=new Map(f.map(function(l){return[l.issueId,l]}));return g.map(function(l){var r=l.issueId?k.get(l.issueId):void 0;return r&&r.action?Object.assign({},l,{action:r.action,tailwindRunStatus:r.status}):l})}),xf(b))}),vf({bufferSize:1,refCount:!0}));this.dismissButtonLabel$=this.signalStatusFilter$.pipe(A(function(b){return b===1?"Un-dismiss":"Dismiss"}));this.dismissButtonTooltip$=this.signalStatusFilter$.pipe(A(function(b){return b===1?"Un-dismiss a work item to move it back to the Active tab":
"Dismiss a work item to hide it from the table"}));this.snoozeButtonLabel$=this.signalStatusFilter$.pipe(A(function(b){return b===2?"Snooze Options":"Snooze"}));this.snoozeButtonTooltip$=this.signalStatusFilter$.pipe(A(function(b){return b===2?"Snooze Options":"Snooze a work item to hide it from the table"}));this.loading$=this.needsAttentionTaskFridge.thinking$;this.tabData=[{signalStatusFilter:0,label:"Active",description:"Shows tasks with at least 1 active signal"},{signalStatusFilter:2,label:"Snoozed",
description:"Shows tasks that are snoozed"},{signalStatusFilter:1,label:"Dismissed",description:"Shows tasks with at least 1 dismissed signal"}];this.displayedColumns="selection type description timestamp signal action buttons".split(" ");this.selection=new xz(!0,[]);this.DEFAULT_NUM_ROWS_DISPLAYED=this.numDisplayedRows=10;this.getSignalUrgency=Nhc;this.getHighestPrioritySignal=Ohc;ie([this.liteTasksWithTailwindInfo$]).pipe(A(function(b){b=m(b).next().value;b.sort(function(c,d){return $n(d.lastAlertTimestamp)-
$n(c.lastAlertTimestamp)});return b}),zf(this.destroyed$)).subscribe(function(b){a.allNeedsAttention$.next(b)});ie([this.timeBoundary$,this.sources$,this.filteredSignals$]).pipe(nf(function(b,c){return mm(b,c)}),yf(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;d=d.map(function(e){return or(e)});return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:b,sources:d,signalFilter:0,filterSignals:c})}),zf(this.destroyed$)).subscribe(function(b){setTimeout(function(){var c=
b.results.filter(function(d){var e;return d.task&&((e=d.signals)==null?void 0:e.filter(function(f){return f.signalStatus===0}))});a.appEvents.missionControlTaskCount.next(c.length)})});this.needsAttentionTaskFridge.error$.pipe(zf(this.destroyed$)).subscribe(function(b){a.errorHandler.errorHandler(null,b)})};Y(g9,Z);g9.\u0275dir=Z.\u0275dir;g9.prototype.ngOnInit=function(){this.refreshTable.pipe(zf(this.destroyed$)).subscribe(this.refreshTaskData.bind(this))};
g9.prototype.refreshTaskData=function(){var a=this,b,c,d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:return z(r,fe(a.timeBoundary$),2);case 2:return c=(b=r.yieldResult)!=null?b:0,z(r,fe(a.sources$),3);case 3:return e=((d=r.yieldResult)!=null?d:[]).map(function(w){return or(w)}),z(r,fe(a.signalStatusFilter$),4);case 4:return g=(f=r.yieldResult)!=null?f:0,z(r,fe(a.filteredSignals$),5);case 5:return l=(k=r.yieldResult)!=null?k:a.ALL_FILTERED_SIGNALS,z(r,Jdd(a.needsAttentionTaskFridge,
{maxTaskAgeDays:c,sources:e,signalFilter:g,filterSignals:l}),0)}})};g9.prototype.toggleAllRows=function(a){this.selection.selected.length===a.length?this.selection.clear():(a=a.map(function(b){return b.id}),this.selection.select.apply(this.selection,q(a)))};g9.prototype.dismissAlert=function(a){ijc(this,[a.id]);if(this.enableTailwindMissionControl&&a.issueId){var b=a.tailwindRunStatus;a.issueId&&(b!=="RUN_STATUS_SUCCESS"&&b!=="RUN_STATUS_FAILURE"||Y$b(a.issueId))}};
var ljc=function(a,b,c){!c||c.getTime()>(new Date).getTime()?(Iid(a.tasksService,b,c?{seconds:(c==null?NaN:c.getTime())/1E3,nanos:0}:void 0).subscribe(function(){},function(d){return void a.errorHandler.errorHandler(null,d)}),F3d(a,new Set(b)),b.forEach(function(){a.analytics.trackEvent("needsAttention","click",c?"snoozeTask":"unsnoozeTask")})):a.butterBar.showWarning("Snooze date must be in the future")},Njc=function(a){if(a=L$a(a.snoozeUntilTimestamp))if(a=a.getTime()-(new Date).getTime(),a>0){a/=
1E3;if(a<60)return"1 min left";if(a<3600)return a=Math.floor(a/60),a+" "+(a===1?"min":"mins")+" left";if(a<86400)return a=Math.floor(a/3600),a+" "+(a===1?"hr":"hrs")+" left";a=Math.floor(a/86400);return a+" "+(a===1?"day":"days")+" left"}};
g9.prototype.navigateToResource=function(a,b,c){if(!(a.defaultPrevented||a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1||a.type==="keydown"&&a instanceof KeyboardEvent&&a.key!=="Enter")){this.sendClickAnalytics(b,c);var d;if(!a||((d=a.target)==null?void 0:d.tagName)!=="A")if(b.type==="ISSUE")b=ot(b.id),b=qs.viewIssue.makeHref(b),bq(a)?this.domSafe.openInNewTab(b):(a==null?0:a.shiftKey)?Er(this.domSafe,b):Ft(this.router,b);else{var e;this.domSafe.openInNewTab((e=b.lastMentionLink)!=null?
e:b.link)}}};
g9.prototype.sendClickAnalytics=function(a,b){this.analytics.trackEvent("missionControl","navigate","needsAttention-"+a.type+"-"+a.signals.map(function(e){return e.type}).join(","));var c=m($jc(a,b)),d=c.next().value;c=c.next().value;this.analytics.trackEvent("missionControl","ctr-sig-yes",d);this.analytics.trackEvent("missionControl","ctr-sig-no",c);G3d(this,a,b);this.enableStaleTasks&&(this.analytics.trackEvent("missionControl","click",a.isStaleTask?"click-stale-yes":"click-stale-no"),a=b.filter(function(e){return e.isStaleTask}).length,
this.analytics.trackEvent("missionControl","display","num-stale-task",a),this.analytics.trackEvent("missionControl","display","num-fresh-tasks",b.length-a))};g9.prototype.setNumDisplayedRows=function(a){this.numDisplayedRows=a.length>this.numDisplayedRows?a.length:10};
var ojc=function(a){var b=new Set(a.selection.selected),c,d;return(d=(c=a.allNeedsAttention$.getValue())==null?void 0:c.some(function(e){return b.has(e.id)&&!e.signals.some(function(f){return f.type==="DRIVE_MANUAL_SIGNAL"||f.type==="CHANGELIST_MANUAL_SIGNAL"||f.type==="ISSUE_MANUALLY_SIGNALED"||f.type==="GERRIT_MANUAL_SIGNAL"||f.type==="GOOGLE_TASKS_MANUAL_SIGNAL"||f.type==="IRM_MANUAL_SIGNAL"})}))!=null?d:!1},ijc=function(a,b){var c,d;y(function(e){if(e.nextAddress==1)return z(e,fe(a.signalStatusFilter$),
2);c=e.yieldResult;Gid(a.tasksService,b,c!==1).subscribe(function(){},function(f){return void a.errorHandler.errorHandler(null,f)});d=new Set(b);return z(e,F3d(a,d),0)})},njc=function(a){var b=a.selection.selected,c=ojc(a);a.analytics.trackEvent("manualSignal",c?"add":"remove","bulkControls",b.length);Hid(a.tasksService,b,c).subscribe(function(){a.refreshTaskData()},function(d){return void a.errorHandler.errorHandler(null,d)});a.selection.clear()};
g9.prototype.copyIdOrLink=function(a){a.type==="ISSUE"?(a=ot(a.id))&&this.clipboard.copy(a):this.clipboard.copy(a.link)};g9.prototype.sendDmaAnalytics=function(){this.analytics.trackEvent("missionControl","click","dmaChip")};g9.prototype.extractLastDigits=function(a){var b;return(b=ot(a))!=null?b:""};var xjc=function(a){return a.type==="ISSUE"?"/issues/"+a.issueId:a.lastMentionLink?a.lastMentionLink:a.link};
g9.prototype.onTabIndexChange=function(a){this.allNeedsAttention$.next([]);this.selection.clear();var b;this.signalStatusFilter$.next((b=this.tabData[a])==null?void 0:b.signalStatusFilter);var c;this.analytics.trackEvent("missionControl","view",(c=this.tabData[a])==null?void 0:c.label)};g9.prototype.hasFutureAvailability=function(a){var b,c;return!!(((b=a.futureAvailability)==null?0:b.futureOooTimestamp)&&((c=a.futureAvailability)==null?0:c.comeBackTimestamp))};
var F3d=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=a.allNeedsAttention$.getValue(),a.allNeedsAttention$.next(c.filter(function(f){return!b.has(f.id)})),z(e,fe(a.signalStatusFilter$),2);d=e.yieldResult;d===0&&a.appEvents.missionControlTaskCount.next(c.filter(function(f){return!b.has(f.id)}).length);ae(e)})},G3d=function(a,b,c){H3d(a,b,c);I3d(a,b,c)},H3d=function(a,b,c){a.hasFutureAvailability(b)?a.analytics.trackEvent("missionControl","ctr-signal-attributes","availability",
!0):c.some(function(d){return a.hasFutureAvailability(d)})&&a.analytics.trackEvent("missionControl","ctr-signal-attributes","availability",!1)},I3d=function(a,b,c){b.reviewEstimate?a.analytics.trackEvent("missionControl","ctr-signal-attributes","review-time",!0):c.some(function(d){return!!d.reviewEstimate})&&a.analytics.trackEvent("missionControl","ctr-signal-attributes","review-time",!1)};g9.\u0275fac=function(a){return new (a||g9)};
g9.\u0275cmp=D({type:g9,selectors:[["b-needs-attention-table"]],inputs:{refreshTable:"refreshTable"},standalone:!1,features:[Ef],decls:13,vars:13,consts:[["pickerToggle","bAddTaskDialogToggle"],["bulkSnoozeButton",""],["snoozeMenu",""],["snoozeButton",""],["gmat-tabs","","matAlignTabs","start","matStretchTabs","false","preserveContent","",3,"selectedIndex"],[1,"flex-kids-x","align-items-center","padded-xs-y","border-bottom"],[1,"heading-s"],[1,"border-left","padded-s-left","padded-s-right",3,"selectedTimeBoundary"],
[1,"border-left","padded-s-left"],[1,"text-center","border-bottom","padded-s-y"],["gmat-tabs","","matAlignTabs","start","matStretchTabs","false","preserveContent","",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"tab-label",3,"matTooltip"],[1,"padded-s-x",3,"sourceFilterKeys","selectedSources","selectedSignals"],[1,"padded-s-x",3,"changeSourceAndFilteredSignals","changeSourceFilter","sourceFilterKeys","selectedSources","selectedSignals"],[1,"border-left","padded-s-left","padded-s-right",
3,"change","selectedTimeBoundary"],["mat-button","","type","button","bAddTaskDialogToggle","",1,"add-task-button",3,"taskAdded"],[1,"muted","border-bottom","padded-s-y"],["mat-table","","aria-label","Table of alerts",1,"full-width",3,"dataSource"],["matColumnDef","selection"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["matColumnDef","timestamp"],["matColumnDef","signal"],["matColumnDef","action"],["matColumnDef",
"buttons"],["mat-header-cell","","class","border-bottom",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["class","mat-row padded-y",4,"matNoDataRow"],["type","button","mat-button","",1,"margin-s-top"],["mat-header-cell",""],["aria-label","Select all alerts",3,"change","checked","indeterminate"],["mat-cell",""],["aria-label","Select alert",3,"click","change","checked"],["role","img","aria-hidden","false",
"matTooltipPosition","left",3,"matTooltip","svgIcon"],["type","button","mat-button","",1,"bulk-dismiss"],["type","button","mat-button","",1,"bulk-manual-signal"],["type","button","mat-button","",1,"bulk-dismiss",3,"click"],["mat-button","",1,"bulk-snooze",3,"matMenuTriggerFor"],[3,"snooze","unsnooze","isSnoozed","datePickerAnchor"],["type","button","mat-button","",1,"bulk-manual-signal",3,"click"],[1,"flex-kids-x","align-items-center"],[1,"italic"],[3,"issueId"],[3,"okrIds"],[3,"iteration"],[1,"going-ooo",
3,"matTooltip"],["matTooltip","Estimated review time (visible only to you)",1,"review-estimate"],[1,"margin-s-right",3,"issuePriority"],["tabindex","0","role","link",1,"subtle-link","break-word","grow-1",3,"auxclick","href"],[3,"onChipClicked","hotlistIds"],["svgIcon","event_upcoming_24px"],[3,"click","taskId","lastAlertTimestamp"],["mode","relativepastshort",3,"timestamp","paddingLeftPx"],[3,"issueId","signals","tailwindRunStatus"],["mat-button","","tabindex","0","role","link",1,"primary","action-button",
3,"href"],["mat-header-cell","",1,"border-bottom"],[1,"snooze-time"],[1,"buttons-container"],["type","button","mat-icon-button","",1,"copy-btn","xs",3,"click","matTooltip"],["svgIcon","copy","color","primary",1,"copy-icon"],["type","button","mat-icon-button","",1,"dismiss-btn","xs",3,"click","ariaLabel","matTooltip"],["svgIcon","issue-status-wont-fix","color","primary",1,"dismiss-icon"],["type","button","mat-icon-button","",1,"snooze-btn","xs",3,"click","ariaLabel","matTooltip","matMenuTriggerFor"],
["svgIcon","time-24px","color","primary",1,"snooze-icon"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],[1,"mat-row","padded-y"],["colspan","7",1,"mat-cell","type-l","text-center","padded-top"],["type","button","mat-button","",1,"margin-s-top",3,"click"],["svgIcon","arrow-down",1,"icon"],["svgIcon","arrow-up",1,"icon"],[3,"ariaLabel"]],template:function(a,b){a&1&&(F(0,Zic,3,1,"mat-tab-group",4),K(1,"div",5)(2,"span",6),Q(3,"Sources"),L(),F(4,ajc,2,3),T(5,"async"),F(6,bjc,1,1,"time-boundary-filter",
7),T(7,"async"),F(8,cjc,4,0,"div",8),L(),F(9,Yjc,2,3),T(10,"async"),T(11,"async"),Kf(12,Zjc,2,1,"div",9));if(a&2){var c,d;G(b.enableViewDismissedTasks?0:-1);B(4);G((c=U(5,5,b.sources$))?4:-1,c);B(2);G((d=U(7,7,b.timeBoundary$))?6:-1,d);B(2);G(b.signalStatusFilter$.getValue()===b.SignalStatus.ACTIVE?8:-1);B();G(U(10,9,b.liteTasksWithTailwindInfo$)&&!U(11,11,b.loading$)?9:12)}},dependencies:[Jy,rV,UW,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,YT,BL,vL,wL,xL,kL,hI,vK,nA,kB,gB,iB,d9,f9,e9,cU,vW,D3d,KW,i3d,n3d,iH,
l3d,V8,T8,Tx,Zx,c3d],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}tr.mat-mdc-row[_ngcontent-%COMP%]   .mat-column-active-indicator[_ngcontent-%COMP%]{cursor:pointer;display:table-cell;padding:0 1.5px;width:0}tr.mat-mdc-row.active[_ngcontent-%COMP%]   .mat-column-active-indicator[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]:focus-within   .mat-column-active-indicator[_ngcontent-%COMP%]{outline:none;background-color:#4285f4;background-color:var(--primary-c500)}[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     mat-spinner.large{top:unset}[_nghost-%COMP%]     .add-task-button:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple, [_nghost-%COMP%]     .bulk-snooze:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple, [_nghost-%COMP%]     .copy-btn:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple, [_nghost-%COMP%]     .dismiss-btn:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple, [_nghost-%COMP%]     .snooze-btn:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple{--mat-icon-button-focus-state-layer-opacity:0}.mat-column-selection[_ngcontent-%COMP%]{text-align:center}.mat-column-type[_ngcontent-%COMP%]{text-align:center}.mat-column-type[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.product-icon.critique-logo[_ngcontent-%COMP%]{max-width:20px}.product-icon.drive-doc[_ngcontent-%COMP%]{color:#1967d2}.product-icon.drive-sheet[_ngcontent-%COMP%]{color:#1e8e3e}.product-icon.drive-slide[_ngcontent-%COMP%]{color:#f9ab00}.product-icon.gerrit-logo[_ngcontent-%COMP%]{max-width:20px}th.mat-column-signal[_ngcontent-%COMP%]{padding-left:8px}th.mat-column-action[_ngcontent-%COMP%]{padding-left:12px}th.mat-column-description[_ngcontent-%COMP%]{overflow:visible}th.mat-column-buttons[_ngcontent-%COMP%]{padding-left:12px}.copy-icon[_ngcontent-%COMP%]{opacity:0;margin-bottom:1px}.dismiss-icon[_ngcontent-%COMP%]{opacity:0;margin-bottom:1px}.snooze-icon[_ngcontent-%COMP%]{opacity:0;margin-bottom:1px}.buttons-container[_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;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.snooze-time[_ngcontent-%COMP%]{position:absolute;padding-left:12px}.copy-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .copy-icon[_ngcontent-%COMP%], .copy-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .dismiss-icon[_ngcontent-%COMP%], .copy-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .snooze-icon[_ngcontent-%COMP%], .dismiss-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .copy-icon[_ngcontent-%COMP%], .dismiss-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .dismiss-icon[_ngcontent-%COMP%], .dismiss-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .snooze-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .copy-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .dismiss-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .snooze-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .copy-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .dismiss-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .snooze-icon[_ngcontent-%COMP%], .snooze-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .copy-icon[_ngcontent-%COMP%], .snooze-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .dismiss-icon[_ngcontent-%COMP%], .snooze-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .snooze-icon[_ngcontent-%COMP%]{opacity:1;color:#1a73e8;color:var(--primary);background-color:unset}.copy-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .snooze-time[_ngcontent-%COMP%], .dismiss-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .snooze-time[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .snooze-time[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .snooze-time[_ngcontent-%COMP%], .snooze-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .snooze-time[_ngcontent-%COMP%]{opacity:0;display:none}a.action-button[_ngcontent-%COMP%]{color:#1a73e8;color:var(--link);white-space:nowrap}a.action-button[_ngcontent-%COMP%]:active, a.action-button[_ngcontent-%COMP%]:focus, a.action-button[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}.bulk-dismiss[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:-32px}.bulk-manual-signal[_ngcontent-%COMP%]{height:24px;line-height:24px}.bulk-snooze[_ngcontent-%COMP%]{height:24px;line-height:24px}.review-estimate[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg);height:18px;line-height:18px;padding:0 8px}.going-ooo[_ngcontent-%COMP%]{background-color:#fff8e4;background-color:var(--yellow-bg);color:#8f6b00;color:var(--yellow-text);-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;height:18px;padding:0 4px}.going-ooo[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:16px;width:16px}.going-ooo[_ngcontent-%COMP%], .review-estimate[_ngcontent-%COMP%]{border-radius:4px;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;margin-right:4px;vertical-align:middle}"],
changeDetection:0});var h9=function(){Z.call(this);var a=this;this.prefsService=p(r1);this.appEvents=p(UO);this.analytics=p(eQ);this.numNeedsAttentionTasks$=this.appEvents.missionControlTaskCount;this.refreshData=new qf;this.numNeedsAttentionTasks$.pipe(ue(Pm),lf(1),zf(this.destroyed$)).subscribe(function(e){a.analytics.trackEvent("missionControl","display","num-needs-attention-"+e,e)});var b,c=(b=this.prefsService.prefs.needsAttentionSources)!=null?b:[];b=this.prefsService.prefs.isNeedsAttentionSourcesConfigured;c=
c.length!==0||b?c:[].concat(q(Pid));var d;b=(d=this.prefsService.prefs.needsAttentionDaysOld)!=null?d:30;this.analytics.trackEvent("missionControl","view","needsAttention-sources-"+c.join(",")+"-"+b)};Y(h9,Z);h9.\u0275dir=Z.\u0275dir;h9.prototype.isCollapsed=function(){return this.prefsService.isCollapsed("needs-attention-wrapper")};h9.prototype.ariaLabelForToggleButton=function(){return this.isCollapsed()?"Expand needs attention section":"Collapse needs attention section"};
h9.prototype.toggleCollapsed=function(){this.prefsService.toggleCollapsed("needs-attention-wrapper")};h9.\u0275fac=function(a){return new (a||h9)};
h9.\u0275cmp=D({type:h9,selectors:[["needs-attention-wrapper"]],inputs:{refreshData:"refreshData"},standalone:!1,features:[Ef],decls:10,vars:7,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center"],[1,"heading-s"],["svgIcon","info","tabindex","0","role","button","aria-hidden","false","aria-label","Work items which require actions from you","matTooltip","Work items which require actions from you",1,"info","margin-s-left"],["type","button","mat-icon-button","",1,"small","collapse-btn",
"margin-s-left",3,"click"],["svgIcon","arrow-up",1,"icon-m"],[1,"alert-count-badge","b-chip"],[1,"main-content"],[1,"alert-count"],[3,"refreshTable"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"header",1)(2,"h3",2),Q(3," Needs attention "),L(),M(4,"mat-icon",3),K(5,"button",4),N("click",function(){return b.toggleCollapsed()}),M(6,"mat-icon",5),L(),F(7,ekc,3,1,"div",6),T(8,"async"),L(),F(9,fkc,2,1,"div",7),L());if(a&2){var c;wg("collapsed",b.isCollapsed());B(5);If("aria-label",b.ariaLabelForToggleButton());
B(2);G((c=U(8,5,b.numNeedsAttentionTasks$))?7:-1,c);B(2);G(b.isCollapsed()?-1:9)}},dependencies:[Jy,kB,iB,g9,vK,nA,Tx],styles:["[_nghost-%COMP%]{display:block}.collapse-btn[_ngcontent-%COMP%]{-webkit-transition:-webkit-transform .1s ease-in-out;transition:-webkit-transform .1s ease-in-out;transition:transform .1s ease-in-out;transition:transform .1s ease-in-out,-webkit-transform .1s ease-in-out}.collapsed[_ngcontent-%COMP%]   .collapse-btn[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.carded[_ngcontent-%COMP%]{-webkit-transition:none .1s ease-in-out;transition:none .1s ease-in-out;-webkit-transition-property:padding;transition-property:padding}.carded.collapsed[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.alert-count-badge[_ngcontent-%COMP%]{margin-left:8px;background-color:#c5221f;background-color:var(--text-bad);color:#fff;color:var(--text-inverse);line-height:24px;border-radius:12px}.alert-count-badge[_ngcontent-%COMP%]   .alert-count[_ngcontent-%COMP%]{font-size:.8125rem;height:24px;text-align:center}.info[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);height:20px;width:20px}"]});var J3d=function(){this.DEFINITIONS=Sid;this.sourceFilterKeys=[];this.selectedSources=[];this.change=new aQ};J3d.prototype.sourceFilterChange=function(a){this.selectedSources=a.value;this.change.emit(a.value)};J3d.\u0275fac=function(a){return new (a||J3d)};
J3d.\u0275cmp=D({type:J3d,selectors:[["source-filter-chips"]],inputs:{sourceFilterKeys:"sourceFilterKeys",selectedSources:"selectedSources"},outputs:{change:"change"},standalone:!1,decls:3,vars:0,consts:[["multiple","","aria-label","Source selection",3,"change"],["appearance","hairline-filter",3,"value","selected"],[3,"matTooltip"]],template:function(a,b){a&1&&(K(0,"mat-chip-listbox",0),N("change",function(c){return b.sourceFilterChange(c)}),Nf(1,hkc,1,1,null,null,Mf),L());a&2&&(B(),Of(b.sourceFilterKeys))},
dependencies:[UK,bL,aL,vK,nA],encapsulation:2});var Xkc=function(){return[]},Ykc=function(){return["moreRows"]},i9=function(){Z.call(this);var a=this;this.prefsService=p(r1);this.issueFridge=p(XP);this.router=p(fF);this.domSafe=p(mR);this.analytics=p(eQ);this.errorHandler=p(pO);this.activeSession=p(uu);this.clipboard=p(oR);this.myTasksFridge=p(AQ);this.tasksService=p(zQ);this.isInternalSession=this.activeSession.isInternalSession();this.irmTasks=this.activeSession.getFlag("enableIrmTasks")?["IRM"]:[];this.OPTIONAL_SOURCE_FILTERS=["GERRIT"].concat(q(this.irmTasks));
this.MY_TASK_DEFAULT_FILTERS=[].concat(q(Rid),q(this.OPTIONAL_SOURCE_FILTERS));this.ONLY_OWNED_TASK_FILTERS=[].concat(q(this.MY_TASK_DEFAULT_FILTERS),["GOOGLE_TASKS"]);this.TaskResourceType=Ubd;this.taskResourceTypeToIcon=s2a;this.extractLastDigits=ot;this.tableColumns=[].concat(q(NFd));this.tableOptions=Object.assign({},QFd,{showActiveIndicator:!1,rowLimit:10});this.refreshData=new qf;this.manualSignalTriggered=new aQ;this.sources$=this.prefsService.myTasksSources$;this.timeBoundary$=this.prefsService.prefs$.pipe(A(function(e){var f;
return(f=e==null?void 0:e.myTasksDaysOld)!=null?f:7}));var b;this.INITIAL_TAB_INDEX=(b=TLd(this.prefsService,"mc-my-tasks"))!=null?b:0;this.MY_TASK_FILTERS=this.INITIAL_TAB_INDEX===0?this.ONLY_OWNED_TASK_FILTERS:this.MY_TASK_DEFAULT_FILTERS;this.isSavingManualSignal=!1;var c;this.tabData=[{label:"Owned",description:"Tasks you own or are the author of",liteTasks:new Mj([]),loading:!0},{label:"Collaborating",description:"Tasks you're working on or contributing to (but don't own)",liteTasks:new Mj([]),
loading:!0},{label:"Following",description:"Tasks you're tracking or have recent activities on",liteTasks:new Mj([]),loading:!0},ikc(this.issueFridge,(c=this.activeSession.getTracker())==null?void 0:c.trackerId)].filter(Pm);this.myTasks$=ie([this.timeBoundary$,this.sources$]).pipe(zf(this.destroyed$),nf(function(e,f){return e[0]===f[0]&&mm(e[1],f[1])}),yf(function(e){var f=m(e);e=f.next().value;f=f.next().value;var g=new Set(f.map(function(k){return or(k)}));return a.myTasksFridge.watchMany({maxTaskAgeDays:e,
sources:Array.from(g),issueFilter:jkc(f)})}));this.displayColumns="type title modified role created options".split(" ");this.DEFAULT_NUM_ROWS_DISPLAYED=this.numDisplayedRows=10;this.myTasks$.pipe(zf(this.destroyed$)).subscribe(function(e){var f=e.results;e=f.filter(function(w){return w.resourceRelationships.filter(function(x){return x.category==="OWNER"}).length>0}).sort(elc);var g=f.filter(function(w){return w.resourceRelationships.filter(function(x){return x.category==="COLLABORATOR"}).length>0}).sort(elc);
f=f.filter(function(w){return w.resourceRelationships.filter(function(x){return x.category==="FOLLOWING"}).length>0}).sort(elc);var k;(k=a.tabData[0].liteTasks)==null||k.next(e);var l;(l=a.tabData[1].liteTasks)==null||l.next(g);var r;(r=a.tabData[2].liteTasks)==null||r.next(f);a.tabData[0].loading=!1;a.tabData[1].loading=!1;a.tabData[2].loading=!1});var d;this.analytics.trackEvent("missionControl","display","my-tasks-"+((d=this.tabData[this.INITIAL_TAB_INDEX])==null?void 0:d.label));this.myTasksFridge.error$.pipe(zf(this.destroyed$)).subscribe(function(e){a.errorHandler.errorHandler(null,
e)})};Y(i9,Z);i9.\u0275dir=Z.\u0275dir;h=i9.prototype;h.ngOnInit=function(){var a=this;this.refreshData.pipe(zf(this.destroyed$)).subscribe(function(){var b,c=(b=a.prefsService.prefs.myTasksDaysOld)!=null?b:7;b=a.prefsService.getMyTasksSources();var d=new Set(b.map(function(e){return or(e)}));a.myTasksFridge.watchMany({maxTaskAgeDays:c,sources:Array.from(d),issueFilter:jkc(b)})})};h.toggleCollapsed=function(){this.prefsService.toggleCollapsed("mc-my-tasks")};h.isCollapsed=function(){return this.prefsService.isCollapsed("mc-my-tasks")};
h.ariaLabelForToggleButton=function(){return this.isCollapsed()?"Expand recent items section":"Collapse recent items section"};h.setNumDisplayedRows=function(a){this.numDisplayedRows=a.length>this.numDisplayedRows?a.length:10};h.onTabIndexChange=function(a){UGb(this.prefsService,"mc-my-tasks",a);this.numDisplayedRows=10;var b;this.analytics.trackEvent("missionControl","view",(b=this.tabData[a])==null?void 0:b.label);this.MY_TASK_FILTERS=a===0?this.ONLY_OWNED_TASK_FILTERS:this.MY_TASK_DEFAULT_FILTERS};
h.navigateToResource=function(a,b){if(!(a.defaultPrevented||a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1)){this.sendClickAnalytics(b);var c;a&&((c=a.target)==null?void 0:c.tagName)==="A"||(b.taskResourceType==="ISSUE"?(b=ot(b.taskId),b=qs.viewIssue.makeHref(b),bq(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Er(this.domSafe,b):Ft(this.router,b)):this.domSafe.openInNewTab(b.externalLink))}};
h.copyIdOrLink=function(a){a.taskResourceType==="ISSUE"?(a=ot(a.taskId),this.clipboard.copy(a)):this.clipboard.copy(a.externalLink)};var Mkc=function(a,b){a.isSavingManualSignal=!0;a.analytics.trackEvent("manualSignal","add","myTasksRow");var c=b.taskResourceType==="ISSUE"?3E3:0;Hid(a.tasksService,[b.taskId],!0).pipe(mf(c)).subscribe(function(){a.manualSignalTriggered.emit(b);a.isSavingManualSignal=!1},function(d){a.errorHandler.errorHandler(null,d);a.isSavingManualSignal=!1})};
i9.prototype.sendClickAnalytics=function(a){var b,c=((b=a.resourceRelationships[0].roleName)!=null?b:"").split(" ").map(function(d,e){return e===0?d.toLowerCase():d.charAt(0).toUpperCase()+d.substring(1).toLowerCase()}).join("");this.analytics.trackEvent("missionControl","navigate","myTasks-"+a.taskResourceType+"-"+c)};i9.prototype.sendDmaAnalytics=function(){this.analytics.trackEvent("missionControl","click","dmaChip")};i9.prototype.getIds=function(a){return a.map(function(b){return b.issueId})};
var ykc=function(a){return a==="P0"||a==="P1"};i9.\u0275fac=function(a){return new (a||i9)};
i9.\u0275cmp=D({type:i9,selectors:[["my-tasks"]],inputs:{refreshData:"refreshData"},outputs:{manualSignalTriggered:"manualSignalTriggered"},standalone:!1,features:[Ef],decls:8,vars:4,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center"],[1,"heading-s"],["svgIcon","info","tabindex","0","role","button","aria-hidden","false","aria-label","Recent items helps you quickly find your active tasks and docs organized by your relation to them","matTooltip","Recent items helps you quickly find your active tasks and docs organized by your relation to them",
1,"info","margin-s-left"],["type","button","mat-icon-button","",1,"small","collapse-btn","margin-s-left",3,"click"],["svgIcon","arrow-up",1,"icon-m"],[1,"main-content","margin-s-top"],["gmat-tabs","","matAlignTabs","start","matStretchTabs","false","preserveContent","",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"tab-filters","flex-kids-x","align-items-center","padded-xs-y","border-bottom"],[1,"text-center","border-bottom","padded-s-y"],[1,"tab-label",3,"matTooltip"],[1,"border-left",
"padded-s-left",3,"selectedTimeBoundary"],[1,"padded-s-x",3,"sourceFilterKeys","selectedSources"],[1,"padded-s-x",3,"change","sourceFilterKeys","selectedSources"],[1,"border-left","padded-s-left",3,"change","selectedTimeBoundary"],[3,"issueIds","tableColumns","options"],["mat-table","",3,"dataSource","class"],[1,"muted","border-bottom","padded-s-y"],["mat-table","",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],
["matColumnDef","modified"],["matColumnDef","role"],["matColumnDef","created"],["matColumnDef","options"],["mat-header-cell","","class","options-column border-bottom",4,"matHeaderCellDef"],["mat-cell","","class","options-column",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","moreRows"],["mat-footer-cell","","colspan","2",4,"matFooterCellDef"],["mat-footer-row","",3,"hidden",4,"matFooterRowDef"],
["class","mat-row padded-y",4,"matNoDataRow"],["mat-header-cell",""],["mat-cell",""],["matTooltipPosition","left",3,"matTooltip","svgIcon"],[1,"italic"],[3,"issueId","compactMode"],[1,"margin-xs-right",3,"issuePriority"],[1,"subtle-link","break-word",3,"auxclick","href"],[3,"hotlistIds"],[3,"onChipClicked","hotlistIds"],["mode","relativepastshort",3,"timestamp","paddingLeftPx"],["mat-header-cell","",1,"options-column","border-bottom"],["mat-cell","",1,"options-column"],[1,"buttons-container"],["type",
"button","mat-icon-button","","aria-label","Trigger a needs attention alert on this task",1,"manual-signal-btn","xs",3,"click","disabled","matTooltip"],["svgIcon","label_important_outline_24px","color","primary",1,"manual-signal-icon"],["type","button","mat-icon-button","",1,"copy-btn","xs",3,"click","matTooltip"],["svgIcon","copy","color","primary",1,"copy-icon"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],["mat-footer-cell","","colspan","2"],["type","button","mat-button","",1,"margin-s-top"],
["type","button","mat-button","",1,"margin-s-top",3,"click"],["svgIcon","arrow-down",1,"icon"],["svgIcon","arrow-up",1,"icon"],["mat-footer-row","",3,"hidden"],[1,"mat-row","padded-y"],["colspan","5",1,"mat-cell","type-l","text-center","padded-top"],[3,"ariaLabel"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"header",1)(2,"h3",2),Q(3," Recent items "),L(),M(4,"mat-icon",3),K(5,"button",4),N("click",function(){return b.toggleCollapsed()}),M(6,"mat-icon",5),L()(),F(7,dlc,4,1,"div",6),L());a&2&&(wg("collapsed",
b.isCollapsed()),B(5),If("aria-label",b.ariaLabelForToggleButton()),B(2),G(b.isCollapsed()?-1:7))},dependencies:[Jy,vW,cU,J3d,e9,rV,D3d,KW,XZ,kB,gB,iB,BL,vL,wL,xL,UW,ZT,MT,ST,OT,LT,UT,NT,TT,PT,RT,QT,VT,XT,WT,YT,vK,nA,Tx],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}[_nghost-%COMP%]{display:block}.collapse-btn[_ngcontent-%COMP%]{-webkit-transition:-webkit-transform .1s ease-in-out;transition:-webkit-transform .1s ease-in-out;transition:transform .1s ease-in-out;transition:transform .1s ease-in-out,-webkit-transform .1s ease-in-out}.collapsed[_ngcontent-%COMP%]   .collapse-btn[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.carded[_ngcontent-%COMP%]{-webkit-transition:none .1s ease-in-out;transition:none .1s ease-in-out;-webkit-transition-property:padding;transition-property:padding}.carded.collapsed[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.time-boundary-listbox[_ngcontent-%COMP%]   mat-chip-option[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{cursor:pointer}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed}mat-header-row[_ngcontent-%COMP%], mat-row[_ngcontent-%COMP%]{min-height:2rem}mat-header-cell[_ngcontent-%COMP%]{font-weight:500}.mat-mdc-cell[_ngcontent-%COMP%], .mat-mdc-header-cell[_ngcontent-%COMP%]{padding:0 .75rem}.mat-column-type[_ngcontent-%COMP%]{width:4%;min-width:45px;text-align:center}.mat-column-type[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.mat-column-created[_ngcontent-%COMP%], .mat-column-modified[_ngcontent-%COMP%]{min-width:180px;width:12%}.mat-column-role[_ngcontent-%COMP%]{min-width:100px;width:10%}.options-column[_ngcontent-%COMP%]{width:64px;text-align:center}.mat-column-moreRows[_ngcontent-%COMP%]{border:none}.product-icon.critique-logo[_ngcontent-%COMP%]{max-width:20px}.product-icon.drive-doc[_ngcontent-%COMP%]{color:#1967d2}.product-icon.drive-sheet[_ngcontent-%COMP%]{color:#1e8e3e}.product-icon.drive-slide[_ngcontent-%COMP%]{color:#f9ab00}.product-icon.gerrit-logo[_ngcontent-%COMP%]{max-width:20px}.info[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);height:20px;width:20px}.tab-label[_ngcontent-%COMP%]{cursor:pointer}.buttons-container[_ngcontent-%COMP%]{width:100%;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;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}button.manual-signal-btn[disabled][_ngcontent-%COMP%]{opacity:.35}.copy-icon[_ngcontent-%COMP%], .manual-signal-icon[_ngcontent-%COMP%]{color:#fff;color:var(--background);margin-bottom:1px;max-width:20px}.copy-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .buttons-container[_ngcontent-%COMP%], .copy-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .copy-icon[_ngcontent-%COMP%], .copy-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .manual-signal-icon[_ngcontent-%COMP%], .manual-signal-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .buttons-container[_ngcontent-%COMP%], .manual-signal-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .copy-icon[_ngcontent-%COMP%], .manual-signal-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .manual-signal-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .buttons-container[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .copy-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .manual-signal-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .buttons-container[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .copy-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .manual-signal-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--primary);background-color:unset}[_nghost-%COMP%]     .copy-btn:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple, [_nghost-%COMP%]     .manual-signal-btn:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple{--mat-icon-button-focus-state-layer-opacity:0}\n/*# sourceMappingURL=my_tasks.css.map */"]});var j9=function(){Z.call(this);var a=this;this.hostElement=p(Hd);this.analytics=p(eQ);this.userFeedback=p(MY);this.prefsService=p(r1);this.hatsService=p(TX);this.appSearchState=p(rT);this.activeSession=p(uu);this.isInternalSession=this.activeSession.isInternalSession();this.HOTKEYS=Xr;this.refreshAllMissionControlData=new qf;this.refreshNeedsAttentionData=new qf;this.captureAnyClick=function(b){b=UYa(b);for(var c=m(Object.entries(K3d)),d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;
e=e.next().value;if(b.includes(d)){a.analytics.trackEvent("missionControl","click",e);break}}};this.refreshAllMissionControlData.pipe(zf(this.destroyed$)).subscribe(function(){a.refreshNeedsAttentionData.next()})};Y(j9,Z);j9.\u0275dir=Z.\u0275dir;
j9.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()});this.hostElement.nativeElement.addEventListener("click",this.captureAnyClick,!0);var b=m(L3d(this)),c=b.next().value;b=b.next().value;this.analytics.trackEvent("missionControl","sections-on-load",c,b);lyd(this.hatsService,"u5xoTzKbb0g6pPHSLo10WcCoiLmK").pipe(zf(this.destroyed$)).subscribe()};
j9.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.captureAnyClick,!0)};var L3d=function(a){a=[a.prefsService.isCollapsed("needs-attention-wrapper")?"-":"a",a.prefsService.isCollapsed("mc-my-tasks")?"-":"t",a.prefsService.isCollapsed("work-areas-wrapper-card")?"-":"w"];var b=a.filter(function(c){return c!=="-"}).length;return[a.join(""),b]};j9.prototype.refresh=function(){this.refreshAllMissionControlData.next()};
j9.\u0275fac=function(a){return new (a||j9)};
j9.\u0275cmp=D({type:j9,selectors:[["ng-component"]],standalone:!1,features:[Ef],decls:10,vars:5,consts:[[1,"a11y-only"],["cdkScrollable","",1,"padded-s","flex-kids-y","gap-s","pos-fill","bg-off-main","overflow","overflow-on-print-media",3,"onHotkey","hotkey"],["class","flex-kids-x align-items-center justify-flex-end info-row",4,"ngIf"],[1,"a"],[3,"refreshData"],[1,"t"],[3,"manualSignalTriggered","refreshData"],[1,"w"],[1,"flex-kids-x","align-items-center","justify-flex-end","info-row"],["type","button",
"mat-stroked-button","",1,"small",3,"click"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1,"Mission Control"),L(),K(2,"div",1),N("onHotkey",function(){return b.refresh()}),E(3,glc,3,0,"div",2),K(4,"section",3),M(5,"needs-attention-wrapper",4),L(),K(6,"section",5)(7,"my-tasks",6),N("manualSignalTriggered",function(){return b.refreshNeedsAttentionData.next()}),L()(),K(8,"section",7),M(9,"work-areas-wrapper-card",4),L()());a&2&&(B(2),I("hotkey",b.HOTKEYS.REFRESH_ISSUE_LIST),B(),I("ngIf",b.isInternalSession),
B(2),I("refreshData",b.refreshNeedsAttentionData),B(2),I("refreshData",b.refreshAllMissionControlData),B(2),I("refreshData",b.refreshAllMissionControlData))},dependencies:[Nx,kB,gB,wz,U1,h9,i9,pU],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     section>*>.carded{box-shadow:0 1px 2px 0 hsla(0,0%,50%,.3),0 2px 6px 2px hsla(0,0%,50%,.15);border:none}.dark-mode   [_nghost-%COMP%]     section>*>.carded{box-shadow:0 2px 3px 0 rgba(0,0,0,.3),0 6px 10px 4px rgba(0,0,0,.15)}.learn-more-link[_ngcontent-%COMP%]{color:#185abc;color:var(--link-high-contrast)}.learn-more-link[_ngcontent-%COMP%]:hover{text-decoration:underline}\n/*# sourceMappingURL=mission_control_wrapper.css.map */"]});
var K3d={"NEEDS-ATTENTION-WRAPPER":"needs-attention","MY-TASKS":"my-tasks","MY-TASKS-V1":"my-tasks","WORK-AREAS-WRAPPER-CARD":"work-areas"};var M3d=function(){this.timeZones=p(fS);this.label="Time zone";this.timezoneId="";this.fullWidth=this.disabled=!1;this.timezoneIdChange=new aQ;this.timeZoneOptions$=umd(this.timeZones).pipe(A(function(a){return a.sort(ilc)}))};M3d.\u0275fac=function(a){return new (a||M3d)};
M3d.\u0275cmp=D({type:M3d,selectors:[["b-timezone-picker"]],inputs:{label:"label",timezoneId:"timezoneId",disabled:"disabled",fullWidth:"fullWidth"},outputs:{timezoneIdChange:"timezoneIdChange"},standalone:!1,decls:7,vars:7,consts:[["appearance","outline",1,"form-field-wide-select"],[3,"ngModelChange","disabled","ngModel"],[3,"value"]],template:function(a,b){a&1&&(K(0,"mat-form-field",0)(1,"mat-label"),Q(2),L(),K(3,"mat-select",1),N("ngModelChange",function(c){b.timezoneId!==c&&(b.timezoneId=c,b.timezoneIdChange.emit(b.timezoneId))}),
Nf(4,hlc,2,2,"mat-option",2,Mf),T(6,"async"),L()());a&2&&(wg("full-width",b.fullWidth),B(2),S(" ",b.label," "),B(),I("disabled",b.disabled)("ngModel",b.timezoneId),B(),Of(U(6,5,b.timeZoneOptions$)))},dependencies:[yU,SD,KD,TH,hA,HD,fE,mE,Tx],styles:["[_nghost-%COMP%]     .mat-form-field-infix { width: fit-content; }","mat-form-field[_ngcontent-%COMP%] { font-size: 16px; }"]});var k9=function(){var a=this;this.dateFormatter=p(vS);this.destroyRef=p(Ce);this.frequency$=new Mj("weekly");this.ordinal$=new Mj(1);this.timeZoneId$=new Mj("America/Los_Angeles");this.timeOfDay$=new Mj({hours:9,minutes:0,seconds:0,nanos:0});this.ordinalOrZero$=ie([this.frequency$,this.ordinal$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b==="daily"?0:c}));this.frequencyChange=new aQ;this.ordinalChange=new aQ;this.timeOfDayChange=new aQ;this.timeZoneIdChange=new aQ;this.frequencyOptions=
N3d;this.repeatOnOptions=new Map([["daily",[]],["weekly",O3d],["monthly",P3d]]);this.DAILY="daily";this.repeatAtOptions=Q3d.map(function(b){var c=a.dateFormatter.format("HH:mma",void 0,b.date);return{timeOfDay:b.timeOfDay,display:c}});this.repeatAtOptions.map(function(b){return[b.timeOfDay.hours,b.display]});this.compareTimeOfDay=qlc};
k9.prototype.ngOnInit=function(){var a=this;this.frequency$.pipe(nf(),wf(1),Tj(this.destroyRef)).subscribe(function(b){a.frequencyChange.emit(b)});this.ordinal$.pipe(nf(),wf(1),ue(function(b){return b!==0}),Tj(this.destroyRef)).subscribe(function(b){a.ordinalChange.emit(b)});this.timeOfDay$.pipe(nf(qlc),wf(1),Tj(this.destroyRef)).subscribe(function(b){a.timeOfDayChange.emit(b)});this.timeZoneId$.pipe(nf(),wf(1),Tj(this.destroyRef)).subscribe(function(b){a.timeZoneIdChange.emit(b)})};
da.Object.defineProperties(k9.prototype,{frequency:{configurable:!0,enumerable:!0,set:function(a){this.frequency$.next(a)}},ordinal:{configurable:!0,enumerable:!0,set:function(a){this.ordinal$.next(a)}},timeOfDay:{configurable:!0,enumerable:!0,set:function(a){this.timeOfDay$.next(a)}},timeZoneId:{configurable:!0,enumerable:!0,set:function(a){this.timeZoneId$.next(a)}}});k9.\u0275fac=function(a){return new (a||k9)};
k9.\u0275cmp=D({type:k9,selectors:[["b-delivery-frequency-subform"]],inputs:{frequency:"frequency",ordinal:"ordinal",timeOfDay:"timeOfDay",timeZoneId:"timeZoneId"},outputs:{frequencyChange:"frequencyChange",ordinalChange:"ordinalChange",timeOfDayChange:"timeOfDayChange",timeZoneIdChange:"timeZoneIdChange"},standalone:!1,decls:8,vars:12,consts:[["appearance","outline",1,"full-width"],[3,"ngModelChange","ngModel"],[3,"value"],[3,"ngModelChange","ngModel","compareWith"],[3,"timezoneIdChange","timezoneId",
"fullWidth"]],template:function(a,b){a&1&&(F(0,klc,7,1,"div"),T(1,"async"),F(2,mlc,7,1,"div"),T(3,"async"),F(4,olc,7,2,"div"),T(5,"async"),F(6,plc,2,2,"div"),T(7,"async"));if(a&2){var c,d,e,f;G((c=U(1,4,b.frequency$))?0:-1,c);B(2);G((d=U(3,6,b.ordinalOrZero$))?2:-1,d);B(2);G((e=U(5,8,b.timeOfDay$))?4:-1,e);B(2);G((f=U(7,10,b.timeZoneId$))?6:-1,f)}},dependencies:[fE,mE,yU,SD,KD,TH,hA,HD,M3d,Tx],encapsulation:2,changeDetection:0});
var N3d=[{frequency:"daily",display:"Daily"},{frequency:"weekly",display:"Weekly"},{frequency:"monthly",display:"Monthly"}],O3d=[{ordinal:1,display:"Mondays"},{ordinal:2,display:"Tuesdays"},{ordinal:3,display:"Wednesdays"},{ordinal:4,display:"Thursdays"},{ordinal:5,display:"Fridays"},{ordinal:6,display:"Saturdays"},{ordinal:7,display:"Sundays"}],P3d=[].concat(q(Array.from({length:31}).fill(0).keys())).map(function(a){var b=a+1,c=b%10,d=b%100;return{ordinal:a+1,display:c===1&&d!==11?String(b)+"st":
c===2&&d!==12?String(b)+"nd":c===3&&d!==13?String(b)+"rd":String(b)+"th"}}),Q3d=[].concat(q(Array.from({length:24}).fill(0).keys())).map(function(a){var b=new Date;b.setHours(a%24);b.setMinutes(0);return{date:b,timeOfDay:{hours:b.getHours(),minutes:0,seconds:0,nanos:0}}});var R3d=["dialogContent"],l9=function(){var a=this;this.matDialog=p(UA);this.fridge=p(Z8);this.confirmationDialogService=p(dS);this.destroyRef=p(Ce);this.init$=new Mj(!1);this.columnsToDisplay=["name","overflow-warning","actions"];this.refreshOwnedSubscriptions$=new Mj(void 0);this.ownedSubscriptions$=this.refreshOwnedSubscriptions$.pipe(yf(function(){return a.fridge.list()}));this.warningTooltipText="This is returning too many results and has been paused. Please change the search query to return fewer results.";
this.isSaving$=new Mj(!1);var b=p(Lj);this.init$.pipe(ue(function(c){return c}),yf(function(){return b.queryParams}),ue(function(c){return c.subscriptionId}),yf(function(c){return a.fridge.watch(c.subscriptionId,{trustMemory:!1,trustUncertainMemory:!1})}),Tj(this.destroyRef)).subscribe(function(c){c&&a.openDialog(c)})};l9.prototype.ngOnInit=function(){this.init$.next(!0)};l9.prototype.openDialog=function(a){this.dialogRef=this.matDialog.open(this.dialogContent,{data:a,width:"500px"})};
l9.prototype.setFrequency=function(a,b){a.frequency=b;a.ordinal=b==="daily"?0:1};l9.prototype.save=function(a){var b=this;this.isSaving$.next(!0);(a.id==="0"?this.fridge.create(a):this.fridge.update(a)).pipe(lf(1),Tj(this.destroyRef)).subscribe(function(c){b.isSaving$.next(!1);b.refreshOwnedSubscriptions$.next();if(c.isOverflowing)S3d(b,c);else{var d;(d=b.dialogRef)==null||d.close()}})};
var S3d=function(a,b){b.query.endsWith(" created:30d")?a.confirmationDialogService.open({title:"Configurable alert returns too many results",content:Bh("This is returning too many results and has been paused. Please change the search query to return fewer results."),confirmButtonText:"Continue",isDestructive:!1,showCancelButton:!1}):a.confirmationDialogService.open({title:"Configurable alert returns too many results",content:Bh('This is returning too many results and has been paused.\n           To reduce search results, add another search constraint, such\n           as appending "created:30d" to limit the query to bugs created\n           in the last 30 days.'),
confirmButtonText:"Add created:30d",cancelButtonText:"Continue",isDestructive:!1,onConfirm:function(){b.query+=" created:30d";var c;(c=a.dialogRef)==null||c.close();a.openDialog(b)},onDismiss:function(){var c;(c=a.dialogRef)==null||c.close()}})};l9.prototype.openConfirmDeleteDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete a configurable alert",content:Bh("Delete `"+a.displayName+"`?"),confirmButtonText:"Delete",isDestructive:!0,onConfirm:function(){b.fridge.delete(a.id).pipe(Tj(b.destroyRef)).subscribe(function(){b.refreshOwnedSubscriptions$.next()})}})};
l9.\u0275fac=function(a){return new (a||l9)};
l9.\u0275cmp=D({type:l9,selectors:[["b-configurable-alert-settings"]],viewQuery:function(a,b){a&1&&hg(R3d,7);if(a&2){var c;lg(c=mg())&&(b.dialogContent=c.first)}},standalone:!1,decls:13,vars:1,consts:[["showOwnedSubscriptions",""],["dialogContent",""],["subscriptionMenu","matMenu"],[1,"flex-kids-x","gap-l"],[1,"settings-main-left","margin-right"],[1,"heading-s"],[4,"ngTemplateOutlet"],["type","button","mat-flat-button","","color","primary",3,"click"],[1,"full-width"],["mat-table","","aria-label",
"Configurable alerts list",1,"bordered","full-width",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","overflow-warning"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","tabindex","0",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["svgIcon","warning","tabindex","0",1,"bad","vertical-centered",3,"matTooltip"],["type","button","mat-icon-button","","aria-label",
"Show actions for this subscription",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","",3,"routerLinkObj"],["type","button","mat-menu-item","","aria-label","View and edit subscription attributes",3,"click"],["type","button","mat-menu-item","",3,"click"],["mat-header-row",""],["mat-row","","tabindex","0"],["matDialogTitle",""],[1,"type-l","margin-bottom"],["appearance","outline",1,"full-width"],["matInput","","type","text",3,"ngModelChange","ngModel"],["matInput",
"","type","text","spellcheck","false","autocomplete","off","name","searchQuery",3,"ngModelChange","ngModel"],[3,"frequencyChange","ordinalChange","timeOfDayChange","timeZoneIdChange","frequency","ordinal","timeOfDay","timeZoneId"],[3,"change","checked"],[1,"flex-kids-x","gap-s"],[1,"muted","type-s"],"type button mat-flat-button  color secondary matDialogClose ".split(" ")],template:function(a,b){if(a&1){var c=t();K(0,"div",3)(1,"div",4)(2,"p",5);Q(3,"Subscriptions");L()();K(4,"div");E(5,rlc,1,0,"ng-container",
6);K(6,"div")(7,"button",7);N("click",function(){u(c);return v(b.openDialog({id:"0",frequency:"weekly",ordinal:1,timeZone:{id:"America/Los_Angeles"},timeOfDay:{hours:9,minutes:0,seconds:0,nanos:0},displayName:"New configurable alert",query:"assignee:me status:open created:30d",sendEmail:!0,showInBuganizerHome:!1,baselineIssueIds:[],isOverflowing:!1,lastUpdated:{seconds:0,nanos:0}}))});Q(8," Create configurable alert ");L()()()();E(9,Blc,13,3,"ng-template",null,0,Mg)(11,Ilc,29,14,"ng-template",null,
1,Mg)}a&2&&(a=qg(10),B(5),I("ngTemplateOutlet",a))},dependencies:[Sx,Jy,VO,xj,fE,mE,kB,gB,iB,VA,XA,ZA,YA,SD,KD,HD,VD,FE,OU,vT,UW,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,VJ,fH,dH,iH,vK,nA,hK,cU,k9,Tx],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}[_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.bad[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}/*# sourceMappingURL=settings.css.map */"],
changeDetection:0});var T3d=function(a,b){this.name=a;this.resourceType=b;this.options=[]};T3d.prototype.shouldDisplay=function(){return!0};T3d.prototype.hasOptions=function(){return!1};T3d.prototype.getDefaultOptionId=function(){return null};var U3d=function(a,b){this.name=a;this.resourceType=b;this.options=[]};U3d.prototype.shouldDisplay=function(){return this.options.length>0};U3d.prototype.hasOptions=function(){return this.options.length>0};
U3d.prototype.getDefaultOptionId=function(){return this.hasOptions()?this.options[0].id:null};
var V3d=function(a,b){this.id=a;this.name=b},X3d=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 Pd;this.missionControlMainOption=new T3d("Home","MISSION_CONTROL");this.assignedToMeMainOption=new T3d("Assigned to me","ASSIGNED_TO_ME");this.hotlistMainOption=new U3d("Hotlist","HOTLIST");this.savedSearchMainOption=new U3d("Saved search","SAVED_SEARCH");this.bookmarkGroupMainOption=
new U3d("Bookmark group","BOOKMARK_GROUP");this.mainOptions=[this.assignedToMeMainOption,this.hotlistMainOption,this.savedSearchMainOption,this.bookmarkGroupMainOption,this.missionControlMainOption];a={};this.resourceMainOptions=(a.MISSION_CONTROL=this.missionControlMainOption,a.ASSIGNED_TO_ME=this.assignedToMeMainOption,a.HOTLIST=this.hotlistMainOption,a.SAVED_SEARCH=this.savedSearchMainOption,a.BOOKMARK_GROUP=this.bookmarkGroupMainOption,a);this.selectedMainOption=this.mainOptions[0];W3d(this);
this.subscriptions.add(this.appEvents.sidebarUpdated.subscribe(function(){W3d(f);f.cdr.detectChanges()}));this.subscriptions.add(this.userPreferencesManager.preferences$.subscribe(function(g){g.homepagePreferences&&(g=g.homepagePreferences,g.resourceType?f.selectedMainOption=f.resourceMainOptions[g.resourceType]||f.mainOptions[0]:f.selectedMainOption=f.missionControlMainOption,f.selectedOptionId=g.resourceId||null,W3d(f))}))};X3d.prototype.destroy=function(){this.subscriptions.unsubscribe()};
var Mlc=function(a){Rr(a.butterBar,"Saving preferences...",0);var b={resourceType:a.selectedMainOption.resourceType};a.selectedMainOption.hasOptions()&&a.selectedOptionId&&(b.resourceId=a.selectedOptionId);jkd(a.userPreferencesManager,b).subscribe(function(){Rr(a.butterBar,"Preferences saved.",4E3)})},W3d=function(a){function b(c){return new V3d(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 V3d(String(a.selectedOptionId),a.selectedMainOption.name+" "+a.selectedOptionId)))};var r9=function(){Z.call(this);this.cdr=p(bQ,{self:!0});this.userPreferencesManager=p(hR);this.butterBar=p(UN);this.activeSession=p(uu);this.documentationLinks=p(cS);this.analytics=p(eQ);this.sidebar=p(t2);this.appEvents=p(UO);this.constants=p(gS);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.showForcePlainTextSettings=this.activeSession.isInternalSession();this.appName=this.activeSession.getAppName();this.timeZones.push.apply(this.timeZones,q(this.constants.supportedTimeZones.map(function(a){return{value:a.id,label:a.name}})));this.sloEnabled=this.activeSession.isInternalSession();this.showBugScreensaverSetting=this.activeSession.isInternalSession();
this.showInlineImagesSetting=this.activeSession.isInternalSession()};Y(r9,Z);r9.\u0275dir=Z.\u0275dir;r9.prototype.ngOnInit=function(){var a=this;this.destroyed$.subscribe(function(){var b;(b=a.preferredHomepage)==null||b.destroy()});this.preferredHomepage=new X3d(this.butterBar,this.sidebar,this.userPreferencesManager,this.cdr,this.appEvents);this.userPreferencesManager.preferences$.pipe(zf(this.destroyed$)).subscribe(function(b){a.userPreferences=b;a.cdr.detectChanges()})};
r9.prototype.save=function(a,b,c){var d=this;Rr(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){Rr(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};
var Slc=function(a){var b;return((b=a.userPreferences.commentFormattingPreferences)==null?void 0:b.commentDisplayOverride)==="LITERAL_FORMATTING_MODE"},Tlc=function(a){var b;return((b=a.userPreferences.commentFormattingPreferences)==null?void 0:b.commentCreateOverride)==="LITERAL_FORMATTING_MODE"};r9.prototype.getShowInlineImages=function(){var a;return(a=this.userPreferences.showInlineImages)!=null?a:!1};
da.Object.defineProperties(r9.prototype,{hideBadgeInNav:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.userPreferences)==null?0:(b=a.missionControlPreferences)==null?0:b.hideBadgeInNav)}}});r9.\u0275fac=function(a){return new (a||r9)};
r9.\u0275cmp=D({type:r9,selectors:[["b-general-settings"]],standalone:!1,features:[Gg([bQ]),Ef],decls:74,vars:12,consts:[[1,"flex-kids-x","gap-l","margin-bottom"],[1,"settings-main-left","margin-right"],[1,"heading-s"],[1,"muted","type-s"],["target","_blank",3,"href"],["appearance","outline"],["matTooltip","Current selection for preferred homepage"],["id","bv2-homepage-pref-selection",3,"ngModelChange","selectionChange","ngModel"],["id","hide-nav-badge",3,"change","checked"],[1,"margin-y"],["id",
"bv2-datetime-pref-date-formatting","appearance","outline"],["matTooltip","Date/time formatting - Use this format for calendar dates."],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["id","bv2-datetime-pref-time-formatting","appearance","outline"],["matTooltip","Date/time formatting - Use this format for times."],["id","bv2-datetime-pref-timezone","appearance","outline"],["matTooltip","Date/time formatting - Format dates and times with respect to this time zone."],["id","bv2-enable-all-hotkeys",
3,"change","checked"],[1,"margin-bottom"],["id","bv2-force-code-font"],[1,"bv2-settings-preferred-homepage-main-option-select-item",3,"value"],["id","bv2-homepage-pref-suboption-selection",1,"homepage-option-select",3,"ngModelChange","selectionChange","ngModel"],[1,"bv2-settings-preferred-homepage-option-select-item",3,"value"],["id","bv2-show-inline-images",3,"change","checked"],["id","bv2-force-display-plain-text",3,"change","checked"],["id","bv2-force-create-plain-text",3,"change","checked"],["id",
"bv2-bug-screensaver",3,"change","checked"]],template:function(a,b){a&1&&(K(0,"div")(1,"div",0)(2,"div",1)(3,"p",2),Q(4,"Preferred homepage"),L(),K(5,"p",3),Q(6," Select your preferred homepage when first opening the app. "),K(7,"a",4),Q(8," Learn more "),L()()(),K(9,"div")(10,"div")(11,"mat-form-field",5)(12,"mat-label",6),Q(13," Current selection "),L(),K(14,"mat-select",7),Cg("ngModelChange",function(c){Bg(b.preferredHomepage.selectedMainOption,c)||(b.preferredHomepage.selectedMainOption=c);return c}),
N("selectionChange",function(){var c=b.preferredHomepage;c.selectedOptionId=c.selectedMainOption.getDefaultOptionId();Mlc(c);c.cdr.detectChanges()}),Nf(15,Klc,1,1,null,null,Mf),L()(),F(17,Nlc,4,1,"mat-form-field",5),L(),K(18,"div")(19,"mat-slide-toggle",8),N("change",function(c){c=c.checked;if(b.userPreferences){var d;b.userPreferences.missionControlPreferences=(d=b.userPreferences.missionControlPreferences)!=null?d:{};d=!c;b.userPreferences.missionControlPreferences.hideBadgeInNav=d;b.save("hideBadgeInNav",
String(d))}}),Q(20,' Show red "attention" badge in left navigation '),L()()()(),M(21,"hr",9),K(22,"div",0)(23,"div",1)(24,"p",2),Q(25,"Date/time formatting settings"),L(),K(26,"p",3),Q(27," Select how you want dates and times to be formatted. "),K(28,"a",4),Q(29," Learn more "),L()()(),K(30,"div")(31,"div")(32,"mat-form-field",10)(33,"mat-label",11),Q(34," Dates "),L(),K(35,"mat-select",12),Cg("ngModelChange",function(c){Bg(b.userPreferences.dateTimePreferences.calendarFormat,c)||(b.userPreferences.dateTimePreferences.calendarFormat=
c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Nf(36,Olc,2,2,"mat-option",13,Mf),L()()(),K(38,"div")(39,"mat-form-field",14)(40,"mat-label",15),Q(41," Times "),L(),K(42,"mat-select",12),Cg("ngModelChange",function(c){Bg(b.userPreferences.dateTimePreferences.timeFormat,c)||(b.userPreferences.dateTimePreferences.timeFormat=c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Nf(43,Plc,2,2,"mat-option",13,Mf),L()()(),K(45,"div")(46,
"mat-form-field",16)(47,"mat-label",17),Q(48," Time Zones "),L(),K(49,"mat-select",12),Cg("ngModelChange",function(c){Bg(b.userPreferences.dateTimePreferences.timeZone,c)||(b.userPreferences.dateTimePreferences.timeZone=c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Nf(50,Qlc,2,2,"mat-option",13,Mf),L()()()()(),M(52,"hr",9),K(53,"div",0)(54,"div",1)(55,"p",2),Q(56,"Keyboard settings"),L()(),K(57,"div")(58,"div")(59,"mat-slide-toggle",18),N("change",function(c){b.userPreferences.keyboardPreferences.enableAllHotkeys=
c.checked;return b.save("saveKeyboardPreferences")}),Q(60," Enable all hotkeys "),L()()()(),M(61,"hr",9),K(62,"div",0)(63,"div",1)(64,"p",2),Q(65,"Display settings"),L()(),K(66,"div")(67,"div",19)(68,"b-toggle-code-font",20),Q(69," Force comments to display with code font "),L()(),F(70,Rlc,3,1,"div",19),L()(),F(71,Ulc,12,2),M(72,"hr",9),F(73,Vlc,8,1,"div",0),L());a&2&&(B(7),I("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-a-homepage",Ne),B(7),Ag("ngModel",b.preferredHomepage.selectedMainOption),
B(),Of(b.preferredHomepage.mainOptions),B(2),G(b.preferredHomepage.selectedMainOption.hasOptions()?17:-1),B(2),I("checked",!b.hideBadgeInNav),B(9),I("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-date-time-formatting",Ne),B(7),Ag("ngModel",b.userPreferences.dateTimePreferences.calendarFormat),B(),Of(b.dateFormats),B(6),Ag("ngModel",b.userPreferences.dateTimePreferences.timeFormat),B(),Of(b.timeFormats),B(6),Ag("ngModel",b.userPreferences.dateTimePreferences.timeZone),B(),Of(b.timeZones),
B(9),I("checked",b.userPreferences.keyboardPreferences.enableAllHotkeys),B(11),G(b.showInlineImagesSetting?70:-1),B(),G(b.showForcePlainTextSettings?71:-1),B(2),G(b.showBugScreensaverSetting?73:-1))},dependencies:[fE,mE,yU,SD,KD,TH,hA,HD,OU,vT,vK,nA,p8],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}[_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.bad[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}/*# sourceMappingURL=settings.css.map */"]});var s9=function(){Z.call(this);var a=this;this.userPreferencesManager=p(hR);this.butterBar=p(UN);this.documentationLinks=p(cS);this.analytics=p(eQ);this.priorities=["ALL","IMPORTANT","CLOSURE_ONLY","MINIMAL"];this.userPreferencesManager.preferences$.pipe(zf(this.destroyed$)).subscribe(function(b){a.userPreferences=b})};Y(s9,Z);s9.\u0275dir=Z.\u0275dir;
s9.prototype.save=function(a,b,c){var d=this;Rr(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){Rr(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};s9.\u0275fac=function(a){return new (a||s9)};
s9.\u0275cmp=D({type:s9,selectors:[["b-notification-settings"]],standalone:!1,features:[Ef],decls:54,vars:8,consts:[[1,"flex-kids-x","gap-l"],[1,"settings-main-left","margin-right"],[1,"heading-s"],[1,"muted","type-ss"],["target","_blank",3,"href"],["appearance","outline","id","bv2-notification-pref-assigned"],["matTooltip","Notification level - issues for which you are the assignee"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["appearance","outline","id","bv2-notification-pref-reported"],
["matTooltip","Notification level - issues for which you are the reporter"],["appearance","outline","id","bv2-notification-pref-verified"],["matTooltip","Notification level - issues for which you are the verifier"],["appearance","outline","id","bv2-notification-pref-collaborator"],["matTooltip","Notification level - issues for which you are the collaborator"],["appearance","outline","id","bv2-notification-pref-ccd"],["matTooltip","Notification level - issues on which you are CC'd"],["appearance",
"outline","id","bv2-notification-pref-starred"],["matTooltip","Notification level - issues that you have starred"],["id","bv2-exclude-changes-by-me",3,"change","checked"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"p",2),Q(3,"Notification settings"),L(),K(4,"p",3),Q(5," Select the level of email you want to receive for each issue role. "),K(6,"a",4),Q(7," Learn more "),L()()(),K(8,"div")(9,"div")(10,"mat-form-field",5)(11,"mat-label",6),Q(12," Assignee "),L(),K(13,"mat-select",7),Cg("ngModelChange",
function(c){Bg(b.userPreferences.notificationPreferences.assignedPriority,c)||(b.userPreferences.notificationPreferences.assignedPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Nf(14,Wlc,3,4,"mat-option",8,Mf),L()()(),K(16,"div")(17,"mat-form-field",9)(18,"mat-label",10),Q(19," Reporter "),L(),K(20,"mat-select",7),Cg("ngModelChange",function(c){Bg(b.userPreferences.notificationPreferences.reportedPriority,c)||(b.userPreferences.notificationPreferences.reportedPriority=
c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Nf(21,Xlc,3,4,"mat-option",8,Mf),L()()(),K(23,"div")(24,"mat-form-field",11)(25,"mat-label",12),Q(26," Verifier "),L(),K(27,"mat-select",7),Cg("ngModelChange",function(c){Bg(b.userPreferences.notificationPreferences.verifiedPriority,c)||(b.userPreferences.notificationPreferences.verifiedPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Nf(28,Ylc,3,4,"mat-option",
8,Mf),L()()(),K(30,"div")(31,"mat-form-field",13)(32,"mat-label",14),Q(33," Collaborator "),L(),K(34,"mat-select",7),Cg("ngModelChange",function(c){Bg(b.userPreferences.notificationPreferences.collaboratorPriority,c)||(b.userPreferences.notificationPreferences.collaboratorPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Nf(35,Zlc,3,4,"mat-option",8,Mf),L()()(),K(37,"div")(38,"mat-form-field",15)(39,"mat-label",16),Q(40," CC'd "),L(),K(41,"mat-select",
7),Cg("ngModelChange",function(c){Bg(b.userPreferences.notificationPreferences.ccdPriority,c)||(b.userPreferences.notificationPreferences.ccdPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Nf(42,$lc,3,4,"mat-option",8,Mf),L()()(),K(44,"div")(45,"mat-form-field",17)(46,"mat-label",18),Q(47," Starred "),L(),K(48,"mat-select",7),Cg("ngModelChange",function(c){Bg(b.userPreferences.notificationPreferences.starredPriority,c)||(b.userPreferences.notificationPreferences.starredPriority=
c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Nf(49,amc,3,4,"mat-option",8,Mf),L()()(),K(51,"div")(52,"mat-slide-toggle",19),N("change",function(c){b.userPreferences.notificationPreferences.excludeChangesByMe=c.checked;return b.save("saveNotificationPreferences")}),Q(53," Exclude edits made by you "),L()()()());a&2&&(B(6),I("href",b.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",Ne),B(7),Ag("ngModel",b.userPreferences.notificationPreferences.assignedPriority),
B(),Of(b.priorities),B(6),Ag("ngModel",b.userPreferences.notificationPreferences.reportedPriority),B(),Of(b.priorities),B(6),Ag("ngModel",b.userPreferences.notificationPreferences.verifiedPriority),B(),Of(b.priorities),B(6),Ag("ngModel",b.userPreferences.notificationPreferences.collaboratorPriority),B(),Of(b.priorities),B(6),Ag("ngModel",b.userPreferences.notificationPreferences.ccdPriority),B(),Of(b.priorities),B(6),Ag("ngModel",b.userPreferences.notificationPreferences.starredPriority),B(),Of(b.priorities),
B(3),I("checked",b.userPreferences.notificationPreferences.excludeChangesByMe))},dependencies:[fE,mE,yU,SD,KD,TH,hA,HD,OU,vT,vK,nA,osd],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}[_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.bad[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}/*# sourceMappingURL=settings.css.map */"]});var Y3d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Y3d.messageId)};Y(Y3d,W);Y3d.prototype.getSubscriptionsList=function(){return Bi(this,sr,1,Ci(),jb)};Y3d.messageId="b.ListSloReportSubscriptionsResponse";var t9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,t9.messageId)};Y(t9,W);t9.prototype.getSubscription=function(){return X(this,sr,1,jb)};t9.prototype.setSubscription=function(a){return Mi(this,sr,1,a,jb)};t9.messageId="b.SloReportSubscriptionRequest";var u9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,u9.messageId)};Y(u9,W);u9.prototype.getSubscription=function(){return X(this,sr,1,jb)};u9.prototype.setSubscription=function(a){return Mi(this,sr,1,a,jb)};u9.messageId="b.SloReportSubscriptionResponse";var v9=function(){this.executor=p(bO)};h=v9.prototype;h.get=function(a){return this.executor.get({url:"action/slo_report_subscriptions/"+a,responseConstructor:u9}).pipe(A(function(b){if(b=b.getSubscription())return L4a(b);throw Error("Bg");}))};h.list=function(){return this.executor.get({url:"action/slo_report_subscriptions",responseConstructor:Y3d}).pipe(A(function(a){return a.getSubscriptionsList().map(L4a)}))};
h.create=function(a){if(a.id!==0)throw Error("Cg");return this.executor.post({url:"action/slo_report_subscriptions",body:(new t9).setSubscription(M4a(a)),responseConstructor:u9}).pipe(A(function(b){if(b=b.getSubscription())return L4a(b);throw Error("zg");}))};
h.update=function(a){if(a.id===0)throw Error("Dg");return this.executor.post({url:"action/slo_report_subscriptions/"+a.id,body:(new t9).setSubscription(M4a(a)),responseConstructor:u9}).pipe(A(function(b){if(b=b.getSubscription())return L4a(b);throw Error("zg");}))};h.delete=function(a){return this.executor.delete({url:"action/slo_report_subscriptions/"+a,responseConstructor:wO}).pipe(A(function(){}))};v9.\u0275fac=function(a){return new (a||v9)};v9.\u0275prov=Dc({token:v9,factory:v9.\u0275fac,providedIn:"root"});var Z3d=["sloSubscriptionDialog"],w9=function(){Z.apply(this,arguments);var a=this;this.dateFormatter=p(vS);this.api=p(v9);this.currentUser=p(N2);this.dialog=p(UA);this.timeZones=p(fS);this.confirmationDialogService=p(dS);this.principalTypes=p(EQ);this.analytics=p(eQ);this.butterBar=p(UN);this.constants=p(gS);this.activeSession=p(uu);this.subscriptions$=new Mj([]);this.isBasicMode$=this.subscriptions$.pipe(A(function(b){return b.length===0||b.length===1&&b[0].lead.emailAddress===a.currentUser.email}));
this.userSubscription$=this.subscriptions$.pipe(A(function(b){b=m(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.lead.emailAddress===a.currentUser.email)return a.inputDaysRemaining=c.daysRemaining,c;return{id:0,lead:a.currentUser.user,frequency:"weekly",ordinal:1,timeZone:{id:"America/Los_Angeles"},timeOfDay:$3d[9].timeOfDay,daysRemaining:0,types:["BUG","CUSTOMER_ISSUE","VULNERABILITY","PRIVACY_ISSUE"],sloIds:[]}}));this.isThinking$=new Mj(!1);this.inputHasFocus=!1;this.repeatAtOptions$=
ie($3d.map(function(b){return ce(a.dateFormatter.format("HH:mma",void 0,b.date)).pipe(A(function(c){return{timeOfDay:b.timeOfDay,display:c}}))}));this.ceoSelected=this.dialogInvalidEmailFormat=!1;this.emailToUser=xm;this.columns=["scope","frequency","actions"];this.frequencyDisplayMap=new Map(a4d.map(function(b){return[b.frequency,b.display]}));this.timeZoneDisplayMap$=umd(this.timeZones).pipe(lf(1),A(function(b){return new Map(b.map(function(c){return[c.id,c.displayName]}))}),vf({bufferSize:1,refCount:!0}));
this.hourOfDayDisplayMap$=this.repeatAtOptions$.pipe(lf(1),A(function(b){return new Map(b.map(function(c){return[c.timeOfDay.hours,c.display]}))}),vf({bufferSize:1,refCount:!0}));this.typeChoices=[{value:"BUG",displayText:this.constants.issueTypesDisplayNames.get("BUG")},{value:"CUSTOMER_ISSUE",displayText:this.constants.issueTypesDisplayNames.get("CUSTOMER_ISSUE")},{value:"PRIVACY_ISSUE",displayText:this.constants.issueTypesDisplayNames.get("PRIVACY_ISSUE")},{value:"VULNERABILITY",displayText:this.constants.issueTypesDisplayNames.get("VULNERABILITY")},
{value:"PROCESS",displayText:this.constants.issueTypesDisplayNames.get("PROCESS")},{value:"INTERNAL_CLEANUP",displayText:this.constants.issueTypesDisplayNames.get("INTERNAL_CLEANUP")},{value:"FEATURE_REQUEST",displayText:this.constants.issueTypesDisplayNames.get("FEATURE_REQUEST")},{value:"MILESTONE",displayText:this.constants.issueTypesDisplayNames.get("MILESTONE")},{value:"FEATURE",displayText:this.constants.issueTypesDisplayNames.get("FEATURE")},{value:"PROJECT",displayText:this.constants.issueTypesDisplayNames.get("PROJECT")},
{value:"EPIC",displayText:this.constants.issueTypesDisplayNames.get("EPIC")},{value:"STORY",displayText:this.constants.issueTypesDisplayNames.get("STORY")},{value:"TASK",displayText:this.constants.issueTypesDisplayNames.get("TASK")}]};Y(w9,Z);w9.\u0275dir=Z.\u0275dir;w9.prototype.ngOnInit=function(){b4d(this)};
var jmc=function(a){a.userSubscription$.pipe(lf(1),yf(function(b){if(b.id===0)return a.analytics.trackEvent("sloReports","enableOwnSubscription"),a.api.create(b);a.analytics.trackEvent("sloReports","disableOwnSubscription");return a.api.delete(b.id)})).subscribe(function(){b4d(a)})},b4d=function(a){a.isThinking$.next(!0);a.api.list().pipe(lf(1)).subscribe(function(b){a.isThinking$.next(!1);for(var c=m(b),d=c.next();!d.done;d=c.next())d=d.value,d.types.length===0&&(d.types=a.typeChoices.map(function(e){return e.value}));
a.subscriptions$.next(b)})},tu=function(a,b){a.isThinking$.next(!0);b.types.length===a.typeChoices.length&&(b.types=[]);a.api.update(b).subscribe(function(){a.analytics.trackEvent("sloReports","editSubscription");b4d(a);a.newSloId=void 0},function(c){c.status===404&&(a.butterBar.showWarning("Subscription does not exist"),b4d(a))})},c4d=function(a,b){a.isThinking$.next(!0);a.api.delete(b.id).subscribe(function(){a.analytics.trackEvent("sloReports","deleteSubscription");b4d(a)})};h=w9.prototype;
h.openConfirmDeleteDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete a subscription",content:Bh("You will no longer receive reports from '"+a.lead.emailAddress+"'."),confirmButtonText:"Delete",isDestructive:!0,onConfirm:function(){c4d(b,a)}})};h.setFrequency=function(a,b){b.frequency=a;a!=="daily"?b.ordinal=1:delete b.ordinal;tu(this,b)};h.setTimeZone=function(a,b){tu(this,Object.assign({},b,{timeZone:Object.assign({},b.timeZone,{id:a})}))};
h.setDaysRemaining=function(a){if(this.inputDaysRemaining!==a.daysRemaining){var b;tu(this,Object.assign({},a,{daysRemaining:(b=this.inputDaysRemaining)!=null?b:0}))}};h.setIssueType=function(a,b){tu(this,Object.assign({},b,{types:a}))};
var hmc=function(a,b){a.newSloId&&!b.sloIds.includes(a.newSloId)&&tu(a,Object.assign({},b,{sloIds:[].concat(q(b.sloIds),[a.newSloId])}))},emc=function(a,b,c){if(b.sloIds.includes(c)){var d=b.sloIds.filter(function(e){return e!==c});tu(a,Object.assign({},b,{sloIds:d}))}},Dmc=function(a,b){a.newSloId&&!b.sloIds.includes(a.newSloId)&&(b.sloIds.push(a.newSloId),a.newSloId=void 0)},Amc=function(a,b){if(a.sloIds.includes(b)){var c=a.sloIds.filter(function(d){return d!==b});a.sloIds=c}};
w9.prototype.openDialog=function(a){this.sloSubscriptionDialog&&(a||(a={id:0,frequency:"weekly",ordinal:1,timeZone:{id:"America/Los_Angeles"},timeOfDay:$3d[9].timeOfDay,daysRemaining:0,types:["BUG","CUSTOMER_ISSUE","VULNERABILITY","PRIVACY_ISSUE"],sloIds:[]}),this.ceoSelected=this.dialogInvalidEmailFormat=!1,this.dialogRef=this.dialog.open(this.sloSubscriptionDialog,{data:nm(a),panelClass:"slo-report-subscription-dialog",width:"500px"}))};
var Emc=function(a,b){return y(function(c){if(c.nextAddress==1)return a.dialogRef&&b.lead!==void 0?z(c,d4d(a,b.lead.emailAddress),2):c.return();if(!c.yieldResult)return b.lead.emailAddress="",a.dialogInvalidEmailFormat=!0,c.return();if(b.lead.emailAddress==="sundar@google.com")return b.lead.emailAddress="",a.ceoSelected=!0,c.return();b.id===0?a.api.create(b).subscribe(function(){a.analytics.trackEvent("sloReports","createSubscription");b4d(a)}):tu(a,b);a.dialogRef.close();ae(c)})},d4d=function(a,
b){var c;return y(function(d){if(d.nextAddress==1)return Zn(b)?z(d,a.principalTypes.get(b),2):d.return(Promise.resolve(!1));c=d.yieldResult;return c.principalType!=="USER"?d.return(Promise.resolve(!1)):d.return(Promise.resolve(!0))})};w9.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(w9)))(b||w9)}}();
w9.\u0275cmp=D({type:w9,selectors:[["b-slo-reports-settings"]],viewQuery:function(a,b){a&1&&hg(Z3d,7);if(a&2){var c;lg(c=mg())&&(b.sloSubscriptionDialog=c.first)}},standalone:!1,features:[Ef],decls:22,vars:14,consts:[["sloSubscriptionDialog",""],["subscriptionMenu","matMenu"],[1,"flex-kids-x","gap-l"],[1,"settings-main-left","margin-right"],[1,"heading-s"],["id","advanced-settings-note",1,"muted","type-s"],"href http://go/issue-slo-reports target _blank aria-describedby advanced-settings-note".split(" "),
[1,"full-width"],[1,"margin-bottom"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],["mat-table","","aria-label","SLO reports subscriptions",1,"bordered","full-width",3,"dataSource"],["id","frequency-settings-note",1,"muted","type-s"],"href http://go/issue-slo-reports target _blank aria-describedby frequency-settings-note".split(" "),[1,"margin-y"],["id","isSubscribedCheckbox",1,"margin-s-right",3,"change","disabled","checked"],["appearance","outline",1,"full-width"],
["matInput","","readonly","",3,"focus","blur","ngModel"],[3,"frequencyChange","ordinalChange","timeOfDayChange","timeZoneIdChange","frequency","ordinal","timeOfDay","timeZoneId"],["appearance","outline"],["matInput","","type","number",3,"ngModelChange","blur","keydown.enter","ngModel"],["multiple","",3,"ngModelChange","ngModel"],[3,"value"],["appearance","outline","subscriptSizing","dynamic"],["matInput","","type","number",3,"ngModelChange","keydown.enter","blur","ngModel"],[1,"flex-kids-x","space-between",
"margin-xs-y"],[1,"muted","type-s"],[1,"subtle-link",3,"href"],["type","button","mat-icon-button","","aria-label","Remove SLO ID",1,"xs",3,"click","matTooltip"],["svgIcon","clear"],["matColumnDef","scope"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","frequency"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","tabindex","0",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button",
"","aria-label","Show actions for this subscription",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","","aria-label","View and edit subscription attributes",3,"click"],["type","button","mat-menu-item","",3,"click"],["mat-header-row",""],["mat-row","","tabindex","0"],["matDialogTitle",""],[1,"type-l","margin-bottom"],["appearance","outline","floatLabel","always",1,"full-width"],[3,"emailChange","asMatInput","email","required","placeholder"],["matInput",
"","type","number",3,"ngModelChange","ngModel"],["appearance","outline","subscriptSizing","dynamic",1,"full-width"],["id","new-subscription-note",1,"italic"],"href http://go/issue-slo-reports target _blank aria-describedby new-subscription-note".split(" "),"type button mat-button  color primary matDialogClose ".split(" ")],template:function(a,b){if(a&1){var c=t();F(0,lmc,11,3);T(1,"async");K(2,"div",2)(3,"div",3)(4,"p",4);Q(5,"Advanced settings");L();K(6,"p",5);Q(7," Add subscriptions to receive other user's reports. ");
K(8,"a",6);Q(9,"Learn more");L()()();K(10,"div",7)(11,"div",8)(12,"button",9);T(13,"async");N("click",function(){u(c);return v(b.openDialog())});Q(14," Create subscription ");L()();F(15,mmc,1,0,"b-spinner");T(16,"async");F(17,wmc,12,3,"table",10);T(18,"async");T(19,"async");L()();E(20,Fmc,42,16,"ng-template",null,0,Mg)}a&2&&(G(U(1,4,b.isBasicMode$)?0:-1),B(12),I("disabled",U(13,6,b.isThinking$)),B(3),G(U(16,8,b.isThinking$)?15:-1),B(2),G(U(18,10,b.isBasicMode$)||U(19,12,b.isThinking$)?-1:17))},dependencies:[Jy,
xj,oE,fE,mE,kB,gB,iB,VA,XA,ZA,YA,yU,SD,KD,JD,ID,TH,hA,HD,VD,FE,OU,vT,UW,ZT,MT,ST,OT,LT,UT,PT,RT,VT,XT,VJ,fH,dH,iH,vK,nA,cU,P_,k9,Tx],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}[_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.bad[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}/*# sourceMappingURL=settings.css.map */",
".mat-mdc-form-field[_ngcontent-%COMP%]{min-width:300px;margin-bottom:8px}.mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:600;background-color:#f1f3f4;background-color:var(--c100)}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:40px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem}td.mat-mdc-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-actions[_ngcontent-%COMP%]{text-align:right}/*# sourceMappingURL=slo_reports_settings.css.map */"]});
var a4d=[{frequency:"daily",display:"Daily"},{frequency:"weekly",display:"Weekly"},{frequency:"monthly",display:"Monthly"}],qmc=[{ordinal:1,display:"Mondays"},{ordinal:2,display:"Tuesdays"},{ordinal:3,display:"Wednesdays"},{ordinal:4,display:"Thursdays"},{ordinal:5,display:"Fridays"},{ordinal:6,display:"Saturdays"},{ordinal:7,display:"Sundays"}],$3d=[].concat(q(Array.from({length:24}).fill(0).keys())).map(function(a){var b=new Date;b.setHours(a%24);b.setMinutes(0);return{date:b,timeOfDay:{hours:b.getHours(),
minutes:0,seconds:0,nanos:0}}});var x9=function(){this.activeSession=p(uu);this.location=p(bU);this.routeParams=p(wS);this.enableSloReportEmail=this.activeSession.isInternalSession()&&this.activeSession.getFlag("enableSloReportEmail");this.selectedTabIndex=0};x9.prototype.ngAfterViewInit=function(){this.selectedTabIndex=e4d(this,this.routeParams.settingsTab)};
x9.prototype.tabChange=function(a){if(this.selectedTabIndex!==a){this.selectedTabIndex=a;var b,c,d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.id;d?this.location.setUrl(qs.settingsTab.makeHref(d)):this.location.setUrl(qs.settings.makeHref())}};var e4d=function(a,b){a=a.tabs.toArray().findIndex(function(c){return c.id===b});return a<0?0:a};x9.\u0275fac=function(a){return new (a||x9)};
x9.\u0275cmp=D({type:x9,selectors:[["b-settings"]],viewQuery:function(a,b){a&1&&hg(wL,5);if(a&2){var c;lg(c=mg())&&(b.tabs=c)}},standalone:!1,decls:10,vars:2,consts:[[1,"margined","heading-m"],["gmat-tabs","",3,"selectedIndexChange","selectedIndex"],["label","General"],["matTabContent",""],["label","Notifications","id","notifications"],["label","Configurable Alerts","id","configurable-alerts"],["label","SLO Reports","id","slo-reports"],[1,"padded"]],template:function(a,b){a&1&&(K(0,"p",0),Q(1,"Settings"),
L(),K(2,"mat-tab-group",1),N("selectedIndexChange",function(c){return b.tabChange(c)}),K(3,"mat-tab",2),E(4,Gmc,2,0,"ng-template",3),L(),K(5,"mat-tab",4),E(6,Hmc,2,0,"ng-template",3),L(),K(7,"mat-tab",5),E(8,Imc,2,0,"ng-template",3),L(),F(9,Kmc,2,0,"mat-tab",6),L());a&2&&(B(2),I("selectedIndex",b.selectedTabIndex),B(7),G(b.enableSloReportEmail?9:-1))},dependencies:[BL,sL,wL,xL,r9,s9,w9,l9],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}[_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.bad[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}/*# sourceMappingURL=settings.css.map */"],
changeDetection:0});var f4d=function(){this.activatedRoute=p(Lj);this.routeParams=p(wS);this.issueId=this.routeParams.issueId;this.attachmentId=this.routeParams.attachmentId;this.mimeType=o9a(this.activatedRoute.snapshot.queryParamMap).mimeType};f4d.\u0275fac=function(a){return new (a||f4d)};
f4d.\u0275cmp=D({type:f4d,selectors:[["view-attachment-page"]],standalone:!1,decls:1,vars:3,consts:[[3,"issueId","attachmentId","mimeType"]],template:function(a,b){a&1&&M(0,"attachment-preview",0);a&2&&I("issueId",b.issueId)("attachmentId",b.attachmentId)("mimeType",b.mimeType)},dependencies:[WY],encapsulation:2});var y9=function(){Z.apply(this,arguments);this.cdr=p(bQ,{self:!0});this.routeParams=p(wS);this.bLocation=p(bU);this.pageTitle=p(n2);this.userApi=p(kP);this.bookmarkGroupsApi=p(CO);this.paths=p(hW);this.appEvents=p(UO);this.activeSession=p(uu);this.isStarred=!1;this.userEmail=this.activeSession.getUserEmail();this.bookmarkGroup=null};Y(y9,Z);y9.\u0275dir=Z.\u0275dir;h=y9.prototype;
h.ngOnInit=function(){var a=this,b=function(c){a.bookmarkGroup=c;a.userIsAdmin=c.adminUsers.some(function(d){return d.emailAddress===a.userEmail});a.pageTitle.setTitle(c.name);a.cdr.detectChanges()};this.bookmarkGroupsApi.get(this.routeParams.groupId).then(b);this.userApi.getUserBookmark("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)}))};h.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=function(){a.appEvents.bookmarkGroupModified.next()};this.isStarred?this.userApi.addUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId}).then(b):this.userApi.removeUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId}).then(b)};
h.openEditBookmarkGroup=function(){this.bLocation.setUrl(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};h.getUserEmail=function(){return this.userEmail};h.isEditable=function(){return!!this.bookmarkGroup&&!!this.userIsAdmin};h.getUrl=function(a){switch(a.resourceType){case "SAVED_SEARCH":return this.paths.viewSavedSearch(a.savedSearchId);case "HOTLIST":return qs.viewHotlist.makeHref(a.hotlistId);default:throw Error("Eg`"+a.resourceType);}};
h.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("Eg`"+a.resourceType);}};y9.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(y9)))(b||y9)}}();
y9.\u0275cmp=D({type:y9,selectors:[["view-bookmark-group-page"]],standalone:!1,features:[Gg([bQ]),Ef],decls:5,vars:3,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-view"],[1,"bv2-view-bookmark-group-title"],[1,"bv2-view-bookmark-group-header"],[3,"starMessage","unStarMessage","starred","disabled"],[3,"starMessage","unStarMessage","starred"],[1,"bv2-view-bookmark-group-title-text"],["type","button","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"],[3,"starClicked","starMessage","unStarMessage","starred"],[3,"href"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1),L(),M(2,"div",1),K(3,"div",2),F(4,Omc,13,3,"div"),L());a&2&&(B(),S("View Bookmark Group ",b.bookmarkGroup==null?null:b.bookmarkGroup.name),B(2),If("aria-busy",!b.bookmarkGroup),B(),G(b.bookmarkGroup?4:-1))},dependencies:[CY,vK,nA],encapsulation:2});var g4d=function(){};
g4d.\u0275fac=function(a){return new (a||g4d)};g4d.\u0275mod=$e({type:g4d});g4d.\u0275inj=Fc({imports:[WO,Y1,wK]});var z9=function(){A8.apply(this,arguments);this.ngZone=p(Rg);this.userApi=p(kP);this.hotlists=p(r5);this.hotkeys=p(nU);this.pageTitle=p(n2);this.userAccess=p(DP);this.routeParams=p(wS);this.mcPrefs=p(r1);this.ANALYTICS_CATEGORY="hotlistIssues";this.canAppend=this.isAdmin=this.isStarred=!1;this.hotlistId=this.routeParams.hotlistId;this.hotlist=null;this.isLoading=!0;this.repositioning=this.showHotlists=!1};Y(z9,A8);z9.\u0275dir=A8.\u0275dir;
z9.prototype.ngOnInit=function(){var a=this;A8.prototype.ngOnInit.call(this);this.subscriptions.add(oU(this.hotkeys,{title:"Hotlist",hotkeys:[].concat(q(this.BASE_HOTKEYS),[{keys:[Vr("j")],displayAs:"Shift+j",description:"Move the current issue down (when sorting by POS)",onPress:function(){h4d(a,1)}},{keys:[Vr("k")],displayAs:"Shift+k",description:"Move the current issue up (when sorting by POS)",onPress:function(){h4d(a,-1)}}])}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(b){b&&
Number(b.hotlistId)===Number(a.hotlistId)&&b.origin!=="view-hotlist"&&i4d(a)}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}));this.userApi.getUserBookmark("HOTLIST",this.hotlistId).then(function(){a.isStarred=!0}).catch(function(){});this.loadUserAccess(this.hotlistId)};
z9.prototype.ngDoCheck=function(){var a;if(this.hotlistName!==((a=this.hotlist)==null?void 0:a.name)){var b;this.hotlistName=(b=this.hotlist)==null?void 0:b.name;this.pageTitle.setTitle(this.hotlistName)}};
z9.prototype.loadUserAccess=function(a){var b=this;EP(this.userAccess,"admin","hotlists/"+a).then(function(c){b.isAdmin=c},function(c){b.errorHandler.errorHandler(null,c)});EP(this.userAccess,"appender","hotlists/"+a).then(function(c){b.canAppend=c},function(c){b.errorHandler.errorHandler(null,c)})};
z9.prototype.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;Dqd(this.appSearchState,"hotlistid:"+this.hotlistId);var b=this.hotlist?Promise.resolve(this.hotlist):i4d(this);return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
var i4d=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};
z9.prototype.doSearch=function(a){var b=this,c=BSd.map(Mt).filter(Pm),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=nm(f);f.query=d;f.returnUrl=b.bLocation.getUrl();f.hotlistId=b.hotlistId;f.trackerIds=b.appSearchState.currentTrackerScope;return fOd(b.issuePagination,f)});a.then(function(f){C1d(b,
f)}).catch(function(f){typeof f==="number"?S4(b.urlPreferences,{page:f}):b.errorHandler.errorHandler(null,f)});return ns({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,j4d(b)?z9.META_COLUMNS_DRAGGABLE:z9.META_COLUMNS);b.loadHotlists();b.cdr.detectChanges()}).catch(function(){})};
var j4d=function(a){return a.sortPreferences.length===0||a.sortPreferences.length===1&&a.sortPreferences[0].fieldId.type==="POSITION"};z9.prototype.getCsvUrl=function(){var a=this.appSearchState.currentTrackerScope,b=this.displayColumns,c=this.showHotlists,d="action/hotlists/"+this.hotlistId+"/issues/csv",e=zfb(this.sortPreferences);(b=Afb(b))&&(b="position,"+b);return Bfb(d,"trackerIds",a,"s",e,"c",b,"h",c)};
z9.prototype.repositionIssue=function(a,b,c){var d=this;c=c===void 0?!1:c;!this.repositioning&&this.searchResults&&(this.repositioning=!0,this.hotlists.repositionIssue(this.hotlistId,this.searchResults.issues,a,b,"view-hotlist",function(){d.searchResults&&(d.searchResults=d.searchResults.clone())}).then(function(e){d.hotlist=e;d.analytics.trackEvent(d.ANALYTICS_CATEGORY,c?"reorderByKeyboard":"issueDragDrop")}).finally(function(){d.repositioning=!1}))};
var h4d=function(a,b){if(a.searchResults&&!a.repositioning&&j4d(a)){var c,d,e=(d=(c=a.resultsGrid)==null?void 0:c.focusedRowIndex)!=null?d:void 0;if(e!=null&&(c=e+b,d=a.searchResults.issues.length,c>=0&&c<d)){if(b===1){var f;(f=a.resultsGrid)==null||YTb(f)}else if(b===-1){var g;(g=a.resultsGrid)==null||ZTb(g)}a.repositionIssue(e,c,!0)}}};h=z9.prototype;
h.save=function(){var a=this;if(this.hotlist){var b=this.hotlist,c=this.urlPreferences.getDisplayColumns();if(c){var d=d3a(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}});Rr(this.butterBar,"Saving changes to hotlist...");k4d(this,b).then(function(e){Rr(a.butterBar,'Saved changes to hotlist "'+
e.name+'".');S4(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams",d)})}};h.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");S4(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};h.hasParamChanges=function(){return this.hotlist&&this.isEditable()?!(!this.urlPreferences.getSortColumns()&&!this.urlPreferences.getDisplayColumns()):!1};
h.isEditable=function(){return this.hotlist!=null&&this.isAdmin};h.isDirectAdmin=function(){return this.hotlist?um(this.hotlist.adminUsers).includes(this.currentUserEmail):!1};h.setSort=function(a,b){var c=this.getSort();a==="position"||c&&c.field==="position"?A8.prototype.setSort.call(this,a,b,!1):A8.prototype.setSort.call(this,a,b)};
var k4d=function(a,b){return a.hotlistApi.updateMetadata(b.hotlistId,b).then(function(c){a.hotlist=c;l4d(a,c.hotlistId);return c},function(c){a.errorHandler.errorHandler(null,c);return Promise.reject(c)})},l4d=function(a,b){a.appEvents.hotlistChanged.next({hotlistId:b,origin:"view-hotlist"})};
z9.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=vo(this.hotlistId),c=function(){l4d(a,b)};this.isStarred?this.userApi.addUserBookmark({resourceType:"HOTLIST",resourceId:b}).then(c):this.userApi.removeUserBookmark({resourceType:"HOTLIST",resourceId:b}).then(c)};z9.prototype.openEditHotlist=function(){this.bLocation.setUrl(qs.editHotlist.makeHref(this.hotlistId))};z9.prototype.addToMissionControl=function(a){a!=null&&(this.mcPrefs.addHotlist(a),this.bLocation.setUrl(this.paths.home()))};
z9.prototype.showAddToMcButton=function(a){var b=this.activeSession.isInternalSession();a=a<=500;var c=!this.mcPrefs.hasHotlist(this.hotlistId);return b&&a&&c};z9.META_COLUMNS=[YTd,$Td,aUd,bUd];z9.META_COLUMNS_DRAGGABLE=[YTd,ZTd,$Td,aUd,bUd];z9.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(z9)))(b||z9)}}();
z9.\u0275cmp=D({type:z9,selectors:[["view-hotlist-page"]],standalone:!1,features:[Gg([bQ]),Ef],decls:10,vars:12,consts:[[1,"kd-appbar","kd-buttonbar"],[1,"bv2-edit-controls",3,"init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv","grid","hotlistChoices","showHotlistButtons","currentHotlistId","isHotlistAdmin"],[1,"bv2-appbar-right"],[3,"pageChange","resultsPerPageChange","searchResults"],[1,"bv2-view","bv2-view-hotlist-grid"],[1,"bv2-view-hotlist-title"],[1,"bv2-view-loading"],
["tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[1,"bv2-grid-container"],["mat-flat-button","","type","button","matTooltip","Add a section on the home page to track and get insights for this hotlist like trending issues, collaborators, and recent activity.",1,"medium","gmat-mdc-button","reverse-margin-left"],["mat-flat-button","","type","button","matTooltip","Add a section on the home page to track and get insights for this hotlist like trending issues, collaborators, and recent activity.",1,"medium",
"gmat-mdc-button","reverse-margin-left",3,"click"],[3,"starMessage","unStarMessage","starred"],[3,"starMessage","unStarMessage","starred","disabled"],[1,"bv2-view-hotlist-title-text"],["tabindex","-1",3,"bFocus"],[1,"bv2-view-hotlist-save-form"],[3,"starClicked","keydown.space","keydown.enter","starMessage","unStarMessage","starred"],["role","heading","aria-level","3"],[3,"matTooltip"],[1,"hotlist-archived"],[1,"button-container"],["type","button","aria-label","Hotlist settings","matTooltip","Hotlist settings",
1,"bv2-edit-button","bv2-view-resource-edit-button",3,"click"],["matTooltip","Display preferences have changed"],["type","button","mat-flat-button","","matTooltip","Save changes to display preferences",1,"medium",3,"click"],["type","button","mat-stroked-button","","matTooltip","Discard changes to display preferences",1,"medium",3,"click"],[3,"init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onRowDragDrop","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns",
"enableColumnSaving","sort","enableSidebar"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"b-grid-controls",1),N("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()}),L(),F(2,Qmc,1,1),K(3,"div",2)(4,"b-pagination",3),N("pageChange",
function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return b.saveResultsPerPage(d.option)}),L()()(),K(5,"div",4),F(6,$mc,9,7,"div",5),F(7,anc,4,1,"div",6),F(8,dnc,3,2,"div",7),F(9,enc,2,6,"div",8),L());if(a&2){var c;B();I("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices)("showHotlistButtons",b.canAppend)("currentHotlistId",b.hotlistId)("isHotlistAdmin",b.isAdmin);B();G((c=b.searchResults==null?null:b.searchResults.numResults)?2:-1,c);B(2);I("searchResults",b.searchResults);
B();If("aria-busy",b.isLoading);B();G(b.isInitializing?-1:6);B();G(b.isLoading?7:-1);B();G(b.isLoading||b.hasResults()?-1:8);B();G(!b.isLoading&&b.hasResults()?9:-1)}},dependencies:[G4,s5,CY,D4,vK,nA,cU,xW,kB,gB],encapsulation:2});var m4d=function(){};m4d.\u0275fac=function(a){return new (a||m4d)};m4d.\u0275mod=$e({type:m4d});m4d.\u0275inj=Fc({imports:[O4,t5,Y1,q5,wK,WO,eU,yW,mB,DE,sU,V1,l1]});var A9=function(){A8.apply(this,arguments);this.savedSearchApi=p(oP);this.hotkeys=p(nU);this.pageTitle=p(n2);this.userAccess=p(DP);this.routeParams=p(wS);this.mcPrefs=p(r1);this.ANALYTICS_CATEGORY="savedSearchIssues";this.isAdmin=!1;this.savedSearchId=this.routeParams.savedSearchId;this.savedSearch=null;this.isLoading=!0;this.showHotlists=!1};Y(A9,A8);A9.\u0275dir=A8.\u0275dir;h=A9.prototype;
h.ngOnInit=function(){var a=this;A8.prototype.ngOnInit.call(this);this.subscriptions.add(oU(this.hotkeys,{title:"Saved Search",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(b){b&&b.savedSearchId===a.savedSearchId&&(b.action==="delete"?(a.savedSearch=null,a.searchResults=null,a.appSearchState.clear()):a.loadSavedSearch())}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}));
this.subscriptions.add(Kqd(this.appSearchState,function(b){a.savedSearch?S4(a.urlPreferences,{query:b}):(b=a.paths.listIssues({q:b}),a.bLocation.setUrl(b))}));this.loadUserAccess(this.savedSearchId)};h.loadUserAccess=function(a){var b=this;EP(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
h.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};
h.getIssues=function(){var a=this,b=this.urlPreferences.getQuery()||"savedsearchid:"+this.savedSearchId;Dqd(this.appSearchState,b);this.searchResults=null;this.isLoading=!0;this.isInitializing=!1;b=this.savedSearch?Promise.resolve(this.savedSearch):this.loadSavedSearch();return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
h.doSearch=function(a){var b=this;a=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:x1d(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;Dqd(b.appSearchState,d.query);b.exitLink=b.paths.listIssues({q:d.query});b.cdr.detectChanges();d=nm(d);d.returnUrl=b.bLocation.getUrl();d.trackerIds=
b.appSearchState.currentTrackerScope;return fOd(b.issuePagination,d)});c.then(function(d){C1d(b,d)}).catch(function(d){typeof d==="number"?S4(b.urlPreferences,{page:d}):d&&b.errorHandler.errorHandler(null,d)});this.initColumns(a.displayColumns);return ns({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(){})};
h.isEditable=function(){return!!this.savedSearch&&this.isAdmin};h.getCsvUrl=function(){return Cfb(this.searchParams.query,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
h.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;Rr(this.butterBar,"Saving changes to search...");this.savedSearchApi.update(this.savedSearch.searchId,this.savedSearch).then(function(c){Rr(a.butterBar,'Saved changes to search "'+
c.name+'".');a.savedSearch=c;S4(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c)})};h.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");S4(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};
h.hasParamChanges=function(){return this.savedSearch?!!(this.urlPreferences.getQuery()&&this.urlPreferences.getQuery()!==this.savedSearch.query||this.urlPreferences.getSortColumns()||this.urlPreferences.getDisplayColumns()):!1};h.openEditSavedSearch=function(){this.bLocation.setUrl(this.paths.editSavedSearch(this.savedSearchId))};h.addToMissionControl=function(a){a!=null&&(VLd(this.mcPrefs,pub(a)),this.bLocation.setUrl(this.paths.home()))};
h.showAddToMcButton=function(a){var b=this.activeSession.isInternalSession();a=a<=500;var c=!this.mcPrefs.hasSavedSearch(this.savedSearchId);return b&&a&&c};A9.\u0275fac=function(){var a;return function(b){return(a||(a=Fd(A9)))(b||A9)}}();
A9.\u0275cmp=D({type:A9,selectors:[["view-saved-search-page"]],standalone:!1,features:[Gg([bQ]),Ef],decls:10,vars:8,consts:[[1,"kd-appbar","kd-buttonbar"],[1,"bv2-edit-controls",3,"init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv","grid","hotlistChoices"],[1,"bv2-appbar-right"],[3,"pageChange","resultsPerPageChange","searchResults"],[1,"bv2-view","bv2-view-savedsearch-grid"],[1,"bv2-view-savedsearch-title"],[1,"bv2-view-savedsearch-title-text"],[1,"bv2-view-savedsearch-save-form"],
["mat-flat-button","","type","button","matTooltip","Add a section on the home page to track and get insights for this Saved Search like trending issues, collaborators, and recent activity.",1,"medium","gmat-mdc-button","reverse-margin-left"],["mat-flat-button","","type","button","matTooltip","Add a section on the home page to track and get insights for this Saved Search like trending issues, collaborators, and recent activity.",1,"medium","gmat-mdc-button","reverse-margin-left",3,"click"],["role",
"heading","aria-level","3"],[3,"matTooltip"],["type","button","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"],["type","button","mat-flat-button","","matTooltip","Save changes to display preferences and search query",1,"medium"],["type","button","mat-stroked-button","","matTooltip","Discard changes to display preferences and search query",1,"medium",
3,"click"],[1,"bv2-view-savedsearch-exit-link"],["matTooltip","Show this search with your default display preferences",3,"click","href"],["type","button","mat-flat-button","","matTooltip","Save changes to display preferences and search query",1,"medium",3,"click"],[1,"bv2-view-loading"],[1,"bv2-grid-container"],["tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[3,"init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns",
"enableColumnSaving","sort","enableSidebar"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"b-grid-controls",1),N("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()}),L(),F(2,gnc,1,1),K(3,"div",2)(4,"b-pagination",3),N("pageChange",
function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return b.saveResultsPerPage(d.option)}),L()()(),K(5,"div",4)(6,"div",5),F(7,mnc,3,1,"div",6),F(8,onc,7,2,"div",7),L(),F(9,unc,3,1,"div"),L());if(a&2){var c;B();I("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices);B();G((c=b.searchResults==null?null:b.searchResults.numResults)?2:-1,c);B(2);I("searchResults",b.searchResults);B();If("aria-busy",b.isLoading);B(2);G(b.isInitializing?-1:7);B();G(b.hasParamChanges()?8:-1);B();
G(b.savedSearch?9:-1)}},dependencies:[G4,s5,D4,vK,nA,cU,xW,kB,gB],encapsulation:2});var n4d=function(){};n4d.\u0275fac=function(a){return new (a||n4d)};n4d.\u0275mod=$e({type:n4d});n4d.\u0275inj=Fc({imports:[O4,t5,q5,WO,wK,eU,yW,mB,DE,sU,V1,l1]});var o4d={path:qs.viewIssue.routeDeclarationPath,component:Y7,children:[{path:"",pathMatch:"full",component:o8},{path:"dependencies",component:Q1},{path:"dupes",component:$7},{path:"blocking",component:I7},{path:"resources",component:t1d}].concat(q(wnc("enableCodeMentionsUi",{path:"todos",component:y8})),q(vnc(function(){var a=Wn();return qTa(a)==="INTERNAL"},{path:"insights",component:CYd})))},p4d=[{path:"",component:Y6,canActivateGuards:[d7]},{title:Pt("Issues"),path:qs.listIssues.routeDeclarationPath,
component:B8},{title:Pt("New issue"),path:qs.createIssue.routeDeclarationPath,component:B7,canActivateGuards:[o7]}].concat(q(vnc(function(){var a;if(a=eVa("enableChromeWizard")){var b;a=((b=Wn().tracker)==null?void 0:b.trackerId)==="157"}return a},{title:Pt("New issue"),path:qs.createIssueChromeWizard.routeDeclarationPath,component:QZd})),[o4d,{title:Pt("Browse All Components"),path:qs.listComponentsGlobal.routeDeclarationPath,component:GYd},{title:Pt("Browse Components"),path:qs.listComponents.routeDeclarationPath,
component:p7},{title:Pt("Create component"),path:qs.createComponent.routeDeclarationPath,component:r7},{title:Pt("Component"),path:qs.editComponent.routeDeclarationPath,component:Q8},{path:"components/:componentId/manage",redirectTo:qs.editComponent.routeDeclarationPath},{path:"components/:componentId",redirectTo:qs.editComponent.routeDeclarationPath}],q(wnc("enableTeamScope",{title:Pt("Triage"),path:qs.viewTriage.routeDeclarationPath,component:W1})),q(wnc("enableTeamScope",{title:Pt("Triage"),path:qs.viewTriageDashboard.routeDeclarationPath,
component:NLd})),q(wnc("enableTeamScope",{title:Pt("Issue Themes"),path:qs.viewIssueThemes.routeDeclarationPath,component:i1})),q(wnc("enableTeamScope",{title:Pt("Triage"),path:qs.triageSettings.routeDeclarationPath,component:a2})),[{title:Pt("Team"),path:qs.editTeam.routeDeclarationPath,component:R8},{path:"teams/:teamId",redirectTo:qs.editTeam.routeDeclarationPath},{title:Pt("Create Bookmark Group"),path:qs.createBookmarkGroup.routeDeclarationPath,component:q7},{title:Pt("Bookmark Group"),path:qs.viewBookmarkGroup.routeDeclarationPath,
component:y9},{title:Pt("Bookmark Group"),path:qs.editBookmarkGroup.routeDeclarationPath,component:E7},{title:Pt("Create Hotlist"),path:qs.createHotlist.routeDeclarationPath,component:s7},{title:Pt("Hotlist"),path:qs.viewHotlist.routeDeclarationPath,component:z9},{title:Pt("Edit Hotlist"),path:qs.editHotlist.routeDeclarationPath,component:nUd},{title:Pt("Create SLO"),path:qs.createSlo.routeDeclarationPath,component:H_d},{title:Pt("SLO"),path:qs.viewSlo.routeDeclarationPath,component:H7},{title:Pt("SLO"),
path:qs.editSlo.routeDeclarationPath,component:H7},{title:Pt("Saved search"),path:qs.editSavedSearch.routeDeclarationPath,component:F7},{title:Pt("All of my hotlists"),path:qs.listHotlists.routeDeclarationPath,component:z8},{title:Pt("Manage SLOs"),path:qs.listSlos.routeDeclarationPath,component:H1d},{title:Pt("Saved search"),path:qs.viewSavedSearch.routeDeclarationPath,component:A9},{title:Pt("Dashboard"),path:qs.viewDashboard.routeDeclarationPath,component:D7},{title:Pt("Settings"),path:qs.settingsTab.routeDeclarationPath,
component:x9},{title:Pt("Settings"),path:qs.settings.routeDeclarationPath,component:x9},{title:Pt("View Attachment"),path:qs.viewAttachment.routeDeclarationPath,component:f4d,hideAppChrome:!0},{title:Pt("Home"),path:qs.home.routeDeclarationPath,component:j9,canActivateGuards:[c7]},{path:"**",component:Y6,canActivateGuards:[d7]}]);var B9=function(){};B9.\u0275fac=function(a){return new (a||B9)};B9.\u0275mod=$e({type:B9});B9.\u0275inj=Fc({imports:[WO,yX,mB]});var q4d=function(){};q4d.\u0275fac=function(a){return new (a||q4d)};q4d.\u0275mod=$e({type:q4d});q4d.\u0275inj=Fc({imports:[WO,CU,TK,xX,B9]});var r4d=function(){};r4d.\u0275fac=function(a){return new (a||r4d)};r4d.\u0275mod=$e({type:r4d});r4d.\u0275inj=Fc({imports:[WO,qU,mB,TJ]});var s4d=function(){};s4d.\u0275fac=function(a){return new (a||s4d)};s4d.\u0275mod=$e({type:s4d});s4d.\u0275inj=Fc({imports:[wX,WO,y0d,qU,mB,iK,WJ,wK,D5,p5,q8,r4d]});var t4d=function(){};t4d.\u0275fac=function(a){return new (a||t4d)};t4d.\u0275mod=$e({type:t4d});t4d.\u0275inj=Fc({imports:[WO,qU,mB,wK]});var u4d=function(){};u4d.\u0275fac=function(a){return new (a||u4d)};u4d.\u0275mod=$e({type:u4d});u4d.\u0275inj=Fc({imports:[z0,WO,wK,lL,PU,mB,eU,fX,p5,vX]});var v4d=function(){};v4d.\u0275fac=function(a){return new (a||v4d)};v4d.\u0275mod=$e({type:v4d});v4d.\u0275inj=Fc({imports:[WO,HX,TK,BV]});var w4d=function(){};w4d.\u0275fac=function(a){return new (a||w4d)};w4d.\u0275mod=$e({type:w4d});w4d.\u0275inj=Fc({imports:[q4d,HX,WO,I_,S0,qU,TK,FX,X0,B9,mB,iK,wK,Y1,BV,v4d,t4d,s4d,u4d]});var x4d=function(){};x4d.\u0275fac=function(a){return new (a||x4d)};x4d.\u0275mod=$e({type:x4d});x4d.\u0275inj=Fc({imports:[r8,WO,eU,mB,FU,oA]});var y4d=function(){};y4d.\u0275fac=function(a){return new (a||y4d)};y4d.\u0275mod=$e({type:y4d});y4d.\u0275inj=Fc({imports:[WO,mB]});var C9=function(){};C9.\u0275fac=function(a){return new (a||C9)};C9.\u0275mod=$e({type:C9});C9.\u0275inj=Fc({imports:[WO,wV,mB,wK]});var D9=function(){};D9.\u0275fac=function(a){return new (a||D9)};D9.\u0275mod=$e({type:D9});D9.\u0275inj=Fc({imports:[b6,uI,Hy,WO,FU,Cz,CU,fX,DE,x4d,w4d,n5,Q0,mB,TJ,zM,DL,wK,EE,K0d,p5,xU,y4d,C9]});var z4d=function(){};z4d.\u0275fac=function(a){return new (a||z4d)};z4d.\u0275mod=$e({type:z4d});z4d.\u0275inj=Fc({imports:[WO,N6]});var A4d=function(){};A4d.\u0275fac=function(a){return new (a||A4d)};A4d.\u0275mod=$e({type:A4d});A4d.\u0275inj=Fc({imports:[WO,Hy,uI,DE,EE,mB,DL,xU,wX,D9,s1d,R1,n0d,L0d,z4d,u1d]});var B4d=p4d.map(function(a){var b=a.redirectTo?void 0:[$6,b7].concat(q(a.canActivateGuards||[])),c;return{title:a.title,path:a.path,redirectTo:a.redirectTo,component:a.component,canDeactivate:[rY],canActivate:b,children:a.children,isRootRoute:!0,hideAppChrome:(c=a.hideAppChrome)!=null?c:!1}});B4d.push({path:"**",canActivate:["dontActivate"],component:Y6,isRootRoute:!0,hideAppChrome:!1});
var C4d=Wn().appBaseHref,D4d,E9={initialNavigation:"disabled"},E4d=(E9==null?0:E9.errorHandler)?{provide:LQc,useValue:E9.errorHandler}:[],F4d={provide:VE,useValue:E9?E9:{}},G4d=(E9==null?0:E9.useHash)?{provide:hy,useClass:jy}:{provide:hy,useClass:iy},H4d={provide:rRc,useFactory:function(){var a=p(OAc),b=p(VE);b.scrollOffset&&QAc(a,b.scrollOffset);return new kF(b)}},I4d=(E9==null?0:E9.preloadingStrategy)?dya(0,[{provide:xRc,useExisting:jF},{provide:nRc,useExisting:E9.preloadingStrategy}]).\u0275providers:
[],J4d;
(E9==null?0:E9.initialNavigation)?J4d=[E9.initialNavigation==="disabled"?dya(3,[Pka(function(){eRc(p(fF))}),{provide:wRc,useValue:2}]).\u0275providers:[],E9.initialNavigation==="enabledBlocking"?dya(2,[{provide:Nyc,useValue:!0},{provide:wRc,useValue:0},Pka(function(){var a=p(ye);return a.get(KAc,Promise.resolve()).then(function(){return new Promise(function(b){var c=a.get(fF),d=a.get(vRc);cya(c,function(){b(!0)});a.get(ZE).afterPreactivation=function(){b(!0);return d.closed?ce(void 0):d};c.initialNavigation()})})})]).\u0275providers:[]]:
J4d=[];var K4d=J4d,L4d=(E9==null?0:E9.bindToComponentInputs)?dya(8,[RE,{provide:iQc,useExisting:RE}]).\u0275providers:[],M4d;if(E9==null?0:E9.enableViewTransitions){xe("NgRouterViewTransitions");var N4d=[{provide:JQc,useValue:bya},{provide:$xa,useValue:Object.assign({},{skipNextTransition:!1},void 0)}];M4d=dya(9,N4d).\u0275providers}else M4d=[];
D4d={ngModule:lF,providers:[yRc,[],{provide:Yxa,multi:!0,useValue:[]},[],E4d,F4d,G4d,H4d,I4d,K4d,L4d,M4d,[{provide:zRc,useFactory:function(){var a=p(ye);return function(b){var c=a.get(Wg);if(b===c.components[0]){b=a.get(fF);var d=a.get(vRc);a.get(wRc)===1&&b.initialNavigation();var e;(e=a.get(xRc,null,{optional:!0}))==null||oRc(e);var f;(f=a.get(rRc,null,{optional:!0}))==null||f.init();c=c.componentTypes[0];b.routerState.root.component=c;b.navigationTransitions.rootComponentType=c;d.closed||(d.next(),
d.complete(),d.unsubscribe())}}}},{provide:Pzc,multi:!0,useExisting:zRc}]]};var O4d=function(){var a=p(fF),b=p(WQ);a.config=B4d.map(Xwa);a.navigated=!1;a.initialNavigation();Hjd(b)};O4d.\u0275fac=function(a){return new (a||O4d)};O4d.\u0275mod=$e({type:O4d});O4d.\u0275inj=Fc({providers:[{provide:"dontActivate",useValue:function(){return!1}},{provide:$E,useExisting:Z6},{provide:NAc,useValue:C4d},b7,$6],imports:[D4d,jZd,A4d,lF]});var P4d=new dd("Environment");var Q4d=new dd("Worktracker API Key");var R4d=new dd("G3C API Keys");var S4d=function(){};S4d.\u0275fac=function(a){return new (a||S4d)};S4d.\u0275mod=$e({type:S4d});S4d.\u0275inj=Fc({providers:[{provide:P4d,useFactory:xnc},{provide:R4d,useValue:{prodApiKey:"AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk",stagingApiKey:"AIzaSyCYqhU0fWA9T487wYfx1ogB9z2mNJ9AQco",autopushApiKey:"AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM"}},{provide:Q4d,useValue:"AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c"}]});var F9=function(a){this.lookupId_=a;this.displayName_="";this.forceDisplayNameOverride_=!1},Asc=function(a){return new F9(a)};F9.prototype.getId=function(){return this.lookupId_};F9.prototype.setDisplayName=function(a){this.displayName_=a;return this};F9.prototype.getDisplayName=function(){return this.displayName_};var Bsc=function(a,b){a.forceDisplayNameOverride_=b;return a};F9.prototype.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride_};
F9.prototype.equals=function(a){return a?this===a?!0:this.getId().equals(a.getId())&&this.getDisplayName()===a.getDisplayName()&&this.getForceDisplayNameOverride()===a.getForceDisplayNameOverride():!1};var ync=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ync,W);ync.prototype.setEnabled=function(a,b){return zc(this,1,Cb,b,a,Db,void 0,1)};ync.prototype.setDisabled=function(a,b){zc(this,2,Cb,b,a,Db,void 0,1)};var T4d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(T4d,W);h=T4d.prototype;h.getEnableClearcut=function(){return Fi(this,1)};h.setEnableClearcut=function(a){return Oi(this,1,a)};h.getClientId=function(){return wi(this,2)};h.setClientId=function(a){return Gn(this,2,a)};h.getSocialApplication=function(){return wi(this,3)};h.getSocialApplicationOrUndefined=function(){return vp(this,3)};h.getComponentFlow=function(){return wi(this,4)};
h.setComponentFlow=function(a){return Gn(this,4,a)};h.getInterfaceType=function(){return wi(this,5)};h.setInterfaceType=function(a){return Gn(this,5,a)};var G9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(G9,W);G9.prototype.getEnableAutocompleteLegalese=function(){return Fi(this,11)};var H9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(H9,W);H9.prototype.getApplication=function(){return wi(this,1)};H9.prototype.setApplication=function(a){return Gn(this,1,a)};H9.prototype.getApplicationOrUndefined=function(){return vp(this,1)};H9.prototype.getIsEnabled=function(){return Fi(this,2)};var U4d=[0,uA,-16];var V4d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(V4d,W);h=V4d.prototype;h.getClearcut=function(){return X(this,T4d,1)};h.setClearcut=function(a){Mi(this,T4d,1,a)};h.hasClearcut=function(){return xi(this,T4d,1)};h.getExperiments=function(){return X(this,H9,2)};h.setExperiments=function(a){return Mi(this,H9,2,a)};h.hasExperiments=function(){return xi(this,H9,2)};h.getEnableAutocompleteLegalese=function(){return Fi(this,13,!0)};var W4d=Bsa(V4d);var X4d;var Y4d=function(){var a=Jrc(X4d||(X4d=W4d('[[true,49,740,4],[7,true],null,null,null,null,null,null,null,"core_features",[[3,4,1,5]],null,false,false]')));a.hasClearcut()||a.setClearcut(new T4d);a.hasExperiments()||a.setExperiments(new H9);this.internal=a};var Z4d=function(a,b,c,d,e,f){this.coreTypeOrder=a;this.decoratorTypeOrder=b;this.getCompatibleTypes=c;this.container=d;this.extractor=e;this.configurationKey=f===void 0?"\ud83c\udf68":f};
Z4d.prototype.create=function(a){for(var b=this,c=m(this.coreTypeOrder.filter(function(g){var k=b.configurationKey;return b.container.configurations.hasCoreType(g,k===void 0?"\ud83c\udf68":k)})),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.container.getCoreFactory(d),f=void 0;if((f=e)==null?0:f.shouldCreate(a))return c=void 0,this.extractor(this.decorate((c=e)==null?void 0:c.create(a),d,a))}throw Error("Fg");};
Z4d.prototype.decorate=function(a,b,c){var d=this,e,f=(e=this.getCompatibleTypes(b))!=null?e:new Set;return this.decoratorTypeOrder.filter(function(g){var k=d.configurationKey;return d.container.configurations.hasDecoratorType(g,k===void 0?"\ud83c\udf68":k)&&f.has(g)}).map(function(g){return d.container.getDecoratorFactory(g)}).filter(function(g){return g==null?void 0:g.shouldCreate(c)}).reduce(function(g,k){return k.create(c,g)},a)};var $4d=function(){this.core=new Set;this.decorators=new Set};$4d.prototype.addCoreType=function(a){this.core.add(a)};$4d.prototype.addDecoratorType=function(a){this.decorators.add(a)};$4d.prototype.hasCoreType=function(a){return this.core.has(a)};$4d.prototype.hasDecoratorType=function(a){return this.decorators.has(a)};var a5d=function(){this.configurations=new Map};h=a5d.prototype;h.addCoreType=function(a,b){this.configurations.has(b)||this.configurations.set(b,new $4d);this.configurations.get(b).addCoreType(a)};
h.addDecoratorType=function(a,b){this.configurations.has(b)||this.configurations.set(b,new $4d);this.configurations.get(b).addDecoratorType(a)};h.hasCoreType=function(a,b){var c,d;return!!(((c=this.configurations.get(b))==null?0:c.hasCoreType(a))||((d=this.configurations.get("\ud83c\udf68"))==null?0:d.hasCoreType(a)))};h.hasDecoratorType=function(a,b){var c,d;return!!(((c=this.configurations.get(b))==null?0:c.hasDecoratorType(a))||((d=this.configurations.get("\ud83c\udf68"))==null?0:d.hasDecoratorType(a)))};
h.clear=function(){this.configurations.clear()};var b5d=function(){this.core=new Map;this.decorator=new Map};h=b5d.prototype;h.addCoreFactory=function(a,b){this.core.has(a)||this.core.set(a,b)};h.addDecoratorFactory=function(a,b){this.decorator.has(a)||this.decorator.set(a,b)};h.getCoreFactory=function(a){return this.core.get(a)};h.getDecoratorFactory=function(a){return this.decorator.get(a)};h.clear=function(){this.core.clear();this.decorator.clear()};
var I9=function(a){var b=this;var c=a.coreTypeOrder;var d=a.decoratorTypeOrder;var e=a.extractor;a=a.getCompatibleTypes;this.configurations=new a5d;this.factories=new b5d;this.coreTypeOrder=c;this.decoratorTypeOrder=d;this.extractor=e;this.getCompatibleTypes=a;c5d.set(this,function(){b.configurations.clear();b.factories.clear()})};
I9.prototype.addCoreFactory=function(a){var b=a.type;var c=a.factory;this.configurations.addCoreType(b,a.configurationKey===void 0?"\ud83c\udf68":a.configurationKey);this.factories.addCoreFactory(b,c)};I9.prototype.addDecoratorFactory=function(a){var b=a.type;var c=a.factory;this.configurations.addDecoratorType(b,a.configurationKey===void 0?"\ud83c\udf68":a.configurationKey);this.factories.addDecoratorFactory(b,c)};I9.prototype.getCoreFactory=function(a){return this.factories.getCoreFactory(a)};
I9.prototype.getDecoratorFactory=function(a){return this.factories.getDecoratorFactory(a)};var Toc=function(a,b){b=b===void 0?"\ud83c\udf68":b;return new Z4d(a.coreTypeOrder,a.decoratorTypeOrder,a.getCompatibleTypes,a,a.extractor,b===void 0?"\ud83c\udf68":b)},c5d=new Map;var Bu=new I9({coreTypeOrder:[0,1,2],decoratorTypeOrder:[0,1,2],extractor:function(a){return a.chip},getCompatibleTypes:function(a){var b=new Set([1]);a===2&&(b.add(0),b.add(2));a===0&&b.add(0);return b}});var d5d={},e5d={},f5d={},g5d={},h5d={},J9=function(){throw Error("Gg");};J9.prototype.contentDir=null;J9.prototype.getContent=function(){return this.content};J9.prototype.toString=function(){return this.content};J9.prototype.toSafeHtml=function(){if(this.contentKind!==d5d)throw Error("Hg");return qh(this.toString())};var i5d=function(){J9.call(this)};yw(i5d,J9);i5d.prototype.contentKind=d5d;var j5d=function(){J9.call(this)};yw(j5d,J9);j5d.prototype.contentKind=e5d;j5d.prototype.contentDir=1;var k5d=function(a){if(a!=null)switch(a.contentDir){case 1:return 1;case -1:return-1;case 0:return 0}return null},nv=function(a){return K9(a,d5d)?a:a instanceof ph?pv(sh(a).toString()):pv(String(String(a)).replace(l5d,m5d),k5d(a))},pv=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c,d){c=new b(String(c));d!==void 0&&(c.contentDir=d);return c}}(i5d),n5d=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c){return new b(String(c))}}(j5d),
M9=function(a){return a instanceof L9?o5d(a)?!0:!!a.getContent():a instanceof J9?!!a.getContent():!!a},ssc=function(a){return nv(a)},tv=function(a){return K9(a,d5d)?a:pv(p5d(a,q5d),k5d(a))},r5d=RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),p5d=function(a,b){if(!b)return Cnc(String(a),function(){return""}).replace(s5d,"&lt;");a=String(a).replace(/\[/g,"&#91;");var c=[],d=[];a=Cnc(a,function(f,g){if(g&&(g=g.toLowerCase(),b.hasOwnProperty(g)&&
b[g])){var k=c.length,l="</",r="";if(f.charAt(1)!=="/"){l="<";for(var w;w=t5d.exec(f);)if(w[1]&&w[1].toLowerCase()==="dir"){if(f=w[2]){if(f.charAt(0)==="'"||f.charAt(0)==='"')f=f.substr(1,f.length-2);f=f.toLowerCase();if(f==="ltr"||f==="rtl"||f==="auto")r=' dir="'+f+'"'}break}t5d.lastIndex=0}c[k]=l+g+">";d[k]=r;return"["+k+"]"}return""});a=String(a).replace(u5d,m5d);var e=v5d(c);a=a.replace(/\[(\d+)\]/g,function(f,g){return d[g]&&c[g]?c[g].substr(0,c[g].length-1)+d[g]+">":c[g]});return a+e},Anc=RegExp.prototype.hasOwnProperty("sticky"),
Bnc=new RegExp((Anc?"":"^")+"(?:!|/?([a-zA-Z][a-zA-Z0-9:-]*))",Anc?"gy":"g"),w5d=function(a,b){a=a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>");return b?a.replace(/{/g," \\{").replace(/}/g," \\}").replace(/\/\*/g,"/ *").replace(/\\$/,"\\ "):a},v5d=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c];e.charAt(1)=="/"?(e=b.lastIndexOf(e),e<0?a[c]="":(a[c]=b.slice(e).reverse().join(""),b.length=e)):e=="<li>"&&b.lastIndexOf("</ol>")<0&&b.lastIndexOf("</ul>")<0?a[c]="":r5d.test(e)||b.push("</"+
e.substring(1))}return b.reverse().join("")},mv=function(a){K9(a,d5d)?(a=p5d(a.getContent()),a=String(a).replace(u5d,m5d)):a=String(a).replace(l5d,m5d);return a},x5d=function(a){K9(a,g5d)&&(a=a.getContent());return(a&&!a.startsWith(" ")?" ":"")+a},A5d=function(a){return String(a).replace(y5d,z5d)},ov=function(a){K9(a,e5d)||K9(a,f5d)?a=String(a).replace(y5d,z5d):yh(a)?a=A5d(nqa(a)):a instanceof uh?a=A5d(wh(a).toString()):(a=String(a),a=B5d.test(a)?a.replace(y5d,z5d):"about:invalid#zSoyz");return a},
D5d=function(a){K9(a,e5d)||K9(a,f5d)?a=String(a).replace(y5d,z5d):yh(a)?a=A5d(nqa(a)):a instanceof uh?a=A5d(wh(a).toString()):(a=String(a),a=C5d.test(a)?a.replace(y5d,z5d):"about:invalid#zSoyz");return a},N9=function(a){return K9(a,h5d)?w5d(a.getContent(),!1):a==null?"":w5d(String(a),!0)},K9=function(a,b){return a!=null&&a.contentKind===b},L9=function(){J9.call(this)};Y(L9,i5d);
var qv=function(a,b){a.parts!==void 0?a.parts.push(b):a.content+=b;return a},sv=function(a,b){a.parts!==void 0?a.parts.push(b):b instanceof L9?b.content!==void 0?a.content+=b.getContent():(a.parts=[a.content,b],a.content=void 0):a.content+=b;return a};L9.prototype.getContent=function(){if(this.content!==void 0)return this.content;for(var a="",b=m(this.parts),c=b.next();!c.done;c=b.next())a+=c.value;return a};L9.prototype.toString=function(){return this.getContent()};
var o5d=function(a){var b;a=m((b=a.parts)!=null?b:[]);for(b=a.next();!b.done;b=a.next())if(b=b.value,b instanceof L9&&o5d(b))return!0;return!1},rv=function(){function a(){this.content=""}a.prototype=L9.prototype;return function(){return new a}}(),E5d={"\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;"},m5d=function(a){return E5d[a]},F5d={"\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"},z5d=function(a){return F5d[a]},l5d=/[\x00\x22\x26\x27\x3c\x3e]/g,u5d=/[\x00\x22\x27\x3c\x3e]/g,y5d=/[\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,B5d=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,C5d=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^ftp:|^data:image\/[a-z0-9+-]+;base64,[a-z0-9+\/]+=*$|^blob:/i,G5d=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,
H5d=function(a){a=String(a);return G5d.test(a)?a:"zSoyz"},s5d=/</g,q5d={b:!0,br:!0,em:!0,i:!0,s:!0,strong:!0,sub:!0,sup:!0,u:!0},t5d=/([a-zA-Z][a-zA-Z0-9:\-]*)[\t\n\r\u0020]*=[\t\n\r\u0020]*("[^"]*"|'[^']*')/g;var Dnc={};var Lnc=function(a){var b=a.imageUrls,c=a.backupUrl,d=a.size,e=a.preloadSize,f=a.pixelRatio;a=qv(rv(),'<div class="'+mv("peoplekitComponentsAvatarImplAvatarContainer")+'" style="width: '+mv(N9(d))+"px; height: "+mv(N9(d))+'px"><div peoplekit-id="'+mv("YLEF4c")+'" class="'+mv("peoplekitComponentsAvatarImplAvatar")+'" style="width: '+mv(N9(d))+"px; height: "+mv(N9(d))+'px">');b=b.length===1?qv(sv(qv(rv(),'<div class="'+mv("peoplekitComponentsAvatarImplContainer")+'">'),O9(b[0],c,d,e,f)),"</div>"):b.length===
2?qv(sv(qv(sv(qv(sv(qv(rv(),'<div class="'+mv("peoplekitComponentsAvatarImplContainer")+'"><div class="'+mv("peoplekitComponentsAvatarImplColumn")+'">'),O9(b[0],c,d,e,f)),"</div>"),I5d()),'<div class="'+mv("peoplekitComponentsAvatarImplColumn")+'">'),O9(b[1],c,d,e,f)),"</div></div>"):b.length===3?qv(sv(qv(sv(qv(sv(qv(sv(qv(sv(qv(rv(),'<div class="'+mv("peoplekitComponentsAvatarImplContainer")+'"><div class="'+mv("peoplekitComponentsAvatarImplColumn")+'">'),O9(b[0],c,d,e,f)),"</div>"),I5d()),'<div class="'+
mv("peoplekitComponentsAvatarImplColumn")+'"><div class="'+mv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[1],c,Math.round(d*.5),e,f)),"</div>"),I5d()),'<div class="'+mv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[2],c,Math.round(d*.5),e,f)),"</div></div></div>"):qv(sv(qv(sv(qv(sv(qv(sv(qv(sv(qv(sv(qv(sv(qv(rv(),'<div class="'+mv("peoplekitComponentsAvatarImplContainer")+'"><div class="'+mv("peoplekitComponentsAvatarImplColumn")+'"><div class="'+mv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[0],
c,Math.round(d*.5),e,f)),"</div>"),I5d()),'<div class="'+mv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[2],c,Math.round(d*.5),e,f)),"</div></div>"),I5d()),'<div class="'+mv("peoplekitComponentsAvatarImplColumn")+'"><div class="'+mv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[1],c,Math.round(d*.5),e,f)),"</div>"),I5d()),'<div class="'+mv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[3],c,Math.round(d*.5),e,f)),"</div></div></div>");b=sv(rv(),b);return qv(sv(qv(sv(a,b),'</div><div peoplekit-id="'+
mv("Btuy5e")+'" class="'+mv("peoplekitComponentsAvatarImplAvatarBadge")+'">'),pv('<img class="'+mv("peoplekitComponentsAvatarImplBadgeIconImage")+'" peoplekit-id="'+mv("m6fZne")+'" draggable="false" alt="">')),"</div></div>")},O9=function(a,b,c,d,e){var f=qv(rv(),'<div peoplekit-id="'+mv("IHgMKc")+'" class="'+mv("peoplekitComponentsAvatarImplImageRoot")+'">'),g=ov(hqd(a,c,c,e));g=n5d(g);a=ov(hqd(a,d,d,e));a=n5d(a);b=ov(hqd(b,c,c,e));b=n5d(b);g=qv(f,'<img peoplekit-id="'+mv("HiaYvf")+'" class="'+mv("peoplekitComponentsAvatarImplImage")+
'" style="width: '+mv(N9(c))+"px; height: "+mv(N9(c))+'px;" data-preload-src="'+mv(a)+'" data-src="'+mv(g)+'" data-backup-src="'+mv(b)+'" draggable="false" alt="">');c=pv('<svg xmlns="http://www.w3.org/2000/svg" height="'+mv(c)+'px" viewBox="0 0 24 24" width="'+mv(c)+'px" class="'+mv("peoplekitComponentsAvatarImplDefaultAvatarImage")+'"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2l-5.5 9h11L12 2zm0 3.84L13.93 9h-3.87L12 5.84zM17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM3 21.5h8v-8H3v8zm2-6h4v4H5v-4z"/></svg>');
qv(sv(g,c),"</div>");return f},I5d=function(){return pv('<div class="'+mv("peoplekitComponentsAvatarImplDivider")+'"></div>')};var J5d=new Map([[0,"light_theme"],[1,"dark_theme"]]);var Gnc=!Ou&&!gba();var K5d=new Map([[1,"badge_active"],[2,"badge_inactive"],[3,"badge_idle"],[4,"badge_do_not_disturb"],[5,"badge_video"]]),L5d=new Map([[1,"Active."],[2,"Inactive."],[3,"Idle."],[4,"Do Not Disturb."],[5,"In Video Call."]]),Nnc=function(a,b){this.appearance=b;this.root=a;M5d(this)};h=Nnc.prototype;
h.setBadge=function(a){var b=wu(this.root,"Btuy5e");if(a.badgeType===0)b.classList.remove("visible");else{var c=K5d.get(a.badgeType)||"";if(c){var d=this.appearance.getTheme();c="https://www.gstatic.com/people/peoplekit/icons/"+(J5d.get(d)||"light_theme")+"/"+c+".svg"}else c="";a=L5d.get(a.badgeType)||"";d=wu(b,"m6fZne");c&&(d.src=c);d.alt=a;b.classList.add("visible")}};h.getAllIds=function(){return[]};h.updateWaldo=function(){};h.updateHubAvailabilityDot=function(){};
h.getSupportedIntelligenceFeatures=function(){return[]};h.initializeIntelligence=function(){};
var M5d=function(a){a=m(Enc(a.root,"IHgMKc"));for(var b=a.next(),c={};!b.done;c={img$jscomp$13:void 0,src$jscomp$70:void 0,imageRoot:void 0,backupSrc:void 0},b=a.next())c.imageRoot=b.value,c.img$jscomp$13=wu(c.imageRoot,"HiaYvf"),b=Inc(c.img$jscomp$13,"preloadSrc"),c.src$jscomp$70=Inc(c.img$jscomp$13,"src"),c.backupSrc=Inc(c.img$jscomp$13,"backupSrc"),Jnc(c.src$jscomp$70)?c.img$jscomp$13.src=c.src$jscomp$70:Jnc(b)?(c.img$jscomp$13.src=b,Hs(function(d){return function(){d.img$jscomp$13.src=d.src$jscomp$70}}(c),
0)):(c.imageRoot.classList.add("isLoading"),c.img$jscomp$13.onload=function(d){return function(){d.imageRoot.classList.remove("isLoading")}}(c),c.img$jscomp$13.onerror=function(d){return function(){d.img$jscomp$13.getAttribute("src")===d.backupSrc?(d.img$jscomp$13.onerror=null,d.imageRoot.classList.remove("isLoading"),d.imageRoot.classList.add("isNotLoaded")):d.img$jscomp$13.src=d.backupSrc}}(c),c.img$jscomp$13.src=c.src$jscomp$70)};var Knc=function(){this.style=this.theme=this.density=0};h=Knc.prototype;h.getDensity=function(){return this.density};h.setDensity=function(a){this.density=a};h.getTheme=function(){return this.theme};h.setTheme=function(a){this.theme=a};h.getStyle=function(){return this.style};h.setStyle=function(a){this.style=a};var Wnc=Pu.getInstance();var Ync=function(a){a=a.memberCount;return(new Vl("{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)};var coc=Pu.getInstance();var eoc=function(a,b,c){var d=this;this.root=a;this.selection=b;this.selectionsState=c;this.isDisabledInternal=!1;this.deleteButton=wu(this.root,"bxvLg");this.eventHandler=Au(this);this.eventHandler.listen(this.deleteButton,"click",function(){d.onDeleteButtonClick()})};h=eoc.prototype;h.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};h.toggleSelection=function(){};h.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};
h.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};h.isActive=function(){return this.root.classList.contains("isActive")};h.spotlight=function(){this.root.classList.add("isSpotlit")};h.unspotlight=function(){this.root.classList.remove("isSpotlit")};h.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};h.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};h.isDisabled=function(){return this.isDisabledInternal};
h.drag=function(){this.root.classList.add("isDragged")};h.undrag=function(){this.root.classList.remove("isDragged")};h.edit=function(){};h.unedit=function(){};h.dispose=function(){this.eventHandler.removeAll()};h.getRoot=function(){return this.root};h.getSelection=function(){return this.selection};h.setDisambiguationLabel=function(){};h.onKeyDown=function(){};h.onContextMenu=function(){return function(){}};h.getAllIds=function(){return[this.selection.id()]};h.updateWaldo=function(){};
h.updateHubAvailabilityDot=function(){};h.getSupportedIntelligenceFeatures=function(){return[]};h.initializeIntelligence=function(){};var N5d=function(a,b,c,d,e,f,g,k,l,r){d=d?mv(d):e?mv("isWarning"):"";return qv(sv(qv(sv(qv(sv(qv(rv(),'<div role="option" class="'+mv("peoplekitComponentsChipChip")+" "+d+" "+(f?mv("isDeletionDisabled"):"")+" "+(g?mv(g):"")+'" id="'+mv(a)+'" peoplekit-id="'+mv("XPtOyb")+'" data-hovercard-id="'+mv(c)+'" data-name="'+mv(b)+'"'+(f?"":' aria-describedby="'+mv(a)+'-db"')+'><div class="'+mv("peoplekitComponentsChipChipRow")+" "+mv("peoplekitComponentsChipChipContainer")+'"><div class="'+mv("peoplekitComponentsChipLeft")+
'">'),nv(k)),'</div><div class="'+mv("peoplekitComponentsChipCenter")+'">'),nv(l)),'</div><div class="'+mv("peoplekitComponentsChipRight")+'">'),nv(r)),'</div></div><div peoplekit-id="'+mv("QL45qe")+'"></div></div>')},O5d=function(a){return qv(sv(qv(rv(),'<div class="'+mv("peoplekitComponentsChipAvatar")+'"><div class="'+mv("peoplekitComponentsChipAvatarContainer")+'" peoplekit-id="'+mv("d6MZcd")+'"></div>'),M9(a)?nv(a):""),"</div>")},P5d=function(a){var b=rv();a=qv(rv(),'<div class="'+mv("peoplekitComponentsChipAvatarExclamationOverlay")+
" "+(a?mv(a):"")+'"><div class="'+mv("peoplekitComponentsChipExclamationIcon")+" "+(a?mv(a):"")+'">');var c=pv('<svg viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M11 14V5h2v9Zm0 5v-2h2v2Z"/></svg>');return sv(b,O5d(qv(sv(a,c),"</div></div>")))},Q5d=function(a){return pv('<div class="'+mv("peoplekitComponentsChipLabelContainer")+'"><div class="'+mv("peoplekitComponentsChipLabel")+" "+mv("peoplekitComponentsChipLabelRow")+'"><div class="'+mv("peoplekitComponentsChipDisplayLabel")+
'" translate="no">'+ssc(tv(a))+'</div><div class="'+mv("peoplekitComponentsChipDisambiguationLabel")+'" peoplekit-id="'+mv("hyPgpe")+'" translate="no"></div></div></div>')},R5d=function(a){var b=rv();a=qv(b,'<div id="'+mv(a)+'-db" peoplekit-id="'+mv("bxvLg")+'" class="'+mv("peoplekitComponentsChipDeleteButton")+'" aria-hidden="true" aria-label="'+mv("Press delete to remove this chip")+'">');var c=pv('<svg xmlns="https://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" class="'+(mv("peoplekitComponentsChipDeleteIcon")+
'"><path d="M0 0h24v24H0z" fill="none"></path><path 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 12z"></path></svg>'));qv(sv(a,c),"</div>");return b};var doc=function(a){var b=a.id,c=a.label,d=a.name,e=a.hovercardId,f=a.stateClass,g=a.isWarning,k=a.isDeletionDisabled;a=a.customChipClass;return sv(rv(),N5d(b,d,e,f,g,k,a,sv(rv(),f?P5d(f):O5d()),sv(rv(),Q5d(c)),sv(rv(),R5d(b))))};var ioc=function(a,b,c){var d=this;this.root=a;this.selection=b;this.selectionsState=c;this.isDisabledInternal=!1;this.deleteButton=wu(this.root,"bxvLg");this.eventHandler=Au(this);this.eventHandler.listen(this.deleteButton,"click",function(){return d.onDeleteButtonClick()})};h=ioc.prototype;h.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};h.toggleSelection=function(){};
h.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};h.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};h.isActive=function(){return this.root.classList.contains("isActive")};h.spotlight=function(){this.root.classList.add("isSpotlit")};h.unspotlight=function(){this.root.classList.remove("isSpotlit")};h.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};
h.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};h.isDisabled=function(){return this.isDisabledInternal};h.drag=function(){this.root.classList.add("isDragged")};h.undrag=function(){this.root.classList.remove("isDragged")};h.edit=function(){};h.unedit=function(){};h.dispose=function(){this.eventHandler.removeAll()};h.getRoot=function(){return this.root};h.getSelection=function(){return this.selection};h.setDisambiguationLabel=function(){};h.onKeyDown=function(){};
h.onContextMenu=function(){return function(){}};h.getAllIds=function(){return[this.selection.id()]};h.updateWaldo=function(){};h.updateHubAvailabilityDot=function(){};h.getSupportedIntelligenceFeatures=function(){return[]};h.initializeIntelligence=function(){};var hoc=function(a){var b=a.id,c=a.hovercardId,d=a.name,e=a.label,f=a.avatarSize;a=a.isDeletionDisabled;return sv(rv(),N5d(b,d,c,"",!1,a,void 0,pv('<div class="'+mv("peoplekitComponentsChipPlaceholderAvatarPlaceholder")+" "+mv("peoplekitComponentsChipPlaceholderShimmer")+'" style="width: '+mv(N9(f))+"px; height: "+mv(N9(f))+'px;"></div>'),sv(rv(),e?Q5d(e):'<div class="'+mv("peoplekitComponentsChipPlaceholderLabelPlaceholder")+" "+mv("peoplekitComponentsChipPlaceholderShimmer")+'"></div>'),sv(rv(),
R5d(b))))};var P9=function(a){this.delegate=a};h=P9.prototype;h.toggleSelection=function(){this.delegate.toggleSelection()};h.activate=function(){this.delegate.activate()};h.deactivate=function(){this.delegate.deactivate()};h.isActive=function(){return this.delegate.isActive()};h.spotlight=function(){this.delegate.spotlight()};h.unspotlight=function(){this.delegate.unspotlight()};h.disable=function(){this.delegate.disable()};h.enable=function(){this.delegate.enable()};h.isDisabled=function(){return this.delegate.isDisabled()};
h.drag=function(){this.delegate.drag()};h.undrag=function(){this.delegate.undrag()};h.edit=function(){this.delegate.edit()};h.unedit=function(){this.delegate.unedit()};h.dispose=function(){this.delegate.dispose()};h.getRoot=function(){return this.delegate.getRoot()};h.getSelection=function(){return this.delegate.getSelection()};h.setDisambiguationLabel=function(a){this.delegate.setDisambiguationLabel(a)};h.onKeyDown=function(a){this.delegate.onKeyDown(a)};
h.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};h.getAllIds=function(){return this.delegate.getAllIds()};h.updateWaldo=function(a,b){this.delegate.updateWaldo(a,b)};h.updateHubAvailabilityDot=function(a,b){this.delegate.updateHubAvailabilityDot(a,b)};h.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};h.initializeIntelligence=function(){this.delegate.initializeIntelligence()};var S5d=Object.freeze(new Eu(NaN,NaN)),T5d=Object.freeze(new Hu(NaN,NaN,NaN,NaN)),Ju=function(a,b){this.root=a;this.options=b;this.lastPosition=S5d;this.lastBounds=T5d;this.anchorUpdateTimer=new LC(15);this.eventHandler=Au(this);this.attach()};Ju.prototype.attach=function(){var a=this;this.eventHandler.listen(this.anchorUpdateTimer,"tick",function(){return U5d(a)})};Ju.prototype.isShown=function(){return this.root.style.display!="none"};Ju.prototype.dispose=function(){this.hide();this.eventHandler.removeAll()};
Ju.prototype.show=function(a){this.anchor=a;this.lastPosition=S5d;this.lastBounds=T5d;Ct(this.root,!0);U5d(this);this.anchorUpdateTimer.start()};
var U5d=function(a){var b;if(b=a.anchor){if(!(b=!a.lastPosition.equals(Cu(a.anchor)))){b=a.lastBounds;var c=roc(a.root);b=!(b==c||b&&c&&b.left==c.left&&b.width==c.width&&b.top==c.top&&b.height==c.height)}b&&(c=a.anchor,b=roc(c),b=(c=soc(c))?b.intersection(toc(c)):!1)}if(b){c=a.anchor;b=a.root;var d=a.options,e=d.anchorCorner||9,f=d.popupCorner||8;d=d.moveAboveAnchorIfOffscreen===void 0?!0:d.moveAboveAnchorIfOffscreen;Iu(b,"","");b.style.height=jId("",!0);var g=yoc(c,e,b,f,d);c=yoc(c,e^1,b,f^1,d);
g.height>=c.height||!d?zoc(b,g):zoc(b,c);a.lastPosition=Cu(a.anchor);a.lastBounds=roc(a.root)}};Ju.prototype.hide=function(){this.root.style.cssText="";Ct(this.root,!1);this.anchorUpdateTimer.stop();this.lastPosition=S5d;this.lastBounds=T5d};var Coc=function(a,b,c){this.tooltip=a;this.showDelayMs=b;this.hideDelayMs=c;this.displayed=!1;this.eventHandler=Au(this)};Coc.prototype.showTooltip=function(){V5d(this);if(!this.isDisplayed()&&this.anchor){this.displayed=!0;var a;(a=this.showCallback)==null||a.call(this);Q9(this)}};Coc.prototype.hideTooltip=function(){Q9(this);if(this.isDisplayed()&&this.anchor){this.displayed=!1;var a;(a=this.hideCallback)==null||a.call(this);V5d(this)}else Q9(this)};Coc.prototype.isDisplayed=function(){return this.displayed};
var W5d=function(a,b){a.hideCallback=b.hideTooltipCallback;a.showCallback=b.showTooltipCallback},$5d=function(a,b){if(a.anchor)throw Error("Ig");a.anchor=b;X5d(a);Y5d(a);Z5d(a)},a6d=function(a){a.eventHandler.removeAll();a.anchor&&(a.hideTooltip(),a.hideCallback=void 0,a.showCallback=void 0,a.hideTimeout=void 0,a.showTimeout=void 0,a.displayed=!1,a.anchor=void 0)},b6d=function(a){V5d(a);Q9(a);a.showTimeout=setTimeout(function(){a.showTooltip()},a.showDelayMs)},c6d=function(a){V5d(a);Q9(a);a.hideTimeout=
setTimeout(function(){a.hideTooltip()},a.hideDelayMs)},X5d=function(a){if(!a.anchor)throw Error("Jg");a.eventHandler.listen(a.anchor,"mouseover",function(){a.isDisplayed()?a.showTooltip():b6d(a)});a.eventHandler.listen(a.anchor,"touchstart",function(){b6d(a)});a.eventHandler.listen(a.anchor,"focusin",function(b){a.tooltip.contains(b.relatedTarget)||b6d(a)});a.eventHandler.listen(a.anchor,"touchend",function(){Q9(a)});a.eventHandler.listen(a.anchor,"touchcancel",function(){Q9(a)});a.eventHandler.listen(a.anchor,
"mouseout",function(){c6d(a)});a.eventHandler.listen(a.anchor,"focusout",function(){a.hideTooltip()})},Y5d=function(a){a.eventHandler.listen(a.tooltip,"mouseover",function(){b6d(a)});a.eventHandler.listen(a.tooltip,"mouseout",function(){c6d(a)});a.eventHandler.listen(a.tooltip,"focusout",function(b){b=b.relatedTarget;var c,d=!((c=a.anchor)==null||!c.contains(b));a.tooltip.contains(b)||d||a.hideTooltip()})},Z5d=function(a){a.eventHandler.listen(window,"touchmove",function(){c6d(a)});a.eventHandler.listen(window,
"focus",function(b){b.target!==a.anchor&&c6d(a)});a.eventHandler.listen(window,"blur",function(b){b.target===window&&a.hideTooltip()});a.eventHandler.listen(window,"keydown",function(b){b.key==="Escape"&&a.hideTooltip()})},Q9=function(a){clearTimeout(a.showTimeout);a.showTimeout=void 0},V5d=function(a){clearTimeout(a.hideTimeout);a.hideTimeout=void 0};var Doc=function(a,b){this.tooltip=a;this.tooltipEventTracker=b;this.popupService=Aoc(this.tooltip,{anchorCorner:3,popupCorner:2})},Ioc=function(a,b){$5d(a.tooltipEventTracker,b);W5d(a.tooltipEventTracker,{showTooltipCallback:function(){a.showTooltipCallback()},hideTooltipCallback:function(){a.hideTooltipCallback()}})};h=Doc.prototype;h.showTooltip=function(){this.tooltipEventTracker.showTooltip()};h.hideTooltip=function(){this.tooltipEventTracker.hideTooltip()};h.getRoot=function(){return this.tooltip};
h.isDisplayed=function(){return this.tooltipEventTracker.isDisplayed()};h.showTooltipCallback=function(){this.popupService.show(this.tooltipEventTracker.anchor)};h.hideTooltipCallback=function(){this.popupService.hide()};var Boc=function(a){var b=a.label,c=a.ariaLabel,d=a.classes,e=a.attributes;return pv('<div id="'+mv(a.id)+'" peoplekit-id="'+mv("suEOdc")+'" class="'+mv("peoplekitComponentsTooltipImplTooltip")+(d?" "+mv(d):"")+'" style="display: none;" aria-hidden="true"'+(c?' aria-label="'+mv(c)+'"':"")+(M9(e)?x5d(K9(e,g5d)?e.getContent():H5d(e)):"")+">"+nv(b)+"</div>")};var Ku=function(a,b,c){this.delegate=a;var d=a.getRoot();/-[a-z]/.test("hovercardId")||(Gnc&&d.dataset?(/-[a-z]/.test("hovercardId")?0:Gnc&&d.dataset?"hovercardId"in d.dataset:d.hasAttribute?d.hasAttribute("data-"+Hnc("hovercardId")):d.getAttribute("data-"+Hnc("hovercardId")))&&delete d.dataset.hovercardId:d.removeAttribute("data-"+Hnc("hovercardId")));d="tt-"+a.getSelection().id().toString();this.tooltip=Eoc(a.getRoot(),d,{label:b,ariaLabel:c});Ioc(this.tooltip,a.getRoot())};Y(Ku,P9);
Ku.prototype.dispose=function(){a6d(this.tooltip.tooltipEventTracker);P9.prototype.dispose.call(this)};Ku.prototype.spotlight=function(){P9.prototype.spotlight.call(this);this.tooltip.showTooltip()};Ku.prototype.unspotlight=function(){P9.prototype.unspotlight.call(this);this.tooltip.hideTooltip()};Ku.prototype.drag=function(){P9.prototype.drag.call(this);this.tooltip.hideTooltip()};var Nu=new I9({coreTypeOrder:[1,3,2,0],decoratorTypeOrder:[0,1,2],extractor:function(a){return a},getCompatibleTypes:function(a){return a===0||a===2||a===3?new Set([0,1,2]):new Set}});var Joc=function(a,b,c,d,e,f){var g=this;this.root=a;this.enabledIcon=b;this.disabledIcon=c;this.tooltip=d;this.disableDomNavigation=e;this.internalIsDisabled=!1;this.eventHandler=Au(this);this.onClick=f;this.eventHandler.listen(this.root,"click",function(k){var l;(l=g.onClick)==null||l.call(g,k)});this.disableDomNavigation?this.root.tabIndex=-1:(this.eventHandler.listen(this.root,"focus",function(){g.activate()}),this.eventHandler.listen(this.root,"blur",function(){g.deactivate()}))};h=Joc.prototype;
h.getRoot=function(){return this.root};h.enable=function(){this.root.disabled=!1;var a=this.root.querySelector("img");a&&(a.src=this.enabledIcon);this.internalIsDisabled=!1};h.disable=function(){this.root.disabled=!0;var a=this.root.querySelector("img");a&&this.disabledIcon&&(a.src=this.disabledIcon);this.internalIsDisabled=!0};h.isDisabled=function(){return this.internalIsDisabled};h.dispose=function(){this.eventHandler.removeAll();this.onClick=void 0;this.tooltip&&a6d(this.tooltip.tooltipEventTracker)};
h.activate=function(){this.root.classList.add("isFocused");this.tooltip&&this.tooltip.showTooltip()};h.deactivate=function(){this.root.classList.remove("isFocused");this.tooltip&&this.tooltip.hideTooltip()};h.isActive=function(){return this.root.classList.contains("isFocused")};var d6d=0;var Hoc=function(a){var b=a.icon,c=a.tooltipLabel,d=a.ariaLabel;a=rv();c=(c=c?"tt-c"+d6d++:"")?' data-tooltip-id="'+mv(c)+'" aria-labelledby="'+mv(c)+'"':d?' aria-label="'+mv(d)+'"':"";qv(sv(qv(a,'<button class="'+mv("peoplekitComponentsButtonIconIconButton")+'"'+c+">"),pv('<span><img src="'+mv(D5d(b))+'" draggable="false" aria-hidden="true" alt="" class="'+mv("peoplekitComponentsButtonIconAdaptableIcon")+'"/></span>')),"</button>");return a};var R9=function(a){this.delegate=a};h=R9.prototype;h.getAllIds=function(){return this.delegate.getAllIds()};h.toggleSelection=function(){this.delegate.toggleSelection()};h.activate=function(){this.delegate.activate()};h.deactivate=function(){this.delegate.deactivate()};h.spotlight=function(){this.delegate.spotlight()};h.unspotlight=function(){this.delegate.unspotlight()};h.getRoot=function(){return this.delegate.getRoot()};h.getSelection=function(){return this.delegate.getSelection()};
h.onKeyDown=function(a){this.delegate.onKeyDown(a)};h.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};h.updateWaldo=function(a,b){this.delegate.updateWaldo(a,b)};h.updateHubAvailabilityDot=function(a,b){this.delegate.updateHubAvailabilityDot(a,b)};h.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};h.initializeIntelligence=function(){this.delegate.initializeIntelligence()};h.addTag=function(a){this.delegate.addTag(a)};
h.setMetaIcon=function(a){this.delegate.setMetaIcon(a)};h.dispose=function(){this.delegate.dispose()};var Urc=new Map([["pcw-select",3],["pcw-deselect",3],["pcw-click",3],["pcw-input",15]]);var Loc=function(a,b,c,d){this.delegate=a;var e=this;this.secondaryActionConfig=c;for(var f=wu(a.getRoot(),"QChpEe");f.firstChild;)f.removeChild(f.firstChild);this.secondaryActionButton=Koc(f,d.get("jGsbz"),Object.assign({},{density:b.getDensity()},c));this.buttonRoot=this.secondaryActionButton.getRoot();this.buttonRoot.style.display="none";this.buttonRoot.id=a.getRoot().id+"-2ab";c.disableDomNavigation&&Ird(this.buttonRoot,"menuitem");Lu({element:this.buttonRoot,veid:163534,actions:["impression",
"pcw-click"],componentId:"peoplekitweb"});this.secondaryActionButton.onClick=function(g){var k;(k=c.onClick)==null||k.call(c,g);e.buttonRoot.dispatchEvent(Mu(e.buttonRoot))};this.eventHandler=Au(this);this.eventHandler.listen(a.getRoot(),"mouseover",this.displaySecondaryActionButton);this.eventHandler.listen(a.getRoot(),"mouseleave",this.hideSecondaryActionButton)};Y(Loc,R9);h=Loc.prototype;h.activate=function(){this.getRoot().classList.add("isActive");this.displaySecondaryActionButton()};
h.deactivate=function(){this.getRoot().classList.remove("isActive");this.secondaryActionButton.deactivate();this.hideSecondaryActionButton()};
h.onKeyDown=function(a){var b=a.event.keyCode===13,c=b&&a.event.platformModifierKey;if(this.secondaryActionConfig.disableDomNavigation){var d=a.event.keyCode===9;!d||a.event.shiftKey||this.secondaryActionButton.isActive()?d&&this.secondaryActionButton.isActive()&&(this.secondaryActionButton.deactivate(),lU(this.buttonRoot,"hidden","true"),a.stopPropagation(),a.preventDefault()):(this.secondaryActionButton.activate(),lU(this.buttonRoot,"hidden","false"),a.stopPropagation(),a.preventDefault())}if(c||
b&&this.secondaryActionButton.isActive())this.buttonRoot.click(),a.stopPropagation(),a.preventDefault()};h.dispose=function(){this.eventHandler.removeAll();this.secondaryActionButton.dispose();R9.prototype.dispose.call(this)};h.displaySecondaryActionButton=function(){this.buttonRoot.style.display=""};h.hideSecondaryActionButton=function(){this.getRoot().classList.contains("isActive")||(this.buttonRoot.style.display="none")};var e6d=function(){this.label="";this.type=0};h=e6d.prototype;h.getAutocompleteGroupingType=function(){return this.type};h.setAutocompleteGroupingType=function(a){this.type=a};h.getAutocompleteGroupingLabel=function(){return this.label};h.setAutocompleteGroupingLabel=function(a){this.label=a};h.getAutocompleteCustomGrouping=function(){return this.customGrouping};var f6d=function(){this.warnForExternalSelections=!1;this.decorationConfigRequest=function(){};this.resultCustomizationCallback=function(){return{}}};h=f6d.prototype;h.getAllowResultDeselection=function(){return!1};h.getWarnForExternalSelections=function(){return this.warnForExternalSelections};h.getResultDecorationConfigRequestCallback=function(){return this.decorationConfigRequest};h.getResultCustomizationCallback=function(){return this.resultCustomizationCallback};
h.setResultCustomizationCallback=function(a){this.resultCustomizationCallback=a};var g6d=function(a){this.header="";this.showSuggestions=!1;this.autoActivateFirstSuggestion=!0;this.maxResultsBeforeScroll=7;this.moveAutocompleteAboveAnchorIfOffscreen=!0;this.entryPoint=0;this.noResultsMessage=null;this.autoActivateFirstSearchResult=!0;this.clearSelectionsOnSearch=!1;this.environmentConfig=a;this.grouping=new e6d;this.result=new f6d;this.appearance=new Knc};h=g6d.prototype;h.getEnvironmentConfig=function(){return this.environmentConfig};h.getAutocompleteHeader=function(){return this.header};
h.setAutocompleteHeader=function(a){this.header=a};h.getShowSuggestions=function(){return this.showSuggestions};h.setShowSuggestions=function(a){this.showSuggestions=a};h.getAutocompleteMaxResultsBeforeScroll=function(){return this.maxResultsBeforeScroll};h.setAutocompleteMaxResultsBeforeScroll=function(a){this.maxResultsBeforeScroll=Math.max(Math.min(20,a),3)};h.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.moveAutocompleteAboveAnchorIfOffscreen};
h.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.moveAutocompleteAboveAnchorIfOffscreen=a};h.getAutoActivateFirstSuggestion=function(){return this.autoActivateFirstSuggestion};h.setAutoActivateFirstSuggestion=function(a){this.autoActivateFirstSuggestion=a};h.getAutoActivateFirstSearchResult=function(){return this.autoActivateFirstSearchResult};h.setAutoActivateFirstSearchResult=function(a){this.autoActivateFirstSearchResult=a};h.setEntryPoint=function(a){this.entryPoint=a};
h.getEntryPoint=function(){return this.entryPoint};h.getNoResultsMessage=function(){return this.noResultsMessage};h.setNoResultsMessage=function(a){this.noResultsMessage=a};h.getUseTabForResultSelection=function(){return!0};h.getClearSelectionsOnSearch=function(){return this.clearSelectionsOnSearch};h.setClearSelectionsOnSearch=function(a){this.clearSelectionsOnSearch=a};h.getAutocompleteGroupingType=function(){return this.grouping.getAutocompleteGroupingType()};h.setAutocompleteGroupingType=function(a){this.grouping.setAutocompleteGroupingType(a)};
h.getAutocompleteGroupingLabel=function(){return this.grouping.getAutocompleteGroupingLabel()};h.setAutocompleteGroupingLabel=function(a){this.grouping.setAutocompleteGroupingLabel(a)};h.getAutocompleteCustomGrouping=function(){return this.grouping.getAutocompleteCustomGrouping()};h.getAllowResultDeselection=function(){return this.result.getAllowResultDeselection()};h.getWarnForExternalSelections=function(){return this.result.getWarnForExternalSelections()};
h.getResultDecorationConfigRequestCallback=function(){return this.result.getResultDecorationConfigRequestCallback()};h.getResultCustomizationCallback=function(){return this.result.getResultCustomizationCallback()};h.setResultCustomizationCallback=function(a){this.result.setResultCustomizationCallback(a)};h.getDensity=function(){return this.appearance.getDensity()};h.setDensity=function(a){this.appearance.setDensity(a)};h.getTheme=function(){return this.appearance.getTheme()};h.setTheme=function(a){this.appearance.setTheme(a)};
h.getStyle=function(){return this.appearance.getStyle()};h.setStyle=function(a){this.appearance.setStyle(a)};var h6d=function(a){this.environmentConfig=a;this.autocomplete=new g6d(a);this.autocomplete.setClearSelectionsOnSearch(!0)};h=h6d.prototype;h.getEnvironmentConfig=function(){return this.environmentConfig};h.getAutocompleteHeader=function(){return this.autocomplete.getAutocompleteHeader()};h.setAutocompleteHeader=function(a){this.autocomplete.setAutocompleteHeader(a)};h.getShowSuggestions=function(){return this.autocomplete.getShowSuggestions()};h.setShowSuggestions=function(a){this.autocomplete.setShowSuggestions(a)};
h.getAutocompleteMaxResultsBeforeScroll=function(){return this.autocomplete.getAutocompleteMaxResultsBeforeScroll()};h.setAutocompleteMaxResultsBeforeScroll=function(a){this.autocomplete.setAutocompleteMaxResultsBeforeScroll(a)};h.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.autocomplete.getMoveAutocompleteAboveAnchorIfOffscreen()};h.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.autocomplete.setMoveAutocompleteAboveAnchorIfOffscreen(a)};
h.getAutoActivateFirstSuggestion=function(){return this.autocomplete.getAutoActivateFirstSuggestion()};h.setAutoActivateFirstSuggestion=function(a){this.autocomplete.setAutoActivateFirstSuggestion(a)};h.getAutoActivateFirstSearchResult=function(){return this.autocomplete.getAutoActivateFirstSearchResult()};h.setAutoActivateFirstSearchResult=function(a){this.autocomplete.setAutoActivateFirstSearchResult(a)};h.setEntryPoint=function(a){this.autocomplete.setEntryPoint(a)};h.getEntryPoint=function(){return this.autocomplete.getEntryPoint()};
h.getNoResultsMessage=function(){return this.autocomplete.getNoResultsMessage()};h.setNoResultsMessage=function(a){this.autocomplete.setNoResultsMessage(a)};h.getUseTabForResultSelection=function(){return this.autocomplete.getUseTabForResultSelection()};h.getClearSelectionsOnSearch=function(){return this.autocomplete.getClearSelectionsOnSearch()};h.setClearSelectionsOnSearch=function(a){this.autocomplete.setClearSelectionsOnSearch(a)};h.getAutocompleteGroupingType=function(){return this.autocomplete.getAutocompleteGroupingType()};
h.setAutocompleteGroupingType=function(a){this.autocomplete.setAutocompleteGroupingType(a)};h.getAutocompleteGroupingLabel=function(){return this.autocomplete.getAutocompleteGroupingLabel()};h.setAutocompleteGroupingLabel=function(a){this.autocomplete.setAutocompleteGroupingLabel(a)};h.getAutocompleteCustomGrouping=function(){return this.autocomplete.getAutocompleteCustomGrouping()};h.getAllowResultDeselection=function(){return this.autocomplete.getAllowResultDeselection()};
h.getWarnForExternalSelections=function(){return this.autocomplete.getWarnForExternalSelections()};h.getResultDecorationConfigRequestCallback=function(){return this.autocomplete.getResultDecorationConfigRequestCallback()};h.getResultCustomizationCallback=function(){return this.autocomplete.getResultCustomizationCallback()};h.setResultCustomizationCallback=function(a){this.autocomplete.setResultCustomizationCallback(a)};h.getDensity=function(){return this.autocomplete.getDensity()};h.setDensity=function(a){this.autocomplete.setDensity(a)};
h.getTheme=function(){return this.autocomplete.getTheme()};h.setTheme=function(a){this.autocomplete.setTheme(a)};h.getStyle=function(){return this.autocomplete.getStyle()};h.setStyle=function(a){this.autocomplete.setStyle(a)};var Woc=function(a){this.onHide=a;this.menuItemConfigs=[]};Woc.prototype.isSupported=function(a){return i6d(this,a).length>0};
Woc.prototype.configure=function(a){var b=this,c=a.contextMenu,d=a.selection,e=a.activatableRoot,f=new Map;a=m(i6d(this,d.result()));for(var g=a.next();!g.done;g=a.next()){g=g.value;var k=g.getContextMenuItemOptions();c.append(k);f.set(k.id,g)}j6d(c,function(l){f.get(l.id).onContextMenuItemClick({options:l,selection:d,activatableRoot:e})});k6d(c,function(){var l;(l=b.onHide)==null||l.call(b)})};var i6d=function(a,b){return a.menuItemConfigs.filter(function(c){return c.isSupported(b)})};var Uoc=new I9({coreTypeOrder:[0],decoratorTypeOrder:[0],extractor:function(a){return a},getCompatibleTypes:function(){return new Set([0])}});var Zoc=function(){this.groupingDecorators=[]};var Xoc=function(a){this.contextMenuConfigurator=a;this.resultCustomizationDecorators=[]};var cpc=function(a){this.root=a;this.length=0;this.isInteractive=!0};h=cpc.prototype;h.getItems=function(){return Array.from(this.root.childNodes)};h.append=function(a){this.root.appendChild(a);++this.length};h.insert=function(a,b){if(a<0||a>this.length)throw new RangeError("Lg");if(a===this.length)this.append(b);else{var c=this.getItems();this.root.insertBefore(b,c[a]);++this.length}};
h.remove=function(a){if(a<0||a>=this.length)throw new RangeError("Lg");var b=this.getItems();this.root.removeChild(b[a]);--this.length};h.clear=function(){BC(this.root);this.length=0};h.getRoot=function(){return this.root};var apc=function(a){return pv('<ul id="'+mv(a.id)+'" peoplekit-id="'+mv("rymPhb")+'" role="listbox" aria-multiselectable="true" class="'+mv("peoplekitComponentsListImplList")+'"></ul>')};var bpc=Pu.getInstance();var l6d=function(a){this.isActive=!1;this.multiActivateAnchorIndex=this.spotlightIndex=-1;this.secondaryEventTargets=[];this.list=[].concat(q([]));this.shouldWrap=!!a.shouldWrap;this.activeItems=new Set([]);this.hideContextMenu=function(){}};h=l6d.prototype;
h.remove=function(a,b){var c=-1;a=m(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());c>=0&&b&&(this.isActive=!1,this.goToIndex(c,0))};
h.insert=function(a,b,c){this.list.splice.apply(this.list,[a,0].concat(q(b)));c?(m6d(this),n6d(this,a,a+b.length-1),this.spotlightIndex=a,this.list[this.spotlightIndex].spotlight()):a>=0&&a<=this.spotlightIndex&&(this.spotlightIndex+=b.length)};h.size=function(){return this.list.length};
h.prev=function(a){var b=this.spotlightIndex===0&&(!this.shouldWrap||a===1);!this.list.length||b?a=!1:(this.isActive?(b=this.spotlightIndex-1,b=b>=0?b:this.list.length+b):b=this.list.length-1,a=this.goToIndex(b,a));return a};h.next=function(a){var b=this.spotlightIndex===this.list.length-1&&(!this.shouldWrap||a===1);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};
h.goToItem=function(a,b){a=this.list.indexOf(a);return this.goToIndex(a,b)};
h.goToIndex=function(a,b){this.hideContextMenu();if(!this.list.length||a===void 0||a<0)return!1;var c=this.isActive?this.spotlightIndex:-1;this.spotlightIndex=Math.max(Math.min(this.list.length-1,a),0);this.isActive&&this.list[c].unspotlight();this.isActive||(this.multiActivateAnchorIndex=a);this.isActive=!0;switch(b){case 0:m6d(this);o6d(this);break;case 3:o6d(this);break;case 1:a=Poc(this.spotlightIndex,c,this.multiActivateAnchorIndex);b=Poc(this.multiActivateAnchorIndex,c,this.spotlightIndex);
if(c>=0&&(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);n6d(this,this.multiActivateAnchorIndex,this.spotlightIndex)}this.list[this.spotlightIndex].spotlight();return!0};
h.activateAll=function(){if(!(this.list.length<=0)){var a=this.spotlightIndex>=0?this.spotlightIndex:this.list.length-1;m6d(this);for(var b=m(this.list),c=b.next();!c.done;c=b.next())c=c.value,c.activate(),this.activeItems.add(c);this.goToIndex(a,2)}};h.getSpotlitItem=function(){return this.isActive?this.list[this.spotlightIndex]:void 0};h.getActiveItems=function(){var a=this;return this.list.filter(function(b){return a.activeItems.has(b)})};
h.getItem=function(a){for(var b=m(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}};h.getIndexOf=function(a){return this.list.indexOf(a)};h.clear=function(){this.reset();this.list.length=0};h.reset=function(){this.hideContextMenu();m6d(this);var a=this.getSpotlitItem();a&&a.unspotlight();this.spotlightIndex=-1;this.isActive=!1};h.setSecondaryEventTargets=function(a){this.secondaryEventTargets=a};
h.onKeyDown=function(a){var b=[this.getSpotlitItem()].concat(q(this.secondaryEventTargets));b=m(b);for(var c=b.next();!c.done;c=b.next()){var d=void 0;(d=c.value)==null||d.onKeyDown(a);if(a.hasStoppedPropagationInternal)break}};h.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 o6d=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},m6d=function(a){for(var b=m(a.activeItems),c=b.next();!c.done;c=b.next())c=c.value,c.deactivate(),c.unspotlight();a.activeItems.clear()},n6d=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 hpc=function(a){this.delegate=a};h=hpc.prototype;h.prev=function(a){a=this.delegate.prev(a);p6d(this);return a};h.next=function(a){a=this.delegate.next(a);p6d(this);return a};h.size=function(){return this.delegate.size()};h.goToItem=function(a,b){a=this.delegate.goToItem(a,b);p6d(this);return a};h.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);p6d(this);return a};h.activateAll=function(){this.delegate.activateAll()};h.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};
h.getActiveItems=function(){return this.delegate.getActiveItems()};h.getItem=function(a){return this.delegate.getItem(a)};h.getIndexOf=function(a){return this.delegate.getIndexOf(a)};h.clear=function(){this.delegate.clear()};h.reset=function(){this.delegate.reset()};h.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};h.onKeyDown=function(a){this.delegate.onKeyDown(a)};h.onContextMenu=function(a,b){this.delegate.onContextMenu(a,b)};
h.remove=function(a,b){this.delegate.remove(a,b)};h.insert=function(a,b,c){this.delegate.insert(a,b,c)};var p6d=function(a){(a=a.delegate.getSpotlitItem())&&gpc(a.getRoot())};var S9=function(a,b,c,d){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.collapsibleConfig=d;this.items=[];this.isCollapsed=!1};S9.prototype.append=function(a){this.items.push(a);this.list.append(a.getRoot());this.intelligentCollection.append([a]);this.isCollapsed||this.navigatable.insert(this.navigatable.size(),[a],!1)};S9.prototype.getItems=function(){return this.isCollapsed?[]:this.items};
S9.prototype.dispose=function(){for(var a=m(this.items),b=a.next();!b.done;b=a.next())b.value.dispose();this.items=[]};var q6d=function(a,b){if(a.isCollapsed!==b){var c=a.collapsibleConfig,d=c.resultListContainer,e=c.before;c=c.sectionRoot;b?(d.classList.add("collapsed"),d.style.height="",a.navigatable.remove(a.items,!1)):(e=a.navigatable.getIndexOf(e)+1,a.navigatable.insert(e,a.items,!1),d.classList.remove("collapsed"),d.style.height=d.scrollHeight+"px",gpc(c));a.isCollapsed=b}};var Gpc=function(a,b,c,d){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.resultListItemFactory=d};h=Gpc.prototype;h.append=function(a,b){a=m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.getOrCreateSection(c).append(this.resultListItemFactory.create(c,b))};h.getOrCreateSection=function(){this.section||(this.section=new S9(this.list,this.navigatable,this.intelligentCollection));return this.section};
h.clear=function(){var a;(a=this.section)==null||a.dispose();this.section=void 0;this.list.clear();this.navigatable.clear();this.intelligentCollection.clear()};h.reset=function(){this.navigatable.reset()};h.getItems=function(){var a,b;return(b=(a=this.section)==null?void 0:a.getItems())!=null?b:[]};h.done=function(){};var r6d=function(a,b){this.itemsSection=a;this.groupingHeader=b};r6d.prototype.append=function(a){this.itemsSection.append(a)};r6d.prototype.getItems=function(){return this.itemsSection.getItems()};r6d.prototype.dispose=function(){this.groupingHeader.dispose();this.itemsSection.dispose()};var s6d=function(a){var b=a.listId;return pv('<div id="'+mv(a.id)+'" peoplekit-id="'+mv("E9WxSb")+'" role="listitem"><div role="group"><div peoplekit-id="'+mv("Bm3u4d")+'"></div><div id="'+mv(b)+'" role="region" class="'+mv("peoplekitComponentsResultListCoreGroupSectionListContainer")+'" peoplekit-id="'+mv("tjneg")+'"></div></div></div>')};var T9=function(a){this.delegate=a};h=T9.prototype;h.getRoot=function(){return this.delegate.getRoot()};h.getHeader=function(){return this.delegate.getHeader()};h.getActionItems=function(){return this.delegate.getActionItems()};h.dispose=function(){this.delegate.dispose()};h.setCollapsible=function(a){this.delegate.setCollapsible(a)};h.getCollapsible=function(){return this.delegate.getCollapsible()};h.getActivatable=function(){return this.delegate.getActivatable()};var t6d=function(a){var b=a.id,c=a.groupName;a=a.classes;return pv('<div class="'+mv("peoplekitComponentsGroupingHeaderCollapsibleChevronContainer")+" "+(a?" "+mv(a):"")+'" peoplekit-id="'+mv("wgPSWd")+'" id="'+mv(b)+'" role="button" aria-expanded="false" aria-label="'+mv("To expand "+c+" group, press enter")+'"><svg class="'+mv("peoplekitComponentsGroupingHeaderCollapsibleChevron")+'" viewBox="0 0 24 24" height="24" width="24" aria-hidden="true"><path d="M0 0h24v24H0z" fill="none"/><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg></div>')},
u6d=function(a){return"To "+a.action+" "+a.groupName+" group, press enter"};var Qu=function(a,b){this.delegate=a;var c=this;this.isCollapsed=b;this.eventHandler=Au(this);this.chevron=vu(t6d,{id:yu(Pu.getInstance()),groupName:this.getHeader(),classes:"TdcT2c"});this.groupingHeaderActionItems=a.getActionItems().slice();this.groupingHeaderActionItems.push({focus:function(){c.chevron.classList.add("isSpotlit")},unfocus:function(){c.chevron.classList.remove("isSpotlit")},onKeyDown:function(d){d.event.keyCode===13&&(c.toggleView(),d.stopPropagation(),d.preventDefault())}});this.eventHandler.listen(this.getRoot(),
"click",this.toggleView);wu(this.getRoot(),"QChpEe").appendChild(this.chevron);b||(this.chevron.classList.toggle("rotate"),lU(this.chevron,"expanded",!0),Krd(this.chevron,u6d({groupName:this.getHeader(),action:"collapse"})))};Y(Qu,T9);Qu.prototype.getActionItems=function(){return this.groupingHeaderActionItems};Qu.prototype.dispose=function(){this.eventHandler.removeAll();T9.prototype.dispose.call(this)};
Qu.prototype.setCollapsible=function(a){T9.prototype.setCollapsible.call(this,a);q6d(a,this.isCollapsed);this.chevron.setAttribute("aria-controls",a.collapsibleConfig.resultListContainer.id);v6d(this)};Qu.prototype.toggleView=function(){this.isCollapsed=!this.isCollapsed;this.chevron.classList.toggle("rotate");q6d(this.getCollapsible(),this.isCollapsed);v6d(this)};
var v6d=function(a){var b=a.isCollapsed?"expand":"collapse";lU(a.chevron,"expanded",!a.isCollapsed);Krd(a.chevron,u6d({groupName:a.getHeader(),action:b}))};var kpc=function(a){var b=this;this.root=a;this.internalIsDisabled=!1;this.eventHandler=Au(this);this.eventHandler.listen(this.root,"click",function(c){var d;(d=b.onClick)==null||d.call(b,c)})};h=kpc.prototype;h.getRoot=function(){return this.root};h.enable=function(){this.root.classList.remove("isDisabled");this.root.disabled=!1;this.root.setAttribute("aria-disabled","false");this.internalIsDisabled=!1};
h.disable=function(){this.root.classList.add("isDisabled");this.root.disabled=!0;this.root.setAttribute("aria-disabled","true");this.internalIsDisabled=!0};h.isDisabled=function(){return this.internalIsDisabled};h.dispose=function(){this.eventHandler.removeAll();this.onClick=void 0};var jpc=function(a){a=a.label;return pv('<button class="'+mv("peoplekitComponentsButtonLabelLabelButton")+'">'+nv(a)+"</button>")};var tsc=function(a,b,c){var d=this;this.root=a;this.actionListeners=[];this.eventHandler=Au(this);this.actionButtons=new Map;this.actionButtons.set(0,b);this.actionButtons.set(1,c);b.onClick=function(){d.dispatchAction(0)};c.onClick=function(){d.dispatchAction(1)};this.dialog=wu(this.root,"Sx9Kwc");this.startFocusableElement=wu(this.root,"tYwGbe");this.endFocusableElement=wu(this.root,"dYgZK");this.eventHandler.listen(this.root,"click",function(){return d.onScrimClick()});this.eventHandler.listen(this.dialog,
"click",function(e){return d.onDialogClick(e)});this.eventHandler.listen(this.dialog,"keydown",function(e){return d.onDialogKeyDown(e)});this.eventHandler.listen(this.startFocusableElement,"focus",function(){return d.onStartFocusableElementFocus()});this.eventHandler.listen(this.endFocusableElement,"focus",function(){return d.onEndFocusableElementFocus()});this.eventHandler.listen(this.root,"keydown",function(e){e.stopPropagation()});this.eventHandler.listen(this.root,"keyup",function(e){e.stopPropagation()});
this.eventHandler.listen(this.root,"keypress",function(e){e.stopPropagation()});this.focusFirstFocusableElement()};h=tsc.prototype;h.subscribeToAction=function(a){this.actionListeners.push(a)};h.dispatchAction=function(a){var b=this.actionButtons.get(a);if(b&&!b.isDisabled()){for(var c=m(this.actionListeners),d=c.next();!d.done;d=c.next())d=d.value,d(a);a=b.getRoot();a.dispatchEvent(Mu(a))}};h.disableAction=function(a){(a=this.actionButtons.get(a))&&a.disable()};
h.enableAction=function(a){(a=this.actionButtons.get(a))&&a.enable()};h.getRoot=function(){return this.root};h.onDialogClick=function(a){a.stopPropagation()};h.onDialogKeyDown=function(a){a.keyCode===27&&(this.dispatchAction(0),a.stopPropagation())};h.onStartFocusableElementFocus=function(){this.focusLastFocusableElement()};h.onEndFocusableElementFocus=function(){this.focusFirstFocusableElement()};h.focusFirstFocusableElement=function(){var a=Fnc(this.dialog);a.length&&a[0].focus()};
h.focusLastFocusableElement=function(){var a=Fnc(this.dialog);a.length&&a[a.length-1].focus()};h.onScrimClick=function(){this.dispatchAction(0)};h.dispose=function(){this.eventHandler.removeAll();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.actionListeners.length=0;for(var a=m(this.actionButtons.values()),b=a.next();!b.done;b=a.next())b.value.dispose();this.actionButtons.clear()};var qpc=function(a){var b=a.content,c=a.header,d=a.confirmAction;a=a.labelId;return qv(sv(sv(qv(sv(qv(sv(qv(rv(),'<div peoplekit-id="'+mv("GGAcbc")+'" class="'+mv("peoplekitComponentsDialogImplScrim")+'"><div peoplekit-id="'+mv("tYwGbe")+'" tabindex="0" role="application"></div><div peoplekit-id="'+mv("Sx9Kwc")+'" class="'+mv("peoplekitComponentsDialogImplDialog")+'" tabindex="-1" role="dialog" aria-modal="true"'+(a?' aria-labelledby="'+mv(a)+'"':"")+">"),M9(c)?nv(c):""),'<div class="'+mv("peoplekitComponentsDialogImplContent")+
'">'),nv(b)),'</div><div class="'+mv("peoplekitComponentsDialogImplActions")+'">'),sv(rv(),w6d("IbE0S"))),d?sv(sv(rv(),pv('<div class="'+mv("peoplekitComponentsDialogImplActionDivider")+'"></div>')),sv(rv(),w6d("McfNlf"))):""),'</div></div><div peoplekit-id="'+mv("dYgZK")+'" tabindex="0" role="application"></div></div>')},w6d=function(a){return pv('<div peoplekit-id="'+mv(a)+'"></div>')},x6d=function(a){a=a.header;return pv('<div class="'+mv("peoplekitComponentsDialogImplTextHeader")+'">'+nv(a)+"</div>")};var rpc=function(a,b){var c=this;this.root=a;this.closeButton=b;this.actionListeners=[];this.eventHandler=Au(this);this.dialog=wu(this.root,"Sx9Kwc");this.startFocusableElement=wu(this.root,"tYwGbe");this.endFocusableElement=wu(this.root,"dYgZK");b.onClick=function(){c.dispatchAction(2)};this.eventHandler.listen(this.root,"click",function(){c.onScrimClick()});this.eventHandler.listen(this.dialog,"click",function(d){c.onDialogClick(d)});this.eventHandler.listen(this.dialog,"keydown",function(d){c.onDialogKeyDown(d)});
this.eventHandler.listen(this.startFocusableElement,"focus",function(){c.onStartFocusableElementFocus()});this.eventHandler.listen(this.endFocusableElement,"focus",function(){c.onEndFocusableElementFocus()});this.focusFirstFocusableElement()};h=rpc.prototype;h.subscribeToAction=function(a){this.actionListeners.push(a)};h.dispatchAction=function(a){if(!this.closeButton.isDisabled()&&a===2)for(var b=m(this.actionListeners),c=b.next();!c.done;c=b.next())c=c.value,c(a)};h.disableAction=function(){this.closeButton.disable()};
h.enableAction=function(){this.closeButton.enable()};h.getRoot=function(){return this.root};h.dispose=function(){this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.eventHandler.removeAll();this.actionListeners.length=0;this.closeButton.dispose()};h.onDialogClick=function(a){a.stopPropagation()};h.onDialogKeyDown=function(a){a.keyCode===27&&(this.dispatchAction(2),a.stopPropagation())};h.onStartFocusableElementFocus=function(){this.focusLastFocusableElement()};
h.onEndFocusableElementFocus=function(){this.focusFirstFocusableElement()};h.focusFirstFocusableElement=function(){var a=Fnc(this.dialog);a.length&&a[0].focus()};h.focusLastFocusableElement=function(){var a=Fnc(this.dialog);a.length&&a[a.length-1].focus()};h.onScrimClick=function(){this.dispatchAction(2)};var mpc=new Map([[0,"peoplekitStyleLegacy"],[1,"peopleKitStyleGm3"]]);var opc=new Map([[0,"peoplekitThemeLight"],[1,"peoplekitThemeDark"]]);var y6d=function(a){var b=a.learnMoreLinkUrl,c=a.learnMoreLinkText;return pv("<div>"+nv(a.description)+'  <a href="'+mv(ov(b))+'" target="_blank" class="'+mv("peoplekitComponentsGroupingHeaderInfoLearnMoreLink")+'" peoplekit-id="'+mv("lh87ke")+'">'+nv(c)+"</a></div>")},z6d=function(a){var b=a.id,c=a.ariaLabel;a=a.classes;return pv('<div class="'+mv("peoplekitComponentsGroupingHeaderInfoInfoIconContainer")+" "+(a?" "+mv(a):"")+'" peoplekit-id="'+mv("CLghmc")+'" id="'+mv(b)+'" aria-label="'+mv(c)+'" role="button"><svg class="'+
mv("peoplekitComponentsGroupingHeaderInfoInfoIcon")+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg></div>')};var vpc=function(a,b,c,d){this.delegate=a;var e=this;this.infoGroupConfig=b;this.appearanceConfig=c;this.infoGroupingHeaderVeIds=d;this.infoIcon=vu(z6d,{id:yu(Pu.getInstance()),ariaLabel:"For more information about "+this.getHeader()+", press enter.",classes:"TdcT2c"});wu(this.getRoot(),"xiK4Cd").appendChild(this.infoIcon);this.infoGroupingHeaderVeIds.infoIconVeId!==void 0&&Lu({element:this.infoIcon,veid:this.infoGroupingHeaderVeIds.infoIconVeId,actions:["impression","pcw-click"],componentId:"peoplekitweb"});
this.eventHandler=Au(this);this.eventHandler.listen(this.infoIcon,"click",function(){A6d(e)});this.groupingHeaderActionItems=a.getActionItems().slice();this.groupingHeaderActionItems.push({focus:function(){e.infoIcon.classList.add("isSpotlit")},unfocus:function(){e.infoIcon.classList.remove("isSpotlit")},onKeyDown:function(f){f.event.keyCode===13&&(A6d(e),f.stopPropagation(),f.preventDefault())}})};Y(vpc,T9);
var A6d=function(a){a.infoIcon.dispatchEvent(Mu(a.infoIcon));var b=x6d({header:a.infoGroupConfig.infoDialogHeader}),c=y6d({description:a.infoGroupConfig.learnMoreMessage,learnMoreLinkUrl:a.infoGroupConfig.learnMoreUrl,learnMoreLinkText:a.infoGroupConfig.learnMoreLinkText}),d=a.getRoot().ownerDocument.activeElement,e=a.getRoot().closest('[class~="aU4VQc"]'),f=spc(e,c,a.appearanceConfig,b),g=wu(f.getRoot(),"lh87ke");a.infoGroupingHeaderVeIds.learnMoreLinkVeId!==void 0&&Lu({element:g,veid:a.infoGroupingHeaderVeIds.learnMoreLinkVeId,
actions:["impression","pcw-click"],componentId:"peoplekitweb"});a.eventHandler.listen(g,"click",function(){g.dispatchEvent(Mu(g))});f.subscribeToAction(function(k){k===2&&(f.dispose(),d&&d.focus())})};vpc.prototype.getActionItems=function(){return this.groupingHeaderActionItems};vpc.prototype.dispose=function(){this.eventHandler.removeAll();T9.prototype.dispose.call(this)};var upc=function(a,b){this.root=a;this.header=b};h=upc.prototype;h.getHeader=function(){return this.header};h.getActionItems=function(){return[]};h.dispose=function(){};h.getRoot=function(){return this.root};h.setCollapsible=function(a){this.collapsible=a};h.getCollapsible=function(){return this.collapsible};h.getActivatable=function(){};var tpc=function(a){var b=a.id,c=a.header;a=rv();b=pv('<div class="'+mv("peoplekitComponentsGroupingHeaderGroupingHeader")+'" id="'+mv(b)+'" peoplekit-id="'+mv("XLuqBd")+'"><div class="'+mv("peoplekitComponentsGroupingHeaderGroupingHeaderRow")+'"><div class="'+mv("peoplekitComponentsGroupingHeaderHeader")+'">'+nv(c)+'</div><div class="'+mv("peoplekitComponentsGroupingHeaderAction")+'"><div class="'+mv("peoplekitComponentsGroupingHeaderActionRow")+'"><div class="'+mv("peoplekitComponentsGroupingHeaderLeft")+
'" peoplekit-id="'+mv("xiK4Cd")+'"></div><div class="'+mv("peoplekitComponentsGroupingHeaderRight")+'" peoplekit-id="'+mv("QChpEe")+'"></div></div></div></div></div>');return sv(a,b)};var wpc=function(a){this.delegate=a};Y(wpc,T9);h=wpc.prototype;h.activate=function(){};h.deactivate=function(){};h.getSelection=function(){throw Error("Mg");};h.toggleSelection=function(){};h.onContextMenu=function(){return function(){}};h.spotlight=function(){var a=this.getActionItems();a.length&&(this.activeActionItemIndex=0,a[this.activeActionItemIndex].focus())};
h.unspotlight=function(){this.activeActionItemIndex!==void 0&&(this.getActionItems()[this.activeActionItemIndex].unfocus(),this.activeActionItemIndex=void 0)};
h.onKeyDown=function(a){if(this.activeActionItemIndex!==void 0){var b=this.getActionItems(),c=b[this.activeActionItemIndex];c.onKeyDown(a);if(!a.hasStoppedPropagationInternal)switch(a.event.keyCode){case 9:c.unfocus(),this.activeActionItemIndex=(this.activeActionItemIndex+1)%b.length,b[this.activeActionItemIndex].focus(),a.stopPropagation(),a.preventDefault()}}};h.getActivatable=function(){return this};var B6d=function(a,b,c,d,e,f){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.appearanceConfig=d;this.resultListItemFactory=e;this.grouping=f;this.sections=[]};h=B6d.prototype;h.append=function(a,b){a=m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.getOrCreateSection(c).append(this.resultListItemFactory.create(c,b))};
h.getOrCreateSection=function(a){var b=this.grouping.getGroupId(a);if(this.sections.find(function(d){return d.groupId===b}))return this.sections.at(-1).section;var c;a=(c=this.grouping.groupConfigs[b])!=null?c:{};c=xpc(a,this.appearanceConfig);c=this.createSection(c);this.sections.push({section:c,groupId:b});return c};h.getItems=function(){return C6d(this).flatMap(function(a){return a.getItems()})};h.reset=function(a){this.grouping.reset(a);this.navigatable.reset()};
h.clear=function(){var a=C6d(this);a=m(a);for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.list.clear();this.navigatable.clear();this.intelligentCollection.clear();this.sections.length=0};h.done=function(){};var C6d=function(a){a=new Set(a.sections.map(function(b){return b.section}));return[].concat(q(a.values()))};var ypc=function(){B6d.apply(this,arguments)};Y(ypc,B6d);
ypc.prototype.createSection=function(a){var b=yu(Pu.getInstance()),c=yu(Pu.getInstance()),d=vu(s6d,{id:b,listId:c});this.list.append(d);var e=wu(d,"tjneg");b=dpc(e);if(a){wu(d,"Bm3u4d").appendChild(a.getRoot());c=this.navigatable;var f=this.intelligentCollection;e={collapsibleResultListContainer:e,collapsibleSectionRoot:d};d=a.getActivatable();var g;d&&(c.insert(c.size(),[d],!1),e&&(g={sectionRoot:e.collapsibleSectionRoot,resultListContainer:e.collapsibleResultListContainer,before:d}));b=new S9(b,
c,f,g);g&&d&&d.setCollapsible(b);return new r6d(b,a)}return new S9(b,this.navigatable,this.intelligentCollection)};var Fpc=function(a,b){this.delegate=a;this.grouping=b;this.demotedResults=new Map};h=Fpc.prototype;h.append=function(a,b){var c=[];a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=this.grouping,f=e.getGroupId(d);Apc(e.groupConfigs[f])?(e=this.grouping.getGroupId(d),f=this.demotedResults.get(e)||[],f.push({result:d,resultContext:b}),this.demotedResults.set(e,f)):c.push(d)}c.length>0&&this.delegate.append(c,b)};h.getItems=function(){return this.delegate.getItems()};
h.clear=function(){this.delegate.clear();this.demotedResults.clear()};h.reset=function(a){this.delegate.reset(a)};h.done=function(){for(var a=m(this.demotedResults.values()),b=a.next();!b.done;b=a.next()){b=m(b.value);for(var c=b.next();!c.done;c=b.next())c=c.value,this.delegate.append([c.result],c.resultContext)}this.demotedResults.clear();this.delegate.done()};var Bpc=function(){B6d.apply(this,arguments)};Y(Bpc,B6d);Bpc.prototype.createSection=function(a){this.section||(this.section=new S9(this.list,this.navigatable,this.intelligentCollection));a&&this.list.append(a.getRoot());return this.section};Bpc.prototype.clear=function(){B6d.prototype.clear.call(this);this.section=void 0};var D6d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(D6d,W);D6d.prototype.getEnablePersonalizedQueryMatching=function(){return Fi(this,7)};var Wu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wu,W);Wu.prototype.getRequestType=function(){return wi(this,1)};Wu.prototype.setRequestType=function(a){return Gn(this,1,a)};var E6d=[0,yEc,99,[0,uA,kEc],[0],[0],[0,uA,-8],[0,uA],[0,uA,tA],U4d,[0,uA],[0,uA,-1]];var F6d=function(){var a=new Wu,b=new G9;this.experimentFlags_=Mi(a,G9,107,b)};F6d.prototype.getExperimentFlags=function(){return this.experimentFlags_};F6d.prototype.getExperimentIds=function(){return[]};var Orc=function(a,b){this.cache=b;this.overriddenExperiments=X(a,G9,3)||new G9};Orc.prototype.getExperiments=function(){var a,b=((a=this.cache.getExperimentFlags())==null?void 0:X(a,G9,107))||new G9;a=this.overriddenExperiments;Ei(a,3)&&(a=Fi(a,3),Oi(b,3,a));return b};Orc.prototype.getExperimentIds=function(){return this.cache.getExperimentIds()};var G6d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(G6d,W);h=G6d.prototype;h.getCacheStaleSec=function(){return Bm(this,4,14400)};h.getCacheExpiredSec=function(){return Bm(this,5,63158400)};h.getRpcTimeoutSec=function(){return Bm(this,7,60)};h.getApiKey=function(){return ui(this,8)};h.setApiKey=function(a){return oj(this,8,a)};h.getEnableClearcut=function(){return Fi(this,13,!0)};h.setEnableClearcut=function(a){return Oi(this,13,a)};var Lrc=Bsa(G6d);var Krc;var H6d=function(){};H6d.prototype.getExperimentFlags=function(){return new Wu};H6d.prototype.getExperimentIds=function(){return[]};var cv=function(){};cv.prototype.prefetch=function(){};cv.prototype.loadExperiments=function(){return new H6d};var U9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(U9,W);U9.prototype.getVersion=function(){return pn(this,1)};U9.prototype.setVersion=function(a){return vn(this,1,a)};U9.prototype.getVersionOrUndefined=function(){return Qb(fm(this,1))};U9.prototype.getVersionOrUndefined_asString=function(){return Lw(this,1)};var V9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(V9,W);h=V9.prototype;h.getApplication=function(){return wi(this,1)};h.setApplication=function(a){return Gn(this,1,a)};h.getApplicationOrUndefined=function(){return vp(this,1)};h.getVersion=function(){return pn(this,2)};h.setVersion=function(a){return vn(this,2,a)};h.getVersionOrUndefined=function(){return Qb(fm(this,2))};h.getVersionOrUndefined_asString=function(){return Lw(this,2)};var I6d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(I6d,W);h=I6d.prototype;h.getRequestType=function(){return wi(this,1)};h.setRequestType=function(a){return Gn(this,1,a)};h.getProfileId=function(){return ui(this,2)};h.getProfileId_legacyNullable=function(){return Fl(this,2)};h.setProfileId=function(a){return oj(this,2,a)};h.hasProfileId=function(){return im(this,2)};h.getCaller=function(){return X(this,U9,3)};h.setCaller=function(a){return Mi(this,U9,3,a)};
h.getInstanceId=function(){return ui(this,4)};h.setInstanceId=function(a){return oj(this,4,a)};h.clearInstanceId=function(){Hw(this,4)};h.hasInstanceId=function(){return im(this,4)};h.getInstanceIdOrUndefined=function(){return Sw(this,4)};h.getClient=function(){return X(this,V9,5)};h.setClient=function(a){return Mi(this,V9,5,a)};h.hasClient=function(){return xi(this,V9,5)};var Uu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Uu,W);h=Uu.prototype;h.getErrorType=function(){return wi(this,2,1)};h.setErrorType=function(a){return Gn(this,2,a)};h.hasErrorType=function(){return jm(this,2)};h.getErrorMessage=function(){return ui(this,3)};h.setErrorMessage=function(a){oj(this,3,a)};h.getStatusCode=function(){return wi(this,4)};h.setStatusCode=function(a){Gn(this,4,a)};h.hasStatusCode=function(){return jm(this,4)};var gqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gqc,W);h=gqc.prototype;h.getExperimentFlags=function(){return X(this,Wu,1)};h.setExperimentFlags=function(a){return Mi(this,Wu,1,a)};h.hasExperimentFlags=function(){return xi(this,Wu,1)};h.getError=function(){return X(this,Uu,2)};h.setError=function(a){Mi(this,Uu,2,a)};h.hasError=function(){return xi(this,Uu,2)};h.getSource=function(){return wi(this,3)};h.setSource=function(a){return Gn(this,3,a)};
h.hasSource=function(){return jm(this,3)};h.getSourceOrUndefined=function(){return vp(this,3)};h.getInstanceId=function(){return ui(this,4)};h.setInstanceId=function(a){return oj(this,4,a)};h.clearInstanceId=function(){Hw(this,4)};h.hasInstanceId=function(){return im(this,4)};h.getInstanceIdOrUndefined=function(){return Sw(this,4)};h.getExperimentIdsList=function(a){return Dm(this,5,Ci(a))};h.setExperimentIdsList=function(a){return xc(this,5,a,Eb)};h.getExperimentIds=function(){return Tw(this,5)};
h.setExperimentIds=function(a){zc(this,5,Eb,void 0,a,Fb,void 0,1)};var Mpc=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,Kpc=/([#].*?&|[#])authuser=([^&#]*)\b/,Lpc=/([?][^#]*?&|[?])authuser=([^&#]*)\b/;var J6d=function(a,b){this.client_=a;this.runtime_=b;Spc();this.apiKey_=a.getApiKey();this.apiRoot_=ui(this.client_,10)||Rpc("peoplestackwebexperiments-pa",this.runtime_.getPeopleApiEnv())};J6d.prototype.getClient=function(){return this.client_};J6d.prototype.getApiKey=function(){return this.apiKey_};var W9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(W9,W);h=W9.prototype;h.getExperimentFlags=function(){return X(this,Wu,1)};h.setExperimentFlags=function(a){return Mi(this,Wu,1,a)};h.hasExperimentFlags=function(){return xi(this,Wu,1)};h.getObfuscatedGaiaId=function(){return Fl(this,2)};h.getObfuscatedGaiaId_legacyNullable=function(){return Fl(this,2)};h.setObfuscatedGaiaId=function(a){return oj(this,2,a)};h.getExperimentIdsList=function(a){return Dm(this,3,Ci(a))};
h.setExperimentIdsList=function(a){return xc(this,3,a,Eb)};h.getExperimentIds=function(){return Tw(this,3)};h.setExperimentIds=function(a){zc(this,3,Eb,void 0,a,Fb,void 0,1)};var K6d=vi(W9);var L6d=[0,E6d,rEc,mEc];var M6d=function(a){var b=void 0;b=b===void 0?Date.now:b;this.clientConfig_=a;this.now_=b},N6d=function(a,b,c){a=a.now_()-c*1E3;return b>a};M6d.prototype.getCacheState=function(a){var b=this.clientConfig_.getClient();b=Bm(b,3,1800);if(N6d(this,a,b))return 1;b=this.clientConfig_.getClient().getCacheStaleSec();if(N6d(this,a,b))return 2;b=this.clientConfig_.getClient().getCacheExpiredSec();return N6d(this,a,b)?3:4};var O6d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(O6d,W);h=O6d.prototype;h.getExperiments=function(){return X(this,W9,2)};h.setExperiments=function(a){return Mi(this,W9,2,a)};h.hasExperiments=function(){return xi(this,W9,2)};h.getInstanceId=function(){return ui(this,4)};h.setInstanceId=function(a){return oj(this,4,a)};h.clearInstanceId=function(){Hw(this,4)};h.hasInstanceId=function(){return im(this,4)};h.getInstanceIdOrUndefined=function(){return Sw(this,4)};var P6d=[0,rEc,L6d,kEc,rEc];var Q6d=Asa(O6d,P6d),R6d=function(a){return function(b){var c=new bEc;nsa(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,ksa(a));return Xba(cEc(c))}}(P6d);var X9=function(a,b){b=Error.call(this,b!=null?b:"{statusCode: "+a+"}");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.statusCode=a;this.name="StatusCodeError";Object.setPrototypeOf(this,this.constructor.prototype)};Y(X9,Error);var Vu=function(a,b,c){b=b===void 0?2:b;X9.call(this,b,c===void 0?"{errorType: "+a+", statusCode: "+b+"}":c);this.name="ExperimentsError";this.type=a};Y(Vu,X9);var S6d=new Vu(6);var T6d=function(){};var U6d=function(){};yw(U6d,T6d);U6d.prototype.getCount=function(){for(var a=0,b=m(this),c=b.next();!c.done;c=b.next())a++;return a};U6d.prototype[Symbol.iterator]=function(){return Ied(this.__iterator__(!0)).toEs6()};U6d.prototype.clear=function(){var a=Array.from(this);a=m(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};yw(Wpc,U6d);h=Wpc.prototype;h.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var a=this.storage_;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var b=!0}catch(c){b=c instanceof DOMException&&(c.name==="QuotaExceededError"||c.code===22||c.code===1014||c.name==="NS_ERROR_DOM_QUOTA_REACHED")&&a&&a.length!==0}else b=!1;this.cachedIsStorageAvailable_=b}return this.cachedIsStorageAvailable_};
h.set=function(a,b){Y9(this);try{this.storage_.setItem(a,b)}catch(c){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};h.get=function(a){Y9(this);a=this.storage_.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a};h.remove=function(a){Y9(this);this.storage_.removeItem(a)};h.getCount=function(){Y9(this);return this.storage_.length};
h.__iterator__=function(a){Y9(this);var b=0,c=this.storage_,d=new Fed;d.next=function(){if(b>=c.length)return Ged;var e=c.key(b++);if(a)return{value:e,done:!1};e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return{value:e,done:!1}};return d};h.clear=function(){Y9(this);this.storage_.clear()};h.key=function(a){Y9(this);return this.storage_.key(a)};var Y9=function(a){if(a.storage_==null)throw Error("Ng");a.isAvailable()||ta(Error("Ng"))};yw(Xpc,Wpc);yw(Tu,U6d);Tu.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)};Tu.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)};Tu.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)};
Tu.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new Fed;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 Ypc=["PeopleStackExperiments"],V6d=new Set([4,0]),lqc=function(a,b){b=b===void 0?new Xpc:b;this.clientConfig_=a;this.transformer_=new M6d(this.clientConfig_);this.localStorage_=b;this.storage_=new Tu(this.localStorage_,"pse/591286274")};lqc.prototype.set=function(a,b){var c=Vpc(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw S6d;var d=new O6d;b=oj(d,1,c).setExperiments(b);d=Date.now();a=vn(b,3,d).setInstanceId(a.getInstanceId());this.storage_.set(c,Fda(R6d(a)));return c};
lqc.prototype.get=function(a){a=Vpc(a);if(!a)return null;a=this.storage_.get(a);if(!a)return null;a=W6d(a);if(a&&this.transformer_.getCacheState(Ym(pn(a,3)))!==4){var b=this.transformer_,c;var d={keyPath:ui(a,1),experiments:(c=a.getExperiments())!=null?c:new W9,lastUpdated:new Date(Ym(pn(a,3))),state:b.getCacheState(Ym(pn(a,3))),instanceId:a.getInstanceId()}}else d=null;return d};var W6d=function(a){if(!a)return null;try{return Q6d(a)}catch(b){return null}};
lqc.prototype.delete=function(a){this.storage_.remove(a);return!0};
lqc.prototype.clean=function(){for(var a=[].concat(q(this.storage_)),b=m(a),c=b.next();!c.done;c=b.next()){c=c.value;var d=V6d,e=d.has,f;a:{if(c&&(f=W6d(this.storage_.get(c)))&&on(f,3)){f=this.transformer_.getCacheState(Ym(pn(f,3)));break a}f=0}e.call(d,f)&&this.delete(c)}a:{if(a.length>10)try{this.storage_.set("__sak","1"),this.storage_.remove("__sak")}catch(g){if(g==="Storage mechanism: Quota exceeded"){a=!0;break a}}a=!1}a&&this.storage_.clear();a=m(Zpc(this.localStorage_));for(b=a.next();!b.done;b=
a.next())b.value.clear()};var mqc=function(a){var b=void 0;b=b===void 0?new Map:b;this.clientConfig_=a;this.transformer_=new M6d(this.clientConfig_);this.cache_=b};mqc.prototype.set=function(a,b){var c=Vpc(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw S6d;a={keyPath:c,experiments:b,lastUpdated:new Date,state:1,instanceId:a.getInstanceId()};this.cache_.set(c,a);return c};
mqc.prototype.get=function(a){a=Vpc(a);if(!a)return null;a=this.cache_.get(a);if(!a)return null;var b=this.transformer_.getCacheState(a.lastUpdated.getTime());if(b===4)return null;a.state=b;return a};mqc.prototype.delete=function(a){this.cache_.delete(a);return!0};mqc.prototype.clean=function(){var a=this;this.cache_.forEach(function(b,c){a.transformer_.getCacheState(b.lastUpdated.getTime())===4&&a.cache_.delete(c)})};var X6d=function(){};h=X6d.prototype;h.start=function(){};h.stop=function(){};h.count=function(){};h.latency=function(){};h.error=function(){};h.status=function(){};h.logError=function(){};var Y6d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Y6d,W);h=Y6d.prototype;h.getCaller=function(){return X(this,U9,1)};h.setCaller=function(a){return Mi(this,U9,1,a)};h.getClient=function(){return X(this,V9,2)};h.setClient=function(a){return Mi(this,V9,2,a)};h.hasClient=function(){return xi(this,V9,2)};var Z6d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Z6d,W);h=Z6d.prototype;h.getRequestType=function(){return wi(this,1)};h.setRequestType=function(a){return Gn(this,1,a)};h.setProperties=function(a){return Mi(this,Y6d,3,a)};h.getInstanceId=function(){return ui(this,4)};h.setInstanceId=function(a){return oj(this,4,a)};h.clearInstanceId=function(){Hw(this,4)};h.hasInstanceId=function(){return im(this,4)};h.getInstanceIdOrUndefined=function(){return Sw(this,4)};var $6d=new uB("/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",Z6d,W9,function(a){return a.serialize()},K6d);var a7d=function(a){this.client_=new aIc({format:"jspb"});this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};a7d.prototype.getExperimentFlags=function(a,b){return fC(this.client_,this.hostname_+"/$rpc/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",a,b||{},$6d)};var b7d=function(a,b){this.clientRequest_=a;this.rpcClient_=b;this.metric_=new X6d};b7d.prototype.getMetric=function(){return this.metric_};b7d.prototype.send=function(a){var b=this,c;return y(function(d){var e=(new Y6d).setCaller(b.clientRequest_.getCaller()).setClient(b.clientRequest_.getClient());c=(new Z6d).setRequestType(b.clientRequest_.getRequestType()).setInstanceId(b.clientRequest_.getInstanceIdOrUndefined()).setProperties(e);return d.return(b.rpcClient_.getExperimentFlags(c,a))})};
b7d.prototype.close=function(){};b7d.prototype.processResponse=function(a){return a};var c7d=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 d7d=function(a,b){X9.call(this,a,b===void 0?"RpcError ("+a+")":b)};Y(d7d,X9);var e7d=function(a,b){this.config_=a;this.request_=b;this.resolver_=new mKc;this.state_=0};h=e7d.prototype;h.resultPromise=function(){return this.resolver_.promise};h.isPending=function(){return this.state_===1};h.cancel=function(){switch(this.state_){case 1:this.state_=2;this.onError_("CANCELLED");break;case 0:this.state_=3;var a=new d7d(1,"CANCELLED");this.resolver_.reject(a.statusCode)}};
h.send=function(){var a=this;if(this.state_!==0)return this.resultPromise();var b=Qpc(this.config_.apiKey);this.config_.customAuthHeaders&&(b=Object.assign({},b,this.config_.customAuthHeaders));this.state_=1;b=this.request_.send(b);dqc(b,this.config_.timeoutSec*1E3).finally(function(){a.state_=2}).then(function(c){a:{if(a.state_!==3)if(c){try{var d=a.request_.processResponse(c)}catch(e){a.onError_(e,2);c=void 0;break a}try{a.resolver_.resolve(d),a.request_.close(0)}finally{a.state_=3}}else a.onError_(c);
c=void 0}return c},function(c){return a.onError_(c)});return this.resultPromise()};
h.onError_=function(a,b){b=b===void 0?0:b;if(this.state_!==3){if(a==="TIMEOUT")a=new d7d(4,"TIMEOUT");else if(a==="CANCELLED")a=new d7d(1,"CANCELLED");else if(!(a instanceof X9)){var c=2;if(Oa(a)){var d;isFinite((d=a.code)!=null?d:NaN)&&(c=a.code);c===2&&(c=Su("result.error.code",a)||a.status,c=Number(c),c=c7d.has(c)?c7d.get(c):c>=200&&c<300?0:c>=400&&c<500?9:c>=500&&c<600?13:2,c!==2||b||(b=(a.message||"").startsWith("Rpc failed due to xhr error.")?3:0,b===3&&(c=14)))}a=new d7d(c)}try{var e=a instanceof
X9?a.statusCode:2;!this.config_.authErrorHandler||e!==16&&e!==7||this.config_.authErrorHandler();this.resolver_.reject(e);this.request_.close(e,b)}finally{this.state_=3}}};var f7d=Symbol("Pg"),g7d=function(){};g7d.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[f7d]=d)}return c})};var h7d=function(a){this.request_=a;this.metric_=this.request_.getMetric();this.metric_.start("total");this.metric_.start("blocked");this.contentLength_=0};h7d.prototype.getMetric=function(){return this.metric_};h7d.prototype.send=function(a){this.metric_.stop("blocked");this.metric_.count();this.metric_.start("network");return this.request_.send(a)};
h7d.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[f7d]||0}};h7d.prototype.close=function(a,b){b=b===void 0?0:b;this.request_.close(a,b);this.metric_.stop("total");this.metric_.status(a,b,this.contentLength_)};var i7d=function(a){this.config_=a;this.pendingRpcs_=new Set},k7d=function(a,b){b=new h7d(b);b=new e7d(a.config_,b);a.pendingRpcs_.add(b);j7d(a,b);return b.resultPromise()},j7d=function(a,b){y(function(c){if(c.nextAddress==1)return Wd(c,2,3),z(c,b.send(),3);if(c.nextAddress!=2)return Xd(c),a.pendingRpcs_.delete(b),Zd(c,0);$d(c);return c.jumpTo(3)})};var jqc=function(a){this.clientConfig_=a;this.inflightRequests_=new Map;a={apiKey:this.clientConfig_.getApiKey(),timeoutSec:this.clientConfig_.getClient().getRpcTimeoutSec()};this.dispatcher_=new i7d(a);this.rpcClient_=new a7d(this.clientConfig_.apiRoot_)},m7d=function(a,b){var c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:var l=l7d(b);if(c=a.inflightRequests_.get(l)||null)return k.return(c);d=new b7d(b,a.rpcClient_);Wd(k,2,3);e=k7d(a.dispatcher_,d);l=l7d(b);a.inflightRequests_.set(l,
e);return z(k,e,5);case 5:return f=k.yieldResult,k.return(f);case 3:Xd(k);l=l7d(b);a.inflightRequests_.delete(l);Zd(k,0);break;case 2:g=$d(k);if(Number.isFinite(g))throw new Vu(7,g);throw new Vu(7);}})},l7d=function(a){a=Upc(a);if(!a)throw S6d;return a};var n7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(n7d,W);var $uc=function(a){var b=new n7d;return oj(b,1,a)};h=n7d.prototype;h.getLogSource=function(){return wi(this,2,-1)};h.setLogSource=function(a){return Gn(this,2,a)};h.getApplication=function(){return wi(this,3)};h.setApplication=function(a){return Gn(this,3,a)};h.getApplicationOrUndefined=function(){return vp(this,3)};h.getVersion=function(){return ui(this,4)};h.setVersion=function(a){return oj(this,4,a)};
h.getVersionOrUndefined=function(){return Sw(this,4)};h.getBaselineCl=function(){return Bm(this,5)};h.setBaselineCl=function(a){return En(this,5,a)};h.hasBaselineCl=function(){return kn(this,5)};h.getBaselineClOrUndefined=function(){return Rw(this,5)};h.getEnableClearcut=function(){return Fi(this,6)};h.setEnableClearcut=function(a){return Oi(this,6,a)};var Zuc=function(a,b){return xc(a,7,b,Eb)};h=n7d.prototype;h.setClientAgent=function(a){return Gn(this,8,a)};
h.getClientAgentOrUndefined=function(){return vp(this,8)};h.setEventSource=function(a){Gn(this,9,a)};h.getEventSourceOrUndefined=function(){return vp(this,9)};h.setEventSourceId=function(a){En(this,14,a)};h.getEventSourceIdOrUndefined=function(){return Rw(this,14)};h.getClearcutUrl=function(){return ui(this,10)};h.setClearcutUrl=function(a){oj(this,10,a)};h.setEnvironment=function(a){return Gn(this,11,a)};h.getEnvironmentOrUndefined=function(){return vp(this,11)};
h.getPeoplekitEntryPoint=function(){return wi(this,12)};h.setPeoplekitEntryPoint=function(a){return Gn(this,12,a)};h.getPeoplekitEntryPointOrUndefined=function(){return vp(this,12)};h.setSharekitEntryPoint=function(a){Gn(this,13,a)};h.getSharekitEntryPointOrUndefined=function(){return vp(this,13)};var o7d,p7d=(o7d=window)==null?void 0:o7d.performance,q7d,r7d=p7d==null?void 0:(q7d=p7d.timing)==null?void 0:q7d.navigationStart,hwd=r7d&&p7d?function(){var a;return r7d+((a=p7d==null?void 0:p7d.now())!=null?a:0)}:function(){return Date.now()};var s7d=function(a){this.start_=a;this.end_=NaN};s7d.prototype.duration=function(){return this.end_-this.start_};s7d.prototype.stop=function(a){this.end_=a;return this.duration()};var Z9=function(a){var b=b===void 0?hwd:b;this.source_=a;this.nowFn_=b;this.durations_=new Map;this.lastLabel_="_"};Z9.prototype.source=function(){return this.source_};var t7d=function(a,b){b&&(a.lastLabel_=b);return a.lastLabel_};
Z9.prototype.duration=function(a){a=t7d(this,a===void 0?"":a);return this.durations_.has(a)?this.durations_.get(a).duration():NaN};var u7d=function(a,b){return eqc(a.duration(b===void 0?"":b))};Z9.prototype.toString=function(a,b){b=b===void 0?1:b;return this.duration(a===void 0?"":a).toFixed(b)};Z9.prototype.start=function(a){a=a===void 0?"":a;var b=this.nowFn_();a=t7d(this,a);this.durations_.set(a,new s7d(b));return this};
Z9.prototype.stop=function(a){a=a===void 0?"":a;var b=this.nowFn_();a=t7d(this,a);this.durations_.has(a)&&this.durations_.get(a).stop(b);return this};Z9.prototype.clear=function(){this.durations_.clear();return this};var v7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(v7d,W);var Tuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Tuc,W);h=Tuc.prototype;h.getQueryId=function(){return Xw(this,1)};h.setQueryId=function(a){return vn(this,1,a)};h.setSelectionId=function(a){return vn(this,2,a)};h.getInstanceId=function(){return Fl(this,4)};h.setInstanceId=function(a){return oj(this,4,a)};h.clearInstanceId=function(){Hw(this,4)};h.hasInstanceId=function(){return im(this,4)};h.getInstanceIdOrUndefined=function(){return Sw(this,4)};
h.getAffinityVersion=function(){return Ww(this,5)};h.setAffinityVersion=function(a){En(this,5,a)};h.getAffinityVersionOrUndefined=function(){return Rw(this,5)};var w7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(w7d,W);h=w7d.prototype;h.getQueryLength=function(){return Ww(this,1)};h.setQueryLength=function(a){return En(this,1,a)};h.hasQueryLength=function(){return kn(this,1)};h.getQuery=function(){return Fl(this,2)};h.setQuery=function(a){return oj(this,2,a)};h.clearQuery=function(){Hw(this,2)};h.hasQuery=function(){return im(this,2)};var x7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(x7d,W);x7d.prototype.setLatencyUsec=function(a){En(this,1,a)};var $9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($9,W);h=$9.prototype;h.getColumn=function(){return Ww(this,2)};h.setColumn=function(a){return En(this,2,a)};h.getType=function(){return Vv(this,3)};h.setType=function(a){return Gn(this,3,a)};h.hasType=function(){return jm(this,3)};var a$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(a$,W);a$.prototype.getExistingSelectionsCount=function(){return Ww(this,1)};a$.prototype.setExistingSelectionsCount=function(a){En(this,1,a)};a$.prototype.getPosition=function(){return X(this,$9,2)};a$.prototype.setPosition=function(a){return Mi(this,$9,2,a)};var b$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(b$,W);h=b$.prototype;h.setDevice=function(a){return Gn(this,1,a)};h.getApplication=function(){return wi(this,2)};h.setApplication=function(a){return Gn(this,2,a)};h.getApplicationOrUndefined=function(){return vp(this,2)};h.setPlatform=function(a){Gn(this,3,a)};var c$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(c$,W);h=c$.prototype;h.setEventSource=function(a){Gn(this,2,a)};h.getEventSourceOrUndefined=function(){return vp(this,2)};h.setEventSourceId=function(a){En(this,15,a)};h.getEventSourceIdOrUndefined=function(){return Rw(this,15)};h.getSocialClient=function(){return X(this,b$,3)};h.setSocialClient=function(a){return Mi(this,b$,3,a)};h.setVersionName=function(a){return oj(this,5,a)};
h.getBaselineCl=function(){return Xw(this,7)};h.setBaselineCl=function(a){return vn(this,7,a)};h.hasBaselineCl=function(){return on(this,7)};h.getBaselineClOrUndefined=function(){return Qb(fm(this,7))};h.setClientAgent=function(a){return Gn(this,9,a)};h.getClientAgentOrUndefined=function(){return vp(this,9)};h.getPeoplekitEntryPoint=function(){return Vv(this,11)};h.setPeoplekitEntryPoint=function(a){return Gn(this,11,a)};h.getPeoplekitEntryPointOrUndefined=function(){return vp(this,11)};
h.setEnvironment=function(a){return Gn(this,13,a)};h.getEnvironmentOrUndefined=function(){return vp(this,13)};h.setSharekitEntryPoint=function(a){Gn(this,14,a)};h.getSharekitEntryPointOrUndefined=function(){return vp(this,14)};var d$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(d$,W);h=d$.prototype;h.getType=function(){return Vv(this,5)};h.setType=function(a){return Gn(this,5,a)};h.hasType=function(){return jm(this,5)};h.getEmail=function(){return Fl(this,1)};h.getEmail_legacyNullable=function(){return Fl(this,1)};h.setEmail=function(a){return oj(this,1,a)};h.hasEmail=function(){return im(this,1)};h.getPhone=function(){return Fl(this,2)};
h.getPhone_legacyNullable=function(){return Fl(this,2)};h.setPhone=function(a){return oj(this,2,a)};h.getObfuscatedGaiaId=function(){return Fl(this,3)};h.getObfuscatedGaiaId_legacyNullable=function(){return Fl(this,3)};h.setObfuscatedGaiaId=function(a){return oj(this,3,a)};h.getContactId=function(){return Xw(this,4)};h.setContactId=function(a){return vn(this,4,a)};h.getGroupId=function(){return Fl(this,6)};h.setGroupId=function(a){oj(this,6,a)};h.hasGroupId=function(){return im(this,6)};var e$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(e$,W);e$.prototype.getName=function(){return Fl(this,1)};e$.prototype.setName=function(a){return oj(this,1,a)};e$.prototype.hasName=function(){return im(this,1)};e$.prototype.getNameOrUndefined=function(){return Sw(this,1)};var f$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(f$,W);h=f$.prototype;h.getPosition=function(){return X(this,$9,1)};h.setPosition=function(a){return Mi(this,$9,1,a)};h.getProvenance=function(){return Vw(this,3)};h.setProvenance=function(a){return zc(this,3,Cb,void 0,a,Db,void 0,1)};h.getIsBoosted=function(){return Nv(this,6)};h.setIsBoosted=function(a){Oi(this,6,a)};h.getIsPlaceholder=function(){return Nv(this,7)};h.setIsPlaceholder=function(a){Oi(this,7,a)};
h.getIsSelf=function(){return Nv(this,11)};h.getQueryId=function(){return Xw(this,15)};h.setQueryId=function(a){return vn(this,15,a)};h.setSelectionId=function(a){return vn(this,16,a)};var y7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(y7d,W);h=y7d.prototype;h.getLoggingId=function(){return Fl(this,1)};h.setLoggingId=function(a){oj(this,1,a)};h.getMetadata=function(){return X(this,f$,3)};h.getMutableMetadata=function(){return Ii(this,f$,3)};h.setMetadata=function(a){Mi(this,f$,3,a)};h.hasMetadata=function(){return xi(this,f$,3)};var g$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(g$,W);g$.prototype.getAffinityVersion=function(){return Ww(this,2)};g$.prototype.setAffinityVersion=function(a){En(this,2,a)};g$.prototype.getAffinityVersionOrUndefined=function(){return Rw(this,2)};var z7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(z7d,W);h=z7d.prototype;h.getEventType=function(){return Vv(this,1)};h.getEventType_legacyNullable=function(){return Vv(this,1)};h.setEventType=function(a){return Gn(this,1,a)};h.getMetadata=function(){return X(this,g$,4)};h.getMutableMetadata=function(){return Ii(this,g$,4)};h.setMetadata=function(a){Mi(this,g$,4,a)};h.hasMetadata=function(){return xi(this,g$,4)};
h.getClientInterface=function(){return X(this,c$,5)};h.setClientInterface=function(a){return Mi(this,c$,5,a)};var A7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(A7d,W);h=A7d.prototype;h.getInstanceId=function(){return ui(this,1)};h.setInstanceId=function(a){return oj(this,1,a)};h.clearInstanceId=function(){Hw(this,1)};h.hasInstanceId=function(){return im(this,1)};h.getInstanceIdOrUndefined=function(){return Sw(this,1)};h.getRequestId=function(){return ui(this,2)};h.getRequestType=function(){return wi(this,4)};h.setRequestType=function(a){return Gn(this,4,a)};
h.getSourceType=function(){return wi(this,6)};h.setSourceType=function(a){return Gn(this,6,a)};h.getClient=function(){return wi(this,7)};h.setClient=function(a){return Gn(this,7,a)};h.hasClient=function(){return jm(this,7)};h.getErrorType=function(){return wi(this,8)};h.setErrorType=function(a){return Gn(this,8,a)};h.hasErrorType=function(){return jm(this,8)};h.getStatusCode=function(){return wi(this,10)};h.setStatusCode=function(a){Gn(this,10,a)};h.hasStatusCode=function(){return jm(this,10)};var kqc=function(a){var b=a.getClient();a=a.runtime_.getPeopleApiEnv();this.logContext_=$uc("PeopleExperiments").setEnvironment(a).setLogSource(1250).setVersion("1.0.1").setBaselineCl(826638166).setEnableClearcut(b.getEnableClearcut())};h=kqc.prototype;h.getLogContext=function(){return this.logContext_};h.createCountMetric=function(){throw Error("vg");};h.createStatusMetric=function(){throw Error("vg");};h.createErrorMetric=function(){throw Error("vg");};
h.createLatencyMetric=function(a,b){a=b.source();b=Math.round(b.duration()*1E3);vn(a,3,b);return a};var B7d=function(){return aba&&Ca?!Ca.mobile&&(Da("iPad")||Da("Android")||Da("Silk")):Da("iPad")||Da("Android")&&!Da("Mobile")||Da("Silk")};var Grc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Grc,W);var Frc=function(a,b){return xc(a,3,b,Eb)};var C7d=ij(function(a,b,c,d,e,f){f=f===void 0?"":f;a=new eD(a,b);f&&(a.destinationUrl=f);d&&dMc(a,function(){return Qpc().Authorization});a.setProductID(e||109303191);if(c==null?0:c.length)c=Frc(new Grc,c),a.setClearExperimentIds(c);return a.build()});var D7d=function(a,b){this.clearcut_=a;this.logContextFactory_=b;this.device_=mba()||Da("iPod")?4:Da("iPad")?5:lba()?B7d()?3:2:(aba&&Ca?Ca.mobile:!B7d()&&(Da("iPod")||Da("iPhone")||Da("Android")||Da("IEMobile")))||B7d()?0:1},E7d=function(a){var b=a.getLogContext(),c=null;if(b.getEnableClearcut()){var d,e;c=b.getLogSource();var f=Npc();var g=Dm(b,7,Ci(Jm));c=C7d(c,f,g,(e=(d=FW.clearcut)==null?void 0:d.preferOauth)!=null?e:!1,Bm(b,15),b.getClearcutUrl())}return new D7d(c,a)},F7d=function(a){var b=a.logContextFactory_.getLogContext(),
c=new b$;c.setApplication(b.getApplicationOrUndefined());c.setDevice(a.device_);a=new c$;a.setSocialClient(c);a.setVersionName(b.getVersionOrUndefined());a.setClientAgent(b.getClientAgentOrUndefined());a.setEventSource(b.getEventSourceOrUndefined());a.setEventSourceId(b.getEventSourceIdOrUndefined());a.setEnvironment(b.getEnvironmentOrUndefined());a.setPeoplekitEntryPoint(b.getPeoplekitEntryPointOrUndefined());a.setSharekitEntryPoint(b.getSharekitEntryPointOrUndefined());b.hasBaselineCl()&&(b=Math.round(b.getBaselineCl()),
isFinite(b)&&a.setBaselineCl(b));return a},G7d=function(a,b){var c=new OC;jLc(c,b.serialize());a.clearcut_&&a.clearcut_.dispatch(c)};var H7d=function(a,b){this.clearcut_=a;this.logEventFactory_=b},wrc=function(a){return new H7d(E7d(a),a)};H7d.prototype.logError=function(a){var b=F7d(this.clearcut_);(a=this.logEventFactory_.createErrorMetric(b,a))&&G7d(this.clearcut_,a)};var vrc=function(a){this.clearcut_=a};h=vrc.prototype;h.start=function(a,b){a.start(b);return this};h.stop=function(a,b){a.stop(b);return this};h.count=function(a,b){var c=this.clearcut_;b=b===void 0?1:b;var d=F7d(c.clearcut_);(a=c.logEventFactory_.createCountMetric(d,a,b))&&G7d(c.clearcut_,a);return this};h.status=function(a,b){var c=this.clearcut_,d=F7d(c.clearcut_);(a=c.logEventFactory_.createStatusMetric(d,a,b))&&G7d(c.clearcut_,a);return this};
h.latency=function(a){var b=this.clearcut_,c=F7d(b.clearcut_);(a=b.logEventFactory_.createLatencyMetric(c,a))&&G7d(b.clearcut_,a);return this};h.error=function(a){this.clearcut_.logError(a);return this};h.logError=function(){};h.logInfo=function(){return this};var I7d=function(a,b){this.metrics_=a;this.state_=new Z9(b);this.label_="total";this.source=b};I7d.prototype.start=function(){this.metrics_.start(this.state_,this.label_)};I7d.prototype.stop=function(){this.metrics_.stop(this.state_,this.label_);this.metrics_.latency(this.state_)};var nqc=function(a,b,c){this.worker_=a;this.metrics_=new vrc(wrc(b));this.runtimeConfig_=c},J7d=function(a,b,c){var d,e,f=new A7d,g=Spc();f=oj(f,2,g).setRequestType(b.getRequestType());b=Gn(f,5,c).setClient((e=(d=b.getClient())==null?void 0:d.getApplicationOrUndefined())!=null?e:0);return Gn(b,9,a.runtimeConfig_.getPeopleApiEnv())},K7d=function(a,b){b.setSourceType(a.getSourceOrUndefined());b.setInstanceId(a.getInstanceIdOrUndefined());a=a.getError();(a==null?0:a.hasErrorType())&&b.setErrorType(a.getErrorType());
(a==null?0:a.hasStatusCode())&&b.setStatusCode(a.getStatusCode())};nqc.prototype.updateExperimentsCache=function(a,b){b=b===void 0?2:b;var c=this,d,e,f;return y(function(g){if(g.nextAddress==1)return d=J7d(c,a,b),e=new I7d(c.metrics_,d),e.start(),z(g,c.worker_.updateExperimentsCache(a,b),2);f=g.yieldResult;K7d(f,d);e.stop();return g.return(f)})};
nqc.prototype.getCachedExperiments=function(a,b){b=b===void 0?0:b;var c=J7d(this,a,b),d=new I7d(this.metrics_,c);d.start();a=this.worker_.getCachedExperiments(a,b);K7d(a,c);d.stop();return a};var L7d=function(a){this.timer=a;this.count=0},pqc=function(a,b){this.clientConfig_=a;this.worker_=b;this.refreshers_=new Map;a=this.clientConfig_.getClient();this.refreshRateMs_=Bm(a,11,14400)*1E3;this.eventHandler_=new zu(this)};pqc.prototype.updateExperimentsCache=function(a,b){try{return M7d(this,a),this.worker_.updateExperimentsCache(a,b)}catch(c){return Promise.resolve(hqc(c))}};pqc.prototype.getCachedExperiments=function(a,b){try{return M7d(this,a),this.worker_.getCachedExperiments(a,b)}catch(c){return hqc(c)}};
var M7d=function(a,b){var c=Upc(b);if(!c)throw new Vu(6);if(a.refreshers_.has(c))a.refreshers_.get(c).count=0;else{var d=new LC(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=a.clientConfig_.getClient();f=Bm(f,12,18);e.count>=f&&(e.timer.stop(),a.refreshers_.delete(c))}});d.start();a.refreshers_.set(c,new L7d(d))}a.refreshers_.get(c)};var N7d=function(){},oqc=function(a,b){this.cache_=a;this.loader_=b};
oqc.prototype.updateExperimentsCache=function(a,b){var c=this,d,e,f,g;return y(function(k){if(k.nextAddress==1){e=d=null;try{d=O7d(c,a)}catch(x){e=x}if(d&&d.state!==3)return k.return(c.getCachedExperiments(a,b));Wd(k,3);return z(k,P7d(c,a),5)}if(k.nextAddress!=3){f=k.yieldResult;var l=k.return,r=f,w=e;w=w===void 0?null:w;r=(new gqc).setExperimentFlags(r.getExperimentFlags()).setExperimentIdsList(r.getExperimentIdsList()).setSource(1).setInstanceId(a.getInstanceIdOrUndefined());w&&r.setError(fqc(w));
return l.call(k,r)}g=$d(k);return k.return(hqc(g))})};oqc.prototype.getCachedExperiments=function(a){try{var b=O7d(this,a);if(b){var c=(new gqc).setExperimentFlags(b.experiments.getExperimentFlags()).setExperimentIdsList(b.experiments.getExperimentIdsList()).setInstanceId(b.instanceId).setSource(2);b.state!==1&&P7d(this,a).catch(N7d);return c}P7d(this,a).catch(N7d);return hqc()}catch(d){return hqc(d)}};
var O7d=function(a,b){try{var c=a.cache_.get(b);return c&&c.experiments.hasExperimentFlags()?c:null}catch(d){if(d instanceof Vu)throw d;throw new Vu(3);}},P7d=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return Wd(e,2),b.hasInstanceId()||b.setInstanceId(Spc()),z(e,m7d(a.loader_,b),4);if(e.nextAddress!=2)return c=e.yieldResult,a.cache_.set(b,c),e.return(c);d=$d(e);if(d instanceof Vu)throw d;throw new Vu(2);})};var iqc;var Q7d=function(a){this.clientConfig_=a;this.worker_=qqc(this.clientConfig_)};Q7d.prototype.getCachedExperiments=function(a){return this.worker_.getCachedExperiments(a,0)};var Nrc=function(){this.peopleApiEnv_=4};Nrc.prototype.getPeopleApiEnv=function(){return this.peopleApiEnv_};Nrc.prototype.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};var R7d=function(a,b){this.client_=a;this.request_=b;this.response_=null};R7d.prototype.getExperimentFlags=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentFlags()};R7d.prototype.getExperimentIds=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentIdsList(Jm)};var Mrc=function(a,b){this.clientConfig_=a;this.requestType_=b;this.version_=826638166};Mrc.prototype.prefetch=function(a){var b=new J6d(this.clientConfig_,new Nrc);a=S7d(this,a,"");qqc(b).updateExperimentsCache(a,2)};Mrc.prototype.loadExperiments=function(a,b,c){var d=new J6d(this.clientConfig_,b),e=S7d(this,a,c);qqc(d).updateExperimentsCache(e,2);b=new J6d(this.clientConfig_,b);b=new Q7d(b);a=S7d(this,a,c);return new R7d(b,a)};
var S7d=function(a,b,c){var d=(new U9).setVersion(a.version_);b=(new V9).setApplication(b);return(new I6d).setProfileId(c).setRequestType(a.requestType_).setCaller(d).setClient(b)};var tqc=new Orc(new H9,new F6d);var uqc=Pu.getInstance();var vqc=Pu.getInstance();var T7d=new ql(cG.WEEKDAY_MONTH_DAY_MEDIUM),U7d=new ql(7);new ql(cG.WEEKDAY_MONTH_DAY_MEDIUM);var V7d=new Map([[0,2],[1,1],[2,3],[3,4],[4,2],[5,5]]);var W7d=function(a){var b=a.iconUrl,c=a.altText,d=a.persistentText,e=a.styleClass,f=a.fontIcon,g=a.customTagClass,k=a.tooltipLabel;a=rv();e=g||e;g=k?"tt-c"+d6d++:"";e=qv(a,'<div class="'+mv("peoplekitComponentsTagTag")+" "+(e?mv(e):"")+'" peoplekit-id="'+mv("mQXP")+'"'+(g?' data-tooltip-id="'+mv(g)+'" aria-labelledby="'+mv(g)+'"':"")+">");M9(b)||M9(f)?(g=rv(),b=M9(b)?'<img class="'+mv("peoplekitComponentsTagIcon")+'" src="'+mv(D5d(b))+'" alt="'+mv(c)+'">':M9(f)?'<span class="google-symbols '+mv("peoplekitComponentsTagIcon")+
'">'+nv(f)+"</span>":"",b=pv(b),c=qv(sv(g,b),"<div"+(d?"":' class="'+mv("peoplekitComponentsTagUnrollingAltText")+'"')+'><div class="'+mv("peoplekitComponentsTagText")+'">'+nv(c)+"</div></div>")):c='<div class="'+mv("peoplekitComponentsTagText")+'">'+nv(c)+"</div>";qv(sv(e,c),"</div>");return a};var X7d=function(a,b){a:switch(a.style||0){case 1:var c="isWarning";break a;default:c=""}this.tagElement=vu(W7d,Object.assign({},a,{styleClass:c}));a.tooltipLabel&&(c=this.tagElement.getAttribute("data-tooltip-id")||"",this.tooltip=Eoc(b,c,{label:a.tooltipLabel}),Ioc(this.tooltip,this.tagElement))};X7d.prototype.getRoot=function(){return this.tagElement};X7d.prototype.dispose=function(){this.tooltip&&a6d(this.tooltip.tooltipEventTracker)};var h$=function(a,b,c,d,e,f,g){var k=this;this.root=a;this.avatar=e;this.features=f;this.popupsContainer=g;this.isIntelligenceInitialized=this.isOutOfOffice=!1;this.tags=[];Y7d(this,{tags:d});Roc(a,b.getPrimaryTarget());c.getResultDecorationConfigRequestCallback()(b,function(l){Y7d(k,l)})};h=h$.prototype;h.getAllIds=function(){return[]};h.toggleSelection=function(){};h.activate=function(){this.root.classList.add("isActive")};h.deactivate=function(){this.root.classList.remove("isActive")};
h.spotlight=function(){};h.unspotlight=function(){};h.getRoot=function(){return this.root};h.getSelection=function(){throw Error("Mg");};h.onKeyDown=function(){};h.onContextMenu=function(){return function(){}};
h.updateWaldo=function(a){if(this.getSupportedIntelligenceFeatures().includes(1)){var b=wu(this.root,"Z306Oe");if(this.isOutOfOffice=a.getCurrentStatus()===4){if(a.getCurrentStatus()!==4)throw Error("Qg");var c=c!=null?c:a.getCurrentStatusEndTime();a=new Date(Date.now());c=a.getYear()===c.getYear()&&a.getMonth()===c.getMonth()&&a.getDate()===c.getDate()?"Out of office - back at "+U7d.format(c):"Out of office - back on "+T7d.format(c);zJc(b,String(c));this.root.classList.add("isOutOfOffice")}else zJc(b,
""),this.root.classList.remove("isOutOfOffice")}};h.updateHubAvailabilityDot=function(a){this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:V7d.get(a.getType()||0)||2})};h.getSupportedIntelligenceFeatures=function(){return this.features};h.addTag=function(a){var b=wu(this.root,"x00ATb"),c=this.popupsContainer.get("jGsbz");a=new X7d(a,c);this.tags.push(a);b.appendChild(a.getRoot())};
h.setMetaIcon=function(a){var b=Enc(this.root,"SC3Htd")[0];b&&(b.src=a.iconUrl,b.alt=a.altText)};var Y7d=function(a,b){for(var c=m(b.tags||[]),d=c.next();!d.done;d=c.next())a.addTag(d.value);b.metaIcon&&a.setMetaIcon(b.metaIcon)};h$.prototype.initializeIntelligence=function(){this.isIntelligenceInitialized||(this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:2}),this.isIntelligenceInitialized=!0)};h$.prototype.dispose=function(){this.tags.forEach(function(a){a.dispose()})};var Z7d=function(a,b,c,d){this.loggingToken=d;this.lookupWithOverride=Bsc(Asc(a).setDisplayName(b),c)};Z7d.prototype.getLoggingToken=function(){return this.loggingToken};var $7d=function(){};$7d.prototype.getDisplayNameMatches=function(){return[]};$7d.prototype.getDisplayValueMatches=function(){return[]};$7d.prototype.getGivenNameMatches=function(){return[]};var a8d=new $7d;var xqc=function(a,b,c){this.resultType_=a;this.targets_=b;this.memberCount_=c};h=xqc.prototype;h.getResultType=function(){return this.resultType_};h.getTargetList=function(){return this.targets_};h.getMemberList=function(){return[]};h.getTotalMemberCount=function(){return this.memberCount_};h.getPrimaryTarget=function(){throw Error("Rg");};h.getDisplayName=function(){return""};h.getDisplayValue=function(){return""};h.getDescription=function(){return""};h.getPhotoUrl=function(){return""};
h.getIsBoosted=function(){return!1};h.getMatchInfo=function(){return a8d};h.getExtendedData=function(){return null};var b8d=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],[17,1],[18,7],[19,7]]);var c8d=function(a){this.id_=a;this.value_=this.id_.getOriginalValue();this.description_=this.canonicalValue_="";this.name_=null;this.photo_=Bv(this.id_)?mwd:lwd;this.tags_=[];this.sourceIds_=qvc.includes(this.id_.getType())?[this.id_]:[];this.id_.getType()===8&&this.sourceIds_.push(qtc(this.id_.getOriginalValue()));this.isMe_=this.id_.getType()===17;this.dataSource_=0;this.resultType_=b8d.get(this.id_.getType())||0;this.personLoggingId_=this.fieldLoggingId_="";this.orgState_=0;this.extendedData_=
this.reachabilityInfo_=this.originatingField_=this.emailSecurityInfo_=null};h=c8d.prototype;h.getId=function(){return this.id_};h.getTargetType=function(){return this.id_.getType()};h.getValue=function(){return this.value_};h.setValue=function(a){this.value_=Xu(a);return this};h.getDisplayValue=function(){switch(this.getTargetType()){case 8:var a=this.getOriginatingField();return Xu(a&&a.getValue());case 1:case 2:case 6:case 7:return this.getValue();default:return""}};
h.getCanonicalValue=function(){return this.canonicalValue_||this.value_};h.setCanonicalValue=function(a){this.canonicalValue_=Xu(a);return this};h.getName=function(){return this.name_};h.setName=function(a){this.name_=a;return this};h.getDescription=function(){return this.description_};h.setDescription=function(a){this.description_=Xu(a);return this};h.getPhoto=function(){return this.photo_};h.setPhoto=function(a){a&&a.getUrl()&&a.getType()!==1?this.photo_=a:this.photo_=Bv(this.id_)?mwd:lwd};
h.getTagList=function(){return this.tags_};h.setTagList=function(a){this.tags_=a||[]};h.getSourceIdList=function(){return this.sourceIds_};h.getProfileId=function(){return this.getSourceIdList().filter(function(a){return a.getType()===3}).map(function(a){return a.getOriginalValue()}).find(Boolean)||""};h.getContactId=function(){return this.getSourceIdList().filter(function(a){return a.getType()===4}).map(function(a){return a.getOriginalValue()}).find(Boolean)||""};h.getLoggingToken=function(){return new aw};
h.getIsMe=function(){return this.isMe_};h.setIsMe=function(a){this.isMe_=a;return this};h.getDataSource=function(){return this.dataSource_};h.setDataSource=function(a){this.dataSource_=a;return this};h.getResultType=function(){return this.resultType_};h.setResultType=function(a){this.resultType_=a;return this};h.getFieldLoggingId=function(){return this.fieldLoggingId_};h.setFieldLoggingId=function(a){this.fieldLoggingId_=Xu(a)};h.getPersonLoggingId=function(){return this.personLoggingId_};
h.setPersonLoggingId=function(a){this.personLoggingId_=Xu(a)};h.getOrgState=function(){return this.orgState_};h.setOrgState=function(a){this.orgState_=a};h.getOriginatingField=function(){return this.originatingField_};var Ytc=function(a,b){a.originatingField_=b;return a};h=c8d.prototype;h.getEmailSecurityInfo=function(){return this.emailSecurityInfo_};h.setEmailSecurityInfo=function(a){this.emailSecurityInfo_=a};h.getReachabilityInfo=function(){return this.reachabilityInfo_};
h.setReachabilityInfo=function(a){this.reachabilityInfo_=a};h.getExtendedData=function(){return this.extendedData_};h.setExtendedData=function(a){this.extendedData_=a};var Yv=function(a){return new c8d(a)};var zqc=function(a,b,c,d){this.internalId=a;this.displayNameOverride=b;this.forceDisplayNameOverride=c;a=Yv(this.internalId).setDataSource(3);this.internalResult=zs(yqc(0,[a]));this.internalSelectionToken=new Z7d(this.internalId,this.displayNameOverride,this.forceDisplayNameOverride,d)};h=zqc.prototype;h.id=function(){return this.internalId};h.selectionToken=function(){return this.internalSelectionToken};h.result=function(){return this.internalResult};h.getDisplayNameOverride=function(){return this.displayNameOverride};
h.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};h.getDisplayNameWithOverrideApplied=function(){return this.displayNameOverride};h.isPlaceholder=function(){return!0};var d8d=function(a,b,c,d,e,f){this.delegate=new h$(a,b,c,d,e,[2],f);this.id=b.getPrimaryTarget().getId();this.selection=Aqc(Lv)};Y(d8d,R9);d8d.prototype.getAllIds=function(){return[this.id]};d8d.prototype.getSelection=function(){return this.selection};var e8d=function(a,b,c,d,e,f,g,k){d=d===void 0?"":d;e=e===void 0?!1:e;return qv(sv(qv(sv(qv(sv(qv(rv(),'<div role="option" class="'+mv("peoplekitComponentsResultlistitemResultListItem")+" "+mv(d)+'" id="'+mv(a)+'" peoplekit-id="'+mv(a)+'" aria-disabled="'+mv(e)+'" aria-selected="false"><div class="'+mv("peoplekitComponentsResultlistitemResultListItemRow")+'"><div class="'+mv("peoplekitComponentsResultlistitemLeft")+'" data-hovercard-id="'+mv(b)+'" data-name="'+mv(tv(c))+'">'),nv(f)),'</div><div class="'+
mv("peoplekitComponentsResultlistitemCenter")+'">'),nv(g)),'</div><div class="'+mv("peoplekitComponentsResultlistitemRight")+'" peoplekit-id="'+mv("QChpEe")+'">'),nv(k)),'</div></div><div peoplekit-id="'+mv("Z306Oe")+'" class="'+mv("peoplekitComponentsResultlistitemOutOfOffice")+'"></div></div>')},f8d=function(a,b,c){return pv('<div class="'+mv("peoplekitComponentsResultlistitemLabelContainer")+'"><div class="'+mv("peoplekitComponentsResultlistitemLabel")+" "+mv("peoplekitComponentsResultlistitemLabelRow")+
'"><div class="'+mv("peoplekitComponentsResultlistitemLabelText")+'" data-name="'+mv(tv(a))+'" translate="no">'+ssc(tv(a))+'</div><div peoplekit-id="'+mv("x00ATb")+'" class="'+mv("peoplekitComponentsResultlistitemTags")+'"></div></div>'+(b?'<div class="'+mv("peoplekitComponentsResultlistitemSublabel")+" "+mv("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+mv("peoplekitComponentsResultlistitemSublabelText")+'" data-name="'+mv(tv(a))+'"'+(c?"":' translate="no"')+">"+ssc(tv(b))+"</div></div>":
"")+"</div>")},g8d=function(a){return qv(sv(qv(rv(),'<div class="'+mv("peoplekitComponentsResultlistitemAvatar")+'"><div class="'+mv("peoplekitComponentsResultlistitemAvatarContainer")+'" peoplekit-id="'+mv("d6MZcd")+'"></div>'),M9(a)?nv(a):""),"</div>")},h8d=function(){var a=rv(),b=qv(rv(),'<div class="'+mv("peoplekitComponentsResultlistitemAvatarSelectionOverlay")+'"><div class="'+mv("peoplekitComponentsResultlistitemWhiteCheck")+'">');var c=pv('<svg viewBox="0 0 24 24" class="'+(mv("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 sv(a,g8d(qv(sv(b,c),"</div></div>")))},i8d=function(){return pv('<img class="'+mv("peoplekitComponentsResultlistitemMetaIcon")+'" peoplekit-id="'+mv("SC3Htd")+'" alt="" src=""/>')};var j8d=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass,g=a.disableReason;a=a.allowSublabelTranslation;return sv(rv(),e8d(b,c,d,"isDisabled "+f,!0,sv(rv(),g8d()),sv(rv(),f8d(d,e,a)),qv(sv(qv(rv(),'<div class="'+mv("peoplekitComponentsResultlistitemDisabledDisableReasonContainer")+'">'),nv(g)),"</div>")))},k8d=function(){var a=rv(),b='<div class="'+mv("peoplekitComponentsResultlistitemDisabledIconIndicator")+'" aria-label="';a=qv(a,b+mv(". Already selected")+'">');b=
pv('<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 0 24 24" width="18px" class="'+(mv("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>'));return qv(sv(a,b),"</div>")};var Cqc=function(a){this.delegate=a;var b=this;this.eventHandler=Au(this);this.eventHandler.listen(this.getRoot(),"click",function(c){b.onClick(c)})};Y(Cqc,R9);Cqc.prototype.onClick=function(){this.toggleSelection()};var Eqc=function(a,b,c,d){this.internalResult=a;this.displayNameOverride=b;this.forceDisplayNameOverride=c;a=this.internalResult.getTargetList()[0];if(!a)throw new RangeError("Sg");this.target=a;d=d||this.target.getLoggingToken();a=this.target.getId();this.internalSelectionToken=new Z7d(a,this.displayNameOverride,this.forceDisplayNameOverride,d)};h=Eqc.prototype;h.id=function(){return this.target.getId()};h.selectionToken=function(){return this.internalSelectionToken};h.result=function(){return this.internalResult};
h.getDisplayNameOverride=function(){return this.displayNameOverride};h.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};h.getDisplayNameWithOverrideApplied=function(){return this.forceDisplayNameOverride?this.displayNameOverride:this.displayNameOverride||this.internalResult.getDisplayName()};h.isPlaceholder=function(){return!1};var l8d=function(a){this.groupLoggingToken=a.getPrimaryTarget().getLoggingToken();this.explodedMembers=a.getMemberList().map(function(b){return Fqc(b)})};l8d.prototype.getLoggingToken=function(){return this.groupLoggingToken};var m8d=function(a,b,c,d,e,f,g){this.delegate=new h$(a,b,d,e,f,[],g);this.root=a;this.result=b;this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=Aqc(Lv)};Y(m8d,R9);m8d.prototype.getAllIds=function(){return[this.id]};m8d.prototype.toggleSelection=function(){var a=new l8d(this.result);this.selectionsState.selectExplodingGroup(a,1);this.root.dispatchEvent(aoc("pcw-select",this.root))};m8d.prototype.getSelection=function(){return this.selection};var n8d=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return sv(rv(),e8d(b,c,d,f,void 0,sv(rv(),g8d()),sv(rv(),f8d(d,e,a)),sv(rv(),i8d())))};var p8d=function(a,b){this.delegate=a;var c=this;this.selectionsState=b;this.id=a.getAllIds()[0];b.get(this.id)&&o8d(this,this.getSelection());this.onDeselectionCallback=function(d){d.id().equals(c.id)&&(c.getRoot().classList.remove("isSelected"),c.getRoot().setAttribute("aria-selected","false"))};this.onSelectionCallback=function(d){o8d(c,d)};i$(this.selectionsState,this.onDeselectionCallback);j$(this.selectionsState,this.onSelectionCallback)};Y(p8d,R9);
p8d.prototype.toggleSelection=function(){if(this.selectionsState.get(this.id)){var a=this.getRoot();a=aoc("pcw-deselect",a)}else a=this.getRoot(),a=aoc("pcw-select",a);this.getRoot().dispatchEvent(a);this.selectionsState.toggle(this.getSelection(),1)};var o8d=function(a,b){b.id().equals(a.id)&&(a.getRoot().classList.add("isSelected"),a.getRoot().setAttribute("aria-selected","true"))};p8d.prototype.dispose=function(){this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback)};var q8d=function(a,b,c,d,e,f,g,k){this.delegate=new h$(a,b,d,e,f,[2],k);this.selectionsState=c;this.clientConfig=g;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||Fqc(b,b.getDisplayName())};Y(q8d,R9);q8d.prototype.onContextMenu=function(a,b){Fi(this.clientConfig.internal,7)&&a.preventDefault();return R9.prototype.onContextMenu.call(this,a,b)};q8d.prototype.getAllIds=function(){return[this.id]};q8d.prototype.getSelection=function(){return this.selection};var r8d=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return sv(rv(),e8d(b,c,d,f,void 0,sv(rv(),h8d()),sv(rv(),f8d(d,e,a)),sv(rv(),i8d())))};var s8d=function(a,b,c,d,e,f,g,k){this.delegate=new h$(a,b,d,e,f,[],k);this.selectionsState=c;this.clientConfig=g;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||Fqc(b)};Y(s8d,R9);s8d.prototype.onContextMenu=function(a,b){Fi(this.clientConfig.internal,7)&&a.preventDefault();return R9.prototype.onContextMenu.call(this,a,b)};s8d.prototype.getAllIds=function(){return[this.id]};s8d.prototype.getSelection=function(){return this.selection};var t8d=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return sv(rv(),e8d(b,c,d,f,void 0,sv(rv(),h8d()),sv(rv(),f8d(d,e,a)),sv(rv(),i8d())))};Nu.addCoreFactory({type:0,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.resultCustomizationConfig,e=a.appearanceConfig,f=a.selectionsState,g=a.clientConfig,k=a.popupsContainer;a=sqc(a);var l=vu(r8d,a);Lu({element:l,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[Gqc(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var r=wu(l,"d6MZcd"),w=Ipc(e.getDensity()),x;d=(x=d.backupAvatarUrl)!=null?x:"";e=xu(r,a.photos,w,w,e,d);b=new q8d(l,b,f,c,a.tags,
e,g,k);return Dqc(new p8d(b,f))},shouldCreate:function(){return!0}},configurationKey:void 0});
Nu.addCoreFactory({type:1,factory:{create:function(a){var b=Bqc(a),c=a.result,d=a.resultConfig,e=a.appearanceConfig,f=a.resultCustomizationConfig,g=a.popupsContainer,k=c.getPrimaryTarget().getId();a=Bv(k)||bwd(k)?wqc(a):sqc(a);k=Object;var l=k.assign;a:switch(b){case 1:var r=k8d();break a;case 2:r=f.showSelectedIndicatorForDisabled?k8d():pv("");break a;default:r='<div class="'+mv("peoplekitComponentsResultlistitemDisabledTextIndicator")+'">',r=pv(r+"DISABLED</div>")}k=vu(j8d,l.call(k,{},a,{disableReason:r}));
(b===1||b===2&&f.showSelectedIndicatorForDisabled)&&k.setAttribute("aria-selected","true");b=wu(k,"d6MZcd");l=Ipc(e.getDensity());var w;f=(w=f.backupAvatarUrl)!=null?w:"";e=xu(b,a.photos,l,l,e,f);return new d8d(k,c,d,a.tags,e,g)},shouldCreate:function(a){return Bqc(a)!==0}},configurationKey:void 0});
Nu.addCoreFactory({type:2,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.appearanceConfig,e=a.resultCustomizationConfig,f=a.clientConfig,g=a.selectionsState,k=a.popupsContainer;a=wqc(a);var l=vu(t8d,a);Lu({element:l,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[Gqc(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var r=wu(l,"d6MZcd"),w=Ipc(d.getDensity()),x;e=(x=e.backupAvatarUrl)!=null?x:"";d=xu(r,a.photos,w,w,d,e);b=new s8d(l,b,g,c,a.tags,
d,f,k);return Dqc(new p8d(b,g))},shouldCreate:function(a){return Bv(a.result.getPrimaryTarget().getId())}},configurationKey:void 0});
Nu.addCoreFactory({type:3,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.resultCustomizationConfig,e=a.appearanceConfig,f=a.selectionsState,g=a.popupsContainer;a=wqc(a);var k=vu(n8d,a);Lu({element:k,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[Gqc(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var l=wu(k,"d6MZcd"),r=Ipc(e.getDensity()),w;d=(w=d.backupAvatarUrl)!=null?w:"";e=xu(l,a.photos,r,r,e,d);return Dqc(new m8d(k,b,f,c,a.tags,e,g))},
shouldCreate:function(a){return bwd(a.result.getPrimaryTarget().getId())}},configurationKey:void 0});var Hqc=function(a,b,c,d,e,f,g,k,l){this.selectionsState=a;this.resultConfig=b;this.injectableResultConfig=c;this.appearanceConfig=d;this.clientConfig=e;this.isRightToLeft=f;this.interactions=g;this.ariaParent=k;this.popupsContainer=l};
Hqc.prototype.create=function(a,b){var c=this.selectionsState,d=this.resultConfig,e=this.appearanceConfig,f=this.clientConfig,g=this.isRightToLeft(),k=this.interactions,l=this.injectableResultConfig,r=this.resultConfig.getResultCustomizationCallback()(a,b);l=m(l.resultCustomizationDecorators);for(var w=l.next();!w.done;w=l.next())w=w.value,w=w(r,a,b),r=Object.assign({},r,w);a={result:a,selectionsState:c,resultConfig:d,appearanceConfig:e,clientConfig:f,isRightToLeft:g,interactions:k,resultCustomizationConfig:r,
ariaParent:this.ariaParent,popupsContainer:this.popupsContainer,contextMenuConfigurator:this.injectableResultConfig.contextMenuConfigurator};b=znc(this.clientConfig);return Toc(Nu,b).create(a)};var Jqc=function(a,b,c,d,e,f,g,k,l,r,w){var x=this;this.list=a;this.resultConfig=b;this.injectableResultConfig=c;this.appearanceConfig=d;this.clientConfig=e;this.selectionsState=f;this.interactions=g;this.ariaParent=l;this.popupsContainer=r;this.grouping=w;this.navigatable=ipc(new l6d({shouldWrap:!0}));this.intelligentComponentCollection=k.create();this.sectionController=Hpc(this.list,this.navigatable,this.intelligentComponentCollection,this.appearanceConfig,Iqc(this.selectionsState,this.resultConfig,
this.injectableResultConfig,this.appearanceConfig,this.clientConfig,function(){return Du(x.list.getRoot())},this.interactions,this.ariaParent,this.popupsContainer),this.grouping)};h=Jqc.prototype;h.append=function(a,b){this.sectionController.append(a,b)};h.clear=function(){this.sectionController.clear();this.popupsContainer.clear()};h.reset=function(a){this.sectionController.reset(a)};h.getNavigatable=function(){return this.navigatable};h.getResultListItems=function(){return this.sectionController.getItems()};
h.done=function(){this.sectionController.done()};var Sqc=function(a,b,c){this.delegate=a;this.interactions=b;this.health=c};h=Sqc.prototype;h.append=function(a,b){try{for(var c=m(a),d=c.next();!d.done;d=c.next()){var e=d.value;this.delegate.append([e],b);this.interactions.display(e)}}catch(f){throw this.health.createError(3,Zu(f)),f;}};h.clear=function(){try{this.delegate.clear()}catch(a){throw this.health.createError(4,Zu(a)),a;}};h.reset=function(a){try{this.delegate.reset(a)}catch(b){throw this.health.createError(5,Zu(b)),b;}};
h.getNavigatable=function(){return this.delegate.getNavigatable()};h.getResultListItems=function(){return this.delegate.getResultListItems()};h.done=function(){this.delegate.done()};var Rqc=function(a){a=a.header;return pv('<div peoplekit-id="'+mv("aittld")+'">'+(a.length>0?'<div class="'+mv("peoplekitUiResultlistHeader")+'">'+nv(a)+"</div>":"")+'<div peoplekit-id="'+mv("tjneg")+'"></div></div>')};var Atc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Atc,W);var Btc=new vA(417869137,Ov,Atc);var u8d=function(){return"Google makes suggestions based on your interactions."};var v8d=function(a){this.labels=a;this.isSuggest=!1;this.hiddenSuggestionsLabel=pv("Hidden suggestions").toString();a={infoType:1,infoDialogHeader:"How suggestions work",learnMoreMessage:u8d(),learnMoreUrl:Lqc(),learnMoreLinkText:"Learn more about suggestions."};var b={};this.groupConfigs=(b.CUSTOM={headerText:this.labels.custom},b.SUGGEST={headerText:this.labels.suggest,infoGroupConfig:a},b.SEARCH={headerText:this.labels.search,infoGroupConfig:a},b.HIDDEN={headerText:this.hiddenSuggestionsLabel,
collapsibleGroupConfig:{isInitiallyCollapsed:!0}},b)};v8d.prototype.getGroupId=function(a){if(a.getResultType()===7)var b="CUSTOM";else{if(this.isSuggest)a="SUGGEST";else{var c;a=((b=a.getExtendedData())==null?void 0:(c=b.getExtension(Btc))==null?void 0:vp(c,1))===1?"HIDDEN":"SEARCH"}b=a}return b};v8d.prototype.reset=function(a){this.isSuggest=!a.trim()};var Mqc=[v8d];var Oqc=function(){this.isSuggest=!1;var a={infoType:1,infoDialogHeader:"How suggestions work",learnMoreMessage:u8d(),learnMoreUrl:Lqc(),learnMoreLinkText:"Learn more about suggestions."},b={};this.groupConfigs=(b.SUGGEST={headerText:"Suggestions",infoGroupConfig:a},b.SEARCH={headerText:"Search Results",infoGroupConfig:a},b)};Oqc.prototype.getGroupId=function(a){return a.getResultType()===7?"CUSTOM":this.isSuggest?"SUGGEST":"SEARCH"};Oqc.prototype.reset=function(a){this.isSuggest=!a.trim()};var Pqc=function(a){this.label=a;a={};this.groupConfigs=(a.directory={headerText:this.label},a.non_directory={},a)};Pqc.prototype.getGroupId=function(a){return a.getTargetList().some(function(b){return b.getDataSource()!==2})?"non_directory":"directory"};Pqc.prototype.reset=function(){};var Qqc=function(a){this.label=a;a={};this.groupConfigs=(a.suggestions={headerText:this.label},a)};Qqc.prototype.getGroupId=function(a){return a.getResultType()!==7?"suggestions":"non_suggestions"};Qqc.prototype.reset=function(){};var $u=function(a,b){this.ariaParent=a;this.delegate=b};h=$u.prototype;h.update=function(){var a=this.getSpotlitItem();a?(a=a.getRoot(),mU(this.ariaParent,a)):mU(this.ariaParent,null)};h.prev=function(a){a=this.delegate.prev(a);this.update();return a};h.next=function(a){a=this.delegate.next(a);this.update();return a};h.size=function(){return this.delegate.size()};h.goToItem=function(a,b){a=this.delegate.goToItem(a,b);this.update();return a};
h.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);this.update();return a};h.activateAll=function(){this.delegate.activateAll()};h.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};h.getActiveItems=function(){return this.delegate.getActiveItems()};h.getItem=function(a){return this.delegate.getItem(a)};h.getIndexOf=function(a){return this.delegate.getIndexOf(a)};h.clear=function(){this.delegate.clear();this.update()};h.reset=function(){this.delegate.reset();this.update()};
h.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};h.onKeyDown=function(a){this.delegate.onKeyDown(a)};h.onContextMenu=function(a,b){var c=this;this.delegate.onContextMenu(a,function(){c.update();b()})};h.remove=function(a,b){this.delegate.remove(a,b);this.update()};h.insert=function(a,b,c){this.delegate.insert(a,b,c);this.update()};var w8d=function(a,b){$u.call(this,a,b)};Y(w8d,$u);w8d.prototype.tabUpdate=function(){var a=this.getSpotlitItem();if(a){a=a.getRoot();var b=this.ariaParent;var c=Jrd(b,"activedescendant");b=Gu(b).getElementById(c);(c=a.querySelector('[id="'+(a.id+'-2ab"]')))?mU(this.ariaParent,b===c?a:c):Wqc(a)&&(a=Array.from(a.querySelectorAll('[class~="TdcT2c"]')),b=b?a.indexOf(b):-1,b!==-1&&mU(this.ariaParent,a[(b+1)%a.length]))}};
w8d.prototype.onKeyDown=function(a){a.event.keyCode===9&&this.tabUpdate();$u.prototype.onKeyDown.call(this,a)};w8d.prototype.next=function(a){a=$u.prototype.next.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),Wqc(b)&&x8d(this,b));return a};w8d.prototype.prev=function(a){a=$u.prototype.prev.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),Wqc(b)&&x8d(this,b));return a};var x8d=function(a,b){(b=b.querySelector('[class~="TdcT2c"]'))&&mU(a.ariaParent,b)};var yv=function(a){this.event=a;this.hasStoppedPropagationInternal=!1};yv.prototype.stopPropagation=function(){this.event.stopPropagation();this.hasStoppedPropagationInternal=!0};yv.prototype.preventDefault=function(){this.event.preventDefault()};var Xqc=function(a,b){this.input=this.navigatable=null;this.prevKeyCode=a.getPrevKeyCode();this.nextKeyCode=a.getNextKeyCode();this.navigatePastEndCallback=a.navigatePastEnd||function(){};this.options=Object.assign({},{shouldReactToHomeEnd:!0},b);this.eventHandler=Au(this)};h=Xqc.prototype;
h.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 yv(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new yv(d))});this.eventHandler.listen(this.input,"blur",function(d){return c.onBlur(d)})};h.detach=function(){this.eventHandler.removeAll();this.navigatable=this.input=null};
h.onKeyDown=function(a){if(this.navigatable&&(this.navigatable.onKeyDown(a),!a.hasStoppedPropagationInternal))switch(a.event.keyCode){case this.nextKeyCode:this.navigatable.next(0)||this.navigatePastEndCallback();a.stopPropagation();a.preventDefault();break;case this.prevKeyCode:this.navigatable.prev(0);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())}};h.onClick=function(a,b){if(!this.navigatable)return!1;this.navigatable.goToItem(a,0);b.stopPropagation();return!0};h.onContextMenu=function(a){if(this.navigatable)this.navigatable.onContextMenu(a,function(){})};h.reset=function(){this.navigatable&&this.navigatable.reset()};h.onBlur=function(){this.reset()};var y8d=new HB;y8d.altKey=!0;y8d.keyCode=39;(new HB).keyCode=13;var z8d=function(){FB.call(this)};Y(z8d,FB);z8d.prototype.init=function(){};new z8d;var A8d=ra.URL,B8d;try{new A8d("http://example.com"),B8d=!0}catch(a){B8d=!1}
var C8d=B8d,D8d=function(a){var b=function(c){return encodeURIComponent(c).replace(/[!()~']|(%20)/g,function(d){return{"!":"%21","(":"%28",")":"%29","%20":"+","'":"%27","~":"%7E"}[d]})};return Array.from(a,function(c){return b(c[0])+"="+b(c[1])}).join("&")},F8d=function(a){var b=Vs(document,"A");try{Dra(b,new xh(a));var c=b.protocol}catch(e){throw Error("Wg`"+a);}if(c===""||c===":"||c[c.length-1]!=":")throw Error("Wg`"+a);if(!E8d.has(c))throw Error("Wg`"+a);if(!b.hostname)throw Error("Wg`"+a);var d=
b.href;a={href:d,protocol:b.protocol,username:"",password:"",hostname:b.hostname,pathname:"/"+b.pathname,search:b.search,hash:b.hash,toString:function(){return d}};E8d.get(b.protocol)===b.port?(a.host=a.hostname,a.port="",a.origin=a.protocol+"//"+a.hostname):(a.host=b.host,a.port=b.port,a.origin=a.protocol+"//"+a.hostname+":"+a.port);return a},G8d=function(a){if(C8d){try{var b=new A8d(a)}catch(d){throw Error("Wg`"+a);}var c=E8d.get(b.protocol);if(!c)throw Error("Wg`"+a);if(!b.hostname)throw Error("Wg`"+
a);b.origin=="null"&&(a={href:b.href,protocol:b.protocol,username:"",password:"",host:b.host,port:b.port,hostname:b.hostname,pathname:b.pathname,search:b.search,hash:b.hash},a.origin=c===b.port?b.protocol+"//"+b.hostname:b.protocol+"//"+b.hostname+":"+b.port,b=a)}else b=F8d(a);return b},E8d=new Map([["http:","80"],["https:","443"],["ws:","80"],["wss:","443"],["ftp:","21"]]),H8d=function(a){var b=G8d("https://contacts.google.com"),c={};b&&(c.protocol=b.protocol,c.username=b.username,c.password=b.password,
c.hostname=b.hostname,c.port=b.port,c.pathname=b.pathname,c.search=b.search,c.hash=b.hash);Object.assign(c,a);if(c.port&&c.port[0]===":")throw Error("Xg");c.hash&&c.hash[0]!="#"&&(c.hash="#"+c.hash);a.search?a.search[0]!="?"&&(c.search="?"+a.search):a.searchParams&&(c.search="?"+D8d(a.searchParams),c.searchParams=void 0);a="";c.protocol&&(a+=c.protocol+"//");b=c.username;var d=c.password;a=a+(b&&d?b+":"+d+"@":b?b+"@":d?":"+d+"@":"")+(c.hostname||"");c.port&&(a+=":"+c.port);a+=c.pathname||"";a+=c.search||
"";a+=c.hash||"";return G8d(a)};var kw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kw,W);var k$=function(a,b){return Oi(a,1,b)};h=kw.prototype;h.getProvenance=function(){return wi(this,2)};h.setProvenance=function(a){return Gn(this,2,a)};h.getCode=function(){return wi(this,3)};h.setCode=function(a){return Gn(this,3,a)};h.getCodeOrUndefined=function(){return vp(this,3)};var l$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(l$,W);l$.prototype.getSource=function(){return X(this,kw,1)};l$.prototype.setSource=function(a){return Mi(this,kw,1,a)};l$.prototype.hasSource=function(){return xi(this,kw,1)};l$.prototype.getSourceOrUndefined=function(){return ayc(this,kw,1)};var m$=function(a,b){return Gn(a,2,b)},n$=function(a,b){return Gn(a,3,b)};var I8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(I8d,W);h=I8d.prototype;h.getQuery=function(){return ui(this,1)};h.setQuery=function(a){return oj(this,1,a)};h.clearQuery=function(){Hw(this,1)};h.hasQuery=function(){return im(this,1)};h.getIsFirstCallback=function(){return Fi(this,2)};h.setIsFirstCallback=function(a){return Oi(this,2,a)};h.getIsLastCallback=function(){return Fi(this,3)};h.setIsLastCallback=function(a){return Oi(this,3,a)};
h.setCallbackNumber=function(a){return En(this,4,a)};h.getNextPageToken=function(){return ui(this,5)};h.getCode=function(){return wi(this,6,2)};h.setCode=function(a){return Gn(this,6,a)};h.getCodeOrUndefined=function(){return vp(this,6)};h.getCacheState=function(){return X(this,l$,7)};h.setCacheState=function(a){return Mi(this,l$,7,a)};h.hasCacheState=function(){return xi(this,l$,7)};var arc=function(a,b,c,d,e,f,g,k){this.root=a;this.navigationInput=b;this.resultList=c;this.session=d;this.health=e;this.config=f;this.noResultsMessage=g;this.clientConfig=k;this.attached=!1;this.resultsLoadingCompleteListeners=[];this.inputFocusListeners=[];this.inputBlurListeners=[];this.navigatable=new w8d(this.navigationInput,this.resultList.getNavigatable());this.navigatable.setSecondaryEventTargets([this]);this.navigationEventHandler=Yqc({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}},
{shouldReactToHomeEnd:!1});this.eventHandler=Au(this);Qoc(this.root,0)};h=arc.prototype;
h.search=function(a,b,c,d){var e=this;this.currentSearchState={query:a,anchor:b,showSuggestions:c,listener:d};this.resultList.reset(a);this.resultList.clear();this.root.classList.remove("noResults");this.showLoadingIndicator();Qoc(this.root,1);if(a){var f=J8d(this.health);f.start();this.session.search(a,function(k){e.update(k,d,f,!0)})}else if(c){var g=J8d(this.health);g.start();this.session.suggest(function(k){e.update(k,d,g,!1)})}};h.focus=function(){var a;(a=this.navigationInput)==null||a.focus()};
h.hasFocus=function(){return this.navigationInput===this.navigationInput.ownerDocument.activeElement};h.refresh=function(){if(this.currentSearchState){var a=this.currentSearchState;this.search(a.query,a.anchor,a.showSuggestions,a.listener)}return!!this.currentSearchState};
h.attach=function(){var a=this;this.attached||(this.attached=!0,this.navigationEventHandler.attach(this.navigationInput,this.navigatable),this.eventHandler.listen(this.root,"mousedown",function(b){b.preventDefault();b.stopPropagation()}),Fi(this.clientConfig.internal,9)&&this.eventHandler.listen(this.root,"contextmenu",function(b){var c=a.navigatable.getItem(b.target);c&&(a.navigatable.getSpotlitItem()!==c&&a.navigatable.goToItem(c,0),a.navigatable.onContextMenu(new yv(b),function(){}))}),this.eventHandler.listen(this.navigationInput,
"focus",function(b){b={event:b};for(var c=m(a.inputFocusListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)}),this.eventHandler.listen(this.navigationInput,"blur",function(b){b={event:b};for(var c=m(a.inputBlurListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)}))};h.detach=function(){this.attached=!1;this.navigatable.reset();this.navigationEventHandler.detach();this.eventHandler.removeAll();this.session.cancel();Qoc(this.root,0)};h.isShown=function(){return!0};h.canHide=function(){return!1};
h.dispose=function(){this.detach();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};
h.update=function(a,b,c,d){this.hideLoadingIndicator();var e=a.getResults();a=a.getMetadata();var f=a.getQuery(),g=a.getIsLastCallback();this.resultList.append(e,{query:f});g&&this.resultList.done();e=this.resultList.getResultListItems();this.attach();var k=!1;e.length>0||this.navigatable.size()?(k=!0,this.root.classList.remove("noResults")):g&&(k=this.noResultsMessage.update({query:f}),this.root.classList.add("noResults"));b({count:e.length,hasContent:k});(d&&this.config.getAutoActivateFirstSearchResult()||
!d&&this.config.getAutoActivateFirstSuggestion())&&!this.navigatable.getSpotlitItem()&&(e.length?this.navigatable.goToItem(e[0],0):this.navigatable.size()&&this.navigatable.goToIndex(0,0));g?(Qoc(this.root,a.getCode()===0?2:3,a.getCode()),b={query:f,resultCount:e.length,results:e.map(function(l){return l.getSelection().result()})},K8d(this,b)):Qoc(this.root,4);c.stop()};
h.onKeyDown=function(a){var b=a.event.keyCode===9&&!a.event.shiftKey,c=a.event.keyCode===13;if(Fi(this.clientConfig.internal,9)&&Uqc(a)){if(a.preventDefault(),a.stopPropagation(),this.navigatable.getSpotlitItem())this.navigatable.onContextMenu(a,function(){})}else if(c||b&&this.config.getUseTabForResultSelection()){if(b=this.navigatable.getActiveItems(),b.length){b=m(b);for(c=b.next();!c.done;c=b.next())c.value.toggleSelection();a.preventDefault();a.stopPropagation()}}else a.event.keyCode!==40||this.navigatable.getSpotlitItem()||
(b=this.resultList.getResultListItems(),b.length&&(this.navigatable.goToItem(b[0],0),a.preventDefault(),a.stopPropagation()))};h.getNavigatable=function(){return this.navigatable};h.getRoot=function(){return this.root};var K8d=function(a,b){a=m(a.resultsLoadingCompleteListeners);for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};arc.prototype.showLoadingIndicator=function(){this.getRoot().classList.add("isLoading")};arc.prototype.hideLoadingIndicator=function(){this.getRoot().classList.remove("isLoading")};var L8d=function(a){return qv(sv(qv(rv(),'<div tabindex="-1" class="'+mv("peoplekitComponentsScrollboxScrollbar")+'" peoplekit-id="'+mv("I8ejUe")+'">'),nv(a)),"</div>")};var frc=function(){var a=qv(sv(qv(rv(),'<div class="'+mv("peoplekitComponentsAutocompleteInlineContainer")+'" peoplekit-id="'+mv("yDHfq")+'"><div class="'+mv("peoplekitComponentsAutocompleteInlineListContainer")+'">'),L8d(pv('<div peoplekit-id="'+mv("tjneg")+'"></div>'))),'</div><div class="'+mv("peoplekitComponentsAutocompleteInlineCircularProgress")+'">');var b='<div class="'+mv("peoplekitComponentsCircularprogressCircularProgress")+(" "+mv("isActive"))+'" data-loadingmessage="'+mv("Loading...")+
'" data-active="true"'+(M9()?x5d(K9(void 0,g5d)?(void 0).getContent():H5d()):"")+'><div class="'+mv("peoplekitComponentsCircularprogressMessageContainer")+'" aria-live="polite" jsname="'+mv("vyyg5")+'">'+nv("Loading...")+'</div><div class="'+mv("peoplekitComponentsCircularprogressCircularProgressContainer")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+mv("peoplekitComponentsCircularprogressColorOne")+" "+mv("exportColorOne")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircleClipper")+
" "+mv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircle")+" "+mv("exportCircle")+'"></div></div><div class="'+mv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircle")+" "+mv("exportCircle")+'"></div></div><div class="'+mv("peoplekitComponentsCircularprogressCircleClipper")+" "+mv("peoplekitComponentsCircularprogressRight")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircle")+
" "+mv("exportCircle")+'"></div></div></div><div class="'+mv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+mv("peoplekitComponentsCircularprogressColorTwo")+" "+mv("exportColorTwo")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircleClipper")+" "+mv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircle")+" "+mv("exportCircle")+'"></div></div><div class="'+mv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
mv("peoplekitComponentsCircularprogressCircle")+" "+mv("exportCircle")+'"></div></div><div class="'+mv("peoplekitComponentsCircularprogressCircleClipper")+" "+mv("peoplekitComponentsCircularprogressRight")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircle")+" "+mv("exportCircle")+'"></div></div></div><div class="'+mv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+mv("peoplekitComponentsCircularprogressColorThree")+" "+mv("exportColorThree")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircleClipper")+
" "+mv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircle")+" "+mv("exportCircle")+'"></div></div><div class="'+mv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircle")+" "+mv("exportCircle")+'"></div></div><div class="'+mv("peoplekitComponentsCircularprogressCircleClipper")+" "+mv("peoplekitComponentsCircularprogressRight")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircle")+
" "+mv("exportCircle")+'"></div></div></div><div class="'+mv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+mv("peoplekitComponentsCircularprogressColorFour")+" "+mv("exportColorFour")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircleClipper")+" "+mv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircle")+" "+mv("exportCircle")+'"></div></div><div class="'+mv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
mv("peoplekitComponentsCircularprogressCircle")+" "+mv("exportCircle")+'"></div></div><div class="'+mv("peoplekitComponentsCircularprogressCircleClipper")+" "+mv("peoplekitComponentsCircularprogressRight")+'"><div class="'+mv("peoplekitComponentsCircularprogressCircle")+" "+mv("exportCircle")+'"></div></div></div></div></div>';b=pv(b);return qv(sv(a,b),'</div><div peoplekit-id="'+mv("i2HSVe")+'"></div></div>')},hrc=function(){return pv('<div class="'+mv("peoplekitComponentsAutocompleteInlineNoResultsContainer")+
'"></div>')};var crc=function(a){a=a||{};var b=a.primaryMessage,c=a.contextMessage,d=a.learnMoreUrl,e=a.urlText;a=a.jsname;a='<div class="'+mv("peoplekitComponentsNoResultsMessageNoResultsMessage")+'"'+(a?' jsname="'+mv(a)+'"':"")+'><p class="'+mv("peoplekitComponentsNoResultsMessageHeader")+'">';a=b?a+nv(b):a+"No results";a+="</p>";if(c||d)a+='<p class="'+mv("peoplekitComponentsNoResultsMessageExplanation")+'">'+(c?nv(c)+(d?" ":""):""),d&&(a+='<a jsname="'+mv("viORvd")+'" class="'+mv("peoplekitComponentsNoResultsMessageLearnMoreLink")+
'" target="_blank" href="'+mv(ov(d))+'">',a=e?a+nv(e):a+"Learn more",a+="</a>"),a+="</p>";return pv(a+"</div>")};var irc=function(a,b){this.parent=a;this.config=b};irc.prototype.update=function(a){this.root&&this.root.remove();a=this.config.display(a);if(!a)return!1;this.root=vu(crc,a);this.parent.appendChild(this.root);return!0};var jrc=function(){};jrc.prototype.update=function(){return!1};var drc=function(){};drc.prototype.update=function(){return!0};var M8d=function(){return pv('<div peoplekit-id="'+mv("i2HSVe")+'"></div>')},N8d=function(a){return pv('<div peoplekit-id="'+mv(a.id)+'"></div>')};var grc=function(a){this.parent=a;this.root=vu(M8d);this.parent.appendChild(this.root)};grc.prototype.get=function(a){if(Enc(this.root,a).length===0){var b=vu(N8d,{id:a});this.root.appendChild(b)}return wu(this.root,a)};grc.prototype.clear=function(){this.root.replaceChildren()};grc.prototype.dispose=function(){this.root.remove()};grc.prototype.getRoot=function(){return this.root};Uoc.addCoreFactory({type:0,factory:{create:function(a){return{injectableResultConfig:a.injectableResultConfig,injectableAutocompleteGrouping:a.injectableAutocompleteGrouping}},shouldCreate:function(){return!0}},configurationKey:void 0});var mrc=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=Aoc(this.root,{moveAboveAnchorIfOffscreen:this.config.getMoveAutocompleteAboveAnchorIfOffscreen()});this.inlineAutocomplete.getNavigatable().setSecondaryEventTargets([this.inlineAutocomplete,this]);this.eventHandler=Au(this);this.onSelectionCallback=function(){f.onSelect()};this.onSelectionAttemptedCallback=function(){f.onSelectAttempt()};
this.attach()};h=mrc.prototype;h.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)})};h.attach=function(){var a=this;j$(this.selectionsState,this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.add(this.onSelectionAttemptedCallback,2);this.eventHandler.listen(this.root,"mouseover",function(b){Date.now()-a.lastShowTime<100&&(b.preventDefault(),b.stopPropagation())})};h.onSelect=function(){this.hide()};
h.onSelectAttempt=function(){this.hide()};h.onKeyDown=function(a){this.isShown()&&a.event.keyCode===27&&(this.hide(),a.preventDefault(),a.stopPropagation())};h.detach=function(){this.hide()};h.isShown=function(){return this.popup.isShown()};h.canHide=function(){return!0};
h.dispose=function(){this.detach();this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.remove(this.onSelectionAttemptedCallback);this.eventHandler.removeAll();this.inlineAutocomplete.dispose();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};h.getNavigatable=function(){return this.inlineAutocomplete.getNavigatable()};h.getRoot=function(){return this.root};h.hasFocus=function(){return this.inlineAutocomplete.hasFocus()};
h.focus=function(){this.inlineAutocomplete.focus()};h.refresh=function(){return this.inlineAutocomplete.refresh()};h.showLoadingIndicator=function(){this.inlineAutocomplete.showLoadingIndicator()};h.hideLoadingIndicator=function(){this.inlineAutocomplete.hideLoadingIndicator()};h.update=function(a){a.hasContent&&this.show()};
h.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("Kg`"+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("Kg`"+c);}}this.root.style.width=jId(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("Kg`"+a);}this.root.style.maxHeight=this.config.getAutocompleteMaxResultsBeforeScroll()*a+"px";this.popup.show(this.anchor)};h.hide=function(){this.popup.hide();this.navigationInput.setAttribute("aria-expanded","false");this.inlineAutocomplete.detach()};var lrc=function(){return pv('<div class="'+mv("peoplekitComponentsAutocompletePopupContainer")+'" peoplekit-id="'+mv("noeiCf")+'" style="display: none;"></div>')};var O8d=function(){this.batches=new Map};O8d.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 orc=function(a,b){this.service=a;this.resolveComponents=b};
orc.prototype.update=function(a){var b=this;a=m([].concat(q(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=m(d.features);for(var e=d.next();!e.done;e=d.next())switch(e.value){case 1:c=c.withWaldo(function(f){P8d(b,f.values,function(g,k,l){l.updateWaldo(k,g)})});break;case 2:c=c.withHubAvailabilityDot(function(f){P8d(b,f.values,function(g,k,l){l.updateHubAvailabilityDot(k,g)})})}c.execute()}}};
var P8d=function(a,b,c){b=m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=d.getLookupId(),f=m(a.resolveComponents(e)),g=f.next();!g.done;g=f.next())c(e,d,g.value)}};var Q8d=new Set([1,3,20]),R8d=function(a){var b=this;this.idToComponent=new Map;this.updater=prc(a,function(c){return b.resolveComponents(c)})};h=R8d.prototype;
h.append=function(a){var b=a.filter(function(f){return f.getAllIds().some(function(g){return Q8d.has(g.getType())})});a=[];b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;c.initializeIntelligence();for(var d=m(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)};
h.remove=function(a){a=m(a);for(var b=a.next(),c={};!b.done;c={component$jscomp$147:void 0},b=a.next()){c.component$jscomp$147=b.value;b=m(c.component$jscomp$147.getAllIds());for(var d=b.next();!d.done;d=b.next()){d=String(d.value);var e=this.idToComponent.get(d);e&&this.idToComponent.set(d,e.filter(function(f){return function(g){return g!==f.component$jscomp$147}}(c)))}}};h.resolveComponents=function(a){return this.idToComponent.get(String(a))||[]};
h.refresh=function(a){var b=new O8d;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.resolveComponents(c);d=m(d);for(var e=d.next();!e.done;e=d.next())b.add(c,e.value.getSupportedIntelligenceFeatures())}this.updater.update(b)};h.clear=function(){this.idToComponent.clear()};var S8d=function(){};S8d.prototype.append=function(){};S8d.prototype.remove=function(){};S8d.prototype.refresh=function(){};S8d.prototype.clear=function(){};var Trc=function(a){this.peopleIntelligence=a};Trc.prototype.create=function(){return this.peopleIntelligence?new R8d(this.peopleIntelligence):new S8d};var T8d=Object.freeze(new Map([[5,1]]));var U8d=function(){this.entryPoint_=0};U8d.prototype.getPeoplekitEntryPoint=function(){return this.entryPoint_};U8d.prototype.setPeoplekitEntryPoint=function(a){this.entryPoint_=a;return this};U8d.prototype.serialize=function(){return[this.entryPoint_].toString()};var V8d=Object.freeze(new U8d);var W8d=function(){this.originator_=0};W8d.prototype.setOriginator=function(a){this.originator_=a;return this};W8d.prototype.getOriginator=function(){return this.originator_};var src=function(a,b,c){var d=this;this.reporter=a.getReporter((new U8d).setPeoplekitEntryPoint(c));j$(b,function(e,f,g){d.select(e,g)},0);i$(b,function(e,f,g){d.deselect(e,g)},0);X8d(b,function(e,f,g,k){d.replace(e,k)},0);Y8d(b,function(e,f){d.selectExplodingGroup(e,f)})};src.prototype.display=function(a){this.reporter.reportDisplay(qrc(a.getTargetList()))};src.prototype.select=function(a,b){a.isPlaceholder()||Z8d(this,av([a]),b)};
src.prototype.selectExplodingGroup=function(a,b){Z8d(this,[a.getLoggingToken()],b)};var Z8d=function(a,b,c){switch(c){case 1:case 12:case 5:a.reporter.reportSelect(b,(new W8d).setOriginator(T8d.get(c)||0));break;case 6:a.reporter.reportExternalSelect(b)}};h=src.prototype;h.deselect=function(a,b){if(!a.isPlaceholder())switch(b){case 7:case 8:case 1:this.reporter.reportDeselect(av([a]))}};h.dismiss=function(a){this.reporter.reportDismiss(av(a))};h.save=function(a){this.reporter.reportSave(av(a))};
h.send=function(a){this.reporter.reportSend(av(a))};h.replace=function(a,b){switch(b){case 5:case 6:this.select(a,b)}};var $8d=function(){this.isBatchingInternal=!1;this.timerId=this.lastBatchTime=0};$8d.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=Hs(function(){b.isBatchingInternal=!1;a()},d>100?0:100)}};$8d.prototype.cancel=function(){ra.clearTimeout(this.timerId);this.isBatchingInternal=!1};var Vrc=function(a,b,c,d,e,f){var g=this;this.root=a;this.autocomplete=b;this.selectionsState=c;this.interactions=d;this.tracker=e;this.config=f;this.selectionChangedListeners=[];this.selectionChangedAutoBatcher=new $8d;j$(this.selectionsState,function(){g.notifySelectionChanged(!1)});i$(this.selectionsState,function(){g.notifySelectionChanged(!0)})};h=Vrc.prototype;
h.search=function(a,b){this.config.getClearSelectionsOnSearch()&&this.selectionsState.clear();var c=!1;this.autocomplete.search(a,b,this.config.getShowSuggestions(),function(d){d.count>0&&!c&&(c=!0)})};h.select=function(a){this.selectionsState.select(a)};h.deselect=function(a){this.selectionsState.deselect(a)};h.isShown=function(){return this.autocomplete.isShown()};h.report=function(a){var b=b===void 0?[]:b;b=b.length?b:this.selectionsState.asArray();rrc(this.interactions,a,b)};h.cancel=function(){this.autocomplete.detach()};
h.dispose=function(){this.tracker.stop();this.selectionChangedListeners.length=0;this.selectionsState.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.autocomplete.dispose()};h.subscribeToSelectionChanged=function(a){this.selectionChangedListeners.push({listener:a,listenToDeselections:!1})};
h.notifySelectionChanged=function(a){var b=this;this.selectionChangedAutoBatcher.call(function(){for(var c=b.selectionsState.asArray(),d=m(b.selectionChangedListeners),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.listener;f=f.listenToDeselections;a&&!f||e(c,a)}})};var Src=function(a){a=a||{};a=a.classes;return pv('<div peoplekit-id="'+mv("nVhUhf")+'"'+(a?' class="'+mv(a)+'"':"")+"></div>")};var a9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(a9d,W);h=a9d.prototype;h.getClientId=function(){return wi(this,1)};h.setClientId=function(a){return Gn(this,1,a)};h.getEntryPoint=function(){return wi(this,5)};h.setEntryPoint=function(a){return Gn(this,5,a)};h.getSocialClient=function(){return X(this,b$,2)};h.setSocialClient=function(a){return Mi(this,b$,2,a)};h.setVersionName=function(a){return oj(this,3,a)};h.getBaselineCl=function(){return pn(this,4)};
h.setBaselineCl=function(a){return vn(this,4,a)};h.hasBaselineCl=function(){return on(this,4)};h.getBaselineClOrUndefined=function(){return Qb(fm(this,4))};h.getComponentFlow=function(){return wi(this,7)};h.setComponentFlow=function(a){return Gn(this,7,a)};var o$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(o$,W);var b9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(b9d,W);b9d.prototype.getLabel=function(){return wi(this,1)};b9d.prototype.setLabel=function(a){return Gn(this,1,a)};b9d.prototype.hasLabel=function(){return jm(this,1)};b9d.prototype.setCause=function(a){Gn(this,2,a)};var c9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(c9d,W);h=c9d.prototype;h.getLabel=function(){return wi(this,1)};h.setLabel=function(a){return Gn(this,1,a)};h.hasLabel=function(){return jm(this,1)};h.getValue=function(){return pn(this,2,mb(1))};h.setValue=function(a){return vn(this,2,a)};h.hasValue=function(){return on(this,2)};var p$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(p$,W);p$.prototype.getLabel=function(){return ui(this,1)};p$.prototype.setLabel=function(a){return oj(this,1,a)};p$.prototype.hasLabel=function(){return im(this,1)};p$.prototype.setCause=function(a){oj(this,2,a)};var q$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(q$,W);q$.prototype.getLabel=function(){return wi(this,1)};q$.prototype.setLabel=function(a){return Gn(this,1,a)};q$.prototype.hasLabel=function(){return jm(this,1)};q$.prototype.setLatencyUsec=function(a){vn(this,2,a)};var d9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(d9d,W);d9d.prototype.getInterfaceType=function(){return wi(this,1)};d9d.prototype.setInterfaceType=function(a){return Gn(this,1,a)};var e9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(e9d,W);h=e9d.prototype;h.getCount=function(){return X(this,c9d,3)};h.getMutableCount=function(){return Ii(this,c9d,3)};h.setCount=function(a){return Mi(this,c9d,3,a)};h.getMutableLatency=function(){return Ii(this,q$,4)};h.setLatency=function(a){Mi(this,q$,4,a)};h.getError=function(){return X(this,p$,5)};h.setError=function(a){Mi(this,p$,5,a)};h.hasError=function(){return xi(this,p$,5)};var f9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(f9d,W);h=f9d.prototype;h.getClientInterface=function(){return X(this,a9d,3)};h.setClientInterface=function(a){return Mi(this,a9d,3,a)};h.getMetadata=function(){return X(this,o$,4)};h.getMutableMetadata=function(){return Ii(this,o$,4)};h.setMetadata=function(a){Mi(this,o$,4,a)};h.hasMetadata=function(){return xi(this,o$,4)};var urc=function(a,b){this.entryPoint=b;this.logContext=Zuc($uc("peoplekit.health").setLogSource(624).setApplication(a.getSocialApplicationOrUndefined()).setEnvironment(0).setVersion("1.0").setBaselineCl(826638166).setEnableClearcut(a.getEnableClearcut()),tqc.getExperimentIds());this.clientId=a.getClientId();this.componentFlow=a.getComponentFlow()};h=urc.prototype;h.getLogContext=function(){return this.logContext};
h.createCountMetric=function(a,b,c){b.source().getMutableCount().setValue(c);return g9d(this,a,b)};h.createStatusMetric=function(){throw Error("vg");};h.createLatencyMetric=function(a,b){b.source().getMutableLatency().setLatencyUsec(u7d(b,"total"));return g9d(this,a,b)};h.createErrorMetric=function(a,b){return g9d(this,a,b)};
var g9d=function(a,b,c){a=(new f9d).setClientInterface((new a9d).setClientId(a.clientId).setSocialClient(b.getSocialClient()).setVersionName(a.getLogContext().getVersionOrUndefined()).setBaselineCl(a.getLogContext().getBaselineClOrUndefined()).setComponentFlow(a.componentFlow).setEntryPoint(a.entryPoint));c=c.source();return Mi(a,e9d,2,c)};var h9d=function(a,b){this.metrics_=a;this.state_=new Z9(b);this.source=b};h9d.prototype.increment=function(a){this.metrics_.count(this.state_,a===void 0?1:a)};var i9d=function(a,b){this.metrics_=a;this.state_=new Z9(b);this.source=b};i9d.prototype.report=function(){this.metrics_.error(this.state_)};var yrc=function(a,b){this.metrics=a;this.userInterfaceType=b};yrc.prototype.createCount=function(a,b){a=j9d(this,a,3);a.getMutableCount().setLabel(b);return new h9d(this.metrics,a)};yrc.prototype.createError=function(a,b,c){a=j9d(this,a,5);Ii(a,b9d,8).setLabel(b).setCause(c);return new i9d(this.metrics,a)};var j9d=function(a,b,c){var d=new e9d;c=Gn(d,1,c);a=(new d9d).setInterfaceType(a.userInterfaceType);b=Gn(a,2,b);return Mi(c,d9d,2,b)};var xrc=function(a){this.trackers=a},J8d=function(a){a=a.trackers;var b=j9d(a,2,4);b.getMutableLatency().setLabel(8);return new I7d(a.metrics,b)};xrc.prototype.createCount=function(a,b){return this.trackers.createCount(b===void 0?0:b,a)};xrc.prototype.createError=function(a,b,c){return this.trackers.createError(c===void 0?0:c,a,b===void 0?0:b)};var r$=function(){this.itemsByPriority=[]};r$.prototype.add=function(a,b){this.itemsByPriority[b]||(this.itemsByPriority[b]=new Set);this.itemsByPriority[b].add(a)};r$.prototype.remove=function(a){for(var b=m(this.itemsByPriority),c=b.next();!c.done;c=b.next())(c=c.value)&&c.delete(a)};r$.prototype.asArray=function(){return this.itemsByPriority.flatMap(function(a){return[].concat(q(a))})};var ev=function(){this.selectionCallbacks=new r$;this.deselectionCallbacks=new r$;this.selectionReplacedCallbacks=new r$;this.selectionAttemptedCallbacks=new r$;this.explodingGroupSelectionCallbacks=new r$;this.selectionsState=[]};
ev.prototype.select=function(a,b,c){b=b===void 0?-1:b;c=c===void 0?0:c;var d=String(a.id());if(this.selectionsState.find(function(e){return d===String(e.id())}))return Arc(a,b,c,this.selectionAttemptedCallbacks.asArray()),!1;b>=0?(this.selectionsState.splice(b,0,a),Arc(a,b,c,this.selectionCallbacks.asArray())):(this.selectionsState.push(a),Arc(a,this.selectionsState.length-1,c,this.selectionCallbacks.asArray()));return!0};
ev.prototype.selectExplodingGroup=function(a,b){b=b===void 0?0:b;var c=this.explodingGroupSelectionCallbacks.asArray(),d;c=m(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;try{e(a,b)}catch(f){d||(d=f)}}if(d)throw d;a=m(a.explodedMembers);for(d=a.next();!d.done;d=a.next())this.select(d.value)};ev.prototype.deselect=function(a,b){b=b===void 0?0:b;var c=String(a.id()),d=this.selectionsState.findIndex(function(e){return c===String(e.id())});d<0||(this.selectionsState.splice(d,1),Arc(a,d,b,this.deselectionCallbacks.asArray()))};
ev.prototype.toggle=function(a,b){b=b===void 0?0:b;var c=String(a.id());if(this.selectionsState.findIndex(function(d){return c===String(d.id())})<0)return this.select(a,-1,b),!0;this.deselect(a,b);return!1};var j$=function(a,b,c){a.selectionCallbacks.add(b,c===void 0?2:c)},i$=function(a,b,c){a.deselectionCallbacks.add(b,c===void 0?2:c)},X8d=function(a,b,c){a.selectionReplacedCallbacks.add(b,c===void 0?2:c)},Y8d=function(a,b){a.explodingGroupSelectionCallbacks.add(b,0)};h=ev.prototype;
h.get=function(a){var b=String(a);return this.selectionsState.find(function(c){return b===String(c.id())})};h.at=function(a){return this.selectionsState[a]};h.replace=function(a,b,c){c=c===void 0?0:c;var d=String(a),e=this.selectionsState.findIndex(function(f){return d===String(f.id())});if(e<0||!a.equals(b.id())&&this.get(b.id()))return!1;this.selectionsState[e]=b;Brc(b,e,a,c,this.selectionReplacedCallbacks.asArray());return!0};
h.pop=function(a){a=a===void 0?0:a;var b=this.selectionsState.pop();if(b)return Arc(b,this.selectionsState.length,a,this.deselectionCallbacks.asArray()),b};h.indexOf=function(a){var b=String(a);return this.selectionsState.findIndex(function(c){return b===String(c.id())})};h.asArray=function(){return this.selectionsState.slice()};h.size=function(){return this.selectionsState.length};h.clear=function(){for(;this.selectionsState.length>0;)this.deselect(this.selectionsState[0])};var k9d=function(a){JC.call(this,a)};Y(k9d,JC);var Crc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Crc,W);h=Crc.prototype;h.getClientId=function(){return wi(this,1)};h.setClientId=function(a){return Gn(this,1,a)};h.getEntryPoint=function(){return wi(this,2)};h.setEntryPoint=function(a){return Gn(this,2,a)};h.getApplication=function(){return wi(this,3)};h.setApplication=function(a){return Gn(this,3,a)};h.getApplicationOrUndefined=function(){return vp(this,3)};h.setVersionName=function(a){return oj(this,4,a)};
h.getBaselineCl=function(){return pn(this,5)};h.setBaselineCl=function(a){return vn(this,5,a)};h.hasBaselineCl=function(){return on(this,5)};h.getBaselineClOrUndefined=function(){return Qb(fm(this,5))};h.getMetadata=function(){return X(this,o$,6)};h.getMutableMetadata=function(){return Ii(this,o$,6)};h.setMetadata=function(a){Mi(this,o$,6,a)};h.hasMetadata=function(){return xi(this,o$,6)};h.setSharekitEntryPoint=function(a){Gn(this,7,a)};
h.getSharekitEntryPointOrUndefined=function(){return vp(this,7)};var Erc=function(a){this.context_=a};Erc.prototype.createNewTag=function(a){return new k9d(a)};Erc.prototype.addEventMetadata=function(a){jLc(a,this.context_.serialize())};var Drc=function(a,b,c,d,e,f,g,k,l,r,w,x,C){e=e===void 0?!1:e;l=l===void 0?!1:l;k||(b=new eD(b,c),d&&(b.destinationUrl=d),f&&(b.backgroundJobDeferrer=f),k=b.build());MC.call(this,a,g||null,k,{expectXidTagComponents:e,backgroundJobDeferrer:f,traverseShadowDom:l},r,w,x);this.clearcut_=k;this.clearcut_.setClientSideLogOnlyForDevelopment(!1);a=this.clearcut_;a.useSendBeaconForFinalFlush=a.isSendBeaconSupported;this.clearcut_.useGetRequestForFinalFlush=!0;C&&this.clearcut_.setProductID(C)};Y(Drc,MC);
Drc.prototype.setClearcutClientInfo=function(a){this.clearcut_.setClearcutClientInfo(a)};Drc.prototype.setBuildLabel=function(a){this.clearcut_.setBuildLabel(a)};Drc.prototype.setClientSideLogOnlyForDevelopment=function(a){this.clearcut_.setClientSideLogOnlyForDevelopment(a)};var l9d=function(a){this.tracker=a};var m9d=function(a,b){this.root=a;this.handler=b;this.eventHandler=new zu(this)};
m9d.prototype.observe=function(a){var b=this;this.observer||(this.observer=new MutationObserver(function(c){c=m(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.type==="childList"){d=m(d.addedNodes);for(var e=d.next();!e.done;e=d.next())e=e.value,e instanceof Element&&(e.querySelectorAll("[jsLog]").length||e.getAttribute("jsLog"))&&b.handler.tracker.logImpressions()}}),this.observer.observe(this.root,{childList:!0,subtree:!0}),this.eventHandler.listen(this.root,a,function(c){b.handler.tracker.logEvent(c.type,
c.target);c.stopPropagation()}))};m9d.prototype.dispose=function(){var a;(a=this.observer)==null||a.disconnect();this.eventHandler.removeAll()};var Hrc=function(a,b){this.root=a;this.tracker=b;this.observer=new m9d(this.root,new l9d(this.tracker))};Hrc.prototype.start=function(a){hLc(this.tracker,this.root);for(var b=m(a),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;NC(this.tracker,c,d)}this.observer.observe([].concat(q(a.keys())))};Hrc.prototype.stop=function(a){this.observer.dispose();a&&(a=this.tracker,a.transport&&a.transport.flush());this.tracker.dispose()};var n9d=function(){this.queryScope_=0;this.targetCount_=1;this.displayNameWithOverrideApplied_=null},o9d=function(a,b){a.displayNameWithOverrideApplied_=b;return a},p9d=function(a,b){a.targetCount_=b;return a};n9d.prototype.getTargetCount=function(){return this.targetCount_};n9d.prototype.getQueryScope=function(){return this.queryScope_};n9d.prototype.setQueryScope=function(a){this.queryScope_=a;return this};n9d.prototype.getDisplayNameWithOverrideApplied=function(){return this.displayNameWithOverrideApplied_};var q9d=function(){this.code_=2;this.cacheState_=new l$;this.similarIds_=[]};h=q9d.prototype;h.getCode=function(){return this.code_};h.getCacheState=function(){return this.cacheState_};h.getSimilarIds=function(){return this.similarIds_};h.setCode=function(a){this.code_=a;return this};h.setCacheState=function(a){this.cacheState_=a;return this};var r9d=function(a,b){this.disambiguationLabel_=a;this.metadata_=b};r9d.prototype.getDisambiguationLabel=function(){return this.disambiguationLabel_};r9d.prototype.getMetadata=function(){return this.metadata_};var atc=function(){this.filter_=null;this.originator_=this.queryScope_=0;this.useOriginalDisplayValue_=!1};h=atc.prototype;h.getFilter=function(){return this.filter_};h.setFilter=function(a){this.filter_=a;return this};h.getQueryScope=function(){return this.queryScope_};h.setQueryScope=function(a){this.queryScope_=a;return this};h.getOriginator=function(){return this.originator_};h.setOriginator=function(a){this.originator_=a;return this};h.getUseOriginalDisplayValue=function(){return this.useOriginalDisplayValue_};
h.setUseOriginalDisplayValue=function(a){this.useOriginalDisplayValue_=a;return this};h.clone=function(){return(new atc).setFilter(this.getFilter()).setOriginator(this.getOriginator()).setQueryScope(this.getQueryScope()).setUseOriginalDisplayValue(this.getUseOriginalDisplayValue())};var s9d=function(){this.isLastCallback_=this.isFirstCallback_=!1;this.notFoundIdList_=[];this.code_=2;this.cacheState_=new l$};h=s9d.prototype;h.getIsFirstCallback=function(){return this.isFirstCallback_};h.getIsLastCallback=function(){return this.isLastCallback_};h.getCode=function(){return this.code_};h.getCacheState=function(){return this.cacheState_};h.setIsFirstCallback=function(a){this.isFirstCallback_=a;return this};h.setIsLastCallback=function(a){this.isLastCallback_=a;return this};
h.setCallbackNumber=function(){return this};h.setCode=function(a){this.code_=a;return this};h.setCacheState=function(a){this.cacheState_=a;return this};var t9d=function(a,b){this.results_=a;this.metadata_=b};t9d.prototype.getResults=function(){return this.results_};t9d.prototype.getMetadata=function(){return this.metadata_};var s$=function(a,b){this.results_=a;this.metadata_=b};s$.prototype.getResults=function(){return this.results_};s$.prototype.getMetadata=function(){return this.metadata_};var u9d={create:function(a,b,c,d,e){e=e===void 0?new dv:e;return Rrc(a,b,c,d,new Y4d,{sessionOptions:e})},createWith:function(a,b,c,d,e){e=e===void 0?{}:e;return Rrc(a,b,c,d,new Y4d,e)},createConfig:function(a){a=a===void 0?new uwd(FW.apiEnv,new vwd(FW.userProfileId)):a;return new h6d(a)}};var v9d=function(){this.warnForExternalSelections=!1;this.allowContactMethodEditing=!0;this.chipCustomizationCallback=function(){return{}}};h=v9d.prototype;h.getWarnForExternalSelections=function(){return this.warnForExternalSelections};h.getAllowDisplayNameEditing=function(){return!1};h.getAllowContactMethodEditing=function(){return this.allowContactMethodEditing};h.setAllowContactMethodEditing=function(a){this.allowContactMethodEditing=a};h.getAllowChipDeletion=function(){return!0};
h.getShouldDisplayExternalSelectionIcon=function(){return!0};h.getAllowChipDragAndDrop=function(){return!0};h.getChipCustomizationCallback=function(){return this.chipCustomizationCallback};h.getAllowChipDisambiguation=function(){return!0};var w9d=function(a){this.entryPoint=0;this.environmentConfig=a;this.appearance=new Knc;this.chip=new v9d;this.chip.setAllowContactMethodEditing(!1);this.useOriginalDisplayValue=!1};h=w9d.prototype;h.setEntryPoint=function(a){this.entryPoint=a};h.getEntryPoint=function(){return this.entryPoint};h.getEnvironmentConfig=function(){return this.environmentConfig};h.getUseOriginalDisplayValue=function(){return this.useOriginalDisplayValue};
h.setUseOriginalDisplayValue=function(a){this.useOriginalDisplayValue=a};h.getWarnForExternalSelections=function(){return this.chip.getWarnForExternalSelections()};h.getAllowDisplayNameEditing=function(){return this.chip.getAllowDisplayNameEditing()};h.getAllowContactMethodEditing=function(){return this.chip.getAllowContactMethodEditing()};h.setAllowContactMethodEditing=function(a){this.chip.setAllowContactMethodEditing(a)};h.getAllowChipDeletion=function(){return this.chip.getAllowChipDeletion()};
h.getShouldDisplayExternalSelectionIcon=function(){return this.chip.getShouldDisplayExternalSelectionIcon()};h.getAllowChipDragAndDrop=function(){return this.chip.getAllowChipDragAndDrop()};h.getChipCustomizationCallback=function(){return this.chip.getChipCustomizationCallback()};h.getAllowChipDisambiguation=function(){return this.chip.getAllowChipDisambiguation()};h.getDensity=function(){return this.appearance.getDensity()};h.setDensity=function(a){this.appearance.setDensity(a)};h.getTheme=function(){return this.appearance.getTheme()};
h.setTheme=function(a){this.appearance.setTheme(a)};h.getStyle=function(){return this.appearance.getStyle()};h.setStyle=function(a){this.appearance.setStyle(a)};var x9d=function(a){this.entryPoint=0;this.helpText="";this.shouldAutofocus=!1;this.environmentConfig=a;this.autocomplete=new g6d(this.environmentConfig);this.chipsBar=new w9d(this.environmentConfig);this.chipsBar.setAllowContactMethodEditing(!0)};h=x9d.prototype;h.getEnvironmentConfig=function(){return this.environmentConfig};h.setEntryPoint=function(a){this.entryPoint=a};h.getEntryPoint=function(){return this.entryPoint};h.getWarnForExternalSelections=function(){return this.chipsBar.getWarnForExternalSelections()};
h.getAllowDisplayNameEditing=function(){return this.chipsBar.getAllowDisplayNameEditing()};h.getAllowContactMethodEditing=function(){return this.chipsBar.getAllowContactMethodEditing()};h.setAllowContactMethodEditing=function(a){this.chipsBar.setAllowContactMethodEditing(a)};h.getAllowChipDeletion=function(){return this.chipsBar.getAllowChipDeletion()};h.getShouldDisplayExternalSelectionIcon=function(){return this.chipsBar.getShouldDisplayExternalSelectionIcon()};h.getAllowChipDragAndDrop=function(){return this.chipsBar.getAllowChipDragAndDrop()};
h.getChipCustomizationCallback=function(){return this.chipsBar.getChipCustomizationCallback()};h.getAllowChipDisambiguation=function(){return this.chipsBar.getAllowChipDisambiguation()};h.getUseOriginalDisplayValue=function(){return this.chipsBar.getUseOriginalDisplayValue()};h.setUseOriginalDisplayValue=function(a){this.chipsBar.setUseOriginalDisplayValue(a)};h.getAutocompleteHeader=function(){return this.autocomplete.getAutocompleteHeader()};h.setAutocompleteHeader=function(a){this.autocomplete.setAutocompleteHeader(a)};
h.getShowSuggestions=function(){return this.autocomplete.getShowSuggestions()};h.setShowSuggestions=function(a){this.autocomplete.setShowSuggestions(a)};h.getAutocompleteMaxResultsBeforeScroll=function(){return this.autocomplete.getAutocompleteMaxResultsBeforeScroll()};h.setAutocompleteMaxResultsBeforeScroll=function(a){this.autocomplete.setAutocompleteMaxResultsBeforeScroll(a)};h.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.autocomplete.getMoveAutocompleteAboveAnchorIfOffscreen()};
h.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.autocomplete.setMoveAutocompleteAboveAnchorIfOffscreen(a)};h.getAutoActivateFirstSuggestion=function(){return this.autocomplete.getAutoActivateFirstSuggestion()};h.setAutoActivateFirstSuggestion=function(a){this.autocomplete.setAutoActivateFirstSuggestion(a)};h.getAutoActivateFirstSearchResult=function(){return this.autocomplete.getAutoActivateFirstSearchResult()};h.setAutoActivateFirstSearchResult=function(a){this.autocomplete.setAutoActivateFirstSearchResult(a)};
h.getNoResultsMessage=function(){return this.autocomplete.getNoResultsMessage()};h.setNoResultsMessage=function(a){this.autocomplete.setNoResultsMessage(a)};h.getUseTabForResultSelection=function(){return this.autocomplete.getUseTabForResultSelection()};h.getAutocompleteGroupingType=function(){return this.autocomplete.getAutocompleteGroupingType()};h.setAutocompleteGroupingType=function(a){this.autocomplete.setAutocompleteGroupingType(a)};h.getAutocompleteGroupingLabel=function(){return this.autocomplete.getAutocompleteGroupingLabel()};
h.setAutocompleteGroupingLabel=function(a){this.autocomplete.setAutocompleteGroupingLabel(a)};h.getAutocompleteCustomGrouping=function(){return this.autocomplete.getAutocompleteCustomGrouping()};h.getAllowResultDeselection=function(){return this.autocomplete.getAllowResultDeselection()};h.getResultDecorationConfigRequestCallback=function(){return this.autocomplete.getResultDecorationConfigRequestCallback()};h.getResultCustomizationCallback=function(){return this.autocomplete.getResultCustomizationCallback()};
h.setResultCustomizationCallback=function(a){this.autocomplete.setResultCustomizationCallback(a)};h.getDensity=function(){return this.autocomplete.getDensity()};h.setDensity=function(a){this.autocomplete.setDensity(a)};h.getTheme=function(){return this.autocomplete.getTheme()};h.setTheme=function(a){this.autocomplete.setTheme(a)};h.getStyle=function(){return this.autocomplete.getStyle()};h.setStyle=function(a){this.autocomplete.setStyle(a)};var Wsc=function(a){var b=a.multiSelectable,c=a.orientation,d=a.isKeyboardFocusable;a=a.ariaLabel;return pv('<div class="'+mv("peoplekitComponentsArialistboxAriaListBox")+'" peoplekit-id="'+mv("pQPeT")+'" tabindex="'+mv(d?0:-1)+'" role="listbox" aria-multiselectable="'+mv(b)+'" aria-orientation="'+mv(c)+'" aria-label="'+mv(a)+'"></div>')};var y9d=function(a){X9.call(this,9,a);this.name="LookupSelectorError"};Y(y9d,X9);var z9d=new Map([[5,12],[12,8],[11,13],[13,14],[2,15],[6,7]]);var zv=function(a,b,c,d){this.selectionsState=a;this.peopleStore=b;this.lookupOptions=c;this.health=d;this.disposed=!1};zv.prototype.select=function(a,b,c){var d=this;c=c===void 0?-1:c;return this.disposed?Promise.reject(new y9d("LookupSelector is disposed.")):new Promise(function(e){A9d(d,a,b,c,e)})};
var A9d=function(a,b,c,d,e){var f=[],g=[];d=d>=0?d:a.selectionsState.size();b=m(b);for(var k=b.next();!k.done;k=b.next()){var l=B9d(k.value);k=l.lookupId;l=Aqc(k,l.displayNameOverride,l.forceDisplayNameOverride,l.loggingTokenOverride);a.selectionsState.select(l,d,c)&&(f.push(k),d++)}d=a.lookupOptions.clone().setOriginator(T8d.get(c)||0);a.peopleStore.lookup(f,function(r){C9d(a,r,g,c,e)},d)},C9d=function(a,b,c,d,e){if(a.disposed)e([]);else{var f=b.getResults(),g=0,k=0;f=m(f.entries());for(var l=f.next();!l.done;l=
f.next()){var r=m(l.value);l=r.next().value;var w=r=r.next().value,x=a.selectionsState.get(l);x&&(r=x.getDisplayNameOverride(),w=Fqc(w,r,x.getForceDisplayNameOverride(),x.selectionToken().getLoggingToken()),a.selectionsState.replace(l,w,d),r&&g++,w.getDisplayNameWithOverrideApplied()&&k++)}g=k-g;g>0&&(k=a.health,f=k.createCount,l=6,l=l===void 0?0:l,d=z9d.get(d)||l,f.call(k,53,d).increment(g));b=b.getMetadata();c.push.apply(c,q(b.notFoundIdList_));b.getIsLastCallback()&&(a.deselect(c),e(c))}};
zv.prototype.deselect=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next())(b=this.selectionsState.get(b.value))&&this.selectionsState.deselect(b)};zv.prototype.replace=function(a,b){var c=this;return this.disposed?Promise.reject(new y9d("LookupSelector is disposed.")):new Promise(function(d){D9d(c,a,b,d)})};
var D9d=function(a,b,c,d){var e=[],f=[];b=m(b.entries());for(var g=b.next();!g.done;g=b.next()){var k=m(g.value);g=k.next().value;k=k.next().value;var l=B9d(k);k=l.lookupId;l=Aqc(k,l.displayNameOverride,l.forceDisplayNameOverride,l.loggingTokenOverride);a.selectionsState.replace(g,l)&&f.push(k)}a.peopleStore.lookup(f,function(r){C9d(a,r,e,c,d)},a.lookupOptions)};zv.prototype.dispose=function(){this.disposed=!0};
var B9d=function(a){if(a instanceof Z7d){var b=a.lookupWithOverride.getId();var c=a.lookupWithOverride.getDisplayName();var d=a.lookupWithOverride.getForceDisplayNameOverride();a=a.getLoggingToken()}else a instanceof F9?(b=a.getId(),c=a.getDisplayName(),d=a.getForceDisplayNameOverride()):(b=a,c="",d=!1),a=null;return{lookupId:b,displayNameOverride:c,forceDisplayNameOverride:d,loggingTokenOverride:a}};var Nsc=function(a,b,c,d,e,f){var g=this;this.chipSet=a;this.selectionsState=b;this.undoRedoStack=c;this.lookupSelector=new zv(b,d,e,f);this.onSelectionCallback=function(k,l,r){g.onSelect(r)};this.onSelectionReplacedCallback=function(k,l,r,w){w===9&&g.undoRedoStack.push()};this.onDeselectionCallback=function(k,l,r){g.onDeselect(r)};this.attach()};h=Nsc.prototype;
h.attach=function(){j$(this.selectionsState,this.onSelectionCallback);X8d(this.selectionsState,this.onSelectionReplacedCallback);i$(this.selectionsState,this.onDeselectionCallback)};h.select=function(a){a=this.lookupSelector.select(a,6);this.undoRedoStack.push();return a};h.deselect=function(a){this.lookupSelector.deselect(a);this.undoRedoStack.push()};h.replace=function(a){a=this.lookupSelector.replace(a,6);this.undoRedoStack.push();return a};h.focusLastChip=function(){return this.chipSet.focusLastChip()};
h.activateAllChips=function(){this.chipSet.activateAllChips()};h.dispose=function(){this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionReplacedCallbacks.remove(this.onSelectionReplacedCallback);this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.lookupSelector.dispose();this.chipSet.dispose()};h.onSelect=function(a){a===1&&this.undoRedoStack.push()};h.onDeselect=function(a){switch(a){case 1:case 8:this.undoRedoStack.push()}};var hsc=function(a){this.root=a;this.length=0;a=this.root;if(a.firstElementChild!==void 0)a=a.firstElementChild;else for(a=a.firstChild;a&&a.nodeType!=1;)a=a.nextSibling;this.marker=a};h=hsc.prototype;h.append=function(a){this.root.insertBefore(a,this.marker);++this.length};h.insert=function(a,b){if(a<0||a>this.length)throw new RangeError("Lg");a===this.length?this.append(b):(this.root.insertBefore(b,this.root.childNodes[a]),++this.length)};
h.remove=function(a){if(a<0||a>=this.length)throw new RangeError("Lg");this.removeItem(this.root.childNodes[a])};h.removeItem=function(a){try{this.root.removeChild(a),--this.length}catch(b){}};h.clear=function(){for(;this.root.firstChild&&this.root.firstChild!==this.marker;)this.root.removeChild(this.root.firstChild);this.length=0};h.getRoot=function(){return this.root};h.getItems=function(){return Array.from(this.root.childNodes)};var esc=function(a,b){this.root=a;this.options=b};h=esc.prototype;h.activate=function(){this.root.classList.add("isActive")};h.deactivate=function(){this.root.classList.remove("isActive")};h.spotlight=function(){};h.unspotlight=function(){};h.getRoot=function(){return this.root};h.getSelection=function(){return Aqc(pvc(this.options.id))};h.toggleSelection=function(){};h.onKeyDown=function(){};h.onContextMenu=function(){return function(){}};var dsc=function(a){var b=a.iconUrl,c=a.label,d=a.keyboardShortcut,e=a.densityClass,f=a.ariaLabel;a='<div role="menuitem" id="'+mv(a.id)+'" peoplekit-id="'+mv("UhZROb")+'" class="'+mv("peoplekitComponentsContextmenuitemImplMenuItem")+" "+mv(e)+'"'+(f?' aria-label="'+mv(f)+'"':"")+'><div class="'+mv("peoplekitComponentsContextmenuitemImplRow")+'">'+(M9(b)?'<img class="'+mv("peoplekitComponentsContextmenuitemImplIcon")+" "+mv("peoplekitComponentsContextmenuitemImplLeft")+'" src="'+mv(D5d(b))+'" draggable="false" alt=""/>':
"")+'<div class="'+mv("peoplekitComponentsContextmenuitemImplLabel")+" "+mv("peoplekitComponentsContextmenuitemImplCenter")+'">'+nv(c)+"</div>";d.length>0&&(a+='<div class="'+mv("peoplekitComponentsContextmenuitemImplKeyboardShortcut")+" "+mv("peoplekitComponentsContextmenuitemImplRight")+'"><span dir="ltr">',a+=nv(d.join("+"))+"</span></div>");return pv(a+"</div></div>")};var fv=new Map([[0,new Map([["jCCvxc","https://www.gstatic.com/people/peoplekit/icons/light_theme/content_copy_grey700.svg"],["RkeQbd","https://www.gstatic.com/people/peoplekit/icons/light_theme/phone_copy_grey700.svg"],["N1uSwe","https://www.gstatic.com/people/peoplekit/icons/light_theme/email_copy_grey700.svg"],["UkZFS","https://www.gstatic.com/people/peoplekit/icons/light_theme/content_cut_grey700.svg"],["YCRBfe","https://www.gstatic.com/people/peoplekit/icons/light_theme/change_name_grey700.svg"],
["l1309","https://www.gstatic.com/people/peoplekit/icons/light_theme/change_email_address_grey700.svg"],["xTCd3","https://www.gstatic.com/people/peoplekit/icons/light_theme/info_outline_grey700.svg"],["ENOWEf","https://www.gstatic.com/people/peoplekit/icons/light_theme/visibility_off_grey700.svg"]])],[1,new Map([["jCCvxc","https://www.gstatic.com/people/peoplekit/icons/dark_theme/content_copy_grey300.svg"],["RkeQbd","https://www.gstatic.com/people/peoplekit/icons/dark_theme/phone_copy_grey300.svg"],
["N1uSwe","https://www.gstatic.com/people/peoplekit/icons/dark_theme/email_copy_grey300.svg"],["UkZFS","https://www.gstatic.com/people/peoplekit/icons/dark_theme/content_cut_grey300.svg"],["YCRBfe","https://www.gstatic.com/people/peoplekit/icons/dark_theme/change_name_grey300.svg"],["l1309","https://www.gstatic.com/people/peoplekit/icons/dark_theme/change_email_address_grey300.svg"],["xTCd3","https://www.gstatic.com/people/peoplekit/icons/dark_theme/info_outline_grey300.svg"],["ENOWEf","https://www.gstatic.com/people/peoplekit/icons/dark_theme/visibility_off_grey200.svg"]])]]);var hv=function(a,b,c,d,e){this.root=a;this.anchor=b;this.container=d;this.appearanceConfig=e;this.popup=Aoc(this.root,{});this.navigatable=Vqc(c,new l6d({shouldWrap:!0}));this.navigationEventHandler=Yqc({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}},{});this.itemSelectedCallbacks=new Set;this.beforeShowCallbacks=new Set;this.afterHideCallbacks=new Set;this.contextMenuItemOptions=new Map;this.eventHandler=Au(this);this.eventHandler.listen(this.root,"mouseover",function(f){f.stopPropagation()});
this.eventHandler.listen(this.root,"mouseout",function(f){f.stopPropagation()});this.eventHandler.listen(this.root,"mouseenter",function(f){f.stopPropagation()});this.eventHandler.listen(this.root,"mousedown",function(f){f.preventDefault()});this.hide()};
hv.prototype.append=function(a){var b=this;this.contextMenuItemOptions.set(a.id,a);var c=fsc(a,this.appearanceConfig);this.container.append(c.getRoot());this.eventHandler.listen(c.getRoot(),"click",function(d){if(d.currentTarget){var e=d.currentTarget;e.dispatchEvent(Mu(e))}d.stopPropagation();E9d(b,a);b.hide()});this.navigatable.insert(this.navigatable.size(),[c],!1)};
hv.prototype.show=function(){for(var a=m(this.beforeShowCallbacks.values()),b=a.next();!b.done;b=a.next())b=b.value,b();this.popup.show(this.anchor);this.navigationEventHandler.attach(this.root,this.navigatable);this.navigatable.next(0)};hv.prototype.hide=function(){this.popup.hide();this.navigatable.reset();this.navigationEventHandler.detach();for(var a=m(this.afterHideCallbacks.values()),b=a.next();!b.done;b=a.next())b=b.value,b()};
hv.prototype.onKeyDown=function(a){this.navigationEventHandler.onKeyDown(a);switch(a.event.keyCode){case 27:this.hide();a.stopPropagation();break;case 13:var b=this.navigatable.getSpotlitItem();if(b){var c=b.getRoot();c.dispatchEvent(Mu(c));b=b.getSelection().id().getValue();b=this.contextMenuItemOptions.get(b);E9d(this,b);this.hide();a.stopPropagation();a.preventDefault()}}};
var j6d=function(a,b){a.itemSelectedCallbacks.add(b)},k6d=function(a,b){a.afterHideCallbacks.add(b)},E9d=function(a,b){a=m(a.itemSelectedCallbacks.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};hv.prototype.dispose=function(){this.popup.dispose();this.container.clear();this.navigatable.clear();this.eventHandler.removeAll();this.itemSelectedCallbacks.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};var gsc=function(){return pv('<div peoplekit-id="'+mv("xl07Ob")+'" class="'+mv("peoplekitComponentsContextmenuImplMenu")+'" role="menu"></div>')};var F9d=function(a,b,c,d,e,f,g){this.delegate=a;this.ariaParent=b;this.actionRequestCallbacks=c;this.chipConfig=d;this.appearanceConfig=e;this.clientConfig=f;this.chipCustomization=g;this.contextMenuContainer=wu(P9.prototype.getRoot.call(this),"QL45qe");a=P9.prototype.getRoot.call(this).parentElement;P9.prototype.getRoot.call(this).removeChild(this.contextMenuContainer);a.appendChild(this.contextMenuContainer)};Y(F9d,P9);h=F9d.prototype;h.deactivate=function(){P9.prototype.deactivate.call(this);t$(this)};
h.drag=function(){t$(this);P9.prototype.drag.call(this)};h.dispose=function(){t$(this);P9.prototype.dispose.call(this)};h.onKeyDown=function(a){var b;(b=this.contextMenu)==null||b.onKeyDown(a);P9.prototype.onKeyDown.call(this,a)};
h.onContextMenu=function(a,b){var c=this;a.stopPropagation();a.preventDefault();this.isActive()?this.actionRequestCallbacks.spotlight():this.actionRequestCallbacks.activate();this.contextMenu&&t$(this);this.contextMenu=isc(this.contextMenuContainer,this.getRoot(),this.ariaParent,this.appearanceConfig);a=this.appearanceConfig.getTheme();this.contextMenu.append(Yrc(a));Fi(this.clientConfig.internal,4)&&G9d(this,a);this.chipConfig.getAllowChipDeletion()&&this.contextMenu.append(Zrc(a));var d;!this.chipConfig.getAllowDisplayNameEditing()||
((d=this.chipCustomization.chipAction)==null?0:d.disableDisplayNameEditing)||this.contextMenu.append($rc(a));cwd(this.getSelection().id())&&this.chipConfig.getAllowContactMethodEditing()&&this.contextMenu.append(asc(a));Zqc(this.getRoot())&&this.contextMenu.append(bsc(a));j6d(this.contextMenu,function(e){switch(e.id){case "jCCvxc":c.actionRequestCallbacks.copyMethod(c);break;case "RkeQbd":case "N1uSwe":c.actionRequestCallbacks.copyContactMethod(c);break;case "UkZFS":c.actionRequestCallbacks.cut(c);
break;case "xTCd3":c.showHovercard();break;case "YCRBfe":c.edit();break;case "l1309":c.actionRequestCallbacks.editContactMethod(c);break;default:throw Error("Zg`"+e.id);}t$(c)});k6d(this.contextMenu,function(){t$(c);b()});this.contextMenu.show();return function(){t$(c)}};
var G9d=function(a,b){var c=a.getSelection().result().getDisplayValue();if(c){var d;if((d=a.contextMenu)!=null){var e=d.append;a=a.getSelection().id();Zvd.includes(a.getType())?(b=fv.get(b),c=Object.freeze({id:"RkeQbd",iconUrl:b==null?void 0:b.get("RkeQbd"),label:'Copy "'+c+'"',keyboardShortcut:[18,67],veid:134816})):(b=fv.get(b),c=Object.freeze({id:"N1uSwe",iconUrl:b==null?void 0:b.get("N1uSwe"),label:'Copy "'+c+'"',keyboardShortcut:[18,67],veid:134816}));e.call(d,c)}}};
F9d.prototype.showHovercard=function(){this.isActive();this.getRoot();this.getSelection()};var t$=function(a){var b;(b=a.contextMenu)==null||b.dispose();a.contextMenu=void 0};var H9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(H9d,W);var I9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(I9d,W);I9d.prototype.getGroupIdHex=function(){return ui(this,1)};var J9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(J9d,W);J9d.prototype.getGroupIdHex=function(){return ui(this,1)};var kv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kv,W);h=kv.prototype;h.getGivenName=function(){return ui(this,1)};h.setGivenName=function(a){return Fm(this,1,a)};h.getFamilyName=function(){return ui(this,2)};h.setFamilyName=function(a){return Fm(this,2,a)};h.getEmailList=function(){return Cm(this,3,Ci())};h.setEmailList=function(a){return Gm(this,3,a)};h.addEmail=function(a){return zc(this,3,Sb,a,void 0,Tb)};
h.removeEmail=function(a){return zc(this,3,Sb,void 0,a,Tb,void 0,1,!1,!0)};h.getEmail=function(){return Uw(this,3)};h.setEmail=function(a){return bx(this,3,a)};var K9d=function(a){return Cm(a,4,Ci())},psc=function(a,b){return Gm(a,4,b)};kv.prototype.getPhone=function(){return Uw(this,4)};kv.prototype.setPhone=function(a){return bx(this,4,a)};var u$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(u$,W);var msc=function(a){var b=new u$;return Fm(b,1,a)};u$.prototype.getEdit=function(){return Fi(this,2)};u$.prototype.setEdit=function(a){return Yo(this,2,a)};u$.prototype.getIncludeTrash=function(){return Fi(this,3)};var iv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iv,W);h=iv.prototype;h.getObfuscatedGaiaId=function(){return ui(this,1)};h.setObfuscatedGaiaId=function(a){return Fm(this,1,a)};h.getEdit=function(){return Fi(this,2)};h.setEdit=function(a){return Yo(this,2,a)};h.getIncludeTrash=function(){return Fi(this,3)};var v$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(v$,W);v$.prototype.getEdit=function(){return Fi(this,2)};v$.prototype.setEdit=function(a){return Yo(this,2,a)};v$.prototype.getIncludeTrash=function(){return Fi(this,3)};var L9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(L9d,W);L9d.prototype.getQuery=function(){return ui(this,1)};L9d.prototype.setQuery=function(a){return Fm(this,1,a)};L9d.prototype.clearQuery=function(){Hw(this,1)};var M9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(M9d,W);M9d.prototype.getQuery=function(){return ui(this,1)};M9d.prototype.setQuery=function(a){return Fm(this,1,a)};M9d.prototype.clearQuery=function(){Hw(this,1)};var jv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jv,W);var lsc=function(){var a=new jv;return Bo(a,1,N9d,"0")};jv.prototype.getAuthUser=function(){return yo(this,17,N9d)};var osc=function(a,b){return Wo(a,3,w$,b)},nsc=function(a,b){return Wo(a,9,w$,b)},ksc=function(a,b){return Wo(a,10,w$,b)};jv.prototype.getSearchParams=function(){return bm(this,L9d,13,w$)};jv.prototype.setSearchParams=function(a){Wo(this,13,w$,a)};
var N9d=[1,17],w$=[2,3,4,5,6,7,8,9,10,11,13,14,15,16];var jsc=function(a){switch(wo(a,w$)){case 2:var b=bm(a,H9d,2,w$);b=Fi(b,1);return x$(a,"",b?[["multisend_welcome","1"]]:null);case 3:return O9d(a);case 4:return x$(a,"/frequent");case 5:return x$(a,"/other");case 6:return x$(a,"/directory");case 7:return x$(a,"/label/"+y$(bm(a,J9d,7,w$).getGroupIdHex(),"GroupParams.GroupIdHex"));case 8:b=bm(a,v$,8,w$);b=ui(b,1);b="/person/"+y$(b,"PersonByPersonIdParams.PersonId");var c=bm(a,v$,8,w$).getEdit()?[["edit","1"]]:bm(a,v$,8,w$).getIncludeTrash()?[["includeTrash",
"1"]]:[];return x$(a,b,c);case 9:return b="/p/"+y$(bm(a,iv,9,w$).getObfuscatedGaiaId(),"PersonByObfuscatedGaiaIdParams.ObfuscatedGaiaId"),c=bm(a,iv,9,w$).getEdit()?[["edit","1"]]:bm(a,iv,9,w$).getIncludeTrash()?[["includeTrash","1"]]:[],x$(a,b,c);case 10:return b=bm(a,u$,10,w$),b=ui(b,1),b="/contact/"+y$(b,"PersonByContactIdParams.ContactIdHex"),c=bm(a,u$,10,w$).getEdit()?[["edit","1"]]:bm(a,u$,10,w$).getIncludeTrash()?[["includeTrash","1"]]:[],x$(a,b,c);case 11:return b="/group/"+y$(bm(a,I9d,11,
w$).getGroupIdHex(),"DelegatedContactListParams.GroupIdHex")+"/",c=bm(a,I9d,11,w$),c=ui(c,2),x$(a,b+y$(c,"DelegatedContactListParams.SyntheticGroupId"));case 13:return x$(a,"/search/"+y$(a.getSearchParams().getQuery(),"SearchParams.Query"));case 14:return x$(a,"/trash");case 15:return x$(a,"/trashsearch/"+y$(bm(a,M9d,15,w$).getQuery(),"TrashSearchParams.Query"));case 16:return x$(a,"/suggestions");default:throw Error("$g`"+wo(a,w$));}},O9d=function(a){var b=[],c=Nt(bm(a,kv,3,w$).getGivenName());ya(c)||
b.push(["givenname",c]);c=Nt(bm(a,kv,3,w$).getFamilyName());ya(c)||b.push(["familyname",c]);c=bm(a,kv,3,w$).getEmailList().filter(function(d){return!ya(d)}).toString();ya(c)||b.push(["email",c]);c=K9d(bm(a,kv,3,w$)).filter(function(d){return!ya(d)}).toString();ya(c)||b.push(["phone",c]);return x$(a,"/new",b)},y$=function(a,b){if(ya(Nt(a)))throw Error("ah`"+b);return a},x$=function(a,b,c){b=b===void 0?"":b;var d=Nt(a.getAuthUser()).trim(),e=d||ya(Nt(yo(a,1,N9d)))||yo(a,1,N9d)==="0"?"":"/u/"+yo(a,1,
N9d),f=[];d&&f.push(["authuser",d]);(a=wi(a,18))&&f.push(["bdSource",a]);c&&c.length>0&&f.push.apply(f,q(c));return(f.length>0?H8d({searchParams:f,pathname:e+b}):H8d({pathname:e+b})).href.substring(0,16384)};var wsc=function(a,b){var c=this;this.dialog=a;this.textField=b;this.textField.checkValidity=rsc;this.textField.onValidityChanged=function(d){return c.onValidityChanged(d)};this.textField.onInput=function(){c.nameLabel.textContent=c.textField.getValue()};this.nameLabel=wu(this.dialog.getRoot(),"E0kCZc");this.eventHandler=Au(this);this.textField.focus();this.textField.select();P9d(this.textField);this.eventHandler.listen(this.textField.input,"keydown",function(d){switch(d.keyCode){case 13:c.dialog.dispatchAction(1),
d.stopPropagation(),d.preventDefault()}})};h=wsc.prototype;h.subscribeToAction=function(a){this.dialog.subscribeToAction(a)};h.dispatchAction=function(a){this.dialog.dispatchAction(a)};h.enableAction=function(a){this.dialog.enableAction(a)};h.disableAction=function(a){this.dialog.disableAction(a)};h.getRoot=function(){return this.dialog.getRoot()};h.dispose=function(){this.dialog.dispose();this.textField.dispose();this.eventHandler.removeAll()};
h.onValidityChanged=function(a){a?this.dialog.enableAction(1):this.dialog.disableAction(1)};var uv=function(a){var b=this;this.root=a;this.input=wu(this.root,"YPqjbf");this.invalidMessage=wu(this.root,"kyLNld");this.eventHandler=Au(this);this.eventHandler.listen(this.input,"input",function(c){var d;(d=b.onInput)==null||d.call(b,c);P9d(b)})};uv.prototype.getRoot=function(){return this.root};uv.prototype.focus=function(){this.input.focus()};uv.prototype.select=function(){this.input.select()};uv.prototype.getValue=function(){return this.input.value};
var P9d=function(a){if(a.checkValidity){var b=a.checkValidity(a.input.value);a.updateValidity(b)}};uv.prototype.updateValidity=function(a){a.isValid?this.validate():this.invalidate(a.errorMessage||"")};uv.prototype.validate=function(){this.root.classList.remove("isInvalid");this.invalidMessage.textContent="";var a;(a=this.onValidityChanged)==null||a.call(this,!0)};
uv.prototype.invalidate=function(a){this.root.classList.add("isInvalid");this.invalidMessage.textContent=a;var b;(b=this.onValidityChanged)==null||b.call(this,!1)};uv.prototype.dispose=function(){this.eventHandler.removeAll();this.onInput=this.onValidityChanged=this.checkValidity=void 0};var usc=function(a){var b=a.label,c=a.initialValue;a=a.id;return pv('<div class="'+mv("peoplekitComponentsTextfieldImplTextField")+'"><div class="'+mv("peoplekitComponentsTextfieldImplInputContainer")+'"><label class="'+mv("peoplekitComponentsTextfieldImplLabel")+'" for="'+mv(a)+'">'+nv(b)+'</label><input peoplekit-id="'+mv("YPqjbf")+'" id="'+mv(a)+'" class="'+mv("peoplekitComponentsTextfieldImplInput")+'" value="'+mv(c)+'" autocomplete="off" spellcheck="false"></div><div peoplekit-id="'+mv("kyLNld")+
'" class="'+mv("peoplekitComponentsTextfieldImplInvalidMessage")+'" role="alert"></div></div>')};var vsc=Pu.getInstance();var Q9d=function(a,b,c,d,e,f){var g=this;this.root=a;this.selection=b;this.selectionsState=c;this.actionRequestCallbacks=d;this.appearanceConfig=e;this.chipCustomization=f;this.isDisabledInternal=!1;this.nameEditDialog=null;this.deleteButton=wu(this.root,"bxvLg");this.eventHandler=Au(this);this.eventHandler.listen(this.deleteButton,"click",function(){return g.onDeleteButtonClick()})};h=Q9d.prototype;h.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};
h.toggleSelection=function(){};h.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};h.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};h.isActive=function(){return this.root.classList.contains("isActive")};h.spotlight=function(){this.root.classList.add("isSpotlit")};h.unspotlight=function(){this.root.classList.remove("isSpotlit")};
h.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};h.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};h.isDisabled=function(){return this.isDisabledInternal};h.drag=function(){this.root.classList.add("isDragged")};h.undrag=function(){this.root.classList.remove("isDragged")};
h.edit=function(){var a=this;this.nameEditDialog&&this.nameEditDialog.dispose();var b=this.root.classList.contains("isActive"),c;this.nameEditDialog=xsc(this.root.ownerDocument.body,this.selection,this.appearanceConfig,{description:(c=this.chipCustomization.chipAction)==null?void 0:c.displayNameEditingDescription});this.nameEditDialog.subscribeToAction(function(d){if(d===1){var e;d=Fqc(a.selection.result(),((e=a.nameEditDialog)==null?void 0:e.textField.getValue().trim())||"",!0);a.selectionsState.replace(d.id(),
d,9)}a.unedit();b&&a.actionRequestCallbacks.activate()})};h.unedit=function(){this.nameEditDialog&&(this.nameEditDialog.dispose(),this.nameEditDialog=null)};h.dispose=function(){this.eventHandler.removeAll();this.unedit()};h.getRoot=function(){return this.root};h.getSelection=function(){return this.selection};h.setDisambiguationLabel=function(a){var b=Enc(this.root,"hyPgpe")[0];b&&(a?(b.classList.add("hasDisambiguationLabel"),zJc(b,"("+a+")")):b.classList.remove("hasDisambiguationLabel"))};
h.onKeyDown=function(){};h.onContextMenu=function(){return function(){}};h.getAllIds=function(){return[this.selection.id()]};h.updateWaldo=function(){};h.updateHubAvailabilityDot=function(){};h.getSupportedIntelligenceFeatures=function(){return[]};h.initializeIntelligence=function(){};var R9d=function(a){var b=a.id,c=a.label,d=a.name,e=a.hovercardId,f=a.stateClass,g=a.isWarning,k=a.isDeletionDisabled;a=a.customChipClass;return sv(rv(),N5d(b,d,e,f,g,k,a,sv(rv(),f?P5d(f):O5d()),sv(rv(),Q5d(c)),sv(rv(),R5d(b))))};Bu.addCoreFactory({type:2,factory:{create:function(a){var b=Xnc(a.selection,a.chipConfig,a.chipCustomization),c=vu(R9d,b);xu(wu(c,"d6MZcd"),b.photos,a.avatarSize,a.resultListItemAvatarSize,a.appearanceConfig);a.parent.appendChild(c);return{chip:new Q9d(c,a.selection,a.selectionsState,a.actionRequestCallbacks,a.appearanceConfig,a.chipCustomization),root:c,state:0}},shouldCreate:function(){return!0}},configurationKey:void 0});
Bu.addDecoratorFactory({type:2,configurationKey:void 0,factory:{create:function(a,b){return{chip:new F9d(b.chip,a.ariaParent,a.actionRequestCallbacks,a.chipConfig,a.appearanceConfig,a.clientConfig,a.chipCustomization),root:b.root,state:b.state}},shouldCreate:function(){return!0}}});
Bu.addDecoratorFactory({type:1,configurationKey:void 0,factory:{create:function(a,b){a=b.root;a:{var c=b.state;switch(c){case 0:c=25286;break a;case 1:c=169606;break a;case 3:c=169617;break a;default:throw Error("Yg`"+c);}}Lu({element:a,veid:c,actions:["impression"],componentId:"peoplekitweb"});return b},shouldCreate:function(){return!0}}});var T9d=function(){return qv(sv(qv(rv(),'<div draggable="true" peoplekit-id="'+mv("Svajxe")+'" class="'+mv("peoplekitComponentsChipsetImplDraggableChip")+'">'),S9d()),"</div>")},U9d=function(){return qv(sv(qv(rv(),'<div draggable="false" peoplekit-id="'+mv("shtr1e")+'" class="'+mv("peoplekitComponentsChipsetImplNonDraggableChip")+'">'),S9d()),"</div>")},V9d=function(a){a=a.height;return pv('<div peoplekit-id="'+mv("tozrW")+'" class="'+mv("peoplekitComponentsChipsetImplDropMarker")+'" style="height: '+
mv(N9(a))+'px"></div>')},W9d=function(){return pv('<div peoplekit-id="'+mv("DOyw7")+'" class="'+mv("peoplekitComponentsChipsetImplDraggedChips")+'"></div>')},S9d=function(){return pv('<div peoplekit-id="'+mv("ubaLBe")+'" class="'+mv("peoplekitComponentsChipsetImplChipContainer")+'"></div>')};var Esc=function(a,b,c,d,e,f,g,k,l,r){this.selectionsState=a;this.undoRedoStack=b;this.container=c;this.dragImageRenderSandbox=d;this.navigatable=e;this.chipDropCallback=k;this.appearanceConfig=l;this.draggedChipsContainer=document.createElement("div");this.currentDropIndex=-1;this.draggedLookupIds=[];this.chipControllers=new Map;this.chipEventHandlers=new Map;this.eventHandler=Au(this);this.lookupSelector=new zv(a,f,g,r);this.dropMarker=vu(V9d,{height:Xrc(this.appearanceConfig.getDensity())});this.attach()};
Esc.prototype.attach=function(){var a=this;this.eventHandler.listen(this.container.getRoot(),"dragover",function(b){b=b.event_;if(b.dataTransfer.types.includes("text/lookupids")){a.container.getRoot().classList.add("isDraggedOver");var c=X9d(a,a.chipControllers.size);z$(a);Y9d(a,c);b.stopPropagation();b.preventDefault()}a.container.getRoot()});this.eventHandler.listen(this.container.getRoot(),"dragleave",function(b){b=b.event_;b.dataTransfer.types.includes("text/lookupids")&&!a.container.getRoot().contains(b.relatedTarget)&&
(a.container.getRoot().classList.remove("isDraggedOver"),z$(a),b.stopPropagation(),b.preventDefault())});this.eventHandler.listen(this.container.getRoot(),"drop",function(b){Z9d(a,b)});ppc(this.draggedChipsContainer,this.appearanceConfig.getTheme());this.dragImageRenderSandbox.appendChild(this.draggedChipsContainer)};
Esc.prototype.listen=function(a,b,c){var d=this,e=String(a.id()),f=Au(c);f.listen(b,"dragstart",function(g){$9d(d,a,g)});f.listen(b,"dragend",function(g){a$d(d,g)});f.listen(b,"dragover",function(g){d.container.getRoot().classList.add("isDraggedOver");g=g.event_;if(g.dataTransfer.types.includes("text/lookupids")){var k=d.selectionsState.indexOf(a.id());var l=wu(g.currentTarget,"ubaLBe").clientWidth,r=Du(d.container.getRoot());k=X9d(d,g.offsetX<l/2?r?k+1:k:r?k:k+1);z$(d);Y9d(d,k);g.stopPropagation();
g.preventDefault()}d.container.getRoot()});f.listen(b,"drop",function(g){b$d(d,g)});this.chipEventHandlers.set(e,f);this.chipControllers.set(e,c)};Esc.prototype.unlisten=function(a){a=String(a);this.chipEventHandlers.get(a).removeAll();this.chipEventHandlers.delete(a);this.chipControllers.delete(a)};
var $9d=function(a,b,c){c=c.event_;var d=a.chipControllers.get(String(b.id())),e=a.navigatable.getActiveItems();e.includes(d)?a.draggedLookupIds=e.map(function(f){return Dsc(f.getSelection())}):a.draggedLookupIds=[Dsc(b)];a.draggedChips=vu(W9d);b=m(a.draggedLookupIds);for(d=b.next();!d.done;d=b.next())d=a.chipControllers.get(String(d.value.getId())),d.drag(),a.draggedChips.appendChild(d.getRoot().cloneNode(!0)),d.undrag(),d.disable();BC(a.draggedChipsContainer);a.draggedChipsContainer.appendChild(a.draggedChips);
c.dataTransfer.setDragImage(a.draggedChips,0,0);c.dataTransfer.setData("text/lookupids",zsc(a.draggedLookupIds));c.dataTransfer.effectAllowed="move";$qc(a.container.getRoot())},a$d=function(a,b){if(b.event_.dataTransfer.dropEffect==="move")a.lookupSelector.deselect(a.draggedLookupIds.map(function(d){return d.getId()})),a.navigatable.reset(),a.undoRedoStack.push();else{b=m(a.draggedLookupIds);for(var c=b.next();!c.done;c=b.next())a.chipControllers.get(String(c.value.getId())).enable()}z$(a);BC(a.draggedChipsContainer);
a.container.getRoot().classList.remove("isDraggedOver")},X9d=function(a,b){for(;b>0;){var c=a.selectionsState.at(b-1);if(a.chipControllers.get(String(c.id())).isDisabled())b--;else break}return b},Y9d=function(a,b){b!==a.currentDropIndex&&(a.container.insert(b,a.dropMarker),a.currentDropIndex=b)},z$=function(a){a.container.removeItem(a.dropMarker);a.currentDropIndex=-1},b$d=function(a,b){a.container.getRoot().classList.remove("isDraggedOver");b=b.event_;var c=b.dataTransfer.getData("text/lookupids");
if(c){c=Csc(c);a.draggedLookupIds=[];for(var d=a.currentDropIndex,e=m(c),f=e.next();!f.done;f=e.next())f=a.selectionsState.indexOf(f.value.getId()),f>=0&&f<a.currentDropIndex&&d--;z$(a);a.lookupSelector.deselect(c.map(function(g){return g.getId()}));a.lookupSelector.select(c,2,d);b.stopPropagation();b.preventDefault();b.dataTransfer.dropEffect="move";a.currentDropIndex=-1;a.undoRedoStack.push()}else z$(a);BC(a.draggedChipsContainer);a.chipDropCallback()},Z9d=function(a,b){a.container.getRoot().classList.remove("isDraggedOver");
b=b.event_;var c=b.dataTransfer.getData("text/lookupids");c&&(c=Csc(c),a.draggedLookupIds=[],z$(a),a.lookupSelector.deselect(c.map(function(d){return d.getId()})),a.currentDropIndex=a.chipControllers.size,a.lookupSelector.select(c,2,a.currentDropIndex),b.stopPropagation(),b.preventDefault(),b.dataTransfer.dropEffect="move",a.currentDropIndex=-1,a.undoRedoStack.push());BC(a.draggedChipsContainer);a.chipDropCallback()};
Esc.prototype.dispose=function(){this.eventHandler.removeAll();this.draggedChipsContainer.parentNode&&this.draggedChipsContainer.parentNode.removeChild(this.draggedChipsContainer);this.lookupSelector.dispose()};var c$d=function(){};c$d.prototype.listen=function(){};c$d.prototype.unlisten=function(){};c$d.prototype.dispose=function(){};var d$d=function(){this.listeners=new Map},A$=function(a,b,c){b=JSON.stringify(b);var d=a.listeners.get(b)||[];a.listeners.set(b,[].concat(q(d),[c]))};d$d.prototype.handleEvent=function(a){var b=a.event,c=[];b.platformModifierKey&&c.push(512);b.altKey&&c.push(18);b.shiftKey&&c.push(16);c.push(b.keyCode);b=m(this.listeners.get(JSON.stringify(c))||[]);for(c=b.next();!c.done;c=b.next())c=c.value,c(a)};d$d.prototype.dispose=function(){this.listeners.clear()};var xv=function(a,b,c,d,e,f,g,k,l,r,w){var x=this;this.selectionsState=a;this.undoRedoStack=b;this.container=c;this.peopleStore=d;this.appearanceConfig=f;this.chipConfig=g;this.clientConfig=k;this.callbacks=l;this.chipElements=new Map;this.chips=new Map;this.chipCustomizations=new Map;this.navigatable=Vqc(c.getRoot(),ipc(new l6d({shouldWrap:!1})));this.navigatable.setSecondaryEventTargets([this]);this.eventHandler=Au(this);this.chipEventHandlers=new Map;this.intelligentCollection=e.create();this.keyboardShortcutHandler=
new d$d;e$d(this);this.dragonDropHandler=this.chipConfig.getAllowChipDragAndDrop()?Fsc(a,b,c,this.container.getRoot().ownerDocument.body,this.navigatable,d,r,this.callbacks.chipDrop,this.appearanceConfig,w):new c$d;this.eventHandler.listen(c.getRoot(),"keyup",function(C){C.keyCode!==9||C.target!==x.container.getRoot()||x.navigatable.getSpotlitItem()||(C.shiftKey?x.navigatable.prev(0):x.navigatable.next(0))});this.onSelectionCallback=function(C,H){x.insert(C,H)};this.onDeselectionCallback=function(C){x.remove(C.id())};
this.onSelectionReplacedCallback=function(C,H,J){x.replace(C,H,J)};j$(this.selectionsState,this.onSelectionCallback);i$(this.selectionsState,this.onDeselectionCallback);X8d(this.selectionsState,this.onSelectionReplacedCallback)},e$d=function(a){A$(a.keyboardShortcutHandler,[512,67],function(c){var d=a.navigatable.getSpotlitItem();a.copyMethod(d);a.navigatable.goToItem(d,2);c.stopPropagation()});A$(a.keyboardShortcutHandler,[18,67],function(c){var d=a.navigatable.getSpotlitItem();a.copyContactMethod(d);
a.navigatable.goToItem(d,2);c.stopPropagation()});A$(a.keyboardShortcutHandler,[512,88],function(c){a.chipConfig.getAllowChipDeletion()&&(a.cut(a.navigatable.getSpotlitItem(),3),c.stopPropagation())});A$(a.keyboardShortcutHandler,[18,39],function(c){var d=a.navigatable.getSpotlitItem();d&&(d.getSelection(),d.getRoot());c.stopPropagation();c.preventDefault()});var b=function(c){if(a.chipConfig.getAllowDisplayNameEditing()&&(c.stopPropagation(),c.preventDefault(),c=a.navigatable.getSpotlitItem())){c=
String(c.getSelection().id());var d;((d=a.chipCustomizations.get(c).chipAction)==null?0:d.disableDisplayNameEditing)||a.chips.get(c).edit()}};A$(a.keyboardShortcutHandler,[16,69],b);A$(a.keyboardShortcutHandler,[113],b);A$(a.keyboardShortcutHandler,[16,70],function(c){a.chipConfig.getAllowContactMethodEditing()&&(c.stopPropagation(),c.preventDefault(),f$d(a))});b=function(c){if(a.chipConfig.getAllowChipDeletion()){c.stopPropagation();c.preventDefault();c=m(a.navigatable.getActiveItems());for(var d=
c.next();!d.done;d=c.next())a.selectionsState.deselect(d.value.getSelection(),7);a.undoRedoStack.push()}};A$(a.keyboardShortcutHandler,[46],b);A$(a.keyboardShortcutHandler,[8],b);A$(a.keyboardShortcutHandler,[13],function(c){c.stopPropagation();c.preventDefault();a.callbacks.chipContextMenu(a.navigatable.getSpotlitItem(),c.event)})};xv.prototype.insert=function(a,b){var c=String(a.id());this.chipElements.has(c)||g$d(this,a,b)};
xv.prototype.remove=function(a){var b=String(a);if(this.chipElements.has(b)){var c=this.chipElements.get(b);this.chipEventHandlers.get(b).removeAll();this.container.removeItem(c);this.chipElements.delete(b);this.dragonDropHandler.unlisten(a,c);this.navigatable.remove([this.chips.get(b)],!!this.navigatable.getSpotlitItem());this.intelligentCollection.remove([this.chips.get(b)]);var d;(d=this.chips.get(b))==null||d.dispose();this.chips.delete(b);this.chipEventHandlers.delete(b);this.chipCustomizations.delete(b);
this.container.getRoot()}};xv.prototype.replace=function(a,b,c){this.remove(c);g$d(this,a,b)};
var g$d=function(a,b,c){var d=String(b.id()),e=a.chipConfig.getAllowChipDragAndDrop()?vu(T9d):vu(U9d);a.container.insert(c,e);a.chipElements.set(d,e);var f=wu(e,"ubaLBe"),g=a.chipConfig.getChipCustomizationCallback()(b.result());a.chipCustomizations.set(d,g);var k=ysc(f,a.container.getRoot(),b,a.selectionsState,{activate:function(){var l=b.id();l=a.chips.get(String(l));a.container.getRoot().focus();a.navigatable.goToItem(l,0)},spotlight:function(){var l=b.id();l=a.chips.get(String(l));a.container.getRoot().focus();
a.navigatable.goToItem(l,2)},copyMethod:function(l){a.copyMethod(l)},copyContactMethod:function(l){a.copyContactMethod(l)},cut:function(l){a.cut(l,4)},editContactMethod:function(){f$d(a)}},a.appearanceConfig,a.chipConfig,a.clientConfig,g,Du(a.container.getRoot()));f=Au(k);a.dragonDropHandler.listen(b,e,k);f.listen(e,"click",function(l){a.callbacks.chipClick(k,l)});f.listen(e,"dblclick",function(l){a.callbacks.chipContextMenu(k,l)});a.chips.set(d,k);a.chipEventHandlers.set(d,f);a.navigatable.insert(c,
[k],!!a.navigatable.getSpotlitItem());a.intelligentCollection.append([k]);a.chipConfig.getAllowChipDisambiguation()&&Promise.resolve().then(function(){a.chips.get(d)===k&&a.peopleStore.disambiguate(b.result().getPrimaryTarget(),o9d(p9d(new n9d,a.selectionsState.size()),b.getDisplayNameWithOverrideApplied())).then(function(l){k.setDisambiguationLabel(l.getDisambiguationLabel())})})};xv.prototype.getNavigatable=function(){return this.navigatable};
xv.prototype.focusLastChip=function(){this.container.getRoot().focus();return this.navigatable.goToIndex(this.navigatable.size()-1,0)};xv.prototype.activateAllChips=function(){this.navigatable.activateAll()};
xv.prototype.dispose=function(){this.eventHandler.removeAll();for(var a=m(this.chips.values()),b=a.next();!b.done;b=a.next())b.value.dispose();this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.selectionsState.selectionReplacedCallbacks.remove(this.onSelectionReplacedCallback);this.dragonDropHandler.dispose();this.keyboardShortcutHandler.dispose()};
var h$d=function(a,b){return a.navigatable.getActiveItems().includes(b)?a.navigatable.getActiveItems().map(function(c){return c.getSelection()}):[b.getSelection()]};xv.prototype.copyMethod=function(a){a=h$d(this,a);Jsc(a,this.container.getRoot())};xv.prototype.copyContactMethod=function(a){a=a.getSelection();a.result().getDisplayValue()&&Isc(a.result().getDisplayValue(),this.container.getRoot())};
xv.prototype.cut=function(a,b){a=h$d(this,a);Jsc(a,this.container.getRoot());a=m(a);for(var c=a.next();!c.done;c=a.next())this.selectionsState.deselect(c.value,b);this.undoRedoStack.push()};var f$d=function(a){var b=a.navigatable.getSpotlitItem();b&&(b=b.getSelection(),a.selectionsState.deselect(b,10),b=b.result().getDisplayValue(),a.callbacks.chipEditContactMethod(b),a.undoRedoStack.push())};
xv.prototype.onKeyDown=function(a){a.event.target===this.container.getRoot()&&this.navigatable.getSpotlitItem()&&(this.keyboardShortcutHandler.handleEvent(a),this.undoRedoStack.onKeyDown(a))};var Ksc=function(a,b){this.delegate=a;this.health=b};h=Ksc.prototype;h.insert=function(a,b){try{this.delegate.insert(a,b)}catch(c){throw this.health.createError(6,Zu(c)),c;}};h.remove=function(a){try{this.delegate.remove(a)}catch(b){throw this.health.createError(7,Zu(b)),b;}};h.replace=function(a,b,c){try{this.delegate.replace(a,b,c)}catch(d){throw this.health.createError(8,Zu(d)),d;}};h.getNavigatable=function(){return this.delegate.getNavigatable()};h.focusLastChip=function(){return this.delegate.focusLastChip()};
h.activateAllChips=function(){this.delegate.activateAllChips()};h.onKeyDown=function(a){this.delegate.onKeyDown(a)};h.dispose=function(){try{this.delegate.dispose()}catch(a){throw this.health.createError(9,Zu(a)),a;}};var Msc=function(a){this.input=this.navigatable=null;this.prevKeyCode=a.getPrevKeyCode();this.nextKeyCode=a.getNextKeyCode();this.navigatePastEndCallback=a.navigatePastEnd||function(){};this.eventHandler=Au(this)};h=Msc.prototype;
h.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 yv(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new yv(d))});this.eventHandler.listen(this.input,"blur",function(d){return c.onBlur(d)})};h.detach=function(){this.eventHandler.removeAll();this.navigatable=this.input=null};
h.onKeyDown=function(a){if(this.navigatable&&(this.navigatable.onKeyDown(a),!a.hasStoppedPropagationInternal)){var b=i$d(a);switch(a.event.keyCode){case this.nextKeyCode:this.navigatable&&!this.navigatable.next(b)&&(this.navigatable.getActiveItems().length<2||b!==1)&&this.navigatePastEndCallback();a.stopPropagation();a.preventDefault();break;case this.prevKeyCode:this.navigatable.prev(b);a.stopPropagation();a.preventDefault();break;case 36:case 38:this.navigatable.goToIndex(0,b);a.stopPropagation();
a.preventDefault();break;case 35:case 40:this.navigatable.goToIndex(this.navigatable.size()-1,b);a.stopPropagation();a.preventDefault();break;case 65:a.event.platformModifierKey&&(this.navigatable.activateAll(),a.stopPropagation(),a.preventDefault());break;case 32:var c=this.navigatable.getSpotlitItem();c&&(this.navigatable.goToItem(c,b===2?3:b),a.stopPropagation(),a.preventDefault())}}};
h.onClick=function(a,b){if(!this.navigatable)return!1;this.navigatable.goToItem(a,i$d(b));b.stopPropagation();return!0};h.onContextMenu=function(a){if(this.navigatable)this.navigatable.onContextMenu(a,function(){})};h.reset=function(){this.navigatable&&this.navigatable.reset()};var i$d=function(a){return a.event.shiftKey?1:a.event.platformModifierKey?a.event.type==="keydown"?2:3:0};Msc.prototype.onBlur=function(a){this.navigatable&&(this.navigatable.reset(),a.stopPropagation())};var j$d=function(){};j$d.prototype.call=function(a){a()};j$d.prototype.cancel=function(){};var Qsc=RegExp('(([^(\n\r,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a)^"]*)("[^"]*")([^(\n\r,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a)^"]*))+|([^(\n\r,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a)])+',"g"),k$d=RegExp("^([\\s\n\r,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]*)+","g"),l$d=Object.freeze({startIndex:0,length:0,value:""});var Vsc=function(a){a=a||{};a=a.max_height;var b=rv(),c;a&&a>0?c=qv(sv(qv(rv(),'<div class="'+mv("peoplekitComponentsSearchbarImplSearchBarContainer")+'" style="max-height: '+mv(N9(a))+'px">'),L8d(pv('<div peoplekit-id="'+mv("kE8AEc")+'"></div>'))),"</div>"):c=pv('<div class="'+mv("peoplekitComponentsSearchbarImplSearchBarContainer")+'"><div peoplekit-id="'+mv("kE8AEc")+'"></div></div>');return sv(b,c)},Xsc=function(a){var b=a.id,c=a.ariaLabel,d=a.helpText,e=a.shouldAutofocus,f=a.height;a=a.densityClass;
return pv('<div class="'+mv("peoplekitComponentsSearchbarImplSearchInputContainer")+'" style="height: '+mv(N9(f))+'px" role="presentation"><input id="'+mv(b)+'" class="'+mv("peoplekitComponentsSearchbarImplSearchInput")+" "+mv(a)+'" peoplekit-id="'+mv("BbVjBd")+'" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false" aria-label="'+mv(c)+'" aria-autocomplete="list" aria-haspopup="listbox" aria-expanded="false" placeholder="'+mv(d)+'" size="'+mv(d.length)+'" type="text" role="combobox"'+
(e?" autofocus":"")+'><span class="'+mv("peoplekitComponentsSearchbarImplSearchInputWidthMeasurer")+" "+mv(a)+'" peoplekit-id="'+mv("nl4wje")+'"></span></div>')};var m$d=[[37],[512,37],[16,37],[18,37],[18,16,37],[512,16,37],[39],[512,39],[16,39],[18,39],[18,16,39],[512,16,39],[46],[8],[13],[36],[16,36],[512,36],[35],[16,35],[512,35],[38],[512,38],[512,16,38],[16,38],[40],[512,40],[512,16,40],[16,40],[113],[512,67],[512,88],[512,65],[16,69],[16,70]],Av=function(a,b,c,d,e,f,g,k,l,r){var w=this;this.searchBarElement=a;this.chipsBar=b;this.inputContainer=c;this.autocomplete=d;this.selectionsState=e;this.undoRedoStack=f;this.config=l;this.prevQueryValue="";this.isDisposed=
!1;this.pasteLookupNotFoundListeners=[];this.manualLookupNotFoundListeners=[];this.inputElement=wu(c,"BbVjBd");this.inputWidthMeasurer=wu(c,"nl4wje");this.scrollBarElement=a.querySelector('[peoplekit-id="I8ejUe"]');this.updateMinWidthBatcher=new $8d;this.autocompleteBatcher=new j$d;this.lookupSelector=new zv(this.selectionsState,g,k,r);this.eventHandler=Au(this);this.keyboardShortcutHandler=new d$d;this.enterKeyDownListeners=[];this.query=l$d;this.onSelectionCallback=function(){w.onSelect()};this.onSelectionAttemptedCallback=
function(){w.onSelectAttempt()};this.onDeselectionCallback=function(){w.onDeselect()};this.attach();B$(this);n$d(this)};h=Av.prototype;h.select=function(a){return this.chipsBar.select(a)};h.deselect=function(a){this.chipsBar.deselect(a)};h.replace=function(a){return this.chipsBar.replace(a)};h.focus=function(){this.inputElement.focus()};
h.dispose=function(){this.detach();this.autocomplete.dispose();this.chipsBar.dispose();this.lookupSelector.dispose();this.updateMinWidthBatcher.cancel();this.autocompleteBatcher.cancel();this.keyboardShortcutHandler.dispose();this.enterKeyDownListeners.length=0;this.isDisposed=!0};var o$d=function(a,b){a=m(a.pasteLookupNotFoundListeners);for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};Av.prototype.search=function(){C$(this,!1,!0)};
Av.prototype.attach=function(){var a=this;j$(this.selectionsState,this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.add(this.onSelectionAttemptedCallback,2);i$(this.selectionsState,this.onDeselectionCallback);this.eventHandler.listen(this.inputElement,"keydown",function(b){b=new yv(b);a.keyboardShortcutHandler.handleEvent(b);if(!a.inputElement.value)a.undoRedoStack.onKeyDown(b)});this.eventHandler.listen(this.inputElement,"keyup",function(b){a.onKeyUp(b)});this.eventHandler.listen(this.inputElement,
"input",function(){a.onInput()});this.eventHandler.listen(this.inputElement,"paste",function(b){p$d(a,b)});this.eventHandler.listen(this.inputElement,"blur",function(){a.onInputBlur()});this.eventHandler.listen(this.inputElement,"focus",function(){a.onInputFocus()});this.eventHandler.listen(this.inputElement,"click",function(){C$(a)});this.eventHandler.listen(this.searchBarElement,"click",function(){a.inputElement.focus()});q$d(this)};
Av.prototype.detach=function(){this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.remove(this.onSelectionAttemptedCallback);this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.eventHandler.removeAll()};
var C$=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;a.autocompleteBatcher.call(function(){a.query=Ssc(a.inputElement.value,a.inputElement.selectionStart||0);if(c||a.prevQueryValue!==a.query.value||!a.autocomplete.isShown())a.prevQueryValue=a.query.value,a.autocomplete.search(a.query.value,a.inputElement,b||a.config.getShowSuggestions(),function(){})})},s$d=function(a){var b=a.inputElement.value;a.inputElement.value="";r$d(a);var c=lv(b);c=Asc(Cv(c.address)).setDisplayName(c.getName());a.lookupSelector.select([c],
13).then(function(d){if(!a.isDisposed){if(d.length){a.inputElement.value=b;d={notFoundIds:d};for(var e=m(a.manualLookupNotFoundListeners),f=e.next();!f.done;f=e.next())f=f.value,f(d)}a.inputElement.setSelectionRange(a.inputElement.value.length,a.inputElement.value.length);B$(a);C$(a)}});a.undoRedoStack.push()};Av.prototype.onInput=function(){B$(this);C$(this)};
var t$d=function(a,b){if(Ou)return a.searchBarElement.ownerDocument.defaultView.clipboardData;a=b.event_;return a.type==="paste"?a.clipboardData:null},p$d=function(a,b){var c=(a.inputElement.selectionEnd||0)-(a.inputElement.selectionStart||0),d=a.inputElement.value.length;if(!(d>0&&c<d)){var e;c=((e=t$d(a,b))==null?void 0:e.getData("text"))||"";e=Rsc(c);var f=new Map;e=e.map(function(g){var k=lv(g.value),l=k.address?k.getName():"";k=k.address||k.getName();k=k.includes("@")?Cv(k):ltc(k);l=Asc(k).setDisplayName(l);
f.set(String(k),g);return l});b.preventDefault();b.stopPropagation();a.lookupSelector.select(e,5).then(function(g){a.isDisposed||(a.inputElement.value=g.map(function(k){var l;return((l=f.get(String(k)))==null?void 0:l.value.trim())||""}).join(", "),g.length&&o$d(a,{notFoundIds:g}),a.inputElement.setSelectionRange(a.inputElement.value.length,a.inputElement.value.length),B$(a),C$(a))});a.undoRedoStack.push()}};Av.prototype.onInputFocus=function(){C$(this)};Av.prototype.onInputBlur=function(){r$d(this)};
var B$=function(a){a.updateMinWidthBatcher.call(function(){a.inputWidthMeasurer.textContent=a.inputElement.value.length>a.inputElement.placeholder.length?a.inputElement.value:a.inputElement.placeholder;a.inputContainer.style.flexBasis=Math.max(a.inputWidthMeasurer.clientWidth,50)-2+"px"})},q$d=function(a){var b=Du(a.searchBarElement)?39:37,c=function(d){!a.inputElement.value&&a.selectionsState.size()>0&&(a.chipsBar.focusLastChip(),d.stopPropagation())};A$(a.keyboardShortcutHandler,[8],c);A$(a.keyboardShortcutHandler,
[b],c);A$(a.keyboardShortcutHandler,[16,b],c);A$(a.keyboardShortcutHandler,[512,16,b],c);A$(a.keyboardShortcutHandler,[18,16,b],c);A$(a.keyboardShortcutHandler,[512,65],function(d){a.inputElement.value||(a.chipsBar.focusLastChip(),a.chipsBar.activateAllChips(),d.preventDefault(),d.stopPropagation())});A$(a.keyboardShortcutHandler,[40],function(d){a.inputElement.value||a.autocomplete.isShown()||(C$(a,!0),d.preventDefault(),d.stopPropagation())});A$(a.keyboardShortcutHandler,[13],function(d){if(a.inputElement.value){var e=
a.inputElement.value;e=e==null?!1:lv(e).isValid();var f=!a.autocomplete.getNavigatable().size();e&&f&&(s$d(a),d.preventDefault(),d.stopPropagation())}else if(!a.autocomplete.getNavigatable().getActiveItems().length){e=a.selectionsState.asArray();f=m(a.enterKeyDownListeners);for(var g=f.next();!g.done;g=f.next())g=g.value,g(e);d.preventDefault();d.stopPropagation()}});b=m(m$d);for(c=b.next();!c.done;c=b.next())A$(a.keyboardShortcutHandler,c.value,function(d){d.stopPropagation()})};
Av.prototype.onKeyUp=function(a){a.keyCode!==37&&a.keyCode!==39||C$(this)};var r$d=function(a){a.autocompleteBatcher.cancel();a.autocomplete.canHide()&&(a.autocomplete.detach(),a.prevQueryValue="")};
Av.prototype.onSelect=function(){u$d(this);n$d(this);this.scrollBarElement&&(this.scrollBarElement.scrollTop=this.scrollBarElement.scrollHeight);var a;if(((a=this.inputElement.getRootNode())==null?void 0:a.activeElement)===this.inputElement){this.autocomplete.getNavigatable().reset();a=this.inputElement.value;var b=this.query;this.inputElement.value=(a.slice(0,Math.max(b.startIndex-1,0))+a.slice(b.startIndex+b.length)).replace(k$d,"");this.inputElement.setSelectionRange(this.query.startIndex,this.query.startIndex);
C$(this,!1,!1);B$(this)}};Av.prototype.onSelectAttempt=function(){this.onSelect()};Av.prototype.onDeselect=function(){this.autocomplete.isShown()&&C$(this,!1,!1);u$d(this);n$d(this);B$(this);this.selectionsState.size()<=0&&this.inputElement.focus()};
var u$d=function(a){var b,c=a.selectionsState.size()>0?(b=a.config.helpTextWithSelections)!=null?b:a.config.helpText:a.config.helpText;a.inputElement.placeholder!==c&&(a.inputElement.placeholder=c,B$(a))},n$d=function(a){var b=a.inputElement,c=b.setAttribute;a=a.selectionsState.size();c.call(b,"aria-description",(a===0?"None":""+a)+" selected")};var Usc=function(a,b,c){this.selectionsState=a;this.lookupSelector=b;this.undoStack=[];this.redoStack=[];a=10;a=a===void 0?0:a;var d;this.maxUndoStackSize=(d=Bca(fm(c.internal,3)))!=null?d:a;this.push()};Usc.prototype.push=function(){var a=this.selectionsState.asArray().map(Dsc),b=!1;this.undoStack.length!==0&&Tsc(this.undoStack[this.undoStack.length-1],a)||(this.undoStack.push(a),b=!0);this.undoStack.length>this.maxUndoStackSize&&this.undoStack.shift();this.redoStack.length=0;return b};
Usc.prototype.undo=function(){if(this.undoStack.length<=1)return!1;var a=this.undoStack.pop();this.redoStack.push(a);a=this.undoStack[this.undoStack.length-1];this.selectionsState.clear();this.lookupSelector.select(a,11);return!0};Usc.prototype.clear=function(){this.undoStack.length=0;this.push()};
Usc.prototype.onKeyDown=function(a){var b=a.event.keyCode===90&&a.event.platformModifierKey&&a.event.shiftKey;if(a.event.keyCode===89&&a.event.platformModifierKey||b)this.redoStack.length!==0&&(b=this.redoStack.pop(),this.undoStack.push(b),this.selectionsState.clear(),this.lookupSelector.select(b,11)),a.preventDefault(),a.stopPropagation();a.event.keyCode===90&&a.event.platformModifierKey&&!a.event.shiftKey&&(this.undo(),a.preventDefault(),a.stopPropagation())};var Ysc=Pu.getInstance();var btc=function(a,b,c,d,e){var f=this;this.root=a;this.searchBar=b;this.selectionsState=c;this.interactionReporter=d;this.searchbarTracker=e;this.selectionChangedListeners=[];this.selectionChangedAutoBatcher=new $8d;j$(this.selectionsState,function(){f.notifySelectionChanged()});i$(this.selectionsState,function(){f.notifySelectionChanged()});X8d(this.selectionsState,function(){f.notifySelectionChanged()})};h=btc.prototype;h.select=function(a){return this.searchBar.select(a)};h.deselect=function(a){this.searchBar.deselect(a)};
h.replace=function(a){return this.searchBar.replace(a)};h.subscribeToSelectionChanged=function(a){this.selectionChangedListeners.push(a)};h.notifySelectionChanged=function(){var a=this;this.selectionChangedAutoBatcher.call(function(){for(var b=a.selectionsState.asArray(),c=m(a.selectionChangedListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)})};h.focus=function(){this.searchBar.focus()};h.report=function(a){var b=this.selectionsState.asArray();rrc(this.interactionReporter,a,b)};
h.dispose=function(){this.searchbarTracker.stop();this.selectionChangedListeners.length=0;this.selectionsState.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.searchBar.dispose()};var $sc=function(a){a=a||{};a=a.classes;return pv('<div peoplekit-id="'+mv("P3anae")+'"'+(a?' class="'+mv(a)+'"':"")+"></div>")};var v$d={create:function(a,b,c,d){d=d===void 0?new dv:d;return etc(a,b,c,new Y4d,{sessionOptions:d})},createWith:function(a,b,c,d){d=d===void 0?{}:d;return etc(a,b,c,new Y4d,d)},createConfig:function(a){a=a===void 0?new uwd(FW.apiEnv,new vwd(FW.userProfileId)):a;return new x9d(a)}};var w$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(w$d,W);h=w$d.prototype;h.getEnableClearcut=function(){return Fi(this,1)};h.setEnableClearcut=function(a){return Oi(this,1,a)};h.getSocialApplication=function(){return wi(this,2)};h.getSocialApplicationOrUndefined=function(){return vp(this,2)};h.setEventSources=function(a){Gw(this,5,hw,a)};var D$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(D$,W);D$.prototype.getApplication=function(){return wi(this,1)};D$.prototype.setApplication=function(a){return Gn(this,1,a)};D$.prototype.getApplicationOrUndefined=function(){return vp(this,1)};D$.prototype.getIsEnabled=function(){return Fi(this,2)};var x$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(x$d,W);h=x$d.prototype;h.getSuggestMaxResults=function(){return Bm(this,1,10)};h.getSearchMaxResults=function(){return Bm(this,2,10)};h.getCacheStaleSec=function(){return em(this,4,86400)};h.getCacheExpiredSec=function(){return em(this,5,1209600)};h.getRpcTimeoutSec=function(){return em(this,12,60)};h.getSuggestFormat=function(){return wi(this,15,1)};h.getSearchFormat=function(){return wi(this,16,1)};
h.getEnablePersonalizedQueryMatching=function(){return Fi(this,35)};var E$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(E$,W);E$.prototype.getApiKey=function(){return ui(this,1)};E$.prototype.setApiKey=function(a){return oj(this,1,a)};var F$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(F$,W);F$.prototype.getClientId=function(){return ui(this,1,"CLIENT_UNSPECIFIED")};F$.prototype.setClientId=function(a){return oj(this,1,a)};F$.prototype.setAffinityType=function(a){return oj(this,4,a)};var y$d=function(a){return wi(a,5)};F$.prototype.setPhoneCanonicalizationInference=function(a){return Gn(this,19,a)};F$.prototype.getPhoneCanonicalizationInferenceOrUndefined=function(){return vp(this,19)};var z$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(z$d,W);h=z$d.prototype;h.getClient=function(){return X(this,x$d,1)};h.setClient=function(a){return Mi(this,x$d,1,a)};h.hasClient=function(){return xi(this,x$d,1)};h.getGapi=function(){return X(this,E$,2)};h.getPeopleApi=function(){return X(this,F$,3)};h.getClearcut=function(){return X(this,w$d,4)};h.setClearcut=function(a){Mi(this,w$d,4,a)};h.hasClearcut=function(){return xi(this,w$d,4)};
h.getExperiments=function(){return X(this,D$,5)};h.setExperiments=function(a){return Mi(this,D$,5,a)};h.hasExperiments=function(){return xi(this,D$,5)};var A$d=Bsa(z$d);var B$d;var C$d=function(a,b){this.delegate_=a;this.runtimeConfig_=b||new Dwd;a=this.getPeopleApi();wn(a,7,Ci()).length||cx(a,7,[2,8,1,7,10,11]);Cm(a,8,Ci()).length||Gm(a,8,["person.name","person.photo","person.email","person.phone","person.metadata"]);b=m(Cm(a,8,Ci()));for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c){case "person.name":case "person.email":case "person.phone":zc(a,8,Sb,c+".metadata.verified",void 0,Tb)}};
C$d.prototype.getClient=function(){this.delegate_.hasClient()||this.delegate_.setClient(new x$d);return this.delegate_.getClient()};C$d.prototype.getGapi=function(){if(!xi(this.delegate_,E$,2)){var a=this.delegate_,b=new E$;Mi(a,E$,2,b)}return this.delegate_.getGapi()};C$d.prototype.getPeopleApi=function(){if(!xi(this.delegate_,F$,3)){var a=this.delegate_,b=new F$;Mi(a,F$,3,b)}return this.delegate_.getPeopleApi()};
C$d.prototype.getClearcut=function(){this.delegate_.hasClearcut()||this.delegate_.setClearcut(new w$d);return this.delegate_.getClearcut()};var D$d=function(a){a.delegate_.hasExperiments()||a.delegate_.setExperiments(new D$);return a.delegate_.getExperiments()};C$d.prototype.getAuthErrorHandler=function(){return this.runtimeConfig_.getAuthErrorHandler()};var E$d=function(a){a=a.getClient();return Bm(a,6,500)?Math.min(Math.round(Bm(a,6,500)/4),500):500};var F$d;var gw=null;var G$d=function(){};G$d.prototype.processItem=function(){};var H$d=new G$d;var gtc=new Set([10,11]);var I$d=function(a){this.interleaveGroups_=Fi(a,33)},J$d=function(a,b,c){return b.filter(function(d){return d.provenance!==8}).sort(function(d,e){a:{var f=a.interleaveGroups_;switch(c){case 2:d=htc(d,e,f,!0);break a;default:d=itc(d,e,f)}}return d}).map(function(d){return String(d.id)})};var G$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(G$,W);G$.prototype.setPhoneCanonicalizationInference=function(a){return Gn(this,1,a)};G$.prototype.getPhoneCanonicalizationInferenceOrUndefined=function(){return vp(this,1)};var H$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(H$,W);H$.prototype.setDevice=function(a){return Gn(this,1,a)};var K$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(K$d,W);var L$d=function(){var a=new K$d;return Gn(a,1,1)},M$d=function(a,b){return oj(a,2,b)};var N$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(N$d,W);h=N$d.prototype;h.setAffinityType=function(a){return Gn(this,1,a)};h.getQuery=function(){return Fl(this,2)};h.setQuery=function(a){return oj(this,2,a)};h.clearQuery=function(){Hw(this,2)};h.hasQuery=function(){return im(this,2)};h.setClientInformation=function(a){Mi(this,H$,3,a)};h.setMaxResults=function(a){return En(this,4,a)};h.setFormattingOptions=function(a){Mi(this,G$,5,a)};
h.setDelegation=function(a){Mi(this,K$d,6,a)};var O$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(O$d,W);var P$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(P$d,W);h=P$d.prototype;h.getAffinityVersion=function(){return Ww(this,1)};h.setAffinityVersion=function(a){En(this,1,a)};h.getAffinityVersionOrUndefined=function(){return Rw(this,1)};h.setFeature=function(a){return Gw(this,3,O$d,a)};h.setAffinityType=function(a){return oj(this,4,a)};var Dtc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,4)};Y(Dtc,W);var I$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(I$,W);I$.prototype.getValue=function(){return Fl(this,1)};I$.prototype.getValue_legacyNullable=function(){return Fl(this,1)};I$.prototype.setValue=function(a){return oj(this,1,a)};I$.prototype.hasValue=function(){return im(this,1)};var Q$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Q$d,W);h=Q$d.prototype;h.getLoggingId=function(){return fm(this,1,void 0,Xv,uc)};h.setLoggingId=function(a){Mr(this,1,gb(a,!1,!0))};h.getValue=function(){return Yw(this,2)};h.getValue_legacyNullable=function(){return Yw(this,2)};h.setValue=function(a){return Zw(this,2,a)};h.hasValue=function(){return fm(this,2,void 0,void 0,xb)!=null};var R$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(R$d,W);h=R$d.prototype;h.getValue=function(){return Fl(this,1)};h.getValue_legacyNullable=function(){return Fl(this,1)};h.setValue=function(a){return oj(this,1,a)};h.hasValue=function(){return im(this,1)};h.getGivenName=function(){return Fl(this,2)};h.setGivenName=function(a){return oj(this,2,a)};h.hasGivenName=function(){return im(this,2)};h.getFamilyName=function(){return Fl(this,3)};
h.setFamilyName=function(a){return oj(this,3,a)};h.hasFamilyName=function(){return im(this,3)};h.getSourceType=function(){return Vv(this,4)};h.setSourceType=function(a){return Gn(this,4,a)};var S$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(S$d,W);h=S$d.prototype;h.getUrl=function(){return Fl(this,1)};h.setUrl=function(a){return oj(this,1,a)};h.hasUrl=function(){return im(this,1)};h.getType=function(){return Vv(this,2)};h.setType=function(a){return Gn(this,2,a)};h.hasType=function(){return jm(this,2)};h.getGlyph=function(){return Fl(this,3)};h.setGlyph=function(a){return oj(this,3,a)};var J$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(J$,W);h=J$.prototype;h.getPhoto=function(){return X(this,S$d,1)};h.setPhoto=function(a){Mi(this,S$d,1,a)};h.hasPhoto=function(){return xi(this,S$d,1)};h.getName=function(){return X(this,R$d,2)};h.setName=function(a){return Mi(this,R$d,2,a)};h.hasName=function(){return xi(this,R$d,2)};h.getNameOrUndefined=function(){return ayc(this,R$d,2)};h.getAffinity=function(){return X(this,Q$d,3)};
h.hasAffinity=function(){return xi(this,Q$d,3)};var K$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(K$,W);K$.prototype.getStatus=function(){return Vv(this,2)};K$.prototype.setStatus=function(a){return Gn(this,2,a)};K$.prototype.hasStatus=function(){return jm(this,2)};var T$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(T$d,W);var Qtc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qtc,W);Qtc.prototype.getState=function(){return Vv(this,2)};Qtc.prototype.setState=function(a){return Gn(this,2,a)};var U$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(U$d,W);U$d.prototype.getApplication=function(){return wi(this,1)};U$d.prototype.setApplication=function(a){return Gn(this,1,a)};U$d.prototype.getApplicationOrUndefined=function(){return vp(this,1)};var L$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(L$,W);L$.prototype.getValue=function(){return Fl(this,1)};L$.prototype.getValue_legacyNullable=function(){return Fl(this,1)};L$.prototype.setValue=function(a){return oj(this,1,a)};L$.prototype.hasValue=function(){return im(this,1)};var mtc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mtc,W);h=mtc.prototype;h.getProfileId=function(){return Fl(this,1)};h.getProfileId_legacyNullable=function(){return Fl(this,1)};h.setProfileId=function(a){return oj(this,1,a)};h.hasProfileId=function(){return im(this,1)};h.getEmail=function(){return $v(this,2,Kv)};h.getEmail_legacyNullable=function(){return $v(this,2,Kv)};h.setEmail=function(a){return Bo(this,2,Kv,a)};
h.hasEmail=function(){return lr(this,2,Kv)!=null};h.getPhone=function(){return $v(this,3,Kv)};h.getPhone_legacyNullable=function(){return $v(this,3,Kv)};h.setPhone=function(a){return Bo(this,3,Kv,a)};h.getClientData=function(){return Fl(this,4)};h.hasClientData=function(){return im(this,4)};var Kv=[2,3];var V$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(V$d,W);h=V$d.prototype;h.getDisplayValue=function(){return Fl(this,1)};h.getCanonicalValue=function(){return Fl(this,2)};h.setCanonicalValue=function(a){return oj(this,2,a)};h.hasCanonicalValue=function(){return im(this,2)};h.getOriginalValue=function(){return Fl(this,3)};var W$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(W$d,W);var X$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(X$d,W);h=X$d.prototype;h.getStatus=function(){return Vv(this,1)};h.setStatus=function(a){return Gn(this,1,a)};h.hasStatus=function(){return jm(this,1)};h.getClientData=function(){return Fl(this,2)};h.hasClientData=function(){return im(this,2)};var ptc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ptc,W);h=ptc.prototype;h.getIdCase=function(){return wo(this,M$)};h.getProfileId=function(){return $v(this,1,M$)};h.getProfileId_legacyNullable=function(){return $v(this,1,M$)};h.setProfileId=function(a){return Bo(this,1,M$,a)};h.hasProfileId=function(){return lr(this,1,M$)!=null};h.getContactId=function(){return $v(this,2,M$)};h.setContactId=function(a){return Bo(this,2,M$,a)};var M$=[1,2];var Y$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Y$d,W);h=Y$d.prototype;h.getValueCase=function(){return wo(this,Iv)};h.getDisplayInfo=function(){return X(this,J$,1)};h.hasDisplayInfo=function(){return xi(this,J$,1)};h.getEmail=function(){return bm(this,L$,2,Iv)};h.setEmail=function(a){return Wo(this,2,Iv,a)};h.hasEmail=function(){return Qi(this,L$,2,Iv)};h.getPhone=function(){return bm(this,V$d,3,Iv)};h.setPhone=function(a){return Wo(this,3,Iv,a)};
h.getIsSelf=function(){return Nv(this,6)};h.getTypeLabel=function(){return Fl(this,10)};h.getDisambiguationLabel=function(){return X(this,I$,14)};h.setDisambiguationLabel=function(a){Mi(this,I$,14,a)};var Iv=[2,3,4];var Z$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Z$d,W);h=Z$d.prototype;h.getDisplayInfo=function(){return X(this,J$,1)};h.hasDisplayInfo=function(){return xi(this,J$,1)};h.getMembersList=function(){return Bi(this,Y$d,2,Ci())};h.setMembersList=function(a){return Ni(this,2,a)};h.getLabelId=function(){return Fl(this,3)};var Mv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,5)};Y(Mv,W);Mv.prototype.getIsPlaceholder=function(){return Fi(this,2)};Mv.prototype.setIsPlaceholder=function(a){Oi(this,2,a)};Mv.prototype.getContactId=function(){return pn(this,4)};Mv.prototype.setContactId=function(a){return vn(this,4,a)};var $$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($$d,W);$$d.prototype.getAffinity=function(){return X(this,Q$d,2)};$$d.prototype.hasAffinity=function(){return xi(this,Q$d,2)};var $tc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($tc,W);$tc.prototype.getIdCase=function(){return wo(this,auc)};var auc=[1,2];var aae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aae,W);h=aae.prototype;h.getDisplayInfo=function(){return X(this,J$,1)};h.hasDisplayInfo=function(){return xi(this,J$,1)};h.getMembersList=function(){return Bi(this,$$d,2,Ci())};h.setMembersList=function(a){return Ni(this,2,a)};h.getGroupId=function(){return Fl(this,4)};h.setGroupId=function(a){oj(this,4,a)};h.hasGroupId=function(){return im(this,4)};var N$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(N$,W);N$.prototype.getDataCase=function(){return wo(this,bae)};N$.prototype.clearData=function(){return Iw(this,bae)};N$.prototype.getGroup=function(){return bm(this,aae,2,bae)};N$.prototype.setGroup=function(a){Wo(this,2,bae,a)};var bae=[1,2,3];var cae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cae,W);var dae=new uB("/peoplestack.PeopleStackAutocompleteService/Autocomplete",N$d,cae,function(a){return a.serialize()},vi(cae));var eae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eae,W);h=eae.prototype;h.setAffinityType=function(a){return Gn(this,1,a)};h.setClientInformation=function(a){Mi(this,H$,2,a)};h.getName=function(){return Fl(this,3)};h.setName=function(a){return oj(this,3,a)};h.hasName=function(){return im(this,3)};h.getNameOrUndefined=function(){return Sw(this,3)};var fae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fae,W);fae.prototype.getGroup=function(){return X(this,aae,1)};fae.prototype.setGroup=function(a){Mi(this,aae,1,a)};var gae=new uB("/peoplestack.PeopleStackAutocompleteService/CreateGroup",eae,fae,function(a){return a.serialize()},vi(fae));var Tv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Tv,W);h=Tv.prototype;h.getIdCase=function(){return wo(this,Uv)};h.getEmail=function(){return $v(this,1,Uv)};h.getEmail_legacyNullable=function(){return $v(this,1,Uv)};h.setEmail=function(a){return Bo(this,1,Uv,a)};h.hasEmail=function(){return lr(this,1,Uv)!=null};h.getPhone=function(){return $v(this,2,Uv)};h.getPhone_legacyNullable=function(){return $v(this,2,Uv)};h.setPhone=function(a){return Bo(this,2,Uv,a)};
h.getProfileId=function(){return $v(this,3,Uv)};h.getProfileId_legacyNullable=function(){return $v(this,3,Uv)};h.setProfileId=function(a){return Bo(this,3,Uv,a)};h.hasProfileId=function(){return lr(this,3,Uv)!=null};h.getContactId=function(){return $v(this,5,Uv)};h.setContactId=function(a){return Bo(this,5,Uv,a)};var Uv=[1,2,3,4,5];var O$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(O$,W);O$.prototype.setAffinityType=function(a){return Gn(this,1,a)};O$.prototype.setClientInformation=function(a){Mi(this,H$,2,a)};var hae=function(a,b){Ni(a,3,b)};O$.prototype.setIds=function(a){return Gw(this,3,Tv,a)};O$.prototype.setFormattingOptions=function(a){Mi(this,G$,4,a)};O$.prototype.setDelegation=function(a){Mi(this,K$d,5,a)};var iae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iae,W);iae.prototype.clearResult=function(){return Iw(this,jae)};iae.prototype.getId=function(){return X(this,Tv,1)};iae.prototype.setId=function(a){return Mi(this,Tv,1,a)};var jae=[2,3];var kae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kae,W);var lae=new uB("/peoplestack.PeopleStackAutocompleteService/Lookup",O$,kae,function(a){return a.serialize()},vi(kae));var mae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mae,W);mae.prototype.setAffinityType=function(a){return Gn(this,1,a)};mae.prototype.setClientInformation=function(a){Mi(this,H$,2,a)};mae.prototype.setDelegation=function(a){Mi(this,K$d,3,a)};var nae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nae,W);var oae=new uB("/peoplestack.PeopleStackAutocompleteService/Warmup",mae,nae,function(a){return a.serialize()},vi(nae));var pae=function(a){var b={unaryInterceptors:[new g7d]};b=b||{};b.format="jspb";this.client_=new aIc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};pae.prototype.autocomplete=function(a,b,c){return fC(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete",a,b||{},dae,c)};pae.prototype.lookup=function(a,b,c){return fC(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup",a,b||{},lae,c)};
pae.prototype.createGroup=function(a,b,c){return fC(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/CreateGroup",a,b||{},gae,c)};var ew=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ew,W);h=ew.prototype;h.getTimestamp=function(){return pn(this,1)};h.setTimestamp=function(a){return vn(this,1,a)};h.hasTimestamp=function(){return on(this,1)};h.getAffinityVersion=function(){return Bm(this,2)};h.setAffinityVersion=function(a){En(this,2,a)};h.getAffinityVersionOrUndefined=function(){return Rw(this,2)};h.getNextPageToken=function(){return ui(this,4)};var P$=function(a){return Oi(a,5,!0)};
ew.prototype.getCode=function(){return wi(this,6)};ew.prototype.setCode=function(a){return Gn(this,6,a)};ew.prototype.getCodeOrUndefined=function(){return vp(this,6)};var ztc=new vA(417869898,Ov,Mv);var Etc=new vA(417866180,Ov,Dtc);var qae=function(a){a=a==null?"":String(a);for(var b=0,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a.codePointAt(c);return b},xtc=function(a){if(!a)return 0;a=Array.from(a).map(qae);a.sort();for(var b=1,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a[c];return b};var jtc=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]]);var rae=function(a){this.leanResponseProcessorConfig_=a},sae=function(a,b,c,d){d=d===void 0?!1:d;for(var e=[],f=Ctc(b),g=[],k=m(Bi(b,Y$d,1,Ci())),l=k.next();!l.done;l=k.next()){l=l.value;var r=otc(l);if(r.equals(Lv)){if(!a.leanResponseProcessorConfig_.allowEmptyTargets&&!d)continue;r=ytc(l);if(!r)continue;r=pvc(r)}g.push(String(r));var w=void 0,x=void 0;r={id:r,containerIds:stc(l),coalescedKeys:g,isMe:!!l.getIsSelf(),dataSource:ttc(b,l),provenance:c,isPrimary:wtc((w=l.getDisplayInfo())!=null?w:null),
itemAffinity:vtc(b),fieldAffinity:utc((x=l.getDisplayInfo())!=null?x:null),contactMethod:l,person:b};f&&(r.resultExtendedData=f);if(w=Ftc(l))r.targetExtendedData=w;l=Bi(l,W$d,15,Ci());l.length>0&&(r.preferredSearchTerms=l.map(function(C){return Fl(C,1)}));e.push(r)}e.length&&e.every(function(C){return!C.isPrimary})&&(e[0].isPrimary=!0);return e},tae=function(a,b,c){var d=ovc(ktc(Fl(b,5)),b.getGroupId()||""),e=b.getMembersList().map(function(l){return sae(a,l,8,!0)}),f=e.filter(function(l){return l&&
l.length}).map(function(l){return String(l[0].id)}),g,k;d=[{id:d,containerIds:[d],memberKeys:f,totalMemberCount:(g=Rw(b,3))!=null?g:void 0,provenance:c,isPrimary:!0,itemAffinity:utc((k=b.getDisplayInfo())!=null?k:null),fieldAffinity:-Infinity,group:b}];b=m(e);for(c=b.next();!c.done;c=b.next())d.push.apply(d,q(c.value));return d},uae=function(a,b){var c=dwd(a.getLabelId()||""),d=a.getMembersList().map(function(g){if(g.hasEmail()&&g.getEmail().getValue()){var k,l;var r={id:Cv(g.getEmail().getValue()),
containerIds:stc(g),contactMethod:g,provenance:8,isMe:!1,dataSource:1,isPrimary:wtc((k=g.getDisplayInfo())!=null?k:null),itemAffinity:-Infinity,fieldAffinity:utc((l=g.getDisplayInfo())!=null?l:null)};if(g=Ftc(g))r.targetExtendedData=g}else r=null;return r}).filter(Boolean),e=d.map(function(g){return String(g.id)}),f;return[{id:c,containerIds:[c],memberKeys:e,totalMemberCount:d.length,provenance:b,dataSource:1,isPrimary:!0,itemAffinity:utc((f=a.getDisplayInfo())!=null?f:null),fieldAffinity:-Infinity,
isMe:!1,contactLabel:a}].concat(q(d))},vae=function(a,b,c){switch(b.getDataCase()){case 1:return sae(a,bm(b,$$d,1,bae),c);case 2:return tae(a,b.getGroup(),c);case 3:return uae(bm(b,Z$d,3,bae),c);default:return[]}},wae=function(a,b,c){return Bi(b,N$,1,Ci()).flatMap(function(d){return vae(a,d,c)})};var fw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fw,W);fw.prototype.getSessionState=function(){return X(this,AW,1)};fw.prototype.setSessionState=function(a){return Mi(this,AW,1,a)};fw.prototype.hasSessionState=function(){return xi(this,AW,1)};var Rv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rv,W);Rv.prototype.hasNoChanges=function(){return Ei(this,12)};var Qv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qv,W);Qv.prototype.getEventType=function(){return wi(this,1)};Qv.prototype.setEventType=function(a){return Gn(this,1,a)};var Sv=function(a,b){return Gn(a,2,b)},Gtc=function(a,b){return Gn(a,3,b)};h=Qv.prototype;h.getErrorType=function(){return wi(this,6)};h.setErrorType=function(a){return Gn(this,6,a)};h.hasErrorType=function(){return jm(this,6)};h.getIdType=function(){return wi(this,8)};
h.setIdType=function(a){Gn(this,8,a)};h.getResultIndex=function(){return Bm(this,9)};h.setResultIndex=function(a){En(this,9,a)};h.getToken=function(){return ui(this,10)};h.setToken=function(a){oj(this,10,a)};h.hasToken=function(){return im(this,10)};h.getCacheState=function(){return X(this,l$,11)};h.setCacheState=function(a){return Mi(this,l$,11,a)};h.hasCacheState=function(){return xi(this,l$,11)};h.getQueryLength=function(){return Bm(this,14)};h.setQueryLength=function(a){return En(this,14,a)};
h.hasQueryLength=function(){return kn(this,14)};h.getItemCount=function(){return Bm(this,15)};h.setItemCount=function(a){return En(this,15,a)};h.hasItemCount=function(){return kn(this,15)};h.getLookupInfo=function(){return X(this,Rv,16)};h.getMutableLookupInfo=function(){return Ii(this,Rv,16)};h.setLookupInfo=function(a){return Mi(this,Rv,16,a)};h.hasLookupInfo=function(){return xi(this,Rv,16)};h.getQueryScope=function(){return wi(this,17)};h.setQueryScope=function(a){return Gn(this,17,a)};
h.hasQueryScope=function(){return jm(this,17)};var Itc=new Map([[0,1],[1,2],[2,3],[3,4]]);var xae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xae,W);h=xae.prototype;h.getLabel=function(){return Vv(this,1)};h.setLabel=function(a){return Gn(this,1,a)};h.hasLabel=function(){return jm(this,1)};h.getItemCount=function(){return Ww(this,2)};h.setItemCount=function(a){return En(this,2,a)};h.hasItemCount=function(){return kn(this,2)};h.getLookupInfo=function(){return X(this,Rv,3)};h.getMutableLookupInfo=function(){return Ii(this,Rv,3)};
h.setLookupInfo=function(a){return Mi(this,Rv,3,a)};h.hasLookupInfo=function(){return xi(this,Rv,3)};h.getQueryLength=function(){return Ww(this,4)};h.setQueryLength=function(a){return En(this,4,a)};h.hasQueryLength=function(){return kn(this,4)};h.getQueryScope=function(){return wi(this,5)};h.setQueryScope=function(a){return Gn(this,5,a)};h.hasQueryScope=function(){return jm(this,5)};var yae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yae,W);var zae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zae,W);h=zae.prototype;h.getLabel=function(){return Vv(this,1)};h.setLabel=function(a){return Gn(this,1,a)};h.hasLabel=function(){return jm(this,1)};h.getStatus=function(){return Vv(this,2)};h.setStatus=function(a){return Gn(this,2,a)};h.hasStatus=function(){return jm(this,2)};h.setLatencyUsec=function(a){vn(this,3,a)};h.getResultIndex=function(){return Ww(this,4)};h.setResultIndex=function(a){En(this,4,a)};
h.getDataSource=function(){return Vv(this,7)};h.setDataSource=function(a){return Gn(this,7,a)};h.hasDataSource=function(){return jm(this,7)};h.getItemCount=function(){return Ww(this,8)};h.setItemCount=function(a){return En(this,8,a)};h.hasItemCount=function(){return kn(this,8)};h.getResources=function(){return X(this,yae,9)};h.getLookupInfo=function(){return X(this,Rv,10)};h.getMutableLookupInfo=function(){return Ii(this,Rv,10)};h.setLookupInfo=function(a){return Mi(this,Rv,10,a)};
h.hasLookupInfo=function(){return xi(this,Rv,10)};h.getStatusCode=function(){return wi(this,11,2)};h.setStatusCode=function(a){Gn(this,11,a)};h.hasStatusCode=function(){return jm(this,11)};h.getQueryLength=function(){return Ww(this,13)};h.setQueryLength=function(a){return En(this,13,a)};h.hasQueryLength=function(){return kn(this,13)};h.getQueryScope=function(){return wi(this,14)};h.setQueryScope=function(a){return Gn(this,14,a)};h.hasQueryScope=function(){return jm(this,14)};var Aae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Aae,W);h=Aae.prototype;h.getDataSource=function(){return Vv(this,3)};h.setDataSource=function(a){return Gn(this,3,a)};h.hasDataSource=function(){return jm(this,3)};h.getType=function(){return Vv(this,4)};h.setType=function(a){return Gn(this,4,a)};h.hasType=function(){return jm(this,4)};h.getValue=function(){return pn(this,2,mb(1))};h.setValue=function(a){return vn(this,2,a)};
h.hasValue=function(){return on(this,2)};h.getLabel=function(){return Fl(this,1)};h.setLabel=function(a){return oj(this,1,a)};h.hasLabel=function(){return im(this,1)};var Bae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bae,W);h=Bae.prototype;h.getStatusCode=function(){return wi(this,5,2)};h.setStatusCode=function(a){Gn(this,5,a)};h.hasStatusCode=function(){return jm(this,5)};h.getLabel=function(){return Fl(this,1)};h.setLabel=function(a){return oj(this,1,a)};h.hasLabel=function(){return im(this,1)};h.setCause=function(a){oj(this,2,a)};h.getType=function(){return Vv(this,3)};h.setType=function(a){return Gn(this,3,a)};
h.hasType=function(){return jm(this,3)};var Cae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cae,W);h=Cae.prototype;h.getType=function(){return Vv(this,3)};h.setType=function(a){return Gn(this,3,a)};h.hasType=function(){return jm(this,3)};h.setLatencyUsec=function(a){vn(this,2,a)};h.getLabel=function(){return Fl(this,1)};h.setLabel=function(a){return oj(this,1,a)};h.hasLabel=function(){return im(this,1)};var Dae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dae,W);Dae.prototype.getLabel=function(){return Vv(this,1)};Dae.prototype.setLabel=function(a){return Gn(this,1,a)};Dae.prototype.hasLabel=function(){return jm(this,1)};var Eae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Eae,W);h=Eae.prototype;h.getLabel=function(){return Vv(this,1)};h.setLabel=function(a){return Gn(this,1,a)};h.hasLabel=function(){return jm(this,1)};h.getStatus=function(){return Vv(this,2)};h.setStatus=function(a){return Gn(this,2,a)};h.hasStatus=function(){return jm(this,2)};h.setLatencyUsec=function(a){vn(this,3,a)};h.hasErrorCode=function(){return on(this,4)};h.getStatusCode=function(){return wi(this,7,2)};
h.setStatusCode=function(a){Gn(this,7,a)};h.hasStatusCode=function(){return jm(this,7)};var Vuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vuc,W);h=Vuc.prototype;h.getClientInterface=function(){return X(this,c$,1)};h.setClientInterface=function(a){return Mi(this,c$,1,a)};h.getEventType=function(){return Vv(this,3)};h.getEventType_legacyNullable=function(){return Vv(this,3)};h.setEventType=function(a){return Gn(this,3,a)};h.getCount=function(){return X(this,Aae,4)};h.getMutableCount=function(){return Ii(this,Aae,4)};
h.setCount=function(a){return Mi(this,Aae,4,a)};h.getMutableLatency=function(){return Ii(this,Cae,5)};h.setLatency=function(a){Mi(this,Cae,5,a)};h.getError=function(){return X(this,Bae,6)};h.setError=function(a){Mi(this,Bae,6,a)};h.hasError=function(){return xi(this,Bae,6)};var Fae=function(a,b,c,d,e){this.leanResponseProcessor_=a;this.grpcClient_=b;this.clientConfig_=c;e?a=Htc(e):(a=new Qv,Gtc(a.setEventType(4),4));this.sourceInfo_=a;this.provenance_=e?2:1;this.trackers_=d;this.query_=e;this.affinity_=y$d(c.getPeopleApi());this.searchMaxResults_=c.getClient().getSearchMaxResults();d=c.getClient();this.cacheSize_=Bm(d,3,500);this.phoneCanonicalizationInference_=c.getPeopleApi().getPhoneCanonicalizationInferenceOrUndefined();var f;this.delegatorId_=(f=c.runtimeConfig_.delegatorId_)!=
null?f:""};Fae.prototype.getMetric=function(){return Gae(this.trackers_,this.sourceInfo_)};
Fae.prototype.send=function(a){var b=new N$d;b.setAffinityType(this.affinity_).setQuery(this.query_).setClientInformation((new H$).setDevice(1));this.query_.length?b.setMaxResults(this.searchMaxResults_):b.setMaxResults(this.cacheSize_);this.phoneCanonicalizationInference_!=null&&b.setFormattingOptions((new G$).setPhoneCanonicalizationInference(this.phoneCanonicalizationInference_));this.delegatorId_&&b.setDelegation(M$d(L$d(),this.delegatorId_));return this.grpcClient_.autocomplete(b,a)};
Fae.prototype.processResponse=function(a){var b=wae(this.leanResponseProcessor_,a,this.provenance_),c=new ew;xi(a,P$d,2)&&c.setAffinityVersion(X(a,P$d,2).getAffinityVersion());return{data:b,metadata:c}};Fae.prototype.close=function(){};var Hae=function(a,b,c,d,e,f){this.leanResponseProcessor_=a;this.grpcClient_=b;this.clientConfig_=c;a=new Qv;Gtc(a.setEventType(4),7).setIdType(e);this.sourceInfo_=a;this.provenance_=3;this.keys_=f;this.type_=e;this.trackers_=d;this.affinity_=y$d(c.getPeopleApi());this.phoneCanonicalizationInference_=c.getPeopleApi().getPhoneCanonicalizationInferenceOrUndefined();var g;this.delegatorId_=(g=c.runtimeConfig_.delegatorId_)!=null?g:""};Hae.prototype.getMetric=function(){return Gae(this.trackers_,this.sourceInfo_)};
Hae.prototype.send=function(a){var b=this,c=new O$;c.setAffinityType(this.affinity_).setClientInformation((new H$).setDevice(1));hae(c,this.keys_.map(function(d){return Ptc(b.type_,d)}).filter(function(d){return!!d}));this.phoneCanonicalizationInference_!=null&&c.setFormattingOptions((new G$).setPhoneCanonicalizationInference(this.phoneCanonicalizationInference_));this.delegatorId_&&c.setDelegation(M$d(L$d(),this.delegatorId_));return this.grpcClient_.lookup(c,a)};
Hae.prototype.processResponse=function(a){var b=this.leanResponseProcessor_,c=this.provenance_,d=new Map;a=m(Bi(a,iae,1,Ci()));for(var e=a.next();!e.done;e=a.next()){var f=e.value;if(Qi(f,N$,2,jae))switch(e=vae(b,bm(f,N$,2,jae),c),f.getId().getIdCase()){case 1:d.set(f.getId().getEmail_legacyNullable(),e);break;case 2:d.set(f.getId().getPhone_legacyNullable(),e);break;case 3:d.set(f.getId().getProfileId_legacyNullable(),e);break;case 4:var g=d,k=g.set;f=f.getId();f=$v(f,4,Uv);k.call(g,f,e);break;case 5:d.set(f.getId().getContactId(),
e)}}return{data:d,metadata:new ew}};Hae.prototype.close=function(){};var Iae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Iae,W);var Jae=new vA(342338249,zwd,Iae);var Kae=function(){};Kae.prototype.write=function(a,b){var c=new Iae;b=Mi(c,cae,1,b);Pv(a,Jae,b)};Kae.prototype.read=function(a){return(a=a.getExtension(Jae))?X(a,cae,1):null};var Lae=function(a,b,c){this.grpcClient_=a;this.clientConfig_=b;this.sourceInfo_=Htc("");this.trackers_=c;this.affinity_=y$d(b.getPeopleApi());var d;this.delegatorId_=(d=b.runtimeConfig_.delegatorId_)!=null?d:""};Lae.prototype.getMetric=function(){return Gae(this.trackers_,this.sourceInfo_)};
Lae.prototype.send=function(a){var b=new mae;b.setAffinityType(this.affinity_).setClientInformation((new H$).setDevice(1));this.delegatorId_&&b.setDelegation(M$d(L$d(),this.delegatorId_));var c=this.grpcClient_;return fC(c.client_,c.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup",b,a||{},oae)};Lae.prototype.processResponse=function(){return{data:[],metadata:new ew}};Lae.prototype.close=function(){};var Mae=new PFc;var Q$=function(a,b,c){this.delegate_=a;this.runtimeConfig_=b;this.offlineResponse_=c};Q$.prototype.send=function(a){var b=this;return y(function(c){return b.runtimeConfig_.isOffline_()?c.return(Mae):c.return(b.delegate_.send(a))})};Q$.prototype.getMetric=function(){return this.delegate_.getMetric()};Q$.prototype.processResponse=function(a){return a===Mae?this.offlineResponse_:this.delegate_.processResponse(a)};Q$.prototype.close=function(a){this.delegate_.close(a)};
var Nae={data:[],metadata:P$(new ew).setCode(14)},Oae={data:new Map,metadata:P$(new ew).setCode(14)};P$(new ew).setCode(14);P$(new ew).setCode(14);P$(new ew).setCode(14);P$(new ew).setCode(14);P$(new ew).setCode(14);P$(new ew).setCode(14);var Pae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Pae,W);h=Pae.prototype;h.getTimestamp=function(){return pn(this,1)};h.setTimestamp=function(a){return vn(this,1,a)};h.hasTimestamp=function(){return on(this,1)};h.getOwner=function(){return ui(this,2)};h.setOwner=function(a){return oj(this,2,a)};var Qae=new vA(342656659,zwd,Pae);var Rae=function(a,b,c,d,e){this.delegate_=a;this.offlineStorage_=b;this.offlineDataTransformer_=c;this.owner_=d;this.storageTaskDelayMillis_=e;this.offlineMetadata_=null};Rae.prototype.store_=function(a,b){var c=new zwd;Pv(c,Qae,(new Pae).setTimestamp(b).setOwner(String(this.owner_)));this.offlineDataTransformer_.write(c,a);this.offlineStorage_.store(c)};
var Sae=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return Wd(d,2),z(d,a.offlineStorage_.fetch(),4);if(d.nextAddress!=2){b=d.yieldResult;if(!b)return d.return(null);a.offlineMetadata_=b.getExtension(Qae);c=a.offlineMetadata_?vv(a.offlineMetadata_.getOwner()):Lv;return a.owner_.equals(c)?d.return(a.offlineDataTransformer_.read(b)):d.return(null)}$d(d);return d.return(null)})};
Rae.prototype.send=function(a){var b=this,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return Wd(k,2),z(k,b.delegate_.send(a),4);case 4:c=k.yieldResult;d=Date.now();if(c!==Mae){k.jumpTo(5);break}return z(k,Sae(b),6);case 6:return e=k.yieldResult,k.return(e||Mae);case 5:return setTimeout(function(){b.store_(c,d)},b.storageTaskDelayMillis_),k.return(c);case 2:return f=$d(k),z(k,Sae(b),7);case 7:return(g=k.yieldResult)?k.return(g):k.return(Promise.reject(f))}})};
Rae.prototype.getMetric=function(){return this.delegate_.getMetric()};Rae.prototype.processResponse=function(a){a=this.delegate_.processResponse(a);if(!a||!this.offlineMetadata_||!this.offlineMetadata_.hasTimestamp())return a;a.metadata.setTimestamp(Ym(this.offlineMetadata_.getTimestamp()));return a};Rae.prototype.close=function(a){this.delegate_.close(a)};var Tae=function(a,b){this.config_=a;this.trackers_=b;b=this.config_;var c;(c=b.runtimeConfig_.getApiKey())||(b.runtimeConfig_.getPeopleApiEnv()===7?(b=b.getGapi(),b=ui(b,2)):b=b.getGapi().getApiKey(),c=b);b={apiKey:c,timeoutSec:a.getClient().getRpcTimeoutSec(),authErrorHandler:a.runtimeConfig_.getAuthErrorHandler(),customAuthHeaders:a.runtimeConfig_.customAuthHeaders_};this.dispatcher_=new i7d(b);b=Rpc("peoplestack-pa",a.runtimeConfig_.getPeopleApiEnv());this.grpcPeopleStackClient_=new pae(b);this.offlineDataTransformer_=
new Kae;a=a.getClient();a=Fi(a,22);this.leanResponseProcessor_=new rae({allowEmptyTargets:a})};
Tae.prototype.loadRankedItems=function(){var a=new Fae(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,"");a=new Q$(a,this.config_.runtimeConfig_,Nae);var b=this.config_,c=this.offlineDataTransformer_,d=b.runtimeConfig_.offlineStorage_;if(d){var e=b.runtimeConfig_.getUserEmail();e&&(e=Cv(e),b=b.getPeopleApi(),b=Bm(b,14,5E3),a=new Rae(a,d,c,e,b))}return k7d(this.dispatcher_,a)};
Tae.prototype.warmUpServer=function(){var a=new Lae(this.grpcPeopleStackClient_,this.config_,this.trackers_);a=new Q$(a,this.config_.runtimeConfig_,Nae);return k7d(this.dispatcher_,a)};Tae.prototype.loadAutocompleteItems=function(a){var b=this.leanResponseProcessor_;var c=this.grpcPeopleStackClient_,d=this.config_,e=this.trackers_;a=a.getPrefix();b=new Fae(b,c,d,e,a);b=new Q$(b,this.config_.runtimeConfig_,Nae);return k7d(this.dispatcher_,b)};
Tae.prototype.loadLookupItems=function(a,b){a=new Hae(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,a,b);a=new Q$(a,this.config_.runtimeConfig_,Oae);return k7d(this.dispatcher_,a)};var Uae=function(a,b){this.isOrgStateEnabled_=a.runtimeConfig_.isOrgStateEnabled_;this.delegate_=b};Uae.prototype.processItem=function(a){this.delegate_.processItem(a);a=a.target;this.isOrgStateEnabled_||a.setOrgState(0)};var Rtc=new Map([[1,1],[2,2]]);var Vae=function(a,b,c){this.encryptionSupport_=a;this.certificateStatus_=b;this.certificateExpirySec_=c};Vae.prototype.getEncryptionSupport=function(){return this.encryptionSupport_};Vae.prototype.getCertificateStatus=function(){return this.certificateStatus_};Vae.prototype.getCertificateExpirySec=function(){return this.certificateExpirySec_};var tvc=function(a,b,c){a=a===void 0?1:a;b=b===void 0?0:b;c=c===void 0?!1:c;a===4&&Date.now()/1E3>b&&(a=3);return new Vae(a===4?c?4:3:c?2:1,a,b)};var uvc=function(a,b){this.reachabilityStatus=a;this.clientData=b};uvc.prototype.getReachabilityStatus=function(){return this.reachabilityStatus};uvc.prototype.getClientData=function(){return this.clientData};var lw=function(){this.iconUrl_=this.altText_=""};lw.prototype.getAltText=function(){return this.altText_};lw.prototype.setAltText=function(a){this.altText_=a||"";return this};lw.prototype.getIconUrl=function(){return this.iconUrl_};lw.prototype.setIconUrl=function(a){this.iconUrl_=a||"";return this};var Wtc=new Map([[3,3],[1,2],[2,1]]),Wae=new Map([[2,1],[4,2],[3,3],[1,4]]),Xae=function(a){this.delegate_=a};
Xae.prototype.processItem=function(a){if(a.person||a.contactMethod){switch(a.contactMethod.getValueCase()){case 2:var b=a.contactMethod.getEmail();var c=Wv(b.getValue()),d=a.id.normalizedValue_;c=Yv(a.id).setValue(c).setCanonicalValue(d);if(Bi(b,K$,2,Ci()).length||xi(b,T$d,3)){d=1;var e=0;if(Bi(b,K$,2,Ci()).length){var f=Bi(b,K$,2,Ci())[0],g=Qb(fm(f,1));e=(g==null?null:Ym(g))||e;d=Wae.get(f.getStatus())||d}if(f=xi(b,T$d,3))f=X(b,T$d,3),f=!!Nv(f,1);d=tvc(d,e,f)}else d=null;d&&c.setEmailSecurityInfo(d);
xi(b,U$d,4)&&(b=Stc(X(b,U$d,4)),c.setOrgState(b));Nv(a.contactMethod,7)&&c.setResultType(2);b=c;break;case 3:c=a.contactMethod.getPhone();b=Wv(c.getCanonicalValue());c=Wv(c.getOriginalValue())||Wv(c.getDisplayValue())||b;b=Yv(a.id).setValue(c).setCanonicalValue(b);break;case 4:b=bm(a.contactMethod,mtc,4,Iv);b=Ztc(a,b);break;default:b=Yv(a.id||Lv)}b.setDataSource(a.dataSource||0);a.containerIds&&(b.sourceIds_=a.containerIds||[]);b.setIsMe(!!a.isMe);a.person&&a.person.hasAffinity()&&(c=b,d=c.setPersonLoggingId,
e=a.person.getAffinity(),e=xsa(fm(e,1,void 0,Xv,uc)),d.call(c,Ttc(e||"")));a.contactMethod.hasDisplayInfo()&&Xtc(b,a.contactMethod.getDisplayInfo());im(a.contactMethod,10)&&b.setTagList([(new lw).setAltText(a.contactMethod.getTypeLabel())]);if(xi(a.contactMethod,X$d,13)){d=X(a.contactMethod,X$d,13);switch(d.getStatus()){case 1:c=1;break;default:c=0}d=d.hasClientData()?d.getClientData():void 0;b.setReachabilityInfo(new uvc(c,d))}a.targetExtendedData&&b.setExtendedData(a.targetExtendedData);a.target=
b}else a.group?buc(a,a.group.getDisplayInfo()):a.contactLabel&&buc(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 Yae=function(a,b){this.metrics_=a;this.state_=new Z9(b);this.source=b;this.label_="total"};Yae.prototype.call=function(){this.metrics_.count(this.state_);this.metrics_.start(this.state_,this.label_)};Yae.prototype.result=function(a){this.metrics_.stop(this.state_,this.label_);this.metrics_.status(this.state_,a)};var Zae=function(a,b){this.metrics_=a;this.state_=new Z9(b)};h=Zae.prototype;h.start=function(a){this.metrics_.start(this.state_,a)};h.stop=function(a){this.metrics_.stop(this.state_,a)};h.count=function(){this.metrics_.count(this.state_)};h.latency=function(){this.metrics_.latency(this.state_)};h.error=function(){this.metrics_.error(this.state_)};
h.status=function(a,b,c){b=b===void 0?0:b;c=c===void 0?0:c;if(b){var d=this.state_.source();Gn(d,13,b)}c&&(b=this.state_.source(),En(b,12,c));this.metrics_.status(this.state_,a)};h.logError=function(a,b){this.metrics_.logError(a,b)};var $ae=function(a){this.getSessionState=a};$ae.prototype.attach=function(a,b){var c,d;b=(new fw).setSessionState((d=b==null?void 0:(c=X(b,fw,18))==null?void 0:c.getSessionState())!=null?d:this.getSessionState().clone());Mi(a,fw,18,b);return a};var abe=function(){};abe.prototype.attach=function(a){return a};var bbe=new abe;var cbe=function(a,b){b=b===void 0?bbe:b;this.metrics_=a;this.sessioninfo_=b};cbe.prototype.error=function(a,b,c){var d=this.metrics_,e=this.sessioninfo_,f=e.attach,g=new Qv;a=g.setEventType(3).setErrorType(a);Gn(a,7,b);return new i9d(d,f.call(e,g,c))};cbe.prototype.latency=function(a,b){var c=this.metrics_,d=this.sessioninfo_,e=d.attach,f=new Qv,g=f.setEventType(2);Gn(g,5,a);return new I7d(c,e.call(d,f,b))};
cbe.prototype.count=function(a){var b=this.metrics_,c=this.sessioninfo_,d=c.attach,e=new Qv,f=e.setEventType(1);Gn(f,4,a);return new h9d(b,d.call(c,e))};cbe.prototype.api=function(a){return new Yae(this.metrics_,this.sessioninfo_.attach(a))};var Gae=function(a,b){return new Zae(a.metrics_,a.sessioninfo_.attach(b))},dbe=function(a,b){return new cbe(a.metrics_,b)};var ebe=function(a,b){var c=a.getClient();this.ranker_=new I$d(c);this.loader_=new Tae(a,b);b=H$d;b=b===void 0?H$d:b;this.targetFactory_=new Uae(a,new Xae(b))};var fbe=function(){this.cacheConfigurators_=[];this.grpcClient_=null};var gbe=function(){this.bits_=[]};h=gbe.prototype;h.and=function(a){for(var b=new gbe,c=m(this),d=c.next();!d.done;d=c.next())d=d.value,a.bits_[d]&&(b.bits_[d]=!0);return b};h.or=function(a){for(var b=new gbe,c=m(this),d=c.next();!d.done;d=c.next())b.bits_[d.value]=!0;a=m(a);for(c=a.next();!c.done;c=a.next())b.bits_[c.value]=!0;return b};h.get=function(a){return!!this.bits_[a]};h.set=function(a){this.bits_[a]=!0};h.setAll=function(a,b){var c=a;for(a+=b;c<a;c++)this.bits_[c]=!0};
h.clear=function(a){this.bits_[a]=!1};h.clearAll=function(a,b){var c=a;for(a+=b;c<a;c++)this.bits_[c]=!1};gbe.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 b<0?{done:!0}:{value:b,done:!1}}}};var hbe=function(a,b){this.key=a;this.terms=b};var R$=function(a,b,c){b=b===void 0?"":b;c=c===void 0?new gbe:c;this.items_=a;this.prefix_=b;this.matchIndices_=c;this.childNodes_={};this.isExpanded_=b==="\u2026"},ibe=function(a){return a.items_.map(function(b){return b.key})};R$.prototype.cloneNode=function(a){for(var b=[],c=m(this.items_),d=c.next();!d.done&&(d=d.value,!a.loadOrSkip(d.key)||(b.push(d),!a.isDone()));d=c.next());return new R$(b)};
var S$=function(a,b){for(var c=[],d=m(a.prefix_?a.matchIndices_:euc(a.items_.length)),e=d.next();!e.done&&(e=b.loadOrSkip(a.items_[e.value].key),e==null||(c.push(e),!b.isDone()));e=d.next());return c};
R$.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),g=d;if(!g.isExpanded_){for(var k=m(g.prefix_?g.matchIndices_:euc(g.items_.length)),l=k.next();!l.done;l=k.next()){var r=g;l=l.value;for(var w=r.prefix_+"\ufdc7",x=m(r.items_[l].terms),C=x.next();!C.done;C=x.next())C=C.value,C.length<=r.prefix_.length||C<r.prefix_||C>w||(C=C.charAt(r.prefix_.length),r.childNodes_[C]||(r.childNodes_[C]=new R$(r.items_,r.prefix_+C)),r.childNodes_[C].matchIndices_.set(l))}g.isExpanded_=
!0}d=d.childNodes_[f]||T$;if(d===T$)break}return d}).reduce(function(c,d){return c.and(d)}):this};var jbe=function(a){a.isExpanded_=!1;for(var b=m(Object.keys(a.childNodes_)),c=b.next();!c.done;c=b.next())c=a.childNodes_[c.value],c.isExpanded_&&jbe(c)};R$.prototype.and=function(a){a=this.matchIndices_.and(a.matchIndices_);return new R$(this.items_,"\u2026",a)};R$.prototype.or=function(a){a=this.matchIndices_.or(a.matchIndices_);return new R$(this.items_,"\u2026",a)};var T$=new R$([]);
T$.isExpanded_=!0;var kbe=function(a,b,c){this.expiry_=a;this.value_=b;this.stale_=c};kbe.prototype.getExpiry=function(){return this.expiry_};kbe.prototype.getValue=function(){return this.value_};kbe.prototype.isExpired=function(){return this.expiry_<Date.now()};kbe.prototype.isStale=function(){return this.stale_<Date.now()};var lbe=function(a){this.shouldEvictItem_=a;this.items_=new Map};h=lbe.prototype;h.size=function(){return this.items_.size};h.clear=function(){this.items_.clear()};h.has=function(a){return this.items_.has(a)};h.get=function(a){var b=this.items_.get(a);this.items_.has(a)&&(this.items_.delete(a),this.items_.set(a,b));return b};
h.set=function(a,b){this.items_.has(a)&&this.items_.delete(a);this.items_.set(a,b);b=m(this.items_.entries().next().value);a=b.next().value;b=b.next().value;this.shouldEvictItem_(a,b)&&this.items_.delete(a);return this};h.delete=function(a){return this.items_.delete(a)};h.compact=function(){for(var a=0,b=m(this.items_),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;this.shouldEvictItem_(c,d)&&(this.items_.delete(c),a++)}return a};
var mbe=function(){var a=new lbe(function(){return a.size()>1E3});return a};var nbe=function(a,b){var c=this;this.capacity_=a;this.itemFactory_=b;this.delegate_=new lbe(function(d,e){return e.isExpired()||c.delegate_.size()>c.capacity_})};h=nbe.prototype;h.get=function(a){var b=this.delegate_.get(a);if(b)if(b.isExpired())this.delegate_.delete(a);else return b.getValue()};h.set=function(a,b){b=this.itemFactory_(b);this.delegate_.set(a,b);return this};h.has=function(a){return!!this.get(a)};h.size=function(){return this.delegate_.size()};h.clear=function(){this.delegate_.clear()};
h.delete=function(a){return this.delegate_.delete(a)};h.compact=function(){return this.delegate_.compact()};var obe=function(a,b){return new nbe(a,function(c){var d=Date.now()+b;return new kbe(d,c,d)})};var fuc=function(a){this.delegate_=a};Y(fuc,BW);fuc.prototype.getIsBoosted=function(){return!0};var pbe=function(a){this.keys_=new Set(a)};pbe.prototype.loadOrSkip=function(a){return this.keys_.delete(a)?a:null};pbe.prototype.isDone=function(){return!this.keys_.size};var qbe=function(a){this.keys_=a;this.foundKeys_=new Set;this.delegate_=new pbe(a)};qbe.prototype.loadOrSkip=function(a){return this.delegate_.loadOrSkip(a)?(this.foundKeys_.add(a),!0):!1};qbe.prototype.isDone=function(){return this.delegate_.isDone()};var rbe=function(a){return a.keys_.filter(function(b){return!a.foundKeys_.has(b)})};var sbe=new kw,tbe=function(a,b,c){this.itemResolver_=a;this.trieFactory_=b;this.indexes_=obe(Bm(c,31,5),em(c,32,3600)*1E3)};h=tbe.prototype;h.getCacheType=function(){return 2};h.flush=function(){this.indexes_.clear()};
h.fetch=function(a){var b=this,c,d,e,f;return y(function(g){if(g.nextAddress==1){c=a.getBoostKey();if(!c.cacheKey||b.indexes_.get(c.cacheKey))return g.return(sbe);d=c.ids.map(function(k){var l=vv(k);return awd.includes(l.getType())?k:(l=ube(b.itemResolver_,k))?String(l.id):k});e=new qbe(d);return z(g,vbe(b.trieFactory_,e,a.getFormat(),c.primingTimeoutMillis),2)}f=g.yieldResult;b.indexes_.set(c.cacheKey,f);return g.return(sbe)})};
h.search=function(a){var b=a.getBoostKey();if(!b.cacheKey)return[];this.indexes_.has(b.cacheKey)||this.fetch(a);return S$((this.indexes_.get(b.cacheKey)||T$).search(a.getTerms()),a.getCollector()).map(guc)};h.index=function(){};h.getName=function(){};var wbe=function(a,b,c){this.indexLatency_=a;this.searchLatency_=b;this.errorType_=c};wbe.prototype.getErrorType=function(){return this.errorType_};var U$=function(a,b,c){this.delegate_=a;this.trackers_=b;this.indexingLabel_=c.indexLatency_;this.searchLabel_=c.searchLatency_;this.errorLabel_=c.getErrorType()};h=U$.prototype;h.getCacheType=function(){return this.delegate_.getCacheType()};h.flush=function(){try{this.delegate_.flush()}catch(a){throw this.trackers_.error(this.errorLabel_,15).report(),a;}};h.fetch=function(a){try{return this.delegate_.fetch(a)}catch(b){throw this.trackers_.error(this.errorLabel_,14).report(),b;}};
h.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()}};h.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()}};h.getName=function(){return this.delegate_.getName()};var xbe=new wbe(60,61,34);var ybe=function(){};ybe.prototype.configure=function(a){var b=a.storage,c=a.trackers,d=a.trieFactory,e=a.prefixCaches;a=a.clientConfig.getClient();Fi(a,30)&&(b=new tbe(b,d,a),c=new U$(b,c,xbe),e.unshift(c))};var zbe=function(){return Date.now()},Abe=function(a,b,c){this.staleMillis_=a*1E3;this.expiredMillis_=b*1E3;this.nowFn_=c;this.timestamp_=0};h=Abe.prototype;h.isStale=function(){return this.timestamp_+this.staleMillis_<=this.nowFn_()};h.isExpired=function(){return this.timestamp_+this.expiredMillis_<=this.nowFn_()};h.getStatus=function(){return this.isExpired()?1:this.isStale()?3:2};h.getTimestamp=function(){return this.timestamp_};h.setTimestamp=function(a){this.timestamp_=a};
h.markAsFresh=function(){this.timestamp_=this.nowFn_()};var iuc=new Map([[1,1],[2,2],[3,3],[8,6],[6,7],[7,5],[4,4],[9,9]]),huc=new Map([[1,7],[2,5]]);var Bbe=function(a,b){this.delegate_=a;this.extendedData_=b};Y(Bbe,BW);Bbe.prototype.getExtendedData=function(){return this.extendedData_};var Cbe=function(a,b,c){this.group_=a;this.members_=b;this.totalMemberCount_=bwd(this.group_.getId())?this.members_.length:c;this.resultType_=b8d.get(this.group_.getTargetType())||0};h=Cbe.prototype;h.getResultType=function(){return this.resultType_};h.getTargetList=function(){return[this.group_]};h.getMemberList=function(){return this.members_};h.getTotalMemberCount=function(){return this.totalMemberCount_};h.getPrimaryTarget=function(){throw Error("Rg");};h.getDisplayName=function(){return""};
h.getDisplayValue=function(){return""};h.getDescription=function(){return""};h.getPhotoUrl=function(){return""};h.getIsBoosted=function(){return!1};h.getMatchInfo=function(){return a8d};h.getExtendedData=function(){return null};var kuc=function(a,b){this.delegate_=a;this.loggingToken_=b};Y(kuc,jwd);kuc.prototype.getLoggingToken=function(){return this.loggingToken_};var Dbe=function(a){this.itemResolver_=a};Dbe.prototype.create=function(a,b){var c=this,d=vv(a);a=ube(this.itemResolver_,a);if(!a)return null;if(Bv(d))return d=(a.memberKeys||[]).map(function(g){return c.create(g,b)}).filter(Boolean),this.createGroup(a,d,b);var e,f=b===2&&((e=a.coalescedKeys)==null?void 0:e.length)>1?a.coalescedKeys.map(function(g){return ube(c.itemResolver_,g)}).filter(Boolean):[a];return Ebe(f,d,b)};
var Ebe=function(a,b,c){var d=[],e=0,f=null,g=null;a=m(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;var l=k.target,r=l.getId().equals(b);if(!e||r)e=l.getResultType();l=luc(l,k.provenance,c);r?(g=void 0,f=(g=k.totalMemberCount)!=null?g:null,d.unshift(l),g=k.resultExtendedData):d.push(l)}b=yqc(e,d,f);return g?new Bbe(b,g):b};
Dbe.prototype.createGroup=function(a,b,c){c=luc(a.target,a.provenance,c);var d,e=(d=a.totalMemberCount)!=null?d:null;b=zs(new Cbe(c,b!=null?b:[],e!=null?e:null));return(a=a.resultExtendedData)?new Bbe(b,a):b};var muc=[1,2,3,4,5,6,9,7,8],Fbe=function(a,b){this.targetFactory_=a;this.resultFactory_=new Dbe(this);a=b.getCacheStaleSec();var c=b.getCacheExpiredSec();var d=d===void 0?zbe:d;this.expiry_=new Abe(a,c,d);this.affinityVersion_=0;this.ttlStorage_=new Map;this.lruStorage_=obe(Bm(b,6,500),Bm(b,7,43200)*1E3);d=Set;b=wn(b,25,Ci());this.idTypes_=new d(b)};Fbe.prototype.load=function(a,b){var c;return(c=this.resultFactory_.create(a,b))!=null?c:null};
var ube=function(a,b){return a.ttlStorage_.get(b)||a.lruStorage_.get(b)||null};h=Fbe.prototype;h.getExpiry=function(){return this.expiry_};h.getAffinityVersion=function(){return this.affinityVersion_};h.markAsFresh=function(a){this.affinityVersion_=a.getAffinityVersion();a.hasTimestamp()?this.expiry_.setTimestamp(Ym(a.getTimestamp())):this.expiry_.markAsFresh();this.lruStorage_.compact()};
h.flush=function(){this.ttlStorage_.clear();this.lruStorage_.clear();this.affinityVersion_=0;this.expiry_.timestamp_=0};h.storeItems=function(a,b,c,d){c=c===void 0?!1:c;if(d=d===void 0?"":d){var e=b.findIndex(function(g){return String(g.id)===d});if(e>0){var f=b[e];b.splice(e,1);b.unshift(f)}}c&&b.reverse();b=m(b);for(e=b.next();!e.done;e=b.next())this.store_(a,e.value,c,d)};
h.store_=function(a,b,c,d){if(!this.idTypes_.size||!awd.includes(b.id.getType())||this.idTypes_.has(b.id.getType())){var e=!1,f=String(b.id),g=(b.containerIds||[]).map(String),k=Gbe(this,a,f);Hbe(this,a,f,b,c)&&(k(f,b),e=!0);g=m(g);for(var l=g.next();!l.done;l=g.next())l=l.value,Hbe(this,a,l,b,c)&&(k(l,b),e=!0);b.isMe&&(g=String(ewd),Hbe(this,a,g,b,c)&&(k(g,b),e=!0));d&&f!==d&&Hbe(this,a,d,b,c)&&(k(d,b),e=!0);e&&!b.target&&this.targetFactory_.processItem(b)}};
var Hbe=function(a,b,c,d,e){var f=ube(a,c);if(!f)return!0;b===1&&a.lruStorage_.has(c)&&(b=a.lruStorage_.get(c),a.ttlStorage_.set(c,b),a.lruStorage_.delete(c));return d.provenance===8&&f.provenance!==8?!1:e&&(f.id.equals(d.id)||String(f.id)!==c)?!0:f.id.equals(d.id)?ouc(d)&&!ouc(f)||Ibe(a,f)<Ibe(a,d)||nuc(d)<nuc(f)||d.id.getType()===18&&f.id.getType()===18||puc(d)>puc(f)?!0:!1:String(d.id)===c},Ibe=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},Gbe=function(a,b,c){return a.ttlStorage_.has(c)||b===1?function(d,e){return a.ttlStorage_.set(d,e)}:function(d,e){return a.lruStorage_.set(d,e)}};var Jbe=new kw,Kbe=function(a){this.trieFactory=a;this.root=T$};h=Kbe.prototype;h.getCacheType=function(){return 2};h.flush=function(){this.root=T$};h.fetch=function(){var a=this;return y(function(b){if(a.root!==T$)return b.return(Jbe);var c=a.trieFactory,d,e,f=(e=(d=c.trieRoots_.get(1))==null?void 0:ibe(d))!=null?e:[];c=Lbe(c,f,!0);a.root=new R$(c);return b.return(Jbe)})};h.index=function(){};
h.search=function(a){if(a.isSuggestQuery())return[];this.root===T$&&this.fetch(a);return S$(this.root.search(a.getTerms()),a.getCollector()).map(guc)};h.getName=function(){};var Mbe=new wbe(60,61,34);var Nbe=function(){};Nbe.prototype.configure=function(a){var b=a.trackers,c=a.trieFactory,d=a.prefixCaches;if(a=a.clientConfig.getClient().getEnablePersonalizedQueryMatching())gw?(a=gw.getExperimentFlags(),a=X(a,D6d,104)||new D6d):a=new D6d,a=a.getEnablePersonalizedQueryMatching();a&&(b=new U$(new Kbe(c),b,Mbe),d.unshift(b))};var quc=function(a,b){this.delegate_=a;this.displayValue_=b};Y(quc,jwd);quc.prototype.getDisplayValue=function(){return this.displayValue_};var suc=function(){};suc.prototype.createFromLookupId=function(a){if(a.getType()!==1||!Uvd(a.getOriginalValue()))return null;a=Yv(a).setValue(a.getOriginalValue()).setDataSource(3);return yqc(a.getResultType(),[a],null)};var Obe=function(){};Obe.prototype.createFromLookupId=function(){return null};var tuc=new Obe;var Pbe=function(a,b,c,d,e){this.format=b;this.listener=c;this.options=d;this.callbackNumber=0;this.hasErrorCode=!1;this.remainingIds=new Map(a.map(function(f){return[String(f),f]}));this.notNotifiedIds=new Map(a.map(function(f){return[String(f),f]}));this.placeholderFactory=uuc(e.getClient())};h=Pbe.prototype;h.isCancelled=function(){return!1};h.getFormat=function(){return this.format};h.getOptions=function(){return this.options};h.queryScope=function(){return this.options.getQueryScope()};
h.getResultFilter=function(){return this.options.getFilter()};h.isDone=function(){return this.remainingIds.size===0};var Qbe=function(a){return Array.from(a.remainingIds.values())};Pbe.prototype.hasError=function(){return this.hasErrorCode};
Pbe.prototype.notify=function(a,b,c){if(a.size||b.length||this.isDone()||vuc(c.getCode())){var d=new Map,e=this.getResultFilter();a=m(a);for(var f=a.next();!f.done;f=a.next()){var g=m(f.value);f=g.next().value;g=g.next().value;this.notNotifiedIds.delete(String(f));(g=e?e.filterResult(g):g)&&g.getTargetList().length&&(d.set(f,g),this.remainingIds.delete(String(f)))}a=[];b=m(b);for(f=b.next();!f.done;f=b.next())f=f.value,this.notNotifiedIds.delete(String(f)),this.remainingIds.delete(String(f)),(g=this.placeholderFactory.createFromLookupId(f))&&
e&&(g=e.filterResult(g)),g&&g.getTargetList().length?d.set(f,g):a.push(f);d=ruc(d,this.options);vuc(c.getCode())&&(this.hasErrorCode=!0);e=(new s9d).setCallbackNumber(this.callbackNumber).setIsFirstCallback(this.callbackNumber===0).setIsLastCallback(this.isDone()).setCode(c.getCode());e.notFoundIdList_=a;d=new t9d(d,e);this.callbackNumber++;this.listener(d,c)}};var Rbe=function(a,b,c){this.stages=a;this.indexer=b;this.clientConfig=c};Rbe.prototype.flush=function(){this.indexer.flush()};
Rbe.prototype.lookup=function(a,b,c,d){var e=this,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:(f=d.getFilter())==null||f.reset(""),g=new Pbe(a,b,c,d,e.clientConfig),k=new Set,g.queryScope()!==1&&g.queryScope()!==2||k.add(2),g.queryScope()===3&&k.add(1),l=m(e.stages),r=l.next();case 2:if(r.done){x.jumpTo(4);break}w=r.value;if(g.isDone()||g.isCancelled()){x.jumpTo(4);break}if(k.has(w.getStageType())){x.jumpTo(3);break}return z(x,w.lookup(g),3);case 3:r=l.next();x.jumpTo(2);break;case 4:if(!g.isDone()){if(g.queryScope()===
0&&!g.hasError()){var C=e.indexer,H=Array.from(g.notNotifiedIds.values());H=m(H);for(var J=H.next();!J.done;J=H.next())J=String(J.value),C.notFoundIds.set(J,J)}g.notify(new Map,Qbe(g),k$((new kw).setProvenance(10),!1).setCode(0))}e.indexer.compact();return x.return()}})};var Sbe=function(a,b){this.storage=a;a=b.getClient();this.notFoundIds=obe(Bm(a,10,500),em(a,11,600)*1E3)};h=Sbe.prototype;h.compact=function(){this.notFoundIds.compact()};h.flush=function(){this.notFoundIds.clear()};h.store=function(a,b,c,d){if(!Fi(c,5))for(P$(c),b=m(b),c=b.next();!c.done;c=b.next()){var e=m(c.value);c=e.next().value;e=e.next().value;c=String(ovc(a,String(c)));this.storeItems(e,d,c)}};h.storeItems=function(a,b,c){this.storage.storeItems(2,a,b,c)};
h.load=function(a,b,c){b=this.storage.load(String(a),b);c&&b&&(b=tgb(a).filterResult(b));return b};var Tbe={ids:[],cacheKey:"",primingTimeoutMillis:0};var Ube=function(){};Ube.prototype.loadOrSkip=function(){return null};Ube.prototype.resultCount=function(){return 0};Ube.prototype.isDone=function(){return!0};var Vbe=new Ube;var Wbe=function(){this.prefix_="";this.terms_=[];this.format_=0;this.collector_=Vbe;this.boostKey_=Tbe;this.listener_=function(){}};h=Wbe.prototype;h.getPrefix=function(){return this.prefix_};h.getTerms=function(){return this.terms_};h.getFormat=function(){return this.format_};h.getCollector=function(){return this.collector_};h.getBoostKey=function(){return this.boostKey_};h.getListener=function(){return this.listener_};h.isDone=function(){return!0};h.isCancelled=function(){return!0};
h.isSuggestQuery=function(){return!0};h.isEmailAddress=function(){return!1};h.queryScope=function(){return 0};h.getResultFilter=function(){return null};h.shouldSkipCache=function(){return!1};var Xbe=new Wbe;var Ybe=function(){this.fetchDone_=Promise.resolve((new kw).setCode(0))};h=Ybe.prototype;h.getCacheType=function(){return 0};h.flush=function(){};h.fetch=function(){return this.fetchDone_};h.index=function(){};h.search=function(){return[]};h.getName=function(){};var Zbe=new Ybe;var $be=function(a){a=Array.from(new Set(a));this.primary_=a.find(function(b){return b.getCacheType()===1})||Zbe;this.prefetched_=a.filter(function(b){return b.getCacheType()===2||b.getCacheType()===1});this.lazyLoaded_=a.filter(function(b){return b.getCacheType()===3})};
$be.prototype.prefetch=function(a){var b=this,c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return z(k,b.primary_.fetch(a),2);if(k.nextAddress!=3){c=k.yieldResult;if(c.getCode()!==0)return k.return(c);d=m(b.lazyLoaded_);for(e=d.next();!e.done;e=d.next())f=e.value,f.flush();g=b.prefetched_.filter(function(l){return l!==b.primary_}).map(function(l){l.flush();return l.fetch(a)});return g.length?z(k,Promise.all(g),3):k.jumpTo(3)}return k.return(c)})};
$be.prototype.warmUpSession=function(a){var b=this;if(a.queryScope()===1)return Promise.resolve([(new kw).setProvenance(2).setCode(1)]);var c=this.prefetched_.filter(function(d){return d!==b.primary_});a.queryScope()!==2&&c.push.apply(c,q(this.lazyLoaded_));return Promise.all(c.map(function(d){return d.fetch(a)}))};
var ace=function(a){var b=[a.primary_].concat(q(a.prefetched_.filter(function(d){return d!==a.primary_})),q(a.lazyLoaded_)).reverse();b=m(b);for(var c=b.next();!c.done;c=b.next())c.value.flush()},bce=function(a,b){var c=[];a=m(a.prefetched_);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(b.isDone()||b.isCancelled())break;b.shouldSkipCache(d.getName())||c.push.apply(c,q(d.search(b)))}return c},dce=function(a,b,c){var d,e,f,g,k;return y(function(l){if(l.nextAddress==1){if(b.queryScope()===2)return l.return();
d=a.lazyLoaded_.filter(function(r){return!b.shouldSkipCache(r.getName())});e=d[d.length-1];f=m(d);g=f.next()}if(l.nextAddress!=3){if(g.done)return l.jumpTo(0);k=g.value;return b.isDone()||b.isCancelled()?l.return():z(l,cce(k,b,c,e===k),3)}g=f.next();return l.jumpTo(2)})},cce=function(a,b,c,d){var e,f;return y(function(g){if(g.nextAddress==1)return b.queryScope()===1?(e=k$((new kw).setProvenance(6).setCode(0),!1),g.jumpTo(2)):z(g,a.fetch(b),3);g.nextAddress!=2&&(e=g.yieldResult);if(b.isCancelled())return g.return();
f=a.search(b);c(f,e,d);ae(g)})};var ece=function(a,b,c,d,e){this.clientInfo_=a.getClient();this.trackers_=b;this.storage_=e;this.lookupCache_=d;this.prefixSearch_=c;this.sessionWarming_=this.cacheWarming_=null};h=ece.prototype;h.getLastUpdatedTimestamp=function(){return this.storage_.getExpiry().getTimestamp()};h.getAffinityVersion=function(){return this.storage_.getAffinityVersion()};
h.warmUpCache=function(a){fce(this,Xbe);return this.cacheWarming_&&(a||this.storage_.getExpiry().isExpired())?this.cacheWarming_:Promise.resolve(n$(m$((new l$).setSource(k$(new kw,!1).setProvenance(1).setCode(0)),V$(this)),V$(this)))};
h.warmUpSession=function(a){var b=this,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:c=m$(new l$,V$(b));fce(b,a);if(!b.cacheWarming_){k.jumpTo(2);break}return z(k,b.cacheWarming_,2);case 2:return Wd(k,4,5),b.sessionWarming_||(b.sessionWarming_=b.prefixSearch_.warmUpSession(a)),z(k,b.sessionWarming_,7);case 7:return d=k.yieldResult,e=d.find(function(l){return l.getProvenance()===2})||(new kw).setProvenance(2).setCode(0),k.return(n$(c.setSource(e),V$(b)));case 5:Xd(k);b.sessionWarming_=
null;Zd(k,0);break;case 4:return f=$d(k),g=f instanceof kw?f:(new kw).setProvenance(2).setCode(13),k.return(Promise.reject(n$(c.setSource(g),V$(b))))}})};
h.search=function(a){var b=this,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:gce(b);Wd(k,2);d=V$(b);fce(b,a);if(!a.isSuggestQuery()){k.jumpTo(4);break}if(!b.cacheWarming_){k.jumpTo(5);break}e=b.storage_.getExpiry().isExpired();if(!e){k.jumpTo(5);break}return z(k,b.cacheWarming_,7);case 7:c=k.yieldResult;case 5:if(!b.sessionWarming_){k.jumpTo(4);break}return z(k,b.sessionWarming_,4);case 4:return c||(c=n$(m$((new l$).setSource(k$(new kw,!1).setProvenance(1).setCode(0)),d),V$(b)),fce(b,
a)),z(k,hce(b,a,c),10);case 10:dt(k,0);break;case 2:f=$d(k);if(a.isCancelled())return k.return();f instanceof l$?c=f:(g=f instanceof kw?f:(new kw).setCode(13),n$(c.setSource(g),V$(b)));a.getListener()(new s$([],(new I8d).setQuery(a.getPrefix()).setIsLastCallback(!0).setCacheState(c).setCode(c.getSource().getCode())));ae(k)}})};
var hce=function(a,b,c){var d,e,f,g;return y(function(k){if(k.nextAddress==1){if(b.isCancelled())return k.return();d=bce(a.prefixSearch_,b);e=(new I8d).setIsLastCallback(b.isSuggestQuery()).setQuery(b.getPrefix()).setCode(c.getSource().getCode()).setCacheState(c);b.getListener()(new s$(d,e));if(e.getIsLastCallback())return k.return();f=!1;return z(k,dce(a.prefixSearch_,b,function(l,r,w){r=(new I8d).setIsLastCallback(w).setQuery(b.getPrefix()).setCode(r.getCode()).setCacheState(n$(m$((new l$).setSource(r),
vp(c,2)),V$(a)));b.getListener()(new s$(l,r));r.getIsLastCallback()&&(f=!0)}),2)}f||b.isCancelled()||(g=(new I8d).setIsLastCallback(!0).setQuery(b.getPrefix()).setCode(0).setCacheState(n$(m$((new l$).setSource((new kw).setProvenance(10).setCode(0)),vp(c,2)),V$(a))),b.getListener()(new s$([],g)));ae(k)})};
ece.prototype.lookup=function(a,b,c){var d=this;gce(this);fce(this,Xbe);var e=m$(new l$,V$(this));this.lookupCache_.lookup(a,wi(this.clientInfo_,17,1),function(f,g){e.setSource(g);n$(e,V$(d));f.getMetadata().setCacheState(e);b(f)},c)};
var fce=function(a,b){if(a.storage_.getExpiry().isStale()&&(a.storage_.getExpiry().isExpired()&&a.storage_.getExpiry().getTimestamp()&&ice(a),!a.cacheWarming_)){var c=V$(a);a.cacheWarming_=new Promise(function(d,e){var f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:return f=m$(new l$,c),Wd(r,2,3),z(r,a.prefixSearch_.prefetch(b),5);case 5:g=r.yieldResult,n$(f,V$(a)).setSource(g),d(f);case 3:Xd(r);a.cacheWarming_=null;Zd(r,0);break;case 2:k=$d(r),l=k instanceof kw?k:(new kw).setCode(13),
n$(f,V$(a)).setSource(l),e(f),r.jumpTo(3)}})})}},V$=function(a){return a.storage_.getExpiry().getStatus()},ice=function(a){ace(a.prefixSearch_);a.lookupCache_.flush();a.storage_.flush()},gce=function(a){var b=V$(a)===1?1:2;a.trackers_.count(b).increment()};var Auc={198:"AE",230:"ae",306:"IJ",307:"ij",338:"AE",339:"ae"};var Cuc=RegExp("[\\s,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]+","g"),Buc=/^[<"']|[>"']$/g,yuc=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"),jce=/[^a-z0-9]+/gi,zuc=String.prototype.normalize?function(a){return a.normalize("NFKC")}:function(a){return a};var kce=function(a){this.itemResolver_=a},mce=function(a,b){if(!b.preferredSearchTerms)return[];a=Duc(lce(a,b));var c=Duc(b.preferredSearchTerms);return a.filter(function(d){return c.some(function(e){return d.startsWith(e)})})},lce=function(a,b,c){c=c===void 0?[]: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,g=f.apply,k=e.split(jce).filter(Boolean),l=k.length-
1;if(l>0){var r=k.join(".");k.push(k.join("-"));for(k.push(r);l>0;l--)k[l-1]+=k[l]}k.push(e);k.push(e.replace(Cuc,""));e[0]==="+"&&k.push("+"+k[0]);g.call(f,c,q(k));break;default:c.push(e)}b.preferredSearchTerms&&c.push.apply(c,q(b.preferredSearchTerms));if(!c.length&&b.memberKeys&&b.memberKeys.length&&d.getTargetType()!==10)for(b=m(b.memberKeys),d=b.next();!d.done;d=b.next())(d=ube(a.itemResolver_,d.value))&&lce(a,d,c);return c};var nce=new atc,oce=function(a,b,c){this.itemResolver_=a;this.lookupCache_=b;this.trackers_=c;this.indexer_=new kce(a);this.trieRoots_=new Map},vbe=function(a,b,c,d){var e=(a.trieRoots_.get(c)||T$).cloneNode(b);if(b.isDone())return a.trackers_.count(120).increment(),Promise.resolve(e);var f=a.trackers_.latency(95);f.start();var g=new Promise(function(k){var l=rbe(b).map(vv);a.lookupCache_.lookup(l,c,function(r){var w=Array.from(r.getResults().keys(),String);w=Lbe(a,w,!1);Array.prototype.push.apply(e.items_,
w);jbe(e);r.getMetadata().getIsLastCallback()&&(f.stop(),k(e))},nce)});return cqc(g,e,d)},pce=function(a,b){a=Lbe(a,b,!1);return new R$(a)},Lbe=function(a,b,c){var d=[];b=m(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=ube(a.itemResolver_,e);if(f){if(c){if(f=mce(a.indexer_,f),f.length<1)continue}else f=Duc(lce(a.indexer_,f));d.push(new hbe(e,f))}}return d};var qce=function(a,b){this.target_=a;this.displayName_=b;this.similarTargets_=[]};qce.prototype.getSimilarIds=function(){return this.similarTargets_.map(function(a){return a.getId()})};
qce.prototype.getDisambiguationLabel=function(){var a="";if(this.similarTargets_.length){var b=Euc(this.target_.getDisplayValue());a=this.similarTargets_.some(function(d){return Euc(d.getDisplayValue())===b});var c=this.similarTargets_.some(function(d){return Euc(d.getDisplayValue())!==b});a=a&&c?this.target_.getDisplayValue():c?b:Fuc(this.target_.getDisplayValue())}return a};
qce.prototype.filterResult=function(a){var b=this,c=dw(this.target_.getDisplayValue());this.similarTargets_.push.apply(this.similarTargets_,q(a.getTargetList().filter(function(d){return d.getTargetType()===1&&dw(d.getDisplayValue())!==c&&d.getName()&&dw(d.getName().getDisplayName())===b.displayName_})));return null};qce.prototype.reset=function(){this.similarTargets_=[]};var Guc=/\S+@\S+\.\S+/,Huc=/<|>|\(|\)/g;var rce=function(){this.queryId_=0};rce.prototype.getQueryId=function(){return this.queryId_};var sce=function(a,b){var c=new rce;this.cache_=a;this.queryFactory_=b;this.querySession_=c};
sce.prototype.disambiguate=function(a,b){var c=this,d=a.getName()&&a.getName().getDisplayName()||"",e=b.getDisplayNameWithOverrideApplied()===null?d:b.getDisplayNameWithOverrideApplied()||"";return!e||a.getTargetType()!==1||e.includes(a.getDisplayValue())?Promise.resolve(new r9d("",(new q9d).setCode(0).setCacheState((new l$).setSource(k$(new kw,!1).setProvenance(8).setCode(0))))):b.getTargetCount()>25||Iuc(e,a.getDisplayValue())?Promise.resolve(new r9d(a.getDisplayValue(),(new q9d).setCode(0).setCacheState((new l$).setSource(k$(new kw,
!1).setProvenance(8).setCode(0))))):new Promise(function(f){var g=new qce(a,dw(e)),k=tce(c.queryFactory_,e,c.querySession_,(new dv).setFilter(g).setQueryScope(b.getQueryScope()),function(l){if(l.getMetadata().getIsLastCallback()){var r=g.getDisambiguationLabel(),w=new q9d,x=g.getSimilarIds();w.similarIds_=x;f(new r9d(r,w.setCode(l.getMetadata().getCode()).setCacheState(l.getMetadata().getCacheState()||new l$)))}});c.cache_.search(k)})};var uce=function(a){this.delegate=a};h=uce.prototype;h.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};h.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};h.warmUpCache=function(a){return this.delegate.warmUpCache(a)};h.warmUpSession=function(a){var b=this;return y(function(c){return c.return(b.delegate.warmUpSession(a))})};h.search=function(a){var b=this;return y(function(c){return c.return(b.delegate.search(a))})};
h.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};var vce=function(){this.delegate=owd};vce.prototype.filterResult=function(a){return this.delegate.filterResult(a)};vce.prototype.reset=function(a){this.delegate.reset(a)};var wce=function(a,b){a.delegate=b!=null?b:owd};var xce=function(a){this.delegate=a};h=xce.prototype;h.getPrefix=function(){return this.delegate.getPrefix()};h.getTerms=function(){return this.delegate.getTerms()};h.getFormat=function(){return this.delegate.getFormat()};h.getCollector=function(){return this.delegate.getCollector()};h.getBoostKey=function(){return this.delegate.getBoostKey()};h.getListener=function(){return this.delegate.getListener()};h.isDone=function(){return this.delegate.isDone()};h.isCancelled=function(){return this.delegate.isCancelled()};
h.isSuggestQuery=function(){return this.delegate.isSuggestQuery()};h.isEmailAddress=function(){return this.delegate.isEmailAddress()};h.queryScope=function(){return this.delegate.queryScope()};h.getResultFilter=function(){return this.delegate.getResultFilter()};h.shouldSkipCache=function(a){return this.delegate.shouldSkipCache(a)};var yce=function(a,b){this.delegate_=a;this.limit_=b;this.count_=0};yce.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);if(!a)return null;this.count_++;return a};yce.prototype.resultCount=function(){return this.count_};yce.prototype.isDone=function(){return this.count_>=this.limit_||this.delegate_.isDone()};var zce=function(a,b,c,d){this.delegate=a;var e=this;this.isLastSlot=d;d=a.getCollector();c.limit>0&&(d=new yce(d,c.limit));this.collector=d;this.listener=function(g){var k=g.getMetadata();k.getIsLastCallback()&&k.setIsLastCallback(e.isLastSlot);e.delegate.getListener()(g)};d=[];c.filter&&(d.push(c.filter),c.filter.reset(a.getPrefix()));b&&d.push(b);this.resultFilter=d.length?vgb.apply(null,q(d)):null;var f;this.scope=(f=c.scope)!=null?f:a.queryScope()};Y(zce,xce);h=zce.prototype;h.getCollector=function(){return this.collector};
h.getListener=function(){return this.listener};h.isDone=function(){return this.collector.isDone()};h.getResultFilter=function(){return this.resultFilter};h.queryScope=function(){return this.scope};var Ace=function(a,b,c,d){this.delegate=a;this.slots=b;this.filterInterceptor=c;this.originalFilter=d};Y(Ace,uce);
Ace.prototype.search=function(a){var b=this,c,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:c=new Set,a.isSuggestQuery()?c.add(2):c.add(1),a.isEmailAddress()||c.add(3),d=b.slots.filter(function(r){return!c.has(r.visibility)}),e=d.map(function(r,w){return new zce(a,b.originalFilter,r,w===d.length-1)}),f=m(e),g=f.next();case 2:if(g.done){l.jumpTo(4);break}k=g.value;if(a.isCancelled()||a.isDone()){l.jumpTo(4);break}wce(b.filterInterceptor,k.getResultFilter());return z(l,b.delegate.search(k),
3);case 3:g=f.next();l.jumpTo(2);break;case 4:return l.return()}})};var Bce=function(a,b,c){this.delegate=a;var d=this;this.query_=b;this.terms_=Duc([b]);this.id_=Cv(b);this.listener_=function(e){var f=e.getResults().map(function(g){if(d.id_.equals(g.getPrimaryTarget().getId())&&g.getDisplayName()!==c){var k=(new Utc).setDisplayName(c),l=g.getPrimaryTarget();g=pgb(g,new kwd(l,k))}return g});e=new s$(f,e.getMetadata());a.getListener()(e)}};Y(Bce,xce);Bce.prototype.getPrefix=function(){return this.query_};Bce.prototype.getTerms=function(){return this.terms_};
Bce.prototype.getListener=function(){return this.listener_};var Cce=function(a,b,c){this.cache_=a;this.queryFactory_=b;this.querySession_=new rce;this.clientInfo_=c};h=Cce.prototype;h.warmUpSession=function(a){a=tce(this.queryFactory_,"",this.querySession_,a,function(){});return this.cache_.warmUpSession(a)};h.suggest=function(a,b){a=tce(this.queryFactory_,"",this.querySession_,b,a);this.cache_.search(a)};
h.search=function(a,b,c){a=tce(this.queryFactory_,a,this.querySession_,c,b);Fi(this.clientInfo_,28)&&(b=a.getPrefix(),b.includes("<")&&(c=lv(b),c.isValid()||(c=lv(b+">")),a=c.isValid()&&c.getName()?new Bce(a,c.address,c.getName()):a));this.cache_.search(a)};h.cancel=function(){++this.querySession_.queryId_};h.getLastUpdatedTimestamp=function(){return this.cache_.getLastUpdatedTimestamp()};h.getAffinityVersion=function(){return this.cache_.getAffinityVersion()};
h.getReporter=function(){throw Error("vg");};h.getSessionState=function(){throw Error("vg");};var Dce=function(a,b,c){var d=this;this.cache_=a;this.queryFactory_=b;this.clientInfo_=c;this.getSessionCache_=Fi(c,34)?function(e){var f=d.cache_,g=e.slots_;if(g.length){var k=e.getFilter(),l=new vce;e.setFilter(l);e=new Ace(f,g,l,k)}else e=f;return e}:function(){return d.cache_}};Dce.prototype.warmUpCache=function(){return this.cache_.warmUpCache(!1)};Dce.prototype.lookup=function(a,b,c){this.cache_.lookup(a,b,c)};
Dce.prototype.disambiguate=function(a,b){return(new sce(this.cache_,this.queryFactory_)).disambiguate(a,b)};Dce.prototype.beginSession=function(a){a=this.getSessionCache_(a);return new Cce(a,this.queryFactory_,this.clientInfo_)};var Ece=function(){};h=Ece.prototype;h.getCacheType=function(){return 3};h.flush=function(){};h.fetch=function(){return y(function(a){return a.return(k$(new kw,!1).setProvenance(12).setCode(0))})};h.index=function(){};h.search=function(a){return a.isEmailAddress()?(a=a.getCollector().loadOrSkip(String(Cv(a.getPrefix()))))?[a]:[]:[]};h.getName=function(){};var Fce=function(){};Fce.prototype.configure=function(a){var b=a.prefixCaches;a=a.clientConfig.getClient();Fi(a,21)&&b.push(new Ece)};var Gce=function(a,b,c,d,e,f,g,k){this.delegate_=a;this.prefix_=b;this.terms_=c;this.collector_=d;this.boostKey_=e;this.filter_=g;this.listener_=Juc(this,f);this.isEmailAddress_=null;this.selectedCustomProviderNames_=k?new Set(k):null};h=Gce.prototype;h.getPrefix=function(){return this.prefix_};h.getTerms=function(){return this.terms_};h.getFormat=function(){return this.delegate_.getFormat()};h.getCollector=function(){return this.collector_};h.getBoostKey=function(){return this.boostKey_};
h.getListener=function(){return this.listener_};h.isDone=function(){return this.collector_.isDone()};h.isCancelled=function(){return this.delegate_.isCancelled()};h.isSuggestQuery=function(){return!this.prefix_};h.isEmailAddress=function(){this.isEmailAddress_===null&&(this.isEmailAddress_=Uvd(this.prefix_));return this.isEmailAddress_};h.queryScope=function(){return this.delegate_.queryScope()};h.getResultFilter=function(){return this.filter_};
h.shouldSkipCache=function(a){return!(!this.selectedCustomProviderNames_||!a||this.selectedCustomProviderNames_.has(a))};var Hce=function(a,b,c){this.format_=a;this.querySession_=b;this.queryScope_=c;this.id_=++this.querySession_.queryId_};Hce.prototype.getFormat=function(){return this.format_};Hce.prototype.isCancelled=function(){return this.querySession_.getQueryId()!==this.id_};Hce.prototype.queryScope=function(){return this.queryScope_};var Ice=function(){this.foundKeys_=new Set};Y(Ice,CW);Ice.prototype.shouldRemove=function(a){return this.foundKeys_.has(String(a.getId()))};Ice.prototype.has=function(a){return this.foundKeys_.has(a)};Ice.prototype.add=function(a){this.foundKeys_.add(a)};Ice.prototype.reset=function(){this.foundKeys_.clear()};var Jce=function(a){this.delegate_=a;this.filter_=new Ice};Jce.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=m(a.getTargetList()),c=b.next();!c.done;c=b.next())this.filter_.add(String(c.value.getId()));return a};Jce.prototype.resultCount=function(){return this.delegate_.resultCount()};Jce.prototype.isDone=function(){return this.delegate_.isDone()};var Kce=function(a,b,c){this.delegate_=a;this.filter_=b;this.filter_.reset(c)};Kce.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);return a?(a=this.filter_.filterResult(a))&&a.getTargetList().length?a:null:null};Kce.prototype.resultCount=function(){return this.delegate_.resultCount()};Kce.prototype.isDone=function(){return this.delegate_.isDone()};var Lce=function(a,b){this.storage_=a;this.format_=b};Lce.prototype.loadOrSkip=function(a){return this.storage_.load(a,this.format_)||null};Lce.prototype.resultCount=function(){return 0};Lce.prototype.isDone=function(){return!1};var Mce=[198,230,306,307,338,339],Nce=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)"+Yr(b),"g")})},Kuc=function(a,b){var c=[];if(!b||!a.matchers_.length)return c;var d=dw(b),e=d.indexOf("@"),f=e<0?-1:d.indexOf(".",e);a=m(a.matchers_);for(var g=a.next();!g.done;g=a.next()){g=g.value;g.lastIndex=0;for(var k=g.exec(d);k;k=
g.exec(d)){k=k.index;if((e>0||e===0&&f>e)&&k>e)break;c.push([k,g.lastIndex])}}c.sort(function(l,r){return l[0]-r[0]});for(e=c.length-1;e>0;e--)f=c[e-1],a=c[e],f[1]>=a[0]&&(f[1]=a[1],c.splice(e,1));if(c.length&&d.length!==b.length){d=[];e=[];for(f=0;f<b.length;f++)a=b.codePointAt(f),a>65535||a>=768&&a<=879?(d.push(f),f++):Mce.includes(a)&&e.push(f);b=m(c);for(f=b.next();!f.done;f=b.next()){f=f.value;a=m(d);for(g=a.next();!g.done;g=a.next())g=g.value,g<f[0]&&f[0]++,g<f[1]&&f[1]++;a=m(e);for(g=a.next();!g.done;g=
a.next())g=g.value,g<f[0]&&f[0]--,g<f[1]&&f[1]--}}return c};var Luc=function(a,b){this.start_=a;this.end_=b};Luc.prototype.getStart=function(){return this.start_};Luc.prototype.getEnd=function(){return this.end_};var Muc=function(a,b,c){this.displayNameMatches_=a;this.displayValueMatches_=b;this.givenNameMatches_=c};Muc.prototype.getDisplayNameMatches=function(){return this.displayNameMatches_};Muc.prototype.getDisplayValueMatches=function(){return this.displayValueMatches_};Muc.prototype.getGivenNameMatches=function(){return this.givenNameMatches_};var Oce=function(a,b){this.delegate_=a;this.matcher_=b;this.memberList_=a.getMemberList().map(function(c){return new Oce(c,b)});this.matchInfo_=null};Y(Oce,BW);Oce.prototype.getMemberList=function(){return this.memberList_};Oce.prototype.getMatchInfo=function(){if(!this.matchInfo_){var a,b=((a=this.getDelegate().getPrimaryTarget().getName())==null?void 0:a.getGivenName())||"";this.matchInfo_=Nuc(this.matcher_,this.getDelegate().getDisplayName(),this.getDelegate().getDisplayValue(),b)}return this.matchInfo_};var Pce=function(a,b){this.delegate_=a;this.matcher_=new Nce(b)};Pce.prototype.loadOrSkip=function(a){return(a=this.delegate_.loadOrSkip(a))?new Oce(a,this.matcher_):null};Pce.prototype.resultCount=function(){return this.delegate_.resultCount()};Pce.prototype.isDone=function(){return this.delegate_.isDone()};var Qce=function(a){var b=new suc;this.delegate=a;this.placeholderFactory=b};Qce.prototype.loadOrSkip=function(a){var b;return(b=this.delegate.loadOrSkip(a))!=null?b:this.placeholderFactory.createFromLookupId(vv(a))};Qce.prototype.resultCount=function(){return this.delegate.resultCount()};Qce.prototype.isDone=function(){return this.delegate.isDone()};var Rce=/\s+/g,Sce=function(a,b){this.clientInfo_=a;this.storage_=b},tce=function(a,b,c,d,e){var f=Duc([b]);b=(b||"").replace(Rce," ").trim();var g=!f.length;var k=a.clientInfo_;k=g?d.getSuggestFormat()||k.getSuggestFormat():d.getSearchFormat()||k.getSearchFormat();var l=a.clientInfo_;g=g?d.getSuggestMaxResults()||l.getSuggestMaxResults():d.getSearchMaxResults()||l.getSearchMaxResults();var r=d.boostIds_;l=d.primingTimeoutMillis_;if(r.length){r=r.map(String);var w=xtc(r)+":"+r.length;l={ids:r,cacheKey:w,
primingTimeoutMillis:l}}else l=Tbe;r=d.getFilter();w=b;var x=new Lce(a.storage_,k);Fi(a.clientInfo_,21)&&Uvd(w)&&(x=new Qce(x));r&&(x=new Kce(x,r,w));x=new Jce(x);x=new yce(x,g);a=f.length?new Pce(x,f):x;g=d.getQueryScope();c=new Hce(k,c,g);return new Gce(c,b,f,a,l,e,r,d.selectedCustomProviderNames_)};var Tce=function(a){this.fetcher=a};Tce.prototype.getStageType=function(){return 2};Tce.prototype.lookup=function(a){var b=this,c,d,e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:c=Puc(Qbe(a)),d=m(c),e=d.next();case 2:if(e.done){x.jumpTo(4);break}f=e.value;g=m(f);k=g.next().value;l=g.next().value;r=k;w=l;if(!r){x.jumpTo(3);break}return z(x,b.fetcher.fetch(w,r,a.getFormat(),function(C,H){a.notify(C,[],H)},a.getOptions()),3);case 3:e=d.next();x.jumpTo(2);break;case 4:return x.return()}})};var Uce=function(a,b){this.delegate=a;this.maxLookupChunkSize=E$d(b)};Uce.prototype.fetch=function(a,b,c,d,e){var f=this,g,k,l;return y(function(r){switch(r.nextAddress){case 1:var w=f.maxLookupChunkSize;if(a.length)if(a.length<=w)w=[a];else{for(var x=[],C=0;C<a.length;C+=w){var H=a.slice(C,C+w);H.length&&x.push(H)}w=x}else w=[];g=m(w);k=g.next();case 2:if(k.done){r.jumpTo(4);break}l=k.value;return z(r,f.delegate.fetch(l,b,c,d,e),3);case 3:k=g.next();r.jumpTo(2);break;case 4:return r.return()}})};var Vce=function(a){this.qos=a};Vce.prototype.getIndex=function(){return String(this.qos)};var Wce=new Vce(1),Xce=new Vce(2);var Yce=function(a,b,c){this.trackers=a;this.loader=b;this.indexer=c};
Yce.prototype.fetch=function(a,b,c,d,e){var f=this,g,k,l,r,w,x,C,H,J,O,R;return y(function(V){switch(V.nextAddress){case 1:return g=b===3?4:3,k=k$((new kw).setProvenance(g),!0).setCode(0),Wd(V,2),z(V,f.loader.loadLookupItems(b,a.map(function(ca){return ca.getOriginalValue()}),Xce),4);case 4:l=V.yieldResult;l.metadata.getCode()&&k.setCode(l.metadata.getCode());r=e.getQueryScope()===3;try{f.indexer.store(b,l.data,l.metadata,r)}catch(ca){f.trackers.error(21,10).report(),k.setCode(13)}dt(V,3);break;case 2:w=
$d(V),x=Number(w),k.setCode(isFinite(x)&&x?x:13);case 3:C=new Map;H=m(a);for(J=H.next();!J.done;J=H.next())O=J.value,(R=f.indexer.load(O,c,e.getUseOriginalDisplayValue()))&&C.set(O,R);d(C,k);return V.return()}})};var Zce=function(a){this.indexer=a};Zce.prototype.getStageType=function(){return 1};Zce.prototype.lookup=function(a){var b=this,c,d,e,f,g,k;return y(function(l){c=new Map;d=[];e=m(Qbe(a));for(f=e.next();!f.done;f=e.next())if(g=f.value,k=b.indexer.load(g,a.getFormat(),a.getOptions().getUseOriginalDisplayValue()))c.set(g,k);else{var r=b.indexer;(fwd(g)?r.notFoundIds.get(String(g)):1)&&d.push(g)}a.notify(c,d,k$((new kw).setProvenance(6),!1).setCode(0));return l.return()})};var $ce=RegExp("^[^a-z0-9@\u00c0-\u02ff\u0370-\u1aaf\u1b00-\u1fff\u2070-\u218f\u2460-\u24ff\u2c00-\u2dff\u2e80-\u2fef\u3040-\u4dbf\u4e00-\ud7ff\uf900-\ufdff\ufe70-\uffef]+$","i"),ade=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.indexes_=obe(Bm(e,8,250),em(e,9,3600)*1E3);this.notFound_=obe(Bm(e,10,500),em(e,11,600)*1E3)};h=ade.prototype;h.getCacheType=function(){return 3};h.flush=function(){this.indexes_.clear();this.notFound_.clear()};
h.fetch=function(a){var b=this,c,d,e;return y(function(f){switch(f.nextAddress){case 1:c=k$(new kw,!0).setProvenance(2).setCode(0);if(a.isSuggestQuery())return b.loader_.warmUpServer(Wce).catch(function(){}),f.return(c);if(b.canSkipFetch_(a))return f.return(k$(c,!1));Wd(f,2);return z(f,b.loader_.loadAutocompleteItems(a,Xce),4);case 4:d=f.yieldResult;dt(f,3);break;case 2:return e=$d(f),f.return(c.setCode(isFinite(e)?e:13));case 3:try{b.index(a,d.data,d.metadata)}catch(g){return f.return(c.setCode(13))}return f.return(c)}})};
h.search=function(a){if(a.isSuggestQuery())return[];var b=a.getPrefix(),c=this.indexes_.get(b);if(c)return S$(c.search([]),a.getCollector());if(this.notFound_.has(b)||a.queryScope()===3)return[];for(var d=b.length-1;!c&&d>0;d--){c=b.substr(0,d);if(this.notFound_.has(c))return[];c=this.indexes_.get(c)}return c?S$(c.search(a.getTerms()),a.getCollector()):[]};
h.index=function(a,b,c){if(!Fi(c,5))if(P$(c),b.length){c=J$d(this.ranker_,b,1);var d=a.queryScope()===3;this.storage_.storeItems(1,b,d);b=pce(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),b)}else this.notFound_.set(a.getPrefix(),a.getPrefix())};h.canSkipFetch_=function(a){if(a.queryScope()===3)return!1;var b=a.getPrefix();if(this.indexes_.has(b)||this.notFound_.has(b))return!0;if(a.isEmailAddress())return!1;for(a=b.length-1;a>0;a--){var c=b.substr(0,a);if(c.match($ce))break;if(this.notFound_.has(c))return!0}return!1};
h.getName=function(){};var bde=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_};h=bde.prototype;h.getCacheType=function(){return 1};h.flush=function(){this.indexes_.clear()};
h.fetch=function(a){var b=this,c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return c=k$(new kw,!0).setProvenance(1).setCode(0),d=b.storage_.getExpiry().isExpired()?Xce:Wce,Wd(g,2),z(g,b.loader_.loadRankedItems(d),4);case 4:e=g.yieldResult;dt(g,3);break;case 2:return f=$d(g),g.return(c.setCode(isFinite(f)?f:13));case 3:try{b.index(a,e.data,e.metadata)}catch(k){c.setCode(13)}return g.return(c)}})};
h.search=function(a){return a.isSuggestQuery()||a.getTerms().length?S$((this.indexes_.get(a.getFormat())||T$).search(a.getTerms()),a.getCollector()):[]};h.index=function(a,b,c){if(!Fi(c,5)){P$(c);a=this.coalescedSortOrder_!==1?J$d(this.ranker_,b,this.coalescedSortOrder_):null;var d=J$d(this.ranker_,b,1);this.storage_.flush();this.storage_.storeItems(1,b);this.storage_.markAsFresh(c);b=pce(this.trieFactory_,d);c=a?pce(this.trieFactory_,a):b;this.indexes_.set(1,b);this.indexes_.set(2,c)}};
h.getName=function(){};var cde=new wbe(27,32,33),dde=new wbe(24,23,20);var ede=function(){};ede.prototype.configure=function(a){var b=a.trackers,c=a.storage,d=a.indexer,e=a.loader,f=a.trieFactory,g=a.prefixCaches,k=a.lookupStages,l=a.loaderFactory.ranker_,r=a.clientConfig.getClient();if(Bm(r,3,500)>0){var w=wi(r,19,1);w=new bde(e,l,f,c,w);w=new U$(w,b,dde);g.push(w)}k.push(new Zce(d));r.getSearchMaxResults()>0&&(c=new ade(e,l,f,c,r),b=new U$(c,b,cde),g.push(b));g=new Yce(a.trackers,a.loader,a.indexer);g=new Uce(g,a.clientConfig);k.push(new Tce(g))};var fde=function(a){this.delegate=a};h=fde.prototype;h.warmUpSession=function(a){return this.delegate.warmUpSession(a)};h.suggest=function(a,b){this.delegate.suggest(a,b)};h.search=function(a,b,c){this.delegate.search(a,b,c)};h.cancel=function(){this.delegate.cancel()};h.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};h.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};h.getReporter=function(a){return this.delegate.getReporter(a)};
h.getSessionState=function(){return this.delegate.getSessionState()};var gde=function(a){this.delegate=a};gde.prototype.warmUpCache=function(){return this.delegate.warmUpCache()};gde.prototype.disambiguate=function(a,b){return this.delegate.disambiguate(a,b)};gde.prototype.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};gde.prototype.beginSession=function(a){return this.delegate.beginSession(a)};var hde=function(a,b,c){this.idType_=a;this.id_=b;this.options_=c};hde.prototype.getId=function(){return this.id_};hde.prototype.getIndex=function(){return this.getId()+":"+this.idType_+":"+this.options_.getIndex()};var ide=function(a,b,c){this.idType_=a;this.ids_=b;this.options_=c};h=ide.prototype;h.getIds=function(){return this.ids_};h.getIdType=function(){return this.idType_};h.getOptions=function(){return this.options_};
h.getKeys=function(){var a=this;return this.getIds().map(function(b){return new hde(a.getIdType(),b,a.getOptions())})};h.setIds=function(a){this.ids_=a;return this};h.setIdType=function(a){this.idType_=a};h.setOptions=function(a){this.options_=a;return this};h.clone=function(){var a=this.getIdType(),b=this.getIds(),c=this.getOptions();return new ide(a,b,c)};var jde=function(a,b){this.ids_=new Set(b.getIds());this.parameters_=b.clone();this.loader_=a;this.resolver_=new mKc;this.isSent_=!1};jde.prototype.send=function(){if(!this.isSent_){this.isSent_=!0;var a=Array.from(this.ids_);this.loader_.load(this.parameters_.setIds(a)).then(this.resolver_.resolve,this.resolver_.reject)}};jde.prototype.promise=function(){return this.resolver_.promise};
jde.prototype.merge=function(a,b){var c;(c=this.isSent_)||(c=this.parameters_,c=!(a.getIdType()===c.getIdType()&&a.getOptions()===c.getOptions()));if(c||a.getIds().length+this.ids_.size>b)return!1;a=m(a.getIds());for(b=a.next();!b.done;b=a.next())this.ids_.add(b.value);return!0};var kde=function(a,b,c){this.delegate_=a;this.batchedRequest_=null;this.tracker_=b;this.maxRequestSize_=E$d(c);this.lastRequestCreationTime_=0};
kde.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 jde(this.delegate_,a);a=Date.now();var d=a-this.lastRequestCreationTime_;this.lastRequestCreationTime_=a;Hs(function(){c===b.batchedRequest_&&(c.send(),b.batchedRequest_=null)},d>30?0:30)}return this.batchedRequest_.promise()};var lde=function(a,b){this.delegate_=a;this.inflightRequests_=mbe();this.tracker_=b};
lde.prototype.load=function(a){for(var b=this,c=new Set,d=[],e=m(a.getKeys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.getIndex();this.inflightRequests_.has(g)?c.add(this.inflightRequests_.get(g)):d.push(f.getId())}d.length===a.getKeys().length?this.tracker_.count(93).increment():d.length?this.tracker_.count(92).increment():this.tracker_.count(91).increment();if(d.length){var k=a.clone().setIds(d);var l=new jde(this.delegate_,k);l.send();c.add(l);a=m(k.getKeys());for(d=a.next();!d.done;d=
a.next())this.inflightRequests_.set(d.value.getIndex(),l);l.promise().catch(function(){}).finally(function(){for(var r=m(k.getKeys()),w=r.next();!w.done;w=r.next())b.inflightRequests_.delete(w.value.getIndex())})}c=Array.from(c);return Promise.all(c.map(function(r){return r.promise()})).then(function(r){return l?l.promise().then(function(w){return Quc(r,w.metadata)}):Quc(r)})};var mde=function(a){this.peopleLoader_=a};mde.prototype.load=function(a){return this.peopleLoader_.loadLookupItems(a.getIdType(),a.getIds(),a.getOptions())};var nde=function(a,b,c){this.peopleLoader_=a;this.gatedLoaders_=new Map;this.tracker_=b;this.clientConfig_=c};nde.prototype.load=function(a){if(!this.gatedLoaders_.has(a.getIdType())){var b=new mde(this.peopleLoader_);b=new kde(b,this.tracker_,this.clientConfig_);b=new lde(b,this.tracker_);this.gatedLoaders_.set(a.getIdType(),b)}return this.gatedLoaders_.get(a.getIdType()).load(a)};var ode=function(a,b,c){this.delegate_=a;this.trackers_=b;this.searchRequests_=new Map;this.lookupLoader_=new nde(this.delegate_,this.trackers_,c)},pde=function(a,b,c,d){var e,f;return y(function(g){if(g.nextAddress==1){e=b+":"+c;if(a.searchRequests_.has(e))return a.trackers_.count(b).increment(),g.return(a.searchRequests_.get(e));f=d();a.searchRequests_.set(e,f);Yd(g,2);return z(g,f,4)}if(g.nextAddress!=2)return g.return(g.yieldResult);Xd(g);a.searchRequests_.delete(e);return Zd(g,0)})};
ode.prototype.loadRankedItems=function(a){var b=this;return pde(this,81,"",function(){return b.delegate_.loadRankedItems(a)})};ode.prototype.warmUpServer=function(a){var b=this;return pde(this,82,"",function(){return b.delegate_.warmUpServer(a)})};ode.prototype.loadAutocompleteItems=function(a,b){var c=this;return pde(this,82,a.getPrefix(),function(){return c.delegate_.loadAutocompleteItems(a,b)})};ode.prototype.loadLookupItems=function(a,b,c){return this.lookupLoader_.load(new ide(a,b,c))};var qde=function(){return Date.now()},rde=function(a,b,c){this.delegate_=a;this.nowFn_=c;a=b.getClient();this.cacheFlushRateMillis_=em(a,14,300)*1E3;b=b.getClient();this.serverWarmupRateMillis_=em(b,13,60)*1E3;this.lastServerWarmup_=this.lastCacheFlush_=0};rde.prototype.loadRankedItems=function(a){var b=a.qos;var c=this.nowFn_();b===1&&this.lastCacheFlush_+this.cacheFlushRateMillis_>c?b=!0:(this.lastCacheFlush_=c,b=!1);return b?Promise.reject(1):this.delegate_.loadRankedItems(a)};
rde.prototype.warmUpServer=function(a){var b=a.qos;var c=this.nowFn_();b===1&&this.lastServerWarmup_+this.serverWarmupRateMillis_>c?b=!0:(this.lastServerWarmup_=c,b=!1);return b?Promise.reject(1):this.delegate_.warmUpServer(a)};rde.prototype.loadAutocompleteItems=function(a,b){return this.delegate_.loadAutocompleteItems(a,b)};rde.prototype.loadLookupItems=function(a,b,c){return this.delegate_.loadLookupItems(a,b,c)};var sde=function(a,b,c){this.delegate_=a;this.listener_=b;this.options_=c;this.delegate_.warmUpSession(c)};sde.prototype.suggest=function(a){a=a===void 0?this.listener_:a;this.delegate_.suggest(a,this.options_);return this};sde.prototype.search=function(a,b){b=b===void 0?this.listener_:b;this.delegate_.search(a,b,this.options_);return this};sde.prototype.cancel=function(){this.delegate_.cancel();return this};sde.prototype.getReporter=function(a){a=a===void 0?V8d:a;return this.delegate_.getReporter(a)};var tde=function(a,b){this.delegate_=a;this.members_=b;this.totalMemberCount_=bwd(a.getPrimaryTarget().getId())?b.length:a.getTotalMemberCount()};Y(tde,BW);tde.prototype.getMemberList=function(){return this.members_};tde.prototype.getTotalMemberCount=function(){return this.totalMemberCount_};var ude=function(a,b){this.filter_=a;this.filterEmptyExplodingGroups_=b};ude.prototype.filterResult=function(a){var b=this;if(!bwd(a.getPrimaryTarget().getId()))return a;var c=a.getMemberList().map(function(d){return b.filter_.filterResult(d)}).filter(Boolean);return this.filterEmptyExplodingGroups_&&c.length===0?null:a.getMemberList().every(function(d,e){return d===c[e]})?a:zs(new tde(a,c))};ude.prototype.reset=function(a){this.filter_.reset(a)};
var Ruc=function(a,b){this.filter_=vgb(a,new ude(a,b))};Ruc.prototype.filterResult=function(a){return this.filter_.filterResult(a)};Ruc.prototype.reset=function(a){this.filter_.reset(a)};var vde=function(a){this.delegate_=a};vde.prototype.warmUpCache=function(){return this.delegate_.warmUpCache().then(function(){return Promise.resolve()},function(a){var b=2;a instanceof l$&&(a=a.getSource())&&(b=a.getCode());return Promise.reject(b)})};vde.prototype.disambiguate=function(a,b){b=b===void 0?new n9d:b;return this.delegate_.disambiguate(a,b)};vde.prototype.lookup=function(a,b,c){c=c===void 0?new atc:c;c.setFilter(Suc(c.getFilter(),!0));this.delegate_.lookup(a,b,c);return this};
vde.prototype.beginSession=function(a,b){b=b===void 0?new dv:b;b=b.clone();b.setFilter(Suc(b.getFilter(),b.filterEmptyExplodingGroups_));var c=this.delegate_.beginSession(b);return new sde(c,a,b)};var wde=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]]),xde=new Map([[2,13],[3,6]]),yde=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 Xuc=new Map([[1,1],[2,3],[3,5]]),zde=new Map([[1,2],[2,4],[3,5],[4,8],[6,15],[7,19],[12,21],[10,20]]),Ade=new Map([[1,2],[2,9],[3,6],[4,6],[6,15],[7,19],[12,21],[10,20]]),Bde=function(a,b){this.logContext_=avc(a,b)};h=Bde.prototype;h.getLogContext=function(){return this.logContext_};
h.createCountMetric=function(a,b,c){var d=b.source();Cde(d,a);var e=Wuc(d);switch(d.getEventType()){case 1:d=e.setCount;b=b.source();b=wi(b,4);var f=new Aae;f.setType(b);f.setValue(c);d.call(e,f);e.setEventType(1);break;case 4:case 5:c=b.source();c=wi(c,3);d=new Dae;d.setLabel(c);Mi(e,Dae,7,d);e.setEventType(4);break;case 6:case 7:c=b.source();d=wi(c,2);b=new xae;c.hasItemCount()&&b.setItemCount(c.getItemCount());c.hasQueryLength()&&b.setQueryLength(c.getQueryLength());c.hasLookupInfo()&&b.setLookupInfo(c.getLookupInfo());
c.hasQueryScope()&&b.setQueryScope(c.getQueryScope());b.setLabel(d);Mi(e,xae,9,b);e.setEventType(6);break;default:return null}e.setClientInterface(a);return e};
h.createStatusMetric=function(a,b,c){var d=b.source();Cde(d,a);var e=Wuc(d);switch(d.getEventType()){case 4:case 5:d=b.source();var f=wi(d,3);var g=wi(d,13)||0;g=xde.get(g)||wde.get(c)||0;var k=u7d(b,"blocked"),l=u7d(b,"network"),r=u7d(b,"processed");b=new Eae;b.setLabel(f);b.setStatus(g);vn(b,8,k);b.setLatencyUsec(l);vn(b,9,r);b.setStatusCode(c);Bm(d,12)&&(d=Bm(d,12),vn(b,6,d));Mi(e,Eae,8,b);e.setEventType(5);break;case 6:case 7:f=b.source();g=wi(f,2);d=new zae;d.setLabel(g);d.setStatusCode(c);f.hasItemCount()&&
d.setItemCount(f.getItemCount());f.hasQueryLength()&&d.setQueryLength(f.getQueryLength());f.hasLookupInfo()&&d.setLookupInfo(f.getLookupInfo());f.hasQueryScope()&&d.setQueryScope(f.getQueryScope());c===0&&(b=u7d(b,"total"),d.setLatencyUsec(b));c=yde.get(c)||0;d.setStatus(c);c=f.getResultIndex();d.setResultIndex(c);if(b=f.getCacheState())c=Yuc(Vv(b,2)),Gn(d,5,c),c=Yuc(Vv(b,3)),Gn(d,6,c),c=d.setDataSource,f=b.getSource(),b=!Fi(f,1),f=f.getProvenance(),b=(b?Ade.get(f):zde.get(f))||0,c.call(d,b);Mi(e,
zae,10,d);e.setEventType(7);break;default:return null}e.setClientInterface(a);return e};h.createLatencyMetric=function(a,b){var c=b.source();Cde(c,a);if(c.getEventType()!==2)return null;var d=Wuc(c);d.setClientInterface(a);a=d.setLatency;var e=b.source();e=wi(e,5);b=u7d(b,"total");var f=new Cae;f.setType(e);f.setLatencyUsec(b);a.call(d,f);d.setEventType(c.getEventType());return d};
h.createErrorMetric=function(a,b){var c=b.source();Cde(c,a);if(c.getEventType()!==3)return null;var d=Wuc(c);d.setClientInterface(a);a=d.setError;var e=b.source();b=e.getErrorType();e=wi(e,7);var f=new Bae;f.setType(b);Gn(f,4,e);a.call(d,f);d.setEventType(c.getEventType());return d};var Cde=function(a,b){var c,d,e;a=(c=X(a,fw,18))==null?void 0:(d=c.getSessionState())==null?void 0:(e=X(d,hw,10))==null?void 0:vp(e,4);a!=null&&(b.setEventSource(a),b.setEventSourceId(a))};var Dde=function(a,b){this.delegate_=a;this.trackers_=b};h=Dde.prototype;h.reportDisplay=function(a){this.delegate_.reportDisplay(a)};h.reportSelect=function(a,b){b=b===void 0?new W8d:b;this.delegate_.reportSelect(a,b)};h.reportExternalSelect=function(a){this.delegate_.reportExternalSelect(a)};h.reportDeselect=function(a){this.delegate_.reportDeselect(a)};h.reportProceed=function(a){this.delegate_.reportProceed(a)};h.reportDismiss=function(){this.delegate_.reportDismiss();Ede(this)};
h.reportSave=function(a){this.delegate_.reportSave(a);Ede(this)};h.reportSecondaryAction=function(a){this.delegate_.reportSecondaryAction(a);Ede(this)};h.reportSend=function(a){this.delegate_.reportSend(a);Ede(this)};var Ede=function(a){a=a.trackers_;var b=a.api,c=new Qv;Sv(c.setEventType(6),3);b.call(a,c).call()};var bvc=function(a,b){this.delegate_=this.delegate=a;this.trackers_=b};Y(bvc,fde);
bvc.prototype.suggest=function(a,b){var c=this;try{var d=!1,e=!1,f=this.trackers_.api(Otc(b.getQueryScope()));f.call();this.delegate_.suggest(function(g){var k=g.getMetadata(),l=k.getCacheState();f.source.setCacheState(l);f.source.setItemCount(g.getResults().length);f.result(l.getSource().getCode());k.getIsFirstCallback()&&(d&&k.getCode()===0&&c.trackers_.error(22,19,f.source).report(),d=!0);k.getIsLastCallback()&&(e&&k.getCode()===0&&c.trackers_.error(22,20,f.source).report(),e=!0);k=c.trackers_.latency(90,
f.source);k.start();try{a(g)}catch(r){throw c.trackers_.error(22,11,f.source).report(),r;}finally{k.stop()}},b)}catch(g){throw this.trackers_.error(22,1).report(),g;}};
bvc.prototype.search=function(a,b,c){var d=this;try{var e=!1,f=!1,g=this.trackers_.api(Ntc(a,c.getQueryScope()));g.call();this.delegate_.search(a,function(k){var l=k.getMetadata(),r=l.getCacheState();g.source.setCacheState(r);g.source.setItemCount(k.getResults().length);g.result(r.getSource().getCode());l.getIsFirstCallback()&&(e&&l.getCode()===0&&d.trackers_.error(23,19,g.source).report(),e=!0);l.getIsLastCallback()&&(f&&l.getCode()===0&&d.trackers_.error(23,20,g.source).report(),f=!0);l=d.trackers_.latency(91,
g.source);l.start();try{b(k)}catch(w){throw d.trackers_.error(23,11,g.source).report(),w;}finally{l.stop()}},c)}catch(k){throw this.trackers_.error(23,1).report(),k;}};bvc.prototype.getReporter=function(a){a=this.delegate_.getReporter(a);return new Dde(a,this.trackers_)};var Fde=function(a,b){this.delegate_=this.delegate=a;a=this.trackers_=b;b=a.api;var c=new Qv;Sv(c.setEventType(6),1);b.call(a,c).call()};Y(Fde,gde);
Fde.prototype.warmUpCache=function(){var a=this,b=this.trackers_.api(Ktc());b.call();return this.delegate_.warmUpCache().then(function(c){b.source.setCacheState(c);b.result(c.getSource().getCode());return c},function(c){c instanceof l$?(b.source.setCacheState(c),b.result(c.getSource().getCode())):(a.trackers_.error(17,1).report(),c=(new l$).setSource((new kw).setCode(2)));return Promise.reject(c)})};
Fde.prototype.lookup=function(a,b,c){var d=this;try{var e=!1,f=!1,g=this.trackers_.api(Jtc(a,c.getQueryScope()));g.call();this.delegate_.lookup(a,function(k){var l=k.getMetadata(),r=l.getCacheState();g.source.setCacheState(r);g.source.setItemCount(k.getResults().size);for(var w=0,x=0,C=0,H=0,J=m(k.getResults().keys()),O=J.next();!O.done;O=J.next()){O=O.value;cwd(O)?w++:Zvd.includes(O.getType())?x++:$vd.includes(O.getType())&&C++;var R=void 0;((R=k.getResults().get(O))==null?0:R.getDisplayName())&&
H++}J=O=R=0;for(var V=m(l.notFoundIdList_),ca=V.next();!ca.done;ca=V.next())ca=ca.value,cwd(ca)?R++:Zvd.includes(ca.getType())?O++:$vd.includes(ca.getType())&&J++;V=g.source.getMutableLookupInfo();w=En(V,2,w);x=En(w,1,x);C=En(x,3,C);C=En(C,5,R);C=En(C,4,O);C=En(C,6,J);En(C,14,H);g.result(r.getSource().getCode());l.getIsFirstCallback()&&(e&&l.getCode()===0&&d.trackers_.error(8,19).report(),e=!0);l.getIsLastCallback()&&(f&&l.getCode()===0&&d.trackers_.error(8,20).report(),f=!0);l=d.trackers_.latency(89);
l.start();try{b(k)}catch(na){throw d.trackers_.error(8,11).report(),na;}finally{l.stop()}},c)}catch(k){throw this.trackers_.error(8,1).report(),k;}};Fde.prototype.disambiguate=function(a,b){var c=this.trackers_.api(Mtc());c.call();return this.delegate_.disambiguate(a,b).then(function(d){var e=d.getMetadata().getCacheState();c.source.setCacheState(e);c.result(e.getSource().getCode());return d})};
Fde.prototype.beginSession=function(a){this.trackers_.api(Ltc()).call();var b=this.delegate_.beginSession(a);return cvc(b,dbe(this.trackers_,new $ae(function(){return b.getSessionState()})))};var Gde=function(a,b){this.clearcut_=a;this.logEventFactory_=b};Gde.prototype.report=function(a){var b=F7d(this.clearcut_);a=this.logEventFactory_.eventsFactory_.create(b,a);a=m(a);for(b=a.next();!b.done;b=a.next())G7d(this.clearcut_,b.value)};var Hde=function(a){this.clearcut_=a};Hde.prototype.report=function(a){this.clearcut_.report(a)};var Ide=function(a){this.writer_=a};var Jde=function(){};
Jde.prototype.create=function(a,b,c){var d=Uuc(b),e=new w7d;Mi(e,Tuc,3,d);c!==7&&b.hasQuery()&&(d=b.getQuery(),c===2&&e.setQuery(d),e.setQueryLength(d.length));var f=new x7d;d=eqc(em(b,9)-em(b,8));En(f,2,d);d=new g$;Mi(d,w7d,1,e);Mi(d,x7d,6,f);e=new v7d;if(f=Ym(pn(b,6))){vn(e,3,f*1E3);var g=(Date.now()-f)*1E3;vn(e,2,g)}Oi(e,1,!!f);Mi(d,v7d,3,e);d.setAffinityVersion(b.getAffinityVersionOrUndefined());b=new z7d;b.setEventType(c);b.setMetadata(d);b.setClientInterface(a.clone());return b};var Kde=function(){};Kde.prototype.extractPersonEventSource=function(a){a=dvc(a);return Vv(a,4)};Kde.prototype.extractFieldEventSource=function(a){a=dvc(a);return Vv(a,3)};var Lde=function(){};Lde.prototype.extractPersonEventSource=function(a){var b=X(a,hw,10)||new hw;return(a.getQuery()||"").length?Vv(b,2):Vv(b,4)};Lde.prototype.extractFieldEventSource=function(a){var b=X(a,hw,10)||new hw;return(a.getQuery()||"").length?Vv(b,1):Vv(b,3)};var Mde=function(){};Mde.prototype.extractPersonEventSource=function(a){a=evc(a);return Vv(a,4)};Mde.prototype.extractFieldEventSource=function(a){a=evc(a);return Vv(a,3)};var gvc=new Set([8]);var Nde=function(a,b,c){this.defaultTokenGroups_=a;this.additionTokenGroups_=b;this.replacementTokenGroups_=c};var Ode=new Map([[1,11],[2,12],[0,0]]),Pde=function(){};Pde.prototype.write=function(a,b,c){var d=new $9;En(d,1,c);c=new a$;c.setPosition(d);c.setExistingSelectionsCount(b.getExistingSelectionsCount());Mi(a,a$,8,c);b=Ode.get(b.getContext());cx(a,3,[b])};var Qde=new Map([[1,5],[2,4],[3,6],[7,13]]),Rde=function(){};Rde.prototype.write=function(a,b,c,d){var e=new $9;En(e,1,c);a.setPosition(e);c=Qde.get(b.getProvenance())||0;wi(b,4)===1?c=14:d?c=3:wi(b,4)===2?c=10:wi(b,4)===3&&(c=15);cx(a,3,[c])};var Sde=new Set([9,1,2]),Tde=function(){};Tde.prototype.write=function(a,b,c,d,e){var f=a.getMutableMetadata();if(e===3||c===8||c===10||c===9||c===2&&Sde.has(d))c=new d$,Vv(b,7)!==1&&Vv(b,7)!==7||c.setEmail(Sw(b,3)),Vv(b,7)!==2&&Vv(b,7)!==5||c.setPhone(Sw(b,3)),b.hasProfileId()&&c.setObfuscatedGaiaId(b.getProfileId()),b.hasGroupId()&&c.setGroupId(b.getGroupId()),Mi(a,d$,4,c),a=new e$,a.setName(b.getNameOrUndefined()),Mi(f,e$,2,a);f.setIsBoosted(b.getIsBoosted())};var Ude=function(a){var b=new Tde;this.metadataStateWriter_=a;this.contactInfoWriter_=b},Vde=function(a){var b;return((b=a.getInfo())==null?0:b.getIsPlaceholder())?!0:!1};var mvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mvc,W);h=mvc.prototype;h.getEventType=function(){return wi(this,1)};h.getEventType_legacyNullable=function(){return Vv(this,1)};h.setEventType=function(a){return Gn(this,1,a)};h.getSessionState=function(){return X(this,AW,2)};h.setSessionState=function(a){return Mi(this,AW,2,a)};h.hasSessionState=function(){return xi(this,AW,2)};h.setEventSources=function(a){Mi(this,hw,4,a)};var Wde=function(){this.defaultEntityFactory_=new Ide(new Ude(new Rde));this.contextualEntityFactory_=new Ide(new Ude(new Pde));this.extensionFactory_=new Jde;this.defaultEventSourceExtractor_=new Lde;this.additionEventSourceExtractor_=new Kde;this.replacementEventSourceExtractor_=new Mde};
Wde.prototype.create=function(a,b){var c=b.getSessionState()||new AW,d=b.getEventType_legacyNullable();b=Bi(b,aw,3,Ci(Jm));var e=ivc(b,kvc);var f=e.get(0);b=e.get(1);e=e.get(2);f=f?[].concat(q(ivc(f,jvc).values())):[];b=b?[].concat(q(ivc(b,jvc).values())):[];e=e?[].concat(q(ivc(e,jvc).values())):[];e=new Nde(f,b,e);b=[];f=m(e.defaultTokenGroups_);for(var g=f.next();!g.done;g=f.next())b.push.apply(b,q(Xde(this,a,d,g.value,c,this.defaultEventSourceExtractor_,this.defaultEntityFactory_)));f=m(e.additionTokenGroups_);
for(g=f.next();!g.done;g=f.next())b.push.apply(b,q(Xde(this,a,d,g.value,c,this.additionEventSourceExtractor_,this.contextualEntityFactory_)));e=m(e.replacementTokenGroups_);for(f=e.next();!f.done;f=e.next())b.push.apply(b,q(Xde(this,a,d,f.value,c,this.replacementEventSourceExtractor_,this.contextualEntityFactory_)));return b};
var Xde=function(a,b,c,d,e,f,g){var k=[];e=d[0].getSessionState()||e;var l=fvc(d).map(function(r){var w=new y7d,x=g.writer_,C=w.getMetadata()||new f$;w.setMetadata(C);var H=Yu(r)||new bw,J=r.getInfo()||new cw;x.metadataStateWriter_.write(C,H,Bm(H,2)||0,Vde(r));x.contactInfoWriter_.write(w,J,c,H.getProvenance()||0,wi(H,4)||0);w.setLoggingId(Sw(J,1));r=X(w,d$,4)||new d$;Mi(w,d$,4,r);r.setType(vp(J,8));return w});l.length&&k.push(Yde(a,b,c,f.extractPersonEventSource(e),l,e));d=hvc(d).map(function(r){var w=
new y7d,x=g.writer_,C=w.getMetadata()||new f$;w.setMetadata(C);var H=Yu(r)||new bw,J=r.getInfo()||new cw;x.metadataStateWriter_.write(C,H,(Fi(J,9,!0)?Bm(H,2):Bm(H,1))||0,Vde(r));x.contactInfoWriter_.write(w,J,c,H.getProvenance()||0,wi(H,4)||0);r=X(w,d$,4)||new d$;Mi(w,d$,4,r);X(w,d$,4).setType(vp(J,7));w.setLoggingId(Sw(J,2));return w});d.length&&k.push(Yde(a,b,c,f.extractFieldEventSource(e),d,e));return k},Yde=function(a,b,c,d,e,f){a=a.extensionFactory_.create(b,f,c);a.getClientInterface().setEventSource(d);
a.getClientInterface().setEventSourceId(d);Ni(a,2,e);return a};var Zde=function(a,b){var c=$uc("PeopleStore.BigBug"),d=c.setLogSource;var e=a.getClearcut();e=wi(e,3,41);this.logContext_=Zuc(d.call(c,e).setApplication(a.getClearcut().getSocialApplication()).setEnvironment(a.runtimeConfig_.getPeopleApiEnv()).setVersion("1004").setBaselineCl(826638166).setEnableClearcut(a.getClearcut().getEnableClearcut()),[].concat(q(a.runtimeConfig_.getExperiments().getExperimentIdsList()),q(gw?gw.getExperimentIds():[]))).setPeoplekitEntryPoint(b.getPeoplekitEntryPoint()).setClientAgent(2);
this.eventsFactory_=new Wde};Zde.prototype.getLogContext=function(){return this.logContext_};var $de=function(a){this.clientConfig_=a;this.reportingCache_=new Map};$de.prototype.create=function(a){var b=a.serialize();this.reportingCache_.has(a.serialize())||(a=new Zde(this.clientConfig_,a),a=new Hde(new Gde(E7d(a),a)),this.reportingCache_.set(b,a));return this.reportingCache_.get(b)};var aee=function(a,b,c){this.reporting_=a;this.sharedSessionState_=b;this.peopleStore_=c};h=aee.prototype;h.reportDisplay=function(a){W$(this,jw(a,1))};h.reportSelect=function(a,b){b=b===void 0?new W8d:b;if(b.getOriginator()!==0)for(var c=m(a),d=c.next();!d.done;d=c.next()){d=d.value;if(!xi(d,bw,2)){var e=d,f=new bw;Mi(e,bw,2,f)}d=Yu(d);Gn(d,4,b.getOriginator())}b=this.sharedSessionState_;c=Ym(pn(this.sharedSessionState_,4))+1;vn(b,4,c);W$(this,jw(a,2,this.sharedSessionState_))};
h.reportExternalSelect=function(a){for(var b=m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!xi(c,bw,2)){var d=c,e=new bw;Mi(d,bw,2,e)}c=Yu(c);Gn(c,4,2)}b=this.sharedSessionState_;c=Ym(pn(this.sharedSessionState_,4))+1;vn(b,4,c);W$(this,jw(a,15,this.sharedSessionState_))};h.reportDeselect=function(a){W$(this,jw(a,17,this.sharedSessionState_))};h.reportProceed=function(a){W$(this,jw(a,10,this.sharedSessionState_))};
h.reportDismiss=function(){var a=this.sharedSessionState_,b=new mvc;a=a.clone();b.setSessionState(a);b.setEventType(7);b.setEventSources(X(a,hw,10));W$(this,[b])};h.reportSave=function(a){W$(this,jw(a,9,this.sharedSessionState_))};h.reportSecondaryAction=function(a){W$(this,jw(a,19,this.sharedSessionState_))};h.reportSend=function(a){W$(this,jw(a,8,this.sharedSessionState_,!0))};var W$=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next())a.reporting_.report(c.value)};var bee=function(a,b,c,d){this.delegate_=this.delegate=a;this.sharedSessionState_=c;vn(this.sharedSessionState_,5,Math.floor(Math.random()*9007199254740991));vn(this.sharedSessionState_,4,0);gwd(this.sharedSessionState_,0);this.reportingFactory_=b;this.peopleStore_=d};Y(bee,fde);
bee.prototype.suggest=function(a,b){var c=this,d=this.sharedSessionState_.clone();gwd(this.sharedSessionState_,Ym(pn(this.sharedSessionState_,3))+1);d.setQuery("");iwd(d);var e=0;this.delegate_.suggest(function(f){e=cee(c,f.getResults(),nvc(f),d,e);a(f)},b)};
bee.prototype.search=function(a,b,c){var d=this,e=this.sharedSessionState_.clone();gwd(this.sharedSessionState_,Ym(pn(this.sharedSessionState_,3))+1);e.setQuery(a);iwd(e);var f=0;this.delegate_.search(a,function(g){f=cee(d,g.getResults(),nvc(g),e,f);b(g)},c)};bee.prototype.getReporter=function(a){return new aee(this.reportingFactory_.create(a),this.sharedSessionState_,this.peopleStore_)};bee.prototype.getSessionState=function(){return this.sharedSessionState_};
var cee=function(a,b,c,d,e){d=d.clone();var f=hwd();Zw(d,9,f);f=a.delegate_.getLastUpdatedTimestamp();vn(d,6,f);d.setAffinityVersion(a.delegate_.getAffinityVersion());a=m(b);for(b=a.next();!b.done;b=a.next()){var g=b.value;b=g.getIsBoosted();f=0;g=m(g.getTargetList());for(var k=g.next();!k.done;k=g.next()){k=k.value.getLoggingToken();Ii(k,cw,1).setIsBoosted(b);var l=Yu(k)||new bw;l.getProvenance()!==7&&l.setProvenance(c.getProvenance());En(l,2,e);En(l,1,f);Mi(k,bw,2,l);k.setSessionState(d);f++}e++}return e};var dee=function(a,b,c){this.delegate_=this.delegate=a;this.reportingFactory_=b;this.instanceId_=Spc();this.clearcutConfig_=c};Y(dee,gde);
dee.prototype.lookup=function(a,b,c){this.delegate_.lookup(a,function(d){var e=Array.from(d.getResults().values()),f,g=d.getMetadata();g.getCacheState()&&(g=g.getCacheState(),g.hasSource()&&(f=g.getSource()));f=f||new kw;g=c.getOriginator();e=m(e);for(var k=e.next();!k.done;k=e.next()){k=m(k.value.getTargetList());for(var l=k.next();!l.done;l=k.next()){l=l.value.getLoggingToken();var r=Yu(l)||new bw;r.getProvenance()!==7&&r.setProvenance(f.getProvenance());Gn(r,4,g);Mi(l,bw,2,r)}}b(d)},c)};
dee.prototype.beginSession=function(a){var b=new AW,c=eee(this,a);Mi(b,hw,10,c);c=fee(this,a);Mi(b,iw,12,c);b.setInstanceId(this.instanceId_);a=this.delegate_.beginSession(a);return new bee(a,this.reportingFactory_,b,this)};
var eee=function(a,b){a=Bi(a.clearcutConfig_,hw,5,Ci());return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return c.getEntryPoint()===0})||new hw},fee=function(a,b){a=Bi(a.clearcutConfig_,iw,6,Ci());return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return c.getEntryPoint()===0})||new iw};var gee=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new I$d(e);this.indexes_=obe(Bm(e,8,250),em(e,9,3600)*1E3);this.maxResults_=e.getSearchMaxResults()};h=gee.prototype;h.getCacheType=function(){return 3};h.flush=function(){this.indexes_.clear()};
h.fetch=function(a){var b=this,c,d;return y(function(e){switch(e.nextAddress){case 1:c=k$(new kw,!0).setProvenance(7).setCode(0);if(b.canSkipFetch_(a))return e.return(k$(c,!1));Wd(e,2);return z(e,b.adapter_.search(a.getPrefix(),b.maxResults_),4);case 4:d=e.yieldResult;dt(e,3);break;case 2:return $d(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new ew),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
h.canSkipFetch_=function(a){return a.isSuggestQuery()?!0:a.queryScope()===3?!1:this.indexes_.has(a.getPrefix())?!0:!1};h.index=function(a,b){for(var c=J$d(this.ranker_,b,1),d=m(b),e=d.next();!e.done;e=d.next())this.targetFactory_.processItem(e.value);d=a.queryScope()===3;this.storage_.storeItems(1,b,d);b=pce(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),b)};h.search=function(a){return a.isSuggestQuery()||!this.indexes_.has(a.getPrefix())?[]:S$(this.indexes_.get(a.getPrefix()).search([]),a.getCollector())};
h.getName=function(){return this.adapter_.getName()};var hee=function(a,b,c){this.adapter_=a;this.targetFactory_=b;this.indexer_=c};hee.prototype.getStageType=function(){return 2};hee.prototype.index_=function(a,b){for(var c=m(a),d=c.next();!d.done;d=c.next())this.targetFactory_.processItem(d.value);this.indexer_.storeItems(a,b)};
hee.prototype.lookup=function(a){var b=this,c,d,e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:return c=new Map,d=k$(new kw,!0).setProvenance(7).setCode(0),e=a.queryScope()===3,f=Qbe(a),Wd(x,2),z(x,b.adapter_.lookup(f),4);case 4:g=x.yieldResult;dt(x,3);break;case 2:return $d(x),d.setCode(13),a.notify(c,[],d),x.return();case 3:b.index_(g,e);k=m(f);for(l=k.next();!l.done;l=k.next())r=l.value,(w=b.indexer_.load(r,a.getFormat(),a.getOptions().getUseOriginalDisplayValue()))&&c.set(r,w);
a.notify(c,[],d);ae(x)}})};var iee=function(a,b){this.delegate_=a;this.trackers_=b;this.name=a.name};iee.prototype.search=function(a){var b=this,c,d;return y(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(66),c.start(),Wd(e,2,3),z(e,b.delegate_.search(a),5);case 5:return e.return(e.yieldResult);case 3:Xd(e);c.stop();Zd(e,0);break;case 2:throw d=$d(e),b.trackers_.error(36,11).report(),d;}})};
iee.prototype.lookup=function(a){var b=this,c,d;return y(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(67),c.start(),Wd(e,2,3),z(e,b.delegate_.lookup(a),5);case 5:return e.return(e.yieldResult);case 3:Xd(e);c.stop();Zd(e,0);break;case 2:throw d=$d(e),b.trackers_.error(37,11).report(),d;}})};var jee=function(a,b){this.delegate_=a;this.trackers_=b;this.name=a.name};jee.prototype.getPosition=function(){try{return this.delegate_.getPosition()}catch(a){throw this.trackers_.error(38,11).report(),a;}};
jee.prototype.warmUpCache=function(){var a=this,b,c;return y(function(d){switch(d.nextAddress){case 1:return b=a.trackers_.latency(65),b.start(),Wd(d,2,3),z(d,a.delegate_.warmUpCache(),5);case 5:return d.return(d.yieldResult);case 3:Xd(d);b.stop();Zd(d,0);break;case 2:throw c=$d(d),a.trackers_.error(35,11).report(),c;}})};jee.prototype.needsWarmUp=function(){try{return this.delegate_.needsWarmUp()}catch(a){throw this.trackers_.error(38,11).report(),a;}};var kee=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new I$d(e);this.index_=T$};h=kee.prototype;h.getCacheType=function(){switch(this.adapter_.getPosition()){case 1:return 2;case 2:return 3;default:return 0}};h.flush=function(){this.index_=T$};
h.fetch=function(a){var b=this,c,d;return y(function(e){switch(e.nextAddress){case 1:c=k$(new kw,!0).setProvenance(7).setCode(0);if(b.index_!=T$&&!b.adapter_.needsWarmUp())return e.return(k$(c,!1));Wd(e,2);return z(e,b.adapter_.warmUpCache(),4);case 4:d=e.yieldResult;dt(e,3);break;case 2:return $d(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new ew),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
h.index=function(a,b){a=J$d(this.ranker_,b,1);for(var c=m(b),d=c.next();!d.done;d=c.next())this.targetFactory_.processItem(d.value);this.storage_.storeItems(1,b);this.index_=pce(this.trieFactory_,a)};h.search=function(a){var b=this;this.adapter_.needsWarmUp()&&Promise.resolve().then(function(){return b.fetch(a)});return S$(this.index_.search(a.getTerms()),a.getCollector())};h.getName=function(){return this.adapter_.getName()};var lee=function(a,b){this.provider_=a;this.itemFactory_=b};lee.prototype.search=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1)return b<1?e.return([]):z(e,c.provider_.search((new wwd).setQuery(a).setMaxResults(b)),2);d=e.yieldResult;return e.return(mee(d))})};lee.prototype.lookup=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return a.length?z(d,b.provider_.lookup(a),2):d.return([]);c=d.yieldResult;return d.return(mee(c))})};lee.prototype.getName=function(){return this.provider_.name};var nee=function(a,b){this.provider_=a;this.itemFactory_=b};nee.prototype.getPosition=function(){return this.provider_.getPosition()};nee.prototype.needsWarmUp=function(){return this.provider_.needsWarmUp()};nee.prototype.warmUpCache=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,a.provider_.warmUpCache(),2);b=c.yieldResult;return c.return(mee(b))})};nee.prototype.getName=function(){return this.provider_.name};var oee=new wbe(68,69,38);var pee=function(){},qee=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=void 0,e=[],f=m(c.getTargetList()),g=f.next();!g.done;g=f.next())g=rvc(c,g.value,7),e.push(String(g.id)),g.coalescedKeys=e,d||(d=g),b.push(g);d&&Bv(d.id)&&(e=void 0,d.totalMemberCount=(e=Rw(c,4))!=null?e:void 0,d.memberKeys=c.getMemberList().map(function(k){var l=m(k.getTargetList());for(l=l.next();!l.done;l=l.next())return k=rvc(k,l.value,8),b.push(k),String(k.id)}))}return b},mee=function(a){a=
Bi(a,yN,1,Ci());return qee(a)};var ree=function(a){this.delegate_=a};ree.prototype.processItem=function(a){a.target=vvc(a);this.delegate_.processItem(a);a.resultData&&delete a.resultData;a.targetData&&delete a.targetData};var wvc=function(){};
wvc.prototype.configure=function(a){var b=a.clientConfig,c=a.trackers,d=a.storage,e=a.indexer,f=a.trieFactory,g=a.prefixCaches;a=a.lookupStages;var k=b.runtimeConfig_.customDataConfig_;if(k){var l=b.getClient(),r=new pee;var w=w===void 0?H$d:w;b=new Uae(b,new ree(w));w=[];for(var x=m(k.staticDataProviders_.reverse()),C=x.next();!C.done;C=x.next()){C=C.value;var H=c,J=C;J=new jee(J,H);J=new kee(new nee(J,r),b,f,d,l);H=new U$(J,H,oee);switch(C.getPosition()){case 1:w.push(H);break;case 2:g.push(H);
break;default:throw Error("bh");}}w.length&&g.splice.apply(g,[0,0].concat(q(w)));k=m(k.dynamicDataProviders_);for(w=k.next();!w.done;w=k.next())w=w.value,x=c,C=w,C=new iee(C,x),C=new gee(new lee(C,r),b,f,d,l),x=new U$(C,x,oee),g.push(x),w=new iee(w,c),a.push(new hee(new lee(w,r),b,e))}};var see={create:function(a){var b=Jrc(B$d||(B$d=A$d('[[15,15,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,true],["AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s","ANVavNKl4mkR3DMa8R68PqYrNFuTUEjFCzfJB_o"],["BUGANIZER","BUGANIZER",null,"ISSUE_TRACKER_AFFINITY",47],[true,740,null,null,[[180,181,178,179]]],[7,true]]')));a=new C$d(b,a);a.runtimeConfig_.getExperiments().getProfileId()?D$d(a).getIsEnabled()?(b=Jrc(F$d||(F$d=Lrc('[null,null,null,null,null,null,null,"AIzaSyABqJ85_R2irnKzMtGBL0iHuyFBi6Efk1w"]'))),
b=new Mrc(b,1)):b=new cv:b=new cv;var c=a.runtimeConfig_.getExperiments().getProfileId_legacyNullable(),d=a.runtimeConfig_;gw=b.loadExperiments(D$d(a).getApplication(),(new Nrc).setPeopleApiEnv(d.getPeopleApiEnv()),c);b={};c=new fbe;d=m([xvc]);for(var e=d.next();!e.done;e=d.next())e=e.value,c=e(c,b);c=c===void 0?new fbe:c;b=a.getClearcut();b=new Bde(b,a.runtimeConfig_);b=new vrc(wrc(b));b=new cbe(b);d=new ebe(a,b);e=c;c=d.targetFactory_;var f=a.getClient();c=new Fbe(c,f);var g=g===void 0?qde:g;g=
new rde(d.loader_,a,g);f=new ode(g,b,a);var k=[new ede,new Nbe,new ybe].concat(q(e.cacheConfigurators_),[new Fce]);e=[];var l=[],r=new Sbe(c,a);g=new Rbe(l,r,a);d={clientConfig:a,trackers:b,storage:c,indexer:r,loader:f,loaderFactory:d,trieFactory:new oce(c,g,b),prefixCaches:e,lookupStages:l};f=m(k);for(k=f.next();!k.done;k=f.next())k.value.configure(d);d=new $be(e);g=new ece(a,b,d,g,c);d=a.getClient();c=new Sce(d,c);d=a.getClient();g=new Dce(g,c,d);c=new $de(a);a=a.getClearcut();g=new dee(g,c,a);
g=new Fde(g,b);return new vde(g)}};var tee=function(){};tee.prototype.send=function(a,b){zua(a);return this.makeRequest(a).then(function(c){return b?vua(b,c):c})};var uee=function(a,b,c,d,e){this.gapiUrl=a;this.gapiKey=b;this.customGapiPromise=null;this.gapiConfigUpdates=c||{};this.gapiAuthParams=d||{};this.defaultApiId=e};Y(uee,tee);h=uee.prototype;h.getGapi=function(){var a=this;return(this.customGapiPromise||P7a()).then(function(b){b=b||window.gapi;a.setGapiConfig(b);return V7a(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return b})})};
h.makeRequest=function(a){var b=this;return this.getGapi().then(function(c){return y(function(d){if(d.nextAddress==1)return b.gapiAuthParams.minAuthTokenTimeRemaining===void 0?d.jumpTo(2):z(d,U7a(c,b.gapiAuthParams.minAuthTokenTimeRemaining),2);b.setGapiConfig(c);return d.return(b.parseResponse(c.client.request(b.createRequestParams(a))))})})};
h.createRequestParams=function(a){return{root:this.gapiUrl,path:a.path,method:a.httpMethod,body:a.body,params:a.queryParams,headers:a.headers,authType:a.authType,apiId:a.apiId||this.defaultApiId}};h.parseResponse=function(a){return new Promise(function(b,c){a.then(function(d){b(d.result===!1&&d.body!=null?{data:d.body}:d.result)},function(d){c(d.result===!1&&d.body!=null?{data:d.body}:d.result)})})};
h.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&S7a(a,b,this.gapiConfigUpdates[b])};uee.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var vee=function(){};vee.\u0275fac=function(a){return new (a||vee)};vee.\u0275mod=$e({type:vee});
vee.\u0275inj=Fc({providers:[{provide:xod,useFactory:function(){var a=new uee("https://people-pa.googleapis.com","AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",{withCredentials:!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0}),b=yvc();a.customGapiPromise=b;return new Fpd(a)}}],imports:[{ngModule:tX,providers:[GW,{provide:pwd,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:see,autocompleteFactory:u9d}}}]},{ngModule:R_,providers:[yHd,
{provide:xHd,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:see,searchBarFactory:v$d}}}]}]});var Bvc={os:1223084,version:1223033},Avc={os:201569,version:201543};var Hvc={unconfirmed:5437934,chromiumRegression:5438261},Gvc={unconfirmed:1218157,chromiumRegression:1218155};var X$={},wee=(X$.NETWORK_DOWNLOADING=[{type:"INPUT",question:"What specific URL can reproduce the problem?",answerPrefix:"Example URL: "}],X$.AUDIO_VIDEO=[{type:"SELECT",question:"Does this feature work correctly in other browsers?",answerPrefix:"Does this work in other browsers?\n",options:["Not sure - I don't know","Yes - This is just a Chromium problem",{text:"No - I can reproduce the problem in another browser",child:{type:"INPUT",question:"Which other browsers (including versions) also have the problem?"}}]},
{type:"TEXT",question:"Please open chrome://gpu in a new Chrome tab and paste the report here.",answerPrefix:"Contents of chrome://gpu: \n"}],X$.CONTENT=[{type:"INPUT",question:"What specific URL has a problem?",answerPrefix:"Example URL: "},{type:"SELECT",question:"Does the problem occur on multiple sites?",options:["Not sure - I don't know","Yes - Please describe below","No - Just that one URL"]},{type:"SELECT",question:"Is it a problem with a plugin?",options:["Not sure - I don't know",{text:"Yes - Those darn plugins",
child:{type:"INPUT",question:"Which plugin?"}},"No - It's the browser itself"]},{type:"SELECT",question:"Does this feature work correctly in other browsers?",answerPrefix:"Does this work in other browsers? ",options:["Not sure - I don't know","Yes - This is just a Chromium problem",{text:"No - I can reproduce the problem in another browser",child:{type:"INPUT",question:"Which other browsers (including versions) also have the problem?"}}]}],X$.EXTENSIONS_THEMES=[{type:"SELECT",question:"What kind of software had the problem?",
options:["Chrome Extension - Adds new browser functionality",{text:"Chrome Theme - Makes Chrome look awesome",child:{type:"INPUT",question:"Do you know the latest version where it worked?"}}]},{type:"INPUT",question:Dh([Bh("What is the link to that software in "),zvc("the Chrome Webstore","https://chrome.google.com/webstore"),Bh("?")]),answerPrefix:"WebStore page: "}],X$.WEBSTORE=[{type:"INPUT",question:"What is the URL of the Chrome WebStore page that had the problem?",answerPrefix:"Webstore page: "}],
X$.CRASHES=[{type:"INPUT",question:"Do you have a Report ID from chrome://crashes?",answerPrefix:"Crashed report ID: "},{type:"SELECT",question:"How severe is the crash?",options:["Just one tab","Just one plugin","The whole browser"],answerPrefix:"How much crashed? "},{type:"SELECT",question:"Is it a problem with a plugin?",options:["Not sure - I don't know",{text:"Yes - Those darn plugins",child:{type:"INPUT",question:"Which plugin?"}},"No - It's the browser itself"]}],X$.OTHER=[{type:"SELECT",question:"Please select a label to classify your issue:",
options:["Not sure - I don't know","Type-Feature - Request for new or improved features","Type-Bug-Regression - Used to work, now broken","Type-Bug - Software not working correctly","Cr-UI-I18N - Issue in translating UI to other languages"]}],X$.API=[{type:"SELECT",question:"Which component does this fall under?",options:"Not sure - I don't know;Blink>Animation;Blink>BackgroundSync;Blink>Bindings;Blink>Bluetooth;Blink>Canvas;Blink>Compositing;Blink>CSS;Blink>DataTransfer;Blink>DOM;Blink>Editing;Blink>FileAPI;Blink>Focus;Blink>Fonts;Blink>Forms;Blink>Fullscreen;Blink>GamepadAPI;Blink>GetUserMedia;Blink>HitTesting;Blink>HTML;Blink>Image;Blink>INPUT;Blink>Internals;Blink>Javascript;Blink>Layout;Blink>Loader;Blink>Location;Blink>Media;Blink>MediaStream;Blink>MemoryAllocator;Blink>Messaging;Blink>Network;Blink>Paint;Blink>Payments;Blink>PerformanceAPIs;Blink>PermissionsAPI;Blink>PresentationAPI;Blink>PushAPI;Blink>SavePage;Blink>Scheduling;Blink>Scroll;Blink>SecurityFeature;Blink>ServiceWorker;Blink>Speech;Blink>Storage;Blink>SVG;Blink>TEXTAutosize;Blink>TEXTEncoding;Blink>TEXTSELECTion;Blink>USB;Blink>Vibration;Blink>ViewSource;Blink>WebAudio;Blink>WebComponents;Blink>WebCrypto;Blink>WebFonts;Blink>WebGL;Blink>WebGPU;Blink>WebMIDI;Blink>WebRTC;Blink>WebShare;Blink>WebVR;Blink>WindowDialog;Blink>Workers;Blink>XML".split(";")},
{type:"SELECT",question:"Does this feature work correctly in other browsers?",answerPrefix:"Does this work in other browsers? ",options:["Not sure - I don't know","Yes - This is just a Chrome problem",{text:"No - I can reproduce the problem in another browser",child:{type:"TEXT",question:"Details of interop issue"}}]}],X$.SECURITY=[{type:"INPUT",question:"For crashes, what type of crash [tab, browser, etc.]:",answerPrefix:"Type of crash: "},{type:"TEXT",question:Dh([Bh("For crashes, what was the crash state? [See "),
zvc("Reporting Crash Bugs","https://www.chromium.org/Home/chromium-security/reporting-security-bugs/#reporting-crash-bugs"),Bh(", include the stack trace *with symbols*, registers, exception record]:")]),answerPrefix:"Crash state: "},{type:"INPUT",question:"Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited?",answerPrefix:"Reporter credit: "}],X$);var xee=function(){};xee.\u0275fac=function(a){return new (a||xee)};xee.\u0275mod=$e({type:xee});xee.\u0275inj=Fc({imports:[J_]});var yee=function(){};yee.\u0275fac=function(a){return new (a||yee)};yee.\u0275mod=$e({type:yee});yee.\u0275inj=Fc({providers:[bA],imports:[Sz,EZd,Ly,iA,n7,l7,Ky]});var zee=function(){};zee.\u0275fac=function(a){return new (a||zee)};zee.\u0275mod=$e({type:zee});zee.\u0275inj=Fc({providers:[{provide:sZd,useValue:wee},{provide:uZd,useFactory:Cvc},{provide:tZd,useFactory:Fvc},{provide:vZd,useFactory:Ivc}],imports:[v0,WO,Q5,DE,mB,xee,lL,HE,HU,zU,yee,A0]});var Aee=function(){};Aee.\u0275fac=function(a){return new (a||Aee)};Aee.\u0275mod=$e({type:Aee});Aee.\u0275inj=Fc({imports:[WO,mB,wK,BU,DE,EE,M4]});var Bee=function(){};Bee.\u0275fac=function(a){return new (a||Bee)};Bee.\u0275mod=$e({type:Bee});Bee.\u0275inj=Fc({imports:[NU,WO,M4,yW,DE,GU,wK,lL,H5,KX]});var Cee=function(){};Cee.\u0275fac=function(a){return new (a||Cee)};Cee.\u0275mod=$e({type:Cee});Cee.\u0275inj=Fc({imports:[WO,mB,wK,BU,DE,EE,M4]});var Dee=function(){};Dee.\u0275fac=function(a){return new (a||Dee)};Dee.\u0275mod=$e({type:Dee});Dee.\u0275inj=Fc({imports:[WO,mB,wK,EX]});var Eee=function(){};Eee.\u0275fac=function(a){return new (a||Eee)};Eee.\u0275mod=$e({type:Eee});Eee.\u0275inj=Fc({imports:[WO,mB,wK,eU,Dee,WJ]});var Fee=function(){};Fee.\u0275fac=function(a){return new (a||Fee)};Fee.\u0275mod=$e({type:Fee});Fee.\u0275inj=Fc({imports:[WO,eU,yX,xX,wX,a1,wK,TK,mB]});var Gee=function(){};Gee.\u0275fac=function(a){return new (a||Gee)};Gee.\u0275mod=$e({type:Gee});Gee.\u0275inj=Fc({imports:[by,DE,ZD,N_,EE]});var Hee=function(){};Hee.\u0275fac=function(a){return new (a||Hee)};Hee.\u0275mod=$e({type:Hee});Hee.\u0275inj=Fc({imports:[NU,w0,CU,Y2,g5,UD,yW,DE,M_,F3,GU,X3,PV,mB,lL,zU,TJ,ML,WJ,PU,wK,g5,fV,dX,EE,Gee,KX,WO,Dz,A0,x0,Eee,Fee,Q_,R_,Q_,iK]});var Iee=function(){};Iee.\u0275fac=function(a){return new (a||Iee)};Iee.\u0275mod=$e({type:Iee});Iee.\u0275inj=Fc({imports:[NU,WO,M4,yW,DE,GU,wK,R5]});var Jee=function(){};Jee.\u0275fac=function(a){return new (a||Jee)};Jee.\u0275mod=$e({type:Jee});Jee.\u0275inj=Fc({imports:[WO,wK,mB,DL,M4,M_,F3,D2,BU,DE,EE,WJ,uX]});var Kee=function(){};Kee.\u0275fac=function(a){return new (a||Kee)};Kee.\u0275mod=$e({type:Kee});Kee.\u0275inj=Fc({imports:[TJ,lL,WO,Wz,mB,CU,H_,A0]});var Lee=function(){};Lee.\u0275fac=function(a){return new (a||Lee)};Lee.\u0275mod=$e({type:Lee});Lee.\u0275inj=Fc({imports:[WO,wK,mB,DL,M4,BU,TJ,DE,EE,WJ,uX]});var Mee=function(){};Mee.\u0275fac=function(a){return new (a||Mee)};Mee.\u0275mod=$e({type:Mee});Mee.\u0275inj=Fc({imports:[NU,WO,M4,DE,GU,DL,wK,uX,lL,R5,eU]});var Nee=function(){};Nee.\u0275fac=function(a){return new (a||Nee)};Nee.\u0275mod=$e({type:Nee});Nee.\u0275inj=Fc({imports:[WO,Q4,eU,mB]});var Oee=function(){};Oee.\u0275fac=function(a){return new (a||Oee)};Oee.\u0275mod=$e({type:Oee});Oee.\u0275inj=Fc({imports:[WO,mB,T5,eU]});var Pee=function(){};Pee.\u0275fac=function(a){return new (a||Pee)};Pee.\u0275mod=$e({type:Pee});Pee.\u0275inj=Fc({imports:[fV,WO,FU,S0,K6,t3,NV,DE,mB,lL,TJ,HE,zU,LX,wK,Ly,iK,TK,dX,EE,J6]});var Qee=function(){};Qee.\u0275fac=function(a){return new (a||Qee)};Qee.\u0275mod=$e({type:Qee});Qee.\u0275inj=Fc({imports:[WO,j3,z5]});var Ree=function(){};Ree.\u0275fac=function(a){return new (a||Ree)};Ree.\u0275mod=$e({type:Ree});Ree.\u0275inj=Fc({imports:[WO,fX,DE,DL,hV,uX,GU,ML,mB,lL,wK,TJ,eU]});var See=function(){};See.\u0275fac=function(a){return new (a||See)};See.\u0275mod=$e({type:See});See.\u0275inj=Fc({imports:[NU,WO,fX,j3,a3,C6,G6,I6,Y3,M4,L6,Pee,DE,GU,mB,lL,TJ,zU,PU,DL,wK,uX,H5,Ree,Dz,Qee,F5,eU,KX,GX,C9]});var Tee=function(){};Tee.\u0275fac=function(a){return new (a||Tee)};Tee.\u0275mod=$e({type:Tee});Tee.\u0275inj=Fc({imports:[WO,M4,DE,mB,lL,TJ,LX,DL,wK,PU,uX,Dz,F5,Y1,TW,z5,tLd]});var Uee=function(){};Uee.\u0275fac=function(a){return new (a||Uee)};Uee.\u0275mod=$e({type:Uee});Uee.\u0275inj=Fc({imports:[WO,mB,JR,iK,ez,mV,DE,EE,TD,zU,Ly,GE,DL]});var Vee=function(){};Vee.\u0275fac=function(a){return new (a||Vee)};Vee.\u0275mod=$e({type:Vee});Vee.\u0275inj=Fc({imports:[WO,wV]});var Wee=function(){};Wee.\u0275fac=function(a){return new (a||Wee)};Wee.\u0275mod=$e({type:Wee});Wee.\u0275inj=Fc({imports:[WO,Vee,TK,wK]});var Xee=function(){};Xee.\u0275fac=function(a){return new (a||Xee)};Xee.\u0275mod=$e({type:Xee});Xee.\u0275inj=Fc({imports:[WO,hV,wV,CU,mB]});var Yee=function(){};Yee.\u0275fac=function(a){return new (a||Yee)};Yee.\u0275mod=$e({type:Yee});Yee.\u0275inj=Fc({imports:[WO,wV,hV]});var Zee=function(){};Zee.\u0275fac=function(a){return new (a||Zee)};Zee.\u0275mod=$e({type:Zee});Zee.\u0275inj=Fc({imports:[WO,hV,wV,CU]});var $ee=function(){};$ee.\u0275fac=function(a){return new (a||$ee)};$ee.\u0275mod=$e({type:$ee});$ee.\u0275inj=Fc({imports:[WO,wK,TK,Zee,Yee,Xee]});var afe=function(){};afe.\u0275fac=function(a){return new (a||afe)};afe.\u0275mod=$e({type:afe});afe.\u0275inj=Fc({imports:[WO,TK]});var bfe=function(){};bfe.\u0275fac=function(a){return new (a||bfe)};bfe.\u0275mod=$e({type:bfe});bfe.\u0275inj=Fc({imports:[WO,afe,TK,wK]});var cfe=function(){};cfe.\u0275fac=function(a){return new (a||cfe)};cfe.\u0275mod=$e({type:cfe});cfe.\u0275inj=Fc({imports:[WO,TK]});var dfe=function(){};dfe.\u0275fac=function(a){return new (a||dfe)};dfe.\u0275mod=$e({type:dfe});dfe.\u0275inj=Fc({imports:[WO,wK,TK,cfe]});var efe=function(){};efe.\u0275fac=function(a){return new (a||efe)};efe.\u0275mod=$e({type:efe});efe.\u0275inj=Fc({imports:[WO,dL,wK,WJ,lL,mB,iK]});var Y$=function(){};Y$.\u0275fac=function(a){return new (a||Y$)};Y$.\u0275mod=$e({type:Y$});Y$.\u0275inj=Fc({imports:[WO,dL,WJ]});var ffe=function(){};ffe.\u0275fac=function(a){return new (a||ffe)};ffe.\u0275mod=$e({type:ffe});ffe.\u0275inj=Fc({imports:[WO,nV,wV,jB,Ly,jH,Wz,G_]});var Z$=function(){};Z$.\u0275fac=function(a){return new (a||Z$)};Z$.\u0275mod=$e({type:Z$});Z$.\u0275inj=Fc({imports:[by,JS,DX]});var gfe=function(){};gfe.\u0275fac=function(a){return new (a||gfe)};gfe.\u0275mod=$e({type:gfe});gfe.\u0275inj=Fc({imports:[WO,wV,nV,LX,DL,lL,wK,mB,efe,ffe,Y$,eU,yX,fX,Z$,vX,$ee,dfe,jH,bfe,Wee,Uee,Wz]});var hfe=function(){};hfe.\u0275fac=function(a){return new (a||hfe)};hfe.\u0275mod=$e({type:hfe});hfe.\u0275inj=Fc({imports:[WO,mB,gfe,wK]});var ife=function(){};ife.\u0275fac=function(a){return new (a||ife)};ife.\u0275mod=$e({type:ife});ife.\u0275inj=Fc({imports:[WO,dL,wK]});var jfe=function(){};jfe.\u0275fac=function(a){return new (a||jfe)};jfe.\u0275mod=$e({type:jfe});jfe.\u0275inj=Fc({imports:[WO,yX,eU,ife,Y$,wV,fX,Z$,vX,a1,mB,DL,LX,wK]});var kfe=function(){};kfe.\u0275fac=function(a){return new (a||kfe)};kfe.\u0275mod=$e({type:kfe});kfe.\u0275inj=Fc({imports:[WO,DE,mB,wK,EE,V1,hfe,jfe,qU,Dz]});var lfe=function(){};lfe.\u0275fac=function(a){return new (a||lfe)};lfe.\u0275mod=$e({type:lfe});lfe.\u0275inj=Fc({imports:[zU,WO,DE]});var mfe=function(){};mfe.\u0275fac=function(a){return new (a||mfe)};mfe.\u0275mod=$e({type:mfe});mfe.\u0275inj=Fc({imports:[FU,WO,DE,lL,mB,TJ,zU,HE,PU,LX,WJ,DL,wK,RU,iK,fV,q8,lfe,eU,Ly,Q_]});var nfe=function(){};nfe.\u0275fac=function(a){return new (a||nfe)};nfe.\u0275mod=$e({type:nfe});nfe.\u0275inj=Fc({imports:[WO,BU,mB]});var ofe={disableCheatSheet:!0};ofe=ofe===void 0?{}:ofe;
var pfe=[WO,KPd,TU,Hy,uI,W2,X3,nV,h2,GU,E2,RU,j2,H5,Y1,F2,FX,NU,X4,r3,e2,z6,SYd,I0,qV,PV,z_,i3,wX,Iee,Mee,Oee,Nee,S_d,G1d,m4d,n4d,Bee,See,Tee,g4d,Q4,T5,Y3,M6,N6,c5,VU,O4,I3,TYd,fYd,vYd,gYd,JYd,uYd,tYd,v5,x5,avd,t5,G3,I2,FU,CU,H_,Kee,nyd,d2,B5,D2,FV,D5,eWd,o5,p5,HYd,s6,eU,LPd,CZ,BV,b2,I6,nfe,L6,sYd,b6,hV,fX,wV,mfe,xV,iU,Y4,d5,R5,F5,Z4,M4,B6,Aee,Cee,F6,K5,p3,j3,lQd,a3,a5,q5,t3,iX,h5,i5,F3,P5,j5,k5,G6,X2,OPd,uX,N4,w0,C6,Jee,q2,Lee,Hee,PPd,D9,wWd,S4d,kfe,PNd,DYd,dsd,Dy,{ngModule:US,providers:[TS,{provide:hpd,
useFactory:function(a){a=new Apd("https://appswaldo-pa.clients6.google.com",a.waldoApiKey,a.globalApiKey,Object.assign({},Hpd,a.gapiConfig),{scope:"https://www.googleapis.com/auth/calendar.readonly",clientId:a.clientId});return new Fpd(a)},deps:[Gpd]},{provide:Gpd,useFactory:function(){return{waldoApiKey:"AIzaSyDvxpDVHooCQawPUQkmQxwrtt-Xdp3Q3so",globalApiKey:"AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",gapiConfig:{withCredentials:!0},clientId:"693999850130-un1os7r4h5lc2ujbjni9u6aqpvih8hde.apps.googleusercontent.com"}}}]},
{ngModule:Frd,providers:[kU,{provide:Erd,useValue:ofe}]},vee];eVa("enableChromeWizard")&&pfe.push(zee);
var qfe=[Pka(function(){p(dQ)}),Yed,tWd,uWd,vWd,VNd,Wgd,{provide:C9c,useValue:{animationDuration:"0ms",stretchTabs:!1}},{provide:XDd,useValue:{productName:"Buganizer",cooldownMilliseconds:864E5,enableUsageTracking:!0}},{provide:NDc,useValue:{disableTooltipInteractivity:!0,showDelay:100,hideDelay:0}},{provide:fyd,useValue:"AIzaSyCBj23e6C2MNif_tvceM-CPTXcVDK3sarY"},{provide:iyd,useValue:"92912"},UYd,gZd,hZd,iZd],Jx=function(){};Jx.prototype.ngDoBootstrap=function(){Vm("bootstrapping AppModule")};
Jx.\u0275fac=function(a){return new (a||Jx)};Jx.\u0275mod=$e({type:Jx,bootstrap:[JPd,OYd]});Jx.\u0275inj=Fc({providers:[].concat(q(qfe)),imports:[pfe,O4d]});JB(document,"DOMContentLoaded",function(){nAc()});
}catch(e){__._DumpException(e)}
}).call(this,this.default_b);
// Google Inc.
